diff --git a/.changeset/changes_import.md b/.changeset/changes_import.md index 6a4c6d9bc..88cdb72e9 100644 --- a/.changeset/changes_import.md +++ b/.changeset/changes_import.md @@ -9,7 +9,6 @@ - added type `InvalidFieldsUpdateError` - added type `NewMasterVariantAdditionNotAllowedError` -- added type `ReferencedResourceNotFound`
diff --git a/changes.md b/changes.md index bb211ace9..1a7e3c50f 100644 --- a/changes.md +++ b/changes.md @@ -311,7 +311,6 @@ - added type `InvalidFieldsUpdateError` - added type `NewMasterVariantAdditionNotAllowedError` -- added type `ReferencedResourceNotFound`
diff --git a/packages/importapi-sdk/src/generated/models/errors.ts b/packages/importapi-sdk/src/generated/models/errors.ts index bb8a6864c..6cd17265f 100644 --- a/packages/importapi-sdk/src/generated/models/errors.ts +++ b/packages/importapi-sdk/src/generated/models/errors.ts @@ -4,7 +4,7 @@ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/. */ -import { ProcessingState, ReferenceType } from './common' +import { ProcessingState } from './common' import { PriceImport } from './prices' import { Attribute } from './productvariants' @@ -71,7 +71,6 @@ export type ErrorObject = | InvalidStateTransitionError | InvalidTokenError | NewMasterVariantAdditionNotAllowedError - | ReferencedResourceNotFound | RequiredFieldError | ResourceCreationError | ResourceDeletionError @@ -440,34 +439,3 @@ export interface NewMasterVariantAdditionNotAllowedError { */ readonly message: string } -/** - * Returned when a resource referenced by a [Reference](/../api/types#reference) or a [ResourceIdentifier](/../api/types#resourceidentifier) could not be found. - * - */ -export interface ReferencedResourceNotFound { - readonly code: 'ReferencedResourceNotFound' - /** - * `"The referenced object of type $typeId $predicate was not found. It either doesn't exist, or it can't be accessed from this endpoint (e.g., if the endpoint filters by store or customer account)."` - * - * - */ - readonly message: string - /** - * Type of referenced resource. - * - * - */ - readonly typeId: ReferenceType - /** - * Unique identifier of the referenced resource, if known. - * - * - */ - readonly id?: string - /** - * User-defined unique identifier of the referenced resource, if known. - * - * - */ - readonly key?: string -} diff --git a/references.txt b/references.txt index d8df9b293..7b5c1509a 100644 --- a/references.txt +++ b/references.txt @@ -345,3 +345,4 @@ a639dbb1cfe5b434c350e7b47ca717c69b3aa369 b747e1fa4f246b748a89bccbfd8a43f5b6f51175 505b3af56b4452b22dfb595f93e010b3e2fccc53 7375cdc26481ba55e756479a87270432635bfcf7 +df53588d26d7953dfdf44166866ca03045f0a70b