@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.
- package/README.md +141 -0
- package/bin/dev +0 -0
- package/bin/run +0 -0
- package/lib/base.d.ts +4 -4
- package/lib/base.js +41 -41
- package/lib/commands/adyen_payment/details.d.ts +1 -1
- package/lib/commands/adyen_payment/details.js +5 -3
- package/lib/commands/adyen_payment/index.d.ts +1 -1
- package/lib/commands/adyen_payment/index.js +5 -3
- package/lib/commands/authorization/capture.d.ts +1 -1
- package/lib/commands/authorization/capture.js +5 -3
- package/lib/commands/authorization/capture_amount_cents.d.ts +1 -1
- package/lib/commands/authorization/capture_amount_cents.js +5 -3
- package/lib/commands/authorization/index.d.ts +1 -1
- package/lib/commands/authorization/index.js +5 -3
- package/lib/commands/authorization/void.d.ts +1 -1
- package/lib/commands/authorization/void.js +5 -3
- package/lib/commands/axerve_payment/index.d.ts +1 -1
- package/lib/commands/axerve_payment/index.js +5 -3
- package/lib/commands/axerve_payment/update.d.ts +1 -1
- package/lib/commands/axerve_payment/update.js +5 -3
- package/lib/commands/bundle/compute_compare_at_amount.d.ts +1 -1
- package/lib/commands/bundle/compute_compare_at_amount.js +5 -3
- package/lib/commands/bundle/compute_price_amount.d.ts +1 -1
- package/lib/commands/bundle/compute_price_amount.js +5 -3
- package/lib/commands/bundle/index.d.ts +1 -1
- package/lib/commands/bundle/index.js +5 -3
- package/lib/commands/buy_x_pay_y_promotion/disable.d.ts +1 -1
- package/lib/commands/buy_x_pay_y_promotion/disable.js +5 -3
- package/lib/commands/buy_x_pay_y_promotion/enable.d.ts +1 -1
- package/lib/commands/buy_x_pay_y_promotion/enable.js +5 -3
- package/lib/commands/buy_x_pay_y_promotion/index.d.ts +1 -1
- package/lib/commands/buy_x_pay_y_promotion/index.js +5 -3
- package/lib/commands/capture/index.d.ts +1 -1
- package/lib/commands/capture/index.js +5 -3
- package/lib/commands/capture/refund.d.ts +1 -1
- package/lib/commands/capture/refund.js +5 -3
- package/lib/commands/capture/refund_amount_cents.d.ts +1 -1
- package/lib/commands/capture/refund_amount_cents.js +5 -3
- package/lib/commands/checkout_com_payment/details.d.ts +1 -1
- package/lib/commands/checkout_com_payment/details.js +5 -3
- package/lib/commands/checkout_com_payment/index.d.ts +1 -1
- package/lib/commands/checkout_com_payment/index.js +5 -3
- package/lib/commands/checkout_com_payment/refresh.d.ts +1 -1
- package/lib/commands/checkout_com_payment/refresh.js +5 -3
- package/lib/commands/customer_password_reset/index.d.ts +1 -1
- package/lib/commands/customer_password_reset/index.js +5 -3
- package/lib/commands/customer_password_reset/reset_password_token.d.ts +1 -1
- package/lib/commands/customer_password_reset/reset_password_token.js +5 -3
- package/lib/commands/external_promotion/disable.d.ts +1 -1
- package/lib/commands/external_promotion/disable.js +5 -3
- package/lib/commands/external_promotion/enable.d.ts +1 -1
- package/lib/commands/external_promotion/enable.js +5 -3
- package/lib/commands/external_promotion/index.d.ts +1 -1
- package/lib/commands/external_promotion/index.js +5 -3
- package/lib/commands/fixed_amount_promotion/disable.d.ts +1 -1
- package/lib/commands/fixed_amount_promotion/disable.js +5 -3
- package/lib/commands/fixed_amount_promotion/enable.d.ts +1 -1
- package/lib/commands/fixed_amount_promotion/enable.js +5 -3
- package/lib/commands/fixed_amount_promotion/index.d.ts +1 -1
- package/lib/commands/fixed_amount_promotion/index.js +5 -3
- package/lib/commands/fixed_price_promotion/disable.d.ts +1 -1
- package/lib/commands/fixed_price_promotion/disable.js +5 -3
- package/lib/commands/fixed_price_promotion/enable.d.ts +1 -1
- package/lib/commands/fixed_price_promotion/enable.js +5 -3
- package/lib/commands/fixed_price_promotion/index.d.ts +1 -1
- package/lib/commands/fixed_price_promotion/index.js +5 -3
- package/lib/commands/free_gift_promotion/disable.d.ts +1 -1
- package/lib/commands/free_gift_promotion/disable.js +5 -3
- package/lib/commands/free_gift_promotion/enable.d.ts +1 -1
- package/lib/commands/free_gift_promotion/enable.js +5 -3
- package/lib/commands/free_gift_promotion/index.d.ts +1 -1
- package/lib/commands/free_gift_promotion/index.js +5 -3
- package/lib/commands/free_shipping_promotion/disable.d.ts +1 -1
- package/lib/commands/free_shipping_promotion/disable.js +5 -3
- package/lib/commands/free_shipping_promotion/enable.d.ts +1 -1
- package/lib/commands/free_shipping_promotion/enable.js +5 -3
- package/lib/commands/free_shipping_promotion/index.d.ts +1 -1
- package/lib/commands/free_shipping_promotion/index.js +5 -3
- package/lib/commands/gift_card/activate.d.ts +1 -1
- package/lib/commands/gift_card/activate.js +5 -3
- package/lib/commands/gift_card/balance_change_cents.d.ts +1 -1
- package/lib/commands/gift_card/balance_change_cents.js +5 -3
- package/lib/commands/gift_card/deactivate.d.ts +1 -1
- package/lib/commands/gift_card/deactivate.js +5 -3
- package/lib/commands/gift_card/index.d.ts +1 -1
- package/lib/commands/gift_card/index.js +5 -3
- package/lib/commands/gift_card/purchase.d.ts +1 -1
- package/lib/commands/gift_card/purchase.js +5 -3
- package/lib/commands/in_stock_subscription/activate.d.ts +1 -1
- package/lib/commands/in_stock_subscription/activate.js +5 -3
- package/lib/commands/in_stock_subscription/deactivate.d.ts +1 -1
- package/lib/commands/in_stock_subscription/deactivate.js +5 -3
- package/lib/commands/in_stock_subscription/index.d.ts +1 -1
- package/lib/commands/in_stock_subscription/index.js +5 -3
- package/lib/commands/klarna_payment/index.d.ts +1 -1
- package/lib/commands/klarna_payment/index.js +5 -3
- package/lib/commands/klarna_payment/update.d.ts +1 -1
- package/lib/commands/klarna_payment/update.js +5 -3
- package/lib/commands/line_item/external_price.d.ts +1 -1
- package/lib/commands/line_item/external_price.js +5 -3
- package/lib/commands/line_item/index.d.ts +1 -1
- package/lib/commands/line_item/index.js +5 -3
- package/lib/commands/line_item/reserve_stock.d.ts +1 -1
- package/lib/commands/line_item/reserve_stock.js +5 -3
- package/lib/commands/market/disable.d.ts +1 -1
- package/lib/commands/market/disable.js +5 -3
- package/lib/commands/market/enable.d.ts +1 -1
- package/lib/commands/market/enable.js +5 -3
- package/lib/commands/market/index.d.ts +1 -1
- package/lib/commands/market/index.js +5 -3
- package/lib/commands/noc.js +2 -2
- package/lib/commands/order/approve.d.ts +1 -1
- package/lib/commands/order/approve.js +5 -3
- package/lib/commands/order/approve_and_capture.d.ts +1 -1
- package/lib/commands/order/approve_and_capture.js +5 -3
- package/lib/commands/order/archive.d.ts +1 -1
- package/lib/commands/order/archive.js +5 -3
- package/lib/commands/order/authorization_amount_cents.d.ts +1 -1
- package/lib/commands/order/authorization_amount_cents.js +5 -3
- package/lib/commands/order/authorize.d.ts +1 -1
- package/lib/commands/order/authorize.js +5 -3
- package/lib/commands/order/billing_address_clone_id.d.ts +2 -2
- package/lib/commands/order/billing_address_clone_id.js +12 -10
- package/lib/commands/order/billing_address_same_as_shipping.d.ts +1 -1
- package/lib/commands/order/billing_address_same_as_shipping.js +5 -3
- package/lib/commands/order/cancel.d.ts +1 -1
- package/lib/commands/order/cancel.js +5 -3
- package/lib/commands/order/capture.d.ts +1 -1
- package/lib/commands/order/capture.js +5 -3
- package/lib/commands/order/commit_invoice.d.ts +1 -1
- package/lib/commands/order/commit_invoice.js +5 -3
- package/lib/commands/order/create_subscriptions.d.ts +1 -1
- package/lib/commands/order/create_subscriptions.js +5 -3
- package/lib/commands/order/customer_payment_source_id.d.ts +2 -2
- package/lib/commands/order/customer_payment_source_id.js +12 -10
- package/lib/commands/order/index.d.ts +1 -1
- package/lib/commands/order/index.js +5 -3
- package/lib/commands/order/nullify_payment_source.d.ts +1 -1
- package/lib/commands/order/nullify_payment_source.js +5 -3
- package/lib/commands/order/place.d.ts +1 -1
- package/lib/commands/order/place.js +5 -3
- package/lib/commands/order/refresh.d.ts +1 -1
- package/lib/commands/order/refresh.js +5 -3
- package/lib/commands/order/refund.d.ts +1 -1
- package/lib/commands/order/refund.js +5 -3
- package/lib/commands/order/refund_invoice.d.ts +1 -1
- package/lib/commands/order/refund_invoice.js +5 -3
- package/lib/commands/order/save_billing_address_to_customer_address_book.d.ts +1 -1
- package/lib/commands/order/save_billing_address_to_customer_address_book.js +5 -3
- package/lib/commands/order/save_payment_source_to_customer_wallet.d.ts +1 -1
- package/lib/commands/order/save_payment_source_to_customer_wallet.js +5 -3
- package/lib/commands/order/save_shipping_address_to_customer_address_book.d.ts +1 -1
- package/lib/commands/order/save_shipping_address_to_customer_address_book.js +5 -3
- package/lib/commands/order/shipping_address_clone_id.d.ts +2 -2
- package/lib/commands/order/shipping_address_clone_id.js +12 -10
- package/lib/commands/order/shipping_address_same_as_billing.d.ts +1 -1
- package/lib/commands/order/shipping_address_same_as_billing.js +5 -3
- package/lib/commands/order/start_editing.d.ts +1 -1
- package/lib/commands/order/start_editing.js +5 -3
- package/lib/commands/order/stop_editing.d.ts +1 -1
- package/lib/commands/order/stop_editing.js +5 -3
- package/lib/commands/order/unarchive.d.ts +1 -1
- package/lib/commands/order/unarchive.js +5 -3
- package/lib/commands/order/update_taxes.d.ts +1 -1
- package/lib/commands/order/update_taxes.js +5 -3
- package/lib/commands/order/validate.d.ts +1 -1
- package/lib/commands/order/validate.js +5 -3
- package/lib/commands/order_subscription/activate.d.ts +1 -1
- package/lib/commands/order_subscription/activate.js +5 -3
- package/lib/commands/order_subscription/cancel.d.ts +1 -1
- package/lib/commands/order_subscription/cancel.js +5 -3
- package/lib/commands/order_subscription/deactivate.d.ts +1 -1
- package/lib/commands/order_subscription/deactivate.js +5 -3
- package/lib/commands/order_subscription/index.d.ts +1 -1
- package/lib/commands/order_subscription/index.js +5 -3
- package/lib/commands/payment_method/disable.d.ts +1 -1
- package/lib/commands/payment_method/disable.js +5 -3
- package/lib/commands/payment_method/enable.d.ts +1 -1
- package/lib/commands/payment_method/enable.js +5 -3
- package/lib/commands/payment_method/index.d.ts +1 -1
- package/lib/commands/payment_method/index.js +5 -3
- package/lib/commands/percentage_discount_promotion/disable.d.ts +1 -1
- package/lib/commands/percentage_discount_promotion/disable.js +5 -3
- package/lib/commands/percentage_discount_promotion/enable.d.ts +1 -1
- package/lib/commands/percentage_discount_promotion/enable.js +5 -3
- package/lib/commands/percentage_discount_promotion/index.d.ts +1 -1
- package/lib/commands/percentage_discount_promotion/index.js +5 -3
- package/lib/commands/return/approve.d.ts +1 -1
- package/lib/commands/return/approve.js +5 -3
- package/lib/commands/return/archive.d.ts +1 -1
- package/lib/commands/return/archive.js +5 -3
- package/lib/commands/return/cancel.d.ts +1 -1
- package/lib/commands/return/cancel.js +5 -3
- package/lib/commands/return/index.d.ts +1 -1
- package/lib/commands/return/index.js +5 -3
- package/lib/commands/return/receive.d.ts +1 -1
- package/lib/commands/return/receive.js +5 -3
- package/lib/commands/return/reject.d.ts +1 -1
- package/lib/commands/return/reject.js +5 -3
- package/lib/commands/return/request.d.ts +1 -1
- package/lib/commands/return/request.js +5 -3
- package/lib/commands/return/restock.d.ts +1 -1
- package/lib/commands/return/restock.js +5 -3
- package/lib/commands/return/ship.d.ts +1 -1
- package/lib/commands/return/ship.js +5 -3
- package/lib/commands/return/unarchive.d.ts +1 -1
- package/lib/commands/return/unarchive.js +5 -3
- package/lib/commands/return_line_item/index.d.ts +1 -1
- package/lib/commands/return_line_item/index.js +5 -3
- package/lib/commands/return_line_item/restock.d.ts +1 -1
- package/lib/commands/return_line_item/restock.js +5 -3
- package/lib/commands/satispay_payment/index.d.ts +1 -1
- package/lib/commands/satispay_payment/index.js +5 -3
- package/lib/commands/satispay_payment/refresh.d.ts +1 -1
- package/lib/commands/satispay_payment/refresh.js +5 -3
- package/lib/commands/shipment/decrement_stock.d.ts +1 -1
- package/lib/commands/shipment/decrement_stock.js +5 -3
- package/lib/commands/shipment/get_rates.d.ts +1 -1
- package/lib/commands/shipment/get_rates.js +5 -3
- package/lib/commands/shipment/index.d.ts +1 -1
- package/lib/commands/shipment/index.js +5 -3
- package/lib/commands/shipment/on_hold.d.ts +1 -1
- package/lib/commands/shipment/on_hold.js +5 -3
- package/lib/commands/shipment/packing.d.ts +1 -1
- package/lib/commands/shipment/packing.js +5 -3
- package/lib/commands/shipment/picking.d.ts +1 -1
- package/lib/commands/shipment/picking.js +5 -3
- package/lib/commands/shipment/purchase.d.ts +1 -1
- package/lib/commands/shipment/purchase.js +5 -3
- package/lib/commands/shipment/ready_to_ship.d.ts +1 -1
- package/lib/commands/shipment/ready_to_ship.js +5 -3
- package/lib/commands/shipment/release_stock.d.ts +1 -1
- package/lib/commands/shipment/release_stock.js +5 -3
- package/lib/commands/shipment/reserve_stock.d.ts +1 -1
- package/lib/commands/shipment/reserve_stock.js +5 -3
- package/lib/commands/shipment/ship.d.ts +1 -1
- package/lib/commands/shipment/ship.js +5 -3
- package/lib/commands/shipment/upcoming.d.ts +1 -1
- package/lib/commands/shipment/upcoming.js +5 -3
- package/lib/commands/shipping_method/disable.d.ts +1 -1
- package/lib/commands/shipping_method/disable.js +5 -3
- package/lib/commands/shipping_method/enable.d.ts +1 -1
- package/lib/commands/shipping_method/enable.js +5 -3
- package/lib/commands/shipping_method/index.d.ts +1 -1
- package/lib/commands/shipping_method/index.js +5 -3
- package/lib/commands/stock_line_item/decrement_stock.d.ts +9 -0
- package/lib/commands/stock_line_item/decrement_stock.js +22 -0
- package/lib/commands/stock_line_item/index.d.ts +9 -0
- package/lib/commands/stock_line_item/index.js +40 -0
- package/lib/commands/stock_line_item/release_stock.d.ts +9 -0
- package/lib/commands/stock_line_item/release_stock.js +22 -0
- package/lib/commands/stock_line_item/reserve_stock.d.ts +9 -0
- package/lib/commands/stock_line_item/reserve_stock.js +22 -0
- package/lib/commands/stock_reservation/index.d.ts +1 -1
- package/lib/commands/stock_reservation/index.js +5 -3
- package/lib/commands/stock_reservation/pending.d.ts +1 -1
- package/lib/commands/stock_reservation/pending.js +5 -3
- package/lib/commands/stock_transfer/cancel.d.ts +1 -1
- package/lib/commands/stock_transfer/cancel.js +5 -3
- package/lib/commands/stock_transfer/complete.d.ts +1 -1
- package/lib/commands/stock_transfer/complete.js +5 -3
- package/lib/commands/stock_transfer/in_transit.d.ts +1 -1
- package/lib/commands/stock_transfer/in_transit.js +5 -3
- package/lib/commands/stock_transfer/index.d.ts +1 -1
- package/lib/commands/stock_transfer/index.js +5 -3
- package/lib/commands/stock_transfer/on_hold.d.ts +1 -1
- package/lib/commands/stock_transfer/on_hold.js +5 -3
- package/lib/commands/stock_transfer/picking.d.ts +1 -1
- package/lib/commands/stock_transfer/picking.js +5 -3
- package/lib/commands/stock_transfer/upcoming.d.ts +1 -1
- package/lib/commands/stock_transfer/upcoming.js +5 -3
- package/lib/commands/stripe_payment/index.d.ts +1 -1
- package/lib/commands/stripe_payment/index.js +5 -3
- package/lib/commands/stripe_payment/refresh.d.ts +1 -1
- package/lib/commands/stripe_payment/refresh.js +5 -3
- package/lib/commands/stripe_payment/update.d.ts +1 -1
- package/lib/commands/stripe_payment/update.js +5 -3
- package/lib/commands/webhook/disable.d.ts +9 -0
- package/lib/commands/webhook/disable.js +22 -0
- package/lib/commands/webhook/enable.d.ts +9 -0
- package/lib/commands/webhook/enable.js +22 -0
- package/lib/commands/webhook/index.d.ts +1 -1
- package/lib/commands/webhook/index.js +5 -3
- package/lib/commands/webhook/reset_circuit.d.ts +1 -1
- package/lib/commands/webhook/reset_circuit.js +5 -3
- package/lib/exec.d.ts +2 -1
- package/lib/triggers/stock_line_items.d.ts +3 -0
- package/lib/triggers/stock_line_items.js +20 -0
- package/lib/triggers/webhooks.d.ts +1 -1
- package/lib/triggers/webhooks.js +10 -0
- package/oclif.manifest.json +664 -1
- 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
|
|
8
|
-
domain: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces
|
|
9
|
-
accessToken: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces
|
|
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
|
|
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
|
-
|
|
22
|
-
|
|
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 (
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
6
|
+
id: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
|
|
7
7
|
};
|
|
8
8
|
run(): Promise<any>;
|
|
9
9
|
}
|