@qrvey/data-persistence 0.0.3-Rev-1-ds-support-array-v3 → 0.0.3-Rev-1-ds-support-array-v4
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.
|
@@ -15,10 +15,7 @@ const crudHelpers_1 = require("../helpers/crudHelpers");
|
|
|
15
15
|
const crudFactory_service_1 = require("./crudFactory.service");
|
|
16
16
|
class CrudService {
|
|
17
17
|
constructor(crudSchema) {
|
|
18
|
-
this.
|
|
19
|
-
}
|
|
20
|
-
async initializeCrudService(crudSchema) {
|
|
21
|
-
this.crudService = await crudFactory_service_1.CrudFactory.databaseClientService(crudSchema);
|
|
18
|
+
this.crudService = crudFactory_service_1.CrudFactory.databaseClientService(crudSchema);
|
|
22
19
|
}
|
|
23
20
|
create(entity) {
|
|
24
21
|
return this.crudService.create(entity);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"crud.service.js","sourceRoot":"","sources":["../../../src/services/crud.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,wDAIgC;AAUhC,+DAAoD;AAEpD,MAAM,WAAW;IAGb,YAAY,UAA6B;QACrC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"crud.service.js","sourceRoot":"","sources":["../../../src/services/crud.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,wDAIgC;AAUhC,+DAAoD;AAEpD,MAAM,WAAW;IAGb,YAAY,UAA6B;QACrC,IAAI,CAAC,WAAW,GAAG,iCAAW,CAAC,qBAAqB,CAAC,UAAU,CAAC,CAAC;IACrE,CAAC;IAED,MAAM,CAAC,MAAS;QACZ,OAAO,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC3C,CAAC;IAED,IAAI,CAAC,OAAqB;QACtB,OAAO,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC1C,CAAC;IAED,QAAQ,CAAC,OAAqB;QAC1B,OA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
|
|
102
102
|
declare class CrudService<T> {
|
|
103
103
|
private crudService;
|
|
104
104
|
constructor(crudSchema: typeof CrudSchema);
|
|
105
|
-
private initializeCrudService;
|
|
106
105
|
create(entity: T): Promise<T>;
|
|
107
106
|
find(options: IFindOptions): Promise<IFindResult<T>>;
|
|
108
107
|
findItem(options: IFindOptions): Promise<T | null>;
|
package/package.json
CHANGED