@scefira/dfw 1.4.5 → 1.4.7

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.
@@ -7,6 +7,7 @@ export declare class DFWService<TDatabase, TDeps extends object = {}> {
7
7
  get db(): TDatabase;
8
8
  get deps(): TDeps;
9
9
  constructor(dfw: DFWCore<TDatabase>, deps: TDeps);
10
- transaction: <R = any, TTx extends TDatabase = TDatabase>(cb: (tx: TTx) => Promise<R>) => Promise<R>;
10
+ use: (db: any) => this;
11
+ transaction: (cb: (tx: Omit<TDatabase, "$connect" | "$disconnect" | "$on" | "$transaction" | "$extends">) => Promise<any>) => Promise<any>;
11
12
  }
12
13
  //# sourceMappingURL=DFWService.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DFWService.d.ts","sourceRoot":"","sources":["../../../src/lib/DFWService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,qBAAa,UAAU,CAAC,SAAS,EAAE,KAAK,SAAS,MAAM,GAAG,EAAE;IAC1D,SAAS,CAAC,IAAI,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IACnC,SAAS,CAAC,GAAG,EAAE,SAAS,CAAC;IACzB,SAAS,CAAC,KAAK,EAAE,KAAK,CAAC;IAEvB,IAAI,GAAG,uBAEN;IAED,IAAI,EAAE,cAEL;IAED,IAAI,IAAI,UAEP;gBAEW,GAAG,EAAE,OAAO,CAAC,SAAS,CAAC,EAAE,IAAI,EAAE,KAAK;IAMzC,WAAW,GAChB,CAAC,GAAG,GAAG,EACP,GAAG,SAAS,SAAS,GAAG,SAAS,EAEjC,IAAI,CAAC,EAAE,EAAE,GAAG,KAAK,OAAO,CAAC,CAAC,CAAC,KAC1B,OAAO,CAAC,CAAC,CAAC,CAOX;CACH"}
1
+ {"version":3,"file":"DFWService.d.ts","sourceRoot":"","sources":["../../../src/lib/DFWService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,qBAAa,UAAU,CAAC,SAAS,EAAE,KAAK,SAAS,MAAM,GAAG,EAAE;IAC1D,SAAS,CAAC,IAAI,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IACnC,SAAS,CAAC,GAAG,EAAE,SAAS,CAAC;IACzB,SAAS,CAAC,KAAK,EAAE,KAAK,CAAC;IAEvB,IAAI,GAAG,uBAEN;IAED,IAAI,EAAE,cAEL;IAED,IAAI,IAAI,UAEP;gBAEW,GAAG,EAAE,OAAO,CAAC,SAAS,CAAC,EAAE,IAAI,EAAE,KAAK;IAMzC,GAAG,GACR,IAAI,GAAG,KACN,IAAI,CAGN;IAEM,WAAW,GAChB,IAAI,CACF,EAAE,EAAE,IAAI,CAAC,SAAS,EAAE,UAAU,GAAG,aAAa,GAAG,KAAK,GAAG,cAAc,GAAG,UAAU,CAAC,KAClF,OAAO,CAAC,GAAG,CAAC,kBAOlB;CACF"}
@@ -21,18 +21,21 @@ class DFWService {
21
21
  return this._deps;
22
22
  }
23
23
  constructor(dfw, deps) {
24
+ this.use = (db) => {
25
+ this._db = db;
26
+ return this.constructor(this._dfw, this._deps);
27
+ };
24
28
  this.transaction = (cb) => __awaiter(this, void 0, void 0, function* () {
25
- const anyDb = this._db;
26
- if (anyDb.$transaction) {
27
- return anyDb.$transaction(cb);
29
+ if (this._db.$transaction) {
30
+ return this._db.$transaction(cb);
28
31
  }
29
32
  else {
30
33
  return cb(this._db);
31
34
  }
32
35
  });
33
36
  this._dfw = dfw;
34
- this._db = dfw.db;
35
37
  this._deps = deps;
38
+ this._db = dfw.db;
36
39
  }
37
40
  }
38
41
  exports.DFWService = DFWService;
@@ -1 +1 @@
1
- {"version":3,"file":"DFWService.js","sourceRoot":"","sources":["../../../src/lib/DFWService.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,UAAU;IAKrB,IAAI,GAAG;QACL,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,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,GAAW,CAAC,YAAY,EAAE,CAAC;gBACnC,OAAQ,IAAI,CAAC,GAAW,CAAC,YAAY,CAAC,EAAE,CAAC,CAAA;YAC3C,CAAC;iBAAM,CAAC;gBACN,OAAO,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;YACrB,CAAC;QACH,CAAC,CAAA,CAAA;QAtBC,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC;QAChB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QAClB,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC,EAAE,CAAC;IACpB,CAAC;CAoBF;AAzCD,gCAyCC"}
@@ -13,14 +13,22 @@ export declare const TestService: import("./makers").ServiceCtor<import("./prism
13
13
  }, import("./prisma/internal/class").PrismaClient<never, import("./prisma/internal/prismaNamespace").GlobalOmitConfig | undefined, import("@prisma/client/runtime/client").DefaultArgs>>;
14
14
  dfwUser: DFWUserRepository;
15
15
  }, {
16
- getSessions(): Promise<{
17
- id: string;
18
- agent: string | null;
19
- createdAt: Date;
20
- updatedAt: Date;
21
- ip: string | null;
22
- idUser: string | null;
23
- expiresAt: Date | null;
24
- }[]>;
16
+ getSessions(): Promise<any>;
17
+ }>;
18
+ export declare const TestBService: import("./makers").ServiceCtor<import("./prisma/internal/class").PrismaClient<never, import("./prisma/internal/prismaNamespace").GlobalOmitConfig | undefined, import("@prisma/client/runtime/client").DefaultArgs>, {
19
+ test: import("./makers").RepositoryInstance<{
20
+ getTestDataAsync(): Promise<{
21
+ id: string;
22
+ agent: string | null;
23
+ createdAt: Date;
24
+ updatedAt: Date;
25
+ ip: string | null;
26
+ idUser: string | null;
27
+ expiresAt: Date | null;
28
+ }[]>;
29
+ }, import("./prisma/internal/class").PrismaClient<never, import("./prisma/internal/prismaNamespace").GlobalOmitConfig | undefined, import("@prisma/client/runtime/client").DefaultArgs>>;
30
+ dfwUser: DFWUserRepository;
31
+ }, {
32
+ testB(): Promise<any>;
25
33
  }>;
26
34
  //# sourceMappingURL=test.service.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"test.service.d.ts","sourceRoot":"","sources":["../../src/test.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAIrE,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;EAUtB,CAAA"}
1
+ {"version":3,"file":"test.service.d.ts","sourceRoot":"","sources":["../../src/test.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAIrE,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;EAUtB,CAAA;AAEF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;EAUvB,CAAA"}
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.TestService = void 0;
12
+ exports.TestBService = exports.TestService = void 0;
13
13
  const DFWUserRepository_1 = require("./repositories/DFWUserRepository");
14
14
  const test_dfw_1 = require("./test.dfw");
15
15
  const test_repository_1 = require("./test.repository");
@@ -26,4 +26,17 @@ exports.TestService = test_dfw_1.DFW.makeService({
26
26
  });
27
27
  }
28
28
  });
29
+ exports.TestBService = test_dfw_1.DFW.makeService({
30
+ test: new test_repository_1.TestRepository(),
31
+ dfwUser: new DFWUserRepository_1.DFWUserRepository(test_dfw_1.DFW),
32
+ }, {
33
+ testB() {
34
+ return __awaiter(this, void 0, void 0, function* () {
35
+ return this.transaction((db) => __awaiter(this, void 0, void 0, function* () {
36
+ const { getSessions } = new exports.TestService().use(db);
37
+ return getSessions();
38
+ }));
39
+ });
40
+ }
41
+ });
29
42
  //# sourceMappingURL=test.service.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"test.service.js","sourceRoot":"","sources":["../../src/test.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,wEAAqE;AACrE,yCAAiC;AACjC,uDAAm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EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,CAAA;gBACjD,OAAO,WAAW,EAAE,CAAA;YACxB,CAAC,CAAA,CAAC,CAAA;QACN,CAAC;KAAA;CACJ,CAAC,CAAA"}
@@ -7,6 +7,7 @@ export declare class DFWService<TDatabase, TDeps extends object = {}> {
7
7
  get db(): TDatabase;
8
8
  get deps(): TDeps;
9
9
  constructor(dfw: DFWCore<TDatabase>, deps: TDeps);
10
- transaction: <R = any, TTx extends TDatabase = TDatabase>(cb: (tx: TTx) => Promise<R>) => Promise<R>;
10
+ use: (db: any) => this;
11
+ transaction: (cb: (tx: Omit<TDatabase, "$connect" | "$disconnect" | "$on" | "$transaction" | "$extends">) => Promise<any>) => Promise<any>;
11
12
  }
12
13
  //# sourceMappingURL=DFWService.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DFWService.d.ts","sourceRoot":"","sources":["../../../src/lib/DFWService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,qBAAa,UAAU,CAAC,SAAS,EAAE,KAAK,SAAS,MAAM,GAAG,EAAE;IAC1D,SAAS,CAAC,IAAI,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IACnC,SAAS,CAAC,GAAG,EAAE,SAAS,CAAC;IACzB,SAAS,CAAC,KAAK,EAAE,KAAK,CAAC;IAEvB,IAAI,GAAG,uBAEN;IAED,IAAI,EAAE,cAEL;IAED,IAAI,IAAI,UAEP;gBAEW,GAAG,EAAE,OAAO,CAAC,SAAS,CAAC,EAAE,IAAI,EAAE,KAAK;IAMzC,WAAW,GAChB,CAAC,GAAG,GAAG,EACP,GAAG,SAAS,SAAS,GAAG,SAAS,EAEjC,IAAI,CAAC,EAAE,EAAE,GAAG,KAAK,OAAO,CAAC,CAAC,CAAC,KAC1B,OAAO,CAAC,CAAC,CAAC,CAOX;CACH"}
1
+ {"version":3,"file":"DFWService.d.ts","sourceRoot":"","sources":["../../../src/lib/DFWService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,qBAAa,UAAU,CAAC,SAAS,EAAE,KAAK,SAAS,MAAM,GAAG,EAAE;IAC1D,SAAS,CAAC,IAAI,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IACnC,SAAS,CAAC,GAAG,EAAE,SAAS,CAAC;IACzB,SAAS,CAAC,KAAK,EAAE,KAAK,CAAC;IAEvB,IAAI,GAAG,uBAEN;IAED,IAAI,EAAE,cAEL;IAED,IAAI,IAAI,UAEP;gBAEW,GAAG,EAAE,OAAO,CAAC,SAAS,CAAC,EAAE,IAAI,EAAE,KAAK;IAMzC,GAAG,GACR,IAAI,GAAG,KACN,IAAI,CAGN;IAEM,WAAW,GAChB,IAAI,CACF,EAAE,EAAE,IAAI,CAAC,SAAS,EAAE,UAAU,GAAG,aAAa,GAAG,KAAK,GAAG,cAAc,GAAG,UAAU,CAAC,KAClF,OAAO,CAAC,GAAG,CAAC,kBAOlB;CACF"}
@@ -10,18 +10,21 @@ export class DFWService {
10
10
  return this._deps;
11
11
  }
12
12
  constructor(dfw, deps) {
13
+ this.use = (db) => {
14
+ this._db = db;
15
+ return this.constructor(this._dfw, this._deps);
16
+ };
13
17
  this.transaction = async (cb) => {
14
- const anyDb = this._db;
15
- if (anyDb.$transaction) {
16
- return anyDb.$transaction(cb);
18
+ if (this._db.$transaction) {
19
+ return this._db.$transaction(cb);
17
20
  }
18
21
  else {
19
22
  return cb(this._db);
20
23
  }
21
24
  };
22
25
  this._dfw = dfw;
23
- this._db = dfw.db;
24
26
  this._deps = deps;
27
+ this._db = dfw.db;
25
28
  }
26
29
  }
27
30
  //# sourceMappingURL=DFWService.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DFWService.js","sourceRoot":"","sources":["../../../src/lib/DFWService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,MAAM,OAAO,UAAU;I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AA;QACxD,CAAC,CAAA;QAEM,gBAAW,GAAG,KAAK,EACxB,EAEiB,EACjB,EAAE;YACF,IAAK,IAAI,CAAC,GAAW,CAAC,YAAY,EAAE,CAAC;gBACnC,OAAQ,IAAI,CAAC,GAAW,CAAC,YAAY,CAAC,EAAE,CAAC,CAAA;YAC3C,CAAC;iBAAM,CAAC;gBACN,OAAO,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;YACrB,CAAC;QACH,CAAC,CAAA;QAtBC,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC;QAChB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QAClB,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC,EAAE,CAAC;IACpB,CAAC;CAoBF"}
@@ -13,14 +13,22 @@ export declare const TestService: import("./makers").ServiceCtor<import("./prism
13
13
  }, import("./prisma/internal/class").PrismaClient<never, import("./prisma/internal/prismaNamespace").GlobalOmitConfig | undefined, import("@prisma/client/runtime/client").DefaultArgs>>;
14
14
  dfwUser: DFWUserRepository;
15
15
  }, {
16
- getSessions(): Promise<{
17
- id: string;
18
- agent: string | null;
19
- createdAt: Date;
20
- updatedAt: Date;
21
- ip: string | null;
22
- idUser: string | null;
23
- expiresAt: Date | null;
24
- }[]>;
16
+ getSessions(): Promise<any>;
17
+ }>;
18
+ export declare const TestBService: import("./makers").ServiceCtor<import("./prisma/internal/class").PrismaClient<never, import("./prisma/internal/prismaNamespace").GlobalOmitConfig | undefined, import("@prisma/client/runtime/client").DefaultArgs>, {
19
+ test: import("./makers").RepositoryInstance<{
20
+ getTestDataAsync(): Promise<{
21
+ id: string;
22
+ agent: string | null;
23
+ createdAt: Date;
24
+ updatedAt: Date;
25
+ ip: string | null;
26
+ idUser: string | null;
27
+ expiresAt: Date | null;
28
+ }[]>;
29
+ }, import("./prisma/internal/class").PrismaClient<never, import("./prisma/internal/prismaNamespace").GlobalOmitConfig | undefined, import("@prisma/client/runtime/client").DefaultArgs>>;
30
+ dfwUser: DFWUserRepository;
31
+ }, {
32
+ testB(): Promise<any>;
25
33
  }>;
26
34
  //# sourceMappingURL=test.service.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"test.service.d.ts","sourceRoot":"","sources":["../../src/test.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAIrE,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;EAUtB,CAAA"}
1
+ {"version":3,"file":"test.service.d.ts","sourceRoot":"","sources":["../../src/test.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAIrE,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;EAUtB,CAAA;AAEF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;EAUvB,CAAA"}
@@ -12,4 +12,15 @@ export const TestService = DFW.makeService({
12
12
  });
13
13
  }
14
14
  });
15
+ export const TestBService = DFW.makeService({
16
+ test: new TestRepository(),
17
+ dfwUser: new DFWUserRepository(DFW),
18
+ }, {
19
+ async testB() {
20
+ return this.transaction(async (db) => {
21
+ const { getSessions } = new TestService().use(db);
22
+ return getSessions();
23
+ });
24
+ }
25
+ });
15
26
  //# sourceMappingURL=test.service.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"test.service.js","sourceRoot":"","sources":["../../src/test.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAC,WAAW,CAAC;IACvC,IAAI,EAAE,IAAI,cAAc,EAAE;IAC1B,OAAO,EAAE,IAAI,iBAAiB,CAAC,GAAG,CAAC;CACtC,EAAE;IACC,KAAK,CAAC,WAAW;QACb,OAAO,IAAI,CAAC,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AE,CAAA;QACxB,CAAC,CAAC,CAAA;IACN,CAAC;CACJ,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scefira/dfw",
3
- "version": "1.4.5",
3
+ "version": "1.4.7",
4
4
  "description": "NodeJS fast API prototiping framework",
5
5
  "main": "dist/cjs/index.js",
6
6
  "types": "dist/cjs/index.d.ts",