Skip to content

Commit

Permalink
build(codegen): updating SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
Auto Mation committed Nov 10, 2023
1 parent f9de59a commit 28f1d81
Show file tree
Hide file tree
Showing 26 changed files with 76 additions and 75 deletions.
6 changes: 3 additions & 3 deletions packages/platform-sdk/src/generated/models/associate-role.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,19 +185,19 @@ export interface AssociateRoleReference {
readonly obj?: AssociateRole
}
/**
* [ResourceIdentifier](ctp:api:type:TypeResourceIdentifier) of an [AssociateRole](ctp:api:type:AssociateRole).
* [ResourceIdentifier](ctp:api:type:TypeResourceIdentifier) of an [AssociateRole](ctp:api:type:AssociateRole). Either `id` or `key` is required. If both are set, an [InvalidJsonInput](/../api/errors#invalidjsoninput) error is returned.
*
*/
export interface AssociateRoleResourceIdentifier {
readonly typeId: 'associate-role'
/**
* Unique identifier of the referenced [AssociateRole](ctp:api:type:AssociateRole). Either `id` or `key` is required.
* Unique identifier of the referenced [AssociateRole](ctp:api:type:AssociateRole). Required if `key` is absent.
*
*
*/
readonly id?: string
/**
* Unique key of the referenced [AssociateRole](ctp:api:type:AssociateRole). Either `id` or `key` is required.
* Unique key of the referenced [AssociateRole](ctp:api:type:AssociateRole). Required if `id` is absent.
*
*
*/
Expand Down
6 changes: 3 additions & 3 deletions packages/platform-sdk/src/generated/models/attribute-group.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,19 +160,19 @@ export interface AttributeGroupReference {
readonly obj?: AttributeGroup
}
/**
* [ResourceIdentifier](/../api/types#resourceidentifier) to an [AttributeGroup](ctp:api:type:AttributeGroup).
* [ResourceIdentifier](/../api/types#resourceidentifier) to an [AttributeGroup](ctp:api:type:AttributeGroup). Either `id` or `key` is required. If both are set, an [InvalidJsonInput](/../api/errors#invalidjsoninput) error is returned.
*
*/
export interface AttributeGroupResourceIdentifier {
readonly typeId: 'attribute-group'
/**
* Platform-generated unique identifier of the referenced [AttributeGroup](ctp:api:type:AttributeGroup). Either `id` or `key` is required.
* Platform-generated unique identifier of the referenced [AttributeGroup](ctp:api:type:AttributeGroup). Required if `key` is absent.
*
*
*/
readonly id?: string
/**
* User-generated unique identifier of the referenced [AttributeGroup](ctp:api:type:AttributeGroup). Either `id` or `key` is required.
* User-generated unique identifier of the referenced [AttributeGroup](ctp:api:type:AttributeGroup). Required if `id` is absent.
*
*
*/
Expand Down
6 changes: 3 additions & 3 deletions packages/platform-sdk/src/generated/models/business-unit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,19 +176,19 @@ export interface BusinessUnitReference {
readonly obj?: BusinessUnit
}
/**
* [ResourceIdentifier](/../api/types#resourceidentifier) to a [BusinessUnit](ctp:api:type:BusinessUnit).
* [ResourceIdentifier](/../api/types#resourceidentifier) to a [BusinessUnit](ctp:api:type:BusinessUnit). Either `id` or `key` is required. If both are set, an [InvalidJsonInput](/../api/errors#invalidjsoninput) error is returned.
*
*/
export interface BusinessUnitResourceIdentifier {
readonly typeId: 'business-unit'
/**
* Unique identifier of the referenced [BusinessUnit](ctp:api:type:BusinessUnit). Either `id` or `key` is required.
* Unique identifier of the referenced [BusinessUnit](ctp:api:type:BusinessUnit). Required if `key` is absent.
*
*
*/
readonly id?: string
/**
* Unique key of the referenced [BusinessUnit](ctp:api:type:BusinessUnit). Either `id` or `key` is required.
* Unique key of the referenced [BusinessUnit](ctp:api:type:BusinessUnit). Required if `id` is absent.
*
*
*/
Expand Down
6 changes: 3 additions & 3 deletions packages/platform-sdk/src/generated/models/cart-discount.ts
Original file line number Diff line number Diff line change
Expand Up @@ -315,19 +315,19 @@ export interface CartDiscountReference {
readonly obj?: CartDiscount
}
/**
* [ResourceIdentifier](ctp:api:type:ResourceIdentifier) to a [CartDiscount](ctp:api:type:CartDiscount).
* [ResourceIdentifier](ctp:api:type:ResourceIdentifier) to a [CartDiscount](ctp:api:type:CartDiscount). Either `id` or `key` is required. If both are set, an [InvalidJsonInput](/../api/errors#invalidjsoninput) error is returned.
*
*/
export interface CartDiscountResourceIdentifier {
readonly typeId: 'cart-discount'
/**
* Unique identifier of the referenced [CartDiscount](ctp:api:type:CartDiscount). Either `id` or `key` is required.
* Unique identifier of the referenced [CartDiscount](ctp:api:type:CartDiscount). Required if `key` is absent.
*
*
*/
readonly id?: string
/**
* User-defined unique identifier of the referenced [CartDiscount](ctp:api:type:CartDiscount). Either `id` or `key` is required.
* User-defined unique identifier of the referenced [CartDiscount](ctp:api:type:CartDiscount). Required if `id` is absent.
*
*
*/
Expand Down
6 changes: 3 additions & 3 deletions packages/platform-sdk/src/generated/models/cart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -588,19 +588,19 @@ export interface CartReference {
readonly obj?: Cart
}
/**
* [ResourceIdentifier](ctp:api:type:ResourceIdentifier) to a [Cart](ctp:api:type:Cart).
* [ResourceIdentifier](ctp:api:type:ResourceIdentifier) to a [Cart](ctp:api:type:Cart). Either `id` or `key` is required. If both are set, an [InvalidJsonInput](/../api/errors#invalidjsoninput) error is returned.
*
*/
export interface CartResourceIdentifier {
readonly typeId: 'cart'
/**
* Unique identifier of the referenced [Cart](ctp:api:type:Cart). Either `id` or `key` is required.
* Unique identifier of the referenced [Cart](ctp:api:type:Cart). Required if `key` is absent.
*
*
*/
readonly id?: string
/**
* User-defined unique identifier of the referenced [Cart](ctp:api:type:Cart). Either `id` or `key` is required.
* User-defined unique identifier of the referenced [Cart](ctp:api:type:Cart). Required if `id` is absent.
*
*
*/
Expand Down
6 changes: 3 additions & 3 deletions packages/platform-sdk/src/generated/models/category.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,19 +277,19 @@ export interface CategoryReference {
readonly obj?: Category
}
/**
* [ResourceIdentifier](ctp:api:type:ResourceIdentifier) to a [Category](ctp:api:type:Category).
* [ResourceIdentifier](ctp:api:type:ResourceIdentifier) to a [Category](ctp:api:type:Category). Either `id` or `key` is required. If both are set, an [InvalidJsonInput](/../api/errors#invalidjsoninput) error is returned.
*
*/
export interface CategoryResourceIdentifier {
readonly typeId: 'category'
/**
* Unique identifier of the referenced [Category](ctp:api:type:Channel). Either `id` or `key` is required.
* Unique identifier of the referenced [Category](ctp:api:type:Channel). Required if `key` is absent.
*
*
*/
readonly id?: string
/**
* User-defined unique identifier of the referenced [Category](ctp:api:type:Category). Either `id` or `key` is required.
* User-defined unique identifier of the referenced [Category](ctp:api:type:Category). Required if `id` is absent.
*
*
*/
Expand Down
6 changes: 3 additions & 3 deletions packages/platform-sdk/src/generated/models/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,19 +215,19 @@ export interface ChannelReference {
readonly obj?: Channel
}
/**
* [ResourceIdentifier](ctp:api:type:ResourceIdentifier) to a [Channel](ctp:api:type:Channel).
* [ResourceIdentifier](ctp:api:type:ResourceIdentifier) to a [Channel](ctp:api:type:Channel). Either `id` or `key` is required. If both are set, an [InvalidJsonInput](/../api/errors#invalidjsoninput) error is returned.
*
*/
export interface ChannelResourceIdentifier {
readonly typeId: 'channel'
/**
* Unique identifier of the referenced [Channel](ctp:api:type:Channel). Either `id` or `key` is required.
* Unique identifier of the referenced [Channel](ctp:api:type:Channel). Required if `key` is absent.
*
*
*/
readonly id?: string
/**
* User-defined unique identifier of the referenced [Channel](ctp:api:type:Channel). Either `id` or `key` is required.
* User-defined unique identifier of the referenced [Channel](ctp:api:type:Channel). Required if `id` is absent.
*
*
*/
Expand Down
6 changes: 3 additions & 3 deletions packages/platform-sdk/src/generated/models/customer-group.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,19 +149,19 @@ export interface CustomerGroupReference {
readonly obj?: CustomerGroup
}
/**
* [ResourceIdentifier](ctp:api:type:ResourceIdentifier) to a [CustomerGroup](ctp:api:type:CustomerGroup).
* [ResourceIdentifier](ctp:api:type:ResourceIdentifier) to a [CustomerGroup](ctp:api:type:CustomerGroup). Either `id` or `key` is required. If both are set, an [InvalidJsonInput](/../api/errors#invalidjsoninput) error is returned.
*
*/
export interface CustomerGroupResourceIdentifier {
readonly typeId: 'customer-group'
/**
* Unique identifier of the referenced [CustomerGroup](ctp:api:type:CustomerGroup). Either `id` or `key` is required.
* Unique identifier of the referenced [CustomerGroup](ctp:api:type:CustomerGroup). Required if `key` is absent.
*
*
*/
readonly id?: string
/**
* User-defined unique identifier of the referenced [CustomerGroup](ctp:api:type:CustomerGroup). Either `id` or `key` is required.
* User-defined unique identifier of the referenced [CustomerGroup](ctp:api:type:CustomerGroup). Required if `id` is absent.
*
*
*/
Expand Down
6 changes: 3 additions & 3 deletions packages/platform-sdk/src/generated/models/customer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -581,19 +581,19 @@ export interface CustomerResetPassword {
readonly version?: number
}
/**
* [ResourceIdentifier](ctp:api:type:ResourceIdentifier) to a [Customer](ctp:api:type:Customer). Either `id` or `key` is required.
* [ResourceIdentifier](ctp:api:type:ResourceIdentifier) to a [Customer](ctp:api:type:Customer). Either `id` or `key` is required. If both are set, an [InvalidJsonInput](/../api/errors#invalidjsoninput) error is returned.
*
*/
export interface CustomerResourceIdentifier {
readonly typeId: 'customer'
/**
* Unique identifier of the referenced [Customer](ctp:api:type:Customer).
* Unique identifier of the referenced [Customer](ctp:api:type:Customer). Required if `key` is absent.
*
*
*/
readonly id?: string
/**
* User-defined unique identifier of the referenced [Customer](ctp:api:type:Customer).
* User-defined unique identifier of the referenced [Customer](ctp:api:type:Customer). Required if `id` is absent.
*
*
*/
Expand Down
6 changes: 3 additions & 3 deletions packages/platform-sdk/src/generated/models/discount-code.ts
Original file line number Diff line number Diff line change
Expand Up @@ -283,19 +283,19 @@ export interface DiscountCodeReference {
readonly obj?: DiscountCode
}
/**
* [ResourceIdentifier](ctp:api:type:ResourceIdentifier) to a [DiscountCode](ctp:api:type:DiscountCode).
* [ResourceIdentifier](ctp:api:type:ResourceIdentifier) to a [DiscountCode](ctp:api:type:DiscountCode). Either `id` or `key` is required. If both are set, an [InvalidJsonInput](/../api/errors#invalidjsoninput) error is returned.
*
*/
export interface DiscountCodeResourceIdentifier {
readonly typeId: 'discount-code'
/**
* Unique identifier of the referenced [DiscountCode](ctp:api:type:DiscountCode). Either `id` or `key` is required.
* Unique identifier of the referenced [DiscountCode](ctp:api:type:DiscountCode). Required if `key` is absent.
*
*
*/
readonly id?: string
/**
* User-defined unique identifier of the referenced [DiscountCode](ctp:api:type:DiscountCode). Either `id` or `key` is required.
* User-defined unique identifier of the referenced [DiscountCode](ctp:api:type:DiscountCode). Required if `id` is absent.
*
*
*/
Expand Down
6 changes: 3 additions & 3 deletions packages/platform-sdk/src/generated/models/inventory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,19 +160,19 @@ export interface InventoryEntryReference {
readonly obj?: InventoryEntry
}
/**
* [ResourceIdentifier](ctp:api:type:ResourceIdentifier) to an [InventoryEntry](ctp:api:type:InventoryEntry).
* [ResourceIdentifier](ctp:api:type:ResourceIdentifier) to an [InventoryEntry](ctp:api:type:InventoryEntry). Either `id` or `key` is required. If both are set, an [InvalidJsonInput](/../api/errors#invalidjsoninput) error is returned.
*
*/
export interface InventoryEntryResourceIdentifier {
readonly typeId: 'inventory-entry'
/**
* Unique identifier of the referenced [InventoryEntry](ctp:api:type:InventoryEntry). Either `id` or `key` is required.
* Unique identifier of the referenced [InventoryEntry](ctp:api:type:InventoryEntry). Required if `key` is absent.
*
*
*/
readonly id?: string
/**
* User-defined unique identifier of the referenced [InventoryEntry](ctp:api:type:InventoryEntry). Either `id` or `key` is required.
* User-defined unique identifier of the referenced [InventoryEntry](ctp:api:type:InventoryEntry). Required if `id` is absent.
*
*
*/
Expand Down
6 changes: 3 additions & 3 deletions packages/platform-sdk/src/generated/models/order-edit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,19 +261,19 @@ export interface OrderEditReference {
readonly obj?: OrderEdit
}
/**
* [ResourceIdentifier](ctp:api:type:ResourceIdentifier) to an [OrderEdit](ctp:api:type:OrderEdit). Either `id` or `key` is required.
* [ResourceIdentifier](ctp:api:type:ResourceIdentifier) to an [OrderEdit](ctp:api:type:OrderEdit). Either `id` or `key` is required. If both are set, an [InvalidJsonInput](/../api/errors#invalidjsoninput) error is returned.
*
*/
export interface OrderEditResourceIdentifier {
readonly typeId: 'order-edit'
/**
* Unique identifier of the referenced [OrderEdit](ctp:api:type:OrderEdit).
* Unique identifier of the referenced [OrderEdit](ctp:api:type:OrderEdit). Required if `key` is absent.
*
*
*/
readonly id?: string
/**
* User-defined unique identifier of the referenced [OrderEdit](ctp:api:type:OrderEdit).
* User-defined unique identifier of the referenced [OrderEdit](ctp:api:type:OrderEdit). Required if `id` is absent.
*
*
*/
Expand Down
6 changes: 3 additions & 3 deletions packages/platform-sdk/src/generated/models/payment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,19 +251,19 @@ export interface PaymentReference {
readonly obj?: Payment
}
/**
* [ResourceIdentifier](ctp:api:type:ResourceIdentifier) of a [Payment](ctp:api:type:Payment).
* [ResourceIdentifier](ctp:api:type:ResourceIdentifier) of a [Payment](ctp:api:type:Payment). Either `id` or `key` is required. If both are set, an [InvalidJsonInput](/../api/errors#invalidjsoninput) error is returned.
*
*/
export interface PaymentResourceIdentifier {
readonly typeId: 'payment'
/**
* Unique identifier of the referenced [Payment](ctp:api:type:Payment). Either `id` or `key` is required.
* Unique identifier of the referenced [Payment](ctp:api:type:Payment). Required if `key` is absent.
*
*
*/
readonly id?: string
/**
* User-defined unique identifier of the referenced [Payment](ctp:api:type:Payment). Either `id` or `key` is required.
* User-defined unique identifier of the referenced [Payment](ctp:api:type:Payment). Required if `id` is absent.
*
*
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -262,19 +262,19 @@ export interface ProductDiscountReference {
readonly obj?: ProductDiscount
}
/**
* [ResourceIdentifier](ctp:api:type:ResourceIdentifier) to a [ProductDiscount](ctp:api:type:ProductDiscount).
* [ResourceIdentifier](ctp:api:type:ResourceIdentifier) to a [ProductDiscount](ctp:api:type:ProductDiscount). Either `id` or `key` is required. If both are set, an [InvalidJsonInput](/../api/errors#invalidjsoninput) error is returned.
*
*/
export interface ProductDiscountResourceIdentifier {
readonly typeId: 'product-discount'
/**
* Unique identifier of the referenced [ProductDiscount](ctp:api:type:ProductDiscount). Either `id` or `key` is required.
* Unique identifier of the referenced [ProductDiscount](ctp:api:type:ProductDiscount). Required if `key` is absent.
*
*
*/
readonly id?: string
/**
* User-defined unique identifier of the referenced [ProductDiscount](ctp:api:type:ProductDiscount). Either `id` or `key` is required.
* User-defined unique identifier of the referenced [ProductDiscount](ctp:api:type:ProductDiscount). Required if `id` is absent.
*
*
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -333,19 +333,19 @@ export interface ProductSelectionReference {
readonly obj?: ProductSelection
}
/**
* [ResourceIdentifier](ctp:api:type:ResourceIdentifier) to a [ProductSelection](ctp:api:type:ProductSelection).
* [ResourceIdentifier](ctp:api:type:ResourceIdentifier) to a [ProductSelection](ctp:api:type:ProductSelection). Either `id` or `key` is required. If both are set, an [InvalidJsonInput](/../api/errors#invalidjsoninput) error is returned.
*
*/
export interface ProductSelectionResourceIdentifier {
readonly typeId: 'product-selection'
/**
* Unique identifier of the referenced [ProductSelection](ctp:api:type:ProductSelection). Either `id` or `key` is required.
* Unique identifier of the referenced [ProductSelection](ctp:api:type:ProductSelection). Required if `key` is absent.
*
*
*/
readonly id?: string
/**
* User-defined unique identifier of the referenced [ProductSelection](ctp:api:type:ProductSelection). Either `id` or `key` is required.
* User-defined unique identifier of the referenced [ProductSelection](ctp:api:type:ProductSelection). Required if `id` is absent.
*
*
*/
Expand Down
6 changes: 3 additions & 3 deletions packages/platform-sdk/src/generated/models/product-type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -448,19 +448,19 @@ export interface ProductTypeReference {
readonly obj?: ProductType
}
/**
* [ResourceIdentifier](ctp:api:type:ResourceIdentifier) to a [ProductType](ctp:api:type:ProductType).
* [ResourceIdentifier](ctp:api:type:ResourceIdentifier) to a [ProductType](ctp:api:type:ProductType). Either `id` or `key` is required. If both are set, an [InvalidJsonInput](/../api/errors#invalidjsoninput) error is returned.
*
*/
export interface ProductTypeResourceIdentifier {
readonly typeId: 'product-type'
/**
* Unique identifier of the referenced [ProductType](ctp:api:type:ProductType). Either `id` or `key` is required.
* Unique identifier of the referenced [ProductType](ctp:api:type:ProductType). Required if `key` is absent.
*
*
*/
readonly id?: string
/**
* User-defined unique identifier of the referenced [ProductType](ctp:api:type:ProductType). Either `id` or `key` is required.
* User-defined unique identifier of the referenced [ProductType](ctp:api:type:ProductType). Required if `id` is absent.
*
*
*/
Expand Down
6 changes: 3 additions & 3 deletions packages/platform-sdk/src/generated/models/product.ts
Original file line number Diff line number Diff line change
Expand Up @@ -710,19 +710,19 @@ export interface ProductReference {
readonly obj?: Product
}
/**
* [ResourceIdentifier](ctp:api:type:ResourceIdentifier) to a [Product](ctp:api:type:Product). Either `id` or `key` is required.
* [ResourceIdentifier](ctp:api:type:ResourceIdentifier) to a [Product](ctp:api:type:Product). Either `id` or `key` is required. If both are set, an [InvalidJsonInput](/../api/errors#invalidjsoninput) error is returned.
*
*/
export interface ProductResourceIdentifier {
readonly typeId: 'product'
/**
* Unique identifier of the referenced [Product](ctp:api:type:Product).
* Unique identifier of the referenced [Product](ctp:api:type:Product). Required if `key` is absent.
*
*
*/
readonly id?: string
/**
* User-defined unique identifier of the referenced [Product](ctp:api:type:Product).
* User-defined unique identifier of the referenced [Product](ctp:api:type:Product). Required if `id` is absent.
*
*
*/
Expand Down
Loading

0 comments on commit 28f1d81

Please sign in to comment.