@futdevpro/nts-dynamo 1.5.52 → 1.5.54
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/lib/_services/dynamo-nts-data.service.d.ts +122 -3
- package/lib/_services/dynamo-nts-data.service.d.ts.map +1 -1
- package/lib/_services/dynamo-nts-data.service.js +271 -41
- package/lib/_services/dynamo-nts-data.service.js.map +1 -1
- package/lib/_services/dynamo-nts-db.service.d.ts +35 -11
- package/lib/_services/dynamo-nts-db.service.d.ts.map +1 -1
- package/lib/_services/dynamo-nts-db.service.js +122 -56
- package/lib/_services/dynamo-nts-db.service.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/_services/dynamo-nts-data.service.ts +255 -40
- package/src/_services/dynamo-nts-db.service.ts +120 -62
|
@@ -23,14 +23,14 @@ export declare class DynamoNTS_DataService<T extends Dynamo_Metadata> {
|
|
|
23
23
|
dataDBService: DynamoNTS_DBService<T>;
|
|
24
24
|
data: T;
|
|
25
25
|
dataList: T[];
|
|
26
|
-
issuer
|
|
26
|
+
issuer: string;
|
|
27
27
|
depKey?: string;
|
|
28
28
|
depDBServiceKey?: string;
|
|
29
29
|
private depDataDBService;
|
|
30
30
|
dataParams: DynamoNTS_DataParams;
|
|
31
31
|
defaultErrorUserMsg: string;
|
|
32
32
|
defaultValidationErrorUserMsg: string;
|
|
33
|
-
constructor(data: T, dataParams: DynamoNTS_DataParams, issuer
|
|
33
|
+
constructor(data: T, dataParams: DynamoNTS_DataParams, issuer: string);
|
|
34
34
|
/**
|
|
35
35
|
* returns all data from database to service dataList
|
|
36
36
|
*/
|
|
@@ -39,7 +39,7 @@ export declare class DynamoNTS_DataService<T extends Dynamo_Metadata> {
|
|
|
39
39
|
* @description
|
|
40
40
|
* returns data from database by id
|
|
41
41
|
* also if dontSetToService is false or not setted,
|
|
42
|
-
* the data will be saved to the service
|
|
42
|
+
* the data will be saved to the service, even if its not found
|
|
43
43
|
*
|
|
44
44
|
* @remarks
|
|
45
45
|
* If you need to get-save a data, if possible,
|
|
@@ -61,6 +61,124 @@ export declare class DynamoNTS_DataService<T extends Dynamo_Metadata> {
|
|
|
61
61
|
* @param dependencyId
|
|
62
62
|
*/
|
|
63
63
|
getDataListByDependencyId(dependencyId?: string): Promise<void>;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* // findOne desc:
|
|
67
|
+
*
|
|
68
|
+
* Find the data first by any of its parameters,
|
|
69
|
+
* also if dontSetToService is false or not setted,
|
|
70
|
+
* the data will be saved to the service, even if non found
|
|
71
|
+
*
|
|
72
|
+
* @param filter if you can, use unique parameters for find!
|
|
73
|
+
*
|
|
74
|
+
* @example
|
|
75
|
+
* // by email:
|
|
76
|
+
* { email: email }
|
|
77
|
+
* //
|
|
78
|
+
* @example
|
|
79
|
+
* // or by id that is in list:
|
|
80
|
+
* { userIds: { $in: this.userId } }
|
|
81
|
+
* //
|
|
82
|
+
* @example
|
|
83
|
+
* // or by number or Date that is Greater Than AND Less Than:
|
|
84
|
+
* { points: { $gt: 2, $lt: 14 } }
|
|
85
|
+
* // further tools (syntax matches with $gt):
|
|
86
|
+
* $eq: // Matches values that are EQual to a specified value.
|
|
87
|
+
* $gte: // Matches values that are Greater Than OR Equal to a specified value.
|
|
88
|
+
* $lte: // Matches values that are Less Than or Equal to a specified value.
|
|
89
|
+
* $ne: // Matches all values that are Not Equal to a specified value.
|
|
90
|
+
* $nin: // Matches None of the values specified IN an array.
|
|
91
|
+
* //
|
|
92
|
+
* @returns {T} data: T
|
|
93
|
+
*/
|
|
94
|
+
findData(findBy: any, dontSetToService?: boolean): Promise<T>;
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* // find desc:
|
|
98
|
+
*
|
|
99
|
+
* Find the data first by any of its parameters,
|
|
100
|
+
* also if dontSetToService is false or not setted,
|
|
101
|
+
* the data will be saved to the service, even if non found
|
|
102
|
+
*
|
|
103
|
+
* @param filter if you can, use unique parameters for find!
|
|
104
|
+
*
|
|
105
|
+
* @example
|
|
106
|
+
* // by email:
|
|
107
|
+
* { email: email }
|
|
108
|
+
* //
|
|
109
|
+
* @example
|
|
110
|
+
* // or by id that is in list:
|
|
111
|
+
* { userIds: { $in: this.userId } }
|
|
112
|
+
* //
|
|
113
|
+
* @example
|
|
114
|
+
* // or by number or Date that is Greater Than AND Less Than:
|
|
115
|
+
* { points: { $gt: 2, $lt: 14 } }
|
|
116
|
+
* // further tools (syntax matches with $gt):
|
|
117
|
+
* $eq: // Matches values that are EQual to a specified value.
|
|
118
|
+
* $gte: // Matches values that are Greater Than OR Equal to a specified value.
|
|
119
|
+
* $lte: // Matches values that are Less Than or Equal to a specified value.
|
|
120
|
+
* $ne: // Matches all values that are Not Equal to a specified value.
|
|
121
|
+
* $nin: // Matches None of the values specified IN an array.
|
|
122
|
+
* //
|
|
123
|
+
* @returns {T[]} dataList: T[]
|
|
124
|
+
*/
|
|
125
|
+
findDatas(findBy: any, dontSetToService?: boolean): Promise<T[]>;
|
|
126
|
+
/**
|
|
127
|
+
* This function uses the dataDBService.updateOne function.
|
|
128
|
+
* This uses updateBy if setted, or data._id if its setted or this.data[this.dependencyKey]
|
|
129
|
+
* @param set
|
|
130
|
+
*
|
|
131
|
+
* // updateOne desc:
|
|
132
|
+
*
|
|
133
|
+
* Find the data first by any of its parameters, throws error if not found
|
|
134
|
+
* @param filter This uses the basic Mongoose updateOne.
|
|
135
|
+
* If you can, use unique parameters for find!
|
|
136
|
+
* @example
|
|
137
|
+
* // by email:
|
|
138
|
+
* { email: email }
|
|
139
|
+
* //
|
|
140
|
+
* @example
|
|
141
|
+
* // or by id that is in list:
|
|
142
|
+
* { userIds: { $in: this.userId } }
|
|
143
|
+
* //
|
|
144
|
+
* @example
|
|
145
|
+
* // or by number or Date that is Greater Than AND Less Than:
|
|
146
|
+
* { points: { $gt: 2, $lt: 14 } }
|
|
147
|
+
* // further tools (syntax matches with $gt):
|
|
148
|
+
* $eq: // Matches values that are EQual to a specified value.
|
|
149
|
+
* $gte: // Matches values that are Greater Than OR Equal to a specified value.
|
|
150
|
+
* $lte: // Matches values that are Less Than or Equal to a specified value.
|
|
151
|
+
* $ne: // Matches all values that are Not Equal to a specified value.
|
|
152
|
+
* $nin: // Matches None of the values specified IN an array.
|
|
153
|
+
* //
|
|
154
|
+
*
|
|
155
|
+
* @param update this uses the basic Mongoose updateOne
|
|
156
|
+
* @example
|
|
157
|
+
* // increase a specific value (here by 15):
|
|
158
|
+
* { $inc: { popularity: 15 } }
|
|
159
|
+
* //
|
|
160
|
+
* @example
|
|
161
|
+
* // or add element to a list:
|
|
162
|
+
* { $push: { reactions: this.newReaction }
|
|
163
|
+
* // or add multiple elements to a list
|
|
164
|
+
* { $push: { schedule: {$each: [ monday, tuesday, wednesday ] } } }
|
|
165
|
+
* //
|
|
166
|
+
* @example
|
|
167
|
+
* // or all at once
|
|
168
|
+
* {
|
|
169
|
+
* $inc: { popularity: this.newVote.amount },
|
|
170
|
+
* emailVerified: true,
|
|
171
|
+
* $push: { reactions: this.newReaction }
|
|
172
|
+
* }
|
|
173
|
+
* // further tools (syntax matches with $inc):
|
|
174
|
+
* $currentDate: // Sets the value of a field to current date, either as a Date or a Timestamp.
|
|
175
|
+
* $min: // Only updates the field if the specified value is less than the existing field value.
|
|
176
|
+
* $max: // Only updates the field if the specified value is greater than the existing field value.
|
|
177
|
+
* $mul: // Multiplies the value of the field by the specified amount.
|
|
178
|
+
* $rename: // Renames a field.
|
|
179
|
+
* $unset: // Removes the specified field from a document. (set: "" to value)
|
|
180
|
+
* //
|
|
181
|
+
*/
|
|
64
182
|
updateData(set: {
|
|
65
183
|
updateBy?: any;
|
|
66
184
|
update: any;
|
|
@@ -69,6 +187,7 @@ export declare class DynamoNTS_DataService<T extends Dynamo_Metadata> {
|
|
|
69
187
|
* modifies data if the data have ID and already exists in the DB,
|
|
70
188
|
* creates new if the ID is not present or cant find in DB,
|
|
71
189
|
* and if dependency data setted up, will check before creation,
|
|
190
|
+
*
|
|
72
191
|
* @warning
|
|
73
192
|
* but the proper way to update data, if you use update method instead,
|
|
74
193
|
* this way, you can avoid data override errors
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dynamo-nts-data.service.d.ts","sourceRoot":"","sources":["../../src/_services/dynamo-nts-data.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAA8C,MAAM,uBAAuB,CAAC;AAE1H,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"dynamo-nts-data.service.d.ts","sourceRoot":"","sources":["../../src/_services/dynamo-nts-data.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAA8C,MAAM,uBAAuB,CAAC;AAE1H,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAI9D;;;;;;;;;;;;;;;;;;GAkBG;AACH,qBAAa,qBAAqB,CAAC,CAAC,SAAS,eAAe;IAC1D,aAAa,EAAE,mBAAmB,CAAC,CAAC,CAAC,CAAC;IACtC,IAAI,EAAE,CAAC,CAAC;IACR,QAAQ,EAAE,CAAC,EAAE,CAAM;IACnB,MAAM,EAAE,MAAM,CAAC;IAEf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,OAAO,CAAC,gBAAgB,CAA2B;IAEnD,UAAU,EAAE,oBAAoB,CAAC;IAEjC,mBAAmB,SAA8F;IACjH,6BAA6B,SAAoG;gBAG/H,IAAI,EAAE,CAAC,EACP,UAAU,EAAE,oBAAoB,EAChC,MAAM,EAAE,MAAM;IAShB;;OAEG;IACG,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAsB7B;;;;;;;;;;;;;;OAcG;IACG,WAAW,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,gBAAgB,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,CAAC,CAAC;IAoCtE;;;OAGG;IACG,qBAAqB,CAAC,YAAY,CAAC,EAAE,MAAM,EAAE,gBAAgB,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,CAAC,CAAC;IA8C1F;;;OAGG;IACG,yBAAyB,CAAC,YAAY,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IA0CrE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACG,QAAQ,CAAC,MAAM,EAAE,GAAG,EAAE,gBAAgB,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,CAAC,CAAC;IA0BnE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACG,SAAS,CAAC,MAAM,EAAE,GAAG,EAAE,gBAAgB,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,CAAC,EAAE,CAAC;IA0BtE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAuDG;IACG,UAAU,CAAC,GAAG,EAAE;QAAE,QAAQ,CAAC,EAAE,GAAG,CAAC;QAAC,MAAM,EAAE,GAAG,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IA6BrE;;;;;;;;;;OAUG;IACG,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IA0D/B;;OAEG;IACG,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAyBjC;;OAEG;IACG,eAAe,IAAI,OAAO,CAAC,IAAI,CAAC;IA6CtC;;OAEG;IACH,OAAO,CAAC,6BAA6B;IAUrC;;;OAGG;IACH,0BAA0B,IAAI,mBAAmB,CAAC,GAAG,CAAC;CAkBvD"}
|
|
@@ -31,7 +31,6 @@ class DynamoNTS_DataService {
|
|
|
31
31
|
this.dataDBService = dynamo_nts_global_service_1.DynamoNTS_GlobalService.getDBService(dataParams);
|
|
32
32
|
this.data = data;
|
|
33
33
|
this.dataParams = dataParams;
|
|
34
|
-
// this.dataModelParams = dataParams.modelParams;
|
|
35
34
|
this.lookForDependencyDataSettings();
|
|
36
35
|
this.issuer = issuer;
|
|
37
36
|
}
|
|
@@ -41,7 +40,16 @@ class DynamoNTS_DataService {
|
|
|
41
40
|
getAll() {
|
|
42
41
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
43
42
|
try {
|
|
44
|
-
this.dataList = yield this.dataDBService.getAll()
|
|
43
|
+
this.dataList = yield this.dataDBService.getAll().catch(error => {
|
|
44
|
+
var _a;
|
|
45
|
+
if ((_a = error === null || error === void 0 ? void 0 : error.errorCodes) === null || _a === void 0 ? void 0 : _a.includes('NTS-DBS-GA1')) {
|
|
46
|
+
console.error(error);
|
|
47
|
+
return [];
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
throw error;
|
|
51
|
+
}
|
|
52
|
+
});
|
|
45
53
|
}
|
|
46
54
|
catch (error) {
|
|
47
55
|
throw new fsm_dynamo_1.Dynamo_Error({
|
|
@@ -59,7 +67,7 @@ class DynamoNTS_DataService {
|
|
|
59
67
|
* @description
|
|
60
68
|
* returns data from database by id
|
|
61
69
|
* also if dontSetToService is false or not setted,
|
|
62
|
-
* the data will be saved to the service
|
|
70
|
+
* the data will be saved to the service, even if its not found
|
|
63
71
|
*
|
|
64
72
|
* @remarks
|
|
65
73
|
* If you need to get-save a data, if possible,
|
|
@@ -74,8 +82,17 @@ class DynamoNTS_DataService {
|
|
|
74
82
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
75
83
|
try {
|
|
76
84
|
if (id || this.data._id) {
|
|
77
|
-
let dataExists = yield this.dataDBService.getDataById(id ? id : this.data._id)
|
|
78
|
-
|
|
85
|
+
let dataExists = yield this.dataDBService.getDataById(id ? id : this.data._id).catch(error => {
|
|
86
|
+
var _a;
|
|
87
|
+
if ((_a = error === null || error === void 0 ? void 0 : error.errorCodes) === null || _a === void 0 ? void 0 : _a.includes('NTS-DBS-GI1')) {
|
|
88
|
+
console.error(error);
|
|
89
|
+
return null;
|
|
90
|
+
}
|
|
91
|
+
else {
|
|
92
|
+
throw error;
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
if (!dontSetToService) {
|
|
79
96
|
this.data = dataExists;
|
|
80
97
|
}
|
|
81
98
|
return dataExists;
|
|
@@ -111,7 +128,16 @@ class DynamoNTS_DataService {
|
|
|
111
128
|
try {
|
|
112
129
|
if (this.depKey) {
|
|
113
130
|
if (dependencyId || this.data[this.depKey]) {
|
|
114
|
-
let dataExists = yield this.dataDBService.getDataByDependencyId(dependencyId ? dependencyId : this.data[this.depKey])
|
|
131
|
+
let dataExists = yield this.dataDBService.getDataByDependencyId(dependencyId ? dependencyId : this.data[this.depKey]).catch(error => {
|
|
132
|
+
var _a;
|
|
133
|
+
if ((_a = error === null || error === void 0 ? void 0 : error.errorCodes) === null || _a === void 0 ? void 0 : _a.includes('NTS-DBS-GD2')) {
|
|
134
|
+
console.error(error);
|
|
135
|
+
return null;
|
|
136
|
+
}
|
|
137
|
+
else {
|
|
138
|
+
throw error;
|
|
139
|
+
}
|
|
140
|
+
});
|
|
115
141
|
if (!dontSetToService && dataExists) {
|
|
116
142
|
this.data = dataExists;
|
|
117
143
|
}
|
|
@@ -158,7 +184,16 @@ class DynamoNTS_DataService {
|
|
|
158
184
|
try {
|
|
159
185
|
if (this.depKey) {
|
|
160
186
|
if (dependencyId || this.data[this.depKey]) {
|
|
161
|
-
this.dataList = yield this.dataDBService.getDataListByDependencyId(dependencyId ? dependencyId : this.data[this.depKey])
|
|
187
|
+
this.dataList = yield this.dataDBService.getDataListByDependencyId(dependencyId ? dependencyId : this.data[this.depKey]).catch(error => {
|
|
188
|
+
var _a;
|
|
189
|
+
if ((_a = error === null || error === void 0 ? void 0 : error.errorCodes) === null || _a === void 0 ? void 0 : _a.includes('NTS-DBS-GLD2')) {
|
|
190
|
+
console.error(error);
|
|
191
|
+
return [];
|
|
192
|
+
}
|
|
193
|
+
else {
|
|
194
|
+
throw error;
|
|
195
|
+
}
|
|
196
|
+
});
|
|
162
197
|
}
|
|
163
198
|
else {
|
|
164
199
|
throw new fsm_dynamo_1.Dynamo_Error({
|
|
@@ -192,11 +227,202 @@ class DynamoNTS_DataService {
|
|
|
192
227
|
}
|
|
193
228
|
});
|
|
194
229
|
}
|
|
230
|
+
/**
|
|
231
|
+
*
|
|
232
|
+
* // findOne desc:
|
|
233
|
+
*
|
|
234
|
+
* Find the data first by any of its parameters,
|
|
235
|
+
* also if dontSetToService is false or not setted,
|
|
236
|
+
* the data will be saved to the service, even if non found
|
|
237
|
+
*
|
|
238
|
+
* @param filter if you can, use unique parameters for find!
|
|
239
|
+
*
|
|
240
|
+
* @example
|
|
241
|
+
* // by email:
|
|
242
|
+
* { email: email }
|
|
243
|
+
* //
|
|
244
|
+
* @example
|
|
245
|
+
* // or by id that is in list:
|
|
246
|
+
* { userIds: { $in: this.userId } }
|
|
247
|
+
* //
|
|
248
|
+
* @example
|
|
249
|
+
* // or by number or Date that is Greater Than AND Less Than:
|
|
250
|
+
* { points: { $gt: 2, $lt: 14 } }
|
|
251
|
+
* // further tools (syntax matches with $gt):
|
|
252
|
+
* $eq: // Matches values that are EQual to a specified value.
|
|
253
|
+
* $gte: // Matches values that are Greater Than OR Equal to a specified value.
|
|
254
|
+
* $lte: // Matches values that are Less Than or Equal to a specified value.
|
|
255
|
+
* $ne: // Matches all values that are Not Equal to a specified value.
|
|
256
|
+
* $nin: // Matches None of the values specified IN an array.
|
|
257
|
+
* //
|
|
258
|
+
* @returns {T} data: T
|
|
259
|
+
*/
|
|
260
|
+
findData(findBy, dontSetToService) {
|
|
261
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
262
|
+
try {
|
|
263
|
+
const dataExists = yield this.dataDBService.findOne(findBy).catch(error => {
|
|
264
|
+
var _a;
|
|
265
|
+
if ((_a = error === null || error === void 0 ? void 0 : error.errorCodes) === null || _a === void 0 ? void 0 : _a.includes('NTS-DBS-FO1')) {
|
|
266
|
+
console.error(error);
|
|
267
|
+
return null;
|
|
268
|
+
}
|
|
269
|
+
else {
|
|
270
|
+
throw error;
|
|
271
|
+
}
|
|
272
|
+
});
|
|
273
|
+
if (!dontSetToService) {
|
|
274
|
+
this.data = dataExists;
|
|
275
|
+
}
|
|
276
|
+
return dataExists;
|
|
277
|
+
}
|
|
278
|
+
catch (error) {
|
|
279
|
+
throw new fsm_dynamo_1.Dynamo_Error({
|
|
280
|
+
status: 417,
|
|
281
|
+
errorCode: 'NTS-DS0-FD0',
|
|
282
|
+
addECToUserMsg: true,
|
|
283
|
+
message: `findData was unsuccessful (${this.dataParams.dataName})`,
|
|
284
|
+
userMessage: this.defaultErrorUserMsg,
|
|
285
|
+
error: error
|
|
286
|
+
});
|
|
287
|
+
}
|
|
288
|
+
});
|
|
289
|
+
}
|
|
290
|
+
/**
|
|
291
|
+
*
|
|
292
|
+
* // find desc:
|
|
293
|
+
*
|
|
294
|
+
* Find the data first by any of its parameters,
|
|
295
|
+
* also if dontSetToService is false or not setted,
|
|
296
|
+
* the data will be saved to the service, even if non found
|
|
297
|
+
*
|
|
298
|
+
* @param filter if you can, use unique parameters for find!
|
|
299
|
+
*
|
|
300
|
+
* @example
|
|
301
|
+
* // by email:
|
|
302
|
+
* { email: email }
|
|
303
|
+
* //
|
|
304
|
+
* @example
|
|
305
|
+
* // or by id that is in list:
|
|
306
|
+
* { userIds: { $in: this.userId } }
|
|
307
|
+
* //
|
|
308
|
+
* @example
|
|
309
|
+
* // or by number or Date that is Greater Than AND Less Than:
|
|
310
|
+
* { points: { $gt: 2, $lt: 14 } }
|
|
311
|
+
* // further tools (syntax matches with $gt):
|
|
312
|
+
* $eq: // Matches values that are EQual to a specified value.
|
|
313
|
+
* $gte: // Matches values that are Greater Than OR Equal to a specified value.
|
|
314
|
+
* $lte: // Matches values that are Less Than or Equal to a specified value.
|
|
315
|
+
* $ne: // Matches all values that are Not Equal to a specified value.
|
|
316
|
+
* $nin: // Matches None of the values specified IN an array.
|
|
317
|
+
* //
|
|
318
|
+
* @returns {T[]} dataList: T[]
|
|
319
|
+
*/
|
|
320
|
+
findDatas(findBy, dontSetToService) {
|
|
321
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
322
|
+
try {
|
|
323
|
+
const dataListExists = yield this.dataDBService.find(findBy).catch(error => {
|
|
324
|
+
var _a;
|
|
325
|
+
if ((_a = error === null || error === void 0 ? void 0 : error.errorCodes) === null || _a === void 0 ? void 0 : _a.includes('NTS-DBS-F1')) {
|
|
326
|
+
console.error(error);
|
|
327
|
+
return [];
|
|
328
|
+
}
|
|
329
|
+
else {
|
|
330
|
+
throw error;
|
|
331
|
+
}
|
|
332
|
+
});
|
|
333
|
+
if (!dontSetToService) {
|
|
334
|
+
this.dataList = dataListExists;
|
|
335
|
+
}
|
|
336
|
+
return dataListExists;
|
|
337
|
+
}
|
|
338
|
+
catch (error) {
|
|
339
|
+
throw new fsm_dynamo_1.Dynamo_Error({
|
|
340
|
+
status: 417,
|
|
341
|
+
errorCode: 'NTS-DS0-FDS0',
|
|
342
|
+
addECToUserMsg: true,
|
|
343
|
+
message: `findDatas was unsuccessful (${this.dataParams.dataName})`,
|
|
344
|
+
userMessage: this.defaultErrorUserMsg,
|
|
345
|
+
error: error
|
|
346
|
+
});
|
|
347
|
+
}
|
|
348
|
+
});
|
|
349
|
+
}
|
|
350
|
+
/**
|
|
351
|
+
* This function uses the dataDBService.updateOne function.
|
|
352
|
+
* This uses updateBy if setted, or data._id if its setted or this.data[this.dependencyKey]
|
|
353
|
+
* @param set
|
|
354
|
+
*
|
|
355
|
+
* // updateOne desc:
|
|
356
|
+
*
|
|
357
|
+
* Find the data first by any of its parameters, throws error if not found
|
|
358
|
+
* @param filter This uses the basic Mongoose updateOne.
|
|
359
|
+
* If you can, use unique parameters for find!
|
|
360
|
+
* @example
|
|
361
|
+
* // by email:
|
|
362
|
+
* { email: email }
|
|
363
|
+
* //
|
|
364
|
+
* @example
|
|
365
|
+
* // or by id that is in list:
|
|
366
|
+
* { userIds: { $in: this.userId } }
|
|
367
|
+
* //
|
|
368
|
+
* @example
|
|
369
|
+
* // or by number or Date that is Greater Than AND Less Than:
|
|
370
|
+
* { points: { $gt: 2, $lt: 14 } }
|
|
371
|
+
* // further tools (syntax matches with $gt):
|
|
372
|
+
* $eq: // Matches values that are EQual to a specified value.
|
|
373
|
+
* $gte: // Matches values that are Greater Than OR Equal to a specified value.
|
|
374
|
+
* $lte: // Matches values that are Less Than or Equal to a specified value.
|
|
375
|
+
* $ne: // Matches all values that are Not Equal to a specified value.
|
|
376
|
+
* $nin: // Matches None of the values specified IN an array.
|
|
377
|
+
* //
|
|
378
|
+
*
|
|
379
|
+
* @param update this uses the basic Mongoose updateOne
|
|
380
|
+
* @example
|
|
381
|
+
* // increase a specific value (here by 15):
|
|
382
|
+
* { $inc: { popularity: 15 } }
|
|
383
|
+
* //
|
|
384
|
+
* @example
|
|
385
|
+
* // or add element to a list:
|
|
386
|
+
* { $push: { reactions: this.newReaction }
|
|
387
|
+
* // or add multiple elements to a list
|
|
388
|
+
* { $push: { schedule: {$each: [ monday, tuesday, wednesday ] } } }
|
|
389
|
+
* //
|
|
390
|
+
* @example
|
|
391
|
+
* // or all at once
|
|
392
|
+
* {
|
|
393
|
+
* $inc: { popularity: this.newVote.amount },
|
|
394
|
+
* emailVerified: true,
|
|
395
|
+
* $push: { reactions: this.newReaction }
|
|
396
|
+
* }
|
|
397
|
+
* // further tools (syntax matches with $inc):
|
|
398
|
+
* $currentDate: // Sets the value of a field to current date, either as a Date or a Timestamp.
|
|
399
|
+
* $min: // Only updates the field if the specified value is less than the existing field value.
|
|
400
|
+
* $max: // Only updates the field if the specified value is greater than the existing field value.
|
|
401
|
+
* $mul: // Multiplies the value of the field by the specified amount.
|
|
402
|
+
* $rename: // Renames a field.
|
|
403
|
+
* $unset: // Removes the specified field from a document. (set: "" to value)
|
|
404
|
+
* //
|
|
405
|
+
*/
|
|
195
406
|
updateData(set) {
|
|
196
407
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
197
408
|
try {
|
|
198
409
|
if (set.updateBy) {
|
|
199
|
-
|
|
410
|
+
yield this.dataDBService.updateOne(set.updateBy, set.update, this.issuer);
|
|
411
|
+
}
|
|
412
|
+
else if (this.data._id) {
|
|
413
|
+
yield this.dataDBService.updateOne({ _id: this.data._id }, set.update, this.issuer);
|
|
414
|
+
}
|
|
415
|
+
else if (this.depKey && this.data[this.depKey]) {
|
|
416
|
+
yield this.dataDBService.updateOne({ [this.depKey]: this.data[this.depKey] }, set.update, this.issuer);
|
|
417
|
+
}
|
|
418
|
+
else {
|
|
419
|
+
throw new fsm_dynamo_1.Dynamo_Error({
|
|
420
|
+
status: 417,
|
|
421
|
+
errorCode: 'NTS-DS0-UD1',
|
|
422
|
+
addECToUserMsg: true,
|
|
423
|
+
message: `no usable parameter provided for updateData; no updateBy, no id, no dependencyId (${this.dataParams.dataName})`,
|
|
424
|
+
userMessage: this.defaultErrorUserMsg,
|
|
425
|
+
});
|
|
200
426
|
}
|
|
201
427
|
}
|
|
202
428
|
catch (error) {
|
|
@@ -215,6 +441,7 @@ class DynamoNTS_DataService {
|
|
|
215
441
|
* modifies data if the data have ID and already exists in the DB,
|
|
216
442
|
* creates new if the ID is not present or cant find in DB,
|
|
217
443
|
* and if dependency data setted up, will check before creation,
|
|
444
|
+
*
|
|
218
445
|
* @warning
|
|
219
446
|
* but the proper way to update data, if you use update method instead,
|
|
220
447
|
* this way, you can avoid data override errors
|
|
@@ -226,28 +453,39 @@ class DynamoNTS_DataService {
|
|
|
226
453
|
try {
|
|
227
454
|
if (this.data._id) {
|
|
228
455
|
// check if already exists
|
|
229
|
-
|
|
230
|
-
if (
|
|
456
|
+
const dataExists = yield this.getDataById(null, true);
|
|
457
|
+
if (dataExists) {
|
|
458
|
+
// if data exists do modify
|
|
459
|
+
this.data = yield this.dataDBService.modifyData(this.data, this.issuer);
|
|
460
|
+
}
|
|
461
|
+
else {
|
|
231
462
|
// if data not exists check that dependency already exists for this
|
|
232
463
|
if (this.depKey) {
|
|
233
|
-
if (this.data[this.depKey]) {
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
userMessage: this.defaultErrorUserMsg
|
|
242
|
-
});
|
|
243
|
-
}
|
|
464
|
+
if (!this.data[this.depKey]) {
|
|
465
|
+
throw new fsm_dynamo_1.Dynamo_Error({
|
|
466
|
+
status: 417,
|
|
467
|
+
errorCode: 'NTS-DS0-SD1',
|
|
468
|
+
addECToUserMsg: true,
|
|
469
|
+
message: `saveData was unsuccessful: dependency data id missing from data (key: ${this.depKey})`,
|
|
470
|
+
userMessage: this.defaultErrorUserMsg
|
|
471
|
+
});
|
|
244
472
|
}
|
|
245
|
-
|
|
473
|
+
let dependencyExists = yield this.getDependencyDataDBService().getDataById(this.data[this.depKey]).catch(error => {
|
|
474
|
+
var _a;
|
|
475
|
+
if ((_a = error === null || error === void 0 ? void 0 : error.errorCodes) === null || _a === void 0 ? void 0 : _a.includes('NTS-DBS-GI1')) {
|
|
476
|
+
console.error(error);
|
|
477
|
+
return null;
|
|
478
|
+
}
|
|
479
|
+
else {
|
|
480
|
+
throw error;
|
|
481
|
+
}
|
|
482
|
+
});
|
|
483
|
+
if (!dependencyExists) {
|
|
246
484
|
throw new fsm_dynamo_1.Dynamo_Error({
|
|
247
485
|
status: 417,
|
|
248
486
|
errorCode: 'NTS-DS0-SD2',
|
|
249
487
|
addECToUserMsg: true,
|
|
250
|
-
message: `saveData was unsuccessful: dependency data
|
|
488
|
+
message: `saveData was unsuccessful: dependency data not exists (key: ${this.depKey}, id: ${this.data[this.depKey]})`,
|
|
251
489
|
userMessage: this.defaultErrorUserMsg
|
|
252
490
|
});
|
|
253
491
|
}
|
|
@@ -255,10 +493,6 @@ class DynamoNTS_DataService {
|
|
|
255
493
|
// if data not exists create new data
|
|
256
494
|
this.data = yield this.dataDBService.createData(this.data, this.issuer);
|
|
257
495
|
}
|
|
258
|
-
else {
|
|
259
|
-
// if data exists do modify
|
|
260
|
-
this.data = yield this.dataDBService.modifyData(this.data, this.issuer);
|
|
261
|
-
}
|
|
262
496
|
}
|
|
263
497
|
else {
|
|
264
498
|
// if ID is not present, data not exists, create new data
|
|
@@ -283,10 +517,7 @@ class DynamoNTS_DataService {
|
|
|
283
517
|
deleteData() {
|
|
284
518
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
285
519
|
try {
|
|
286
|
-
if (this.data._id) {
|
|
287
|
-
yield this.dataDBService.deleteDataById(this.data._id);
|
|
288
|
-
}
|
|
289
|
-
else {
|
|
520
|
+
if (!this.data._id) {
|
|
290
521
|
throw new fsm_dynamo_1.Dynamo_Error({
|
|
291
522
|
status: 417,
|
|
292
523
|
errorCode: 'NTS-DS0-DD1',
|
|
@@ -295,6 +526,7 @@ class DynamoNTS_DataService {
|
|
|
295
526
|
userMessage: this.defaultErrorUserMsg,
|
|
296
527
|
});
|
|
297
528
|
}
|
|
529
|
+
yield this.dataDBService.deleteDataById(this.data._id);
|
|
298
530
|
}
|
|
299
531
|
catch (error) {
|
|
300
532
|
throw new fsm_dynamo_1.Dynamo_Error({
|
|
@@ -373,16 +605,7 @@ class DynamoNTS_DataService {
|
|
|
373
605
|
* @returns
|
|
374
606
|
*/
|
|
375
607
|
getDependencyDataDBService() {
|
|
376
|
-
if (this.depDBServiceKey) {
|
|
377
|
-
if (this.depDataDBService) {
|
|
378
|
-
return this.depDataDBService;
|
|
379
|
-
}
|
|
380
|
-
else {
|
|
381
|
-
this.depDataDBService = dynamo_nts_global_service_1.DynamoNTS_GlobalService.getDBServiceByKey(this.depDBServiceKey);
|
|
382
|
-
return this.depDataDBService;
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
else {
|
|
608
|
+
if (!this.depDBServiceKey) {
|
|
386
609
|
throw new fsm_dynamo_1.Dynamo_Error({
|
|
387
610
|
status: 501,
|
|
388
611
|
errorCode: 'NTS-DS0-GDDB0',
|
|
@@ -391,6 +614,13 @@ class DynamoNTS_DataService {
|
|
|
391
614
|
userMessage: this.defaultErrorUserMsg
|
|
392
615
|
});
|
|
393
616
|
}
|
|
617
|
+
if (this.depDataDBService) {
|
|
618
|
+
return this.depDataDBService;
|
|
619
|
+
}
|
|
620
|
+
else {
|
|
621
|
+
this.depDataDBService = dynamo_nts_global_service_1.DynamoNTS_GlobalService.getDBServiceByKey(this.depDBServiceKey);
|
|
622
|
+
return this.depDataDBService;
|
|
623
|
+
}
|
|
394
624
|
}
|
|
395
625
|
}
|
|
396
626
|
exports.DynamoNTS_DataService = DynamoNTS_DataService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dynamo-nts-data.service.js","sourceRoot":"","sources":["../../src/_services/dynamo-nts-data.service.ts"],"names":[],"mappings":";;;;AACA,sDAA0H;AAG1H,2EAAsE;AAEtE;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAa,qBAAqB;IAgBhC,YACE,IAAO,EACP,UAAgC,EAChC,MAAe;QAhBjB,aAAQ,GAAQ,EAAE,CAAC;QAUnB,wBAAmB,GAAG,0FAA0F,CAAC;QACjH,kCAA6B,GAAG,gGAAgG,CAAC;QAO/H,IAAI,CAAC,aAAa,GAAG,mDAAuB,CAAC,YAAY,CAAI,UAAU,CAAC,CAAC;QACzE,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,iDAAiD;QACjD,IAAI,CAAC,6BAA6B,EAAE,CAAC;QACrC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;OAEG;IACG,MAAM;;YACV,IAAI;gBACF,IAAI,CAAC,QAAQ,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,MAAM,EAAE,CAAC;aACnD;YAAC,OAAO,KAAK,EAAE;gBACd,MAAM,IAAI,yBAAY,CAAC;oBACrB,MAAM,EAAE,GAAG;oBACX,SAAS,EAAE,aAAa;oBACxB,cAAc,EAAE,IAAI;oB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,CAAC,CAAC;gBACxF,OAAO,IAAI,CAAC,gBAAgB,CAAC;aAC9B;SACF;aAAM;YACL,MAAM,IAAI,yBAAY,CAAC;gBACrB,MAAM,EAAE,GAAG;gBACX,SAAS,EAAE,eAAe;gBAC1B,cAAc,EAAE,IAAI;gBACpB,OAAO,EAAE,yEAAyE;gBAClF,WAAW,EAAE,IAAI,CAAC,mBAAmB;aACtC,CAAC,CAAC;SACJ;IACH,CAAC;CACF;AA1WD,sDA0WC"}
|
|
1
|
+
{"version":3,"file":"dynamo-nts-data.service.js","sourceRoot":"","sources":["../../src/_services/dynamo-nts-data.service.ts"],"names":[],"mappings":";;;;AACA,sDAA0H;AAG1H,2EAAsE;AAGtE;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAa,qBAAqB;IAehC,YACE,IAAO,EACP,UAAgC,EAChC,MAAc;QAfhB,aAAQ,GAAQ,EAAE,CAAC;QASnB,wBAAmB,GAAG,0FAA0F,CAAC;QACjH,kCAA6B,GAAG,gGAAgG,CAAC;QAO/H,IAAI,CAAC,aAAa,GAAG,mDAAuB,CAAC,YAAY,CAAI,UAAU,CAAC,CAAC;QACzE,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,6BAA6B,EAAE,CAAC;QACrC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;OAEG;IACG,MAAM;;YACV,IAAI;gBACF,IAAI,CAAC,QAAQ,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE;;oBAC9D,IAAI,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,UAAU,0CAAE,QAAQ,CAAC,aAAa,CAAC,EAAE;wBAC9C,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;wBACrB,OAAO,EAAE,CAAC;qBACX;yBAAM;wBACL,MAAM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