@lenne.tech/nest-server 10.8.7 → 10.8.8

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.
@@ -0,0 +1,5 @@
1
+ import { Types } from 'mongoose';
2
+ export type IdType = {
3
+ _id?: Types.ObjectId | string;
4
+ id?: Types.ObjectId | string;
5
+ } | Types.ObjectId | string;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=id.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"id.type.js","sourceRoot":"","sources":["../../../../src/core/common/types/id.type.ts"],"names":[],"mappings":""}
@@ -1,8 +1,2 @@
1
- import { Types } from 'mongoose';
2
- export type IdsType = ({
3
- _id?: Types.ObjectId | string;
4
- id?: Types.ObjectId | string;
5
- } | Types.ObjectId | string)[] | {
6
- _id?: Types.ObjectId | string;
7
- id?: Types.ObjectId | string;
8
- } | Types.ObjectId | string;
1
+ import { IdType } from './id.type';
2
+ export type IdsType = IdType | IdType[];
@@ -0,0 +1,3 @@
1
+ export type PlainObjectDeep<T> = {
2
+ [P in keyof T as T[P] extends (...args: any) => any ? never : P]: T[P] extends object ? PlainObjectDeep<T[P]> : T[P];
3
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=plain-object-deep.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plain-object-deep.type.js","sourceRoot":"","sources":["../../../../src/core/common/types/plain-object-deep.type.ts"],"names":[],"mappings":""}
package/dist/index.d.ts CHANGED
@@ -68,11 +68,13 @@ export * from './core/common/types/array-element.type';
68
68
  export * from './core/common/types/core-model-constructor.type';
69
69
  export * from './core/common/types/falsy.type';
70
70
  export * from './core/common/types/field-selection.type';
71
+ export * from './core/common/types/id.type';
71
72
  export * from './core/common/types/ids.type';
72
73
  export * from './core/common/types/is-one-of.type';
73
74
  export * from './core/common/types/maybe-promise.type';
74
75
  export * from './core/common/types/plain-input.type';
75
76
  export * from './core/common/types/plain-object.type';
77
+ export * from './core/common/types/plain-object-deep.type';
76
78
  export * from './core/common/types/populate-config.type';
77
79
  export * from './core/common/types/remove-methods.type';
78
80
  export * from './core/common/types/require-only-one.type';
package/dist/index.js CHANGED
@@ -84,11 +84,13 @@ __exportStar(require("./core/common/types/array-element.type"), exports);
84
84
  __exportStar(require("./core/common/types/core-model-constructor.type"), exports);
85
85
  __exportStar(require("./core/common/types/falsy.type"), exports);
86
86
  __exportStar(require("./core/common/types/field-selection.type"), exports);
87
+ __exportStar(require("./core/common/types/id.type"), exports);
87
88
  __exportStar(require("./core/common/types/ids.type"), exports);
88
89
  __exportStar(require("./core/common/types/is-one-of.type"), exports);
89
90
  __exportStar(require("./core/common/types/maybe-promise.type"), exports);
90
91
  __exportStar(require("./core/common/types/plain-input.type"), exports);
91
92
  __exportStar(require("./core/common/types/plain-object.type"), exports);
93
+ __exportStar(require("./core/common/types/plain-object-deep.type"), exports);
92
94
  __exportStar(require("./core/common/types/populate-config.type"), exports);
93
95
  __exportStar(require("./core/common/types/remove-methods.type"), exports);
94
96
  __exportStar(require("./core/common/types/require-only-one.type"), exports);
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAIA,gDAA8B;AAK9B,iEAA+C;AAC/C,qEAAmD;AACnD,kFAAgE;AAChE,kFAAgE;AAChE,sFAAoE;AACpE,6FAA2E;AAC3E,kFAAgE;AAChE,+EAA6D;AAC7D,gFAA8D;AAC9D,2EAAyD;AACzD,+EAA6D;AAC7D,4EAA0D;AAC1D,wEAAsD;AACtD,gEAA8C;AAC9C,sEAAoD;AACpD,kFAAgE;AAChE,sEAAoD;AACpD,sEAAoD;AACpD,uEAAqD;AACrD,kEAAgD;AAChD,yEAAuD;AACvD,oEAAkD;AAClD,sEAAoD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AAyE;AACzE,uFAAqE;AACrE,yFAAuE;AACvE,wFAAsE;AAMtE,6FAA2E;AAC3E,sEAAoD;AACpD,wEAAsD;AACtD,6EAA2D;AAC3D,oFAAkE;AAMlE,qDAAmC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAIA,gDAA8B;AAK9B,iEAA+C;AAC/C,qEAAmD;AACnD,kFAAgE;AAChE,kFAAgE;AAChE,sFAAoE;AACpE,6FAA2E;AAC3E,kFAAgE;AAChE,+EAA6D;AAC7D,gFAA8D;AAC9D,2EAAyD;AACzD,+EAA6D;AAC7D,4EAA0D;AAC1D,wEAAsD;AACtD,gEAA8C;AAC9C,sEAAoD;AACpD,kFAAgE;AAChE,sEAAoD;AACpD,sEAAoD;AACpD,uEAAqD;AACrD,kEAAgD;AAChD,yEAAuD;AACvD,oEAAkD;AAClD,sEAAoD;AACpD,uEAAqD;AACrD,qEAAmD;AACnD,qEAAmD;AACnD,uEAAqD;AACrD,qEAAmD;AACnD,6EAA2D;AAC3D,wEAAsD;AACtD,oEAAkD;AAClD,2EAAyD;AACzD,kEAAgD;AAChD,wFAAsE;AACtE,wFAAsE;AACtE,4FAA0E;AAC1E,qFAAmE;AACnE,oGAAkF;AAClF,qGAAmF;AACnF,qFAAmE;AACnE,2FAAyE;AACzE,4FAA0E;AAC1E,sFAAoE;AACpE,oFAAkE;AAClE,qFAAmE;AACnE,qFAAmE;AACnE,wEAAsD;AACtD,8EAA4D;AAC5D,uEAAqD;AACrD,4EAA0D;AAC1D,0EAAwD;AACxD,2EAAyD;AACzD,mEAAiD;AACjD,oEAAkD;AAClD,8EAA4D;AAC5D,oEAAkD;AAClD,uEAAqD;AACrD,wEAAsD;AACtD,gFAA8D;AAC9D,sEAAoD;AACpD,uEAAqD;AACrD,yEAAuD;AACvD,2EAAyD;AACzD,wEAAsD;AACtD,0EAAwD;AACxD,yEAAuD;AACvD,kFAAgE;AAChE,iEA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