@commercetools/cli-topic-import 0.0.5 → 0.1.0-rc.00cef776
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/dist/commands/import/import-containers/create.d.ts +2 -9
- package/dist/commands/import/import-containers/create.d.ts.map +1 -1
- package/dist/commands/import/import-containers/create.js +7 -27
- package/dist/commands/import/import-containers/create.js.map +1 -1
- package/dist/commands/import/import-containers/delete.d.ts +2 -9
- package/dist/commands/import/import-containers/delete.d.ts.map +1 -1
- package/dist/commands/import/import-containers/delete.js +7 -19
- package/dist/commands/import/import-containers/delete.js.map +1 -1
- package/dist/commands/import/import-containers/get.d.ts +2 -9
- package/dist/commands/import/import-containers/get.d.ts.map +1 -1
- package/dist/commands/import/import-containers/get.js +7 -19
- package/dist/commands/import/import-containers/get.js.map +1 -1
- package/dist/commands/import/import-containers/list.d.ts +2 -10
- package/dist/commands/import/import-containers/list.d.ts.map +1 -1
- package/dist/commands/import/import-containers/list.js +11 -28
- package/dist/commands/import/import-containers/list.js.map +1 -1
- package/dist/commands/import/import-containers/update.d.ts +2 -11
- package/dist/commands/import/import-containers/update.d.ts.map +1 -1
- package/dist/commands/import/import-containers/update.js +8 -35
- package/dist/commands/import/import-containers/update.js.map +1 -1
- package/dist/commands/import/import-operations/get.d.ts +2 -9
- package/dist/commands/import/import-operations/get.d.ts.map +1 -1
- package/dist/commands/import/import-operations/get.js +7 -19
- package/dist/commands/import/import-operations/get.js.map +1 -1
- package/dist/commands/import/import-operations/list.d.ts +2 -11
- package/dist/commands/import/import-operations/list.d.ts.map +1 -1
- package/dist/commands/import/import-operations/list.js +15 -33
- package/dist/commands/import/import-operations/list.js.map +1 -1
- package/dist/commands/import/import-requests/business-units.d.ts +3 -0
- package/dist/commands/import/import-requests/business-units.d.ts.map +1 -0
- package/dist/commands/import/import-requests/business-units.js +9 -0
- package/dist/commands/import/import-requests/business-units.js.map +1 -0
- package/dist/commands/import/import-requests/categories.d.ts +3 -0
- package/dist/commands/import/import-requests/categories.d.ts.map +1 -0
- package/dist/commands/import/import-requests/categories.js +9 -0
- package/dist/commands/import/import-requests/categories.js.map +1 -0
- package/dist/commands/import/import-requests/customers.d.ts +3 -0
- package/dist/commands/import/import-requests/customers.d.ts.map +1 -0
- package/dist/commands/import/import-requests/customers.js +9 -0
- package/dist/commands/import/import-requests/customers.js.map +1 -0
- package/dist/commands/import/import-requests/discount-codes.d.ts +3 -0
- package/dist/commands/import/import-requests/discount-codes.d.ts.map +1 -0
- package/dist/commands/import/import-requests/discount-codes.js +9 -0
- package/dist/commands/import/import-requests/discount-codes.js.map +1 -0
- package/dist/commands/import/import-requests/inventories.d.ts +3 -0
- package/dist/commands/import/import-requests/inventories.d.ts.map +1 -0
- package/dist/commands/import/import-requests/inventories.js +9 -0
- package/dist/commands/import/import-requests/inventories.js.map +1 -0
- package/dist/commands/import/import-requests/order-patches.d.ts +3 -0
- package/dist/commands/import/import-requests/order-patches.d.ts.map +1 -0
- package/dist/commands/import/import-requests/order-patches.js +9 -0
- package/dist/commands/import/import-requests/order-patches.js.map +1 -0
- package/dist/commands/import/import-requests/orders.d.ts +3 -0
- package/dist/commands/import/import-requests/orders.d.ts.map +1 -0
- package/dist/commands/import/import-requests/orders.js +9 -0
- package/dist/commands/import/import-requests/orders.js.map +1 -0
- package/dist/commands/import/import-requests/prices.d.ts +3 -0
- package/dist/commands/import/import-requests/prices.d.ts.map +1 -0
- package/dist/commands/import/import-requests/prices.js +9 -0
- package/dist/commands/import/import-requests/prices.js.map +1 -0
- package/dist/commands/import/import-requests/product-drafts.d.ts +3 -0
- package/dist/commands/import/import-requests/product-drafts.d.ts.map +1 -0
- package/dist/commands/import/import-requests/product-drafts.js +9 -0
- package/dist/commands/import/import-requests/product-drafts.js.map +1 -0
- package/dist/commands/import/import-requests/product-selections.d.ts +3 -0
- package/dist/commands/import/import-requests/product-selections.d.ts.map +1 -0
- package/dist/commands/import/import-requests/product-selections.js +9 -0
- package/dist/commands/import/import-requests/product-selections.js.map +1 -0
- package/dist/commands/import/import-requests/product-tailorings.d.ts +3 -0
- package/dist/commands/import/import-requests/product-tailorings.d.ts.map +1 -0
- package/dist/commands/import/import-requests/product-tailorings.js +9 -0
- package/dist/commands/import/import-requests/product-tailorings.js.map +1 -0
- package/dist/commands/import/import-requests/product-types.d.ts +3 -0
- package/dist/commands/import/import-requests/product-types.d.ts.map +1 -0
- package/dist/commands/import/import-requests/product-types.js +9 -0
- package/dist/commands/import/import-requests/product-types.js.map +1 -0
- package/dist/commands/import/import-requests/product-variant-patches.d.ts +3 -0
- package/dist/commands/import/import-requests/product-variant-patches.d.ts.map +1 -0
- package/dist/commands/import/import-requests/product-variant-patches.js +9 -0
- package/dist/commands/import/import-requests/product-variant-patches.js.map +1 -0
- package/dist/commands/import/import-requests/product-variants.d.ts +3 -0
- package/dist/commands/import/import-requests/product-variants.d.ts.map +1 -0
- package/dist/commands/import/import-requests/product-variants.js +9 -0
- package/dist/commands/import/import-requests/product-variants.js.map +1 -0
- package/dist/commands/import/import-requests/products.d.ts +3 -0
- package/dist/commands/import/import-requests/products.d.ts.map +1 -0
- package/dist/commands/import/import-requests/products.js +9 -0
- package/dist/commands/import/import-requests/products.js.map +1 -0
- package/dist/commands/import/import-requests/standalone-prices.d.ts +3 -0
- package/dist/commands/import/import-requests/standalone-prices.d.ts.map +1 -0
- package/dist/commands/import/import-requests/standalone-prices.js +9 -0
- package/dist/commands/import/import-requests/standalone-prices.js.map +1 -0
- package/dist/commands/import/import-requests/types.d.ts +3 -0
- package/dist/commands/import/import-requests/types.d.ts.map +1 -0
- package/dist/commands/import/import-requests/types.js +9 -0
- package/dist/commands/import/import-requests/types.js.map +1 -0
- package/dist/commands/import/import-requests/variants.d.ts +3 -0
- package/dist/commands/import/import-requests/variants.d.ts.map +1 -0
- package/dist/commands/import/import-requests/variants.js +9 -0
- package/dist/commands/import/import-requests/variants.js.map +1 -0
- package/dist/commands/import/import-summaries/get.d.ts +2 -9
- package/dist/commands/import/import-summaries/get.d.ts.map +1 -1
- package/dist/commands/import/import-summaries/get.js +7 -20
- package/dist/commands/import/import-summaries/get.js.map +1 -1
- package/dist/common/oclif/operation.d.ts +4 -0
- package/dist/common/oclif/operation.d.ts.map +1 -0
- package/dist/common/oclif/operation.js +23 -0
- package/dist/common/oclif/operation.js.map +1 -0
- package/package.json +4 -3
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export default
|
|
3
|
-
static description: string;
|
|
4
|
-
static flags: {
|
|
5
|
-
body: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
6
|
-
debug: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
7
|
-
};
|
|
8
|
-
run(): Promise<void>;
|
|
9
|
-
}
|
|
1
|
+
declare const _default: typeof import("../../../common/oclif/import-base-command.js").ImportBaseCommand;
|
|
2
|
+
export default _default;
|
|
10
3
|
//# sourceMappingURL=create.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../../src/commands/import/import-containers/create.ts"],"names":[],"mappings":"AAEA,
|
|
1
|
+
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../../src/commands/import/import-containers/create.ts"],"names":[],"mappings":";AAEA,wBAKG"}
|
|
@@ -1,28 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
return JSON.parse(input);
|
|
9
|
-
}
|
|
10
|
-
export default class ImportContainersCreate extends ImportBaseCommand {
|
|
11
|
-
static description = "Create an import container";
|
|
12
|
-
static flags = {
|
|
13
|
-
...ImportBaseCommand.baseFlags,
|
|
14
|
-
body: Flags.string({
|
|
15
|
-
description: "JSON body for the import container, or @filepath to read from a file",
|
|
16
|
-
required: true,
|
|
17
|
-
}),
|
|
18
|
-
};
|
|
19
|
-
async run() {
|
|
20
|
-
const { flags } = await this.parse(ImportContainersCreate);
|
|
21
|
-
this.spinner.start("Creating import container...");
|
|
22
|
-
const body = parseBodyArg(flags.body);
|
|
23
|
-
const result = await this.request("POST", "/import-containers", body);
|
|
24
|
-
this.spinner.stop();
|
|
25
|
-
this.log(JSON.stringify(result, null, 2));
|
|
26
|
-
}
|
|
27
|
-
}
|
|
1
|
+
import { makeImportOperationCommand } from "../../../common/oclif/operation.js";
|
|
2
|
+
export default makeImportOperationCommand({
|
|
3
|
+
description: "Create an import container",
|
|
4
|
+
method: "POST",
|
|
5
|
+
path: "/import-containers",
|
|
6
|
+
body: true,
|
|
7
|
+
});
|
|
28
8
|
//# sourceMappingURL=create.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../src/commands/import/import-containers/create.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../src/commands/import/import-containers/create.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,eAAe,0BAA0B,CAAC;IACxC,WAAW,EAAE,4BAA4B;IACzC,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,oBAAoB;IAC1B,IAAI,EAAE,IAAI;CACX,CAAC,CAAC"}
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export default
|
|
3
|
-
static description: string;
|
|
4
|
-
static flags: {
|
|
5
|
-
key: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
6
|
-
debug: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
7
|
-
};
|
|
8
|
-
run(): Promise<void>;
|
|
9
|
-
}
|
|
1
|
+
declare const _default: typeof import("../../../common/oclif/import-base-command.js").ImportBaseCommand;
|
|
2
|
+
export default _default;
|
|
10
3
|
//# sourceMappingURL=delete.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete.d.ts","sourceRoot":"","sources":["../../../../src/commands/import/import-containers/delete.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"delete.d.ts","sourceRoot":"","sources":["../../../../src/commands/import/import-containers/delete.ts"],"names":[],"mappings":";AAEA,wBAKG"}
|
|
@@ -1,20 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
description: "Key of the import container to delete",
|
|
9
|
-
required: true,
|
|
10
|
-
}),
|
|
11
|
-
};
|
|
12
|
-
async run() {
|
|
13
|
-
const { flags } = await this.parse(ImportContainersDelete);
|
|
14
|
-
this.spinner.start("Deleting import container...");
|
|
15
|
-
const result = await this.request("DELETE", `/import-containers/${encodeURIComponent(flags.key)}`);
|
|
16
|
-
this.spinner.stop();
|
|
17
|
-
this.log(JSON.stringify(result, null, 2));
|
|
18
|
-
}
|
|
19
|
-
}
|
|
1
|
+
import { makeImportOperationCommand } from "../../../common/oclif/operation.js";
|
|
2
|
+
export default makeImportOperationCommand({
|
|
3
|
+
description: "Delete an import container",
|
|
4
|
+
method: "DELETE",
|
|
5
|
+
path: "/import-containers/{key}",
|
|
6
|
+
params: [{ flag: "key", description: "Key of the import container" }],
|
|
7
|
+
});
|
|
20
8
|
//# sourceMappingURL=delete.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete.js","sourceRoot":"","sources":["../../../../src/commands/import/import-containers/delete.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"delete.js","sourceRoot":"","sources":["../../../../src/commands/import/import-containers/delete.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,eAAe,0BAA0B,CAAC;IACxC,WAAW,EAAE,4BAA4B;IACzC,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,0BAA0B;IAChC,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,6BAA6B,EAAE,CAAC;CACtE,CAAC,CAAC"}
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export default
|
|
3
|
-
static description: string;
|
|
4
|
-
static flags: {
|
|
5
|
-
key: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
6
|
-
debug: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
7
|
-
};
|
|
8
|
-
run(): Promise<void>;
|
|
9
|
-
}
|
|
1
|
+
declare const _default: typeof import("../../../common/oclif/import-base-command.js").ImportBaseCommand;
|
|
2
|
+
export default _default;
|
|
10
3
|
//# sourceMappingURL=get.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../../src/commands/import/import-containers/get.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../../src/commands/import/import-containers/get.ts"],"names":[],"mappings":";AAEA,wBAKG"}
|
|
@@ -1,20 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
description: "Key of the import container to retrieve",
|
|
9
|
-
required: true,
|
|
10
|
-
}),
|
|
11
|
-
};
|
|
12
|
-
async run() {
|
|
13
|
-
const { flags } = await this.parse(ImportContainersGet);
|
|
14
|
-
this.spinner.start("Fetching import container...");
|
|
15
|
-
const result = await this.request("GET", `/import-containers/${encodeURIComponent(flags.key)}`);
|
|
16
|
-
this.spinner.stop();
|
|
17
|
-
this.log(JSON.stringify(result, null, 2));
|
|
18
|
-
}
|
|
19
|
-
}
|
|
1
|
+
import { makeImportOperationCommand } from "../../../common/oclif/operation.js";
|
|
2
|
+
export default makeImportOperationCommand({
|
|
3
|
+
description: "Get an import container by key",
|
|
4
|
+
method: "GET",
|
|
5
|
+
path: "/import-containers/{key}",
|
|
6
|
+
params: [{ flag: "key", description: "Key of the import container" }],
|
|
7
|
+
});
|
|
20
8
|
//# sourceMappingURL=get.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get.js","sourceRoot":"","sources":["../../../../src/commands/import/import-containers/get.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get.js","sourceRoot":"","sources":["../../../../src/commands/import/import-containers/get.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,eAAe,0BAA0B,CAAC;IACxC,WAAW,EAAE,gCAAgC;IAC7C,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,0BAA0B;IAChC,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,6BAA6B,EAAE,CAAC;CACtE,CAAC,CAAC"}
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export default
|
|
3
|
-
static description: string;
|
|
4
|
-
static flags: {
|
|
5
|
-
limit: import("@oclif/core/interfaces").OptionFlag<number, import("@oclif/core/interfaces").CustomOptions>;
|
|
6
|
-
offset: import("@oclif/core/interfaces").OptionFlag<number, import("@oclif/core/interfaces").CustomOptions>;
|
|
7
|
-
debug: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
8
|
-
};
|
|
9
|
-
run(): Promise<void>;
|
|
10
|
-
}
|
|
1
|
+
declare const _default: typeof import("../../../common/oclif/import-base-command.js").ImportBaseCommand;
|
|
2
|
+
export default _default;
|
|
11
3
|
//# sourceMappingURL=list.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../src/commands/import/import-containers/list.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../src/commands/import/import-containers/list.ts"],"names":[],"mappings":";AAEA,wBASG"}
|
|
@@ -1,29 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
limit:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
offset: Flags.integer({
|
|
13
|
-
description: "Number of results to skip",
|
|
14
|
-
default: 0,
|
|
15
|
-
min: 0,
|
|
16
|
-
}),
|
|
17
|
-
};
|
|
18
|
-
async run() {
|
|
19
|
-
const { flags } = await this.parse(ImportContainersList);
|
|
20
|
-
this.spinner.start("Fetching import containers...");
|
|
21
|
-
const params = new URLSearchParams();
|
|
22
|
-
params.set("limit", String(flags.limit));
|
|
23
|
-
params.set("offset", String(flags.offset));
|
|
24
|
-
const result = await this.request("GET", `/import-containers?${params.toString()}`);
|
|
25
|
-
this.spinner.stop();
|
|
26
|
-
this.log(JSON.stringify(result, null, 2));
|
|
27
|
-
}
|
|
28
|
-
}
|
|
1
|
+
import { makeImportOperationCommand } from "../../../common/oclif/operation.js";
|
|
2
|
+
export default makeImportOperationCommand({
|
|
3
|
+
description: "List all import containers",
|
|
4
|
+
method: "GET",
|
|
5
|
+
path: "/import-containers",
|
|
6
|
+
query: [
|
|
7
|
+
{ name: "limit", type: "integer", default: 20 },
|
|
8
|
+
{ name: "offset", type: "integer", default: 0 },
|
|
9
|
+
{ name: "sort", multiple: true },
|
|
10
|
+
],
|
|
11
|
+
});
|
|
29
12
|
//# sourceMappingURL=list.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../../src/commands/import/import-containers/list.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../../src/commands/import/import-containers/list.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,eAAe,0BAA0B,CAAC;IACxC,WAAW,EAAE,4BAA4B;IACzC,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,oBAAoB;IAC1B,KAAK,EAAE;QACL,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,EAAE;QAC/C,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE;QAC/C,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;KACjC;CACF,CAAC,CAAC"}
|
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export default
|
|
3
|
-
static description: string;
|
|
4
|
-
static flags: {
|
|
5
|
-
key: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
6
|
-
version: import("@oclif/core/interfaces").OptionFlag<number, import("@oclif/core/interfaces").CustomOptions>;
|
|
7
|
-
actions: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
|
-
debug: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
9
|
-
};
|
|
10
|
-
run(): Promise<void>;
|
|
11
|
-
}
|
|
1
|
+
declare const _default: typeof import("../../../common/oclif/import-base-command.js").ImportBaseCommand;
|
|
2
|
+
export default _default;
|
|
12
3
|
//# sourceMappingURL=update.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../../src/commands/import/import-containers/update.ts"],"names":[],"mappings":"AAEA,
|
|
1
|
+
{"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../../src/commands/import/import-containers/update.ts"],"names":[],"mappings":";AAEA,wBAMG"}
|
|
@@ -1,36 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
export default class ImportContainersUpdate extends ImportBaseCommand {
|
|
11
|
-
static description = "Update an import container";
|
|
12
|
-
static flags = {
|
|
13
|
-
...ImportBaseCommand.baseFlags,
|
|
14
|
-
key: Flags.string({
|
|
15
|
-
description: "Key of the import container to update",
|
|
16
|
-
required: true,
|
|
17
|
-
}),
|
|
18
|
-
version: Flags.integer({
|
|
19
|
-
description: "Current version of the import container",
|
|
20
|
-
required: true,
|
|
21
|
-
}),
|
|
22
|
-
actions: Flags.string({
|
|
23
|
-
description: "JSON array of update actions, or @filepath to read from a file",
|
|
24
|
-
required: true,
|
|
25
|
-
}),
|
|
26
|
-
};
|
|
27
|
-
async run() {
|
|
28
|
-
const { flags } = await this.parse(ImportContainersUpdate);
|
|
29
|
-
this.spinner.start("Updating import container...");
|
|
30
|
-
const actions = parseBodyArg(flags.actions);
|
|
31
|
-
const result = await this.request("POST", `/import-containers/${encodeURIComponent(flags.key)}`, { version: flags.version, actions });
|
|
32
|
-
this.spinner.stop();
|
|
33
|
-
this.log(JSON.stringify(result, null, 2));
|
|
34
|
-
}
|
|
35
|
-
}
|
|
1
|
+
import { makeImportOperationCommand } from "../../../common/oclif/operation.js";
|
|
2
|
+
export default makeImportOperationCommand({
|
|
3
|
+
description: "Update an import container",
|
|
4
|
+
method: "PUT",
|
|
5
|
+
path: "/import-containers/{key}",
|
|
6
|
+
params: [{ flag: "key", description: "Key of the import container" }],
|
|
7
|
+
body: true,
|
|
8
|
+
});
|
|
36
9
|
//# sourceMappingURL=update.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update.js","sourceRoot":"","sources":["../../../../src/commands/import/import-containers/update.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"update.js","sourceRoot":"","sources":["../../../../src/commands/import/import-containers/update.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,eAAe,0BAA0B,CAAC;IACxC,WAAW,EAAE,4BAA4B;IACzC,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,0BAA0B;IAChC,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,6BAA6B,EAAE,CAAC;IACrE,IAAI,EAAE,IAAI;CACX,CAAC,CAAC"}
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export default
|
|
3
|
-
static description: string;
|
|
4
|
-
static flags: {
|
|
5
|
-
id: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
6
|
-
debug: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
7
|
-
};
|
|
8
|
-
run(): Promise<void>;
|
|
9
|
-
}
|
|
1
|
+
declare const _default: typeof import("../../../common/oclif/import-base-command.js").ImportBaseCommand;
|
|
2
|
+
export default _default;
|
|
10
3
|
//# sourceMappingURL=get.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../../src/commands/import/import-operations/get.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../../src/commands/import/import-operations/get.ts"],"names":[],"mappings":";AAEA,wBAKG"}
|
|
@@ -1,20 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
description: "ID of the import operation to retrieve",
|
|
9
|
-
required: true,
|
|
10
|
-
}),
|
|
11
|
-
};
|
|
12
|
-
async run() {
|
|
13
|
-
const { flags } = await this.parse(ImportOperationsGet);
|
|
14
|
-
this.spinner.start("Fetching import operation...");
|
|
15
|
-
const result = await this.request("GET", `/import-operations/${encodeURIComponent(flags.id)}`);
|
|
16
|
-
this.spinner.stop();
|
|
17
|
-
this.log(JSON.stringify(result, null, 2));
|
|
18
|
-
}
|
|
19
|
-
}
|
|
1
|
+
import { makeImportOperationCommand } from "../../../common/oclif/operation.js";
|
|
2
|
+
export default makeImportOperationCommand({
|
|
3
|
+
description: "Get an import operation by ID",
|
|
4
|
+
method: "GET",
|
|
5
|
+
path: "/import-operations/{id}",
|
|
6
|
+
params: [{ flag: "id", description: "ID of the import operation" }],
|
|
7
|
+
});
|
|
20
8
|
//# sourceMappingURL=get.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get.js","sourceRoot":"","sources":["../../../../src/commands/import/import-operations/get.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get.js","sourceRoot":"","sources":["../../../../src/commands/import/import-operations/get.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,eAAe,0BAA0B,CAAC;IACxC,WAAW,EAAE,+BAA+B;IAC5C,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,yBAAyB;IAC/B,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,4BAA4B,EAAE,CAAC;CACpE,CAAC,CAAC"}
|
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export default
|
|
3
|
-
static description: string;
|
|
4
|
-
static flags: {
|
|
5
|
-
"container-key": import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
6
|
-
limit: import("@oclif/core/interfaces").OptionFlag<number, import("@oclif/core/interfaces").CustomOptions>;
|
|
7
|
-
offset: import("@oclif/core/interfaces").OptionFlag<number, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
|
-
debug: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
9
|
-
};
|
|
10
|
-
run(): Promise<void>;
|
|
11
|
-
}
|
|
1
|
+
declare const _default: typeof import("../../../common/oclif/import-base-command.js").ImportBaseCommand;
|
|
2
|
+
export default _default;
|
|
12
3
|
//# sourceMappingURL=list.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../src/commands/import/import-operations/list.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../src/commands/import/import-operations/list.ts"],"names":[],"mappings":";AAEA,wBAaG"}
|
|
@@ -1,34 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
offset: Flags.integer({
|
|
17
|
-
description: "Number of results to skip",
|
|
18
|
-
default: 0,
|
|
19
|
-
min: 0,
|
|
20
|
-
}),
|
|
21
|
-
};
|
|
22
|
-
async run() {
|
|
23
|
-
const { flags } = await this.parse(ImportOperationsList);
|
|
24
|
-
this.spinner.start("Fetching import operations...");
|
|
25
|
-
const params = new URLSearchParams();
|
|
26
|
-
params.set("limit", String(flags.limit));
|
|
27
|
-
params.set("offset", String(flags.offset));
|
|
28
|
-
const containerKey = encodeURIComponent(flags["container-key"]);
|
|
29
|
-
const result = await this.request("GET", `/import-containers/${containerKey}/import-operations?${params.toString()}`);
|
|
30
|
-
this.spinner.stop();
|
|
31
|
-
this.log(JSON.stringify(result, null, 2));
|
|
32
|
-
}
|
|
33
|
-
}
|
|
1
|
+
import { makeImportOperationCommand } from "../../../common/oclif/operation.js";
|
|
2
|
+
export default makeImportOperationCommand({
|
|
3
|
+
description: "List import operations for an import container",
|
|
4
|
+
method: "GET",
|
|
5
|
+
path: "/import-containers/{container-key}/import-operations",
|
|
6
|
+
params: [{ flag: "container-key", description: "Key of the import container" }],
|
|
7
|
+
query: [
|
|
8
|
+
{ name: "limit", type: "integer", default: 20 },
|
|
9
|
+
{ name: "offset", type: "integer", default: 0 },
|
|
10
|
+
{ name: "sort", multiple: true },
|
|
11
|
+
{ name: "resourceKey" },
|
|
12
|
+
{ name: "state" },
|
|
13
|
+
{ name: "debug", flag: "api-debug", type: "boolean" },
|
|
14
|
+
],
|
|
15
|
+
});
|
|
34
16
|
//# sourceMappingURL=list.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../../src/commands/import/import-operations/list.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../../src/commands/import/import-operations/list.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,eAAe,0BAA0B,CAAC;IACxC,WAAW,EAAE,gDAAgD;IAC7D,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,sDAAsD;IAC5D,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,WAAW,EAAE,6BAA6B,EAAE,CAAC;IAC/E,KAAK,EAAE;QACL,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,EAAE;QAC/C,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE;QAC/C,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;QAChC,EAAE,IAAI,EAAE,aAAa,EAAE;QACvB,EAAE,IAAI,EAAE,OAAO,EAAE;QACjB,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,SAAS,EAAE;KACtD;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"business-units.d.ts","sourceRoot":"","sources":["../../../../src/commands/import/import-requests/business-units.ts"],"names":[],"mappings":";AAEA,wBAMG"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { makeImportOperationCommand } from "../../../common/oclif/operation.js";
|
|
2
|
+
export default makeImportOperationCommand({
|
|
3
|
+
description: "Import business units into an import container",
|
|
4
|
+
method: "POST",
|
|
5
|
+
path: "/business-units/import-containers/{container-key}",
|
|
6
|
+
params: [{ flag: "container-key", description: "Key of the import container" }],
|
|
7
|
+
body: true,
|
|
8
|
+
});
|
|
9
|
+
//# sourceMappingURL=business-units.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"business-units.js","sourceRoot":"","sources":["../../../../src/commands/import/import-requests/business-units.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,eAAe,0BAA0B,CAAC;IACxC,WAAW,EAAE,gDAAgD;IAC7D,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,mDAAmD;IACzD,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,WAAW,EAAE,6BAA6B,EAAE,CAAC;IAC/E,IAAI,EAAE,IAAI;CACX,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"categories.d.ts","sourceRoot":"","sources":["../../../../src/commands/import/import-requests/categories.ts"],"names":[],"mappings":";AAEA,wBAMG"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { makeImportOperationCommand } from "../../../common/oclif/operation.js";
|
|
2
|
+
export default makeImportOperationCommand({
|
|
3
|
+
description: "Import categories into an import container",
|
|
4
|
+
method: "POST",
|
|
5
|
+
path: "/categories/import-containers/{container-key}",
|
|
6
|
+
params: [{ flag: "container-key", description: "Key of the import container" }],
|
|
7
|
+
body: true,
|
|
8
|
+
});
|
|
9
|
+
//# sourceMappingURL=categories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"categories.js","sourceRoot":"","sources":["../../../../src/commands/import/import-requests/categories.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,eAAe,0BAA0B,CAAC;IACxC,WAAW,EAAE,4CAA4C;IACzD,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,+CAA+C;IACrD,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,WAAW,EAAE,6BAA6B,EAAE,CAAC;IAC/E,IAAI,EAAE,IAAI;CACX,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customers.d.ts","sourceRoot":"","sources":["../../../../src/commands/import/import-requests/customers.ts"],"names":[],"mappings":";AAEA,wBAMG"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { makeImportOperationCommand } from "../../../common/oclif/operation.js";
|
|
2
|
+
export default makeImportOperationCommand({
|
|
3
|
+
description: "Import customers into an import container",
|
|
4
|
+
method: "POST",
|
|
5
|
+
path: "/customers/import-containers/{container-key}",
|
|
6
|
+
params: [{ flag: "container-key", description: "Key of the import container" }],
|
|
7
|
+
body: true,
|
|
8
|
+
});
|
|
9
|
+
//# sourceMappingURL=customers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customers.js","sourceRoot":"","sources":["../../../../src/commands/import/import-requests/customers.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,eAAe,0BAA0B,CAAC;IACxC,WAAW,EAAE,2CAA2C;IACxD,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,8CAA8C;IACpD,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,WAAW,EAAE,6BAA6B,EAAE,CAAC;IAC/E,IAAI,EAAE,IAAI;CACX,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"discount-codes.d.ts","sourceRoot":"","sources":["../../../../src/commands/import/import-requests/discount-codes.ts"],"names":[],"mappings":";AAEA,wBAMG"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { makeImportOperationCommand } from "../../../common/oclif/operation.js";
|
|
2
|
+
export default makeImportOperationCommand({
|
|
3
|
+
description: "Import discount codes into an import container",
|
|
4
|
+
method: "POST",
|
|
5
|
+
path: "/discount-codes/import-containers/{container-key}",
|
|
6
|
+
params: [{ flag: "container-key", description: "Key of the import container" }],
|
|
7
|
+
body: true,
|
|
8
|
+
});
|
|
9
|
+
//# sourceMappingURL=discount-codes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"discount-codes.js","sourceRoot":"","sources":["../../../../src/commands/import/import-requests/discount-codes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,eAAe,0BAA0B,CAAC;IACxC,WAAW,EAAE,gDAAgD;IAC7D,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,mDAAmD;IACzD,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,WAAW,EAAE,6BAA6B,EAAE,CAAC;IAC/E,IAAI,EAAE,IAAI;CACX,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inventories.d.ts","sourceRoot":"","sources":["../../../../src/commands/import/import-requests/inventories.ts"],"names":[],"mappings":";AAEA,wBAMG"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { makeImportOperationCommand } from "../../../common/oclif/operation.js";
|
|
2
|
+
export default makeImportOperationCommand({
|
|
3
|
+
description: "Import inventories into an import container",
|
|
4
|
+
method: "POST",
|
|
5
|
+
path: "/inventories/import-containers/{container-key}",
|
|
6
|
+
params: [{ flag: "container-key", description: "Key of the import container" }],
|
|
7
|
+
body: true,
|
|
8
|
+
});
|
|
9
|
+
//# sourceMappingURL=inventories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inventories.js","sourceRoot":"","sources":["../../../../src/commands/import/import-requests/inventories.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,eAAe,0BAA0B,CAAC;IACxC,WAAW,EAAE,6CAA6C;IAC1D,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,gDAAgD;IACtD,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,WAAW,EAAE,6BAA6B,EAAE,CAAC;IAC/E,IAAI,EAAE,IAAI;CACX,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"order-patches.d.ts","sourceRoot":"","sources":["../../../../src/commands/import/import-requests/order-patches.ts"],"names":[],"mappings":";AAEA,wBAMG"}
|