@commercelayer/cli-plugin-triggers 3.14.0 → 4.0.0-oclif3.1
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 +308 -2
- package/bin/dev +0 -0
- package/bin/run +0 -0
- package/lib/base.d.ts +5 -4
- package/lib/base.js +46 -41
- package/lib/commands/adyen_payment/details.d.ts +1 -1
- package/lib/commands/adyen_payment/details.js +6 -5
- 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 +6 -5
- package/lib/commands/authorization/capture_amount_cents.d.ts +1 -1
- package/lib/commands/authorization/capture_amount_cents.js +6 -5
- 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 +6 -5
- 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 +6 -5
- package/lib/commands/bundle/compute_compare_at_amount.d.ts +1 -1
- package/lib/commands/bundle/compute_compare_at_amount.js +6 -5
- package/lib/commands/bundle/compute_price_amount.d.ts +1 -1
- package/lib/commands/bundle/compute_price_amount.js +6 -5
- 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 +6 -5
- package/lib/commands/buy_x_pay_y_promotion/enable.d.ts +1 -1
- package/lib/commands/buy_x_pay_y_promotion/enable.js +6 -5
- 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 +6 -5
- package/lib/commands/capture/refund_amount_cents.d.ts +1 -1
- package/lib/commands/capture/refund_amount_cents.js +6 -5
- package/lib/commands/checkout_com_payment/details.d.ts +1 -1
- package/lib/commands/checkout_com_payment/details.js +6 -5
- 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 +6 -5
- 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 +6 -5
- package/lib/commands/external_promotion/disable.d.ts +1 -1
- package/lib/commands/external_promotion/disable.js +6 -5
- package/lib/commands/external_promotion/enable.d.ts +1 -1
- package/lib/commands/external_promotion/enable.js +6 -5
- 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 +6 -5
- package/lib/commands/fixed_amount_promotion/enable.d.ts +1 -1
- package/lib/commands/fixed_amount_promotion/enable.js +6 -5
- 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 +6 -5
- package/lib/commands/fixed_price_promotion/enable.d.ts +1 -1
- package/lib/commands/fixed_price_promotion/enable.js +6 -5
- 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 +6 -5
- package/lib/commands/free_gift_promotion/enable.d.ts +1 -1
- package/lib/commands/free_gift_promotion/enable.js +6 -5
- 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 +6 -5
- package/lib/commands/free_shipping_promotion/enable.d.ts +1 -1
- package/lib/commands/free_shipping_promotion/enable.js +6 -5
- 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 +6 -5
- package/lib/commands/gift_card/balance_change_cents.d.ts +1 -1
- package/lib/commands/gift_card/balance_change_cents.js +6 -5
- package/lib/commands/gift_card/deactivate.d.ts +1 -1
- package/lib/commands/gift_card/deactivate.js +6 -5
- 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 +6 -5
- package/lib/commands/in_stock_subscription/activate.d.ts +1 -1
- package/lib/commands/in_stock_subscription/activate.js +6 -5
- package/lib/commands/in_stock_subscription/deactivate.d.ts +1 -1
- package/lib/commands/in_stock_subscription/deactivate.js +6 -5
- 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 +6 -5
- package/lib/commands/line_item/external_price.d.ts +1 -1
- package/lib/commands/line_item/external_price.js +6 -5
- 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 +6 -5
- package/lib/commands/market/disable.d.ts +1 -1
- package/lib/commands/market/disable.js +6 -5
- package/lib/commands/market/enable.d.ts +1 -1
- package/lib/commands/market/enable.js +6 -5
- 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 +6 -5
- package/lib/commands/order/approve_and_capture.d.ts +1 -1
- package/lib/commands/order/approve_and_capture.js +6 -5
- package/lib/commands/order/archive.d.ts +1 -1
- package/lib/commands/order/archive.js +6 -5
- package/lib/commands/order/authorization_amount_cents.d.ts +1 -1
- package/lib/commands/order/authorization_amount_cents.js +6 -5
- package/lib/commands/order/authorize.d.ts +1 -1
- package/lib/commands/order/authorize.js +6 -5
- package/lib/commands/order/billing_address_clone_id.d.ts +2 -2
- package/lib/commands/order/billing_address_clone_id.js +13 -12
- package/lib/commands/order/billing_address_same_as_shipping.d.ts +1 -1
- package/lib/commands/order/billing_address_same_as_shipping.js +6 -5
- package/lib/commands/order/cancel.d.ts +1 -1
- package/lib/commands/order/cancel.js +6 -5
- package/lib/commands/order/capture.d.ts +1 -1
- package/lib/commands/order/capture.js +6 -5
- package/lib/commands/order/commit_invoice.d.ts +1 -1
- package/lib/commands/order/commit_invoice.js +6 -5
- package/lib/commands/order/create_subscriptions.d.ts +1 -1
- package/lib/commands/order/create_subscriptions.js +6 -5
- package/lib/commands/order/customer_payment_source_id.d.ts +2 -2
- package/lib/commands/order/customer_payment_source_id.js +13 -12
- 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 +6 -5
- package/lib/commands/order/place.d.ts +1 -1
- package/lib/commands/order/place.js +6 -5
- package/lib/commands/order/refresh.d.ts +1 -1
- package/lib/commands/order/refresh.js +6 -5
- package/lib/commands/order/refund.d.ts +1 -1
- package/lib/commands/order/refund.js +6 -5
- package/lib/commands/order/refund_invoice.d.ts +1 -1
- package/lib/commands/order/refund_invoice.js +6 -5
- 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 +6 -5
- 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 +6 -5
- 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 +6 -5
- package/lib/commands/order/shipping_address_clone_id.d.ts +2 -2
- package/lib/commands/order/shipping_address_clone_id.js +13 -12
- package/lib/commands/order/shipping_address_same_as_billing.d.ts +1 -1
- package/lib/commands/order/shipping_address_same_as_billing.js +6 -5
- package/lib/commands/order/start_editing.d.ts +1 -1
- package/lib/commands/order/start_editing.js +6 -5
- package/lib/commands/order/stop_editing.d.ts +1 -1
- package/lib/commands/order/stop_editing.js +6 -5
- package/lib/commands/order/unarchive.d.ts +1 -1
- package/lib/commands/order/unarchive.js +6 -5
- package/lib/commands/order/update_taxes.d.ts +1 -1
- package/lib/commands/order/update_taxes.js +6 -5
- package/lib/commands/order/validate.d.ts +1 -1
- package/lib/commands/order/validate.js +6 -5
- package/lib/commands/order_subscription/activate.d.ts +1 -1
- package/lib/commands/order_subscription/activate.js +6 -5
- package/lib/commands/order_subscription/cancel.d.ts +1 -1
- package/lib/commands/order_subscription/cancel.js +6 -5
- package/lib/commands/order_subscription/deactivate.d.ts +1 -1
- package/lib/commands/order_subscription/deactivate.js +6 -5
- 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 +6 -5
- package/lib/commands/payment_method/enable.d.ts +1 -1
- package/lib/commands/payment_method/enable.js +6 -5
- 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 +6 -5
- package/lib/commands/percentage_discount_promotion/enable.d.ts +1 -1
- package/lib/commands/percentage_discount_promotion/enable.js +6 -5
- 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 +6 -5
- package/lib/commands/return/archive.d.ts +1 -1
- package/lib/commands/return/archive.js +6 -5
- package/lib/commands/return/cancel.d.ts +1 -1
- package/lib/commands/return/cancel.js +6 -5
- 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 +6 -5
- package/lib/commands/return/reject.d.ts +1 -1
- package/lib/commands/return/reject.js +6 -5
- package/lib/commands/return/request.d.ts +1 -1
- package/lib/commands/return/request.js +6 -5
- package/lib/commands/return/restock.d.ts +1 -1
- package/lib/commands/return/restock.js +6 -5
- package/lib/commands/return/ship.d.ts +1 -1
- package/lib/commands/return/ship.js +6 -5
- package/lib/commands/return/unarchive.d.ts +1 -1
- package/lib/commands/return/unarchive.js +6 -5
- 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 +6 -5
- 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 +6 -5
- package/lib/commands/shipment/decrement_stock.d.ts +9 -0
- package/lib/commands/shipment/decrement_stock.js +22 -0
- package/lib/commands/shipment/get_rates.d.ts +1 -1
- package/lib/commands/shipment/get_rates.js +6 -5
- 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 +6 -5
- package/lib/commands/shipment/packing.d.ts +1 -1
- package/lib/commands/shipment/packing.js +6 -5
- package/lib/commands/shipment/picking.d.ts +1 -1
- package/lib/commands/shipment/picking.js +6 -5
- package/lib/commands/shipment/purchase.d.ts +1 -1
- package/lib/commands/shipment/purchase.js +6 -5
- package/lib/commands/shipment/ready_to_ship.d.ts +1 -1
- package/lib/commands/shipment/ready_to_ship.js +6 -5
- package/lib/commands/shipment/release_stock.d.ts +9 -0
- package/lib/commands/shipment/release_stock.js +22 -0
- package/lib/commands/shipment/reserve_stock.d.ts +9 -0
- package/lib/commands/shipment/reserve_stock.js +22 -0
- package/lib/commands/shipment/ship.d.ts +1 -1
- package/lib/commands/shipment/ship.js +6 -5
- package/lib/commands/shipment/upcoming.d.ts +9 -0
- package/lib/commands/shipment/upcoming.js +22 -0
- package/lib/commands/shipping_method/disable.d.ts +1 -1
- package/lib/commands/shipping_method/disable.js +6 -5
- package/lib/commands/shipping_method/enable.d.ts +1 -1
- package/lib/commands/shipping_method/enable.js +6 -5
- 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 +9 -0
- package/lib/commands/stock_reservation/index.js +40 -0
- package/lib/commands/stock_reservation/pending.d.ts +9 -0
- package/lib/commands/stock_reservation/pending.js +22 -0
- package/lib/commands/stock_transfer/cancel.d.ts +1 -1
- package/lib/commands/stock_transfer/cancel.js +6 -5
- package/lib/commands/stock_transfer/complete.d.ts +1 -1
- package/lib/commands/stock_transfer/complete.js +6 -5
- package/lib/commands/stock_transfer/in_transit.d.ts +1 -1
- package/lib/commands/stock_transfer/in_transit.js +6 -5
- 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 +9 -0
- package/lib/commands/stock_transfer/on_hold.js +22 -0
- package/lib/commands/stock_transfer/picking.d.ts +1 -1
- package/lib/commands/stock_transfer/picking.js +6 -5
- package/lib/commands/stock_transfer/upcoming.d.ts +1 -1
- package/lib/commands/stock_transfer/upcoming.js +6 -5
- 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 +6 -5
- package/lib/commands/stripe_payment/update.d.ts +1 -1
- package/lib/commands/stripe_payment/update.js +6 -5
- 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 +6 -5
- package/lib/exec.d.ts +4 -2
- package/lib/exec.js +7 -4
- package/lib/triggers/line_items.js +1 -1
- package/lib/triggers/shipments.d.ts +1 -1
- package/lib/triggers/shipments.js +20 -0
- package/lib/triggers/stock_line_items.d.ts +3 -0
- package/lib/triggers/stock_line_items.js +20 -0
- package/lib/triggers/stock_reservations.d.ts +3 -0
- package/lib/triggers/stock_reservations.js +10 -0
- package/lib/triggers/stock_transfers.d.ts +1 -1
- package/lib/triggers/stock_transfers.js +5 -0
- package/lib/triggers/webhooks.d.ts +1 -1
- package/lib/triggers/webhooks.js +10 -0
- package/oclif.manifest.json +7560 -4372
- package/package.json +37 -31
|
@@ -3,7 +3,7 @@ export default class PercentageDiscountPromotionEnable 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
|
}
|
|
@@ -2,20 +2,21 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const base_1 = tslib_1.__importDefault(require("../../base"));
|
|
5
|
-
const exec_1 = tslib_1.__importDefault(require("../../exec"));
|
|
6
5
|
const percentage_discount_promotions_1 = require("../../triggers/percentage_discount_promotions");
|
|
7
6
|
const TRIGGER = 'enable';
|
|
8
7
|
class PercentageDiscountPromotionEnable extends base_1.default {
|
|
8
|
+
static description = percentage_discount_promotions_1.triggers[TRIGGER].description;
|
|
9
|
+
static flags = {};
|
|
10
|
+
static args = {
|
|
11
|
+
...base_1.default.args,
|
|
12
|
+
};
|
|
9
13
|
async run() {
|
|
10
14
|
const { args, flags } = await this.parse(PercentageDiscountPromotionEnable);
|
|
11
|
-
const res = await
|
|
15
|
+
const res = await this.executeAction('percentage_discount_promotions', args.id, TRIGGER, flags);
|
|
12
16
|
if (flags.print)
|
|
13
17
|
this.printOutput(res, flags);
|
|
14
18
|
this.successMessage('percentage_discount_promotion', TRIGGER, res.id);
|
|
15
19
|
return res;
|
|
16
20
|
}
|
|
17
21
|
}
|
|
18
|
-
PercentageDiscountPromotionEnable.description = percentage_discount_promotions_1.triggers[TRIGGER].description;
|
|
19
|
-
PercentageDiscountPromotionEnable.flags = {};
|
|
20
|
-
PercentageDiscountPromotionEnable.args = Object.assign({}, base_1.default.args);
|
|
21
22
|
exports.default = PercentageDiscountPromotionEnable;
|
|
@@ -3,7 +3,7 @@ export default class PercentageDiscountPromotionIndex 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 PercentageDiscountPromotionIndex extends base_1.default {
|
|
23
|
+
static description = 'execute an action on a resource of type percentage_discount_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(PercentageDiscountPromotionIndex);
|
|
25
30
|
const id = args.id;
|
|
@@ -32,7 +37,4 @@ class PercentageDiscountPromotionIndex extends base_1.default {
|
|
|
32
37
|
return res;
|
|
33
38
|
}
|
|
34
39
|
}
|
|
35
|
-
PercentageDiscountPromotionIndex.description = 'execute an action on a resource of type percentage_discount_promotions';
|
|
36
|
-
PercentageDiscountPromotionIndex.flags = {};
|
|
37
|
-
PercentageDiscountPromotionIndex.args = Object.assign({}, base_1.default.args);
|
|
38
40
|
exports.default = PercentageDiscountPromotionIndex;
|
|
@@ -3,7 +3,7 @@ export default class ReturnApprove 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
|
}
|
|
@@ -2,20 +2,21 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const base_1 = tslib_1.__importDefault(require("../../base"));
|
|
5
|
-
const exec_1 = tslib_1.__importDefault(require("../../exec"));
|
|
6
5
|
const returns_1 = require("../../triggers/returns");
|
|
7
6
|
const TRIGGER = 'approve';
|
|
8
7
|
class ReturnApprove extends base_1.default {
|
|
8
|
+
static description = returns_1.triggers[TRIGGER].description;
|
|
9
|
+
static flags = {};
|
|
10
|
+
static args = {
|
|
11
|
+
...base_1.default.args,
|
|
12
|
+
};
|
|
9
13
|
async run() {
|
|
10
14
|
const { args, flags } = await this.parse(ReturnApprove);
|
|
11
|
-
const res = await
|
|
15
|
+
const res = await this.executeAction('returns', args.id, TRIGGER, flags);
|
|
12
16
|
if (flags.print)
|
|
13
17
|
this.printOutput(res, flags);
|
|
14
18
|
this.successMessage('return', TRIGGER, res.id);
|
|
15
19
|
return res;
|
|
16
20
|
}
|
|
17
21
|
}
|
|
18
|
-
ReturnApprove.description = returns_1.triggers[TRIGGER].description;
|
|
19
|
-
ReturnApprove.flags = {};
|
|
20
|
-
ReturnApprove.args = Object.assign({}, base_1.default.args);
|
|
21
22
|
exports.default = ReturnApprove;
|
|
@@ -3,7 +3,7 @@ export default class ReturnArchive 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
|
}
|
|
@@ -2,20 +2,21 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const base_1 = tslib_1.__importDefault(require("../../base"));
|
|
5
|
-
const exec_1 = tslib_1.__importDefault(require("../../exec"));
|
|
6
5
|
const returns_1 = require("../../triggers/returns");
|
|
7
6
|
const TRIGGER = 'archive';
|
|
8
7
|
class ReturnArchive extends base_1.default {
|
|
8
|
+
static description = returns_1.triggers[TRIGGER].description;
|
|
9
|
+
static flags = {};
|
|
10
|
+
static args = {
|
|
11
|
+
...base_1.default.args,
|
|
12
|
+
};
|
|
9
13
|
async run() {
|
|
10
14
|
const { args, flags } = await this.parse(ReturnArchive);
|
|
11
|
-
const res = await
|
|
15
|
+
const res = await this.executeAction('returns', args.id, TRIGGER, flags);
|
|
12
16
|
if (flags.print)
|
|
13
17
|
this.printOutput(res, flags);
|
|
14
18
|
this.successMessage('return', TRIGGER, res.id);
|
|
15
19
|
return res;
|
|
16
20
|
}
|
|
17
21
|
}
|
|
18
|
-
ReturnArchive.description = returns_1.triggers[TRIGGER].description;
|
|
19
|
-
ReturnArchive.flags = {};
|
|
20
|
-
ReturnArchive.args = Object.assign({}, base_1.default.args);
|
|
21
22
|
exports.default = ReturnArchive;
|
|
@@ -3,7 +3,7 @@ export default class ReturnCancel 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
|
}
|
|
@@ -2,20 +2,21 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const base_1 = tslib_1.__importDefault(require("../../base"));
|
|
5
|
-
const exec_1 = tslib_1.__importDefault(require("../../exec"));
|
|
6
5
|
const returns_1 = require("../../triggers/returns");
|
|
7
6
|
const TRIGGER = 'cancel';
|
|
8
7
|
class ReturnCancel extends base_1.default {
|
|
8
|
+
static description = returns_1.triggers[TRIGGER].description;
|
|
9
|
+
static flags = {};
|
|
10
|
+
static args = {
|
|
11
|
+
...base_1.default.args,
|
|
12
|
+
};
|
|
9
13
|
async run() {
|
|
10
14
|
const { args, flags } = await this.parse(ReturnCancel);
|
|
11
|
-
const res = await
|
|
15
|
+
const res = await this.executeAction('returns', args.id, TRIGGER, flags);
|
|
12
16
|
if (flags.print)
|
|
13
17
|
this.printOutput(res, flags);
|
|
14
18
|
this.successMessage('return', TRIGGER, res.id);
|
|
15
19
|
return res;
|
|
16
20
|
}
|
|
17
21
|
}
|
|
18
|
-
ReturnCancel.description = returns_1.triggers[TRIGGER].description;
|
|
19
|
-
ReturnCancel.flags = {};
|
|
20
|
-
ReturnCancel.args = Object.assign({}, base_1.default.args);
|
|
21
22
|
exports.default = ReturnCancel;
|
|
@@ -3,7 +3,7 @@ export default class ReturnIndex 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 ReturnIndex extends base_1.default {
|
|
23
|
+
static description = 'execute an action on a resource of type returns';
|
|
24
|
+
static flags = {};
|
|
25
|
+
static args = {
|
|
26
|
+
...base_1.default.args,
|
|
27
|
+
};
|
|
23
28
|
async run() {
|
|
24
29
|
const { args, flags } = await this.parse(ReturnIndex);
|
|
25
30
|
const id = args.id;
|
|
@@ -32,7 +37,4 @@ class ReturnIndex extends base_1.default {
|
|
|
32
37
|
return res;
|
|
33
38
|
}
|
|
34
39
|
}
|
|
35
|
-
ReturnIndex.description = 'execute an action on a resource of type returns';
|
|
36
|
-
ReturnIndex.flags = {};
|
|
37
|
-
ReturnIndex.args = Object.assign({}, base_1.default.args);
|
|
38
40
|
exports.default = ReturnIndex;
|
|
@@ -3,7 +3,7 @@ export default class ReturnReceive 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
|
}
|
|
@@ -2,20 +2,21 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const base_1 = tslib_1.__importDefault(require("../../base"));
|
|
5
|
-
const exec_1 = tslib_1.__importDefault(require("../../exec"));
|
|
6
5
|
const returns_1 = require("../../triggers/returns");
|
|
7
6
|
const TRIGGER = 'receive';
|
|
8
7
|
class ReturnReceive extends base_1.default {
|
|
8
|
+
static description = returns_1.triggers[TRIGGER].description;
|
|
9
|
+
static flags = {};
|
|
10
|
+
static args = {
|
|
11
|
+
...base_1.default.args,
|
|
12
|
+
};
|
|
9
13
|
async run() {
|
|
10
14
|
const { args, flags } = await this.parse(ReturnReceive);
|
|
11
|
-
const res = await
|
|
15
|
+
const res = await this.executeAction('returns', args.id, TRIGGER, flags);
|
|
12
16
|
if (flags.print)
|
|
13
17
|
this.printOutput(res, flags);
|
|
14
18
|
this.successMessage('return', TRIGGER, res.id);
|
|
15
19
|
return res;
|
|
16
20
|
}
|
|
17
21
|
}
|
|
18
|
-
ReturnReceive.description = returns_1.triggers[TRIGGER].description;
|
|
19
|
-
ReturnReceive.flags = {};
|
|
20
|
-
ReturnReceive.args = Object.assign({}, base_1.default.args);
|
|
21
22
|
exports.default = ReturnReceive;
|
|
@@ -3,7 +3,7 @@ export default class ReturnReject 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
|
}
|
|
@@ -2,20 +2,21 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const base_1 = tslib_1.__importDefault(require("../../base"));
|
|
5
|
-
const exec_1 = tslib_1.__importDefault(require("../../exec"));
|
|
6
5
|
const returns_1 = require("../../triggers/returns");
|
|
7
6
|
const TRIGGER = 'reject';
|
|
8
7
|
class ReturnReject extends base_1.default {
|
|
8
|
+
static description = returns_1.triggers[TRIGGER].description;
|
|
9
|
+
static flags = {};
|
|
10
|
+
static args = {
|
|
11
|
+
...base_1.default.args,
|
|
12
|
+
};
|
|
9
13
|
async run() {
|
|
10
14
|
const { args, flags } = await this.parse(ReturnReject);
|
|
11
|
-
const res = await
|
|
15
|
+
const res = await this.executeAction('returns', args.id, TRIGGER, flags);
|
|
12
16
|
if (flags.print)
|
|
13
17
|
this.printOutput(res, flags);
|
|
14
18
|
this.successMessage('return', TRIGGER, res.id);
|
|
15
19
|
return res;
|
|
16
20
|
}
|
|
17
21
|
}
|
|
18
|
-
ReturnReject.description = returns_1.triggers[TRIGGER].description;
|
|
19
|
-
ReturnReject.flags = {};
|
|
20
|
-
ReturnReject.args = Object.assign({}, base_1.default.args);
|
|
21
22
|
exports.default = ReturnReject;
|
|
@@ -3,7 +3,7 @@ export default class ReturnRequest 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
|
}
|
|
@@ -2,20 +2,21 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const base_1 = tslib_1.__importDefault(require("../../base"));
|
|
5
|
-
const exec_1 = tslib_1.__importDefault(require("../../exec"));
|
|
6
5
|
const returns_1 = require("../../triggers/returns");
|
|
7
6
|
const TRIGGER = 'request';
|
|
8
7
|
class ReturnRequest extends base_1.default {
|
|
8
|
+
static description = returns_1.triggers[TRIGGER].description;
|
|
9
|
+
static flags = {};
|
|
10
|
+
static args = {
|
|
11
|
+
...base_1.default.args,
|
|
12
|
+
};
|
|
9
13
|
async run() {
|
|
10
14
|
const { args, flags } = await this.parse(ReturnRequest);
|
|
11
|
-
const res = await
|
|
15
|
+
const res = await this.executeAction('returns', args.id, TRIGGER, flags);
|
|
12
16
|
if (flags.print)
|
|
13
17
|
this.printOutput(res, flags);
|
|
14
18
|
this.successMessage('return', TRIGGER, res.id);
|
|
15
19
|
return res;
|
|
16
20
|
}
|
|
17
21
|
}
|
|
18
|
-
ReturnRequest.description = returns_1.triggers[TRIGGER].description;
|
|
19
|
-
ReturnRequest.flags = {};
|
|
20
|
-
ReturnRequest.args = Object.assign({}, base_1.default.args);
|
|
21
22
|
exports.default = ReturnRequest;
|
|
@@ -3,7 +3,7 @@ export default class ReturnRestock 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
|
}
|
|
@@ -2,20 +2,21 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const base_1 = tslib_1.__importDefault(require("../../base"));
|
|
5
|
-
const exec_1 = tslib_1.__importDefault(require("../../exec"));
|
|
6
5
|
const returns_1 = require("../../triggers/returns");
|
|
7
6
|
const TRIGGER = 'restock';
|
|
8
7
|
class ReturnRestock extends base_1.default {
|
|
8
|
+
static description = returns_1.triggers[TRIGGER].description;
|
|
9
|
+
static flags = {};
|
|
10
|
+
static args = {
|
|
11
|
+
...base_1.default.args,
|
|
12
|
+
};
|
|
9
13
|
async run() {
|
|
10
14
|
const { args, flags } = await this.parse(ReturnRestock);
|
|
11
|
-
const res = await
|
|
15
|
+
const res = await this.executeAction('returns', args.id, TRIGGER, flags);
|
|
12
16
|
if (flags.print)
|
|
13
17
|
this.printOutput(res, flags);
|
|
14
18
|
this.successMessage('return', TRIGGER, res.id);
|
|
15
19
|
return res;
|
|
16
20
|
}
|
|
17
21
|
}
|
|
18
|
-
ReturnRestock.description = returns_1.triggers[TRIGGER].description;
|
|
19
|
-
ReturnRestock.flags = {};
|
|
20
|
-
ReturnRestock.args = Object.assign({}, base_1.default.args);
|
|
21
22
|
exports.default = ReturnRestock;
|
|
@@ -3,7 +3,7 @@ export default class ReturnShip 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
|
}
|
|
@@ -2,20 +2,21 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const base_1 = tslib_1.__importDefault(require("../../base"));
|
|
5
|
-
const exec_1 = tslib_1.__importDefault(require("../../exec"));
|
|
6
5
|
const returns_1 = require("../../triggers/returns");
|
|
7
6
|
const TRIGGER = 'ship';
|
|
8
7
|
class ReturnShip extends base_1.default {
|
|
8
|
+
static description = returns_1.triggers[TRIGGER].description;
|
|
9
|
+
static flags = {};
|
|
10
|
+
static args = {
|
|
11
|
+
...base_1.default.args,
|
|
12
|
+
};
|
|
9
13
|
async run() {
|
|
10
14
|
const { args, flags } = await this.parse(ReturnShip);
|
|
11
|
-
const res = await
|
|
15
|
+
const res = await this.executeAction('returns', args.id, TRIGGER, flags);
|
|
12
16
|
if (flags.print)
|
|
13
17
|
this.printOutput(res, flags);
|
|
14
18
|
this.successMessage('return', TRIGGER, res.id);
|
|
15
19
|
return res;
|
|
16
20
|
}
|
|
17
21
|
}
|
|
18
|
-
ReturnShip.description = returns_1.triggers[TRIGGER].description;
|
|
19
|
-
ReturnShip.flags = {};
|
|
20
|
-
ReturnShip.args = Object.assign({}, base_1.default.args);
|
|
21
22
|
exports.default = ReturnShip;
|
|
@@ -3,7 +3,7 @@ export default class ReturnUnarchive 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
|
}
|
|
@@ -2,20 +2,21 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const base_1 = tslib_1.__importDefault(require("../../base"));
|
|
5
|
-
const exec_1 = tslib_1.__importDefault(require("../../exec"));
|
|
6
5
|
const returns_1 = require("../../triggers/returns");
|
|
7
6
|
const TRIGGER = 'unarchive';
|
|
8
7
|
class ReturnUnarchive extends base_1.default {
|
|
8
|
+
static description = returns_1.triggers[TRIGGER].description;
|
|
9
|
+
static flags = {};
|
|
10
|
+
static args = {
|
|
11
|
+
...base_1.default.args,
|
|
12
|
+
};
|
|
9
13
|
async run() {
|
|
10
14
|
const { args, flags } = await this.parse(ReturnUnarchive);
|
|
11
|
-
const res = await
|
|
15
|
+
const res = await this.executeAction('returns', args.id, TRIGGER, flags);
|
|
12
16
|
if (flags.print)
|
|
13
17
|
this.printOutput(res, flags);
|
|
14
18
|
this.successMessage('return', TRIGGER, res.id);
|
|
15
19
|
return res;
|
|
16
20
|
}
|
|
17
21
|
}
|
|
18
|
-
ReturnUnarchive.description = returns_1.triggers[TRIGGER].description;
|
|
19
|
-
ReturnUnarchive.flags = {};
|
|
20
|
-
ReturnUnarchive.args = Object.assign({}, base_1.default.args);
|
|
21
22
|
exports.default = ReturnUnarchive;
|
|
@@ -3,7 +3,7 @@ export default class ReturnLineItemIndex 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 ReturnLineItemIndex extends base_1.default {
|
|
23
|
+
static description = 'execute an action on a resource of type return_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(ReturnLineItemIndex);
|
|
25
30
|
const id = args.id;
|
|
@@ -32,7 +37,4 @@ class ReturnLineItemIndex extends base_1.default {
|
|
|
32
37
|
return res;
|
|
33
38
|
}
|
|
34
39
|
}
|
|
35
|
-
ReturnLineItemIndex.description = 'execute an action on a resource of type return_line_items';
|
|
36
|
-
ReturnLineItemIndex.flags = {};
|
|
37
|
-
ReturnLineItemIndex.args = Object.assign({}, base_1.default.args);
|
|
38
40
|
exports.default = ReturnLineItemIndex;
|
|
@@ -3,7 +3,7 @@ export default class ReturnLineItemRestock 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
|
}
|
|
@@ -2,20 +2,21 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const base_1 = tslib_1.__importDefault(require("../../base"));
|
|
5
|
-
const exec_1 = tslib_1.__importDefault(require("../../exec"));
|
|
6
5
|
const return_line_items_1 = require("../../triggers/return_line_items");
|
|
7
6
|
const TRIGGER = 'restock';
|
|
8
7
|
class ReturnLineItemRestock extends base_1.default {
|
|
8
|
+
static description = return_line_items_1.triggers[TRIGGER].description;
|
|
9
|
+
static flags = {};
|
|
10
|
+
static args = {
|
|
11
|
+
...base_1.default.args,
|
|
12
|
+
};
|
|
9
13
|
async run() {
|
|
10
14
|
const { args, flags } = await this.parse(ReturnLineItemRestock);
|
|
11
|
-
const res = await
|
|
15
|
+
const res = await this.executeAction('return_line_items', args.id, TRIGGER, flags);
|
|
12
16
|
if (flags.print)
|
|
13
17
|
this.printOutput(res, flags);
|
|
14
18
|
this.successMessage('return_line_item', TRIGGER, res.id);
|
|
15
19
|
return res;
|
|
16
20
|
}
|
|
17
21
|
}
|
|
18
|
-
ReturnLineItemRestock.description = return_line_items_1.triggers[TRIGGER].description;
|
|
19
|
-
ReturnLineItemRestock.flags = {};
|
|
20
|
-
ReturnLineItemRestock.args = Object.assign({}, base_1.default.args);
|
|
21
22
|
exports.default = ReturnLineItemRestock;
|
|
@@ -3,7 +3,7 @@ export default class SatispayPaymentIndex 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 SatispayPaymentIndex extends base_1.default {
|
|
23
|
+
static description = 'execute an action on a resource of type satispay_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(SatispayPaymentIndex);
|
|
25
30
|
const id = args.id;
|
|
@@ -32,7 +37,4 @@ class SatispayPaymentIndex extends base_1.default {
|
|
|
32
37
|
return res;
|
|
33
38
|
}
|
|
34
39
|
}
|
|
35
|
-
SatispayPaymentIndex.description = 'execute an action on a resource of type satispay_payments';
|
|
36
|
-
SatispayPaymentIndex.flags = {};
|
|
37
|
-
SatispayPaymentIndex.args = Object.assign({}, base_1.default.args);
|
|
38
40
|
exports.default = SatispayPaymentIndex;
|
|
@@ -3,7 +3,7 @@ export default class SatispayPaymentRefresh 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
|
}
|
|
@@ -2,20 +2,21 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const base_1 = tslib_1.__importDefault(require("../../base"));
|
|
5
|
-
const exec_1 = tslib_1.__importDefault(require("../../exec"));
|
|
6
5
|
const satispay_payments_1 = require("../../triggers/satispay_payments");
|
|
7
6
|
const TRIGGER = 'refresh';
|
|
8
7
|
class SatispayPaymentRefresh extends base_1.default {
|
|
8
|
+
static description = satispay_payments_1.triggers[TRIGGER].description;
|
|
9
|
+
static flags = {};
|
|
10
|
+
static args = {
|
|
11
|
+
...base_1.default.args,
|
|
12
|
+
};
|
|
9
13
|
async run() {
|
|
10
14
|
const { args, flags } = await this.parse(SatispayPaymentRefresh);
|
|
11
|
-
const res = await
|
|
15
|
+
const res = await this.executeAction('satispay_payments', args.id, TRIGGER, flags);
|
|
12
16
|
if (flags.print)
|
|
13
17
|
this.printOutput(res, flags);
|
|
14
18
|
this.successMessage('satispay_payment', TRIGGER, res.id);
|
|
15
19
|
return res;
|
|
16
20
|
}
|
|
17
21
|
}
|
|
18
|
-
SatispayPaymentRefresh.description = satispay_payments_1.triggers[TRIGGER].description;
|
|
19
|
-
SatispayPaymentRefresh.flags = {};
|
|
20
|
-
SatispayPaymentRefresh.args = Object.assign({}, base_1.default.args);
|
|
21
22
|
exports.default = SatispayPaymentRefresh;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import Command from '../../base';
|
|
2
|
+
export default class ShipmentDecrementStock extends Command {
|
|
3
|
+
static description: string;
|
|
4
|
+
static flags: {};
|
|
5
|
+
static args: {
|
|
6
|
+
id: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
|
|
7
|
+
};
|
|
8
|
+
run(): Promise<any>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const base_1 = tslib_1.__importDefault(require("../../base"));
|
|
5
|
+
const shipments_1 = require("../../triggers/shipments");
|
|
6
|
+
const TRIGGER = 'decrement_stock';
|
|
7
|
+
class ShipmentDecrementStock extends base_1.default {
|
|
8
|
+
static description = shipments_1.triggers[TRIGGER].description;
|
|
9
|
+
static flags = {};
|
|
10
|
+
static args = {
|
|
11
|
+
...base_1.default.args,
|
|
12
|
+
};
|
|
13
|
+
async run() {
|
|
14
|
+
const { args, flags } = await this.parse(ShipmentDecrementStock);
|
|
15
|
+
const res = await this.executeAction('shipments', args.id, TRIGGER, flags);
|
|
16
|
+
if (flags.print)
|
|
17
|
+
this.printOutput(res, flags);
|
|
18
|
+
this.successMessage('shipment', TRIGGER, res.id);
|
|
19
|
+
return res;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.default = ShipmentDecrementStock;
|
|
@@ -3,7 +3,7 @@ export default class ShipmentGetRates 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
|
}
|