@lyxa.ai/core 1.0.243 → 1.0.244

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.
@@ -9,7 +9,7 @@ export declare class ProfessionalSchedule {
9
9
  timeTo?: Date;
10
10
  reason?: string;
11
11
  serviceOrder?: Ref<ServiceOrder>;
12
- servicePackage?: Ref<ServicePackage>;
12
+ servicePackage?: Ref<ServicePackage>[];
13
13
  isRecurring: boolean;
14
14
  recurrencePattern?: ProfessionalRecurrencePattern;
15
15
  type: ProfessionalScheduleType;
@@ -8,6 +8,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
8
8
  var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
11
14
  Object.defineProperty(exports, "__esModule", { value: true });
12
15
  exports.ProfessionalSchedule = void 0;
13
16
  const typegoose_1 = require("@typegoose/typegoose");
@@ -15,6 +18,7 @@ const professional_model_1 = require("./professional.model");
15
18
  const enum_1 = require("../../../utilities/enum");
16
19
  const service_order_model_1 = require("./service-order.model");
17
20
  const service_package_model_1 = require("./service-package.model");
21
+ const mongoose_1 = __importDefault(require("mongoose"));
18
22
  let ProfessionalSchedule = class ProfessionalSchedule {
19
23
  professional;
20
24
  timeFrom;
@@ -48,8 +52,8 @@ __decorate([
48
52
  __metadata("design:type", Object)
49
53
  ], ProfessionalSchedule.prototype, "serviceOrder", void 0);
50
54
  __decorate([
51
- (0, typegoose_1.prop)({ ref: () => service_package_model_1.ServicePackage }),
52
- __metadata("design:type", Object)
55
+ (0, typegoose_1.prop)({ ref: () => service_package_model_1.ServicePackage, type: () => [mongoose_1.default.Types.ObjectId] }),
56
+ __metadata("design:type", Array)
53
57
  ], ProfessionalSchedule.prototype, "servicePackage", void 0);
54
58
  __decorate([
55
59
  (0, typegoose_1.prop)({ default: false }),
@@ -1 +1 @@
1
- {"version":3,"file":"professional-schedule.js","sourceRoot":"/","sources":["libraries/mongo/models/professional-schedule.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA+D;AAC/D,6DAAoD;AACpD,kDAAkJ;AAClJ,+DAAqD;AACrD,mEAAyD;AASlD,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAEtB,YAAY,CAAoB;IAGhC,QAAQ,CAAO;IAGf,MAAM,CAAO;IAIb,MAAM,CAAS;IAGf,YAAY,CAAoB;IAGhC,cAAc,CAAsB;IAIpC,WAAW,CAAU;IAGrB,iBAAiB,CAAgC;IAGjD,IAAI,CAA2B;CAEzC,CAAA;AA9BY,oDAAoB;AAEtB;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,iCAAY,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DACX;AAGhC;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACP,IAAI;sDAAA;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACT,IAAI;oDAAA;AAIb;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;oDACD;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,kCAAY,EAAE,CAAC;;0DACK;AAGhC;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,sCAAc,EAAE,CAAC;;4DACO;AAIpC;IADN,IAAA,gBAAI,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;yDACG;AAGrB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,oCAA6B,EAAE,CAAC;;+DACU;AAGjD;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,+BAAwB,EAAE,CAAC;;kDACjC;+BA5B7B,oBAAoB;IANhC,IAAA,wBAAY,EAAC;QACV,aAAa,EAAE;YACX,UAAU,EAAE,uBAAuB;YACnC,UAAU,EAAE,IAAI;SACnB;KACJ,CAAC;GACW,oBAAoB,CA8BhC","sourcesContent":["import { modelOptions, prop, Ref } from \"@typegoose/typegoose\";\nimport { Professional } from \"./professional.model\";\nimport { ProfessionalRecurrencePattern, ProfessionalScheduleType, ProfessionalStatus, ServiceOrderStatus, Status } from \"../../../utilities/enum\";\nimport { ServiceOrder } from \"./service-order.model\";\nimport { ServicePackage } from \"./service-package.model\";\n\n\n@modelOptions({\n schemaOptions: {\n collection: \"professionalSchedules\",\n timestamps: true\n }\n})\nexport class ProfessionalSchedule {\n @prop({ ref: () => Professional, required: true })\n public professional!: Ref<Professional>\n\n @prop({ required: true })\n public timeFrom!: Date\n\n @prop({ required: true })\n public timeTo?: Date\n\n\n @prop({ type: String })\n public reason?: string\n\n @prop({ ref: () => ServiceOrder })\n public serviceOrder?: Ref<ServiceOrder>\n\n @prop({ ref: () => ServicePackage })\n public servicePackage?: Ref<ServicePackage>\n \n\n @prop({ default: false })\n public isRecurring!: boolean\n \n @prop({ enum: ProfessionalRecurrencePattern })\n public recurrencePattern?: ProfessionalRecurrencePattern\n\n @prop({ type: String, required: true, enum: ProfessionalScheduleType })\n public type!: ProfessionalScheduleType\n\n}"]}
1
+ {"version":3,"file":"professional-schedule.js","sourceRoot":"/","sources":["libraries/mongo/models/professional-schedule.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,oDAA+D;AAC/D,6DAAoD;AACpD,kDAAkJ;AAClJ,+DAAqD;AACrD,mEAAyD;AACzD,wDAAgC;AASzB,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAEtB,YAAY,CAAoB;IAGhC,QAAQ,CAAO;IAGf,MAAM,CAAO;IAIb,MAAM,CAAS;IAGf,YA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\nimport { Professional } from \"./professional.model\";\nimport { ProfessionalRecurrencePattern, ProfessionalScheduleType, ProfessionalStatus, ServiceOrderStatus, Status } from \"../../../utilities/enum\";\nimport { ServiceOrder } from \"./service-order.model\";\nimport { ServicePackage } from \"./service-package.model\";\nimport mongoose from \"mongoose\";\n\n\n@modelOptions({\n schemaOptions: {\n collection: \"professionalSchedules\",\n timestamps: true\n }\n})\nexport class ProfessionalSchedule {\n @prop({ ref: () => Professional, required: true })\n public professional!: Ref<Professional>\n\n @prop({ required: true })\n public timeFrom!: Date\n\n @prop({ required: true })\n public timeTo?: Date\n\n\n @prop({ type: String })\n public reason?: string\n\n @prop({ ref: () => ServiceOrder })\n public serviceOrder?: Ref<ServiceOrder>\n\n @prop({ ref: () => ServicePackage,type: ()=> [mongoose.Types.ObjectId] })\n public servicePackage?: Ref<ServicePackage>[]\n \n\n @prop({ default: false })\n public isRecurring!: boolean\n \n @prop({ enum: ProfessionalRecurrencePattern })\n public recurrencePattern?: ProfessionalRecurrencePattern\n\n @prop({ type: String, required: true, enum: ProfessionalScheduleType })\n public type!: ProfessionalScheduleType\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.243
25
+ Version: 1.0.244
26
26
 
27
27
  ## Dependencies
28
28
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lyxa.ai/types",
3
- "version": "1.0.243",
3
+ "version": "1.0.244",
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.243",
3
+ "version": "1.0.244",
4
4
  "description": "The Core system of the Lyxa services.",
5
5
  "author": "elie <42282499+Internalizable@users.noreply.github.com>",
6
6
  "license": "MIT",