@lyxa.ai/core 1.0.301 → 1.0.303
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/frequency-configuration.model.js.map +1 -1
- package/dist/libraries/mongo/models/vendor-settings.model.d.ts +2 -0
- package/dist/libraries/mongo/models/vendor-settings.model.js +17 -1
- package/dist/libraries/mongo/models/vendor-settings.model.js.map +1 -1
- package/dist/types/README.md +1 -1
- package/dist/types/package.json +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"frequency-configuration.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/frequency-configuration.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,qDAAsF;AAEtF,MAAa,eAAe;IAEjB,iBAAiB,CAAgC;IAGjD,OAAO,CAAU;IAGjB,YAAY,CAAY;IAGxB,aAAa,CAAS;CAChC;AAZD,0CAYC;AAVU;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,oCAA6B,EAAE,CAAC;;0DACN;AAGjD;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;gDAChB;AAGjB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAS,EAAE,OAAO,EAAE,gBAAS,CAAC,UAAU,EAAE,CAAC;;qDACxC;AAGxB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;sDACF","sourcesContent":["import { prop } from \"@typegoose/typegoose\";\nimport { ServiceOrderRecurrencePattern, ValueType } from \"../../../../utilities/enum\";\n\nexport class FrequencyConfig {\n @prop({ required: true, enum: ServiceOrderRecurrencePattern })\n public recurrencePattern?: ServiceOrderRecurrencePattern\n\n @prop({ required: true, default: true })\n public enabled!: boolean\n\n @prop({ type: String, enum: ValueType, default: ValueType.PERCENTAGE })\n public discountType?: ValueType\n\n @prop({ type: Number, min: 0 })\n public discountValue?: number\n}"]}
|
|
1
|
+
{"version":3,"file":"frequency-configuration.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/frequency-configuration.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,qDAAsF;AAEtF,MAAa,eAAe;IAEjB,iBAAiB,CAAgC;IAGjD,OAAO,CAAU;IAGjB,YAAY,CAAY;IAGxB,aAAa,CAAS;CAChC;AAZD,0CAYC;AAVU;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,oCAA6B,EAAE,CAAC;;0DACN;AAGjD;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;gDAChB;AAGjB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAS,EAAE,OAAO,EAAE,gBAAS,CAAC,UAAU,EAAE,CAAC;;qDACxC;AAGxB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;sDACF","sourcesContent":["import { prop } from \"@typegoose/typegoose\";\nimport { ServiceOrderRecurrencePattern, ValueType } from \"../../../../utilities/enum\";\n\nexport class FrequencyConfig {\n @prop({ required: true, enum: ServiceOrderRecurrencePattern })\n public recurrencePattern?: ServiceOrderRecurrencePattern\n\n @prop({ required: true, default: true })\n public enabled!: boolean \n\n @prop({ type: String, enum: ValueType, default: ValueType.PERCENTAGE })\n public discountType?: ValueType\n\n @prop({ type: Number, min: 0 })\n public discountValue?: number\n} "]}
|
|
@@ -4,8 +4,10 @@ import { FrequencyConfig } from "./embedded/frequency-configuration.model";
|
|
|
4
4
|
export declare class VendorSettings {
|
|
5
5
|
vendor: Ref<Vendor>;
|
|
6
6
|
slotBufferTime: number;
|
|
7
|
+
slotInterval: number;
|
|
7
8
|
frequencyConfigs: FrequencyConfig[];
|
|
8
9
|
servicePreparationTime: number;
|
|
9
10
|
maxBookingsPerSlot: number;
|
|
10
11
|
autoUrgencyTimeLimit: number;
|
|
12
|
+
numberOfProfessionalsPerDay: number;
|
|
11
13
|
}
|
|
@@ -15,10 +15,12 @@ const vendor_model_1 = require("./vendor.model");
|
|
|
15
15
|
class VendorSettings {
|
|
16
16
|
vendor;
|
|
17
17
|
slotBufferTime;
|
|
18
|
+
slotInterval;
|
|
18
19
|
frequencyConfigs;
|
|
19
20
|
servicePreparationTime;
|
|
20
21
|
maxBookingsPerSlot;
|
|
21
22
|
autoUrgencyTimeLimit;
|
|
23
|
+
numberOfProfessionalsPerDay;
|
|
22
24
|
}
|
|
23
25
|
exports.VendorSettings = VendorSettings;
|
|
24
26
|
__decorate([
|
|
@@ -30,13 +32,20 @@ __decorate([
|
|
|
30
32
|
], VendorSettings.prototype, "vendor", void 0);
|
|
31
33
|
__decorate([
|
|
32
34
|
(0, typegoose_1.prop)({
|
|
33
|
-
required: true,
|
|
34
35
|
min: 5,
|
|
35
36
|
max: 60,
|
|
36
37
|
default: 5
|
|
37
38
|
}),
|
|
38
39
|
__metadata("design:type", Number)
|
|
39
40
|
], VendorSettings.prototype, "slotBufferTime", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typegoose_1.prop)({
|
|
43
|
+
min: 30,
|
|
44
|
+
max: 120,
|
|
45
|
+
default: 30
|
|
46
|
+
}),
|
|
47
|
+
__metadata("design:type", Number)
|
|
48
|
+
], VendorSettings.prototype, "slotInterval", void 0);
|
|
40
49
|
__decorate([
|
|
41
50
|
(0, typegoose_1.prop)({ required: true }),
|
|
42
51
|
__metadata("design:type", Array)
|
|
@@ -68,4 +77,11 @@ __decorate([
|
|
|
68
77
|
}),
|
|
69
78
|
__metadata("design:type", Number)
|
|
70
79
|
], VendorSettings.prototype, "autoUrgencyTimeLimit", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, typegoose_1.prop)({
|
|
82
|
+
required: true,
|
|
83
|
+
type: Number
|
|
84
|
+
}),
|
|
85
|
+
__metadata("design:type", Number)
|
|
86
|
+
], VendorSettings.prototype, "numberOfProfessionalsPerDay", void 0);
|
|
71
87
|
//# sourceMappingURL=vendor-settings.model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vendor-settings.model.js","sourceRoot":"/","sources":["libraries/mongo/models/vendor-settings.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiD;AACjD,iDAAwC;
|
|
1
|
+
{"version":3,"file":"vendor-settings.model.js","sourceRoot":"/","sources":["libraries/mongo/models/vendor-settings.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiD;AACjD,iDAAwC;AAIxC,MAAa,cAAc;IAKhB,MAAM,CAAc;IAOpB,cAAc,CAAS;IAOvB,YAAY,CAAQ;IAGpB,gBAAgB,CAAoB;IASpC,sBAAsB,CAAU;IAOhC,kBAAkB,CAAU;IAQ5B,oBAAoB,CAAU;IAM9B,2BAA2B,CAAS;CAC9C;AArDD,wCAqDC;AAhDU;IAJN,IAAA,gBAAI,EAAC;QACF,QAAQ,EAAE,IAAI;QACd,GAAG,EAAE,GAAG,EAAE,CAAC,qBAAM;KACpB,CAAC;;8CACyB;AAOpB;IALN,IAAA,gBAAI,EAAC;QACF,GAAG,EAAE,CAAC;QACN,GAAG,EAAE,EAAE;QACP,OAAO,EAAE,CAAC;KACb,CAAC;;sDAC4B;AAOvB;IALN,IAAA,gBAAI,EAAC;QACF,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,GAAG;QACR,OAAO,EAAE,EAAE;KACd,CAAC;;oDACyB;AAGpB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wDACkB;AASpC;IAPN,IAAA,gBAAI,EAAC;QACF,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,MAAM;QACZ,GAAG,EAAE,CAAC;QACN,GAAG,EAAE,GAAG;QACR,OAAO,EAAE,CAAC;KACb,CAAC;;8DACqC;AAOhC;IALN,IAAA,gBAAI,EAAC;QACF,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,CAAC;QACV,GAAG,EAAE,CAAC;KACT,CAAC;;0DACiC;AAQ5B;IANN,IAAA,gBAAI,EAAC;QACF,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,CAAC;QACV,GAAG,EAAE,CAAC;QACN,GAAG,EAAE,EAAE;KACV,CAAC;;4DACmC;AAM9B;IAJN,IAAA,gBAAI,EAAC;QACF,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,MAAM;KACf,CAAC;;mEACyC","sourcesContent":["import { prop, Ref } from \"@typegoose/typegoose\";\nimport { Vendor } from \"./vendor.model\";\nimport { FrequencyConfig } from \"./embedded/frequency-configuration.model\";\n\n\nexport class VendorSettings {\n @prop({\n required: true,\n ref: () => Vendor\n })\n public vendor!: Ref<Vendor>\n\n @prop({\n min: 5,\n max: 60,\n default: 5\n })\n public slotBufferTime!: number // minutes \n \n @prop({\n min: 30,\n max: 120,\n default: 30\n })\n public slotInterval: number // minutes \n \n @prop({ required: true })\n public frequencyConfigs!: FrequencyConfig[]\n\n @prop({\n required: true,\n type: Number,\n min: 0,\n max: 200,\n default: 3\n }) \n public servicePreparationTime!: number; // hours\n \n @prop({\n required: true,\n default: 3,\n min: 1\n })\n public maxBookingsPerSlot!: number;\n\n @prop({\n required: true,\n default: 6,\n min: 0,\n max: 72\n }) \n public autoUrgencyTimeLimit!: number; // hours\n\n @prop({\n required: true,\n type: Number\n })\n public numberOfProfessionalsPerDay!: number\n}"]}
|
package/dist/types/README.md
CHANGED
package/dist/types/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lyxa.ai/core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.303",
|
|
4
4
|
"description": "The Core system of the Lyxa services.",
|
|
5
5
|
"author": "elie <42282499+Internalizable@users.noreply.github.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
],
|
|
10
10
|
"main": "dist/index.js",
|
|
11
11
|
"types": "dist/index.d.ts",
|
|
12
|
-
"scripts": {
|
|
12
|
+
"scripts": {
|
|
13
13
|
"build": "node build.js",
|
|
14
14
|
"clean": "rimraf dist",
|
|
15
15
|
"start": "npx ts-node src/index.ts",
|