@lyxa.ai/core 1.0.301 → 1.0.302

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.
@@ -0,0 +1,6 @@
1
+ import { Ref } from "@typegoose/typegoose";
2
+ import { Service } from "../service.model";
3
+ export declare class Capacity {
4
+ service: Ref<Service>;
5
+ numberOfProfessional: number;
6
+ }
@@ -0,0 +1,28 @@
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
@@ -0,0 +1 @@
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}"]}
@@ -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} "]}
@@ -1,11 +1,14 @@
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";
4
5
  export declare class VendorSettings {
5
6
  vendor: Ref<Vendor>;
6
7
  slotBufferTime: number;
8
+ slotInterval: number;
7
9
  frequencyConfigs: FrequencyConfig[];
8
10
  servicePreparationTime: number;
9
11
  maxBookingsPerSlot: number;
10
12
  autoUrgencyTimeLimit: number;
13
+ capacity?: Capacity;
11
14
  }
@@ -12,13 +12,16 @@ 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");
15
16
  class VendorSettings {
16
17
  vendor;
17
18
  slotBufferTime;
19
+ slotInterval;
18
20
  frequencyConfigs;
19
21
  servicePreparationTime;
20
22
  maxBookingsPerSlot;
21
23
  autoUrgencyTimeLimit;
24
+ capacity;
22
25
  }
23
26
  exports.VendorSettings = VendorSettings;
24
27
  __decorate([
@@ -30,13 +33,20 @@ __decorate([
30
33
  ], VendorSettings.prototype, "vendor", void 0);
31
34
  __decorate([
32
35
  (0, typegoose_1.prop)({
33
- required: true,
34
36
  min: 5,
35
37
  max: 60,
36
38
  default: 5
37
39
  }),
38
40
  __metadata("design:type", Number)
39
41
  ], VendorSettings.prototype, "slotBufferTime", void 0);
42
+ __decorate([
43
+ (0, typegoose_1.prop)({
44
+ min: 30,
45
+ max: 120,
46
+ default: 30
47
+ }),
48
+ __metadata("design:type", Number)
49
+ ], VendorSettings.prototype, "slotInterval", void 0);
40
50
  __decorate([
41
51
  (0, typegoose_1.prop)({ required: true }),
42
52
  __metadata("design:type", Array)
@@ -68,4 +78,8 @@ __decorate([
68
78
  }),
69
79
  __metadata("design:type", Number)
70
80
  ], VendorSettings.prototype, "autoUrgencyTimeLimit", void 0);
81
+ __decorate([
82
+ (0, typegoose_1.prop)(),
83
+ __metadata("design:type", capacity_model_1.Capacity)
84
+ ], VendorSettings.prototype, "capacity", void 0);
71
85
  //# 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;AAGxC,MAAa,cAAc;IAKhB,MAAM,CAAc;IAQpB,cAAc,CAAS;IAGvB,gBAAgB,CAAoB;IASpC,sBAAsB,CAAU;IAOhC,kBAAkB,CAAU;IAQ5B,oBAAoB,CAAU;CACxC;AAzCD,wCAyCC;AApCU;IAJN,IAAA,gBAAI,EAAC;QACF,QAAQ,EAAE,IAAI;QACd,GAAG,EAAE,GAAG,EAAE,CAAC,qBAAM;KACpB,CAAC;;8CACyB;AAQpB;IANN,IAAA,gBAAI,EAAC;QACF,QAAQ,EAAE,IAAI;QACd,GAAG,EAAE,CAAC;QACN,GAAG,EAAE,EAAE;QACP,OAAO,EAAE,CAAC;KACb,CAAC;;sDAC4B;AAGvB;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","sourcesContent":["import { prop, Ref } from \"@typegoose/typegoose\";\nimport { Vendor } from \"./vendor.model\";\nimport { FrequencyConfig } from \"./embedded/frequency-configuration.model\";\n\nexport class VendorSettings {\n @prop({\n required: true,\n ref: () => Vendor\n })\n public vendor!: Ref<Vendor>\n\n @prop({\n required: true,\n min: 5,\n max: 60,\n default: 5\n })\n public slotBufferTime!: 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}"]}
1
+ {"version":3,"file":"vendor-settings.model.js","sourceRoot":"/","sources":["libraries/mongo/models/vendor-settings.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiD;AACjD,iDAAwC;AAExC,8DAAqD;AAErD,MAAa,cAAc;IAKhB,MAAM,CAAc;IAOpB,cAAc,CAAS;IAOvB,YAAY,CAAQ;IAGpB,gBAAgB,CAAoB;IASpC,sBAAsB,CAAU;IAOhC,kBAAkB,CAAU;IAQ5B,oBAAoB,CAAU;IAG9B,QAAQ,CAAW;CAC7B;AAlDD,wCAkDC;AA7CU;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;AAG9B;IADN,IAAA,gBAAI,GAAE;8BACW,yBAAQ;gDAAA","sourcesContent":["import { prop, Ref } from \"@typegoose/typegoose\";\nimport { Vendor } from \"./vendor.model\";\nimport { FrequencyConfig } from \"./embedded/frequency-configuration.model\";\nimport { Capacity } from \"./embedded/capacity.model\";\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 public capacity?: Capacity\n}"]}
@@ -22,7 +22,7 @@ Perfect for sharing types between frontend and backend applications.
22
22
 
23
23
  ## Version
24
24
 
25
- Version: 1.0.301
25
+ Version: 1.0.302
26
26
 
27
27
  ## Dependencies
28
28
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lyxa.ai/types",
3
- "version": "1.0.301",
3
+ "version": "1.0.302",
4
4
  "description": "Lyxa type definitions and validation schemas for both frontend and backend",
5
5
  "author": "elie <42282499+Internalizable@users.noreply.github.com>",
6
6
  "license": "MIT",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lyxa.ai/core",
3
- "version": "1.0.301",
3
+ "version": "1.0.302",
4
4
  "description": "The Core system of the Lyxa services.",
5
5
  "author": "elie <42282499+Internalizable@users.noreply.github.com>",
6
6
  "license": "MIT",