Skip to content

Commit 88e44e3

Browse files
authored
build(codegen): updating SDK (#1134)
Co-authored-by: ct-sdks[bot] <153784748+ct-sdks[bot]@users.noreply.github.com>
1 parent 68c50b6 commit 88e44e3

File tree

245 files changed

+4473
-411
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

245 files changed

+4473
-411
lines changed

packages/history-sdk/src/generated/models/common.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1283,6 +1283,7 @@ export enum StateTypeEnumValues {
12831283
ProductState = 'ProductState',
12841284
QuoteRequestState = 'QuoteRequestState',
12851285
QuoteState = 'QuoteState',
1286+
RecurringOrderState = 'RecurringOrderState',
12861287
ReviewState = 'ReviewState',
12871288
StagedQuoteState = 'StagedQuoteState',
12881289
}
@@ -1294,6 +1295,7 @@ export type StateTypeEnum =
12941295
| 'ProductState'
12951296
| 'QuoteRequestState'
12961297
| 'QuoteState'
1298+
| 'RecurringOrderState'
12971299
| 'ReviewState'
12981300
| 'StagedQuoteState'
12991301
| (string & {})

packages/history-sdk/src/generated/shared/utils/common-types.ts

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,41 @@ export interface ClientRequest {
3737
pathVariables?: VariableMap
3838
queryParams?: VariableMap
3939
body?: any
40+
response?: ClientResponse
41+
resolve?: (value: unknown) => void
42+
reject?: (reason?: any) => void
43+
[key: string]: any
44+
}
45+
46+
export type Keys = string | number | symbol
47+
export type JsonObject<T = unknown> = { [key in Keys]: T }
48+
49+
export type HttpErrorType = {
50+
name?: string
51+
message?: string
52+
code?: string
53+
status?: number
54+
method: MethodType
55+
statusCode: number
56+
originalRequest?: ClientRequest
57+
/**
58+
* @deprecated use `error` instead
59+
*/
60+
body?: JsonObject
61+
error?: JsonObject
62+
retryCount?: number
63+
headers?: Record<string, any>
64+
[key: string]: any
4065
}
4166

4267
export type ClientResponse<T = any> = {
4368
body: T
69+
code?: string
4470
statusCode?: number
45-
headers?: Object
71+
headers?: Record<string, any>
4672
originalRequest?: ClientRequest
73+
error?: HttpErrorType
74+
retryCount?: number
4775
}
4876

4977
export type executeRequest = (request: ClientRequest) => Promise<ClientResponse>

packages/importapi-sdk/src/generated/shared/utils/common-types.ts

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,41 @@ export interface ClientRequest {
3737
pathVariables?: VariableMap
3838
queryParams?: VariableMap
3939
body?: any
40+
response?: ClientResponse
41+
resolve?: (value: unknown) => void
42+
reject?: (reason?: any) => void
43+
[key: string]: any
44+
}
45+
46+
export type Keys = string | number | symbol
47+
export type JsonObject<T = unknown> = { [key in Keys]: T }
48+
49+
export type HttpErrorType = {
50+
name?: string
51+
message?: string
52+
code?: string
53+
status?: number
54+
method: MethodType
55+
statusCode: number
56+
originalRequest?: ClientRequest
57+
/**
58+
* @deprecated use `error` instead
59+
*/
60+
body?: JsonObject
61+
error?: JsonObject
62+
retryCount?: number
63+
headers?: Record<string, any>
64+
[key: string]: any
4065
}
4166

4267
export type ClientResponse<T = any> = {
4368
body: T
69+
code?: string
4470
statusCode?: number
45-
headers?: Object
71+
headers?: Record<string, any>
4672
originalRequest?: ClientRequest
73+
error?: HttpErrorType
74+
retryCount?: number
4775
}
4876

4977
export type executeRequest = (request: ClientRequest) => Promise<ClientResponse>

packages/platform-sdk/src/generated/client/active-cart/by-project-key-in-store-key-by-store-key-me-active-cart-request-builder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export class ByProjectKeyInStoreKeyByStoreKeyMeActiveCartRequestBuilder {
2020
}
2121
) {}
2222
/**
23-
* Retrieves the Customer's most recently modified [active Cart](ctp:api:type:CartState) in a Store. Returns a `200 OK` status if successful.
23+
* Retrieves the Customer's most recently modified [active Cart](ctp:api:type:CartState) in a Store. Returns a `200` status if successful.
2424
*
2525
* Carts with `Merchant` or `Quote` [CartOrigin](ctp:api:type:CartOrigin) are ignored.
2626
*

packages/platform-sdk/src/generated/client/active-cart/by-project-key-me-active-cart-request-builder.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export class ByProjectKeyMeActiveCartRequestBuilder {
1919
}
2020
) {}
2121
/**
22-
* Retrieves the Customer's most recently modified [active Cart](ctp:api:type:CartState). Returns a `200 OK` status if successful.
22+
* Retrieves the Customer's most recently modified [active Cart](ctp:api:type:CartState). Returns a `200` status if successful.
2323
*
2424
* Carts with `Merchant` or `Quote` [CartOrigin](ctp:api:type:CartOrigin) are ignored.
2525
*
@@ -53,7 +53,7 @@ export class ByProjectKeyMeActiveCartRequestBuilder {
5353
)
5454
}
5555
/**
56-
* Checks if an active Cart exists. Returns a `200 OK` status if successful.
56+
* Checks if an active Cart exists. Returns a `200` status if successful.
5757
*
5858
* A [ResourceNotFound](ctp:api:type:ResourceNotFoundError) error is returned in the following scenarios:
5959
*

packages/platform-sdk/src/generated/client/api-clients/by-project-key-api-clients-by-id-request-builder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export class ByProjectKeyApiClientsByIDRequestBuilder {
3838
)
3939
}
4040
/**
41-
* Checks if an API Client exists with the provided `id`. Returns a `200 OK` status if the API Client exists or a `404 Not Found` otherwise.
41+
* Checks if an API Client exists with the provided `id`. Returns a `200` status if the API Client exists, or a `404` status otherwise.
4242
*/
4343
public head(methodArgs?: {
4444
headers?: {

packages/platform-sdk/src/generated/client/api-clients/by-project-key-api-clients-request-builder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export class ByProjectKeyApiClientsRequestBuilder {
6565
)
6666
}
6767
/**
68-
* Checks if an API Client exists for the provided query predicate. Returns a `200 OK` status if any API Clients match the query predicate, or a `404 Not Found` otherwise.
68+
* Checks if an API Client exists for the provided query predicate. Returns a `200` status if any API Clients match the query predicate, or a `404` status otherwise.
6969
*/
7070
public head(methodArgs?: {
7171
queryArgs?: {

packages/platform-sdk/src/generated/client/associate-roles/by-project-key-associate-roles-by-id-request-builder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export class ByProjectKeyAssociateRolesByIDRequestBuilder {
4343
)
4444
}
4545
/**
46-
* Checks if an AssociateRole exists with the provided `id`. Returns a `200 OK` status if the AssociateRole exists or a `404 Not Found` otherwise.
46+
* Checks if an AssociateRole exists with the provided `id`. Returns a `200` status if the AssociateRole exists, or a `404` status otherwise.
4747
*/
4848
public head(methodArgs?: {
4949
headers?: {

packages/platform-sdk/src/generated/client/associate-roles/by-project-key-associate-roles-key-by-key-request-builder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export class ByProjectKeyAssociateRolesKeyByKeyRequestBuilder {
4343
)
4444
}
4545
/**
46-
* Checks if an AssociateRole exists with the provided `key`. Returns a `200 OK` status if the AssociateRole exists or a `404 Not Found` otherwise.
46+
* Checks if an AssociateRole exists with the provided `key`. Returns a `200` status if the AssociateRole exists, or a `404` status otherwise.
4747
*/
4848
public head(methodArgs?: {
4949
headers?: {

packages/platform-sdk/src/generated/client/associate-roles/by-project-key-associate-roles-request-builder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export class ByProjectKeyAssociateRolesRequestBuilder {
7878
)
7979
}
8080
/**
81-
* Checks if one or more AssociateRoles exist for the provided query predicate. Returns a `200 OK` status if any AssociateRole match the query predicate, or a `404 Not Found` otherwise.
81+
* Checks if one or more AssociateRoles exist for the provided query predicate. Returns a `200` status if any AssociateRole match the query predicate, or a `404` status otherwise.
8282
*/
8383
public head(methodArgs?: {
8484
queryArgs?: {

0 commit comments

Comments
 (0)