@steedos/service-metadata 2.2.52-beta.7 → 2.2.52
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/LICENSE.txt +2 -5
- package/lib/actionsHandler.js +19 -19
- package/lib/metadata.service.js +24 -24
- package/package.json +5 -12
package/LICENSE.txt
CHANGED
|
@@ -6,14 +6,11 @@ To determine under which license you may use a file from the Steedos source code
|
|
|
6
6
|
please resort to the header of that file.
|
|
7
7
|
|
|
8
8
|
If the file has no header, the following rules apply
|
|
9
|
-
1.
|
|
10
|
-
2.
|
|
11
|
-
3. source code that is neither (1) nor (2) is licensed under AGPL, see License.AGPL.txt
|
|
9
|
+
1. enterprise features are licensed under Steedos Enterprise Terms, see License.enterprise.txt
|
|
10
|
+
2. source code that is neither (1) is licensed under MIT, see https://opensource.org/licenses/MIT
|
|
12
11
|
|
|
13
12
|
On request, licenses under different terms are available.
|
|
14
13
|
|
|
15
|
-
Project templates can be found in the folders steedos-projects/
|
|
16
|
-
|
|
17
14
|
Source code of enterprise features are files that
|
|
18
15
|
* are in folders named "ee" or start with "ee_", or in subfolders of such folders.
|
|
19
16
|
* contain the strings "ee_" in its filename name.
|
package/lib/actionsHandler.js
CHANGED
|
@@ -14,7 +14,7 @@ exports.ActionHandlers = {
|
|
|
14
14
|
clearPackageServices: metadata_registrar_1.Register.clearPackageServices,
|
|
15
15
|
clearPackageServicesMetadatas: metadata_registrar_1.Register.clearPackageServicesMetadatas,
|
|
16
16
|
get(ctx) {
|
|
17
|
-
return
|
|
17
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
18
18
|
try {
|
|
19
19
|
return yield metadata_registrar_1.Register.get(ctx.broker, ctx.params.key);
|
|
20
20
|
}
|
|
@@ -23,7 +23,7 @@ exports.ActionHandlers = {
|
|
|
23
23
|
});
|
|
24
24
|
},
|
|
25
25
|
mget(ctx) {
|
|
26
|
-
return
|
|
26
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
27
27
|
try {
|
|
28
28
|
return yield metadata_registrar_1.Register.mget(ctx.broker, ctx.params.keys);
|
|
29
29
|
}
|
|
@@ -32,88 +32,88 @@ exports.ActionHandlers = {
|
|
|
32
32
|
});
|
|
33
33
|
},
|
|
34
34
|
filter(ctx) {
|
|
35
|
-
return
|
|
35
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
36
36
|
return yield metadata_registrar_1.Register.filter(ctx.broker, ctx.params.key);
|
|
37
37
|
});
|
|
38
38
|
},
|
|
39
39
|
mfilter(ctx) {
|
|
40
|
-
return
|
|
40
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
41
41
|
return yield metadata_registrar_1.Register.mfilter(ctx.broker, ctx.params.keys);
|
|
42
42
|
});
|
|
43
43
|
},
|
|
44
44
|
add(ctx) {
|
|
45
|
-
return
|
|
45
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
46
46
|
return yield metadata_registrar_1.Register.add(ctx.broker, ctx.params, ctx.meta);
|
|
47
47
|
});
|
|
48
48
|
},
|
|
49
49
|
madd(ctx) {
|
|
50
|
-
return
|
|
50
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
51
51
|
return yield metadata_registrar_1.Register.madd(ctx.broker, ctx.params, ctx.meta);
|
|
52
52
|
});
|
|
53
53
|
},
|
|
54
54
|
addServiceMetadata(ctx) {
|
|
55
|
-
return
|
|
55
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
56
56
|
return yield metadata_registrar_1.Register.addServiceMetadata(ctx.broker, ctx.params, ctx.meta);
|
|
57
57
|
});
|
|
58
58
|
},
|
|
59
59
|
maddServiceMetadata(ctx) {
|
|
60
|
-
return
|
|
60
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
61
61
|
return yield metadata_registrar_1.Register.maddServiceMetadata(ctx.broker, ctx.params, ctx.meta);
|
|
62
62
|
});
|
|
63
63
|
},
|
|
64
64
|
fuzzyDelete(ctx) {
|
|
65
|
-
return
|
|
65
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
66
66
|
const { key } = ctx.params;
|
|
67
67
|
return yield metadata_registrar_1.Register.fuzzyDelete(ctx.broker, key);
|
|
68
68
|
});
|
|
69
69
|
},
|
|
70
70
|
delete(ctx) {
|
|
71
|
-
return
|
|
71
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
72
72
|
return yield metadata_registrar_1.Register.delete(ctx.broker, ctx.params.key);
|
|
73
73
|
});
|
|
74
74
|
},
|
|
75
75
|
deleteServiceMetadata(ctx) {
|
|
76
|
-
return
|
|
76
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
77
77
|
return yield metadata_registrar_1.Register.deleteServiceMetadata(ctx.broker, ctx.params);
|
|
78
78
|
});
|
|
79
79
|
},
|
|
80
80
|
getServiceMetadatas(ctx) {
|
|
81
|
-
return
|
|
81
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
82
82
|
return yield metadata_registrar_1.Register.getServiceMetadatas(ctx.broker, ctx.params);
|
|
83
83
|
});
|
|
84
84
|
},
|
|
85
85
|
getServiceMetadata(ctx) {
|
|
86
|
-
return
|
|
86
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
87
87
|
return yield metadata_registrar_1.Register.getServiceMetadata(ctx.broker, ctx.params, ctx.meta);
|
|
88
88
|
});
|
|
89
89
|
},
|
|
90
90
|
removeServiceMetadata(ctx) {
|
|
91
|
-
return
|
|
91
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
92
92
|
return yield metadata_registrar_1.Register.removeServiceMetadata(ctx.broker, ctx.params, ctx.meta);
|
|
93
93
|
});
|
|
94
94
|
},
|
|
95
95
|
refreshServiceMetadatas(ctx) {
|
|
96
|
-
return
|
|
96
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
97
97
|
return yield metadata_registrar_1.Register.refreshServiceMetadatas(ctx.broker, ctx.params);
|
|
98
98
|
});
|
|
99
99
|
},
|
|
100
100
|
lpush(ctx) {
|
|
101
|
-
return
|
|
101
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
102
102
|
return yield metadata_registrar_1.Register.lpush(ctx.broker, ctx.params);
|
|
103
103
|
});
|
|
104
104
|
},
|
|
105
105
|
rpush(ctx) {
|
|
106
|
-
return
|
|
106
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
107
107
|
return yield metadata_registrar_1.Register.rpush(ctx.broker, ctx.params);
|
|
108
108
|
});
|
|
109
109
|
},
|
|
110
110
|
lrange(ctx) {
|
|
111
|
-
return
|
|
111
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
112
112
|
return yield metadata_registrar_1.Register.lrange(ctx.broker, ctx.params);
|
|
113
113
|
});
|
|
114
114
|
},
|
|
115
115
|
filterList(ctx) {
|
|
116
|
-
return
|
|
116
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
117
117
|
return yield metadata_registrar_1.Register.filterList(ctx.broker, ctx.params);
|
|
118
118
|
});
|
|
119
119
|
}
|
package/lib/metadata.service.js
CHANGED
|
@@ -13,7 +13,7 @@ module.exports = {
|
|
|
13
13
|
*/
|
|
14
14
|
settings: {},
|
|
15
15
|
started() {
|
|
16
|
-
return
|
|
16
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
17
17
|
yield (0, metadata_registrar_1.started)(this.broker);
|
|
18
18
|
});
|
|
19
19
|
},
|
|
@@ -22,12 +22,12 @@ module.exports = {
|
|
|
22
22
|
*/
|
|
23
23
|
methods: {
|
|
24
24
|
refreshServiceMetadatas: function (ctx) {
|
|
25
|
-
return
|
|
25
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
26
26
|
return yield actionsHandler_1.ActionHandlers.refreshServiceMetadatas(ctx);
|
|
27
27
|
});
|
|
28
28
|
},
|
|
29
29
|
clearPackageServices: function (ctx) {
|
|
30
|
-
return
|
|
30
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
31
31
|
const { offlinePackageServicesName } = ctx.params;
|
|
32
32
|
// console.log(`$metadata.clearPackageServices`, offlinePackageServicesName)
|
|
33
33
|
yield actionsHandler_1.ActionHandlers.clearPackageServices(ctx.broker, offlinePackageServicesName);
|
|
@@ -54,105 +54,105 @@ module.exports = {
|
|
|
54
54
|
actions: {
|
|
55
55
|
get: {
|
|
56
56
|
handler(ctx) {
|
|
57
|
-
return
|
|
57
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
58
58
|
return yield actionsHandler_1.ActionHandlers.get(ctx);
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
62
|
mget: {
|
|
63
63
|
handler(ctx) {
|
|
64
|
-
return
|
|
64
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
65
65
|
return yield actionsHandler_1.ActionHandlers.mget(ctx);
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
68
|
},
|
|
69
69
|
filter: {
|
|
70
70
|
handler(ctx) {
|
|
71
|
-
return
|
|
71
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
72
72
|
return yield actionsHandler_1.ActionHandlers.filter(ctx);
|
|
73
73
|
});
|
|
74
74
|
}
|
|
75
75
|
},
|
|
76
76
|
mfilter: {
|
|
77
77
|
handler(ctx) {
|
|
78
|
-
return
|
|
78
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
79
79
|
return yield actionsHandler_1.ActionHandlers.mfilter(ctx);
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
82
|
},
|
|
83
83
|
add: {
|
|
84
84
|
handler(ctx) {
|
|
85
|
-
return
|
|
85
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
86
86
|
return yield actionsHandler_1.ActionHandlers.add(ctx);
|
|
87
87
|
});
|
|
88
88
|
}
|
|
89
89
|
},
|
|
90
90
|
madd: {
|
|
91
91
|
handler(ctx) {
|
|
92
|
-
return
|
|
92
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
93
93
|
return yield actionsHandler_1.ActionHandlers.madd(ctx);
|
|
94
94
|
});
|
|
95
95
|
}
|
|
96
96
|
},
|
|
97
97
|
lpush: {
|
|
98
98
|
handler(ctx) {
|
|
99
|
-
return
|
|
99
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
100
100
|
return yield actionsHandler_1.ActionHandlers.lpush(ctx);
|
|
101
101
|
});
|
|
102
102
|
}
|
|
103
103
|
},
|
|
104
104
|
rpush: {
|
|
105
105
|
handler(ctx) {
|
|
106
|
-
return
|
|
106
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
107
107
|
return yield actionsHandler_1.ActionHandlers.rpush(ctx);
|
|
108
108
|
});
|
|
109
109
|
}
|
|
110
110
|
},
|
|
111
111
|
lrange: {
|
|
112
112
|
handler(ctx) {
|
|
113
|
-
return
|
|
113
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
114
114
|
return yield actionsHandler_1.ActionHandlers.lrange(ctx);
|
|
115
115
|
});
|
|
116
116
|
}
|
|
117
117
|
},
|
|
118
118
|
filterList: {
|
|
119
119
|
handler(ctx) {
|
|
120
|
-
return
|
|
120
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
121
121
|
return yield actionsHandler_1.ActionHandlers.filterList(ctx);
|
|
122
122
|
});
|
|
123
123
|
}
|
|
124
124
|
},
|
|
125
125
|
addServiceMetadata: {
|
|
126
126
|
handler(ctx) {
|
|
127
|
-
return
|
|
127
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
128
128
|
return yield actionsHandler_1.ActionHandlers.addServiceMetadata(ctx);
|
|
129
129
|
});
|
|
130
130
|
}
|
|
131
131
|
},
|
|
132
132
|
maddServiceMetadata: {
|
|
133
133
|
handler(ctx) {
|
|
134
|
-
return
|
|
134
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
135
135
|
return yield actionsHandler_1.ActionHandlers.maddServiceMetadata(ctx);
|
|
136
136
|
});
|
|
137
137
|
}
|
|
138
138
|
},
|
|
139
139
|
delete: {
|
|
140
140
|
handler(ctx) {
|
|
141
|
-
return
|
|
141
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
142
142
|
return yield actionsHandler_1.ActionHandlers.delete(ctx);
|
|
143
143
|
});
|
|
144
144
|
}
|
|
145
145
|
},
|
|
146
146
|
deleteServiceMetadata: {
|
|
147
147
|
handler(ctx) {
|
|
148
|
-
return
|
|
148
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
149
149
|
return yield actionsHandler_1.ActionHandlers.deleteServiceMetadata(ctx);
|
|
150
150
|
});
|
|
151
151
|
}
|
|
152
152
|
},
|
|
153
153
|
fuzzyDelete: {
|
|
154
154
|
handler(ctx) {
|
|
155
|
-
return
|
|
155
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
156
156
|
return yield actionsHandler_1.ActionHandlers.fuzzyDelete(ctx);
|
|
157
157
|
});
|
|
158
158
|
}
|
|
@@ -162,14 +162,14 @@ module.exports = {
|
|
|
162
162
|
offlinePackageServices: { type: "array", items: "object" },
|
|
163
163
|
},
|
|
164
164
|
handler(ctx) {
|
|
165
|
-
return
|
|
165
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
166
166
|
return yield actionsHandler_1.ActionHandlers.refreshServiceMetadatas(ctx);
|
|
167
167
|
});
|
|
168
168
|
}
|
|
169
169
|
},
|
|
170
170
|
getServiceMetadatas: {
|
|
171
171
|
handler(ctx) {
|
|
172
|
-
return
|
|
172
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
173
173
|
return yield actionsHandler_1.ActionHandlers.getServiceMetadatas(ctx);
|
|
174
174
|
});
|
|
175
175
|
}
|
|
@@ -181,7 +181,7 @@ module.exports = {
|
|
|
181
181
|
metadataApiName: { type: "string" },
|
|
182
182
|
},
|
|
183
183
|
handler(ctx) {
|
|
184
|
-
return
|
|
184
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
185
185
|
return yield actionsHandler_1.ActionHandlers.getServiceMetadata(ctx);
|
|
186
186
|
});
|
|
187
187
|
}
|
|
@@ -193,14 +193,14 @@ module.exports = {
|
|
|
193
193
|
metadataApiName: { type: "string" },
|
|
194
194
|
},
|
|
195
195
|
handler(ctx) {
|
|
196
|
-
return
|
|
196
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
197
197
|
return yield actionsHandler_1.ActionHandlers.removeServiceMetadata(ctx);
|
|
198
198
|
});
|
|
199
199
|
}
|
|
200
200
|
},
|
|
201
201
|
clearPackageServices: {
|
|
202
202
|
handler(ctx) {
|
|
203
|
-
return
|
|
203
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
204
204
|
return yield this.clearPackageServices(ctx);
|
|
205
205
|
});
|
|
206
206
|
}
|
|
@@ -210,7 +210,7 @@ module.exports = {
|
|
|
210
210
|
* Service stopped lifecycle event handler
|
|
211
211
|
*/
|
|
212
212
|
stopped() {
|
|
213
|
-
return
|
|
213
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
214
214
|
yield (0, metadata_registrar_1.stopped)(this.broker);
|
|
215
215
|
});
|
|
216
216
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/service-metadata",
|
|
3
|
-
"version": "2.2.52
|
|
3
|
+
"version": "2.2.52",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/metadata.service.js",
|
|
6
6
|
"scripts": {
|
|
@@ -18,26 +18,19 @@
|
|
|
18
18
|
"author": "",
|
|
19
19
|
"license": "MIT",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@steedos/metadata-registrar": "2.2.52
|
|
21
|
+
"@steedos/metadata-registrar": "2.2.52",
|
|
22
22
|
"dotenv-flow": "^3.1.0",
|
|
23
23
|
"ioredis": "^4.22.0",
|
|
24
24
|
"lodash": "^4.17.21",
|
|
25
|
-
"moleculer": "^0.14.
|
|
25
|
+
"moleculer": "^0.14.21",
|
|
26
26
|
"moleculer-web": "^0.10.4"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"
|
|
30
|
-
"@types/chai-as-promised": "7.1.0",
|
|
31
|
-
"@types/mocha": "^5.2.6",
|
|
32
|
-
"jslint": "^0.12.1",
|
|
33
|
-
"moleculer-repl": "^0.6.4",
|
|
34
|
-
"nodemon": "^1.18.10",
|
|
35
|
-
"ts-node": "^8.0.3",
|
|
36
|
-
"typescript": "3.5.3"
|
|
29
|
+
"typescript": "4.6.3"
|
|
37
30
|
},
|
|
38
31
|
"private": false,
|
|
39
32
|
"publishConfig": {
|
|
40
33
|
"access": "public"
|
|
41
34
|
},
|
|
42
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "1447c9ca4fb57a49233704f50a7d757aff0c5027"
|
|
43
36
|
}
|