@solid-nestjs/common 0.2.1 → 0.2.2
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 +21 -0
- package/dist/decorators/current-context.decorator.d.ts.map +1 -1
- package/dist/decorators/current-context.decorator.js.map +1 -1
- package/dist/decorators/ignore-arg.decorator.d.ts.map +1 -1
- package/dist/decorators/ignore-arg.decorator.js.map +1 -1
- package/dist/decorators/index.d.ts.map +1 -1
- package/dist/decorators/index.js.map +1 -1
- package/dist/decorators/wrapped.decorator.d.ts.map +1 -1
- package/dist/decorators/wrapped.decorator.js.map +1 -1
- package/dist/enums/order-by-type.enum.d.ts.map +1 -1
- package/dist/enums/order-by-type.enum.js.map +1 -1
- package/dist/enums/standard-actions.enum.d.ts.map +1 -1
- package/dist/enums/standard-actions.enum.js.map +1 -1
- package/dist/helpers/pagination.helper.d.ts +1 -1
- package/dist/helpers/pagination.helper.d.ts.map +1 -1
- package/dist/helpers/pagination.helper.js.map +1 -1
- package/dist/helpers/pipe-transform.helper.d.ts.map +1 -1
- package/dist/helpers/pipe-transform.helper.js.map +1 -1
- package/dist/helpers/types.helper.d.ts +1 -1
- package/dist/helpers/types.helper.d.ts.map +1 -1
- package/dist/helpers/types.helper.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/interfaces/misc/audit-service.interface.d.ts +1 -1
- package/dist/interfaces/misc/audit-service.interface.d.ts.map +1 -1
- package/dist/interfaces/misc/audit-service.interface.js +1 -1
- package/dist/interfaces/misc/audit-service.interface.js.map +1 -1
- package/dist/interfaces/misc/context.interface.d.ts.map +1 -1
- package/dist/interfaces/misc/entity.interface.d.ts.map +1 -1
- package/dist/interfaces/misc/filters.interfaces.d.ts.map +1 -1
- package/dist/interfaces/misc/find-args.interface.d.ts +2 -2
- package/dist/interfaces/misc/pagination-request.interface.d.ts.map +1 -1
- package/dist/interfaces/misc/pagination-result.interface.d.ts.map +1 -1
- package/dist/interfaces/services/crud-service.interface.d.ts +2 -2
- package/dist/interfaces/services/crud-service.interface.d.ts.map +1 -1
- package/dist/interfaces/services/data-service.interface.d.ts.map +1 -1
- package/dist/interfaces/structures/entity-provider-structure.interface.d.ts +3 -3
- package/dist/interfaces/structures/entity-provider-structure.interface.d.ts.map +1 -1
- package/dist/interfaces/structures/entity-provider-structure.interface.js +2 -2
- package/dist/interfaces/structures/entity-provider-structure.interface.js.map +1 -1
- package/dist/pipes/query-transform.pipe.d.ts.map +1 -1
- package/dist/pipes/query-transform.pipe.js.map +1 -1
- package/dist/types/boolean.type.d.ts.map +1 -1
- package/dist/types/constructor.type.d.ts +1 -1
- package/dist/types/constructor.type.d.ts.map +1 -1
- package/dist/types/deep-partial.type.d.ts.map +1 -1
- package/dist/types/find-args.type.d.ts.map +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js.map +1 -1
- package/dist/utils/decorators.utils.d.ts.map +1 -1
- package/dist/utils/decorators.utils.js +4 -4
- package/dist/utils/decorators.utils.js.map +1 -1
- package/dist/utils/http-status.utils.d.ts +1 -1
- package/dist/utils/http-status.utils.d.ts.map +1 -1
- package/dist/utils/http-status.utils.js.map +1 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js.map +1 -1
- package/package.json +40 -39
package/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2025 solid-nestjs
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"current-context.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/current-context.decorator.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,cAAc,
|
1
|
+
{"version":3,"file":"current-context.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/current-context.decorator.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,cAAc,mDAM1B,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"current-context.decorator.js","sourceRoot":"","sources":["../../src/decorators/current-context.decorator.ts"],"names":[],"mappings":";;;AAAA,2CAAwE;AAG3D,QAAA,cAAc,GAAG,IAAA,6BAAoB,
|
1
|
+
{"version":3,"file":"current-context.decorator.js","sourceRoot":"","sources":["../../src/decorators/current-context.decorator.ts"],"names":[],"mappings":";;;AAAA,2CAAwE;AAG3D,QAAA,cAAc,GAAG,IAAA,6BAAoB,EAChD,CAAC,IAAa,EAAE,OAAyB,EAAE,EAAE;IAC3C,MAAM,cAAc,GAAY,EAAE,CAAC;IAEnC,OAAO,cAAc,CAAC;AACxB,CAAC,CACF,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ignore-arg.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/ignore-arg.decorator.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,
|
1
|
+
{"version":3,"file":"ignore-arg.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/ignore-arg.decorator.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,mDAIrB,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ignore-arg.decorator.js","sourceRoot":"","sources":["../../src/decorators/ignore-arg.decorator.ts"],"names":[],"mappings":";;;AAAA,2CAAwE;AAE3D,QAAA,SAAS,GAAG,IAAA,6BAAoB,
|
1
|
+
{"version":3,"file":"ignore-arg.decorator.js","sourceRoot":"","sources":["../../src/decorators/ignore-arg.decorator.ts"],"names":[],"mappings":";;;AAAA,2CAAwE;AAE3D,QAAA,SAAS,GAAG,IAAA,6BAAoB,EAC3C,CAAC,IAAa,EAAE,OAAyB,EAAE,EAAE;IAC3C,OAAO,SAAS,CAAC;AACnB,CAAC,CACF,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/decorators/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/decorators/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/decorators/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA4C;AAC5C,yDAAuC;AACvC,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/decorators/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA4C;AAC5C,yDAAuC;AACvC,sDAAoC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"wrapped.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/wrapped.decorator.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"wrapped.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/wrapped.decorator.ts"],"names":[],"mappings":"AA0BA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,SAAS,CACvB,OAAO,EAAE,CACP,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,OAAO,CAAC,GAAG,CAAC,EACtC,IAAI,EAAE,GAAG,EAAE,KACR,OAAO,CAAC,GAAG,CAAC,EACjB,OAAO,CAAC,EAAE,GAAG,GACZ,eAAe,CAgBjB"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"wrapped.decorator.js","sourceRoot":"","sources":["../../src/decorators/wrapped.decorator.ts"],"names":[],"mappings":";;
|
1
|
+
{"version":3,"file":"wrapped.decorator.js","sourceRoot":"","sources":["../../src/decorators/wrapped.decorator.ts"],"names":[],"mappings":";;AAkDA,8BAuBC;AAzED;;;;;;;;;;;GAWG;AACH,KAAK,UAAU,IAAI,CACjB,OAAY,EACZ,EAAK,EACL,OAI2B;IAE3B,OAAO,KAAK,EAAE,GAAG,IAAmB,EAAE,EAAE;QACtC,OAAO,OAAO,CAAC,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC;IACpE,CAAC,CAAC;AACJ,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,SAAgB,SAAS,CACvB,OAIiB,EACjB,OAAa;IAEb,OAAO,UAAU,MAAM,EAAE,WAAW,EAAE,UAA8B;QAClE,MAAM,cAAc,GAAG,UAAU,CAAC,KAAK,CAAC;QAExC,UAAU,CAAC,KAAK,GAAG,KAAK,WAAW,GAAG,IAAW;YAC/C,MAAM,UAAU,GAAG,IAAI,CAAC;YACxB,MAAM,UAAU,GAAG,EAAE,GAAG,OAAO,EAAE,UAAU,EAAE,CAAC;YAE9C,MAAM,WAAW,GAAG,MAAM,IAAI,CAC5B,UAAU,EACV,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,EACzB,OAAO,CACR,CAAC;YACF,OAAO,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC;QAC9B,CAAC,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"order-by-type.enum.d.ts","sourceRoot":"","sources":["../../src/enums/order-by-type.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,YAAY;
|
1
|
+
{"version":3,"file":"order-by-type.enum.d.ts","sourceRoot":"","sources":["../../src/enums/order-by-type.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,YAAY;IACtB,GAAG,QAAQ;IACX,IAAI,SAAS;CACd"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"order-by-type.enum.js","sourceRoot":"","sources":["../../src/enums/order-by-type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAGX;AAHD,WAAY,YAAY;
|
1
|
+
{"version":3,"file":"order-by-type.enum.js","sourceRoot":"","sources":["../../src/enums/order-by-type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,2BAAW,CAAA;IACX,6BAAa,CAAA;AACf,CAAC,EAHW,YAAY,4BAAZ,YAAY,QAGvB"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"standard-actions.enum.d.ts","sourceRoot":"","sources":["../../src/enums/standard-actions.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,eAAe;
|
1
|
+
{"version":3,"file":"standard-actions.enum.d.ts","sourceRoot":"","sources":["../../src/enums/standard-actions.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,eAAe;IACzB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"standard-actions.enum.js","sourceRoot":"","sources":["../../src/enums/standard-actions.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,eAIX;AAJD,WAAY,eAAe;
|
1
|
+
{"version":3,"file":"standard-actions.enum.js","sourceRoot":"","sources":["../../src/enums/standard-actions.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,oCAAiB,CAAA;IACjB,oCAAiB,CAAA;IACjB,oCAAiB,CAAA;AACnB,CAAC,EAJW,eAAe,+BAAf,eAAe,QAI1B"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"pagination.helper.d.ts","sourceRoot":"","sources":["../../src/helpers/pagination.helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAElD,wBAAgB,iBAAiB,
|
1
|
+
{"version":3,"file":"pagination.helper.d.ts","sourceRoot":"","sources":["../../src/helpers/pagination.helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAElD,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,iBAAiB,GAAG;IAChE,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd,CAOA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"pagination.helper.js","sourceRoot":"","sources":["../../src/helpers/pagination.helper.ts"],"names":[],"mappings":";;AAEA,
|
1
|
+
{"version":3,"file":"pagination.helper.js","sourceRoot":"","sources":["../../src/helpers/pagination.helper.ts"],"names":[],"mappings":";;AAEA,8CAUC;AAVD,SAAgB,iBAAiB,CAAC,UAA6B;IAI7D,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,UAAU,CAAC;IAEzD,OAAO;QACL,IAAI,EAAE,IAAI,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,QAAQ,IAAI,CAAC,CAAC;QACjD,IAAI,EAAE,IAAI,IAAI,CAAC,QAAQ,IAAI,CAAC,CAAC;KAC9B,CAAC;AACJ,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"pipe-transform.helper.d.ts","sourceRoot":"","sources":["../../src/helpers/pipe-transform.helper.ts"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"pipe-transform.helper.d.ts","sourceRoot":"","sources":["../../src/helpers/pipe-transform.helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,IAAI,EACJ,aAAa,EACd,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAGvC,KAAK,qBAAqB,GAAG,QAAQ,GAAG,WAAW,CAAC;AASpD;;;;;;;;;GASG;AACH,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,qBAAqB,GAC1B,IAAI,CAAC,aAAa,CAAC,GAAG,SAAS,CAOjC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"pipe-transform.helper.js","sourceRoot":"","sources":["../../src/helpers/pipe-transform.helper.ts"],"names":[],"mappings":";;
|
1
|
+
{"version":3,"file":"pipe-transform.helper.js","sourceRoot":"","sources":["../../src/helpers/pipe-transform.helper.ts"],"names":[],"mappings":";;AA6BA,0DASC;AAtCD,2CAMwB;AAMxB,MAAM,WAAW,GAAG,IAAI,GAAG,CAA2C;IACpE,CAAC,MAAM,EAAE,qBAAY,CAAC;IACtB,CAAC,MAAM,EAAE,qBAAY,CAAC;IACtB,CAAC,MAAM,EAAE,SAAS,CAAC;IACnB,CAAC,OAAO,EAAE,sBAAa,CAAC;CACzB,CAAC,CAAC;AAEH;;;;;;;;;GASG;AACH,SAAgB,uBAAuB,CACrC,IAA2B;IAE3B,sBAAsB;IACtB,IAAI,IAAI,KAAK,MAAM,IAAI,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;QACxC,OAAO,sBAAa,CAAC;IACvB,CAAC;IAED,OAAO,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;AAC/B,CAAC;AAED,SAAS,UAAU,CAAC,IAA2B;IAC7C,kEAAkE;IAClE,mDAAmD;IACnD,OAAO,KAAK,CAAC;AACf,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.helper.d.ts","sourceRoot":"","sources":["../../src/helpers/types.helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,
|
1
|
+
{"version":3,"file":"types.helper.d.ts","sourceRoot":"","sources":["../../src/helpers/types.helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,CAW3D;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe,CAAC,WAAW,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,OAEtE"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.helper.js","sourceRoot":"","sources":["../../src/helpers/types.helper.ts"],"names":[],"mappings":";;AASA,
|
1
|
+
{"version":3,"file":"types.helper.js","sourceRoot":"","sources":["../../src/helpers/types.helper.ts"],"names":[],"mappings":";;AASA,kCAWC;AAaD,0CAEC;AAjCD;;;;;;GAMG;AACH,SAAgB,WAAW,CAAC,IAAuB;IACjD,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;QAC7B,OAAO,IAAI,CAAC;IACd,CAAC;IAED,uCAAuC;IACvC,IAAI,OAAO,IAAI,KAAK,UAAU,EAAE,CAAC;QAC/B,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAED,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;AACrE,CAAC;AAED;;;;;;;;;;GAUG;AACH,SAAgB,eAAe,CAAC,WAAwB,EAAE,KAAa;IACrE,OAAO,OAAO,CAAC,WAAW,CAAC,aAAa,EAAE,WAAW,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;AAC1E,CAAC"}
|
package/dist/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
|
package/dist/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,+CAA6B;AAC7B,0CAAwB;AACxB,0CAAwB;AACxB,4CAA0B;AAC1B,0CAAwB;AACxB,0CAAwB"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"audit-service.interface.d.ts","sourceRoot":"","sources":["../../../src/interfaces/misc/audit-service.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,MAAM,WAAW,YAAY;
|
1
|
+
{"version":3,"file":"audit-service.interface.d.ts","sourceRoot":"","sources":["../../../src/interfaces/misc/audit-service.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,MAAM,WAAW,YAAY;IAC3B,KAAK,CACH,OAAO,EAAE,OAAO,EAChB,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,MAAM,EACd,QAAQ,CAAC,EAAE,GAAG,EACd,WAAW,CAAC,EAAE,MAAM,EACpB,UAAU,CAAC,EAAE,MAAM,GAClB,OAAO,CAAC,IAAI,CAAC,CAAC;CAClB;AAED,eAAO,MAAM,YAAY,eAAyB,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"audit-service.interface.js","sourceRoot":"","sources":["../../../src/interfaces/misc/audit-service.interface.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"audit-service.interface.js","sourceRoot":"","sources":["../../../src/interfaces/misc/audit-service.interface.ts"],"names":[],"mappings":";;;AAaa,QAAA,YAAY,GAAG,MAAM,CAAC,cAAc,CAAC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"context.interface.d.ts","sourceRoot":"","sources":["../../../src/interfaces/misc/context.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,OAAO;
|
1
|
+
{"version":3,"file":"context.interface.d.ts","sourceRoot":"","sources":["../../../src/interfaces/misc/context.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,OAAO;CAAG"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"entity.interface.d.ts","sourceRoot":"","sources":["../../../src/interfaces/misc/entity.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,MAAM,CAAC,MAAM;
|
1
|
+
{"version":3,"file":"entity.interface.d.ts","sourceRoot":"","sources":["../../../src/interfaces/misc/entity.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,MAAM,CAAC,MAAM;IAC5B,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,MAAM,UAAU,CAAC,CAAC,IAAI,CAAC,SAAS,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"filters.interfaces.d.ts","sourceRoot":"","sources":["../../../src/interfaces/misc/filters.interfaces.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;
|
1
|
+
{"version":3,"file":"filters.interfaces.d.ts","sourceRoot":"","sources":["../../../src/interfaces/misc/filters.interfaces.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,YAAY;IAC3B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;CACxB;AAED,MAAM,WAAW,UAAU;IACzB,GAAG,CAAC,EAAE,IAAI,CAAC;IACX,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,GAAG,CAAC,EAAE,IAAI,CAAC;IACX,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,GAAG,CAAC,EAAE,IAAI,CAAC;IACX,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,GAAG,CAAC,EAAE,IAAI,EAAE,CAAC;IACb,QAAQ,CAAC,EAAE,IAAI,EAAE,CAAC;IAClB,WAAW,CAAC,EAAE,IAAI,EAAE,CAAC;CACtB"}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { Where, OrderBy } from
|
2
|
-
import { PaginationRequest } from
|
1
|
+
import { Where, OrderBy } from '../../types/find-args.type';
|
2
|
+
import { PaginationRequest } from './pagination-request.interface';
|
3
3
|
export interface FindArgs<T> {
|
4
4
|
pagination?: PaginationRequest;
|
5
5
|
where?: Where<T>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"pagination-request.interface.d.ts","sourceRoot":"","sources":["../../../src/interfaces/misc/pagination-request.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;
|
1
|
+
{"version":3,"file":"pagination-request.interface.d.ts","sourceRoot":"","sources":["../../../src/interfaces/misc/pagination-request.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"pagination-result.interface.d.ts","sourceRoot":"","sources":["../../../src/interfaces/misc/pagination-result.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;
|
1
|
+
{"version":3,"file":"pagination-result.interface.d.ts","sourceRoot":"","sources":["../../../src/interfaces/misc/pagination-result.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,OAAO,CAAC;IACrB,eAAe,EAAE,OAAO,CAAC;CAC1B"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { DeepPartial } from '../../types';
|
2
|
-
import { Context, IdTypeFrom, Entity } from
|
3
|
-
import { DataService } from
|
2
|
+
import { Context, IdTypeFrom, Entity } from '../misc';
|
3
|
+
import { DataService } from './data-service.interface';
|
4
4
|
/**
|
5
5
|
* Interface defining Create, Update, and Delete (CUD) operations for a service.
|
6
6
|
*
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"crud-service.interface.d.ts","sourceRoot":"","sources":["../../../src/interfaces/services/crud-service.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,
|
1
|
+
{"version":3,"file":"crud-service.interface.d.ts","sourceRoot":"","sources":["../../../src/interfaces/services/crud-service.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAEvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,MAAM,WAAW,UAAU,CACzB,MAAM,SAAS,UAAU,CAAC,UAAU,CAAC,EACrC,UAAU,SAAS,MAAM,CAAC,OAAO,CAAC,EAClC,eAAe,SAAS,WAAW,CAAC,UAAU,CAAC,EAC/C,eAAe,SAAS,WAAW,CAAC,UAAU,CAAC,EAC/C,WAAW,SAAS,OAAO,GAAG,OAAO;IAErC,MAAM,CACJ,OAAO,EAAE,WAAW,EACpB,WAAW,EAAE,eAAe,GAC3B,OAAO,CAAC,UAAU,CAAC,CAAC;IAEvB,MAAM,CACJ,OAAO,EAAE,WAAW,EACpB,EAAE,EAAE,MAAM,EACV,WAAW,EAAE,eAAe,GAC3B,OAAO,CAAC,UAAU,CAAC,CAAC;IAEvB,MAAM,CAAC,OAAO,EAAE,WAAW,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;IAE9D,UAAU,CAAC,OAAO,EAAE,WAAW,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;CACnE;AAED;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,WAAW,CAC1B,MAAM,SAAS,UAAU,CAAC,UAAU,CAAC,EACrC,UAAU,SAAS,MAAM,CAAC,OAAO,CAAC,EAClC,eAAe,SAAS,WAAW,CAAC,UAAU,CAAC,EAC/C,eAAe,SAAS,WAAW,CAAC,UAAU,CAAC,EAC/C,WAAW,SAAS,OAAO,GAAG,OAAO,CACrC,SAAQ,WAAW,CAAC,MAAM,EAAE,UAAU,EAAE,WAAW,CAAC,EAClD,UAAU,CACR,MAAM,EACN,UAAU,EACV,eAAe,EACf,eAAe,EACf,WAAW,CACZ;CAAG"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"data-service.interface.d.ts","sourceRoot":"","sources":["../../../src/interfaces/services/data-service.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAC7D,OAAO,
|
1
|
+
{"version":3,"file":"data-service.interface.d.ts","sourceRoot":"","sources":["../../../src/interfaces/services/data-service.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAC7D,OAAO,EACL,OAAO,EACP,UAAU,EACV,MAAM,EACN,QAAQ,EACR,gBAAgB,EACjB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAC;AAEnD;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,WAAW,WAAW,CAC1B,MAAM,SAAS,UAAU,CAAC,UAAU,CAAC,EACrC,UAAU,SAAS,MAAM,CAAC,OAAO,CAAC,EAClC,WAAW,SAAS,OAAO,GAAG,OAAO;IAErC,OAAO,CAAC,KAAK,SAAS,WAAW,GAAG,KAAK,EACvC,OAAO,EAAE,WAAW,EACpB,IAAI,CAAC,EAAE,QAAQ,CAAC,UAAU,CAAC,EAC3B,cAAc,CAAC,EAAE,KAAK,GACrB,OAAO,CACR,EAAE,CACA,KAAK,EACL;QAAE,IAAI,EAAE,UAAU,EAAE,CAAC;QAAC,UAAU,EAAE,gBAAgB,CAAA;KAAE,EACpD,UAAU,EAAE,CACb,CACF,CAAC;IAEF,UAAU,CACR,OAAO,EAAE,WAAW,EACpB,IAAI,CAAC,EAAE,QAAQ,CAAC,UAAU,CAAC,GAC1B,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAE7B,OAAO,CAAC,KAAK,SAAS,WAAW,GAAG,KAAK,EACvC,OAAO,EAAE,WAAW,EACpB,EAAE,EAAE,MAAM,EACV,MAAM,CAAC,EAAE,KAAK,GACb,OAAO,CAAC,aAAa,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC;IAE7C,SAAS,CAAC,KAAK,SAAS,WAAW,GAAG,KAAK,EACzC,OAAO,EAAE,WAAW,EACpB,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,EACxB,MAAM,CAAC,EAAE,KAAK,GACb,OAAO,CAAC,aAAa,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC;IAE7C,gBAAgB,CAAC,UAAU,EACzB,OAAO,EAAE,WAAW,EACpB,EAAE,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,OAAO,CAAC,UAAU,CAAC,GAChD,OAAO,CAAC,UAAU,CAAC,CAAC;IAEvB,KAAK,CACH,OAAO,EAAE,WAAW,EACpB,MAAM,EAAE,MAAM,EACd,QAAQ,CAAC,EAAE,MAAM,EACjB,WAAW,CAAC,EAAE,MAAM,EACpB,UAAU,CAAC,EAAE,MAAM,GAClB,OAAO,CAAC,IAAI,CAAC,CAAC;CAClB"}
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { PipeTransform, Type } from
|
2
|
-
import { Constructable } from
|
3
|
-
import { Entity, IdTypeFrom } from
|
1
|
+
import { PipeTransform, Type } from '@nestjs/common';
|
2
|
+
import { Constructable } from '../../types';
|
3
|
+
import { Entity, IdTypeFrom } from '../misc';
|
4
4
|
export interface IdStructure<IdType> {
|
5
5
|
type: Constructable<IdType>;
|
6
6
|
pipeTransforms?: Type<PipeTransform>[];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"entity-provider-structure.interface.d.ts","sourceRoot":"","sources":["../../../src/interfaces/structures/entity-provider-structure.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAErD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE7C,MAAM,WAAW,WAAW,CAAC,MAAM;
|
1
|
+
{"version":3,"file":"entity-provider-structure.interface.d.ts","sourceRoot":"","sources":["../../../src/interfaces/structures/entity-provider-structure.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAErD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE7C,MAAM,WAAW,WAAW,CAAC,MAAM;IACjC,IAAI,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAC5B,cAAc,CAAC,EAAE,IAAI,CAAC,aAAa,CAAC,EAAE,CAAC;CACxC;AAED,MAAM,WAAW,uBAAuB,CACtC,MAAM,SAAS,UAAU,CAAC,UAAU,CAAC,EACrC,UAAU,SAAS,MAAM,CAAC,OAAO,CAAC;IAElC,UAAU,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;IACtC,QAAQ,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CAChC;AAED,wBAAgB,YAAY,CAC1B,MAAM,SAAS,UAAU,CAAC,UAAU,CAAC,EACrC,UAAU,SAAS,MAAM,CAAC,OAAO,CAAC,EAClC,cAAc,EAAE,uBAAuB,CAAC,MAAM,EAAE,UAAU,CAAC,QAU5D"}
|
@@ -5,11 +5,11 @@ const helpers_1 = require("../../helpers");
|
|
5
5
|
function fillEntityId(entityProvider) {
|
6
6
|
if (entityProvider.entityId)
|
7
7
|
return;
|
8
|
-
const idType = (0, helpers_1.getPropertyType)(entityProvider.entityType,
|
8
|
+
const idType = (0, helpers_1.getPropertyType)(entityProvider.entityType, 'id');
|
9
9
|
const idPipeTransform = (0, helpers_1.getPipeTransformForType)(idType);
|
10
10
|
entityProvider.entityId = {
|
11
11
|
type: idType,
|
12
|
-
pipeTransforms:
|
12
|
+
pipeTransforms: idPipeTransform ? [idPipeTransform] : [],
|
13
13
|
};
|
14
14
|
}
|
15
15
|
//# sourceMappingURL=entity-provider-structure.interface.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"entity-provider-structure.interface.js","sourceRoot":"","sources":["../../../src/interfaces/structures/entity-provider-structure.interface.ts"],"names":[],"mappings":";;
|
1
|
+
{"version":3,"file":"entity-provider-structure.interface.js","sourceRoot":"","sources":["../../../src/interfaces/structures/entity-provider-structure.interface.ts"],"names":[],"mappings":";;AAkBA,oCAaC;AA9BD,2CAAyE;AAiBzE,SAAgB,YAAY,CAG1B,cAA2D;IAC3D,IAAI,cAAc,CAAC,QAAQ;QAAE,OAAO;IAEpC,MAAM,MAAM,GAAG,IAAA,yBAAe,EAAC,cAAc,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;IAChE,MAAM,eAAe,GAAG,IAAA,iCAAuB,EAAC,MAAM,CAAC,CAAC;IAExD,cAAc,CAAC,QAAQ,GAAG;QACxB,IAAI,EAAE,MAAM;QACZ,cAAc,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,EAAE;KACzD,CAAC;AACJ,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"query-transform.pipe.d.ts","sourceRoot":"","sources":["../../src/pipes/query-transform.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAc,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;
|
1
|
+
{"version":3,"file":"query-transform.pipe.d.ts","sourceRoot":"","sources":["../../src/pipes/query-transform.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAc,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAE7E;;;;;;;;;;;;;;;;;GAiBG;AACH,qBACa,kBAAmB,YAAW,aAAa;IACtD,SAAS,CAAC,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAE,gBAAgB;CAmBjD"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"query-transform.pipe.js","sourceRoot":"","sources":["../../src/pipes/query-transform.pipe.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA6E;
|
1
|
+
{"version":3,"file":"query-transform.pipe.js","sourceRoot":"","sources":["../../src/pipes/query-transform.pipe.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA6E;AAE7E;;;;;;;;;;;;;;;;;GAiBG;AAEI,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAC7B,SAAS,CAAC,KAAU,EAAE,QAA0B;QAC9C,IAAI,CAAC,KAAK;YAAE,OAAO,KAAK,CAAC;QAEzB,MAAM,WAAW,GAAG,EAAE,CAAC;QAEvB,KAAK,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;YAC/C,IAAI,CAAC;gBACH,WAAW,CAAC,GAAG,CAAC,GAAG,OAAO,GAAG,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;YACrE,CAAC;YAAC,OAAO,CAAC,EAAE,CAAC;gBACX,yBAAyB;gBACzB,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;oBACnD,WAAW,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;gBACjC,CAAC;qBAAM,CAAC;oBACN,WAAW,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC;gBACzB,CAAC;YACH,CAAC;QACH,CAAC;QACD,OAAO,WAAW,CAAC;IACrB,CAAC;CACF,CAAA;AApBY,gDAAkB;6BAAlB,kBAAkB;IAD9B,IAAA,mBAAU,GAAE;GACA,kBAAkB,CAoB9B"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"boolean.type.d.ts","sourceRoot":"","sources":["../../src/types/boolean.type.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,IAAI,GAAG,KAAK,CAAC;AAEvC;;;;;;GAMG;AACH,MAAM,MAAM,aAAa,
|
1
|
+
{"version":3,"file":"boolean.type.d.ts","sourceRoot":"","sources":["../../src/types/boolean.type.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,IAAI,GAAG,KAAK,CAAC;AAEvC;;;;;;GAMG;AACH,MAAM,MAAM,aAAa,CACvB,KAAK,SAAS,WAAW,GAAG,KAAK,EACjC,KAAK,GAAG,GAAG,IACT,KAAK,SAAS,IAAI,GAAG,KAAK,GAAG,KAAK,GAAG,IAAI,CAAC;AAE9C;;;;;;;GAOG;AACH,MAAM,MAAM,EAAE,CACZ,KAAK,SAAS,WAAW,GAAG,KAAK,EACjC,MAAM,GAAG,GAAG,EACZ,MAAM,GAAG,GAAG,IACV,KAAK,SAAS,IAAI,GAAG,MAAM,GAAG,MAAM,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constructor.type.d.ts","sourceRoot":"","sources":["../../src/types/constructor.type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG,
|
1
|
+
{"version":3,"file":"constructor.type.d.ts","sourceRoot":"","sources":["../../src/types/constructor.type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC;AAEtD;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,aAAa,CAAC,IAAI,GAAG,MAAM,IAAI,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"deep-partial.type.d.ts","sourceRoot":"","sources":["../../src/types/deep-partial.type.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,
|
1
|
+
{"version":3,"file":"deep-partial.type.d.ts","sourceRoot":"","sources":["../../src/types/deep-partial.type.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,IACrB,CAAC,GACD,CAAC,CAAC,SAAS,KAAK,CAAC,MAAM,CAAC,CAAC,GACrB,WAAW,CAAC,CAAC,CAAC,EAAE,GAChB,CAAC,SAAS,GAAG,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC,GAC7B,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,GACnC,CAAC,SAAS,GAAG,CAAC,MAAM,CAAC,CAAC,GACpB,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,GACnB,CAAC,SAAS,MAAM,GACd;KACG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CACnC,GACD,CAAC,CAAC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"find-args.type.d.ts","sourceRoot":"","sources":["../../src/types/find-args.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,
|
1
|
+
{"version":3,"file":"find-args.type.d.ts","sourceRoot":"","sources":["../../src/types/find-args.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EACL,YAAY,EACZ,YAAY,EACZ,UAAU,EACX,MAAM,yCAAyC,CAAC;AAEjD;;;;;;;;;;;;GAYG;AACH,KAAK,UAAU,CAAC,CAAC,IAAI,CAAC,SAAS,MAAM,GACjC,MAAM,GAAG,MAAM,EAAE,GAAG,YAAY,GAChC,CAAC,SAAS,MAAM,GACd,MAAM,GAAG,MAAM,EAAE,GAAG,YAAY,GAChC,CAAC,SAAS,IAAI,GACZ,IAAI,GAAG,IAAI,EAAE,GAAG,UAAU,GAC1B,CAAC,SAAS,OAAO,GACf,OAAO,GACP,KAAK,CAAC,CAAC,CAAC,CAAC;AAEnB;;;;;;;;;;GAUG;AACH,MAAM,MAAM,KAAK,CAAC,CAAC,IAAI;KACpB,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAClC,GAAG;IACF,IAAI,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;IAC7B,GAAG,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;CAC7B,CAAC;AAEF;;;;;;;;;;GAUG;AACH,KAAK,YAAY,CAAC,CAAC,IAAI,CAAC,SAAS,MAAM,GACnC,YAAY,GACZ,CAAC,SAAS,MAAM,GACd,YAAY,GACZ,CAAC,SAAS,IAAI,GACZ,YAAY,GACZ,CAAC,SAAS,OAAO,GACf,YAAY,GACZ,OAAO,CAAC,CAAC,CAAC,CAAC;AAErB;;;;;GAKG;AACH,MAAM,MAAM,OAAO,CAAC,CAAC,IAAI;KACtB,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CACpC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC"}
|
package/dist/types/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,iDAA+B;AAC/B,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,iDAA+B;AAC/B,sDAAoC;AACpC,mDAAiC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"decorators.utils.d.ts","sourceRoot":"","sources":["../../src/utils/decorators.utils.ts"],"names":[],"mappings":"AACA;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,CAAC,MAAM,eAAe,CAAC,EAAE,+
|
1
|
+
{"version":3,"file":"decorators.utils.d.ts","sourceRoot":"","sources":["../../src/utils/decorators.utils.ts"],"names":[],"mappings":"AACA;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,CAAC,MAAM,eAAe,CAAC,EAAE,+IAI1E;AAED;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CACrC,SAAS,EAAE,OAAO,GAAG,CAAC,MAAM,OAAO,CAAC,EACpC,UAAU,EAAE,CAAC,MAAM,eAAe,CAAC,EAAE,+IAOtC;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,CAAC,MAAM,cAAc,CAAC,EAAE,+IAIxE;AAED;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CACpC,SAAS,EAAE,OAAO,GAAG,CAAC,MAAM,OAAO,CAAC,EACpC,UAAU,EAAE,CAAC,MAAM,cAAc,CAAC,EAAE,+IAOrC"}
|
@@ -15,7 +15,7 @@ const common_1 = require("@nestjs/common");
|
|
15
15
|
function applyMethodDecorators(decorators) {
|
16
16
|
if (!decorators)
|
17
17
|
return (0, common_1.applyDecorators)();
|
18
|
-
return (0, common_1.applyDecorators)(...
|
18
|
+
return (0, common_1.applyDecorators)(...decorators?.map(decorator => decorator()));
|
19
19
|
}
|
20
20
|
/**
|
21
21
|
* Conditionally applies an array of method decorators based on a boolean value or a function returning a boolean.
|
@@ -25,7 +25,7 @@ function applyMethodDecorators(decorators) {
|
|
25
25
|
* @returns The result of applying the decorators if the condition is true; otherwise, returns an empty decorator.
|
26
26
|
*/
|
27
27
|
function applyMethodDecoratorsIf(condition, decorators) {
|
28
|
-
condition =
|
28
|
+
condition = typeof condition === 'function' ? condition() : condition;
|
29
29
|
if (!condition)
|
30
30
|
return (0, common_1.applyDecorators)();
|
31
31
|
return applyMethodDecorators(decorators);
|
@@ -40,7 +40,7 @@ function applyMethodDecoratorsIf(condition, decorators) {
|
|
40
40
|
function applyClassDecorators(decorators) {
|
41
41
|
if (!decorators)
|
42
42
|
return (0, common_1.applyDecorators)();
|
43
|
-
return (0, common_1.applyDecorators)(...
|
43
|
+
return (0, common_1.applyDecorators)(...decorators?.map(decorator => decorator()));
|
44
44
|
}
|
45
45
|
/**
|
46
46
|
* Conditionally applies an array of class decorators based on a boolean value or a function returning a boolean.
|
@@ -50,7 +50,7 @@ function applyClassDecorators(decorators) {
|
|
50
50
|
* @returns The result of applying the decorators if the condition is true; otherwise, returns the result of `applyDecorators()`.
|
51
51
|
*/
|
52
52
|
function applyClassDecoratorsIf(condition, decorators) {
|
53
|
-
condition =
|
53
|
+
condition = typeof condition === 'function' ? condition() : condition;
|
54
54
|
if (!condition)
|
55
55
|
return (0, common_1.applyDecorators)();
|
56
56
|
return applyClassDecorators(decorators);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"decorators.utils.js","sourceRoot":"","sources":["../../src/utils/decorators.utils.ts"],"names":[],"mappings":";;AAQA,
|
1
|
+
{"version":3,"file":"decorators.utils.js","sourceRoot":"","sources":["../../src/utils/decorators.utils.ts"],"names":[],"mappings":";;AAQA,sDAIC;AASD,0DASC;AASD,oDAIC;AASD,wDASC;AA7DD,2CAAiD;AACjD;;;;;;GAMG;AACH,SAAgB,qBAAqB,CAAC,UAAqC;IACzE,IAAI,CAAC,UAAU;QAAE,OAAO,IAAA,wBAAe,GAAE,CAAC;IAE1C,OAAO,IAAA,wBAAe,EAAC,GAAG,UAAU,EAAE,GAAG,CAAC,SAAS,CAAC,EAAE,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC;AACvE,CAAC;AAED;;;;;;GAMG;AACH,SAAgB,uBAAuB,CACrC,SAAoC,EACpC,UAAqC;IAErC,SAAS,GAAG,OAAO,SAAS,KAAK,UAAU,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;IAEtE,IAAI,CAAC,SAAS;QAAE,OAAO,IAAA,wBAAe,GAAE,CAAC;IAEzC,OAAO,qBAAqB,CAAC,UAAU,CAAC,CAAC;AAC3C,CAAC;AAED;;;;;;GAMG;AACH,SAAgB,oBAAoB,CAAC,UAAoC;IACvE,IAAI,CAAC,UAAU;QAAE,OAAO,IAAA,wBAAe,GAAE,CAAC;IAE1C,OAAO,IAAA,wBAAe,EAAC,GAAG,UAAU,EAAE,GAAG,CAAC,SAAS,CAAC,EAAE,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC;AACvE,CAAC;AAED;;;;;;GAMG;AACH,SAAgB,sBAAsB,CACpC,SAAoC,EACpC,UAAoC;IAEpC,SAAS,GAAG,OAAO,SAAS,KAAK,UAAU,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;IAEtE,IAAI,CAAC,SAAS;QAAE,OAAO,IAAA,wBAAe,GAAE,CAAC;IAEzC,OAAO,oBAAoB,CAAC,UAAU,CAAC,CAAC;AAC1C,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"http-status.utils.d.ts","sourceRoot":"","sources":["../../src/utils/http-status.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;
|
1
|
+
{"version":3,"file":"http-status.utils.d.ts","sourceRoot":"","sources":["../../src/utils/http-status.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAc5C;;;;;;;;GAQG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,CAOnE"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"http-status.utils.js","sourceRoot":"","sources":["../../src/utils/http-status.utils.ts"],"names":[],"mappings":";;
|
1
|
+
{"version":3,"file":"http-status.utils.js","sourceRoot":"","sources":["../../src/utils/http-status.utils.ts"],"names":[],"mappings":";;AAuBA,4DAOC;AA9BD,2CAA4C;AAE5C,MAAM,sBAAsB,GAA4B,IAAI,GAAG,EAG5D,CAAC;AAEJ,SAAS,uBAAuB,CAAC,MAAkB;IACjD,OAAO,mBAAU,CAAC,MAAM,CAAC;SACtB,WAAW,EAAE;SACb,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC;SAClB,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC;AAC5C,CAAC;AAED;;;;;;;;GAQG;AACH,SAAgB,wBAAwB,CAAC,MAAkB;IACzD,IAAI,CAAC,sBAAsB,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC;QACxC,MAAM,WAAW,GAAG,uBAAuB,CAAC,MAAM,CAAC,CAAC;QACpD,sBAAsB,CAAC,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;IAClD,CAAC;IAED,OAAO,sBAAsB,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,gBAAgB,CAAC;AAChE,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC"}
|
package/dist/utils/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,sDAAoC"}
|
package/package.json
CHANGED
@@ -1,39 +1,40 @@
|
|
1
|
-
{
|
2
|
-
"name": "@solid-nestjs/common",
|
3
|
-
"version": "0.2.
|
4
|
-
"description": "solid-nestjs common utilities",
|
5
|
-
"main": "dist/index.js",
|
6
|
-
"types": "dist/index.d.ts",
|
7
|
-
"files": [
|
8
|
-
"dist/**/*"
|
9
|
-
],
|
10
|
-
"repository": {
|
11
|
-
"type": "git",
|
12
|
-
"url": "https://github.com/solid-nestjs/framework"
|
13
|
-
},
|
14
|
-
"scripts": {
|
15
|
-
"build": "tsc",
|
16
|
-
"build:watch": "tsc -w"
|
17
|
-
},
|
18
|
-
"keywords": [
|
19
|
-
"typescript",
|
20
|
-
"nest",
|
21
|
-
"nestjs",
|
22
|
-
"backend",
|
23
|
-
"frameworks"
|
24
|
-
],
|
25
|
-
"author": {
|
26
|
-
"name": "Andres De la Ossa",
|
27
|
-
"email": "adelaossa0129@gmail.com"
|
28
|
-
},
|
29
|
-
"license": "MIT",
|
30
|
-
"peerDependencies": {
|
31
|
-
"@nestjs/
|
32
|
-
"@nestjs/
|
33
|
-
},
|
34
|
-
"devDependencies": {
|
35
|
-
"@types/node": "^22.14.1",
|
36
|
-
"tsconfig.json": "^1.0.11",
|
37
|
-
"typescript": "^5.8.3"
|
38
|
-
}
|
39
|
-
|
1
|
+
{
|
2
|
+
"name": "@solid-nestjs/common",
|
3
|
+
"version": "0.2.2",
|
4
|
+
"description": "solid-nestjs common utilities",
|
5
|
+
"main": "dist/index.js",
|
6
|
+
"types": "dist/index.d.ts",
|
7
|
+
"files": [
|
8
|
+
"dist/**/*"
|
9
|
+
],
|
10
|
+
"repository": {
|
11
|
+
"type": "git",
|
12
|
+
"url": "https://github.com/solid-nestjs/framework"
|
13
|
+
},
|
14
|
+
"scripts": {
|
15
|
+
"build": "tsc",
|
16
|
+
"build:watch": "tsc -w"
|
17
|
+
},
|
18
|
+
"keywords": [
|
19
|
+
"typescript",
|
20
|
+
"nest",
|
21
|
+
"nestjs",
|
22
|
+
"backend",
|
23
|
+
"frameworks"
|
24
|
+
],
|
25
|
+
"author": {
|
26
|
+
"name": "Andres De la Ossa",
|
27
|
+
"email": "adelaossa0129@gmail.com"
|
28
|
+
},
|
29
|
+
"license": "MIT",
|
30
|
+
"peerDependencies": {
|
31
|
+
"@nestjs/common": "^11.0.1",
|
32
|
+
"@nestjs/core": "^11.0.1"
|
33
|
+
},
|
34
|
+
"devDependencies": {
|
35
|
+
"@types/node": "^22.14.1",
|
36
|
+
"tsconfig.json": "^1.0.11",
|
37
|
+
"typescript": "^5.8.3"
|
38
|
+
},
|
39
|
+
"gitHead": "a857cb290c9c49350ea5e4415af6256dcdf77c75"
|
40
|
+
}
|