@commercelayer/cli-plugin-triggers 4.12.1 → 4.14.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 +69 -0
- package/lib/commands/adyen_payment/balance.d.ts +9 -0
- package/lib/commands/adyen_payment/balance.js +22 -0
- package/lib/commands/customer/cancel_anonymization.d.ts +9 -0
- package/lib/commands/customer/cancel_anonymization.js +22 -0
- package/lib/commands/customer/request_anonymization.d.ts +9 -0
- package/lib/commands/customer/request_anonymization.js +22 -0
- package/lib/triggers/adyen_payments.d.ts +1 -1
- package/lib/triggers/adyen_payments.js +5 -0
- package/lib/triggers/customers.d.ts +1 -1
- package/lib/triggers/customers.js +10 -0
- package/oclif.manifest.json +265 -1
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -35,6 +35,7 @@ $ commercelayer plugins:install triggers
|
|
|
35
35
|
* [`commercelayer address:remove_tags ID`](#commercelayer-addressremove_tags-id)
|
|
36
36
|
* [`commercelayer adyen_payment ID`](#commercelayer-adyen_payment-id)
|
|
37
37
|
* [`commercelayer adyen_payment:authorize ID`](#commercelayer-adyen_paymentauthorize-id)
|
|
38
|
+
* [`commercelayer adyen_payment:balance ID`](#commercelayer-adyen_paymentbalance-id)
|
|
38
39
|
* [`commercelayer adyen_payment:details ID`](#commercelayer-adyen_paymentdetails-id)
|
|
39
40
|
* [`commercelayer authorization ID`](#commercelayer-authorization-id)
|
|
40
41
|
* [`commercelayer authorization:cancel ID`](#commercelayer-authorizationcancel-id)
|
|
@@ -69,7 +70,9 @@ $ commercelayer plugins:install triggers
|
|
|
69
70
|
* [`commercelayer coupon:remove_tags ID`](#commercelayer-couponremove_tags-id)
|
|
70
71
|
* [`commercelayer customer ID`](#commercelayer-customer-id)
|
|
71
72
|
* [`commercelayer customer:add_tags ID`](#commercelayer-customeradd_tags-id)
|
|
73
|
+
* [`commercelayer customer:cancel_anonymization ID`](#commercelayer-customercancel_anonymization-id)
|
|
72
74
|
* [`commercelayer customer:remove_tags ID`](#commercelayer-customerremove_tags-id)
|
|
75
|
+
* [`commercelayer customer:request_anonymization ID`](#commercelayer-customerrequest_anonymization-id)
|
|
73
76
|
* [`commercelayer customer_password_reset ID`](#commercelayer-customer_password_reset-id)
|
|
74
77
|
* [`commercelayer customer_password_reset:reset_password_token ID`](#commercelayer-customer_password_resetreset_password_token-id)
|
|
75
78
|
* [`commercelayer easypost_pickup ID`](#commercelayer-easypost_pickup-id)
|
|
@@ -379,6 +382,28 @@ DESCRIPTION
|
|
|
379
382
|
|
|
380
383
|
_See code: [src/commands/adyen_payment/authorize.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/adyen_payment/authorize.ts)_
|
|
381
384
|
|
|
385
|
+
### `commercelayer adyen_payment:balance ID`
|
|
386
|
+
|
|
387
|
+
Send this attribute if you want retrieve the balance remaining on a shopper's gift card.
|
|
388
|
+
|
|
389
|
+
```sh-session
|
|
390
|
+
USAGE
|
|
391
|
+
$ commercelayer adyen_payment:balance ID [-u [-j -p]]
|
|
392
|
+
|
|
393
|
+
ARGUMENTS
|
|
394
|
+
ID the unique id of the resource
|
|
395
|
+
|
|
396
|
+
FLAGS
|
|
397
|
+
-j, --json print result in JSON format
|
|
398
|
+
-p, --print print out the modified resource
|
|
399
|
+
-u, --unformatted print JSON output without indentation
|
|
400
|
+
|
|
401
|
+
DESCRIPTION
|
|
402
|
+
Send this attribute if you want retrieve the balance remaining on a shopper's gift card.
|
|
403
|
+
```
|
|
404
|
+
|
|
405
|
+
_See code: [src/commands/adyen_payment/balance.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/adyen_payment/balance.ts)_
|
|
406
|
+
|
|
382
407
|
### `commercelayer adyen_payment:details ID`
|
|
383
408
|
|
|
384
409
|
Send this attribute if you want to send additional details the payment request.
|
|
@@ -1138,6 +1163,28 @@ DESCRIPTION
|
|
|
1138
1163
|
|
|
1139
1164
|
_See code: [src/commands/customer/add_tags.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/customer/add_tags.ts)_
|
|
1140
1165
|
|
|
1166
|
+
### `commercelayer customer:cancel_anonymization ID`
|
|
1167
|
+
|
|
1168
|
+
Send this attribute if you want to trigger a cancellation of anonymization. Cannot be passed by sales channels.
|
|
1169
|
+
|
|
1170
|
+
```sh-session
|
|
1171
|
+
USAGE
|
|
1172
|
+
$ commercelayer customer:cancel_anonymization ID [-u [-j -p]]
|
|
1173
|
+
|
|
1174
|
+
ARGUMENTS
|
|
1175
|
+
ID the unique id of the resource
|
|
1176
|
+
|
|
1177
|
+
FLAGS
|
|
1178
|
+
-j, --json print result in JSON format
|
|
1179
|
+
-p, --print print out the modified resource
|
|
1180
|
+
-u, --unformatted print JSON output without indentation
|
|
1181
|
+
|
|
1182
|
+
DESCRIPTION
|
|
1183
|
+
Send this attribute if you want to trigger a cancellation of anonymization. Cannot be passed by sales channels.
|
|
1184
|
+
```
|
|
1185
|
+
|
|
1186
|
+
_See code: [src/commands/customer/cancel_anonymization.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/customer/cancel_anonymization.ts)_
|
|
1187
|
+
|
|
1141
1188
|
### `commercelayer customer:remove_tags ID`
|
|
1142
1189
|
|
|
1143
1190
|
Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.
|
|
@@ -1161,6 +1208,28 @@ DESCRIPTION
|
|
|
1161
1208
|
|
|
1162
1209
|
_See code: [src/commands/customer/remove_tags.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/customer/remove_tags.ts)_
|
|
1163
1210
|
|
|
1211
|
+
### `commercelayer customer:request_anonymization ID`
|
|
1212
|
+
|
|
1213
|
+
Send this attribute if you want to trigger anonymization. Cannot be passed by sales channels.
|
|
1214
|
+
|
|
1215
|
+
```sh-session
|
|
1216
|
+
USAGE
|
|
1217
|
+
$ commercelayer customer:request_anonymization ID [-u [-j -p]]
|
|
1218
|
+
|
|
1219
|
+
ARGUMENTS
|
|
1220
|
+
ID the unique id of the resource
|
|
1221
|
+
|
|
1222
|
+
FLAGS
|
|
1223
|
+
-j, --json print result in JSON format
|
|
1224
|
+
-p, --print print out the modified resource
|
|
1225
|
+
-u, --unformatted print JSON output without indentation
|
|
1226
|
+
|
|
1227
|
+
DESCRIPTION
|
|
1228
|
+
Send this attribute if you want to trigger anonymization. Cannot be passed by sales channels.
|
|
1229
|
+
```
|
|
1230
|
+
|
|
1231
|
+
_See code: [src/commands/customer/request_anonymization.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/customer/request_anonymization.ts)_
|
|
1232
|
+
|
|
1164
1233
|
### `commercelayer customer_password_reset ID`
|
|
1165
1234
|
|
|
1166
1235
|
Execute an action on a resource of type customer_password_resets.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import Command from '../../base';
|
|
2
|
+
export default class AdyenPaymentBalance extends Command {
|
|
3
|
+
static description: string;
|
|
4
|
+
static flags: {};
|
|
5
|
+
static args: {
|
|
6
|
+
id: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
|
|
7
|
+
};
|
|
8
|
+
run(): Promise<any>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const base_1 = tslib_1.__importDefault(require("../../base"));
|
|
5
|
+
const adyen_payments_1 = require("../../triggers/adyen_payments");
|
|
6
|
+
const TRIGGER = 'balance';
|
|
7
|
+
class AdyenPaymentBalance extends base_1.default {
|
|
8
|
+
static description = adyen_payments_1.triggers[TRIGGER].description;
|
|
9
|
+
static flags = {};
|
|
10
|
+
static args = {
|
|
11
|
+
...base_1.default.args,
|
|
12
|
+
};
|
|
13
|
+
async run() {
|
|
14
|
+
const { args, flags } = await this.parse(AdyenPaymentBalance);
|
|
15
|
+
const res = await this.executeAction('adyen_payments', args.id, TRIGGER, flags);
|
|
16
|
+
if (flags.print)
|
|
17
|
+
this.printOutput(res, flags);
|
|
18
|
+
this.successMessage('adyen_payment', TRIGGER, res.id);
|
|
19
|
+
return res;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.default = AdyenPaymentBalance;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import Command from '../../base';
|
|
2
|
+
export default class CustomerCancelAnonymization extends Command {
|
|
3
|
+
static description: string;
|
|
4
|
+
static flags: {};
|
|
5
|
+
static args: {
|
|
6
|
+
id: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
|
|
7
|
+
};
|
|
8
|
+
run(): Promise<any>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const base_1 = tslib_1.__importDefault(require("../../base"));
|
|
5
|
+
const customers_1 = require("../../triggers/customers");
|
|
6
|
+
const TRIGGER = 'cancel_anonymization';
|
|
7
|
+
class CustomerCancelAnonymization extends base_1.default {
|
|
8
|
+
static description = customers_1.triggers[TRIGGER].description;
|
|
9
|
+
static flags = {};
|
|
10
|
+
static args = {
|
|
11
|
+
...base_1.default.args,
|
|
12
|
+
};
|
|
13
|
+
async run() {
|
|
14
|
+
const { args, flags } = await this.parse(CustomerCancelAnonymization);
|
|
15
|
+
const res = await this.executeAction('customers', args.id, TRIGGER, flags);
|
|
16
|
+
if (flags.print)
|
|
17
|
+
this.printOutput(res, flags);
|
|
18
|
+
this.successMessage('customer', TRIGGER, res.id);
|
|
19
|
+
return res;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.default = CustomerCancelAnonymization;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import Command from '../../base';
|
|
2
|
+
export default class CustomerRequestAnonymization extends Command {
|
|
3
|
+
static description: string;
|
|
4
|
+
static flags: {};
|
|
5
|
+
static args: {
|
|
6
|
+
id: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
|
|
7
|
+
};
|
|
8
|
+
run(): Promise<any>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const base_1 = tslib_1.__importDefault(require("../../base"));
|
|
5
|
+
const customers_1 = require("../../triggers/customers");
|
|
6
|
+
const TRIGGER = 'request_anonymization';
|
|
7
|
+
class CustomerRequestAnonymization extends base_1.default {
|
|
8
|
+
static description = customers_1.triggers[TRIGGER].description;
|
|
9
|
+
static flags = {};
|
|
10
|
+
static args = {
|
|
11
|
+
...base_1.default.args,
|
|
12
|
+
};
|
|
13
|
+
async run() {
|
|
14
|
+
const { args, flags } = await this.parse(CustomerRequestAnonymization);
|
|
15
|
+
const res = await this.executeAction('customers', args.id, TRIGGER, flags);
|
|
16
|
+
if (flags.print)
|
|
17
|
+
this.printOutput(res, flags);
|
|
18
|
+
this.successMessage('customer', TRIGGER, res.id);
|
|
19
|
+
return res;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.default = CustomerRequestAnonymization;
|
|
@@ -12,4 +12,9 @@ exports.triggers = {
|
|
|
12
12
|
trigger: '_details',
|
|
13
13
|
description: 'Send this attribute if you want to send additional details the payment request.',
|
|
14
14
|
},
|
|
15
|
+
balance: {
|
|
16
|
+
action: 'balance',
|
|
17
|
+
trigger: '_balance',
|
|
18
|
+
description: 'Send this attribute if you want retrieve the balance remaining on a shopper\'s gift card.',
|
|
19
|
+
},
|
|
15
20
|
};
|
|
@@ -12,4 +12,14 @@ exports.triggers = {
|
|
|
12
12
|
trigger: '_remove_tags',
|
|
13
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
14
|
},
|
|
15
|
+
request_anonymization: {
|
|
16
|
+
action: 'request_anonymization',
|
|
17
|
+
trigger: '_request_anonymization',
|
|
18
|
+
description: 'Send this attribute if you want to trigger anonymization. Cannot be passed by sales channels.',
|
|
19
|
+
},
|
|
20
|
+
cancel_anonymization: {
|
|
21
|
+
action: 'cancel_anonymization',
|
|
22
|
+
trigger: '_cancel_anonymization',
|
|
23
|
+
description: 'Send this attribute if you want to trigger a cancellation of anonymization. Cannot be passed by sales channels.',
|
|
24
|
+
},
|
|
15
25
|
};
|
package/oclif.manifest.json
CHANGED
|
@@ -372,6 +372,94 @@
|
|
|
372
372
|
"authorize.js"
|
|
373
373
|
]
|
|
374
374
|
},
|
|
375
|
+
"adyen_payment:balance": {
|
|
376
|
+
"aliases": [],
|
|
377
|
+
"args": {
|
|
378
|
+
"id": {
|
|
379
|
+
"description": "the unique id of the resource",
|
|
380
|
+
"name": "id",
|
|
381
|
+
"required": true
|
|
382
|
+
}
|
|
383
|
+
},
|
|
384
|
+
"description": "Send this attribute if you want retrieve the balance remaining on a shopper's gift card.",
|
|
385
|
+
"flags": {
|
|
386
|
+
"organization": {
|
|
387
|
+
"char": "o",
|
|
388
|
+
"description": "the slug of your organization",
|
|
389
|
+
"env": "CL_CLI_ORGANIZATION",
|
|
390
|
+
"hidden": true,
|
|
391
|
+
"name": "organization",
|
|
392
|
+
"required": true,
|
|
393
|
+
"hasDynamicHelp": false,
|
|
394
|
+
"multiple": false,
|
|
395
|
+
"type": "option"
|
|
396
|
+
},
|
|
397
|
+
"domain": {
|
|
398
|
+
"char": "d",
|
|
399
|
+
"dependsOn": [
|
|
400
|
+
"organization"
|
|
401
|
+
],
|
|
402
|
+
"env": "CL_CLI_DOMAIN",
|
|
403
|
+
"hidden": true,
|
|
404
|
+
"name": "domain",
|
|
405
|
+
"required": false,
|
|
406
|
+
"hasDynamicHelp": false,
|
|
407
|
+
"multiple": false,
|
|
408
|
+
"type": "option"
|
|
409
|
+
},
|
|
410
|
+
"accessToken": {
|
|
411
|
+
"env": "CL_CLI_ACCESS_TOKEN",
|
|
412
|
+
"hidden": true,
|
|
413
|
+
"name": "accessToken",
|
|
414
|
+
"required": true,
|
|
415
|
+
"hasDynamicHelp": false,
|
|
416
|
+
"multiple": false,
|
|
417
|
+
"type": "option"
|
|
418
|
+
},
|
|
419
|
+
"print": {
|
|
420
|
+
"char": "p",
|
|
421
|
+
"description": "print out the modified resource",
|
|
422
|
+
"name": "print",
|
|
423
|
+
"allowNo": false,
|
|
424
|
+
"type": "boolean"
|
|
425
|
+
},
|
|
426
|
+
"json": {
|
|
427
|
+
"char": "j",
|
|
428
|
+
"dependsOn": [
|
|
429
|
+
"print"
|
|
430
|
+
],
|
|
431
|
+
"description": "print result in JSON format",
|
|
432
|
+
"name": "json",
|
|
433
|
+
"allowNo": false,
|
|
434
|
+
"type": "boolean"
|
|
435
|
+
},
|
|
436
|
+
"unformatted": {
|
|
437
|
+
"char": "u",
|
|
438
|
+
"dependsOn": [
|
|
439
|
+
"json"
|
|
440
|
+
],
|
|
441
|
+
"description": "print JSON output without indentation",
|
|
442
|
+
"name": "unformatted",
|
|
443
|
+
"allowNo": false,
|
|
444
|
+
"type": "boolean"
|
|
445
|
+
}
|
|
446
|
+
},
|
|
447
|
+
"hasDynamicHelp": false,
|
|
448
|
+
"hiddenAliases": [],
|
|
449
|
+
"id": "adyen_payment:balance",
|
|
450
|
+
"pluginAlias": "@commercelayer/cli-plugin-triggers",
|
|
451
|
+
"pluginName": "@commercelayer/cli-plugin-triggers",
|
|
452
|
+
"pluginType": "core",
|
|
453
|
+
"strict": true,
|
|
454
|
+
"enableJsonFlag": false,
|
|
455
|
+
"isESM": false,
|
|
456
|
+
"relativePath": [
|
|
457
|
+
"lib",
|
|
458
|
+
"commands",
|
|
459
|
+
"adyen_payment",
|
|
460
|
+
"balance.js"
|
|
461
|
+
]
|
|
462
|
+
},
|
|
375
463
|
"adyen_payment:details": {
|
|
376
464
|
"aliases": [],
|
|
377
465
|
"args": {
|
|
@@ -3364,6 +3452,94 @@
|
|
|
3364
3452
|
"add_tags.js"
|
|
3365
3453
|
]
|
|
3366
3454
|
},
|
|
3455
|
+
"customer:cancel_anonymization": {
|
|
3456
|
+
"aliases": [],
|
|
3457
|
+
"args": {
|
|
3458
|
+
"id": {
|
|
3459
|
+
"description": "the unique id of the resource",
|
|
3460
|
+
"name": "id",
|
|
3461
|
+
"required": true
|
|
3462
|
+
}
|
|
3463
|
+
},
|
|
3464
|
+
"description": "Send this attribute if you want to trigger a cancellation of anonymization. Cannot be passed by sales channels.",
|
|
3465
|
+
"flags": {
|
|
3466
|
+
"organization": {
|
|
3467
|
+
"char": "o",
|
|
3468
|
+
"description": "the slug of your organization",
|
|
3469
|
+
"env": "CL_CLI_ORGANIZATION",
|
|
3470
|
+
"hidden": true,
|
|
3471
|
+
"name": "organization",
|
|
3472
|
+
"required": true,
|
|
3473
|
+
"hasDynamicHelp": false,
|
|
3474
|
+
"multiple": false,
|
|
3475
|
+
"type": "option"
|
|
3476
|
+
},
|
|
3477
|
+
"domain": {
|
|
3478
|
+
"char": "d",
|
|
3479
|
+
"dependsOn": [
|
|
3480
|
+
"organization"
|
|
3481
|
+
],
|
|
3482
|
+
"env": "CL_CLI_DOMAIN",
|
|
3483
|
+
"hidden": true,
|
|
3484
|
+
"name": "domain",
|
|
3485
|
+
"required": false,
|
|
3486
|
+
"hasDynamicHelp": false,
|
|
3487
|
+
"multiple": false,
|
|
3488
|
+
"type": "option"
|
|
3489
|
+
},
|
|
3490
|
+
"accessToken": {
|
|
3491
|
+
"env": "CL_CLI_ACCESS_TOKEN",
|
|
3492
|
+
"hidden": true,
|
|
3493
|
+
"name": "accessToken",
|
|
3494
|
+
"required": true,
|
|
3495
|
+
"hasDynamicHelp": false,
|
|
3496
|
+
"multiple": false,
|
|
3497
|
+
"type": "option"
|
|
3498
|
+
},
|
|
3499
|
+
"print": {
|
|
3500
|
+
"char": "p",
|
|
3501
|
+
"description": "print out the modified resource",
|
|
3502
|
+
"name": "print",
|
|
3503
|
+
"allowNo": false,
|
|
3504
|
+
"type": "boolean"
|
|
3505
|
+
},
|
|
3506
|
+
"json": {
|
|
3507
|
+
"char": "j",
|
|
3508
|
+
"dependsOn": [
|
|
3509
|
+
"print"
|
|
3510
|
+
],
|
|
3511
|
+
"description": "print result in JSON format",
|
|
3512
|
+
"name": "json",
|
|
3513
|
+
"allowNo": false,
|
|
3514
|
+
"type": "boolean"
|
|
3515
|
+
},
|
|
3516
|
+
"unformatted": {
|
|
3517
|
+
"char": "u",
|
|
3518
|
+
"dependsOn": [
|
|
3519
|
+
"json"
|
|
3520
|
+
],
|
|
3521
|
+
"description": "print JSON output without indentation",
|
|
3522
|
+
"name": "unformatted",
|
|
3523
|
+
"allowNo": false,
|
|
3524
|
+
"type": "boolean"
|
|
3525
|
+
}
|
|
3526
|
+
},
|
|
3527
|
+
"hasDynamicHelp": false,
|
|
3528
|
+
"hiddenAliases": [],
|
|
3529
|
+
"id": "customer:cancel_anonymization",
|
|
3530
|
+
"pluginAlias": "@commercelayer/cli-plugin-triggers",
|
|
3531
|
+
"pluginName": "@commercelayer/cli-plugin-triggers",
|
|
3532
|
+
"pluginType": "core",
|
|
3533
|
+
"strict": true,
|
|
3534
|
+
"enableJsonFlag": false,
|
|
3535
|
+
"isESM": false,
|
|
3536
|
+
"relativePath": [
|
|
3537
|
+
"lib",
|
|
3538
|
+
"commands",
|
|
3539
|
+
"customer",
|
|
3540
|
+
"cancel_anonymization.js"
|
|
3541
|
+
]
|
|
3542
|
+
},
|
|
3367
3543
|
"customer": {
|
|
3368
3544
|
"aliases": [],
|
|
3369
3545
|
"args": {
|
|
@@ -3540,6 +3716,94 @@
|
|
|
3540
3716
|
"remove_tags.js"
|
|
3541
3717
|
]
|
|
3542
3718
|
},
|
|
3719
|
+
"customer:request_anonymization": {
|
|
3720
|
+
"aliases": [],
|
|
3721
|
+
"args": {
|
|
3722
|
+
"id": {
|
|
3723
|
+
"description": "the unique id of the resource",
|
|
3724
|
+
"name": "id",
|
|
3725
|
+
"required": true
|
|
3726
|
+
}
|
|
3727
|
+
},
|
|
3728
|
+
"description": "Send this attribute if you want to trigger anonymization. Cannot be passed by sales channels.",
|
|
3729
|
+
"flags": {
|
|
3730
|
+
"organization": {
|
|
3731
|
+
"char": "o",
|
|
3732
|
+
"description": "the slug of your organization",
|
|
3733
|
+
"env": "CL_CLI_ORGANIZATION",
|
|
3734
|
+
"hidden": true,
|
|
3735
|
+
"name": "organization",
|
|
3736
|
+
"required": true,
|
|
3737
|
+
"hasDynamicHelp": false,
|
|
3738
|
+
"multiple": false,
|
|
3739
|
+
"type": "option"
|
|
3740
|
+
},
|
|
3741
|
+
"domain": {
|
|
3742
|
+
"char": "d",
|
|
3743
|
+
"dependsOn": [
|
|
3744
|
+
"organization"
|
|
3745
|
+
],
|
|
3746
|
+
"env": "CL_CLI_DOMAIN",
|
|
3747
|
+
"hidden": true,
|
|
3748
|
+
"name": "domain",
|
|
3749
|
+
"required": false,
|
|
3750
|
+
"hasDynamicHelp": false,
|
|
3751
|
+
"multiple": false,
|
|
3752
|
+
"type": "option"
|
|
3753
|
+
},
|
|
3754
|
+
"accessToken": {
|
|
3755
|
+
"env": "CL_CLI_ACCESS_TOKEN",
|
|
3756
|
+
"hidden": true,
|
|
3757
|
+
"name": "accessToken",
|
|
3758
|
+
"required": true,
|
|
3759
|
+
"hasDynamicHelp": false,
|
|
3760
|
+
"multiple": false,
|
|
3761
|
+
"type": "option"
|
|
3762
|
+
},
|
|
3763
|
+
"print": {
|
|
3764
|
+
"char": "p",
|
|
3765
|
+
"description": "print out the modified resource",
|
|
3766
|
+
"name": "print",
|
|
3767
|
+
"allowNo": false,
|
|
3768
|
+
"type": "boolean"
|
|
3769
|
+
},
|
|
3770
|
+
"json": {
|
|
3771
|
+
"char": "j",
|
|
3772
|
+
"dependsOn": [
|
|
3773
|
+
"print"
|
|
3774
|
+
],
|
|
3775
|
+
"description": "print result in JSON format",
|
|
3776
|
+
"name": "json",
|
|
3777
|
+
"allowNo": false,
|
|
3778
|
+
"type": "boolean"
|
|
3779
|
+
},
|
|
3780
|
+
"unformatted": {
|
|
3781
|
+
"char": "u",
|
|
3782
|
+
"dependsOn": [
|
|
3783
|
+
"json"
|
|
3784
|
+
],
|
|
3785
|
+
"description": "print JSON output without indentation",
|
|
3786
|
+
"name": "unformatted",
|
|
3787
|
+
"allowNo": false,
|
|
3788
|
+
"type": "boolean"
|
|
3789
|
+
}
|
|
3790
|
+
},
|
|
3791
|
+
"hasDynamicHelp": false,
|
|
3792
|
+
"hiddenAliases": [],
|
|
3793
|
+
"id": "customer:request_anonymization",
|
|
3794
|
+
"pluginAlias": "@commercelayer/cli-plugin-triggers",
|
|
3795
|
+
"pluginName": "@commercelayer/cli-plugin-triggers",
|
|
3796
|
+
"pluginType": "core",
|
|
3797
|
+
"strict": true,
|
|
3798
|
+
"enableJsonFlag": false,
|
|
3799
|
+
"isESM": false,
|
|
3800
|
+
"relativePath": [
|
|
3801
|
+
"lib",
|
|
3802
|
+
"commands",
|
|
3803
|
+
"customer",
|
|
3804
|
+
"request_anonymization.js"
|
|
3805
|
+
]
|
|
3806
|
+
},
|
|
3543
3807
|
"customer_password_reset": {
|
|
3544
3808
|
"aliases": [],
|
|
3545
3809
|
"args": {
|
|
@@ -20816,5 +21080,5 @@
|
|
|
20816
21080
|
]
|
|
20817
21081
|
}
|
|
20818
21082
|
},
|
|
20819
|
-
"version": "4.
|
|
21083
|
+
"version": "4.14.0"
|
|
20820
21084
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercelayer/cli-plugin-triggers",
|
|
3
3
|
"description": "Commerce Layer CLI Triggers plugin",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.14.0",
|
|
5
5
|
"author": "Pierluigi Viti <pierluigi@commercelayer.io>",
|
|
6
6
|
"homepage": "https://github.com/commercelayer/commercelayer-cli-plugin-triggers",
|
|
7
7
|
"repository": "commercelayer/commercelayer-cli-plugin-triggers",
|
|
@@ -57,29 +57,29 @@
|
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@commercelayer/cli-dev": "^3.0.7",
|
|
59
59
|
"@commercelayer/eslint-config-ts": "^1.4.5",
|
|
60
|
-
"@oclif/plugin-help": "^6.2.
|
|
60
|
+
"@oclif/plugin-help": "^6.2.28",
|
|
61
61
|
"@oclif/test": "^3.2.15",
|
|
62
62
|
"@semantic-release/changelog": "^6.0.3",
|
|
63
63
|
"@semantic-release/git": "^10.0.1",
|
|
64
64
|
"@types/chai": "^4.3.20",
|
|
65
|
-
"@types/inquirer": "^8.2.
|
|
65
|
+
"@types/inquirer": "^8.2.11",
|
|
66
66
|
"@types/lodash.snakecase": "^4.1.9",
|
|
67
67
|
"@types/mocha": "^10.0.10",
|
|
68
|
-
"@types/node": "^22.
|
|
68
|
+
"@types/node": "^22.15.30",
|
|
69
69
|
"chai": "^4.5.0",
|
|
70
70
|
"eslint": "^8.57.1",
|
|
71
71
|
"inflector-js": "^1.0.1",
|
|
72
72
|
"lodash.snakecase": "^4.1.1",
|
|
73
73
|
"mocha": "^10.8.2",
|
|
74
74
|
"nyc": "^15.1.0",
|
|
75
|
-
"oclif": "^4.
|
|
76
|
-
"semantic-release": "^24.2.
|
|
77
|
-
"tsx": "^4.19.
|
|
75
|
+
"oclif": "^4.18.1",
|
|
76
|
+
"semantic-release": "^24.2.5",
|
|
77
|
+
"tsx": "^4.19.4",
|
|
78
78
|
"typescript": "5.5.4"
|
|
79
79
|
},
|
|
80
80
|
"dependencies": {
|
|
81
81
|
"@commercelayer/cli-core": "beta",
|
|
82
|
-
"@commercelayer/sdk": "^6.
|
|
82
|
+
"@commercelayer/sdk": "^6.43.0",
|
|
83
83
|
"@oclif/core": "^3.27.0",
|
|
84
84
|
"inquirer": "^8.2.6",
|
|
85
85
|
"tslib": "^2.8.1"
|