@commercelayer/cli-plugin-exports
Advanced tools
Comparing version 2.4.0 to 3.0.0-oclif3.1
@@ -10,5 +10,5 @@ import type { ApiMode, KeyValRel, KeyValString } from '@commercelayer/cli-core'; | ||
static baseFlags: { | ||
organization: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>; | ||
domain: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>; | ||
accessToken: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>; | ||
organization: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>; | ||
domain: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>; | ||
accessToken: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>; | ||
}; | ||
@@ -15,0 +15,0 @@ protected environment: ApiMode; |
@@ -39,6 +39,25 @@ "use strict"; | ||
class BaseCommand extends core_1.Command { | ||
constructor() { | ||
super(...arguments); | ||
this.environment = 'test'; | ||
} | ||
static baseFlags = { | ||
organization: core_1.Flags.string({ | ||
char: 'o', | ||
description: 'the slug of your organization', | ||
required: true, | ||
env: 'CL_CLI_ORGANIZATION', | ||
hidden: true, | ||
}), | ||
domain: core_1.Flags.string({ | ||
char: 'd', | ||
required: false, | ||
hidden: true, | ||
dependsOn: ['organization'], | ||
env: 'CL_CLI_DOMAIN', | ||
}), | ||
accessToken: core_1.Flags.string({ | ||
hidden: true, | ||
required: true, | ||
env: 'CL_CLI_ACCESS_TOKEN', | ||
}), | ||
}; | ||
environment = 'test'; | ||
cl; | ||
// INIT (override) | ||
@@ -106,23 +125,2 @@ async init() { | ||
} | ||
BaseCommand.baseFlags = { | ||
organization: core_1.Flags.string({ | ||
char: 'o', | ||
description: 'the slug of your organization', | ||
required: true, | ||
env: 'CL_CLI_ORGANIZATION', | ||
hidden: true, | ||
}), | ||
domain: core_1.Flags.string({ | ||
char: 'd', | ||
required: false, | ||
hidden: true, | ||
dependsOn: ['organization'], | ||
env: 'CL_CLI_DOMAIN', | ||
}), | ||
accessToken: core_1.Flags.string({ | ||
hidden: true, | ||
required: true, | ||
env: 'CL_CLI_ACCESS_TOKEN', | ||
}), | ||
}; | ||
exports.default = BaseCommand; | ||
@@ -129,0 +127,0 @@ class ExportCommand extends BaseCommand { |
@@ -10,10 +10,10 @@ import { ExportCommand } from '../../base'; | ||
keep: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>; | ||
type: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>; | ||
include: import("@oclif/core/lib/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>; | ||
where: import("@oclif/core/lib/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>; | ||
type: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>; | ||
include: import("@oclif/core/lib/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/lib/interfaces").CustomOptions>; | ||
where: import("@oclif/core/lib/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/lib/interfaces").CustomOptions>; | ||
'dry-data': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>; | ||
format: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>; | ||
format: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>; | ||
csv: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>; | ||
save: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>; | ||
'save-path': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>; | ||
save: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>; | ||
'save-path': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>; | ||
notify: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>; | ||
@@ -20,0 +20,0 @@ blind: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>; |
@@ -51,2 +51,22 @@ "use strict"; | ||
class ExportsAll extends base_1.ExportCommand { | ||
static hidden = false; | ||
static description = 'export all the records'; | ||
static aliases = ['exp:all', 'export']; | ||
static examples = [ | ||
'$ commercelayer exports:all -t cusorderstomers -X <output-file-path>', | ||
'$ cl exp:all -t customers -i customer_subscriptions -w email_end=@test.org -X <output-file-path>', | ||
'$ cl export -t skus -w code_start=SHIRT -X <output-file-path> --csv' | ||
]; | ||
static flags = { | ||
// ...(clCommand.commandFlags<typeof ExportsCreate.flags>(ExportsCreate.flags, ['save-params', 'load-params'])), | ||
...create_1.default.flags, | ||
quiet: base_1.Flags.boolean({ | ||
char: 'q', | ||
description: 'execute command without showing warning messages' | ||
}), | ||
keep: base_1.Flags.boolean({ | ||
char: 'k', | ||
description: 'keep original export files in temp dir' | ||
}) | ||
}; | ||
async run() { | ||
@@ -330,22 +350,2 @@ const { flags } = await this.parse(ExportsAll); | ||
} | ||
ExportsAll.hidden = false; | ||
ExportsAll.description = 'export all the records'; | ||
ExportsAll.aliases = ['exp:all', 'export']; | ||
ExportsAll.examples = [ | ||
'$ commercelayer exports:all -t cusorderstomers -X <output-file-path>', | ||
'$ cl exp:all -t customers -i customer_subscriptions -w email_end=@test.org -X <output-file-path>', | ||
'$ cl export -t skus -w code_start=SHIRT -X <output-file-path> --csv' | ||
]; | ||
ExportsAll.flags = { | ||
// ...(clCommand.commandFlags<typeof ExportsCreate.flags>(ExportsCreate.flags, ['save-params', 'load-params'])), | ||
...create_1.default.flags, | ||
quiet: base_1.Flags.boolean({ | ||
char: 'q', | ||
description: 'execute command without showing warning messages' | ||
}), | ||
keep: base_1.Flags.boolean({ | ||
char: 'k', | ||
description: 'keep original export files in temp dir' | ||
}) | ||
}; | ||
exports.default = ExportsAll; |
@@ -7,10 +7,10 @@ import { ExportCommand } from '../../base'; | ||
static flags: { | ||
type: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>; | ||
include: import("@oclif/core/lib/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>; | ||
where: import("@oclif/core/lib/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>; | ||
type: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>; | ||
include: import("@oclif/core/lib/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/lib/interfaces").CustomOptions>; | ||
where: import("@oclif/core/lib/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/lib/interfaces").CustomOptions>; | ||
'dry-data': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>; | ||
format: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>; | ||
format: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>; | ||
csv: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>; | ||
save: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>; | ||
'save-path': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>; | ||
save: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>; | ||
'save-path': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>; | ||
notify: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>; | ||
@@ -17,0 +17,0 @@ blind: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>; |
@@ -8,2 +8,75 @@ "use strict"; | ||
class ExportsCreate extends base_1.ExportCommand { | ||
static description = 'create a new export'; | ||
static aliases = ['exp:create']; | ||
static examples = [ | ||
'$ commercelayer exports:create -t orders -X <output-file-path>', | ||
'$ cl exp:create -t customers -i customer_subscriptions -w email_end=@test.org -X <output-file-path> --csv', | ||
]; | ||
static flags = { | ||
type: base_1.Flags.string({ | ||
char: 't', | ||
description: 'the type of resource being exported', | ||
required: true, | ||
options: cli_core_1.clConfig.exports.types, | ||
helpValue: cli_core_1.clConfig.exports.types.slice(0, 4).join('|') + '|...', | ||
multiple: false, | ||
}), | ||
include: base_1.Flags.string({ | ||
char: 'i', | ||
multiple: true, | ||
description: 'comma separated resources to include', | ||
}), | ||
where: base_1.Flags.string({ | ||
char: 'w', | ||
multiple: true, | ||
description: 'comma separated list of query filters', | ||
}), | ||
'dry-data': base_1.Flags.boolean({ | ||
char: 'D', | ||
description: 'skip redundant attributes', | ||
default: false | ||
}), | ||
format: base_1.Flags.string({ | ||
char: 'F', | ||
description: 'export file format', | ||
options: ['csv', 'json'], | ||
default: 'json', | ||
exclusive: ['csv', 'json'] | ||
}), | ||
csv: base_1.Flags.boolean({ | ||
char: 'C', | ||
description: 'export data in CSV format', | ||
exclusive: ['format', 'prettify'] | ||
}), | ||
save: base_1.Flags.string({ | ||
char: 'x', | ||
description: 'save command output to file', | ||
multiple: false, | ||
exclusive: ['save-path'], | ||
}), | ||
'save-path': base_1.Flags.string({ | ||
char: 'X', | ||
description: 'save command output to file and create missing path directories', | ||
multiple: false, | ||
exclusive: ['save'], | ||
}), | ||
notify: base_1.Flags.boolean({ | ||
char: 'N', | ||
description: 'force system notification when export has finished', | ||
hidden: true, | ||
}), | ||
blind: base_1.Flags.boolean({ | ||
char: 'b', | ||
description: 'execute in blind mode without showing the progress monitor', | ||
}), | ||
prettify: base_1.Flags.boolean({ | ||
char: 'P', | ||
description: 'prettify json output format', | ||
exclusive: ['csv'] | ||
}), | ||
open: base_1.Flags.boolean({ | ||
char: 'O', | ||
description: 'open automatically the file after a successful export' | ||
}) | ||
}; | ||
async run() { | ||
@@ -83,75 +156,2 @@ const { flags } = await this.parse(ExportsCreate); | ||
} | ||
ExportsCreate.description = 'create a new export'; | ||
ExportsCreate.aliases = ['exp:create']; | ||
ExportsCreate.examples = [ | ||
'$ commercelayer exports:create -t orders -X <output-file-path>', | ||
'$ cl exp:create -t customers -i customer_subscriptions -w email_end=@test.org -X <output-file-path> --csv', | ||
]; | ||
ExportsCreate.flags = { | ||
type: base_1.Flags.string({ | ||
char: 't', | ||
description: 'the type of resource being exported', | ||
required: true, | ||
options: cli_core_1.clConfig.exports.types, | ||
helpValue: cli_core_1.clConfig.exports.types.slice(0, 4).join('|') + '|...', | ||
multiple: false, | ||
}), | ||
include: base_1.Flags.string({ | ||
char: 'i', | ||
multiple: true, | ||
description: 'comma separated resources to include', | ||
}), | ||
where: base_1.Flags.string({ | ||
char: 'w', | ||
multiple: true, | ||
description: 'comma separated list of query filters', | ||
}), | ||
'dry-data': base_1.Flags.boolean({ | ||
char: 'D', | ||
description: 'skip redundant attributes', | ||
default: false | ||
}), | ||
format: base_1.Flags.string({ | ||
char: 'F', | ||
description: 'export file format', | ||
options: ['csv', 'json'], | ||
default: 'json', | ||
exclusive: ['csv', 'json'] | ||
}), | ||
csv: base_1.Flags.boolean({ | ||
char: 'C', | ||
description: 'export data in CSV format', | ||
exclusive: ['format', 'prettify'] | ||
}), | ||
save: base_1.Flags.string({ | ||
char: 'x', | ||
description: 'save command output to file', | ||
multiple: false, | ||
exclusive: ['save-path'], | ||
}), | ||
'save-path': base_1.Flags.string({ | ||
char: 'X', | ||
description: 'save command output to file and create missing path directories', | ||
multiple: false, | ||
exclusive: ['save'], | ||
}), | ||
notify: base_1.Flags.boolean({ | ||
char: 'N', | ||
description: 'force system notification when export has finished', | ||
hidden: true, | ||
}), | ||
blind: base_1.Flags.boolean({ | ||
char: 'b', | ||
description: 'execute in blind mode without showing the progress monitor', | ||
}), | ||
prettify: base_1.Flags.boolean({ | ||
char: 'P', | ||
description: 'prettify json output format', | ||
exclusive: ['csv'] | ||
}), | ||
open: base_1.Flags.boolean({ | ||
char: 'O', | ||
description: 'open automatically the file after a successful export' | ||
}) | ||
}; | ||
exports.default = ExportsCreate; |
@@ -7,3 +7,3 @@ import Command from '../../base'; | ||
static args: { | ||
id: import("@oclif/core/lib/interfaces/parser").Arg<string, Record<string, unknown>>; | ||
id: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>; | ||
}; | ||
@@ -10,0 +10,0 @@ run(): Promise<any>; |
@@ -8,2 +8,11 @@ "use strict"; | ||
class ExportsDetails extends base_1.default { | ||
static description = 'show the details of an existing export'; | ||
static aliases = ['exp:details']; | ||
static examples = [ | ||
'$ commercelayer exports:details <export-id>', | ||
'$ cl exp:details <export-id>', | ||
]; | ||
static args = { | ||
id: base_1.Args.string({ name: 'id', description: 'unique id of the export', required: true, hidden: false }), | ||
}; | ||
async run() { | ||
@@ -80,11 +89,2 @@ const { args, flags } = await this.parse(ExportsDetails); | ||
} | ||
ExportsDetails.description = 'show the details of an existing export'; | ||
ExportsDetails.aliases = ['exp:details']; | ||
ExportsDetails.examples = [ | ||
'$ commercelayer exports:details <export-id>', | ||
'$ cl exp:details <export-id>', | ||
]; | ||
ExportsDetails.args = { | ||
id: base_1.Args.string({ name: 'id', description: 'unique id of the export', required: true, hidden: false }), | ||
}; | ||
exports.default = ExportsDetails; |
@@ -7,5 +7,5 @@ import Command from '../../base'; | ||
static args: { | ||
group_id: import("@oclif/core/lib/interfaces/parser").Arg<string, Record<string, unknown>>; | ||
group_id: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>; | ||
}; | ||
run(): Promise<any>; | ||
} |
@@ -8,2 +8,11 @@ "use strict"; | ||
class ExportsGroup extends base_1.default { | ||
static description = 'list all the exports related to an export group'; | ||
static aliases = ['exp:group']; | ||
static examples = [ | ||
'$ commercelayer exports:group <group-id>', | ||
'$ cl exp:group <group-id>', | ||
]; | ||
static args = { | ||
group_id: base_1.Args.string({ name: 'group_id', description: 'unique id of the group export', required: true, hidden: false }), | ||
}; | ||
async run() { | ||
@@ -71,11 +80,2 @@ const { args, flags } = await this.parse(ExportsGroup); | ||
} | ||
ExportsGroup.description = 'list all the exports related to an export group'; | ||
ExportsGroup.aliases = ['exp:group']; | ||
ExportsGroup.examples = [ | ||
'$ commercelayer exports:group <group-id>', | ||
'$ cl exp:group <group-id>', | ||
]; | ||
ExportsGroup.args = { | ||
group_id: base_1.Args.string({ name: 'group_id', description: 'unique id of the group export', required: true, hidden: false }), | ||
}; | ||
exports.default = ExportsGroup; |
@@ -6,10 +6,10 @@ import Command from '../../base'; | ||
all: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>; | ||
type: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>; | ||
status: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>; | ||
limit: import("@oclif/core/lib/interfaces").OptionFlag<number | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>; | ||
type: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>; | ||
status: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>; | ||
limit: import("@oclif/core/lib/interfaces").OptionFlag<number | undefined, import("@oclif/core/lib/interfaces").CustomOptions>; | ||
}; | ||
static args: { | ||
id: import("@oclif/core/lib/interfaces/parser").Arg<string | undefined, Record<string, unknown>>; | ||
id: import("@oclif/core/lib/interfaces").Arg<string | undefined, Record<string, unknown>>; | ||
}; | ||
run(): Promise<any>; | ||
} |
@@ -9,2 +9,9 @@ "use strict"; | ||
class ExportsIndex extends base_1.default { | ||
static description = 'list all the created exports or show details of a single export'; | ||
static flags = { | ||
...list_1.default.flags, | ||
}; | ||
static args = { | ||
id: base_1.Args.string({ name: 'id', description: 'unique id of the export to be retrieved', required: false, hidden: false }), | ||
}; | ||
async run() { | ||
@@ -16,9 +23,2 @@ const { args } = await this.parse(ExportsIndex); | ||
} | ||
ExportsIndex.description = 'list all the created exports or show details of a single export'; | ||
ExportsIndex.flags = { | ||
...list_1.default.flags, | ||
}; | ||
ExportsIndex.args = { | ||
id: base_1.Args.string({ name: 'id', description: 'unique id of the export to be retrieved', required: false, hidden: false }), | ||
}; | ||
exports.default = ExportsIndex; |
@@ -8,5 +8,5 @@ import Command from '../../base'; | ||
all: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>; | ||
type: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>; | ||
status: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>; | ||
limit: import("@oclif/core/lib/interfaces").OptionFlag<number | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>; | ||
type: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>; | ||
status: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>; | ||
limit: import("@oclif/core/lib/interfaces").OptionFlag<number | undefined, import("@oclif/core/lib/interfaces").CustomOptions>; | ||
}; | ||
@@ -13,0 +13,0 @@ run(): Promise<any>; |
@@ -9,2 +9,33 @@ "use strict"; | ||
class ExportsList extends base_1.default { | ||
static description = 'list all the created exports'; | ||
static aliases = ['exp:list']; | ||
static examples = [ | ||
'$ commercelayer exports', | ||
'$ cl exports:list -A', | ||
'$ cl exp:list', | ||
]; | ||
static flags = { | ||
all: base_1.Flags.boolean({ | ||
char: 'A', | ||
description: `show all exports instead of first ${cli_core_1.clConfig.api.page_max_size} only`, | ||
exclusive: ['limit'], | ||
}), | ||
type: base_1.Flags.string({ | ||
char: 't', | ||
description: 'the type of resource exported', | ||
options: cli_core_1.clConfig.exports.types, | ||
multiple: false, | ||
}), | ||
status: base_1.Flags.string({ | ||
char: 's', | ||
description: 'the export job status', | ||
options: cli_core_1.clConfig.exports.statuses, | ||
multiple: false, | ||
}), | ||
limit: base_1.Flags.integer({ | ||
char: 'l', | ||
description: 'limit number of exports in output', | ||
exclusive: ['all'], | ||
}), | ||
}; | ||
async run() { | ||
@@ -118,33 +149,2 @@ const { flags } = await this.parse(ExportsList); | ||
} | ||
ExportsList.description = 'list all the created exports'; | ||
ExportsList.aliases = ['exp:list']; | ||
ExportsList.examples = [ | ||
'$ commercelayer exports', | ||
'$ cl exports:list -A', | ||
'$ cl exp:list', | ||
]; | ||
ExportsList.flags = { | ||
all: base_1.Flags.boolean({ | ||
char: 'A', | ||
description: `show all exports instead of first ${cli_core_1.clConfig.api.page_max_size} only`, | ||
exclusive: ['limit'], | ||
}), | ||
type: base_1.Flags.string({ | ||
char: 't', | ||
description: 'the type of resource exported', | ||
options: cli_core_1.clConfig.exports.types, | ||
multiple: false, | ||
}), | ||
status: base_1.Flags.string({ | ||
char: 's', | ||
description: 'the export job status', | ||
options: cli_core_1.clConfig.exports.statuses, | ||
multiple: false, | ||
}), | ||
limit: base_1.Flags.integer({ | ||
char: 'l', | ||
description: 'limit number of exports in output', | ||
exclusive: ['all'], | ||
}), | ||
}; | ||
exports.default = ExportsList; |
@@ -5,2 +5,4 @@ "use strict"; | ||
class Noc extends core_1.Command { | ||
static hidden = true; | ||
static flags = {}; | ||
async run() { | ||
@@ -12,4 +14,2 @@ const output = '-= NoC =-'; | ||
} | ||
Noc.hidden = true; | ||
Noc.flags = {}; | ||
exports.default = Noc; |
@@ -8,2 +8,14 @@ "use strict"; | ||
class ExportsTypes extends core_1.Command { | ||
static description = 'show online documentation for supported resources'; | ||
static aliases = ['exp:types']; | ||
static examples = [ | ||
'$ commercelayer exports:types', | ||
'$ cl exp:types', | ||
]; | ||
static flags = { | ||
open: core_1.Flags.boolean({ | ||
char: 'O', | ||
description: 'open online documentation page', | ||
}), | ||
}; | ||
async run() { | ||
@@ -20,14 +32,2 @@ const { flags } = await this.parse(ExportsTypes); | ||
} | ||
ExportsTypes.description = 'show online documentation for supported resources'; | ||
ExportsTypes.aliases = ['exp:types']; | ||
ExportsTypes.examples = [ | ||
'$ commercelayer exports:types', | ||
'$ cl exp:types', | ||
]; | ||
ExportsTypes.flags = { | ||
open: core_1.Flags.boolean({ | ||
char: 'O', | ||
description: 'open online documentation page', | ||
}), | ||
}; | ||
exports.default = ExportsTypes; |
@@ -483,2 +483,3 @@ { | ||
"strict": true, | ||
"enableJsonFlag": false, | ||
"isESM": false, | ||
@@ -551,2 +552,3 @@ "relativePath": [ | ||
"strict": true, | ||
"enableJsonFlag": false, | ||
"isESM": false, | ||
@@ -683,2 +685,3 @@ "relativePath": [ | ||
"strict": true, | ||
"enableJsonFlag": false, | ||
"isESM": false, | ||
@@ -815,2 +818,3 @@ "relativePath": [ | ||
"strict": true, | ||
"enableJsonFlag": false, | ||
"isESM": false, | ||
@@ -836,2 +840,3 @@ "relativePath": [ | ||
"strict": true, | ||
"enableJsonFlag": false, | ||
"isESM": false, | ||
@@ -871,2 +876,3 @@ "relativePath": [ | ||
"strict": true, | ||
"enableJsonFlag": false, | ||
"isESM": false, | ||
@@ -881,3 +887,3 @@ "relativePath": [ | ||
}, | ||
"version": "2.4.0" | ||
"version": "3.0.0-oclif3.1" | ||
} |
{ | ||
"name": "@commercelayer/cli-plugin-exports", | ||
"description": "Commerce Layer CLI Exports plugin", | ||
"version": "2.4.0", | ||
"version": "3.0.0-oclif3.1", | ||
"author": "Pierluigi Viti <pierluigi@commercelayer.io>", | ||
"homepage": "https://github.com/commercelayer/commercelayer-cli-plugin-exports", | ||
"repository": "commercelayer/commercelayer-cli-plugin-exports", | ||
"bugs": "https://github.com/commercelayer/commercelayer-cli-plugin-exports/issues", | ||
"engines": { | ||
"node": "^16.13.0 || >=18.0.0" | ||
"node": ">=20.0.0" | ||
}, | ||
@@ -16,3 +18,2 @@ "files": [ | ||
], | ||
"homepage": "https://github.com/commercelayer/commercelayer-cli-plugin-exports", | ||
"keywords": [ | ||
@@ -44,3 +45,2 @@ "ecommerce", | ||
}, | ||
"repository": "commercelayer/commercelayer-cli-plugin-exports", | ||
"scripts": { | ||
@@ -58,6 +58,6 @@ "build": "rm -rf lib && tsc -b", | ||
"devDependencies": { | ||
"@commercelayer/cli-dev": "^2.0.5", | ||
"@commercelayer/eslint-config-ts": "^1.2.0", | ||
"@oclif/plugin-help": "^5.2.20", | ||
"@oclif/test": "^2.5.6", | ||
"@commercelayer/cli-dev": "beta", | ||
"@commercelayer/eslint-config-ts": "^1.3.0", | ||
"@oclif/plugin-help": "^6.0.12", | ||
"@oclif/test": "^3.1.16", | ||
"@semantic-release/changelog": "^6.0.3", | ||
@@ -67,18 +67,18 @@ "@semantic-release/git": "^10.0.1", | ||
"@types/mocha": "^10.0.6", | ||
"@types/node": "^20.9.4", | ||
"@types/node": "^20.11.17", | ||
"@types/node-notifier": "^8.0.5", | ||
"chai": "^4.3.10", | ||
"eslint": "^8.54.0", | ||
"mocha": "^10.2.0", | ||
"chai": "^4.4.1", | ||
"eslint": "^8.56.0", | ||
"mocha": "^10.3.0", | ||
"nyc": "^15.1.0", | ||
"oclif": "^4.0.4", | ||
"semantic-release": "^22.0.8", | ||
"ts-node": "^10.9.1", | ||
"typescript": "^5.3.2" | ||
"oclif": "^4.4.11", | ||
"semantic-release": "^23.0.2", | ||
"ts-node": "^10.9.2", | ||
"typescript": "^5.3.3" | ||
}, | ||
"dependencies": { | ||
"@commercelayer/cli-core": "^4.3.3", | ||
"@commercelayer/sdk": "^5.22.1", | ||
"@oclif/core": "^2.15.0", | ||
"axios": "^1.6.2", | ||
"@commercelayer/cli-core": "beta", | ||
"@commercelayer/sdk": "^5.31.1", | ||
"@oclif/core": "^3.19.1", | ||
"axios": "^1.6.7", | ||
"cli-table3": "^0.6.3", | ||
@@ -85,0 +85,0 @@ "node-notifier": "^10.0.1", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
97183
2163
0
1
+ Added@commercelayer/cli-core@6.0.0-beta.4(transitive)
+ Added@commercelayer/js-auth@6.7.0(transitive)
+ Added@oclif/core@3.27.04.2.0(transitive)
+ Addedansis@3.4.0(transitive)
+ Addedcli-spinners@2.9.2(transitive)
+ Addedcolor@4.2.3(transitive)
+ Addedcolor-string@1.9.1(transitive)
+ Addedis-arrayish@0.3.2(transitive)
+ Addedlilconfig@3.1.3(transitive)
+ Addedminimatch@9.0.5(transitive)
+ Addedsimple-swizzle@0.2.2(transitive)
- Removed@commercelayer/cli-core@4.12.1(transitive)
- Removed@commercelayer/js-auth@5.2.1(transitive)
- Removed@cspotcode/source-map-support@0.8.1(transitive)
- Removed@jridgewell/resolve-uri@3.1.2(transitive)
- Removed@jridgewell/sourcemap-codec@1.5.0(transitive)
- Removed@jridgewell/trace-mapping@0.3.9(transitive)
- Removed@oclif/core@2.16.0(transitive)
- Removed@tsconfig/node10@1.0.11(transitive)
- Removed@tsconfig/node12@1.0.11(transitive)
- Removed@tsconfig/node14@1.0.3(transitive)
- Removed@tsconfig/node16@1.0.4(transitive)
- Removedacorn@8.14.0(transitive)
- Removedacorn-walk@8.3.4(transitive)
- Removedarg@4.1.3(transitive)
- Removedaxios@1.6.8(transitive)
- Removedcreate-require@1.1.1(transitive)
- Removeddiff@4.0.2(transitive)
- Removedmake-error@1.3.6(transitive)
- Removedts-node@10.9.2(transitive)
- Removedtypescript@5.7.2(transitive)
- Removedv8-compile-cache-lib@3.0.1(transitive)
- Removedyn@3.1.1(transitive)
Updated@commercelayer/cli-core@beta
Updated@commercelayer/sdk@^5.31.1
Updated@oclif/core@^3.19.1
Updatedaxios@^1.6.7