@lyxa.ai/core 1.0.339 → 1.0.341
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/shop-document.model.d.ts +1 -0
- package/dist/libraries/mongo/models/embedded/shop-document.model.js +5 -0
- package/dist/libraries/mongo/models/embedded/shop-document.model.js.map +1 -1
- package/dist/libraries/mongo/models/service-promotion.model.d.ts +1 -0
- package/dist/libraries/mongo/models/service-promotion.model.js +5 -0
- package/dist/libraries/mongo/models/service-promotion.model.js.map +1 -1
- package/dist/types/README.md +1 -1
- package/dist/types/package.json +1 -1
- package/package.json +1 -1
|
@@ -14,6 +14,7 @@ const typegoose_1 = require("@typegoose/typegoose");
|
|
|
14
14
|
class ShopDocument {
|
|
15
15
|
commercialCircularDocument;
|
|
16
16
|
taxRegistration;
|
|
17
|
+
contactPaper;
|
|
17
18
|
identityDoc;
|
|
18
19
|
}
|
|
19
20
|
exports.ShopDocument = ShopDocument;
|
|
@@ -25,6 +26,10 @@ __decorate([
|
|
|
25
26
|
(0, typegoose_1.prop)({ type: String }),
|
|
26
27
|
__metadata("design:type", String)
|
|
27
28
|
], ShopDocument.prototype, "taxRegistration", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typegoose_1.prop)({ type: String }),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], ShopDocument.prototype, "contactPaper", void 0);
|
|
28
33
|
__decorate([
|
|
29
34
|
(0, typegoose_1.prop)({ type: String }),
|
|
30
35
|
__metadata("design:type", String)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shop-document.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/shop-document.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,YAAY;IAEjB,0BAA0B,CAAU;IAGpC,eAAe,CAAU;IAGzB,WAAW,CAAU;CAC5B;
|
|
1
|
+
{"version":3,"file":"shop-document.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/shop-document.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,YAAY;IAEjB,0BAA0B,CAAU;IAGpC,eAAe,CAAU;IAGzB,YAAY,CAAU;IAGtB,WAAW,CAAU;CAC5B;AAZD,oCAYC;AAVO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;gEACoB;AAGpC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;qDACS;AAGzB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;kDACM;AAGtB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;iDACK","sourcesContent":["import { prop } from '@typegoose/typegoose';\n\nexport class ShopDocument {\n\t@prop({ type: String })\n\tpublic commercialCircularDocument?: string;\n\n\t@prop({ type: String })\n\tpublic taxRegistration?: string;\n\n\t@prop({ type: String })\n\tpublic contactPaper?: string;\n\n\t@prop({ type: String })\n\tpublic identityDoc?: string;\n}\n"]}
|
|
@@ -25,6 +25,7 @@ let ServicePromotion = class ServicePromotion {
|
|
|
25
25
|
slotRanges;
|
|
26
26
|
spendLimit;
|
|
27
27
|
spendAmount;
|
|
28
|
+
maxDiscountPerOrder;
|
|
28
29
|
valueType;
|
|
29
30
|
value;
|
|
30
31
|
deactivationReason;
|
|
@@ -67,6 +68,10 @@ __decorate([
|
|
|
67
68
|
(0, typegoose_1.prop)({ type: Number, default: 0, min: 0 }),
|
|
68
69
|
__metadata("design:type", Number)
|
|
69
70
|
], ServicePromotion.prototype, "spendAmount", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, typegoose_1.prop)({ type: Number }),
|
|
73
|
+
__metadata("design:type", Number)
|
|
74
|
+
], ServicePromotion.prototype, "maxDiscountPerOrder", void 0);
|
|
70
75
|
__decorate([
|
|
71
76
|
(0, typegoose_1.prop)({ type: String, enum: enum_1.ValueType }),
|
|
72
77
|
__metadata("design:type", String)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service-promotion.model.js","sourceRoot":"/","sources":["libraries/mongo/models/service-promotion.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA+D;AAC/D,iDAAwC;AACxC,kDAAoF;AACpF,gFAAsE;AACtE,mEAAyD;AACzD,8DAAwD;AAGjD,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAElB,MAAM,CAAe;IAGrB,aAAa,CAAiB;IAO9B,MAAM,CAAmB;IAGzB,QAAQ,CAAoB;IAG5B,eAAe,CAAwB;IAGvC,UAAU,CAAkB;IAG5B,UAAU,CAAU;IAGpB,WAAW,CAAU;IAGrB,SAAS,CAAa;IAGtB,KAAK,CAAU;IAGf,kBAAkB,CAAU;IAG5B,WAAW,CAAU;CAC/B,CAAA;
|
|
1
|
+
{"version":3,"file":"service-promotion.model.js","sourceRoot":"/","sources":["libraries/mongo/models/service-promotion.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA+D;AAC/D,iDAAwC;AACxC,kDAAoF;AACpF,gFAAsE;AACtE,mEAAyD;AACzD,8DAAwD;AAGjD,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAElB,MAAM,CAAe;IAGrB,aAAa,CAAiB;IAO9B,MAAM,CAAmB;IAGzB,QAAQ,CAAoB;IAG5B,eAAe,CAAwB;IAGvC,UAAU,CAAkB;IAG5B,UAAU,CAAU;IAGpB,WAAW,CAAU;IAGrB,mBAAmB,CAAU;IAG7B,SAAS,CAAa;IAGtB,KAAK,CAAU;IAGf,kBAAkB,CAAU;IAG5B,WAAW,CAAU;CAC/B,CAAA;AA3CY,4CAAgB;AAElB;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,qBAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDAChB;A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AE,CAAC;;qDACvB;2BA1CnB,gBAAgB;IAD5B,IAAA,wBAAY,EAAC,EAAE,aAAa,EAAE,EAAE,UAAU,EAAE,mBAAmB,EAAE,EAAE,CAAC;GACxD,gBAAgB,CA2C5B","sourcesContent":["import { modelOptions, prop, Ref } from '@typegoose/typegoose';\nimport { Vendor } from './vendor.model';\nimport { MarketingStatus, PromotionType, ValueType } from '../../../utilities/enum';\nimport { PromotionDuration } from './shared/promotion-duration.model';\nimport { ServicePackage } from './service-package.model';\nimport { StartEndTime } from './shared/work-hour.model';\n\n@modelOptions({ schemaOptions: { collection: 'servicePromotions' } })\nexport class ServicePromotion {\n @prop({ ref: () => Vendor, required: true })\n public vendor!: Ref<Vendor>;\n\n @prop({ enum: PromotionType, required: true })\n public promotionType!: PromotionType;\n\n @prop({\n type: String,\n enum: MarketingStatus,\n default: MarketingStatus.ACTIVE,\n })\n public status?: MarketingStatus;\n\n @prop({ required: true, type: PromotionDuration })\n public duration!: PromotionDuration\n\n @prop({ ref: () => ServicePackage, required: true })\n public servicePackages?: Ref<ServicePackage>[]\n\n @prop({ type: () => [StartEndTime] })\n public slotRanges?: StartEndTime[];\n\n @prop({ type: Number, min: 0 })\n public spendLimit?: number;\n\n @prop({ type: Number, default: 0, min: 0 })\n public spendAmount?: number;\n\n @prop({ type: Number })\n public maxDiscountPerOrder?: number;\n\n @prop({ type: String, enum: ValueType })\n public valueType?: ValueType;\n\n @prop({ type: Number })\n public value?: number;\n\n @prop({ type: String })\n public deactivationReason?: string;\n\n @prop({ type: String, trim: true, maxlength: 500 })\n public description?: string;\n}\n"]}
|
package/dist/types/README.md
CHANGED
package/dist/types/package.json
CHANGED