@commercelayer/cli-plugin-triggers 2.0.1 → 2.1.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/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 +4 -6
|
@@ -7,7 +7,7 @@ const customer_password_resets_1 = require("../../triggers/customer_password_res
|
|
|
7
7
|
const TRIGGER = 'reset_password_token';
|
|
8
8
|
class CustomerPasswordResetResetPasswordToken extends base_1.default {
|
|
9
9
|
async run() {
|
|
10
|
-
const { args, flags } = this.parse(CustomerPasswordResetResetPasswordToken);
|
|
10
|
+
const { args, flags } = await this.parse(CustomerPasswordResetResetPasswordToken);
|
|
11
11
|
const res = await (0, exec_1.default)('customer_password_resets', 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 GiftCardActivate 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 gift_cards_1 = require("../../triggers/gift_cards");
|
|
|
7
7
|
const TRIGGER = 'activate';
|
|
8
8
|
class GiftCardActivate extends base_1.default {
|
|
9
9
|
async run() {
|
|
10
|
-
const { args, flags } = this.parse(GiftCardActivate);
|
|
10
|
+
const { args, flags } = await this.parse(GiftCardActivate);
|
|
11
11
|
const res = await (0, exec_1.default)('gift_cards', 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 GiftCardBalanceChangeCents 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 gift_cards_1 = require("../../triggers/gift_cards");
|
|
|
7
7
|
const TRIGGER = 'balance_change_cents';
|
|
8
8
|
class GiftCardBalanceChangeCents extends base_1.default {
|
|
9
9
|
async run() {
|
|
10
|
-
const { args, flags } = this.parse(GiftCardBalanceChangeCents);
|
|
10
|
+
const { args, flags } = await this.parse(GiftCardBalanceChangeCents);
|
|
11
11
|
const res = await (0, exec_1.default)('gift_cards', 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 GiftCardDeactivate 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 gift_cards_1 = require("../../triggers/gift_cards");
|
|
|
7
7
|
const TRIGGER = 'deactivate';
|
|
8
8
|
class GiftCardDeactivate extends base_1.default {
|
|
9
9
|
async run() {
|
|
10
|
-
const { args, flags } = this.parse(GiftCardDeactivate);
|
|
10
|
+
const { args, flags } = await this.parse(GiftCardDeactivate);
|
|
11
11
|
const res = await (0, exec_1.default)('gift_cards', 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 GiftCardIndex 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 GiftCardIndex extends base_1.default {
|
|
23
23
|
async run() {
|
|
24
|
-
const { args, flags } = this.parse(GiftCardIndex);
|
|
24
|
+
const { args, flags } = await this.parse(GiftCardIndex);
|
|
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 GiftCardPurchase 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 gift_cards_1 = require("../../triggers/gift_cards");
|
|
|
7
7
|
const TRIGGER = 'purchase';
|
|
8
8
|
class GiftCardPurchase extends base_1.default {
|
|
9
9
|
async run() {
|
|
10
|
-
const { args, flags } = this.parse(GiftCardPurchase);
|
|
10
|
+
const { args, flags } = await this.parse(GiftCardPurchase);
|
|
11
11
|
const res = await (0, exec_1.default)('gift_cards', 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 InStockSubscriptionActivate 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 in_stock_subscriptions_1 = require("../../triggers/in_stock_subscriptions"
|
|
|
7
7
|
const TRIGGER = 'activate';
|
|
8
8
|
class InStockSubscriptionActivate extends base_1.default {
|
|
9
9
|
async run() {
|
|
10
|
-
const { args, flags } = this.parse(InStockSubscriptionActivate);
|
|
10
|
+
const { args, flags } = await this.parse(InStockSubscriptionActivate);
|
|
11
11
|
const res = await (0, exec_1.default)('in_stock_subscriptions', 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 InStockSubscriptionDeactivate 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 in_stock_subscriptions_1 = require("../../triggers/in_stock_subscriptions"
|
|
|
7
7
|
const TRIGGER = 'deactivate';
|
|
8
8
|
class InStockSubscriptionDeactivate extends base_1.default {
|
|
9
9
|
async run() {
|
|
10
|
-
const { args, flags } = this.parse(InStockSubscriptionDeactivate);
|
|
10
|
+
const { args, flags } = await this.parse(InStockSubscriptionDeactivate);
|
|
11
11
|
const res = await (0, exec_1.default)('in_stock_subscriptions', 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 InStockSubscriptionIndex 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 InStockSubscriptionIndex extends base_1.default {
|
|
23
23
|
async run() {
|
|
24
|
-
const { args, flags } = this.parse(InStockSubscriptionIndex);
|
|
24
|
+
const { args, flags } = await this.parse(InStockSubscriptionIndex);
|
|
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 KlarnaPaymentIndex 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 KlarnaPaymentIndex extends base_1.default {
|
|
23
23
|
async run() {
|
|
24
|
-
const { args, flags } = this.parse(KlarnaPaymentIndex);
|
|
24
|
+
const { args, flags } = await this.parse(KlarnaPaymentIndex);
|
|
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 KlarnaPaymentUpdate 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 klarna_payments_1 = require("../../triggers/klarna_payments");
|
|
|
7
7
|
const TRIGGER = 'update';
|
|
8
8
|
class KlarnaPaymentUpdate extends base_1.default {
|
|
9
9
|
async run() {
|
|
10
|
-
const { args, flags } = this.parse(KlarnaPaymentUpdate);
|
|
10
|
+
const { args, flags } = await this.parse(KlarnaPaymentUpdate);
|
|
11
11
|
const res = await (0, exec_1.default)('klarna_payments', args.id, TRIGGER, flags);
|
|
12
12
|
if (flags.print)
|
|
13
13
|
this.printOutput(res, flags);
|
package/lib/commands/noc.d.ts
CHANGED
package/lib/commands/noc.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const
|
|
4
|
-
class Noc extends
|
|
3
|
+
const core_1 = require("@oclif/core");
|
|
4
|
+
class Noc extends core_1.Command {
|
|
5
5
|
async run() {
|
|
6
6
|
const output = '-= NoC =-';
|
|
7
7
|
this.log(output);
|
|
@@ -2,12 +2,12 @@ import Command from '../../base';
|
|
|
2
2
|
export default class OrderApprove 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 orders_1 = require("../../triggers/orders");
|
|
|
7
7
|
const TRIGGER = 'approve';
|
|
8
8
|
class OrderApprove extends base_1.default {
|
|
9
9
|
async run() {
|
|
10
|
-
const { args, flags } = this.parse(OrderApprove);
|
|
10
|
+
const { args, flags } = await this.parse(OrderApprove);
|
|
11
11
|
const res = await (0, exec_1.default)('orders', 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 OrderApproveAndCapture 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 orders_1 = require("../../triggers/orders");
|
|
|
7
7
|
const TRIGGER = 'approve_and_capture';
|
|
8
8
|
class OrderApproveAndCapture extends base_1.default {
|
|
9
9
|
async run() {
|
|
10
|
-
const { args, flags } = this.parse(OrderApproveAndCapture);
|
|
10
|
+
const { args, flags } = await this.parse(OrderApproveAndCapture);
|
|
11
11
|
const res = await (0, exec_1.default)('orders', 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 OrderArchive 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 orders_1 = require("../../triggers/orders");
|
|
|
7
7
|
const TRIGGER = 'archive';
|
|
8
8
|
class OrderArchive extends base_1.default {
|
|
9
9
|
async run() {
|
|
10
|
-
const { args, flags } = this.parse(OrderArchive);
|
|
10
|
+
const { args, flags } = await this.parse(OrderArchive);
|
|
11
11
|
const res = await (0, exec_1.default)('orders', 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 OrderAuthorizationAmountCents 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 orders_1 = require("../../triggers/orders");
|
|
|
7
7
|
const TRIGGER = 'authorization_amount_cents';
|
|
8
8
|
class OrderAuthorizationAmountCents extends base_1.default {
|
|
9
9
|
async run() {
|
|
10
|
-
const { args, flags } = this.parse(OrderAuthorizationAmountCents);
|
|
10
|
+
const { args, flags } = await this.parse(OrderAuthorizationAmountCents);
|
|
11
11
|
const res = await (0, exec_1.default)('orders', 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 OrderAuthorize 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 orders_1 = require("../../triggers/orders");
|
|
|
7
7
|
const TRIGGER = 'authorize';
|
|
8
8
|
class OrderAuthorize extends base_1.default {
|
|
9
9
|
async run() {
|
|
10
|
-
const { args, flags } = this.parse(OrderAuthorize);
|
|
10
|
+
const { args, flags } = await this.parse(OrderAuthorize);
|
|
11
11
|
const res = await (0, exec_1.default)('orders', args.id, TRIGGER, flags);
|
|
12
12
|
if (flags.print)
|
|
13
13
|
this.printOutput(res, flags);
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import Command
|
|
1
|
+
import Command from '../../base';
|
|
2
2
|
export default class OrderBillingAddressCloneId extends Command {
|
|
3
3
|
static description: string;
|
|
4
4
|
static flags: {
|
|
5
|
-
value:
|
|
6
|
-
organization:
|
|
7
|
-
domain:
|
|
8
|
-
accessToken:
|
|
9
|
-
print: import("@oclif/
|
|
10
|
-
json: import("@oclif/
|
|
11
|
-
unformatted: import("@oclif/
|
|
5
|
+
value: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
6
|
+
organization: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
7
|
+
domain: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
8
|
+
accessToken: import("@oclif/core/lib/interfaces").OptionFlag<string>;
|
|
9
|
+
print: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
10
|
+
json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
11
|
+
unformatted: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
12
12
|
};
|
|
13
13
|
static args: {
|
|
14
14
|
name: string;
|
|
@@ -7,7 +7,7 @@ const orders_1 = require("../../triggers/orders");
|
|
|
7
7
|
const TRIGGER = 'billing_address_clone_id';
|
|
8
8
|
class OrderBillingAddressCloneId extends base_1.default {
|
|
9
9
|
async run() {
|
|
10
|
-
const { args, flags } = this.parse(OrderBillingAddressCloneId);
|
|
10
|
+
const { args, flags } = await this.parse(OrderBillingAddressCloneId);
|
|
11
11
|
const res = await (0, exec_1.default)('orders', args.id, TRIGGER, flags);
|
|
12
12
|
if (flags.print)
|
|
13
13
|
this.printOutput(res, flags);
|
|
@@ -17,7 +17,7 @@ class OrderBillingAddressCloneId extends base_1.default {
|
|
|
17
17
|
}
|
|
18
18
|
exports.default = OrderBillingAddressCloneId;
|
|
19
19
|
OrderBillingAddressCloneId.description = orders_1.triggers[TRIGGER].description;
|
|
20
|
-
OrderBillingAddressCloneId.flags = Object.assign(Object.assign({}, base_1.default.flags), { value: base_1.
|
|
20
|
+
OrderBillingAddressCloneId.flags = Object.assign(Object.assign({}, base_1.default.flags), { value: base_1.Flags.string({
|
|
21
21
|
char: 'v',
|
|
22
22
|
description: 'the trigger attribute value',
|
|
23
23
|
multiple: false,
|
|
@@ -2,12 +2,12 @@ import Command from '../../base';
|
|
|
2
2
|
export default class OrderBillingAddressSameAsShipping 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 orders_1 = require("../../triggers/orders");
|
|
|
7
7
|
const TRIGGER = 'billing_address_same_as_shipping';
|
|
8
8
|
class OrderBillingAddressSameAsShipping extends base_1.default {
|
|
9
9
|
async run() {
|
|
10
|
-
const { args, flags } = this.parse(OrderBillingAddressSameAsShipping);
|
|
10
|
+
const { args, flags } = await this.parse(OrderBillingAddressSameAsShipping);
|
|
11
11
|
const res = await (0, exec_1.default)('orders', 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 OrderCancel 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 orders_1 = require("../../triggers/orders");
|
|
|
7
7
|
const TRIGGER = 'cancel';
|
|
8
8
|
class OrderCancel extends base_1.default {
|
|
9
9
|
async run() {
|
|
10
|
-
const { args, flags } = this.parse(OrderCancel);
|
|
10
|
+
const { args, flags } = await this.parse(OrderCancel);
|
|
11
11
|
const res = await (0, exec_1.default)('orders', args.id, TRIGGER, flags);
|
|
12
12
|
if (flags.print)
|
|
13
13
|
this.printOutput(res, flags);
|