@commercelayer/cli-plugin-triggers 1.0.6 → 1.2.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 (157) hide show
  1. package/README.md +554 -353
  2. package/lib/base.d.ts +4 -2
  3. package/lib/base.js +20 -16
  4. package/lib/commands/adyen_payment/details.d.ts +3 -0
  5. package/lib/commands/adyen_payment/details.js +2 -0
  6. package/lib/commands/adyen_payment/index.d.ts +3 -0
  7. package/lib/commands/authorization/capture.d.ts +3 -0
  8. package/lib/commands/authorization/capture.js +2 -0
  9. package/lib/commands/authorization/capture_amount_cents.d.ts +3 -0
  10. package/lib/commands/authorization/capture_amount_cents.js +2 -0
  11. package/lib/commands/authorization/index.d.ts +3 -0
  12. package/lib/commands/authorization/void.d.ts +3 -0
  13. package/lib/commands/authorization/void.js +2 -0
  14. package/lib/commands/bundle/compute_compare_at_amount.d.ts +3 -0
  15. package/lib/commands/bundle/compute_compare_at_amount.js +2 -0
  16. package/lib/commands/bundle/index.d.ts +3 -0
  17. package/lib/commands/capture/index.d.ts +3 -0
  18. package/lib/commands/capture/refund.d.ts +3 -0
  19. package/lib/commands/capture/refund.js +2 -0
  20. package/lib/commands/capture/refund_amount_cents.d.ts +3 -0
  21. package/lib/commands/capture/refund_amount_cents.js +2 -0
  22. package/lib/commands/checkout_com_payment/details.d.ts +3 -0
  23. package/lib/commands/checkout_com_payment/details.js +2 -0
  24. package/lib/commands/checkout_com_payment/index.d.ts +3 -0
  25. package/lib/commands/checkout_com_payment/refresh.d.ts +3 -0
  26. package/lib/commands/checkout_com_payment/refresh.js +2 -0
  27. package/lib/commands/customer_password_reset/index.d.ts +3 -0
  28. package/lib/commands/customer_password_reset/reset_password_token.d.ts +3 -0
  29. package/lib/commands/customer_password_reset/reset_password_token.js +2 -0
  30. package/lib/commands/gift_card/activate.d.ts +3 -0
  31. package/lib/commands/gift_card/activate.js +2 -0
  32. package/lib/commands/gift_card/balance_change_cents.d.ts +3 -0
  33. package/lib/commands/gift_card/balance_change_cents.js +2 -0
  34. package/lib/commands/gift_card/deactivate.d.ts +3 -0
  35. package/lib/commands/gift_card/deactivate.js +2 -0
  36. package/lib/commands/gift_card/index.d.ts +3 -0
  37. package/lib/commands/gift_card/purchase.d.ts +3 -0
  38. package/lib/commands/gift_card/purchase.js +2 -0
  39. package/lib/commands/in_stock_subscription/activate.d.ts +3 -0
  40. package/lib/commands/in_stock_subscription/activate.js +2 -0
  41. package/lib/commands/in_stock_subscription/deactivate.d.ts +3 -0
  42. package/lib/commands/in_stock_subscription/deactivate.js +2 -0
  43. package/lib/commands/in_stock_subscription/index.d.ts +3 -0
  44. package/lib/commands/order/approve.d.ts +3 -0
  45. package/lib/commands/order/approve.js +2 -0
  46. package/lib/commands/order/approve_and_capture.d.ts +3 -0
  47. package/lib/commands/order/approve_and_capture.js +2 -0
  48. package/lib/commands/order/archive.d.ts +3 -0
  49. package/lib/commands/order/archive.js +2 -0
  50. package/lib/commands/order/authorization_amount_cents.d.ts +3 -0
  51. package/lib/commands/order/authorization_amount_cents.js +2 -0
  52. package/lib/commands/order/authorize.d.ts +3 -0
  53. package/lib/commands/order/authorize.js +2 -0
  54. package/lib/commands/order/billing_address_clone_id.d.ts +3 -0
  55. package/lib/commands/order/billing_address_clone_id.js +2 -0
  56. package/lib/commands/order/billing_address_same_as_shipping.d.ts +3 -0
  57. package/lib/commands/order/billing_address_same_as_shipping.js +2 -0
  58. package/lib/commands/order/cancel.d.ts +3 -0
  59. package/lib/commands/order/cancel.js +2 -0
  60. package/lib/commands/order/capture.d.ts +3 -0
  61. package/lib/commands/order/capture.js +2 -0
  62. package/lib/commands/order/customer_payment_source_id.d.ts +3 -0
  63. package/lib/commands/order/customer_payment_source_id.js +2 -0
  64. package/lib/commands/order/index.d.ts +3 -0
  65. package/lib/commands/order/place.d.ts +3 -0
  66. package/lib/commands/order/place.js +2 -0
  67. package/lib/commands/order/refresh.d.ts +3 -0
  68. package/lib/commands/order/refresh.js +2 -0
  69. package/lib/commands/order/refund.d.ts +3 -0
  70. package/lib/commands/order/refund.js +2 -0
  71. package/lib/commands/order/save_billing_address_to_customer_address_book.d.ts +3 -0
  72. package/lib/commands/order/save_billing_address_to_customer_address_book.js +2 -0
  73. package/lib/commands/order/save_payment_source_to_customer_wallet.d.ts +3 -0
  74. package/lib/commands/order/save_payment_source_to_customer_wallet.js +2 -0
  75. package/lib/commands/order/save_shipping_address_to_customer_address_book.d.ts +3 -0
  76. package/lib/commands/order/save_shipping_address_to_customer_address_book.js +2 -0
  77. package/lib/commands/order/shipping_address_clone_id.d.ts +3 -0
  78. package/lib/commands/order/shipping_address_clone_id.js +2 -0
  79. package/lib/commands/order/shipping_address_same_as_billing.d.ts +3 -0
  80. package/lib/commands/order/shipping_address_same_as_billing.js +2 -0
  81. package/lib/commands/order/unarchive.d.ts +3 -0
  82. package/lib/commands/order/unarchive.js +2 -0
  83. package/lib/commands/order/update_taxes.d.ts +3 -0
  84. package/lib/commands/order/update_taxes.js +2 -0
  85. package/lib/commands/order_subscription/activate.d.ts +3 -0
  86. package/lib/commands/order_subscription/activate.js +2 -0
  87. package/lib/commands/order_subscription/cancel.d.ts +3 -0
  88. package/lib/commands/order_subscription/cancel.js +2 -0
  89. package/lib/commands/order_subscription/deactivate.d.ts +3 -0
  90. package/lib/commands/order_subscription/deactivate.js +2 -0
  91. package/lib/commands/order_subscription/index.d.ts +3 -0
  92. package/lib/commands/return/approve.d.ts +3 -0
  93. package/lib/commands/return/approve.js +2 -0
  94. package/lib/commands/return/archive.d.ts +3 -0
  95. package/lib/commands/return/archive.js +2 -0
  96. package/lib/commands/return/cancel.d.ts +3 -0
  97. package/lib/commands/return/cancel.js +2 -0
  98. package/lib/commands/return/index.d.ts +3 -0
  99. package/lib/commands/return/receive.d.ts +3 -0
  100. package/lib/commands/return/receive.js +2 -0
  101. package/lib/commands/return/reject.d.ts +3 -0
  102. package/lib/commands/return/reject.js +2 -0
  103. package/lib/commands/return/request.d.ts +3 -0
  104. package/lib/commands/return/request.js +2 -0
  105. package/lib/commands/return/restock.d.ts +3 -0
  106. package/lib/commands/return/restock.js +2 -0
  107. package/lib/commands/return/ship.d.ts +3 -0
  108. package/lib/commands/return/ship.js +2 -0
  109. package/lib/commands/return/unarchive.d.ts +3 -0
  110. package/lib/commands/return/unarchive.js +2 -0
  111. package/lib/commands/return_line_item/index.d.ts +3 -0
  112. package/lib/commands/return_line_item/restock.d.ts +3 -0
  113. package/lib/commands/return_line_item/restock.js +2 -0
  114. package/lib/commands/shipment/get_rates.d.ts +3 -0
  115. package/lib/commands/shipment/get_rates.js +2 -0
  116. package/lib/commands/shipment/index.d.ts +3 -0
  117. package/lib/commands/shipment/on_hold.d.ts +3 -0
  118. package/lib/commands/shipment/on_hold.js +2 -0
  119. package/lib/commands/shipment/packing.d.ts +3 -0
  120. package/lib/commands/shipment/packing.js +2 -0
  121. package/lib/commands/shipment/picking.d.ts +3 -0
  122. package/lib/commands/shipment/picking.js +2 -0
  123. package/lib/commands/shipment/purchase.d.ts +3 -0
  124. package/lib/commands/shipment/purchase.js +2 -0
  125. package/lib/commands/shipment/ready_to_ship.d.ts +3 -0
  126. package/lib/commands/shipment/ready_to_ship.js +2 -0
  127. package/lib/commands/shipment/ship.d.ts +3 -0
  128. package/lib/commands/shipment/ship.js +2 -0
  129. package/lib/commands/stock_transfer/cancel.d.ts +3 -0
  130. package/lib/commands/stock_transfer/cancel.js +2 -0
  131. package/lib/commands/stock_transfer/complete.d.ts +3 -0
  132. package/lib/commands/stock_transfer/complete.js +2 -0
  133. package/lib/commands/stock_transfer/in_transit.d.ts +3 -0
  134. package/lib/commands/stock_transfer/in_transit.js +2 -0
  135. package/lib/commands/stock_transfer/index.d.ts +3 -0
  136. package/lib/commands/stock_transfer/picking.d.ts +3 -0
  137. package/lib/commands/stock_transfer/picking.js +2 -0
  138. package/lib/commands/stock_transfer/upcoming.d.ts +3 -0
  139. package/lib/commands/stock_transfer/upcoming.js +2 -0
  140. package/lib/commands/stripe_payment/index.d.ts +3 -0
  141. package/lib/commands/stripe_payment/refresh.d.ts +3 -0
  142. package/lib/commands/stripe_payment/refresh.js +2 -0
  143. package/lib/commands/webhook/index.d.ts +3 -0
  144. package/lib/commands/webhook/reset_circuit.d.ts +3 -0
  145. package/lib/commands/webhook/reset_circuit.js +2 -0
  146. package/lib/common.d.ts +0 -6
  147. package/lib/common.js +0 -24
  148. package/lib/triggers/adyen_payments.d.ts +1 -1
  149. package/lib/triggers/adyen_payments.js +0 -5
  150. package/lib/triggers/checkout_com_payments.d.ts +1 -1
  151. package/lib/triggers/checkout_com_payments.js +0 -5
  152. package/oclif.manifest.json +1 -1
  153. package/package.json +10 -5
  154. package/lib/commands/adyen_payment/authorize.d.ts +0 -15
  155. package/lib/commands/adyen_payment/authorize.js +0 -21
  156. package/lib/commands/checkout_com_payment/authorize.d.ts +0 -15
  157. package/lib/commands/checkout_com_payment/authorize.js +0 -21
@@ -1,15 +0,0 @@
1
- import Command from '../../base';
2
- export default class CheckoutComPaymentAuthorize extends Command {
3
- static description: string;
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
- };
9
- static args: {
10
- name: string;
11
- description: string;
12
- required: boolean;
13
- }[];
14
- run(): Promise<any>;
15
- }
@@ -1,21 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const base_1 = (0, tslib_1.__importDefault)(require("../../base"));
5
- const exec_1 = (0, tslib_1.__importDefault)(require("../../exec"));
6
- const checkout_com_payments_1 = require("../../triggers/checkout_com_payments");
7
- const TRIGGER = 'authorize';
8
- class CheckoutComPaymentAuthorize extends base_1.default {
9
- async run() {
10
- const { args, flags } = this.parse(CheckoutComPaymentAuthorize);
11
- const res = await (0, exec_1.default)('checkout_com_payments', args.id, TRIGGER, flags);
12
- this.successMessage('checkout_com_payment', TRIGGER, res.id);
13
- return res;
14
- }
15
- }
16
- exports.default = CheckoutComPaymentAuthorize;
17
- CheckoutComPaymentAuthorize.description = checkout_com_payments_1.triggers[TRIGGER].description;
18
- CheckoutComPaymentAuthorize.flags = Object.assign({}, base_1.default.flags);
19
- CheckoutComPaymentAuthorize.args = [
20
- ...base_1.default.args,
21
- ];