@commercelayer/cli-plugin-triggers 2.0.5 → 2.1.4

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 (172) hide show
  1. package/lib/base.d.ts +8 -8
  2. package/lib/base.js +10 -10
  3. package/lib/commands/adyen_payment/details.d.ts +6 -6
  4. package/lib/commands/adyen_payment/details.js +1 -1
  5. package/lib/commands/adyen_payment/index.d.ts +6 -6
  6. package/lib/commands/adyen_payment/index.js +1 -1
  7. package/lib/commands/authorization/capture.d.ts +6 -6
  8. package/lib/commands/authorization/capture.js +1 -1
  9. package/lib/commands/authorization/capture_amount_cents.d.ts +6 -6
  10. package/lib/commands/authorization/capture_amount_cents.js +1 -1
  11. package/lib/commands/authorization/index.d.ts +6 -6
  12. package/lib/commands/authorization/index.js +1 -1
  13. package/lib/commands/authorization/void.d.ts +6 -6
  14. package/lib/commands/authorization/void.js +1 -1
  15. package/lib/commands/bundle/compute_compare_at_amount.d.ts +6 -6
  16. package/lib/commands/bundle/compute_compare_at_amount.js +1 -1
  17. package/lib/commands/bundle/compute_price_amount.d.ts +6 -6
  18. package/lib/commands/bundle/compute_price_amount.js +1 -1
  19. package/lib/commands/bundle/index.d.ts +6 -6
  20. package/lib/commands/bundle/index.js +1 -1
  21. package/lib/commands/capture/index.d.ts +6 -6
  22. package/lib/commands/capture/index.js +1 -1
  23. package/lib/commands/capture/refund.d.ts +6 -6
  24. package/lib/commands/capture/refund.js +1 -1
  25. package/lib/commands/capture/refund_amount_cents.d.ts +6 -6
  26. package/lib/commands/capture/refund_amount_cents.js +1 -1
  27. package/lib/commands/checkout_com_payment/details.d.ts +6 -6
  28. package/lib/commands/checkout_com_payment/details.js +1 -1
  29. package/lib/commands/checkout_com_payment/index.d.ts +6 -6
  30. package/lib/commands/checkout_com_payment/index.js +1 -1
  31. package/lib/commands/checkout_com_payment/refresh.d.ts +6 -6
  32. package/lib/commands/checkout_com_payment/refresh.js +1 -1
  33. package/lib/commands/customer_password_reset/index.d.ts +6 -6
  34. package/lib/commands/customer_password_reset/index.js +1 -1
  35. package/lib/commands/customer_password_reset/reset_password_token.d.ts +6 -6
  36. package/lib/commands/customer_password_reset/reset_password_token.js +1 -1
  37. package/lib/commands/gift_card/activate.d.ts +6 -6
  38. package/lib/commands/gift_card/activate.js +1 -1
  39. package/lib/commands/gift_card/balance_change_cents.d.ts +6 -6
  40. package/lib/commands/gift_card/balance_change_cents.js +1 -1
  41. package/lib/commands/gift_card/deactivate.d.ts +6 -6
  42. package/lib/commands/gift_card/deactivate.js +1 -1
  43. package/lib/commands/gift_card/index.d.ts +6 -6
  44. package/lib/commands/gift_card/index.js +1 -1
  45. package/lib/commands/gift_card/purchase.d.ts +6 -6
  46. package/lib/commands/gift_card/purchase.js +1 -1
  47. package/lib/commands/in_stock_subscription/activate.d.ts +6 -6
  48. package/lib/commands/in_stock_subscription/activate.js +1 -1
  49. package/lib/commands/in_stock_subscription/deactivate.d.ts +6 -6
  50. package/lib/commands/in_stock_subscription/deactivate.js +1 -1
  51. package/lib/commands/in_stock_subscription/index.d.ts +6 -6
  52. package/lib/commands/in_stock_subscription/index.js +1 -1
  53. package/lib/commands/klarna_payment/index.d.ts +6 -6
  54. package/lib/commands/klarna_payment/index.js +1 -1
  55. package/lib/commands/klarna_payment/update.d.ts +6 -6
  56. package/lib/commands/klarna_payment/update.js +1 -1
  57. package/lib/commands/noc.d.ts +1 -1
  58. package/lib/commands/noc.js +2 -2
  59. package/lib/commands/order/approve.d.ts +6 -6
  60. package/lib/commands/order/approve.js +1 -1
  61. package/lib/commands/order/approve_and_capture.d.ts +6 -6
  62. package/lib/commands/order/approve_and_capture.js +1 -1
  63. package/lib/commands/order/archive.d.ts +6 -6
  64. package/lib/commands/order/archive.js +1 -1
  65. package/lib/commands/order/authorization_amount_cents.d.ts +6 -6
  66. package/lib/commands/order/authorization_amount_cents.js +1 -1
  67. package/lib/commands/order/authorize.d.ts +6 -6
  68. package/lib/commands/order/authorize.js +1 -1
  69. package/lib/commands/order/billing_address_clone_id.d.ts +8 -8
  70. package/lib/commands/order/billing_address_clone_id.js +2 -2
  71. package/lib/commands/order/billing_address_same_as_shipping.d.ts +6 -6
  72. package/lib/commands/order/billing_address_same_as_shipping.js +1 -1
  73. package/lib/commands/order/cancel.d.ts +6 -6
  74. package/lib/commands/order/cancel.js +1 -1
  75. package/lib/commands/order/capture.d.ts +6 -6
  76. package/lib/commands/order/capture.js +1 -1
  77. package/lib/commands/order/customer_payment_source_id.d.ts +8 -8
  78. package/lib/commands/order/customer_payment_source_id.js +2 -2
  79. package/lib/commands/order/index.d.ts +6 -6
  80. package/lib/commands/order/index.js +1 -1
  81. package/lib/commands/order/place.d.ts +6 -6
  82. package/lib/commands/order/place.js +1 -1
  83. package/lib/commands/order/refresh.d.ts +6 -6
  84. package/lib/commands/order/refresh.js +1 -1
  85. package/lib/commands/order/refund.d.ts +6 -6
  86. package/lib/commands/order/refund.js +1 -1
  87. package/lib/commands/order/save_billing_address_to_customer_address_book.d.ts +6 -6
  88. package/lib/commands/order/save_billing_address_to_customer_address_book.js +1 -1
  89. package/lib/commands/order/save_payment_source_to_customer_wallet.d.ts +6 -6
  90. package/lib/commands/order/save_payment_source_to_customer_wallet.js +1 -1
  91. package/lib/commands/order/save_shipping_address_to_customer_address_book.d.ts +6 -6
  92. package/lib/commands/order/save_shipping_address_to_customer_address_book.js +1 -1
  93. package/lib/commands/order/shipping_address_clone_id.d.ts +8 -8
  94. package/lib/commands/order/shipping_address_clone_id.js +2 -2
  95. package/lib/commands/order/shipping_address_same_as_billing.d.ts +6 -6
  96. package/lib/commands/order/shipping_address_same_as_billing.js +1 -1
  97. package/lib/commands/order/unarchive.d.ts +6 -6
  98. package/lib/commands/order/unarchive.js +1 -1
  99. package/lib/commands/order/update_taxes.d.ts +6 -6
  100. package/lib/commands/order/update_taxes.js +1 -1
  101. package/lib/commands/order_subscription/activate.d.ts +6 -6
  102. package/lib/commands/order_subscription/activate.js +1 -1
  103. package/lib/commands/order_subscription/cancel.d.ts +6 -6
  104. package/lib/commands/order_subscription/cancel.js +1 -1
  105. package/lib/commands/order_subscription/deactivate.d.ts +6 -6
  106. package/lib/commands/order_subscription/deactivate.js +1 -1
  107. package/lib/commands/order_subscription/index.d.ts +6 -6
  108. package/lib/commands/order_subscription/index.js +1 -1
  109. package/lib/commands/return/approve.d.ts +6 -6
  110. package/lib/commands/return/approve.js +1 -1
  111. package/lib/commands/return/archive.d.ts +6 -6
  112. package/lib/commands/return/archive.js +1 -1
  113. package/lib/commands/return/cancel.d.ts +6 -6
  114. package/lib/commands/return/cancel.js +1 -1
  115. package/lib/commands/return/index.d.ts +6 -6
  116. package/lib/commands/return/index.js +1 -1
  117. package/lib/commands/return/receive.d.ts +6 -6
  118. package/lib/commands/return/receive.js +1 -1
  119. package/lib/commands/return/reject.d.ts +6 -6
  120. package/lib/commands/return/reject.js +1 -1
  121. package/lib/commands/return/request.d.ts +6 -6
  122. package/lib/commands/return/request.js +1 -1
  123. package/lib/commands/return/restock.d.ts +6 -6
  124. package/lib/commands/return/restock.js +1 -1
  125. package/lib/commands/return/ship.d.ts +6 -6
  126. package/lib/commands/return/ship.js +1 -1
  127. package/lib/commands/return/unarchive.d.ts +6 -6
  128. package/lib/commands/return/unarchive.js +1 -1
  129. package/lib/commands/return_line_item/index.d.ts +6 -6
  130. package/lib/commands/return_line_item/index.js +1 -1
  131. package/lib/commands/return_line_item/restock.d.ts +6 -6
  132. package/lib/commands/return_line_item/restock.js +1 -1
  133. package/lib/commands/shipment/get_rates.d.ts +6 -6
  134. package/lib/commands/shipment/get_rates.js +1 -1
  135. package/lib/commands/shipment/index.d.ts +6 -6
  136. package/lib/commands/shipment/index.js +1 -1
  137. package/lib/commands/shipment/on_hold.d.ts +6 -6
  138. package/lib/commands/shipment/on_hold.js +1 -1
  139. package/lib/commands/shipment/packing.d.ts +6 -6
  140. package/lib/commands/shipment/packing.js +1 -1
  141. package/lib/commands/shipment/picking.d.ts +6 -6
  142. package/lib/commands/shipment/picking.js +1 -1
  143. package/lib/commands/shipment/purchase.d.ts +6 -6
  144. package/lib/commands/shipment/purchase.js +1 -1
  145. package/lib/commands/shipment/ready_to_ship.d.ts +6 -6
  146. package/lib/commands/shipment/ready_to_ship.js +1 -1
  147. package/lib/commands/shipment/ship.d.ts +6 -6
  148. package/lib/commands/shipment/ship.js +1 -1
  149. package/lib/commands/stock_transfer/cancel.d.ts +6 -6
  150. package/lib/commands/stock_transfer/cancel.js +1 -1
  151. package/lib/commands/stock_transfer/complete.d.ts +6 -6
  152. package/lib/commands/stock_transfer/complete.js +1 -1
  153. package/lib/commands/stock_transfer/in_transit.d.ts +6 -6
  154. package/lib/commands/stock_transfer/in_transit.js +1 -1
  155. package/lib/commands/stock_transfer/index.d.ts +6 -6
  156. package/lib/commands/stock_transfer/index.js +1 -1
  157. package/lib/commands/stock_transfer/picking.d.ts +6 -6
  158. package/lib/commands/stock_transfer/picking.js +1 -1
  159. package/lib/commands/stock_transfer/upcoming.d.ts +6 -6
  160. package/lib/commands/stock_transfer/upcoming.js +1 -1
  161. package/lib/commands/stripe_payment/index.d.ts +6 -6
  162. package/lib/commands/stripe_payment/index.js +1 -1
  163. package/lib/commands/stripe_payment/refresh.d.ts +6 -6
  164. package/lib/commands/stripe_payment/refresh.js +1 -1
  165. package/lib/commands/webhook/index.d.ts +6 -6
  166. package/lib/commands/webhook/index.js +1 -1
  167. package/lib/commands/webhook/reset_circuit.d.ts +6 -6
  168. package/lib/commands/webhook/reset_circuit.js +1 -1
  169. package/lib/index.d.ts +1 -1
  170. package/lib/index.js +2 -2
  171. package/oclif.manifest.json +1 -1
  172. package/package.json +3 -5
package/lib/base.d.ts CHANGED
@@ -1,12 +1,12 @@
1
- import Command, { flags } from '@oclif/command';
1
+ import { Command, Flags } from '@oclif/core';
2
2
  export default abstract class extends Command {
3
3
  static flags: {
4
- organization: flags.IOptionFlag<string>;
5
- domain: flags.IOptionFlag<string | undefined>;
6
- accessToken: flags.IOptionFlag<string>;
7
- print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
8
- json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
9
- unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
4
+ organization: import("@oclif/core/lib/interfaces").OptionFlag<string>;
5
+ domain: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
6
+ accessToken: import("@oclif/core/lib/interfaces").OptionFlag<string>;
7
+ print: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
8
+ json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
9
+ unformatted: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
10
10
  };
11
11
  static args: {
12
12
  name: string;
@@ -19,4 +19,4 @@ export default abstract class extends Command {
19
19
  protected printOutput(res: any, flags: any): void;
20
20
  protected successMessage(resource: string, action: string, id: string): void;
21
21
  }
22
- export { flags };
22
+ export { Flags };
package/lib/base.js CHANGED
@@ -1,14 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.flags = void 0;
3
+ exports.Flags = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const sdk_1 = require("@commercelayer/sdk");
6
- const command_1 = (0, tslib_1.__importStar)(require("@oclif/command"));
7
- Object.defineProperty(exports, "flags", { enumerable: true, get: function () { return command_1.flags; } });
6
+ const core_1 = require("@oclif/core");
7
+ Object.defineProperty(exports, "Flags", { enumerable: true, get: function () { return core_1.Flags; } });
8
8
  const chalk_1 = (0, tslib_1.__importDefault)(require("chalk"));
9
9
  const cli_core_1 = require("@commercelayer/cli-core");
10
10
  const pkg = require('../package.json');
11
- class default_1 extends command_1.default {
11
+ class default_1 extends core_1.Command {
12
12
  // INIT (override)
13
13
  async init() {
14
14
  cli_core_1.clUpdate.checkUpdate(pkg);
@@ -40,34 +40,34 @@ class default_1 extends command_1.default {
40
40
  }
41
41
  exports.default = default_1;
42
42
  default_1.flags = {
43
- organization: command_1.flags.string({
43
+ organization: core_1.Flags.string({
44
44
  char: 'o',
45
45
  description: 'the slug of your organization',
46
46
  required: true,
47
47
  env: 'CL_CLI_ORGANIZATION',
48
48
  }),
49
- domain: command_1.flags.string({
49
+ domain: core_1.Flags.string({
50
50
  char: 'd',
51
51
  required: false,
52
52
  hidden: true,
53
53
  dependsOn: ['organization'],
54
54
  env: 'CL_CLI_DOMAIN',
55
55
  }),
56
- accessToken: command_1.flags.string({
56
+ accessToken: core_1.Flags.string({
57
57
  hidden: true,
58
58
  required: true,
59
59
  env: 'CL_CLI_ACCESS_TOKEN',
60
60
  }),
61
- print: command_1.flags.boolean({
61
+ print: core_1.Flags.boolean({
62
62
  char: 'p',
63
63
  description: 'print out the modified resource',
64
64
  }),
65
- json: command_1.flags.boolean({
65
+ json: core_1.Flags.boolean({
66
66
  char: 'j',
67
67
  description: 'print result in JSON format',
68
68
  dependsOn: ['print'],
69
69
  }),
70
- unformatted: command_1.flags.boolean({
70
+ unformatted: core_1.Flags.boolean({
71
71
  char: 'u',
72
72
  description: 'print JSON output without indentation',
73
73
  dependsOn: ['json'],
@@ -2,12 +2,12 @@ import Command from '../../base';
2
2
  export default class AdyenPaymentDetails extends Command {
3
3
  static description: string;
4
4
  static flags: {
5
- organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
6
- domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
7
- accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
8
- print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
9
- json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
10
- unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
5
+ organization: import("@oclif/core/lib/interfaces").OptionFlag<string>;
6
+ domain: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
7
+ accessToken: import("@oclif/core/lib/interfaces").OptionFlag<string>;
8
+ print: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
9
+ json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
10
+ unformatted: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
11
11
  };
12
12
  static args: {
13
13
  name: string;
@@ -7,7 +7,7 @@ const adyen_payments_1 = require("../../triggers/adyen_payments");
7
7
  const TRIGGER = 'details';
8
8
  class AdyenPaymentDetails extends base_1.default {
9
9
  async run() {
10
- const { args, flags } = this.parse(AdyenPaymentDetails);
10
+ const { args, flags } = await this.parse(AdyenPaymentDetails);
11
11
  const res = await (0, exec_1.default)('adyen_payments', args.id, TRIGGER, flags);
12
12
  if (flags.print)
13
13
  this.printOutput(res, flags);
@@ -2,12 +2,12 @@ import Command from '../../base';
2
2
  export default class AdyenPaymentIndex extends Command {
3
3
  static description: string;
4
4
  static flags: {
5
- organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
6
- domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
7
- accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
8
- print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
9
- json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
10
- unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
5
+ organization: import("@oclif/core/lib/interfaces").OptionFlag<string>;
6
+ domain: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
7
+ accessToken: import("@oclif/core/lib/interfaces").OptionFlag<string>;
8
+ print: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
9
+ json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
10
+ unformatted: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
11
11
  };
12
12
  static args: {
13
13
  name: string;
@@ -21,7 +21,7 @@ const promptAction = async (id) => {
21
21
  };
22
22
  class AdyenPaymentIndex extends base_1.default {
23
23
  async run() {
24
- const { args, flags } = this.parse(AdyenPaymentIndex);
24
+ const { args, flags } = await this.parse(AdyenPaymentIndex);
25
25
  const id = args.id;
26
26
  const action = await promptAction(id);
27
27
  const fields = [];
@@ -2,12 +2,12 @@ import Command from '../../base';
2
2
  export default class AuthorizationCapture extends Command {
3
3
  static description: string;
4
4
  static flags: {
5
- organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
6
- domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
7
- accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
8
- print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
9
- json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
10
- unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
5
+ organization: import("@oclif/core/lib/interfaces").OptionFlag<string>;
6
+ domain: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
7
+ accessToken: import("@oclif/core/lib/interfaces").OptionFlag<string>;
8
+ print: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
9
+ json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
10
+ unformatted: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
11
11
  };
12
12
  static args: {
13
13
  name: string;
@@ -7,7 +7,7 @@ const authorizations_1 = require("../../triggers/authorizations");
7
7
  const TRIGGER = 'capture';
8
8
  class AuthorizationCapture extends base_1.default {
9
9
  async run() {
10
- const { args, flags } = this.parse(AuthorizationCapture);
10
+ const { args, flags } = await this.parse(AuthorizationCapture);
11
11
  const res = await (0, exec_1.default)('authorizations', args.id, TRIGGER, flags);
12
12
  if (flags.print)
13
13
  this.printOutput(res, flags);
@@ -2,12 +2,12 @@ import Command from '../../base';
2
2
  export default class AuthorizationCaptureAmountCents extends Command {
3
3
  static description: string;
4
4
  static flags: {
5
- organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
6
- domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
7
- accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
8
- print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
9
- json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
10
- unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
5
+ organization: import("@oclif/core/lib/interfaces").OptionFlag<string>;
6
+ domain: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
7
+ accessToken: import("@oclif/core/lib/interfaces").OptionFlag<string>;
8
+ print: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
9
+ json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
10
+ unformatted: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
11
11
  };
12
12
  static args: {
13
13
  name: string;
@@ -7,7 +7,7 @@ const authorizations_1 = require("../../triggers/authorizations");
7
7
  const TRIGGER = 'capture_amount_cents';
8
8
  class AuthorizationCaptureAmountCents extends base_1.default {
9
9
  async run() {
10
- const { args, flags } = this.parse(AuthorizationCaptureAmountCents);
10
+ const { args, flags } = await this.parse(AuthorizationCaptureAmountCents);
11
11
  const res = await (0, exec_1.default)('authorizations', args.id, TRIGGER, flags);
12
12
  if (flags.print)
13
13
  this.printOutput(res, flags);
@@ -2,12 +2,12 @@ import Command from '../../base';
2
2
  export default class AuthorizationIndex extends Command {
3
3
  static description: string;
4
4
  static flags: {
5
- organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
6
- domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
7
- accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
8
- print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
9
- json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
10
- unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
5
+ organization: import("@oclif/core/lib/interfaces").OptionFlag<string>;
6
+ domain: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
7
+ accessToken: import("@oclif/core/lib/interfaces").OptionFlag<string>;
8
+ print: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
9
+ json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
10
+ unformatted: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
11
11
  };
12
12
  static args: {
13
13
  name: string;
@@ -21,7 +21,7 @@ const promptAction = async (id) => {
21
21
  };
22
22
  class AuthorizationIndex extends base_1.default {
23
23
  async run() {
24
- const { args, flags } = this.parse(AuthorizationIndex);
24
+ const { args, flags } = await this.parse(AuthorizationIndex);
25
25
  const id = args.id;
26
26
  const action = await promptAction(id);
27
27
  const fields = [];
@@ -2,12 +2,12 @@ import Command from '../../base';
2
2
  export default class AuthorizationVoid extends Command {
3
3
  static description: string;
4
4
  static flags: {
5
- organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
6
- domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
7
- accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
8
- print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
9
- json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
10
- unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
5
+ organization: import("@oclif/core/lib/interfaces").OptionFlag<string>;
6
+ domain: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
7
+ accessToken: import("@oclif/core/lib/interfaces").OptionFlag<string>;
8
+ print: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
9
+ json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
10
+ unformatted: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
11
11
  };
12
12
  static args: {
13
13
  name: string;
@@ -7,7 +7,7 @@ const authorizations_1 = require("../../triggers/authorizations");
7
7
  const TRIGGER = 'void';
8
8
  class AuthorizationVoid extends base_1.default {
9
9
  async run() {
10
- const { args, flags } = this.parse(AuthorizationVoid);
10
+ const { args, flags } = await this.parse(AuthorizationVoid);
11
11
  const res = await (0, exec_1.default)('authorizations', args.id, TRIGGER, flags);
12
12
  if (flags.print)
13
13
  this.printOutput(res, flags);
@@ -2,12 +2,12 @@ import Command from '../../base';
2
2
  export default class BundleComputeCompareAtAmount extends Command {
3
3
  static description: string;
4
4
  static flags: {
5
- organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
6
- domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
7
- accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
8
- print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
9
- json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
10
- unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
5
+ organization: import("@oclif/core/lib/interfaces").OptionFlag<string>;
6
+ domain: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
7
+ accessToken: import("@oclif/core/lib/interfaces").OptionFlag<string>;
8
+ print: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
9
+ json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
10
+ unformatted: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
11
11
  };
12
12
  static args: {
13
13
  name: string;
@@ -7,7 +7,7 @@ const bundles_1 = require("../../triggers/bundles");
7
7
  const TRIGGER = 'compute_compare_at_amount';
8
8
  class BundleComputeCompareAtAmount extends base_1.default {
9
9
  async run() {
10
- const { args, flags } = this.parse(BundleComputeCompareAtAmount);
10
+ const { args, flags } = await this.parse(BundleComputeCompareAtAmount);
11
11
  const res = await (0, exec_1.default)('bundles', args.id, TRIGGER, flags);
12
12
  if (flags.print)
13
13
  this.printOutput(res, flags);
@@ -2,12 +2,12 @@ import Command from '../../base';
2
2
  export default class BundleComputePriceAmount extends Command {
3
3
  static description: string;
4
4
  static flags: {
5
- organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
6
- domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
7
- accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
8
- print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
9
- json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
10
- unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
5
+ organization: import("@oclif/core/lib/interfaces").OptionFlag<string>;
6
+ domain: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
7
+ accessToken: import("@oclif/core/lib/interfaces").OptionFlag<string>;
8
+ print: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
9
+ json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
10
+ unformatted: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
11
11
  };
12
12
  static args: {
13
13
  name: string;
@@ -7,7 +7,7 @@ const bundles_1 = require("../../triggers/bundles");
7
7
  const TRIGGER = 'compute_price_amount';
8
8
  class BundleComputePriceAmount extends base_1.default {
9
9
  async run() {
10
- const { args, flags } = this.parse(BundleComputePriceAmount);
10
+ const { args, flags } = await this.parse(BundleComputePriceAmount);
11
11
  const res = await (0, exec_1.default)('bundles', args.id, TRIGGER, flags);
12
12
  if (flags.print)
13
13
  this.printOutput(res, flags);
@@ -2,12 +2,12 @@ import Command from '../../base';
2
2
  export default class BundleIndex extends Command {
3
3
  static description: string;
4
4
  static flags: {
5
- organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
6
- domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
7
- accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
8
- print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
9
- json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
10
- unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
5
+ organization: import("@oclif/core/lib/interfaces").OptionFlag<string>;
6
+ domain: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
7
+ accessToken: import("@oclif/core/lib/interfaces").OptionFlag<string>;
8
+ print: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
9
+ json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
10
+ unformatted: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
11
11
  };
12
12
  static args: {
13
13
  name: string;
@@ -21,7 +21,7 @@ const promptAction = async (id) => {
21
21
  };
22
22
  class BundleIndex extends base_1.default {
23
23
  async run() {
24
- const { args, flags } = this.parse(BundleIndex);
24
+ const { args, flags } = await this.parse(BundleIndex);
25
25
  const id = args.id;
26
26
  const action = await promptAction(id);
27
27
  const fields = [];
@@ -2,12 +2,12 @@ import Command from '../../base';
2
2
  export default class CaptureIndex extends Command {
3
3
  static description: string;
4
4
  static flags: {
5
- organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
6
- domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
7
- accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
8
- print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
9
- json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
10
- unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
5
+ organization: import("@oclif/core/lib/interfaces").OptionFlag<string>;
6
+ domain: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
7
+ accessToken: import("@oclif/core/lib/interfaces").OptionFlag<string>;
8
+ print: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
9
+ json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
10
+ unformatted: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
11
11
  };
12
12
  static args: {
13
13
  name: string;
@@ -21,7 +21,7 @@ const promptAction = async (id) => {
21
21
  };
22
22
  class CaptureIndex extends base_1.default {
23
23
  async run() {
24
- const { args, flags } = this.parse(CaptureIndex);
24
+ const { args, flags } = await this.parse(CaptureIndex);
25
25
  const id = args.id;
26
26
  const action = await promptAction(id);
27
27
  const fields = [];
@@ -2,12 +2,12 @@ import Command from '../../base';
2
2
  export default class CaptureRefund extends Command {
3
3
  static description: string;
4
4
  static flags: {
5
- organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
6
- domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
7
- accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
8
- print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
9
- json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
10
- unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
5
+ organization: import("@oclif/core/lib/interfaces").OptionFlag<string>;
6
+ domain: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
7
+ accessToken: import("@oclif/core/lib/interfaces").OptionFlag<string>;
8
+ print: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
9
+ json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
10
+ unformatted: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
11
11
  };
12
12
  static args: {
13
13
  name: string;
@@ -7,7 +7,7 @@ const captures_1 = require("../../triggers/captures");
7
7
  const TRIGGER = 'refund';
8
8
  class CaptureRefund extends base_1.default {
9
9
  async run() {
10
- const { args, flags } = this.parse(CaptureRefund);
10
+ const { args, flags } = await this.parse(CaptureRefund);
11
11
  const res = await (0, exec_1.default)('captures', args.id, TRIGGER, flags);
12
12
  if (flags.print)
13
13
  this.printOutput(res, flags);
@@ -2,12 +2,12 @@ import Command from '../../base';
2
2
  export default class CaptureRefundAmountCents extends Command {
3
3
  static description: string;
4
4
  static flags: {
5
- organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
6
- domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
7
- accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
8
- print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
9
- json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
10
- unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
5
+ organization: import("@oclif/core/lib/interfaces").OptionFlag<string>;
6
+ domain: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
7
+ accessToken: import("@oclif/core/lib/interfaces").OptionFlag<string>;
8
+ print: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
9
+ json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
10
+ unformatted: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
11
11
  };
12
12
  static args: {
13
13
  name: string;
@@ -7,7 +7,7 @@ const captures_1 = require("../../triggers/captures");
7
7
  const TRIGGER = 'refund_amount_cents';
8
8
  class CaptureRefundAmountCents extends base_1.default {
9
9
  async run() {
10
- const { args, flags } = this.parse(CaptureRefundAmountCents);
10
+ const { args, flags } = await this.parse(CaptureRefundAmountCents);
11
11
  const res = await (0, exec_1.default)('captures', args.id, TRIGGER, flags);
12
12
  if (flags.print)
13
13
  this.printOutput(res, flags);
@@ -2,12 +2,12 @@ import Command from '../../base';
2
2
  export default class CheckoutComPaymentDetails extends Command {
3
3
  static description: string;
4
4
  static flags: {
5
- organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
6
- domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
7
- accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
8
- print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
9
- json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
10
- unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
5
+ organization: import("@oclif/core/lib/interfaces").OptionFlag<string>;
6
+ domain: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
7
+ accessToken: import("@oclif/core/lib/interfaces").OptionFlag<string>;
8
+ print: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
9
+ json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
10
+ unformatted: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
11
11
  };
12
12
  static args: {
13
13
  name: string;
@@ -7,7 +7,7 @@ const checkout_com_payments_1 = require("../../triggers/checkout_com_payments");
7
7
  const TRIGGER = 'details';
8
8
  class CheckoutComPaymentDetails extends base_1.default {
9
9
  async run() {
10
- const { args, flags } = this.parse(CheckoutComPaymentDetails);
10
+ const { args, flags } = await this.parse(CheckoutComPaymentDetails);
11
11
  const res = await (0, exec_1.default)('checkout_com_payments', args.id, TRIGGER, flags);
12
12
  if (flags.print)
13
13
  this.printOutput(res, flags);
@@ -2,12 +2,12 @@ import Command from '../../base';
2
2
  export default class CheckoutComPaymentIndex extends Command {
3
3
  static description: string;
4
4
  static flags: {
5
- organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
6
- domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
7
- accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
8
- print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
9
- json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
10
- unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
5
+ organization: import("@oclif/core/lib/interfaces").OptionFlag<string>;
6
+ domain: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
7
+ accessToken: import("@oclif/core/lib/interfaces").OptionFlag<string>;
8
+ print: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
9
+ json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
10
+ unformatted: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
11
11
  };
12
12
  static args: {
13
13
  name: string;
@@ -21,7 +21,7 @@ const promptAction = async (id) => {
21
21
  };
22
22
  class CheckoutComPaymentIndex extends base_1.default {
23
23
  async run() {
24
- const { args, flags } = this.parse(CheckoutComPaymentIndex);
24
+ const { args, flags } = await this.parse(CheckoutComPaymentIndex);
25
25
  const id = args.id;
26
26
  const action = await promptAction(id);
27
27
  const fields = [];
@@ -2,12 +2,12 @@ import Command from '../../base';
2
2
  export default class CheckoutComPaymentRefresh extends Command {
3
3
  static description: string;
4
4
  static flags: {
5
- organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
6
- domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
7
- accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
8
- print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
9
- json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
10
- unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
5
+ organization: import("@oclif/core/lib/interfaces").OptionFlag<string>;
6
+ domain: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
7
+ accessToken: import("@oclif/core/lib/interfaces").OptionFlag<string>;
8
+ print: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
9
+ json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
10
+ unformatted: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
11
11
  };
12
12
  static args: {
13
13
  name: string;
@@ -7,7 +7,7 @@ const checkout_com_payments_1 = require("../../triggers/checkout_com_payments");
7
7
  const TRIGGER = 'refresh';
8
8
  class CheckoutComPaymentRefresh extends base_1.default {
9
9
  async run() {
10
- const { args, flags } = this.parse(CheckoutComPaymentRefresh);
10
+ const { args, flags } = await this.parse(CheckoutComPaymentRefresh);
11
11
  const res = await (0, exec_1.default)('checkout_com_payments', args.id, TRIGGER, flags);
12
12
  if (flags.print)
13
13
  this.printOutput(res, flags);
@@ -2,12 +2,12 @@ import Command from '../../base';
2
2
  export default class CustomerPasswordResetIndex extends Command {
3
3
  static description: string;
4
4
  static flags: {
5
- organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
6
- domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
7
- accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
8
- print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
9
- json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
10
- unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
5
+ organization: import("@oclif/core/lib/interfaces").OptionFlag<string>;
6
+ domain: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
7
+ accessToken: import("@oclif/core/lib/interfaces").OptionFlag<string>;
8
+ print: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
9
+ json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
10
+ unformatted: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
11
11
  };
12
12
  static args: {
13
13
  name: string;
@@ -21,7 +21,7 @@ const promptAction = async (id) => {
21
21
  };
22
22
  class CustomerPasswordResetIndex extends base_1.default {
23
23
  async run() {
24
- const { args, flags } = this.parse(CustomerPasswordResetIndex);
24
+ const { args, flags } = await this.parse(CustomerPasswordResetIndex);
25
25
  const id = args.id;
26
26
  const action = await promptAction(id);
27
27
  const fields = [];
@@ -2,12 +2,12 @@ import Command from '../../base';
2
2
  export default class CustomerPasswordResetResetPasswordToken extends Command {
3
3
  static description: string;
4
4
  static flags: {
5
- organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
6
- domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
7
- accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
8
- print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
9
- json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
10
- unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
5
+ organization: import("@oclif/core/lib/interfaces").OptionFlag<string>;
6
+ domain: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
7
+ accessToken: import("@oclif/core/lib/interfaces").OptionFlag<string>;
8
+ print: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
9
+ json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
10
+ unformatted: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
11
11
  };
12
12
  static args: {
13
13
  name: string;