@commercelayer/cli-plugin-triggers 3.15.0 → 4.0.0-oclif3.2

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 (293) hide show
  1. package/README.md +141 -0
  2. package/bin/dev +0 -0
  3. package/bin/run +0 -0
  4. package/lib/base.d.ts +4 -4
  5. package/lib/base.js +41 -41
  6. package/lib/commands/adyen_payment/details.d.ts +1 -1
  7. package/lib/commands/adyen_payment/details.js +5 -3
  8. package/lib/commands/adyen_payment/index.d.ts +1 -1
  9. package/lib/commands/adyen_payment/index.js +5 -3
  10. package/lib/commands/authorization/capture.d.ts +1 -1
  11. package/lib/commands/authorization/capture.js +5 -3
  12. package/lib/commands/authorization/capture_amount_cents.d.ts +1 -1
  13. package/lib/commands/authorization/capture_amount_cents.js +5 -3
  14. package/lib/commands/authorization/index.d.ts +1 -1
  15. package/lib/commands/authorization/index.js +5 -3
  16. package/lib/commands/authorization/void.d.ts +1 -1
  17. package/lib/commands/authorization/void.js +5 -3
  18. package/lib/commands/axerve_payment/index.d.ts +1 -1
  19. package/lib/commands/axerve_payment/index.js +5 -3
  20. package/lib/commands/axerve_payment/update.d.ts +1 -1
  21. package/lib/commands/axerve_payment/update.js +5 -3
  22. package/lib/commands/bundle/compute_compare_at_amount.d.ts +1 -1
  23. package/lib/commands/bundle/compute_compare_at_amount.js +5 -3
  24. package/lib/commands/bundle/compute_price_amount.d.ts +1 -1
  25. package/lib/commands/bundle/compute_price_amount.js +5 -3
  26. package/lib/commands/bundle/index.d.ts +1 -1
  27. package/lib/commands/bundle/index.js +5 -3
  28. package/lib/commands/buy_x_pay_y_promotion/disable.d.ts +1 -1
  29. package/lib/commands/buy_x_pay_y_promotion/disable.js +5 -3
  30. package/lib/commands/buy_x_pay_y_promotion/enable.d.ts +1 -1
  31. package/lib/commands/buy_x_pay_y_promotion/enable.js +5 -3
  32. package/lib/commands/buy_x_pay_y_promotion/index.d.ts +1 -1
  33. package/lib/commands/buy_x_pay_y_promotion/index.js +5 -3
  34. package/lib/commands/capture/index.d.ts +1 -1
  35. package/lib/commands/capture/index.js +5 -3
  36. package/lib/commands/capture/refund.d.ts +1 -1
  37. package/lib/commands/capture/refund.js +5 -3
  38. package/lib/commands/capture/refund_amount_cents.d.ts +1 -1
  39. package/lib/commands/capture/refund_amount_cents.js +5 -3
  40. package/lib/commands/checkout_com_payment/details.d.ts +1 -1
  41. package/lib/commands/checkout_com_payment/details.js +5 -3
  42. package/lib/commands/checkout_com_payment/index.d.ts +1 -1
  43. package/lib/commands/checkout_com_payment/index.js +5 -3
  44. package/lib/commands/checkout_com_payment/refresh.d.ts +1 -1
  45. package/lib/commands/checkout_com_payment/refresh.js +5 -3
  46. package/lib/commands/customer_password_reset/index.d.ts +1 -1
  47. package/lib/commands/customer_password_reset/index.js +5 -3
  48. package/lib/commands/customer_password_reset/reset_password_token.d.ts +1 -1
  49. package/lib/commands/customer_password_reset/reset_password_token.js +5 -3
  50. package/lib/commands/external_promotion/disable.d.ts +1 -1
  51. package/lib/commands/external_promotion/disable.js +5 -3
  52. package/lib/commands/external_promotion/enable.d.ts +1 -1
  53. package/lib/commands/external_promotion/enable.js +5 -3
  54. package/lib/commands/external_promotion/index.d.ts +1 -1
  55. package/lib/commands/external_promotion/index.js +5 -3
  56. package/lib/commands/fixed_amount_promotion/disable.d.ts +1 -1
  57. package/lib/commands/fixed_amount_promotion/disable.js +5 -3
  58. package/lib/commands/fixed_amount_promotion/enable.d.ts +1 -1
  59. package/lib/commands/fixed_amount_promotion/enable.js +5 -3
  60. package/lib/commands/fixed_amount_promotion/index.d.ts +1 -1
  61. package/lib/commands/fixed_amount_promotion/index.js +5 -3
  62. package/lib/commands/fixed_price_promotion/disable.d.ts +1 -1
  63. package/lib/commands/fixed_price_promotion/disable.js +5 -3
  64. package/lib/commands/fixed_price_promotion/enable.d.ts +1 -1
  65. package/lib/commands/fixed_price_promotion/enable.js +5 -3
  66. package/lib/commands/fixed_price_promotion/index.d.ts +1 -1
  67. package/lib/commands/fixed_price_promotion/index.js +5 -3
  68. package/lib/commands/free_gift_promotion/disable.d.ts +1 -1
  69. package/lib/commands/free_gift_promotion/disable.js +5 -3
  70. package/lib/commands/free_gift_promotion/enable.d.ts +1 -1
  71. package/lib/commands/free_gift_promotion/enable.js +5 -3
  72. package/lib/commands/free_gift_promotion/index.d.ts +1 -1
  73. package/lib/commands/free_gift_promotion/index.js +5 -3
  74. package/lib/commands/free_shipping_promotion/disable.d.ts +1 -1
  75. package/lib/commands/free_shipping_promotion/disable.js +5 -3
  76. package/lib/commands/free_shipping_promotion/enable.d.ts +1 -1
  77. package/lib/commands/free_shipping_promotion/enable.js +5 -3
  78. package/lib/commands/free_shipping_promotion/index.d.ts +1 -1
  79. package/lib/commands/free_shipping_promotion/index.js +5 -3
  80. package/lib/commands/gift_card/activate.d.ts +1 -1
  81. package/lib/commands/gift_card/activate.js +5 -3
  82. package/lib/commands/gift_card/balance_change_cents.d.ts +1 -1
  83. package/lib/commands/gift_card/balance_change_cents.js +5 -3
  84. package/lib/commands/gift_card/deactivate.d.ts +1 -1
  85. package/lib/commands/gift_card/deactivate.js +5 -3
  86. package/lib/commands/gift_card/index.d.ts +1 -1
  87. package/lib/commands/gift_card/index.js +5 -3
  88. package/lib/commands/gift_card/purchase.d.ts +1 -1
  89. package/lib/commands/gift_card/purchase.js +5 -3
  90. package/lib/commands/in_stock_subscription/activate.d.ts +1 -1
  91. package/lib/commands/in_stock_subscription/activate.js +5 -3
  92. package/lib/commands/in_stock_subscription/deactivate.d.ts +1 -1
  93. package/lib/commands/in_stock_subscription/deactivate.js +5 -3
  94. package/lib/commands/in_stock_subscription/index.d.ts +1 -1
  95. package/lib/commands/in_stock_subscription/index.js +5 -3
  96. package/lib/commands/klarna_payment/index.d.ts +1 -1
  97. package/lib/commands/klarna_payment/index.js +5 -3
  98. package/lib/commands/klarna_payment/update.d.ts +1 -1
  99. package/lib/commands/klarna_payment/update.js +5 -3
  100. package/lib/commands/line_item/external_price.d.ts +1 -1
  101. package/lib/commands/line_item/external_price.js +5 -3
  102. package/lib/commands/line_item/index.d.ts +1 -1
  103. package/lib/commands/line_item/index.js +5 -3
  104. package/lib/commands/line_item/reserve_stock.d.ts +1 -1
  105. package/lib/commands/line_item/reserve_stock.js +5 -3
  106. package/lib/commands/market/disable.d.ts +1 -1
  107. package/lib/commands/market/disable.js +5 -3
  108. package/lib/commands/market/enable.d.ts +1 -1
  109. package/lib/commands/market/enable.js +5 -3
  110. package/lib/commands/market/index.d.ts +1 -1
  111. package/lib/commands/market/index.js +5 -3
  112. package/lib/commands/noc.js +2 -2
  113. package/lib/commands/order/approve.d.ts +1 -1
  114. package/lib/commands/order/approve.js +5 -3
  115. package/lib/commands/order/approve_and_capture.d.ts +1 -1
  116. package/lib/commands/order/approve_and_capture.js +5 -3
  117. package/lib/commands/order/archive.d.ts +1 -1
  118. package/lib/commands/order/archive.js +5 -3
  119. package/lib/commands/order/authorization_amount_cents.d.ts +1 -1
  120. package/lib/commands/order/authorization_amount_cents.js +5 -3
  121. package/lib/commands/order/authorize.d.ts +1 -1
  122. package/lib/commands/order/authorize.js +5 -3
  123. package/lib/commands/order/billing_address_clone_id.d.ts +2 -2
  124. package/lib/commands/order/billing_address_clone_id.js +12 -10
  125. package/lib/commands/order/billing_address_same_as_shipping.d.ts +1 -1
  126. package/lib/commands/order/billing_address_same_as_shipping.js +5 -3
  127. package/lib/commands/order/cancel.d.ts +1 -1
  128. package/lib/commands/order/cancel.js +5 -3
  129. package/lib/commands/order/capture.d.ts +1 -1
  130. package/lib/commands/order/capture.js +5 -3
  131. package/lib/commands/order/commit_invoice.d.ts +1 -1
  132. package/lib/commands/order/commit_invoice.js +5 -3
  133. package/lib/commands/order/create_subscriptions.d.ts +1 -1
  134. package/lib/commands/order/create_subscriptions.js +5 -3
  135. package/lib/commands/order/customer_payment_source_id.d.ts +2 -2
  136. package/lib/commands/order/customer_payment_source_id.js +12 -10
  137. package/lib/commands/order/index.d.ts +1 -1
  138. package/lib/commands/order/index.js +5 -3
  139. package/lib/commands/order/nullify_payment_source.d.ts +1 -1
  140. package/lib/commands/order/nullify_payment_source.js +5 -3
  141. package/lib/commands/order/place.d.ts +1 -1
  142. package/lib/commands/order/place.js +5 -3
  143. package/lib/commands/order/refresh.d.ts +1 -1
  144. package/lib/commands/order/refresh.js +5 -3
  145. package/lib/commands/order/refund.d.ts +1 -1
  146. package/lib/commands/order/refund.js +5 -3
  147. package/lib/commands/order/refund_invoice.d.ts +1 -1
  148. package/lib/commands/order/refund_invoice.js +5 -3
  149. package/lib/commands/order/save_billing_address_to_customer_address_book.d.ts +1 -1
  150. package/lib/commands/order/save_billing_address_to_customer_address_book.js +5 -3
  151. package/lib/commands/order/save_payment_source_to_customer_wallet.d.ts +1 -1
  152. package/lib/commands/order/save_payment_source_to_customer_wallet.js +5 -3
  153. package/lib/commands/order/save_shipping_address_to_customer_address_book.d.ts +1 -1
  154. package/lib/commands/order/save_shipping_address_to_customer_address_book.js +5 -3
  155. package/lib/commands/order/shipping_address_clone_id.d.ts +2 -2
  156. package/lib/commands/order/shipping_address_clone_id.js +12 -10
  157. package/lib/commands/order/shipping_address_same_as_billing.d.ts +1 -1
  158. package/lib/commands/order/shipping_address_same_as_billing.js +5 -3
  159. package/lib/commands/order/start_editing.d.ts +1 -1
  160. package/lib/commands/order/start_editing.js +5 -3
  161. package/lib/commands/order/stop_editing.d.ts +1 -1
  162. package/lib/commands/order/stop_editing.js +5 -3
  163. package/lib/commands/order/unarchive.d.ts +1 -1
  164. package/lib/commands/order/unarchive.js +5 -3
  165. package/lib/commands/order/update_taxes.d.ts +1 -1
  166. package/lib/commands/order/update_taxes.js +5 -3
  167. package/lib/commands/order/validate.d.ts +1 -1
  168. package/lib/commands/order/validate.js +5 -3
  169. package/lib/commands/order_subscription/activate.d.ts +1 -1
  170. package/lib/commands/order_subscription/activate.js +5 -3
  171. package/lib/commands/order_subscription/cancel.d.ts +1 -1
  172. package/lib/commands/order_subscription/cancel.js +5 -3
  173. package/lib/commands/order_subscription/deactivate.d.ts +1 -1
  174. package/lib/commands/order_subscription/deactivate.js +5 -3
  175. package/lib/commands/order_subscription/index.d.ts +1 -1
  176. package/lib/commands/order_subscription/index.js +5 -3
  177. package/lib/commands/payment_method/disable.d.ts +1 -1
  178. package/lib/commands/payment_method/disable.js +5 -3
  179. package/lib/commands/payment_method/enable.d.ts +1 -1
  180. package/lib/commands/payment_method/enable.js +5 -3
  181. package/lib/commands/payment_method/index.d.ts +1 -1
  182. package/lib/commands/payment_method/index.js +5 -3
  183. package/lib/commands/percentage_discount_promotion/disable.d.ts +1 -1
  184. package/lib/commands/percentage_discount_promotion/disable.js +5 -3
  185. package/lib/commands/percentage_discount_promotion/enable.d.ts +1 -1
  186. package/lib/commands/percentage_discount_promotion/enable.js +5 -3
  187. package/lib/commands/percentage_discount_promotion/index.d.ts +1 -1
  188. package/lib/commands/percentage_discount_promotion/index.js +5 -3
  189. package/lib/commands/return/approve.d.ts +1 -1
  190. package/lib/commands/return/approve.js +5 -3
  191. package/lib/commands/return/archive.d.ts +1 -1
  192. package/lib/commands/return/archive.js +5 -3
  193. package/lib/commands/return/cancel.d.ts +1 -1
  194. package/lib/commands/return/cancel.js +5 -3
  195. package/lib/commands/return/index.d.ts +1 -1
  196. package/lib/commands/return/index.js +5 -3
  197. package/lib/commands/return/receive.d.ts +1 -1
  198. package/lib/commands/return/receive.js +5 -3
  199. package/lib/commands/return/reject.d.ts +1 -1
  200. package/lib/commands/return/reject.js +5 -3
  201. package/lib/commands/return/request.d.ts +1 -1
  202. package/lib/commands/return/request.js +5 -3
  203. package/lib/commands/return/restock.d.ts +1 -1
  204. package/lib/commands/return/restock.js +5 -3
  205. package/lib/commands/return/ship.d.ts +1 -1
  206. package/lib/commands/return/ship.js +5 -3
  207. package/lib/commands/return/unarchive.d.ts +1 -1
  208. package/lib/commands/return/unarchive.js +5 -3
  209. package/lib/commands/return_line_item/index.d.ts +1 -1
  210. package/lib/commands/return_line_item/index.js +5 -3
  211. package/lib/commands/return_line_item/restock.d.ts +1 -1
  212. package/lib/commands/return_line_item/restock.js +5 -3
  213. package/lib/commands/satispay_payment/index.d.ts +1 -1
  214. package/lib/commands/satispay_payment/index.js +5 -3
  215. package/lib/commands/satispay_payment/refresh.d.ts +1 -1
  216. package/lib/commands/satispay_payment/refresh.js +5 -3
  217. package/lib/commands/shipment/decrement_stock.d.ts +1 -1
  218. package/lib/commands/shipment/decrement_stock.js +5 -3
  219. package/lib/commands/shipment/get_rates.d.ts +1 -1
  220. package/lib/commands/shipment/get_rates.js +5 -3
  221. package/lib/commands/shipment/index.d.ts +1 -1
  222. package/lib/commands/shipment/index.js +5 -3
  223. package/lib/commands/shipment/on_hold.d.ts +1 -1
  224. package/lib/commands/shipment/on_hold.js +5 -3
  225. package/lib/commands/shipment/packing.d.ts +1 -1
  226. package/lib/commands/shipment/packing.js +5 -3
  227. package/lib/commands/shipment/picking.d.ts +1 -1
  228. package/lib/commands/shipment/picking.js +5 -3
  229. package/lib/commands/shipment/purchase.d.ts +1 -1
  230. package/lib/commands/shipment/purchase.js +5 -3
  231. package/lib/commands/shipment/ready_to_ship.d.ts +1 -1
  232. package/lib/commands/shipment/ready_to_ship.js +5 -3
  233. package/lib/commands/shipment/release_stock.d.ts +1 -1
  234. package/lib/commands/shipment/release_stock.js +5 -3
  235. package/lib/commands/shipment/reserve_stock.d.ts +1 -1
  236. package/lib/commands/shipment/reserve_stock.js +5 -3
  237. package/lib/commands/shipment/ship.d.ts +1 -1
  238. package/lib/commands/shipment/ship.js +5 -3
  239. package/lib/commands/shipment/upcoming.d.ts +1 -1
  240. package/lib/commands/shipment/upcoming.js +5 -3
  241. package/lib/commands/shipping_method/disable.d.ts +1 -1
  242. package/lib/commands/shipping_method/disable.js +5 -3
  243. package/lib/commands/shipping_method/enable.d.ts +1 -1
  244. package/lib/commands/shipping_method/enable.js +5 -3
  245. package/lib/commands/shipping_method/index.d.ts +1 -1
  246. package/lib/commands/shipping_method/index.js +5 -3
  247. package/lib/commands/stock_line_item/decrement_stock.d.ts +9 -0
  248. package/lib/commands/stock_line_item/decrement_stock.js +22 -0
  249. package/lib/commands/stock_line_item/index.d.ts +9 -0
  250. package/lib/commands/stock_line_item/index.js +40 -0
  251. package/lib/commands/stock_line_item/release_stock.d.ts +9 -0
  252. package/lib/commands/stock_line_item/release_stock.js +22 -0
  253. package/lib/commands/stock_line_item/reserve_stock.d.ts +9 -0
  254. package/lib/commands/stock_line_item/reserve_stock.js +22 -0
  255. package/lib/commands/stock_reservation/index.d.ts +1 -1
  256. package/lib/commands/stock_reservation/index.js +5 -3
  257. package/lib/commands/stock_reservation/pending.d.ts +1 -1
  258. package/lib/commands/stock_reservation/pending.js +5 -3
  259. package/lib/commands/stock_transfer/cancel.d.ts +1 -1
  260. package/lib/commands/stock_transfer/cancel.js +5 -3
  261. package/lib/commands/stock_transfer/complete.d.ts +1 -1
  262. package/lib/commands/stock_transfer/complete.js +5 -3
  263. package/lib/commands/stock_transfer/in_transit.d.ts +1 -1
  264. package/lib/commands/stock_transfer/in_transit.js +5 -3
  265. package/lib/commands/stock_transfer/index.d.ts +1 -1
  266. package/lib/commands/stock_transfer/index.js +5 -3
  267. package/lib/commands/stock_transfer/on_hold.d.ts +1 -1
  268. package/lib/commands/stock_transfer/on_hold.js +5 -3
  269. package/lib/commands/stock_transfer/picking.d.ts +1 -1
  270. package/lib/commands/stock_transfer/picking.js +5 -3
  271. package/lib/commands/stock_transfer/upcoming.d.ts +1 -1
  272. package/lib/commands/stock_transfer/upcoming.js +5 -3
  273. package/lib/commands/stripe_payment/index.d.ts +1 -1
  274. package/lib/commands/stripe_payment/index.js +5 -3
  275. package/lib/commands/stripe_payment/refresh.d.ts +1 -1
  276. package/lib/commands/stripe_payment/refresh.js +5 -3
  277. package/lib/commands/stripe_payment/update.d.ts +1 -1
  278. package/lib/commands/stripe_payment/update.js +5 -3
  279. package/lib/commands/webhook/disable.d.ts +9 -0
  280. package/lib/commands/webhook/disable.js +22 -0
  281. package/lib/commands/webhook/enable.d.ts +9 -0
  282. package/lib/commands/webhook/enable.js +22 -0
  283. package/lib/commands/webhook/index.d.ts +1 -1
  284. package/lib/commands/webhook/index.js +5 -3
  285. package/lib/commands/webhook/reset_circuit.d.ts +1 -1
  286. package/lib/commands/webhook/reset_circuit.js +5 -3
  287. package/lib/exec.d.ts +2 -1
  288. package/lib/triggers/stock_line_items.d.ts +3 -0
  289. package/lib/triggers/stock_line_items.js +20 -0
  290. package/lib/triggers/webhooks.d.ts +1 -1
  291. package/lib/triggers/webhooks.js +10 -0
  292. package/oclif.manifest.json +664 -1
  293. package/package.json +36 -30
@@ -3,7 +3,7 @@ export default class FreeGiftPromotionEnable extends Command {
3
3
  static description: string;
4
4
  static flags: {};
5
5
  static args: {
6
- id: import("@oclif/core/lib/interfaces/parser").Arg<string, Record<string, unknown>>;
6
+ id: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
7
7
  };
8
8
  run(): Promise<any>;
9
9
  }
@@ -5,6 +5,11 @@ const base_1 = tslib_1.__importDefault(require("../../base"));
5
5
  const free_gift_promotions_1 = require("../../triggers/free_gift_promotions");
6
6
  const TRIGGER = 'enable';
7
7
  class FreeGiftPromotionEnable extends base_1.default {
8
+ static description = free_gift_promotions_1.triggers[TRIGGER].description;
9
+ static flags = {};
10
+ static args = {
11
+ ...base_1.default.args,
12
+ };
8
13
  async run() {
9
14
  const { args, flags } = await this.parse(FreeGiftPromotionEnable);
10
15
  const res = await this.executeAction('free_gift_promotions', args.id, TRIGGER, flags);
@@ -14,7 +19,4 @@ class FreeGiftPromotionEnable extends base_1.default {
14
19
  return res;
15
20
  }
16
21
  }
17
- FreeGiftPromotionEnable.description = free_gift_promotions_1.triggers[TRIGGER].description;
18
- FreeGiftPromotionEnable.flags = {};
19
- FreeGiftPromotionEnable.args = Object.assign({}, base_1.default.args);
20
22
  exports.default = FreeGiftPromotionEnable;
@@ -3,7 +3,7 @@ export default class FreeGiftPromotionIndex extends Command {
3
3
  static description: string;
4
4
  static flags: {};
5
5
  static args: {
6
- id: import("@oclif/core/lib/interfaces/parser").Arg<string, Record<string, unknown>>;
6
+ id: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
7
7
  };
8
8
  run(): Promise<any>;
9
9
  }
@@ -20,6 +20,11 @@ const promptAction = async (id) => {
20
20
  return answers.trigger;
21
21
  };
22
22
  class FreeGiftPromotionIndex extends base_1.default {
23
+ static description = 'execute an action on a resource of type free_gift_promotions';
24
+ static flags = {};
25
+ static args = {
26
+ ...base_1.default.args,
27
+ };
23
28
  async run() {
24
29
  const { args, flags } = await this.parse(FreeGiftPromotionIndex);
25
30
  const id = args.id;
@@ -32,7 +37,4 @@ class FreeGiftPromotionIndex extends base_1.default {
32
37
  return res;
33
38
  }
34
39
  }
35
- FreeGiftPromotionIndex.description = 'execute an action on a resource of type free_gift_promotions';
36
- FreeGiftPromotionIndex.flags = {};
37
- FreeGiftPromotionIndex.args = Object.assign({}, base_1.default.args);
38
40
  exports.default = FreeGiftPromotionIndex;
@@ -3,7 +3,7 @@ export default class FreeShippingPromotionDisable extends Command {
3
3
  static description: string;
4
4
  static flags: {};
5
5
  static args: {
6
- id: import("@oclif/core/lib/interfaces/parser").Arg<string, Record<string, unknown>>;
6
+ id: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
7
7
  };
8
8
  run(): Promise<any>;
9
9
  }
@@ -5,6 +5,11 @@ const base_1 = tslib_1.__importDefault(require("../../base"));
5
5
  const free_shipping_promotions_1 = require("../../triggers/free_shipping_promotions");
6
6
  const TRIGGER = 'disable';
7
7
  class FreeShippingPromotionDisable extends base_1.default {
8
+ static description = free_shipping_promotions_1.triggers[TRIGGER].description;
9
+ static flags = {};
10
+ static args = {
11
+ ...base_1.default.args,
12
+ };
8
13
  async run() {
9
14
  const { args, flags } = await this.parse(FreeShippingPromotionDisable);
10
15
  const res = await this.executeAction('free_shipping_promotions', args.id, TRIGGER, flags);
@@ -14,7 +19,4 @@ class FreeShippingPromotionDisable extends base_1.default {
14
19
  return res;
15
20
  }
16
21
  }
17
- FreeShippingPromotionDisable.description = free_shipping_promotions_1.triggers[TRIGGER].description;
18
- FreeShippingPromotionDisable.flags = {};
19
- FreeShippingPromotionDisable.args = Object.assign({}, base_1.default.args);
20
22
  exports.default = FreeShippingPromotionDisable;
@@ -3,7 +3,7 @@ export default class FreeShippingPromotionEnable extends Command {
3
3
  static description: string;
4
4
  static flags: {};
5
5
  static args: {
6
- id: import("@oclif/core/lib/interfaces/parser").Arg<string, Record<string, unknown>>;
6
+ id: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
7
7
  };
8
8
  run(): Promise<any>;
9
9
  }
@@ -5,6 +5,11 @@ const base_1 = tslib_1.__importDefault(require("../../base"));
5
5
  const free_shipping_promotions_1 = require("../../triggers/free_shipping_promotions");
6
6
  const TRIGGER = 'enable';
7
7
  class FreeShippingPromotionEnable extends base_1.default {
8
+ static description = free_shipping_promotions_1.triggers[TRIGGER].description;
9
+ static flags = {};
10
+ static args = {
11
+ ...base_1.default.args,
12
+ };
8
13
  async run() {
9
14
  const { args, flags } = await this.parse(FreeShippingPromotionEnable);
10
15
  const res = await this.executeAction('free_shipping_promotions', args.id, TRIGGER, flags);
@@ -14,7 +19,4 @@ class FreeShippingPromotionEnable extends base_1.default {
14
19
  return res;
15
20
  }
16
21
  }
17
- FreeShippingPromotionEnable.description = free_shipping_promotions_1.triggers[TRIGGER].description;
18
- FreeShippingPromotionEnable.flags = {};
19
- FreeShippingPromotionEnable.args = Object.assign({}, base_1.default.args);
20
22
  exports.default = FreeShippingPromotionEnable;
@@ -3,7 +3,7 @@ export default class FreeShippingPromotionIndex extends Command {
3
3
  static description: string;
4
4
  static flags: {};
5
5
  static args: {
6
- id: import("@oclif/core/lib/interfaces/parser").Arg<string, Record<string, unknown>>;
6
+ id: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
7
7
  };
8
8
  run(): Promise<any>;
9
9
  }
@@ -20,6 +20,11 @@ const promptAction = async (id) => {
20
20
  return answers.trigger;
21
21
  };
22
22
  class FreeShippingPromotionIndex extends base_1.default {
23
+ static description = 'execute an action on a resource of type free_shipping_promotions';
24
+ static flags = {};
25
+ static args = {
26
+ ...base_1.default.args,
27
+ };
23
28
  async run() {
24
29
  const { args, flags } = await this.parse(FreeShippingPromotionIndex);
25
30
  const id = args.id;
@@ -32,7 +37,4 @@ class FreeShippingPromotionIndex extends base_1.default {
32
37
  return res;
33
38
  }
34
39
  }
35
- FreeShippingPromotionIndex.description = 'execute an action on a resource of type free_shipping_promotions';
36
- FreeShippingPromotionIndex.flags = {};
37
- FreeShippingPromotionIndex.args = Object.assign({}, base_1.default.args);
38
40
  exports.default = FreeShippingPromotionIndex;
@@ -3,7 +3,7 @@ export default class GiftCardActivate extends Command {
3
3
  static description: string;
4
4
  static flags: {};
5
5
  static args: {
6
- id: import("@oclif/core/lib/interfaces/parser").Arg<string, Record<string, unknown>>;
6
+ id: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
7
7
  };
8
8
  run(): Promise<any>;
9
9
  }
@@ -5,6 +5,11 @@ const base_1 = tslib_1.__importDefault(require("../../base"));
5
5
  const gift_cards_1 = require("../../triggers/gift_cards");
6
6
  const TRIGGER = 'activate';
7
7
  class GiftCardActivate extends base_1.default {
8
+ static description = gift_cards_1.triggers[TRIGGER].description;
9
+ static flags = {};
10
+ static args = {
11
+ ...base_1.default.args,
12
+ };
8
13
  async run() {
9
14
  const { args, flags } = await this.parse(GiftCardActivate);
10
15
  const res = await this.executeAction('gift_cards', args.id, TRIGGER, flags);
@@ -14,7 +19,4 @@ class GiftCardActivate extends base_1.default {
14
19
  return res;
15
20
  }
16
21
  }
17
- GiftCardActivate.description = gift_cards_1.triggers[TRIGGER].description;
18
- GiftCardActivate.flags = {};
19
- GiftCardActivate.args = Object.assign({}, base_1.default.args);
20
22
  exports.default = GiftCardActivate;
@@ -3,7 +3,7 @@ export default class GiftCardBalanceChangeCents extends Command {
3
3
  static description: string;
4
4
  static flags: {};
5
5
  static args: {
6
- id: import("@oclif/core/lib/interfaces/parser").Arg<string, Record<string, unknown>>;
6
+ id: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
7
7
  };
8
8
  run(): Promise<any>;
9
9
  }
@@ -5,6 +5,11 @@ const base_1 = tslib_1.__importDefault(require("../../base"));
5
5
  const gift_cards_1 = require("../../triggers/gift_cards");
6
6
  const TRIGGER = 'balance_change_cents';
7
7
  class GiftCardBalanceChangeCents extends base_1.default {
8
+ static description = gift_cards_1.triggers[TRIGGER].description;
9
+ static flags = {};
10
+ static args = {
11
+ ...base_1.default.args,
12
+ };
8
13
  async run() {
9
14
  const { args, flags } = await this.parse(GiftCardBalanceChangeCents);
10
15
  const res = await this.executeAction('gift_cards', args.id, TRIGGER, flags);
@@ -14,7 +19,4 @@ class GiftCardBalanceChangeCents extends base_1.default {
14
19
  return res;
15
20
  }
16
21
  }
17
- GiftCardBalanceChangeCents.description = gift_cards_1.triggers[TRIGGER].description;
18
- GiftCardBalanceChangeCents.flags = {};
19
- GiftCardBalanceChangeCents.args = Object.assign({}, base_1.default.args);
20
22
  exports.default = GiftCardBalanceChangeCents;
@@ -3,7 +3,7 @@ export default class GiftCardDeactivate extends Command {
3
3
  static description: string;
4
4
  static flags: {};
5
5
  static args: {
6
- id: import("@oclif/core/lib/interfaces/parser").Arg<string, Record<string, unknown>>;
6
+ id: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
7
7
  };
8
8
  run(): Promise<any>;
9
9
  }
@@ -5,6 +5,11 @@ const base_1 = tslib_1.__importDefault(require("../../base"));
5
5
  const gift_cards_1 = require("../../triggers/gift_cards");
6
6
  const TRIGGER = 'deactivate';
7
7
  class GiftCardDeactivate extends base_1.default {
8
+ static description = gift_cards_1.triggers[TRIGGER].description;
9
+ static flags = {};
10
+ static args = {
11
+ ...base_1.default.args,
12
+ };
8
13
  async run() {
9
14
  const { args, flags } = await this.parse(GiftCardDeactivate);
10
15
  const res = await this.executeAction('gift_cards', args.id, TRIGGER, flags);
@@ -14,7 +19,4 @@ class GiftCardDeactivate extends base_1.default {
14
19
  return res;
15
20
  }
16
21
  }
17
- GiftCardDeactivate.description = gift_cards_1.triggers[TRIGGER].description;
18
- GiftCardDeactivate.flags = {};
19
- GiftCardDeactivate.args = Object.assign({}, base_1.default.args);
20
22
  exports.default = GiftCardDeactivate;
@@ -3,7 +3,7 @@ export default class GiftCardIndex extends Command {
3
3
  static description: string;
4
4
  static flags: {};
5
5
  static args: {
6
- id: import("@oclif/core/lib/interfaces/parser").Arg<string, Record<string, unknown>>;
6
+ id: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
7
7
  };
8
8
  run(): Promise<any>;
9
9
  }
@@ -20,6 +20,11 @@ const promptAction = async (id) => {
20
20
  return answers.trigger;
21
21
  };
22
22
  class GiftCardIndex extends base_1.default {
23
+ static description = 'execute an action on a resource of type gift_cards';
24
+ static flags = {};
25
+ static args = {
26
+ ...base_1.default.args,
27
+ };
23
28
  async run() {
24
29
  const { args, flags } = await this.parse(GiftCardIndex);
25
30
  const id = args.id;
@@ -32,7 +37,4 @@ class GiftCardIndex extends base_1.default {
32
37
  return res;
33
38
  }
34
39
  }
35
- GiftCardIndex.description = 'execute an action on a resource of type gift_cards';
36
- GiftCardIndex.flags = {};
37
- GiftCardIndex.args = Object.assign({}, base_1.default.args);
38
40
  exports.default = GiftCardIndex;
@@ -3,7 +3,7 @@ export default class GiftCardPurchase extends Command {
3
3
  static description: string;
4
4
  static flags: {};
5
5
  static args: {
6
- id: import("@oclif/core/lib/interfaces/parser").Arg<string, Record<string, unknown>>;
6
+ id: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
7
7
  };
8
8
  run(): Promise<any>;
9
9
  }
@@ -5,6 +5,11 @@ const base_1 = tslib_1.__importDefault(require("../../base"));
5
5
  const gift_cards_1 = require("../../triggers/gift_cards");
6
6
  const TRIGGER = 'purchase';
7
7
  class GiftCardPurchase extends base_1.default {
8
+ static description = gift_cards_1.triggers[TRIGGER].description;
9
+ static flags = {};
10
+ static args = {
11
+ ...base_1.default.args,
12
+ };
8
13
  async run() {
9
14
  const { args, flags } = await this.parse(GiftCardPurchase);
10
15
  const res = await this.executeAction('gift_cards', args.id, TRIGGER, flags);
@@ -14,7 +19,4 @@ class GiftCardPurchase extends base_1.default {
14
19
  return res;
15
20
  }
16
21
  }
17
- GiftCardPurchase.description = gift_cards_1.triggers[TRIGGER].description;
18
- GiftCardPurchase.flags = {};
19
- GiftCardPurchase.args = Object.assign({}, base_1.default.args);
20
22
  exports.default = GiftCardPurchase;
@@ -3,7 +3,7 @@ export default class InStockSubscriptionActivate extends Command {
3
3
  static description: string;
4
4
  static flags: {};
5
5
  static args: {
6
- id: import("@oclif/core/lib/interfaces/parser").Arg<string, Record<string, unknown>>;
6
+ id: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
7
7
  };
8
8
  run(): Promise<any>;
9
9
  }
@@ -5,6 +5,11 @@ const base_1 = tslib_1.__importDefault(require("../../base"));
5
5
  const in_stock_subscriptions_1 = require("../../triggers/in_stock_subscriptions");
6
6
  const TRIGGER = 'activate';
7
7
  class InStockSubscriptionActivate extends base_1.default {
8
+ static description = in_stock_subscriptions_1.triggers[TRIGGER].description;
9
+ static flags = {};
10
+ static args = {
11
+ ...base_1.default.args,
12
+ };
8
13
  async run() {
9
14
  const { args, flags } = await this.parse(InStockSubscriptionActivate);
10
15
  const res = await this.executeAction('in_stock_subscriptions', args.id, TRIGGER, flags);
@@ -14,7 +19,4 @@ class InStockSubscriptionActivate extends base_1.default {
14
19
  return res;
15
20
  }
16
21
  }
17
- InStockSubscriptionActivate.description = in_stock_subscriptions_1.triggers[TRIGGER].description;
18
- InStockSubscriptionActivate.flags = {};
19
- InStockSubscriptionActivate.args = Object.assign({}, base_1.default.args);
20
22
  exports.default = InStockSubscriptionActivate;
@@ -3,7 +3,7 @@ export default class InStockSubscriptionDeactivate extends Command {
3
3
  static description: string;
4
4
  static flags: {};
5
5
  static args: {
6
- id: import("@oclif/core/lib/interfaces/parser").Arg<string, Record<string, unknown>>;
6
+ id: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
7
7
  };
8
8
  run(): Promise<any>;
9
9
  }
@@ -5,6 +5,11 @@ const base_1 = tslib_1.__importDefault(require("../../base"));
5
5
  const in_stock_subscriptions_1 = require("../../triggers/in_stock_subscriptions");
6
6
  const TRIGGER = 'deactivate';
7
7
  class InStockSubscriptionDeactivate extends base_1.default {
8
+ static description = in_stock_subscriptions_1.triggers[TRIGGER].description;
9
+ static flags = {};
10
+ static args = {
11
+ ...base_1.default.args,
12
+ };
8
13
  async run() {
9
14
  const { args, flags } = await this.parse(InStockSubscriptionDeactivate);
10
15
  const res = await this.executeAction('in_stock_subscriptions', args.id, TRIGGER, flags);
@@ -14,7 +19,4 @@ class InStockSubscriptionDeactivate extends base_1.default {
14
19
  return res;
15
20
  }
16
21
  }
17
- InStockSubscriptionDeactivate.description = in_stock_subscriptions_1.triggers[TRIGGER].description;
18
- InStockSubscriptionDeactivate.flags = {};
19
- InStockSubscriptionDeactivate.args = Object.assign({}, base_1.default.args);
20
22
  exports.default = InStockSubscriptionDeactivate;
@@ -3,7 +3,7 @@ export default class InStockSubscriptionIndex extends Command {
3
3
  static description: string;
4
4
  static flags: {};
5
5
  static args: {
6
- id: import("@oclif/core/lib/interfaces/parser").Arg<string, Record<string, unknown>>;
6
+ id: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
7
7
  };
8
8
  run(): Promise<any>;
9
9
  }
@@ -20,6 +20,11 @@ const promptAction = async (id) => {
20
20
  return answers.trigger;
21
21
  };
22
22
  class InStockSubscriptionIndex extends base_1.default {
23
+ static description = 'execute an action on a resource of type in_stock_subscriptions';
24
+ static flags = {};
25
+ static args = {
26
+ ...base_1.default.args,
27
+ };
23
28
  async run() {
24
29
  const { args, flags } = await this.parse(InStockSubscriptionIndex);
25
30
  const id = args.id;
@@ -32,7 +37,4 @@ class InStockSubscriptionIndex extends base_1.default {
32
37
  return res;
33
38
  }
34
39
  }
35
- InStockSubscriptionIndex.description = 'execute an action on a resource of type in_stock_subscriptions';
36
- InStockSubscriptionIndex.flags = {};
37
- InStockSubscriptionIndex.args = Object.assign({}, base_1.default.args);
38
40
  exports.default = InStockSubscriptionIndex;
@@ -3,7 +3,7 @@ export default class KlarnaPaymentIndex extends Command {
3
3
  static description: string;
4
4
  static flags: {};
5
5
  static args: {
6
- id: import("@oclif/core/lib/interfaces/parser").Arg<string, Record<string, unknown>>;
6
+ id: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
7
7
  };
8
8
  run(): Promise<any>;
9
9
  }
@@ -20,6 +20,11 @@ const promptAction = async (id) => {
20
20
  return answers.trigger;
21
21
  };
22
22
  class KlarnaPaymentIndex extends base_1.default {
23
+ static description = 'execute an action on a resource of type klarna_payments';
24
+ static flags = {};
25
+ static args = {
26
+ ...base_1.default.args,
27
+ };
23
28
  async run() {
24
29
  const { args, flags } = await this.parse(KlarnaPaymentIndex);
25
30
  const id = args.id;
@@ -32,7 +37,4 @@ class KlarnaPaymentIndex extends base_1.default {
32
37
  return res;
33
38
  }
34
39
  }
35
- KlarnaPaymentIndex.description = 'execute an action on a resource of type klarna_payments';
36
- KlarnaPaymentIndex.flags = {};
37
- KlarnaPaymentIndex.args = Object.assign({}, base_1.default.args);
38
40
  exports.default = KlarnaPaymentIndex;
@@ -3,7 +3,7 @@ export default class KlarnaPaymentUpdate extends Command {
3
3
  static description: string;
4
4
  static flags: {};
5
5
  static args: {
6
- id: import("@oclif/core/lib/interfaces/parser").Arg<string, Record<string, unknown>>;
6
+ id: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
7
7
  };
8
8
  run(): Promise<any>;
9
9
  }
@@ -5,6 +5,11 @@ const base_1 = tslib_1.__importDefault(require("../../base"));
5
5
  const klarna_payments_1 = require("../../triggers/klarna_payments");
6
6
  const TRIGGER = 'update';
7
7
  class KlarnaPaymentUpdate extends base_1.default {
8
+ static description = klarna_payments_1.triggers[TRIGGER].description;
9
+ static flags = {};
10
+ static args = {
11
+ ...base_1.default.args,
12
+ };
8
13
  async run() {
9
14
  const { args, flags } = await this.parse(KlarnaPaymentUpdate);
10
15
  const res = await this.executeAction('klarna_payments', args.id, TRIGGER, flags);
@@ -14,7 +19,4 @@ class KlarnaPaymentUpdate extends base_1.default {
14
19
  return res;
15
20
  }
16
21
  }
17
- KlarnaPaymentUpdate.description = klarna_payments_1.triggers[TRIGGER].description;
18
- KlarnaPaymentUpdate.flags = {};
19
- KlarnaPaymentUpdate.args = Object.assign({}, base_1.default.args);
20
22
  exports.default = KlarnaPaymentUpdate;
@@ -3,7 +3,7 @@ export default class LineItemExternalPrice extends Command {
3
3
  static description: string;
4
4
  static flags: {};
5
5
  static args: {
6
- id: import("@oclif/core/lib/interfaces/parser").Arg<string, Record<string, unknown>>;
6
+ id: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
7
7
  };
8
8
  run(): Promise<any>;
9
9
  }
@@ -5,6 +5,11 @@ const base_1 = tslib_1.__importDefault(require("../../base"));
5
5
  const line_items_1 = require("../../triggers/line_items");
6
6
  const TRIGGER = 'external_price';
7
7
  class LineItemExternalPrice extends base_1.default {
8
+ static description = line_items_1.triggers[TRIGGER].description;
9
+ static flags = {};
10
+ static args = {
11
+ ...base_1.default.args,
12
+ };
8
13
  async run() {
9
14
  const { args, flags } = await this.parse(LineItemExternalPrice);
10
15
  const res = await this.executeAction('line_items', args.id, TRIGGER, flags);
@@ -14,7 +19,4 @@ class LineItemExternalPrice extends base_1.default {
14
19
  return res;
15
20
  }
16
21
  }
17
- LineItemExternalPrice.description = line_items_1.triggers[TRIGGER].description;
18
- LineItemExternalPrice.flags = {};
19
- LineItemExternalPrice.args = Object.assign({}, base_1.default.args);
20
22
  exports.default = LineItemExternalPrice;
@@ -3,7 +3,7 @@ export default class LineItemIndex extends Command {
3
3
  static description: string;
4
4
  static flags: {};
5
5
  static args: {
6
- id: import("@oclif/core/lib/interfaces/parser").Arg<string, Record<string, unknown>>;
6
+ id: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
7
7
  };
8
8
  run(): Promise<any>;
9
9
  }
@@ -20,6 +20,11 @@ const promptAction = async (id) => {
20
20
  return answers.trigger;
21
21
  };
22
22
  class LineItemIndex extends base_1.default {
23
+ static description = 'execute an action on a resource of type line_items';
24
+ static flags = {};
25
+ static args = {
26
+ ...base_1.default.args,
27
+ };
23
28
  async run() {
24
29
  const { args, flags } = await this.parse(LineItemIndex);
25
30
  const id = args.id;
@@ -32,7 +37,4 @@ class LineItemIndex extends base_1.default {
32
37
  return res;
33
38
  }
34
39
  }
35
- LineItemIndex.description = 'execute an action on a resource of type line_items';
36
- LineItemIndex.flags = {};
37
- LineItemIndex.args = Object.assign({}, base_1.default.args);
38
40
  exports.default = LineItemIndex;
@@ -3,7 +3,7 @@ export default class LineItemReserveStock extends Command {
3
3
  static description: string;
4
4
  static flags: {};
5
5
  static args: {
6
- id: import("@oclif/core/lib/interfaces/parser").Arg<string, Record<string, unknown>>;
6
+ id: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
7
7
  };
8
8
  run(): Promise<any>;
9
9
  }
@@ -5,6 +5,11 @@ const base_1 = tslib_1.__importDefault(require("../../base"));
5
5
  const line_items_1 = require("../../triggers/line_items");
6
6
  const TRIGGER = 'reserve_stock';
7
7
  class LineItemReserveStock extends base_1.default {
8
+ static description = line_items_1.triggers[TRIGGER].description;
9
+ static flags = {};
10
+ static args = {
11
+ ...base_1.default.args,
12
+ };
8
13
  async run() {
9
14
  const { args, flags } = await this.parse(LineItemReserveStock);
10
15
  const res = await this.executeAction('line_items', args.id, TRIGGER, flags);
@@ -14,7 +19,4 @@ class LineItemReserveStock extends base_1.default {
14
19
  return res;
15
20
  }
16
21
  }
17
- LineItemReserveStock.description = line_items_1.triggers[TRIGGER].description;
18
- LineItemReserveStock.flags = {};
19
- LineItemReserveStock.args = Object.assign({}, base_1.default.args);
20
22
  exports.default = LineItemReserveStock;
@@ -3,7 +3,7 @@ export default class MarketDisable extends Command {
3
3
  static description: string;
4
4
  static flags: {};
5
5
  static args: {
6
- id: import("@oclif/core/lib/interfaces/parser").Arg<string, Record<string, unknown>>;
6
+ id: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
7
7
  };
8
8
  run(): Promise<any>;
9
9
  }
@@ -5,6 +5,11 @@ const base_1 = tslib_1.__importDefault(require("../../base"));
5
5
  const markets_1 = require("../../triggers/markets");
6
6
  const TRIGGER = 'disable';
7
7
  class MarketDisable extends base_1.default {
8
+ static description = markets_1.triggers[TRIGGER].description;
9
+ static flags = {};
10
+ static args = {
11
+ ...base_1.default.args,
12
+ };
8
13
  async run() {
9
14
  const { args, flags } = await this.parse(MarketDisable);
10
15
  const res = await this.executeAction('markets', args.id, TRIGGER, flags);
@@ -14,7 +19,4 @@ class MarketDisable extends base_1.default {
14
19
  return res;
15
20
  }
16
21
  }
17
- MarketDisable.description = markets_1.triggers[TRIGGER].description;
18
- MarketDisable.flags = {};
19
- MarketDisable.args = Object.assign({}, base_1.default.args);
20
22
  exports.default = MarketDisable;
@@ -3,7 +3,7 @@ export default class MarketEnable extends Command {
3
3
  static description: string;
4
4
  static flags: {};
5
5
  static args: {
6
- id: import("@oclif/core/lib/interfaces/parser").Arg<string, Record<string, unknown>>;
6
+ id: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
7
7
  };
8
8
  run(): Promise<any>;
9
9
  }
@@ -5,6 +5,11 @@ const base_1 = tslib_1.__importDefault(require("../../base"));
5
5
  const markets_1 = require("../../triggers/markets");
6
6
  const TRIGGER = 'enable';
7
7
  class MarketEnable extends base_1.default {
8
+ static description = markets_1.triggers[TRIGGER].description;
9
+ static flags = {};
10
+ static args = {
11
+ ...base_1.default.args,
12
+ };
8
13
  async run() {
9
14
  const { args, flags } = await this.parse(MarketEnable);
10
15
  const res = await this.executeAction('markets', args.id, TRIGGER, flags);
@@ -14,7 +19,4 @@ class MarketEnable extends base_1.default {
14
19
  return res;
15
20
  }
16
21
  }
17
- MarketEnable.description = markets_1.triggers[TRIGGER].description;
18
- MarketEnable.flags = {};
19
- MarketEnable.args = Object.assign({}, base_1.default.args);
20
22
  exports.default = MarketEnable;
@@ -3,7 +3,7 @@ export default class MarketIndex extends Command {
3
3
  static description: string;
4
4
  static flags: {};
5
5
  static args: {
6
- id: import("@oclif/core/lib/interfaces/parser").Arg<string, Record<string, unknown>>;
6
+ id: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
7
7
  };
8
8
  run(): Promise<any>;
9
9
  }
@@ -20,6 +20,11 @@ const promptAction = async (id) => {
20
20
  return answers.trigger;
21
21
  };
22
22
  class MarketIndex extends base_1.default {
23
+ static description = 'execute an action on a resource of type markets';
24
+ static flags = {};
25
+ static args = {
26
+ ...base_1.default.args,
27
+ };
23
28
  async run() {
24
29
  const { args, flags } = await this.parse(MarketIndex);
25
30
  const id = args.id;
@@ -32,7 +37,4 @@ class MarketIndex extends base_1.default {
32
37
  return res;
33
38
  }
34
39
  }
35
- MarketIndex.description = 'execute an action on a resource of type markets';
36
- MarketIndex.flags = {};
37
- MarketIndex.args = Object.assign({}, base_1.default.args);
38
40
  exports.default = MarketIndex;