@lyxa.ai/core 1.0.258 → 1.0.260
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/dist/libraries/mongo/models/cart-participant.model.d.ts +1 -0
- package/dist/libraries/mongo/models/cart-participant.model.js +5 -0
- package/dist/libraries/mongo/models/cart-participant.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/package-discount-config.model.d.ts +1 -1
- package/dist/libraries/mongo/models/embedded/package-discount-config.model.js +3 -3
- package/dist/libraries/mongo/models/embedded/package-discount-config.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/slot-discount-config.model.d.ts +1 -1
- package/dist/libraries/mongo/models/embedded/slot-discount-config.model.js +3 -3
- package/dist/libraries/mongo/models/embedded/slot-discount-config.model.js.map +1 -1
- package/dist/libraries/mongo/models/shared/{service-duration.model.js → promotion-duration.model.js} +1 -1
- package/dist/libraries/mongo/models/shared/promotion-duration.model.js.map +1 -0
- package/dist/libraries/mongo/models/user.model.d.ts +1 -1
- package/dist/types/README.md +1 -1
- package/dist/types/package.json +1 -1
- package/dist/types/utilities/validation/common-validation.d.ts +78 -2
- package/dist/types/utilities/validation/global-validation.d.ts +38 -14
- package/dist/utilities/validation/common-validation.d.ts +78 -2
- package/dist/utilities/validation/global-validation.d.ts +38 -14
- package/package.json +1 -1
- package/dist/libraries/mongo/models/shared/service-duration.model.js.map +0 -1
- /package/dist/libraries/mongo/models/shared/{service-duration.model.d.ts → promotion-duration.model.d.ts} +0 -0
|
@@ -23,6 +23,7 @@ let CartParticipant = class CartParticipant extends defaultClasses_1.TimeStamps
|
|
|
23
23
|
readyAt;
|
|
24
24
|
spentAmount;
|
|
25
25
|
paymentInformation;
|
|
26
|
+
isCreator;
|
|
26
27
|
};
|
|
27
28
|
exports.CartParticipant = CartParticipant;
|
|
28
29
|
__decorate([
|
|
@@ -53,6 +54,10 @@ __decorate([
|
|
|
53
54
|
(0, typegoose_1.prop)({ type: () => payment_infromation_model_1.PaymentInformation }),
|
|
54
55
|
__metadata("design:type", payment_infromation_model_1.PaymentInformation)
|
|
55
56
|
], CartParticipant.prototype, "paymentInformation", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typegoose_1.prop)({ type: Boolean, default: false }),
|
|
59
|
+
__metadata("design:type", Boolean)
|
|
60
|
+
], CartParticipant.prototype, "isCreator", void 0);
|
|
56
61
|
exports.CartParticipant = CartParticipant = __decorate([
|
|
57
62
|
(0, typegoose_1.modelOptions)({
|
|
58
63
|
schemaOptions: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cart-participant.model.js","sourceRoot":"/","sources":["libraries/mongo/models/cart-participant.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAgF;AAChF,4EAAqE;AACrE,6CAAoC;AAEpC,oFAA0E;AAC1E,6CAAoC;AAiB7B,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,2BAAU;IAEvC,IAAI,CAAa;IAGjB,IAAI,CAAa;IAGjB,QAAQ,CAAQ;IAGhB,OAAO,CAAW;IAGlB,OAAO,CAAQ;IAGf,WAAW,CAAU;IAGrB,kBAAkB,CAAsB;
|
|
1
|
+
{"version":3,"file":"cart-participant.model.js","sourceRoot":"/","sources":["libraries/mongo/models/cart-participant.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAgF;AAChF,4EAAqE;AACrE,6CAAoC;AAEpC,oFAA0E;AAC1E,6CAAoC;AAiB7B,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,2BAAU;IAEvC,IAAI,CAAa;IAGjB,IAAI,CAAa;IAGjB,QAAQ,CAAQ;IAGhB,OAAO,CAAW;IAGlB,OAAO,CAAQ;IAGf,WAAW,CAAU;IAGrB,kBAAkB,CAAsB;IAGxC,SAAS,CAAW;CAC3B,CAAA;AAxBY,0CAAe;AAEpB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,iBAAI,EAAE,CAAC;;6CAClB;AAGjB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,iBAAI,EAAE,CAAC;;6CAClB;AAGjB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE,EAAE,CAAC;8BAC9B,IAAI;iDAAC;AAGhB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;gDACf;AAGlB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;8BACJ,IAAI;gDAAC;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;oDACP;AAGrB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,8CAAkB,EAAE,CAAC;8BACb,8CAAkB;2DAAC;AAGxC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;kDACb;0BAvBf,eAAe;IAZ3B,IAAA,wBAAY,EAAC;QACb,aAAa,EAAE;YACd,UAAU,EAAE,kBAAkB;YAC9B,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;YAC1B,QAAQ,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;SAC5B;QACD,OAAO,EAAE;YACR,UAAU,EAAE,oBAAQ,CAAC,KAAK;SAC1B;KACD,CAAC;IACD,IAAA,iBAAK,EAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IAC7C,IAAA,iBAAK,EAAC,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC;GACN,eAAe,CAwB3B","sourcesContent":["import { prop, Ref, index, modelOptions, Severity } from '@typegoose/typegoose';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\nimport { Cart } from './cart.model';\nimport { PaymentMethod } from '../../../utilities/enum';\nimport { PaymentInformation } from './embedded/payment-infromation.model';\nimport { User } from './user.model';\n\n/**\n * CartParticipant model - Tracks users participating in a group cart\n */\n@modelOptions({\n\tschemaOptions: {\n\t\tcollection: 'cartParticipants',\n\t\ttoJSON: { virtuals: true },\n\t\ttoObject: { virtuals: true },\n\t},\n\toptions: {\n\t\tallowMixed: Severity.ALLOW,\n\t},\n})\n@index({ cart: 1, user: 1 }, { unique: true })\n@index({ cart: 1 })\nexport class CartParticipant extends TimeStamps {\n\t@prop({ required: true, ref: () => Cart })\n\tpublic cart!: Ref<Cart>;\n\n\t@prop({ required: true, ref: () => User })\n\tpublic user!: Ref<User>;\n\n\t@prop({ type: Date, default: () => new Date() })\n\tpublic joinedAt!: Date;\n\n\t@prop({ type: Boolean, default: false })\n\tpublic isReady!: boolean;\n\n\t@prop({ type: Date })\n\tpublic readyAt?: Date;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic spentAmount!: number;\n\n\t@prop({ type: () => PaymentInformation })\n\tpublic paymentInformation?: PaymentInformation;\n\n\t@prop({ type: Boolean, default: false })\n\tpublic isCreator!: boolean;\n}\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Ref } from "@typegoose/typegoose";
|
|
2
2
|
import { ServicePackage } from "../service-package.model";
|
|
3
3
|
import { ValueType } from "../../../../utilities/enum";
|
|
4
|
-
import { PromotionDuration } from "../shared/
|
|
4
|
+
import { PromotionDuration } from "../shared/promotion-duration.model";
|
|
5
5
|
export declare class PackageDiscountConfig {
|
|
6
6
|
servicePackage: Ref<ServicePackage>;
|
|
7
7
|
duration: PromotionDuration;
|
|
@@ -13,7 +13,7 @@ exports.PackageDiscountConfig = void 0;
|
|
|
13
13
|
const typegoose_1 = require("@typegoose/typegoose");
|
|
14
14
|
const service_package_model_1 = require("../service-package.model");
|
|
15
15
|
const enum_1 = require("../../../../utilities/enum");
|
|
16
|
-
const
|
|
16
|
+
const promotion_duration_model_1 = require("../shared/promotion-duration.model");
|
|
17
17
|
class PackageDiscountConfig {
|
|
18
18
|
servicePackage;
|
|
19
19
|
duration;
|
|
@@ -28,8 +28,8 @@ __decorate([
|
|
|
28
28
|
__metadata("design:type", Object)
|
|
29
29
|
], PackageDiscountConfig.prototype, "servicePackage", void 0);
|
|
30
30
|
__decorate([
|
|
31
|
-
(0, typegoose_1.prop)({ required: true, type:
|
|
32
|
-
__metadata("design:type",
|
|
31
|
+
(0, typegoose_1.prop)({ required: true, type: promotion_duration_model_1.PromotionDuration }),
|
|
32
|
+
__metadata("design:type", promotion_duration_model_1.PromotionDuration)
|
|
33
33
|
], PackageDiscountConfig.prototype, "duration", void 0);
|
|
34
34
|
__decorate([
|
|
35
35
|
(0, typegoose_1.prop)({ type: String, enum: enum_1.ValueType }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"package-discount-config.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/package-discount-config.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiD;AACjD,oEAA0D;AAC1D,qDAAuD;AACvD,
|
|
1
|
+
{"version":3,"file":"package-discount-config.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/package-discount-config.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiD;AACjD,oEAA0D;AAC1D,qDAAuD;AACvD,iFAAuE;AAEvE,MAAa,qBAAqB;IAEvB,cAAc,CAAsB;IAGpC,QAAQ,CAAoB;IAG5B,IAAI,CAAY;IAGhB,KAAK,CAAU;IAGf,iBAAiB,CAAU;IAG3B,UAAU,CAAU;CAC9B;AAlBD,sDAkBC;AAhBU;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,sCAAc,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6DACT;AAGpC;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,4CAAiB,EAAE,CAAC;8BAChC,4CAAiB;uDAAA;AAG5B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAS,EAAE,CAAC;;mDACjB;AAGhB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;oDACD;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;gEACiB;AAG3B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;yDACpB","sourcesContent":["import { prop, Ref } from \"@typegoose/typegoose\";\nimport { ServicePackage } from \"../service-package.model\";\nimport { ValueType } from \"../../../../utilities/enum\";\nimport { PromotionDuration } from \"../shared/promotion-duration.model\";\n\nexport class PackageDiscountConfig {\n @prop({ ref: () => ServicePackage, required: true })\n public servicePackage!: Ref<ServicePackage>\n\n @prop({ required: true, type: PromotionDuration })\n public duration!: PromotionDuration\n\n @prop({ type: String, enum: ValueType })\n public type?: ValueType\n\n @prop({ type: Number })\n public value?: number;\n\n @prop({ min: 0 })\n public maxDiscountAmount?: number;\n\n @prop({ type: Number, required: true, min: 0 })\n public spendLimit!: number;\n}"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ValueType } from "../../../../utilities/enum";
|
|
2
2
|
import { Slot } from "../shared/slot.model";
|
|
3
|
-
import { PromotionDuration } from "../shared/
|
|
3
|
+
import { PromotionDuration } from "../shared/promotion-duration.model";
|
|
4
4
|
export declare class SlotDiscountConfig {
|
|
5
5
|
duration: PromotionDuration;
|
|
6
6
|
slot: Slot;
|
|
@@ -13,7 +13,7 @@ exports.SlotDiscountConfig = void 0;
|
|
|
13
13
|
const typegoose_1 = require("@typegoose/typegoose");
|
|
14
14
|
const enum_1 = require("../../../../utilities/enum");
|
|
15
15
|
const slot_model_1 = require("../shared/slot.model");
|
|
16
|
-
const
|
|
16
|
+
const promotion_duration_model_1 = require("../shared/promotion-duration.model");
|
|
17
17
|
class SlotDiscountConfig {
|
|
18
18
|
duration;
|
|
19
19
|
slot;
|
|
@@ -24,8 +24,8 @@ class SlotDiscountConfig {
|
|
|
24
24
|
}
|
|
25
25
|
exports.SlotDiscountConfig = SlotDiscountConfig;
|
|
26
26
|
__decorate([
|
|
27
|
-
(0, typegoose_1.prop)({ required: true, type:
|
|
28
|
-
__metadata("design:type",
|
|
27
|
+
(0, typegoose_1.prop)({ required: true, type: promotion_duration_model_1.PromotionDuration }),
|
|
28
|
+
__metadata("design:type", promotion_duration_model_1.PromotionDuration)
|
|
29
29
|
], SlotDiscountConfig.prototype, "duration", void 0);
|
|
30
30
|
__decorate([
|
|
31
31
|
(0, typegoose_1.prop)({ required: true, type: slot_model_1.Slot }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slot-discount-config.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/slot-discount-config.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,qDAAuD;AACvD,qDAA4C;AAC5C,
|
|
1
|
+
{"version":3,"file":"slot-discount-config.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/slot-discount-config.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,qDAAuD;AACvD,qDAA4C;AAC5C,iFAAuE;AAEvE,MAAa,kBAAkB;IAEpB,QAAQ,CAAoB;IAG5B,IAAI,CAAO;IAGX,IAAI,CAAY;IAGhB,KAAK,CAAU;IAGf,iBAAiB,CAAU;IAG3B,UAAU,CAAU;CAC9B;AAlBD,gDAkBC;AAhBU;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,4CAAiB,EAAE,CAAC;8BAChC,4CAAiB;oDAAA;AAG5B;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,iBAAI,EAAE,CAAC;8BACvB,iBAAI;gDAAA;AAGX;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAS,EAAE,CAAC;;gDACjB;AAGhB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;iDACD;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;6DACiB;AAG3B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;sDACpB","sourcesContent":["import { prop } from \"@typegoose/typegoose\";\nimport { Duration } from \"../shared/duration.model\";\nimport { ValueType } from \"../../../../utilities/enum\";\nimport { Slot } from \"../shared/slot.model\";\nimport { PromotionDuration } from \"../shared/promotion-duration.model\";\n\nexport class SlotDiscountConfig {\n @prop({ required: true, type: PromotionDuration })\n public duration!: PromotionDuration\n\n @prop({ required: true, type: Slot })\n public slot!: Slot\n\n @prop({ type: String, enum: ValueType })\n public type?: ValueType\n\n @prop({ type: Number })\n public value?: number;\n\n @prop({ min: 0 })\n public maxDiscountAmount?: number;\n\n @prop({ type: Number, required: true, min: 0 })\n public spendLimit!: number;\n}"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"promotion-duration.model.js","sourceRoot":"/","sources":["libraries/mongo/models/shared/promotion-duration.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,iBAAiB;IAEnB,KAAK,CAAQ;IAGb,GAAG,CAAQ;CACrB;AAND,8CAMC;AAJU;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;8BACtB,IAAI;gDAAC;AAGb;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;8BACR,IAAI;8CAAC","sourcesContent":["import { prop } from '@typegoose/typegoose';\n\nexport class PromotionDuration {\n @prop({ required: true, type: Date })\n public start!: Date;\n\n @prop({ type: Date })\n public end?: Date;\n}\n"]}
|
|
@@ -31,7 +31,7 @@ export declare class User extends TimeStamps {
|
|
|
31
31
|
isPhoneVerified?: boolean;
|
|
32
32
|
onlineStatus?: OnlineStatus;
|
|
33
33
|
fcmTokens?: string[];
|
|
34
|
-
static updateWallet(this: ReturnModelType<typeof User>, userId: string, amount: number): Promise<(import("mongoose").Document<unknown, import("@typegoose/typegoose/lib/types").BeAnObject, User, import("@typegoose/typegoose/lib/types").BeAnyObject
|
|
34
|
+
static updateWallet(this: ReturnModelType<typeof User>, userId: string, amount: number): Promise<(import("mongoose").Document<unknown, import("@typegoose/typegoose/lib/types").BeAnObject, User, import("@typegoose/typegoose/lib/types").BeAnyObject> & Omit<User & {
|
|
35
35
|
_id: import("mongoose").Types.ObjectId;
|
|
36
36
|
} & {
|
|
37
37
|
__v: number;
|
package/dist/types/README.md
CHANGED
package/dist/types/package.json
CHANGED
|
@@ -504,7 +504,7 @@ export declare const createResponseSchema: <T>(schema: z.ZodSchema<T>) => z.ZodO
|
|
|
504
504
|
totalPages: number;
|
|
505
505
|
} | undefined;
|
|
506
506
|
}>, z.ZodType<T, z.ZodTypeDef, T>]>>;
|
|
507
|
-
}>, any> extends infer T_1 ? { [k in keyof T_1]:
|
|
507
|
+
}>, any> extends infer T_1 ? { [k in keyof T_1]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
|
508
508
|
success: z.ZodBoolean;
|
|
509
509
|
message: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
510
510
|
data: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
@@ -542,7 +542,83 @@ export declare const createResponseSchema: <T>(schema: z.ZodSchema<T>) => z.ZodO
|
|
|
542
542
|
totalPages: number;
|
|
543
543
|
} | undefined;
|
|
544
544
|
}>, z.ZodType<T, z.ZodTypeDef, T>]>>;
|
|
545
|
-
}>
|
|
545
|
+
}>, any>[k]; } : never, z.baseObjectInputType<{
|
|
546
|
+
success: z.ZodBoolean;
|
|
547
|
+
message: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
548
|
+
data: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
549
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
550
|
+
page: z.ZodNumber;
|
|
551
|
+
size: z.ZodNumber;
|
|
552
|
+
totalElements: z.ZodNumber;
|
|
553
|
+
totalPages: z.ZodNumber;
|
|
554
|
+
}, "strip", z.ZodTypeAny, {
|
|
555
|
+
size: number;
|
|
556
|
+
page: number;
|
|
557
|
+
totalElements: number;
|
|
558
|
+
totalPages: number;
|
|
559
|
+
}, {
|
|
560
|
+
size: number;
|
|
561
|
+
page: number;
|
|
562
|
+
totalElements: number;
|
|
563
|
+
totalPages: number;
|
|
564
|
+
}>>;
|
|
565
|
+
documents: z.ZodArray<z.ZodType<T, z.ZodTypeDef, T>, "many">;
|
|
566
|
+
}, "strip", z.ZodTypeAny, {
|
|
567
|
+
documents: T[];
|
|
568
|
+
metadata?: {
|
|
569
|
+
size: number;
|
|
570
|
+
page: number;
|
|
571
|
+
totalElements: number;
|
|
572
|
+
totalPages: number;
|
|
573
|
+
} | undefined;
|
|
574
|
+
}, {
|
|
575
|
+
documents: T[];
|
|
576
|
+
metadata?: {
|
|
577
|
+
size: number;
|
|
578
|
+
page: number;
|
|
579
|
+
totalElements: number;
|
|
580
|
+
totalPages: number;
|
|
581
|
+
} | undefined;
|
|
582
|
+
}>, z.ZodType<T, z.ZodTypeDef, T>]>>;
|
|
583
|
+
}> extends infer T_2 ? { [k_1 in keyof T_2]: z.baseObjectInputType<{
|
|
584
|
+
success: z.ZodBoolean;
|
|
585
|
+
message: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
586
|
+
data: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
587
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
588
|
+
page: z.ZodNumber;
|
|
589
|
+
size: z.ZodNumber;
|
|
590
|
+
totalElements: z.ZodNumber;
|
|
591
|
+
totalPages: z.ZodNumber;
|
|
592
|
+
}, "strip", z.ZodTypeAny, {
|
|
593
|
+
size: number;
|
|
594
|
+
page: number;
|
|
595
|
+
totalElements: number;
|
|
596
|
+
totalPages: number;
|
|
597
|
+
}, {
|
|
598
|
+
size: number;
|
|
599
|
+
page: number;
|
|
600
|
+
totalElements: number;
|
|
601
|
+
totalPages: number;
|
|
602
|
+
}>>;
|
|
603
|
+
documents: z.ZodArray<z.ZodType<T, z.ZodTypeDef, T>, "many">;
|
|
604
|
+
}, "strip", z.ZodTypeAny, {
|
|
605
|
+
documents: T[];
|
|
606
|
+
metadata?: {
|
|
607
|
+
size: number;
|
|
608
|
+
page: number;
|
|
609
|
+
totalElements: number;
|
|
610
|
+
totalPages: number;
|
|
611
|
+
} | undefined;
|
|
612
|
+
}, {
|
|
613
|
+
documents: T[];
|
|
614
|
+
metadata?: {
|
|
615
|
+
size: number;
|
|
616
|
+
page: number;
|
|
617
|
+
totalElements: number;
|
|
618
|
+
totalPages: number;
|
|
619
|
+
} | undefined;
|
|
620
|
+
}>, z.ZodType<T, z.ZodTypeDef, T>]>>;
|
|
621
|
+
}>[k_1]; } : never>;
|
|
546
622
|
export declare const TokenSchema: z.ZodObject<{
|
|
547
623
|
accessToken: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
548
624
|
refreshToken: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
@@ -61,22 +61,34 @@ export declare class SchemaBuilder<T extends z.ZodRawShape> {
|
|
|
61
61
|
private baseSchema;
|
|
62
62
|
constructor(baseFields: T, includeTimestamps?: boolean, includeTracking?: boolean);
|
|
63
63
|
private createBaseSchema;
|
|
64
|
-
getBaseSchema(): z.ZodObject<T, "strict", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<T>, any> extends infer T_1 ? { [k in keyof T_1]:
|
|
64
|
+
getBaseSchema(): z.ZodObject<T, "strict", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<T>, any> extends infer T_1 ? { [k in keyof T_1]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<T>, any>[k]; } : never, z.baseObjectInputType<T> extends infer T_2 ? { [k_1 in keyof T_2]: z.baseObjectInputType<T>[k_1]; } : never>;
|
|
65
65
|
getEntitySchema(): z.ZodObject<z.objectUtil.extendShape<T, {
|
|
66
66
|
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
67
|
-
}> extends infer T_1 extends z.ZodRawShape ? { [k in keyof T_1]: z.ZodOptional<
|
|
67
|
+
}> extends infer T_1 extends z.ZodRawShape ? { [k in keyof T_1]: z.ZodOptional<z.objectUtil.extendShape<T, {
|
|
68
68
|
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
69
|
-
}>
|
|
69
|
+
}>[k]>; } : never, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<T, {
|
|
70
70
|
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
71
|
-
}> extends infer
|
|
71
|
+
}> extends infer T_2 extends z.ZodRawShape ? { [k in keyof T_2]: z.ZodOptional<z.objectUtil.extendShape<T, {
|
|
72
|
+
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
73
|
+
}>[k]>; } : never, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<T, {
|
|
74
|
+
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
75
|
+
}> extends infer T_3 extends z.ZodRawShape ? { [k in keyof T_3]: z.ZodOptional<z.objectUtil.extendShape<T, {
|
|
76
|
+
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
77
|
+
}>[k]>; } : never, z.ZodTypeAny, "passthrough">>;
|
|
72
78
|
getIdSchema(): z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
73
79
|
getUpdateSchema(excludeFields?: ExcludeFromUpdate): z.ZodObject<z.objectUtil.extendShape<T, {
|
|
74
80
|
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
75
|
-
}> extends infer T_1 extends z.ZodRawShape ? { [k in keyof T_1]: z.ZodOptional<
|
|
81
|
+
}> extends infer T_1 extends z.ZodRawShape ? { [k in keyof T_1]: z.ZodOptional<z.objectUtil.extendShape<T, {
|
|
82
|
+
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
83
|
+
}>[k]>; } : never, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<T, {
|
|
84
|
+
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
85
|
+
}> extends infer T_2 extends z.ZodRawShape ? { [k in keyof T_2]: z.ZodOptional<z.objectUtil.extendShape<T, {
|
|
86
|
+
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
87
|
+
}>[k]>; } : never, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<T, {
|
|
76
88
|
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
77
|
-
}> extends infer
|
|
89
|
+
}> extends infer T_3 extends z.ZodRawShape ? { [k in keyof T_3]: z.ZodOptional<z.objectUtil.extendShape<T, {
|
|
78
90
|
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
79
|
-
}>
|
|
91
|
+
}>[k]>; } : never, z.ZodTypeAny, "passthrough">> | z.ZodObject<{
|
|
80
92
|
[x: string]: z.ZodOptional<z.ZodTypeAny>;
|
|
81
93
|
}, "strict", z.ZodTypeAny, {
|
|
82
94
|
[x: string]: any;
|
|
@@ -99,22 +111,34 @@ export declare class SchemaBuilder<T extends z.ZodRawShape> {
|
|
|
99
111
|
[x: string]: any;
|
|
100
112
|
}>;
|
|
101
113
|
getAllSchemas(excludeFromUpdate?: ExcludeFromUpdate): {
|
|
102
|
-
BaseSchema: z.ZodObject<T, "strict", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<T>, any> extends infer T_1 ? { [k in keyof T_1]:
|
|
114
|
+
BaseSchema: z.ZodObject<T, "strict", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<T>, any> extends infer T_1 ? { [k in keyof T_1]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<T>, any>[k]; } : never, z.baseObjectInputType<T> extends infer T_2 ? { [k_1 in keyof T_2]: z.baseObjectInputType<T>[k_1]; } : never>;
|
|
103
115
|
EntitySchema: z.ZodObject<z.objectUtil.extendShape<T, {
|
|
104
116
|
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
105
|
-
}> extends infer T_3 extends z.ZodRawShape ? { [k_2 in keyof T_3]: z.ZodOptional<
|
|
117
|
+
}> extends infer T_3 extends z.ZodRawShape ? { [k_2 in keyof T_3]: z.ZodOptional<z.objectUtil.extendShape<T, {
|
|
106
118
|
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
107
|
-
}>
|
|
119
|
+
}>[k_2]>; } : never, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<T, {
|
|
108
120
|
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
109
|
-
}> extends infer
|
|
121
|
+
}> extends infer T_4 extends z.ZodRawShape ? { [k_2 in keyof T_4]: z.ZodOptional<z.objectUtil.extendShape<T, {
|
|
122
|
+
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
123
|
+
}>[k_2]>; } : never, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<T, {
|
|
124
|
+
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
125
|
+
}> extends infer T_5 extends z.ZodRawShape ? { [k_2 in keyof T_5]: z.ZodOptional<z.objectUtil.extendShape<T, {
|
|
126
|
+
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
127
|
+
}>[k_2]>; } : never, z.ZodTypeAny, "passthrough">>;
|
|
110
128
|
IdSchema: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
111
129
|
UpdateSchema: z.ZodObject<z.objectUtil.extendShape<T, {
|
|
112
130
|
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
113
|
-
}> extends infer T_6 extends z.ZodRawShape ? { [k_2 in keyof T_6]: z.ZodOptional<
|
|
131
|
+
}> extends infer T_6 extends z.ZodRawShape ? { [k_2 in keyof T_6]: z.ZodOptional<z.objectUtil.extendShape<T, {
|
|
132
|
+
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
133
|
+
}>[k_2]>; } : never, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<T, {
|
|
134
|
+
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
135
|
+
}> extends infer T_7 extends z.ZodRawShape ? { [k_2 in keyof T_7]: z.ZodOptional<z.objectUtil.extendShape<T, {
|
|
136
|
+
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
137
|
+
}>[k_2]>; } : never, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<T, {
|
|
114
138
|
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
115
|
-
}> extends infer
|
|
139
|
+
}> extends infer T_8 extends z.ZodRawShape ? { [k_2 in keyof T_8]: z.ZodOptional<z.objectUtil.extendShape<T, {
|
|
116
140
|
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
117
|
-
}>
|
|
141
|
+
}>[k_2]>; } : never, z.ZodTypeAny, "passthrough">> | z.ZodObject<{
|
|
118
142
|
[x: string]: z.ZodOptional<z.ZodTypeAny>;
|
|
119
143
|
}, "strict", z.ZodTypeAny, {
|
|
120
144
|
[x: string]: any;
|
|
@@ -504,7 +504,7 @@ export declare const createResponseSchema: <T>(schema: z.ZodSchema<T>) => z.ZodO
|
|
|
504
504
|
totalPages: number;
|
|
505
505
|
} | undefined;
|
|
506
506
|
}>, z.ZodType<T, z.ZodTypeDef, T>]>>;
|
|
507
|
-
}>, any> extends infer T_1 ? { [k in keyof T_1]:
|
|
507
|
+
}>, any> extends infer T_1 ? { [k in keyof T_1]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
|
508
508
|
success: z.ZodBoolean;
|
|
509
509
|
message: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
510
510
|
data: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
@@ -542,7 +542,83 @@ export declare const createResponseSchema: <T>(schema: z.ZodSchema<T>) => z.ZodO
|
|
|
542
542
|
totalPages: number;
|
|
543
543
|
} | undefined;
|
|
544
544
|
}>, z.ZodType<T, z.ZodTypeDef, T>]>>;
|
|
545
|
-
}>
|
|
545
|
+
}>, any>[k]; } : never, z.baseObjectInputType<{
|
|
546
|
+
success: z.ZodBoolean;
|
|
547
|
+
message: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
548
|
+
data: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
549
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
550
|
+
page: z.ZodNumber;
|
|
551
|
+
size: z.ZodNumber;
|
|
552
|
+
totalElements: z.ZodNumber;
|
|
553
|
+
totalPages: z.ZodNumber;
|
|
554
|
+
}, "strip", z.ZodTypeAny, {
|
|
555
|
+
page: number;
|
|
556
|
+
size: number;
|
|
557
|
+
totalElements: number;
|
|
558
|
+
totalPages: number;
|
|
559
|
+
}, {
|
|
560
|
+
page: number;
|
|
561
|
+
size: number;
|
|
562
|
+
totalElements: number;
|
|
563
|
+
totalPages: number;
|
|
564
|
+
}>>;
|
|
565
|
+
documents: z.ZodArray<z.ZodType<T, z.ZodTypeDef, T>, "many">;
|
|
566
|
+
}, "strip", z.ZodTypeAny, {
|
|
567
|
+
documents: T[];
|
|
568
|
+
metadata?: {
|
|
569
|
+
page: number;
|
|
570
|
+
size: number;
|
|
571
|
+
totalElements: number;
|
|
572
|
+
totalPages: number;
|
|
573
|
+
} | undefined;
|
|
574
|
+
}, {
|
|
575
|
+
documents: T[];
|
|
576
|
+
metadata?: {
|
|
577
|
+
page: number;
|
|
578
|
+
size: number;
|
|
579
|
+
totalElements: number;
|
|
580
|
+
totalPages: number;
|
|
581
|
+
} | undefined;
|
|
582
|
+
}>, z.ZodType<T, z.ZodTypeDef, T>]>>;
|
|
583
|
+
}> extends infer T_2 ? { [k_1 in keyof T_2]: z.baseObjectInputType<{
|
|
584
|
+
success: z.ZodBoolean;
|
|
585
|
+
message: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
586
|
+
data: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
587
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
588
|
+
page: z.ZodNumber;
|
|
589
|
+
size: z.ZodNumber;
|
|
590
|
+
totalElements: z.ZodNumber;
|
|
591
|
+
totalPages: z.ZodNumber;
|
|
592
|
+
}, "strip", z.ZodTypeAny, {
|
|
593
|
+
page: number;
|
|
594
|
+
size: number;
|
|
595
|
+
totalElements: number;
|
|
596
|
+
totalPages: number;
|
|
597
|
+
}, {
|
|
598
|
+
page: number;
|
|
599
|
+
size: number;
|
|
600
|
+
totalElements: number;
|
|
601
|
+
totalPages: number;
|
|
602
|
+
}>>;
|
|
603
|
+
documents: z.ZodArray<z.ZodType<T, z.ZodTypeDef, T>, "many">;
|
|
604
|
+
}, "strip", z.ZodTypeAny, {
|
|
605
|
+
documents: T[];
|
|
606
|
+
metadata?: {
|
|
607
|
+
page: number;
|
|
608
|
+
size: number;
|
|
609
|
+
totalElements: number;
|
|
610
|
+
totalPages: number;
|
|
611
|
+
} | undefined;
|
|
612
|
+
}, {
|
|
613
|
+
documents: T[];
|
|
614
|
+
metadata?: {
|
|
615
|
+
page: number;
|
|
616
|
+
size: number;
|
|
617
|
+
totalElements: number;
|
|
618
|
+
totalPages: number;
|
|
619
|
+
} | undefined;
|
|
620
|
+
}>, z.ZodType<T, z.ZodTypeDef, T>]>>;
|
|
621
|
+
}>[k_1]; } : never>;
|
|
546
622
|
export declare const TokenSchema: z.ZodObject<{
|
|
547
623
|
accessToken: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
548
624
|
refreshToken: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
@@ -61,22 +61,34 @@ export declare class SchemaBuilder<T extends z.ZodRawShape> {
|
|
|
61
61
|
private baseSchema;
|
|
62
62
|
constructor(baseFields: T, includeTimestamps?: boolean, includeTracking?: boolean);
|
|
63
63
|
private createBaseSchema;
|
|
64
|
-
getBaseSchema(): z.ZodObject<T, "strict", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<T>, any> extends infer T_1 ? { [k in keyof T_1]:
|
|
64
|
+
getBaseSchema(): z.ZodObject<T, "strict", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<T>, any> extends infer T_1 ? { [k in keyof T_1]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<T>, any>[k]; } : never, z.baseObjectInputType<T> extends infer T_2 ? { [k_1 in keyof T_2]: z.baseObjectInputType<T>[k_1]; } : never>;
|
|
65
65
|
getEntitySchema(): z.ZodObject<z.objectUtil.extendShape<T, {
|
|
66
66
|
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
67
|
-
}> extends infer T_1 extends z.ZodRawShape ? { [k in keyof T_1]: z.ZodOptional<
|
|
67
|
+
}> extends infer T_1 extends z.ZodRawShape ? { [k in keyof T_1]: z.ZodOptional<z.objectUtil.extendShape<T, {
|
|
68
68
|
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
69
|
-
}>
|
|
69
|
+
}>[k]>; } : never, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<T, {
|
|
70
70
|
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
71
|
-
}> extends infer
|
|
71
|
+
}> extends infer T_2 extends z.ZodRawShape ? { [k in keyof T_2]: z.ZodOptional<z.objectUtil.extendShape<T, {
|
|
72
|
+
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
73
|
+
}>[k]>; } : never, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<T, {
|
|
74
|
+
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
75
|
+
}> extends infer T_3 extends z.ZodRawShape ? { [k in keyof T_3]: z.ZodOptional<z.objectUtil.extendShape<T, {
|
|
76
|
+
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
77
|
+
}>[k]>; } : never, z.ZodTypeAny, "passthrough">>;
|
|
72
78
|
getIdSchema(): z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
73
79
|
getUpdateSchema(excludeFields?: ExcludeFromUpdate): z.ZodObject<z.objectUtil.extendShape<T, {
|
|
74
80
|
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
75
|
-
}> extends infer T_1 extends z.ZodRawShape ? { [k in keyof T_1]: z.ZodOptional<
|
|
81
|
+
}> extends infer T_1 extends z.ZodRawShape ? { [k in keyof T_1]: z.ZodOptional<z.objectUtil.extendShape<T, {
|
|
82
|
+
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
83
|
+
}>[k]>; } : never, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<T, {
|
|
84
|
+
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
85
|
+
}> extends infer T_2 extends z.ZodRawShape ? { [k in keyof T_2]: z.ZodOptional<z.objectUtil.extendShape<T, {
|
|
86
|
+
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
87
|
+
}>[k]>; } : never, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<T, {
|
|
76
88
|
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
77
|
-
}> extends infer
|
|
89
|
+
}> extends infer T_3 extends z.ZodRawShape ? { [k in keyof T_3]: z.ZodOptional<z.objectUtil.extendShape<T, {
|
|
78
90
|
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
79
|
-
}>
|
|
91
|
+
}>[k]>; } : never, z.ZodTypeAny, "passthrough">> | z.ZodObject<{
|
|
80
92
|
[x: string]: z.ZodOptional<z.ZodTypeAny>;
|
|
81
93
|
}, "strict", z.ZodTypeAny, {
|
|
82
94
|
[x: string]: any;
|
|
@@ -99,22 +111,34 @@ export declare class SchemaBuilder<T extends z.ZodRawShape> {
|
|
|
99
111
|
[x: string]: any;
|
|
100
112
|
}>;
|
|
101
113
|
getAllSchemas(excludeFromUpdate?: ExcludeFromUpdate): {
|
|
102
|
-
BaseSchema: z.ZodObject<T, "strict", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<T>, any> extends infer T_1 ? { [k in keyof T_1]:
|
|
114
|
+
BaseSchema: z.ZodObject<T, "strict", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<T>, any> extends infer T_1 ? { [k in keyof T_1]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<T>, any>[k]; } : never, z.baseObjectInputType<T> extends infer T_2 ? { [k_1 in keyof T_2]: z.baseObjectInputType<T>[k_1]; } : never>;
|
|
103
115
|
EntitySchema: z.ZodObject<z.objectUtil.extendShape<T, {
|
|
104
116
|
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
105
|
-
}> extends infer T_3 extends z.ZodRawShape ? { [k_2 in keyof T_3]: z.ZodOptional<
|
|
117
|
+
}> extends infer T_3 extends z.ZodRawShape ? { [k_2 in keyof T_3]: z.ZodOptional<z.objectUtil.extendShape<T, {
|
|
106
118
|
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
107
|
-
}>
|
|
119
|
+
}>[k_2]>; } : never, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<T, {
|
|
108
120
|
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
109
|
-
}> extends infer
|
|
121
|
+
}> extends infer T_4 extends z.ZodRawShape ? { [k_2 in keyof T_4]: z.ZodOptional<z.objectUtil.extendShape<T, {
|
|
122
|
+
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
123
|
+
}>[k_2]>; } : never, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<T, {
|
|
124
|
+
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
125
|
+
}> extends infer T_5 extends z.ZodRawShape ? { [k_2 in keyof T_5]: z.ZodOptional<z.objectUtil.extendShape<T, {
|
|
126
|
+
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
127
|
+
}>[k_2]>; } : never, z.ZodTypeAny, "passthrough">>;
|
|
110
128
|
IdSchema: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
111
129
|
UpdateSchema: z.ZodObject<z.objectUtil.extendShape<T, {
|
|
112
130
|
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
113
|
-
}> extends infer T_6 extends z.ZodRawShape ? { [k_2 in keyof T_6]: z.ZodOptional<
|
|
131
|
+
}> extends infer T_6 extends z.ZodRawShape ? { [k_2 in keyof T_6]: z.ZodOptional<z.objectUtil.extendShape<T, {
|
|
132
|
+
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
133
|
+
}>[k_2]>; } : never, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<T, {
|
|
134
|
+
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
135
|
+
}> extends infer T_7 extends z.ZodRawShape ? { [k_2 in keyof T_7]: z.ZodOptional<z.objectUtil.extendShape<T, {
|
|
136
|
+
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
137
|
+
}>[k_2]>; } : never, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<T, {
|
|
114
138
|
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
115
|
-
}> extends infer
|
|
139
|
+
}> extends infer T_8 extends z.ZodRawShape ? { [k_2 in keyof T_8]: z.ZodOptional<z.objectUtil.extendShape<T, {
|
|
116
140
|
_id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
|
|
117
|
-
}>
|
|
141
|
+
}>[k_2]>; } : never, z.ZodTypeAny, "passthrough">> | z.ZodObject<{
|
|
118
142
|
[x: string]: z.ZodOptional<z.ZodTypeAny>;
|
|
119
143
|
}, "strict", z.ZodTypeAny, {
|
|
120
144
|
[x: string]: any;
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"service-duration.model.js","sourceRoot":"/","sources":["libraries/mongo/models/shared/service-duration.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,iBAAiB;IAEnB,KAAK,CAAQ;IAGb,GAAG,CAAQ;CACrB;AAND,8CAMC;AAJU;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;8BACtB,IAAI;gDAAC;AAGb;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;8BACR,IAAI;8CAAC","sourcesContent":["import { prop } from '@typegoose/typegoose';\n\nexport class PromotionDuration {\n @prop({ required: true, type: Date })\n public start!: Date;\n\n @prop({ type: Date })\n public end?: Date;\n}\n"]}
|
|
File without changes
|