Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@commercelayer/cli-plugin-imports

Package Overview
Dependencies
Maintainers
6
Versions
93
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@commercelayer/cli-plugin-imports - npm Package Compare versions

Comparing version 3.3.0 to 3.3.1

4

lib/chunk.js

@@ -18,2 +18,6 @@ "use strict";

parent_resource_id: imp.parent_resource_id,
/*
cleanup_records: (++chunkNum === 1) ? imp.cleanup_records : false,
chunk_number: chunkNum,
*/
cleanup_records: false,

@@ -20,0 +24,0 @@ chunk_number: ++chunkNum,

2

lib/commands/imports/create.d.ts

@@ -13,3 +13,3 @@ import Command from '../../base';

csv: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
delimiter: import("@oclif/core/lib/interfaces").OptionFlag<string>;
delimiter: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
blind: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;

@@ -16,0 +16,0 @@ quiet: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;

@@ -207,2 +207,8 @@ "use strict";

}),
/*
cleanup: flags.boolean({
char: 'c',
description: 'delete all other existing items',
}),
*/
inputs: base_1.Flags.string({

@@ -223,3 +229,2 @@ char: 'i',

dependsOn: ['csv'],
default: ',',
}),

@@ -226,0 +231,0 @@ blind: base_1.Flags.boolean({

@@ -1,1 +0,1 @@

{"version":"3.3.0","commands":{"imports:create":{"id":"imports:create","description":"create a new import","strict":true,"pluginName":"@commercelayer/cli-plugin-imports","pluginAlias":"@commercelayer/cli-plugin-imports","pluginType":"core","aliases":["imp:create","import"],"examples":["$ commercelayer imports:create -t stock_items -p <stock_location-id> -i <input-file-path>","$ cl imp:create -t skus -i <input-file-path>"],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","hidden":true,"required":true,"multiple":false},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false,"multiple":false,"dependsOn":["organization"]},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true,"multiple":false},"type":{"name":"type","type":"option","char":"t","description":"the type of resource being imported","required":true,"helpValue":"bundles|coupons|customer_subscriptions|customers|...","multiple":false,"options":["bundles","coupons","customer_subscriptions","customers","gift_cards","orders","prices","sku_lists","sku_list_items","sku_options","skus","stock_items","tax_categories"]},"parent":{"name":"parent","type":"option","char":"p","description":"the id of the parent resource to be associated with imported data","multiple":false},"inputs":{"name":"inputs","type":"option","char":"i","description":"the path of the file containing the data to import","required":true,"multiple":false},"csv":{"name":"csv","type":"boolean","char":"C","description":"accept input file in CSV format","allowNo":false,"dependsOn":["inputs"]},"delimiter":{"name":"delimiter","type":"option","char":"D","description":"the delimiter character used in the CSV input file (one of ',', ';', '|', TAB)","helpValue":"(,|;|||TAB)","multiple":false,"options":[",",";","|","TAB"],"dependsOn":["csv"],"default":","},"blind":{"name":"blind","type":"boolean","char":"b","description":"execute in blind mode without showing the progress monitor","allowNo":false,"exclusive":["quiet","silent"]},"quiet":{"name":"quiet","type":"boolean","char":"q","description":"execute command without showing warning messages","allowNo":false,"exclusive":["blind"]}},"args":[{"name":"fake-arg","description":"fake argument","required":false,"hidden":true}]},"imports:delete":{"id":"imports:delete","description":"delete an existing import","strict":true,"pluginName":"@commercelayer/cli-plugin-imports","pluginAlias":"@commercelayer/cli-plugin-imports","pluginType":"core","aliases":["imp:delete"],"examples":["$ commercelayer imports:delete <import-id>>","$ cl imp:delete <import-id>>"],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","hidden":true,"required":true,"multiple":false},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false,"multiple":false,"dependsOn":["organization"]},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true,"multiple":false}},"args":[{"name":"id","description":"unique id of the import","required":true,"hidden":false}]},"imports:details":{"id":"imports:details","description":"show the details of an existing import","strict":true,"pluginName":"@commercelayer/cli-plugin-imports","pluginAlias":"@commercelayer/cli-plugin-imports","pluginType":"core","aliases":["imp:details"],"examples":["$ commercelayer imports:details <import-id>","$ cl imp:details <import-id> -i","$ cl imp:details <import-id> -i -l"],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","hidden":true,"required":true,"multiple":false},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false,"multiple":false,"dependsOn":["organization"]},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true,"multiple":false},"inputs":{"name":"inputs","type":"boolean","char":"i","description":"show input items associated with the import","allowNo":false},"logs":{"name":"logs","type":"boolean","char":"l","description":"show warning and error logs related to the import process","allowNo":false},"save-inputs":{"name":"save-inputs","type":"option","char":"S","description":"save import inputs to local file","multiple":false,"dependsOn":["inputs"]}},"args":[{"name":"id","description":"unique id of the import","required":true,"hidden":false}]},"imports:group":{"id":"imports:group","description":"list all the imports related to an import group","strict":true,"pluginName":"@commercelayer/cli-plugin-imports","pluginAlias":"@commercelayer/cli-plugin-imports","pluginType":"core","aliases":["imp:group"],"examples":["$ commercelayer imports:group <group-id>","$ cl imp:group <group-id>"],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","hidden":true,"required":true,"multiple":false},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false,"multiple":false,"dependsOn":["organization"]},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true,"multiple":false}},"args":[{"name":"group_id","description":"unique id of the group import","required":true,"hidden":false}]},"imports":{"id":"imports","description":"list all the created imports","strict":true,"pluginName":"@commercelayer/cli-plugin-imports","pluginAlias":"@commercelayer/cli-plugin-imports","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","hidden":true,"required":true,"multiple":false},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false,"multiple":false,"dependsOn":["organization"]},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true,"multiple":false},"all":{"name":"all","type":"boolean","char":"A","description":"show all imports instead of first 25 only","allowNo":false,"exclusive":["limit"]},"type":{"name":"type","type":"option","char":"t","description":"the type of resource imported","multiple":false,"options":["bundles","coupons","customer_subscriptions","customers","gift_cards","orders","prices","sku_lists","sku_list_items","sku_options","skus","stock_items","tax_categories"]},"group":{"name":"group","type":"option","char":"g","description":"the group ID associated to the import in case of multi-chunk imports","multiple":false,"exclusive":["all, limit"]},"status":{"name":"status","type":"option","char":"s","description":"the import job status","multiple":false,"options":["in_progress","pending","completed","interrupted"]},"errors":{"name":"errors","type":"boolean","char":"e","description":"show only imports with errors","allowNo":false},"warnings":{"name":"warnings","type":"boolean","char":"w","description":"show only import with warnings","allowNo":false},"limit":{"name":"limit","type":"option","char":"l","description":"limit number of imports in output","multiple":false,"exclusive":["all"]}},"args":[]},"imports:list":{"id":"imports:list","description":"list all the created imports","strict":true,"pluginName":"@commercelayer/cli-plugin-imports","pluginAlias":"@commercelayer/cli-plugin-imports","pluginType":"core","aliases":["imports","imp:list"],"examples":["$ commercelayer imports","$ cl imports:list -A","$ cl imp:list"],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","hidden":true,"required":true,"multiple":false},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false,"multiple":false,"dependsOn":["organization"]},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true,"multiple":false},"all":{"name":"all","type":"boolean","char":"A","description":"show all imports instead of first 25 only","allowNo":false,"exclusive":["limit"]},"type":{"name":"type","type":"option","char":"t","description":"the type of resource imported","multiple":false,"options":["bundles","coupons","customer_subscriptions","customers","gift_cards","orders","prices","sku_lists","sku_list_items","sku_options","skus","stock_items","tax_categories"]},"group":{"name":"group","type":"option","char":"g","description":"the group ID associated to the import in case of multi-chunk imports","multiple":false,"exclusive":["all, limit"]},"status":{"name":"status","type":"option","char":"s","description":"the import job status","multiple":false,"options":["in_progress","pending","completed","interrupted"]},"errors":{"name":"errors","type":"boolean","char":"e","description":"show only imports with errors","allowNo":false},"warnings":{"name":"warnings","type":"boolean","char":"w","description":"show only import with warnings","allowNo":false},"limit":{"name":"limit","type":"option","char":"l","description":"limit number of imports in output","multiple":false,"exclusive":["all"]}},"args":[{"name":"fake-arg","description":"fake argument","required":false,"hidden":true}]},"imports:noc":{"id":"imports:noc","strict":true,"pluginName":"@commercelayer/cli-plugin-imports","pluginAlias":"@commercelayer/cli-plugin-imports","pluginType":"core","hidden":true,"aliases":[],"flags":{},"args":[]},"imports:types":{"id":"imports:types","description":"show online documentation for supported resources","strict":true,"pluginName":"@commercelayer/cli-plugin-imports","pluginAlias":"@commercelayer/cli-plugin-imports","pluginType":"core","aliases":["imp:types"],"examples":["$ commercelayer imports:types","$ cl imp:types"],"flags":{},"args":[]}}}
{"version":"3.3.1","commands":{"imports:create":{"id":"imports:create","description":"create a new import","strict":true,"pluginName":"@commercelayer/cli-plugin-imports","pluginAlias":"@commercelayer/cli-plugin-imports","pluginType":"core","aliases":["imp:create","import"],"examples":["$ commercelayer imports:create -t stock_items -p <stock_location-id> -i <input-file-path>","$ cl imp:create -t skus -i <input-file-path>"],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","hidden":true,"required":true,"multiple":false},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false,"multiple":false,"dependsOn":["organization"]},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true,"multiple":false},"type":{"name":"type","type":"option","char":"t","description":"the type of resource being imported","required":true,"helpValue":"bundles|coupons|customer_subscriptions|customers|...","multiple":false,"options":["bundles","coupons","customer_subscriptions","customers","gift_cards","orders","prices","sku_lists","sku_list_items","sku_options","skus","stock_items","tax_categories"]},"parent":{"name":"parent","type":"option","char":"p","description":"the id of the parent resource to be associated with imported data","multiple":false},"inputs":{"name":"inputs","type":"option","char":"i","description":"the path of the file containing the data to import","required":true,"multiple":false},"csv":{"name":"csv","type":"boolean","char":"C","description":"accept input file in CSV format","allowNo":false,"dependsOn":["inputs"]},"delimiter":{"name":"delimiter","type":"option","char":"D","description":"the delimiter character used in the CSV input file (one of ',', ';', '|', TAB)","helpValue":"(,|;|||TAB)","multiple":false,"options":[",",";","|","TAB"],"dependsOn":["csv"]},"blind":{"name":"blind","type":"boolean","char":"b","description":"execute in blind mode without showing the progress monitor","allowNo":false,"exclusive":["quiet","silent"]},"quiet":{"name":"quiet","type":"boolean","char":"q","description":"execute command without showing warning messages","allowNo":false,"exclusive":["blind"]}},"args":[{"name":"fake-arg","description":"fake argument","required":false,"hidden":true}]},"imports:delete":{"id":"imports:delete","description":"delete an existing import","strict":true,"pluginName":"@commercelayer/cli-plugin-imports","pluginAlias":"@commercelayer/cli-plugin-imports","pluginType":"core","aliases":["imp:delete"],"examples":["$ commercelayer imports:delete <import-id>>","$ cl imp:delete <import-id>>"],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","hidden":true,"required":true,"multiple":false},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false,"multiple":false,"dependsOn":["organization"]},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true,"multiple":false}},"args":[{"name":"id","description":"unique id of the import","required":true,"hidden":false}]},"imports:details":{"id":"imports:details","description":"show the details of an existing import","strict":true,"pluginName":"@commercelayer/cli-plugin-imports","pluginAlias":"@commercelayer/cli-plugin-imports","pluginType":"core","aliases":["imp:details"],"examples":["$ commercelayer imports:details <import-id>","$ cl imp:details <import-id> -i","$ cl imp:details <import-id> -i -l"],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","hidden":true,"required":true,"multiple":false},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false,"multiple":false,"dependsOn":["organization"]},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true,"multiple":false},"inputs":{"name":"inputs","type":"boolean","char":"i","description":"show input items associated with the import","allowNo":false},"logs":{"name":"logs","type":"boolean","char":"l","description":"show warning and error logs related to the import process","allowNo":false},"save-inputs":{"name":"save-inputs","type":"option","char":"S","description":"save import inputs to local file","multiple":false,"dependsOn":["inputs"]}},"args":[{"name":"id","description":"unique id of the import","required":true,"hidden":false}]},"imports:group":{"id":"imports:group","description":"list all the imports related to an import group","strict":true,"pluginName":"@commercelayer/cli-plugin-imports","pluginAlias":"@commercelayer/cli-plugin-imports","pluginType":"core","aliases":["imp:group"],"examples":["$ commercelayer imports:group <group-id>","$ cl imp:group <group-id>"],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","hidden":true,"required":true,"multiple":false},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false,"multiple":false,"dependsOn":["organization"]},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true,"multiple":false}},"args":[{"name":"group_id","description":"unique id of the group import","required":true,"hidden":false}]},"imports":{"id":"imports","description":"list all the created imports","strict":true,"pluginName":"@commercelayer/cli-plugin-imports","pluginAlias":"@commercelayer/cli-plugin-imports","pluginType":"core","aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","hidden":true,"required":true,"multiple":false},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false,"multiple":false,"dependsOn":["organization"]},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true,"multiple":false},"all":{"name":"all","type":"boolean","char":"A","description":"show all imports instead of first 25 only","allowNo":false,"exclusive":["limit"]},"type":{"name":"type","type":"option","char":"t","description":"the type of resource imported","multiple":false,"options":["bundles","coupons","customer_subscriptions","customers","gift_cards","orders","prices","sku_lists","sku_list_items","sku_options","skus","stock_items","tax_categories"]},"group":{"name":"group","type":"option","char":"g","description":"the group ID associated to the import in case of multi-chunk imports","multiple":false,"exclusive":["all, limit"]},"status":{"name":"status","type":"option","char":"s","description":"the import job status","multiple":false,"options":["in_progress","pending","completed","interrupted"]},"errors":{"name":"errors","type":"boolean","char":"e","description":"show only imports with errors","allowNo":false},"warnings":{"name":"warnings","type":"boolean","char":"w","description":"show only import with warnings","allowNo":false},"limit":{"name":"limit","type":"option","char":"l","description":"limit number of imports in output","multiple":false,"exclusive":["all"]}},"args":[]},"imports:list":{"id":"imports:list","description":"list all the created imports","strict":true,"pluginName":"@commercelayer/cli-plugin-imports","pluginAlias":"@commercelayer/cli-plugin-imports","pluginType":"core","aliases":["imports","imp:list"],"examples":["$ commercelayer imports","$ cl imports:list -A","$ cl imp:list"],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","hidden":true,"required":true,"multiple":false},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false,"multiple":false,"dependsOn":["organization"]},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true,"multiple":false},"all":{"name":"all","type":"boolean","char":"A","description":"show all imports instead of first 25 only","allowNo":false,"exclusive":["limit"]},"type":{"name":"type","type":"option","char":"t","description":"the type of resource imported","multiple":false,"options":["bundles","coupons","customer_subscriptions","customers","gift_cards","orders","prices","sku_lists","sku_list_items","sku_options","skus","stock_items","tax_categories"]},"group":{"name":"group","type":"option","char":"g","description":"the group ID associated to the import in case of multi-chunk imports","multiple":false,"exclusive":["all, limit"]},"status":{"name":"status","type":"option","char":"s","description":"the import job status","multiple":false,"options":["in_progress","pending","completed","interrupted"]},"errors":{"name":"errors","type":"boolean","char":"e","description":"show only imports with errors","allowNo":false},"warnings":{"name":"warnings","type":"boolean","char":"w","description":"show only import with warnings","allowNo":false},"limit":{"name":"limit","type":"option","char":"l","description":"limit number of imports in output","multiple":false,"exclusive":["all"]}},"args":[{"name":"fake-arg","description":"fake argument","required":false,"hidden":true}]},"imports:noc":{"id":"imports:noc","strict":true,"pluginName":"@commercelayer/cli-plugin-imports","pluginAlias":"@commercelayer/cli-plugin-imports","pluginType":"core","hidden":true,"aliases":[],"flags":{},"args":[]},"imports:types":{"id":"imports:types","description":"show online documentation for supported resources","strict":true,"pluginName":"@commercelayer/cli-plugin-imports","pluginAlias":"@commercelayer/cli-plugin-imports","pluginType":"core","aliases":["imp:types"],"examples":["$ commercelayer imports:types","$ cl imp:types"],"flags":{},"args":[]}}}
{
"name": "@commercelayer/cli-plugin-imports",
"description": "Commerce Layer CLI Imports plugin",
"version": "3.3.0",
"version": "3.3.1",
"author": "Pierluigi Viti <pierluigi@commercelayer.io>",

@@ -47,12 +47,12 @@ "bugs": "https://github.com/commercelayer/commercelayer-cli-plugin-imports/issues",

"devDependencies": {
"@commercelayer/cli-dev": "^0.1.10",
"@commercelayer/cli-dev": "^1.0.0",
"@commercelayer/eslint-config-ts": "^0.1.4",
"@oclif/plugin-help": "^5.1.19",
"@oclif/test": "^2.2.12",
"@oclif/test": "^2.2.13",
"@types/chai": "^4.3.4",
"@types/cli-progress": "^3.11.0",
"@types/mocha": "^10.0.0",
"@types/node": "^18.11.9",
"@types/mocha": "^10.0.1",
"@types/node": "^18.11.11",
"chai": "^4.3.7",
"eslint": "^8.28.0",
"eslint": "^8.29.0",
"mocha": "^10.1.0",

@@ -64,8 +64,8 @@ "nyc": "^15.1.0",

"dependencies": {
"@commercelayer/cli-core": "^2.0.0",
"@commercelayer/cli-core": "^2.0.4",
"@commercelayer/js-auth": "^2.3.0",
"@commercelayer/sdk": "^4.18.0",
"@commercelayer/sdk": "^4.20.0",
"@fast-csv/parse": "^4.3.6",
"@oclif/core": "^1.20.4",
"axios": "^1.1.3",
"axios": "^1.2.1",
"cli-progress": "^3.11.2",

@@ -72,0 +72,0 @@ "cli-table3": "^0.6.3",

@@ -54,4 +54,4 @@ # cli-plugin-imports

-C, --csv accept input file in CSV format
-D, --delimiter=(,|;|||TAB) [default: ,] the delimiter character used in the CSV
input file (one of ',', ';', '|', TAB)
-D, --delimiter=(,|;|||TAB) the delimiter character used in the CSV input file
(one of ',', ';', '|', TAB)
-b, --blind execute in blind mode without showing the progress

@@ -224,4 +224,4 @@ monitor

-C, --csv accept input file in CSV format
-D, --delimiter=(,|;|||TAB) [default: ,] the delimiter character used in the CSV
input file (one of ',', ';', '|', TAB)
-D, --delimiter=(,|;|||TAB) the delimiter character used in the CSV input file
(one of ',', ';', '|', TAB)
-b, --blind execute in blind mode without showing the progress

@@ -289,4 +289,4 @@ monitor

-C, --csv accept input file in CSV format
-D, --delimiter=(,|;|||TAB) [default: ,] the delimiter character used in the CSV
input file (one of ',', ';', '|', TAB)
-D, --delimiter=(,|;|||TAB) the delimiter character used in the CSV input file
(one of ',', ';', '|', TAB)
-b, --blind execute in blind mode without showing the progress

@@ -293,0 +293,0 @@ monitor

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc