@lyxa.ai/core 1.4.313-alpha-6 → 1.4.313-alpha-7
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/embedded/notification-content.model.d.ts +5 -0
- package/dist/libraries/mongo/models/embedded/notification-content.model.js +32 -0
- package/dist/libraries/mongo/models/embedded/notification-content.model.js.map +1 -0
- package/dist/libraries/mongo/models/service-control.model.d.ts +3 -0
- package/dist/libraries/mongo/models/service-control.model.js +11 -0
- package/dist/libraries/mongo/models/service-control.model.js.map +1 -1
- package/dist/types/README.md +1 -1
- package/dist/types/libraries/mongo/models/embedded/notification-content.model.d.ts +5 -0
- package/dist/types/libraries/mongo/models/embedded/notification-content.model.js +32 -0
- package/dist/types/libraries/mongo/models/embedded/notification-content.model.js.map +1 -0
- package/dist/types/libraries/mongo/models/service-control.model.d.ts +3 -0
- package/dist/types/libraries/mongo/models/service-control.model.js +11 -0
- package/dist/types/libraries/mongo/models/service-control.model.js.map +1 -1
- package/dist/types/package.json +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.NotificationContentConfig = void 0;
|
|
13
|
+
const typegoose_1 = require("@typegoose/typegoose");
|
|
14
|
+
class NotificationContentConfig {
|
|
15
|
+
icon;
|
|
16
|
+
title;
|
|
17
|
+
body;
|
|
18
|
+
}
|
|
19
|
+
exports.NotificationContentConfig = NotificationContentConfig;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, typegoose_1.prop)({ type: String }),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], NotificationContentConfig.prototype, "icon", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, typegoose_1.prop)({ type: String }),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], NotificationContentConfig.prototype, "title", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typegoose_1.prop)({ type: String }),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], NotificationContentConfig.prototype, "body", void 0);
|
|
32
|
+
//# sourceMappingURL=notification-content.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification-content.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/notification-content.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,yBAAyB;IAErC,IAAI,CAAU;IAGd,KAAK,CAAU;IAGf,IAAI,CAAU;CACd;AATD,8DASC;AAPA;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;uDACT;AAGd;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;wDACR;AAGf;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;uDACT","sourcesContent":["import { prop } from '@typegoose/typegoose';\n\nexport class NotificationContentConfig {\n\t@prop({ type: String })\n\ticon?: string;\n\n\t@prop({ type: String })\n\ttitle?: string;\n\n\t@prop({ type: String })\n\tbody?: string;\n}\n"]}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';
|
|
2
2
|
import { ServiceControlServiceType, ServiceFamilyType } from '../../../utilities/enum';
|
|
3
3
|
import { ServiceControlProductConfig } from './embedded/service-control-product-config.model';
|
|
4
|
+
import { NotificationContentConfig } from './embedded/notification-content.model';
|
|
4
5
|
export declare class ServiceControl extends TimeStamps {
|
|
5
6
|
name: string;
|
|
6
7
|
alias?: string;
|
|
@@ -14,6 +15,8 @@ export declare class ServiceControl extends TimeStamps {
|
|
|
14
15
|
isFeaturedMarketingAllowed?: boolean;
|
|
15
16
|
isDiscountMarketingAllowed?: boolean;
|
|
16
17
|
productConfig?: ServiceControlProductConfig;
|
|
18
|
+
isNotificationContentEnabled?: boolean;
|
|
19
|
+
notificationContent?: NotificationContentConfig;
|
|
17
20
|
imageUrl?: string;
|
|
18
21
|
sortingOrder?: number;
|
|
19
22
|
}
|
|
@@ -16,6 +16,7 @@ const typegoose_1 = require("@typegoose/typegoose");
|
|
|
16
16
|
const sorting_order_hooks_1 = require("../utilities/sorting-order.hooks");
|
|
17
17
|
const enum_1 = require("../../../utilities/enum");
|
|
18
18
|
const service_control_product_config_model_1 = require("./embedded/service-control-product-config.model");
|
|
19
|
+
const notification_content_model_1 = require("./embedded/notification-content.model");
|
|
19
20
|
let ServiceControl = class ServiceControl extends defaultClasses_1.TimeStamps {
|
|
20
21
|
name;
|
|
21
22
|
alias;
|
|
@@ -29,6 +30,8 @@ let ServiceControl = class ServiceControl extends defaultClasses_1.TimeStamps {
|
|
|
29
30
|
isFeaturedMarketingAllowed;
|
|
30
31
|
isDiscountMarketingAllowed;
|
|
31
32
|
productConfig;
|
|
33
|
+
isNotificationContentEnabled;
|
|
34
|
+
notificationContent;
|
|
32
35
|
imageUrl;
|
|
33
36
|
sortingOrder;
|
|
34
37
|
};
|
|
@@ -81,6 +84,14 @@ __decorate([
|
|
|
81
84
|
(0, typegoose_1.prop)({ type: service_control_product_config_model_1.ServiceControlProductConfig }),
|
|
82
85
|
__metadata("design:type", service_control_product_config_model_1.ServiceControlProductConfig)
|
|
83
86
|
], ServiceControl.prototype, "productConfig", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, typegoose_1.prop)({ type: Boolean, default: false }),
|
|
89
|
+
__metadata("design:type", Boolean)
|
|
90
|
+
], ServiceControl.prototype, "isNotificationContentEnabled", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, typegoose_1.prop)({ type: notification_content_model_1.NotificationContentConfig }),
|
|
93
|
+
__metadata("design:type", notification_content_model_1.NotificationContentConfig)
|
|
94
|
+
], ServiceControl.prototype, "notificationContent", void 0);
|
|
84
95
|
__decorate([
|
|
85
96
|
(0, typegoose_1.prop)({ type: String }),
|
|
86
97
|
__metadata("design:type", String)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service-control.model.js","sourceRoot":"/","sources":["libraries/mongo/models/service-control.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,wBAAwC;AACxC,4EAAqE;AACrE,oDAAsE;AACtE,0EAA2E;AAC3E,kDAAuF;AACvF,0GAA8F;
|
|
1
|
+
{"version":3,"file":"service-control.model.js","sourceRoot":"/","sources":["libraries/mongo/models/service-control.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,wBAAwC;AACxC,4EAAqE;AACrE,oDAAsE;AACtE,0EAA2E;AAC3E,kDAAuF;AACvF,0GAA8F;AAC9F,sFAAkF;AAW3E,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,2BAAU;IAEtC,IAAI,CAAU;IAGd,KAAK,CAAU;IAGf,WAAW,CAA6B;IAGxC,iBAAiB,CAAqB;IAGtC,QAAQ,CAAW;IAGnB,kBAAkB,CAAW;IAG7B,YAAY,CAAW;IAGvB,sBAAsB,CAAW;IAGjC,YAAY,CAAW;IAGvB,0BAA0B,CAAW;IAGrC,0BAA0B,CAAW;IAGrC,aAAa,CAA+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AI,EAAC,EAAE,IAAI,EAAE,sDAAyB,EAAE,CAAC;8BACb,sDAAyB;2DAAC;AAGhD;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;gDACE;AAGlB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;oDACM;yBA/CjB,cAAc;IAT1B,IAAA,iBAAK,EAAC,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,uBAAuB,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,CAAC;IAClF,IAAA,iBAAK,EAAC,EAAE,YAAY,EAAE,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,uBAAuB,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,CAAC;IAC1F,IAAA,wBAAY,EAAC,EAAE,aAAa,EAAE,EAAE,UAAU,EAAE,iBAAiB,EAAE,EAAE,CAAC;IAClE,IAAA,eAAG,EAAiB,MAAM,EAAE,KAAK,WAAW,IAAI;QAEhD,MAAM,6CAAuB,CAAC,IAAI,CAAC,IAAI,EAAE,sBAAmB,CAAC,CAAC;QAE9D,IAAI,EAAE,CAAC;IACR,CAAC,CAAC;GACW,cAAc,CAgD1B","sourcesContent":["import { ServiceControlModel } from '.';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\nimport { Index, modelOptions, pre, prop } from '@typegoose/typegoose';\nimport { handlePreSaveForSorting } from '../utilities/sorting-order.hooks';\nimport { ServiceControlServiceType, ServiceFamilyType } from '../../../utilities/enum';\nimport { ServiceControlProductConfig } from './embedded/service-control-product-config.model';\nimport { NotificationContentConfig } from './embedded/notification-content.model';\n\n@Index({ name: 1 }, { unique: true, partialFilterExpression: { deletedAt: null } })\n@Index({ sortingOrder: 1 }, { unique: true, partialFilterExpression: { deletedAt: null } })\n@modelOptions({ schemaOptions: { collection: 'service-control' } })\n@pre<ServiceControl>('save', async function (next) {\n\t// Set sortingOrder\n\tawait handlePreSaveForSorting.call(this, ServiceControlModel);\n\n\tnext();\n})\nexport class ServiceControl extends TimeStamps {\n\t@prop({ required: true, type: String })\n\tpublic name!: string;\n\n\t@prop({ type: String })\n\tpublic alias?: string;\n\n\t@prop({ required: true, enum: ServiceControlServiceType })\n\tpublic serviceType!: ServiceControlServiceType;\n\n\t@prop({ enum: ServiceFamilyType })\n\tpublic serviceFamilyType?: ServiceFamilyType;\n\n\t@prop({ type: Boolean })\n\tpublic isCoffee?: boolean;\n\n\t@prop({ required: true, type: Boolean })\n\tpublic isVisibleToUserApp!: boolean;\n\n\t@prop({ type: Boolean })\n\tpublic isTagVisible?: boolean;\n\n\t@prop({ type: Boolean })\n\tpublic isListContainerVisible?: boolean;\n\n\t@prop({ type: Boolean })\n\tpublic isSearchAble?: boolean;\n\n\t@prop({ type: Boolean })\n\tpublic isFeaturedMarketingAllowed?: boolean;\n\n\t@prop({ type: Boolean })\n\tpublic isDiscountMarketingAllowed?: boolean;\n\n\t@prop({ type: ServiceControlProductConfig })\n\tpublic productConfig?: ServiceControlProductConfig;\n\n\t@prop({ type: Boolean, default: false })\n\tpublic isNotificationContentEnabled?: boolean;\n\n\t@prop({ type: NotificationContentConfig })\n\tpublic notificationContent?: NotificationContentConfig;\n\n\t@prop({ type: String })\n\tpublic imageUrl?: string;\n\n\t@prop({ type: Number })\n\tpublic sortingOrder?: number;\n}\n"]}
|
package/dist/types/README.md
CHANGED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.NotificationContentConfig = void 0;
|
|
13
|
+
const typegoose_1 = require("@typegoose/typegoose");
|
|
14
|
+
class NotificationContentConfig {
|
|
15
|
+
icon;
|
|
16
|
+
title;
|
|
17
|
+
body;
|
|
18
|
+
}
|
|
19
|
+
exports.NotificationContentConfig = NotificationContentConfig;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, typegoose_1.prop)({ type: String }),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], NotificationContentConfig.prototype, "icon", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, typegoose_1.prop)({ type: String }),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], NotificationContentConfig.prototype, "title", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typegoose_1.prop)({ type: String }),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], NotificationContentConfig.prototype, "body", void 0);
|
|
32
|
+
//# sourceMappingURL=notification-content.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification-content.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/notification-content.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,yBAAyB;IAErC,IAAI,CAAU;IAGd,KAAK,CAAU;IAGf,IAAI,CAAU;CACd;AATD,8DASC;AAPA;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;uDACT;AAGd;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;wDACR;AAGf;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;uDACT","sourcesContent":["import { prop } from '@typegoose/typegoose';\n\nexport class NotificationContentConfig {\n\t@prop({ type: String })\n\ticon?: string;\n\n\t@prop({ type: String })\n\ttitle?: string;\n\n\t@prop({ type: String })\n\tbody?: string;\n}\n"]}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';
|
|
2
2
|
import { ServiceControlServiceType, ServiceFamilyType } from '../../../utilities/enum';
|
|
3
3
|
import { ServiceControlProductConfig } from './embedded/service-control-product-config.model';
|
|
4
|
+
import { NotificationContentConfig } from './embedded/notification-content.model';
|
|
4
5
|
export declare class ServiceControl extends TimeStamps {
|
|
5
6
|
name: string;
|
|
6
7
|
alias?: string;
|
|
@@ -14,6 +15,8 @@ export declare class ServiceControl extends TimeStamps {
|
|
|
14
15
|
isFeaturedMarketingAllowed?: boolean;
|
|
15
16
|
isDiscountMarketingAllowed?: boolean;
|
|
16
17
|
productConfig?: ServiceControlProductConfig;
|
|
18
|
+
isNotificationContentEnabled?: boolean;
|
|
19
|
+
notificationContent?: NotificationContentConfig;
|
|
17
20
|
imageUrl?: string;
|
|
18
21
|
sortingOrder?: number;
|
|
19
22
|
}
|
|
@@ -16,6 +16,7 @@ const typegoose_1 = require("@typegoose/typegoose");
|
|
|
16
16
|
const sorting_order_hooks_1 = require("../utilities/sorting-order.hooks");
|
|
17
17
|
const enum_1 = require("../../../utilities/enum");
|
|
18
18
|
const service_control_product_config_model_1 = require("./embedded/service-control-product-config.model");
|
|
19
|
+
const notification_content_model_1 = require("./embedded/notification-content.model");
|
|
19
20
|
let ServiceControl = class ServiceControl extends defaultClasses_1.TimeStamps {
|
|
20
21
|
name;
|
|
21
22
|
alias;
|
|
@@ -29,6 +30,8 @@ let ServiceControl = class ServiceControl extends defaultClasses_1.TimeStamps {
|
|
|
29
30
|
isFeaturedMarketingAllowed;
|
|
30
31
|
isDiscountMarketingAllowed;
|
|
31
32
|
productConfig;
|
|
33
|
+
isNotificationContentEnabled;
|
|
34
|
+
notificationContent;
|
|
32
35
|
imageUrl;
|
|
33
36
|
sortingOrder;
|
|
34
37
|
};
|
|
@@ -81,6 +84,14 @@ __decorate([
|
|
|
81
84
|
(0, typegoose_1.prop)({ type: service_control_product_config_model_1.ServiceControlProductConfig }),
|
|
82
85
|
__metadata("design:type", service_control_product_config_model_1.ServiceControlProductConfig)
|
|
83
86
|
], ServiceControl.prototype, "productConfig", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, typegoose_1.prop)({ type: Boolean, default: false }),
|
|
89
|
+
__metadata("design:type", Boolean)
|
|
90
|
+
], ServiceControl.prototype, "isNotificationContentEnabled", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, typegoose_1.prop)({ type: notification_content_model_1.NotificationContentConfig }),
|
|
93
|
+
__metadata("design:type", notification_content_model_1.NotificationContentConfig)
|
|
94
|
+
], ServiceControl.prototype, "notificationContent", void 0);
|
|
84
95
|
__decorate([
|
|
85
96
|
(0, typegoose_1.prop)({ type: String }),
|
|
86
97
|
__metadata("design:type", String)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service-control.model.js","sourceRoot":"/","sources":["libraries/mongo/models/service-control.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,wBAAwC;AACxC,4EAAqE;AACrE,oDAAsE;AACtE,0EAA2E;AAC3E,kDAAuF;AACvF,0GAA8F;
|
|
1
|
+
{"version":3,"file":"service-control.model.js","sourceRoot":"/","sources":["libraries/mongo/models/service-control.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,wBAAwC;AACxC,4EAAqE;AACrE,oDAAsE;AACtE,0EAA2E;AAC3E,kDAAuF;AACvF,0GAA8F;AAC9F,sFAAkF;AAW3E,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,2BAAU;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AE,OAAO,EAAE,CAAC;;kEACoB;AAGrC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,kEAA2B,EAAE,CAAC;8BACrB,kEAA2B;qDAAC;AAG5C;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;oEACM;AAGvC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,sDAAyB,EAAE,CAAC;8BACb,sDAAyB;2DAAC;AAGhD;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;gDACE;AAGlB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;oDACM;yBA/CjB,cAAc;IAT1B,IAAA,iBAAK,EAAC,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,uBAAuB,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,CAAC;IAClF,IAAA,iBAAK,EAAC,EAAE,YAAY,EAAE,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,uBAAuB,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,CAAC;IAC1F,IAAA,wBAAY,EAAC,EAAE,aAAa,EAAE,EAAE,UAAU,EAAE,iBAAiB,EAAE,EAAE,CAAC;IAClE,IAAA,eAAG,EAAiB,MAAM,EAAE,KAAK,WAAW,IAAI;QAEhD,MAAM,6CAAuB,CAAC,IAAI,CAAC,IAAI,EAAE,sBAAmB,CAAC,CAAC;QAE9D,IAAI,EAAE,CAAC;IACR,CAAC,CAAC;GACW,cAAc,CAgD1B","sourcesContent":["import { ServiceControlModel } from '.';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\nimport { Index, modelOptions, pre, prop } from '@typegoose/typegoose';\nimport { handlePreSaveForSorting } from '../utilities/sorting-order.hooks';\nimport { ServiceControlServiceType, ServiceFamilyType } from '../../../utilities/enum';\nimport { ServiceControlProductConfig } from './embedded/service-control-product-config.model';\nimport { NotificationContentConfig } from './embedded/notification-content.model';\n\n@Index({ name: 1 }, { unique: true, partialFilterExpression: { deletedAt: null } })\n@Index({ sortingOrder: 1 }, { unique: true, partialFilterExpression: { deletedAt: null } })\n@modelOptions({ schemaOptions: { collection: 'service-control' } })\n@pre<ServiceControl>('save', async function (next) {\n\t// Set sortingOrder\n\tawait handlePreSaveForSorting.call(this, ServiceControlModel);\n\n\tnext();\n})\nexport class ServiceControl extends TimeStamps {\n\t@prop({ required: true, type: String })\n\tpublic name!: string;\n\n\t@prop({ type: String })\n\tpublic alias?: string;\n\n\t@prop({ required: true, enum: ServiceControlServiceType })\n\tpublic serviceType!: ServiceControlServiceType;\n\n\t@prop({ enum: ServiceFamilyType })\n\tpublic serviceFamilyType?: ServiceFamilyType;\n\n\t@prop({ type: Boolean })\n\tpublic isCoffee?: boolean;\n\n\t@prop({ required: true, type: Boolean })\n\tpublic isVisibleToUserApp!: boolean;\n\n\t@prop({ type: Boolean })\n\tpublic isTagVisible?: boolean;\n\n\t@prop({ type: Boolean })\n\tpublic isListContainerVisible?: boolean;\n\n\t@prop({ type: Boolean })\n\tpublic isSearchAble?: boolean;\n\n\t@prop({ type: Boolean })\n\tpublic isFeaturedMarketingAllowed?: boolean;\n\n\t@prop({ type: Boolean })\n\tpublic isDiscountMarketingAllowed?: boolean;\n\n\t@prop({ type: ServiceControlProductConfig })\n\tpublic productConfig?: ServiceControlProductConfig;\n\n\t@prop({ type: Boolean, default: false })\n\tpublic isNotificationContentEnabled?: boolean;\n\n\t@prop({ type: NotificationContentConfig })\n\tpublic notificationContent?: NotificationContentConfig;\n\n\t@prop({ type: String })\n\tpublic imageUrl?: string;\n\n\t@prop({ type: Number })\n\tpublic sortingOrder?: number;\n}\n"]}
|
package/dist/types/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lyxa.ai/types",
|
|
3
|
-
"version": "1.4.313-alpha-
|
|
3
|
+
"version": "1.4.313-alpha-7",
|
|
4
4
|
"description": "Lyxa type definitions and validation schemas for both frontend and backend",
|
|
5
5
|
"author": "elie <42282499+Internalizable@users.noreply.github.com>",
|
|
6
6
|
"license": "MIT",
|
package/package.json
CHANGED