@solid-nestjs/common 0.2.0

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.
Files changed (145) hide show
  1. package/dist/decorators/current-context.decorator.d.ts +2 -0
  2. package/dist/decorators/current-context.decorator.d.ts.map +1 -0
  3. package/dist/decorators/current-context.decorator.js +9 -0
  4. package/dist/decorators/current-context.decorator.js.map +1 -0
  5. package/dist/decorators/ignore-arg.decorator.d.ts +2 -0
  6. package/dist/decorators/ignore-arg.decorator.d.ts.map +1 -0
  7. package/dist/decorators/ignore-arg.decorator.js +8 -0
  8. package/dist/decorators/ignore-arg.decorator.js.map +1 -0
  9. package/dist/decorators/index.d.ts +4 -0
  10. package/dist/decorators/index.d.ts.map +1 -0
  11. package/dist/decorators/index.js +20 -0
  12. package/dist/decorators/index.js.map +1 -0
  13. package/dist/decorators/wrapped.decorator.d.ts +2 -0
  14. package/dist/decorators/wrapped.decorator.d.ts.map +1 -0
  15. package/dist/decorators/wrapped.decorator.js +20 -0
  16. package/dist/decorators/wrapped.decorator.js.map +1 -0
  17. package/dist/enums/index.d.ts +3 -0
  18. package/dist/enums/index.d.ts.map +1 -0
  19. package/dist/enums/index.js +19 -0
  20. package/dist/enums/index.js.map +1 -0
  21. package/dist/enums/order-by-type.enum.d.ts +5 -0
  22. package/dist/enums/order-by-type.enum.d.ts.map +1 -0
  23. package/dist/enums/order-by-type.enum.js +9 -0
  24. package/dist/enums/order-by-type.enum.js.map +1 -0
  25. package/dist/enums/standard-actions.enum.d.ts +6 -0
  26. package/dist/enums/standard-actions.enum.d.ts.map +1 -0
  27. package/dist/enums/standard-actions.enum.js +10 -0
  28. package/dist/enums/standard-actions.enum.js.map +1 -0
  29. package/dist/helpers/index.d.ts +4 -0
  30. package/dist/helpers/index.d.ts.map +1 -0
  31. package/dist/helpers/index.js +20 -0
  32. package/dist/helpers/index.js.map +1 -0
  33. package/dist/helpers/pagination.helper.d.ts +6 -0
  34. package/dist/helpers/pagination.helper.d.ts.map +1 -0
  35. package/dist/helpers/pagination.helper.js +11 -0
  36. package/dist/helpers/pagination.helper.js.map +1 -0
  37. package/dist/helpers/pipe-transform.helper.d.ts +6 -0
  38. package/dist/helpers/pipe-transform.helper.d.ts.map +1 -0
  39. package/dist/helpers/pipe-transform.helper.js +20 -0
  40. package/dist/helpers/pipe-transform.helper.js.map +1 -0
  41. package/dist/helpers/types.helper.d.ts +4 -0
  42. package/dist/helpers/types.helper.d.ts.map +1 -0
  43. package/dist/helpers/types.helper.js +17 -0
  44. package/dist/helpers/types.helper.js.map +1 -0
  45. package/dist/index.d.ts +8 -0
  46. package/dist/index.d.ts.map +1 -0
  47. package/dist/index.js +24 -0
  48. package/dist/index.js.map +1 -0
  49. package/dist/interfaces/index.d.ts +4 -0
  50. package/dist/interfaces/index.d.ts.map +1 -0
  51. package/dist/interfaces/index.js +20 -0
  52. package/dist/interfaces/index.js.map +1 -0
  53. package/dist/interfaces/misc/audit-service.interface.d.ts +6 -0
  54. package/dist/interfaces/misc/audit-service.interface.d.ts.map +1 -0
  55. package/dist/interfaces/misc/audit-service.interface.js +5 -0
  56. package/dist/interfaces/misc/audit-service.interface.js.map +1 -0
  57. package/dist/interfaces/misc/context.interface.d.ts +3 -0
  58. package/dist/interfaces/misc/context.interface.d.ts.map +1 -0
  59. package/dist/interfaces/misc/context.interface.js +3 -0
  60. package/dist/interfaces/misc/context.interface.js.map +1 -0
  61. package/dist/interfaces/misc/entity.interface.d.ts +5 -0
  62. package/dist/interfaces/misc/entity.interface.d.ts.map +1 -0
  63. package/dist/interfaces/misc/entity.interface.js +3 -0
  64. package/dist/interfaces/misc/entity.interface.js.map +1 -0
  65. package/dist/interfaces/misc/filters.interfaces.d.ts +36 -0
  66. package/dist/interfaces/misc/filters.interfaces.d.ts.map +1 -0
  67. package/dist/interfaces/misc/filters.interfaces.js +3 -0
  68. package/dist/interfaces/misc/filters.interfaces.js.map +1 -0
  69. package/dist/interfaces/misc/find-args.interface.d.ts +8 -0
  70. package/dist/interfaces/misc/find-args.interface.d.ts.map +1 -0
  71. package/dist/interfaces/misc/find-args.interface.js +3 -0
  72. package/dist/interfaces/misc/find-args.interface.js.map +1 -0
  73. package/dist/interfaces/misc/index.d.ts +8 -0
  74. package/dist/interfaces/misc/index.d.ts.map +1 -0
  75. package/dist/interfaces/misc/index.js +24 -0
  76. package/dist/interfaces/misc/index.js.map +1 -0
  77. package/dist/interfaces/misc/pagination-request.interface.d.ts +7 -0
  78. package/dist/interfaces/misc/pagination-request.interface.d.ts.map +1 -0
  79. package/dist/interfaces/misc/pagination-request.interface.js +3 -0
  80. package/dist/interfaces/misc/pagination-request.interface.js.map +1 -0
  81. package/dist/interfaces/misc/pagination-result.interface.d.ts +10 -0
  82. package/dist/interfaces/misc/pagination-result.interface.d.ts.map +1 -0
  83. package/dist/interfaces/misc/pagination-result.interface.js +3 -0
  84. package/dist/interfaces/misc/pagination-result.interface.js.map +1 -0
  85. package/dist/interfaces/services/crud-service.interface.d.ts +12 -0
  86. package/dist/interfaces/services/crud-service.interface.d.ts.map +1 -0
  87. package/dist/interfaces/services/crud-service.interface.js +3 -0
  88. package/dist/interfaces/services/crud-service.interface.js.map +1 -0
  89. package/dist/interfaces/services/data-service.interface.d.ts +15 -0
  90. package/dist/interfaces/services/data-service.interface.d.ts.map +1 -0
  91. package/dist/interfaces/services/data-service.interface.js +3 -0
  92. package/dist/interfaces/services/data-service.interface.js.map +1 -0
  93. package/dist/interfaces/services/index.d.ts +3 -0
  94. package/dist/interfaces/services/index.d.ts.map +1 -0
  95. package/dist/interfaces/services/index.js +19 -0
  96. package/dist/interfaces/services/index.js.map +1 -0
  97. package/dist/interfaces/structures/entity-provider-structure.interface.d.ts +13 -0
  98. package/dist/interfaces/structures/entity-provider-structure.interface.d.ts.map +1 -0
  99. package/dist/interfaces/structures/entity-provider-structure.interface.js +15 -0
  100. package/dist/interfaces/structures/entity-provider-structure.interface.js.map +1 -0
  101. package/dist/interfaces/structures/index.d.ts +2 -0
  102. package/dist/interfaces/structures/index.d.ts.map +1 -0
  103. package/dist/interfaces/structures/index.js +18 -0
  104. package/dist/interfaces/structures/index.js.map +1 -0
  105. package/dist/pipes/index.d.ts +2 -0
  106. package/dist/pipes/index.d.ts.map +1 -0
  107. package/dist/pipes/index.js +18 -0
  108. package/dist/pipes/index.js.map +1 -0
  109. package/dist/pipes/query-transform.pipe.d.ts +5 -0
  110. package/dist/pipes/query-transform.pipe.d.ts.map +1 -0
  111. package/dist/pipes/query-transform.pipe.js +36 -0
  112. package/dist/pipes/query-transform.pipe.js.map +1 -0
  113. package/dist/types/boolean.type.d.ts +4 -0
  114. package/dist/types/boolean.type.d.ts.map +1 -0
  115. package/dist/types/boolean.type.js +3 -0
  116. package/dist/types/boolean.type.js.map +1 -0
  117. package/dist/types/constructor.type.d.ts +3 -0
  118. package/dist/types/constructor.type.d.ts.map +1 -0
  119. package/dist/types/constructor.type.js +3 -0
  120. package/dist/types/constructor.type.js.map +1 -0
  121. package/dist/types/deep-partial.type.d.ts +4 -0
  122. package/dist/types/deep-partial.type.d.ts.map +1 -0
  123. package/dist/types/deep-partial.type.js +3 -0
  124. package/dist/types/deep-partial.type.js.map +1 -0
  125. package/dist/types/find-args.type.d.ts +14 -0
  126. package/dist/types/find-args.type.d.ts.map +1 -0
  127. package/dist/types/find-args.type.js +3 -0
  128. package/dist/types/find-args.type.js.map +1 -0
  129. package/dist/types/index.d.ts +5 -0
  130. package/dist/types/index.d.ts.map +1 -0
  131. package/dist/types/index.js +21 -0
  132. package/dist/types/index.js.map +1 -0
  133. package/dist/utils/decorators.utils.d.ts +3 -0
  134. package/dist/utils/decorators.utils.d.ts.map +1 -0
  135. package/dist/utils/decorators.utils.js +16 -0
  136. package/dist/utils/decorators.utils.js.map +1 -0
  137. package/dist/utils/http-status.utils.d.ts +3 -0
  138. package/dist/utils/http-status.utils.d.ts.map +1 -0
  139. package/dist/utils/http-status.utils.js +19 -0
  140. package/dist/utils/http-status.utils.js.map +1 -0
  141. package/dist/utils/index.d.ts +3 -0
  142. package/dist/utils/index.d.ts.map +1 -0
  143. package/dist/utils/index.js +19 -0
  144. package/dist/utils/index.js.map +1 -0
  145. package/package.json +39 -0
@@ -0,0 +1,2 @@
1
+ export declare const CurrentContext: (...dataOrPipes: unknown[]) => ParameterDecorator;
2
+ //# sourceMappingURL=current-context.decorator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"current-context.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/current-context.decorator.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,cAAc,mDAMrB,CAAA"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CurrentContext = void 0;
4
+ const common_1 = require("@nestjs/common");
5
+ exports.CurrentContext = (0, common_1.createParamDecorator)((data, context) => {
6
+ const currentContext = {};
7
+ return currentContext;
8
+ });
9
+ //# sourceMappingURL=current-context.decorator.js.map
@@ -0,0 +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,EAC9C,CAAC,IAAa,EAAE,OAAyB,EAAE,EAAE;IAEzC,MAAM,cAAc,GAAY,EAAE,CAAC;IAEnC,OAAO,cAAc,CAAC;AAC1B,CAAC,CAAC,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare const IgnoreArg: (...dataOrPipes: unknown[]) => ParameterDecorator;
2
+ //# sourceMappingURL=ignore-arg.decorator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ignore-arg.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/ignore-arg.decorator.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,mDAGhB,CAAA"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IgnoreArg = void 0;
4
+ const common_1 = require("@nestjs/common");
5
+ exports.IgnoreArg = (0, common_1.createParamDecorator)((data, context) => {
6
+ return undefined;
7
+ });
8
+ //# sourceMappingURL=ignore-arg.decorator.js.map
@@ -0,0 +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,EACzC,CAAC,IAAa,EAAE,OAAyB,EAAE,EAAE;IACzC,OAAO,SAAS,CAAC;AACrB,CAAC,CAAC,CAAA"}
@@ -0,0 +1,4 @@
1
+ export * from './current-context.decorator';
2
+ export * from './ignore-arg.decorator';
3
+ export * from './wrapped.decorator';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +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,CAAA"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./current-context.decorator"), exports);
18
+ __exportStar(require("./ignore-arg.decorator"), exports);
19
+ __exportStar(require("./wrapped.decorator"), exports);
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/decorators/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA4C;AAC5C,yDAAuC;AACvC,sDAAmC"}
@@ -0,0 +1,2 @@
1
+ export declare function WrappedBy(wrapper: (obj: any, next: (...args: any[]) => Promise<any>, args: any[]) => Promise<any>, options?: any): MethodDecorator;
2
+ //# sourceMappingURL=wrapped.decorator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wrapped.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/wrapped.decorator.ts"],"names":[],"mappings":"AA+CA,wBAAgB,SAAS,CACrB,OAAO,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,OAAO,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,OAAO,CAAC,GAAG,CAAC,EACxF,OAAO,CAAC,EAAE,GAAG,GACd,eAAe,CAgBjB"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WrappedBy = WrappedBy;
4
+ async function wrap(options, fn, wrapper) {
5
+ return async (...args) => {
6
+ return wrapper(options, () => Promise.resolve(fn(...args)), args);
7
+ };
8
+ }
9
+ function WrappedBy(wrapper, options) {
10
+ return function (target, propertyKey, descriptor) {
11
+ const originalMethod = descriptor.value;
12
+ descriptor.value = async function (...args) {
13
+ const injectable = this;
14
+ const newOptions = { ...options, injectable };
15
+ const intercepted = await wrap(newOptions, originalMethod.bind(this), wrapper);
16
+ return intercepted(...args);
17
+ };
18
+ };
19
+ }
20
+ //# sourceMappingURL=wrapped.decorator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wrapped.decorator.js","sourceRoot":"","sources":["../../src/decorators/wrapped.decorator.ts"],"names":[],"mappings":";;AA+CA,8BAmBC;AArDD,KAAK,UAAU,IAAI,CACf,OAAY,EACZ,EAAK,EACL,OAAoH;IAEpH,OAAO,KAAK,EAAE,GAAG,IAAmB,EAAE,EAAE;QACpC,OAAO,OAAO,CAAC,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC;IACtE,CAAC,CAAC;AACN,CAAC;AA0BD,SAAgB,SAAS,CACrB,OAAwF,EACxF,OAAa;IAGb,OAAO,UAAU,MAAM,EAAE,WAAW,EAAE,UAA8B;QAEhE,MAAM,cAAc,GAAG,UAAU,CAAC,KAAK,CAAC;QAExC,UAAU,CAAC,KAAK,GAAG,KAAK,WAAW,GAAG,IAAW;YAE7C,MAAM,UAAU,GAAG,IAAI,CAAC;YACxB,MAAM,UAAU,GAAG,EAAE,GAAG,OAAO,EAAE,UAAU,EAAE,CAAA;YAE7C,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,UAAU,EAAE,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,CAAC;YAC/E,OAAO,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC;QAEhC,CAAC,CAAC;IACN,CAAC,CAAC;AACN,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './standard-actions.enum';
2
+ export * from './order-by-type.enum';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/enums/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./standard-actions.enum"), exports);
18
+ __exportStar(require("./order-by-type.enum"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,uDAAqC"}
@@ -0,0 +1,5 @@
1
+ export declare enum OrderByTypes {
2
+ ASC = "ASC",
3
+ DESC = "DESC"
4
+ }
5
+ //# sourceMappingURL=order-by-type.enum.d.ts.map
@@ -0,0 +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;IACpB,GAAG,QAAQ;IACX,IAAI,SAAS;CAChB"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OrderByTypes = void 0;
4
+ var OrderByTypes;
5
+ (function (OrderByTypes) {
6
+ OrderByTypes["ASC"] = "ASC";
7
+ OrderByTypes["DESC"] = "DESC";
8
+ })(OrderByTypes || (exports.OrderByTypes = OrderByTypes = {}));
9
+ //# sourceMappingURL=order-by-type.enum.js.map
@@ -0,0 +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;IACpB,2BAAW,CAAA;IACX,6BAAa,CAAA;AACjB,CAAC,EAHW,YAAY,4BAAZ,YAAY,QAGvB"}
@@ -0,0 +1,6 @@
1
+ export declare enum StandardActions {
2
+ Create = "Create",
3
+ Update = "Update",
4
+ Remove = "Remove"
5
+ }
6
+ //# sourceMappingURL=standard-actions.enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"standard-actions.enum.d.ts","sourceRoot":"","sources":["../../src/enums/standard-actions.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,eAAe;IACvB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,MAAM,WAAW;CACpB"}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StandardActions = void 0;
4
+ var StandardActions;
5
+ (function (StandardActions) {
6
+ StandardActions["Create"] = "Create";
7
+ StandardActions["Update"] = "Update";
8
+ StandardActions["Remove"] = "Remove";
9
+ })(StandardActions || (exports.StandardActions = StandardActions = {}));
10
+ //# sourceMappingURL=standard-actions.enum.js.map
@@ -0,0 +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;IACvB,oCAAiB,CAAA;IACjB,oCAAiB,CAAA;IACjB,oCAAiB,CAAA;AACrB,CAAC,EAJW,eAAe,+BAAf,eAAe,QAI1B"}
@@ -0,0 +1,4 @@
1
+ export * from './types.helper';
2
+ export * from './pagination.helper';
3
+ export * from './pipe-transform.helper';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./types.helper"), exports);
18
+ __exportStar(require("./pagination.helper"), exports);
19
+ __exportStar(require("./pipe-transform.helper"), exports);
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,sDAAoC;AACpC,0DAAwC"}
@@ -0,0 +1,6 @@
1
+ import { PaginationRequest } from "../interfaces";
2
+ export declare function getPaginationArgs(pagination: PaginationRequest): {
3
+ skip: number;
4
+ take: number;
5
+ };
6
+ //# sourceMappingURL=pagination.helper.d.ts.map
@@ -0,0 +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,CAC/B,UAAU,EAAE,iBAAiB,GAE/B;IACE,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd,CAOA"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getPaginationArgs = getPaginationArgs;
4
+ function getPaginationArgs(pagination) {
5
+ const { skip, take, page, limit: pageSize } = pagination;
6
+ return {
7
+ skip: skip || ((page ?? 1) - 1) * (pageSize ?? 0),
8
+ take: take || (pageSize ?? 0),
9
+ };
10
+ }
11
+ //# sourceMappingURL=pagination.helper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagination.helper.js","sourceRoot":"","sources":["../../src/helpers/pagination.helper.ts"],"names":[],"mappings":";;AAEA,8CAaC;AAbD,SAAgB,iBAAiB,CAC/B,UAA6B;IAM7B,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,IAAE,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,QAAQ,IAAE,CAAC,CAAC;QAC7C,IAAI,EAAE,IAAI,IAAI,CAAC,QAAQ,IAAE,CAAC,CAAC;KAC5B,CAAC;AACJ,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { Type, PipeTransform } from '@nestjs/common';
2
+ import { Constructor } from '../types';
3
+ type ConstructorOrFunction = Function | Constructor;
4
+ export declare function getPipeTransformForType(type: ConstructorOrFunction): Type<PipeTransform> | undefined;
5
+ export {};
6
+ //# sourceMappingURL=pipe-transform.helper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pipe-transform.helper.d.ts","sourceRoot":"","sources":["../../src/helpers/pipe-transform.helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8C,IAAI,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACjG,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAGvC,KAAK,qBAAqB,GAAG,QAAQ,GAAG,WAAW,CAAC;AAmBpD,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,qBAAqB,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,SAAS,CAOpG"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getPipeTransformForType = getPipeTransformForType;
4
+ const common_1 = require("@nestjs/common");
5
+ const TypePipeMap = new Map([
6
+ [Number, common_1.ParseIntPipe],
7
+ [BigInt, common_1.ParseIntPipe],
8
+ [String, undefined],
9
+ [Boolean, common_1.ParseBoolPipe],
10
+ ]);
11
+ function getPipeTransformForType(type) {
12
+ if (type === String && isUUIDType(type)) {
13
+ return common_1.ParseUUIDPipe;
14
+ }
15
+ return TypePipeMap.get(type);
16
+ }
17
+ function isUUIDType(type) {
18
+ return false;
19
+ }
20
+ //# sourceMappingURL=pipe-transform.helper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pipe-transform.helper.js","sourceRoot":"","sources":["../../src/helpers/pipe-transform.helper.ts"],"names":[],"mappings":";;AAuBA,0DAOC;AA9BD,2CAAiG;AAMjG,MAAM,WAAW,GAAG,IAAI,GAAG,CAA2C;IAClE,CAAC,MAAM,EAAE,qBAAY,CAAC;IACtB,CAAC,MAAM,EAAE,qBAAY,CAAC;IACtB,CAAC,MAAM,EAAE,SAAS,CAAC;IACnB,CAAC,OAAO,EAAE,sBAAa,CAAC;CAC3B,CAAC,CAAC;AAYH,SAAgB,uBAAuB,CAAC,IAA2B;IAE/D,IAAI,IAAI,KAAK,MAAM,IAAI,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;QACtC,OAAO,sBAAa,CAAC;IACzB,CAAC;IAED,OAAO,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;AACjC,CAAC;AAED,SAAS,UAAU,CAAC,IAA2B;IAG3C,OAAO,KAAK,CAAC;AACjB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { Constructor } from "../types";
2
+ export declare function getTypeName(type: string | Function): string;
3
+ export declare function getPropertyType(constructor: Constructor, field: string): any;
4
+ //# sourceMappingURL=types.helper.d.ts.map
@@ -0,0 +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;AASvC,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,CAWzD;AAaH,wBAAgB,eAAe,CAAC,WAAW,EAAC,WAAW,EAAE,KAAK,EAAC,MAAM,OAGpE"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getTypeName = getTypeName;
4
+ exports.getPropertyType = getPropertyType;
5
+ function getTypeName(type) {
6
+ if (typeof type === 'string') {
7
+ return type;
8
+ }
9
+ if (typeof type === 'function') {
10
+ return type.name;
11
+ }
12
+ throw new Error('Type must be a string or a constructor function');
13
+ }
14
+ function getPropertyType(constructor, field) {
15
+ return Reflect.getMetadata('design:type', constructor.prototype, field);
16
+ }
17
+ //# sourceMappingURL=types.helper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.helper.js","sourceRoot":"","sources":["../../src/helpers/types.helper.ts"],"names":[],"mappings":";;AASA,kCAWG;AAaH,0CAGC;AA3BD,SAAgB,WAAW,CAAC,IAAuB;IAC/C,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;QAC7B,OAAO,IAAI,CAAC;IACd,CAAC;IAGD,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;AAaH,SAAgB,eAAe,CAAC,WAAuB,EAAE,KAAY;IAEnE,OAAO,OAAO,CAAC,WAAW,CAAC,aAAa,EAAE,WAAW,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;AAC1E,CAAC"}
@@ -0,0 +1,8 @@
1
+ export * from './interfaces';
2
+ export * from './decorators';
3
+ export * from './utils';
4
+ export * from './types';
5
+ export * from './helpers';
6
+ export * from './enums';
7
+ export * from './pipes';
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AACzB,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA"}
package/dist/index.js ADDED
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./interfaces"), exports);
18
+ __exportStar(require("./decorators"), exports);
19
+ __exportStar(require("./utils"), exports);
20
+ __exportStar(require("./types"), exports);
21
+ __exportStar(require("./helpers"), exports);
22
+ __exportStar(require("./enums"), exports);
23
+ __exportStar(require("./pipes"), exports);
24
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA4B;AAC5B,+CAA4B;AAC5B,0CAAuB;AACvB,0CAAuB;AACvB,4CAAyB;AACzB,0CAAuB;AACvB,0CAAuB"}
@@ -0,0 +1,4 @@
1
+ export * from './services';
2
+ export * from './structures';
3
+ export * from './misc';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./services"), exports);
18
+ __exportStar(require("./structures"), exports);
19
+ __exportStar(require("./misc"), exports);
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,+CAA6B;AAC7B,yCAAuB"}
@@ -0,0 +1,6 @@
1
+ import { Context } from "./context.interface";
2
+ export interface AuditService {
3
+ Audit(context: Context, serviceName: string, action: string, objectId?: any, valueBefore?: object, valueAfter?: object): Promise<void>;
4
+ }
5
+ export declare const AuditService: unique symbol;
6
+ //# sourceMappingURL=audit-service.interface.d.ts.map
@@ -0,0 +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;IAEzB,KAAK,CACD,OAAO,EAAC,OAAO,EACf,WAAW,EAAC,MAAM,EAClB,MAAM,EAAC,MAAM,EACb,QAAQ,CAAC,EAAC,GAAG,EACb,WAAW,CAAC,EAAC,MAAM,EACnB,UAAU,CAAC,EAAC,MAAM,GACpB,OAAO,CAAC,IAAI,CAAC,CAAC;CACnB;AAED,eAAO,MAAM,YAAY,eAAyB,CAAC"}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AuditService = void 0;
4
+ exports.AuditService = Symbol("AuditService");
5
+ //# sourceMappingURL=audit-service.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"audit-service.interface.js","sourceRoot":"","sources":["../../../src/interfaces/misc/audit-service.interface.ts"],"names":[],"mappings":";;;AAca,QAAA,YAAY,GAAG,MAAM,CAAC,cAAc,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export interface Context {
2
+ }
3
+ //# sourceMappingURL=context.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.interface.d.ts","sourceRoot":"","sources":["../../../src/interfaces/misc/context.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,OAAO;CAAI"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=context.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.interface.js","sourceRoot":"","sources":["../../../src/interfaces/misc/context.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ export interface Entity<IdType> {
2
+ id: IdType;
3
+ }
4
+ export type IdTypeFrom<T> = T extends Entity<infer U> ? U : never;
5
+ //# sourceMappingURL=entity.interface.d.ts.map
@@ -0,0 +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;IAC1B,EAAE,EAAE,MAAM,CAAC;CACd;AAED,MAAM,MAAM,UAAU,CAAC,CAAC,IAAI,CAAC,SAAS,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=entity.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entity.interface.js","sourceRoot":"","sources":["../../../src/interfaces/misc/entity.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,36 @@
1
+ export interface StringFilter {
2
+ _eq?: string;
3
+ _neq?: string;
4
+ _in?: string[];
5
+ _startswith?: string;
6
+ _notstartswith?: string;
7
+ _endswith?: string;
8
+ _notendswith?: string;
9
+ _contains?: string;
10
+ _notcontains?: string;
11
+ _like?: string;
12
+ _notlike?: string;
13
+ }
14
+ export interface NumberFilter {
15
+ _eq?: number;
16
+ _neq?: number;
17
+ _gt?: number;
18
+ _gte?: number;
19
+ _lt?: number;
20
+ _lte?: number;
21
+ _in?: number[];
22
+ _between?: number[];
23
+ _notbetween?: number[];
24
+ }
25
+ export interface DateFilter {
26
+ _eq?: Date;
27
+ _neq?: Date;
28
+ _gt?: Date;
29
+ _gte?: Date;
30
+ _lt?: Date;
31
+ _lte?: Date;
32
+ _in?: Date[];
33
+ _between?: Date[];
34
+ _notbetween?: Date[];
35
+ }
36
+ //# sourceMappingURL=filters.interfaces.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filters.interfaces.d.ts","sourceRoot":"","sources":["../../../src/interfaces/misc/filters.interfaces.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IACzB,GAAG,CAAC,EAAC,MAAM,CAAA;IACX,IAAI,CAAC,EAAC,MAAM,CAAA;IACZ,GAAG,CAAC,EAAC,MAAM,EAAE,CAAA;IACb,WAAW,CAAC,EAAC,MAAM,CAAA;IACnB,cAAc,CAAC,EAAC,MAAM,CAAA;IACtB,SAAS,CAAC,EAAC,MAAM,CAAA;IACjB,YAAY,CAAC,EAAC,MAAM,CAAA;IACpB,SAAS,CAAC,EAAC,MAAM,CAAA;IACjB,YAAY,CAAC,EAAC,MAAM,CAAA;IACpB,KAAK,CAAC,EAAC,MAAM,CAAA;IACb,QAAQ,CAAC,EAAC,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,YAAY;IACzB,GAAG,CAAC,EAAC,MAAM,CAAA;IACX,IAAI,CAAC,EAAC,MAAM,CAAA;IACZ,GAAG,CAAC,EAAC,MAAM,CAAA;IACX,IAAI,CAAC,EAAC,MAAM,CAAA;IACZ,GAAG,CAAC,EAAC,MAAM,CAAA;IACX,IAAI,CAAC,EAAC,MAAM,CAAA;IACZ,GAAG,CAAC,EAAC,MAAM,EAAE,CAAA;IACb,QAAQ,CAAC,EAAC,MAAM,EAAE,CAAA;IAClB,WAAW,CAAC,EAAC,MAAM,EAAE,CAAA;CACxB;AAED,MAAM,WAAW,UAAU;IACvB,GAAG,CAAC,EAAC,IAAI,CAAA;IACT,IAAI,CAAC,EAAC,IAAI,CAAA;IACV,GAAG,CAAC,EAAC,IAAI,CAAA;IACT,IAAI,CAAC,EAAC,IAAI,CAAA;IACV,GAAG,CAAC,EAAC,IAAI,CAAA;IACT,IAAI,CAAC,EAAC,IAAI,CAAA;IACV,GAAG,CAAC,EAAC,IAAI,EAAE,CAAA;IACX,QAAQ,CAAC,EAAC,IAAI,EAAE,CAAA;IAChB,WAAW,CAAC,EAAC,IAAI,EAAE,CAAA;CACtB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=filters.interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filters.interfaces.js","sourceRoot":"","sources":["../../../src/interfaces/misc/filters.interfaces.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ import { Where, OrderBy } from "../../types/find-args.type";
2
+ import { PaginationRequest } from "./pagination-request.interface";
3
+ export interface FindArgs<T> {
4
+ pagination?: PaginationRequest;
5
+ where?: Where<T>;
6
+ orderBy?: OrderBy<T> | OrderBy<T>[];
7
+ }
8
+ //# sourceMappingURL=find-args.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"find-args.interface.d.ts","sourceRoot":"","sources":["../../../src/interfaces/misc/find-args.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAEnE,MAAM,WAAW,QAAQ,CAAC,CAAC;IACzB,UAAU,CAAC,EAAE,iBAAiB,CAAC;IAE/B,KAAK,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;IAEjB,OAAO,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC;CACrC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=find-args.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"find-args.interface.js","sourceRoot":"","sources":["../../../src/interfaces/misc/find-args.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ export * from './context.interface';
2
+ export * from './entity.interface';
3
+ export * from './filters.interfaces';
4
+ export * from './find-args.interface';
5
+ export * from './pagination-request.interface';
6
+ export * from './pagination-result.interface';
7
+ export * from './audit-service.interface';
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/interfaces/misc/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2BAA2B,CAAC"}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./context.interface"), exports);
18
+ __exportStar(require("./entity.interface"), exports);
19
+ __exportStar(require("./filters.interfaces"), exports);
20
+ __exportStar(require("./find-args.interface"), exports);
21
+ __exportStar(require("./pagination-request.interface"), exports);
22
+ __exportStar(require("./pagination-result.interface"), exports);
23
+ __exportStar(require("./audit-service.interface"), exports);
24
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/interfaces/misc/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,qDAAmC;AACnC,uDAAqC;AACrC,wDAAsC;AACtC,iEAA+C;AAC/C,gEAA8C;AAC9C,4DAA0C"}
@@ -0,0 +1,7 @@
1
+ export interface PaginationRequest {
2
+ skip?: number;
3
+ take?: number;
4
+ page?: number;
5
+ limit?: number;
6
+ }
7
+ //# sourceMappingURL=pagination-request.interface.d.ts.map
@@ -0,0 +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;IAC9B,IAAI,CAAC,EAAC,MAAM,CAAC;IACb,IAAI,CAAC,EAAC,MAAM,CAAC;IACb,IAAI,CAAC,EAAC,MAAM,CAAC;IACb,KAAK,CAAC,EAAC,MAAM,CAAC;CACjB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=pagination-request.interface.js.map