@commercelayer/cli-plugin-provisioning 2.0.3 → 2.0.5

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 CHANGED
@@ -93,21 +93,16 @@ Delete an existing resource.
93
93
 
94
94
  ```sh-session
95
95
  USAGE
96
- $ commercelayer provisioning:delete RESOURCE [ID] [-i <value>...] [-f <value>...] [-u -j] [-l curl|node [--doc | -R]]
97
- [--curl ] [--node ] [-H ] [-Y ]
96
+ $ commercelayer provisioning:delete RESOURCE [ID] [-l curl|node [--doc | -R]] [--curl ] [--node ] [-H ] [-Y ]
98
97
 
99
98
  ARGUMENTS
100
99
  RESOURCE the resource type
101
100
  ID id of the resource to delete
102
101
 
103
102
  FLAGS
104
- -H, --headers show response headers
105
- -R, --raw print out the raw API response
106
- -Y, --headers-only show only response headers
107
- -f, --fields=<value>... comma separeted list of fields in the format [resourceType/]field1,field2,field3
108
- -i, --include=<value>... comma separated resources to include
109
- -j, --json convert output in standard JSON format
110
- -u, --unformatted print unformatted JSON output
103
+ -H, --headers show response headers
104
+ -R, --raw print out the raw API response
105
+ -Y, --headers-only show only response headers
111
106
 
112
107
  DOCUMENTATION FLAGS
113
108
  -l, --lang=<option> show the CLI command in the specified language syntax
@@ -13,7 +13,7 @@ class ProvisioningDelete extends base_1.default {
13
13
  '$ cl prov:delete api_credentials <id>',
14
14
  ];
15
15
  static flags = {
16
- ...(cli_core_1.clCommand.commandFlags(base_1.default.flags, ['save-params', 'load-params']))
16
+ ...(cli_core_1.clCommand.commandFlags(base_1.default.flags, [/* FLAG_SAVE_PARAMS, FLAG_LOAD_PARAMS, */ 'fields', 'include', 'json', 'unformatted']))
17
17
  };
18
18
  static args = {
19
19
  ...base_1.default.args,
@@ -0,0 +1,5 @@
1
+ export type Timezone = {
2
+ value: string;
3
+ label: string;
4
+ };
5
+ export declare const timezones: Timezone[];
@@ -0,0 +1,120 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.timezones = void 0;
4
+ exports.timezones = [
5
+ { value: 'Etc/GMT+12', label: '(GMT-12:00) International Date Line West' },
6
+ { value: 'Pacific/Pago_Pago', label: '(GMT-11:00) American Samoa' },
7
+ { value: 'Pacific/Midway', label: '(GMT-11:00) Midway Island' },
8
+ { value: 'Pacific/Honolulu', label: '(GMT-10:00) Hawaii' },
9
+ { value: 'America/Anchorage', label: '(GMT-09:00) Alaska' },
10
+ { value: 'America/Los_Angeles', label: '(GMT-08:00) Pacific Time (US & Canada)' },
11
+ { value: 'America/Tijuana', label: '(GMT-08:00) Tijuana' },
12
+ { value: 'America/Phoenix', label: '(GMT-07:00) Arizona' },
13
+ { value: 'America/Denver', label: '(GMT-07:00) Mountain Time (US & Canada)' },
14
+ { value: 'America/Chihuahua', label: '(GMT-07:00) Chihuahua' },
15
+ { value: 'America/Mazatlan', label: '(GMT-07:00) Mazatlan' },
16
+ { value: 'America/Chicago', label: '(GMT-06:00) Central Time (US & Canada)' },
17
+ { value: 'America/Regina', label: '(GMT-06:00) Saskatchewan' },
18
+ { value: 'America/Mexico_City', label: '(GMT-06:00) Mexico City' },
19
+ { value: 'America/Monterrey', label: '(GMT-06:00) Monterrey' },
20
+ { value: 'America/New_York', label: '(GMT-05:00) Eastern Time (US & Canada)' },
21
+ { value: 'America/Bogota', label: '(GMT-05:00) Bogota' },
22
+ { value: 'America/Lima', label: '(GMT-05:00) Lima' },
23
+ { value: 'America/Rio_Branco', label: '(GMT-05:00) Rio Branco' },
24
+ { value: 'America/Indiana/Indianapolis', label: '(GMT-05:00) Indiana (East)' },
25
+ { value: 'America/Caracas', label: '(GMT-04:30) Caracas' },
26
+ { value: 'America/Halifax', label: '(GMT-04:00) Atlantic Time (Canada)' },
27
+ { value: 'America/Manaus', label: '(GMT-04:00) Manaus' },
28
+ { value: 'America/Santiago', label: '(GMT-04:00) Santiago' },
29
+ { value: 'America/La_Paz', label: '(GMT-04:00) La Paz' },
30
+ { value: 'America/St_Johns', label: '(GMT-03:30) Newfoundland' },
31
+ { value: 'America/Argentina/Buenos_Aires', label: '(GMT-03:00) Buenos Aires' },
32
+ { value: 'America/Sao_Paulo', label: '(GMT-03:00) Brasilia' },
33
+ { value: 'America/Godthab', label: '(GMT-03:00) Greenland' },
34
+ { value: 'America/Montevideo', label: '(GMT-03:00) Montevideo' },
35
+ { value: 'Atlantic/South_Georgia', label: '(GMT-02:00) Mid-Atlantic' },
36
+ { value: 'Atlantic/Azores', label: '(GMT-01:00) Azores' },
37
+ { value: 'Atlantic/Cape_Verde', label: '(GMT-01:00) Cape Verde Is.' },
38
+ { value: 'Europe/Dublin', label: '(GMT+00:00) Dublin' },
39
+ { value: 'Europe/Lisbon', label: '(GMT+00:00) Lisbon' },
40
+ { value: 'Europe/London', label: '(GMT+00:00) London' },
41
+ { value: 'Africa/Monrovia', label: '(GMT+00:00) Monrovia' },
42
+ { value: 'Etc/UTC', label: '(GMT+00:00) UTC' },
43
+ { value: 'Europe/Amsterdam', label: '(GMT+01:00) Amsterdam' },
44
+ { value: 'Europe/Belgrade', label: '(GMT+01:00) Belgrade' },
45
+ { value: 'Europe/Berlin', label: '(GMT+01:00) Berlin' },
46
+ { value: 'Europe/Bratislava', label: '(GMT+01:00) Bratislava' },
47
+ { value: 'Europe/Brussels', label: '(GMT+01:00) Brussels' },
48
+ { value: 'Europe/Budapest', label: '(GMT+01:00) Budapest' },
49
+ { value: 'Europe/Copenhagen', label: '(GMT+01:00) Copenhagen' },
50
+ { value: 'Europe/Ljubljana', label: '(GMT+01:00) Ljubljana' },
51
+ { value: 'Europe/Madrid', label: '(GMT+01:00) Madrid' },
52
+ { value: 'Europe/Paris', label: '(GMT+01:00) Paris' },
53
+ { value: 'Europe/Prague', label: '(GMT+01:00) Prague' },
54
+ { value: 'Europe/Rome', label: '(GMT+01:00) Rome' },
55
+ { value: 'Europe/Sarajevo', label: '(GMT+01:00) Sarajevo' },
56
+ { value: 'Europe/Skopje', label: '(GMT+01:00) Skopje' },
57
+ { value: 'Europe/Stockholm', label: '(GMT+01:00) Stockholm' },
58
+ { value: 'Europe/Vienna', label: '(GMT+01:00) Vienna' },
59
+ { value: 'Europe/Warsaw', label: '(GMT+01:00) Warsaw' },
60
+ { value: 'Europe/Zagreb', label: '(GMT+01:00) Zagreb' },
61
+ { value: 'Europe/Athens', label: '(GMT+02:00) Athens' },
62
+ { value: 'Europe/Bucharest', label: '(GMT+02:00) Bucharest' },
63
+ { value: 'Africa/Cairo', label: '(GMT+02:00) Cairo' },
64
+ { value: 'Africa/Harare', label: '(GMT+02:00) Harare' },
65
+ { value: 'Europe/Helsinki', label: '(GMT+02:00) Helsinki' },
66
+ { value: 'Europe/Istanbul', label: '(GMT+02:00) Istanbul' },
67
+ { value: 'Asia/Jerusalem', label: '(GMT+02:00) Jerusalem' },
68
+ { value: 'Europe/Kiev', label: '(GMT+02:00) Kyiv' },
69
+ { value: 'Europe/Minsk', label: '(GMT+02:00) Minsk' },
70
+ { value: 'Europe/Riga', label: '(GMT+02:00) Riga' },
71
+ { value: 'Europe/Sofia', label: '(GMT+02:00) Sofia' },
72
+ { value: 'Europe/Tallinn', label: '(GMT+02:00) Tallinn' },
73
+ { value: 'Europe/Vilnius', label: '(GMT+02:00) Vilnius' },
74
+ { value: 'Asia/Baghdad', label: '(GMT+03:00) Baghdad' },
75
+ { value: 'Asia/Kuwait', label: '(GMT+03:00) Kuwait' },
76
+ { value: 'Europe/Moscow', label: '(GMT+03:00) Moscow' },
77
+ { value: 'Africa/Nairobi', label: '(GMT+03:00) Nairobi' },
78
+ { value: 'Asia/Riyadh', label: '(GMT+03:00) Riyadh' },
79
+ { value: 'Europe/Volgograd', label: '(GMT+03:00) Volgograd' },
80
+ { value: 'Asia/Tehran', label: '(GMT+03:30) Tehran' },
81
+ { value: 'Asia/Muscat', label: '(GMT+04:00) Muscat' },
82
+ { value: 'Asia/Baku', label: '(GMT+04:00) Baku' },
83
+ { value: 'Asia/Yerevan', label: '(GMT+04:00) Yerevan' },
84
+ { value: 'Asia/Kabul', label: '(GMT+04:30) Kabul' },
85
+ { value: 'Asia/Yekaterinburg', label: '(GMT+05:00) Ekaterinburg' },
86
+ { value: 'Asia/Karachi', label: '(GMT+05:00) Karachi' },
87
+ { value: 'Asia/Tashkent', label: '(GMT+05:00) Tashkent' },
88
+ { value: 'Asia/Kolkata', label: '(GMT+05:30) Kolkata' },
89
+ { value: 'Asia/Colombo', label: '(GMT+05:30) Sri Jayawardenepura' },
90
+ { value: 'Asia/Katmandu', label: '(GMT+05:45) Kathmandu' },
91
+ { value: 'Asia/Almaty', label: '(GMT+06:00) Almaty' },
92
+ { value: 'Asia/Dhaka', label: '(GMT+06:00) Dhaka' },
93
+ { value: 'Asia/Urumqi', label: '(GMT+06:00) Urumqi' },
94
+ { value: 'Asia/Rangoon', label: '(GMT+06:30) Rangoon' },
95
+ { value: 'Asia/Bangkok', label: '(GMT+07:00) Bangkok' },
96
+ { value: 'Asia/Jakarta', label: '(GMT+07:00) Jakarta' },
97
+ { value: 'Asia/Krasnoyarsk', label: '(GMT+07:00) Krasnoyarsk' },
98
+ { value: 'Asia/Hong_Kong', label: '(GMT+08:00) Hong Kong' },
99
+ { value: 'Asia/Kuala_Lumpur', label: '(GMT+08:00) Kuala Lumpur' },
100
+ { value: 'Australia/Perth', label: '(GMT+08:00) Perth' },
101
+ { value: 'Asia/Singapore', label: '(GMT+08:00) Singapore' },
102
+ { value: 'Asia/Taipei', label: '(GMT+08:00) Taipei' },
103
+ { value: 'Asia/Ulaanbaatar', label: '(GMT+08:00) Ulaan Bataar' },
104
+ { value: 'Asia/Irkutsk', label: '(GMT+08:00) Irkutsk' },
105
+ { value: 'Asia/Tokyo', label: '(GMT+09:00) Tokyo' },
106
+ { value: 'Asia/Seoul', label: '(GMT+09:00) Seoul' },
107
+ { value: 'Asia/Yakutsk', label: '(GMT+09:00) Yakutsk' },
108
+ { value: 'Australia/Adelaide', label: '(GMT+09:30) Adelaide' },
109
+ { value: 'Australia/Darwin', label: '(GMT+09:30) Darwin' },
110
+ { value: 'Australia/Brisbane', label: '(GMT+10:00) Brisbane' },
111
+ { value: 'Australia/Sydney', label: '(GMT+10:00) Sydney' },
112
+ { value: 'Pacific/Guam', label: '(GMT+10:00) Guam' },
113
+ { value: 'Australia/Hobart', label: '(GMT+10:00) Hobart' },
114
+ { value: 'Asia/Vladivostok', label: '(GMT+10:00) Vladivostok' },
115
+ { value: 'Pacific/Noumea', label: '(GMT+11:00) New Caledonia' },
116
+ { value: 'Asia/Magadan', label: '(GMT+11:00) Magadan' },
117
+ { value: 'Pacific/Fiji', label: '(GMT+12:00) Fiji' },
118
+ { value: 'Asia/Kamchatka', label: '(GMT+12:00) Kamchatka' },
119
+ { value: 'Pacific/Auckland', label: '(GMT+12:00) Auckland' }
120
+ ];
@@ -276,39 +276,6 @@
276
276
  "multiple": false,
277
277
  "type": "option"
278
278
  },
279
- "include": {
280
- "char": "i",
281
- "description": "comma separated resources to include",
282
- "name": "include",
283
- "hasDynamicHelp": false,
284
- "multiple": true,
285
- "type": "option"
286
- },
287
- "fields": {
288
- "char": "f",
289
- "description": "comma separeted list of fields in the format [resourceType/]field1,field2,field3",
290
- "name": "fields",
291
- "hasDynamicHelp": false,
292
- "multiple": true,
293
- "type": "option"
294
- },
295
- "json": {
296
- "char": "j",
297
- "description": "convert output in standard JSON format",
298
- "name": "json",
299
- "allowNo": false,
300
- "type": "boolean"
301
- },
302
- "unformatted": {
303
- "char": "u",
304
- "dependsOn": [
305
- "json"
306
- ],
307
- "description": "print unformatted JSON output",
308
- "name": "unformatted",
309
- "allowNo": false,
310
- "type": "boolean"
311
- },
312
279
  "raw": {
313
280
  "char": "R",
314
281
  "description": "print out the raw API response",
@@ -1994,5 +1961,5 @@
1994
1961
  ]
1995
1962
  }
1996
1963
  },
1997
- "version": "2.0.3"
1964
+ "version": "2.0.5"
1998
1965
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@commercelayer/cli-plugin-provisioning",
3
3
  "description": "Commerce Layer CLI Provisioning plugin",
4
- "version": "2.0.3",
4
+ "version": "2.0.5",
5
5
  "author": "Pierluigi Viti <pierluigi@commercelayer.io>",
6
6
  "homepage": "https://github.com/commercelayer/commercelayer-cli-plugin-provisioning",
7
7
  "repository": "commercelayer/commercelayer-cli-plugin-provisioning",
@@ -51,35 +51,36 @@
51
51
  "readme": "cl-cli-dev readme --plugin --bin=commercelayer && git add README.md",
52
52
  "resources": "pnpm update @commercelayer/provisioning-sdk && tsx src/util/resources/build.ts",
53
53
  "lint": "eslint src --ext .ts --config .eslintrc",
54
- "lint:fix": "eslint src --fix"
54
+ "lint:fix": "eslint src --fix",
55
+ "release": "pnpm upgrade && pnpm prepack && pnpm postpack"
55
56
  },
56
57
  "types": "lib/index.d.ts",
57
58
  "devDependencies": {
58
- "@commercelayer/cli-dev": "^3.0.6",
59
+ "@commercelayer/cli-dev": "^3.0.7",
59
60
  "@commercelayer/eslint-config-ts": "^1.4.5",
60
- "@oclif/plugin-help": "^6.2.18",
61
+ "@oclif/plugin-help": "^6.2.31",
61
62
  "@oclif/test": "^3.2.15",
62
63
  "@semantic-release/changelog": "^6.0.3",
63
64
  "@semantic-release/git": "^10.0.1",
64
65
  "@types/chai": "^4.3.20",
65
- "@types/inquirer": "^8.2.10",
66
+ "@types/inquirer": "^8.2.11",
66
67
  "@types/mocha": "^10.0.10",
67
- "@types/node": "^20.17.9",
68
+ "@types/node": "^20.19.9",
68
69
  "chai": "^4.5.0",
69
70
  "eslint": "^8.57.1",
70
71
  "mocha": "^10.8.2",
71
72
  "nyc": "^15.1.0",
72
- "oclif": "^4.16.0",
73
+ "oclif": "^4.22.0",
73
74
  "semantic-release": "^23.1.1",
74
- "tsx": "^4.19.2",
75
- "typescript": "^5.7.2"
75
+ "tsx": "^4.20.3",
76
+ "typescript": "^5.8.3"
76
77
  },
77
78
  "dependencies": {
78
- "@commercelayer/cli-core": "^5.4.2",
79
- "@commercelayer/provisioning-sdk": "^2.2.0",
79
+ "@commercelayer/cli-core": "^5.10.0",
80
+ "@commercelayer/provisioning-sdk": "^2.7.0",
80
81
  "@oclif/core": "^3.27.0",
81
82
  "inquirer": "^8.2.6",
82
- "json-2-csv": "^5.5.7",
83
+ "json-2-csv": "^5.5.9",
83
84
  "tslib": "^2.8.1"
84
85
  },
85
86
  "publishConfig": {