@commercelayer/cli-plugin-provisioning 2.0.10 → 2.1.1
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/bin/run.js +3 -3
- package/lib/base.d.ts +8 -8
- package/lib/base.js +224 -165
- package/lib/commands/provisioning/create.d.ts +2 -2
- package/lib/commands/provisioning/create.js +46 -34
- package/lib/commands/provisioning/delete.d.ts +2 -2
- package/lib/commands/provisioning/delete.js +25 -14
- package/lib/commands/provisioning/exec.d.ts +1 -1
- package/lib/commands/provisioning/exec.js +22 -13
- package/lib/commands/provisioning/fetch.d.ts +3 -3
- package/lib/commands/provisioning/fetch.js +25 -17
- package/lib/commands/provisioning/get.d.ts +3 -3
- package/lib/commands/provisioning/get.js +8 -8
- package/lib/commands/provisioning/list.d.ts +3 -3
- package/lib/commands/provisioning/list.js +42 -38
- package/lib/commands/provisioning/noc.d.ts +1 -1
- package/lib/commands/provisioning/noc.js +1 -1
- package/lib/commands/provisioning/relationship.d.ts +3 -3
- package/lib/commands/provisioning/relationship.js +39 -23
- package/lib/commands/provisioning/resources.d.ts +1 -1
- package/lib/commands/provisioning/resources.js +22 -12
- package/lib/commands/provisioning/retrieve.d.ts +2 -2
- package/lib/commands/provisioning/retrieve.js +36 -30
- package/lib/commands/provisioning/update.d.ts +3 -3
- package/lib/commands/provisioning/update.js +60 -41
- package/lib/csv.d.ts +1 -1
- package/lib/csv.js +30 -27
- package/lib/lang/curl.d.ts +2 -2
- package/lib/lang/curl.js +4 -2
- package/lib/lang/index.d.ts +5 -5
- package/lib/lang/index.js +26 -18
- package/lib/lang/node.d.ts +2 -2
- package/lib/lang/node.js +7 -7
- package/lib/lang/request.d.ts +3 -3
- package/lib/lang/request.js +37 -30
- package/lib/lang/ruby.d.ts +2 -2
- package/lib/lang/ruby.js +1 -1
- package/lib/output.d.ts +1 -1
- package/lib/output.js +3 -3
- package/lib/util/resources/available.js +33 -8
- package/lib/util/resources/build.js +35 -19
- package/lib/util/resources/index.d.ts +3 -3
- package/lib/util/resources/index.js +3 -3
- package/lib/util/timezones.js +127 -115
- package/oclif.manifest.json +1 -1
- package/package.json +85 -87
package/bin/run.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
(async () => {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
})()
|
|
4
|
+
const oclif = await import("@oclif/core");
|
|
5
|
+
await oclif.execute({ development: false, dir: __dirname });
|
|
6
|
+
})();
|
package/lib/base.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { type
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import type
|
|
1
|
+
import type { KeyVal, KeyValArray, KeyValObj, KeyValRel, KeyValSort, KeyValString, ResAttributes } from "@commercelayer/cli-core";
|
|
2
|
+
import { type CommerceLayerProvisioningClient, type QueryParams } from "@commercelayer/provisioning-sdk";
|
|
3
|
+
import { Args, Command, ux as cliux, Flags } from "@oclif/core";
|
|
4
|
+
import type { CommandError } from "@oclif/core/lib/interfaces";
|
|
5
|
+
import { type RequestData } from "./lang";
|
|
6
|
+
import { type Resource } from "./util/resources";
|
|
7
7
|
export declare abstract class BaseCommand extends Command {
|
|
8
8
|
static baseFlags: {
|
|
9
9
|
domain: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
@@ -39,7 +39,7 @@ export declare abstract class BaseFilterCommand extends BaseCommand {
|
|
|
39
39
|
curl: import("@oclif/core/lib/interfaces").BooleanFlag<string>;
|
|
40
40
|
node: import("@oclif/core/lib/interfaces").BooleanFlag<string>;
|
|
41
41
|
headers: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
42
|
-
|
|
42
|
+
"headers-only": import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
43
43
|
};
|
|
44
44
|
static args: {
|
|
45
45
|
[x: string]: import("@oclif/core/lib/interfaces").Arg<any, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
@@ -66,4 +66,4 @@ export default abstract class extends BaseFilterCommand {
|
|
|
66
66
|
resource: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
|
|
67
67
|
};
|
|
68
68
|
}
|
|
69
|
-
export {
|
|
69
|
+
export { Args, cliux, Flags };
|