@commercelayer/cli-plugin-provisioning 2.0.2 → 2.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/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
@@ -103,7 +103,7 @@ class ProvisioningCreate extends base_1.default {
103
103
  // Include flags
104
104
  const include = this.includeFlag(flags.include, relationships);
105
105
  // Fields flags
106
- const fields = this.fieldsFlag(flags.fields, resource.api);
106
+ const fields = this.fieldsFlag(flags.fields, resource.type);
107
107
  const rawReader = flags.raw ? cl.addRawResponseReader({ headers: showHeaders }) : undefined;
108
108
  const reqReader = flags.doc ? (0, lang_1.addRequestReader)(cl) : undefined;
109
109
  const params = {};
@@ -123,7 +123,7 @@ class ProvisioningCreate extends base_1.default {
123
123
  const out = (flags.raw && rawReader) ? rawReader.rawResponse : res;
124
124
  this.printHeaders(rawReader?.headers, flags);
125
125
  this.printOutput(out, flags);
126
- this.log(`\n${cli_core_1.clColor.style.success('Successfully')} created new resource of type ${cli_core_1.clColor.style.resource(resource.api)} with id ${cli_core_1.clColor.style.id(res.id)}\n`);
126
+ this.log(`\n${cli_core_1.clColor.style.success('Successfully')} created new resource of type ${cli_core_1.clColor.style.resource(resource.type)} with id ${cli_core_1.clColor.style.id(res.id)}\n`);
127
127
  // Save command arguments
128
128
  // if (saveCmd) this.saveParams(saveCmd, { type: resource.api }, OPERATION, params)
129
129
  return out;
@@ -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,
@@ -38,7 +38,7 @@ class ProvisioningDelete extends base_1.default {
38
38
  await resSdk.delete(id);
39
39
  if (showHeaders)
40
40
  this.printHeaders(rawReader?.headers, flags);
41
- this.log(`\n${cli_core_1.clColor.style.success('Successfully')} deleted resource of type ${cli_core_1.clColor.style.resource(resource.api)} with id ${cli_core_1.clColor.style.id(id)}\n`);
41
+ this.log(`\n${cli_core_1.clColor.style.success('Successfully')} deleted resource of type ${cli_core_1.clColor.style.resource(resource.type)} with id ${cli_core_1.clColor.style.id(id)}\n`);
42
42
  }
43
43
  catch (error) {
44
44
  if ((0, lang_1.isRequestInterrupted)(error) && reqReader) {
@@ -74,7 +74,7 @@ class ProvisioningList extends base_1.default {
74
74
  // Include flags
75
75
  const include = this.includeFlag(flags.include, undefined, flags['force-include']);
76
76
  // Fields flags
77
- const fields = this.fieldsFlag(flags.fields, resource.api);
77
+ const fields = this.fieldsFlag(flags.fields, resource.type);
78
78
  // Where flags
79
79
  const wheres = this.whereFlag(flags.where);
80
80
  // Sort flags
@@ -41,7 +41,7 @@ class ResourcesRelationship extends base_1.default {
41
41
  // Include flags
42
42
  const include = this.includeFlag(flags.include);
43
43
  // Fields flags
44
- const fields = this.fieldsFlag(flags.fields, resource.api);
44
+ const fields = this.fieldsFlag(flags.fields, resource.type);
45
45
  // Where flags
46
46
  const wheres = this.whereFlag(flags.where);
47
47
  // Sort flags
@@ -52,7 +52,7 @@ class ProvisioningRetrieve extends base_1.default {
52
52
  // Include flags
53
53
  const include = this.includeFlag(flags.include);
54
54
  // Fields flags
55
- const fields = this.fieldsFlag(flags.fields, resource.api);
55
+ const fields = this.fieldsFlag(flags.fields, resource.type);
56
56
  const cl = this.initCommerceLayer(flags);
57
57
  const rawReader = flags.raw ? cl.addRawResponseReader({ headers: showHeaders }) : undefined;
58
58
  const reqReader = flags.doc ? (0, lang_1.addRequestReader)(cl) : undefined;
@@ -112,7 +112,7 @@ class ProvisioningUpdate extends base_1.default {
112
112
  // Include flags
113
113
  const include = this.includeFlag(flags.include, relationships);
114
114
  // Fields flags
115
- const fields = this.fieldsFlag(flags.fields, resource.api);
115
+ const fields = this.fieldsFlag(flags.fields, resource.type);
116
116
  const rawReader = flags.raw ? cl.addRawResponseReader({ headers: showHeaders }) : undefined;
117
117
  const reqReader = flags.doc ? (0, lang_1.addRequestReader)(cl) : undefined;
118
118
  const params = {};
@@ -141,7 +141,7 @@ class ProvisioningUpdate extends base_1.default {
141
141
  const out = (flags.raw && rawReader) ? rawReader.rawResponse : res;
142
142
  this.printHeaders(rawReader?.headers, flags);
143
143
  this.printOutput(out, flags);
144
- this.log(`\n${cli_core_1.clColor.style.success('Successfully')} updated resource of type ${cli_core_1.clColor.style.resource(resource.api)} with id ${cli_core_1.clColor.style.id(res.id)}\n`);
144
+ this.log(`\n${cli_core_1.clColor.style.success('Successfully')} updated resource of type ${cli_core_1.clColor.style.resource(resource.type)} with id ${cli_core_1.clColor.style.id(res.id)}\n`);
145
145
  // Save command arguments
146
146
  // if (saveCmd) this.saveParams(saveCmd, { type: resource.api }, OPERATION, params)
147
147
  return out;
@@ -1,34 +1,42 @@
1
1
  declare const RESOURCES: readonly [{
2
2
  readonly name: "api_credential";
3
+ readonly type: "api_credentials";
3
4
  readonly api: "api_credentials";
4
5
  readonly model: "ApiCredential";
5
6
  }, {
6
7
  readonly name: "application_membership";
8
+ readonly type: "application_memberships";
7
9
  readonly api: "application_memberships";
8
10
  readonly model: "ApplicationMembership";
9
11
  }, {
10
12
  readonly name: "membership";
13
+ readonly type: "memberships";
11
14
  readonly api: "memberships";
12
15
  readonly model: "Membership";
13
16
  }, {
14
17
  readonly name: "organization";
18
+ readonly type: "organizations";
15
19
  readonly api: "organizations";
16
20
  readonly model: "Organization";
17
21
  }, {
18
22
  readonly name: "permission";
23
+ readonly type: "permissions";
19
24
  readonly api: "permissions";
20
25
  readonly model: "Permission";
21
26
  }, {
22
27
  readonly name: "role";
28
+ readonly type: "roles";
23
29
  readonly api: "roles";
24
30
  readonly model: "Role";
25
31
  }, {
26
32
  readonly name: "user";
33
+ readonly type: "users";
27
34
  readonly api: "user";
28
35
  readonly model: "User";
29
36
  readonly singleton: true;
30
37
  }, {
31
38
  readonly name: "version";
39
+ readonly type: "versions";
32
40
  readonly api: "versions";
33
41
  readonly model: "Version";
34
42
  }];
@@ -1,13 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const RESOURCES = [
4
- { name: 'api_credential', api: 'api_credentials', model: 'ApiCredential' },
5
- { name: 'application_membership', api: 'application_memberships', model: 'ApplicationMembership' },
6
- { name: 'membership', api: 'memberships', model: 'Membership' },
7
- { name: 'organization', api: 'organizations', model: 'Organization' },
8
- { name: 'permission', api: 'permissions', model: 'Permission' },
9
- { name: 'role', api: 'roles', model: 'Role' },
10
- { name: 'user', api: 'user', model: 'User', singleton: true },
11
- { name: 'version', api: 'versions', model: 'Version' },
4
+ { name: 'api_credential', type: 'api_credentials', api: 'api_credentials', model: 'ApiCredential' },
5
+ { name: 'application_membership', type: 'application_memberships', api: 'application_memberships', model: 'ApplicationMembership' },
6
+ { name: 'membership', type: 'memberships', api: 'memberships', model: 'Membership' },
7
+ { name: 'organization', type: 'organizations', api: 'organizations', model: 'Organization' },
8
+ { name: 'permission', type: 'permissions', api: 'permissions', model: 'Permission' },
9
+ { name: 'role', type: 'roles', api: 'roles', model: 'Role' },
10
+ { name: 'user', type: 'users', api: 'user', model: 'User', singleton: true },
11
+ { name: 'version', type: 'versions', api: 'versions', model: 'Version' },
12
12
  ];
13
13
  exports.default = RESOURCES;
@@ -4,17 +4,16 @@ const provisioning_sdk_1 = require("@commercelayer/provisioning-sdk");
4
4
  const path_1 = require("path");
5
5
  const fs_1 = require("fs");
6
6
  const cli_core_1 = require("@commercelayer/cli-core");
7
- const isSingleton = (res) => {
8
- return (cli_core_1.clText.singularize(res) === res);
9
- };
10
7
  const parseResourcesSdk = async () => {
11
8
  const resList = provisioning_sdk_1.CommerceLayerProvisioningStatic.resources().map(r => {
12
- const singular = cli_core_1.clText.singularize(r);
9
+ const res = r;
10
+ const singular = cli_core_1.clText.singularize(res);
13
11
  const item = {
14
12
  name: singular,
15
- api: r,
13
+ type: res,
14
+ api: provisioning_sdk_1.CommerceLayerProvisioningStatic.isSingleton(res) ? cli_core_1.clText.singularize(res) : res,
16
15
  model: cli_core_1.clText.camelize(singular),
17
- singleton: isSingleton(r),
16
+ singleton: provisioning_sdk_1.CommerceLayerProvisioningStatic.isSingleton(res),
18
17
  };
19
18
  return item;
20
19
  });
@@ -30,7 +29,7 @@ const exportResources = async ({ source = 'sdk', variable = false, name = 'resou
30
29
  lines.push((variable ? `const ${name} = ` : '') + (array ? '[' : ''));
31
30
  const resLines = resources.map(res => {
32
31
  let item = `${tab ? '\t' : ''}{ `;
33
- item += `name: '${res.name}', api: '${res.api}', model: '${res.model}'`;
32
+ item += `name: '${res.name}', type: '${res.type}', api: '${res.api}', model: '${res.model}'`;
34
33
  if (res.singleton)
35
34
  item += ', singleton: true';
36
35
  item += ' },';
@@ -1,12 +1,13 @@
1
1
  import type { ResourceTypeLock } from '@commercelayer/provisioning-sdk';
2
- interface Resource {
2
+ interface ApiResource {
3
3
  name: string;
4
- api: ResourceTypeLock;
4
+ type: ResourceTypeLock;
5
+ api: string;
5
6
  model: string;
6
7
  singleton?: boolean;
7
8
  }
8
9
  declare const findResource: (res: string, { singular }?: {
9
10
  singular?: boolean | undefined;
10
- }) => (Resource | undefined);
11
+ }) => (ApiResource | undefined);
11
12
  declare const resourceList: (field: "name" | "api" | "model") => string[];
12
- export { findResource, resourceList, type Resource };
13
+ export { findResource, resourceList, type ApiResource as Resource };
@@ -9,7 +9,7 @@ const findResource = (res, { singular = false } = {}) => {
9
9
  return undefined;
10
10
  const lowRes = res.toLowerCase();
11
11
  return resources.find(r => {
12
- return (lowRes === r.api) || (singular && (lowRes === r.name));
12
+ return (lowRes === r.type) || (singular && (lowRes === r.name));
13
13
  });
14
14
  };
15
15
  exports.findResource = findResource;
@@ -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.2"
1964
+ "version": "2.0.4"
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.2",
4
+ "version": "2.0.4",
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,36 +51,37 @@
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.16",
61
+ "@oclif/plugin-help": "^6.2.23",
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
66
  "@types/inquirer": "^8.2.10",
66
- "@types/mocha": "^10.0.9",
67
- "@types/node": "^20.16.13",
67
+ "@types/mocha": "^10.0.10",
68
+ "@types/node": "^20.17.16",
68
69
  "chai": "^4.5.0",
69
70
  "eslint": "^8.57.1",
70
- "mocha": "^10.7.3",
71
+ "mocha": "^10.8.2",
71
72
  "nyc": "^15.1.0",
72
- "oclif": "^4.15.9",
73
+ "oclif": "^4.17.21",
73
74
  "semantic-release": "^23.1.1",
74
- "tsx": "^4.19.1",
75
- "typescript": "^5.6.3"
75
+ "tsx": "^4.19.2",
76
+ "typescript": "^5.7.3"
76
77
  },
77
78
  "dependencies": {
78
- "@commercelayer/cli-core": "^5.3.1",
79
- "@commercelayer/provisioning-sdk": "^2.1.1",
79
+ "@commercelayer/cli-core": "^5.7.2",
80
+ "@commercelayer/provisioning-sdk": "^2.4.1",
80
81
  "@oclif/core": "^3.27.0",
81
82
  "inquirer": "^8.2.6",
82
- "json-2-csv": "^5.5.6",
83
- "tslib": "^2.8.0"
83
+ "json-2-csv": "^5.5.8",
84
+ "tslib": "^2.8.1"
84
85
  },
85
86
  "publishConfig": {
86
87
  "access": "public"