@lyxa.ai/core 1.4.300 → 1.4.301

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.
@@ -1 +1 @@
1
- {"version":3,"file":"order-pricing.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/order-pricing.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,YAAY;IAEjB,QAAQ,CAAU;IAGlB,iBAAiB,CAAU;IAG3B,WAAW,CAAU;IAGrB,oBAAoB,CAAU;IAG9B,SAAS,CAAU;IAGnB,kBAAkB,CAAU;IAG5B,kBAAkB,CAAU;IAG5B,2BAA2B,CAAU;IAGrC,KAAK,CAAU;IAGf,cAAc,CAAU;IAGxB,MAAM,CAAU;IAGhB,eAAe,CAAU;IAGzB,aAAa,CAAU;IAGvB,sBAAsB,CAAU;IAGhC,UAAU,CAAU;IAGpB,mBAAmB,CAAU;CACpC;AAhDD,oCAgDC;AA9CO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;8CACV;AAGlB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;uDACD;AAG3B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;iDACP;AAGrB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;0DACE;AAG9B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;+CACT;AAGnB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;wDACA;AAG5B;IADN,IAAA,gBAAI,EAAC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AAE,OAAO,EAAE,CAAC,EAAE,CAAC;;wEACS","sourcesContent":["import { prop } from '@typegoose/typegoose';\n\nexport class OrderPricing {\n\t@prop({ type: Number, default: 0 })\n\tpublic subtotal?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondarySubtotal?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic deliveryFee?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryDeliveryFee?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic riderTips?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryRiderTips?: number;\n\n\t@prop({ type: Number, default: 0 }) // negative wallet deduction\n\tpublic outstandingBalance?: number;\n\n\t@prop({ type: Number, default: 0 }) // negative wallet deduction\n\tpublic secondaryOutstandingBalance?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic total?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryTotal?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic wallet?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryWallet?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic reserveWallet?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryReserveWallet?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic paidAmount?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryPaidAmount?: number;\n}\n\nexport class CourierOrderPricing extends OrderPricing {\n\t// below field are only available for purchase and delivery order\n\t@prop({ type: Number, default: 0 })\n\tpublic initialItemTotal?: number; // This is initial subTotal,\n\t// updated item price in subTotal is stored in subTotal field after rider put amount\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryInitialItemTotal?: number;\n}\n\nexport class RegularOrderPricing extends OrderPricing {\n\t@prop({ type: Number, default: 0 })\n\tpublic discount?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryDiscount?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic couponDiscount?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryCouponDiscount?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic punchMarketingDiscount?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryPunchMarketingDiscount?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic b1g1Discount?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryB1g1Discount?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic spendToGetDiscount?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondarySpendToGetDiscount?: number;\n}\n"]}
1
+ {"version":3,"file":"order-pricing.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/order-pricing.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,YAAY;IAEjB,QAAQ,CAAU;IAGlB,iBAAiB,CAAU;IAG3B,WAAW,CAAU;IAGrB,oBAAoB,CAAU;IAG9B,SAAS,CAAU;IAGnB,kBAAkB,CAAU;IAG5B,kBAAkB,CAAU;IAG5B,2BAA2B,CAAU;IAGrC,KAAK,CAAU;IAGf,cAAc,CAAU;IAGxB,MAAM,CAAU;IAGhB,eAAe,CAAU;IAGzB,aAAa,CAAU;IAGvB,sBAAsB,CAAU;IAGhC,UAAU,CAAU;IAGpB,mBAAmB,CAAU;CACpC;AAhDD,oCAgDC;AA9CO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;8CACV;AAGlB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;uDACD;AAG3B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;iDACP;AAGrB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MA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,EAAE,CAAC;;yDACN;AAGtB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;kEACG;AAG/B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;+DACA;AAG5B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;wEACS","sourcesContent":["import { prop } from '@typegoose/typegoose';\n\nexport class OrderPricing {\n\t@prop({ type: Number, default: 0 })\n\tpublic subtotal?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondarySubtotal?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic deliveryFee?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryDeliveryFee?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic riderTips?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryRiderTips?: number;\n\n\t@prop({ type: Number, default: 0 }) // negative wallet deduction\n\tpublic outstandingBalance?: number;\n\n\t@prop({ type: Number, default: 0 }) // negative wallet deduction\n\tpublic secondaryOutstandingBalance?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic total?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryTotal?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic wallet?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryWallet?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic reserveWallet?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryReserveWallet?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic paidAmount?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryPaidAmount?: number;\n}\n\nexport class CourierOrderPricing extends OrderPricing {\n\t// below field are only available for purchase and delivery order\n\t@prop({ type: Number, default: 0 })\n\tpublic initialItemTotal?: number; // This is initial subTotal,\n\t// updated item price in subTotal is stored in subTotal field after rider put amount\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryInitialItemTotal?: number;\n}\n\nexport class RegularOrderPricing extends OrderPricing {\n\t@prop({ type: Number, default: 0 })\n\tpublic discount?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryDiscount?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic couponDiscount?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryCouponDiscount?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic punchMarketingDiscount?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryPunchMarketingDiscount?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic b1g1Discount?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryB1g1Discount?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic spendToGetDiscount?: number; // deprecated\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondarySpendToGetDiscount?: number; // deprecated\n}\n"]}
@@ -14,5 +14,6 @@ export declare class RegularOrderFinance extends OrderFinance {
14
14
  coupon?: CouponDetails;
15
15
  freeDelivery?: MarketingCut;
16
16
  spendToGet?: SpendToGetDetails;
17
+ spendToGetTiers?: SpendToGetDetails[];
17
18
  cashBackAmounts?: Cashback;
18
19
  }
@@ -27,6 +27,7 @@ class RegularOrderFinance extends order_finance_model_1.OrderFinance {
27
27
  coupon;
28
28
  freeDelivery;
29
29
  spendToGet;
30
+ spendToGetTiers;
30
31
  cashBackAmounts;
31
32
  }
32
33
  exports.RegularOrderFinance = RegularOrderFinance;
@@ -66,6 +67,10 @@ __decorate([
66
67
  (0, typegoose_1.prop)({ type: () => marketing_cut_model_1.SpendToGetDetails }),
67
68
  __metadata("design:type", marketing_cut_model_1.SpendToGetDetails)
68
69
  ], RegularOrderFinance.prototype, "spendToGet", void 0);
70
+ __decorate([
71
+ (0, typegoose_1.prop)({ type: () => [marketing_cut_model_1.SpendToGetDetails], default: [] }),
72
+ __metadata("design:type", Array)
73
+ ], RegularOrderFinance.prototype, "spendToGetTiers", void 0);
69
74
  __decorate([
70
75
  (0, typegoose_1.prop)({ type: () => cashback_amounts_model_1.Cashback }),
71
76
  __metadata("design:type", cashback_amounts_model_1.Cashback)
@@ -1 +1 @@
1
- {"version":3,"file":"regular-order-finance.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/regular-order-finance.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,+DAAqD;AACrD,2DAA8D;AAC9D,qDAA4C;AAC5C,yEAAiG;AACjG,+DAA4D;AAC5D,qEAAoD;AAEpD,MAAa,mBAAoB,SAAQ,kCAAY;IAE7C,OAAO,CAAuB;IAG9B,aAAa,CAAsB;IAGnC,UAAU,CAAsB;IAGhC,GAAG,CAAO;IAGV,QAAQ,CAAgB;IAGxB,QAAQ,CAAgB;IAGxB,MAAM,CAAiB;IAGvB,YAAY,CAAgB;IAG5B,UAAU,CAAqB;IAG/B,eAAe,CAAY;CAClC;AA9BD,kDA8BC;AA5BO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,yCAAmB,EAAE,CAAC;8BACzC,yCAAmB;oDAAC;AAG9B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,iCAAkB,EAAE,CAAC;8BAClB,iCAAkB;0DAAC;AAGnC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,iCAAkB,EAAE,CAAC;8BACrB,iCAAkB;uDAAC;AAGhC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,eAAG,EAAE,CAAC;8BACb,eAAG;gDAAC;AAGV;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,kCAAY,EAAE,CAAC;8BACjB,kCAAY;qDAAC;AAGxB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,kCAAY,EAAE,CAAC;8BACjB,kCAAY;qDAAC;AAGxB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,mCAAa,EAAE,CAAC;8BACpB,mCAAa;mDAAC;AAGvB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,kCAAY,EAAE,CAAC;8BACb,kCAAY;yDAAC;AAG5B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,uCAAiB,EAAE,CAAC;8BACpB,uCAAiB;uDAAC;AAG/B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,iCAAQ,EAAE,CAAC;8BACN,iCAAQ;4DAAC","sourcesContent":["import { prop } from '@typegoose/typegoose';\nimport { OrderFinance } from './order-finance.model';\nimport { RegularOrderProfit } from '../embedded/profit.model';\nimport { Vat } from '../embedded/vat.model';\nimport { CouponDetails, MarketingCut, SpendToGetDetails } from '../embedded/marketing-cut.model';\nimport { RegularOrderPricing } from './order-pricing.model';\nimport { Cashback } from './cashback-amounts.model';\n\nexport class RegularOrderFinance extends OrderFinance {\n\t@prop({ required: true, type: () => RegularOrderPricing })\n\tpublic pricing!: RegularOrderPricing;\n\n\t@prop({ type: () => RegularOrderProfit })\n\tpublic companyProfit?: RegularOrderProfit;\n\n\t@prop({ type: () => RegularOrderProfit })\n\tpublic shopProfit?: RegularOrderProfit;\n\n\t@prop({ type: () => Vat })\n\tpublic vat?: Vat;\n\n\t@prop({ type: () => MarketingCut })\n\tpublic discount?: MarketingCut;\n\n\t@prop({ type: () => MarketingCut })\n\tpublic buy1get1?: MarketingCut;\n\n\t@prop({ type: () => CouponDetails })\n\tpublic coupon?: CouponDetails;\n\n\t@prop({ type: () => MarketingCut })\n\tpublic freeDelivery?: MarketingCut;\n\n\t@prop({ type: () => SpendToGetDetails })\n\tpublic spendToGet?: SpendToGetDetails;\n\n\t@prop({ type: () => Cashback })\n\tpublic cashBackAmounts?: Cashback;\n}\n"]}
1
+ {"version":3,"file":"regular-order-finance.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/regular-order-finance.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,+DAAqD;AACrD,2DAA8D;AAC9D,qDAA4C;AAC5C,yEAAiG;AACjG,+DAA4D;AAC5D,qEAAoD;AAEpD,MAAa,mBAAoB,SAAQ,kCAAY;IAE7C,OAAO,CAAuB;IAG9B,aAAa,CAAsB;IAGnC,UAAU,CAAsB;IAGhC,GAAG,CAAO;IAGV,QAAQ,CAAgB;IAGxB,QAAQ,CAAgB;IAGxB,MAAM,CAAiB;IAGvB,YAAY,CAAgB;IAG5B,UAAU,CAAqB;IAG/B,eAAe,CAAuB;IAGtC,eAAe,CAAY;CAClC;AAjCD,kDAiCC;AA/BO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,yCAAmB,EAAE,CAAC;8BACzC,yCAAmB;oDAAC;AAG9B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,iCAAkB,EAAE,CAAC;8BAClB,iCAAkB;0DAAC;AAGnC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,iCAAkB,EAAE,CAAC;8BACrB,iCAAkB;uDAAC;AAGhC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,eAAG,EAAE,CAAC;8BACb,eAAG;gDAAC;AAGV;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,kCAAY,EAAE,CAAC;8BACjB,kCAAY;qDAAC;AAGxB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,kCAAY,EAAE,CAAC;8BACjB,kCAAY;qDAAC;AAGxB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,mCAAa,EAAE,CAAC;8BACpB,mCAAa;mDAAC;AAGvB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,kCAAY,EAAE,CAAC;8BACb,kCAAY;yDAAC;AAG5B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,uCAAiB,EAAE,CAAC;8BACpB,uCAAiB;uDAAC;AAG/B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,uCAAiB,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;4DACV;AAGtC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,iCAAQ,EAAE,CAAC;8BACN,iCAAQ;4DAAC","sourcesContent":["import { prop } from '@typegoose/typegoose';\nimport { OrderFinance } from './order-finance.model';\nimport { RegularOrderProfit } from '../embedded/profit.model';\nimport { Vat } from '../embedded/vat.model';\nimport { CouponDetails, MarketingCut, SpendToGetDetails } from '../embedded/marketing-cut.model';\nimport { RegularOrderPricing } from './order-pricing.model';\nimport { Cashback } from './cashback-amounts.model';\n\nexport class RegularOrderFinance extends OrderFinance {\n\t@prop({ required: true, type: () => RegularOrderPricing })\n\tpublic pricing!: RegularOrderPricing;\n\n\t@prop({ type: () => RegularOrderProfit })\n\tpublic companyProfit?: RegularOrderProfit;\n\n\t@prop({ type: () => RegularOrderProfit })\n\tpublic shopProfit?: RegularOrderProfit;\n\n\t@prop({ type: () => Vat })\n\tpublic vat?: Vat;\n\n\t@prop({ type: () => MarketingCut })\n\tpublic discount?: MarketingCut;\n\n\t@prop({ type: () => MarketingCut })\n\tpublic buy1get1?: MarketingCut;\n\n\t@prop({ type: () => CouponDetails })\n\tpublic coupon?: CouponDetails;\n\n\t@prop({ type: () => MarketingCut })\n\tpublic freeDelivery?: MarketingCut;\n\n\t@prop({ type: () => SpendToGetDetails })\n\tpublic spendToGet?: SpendToGetDetails; // depracted\n\n\t@prop({ type: () => [SpendToGetDetails], default: [] })\n\tpublic spendToGetTiers?: SpendToGetDetails[];\n\n\t@prop({ type: () => Cashback })\n\tpublic cashBackAmounts?: Cashback;\n}\n"]}
@@ -63,8 +63,8 @@ export declare const ChatroomMessageSendOutputSchema: z.ZodObject<{
63
63
  orderId: z.ZodOptional<z.ZodEffects<z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>, import("mongoose").Types.ObjectId, import("mongoose").Types.ObjectId>>;
64
64
  createdAt: z.ZodEffects<z.ZodEffects<z.ZodDate, Date, Date>, Date, Date>;
65
65
  }, "strip", z.ZodTypeAny, {
66
- _id: import("mongoose").Types.ObjectId;
67
66
  createdAt: Date;
67
+ _id: import("mongoose").Types.ObjectId;
68
68
  sender: {
69
69
  type: UserRef;
70
70
  name: string;
@@ -85,12 +85,12 @@ export declare const ChatroomMessageSendOutputSchema: z.ZodObject<{
85
85
  longitude?: number | undefined;
86
86
  } | undefined;
87
87
  orderId?: import("mongoose").Types.ObjectId | undefined;
88
- ticketId?: import("mongoose").Types.ObjectId | undefined;
89
88
  content?: string | undefined;
89
+ ticketId?: import("mongoose").Types.ObjectId | undefined;
90
90
  chatroomId?: import("mongoose").Types.ObjectId | undefined;
91
91
  }, {
92
- _id: import("mongoose").Types.ObjectId;
93
92
  createdAt: Date;
93
+ _id: import("mongoose").Types.ObjectId;
94
94
  sender: {
95
95
  type: UserRef;
96
96
  name: string;
@@ -111,8 +111,8 @@ export declare const ChatroomMessageSendOutputSchema: z.ZodObject<{
111
111
  longitude?: number | undefined;
112
112
  } | undefined;
113
113
  orderId?: import("mongoose").Types.ObjectId | undefined;
114
- ticketId?: import("mongoose").Types.ObjectId | undefined;
115
114
  content?: string | undefined;
115
+ ticketId?: import("mongoose").Types.ObjectId | undefined;
116
116
  chatroomId?: import("mongoose").Types.ObjectId | undefined;
117
117
  }>;
118
118
  export declare const ChatroomMessageSendPushOutputSchema: z.ZodObject<{
@@ -124,14 +124,14 @@ export declare const ChatroomMessageSendPushOutputSchema: z.ZodObject<{
124
124
  }, "strip", z.ZodTypeAny, {
125
125
  type: ChatroomType;
126
126
  orderId?: import("mongoose").Types.ObjectId | undefined;
127
- ticketId?: import("mongoose").Types.ObjectId | undefined;
128
127
  lastMessage?: string | undefined;
128
+ ticketId?: import("mongoose").Types.ObjectId | undefined;
129
129
  chatroomId?: import("mongoose").Types.ObjectId | undefined;
130
130
  }, {
131
131
  type: ChatroomType;
132
132
  orderId?: import("mongoose").Types.ObjectId | undefined;
133
- ticketId?: import("mongoose").Types.ObjectId | undefined;
134
133
  lastMessage?: string | undefined;
134
+ ticketId?: import("mongoose").Types.ObjectId | undefined;
135
135
  chatroomId?: import("mongoose").Types.ObjectId | undefined;
136
136
  }>;
137
137
  export type ChatlistMessageSendPushOutputDTO = DTO<typeof ChatroomMessageSendPushOutputSchema>;
@@ -199,8 +199,8 @@ export declare class ChatroomMessageSendSocketEvent extends BaseSocketEvent<type
199
199
  orderId: z.ZodOptional<z.ZodEffects<z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>, import("mongoose").Types.ObjectId, import("mongoose").Types.ObjectId>>;
200
200
  createdAt: z.ZodEffects<z.ZodEffects<z.ZodDate, Date, Date>, Date, Date>;
201
201
  }, "strip", z.ZodTypeAny, {
202
- _id: import("mongoose").Types.ObjectId;
203
202
  createdAt: Date;
203
+ _id: import("mongoose").Types.ObjectId;
204
204
  sender: {
205
205
  type: UserRef;
206
206
  name: string;
@@ -221,12 +221,12 @@ export declare class ChatroomMessageSendSocketEvent extends BaseSocketEvent<type
221
221
  longitude?: number | undefined;
222
222
  } | undefined;
223
223
  orderId?: import("mongoose").Types.ObjectId | undefined;
224
- ticketId?: import("mongoose").Types.ObjectId | undefined;
225
224
  content?: string | undefined;
225
+ ticketId?: import("mongoose").Types.ObjectId | undefined;
226
226
  chatroomId?: import("mongoose").Types.ObjectId | undefined;
227
227
  }, {
228
- _id: import("mongoose").Types.ObjectId;
229
228
  createdAt: Date;
229
+ _id: import("mongoose").Types.ObjectId;
230
230
  sender: {
231
231
  type: UserRef;
232
232
  name: string;
@@ -247,8 +247,8 @@ export declare class ChatroomMessageSendSocketEvent extends BaseSocketEvent<type
247
247
  longitude?: number | undefined;
248
248
  } | undefined;
249
249
  orderId?: import("mongoose").Types.ObjectId | undefined;
250
- ticketId?: import("mongoose").Types.ObjectId | undefined;
251
250
  content?: string | undefined;
251
+ ticketId?: import("mongoose").Types.ObjectId | undefined;
252
252
  chatroomId?: import("mongoose").Types.ObjectId | undefined;
253
253
  }>;
254
254
  pushNotificationOutput: z.ZodObject<{
@@ -260,14 +260,14 @@ export declare class ChatroomMessageSendSocketEvent extends BaseSocketEvent<type
260
260
  }, "strip", z.ZodTypeAny, {
261
261
  type: ChatroomType;
262
262
  orderId?: import("mongoose").Types.ObjectId | undefined;
263
- ticketId?: import("mongoose").Types.ObjectId | undefined;
264
263
  lastMessage?: string | undefined;
264
+ ticketId?: import("mongoose").Types.ObjectId | undefined;
265
265
  chatroomId?: import("mongoose").Types.ObjectId | undefined;
266
266
  }, {
267
267
  type: ChatroomType;
268
268
  orderId?: import("mongoose").Types.ObjectId | undefined;
269
- ticketId?: import("mongoose").Types.ObjectId | undefined;
270
269
  lastMessage?: string | undefined;
270
+ ticketId?: import("mongoose").Types.ObjectId | undefined;
271
271
  chatroomId?: import("mongoose").Types.ObjectId | undefined;
272
272
  }>;
273
273
  };
@@ -278,8 +278,8 @@ export declare class ChatroomMessageSendSocketEvent extends BaseSocketEvent<type
278
278
  getPushNotificationPayload(): {
279
279
  type: ChatroomType;
280
280
  orderId?: import("mongoose").Types.ObjectId | undefined;
281
- ticketId?: import("mongoose").Types.ObjectId | undefined;
282
281
  lastMessage?: string | undefined;
282
+ ticketId?: import("mongoose").Types.ObjectId | undefined;
283
283
  chatroomId?: import("mongoose").Types.ObjectId | undefined;
284
284
  } | undefined;
285
285
  protected getIdentifier(): string;
@@ -39,108 +39,108 @@ export declare const OrderActionsOutputSchema: z.ZodObject<{
39
39
  riderTips: z.ZodNumber;
40
40
  secondaryRiderTips: z.ZodNumber;
41
41
  }, "strip", z.ZodTypeAny, {
42
- total: number;
43
42
  deliveryFee: number;
44
43
  secondaryDeliveryFee: number;
45
44
  riderTips: number;
46
45
  secondaryRiderTips: number;
46
+ total: number;
47
47
  secondaryTotal: number;
48
48
  paidAmount: number;
49
49
  secondaryPaidAmount: number;
50
50
  }, {
51
- total: number;
52
51
  deliveryFee: number;
53
52
  secondaryDeliveryFee: number;
54
53
  riderTips: number;
55
54
  secondaryRiderTips: number;
55
+ total: number;
56
56
  secondaryTotal: number;
57
57
  paidAmount: number;
58
58
  secondaryPaidAmount: number;
59
59
  }>;
60
60
  }, "strip", z.ZodTypeAny, {
61
- paymentMethod: PaymentMethod;
62
61
  pricing: {
63
- total: number;
64
62
  deliveryFee: number;
65
63
  secondaryDeliveryFee: number;
66
64
  riderTips: number;
67
65
  secondaryRiderTips: number;
66
+ total: number;
68
67
  secondaryTotal: number;
69
68
  paidAmount: number;
70
69
  secondaryPaidAmount: number;
71
70
  };
72
71
  shopProfit: number;
73
- }, {
74
72
  paymentMethod: PaymentMethod;
73
+ }, {
75
74
  pricing: {
76
- total: number;
77
75
  deliveryFee: number;
78
76
  secondaryDeliveryFee: number;
79
77
  riderTips: number;
80
78
  secondaryRiderTips: number;
79
+ total: number;
81
80
  secondaryTotal: number;
82
81
  paidAmount: number;
83
82
  secondaryPaidAmount: number;
84
83
  };
85
84
  shopProfit: number;
85
+ paymentMethod: PaymentMethod;
86
86
  }>;
87
87
  createdAt: z.ZodEffects<z.ZodEffects<z.ZodDate, Date, Date>, Date, Date>;
88
88
  triggerAt: z.ZodEffects<z.ZodEffects<z.ZodDate, Date, Date>, Date, Date>;
89
89
  orderActionType: z.ZodNativeEnum<typeof OrderAction>;
90
90
  }, "strip", z.ZodTypeAny, {
91
- _id: import("mongoose").Types.ObjectId;
92
- createdAt: Date;
93
91
  user: {
94
92
  _id: import("mongoose").Types.ObjectId;
95
93
  name: string;
96
94
  };
97
- orderId: string;
95
+ createdAt: Date;
96
+ _id: import("mongoose").Types.ObjectId;
98
97
  shopId: import("mongoose").Types.ObjectId;
99
- paymentMethod: PaymentMethod;
98
+ orderId: string;
100
99
  triggerAt: Date;
101
100
  adjustedFinance: {
102
- paymentMethod: PaymentMethod;
103
101
  pricing: {
104
- total: number;
105
102
  deliveryFee: number;
106
103
  secondaryDeliveryFee: number;
107
104
  riderTips: number;
108
105
  secondaryRiderTips: number;
106
+ total: number;
109
107
  secondaryTotal: number;
110
108
  paidAmount: number;
111
109
  secondaryPaidAmount: number;
112
110
  };
113
111
  shopProfit: number;
112
+ paymentMethod: PaymentMethod;
114
113
  };
114
+ paymentMethod: PaymentMethod;
115
115
  orderActionType: OrderAction;
116
116
  orderStatus: RegularOrderStatus;
117
117
  orderAction: OrderAction;
118
118
  preparationTimeMinutes: number;
119
119
  }, {
120
- _id: string | import("mongoose").Types.ObjectId;
121
- createdAt: Date;
122
120
  user: {
123
121
  _id: string | import("mongoose").Types.ObjectId;
124
122
  name: string;
125
123
  };
126
- orderId: string;
124
+ createdAt: Date;
125
+ _id: string | import("mongoose").Types.ObjectId;
127
126
  shopId: string | import("mongoose").Types.ObjectId;
128
- paymentMethod: PaymentMethod;
127
+ orderId: string;
129
128
  triggerAt: Date;
130
129
  adjustedFinance: {
131
- paymentMethod: PaymentMethod;
132
130
  pricing: {
133
- total: number;
134
131
  deliveryFee: number;
135
132
  secondaryDeliveryFee: number;
136
133
  riderTips: number;
137
134
  secondaryRiderTips: number;
135
+ total: number;
138
136
  secondaryTotal: number;
139
137
  paidAmount: number;
140
138
  secondaryPaidAmount: number;
141
139
  };
142
140
  shopProfit: number;
141
+ paymentMethod: PaymentMethod;
143
142
  };
143
+ paymentMethod: PaymentMethod;
144
144
  orderActionType: OrderAction;
145
145
  orderStatus: RegularOrderStatus;
146
146
  orderAction: OrderAction;
@@ -183,108 +183,108 @@ export declare class OrderActionsSocketEvent extends BaseSocketEvent<typeof Orde
183
183
  riderTips: z.ZodNumber;
184
184
  secondaryRiderTips: z.ZodNumber;
185
185
  }, "strip", z.ZodTypeAny, {
186
- total: number;
187
186
  deliveryFee: number;
188
187
  secondaryDeliveryFee: number;
189
188
  riderTips: number;
190
189
  secondaryRiderTips: number;
190
+ total: number;
191
191
  secondaryTotal: number;
192
192
  paidAmount: number;
193
193
  secondaryPaidAmount: number;
194
194
  }, {
195
- total: number;
196
195
  deliveryFee: number;
197
196
  secondaryDeliveryFee: number;
198
197
  riderTips: number;
199
198
  secondaryRiderTips: number;
199
+ total: number;
200
200
  secondaryTotal: number;
201
201
  paidAmount: number;
202
202
  secondaryPaidAmount: number;
203
203
  }>;
204
204
  }, "strip", z.ZodTypeAny, {
205
- paymentMethod: PaymentMethod;
206
205
  pricing: {
207
- total: number;
208
206
  deliveryFee: number;
209
207
  secondaryDeliveryFee: number;
210
208
  riderTips: number;
211
209
  secondaryRiderTips: number;
210
+ total: number;
212
211
  secondaryTotal: number;
213
212
  paidAmount: number;
214
213
  secondaryPaidAmount: number;
215
214
  };
216
215
  shopProfit: number;
217
- }, {
218
216
  paymentMethod: PaymentMethod;
217
+ }, {
219
218
  pricing: {
220
- total: number;
221
219
  deliveryFee: number;
222
220
  secondaryDeliveryFee: number;
223
221
  riderTips: number;
224
222
  secondaryRiderTips: number;
223
+ total: number;
225
224
  secondaryTotal: number;
226
225
  paidAmount: number;
227
226
  secondaryPaidAmount: number;
228
227
  };
229
228
  shopProfit: number;
229
+ paymentMethod: PaymentMethod;
230
230
  }>;
231
231
  createdAt: z.ZodEffects<z.ZodEffects<z.ZodDate, Date, Date>, Date, Date>;
232
232
  triggerAt: z.ZodEffects<z.ZodEffects<z.ZodDate, Date, Date>, Date, Date>;
233
233
  orderActionType: z.ZodNativeEnum<typeof OrderAction>;
234
234
  }, "strip", z.ZodTypeAny, {
235
- _id: import("mongoose").Types.ObjectId;
236
- createdAt: Date;
237
235
  user: {
238
236
  _id: import("mongoose").Types.ObjectId;
239
237
  name: string;
240
238
  };
241
- orderId: string;
239
+ createdAt: Date;
240
+ _id: import("mongoose").Types.ObjectId;
242
241
  shopId: import("mongoose").Types.ObjectId;
243
- paymentMethod: PaymentMethod;
242
+ orderId: string;
244
243
  triggerAt: Date;
245
244
  adjustedFinance: {
246
- paymentMethod: PaymentMethod;
247
245
  pricing: {
248
- total: number;
249
246
  deliveryFee: number;
250
247
  secondaryDeliveryFee: number;
251
248
  riderTips: number;
252
249
  secondaryRiderTips: number;
250
+ total: number;
253
251
  secondaryTotal: number;
254
252
  paidAmount: number;
255
253
  secondaryPaidAmount: number;
256
254
  };
257
255
  shopProfit: number;
256
+ paymentMethod: PaymentMethod;
258
257
  };
258
+ paymentMethod: PaymentMethod;
259
259
  orderActionType: OrderAction;
260
260
  orderStatus: RegularOrderStatus;
261
261
  orderAction: OrderAction;
262
262
  preparationTimeMinutes: number;
263
263
  }, {
264
- _id: string | import("mongoose").Types.ObjectId;
265
- createdAt: Date;
266
264
  user: {
267
265
  _id: string | import("mongoose").Types.ObjectId;
268
266
  name: string;
269
267
  };
270
- orderId: string;
268
+ createdAt: Date;
269
+ _id: string | import("mongoose").Types.ObjectId;
271
270
  shopId: string | import("mongoose").Types.ObjectId;
272
- paymentMethod: PaymentMethod;
271
+ orderId: string;
273
272
  triggerAt: Date;
274
273
  adjustedFinance: {
275
- paymentMethod: PaymentMethod;
276
274
  pricing: {
277
- total: number;
278
275
  deliveryFee: number;
279
276
  secondaryDeliveryFee: number;
280
277
  riderTips: number;
281
278
  secondaryRiderTips: number;
279
+ total: number;
282
280
  secondaryTotal: number;
283
281
  paidAmount: number;
284
282
  secondaryPaidAmount: number;
285
283
  };
286
284
  shopProfit: number;
285
+ paymentMethod: PaymentMethod;
287
286
  };
287
+ paymentMethod: PaymentMethod;
288
288
  orderActionType: OrderAction;
289
289
  orderStatus: RegularOrderStatus;
290
290
  orderAction: OrderAction;
@@ -19,18 +19,18 @@ export declare const RiderLocationUpdateSocketOutputSchema: z.ZodObject<{
19
19
  bearing: z.ZodOptional<z.ZodNumber>;
20
20
  updatedAt: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
21
21
  }, "strip", z.ZodTypeAny, {
22
- _id: import("mongoose").Types.ObjectId;
23
22
  updatedAt: Date;
23
+ _id: import("mongoose").Types.ObjectId;
24
+ riderId: import("mongoose").Types.ObjectId;
24
25
  latitude: number;
25
26
  longitude: number;
26
- riderId: import("mongoose").Types.ObjectId;
27
27
  bearing?: number | undefined;
28
28
  }, {
29
- _id: string | import("mongoose").Types.ObjectId;
30
29
  updatedAt: string | Date;
30
+ _id: string | import("mongoose").Types.ObjectId;
31
+ riderId: string | import("mongoose").Types.ObjectId;
31
32
  latitude: number;
32
33
  longitude: number;
33
- riderId: string | import("mongoose").Types.ObjectId;
34
34
  bearing?: number | undefined;
35
35
  }>;
36
36
  export type RiderLocationUpdateSocketInputDTO = DTO<typeof RiderLocationUpdateSocketInputSchema>;
@@ -55,18 +55,18 @@ export declare class RiderLocationUpdateSocketEvent extends BaseSocketEvent<type
55
55
  bearing: z.ZodOptional<z.ZodNumber>;
56
56
  updatedAt: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
57
57
  }, "strip", z.ZodTypeAny, {
58
- _id: import("mongoose").Types.ObjectId;
59
58
  updatedAt: Date;
59
+ _id: import("mongoose").Types.ObjectId;
60
+ riderId: import("mongoose").Types.ObjectId;
60
61
  latitude: number;
61
62
  longitude: number;
62
- riderId: import("mongoose").Types.ObjectId;
63
63
  bearing?: number | undefined;
64
64
  }, {
65
- _id: string | import("mongoose").Types.ObjectId;
66
65
  updatedAt: string | Date;
66
+ _id: string | import("mongoose").Types.ObjectId;
67
+ riderId: string | import("mongoose").Types.ObjectId;
67
68
  latitude: number;
68
69
  longitude: number;
69
- riderId: string | import("mongoose").Types.ObjectId;
70
70
  bearing?: number | undefined;
71
71
  }>;
72
72
  };
@@ -12,19 +12,19 @@ export declare const TicketActionsSocketOutputSchema: z.ZodObject<{
12
12
  title: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
13
13
  silent: z.ZodOptional<z.ZodBoolean>;
14
14
  }, "strip", z.ZodTypeAny, {
15
- status: TicketStatus;
16
15
  type: TicketType;
17
16
  _id: import("mongoose").Types.ObjectId;
18
- silent?: boolean | undefined;
17
+ status: TicketStatus;
19
18
  title?: string | undefined;
20
19
  content?: string | undefined;
20
+ silent?: boolean | undefined;
21
21
  }, {
22
- status: TicketStatus;
23
22
  type: TicketType;
24
23
  _id: import("mongoose").Types.ObjectId;
25
- silent?: boolean | undefined;
24
+ status: TicketStatus;
26
25
  title?: string | undefined;
27
26
  content?: string | undefined;
27
+ silent?: boolean | undefined;
28
28
  }>;
29
29
  export declare const TicketActionsPushOutputSchema: z.ZodObject<{
30
30
  ticketId: z.ZodEffects<z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>, import("mongoose").Types.ObjectId, import("mongoose").Types.ObjectId>;
@@ -33,14 +33,14 @@ export declare const TicketActionsPushOutputSchema: z.ZodObject<{
33
33
  content: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
34
34
  title: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
35
35
  }, "strip", z.ZodTypeAny, {
36
- status: TicketStatus;
37
36
  type: TicketType;
37
+ status: TicketStatus;
38
38
  ticketId: import("mongoose").Types.ObjectId;
39
39
  title?: string | undefined;
40
40
  content?: string | undefined;
41
41
  }, {
42
- status: TicketStatus;
43
42
  type: TicketType;
43
+ status: TicketStatus;
44
44
  ticketId: import("mongoose").Types.ObjectId;
45
45
  title?: string | undefined;
46
46
  content?: string | undefined;
@@ -59,19 +59,19 @@ export declare class TicketActionsSocketEvent extends BaseSocketEvent<typeof Tic
59
59
  title: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
60
60
  silent: z.ZodOptional<z.ZodBoolean>;
61
61
  }, "strip", z.ZodTypeAny, {
62
- status: TicketStatus;
63
62
  type: TicketType;
64
63
  _id: import("mongoose").Types.ObjectId;
65
- silent?: boolean | undefined;
64
+ status: TicketStatus;
66
65
  title?: string | undefined;
67
66
  content?: string | undefined;
67
+ silent?: boolean | undefined;
68
68
  }, {
69
- status: TicketStatus;
70
69
  type: TicketType;
71
70
  _id: import("mongoose").Types.ObjectId;
72
- silent?: boolean | undefined;
71
+ status: TicketStatus;
73
72
  title?: string | undefined;
74
73
  content?: string | undefined;
74
+ silent?: boolean | undefined;
75
75
  }>;
76
76
  pushNotificationOutput: z.ZodObject<{
77
77
  ticketId: z.ZodEffects<z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>, import("mongoose").Types.ObjectId, import("mongoose").Types.ObjectId>;
@@ -80,14 +80,14 @@ export declare class TicketActionsSocketEvent extends BaseSocketEvent<typeof Tic
80
80
  content: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
81
81
  title: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
82
82
  }, "strip", z.ZodTypeAny, {
83
- status: TicketStatus;
84
83
  type: TicketType;
84
+ status: TicketStatus;
85
85
  ticketId: import("mongoose").Types.ObjectId;
86
86
  title?: string | undefined;
87
87
  content?: string | undefined;
88
88
  }, {
89
- status: TicketStatus;
90
89
  type: TicketType;
90
+ status: TicketStatus;
91
91
  ticketId: import("mongoose").Types.ObjectId;
92
92
  title?: string | undefined;
93
93
  content?: string | undefined;
@@ -96,8 +96,8 @@ export declare class TicketActionsSocketEvent extends BaseSocketEvent<typeof Tic
96
96
  get notificationSettings(): NotificationSettings | undefined;
97
97
  constructor(payload: TicketActionsSocketOutputDTO);
98
98
  getPushNotificationPayload(): {
99
- status: TicketStatus;
100
99
  type: TicketType;
100
+ status: TicketStatus;
101
101
  ticketId: import("mongoose").Types.ObjectId;
102
102
  title?: string | undefined;
103
103
  content?: string | undefined;
@@ -39,11 +39,11 @@ export declare const TicketAssignSocketOutputSchema: z.ZodObject<{
39
39
  }>;
40
40
  unreadCount: z.ZodNumber;
41
41
  }, "strip", z.ZodTypeAny, {
42
- status: TicketStatus;
43
42
  type: TicketType;
44
- _id: import("mongoose").Types.ObjectId;
45
43
  createdAt: Date;
46
44
  updatedAt: Date;
45
+ _id: import("mongoose").Types.ObjectId;
46
+ status: TicketStatus;
47
47
  lastMessage: {
48
48
  createdAt: Date;
49
49
  content: string;
@@ -58,11 +58,11 @@ export declare const TicketAssignSocketOutputSchema: z.ZodObject<{
58
58
  chatroomId: import("mongoose").Types.ObjectId;
59
59
  orderId?: import("mongoose").Types.ObjectId | undefined;
60
60
  }, {
61
- status: TicketStatus;
62
61
  type: TicketType;
63
- _id: string | import("mongoose").Types.ObjectId;
64
62
  createdAt: string | Date;
65
63
  updatedAt: string | Date;
64
+ _id: string | import("mongoose").Types.ObjectId;
65
+ status: TicketStatus;
66
66
  lastMessage: {
67
67
  createdAt: string | Date;
68
68
  content: string;
@@ -117,11 +117,11 @@ export declare class TicketAssignEvent extends BaseSocketEvent<typeof TicketAssi
117
117
  }>;
118
118
  unreadCount: z.ZodNumber;
119
119
  }, "strip", z.ZodTypeAny, {
120
- status: TicketStatus;
121
120
  type: TicketType;
122
- _id: import("mongoose").Types.ObjectId;
123
121
  createdAt: Date;
124
122
  updatedAt: Date;
123
+ _id: import("mongoose").Types.ObjectId;
124
+ status: TicketStatus;
125
125
  lastMessage: {
126
126
  createdAt: Date;
127
127
  content: string;
@@ -136,11 +136,11 @@ export declare class TicketAssignEvent extends BaseSocketEvent<typeof TicketAssi
136
136
  chatroomId: import("mongoose").Types.ObjectId;
137
137
  orderId?: import("mongoose").Types.ObjectId | undefined;
138
138
  }, {
139
- status: TicketStatus;
140
139
  type: TicketType;
141
- _id: string | import("mongoose").Types.ObjectId;
142
140
  createdAt: string | Date;
143
141
  updatedAt: string | Date;
142
+ _id: string | import("mongoose").Types.ObjectId;
143
+ status: TicketStatus;
144
144
  lastMessage: {
145
145
  createdAt: string | Date;
146
146
  content: string;
@@ -22,7 +22,7 @@ Perfect for sharing types between frontend and backend applications.
22
22
 
23
23
  ## Version
24
24
 
25
- Version: 1.4.300
25
+ Version: 1.4.301
26
26
 
27
27
  ## Dependencies
28
28
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lyxa.ai/types",
3
- "version": "1.4.300",
3
+ "version": "1.4.301",
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",
@@ -22,7 +22,6 @@ export declare function createPaginatedSchema<ItemType extends z.ZodTypeAny>(ite
22
22
  }, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodBoolean]>, z.ZodNull]>, z.ZodUndefined]>, "strip">>;
23
23
  items: z.ZodArray<ItemType, "many">;
24
24
  }, "strip", z.ZodTypeAny, {
25
- items: ItemType["_output"][];
26
25
  metadata: {
27
26
  size: number;
28
27
  page: number;
@@ -31,8 +30,8 @@ export declare function createPaginatedSchema<ItemType extends z.ZodTypeAny>(ite
31
30
  } & {
32
31
  [k: string]: string | number | boolean | null | undefined;
33
32
  };
33
+ items: ItemType["_output"][];
34
34
  }, {
35
- items: ItemType["_input"][];
36
35
  metadata: {
37
36
  size: number;
38
37
  page: number;
@@ -41,6 +40,7 @@ export declare function createPaginatedSchema<ItemType extends z.ZodTypeAny>(ite
41
40
  } & {
42
41
  [k: string]: string | number | boolean | null | undefined;
43
42
  };
43
+ items: ItemType["_input"][];
44
44
  }>;
45
45
  export interface RawPaginatedResult<T extends AnyParamConstructor<any>> {
46
46
  metadata: {
@@ -62,7 +62,6 @@ export interface PaginatorOptions<TClass extends AnyParamConstructor<any>> {
62
62
  }
63
63
  export declare function createRawDocumentPaginatorObject<T extends AnyParamConstructor<any>>(model: ReturnModelType<T>): (options: PaginatorOptions<T>) => Promise<RawPaginatedResult<T>>;
64
64
  export declare function createPaginatorObject<T extends AnyParamConstructor<any>>(model: ReturnModelType<T>, itemSchema: z.ZodTypeAny, transformFn?: (doc: DocumentType<T>) => z.infer<typeof itemSchema>): (options: PaginatorOptions<T>) => Promise<{
65
- items: any[];
66
65
  metadata: {
67
66
  size: number;
68
67
  page: number;
@@ -71,6 +70,7 @@ export declare function createPaginatorObject<T extends AnyParamConstructor<any>
71
70
  } & {
72
71
  [k: string]: string | number | boolean | null | undefined;
73
72
  };
73
+ items: any[];
74
74
  }>;
75
75
  export declare function paginateAggregation(model: any, pipeline: any[], page?: number, size?: number, sort?: any, populateOptions?: any): Promise<{
76
76
  metadata: {
@@ -26,8 +26,8 @@ export declare const FilterSchema: z.ZodOptional<z.ZodObject<{
26
26
  searchKey: string;
27
27
  searchFields?: string[] | undefined;
28
28
  } | undefined;
29
- select?: Record<string, 0 | 1> | undefined;
30
29
  populate?: any;
30
+ select?: Record<string, 0 | 1> | undefined;
31
31
  query?: Record<string, any> | undefined;
32
32
  }, {
33
33
  sort?: Record<string, 1 | -1> | undefined;
@@ -35,11 +35,11 @@ export declare const FilterSchema: z.ZodOptional<z.ZodObject<{
35
35
  searchKey: string;
36
36
  searchFields?: string[] | undefined;
37
37
  } | undefined;
38
- select?: Record<string, 0 | 1> | undefined;
39
38
  populate?: any;
39
+ select?: Record<string, 0 | 1> | undefined;
40
+ query?: Record<string, any> | undefined;
40
41
  size?: number | undefined;
41
42
  page?: number | undefined;
42
- query?: Record<string, any> | undefined;
43
43
  }>>;
44
44
  export type FilterDTO = z.infer<typeof FilterSchema>;
45
45
  export declare const StringSchema: z.ZodString;
@@ -64,30 +64,30 @@ export declare const AddressSchema: z.ZodObject<{
64
64
  zone: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
65
65
  }, "strip", z.ZodTypeAny, {
66
66
  address: string;
67
- country: string;
68
67
  location: {
69
68
  type: GeoLocationType;
70
69
  coordinates: [number, number];
71
70
  };
71
+ country: string;
72
72
  latitude: number;
73
73
  longitude: number;
74
+ zone?: import("mongoose").Types.ObjectId | undefined;
74
75
  description?: string | undefined;
75
76
  city?: string | undefined;
76
77
  state?: string | undefined;
77
- zone?: import("mongoose").Types.ObjectId | undefined;
78
78
  }, {
79
79
  address: string;
80
- country: string;
81
80
  location: {
82
81
  coordinates: [number, number];
83
82
  type?: GeoLocationType | undefined;
84
83
  };
84
+ country: string;
85
85
  latitude: number;
86
86
  longitude: number;
87
+ zone?: string | import("mongoose").Types.ObjectId | undefined;
87
88
  description?: string | undefined;
88
89
  city?: string | undefined;
89
90
  state?: string | undefined;
90
- zone?: string | import("mongoose").Types.ObjectId | undefined;
91
91
  }>;
92
92
  export type AddressDTO = DTO<typeof AddressSchema>;
93
93
  export declare const UserAddressSchema: z.ZodObject<{
@@ -117,38 +117,38 @@ export declare const UserAddressSchema: z.ZodObject<{
117
117
  instructions: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
118
118
  }, "strip", z.ZodTypeAny, {
119
119
  address: string;
120
- country: string;
121
120
  location: {
122
121
  type: GeoLocationType;
123
122
  coordinates: [number, number];
124
123
  };
124
+ country: string;
125
125
  latitude: number;
126
126
  longitude: number;
127
127
  addressLabel: string;
128
128
  apartment: string;
129
129
  buildingName: string;
130
+ zone?: import("mongoose").Types.ObjectId | undefined;
130
131
  description?: string | undefined;
131
132
  city?: string | undefined;
132
133
  state?: string | undefined;
133
- zone?: import("mongoose").Types.ObjectId | undefined;
134
134
  deliveryOption?: string | undefined;
135
135
  instructions?: string | undefined;
136
136
  }, {
137
137
  address: string;
138
- country: string;
139
138
  location: {
140
139
  coordinates: [number, number];
141
140
  type?: GeoLocationType | undefined;
142
141
  };
142
+ country: string;
143
143
  latitude: number;
144
144
  longitude: number;
145
145
  addressLabel: string;
146
146
  apartment: string;
147
147
  buildingName: string;
148
+ zone?: string | import("mongoose").Types.ObjectId | undefined;
148
149
  description?: string | undefined;
149
150
  city?: string | undefined;
150
151
  state?: string | undefined;
151
- zone?: string | import("mongoose").Types.ObjectId | undefined;
152
152
  deliveryOption?: string | undefined;
153
153
  instructions?: string | undefined;
154
154
  }>;
@@ -183,39 +183,39 @@ export declare const RegularOrderAddressSchema: z.ZodObject<{
183
183
  }, "strip", z.ZodTypeAny, {
184
184
  _id: import("mongoose").Types.ObjectId;
185
185
  address: string;
186
- country: string;
187
186
  location: {
188
187
  type: GeoLocationType;
189
188
  coordinates: [number, number];
190
189
  };
190
+ country: string;
191
191
  latitude: number;
192
192
  longitude: number;
193
193
  addressLabel: string;
194
194
  apartment: string;
195
195
  buildingName: string;
196
+ zone?: import("mongoose").Types.ObjectId | undefined;
196
197
  description?: string | undefined;
197
198
  city?: string | undefined;
198
199
  state?: string | undefined;
199
- zone?: import("mongoose").Types.ObjectId | undefined;
200
200
  deliveryOption?: string | undefined;
201
201
  instructions?: string | undefined;
202
202
  }, {
203
203
  _id: string | import("mongoose").Types.ObjectId;
204
204
  address: string;
205
- country: string;
206
205
  location: {
207
206
  coordinates: [number, number];
208
207
  type?: GeoLocationType | undefined;
209
208
  };
209
+ country: string;
210
210
  latitude: number;
211
211
  longitude: number;
212
212
  addressLabel: string;
213
213
  apartment: string;
214
214
  buildingName: string;
215
+ zone?: string | import("mongoose").Types.ObjectId | undefined;
215
216
  description?: string | undefined;
216
217
  city?: string | undefined;
217
218
  state?: string | undefined;
218
- zone?: string | import("mongoose").Types.ObjectId | undefined;
219
219
  deliveryOption?: string | undefined;
220
220
  instructions?: string | undefined;
221
221
  }>;
@@ -248,41 +248,41 @@ export declare const CourierAddressSchema: z.ZodObject<{
248
248
  apartment: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
249
249
  buildingName: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
250
250
  }, "strip", z.ZodTypeAny, {
251
+ name: string;
251
252
  address: string;
252
- country: string;
253
253
  location: {
254
254
  type: GeoLocationType;
255
255
  coordinates: [number, number];
256
256
  };
257
+ phoneNumber: string;
258
+ country: string;
257
259
  latitude: number;
258
260
  longitude: number;
259
261
  addressLabel: string;
260
- name: string;
261
- phoneNumber: string;
262
+ zone?: import("mongoose").Types.ObjectId | undefined;
262
263
  description?: string | undefined;
263
264
  city?: string | undefined;
264
265
  state?: string | undefined;
265
- zone?: import("mongoose").Types.ObjectId | undefined;
266
266
  apartment?: string | undefined;
267
267
  buildingName?: string | undefined;
268
268
  deliveryOption?: string | undefined;
269
269
  instructions?: string | undefined;
270
270
  }, {
271
+ name: string;
271
272
  address: string;
272
- country: string;
273
273
  location: {
274
274
  coordinates: [number, number];
275
275
  type?: GeoLocationType | undefined;
276
276
  };
277
+ phoneNumber: string;
278
+ country: string;
277
279
  latitude: number;
278
280
  longitude: number;
279
281
  addressLabel: string;
280
- name: string;
281
- phoneNumber: string;
282
+ zone?: string | import("mongoose").Types.ObjectId | undefined;
282
283
  description?: string | undefined;
283
284
  city?: string | undefined;
284
285
  state?: string | undefined;
285
- zone?: string | import("mongoose").Types.ObjectId | undefined;
286
286
  apartment?: string | undefined;
287
287
  buildingName?: string | undefined;
288
288
  deliveryOption?: string | undefined;
@@ -306,43 +306,43 @@ export declare const NormalHourSchema: z.ZodObject<{
306
306
  start: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
307
307
  end: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
308
308
  }, "strip", z.ZodTypeAny, {
309
- start: string;
310
309
  end: string;
311
- }, {
312
310
  start: string;
311
+ }, {
313
312
  end: string;
314
- }>, {
315
313
  start: string;
314
+ }>, {
316
315
  end: string;
317
- }, {
318
316
  start: string;
317
+ }, {
319
318
  end: string;
320
- }>, {
321
319
  start: string;
320
+ }>, {
322
321
  end: string;
323
- }, {
324
322
  start: string;
323
+ }, {
325
324
  end: string;
326
- }>, "many">>, {
327
325
  start: string;
326
+ }>, "many">>, {
328
327
  end: string;
329
- }[], {
330
328
  start: string;
329
+ }[], {
331
330
  end: string;
331
+ start: string;
332
332
  }[] | undefined>;
333
333
  }, "strip", z.ZodTypeAny, {
334
334
  status: WorkStatus;
335
335
  day: WeekDay;
336
336
  openingHours: {
337
- start: string;
338
337
  end: string;
338
+ start: string;
339
339
  }[];
340
340
  }, {
341
341
  status: WorkStatus;
342
342
  day: WeekDay;
343
343
  openingHours?: {
344
- start: string;
345
344
  end: string;
345
+ start: string;
346
346
  }[] | undefined;
347
347
  }>;
348
348
  export declare const HolidayHourSchema: z.ZodObject<{
@@ -352,37 +352,37 @@ export declare const HolidayHourSchema: z.ZodObject<{
352
352
  start: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
353
353
  end: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
354
354
  }, "strip", z.ZodTypeAny, {
355
- start: string;
356
355
  end: string;
357
- }, {
358
356
  start: string;
357
+ }, {
359
358
  end: string;
360
- }>, {
361
359
  start: string;
360
+ }>, {
362
361
  end: string;
363
- }, {
364
362
  start: string;
363
+ }, {
365
364
  end: string;
366
- }>, {
367
365
  start: string;
366
+ }>, {
368
367
  end: string;
369
- }, {
370
368
  start: string;
369
+ }, {
371
370
  end: string;
371
+ start: string;
372
372
  }>;
373
373
  }, "strip", z.ZodTypeAny, {
374
374
  status: HolidayWorkStatus;
375
375
  date: Date;
376
376
  closingHour: {
377
- start: string;
378
377
  end: string;
378
+ start: string;
379
379
  };
380
380
  }, {
381
381
  status: HolidayWorkStatus;
382
382
  date: string | Date;
383
383
  closingHour: {
384
- start: string;
385
384
  end: string;
385
+ start: string;
386
386
  };
387
387
  }>;
388
388
  export declare const WorkHourSettingSchema: z.ZodObject<{
@@ -393,43 +393,43 @@ export declare const WorkHourSettingSchema: z.ZodObject<{
393
393
  start: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
394
394
  end: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
395
395
  }, "strip", z.ZodTypeAny, {
396
- start: string;
397
396
  end: string;
398
- }, {
399
397
  start: string;
398
+ }, {
400
399
  end: string;
401
- }>, {
402
400
  start: string;
401
+ }>, {
403
402
  end: string;
404
- }, {
405
403
  start: string;
404
+ }, {
406
405
  end: string;
407
- }>, {
408
406
  start: string;
407
+ }>, {
409
408
  end: string;
410
- }, {
411
409
  start: string;
410
+ }, {
412
411
  end: string;
413
- }>, "many">>, {
414
412
  start: string;
413
+ }>, "many">>, {
415
414
  end: string;
416
- }[], {
417
415
  start: string;
416
+ }[], {
418
417
  end: string;
418
+ start: string;
419
419
  }[] | undefined>;
420
420
  }, "strip", z.ZodTypeAny, {
421
421
  status: WorkStatus;
422
422
  day: WeekDay;
423
423
  openingHours: {
424
- start: string;
425
424
  end: string;
425
+ start: string;
426
426
  }[];
427
427
  }, {
428
428
  status: WorkStatus;
429
429
  day: WeekDay;
430
430
  openingHours?: {
431
- start: string;
432
431
  end: string;
432
+ start: string;
433
433
  }[] | undefined;
434
434
  }>, "many">>;
435
435
  holidayHours: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -439,37 +439,37 @@ export declare const WorkHourSettingSchema: z.ZodObject<{
439
439
  start: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
440
440
  end: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
441
441
  }, "strip", z.ZodTypeAny, {
442
- start: string;
443
442
  end: string;
444
- }, {
445
443
  start: string;
444
+ }, {
446
445
  end: string;
447
- }>, {
448
446
  start: string;
447
+ }>, {
449
448
  end: string;
450
- }, {
451
449
  start: string;
450
+ }, {
452
451
  end: string;
453
- }>, {
454
452
  start: string;
453
+ }>, {
455
454
  end: string;
456
- }, {
457
455
  start: string;
456
+ }, {
458
457
  end: string;
458
+ start: string;
459
459
  }>;
460
460
  }, "strip", z.ZodTypeAny, {
461
461
  status: HolidayWorkStatus;
462
462
  date: Date;
463
463
  closingHour: {
464
- start: string;
465
464
  end: string;
465
+ start: string;
466
466
  };
467
467
  }, {
468
468
  status: HolidayWorkStatus;
469
469
  date: string | Date;
470
470
  closingHour: {
471
- start: string;
472
471
  end: string;
472
+ start: string;
473
473
  };
474
474
  }>, "many">>;
475
475
  }, "strip", z.ZodTypeAny, {
@@ -477,16 +477,16 @@ export declare const WorkHourSettingSchema: z.ZodObject<{
477
477
  status: WorkStatus;
478
478
  day: WeekDay;
479
479
  openingHours: {
480
- start: string;
481
480
  end: string;
481
+ start: string;
482
482
  }[];
483
483
  }[];
484
484
  holidayHours: {
485
485
  status: HolidayWorkStatus;
486
486
  date: Date;
487
487
  closingHour: {
488
- start: string;
489
488
  end: string;
489
+ start: string;
490
490
  };
491
491
  }[];
492
492
  }, {
@@ -494,16 +494,16 @@ export declare const WorkHourSettingSchema: z.ZodObject<{
494
494
  status: WorkStatus;
495
495
  day: WeekDay;
496
496
  openingHours?: {
497
- start: string;
498
497
  end: string;
498
+ start: string;
499
499
  }[] | undefined;
500
500
  }[] | undefined;
501
501
  holidayHours?: {
502
502
  status: HolidayWorkStatus;
503
503
  date: string | Date;
504
504
  closingHour: {
505
- start: string;
506
505
  end: string;
506
+ start: string;
507
507
  };
508
508
  }[] | undefined;
509
509
  }>;
@@ -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
- select?: Record<string, 0 | 1> | undefined;
740
739
  populate?: any;
740
+ select?: Record<string, 0 | 1> | undefined;
741
741
  }, {
742
742
  _id: string | import("mongoose").Types.ObjectId;
743
- select?: Record<string, 0 | 1> | undefined;
744
743
  populate?: any;
744
+ select?: Record<string, 0 | 1> | undefined;
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
- select?: Record<string, 0 | 1> | undefined;
758
757
  populate?: any;
758
+ select?: Record<string, 0 | 1> | undefined;
759
759
  }, {
760
760
  _id: string | import("mongoose").Types.ObjectId;
761
- select?: Record<string, 0 | 1> | undefined;
762
761
  populate?: any;
762
+ select?: Record<string, 0 | 1> | undefined;
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
- select?: Record<string, 0 | 1> | undefined;
777
776
  populate?: any;
777
+ select?: Record<string, 0 | 1> | undefined;
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
- select?: Record<string, 0 | 1> | undefined;
784
783
  populate?: any;
784
+ select?: Record<string, 0 | 1> | undefined;
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
- select?: Record<string, 0 | 1> | undefined;
795
794
  populate?: any;
796
- }, {
797
795
  select?: Record<string, 0 | 1> | undefined;
796
+ }, {
798
797
  populate?: any;
798
+ select?: Record<string, 0 | 1> | undefined;
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
- select?: Record<string, 0 | 1> | undefined;
807
806
  populate?: any;
807
+ select?: Record<string, 0 | 1> | undefined;
808
808
  query?: Record<string, any> | undefined;
809
809
  }, {
810
- select?: Record<string, 0 | 1> | undefined;
811
810
  populate?: any;
811
+ select?: Record<string, 0 | 1> | undefined;
812
812
  query?: Record<string, any> | undefined;
813
813
  }>;
814
814
  export type GetOneQueryDTO = DTO<typeof GetOneQuerySchema>;
@@ -954,13 +954,13 @@ export declare const PaymentInformationSchema: z.ZodObject<{
954
954
  transactionId: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
955
955
  }, "strip", z.ZodTypeAny, {
956
956
  cardType: CardType;
957
- paymentIntentId?: string | undefined;
958
957
  orderId?: string | undefined;
958
+ paymentIntentId?: string | undefined;
959
959
  transactionId?: string | undefined;
960
960
  }, {
961
- cardType?: CardType | undefined;
962
- paymentIntentId?: string | undefined;
963
961
  orderId?: string | undefined;
962
+ paymentIntentId?: string | undefined;
963
+ cardType?: CardType | undefined;
964
964
  transactionId?: string | undefined;
965
965
  }>;
966
966
  export type PaymentInformationDTO = DTO<typeof PaymentInformationSchema>;
@@ -983,13 +983,13 @@ export declare const CashBackAmountSchema: z.ZodObject<{
983
983
  amount: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
984
984
  secondaryAmount: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
985
985
  }, "strip", z.ZodTypeAny, {
986
- cashbackRate?: number | undefined;
987
986
  amount?: number | undefined;
988
987
  secondaryAmount?: number | undefined;
989
- }, {
990
988
  cashbackRate?: number | undefined;
989
+ }, {
991
990
  amount?: number | undefined;
992
991
  secondaryAmount?: number | undefined;
992
+ cashbackRate?: number | undefined;
993
993
  }>;
994
994
  export type CashBackAmountDTO = DTO<typeof CashBackAmountSchema>;
995
995
  export declare const PaymentRecordSchema: z.ZodObject<{
@@ -1004,18 +1004,18 @@ export declare const PaymentRecordSchema: z.ZodObject<{
1004
1004
  amount: number;
1005
1005
  provider: PaymentProvider;
1006
1006
  authorizedAmount: number;
1007
- paymentIntentId?: string | null | undefined;
1008
1007
  orderId?: string | null | undefined;
1009
- transactionId?: string | null | undefined;
1008
+ paymentIntentId?: string | null | undefined;
1010
1009
  externalId?: number | null | undefined;
1010
+ transactionId?: string | null | undefined;
1011
1011
  }, {
1012
1012
  amount: number;
1013
1013
  provider: PaymentProvider;
1014
1014
  authorizedAmount: number;
1015
- paymentIntentId?: string | null | undefined;
1016
1015
  orderId?: string | null | undefined;
1017
- transactionId?: string | null | undefined;
1016
+ paymentIntentId?: string | null | undefined;
1018
1017
  externalId?: number | null | undefined;
1018
+ transactionId?: string | null | undefined;
1019
1019
  }>;
1020
1020
  export type PaymentRecordDTO = DTO<typeof PaymentRecordSchema>;
1021
1021
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lyxa.ai/core",
3
- "version": "1.4.300",
3
+ "version": "1.4.301",
4
4
  "description": "The Core system of the Lyxa services.",
5
5
  "author": "elie <42282499+Internalizable@users.noreply.github.com>",
6
6
  "license": "MIT",