@lyxa.ai/core 1.0.258 → 1.0.259
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/package-discount-config.model.d.ts +1 -1
- package/dist/libraries/mongo/models/embedded/package-discount-config.model.js +3 -3
- package/dist/libraries/mongo/models/embedded/package-discount-config.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/slot-discount-config.model.d.ts +1 -1
- package/dist/libraries/mongo/models/embedded/slot-discount-config.model.js +3 -3
- package/dist/libraries/mongo/models/embedded/slot-discount-config.model.js.map +1 -1
- package/dist/libraries/mongo/models/shared/{service-duration.model.js → promotion-duration.model.js} +1 -1
- package/dist/libraries/mongo/models/shared/promotion-duration.model.js.map +1 -0
- package/dist/types/README.md +1 -1
- package/dist/types/package.json +1 -1
- package/package.json +1 -1
- package/dist/libraries/mongo/models/shared/service-duration.model.js.map +0 -1
- /package/dist/libraries/mongo/models/shared/{service-duration.model.d.ts → promotion-duration.model.d.ts} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Ref } from "@typegoose/typegoose";
|
|
2
2
|
import { ServicePackage } from "../service-package.model";
|
|
3
3
|
import { ValueType } from "../../../../utilities/enum";
|
|
4
|
-
import { PromotionDuration } from "../shared/
|
|
4
|
+
import { PromotionDuration } from "../shared/promotion-duration.model";
|
|
5
5
|
export declare class PackageDiscountConfig {
|
|
6
6
|
servicePackage: Ref<ServicePackage>;
|
|
7
7
|
duration: PromotionDuration;
|
|
@@ -13,7 +13,7 @@ exports.PackageDiscountConfig = void 0;
|
|
|
13
13
|
const typegoose_1 = require("@typegoose/typegoose");
|
|
14
14
|
const service_package_model_1 = require("../service-package.model");
|
|
15
15
|
const enum_1 = require("../../../../utilities/enum");
|
|
16
|
-
const
|
|
16
|
+
const promotion_duration_model_1 = require("../shared/promotion-duration.model");
|
|
17
17
|
class PackageDiscountConfig {
|
|
18
18
|
servicePackage;
|
|
19
19
|
duration;
|
|
@@ -28,8 +28,8 @@ __decorate([
|
|
|
28
28
|
__metadata("design:type", Object)
|
|
29
29
|
], PackageDiscountConfig.prototype, "servicePackage", void 0);
|
|
30
30
|
__decorate([
|
|
31
|
-
(0, typegoose_1.prop)({ required: true, type:
|
|
32
|
-
__metadata("design:type",
|
|
31
|
+
(0, typegoose_1.prop)({ required: true, type: promotion_duration_model_1.PromotionDuration }),
|
|
32
|
+
__metadata("design:type", promotion_duration_model_1.PromotionDuration)
|
|
33
33
|
], PackageDiscountConfig.prototype, "duration", void 0);
|
|
34
34
|
__decorate([
|
|
35
35
|
(0, typegoose_1.prop)({ type: String, enum: enum_1.ValueType }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"package-discount-config.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/package-discount-config.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiD;AACjD,oEAA0D;AAC1D,qDAAuD;AACvD,
|
|
1
|
+
{"version":3,"file":"package-discount-config.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/package-discount-config.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiD;AACjD,oEAA0D;AAC1D,qDAAuD;AACvD,iFAAuE;AAEvE,MAAa,qBAAqB;IAEvB,cAAc,CAAsB;IAGpC,QAAQ,CAAoB;IAG5B,IAAI,CAAY;IAGhB,KAAK,CAAU;IAGf,iBAAiB,CAAU;IAG3B,UAAU,CAAU;CAC9B;AAlBD,sDAkBC;AAhBU;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,sCAAc,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6DACT;AAGpC;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,4CAAiB,EAAE,CAAC;8BAChC,4CAAiB;uDAAA;AAG5B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAS,EAAE,CAAC;;mDACjB;AAGhB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;oDACD;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;gEACiB;AAG3B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;yDACpB","sourcesContent":["import { prop, Ref } from \"@typegoose/typegoose\";\nimport { ServicePackage } from \"../service-package.model\";\nimport { ValueType } from \"../../../../utilities/enum\";\nimport { PromotionDuration } from \"../shared/promotion-duration.model\";\n\nexport class PackageDiscountConfig {\n @prop({ ref: () => ServicePackage, required: true })\n public servicePackage!: Ref<ServicePackage>\n\n @prop({ required: true, type: PromotionDuration })\n public duration!: PromotionDuration\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,6 +1,6 @@
|
|
|
1
1
|
import { ValueType } from "../../../../utilities/enum";
|
|
2
2
|
import { Slot } from "../shared/slot.model";
|
|
3
|
-
import { PromotionDuration } from "../shared/
|
|
3
|
+
import { PromotionDuration } from "../shared/promotion-duration.model";
|
|
4
4
|
export declare class SlotDiscountConfig {
|
|
5
5
|
duration: PromotionDuration;
|
|
6
6
|
slot: Slot;
|
|
@@ -13,7 +13,7 @@ exports.SlotDiscountConfig = void 0;
|
|
|
13
13
|
const typegoose_1 = require("@typegoose/typegoose");
|
|
14
14
|
const enum_1 = require("../../../../utilities/enum");
|
|
15
15
|
const slot_model_1 = require("../shared/slot.model");
|
|
16
|
-
const
|
|
16
|
+
const promotion_duration_model_1 = require("../shared/promotion-duration.model");
|
|
17
17
|
class SlotDiscountConfig {
|
|
18
18
|
duration;
|
|
19
19
|
slot;
|
|
@@ -24,8 +24,8 @@ class SlotDiscountConfig {
|
|
|
24
24
|
}
|
|
25
25
|
exports.SlotDiscountConfig = SlotDiscountConfig;
|
|
26
26
|
__decorate([
|
|
27
|
-
(0, typegoose_1.prop)({ required: true, type:
|
|
28
|
-
__metadata("design:type",
|
|
27
|
+
(0, typegoose_1.prop)({ required: true, type: promotion_duration_model_1.PromotionDuration }),
|
|
28
|
+
__metadata("design:type", promotion_duration_model_1.PromotionDuration)
|
|
29
29
|
], SlotDiscountConfig.prototype, "duration", void 0);
|
|
30
30
|
__decorate([
|
|
31
31
|
(0, typegoose_1.prop)({ required: true, type: slot_model_1.Slot }),
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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}"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"promotion-duration.model.js","sourceRoot":"/","sources":["libraries/mongo/models/shared/promotion-duration.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,iBAAiB;IAEnB,KAAK,CAAQ;IAGb,GAAG,CAAQ;CACrB;AAND,8CAMC;AAJU;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;8BACtB,IAAI;gDAAC;AAGb;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;8BACR,IAAI;8CAAC","sourcesContent":["import { prop } from '@typegoose/typegoose';\n\nexport class PromotionDuration {\n @prop({ required: true, type: Date })\n public start!: Date;\n\n @prop({ type: Date })\n public end?: Date;\n}\n"]}
|
package/dist/types/README.md
CHANGED
package/dist/types/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"service-duration.model.js","sourceRoot":"/","sources":["libraries/mongo/models/shared/service-duration.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,iBAAiB;IAEnB,KAAK,CAAQ;IAGb,GAAG,CAAQ;CACrB;AAND,8CAMC;AAJU;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;8BACtB,IAAI;gDAAC;AAGb;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;8BACR,IAAI;8CAAC","sourcesContent":["import { prop } from '@typegoose/typegoose';\n\nexport class PromotionDuration {\n @prop({ required: true, type: Date })\n public start!: Date;\n\n @prop({ type: Date })\n public end?: Date;\n}\n"]}
|
|
File without changes
|