@commercetools/importapi-sdk 4.6.2 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +35 -0
- package/dist/commercetools-importapi-sdk.browser.cjs.js +2 -1
- package/dist/commercetools-importapi-sdk.browser.esm.js +2 -1
- package/dist/commercetools-importapi-sdk.cjs.d.ts +1 -0
- package/dist/commercetools-importapi-sdk.cjs.d.ts.map +1 -0
- package/dist/commercetools-importapi-sdk.cjs.dev.js +2 -1
- package/dist/commercetools-importapi-sdk.cjs.prod.js +2 -1
- package/dist/commercetools-importapi-sdk.esm.js +2 -1
- package/dist/declarations/src/ctp/ctp-client.d.ts +1 -1
- package/dist/declarations/src/generated/client/api-root.d.ts +2 -2
- package/dist/declarations/src/generated/client/by-project-key-request-builder.d.ts +16 -16
- package/dist/declarations/src/generated/client/categories/by-project-key-categories-request-builder.d.ts +2 -2
- package/dist/declarations/src/generated/client/customers/by-project-key-customers-request-builder.d.ts +2 -2
- package/dist/declarations/src/generated/client/import-containers/by-project-key-categories-import-containers-by-import-container-key-request-builder.d.ts +3 -3
- package/dist/declarations/src/generated/client/import-containers/by-project-key-categories-import-containers-request-builder.d.ts +2 -2
- package/dist/declarations/src/generated/client/import-containers/by-project-key-customers-import-containers-by-import-container-key-request-builder.d.ts +3 -3
- package/dist/declarations/src/generated/client/import-containers/by-project-key-customers-import-containers-request-builder.d.ts +2 -2
- package/dist/declarations/src/generated/client/import-containers/by-project-key-import-containers-by-import-container-key-request-builder.d.ts +5 -5
- package/dist/declarations/src/generated/client/import-containers/by-project-key-import-containers-request-builder.d.ts +4 -4
- package/dist/declarations/src/generated/client/import-containers/by-project-key-inventories-import-containers-by-import-container-key-request-builder.d.ts +3 -3
- package/dist/declarations/src/generated/client/import-containers/by-project-key-inventories-import-containers-request-builder.d.ts +2 -2
- package/dist/declarations/src/generated/client/import-containers/by-project-key-order-patches-import-containers-by-import-container-key-request-builder.d.ts +3 -3
- package/dist/declarations/src/generated/client/import-containers/by-project-key-order-patches-import-containers-request-builder.d.ts +2 -2
- package/dist/declarations/src/generated/client/import-containers/by-project-key-orders-import-containers-by-import-container-key-request-builder.d.ts +3 -3
- package/dist/declarations/src/generated/client/import-containers/by-project-key-orders-import-containers-request-builder.d.ts +2 -2
- package/dist/declarations/src/generated/client/import-containers/by-project-key-prices-import-containers-by-import-container-key-request-builder.d.ts +3 -3
- package/dist/declarations/src/generated/client/import-containers/by-project-key-prices-import-containers-request-builder.d.ts +2 -2
- package/dist/declarations/src/generated/client/import-containers/by-project-key-product-drafts-import-containers-by-import-container-key-request-builder.d.ts +3 -3
- package/dist/declarations/src/generated/client/import-containers/by-project-key-product-drafts-import-containers-request-builder.d.ts +2 -2
- package/dist/declarations/src/generated/client/import-containers/by-project-key-product-types-import-containers-by-import-container-key-request-builder.d.ts +3 -3
- package/dist/declarations/src/generated/client/import-containers/by-project-key-product-types-import-containers-request-builder.d.ts +2 -2
- package/dist/declarations/src/generated/client/import-containers/by-project-key-product-variant-patches-import-containers-by-import-container-key-request-builder.d.ts +3 -3
- package/dist/declarations/src/generated/client/import-containers/by-project-key-product-variant-patches-import-containers-request-builder.d.ts +2 -2
- package/dist/declarations/src/generated/client/import-containers/by-project-key-product-variants-import-containers-by-import-container-key-request-builder.d.ts +3 -3
- package/dist/declarations/src/generated/client/import-containers/by-project-key-product-variants-import-containers-request-builder.d.ts +2 -2
- package/dist/declarations/src/generated/client/import-containers/by-project-key-products-import-containers-by-import-container-key-request-builder.d.ts +3 -3
- package/dist/declarations/src/generated/client/import-containers/by-project-key-products-import-containers-request-builder.d.ts +2 -2
- package/dist/declarations/src/generated/client/import-containers/by-project-key-standalone-prices-import-containers-by-import-container-key-request-builder.d.ts +3 -3
- package/dist/declarations/src/generated/client/import-containers/by-project-key-standalone-prices-import-containers-request-builder.d.ts +2 -2
- package/dist/declarations/src/generated/client/import-containers/by-project-key-types-import-containers-by-import-container-key-request-builder.d.ts +3 -3
- package/dist/declarations/src/generated/client/import-containers/by-project-key-types-import-containers-request-builder.d.ts +2 -2
- package/dist/declarations/src/generated/client/import-operations/by-project-key-import-containers-by-import-container-key-import-operations-request-builder.d.ts +4 -4
- package/dist/declarations/src/generated/client/import-operations/by-project-key-import-operations-by-id-request-builder.d.ts +3 -3
- package/dist/declarations/src/generated/client/import-operations/by-project-key-import-operations-request-builder.d.ts +2 -2
- package/dist/declarations/src/generated/client/import-summaries/by-project-key-import-containers-by-import-container-key-import-summaries-request-builder.d.ts +3 -3
- package/dist/declarations/src/generated/client/inventories/by-project-key-inventories-request-builder.d.ts +2 -2
- package/dist/declarations/src/generated/client/order-patches/by-project-key-order-patches-request-builder.d.ts +2 -2
- package/dist/declarations/src/generated/client/orders/by-project-key-orders-request-builder.d.ts +2 -2
- package/dist/declarations/src/generated/client/prices/by-project-key-prices-request-builder.d.ts +2 -2
- package/dist/declarations/src/generated/client/product-drafts/by-project-key-product-drafts-request-builder.d.ts +2 -2
- package/dist/declarations/src/generated/client/product-types/by-project-key-product-types-request-builder.d.ts +2 -2
- package/dist/declarations/src/generated/client/product-variant-patches/by-project-key-product-variant-patches-request-builder.d.ts +2 -2
- package/dist/declarations/src/generated/client/product-variants/by-project-key-product-variants-request-builder.d.ts +2 -2
- package/dist/declarations/src/generated/client/products/by-project-key-products-request-builder.d.ts +2 -2
- package/dist/declarations/src/generated/client/standalone-prices/by-project-key-standalone-prices-request-builder.d.ts +2 -2
- package/dist/declarations/src/generated/client/types/by-project-key-types-request-builder.d.ts +2 -2
- package/dist/declarations/src/generated/index.d.ts +22 -22
- package/dist/declarations/src/generated/models/categories.d.ts +2 -2
- package/dist/declarations/src/generated/models/common.d.ts +13 -13
- package/dist/declarations/src/generated/models/customers.d.ts +3 -3
- package/dist/declarations/src/generated/models/customfields.d.ts +5 -5
- package/dist/declarations/src/generated/models/errors.d.ts +5 -5
- package/dist/declarations/src/generated/models/importcontainers.d.ts +1 -1
- package/dist/declarations/src/generated/models/importoperations.d.ts +2 -2
- package/dist/declarations/src/generated/models/importrequests.d.ts +13 -13
- package/dist/declarations/src/generated/models/importsummaries.d.ts +5 -0
- package/dist/declarations/src/generated/models/inventories.d.ts +2 -2
- package/dist/declarations/src/generated/models/order-patches.d.ts +2 -2
- package/dist/declarations/src/generated/models/orders.d.ts +6 -6
- package/dist/declarations/src/generated/models/prices.d.ts +2 -2
- package/dist/declarations/src/generated/models/productdrafts.d.ts +5 -5
- package/dist/declarations/src/generated/models/products.d.ts +1 -1
- package/dist/declarations/src/generated/models/producttypes.d.ts +1 -1
- package/dist/declarations/src/generated/models/productvariants.d.ts +9 -4
- package/dist/declarations/src/generated/models/standalone-prices.d.ts +2 -2
- package/dist/declarations/src/generated/models/types.d.ts +1 -1
- package/dist/declarations/src/generated/shared/utils/middleware.d.ts +1 -1
- package/dist/declarations/src/generated/shared/utils/requests-utils.d.ts +1 -1
- package/dist/declarations/src/index.d.ts +2 -2
- package/package.json +3 -3
- package/dist/declarations/src/generated/shared/utils/uri-utils.d.ts +0 -7
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
4
4
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
5
5
|
*/
|
|
6
|
-
import { ProcessingState } from
|
|
7
|
-
import { ImportOperationPagedResponse } from
|
|
8
|
-
import { executeRequest, QueryParam } from
|
|
9
|
-
import { ApiRequest } from
|
|
6
|
+
import { ProcessingState } from "../../models/common.js";
|
|
7
|
+
import { ImportOperationPagedResponse } from "../../models/importoperations.js";
|
|
8
|
+
import { executeRequest, QueryParam } from "../../shared/utils/common-types.js";
|
|
9
|
+
import { ApiRequest } from "../../shared/utils/requests-utils.js";
|
|
10
10
|
/**
|
|
11
11
|
**/
|
|
12
12
|
export declare class ByProjectKeyImportContainersByImportContainerKeyImportOperationsRequestBuilder {
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
4
4
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
5
5
|
*/
|
|
6
|
-
import { ImportOperation } from
|
|
7
|
-
import { executeRequest } from
|
|
8
|
-
import { ApiRequest } from
|
|
6
|
+
import { ImportOperation } from "../../models/importoperations.js";
|
|
7
|
+
import { executeRequest } from "../../shared/utils/common-types.js";
|
|
8
|
+
import { ApiRequest } from "../../shared/utils/requests-utils.js";
|
|
9
9
|
/**
|
|
10
10
|
**/
|
|
11
11
|
export declare class ByProjectKeyImportOperationsByIdRequestBuilder {
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
4
4
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
5
5
|
*/
|
|
6
|
-
import { executeRequest } from
|
|
7
|
-
import { ByProjectKeyImportOperationsByIdRequestBuilder } from
|
|
6
|
+
import { executeRequest } from "../../shared/utils/common-types.js";
|
|
7
|
+
import { ByProjectKeyImportOperationsByIdRequestBuilder } from "./by-project-key-import-operations-by-id-request-builder.js";
|
|
8
8
|
/**
|
|
9
9
|
**/
|
|
10
10
|
export declare class ByProjectKeyImportOperationsRequestBuilder {
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
4
4
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
5
5
|
*/
|
|
6
|
-
import { ImportSummary } from
|
|
7
|
-
import { executeRequest } from
|
|
8
|
-
import { ApiRequest } from
|
|
6
|
+
import { ImportSummary } from "../../models/importsummaries.js";
|
|
7
|
+
import { executeRequest } from "../../shared/utils/common-types.js";
|
|
8
|
+
import { ApiRequest } from "../../shared/utils/requests-utils.js";
|
|
9
9
|
/**
|
|
10
10
|
**/
|
|
11
11
|
export declare class ByProjectKeyImportContainersByImportContainerKeyImportSummariesRequestBuilder {
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
4
4
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
5
5
|
*/
|
|
6
|
-
import { executeRequest } from
|
|
7
|
-
import { ByProjectKeyInventoriesImportContainersRequestBuilder } from
|
|
6
|
+
import { executeRequest } from "../../shared/utils/common-types.js";
|
|
7
|
+
import { ByProjectKeyInventoriesImportContainersRequestBuilder } from "../import-containers/by-project-key-inventories-import-containers-request-builder.js";
|
|
8
8
|
/**
|
|
9
9
|
**/
|
|
10
10
|
export declare class ByProjectKeyInventoriesRequestBuilder {
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
4
4
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
5
5
|
*/
|
|
6
|
-
import { executeRequest } from
|
|
7
|
-
import { ByProjectKeyOrderPatchesImportContainersRequestBuilder } from
|
|
6
|
+
import { executeRequest } from "../../shared/utils/common-types.js";
|
|
7
|
+
import { ByProjectKeyOrderPatchesImportContainersRequestBuilder } from "../import-containers/by-project-key-order-patches-import-containers-request-builder.js";
|
|
8
8
|
/**
|
|
9
9
|
**/
|
|
10
10
|
export declare class ByProjectKeyOrderPatchesRequestBuilder {
|
package/dist/declarations/src/generated/client/orders/by-project-key-orders-request-builder.d.ts
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
4
4
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
5
5
|
*/
|
|
6
|
-
import { executeRequest } from
|
|
7
|
-
import { ByProjectKeyOrdersImportContainersRequestBuilder } from
|
|
6
|
+
import { executeRequest } from "../../shared/utils/common-types.js";
|
|
7
|
+
import { ByProjectKeyOrdersImportContainersRequestBuilder } from "../import-containers/by-project-key-orders-import-containers-request-builder.js";
|
|
8
8
|
/**
|
|
9
9
|
**/
|
|
10
10
|
export declare class ByProjectKeyOrdersRequestBuilder {
|
package/dist/declarations/src/generated/client/prices/by-project-key-prices-request-builder.d.ts
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
4
4
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
5
5
|
*/
|
|
6
|
-
import { executeRequest } from
|
|
7
|
-
import { ByProjectKeyPricesImportContainersRequestBuilder } from
|
|
6
|
+
import { executeRequest } from "../../shared/utils/common-types.js";
|
|
7
|
+
import { ByProjectKeyPricesImportContainersRequestBuilder } from "../import-containers/by-project-key-prices-import-containers-request-builder.js";
|
|
8
8
|
/**
|
|
9
9
|
**/
|
|
10
10
|
export declare class ByProjectKeyPricesRequestBuilder {
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
4
4
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
5
5
|
*/
|
|
6
|
-
import { executeRequest } from
|
|
7
|
-
import { ByProjectKeyProductDraftsImportContainersRequestBuilder } from
|
|
6
|
+
import { executeRequest } from "../../shared/utils/common-types.js";
|
|
7
|
+
import { ByProjectKeyProductDraftsImportContainersRequestBuilder } from "../import-containers/by-project-key-product-drafts-import-containers-request-builder.js";
|
|
8
8
|
/**
|
|
9
9
|
**/
|
|
10
10
|
export declare class ByProjectKeyProductDraftsRequestBuilder {
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
4
4
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
5
5
|
*/
|
|
6
|
-
import { executeRequest } from
|
|
7
|
-
import { ByProjectKeyProductTypesImportContainersRequestBuilder } from
|
|
6
|
+
import { executeRequest } from "../../shared/utils/common-types.js";
|
|
7
|
+
import { ByProjectKeyProductTypesImportContainersRequestBuilder } from "../import-containers/by-project-key-product-types-import-containers-request-builder.js";
|
|
8
8
|
/**
|
|
9
9
|
**/
|
|
10
10
|
export declare class ByProjectKeyProductTypesRequestBuilder {
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
4
4
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
5
5
|
*/
|
|
6
|
-
import { executeRequest } from
|
|
7
|
-
import { ByProjectKeyProductVariantPatchesImportContainersRequestBuilder } from
|
|
6
|
+
import { executeRequest } from "../../shared/utils/common-types.js";
|
|
7
|
+
import { ByProjectKeyProductVariantPatchesImportContainersRequestBuilder } from "../import-containers/by-project-key-product-variant-patches-import-containers-request-builder.js";
|
|
8
8
|
/**
|
|
9
9
|
**/
|
|
10
10
|
export declare class ByProjectKeyProductVariantPatchesRequestBuilder {
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
4
4
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
5
5
|
*/
|
|
6
|
-
import { executeRequest } from
|
|
7
|
-
import { ByProjectKeyProductVariantsImportContainersRequestBuilder } from
|
|
6
|
+
import { executeRequest } from "../../shared/utils/common-types.js";
|
|
7
|
+
import { ByProjectKeyProductVariantsImportContainersRequestBuilder } from "../import-containers/by-project-key-product-variants-import-containers-request-builder.js";
|
|
8
8
|
/**
|
|
9
9
|
**/
|
|
10
10
|
export declare class ByProjectKeyProductVariantsRequestBuilder {
|
package/dist/declarations/src/generated/client/products/by-project-key-products-request-builder.d.ts
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
4
4
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
5
5
|
*/
|
|
6
|
-
import { executeRequest } from
|
|
7
|
-
import { ByProjectKeyProductsImportContainersRequestBuilder } from
|
|
6
|
+
import { executeRequest } from "../../shared/utils/common-types.js";
|
|
7
|
+
import { ByProjectKeyProductsImportContainersRequestBuilder } from "../import-containers/by-project-key-products-import-containers-request-builder.js";
|
|
8
8
|
/**
|
|
9
9
|
**/
|
|
10
10
|
export declare class ByProjectKeyProductsRequestBuilder {
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
4
4
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
5
5
|
*/
|
|
6
|
-
import { executeRequest } from
|
|
7
|
-
import { ByProjectKeyStandalonePricesImportContainersRequestBuilder } from
|
|
6
|
+
import { executeRequest } from "../../shared/utils/common-types.js";
|
|
7
|
+
import { ByProjectKeyStandalonePricesImportContainersRequestBuilder } from "../import-containers/by-project-key-standalone-prices-import-containers-request-builder.js";
|
|
8
8
|
/**
|
|
9
9
|
**/
|
|
10
10
|
export declare class ByProjectKeyStandalonePricesRequestBuilder {
|
package/dist/declarations/src/generated/client/types/by-project-key-types-request-builder.d.ts
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
4
4
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
5
5
|
*/
|
|
6
|
-
import { executeRequest } from
|
|
7
|
-
import { ByProjectKeyTypesImportContainersRequestBuilder } from
|
|
6
|
+
import { executeRequest } from "../../shared/utils/common-types.js";
|
|
7
|
+
import { ByProjectKeyTypesImportContainersRequestBuilder } from "../import-containers/by-project-key-types-import-containers-request-builder.js";
|
|
8
8
|
/**
|
|
9
9
|
**/
|
|
10
10
|
export declare class ByProjectKeyTypesRequestBuilder {
|
|
@@ -3,25 +3,25 @@
|
|
|
3
3
|
* Please don't change this file manually but run `rmf-codegen generate <raml_file_path> -o <output_path> -t typescript_client` to update it.
|
|
4
4
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
5
5
|
*/
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
12
|
-
export * from
|
|
13
|
-
export * from
|
|
14
|
-
export * from
|
|
15
|
-
export * from
|
|
16
|
-
export * from
|
|
17
|
-
export * from
|
|
18
|
-
export * from
|
|
19
|
-
export * from
|
|
20
|
-
export * from
|
|
21
|
-
export * from
|
|
22
|
-
export * from
|
|
23
|
-
export * from
|
|
24
|
-
export * from
|
|
25
|
-
export * from
|
|
26
|
-
export * from
|
|
27
|
-
export * from
|
|
6
|
+
export * from "./client/api-root.js";
|
|
7
|
+
export * from "./models/categories.js";
|
|
8
|
+
export * from "./models/common.js";
|
|
9
|
+
export * from "./models/customers.js";
|
|
10
|
+
export * from "./models/customfields.js";
|
|
11
|
+
export * from "./models/errors.js";
|
|
12
|
+
export * from "./models/importcontainers.js";
|
|
13
|
+
export * from "./models/importoperations.js";
|
|
14
|
+
export * from "./models/importrequests.js";
|
|
15
|
+
export * from "./models/importsummaries.js";
|
|
16
|
+
export * from "./models/inventories.js";
|
|
17
|
+
export * from "./models/order-patches.js";
|
|
18
|
+
export * from "./models/orders.js";
|
|
19
|
+
export * from "./models/prices.js";
|
|
20
|
+
export * from "./models/productdrafts.js";
|
|
21
|
+
export * from "./models/products.js";
|
|
22
|
+
export * from "./models/producttypes.js";
|
|
23
|
+
export * from "./models/productvariants.js";
|
|
24
|
+
export * from "./models/standalone-prices.js";
|
|
25
|
+
export * from "./models/types.js";
|
|
26
|
+
export * from "./shared/utils/common-types.js";
|
|
27
|
+
export * from "./shared/utils/middleware.js";
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
4
4
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
5
5
|
*/
|
|
6
|
-
import { Asset, CategoryKeyReference, ImportResource, LocalizedString } from
|
|
7
|
-
import { Custom } from
|
|
6
|
+
import { Asset, CategoryKeyReference, ImportResource, LocalizedString } from "./common.js";
|
|
7
|
+
import { Custom } from "./customfields.js";
|
|
8
8
|
/**
|
|
9
9
|
* The data representation for a Category to be imported that is persisted as a [Category](/../api/projects/categories#category) in the Project.
|
|
10
10
|
*
|
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
4
4
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
5
5
|
*/
|
|
6
|
-
import { CategoryImport } from
|
|
7
|
-
import { CustomerImport } from
|
|
8
|
-
import { Custom } from
|
|
9
|
-
import { InventoryImport } from
|
|
10
|
-
import { PriceImport } from
|
|
11
|
-
import { ProductDraftImport } from
|
|
12
|
-
import { ProductImport } from
|
|
13
|
-
import { ProductTypeImport } from
|
|
14
|
-
import { ProductVariantImport } from
|
|
15
|
-
import { StandalonePriceImport } from
|
|
16
|
-
import { TypeImport } from
|
|
6
|
+
import { CategoryImport } from "./categories.js";
|
|
7
|
+
import { CustomerImport } from "./customers.js";
|
|
8
|
+
import { Custom } from "./customfields.js";
|
|
9
|
+
import { InventoryImport } from "./inventories.js";
|
|
10
|
+
import { PriceImport } from "./prices.js";
|
|
11
|
+
import { ProductDraftImport } from "./productdrafts.js";
|
|
12
|
+
import { ProductImport } from "./products.js";
|
|
13
|
+
import { ProductTypeImport } from "./producttypes.js";
|
|
14
|
+
import { ProductVariantImport } from "./productvariants.js";
|
|
15
|
+
import { StandalonePriceImport } from "./standalone-prices.js";
|
|
16
|
+
import { TypeImport } from "./types.js";
|
|
17
17
|
export interface Asset {
|
|
18
18
|
/**
|
|
19
19
|
* User-defined identifier for the asset.
|
|
@@ -473,10 +473,10 @@ export type ImportResourceType = 'category' | 'customer' | 'inventory' | 'order'
|
|
|
473
473
|
*/
|
|
474
474
|
export type ReferenceType = 'cart' | 'cart-discount' | 'category' | 'channel' | 'customer' | 'customer-group' | 'discount-code' | 'key-value-document' | 'order' | 'payment' | 'price' | 'product' | 'product-discount' | 'product-type' | 'product-variant' | 'shipping-method' | 'state' | 'store' | 'tax-category' | 'type' | string;
|
|
475
475
|
/**
|
|
476
|
-
* Every [Import Operation](/import-operation) is assigned
|
|
476
|
+
* Every [Import Operation](/import-operation) is assigned one of the following states.
|
|
477
477
|
*
|
|
478
478
|
*/
|
|
479
|
-
export type ProcessingState = 'imported' | 'processing' | 'rejected' | 'unresolved' | 'validationFailed' | 'waitForMasterVariant' | string;
|
|
479
|
+
export type ProcessingState = 'canceled' | 'imported' | 'processing' | 'rejected' | 'unresolved' | 'validationFailed' | 'waitForMasterVariant' | string;
|
|
480
480
|
export interface Address {
|
|
481
481
|
/**
|
|
482
482
|
*
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
4
4
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
5
5
|
*/
|
|
6
|
-
import { CustomerGroupKeyReference, ImportResource, StoreKeyReference } from
|
|
7
|
-
import { Custom } from
|
|
6
|
+
import { CustomerGroupKeyReference, ImportResource, StoreKeyReference } from "./common.js";
|
|
7
|
+
import { Custom } from "./customfields.js";
|
|
8
8
|
export type AuthenticationMode = 'ExternalAuth' | 'Password' | string;
|
|
9
9
|
/**
|
|
10
10
|
* Different from Address in that `key` is required and `id` is not supported.
|
|
@@ -219,7 +219,7 @@ export interface CustomerImport extends ImportResource {
|
|
|
219
219
|
*
|
|
220
220
|
*
|
|
221
221
|
*/
|
|
222
|
-
readonly addresses
|
|
222
|
+
readonly addresses?: CustomerAddress[];
|
|
223
223
|
/**
|
|
224
224
|
* The index of the address in the addresses array. The `defaultBillingAddressId` of the customer will be set to the ID of that address.
|
|
225
225
|
*
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
4
4
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
5
5
|
*/
|
|
6
|
-
import { KeyReference, LocalizedString, Money, TypedMoney, TypeKeyReference } from
|
|
6
|
+
import { KeyReference, LocalizedString, Money, TypedMoney, TypeKeyReference } from "./common.js";
|
|
7
7
|
/**
|
|
8
|
-
* The representation to be sent to the server when creating a resource with
|
|
8
|
+
* The representation to be sent to the server when creating a resource with Custom Fields.
|
|
9
9
|
*/
|
|
10
10
|
export interface Custom {
|
|
11
11
|
/**
|
|
@@ -14,19 +14,19 @@ export interface Custom {
|
|
|
14
14
|
*/
|
|
15
15
|
readonly type: TypeKeyReference;
|
|
16
16
|
/**
|
|
17
|
-
* The
|
|
17
|
+
* The Custom Fields of this object.
|
|
18
18
|
*
|
|
19
19
|
*/
|
|
20
20
|
readonly fields?: FieldContainer;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* Maps the
|
|
23
|
+
* Maps the Custom Field names to actual values.
|
|
24
24
|
*/
|
|
25
25
|
export interface FieldContainer {
|
|
26
26
|
[key: string]: CustomField;
|
|
27
27
|
}
|
|
28
28
|
/**
|
|
29
|
-
* Provides the value for a
|
|
29
|
+
* Provides the value for a Custom Field of a specific type.
|
|
30
30
|
*/
|
|
31
31
|
export type CustomField = BooleanField | BooleanSetField | DateField | DateSetField | DateTimeField | DateTimeSetField | EnumField | EnumSetField | LocalizedEnumField | LocalizedEnumSetField | LocalizedStringField | LocalizedStringSetField | MoneyField | MoneySetField | NumberField | NumberSetField | ReferenceField | ReferenceSetField | StringField | StringSetField | TimeField | TimeSetField;
|
|
32
32
|
/**
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
4
4
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
5
5
|
*/
|
|
6
|
-
import { ProcessingState } from
|
|
7
|
-
import { PriceImport } from
|
|
8
|
-
import { Attribute } from
|
|
6
|
+
import { ProcessingState } from "./common.js";
|
|
7
|
+
import { PriceImport } from "./prices.js";
|
|
8
|
+
import { Attribute } from "./productvariants.js";
|
|
9
9
|
/**
|
|
10
10
|
* The response in case of an error.
|
|
11
11
|
*
|
|
@@ -300,13 +300,13 @@ export interface InvalidStateTransitionError {
|
|
|
300
300
|
*/
|
|
301
301
|
readonly message: string;
|
|
302
302
|
/**
|
|
303
|
-
* Every [Import Operation](/import-operation) is assigned
|
|
303
|
+
* Every [Import Operation](/import-operation) is assigned one of the following states.
|
|
304
304
|
*
|
|
305
305
|
*
|
|
306
306
|
*/
|
|
307
307
|
readonly currentState: ProcessingState;
|
|
308
308
|
/**
|
|
309
|
-
* Every [Import Operation](/import-operation) is assigned
|
|
309
|
+
* Every [Import Operation](/import-operation) is assigned one of the following states.
|
|
310
310
|
*
|
|
311
311
|
*
|
|
312
312
|
*/
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
4
4
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
5
5
|
*/
|
|
6
|
-
import { ImportResourceType } from
|
|
6
|
+
import { ImportResourceType } from "./common.js";
|
|
7
7
|
/**
|
|
8
8
|
* Serves as the entry point of resources.
|
|
9
9
|
* An Import Container is not resource type-specific.
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
4
4
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
5
5
|
*/
|
|
6
|
-
import { ProcessingState, UnresolvedReferences } from
|
|
7
|
-
import { ErrorObject } from
|
|
6
|
+
import { ProcessingState, UnresolvedReferences } from "./common.js";
|
|
7
|
+
import { ErrorObject } from "./errors.js";
|
|
8
8
|
/**
|
|
9
9
|
* Import Operation describes the import status of a specific resource.
|
|
10
10
|
*
|
|
@@ -3,19 +3,19 @@
|
|
|
3
3
|
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
4
4
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
5
5
|
*/
|
|
6
|
-
import { CategoryImport } from
|
|
7
|
-
import { CustomerImport } from
|
|
8
|
-
import { ImportOperationStatus } from
|
|
9
|
-
import { InventoryImport } from
|
|
10
|
-
import { OrderPatchImport } from
|
|
11
|
-
import { OrderImport } from
|
|
12
|
-
import { PriceImport } from
|
|
13
|
-
import { ProductDraftImport } from
|
|
14
|
-
import { ProductImport } from
|
|
15
|
-
import { ProductTypeImport } from
|
|
16
|
-
import { ProductVariantImport, ProductVariantPatch } from
|
|
17
|
-
import { StandalonePriceImport } from
|
|
18
|
-
import { TypeImport } from
|
|
6
|
+
import { CategoryImport } from "./categories.js";
|
|
7
|
+
import { CustomerImport } from "./customers.js";
|
|
8
|
+
import { ImportOperationStatus } from "./importoperations.js";
|
|
9
|
+
import { InventoryImport } from "./inventories.js";
|
|
10
|
+
import { OrderPatchImport } from "./order-patches.js";
|
|
11
|
+
import { OrderImport } from "./orders.js";
|
|
12
|
+
import { PriceImport } from "./prices.js";
|
|
13
|
+
import { ProductDraftImport } from "./productdrafts.js";
|
|
14
|
+
import { ProductImport } from "./products.js";
|
|
15
|
+
import { ProductTypeImport } from "./producttypes.js";
|
|
16
|
+
import { ProductVariantImport, ProductVariantPatch } from "./productvariants.js";
|
|
17
|
+
import { StandalonePriceImport } from "./standalone-prices.js";
|
|
18
|
+
import { TypeImport } from "./types.js";
|
|
19
19
|
/**
|
|
20
20
|
* An import request batches multiple import resources of the same import resource type for processing by an import container.
|
|
21
21
|
*
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
4
4
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
5
5
|
*/
|
|
6
|
-
import { ChannelKeyReference, ImportResource } from
|
|
7
|
-
import { Custom } from
|
|
6
|
+
import { ChannelKeyReference, ImportResource } from "./common.js";
|
|
7
|
+
import { Custom } from "./customfields.js";
|
|
8
8
|
/**
|
|
9
9
|
* The data representation for an Inventory to be imported that is persisted as a [Inventory](/../api/projects/inventory#top) in the Project.
|
|
10
10
|
*
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
4
4
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
5
5
|
*/
|
|
6
|
-
import { Address } from
|
|
7
|
-
import { DeliveryItem, ParcelMeasurements, TrackingData } from
|
|
6
|
+
import { Address } from "./common.js";
|
|
7
|
+
import { DeliveryItem, ParcelMeasurements, TrackingData } from "./orders.js";
|
|
8
8
|
/**
|
|
9
9
|
* Maps to `ReturnItem.shipmentState`
|
|
10
10
|
*/
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
4
4
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
5
5
|
*/
|
|
6
|
-
import { Address, CartDiscountKeyReference, ChannelKeyReference, CustomerGroupKeyReference, CustomerKeyReference, DiscountCodeKeyReference, DiscountedPrice, Image, LocalizedString, Money, PriceTier, ProductKeyReference, ProductVariantKeyReference, ShippingMethodKeyReference, StateKeyReference, StoreKeyReference, TaxCategoryKeyReference, TypedMoney } from
|
|
7
|
-
import { Custom } from
|
|
8
|
-
import { SubRate, TaxRate } from
|
|
9
|
-
import { Attribute } from
|
|
6
|
+
import { Address, CartDiscountKeyReference, ChannelKeyReference, CustomerGroupKeyReference, CustomerKeyReference, DiscountCodeKeyReference, DiscountedPrice, Image, LocalizedString, Money, PriceTier, ProductKeyReference, ProductVariantKeyReference, ShippingMethodKeyReference, StateKeyReference, StoreKeyReference, TaxCategoryKeyReference, TypedMoney } from "./common.js";
|
|
7
|
+
import { Custom } from "./customfields.js";
|
|
8
|
+
import { SubRate, TaxRate } from "./prices.js";
|
|
9
|
+
import { Attribute } from "./productvariants.js";
|
|
10
10
|
/**
|
|
11
11
|
* The item's state.
|
|
12
12
|
*
|
|
@@ -318,7 +318,7 @@ export interface Parcel {
|
|
|
318
318
|
*/
|
|
319
319
|
readonly items?: DeliveryItem[];
|
|
320
320
|
/**
|
|
321
|
-
* The representation to be sent to the server when creating a resource with
|
|
321
|
+
* The representation to be sent to the server when creating a resource with Custom Fields.
|
|
322
322
|
*
|
|
323
323
|
*/
|
|
324
324
|
readonly custom?: Custom;
|
|
@@ -636,7 +636,7 @@ export interface ScoreShippingRateInput {
|
|
|
636
636
|
* The data representation for an Order to be imported that is persisted as an [Order](/../api/projects/orders#top) in the Project.
|
|
637
637
|
*
|
|
638
638
|
* In commercetools, you can import an Order using the
|
|
639
|
-
* [Create Order by Import](/../api/projects/orders-import#create-
|
|
639
|
+
* [Create Order by Import](/../api/projects/orders-import#create-order-by-import)
|
|
640
640
|
* endpoint method instead of creating it from a Cart.
|
|
641
641
|
*
|
|
642
642
|
* An OrderImport is a snapshot of an order at the time it was imported.
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
4
4
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
5
5
|
*/
|
|
6
|
-
import { ChannelKeyReference, CustomerGroupKeyReference, DiscountedPrice, ImportResource, PriceTier, ProductKeyReference, ProductVariantKeyReference, TypedMoney } from
|
|
7
|
-
import { Custom } from
|
|
6
|
+
import { ChannelKeyReference, CustomerGroupKeyReference, DiscountedPrice, ImportResource, PriceTier, ProductKeyReference, ProductVariantKeyReference, TypedMoney } from "./common.js";
|
|
7
|
+
import { Custom } from "./customfields.js";
|
|
8
8
|
export interface SubRate {
|
|
9
9
|
/**
|
|
10
10
|
*
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
4
4
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
5
5
|
*/
|
|
6
|
-
import { Asset, CategoryKeyReference, ChannelKeyReference, CustomerGroupKeyReference, DiscountedPrice, Image, ImportResource, LocalizedString, PriceTier, ProductPriceModeEnum, ProductTypeKeyReference, StateKeyReference, TaxCategoryKeyReference, TypedMoney } from
|
|
7
|
-
import { Custom } from
|
|
8
|
-
import { SearchKeywords } from
|
|
9
|
-
import { Attribute } from
|
|
6
|
+
import { Asset, CategoryKeyReference, ChannelKeyReference, CustomerGroupKeyReference, DiscountedPrice, Image, ImportResource, LocalizedString, PriceTier, ProductPriceModeEnum, ProductTypeKeyReference, StateKeyReference, TaxCategoryKeyReference, TypedMoney } from "./common.js";
|
|
7
|
+
import { Custom } from "./customfields.js";
|
|
8
|
+
import { SearchKeywords } from "./products.js";
|
|
9
|
+
import { Attribute } from "./productvariants.js";
|
|
10
10
|
/**
|
|
11
11
|
* The representation of a Product Draft for the import purpose.
|
|
12
12
|
*
|
|
@@ -228,5 +228,5 @@ export interface PriceDraftImport {
|
|
|
228
228
|
*
|
|
229
229
|
*
|
|
230
230
|
*/
|
|
231
|
-
readonly key
|
|
231
|
+
readonly key: string;
|
|
232
232
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
4
4
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
5
5
|
*/
|
|
6
|
-
import { CategoryKeyReference, ImportResource, LocalizedString, ProductPriceModeEnum, ProductTypeKeyReference, StateKeyReference, TaxCategoryKeyReference } from
|
|
6
|
+
import { CategoryKeyReference, ImportResource, LocalizedString, ProductPriceModeEnum, ProductTypeKeyReference, StateKeyReference, TaxCategoryKeyReference } from "./common.js";
|
|
7
7
|
/**
|
|
8
8
|
* Search keywords are primarily used by the suggester but are also considered for the full-text search. SearchKeywords is a JSON object where the keys are of [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag). The value to a language tag key is an array of SearchKeyword for the specific language.
|
|
9
9
|
* ```json
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
4
4
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
5
5
|
*/
|
|
6
|
-
import { ImportResource, LocalizedString, ProductTypeKeyReference, ReferenceType } from
|
|
6
|
+
import { ImportResource, LocalizedString, ProductTypeKeyReference, ReferenceType } from "./common.js";
|
|
7
7
|
export interface AttributeDefinition {
|
|
8
8
|
/**
|
|
9
9
|
*
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
4
4
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
5
5
|
*/
|
|
6
|
-
import { Asset, Image, ImportResource, KeyReference, LocalizedString, ProductKeyReference, ProductVariantKeyReference, TypedMoney } from
|
|
6
|
+
import { Asset, Image, ImportResource, KeyReference, LocalizedString, ProductKeyReference, ProductVariantKeyReference, TypedMoney } from "./common.js";
|
|
7
7
|
/**
|
|
8
8
|
* This type represents the value of an attribute of a product variant.
|
|
9
9
|
* The name and type property must match the name and type property of an attribute definition of the product type.
|
|
@@ -501,9 +501,8 @@ export interface ProductVariantImport extends ImportResource {
|
|
|
501
501
|
*/
|
|
502
502
|
export interface ProductVariantPatch {
|
|
503
503
|
/**
|
|
504
|
-
*
|
|
505
|
-
*
|
|
506
|
-
* If referenced ProductVariant does not exist, the `state` of the [ImportOperation](/import-operation#importoperation) will be set to `unresolved` until the necessary ProductVariant is created.
|
|
504
|
+
* Reference to the [ProductVariant](/../api/projects/products#productvariant) to update.
|
|
505
|
+
* If the referenced ProductVariant does not exist, the `state` of the [ImportOperation](/import-operation#importoperation) will be set to `unresolved` until the necessary ProductVariant is created.
|
|
507
506
|
*
|
|
508
507
|
*
|
|
509
508
|
*/
|
|
@@ -524,6 +523,12 @@ export interface ProductVariantPatch {
|
|
|
524
523
|
*
|
|
525
524
|
*/
|
|
526
525
|
readonly staged?: boolean;
|
|
526
|
+
/**
|
|
527
|
+
* Reference to the [Product](/../api/projects/products#product) which contains the ProductVariant. Setting a value will batch process the import operations to minimize concurrency errors. If set, this field is required for every ProductVariantPatch in the [ProductVariantPatchRequest](ctp:import:type:ProductVariantPatchRequest).
|
|
528
|
+
*
|
|
529
|
+
*
|
|
530
|
+
*/
|
|
531
|
+
readonly product?: ProductKeyReference;
|
|
527
532
|
}
|
|
528
533
|
export interface Attributes {
|
|
529
534
|
[key: string]: Attribute | null;
|