@lyxa.ai/core 1.3.43 → 1.3.44
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/providers/service-order-review.model.d.ts +2 -0
- package/dist/libraries/mongo/models/providers/service-order-review.model.js +6 -0
- package/dist/libraries/mongo/models/providers/service-order-review.model.js.map +1 -1
- package/dist/libraries/mongo/models/review.model.d.ts +1 -1
- package/dist/libraries/mongo/models/review.model.js +1 -1
- package/dist/libraries/mongo/models/review.model.js.map +1 -1
- package/dist/types/README.md +1 -1
- package/dist/types/package.json +1 -1
- package/package.json +1 -1
|
@@ -2,7 +2,9 @@ import { Ref } from '@typegoose/typegoose';
|
|
|
2
2
|
import { ServiceOrder } from '../service-order.model';
|
|
3
3
|
import { ReviewType } from '../../../../utilities/enum';
|
|
4
4
|
import { Review } from '../review.model';
|
|
5
|
+
import { Vendor } from '../vendor.model';
|
|
5
6
|
export declare class ServiceOrderReview extends Review {
|
|
6
7
|
reviewType: ReviewType.PROFESSIONAL;
|
|
8
|
+
vendor: Ref<Vendor>;
|
|
7
9
|
serviceOrder: Ref<ServiceOrder>;
|
|
8
10
|
}
|
|
@@ -14,11 +14,17 @@ const typegoose_1 = require("@typegoose/typegoose");
|
|
|
14
14
|
const service_order_model_1 = require("../service-order.model");
|
|
15
15
|
const enum_1 = require("../../../../utilities/enum");
|
|
16
16
|
const review_model_1 = require("../review.model");
|
|
17
|
+
const vendor_model_1 = require("../vendor.model");
|
|
17
18
|
class ServiceOrderReview extends review_model_1.Review {
|
|
18
19
|
reviewType = enum_1.ReviewType.PROFESSIONAL;
|
|
20
|
+
vendor;
|
|
19
21
|
serviceOrder;
|
|
20
22
|
}
|
|
21
23
|
exports.ServiceOrderReview = ServiceOrderReview;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, typegoose_1.prop)({ required: true, ref: () => vendor_model_1.Vendor }),
|
|
26
|
+
__metadata("design:type", Object)
|
|
27
|
+
], ServiceOrderReview.prototype, "vendor", void 0);
|
|
22
28
|
__decorate([
|
|
23
29
|
(0, typegoose_1.prop)({ required: true, ref: () => service_order_model_1.ServiceOrder }),
|
|
24
30
|
__metadata("design:type", Object)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service-order-review.model.js","sourceRoot":"/","sources":["libraries/mongo/models/providers/service-order-review.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiD;AACjD,gEAAsD;AACtD,qDAAwD;AACxD,kDAAyC;AAEzC,MAAa,kBAAmB,SAAQ,qBAAM;IACtC,UAAU,GAAG,iBAAU,CAAC,YAAqB,CAAC;IAG9C,YAAY,CAAqB;CAExC;
|
|
1
|
+
{"version":3,"file":"service-order-review.model.js","sourceRoot":"/","sources":["libraries/mongo/models/providers/service-order-review.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiD;AACjD,gEAAsD;AACtD,qDAAwD;AACxD,kDAAyC;AACzC,kDAAyC;AAEzC,MAAa,kBAAmB,SAAQ,qBAAM;IACtC,UAAU,GAAG,iBAAU,CAAC,YAAqB,CAAC;IAG9C,MAAM,CAAe;IAGrB,YAAY,CAAqB;CAExC;AATD,gDASC;AALO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,qBAAM,EAAE,CAAC;;kDAChB;AAGrB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,kCAAY,EAAE,CAAC;;wDACV","sourcesContent":["import { prop, Ref } from '@typegoose/typegoose';\nimport { ServiceOrder } from '../service-order.model';\nimport { ReviewType } from '../../../../utilities/enum';\nimport { Review } from '../review.model';\nimport { Vendor } from '../vendor.model';\n\nexport class ServiceOrderReview extends Review {\n\tpublic reviewType = ReviewType.PROFESSIONAL as const;\n\n\t@prop({ required: true, ref: () => Vendor })\n\tpublic vendor!: Ref<Vendor>;\n\n\t@prop({ required: true, ref: () => ServiceOrder })\n\tpublic serviceOrder!: Ref<ServiceOrder>;\n\n}\n"]}
|
|
@@ -55,7 +55,7 @@ __decorate([
|
|
|
55
55
|
__metadata("design:type", Object)
|
|
56
56
|
], Review.prototype, "deletedBy", void 0);
|
|
57
57
|
__decorate([
|
|
58
|
-
(0, typegoose_1.prop)({
|
|
58
|
+
(0, typegoose_1.prop)({ type: String }),
|
|
59
59
|
__metadata("design:type", String)
|
|
60
60
|
], Review.prototype, "orderId", void 0);
|
|
61
61
|
exports.Review = Review = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"review.model.js","sourceRoot":"/","sources":["libraries/mongo/models/review.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAsE;AACtE,4EAAqE;AACrE,6CAAoC;AACpC,kDAAqD;AACrD,+CAAsC;AAU/B,IAAM,MAAM,GAAZ,MAAM,MAAO,SAAQ,2BAAU;IAE9B,UAAU,CAAc;IAGxB,IAAI,CAAa;IAGjB,MAAM,CAAU;IAGhB,WAAW,CAAU;IAGrB,IAAI,CAAY;IAGhB,SAAS,CAAW;IAGpB,SAAS,CAAc;IAGvB,OAAO,CAAU;CACxB,CAAA;AAxBY,wBAAM;AAEX;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,iBAAU,EAAE,CAAC;;0CAC1B;AAGxB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,iBAAI,EAAE,CAAC;;oCAClB;AAGjB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;sCAChC;AAGhB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,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E,MAAM,EAAE,CAAC;;2CACK;AAGrB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;oCACrB;AAGhB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;yCACZ;AAGpB;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,mBAAK,EAAE,CAAC;;yCACG;AAGvB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;uCACC;iBAvBZ,MAAM;IARlB,IAAA,wBAAY,EAAC;QACb,aAAa,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,gBAAgB,EAAE,YAAY,EAAE;KACxE,CAAC;IACD,IAAA,iBAAK,EACL,EAAE,KAAK,EAAE,CAAC,EAAE,YAAY,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,EAC5C,EAAE,MAAM,EAAE,IAAI,EAAE,uBAAuB,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,CAC9D;IACA,IAAA,iBAAK,EAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;GACT,MAAM,CAwBlB","sourcesContent":["import { index, modelOptions, prop, Ref } from '@typegoose/typegoose';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\nimport { User } from './user.model';\nimport { ReviewType } from '../../../utilities/enum';\nimport { Admin } from './admin.model';\n\n@modelOptions({\n\tschemaOptions: { collection: 'reviews', discriminatorKey: 'reviewType' },\n})\n@index(\n\t{ order: 1, serviceOrder: 1, reviewType: 1 },\n\t{ unique: true, partialFilterExpression: { deletedAt: null } }\n)\n@index({ orderId: 1 })\nexport class Review extends TimeStamps {\n\t@prop({ required: true, type: String, enum: ReviewType })\n\tpublic reviewType!: ReviewType;\n\n\t@prop({ required: true, ref: () => User })\n\tpublic user!: Ref<User>;\n\n\t@prop({ required: true, type: Number, min: 1, max: 5 })\n\tpublic rating!: number;\n\n\t@prop({ type: String })\n\tpublic description?: string;\n\n\t@prop({ type: () => [String], default: [] })\n\tpublic tags?: string[];\n\n\t@prop({ type: Boolean, default: true })\n\tpublic isVisible?: boolean;\n\n\t@prop({ ref: () => Admin })\n\tpublic deletedBy?: Ref<Admin>;\n\n\t@prop({ type: String })\n\tpublic orderId?: string;\n}\n"]}
|
package/dist/types/README.md
CHANGED
package/dist/types/package.json
CHANGED