@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.
- package/dist/libraries/mongo/models/professional-schedule.d.ts +1 -1
- package/dist/libraries/mongo/models/professional-schedule.js +6 -2
- package/dist/libraries/mongo/models/professional-schedule.js.map +1 -1
- package/dist/types/README.md +1 -1
- package/dist/types/package.json +1 -1
- package/package.json +1 -1
|
@@ -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",
|
|
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":"
|
|
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,YAAY,CAAoB;IAGhC,cAAc,CAAwB;IAItC,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,EAAC,IAAI,EAAE,GAAE,EAAE,CAAC,CAAC,kBAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC;;4DAC5B;AAItC;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\";\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}"]}
|
package/dist/types/README.md
CHANGED
package/dist/types/package.json
CHANGED