@lyxa.ai/core 1.0.32 → 1.0.33
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/activity-log.model.js +6 -1
- package/dist/libraries/mongo/models/activity-log.model.js.map +1 -1
- package/dist/libraries/mongo/models/providers/courier-order.model.d.ts +2 -2
- package/dist/libraries/mongo/models/providers/courier-order.model.js +4 -4
- package/dist/libraries/mongo/models/providers/courier-order.model.js.map +1 -1
- package/dist/libraries/mongo/models/providers/regular-order.model.d.ts +2 -2
- package/dist/libraries/mongo/models/providers/regular-order.model.js +4 -4
- package/dist/libraries/mongo/models/providers/regular-order.model.js.map +1 -1
- package/dist/libraries/mongo/models/rider-review.model.js +6 -1
- package/dist/libraries/mongo/models/rider-review.model.js.map +1 -1
- package/package.json +1 -1
|
@@ -38,6 +38,11 @@ __decorate([
|
|
|
38
38
|
__metadata("design:type", Object)
|
|
39
39
|
], ActivityLog.prototype, "newDocument", void 0);
|
|
40
40
|
exports.ActivityLog = ActivityLog = __decorate([
|
|
41
|
-
(0, typegoose_1.modelOptions)({
|
|
41
|
+
(0, typegoose_1.modelOptions)({
|
|
42
|
+
schemaOptions: { collection: 'activityLogs' },
|
|
43
|
+
options: {
|
|
44
|
+
allowMixed: typegoose_1.Severity.ALLOW,
|
|
45
|
+
},
|
|
46
|
+
})
|
|
42
47
|
], ActivityLog);
|
|
43
48
|
//# sourceMappingURL=activity-log.model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activity-log.model.js","sourceRoot":"/","sources":["libraries/mongo/models/activity-log.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"activity-log.model.js","sourceRoot":"/","sources":["libraries/mongo/models/activity-log.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAmF;AACnF,4EAAqE;AACrE,kDAAuD;AACvD,+CAAsC;AAQ/B,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,2BAAU;IAEnC,KAAK,CAAc;IAGnB,YAAY,CAAgB;IAG5B,WAAW,CAAO;IAGlB,WAAW,CAAO;CACzB,CAAA;AAZY,kCAAW;AAEhB;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,MAAM,EAAE,IAAI,EAAE,mBAAY,EAAE,CAAC;;iDACxB;AAG5B;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,oBAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;;gDACnC;AAGlB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,oBAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;;gDACnC;sBAXb,WAAW;IANvB,IAAA,wBAAY,EAAC;QACb,aAAa,EAAE,EAAE,UAAU,EAAE,cAAc,EAAE;QAC7C,OAAO,EAAE;YACR,UAAU,EAAE,oBAAQ,CAAC,KAAK;SAC1B;KACD,CAAC;GACW,WAAW,CAYvB","sourcesContent":["import { modelOptions, prop, Severity, mongoose, Ref } from '@typegoose/typegoose';\r\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\r\nimport { UpdatedField } from '../../../utilities/enum';\r\nimport { Admin } from './admin.model';\r\n\r\n@modelOptions({\r\n\tschemaOptions: { collection: 'activityLogs' },\r\n\toptions: {\r\n\t\tallowMixed: Severity.ALLOW,\r\n\t},\r\n})\r\nexport class ActivityLog extends TimeStamps {\r\n\t@prop({ required: true, ref: () => Admin })\r\n\tpublic admin!: Ref<Admin>;\r\n\r\n\t@prop({ required: true, type: String, enum: UpdatedField })\r\n\tpublic updatedField!: UpdatedField;\r\n\r\n\t@prop({ required: true, type: mongoose.Schema.Types.Mixed })\r\n\tpublic oldDocument!: any;\r\n\r\n\t@prop({ required: true, type: mongoose.Schema.Types.Mixed })\r\n\tpublic newDocument!: any;\r\n}\r\n"]}
|
|
@@ -16,8 +16,8 @@ export declare class CourierOrder extends Order {
|
|
|
16
16
|
status?: CourierOrderStatus;
|
|
17
17
|
statusTimeline: CourierOrderStatusTimeline[];
|
|
18
18
|
courierType: CourierServiceType;
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
pickupAddress: CourierAddress;
|
|
20
|
+
deliveryAddress: CourierAddress;
|
|
21
21
|
items?: CourierItem[];
|
|
22
22
|
}
|
|
23
23
|
export {};
|
|
@@ -57,8 +57,8 @@ class CourierOrder extends order_model_1.Order {
|
|
|
57
57
|
status;
|
|
58
58
|
statusTimeline;
|
|
59
59
|
courierType;
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
pickupAddress;
|
|
61
|
+
deliveryAddress;
|
|
62
62
|
items;
|
|
63
63
|
}
|
|
64
64
|
exports.CourierOrder = CourierOrder;
|
|
@@ -77,11 +77,11 @@ __decorate([
|
|
|
77
77
|
__decorate([
|
|
78
78
|
(0, typegoose_1.prop)({ required: true, type: () => address_model_1.CourierAddress }),
|
|
79
79
|
__metadata("design:type", address_model_1.CourierAddress)
|
|
80
|
-
], CourierOrder.prototype, "
|
|
80
|
+
], CourierOrder.prototype, "pickupAddress", void 0);
|
|
81
81
|
__decorate([
|
|
82
82
|
(0, typegoose_1.prop)({ required: true, type: address_model_1.CourierAddress }),
|
|
83
83
|
__metadata("design:type", address_model_1.CourierAddress)
|
|
84
|
-
], CourierOrder.prototype, "
|
|
84
|
+
], CourierOrder.prototype, "deliveryAddress", void 0);
|
|
85
85
|
__decorate([
|
|
86
86
|
(0, typegoose_1.prop)({ type: () => [CourierItem], default: [] }),
|
|
87
87
|
__metadata("design:type", Array)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"courier-order.model.js","sourceRoot":"/","sources":["libraries/mongo/models/providers/courier-order.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,gDAAuC;AACvC,qDAA+F;AAC/F,2DAAyD;AACzD,6EAA+E;AAE/E,MAAM,WAAW;IAEhB,WAAW,CAAS;IAGpB,YAAY,CAAU;IAGtB,QAAQ,CAAS;IAGjB,SAAS,CAAU;IAGnB,kBAAkB,CAAU;IAG5B,UAAU,CAAU;IAGpB,mBAAmB,CAAU;CAC7B;AAnBA;IADC,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDACL;AAGpB;IADC,IAAA,gBAAI,GAAE;;iDACe;AAGtB;IADC,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;6CAChB;AAGjB;IADC,IAAA,gBAAI,GAAE;;8CACY;AAGnB;IADC,IAAA,gBAAI,GAAE;;uDACqB;AAG5B;IADC,IAAA,gBAAI,GAAE;;+CACa;AAGpB;IADC,IAAA,gBAAI,GAAE;;wDACsB;AAG9B,MAAa,YAAa,SAAQ,mBAAK;IAC/B,SAAS,GAAG,gBAAS,CAAC,OAAgB,CAAC;IAGvC,MAAM,CAAsB;IAG5B,cAAc,CAA+B;IAGpD,WAAW,CAAsB;IAGjC,
|
|
1
|
+
{"version":3,"file":"courier-order.model.js","sourceRoot":"/","sources":["libraries/mongo/models/providers/courier-order.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAC5C,gDAAuC;AACvC,qDAA+F;AAC/F,2DAAyD;AACzD,6EAA+E;AAE/E,MAAM,WAAW;IAEhB,WAAW,CAAS;IAGpB,YAAY,CAAU;IAGtB,QAAQ,CAAS;IAGjB,SAAS,CAAU;IAGnB,kBAAkB,CAAU;IAG5B,UAAU,CAAU;IAGpB,mBAAmB,CAAU;CAC7B;AAnBA;IADC,IAAA,gBAAI,EAAC,EA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AAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,WAAW,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;2CAC3B","sourcesContent":["import { prop } from '@typegoose/typegoose';\r\nimport { Order } from '../order.model';\r\nimport { CourierOrderStatus, CourierServiceType, OrderType } from '../../../../utilities/enum';\r\nimport { CourierAddress } from '../shared/address.model';\r\nimport { CourierOrderStatusTimeline } from '../embedded/status-timeline.model';\r\n\r\nclass CourierItem {\r\n\t@prop({ required: true })\r\n\tproductName: string;\r\n\r\n\t@prop()\r\n\tproductImage?: string;\r\n\r\n\t@prop({ required: true, min: 1 })\r\n\tquantity: number;\r\n\r\n\t@prop()\r\n\tunitPrice?: number;\r\n\r\n\t@prop()\r\n\tsecondaryUnitPrice?: number;\r\n\r\n\t@prop()\r\n\ttotalPrice?: number;\r\n\r\n\t@prop()\r\n\tsecondaryTotalPrice?: number;\r\n}\r\n\r\nexport class CourierOrder extends Order {\r\n\tpublic orderType = OrderType.COURIER as const;\r\n\r\n\t@prop({ type: String, enum: CourierOrderStatus, default: CourierOrderStatus.PLACED })\r\n\tpublic status?: CourierOrderStatus;\r\n\r\n\t@prop({ type: () => [CourierOrderStatusTimeline], default: [] })\r\n\tpublic statusTimeline: CourierOrderStatusTimeline[];\r\n\r\n\t@prop({ required: true, type: String, enum: CourierServiceType })\r\n\tcourierType!: CourierServiceType;\r\n\r\n\t@prop({ required: true, type: () => CourierAddress })\r\n\tpickupAddress!: CourierAddress;\r\n\r\n\t@prop({ required: true, type: CourierAddress })\r\n\tdeliveryAddress!: CourierAddress;\r\n\r\n\t@prop({ type: () => [CourierItem], default: [] })\r\n\titems?: CourierItem[];\r\n}\r\n"]}
|
|
@@ -11,8 +11,8 @@ export declare class RegularOrder extends Order {
|
|
|
11
11
|
status?: string;
|
|
12
12
|
statusTimeline: RegularOrderStatusTimeline[];
|
|
13
13
|
itemType?: string;
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
pickupAddress: Address;
|
|
15
|
+
deliveryAddress: UserAddress;
|
|
16
16
|
parent?: Ref<Parent>;
|
|
17
17
|
shop?: Ref<Shop>;
|
|
18
18
|
cart?: Ref<Cart>;
|
|
@@ -23,8 +23,8 @@ class RegularOrder extends order_model_1.Order {
|
|
|
23
23
|
status;
|
|
24
24
|
statusTimeline;
|
|
25
25
|
itemType;
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
pickupAddress;
|
|
27
|
+
deliveryAddress;
|
|
28
28
|
parent;
|
|
29
29
|
shop;
|
|
30
30
|
cart;
|
|
@@ -49,11 +49,11 @@ __decorate([
|
|
|
49
49
|
__decorate([
|
|
50
50
|
(0, typegoose_1.prop)({ required: true, type: address_model_1.Address }),
|
|
51
51
|
__metadata("design:type", address_model_1.Address)
|
|
52
|
-
], RegularOrder.prototype, "
|
|
52
|
+
], RegularOrder.prototype, "pickupAddress", void 0);
|
|
53
53
|
__decorate([
|
|
54
54
|
(0, typegoose_1.prop)({ required: true, type: address_model_1.UserAddress }),
|
|
55
55
|
__metadata("design:type", address_model_1.UserAddress)
|
|
56
|
-
], RegularOrder.prototype, "
|
|
56
|
+
], RegularOrder.prototype, "deliveryAddress", void 0);
|
|
57
57
|
__decorate([
|
|
58
58
|
(0, typegoose_1.prop)({ ref: () => parent_model_1.Parent }),
|
|
59
59
|
__metadata("design:type", Object)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"regular-order.model.js","sourceRoot":"/","sources":["libraries/mongo/models/providers/regular-order.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiD;AACjD,gDAAuC;AACvC,qDAAqF;AACrF,kDAAyC;AACzC,8CAAqC;AACrC,8CAAqC;AACrC,2DAA+D;AAC/D,6EAA+E;AAE/E,MAAa,YAAa,SAAQ,mBAAK;IAC/B,SAAS,GAAG,gBAAS,CAAC,OAAgB,CAAC;IAGvC,MAAM,CAAU;IAGhB,cAAc,CAA+B;IAGpD,QAAQ,CAAU;IAGlB,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AAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,qBAAM,EAAE,CAAC;;4CACP;AAGrB;IADC,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,iBAAI,EAAE,CAAC;;0CACT;AAGjB;IADC,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,iBAAI,EAAE,CAAC;;0CACT;AAGV;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;oDACR;AAGzB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;4DACI;AAGhC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;wDACJ;AAG7B;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,mBAAK,EAAE,CAAC;;iEACqB","sourcesContent":["import { prop, Ref } from '@typegoose/typegoose';\r\nimport { Order } from '../order.model';\r\nimport { ItemType, OrderType, RegularOrderStatus } from '../../../../utilities/enum';\r\nimport { Parent } from '../parent.model';\r\nimport { Shop } from '../shop.model';\r\nimport { Cart } from '../cart.model';\r\nimport { Address, UserAddress } from '../shared/address.model';\r\nimport { RegularOrderStatusTimeline } from '../embedded/status-timeline.model';\r\n\r\nexport class RegularOrder extends Order {\r\n\tpublic orderType = OrderType.REGULAR as const;\r\n\r\n\t@prop({ type: String, enum: RegularOrderStatus, default: RegularOrderStatus.PLACED })\r\n\tpublic status?: string;\r\n\r\n\t@prop({ type: () => [RegularOrderStatusTimeline], default: [] })\r\n\tpublic statusTimeline: RegularOrderStatusTimeline[];\r\n\r\n\t@prop({ type: String, enum: ItemType, default: ItemType.FOOD })\r\n\titemType?: string;\r\n\r\n\t@prop({ required: true, type: Address })\r\n\tpickupAddress: Address;\r\n\r\n\t@prop({ required: true, type: UserAddress })\r\n\tdeliveryAddress: UserAddress;\r\n\r\n\t@prop({ ref: () => Parent })\r\n\tparent?: Ref<Parent>;\r\n\r\n\t@prop({ ref: () => Shop })\r\n\tshop?: Ref<Shop>;\r\n\r\n\t@prop({ ref: () => Cart })\r\n\tcart?: Ref<Cart>;\r\n\r\n\t@prop({ type: Boolean, default: false })\r\n\tpublic isShopDelivery?: boolean;\r\n\r\n\t@prop({ type: Number, default: 0 })\r\n\tpublic preparingTimeInMinutes?: number;\r\n\r\n\t@prop({ type: Boolean, default: false })\r\n\tpublic isReplacementOrder?: boolean;\r\n\r\n\t@prop({ ref: () => Order })\r\n\tpublic originalOrderForReplacement?: Ref<Order>;\r\n}\r\n"]}
|
|
@@ -22,6 +22,11 @@ __decorate([
|
|
|
22
22
|
__metadata("design:type", Object)
|
|
23
23
|
], RiderReview.prototype, "rider", void 0);
|
|
24
24
|
exports.RiderReview = RiderReview = __decorate([
|
|
25
|
-
(0, typegoose_1.modelOptions)({
|
|
25
|
+
(0, typegoose_1.modelOptions)({
|
|
26
|
+
schemaOptions: { collection: 'riderReviews' },
|
|
27
|
+
options: {
|
|
28
|
+
allowMixed: typegoose_1.Severity.ALLOW,
|
|
29
|
+
},
|
|
30
|
+
})
|
|
26
31
|
], RiderReview);
|
|
27
32
|
//# sourceMappingURL=rider-review.model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rider-review.model.js","sourceRoot":"/","sources":["libraries/mongo/models/rider-review.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"rider-review.model.js","sourceRoot":"/","sources":["libraries/mongo/models/rider-review.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAyE;AACzE,gEAAsD;AACtD,+CAAsC;AAQ/B,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,8BAAU;IAEnC,KAAK,CAAc;CAC1B,CAAA;AAHY,kCAAW;AAEhB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,mBAAK,EAAE,CAAC;;0CACnB;sBAFd,WAAW;IANvB,IAAA,wBAAY,EAAC;QACb,aAAa,EAAE,EAAE,UAAU,EAAE,cAAc,EAAE;QAC7C,OAAO,EAAE;YACR,UAAU,EAAE,oBAAQ,CAAC,KAAK;SAC1B;KACD,CAAC;GACW,WAAW,CAGvB","sourcesContent":["import { modelOptions, Severity, prop, Ref } from '@typegoose/typegoose';\r\nimport { BaseReview } from './base/base-review.model';\r\nimport { Rider } from './rider.model';\r\n\r\n@modelOptions({\r\n\tschemaOptions: { collection: 'riderReviews' },\r\n\toptions: {\r\n\t\tallowMixed: Severity.ALLOW,\r\n\t},\r\n})\r\nexport class RiderReview extends BaseReview {\r\n\t@prop({ required: true, Rider: () => Rider })\r\n\tpublic rider!: Ref<Rider>;\r\n}\r\n"]}
|