@lenne.tech/nest-server 9.0.28 → 9.0.29
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lenne.tech/nest-server",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.29",
|
|
4
4
|
"description": "Modern, fast, powerful Node.js web framework in TypeScript based on Nest with a GraphQL API and a connection to MongoDB (or other databases).",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"node",
|
|
@@ -39,10 +39,9 @@ export abstract class CrudService<T extends CoreModel = any> extends ModuleServi
|
|
|
39
39
|
* Warning: Disables the handling of rights and restrictions! The raw data may contain secrets (such as passwords).
|
|
40
40
|
*/
|
|
41
41
|
async createRaw(input: any, serviceOptions: ServiceOptions = {}): Promise<T> {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
42
|
+
serviceOptions = serviceOptions || {};
|
|
43
|
+
serviceOptions.prepareInput = null;
|
|
44
|
+
serviceOptions.prepareOutput = null;
|
|
46
45
|
return this.createForce(input, serviceOptions);
|
|
47
46
|
}
|
|
48
47
|
|
|
@@ -72,10 +71,9 @@ export abstract class CrudService<T extends CoreModel = any> extends ModuleServi
|
|
|
72
71
|
* Warning: Disables the handling of rights and restrictions! The raw data may contain secrets (such as passwords).
|
|
73
72
|
*/
|
|
74
73
|
async getRaw(id: string, serviceOptions: ServiceOptions = {}): Promise<T> {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
}
|
|
74
|
+
serviceOptions = serviceOptions || {};
|
|
75
|
+
serviceOptions.prepareInput = null;
|
|
76
|
+
serviceOptions.prepareOutput = null;
|
|
79
77
|
return this.getForce(id, serviceOptions);
|
|
80
78
|
}
|
|
81
79
|
|
|
@@ -140,10 +138,9 @@ export abstract class CrudService<T extends CoreModel = any> extends ModuleServi
|
|
|
140
138
|
filter?: FilterArgs | { filterQuery?: FilterQuery<any>; queryOptions?: QueryOptions; samples?: number },
|
|
141
139
|
serviceOptions: ServiceOptions = {}
|
|
142
140
|
): Promise<T[]> {
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
}
|
|
141
|
+
serviceOptions = serviceOptions || {};
|
|
142
|
+
serviceOptions.prepareInput = null;
|
|
143
|
+
serviceOptions.prepareOutput = null;
|
|
147
144
|
return this.findForce(filter, serviceOptions);
|
|
148
145
|
}
|
|
149
146
|
|
|
@@ -246,10 +243,9 @@ export abstract class CrudService<T extends CoreModel = any> extends ModuleServi
|
|
|
246
243
|
filter?: FilterArgs | { filterQuery?: FilterQuery<any>; queryOptions?: QueryOptions; samples?: number },
|
|
247
244
|
serviceOptions: ServiceOptions = {}
|
|
248
245
|
): Promise<{ items: T[]; totalCount: number }> {
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
}
|
|
246
|
+
serviceOptions = serviceOptions || {};
|
|
247
|
+
serviceOptions.prepareInput = null;
|
|
248
|
+
serviceOptions.prepareOutput = null;
|
|
253
249
|
return this.findAndCountForce(filter, serviceOptions);
|
|
254
250
|
}
|
|
255
251
|
|
|
@@ -302,10 +298,9 @@ export abstract class CrudService<T extends CoreModel = any> extends ModuleServi
|
|
|
302
298
|
filter?: FilterArgs | { filterQuery?: FilterQuery<any>; queryOptions?: QueryOptions; samples?: number },
|
|
303
299
|
serviceOptions: ServiceOptions = {}
|
|
304
300
|
): Promise<T[]> {
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
}
|
|
301
|
+
serviceOptions = serviceOptions || {};
|
|
302
|
+
serviceOptions.prepareInput = null;
|
|
303
|
+
serviceOptions.prepareOutput = null;
|
|
309
304
|
return this.findAndUpdateForce(filter, serviceOptions);
|
|
310
305
|
}
|
|
311
306
|
|
|
@@ -428,10 +423,9 @@ export abstract class CrudService<T extends CoreModel = any> extends ModuleServi
|
|
|
428
423
|
* Warning: Disables the handling of rights and restrictions! The raw data may contain secrets (such as passwords).
|
|
429
424
|
*/
|
|
430
425
|
async updateRaw(id: string, input: any, serviceOptions?: ServiceOptions): Promise<T> {
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
}
|
|
426
|
+
serviceOptions = serviceOptions || {};
|
|
427
|
+
serviceOptions.prepareInput = null;
|
|
428
|
+
serviceOptions.prepareOutput = null;
|
|
435
429
|
return this.updateForce(id, input, serviceOptions);
|
|
436
430
|
}
|
|
437
431
|
|
|
@@ -467,10 +461,9 @@ export abstract class CrudService<T extends CoreModel = any> extends ModuleServi
|
|
|
467
461
|
* Warning: Disables the handling of rights and restrictions! The raw data may contain secrets (such as passwords).
|
|
468
462
|
*/
|
|
469
463
|
async deleteRaw(id: string, serviceOptions?: ServiceOptions): Promise<T> {
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
}
|
|
464
|
+
serviceOptions = serviceOptions || {};
|
|
465
|
+
serviceOptions.prepareInput = null;
|
|
466
|
+
serviceOptions.prepareOutput = null;
|
|
474
467
|
return this.deleteForce(id, serviceOptions);
|
|
475
468
|
}
|
|
476
469
|
}
|