@@ -3,7 +3,7 @@ import type { AxiosInstance } from 'contentful-sdk-core'
33import type { CollectionProp , GetOrganizationParams , QueryParams } from '../../../common-types'
44import type {
55 CreatePersonalAccessTokenProps ,
6- AccessTokenProp ,
6+ AccessTokenProps ,
77} from '../../../entities/access-token'
88import type { RestEndpoint } from '../types'
99import * as raw from './raw'
@@ -14,7 +14,7 @@ import * as raw from './raw'
1414 * @param {AxiosInstance } http - An Axios HTTP client instance.
1515 * @param {Object } params - Parameters for the request.
1616 * @param {string } params.tokenId - The unique token ID of the access token to retrieve.
17- * @returns {Promise<AccessTokenProp > } A Promise that resolves with the retrieved access token information.
17+ * @returns {Promise<AccessTokenProps > } A Promise that resolves with the retrieved access token information.
1818 * @example ```javascript
1919 * const contentful = require('contentful-management')
2020 *
@@ -33,15 +33,15 @@ export const get: RestEndpoint<'AccessToken', 'get'> = (
3333 http : AxiosInstance ,
3434 params : { tokenId : string }
3535) => {
36- return raw . get < AccessTokenProp > ( http , `/users/me/access_tokens/${ params . tokenId } ` )
36+ return raw . get < AccessTokenProps > ( http , `/users/me/access_tokens/${ params . tokenId } ` )
3737}
3838
3939/**
4040 * Retrieves multiple access tokens associated with the currently authenticated user.
4141 *
4242 * @param {AxiosInstance } http - An Axios HTTP client instance.
4343 * @param {QueryParams } params - Query parameters to filter and customize the request.
44- * @returns {Promise<CollectionProp<AccessTokenProp >> } A Promise that resolves with a collection of access token properties.
44+ * @returns {Promise<CollectionProp<AccessTokenProps >> } A Promise that resolves with a collection of access token properties.
4545 * @example ```javascript
4646 * const contentful = require('contentful-management')
4747 *
@@ -60,7 +60,7 @@ export const getMany: RestEndpoint<'AccessToken', 'getMany'> = (
6060 http : AxiosInstance ,
6161 params : QueryParams
6262) => {
63- return raw . get < CollectionProp < AccessTokenProp > > ( http , '/users/me/access_tokens' , {
63+ return raw . get < CollectionProp < AccessTokenProps > > ( http , '/users/me/access_tokens' , {
6464 params : params . query ,
6565 } )
6666}
@@ -72,7 +72,7 @@ export const getMany: RestEndpoint<'AccessToken', 'getMany'> = (
7272 * @param {Object } _params - Unused parameters (can be an empty object).
7373 * @param {CreatePersonalAccessTokenProps } rawData - Data for creating the personal access token.
7474 * @param {RawAxiosRequestHeaders } [headers] - Optional HTTP headers for the request.
75- * @returns {Promise<AccessTokenProp > } A Promise that resolves with the created personal access token.
75+ * @returns {Promise<AccessTokenProps > } A Promise that resolves with the created personal access token.
7676 * @example ```javascript
7777 * const contentful = require('contentful-management')
7878 *
@@ -93,7 +93,7 @@ export const createPersonalAccessToken: RestEndpoint<'AccessToken', 'createPerso
9393 rawData : CreatePersonalAccessTokenProps ,
9494 headers ?: RawAxiosRequestHeaders
9595) => {
96- return raw . post < AccessTokenProp > ( http , '/users/me/access_tokens' , rawData , {
96+ return raw . post < AccessTokenProps > ( http , '/users/me/access_tokens' , rawData , {
9797 headers,
9898 } )
9999}
@@ -104,7 +104,7 @@ export const createPersonalAccessToken: RestEndpoint<'AccessToken', 'createPerso
104104 * @param {AxiosInstance } http - The Axios HTTP client instance.
105105 * @param {Object } params - The parameters for revoking the access token.
106106 * @param {string } params.tokenId - The unique identifier of the access token to revoke.
107- * @returns {Promise<AccessTokenProp > } A Promise that resolves with the updated access token information after revocation.
107+ * @returns {Promise<AccessTokenProps > } A Promise that resolves with the updated access token information after revocation.
108108 * @example ```javascript
109109 * const contentful = require('contentful-management')
110110 *
@@ -123,7 +123,7 @@ export const revoke: RestEndpoint<'AccessToken', 'revoke'> = (
123123 http : AxiosInstance ,
124124 params : { tokenId : string }
125125) => {
126- return raw . put < AccessTokenProp > ( http , `/users/me/access_tokens/${ params . tokenId } /revoked` , null )
126+ return raw . put < AccessTokenProps > ( http , `/users/me/access_tokens/${ params . tokenId } /revoked` , null )
127127}
128128
129129/**
@@ -132,7 +132,7 @@ export const revoke: RestEndpoint<'AccessToken', 'revoke'> = (
132132 * @param {AxiosInstance } http - The Axios HTTP client instance.
133133 * @param {GetOrganizationParams & QueryParams } params - Parameters for the request, including organization ID and query parameters.
134134 * @param {string } params.organizationId - The unique identifier of the organization.
135- * @returns {Promise<CollectionProp<AccessTokenProp >> } A promise that resolves to a collection of access tokens.
135+ * @returns {Promise<CollectionProp<AccessTokenProps >> } A promise that resolves to a collection of access tokens.
136136 * @example ```javascript
137137 * const contentful = require('contentful-management')
138138 *
@@ -151,7 +151,7 @@ export const getManyForOrganization: RestEndpoint<'AccessToken', 'getManyForOrga
151151 http : AxiosInstance ,
152152 params : GetOrganizationParams & QueryParams
153153) => {
154- return raw . get < CollectionProp < AccessTokenProp > > (
154+ return raw . get < CollectionProp < AccessTokenProps > > (
155155 http ,
156156 `/organizations/${ params . organizationId } /access_tokens` ,
157157 {
0 commit comments