@commercelayer/cli-plugin-triggers 4.10.0 → 4.12.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 +1287 -95
- package/lib/commands/address/add_tags.d.ts +9 -0
- package/lib/commands/address/add_tags.js +22 -0
- package/lib/commands/address/index.d.ts +9 -0
- package/lib/commands/address/index.js +40 -0
- package/lib/commands/address/remove_tags.d.ts +9 -0
- package/lib/commands/address/remove_tags.js +22 -0
- package/lib/commands/bundle/add_tags.d.ts +9 -0
- package/lib/commands/bundle/add_tags.js +22 -0
- package/lib/commands/bundle/remove_tags.d.ts +9 -0
- package/lib/commands/bundle/remove_tags.js +22 -0
- package/lib/commands/buy_x_pay_y_promotion/add_tags.d.ts +9 -0
- package/lib/commands/buy_x_pay_y_promotion/add_tags.js +22 -0
- package/lib/commands/buy_x_pay_y_promotion/remove_tags.d.ts +9 -0
- package/lib/commands/buy_x_pay_y_promotion/remove_tags.js +22 -0
- package/lib/commands/coupon/add_tags.d.ts +9 -0
- package/lib/commands/coupon/add_tags.js +22 -0
- package/lib/commands/coupon/index.d.ts +9 -0
- package/lib/commands/coupon/index.js +40 -0
- package/lib/commands/coupon/remove_tags.d.ts +9 -0
- package/lib/commands/coupon/remove_tags.js +22 -0
- package/lib/commands/customer/add_tags.d.ts +9 -0
- package/lib/commands/customer/add_tags.js +22 -0
- package/lib/commands/customer/index.d.ts +9 -0
- package/lib/commands/customer/index.js +40 -0
- package/lib/commands/customer/remove_tags.d.ts +9 -0
- package/lib/commands/customer/remove_tags.js +22 -0
- package/lib/commands/easypost_pickup/index.d.ts +9 -0
- package/lib/commands/easypost_pickup/index.js +40 -0
- package/lib/commands/easypost_pickup/purchase.d.ts +9 -0
- package/lib/commands/easypost_pickup/purchase.js +22 -0
- package/lib/commands/external_promotion/add_tags.d.ts +9 -0
- package/lib/commands/external_promotion/add_tags.js +22 -0
- package/lib/commands/external_promotion/remove_tags.d.ts +9 -0
- package/lib/commands/external_promotion/remove_tags.js +22 -0
- package/lib/commands/fixed_amount_promotion/add_tags.d.ts +9 -0
- package/lib/commands/fixed_amount_promotion/add_tags.js +22 -0
- package/lib/commands/fixed_amount_promotion/remove_tags.d.ts +9 -0
- package/lib/commands/fixed_amount_promotion/remove_tags.js +22 -0
- package/lib/commands/fixed_price_promotion/add_tags.d.ts +9 -0
- package/lib/commands/fixed_price_promotion/add_tags.js +22 -0
- package/lib/commands/fixed_price_promotion/remove_tags.d.ts +9 -0
- package/lib/commands/fixed_price_promotion/remove_tags.js +22 -0
- package/lib/commands/flex_promotion/add_tags.d.ts +9 -0
- package/lib/commands/flex_promotion/add_tags.js +22 -0
- package/lib/commands/flex_promotion/remove_tags.d.ts +9 -0
- package/lib/commands/flex_promotion/remove_tags.js +22 -0
- package/lib/commands/free_gift_promotion/add_tags.d.ts +9 -0
- package/lib/commands/free_gift_promotion/add_tags.js +22 -0
- package/lib/commands/free_gift_promotion/remove_tags.d.ts +9 -0
- package/lib/commands/free_gift_promotion/remove_tags.js +22 -0
- package/lib/commands/free_shipping_promotion/add_tags.d.ts +9 -0
- package/lib/commands/free_shipping_promotion/add_tags.js +22 -0
- package/lib/commands/free_shipping_promotion/remove_tags.d.ts +9 -0
- package/lib/commands/free_shipping_promotion/remove_tags.js +22 -0
- package/lib/commands/gift_card/add_tags.d.ts +9 -0
- package/lib/commands/gift_card/add_tags.js +22 -0
- package/lib/commands/gift_card/remove_tags.d.ts +9 -0
- package/lib/commands/gift_card/remove_tags.js +22 -0
- package/lib/commands/line_item/add_tags.d.ts +9 -0
- package/lib/commands/line_item/add_tags.js +22 -0
- package/lib/commands/line_item/remove_tags.d.ts +9 -0
- package/lib/commands/line_item/remove_tags.js +22 -0
- package/lib/commands/line_item_option/add_tags.d.ts +9 -0
- package/lib/commands/line_item_option/add_tags.js +22 -0
- package/lib/commands/line_item_option/index.d.ts +9 -0
- package/lib/commands/line_item_option/index.js +40 -0
- package/lib/commands/line_item_option/remove_tags.d.ts +9 -0
- package/lib/commands/line_item_option/remove_tags.js +22 -0
- package/lib/commands/order/add_tags.d.ts +9 -0
- package/lib/commands/order/add_tags.js +22 -0
- package/lib/commands/order/remove_tags.d.ts +9 -0
- package/lib/commands/order/remove_tags.js +22 -0
- package/lib/commands/order_subscription/add_tags.d.ts +9 -0
- package/lib/commands/order_subscription/add_tags.js +22 -0
- package/lib/commands/order_subscription/remove_tags.d.ts +9 -0
- package/lib/commands/order_subscription/remove_tags.js +22 -0
- package/lib/commands/percentage_discount_promotion/add_tags.d.ts +9 -0
- package/lib/commands/percentage_discount_promotion/add_tags.js +22 -0
- package/lib/commands/percentage_discount_promotion/remove_tags.d.ts +9 -0
- package/lib/commands/percentage_discount_promotion/remove_tags.js +22 -0
- package/lib/commands/return/add_tags.d.ts +9 -0
- package/lib/commands/return/add_tags.js +22 -0
- package/lib/commands/return/remove_tags.d.ts +9 -0
- package/lib/commands/return/remove_tags.js +22 -0
- package/lib/commands/shipment/add_tags.d.ts +9 -0
- package/lib/commands/shipment/add_tags.js +22 -0
- package/lib/commands/shipment/remove_tags.d.ts +9 -0
- package/lib/commands/shipment/remove_tags.js +22 -0
- package/lib/commands/sku/add_tags.d.ts +9 -0
- package/lib/commands/sku/add_tags.js +22 -0
- package/lib/commands/sku/index.d.ts +9 -0
- package/lib/commands/sku/index.js +40 -0
- package/lib/commands/sku/remove_tags.d.ts +9 -0
- package/lib/commands/sku/remove_tags.js +22 -0
- package/lib/commands/sku_option/add_tags.d.ts +9 -0
- package/lib/commands/sku_option/add_tags.js +22 -0
- package/lib/commands/sku_option/index.d.ts +9 -0
- package/lib/commands/sku_option/index.js +40 -0
- package/lib/commands/sku_option/remove_tags.d.ts +9 -0
- package/lib/commands/sku_option/remove_tags.js +22 -0
- package/lib/triggers/addresses.d.ts +3 -0
- package/lib/triggers/addresses.js +15 -0
- package/lib/triggers/bundles.d.ts +1 -1
- package/lib/triggers/bundles.js +10 -0
- package/lib/triggers/buy_x_pay_y_promotions.d.ts +1 -1
- package/lib/triggers/buy_x_pay_y_promotions.js +10 -0
- package/lib/triggers/coupons.d.ts +3 -0
- package/lib/triggers/coupons.js +15 -0
- package/lib/triggers/customers.d.ts +3 -0
- package/lib/triggers/customers.js +15 -0
- package/lib/triggers/easypost_pickups.d.ts +3 -0
- package/lib/triggers/easypost_pickups.js +10 -0
- package/lib/triggers/external_promotions.d.ts +1 -1
- package/lib/triggers/external_promotions.js +10 -0
- package/lib/triggers/fixed_amount_promotions.d.ts +1 -1
- package/lib/triggers/fixed_amount_promotions.js +10 -0
- package/lib/triggers/fixed_price_promotions.d.ts +1 -1
- package/lib/triggers/fixed_price_promotions.js +10 -0
- package/lib/triggers/flex_promotions.d.ts +1 -1
- package/lib/triggers/flex_promotions.js +10 -0
- package/lib/triggers/free_gift_promotions.d.ts +1 -1
- package/lib/triggers/free_gift_promotions.js +10 -0
- package/lib/triggers/free_shipping_promotions.d.ts +1 -1
- package/lib/triggers/free_shipping_promotions.js +10 -0
- package/lib/triggers/gift_cards.d.ts +1 -1
- package/lib/triggers/gift_cards.js +10 -0
- package/lib/triggers/line_item_options.d.ts +3 -0
- package/lib/triggers/line_item_options.js +15 -0
- package/lib/triggers/line_items.d.ts +1 -1
- package/lib/triggers/line_items.js +10 -0
- package/lib/triggers/order_subscriptions.d.ts +1 -1
- package/lib/triggers/order_subscriptions.js +10 -0
- package/lib/triggers/orders.d.ts +1 -1
- package/lib/triggers/orders.js +11 -1
- package/lib/triggers/percentage_discount_promotions.d.ts +1 -1
- package/lib/triggers/percentage_discount_promotions.js +10 -0
- package/lib/triggers/returns.d.ts +1 -1
- package/lib/triggers/returns.js +10 -0
- package/lib/triggers/shipments.d.ts +1 -1
- package/lib/triggers/shipments.js +10 -0
- package/lib/triggers/sku_options.d.ts +3 -0
- package/lib/triggers/sku_options.js +15 -0
- package/lib/triggers/skus.d.ts +3 -0
- package/lib/triggers/skus.js +15 -0
- package/oclif.manifest.json +5193 -793
- package/package.json +6 -6
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.triggers = void 0;
|
|
4
|
+
exports.triggers = {
|
|
5
|
+
purchase: {
|
|
6
|
+
action: 'purchase',
|
|
7
|
+
trigger: '_purchase',
|
|
8
|
+
description: 'Send this attribute if you want to purchase this pick up with the selected rate.',
|
|
9
|
+
},
|
|
10
|
+
};
|
|
@@ -12,6 +12,16 @@ exports.triggers = {
|
|
|
12
12
|
trigger: '_enable',
|
|
13
13
|
description: 'Send this attribute if you want to mark this resource as enabled.',
|
|
14
14
|
},
|
|
15
|
+
add_tags: {
|
|
16
|
+
action: 'add_tags',
|
|
17
|
+
trigger: '_add_tags',
|
|
18
|
+
description: 'Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.',
|
|
19
|
+
},
|
|
20
|
+
remove_tags: {
|
|
21
|
+
action: 'remove_tags',
|
|
22
|
+
trigger: '_remove_tags',
|
|
23
|
+
description: 'Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.',
|
|
24
|
+
},
|
|
15
25
|
reset_circuit: {
|
|
16
26
|
action: 'reset_circuit',
|
|
17
27
|
trigger: '_reset_circuit',
|
|
@@ -12,4 +12,14 @@ exports.triggers = {
|
|
|
12
12
|
trigger: '_enable',
|
|
13
13
|
description: 'Send this attribute if you want to mark this resource as enabled.',
|
|
14
14
|
},
|
|
15
|
+
add_tags: {
|
|
16
|
+
action: 'add_tags',
|
|
17
|
+
trigger: '_add_tags',
|
|
18
|
+
description: 'Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.',
|
|
19
|
+
},
|
|
20
|
+
remove_tags: {
|
|
21
|
+
action: 'remove_tags',
|
|
22
|
+
trigger: '_remove_tags',
|
|
23
|
+
description: 'Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.',
|
|
24
|
+
},
|
|
15
25
|
};
|
|
@@ -12,4 +12,14 @@ exports.triggers = {
|
|
|
12
12
|
trigger: '_enable',
|
|
13
13
|
description: 'Send this attribute if you want to mark this resource as enabled.',
|
|
14
14
|
},
|
|
15
|
+
add_tags: {
|
|
16
|
+
action: 'add_tags',
|
|
17
|
+
trigger: '_add_tags',
|
|
18
|
+
description: 'Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.',
|
|
19
|
+
},
|
|
20
|
+
remove_tags: {
|
|
21
|
+
action: 'remove_tags',
|
|
22
|
+
trigger: '_remove_tags',
|
|
23
|
+
description: 'Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.',
|
|
24
|
+
},
|
|
15
25
|
};
|
|
@@ -12,4 +12,14 @@ exports.triggers = {
|
|
|
12
12
|
trigger: '_enable',
|
|
13
13
|
description: 'Send this attribute if you want to mark this resource as enabled.',
|
|
14
14
|
},
|
|
15
|
+
add_tags: {
|
|
16
|
+
action: 'add_tags',
|
|
17
|
+
trigger: '_add_tags',
|
|
18
|
+
description: 'Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.',
|
|
19
|
+
},
|
|
20
|
+
remove_tags: {
|
|
21
|
+
action: 'remove_tags',
|
|
22
|
+
trigger: '_remove_tags',
|
|
23
|
+
description: 'Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.',
|
|
24
|
+
},
|
|
15
25
|
};
|
|
@@ -12,4 +12,14 @@ exports.triggers = {
|
|
|
12
12
|
trigger: '_enable',
|
|
13
13
|
description: 'Send this attribute if you want to mark this resource as enabled.',
|
|
14
14
|
},
|
|
15
|
+
add_tags: {
|
|
16
|
+
action: 'add_tags',
|
|
17
|
+
trigger: '_add_tags',
|
|
18
|
+
description: 'Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.',
|
|
19
|
+
},
|
|
20
|
+
remove_tags: {
|
|
21
|
+
action: 'remove_tags',
|
|
22
|
+
trigger: '_remove_tags',
|
|
23
|
+
description: 'Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.',
|
|
24
|
+
},
|
|
15
25
|
};
|
|
@@ -12,4 +12,14 @@ exports.triggers = {
|
|
|
12
12
|
trigger: '_enable',
|
|
13
13
|
description: 'Send this attribute if you want to mark this resource as enabled.',
|
|
14
14
|
},
|
|
15
|
+
add_tags: {
|
|
16
|
+
action: 'add_tags',
|
|
17
|
+
trigger: '_add_tags',
|
|
18
|
+
description: 'Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.',
|
|
19
|
+
},
|
|
20
|
+
remove_tags: {
|
|
21
|
+
action: 'remove_tags',
|
|
22
|
+
trigger: '_remove_tags',
|
|
23
|
+
description: 'Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.',
|
|
24
|
+
},
|
|
15
25
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { Trigger } from '../common';
|
|
2
2
|
export declare const triggers: Record<string, Trigger>;
|
|
3
|
-
export type ActionType = 'purchase' | 'activate' | 'deactivate' | 'balance_change_cents';
|
|
3
|
+
export type ActionType = 'purchase' | 'activate' | 'deactivate' | 'balance_change_cents' | 'add_tags' | 'remove_tags';
|
|
@@ -22,4 +22,14 @@ exports.triggers = {
|
|
|
22
22
|
trigger: '_balance_change_cents',
|
|
23
23
|
description: 'The balance change, in cents. Send a negative value to reduces the card balance by the specified amount. Send a positive value to recharge the gift card (if rechargeable).',
|
|
24
24
|
},
|
|
25
|
+
add_tags: {
|
|
26
|
+
action: 'add_tags',
|
|
27
|
+
trigger: '_add_tags',
|
|
28
|
+
description: 'Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.',
|
|
29
|
+
},
|
|
30
|
+
remove_tags: {
|
|
31
|
+
action: 'remove_tags',
|
|
32
|
+
trigger: '_remove_tags',
|
|
33
|
+
description: 'Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.',
|
|
34
|
+
},
|
|
25
35
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.triggers = void 0;
|
|
4
|
+
exports.triggers = {
|
|
5
|
+
add_tags: {
|
|
6
|
+
action: 'add_tags',
|
|
7
|
+
trigger: '_add_tags',
|
|
8
|
+
description: 'Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.',
|
|
9
|
+
},
|
|
10
|
+
remove_tags: {
|
|
11
|
+
action: 'remove_tags',
|
|
12
|
+
trigger: '_remove_tags',
|
|
13
|
+
description: 'Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.',
|
|
14
|
+
},
|
|
15
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { Trigger } from '../common';
|
|
2
2
|
export declare const triggers: Record<string, Trigger>;
|
|
3
|
-
export type ActionType = 'external_price' | 'reserve_stock' | 'reset_circuit';
|
|
3
|
+
export type ActionType = 'external_price' | 'reserve_stock' | 'reset_circuit' | 'add_tags' | 'remove_tags';
|
|
@@ -17,4 +17,14 @@ exports.triggers = {
|
|
|
17
17
|
trigger: '_reset_circuit',
|
|
18
18
|
description: 'Send this attribute if you want to reset the circuit breaker associated to this resource to \'closed\' state and zero failures count. Cannot be passed by sales channels.',
|
|
19
19
|
},
|
|
20
|
+
add_tags: {
|
|
21
|
+
action: 'add_tags',
|
|
22
|
+
trigger: '_add_tags',
|
|
23
|
+
description: 'Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.',
|
|
24
|
+
},
|
|
25
|
+
remove_tags: {
|
|
26
|
+
action: 'remove_tags',
|
|
27
|
+
trigger: '_remove_tags',
|
|
28
|
+
description: 'Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.',
|
|
29
|
+
},
|
|
20
30
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { Trigger } from '../common';
|
|
2
2
|
export declare const triggers: Record<string, Trigger>;
|
|
3
|
-
export type ActionType = 'activate' | 'deactivate' | 'cancel' | 'convert';
|
|
3
|
+
export type ActionType = 'activate' | 'deactivate' | 'cancel' | 'convert' | 'add_tags' | 'remove_tags';
|
|
@@ -22,4 +22,14 @@ exports.triggers = {
|
|
|
22
22
|
trigger: '_convert',
|
|
23
23
|
description: 'Send this attribute if you want to convert a manual subscription to an automatic one. A subscription model is required before conversion.',
|
|
24
24
|
},
|
|
25
|
+
add_tags: {
|
|
26
|
+
action: 'add_tags',
|
|
27
|
+
trigger: '_add_tags',
|
|
28
|
+
description: 'Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.',
|
|
29
|
+
},
|
|
30
|
+
remove_tags: {
|
|
31
|
+
action: 'remove_tags',
|
|
32
|
+
trigger: '_remove_tags',
|
|
33
|
+
description: 'Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.',
|
|
34
|
+
},
|
|
25
35
|
};
|
package/lib/triggers/orders.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { Trigger } from '../common';
|
|
2
2
|
export declare const triggers: Record<string, Trigger>;
|
|
3
|
-
export type ActionType = 'archive' | 'unarchive' | 'pending' | 'place' | 'cancel' | 'approve' | 'approve_and_capture' | 'authorize' | 'authorization_amount_cents' | 'capture' | 'refund' | 'fulfill' | 'update_taxes' | 'nullify_payment_source' | 'fix_payment_source' | 'billing_address_clone_id' | 'shipping_address_clone_id' | 'customer_payment_source_id' | 'shipping_address_same_as_billing' | 'billing_address_same_as_shipping' | 'commit_invoice' | 'refund_invoice' | 'save_payment_source_to_customer_wallet' | 'save_shipping_address_to_customer_address_book' | 'save_billing_address_to_customer_address_book' | 'refresh' | 'validate' | 'create_subscriptions' | 'start_editing' | 'stop_editing' | 'reset_circuit';
|
|
3
|
+
export type ActionType = 'archive' | 'unarchive' | 'pending' | 'place' | 'cancel' | 'approve' | 'approve_and_capture' | 'authorize' | 'authorization_amount_cents' | 'capture' | 'refund' | 'fulfill' | 'update_taxes' | 'nullify_payment_source' | 'fix_payment_source' | 'billing_address_clone_id' | 'shipping_address_clone_id' | 'customer_payment_source_id' | 'shipping_address_same_as_billing' | 'billing_address_same_as_shipping' | 'commit_invoice' | 'refund_invoice' | 'save_payment_source_to_customer_wallet' | 'save_shipping_address_to_customer_address_book' | 'save_billing_address_to_customer_address_book' | 'refresh' | 'validate' | 'create_subscriptions' | 'start_editing' | 'stop_editing' | 'reset_circuit' | 'add_tags' | 'remove_tags';
|
package/lib/triggers/orders.js
CHANGED
|
@@ -60,7 +60,7 @@ exports.triggers = {
|
|
|
60
60
|
fulfill: {
|
|
61
61
|
action: 'fulfill',
|
|
62
62
|
trigger: '_fulfill',
|
|
63
|
-
description: 'Send this attribute if you want to mark as fulfilled the order (shipments must be cancelled, shipped or delivered). Cannot be passed by sales channels.',
|
|
63
|
+
description: 'Send this attribute if you want to mark as fulfilled the order (shipments must be cancelled, shipped or delivered, alternatively order must be approved). Cannot be passed by sales channels.',
|
|
64
64
|
},
|
|
65
65
|
update_taxes: {
|
|
66
66
|
action: 'update_taxes',
|
|
@@ -157,4 +157,14 @@ exports.triggers = {
|
|
|
157
157
|
trigger: '_reset_circuit',
|
|
158
158
|
description: 'Send this attribute if you want to reset the circuit breaker associated to this resource to \'closed\' state and zero failures count. Cannot be passed by sales channels.',
|
|
159
159
|
},
|
|
160
|
+
add_tags: {
|
|
161
|
+
action: 'add_tags',
|
|
162
|
+
trigger: '_add_tags',
|
|
163
|
+
description: 'Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.',
|
|
164
|
+
},
|
|
165
|
+
remove_tags: {
|
|
166
|
+
action: 'remove_tags',
|
|
167
|
+
trigger: '_remove_tags',
|
|
168
|
+
description: 'Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.',
|
|
169
|
+
},
|
|
160
170
|
};
|
|
@@ -12,4 +12,14 @@ exports.triggers = {
|
|
|
12
12
|
trigger: '_enable',
|
|
13
13
|
description: 'Send this attribute if you want to mark this resource as enabled.',
|
|
14
14
|
},
|
|
15
|
+
add_tags: {
|
|
16
|
+
action: 'add_tags',
|
|
17
|
+
trigger: '_add_tags',
|
|
18
|
+
description: 'Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.',
|
|
19
|
+
},
|
|
20
|
+
remove_tags: {
|
|
21
|
+
action: 'remove_tags',
|
|
22
|
+
trigger: '_remove_tags',
|
|
23
|
+
description: 'Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.',
|
|
24
|
+
},
|
|
15
25
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { Trigger } from '../common';
|
|
2
2
|
export declare const triggers: Record<string, Trigger>;
|
|
3
|
-
export type ActionType = 'request' | 'approve' | 'cancel' | 'ship' | 'reject' | 'receive' | 'restock' | 'archive' | 'unarchive' | 'refund' | 'refund_amount_cents';
|
|
3
|
+
export type ActionType = 'request' | 'approve' | 'cancel' | 'ship' | 'reject' | 'receive' | 'restock' | 'archive' | 'unarchive' | 'refund' | 'refund_amount_cents' | 'add_tags' | 'remove_tags';
|
package/lib/triggers/returns.js
CHANGED
|
@@ -57,4 +57,14 @@ exports.triggers = {
|
|
|
57
57
|
trigger: '_refund_amount_cents',
|
|
58
58
|
description: 'Send this attribute as a value in cents to specify the amount to be refunded.',
|
|
59
59
|
},
|
|
60
|
+
add_tags: {
|
|
61
|
+
action: 'add_tags',
|
|
62
|
+
trigger: '_add_tags',
|
|
63
|
+
description: 'Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.',
|
|
64
|
+
},
|
|
65
|
+
remove_tags: {
|
|
66
|
+
action: 'remove_tags',
|
|
67
|
+
trigger: '_remove_tags',
|
|
68
|
+
description: 'Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.',
|
|
69
|
+
},
|
|
60
70
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { Trigger } from '../common';
|
|
2
2
|
export declare const triggers: Record<string, Trigger>;
|
|
3
|
-
export type ActionType = 'upcoming' | 'cancel' | 'on_hold' | 'picking' | 'packing' | 'ready_to_ship' | 'ship' | 'deliver' | 'reserve_stock' | 'release_stock' | 'decrement_stock' | 'get_rates' | 'purchase';
|
|
3
|
+
export type ActionType = 'upcoming' | 'cancel' | 'on_hold' | 'picking' | 'packing' | 'ready_to_ship' | 'ship' | 'deliver' | 'reserve_stock' | 'release_stock' | 'decrement_stock' | 'get_rates' | 'purchase' | 'add_tags' | 'remove_tags';
|
|
@@ -67,4 +67,14 @@ exports.triggers = {
|
|
|
67
67
|
trigger: '_purchase',
|
|
68
68
|
description: 'Send this attribute if you want to purchase this shipment with the selected rate.',
|
|
69
69
|
},
|
|
70
|
+
add_tags: {
|
|
71
|
+
action: 'add_tags',
|
|
72
|
+
trigger: '_add_tags',
|
|
73
|
+
description: 'Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.',
|
|
74
|
+
},
|
|
75
|
+
remove_tags: {
|
|
76
|
+
action: 'remove_tags',
|
|
77
|
+
trigger: '_remove_tags',
|
|
78
|
+
description: 'Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.',
|
|
79
|
+
},
|
|
70
80
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.triggers = void 0;
|
|
4
|
+
exports.triggers = {
|
|
5
|
+
add_tags: {
|
|
6
|
+
action: 'add_tags',
|
|
7
|
+
trigger: '_add_tags',
|
|
8
|
+
description: 'Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.',
|
|
9
|
+
},
|
|
10
|
+
remove_tags: {
|
|
11
|
+
action: 'remove_tags',
|
|
12
|
+
trigger: '_remove_tags',
|
|
13
|
+
description: 'Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.',
|
|
14
|
+
},
|
|
15
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.triggers = void 0;
|
|
4
|
+
exports.triggers = {
|
|
5
|
+
add_tags: {
|
|
6
|
+
action: 'add_tags',
|
|
7
|
+
trigger: '_add_tags',
|
|
8
|
+
description: 'Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.',
|
|
9
|
+
},
|
|
10
|
+
remove_tags: {
|
|
11
|
+
action: 'remove_tags',
|
|
12
|
+
trigger: '_remove_tags',
|
|
13
|
+
description: 'Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.',
|
|
14
|
+
},
|
|
15
|
+
};
|