@lyxa.ai/core 1.4.262 → 1.4.264

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.
@@ -13,6 +13,8 @@ export declare class LimitedTimeOfferParticipant {
13
13
  maxDiscountCap?: number;
14
14
  isOrderCapacityEnabled: boolean;
15
15
  maxOrderCapacity?: number;
16
+ pausedOrderCapacity?: number;
17
+ pausedOrderCapacityEnabled?: boolean;
16
18
  isWithdrawn: boolean;
17
19
  withdrawnAt?: Date;
18
20
  marketing?: Ref<Marketing>;
@@ -22,6 +22,8 @@ let LimitedTimeOfferParticipant = class LimitedTimeOfferParticipant {
22
22
  maxDiscountCap;
23
23
  isOrderCapacityEnabled;
24
24
  maxOrderCapacity;
25
+ pausedOrderCapacity;
26
+ pausedOrderCapacityEnabled;
25
27
  isWithdrawn;
26
28
  withdrawnAt;
27
29
  marketing;
@@ -64,6 +66,14 @@ __decorate([
64
66
  (0, typegoose_1.prop)(),
65
67
  __metadata("design:type", Number)
66
68
  ], LimitedTimeOfferParticipant.prototype, "maxOrderCapacity", void 0);
69
+ __decorate([
70
+ (0, typegoose_1.prop)(),
71
+ __metadata("design:type", Number)
72
+ ], LimitedTimeOfferParticipant.prototype, "pausedOrderCapacity", void 0);
73
+ __decorate([
74
+ (0, typegoose_1.prop)(),
75
+ __metadata("design:type", Boolean)
76
+ ], LimitedTimeOfferParticipant.prototype, "pausedOrderCapacityEnabled", void 0);
67
77
  __decorate([
68
78
  (0, typegoose_1.prop)({ default: false }),
69
79
  __metadata("design:type", Boolean)
@@ -1 +1 @@
1
- {"version":3,"file":"limited-time-offer-participant.model.js","sourceRoot":"/","sources":["libraries/mongo/models/limited-time-offer-participant.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA+D;AAG/D,uCAAiC;AAK1B,IAAM,2BAA2B,GAAjC,MAAM,2BAA2B;IAEvC,QAAQ,CAAgC;IAGxC,IAAI,CAAY;IAGhB,QAAQ,CAAO;I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AAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,gBAAK,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;qEAClC;sCAvCxB,2BAA2B;IADvC,IAAA,wBAAY,EAAC,EAAE,aAAa,EAAE,EAAE,UAAU,EAAE,8BAA8B,EAAE,UAAU,EAAE,IAAI,EAAE,EAAE,CAAC;GACrF,2BAA2B,CAwCvC","sourcesContent":["import { modelOptions, prop, Ref } from '@typegoose/typegoose';\nimport { LimitedTimeOfferCampaign } from './limited-time-offer-campaign.model';\nimport { Shop } from './shop.model';\nimport { Types } from 'mongoose';\nimport { Product } from './product.model';\nimport { Marketing } from './marketing.model';\n\n@modelOptions({ schemaOptions: { collection: 'limitedTimeOfferParticipants', timestamps: true } })\nexport class LimitedTimeOfferParticipant {\n\t@prop({ ref: 'LimitedTimeOfferCampaign', required: true })\n\tcampaign: Ref<LimitedTimeOfferCampaign>;\n\n\t@prop({ ref: 'Shop', required: true })\n\tshop: Ref<Shop>;\n\n\t@prop({ default: Date.now })\n\tjoinedAt: Date;\n\n\t@prop({ ref: 'Product', type: () => [Types.ObjectId], default: [] })\n\tproducts: Ref<Product>[];\n\n\t@prop({ default: false })\n\tisEntireMenu: boolean;\n\n\t@prop()\n\tdiscountPercentage?: number;\n\n\t@prop()\n\tmaxDiscountCap?: number;\n\n\t@prop({ default: false })\n\tisOrderCapacityEnabled: boolean;\n\n\t@prop()\n\tmaxOrderCapacity?: number;\n\t\n\t@prop({ default: false })\n\tisWithdrawn: boolean;\n\n\t@prop()\n\twithdrawnAt?: Date;\n\n\t@prop({ ref: 'Marketing' })\n\tmarketing?: Ref<Marketing>;\n\n\t// Shop discounts paused when this shop joined the LTO; resumed on withdraw/expire/cancel/admin-remove.\n\t@prop({ ref: 'Marketing', type: () => [Types.ObjectId], default: [] })\n\tpausedMarketings?: Ref<Marketing>[];\n}\n"]}
1
+ {"version":3,"file":"limited-time-offer-participant.model.js","sourceRoot":"/","sources":["lib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AAI,GAAE;;wEACsB;AAG7B;IADC,IAAA,gBAAI,GAAE;;+EAC8B;AAGrC;IADC,IAAA,gBAAI,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;gEACJ;AAGrB;IADC,IAAA,gBAAI,GAAE;8BACO,IAAI;gEAAC;AAGnB;IADC,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,WAAW,EAAE,CAAC;;8DACA;AAI3B;IADC,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,WAAW,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,gBAAK,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;qEAClC;sCA5CxB,2BAA2B;IADvC,IAAA,wBAAY,EAAC,EAAE,aAAa,EAAE,EAAE,UAAU,EAAE,8BAA8B,EAAE,UAAU,EAAE,IAAI,EAAE,EAAE,CAAC;GACrF,2BAA2B,CA6CvC","sourcesContent":["import { modelOptions, prop, Ref } from '@typegoose/typegoose';\nimport { LimitedTimeOfferCampaign } from './limited-time-offer-campaign.model';\nimport { Shop } from './shop.model';\nimport { Types } from 'mongoose';\nimport { Product } from './product.model';\nimport { Marketing } from './marketing.model';\n\n@modelOptions({ schemaOptions: { collection: 'limitedTimeOfferParticipants', timestamps: true } })\nexport class LimitedTimeOfferParticipant {\n\t@prop({ ref: 'LimitedTimeOfferCampaign', required: true })\n\tcampaign: Ref<LimitedTimeOfferCampaign>;\n\n\t@prop({ ref: 'Shop', required: true })\n\tshop: Ref<Shop>;\n\n\t@prop({ default: Date.now })\n\tjoinedAt: Date;\n\n\t@prop({ ref: 'Product', type: () => [Types.ObjectId], default: [] })\n\tproducts: Ref<Product>[];\n\n\t@prop({ default: false })\n\tisEntireMenu: boolean;\n\n\t@prop()\n\tdiscountPercentage?: number;\n\n\t@prop()\n\tmaxDiscountCap?: number;\n\n\t@prop({ default: false })\n\tisOrderCapacityEnabled: boolean;\n\n\t@prop()\n\tmaxOrderCapacity?: number;\n\t@prop()\n\tpausedOrderCapacity?: number;\n\n\t@prop()\n\tpausedOrderCapacityEnabled?: boolean;\n\n\t@prop({ default: false })\n\tisWithdrawn: boolean;\n\n\t@prop()\n\twithdrawnAt?: Date;\n\n\t@prop({ ref: 'Marketing' })\n\tmarketing?: Ref<Marketing>;\n\n\t// Shop discounts paused when this shop joined the LTO; resumed on withdraw/expire/cancel/admin-remove.\n\t@prop({ ref: 'Marketing', type: () => [Types.ObjectId], default: [] })\n\tpausedMarketings?: Ref<Marketing>[];\n}\n"]}
@@ -41,7 +41,7 @@ __decorate([
41
41
  __metadata("design:type", String)
42
42
  ], PaymentIntent.prototype, "orderId", void 0);
43
43
  __decorate([
44
- (0, typegoose_1.prop)({ required: true, type: String }),
44
+ (0, typegoose_1.prop)({ type: String }),
45
45
  __metadata("design:type", String)
46
46
  ], PaymentIntent.prototype, "token", void 0);
47
47
  __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"payment-intent.model.js","sourceRoot":"/","sources":["libraries/mongo/models/payment-intent.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAmF;AACnF,4EAAqE;AACrE,uDAA6C;AAC7C,kDAA8D;AAC9D,6CAAoC;AAQ7B,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,2BAAU;IAErC,QAAQ,CAAiB;IAGzB,IAAI,CAAa;IAGjB,OAAO,CAAU;IAGjB,KAAK,CAAU;IAGf,UAAU,CAAU;IAGpB,MAAM,CAAU;IAGhB,eAAe,CAAU;IAGzB,aAAa,CAAU;IAGvB,cAAc,CAAO;IAGrB,MAAM,CAAuB;CACpC,CAAA;AA9BY,sCAAa;AAElB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,0BAAQ,EAAE,CAAC;;+CACd;AAGzB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,iBAAI,EAAE,CAAC;;2CAClB;AAGjB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;8CACf;AAGjB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;4CACjB;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;iDACI;AAGpB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;6CAChB;AAGhB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;sDACS;AAGzB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;oDACO;AAGvB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,oBAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;;qDAChB;AAGrB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,0BAAmB,EAAE,OAAO,EAAE,0BAAmB,CAAC,OAAO,EAAE,CAAC;;6CACpD;wBA7BxB,aAAa;IANzB,IAAA,wBAAY,EAAC;QACb,aAAa,EAAE,EAAE,UAAU,EAAE,gBAAgB,EAAE;QAC/C,OAAO,EAAE;YACR,UAAU,EAAE,oBAAQ,CAAC,KAAK;SAC1B;KACD,CAAC;GACW,aAAa,CA8BzB","sourcesContent":["import { modelOptions, mongoose, prop, Ref, Severity } from '@typegoose/typegoose';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\nimport { CoreUser } from './core-user.model';\nimport { PaymentIntentStatus } from '../../../utilities/enum';\nimport { User } from './user.model';\n\n@modelOptions({\n\tschemaOptions: { collection: 'paymentIntents' },\n\toptions: {\n\t\tallowMixed: Severity.ALLOW,\n\t},\n})\nexport class PaymentIntent extends TimeStamps {\n\t@prop({ required: true, ref: () => CoreUser })\n\tpublic coreUser!: Ref<CoreUser>;\n\n\t@prop({ required: true, ref: () => User })\n\tpublic user!: Ref<User>;\n\n\t@prop({ required: true, type: String })\n\tpublic orderId!: string;\n\n\t@prop({ required: true, type: String })\n\tpublic token?: string; // only fro areeba\n\n\t@prop({ type: Number })\n\tpublic externalId?: number; // only for whish\n\n\t@prop({ required: true, type: Number })\n\tpublic amount!: number;\n\n\t@prop({ type: Number })\n\tpublic secondaryAmount?: number;\n\n\t@prop({ type: String })\n\tpublic authorization?: string;\n\n\t@prop({ type: mongoose.Schema.Types.Mixed })\n\tpublic paymentContext?: any;\n\n\t@prop({ type: String, enum: PaymentIntentStatus, default: PaymentIntentStatus.PENDING })\n\tpublic status?: PaymentIntentStatus;\n}\n"]}
1
+ {"version":3,"file":"payment-intent.model.js","sourceRoot":"/","sources":["libraries/mongo/models/payment-intent.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAmF;AACnF,4EAAqE;AACrE,uDAA6C;AAC7C,kDAA8D;AAC9D,6CAAoC;AAQ7B,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,2BAAU;IAErC,QAAQ,CAAiB;IAGzB,IAAI,CAAa;IAGjB,OAAO,CAAU;IAGjB,KAAK,CAAU;IAGf,UAAU,CAAU;IAGpB,MAAM,CAAU;IAGhB,eAAe,CAAU;IAGzB,aAAa,CAAU;IAGvB,cAAc,CAAO;IAGrB,MAAM,CAAuB;CACpC,CAAA;AA9BY,sCAAa;AAElB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,0BAAQ,EAAE,CAAC;;+CACd;AAGzB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,iBAAI,EAAE,CAAC;;2CAClB;AAGjB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;8CACf;AAGjB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;4CACD;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;iDACI;AAGpB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;6CAChB;AAGhB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;sDACS;AAGzB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;oDACO;AAGvB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,oBAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;;qDAChB;AAGrB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,0BAAmB,EAAE,OAAO,EAAE,0BAAmB,CAAC,OAAO,EAAE,CAAC;;6CACpD;wBA7BxB,aAAa;IANzB,IAAA,wBAAY,EAAC;QACb,aAAa,EAAE,EAAE,UAAU,EAAE,gBAAgB,EAAE;QAC/C,OAAO,EAAE;YACR,UAAU,EAAE,oBAAQ,CAAC,KAAK;SAC1B;KACD,CAAC;GACW,aAAa,CA8BzB","sourcesContent":["import { modelOptions, mongoose, prop, Ref, Severity } from '@typegoose/typegoose';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\nimport { CoreUser } from './core-user.model';\nimport { PaymentIntentStatus } from '../../../utilities/enum';\nimport { User } from './user.model';\n\n@modelOptions({\n\tschemaOptions: { collection: 'paymentIntents' },\n\toptions: {\n\t\tallowMixed: Severity.ALLOW,\n\t},\n})\nexport class PaymentIntent extends TimeStamps {\n\t@prop({ required: true, ref: () => CoreUser })\n\tpublic coreUser!: Ref<CoreUser>;\n\n\t@prop({ required: true, ref: () => User })\n\tpublic user!: Ref<User>;\n\n\t@prop({ required: true, type: String })\n\tpublic orderId!: string;\n\n\t@prop({ type: String })\n\tpublic token?: string; // only for areeba\n\n\t@prop({ type: Number })\n\tpublic externalId?: number; // only for whish\n\n\t@prop({ required: true, type: Number })\n\tpublic amount!: number;\n\n\t@prop({ type: Number })\n\tpublic secondaryAmount?: number;\n\n\t@prop({ type: String })\n\tpublic authorization?: string;\n\n\t@prop({ type: mongoose.Schema.Types.Mixed })\n\tpublic paymentContext?: any;\n\n\t@prop({ type: String, enum: PaymentIntentStatus, default: PaymentIntentStatus.PENDING })\n\tpublic status?: PaymentIntentStatus;\n}\n"]}
@@ -5,9 +5,9 @@ interface AuthOptions {
5
5
  autoRefresh?: boolean;
6
6
  }
7
7
  export declare function createAuthenticatedProcedure(options: AuthOptions): import("@trpc/server").TRPCProcedureBuilder<import("../context").LyxaHTTPContext, object, {
8
- req: import("http").IncomingMessage;
9
8
  res: import("http").ServerResponse<import("http").IncomingMessage>;
10
9
  tokenType: TokenType | undefined;
10
+ req: import("http").IncomingMessage;
11
11
  requestId: string | undefined;
12
12
  entity: import("../context").EntityContext | undefined;
13
13
  usedRefreshToken: boolean | undefined;
@@ -4,9 +4,9 @@ interface RoleProtectedOptions {
4
4
  allowedRoles: string[];
5
5
  }
6
6
  export declare function createRoleProtectedProcedure(options: RoleProtectedOptions): import("@trpc/server").TRPCProcedureBuilder<import("../context").LyxaHTTPContext, object, {
7
- req: import("http").IncomingMessage;
8
7
  res: import("http").ServerResponse<import("http").IncomingMessage>;
9
8
  tokenType: import("../../auth").TokenType | undefined;
9
+ req: import("http").IncomingMessage;
10
10
  requestId: string | undefined;
11
11
  entity: import("../context").EntityContext | undefined;
12
12
  usedRefreshToken: boolean | undefined;
@@ -3,9 +3,9 @@ interface PhoneVerifiedOptions {
3
3
  entityTypes: AuthEntityType[];
4
4
  }
5
5
  export declare function createPhoneVerifiedProcedure(options: PhoneVerifiedOptions): import("@trpc/server").TRPCProcedureBuilder<import("../context").LyxaHTTPContext, object, {
6
- req: import("http").IncomingMessage;
7
6
  res: import("http").ServerResponse<import("http").IncomingMessage>;
8
7
  tokenType: import("../../auth").TokenType | undefined;
8
+ req: import("http").IncomingMessage;
9
9
  requestId: string | undefined;
10
10
  entity: import("../context").EntityContext | undefined;
11
11
  usedRefreshToken: boolean | undefined;
@@ -5,9 +5,9 @@ interface AuthOptions {
5
5
  autoRefresh?: boolean;
6
6
  }
7
7
  export declare function publicUserDecoder(options: AuthOptions): import("@trpc/server").TRPCProcedureBuilder<import("../context").LyxaHTTPContext, object, {
8
- req: import("http").IncomingMessage;
9
8
  res: import("http").ServerResponse<import("http").IncomingMessage>;
10
9
  tokenType: TokenType | undefined;
10
+ req: import("http").IncomingMessage;
11
11
  requestId: string | undefined;
12
12
  entity: import("../context").EntityContext | undefined;
13
13
  usedRefreshToken: boolean | undefined;
@@ -22,7 +22,7 @@ Perfect for sharing types between frontend and backend applications.
22
22
 
23
23
  ## Version
24
24
 
25
- Version: 1.4.262
25
+ Version: 1.4.264
26
26
 
27
27
  ## Dependencies
28
28
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lyxa.ai/types",
3
- "version": "1.4.262",
3
+ "version": "1.4.264",
4
4
  "description": "Lyxa type definitions and validation schemas for both frontend and backend",
5
5
  "author": "elie <42282499+Internalizable@users.noreply.github.com>",
6
6
  "license": "MIT",
@@ -26,8 +26,8 @@ export declare const FilterSchema: z.ZodOptional<z.ZodObject<{
26
26
  searchFields?: string[] | undefined;
27
27
  } | undefined;
28
28
  sort?: Record<string, 1 | -1> | undefined;
29
- populate?: any;
30
29
  select?: Record<string, 0 | 1> | undefined;
30
+ populate?: any;
31
31
  query?: Record<string, any> | undefined;
32
32
  }, {
33
33
  search?: {
@@ -36,8 +36,8 @@ export declare const FilterSchema: z.ZodOptional<z.ZodObject<{
36
36
  } | undefined;
37
37
  sort?: Record<string, 1 | -1> | undefined;
38
38
  size?: number | undefined;
39
- populate?: any;
40
39
  select?: Record<string, 0 | 1> | undefined;
40
+ populate?: any;
41
41
  query?: Record<string, any> | undefined;
42
42
  page?: number | undefined;
43
43
  }>>;
@@ -736,12 +736,12 @@ export declare const GetByIdInputSchema: z.ZodObject<{
736
736
  populate: z.ZodOptional<z.ZodUnion<[z.ZodType<any, z.ZodTypeDef, any>, z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">]>>;
737
737
  }, "strip", z.ZodTypeAny, {
738
738
  _id: import("mongoose").Types.ObjectId;
739
- populate?: any;
740
739
  select?: Record<string, 0 | 1> | undefined;
740
+ populate?: any;
741
741
  }, {
742
742
  _id: string | import("mongoose").Types.ObjectId;
743
- populate?: any;
744
743
  select?: Record<string, 0 | 1> | undefined;
744
+ populate?: any;
745
745
  }>;
746
746
  export type GetByIdInputDTO = DTO<typeof GetByIdInputSchema>;
747
747
  export declare const GetProductByIdInputSchema: z.ZodObject<{
@@ -754,12 +754,12 @@ export declare const GetProductByIdInputSchema: z.ZodObject<{
754
754
  _id: import("mongoose").Types.ObjectId;
755
755
  withAttributeHiddenItems: boolean;
756
756
  withAddonsHiddenItems: boolean;
757
- populate?: any;
758
757
  select?: Record<string, 0 | 1> | undefined;
758
+ populate?: any;
759
759
  }, {
760
760
  _id: string | import("mongoose").Types.ObjectId;
761
- populate?: any;
762
761
  select?: Record<string, 0 | 1> | undefined;
762
+ populate?: any;
763
763
  withAttributeHiddenItems?: boolean | undefined;
764
764
  withAddonsHiddenItems?: boolean | undefined;
765
765
  }>;
@@ -773,15 +773,15 @@ export declare const GetOrderByIdInputSchema: z.ZodObject<{
773
773
  userOrderCompletionScope: z.ZodOptional<z.ZodNativeEnum<typeof UserOrderCompletionScope>>;
774
774
  }, "strip", z.ZodTypeAny, {
775
775
  _id: import("mongoose").Types.ObjectId;
776
- populate?: any;
777
776
  select?: Record<string, 0 | 1> | undefined;
777
+ populate?: any;
778
778
  groupByCategories?: boolean | undefined;
779
779
  getParentCategory?: boolean | undefined;
780
780
  userOrderCompletionScope?: UserOrderCompletionScope | undefined;
781
781
  }, {
782
782
  _id: string | import("mongoose").Types.ObjectId;
783
- populate?: any;
784
783
  select?: Record<string, 0 | 1> | undefined;
784
+ populate?: any;
785
785
  groupByCategories?: boolean | undefined;
786
786
  getParentCategory?: boolean | undefined;
787
787
  userOrderCompletionScope?: UserOrderCompletionScope | undefined;
@@ -791,11 +791,11 @@ export declare const GetByTokenInputSchema: z.ZodOptional<z.ZodObject<{
791
791
  select: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>>>;
792
792
  populate: z.ZodOptional<z.ZodUnion<[z.ZodType<any, z.ZodTypeDef, any>, z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">]>>;
793
793
  }, "strip", z.ZodTypeAny, {
794
- populate?: any;
795
794
  select?: Record<string, 0 | 1> | undefined;
796
- }, {
797
795
  populate?: any;
796
+ }, {
798
797
  select?: Record<string, 0 | 1> | undefined;
798
+ populate?: any;
799
799
  }>>;
800
800
  export type GetByTokenInputDTO = DTO<typeof GetByTokenInputSchema>;
801
801
  export declare const GetOneQuerySchema: z.ZodObject<{
@@ -803,12 +803,12 @@ export declare const GetOneQuerySchema: z.ZodObject<{
803
803
  select: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>>>;
804
804
  populate: z.ZodOptional<z.ZodUnion<[z.ZodType<any, z.ZodTypeDef, any>, z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">]>>;
805
805
  }, "strip", z.ZodTypeAny, {
806
- populate?: any;
807
806
  select?: Record<string, 0 | 1> | undefined;
807
+ populate?: any;
808
808
  query?: Record<string, any> | undefined;
809
809
  }, {
810
- populate?: any;
811
810
  select?: Record<string, 0 | 1> | undefined;
811
+ populate?: any;
812
812
  query?: Record<string, any> | undefined;
813
813
  }>;
814
814
  export type GetOneQueryDTO = DTO<typeof GetOneQuerySchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lyxa.ai/core",
3
- "version": "1.4.262",
3
+ "version": "1.4.264",
4
4
  "description": "The Core system of the Lyxa services.",
5
5
  "author": "elie <42282499+Internalizable@users.noreply.github.com>",
6
6
  "license": "MIT",