@commercelayer/cli-plugin-triggers 2.0.5 → 2.1.4
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/lib/base.d.ts +8 -8
- package/lib/base.js +10 -10
- package/lib/commands/adyen_payment/details.d.ts +6 -6
- package/lib/commands/adyen_payment/details.js +1 -1
- package/lib/commands/adyen_payment/index.d.ts +6 -6
- package/lib/commands/adyen_payment/index.js +1 -1
- package/lib/commands/authorization/capture.d.ts +6 -6
- package/lib/commands/authorization/capture.js +1 -1
- package/lib/commands/authorization/capture_amount_cents.d.ts +6 -6
- package/lib/commands/authorization/capture_amount_cents.js +1 -1
- package/lib/commands/authorization/index.d.ts +6 -6
- package/lib/commands/authorization/index.js +1 -1
- package/lib/commands/authorization/void.d.ts +6 -6
- package/lib/commands/authorization/void.js +1 -1
- package/lib/commands/bundle/compute_compare_at_amount.d.ts +6 -6
- package/lib/commands/bundle/compute_compare_at_amount.js +1 -1
- package/lib/commands/bundle/compute_price_amount.d.ts +6 -6
- package/lib/commands/bundle/compute_price_amount.js +1 -1
- package/lib/commands/bundle/index.d.ts +6 -6
- package/lib/commands/bundle/index.js +1 -1
- package/lib/commands/capture/index.d.ts +6 -6
- package/lib/commands/capture/index.js +1 -1
- package/lib/commands/capture/refund.d.ts +6 -6
- package/lib/commands/capture/refund.js +1 -1
- package/lib/commands/capture/refund_amount_cents.d.ts +6 -6
- package/lib/commands/capture/refund_amount_cents.js +1 -1
- package/lib/commands/checkout_com_payment/details.d.ts +6 -6
- package/lib/commands/checkout_com_payment/details.js +1 -1
- package/lib/commands/checkout_com_payment/index.d.ts +6 -6
- package/lib/commands/checkout_com_payment/index.js +1 -1
- package/lib/commands/checkout_com_payment/refresh.d.ts +6 -6
- package/lib/commands/checkout_com_payment/refresh.js +1 -1
- package/lib/commands/customer_password_reset/index.d.ts +6 -6
- package/lib/commands/customer_password_reset/index.js +1 -1
- package/lib/commands/customer_password_reset/reset_password_token.d.ts +6 -6
- package/lib/commands/customer_password_reset/reset_password_token.js +1 -1
- package/lib/commands/gift_card/activate.d.ts +6 -6
- package/lib/commands/gift_card/activate.js +1 -1
- package/lib/commands/gift_card/balance_change_cents.d.ts +6 -6
- package/lib/commands/gift_card/balance_change_cents.js +1 -1
- package/lib/commands/gift_card/deactivate.d.ts +6 -6
- package/lib/commands/gift_card/deactivate.js +1 -1
- package/lib/commands/gift_card/index.d.ts +6 -6
- package/lib/commands/gift_card/index.js +1 -1
- package/lib/commands/gift_card/purchase.d.ts +6 -6
- package/lib/commands/gift_card/purchase.js +1 -1
- package/lib/commands/in_stock_subscription/activate.d.ts +6 -6
- package/lib/commands/in_stock_subscription/activate.js +1 -1
- package/lib/commands/in_stock_subscription/deactivate.d.ts +6 -6
- package/lib/commands/in_stock_subscription/deactivate.js +1 -1
- package/lib/commands/in_stock_subscription/index.d.ts +6 -6
- package/lib/commands/in_stock_subscription/index.js +1 -1
- package/lib/commands/klarna_payment/index.d.ts +6 -6
- package/lib/commands/klarna_payment/index.js +1 -1
- package/lib/commands/klarna_payment/update.d.ts +6 -6
- package/lib/commands/klarna_payment/update.js +1 -1
- package/lib/commands/noc.d.ts +1 -1
- package/lib/commands/noc.js +2 -2
- package/lib/commands/order/approve.d.ts +6 -6
- package/lib/commands/order/approve.js +1 -1
- package/lib/commands/order/approve_and_capture.d.ts +6 -6
- package/lib/commands/order/approve_and_capture.js +1 -1
- package/lib/commands/order/archive.d.ts +6 -6
- package/lib/commands/order/archive.js +1 -1
- package/lib/commands/order/authorization_amount_cents.d.ts +6 -6
- package/lib/commands/order/authorization_amount_cents.js +1 -1
- package/lib/commands/order/authorize.d.ts +6 -6
- package/lib/commands/order/authorize.js +1 -1
- package/lib/commands/order/billing_address_clone_id.d.ts +8 -8
- package/lib/commands/order/billing_address_clone_id.js +2 -2
- package/lib/commands/order/billing_address_same_as_shipping.d.ts +6 -6
- package/lib/commands/order/billing_address_same_as_shipping.js +1 -1
- package/lib/commands/order/cancel.d.ts +6 -6
- package/lib/commands/order/cancel.js +1 -1
- package/lib/commands/order/capture.d.ts +6 -6
- package/lib/commands/order/capture.js +1 -1
- package/lib/commands/order/customer_payment_source_id.d.ts +8 -8
- package/lib/commands/order/customer_payment_source_id.js +2 -2
- package/lib/commands/order/index.d.ts +6 -6
- package/lib/commands/order/index.js +1 -1
- package/lib/commands/order/place.d.ts +6 -6
- package/lib/commands/order/place.js +1 -1
- package/lib/commands/order/refresh.d.ts +6 -6
- package/lib/commands/order/refresh.js +1 -1
- package/lib/commands/order/refund.d.ts +6 -6
- package/lib/commands/order/refund.js +1 -1
- package/lib/commands/order/save_billing_address_to_customer_address_book.d.ts +6 -6
- package/lib/commands/order/save_billing_address_to_customer_address_book.js +1 -1
- package/lib/commands/order/save_payment_source_to_customer_wallet.d.ts +6 -6
- package/lib/commands/order/save_payment_source_to_customer_wallet.js +1 -1
- package/lib/commands/order/save_shipping_address_to_customer_address_book.d.ts +6 -6
- package/lib/commands/order/save_shipping_address_to_customer_address_book.js +1 -1
- package/lib/commands/order/shipping_address_clone_id.d.ts +8 -8
- package/lib/commands/order/shipping_address_clone_id.js +2 -2
- package/lib/commands/order/shipping_address_same_as_billing.d.ts +6 -6
- package/lib/commands/order/shipping_address_same_as_billing.js +1 -1
- package/lib/commands/order/unarchive.d.ts +6 -6
- package/lib/commands/order/unarchive.js +1 -1
- package/lib/commands/order/update_taxes.d.ts +6 -6
- package/lib/commands/order/update_taxes.js +1 -1
- package/lib/commands/order_subscription/activate.d.ts +6 -6
- package/lib/commands/order_subscription/activate.js +1 -1
- package/lib/commands/order_subscription/cancel.d.ts +6 -6
- package/lib/commands/order_subscription/cancel.js +1 -1
- package/lib/commands/order_subscription/deactivate.d.ts +6 -6
- package/lib/commands/order_subscription/deactivate.js +1 -1
- package/lib/commands/order_subscription/index.d.ts +6 -6
- package/lib/commands/order_subscription/index.js +1 -1
- package/lib/commands/return/approve.d.ts +6 -6
- package/lib/commands/return/approve.js +1 -1
- package/lib/commands/return/archive.d.ts +6 -6
- package/lib/commands/return/archive.js +1 -1
- package/lib/commands/return/cancel.d.ts +6 -6
- package/lib/commands/return/cancel.js +1 -1
- package/lib/commands/return/index.d.ts +6 -6
- package/lib/commands/return/index.js +1 -1
- package/lib/commands/return/receive.d.ts +6 -6
- package/lib/commands/return/receive.js +1 -1
- package/lib/commands/return/reject.d.ts +6 -6
- package/lib/commands/return/reject.js +1 -1
- package/lib/commands/return/request.d.ts +6 -6
- package/lib/commands/return/request.js +1 -1
- package/lib/commands/return/restock.d.ts +6 -6
- package/lib/commands/return/restock.js +1 -1
- package/lib/commands/return/ship.d.ts +6 -6
- package/lib/commands/return/ship.js +1 -1
- package/lib/commands/return/unarchive.d.ts +6 -6
- package/lib/commands/return/unarchive.js +1 -1
- package/lib/commands/return_line_item/index.d.ts +6 -6
- package/lib/commands/return_line_item/index.js +1 -1
- package/lib/commands/return_line_item/restock.d.ts +6 -6
- package/lib/commands/return_line_item/restock.js +1 -1
- package/lib/commands/shipment/get_rates.d.ts +6 -6
- package/lib/commands/shipment/get_rates.js +1 -1
- package/lib/commands/shipment/index.d.ts +6 -6
- package/lib/commands/shipment/index.js +1 -1
- package/lib/commands/shipment/on_hold.d.ts +6 -6
- package/lib/commands/shipment/on_hold.js +1 -1
- package/lib/commands/shipment/packing.d.ts +6 -6
- package/lib/commands/shipment/packing.js +1 -1
- package/lib/commands/shipment/picking.d.ts +6 -6
- package/lib/commands/shipment/picking.js +1 -1
- package/lib/commands/shipment/purchase.d.ts +6 -6
- package/lib/commands/shipment/purchase.js +1 -1
- package/lib/commands/shipment/ready_to_ship.d.ts +6 -6
- package/lib/commands/shipment/ready_to_ship.js +1 -1
- package/lib/commands/shipment/ship.d.ts +6 -6
- package/lib/commands/shipment/ship.js +1 -1
- package/lib/commands/stock_transfer/cancel.d.ts +6 -6
- package/lib/commands/stock_transfer/cancel.js +1 -1
- package/lib/commands/stock_transfer/complete.d.ts +6 -6
- package/lib/commands/stock_transfer/complete.js +1 -1
- package/lib/commands/stock_transfer/in_transit.d.ts +6 -6
- package/lib/commands/stock_transfer/in_transit.js +1 -1
- package/lib/commands/stock_transfer/index.d.ts +6 -6
- package/lib/commands/stock_transfer/index.js +1 -1
- package/lib/commands/stock_transfer/picking.d.ts +6 -6
- package/lib/commands/stock_transfer/picking.js +1 -1
- package/lib/commands/stock_transfer/upcoming.d.ts +6 -6
- package/lib/commands/stock_transfer/upcoming.js +1 -1
- package/lib/commands/stripe_payment/index.d.ts +6 -6
- package/lib/commands/stripe_payment/index.js +1 -1
- package/lib/commands/stripe_payment/refresh.d.ts +6 -6
- package/lib/commands/stripe_payment/refresh.js +1 -1
- package/lib/commands/webhook/index.d.ts +6 -6
- package/lib/commands/webhook/index.js +1 -1
- package/lib/commands/webhook/reset_circuit.d.ts +6 -6
- package/lib/commands/webhook/reset_circuit.js +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +2 -2
- package/oclif.manifest.json +1 -1
- package/package.json +3 -5
|
@@ -2,12 +2,12 @@ import Command from '../../base';
|
|
|
2
2
|
export default class ReturnArchive extends Command {
|
|
3
3
|
static description: string;
|
|
4
4
|
static flags: {
|
|
5
|
-
organization: import("@oclif/
|
|
6
|
-
domain: import("@oclif/
|
|
7
|
-
accessToken: import("@oclif/
|
|
8
|
-
print: import("@oclif/
|
|
9
|
-
json: import("@oclif/
|
|
10
|
-
unformatted: import("@oclif/
|
|
5
|
+
organization: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
6
|
+
domain: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
7
|
+
accessToken: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
8
|
+
print: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
11
11
|
};
|
|
12
12
|
static args: {
|
|
13
13
|
name: string;
|
|
@@ -7,7 +7,7 @@ const returns_1 = require("../../triggers/returns");
|
|
|
7
7
|
const TRIGGER = 'archive';
|
|
8
8
|
class ReturnArchive extends base_1.default {
|
|
9
9
|
async run() {
|
|
10
|
-
const { args, flags } = this.parse(ReturnArchive);
|
|
10
|
+
const { args, flags } = await this.parse(ReturnArchive);
|
|
11
11
|
const res = await (0, exec_1.default)('returns', args.id, TRIGGER, flags);
|
|
12
12
|
if (flags.print)
|
|
13
13
|
this.printOutput(res, flags);
|
|
@@ -2,12 +2,12 @@ import Command from '../../base';
|
|
|
2
2
|
export default class ReturnCancel extends Command {
|
|
3
3
|
static description: string;
|
|
4
4
|
static flags: {
|
|
5
|
-
organization: import("@oclif/
|
|
6
|
-
domain: import("@oclif/
|
|
7
|
-
accessToken: import("@oclif/
|
|
8
|
-
print: import("@oclif/
|
|
9
|
-
json: import("@oclif/
|
|
10
|
-
unformatted: import("@oclif/
|
|
5
|
+
organization: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
6
|
+
domain: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
7
|
+
accessToken: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
8
|
+
print: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
11
11
|
};
|
|
12
12
|
static args: {
|
|
13
13
|
name: string;
|
|
@@ -7,7 +7,7 @@ const returns_1 = require("../../triggers/returns");
|
|
|
7
7
|
const TRIGGER = 'cancel';
|
|
8
8
|
class ReturnCancel extends base_1.default {
|
|
9
9
|
async run() {
|
|
10
|
-
const { args, flags } = this.parse(ReturnCancel);
|
|
10
|
+
const { args, flags } = await this.parse(ReturnCancel);
|
|
11
11
|
const res = await (0, exec_1.default)('returns', args.id, TRIGGER, flags);
|
|
12
12
|
if (flags.print)
|
|
13
13
|
this.printOutput(res, flags);
|
|
@@ -2,12 +2,12 @@ import Command from '../../base';
|
|
|
2
2
|
export default class ReturnIndex extends Command {
|
|
3
3
|
static description: string;
|
|
4
4
|
static flags: {
|
|
5
|
-
organization: import("@oclif/
|
|
6
|
-
domain: import("@oclif/
|
|
7
|
-
accessToken: import("@oclif/
|
|
8
|
-
print: import("@oclif/
|
|
9
|
-
json: import("@oclif/
|
|
10
|
-
unformatted: import("@oclif/
|
|
5
|
+
organization: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
6
|
+
domain: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
7
|
+
accessToken: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
8
|
+
print: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
11
11
|
};
|
|
12
12
|
static args: {
|
|
13
13
|
name: string;
|
|
@@ -21,7 +21,7 @@ const promptAction = async (id) => {
|
|
|
21
21
|
};
|
|
22
22
|
class ReturnIndex extends base_1.default {
|
|
23
23
|
async run() {
|
|
24
|
-
const { args, flags } = this.parse(ReturnIndex);
|
|
24
|
+
const { args, flags } = await this.parse(ReturnIndex);
|
|
25
25
|
const id = args.id;
|
|
26
26
|
const action = await promptAction(id);
|
|
27
27
|
const fields = [];
|
|
@@ -2,12 +2,12 @@ import Command from '../../base';
|
|
|
2
2
|
export default class ReturnReceive extends Command {
|
|
3
3
|
static description: string;
|
|
4
4
|
static flags: {
|
|
5
|
-
organization: import("@oclif/
|
|
6
|
-
domain: import("@oclif/
|
|
7
|
-
accessToken: import("@oclif/
|
|
8
|
-
print: import("@oclif/
|
|
9
|
-
json: import("@oclif/
|
|
10
|
-
unformatted: import("@oclif/
|
|
5
|
+
organization: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
6
|
+
domain: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
7
|
+
accessToken: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
8
|
+
print: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
11
11
|
};
|
|
12
12
|
static args: {
|
|
13
13
|
name: string;
|
|
@@ -7,7 +7,7 @@ const returns_1 = require("../../triggers/returns");
|
|
|
7
7
|
const TRIGGER = 'receive';
|
|
8
8
|
class ReturnReceive extends base_1.default {
|
|
9
9
|
async run() {
|
|
10
|
-
const { args, flags } = this.parse(ReturnReceive);
|
|
10
|
+
const { args, flags } = await this.parse(ReturnReceive);
|
|
11
11
|
const res = await (0, exec_1.default)('returns', args.id, TRIGGER, flags);
|
|
12
12
|
if (flags.print)
|
|
13
13
|
this.printOutput(res, flags);
|
|
@@ -2,12 +2,12 @@ import Command from '../../base';
|
|
|
2
2
|
export default class ReturnReject extends Command {
|
|
3
3
|
static description: string;
|
|
4
4
|
static flags: {
|
|
5
|
-
organization: import("@oclif/
|
|
6
|
-
domain: import("@oclif/
|
|
7
|
-
accessToken: import("@oclif/
|
|
8
|
-
print: import("@oclif/
|
|
9
|
-
json: import("@oclif/
|
|
10
|
-
unformatted: import("@oclif/
|
|
5
|
+
organization: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
6
|
+
domain: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
7
|
+
accessToken: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
8
|
+
print: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
11
11
|
};
|
|
12
12
|
static args: {
|
|
13
13
|
name: string;
|
|
@@ -7,7 +7,7 @@ const returns_1 = require("../../triggers/returns");
|
|
|
7
7
|
const TRIGGER = 'reject';
|
|
8
8
|
class ReturnReject extends base_1.default {
|
|
9
9
|
async run() {
|
|
10
|
-
const { args, flags } = this.parse(ReturnReject);
|
|
10
|
+
const { args, flags } = await this.parse(ReturnReject);
|
|
11
11
|
const res = await (0, exec_1.default)('returns', args.id, TRIGGER, flags);
|
|
12
12
|
if (flags.print)
|
|
13
13
|
this.printOutput(res, flags);
|
|
@@ -2,12 +2,12 @@ import Command from '../../base';
|
|
|
2
2
|
export default class ReturnRequest extends Command {
|
|
3
3
|
static description: string;
|
|
4
4
|
static flags: {
|
|
5
|
-
organization: import("@oclif/
|
|
6
|
-
domain: import("@oclif/
|
|
7
|
-
accessToken: import("@oclif/
|
|
8
|
-
print: import("@oclif/
|
|
9
|
-
json: import("@oclif/
|
|
10
|
-
unformatted: import("@oclif/
|
|
5
|
+
organization: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
6
|
+
domain: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
7
|
+
accessToken: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
8
|
+
print: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
11
11
|
};
|
|
12
12
|
static args: {
|
|
13
13
|
name: string;
|
|
@@ -7,7 +7,7 @@ const returns_1 = require("../../triggers/returns");
|
|
|
7
7
|
const TRIGGER = 'request';
|
|
8
8
|
class ReturnRequest extends base_1.default {
|
|
9
9
|
async run() {
|
|
10
|
-
const { args, flags } = this.parse(ReturnRequest);
|
|
10
|
+
const { args, flags } = await this.parse(ReturnRequest);
|
|
11
11
|
const res = await (0, exec_1.default)('returns', args.id, TRIGGER, flags);
|
|
12
12
|
if (flags.print)
|
|
13
13
|
this.printOutput(res, flags);
|
|
@@ -2,12 +2,12 @@ import Command from '../../base';
|
|
|
2
2
|
export default class ReturnRestock extends Command {
|
|
3
3
|
static description: string;
|
|
4
4
|
static flags: {
|
|
5
|
-
organization: import("@oclif/
|
|
6
|
-
domain: import("@oclif/
|
|
7
|
-
accessToken: import("@oclif/
|
|
8
|
-
print: import("@oclif/
|
|
9
|
-
json: import("@oclif/
|
|
10
|
-
unformatted: import("@oclif/
|
|
5
|
+
organization: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
6
|
+
domain: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
7
|
+
accessToken: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
8
|
+
print: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
11
11
|
};
|
|
12
12
|
static args: {
|
|
13
13
|
name: string;
|
|
@@ -7,7 +7,7 @@ const returns_1 = require("../../triggers/returns");
|
|
|
7
7
|
const TRIGGER = 'restock';
|
|
8
8
|
class ReturnRestock extends base_1.default {
|
|
9
9
|
async run() {
|
|
10
|
-
const { args, flags } = this.parse(ReturnRestock);
|
|
10
|
+
const { args, flags } = await this.parse(ReturnRestock);
|
|
11
11
|
const res = await (0, exec_1.default)('returns', args.id, TRIGGER, flags);
|
|
12
12
|
if (flags.print)
|
|
13
13
|
this.printOutput(res, flags);
|
|
@@ -2,12 +2,12 @@ import Command from '../../base';
|
|
|
2
2
|
export default class ReturnShip extends Command {
|
|
3
3
|
static description: string;
|
|
4
4
|
static flags: {
|
|
5
|
-
organization: import("@oclif/
|
|
6
|
-
domain: import("@oclif/
|
|
7
|
-
accessToken: import("@oclif/
|
|
8
|
-
print: import("@oclif/
|
|
9
|
-
json: import("@oclif/
|
|
10
|
-
unformatted: import("@oclif/
|
|
5
|
+
organization: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
6
|
+
domain: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
7
|
+
accessToken: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
8
|
+
print: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
11
11
|
};
|
|
12
12
|
static args: {
|
|
13
13
|
name: string;
|
|
@@ -7,7 +7,7 @@ const returns_1 = require("../../triggers/returns");
|
|
|
7
7
|
const TRIGGER = 'ship';
|
|
8
8
|
class ReturnShip extends base_1.default {
|
|
9
9
|
async run() {
|
|
10
|
-
const { args, flags } = this.parse(ReturnShip);
|
|
10
|
+
const { args, flags } = await this.parse(ReturnShip);
|
|
11
11
|
const res = await (0, exec_1.default)('returns', args.id, TRIGGER, flags);
|
|
12
12
|
if (flags.print)
|
|
13
13
|
this.printOutput(res, flags);
|
|
@@ -2,12 +2,12 @@ import Command from '../../base';
|
|
|
2
2
|
export default class ReturnUnarchive extends Command {
|
|
3
3
|
static description: string;
|
|
4
4
|
static flags: {
|
|
5
|
-
organization: import("@oclif/
|
|
6
|
-
domain: import("@oclif/
|
|
7
|
-
accessToken: import("@oclif/
|
|
8
|
-
print: import("@oclif/
|
|
9
|
-
json: import("@oclif/
|
|
10
|
-
unformatted: import("@oclif/
|
|
5
|
+
organization: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
6
|
+
domain: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
7
|
+
accessToken: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
8
|
+
print: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
11
11
|
};
|
|
12
12
|
static args: {
|
|
13
13
|
name: string;
|
|
@@ -7,7 +7,7 @@ const returns_1 = require("../../triggers/returns");
|
|
|
7
7
|
const TRIGGER = 'unarchive';
|
|
8
8
|
class ReturnUnarchive extends base_1.default {
|
|
9
9
|
async run() {
|
|
10
|
-
const { args, flags } = this.parse(ReturnUnarchive);
|
|
10
|
+
const { args, flags } = await this.parse(ReturnUnarchive);
|
|
11
11
|
const res = await (0, exec_1.default)('returns', args.id, TRIGGER, flags);
|
|
12
12
|
if (flags.print)
|
|
13
13
|
this.printOutput(res, flags);
|
|
@@ -2,12 +2,12 @@ import Command from '../../base';
|
|
|
2
2
|
export default class ReturnLineItemIndex extends Command {
|
|
3
3
|
static description: string;
|
|
4
4
|
static flags: {
|
|
5
|
-
organization: import("@oclif/
|
|
6
|
-
domain: import("@oclif/
|
|
7
|
-
accessToken: import("@oclif/
|
|
8
|
-
print: import("@oclif/
|
|
9
|
-
json: import("@oclif/
|
|
10
|
-
unformatted: import("@oclif/
|
|
5
|
+
organization: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
6
|
+
domain: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
7
|
+
accessToken: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
8
|
+
print: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
11
11
|
};
|
|
12
12
|
static args: {
|
|
13
13
|
name: string;
|
|
@@ -21,7 +21,7 @@ const promptAction = async (id) => {
|
|
|
21
21
|
};
|
|
22
22
|
class ReturnLineItemIndex extends base_1.default {
|
|
23
23
|
async run() {
|
|
24
|
-
const { args, flags } = this.parse(ReturnLineItemIndex);
|
|
24
|
+
const { args, flags } = await this.parse(ReturnLineItemIndex);
|
|
25
25
|
const id = args.id;
|
|
26
26
|
const action = await promptAction(id);
|
|
27
27
|
const fields = [];
|
|
@@ -2,12 +2,12 @@ import Command from '../../base';
|
|
|
2
2
|
export default class ReturnLineItemRestock extends Command {
|
|
3
3
|
static description: string;
|
|
4
4
|
static flags: {
|
|
5
|
-
organization: import("@oclif/
|
|
6
|
-
domain: import("@oclif/
|
|
7
|
-
accessToken: import("@oclif/
|
|
8
|
-
print: import("@oclif/
|
|
9
|
-
json: import("@oclif/
|
|
10
|
-
unformatted: import("@oclif/
|
|
5
|
+
organization: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
6
|
+
domain: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
7
|
+
accessToken: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
8
|
+
print: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
11
11
|
};
|
|
12
12
|
static args: {
|
|
13
13
|
name: string;
|
|
@@ -7,7 +7,7 @@ const return_line_items_1 = require("../../triggers/return_line_items");
|
|
|
7
7
|
const TRIGGER = 'restock';
|
|
8
8
|
class ReturnLineItemRestock extends base_1.default {
|
|
9
9
|
async run() {
|
|
10
|
-
const { args, flags } = this.parse(ReturnLineItemRestock);
|
|
10
|
+
const { args, flags } = await this.parse(ReturnLineItemRestock);
|
|
11
11
|
const res = await (0, exec_1.default)('return_line_items', args.id, TRIGGER, flags);
|
|
12
12
|
if (flags.print)
|
|
13
13
|
this.printOutput(res, flags);
|
|
@@ -2,12 +2,12 @@ import Command from '../../base';
|
|
|
2
2
|
export default class ShipmentGetRates extends Command {
|
|
3
3
|
static description: string;
|
|
4
4
|
static flags: {
|
|
5
|
-
organization: import("@oclif/
|
|
6
|
-
domain: import("@oclif/
|
|
7
|
-
accessToken: import("@oclif/
|
|
8
|
-
print: import("@oclif/
|
|
9
|
-
json: import("@oclif/
|
|
10
|
-
unformatted: import("@oclif/
|
|
5
|
+
organization: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
6
|
+
domain: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
7
|
+
accessToken: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
8
|
+
print: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
11
11
|
};
|
|
12
12
|
static args: {
|
|
13
13
|
name: string;
|
|
@@ -7,7 +7,7 @@ const shipments_1 = require("../../triggers/shipments");
|
|
|
7
7
|
const TRIGGER = 'get_rates';
|
|
8
8
|
class ShipmentGetRates extends base_1.default {
|
|
9
9
|
async run() {
|
|
10
|
-
const { args, flags } = this.parse(ShipmentGetRates);
|
|
10
|
+
const { args, flags } = await this.parse(ShipmentGetRates);
|
|
11
11
|
const res = await (0, exec_1.default)('shipments', args.id, TRIGGER, flags);
|
|
12
12
|
if (flags.print)
|
|
13
13
|
this.printOutput(res, flags);
|
|
@@ -2,12 +2,12 @@ import Command from '../../base';
|
|
|
2
2
|
export default class ShipmentIndex extends Command {
|
|
3
3
|
static description: string;
|
|
4
4
|
static flags: {
|
|
5
|
-
organization: import("@oclif/
|
|
6
|
-
domain: import("@oclif/
|
|
7
|
-
accessToken: import("@oclif/
|
|
8
|
-
print: import("@oclif/
|
|
9
|
-
json: import("@oclif/
|
|
10
|
-
unformatted: import("@oclif/
|
|
5
|
+
organization: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
6
|
+
domain: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
7
|
+
accessToken: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
8
|
+
print: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
11
11
|
};
|
|
12
12
|
static args: {
|
|
13
13
|
name: string;
|
|
@@ -21,7 +21,7 @@ const promptAction = async (id) => {
|
|
|
21
21
|
};
|
|
22
22
|
class ShipmentIndex extends base_1.default {
|
|
23
23
|
async run() {
|
|
24
|
-
const { args, flags } = this.parse(ShipmentIndex);
|
|
24
|
+
const { args, flags } = await this.parse(ShipmentIndex);
|
|
25
25
|
const id = args.id;
|
|
26
26
|
const action = await promptAction(id);
|
|
27
27
|
const fields = [];
|
|
@@ -2,12 +2,12 @@ import Command from '../../base';
|
|
|
2
2
|
export default class ShipmentOnHold extends Command {
|
|
3
3
|
static description: string;
|
|
4
4
|
static flags: {
|
|
5
|
-
organization: import("@oclif/
|
|
6
|
-
domain: import("@oclif/
|
|
7
|
-
accessToken: import("@oclif/
|
|
8
|
-
print: import("@oclif/
|
|
9
|
-
json: import("@oclif/
|
|
10
|
-
unformatted: import("@oclif/
|
|
5
|
+
organization: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
6
|
+
domain: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
7
|
+
accessToken: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
8
|
+
print: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
11
11
|
};
|
|
12
12
|
static args: {
|
|
13
13
|
name: string;
|
|
@@ -7,7 +7,7 @@ const shipments_1 = require("../../triggers/shipments");
|
|
|
7
7
|
const TRIGGER = 'on_hold';
|
|
8
8
|
class ShipmentOnHold extends base_1.default {
|
|
9
9
|
async run() {
|
|
10
|
-
const { args, flags } = this.parse(ShipmentOnHold);
|
|
10
|
+
const { args, flags } = await this.parse(ShipmentOnHold);
|
|
11
11
|
const res = await (0, exec_1.default)('shipments', args.id, TRIGGER, flags);
|
|
12
12
|
if (flags.print)
|
|
13
13
|
this.printOutput(res, flags);
|
|
@@ -2,12 +2,12 @@ import Command from '../../base';
|
|
|
2
2
|
export default class ShipmentPacking extends Command {
|
|
3
3
|
static description: string;
|
|
4
4
|
static flags: {
|
|
5
|
-
organization: import("@oclif/
|
|
6
|
-
domain: import("@oclif/
|
|
7
|
-
accessToken: import("@oclif/
|
|
8
|
-
print: import("@oclif/
|
|
9
|
-
json: import("@oclif/
|
|
10
|
-
unformatted: import("@oclif/
|
|
5
|
+
organization: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
6
|
+
domain: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
7
|
+
accessToken: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
8
|
+
print: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
11
11
|
};
|
|
12
12
|
static args: {
|
|
13
13
|
name: string;
|
|
@@ -7,7 +7,7 @@ const shipments_1 = require("../../triggers/shipments");
|
|
|
7
7
|
const TRIGGER = 'packing';
|
|
8
8
|
class ShipmentPacking extends base_1.default {
|
|
9
9
|
async run() {
|
|
10
|
-
const { args, flags } = this.parse(ShipmentPacking);
|
|
10
|
+
const { args, flags } = await this.parse(ShipmentPacking);
|
|
11
11
|
const res = await (0, exec_1.default)('shipments', args.id, TRIGGER, flags);
|
|
12
12
|
if (flags.print)
|
|
13
13
|
this.printOutput(res, flags);
|
|
@@ -2,12 +2,12 @@ import Command from '../../base';
|
|
|
2
2
|
export default class ShipmentPicking extends Command {
|
|
3
3
|
static description: string;
|
|
4
4
|
static flags: {
|
|
5
|
-
organization: import("@oclif/
|
|
6
|
-
domain: import("@oclif/
|
|
7
|
-
accessToken: import("@oclif/
|
|
8
|
-
print: import("@oclif/
|
|
9
|
-
json: import("@oclif/
|
|
10
|
-
unformatted: import("@oclif/
|
|
5
|
+
organization: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
6
|
+
domain: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
7
|
+
accessToken: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
8
|
+
print: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
11
11
|
};
|
|
12
12
|
static args: {
|
|
13
13
|
name: string;
|
|
@@ -7,7 +7,7 @@ const shipments_1 = require("../../triggers/shipments");
|
|
|
7
7
|
const TRIGGER = 'picking';
|
|
8
8
|
class ShipmentPicking extends base_1.default {
|
|
9
9
|
async run() {
|
|
10
|
-
const { args, flags } = this.parse(ShipmentPicking);
|
|
10
|
+
const { args, flags } = await this.parse(ShipmentPicking);
|
|
11
11
|
const res = await (0, exec_1.default)('shipments', args.id, TRIGGER, flags);
|
|
12
12
|
if (flags.print)
|
|
13
13
|
this.printOutput(res, flags);
|
|
@@ -2,12 +2,12 @@ import Command from '../../base';
|
|
|
2
2
|
export default class ShipmentPurchase extends Command {
|
|
3
3
|
static description: string;
|
|
4
4
|
static flags: {
|
|
5
|
-
organization: import("@oclif/
|
|
6
|
-
domain: import("@oclif/
|
|
7
|
-
accessToken: import("@oclif/
|
|
8
|
-
print: import("@oclif/
|
|
9
|
-
json: import("@oclif/
|
|
10
|
-
unformatted: import("@oclif/
|
|
5
|
+
organization: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
6
|
+
domain: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
7
|
+
accessToken: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
8
|
+
print: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
11
11
|
};
|
|
12
12
|
static args: {
|
|
13
13
|
name: string;
|
|
@@ -7,7 +7,7 @@ const shipments_1 = require("../../triggers/shipments");
|
|
|
7
7
|
const TRIGGER = 'purchase';
|
|
8
8
|
class ShipmentPurchase extends base_1.default {
|
|
9
9
|
async run() {
|
|
10
|
-
const { args, flags } = this.parse(ShipmentPurchase);
|
|
10
|
+
const { args, flags } = await this.parse(ShipmentPurchase);
|
|
11
11
|
const res = await (0, exec_1.default)('shipments', args.id, TRIGGER, flags);
|
|
12
12
|
if (flags.print)
|
|
13
13
|
this.printOutput(res, flags);
|
|
@@ -2,12 +2,12 @@ import Command from '../../base';
|
|
|
2
2
|
export default class ShipmentReadyToShip extends Command {
|
|
3
3
|
static description: string;
|
|
4
4
|
static flags: {
|
|
5
|
-
organization: import("@oclif/
|
|
6
|
-
domain: import("@oclif/
|
|
7
|
-
accessToken: import("@oclif/
|
|
8
|
-
print: import("@oclif/
|
|
9
|
-
json: import("@oclif/
|
|
10
|
-
unformatted: import("@oclif/
|
|
5
|
+
organization: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
6
|
+
domain: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
7
|
+
accessToken: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
8
|
+
print: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
11
11
|
};
|
|
12
12
|
static args: {
|
|
13
13
|
name: string;
|
|
@@ -7,7 +7,7 @@ const shipments_1 = require("../../triggers/shipments");
|
|
|
7
7
|
const TRIGGER = 'ready_to_ship';
|
|
8
8
|
class ShipmentReadyToShip extends base_1.default {
|
|
9
9
|
async run() {
|
|
10
|
-
const { args, flags } = this.parse(ShipmentReadyToShip);
|
|
10
|
+
const { args, flags } = await this.parse(ShipmentReadyToShip);
|
|
11
11
|
const res = await (0, exec_1.default)('shipments', args.id, TRIGGER, flags);
|
|
12
12
|
if (flags.print)
|
|
13
13
|
this.printOutput(res, flags);
|
|
@@ -2,12 +2,12 @@ import Command from '../../base';
|
|
|
2
2
|
export default class ShipmentShip extends Command {
|
|
3
3
|
static description: string;
|
|
4
4
|
static flags: {
|
|
5
|
-
organization: import("@oclif/
|
|
6
|
-
domain: import("@oclif/
|
|
7
|
-
accessToken: import("@oclif/
|
|
8
|
-
print: import("@oclif/
|
|
9
|
-
json: import("@oclif/
|
|
10
|
-
unformatted: import("@oclif/
|
|
5
|
+
organization: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
6
|
+
domain: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
7
|
+
accessToken: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
8
|
+
print: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
9
|
+
json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
10
|
+
unformatted: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
11
11
|
};
|
|
12
12
|
static args: {
|
|
13
13
|
name: string;
|
|
@@ -7,7 +7,7 @@ const shipments_1 = require("../../triggers/shipments");
|
|
|
7
7
|
const TRIGGER = 'ship';
|
|
8
8
|
class ShipmentShip extends base_1.default {
|
|
9
9
|
async run() {
|
|
10
|
-
const { args, flags } = this.parse(ShipmentShip);
|
|
10
|
+
const { args, flags } = await this.parse(ShipmentShip);
|
|
11
11
|
const res = await (0, exec_1.default)('shipments', args.id, TRIGGER, flags);
|
|
12
12
|
if (flags.print)
|
|
13
13
|
this.printOutput(res, flags);
|