endpoints-sdk-cli 2.4.0 → 2.4.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/README.md +4 -4
- package/lib/classes/Config.d.ts +18 -8
- package/lib/classes/Config.js +3 -5
- package/lib/endpoints/m2m-core.d.ts +4 -0
- package/lib/endpoints/m2m-core.js +7 -0
- package/lib/endpoints/m2m-core.v1.d.ts +5784 -0
- package/lib/endpoints/m2m-core.v1.js +7657 -0
- package/lib/endpoints/m2m-notifications.d.ts +4 -0
- package/lib/endpoints/m2m-notifications.js +7 -0
- package/lib/endpoints/m2m-notifications.v1.d.ts +86 -0
- package/lib/endpoints/m2m-notifications.v1.js +146 -0
- package/lib/endpoints/m2m-users.d.ts +4 -0
- package/lib/endpoints/m2m-users.js +7 -0
- package/lib/endpoints/m2m-users.v1.d.ts +220 -0
- package/lib/endpoints/m2m-users.v1.js +577 -0
- package/lib/endpoints/sumyca.d.ts +8 -0
- package/lib/endpoints/sumyca.guest-v3.d.ts +1104 -0
- package/lib/endpoints/sumyca.guest-v3.js +1294 -0
- package/lib/endpoints/sumyca.js +9 -0
- package/lib/endpoints/sumyca.manager-v3.d.ts +2023 -0
- package/lib/endpoints/sumyca.manager-v3.js +2610 -0
- package/lib/endpoints/sumyca.v3.d.ts +3027 -0
- package/lib/endpoints/sumyca.v3.js +3756 -0
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ $ npm install -g endpoints-sdk-cli
|
|
|
18
18
|
$ mes COMMAND
|
|
19
19
|
running command...
|
|
20
20
|
$ mes (-v|--version|version)
|
|
21
|
-
endpoints-sdk-cli/2.4.
|
|
21
|
+
endpoints-sdk-cli/2.4.1 darwin-x64 node-v18.15.0
|
|
22
22
|
$ mes --help [COMMAND]
|
|
23
23
|
USAGE
|
|
24
24
|
$ mes COMMAND
|
|
@@ -75,7 +75,7 @@ EXAMPLES
|
|
|
75
75
|
$ mes add https://github.com/[username/repository].git
|
|
76
76
|
```
|
|
77
77
|
|
|
78
|
-
_See code: [src/commands/add.ts](https://github.com/matsuri-tech/endpoints-sdk-cli/blob/v2.4.
|
|
78
|
+
_See code: [src/commands/add.ts](https://github.com/matsuri-tech/endpoints-sdk-cli/blob/v2.4.1/src/commands/add.ts)_
|
|
79
79
|
|
|
80
80
|
## `mes help [COMMAND]`
|
|
81
81
|
|
|
@@ -103,7 +103,7 @@ USAGE
|
|
|
103
103
|
$ mes install
|
|
104
104
|
```
|
|
105
105
|
|
|
106
|
-
_See code: [src/commands/install.ts](https://github.com/matsuri-tech/endpoints-sdk-cli/blob/v2.4.
|
|
106
|
+
_See code: [src/commands/install.ts](https://github.com/matsuri-tech/endpoints-sdk-cli/blob/v2.4.1/src/commands/install.ts)_
|
|
107
107
|
|
|
108
108
|
## `mes update [SERVICE]`
|
|
109
109
|
|
|
@@ -114,7 +114,7 @@ USAGE
|
|
|
114
114
|
$ mes update [SERVICE]
|
|
115
115
|
```
|
|
116
116
|
|
|
117
|
-
_See code: [src/commands/update.ts](https://github.com/matsuri-tech/endpoints-sdk-cli/blob/v2.4.
|
|
117
|
+
_See code: [src/commands/update.ts](https://github.com/matsuri-tech/endpoints-sdk-cli/blob/v2.4.1/src/commands/update.ts)_
|
|
118
118
|
<!-- commandsstop -->
|
|
119
119
|
|
|
120
120
|
|
package/lib/classes/Config.d.ts
CHANGED
|
@@ -1,15 +1,24 @@
|
|
|
1
1
|
export interface Roots {
|
|
2
2
|
[env: string]: string;
|
|
3
3
|
}
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
workspaces?: string[];
|
|
11
|
-
};
|
|
4
|
+
interface Dependencies {
|
|
5
|
+
[service: string]: {
|
|
6
|
+
version: string;
|
|
7
|
+
repository: string;
|
|
8
|
+
roots?: Roots;
|
|
9
|
+
workspaces?: string[];
|
|
12
10
|
};
|
|
11
|
+
}
|
|
12
|
+
interface ConfigData {
|
|
13
|
+
$shema: string;
|
|
14
|
+
dependencies: Dependencies;
|
|
15
|
+
path: string;
|
|
16
|
+
output: string;
|
|
17
|
+
environment_identifier: string;
|
|
18
|
+
}
|
|
19
|
+
export declare class Config {
|
|
20
|
+
data: Partial<ConfigData>;
|
|
21
|
+
dependencies: Dependencies;
|
|
13
22
|
path: string;
|
|
14
23
|
output: string;
|
|
15
24
|
environment_identifier: string;
|
|
@@ -22,3 +31,4 @@ export declare class Config {
|
|
|
22
31
|
}): void;
|
|
23
32
|
publish(): void;
|
|
24
33
|
}
|
|
34
|
+
export {};
|
package/lib/classes/Config.js
CHANGED
|
@@ -8,12 +8,14 @@ const prettier = tslib_1.__importStar(require("prettier"));
|
|
|
8
8
|
const unique_1 = require("../utils/unique");
|
|
9
9
|
class Config {
|
|
10
10
|
constructor() {
|
|
11
|
+
this.data = {};
|
|
11
12
|
this.dependencies = {};
|
|
12
13
|
this.path = 'endpoints.config.json';
|
|
13
14
|
this.output = fs.existsSync(path.resolve('./src')) ? './src/endpoints/' : './endpoints/';
|
|
14
15
|
this.environment_identifier = 'process.env.NODE_ENV';
|
|
15
16
|
if (fs.existsSync(this.path)) {
|
|
16
17
|
const data = JSON.parse(fs.readFileSync(this.path).toString());
|
|
18
|
+
this.data = data;
|
|
17
19
|
if (data.dependencies) {
|
|
18
20
|
this.dependencies = data.dependencies;
|
|
19
21
|
}
|
|
@@ -37,11 +39,7 @@ class Config {
|
|
|
37
39
|
this.dependencies = Object.assign(Object.assign({}, this.dependencies), { [name]: Object.assign(Object.assign({}, (_c = this.dependencies) === null || _c === void 0 ? void 0 : _c[name]), { version, repository: path, workspaces: workspaces.length > 0 ? workspaces : undefined }) });
|
|
38
40
|
}
|
|
39
41
|
publish() {
|
|
40
|
-
const data = {
|
|
41
|
-
output: this.output,
|
|
42
|
-
environment_identifier: this.environment_identifier,
|
|
43
|
-
dependencies: this.dependencies,
|
|
44
|
-
};
|
|
42
|
+
const data = Object.assign(Object.assign({}, this.data), { output: this.output, environment_identifier: this.environment_identifier, dependencies: this.dependencies });
|
|
45
43
|
fs.writeFileSync(this.path, prettier.format(JSON.stringify(data, null, 2), { parser: 'json' }));
|
|
46
44
|
}
|
|
47
45
|
}
|