Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update generated SDKs #851

Merged
merged 2 commits into from
Nov 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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