@commercetools/cli-topic-import 0.0.5 → 0.1.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.
Files changed (109) hide show
  1. package/dist/commands/import/import-containers/create.d.ts +2 -9
  2. package/dist/commands/import/import-containers/create.d.ts.map +1 -1
  3. package/dist/commands/import/import-containers/create.js +7 -27
  4. package/dist/commands/import/import-containers/create.js.map +1 -1
  5. package/dist/commands/import/import-containers/delete.d.ts +2 -9
  6. package/dist/commands/import/import-containers/delete.d.ts.map +1 -1
  7. package/dist/commands/import/import-containers/delete.js +7 -19
  8. package/dist/commands/import/import-containers/delete.js.map +1 -1
  9. package/dist/commands/import/import-containers/get.d.ts +2 -9
  10. package/dist/commands/import/import-containers/get.d.ts.map +1 -1
  11. package/dist/commands/import/import-containers/get.js +7 -19
  12. package/dist/commands/import/import-containers/get.js.map +1 -1
  13. package/dist/commands/import/import-containers/list.d.ts +2 -10
  14. package/dist/commands/import/import-containers/list.d.ts.map +1 -1
  15. package/dist/commands/import/import-containers/list.js +11 -28
  16. package/dist/commands/import/import-containers/list.js.map +1 -1
  17. package/dist/commands/import/import-containers/update.d.ts +2 -11
  18. package/dist/commands/import/import-containers/update.d.ts.map +1 -1
  19. package/dist/commands/import/import-containers/update.js +8 -35
  20. package/dist/commands/import/import-containers/update.js.map +1 -1
  21. package/dist/commands/import/import-operations/get.d.ts +2 -9
  22. package/dist/commands/import/import-operations/get.d.ts.map +1 -1
  23. package/dist/commands/import/import-operations/get.js +7 -19
  24. package/dist/commands/import/import-operations/get.js.map +1 -1
  25. package/dist/commands/import/import-operations/list.d.ts +2 -11
  26. package/dist/commands/import/import-operations/list.d.ts.map +1 -1
  27. package/dist/commands/import/import-operations/list.js +15 -33
  28. package/dist/commands/import/import-operations/list.js.map +1 -1
  29. package/dist/commands/import/import-requests/business-units.d.ts +3 -0
  30. package/dist/commands/import/import-requests/business-units.d.ts.map +1 -0
  31. package/dist/commands/import/import-requests/business-units.js +9 -0
  32. package/dist/commands/import/import-requests/business-units.js.map +1 -0
  33. package/dist/commands/import/import-requests/categories.d.ts +3 -0
  34. package/dist/commands/import/import-requests/categories.d.ts.map +1 -0
  35. package/dist/commands/import/import-requests/categories.js +9 -0
  36. package/dist/commands/import/import-requests/categories.js.map +1 -0
  37. package/dist/commands/import/import-requests/customers.d.ts +3 -0
  38. package/dist/commands/import/import-requests/customers.d.ts.map +1 -0
  39. package/dist/commands/import/import-requests/customers.js +9 -0
  40. package/dist/commands/import/import-requests/customers.js.map +1 -0
  41. package/dist/commands/import/import-requests/discount-codes.d.ts +3 -0
  42. package/dist/commands/import/import-requests/discount-codes.d.ts.map +1 -0
  43. package/dist/commands/import/import-requests/discount-codes.js +9 -0
  44. package/dist/commands/import/import-requests/discount-codes.js.map +1 -0
  45. package/dist/commands/import/import-requests/inventories.d.ts +3 -0
  46. package/dist/commands/import/import-requests/inventories.d.ts.map +1 -0
  47. package/dist/commands/import/import-requests/inventories.js +9 -0
  48. package/dist/commands/import/import-requests/inventories.js.map +1 -0
  49. package/dist/commands/import/import-requests/order-patches.d.ts +3 -0
  50. package/dist/commands/import/import-requests/order-patches.d.ts.map +1 -0
  51. package/dist/commands/import/import-requests/order-patches.js +9 -0
  52. package/dist/commands/import/import-requests/order-patches.js.map +1 -0
  53. package/dist/commands/import/import-requests/orders.d.ts +3 -0
  54. package/dist/commands/import/import-requests/orders.d.ts.map +1 -0
  55. package/dist/commands/import/import-requests/orders.js +9 -0
  56. package/dist/commands/import/import-requests/orders.js.map +1 -0
  57. package/dist/commands/import/import-requests/prices.d.ts +3 -0
  58. package/dist/commands/import/import-requests/prices.d.ts.map +1 -0
  59. package/dist/commands/import/import-requests/prices.js +9 -0
  60. package/dist/commands/import/import-requests/prices.js.map +1 -0
  61. package/dist/commands/import/import-requests/product-drafts.d.ts +3 -0
  62. package/dist/commands/import/import-requests/product-drafts.d.ts.map +1 -0
  63. package/dist/commands/import/import-requests/product-drafts.js +9 -0
  64. package/dist/commands/import/import-requests/product-drafts.js.map +1 -0
  65. package/dist/commands/import/import-requests/product-selections.d.ts +3 -0
  66. package/dist/commands/import/import-requests/product-selections.d.ts.map +1 -0
  67. package/dist/commands/import/import-requests/product-selections.js +9 -0
  68. package/dist/commands/import/import-requests/product-selections.js.map +1 -0
  69. package/dist/commands/import/import-requests/product-tailorings.d.ts +3 -0
  70. package/dist/commands/import/import-requests/product-tailorings.d.ts.map +1 -0
  71. package/dist/commands/import/import-requests/product-tailorings.js +9 -0
  72. package/dist/commands/import/import-requests/product-tailorings.js.map +1 -0
  73. package/dist/commands/import/import-requests/product-types.d.ts +3 -0
  74. package/dist/commands/import/import-requests/product-types.d.ts.map +1 -0
  75. package/dist/commands/import/import-requests/product-types.js +9 -0
  76. package/dist/commands/import/import-requests/product-types.js.map +1 -0
  77. package/dist/commands/import/import-requests/product-variant-patches.d.ts +3 -0
  78. package/dist/commands/import/import-requests/product-variant-patches.d.ts.map +1 -0
  79. package/dist/commands/import/import-requests/product-variant-patches.js +9 -0
  80. package/dist/commands/import/import-requests/product-variant-patches.js.map +1 -0
  81. package/dist/commands/import/import-requests/product-variants.d.ts +3 -0
  82. package/dist/commands/import/import-requests/product-variants.d.ts.map +1 -0
  83. package/dist/commands/import/import-requests/product-variants.js +9 -0
  84. package/dist/commands/import/import-requests/product-variants.js.map +1 -0
  85. package/dist/commands/import/import-requests/products.d.ts +3 -0
  86. package/dist/commands/import/import-requests/products.d.ts.map +1 -0
  87. package/dist/commands/import/import-requests/products.js +9 -0
  88. package/dist/commands/import/import-requests/products.js.map +1 -0
  89. package/dist/commands/import/import-requests/standalone-prices.d.ts +3 -0
  90. package/dist/commands/import/import-requests/standalone-prices.d.ts.map +1 -0
  91. package/dist/commands/import/import-requests/standalone-prices.js +9 -0
  92. package/dist/commands/import/import-requests/standalone-prices.js.map +1 -0
  93. package/dist/commands/import/import-requests/types.d.ts +3 -0
  94. package/dist/commands/import/import-requests/types.d.ts.map +1 -0
  95. package/dist/commands/import/import-requests/types.js +9 -0
  96. package/dist/commands/import/import-requests/types.js.map +1 -0
  97. package/dist/commands/import/import-requests/variants.d.ts +3 -0
  98. package/dist/commands/import/import-requests/variants.d.ts.map +1 -0
  99. package/dist/commands/import/import-requests/variants.js +9 -0
  100. package/dist/commands/import/import-requests/variants.js.map +1 -0
  101. package/dist/commands/import/import-summaries/get.d.ts +2 -9
  102. package/dist/commands/import/import-summaries/get.d.ts.map +1 -1
  103. package/dist/commands/import/import-summaries/get.js +7 -20
  104. package/dist/commands/import/import-summaries/get.js.map +1 -1
  105. package/dist/common/oclif/operation.d.ts +4 -0
  106. package/dist/common/oclif/operation.d.ts.map +1 -0
  107. package/dist/common/oclif/operation.js +23 -0
  108. package/dist/common/oclif/operation.js.map +1 -0
  109. package/package.json +3 -2
@@ -1,10 +1,3 @@
1
- import { ImportBaseCommand } from "../../../common/oclif/import-base-command.js";
2
- export default class ImportContainersCreate extends ImportBaseCommand {
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,OAAO,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AASjF,MAAM,CAAC,OAAO,OAAO,sBAAuB,SAAQ,iBAAiB;IACnE,OAAgB,WAAW,SAAgC;IAE3D,OAAgB,KAAK;;;MAMnB;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAS3B"}
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 { Flags } from "@oclif/core";
2
- import { readFileSync } from "fs";
3
- import { ImportBaseCommand } from "../../../common/oclif/import-base-command.js";
4
- function parseBodyArg(input) {
5
- if (input.startsWith("@")) {
6
- return JSON.parse(readFileSync(input.slice(1), "utf8"));
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":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AAEjF,SAAS,YAAY,CAAC,KAAa;IACjC,IAAI,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;QAC1B,OAAO,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;IAC1D,CAAC;IACD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;AAC3B,CAAC;AAED,MAAM,CAAC,OAAO,OAAO,sBAAuB,SAAQ,iBAAiB;IACnE,MAAM,CAAU,WAAW,GAAG,4BAA4B,CAAC;IAE3D,MAAM,CAAU,KAAK,GAAG;QACtB,GAAG,iBAAiB,CAAC,SAAS;QAC9B,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC;YACjB,WAAW,EAAE,sEAAsE;YACnF,QAAQ,EAAE,IAAI;SACf,CAAC;KACH,CAAC;IAEF,KAAK,CAAC,GAAG;QACP,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC;QAC3D,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAEnD,MAAM,IAAI,GAAG,YAAY,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACtC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,oBAAoB,EAAE,IAAI,CAAC,CAAC;QACtE,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;QACpB,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;IAC5C,CAAC"}
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
- import { ImportBaseCommand } from "../../../common/oclif/import-base-command.js";
2
- export default class ImportContainersDelete extends ImportBaseCommand {
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":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AAEjF,MAAM,CAAC,OAAO,OAAO,sBAAuB,SAAQ,iBAAiB;IACnE,OAAgB,WAAW,SAAgC;IAE3D,OAAgB,KAAK;;;MAMnB;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAW3B"}
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 { Flags } from "@oclif/core";
2
- import { ImportBaseCommand } from "../../../common/oclif/import-base-command.js";
3
- export default class ImportContainersDelete extends ImportBaseCommand {
4
- static description = "Delete an import container";
5
- static flags = {
6
- ...ImportBaseCommand.baseFlags,
7
- key: Flags.string({
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":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AAEjF,MAAM,CAAC,OAAO,OAAO,sBAAuB,SAAQ,iBAAiB;IACnE,MAAM,CAAU,WAAW,GAAG,4BAA4B,CAAC;IAE3D,MAAM,CAAU,KAAK,GAAG;QACtB,GAAG,iBAAiB,CAAC,SAAS;QAC9B,GAAG,EAAE,KAAK,CAAC,MAAM,CAAC;YAChB,WAAW,EAAE,uCAAuC;YACpD,QAAQ,EAAE,IAAI;SACf,CAAC;KACH,CAAC;IAEF,KAAK,CAAC,GAAG;QACP,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC;QAC3D,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAEnD,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,OAAO,CAC/B,QAAQ,EACR,sBAAsB,kBAAkB,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CACtD,CAAC;QACF,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;QACpB,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;IAC5C,CAAC"}
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
- import { ImportBaseCommand } from "../../../common/oclif/import-base-command.js";
2
- export default class ImportContainersGet extends ImportBaseCommand {
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":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AAEjF,MAAM,CAAC,OAAO,OAAO,mBAAoB,SAAQ,iBAAiB;IAChE,OAAgB,WAAW,SAAoC;IAE/D,OAAgB,KAAK;;;MAMnB;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAQ3B"}
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 { Flags } from "@oclif/core";
2
- import { ImportBaseCommand } from "../../../common/oclif/import-base-command.js";
3
- export default class ImportContainersGet extends ImportBaseCommand {
4
- static description = "Get an import container by key";
5
- static flags = {
6
- ...ImportBaseCommand.baseFlags,
7
- key: Flags.string({
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":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AAEjF,MAAM,CAAC,OAAO,OAAO,mBAAoB,SAAQ,iBAAiB;IAChE,MAAM,CAAU,WAAW,GAAG,gCAAgC,CAAC;IAE/D,MAAM,CAAU,KAAK,GAAG;QACtB,GAAG,iBAAiB,CAAC,SAAS;QAC9B,GAAG,EAAE,KAAK,CAAC,MAAM,CAAC;YAChB,WAAW,EAAE,yCAAyC;YACtD,QAAQ,EAAE,IAAI;SACf,CAAC;KACH,CAAC;IAEF,KAAK,CAAC,GAAG;QACP,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC;QACxD,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAEnD,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,sBAAsB,kBAAkB,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QAChG,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;QACpB,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;IAC5C,CAAC"}
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
- import { ImportBaseCommand } from "../../../common/oclif/import-base-command.js";
2
- export default class ImportContainersList extends ImportBaseCommand {
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":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AAEjF,MAAM,CAAC,OAAO,OAAO,oBAAqB,SAAQ,iBAAiB;IACjE,OAAgB,WAAW,SAAgC;IAE3D,OAAgB,KAAK;;;;MAYnB;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAY3B"}
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 { Flags } from "@oclif/core";
2
- import { ImportBaseCommand } from "../../../common/oclif/import-base-command.js";
3
- export default class ImportContainersList extends ImportBaseCommand {
4
- static description = "List all import containers";
5
- static flags = {
6
- ...ImportBaseCommand.baseFlags,
7
- limit: Flags.integer({
8
- description: "Maximum number of results to return",
9
- default: 20,
10
- min: 1,
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":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AAEjF,MAAM,CAAC,OAAO,OAAO,oBAAqB,SAAQ,iBAAiB;IACjE,MAAM,CAAU,WAAW,GAAG,4BAA4B,CAAC;IAE3D,MAAM,CAAU,KAAK,GAAG;QACtB,GAAG,iBAAiB,CAAC,SAAS;QAC9B,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC;YACnB,WAAW,EAAE,qCAAqC;YAClD,OAAO,EAAE,EAAE;YACX,GAAG,EAAE,CAAC;SACP,CAAC;QACF,MAAM,EAAE,KAAK,CAAC,OAAO,CAAC;YACpB,WAAW,EAAE,2BAA2B;YACxC,OAAO,EAAE,CAAC;YACV,GAAG,EAAE,CAAC;SACP,CAAC;KACH,CAAC;IAEF,KAAK,CAAC,GAAG;QACP,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC;QACzD,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,+BAA+B,CAAC,CAAC;QAEpD,MAAM,MAAM,GAAG,IAAI,eAAe,EAAE,CAAC;QACrC,MAAM,CAAC,GAAG,CAAC,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;QACzC,MAAM,CAAC,GAAG,CAAC,QAAQ,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;QAE3C,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,sBAAsB,MAAM,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;QACpF,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;QACpB,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;IAC5C,CAAC"}
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
- import { ImportBaseCommand } from "../../../common/oclif/import-base-command.js";
2
- export default class ImportContainersUpdate extends ImportBaseCommand {
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,OAAO,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AASjF,MAAM,CAAC,OAAO,OAAO,sBAAuB,SAAQ,iBAAiB;IACnE,OAAgB,WAAW,SAAgC;IAE3D,OAAgB,KAAK;;;;;MAcnB;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAa3B"}
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 { Flags } from "@oclif/core";
2
- import { readFileSync } from "fs";
3
- import { ImportBaseCommand } from "../../../common/oclif/import-base-command.js";
4
- function parseBodyArg(input) {
5
- if (input.startsWith("@")) {
6
- return JSON.parse(readFileSync(input.slice(1), "utf8"));
7
- }
8
- return JSON.parse(input);
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":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AAEjF,SAAS,YAAY,CAAC,KAAa;IACjC,IAAI,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;QAC1B,OAAO,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;IAC1D,CAAC;IACD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;AAC3B,CAAC;AAED,MAAM,CAAC,OAAO,OAAO,sBAAuB,SAAQ,iBAAiB;IACnE,MAAM,CAAU,WAAW,GAAG,4BAA4B,CAAC;IAE3D,MAAM,CAAU,KAAK,GAAG;QACtB,GAAG,iBAAiB,CAAC,SAAS;QAC9B,GAAG,EAAE,KAAK,CAAC,MAAM,CAAC;YAChB,WAAW,EAAE,uCAAuC;YACpD,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC;YACrB,WAAW,EAAE,yCAAyC;YACtD,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC;YACpB,WAAW,EAAE,gEAAgE;YAC7E,QAAQ,EAAE,IAAI;SACf,CAAC;KACH,CAAC;IAEF,KAAK,CAAC,GAAG;QACP,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC;QAC3D,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAEnD,MAAM,OAAO,GAAG,YAAY,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAC5C,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,OAAO,CAC/B,MAAM,EACN,sBAAsB,kBAAkB,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,EACrD,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,OAAO,EAAE,CACpC,CAAC;QACF,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;QACpB,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;IAC5C,CAAC"}
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
- import { ImportBaseCommand } from "../../../common/oclif/import-base-command.js";
2
- export default class ImportOperationsGet extends ImportBaseCommand {
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":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AAEjF,MAAM,CAAC,OAAO,OAAO,mBAAoB,SAAQ,iBAAiB;IAChE,OAAgB,WAAW,SAAmC;IAE9D,OAAgB,KAAK;;;MAMnB;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAQ3B"}
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 { Flags } from "@oclif/core";
2
- import { ImportBaseCommand } from "../../../common/oclif/import-base-command.js";
3
- export default class ImportOperationsGet extends ImportBaseCommand {
4
- static description = "Get an import operation by ID";
5
- static flags = {
6
- ...ImportBaseCommand.baseFlags,
7
- id: Flags.string({
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":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AAEjF,MAAM,CAAC,OAAO,OAAO,mBAAoB,SAAQ,iBAAiB;IAChE,MAAM,CAAU,WAAW,GAAG,+BAA+B,CAAC;IAE9D,MAAM,CAAU,KAAK,GAAG;QACtB,GAAG,iBAAiB,CAAC,SAAS;QAC9B,EAAE,EAAE,KAAK,CAAC,MAAM,CAAC;YACf,WAAW,EAAE,wCAAwC;YACrD,QAAQ,EAAE,IAAI;SACf,CAAC;KACH,CAAC;IAEF,KAAK,CAAC,GAAG;QACP,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC;QACxD,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAEnD,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,sBAAsB,kBAAkB,CAAC,KAAK,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;QAC/F,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;QACpB,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;IAC5C,CAAC"}
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
- import { ImportBaseCommand } from "../../../common/oclif/import-base-command.js";
2
- export default class ImportOperationsList extends ImportBaseCommand {
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":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AAEjF,MAAM,CAAC,OAAO,OAAO,oBAAqB,SAAQ,iBAAiB;IACjE,OAAgB,WAAW,SAAoD;IAE/E,OAAgB,KAAK;;;;;MAgBnB;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAgB3B"}
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 { Flags } from "@oclif/core";
2
- import { ImportBaseCommand } from "../../../common/oclif/import-base-command.js";
3
- export default class ImportOperationsList extends ImportBaseCommand {
4
- static description = "List import operations for an import container";
5
- static flags = {
6
- ...ImportBaseCommand.baseFlags,
7
- "container-key": Flags.string({
8
- description: "Key of the import container",
9
- required: true,
10
- }),
11
- limit: Flags.integer({
12
- description: "Maximum number of results to return",
13
- default: 20,
14
- min: 1,
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":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AAEjF,MAAM,CAAC,OAAO,OAAO,oBAAqB,SAAQ,iBAAiB;IACjE,MAAM,CAAU,WAAW,GAAG,gDAAgD,CAAC;IAE/E,MAAM,CAAU,KAAK,GAAG;QACtB,GAAG,iBAAiB,CAAC,SAAS;QAC9B,eAAe,EAAE,KAAK,CAAC,MAAM,CAAC;YAC5B,WAAW,EAAE,6BAA6B;YAC1C,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC;YACnB,WAAW,EAAE,qCAAqC;YAClD,OAAO,EAAE,EAAE;YACX,GAAG,EAAE,CAAC;SACP,CAAC;QACF,MAAM,EAAE,KAAK,CAAC,OAAO,CAAC;YACpB,WAAW,EAAE,2BAA2B;YACxC,OAAO,EAAE,CAAC;YACV,GAAG,EAAE,CAAC;SACP,CAAC;KACH,CAAC;IAEF,KAAK,CAAC,GAAG;QACP,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC;QACzD,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,+BAA+B,CAAC,CAAC;QAEpD,MAAM,MAAM,GAAG,IAAI,eAAe,EAAE,CAAC;QACrC,MAAM,CAAC,GAAG,CAAC,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;QACzC,MAAM,CAAC,GAAG,CAAC,QAAQ,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;QAE3C,MAAM,YAAY,GAAG,kBAAkB,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC;QAChE,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,OAAO,CAC/B,KAAK,EACL,sBAAsB,YAAY,sBAAsB,MAAM,CAAC,QAAQ,EAAE,EAAE,CAC5E,CAAC;QACF,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;QACpB,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;IAC5C,CAAC"}
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,3 @@
1
+ declare const _default: typeof import("../../../common/oclif/import-base-command.js").ImportBaseCommand;
2
+ export default _default;
3
+ //# sourceMappingURL=business-units.d.ts.map
@@ -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,3 @@
1
+ declare const _default: typeof import("../../../common/oclif/import-base-command.js").ImportBaseCommand;
2
+ export default _default;
3
+ //# sourceMappingURL=categories.d.ts.map
@@ -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,3 @@
1
+ declare const _default: typeof import("../../../common/oclif/import-base-command.js").ImportBaseCommand;
2
+ export default _default;
3
+ //# sourceMappingURL=customers.d.ts.map
@@ -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,3 @@
1
+ declare const _default: typeof import("../../../common/oclif/import-base-command.js").ImportBaseCommand;
2
+ export default _default;
3
+ //# sourceMappingURL=discount-codes.d.ts.map
@@ -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,3 @@
1
+ declare const _default: typeof import("../../../common/oclif/import-base-command.js").ImportBaseCommand;
2
+ export default _default;
3
+ //# sourceMappingURL=inventories.d.ts.map
@@ -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,3 @@
1
+ declare const _default: typeof import("../../../common/oclif/import-base-command.js").ImportBaseCommand;
2
+ export default _default;
3
+ //# sourceMappingURL=order-patches.d.ts.map
@@ -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"}
@@ -0,0 +1,9 @@
1
+ import { makeImportOperationCommand } from "../../../common/oclif/operation.js";
2
+ export default makeImportOperationCommand({
3
+ description: "Import order patches into an import container",
4
+ method: "POST",
5
+ path: "/order-patches/import-containers/{container-key}",
6
+ params: [{ flag: "container-key", description: "Key of the import container" }],
7
+ body: true,
8
+ });
9
+ //# sourceMappingURL=order-patches.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"order-patches.js","sourceRoot":"","sources":["../../../../src/commands/import/import-requests/order-patches.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,eAAe,0BAA0B,CAAC;IACxC,WAAW,EAAE,+CAA+C;IAC5D,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,kDAAkD;IACxD,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,WAAW,EAAE,6BAA6B,EAAE,CAAC;IAC/E,IAAI,EAAE,IAAI;CACX,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ declare const _default: typeof import("../../../common/oclif/import-base-command.js").ImportBaseCommand;
2
+ export default _default;
3
+ //# sourceMappingURL=orders.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"orders.d.ts","sourceRoot":"","sources":["../../../../src/commands/import/import-requests/orders.ts"],"names":[],"mappings":";AAEA,wBAMG"}
@@ -0,0 +1,9 @@
1
+ import { makeImportOperationCommand } from "../../../common/oclif/operation.js";
2
+ export default makeImportOperationCommand({
3
+ description: "Import orders into an import container",
4
+ method: "POST",
5
+ path: "/orders/import-containers/{container-key}",
6
+ params: [{ flag: "container-key", description: "Key of the import container" }],
7
+ body: true,
8
+ });
9
+ //# sourceMappingURL=orders.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"orders.js","sourceRoot":"","sources":["../../../../src/commands/import/import-requests/orders.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,eAAe,0BAA0B,CAAC;IACxC,WAAW,EAAE,wCAAwC;IACrD,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,2CAA2C;IACjD,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,WAAW,EAAE,6BAA6B,EAAE,CAAC;IAC/E,IAAI,EAAE,IAAI;CACX,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ declare const _default: typeof import("../../../common/oclif/import-base-command.js").ImportBaseCommand;
2
+ export default _default;
3
+ //# sourceMappingURL=prices.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prices.d.ts","sourceRoot":"","sources":["../../../../src/commands/import/import-requests/prices.ts"],"names":[],"mappings":";AAEA,wBAMG"}
@@ -0,0 +1,9 @@
1
+ import { makeImportOperationCommand } from "../../../common/oclif/operation.js";
2
+ export default makeImportOperationCommand({
3
+ description: "Import prices into an import container",
4
+ method: "POST",
5
+ path: "/prices/import-containers/{container-key}",
6
+ params: [{ flag: "container-key", description: "Key of the import container" }],
7
+ body: true,
8
+ });
9
+ //# sourceMappingURL=prices.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prices.js","sourceRoot":"","sources":["../../../../src/commands/import/import-requests/prices.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,eAAe,0BAA0B,CAAC;IACxC,WAAW,EAAE,wCAAwC;IACrD,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,2CAA2C;IACjD,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,WAAW,EAAE,6BAA6B,EAAE,CAAC;IAC/E,IAAI,EAAE,IAAI;CACX,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ declare const _default: typeof import("../../../common/oclif/import-base-command.js").ImportBaseCommand;
2
+ export default _default;
3
+ //# sourceMappingURL=product-drafts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-drafts.d.ts","sourceRoot":"","sources":["../../../../src/commands/import/import-requests/product-drafts.ts"],"names":[],"mappings":";AAEA,wBAMG"}
@@ -0,0 +1,9 @@
1
+ import { makeImportOperationCommand } from "../../../common/oclif/operation.js";
2
+ export default makeImportOperationCommand({
3
+ description: "Import product drafts into an import container",
4
+ method: "POST",
5
+ path: "/product-drafts/import-containers/{container-key}",
6
+ params: [{ flag: "container-key", description: "Key of the import container" }],
7
+ body: true,
8
+ });
9
+ //# sourceMappingURL=product-drafts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-drafts.js","sourceRoot":"","sources":["../../../../src/commands/import/import-requests/product-drafts.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,3 @@
1
+ declare const _default: typeof import("../../../common/oclif/import-base-command.js").ImportBaseCommand;
2
+ export default _default;
3
+ //# sourceMappingURL=product-selections.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-selections.d.ts","sourceRoot":"","sources":["../../../../src/commands/import/import-requests/product-selections.ts"],"names":[],"mappings":";AAEA,wBAMG"}
@@ -0,0 +1,9 @@
1
+ import { makeImportOperationCommand } from "../../../common/oclif/operation.js";
2
+ export default makeImportOperationCommand({
3
+ description: "Import product selections into an import container",
4
+ method: "POST",
5
+ path: "/product-selections/import-containers/{container-key}",
6
+ params: [{ flag: "container-key", description: "Key of the import container" }],
7
+ body: true,
8
+ });
9
+ //# sourceMappingURL=product-selections.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-selections.js","sourceRoot":"","sources":["../../../../src/commands/import/import-requests/product-selections.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,eAAe,0BAA0B,CAAC;IACxC,WAAW,EAAE,oDAAoD;IACjE,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,uDAAuD;IAC7D,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,WAAW,EAAE,6BAA6B,EAAE,CAAC;IAC/E,IAAI,EAAE,IAAI;CACX,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ declare const _default: typeof import("../../../common/oclif/import-base-command.js").ImportBaseCommand;
2
+ export default _default;
3
+ //# sourceMappingURL=product-tailorings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-tailorings.d.ts","sourceRoot":"","sources":["../../../../src/commands/import/import-requests/product-tailorings.ts"],"names":[],"mappings":";AAEA,wBAMG"}
@@ -0,0 +1,9 @@
1
+ import { makeImportOperationCommand } from "../../../common/oclif/operation.js";
2
+ export default makeImportOperationCommand({
3
+ description: "Import product tailorings into an import container",
4
+ method: "POST",
5
+ path: "/product-tailorings/import-containers/{container-key}",
6
+ params: [{ flag: "container-key", description: "Key of the import container" }],
7
+ body: true,
8
+ });
9
+ //# sourceMappingURL=product-tailorings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-tailorings.js","sourceRoot":"","sources":["../../../../src/commands/import/import-requests/product-tailorings.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,eAAe,0BAA0B,CAAC;IACxC,WAAW,EAAE,oDAAoD;IACjE,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,uDAAuD;IAC7D,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,WAAW,EAAE,6BAA6B,EAAE,CAAC;IAC/E,IAAI,EAAE,IAAI;CACX,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ declare const _default: typeof import("../../../common/oclif/import-base-command.js").ImportBaseCommand;
2
+ export default _default;
3
+ //# sourceMappingURL=product-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-types.d.ts","sourceRoot":"","sources":["../../../../src/commands/import/import-requests/product-types.ts"],"names":[],"mappings":";AAEA,wBAMG"}
@@ -0,0 +1,9 @@
1
+ import { makeImportOperationCommand } from "../../../common/oclif/operation.js";
2
+ export default makeImportOperationCommand({
3
+ description: "Import product types into an import container",
4
+ method: "POST",
5
+ path: "/product-types/import-containers/{container-key}",
6
+ params: [{ flag: "container-key", description: "Key of the import container" }],
7
+ body: true,
8
+ });
9
+ //# sourceMappingURL=product-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-types.js","sourceRoot":"","sources":["../../../../src/commands/import/import-requests/product-types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,eAAe,0BAA0B,CAAC;IACxC,WAAW,EAAE,+CAA+C;IAC5D,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,kDAAkD;IACxD,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,WAAW,EAAE,6BAA6B,EAAE,CAAC;IAC/E,IAAI,EAAE,IAAI;CACX,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ declare const _default: typeof import("../../../common/oclif/import-base-command.js").ImportBaseCommand;
2
+ export default _default;
3
+ //# sourceMappingURL=product-variant-patches.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-variant-patches.d.ts","sourceRoot":"","sources":["../../../../src/commands/import/import-requests/product-variant-patches.ts"],"names":[],"mappings":";AAEA,wBAMG"}
@@ -0,0 +1,9 @@
1
+ import { makeImportOperationCommand } from "../../../common/oclif/operation.js";
2
+ export default makeImportOperationCommand({
3
+ description: "Import product variant patches into an import container",
4
+ method: "POST",
5
+ path: "/product-variant-patches/import-containers/{container-key}",
6
+ params: [{ flag: "container-key", description: "Key of the import container" }],
7
+ body: true,
8
+ });
9
+ //# sourceMappingURL=product-variant-patches.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-variant-patches.js","sourceRoot":"","sources":["../../../../src/commands/import/import-requests/product-variant-patches.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,eAAe,0BAA0B,CAAC;IACxC,WAAW,EAAE,yDAAyD;IACtE,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,4DAA4D;IAClE,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,WAAW,EAAE,6BAA6B,EAAE,CAAC;IAC/E,IAAI,EAAE,IAAI;CACX,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ declare const _default: typeof import("../../../common/oclif/import-base-command.js").ImportBaseCommand;
2
+ export default _default;
3
+ //# sourceMappingURL=product-variants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-variants.d.ts","sourceRoot":"","sources":["../../../../src/commands/import/import-requests/product-variants.ts"],"names":[],"mappings":";AAEA,wBAMG"}
@@ -0,0 +1,9 @@
1
+ import { makeImportOperationCommand } from "../../../common/oclif/operation.js";
2
+ export default makeImportOperationCommand({
3
+ description: "Import product variants into an import container",
4
+ method: "POST",
5
+ path: "/product-variants/import-containers/{container-key}",
6
+ params: [{ flag: "container-key", description: "Key of the import container" }],
7
+ body: true,
8
+ });
9
+ //# sourceMappingURL=product-variants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-variants.js","sourceRoot":"","sources":["../../../../src/commands/import/import-requests/product-variants.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,eAAe,0BAA0B,CAAC;IACxC,WAAW,EAAE,kDAAkD;IAC/D,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,qDAAqD;IAC3D,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,WAAW,EAAE,6BAA6B,EAAE,CAAC;IAC/E,IAAI,EAAE,IAAI;CACX,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ declare const _default: typeof import("../../../common/oclif/import-base-command.js").ImportBaseCommand;
2
+ export default _default;
3
+ //# sourceMappingURL=products.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"products.d.ts","sourceRoot":"","sources":["../../../../src/commands/import/import-requests/products.ts"],"names":[],"mappings":";AAEA,wBAMG"}
@@ -0,0 +1,9 @@
1
+ import { makeImportOperationCommand } from "../../../common/oclif/operation.js";
2
+ export default makeImportOperationCommand({
3
+ description: "Import products into an import container",
4
+ method: "POST",
5
+ path: "/products/import-containers/{container-key}",
6
+ params: [{ flag: "container-key", description: "Key of the import container" }],
7
+ body: true,
8
+ });
9
+ //# sourceMappingURL=products.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"products.js","sourceRoot":"","sources":["../../../../src/commands/import/import-requests/products.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,eAAe,0BAA0B,CAAC;IACxC,WAAW,EAAE,0CAA0C;IACvD,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,6CAA6C;IACnD,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,WAAW,EAAE,6BAA6B,EAAE,CAAC;IAC/E,IAAI,EAAE,IAAI;CACX,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ declare const _default: typeof import("../../../common/oclif/import-base-command.js").ImportBaseCommand;
2
+ export default _default;
3
+ //# sourceMappingURL=standalone-prices.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"standalone-prices.d.ts","sourceRoot":"","sources":["../../../../src/commands/import/import-requests/standalone-prices.ts"],"names":[],"mappings":";AAEA,wBAMG"}
@@ -0,0 +1,9 @@
1
+ import { makeImportOperationCommand } from "../../../common/oclif/operation.js";
2
+ export default makeImportOperationCommand({
3
+ description: "Import standalone prices into an import container",
4
+ method: "POST",
5
+ path: "/standalone-prices/import-containers/{container-key}",
6
+ params: [{ flag: "container-key", description: "Key of the import container" }],
7
+ body: true,
8
+ });
9
+ //# sourceMappingURL=standalone-prices.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"standalone-prices.js","sourceRoot":"","sources":["../../../../src/commands/import/import-requests/standalone-prices.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,eAAe,0BAA0B,CAAC;IACxC,WAAW,EAAE,mDAAmD;IAChE,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,sDAAsD;IAC5D,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,WAAW,EAAE,6BAA6B,EAAE,CAAC;IAC/E,IAAI,EAAE,IAAI;CACX,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ declare const _default: typeof import("../../../common/oclif/import-base-command.js").ImportBaseCommand;
2
+ export default _default;
3
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/commands/import/import-requests/types.ts"],"names":[],"mappings":";AAEA,wBAMG"}
@@ -0,0 +1,9 @@
1
+ import { makeImportOperationCommand } from "../../../common/oclif/operation.js";
2
+ export default makeImportOperationCommand({
3
+ description: "Import types into an import container",
4
+ method: "POST",
5
+ path: "/types/import-containers/{container-key}",
6
+ params: [{ flag: "container-key", description: "Key of the import container" }],
7
+ body: true,
8
+ });
9
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/commands/import/import-requests/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,eAAe,0BAA0B,CAAC;IACxC,WAAW,EAAE,uCAAuC;IACpD,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,0CAA0C;IAChD,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,WAAW,EAAE,6BAA6B,EAAE,CAAC;IAC/E,IAAI,EAAE,IAAI;CACX,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ declare const _default: typeof import("../../../common/oclif/import-base-command.js").ImportBaseCommand;
2
+ export default _default;
3
+ //# sourceMappingURL=variants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"variants.d.ts","sourceRoot":"","sources":["../../../../src/commands/import/import-requests/variants.ts"],"names":[],"mappings":";AAEA,wBAMG"}
@@ -0,0 +1,9 @@
1
+ import { makeImportOperationCommand } from "../../../common/oclif/operation.js";
2
+ export default makeImportOperationCommand({
3
+ description: "Import variants into an import container",
4
+ method: "POST",
5
+ path: "/variants/import-containers/{container-key}",
6
+ params: [{ flag: "container-key", description: "Key of the import container" }],
7
+ body: true,
8
+ });
9
+ //# sourceMappingURL=variants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"variants.js","sourceRoot":"","sources":["../../../../src/commands/import/import-requests/variants.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,eAAe,0BAA0B,CAAC;IACxC,WAAW,EAAE,0CAA0C;IACvD,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,6CAA6C;IACnD,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,WAAW,EAAE,6BAA6B,EAAE,CAAC;IAC/E,IAAI,EAAE,IAAI;CACX,CAAC,CAAC"}
@@ -1,10 +1,3 @@
1
- import { ImportBaseCommand } from "../../../common/oclif/import-base-command.js";
2
- export default class ImportSummariesGet extends ImportBaseCommand {
3
- static description: string;
4
- static flags: {
5
- "container-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-summaries/get.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AAEjF,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,iBAAiB;IAC/D,OAAgB,WAAW,SAAoD;IAE/E,OAAgB,KAAK;;;MAMnB;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAS3B"}
1
+ {"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../../src/commands/import/import-summaries/get.ts"],"names":[],"mappings":";AAEA,wBAKG"}
@@ -1,21 +1,8 @@
1
- import { Flags } from "@oclif/core";
2
- import { ImportBaseCommand } from "../../../common/oclif/import-base-command.js";
3
- export default class ImportSummariesGet extends ImportBaseCommand {
4
- static description = "Get the import summary for an import container";
5
- static flags = {
6
- ...ImportBaseCommand.baseFlags,
7
- "container-key": Flags.string({
8
- description: "Key of the import container",
9
- required: true,
10
- }),
11
- };
12
- async run() {
13
- const { flags } = await this.parse(ImportSummariesGet);
14
- this.spinner.start("Fetching import summary...");
15
- const containerKey = encodeURIComponent(flags["container-key"]);
16
- const result = await this.request("GET", `/import-containers/${containerKey}/import-summary`);
17
- this.spinner.stop();
18
- this.log(JSON.stringify(result, null, 2));
19
- }
20
- }
1
+ import { makeImportOperationCommand } from "../../../common/oclif/operation.js";
2
+ export default makeImportOperationCommand({
3
+ description: "Get the import summary for an import container",
4
+ method: "GET",
5
+ path: "/import-containers/{container-key}/import-summaries",
6
+ params: [{ flag: "container-key", description: "Key of the import container" }],
7
+ });
21
8
  //# sourceMappingURL=get.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"get.js","sourceRoot":"","sources":["../../../../src/commands/import/import-summaries/get.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AAEjF,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,iBAAiB;IAC/D,MAAM,CAAU,WAAW,GAAG,gDAAgD,CAAC;IAE/E,MAAM,CAAU,KAAK,GAAG;QACtB,GAAG,iBAAiB,CAAC,SAAS;QAC9B,eAAe,EAAE,KAAK,CAAC,MAAM,CAAC;YAC5B,WAAW,EAAE,6BAA6B;YAC1C,QAAQ,EAAE,IAAI;SACf,CAAC;KACH,CAAC;IAEF,KAAK,CAAC,GAAG;QACP,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC;QACvD,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,4BAA4B,CAAC,CAAC;QAEjD,MAAM,YAAY,GAAG,kBAAkB,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC;QAChE,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,sBAAsB,YAAY,iBAAiB,CAAC,CAAC;QAC9F,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;QACpB,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;IAC5C,CAAC"}
1
+ {"version":3,"file":"get.js","sourceRoot":"","sources":["../../../../src/commands/import/import-summaries/get.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,qDAAqD;IAC3D,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,WAAW,EAAE,6BAA6B,EAAE,CAAC;CAChF,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { type OperationConfig } from "@commercetools/cli-common";
2
+ import { ImportBaseCommand } from "./import-base-command.js";
3
+ export declare function makeImportOperationCommand(config: OperationConfig): typeof ImportBaseCommand;
4
+ //# sourceMappingURL=operation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operation.d.ts","sourceRoot":"","sources":["../../../src/common/oclif/operation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoC,KAAK,eAAe,EAAE,MAAM,2BAA2B,CAAC;AACnG,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAE7D,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,iBAAiB,CAuB5F"}
@@ -0,0 +1,23 @@
1
+ import { operationFlags, operationRequest } from "@commercetools/cli-common";
2
+ import { ImportBaseCommand } from "./import-base-command.js";
3
+ export function makeImportOperationCommand(config) {
4
+ class ImportOperationCommand extends ImportBaseCommand {
5
+ static description = config.description;
6
+ static flags = {
7
+ ...ImportBaseCommand.baseFlags,
8
+ ...operationFlags(config),
9
+ };
10
+ async run() {
11
+ const { flags } = await this.parse(ImportOperationCommand);
12
+ this.spinner.start(`${config.description}...`);
13
+ const { method, path, body } = operationRequest(config, flags);
14
+ const result = body === undefined
15
+ ? await this.request(method, path)
16
+ : await this.request(method, path, body);
17
+ this.spinner.stop();
18
+ this.log(JSON.stringify(result, null, 2));
19
+ }
20
+ }
21
+ return ImportOperationCommand;
22
+ }
23
+ //# sourceMappingURL=operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operation.js","sourceRoot":"","sources":["../../../src/common/oclif/operation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAwB,MAAM,2BAA2B,CAAC;AACnG,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAE7D,MAAM,UAAU,0BAA0B,CAAC,MAAuB;IAChE,MAAM,sBAAuB,SAAQ,iBAAiB;QACpD,MAAM,CAAU,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC;QAEjD,MAAM,CAAU,KAAK,GAAG;YACtB,GAAG,iBAAiB,CAAC,SAAS;YAC9B,GAAG,cAAc,CAAC,MAAM,CAAC;SAC1B,CAAC;QAEF,KAAK,CAAC,GAAG;YACP,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC;YAC3D,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC,WAAW,KAAK,CAAC,CAAC;YAE/C,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,gBAAgB,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;YAC/D,MAAM,MAAM,GACV,IAAI,KAAK,SAAS;gBAChB,CAAC,CAAC,MAAM,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC;gBAClC,CAAC,CAAC,MAAM,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;YAC7C,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;YACpB,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;QAC5C,CAAC;;IAEH,OAAO,sBAA6D,CAAC;AACvE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercetools/cli-topic-import",
3
- "version": "0.0.5",
3
+ "version": "0.1.0",
4
4
  "license": "MIT",
5
5
  "main": "./dist/index.js",
6
6
  "type": "module",
@@ -18,7 +18,8 @@
18
18
  "coverage": "vitest run --disable-console-intercept --coverage"
19
19
  },
20
20
  "dependencies": {
21
- "@commercetools/cli-plugin-auth": "0.0.13",
21
+ "@commercetools/cli-common": "0.0.13",
22
+ "@commercetools/cli-plugin-auth": "0.0.14",
22
23
  "@oclif/core": "4.2.10",
23
24
  "ora": "8"
24
25
  },