@lyxa.ai/core 1.3.35 → 1.3.36
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/blocked-time.model.d.ts +2 -3
- package/dist/libraries/mongo/models/blocked-time.model.js +1 -6
- package/dist/libraries/mongo/models/blocked-time.model.js.map +1 -1
- package/dist/libraries/mongo/models/service-cart.model.d.ts +2 -3
- package/dist/libraries/mongo/models/service-cart.model.js +1 -6
- package/dist/libraries/mongo/models/service-cart.model.js.map +1 -1
- package/dist/libraries/mongo/models/service-order.model.d.ts +2 -3
- package/dist/libraries/mongo/models/service-order.model.js +1 -6
- package/dist/libraries/mongo/models/service-order.model.js.map +1 -1
- package/dist/types/README.md +1 -1
- package/dist/types/package.json +1 -1
- package/package.json +1 -1
|
@@ -3,9 +3,8 @@ import { Vendor } from "./vendor.model";
|
|
|
3
3
|
import { Professional } from "./professional.model";
|
|
4
4
|
export declare class BlockedTime {
|
|
5
5
|
vendor: Ref<Vendor>;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
timeTo: string;
|
|
6
|
+
timeFrom: Date;
|
|
7
|
+
timeTo: Date;
|
|
9
8
|
professionals: Ref<Professional>[];
|
|
10
9
|
reason?: string;
|
|
11
10
|
createdBy?: Ref<Vendor>;
|
|
@@ -16,7 +16,6 @@ const professional_model_1 = require("./professional.model");
|
|
|
16
16
|
const mongoose_1 = require("mongoose");
|
|
17
17
|
let BlockedTime = class BlockedTime {
|
|
18
18
|
vendor;
|
|
19
|
-
date;
|
|
20
19
|
timeFrom;
|
|
21
20
|
timeTo;
|
|
22
21
|
professionals;
|
|
@@ -31,14 +30,10 @@ __decorate([
|
|
|
31
30
|
__decorate([
|
|
32
31
|
(0, typegoose_1.prop)({ required: true }),
|
|
33
32
|
__metadata("design:type", Date)
|
|
34
|
-
], BlockedTime.prototype, "date", void 0);
|
|
35
|
-
__decorate([
|
|
36
|
-
(0, typegoose_1.prop)({ required: true }),
|
|
37
|
-
__metadata("design:type", String)
|
|
38
33
|
], BlockedTime.prototype, "timeFrom", void 0);
|
|
39
34
|
__decorate([
|
|
40
35
|
(0, typegoose_1.prop)({ required: true }),
|
|
41
|
-
__metadata("design:type",
|
|
36
|
+
__metadata("design:type", Date)
|
|
42
37
|
], BlockedTime.prototype, "timeTo", void 0);
|
|
43
38
|
__decorate([
|
|
44
39
|
(0, typegoose_1.prop)({ ref: () => professional_model_1.Professional, type: () => [mongoose_1.Types.ObjectId] }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blocked-time.model.js","sourceRoot":"/","sources":["libraries/mongo/models/blocked-time.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAsE;AACtE,iDAAwC;AACxC,6DAAoD;AACpD,uCAAiC;AAS1B,IAAM,WAAW,GAAjB,MAAM,WAAW;IAEb,MAAM,CAAe;IAGrB,
|
|
1
|
+
{"version":3,"file":"blocked-time.model.js","sourceRoot":"/","sources":["libraries/mongo/models/blocked-time.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAsE;AACtE,iDAAwC;AACxC,6DAAoD;AACpD,uCAAiC;AAS1B,IAAM,WAAW,GAAjB,MAAM,WAAW;IAEb,MAAM,CAAe;IAGrB,QAAQ,CAAQ;IAGhB,MAAM,CAAQ;IAGd,aAAa,CAAuB;IAGpC,MAAM,CAAU;IAGhB,SAAS,CAAe;CAClC,CAAA;AAlBY,kCAAW;AAEb;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,qBAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CAChB;AAGrB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACP,IAAI;6CAAC;AAGhB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACT,IAAI;2CAAC;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,iCAAY,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,gBAAK,CAAC,QAAQ,CAAC,EAAE,CAAC;;kDACrB;AAGpC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;2CACA;AAGhB;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,qBAAM,EAAE,CAAC;;8CACG;sBAjBtB,WAAW;IAPvB,IAAA,iBAAK,EAAC,EAAE,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAY,EAAC;QACV,aAAa,EAAE;YACX,UAAU,EAAE,cAAc;YAC1B,UAAU,EAAE,IAAI;SACnB;KACJ,CAAC;GACW,WAAW,CAkBvB","sourcesContent":["import { index, modelOptions, prop, Ref } from \"@typegoose/typegoose\";\nimport { Vendor } from \"./vendor.model\";\nimport { Professional } from \"./professional.model\";\nimport { Types } from \"mongoose\";\n\n@index({ vendor: 1, date: 1 })\n@modelOptions({\n schemaOptions: {\n collection: 'blockedTimes',\n timestamps: true\n }\n})\nexport class BlockedTime {\n @prop({ ref: () => Vendor, required: true })\n public vendor!: Ref<Vendor>;\n \n @prop({ required: true })\n public timeFrom!: Date; \n\n @prop({ required: true })\n public timeTo!: Date; \n \n @prop({ ref: () => Professional, type: () => [Types.ObjectId] })\n public professionals!: Ref<Professional>[];\n\n @prop({ type: String })\n public reason?: string;\n\n @prop({ ref: () => Vendor })\n public createdBy?: Ref<Vendor>;\n}"]}
|
|
@@ -11,9 +11,8 @@ export declare class ServiceCart extends TimeStamps {
|
|
|
11
11
|
vendor: Ref<Vendor>;
|
|
12
12
|
service: Ref<Service>;
|
|
13
13
|
serviceLocation?: UserAddress;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
timeTo: string;
|
|
14
|
+
timeFrom: Date;
|
|
15
|
+
timeTo: Date;
|
|
17
16
|
recurrencePattern?: ServiceOrderRecurrencePattern;
|
|
18
17
|
status: ServiceCartStatus;
|
|
19
18
|
serviceLineItems: Ref<ServiceLineItem>[];
|
|
@@ -23,7 +23,6 @@ let ServiceCart = class ServiceCart extends defaultClasses_1.TimeStamps {
|
|
|
23
23
|
vendor;
|
|
24
24
|
service;
|
|
25
25
|
serviceLocation;
|
|
26
|
-
date;
|
|
27
26
|
timeFrom;
|
|
28
27
|
timeTo;
|
|
29
28
|
recurrencePattern;
|
|
@@ -50,14 +49,10 @@ __decorate([
|
|
|
50
49
|
__decorate([
|
|
51
50
|
(0, typegoose_1.prop)({ required: true }),
|
|
52
51
|
__metadata("design:type", Date)
|
|
53
|
-
], ServiceCart.prototype, "date", void 0);
|
|
54
|
-
__decorate([
|
|
55
|
-
(0, typegoose_1.prop)({ required: true }),
|
|
56
|
-
__metadata("design:type", String)
|
|
57
52
|
], ServiceCart.prototype, "timeFrom", void 0);
|
|
58
53
|
__decorate([
|
|
59
54
|
(0, typegoose_1.prop)({ required: true }),
|
|
60
|
-
__metadata("design:type",
|
|
55
|
+
__metadata("design:type", Date)
|
|
61
56
|
], ServiceCart.prototype, "timeTo", void 0);
|
|
62
57
|
__decorate([
|
|
63
58
|
(0, typegoose_1.prop)({ enum: enum_1.ServiceOrderRecurrencePattern, default: enum_1.ServiceOrderRecurrencePattern.ONETIME }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service-cart.model.js","sourceRoot":"/","sources":["libraries/mongo/models/service-cart.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAgF;AAChF,4EAAqE;AACrE,6CAAoC;AACpC,iDAAwC;AACxC,kDAA2F;AAC3F,uEAA4D;AAC5D,0DAAqD;AAErD,mDAA0C;
|
|
1
|
+
{"version":3,"file":"service-cart.model.js","sourceRoot":"/","sources":["libraries/mongo/models/service-cart.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAgF;AAChF,4EAAqE;AACrE,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;QACjC,QAAQ,EAAE,IAAI;KACd,CAAC;;2CACgC;AAO3B;IALN,IAAA,gBAAI,EAAC;QACL,GAAG,EAAE,GAAG,EAAE,CAAC,yCAAe;QAC1B,YAAY,EAAE,MAAM;QACpB,UAAU,EAAE,KAAK;KACjB,CAAC;;qDAC8C;sBAnCpC,WAAW;IAvBvB,IAAA,wBAAY,EAAC;QACb,aAAa,EAAE;YACd,UAAU,EAAE,cAAc;YAC1B,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;YAC1B,QAAQ,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;SAC5B;QACD,OAAO,EAAE;YACR,UAAU,EAAE,oBAAQ,CAAC,KAAK;SAC1B;KACD,CAAC;IACD,IAAA,iBAAK,EAAC,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC;IAClB,IAAA,iBAAK,EAAC,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC;IACpB,IAAA,iBAAK,EAAC,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC;IACpB,IAAA,iBAAK,EACL,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,EACtB;QACC,MAAM,EAAE,IAAI;QACZ,uBAAuB,EAAE;YACxB,MAAM,EAAE,EAAE,GAAG,EAAE,CAAC,wBAAiB,CAAC,MAAM,EAAE,wBAAiB,CAAC,MAAM,CAAC,EAAE;YACrE,SAAS,EAAE,IAAI;SACf;KACD,CACD;GACY,WAAW,CAoCvB","sourcesContent":["import { Index, modelOptions, prop, Ref, Severity } from '@typegoose/typegoose';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\nimport { User } from './user.model';\nimport { Vendor } from './vendor.model';\nimport { ServiceOrderRecurrencePattern, ServiceCartStatus } from '../../../utilities/enum';\nimport { ServiceLineItem } from './service-line-item.model';\nimport { UserAddress } from './shared/address.model';\nimport { StartEndTime } from './shared/work-hour.model';\nimport { Service } from './service.model';\nimport { DateToString } from 'mongoose';\n\n@modelOptions({\n\tschemaOptions: {\n\t\tcollection: 'serviceCarts',\n\t\ttoJSON: { virtuals: true },\n\t\ttoObject: { virtuals: true },\n\t},\n\toptions: {\n\t\tallowMixed: Severity.ALLOW,\n\t},\n})\n@Index({ user: 1 })\n@Index({ vendor: 1 })\n@Index({ status: 1 })\n@Index(\n\t{ user: 1, vendor: 1 },\n\t{\n\t\tunique: true,\n\t\tpartialFilterExpression: {\n\t\t\tstatus: { $in: [ServiceCartStatus.ACTIVE, ServiceCartStatus.LOCKED] },\n\t\t\tdeletedAt: null,\n\t\t},\n\t}\n)\nexport class ServiceCart extends TimeStamps {\n\t@prop({ required: true, ref: () => User })\n\tpublic user!: Ref<User>;\n\n\t@prop({ required: true, ref: () => Vendor })\n\tpublic vendor!: Ref<Vendor>;\n\n\t@prop({ required: true, ref: () => Service })\n\tpublic service!: Ref<Service>;\n\n\t@prop({ required: false, type: UserAddress })\n\tpublic serviceLocation?: UserAddress;\n\n\t@prop({ required: true })\n\tpublic timeFrom!: Date;\n\n\t@prop({ required: true })\n\tpublic timeTo!: Date;\n\n\t@prop({ enum: ServiceOrderRecurrencePattern, default: ServiceOrderRecurrencePattern.ONETIME })\n\tpublic recurrencePattern?: ServiceOrderRecurrencePattern\n\n\t@prop({\n\t\tenum: ServiceCartStatus,\n\t\ttype: String,\n\t\tdefault: ServiceCartStatus.ACTIVE,\n\t\trequired: true,\n\t})\n\tpublic status!: ServiceCartStatus;\n\n\t@prop({\n\t\tref: () => ServiceLineItem,\n\t\tforeignField: 'cart',\n\t\tlocalField: '_id',\n\t})\n\tpublic serviceLineItems: Ref<ServiceLineItem>[];\n}\n"]}
|
|
@@ -19,9 +19,8 @@ export declare class ServiceOrder {
|
|
|
19
19
|
cart: Ref<ServiceCart>;
|
|
20
20
|
status: ServiceOrderStatus;
|
|
21
21
|
priority: ServiceOrderPriority;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
timeTo: string;
|
|
22
|
+
timeFrom: Date;
|
|
23
|
+
timeTo: Date;
|
|
25
24
|
userNotes?: string;
|
|
26
25
|
vendorNotes?: string;
|
|
27
26
|
professionals: Ref<Professional>[];
|
|
@@ -32,7 +32,6 @@ let ServiceOrder = class ServiceOrder {
|
|
|
32
32
|
cart;
|
|
33
33
|
status;
|
|
34
34
|
priority;
|
|
35
|
-
date;
|
|
36
35
|
timeFrom;
|
|
37
36
|
timeTo;
|
|
38
37
|
userNotes;
|
|
@@ -88,14 +87,10 @@ __decorate([
|
|
|
88
87
|
__decorate([
|
|
89
88
|
(0, typegoose_1.prop)({ required: true }),
|
|
90
89
|
__metadata("design:type", Date)
|
|
91
|
-
], ServiceOrder.prototype, "date", void 0);
|
|
92
|
-
__decorate([
|
|
93
|
-
(0, typegoose_1.prop)({ required: true }),
|
|
94
|
-
__metadata("design:type", String)
|
|
95
90
|
], ServiceOrder.prototype, "timeFrom", void 0);
|
|
96
91
|
__decorate([
|
|
97
92
|
(0, typegoose_1.prop)({ required: true }),
|
|
98
|
-
__metadata("design:type",
|
|
93
|
+
__metadata("design:type", Date)
|
|
99
94
|
], ServiceOrder.prototype, "timeTo", void 0);
|
|
100
95
|
__decorate([
|
|
101
96
|
(0, typegoose_1.prop)({ type: String }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service-order.model.js","sourceRoot":"/","sources":["libraries/mongo/models/service-order.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA+D;AAC/D,6CAAoC;AACpC,iDAAwC;AAExC,kDAAiI;AACjI,6DAAoD;AACpD,wEAA8D;AAC9D,kFAAuE;AACvE,6DAAmD;AACnD,oFAA0E;AAC1E,wFAA6E;AAC7E,oFAA0E;AAC1E,4EAA8E;AAC9E,mDAA0C;AAE1C,uCAAiC;AAO1B,IAAM,YAAY,GAAlB,MAAM,YAAY;IAEd,OAAO,CAAS;IAGhB,OAAO,CAAe;IAGtB,IAAI,CAAY;IAGhB,MAAM,CAAc;IAGpB,IAAI,CAAmB;IAG9B,MAAM,CA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IAAI,EAAE,MAAM,EAAE,CAAC;;qDACS;AAGzB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;gDACG;uBAtFjB,YAAY;IALxB,IAAA,wBAAY,EAAC;QACV,aAAa,EAAE;YACX,UAAU,EAAE,cAAc;SAC7B;KACJ,CAAC;GACW,YAAY,CAuFxB","sourcesContent":["import { modelOptions, prop, Ref } from \"@typegoose/typegoose\";\nimport { User } from \"./user.model\";\nimport { Vendor } from \"./vendor.model\";\nimport { ServicePackage } from \"./service-package.model\";\nimport { ServiceOrderRecurrencePattern, PaymentMethod, ServiceOrderPriority, ServiceOrderStatus } from \"../../../utilities/enum\";\nimport { Professional } from \"./professional.model\";\nimport { ServiceTimer } from \"./embedded/service-timer.model\";\nimport { ServiceOrderFlag } from \"./embedded/service-order-flag.model\";\nimport { ServiceCart } from \"./service-cart.model\";\nimport { PaymentInformation } from \"./embedded/payment-infromation.model\";\nimport { ServiceOrderFinance } from \"./embedded/service-order-finance.model\";\nimport { ServiceOrderCancel } from \"./embedded/service-order-cance.model\";\nimport { ServiceOrderStatusTimeline } from \"./embedded/status-timeline.model\";\nimport { Service } from \"./service.model\";\nimport { StartEndTime } from \"./shared/work-hour.model\";\nimport { Types } from \"mongoose\";\n\n@modelOptions({\n schemaOptions: {\n collection: \"serviceOrder\"\n }\n})\nexport class ServiceOrder {\n @prop({ type: String, required: true, unique: true })\n public orderId!: string\n\n @prop({ ref: () => Service, required: true })\n public service!: Ref<Service>\n\n @prop({ ref: () => User, required: true })\n public user!: Ref<User>\n\n @prop({ ref: () => Vendor, required: true })\n public vendor!: Ref<Vendor>\n\n @prop({ ref: () => ServiceCart, required: true })\n public cart!: Ref<ServiceCart>\n\n @prop({ enum: ServiceOrderStatus, default: ServiceOrderStatus.PENDING })\n status!: ServiceOrderStatus\n\n @prop({ enum: ServiceOrderPriority, default: ServiceOrderPriority.NORMAL })\n public priority!: ServiceOrderPriority\n\n @prop({ required: true })\n public timeFrom!: Date;\n\n @prop({ required: true })\n public timeTo!: Date;\n\n @prop({ type: String })\n public userNotes?: string;\n\n @prop({ type: String })\n public vendorNotes?: string;\n\n @prop({ ref: () => Professional, type: () => [Types.ObjectId] })\n public professionals!: Ref<Professional>[];\n\n @prop({ type: () => ServiceTimer })\n public serviceTimer?: ServiceTimer\n\n @prop({ type: () => ServiceOrderFlag })\n public flag?: ServiceOrderFlag\n\n @prop()\n public confirmedAt?: Date;\n\n @prop()\n public autoConfirmedAt?: Date;\n\n @prop({ default: false })\n public isUrgent!: boolean;\n\n @prop()\n public urgentAt?: Date;\n\n @prop({ default: false })\n public isOverdue!: boolean;\n\n @prop()\n public overdueAt?: Date;\n\n @prop({ required: true, type: ServiceOrderFinance })\n public finance: ServiceOrderFinance\n\n @prop({ enum: ServiceOrderRecurrencePattern, default: ServiceOrderRecurrencePattern.ONETIME })\n public recurrencePattern?: ServiceOrderRecurrencePattern\n\n @prop({ default: false })\n public isPaid!: boolean;\n\n @prop({ enum: PaymentMethod, type: String })\n public paymentMethod?: PaymentMethod;\n\n @prop({ type: () => PaymentInformation })\n public paymentInformation?: PaymentInformation;\n\n @prop({ type: () => ServiceOrderCancel })\n public orderCancel?: ServiceOrderCancel;\n\n @prop({ type: () => [ServiceOrderStatusTimeline], default: [] })\n public statusTimeline: ServiceOrderStatusTimeline[];\n\n @prop({ type: Number })\n public serviceDuration!: number; // minutes\n\n @prop({ type: Number })\n public bufferTime: number; // minutes\n}"]}
|
package/dist/types/README.md
CHANGED
package/dist/types/package.json
CHANGED