tt-entities 0.0.32 → 0.0.34
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/libs/tatayab-entities-library/entities/order-item-bundle-selection.entity.d.ts +17 -0
- package/dist/libs/tatayab-entities-library/entities/order-item-bundle-selection.entity.js +70 -0
- package/dist/libs/tatayab-entities-library/entities/order-item-bundle-selection.entity.js.map +1 -0
- package/dist/libs/tatayab-entities-library/entities/order-item.entity.d.ts +50 -0
- package/dist/libs/tatayab-entities-library/entities/order-item.entity.js +153 -0
- package/dist/libs/tatayab-entities-library/entities/order-item.entity.js.map +1 -0
- package/dist/libs/tatayab-entities-library/entities/order-status-history.entity.d.ts +12 -0
- package/dist/libs/tatayab-entities-library/entities/order-status-history.entity.js +54 -0
- package/dist/libs/tatayab-entities-library/entities/order-status-history.entity.js.map +1 -0
- package/dist/libs/tatayab-entities-library/entities/order-status.entity.d.ts +37 -0
- package/dist/libs/tatayab-entities-library/entities/order-status.entity.js +94 -0
- package/dist/libs/tatayab-entities-library/entities/order-status.entity.js.map +1 -0
- package/dist/libs/tatayab-entities-library/entities/order.entity.d.ts +57 -0
- package/dist/libs/tatayab-entities-library/entities/order.entity.js +219 -0
- package/dist/libs/tatayab-entities-library/entities/order.entity.js.map +1 -0
- package/dist/libs/tatayab-entities-library/entities/purchase-order-order-item.entity.d.ts +16 -0
- package/dist/libs/tatayab-entities-library/entities/purchase-order-order-item.entity.js +64 -0
- package/dist/libs/tatayab-entities-library/entities/purchase-order-order-item.entity.js.map +1 -0
- package/dist/libs/tatayab-entities-library/entities/user-transaction.entity.d.ts +33 -0
- package/dist/libs/tatayab-entities-library/entities/user-transaction.entity.js +99 -0
- package/dist/libs/tatayab-entities-library/entities/user-transaction.entity.js.map +1 -0
- package/dist/libs/tatayab-entities-library/entities/user.entity.d.ts +7 -0
- package/dist/libs/tatayab-entities-library/entities/user.entity.js +19 -0
- package/dist/libs/tatayab-entities-library/entities/user.entity.js.map +1 -1
- package/dist/libs/tatayab-entities-library/index.d.ts +7 -0
- package/dist/libs/tatayab-entities-library/index.js +34 -1
- package/dist/libs/tatayab-entities-library/index.js.map +1 -1
- package/dist/src/main.js +876 -2
- package/libs/tatayab-entities-library/src/entities/order-item-bundle-selection.entity.ts +38 -0
- package/libs/tatayab-entities-library/src/entities/order-item.entity.ts +132 -0
- package/libs/tatayab-entities-library/src/entities/order-status-history.entity.ts +34 -0
- package/libs/tatayab-entities-library/src/entities/order-status.entity.ts +70 -0
- package/libs/tatayab-entities-library/src/entities/order.entity.ts +175 -0
- package/libs/tatayab-entities-library/src/entities/purchase-order-order-item.entity.ts +38 -0
- package/libs/tatayab-entities-library/src/entities/user-transaction.entity.ts +81 -0
- package/libs/tatayab-entities-library/src/entities/user.entity.ts +15 -0
- package/libs/tatayab-entities-library/src/index.ts +37 -0
- package/package.json +1 -1
|
@@ -0,0 +1,219 @@
|
|
|
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.Order = void 0;
|
|
13
|
+
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
14
|
+
const user_entity_1 = require("./user.entity");
|
|
15
|
+
const store_entity_1 = require("./store.entity");
|
|
16
|
+
const country_entity_1 = require("./country.entity");
|
|
17
|
+
const order_status_entity_1 = require("./order-status.entity");
|
|
18
|
+
const order_item_entity_1 = require("./order-item.entity");
|
|
19
|
+
const order_status_history_entity_1 = require("./order-status-history.entity");
|
|
20
|
+
const user_transaction_entity_1 = require("./user-transaction.entity");
|
|
21
|
+
let Order = class Order extends sequelize_typescript_1.Model {
|
|
22
|
+
};
|
|
23
|
+
exports.Order = Order;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false, unique: true }),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], Order.prototype, "orderNumber", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, sequelize_typescript_1.ForeignKey)(() => user_entity_1.User),
|
|
30
|
+
(0, sequelize_typescript_1.Column)({ allowNull: true }),
|
|
31
|
+
__metadata("design:type", Number)
|
|
32
|
+
], Order.prototype, "userId", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, sequelize_typescript_1.Column)({ allowNull: true }),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], Order.prototype, "guestToken", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, sequelize_typescript_1.ForeignKey)(() => store_entity_1.Store),
|
|
39
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
|
+
], Order.prototype, "storeId", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, sequelize_typescript_1.ForeignKey)(() => order_status_entity_1.OrderStatus),
|
|
44
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
45
|
+
__metadata("design:type", Number)
|
|
46
|
+
], Order.prototype, "statusId", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false, defaultValue: 'pending_payment' }),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], Order.prototype, "statusCode", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, sequelize_typescript_1.ForeignKey)(() => country_entity_1.Country),
|
|
53
|
+
(0, sequelize_typescript_1.Column)({ allowNull: true }),
|
|
54
|
+
__metadata("design:type", Number)
|
|
55
|
+
], Order.prototype, "deliveryCountryId", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, sequelize_typescript_1.Column)({ allowNull: true }),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], Order.prototype, "deliveryFullName", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, sequelize_typescript_1.Column)({ allowNull: true }),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], Order.prototype, "deliveryPhoneExt", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, sequelize_typescript_1.Column)({ allowNull: true }),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], Order.prototype, "deliveryPhone", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, sequelize_typescript_1.Column)({ allowNull: true }),
|
|
70
|
+
__metadata("design:type", String)
|
|
71
|
+
], Order.prototype, "deliveryCity", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, sequelize_typescript_1.Column)({ allowNull: true }),
|
|
74
|
+
__metadata("design:type", String)
|
|
75
|
+
], Order.prototype, "deliveryBlock", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, sequelize_typescript_1.Column)({ allowNull: true }),
|
|
78
|
+
__metadata("design:type", String)
|
|
79
|
+
], Order.prototype, "deliveryStreet", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, sequelize_typescript_1.Column)({ allowNull: true }),
|
|
82
|
+
__metadata("design:type", String)
|
|
83
|
+
], Order.prototype, "deliveryBuilding", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, sequelize_typescript_1.Column)({ allowNull: true }),
|
|
86
|
+
__metadata("design:type", String)
|
|
87
|
+
], Order.prototype, "deliveryFloor", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, sequelize_typescript_1.Column)({ allowNull: true }),
|
|
90
|
+
__metadata("design:type", String)
|
|
91
|
+
], Order.prototype, "deliveryApartment", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.TEXT, allowNull: true }),
|
|
94
|
+
__metadata("design:type", String)
|
|
95
|
+
], Order.prototype, "deliveryAdditionalInfo", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.DECIMAL(9, 6), allowNull: true }),
|
|
98
|
+
__metadata("design:type", Number)
|
|
99
|
+
], Order.prototype, "deliveryLatitude", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.DECIMAL(9, 6), allowNull: true }),
|
|
102
|
+
__metadata("design:type", Number)
|
|
103
|
+
], Order.prototype, "deliveryLongitude", void 0);
|
|
104
|
+
__decorate([
|
|
105
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.DECIMAL(10, 3), allowNull: false, defaultValue: 0 }),
|
|
106
|
+
__metadata("design:type", Number)
|
|
107
|
+
], Order.prototype, "subtotal", void 0);
|
|
108
|
+
__decorate([
|
|
109
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.DECIMAL(10, 3), allowNull: false, defaultValue: 0 }),
|
|
110
|
+
__metadata("design:type", Number)
|
|
111
|
+
], Order.prototype, "shippingFee", void 0);
|
|
112
|
+
__decorate([
|
|
113
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.DECIMAL(10, 3), allowNull: false, defaultValue: 0 }),
|
|
114
|
+
__metadata("design:type", Number)
|
|
115
|
+
], Order.prototype, "vatAmount", void 0);
|
|
116
|
+
__decorate([
|
|
117
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.DECIMAL(10, 3), allowNull: false, defaultValue: 0 }),
|
|
118
|
+
__metadata("design:type", Number)
|
|
119
|
+
], Order.prototype, "discountAmount", void 0);
|
|
120
|
+
__decorate([
|
|
121
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.DECIMAL(10, 3), allowNull: false, defaultValue: 0 }),
|
|
122
|
+
__metadata("design:type", Number)
|
|
123
|
+
], Order.prototype, "total", void 0);
|
|
124
|
+
__decorate([
|
|
125
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
126
|
+
__metadata("design:type", String)
|
|
127
|
+
], Order.prototype, "currency", void 0);
|
|
128
|
+
__decorate([
|
|
129
|
+
(0, sequelize_typescript_1.Column)({ allowNull: true }),
|
|
130
|
+
__metadata("design:type", String)
|
|
131
|
+
], Order.prototype, "currencySymbolEn", void 0);
|
|
132
|
+
__decorate([
|
|
133
|
+
(0, sequelize_typescript_1.Column)({ allowNull: true }),
|
|
134
|
+
__metadata("design:type", String)
|
|
135
|
+
], Order.prototype, "couponCode", void 0);
|
|
136
|
+
__decorate([
|
|
137
|
+
(0, sequelize_typescript_1.Column)({ allowNull: true }),
|
|
138
|
+
__metadata("design:type", Number)
|
|
139
|
+
], Order.prototype, "couponId", void 0);
|
|
140
|
+
__decorate([
|
|
141
|
+
(0, sequelize_typescript_1.Column)({ allowNull: true }),
|
|
142
|
+
__metadata("design:type", String)
|
|
143
|
+
], Order.prototype, "paymentMethodSlug", void 0);
|
|
144
|
+
__decorate([
|
|
145
|
+
(0, sequelize_typescript_1.Column)({ allowNull: true }),
|
|
146
|
+
__metadata("design:type", String)
|
|
147
|
+
], Order.prototype, "paymentStatus", void 0);
|
|
148
|
+
__decorate([
|
|
149
|
+
(0, sequelize_typescript_1.Column)({ allowNull: true }),
|
|
150
|
+
__metadata("design:type", String)
|
|
151
|
+
], Order.prototype, "paymentReference", void 0);
|
|
152
|
+
__decorate([
|
|
153
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.DATE, allowNull: true }),
|
|
154
|
+
__metadata("design:type", Date)
|
|
155
|
+
], Order.prototype, "paidAt", void 0);
|
|
156
|
+
__decorate([
|
|
157
|
+
(0, sequelize_typescript_1.Column)({ allowNull: true }),
|
|
158
|
+
__metadata("design:type", String)
|
|
159
|
+
], Order.prototype, "carrierName", void 0);
|
|
160
|
+
__decorate([
|
|
161
|
+
(0, sequelize_typescript_1.Column)({ allowNull: true }),
|
|
162
|
+
__metadata("design:type", String)
|
|
163
|
+
], Order.prototype, "trackingNumber", void 0);
|
|
164
|
+
__decorate([
|
|
165
|
+
(0, sequelize_typescript_1.Column)({ allowNull: true }),
|
|
166
|
+
__metadata("design:type", String)
|
|
167
|
+
], Order.prototype, "trackingUrl", void 0);
|
|
168
|
+
__decorate([
|
|
169
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.DATE, allowNull: true }),
|
|
170
|
+
__metadata("design:type", Date)
|
|
171
|
+
], Order.prototype, "estimatedDeliveryDate", void 0);
|
|
172
|
+
__decorate([
|
|
173
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.DATE, allowNull: true }),
|
|
174
|
+
__metadata("design:type", Date)
|
|
175
|
+
], Order.prototype, "shippedAt", void 0);
|
|
176
|
+
__decorate([
|
|
177
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.DATE, allowNull: true }),
|
|
178
|
+
__metadata("design:type", Date)
|
|
179
|
+
], Order.prototype, "deliveredAt", void 0);
|
|
180
|
+
__decorate([
|
|
181
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.TEXT, allowNull: true }),
|
|
182
|
+
__metadata("design:type", String)
|
|
183
|
+
], Order.prototype, "customerNotes", void 0);
|
|
184
|
+
__decorate([
|
|
185
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.TEXT, allowNull: true }),
|
|
186
|
+
__metadata("design:type", String)
|
|
187
|
+
], Order.prototype, "internalNotes", void 0);
|
|
188
|
+
__decorate([
|
|
189
|
+
(0, sequelize_typescript_1.BelongsTo)(() => user_entity_1.User),
|
|
190
|
+
__metadata("design:type", user_entity_1.User)
|
|
191
|
+
], Order.prototype, "user", void 0);
|
|
192
|
+
__decorate([
|
|
193
|
+
(0, sequelize_typescript_1.BelongsTo)(() => store_entity_1.Store),
|
|
194
|
+
__metadata("design:type", store_entity_1.Store)
|
|
195
|
+
], Order.prototype, "store", void 0);
|
|
196
|
+
__decorate([
|
|
197
|
+
(0, sequelize_typescript_1.BelongsTo)(() => order_status_entity_1.OrderStatus, { foreignKey: 'statusId' }),
|
|
198
|
+
__metadata("design:type", order_status_entity_1.OrderStatus)
|
|
199
|
+
], Order.prototype, "status", void 0);
|
|
200
|
+
__decorate([
|
|
201
|
+
(0, sequelize_typescript_1.BelongsTo)(() => country_entity_1.Country),
|
|
202
|
+
__metadata("design:type", country_entity_1.Country)
|
|
203
|
+
], Order.prototype, "deliveryCountry", void 0);
|
|
204
|
+
__decorate([
|
|
205
|
+
(0, sequelize_typescript_1.HasMany)(() => order_item_entity_1.OrderItem),
|
|
206
|
+
__metadata("design:type", Array)
|
|
207
|
+
], Order.prototype, "items", void 0);
|
|
208
|
+
__decorate([
|
|
209
|
+
(0, sequelize_typescript_1.HasMany)(() => order_status_history_entity_1.OrderStatusHistory),
|
|
210
|
+
__metadata("design:type", Array)
|
|
211
|
+
], Order.prototype, "statusHistory", void 0);
|
|
212
|
+
__decorate([
|
|
213
|
+
(0, sequelize_typescript_1.HasMany)(() => user_transaction_entity_1.UserTransaction),
|
|
214
|
+
__metadata("design:type", Array)
|
|
215
|
+
], Order.prototype, "transactions", void 0);
|
|
216
|
+
exports.Order = Order = __decorate([
|
|
217
|
+
sequelize_typescript_1.Table
|
|
218
|
+
], Order);
|
|
219
|
+
//# sourceMappingURL=order.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"order.entity.js","source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AA,8BAAO,EAAC,GAAG,EAAE,CAAC,gDAAkB,CAAC;;4CACU;AAGpC;IADP,IAAA,8BAAO,EAAC,GAAG,EAAE,CAAC,yCAAe,CAAC;;2CACS;gBAhK7B,KAAK;IADjB,4BAAK;GACO,KAAK,CAiKjB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Model } from 'sequelize-typescript';
|
|
2
|
+
import { PurchaseOrder } from './purchase-order.entity';
|
|
3
|
+
import { PurchaseOrderItem } from './purchase-order-item.entity';
|
|
4
|
+
import { OrderItem } from './order-item.entity';
|
|
5
|
+
import { Order } from './order.entity';
|
|
6
|
+
export declare class PurchaseOrderOrderItem extends Model {
|
|
7
|
+
purchaseOrderId: number;
|
|
8
|
+
purchaseOrderItemId: number;
|
|
9
|
+
orderId: number;
|
|
10
|
+
orderItemId: number;
|
|
11
|
+
allocatedQuantity: number;
|
|
12
|
+
purchaseOrder: PurchaseOrder;
|
|
13
|
+
purchaseOrderItem: PurchaseOrderItem;
|
|
14
|
+
order: Order;
|
|
15
|
+
orderItem: OrderItem;
|
|
16
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
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.PurchaseOrderOrderItem = void 0;
|
|
13
|
+
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
14
|
+
const purchase_order_entity_1 = require("./purchase-order.entity");
|
|
15
|
+
const purchase_order_item_entity_1 = require("./purchase-order-item.entity");
|
|
16
|
+
const order_item_entity_1 = require("./order-item.entity");
|
|
17
|
+
const order_entity_1 = require("./order.entity");
|
|
18
|
+
let PurchaseOrderOrderItem = class PurchaseOrderOrderItem extends sequelize_typescript_1.Model {
|
|
19
|
+
};
|
|
20
|
+
exports.PurchaseOrderOrderItem = PurchaseOrderOrderItem;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, sequelize_typescript_1.ForeignKey)(() => purchase_order_entity_1.PurchaseOrder),
|
|
23
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
24
|
+
__metadata("design:type", Number)
|
|
25
|
+
], PurchaseOrderOrderItem.prototype, "purchaseOrderId", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, sequelize_typescript_1.ForeignKey)(() => purchase_order_item_entity_1.PurchaseOrderItem),
|
|
28
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
29
|
+
__metadata("design:type", Number)
|
|
30
|
+
], PurchaseOrderOrderItem.prototype, "purchaseOrderItemId", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, sequelize_typescript_1.ForeignKey)(() => order_entity_1.Order),
|
|
33
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
34
|
+
__metadata("design:type", Number)
|
|
35
|
+
], PurchaseOrderOrderItem.prototype, "orderId", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, sequelize_typescript_1.ForeignKey)(() => order_item_entity_1.OrderItem),
|
|
38
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], PurchaseOrderOrderItem.prototype, "orderItemId", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false, defaultValue: 1 }),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], PurchaseOrderOrderItem.prototype, "allocatedQuantity", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, sequelize_typescript_1.BelongsTo)(() => purchase_order_entity_1.PurchaseOrder),
|
|
47
|
+
__metadata("design:type", purchase_order_entity_1.PurchaseOrder)
|
|
48
|
+
], PurchaseOrderOrderItem.prototype, "purchaseOrder", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, sequelize_typescript_1.BelongsTo)(() => purchase_order_item_entity_1.PurchaseOrderItem),
|
|
51
|
+
__metadata("design:type", purchase_order_item_entity_1.PurchaseOrderItem)
|
|
52
|
+
], PurchaseOrderOrderItem.prototype, "purchaseOrderItem", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, sequelize_typescript_1.BelongsTo)(() => order_entity_1.Order),
|
|
55
|
+
__metadata("design:type", order_entity_1.Order)
|
|
56
|
+
], PurchaseOrderOrderItem.prototype, "order", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, sequelize_typescript_1.BelongsTo)(() => order_item_entity_1.OrderItem),
|
|
59
|
+
__metadata("design:type", order_item_entity_1.OrderItem)
|
|
60
|
+
], PurchaseOrderOrderItem.prototype, "orderItem", void 0);
|
|
61
|
+
exports.PurchaseOrderOrderItem = PurchaseOrderOrderItem = __decorate([
|
|
62
|
+
sequelize_typescript_1.Table
|
|
63
|
+
], PurchaseOrderOrderItem);
|
|
64
|
+
//# sourceMappingURL=purchase-order-order-item.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"purchase-order-order-item.entity.js","sourceRoot":"","sources":["../../../../libs/tatayab-entities-library/src/entities/purchase-order-order-item.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAE8B;AAC9B,mEAAwD;AACxD,6EAAiE;AACjE,2DA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
|
3
|
+
import { Order } from './order.entity';
|
|
4
|
+
export declare enum TransactionType {
|
|
5
|
+
DEBIT = "debit",
|
|
6
|
+
CREDIT = "credit"
|
|
7
|
+
}
|
|
8
|
+
export declare enum TransactionCategory {
|
|
9
|
+
ORDER_PAYMENT = "order_payment",
|
|
10
|
+
ORDER_REFUND = "order_refund",
|
|
11
|
+
GIFT_SENT = "gift_sent",
|
|
12
|
+
GIFT_RECEIVED = "gift_received",
|
|
13
|
+
BALANCE_TOP_UP = "balance_top_up",
|
|
14
|
+
BALANCE_WITHDRAWAL = "balance_withdrawal",
|
|
15
|
+
COUPON_CREDIT = "coupon_credit",
|
|
16
|
+
ADJUSTMENT = "adjustment",
|
|
17
|
+
CASHBACK = "cashback"
|
|
18
|
+
}
|
|
19
|
+
export declare class UserTransaction extends Model {
|
|
20
|
+
userId: number;
|
|
21
|
+
type: TransactionType;
|
|
22
|
+
category: TransactionCategory;
|
|
23
|
+
amount: number;
|
|
24
|
+
balanceAfter: number;
|
|
25
|
+
currency: string;
|
|
26
|
+
descriptionEn: string;
|
|
27
|
+
descriptionAr: string;
|
|
28
|
+
orderId?: number;
|
|
29
|
+
externalReference?: string;
|
|
30
|
+
status: string;
|
|
31
|
+
user: User;
|
|
32
|
+
order?: Order;
|
|
33
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
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.UserTransaction = exports.TransactionCategory = exports.TransactionType = void 0;
|
|
13
|
+
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
14
|
+
const user_entity_1 = require("./user.entity");
|
|
15
|
+
const order_entity_1 = require("./order.entity");
|
|
16
|
+
var TransactionType;
|
|
17
|
+
(function (TransactionType) {
|
|
18
|
+
TransactionType["DEBIT"] = "debit";
|
|
19
|
+
TransactionType["CREDIT"] = "credit";
|
|
20
|
+
})(TransactionType || (exports.TransactionType = TransactionType = {}));
|
|
21
|
+
var TransactionCategory;
|
|
22
|
+
(function (TransactionCategory) {
|
|
23
|
+
TransactionCategory["ORDER_PAYMENT"] = "order_payment";
|
|
24
|
+
TransactionCategory["ORDER_REFUND"] = "order_refund";
|
|
25
|
+
TransactionCategory["GIFT_SENT"] = "gift_sent";
|
|
26
|
+
TransactionCategory["GIFT_RECEIVED"] = "gift_received";
|
|
27
|
+
TransactionCategory["BALANCE_TOP_UP"] = "balance_top_up";
|
|
28
|
+
TransactionCategory["BALANCE_WITHDRAWAL"] = "balance_withdrawal";
|
|
29
|
+
TransactionCategory["COUPON_CREDIT"] = "coupon_credit";
|
|
30
|
+
TransactionCategory["ADJUSTMENT"] = "adjustment";
|
|
31
|
+
TransactionCategory["CASHBACK"] = "cashback";
|
|
32
|
+
})(TransactionCategory || (exports.TransactionCategory = TransactionCategory = {}));
|
|
33
|
+
let UserTransaction = class UserTransaction extends sequelize_typescript_1.Model {
|
|
34
|
+
};
|
|
35
|
+
exports.UserTransaction = UserTransaction;
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, sequelize_typescript_1.ForeignKey)(() => user_entity_1.User),
|
|
38
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], UserTransaction.prototype, "userId", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, sequelize_typescript_1.Column)({
|
|
43
|
+
type: sequelize_typescript_1.DataType.ENUM(...Object.values(TransactionType)),
|
|
44
|
+
allowNull: false,
|
|
45
|
+
}),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], UserTransaction.prototype, "type", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, sequelize_typescript_1.Column)({
|
|
50
|
+
type: sequelize_typescript_1.DataType.ENUM(...Object.values(TransactionCategory)),
|
|
51
|
+
allowNull: false,
|
|
52
|
+
}),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], UserTransaction.prototype, "category", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.DECIMAL(10, 3), allowNull: false }),
|
|
57
|
+
__metadata("design:type", Number)
|
|
58
|
+
], UserTransaction.prototype, "amount", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.DECIMAL(10, 3), allowNull: false, defaultValue: 0 }),
|
|
61
|
+
__metadata("design:type", Number)
|
|
62
|
+
], UserTransaction.prototype, "balanceAfter", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false, defaultValue: 'KWD' }),
|
|
65
|
+
__metadata("design:type", String)
|
|
66
|
+
], UserTransaction.prototype, "currency", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
69
|
+
__metadata("design:type", String)
|
|
70
|
+
], UserTransaction.prototype, "descriptionEn", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false }),
|
|
73
|
+
__metadata("design:type", String)
|
|
74
|
+
], UserTransaction.prototype, "descriptionAr", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, sequelize_typescript_1.ForeignKey)(() => order_entity_1.Order),
|
|
77
|
+
(0, sequelize_typescript_1.Column)({ allowNull: true }),
|
|
78
|
+
__metadata("design:type", Number)
|
|
79
|
+
], UserTransaction.prototype, "orderId", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, sequelize_typescript_1.Column)({ allowNull: true }),
|
|
82
|
+
__metadata("design:type", String)
|
|
83
|
+
], UserTransaction.prototype, "externalReference", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, sequelize_typescript_1.Column)({ allowNull: false, defaultValue: 'completed' }),
|
|
86
|
+
__metadata("design:type", String)
|
|
87
|
+
], UserTransaction.prototype, "status", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, sequelize_typescript_1.BelongsTo)(() => user_entity_1.User),
|
|
90
|
+
__metadata("design:type", user_entity_1.User)
|
|
91
|
+
], UserTransaction.prototype, "user", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, sequelize_typescript_1.BelongsTo)(() => order_entity_1.Order),
|
|
94
|
+
__metadata("design:type", order_entity_1.Order)
|
|
95
|
+
], UserTransaction.prototype, "order", void 0);
|
|
96
|
+
exports.UserTransaction = UserTransaction = __decorate([
|
|
97
|
+
sequelize_typescript_1.Table
|
|
98
|
+
], UserTransaction);
|
|
99
|
+
//# sourceMappingURL=user-transaction.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-transaction.entity.js","sourceRoot":"","sources":["../../../../libs/tatayab-entities-library/src/entities/user-transaction.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAE8B;AAC9B,+CAAqC;AACrC,iDAAuC;AAEvC,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,kCAAgB,CAAA;IAChB,oCAAiB,CAAA;AACnB,CAAC,EAHW,eAAe,+BAAf,eAAe,QAG1B;AAED,IAAY,mBAUX;AAVD,WAAY,mBAAmB;IAC7B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SAAS,EAAE,KAAK,EAAE,CAAC;;sDACC;AAGtB;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;sDACC;AAKtB;IAFP,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,oBAAK,CAAC;IACvB,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;gDACH;AAIjB;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;0DACO;AAI3B;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,CAAC;;+CACjC;AAKf;IADP,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,CAAC;8BACR,kBAAI;6CAAC;AAGX;IADP,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,oBAAK,CAAC;8BACP,oBAAK;8CAAC;0BAvDX,eAAe;IAD3B,4BAAK;GACO,eAAe,CAwD3B"}
|
|
@@ -5,6 +5,9 @@ import { Country } from './country.entity';
|
|
|
5
5
|
import { Gender } from '../utils/enums/gender';
|
|
6
6
|
import { UserAddress } from './user-address.entity';
|
|
7
7
|
import { UserFavorite } from './user-favorite.entity';
|
|
8
|
+
import { Cart } from './cart.entity';
|
|
9
|
+
import { Order } from './order.entity';
|
|
10
|
+
import { UserTransaction } from './user-transaction.entity';
|
|
8
11
|
export declare class User extends Model {
|
|
9
12
|
firstName?: string;
|
|
10
13
|
lastName?: string;
|
|
@@ -25,7 +28,11 @@ export declare class User extends Model {
|
|
|
25
28
|
isVerified: boolean;
|
|
26
29
|
refCode: string;
|
|
27
30
|
gender: Gender;
|
|
31
|
+
walletBalance: number;
|
|
28
32
|
country: Country;
|
|
29
33
|
addresses: UserAddress[];
|
|
30
34
|
favorites: UserFavorite[];
|
|
35
|
+
carts: Cart[];
|
|
36
|
+
orders: Order[];
|
|
37
|
+
transactions: UserTransaction[];
|
|
31
38
|
}
|
|
@@ -17,6 +17,9 @@ const country_entity_1 = require("./country.entity");
|
|
|
17
17
|
const gender_1 = require("../utils/enums/gender");
|
|
18
18
|
const user_address_entity_1 = require("./user-address.entity");
|
|
19
19
|
const user_favorite_entity_1 = require("./user-favorite.entity");
|
|
20
|
+
const cart_entity_1 = require("./cart.entity");
|
|
21
|
+
const order_entity_1 = require("./order.entity");
|
|
22
|
+
const user_transaction_entity_1 = require("./user-transaction.entity");
|
|
20
23
|
let User = class User extends sequelize_typescript_1.Model {
|
|
21
24
|
};
|
|
22
25
|
exports.User = User;
|
|
@@ -106,6 +109,10 @@ __decorate([
|
|
|
106
109
|
}),
|
|
107
110
|
__metadata("design:type", String)
|
|
108
111
|
], User.prototype, "gender", void 0);
|
|
112
|
+
__decorate([
|
|
113
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.DECIMAL(10, 3), allowNull: false, defaultValue: 0 }),
|
|
114
|
+
__metadata("design:type", Number)
|
|
115
|
+
], User.prototype, "walletBalance", void 0);
|
|
109
116
|
__decorate([
|
|
110
117
|
(0, sequelize_typescript_1.BelongsTo)(() => country_entity_1.Country),
|
|
111
118
|
__metadata("design:type", country_entity_1.Country)
|
|
@@ -118,6 +125,18 @@ __decorate([
|
|
|
118
125
|
(0, sequelize_typescript_1.HasMany)(() => user_favorite_entity_1.UserFavorite),
|
|
119
126
|
__metadata("design:type", Array)
|
|
120
127
|
], User.prototype, "favorites", void 0);
|
|
128
|
+
__decorate([
|
|
129
|
+
(0, sequelize_typescript_1.HasMany)(() => cart_entity_1.Cart),
|
|
130
|
+
__metadata("design:type", Array)
|
|
131
|
+
], User.prototype, "carts", void 0);
|
|
132
|
+
__decorate([
|
|
133
|
+
(0, sequelize_typescript_1.HasMany)(() => order_entity_1.Order),
|
|
134
|
+
__metadata("design:type", Array)
|
|
135
|
+
], User.prototype, "orders", void 0);
|
|
136
|
+
__decorate([
|
|
137
|
+
(0, sequelize_typescript_1.HasMany)(() => user_transaction_entity_1.UserTransaction),
|
|
138
|
+
__metadata("design:type", Array)
|
|
139
|
+
], User.prototype, "transactions", void 0);
|
|
121
140
|
exports.User = User = __decorate([
|
|
122
141
|
sequelize_typescript_1.Table
|
|
123
142
|
], User);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.entity.js","sourceRoot":"","sources":["../../../../libs/tatayab-entities-library/src/entities/user.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAQ8B;AAC9B,kDAA+C;AAC/C,sDAAmD;AACnD,qDAA2C;AAC3C,kDAA+C;AAC/C,+DAAoD;AACpD,iEAAsD;
|
|
1
|
+
{"version":3,"file":"user.entity.js","sourceRoot":"","sources":["../../../../libs/tatayab-entities-library/src/entities/user.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAQ8B;AAC9B,kDAA+C;AAC/C,sDAAmD;AACnD,qDAA2C;AAC3C,kDAA+C;AAC/C,+DAAoD;AACpD,iEAAsD;AACtD,+CAAqC;AACrC,iDAAuC;AACvC,uEAA4D;AAGrD,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,4BAAK;CAwF9B,CAAA;AAxFY,oBAAI;AAEP;IADP,6BAAM;;uCACoB;AAGnB;IADP,6BAAM;;sCACmB;AAGlB;IADP,6BAAM;;sCACkB;AAMjB;IAJP,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,+BAAQ,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,eAAM,CAAC,CAAC;QAC7C,YAAY,EAAE,eAAM,CAAC,MAAM;KAC5B,CAAC;;oCACqB;AAGf;IADP,IAAA,6BAAM,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,GAAG,EAAE,eAAe,EAAE,EAAE,EAAE,CAAC;;mCACxD;AAGd;IADP,6BAAM;;mCACgB;AAGf;IADP,6BAAM;;sCACmB;AAGlB;IADP,6BAAM;8BACY,IAAI;sCAA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AC,GAAG,EAAE,CAAC,kBAAI,CAAC;;mCACE;AAGd;IADP,IAAA,8BAAO,EAAC,GAAG,EAAE,CAAC,oBAAK,CAAC;;oCACG;AAGhB;IADP,IAAA,8BAAO,EAAC,GAAG,EAAE,CAAC,yCAAe,CAAC;;0CACS;eAvF7B,IAAI;IADhB,4BAAK;GACO,IAAI,CAwFhB"}
|
|
@@ -45,6 +45,13 @@ export { Coupon, CouponDiscountType, CouponAppliesTo, CouponOsTarget, } from './
|
|
|
45
45
|
export { CouponStore } from './entities/coupon-store.entity';
|
|
46
46
|
export { CouponProduct } from './entities/coupon-product.entity';
|
|
47
47
|
export { CouponUser } from './entities/coupon-user.entity';
|
|
48
|
+
export { OrderStatus, OrderStatusCode } from './entities/order-status.entity';
|
|
49
|
+
export { Order } from './entities/order.entity';
|
|
50
|
+
export { OrderItem, OrderItemType, OrderItemFulfillmentStatus, } from './entities/order-item.entity';
|
|
51
|
+
export { OrderItemBundleSelection } from './entities/order-item-bundle-selection.entity';
|
|
52
|
+
export { OrderStatusHistory } from './entities/order-status-history.entity';
|
|
53
|
+
export { UserTransaction, TransactionType, TransactionCategory, } from './entities/user-transaction.entity';
|
|
54
|
+
export { PurchaseOrderOrderItem } from './entities/purchase-order-order-item.entity';
|
|
48
55
|
export { OsName } from './utils/enums/osName';
|
|
49
56
|
export { ProductApp } from './utils/enums/productApp';
|
|
50
57
|
export { VersionType } from './utils/enums/versiontype';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CouponDiscountType = exports.Coupon = exports.CartItemBundleSelection = exports.CartItemType = exports.CartItem = exports.CartStatus = exports.Cart = exports.StorePaymentMethod = exports.PaymentMethodCountry = exports.PaymentMethodType = exports.PaymentMethod = exports.PaymentGatewayType = exports.PaymentGateway = exports.RolePermission = exports.Permission = exports.PurchaseOrderItemStatus = exports.PurchaseOrderItem = exports.PurchaseOrder = exports.VendorProduct = exports.Vendor = exports.ShippingRule = exports.StockMovement = exports.InventoryStock = exports.StoreInventory = exports.Inventory = exports.ProductStore = exports.Store = exports.BundleStore = exports.BundleProduct = exports.Bundle = exports.ProductTag = exports.Tag = exports.ProductVariantOption = exports.ProductVariant = exports.MediaType = exports.ProductMedia = exports.Product = exports.VariantOption = exports.VariantType = exports.Brand = exports.Category = exports.UserFavorite = exports.UserAddress = exports.UserDevice = exports.User = exports.SysUser = exports.SysRole = exports.Area = exports.Country = exports.ApiKey = void 0;
|
|
4
|
-
exports.StockMovementType = exports.PurchaseOrderStatus = exports.Gender = exports.Status = exports.Language = exports.VersionType = exports.ProductApp = exports.OsName = exports.CouponUser = exports.CouponProduct = exports.CouponStore = exports.CouponOsTarget = exports.CouponAppliesTo = void 0;
|
|
4
|
+
exports.StockMovementType = exports.PurchaseOrderStatus = exports.Gender = exports.Status = exports.Language = exports.VersionType = exports.ProductApp = exports.OsName = exports.PurchaseOrderOrderItem = exports.TransactionCategory = exports.TransactionType = exports.UserTransaction = exports.OrderStatusHistory = exports.OrderItemBundleSelection = exports.OrderItemFulfillmentStatus = exports.OrderItemType = exports.OrderItem = exports.Order = exports.OrderStatusCode = exports.OrderStatus = exports.CouponUser = exports.CouponProduct = exports.CouponStore = exports.CouponOsTarget = exports.CouponAppliesTo = void 0;
|
|
5
5
|
exports.getDbModels = getDbModels;
|
|
6
6
|
const country_entity_1 = require("./entities/country.entity");
|
|
7
7
|
const area_entity_1 = require("./entities/area.entity");
|
|
@@ -49,6 +49,13 @@ const coupon_entity_1 = require("./entities/coupon.entity");
|
|
|
49
49
|
const coupon_store_entity_1 = require("./entities/coupon-store.entity");
|
|
50
50
|
const coupon_product_entity_1 = require("./entities/coupon-product.entity");
|
|
51
51
|
const coupon_user_entity_1 = require("./entities/coupon-user.entity");
|
|
52
|
+
const order_status_entity_1 = require("./entities/order-status.entity");
|
|
53
|
+
const order_entity_1 = require("./entities/order.entity");
|
|
54
|
+
const order_item_entity_1 = require("./entities/order-item.entity");
|
|
55
|
+
const order_item_bundle_selection_entity_1 = require("./entities/order-item-bundle-selection.entity");
|
|
56
|
+
const order_status_history_entity_1 = require("./entities/order-status-history.entity");
|
|
57
|
+
const user_transaction_entity_1 = require("./entities/user-transaction.entity");
|
|
58
|
+
const purchase_order_order_item_entity_1 = require("./entities/purchase-order-order-item.entity");
|
|
52
59
|
var apikey_entity_2 = require("./entities/apikey.entity");
|
|
53
60
|
Object.defineProperty(exports, "ApiKey", { enumerable: true, get: function () { return apikey_entity_2.ApiKey; } });
|
|
54
61
|
var country_entity_2 = require("./entities/country.entity");
|
|
@@ -150,6 +157,25 @@ var coupon_product_entity_2 = require("./entities/coupon-product.entity");
|
|
|
150
157
|
Object.defineProperty(exports, "CouponProduct", { enumerable: true, get: function () { return coupon_product_entity_2.CouponProduct; } });
|
|
151
158
|
var coupon_user_entity_2 = require("./entities/coupon-user.entity");
|
|
152
159
|
Object.defineProperty(exports, "CouponUser", { enumerable: true, get: function () { return coupon_user_entity_2.CouponUser; } });
|
|
160
|
+
var order_status_entity_2 = require("./entities/order-status.entity");
|
|
161
|
+
Object.defineProperty(exports, "OrderStatus", { enumerable: true, get: function () { return order_status_entity_2.OrderStatus; } });
|
|
162
|
+
Object.defineProperty(exports, "OrderStatusCode", { enumerable: true, get: function () { return order_status_entity_2.OrderStatusCode; } });
|
|
163
|
+
var order_entity_2 = require("./entities/order.entity");
|
|
164
|
+
Object.defineProperty(exports, "Order", { enumerable: true, get: function () { return order_entity_2.Order; } });
|
|
165
|
+
var order_item_entity_2 = require("./entities/order-item.entity");
|
|
166
|
+
Object.defineProperty(exports, "OrderItem", { enumerable: true, get: function () { return order_item_entity_2.OrderItem; } });
|
|
167
|
+
Object.defineProperty(exports, "OrderItemType", { enumerable: true, get: function () { return order_item_entity_2.OrderItemType; } });
|
|
168
|
+
Object.defineProperty(exports, "OrderItemFulfillmentStatus", { enumerable: true, get: function () { return order_item_entity_2.OrderItemFulfillmentStatus; } });
|
|
169
|
+
var order_item_bundle_selection_entity_2 = require("./entities/order-item-bundle-selection.entity");
|
|
170
|
+
Object.defineProperty(exports, "OrderItemBundleSelection", { enumerable: true, get: function () { return order_item_bundle_selection_entity_2.OrderItemBundleSelection; } });
|
|
171
|
+
var order_status_history_entity_2 = require("./entities/order-status-history.entity");
|
|
172
|
+
Object.defineProperty(exports, "OrderStatusHistory", { enumerable: true, get: function () { return order_status_history_entity_2.OrderStatusHistory; } });
|
|
173
|
+
var user_transaction_entity_2 = require("./entities/user-transaction.entity");
|
|
174
|
+
Object.defineProperty(exports, "UserTransaction", { enumerable: true, get: function () { return user_transaction_entity_2.UserTransaction; } });
|
|
175
|
+
Object.defineProperty(exports, "TransactionType", { enumerable: true, get: function () { return user_transaction_entity_2.TransactionType; } });
|
|
176
|
+
Object.defineProperty(exports, "TransactionCategory", { enumerable: true, get: function () { return user_transaction_entity_2.TransactionCategory; } });
|
|
177
|
+
var purchase_order_order_item_entity_2 = require("./entities/purchase-order-order-item.entity");
|
|
178
|
+
Object.defineProperty(exports, "PurchaseOrderOrderItem", { enumerable: true, get: function () { return purchase_order_order_item_entity_2.PurchaseOrderOrderItem; } });
|
|
153
179
|
var osName_1 = require("./utils/enums/osName");
|
|
154
180
|
Object.defineProperty(exports, "OsName", { enumerable: true, get: function () { return osName_1.OsName; } });
|
|
155
181
|
var productApp_1 = require("./utils/enums/productApp");
|
|
@@ -214,6 +240,13 @@ function getDbModels() {
|
|
|
214
240
|
coupon_store_entity_1.CouponStore,
|
|
215
241
|
coupon_product_entity_1.CouponProduct,
|
|
216
242
|
coupon_user_entity_1.CouponUser,
|
|
243
|
+
order_status_entity_1.OrderStatus,
|
|
244
|
+
order_entity_1.Order,
|
|
245
|
+
order_item_entity_1.OrderItem,
|
|
246
|
+
order_item_bundle_selection_entity_1.OrderItemBundleSelection,
|
|
247
|
+
order_status_history_entity_1.OrderStatusHistory,
|
|
248
|
+
user_transaction_entity_1.UserTransaction,
|
|
249
|
+
purchase_order_order_item_entity_1.PurchaseOrderOrderItem,
|
|
217
250
|
];
|
|
218
251
|
}
|
|
219
252
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../libs/tatayab-entities-library/src/index.ts"],"names":[],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../libs/tatayab-entities-library/src/index.ts"],"names":[],"mappings":";;;;AA+LA,kCA2EC;AAvQD,8DAAoD;AACpD,wDAA8C;AAC9C,gEAAqD;AACrD,gEAAqD;AACrD,wDAA8C;AAC9C,oEAA0D;AAC1D,4DAAkD;AAClD,wEAA6D;AAC7D,0EAA+D;AAG/D,gEAAsD;AACtD,0DAAgD;AAChD,wEAA6D;AAC7D,4EAAiE;AACjE,8DAAoD;AACpD,0EAA+D;AAC/D,8EAAmE;AACnE,4FAAgF;AAChF,sDAA4C;AAC5C,sEAA2D;AAC3D,4DAAkD;AAClD,4EAAiE;AACjE,wEAA6D;AAG7D,0DAAgD;AAChD,0EAA+D;AAG/D,kEAAwD;AACxD,8EAAmE;AACnE,8EAAmE;AACnE,4EAAiE;AACjE,0EAA+D;AAG/D,4DAAkD;AAClD,4EAAiE;AACjE,4EAAiE;AACjE,sFAA0E;AAG1E,oEAA0D;AAC1D,8EAAmE;AAGnE,8EAAmE;AACnE,4EAAiE;AACjE,4FAAgF;AAChF,wFAA4E;AAG5E,wDAA8C;AAC9C,kEAAuD;AACvD,oGAAuF;AAGvF,4DAAkD;AAClD,wEAA6D;AAC7D,4EAAiE;AACjE,sEAA2D;AAG3D,wEAA6D;AAC7D,0DAAgD;AAChD,oEAAyD;AACzD,sGAAyF;AACzF,wFAA4E;AAC5E,gFAAqE;AACrE,kGAAqF;AAQrF,0DAAkD;AAAzC,uGAAA,MAAM,OAAA;AACf,4DAAoD;AAA3C,yGAAA,OAAO,OAAA;AAChB,sDAA8C;AAArC,mGAAA,IAAI,OAAA;AACb,8DAAqD;AAA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