@lyxa.ai/core 1.3.136 → 1.3.138
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/libraries/mongo/models/punch-marketing-history.model.d.ts +1 -1
- package/dist/libraries/mongo/models/punch-marketing-history.model.js +2 -2
- package/dist/libraries/mongo/models/punch-marketing-history.model.js.map +1 -1
- package/dist/libraries/mongo/models/user-app-section-setting.model.js +3 -6
- package/dist/libraries/mongo/models/user-app-section-setting.model.js.map +1 -1
- package/dist/types/README.md +1 -1
- package/dist/types/package.json +1 -1
- package/package.json +1 -1
|
@@ -72,7 +72,7 @@ __decorate([
|
|
|
72
72
|
__metadata("design:type", Date)
|
|
73
73
|
], PunchMarketingHistory.prototype, "expiryDate", void 0);
|
|
74
74
|
__decorate([
|
|
75
|
-
(0, typegoose_1.prop)({ type: Date, default: null }),
|
|
75
|
+
(0, typegoose_1.prop)({ required: false, type: Date, default: null }),
|
|
76
76
|
__metadata("design:type", Date)
|
|
77
77
|
], PunchMarketingHistory.prototype, "completedAt", void 0);
|
|
78
78
|
__decorate([
|
|
@@ -92,7 +92,7 @@ __decorate([
|
|
|
92
92
|
__metadata("design:type", Number)
|
|
93
93
|
], PunchMarketingHistory.prototype, "couponDurationInDays", void 0);
|
|
94
94
|
__decorate([
|
|
95
|
-
(0, typegoose_1.prop)({ type: Date, default: null }),
|
|
95
|
+
(0, typegoose_1.prop)({ required: false, type: Date, default: null }),
|
|
96
96
|
__metadata("design:type", Date)
|
|
97
97
|
], PunchMarketingHistory.prototype, "couponExpiryDate", void 0);
|
|
98
98
|
exports.PunchMarketingHistory = PunchMarketingHistory = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"punch-marketing-history.model.js","sourceRoot":"/","sources":["libraries/mongo/models/punch-marketing-history.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA+D;AAC/D,4EAAqE;AACrE,6EAAmE;AACnE,6CAAoC;AAC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,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;0DACX;AAGrB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;mEACF;AAG9B;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;8BAC3B,IAAI;+DAAC;gCA5CnB,qBAAqB;IADjC,IAAA,wBAAY,EAAC,EAAE,aAAa,EAAE,EAAE,UAAU,EAAE,yBAAyB,EAAE,EAAE,CAAC;GAC9D,qBAAqB,CA6CjC","sourcesContent":["import { modelOptions, prop, Ref } from '@typegoose/typegoose';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\nimport { PunchMarketing } from './providers/punch-marketing.model';\nimport { Shop } from './shop.model';\nimport { User } from './user.model';\nimport { Coupon } from './coupon.model';\nimport { PunchMarketingStatus, ValueType } from '../../../utilities/enum';\nimport { Order } from './order.model';\n\n@modelOptions({ schemaOptions: { collection: 'punchMarketingHistories' } })\nexport class PunchMarketingHistory extends TimeStamps {\n\t@prop({ required: true, ref: () => User })\n\tpublic user!: Ref<User>;\n\n\t@prop({ required: true, ref: () => PunchMarketing })\n\tpublic marketing!: Ref<PunchMarketing>;\n\n\t@prop({ required: true, ref: () => Shop })\n\tpublic shop!: Ref<Shop>;\n\n\t@prop({ ref: () => Order, default: null })\n\tpublic order?: Ref<Order>;\n\n\t@prop({ required: true, type: Number })\n\tpublic targetOrder!: number;\n\n\t@prop({ required: true, type: Number })\n\tpublic minimumOrderValue!: number;\n\n\t@prop({ type: Number, default: 1 })\n\tpublic completedOrder: number;\n\n\t@prop({ type: Date, default: new Date() })\n\tpublic startDate: Date;\n\n\t@prop({ type: Date, default: null })\n\tpublic expiryDate!: Date;\n\n\t@prop({ required: false, type: Date, default: null })\n\tpublic completedAt?: Date;\n\n\t@prop({ type: String, enum: PunchMarketingStatus, default: PunchMarketingStatus.ACTIVE })\n\tpublic status: PunchMarketingStatus;\n\n\t@prop({ required: true, type: String, enum: ValueType })\n\tpublic couponValueType!: ValueType;\n\n\t@prop({ required: true, type: Number })\n\tpublic couponValue!: number;\n\n\t@prop({ required: true, type: Number })\n\tpublic couponDurationInDays!: number;\n\n\t@prop({ required: false, type: Date, default: null })\n\tpublic couponExpiryDate?: Date;\n}\n"]}
|
|
@@ -50,12 +50,9 @@ __decorate([
|
|
|
50
50
|
__metadata("design:type", Array)
|
|
51
51
|
], UserAppSectionSetting.prototype, "customizedShops", void 0);
|
|
52
52
|
exports.UserAppSectionSetting = UserAppSectionSetting = __decorate([
|
|
53
|
-
(0, typegoose_1.modelOptions)({
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
partialFilterExpression: {
|
|
57
|
-
deletedAt: null,
|
|
58
|
-
section: { $ne: enum_1.UserAppSectionType.CUSTOMIZED_SHOPS }
|
|
53
|
+
(0, typegoose_1.modelOptions)({
|
|
54
|
+
schemaOptions: {
|
|
55
|
+
collection: 'userAppSectionSetting'
|
|
59
56
|
}
|
|
60
57
|
}),
|
|
61
58
|
(0, typegoose_1.pre)('save', async function (next) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-app-section-setting.model.js","sourceRoot":"/","sources":["libraries/mongo/models/user-app-section-setting.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"user-app-section-setting.model.js","sourceRoot":"/","sources":["libraries/mongo/models/user-app-section-setting.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAqF;AACrF,4EAAqE;AACrE,kDAA6F;AAC7F,wBAA+C;AAE/C,0EAG0C;AAC1C,6CAAoC;AAqB7B,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,2BAAU;IAE7C,QAAQ,CAA0B;IAGlC,OAAO,CAAsB;IAG7B,KAAK,CAAU;IAGf,MAAM,CAAU;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CAAC,CACD;GACY,qBAAqB,CAkBjC","sourcesContent":["import { Index, modelOptions, pre, prop, Ref, Severity } from '@typegoose/typegoose';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\nimport { Status, UserAppSectionItemType, UserAppSectionType } from '../../../utilities/enum';\nimport { UserAppSectionSettingModel } from '.';\nimport { Query } from 'mongoose';\nimport {\n\thandlePreSaveForSortingWithStatus,\n\thandlePreUpdateForSortingWithStatus,\n} from '../utilities/sorting-order.hooks';\nimport { Shop } from './shop.model';\n\n@modelOptions({\n\tschemaOptions: {\n\t\tcollection: 'userAppSectionSetting'\n\t}\n})\n\n@pre<UserAppSectionSetting>('save', async function (next) {\n\tawait handlePreSaveForSortingWithStatus.call(this, UserAppSectionSettingModel, { itemType: this.itemType });\n\n\tnext();\n})\n@pre<UserAppSectionSetting>(\n\t'findOneAndUpdate',\n\tasync function (this: Query<any, UserAppSectionSetting>, next) {\n\t\tawait handlePreUpdateForSortingWithStatus.call(this, UserAppSectionSettingModel, ['itemType']);\n\n\t\tnext();\n\t}\n)\nexport class UserAppSectionSetting extends TimeStamps {\n\t@prop({ required: true, type: String, enum: UserAppSectionItemType })\n\tpublic itemType!: UserAppSectionItemType;\n\n\t@prop({ required: true, type: String, enum: UserAppSectionType })\n\tpublic section!: UserAppSectionType;\n\n\t@prop({ required: true, type: String })\n\tpublic alias!: string;\n\n\t@prop({ type: String, enum: Status, default: Status.ACTIVE })\n\tpublic status?: Status;\n\n\t@prop({ type: Number })\n\tpublic sortingOrder?: number;\n\n\t@prop({ ref: () => Shop })\n\tpublic customizedShops?: Ref<Shop>[];\n}"]}
|
package/dist/types/README.md
CHANGED
package/dist/types/package.json
CHANGED