Skip to content

Commit

Permalink
Update generated SDKs (#851)
Browse files Browse the repository at this point in the history
* build(codegen): updating SDK

* build(codegen): updating SDK

---------

Co-authored-by: ct-sdks[bot] <153784748+ct-sdks[bot]@users.noreply.github.com>
  • Loading branch information
ct-sdks[bot] authored Nov 18, 2024
1 parent 3ee4e8b commit ba9ff6d
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import {
PlatformInitiatedChange,
RecordPagedQueryResponse,
Source,
} from '../models/change-history'
import { executeRequest, QueryParam } from '../shared/utils/common-types'
import { ApiRequest } from '../shared/utils/requests-utils'
Expand Down Expand Up @@ -38,7 +39,7 @@ export class ByProjectKeyByResourceTypeByIDRequestBuilder {
associateId?: string
businessUnit?: string
type?: string
source?: string
source?: Source
changes?: string | string[]
stores?: string | string[]
excludePlatformInitiatedChanges?:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import {
PlatformInitiatedChange,
RecordPagedQueryResponse,
Source,
} from '../models/change-history'
import { executeRequest, QueryParam } from '../shared/utils/common-types'
import { ApiRequest } from '../shared/utils/requests-utils'
Expand Down Expand Up @@ -52,7 +53,7 @@ export class ByProjectKeyByResourceTypeRequestBuilder {
businessUnit?: string
type?: string
resourceKey?: string
source?: string
source?: Source
changes?: string | string[]
stores?: string | string[]
excludePlatformInitiatedChanges?:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
ChangeHistoryResourceType,
PlatformInitiatedChange,
RecordPagedQueryResponse,
Source,
} from '../models/change-history'
import { executeRequest, QueryParam } from '../shared/utils/common-types'
import { ApiRequest } from '../shared/utils/requests-utils'
Expand Down Expand Up @@ -54,7 +55,7 @@ export class ByProjectKeyRequestBuilder {
type?: string
resourceId?: string
resourceKey?: string
source?: string
source?: Source
changes?: string | string[]
stores?: string | string[]
excludePlatformInitiatedChanges?:
Expand Down
5 changes: 2 additions & 3 deletions packages/history-sdk/src/generated/models/change-history.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,7 @@ export interface RecordPagedQueryResponse {
readonly results: Record[]
}
/**
* This data type represents the supported resource types.
* The value must be one of the following:
* Value of resource types supported in Change History.
*
*/
export type ChangeHistoryResourceType =
Expand Down Expand Up @@ -267,7 +266,7 @@ export type PlatformInitiatedChange =
| 'setVariantAvailability'
| string
/**
* Values for the Source enumeration.
* Source of change for the resource.
*/
export type Source = 'ApiClient' | 'ImpEx' | 'MerchantCenter' | string
export type UpdateType =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,12 @@ export function getRequestsWithMethodParameters(): RequestWithMethod[] {
},
{
method: 'get',
uri: '/test_projectKey/test_resourceType/test_ID?source=source',
uri: '/test_projectKey/test_resourceType/test_ID?source=MerchantCenter',
request: apiRoot
.withProjectKeyValue({ projectKey: 'test_projectKey' })
.withResourceTypeValue({ resourceType: 'test_resourceType' })
.withIDValue({ ID: 'test_ID' })
.get({ queryArgs: { source: 'source' } }),
.get({ queryArgs: { source: 'MerchantCenter' } }),
},
{
method: 'get',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,11 @@ export function getRequestsWithMethodParameters(): RequestWithMethod[] {
},
{
method: 'get',
uri: '/test_projectKey/test_resourceType?source=source',
uri: '/test_projectKey/test_resourceType?source=MerchantCenter',
request: apiRoot
.withProjectKeyValue({ projectKey: 'test_projectKey' })
.withResourceTypeValue({ resourceType: 'test_resourceType' })
.get({ queryArgs: { source: 'source' } }),
.get({ queryArgs: { source: 'MerchantCenter' } }),
},
{
method: 'get',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,10 @@ export function getRequestsWithMethodParameters(): RequestWithMethod[] {
},
{
method: 'get',
uri: '/test_projectKey?source=source',
uri: '/test_projectKey?source=MerchantCenter',
request: apiRoot
.withProjectKeyValue({ projectKey: 'test_projectKey' })
.get({ queryArgs: { source: 'source' } }),
.get({ queryArgs: { source: 'MerchantCenter' } }),
},
{
method: 'get',
Expand Down
2 changes: 1 addition & 1 deletion packages/platform-sdk/src/generated/models/product.ts
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,7 @@ export interface ProductVariant {
readonly scopedPriceDiscounted?: boolean
}
/**
* The [InventoryEntry](ctp:api:type:InventoryEntry) information of the Product Variant. If there is a supply [Channel](ctp:api:type:Channel) for the InventoryEntry, then `channels` is returned. If not, then `isOnStock`, `restockableInDays`, and `quantityOnStock` are returned.
* The [InventoryEntry](ctp:api:type:InventoryEntry) information of the Product Variant. If there is a supply [Channel](ctp:api:type:Channel) for the InventoryEntry, then `channels` is returned. If not, then `isOnStock`, `restockableInDays`, and `availableQuantity` are returned.
*
*/
export interface ProductVariantAvailability {
Expand Down
2 changes: 2 additions & 0 deletions references.txt
Original file line number Diff line number Diff line change
Expand Up @@ -339,3 +339,5 @@ ccf4522140c12b0093aefe0e2a27d62bcc4834a6
605a1ff5cf861ca0d8e2711ca79374804f180b50
f254d17f05343dcc4299fc53ff9b335b5ef63d69
6892be230f1ad73f1150dd544c9fa7fee0e6b123
a639dbb1cfe5b434c350e7b47ca717c69b3aa369
6a8624fb41168a6a78ac836b7208c2790a686608

0 comments on commit ba9ff6d

Please sign in to comment.