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

@commercelayer/cli-plugin-resources

Package Overview
Dependencies
Maintainers
3
Versions
267
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 0.0.3 to 0.0.4

2

lib/commands/resources/available.d.ts
import { Command } from '@oclif/command';
export default class ResourcesAvailable extends Command {
static description: string;
static aliases: string[];
static aliases: never[];
static flags: {};

@@ -6,0 +6,0 @@ static args: never[];

@@ -16,3 +16,3 @@ "use strict";

ResourcesAvailable.description = 'list all the available Commerce Layer API resources';
ResourcesAvailable.aliases = ['resources'];
ResourcesAvailable.aliases = [];
ResourcesAvailable.flags = {};

@@ -19,0 +19,0 @@ ResourcesAvailable.args = [];

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

{"version":"0.0.3","commands":{"noc":{"id":"noc","pluginName":"@commercelayer/cli-plugin-resources","pluginType":"core","hidden":true,"aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true},"include":{"name":"include","type":"option","char":"i","description":"comma separated resources to include"},"fields":{"name":"fields","type":"option","char":"f","description":"comma separeted list of fields in the format [resource]=field1,field2..."}},"args":[]},"resources:available":{"id":"resources:available","description":"list all the available Commerce Layer API resources","pluginName":"@commercelayer/cli-plugin-resources","pluginType":"core","aliases":["resources"],"flags":{},"args":[]},"resources:create":{"id":"resources:create","description":"create a new resource","pluginName":"@commercelayer/cli-plugin-resources","pluginType":"core","aliases":["create","rc"],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true},"json":{"name":"json","type":"boolean","char":"j","description":"convert output in standard JSON format","allowNo":false},"unformatted":{"name":"unformatted","type":"boolean","char":"u","description":"print unformatted JSON output","allowNo":false},"attribute":{"name":"attribute","type":"option","char":"a","description":"define a resource attribute"},"relationship":{"name":"relationship","type":"option","char":"r","description":"define a relationship with another resource"}},"args":[]},"resources:delete":{"id":"resources:delete","description":"ddelete a resource","pluginName":"@commercelayer/cli-plugin-resources","pluginType":"core","aliases":["delete","rd"],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true},"json":{"name":"json","type":"boolean","char":"j","description":"convert output in standard JSON format","allowNo":false},"unformatted":{"name":"unformatted","type":"boolean","char":"u","description":"print unformatted JSON output","allowNo":false}},"args":[]},"resources:filters":{"id":"resources:filters","description":"shows a list of all available filter predicates","pluginName":"@commercelayer/cli-plugin-resources","pluginType":"core","aliases":[],"flags":{},"args":[]},"resources:list":{"id":"resources:list","description":"fetch a collection of resources","pluginName":"@commercelayer/cli-plugin-resources","pluginType":"core","aliases":["list","rl"],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true},"json":{"name":"json","type":"boolean","char":"j","description":"convert output in standard JSON format","allowNo":false},"unformatted":{"name":"unformatted","type":"boolean","char":"u","description":"print unformatted JSON output","allowNo":false},"include":{"name":"include","type":"option","char":"i","description":"comma separated resources to include"},"fields":{"name":"fields","type":"option","char":"f","description":"comma separeted list of fields in the format [resource]=field1,field2..."},"where":{"name":"where","type":"option","char":"w","description":"comma separated list of query filters"},"page":{"name":"page","type":"option","char":"p","description":"page number"},"pageSize":{"name":"pageSize","type":"option","char":"n","description":"number of elements per page"},"sort":{"name":"sort","type":"option","char":"s","description":"defines results ordering"}},"args":[{"name":"resource","description":"the resource type","required":true}]},"resources:retrieve":{"id":"resources:retrieve","description":"fetch a single resource","pluginName":"@commercelayer/cli-plugin-resources","pluginType":"core","aliases":["retrieve","rr"],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true},"json":{"name":"json","type":"boolean","char":"j","description":"convert output in standard JSON format","allowNo":false},"unformatted":{"name":"unformatted","type":"boolean","char":"u","description":"print unformatted JSON output","allowNo":false},"include":{"name":"include","type":"option","char":"i","description":"comma separated resources to include"},"fields":{"name":"fields","type":"option","char":"f","description":"comma separeted list of fields in the format [resource]=field1,field2..."}},"args":[{"name":"resource","description":"the resource type","required":true},{"name":"id","description":"id of the resource to retrieve","required":false}]},"resources:update":{"id":"resources:update","description":"update a resource","pluginName":"@commercelayer/cli-plugin-resources","pluginType":"core","aliases":["update","ru"],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true},"json":{"name":"json","type":"boolean","char":"j","description":"convert output in standard JSON format","allowNo":false},"unformatted":{"name":"unformatted","type":"boolean","char":"u","description":"print unformatted JSON output","allowNo":false}},"args":[]}}}
{"version":"0.0.4","commands":{"noc":{"id":"noc","pluginName":"@commercelayer/cli-plugin-resources","pluginType":"core","hidden":true,"aliases":[],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true},"include":{"name":"include","type":"option","char":"i","description":"comma separated resources to include"},"fields":{"name":"fields","type":"option","char":"f","description":"comma separeted list of fields in the format [resource]=field1,field2..."}},"args":[]},"resources:available":{"id":"resources:available","description":"list all the available Commerce Layer API resources","pluginName":"@commercelayer/cli-plugin-resources","pluginType":"core","aliases":[],"flags":{},"args":[]},"resources:create":{"id":"resources:create","description":"create a new resource","pluginName":"@commercelayer/cli-plugin-resources","pluginType":"core","aliases":["create","rc"],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true},"json":{"name":"json","type":"boolean","char":"j","description":"convert output in standard JSON format","allowNo":false},"unformatted":{"name":"unformatted","type":"boolean","char":"u","description":"print unformatted JSON output","allowNo":false},"attribute":{"name":"attribute","type":"option","char":"a","description":"define a resource attribute"},"relationship":{"name":"relationship","type":"option","char":"r","description":"define a relationship with another resource"}},"args":[]},"resources:delete":{"id":"resources:delete","description":"ddelete a resource","pluginName":"@commercelayer/cli-plugin-resources","pluginType":"core","aliases":["delete","rd"],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true},"json":{"name":"json","type":"boolean","char":"j","description":"convert output in standard JSON format","allowNo":false},"unformatted":{"name":"unformatted","type":"boolean","char":"u","description":"print unformatted JSON output","allowNo":false}},"args":[]},"resources:filters":{"id":"resources:filters","description":"shows a list of all available filter predicates","pluginName":"@commercelayer/cli-plugin-resources","pluginType":"core","aliases":[],"flags":{},"args":[]},"resources:list":{"id":"resources:list","description":"fetch a collection of resources","pluginName":"@commercelayer/cli-plugin-resources","pluginType":"core","aliases":["list","rl"],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true},"json":{"name":"json","type":"boolean","char":"j","description":"convert output in standard JSON format","allowNo":false},"unformatted":{"name":"unformatted","type":"boolean","char":"u","description":"print unformatted JSON output","allowNo":false},"include":{"name":"include","type":"option","char":"i","description":"comma separated resources to include"},"fields":{"name":"fields","type":"option","char":"f","description":"comma separeted list of fields in the format [resource]=field1,field2..."},"where":{"name":"where","type":"option","char":"w","description":"comma separated list of query filters"},"page":{"name":"page","type":"option","char":"p","description":"page number"},"pageSize":{"name":"pageSize","type":"option","char":"n","description":"number of elements per page"},"sort":{"name":"sort","type":"option","char":"s","description":"defines results ordering"}},"args":[{"name":"resource","description":"the resource type","required":true}]},"resources:retrieve":{"id":"resources:retrieve","description":"fetch a single resource","pluginName":"@commercelayer/cli-plugin-resources","pluginType":"core","aliases":["retrieve","rr"],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true},"json":{"name":"json","type":"boolean","char":"j","description":"convert output in standard JSON format","allowNo":false},"unformatted":{"name":"unformatted","type":"boolean","char":"u","description":"print unformatted JSON output","allowNo":false},"include":{"name":"include","type":"option","char":"i","description":"comma separated resources to include"},"fields":{"name":"fields","type":"option","char":"f","description":"comma separeted list of fields in the format [resource]=field1,field2..."}},"args":[{"name":"resource","description":"the resource type","required":true},{"name":"id","description":"id of the resource to retrieve","required":false}]},"resources:update":{"id":"resources:update","description":"update a resource","pluginName":"@commercelayer/cli-plugin-resources","pluginType":"core","aliases":["update","ru"],"flags":{"organization":{"name":"organization","type":"option","char":"o","description":"the slug of your organization","required":true},"domain":{"name":"domain","type":"option","char":"d","hidden":true,"required":false},"accessToken":{"name":"accessToken","type":"option","hidden":true,"required":true},"json":{"name":"json","type":"boolean","char":"j","description":"convert output in standard JSON format","allowNo":false},"unformatted":{"name":"unformatted","type":"boolean","char":"u","description":"print unformatted JSON output","allowNo":false}},"args":[]}}}
{
"name": "@commercelayer/cli-plugin-resources",
"description": "Commerce Layer CLI Resources plugin",
"version": "0.0.3",
"version": "0.0.4",
"author": "Pierluigi Viti <pierluigi@commercelayer.io>",

@@ -49,3 +49,3 @@ "bin": {

"resources": {
"description": "execute operation on resources"
"description": "execute CRUD operations on resources"
}

@@ -52,0 +52,0 @@ }

@@ -22,3 +22,3 @@ @commercelayer/cli-plugin-resources

$ cl-resources (-v|--version|version)
@commercelayer/cli-plugin-resources/0.0.3 darwin-x64 node-v14.16.0
@commercelayer/cli-plugin-resources/0.0.4 darwin-x64 node-v14.16.0
$ cl-resources --help [COMMAND]

@@ -47,8 +47,5 @@ USAGE

$ cl-resources resources:available
ALIASES
$ cl-resources resources
```
_See code: [src/commands/resources/available.ts](https://github.com/commercelayer/cli-plugin-resources/blob/v0.0.3/src/commands/resources/available.ts)_
_See code: [src/commands/resources/available.ts](https://github.com/commercelayer/cli-plugin-resources/blob/v0.0.4/src/commands/resources/available.ts)_

@@ -75,3 +72,3 @@ ## `cl-resources resources:create`

_See code: [src/commands/resources/create.ts](https://github.com/commercelayer/cli-plugin-resources/blob/v0.0.3/src/commands/resources/create.ts)_
_See code: [src/commands/resources/create.ts](https://github.com/commercelayer/cli-plugin-resources/blob/v0.0.4/src/commands/resources/create.ts)_

@@ -96,3 +93,3 @@ ## `cl-resources resources:delete`

_See code: [src/commands/resources/delete.ts](https://github.com/commercelayer/cli-plugin-resources/blob/v0.0.3/src/commands/resources/delete.ts)_
_See code: [src/commands/resources/delete.ts](https://github.com/commercelayer/cli-plugin-resources/blob/v0.0.4/src/commands/resources/delete.ts)_

@@ -108,3 +105,3 @@ ## `cl-resources resources:filters`

_See code: [src/commands/resources/filters.ts](https://github.com/commercelayer/cli-plugin-resources/blob/v0.0.3/src/commands/resources/filters.ts)_
_See code: [src/commands/resources/filters.ts](https://github.com/commercelayer/cli-plugin-resources/blob/v0.0.4/src/commands/resources/filters.ts)_

@@ -138,3 +135,3 @@ ## `cl-resources resources:list RESOURCE`

_See code: [src/commands/resources/list.ts](https://github.com/commercelayer/cli-plugin-resources/blob/v0.0.3/src/commands/resources/list.ts)_
_See code: [src/commands/resources/list.ts](https://github.com/commercelayer/cli-plugin-resources/blob/v0.0.4/src/commands/resources/list.ts)_

@@ -165,3 +162,3 @@ ## `cl-resources resources:retrieve RESOURCE [ID]`

_See code: [src/commands/resources/retrieve.ts](https://github.com/commercelayer/cli-plugin-resources/blob/v0.0.3/src/commands/resources/retrieve.ts)_
_See code: [src/commands/resources/retrieve.ts](https://github.com/commercelayer/cli-plugin-resources/blob/v0.0.4/src/commands/resources/retrieve.ts)_

@@ -186,3 +183,3 @@ ## `cl-resources resources:update`

_See code: [src/commands/resources/update.ts](https://github.com/commercelayer/cli-plugin-resources/blob/v0.0.3/src/commands/resources/update.ts)_
_See code: [src/commands/resources/update.ts](https://github.com/commercelayer/cli-plugin-resources/blob/v0.0.4/src/commands/resources/update.ts)_
<!-- commandsstop -->
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