@lyxa.ai/core 1.0.53 → 1.0.54
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 +2 -2
- package/dist/libraries/mongo/models/cancellation-reason.model.js +1 -1
- package/dist/libraries/mongo/models/cancellation-reason.model.js.map +1 -1
- 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/currency.model.d.ts +2 -7
- package/dist/libraries/mongo/models/embedded/currency.model.js +2 -27
- package/dist/libraries/mongo/models/embedded/currency.model.js.map +1 -1
- 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/validation/common-validation.d.ts +7 -7
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';
|
|
2
|
-
import { SettingsReasonStatus,
|
|
2
|
+
import { SettingsReasonStatus, CancellationReasonTypeEnum } from '../../../utilities/enum';
|
|
3
3
|
export declare class CancellationReason extends TimeStamps {
|
|
4
4
|
reason: string;
|
|
5
|
-
reasonType:
|
|
5
|
+
reasonType: CancellationReasonTypeEnum;
|
|
6
6
|
status: SettingsReasonStatus;
|
|
7
7
|
}
|
|
@@ -24,7 +24,7 @@ __decorate([
|
|
|
24
24
|
__metadata("design:type", String)
|
|
25
25
|
], CancellationReason.prototype, "reason", void 0);
|
|
26
26
|
__decorate([
|
|
27
|
-
(0, typegoose_1.prop)({ required: true, type: String, enum: enum_1.
|
|
27
|
+
(0, typegoose_1.prop)({ required: true, type: String, enum: enum_1.CancellationReasonTypeEnum }),
|
|
28
28
|
__metadata("design:type", String)
|
|
29
29
|
], CancellationReason.prototype, "reasonType", void 0);
|
|
30
30
|
__decorate([
|
|
@@ -1 +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,
|
|
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,CAA6B;IAGvC,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,iCAA0B,EAAE,CAAC;;sDAC3B;AAGvC;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: CancellationReasonTypeEnum })\n public reasonType: CancellationReasonTypeEnum;\n\n @prop({ required: true, type: String, enum: SettingsReasonStatus })\n public status: SettingsReasonStatus;\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"]}
|
|
@@ -14,16 +14,11 @@ const typegoose_1 = require("@typegoose/typegoose");
|
|
|
14
14
|
class Currency {
|
|
15
15
|
symbol;
|
|
16
16
|
name;
|
|
17
|
-
symbolNative;
|
|
18
|
-
decimalDigits;
|
|
19
|
-
rounding;
|
|
20
17
|
code;
|
|
21
|
-
namePlural;
|
|
22
|
-
flag;
|
|
23
18
|
}
|
|
24
19
|
exports.Currency = Currency;
|
|
25
20
|
__decorate([
|
|
26
|
-
(0, typegoose_1.prop)({
|
|
21
|
+
(0, typegoose_1.prop)({ type: String }),
|
|
27
22
|
__metadata("design:type", String)
|
|
28
23
|
], Currency.prototype, "symbol", void 0);
|
|
29
24
|
__decorate([
|
|
@@ -31,27 +26,7 @@ __decorate([
|
|
|
31
26
|
__metadata("design:type", String)
|
|
32
27
|
], Currency.prototype, "name", void 0);
|
|
33
28
|
__decorate([
|
|
34
|
-
(0, typegoose_1.prop)({
|
|
35
|
-
__metadata("design:type", String)
|
|
36
|
-
], Currency.prototype, "symbolNative", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, typegoose_1.prop)({ required: true, type: Number }),
|
|
39
|
-
__metadata("design:type", Number)
|
|
40
|
-
], Currency.prototype, "decimalDigits", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
(0, typegoose_1.prop)({ required: true, type: Number }),
|
|
43
|
-
__metadata("design:type", Number)
|
|
44
|
-
], Currency.prototype, "rounding", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
(0, typegoose_1.prop)({ required: true, type: String }),
|
|
29
|
+
(0, typegoose_1.prop)({ type: String }),
|
|
47
30
|
__metadata("design:type", String)
|
|
48
31
|
], Currency.prototype, "code", void 0);
|
|
49
|
-
__decorate([
|
|
50
|
-
(0, typegoose_1.prop)({ required: true, type: String }),
|
|
51
|
-
__metadata("design:type", String)
|
|
52
|
-
], Currency.prototype, "namePlural", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
(0, typegoose_1.prop)({ required: true, type: String }),
|
|
55
|
-
__metadata("design:type", String)
|
|
56
|
-
], Currency.prototype, "flag", void 0);
|
|
57
32
|
//# sourceMappingURL=currency.model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"currency.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/currency.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,QAAQ;IAEb,MAAM,CAAU;IAGhB,IAAI,CAAU;IAGd,
|
|
1
|
+
{"version":3,"file":"currency.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/currency.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,QAAQ;IAEb,MAAM,CAAU;IAGhB,IAAI,CAAU;IAGd,IAAI,CAAU;CACrB;AATD,4BASC;AAPO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;wCACA;AAGhB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;sCAClB;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;sCACF","sourcesContent":["import { prop } from '@typegoose/typegoose';\n\nexport class Currency {\n\t@prop({ type: String })\n\tpublic symbol?: string;\n\n\t@prop({ required: true, type: String })\n\tpublic name!: string;\n\n\t@prop({ type: String })\n\tpublic code?: string;\n}\n"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';
|
|
2
|
+
export declare class TermsAndConditions extends TimeStamps {
|
|
3
|
+
privacyMessage: string;
|
|
4
|
+
userTermsAndConditions: string;
|
|
5
|
+
shopTermsAndConditions: string;
|
|
6
|
+
riderTermsAndConditions: string;
|
|
7
|
+
lyxaPlusTermsAndConditions: string;
|
|
8
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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.TermsAndConditions = void 0;
|
|
13
|
+
const typegoose_1 = require("@typegoose/typegoose");
|
|
14
|
+
const defaultClasses_1 = require("@typegoose/typegoose/lib/defaultClasses");
|
|
15
|
+
let TermsAndConditions = class TermsAndConditions extends defaultClasses_1.TimeStamps {
|
|
16
|
+
privacyMessage;
|
|
17
|
+
userTermsAndConditions;
|
|
18
|
+
shopTermsAndConditions;
|
|
19
|
+
riderTermsAndConditions;
|
|
20
|
+
lyxaPlusTermsAndConditions;
|
|
21
|
+
};
|
|
22
|
+
exports.TermsAndConditions = TermsAndConditions;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typegoose_1.prop)({ default: '' }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], TermsAndConditions.prototype, "privacyMessage", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typegoose_1.prop)({ default: '' }),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], TermsAndConditions.prototype, "userTermsAndConditions", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typegoose_1.prop)({ default: '' }),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], TermsAndConditions.prototype, "shopTermsAndConditions", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typegoose_1.prop)({ default: '' }),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], TermsAndConditions.prototype, "riderTermsAndConditions", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typegoose_1.prop)({ default: '' }),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], TermsAndConditions.prototype, "lyxaPlusTermsAndConditions", void 0);
|
|
43
|
+
exports.TermsAndConditions = TermsAndConditions = __decorate([
|
|
44
|
+
(0, typegoose_1.modelOptions)({
|
|
45
|
+
schemaOptions: {
|
|
46
|
+
collection: 'terms-and-conditions',
|
|
47
|
+
timestamps: true,
|
|
48
|
+
},
|
|
49
|
+
})
|
|
50
|
+
], TermsAndConditions);
|
|
51
|
+
//# sourceMappingURL=terms-condition.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"terms-condition.model.js","sourceRoot":"/","sources":["libraries/mongo/models/terms-condition.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA0D;AAC1D,4EAAqE;AAQ9D,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,2BAAU;IAE1C,cAAc,CAAS;IAGvB,sBAAsB,CAAS;IAG/B,sBAAsB,CAAS;IAG/B,uBAAuB,CAAS;IAGhC,0BAA0B,CAAS;CAC1C,CAAA;AAfY,gDAAkB;AAEvB;IADN,IAAA,gBAAI,EAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;0DACQ;AAGvB;IADN,IAAA,gBAAI,EAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;kEACgB;AAG/B;IADN,IAAA,gBAAI,EAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;kEACgB;AAG/B;IADN,IAAA,gBAAI,EAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;mEACiB;AAGhC;IADN,IAAA,gBAAI,EAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;sEACoB;6BAd9B,kBAAkB;IAN9B,IAAA,wBAAY,EAAC;QACb,aAAa,EAAE;YACd,UAAU,EAAE,sBAAsB;YAClC,UAAU,EAAE,IAAI;SAChB;KACD,CAAC;GACW,kBAAkB,CAe9B","sourcesContent":["import { modelOptions, prop } from '@typegoose/typegoose';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\n\n@modelOptions({\n\tschemaOptions: {\n\t\tcollection: 'terms-and-conditions',\n\t\ttimestamps: true,\n\t},\n})\nexport class TermsAndConditions extends TimeStamps {\n\t@prop({ default: '' })\n\tpublic privacyMessage: string;\n\n\t@prop({ default: '' })\n\tpublic userTermsAndConditions: string;\n\n\t@prop({ default: '' })\n\tpublic shopTermsAndConditions: string;\n\n\t@prop({ default: '' })\n\tpublic riderTermsAndConditions: string;\n\n\t@prop({ default: '' })\n\tpublic lyxaPlusTermsAndConditions: string;\n}\n"]}
|
|
@@ -195,7 +195,7 @@ export declare const AddressSchema: z.ZodObject<{
|
|
|
195
195
|
city?: string | null | undefined;
|
|
196
196
|
zone?: string | import("mongoose").Types.ObjectId | undefined;
|
|
197
197
|
}>;
|
|
198
|
-
export declare const UserAddressSchema: z.ZodObject<{
|
|
198
|
+
export declare const UserAddressSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
199
199
|
address: z.ZodString | z.ZodOptional<z.ZodString> | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
200
200
|
description: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>> | z.ZodOptional<z.ZodOptional<z.ZodString>> | z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
201
201
|
city: z.ZodString | z.ZodOptional<z.ZodString> | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -214,13 +214,13 @@ export declare const UserAddressSchema: z.ZodObject<{
|
|
|
214
214
|
latitude: z.ZodNumber;
|
|
215
215
|
longitude: z.ZodNumber;
|
|
216
216
|
zone: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
217
|
-
}
|
|
217
|
+
}, {
|
|
218
218
|
addressLabel: z.ZodString | z.ZodOptional<z.ZodString> | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
219
219
|
apartment: z.ZodString | z.ZodOptional<z.ZodString> | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
220
220
|
buildingName: z.ZodString | z.ZodOptional<z.ZodString> | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
221
221
|
deliveryOption: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>> | z.ZodOptional<z.ZodOptional<z.ZodString>> | z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
222
222
|
instructions: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>> | z.ZodOptional<z.ZodOptional<z.ZodString>> | z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
223
|
-
}
|
|
223
|
+
}>, "strip", z.ZodTypeAny, {
|
|
224
224
|
location: {
|
|
225
225
|
type: GeoLocationType;
|
|
226
226
|
coordinates: number[];
|
|
@@ -257,7 +257,7 @@ export declare const UserAddressSchema: z.ZodObject<{
|
|
|
257
257
|
deliveryOption?: string | null | undefined;
|
|
258
258
|
instructions?: string | null | undefined;
|
|
259
259
|
}>;
|
|
260
|
-
export declare const CourierAddressSchema: z.ZodObject<{
|
|
260
|
+
export declare const CourierAddressSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
261
261
|
address: z.ZodString | z.ZodOptional<z.ZodString> | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
262
262
|
description: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>> | z.ZodOptional<z.ZodOptional<z.ZodString>> | z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
263
263
|
city: z.ZodString | z.ZodOptional<z.ZodString> | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -276,16 +276,16 @@ export declare const CourierAddressSchema: z.ZodObject<{
|
|
|
276
276
|
latitude: z.ZodNumber;
|
|
277
277
|
longitude: z.ZodNumber;
|
|
278
278
|
zone: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
279
|
-
}
|
|
279
|
+
}, {
|
|
280
280
|
addressLabel: z.ZodString | z.ZodOptional<z.ZodString> | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
281
281
|
apartment: z.ZodString | z.ZodOptional<z.ZodString> | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
282
282
|
buildingName: z.ZodString | z.ZodOptional<z.ZodString> | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
283
283
|
deliveryOption: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>> | z.ZodOptional<z.ZodOptional<z.ZodString>> | z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
284
284
|
instructions: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>> | z.ZodOptional<z.ZodOptional<z.ZodString>> | z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
285
|
-
}
|
|
285
|
+
}>, {
|
|
286
286
|
name: z.ZodString | z.ZodOptional<z.ZodString> | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
287
287
|
phoneNumber: z.ZodString | z.ZodOptional<z.ZodString> | z.ZodNullable<z.ZodString> | z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
288
|
-
}
|
|
288
|
+
}>, "strip", z.ZodTypeAny, {
|
|
289
289
|
location: {
|
|
290
290
|
type: GeoLocationType;
|
|
291
291
|
coordinates: number[];
|