@lyxa.ai/core 1.0.57 → 1.0.58
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/finance-settlement.model.d.ts +1 -0
- package/dist/libraries/mongo/models/finance-settlement.model.js +5 -0
- package/dist/libraries/mongo/models/finance-settlement.model.js.map +1 -1
- package/dist/libraries/mongo/models/marketing.model.d.ts +1 -1
- package/dist/libraries/mongo/models/marketing.model.js +2 -2
- package/dist/libraries/mongo/models/marketing.model.js.map +1 -1
- package/dist/libraries/mongo/models/providers/loyalty-point-marketing.model.js.map +1 -1
- package/dist/utilities/validation/common-validation.d.ts +7 -7
- package/package.json +1 -1
- package/dist/libraries/mongo/models/embedded/charge-setting.model.d.ts +0 -14
- package/dist/libraries/mongo/models/embedded/charge-setting.model.js +0 -60
- package/dist/libraries/mongo/models/embedded/charge-setting.model.js.map +0 -1
- package/dist/libraries/mongo/models/terms-condition.model.d.ts +0 -8
- package/dist/libraries/mongo/models/terms-condition.model.js +0 -51
- package/dist/libraries/mongo/models/terms-condition.model.js.map +0 -1
|
@@ -32,6 +32,7 @@ let FinanceSettlement = class FinanceSettlement extends defaultClasses_1.TimeSta
|
|
|
32
32
|
secondaryAmount;
|
|
33
33
|
paymentIntentId;
|
|
34
34
|
settleBy;
|
|
35
|
+
adminNote;
|
|
35
36
|
};
|
|
36
37
|
exports.FinanceSettlement = FinanceSettlement;
|
|
37
38
|
__decorate([
|
|
@@ -82,6 +83,10 @@ __decorate([
|
|
|
82
83
|
(0, typegoose_1.prop)({ ref: () => admin_model_1.Admin }),
|
|
83
84
|
__metadata("design:type", Object)
|
|
84
85
|
], FinanceSettlement.prototype, "settleBy", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, typegoose_1.prop)({ type: String, maxlength: 250 }),
|
|
88
|
+
__metadata("design:type", String)
|
|
89
|
+
], FinanceSettlement.prototype, "adminNote", void 0);
|
|
85
90
|
exports.FinanceSettlement = FinanceSettlement = __decorate([
|
|
86
91
|
(0, typegoose_1.modelOptions)({ schemaOptions: { collection: 'financeSettlements' } })
|
|
87
92
|
], FinanceSettlement);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"finance-settlement.model.js","sourceRoot":"/","sources":["libraries/mongo/models/finance-settlement.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA+D;AAC/D,4EAAqE;AACrE,+CAAsC;AACtC,6CAAoC;AACpC,+CAAsC;AACtC,kDAAgF;AAChF,6CAAoC;AACpC,+CAAsC;AACtC,iDAAwC;AAGjC,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,2BAAU;IAEzC,WAAW,CAAe;IAG1B,KAAK,CAAc;IAGnB,MAAM,CAAe;IAGrB,IAAI,CAAa;IAGjB,QAAQ,CAAY;IAGpB,KAAK,CAAc;IAGnB,IAAI,CAAa;IAGjB,cAAc,CAAkB;IAGhC,MAAM,CAAU;IAGhB,eAAe,CAAU;IAGzB,eAAe,CAAU;IAGzB,QAAQ,CAAc;
|
|
1
|
+
{"version":3,"file":"finance-settlement.model.js","sourceRoot":"/","sources":["libraries/mongo/models/finance-settlement.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA+D;AAC/D,4EAAqE;AACrE,+CAAsC;AACtC,6CAAoC;AACpC,+CAAsC;AACtC,kDAAgF;AAChF,6CAAoC;AACpC,+CAAsC;AACtC,iDAAwC;AAGjC,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,2BAAU;IAEzC,WAAW,CAAe;IAG1B,KAAK,CAAc;IAGnB,MAAM,CAAe;IAGrB,IAAI,CAAa;IAGjB,QAAQ,CAAY;IAGpB,KAAK,CAAc;IAGnB,IAAI,CAAa;IAGjB,cAAc,CAAkB;IAGhC,MAAM,CAAU;IAGhB,eAAe,CAAU;IAGzB,eAAe,CAAU;IAGzB,QAAQ,CAAc;IAGtB,SAAS,CAAU;CAC1B,CAAA;AAvCY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AAE,CAAC;;0DACS;AAGzB;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,mBAAK,EAAE,CAAC;;mDACE;AAGtB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC;;oDACb;4BAtCd,iBAAiB;IAD7B,IAAA,wBAAY,EAAC,EAAE,aAAa,EAAE,EAAE,UAAU,EAAE,oBAAoB,EAAE,EAAE,CAAC;GACzD,iBAAiB,CAuC7B","sourcesContent":["import { modelOptions, prop, Ref } from '@typegoose/typegoose';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\nimport { Order } from './order.model';\nimport { Shop } from './shop.model';\nimport { Rider } from './rider.model';\nimport { AccountType, ItemType, SettlementType } from '../../../utilities/enum';\nimport { User } from './user.model';\nimport { Admin } from './admin.model';\nimport { Parent } from './parent.model';\n\n@modelOptions({ schemaOptions: { collection: 'financeSettlements' } })\nexport class FinanceSettlement extends TimeStamps {\n\t@prop({ required: true, type: String, enum: AccountType })\n\tpublic accountType!: AccountType;\n\n\t@prop({ ref: () => Order, index: true })\n\tpublic order?: Ref<Order>;\n\n\t@prop({ ref: () => Parent, index: true })\n\tpublic parent?: Ref<Parent>;\n\n\t@prop({ ref: () => Shop, index: true })\n\tpublic shop?: Ref<Shop>;\n\n\t@prop({ type: String, enum: ItemType, index: true })\n\tpublic itemType?: ItemType;\n\n\t@prop({ ref: () => Rider, index: true })\n\tpublic rider?: Ref<Rider>;\n\n\t@prop({ ref: () => User, index: true })\n\tpublic user?: Ref<User>;\n\n\t@prop({ required: true, type: String, enum: SettlementType })\n\tpublic settlementType!: SettlementType;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic amount?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryAmount?: number;\n\n\t@prop({ type: String })\n\tpublic paymentIntentId?: string;\n\n\t@prop({ ref: () => Admin })\n\tpublic settleBy?: Ref<Admin>;\n\n\t@prop({ type: String, maxlength: 250 })\n\tpublic adminNote?: string;\n}\n"]}
|
|
@@ -6,7 +6,7 @@ import { Shop } from './shop.model';
|
|
|
6
6
|
export declare class Marketing extends TimeStamps {
|
|
7
7
|
shop: Ref<Shop>;
|
|
8
8
|
marketingType: MarketingType;
|
|
9
|
-
|
|
9
|
+
isAppliedByCompany: boolean;
|
|
10
10
|
duration: Duration;
|
|
11
11
|
status?: MarketingStatus;
|
|
12
12
|
pausedAt?: Date | null;
|
|
@@ -18,7 +18,7 @@ const shop_model_1 = require("./shop.model");
|
|
|
18
18
|
let Marketing = class Marketing extends defaultClasses_1.TimeStamps {
|
|
19
19
|
shop;
|
|
20
20
|
marketingType;
|
|
21
|
-
|
|
21
|
+
isAppliedByCompany;
|
|
22
22
|
duration;
|
|
23
23
|
status;
|
|
24
24
|
pausedAt;
|
|
@@ -35,7 +35,7 @@ __decorate([
|
|
|
35
35
|
__decorate([
|
|
36
36
|
(0, typegoose_1.prop)({ required: true, type: Boolean }),
|
|
37
37
|
__metadata("design:type", Boolean)
|
|
38
|
-
], Marketing.prototype, "
|
|
38
|
+
], Marketing.prototype, "isAppliedByCompany", void 0);
|
|
39
39
|
__decorate([
|
|
40
40
|
(0, typegoose_1.prop)({ required: true, type: duration_model_1.Duration }),
|
|
41
41
|
__metadata("design:type", duration_model_1.Duration)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"marketing.model.js","sourceRoot":"/","sources":["libraries/mongo/models/marketing.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA+D;AAC/D,4EAAqE;AACrE,kDAAyE;AACzE,4DAAmD;AACnD,6CAAoC;AAW7B,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,2BAAU;IAEjC,IAAI,CAAa;IAGjB,aAAa,CAAiB;IAG9B,
|
|
1
|
+
{"version":3,"file":"marketing.model.js","sourceRoot":"/","sources":["libraries/mongo/models/marketing.model.ts"],"names":[],"mappings":";;;;;;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;GACW,SAAS,CAsBrB","sourcesContent":["import { modelOptions, prop, Ref } from '@typegoose/typegoose';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\nimport { MarketingStatus, MarketingType } from '../../../utilities/enum';\nimport { Duration } from './shared/duration.model';\nimport { Shop } from './shop.model';\n\n@modelOptions({\n\tschemaOptions: {\n\t\tcollection: 'marketings',\n\t\tdiscriminatorKey: 'marketingType',\n\t\ttoJSON: { virtuals: true },\n\t\ttoObject: { virtuals: true },\n\t\tid: false,\n\t},\n})\nexport class Marketing extends TimeStamps {\n\t@prop({ required: true, ref: () => Shop })\n\tpublic shop!: Ref<Shop>;\n\n\t@prop({ required: true, type: String, enum: MarketingType })\n\tpublic marketingType!: MarketingType;\n\n\t@prop({ required: true, type: Boolean })\n\tpublic isAppliedByCompany!: boolean;\n\n\t@prop({ required: true, type: Duration })\n\tpublic duration!: Duration;\n\n\t@prop({\n\t\ttype: String,\n\t\tenum: MarketingStatus,\n\t\tdefault: MarketingStatus.ACTIVE,\n\t})\n\tpublic status?: MarketingStatus;\n\n\t@prop({ type: Date, default: null })\n\tpublic pausedAt?: Date | null;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loyalty-point-marketing.model.js","sourceRoot":"/","sources":["libraries/mongo/models/providers/loyalty-point-marketing.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiD;AACjD,qDAAsE;AACtE,wDAA+C;AAC/C,kFAAuE;AACvE,wEAA8D;AAE9D,MAAa,qBAAsB,SAAQ,2BAAS;IAC5C,aAAa,GAAG,oBAAa,CAAC,aAAsB,CAAC;IAGrD,YAAY,CAAW;IAGvB,SAAS,CAAa;IAGtB,KAAK,CAAU;IAGf,QAAQ,CAA6B;IAGrC,QAAQ,CAA2B;IAGnC,UAAU,CAAU;CAC3B;AApBD,sDAoBC;AAhBO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;2DACV;AAGvB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAS,EAAE,CAAC;;wDACX;AAGtB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;oDACD;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,mDAAoB,EAAE,CAAC;;uDACE;AAGrC;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,0CAAgB,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;uDACT;AAGnC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;yDACR","sourcesContent":["import { prop, Ref } from '@typegoose/typegoose';\nimport { MarketingType, ValueType } from '../../../../utilities/enum';\nimport { Marketing } from '../marketing.model';\nimport { LoyaltyPointCategory } from '../loyalty-point-category.model';\nimport { ProductMarketing } from '../product-marketing.model';\n\nexport class LoyaltyPointMarketing extends Marketing {\n\tpublic marketingType = MarketingType.LOYALTY_POINT as const;\n\n\t@prop({ type: Boolean, default: false })\n\tpublic isEntireMenu?: boolean;\n\n\t@prop({ type: String, enum: ValueType })\n\tpublic valueType?: ValueType;\n\n\t@prop({ type: Number })\n\tpublic value?: number;\n\n\t@prop({ ref: () => LoyaltyPointCategory })\n\tpublic category?: Ref<LoyaltyPointCategory>;\n\n\t@prop({ ref: () => ProductMarketing, default: [] })\n\tpublic products?: Ref<ProductMarketing>[];\n\n\t@prop({ type: Number, default: 0 })\n\tpublic spendLimit?: number;\n}
|
|
1
|
+
{"version":3,"file":"loyalty-point-marketing.model.js","sourceRoot":"/","sources":["libraries/mongo/models/providers/loyalty-point-marketing.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiD;AACjD,qDAAsE;AACtE,wDAA+C;AAC/C,kFAAuE;AACvE,wEAA8D;AAE9D,MAAa,qBAAsB,SAAQ,2BAAS;IAC5C,aAAa,GAAG,oBAAa,CAAC,aAAsB,CAAC;IAGrD,YAAY,CAAW;IAGvB,SAAS,CAAa;IAGtB,KAAK,CAAU;IAGf,QAAQ,CAA6B;IAGrC,QAAQ,CAA2B;IAGnC,UAAU,CAAU;CAC3B;AApBD,sDAoBC;AAhBO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;2DACV;AAGvB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAS,EAAE,CAAC;;wDACX;AAGtB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;oDACD;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,mDAAoB,EAAE,CAAC;;uDACE;AAGrC;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,0CAAgB,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;uDACT;AAGnC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;yDACR","sourcesContent":["import { prop, Ref } from '@typegoose/typegoose';\nimport { MarketingType, ValueType } from '../../../../utilities/enum';\nimport { Marketing } from '../marketing.model';\nimport { LoyaltyPointCategory } from '../loyalty-point-category.model';\nimport { ProductMarketing } from '../product-marketing.model';\n\nexport class LoyaltyPointMarketing extends Marketing {\n\tpublic marketingType = MarketingType.LOYALTY_POINT as const;\n\n\t@prop({ type: Boolean, default: false })\n\tpublic isEntireMenu?: boolean;\n\n\t@prop({ type: String, enum: ValueType })\n\tpublic valueType?: ValueType;\n\n\t@prop({ type: Number })\n\tpublic value?: number;\n\n\t@prop({ ref: () => LoyaltyPointCategory })\n\tpublic category?: Ref<LoyaltyPointCategory>;\n\n\t@prop({ ref: () => ProductMarketing, default: [] })\n\tpublic products?: Ref<ProductMarketing>[];\n\n\t@prop({ type: Number, default: 0 })\n\tpublic spendLimit?: number;\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<{
|
|
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<z.objectUtil.extendShape<{
|
|
|
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, number];
|
|
@@ -257,7 +257,7 @@ export declare const UserAddressSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
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<{
|
|
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<z.objectUtil.extendShape<
|
|
|
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, number];
|
package/package.json
CHANGED
|
@@ -1,14 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,60 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"charge-setting.model.js","sourceRoot":"/","sources":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AE,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,8 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"]}
|