@lyxa.ai/core 1.0.196 → 1.0.197
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/shop-courier.model.d.ts +3 -0
- package/dist/libraries/mongo/models/providers/shop-courier.model.js +6 -0
- package/dist/libraries/mongo/models/providers/shop-courier.model.js.map +1 -1
- package/dist/libraries/mongo/models/rider-review.model.js +1 -1
- package/dist/libraries/mongo/models/rider-review.model.js.map +1 -1
- package/dist/types/README.md +1 -1
- package/dist/types/package.json +1 -1
- package/package.json +1 -1
|
@@ -1,14 +1,17 @@
|
|
|
1
|
+
import { Ref } from '@typegoose/typegoose';
|
|
1
2
|
import { Order } from '../order.model';
|
|
2
3
|
import { ShopCourierOrderStatus, OrderType, OrderSize } from '../../../../utilities/enum';
|
|
3
4
|
import { CourierAddress } from '../shared/address.model';
|
|
4
5
|
import { CourierOrderStatusTimeline } from '../embedded/status-timeline.model';
|
|
5
6
|
import { CourierOrderFinance } from '../embedded/courier-order-finance.model';
|
|
7
|
+
import { Shop } from '../shop.model';
|
|
6
8
|
export declare class Customer {
|
|
7
9
|
name: string;
|
|
8
10
|
phoneNumber: string;
|
|
9
11
|
}
|
|
10
12
|
export declare class ShopCourierOrder extends Order {
|
|
11
13
|
orderType: OrderType.SHOP_COURIER;
|
|
14
|
+
shop: Ref<Shop>;
|
|
12
15
|
status: ShopCourierOrderStatus;
|
|
13
16
|
amount: number;
|
|
14
17
|
size?: OrderSize;
|
|
@@ -16,6 +16,7 @@ const enum_1 = require("../../../../utilities/enum");
|
|
|
16
16
|
const address_model_1 = require("../shared/address.model");
|
|
17
17
|
const status_timeline_model_1 = require("../embedded/status-timeline.model");
|
|
18
18
|
const courier_order_finance_model_1 = require("../embedded/courier-order-finance.model");
|
|
19
|
+
const shop_model_1 = require("../shop.model");
|
|
19
20
|
class Customer {
|
|
20
21
|
name;
|
|
21
22
|
phoneNumber;
|
|
@@ -31,6 +32,7 @@ __decorate([
|
|
|
31
32
|
], Customer.prototype, "phoneNumber", void 0);
|
|
32
33
|
class ShopCourierOrder extends order_model_1.Order {
|
|
33
34
|
orderType = enum_1.OrderType.SHOP_COURIER;
|
|
35
|
+
shop;
|
|
34
36
|
status;
|
|
35
37
|
amount;
|
|
36
38
|
size;
|
|
@@ -42,6 +44,10 @@ class ShopCourierOrder extends order_model_1.Order {
|
|
|
42
44
|
adjustedFinance;
|
|
43
45
|
}
|
|
44
46
|
exports.ShopCourierOrder = ShopCourierOrder;
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typegoose_1.prop)({ required: true, ref: () => shop_model_1.Shop }),
|
|
49
|
+
__metadata("design:type", Object)
|
|
50
|
+
], ShopCourierOrder.prototype, "shop", void 0);
|
|
45
51
|
__decorate([
|
|
46
52
|
(0, typegoose_1.prop)({ type: String, enum: enum_1.ShopCourierOrderStatus, default: enum_1.ShopCourierOrderStatus.PLACED }),
|
|
47
53
|
__metadata("design:type", String)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shop-courier.model.js","sourceRoot":"/","sources":["libraries/mongo/models/providers/shop-courier.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"shop-courier.model.js","sourceRoot":"/","sources":["libraries/mongo/models/providers/shop-courier.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiD;AAEjD,gDAAuC;AACvC,qDAA0F;AAC1F,2DAAyD;AACzD,6EAA+E;AAC/E,yFAA8E;AAC9E,8CAAqC;AAErC,MAAa,QAAQ;IAEb,IAAI,CAAU;IAGd,WAAW,CAAU;CAC5B;AAND,4BAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;sCAClB;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;6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E,8BAAc,EAAE,CAAC;8BACtB,8BAAc;yDAAC;AAGjC;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,iDAAmB,EAAE,CAAC;8BACnC,iDAAmB;iDAAC;AAG9B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,iDAAmB,EAAE,CAAC;8BACX,iDAAmB;yDAAC","sourcesContent":["import { prop, Ref } from '@typegoose/typegoose';\n\nimport { Order } from '../order.model';\nimport { ShopCourierOrderStatus, OrderType, OrderSize } from '../../../../utilities/enum';\nimport { CourierAddress } from '../shared/address.model';\nimport { CourierOrderStatusTimeline } from '../embedded/status-timeline.model';\nimport { CourierOrderFinance } from '../embedded/courier-order-finance.model';\nimport { Shop } from '../shop.model';\n\nexport class Customer {\n\t@prop({ required: true, type: String })\n\tpublic name!: string;\n\n\t@prop({ required: true, type: String })\n\tpublic phoneNumber!: string;\n}\n\nexport class ShopCourierOrder extends Order {\n\tpublic orderType = OrderType.SHOP_COURIER as const;\n\n\t@prop({ required: true, ref: () => Shop })\n\tpublic shop!: Ref<Shop>;\n\n\t@prop({ type: String, enum: ShopCourierOrderStatus, default: ShopCourierOrderStatus.PLACED })\n\tpublic status: ShopCourierOrderStatus;\n\n\t@prop({ required: true, type: Number, min: 0 })\n\tpublic amount!: number;\n\n\t@prop({ type: String, enum: OrderSize })\n\tpublic size?: OrderSize;\n\n\t@prop({ required: true, _id: false, type: () => Customer })\n\tpublic customer!: Customer;\n\n\t@prop({ type: () => [CourierOrderStatusTimeline], default: [] })\n\tpublic statusTimeline: CourierOrderStatusTimeline[];\n\n\t@prop({ type: String })\n\tpublic description?: string;\n\n\t@prop({ required: true, type: CourierAddress })\n\tpublic deliveryAddress!: CourierAddress;\n\n\t@prop({ required: true, type: CourierOrderFinance })\n\tpublic finance!: CourierOrderFinance;\n\n\t@prop({ type: CourierOrderFinance })\n\tpublic adjustedFinance?: CourierOrderFinance;\n}\n"]}
|
|
@@ -18,7 +18,7 @@ let RiderReview = class RiderReview extends base_review_model_1.BaseReview {
|
|
|
18
18
|
};
|
|
19
19
|
exports.RiderReview = RiderReview;
|
|
20
20
|
__decorate([
|
|
21
|
-
(0, typegoose_1.prop)({ required: true,
|
|
21
|
+
(0, typegoose_1.prop)({ required: true, ref: () => rider_model_1.Rider }),
|
|
22
22
|
__metadata("design:type", Object)
|
|
23
23
|
], RiderReview.prototype, "rider", void 0);
|
|
24
24
|
exports.RiderReview = RiderReview = __decorate([
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,GAAG,EAAE,GAAG,EAAE,CAAC,mBAAK,EAAE,CAAC;;0CACjB;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';\nimport { BaseReview } from './base/base-review.model';\nimport { Rider } from './rider.model';\n\n@modelOptions({\n\tschemaOptions: { collection: 'riderReviews' },\n\toptions: {\n\t\tallowMixed: Severity.ALLOW,\n\t},\n})\nexport class RiderReview extends BaseReview {\n\t@prop({ required: true, ref: () => Rider })\n\tpublic rider!: Ref<Rider>;\n}\n"]}
|
package/dist/types/README.md
CHANGED
package/dist/types/package.json
CHANGED