@commercelayer/cli-plugin-triggers 2.0.5 → 2.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 (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 +1 -1
@@ -2,12 +2,12 @@ import Command from '../../base';
2
2
  export default class StockTransferCancel 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 stock_transfers_1 = require("../../triggers/stock_transfers");
7
7
  const TRIGGER = 'cancel';
8
8
  class StockTransferCancel extends base_1.default {
9
9
  async run() {
10
- const { args, flags } = this.parse(StockTransferCancel);
10
+ const { args, flags } = await this.parse(StockTransferCancel);
11
11
  const res = await (0, exec_1.default)('stock_transfers', 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 StockTransferComplete 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 stock_transfers_1 = require("../../triggers/stock_transfers");
7
7
  const TRIGGER = 'complete';
8
8
  class StockTransferComplete extends base_1.default {
9
9
  async run() {
10
- const { args, flags } = this.parse(StockTransferComplete);
10
+ const { args, flags } = await this.parse(StockTransferComplete);
11
11
  const res = await (0, exec_1.default)('stock_transfers', 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 StockTransferInTransit 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 stock_transfers_1 = require("../../triggers/stock_transfers");
7
7
  const TRIGGER = 'in_transit';
8
8
  class StockTransferInTransit extends base_1.default {
9
9
  async run() {
10
- const { args, flags } = this.parse(StockTransferInTransit);
10
+ const { args, flags } = await this.parse(StockTransferInTransit);
11
11
  const res = await (0, exec_1.default)('stock_transfers', 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 StockTransferIndex 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 StockTransferIndex extends base_1.default {
23
23
  async run() {
24
- const { args, flags } = this.parse(StockTransferIndex);
24
+ const { args, flags } = await this.parse(StockTransferIndex);
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 StockTransferPicking 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 stock_transfers_1 = require("../../triggers/stock_transfers");
7
7
  const TRIGGER = 'picking';
8
8
  class StockTransferPicking extends base_1.default {
9
9
  async run() {
10
- const { args, flags } = this.parse(StockTransferPicking);
10
+ const { args, flags } = await this.parse(StockTransferPicking);
11
11
  const res = await (0, exec_1.default)('stock_transfers', 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 StockTransferUpcoming 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 stock_transfers_1 = require("../../triggers/stock_transfers");
7
7
  const TRIGGER = 'upcoming';
8
8
  class StockTransferUpcoming extends base_1.default {
9
9
  async run() {
10
- const { args, flags } = this.parse(StockTransferUpcoming);
10
+ const { args, flags } = await this.parse(StockTransferUpcoming);
11
11
  const res = await (0, exec_1.default)('stock_transfers', 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 StripePaymentIndex 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 StripePaymentIndex extends base_1.default {
23
23
  async run() {
24
- const { args, flags } = this.parse(StripePaymentIndex);
24
+ const { args, flags } = await this.parse(StripePaymentIndex);
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 StripePaymentRefresh 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 stripe_payments_1 = require("../../triggers/stripe_payments");
7
7
  const TRIGGER = 'refresh';
8
8
  class StripePaymentRefresh extends base_1.default {
9
9
  async run() {
10
- const { args, flags } = this.parse(StripePaymentRefresh);
10
+ const { args, flags } = await this.parse(StripePaymentRefresh);
11
11
  const res = await (0, exec_1.default)('stripe_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 WebhookIndex 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 WebhookIndex extends base_1.default {
23
23
  async run() {
24
- const { args, flags } = this.parse(WebhookIndex);
24
+ const { args, flags } = await this.parse(WebhookIndex);
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 WebhookResetCircuit 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 webhooks_1 = require("../../triggers/webhooks");
7
7
  const TRIGGER = 'reset_circuit';
8
8
  class WebhookResetCircuit extends base_1.default {
9
9
  async run() {
10
- const { args, flags } = this.parse(WebhookResetCircuit);
10
+ const { args, flags } = await this.parse(WebhookResetCircuit);
11
11
  const res = await (0, exec_1.default)('webhooks', args.id, TRIGGER, flags);
12
12
  if (flags.print)
13
13
  this.printOutput(res, flags);
package/lib/index.d.ts CHANGED
@@ -1 +1 @@
1
- export { run } from '@oclif/command';
1
+ export { run } from '@oclif/core';
package/lib/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.run = void 0;
4
- var command_1 = require("@oclif/command");
5
- Object.defineProperty(exports, "run", { enumerable: true, get: function () { return command_1.run; } });
4
+ var core_1 = require("@oclif/core");
5
+ Object.defineProperty(exports, "run", { enumerable: true, get: function () { return core_1.run; } });