@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
package/README.md CHANGED
@@ -150,6 +150,10 @@ $ commercelayer plugins:install triggers
150
150
  * [`commercelayer shipping_method ID`](#commercelayer-shipping_method-id)
151
151
  * [`commercelayer shipping_method:disable ID`](#commercelayer-shipping_methoddisable-id)
152
152
  * [`commercelayer shipping_method:enable ID`](#commercelayer-shipping_methodenable-id)
153
+ * [`commercelayer stock_line_item ID`](#commercelayer-stock_line_item-id)
154
+ * [`commercelayer stock_line_item:decrement_stock ID`](#commercelayer-stock_line_itemdecrement_stock-id)
155
+ * [`commercelayer stock_line_item:release_stock ID`](#commercelayer-stock_line_itemrelease_stock-id)
156
+ * [`commercelayer stock_line_item:reserve_stock ID`](#commercelayer-stock_line_itemreserve_stock-id)
153
157
  * [`commercelayer stock_reservation ID`](#commercelayer-stock_reservation-id)
154
158
  * [`commercelayer stock_reservation:pending ID`](#commercelayer-stock_reservationpending-id)
155
159
  * [`commercelayer stock_transfer ID`](#commercelayer-stock_transfer-id)
@@ -163,6 +167,8 @@ $ commercelayer plugins:install triggers
163
167
  * [`commercelayer stripe_payment:refresh ID`](#commercelayer-stripe_paymentrefresh-id)
164
168
  * [`commercelayer stripe_payment:update ID`](#commercelayer-stripe_paymentupdate-id)
165
169
  * [`commercelayer webhook ID`](#commercelayer-webhook-id)
170
+ * [`commercelayer webhook:disable ID`](#commercelayer-webhookdisable-id)
171
+ * [`commercelayer webhook:enable ID`](#commercelayer-webhookenable-id)
166
172
  * [`commercelayer webhook:reset_circuit ID`](#commercelayer-webhookreset_circuit-id)
167
173
 
168
174
  ### `commercelayer adyen_payment ID`
@@ -2826,6 +2832,97 @@ DESCRIPTION
2826
2832
 
2827
2833
  _See code: [src/commands/shipping_method/enable.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/shipping_method/enable.ts)_
2828
2834
 
2835
+ ### `commercelayer stock_line_item ID`
2836
+
2837
+ Execute an action on a resource of type stock_line_items.
2838
+
2839
+ ```sh-session
2840
+ USAGE
2841
+ $ commercelayer stock_line_item ID [-u [-j -p]]
2842
+
2843
+ ARGUMENTS
2844
+ ID the unique id of the resource
2845
+
2846
+ FLAGS
2847
+ -j, --json print result in JSON format
2848
+ -p, --print print out the modified resource
2849
+ -u, --unformatted print JSON output without indentation
2850
+
2851
+ DESCRIPTION
2852
+ execute an action on a resource of type stock_line_items
2853
+ ```
2854
+
2855
+ _See code: [src/commands/stock_line_item/index.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/stock_line_item/index.ts)_
2856
+
2857
+ ### `commercelayer stock_line_item:decrement_stock ID`
2858
+
2859
+ Send this attribute if you want to automatically decrement and release the stock this stock line item. Can be done only when fulfillment is in progress.
2860
+
2861
+ ```sh-session
2862
+ USAGE
2863
+ $ commercelayer stock_line_item:decrement_stock ID [-u [-j -p]]
2864
+
2865
+ ARGUMENTS
2866
+ ID the unique id of the resource
2867
+
2868
+ FLAGS
2869
+ -j, --json print result in JSON format
2870
+ -p, --print print out the modified resource
2871
+ -u, --unformatted print JSON output without indentation
2872
+
2873
+ DESCRIPTION
2874
+ Send this attribute if you want to automatically decrement and release the stock this stock line item. Can be done
2875
+ only when fulfillment is in progress.
2876
+ ```
2877
+
2878
+ _See code: [src/commands/stock_line_item/decrement_stock.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/stock_line_item/decrement_stock.ts)_
2879
+
2880
+ ### `commercelayer stock_line_item:release_stock ID`
2881
+
2882
+ Send this attribute if you want to automatically release the stock for this stock line item. Can be done only when fulfillment is in progress.
2883
+
2884
+ ```sh-session
2885
+ USAGE
2886
+ $ commercelayer stock_line_item:release_stock ID [-u [-j -p]]
2887
+
2888
+ ARGUMENTS
2889
+ ID the unique id of the resource
2890
+
2891
+ FLAGS
2892
+ -j, --json print result in JSON format
2893
+ -p, --print print out the modified resource
2894
+ -u, --unformatted print JSON output without indentation
2895
+
2896
+ DESCRIPTION
2897
+ Send this attribute if you want to automatically release the stock for this stock line item. Can be done only when
2898
+ fulfillment is in progress.
2899
+ ```
2900
+
2901
+ _See code: [src/commands/stock_line_item/release_stock.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/stock_line_item/release_stock.ts)_
2902
+
2903
+ ### `commercelayer stock_line_item:reserve_stock ID`
2904
+
2905
+ Send this attribute if you want to automatically reserve the stock for this stock line item. Can be done only when fulfillment is in progress.
2906
+
2907
+ ```sh-session
2908
+ USAGE
2909
+ $ commercelayer stock_line_item:reserve_stock ID [-u [-j -p]]
2910
+
2911
+ ARGUMENTS
2912
+ ID the unique id of the resource
2913
+
2914
+ FLAGS
2915
+ -j, --json print result in JSON format
2916
+ -p, --print print out the modified resource
2917
+ -u, --unformatted print JSON output without indentation
2918
+
2919
+ DESCRIPTION
2920
+ Send this attribute if you want to automatically reserve the stock for this stock line item. Can be done only when
2921
+ fulfillment is in progress.
2922
+ ```
2923
+
2924
+ _See code: [src/commands/stock_line_item/reserve_stock.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/stock_line_item/reserve_stock.ts)_
2925
+
2829
2926
  ### `commercelayer stock_reservation ID`
2830
2927
 
2831
2928
  Execute an action on a resource of type stock_reservations.
@@ -3112,6 +3209,50 @@ DESCRIPTION
3112
3209
 
3113
3210
  _See code: [src/commands/webhook/index.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/webhook/index.ts)_
3114
3211
 
3212
+ ### `commercelayer webhook:disable ID`
3213
+
3214
+ Send this attribute if you want to mark the webhook as disabled.
3215
+
3216
+ ```sh-session
3217
+ USAGE
3218
+ $ commercelayer webhook:disable ID [-u [-j -p]]
3219
+
3220
+ ARGUMENTS
3221
+ ID the unique id of the resource
3222
+
3223
+ FLAGS
3224
+ -j, --json print result in JSON format
3225
+ -p, --print print out the modified resource
3226
+ -u, --unformatted print JSON output without indentation
3227
+
3228
+ DESCRIPTION
3229
+ Send this attribute if you want to mark the webhook as disabled.
3230
+ ```
3231
+
3232
+ _See code: [src/commands/webhook/disable.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/webhook/disable.ts)_
3233
+
3234
+ ### `commercelayer webhook:enable ID`
3235
+
3236
+ Send this attribute if you want to mark the webhook as enabled.
3237
+
3238
+ ```sh-session
3239
+ USAGE
3240
+ $ commercelayer webhook:enable ID [-u [-j -p]]
3241
+
3242
+ ARGUMENTS
3243
+ ID the unique id of the resource
3244
+
3245
+ FLAGS
3246
+ -j, --json print result in JSON format
3247
+ -p, --print print out the modified resource
3248
+ -u, --unformatted print JSON output without indentation
3249
+
3250
+ DESCRIPTION
3251
+ Send this attribute if you want to mark the webhook as enabled.
3252
+ ```
3253
+
3254
+ _See code: [src/commands/webhook/enable.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/webhook/enable.ts)_
3255
+
3115
3256
  ### `commercelayer webhook:reset_circuit ID`
3116
3257
 
3117
3258
  Send this attribute if you want to reset the circuit breaker associated to this webhook to 'closed' state and zero failures count.
package/bin/dev CHANGED
File without changes
package/bin/run CHANGED
File without changes
package/lib/base.d.ts CHANGED
@@ -4,15 +4,15 @@ import type { Resource } from '@commercelayer/sdk/lib/cjs/resource';
4
4
  import type { CLIError } from '@oclif/core/lib/errors';
5
5
  export default abstract class extends Command {
6
6
  static baseFlags: {
7
- organization: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
8
- domain: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
9
- accessToken: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
7
+ organization: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
8
+ domain: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
9
+ accessToken: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
10
10
  print: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
11
11
  json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
12
12
  unformatted: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
13
13
  };
14
14
  static args: {
15
- id: import("@oclif/core/lib/interfaces/parser").Arg<string, Record<string, unknown>>;
15
+ id: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
16
16
  };
17
17
  init(): Promise<any>;
18
18
  catch(error: CLIError): Promise<any>;
package/lib/base.js CHANGED
@@ -9,6 +9,44 @@ const cli_core_1 = require("@commercelayer/cli-core");
9
9
  const exec_1 = tslib_1.__importDefault(require("./exec"));
10
10
  const pkg = require('../package.json');
11
11
  class default_1 extends core_1.Command {
12
+ static baseFlags = {
13
+ organization: core_1.Flags.string({
14
+ char: 'o',
15
+ description: 'the slug of your organization',
16
+ required: true,
17
+ env: 'CL_CLI_ORGANIZATION',
18
+ hidden: true,
19
+ }),
20
+ domain: core_1.Flags.string({
21
+ char: 'd',
22
+ required: false,
23
+ hidden: true,
24
+ dependsOn: ['organization'],
25
+ env: 'CL_CLI_DOMAIN',
26
+ }),
27
+ accessToken: core_1.Flags.string({
28
+ hidden: true,
29
+ required: true,
30
+ env: 'CL_CLI_ACCESS_TOKEN',
31
+ }),
32
+ print: core_1.Flags.boolean({
33
+ char: 'p',
34
+ description: 'print out the modified resource',
35
+ }),
36
+ json: core_1.Flags.boolean({
37
+ char: 'j',
38
+ description: 'print result in JSON format',
39
+ dependsOn: ['print'],
40
+ }),
41
+ unformatted: core_1.Flags.boolean({
42
+ char: 'u',
43
+ description: 'print JSON output without indentation',
44
+ dependsOn: ['json'],
45
+ }),
46
+ };
47
+ static args = {
48
+ id: core_1.Args.string({ name: 'id', description: 'the unique id of the resource', required: true }),
49
+ };
12
50
  // INIT (override)
13
51
  async init() {
14
52
  cli_core_1.clUpdate.checkUpdate(pkg);
@@ -18,15 +56,15 @@ class default_1 extends core_1.Command {
18
56
  this.handleError(error);
19
57
  }
20
58
  handleError(error, flags) {
21
- var _a, _b;
22
- if ((_a = error.message) === null || _a === void 0 ? void 0 : _a.match(/Missing \d required args?:\nid/)) {
59
+ if (error.message?.match(/Missing \d required args?:\nid/)) {
60
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
23
61
  const resName = cli_core_1.clApi.humanizeResource((error.parse.input.context.id).split(':')[0]);
24
62
  this.error(`Missing the required unique ${cli_core_1.clColor.style.error('id')} of the ${cli_core_1.clColor.cli.command(resName)}`);
25
63
  }
26
64
  else if (sdk_1.CommerceLayerStatic.isApiError(error)) {
27
65
  let res = '';
28
66
  let id = '';
29
- if ((_b = error.code) === null || _b === void 0 ? void 0 : _b.startsWith('RES_')) {
67
+ if (error.code?.startsWith('RES_')) {
30
68
  const tokens = error.code.replace('RES_', '').split('_');
31
69
  if (tokens.length > 0)
32
70
  res = tokens[0];
@@ -56,42 +94,4 @@ class default_1 extends core_1.Command {
56
94
  return await (0, exec_1.default)(resourceType, id, action, flags, fields, this.config);
57
95
  }
58
96
  }
59
- default_1.baseFlags = {
60
- organization: core_1.Flags.string({
61
- char: 'o',
62
- description: 'the slug of your organization',
63
- required: true,
64
- env: 'CL_CLI_ORGANIZATION',
65
- hidden: true,
66
- }),
67
- domain: core_1.Flags.string({
68
- char: 'd',
69
- required: false,
70
- hidden: true,
71
- dependsOn: ['organization'],
72
- env: 'CL_CLI_DOMAIN',
73
- }),
74
- accessToken: core_1.Flags.string({
75
- hidden: true,
76
- required: true,
77
- env: 'CL_CLI_ACCESS_TOKEN',
78
- }),
79
- print: core_1.Flags.boolean({
80
- char: 'p',
81
- description: 'print out the modified resource',
82
- }),
83
- json: core_1.Flags.boolean({
84
- char: 'j',
85
- description: 'print result in JSON format',
86
- dependsOn: ['print'],
87
- }),
88
- unformatted: core_1.Flags.boolean({
89
- char: 'u',
90
- description: 'print JSON output without indentation',
91
- dependsOn: ['json'],
92
- }),
93
- };
94
- default_1.args = {
95
- id: core_1.Args.string({ name: 'id', description: 'the unique id of the resource', required: true }),
96
- };
97
97
  exports.default = default_1;
@@ -3,7 +3,7 @@ export default class AdyenPaymentDetails 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 adyen_payments_1 = require("../../triggers/adyen_payments");
6
6
  const TRIGGER = 'details';
7
7
  class AdyenPaymentDetails extends base_1.default {
8
+ static description = adyen_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(AdyenPaymentDetails);
10
15
  const res = await this.executeAction('adyen_payments', args.id, TRIGGER, flags);
@@ -14,7 +19,4 @@ class AdyenPaymentDetails extends base_1.default {
14
19
  return res;
15
20
  }
16
21
  }
17
- AdyenPaymentDetails.description = adyen_payments_1.triggers[TRIGGER].description;
18
- AdyenPaymentDetails.flags = {};
19
- AdyenPaymentDetails.args = Object.assign({}, base_1.default.args);
20
22
  exports.default = AdyenPaymentDetails;
@@ -3,7 +3,7 @@ export default class AdyenPaymentIndex 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 AdyenPaymentIndex extends base_1.default {
23
+ static description = 'execute an action on a resource of type adyen_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(AdyenPaymentIndex);
25
30
  const id = args.id;
@@ -32,7 +37,4 @@ class AdyenPaymentIndex extends base_1.default {
32
37
  return res;
33
38
  }
34
39
  }
35
- AdyenPaymentIndex.description = 'execute an action on a resource of type adyen_payments';
36
- AdyenPaymentIndex.flags = {};
37
- AdyenPaymentIndex.args = Object.assign({}, base_1.default.args);
38
40
  exports.default = AdyenPaymentIndex;
@@ -3,7 +3,7 @@ export default class AuthorizationCapture 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 authorizations_1 = require("../../triggers/authorizations");
6
6
  const TRIGGER = 'capture';
7
7
  class AuthorizationCapture extends base_1.default {
8
+ static description = authorizations_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(AuthorizationCapture);
10
15
  const res = await this.executeAction('authorizations', args.id, TRIGGER, flags);
@@ -14,7 +19,4 @@ class AuthorizationCapture extends base_1.default {
14
19
  return res;
15
20
  }
16
21
  }
17
- AuthorizationCapture.description = authorizations_1.triggers[TRIGGER].description;
18
- AuthorizationCapture.flags = {};
19
- AuthorizationCapture.args = Object.assign({}, base_1.default.args);
20
22
  exports.default = AuthorizationCapture;
@@ -3,7 +3,7 @@ export default class AuthorizationCaptureAmountCents 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 authorizations_1 = require("../../triggers/authorizations");
6
6
  const TRIGGER = 'capture_amount_cents';
7
7
  class AuthorizationCaptureAmountCents extends base_1.default {
8
+ static description = authorizations_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(AuthorizationCaptureAmountCents);
10
15
  const res = await this.executeAction('authorizations', args.id, TRIGGER, flags);
@@ -14,7 +19,4 @@ class AuthorizationCaptureAmountCents extends base_1.default {
14
19
  return res;
15
20
  }
16
21
  }
17
- AuthorizationCaptureAmountCents.description = authorizations_1.triggers[TRIGGER].description;
18
- AuthorizationCaptureAmountCents.flags = {};
19
- AuthorizationCaptureAmountCents.args = Object.assign({}, base_1.default.args);
20
22
  exports.default = AuthorizationCaptureAmountCents;
@@ -3,7 +3,7 @@ export default class AuthorizationIndex 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 AuthorizationIndex extends base_1.default {
23
+ static description = 'execute an action on a resource of type authorizations';
24
+ static flags = {};
25
+ static args = {
26
+ ...base_1.default.args,
27
+ };
23
28
  async run() {
24
29
  const { args, flags } = await this.parse(AuthorizationIndex);
25
30
  const id = args.id;
@@ -32,7 +37,4 @@ class AuthorizationIndex extends base_1.default {
32
37
  return res;
33
38
  }
34
39
  }
35
- AuthorizationIndex.description = 'execute an action on a resource of type authorizations';
36
- AuthorizationIndex.flags = {};
37
- AuthorizationIndex.args = Object.assign({}, base_1.default.args);
38
40
  exports.default = AuthorizationIndex;
@@ -3,7 +3,7 @@ export default class AuthorizationVoid 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 authorizations_1 = require("../../triggers/authorizations");
6
6
  const TRIGGER = 'void';
7
7
  class AuthorizationVoid extends base_1.default {
8
+ static description = authorizations_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(AuthorizationVoid);
10
15
  const res = await this.executeAction('authorizations', args.id, TRIGGER, flags);
@@ -14,7 +19,4 @@ class AuthorizationVoid extends base_1.default {
14
19
  return res;
15
20
  }
16
21
  }
17
- AuthorizationVoid.description = authorizations_1.triggers[TRIGGER].description;
18
- AuthorizationVoid.flags = {};
19
- AuthorizationVoid.args = Object.assign({}, base_1.default.args);
20
22
  exports.default = AuthorizationVoid;
@@ -3,7 +3,7 @@ export default class AxervePaymentIndex 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 AxervePaymentIndex extends base_1.default {
23
+ static description = 'execute an action on a resource of type axerve_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(AxervePaymentIndex);
25
30
  const id = args.id;
@@ -32,7 +37,4 @@ class AxervePaymentIndex extends base_1.default {
32
37
  return res;
33
38
  }
34
39
  }
35
- AxervePaymentIndex.description = 'execute an action on a resource of type axerve_payments';
36
- AxervePaymentIndex.flags = {};
37
- AxervePaymentIndex.args = Object.assign({}, base_1.default.args);
38
40
  exports.default = AxervePaymentIndex;
@@ -3,7 +3,7 @@ export default class AxervePaymentUpdate 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 axerve_payments_1 = require("../../triggers/axerve_payments");
6
6
  const TRIGGER = 'update';
7
7
  class AxervePaymentUpdate extends base_1.default {
8
+ static description = axerve_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(AxervePaymentUpdate);
10
15
  const res = await this.executeAction('axerve_payments', args.id, TRIGGER, flags);
@@ -14,7 +19,4 @@ class AxervePaymentUpdate extends base_1.default {
14
19
  return res;
15
20
  }
16
21
  }
17
- AxervePaymentUpdate.description = axerve_payments_1.triggers[TRIGGER].description;
18
- AxervePaymentUpdate.flags = {};
19
- AxervePaymentUpdate.args = Object.assign({}, base_1.default.args);
20
22
  exports.default = AxervePaymentUpdate;
@@ -3,7 +3,7 @@ export default class BundleComputeCompareAtAmount 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 bundles_1 = require("../../triggers/bundles");
6
6
  const TRIGGER = 'compute_compare_at_amount';
7
7
  class BundleComputeCompareAtAmount extends base_1.default {
8
+ static description = bundles_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(BundleComputeCompareAtAmount);
10
15
  const res = await this.executeAction('bundles', args.id, TRIGGER, flags);
@@ -14,7 +19,4 @@ class BundleComputeCompareAtAmount extends base_1.default {
14
19
  return res;
15
20
  }
16
21
  }
17
- BundleComputeCompareAtAmount.description = bundles_1.triggers[TRIGGER].description;
18
- BundleComputeCompareAtAmount.flags = {};
19
- BundleComputeCompareAtAmount.args = Object.assign({}, base_1.default.args);
20
22
  exports.default = BundleComputeCompareAtAmount;
@@ -3,7 +3,7 @@ export default class BundleComputePriceAmount 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 bundles_1 = require("../../triggers/bundles");
6
6
  const TRIGGER = 'compute_price_amount';
7
7
  class BundleComputePriceAmount extends base_1.default {
8
+ static description = bundles_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(BundleComputePriceAmount);
10
15
  const res = await this.executeAction('bundles', args.id, TRIGGER, flags);
@@ -14,7 +19,4 @@ class BundleComputePriceAmount extends base_1.default {
14
19
  return res;
15
20
  }
16
21
  }
17
- BundleComputePriceAmount.description = bundles_1.triggers[TRIGGER].description;
18
- BundleComputePriceAmount.flags = {};
19
- BundleComputePriceAmount.args = Object.assign({}, base_1.default.args);
20
22
  exports.default = BundleComputePriceAmount;
@@ -3,7 +3,7 @@ export default class BundleIndex 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 BundleIndex extends base_1.default {
23
+ static description = 'execute an action on a resource of type bundles';
24
+ static flags = {};
25
+ static args = {
26
+ ...base_1.default.args,
27
+ };
23
28
  async run() {
24
29
  const { args, flags } = await this.parse(BundleIndex);
25
30
  const id = args.id;
@@ -32,7 +37,4 @@ class BundleIndex extends base_1.default {
32
37
  return res;
33
38
  }
34
39
  }
35
- BundleIndex.description = 'execute an action on a resource of type bundles';
36
- BundleIndex.flags = {};
37
- BundleIndex.args = Object.assign({}, base_1.default.args);
38
40
  exports.default = BundleIndex;
@@ -3,7 +3,7 @@ export default class BuyXPayYPromotionDisable 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
  }