@lyxa.ai/core 1.0.260 → 1.0.262
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/embedded/slot.model.d.ts +4 -0
- package/dist/libraries/mongo/models/{shared → embedded}/slot.model.js +8 -8
- package/dist/libraries/mongo/models/embedded/slot.model.js.map +1 -0
- package/dist/libraries/mongo/models/service-promotion.model.d.ts +6 -4
- package/dist/libraries/mongo/models/service-promotion.model.js +14 -8
- 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/dist/types/utilities/enum.d.ts +3 -1
- package/dist/types/utilities/enum.js +2 -0
- package/dist/types/utilities/enum.js.map +1 -1
- package/dist/types/utilities/validation/common-validation.d.ts +2 -78
- package/dist/types/utilities/validation/global-validation.d.ts +14 -38
- package/dist/utilities/enum.d.ts +3 -1
- package/dist/utilities/enum.js +2 -0
- package/dist/utilities/enum.js.map +1 -1
- package/dist/utilities/map.d.ts +5 -0
- package/dist/utilities/map.js +48 -4
- package/dist/utilities/map.js.map +1 -1
- package/dist/utilities/validation/common-validation.d.ts +2 -78
- package/dist/utilities/validation/global-validation.d.ts +14 -38
- package/package.json +1 -1
- package/dist/libraries/mongo/models/embedded/package-discount-config.model.d.ts +0 -12
- package/dist/libraries/mongo/models/embedded/package-discount-config.model.js +0 -50
- package/dist/libraries/mongo/models/embedded/package-discount-config.model.js.map +0 -1
- package/dist/libraries/mongo/models/embedded/slot-discount-config.model.d.ts +0 -11
- package/dist/libraries/mongo/models/embedded/slot-discount-config.model.js +0 -50
- package/dist/libraries/mongo/models/embedded/slot-discount-config.model.js.map +0 -1
- package/dist/libraries/mongo/models/shared/slot.model.d.ts +0 -4
- package/dist/libraries/mongo/models/shared/slot.model.js.map +0 -1
|
@@ -1,50 +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.SlotDiscountConfig = void 0;
|
|
13
|
-
const typegoose_1 = require("@typegoose/typegoose");
|
|
14
|
-
const enum_1 = require("../../../../utilities/enum");
|
|
15
|
-
const slot_model_1 = require("../shared/slot.model");
|
|
16
|
-
const promotion_duration_model_1 = require("../shared/promotion-duration.model");
|
|
17
|
-
class SlotDiscountConfig {
|
|
18
|
-
duration;
|
|
19
|
-
slot;
|
|
20
|
-
type;
|
|
21
|
-
value;
|
|
22
|
-
maxDiscountAmount;
|
|
23
|
-
spendLimit;
|
|
24
|
-
}
|
|
25
|
-
exports.SlotDiscountConfig = SlotDiscountConfig;
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, typegoose_1.prop)({ required: true, type: promotion_duration_model_1.PromotionDuration }),
|
|
28
|
-
__metadata("design:type", promotion_duration_model_1.PromotionDuration)
|
|
29
|
-
], SlotDiscountConfig.prototype, "duration", void 0);
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, typegoose_1.prop)({ required: true, type: slot_model_1.Slot }),
|
|
32
|
-
__metadata("design:type", slot_model_1.Slot)
|
|
33
|
-
], SlotDiscountConfig.prototype, "slot", void 0);
|
|
34
|
-
__decorate([
|
|
35
|
-
(0, typegoose_1.prop)({ type: String, enum: enum_1.ValueType }),
|
|
36
|
-
__metadata("design:type", String)
|
|
37
|
-
], SlotDiscountConfig.prototype, "type", void 0);
|
|
38
|
-
__decorate([
|
|
39
|
-
(0, typegoose_1.prop)({ type: Number }),
|
|
40
|
-
__metadata("design:type", Number)
|
|
41
|
-
], SlotDiscountConfig.prototype, "value", void 0);
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, typegoose_1.prop)({ min: 0 }),
|
|
44
|
-
__metadata("design:type", Number)
|
|
45
|
-
], SlotDiscountConfig.prototype, "maxDiscountAmount", void 0);
|
|
46
|
-
__decorate([
|
|
47
|
-
(0, typegoose_1.prop)({ type: Number, required: true, min: 0 }),
|
|
48
|
-
__metadata("design:type", Number)
|
|
49
|
-
], SlotDiscountConfig.prototype, "spendLimit", void 0);
|
|
50
|
-
//# sourceMappingURL=slot-discount-config.model.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"slot-discount-config.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/slot-discount-config.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,qDAAuD;AACvD,qDAA4C;AAC5C,iFAAuE;AAEvE,MAAa,kBAAkB;IAEpB,QAAQ,CAAoB;IAG5B,IAAI,CAAO;IAGX,IAAI,CAAY;IAGhB,KAAK,CAAU;IAGf,iBAAiB,CAAU;IAG3B,UAAU,CAAU;CAC9B;AAlBD,gDAkBC;AAhBU;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,4CAAiB,EAAE,CAAC;8BAChC,4CAAiB;oDAAA;AAG5B;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,iBAAI,EAAE,CAAC;8BACvB,iBAAI;gDAAA;AAGX;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAS,EAAE,CAAC;;gDACjB;AAGhB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;iDACD;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;6DACiB;AAG3B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;sDACpB","sourcesContent":["import { prop } from \"@typegoose/typegoose\";\nimport { Duration } from \"../shared/duration.model\";\nimport { ValueType } from \"../../../../utilities/enum\";\nimport { Slot } from \"../shared/slot.model\";\nimport { PromotionDuration } from \"../shared/promotion-duration.model\";\n\nexport class SlotDiscountConfig {\n @prop({ required: true, type: PromotionDuration })\n public duration!: PromotionDuration\n\n @prop({ required: true, type: Slot })\n public slot!: Slot\n\n @prop({ type: String, enum: ValueType })\n public type?: ValueType\n\n @prop({ type: Number })\n public value?: number;\n\n @prop({ min: 0 })\n public maxDiscountAmount?: number;\n\n @prop({ type: Number, required: true, min: 0 })\n public spendLimit!: number;\n}"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"slot.model.js","sourceRoot":"/","sources":["libraries/mongo/models/shared/slot.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,IAAI;IAEN,SAAS,CAAS;IAGlB,OAAO,CAAQ;CACzB;AAND,oBAMC;AAJU;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAC,CAAC;;uCACC;AAGlB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qCACH","sourcesContent":["import { prop } from '@typegoose/typegoose';\n\nexport class Slot {\n @prop({ required: true})\n public startTime!: string\n\n @prop({ required: true })\n public endTime: string\n}\n"]}
|