@lyxa.ai/core 1.1.20 → 1.1.21
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/service-category.model.d.ts +1 -2
- package/dist/libraries/mongo/models/service-category.model.js +1 -5
- package/dist/libraries/mongo/models/service-category.model.js.map +1 -1
- package/dist/types/README.md +1 -1
- package/dist/types/package.json +1 -1
- package/package.json +1 -1
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { Ref } from '@typegoose/typegoose';
|
|
2
2
|
import { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';
|
|
3
|
-
import {
|
|
3
|
+
import { Status } from '../../../utilities/enum';
|
|
4
4
|
import { Vendor } from './vendor.model';
|
|
5
5
|
import { Service } from './service.model';
|
|
6
6
|
export declare class ServiceCategory extends TimeStamps {
|
|
7
7
|
name: string;
|
|
8
8
|
service: Ref<Service>;
|
|
9
|
-
serviceType: ServiceType;
|
|
10
9
|
vendor: Ref<Vendor>;
|
|
11
10
|
image?: string;
|
|
12
11
|
status: Status;
|
|
@@ -18,7 +18,6 @@ const service_model_1 = require("./service.model");
|
|
|
18
18
|
let ServiceCategory = class ServiceCategory extends defaultClasses_1.TimeStamps {
|
|
19
19
|
name;
|
|
20
20
|
service;
|
|
21
|
-
serviceType;
|
|
22
21
|
vendor;
|
|
23
22
|
image;
|
|
24
23
|
status;
|
|
@@ -32,10 +31,6 @@ __decorate([
|
|
|
32
31
|
(0, typegoose_1.prop)({ required: true, ref: () => service_model_1.Service }),
|
|
33
32
|
__metadata("design:type", Object)
|
|
34
33
|
], ServiceCategory.prototype, "service", void 0);
|
|
35
|
-
__decorate([
|
|
36
|
-
(0, typegoose_1.prop)({ required: true, type: String, enum: enum_1.ServiceType }),
|
|
37
|
-
__metadata("design:type", String)
|
|
38
|
-
], ServiceCategory.prototype, "serviceType", void 0);
|
|
39
34
|
__decorate([
|
|
40
35
|
(0, typegoose_1.prop)({ required: true, ref: () => vendor_model_1.Vendor }),
|
|
41
36
|
__metadata("design:type", Object)
|
|
@@ -49,6 +44,7 @@ __decorate([
|
|
|
49
44
|
__metadata("design:type", String)
|
|
50
45
|
], ServiceCategory.prototype, "status", void 0);
|
|
51
46
|
exports.ServiceCategory = ServiceCategory = __decorate([
|
|
47
|
+
(0, typegoose_1.Index)({ name: 1, vendor: 1 }, { unique: true, collation: { locale: 'en', strength: 2 } }),
|
|
52
48
|
(0, typegoose_1.modelOptions)({ schemaOptions: { collection: 'serviceCategories' } })
|
|
53
49
|
], ServiceCategory);
|
|
54
50
|
//# sourceMappingURL=service-category.model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service-category.model.js","sourceRoot":"/","sources":["libraries/mongo/models/service-category.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"service-category.model.js","sourceRoot":"/","sources":["libraries/mongo/models/service-category.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAsE;AACtE,4EAAqE;AACrE,kDAA8D;AAC9D,iDAAwC;AACxC,mDAA0C;AAInC,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,2BAAU;IAEvC,IAAI,CAAU;IAGd,OAAO,CAAgB;IAGvB,MAAM,CAAe;IAGrB,KAAK,CAAU;IAGf,MAAM,CAAU;CACvB,CAAA;AAfY,0CAAe;AAEpB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC;;6CAC7C;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,uBAAO,EAAE,CAAC;;gDACf;AAGvB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,qBAAM,EAAE,CAAC;;+CAChB;AAGrB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;8CACD;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,aAAM,EAAE,OAAO,EAAE,aAAM,CAAC,MAAM,EAAE,CAAC;;+CACtC;0BAdX,eAAe;IAF3B,IAAA,iBAAK,EAAC,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,EAAE,EAAE,CAAC;IACzF,IAAA,wBAAY,EAAC,EAAE,aAAa,EAAE,EAAE,UAAU,EAAE,mBAAmB,EAAE,EAAE,CAAC;GACxD,eAAe,CAe3B","sourcesContent":["import { Index, modelOptions, prop, Ref } from '@typegoose/typegoose';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\nimport { ServiceType, Status } from '../../../utilities/enum';\nimport { Vendor } from './vendor.model';\nimport { Service } from './service.model';\n\n@Index({ name: 1, vendor: 1 }, { unique: true, collation: { locale: 'en', strength: 2 } })\n@modelOptions({ schemaOptions: { collection: 'serviceCategories' } })\nexport class ServiceCategory extends TimeStamps {\n\t@prop({ required: true, type: String, trim: true, maxlength: 20 })\n\tpublic name!: string;\n\n\t@prop({ required: true, ref: () => Service })\n\tpublic service!: Ref<Service>;\n\n\t@prop({ required: true, ref: () => Vendor })\n\tpublic vendor!: Ref<Vendor>;\n\n\t@prop({ type: String })\n\tpublic image?: string;\n\n\t@prop({ type: String, enum: Status, default: Status.ACTIVE })\n\tpublic status!: Status;\n}\n"]}
|
package/dist/types/README.md
CHANGED
package/dist/types/package.json
CHANGED