@commercelayer/cli-plugin-triggers 3.15.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 +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
|
@@ -5,6 +5,11 @@ const base_1 = tslib_1.__importDefault(require("../../base"));
|
|
|
5
5
|
const returns_1 = require("../../triggers/returns");
|
|
6
6
|
const TRIGGER = 'archive';
|
|
7
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
|
+
};
|
|
8
13
|
async run() {
|
|
9
14
|
const { args, flags } = await this.parse(ReturnArchive);
|
|
10
15
|
const res = await this.executeAction('returns', args.id, TRIGGER, flags);
|
|
@@ -14,7 +19,4 @@ class ReturnArchive extends base_1.default {
|
|
|
14
19
|
return res;
|
|
15
20
|
}
|
|
16
21
|
}
|
|
17
|
-
ReturnArchive.description = returns_1.triggers[TRIGGER].description;
|
|
18
|
-
ReturnArchive.flags = {};
|
|
19
|
-
ReturnArchive.args = Object.assign({}, base_1.default.args);
|
|
20
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
|
}
|
|
@@ -5,6 +5,11 @@ const base_1 = tslib_1.__importDefault(require("../../base"));
|
|
|
5
5
|
const returns_1 = require("../../triggers/returns");
|
|
6
6
|
const TRIGGER = 'cancel';
|
|
7
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
|
+
};
|
|
8
13
|
async run() {
|
|
9
14
|
const { args, flags } = await this.parse(ReturnCancel);
|
|
10
15
|
const res = await this.executeAction('returns', args.id, TRIGGER, flags);
|
|
@@ -14,7 +19,4 @@ class ReturnCancel extends base_1.default {
|
|
|
14
19
|
return res;
|
|
15
20
|
}
|
|
16
21
|
}
|
|
17
|
-
ReturnCancel.description = returns_1.triggers[TRIGGER].description;
|
|
18
|
-
ReturnCancel.flags = {};
|
|
19
|
-
ReturnCancel.args = Object.assign({}, base_1.default.args);
|
|
20
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
|
}
|
|
@@ -5,6 +5,11 @@ const base_1 = tslib_1.__importDefault(require("../../base"));
|
|
|
5
5
|
const returns_1 = require("../../triggers/returns");
|
|
6
6
|
const TRIGGER = 'receive';
|
|
7
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
|
+
};
|
|
8
13
|
async run() {
|
|
9
14
|
const { args, flags } = await this.parse(ReturnReceive);
|
|
10
15
|
const res = await this.executeAction('returns', args.id, TRIGGER, flags);
|
|
@@ -14,7 +19,4 @@ class ReturnReceive extends base_1.default {
|
|
|
14
19
|
return res;
|
|
15
20
|
}
|
|
16
21
|
}
|
|
17
|
-
ReturnReceive.description = returns_1.triggers[TRIGGER].description;
|
|
18
|
-
ReturnReceive.flags = {};
|
|
19
|
-
ReturnReceive.args = Object.assign({}, base_1.default.args);
|
|
20
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
|
}
|
|
@@ -5,6 +5,11 @@ const base_1 = tslib_1.__importDefault(require("../../base"));
|
|
|
5
5
|
const returns_1 = require("../../triggers/returns");
|
|
6
6
|
const TRIGGER = 'reject';
|
|
7
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
|
+
};
|
|
8
13
|
async run() {
|
|
9
14
|
const { args, flags } = await this.parse(ReturnReject);
|
|
10
15
|
const res = await this.executeAction('returns', args.id, TRIGGER, flags);
|
|
@@ -14,7 +19,4 @@ class ReturnReject extends base_1.default {
|
|
|
14
19
|
return res;
|
|
15
20
|
}
|
|
16
21
|
}
|
|
17
|
-
ReturnReject.description = returns_1.triggers[TRIGGER].description;
|
|
18
|
-
ReturnReject.flags = {};
|
|
19
|
-
ReturnReject.args = Object.assign({}, base_1.default.args);
|
|
20
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
|
}
|
|
@@ -5,6 +5,11 @@ const base_1 = tslib_1.__importDefault(require("../../base"));
|
|
|
5
5
|
const returns_1 = require("../../triggers/returns");
|
|
6
6
|
const TRIGGER = 'request';
|
|
7
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
|
+
};
|
|
8
13
|
async run() {
|
|
9
14
|
const { args, flags } = await this.parse(ReturnRequest);
|
|
10
15
|
const res = await this.executeAction('returns', args.id, TRIGGER, flags);
|
|
@@ -14,7 +19,4 @@ class ReturnRequest extends base_1.default {
|
|
|
14
19
|
return res;
|
|
15
20
|
}
|
|
16
21
|
}
|
|
17
|
-
ReturnRequest.description = returns_1.triggers[TRIGGER].description;
|
|
18
|
-
ReturnRequest.flags = {};
|
|
19
|
-
ReturnRequest.args = Object.assign({}, base_1.default.args);
|
|
20
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
|
}
|
|
@@ -5,6 +5,11 @@ const base_1 = tslib_1.__importDefault(require("../../base"));
|
|
|
5
5
|
const returns_1 = require("../../triggers/returns");
|
|
6
6
|
const TRIGGER = 'restock';
|
|
7
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
|
+
};
|
|
8
13
|
async run() {
|
|
9
14
|
const { args, flags } = await this.parse(ReturnRestock);
|
|
10
15
|
const res = await this.executeAction('returns', args.id, TRIGGER, flags);
|
|
@@ -14,7 +19,4 @@ class ReturnRestock extends base_1.default {
|
|
|
14
19
|
return res;
|
|
15
20
|
}
|
|
16
21
|
}
|
|
17
|
-
ReturnRestock.description = returns_1.triggers[TRIGGER].description;
|
|
18
|
-
ReturnRestock.flags = {};
|
|
19
|
-
ReturnRestock.args = Object.assign({}, base_1.default.args);
|
|
20
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
|
}
|
|
@@ -5,6 +5,11 @@ const base_1 = tslib_1.__importDefault(require("../../base"));
|
|
|
5
5
|
const returns_1 = require("../../triggers/returns");
|
|
6
6
|
const TRIGGER = 'ship';
|
|
7
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
|
+
};
|
|
8
13
|
async run() {
|
|
9
14
|
const { args, flags } = await this.parse(ReturnShip);
|
|
10
15
|
const res = await this.executeAction('returns', args.id, TRIGGER, flags);
|
|
@@ -14,7 +19,4 @@ class ReturnShip extends base_1.default {
|
|
|
14
19
|
return res;
|
|
15
20
|
}
|
|
16
21
|
}
|
|
17
|
-
ReturnShip.description = returns_1.triggers[TRIGGER].description;
|
|
18
|
-
ReturnShip.flags = {};
|
|
19
|
-
ReturnShip.args = Object.assign({}, base_1.default.args);
|
|
20
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
|
}
|
|
@@ -5,6 +5,11 @@ const base_1 = tslib_1.__importDefault(require("../../base"));
|
|
|
5
5
|
const returns_1 = require("../../triggers/returns");
|
|
6
6
|
const TRIGGER = 'unarchive';
|
|
7
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
|
+
};
|
|
8
13
|
async run() {
|
|
9
14
|
const { args, flags } = await this.parse(ReturnUnarchive);
|
|
10
15
|
const res = await this.executeAction('returns', args.id, TRIGGER, flags);
|
|
@@ -14,7 +19,4 @@ class ReturnUnarchive extends base_1.default {
|
|
|
14
19
|
return res;
|
|
15
20
|
}
|
|
16
21
|
}
|
|
17
|
-
ReturnUnarchive.description = returns_1.triggers[TRIGGER].description;
|
|
18
|
-
ReturnUnarchive.flags = {};
|
|
19
|
-
ReturnUnarchive.args = Object.assign({}, base_1.default.args);
|
|
20
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
|
}
|
|
@@ -5,6 +5,11 @@ const base_1 = tslib_1.__importDefault(require("../../base"));
|
|
|
5
5
|
const return_line_items_1 = require("../../triggers/return_line_items");
|
|
6
6
|
const TRIGGER = 'restock';
|
|
7
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
|
+
};
|
|
8
13
|
async run() {
|
|
9
14
|
const { args, flags } = await this.parse(ReturnLineItemRestock);
|
|
10
15
|
const res = await this.executeAction('return_line_items', args.id, TRIGGER, flags);
|
|
@@ -14,7 +19,4 @@ class ReturnLineItemRestock extends base_1.default {
|
|
|
14
19
|
return res;
|
|
15
20
|
}
|
|
16
21
|
}
|
|
17
|
-
ReturnLineItemRestock.description = return_line_items_1.triggers[TRIGGER].description;
|
|
18
|
-
ReturnLineItemRestock.flags = {};
|
|
19
|
-
ReturnLineItemRestock.args = Object.assign({}, base_1.default.args);
|
|
20
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
|
}
|
|
@@ -5,6 +5,11 @@ const base_1 = tslib_1.__importDefault(require("../../base"));
|
|
|
5
5
|
const satispay_payments_1 = require("../../triggers/satispay_payments");
|
|
6
6
|
const TRIGGER = 'refresh';
|
|
7
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
|
+
};
|
|
8
13
|
async run() {
|
|
9
14
|
const { args, flags } = await this.parse(SatispayPaymentRefresh);
|
|
10
15
|
const res = await this.executeAction('satispay_payments', args.id, TRIGGER, flags);
|
|
@@ -14,7 +19,4 @@ class SatispayPaymentRefresh extends base_1.default {
|
|
|
14
19
|
return res;
|
|
15
20
|
}
|
|
16
21
|
}
|
|
17
|
-
SatispayPaymentRefresh.description = satispay_payments_1.triggers[TRIGGER].description;
|
|
18
|
-
SatispayPaymentRefresh.flags = {};
|
|
19
|
-
SatispayPaymentRefresh.args = Object.assign({}, base_1.default.args);
|
|
20
22
|
exports.default = SatispayPaymentRefresh;
|
|
@@ -3,7 +3,7 @@ export default class ShipmentDecrementStock 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 shipments_1 = require("../../triggers/shipments");
|
|
6
6
|
const TRIGGER = 'decrement_stock';
|
|
7
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
|
+
};
|
|
8
13
|
async run() {
|
|
9
14
|
const { args, flags } = await this.parse(ShipmentDecrementStock);
|
|
10
15
|
const res = await this.executeAction('shipments', args.id, TRIGGER, flags);
|
|
@@ -14,7 +19,4 @@ class ShipmentDecrementStock extends base_1.default {
|
|
|
14
19
|
return res;
|
|
15
20
|
}
|
|
16
21
|
}
|
|
17
|
-
ShipmentDecrementStock.description = shipments_1.triggers[TRIGGER].description;
|
|
18
|
-
ShipmentDecrementStock.flags = {};
|
|
19
|
-
ShipmentDecrementStock.args = Object.assign({}, base_1.default.args);
|
|
20
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
|
}
|
|
@@ -5,6 +5,11 @@ const base_1 = tslib_1.__importDefault(require("../../base"));
|
|
|
5
5
|
const shipments_1 = require("../../triggers/shipments");
|
|
6
6
|
const TRIGGER = 'get_rates';
|
|
7
7
|
class ShipmentGetRates extends base_1.default {
|
|
8
|
+
static description = shipments_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(ShipmentGetRates);
|
|
10
15
|
const res = await this.executeAction('shipments', args.id, TRIGGER, flags);
|
|
@@ -14,7 +19,4 @@ class ShipmentGetRates extends base_1.default {
|
|
|
14
19
|
return res;
|
|
15
20
|
}
|
|
16
21
|
}
|
|
17
|
-
ShipmentGetRates.description = shipments_1.triggers[TRIGGER].description;
|
|
18
|
-
ShipmentGetRates.flags = {};
|
|
19
|
-
ShipmentGetRates.args = Object.assign({}, base_1.default.args);
|
|
20
22
|
exports.default = ShipmentGetRates;
|
|
@@ -3,7 +3,7 @@ export default class ShipmentIndex 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 ShipmentIndex extends base_1.default {
|
|
23
|
+
static description = 'execute an action on a resource of type shipments';
|
|
24
|
+
static flags = {};
|
|
25
|
+
static args = {
|
|
26
|
+
...base_1.default.args,
|
|
27
|
+
};
|
|
23
28
|
async run() {
|
|
24
29
|
const { args, flags } = await this.parse(ShipmentIndex);
|
|
25
30
|
const id = args.id;
|
|
@@ -32,7 +37,4 @@ class ShipmentIndex extends base_1.default {
|
|
|
32
37
|
return res;
|
|
33
38
|
}
|
|
34
39
|
}
|
|
35
|
-
ShipmentIndex.description = 'execute an action on a resource of type shipments';
|
|
36
|
-
ShipmentIndex.flags = {};
|
|
37
|
-
ShipmentIndex.args = Object.assign({}, base_1.default.args);
|
|
38
40
|
exports.default = ShipmentIndex;
|
|
@@ -3,7 +3,7 @@ export default class ShipmentOnHold 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 shipments_1 = require("../../triggers/shipments");
|
|
6
6
|
const TRIGGER = 'on_hold';
|
|
7
7
|
class ShipmentOnHold extends base_1.default {
|
|
8
|
+
static description = shipments_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(ShipmentOnHold);
|
|
10
15
|
const res = await this.executeAction('shipments', args.id, TRIGGER, flags);
|
|
@@ -14,7 +19,4 @@ class ShipmentOnHold extends base_1.default {
|
|
|
14
19
|
return res;
|
|
15
20
|
}
|
|
16
21
|
}
|
|
17
|
-
ShipmentOnHold.description = shipments_1.triggers[TRIGGER].description;
|
|
18
|
-
ShipmentOnHold.flags = {};
|
|
19
|
-
ShipmentOnHold.args = Object.assign({}, base_1.default.args);
|
|
20
22
|
exports.default = ShipmentOnHold;
|
|
@@ -3,7 +3,7 @@ export default class ShipmentPacking 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 shipments_1 = require("../../triggers/shipments");
|
|
6
6
|
const TRIGGER = 'packing';
|
|
7
7
|
class ShipmentPacking extends base_1.default {
|
|
8
|
+
static description = shipments_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(ShipmentPacking);
|
|
10
15
|
const res = await this.executeAction('shipments', args.id, TRIGGER, flags);
|
|
@@ -14,7 +19,4 @@ class ShipmentPacking extends base_1.default {
|
|
|
14
19
|
return res;
|
|
15
20
|
}
|
|
16
21
|
}
|
|
17
|
-
ShipmentPacking.description = shipments_1.triggers[TRIGGER].description;
|
|
18
|
-
ShipmentPacking.flags = {};
|
|
19
|
-
ShipmentPacking.args = Object.assign({}, base_1.default.args);
|
|
20
22
|
exports.default = ShipmentPacking;
|
|
@@ -3,7 +3,7 @@ export default class ShipmentPicking 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 shipments_1 = require("../../triggers/shipments");
|
|
6
6
|
const TRIGGER = 'picking';
|
|
7
7
|
class ShipmentPicking extends base_1.default {
|
|
8
|
+
static description = shipments_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(ShipmentPicking);
|
|
10
15
|
const res = await this.executeAction('shipments', args.id, TRIGGER, flags);
|
|
@@ -14,7 +19,4 @@ class ShipmentPicking extends base_1.default {
|
|
|
14
19
|
return res;
|
|
15
20
|
}
|
|
16
21
|
}
|
|
17
|
-
ShipmentPicking.description = shipments_1.triggers[TRIGGER].description;
|
|
18
|
-
ShipmentPicking.flags = {};
|
|
19
|
-
ShipmentPicking.args = Object.assign({}, base_1.default.args);
|
|
20
22
|
exports.default = ShipmentPicking;
|
|
@@ -3,7 +3,7 @@ export default class ShipmentPurchase 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 shipments_1 = require("../../triggers/shipments");
|
|
6
6
|
const TRIGGER = 'purchase';
|
|
7
7
|
class ShipmentPurchase extends base_1.default {
|
|
8
|
+
static description = shipments_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(ShipmentPurchase);
|
|
10
15
|
const res = await this.executeAction('shipments', args.id, TRIGGER, flags);
|
|
@@ -14,7 +19,4 @@ class ShipmentPurchase extends base_1.default {
|
|
|
14
19
|
return res;
|
|
15
20
|
}
|
|
16
21
|
}
|
|
17
|
-
ShipmentPurchase.description = shipments_1.triggers[TRIGGER].description;
|
|
18
|
-
ShipmentPurchase.flags = {};
|
|
19
|
-
ShipmentPurchase.args = Object.assign({}, base_1.default.args);
|
|
20
22
|
exports.default = ShipmentPurchase;
|
|
@@ -3,7 +3,7 @@ export default class ShipmentReadyToShip 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 shipments_1 = require("../../triggers/shipments");
|
|
6
6
|
const TRIGGER = 'ready_to_ship';
|
|
7
7
|
class ShipmentReadyToShip extends base_1.default {
|
|
8
|
+
static description = shipments_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(ShipmentReadyToShip);
|
|
10
15
|
const res = await this.executeAction('shipments', args.id, TRIGGER, flags);
|
|
@@ -14,7 +19,4 @@ class ShipmentReadyToShip extends base_1.default {
|
|
|
14
19
|
return res;
|
|
15
20
|
}
|
|
16
21
|
}
|
|
17
|
-
ShipmentReadyToShip.description = shipments_1.triggers[TRIGGER].description;
|
|
18
|
-
ShipmentReadyToShip.flags = {};
|
|
19
|
-
ShipmentReadyToShip.args = Object.assign({}, base_1.default.args);
|
|
20
22
|
exports.default = ShipmentReadyToShip;
|
|
@@ -3,7 +3,7 @@ export default class ShipmentReleaseStock 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
|
}
|