@lyxa.ai/core 1.0.320 → 1.0.321

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.
@@ -1,8 +1,5 @@
1
- import { Ref } from '@typegoose/typegoose';
2
- import { Vendor } from '../vendor.model';
3
1
  import { FrequencyConfig } from './frequency-configuration.model';
4
2
  export declare class ServiceOrderSettings {
5
- vendor: Ref<Vendor>;
6
3
  slotBufferTime: number;
7
4
  slotInterval: number;
8
5
  frequencyConfigs: FrequencyConfig[];
@@ -11,9 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.ServiceOrderSettings = void 0;
13
13
  const typegoose_1 = require("@typegoose/typegoose");
14
- const vendor_model_1 = require("../vendor.model");
15
14
  let ServiceOrderSettings = class ServiceOrderSettings {
16
- vendor;
17
15
  slotBufferTime;
18
16
  slotInterval;
19
17
  frequencyConfigs;
@@ -23,13 +21,6 @@ let ServiceOrderSettings = class ServiceOrderSettings {
23
21
  numberOfProfessionalsPerDay;
24
22
  };
25
23
  exports.ServiceOrderSettings = ServiceOrderSettings;
26
- __decorate([
27
- (0, typegoose_1.prop)({
28
- required: true,
29
- ref: () => vendor_model_1.Vendor,
30
- }),
31
- __metadata("design:type", Object)
32
- ], ServiceOrderSettings.prototype, "vendor", void 0);
33
24
  __decorate([
34
25
  (0, typegoose_1.prop)({
35
26
  min: 5,
@@ -1 +1 @@
1
- {"version":3,"file":"service-order-settings.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/service-order-settings.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA+D;AAC/D,kDAAyC;AAIlC,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAKzB,MAAM,CAAe;IAOrB,cAAc,CAAU;IAOxB,YAAY,CAAS;IAGrB,gBAAgB,CAAqB;IASrC,sBAAsB,CAAU;IAOhC,kBAAkB,CAAU;IAQ5B,oBAAoB,CAAU;IAM9B,2BAA2B,CAAU;CAC5C,CAAA;AArDY,oDAAoB;AAKzB;IAJN,IAAA,gBAAI,EAAC;QACL,QAAQ,EAAE,IAAI;QACd,GAAG,EAAE,GAAG,EAAE,CAAC,qBAAM;KACjB,CAAC;;oDAC0B;AAOrB;IALN,IAAA,gBAAI,EAAC;QACL,GAAG,EAAE,CAAC;QACN,GAAG,EAAE,EAAE;QACP,OAAO,EAAE,CAAC;KACV,CAAC;;4DAC6B;AAOxB;IALN,IAAA,gBAAI,EAAC;QACL,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,GAAG;QACR,OAAO,EAAE,EAAE;KACX,CAAC;;0DAC0B;AAGrB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8DACmB;AASrC;IAPN,IAAA,gBAAI,EAAC;QACL,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,MAAM;QACZ,GAAG,EAAE,CAAC;QACN,GAAG,EAAE,GAAG;QACR,OAAO,EAAE,CAAC;KACV,CAAC;;oEACqC;AAOhC;IALN,IAAA,gBAAI,EAAC;QACL,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,CAAC;QACV,GAAG,EAAE,CAAC;KACN,CAAC;;gEACiC;AAQ5B;IANN,IAAA,gBAAI,EAAC;QACL,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,CAAC;QACV,GAAG,EAAE,CAAC;QACN,GAAG,EAAE,EAAE;KACP,CAAC;;kEACmC;AAM9B;IAJN,IAAA,gBAAI,EAAC;QACL,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,MAAM;KACZ,CAAC;;yEAC0C;+BApDhC,oBAAoB;IADhC,IAAA,wBAAY,EAAC,EAAE,aAAa,EAAE,EAAE,UAAU,EAAE,sBAAsB,EAAE,EAAE,CAAC;GAC3D,oBAAoB,CAqDhC","sourcesContent":["import { modelOptions, prop, Ref } from '@typegoose/typegoose';\nimport { Vendor } from '../vendor.model';\nimport { FrequencyConfig } from './frequency-configuration.model';\n\n@modelOptions({ schemaOptions: { collection: 'serviceOrderSettings' } })\nexport class ServiceOrderSettings {\n\t@prop({\n\t\trequired: true,\n\t\tref: () => Vendor,\n\t})\n\tpublic vendor!: Ref<Vendor>;\n\n\t@prop({\n\t\tmin: 5,\n\t\tmax: 60,\n\t\tdefault: 5,\n\t})\n\tpublic slotBufferTime!: number; // minutes\n\n\t@prop({\n\t\tmin: 30,\n\t\tmax: 120,\n\t\tdefault: 30,\n\t})\n\tpublic slotInterval: number; // minutes\n\n\t@prop({ required: true })\n\tpublic frequencyConfigs!: FrequencyConfig[];\n\n\t@prop({\n\t\trequired: true,\n\t\ttype: Number,\n\t\tmin: 0,\n\t\tmax: 200,\n\t\tdefault: 3,\n\t})\n\tpublic servicePreparationTime!: number; // hours\n\n\t@prop({\n\t\trequired: true,\n\t\tdefault: 3,\n\t\tmin: 1,\n\t})\n\tpublic maxBookingsPerSlot!: number;\n\n\t@prop({\n\t\trequired: true,\n\t\tdefault: 6,\n\t\tmin: 0,\n\t\tmax: 72,\n\t})\n\tpublic autoUrgencyTimeLimit!: number; // hours\n\n\t@prop({\n\t\trequired: true,\n\t\ttype: Number,\n\t})\n\tpublic numberOfProfessionalsPerDay!: number;\n}\n"]}
1
+ {"version":3,"file":"service-order-settings.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/service-order-settings.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA+D;AAKxD,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAMzB,cAAc,CAAU;IAOxB,YAAY,CAAS;IAGrB,gBAAgB,CAAqB;IASrC,sBAAsB,CAAU;IAOhC,kBAAkB,CAAU;IAQ5B,oBAAoB,CAAU;IAM9B,2BAA2B,CAAU;CAC5C,CAAA;AA/CY,oDAAoB;AAMzB;IALN,IAAA,gBAAI,EAAC;QACL,GAAG,EAAE,CAAC;QACN,GAAG,EAAE,EAAE;QACP,OAAO,EAAE,CAAC;KACV,CAAC;;4DAC6B;AAOxB;IALN,IAAA,gBAAI,EAAC;QACL,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,GAAG;QACR,OAAO,EAAE,EAAE;KACX,CAAC;;0DAC0B;AAGrB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8DACmB;AASrC;IAPN,IAAA,gBAAI,EAAC;QACL,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,MAAM;QACZ,GAAG,EAAE,CAAC;QACN,GAAG,EAAE,GAAG;QACR,OAAO,EAAE,CAAC;KACV,CAAC;;oEACqC;AAOhC;IALN,IAAA,gBAAI,EAAC;QACL,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,CAAC;QACV,GAAG,EAAE,CAAC;KACN,CAAC;;gEACiC;AAQ5B;IANN,IAAA,gBAAI,EAAC;QACL,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,CAAC;QACV,GAAG,EAAE,CAAC;QACN,GAAG,EAAE,EAAE;KACP,CAAC;;kEACmC;AAM9B;IAJN,IAAA,gBAAI,EAAC;QACL,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,MAAM;KACZ,CAAC;;yEAC0C;+BA9ChC,oBAAoB;IADhC,IAAA,wBAAY,EAAC,EAAE,aAAa,EAAE,EAAE,UAAU,EAAE,sBAAsB,EAAE,EAAE,CAAC;GAC3D,oBAAoB,CA+ChC","sourcesContent":["import { modelOptions, prop, Ref } from '@typegoose/typegoose';\nimport { Vendor } from '../vendor.model';\nimport { FrequencyConfig } from './frequency-configuration.model';\n\n@modelOptions({ schemaOptions: { collection: 'serviceOrderSettings' } })\nexport class ServiceOrderSettings {\n\t@prop({\n\t\tmin: 5,\n\t\tmax: 60,\n\t\tdefault: 5,\n\t})\n\tpublic slotBufferTime!: number; // minutes\n\n\t@prop({\n\t\tmin: 30,\n\t\tmax: 120,\n\t\tdefault: 30,\n\t})\n\tpublic slotInterval: number; // minutes\n\n\t@prop({ required: true })\n\tpublic frequencyConfigs!: FrequencyConfig[];\n\n\t@prop({\n\t\trequired: true,\n\t\ttype: Number,\n\t\tmin: 0,\n\t\tmax: 200,\n\t\tdefault: 3,\n\t})\n\tpublic servicePreparationTime!: number; // hours\n\n\t@prop({\n\t\trequired: true,\n\t\tdefault: 3,\n\t\tmin: 1,\n\t})\n\tpublic maxBookingsPerSlot!: number;\n\n\t@prop({\n\t\trequired: true,\n\t\tdefault: 6,\n\t\tmin: 0,\n\t\tmax: 72,\n\t})\n\tpublic autoUrgencyTimeLimit!: number; // hours\n\n\t@prop({\n\t\trequired: true,\n\t\ttype: Number,\n\t})\n\tpublic numberOfProfessionalsPerDay!: number;\n}\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.320
25
+ Version: 1.0.321
26
26
 
27
27
  ## Dependencies
28
28
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lyxa.ai/types",
3
- "version": "1.0.320",
3
+ "version": "1.0.321",
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.320",
3
+ "version": "1.0.321",
4
4
  "description": "The Core system of the Lyxa services.",
5
5
  "author": "elie <42282499+Internalizable@users.noreply.github.com>",
6
6
  "license": "MIT",