@lyxa.ai/core 1.3.123 → 1.3.126
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/marketing-cut.model.d.ts +5 -0
- package/dist/libraries/mongo/models/embedded/marketing-cut.model.js +21 -0
- package/dist/libraries/mongo/models/embedded/marketing-cut.model.js.map +1 -1
- package/dist/libraries/mongo/models/user-app-section-setting.model.d.ts +1 -1
- package/dist/libraries/mongo/models/user-app-section-setting.model.js +2 -1
- package/dist/libraries/mongo/models/user-app-section-setting.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,5 +1,6 @@
|
|
|
1
1
|
import { Ref } from '@typegoose/typegoose';
|
|
2
2
|
import { Coupon } from '../coupon.model';
|
|
3
|
+
import { CouponType, ValueType } from '../../../../utilities/enum';
|
|
3
4
|
export declare class CompanyCut {
|
|
4
5
|
companyCut?: number;
|
|
5
6
|
secondaryCompanyCut?: number;
|
|
@@ -10,6 +11,10 @@ export declare class MarketingCut extends CompanyCut {
|
|
|
10
11
|
}
|
|
11
12
|
export declare class CouponDetails extends MarketingCut {
|
|
12
13
|
coupon?: Ref<Coupon>;
|
|
14
|
+
couponType?: CouponType;
|
|
15
|
+
code?: string;
|
|
16
|
+
valueType?: ValueType;
|
|
17
|
+
value?: number;
|
|
13
18
|
}
|
|
14
19
|
export declare class ServicePromotionCut extends CompanyCut {
|
|
15
20
|
vendorCut?: number;
|
|
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.ServicePromotionCut = exports.CouponDetails = exports.MarketingCut = exports.CompanyCut = void 0;
|
|
13
13
|
const typegoose_1 = require("@typegoose/typegoose");
|
|
14
14
|
const coupon_model_1 = require("../coupon.model");
|
|
15
|
+
const enum_1 = require("../../../../utilities/enum");
|
|
15
16
|
class CompanyCut {
|
|
16
17
|
companyCut;
|
|
17
18
|
secondaryCompanyCut;
|
|
@@ -40,12 +41,32 @@ __decorate([
|
|
|
40
41
|
], MarketingCut.prototype, "secondaryShopCut", void 0);
|
|
41
42
|
class CouponDetails extends MarketingCut {
|
|
42
43
|
coupon;
|
|
44
|
+
couponType;
|
|
45
|
+
code;
|
|
46
|
+
valueType;
|
|
47
|
+
value;
|
|
43
48
|
}
|
|
44
49
|
exports.CouponDetails = CouponDetails;
|
|
45
50
|
__decorate([
|
|
46
51
|
(0, typegoose_1.prop)({ ref: () => coupon_model_1.Coupon }),
|
|
47
52
|
__metadata("design:type", Object)
|
|
48
53
|
], CouponDetails.prototype, "coupon", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, typegoose_1.prop)({ type: String, enum: enum_1.CouponType }),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], CouponDetails.prototype, "couponType", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, typegoose_1.prop)({ uppercase: true, trim: true, type: String }),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], CouponDetails.prototype, "code", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, typegoose_1.prop)({ type: String, enum: enum_1.ValueType }),
|
|
64
|
+
__metadata("design:type", String)
|
|
65
|
+
], CouponDetails.prototype, "valueType", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, typegoose_1.prop)({ type: Number }),
|
|
68
|
+
__metadata("design:type", Number)
|
|
69
|
+
], CouponDetails.prototype, "value", void 0);
|
|
49
70
|
class ServicePromotionCut extends CompanyCut {
|
|
50
71
|
vendorCut;
|
|
51
72
|
secondaryVendorCut;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"marketing-cut.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/marketing-cut.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiD;AACjD,kDAAyC;
|
|
1
|
+
{"version":3,"file":"marketing-cut.model.js","sourceRoot":"/","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GtB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;4CACD;AAGvB,MAAa,mBAAoB,SAAQ,UAAU;IAE3C,SAAS,CAAU;IAGnB,kBAAkB,CAAU;CACnC;AAND,kDAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;sDACT;AAGnB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;+DACA","sourcesContent":["import { prop, Ref } from '@typegoose/typegoose';\nimport { Coupon } from '../coupon.model';\nimport { CouponType, ValueType } from '../../../../utilities/enum';\n\nexport class CompanyCut {\n\t@prop({ type: Number, default: 0 })\n\tpublic companyCut?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryCompanyCut?: number;\n}\nexport class MarketingCut extends CompanyCut {\n\t@prop({ type: Number, default: 0 })\n\tpublic shopCut?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryShopCut?: number;\n}\n\nexport class CouponDetails extends MarketingCut {\n\t@prop({ ref: () => Coupon })\n\tpublic coupon?: Ref<Coupon>;\n\n\t@prop({ type: String, enum: CouponType })\n\tpublic couponType?: CouponType;\n\n\t@prop({ uppercase: true, trim: true, type: String })\n\tpublic code?: string;\n\n\t@prop({ type: String, enum: ValueType })\n\tpublic valueType?: ValueType;\n\n\t@prop({ type: Number })\n\tpublic value?: number;\n}\n\nexport class ServicePromotionCut extends CompanyCut {\n\t@prop({ type: Number, default: 0 })\n\tpublic vendorCut?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryVendorCut?: number;\n}\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Ref } from '@typegoose/typegoose';
|
|
2
2
|
import { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';
|
|
3
3
|
import { Status, UserAppSectionItemType, UserAppSectionType } from '../../../utilities/enum';
|
|
4
|
-
import { Shop } from '.';
|
|
4
|
+
import { Shop } from './shop.model';
|
|
5
5
|
export declare class UserAppSectionSetting extends TimeStamps {
|
|
6
6
|
itemType: UserAppSectionItemType;
|
|
7
7
|
section: UserAppSectionType;
|
|
@@ -15,6 +15,7 @@ const defaultClasses_1 = require("@typegoose/typegoose/lib/defaultClasses");
|
|
|
15
15
|
const enum_1 = require("../../../utilities/enum");
|
|
16
16
|
const _1 = require(".");
|
|
17
17
|
const sorting_order_hooks_1 = require("../utilities/sorting-order.hooks");
|
|
18
|
+
const shop_model_1 = require("./shop.model");
|
|
18
19
|
let UserAppSectionSetting = class UserAppSectionSetting extends defaultClasses_1.TimeStamps {
|
|
19
20
|
itemType;
|
|
20
21
|
section;
|
|
@@ -45,7 +46,7 @@ __decorate([
|
|
|
45
46
|
__metadata("design:type", Number)
|
|
46
47
|
], UserAppSectionSetting.prototype, "sortingOrder", void 0);
|
|
47
48
|
__decorate([
|
|
48
|
-
(0, typegoose_1.prop)({ ref: () =>
|
|
49
|
+
(0, typegoose_1.prop)({ ref: () => shop_model_1.Shop }),
|
|
49
50
|
__metadata("design:type", Array)
|
|
50
51
|
], UserAppSectionSetting.prototype, "customizedShops", void 0);
|
|
51
52
|
exports.UserAppSectionSetting = UserAppSectionSetting = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-app-section-setting.model.js","sourceRoot":"/","sources":["libraries/mongo/models/user-app-section-setting.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA2E;AAC3E,4EAAqE;AACrE,kDAA6F;AAC7F,
|
|
1
|
+
{"version":3,"file":"user-app-section-setting.model.js","sourceRoot":"/","sources":["libraries/mongo/models/user-app-section-setting.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA2E;AAC3E,4EAAqE;AACrE,kDAA6F;AAC7F,wBAA+C;AAE/C,0EAG0C;AAC1C,6CAAoC;AAiB7B,IAAM,qBA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E,6BAA0B,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;QAE5G,IAAI,EAAE,CAAC;IACR,CAAC,CAAC;IACD,IAAA,eAAG,EACH,kBAAkB,EAClB,KAAK,WAAoD,IAAI;QAC5D,MAAM,yDAAmC,CAAC,IAAI,CAAC,IAAI,EAAE,6BAA0B,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC;QAE/F,IAAI,EAAE,CAAC;IACR,CAAC,CACD;GACY,qBAAqB,CAkBjC","sourcesContent":["import { Index, modelOptions, pre, prop, Ref } from '@typegoose/typegoose';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\nimport { Status, UserAppSectionItemType, UserAppSectionType } from '../../../utilities/enum';\nimport { UserAppSectionSettingModel } from '.';\nimport { Query } from 'mongoose';\nimport {\n\thandlePreSaveForSortingWithStatus,\n\thandlePreUpdateForSortingWithStatus,\n} from '../utilities/sorting-order.hooks';\nimport { Shop } from './shop.model';\n\n@modelOptions({ schemaOptions: { collection: 'userAppSectionSetting' } })\n@Index({ itemType: 1, section: 1 }, { unique: true, partialFilterExpression: { deletedAt: null } })\n@pre<UserAppSectionSetting>('save', async function (next) {\n\tawait handlePreSaveForSortingWithStatus.call(this, UserAppSectionSettingModel, { itemType: this.itemType });\n\n\tnext();\n})\n@pre<UserAppSectionSetting>(\n\t'findOneAndUpdate',\n\tasync function (this: Query<any, UserAppSectionSetting>, next) {\n\t\tawait handlePreUpdateForSortingWithStatus.call(this, UserAppSectionSettingModel, ['itemType']);\n\n\t\tnext();\n\t}\n)\nexport class UserAppSectionSetting extends TimeStamps {\n\t@prop({ required: true, type: String, enum: UserAppSectionItemType })\n\tpublic itemType!: UserAppSectionItemType;\n\n\t@prop({ required: true, type: String, enum: UserAppSectionType })\n\tpublic section!: UserAppSectionType;\n\n\t@prop({ required: true, type: String })\n\tpublic alias!: string;\n\n\t@prop({ type: String, enum: Status, default: Status.ACTIVE })\n\tpublic status?: Status;\n\n\t@prop({ type: Number })\n\tpublic sortingOrder?: number;\n\n\t@prop({ ref: () => Shop })\n\tpublic customizedShops?: Ref<Shop>[];\n}\n"]}
|
package/dist/types/README.md
CHANGED
package/dist/types/package.json
CHANGED