@lyxa.ai/core 1.0.50 → 1.0.52
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/cancellation-reason.model.d.ts +7 -0
- package/dist/libraries/mongo/models/cancellation-reason.model.js +37 -0
- package/dist/libraries/mongo/models/cancellation-reason.model.js.map +1 -0
- package/dist/libraries/mongo/models/core-user.model.d.ts +2 -2
- package/dist/libraries/mongo/models/core-user.model.js +2 -2
- package/dist/libraries/mongo/models/core-user.model.js.map +1 -1
- package/dist/libraries/mongo/models/default-chat.model.d.ts +4 -0
- package/dist/libraries/mongo/models/default-chat.model.js +26 -0
- package/dist/libraries/mongo/models/default-chat.model.js.map +1 -0
- package/dist/libraries/mongo/models/embedded/charge-setting.model.d.ts +14 -0
- package/dist/libraries/mongo/models/embedded/charge-setting.model.js +60 -0
- package/dist/libraries/mongo/models/embedded/charge-setting.model.js.map +1 -0
- package/dist/libraries/mongo/models/embedded/marketing-cut.model.d.ts +4 -2
- package/dist/libraries/mongo/models/embedded/marketing-cut.model.js +11 -8
- package/dist/libraries/mongo/models/embedded/marketing-cut.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/order-pricing.model.d.ts +4 -0
- package/dist/libraries/mongo/models/embedded/order-pricing.model.js +20 -0
- package/dist/libraries/mongo/models/embedded/order-pricing.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/plus-settings.model.d.ts +5 -0
- package/dist/libraries/mongo/models/embedded/plus-settings.model.js +33 -0
- package/dist/libraries/mongo/models/embedded/plus-settings.model.js.map +1 -0
- package/dist/libraries/mongo/models/embedded/support-reason-info.model.d.ts +4 -0
- package/dist/libraries/mongo/models/embedded/support-reason-info.model.js +27 -0
- package/dist/libraries/mongo/models/embedded/support-reason-info.model.js.map +1 -0
- package/dist/libraries/mongo/models/index.d.ts +12 -0
- package/dist/libraries/mongo/models/index.js +13 -1
- package/dist/libraries/mongo/models/index.js.map +1 -1
- package/dist/libraries/mongo/models/order-delivery.model.d.ts +8 -5
- package/dist/libraries/mongo/models/order-delivery.model.js +22 -4
- package/dist/libraries/mongo/models/order-delivery.model.js.map +1 -1
- package/dist/libraries/mongo/models/order-finance.model.d.ts +2 -1
- package/dist/libraries/mongo/models/order-finance.model.js +5 -0
- package/dist/libraries/mongo/models/order-finance.model.js.map +1 -1
- package/dist/libraries/mongo/models/providers/regular-order-finance.model.d.ts +2 -1
- package/dist/libraries/mongo/models/providers/regular-order-finance.model.js +7 -2
- package/dist/libraries/mongo/models/providers/regular-order-finance.model.js.map +1 -1
- package/dist/libraries/mongo/models/setting.model.d.ts +2 -0
- package/dist/libraries/mongo/models/setting.model.js +6 -0
- package/dist/libraries/mongo/models/setting.model.js.map +1 -1
- package/dist/libraries/mongo/models/support-reason.model.d.ts +8 -0
- package/dist/libraries/mongo/models/support-reason.model.js +38 -0
- package/dist/libraries/mongo/models/support-reason.model.js.map +1 -0
- package/dist/libraries/mongo/models/terms-and-conditions.model.d.ts +8 -0
- package/dist/libraries/mongo/models/terms-and-conditions.model.js +51 -0
- package/dist/libraries/mongo/models/terms-and-conditions.model.js.map +1 -0
- package/dist/libraries/mongo/models/terms-condition.model.d.ts +8 -0
- package/dist/libraries/mongo/models/terms-condition.model.js +51 -0
- package/dist/libraries/mongo/models/terms-condition.model.js.map +1 -0
- package/dist/utilities/enum.d.ts +23 -0
- package/dist/utilities/enum.js +28 -1
- package/dist/utilities/enum.js.map +1 -1
- package/dist/utilities/validation/common-validation.d.ts +7 -7
- package/package.json +1 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';
|
|
2
|
+
import { SettingsReasonStatus, SupportReasonTypeEnum } from '../../../utilities/enum';
|
|
3
|
+
export declare class CancellationReason extends TimeStamps {
|
|
4
|
+
reason: string;
|
|
5
|
+
reasonType: SupportReasonTypeEnum;
|
|
6
|
+
status: SettingsReasonStatus;
|
|
7
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
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.CancellationReason = void 0;
|
|
13
|
+
const typegoose_1 = require("@typegoose/typegoose");
|
|
14
|
+
const defaultClasses_1 = require("@typegoose/typegoose/lib/defaultClasses");
|
|
15
|
+
const enum_1 = require("../../../utilities/enum");
|
|
16
|
+
let CancellationReason = class CancellationReason extends defaultClasses_1.TimeStamps {
|
|
17
|
+
reason;
|
|
18
|
+
reasonType;
|
|
19
|
+
status;
|
|
20
|
+
};
|
|
21
|
+
exports.CancellationReason = CancellationReason;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typegoose_1.prop)({ required: true, type: String }),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], CancellationReason.prototype, "reason", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typegoose_1.prop)({ required: true, type: String, enum: enum_1.SupportReasonTypeEnum }),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], CancellationReason.prototype, "reasonType", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typegoose_1.prop)({ required: true, type: String, enum: enum_1.SettingsReasonStatus }),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], CancellationReason.prototype, "status", void 0);
|
|
34
|
+
exports.CancellationReason = CancellationReason = __decorate([
|
|
35
|
+
(0, typegoose_1.modelOptions)({ schemaOptions: { collection: 'cancellation-reasons' } })
|
|
36
|
+
], CancellationReason);
|
|
37
|
+
//# sourceMappingURL=cancellation-reason.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cancellation-reason.model.js","sourceRoot":"/","sources":["libraries/mongo/models/cancellation-reason.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA0D;AAC1D,4EAAqE;AACrE,kDAAkH;AAG3G,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,2BAAU;IAEvC,MAAM,CAAS;IAGf,UAAU,CAAwB;IAGlC,MAAM,CAAuB;CACvC,CAAA;AATY,gDAAkB;AAEpB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;kDACjB;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,4BAAqB,EAAE,CAAC;;sDAC3B;AAGlC;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,2BAAoB,EAAE,CAAC;;kDAC/B;6BAR3B,kBAAkB;IAD9B,IAAA,wBAAY,EAAC,EAAE,aAAa,EAAE,EAAE,UAAU,EAAE,sBAAsB,EAAE,EAAE,CAAC;GAC3D,kBAAkB,CAS9B","sourcesContent":["import { modelOptions, prop } from '@typegoose/typegoose';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\nimport { SettingsReasonStatus, CancellationReasonTypeEnum, SupportReasonTypeEnum } from '../../../utilities/enum';\n\n@modelOptions({ schemaOptions: { collection: 'cancellation-reasons' } })\nexport class CancellationReason extends TimeStamps {\n @prop({ required: true, type: String })\n public reason: string;\n\n @prop({ required: true, type: String, enum: SupportReasonTypeEnum })\n public reasonType: SupportReasonTypeEnum;\n\n @prop({ required: true, type: String, enum: SettingsReasonStatus })\n public status: SettingsReasonStatus;\n}\n"]}
|
|
@@ -3,8 +3,8 @@ import { Status } from '../../../utilities/enum';
|
|
|
3
3
|
export declare class CoreUser extends TimeStamps {
|
|
4
4
|
name: string;
|
|
5
5
|
email: string;
|
|
6
|
-
gender
|
|
7
|
-
dob
|
|
6
|
+
gender?: string;
|
|
7
|
+
dob?: Date;
|
|
8
8
|
countryISO2: string;
|
|
9
9
|
fcmTokens?: string[];
|
|
10
10
|
profilePhoto?: string;
|
|
@@ -35,11 +35,11 @@ __decorate([
|
|
|
35
35
|
__metadata("design:type", String)
|
|
36
36
|
], CoreUser.prototype, "email", void 0);
|
|
37
37
|
__decorate([
|
|
38
|
-
(0, typegoose_1.prop)({ required:
|
|
38
|
+
(0, typegoose_1.prop)({ required: false, type: String }),
|
|
39
39
|
__metadata("design:type", String)
|
|
40
40
|
], CoreUser.prototype, "gender", void 0);
|
|
41
41
|
__decorate([
|
|
42
|
-
(0, typegoose_1.prop)({ required:
|
|
42
|
+
(0, typegoose_1.prop)({ required: false, type: Date }),
|
|
43
43
|
__metadata("design:type", Date)
|
|
44
44
|
], CoreUser.prototype, "dob", void 0);
|
|
45
45
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core-user.model.js","sourceRoot":"/","sources":["libraries/mongo/models/core-user.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA0D;AAC1D,4EAAqE;AACrE,kDAAiD;AAG1C,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,2BAAU;IAEhC,IAAI,CAAU;IAGd,KAAK,CAAU;IAGf,MAAM,CAAU;IAGhB,GAAG,CAAQ;IAGX,WAAW,CAAU;IAGrB,SAAS,CAAY;IAG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E,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;6CACX;AAGrB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;2CAChB;AAGrB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;8CACM;AAGtB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,aAAM,EAAE,OAAO,EAAE,aAAM,CAAC,MAAM,EAAE,CAAC;;wCACtC;AAGhB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC;;2CACnB;AAGrB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;kDACU;mBA7BrB,QAAQ;IADpB,IAAA,wBAAY,EAAC,EAAE,aAAa,EAAE,EAAE,UAAU,EAAE,WAAW,EAAE,EAAE,CAAC;GAChD,QAAQ,CA8BpB","sourcesContent":["import { modelOptions, prop } from '@typegoose/typegoose';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\nimport { Status } from '../../../utilities/enum';\n\n@modelOptions({ schemaOptions: { collection: 'coreUsers' } })\nexport class CoreUser extends TimeStamps {\n\t@prop({ required: true, type: String })\n\tpublic name!: string;\n\n\t@prop({ required: true, type: String })\n\tpublic email!: string;\n\n\t@prop({ required: false, type: String })\n\tpublic gender?: string;\n\n\t@prop({ required: false, type: Date })\n\tpublic dob?: Date;\n\n\t@prop({ required: true, type: String })\n\tpublic countryISO2!: string;\n\n\t@prop({ type: () => [String], default: [] })\n\tpublic fcmTokens?: string[];\n\n\t@prop({ type: String })\n\tpublic profilePhoto?: string;\n\n\t@prop({ type: String, enum: Status, default: Status.ACTIVE })\n\tpublic status?: Status;\n\n\t@prop({ required: true, type: () => [String] })\n\tpublic deviceIds!: string[];\n\n\t@prop({ type: String })\n\tpublic stripeCustomerId?: string;\n}\n"]}
|
|
@@ -0,0 +1,26 @@
|
|
|
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.DefaultChat = void 0;
|
|
13
|
+
const typegoose_1 = require("@typegoose/typegoose");
|
|
14
|
+
const defaultClasses_1 = require("@typegoose/typegoose/lib/defaultClasses");
|
|
15
|
+
let DefaultChat = class DefaultChat extends defaultClasses_1.TimeStamps {
|
|
16
|
+
text;
|
|
17
|
+
};
|
|
18
|
+
exports.DefaultChat = DefaultChat;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, typegoose_1.prop)({ required: true, type: String }),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], DefaultChat.prototype, "text", void 0);
|
|
23
|
+
exports.DefaultChat = DefaultChat = __decorate([
|
|
24
|
+
(0, typegoose_1.modelOptions)({ schemaOptions: { collection: 'default-chat', timestamps: true } })
|
|
25
|
+
], DefaultChat);
|
|
26
|
+
//# sourceMappingURL=default-chat.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default-chat.model.js","sourceRoot":"/","sources":["libraries/mongo/models/default-chat.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA0D;AAC1D,4EAAqE;AAG9D,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,2BAAU;IAEnC,IAAI,CAAS;CACpB,CAAA;AAHY,kCAAW;AAEhB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;yCACnB;sBAFR,WAAW;IADvB,IAAA,wBAAY,EAAC,EAAE,aAAa,EAAE,EAAE,UAAU,EAAE,cAAc,EAAE,UAAU,EAAE,IAAI,EAAE,EAAE,CAAC;GACrE,WAAW,CAGvB","sourcesContent":["import { modelOptions, prop } from '@typegoose/typegoose';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\n\n@modelOptions({ schemaOptions: { collection: 'default-chat', timestamps: true } })\nexport class DefaultChat extends TimeStamps {\n\t@prop({ required: true, type: String })\n\tpublic text: string;\n}\n"]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ValueType } from '../../../../utilities/enum';
|
|
2
|
+
declare class DeliveryCharge {
|
|
3
|
+
from: number;
|
|
4
|
+
to: number;
|
|
5
|
+
charge: number;
|
|
6
|
+
riderCut: number;
|
|
7
|
+
}
|
|
8
|
+
export declare class ChargeSetting {
|
|
9
|
+
valueType?: ValueType;
|
|
10
|
+
value?: number;
|
|
11
|
+
deliveryCharges?: DeliveryCharge[];
|
|
12
|
+
deliveryChargesForCourier?: DeliveryCharge[];
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,60 @@
|
|
|
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.ChargeSetting = void 0;
|
|
13
|
+
const typegoose_1 = require("@typegoose/typegoose");
|
|
14
|
+
const enum_1 = require("../../../../utilities/enum");
|
|
15
|
+
class DeliveryCharge {
|
|
16
|
+
from;
|
|
17
|
+
to;
|
|
18
|
+
charge;
|
|
19
|
+
riderCut;
|
|
20
|
+
}
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typegoose_1.prop)({ required: true, type: Number, min: 0 }),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], DeliveryCharge.prototype, "from", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typegoose_1.prop)({ required: true, type: Number, min: 0 }),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], DeliveryCharge.prototype, "to", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typegoose_1.prop)({ required: true, type: Number, min: 0 }),
|
|
31
|
+
__metadata("design:type", Number)
|
|
32
|
+
], DeliveryCharge.prototype, "charge", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typegoose_1.prop)({ required: true, type: Number, min: 0 }),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], DeliveryCharge.prototype, "riderCut", void 0);
|
|
37
|
+
class ChargeSetting {
|
|
38
|
+
valueType;
|
|
39
|
+
value;
|
|
40
|
+
deliveryCharges;
|
|
41
|
+
deliveryChargesForCourier;
|
|
42
|
+
}
|
|
43
|
+
exports.ChargeSetting = ChargeSetting;
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typegoose_1.prop)({ type: String, enum: enum_1.ValueType, default: enum_1.ValueType.PERCENTAGE }),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], ChargeSetting.prototype, "valueType", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typegoose_1.prop)({ type: Number, min: 0 }),
|
|
50
|
+
__metadata("design:type", Number)
|
|
51
|
+
], ChargeSetting.prototype, "value", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typegoose_1.prop)({ type: () => [DeliveryCharge], default: [] }),
|
|
54
|
+
__metadata("design:type", Array)
|
|
55
|
+
], ChargeSetting.prototype, "deliveryCharges", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, typegoose_1.prop)({ type: () => [DeliveryCharge], default: [] }),
|
|
58
|
+
__metadata("design:type", Array)
|
|
59
|
+
], ChargeSetting.prototype, "deliveryChargesForCourier", void 0);
|
|
60
|
+
//# sourceMappingURL=charge-setting.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"charge-setting.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/charge-setting.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,qDAAuD;AAEvD,MAAM,cAAc;IAEZ,IAAI,CAAU;IAGd,EAAE,CAAU;IAGZ,MAAM,CAAU;IAGhB,QAAQ,CAAU;CACzB;AAVO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;4CAC1B;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;0CAC5B;AAGZ;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;8CACxB;AAGhB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;gDACtB;AAG1B,MAAa,aAAa;IAElB,SAAS,CAAa;IAGtB,KAAK,CAAU;IAGf,eAAe,CAAoB;IAGnC,yBAAyB,CAAoB;CACpD;AAZD,sCAYC;AAVO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAS,EAAE,OAAO,EAAE,gBAAS,CAAC,UAAU,EAAE,CAAC;;gDAC1C;AAGtB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;4CACT;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,cAAc,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;sDACV;AAGnC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,cAAc,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;gEACA","sourcesContent":["import { prop } from '@typegoose/typegoose';\nimport { ValueType } from '../../../../utilities/enum';\n\nclass DeliveryCharge {\n\t@prop({ required: true, type: Number, min: 0 })\n\tpublic from!: number;\n\n\t@prop({ required: true, type: Number, min: 0 })\n\tpublic to!: number;\n\n\t@prop({ required: true, type: Number, min: 0 })\n\tpublic charge!: number;\n\n\t@prop({ required: true, type: Number, min: 0 })\n\tpublic riderCut!: number;\n}\n\nexport class ChargeSetting {\n\t@prop({ type: String, enum: ValueType, default: ValueType.PERCENTAGE })\n\tpublic valueType?: ValueType;\n\n\t@prop({ type: Number, min: 0 })\n\tpublic value?: number;\n\n\t@prop({ type: () => [DeliveryCharge], default: [] })\n\tpublic deliveryCharges?: DeliveryCharge[];\n\n\t@prop({ type: () => [DeliveryCharge], default: [] })\n\tpublic deliveryChargesForCourier?: DeliveryCharge[];\n}\n"]}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { Ref } from '@typegoose/typegoose';
|
|
2
2
|
import { Coupon } from '../coupon.model';
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class CompanyCut {
|
|
4
4
|
companyCut?: number;
|
|
5
5
|
secondaryCompanyCut?: number;
|
|
6
|
+
}
|
|
7
|
+
export declare class MarketingCut extends CompanyCut {
|
|
6
8
|
shopCut?: number;
|
|
7
9
|
secondaryShopCut?: number;
|
|
8
10
|
}
|
|
9
|
-
export declare class LoyaltyPoint extends
|
|
11
|
+
export declare class LoyaltyPoint extends CompanyCut {
|
|
10
12
|
redeemCashback?: number;
|
|
11
13
|
secondaryRedeemCashback?: number;
|
|
12
14
|
points?: number;
|
|
@@ -9,24 +9,27 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.CouponDetails = exports.LoyaltyPoint = exports.MarketingCut = void 0;
|
|
12
|
+
exports.CouponDetails = exports.LoyaltyPoint = exports.MarketingCut = exports.CompanyCut = void 0;
|
|
13
13
|
const typegoose_1 = require("@typegoose/typegoose");
|
|
14
14
|
const coupon_model_1 = require("../coupon.model");
|
|
15
|
-
class
|
|
15
|
+
class CompanyCut {
|
|
16
16
|
companyCut;
|
|
17
17
|
secondaryCompanyCut;
|
|
18
|
-
shopCut;
|
|
19
|
-
secondaryShopCut;
|
|
20
18
|
}
|
|
21
|
-
exports.
|
|
19
|
+
exports.CompanyCut = CompanyCut;
|
|
22
20
|
__decorate([
|
|
23
21
|
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
24
22
|
__metadata("design:type", Number)
|
|
25
|
-
],
|
|
23
|
+
], CompanyCut.prototype, "companyCut", void 0);
|
|
26
24
|
__decorate([
|
|
27
25
|
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
28
26
|
__metadata("design:type", Number)
|
|
29
|
-
],
|
|
27
|
+
], CompanyCut.prototype, "secondaryCompanyCut", void 0);
|
|
28
|
+
class MarketingCut extends CompanyCut {
|
|
29
|
+
shopCut;
|
|
30
|
+
secondaryShopCut;
|
|
31
|
+
}
|
|
32
|
+
exports.MarketingCut = MarketingCut;
|
|
30
33
|
__decorate([
|
|
31
34
|
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
32
35
|
__metadata("design:type", Number)
|
|
@@ -35,7 +38,7 @@ __decorate([
|
|
|
35
38
|
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
36
39
|
__metadata("design:type", Number)
|
|
37
40
|
], MarketingCut.prototype, "secondaryShopCut", void 0);
|
|
38
|
-
class LoyaltyPoint extends
|
|
41
|
+
class LoyaltyPoint extends CompanyCut {
|
|
39
42
|
redeemCashback;
|
|
40
43
|
secondaryRedeemCashback;
|
|
41
44
|
points;
|
|
@@ -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;AAEzC,MAAa,
|
|
1
|
+
{"version":3,"file":"marketing-cut.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/marketing-cut.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiD;AACjD,kDAAyC;AAEzC,MAAa,UAAU;IAEf,UAAU,CAAU;IAGpB,mBAAmB,CAAU;CACpC;AAND,gCAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;8CACR;AAGpB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;uDACC;AAErC,MAAa,YAAa,SAAQ,UAAU;IAEpC,OAAO,CAAU;IAGjB,gBAAgB,CAAU;CACjC;AAND,oCAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;6CACX;AAGjB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;sDACF;AAGlC,MAAa,YAAa,SAAQ,UAAU;IAEpC,cAAc,CAAU;IAGxB,uBAAuB,CAAU;IAGjC,MAAM,CAAU;CACvB;AATD,oCASC;AAPO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;oDACJ;AAGxB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;6DACK;AAGjC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;4CACZ;AAGxB,MAAa,aAAc,SAAQ,YAAY;IAEvC,MAAM,CAAe;IAGrB,IAAI,CAAU;CACrB;AAND,sCAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,qBAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;6CACZ;AAGrB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;2CACf","sourcesContent":["import { prop, Ref } from '@typegoose/typegoose';\nimport { Coupon } from '../coupon.model';\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 LoyaltyPoint extends CompanyCut {\n\t@prop({ type: Number, default: 0 })\n\tpublic redeemCashback?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryRedeemCashback?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic points?: number;\n}\n\nexport class CouponDetails extends MarketingCut {\n\t@prop({ ref: () => Coupon, default: 0 })\n\tpublic coupon?: Ref<Coupon>;\n\n\t@prop({ type: Object, default: {} })\n\tpublic snap?: object;\n}\n"]}
|
|
@@ -3,8 +3,12 @@ export declare class OrderPricing {
|
|
|
3
3
|
secondarySubtotal?: number;
|
|
4
4
|
discount?: number;
|
|
5
5
|
secondaryDiscount?: number;
|
|
6
|
+
loyaltyPointDiscount?: number;
|
|
7
|
+
secondaryLoyaltyPointDiscount?: number;
|
|
6
8
|
couponDiscount?: number;
|
|
7
9
|
secondaryCouponDiscount?: number;
|
|
10
|
+
punchMarketingDiscount?: number;
|
|
11
|
+
secondaryPunchMarketingDiscount?: number;
|
|
8
12
|
deliveryFee?: number;
|
|
9
13
|
secondaryDeliveryFee?: number;
|
|
10
14
|
riderTips?: number;
|
|
@@ -16,8 +16,12 @@ class OrderPricing {
|
|
|
16
16
|
secondarySubtotal;
|
|
17
17
|
discount;
|
|
18
18
|
secondaryDiscount;
|
|
19
|
+
loyaltyPointDiscount;
|
|
20
|
+
secondaryLoyaltyPointDiscount;
|
|
19
21
|
couponDiscount;
|
|
20
22
|
secondaryCouponDiscount;
|
|
23
|
+
punchMarketingDiscount;
|
|
24
|
+
secondaryPunchMarketingDiscount;
|
|
21
25
|
deliveryFee;
|
|
22
26
|
secondaryDeliveryFee;
|
|
23
27
|
riderTips;
|
|
@@ -46,6 +50,14 @@ __decorate([
|
|
|
46
50
|
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
47
51
|
__metadata("design:type", Number)
|
|
48
52
|
], OrderPricing.prototype, "secondaryDiscount", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
55
|
+
__metadata("design:type", Number)
|
|
56
|
+
], OrderPricing.prototype, "loyaltyPointDiscount", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
59
|
+
__metadata("design:type", Number)
|
|
60
|
+
], OrderPricing.prototype, "secondaryLoyaltyPointDiscount", void 0);
|
|
49
61
|
__decorate([
|
|
50
62
|
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
51
63
|
__metadata("design:type", Number)
|
|
@@ -54,6 +66,14 @@ __decorate([
|
|
|
54
66
|
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
55
67
|
__metadata("design:type", Number)
|
|
56
68
|
], OrderPricing.prototype, "secondaryCouponDiscount", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
71
|
+
__metadata("design:type", Number)
|
|
72
|
+
], OrderPricing.prototype, "punchMarketingDiscount", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
75
|
+
__metadata("design:type", Number)
|
|
76
|
+
], OrderPricing.prototype, "secondaryPunchMarketingDiscount", void 0);
|
|
57
77
|
__decorate([
|
|
58
78
|
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
59
79
|
__metadata("design:type", Number)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"order-pricing.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/order-pricing.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,YAAY;IAExB,QAAQ,CAAU;IAGlB,iBAAiB,C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,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;4CACnB;AAGhB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;qDACV;AAGzB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;gDACf;AAGpB;IADC,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;yDACN","sourcesContent":["import { prop } from '@typegoose/typegoose';\n\nexport class OrderPricing {\n\t@prop({ type: Number, default: 0 })\n\tsubtotal?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tsecondarySubtotal?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tdiscount?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tsecondaryDiscount?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tloyaltyPointDiscount?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tsecondaryLoyaltyPointDiscount?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tcouponDiscount?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tsecondaryCouponDiscount?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpunchMarketingDiscount?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tsecondaryPunchMarketingDiscount?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tdeliveryFee?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tsecondaryDeliveryFee?: number;\n\n\t@prop({ type: Number, default: 0 })\n\triderTips?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tsecondaryRiderTips?: number;\n\n\t@prop({ type: Number, default: 0 })\n\ttotal?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tsecondaryTotal?: number;\n\n\t@prop({ type: Number, default: 0 })\n\twallet?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tsecondaryWallet?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpaidAmount?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tsecondaryPaidAmount?: number;\n}\n"]}
|
|
@@ -0,0 +1,33 @@
|
|
|
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.PlusSettings = void 0;
|
|
13
|
+
const typegoose_1 = require("@typegoose/typegoose");
|
|
14
|
+
const enum_1 = require("../../../../utilities/enum");
|
|
15
|
+
class PlusSettings {
|
|
16
|
+
packageType;
|
|
17
|
+
amount;
|
|
18
|
+
isActive;
|
|
19
|
+
}
|
|
20
|
+
exports.PlusSettings = PlusSettings;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typegoose_1.prop)({ required: true, type: String, enum: enum_1.PlusSettingsPackageType }),
|
|
23
|
+
__metadata("design:type", PlusSettings)
|
|
24
|
+
], PlusSettings.prototype, "packageType", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typegoose_1.prop)({ type: Number, required: true }),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], PlusSettings.prototype, "amount", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typegoose_1.prop)({ type: Boolean, default: true }),
|
|
31
|
+
__metadata("design:type", Boolean)
|
|
32
|
+
], PlusSettings.prototype, "isActive", void 0);
|
|
33
|
+
//# sourceMappingURL=plus-settings.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plus-settings.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/plus-settings.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,qDAAqE;AAErE,MAAa,YAAY;IAEjB,WAAW,CAAe;IAG1B,MAAM,CAAS;IAGf,QAAQ,CAAU;CACzB;AATD,oCASC;AAPO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,8BAAuB,EAAE,CAAC;8BAClD,YAAY;iDAAC;AAG1B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACjB;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;8CACd","sourcesContent":["import { prop } from '@typegoose/typegoose';\nimport { PlusSettingsPackageType } from '../../../../utilities/enum';\n\nexport class PlusSettings {\n\t@prop({ required: true, type: String, enum: PlusSettingsPackageType })\n\tpublic packageType: PlusSettings;\n\n\t@prop({ type: Number, required: true })\n\tpublic amount: number;\n\n\t@prop({ type: Boolean, default: true })\n\tpublic isActive: boolean;\n}\n"]}
|
|
@@ -0,0 +1,27 @@
|
|
|
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.SupportReasonInfo = void 0;
|
|
13
|
+
const typegoose_1 = require("@typegoose/typegoose");
|
|
14
|
+
class SupportReasonInfo {
|
|
15
|
+
question;
|
|
16
|
+
answer;
|
|
17
|
+
}
|
|
18
|
+
exports.SupportReasonInfo = SupportReasonInfo;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, typegoose_1.prop)({ type: String, maxlength: 200 }),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], SupportReasonInfo.prototype, "question", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typegoose_1.prop)({ type: String, maxlength: 200 }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], SupportReasonInfo.prototype, "answer", void 0);
|
|
27
|
+
//# sourceMappingURL=support-reason-info.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"support-reason-info.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/support-reason-info.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,iBAAiB;IAEtB,QAAQ,CAAU;IAGlB,MAAM,CAAU;CACvB;AAND,8CAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC;;mDACd;AAGlB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC;;iDAChB","sourcesContent":["import { prop } from '@typegoose/typegoose';\n\nexport class SupportReasonInfo {\n\t@prop({ type: String, maxlength: 200 })\n\tpublic question?: string;\n\n\t@prop({ type: String, maxlength: 200 })\n\tpublic answer?: string;\n}\n"]}
|
|
@@ -79,6 +79,10 @@ import { RegularOrderFinance } from './providers/regular-order-finance.model';
|
|
|
79
79
|
import { CourierOrderFinance } from './providers/courier-order-finance.model';
|
|
80
80
|
import { FinanceSettlement } from './finance-settlement.model';
|
|
81
81
|
import { OrderPayment } from './order-payment.model';
|
|
82
|
+
import { DefaultChat } from './default-chat.model';
|
|
83
|
+
import { TermsAndConditions } from './terms-and-conditions.model';
|
|
84
|
+
import { CancellationReason } from './cancellation-reason.model';
|
|
85
|
+
import { SupportReason } from './support-reason.model';
|
|
82
86
|
export declare const ActivityLogModel: ReturnModelType<typeof ActivityLog>;
|
|
83
87
|
export * from './activity-log.model';
|
|
84
88
|
export declare const AdminAccessControlModel: ReturnModelType<typeof AdminAccessControl>;
|
|
@@ -239,3 +243,11 @@ export declare const UserModel: ReturnModelType<typeof User>;
|
|
|
239
243
|
export * from './user.model';
|
|
240
244
|
export declare const ZoneModel: ReturnModelType<typeof Zone>;
|
|
241
245
|
export * from './zone.model';
|
|
246
|
+
export declare const DefaultChatModel: ReturnModelType<typeof DefaultChat>;
|
|
247
|
+
export * from './default-chat.model';
|
|
248
|
+
export declare const TermsAndConditionsModel: ReturnModelType<typeof TermsAndConditions>;
|
|
249
|
+
export * from './terms-and-conditions.model';
|
|
250
|
+
export declare const SupportReasonModel: ReturnModelType<typeof SupportReason>;
|
|
251
|
+
export * from './support-reason.model';
|
|
252
|
+
export declare const CancellationReasonModel: ReturnModelType<typeof CancellationReason>;
|
|
253
|
+
export * from './cancellation-reason.model';
|
|
@@ -15,7 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.OrderModel = exports.NutritionModel = exports.NotificationModel = exports.MealPlanModel = exports.PunchMarketingModel = exports.LoyaltyPointMarketingModel = exports.FreeDeliveryMarketingModel = exports.FeaturedMarketingModel = exports.DiscountMarketingModel = exports.Buy1Get1MarketingModel = exports.MarketingModel = exports.LoyaltyPointSettingModel = exports.LoyaltyPointCategoryModel = exports.ListContainerModel = exports.LineItemModel = exports.GalleryModel = exports.FinanceSettlementModel = exports.FilterContainerModel = exports.FeaturedSettingModel = exports.FavouriteModel = exports.FaqModel = exports.DishModel = exports.DealSettingModel = exports.ReferralRewardCouponModel = exports.ReferralCodeCouponModel = exports.IndividualUserCouponModel = exports.IndividualStoreCouponModel = exports.GlobalCouponModel = exports.CustomCouponModel = exports.CouponModel = exports.CounterModel = exports.CoreUserModel = exports.CoreAppleAuthIdentityModel = exports.CoreGoogleAuthIdentityModel = exports.CorePhoneAuthIdentityModel = exports.CoreEmailAuthIdentityModel = exports.CoreAuthIdentityModel = exports.CategoryModel = exports.CartParticipantModel = exports.CartModel = exports.AreebaCardModel = exports.CardModel = exports.BrandModel = exports.BOBFinanceModel = exports.BannerModel = exports.AttributeModel = exports.AppScreenSettingModel = exports.AdminModel = exports.AdminAccessControlModel = exports.ActivityLogModel = void 0;
|
|
18
|
-
exports.ZoneModel = exports.UserModel = exports.TagModel = exports.SubscriptionModel = exports.SubscriptionSettingModel = exports.ShopModel = exports.ShopReviewModel = exports.ShopMealPlanModel = exports.ShopCategoryModel = exports.ShopAccessControlModel = exports.SettingModel = exports.RoleModel = exports.RiderModel = exports.RiderTrackingModel = exports.RiderTimeoutModel = exports.RiderReviewModel = exports.RequestAreaModel = exports.ReferralSettingModel = exports.RatingSettingModel = exports.PunchMarketingHistoryModel = exports.ProductModel = exports.ProductMarketingModel = exports.ParentModel = exports.OrderPaymentModel = exports.CourierOrderFinanceModel = exports.RegularOrderFinanceModel = exports.OrderFinanceModel = exports.OrderDeliveryModel = exports.CourierOrderModel = exports.RegularOrderModel = void 0;
|
|
18
|
+
exports.CancellationReasonModel = exports.SupportReasonModel = exports.TermsAndConditionsModel = exports.DefaultChatModel = exports.ZoneModel = exports.UserModel = exports.TagModel = exports.SubscriptionModel = exports.SubscriptionSettingModel = exports.ShopModel = exports.ShopReviewModel = exports.ShopMealPlanModel = exports.ShopCategoryModel = exports.ShopAccessControlModel = exports.SettingModel = exports.RoleModel = exports.RiderModel = exports.RiderTrackingModel = exports.RiderTimeoutModel = exports.RiderReviewModel = exports.RequestAreaModel = exports.ReferralSettingModel = exports.RatingSettingModel = exports.PunchMarketingHistoryModel = exports.ProductModel = exports.ProductMarketingModel = exports.ParentModel = exports.OrderPaymentModel = exports.CourierOrderFinanceModel = exports.RegularOrderFinanceModel = exports.OrderFinanceModel = exports.OrderDeliveryModel = exports.CourierOrderModel = exports.RegularOrderModel = void 0;
|
|
19
19
|
const typegoose_1 = require("@typegoose/typegoose");
|
|
20
20
|
const admin_model_1 = require("./admin.model");
|
|
21
21
|
const admin_access_control_model_1 = require("./admin-access-control.model");
|
|
@@ -99,6 +99,10 @@ const regular_order_finance_model_1 = require("./providers/regular-order-finance
|
|
|
99
99
|
const courier_order_finance_model_1 = require("./providers/courier-order-finance.model");
|
|
100
100
|
const finance_settlement_model_1 = require("./finance-settlement.model");
|
|
101
101
|
const order_payment_model_1 = require("./order-payment.model");
|
|
102
|
+
const default_chat_model_1 = require("./default-chat.model");
|
|
103
|
+
const terms_and_conditions_model_1 = require("./terms-and-conditions.model");
|
|
104
|
+
const cancellation_reason_model_1 = require("./cancellation-reason.model");
|
|
105
|
+
const support_reason_model_1 = require("./support-reason.model");
|
|
102
106
|
exports.ActivityLogModel = (0, typegoose_1.getModelForClass)(activity_log_model_1.ActivityLog);
|
|
103
107
|
__exportStar(require("./activity-log.model"), exports);
|
|
104
108
|
exports.AdminAccessControlModel = (0, typegoose_1.getModelForClass)(admin_access_control_model_1.AdminAccessControl);
|
|
@@ -259,4 +263,12 @@ exports.UserModel = (0, typegoose_1.getModelForClass)(user_model_1.User);
|
|
|
259
263
|
__exportStar(require("./user.model"), exports);
|
|
260
264
|
exports.ZoneModel = (0, typegoose_1.getModelForClass)(zone_model_1.Zone);
|
|
261
265
|
__exportStar(require("./zone.model"), exports);
|
|
266
|
+
exports.DefaultChatModel = (0, typegoose_1.getModelForClass)(default_chat_model_1.DefaultChat);
|
|
267
|
+
__exportStar(require("./default-chat.model"), exports);
|
|
268
|
+
exports.TermsAndConditionsModel = (0, typegoose_1.getModelForClass)(terms_and_conditions_model_1.TermsAndConditions);
|
|
269
|
+
__exportStar(require("./terms-and-conditions.model"), exports);
|
|
270
|
+
exports.SupportReasonModel = (0, typegoose_1.getModelForClass)(support_reason_model_1.SupportReason);
|
|
271
|
+
__exportStar(require("./support-reason.model"), exports);
|
|
272
|
+
exports.CancellationReasonModel = (0, typegoose_1.getModelForClass)(cancellation_reason_model_1.CancellationReason);
|
|
273
|
+
__exportStar(require("./cancellation-reason.model"), exports);
|
|
262
274
|
//# sourceMappingURL=index.js.map
|