@lyxa.ai/core 1.4.176 → 1.4.178

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.
@@ -46,4 +46,5 @@ export declare class Setting extends TimeStamps {
46
46
  riderAppForceUpdate?: AppForceUpdate;
47
47
  enableFlags: Map<string, any>;
48
48
  companyInfo?: CompanyInfo;
49
+ showAreebaDefaultOtpPage?: boolean;
49
50
  }
@@ -59,6 +59,7 @@ let Setting = class Setting extends defaultClasses_1.TimeStamps {
59
59
  riderAppForceUpdate;
60
60
  enableFlags;
61
61
  companyInfo;
62
+ showAreebaDefaultOtpPage;
62
63
  };
63
64
  exports.Setting = Setting;
64
65
  __decorate([
@@ -185,6 +186,10 @@ __decorate([
185
186
  (0, typegoose_1.prop)({ type: company_info_model_1.CompanyInfo }),
186
187
  __metadata("design:type", company_info_model_1.CompanyInfo)
187
188
  ], Setting.prototype, "companyInfo", void 0);
189
+ __decorate([
190
+ (0, typegoose_1.prop)({ type: Boolean, default: false }),
191
+ __metadata("design:type", Boolean)
192
+ ], Setting.prototype, "showAreebaDefaultOtpPage", void 0);
188
193
  exports.Setting = Setting = __decorate([
189
194
  (0, typegoose_1.modelOptions)({ schemaOptions: { collection: 'settings' } })
190
195
  ], Setting);
@@ -1 +1 @@
1
- {"version":3,"file":"setting.model.js","sourceRoot":"/","sources":["libraries/mongo/models/setting.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA0D;AAC1D,8DAA2D;AAC3D,sEAA4D;AAC5D,kEAA6D;AAC7D,wEAA8D;AAC9D,wEAA8D;AAC9D,0EAAgE;AAChE,4EAAkE;AAClE,8EAAoE;AACpE,4EAAqE;AACrE,wEAAsE;AACtE,oFAAyE;AACzE,4FAA0E;AAC1E,kDAA0E;AAC1E,8FAA4E;AAC5E,kGAAuF;AACvF,sGAA2F;AAC3F,8FAA2F;AAGpF,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,2BAAU;IAE/B,eA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GAAG,EAAE;KACxB,CAAC;8BACmB,GAAG;4CAAc;AAG/B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,gCAAW,EAAE,CAAC;8BACP,gCAAW;4CAAC;kBA7FrB,OAAO;IADnB,IAAA,wBAAY,EAAC,EAAE,aAAa,EAAE,EAAE,UAAU,EAAE,UAAU,EAAE,EAAE,CAAC;GAC/C,OAAO,CA8FnB","sourcesContent":["import { modelOptions, prop } from '@typegoose/typegoose';\nimport { WorkHourSetting } from './shared/work-hour.model';\nimport { CompanyInfo } from './embedded/company-info.model';\nimport { AppForceUpdate } from './embedded/app-force-update';\nimport { PlusSettings } from './embedded/plus-settings.model';\nimport { RiderSetting } from './embedded/rider-setting.model';\nimport { PayoutSetting } from './embedded/payout-setting.model';\nimport { CourierSetting } from './embedded/courier-setting.model';\nimport { CurrencySetting } from './embedded/currency-setting.model';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\nimport { RiderBatchesSettings } from './embedded/rider-batches.model';\nimport { ServiceFeeSetting } from './embedded/service-fee-setting.model';\nimport { DeliveryCharge } from './embedded/delivery-charge-setting.model';\nimport { LyxaTimeZoneEnum, PaymentMethod } from '../../../utilities/enum';\nimport { CustomerSupport } from './embedded/customer-support-numbers.model';\nimport { AgentNotificationSetting } from './embedded/agent-notification-setting.model';\nimport { BusinessDevelopmentSetting } from './embedded/business-development-setting.model';\nimport { CustomerSupportBatchesSettings } from './embedded/customer-support-batches.model';\n\n@modelOptions({ schemaOptions: { collection: 'settings' } })\nexport class Setting extends TimeStamps {\n\t@prop({ type: () => [DeliveryCharge] })\n\tpublic deliveryCharges: DeliveryCharge[];\n\n\t@prop({ type: ServiceFeeSetting })\n\tpublic serviceFeeSetting?: ServiceFeeSetting;\n\n\t@prop({ type: PayoutSetting })\n\tpublic payoutSetting?: PayoutSetting;\n\n\t@prop({ type: WorkHourSetting })\n\tpublic workHourSetting?: WorkHourSetting;\n\n\t@prop({ type: CourierSetting })\n\tpublic courierSetting?: CourierSetting;\n\n\t@prop({ type: RiderSetting })\n\tpublic riderSetting?: RiderSetting;\n\n\t@prop({ type: BusinessDevelopmentSetting })\n\tpublic businessDevelopmentSetting?: BusinessDevelopmentSetting;\n\n\t@prop({ type: Number, default: Infinity })\n\tpublic payLimitForUser?: number;\n\n\t@prop({ type: Number, default: Infinity })\n\tpublic concurrentOrderLimitForUser?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic vatPercentage?: number;\n\n\t@prop({ type: () => [Number], default: [] })\n\tpublic riderSearchRanges?: number[];\n\n\t@prop({ type: () => [RiderBatchesSettings], default: [] })\n\tpublic riderBatches?: RiderBatchesSettings[];\n\n\t@prop({ type: Number, default: Infinity })\n\tpublic nearByShopDistance?: number;\n\n\t@prop({ type: Number, default: Infinity })\n\tpublic nearByShopDistanceInHomeScreen?: number;\n\n\t@prop({ type: () => [String], default: [] })\n\tpublic units?: string[];\n\n\t@prop({ type: CurrencySetting })\n\tpublic currencySetting?: CurrencySetting;\n\n\t@prop({ type: () => [String], enum: PaymentMethod, default: [] })\n\tpublic paymentMethods?: PaymentMethod[];\n\n\t@prop({ type: Boolean, default: false })\n\tpublic isGroupOrderEnabled?: boolean;\n\n\t@prop({ type: CustomerSupport })\n\tpublic customerSupport?: CustomerSupport;\n\n\t@prop({ type: () => [CustomerSupportBatchesSettings], default: [] })\n\tpublic customerSupportBatches?: CustomerSupportBatchesSettings[];\n\n\t@prop({ type: () => [PlusSettings], default: [] })\n\tpublic plusSettings?: PlusSettings[];\n\n\t@prop({ type: AgentNotificationSetting })\n\tpublic agentNotificationSetting?: AgentNotificationSetting;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic cashbackAmount?: number;\n\n\t@prop({ type: String, enum: LyxaTimeZoneEnum })\n\tpublic timezone?: LyxaTimeZoneEnum;\n\n\t@prop({ type: Number, min: 0, default: 600 })\n\tpublic bufferTimeInSeconds!: number;\n\n\t@prop({ type: AppForceUpdate })\n\tpublic userAppForceUpdate?: AppForceUpdate;\n\n\t@prop({ type: AppForceUpdate })\n\tpublic shopAppForceUpdate?: AppForceUpdate;\n\n\t@prop({ type: AppForceUpdate })\n\tpublic riderAppForceUpdate?: AppForceUpdate;\n\n\t@prop({\n\t\ttype: () => Map,\n\t\tof: Object as any,\n\t\tdefault: () => new Map(),\n\t})\n\tpublic enableFlags!: Map<string, any>;\n\n\t@prop({ type: CompanyInfo })\n\tpublic companyInfo?: CompanyInfo;\n}\n"]}
1
+ {"version":3,"file":"setting.model.js","sourceRoot":"/","sources":["libraries/mongo/models/setting.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA0D;AAC1D,8DAA2D;AAC3D,sEAA4D;AAC5D,kEAA6D;AAC7D,wEAA8D;AAC9D,wEAA8D;AAC9D,0EAAgE;AAChE,4EAAkE;AAClE,8EAAoE;AACpE,4EAAqE;AACrE,wEAAsE;AACtE,oFAAyE;AACzE,4FAA0E;AAC1E,kDAA0E;AAC1E,8FAA4E;AAC5E,kGAAuF;AACvF,sGAA2F;AAC3F,8FAA2F;AAGpF,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,2BAAU;IAE/B,eAAe,CAAmB;IAGlC,iBAAiB,CAAqB;IAGtC,aAAa,CAAiB;IAG9B,eAAe,CAAmB;IAGlC,cAAc,CAAkB;IAGhC,YAAY,CAAgB;IAG5B,0BAA0B,CAA8B;IAGxD,eAAe,CAAU;IAGzB,2BAA2B,CAAU;IAGrC,aAAa,CAAU;IAGvB,iBAAiB,CAAY;IAG7B,YAAY,CAA0B;IAGtC,kBAAkB,CAAU;IAG5B,8BAA8B,CAAU;IAGxC,KAAK,CAAY;IAGjB,eAAe,CAAmB;IAGlC,cAAc,CAAmB;IAGjC,mBAAmB,CAAW;IAG9B,eAAe,CAAmB;IAGlC,sBAAsB,CAAoC;IAG1D,YAAY,CAAkB;IAG9B,wBAAwB,CAA4B;IAGpD,cAAc,CAAU;IAGxB,QAAQ,CAAoB;IAG5B,mBAAmB,CAAU;IAG7B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AAC;AAGpD;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;+CACJ;AAGxB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,uBAAgB,EAAE,CAAC;;yCACZ;AAG5B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC;;oDACT;AAG7B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,iCAAc,EAAE,CAAC;8BACH,iCAAc;mDAAC;AAGpC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,iCAAc,EAAE,CAAC;8BACH,iCAAc;mDAAC;AAGpC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,iCAAc,EAAE,CAAC;8BACF,iCAAc;oDAAC;AAOrC;IALN,IAAA,gBAAI,EAAC;QACL,IAAI,EAAE,GAAG,EAAE,CAAC,GAAG;QACf,EAAE,EAAE,MAAa;QACjB,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,GAAG,EAAE;KACxB,CAAC;8BACmB,GAAG;4CAAc;AAG/B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,gCAAW,EAAE,CAAC;8BACP,gCAAW;4CAAC;AAG1B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;yDACE;kBAhG9B,OAAO;IADnB,IAAA,wBAAY,EAAC,EAAE,aAAa,EAAE,EAAE,UAAU,EAAE,UAAU,EAAE,EAAE,CAAC;GAC/C,OAAO,CAiGnB","sourcesContent":["import { modelOptions, prop } from '@typegoose/typegoose';\nimport { WorkHourSetting } from './shared/work-hour.model';\nimport { CompanyInfo } from './embedded/company-info.model';\nimport { AppForceUpdate } from './embedded/app-force-update';\nimport { PlusSettings } from './embedded/plus-settings.model';\nimport { RiderSetting } from './embedded/rider-setting.model';\nimport { PayoutSetting } from './embedded/payout-setting.model';\nimport { CourierSetting } from './embedded/courier-setting.model';\nimport { CurrencySetting } from './embedded/currency-setting.model';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\nimport { RiderBatchesSettings } from './embedded/rider-batches.model';\nimport { ServiceFeeSetting } from './embedded/service-fee-setting.model';\nimport { DeliveryCharge } from './embedded/delivery-charge-setting.model';\nimport { LyxaTimeZoneEnum, PaymentMethod } from '../../../utilities/enum';\nimport { CustomerSupport } from './embedded/customer-support-numbers.model';\nimport { AgentNotificationSetting } from './embedded/agent-notification-setting.model';\nimport { BusinessDevelopmentSetting } from './embedded/business-development-setting.model';\nimport { CustomerSupportBatchesSettings } from './embedded/customer-support-batches.model';\n\n@modelOptions({ schemaOptions: { collection: 'settings' } })\nexport class Setting extends TimeStamps {\n\t@prop({ type: () => [DeliveryCharge] })\n\tpublic deliveryCharges: DeliveryCharge[];\n\n\t@prop({ type: ServiceFeeSetting })\n\tpublic serviceFeeSetting?: ServiceFeeSetting;\n\n\t@prop({ type: PayoutSetting })\n\tpublic payoutSetting?: PayoutSetting;\n\n\t@prop({ type: WorkHourSetting })\n\tpublic workHourSetting?: WorkHourSetting;\n\n\t@prop({ type: CourierSetting })\n\tpublic courierSetting?: CourierSetting;\n\n\t@prop({ type: RiderSetting })\n\tpublic riderSetting?: RiderSetting;\n\n\t@prop({ type: BusinessDevelopmentSetting })\n\tpublic businessDevelopmentSetting?: BusinessDevelopmentSetting;\n\n\t@prop({ type: Number, default: Infinity })\n\tpublic payLimitForUser?: number;\n\n\t@prop({ type: Number, default: Infinity })\n\tpublic concurrentOrderLimitForUser?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic vatPercentage?: number;\n\n\t@prop({ type: () => [Number], default: [] })\n\tpublic riderSearchRanges?: number[];\n\n\t@prop({ type: () => [RiderBatchesSettings], default: [] })\n\tpublic riderBatches?: RiderBatchesSettings[];\n\n\t@prop({ type: Number, default: Infinity })\n\tpublic nearByShopDistance?: number;\n\n\t@prop({ type: Number, default: Infinity })\n\tpublic nearByShopDistanceInHomeScreen?: number;\n\n\t@prop({ type: () => [String], default: [] })\n\tpublic units?: string[];\n\n\t@prop({ type: CurrencySetting })\n\tpublic currencySetting?: CurrencySetting;\n\n\t@prop({ type: () => [String], enum: PaymentMethod, default: [] })\n\tpublic paymentMethods?: PaymentMethod[];\n\n\t@prop({ type: Boolean, default: false })\n\tpublic isGroupOrderEnabled?: boolean;\n\n\t@prop({ type: CustomerSupport })\n\tpublic customerSupport?: CustomerSupport;\n\n\t@prop({ type: () => [CustomerSupportBatchesSettings], default: [] })\n\tpublic customerSupportBatches?: CustomerSupportBatchesSettings[];\n\n\t@prop({ type: () => [PlusSettings], default: [] })\n\tpublic plusSettings?: PlusSettings[];\n\n\t@prop({ type: AgentNotificationSetting })\n\tpublic agentNotificationSetting?: AgentNotificationSetting;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic cashbackAmount?: number;\n\n\t@prop({ type: String, enum: LyxaTimeZoneEnum })\n\tpublic timezone?: LyxaTimeZoneEnum;\n\n\t@prop({ type: Number, min: 0, default: 600 })\n\tpublic bufferTimeInSeconds!: number;\n\n\t@prop({ type: AppForceUpdate })\n\tpublic userAppForceUpdate?: AppForceUpdate;\n\n\t@prop({ type: AppForceUpdate })\n\tpublic shopAppForceUpdate?: AppForceUpdate;\n\n\t@prop({ type: AppForceUpdate })\n\tpublic riderAppForceUpdate?: AppForceUpdate;\n\n\t@prop({\n\t\ttype: () => Map,\n\t\tof: Object as any,\n\t\tdefault: () => new Map(),\n\t})\n\tpublic enableFlags!: Map<string, any>;\n\n\t@prop({ type: CompanyInfo })\n\tpublic companyInfo?: CompanyInfo;\n\n\t@prop({ type: Boolean, default: false })\n\tpublic showAreebaDefaultOtpPage?: boolean;\n}\n"]}
@@ -4,6 +4,8 @@ import { User } from './user.model';
4
4
  import { UserActionReason, UserActionType } from '../../../utilities/enum';
5
5
  import { Order } from './order.model';
6
6
  import { ServiceBooking } from './service-booking.model';
7
+ import { PaymentRecord } from './embedded/payment-record.model';
8
+ import { Card } from './card.model';
7
9
  export declare class UserActionContext {
8
10
  oldTotal: number;
9
11
  secondaryOldTotal: number;
@@ -11,6 +13,8 @@ export declare class UserActionContext {
11
13
  secondaryNewTotal: number;
12
14
  diffPaidAmount: number;
13
15
  secondaryDiffPaidAmount: number;
16
+ card?: Ref<Card>;
17
+ paymentRecords?: PaymentRecord[];
14
18
  [key: string]: any;
15
19
  }
16
20
  export declare class UserAction extends TimeStamps {
@@ -16,6 +16,8 @@ const user_model_1 = require("./user.model");
16
16
  const enum_1 = require("../../../utilities/enum");
17
17
  const order_model_1 = require("./order.model");
18
18
  const service_booking_model_1 = require("./service-booking.model");
19
+ const payment_record_model_1 = require("./embedded/payment-record.model");
20
+ const card_model_1 = require("./card.model");
19
21
  let UserActionContext = class UserActionContext {
20
22
  oldTotal;
21
23
  secondaryOldTotal;
@@ -23,6 +25,8 @@ let UserActionContext = class UserActionContext {
23
25
  secondaryNewTotal;
24
26
  diffPaidAmount;
25
27
  secondaryDiffPaidAmount;
28
+ card;
29
+ paymentRecords;
26
30
  };
27
31
  exports.UserActionContext = UserActionContext;
28
32
  __decorate([
@@ -49,8 +53,16 @@ __decorate([
49
53
  (0, typegoose_1.prop)({ required: true, type: Number }),
50
54
  __metadata("design:type", Number)
51
55
  ], UserActionContext.prototype, "secondaryDiffPaidAmount", void 0);
56
+ __decorate([
57
+ (0, typegoose_1.prop)({ ref: () => card_model_1.Card }),
58
+ __metadata("design:type", Object)
59
+ ], UserActionContext.prototype, "card", void 0);
60
+ __decorate([
61
+ (0, typegoose_1.prop)({ type: () => [payment_record_model_1.PaymentRecord], _id: false, default: [] }),
62
+ __metadata("design:type", Array)
63
+ ], UserActionContext.prototype, "paymentRecords", void 0);
52
64
  exports.UserActionContext = UserActionContext = __decorate([
53
- (0, typegoose_1.modelOptions)({ options: { allowMixed: typegoose_1.Severity.ALLOW } })
65
+ (0, typegoose_1.modelOptions)({ schemaOptions: { strict: false, _id: false }, options: { allowMixed: typegoose_1.Severity.ALLOW } })
54
66
  ], UserActionContext);
55
67
  let UserAction = class UserAction extends defaultClasses_1.TimeStamps {
56
68
  user;
@@ -1 +1 @@
1
- {"version":3,"file":"user-action.model.js","sourceRoot":"/","sources":["libraries/mongo/models/user-action.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAyE;AACzE,4EAAqE;AACrE,6CAAoC;AACpC,kDAA2E;AAC3E,+CAAsC;AACtC,mEAAyD;AAGlD,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAEtB,QAAQ,CAAU;IAGlB,iBAAiB,CAAU;IAG3B,QAAQ,CAAU;IAGlB,iBAAiB,CAAU;IAG3B,cAAc,CAAU;IAGxB,uBAAuB,CAAU;CAIxC,CAAA;AArBY,8CAAiB;AAEtB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;mDACd;AAGlB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;4DACL;AAG3B;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;mDACd;AAGlB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;4DACL;AAG3B;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;yDACR;AAGxB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;kEACC;4BAjB5B,iBAAiB;IAD7B,IAAA,wBAAY,EAAC,EAAE,OAAO,EAA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,EAAE,aAAa,EAAE,EAAE,UAAU,EAAE,aAAa,EAAE,EAAE,OAAO,EAAE,EAAE,UAAU,EAAE,oBAAQ,CAAC,KAAK,EAAE,EAAE,CAAC;GAC3F,UAAU,CAwBtB","sourcesContent":["import { modelOptions, prop, Ref, Severity } from '@typegoose/typegoose';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\nimport { User } from './user.model';\nimport { UserActionReason, UserActionType } from '../../../utilities/enum';\nimport { Order } from './order.model';\nimport { ServiceBooking } from './service-booking.model';\n\n@modelOptions({ options: { allowMixed: Severity.ALLOW } })\nexport class UserActionContext {\n\t@prop({ required: true, type: Number })\n\tpublic oldTotal!: number;\n\n\t@prop({ required: true, type: Number })\n\tpublic secondaryOldTotal!: number;\n\n\t@prop({ required: true, type: Number })\n\tpublic newTotal!: number;\n\n\t@prop({ required: true, type: Number })\n\tpublic secondaryNewTotal!: number;\n\n\t@prop({ required: true, type: Number })\n\tpublic diffPaidAmount!: number;\n\n\t@prop({ required: true, type: Number })\n\tpublic secondaryDiffPaidAmount!: number;\n\n\t// any other freeform keys are still allowed via Severity.ALLOW\n\t[key: string]: any;\n}\n\n@modelOptions({ schemaOptions: { collection: 'userActions' }, options: { allowMixed: Severity.ALLOW } })\nexport class UserAction extends TimeStamps {\n\t@prop({ required: true, ref: () => User })\n\tpublic user!: Ref<User>;\n\n\t@prop({ ref: () => Order })\n\tpublic order?: Ref<Order>;\n\n\t@prop({ ref: () => ServiceBooking })\n\tpublic serviceBooking?: Ref<ServiceBooking>;\n\n\t@prop({ required: true, type: String })\n\tpublic orderId!: string;\n\n\t@prop({ required: true, type: String, enum: UserActionType })\n\tpublic actionType!: UserActionType;\n\n\t@prop({ required: true, type: String, enum: UserActionReason })\n\tpublic actionReason!: UserActionReason;\n\n\t@prop({ type: Boolean, default: false })\n\tpublic isResolved?: boolean;\n\n\t@prop({ type: () => UserActionContext })\n\tpublic context?: UserActionContext;\n}\n"]}
1
+ {"version":3,"file":"user-action.model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K,EAAE,CAAC;;8CACZ;AAGrB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,iBAAiB,EAAE,CAAC;8BACvB,iBAAiB;2CAAC;qBAvBvB,UAAU;IADtB,IAAA,wBAAY,EAAC,EAAE,aAAa,EAAE,EAAE,UAAU,EAAE,aAAa,EAAE,EAAE,OAAO,EAAE,EAAE,UAAU,EAAE,oBAAQ,CAAC,KAAK,EAAE,EAAE,CAAC;GAC3F,UAAU,CAwBtB","sourcesContent":["import { modelOptions, prop, Ref, Severity } from '@typegoose/typegoose';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\nimport { User } from './user.model';\nimport { UserActionReason, UserActionType } from '../../../utilities/enum';\nimport { Order } from './order.model';\nimport { ServiceBooking } from './service-booking.model';\nimport { PaymentRecord } from './embedded/payment-record.model';\nimport { Card } from './card.model';\n\n@modelOptions({ schemaOptions: { strict: false, _id: false }, options: { allowMixed: Severity.ALLOW } })\nexport class UserActionContext {\n\t@prop({ required: true, type: Number })\n\tpublic oldTotal!: number;\n\n\t@prop({ required: true, type: Number })\n\tpublic secondaryOldTotal!: number;\n\n\t@prop({ required: true, type: Number })\n\tpublic newTotal!: number;\n\n\t@prop({ required: true, type: Number })\n\tpublic secondaryNewTotal!: number;\n\n\t@prop({ required: true, type: Number })\n\tpublic diffPaidAmount!: number;\n\n\t@prop({ required: true, type: Number })\n\tpublic secondaryDiffPaidAmount!: number;\n\n\t@prop({ ref: () => Card })\n\tpublic card?: Ref<Card>;\n\n\t@prop({ type: () => [PaymentRecord], _id: false, default: [] })\n\tpublic paymentRecords?: PaymentRecord[];\n\n\t// any other freeform keys are still allowed via Severity.ALLOW\n\t[key: string]: any;\n}\n\n@modelOptions({ schemaOptions: { collection: 'userActions' }, options: { allowMixed: Severity.ALLOW } })\nexport class UserAction extends TimeStamps {\n\t@prop({ required: true, ref: () => User })\n\tpublic user!: Ref<User>;\n\n\t@prop({ ref: () => Order })\n\tpublic order?: Ref<Order>;\n\n\t@prop({ ref: () => ServiceBooking })\n\tpublic serviceBooking?: Ref<ServiceBooking>;\n\n\t@prop({ required: true, type: String })\n\tpublic orderId!: string;\n\n\t@prop({ required: true, type: String, enum: UserActionType })\n\tpublic actionType!: UserActionType;\n\n\t@prop({ required: true, type: String, enum: UserActionReason })\n\tpublic actionReason!: UserActionReason;\n\n\t@prop({ type: Boolean, default: false })\n\tpublic isResolved?: boolean;\n\n\t@prop({ type: () => UserActionContext })\n\tpublic context?: UserActionContext;\n}\n"]}
@@ -22,7 +22,7 @@ Perfect for sharing types between frontend and backend applications.
22
22
 
23
23
  ## Version
24
24
 
25
- Version: 1.4.176
25
+ Version: 1.4.178
26
26
 
27
27
  ## Dependencies
28
28
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lyxa.ai/types",
3
- "version": "1.4.176",
3
+ "version": "1.4.178",
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",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lyxa.ai/core",
3
- "version": "1.4.176",
3
+ "version": "1.4.178",
4
4
  "description": "The Core system of the Lyxa services.",
5
5
  "author": "elie <42282499+Internalizable@users.noreply.github.com>",
6
6
  "license": "MIT",