@lyxa.ai/core 1.3.43 → 1.3.45
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/providers/rider-payout.model.d.ts +1 -0
- package/dist/libraries/mongo/models/providers/rider-payout.model.js +5 -0
- package/dist/libraries/mongo/models/providers/rider-payout.model.js.map +1 -1
- package/dist/libraries/mongo/models/providers/service-order-review.model.d.ts +2 -0
- package/dist/libraries/mongo/models/providers/service-order-review.model.js +6 -0
- package/dist/libraries/mongo/models/providers/service-order-review.model.js.map +1 -1
- package/dist/libraries/mongo/models/review.model.d.ts +1 -1
- package/dist/libraries/mongo/models/review.model.js +1 -1
- package/dist/libraries/mongo/models/review.model.js.map +1 -1
- package/dist/types/README.md +1 -1
- package/dist/types/package.json +1 -1
- package/dist/types/utilities/validation/common-validation.d.ts +12 -12
- package/package.json +1 -1
|
@@ -7,6 +7,7 @@ export declare class RiderPayoutBreakdown {
|
|
|
7
7
|
freeDeliveryByCompany?: number;
|
|
8
8
|
freeDeliveryByShop?: number;
|
|
9
9
|
deliveryFeeOfReplacementOrder?: number;
|
|
10
|
+
deliveryFeeOfCancelledOrder?: number;
|
|
10
11
|
totalDeliveryFee?: number;
|
|
11
12
|
companyDeliveryCut?: number;
|
|
12
13
|
riderTips?: number;
|
|
@@ -19,6 +19,7 @@ class RiderPayoutBreakdown {
|
|
|
19
19
|
freeDeliveryByCompany;
|
|
20
20
|
freeDeliveryByShop;
|
|
21
21
|
deliveryFeeOfReplacementOrder;
|
|
22
|
+
deliveryFeeOfCancelledOrder;
|
|
22
23
|
totalDeliveryFee;
|
|
23
24
|
companyDeliveryCut;
|
|
24
25
|
riderTips;
|
|
@@ -44,6 +45,10 @@ __decorate([
|
|
|
44
45
|
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
45
46
|
__metadata("design:type", Number)
|
|
46
47
|
], RiderPayoutBreakdown.prototype, "deliveryFeeOfReplacementOrder", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
50
|
+
__metadata("design:type", Number)
|
|
51
|
+
], RiderPayoutBreakdown.prototype, "deliveryFeeOfCancelledOrder", void 0);
|
|
47
52
|
__decorate([
|
|
48
53
|
(0, typegoose_1.prop)({ type: Number, default: 0 }),
|
|
49
54
|
__metadata("design:type", Number)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rider-payout.model.js","sourceRoot":"/","sources":["libraries/mongo/models/providers/rider-payout.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiD;AACjD,qDAAwD;AACxD,kDAAyC;AACzC,gDAAuC;AAEvC,MAAa,oBAAoB;IAEzB,qBAAqB,CAAU;IAG/B,qBAAqB,CAAU;IAG/B,kBAAkB,CAAU;IAG5B,6BAA6B,CAAU;IAGvC,gBAAgB,CAAU;IAG1B,kBAAkB,CAAU;IAG5B,SAAS,CAAU;IAGnB,gBAAgB,CAAU;IAG1B,qBAAqB,CAAU;IAG/B,iBAAiB,CAAU;IAG3B,WAAW,CAAU;CAC5B;
|
|
1
|
+
{"version":3,"file":"rider-payout.model.js","sourceRoot":"/","sources":["libraries/mongo/models/providers/rider-payout.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiD;AACjD,qDAAwD;AACxD,kDAAyC;AACzC,gDAAuC;AAEvC,MAAa,oBAAoB;IAEzB,qBAAqB,CAAU;IAG/B,qBAAqB,CAAU;IAG/B,kBAAkB,CAAU;IAG5B,6BAA6B,CAAU;IAGvC,2BAA2B,CAAU;IAGrC,gBAAgB,CAAU;IAG1B,kBAAkB,CAAU;IAG5B,SAAS,CAAU;IAGnB,gBAAgB,CAAU;IAG1B,qBAAqB,CAAU;IAG/B,iBAAiB,CAAU;IAG3B,WAAW,CAAU;CAC5B;AApCD,oDAoCC;AAlCO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,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B;CAC9C;AARD,kCAQC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,mBAAK,EAAE,CAAC;;0CACjB;AAGnB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,oBAAoB,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;8BACxC,oBAAoB;oDAAC","sourcesContent":["import { prop, Ref } from '@typegoose/typegoose';\nimport { PayoutType } from '../../../../utilities/enum';\nimport { Payout } from '../payout.model';\nimport { Rider } from '../rider.model';\n\nexport class RiderPayoutBreakdown {\n\t@prop({ type: Number, default: 0 })\n\tpublic deliveryFeePaidByUser?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic freeDeliveryByCompany?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic freeDeliveryByShop?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic deliveryFeeOfReplacementOrder?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic deliveryFeeOfCancelledOrder?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic totalDeliveryFee?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic companyDeliveryCut?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic riderTips?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic addCreditToRider?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic removeCreditFromRider?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic riderWeeklyReward?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic riderPayout?: number;\n}\n\nexport class RiderPayout extends Payout {\n\tpublic payoutType = PayoutType.RIDER as const;\n\n\t@prop({ required: true, ref: () => Rider })\n\tpublic rider!: Ref<Rider>;\n\n\t@prop({ required: true, type: RiderPayoutBreakdown, _id: false })\n\tpublic payoutBreakdown!: RiderPayoutBreakdown;\n}\n"]}
|
|
@@ -2,7 +2,9 @@ import { Ref } from '@typegoose/typegoose';
|
|
|
2
2
|
import { ServiceOrder } from '../service-order.model';
|
|
3
3
|
import { ReviewType } from '../../../../utilities/enum';
|
|
4
4
|
import { Review } from '../review.model';
|
|
5
|
+
import { Vendor } from '../vendor.model';
|
|
5
6
|
export declare class ServiceOrderReview extends Review {
|
|
6
7
|
reviewType: ReviewType.PROFESSIONAL;
|
|
8
|
+
vendor: Ref<Vendor>;
|
|
7
9
|
serviceOrder: Ref<ServiceOrder>;
|
|
8
10
|
}
|
|
@@ -14,11 +14,17 @@ const typegoose_1 = require("@typegoose/typegoose");
|
|
|
14
14
|
const service_order_model_1 = require("../service-order.model");
|
|
15
15
|
const enum_1 = require("../../../../utilities/enum");
|
|
16
16
|
const review_model_1 = require("../review.model");
|
|
17
|
+
const vendor_model_1 = require("../vendor.model");
|
|
17
18
|
class ServiceOrderReview extends review_model_1.Review {
|
|
18
19
|
reviewType = enum_1.ReviewType.PROFESSIONAL;
|
|
20
|
+
vendor;
|
|
19
21
|
serviceOrder;
|
|
20
22
|
}
|
|
21
23
|
exports.ServiceOrderReview = ServiceOrderReview;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, typegoose_1.prop)({ required: true, ref: () => vendor_model_1.Vendor }),
|
|
26
|
+
__metadata("design:type", Object)
|
|
27
|
+
], ServiceOrderReview.prototype, "vendor", void 0);
|
|
22
28
|
__decorate([
|
|
23
29
|
(0, typegoose_1.prop)({ required: true, ref: () => service_order_model_1.ServiceOrder }),
|
|
24
30
|
__metadata("design:type", Object)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service-order-review.model.js","sourceRoot":"/","sources":["libraries/mongo/models/providers/service-order-review.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiD;AACjD,gEAAsD;AACtD,qDAAwD;AACxD,kDAAyC;AAEzC,MAAa,kBAAmB,SAAQ,qBAAM;IACtC,UAAU,GAAG,iBAAU,CAAC,YAAqB,CAAC;IAG9C,YAAY,CAAqB;CAExC;
|
|
1
|
+
{"version":3,"file":"service-order-review.model.js","sourceRoot":"/","sources":["libraries/mongo/models/providers/service-order-review.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiD;AACjD,gEAAsD;AACtD,qDAAwD;AACxD,kDAAyC;AACzC,kDAAyC;AAEzC,MAAa,kBAAmB,SAAQ,qBAAM;IACtC,UAAU,GAAG,iBAAU,CAAC,YAAqB,CAAC;IAG9C,MAAM,CAAe;IAGrB,YAAY,CAAqB;CAExC;AATD,gDASC;AALO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,qBAAM,EAAE,CAAC;;kDAChB;AAGrB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,kCAAY,EAAE,CAAC;;wDACV","sourcesContent":["import { prop, Ref } from '@typegoose/typegoose';\nimport { ServiceOrder } from '../service-order.model';\nimport { ReviewType } from '../../../../utilities/enum';\nimport { Review } from '../review.model';\nimport { Vendor } from '../vendor.model';\n\nexport class ServiceOrderReview extends Review {\n\tpublic reviewType = ReviewType.PROFESSIONAL as const;\n\n\t@prop({ required: true, ref: () => Vendor })\n\tpublic vendor!: Ref<Vendor>;\n\n\t@prop({ required: true, ref: () => ServiceOrder })\n\tpublic serviceOrder!: Ref<ServiceOrder>;\n\n}\n"]}
|
|
@@ -55,7 +55,7 @@ __decorate([
|
|
|
55
55
|
__metadata("design:type", Object)
|
|
56
56
|
], Review.prototype, "deletedBy", void 0);
|
|
57
57
|
__decorate([
|
|
58
|
-
(0, typegoose_1.prop)({
|
|
58
|
+
(0, typegoose_1.prop)({ type: String }),
|
|
59
59
|
__metadata("design:type", String)
|
|
60
60
|
], Review.prototype, "orderId", void 0);
|
|
61
61
|
exports.Review = Review = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,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M,EAAE,CAAC;;uCACC;iBAvBZ,MAAM;IARlB,IAAA,wBAAY,EAAC;QACb,aAAa,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,gBAAgB,EAAE,YAAY,EAAE;KACxE,CAAC;IACD,IAAA,iBAAK,EACL,EAAE,KAAK,EAAE,CAAC,EAAE,YAAY,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,EAC5C,EAAE,MAAM,EAAE,IAAI,EAAE,uBAAuB,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,CAC9D;IACA,IAAA,iBAAK,EAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;GACT,MAAM,CAwBlB","sourcesContent":["import { index, modelOptions, prop, Ref } from '@typegoose/typegoose';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\nimport { User } from './user.model';\nimport { ReviewType } from '../../../utilities/enum';\nimport { Admin } from './admin.model';\n\n@modelOptions({\n\tschemaOptions: { collection: 'reviews', discriminatorKey: 'reviewType' },\n})\n@index(\n\t{ order: 1, serviceOrder: 1, reviewType: 1 },\n\t{ unique: true, partialFilterExpression: { deletedAt: null } }\n)\n@index({ orderId: 1 })\nexport class Review extends TimeStamps {\n\t@prop({ required: true, type: String, enum: ReviewType })\n\tpublic reviewType!: ReviewType;\n\n\t@prop({ required: true, ref: () => User })\n\tpublic user!: Ref<User>;\n\n\t@prop({ required: true, type: Number, min: 1, max: 5 })\n\tpublic rating!: number;\n\n\t@prop({ type: String })\n\tpublic description?: string;\n\n\t@prop({ type: () => [String], default: [] })\n\tpublic tags?: string[];\n\n\t@prop({ type: Boolean, default: true })\n\tpublic isVisible?: boolean;\n\n\t@prop({ ref: () => Admin })\n\tpublic deletedBy?: Ref<Admin>;\n\n\t@prop({ type: String })\n\tpublic orderId?: string;\n}\n"]}
|
package/dist/types/README.md
CHANGED
package/dist/types/package.json
CHANGED
|
@@ -26,8 +26,8 @@ export declare const FilterSchema: z.ZodOptional<z.ZodObject<{
|
|
|
26
26
|
searchFields?: string[] | undefined;
|
|
27
27
|
} | undefined;
|
|
28
28
|
sort?: Record<string, 1 | -1> | undefined;
|
|
29
|
-
populate?: any;
|
|
30
29
|
select?: Record<string, 0 | 1> | undefined;
|
|
30
|
+
populate?: any;
|
|
31
31
|
query?: Record<string, any> | undefined;
|
|
32
32
|
}, {
|
|
33
33
|
search?: {
|
|
@@ -36,8 +36,8 @@ export declare const FilterSchema: z.ZodOptional<z.ZodObject<{
|
|
|
36
36
|
} | undefined;
|
|
37
37
|
sort?: Record<string, 1 | -1> | undefined;
|
|
38
38
|
size?: number | undefined;
|
|
39
|
-
populate?: any;
|
|
40
39
|
select?: Record<string, 0 | 1> | undefined;
|
|
40
|
+
populate?: any;
|
|
41
41
|
query?: Record<string, any> | undefined;
|
|
42
42
|
page?: number | undefined;
|
|
43
43
|
}>>;
|
|
@@ -733,12 +733,12 @@ export declare const GetByIdInputSchema: z.ZodObject<{
|
|
|
733
733
|
populate: z.ZodOptional<z.ZodUnion<[z.ZodType<any, z.ZodTypeDef, any>, z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">]>>;
|
|
734
734
|
}, "strip", z.ZodTypeAny, {
|
|
735
735
|
_id: import("mongoose").Types.ObjectId;
|
|
736
|
-
populate?: any;
|
|
737
736
|
select?: Record<string, 0 | 1> | undefined;
|
|
737
|
+
populate?: any;
|
|
738
738
|
}, {
|
|
739
739
|
_id: string | import("mongoose").Types.ObjectId;
|
|
740
|
-
populate?: any;
|
|
741
740
|
select?: Record<string, 0 | 1> | undefined;
|
|
741
|
+
populate?: any;
|
|
742
742
|
}>;
|
|
743
743
|
export type GetByIdInputDTO = DTO<typeof GetByIdInputSchema>;
|
|
744
744
|
export declare const GetProductByIdInputSchema: z.ZodObject<{
|
|
@@ -751,12 +751,12 @@ export declare const GetProductByIdInputSchema: z.ZodObject<{
|
|
|
751
751
|
_id: import("mongoose").Types.ObjectId;
|
|
752
752
|
withAttributeHiddenItems: boolean;
|
|
753
753
|
withAddonsHiddenItems: boolean;
|
|
754
|
-
populate?: any;
|
|
755
754
|
select?: Record<string, 0 | 1> | undefined;
|
|
755
|
+
populate?: any;
|
|
756
756
|
}, {
|
|
757
757
|
_id: string | import("mongoose").Types.ObjectId;
|
|
758
|
-
populate?: any;
|
|
759
758
|
select?: Record<string, 0 | 1> | undefined;
|
|
759
|
+
populate?: any;
|
|
760
760
|
withAttributeHiddenItems?: boolean | undefined;
|
|
761
761
|
withAddonsHiddenItems?: boolean | undefined;
|
|
762
762
|
}>;
|
|
@@ -768,13 +768,13 @@ export declare const GetOrderByIdInputSchema: z.ZodObject<{
|
|
|
768
768
|
userOrderCompletionScope: z.ZodOptional<z.ZodNativeEnum<typeof UserOrderCompletionScope>>;
|
|
769
769
|
}, "strip", z.ZodTypeAny, {
|
|
770
770
|
_id: import("mongoose").Types.ObjectId;
|
|
771
|
-
populate?: any;
|
|
772
771
|
select?: Record<string, 0 | 1> | undefined;
|
|
772
|
+
populate?: any;
|
|
773
773
|
userOrderCompletionScope?: UserOrderCompletionScope | undefined;
|
|
774
774
|
}, {
|
|
775
775
|
_id: string | import("mongoose").Types.ObjectId;
|
|
776
|
-
populate?: any;
|
|
777
776
|
select?: Record<string, 0 | 1> | undefined;
|
|
777
|
+
populate?: any;
|
|
778
778
|
userOrderCompletionScope?: UserOrderCompletionScope | undefined;
|
|
779
779
|
}>;
|
|
780
780
|
export type GetOrderByIdInputDTO = DTO<typeof GetOrderByIdInputSchema>;
|
|
@@ -782,11 +782,11 @@ export declare const GetByTokenInputSchema: z.ZodOptional<z.ZodObject<{
|
|
|
782
782
|
select: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>>>;
|
|
783
783
|
populate: z.ZodOptional<z.ZodUnion<[z.ZodType<any, z.ZodTypeDef, any>, z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">]>>;
|
|
784
784
|
}, "strip", z.ZodTypeAny, {
|
|
785
|
-
populate?: any;
|
|
786
785
|
select?: Record<string, 0 | 1> | undefined;
|
|
787
|
-
}, {
|
|
788
786
|
populate?: any;
|
|
787
|
+
}, {
|
|
789
788
|
select?: Record<string, 0 | 1> | undefined;
|
|
789
|
+
populate?: any;
|
|
790
790
|
}>>;
|
|
791
791
|
export type GetByTokenInputDTO = DTO<typeof GetByTokenInputSchema>;
|
|
792
792
|
export declare const GetOneQuerySchema: z.ZodObject<{
|
|
@@ -794,12 +794,12 @@ export declare const GetOneQuerySchema: z.ZodObject<{
|
|
|
794
794
|
select: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>>>;
|
|
795
795
|
populate: z.ZodOptional<z.ZodUnion<[z.ZodType<any, z.ZodTypeDef, any>, z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">]>>;
|
|
796
796
|
}, "strip", z.ZodTypeAny, {
|
|
797
|
-
populate?: any;
|
|
798
797
|
select?: Record<string, 0 | 1> | undefined;
|
|
798
|
+
populate?: any;
|
|
799
799
|
query?: Record<string, any> | undefined;
|
|
800
800
|
}, {
|
|
801
|
-
populate?: any;
|
|
802
801
|
select?: Record<string, 0 | 1> | undefined;
|
|
802
|
+
populate?: any;
|
|
803
803
|
query?: Record<string, any> | undefined;
|
|
804
804
|
}>;
|
|
805
805
|
export type GetOneQueryDTO = DTO<typeof GetOneQuerySchema>;
|