@commercelayer/cli-plugin-triggers 1.0.6 → 1.2.0
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 +554 -353
- package/lib/base.d.ts +4 -2
- package/lib/base.js +20 -16
- package/lib/commands/adyen_payment/details.d.ts +3 -0
- package/lib/commands/adyen_payment/details.js +2 -0
- package/lib/commands/adyen_payment/index.d.ts +3 -0
- package/lib/commands/authorization/capture.d.ts +3 -0
- package/lib/commands/authorization/capture.js +2 -0
- package/lib/commands/authorization/capture_amount_cents.d.ts +3 -0
- package/lib/commands/authorization/capture_amount_cents.js +2 -0
- package/lib/commands/authorization/index.d.ts +3 -0
- package/lib/commands/authorization/void.d.ts +3 -0
- package/lib/commands/authorization/void.js +2 -0
- package/lib/commands/bundle/compute_compare_at_amount.d.ts +3 -0
- package/lib/commands/bundle/compute_compare_at_amount.js +2 -0
- package/lib/commands/bundle/index.d.ts +3 -0
- package/lib/commands/capture/index.d.ts +3 -0
- package/lib/commands/capture/refund.d.ts +3 -0
- package/lib/commands/capture/refund.js +2 -0
- package/lib/commands/capture/refund_amount_cents.d.ts +3 -0
- package/lib/commands/capture/refund_amount_cents.js +2 -0
- package/lib/commands/checkout_com_payment/details.d.ts +3 -0
- package/lib/commands/checkout_com_payment/details.js +2 -0
- package/lib/commands/checkout_com_payment/index.d.ts +3 -0
- package/lib/commands/checkout_com_payment/refresh.d.ts +3 -0
- package/lib/commands/checkout_com_payment/refresh.js +2 -0
- package/lib/commands/customer_password_reset/index.d.ts +3 -0
- package/lib/commands/customer_password_reset/reset_password_token.d.ts +3 -0
- package/lib/commands/customer_password_reset/reset_password_token.js +2 -0
- package/lib/commands/gift_card/activate.d.ts +3 -0
- package/lib/commands/gift_card/activate.js +2 -0
- package/lib/commands/gift_card/balance_change_cents.d.ts +3 -0
- package/lib/commands/gift_card/balance_change_cents.js +2 -0
- package/lib/commands/gift_card/deactivate.d.ts +3 -0
- package/lib/commands/gift_card/deactivate.js +2 -0
- package/lib/commands/gift_card/index.d.ts +3 -0
- package/lib/commands/gift_card/purchase.d.ts +3 -0
- package/lib/commands/gift_card/purchase.js +2 -0
- package/lib/commands/in_stock_subscription/activate.d.ts +3 -0
- package/lib/commands/in_stock_subscription/activate.js +2 -0
- package/lib/commands/in_stock_subscription/deactivate.d.ts +3 -0
- package/lib/commands/in_stock_subscription/deactivate.js +2 -0
- package/lib/commands/in_stock_subscription/index.d.ts +3 -0
- package/lib/commands/order/approve.d.ts +3 -0
- package/lib/commands/order/approve.js +2 -0
- package/lib/commands/order/approve_and_capture.d.ts +3 -0
- package/lib/commands/order/approve_and_capture.js +2 -0
- package/lib/commands/order/archive.d.ts +3 -0
- package/lib/commands/order/archive.js +2 -0
- package/lib/commands/order/authorization_amount_cents.d.ts +3 -0
- package/lib/commands/order/authorization_amount_cents.js +2 -0
- package/lib/commands/order/authorize.d.ts +3 -0
- package/lib/commands/order/authorize.js +2 -0
- package/lib/commands/order/billing_address_clone_id.d.ts +3 -0
- package/lib/commands/order/billing_address_clone_id.js +2 -0
- package/lib/commands/order/billing_address_same_as_shipping.d.ts +3 -0
- package/lib/commands/order/billing_address_same_as_shipping.js +2 -0
- package/lib/commands/order/cancel.d.ts +3 -0
- package/lib/commands/order/cancel.js +2 -0
- package/lib/commands/order/capture.d.ts +3 -0
- package/lib/commands/order/capture.js +2 -0
- package/lib/commands/order/customer_payment_source_id.d.ts +3 -0
- package/lib/commands/order/customer_payment_source_id.js +2 -0
- package/lib/commands/order/index.d.ts +3 -0
- package/lib/commands/order/place.d.ts +3 -0
- package/lib/commands/order/place.js +2 -0
- package/lib/commands/order/refresh.d.ts +3 -0
- package/lib/commands/order/refresh.js +2 -0
- package/lib/commands/order/refund.d.ts +3 -0
- package/lib/commands/order/refund.js +2 -0
- package/lib/commands/order/save_billing_address_to_customer_address_book.d.ts +3 -0
- package/lib/commands/order/save_billing_address_to_customer_address_book.js +2 -0
- package/lib/commands/order/save_payment_source_to_customer_wallet.d.ts +3 -0
- package/lib/commands/order/save_payment_source_to_customer_wallet.js +2 -0
- package/lib/commands/order/save_shipping_address_to_customer_address_book.d.ts +3 -0
- package/lib/commands/order/save_shipping_address_to_customer_address_book.js +2 -0
- package/lib/commands/order/shipping_address_clone_id.d.ts +3 -0
- package/lib/commands/order/shipping_address_clone_id.js +2 -0
- package/lib/commands/order/shipping_address_same_as_billing.d.ts +3 -0
- package/lib/commands/order/shipping_address_same_as_billing.js +2 -0
- package/lib/commands/order/unarchive.d.ts +3 -0
- package/lib/commands/order/unarchive.js +2 -0
- package/lib/commands/order/update_taxes.d.ts +3 -0
- package/lib/commands/order/update_taxes.js +2 -0
- package/lib/commands/order_subscription/activate.d.ts +3 -0
- package/lib/commands/order_subscription/activate.js +2 -0
- package/lib/commands/order_subscription/cancel.d.ts +3 -0
- package/lib/commands/order_subscription/cancel.js +2 -0
- package/lib/commands/order_subscription/deactivate.d.ts +3 -0
- package/lib/commands/order_subscription/deactivate.js +2 -0
- package/lib/commands/order_subscription/index.d.ts +3 -0
- package/lib/commands/return/approve.d.ts +3 -0
- package/lib/commands/return/approve.js +2 -0
- package/lib/commands/return/archive.d.ts +3 -0
- package/lib/commands/return/archive.js +2 -0
- package/lib/commands/return/cancel.d.ts +3 -0
- package/lib/commands/return/cancel.js +2 -0
- package/lib/commands/return/index.d.ts +3 -0
- package/lib/commands/return/receive.d.ts +3 -0
- package/lib/commands/return/receive.js +2 -0
- package/lib/commands/return/reject.d.ts +3 -0
- package/lib/commands/return/reject.js +2 -0
- package/lib/commands/return/request.d.ts +3 -0
- package/lib/commands/return/request.js +2 -0
- package/lib/commands/return/restock.d.ts +3 -0
- package/lib/commands/return/restock.js +2 -0
- package/lib/commands/return/ship.d.ts +3 -0
- package/lib/commands/return/ship.js +2 -0
- package/lib/commands/return/unarchive.d.ts +3 -0
- package/lib/commands/return/unarchive.js +2 -0
- package/lib/commands/return_line_item/index.d.ts +3 -0
- package/lib/commands/return_line_item/restock.d.ts +3 -0
- package/lib/commands/return_line_item/restock.js +2 -0
- package/lib/commands/shipment/get_rates.d.ts +3 -0
- package/lib/commands/shipment/get_rates.js +2 -0
- package/lib/commands/shipment/index.d.ts +3 -0
- package/lib/commands/shipment/on_hold.d.ts +3 -0
- package/lib/commands/shipment/on_hold.js +2 -0
- package/lib/commands/shipment/packing.d.ts +3 -0
- package/lib/commands/shipment/packing.js +2 -0
- package/lib/commands/shipment/picking.d.ts +3 -0
- package/lib/commands/shipment/picking.js +2 -0
- package/lib/commands/shipment/purchase.d.ts +3 -0
- package/lib/commands/shipment/purchase.js +2 -0
- package/lib/commands/shipment/ready_to_ship.d.ts +3 -0
- package/lib/commands/shipment/ready_to_ship.js +2 -0
- package/lib/commands/shipment/ship.d.ts +3 -0
- package/lib/commands/shipment/ship.js +2 -0
- package/lib/commands/stock_transfer/cancel.d.ts +3 -0
- package/lib/commands/stock_transfer/cancel.js +2 -0
- package/lib/commands/stock_transfer/complete.d.ts +3 -0
- package/lib/commands/stock_transfer/complete.js +2 -0
- package/lib/commands/stock_transfer/in_transit.d.ts +3 -0
- package/lib/commands/stock_transfer/in_transit.js +2 -0
- package/lib/commands/stock_transfer/index.d.ts +3 -0
- package/lib/commands/stock_transfer/picking.d.ts +3 -0
- package/lib/commands/stock_transfer/picking.js +2 -0
- package/lib/commands/stock_transfer/upcoming.d.ts +3 -0
- package/lib/commands/stock_transfer/upcoming.js +2 -0
- package/lib/commands/stripe_payment/index.d.ts +3 -0
- package/lib/commands/stripe_payment/refresh.d.ts +3 -0
- package/lib/commands/stripe_payment/refresh.js +2 -0
- package/lib/commands/webhook/index.d.ts +3 -0
- package/lib/commands/webhook/reset_circuit.d.ts +3 -0
- package/lib/commands/webhook/reset_circuit.js +2 -0
- package/lib/common.d.ts +0 -6
- package/lib/common.js +0 -24
- package/lib/triggers/adyen_payments.d.ts +1 -1
- package/lib/triggers/adyen_payments.js +0 -5
- package/lib/triggers/checkout_com_payments.d.ts +1 -1
- package/lib/triggers/checkout_com_payments.js +0 -5
- package/oclif.manifest.json +1 -1
- package/package.json +10 -5
- package/lib/commands/adyen_payment/authorize.d.ts +0 -15
- package/lib/commands/adyen_payment/authorize.js +0 -21
- package/lib/commands/checkout_com_payment/authorize.d.ts +0 -15
- package/lib/commands/checkout_com_payment/authorize.js +0 -21
|
@@ -5,6 +5,9 @@ export default class OrderAuthorize extends Command {
|
|
|
5
5
|
organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
6
6
|
domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
|
|
7
7
|
accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
8
|
+
print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
8
11
|
};
|
|
9
12
|
static args: {
|
|
10
13
|
name: string;
|
|
@@ -9,6 +9,8 @@ class OrderAuthorize extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(OrderAuthorize);
|
|
11
11
|
const res = await (0, exec_1.default)('orders', args.id, TRIGGER, flags);
|
|
12
|
+
if (flags.print)
|
|
13
|
+
this.printOutput(res, flags);
|
|
12
14
|
this.successMessage('order', TRIGGER, res.id);
|
|
13
15
|
return res;
|
|
14
16
|
}
|
|
@@ -6,6 +6,9 @@ export default class OrderBillingAddressCloneId extends Command {
|
|
|
6
6
|
organization: flags.IOptionFlag<string>;
|
|
7
7
|
domain: flags.IOptionFlag<string | undefined>;
|
|
8
8
|
accessToken: flags.IOptionFlag<string>;
|
|
9
|
+
print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
10
|
+
json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
11
|
+
unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
9
12
|
};
|
|
10
13
|
static args: {
|
|
11
14
|
name: string;
|
|
@@ -9,6 +9,8 @@ class OrderBillingAddressCloneId extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(OrderBillingAddressCloneId);
|
|
11
11
|
const res = await (0, exec_1.default)('orders', args.id, TRIGGER, flags);
|
|
12
|
+
if (flags.print)
|
|
13
|
+
this.printOutput(res, flags);
|
|
12
14
|
this.successMessage('order', TRIGGER, res.id);
|
|
13
15
|
return res;
|
|
14
16
|
}
|
|
@@ -5,6 +5,9 @@ export default class OrderBillingAddressSameAsShipping extends Command {
|
|
|
5
5
|
organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
6
6
|
domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
|
|
7
7
|
accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
8
|
+
print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
8
11
|
};
|
|
9
12
|
static args: {
|
|
10
13
|
name: string;
|
|
@@ -9,6 +9,8 @@ class OrderBillingAddressSameAsShipping extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(OrderBillingAddressSameAsShipping);
|
|
11
11
|
const res = await (0, exec_1.default)('orders', args.id, TRIGGER, flags);
|
|
12
|
+
if (flags.print)
|
|
13
|
+
this.printOutput(res, flags);
|
|
12
14
|
this.successMessage('order', TRIGGER, res.id);
|
|
13
15
|
return res;
|
|
14
16
|
}
|
|
@@ -5,6 +5,9 @@ export default class OrderCancel extends Command {
|
|
|
5
5
|
organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
6
6
|
domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
|
|
7
7
|
accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
8
|
+
print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
8
11
|
};
|
|
9
12
|
static args: {
|
|
10
13
|
name: string;
|
|
@@ -9,6 +9,8 @@ class OrderCancel extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(OrderCancel);
|
|
11
11
|
const res = await (0, exec_1.default)('orders', args.id, TRIGGER, flags);
|
|
12
|
+
if (flags.print)
|
|
13
|
+
this.printOutput(res, flags);
|
|
12
14
|
this.successMessage('order', TRIGGER, res.id);
|
|
13
15
|
return res;
|
|
14
16
|
}
|
|
@@ -5,6 +5,9 @@ export default class OrderCapture extends Command {
|
|
|
5
5
|
organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
6
6
|
domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
|
|
7
7
|
accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
8
|
+
print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
8
11
|
};
|
|
9
12
|
static args: {
|
|
10
13
|
name: string;
|
|
@@ -9,6 +9,8 @@ class OrderCapture extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(OrderCapture);
|
|
11
11
|
const res = await (0, exec_1.default)('orders', args.id, TRIGGER, flags);
|
|
12
|
+
if (flags.print)
|
|
13
|
+
this.printOutput(res, flags);
|
|
12
14
|
this.successMessage('order', TRIGGER, res.id);
|
|
13
15
|
return res;
|
|
14
16
|
}
|
|
@@ -6,6 +6,9 @@ export default class OrderCustomerPaymentSourceId extends Command {
|
|
|
6
6
|
organization: flags.IOptionFlag<string>;
|
|
7
7
|
domain: flags.IOptionFlag<string | undefined>;
|
|
8
8
|
accessToken: flags.IOptionFlag<string>;
|
|
9
|
+
print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
10
|
+
json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
11
|
+
unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
9
12
|
};
|
|
10
13
|
static args: {
|
|
11
14
|
name: string;
|
|
@@ -9,6 +9,8 @@ class OrderCustomerPaymentSourceId extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(OrderCustomerPaymentSourceId);
|
|
11
11
|
const res = await (0, exec_1.default)('orders', args.id, TRIGGER, flags);
|
|
12
|
+
if (flags.print)
|
|
13
|
+
this.printOutput(res, flags);
|
|
12
14
|
this.successMessage('order', TRIGGER, res.id);
|
|
13
15
|
return res;
|
|
14
16
|
}
|
|
@@ -5,6 +5,9 @@ export default class OrderIndex extends Command {
|
|
|
5
5
|
organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
6
6
|
domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
|
|
7
7
|
accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
8
|
+
print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
8
11
|
};
|
|
9
12
|
static args: {
|
|
10
13
|
name: string;
|
|
@@ -5,6 +5,9 @@ export default class OrderPlace extends Command {
|
|
|
5
5
|
organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
6
6
|
domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
|
|
7
7
|
accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
8
|
+
print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
8
11
|
};
|
|
9
12
|
static args: {
|
|
10
13
|
name: string;
|
|
@@ -9,6 +9,8 @@ class OrderPlace extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(OrderPlace);
|
|
11
11
|
const res = await (0, exec_1.default)('orders', args.id, TRIGGER, flags);
|
|
12
|
+
if (flags.print)
|
|
13
|
+
this.printOutput(res, flags);
|
|
12
14
|
this.successMessage('order', TRIGGER, res.id);
|
|
13
15
|
return res;
|
|
14
16
|
}
|
|
@@ -5,6 +5,9 @@ export default class OrderRefresh extends Command {
|
|
|
5
5
|
organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
6
6
|
domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
|
|
7
7
|
accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
8
|
+
print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
8
11
|
};
|
|
9
12
|
static args: {
|
|
10
13
|
name: string;
|
|
@@ -9,6 +9,8 @@ class OrderRefresh extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(OrderRefresh);
|
|
11
11
|
const res = await (0, exec_1.default)('orders', args.id, TRIGGER, flags);
|
|
12
|
+
if (flags.print)
|
|
13
|
+
this.printOutput(res, flags);
|
|
12
14
|
this.successMessage('order', TRIGGER, res.id);
|
|
13
15
|
return res;
|
|
14
16
|
}
|
|
@@ -5,6 +5,9 @@ export default class OrderRefund extends Command {
|
|
|
5
5
|
organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
6
6
|
domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
|
|
7
7
|
accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
8
|
+
print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
8
11
|
};
|
|
9
12
|
static args: {
|
|
10
13
|
name: string;
|
|
@@ -9,6 +9,8 @@ class OrderRefund extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(OrderRefund);
|
|
11
11
|
const res = await (0, exec_1.default)('orders', args.id, TRIGGER, flags);
|
|
12
|
+
if (flags.print)
|
|
13
|
+
this.printOutput(res, flags);
|
|
12
14
|
this.successMessage('order', TRIGGER, res.id);
|
|
13
15
|
return res;
|
|
14
16
|
}
|
|
@@ -5,6 +5,9 @@ export default class OrderSaveBillingAddressToCustomerAddressBook extends Comman
|
|
|
5
5
|
organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
6
6
|
domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
|
|
7
7
|
accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
8
|
+
print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
8
11
|
};
|
|
9
12
|
static args: {
|
|
10
13
|
name: string;
|
|
@@ -9,6 +9,8 @@ class OrderSaveBillingAddressToCustomerAddressBook extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(OrderSaveBillingAddressToCustomerAddressBook);
|
|
11
11
|
const res = await (0, exec_1.default)('orders', args.id, TRIGGER, flags);
|
|
12
|
+
if (flags.print)
|
|
13
|
+
this.printOutput(res, flags);
|
|
12
14
|
this.successMessage('order', TRIGGER, res.id);
|
|
13
15
|
return res;
|
|
14
16
|
}
|
|
@@ -5,6 +5,9 @@ export default class OrderSavePaymentSourceToCustomerWallet extends Command {
|
|
|
5
5
|
organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
6
6
|
domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
|
|
7
7
|
accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
8
|
+
print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
8
11
|
};
|
|
9
12
|
static args: {
|
|
10
13
|
name: string;
|
|
@@ -9,6 +9,8 @@ class OrderSavePaymentSourceToCustomerWallet extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(OrderSavePaymentSourceToCustomerWallet);
|
|
11
11
|
const res = await (0, exec_1.default)('orders', args.id, TRIGGER, flags);
|
|
12
|
+
if (flags.print)
|
|
13
|
+
this.printOutput(res, flags);
|
|
12
14
|
this.successMessage('order', TRIGGER, res.id);
|
|
13
15
|
return res;
|
|
14
16
|
}
|
|
@@ -5,6 +5,9 @@ export default class OrderSaveShippingAddressToCustomerAddressBook extends Comma
|
|
|
5
5
|
organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
6
6
|
domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
|
|
7
7
|
accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
8
|
+
print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
8
11
|
};
|
|
9
12
|
static args: {
|
|
10
13
|
name: string;
|
|
@@ -9,6 +9,8 @@ class OrderSaveShippingAddressToCustomerAddressBook extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(OrderSaveShippingAddressToCustomerAddressBook);
|
|
11
11
|
const res = await (0, exec_1.default)('orders', args.id, TRIGGER, flags);
|
|
12
|
+
if (flags.print)
|
|
13
|
+
this.printOutput(res, flags);
|
|
12
14
|
this.successMessage('order', TRIGGER, res.id);
|
|
13
15
|
return res;
|
|
14
16
|
}
|
|
@@ -6,6 +6,9 @@ export default class OrderShippingAddressCloneId extends Command {
|
|
|
6
6
|
organization: flags.IOptionFlag<string>;
|
|
7
7
|
domain: flags.IOptionFlag<string | undefined>;
|
|
8
8
|
accessToken: flags.IOptionFlag<string>;
|
|
9
|
+
print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
10
|
+
json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
11
|
+
unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
9
12
|
};
|
|
10
13
|
static args: {
|
|
11
14
|
name: string;
|
|
@@ -9,6 +9,8 @@ class OrderShippingAddressCloneId extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(OrderShippingAddressCloneId);
|
|
11
11
|
const res = await (0, exec_1.default)('orders', args.id, TRIGGER, flags);
|
|
12
|
+
if (flags.print)
|
|
13
|
+
this.printOutput(res, flags);
|
|
12
14
|
this.successMessage('order', TRIGGER, res.id);
|
|
13
15
|
return res;
|
|
14
16
|
}
|
|
@@ -5,6 +5,9 @@ export default class OrderShippingAddressSameAsBilling extends Command {
|
|
|
5
5
|
organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
6
6
|
domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
|
|
7
7
|
accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
8
|
+
print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
8
11
|
};
|
|
9
12
|
static args: {
|
|
10
13
|
name: string;
|
|
@@ -9,6 +9,8 @@ class OrderShippingAddressSameAsBilling extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(OrderShippingAddressSameAsBilling);
|
|
11
11
|
const res = await (0, exec_1.default)('orders', args.id, TRIGGER, flags);
|
|
12
|
+
if (flags.print)
|
|
13
|
+
this.printOutput(res, flags);
|
|
12
14
|
this.successMessage('order', TRIGGER, res.id);
|
|
13
15
|
return res;
|
|
14
16
|
}
|
|
@@ -5,6 +5,9 @@ export default class OrderUnarchive extends Command {
|
|
|
5
5
|
organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
6
6
|
domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
|
|
7
7
|
accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
8
|
+
print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
8
11
|
};
|
|
9
12
|
static args: {
|
|
10
13
|
name: string;
|
|
@@ -9,6 +9,8 @@ class OrderUnarchive extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(OrderUnarchive);
|
|
11
11
|
const res = await (0, exec_1.default)('orders', args.id, TRIGGER, flags);
|
|
12
|
+
if (flags.print)
|
|
13
|
+
this.printOutput(res, flags);
|
|
12
14
|
this.successMessage('order', TRIGGER, res.id);
|
|
13
15
|
return res;
|
|
14
16
|
}
|
|
@@ -5,6 +5,9 @@ export default class OrderUpdateTaxes extends Command {
|
|
|
5
5
|
organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
6
6
|
domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
|
|
7
7
|
accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
8
|
+
print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
8
11
|
};
|
|
9
12
|
static args: {
|
|
10
13
|
name: string;
|
|
@@ -9,6 +9,8 @@ class OrderUpdateTaxes extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(OrderUpdateTaxes);
|
|
11
11
|
const res = await (0, exec_1.default)('orders', args.id, TRIGGER, flags);
|
|
12
|
+
if (flags.print)
|
|
13
|
+
this.printOutput(res, flags);
|
|
12
14
|
this.successMessage('order', TRIGGER, res.id);
|
|
13
15
|
return res;
|
|
14
16
|
}
|
|
@@ -5,6 +5,9 @@ export default class OrderSubscriptionActivate extends Command {
|
|
|
5
5
|
organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
6
6
|
domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
|
|
7
7
|
accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
8
|
+
print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
8
11
|
};
|
|
9
12
|
static args: {
|
|
10
13
|
name: string;
|
|
@@ -9,6 +9,8 @@ class OrderSubscriptionActivate extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(OrderSubscriptionActivate);
|
|
11
11
|
const res = await (0, exec_1.default)('order_subscriptions', args.id, TRIGGER, flags);
|
|
12
|
+
if (flags.print)
|
|
13
|
+
this.printOutput(res, flags);
|
|
12
14
|
this.successMessage('order_subscription', TRIGGER, res.id);
|
|
13
15
|
return res;
|
|
14
16
|
}
|
|
@@ -5,6 +5,9 @@ export default class OrderSubscriptionCancel extends Command {
|
|
|
5
5
|
organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
6
6
|
domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
|
|
7
7
|
accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
8
|
+
print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
8
11
|
};
|
|
9
12
|
static args: {
|
|
10
13
|
name: string;
|
|
@@ -9,6 +9,8 @@ class OrderSubscriptionCancel extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(OrderSubscriptionCancel);
|
|
11
11
|
const res = await (0, exec_1.default)('order_subscriptions', args.id, TRIGGER, flags);
|
|
12
|
+
if (flags.print)
|
|
13
|
+
this.printOutput(res, flags);
|
|
12
14
|
this.successMessage('order_subscription', TRIGGER, res.id);
|
|
13
15
|
return res;
|
|
14
16
|
}
|
|
@@ -5,6 +5,9 @@ export default class OrderSubscriptionDeactivate extends Command {
|
|
|
5
5
|
organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
6
6
|
domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
|
|
7
7
|
accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
8
|
+
print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
8
11
|
};
|
|
9
12
|
static args: {
|
|
10
13
|
name: string;
|
|
@@ -9,6 +9,8 @@ class OrderSubscriptionDeactivate extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(OrderSubscriptionDeactivate);
|
|
11
11
|
const res = await (0, exec_1.default)('order_subscriptions', args.id, TRIGGER, flags);
|
|
12
|
+
if (flags.print)
|
|
13
|
+
this.printOutput(res, flags);
|
|
12
14
|
this.successMessage('order_subscription', TRIGGER, res.id);
|
|
13
15
|
return res;
|
|
14
16
|
}
|
|
@@ -5,6 +5,9 @@ export default class OrderSubscriptionIndex extends Command {
|
|
|
5
5
|
organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
6
6
|
domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
|
|
7
7
|
accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
8
|
+
print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
8
11
|
};
|
|
9
12
|
static args: {
|
|
10
13
|
name: string;
|
|
@@ -5,6 +5,9 @@ export default class ReturnApprove extends Command {
|
|
|
5
5
|
organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
6
6
|
domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
|
|
7
7
|
accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
8
|
+
print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
8
11
|
};
|
|
9
12
|
static args: {
|
|
10
13
|
name: string;
|
|
@@ -9,6 +9,8 @@ class ReturnApprove extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(ReturnApprove);
|
|
11
11
|
const res = await (0, exec_1.default)('returns', args.id, TRIGGER, flags);
|
|
12
|
+
if (flags.print)
|
|
13
|
+
this.printOutput(res, flags);
|
|
12
14
|
this.successMessage('return', TRIGGER, res.id);
|
|
13
15
|
return res;
|
|
14
16
|
}
|
|
@@ -5,6 +5,9 @@ export default class ReturnArchive extends Command {
|
|
|
5
5
|
organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
6
6
|
domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
|
|
7
7
|
accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
8
|
+
print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
8
11
|
};
|
|
9
12
|
static args: {
|
|
10
13
|
name: string;
|
|
@@ -9,6 +9,8 @@ class ReturnArchive extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(ReturnArchive);
|
|
11
11
|
const res = await (0, exec_1.default)('returns', args.id, TRIGGER, flags);
|
|
12
|
+
if (flags.print)
|
|
13
|
+
this.printOutput(res, flags);
|
|
12
14
|
this.successMessage('return', TRIGGER, res.id);
|
|
13
15
|
return res;
|
|
14
16
|
}
|
|
@@ -5,6 +5,9 @@ export default class ReturnCancel extends Command {
|
|
|
5
5
|
organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
6
6
|
domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
|
|
7
7
|
accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
8
|
+
print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
8
11
|
};
|
|
9
12
|
static args: {
|
|
10
13
|
name: string;
|
|
@@ -9,6 +9,8 @@ class ReturnCancel extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(ReturnCancel);
|
|
11
11
|
const res = await (0, exec_1.default)('returns', args.id, TRIGGER, flags);
|
|
12
|
+
if (flags.print)
|
|
13
|
+
this.printOutput(res, flags);
|
|
12
14
|
this.successMessage('return', TRIGGER, res.id);
|
|
13
15
|
return res;
|
|
14
16
|
}
|
|
@@ -5,6 +5,9 @@ export default class ReturnIndex extends Command {
|
|
|
5
5
|
organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
6
6
|
domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
|
|
7
7
|
accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
8
|
+
print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
8
11
|
};
|
|
9
12
|
static args: {
|
|
10
13
|
name: string;
|
|
@@ -5,6 +5,9 @@ export default class ReturnReceive extends Command {
|
|
|
5
5
|
organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
6
6
|
domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
|
|
7
7
|
accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
8
|
+
print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
8
11
|
};
|
|
9
12
|
static args: {
|
|
10
13
|
name: string;
|
|
@@ -9,6 +9,8 @@ class ReturnReceive extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(ReturnReceive);
|
|
11
11
|
const res = await (0, exec_1.default)('returns', args.id, TRIGGER, flags);
|
|
12
|
+
if (flags.print)
|
|
13
|
+
this.printOutput(res, flags);
|
|
12
14
|
this.successMessage('return', TRIGGER, res.id);
|
|
13
15
|
return res;
|
|
14
16
|
}
|
|
@@ -5,6 +5,9 @@ export default class ReturnReject extends Command {
|
|
|
5
5
|
organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
6
6
|
domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
|
|
7
7
|
accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
8
|
+
print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
8
11
|
};
|
|
9
12
|
static args: {
|
|
10
13
|
name: string;
|
|
@@ -9,6 +9,8 @@ class ReturnReject extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(ReturnReject);
|
|
11
11
|
const res = await (0, exec_1.default)('returns', args.id, TRIGGER, flags);
|
|
12
|
+
if (flags.print)
|
|
13
|
+
this.printOutput(res, flags);
|
|
12
14
|
this.successMessage('return', TRIGGER, res.id);
|
|
13
15
|
return res;
|
|
14
16
|
}
|
|
@@ -5,6 +5,9 @@ export default class ReturnRequest extends Command {
|
|
|
5
5
|
organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
6
6
|
domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
|
|
7
7
|
accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
8
|
+
print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
8
11
|
};
|
|
9
12
|
static args: {
|
|
10
13
|
name: string;
|
|
@@ -9,6 +9,8 @@ class ReturnRequest extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(ReturnRequest);
|
|
11
11
|
const res = await (0, exec_1.default)('returns', args.id, TRIGGER, flags);
|
|
12
|
+
if (flags.print)
|
|
13
|
+
this.printOutput(res, flags);
|
|
12
14
|
this.successMessage('return', TRIGGER, res.id);
|
|
13
15
|
return res;
|
|
14
16
|
}
|
|
@@ -5,6 +5,9 @@ export default class ReturnRestock extends Command {
|
|
|
5
5
|
organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
6
6
|
domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
|
|
7
7
|
accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
8
|
+
print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
8
11
|
};
|
|
9
12
|
static args: {
|
|
10
13
|
name: string;
|
|
@@ -9,6 +9,8 @@ class ReturnRestock extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(ReturnRestock);
|
|
11
11
|
const res = await (0, exec_1.default)('returns', args.id, TRIGGER, flags);
|
|
12
|
+
if (flags.print)
|
|
13
|
+
this.printOutput(res, flags);
|
|
12
14
|
this.successMessage('return', TRIGGER, res.id);
|
|
13
15
|
return res;
|
|
14
16
|
}
|
|
@@ -5,6 +5,9 @@ export default class ReturnShip extends Command {
|
|
|
5
5
|
organization: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
6
6
|
domain: import("@oclif/command/lib/flags").IOptionFlag<string | undefined>;
|
|
7
7
|
accessToken: import("@oclif/command/lib/flags").IOptionFlag<string>;
|
|
8
|
+
print: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>;
|
|
8
11
|
};
|
|
9
12
|
static args: {
|
|
10
13
|
name: string;
|
|
@@ -9,6 +9,8 @@ class ReturnShip extends base_1.default {
|
|
|
9
9
|
async run() {
|
|
10
10
|
const { args, flags } = this.parse(ReturnShip);
|
|
11
11
|
const res = await (0, exec_1.default)('returns', args.id, TRIGGER, flags);
|
|
12
|
+
if (flags.print)
|
|
13
|
+
this.printOutput(res, flags);
|
|
12
14
|
this.successMessage('return', TRIGGER, res.id);
|
|
13
15
|
return res;
|
|
14
16
|
}
|