@merkaly/api 0.2.3-1 → 0.2.3-2
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.
|
@@ -13,7 +13,7 @@ export declare class OrderEntity extends AbstractEntity {
|
|
|
13
13
|
shipping?: Types.Map<any>;
|
|
14
14
|
payment: PaymentEntity;
|
|
15
15
|
createdBy: string;
|
|
16
|
-
client
|
|
16
|
+
client: ClientEntity;
|
|
17
17
|
notes: string;
|
|
18
18
|
readonly fullNumber: string;
|
|
19
19
|
readonly total: number;
|
|
@@ -56,11 +56,11 @@ var OrderEntity = (function (_super) {
|
|
|
56
56
|
__metadata("design:type", Array)
|
|
57
57
|
], OrderEntity.prototype, "items", void 0);
|
|
58
58
|
__decorate([
|
|
59
|
-
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.Map, ref: function () { return billing_entity_1.BillingEntity; } }),
|
|
59
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.Map, ref: function () { return billing_entity_1.BillingEntity; }, default: null }),
|
|
60
60
|
__metadata("design:type", mongoose_2.Types.Map)
|
|
61
61
|
], OrderEntity.prototype, "billing", void 0);
|
|
62
62
|
__decorate([
|
|
63
|
-
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.Map, ref: function () { return shipping_entity_1.ShippingEntity; } }),
|
|
63
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.Map, ref: function () { return shipping_entity_1.ShippingEntity; }, default: null }),
|
|
64
64
|
__metadata("design:type", mongoose_2.Types.Map)
|
|
65
65
|
], OrderEntity.prototype, "shipping", void 0);
|
|
66
66
|
__decorate([
|
|
@@ -76,7 +76,7 @@ var OrderEntity = (function (_super) {
|
|
|
76
76
|
__metadata("design:type", client_entity_1.ClientEntity)
|
|
77
77
|
], OrderEntity.prototype, "client", void 0);
|
|
78
78
|
__decorate([
|
|
79
|
-
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.String }),
|
|
79
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.String, default: null }),
|
|
80
80
|
__metadata("design:type", String)
|
|
81
81
|
], OrderEntity.prototype, "notes", void 0);
|
|
82
82
|
OrderEntity = __decorate([
|