Skip to content

Commit

Permalink
build(codegen): updating SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
ct-sdks[bot] committed Oct 22, 2024
1 parent 11a3068 commit 3862319
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 1 deletion.
1 change: 1 addition & 0 deletions .changeset/changes_import.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<summary>Added Type(s)</summary>

- added type `InvalidFieldsUpdateError`
- added type `NewMasterVariantAdditionNotAllowedError`
- added type `ReferencedResourceNotFound`
</details>

Expand Down
1 change: 1 addition & 0 deletions changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@
<summary>Added Type(s)</summary>

- added type `InvalidFieldsUpdateError`
- added type `NewMasterVariantAdditionNotAllowedError`
- added type `ReferencedResourceNotFound`
</details>

Expand Down
14 changes: 14 additions & 0 deletions packages/importapi-sdk/src/generated/models/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export type ErrorObject =
| InvalidScopeError
| InvalidStateTransitionError
| InvalidTokenError
| NewMasterVariantAdditionNotAllowedError
| ReferencedResourceNotFound
| RequiredFieldError
| ResourceCreationError
Expand Down Expand Up @@ -398,6 +399,19 @@ export interface GenericError {
*/
readonly message: string
}
/**
* Returned when attempting to create a ProductVariant and set it as the Master Variant in the same [ProductVariantImport](ctp:import:type:ProductVariantImport).
*
*/
export interface NewMasterVariantAdditionNotAllowedError {
readonly code: 'NewMasterVariantAdditionNotAllowed'
/**
* `"Adding a new variant as master variant is not allowed."`
*
*
*/
readonly message: string
}
/**
* Returned when a resource referenced by a [Reference](/../api/types#reference) or a [ResourceIdentifier](/../api/types#resourceidentifier) could not be found.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,8 @@ export interface ProductVariantImport extends ImportResource {
*/
readonly sku?: string
/**
* Maps to `ProductVariant.isMasterVariant`.
* - When creating a new ProductVariant, set to `false`; otherwise, the import operation will fail with a [NewMasterVariantAdditionNotAllowed](/error#newmastervariantadditionnotallowederror) error.
* - Set to `true` if the ProductVariant exists and you want to set this ProductVariant as the Master Variant.
*
*
*/
Expand Down
1 change: 1 addition & 0 deletions references.txt
Original file line number Diff line number Diff line change
Expand Up @@ -323,3 +323,4 @@ bc8899d62927bb41e2209454a2cfc42dd049409f
3bde1efd0d5dbff77065d355e9d00e8a0e8f466a
c27603f949e869148570ebb8bd3ec6db34a985b7
cac013ef26a2c100979f66df86f605953dd5d736
82bca33a98d14907ea79e2cca281625dd82cdf0d

0 comments on commit 3862319

Please sign in to comment.