@lyxa.ai/core 1.0.302 → 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/vendor-settings.model.d.ts +1 -2
- package/dist/libraries/mongo/models/vendor-settings.model.js +7 -5
- 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
- package/dist/libraries/mongo/models/embedded/capacity.model.d.ts +0 -6
- package/dist/libraries/mongo/models/embedded/capacity.model.js +0 -28
- package/dist/libraries/mongo/models/embedded/capacity.model.js.map +0 -1
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Ref } from "@typegoose/typegoose";
|
|
2
2
|
import { Vendor } from "./vendor.model";
|
|
3
3
|
import { FrequencyConfig } from "./embedded/frequency-configuration.model";
|
|
4
|
-
import { Capacity } from "./embedded/capacity.model";
|
|
5
4
|
export declare class VendorSettings {
|
|
6
5
|
vendor: Ref<Vendor>;
|
|
7
6
|
slotBufferTime: number;
|
|
@@ -10,5 +9,5 @@ export declare class VendorSettings {
|
|
|
10
9
|
servicePreparationTime: number;
|
|
11
10
|
maxBookingsPerSlot: number;
|
|
12
11
|
autoUrgencyTimeLimit: number;
|
|
13
|
-
|
|
12
|
+
numberOfProfessionalsPerDay: number;
|
|
14
13
|
}
|
|
@@ -12,7 +12,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.VendorSettings = void 0;
|
|
13
13
|
const typegoose_1 = require("@typegoose/typegoose");
|
|
14
14
|
const vendor_model_1 = require("./vendor.model");
|
|
15
|
-
const capacity_model_1 = require("./embedded/capacity.model");
|
|
16
15
|
class VendorSettings {
|
|
17
16
|
vendor;
|
|
18
17
|
slotBufferTime;
|
|
@@ -21,7 +20,7 @@ class VendorSettings {
|
|
|
21
20
|
servicePreparationTime;
|
|
22
21
|
maxBookingsPerSlot;
|
|
23
22
|
autoUrgencyTimeLimit;
|
|
24
|
-
|
|
23
|
+
numberOfProfessionalsPerDay;
|
|
25
24
|
}
|
|
26
25
|
exports.VendorSettings = VendorSettings;
|
|
27
26
|
__decorate([
|
|
@@ -79,7 +78,10 @@ __decorate([
|
|
|
79
78
|
__metadata("design:type", Number)
|
|
80
79
|
], VendorSettings.prototype, "autoUrgencyTimeLimit", void 0);
|
|
81
80
|
__decorate([
|
|
82
|
-
(0, typegoose_1.prop)(
|
|
83
|
-
|
|
84
|
-
|
|
81
|
+
(0, typegoose_1.prop)({
|
|
82
|
+
required: true,
|
|
83
|
+
type: Number
|
|
84
|
+
}),
|
|
85
|
+
__metadata("design:type", Number)
|
|
86
|
+
], VendorSettings.prototype, "numberOfProfessionalsPerDay", void 0);
|
|
85
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",
|
|
@@ -1,28 +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.Capacity = void 0;
|
|
13
|
-
const typegoose_1 = require("@typegoose/typegoose");
|
|
14
|
-
const service_model_1 = require("../service.model");
|
|
15
|
-
class Capacity {
|
|
16
|
-
service;
|
|
17
|
-
numberOfProfessional;
|
|
18
|
-
}
|
|
19
|
-
exports.Capacity = Capacity;
|
|
20
|
-
__decorate([
|
|
21
|
-
(0, typegoose_1.prop)({ ref: () => service_model_1.Service, required: true }),
|
|
22
|
-
__metadata("design:type", Object)
|
|
23
|
-
], Capacity.prototype, "service", void 0);
|
|
24
|
-
__decorate([
|
|
25
|
-
(0, typegoose_1.prop)({ type: Number, required: true }),
|
|
26
|
-
__metadata("design:type", Number)
|
|
27
|
-
], Capacity.prototype, "numberOfProfessional", void 0);
|
|
28
|
-
//# sourceMappingURL=capacity.model.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"capacity.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/capacity.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiD;AACjD,oDAA2C;AAE3C,MAAa,QAAQ;IAEV,OAAO,CAAe;IAGtB,oBAAoB,CAAS;CACvC;AAND,4BAMC;AAJU;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,uBAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCAChB;AAGtB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDACH","sourcesContent":["import { prop, Ref } from \"@typegoose/typegoose\";\nimport { Service } from \"../service.model\";\n\nexport class Capacity {\n @prop({ ref: () => Service, required: true })\n public service!: Ref<Service>\n\n @prop({ type: Number, required: true })\n public numberOfProfessional!: number\n}"]}
|