@contentstack/cli-command 1.0.2 → 1.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/package.json +7 -10
- package/types/index.d.ts +24 -0
- package/types/interfaces/index.d.ts +5 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentstack/cli-command",
|
|
3
3
|
"description": "Contentstack CLI plugin for configuration",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.4",
|
|
5
5
|
"author": "Contentstack",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"types": "./types/index.d.ts",
|
|
@@ -17,13 +17,12 @@
|
|
|
17
17
|
"format": "eslint src/**/*.ts --fix"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@contentstack/cli-utilities": "^1.0.
|
|
21
|
-
"@contentstack/management": "^1.
|
|
20
|
+
"@contentstack/cli-utilities": "^1.0.5",
|
|
21
|
+
"@contentstack/management": "^1.6.0",
|
|
22
22
|
"@oclif/command": "^1.8.16",
|
|
23
23
|
"contentstack": "^3.10.1"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@oclif/plugin-help": "^5.1.12",
|
|
27
26
|
"@oclif/test": "^1.2.8",
|
|
28
27
|
"@types/chai": "^4.2.18",
|
|
29
28
|
"@types/mkdirp": "^1.0.1",
|
|
@@ -35,17 +34,18 @@
|
|
|
35
34
|
"eslint": "^8.18.0",
|
|
36
35
|
"eslint-config-oclif": "^3.1.0",
|
|
37
36
|
"eslint-config-oclif-typescript": "^0.1.0",
|
|
38
|
-
"mocha": "
|
|
37
|
+
"mocha": "10.1.0",
|
|
39
38
|
"nyc": "^15.1.0",
|
|
40
39
|
"rimraf": "^2.7.1",
|
|
41
40
|
"sinon": "^11.1.1",
|
|
42
41
|
"ts-node": "^8.10.2",
|
|
43
|
-
"typescript": "^4.
|
|
42
|
+
"typescript": "^4.9.3"
|
|
44
43
|
},
|
|
45
44
|
"engines": {
|
|
46
45
|
"node": ">=8.0.0"
|
|
47
46
|
},
|
|
48
47
|
"files": [
|
|
48
|
+
"/types",
|
|
49
49
|
"/lib",
|
|
50
50
|
"/npm-shrinkwrap.json",
|
|
51
51
|
"/oclif.manifest.json"
|
|
@@ -63,11 +63,8 @@
|
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
65
|
"oclif": {
|
|
66
|
-
"commands": "./
|
|
66
|
+
"commands": "./lib/commands",
|
|
67
67
|
"bin": "csdx",
|
|
68
|
-
"devPlugins": [
|
|
69
|
-
"@oclif/plugin-help"
|
|
70
|
-
],
|
|
71
68
|
"repositoryPrefix": "<%- repo %>/blob/main/packages/contentstack-command/<%- commandPath %>"
|
|
72
69
|
},
|
|
73
70
|
"repository": "contentstack/cli"
|
package/types/index.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Command, flags } from '@oclif/command';
|
|
2
|
+
import { Region } from './interfaces';
|
|
3
|
+
declare abstract class ContentstackCommand extends Command {
|
|
4
|
+
private _managementAPIClient;
|
|
5
|
+
private _email;
|
|
6
|
+
private _region;
|
|
7
|
+
private _rateLimit;
|
|
8
|
+
private _authToken;
|
|
9
|
+
private _deliveryAPIClient;
|
|
10
|
+
get context(): any;
|
|
11
|
+
get managementAPIClient(): object;
|
|
12
|
+
set managementAPIClient(params: object);
|
|
13
|
+
get email(): string;
|
|
14
|
+
get deliveryAPIClient(): any;
|
|
15
|
+
get region(): Region;
|
|
16
|
+
get rateLimit(): string | 5;
|
|
17
|
+
get cmaHost(): string;
|
|
18
|
+
get cdaHost(): string;
|
|
19
|
+
get cdaAPIUrl(): string;
|
|
20
|
+
get cmaAPIUrl(): string;
|
|
21
|
+
get authToken(): string;
|
|
22
|
+
getToken(alias: any): any;
|
|
23
|
+
}
|
|
24
|
+
export { ContentstackCommand as Command, flags };
|