@lyxa.ai/core 1.0.271 → 1.0.273
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/service-promotion.model.d.ts +2 -2
- package/dist/libraries/mongo/models/service-promotion.model.js +2 -2
- package/dist/libraries/mongo/models/service-promotion.model.js.map +1 -1
- package/dist/libraries/mongo/models/user.model.d.ts +1 -1
- package/dist/types/README.md +1 -1
- package/dist/types/package.json +1 -1
- package/package.json +1 -1
- package/dist/libraries/mongo/models/embedded/slot-range.model.d.ts +0 -4
- package/dist/libraries/mongo/models/embedded/slot-range.model.js +0 -27
- package/dist/libraries/mongo/models/embedded/slot-range.model.js.map +0 -1
|
@@ -3,14 +3,14 @@ import { Vendor } from './vendor.model';
|
|
|
3
3
|
import { MarketingStatus, PromotionType, ValueType } from '../../../utilities/enum';
|
|
4
4
|
import { PromotionDuration } from './shared/promotion-duration.model';
|
|
5
5
|
import { ServicePackage } from './service-package.model';
|
|
6
|
-
import {
|
|
6
|
+
import { StartEndTime } from './shared/work-hour.model';
|
|
7
7
|
export declare class ServicePromotion {
|
|
8
8
|
vendor: Ref<Vendor>;
|
|
9
9
|
promotionType: PromotionType;
|
|
10
10
|
status?: MarketingStatus;
|
|
11
11
|
duration: PromotionDuration;
|
|
12
12
|
servicePackages?: Ref<ServicePackage>[];
|
|
13
|
-
slotRanges?:
|
|
13
|
+
slotRanges?: StartEndTime[];
|
|
14
14
|
spendLimit?: number;
|
|
15
15
|
spendAmount?: number;
|
|
16
16
|
valueType?: ValueType;
|
|
@@ -15,7 +15,7 @@ const vendor_model_1 = require("./vendor.model");
|
|
|
15
15
|
const enum_1 = require("../../../utilities/enum");
|
|
16
16
|
const promotion_duration_model_1 = require("./shared/promotion-duration.model");
|
|
17
17
|
const service_package_model_1 = require("./service-package.model");
|
|
18
|
-
const
|
|
18
|
+
const work_hour_model_1 = require("./shared/work-hour.model");
|
|
19
19
|
let ServicePromotion = class ServicePromotion {
|
|
20
20
|
vendor;
|
|
21
21
|
promotionType;
|
|
@@ -56,7 +56,7 @@ __decorate([
|
|
|
56
56
|
__metadata("design:type", Array)
|
|
57
57
|
], ServicePromotion.prototype, "servicePackages", void 0);
|
|
58
58
|
__decorate([
|
|
59
|
-
(0, typegoose_1.prop)({ type: () => [
|
|
59
|
+
(0, typegoose_1.prop)({ type: () => [work_hour_model_1.StartEndTime] }),
|
|
60
60
|
__metadata("design:type", Array)
|
|
61
61
|
], ServicePromotion.prototype, "slotRanges", void 0);
|
|
62
62
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service-promotion.model.js","sourceRoot":"/","sources":["libraries/mongo/models/service-promotion.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA+D;AAC/D,iDAAwC;AACxC,kDAAoF;AACpF,gFAAsE;AACtE,mEAAyD;AACzD,
|
|
1
|
+
{"version":3,"file":"service-promotion.model.js","sourceRoot":"/","sources":["libraries/mongo/models/service-promotion.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA+D;AAC/D,iDAAwC;AACxC,kDAAoF;AACpF,gFAAsE;AACtE,mEAAyD;AACzD,8DAAwD;AAGjD,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAElB,MAAM,CAAe;IAGrB,aAAa,CAAiB;IAO9B,MAAM,CAAmB;IAGzB,QAAQ,CAAoB;IAG5B,eAAe,CAAwB;IAGvC,UAAU,CAAkB;IAG5B,UAAU,CAAU;IAGpB,WAAW,CAAU;IAGrB,SAAS,CAAa;IAGtB,KAAK,CAAU;IAGf,kBAAkB,CAAU;IAG5B,WAAW,CAAU;CAC/B,CAAA;AAxCY,4CAAgB;AAElB;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,qBAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDAChB;AAGrB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE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AC;GACxD,gBAAgB,CAwC5B","sourcesContent":["import { modelOptions, prop, Ref } from '@typegoose/typegoose';\nimport { Vendor } from './vendor.model';\nimport { MarketingStatus, PromotionType, ValueType } from '../../../utilities/enum';\nimport { PromotionDuration } from './shared/promotion-duration.model';\nimport { ServicePackage } from './service-package.model';\nimport { StartEndTime } from './shared/work-hour.model';\n\n@modelOptions({ schemaOptions: { collection: 'servicePromotions' } })\nexport class ServicePromotion {\n @prop({ ref: () => Vendor, required: true })\n public vendor!: Ref<Vendor>;\n\n @prop({ enum: PromotionType, required: true })\n public promotionType!: PromotionType;\n\n @prop({\n type: String,\n enum: MarketingStatus,\n default: MarketingStatus.ACTIVE,\n })\n public status?: MarketingStatus;\n\n @prop({ required: true, type: PromotionDuration })\n public duration!: PromotionDuration\n\n @prop({ ref: () => ServicePackage, required: true })\n public servicePackages?: Ref<ServicePackage>[]\n\n @prop({ type: () => [StartEndTime] })\n public slotRanges?: StartEndTime[];\n\n @prop({ type: Number, min: 0 })\n public spendLimit?: number;\n\n @prop({ type: Number, default: 0, min: 0 })\n public spendAmount?: number;\n\n @prop({ type: String, enum: ValueType })\n public valueType?: ValueType;\n\n @prop({ type: Number })\n public value?: number;\n\n @prop({ type: String })\n public deactivationReason?: string;\n\n @prop({ type: String, trim: true, maxlength: 500 })\n public description?: string;\n}\n"]}
|
|
@@ -31,7 +31,7 @@ export declare class User extends TimeStamps {
|
|
|
31
31
|
isPhoneVerified?: boolean;
|
|
32
32
|
onlineStatus?: OnlineStatus;
|
|
33
33
|
fcmTokens?: string[];
|
|
34
|
-
static updateWallet(this: ReturnModelType<typeof User>, userId: string, amount: number): Promise<(import("mongoose").Document<unknown, import("@typegoose/typegoose/lib/types").BeAnObject, User, import("@typegoose/typegoose/lib/types").BeAnyObject> & Omit<User & {
|
|
34
|
+
static updateWallet(this: ReturnModelType<typeof User>, userId: string, amount: number): Promise<(import("mongoose").Document<unknown, import("@typegoose/typegoose/lib/types").BeAnObject, User, import("@typegoose/typegoose/lib/types").BeAnyObject, {}> & Omit<User & {
|
|
35
35
|
_id: import("mongoose").Types.ObjectId;
|
|
36
36
|
} & {
|
|
37
37
|
__v: number;
|
package/dist/types/README.md
CHANGED
package/dist/types/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.SlotRange = void 0;
|
|
13
|
-
const typegoose_1 = require("@typegoose/typegoose");
|
|
14
|
-
class SlotRange {
|
|
15
|
-
start;
|
|
16
|
-
end;
|
|
17
|
-
}
|
|
18
|
-
exports.SlotRange = SlotRange;
|
|
19
|
-
__decorate([
|
|
20
|
-
(0, typegoose_1.prop)({ required: true, type: Date }),
|
|
21
|
-
__metadata("design:type", Date)
|
|
22
|
-
], SlotRange.prototype, "start", void 0);
|
|
23
|
-
__decorate([
|
|
24
|
-
(0, typegoose_1.prop)({ type: Date }),
|
|
25
|
-
__metadata("design:type", Date)
|
|
26
|
-
], SlotRange.prototype, "end", void 0);
|
|
27
|
-
//# sourceMappingURL=slot-range.model.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"slot-range.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/slot-range.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,SAAS;IAEX,KAAK,CAAQ;IAGb,GAAG,CAAQ;CACrB;AAND,8BAMC;AAJU;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;8BACtB,IAAI;wCAAC;AAGb;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;8BACR,IAAI;sCAAC","sourcesContent":["import { prop } from \"@typegoose/typegoose\";\n\nexport class SlotRange {\n @prop({ required: true, type: Date })\n public start!: Date;\n\n @prop({ type: Date })\n public end?: Date;\n}"]}
|