@lyxa.ai/core 1.0.365 → 1.0.367
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/admin-access-control.model.js +1 -1
- package/dist/libraries/mongo/models/admin-access-control.model.js.map +1 -1
- package/dist/libraries/mongo/models/gallery.model.js +1 -1
- package/dist/libraries/mongo/models/gallery.model.js.map +1 -1
- package/dist/libraries/mongo/models/service-order.model.d.ts +3 -2
- package/dist/libraries/mongo/models/service-order.model.js +6 -5
- 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
|
@@ -31,7 +31,7 @@ let AdminAccessControl = class AdminAccessControl extends defaultClasses_1.TimeS
|
|
|
31
31
|
};
|
|
32
32
|
exports.AdminAccessControl = AdminAccessControl;
|
|
33
33
|
__decorate([
|
|
34
|
-
(0, typegoose_1.prop)({ required: true, type: String
|
|
34
|
+
(0, typegoose_1.prop)({ required: true, type: String }),
|
|
35
35
|
__metadata("design:type", String)
|
|
36
36
|
], AdminAccessControl.prototype, "email", void 0);
|
|
37
37
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin-access-control.model.js","sourceRoot":"/","sources":["libraries/mongo/models/admin-access-control.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,oDAA2E;AAC3E,4EAAqE;AACrE,wDAA8B;AAC9B,kDAAsE;AACtE,+CAAsC;AAGtC,KAAK,UAAU,YAAY,CAAC,QAAgB;IAC3C,MAAM,IAAI,GAAG,MAAM,kBAAM,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IACtC,OAAO,kBAAM,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;AACpC,CAAC;AAoBM,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,2BAAU;IAE1C,KAAK,CAAU;IAGf,QAAQ,CAAU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;QACZ,IAAI,EAAE,uBAAgB;QACtB,OAAO,EAAE,uBAAgB,CAAC,OAAO;KACjC,CAAC;;wDACqC;6BAlB3B,kBAAkB;IAlB9B,IAAA,eAAG,EAAqB,MAAM,EAAE,KAAK,WAAW,IAAI;QACpD,IAAI,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE,CAAC;YACjC,IAAI,CAAC,QAAQ,GAAG,MAAM,YAAY,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACnD,CAAC;QACD,IAAI,EAAE,CAAC;IACR,CAAC,CAAC;IAED,IAAA,eAAG,EAAiC,kBAAkB,EAAE,KAAK,WAAW,IAAI;QAC5E,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,EAAyB,CAAC;QACvD,IAAI,MAAM,EAAE,QAAQ,EAAE,CAAC;YACtB,MAAM,CAAC,QAAQ,GAAG,MAAM,YAAY,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;YACtD,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QACxB,CAAC;QACD,IAAI,EAAE,CAAC;IACR,CAAC,CAAC;IAED,IAAA,iBAAK,EAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,uBAAuB,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,CAAC;IACnF,IAAA,wBAAY,EAAC,EAAE,aAAa,EAAE,EAAE,UAAU,EAAE,qBAAqB,EAAE,EAAE,CAAC;GAC1D,kBAAkB,CAmB9B","sourcesContent":["import { modelOptions, prop, pre, Ref, index } from '@typegoose/typegoose';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\nimport bcrypt from 'bcryptjs';\nimport { AdminRole, ShopOnlineStatus } from '../../../utilities/enum';\nimport { Admin } from './admin.model';\nimport { Query } from 'mongoose';\n\nasync function hashPassword(password: string): Promise<string> {\n\tconst salt = await bcrypt.genSalt(10);\n\treturn bcrypt.hash(password, salt);\n}\n\n@pre<AdminAccessControl>('save', async function (next) {\n\tif (this.isModified('password')) {\n\t\tthis.password = await hashPassword(this.password);\n\t}\n\tnext();\n})\n\n@pre<Query<any, AdminAccessControl>>('findOneAndUpdate', async function (next) {\n\tconst update = this.getUpdate() as Record<string, any>;\n\tif (update?.password) {\n\t\tupdate.password = await hashPassword(update.password);\n\t\tthis.setUpdate(update);\n\t}\n\tnext();\n})\n\n@index({ email: 1 }, { unique: true, partialFilterExpression: { deletedAt: null } })\n@modelOptions({ schemaOptions: { collection: 'adminAccessControls' } })\nexport class AdminAccessControl extends TimeStamps {\n\t@prop({ required: true, type: String})\n\tpublic email!: string;\n\n\t@prop({ required: true, type: String })\n\tpublic password!: string;\n\n\t@prop({ required: true, ref: () => Admin })\n\tpublic admin!: Ref<Admin>;\n\n\t@prop({ required: true, type: String, enum: AdminRole })\n\tpublic role!: AdminRole;\n\n\t@prop({\n\t\ttype: String,\n\t\tenum: ShopOnlineStatus,\n\t\tdefault: ShopOnlineStatus.OFFLINE,\n\t})\n\tpublic onlineStatus?: ShopOnlineStatus;\n}\n"]}
|
|
@@ -44,7 +44,7 @@ __decorate([
|
|
|
44
44
|
__metadata("design:type", Object)
|
|
45
45
|
], Gallery.prototype, "category", void 0);
|
|
46
46
|
__decorate([
|
|
47
|
-
(0, typegoose_1.prop)({ type: String }),
|
|
47
|
+
(0, typegoose_1.prop)({ type: String, maxlength: 50 }),
|
|
48
48
|
__metadata("design:type", String)
|
|
49
49
|
], Gallery.prototype, "brand", void 0);
|
|
50
50
|
exports.Gallery = Gallery = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gallery.model.js","sourceRoot":"/","sources":["libraries/mongo/models/gallery.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAsE;AACtE,4EAAqE;AACrE,kDAAoD;AACpD,qDAA4C;AAIrC,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,2BAAU;IAE/B,KAAK,CAAU;IAGf,SAA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AM,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC;;sCAC9C;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAS,EAAE,OAAO,EAAE,gBAAS,CAAC,KAAK,EAAE,CAAC;;0CACrC;AAGtB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC;;0CACb;AAGrB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;qCAClB;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,yBAAQ,EAAE,CAAC;;yCACE;AAGzB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC;;sCAChB;kBAjBV,OAAO;IAFnB,IAAA,wBAAY,EAAC,EAAE,aAAa,EAAE,EAAE,UAAU,EAAE,WAAW,EAAE,EAAE,CAAC;IAC5D,IAAA,iBAAK,EAAC,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC;GACZ,OAAO,CAkBnB","sourcesContent":["import { index, modelOptions, prop, Ref } from '@typegoose/typegoose';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\nimport { MediaType } from '../../../utilities/enum';\nimport { Category } from './category.model';\n\n@modelOptions({ schemaOptions: { collection: 'galleries' } })\n@index({ title: 'text' })\nexport class Gallery extends TimeStamps {\n\t@prop({ required: true, unique: true, type: String, maxlength: 50 })\n\tpublic title!: string;\n\n\t@prop({ type: String, enum: MediaType, default: MediaType.IMAGE })\n\tpublic mediaType?: MediaType;\n\n\t@prop({ required: true, type: [String] })\n\tpublic mediaUrls!: string[];\n\n\t@prop({ required: true, type: String })\n\tpublic logo?: string;\n\n\t@prop({ ref: () => Category })\n\tpublic category?: Ref<Category>;\n\n\t@prop({ type: String, maxlength: 50 })\n\tpublic brand?: string;\n}\n"]}
|
|
@@ -11,6 +11,7 @@ import { ServiceOrderFinance } from "./embedded/service-order-finance.model";
|
|
|
11
11
|
import { ServiceOrderCancel } from "./embedded/service-order-cance.model";
|
|
12
12
|
import { ServiceOrderStatusTimeline } from "./embedded/status-timeline.model";
|
|
13
13
|
import { Service } from "./service.model";
|
|
14
|
+
import { StartEndTime } from "./shared/work-hour.model";
|
|
14
15
|
export declare class ServiceOrder {
|
|
15
16
|
orderId: string;
|
|
16
17
|
service: Ref<Service>;
|
|
@@ -19,8 +20,8 @@ export declare class ServiceOrder {
|
|
|
19
20
|
cart: Ref<ServiceCart>;
|
|
20
21
|
status: ServiceOrderStatus;
|
|
21
22
|
priority: ServiceOrderPriority;
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
date: Date;
|
|
24
|
+
timeSlot: StartEndTime;
|
|
24
25
|
hoursRequired?: number;
|
|
25
26
|
userNotes?: string;
|
|
26
27
|
vendorNotes?: string;
|
|
@@ -23,6 +23,7 @@ const service_order_finance_model_1 = require("./embedded/service-order-finance.
|
|
|
23
23
|
const service_order_cance_model_1 = require("./embedded/service-order-cance.model");
|
|
24
24
|
const status_timeline_model_1 = require("./embedded/status-timeline.model");
|
|
25
25
|
const service_model_1 = require("./service.model");
|
|
26
|
+
const work_hour_model_1 = require("./shared/work-hour.model");
|
|
26
27
|
let ServiceOrder = class ServiceOrder {
|
|
27
28
|
orderId;
|
|
28
29
|
service;
|
|
@@ -31,8 +32,8 @@ let ServiceOrder = class ServiceOrder {
|
|
|
31
32
|
cart;
|
|
32
33
|
status;
|
|
33
34
|
priority;
|
|
34
|
-
|
|
35
|
-
|
|
35
|
+
date;
|
|
36
|
+
timeSlot;
|
|
36
37
|
hoursRequired;
|
|
37
38
|
userNotes;
|
|
38
39
|
vendorNotes;
|
|
@@ -85,11 +86,11 @@ __decorate([
|
|
|
85
86
|
__decorate([
|
|
86
87
|
(0, typegoose_1.prop)({ required: true }),
|
|
87
88
|
__metadata("design:type", Date)
|
|
88
|
-
], ServiceOrder.prototype, "
|
|
89
|
+
], ServiceOrder.prototype, "date", void 0);
|
|
89
90
|
__decorate([
|
|
90
91
|
(0, typegoose_1.prop)({ required: true }),
|
|
91
|
-
__metadata("design:type",
|
|
92
|
-
], ServiceOrder.prototype, "
|
|
92
|
+
__metadata("design:type", work_hour_model_1.StartEndTime)
|
|
93
|
+
], ServiceOrder.prototype, "timeSlot", void 0);
|
|
93
94
|
__decorate([
|
|
94
95
|
(0, typegoose_1.prop)({ type: Number }),
|
|
95
96
|
__metadata("design:type", Number)
|
|
@@ -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;
|
|
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;AAC1C,8DAAwD;AAOjD,IAAM,YAAY,GAAlB,MAAM,YAAY;IAEd,OAAO,CAAS;IAGhB,OAAO,CAAe;IAGtB,IAAI,CAAY;IAGhB,MAAM,CAAc;IAGpB,IAAI,CAAmB;IAG9B,MAAM,CAAqB;IAGpB,QAAQ,CAAuB;IAG/B,IAAI,CAAO;IAGX,QAAQ,CAAe;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C,EAAE,IAAI,EAAE,oCAA6B,EAAE,OAAO,EAAE,oCAA6B,CAAC,OAAO,EAAE,CAAC;;uDACtC;AAGjD;IADN,IAAA,gBAAI,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;4CACD;AAGjB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,oBAAa,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;mDACP;AAG9B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,8CAAkB,EAAE,CAAC;8BACb,8CAAkB;wDAAC;AAGxC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,8CAAkB,EAAE,CAAC;8BACpB,8CAAkB;iDAAC;AAGjC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,kDAA0B,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;oDACZ;uBAnF3C,YAAY;IALxB,IAAA,wBAAY,EAAC;QACV,aAAa,EAAE;YACX,UAAU,EAAE,cAAc;SAC7B;KACJ,CAAC;GACW,YAAY,CAoFxB","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\";\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 date!: Date\n\n @prop({ required: true })\n public timeSlot!: StartEndTime\n\n @prop({ type: Number })\n public hoursRequired?: number;\n\n @prop({ type: String })\n public userNotes?: string;\n\n @prop({ type: String })\n public vendorNotes?: string;\n\n @prop({ ref: () => Professional })\n public professional?: 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}"]}
|
package/dist/types/README.md
CHANGED
package/dist/types/package.json
CHANGED