@things-factory/marketplace-base 6.2.140 → 6.2.142
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-server/entities/marketplace-order-item.js +20 -20
- package/dist-server/entities/marketplace-order-item.js.map +1 -1
- package/dist-server/entities/marketplace-order-shipping.js +10 -11
- package/dist-server/entities/marketplace-order-shipping.js.map +1 -1
- package/dist-server/entities/marketplace-order.js +10 -8
- package/dist-server/entities/marketplace-order.js.map +1 -1
- package/dist-server/entities/marketplace-product-variation-price.js +6 -9
- package/dist-server/entities/marketplace-product-variation-price.js.map +1 -1
- package/dist-server/entities/marketplace-product-variation.js +9 -12
- package/dist-server/entities/marketplace-product-variation.js.map +1 -1
- package/dist-server/entities/marketplace-refund-order-item.js +1 -1
- package/dist-server/entities/marketplace-refund-order-item.js.map +1 -1
- package/dist-server/entities/marketplace-refund-order.js +4 -2
- package/dist-server/entities/marketplace-refund-order.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/server/entities/marketplace-order-item.ts +24 -40
- package/server/entities/marketplace-order-shipping.ts +13 -30
- package/server/entities/marketplace-order.ts +13 -24
- package/server/entities/marketplace-product-variation-price.ts +9 -24
- package/server/entities/marketplace-product-variation.ts +12 -27
- package/server/entities/marketplace-refund-order-item.ts +56 -65
- package/server/entities/marketplace-refund-order.ts +44 -55
|
@@ -33,7 +33,7 @@ tslib_1.__decorate([
|
|
|
33
33
|
tslib_1.__metadata("design:type", String)
|
|
34
34
|
], MarketplaceOrderItem.prototype, "name", void 0);
|
|
35
35
|
tslib_1.__decorate([
|
|
36
|
-
(0, typeorm_1.Column)({ nullable: true, type: 'float' }),
|
|
36
|
+
(0, typeorm_1.Column)({ nullable: true, type: 'float', transformer: shell_1.roundTransformer }),
|
|
37
37
|
tslib_1.__metadata("design:type", Number)
|
|
38
38
|
], MarketplaceOrderItem.prototype, "qty", void 0);
|
|
39
39
|
tslib_1.__decorate([
|
|
@@ -49,11 +49,11 @@ tslib_1.__decorate([
|
|
|
49
49
|
tslib_1.__metadata("design:type", String)
|
|
50
50
|
], MarketplaceOrderItem.prototype, "paidPrice", void 0);
|
|
51
51
|
tslib_1.__decorate([
|
|
52
|
-
(0, typeorm_1.Column)({ type: 'float', nullable: true }),
|
|
52
|
+
(0, typeorm_1.Column)({ type: 'float', nullable: true, transformer: shell_1.roundTransformer }),
|
|
53
53
|
tslib_1.__metadata("design:type", Number)
|
|
54
54
|
], MarketplaceOrderItem.prototype, "originalPrice", void 0);
|
|
55
55
|
tslib_1.__decorate([
|
|
56
|
-
(0, typeorm_1.Column)({ type: 'float', nullable: true }),
|
|
56
|
+
(0, typeorm_1.Column)({ type: 'float', nullable: true, transformer: shell_1.roundTransformer }),
|
|
57
57
|
tslib_1.__metadata("design:type", Number)
|
|
58
58
|
], MarketplaceOrderItem.prototype, "discount", void 0);
|
|
59
59
|
tslib_1.__decorate([
|
|
@@ -89,71 +89,71 @@ tslib_1.__decorate([
|
|
|
89
89
|
tslib_1.__metadata("design:type", String)
|
|
90
90
|
], MarketplaceOrderItem.prototype, "description", void 0);
|
|
91
91
|
tslib_1.__decorate([
|
|
92
|
-
(0, typeorm_1.Column)({ nullable: true, type: 'float' }),
|
|
92
|
+
(0, typeorm_1.Column)({ nullable: true, type: 'float', transformer: shell_1.roundTransformer }),
|
|
93
93
|
tslib_1.__metadata("design:type", Number)
|
|
94
94
|
], MarketplaceOrderItem.prototype, "paymentFee", void 0);
|
|
95
95
|
tslib_1.__decorate([
|
|
96
|
-
(0, typeorm_1.Column)({ nullable: true, type: 'float' }),
|
|
96
|
+
(0, typeorm_1.Column)({ nullable: true, type: 'float', transformer: shell_1.roundTransformer }),
|
|
97
97
|
tslib_1.__metadata("design:type", Number)
|
|
98
98
|
], MarketplaceOrderItem.prototype, "commissionFee", void 0);
|
|
99
99
|
tslib_1.__decorate([
|
|
100
|
-
(0, typeorm_1.Column)({ nullable: true, type: 'float' }),
|
|
100
|
+
(0, typeorm_1.Column)({ nullable: true, type: 'float', transformer: shell_1.roundTransformer }),
|
|
101
101
|
tslib_1.__metadata("design:type", Number)
|
|
102
102
|
], MarketplaceOrderItem.prototype, "shippingFeePaidByCustomer", void 0);
|
|
103
103
|
tslib_1.__decorate([
|
|
104
|
-
(0, typeorm_1.Column)({ nullable: true, type: 'float' }),
|
|
104
|
+
(0, typeorm_1.Column)({ nullable: true, type: 'float', transformer: shell_1.roundTransformer }),
|
|
105
105
|
tslib_1.__metadata("design:type", Number)
|
|
106
106
|
], MarketplaceOrderItem.prototype, "promotionalCharges", void 0);
|
|
107
107
|
tslib_1.__decorate([
|
|
108
|
-
(0, typeorm_1.Column)({ nullable: true, type: 'float' }),
|
|
108
|
+
(0, typeorm_1.Column)({ nullable: true, type: 'float', transformer: shell_1.roundTransformer }),
|
|
109
109
|
tslib_1.__metadata("design:type", Number)
|
|
110
110
|
], MarketplaceOrderItem.prototype, "ordersMarketplaceFeesTotal", void 0);
|
|
111
111
|
tslib_1.__decorate([
|
|
112
|
-
(0, typeorm_1.Column)({ nullable: true, type: 'float' }),
|
|
112
|
+
(0, typeorm_1.Column)({ nullable: true, type: 'float', transformer: shell_1.roundTransformer }),
|
|
113
113
|
tslib_1.__metadata("design:type", Number)
|
|
114
114
|
], MarketplaceOrderItem.prototype, "ordersMarketingFeesTotal", void 0);
|
|
115
115
|
tslib_1.__decorate([
|
|
116
|
-
(0, typeorm_1.Column)({ nullable: true, type: 'float' }),
|
|
116
|
+
(0, typeorm_1.Column)({ nullable: true, type: 'float', transformer: shell_1.roundTransformer }),
|
|
117
117
|
tslib_1.__metadata("design:type", Number)
|
|
118
118
|
], MarketplaceOrderItem.prototype, "ordersSalesTotal", void 0);
|
|
119
119
|
tslib_1.__decorate([
|
|
120
|
-
(0, typeorm_1.Column)({ nullable: true, type: 'float' }),
|
|
120
|
+
(0, typeorm_1.Column)({ nullable: true, type: 'float', transformer: shell_1.roundTransformer }),
|
|
121
121
|
tslib_1.__metadata("design:type", Number)
|
|
122
122
|
], MarketplaceOrderItem.prototype, "ordersLogisticsTotal", void 0);
|
|
123
123
|
tslib_1.__decorate([
|
|
124
|
-
(0, typeorm_1.Column)({ nullable: true, type: 'float' }),
|
|
124
|
+
(0, typeorm_1.Column)({ nullable: true, type: 'float', transformer: shell_1.roundTransformer }),
|
|
125
125
|
tslib_1.__metadata("design:type", Number)
|
|
126
126
|
], MarketplaceOrderItem.prototype, "itemPriceCredit", void 0);
|
|
127
127
|
tslib_1.__decorate([
|
|
128
|
-
(0, typeorm_1.Column)({ nullable: true, type: 'float' }),
|
|
128
|
+
(0, typeorm_1.Column)({ nullable: true, type: 'float', transformer: shell_1.roundTransformer }),
|
|
129
129
|
tslib_1.__metadata("design:type", Number)
|
|
130
130
|
], MarketplaceOrderItem.prototype, "marketplaceBonus", void 0);
|
|
131
131
|
tslib_1.__decorate([
|
|
132
|
-
(0, typeorm_1.Column)({ nullable: true, type: 'float' }),
|
|
132
|
+
(0, typeorm_1.Column)({ nullable: true, type: 'float', transformer: shell_1.roundTransformer }),
|
|
133
133
|
tslib_1.__metadata("design:type", Number)
|
|
134
134
|
], MarketplaceOrderItem.prototype, "marketplaceBonusSeller", void 0);
|
|
135
135
|
tslib_1.__decorate([
|
|
136
|
-
(0, typeorm_1.Column)({ nullable: true, type: 'float' }),
|
|
136
|
+
(0, typeorm_1.Column)({ nullable: true, type: 'float', transformer: shell_1.roundTransformer }),
|
|
137
137
|
tslib_1.__metadata("design:type", Number)
|
|
138
138
|
], MarketplaceOrderItem.prototype, "shippingFeeDiscountMarketplace", void 0);
|
|
139
139
|
tslib_1.__decorate([
|
|
140
|
-
(0, typeorm_1.Column)({ nullable: true, type: 'float' }),
|
|
140
|
+
(0, typeorm_1.Column)({ nullable: true, type: 'float', transformer: shell_1.roundTransformer }),
|
|
141
141
|
tslib_1.__metadata("design:type", Number)
|
|
142
142
|
], MarketplaceOrderItem.prototype, "shippingFeeDiscountSeller", void 0);
|
|
143
143
|
tslib_1.__decorate([
|
|
144
|
-
(0, typeorm_1.Column)({ nullable: true, type: 'float' }),
|
|
144
|
+
(0, typeorm_1.Column)({ nullable: true, type: 'float', transformer: shell_1.roundTransformer }),
|
|
145
145
|
tslib_1.__metadata("design:type", Number)
|
|
146
146
|
], MarketplaceOrderItem.prototype, "promotionalChargesFlexiCombo", void 0);
|
|
147
147
|
tslib_1.__decorate([
|
|
148
|
-
(0, typeorm_1.Column)({ nullable: true, type: 'float' }),
|
|
148
|
+
(0, typeorm_1.Column)({ nullable: true, type: 'float', transformer: shell_1.roundTransformer }),
|
|
149
149
|
tslib_1.__metadata("design:type", Number)
|
|
150
150
|
], MarketplaceOrderItem.prototype, "autoShippingSubsidyMarketplace", void 0);
|
|
151
151
|
tslib_1.__decorate([
|
|
152
|
-
(0, typeorm_1.Column)({ nullable: true, type: 'float' }),
|
|
152
|
+
(0, typeorm_1.Column)({ nullable: true, type: 'float', transformer: shell_1.roundTransformer }),
|
|
153
153
|
tslib_1.__metadata("design:type", Number)
|
|
154
154
|
], MarketplaceOrderItem.prototype, "originalShippingFee", void 0);
|
|
155
155
|
tslib_1.__decorate([
|
|
156
|
-
(0, typeorm_1.Column)({ nullable: true, type: 'float' }),
|
|
156
|
+
(0, typeorm_1.Column)({ nullable: true, type: 'float', transformer: shell_1.roundTransformer }),
|
|
157
157
|
tslib_1.__metadata("design:type", Number)
|
|
158
158
|
], MarketplaceOrderItem.prototype, "taxAmount", void 0);
|
|
159
159
|
tslib_1.__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"marketplace-order-item.js","sourceRoot":"","sources":["../../server/entities/marketplace-order-item.ts"],"names":[],"mappings":";;;;AAAA,
|
|
1
|
+
{"version":3,"file":"marketplace-order-item.js","sourceRoot":"","sources":["../../server/entities/marketplace-order-item.ts"],"names":[],"mappings":";;;;AAAA,qCAAiI;AAEjI,yDAAgD;AAChD,iDAAgE;AAEhE,0CAAyG;AAIlG,IAAM,oBAAoB,GAA1B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,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,wBAAgB,EAAE,CAAC;;iEAC9C;AAE3B;IAAC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,wBAAgB,EAAE,CAAC;;uDACxD;AAEjB;IAAC,IAAA,0BAAgB,GAAE;sCACR,IAAI;uDAAA;AAEf;IAAC,IAAA,0BAAgB,GAAE;sCACR,IAAI;uDAAA;AAEf;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE;QACvB,QAAQ,EAAE,IAAI;KACf,CAAC;sCACO,gBAAI;qDAAA;AAEb;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE;QACvB,QAAQ,EAAE,IAAI;KACf,CAAC;sCACO,gBAAI;qDAAA;AA9HF,oBAAoB;IAFhC,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EAAC,6BAA6B,EAAE,CAAC,oBAA0C,EAAE,EAAE,CAAC,CAAC,oBAAoB,CAAC,MAAM,EAAE,oBAAoB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;GAClJ,oBAAoB,CA+HhC;AA/HY,oDAAoB","sourcesContent":["import { Column, CreateDateColumn, Entity, Index, ManyToOne, OneToMany, PrimaryGeneratedColumn, UpdateDateColumn } from 'typeorm'\n\nimport { User } from '@things-factory/auth-base'\nimport { Domain, roundTransformer } from '@things-factory/shell'\n\nimport { MarketplaceOrder, MarketplaceOrderShippingItem, MarketplaceProductVariation } from '../entities'\n\n@Entity()\n@Index('ix_marketplace-order-item_0', (marketplaceOrderItem: MarketplaceOrderItem) => [marketplaceOrderItem.domain, marketplaceOrderItem.id], { unique: true })\nexport class MarketplaceOrderItem {\n @PrimaryGeneratedColumn('uuid')\n id: string\n\n @ManyToOne(type => Domain)\n domain: Domain\n\n @ManyToOne(type => MarketplaceProductVariation)\n marketplaceProductVariation: MarketplaceProductVariation\n\n @ManyToOne(type => MarketplaceOrder)\n marketplaceOrder: MarketplaceOrder\n\n @OneToMany(type => MarketplaceOrderShippingItem, marketplaceOrderShippingItem => marketplaceOrderShippingItem.marketplaceOrderItem)\n marketplaceOrderShippingItems: MarketplaceOrderShippingItem[]\n\n @Column()\n name: string\n\n @Column({ nullable: true, type: 'float', transformer: roundTransformer })\n qty: number\n\n @Column({ nullable: true })\n cancelBy: string\n\n @Column({ nullable: true })\n returnStatus: string\n\n @Column({ nullable: true })\n paidPrice: string\n\n @Column({ type: 'float', nullable: true, transformer: roundTransformer })\n originalPrice: number\n\n @Column({ type: 'float', nullable: true, transformer: roundTransformer })\n discount: number\n\n @Column({ nullable: true })\n promotionId: string\n\n @Column({ nullable: true })\n packageId: string\n\n @Column({ nullable: true })\n invoiceNo: string\n\n @Column({ nullable: true })\n reason: string\n\n @Column({ nullable: true })\n docRefNo: string\n\n @Column({ nullable: true })\n trackingCode: string\n\n @Column()\n status: string\n\n @Column({ nullable: true })\n description: string\n\n @Column({ nullable: true, type: 'float', transformer: roundTransformer })\n paymentFee: number\n\n @Column({ nullable: true, type: 'float', transformer: roundTransformer })\n commissionFee: number\n\n @Column({ nullable: true, type: 'float', transformer: roundTransformer })\n shippingFeePaidByCustomer: number\n\n @Column({ nullable: true, type: 'float', transformer: roundTransformer })\n promotionalCharges: number\n\n @Column({ nullable: true, type: 'float', transformer: roundTransformer })\n ordersMarketplaceFeesTotal: number\n\n @Column({ nullable: true, type: 'float', transformer: roundTransformer })\n ordersMarketingFeesTotal: number\n\n @Column({ nullable: true, type: 'float', transformer: roundTransformer })\n ordersSalesTotal: number\n\n @Column({ nullable: true, type: 'float', transformer: roundTransformer })\n ordersLogisticsTotal: number\n\n @Column({ nullable: true, type: 'float', transformer: roundTransformer })\n itemPriceCredit: number\n\n @Column({ nullable: true, type: 'float', transformer: roundTransformer })\n marketplaceBonus: number\n\n @Column({ nullable: true, type: 'float', transformer: roundTransformer })\n marketplaceBonusSeller: number\n\n @Column({ nullable: true, type: 'float', transformer: roundTransformer })\n shippingFeeDiscountMarketplace: number\n\n @Column({ nullable: true, type: 'float', transformer: roundTransformer })\n shippingFeeDiscountSeller: number\n\n @Column({ nullable: true, type: 'float', transformer: roundTransformer })\n promotionalChargesFlexiCombo: number\n\n @Column({ nullable: true, type: 'float', transformer: roundTransformer })\n autoShippingSubsidyMarketplace: number\n\n @Column({ nullable: true, type: 'float', transformer: roundTransformer })\n originalShippingFee: number\n\n @Column({ nullable: true, type: 'float', transformer: roundTransformer })\n taxAmount: number\n\n @CreateDateColumn()\n createdAt: Date\n\n @UpdateDateColumn()\n updatedAt: Date\n\n @ManyToOne(type => User, {\n nullable: true\n })\n creator: User\n\n @ManyToOne(type => User, {\n nullable: true\n })\n updater: User\n}\n"]}
|
|
@@ -128,7 +128,7 @@ tslib_1.__decorate([
|
|
|
128
128
|
tslib_1.__metadata("design:type", String)
|
|
129
129
|
], MarketplaceOrderShipping.prototype, "weightUnit", void 0);
|
|
130
130
|
tslib_1.__decorate([
|
|
131
|
-
(0, typeorm_1.Column)({ nullable: true, type: 'float' }),
|
|
131
|
+
(0, typeorm_1.Column)({ nullable: true, type: 'float', transformer: shell_1.roundTransformer }),
|
|
132
132
|
tslib_1.__metadata("design:type", Number)
|
|
133
133
|
], MarketplaceOrderShipping.prototype, "totalWeight", void 0);
|
|
134
134
|
tslib_1.__decorate([
|
|
@@ -136,7 +136,7 @@ tslib_1.__decorate([
|
|
|
136
136
|
tslib_1.__metadata("design:type", String)
|
|
137
137
|
], MarketplaceOrderShipping.prototype, "volumeUnit", void 0);
|
|
138
138
|
tslib_1.__decorate([
|
|
139
|
-
(0, typeorm_1.Column)({ nullable: true, type: 'float' }),
|
|
139
|
+
(0, typeorm_1.Column)({ nullable: true, type: 'float', transformer: shell_1.roundTransformer }),
|
|
140
140
|
tslib_1.__metadata("design:type", Number)
|
|
141
141
|
], MarketplaceOrderShipping.prototype, "totalVolume", void 0);
|
|
142
142
|
tslib_1.__decorate([
|
|
@@ -144,7 +144,7 @@ tslib_1.__decorate([
|
|
|
144
144
|
tslib_1.__metadata("design:type", String)
|
|
145
145
|
], MarketplaceOrderShipping.prototype, "collectionType", void 0);
|
|
146
146
|
tslib_1.__decorate([
|
|
147
|
-
(0, typeorm_1.Column)({ nullable: true, type: 'float' }),
|
|
147
|
+
(0, typeorm_1.Column)({ nullable: true, type: 'float', transformer: shell_1.roundTransformer }),
|
|
148
148
|
tslib_1.__metadata("design:type", Number)
|
|
149
149
|
], MarketplaceOrderShipping.prototype, "collectionAmount", void 0);
|
|
150
150
|
tslib_1.__decorate([
|
|
@@ -168,19 +168,19 @@ tslib_1.__decorate([
|
|
|
168
168
|
tslib_1.__metadata("design:type", String)
|
|
169
169
|
], MarketplaceOrderShipping.prototype, "invoice", void 0);
|
|
170
170
|
tslib_1.__decorate([
|
|
171
|
-
(0, typeorm_1.Column)({ type: 'float', nullable: true }),
|
|
171
|
+
(0, typeorm_1.Column)({ type: 'float', nullable: true, transformer: shell_1.roundTransformer }),
|
|
172
172
|
tslib_1.__metadata("design:type", Number)
|
|
173
173
|
], MarketplaceOrderShipping.prototype, "shippingFee", void 0);
|
|
174
174
|
tslib_1.__decorate([
|
|
175
|
-
(0, typeorm_1.Column)({ type: 'float', nullable: true }),
|
|
175
|
+
(0, typeorm_1.Column)({ type: 'float', nullable: true, transformer: shell_1.roundTransformer }),
|
|
176
176
|
tslib_1.__metadata("design:type", Number)
|
|
177
177
|
], MarketplaceOrderShipping.prototype, "actualShippingFee", void 0);
|
|
178
178
|
tslib_1.__decorate([
|
|
179
|
-
(0, typeorm_1.Column)({ type: 'float', nullable: true }),
|
|
179
|
+
(0, typeorm_1.Column)({ type: 'float', nullable: true, transformer: shell_1.roundTransformer }),
|
|
180
180
|
tslib_1.__metadata("design:type", Number)
|
|
181
181
|
], MarketplaceOrderShipping.prototype, "marketplaceShippingFeeVoucher", void 0);
|
|
182
182
|
tslib_1.__decorate([
|
|
183
|
-
(0, typeorm_1.Column)({ type: 'float', nullable: true }),
|
|
183
|
+
(0, typeorm_1.Column)({ type: 'float', nullable: true, transformer: shell_1.roundTransformer }),
|
|
184
184
|
tslib_1.__metadata("design:type", Number)
|
|
185
185
|
], MarketplaceOrderShipping.prototype, "sellerShippingFeeVoucher", void 0);
|
|
186
186
|
tslib_1.__decorate([
|
|
@@ -217,10 +217,9 @@ tslib_1.__decorate([
|
|
|
217
217
|
], MarketplaceOrderShipping.prototype, "updater", void 0);
|
|
218
218
|
MarketplaceOrderShipping = tslib_1.__decorate([
|
|
219
219
|
(0, typeorm_1.Entity)(),
|
|
220
|
-
(0, typeorm_1.Index)('ix_marketplace-order-shipping_0', (marketplaceOrderShipping) => [
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
], { unique: true })
|
|
220
|
+
(0, typeorm_1.Index)('ix_marketplace-order-shipping_0', (marketplaceOrderShipping) => [marketplaceOrderShipping.domain, marketplaceOrderShipping.name], {
|
|
221
|
+
unique: true
|
|
222
|
+
})
|
|
224
223
|
], MarketplaceOrderShipping);
|
|
225
224
|
exports.MarketplaceOrderShipping = MarketplaceOrderShipping;
|
|
226
225
|
//# sourceMappingURL=marketplace-order-shipping.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"marketplace-order-shipping.js","sourceRoot":"","sources":["../../server/entities/marketplace-order-shipping.ts"],"names":[],"mappings":";;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"marketplace-order-shipping.js","sourceRoot":"","sources":["../../server/entities/marketplace-order-shipping.ts"],"names":[],"mappings":";;;;;AAAA,qCAAiI;AAEjI,yDAAgD;AAChD,qFAA2E;AAC3E,qFAA0E;AAC1E,iDAAgE;AAEhE,0CAA0D;AAMnD,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;CA0JpC,CAAA;AAzJC;IAAC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;oDACrB;AAEV;IAAC,IAAA,mBA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EAAE,IAAI,EAAE,CAAC;0DACtC,2CAAiB,oBAAjB,2CAAiB;mEAAA;AAEpC;IAAC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCACd,MAAM;6DAAA;AAEnB;IAAC,IAAA,0BAAgB,GAAE;sCACR,IAAI;2DAAA;AAEf;IAAC,IAAA,0BAAgB,GAAE;sCACR,IAAI;2DAAA;AAEf;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE;QACvB,QAAQ,EAAE,IAAI;KACf,CAAC;sCACO,gBAAI;yDAAA;AAEb;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE;QACvB,QAAQ,EAAE,IAAI;KACf,CAAC;sCACO,gBAAI;yDAAA;AAzJF,wBAAwB;IAJpC,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EAAC,iCAAiC,EAAE,CAAC,wBAAkD,EAAE,EAAE,CAAC,CAAC,wBAAwB,CAAC,MAAM,EAAE,wBAAwB,CAAC,IAAI,CAAC,EAAE;QAClK,MAAM,EAAE,IAAI;KACb,CAAC;GACW,wBAAwB,CA0JpC;AA1JY,4DAAwB","sourcesContent":["import { Column, CreateDateColumn, Entity, Index, ManyToOne, OneToMany, PrimaryGeneratedColumn, UpdateDateColumn } from 'typeorm'\n\nimport { User } from '@things-factory/auth-base'\nimport { FulfillmentCenter } from '@things-factory/integration-fulfillment'\nimport { MarketplaceStore } from '@things-factory/integration-marketplace'\nimport { Domain, roundTransformer } from '@things-factory/shell'\n\nimport { MarketplaceOrderShippingItem } from '../entities'\n\n@Entity()\n@Index('ix_marketplace-order-shipping_0', (marketplaceOrderShipping: MarketplaceOrderShipping) => [marketplaceOrderShipping.domain, marketplaceOrderShipping.name], {\n unique: true\n})\nexport class MarketplaceOrderShipping {\n @PrimaryGeneratedColumn('uuid')\n id: string\n\n @ManyToOne(type => Domain)\n domain: Domain\n\n @Column()\n name: string\n\n @OneToMany(type => MarketplaceOrderShippingItem, marketplaceOrderShippingItem => marketplaceOrderShippingItem.marketplaceOrderShipping)\n marketplaceOrderShippingItems: MarketplaceOrderShippingItem[]\n\n @ManyToOne(type => MarketplaceStore)\n marketplaceStore: MarketplaceStore\n\n @Column({ nullable: true })\n orderNoRef: string\n\n @Column({ nullable: true })\n subOrderNoRef: string\n\n @Column()\n address1: string\n\n @Column({ nullable: true })\n address2: string\n\n @Column({ nullable: true })\n address3: string\n\n @Column({ nullable: true })\n address4: string\n\n @Column({ nullable: true })\n address5: string\n\n @Column()\n attentionTo: string\n\n @Column()\n city: string\n\n @Column({ nullable: true })\n state: string\n\n @Column()\n postCode: string\n\n @Column()\n country: string\n\n @Column({ nullable: true })\n phone1: string\n\n @Column({ nullable: true })\n phone2: string\n\n @Column({ nullable: true })\n email: string\n\n @Column({ nullable: true })\n transporter: string\n\n @Column({ nullable: true })\n ownTransporter: string\n\n @Column({ nullable: true })\n orderType: string\n\n @Column({ nullable: true, type: 'int' })\n freightType: number\n\n @Column({ nullable: true, type: 'int' })\n parcelType: number\n\n @Column({ nullable: true, type: 'int' })\n goodsType: number\n\n @Column({ nullable: true, type: 'int' })\n deliveryMethod: number\n\n @Column({ nullable: true })\n description: string\n\n @Column({ nullable: true })\n weightUnit: string\n\n @Column({ nullable: true, type: 'float', transformer: roundTransformer })\n totalWeight: number\n\n @Column({ nullable: true })\n volumeUnit: string\n\n @Column({ nullable: true, type: 'float', transformer: roundTransformer })\n totalVolume: number\n\n @Column({ nullable: true })\n collectionType: string\n\n @Column({ nullable: true, type: 'float', transformer: roundTransformer })\n collectionAmount: number\n\n @Column({ nullable: true })\n collectionCurrency: string\n\n @Column({ nullable: true })\n trackingNo: string\n\n @Column({ nullable: true })\n ownTrackingNo: string\n\n @Column({ nullable: true })\n airwayBill: string\n\n @Column({ nullable: true })\n invoice: string\n\n @Column({ type: 'float', nullable: true, transformer: roundTransformer })\n shippingFee: number\n\n @Column({ type: 'float', nullable: true, transformer: roundTransformer })\n actualShippingFee: number\n\n @Column({ type: 'float', nullable: true, transformer: roundTransformer })\n marketplaceShippingFeeVoucher: number\n\n @Column({ type: 'float', nullable: true, transformer: roundTransformer })\n sellerShippingFeeVoucher: number\n\n @Column({ nullable: true })\n releaseOrderId: string\n\n @ManyToOne(type => FulfillmentCenter, { nullable: true })\n fulfillmentCenter: FulfillmentCenter\n\n @Column({ nullable: true })\n trackingUrl: String\n\n @CreateDateColumn()\n createdAt: Date\n\n @UpdateDateColumn()\n updatedAt: Date\n\n @ManyToOne(type => User, {\n nullable: true\n })\n creator: User\n\n @ManyToOne(type => User, {\n nullable: true\n })\n updater: User\n}\n"]}
|
|
@@ -48,7 +48,7 @@ tslib_1.__decorate([
|
|
|
48
48
|
tslib_1.__metadata("design:type", Number)
|
|
49
49
|
], MarketplaceOrder.prototype, "itemCount", void 0);
|
|
50
50
|
tslib_1.__decorate([
|
|
51
|
-
(0, typeorm_1.Column)({ type: 'float', nullable: true }),
|
|
51
|
+
(0, typeorm_1.Column)({ type: 'float', nullable: true, transformer: shell_1.roundTransformer }),
|
|
52
52
|
tslib_1.__metadata("design:type", Number)
|
|
53
53
|
], MarketplaceOrder.prototype, "totalAmount", void 0);
|
|
54
54
|
tslib_1.__decorate([
|
|
@@ -128,27 +128,27 @@ tslib_1.__decorate([
|
|
|
128
128
|
tslib_1.__metadata("design:type", Date)
|
|
129
129
|
], MarketplaceOrder.prototype, "payTime", void 0);
|
|
130
130
|
tslib_1.__decorate([
|
|
131
|
-
(0, typeorm_1.Column)({ nullable: true, type: 'float' }),
|
|
131
|
+
(0, typeorm_1.Column)({ nullable: true, type: 'float', transformer: shell_1.roundTransformer }),
|
|
132
132
|
tslib_1.__metadata("design:type", Number)
|
|
133
133
|
], MarketplaceOrder.prototype, "commissionFee", void 0);
|
|
134
134
|
tslib_1.__decorate([
|
|
135
|
-
(0, typeorm_1.Column)({ nullable: true, type: 'float' }),
|
|
135
|
+
(0, typeorm_1.Column)({ nullable: true, type: 'float', transformer: shell_1.roundTransformer }),
|
|
136
136
|
tslib_1.__metadata("design:type", Number)
|
|
137
137
|
], MarketplaceOrder.prototype, "serviceFee", void 0);
|
|
138
138
|
tslib_1.__decorate([
|
|
139
|
-
(0, typeorm_1.Column)({ nullable: true, type: 'float' }),
|
|
139
|
+
(0, typeorm_1.Column)({ nullable: true, type: 'float', transformer: shell_1.roundTransformer }),
|
|
140
140
|
tslib_1.__metadata("design:type", Number)
|
|
141
141
|
], MarketplaceOrder.prototype, "transactionFee", void 0);
|
|
142
142
|
tslib_1.__decorate([
|
|
143
|
-
(0, typeorm_1.Column)({ nullable: true, type: 'float' }),
|
|
143
|
+
(0, typeorm_1.Column)({ nullable: true, type: 'float', transformer: shell_1.roundTransformer }),
|
|
144
144
|
tslib_1.__metadata("design:type", Number)
|
|
145
145
|
], MarketplaceOrder.prototype, "totalRealeasedAmount", void 0);
|
|
146
146
|
tslib_1.__decorate([
|
|
147
|
-
(0, typeorm_1.Column)({ nullable: true, type: 'float' }),
|
|
147
|
+
(0, typeorm_1.Column)({ nullable: true, type: 'float', transformer: shell_1.roundTransformer }),
|
|
148
148
|
tslib_1.__metadata("design:type", String)
|
|
149
149
|
], MarketplaceOrder.prototype, "voucherAmount", void 0);
|
|
150
150
|
tslib_1.__decorate([
|
|
151
|
-
(0, typeorm_1.Column)({ nullable: true, type: 'float' }),
|
|
151
|
+
(0, typeorm_1.Column)({ nullable: true, type: 'float', transformer: shell_1.roundTransformer }),
|
|
152
152
|
tslib_1.__metadata("design:type", Number)
|
|
153
153
|
], MarketplaceOrder.prototype, "shippingRebate", void 0);
|
|
154
154
|
tslib_1.__decorate([
|
|
@@ -181,7 +181,9 @@ tslib_1.__decorate([
|
|
|
181
181
|
], MarketplaceOrder.prototype, "updater", void 0);
|
|
182
182
|
MarketplaceOrder = tslib_1.__decorate([
|
|
183
183
|
(0, typeorm_1.Entity)(),
|
|
184
|
-
(0, typeorm_1.Index)('ix_marketplace-order_0', (marketplaceOrder) => [marketplaceOrder.domain, marketplaceOrder.name, marketplaceOrder.marketplaceStore], {
|
|
184
|
+
(0, typeorm_1.Index)('ix_marketplace-order_0', (marketplaceOrder) => [marketplaceOrder.domain, marketplaceOrder.name, marketplaceOrder.marketplaceStore], {
|
|
185
|
+
unique: true
|
|
186
|
+
})
|
|
185
187
|
], MarketplaceOrder);
|
|
186
188
|
exports.MarketplaceOrder = MarketplaceOrder;
|
|
187
189
|
//# sourceMappingURL=marketplace-order.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"marketplace-order.js","sourceRoot":"","sources":["../../server/entities/marketplace-order.ts"],"names":[],"mappings":";;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"marketplace-order.js","sourceRoot":"","sources":["../../server/entities/marketplace-order.ts"],"names":[],"mappings":";;;;;AAAA,qCAAiI;AAEjI,yDAAgD;AAChD,qFAA2E;AAC3E,qFAA0E;AAC1E,iDAAgE;AAEhE,0CAAkD;AAM3C,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;CA+H5B,CAAA;AA9HC;IAAC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;4CACrB;AAEV;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;sCAClB,cAAM;gDAAA;AAEd;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,0CAAgB,CAAC;0DAClB,0CAAgB,oBAAhB,0CAAgB;0DAAA;AAElC;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,+BAAoB,EAAE,oBAAoB,CAAC,EAAE,CAAC,oBAAoB,CAAC,gBAAgB,CAAC;;+DAC1D;AAE7C;IAAC,IAAA,gBAAM,GAAE;;8CACG;AAEZ;IAAC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDACR;AAEnB;IAAC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;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AW,EAAE,wBAAgB,EAAE,CAAC;sCAC1D,MAAM;uDAAA;AAErB;IAAC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,wBAAgB,EAAE,CAAC;sCACzD,MAAM;wDAAA;AAEtB;IAAC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCACb,MAAM;sDAAA;AAEpB;IAAC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCACf,IAAI;oDAAA;AAEhB;IAAC,IAAA,0BAAgB,GAAE;sCACR,IAAI;mDAAA;AAEf;IAAC,IAAA,0BAAgB,GAAE;sCACR,IAAI;mDAAA;AAEf;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE;QACvB,QAAQ,EAAE,IAAI;KACf,CAAC;sCACO,gBAAI;iDAAA;AAEb;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE;QACvB,QAAQ,EAAE,IAAI;KACf,CAAC;sCACO,gBAAI;iDAAA;AA9HF,gBAAgB;IAJ5B,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EAAC,wBAAwB,EAAE,CAAC,gBAAkC,EAAE,EAAE,CAAC,CAAC,gBAAgB,CAAC,MAAM,EAAE,gBAAgB,CAAC,IAAI,EAAE,gBAAgB,CAAC,gBAAgB,CAAC,EAAE;QAC5J,MAAM,EAAE,IAAI;KACb,CAAC;GACW,gBAAgB,CA+H5B;AA/HY,4CAAgB","sourcesContent":["import { Column, CreateDateColumn, Entity, Index, ManyToOne, OneToMany, PrimaryGeneratedColumn, UpdateDateColumn } from 'typeorm'\n\nimport { User } from '@things-factory/auth-base'\nimport { FulfillmentCenter } from '@things-factory/integration-fulfillment'\nimport { MarketplaceStore } from '@things-factory/integration-marketplace'\nimport { Domain, roundTransformer } from '@things-factory/shell'\n\nimport { MarketplaceOrderItem } from '../entities'\n\n@Entity()\n@Index('ix_marketplace-order_0', (marketplaceOrder: MarketplaceOrder) => [marketplaceOrder.domain, marketplaceOrder.name, marketplaceOrder.marketplaceStore], {\n unique: true\n})\nexport class MarketplaceOrder {\n @PrimaryGeneratedColumn('uuid')\n id: string\n\n @ManyToOne(type => Domain)\n domain: Domain\n\n @ManyToOne(type => MarketplaceStore)\n marketplaceStore: MarketplaceStore\n\n @OneToMany(type => MarketplaceOrderItem, marketplaceOrderItem => marketplaceOrderItem.marketplaceOrder)\n marketplaceOrderItems: MarketplaceOrderItem[]\n\n @Column()\n name: string\n\n @Column({ nullable: true })\n description: string\n\n @Column({ nullable: true })\n orderNo: string\n\n @Column({ nullable: true })\n currency: string\n\n @Column({ type: 'int', nullable: true })\n itemCount: number\n\n @Column({ type: 'float', nullable: true, transformer: roundTransformer })\n totalAmount: number\n\n @Column({ nullable: true })\n paymentMethod: string\n\n @Column({ nullable: true })\n type: string\n\n @Column({ nullable: true })\n remark: string\n\n @Column({ nullable: true })\n giftOption: Boolean\n\n @Column({ nullable: true })\n voucherCode: string\n\n @Column({ nullable: true })\n discountValue: string\n\n @Column({ nullable: true })\n trackingNo: string\n\n @Column({ nullable: true })\n ownTrackingNo: string\n\n @Column({ nullable: true })\n shippingProvider: string\n\n @Column({ nullable: true })\n ownShippingProvider: string\n\n @Column()\n status: string\n\n @Column({ nullable: true })\n releaseOrderId: string\n\n @ManyToOne(type => FulfillmentCenter, { nullable: true })\n fulfillmentCenter: FulfillmentCenter\n\n @Column({ nullable: true })\n orderCreatedAt: Date\n\n @Column()\n orderUpdatedAt: Date\n\n @Column({ nullable: true })\n otherInfoJSON: string\n\n @Column({ nullable: true })\n isSplitted: boolean\n\n @Column({ nullable: true })\n buyerUsername: string\n\n @Column({ nullable: true })\n payTime: Date\n\n @Column({ nullable: true, type: 'float', transformer: roundTransformer })\n commissionFee: Number\n\n @Column({ nullable: true, type: 'float', transformer: roundTransformer })\n serviceFee: Number\n\n @Column({ nullable: true, type: 'float', transformer: roundTransformer })\n transactionFee: Number\n\n @Column({ nullable: true, type: 'float', transformer: roundTransformer })\n totalRealeasedAmount: Number\n\n @Column({ nullable: true, type: 'float', transformer: roundTransformer })\n voucherAmount: String\n\n @Column({ nullable: true, type: 'float', transformer: roundTransformer })\n shippingRebate: Number\n\n @Column({ nullable: true })\n shippingMode: String\n\n @Column({ nullable: true })\n payoutDate: Date\n\n @CreateDateColumn()\n createdAt: Date\n\n @UpdateDateColumn()\n updatedAt: Date\n\n @ManyToOne(type => User, {\n nullable: true\n })\n creator: User\n\n @ManyToOne(type => User, {\n nullable: true\n })\n updater: User\n}\n"]}
|
|
@@ -35,23 +35,23 @@ tslib_1.__decorate([
|
|
|
35
35
|
tslib_1.__metadata("design:type", String)
|
|
36
36
|
], MarketplaceProductVariationPrice.prototype, "currency", void 0);
|
|
37
37
|
tslib_1.__decorate([
|
|
38
|
-
(0, typeorm_1.Column)('float', { nullable: true }),
|
|
38
|
+
(0, typeorm_1.Column)('float', { nullable: true, transformer: shell_1.roundTransformer }),
|
|
39
39
|
tslib_1.__metadata("design:type", Number)
|
|
40
40
|
], MarketplaceProductVariationPrice.prototype, "mrpPrice", void 0);
|
|
41
41
|
tslib_1.__decorate([
|
|
42
|
-
(0, typeorm_1.Column)('float', { nullable: true }),
|
|
42
|
+
(0, typeorm_1.Column)('float', { nullable: true, transformer: shell_1.roundTransformer }),
|
|
43
43
|
tslib_1.__metadata("design:type", Number)
|
|
44
44
|
], MarketplaceProductVariationPrice.prototype, "costPrice", void 0);
|
|
45
45
|
tslib_1.__decorate([
|
|
46
|
-
(0, typeorm_1.Column)('float', { nullable: true }),
|
|
46
|
+
(0, typeorm_1.Column)('float', { nullable: true, transformer: shell_1.roundTransformer }),
|
|
47
47
|
tslib_1.__metadata("design:type", Number)
|
|
48
48
|
], MarketplaceProductVariationPrice.prototype, "sellPrice", void 0);
|
|
49
49
|
tslib_1.__decorate([
|
|
50
|
-
(0, typeorm_1.Column)('float', { nullable: true }),
|
|
50
|
+
(0, typeorm_1.Column)('float', { nullable: true, transformer: shell_1.roundTransformer }),
|
|
51
51
|
tslib_1.__metadata("design:type", Number)
|
|
52
52
|
], MarketplaceProductVariationPrice.prototype, "afterTaxCostPrice", void 0);
|
|
53
53
|
tslib_1.__decorate([
|
|
54
|
-
(0, typeorm_1.Column)('float', { nullable: true }),
|
|
54
|
+
(0, typeorm_1.Column)('float', { nullable: true, transformer: shell_1.roundTransformer }),
|
|
55
55
|
tslib_1.__metadata("design:type", Number)
|
|
56
56
|
], MarketplaceProductVariationPrice.prototype, "afterTaxSalesPrice", void 0);
|
|
57
57
|
tslib_1.__decorate([
|
|
@@ -76,10 +76,7 @@ tslib_1.__decorate([
|
|
|
76
76
|
], MarketplaceProductVariationPrice.prototype, "updater", void 0);
|
|
77
77
|
MarketplaceProductVariationPrice = tslib_1.__decorate([
|
|
78
78
|
(0, typeorm_1.Entity)(),
|
|
79
|
-
(0, typeorm_1.Index)('ix_marketplace_product_variation_price_0', (marketplaceProductVariationPrice) => [
|
|
80
|
-
marketplaceProductVariationPrice.domain,
|
|
81
|
-
marketplaceProductVariationPrice.name
|
|
82
|
-
], { unique: true })
|
|
79
|
+
(0, typeorm_1.Index)('ix_marketplace_product_variation_price_0', (marketplaceProductVariationPrice) => [marketplaceProductVariationPrice.domain, marketplaceProductVariationPrice.name], { unique: true })
|
|
83
80
|
], MarketplaceProductVariationPrice);
|
|
84
81
|
exports.MarketplaceProductVariationPrice = MarketplaceProductVariationPrice;
|
|
85
82
|
//# sourceMappingURL=marketplace-product-variation-price.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"marketplace-product-variation-price.js","sourceRoot":"","sources":["../../server/entities/marketplace-product-variation-price.ts"],"names":[],"mappings":";;;;AAAA,
|
|
1
|
+
{"version":3,"file":"marketplace-product-variation-price.js","sourceRoot":"","sources":["../../server/entities/marketplace-product-variation-price.ts"],"names":[],"mappings":";;;;AAAA,q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;IAAC,IAAA,0BAAgB,GAAE;sCACR,IAAI;mEAAA;AAEf;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE;QACvB,QAAQ,EAAE,IAAI;KACf,CAAC;sCACO,gBAAI;iEAAA;AAEb;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE;QACvB,QAAQ,EAAE,IAAI;KACf,CAAC;sCACO,gBAAI;iEAAA;AAlDF,gCAAgC;IAN5C,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EACJ,0CAA0C,EAC1C,CAAC,gCAAkE,EAAE,EAAE,CAAC,CAAC,gCAAgC,CAAC,MAAM,EAAE,gCAAgC,CAAC,IAAI,CAAC,EACxJ,EAAE,MAAM,EAAE,IAAI,EAAE,CACjB;GACY,gCAAgC,CAmD5C;AAnDY,4EAAgC","sourcesContent":["import { CreateDateColumn, UpdateDateColumn, Entity, Index, Column, OneToMany, ManyToOne, PrimaryGeneratedColumn } from 'typeorm'\nimport { Domain, roundTransformer } from '@things-factory/shell'\nimport { User } from '@things-factory/auth-base'\nimport { MarketplaceProductVariation } from '../entities'\n\n@Entity()\n@Index(\n 'ix_marketplace_product_variation_price_0',\n (marketplaceProductVariationPrice: MarketplaceProductVariationPrice) => [marketplaceProductVariationPrice.domain, marketplaceProductVariationPrice.name],\n { unique: true }\n)\nexport class MarketplaceProductVariationPrice {\n @PrimaryGeneratedColumn('uuid')\n id: string\n\n @ManyToOne(type => Domain)\n domain: Domain\n\n @Column()\n name: string\n\n @Column({\n nullable: true\n })\n description: string\n\n @ManyToOne(type => MarketplaceProductVariation, marketplaceProductVariation => marketplaceProductVariation.marketplaceProductVariationPrices)\n marketplaceProductVariation: MarketplaceProductVariation\n\n @Column({ nullable: true })\n currency: string\n\n @Column('float', { nullable: true, transformer: roundTransformer })\n mrpPrice: number\n\n @Column('float', { nullable: true, transformer: roundTransformer })\n costPrice: number\n\n @Column('float', { nullable: true, transformer: roundTransformer })\n sellPrice: number\n\n @Column('float', { nullable: true, transformer: roundTransformer })\n afterTaxCostPrice: number\n\n @Column('float', { nullable: true, transformer: roundTransformer })\n afterTaxSalesPrice: number\n\n @CreateDateColumn()\n createdAt: Date\n\n @UpdateDateColumn()\n updatedAt: Date\n\n @ManyToOne(type => User, {\n nullable: true\n })\n creator: User\n\n @ManyToOne(type => User, {\n nullable: true\n })\n updater: User\n}\n"]}
|
|
@@ -84,11 +84,11 @@ tslib_1.__decorate([
|
|
|
84
84
|
tslib_1.__metadata("design:type", String)
|
|
85
85
|
], MarketplaceProductVariation.prototype, "description", void 0);
|
|
86
86
|
tslib_1.__decorate([
|
|
87
|
-
(0, typeorm_1.Column)('float', { nullable: true }),
|
|
87
|
+
(0, typeorm_1.Column)('float', { nullable: true, transformer: shell_1.roundTransformer }),
|
|
88
88
|
tslib_1.__metadata("design:type", Number)
|
|
89
89
|
], MarketplaceProductVariation.prototype, "qty", void 0);
|
|
90
90
|
tslib_1.__decorate([
|
|
91
|
-
(0, typeorm_1.Column)('float', { nullable: true }),
|
|
91
|
+
(0, typeorm_1.Column)('float', { nullable: true, transformer: shell_1.roundTransformer }),
|
|
92
92
|
tslib_1.__metadata("design:type", Number)
|
|
93
93
|
], MarketplaceProductVariation.prototype, "reserveQty", void 0);
|
|
94
94
|
tslib_1.__decorate([
|
|
@@ -96,15 +96,15 @@ tslib_1.__decorate([
|
|
|
96
96
|
tslib_1.__metadata("design:type", String)
|
|
97
97
|
], MarketplaceProductVariation.prototype, "type", void 0);
|
|
98
98
|
tslib_1.__decorate([
|
|
99
|
-
(0, typeorm_1.Column)('float', { nullable: true }),
|
|
99
|
+
(0, typeorm_1.Column)('float', { nullable: true, transformer: shell_1.roundTransformer }),
|
|
100
100
|
tslib_1.__metadata("design:type", Number)
|
|
101
101
|
], MarketplaceProductVariation.prototype, "mrpPrice", void 0);
|
|
102
102
|
tslib_1.__decorate([
|
|
103
|
-
(0, typeorm_1.Column)('float', { nullable: true }),
|
|
103
|
+
(0, typeorm_1.Column)('float', { nullable: true, transformer: shell_1.roundTransformer }),
|
|
104
104
|
tslib_1.__metadata("design:type", Number)
|
|
105
105
|
], MarketplaceProductVariation.prototype, "costPrice", void 0);
|
|
106
106
|
tslib_1.__decorate([
|
|
107
|
-
(0, typeorm_1.Column)('float', { nullable: true }),
|
|
107
|
+
(0, typeorm_1.Column)('float', { nullable: true, transformer: shell_1.roundTransformer }),
|
|
108
108
|
tslib_1.__metadata("design:type", Number)
|
|
109
109
|
], MarketplaceProductVariation.prototype, "sellPrice", void 0);
|
|
110
110
|
tslib_1.__decorate([
|
|
@@ -120,11 +120,11 @@ tslib_1.__decorate([
|
|
|
120
120
|
tslib_1.__metadata("design:type", String)
|
|
121
121
|
], MarketplaceProductVariation.prototype, "marketplaceStatus", void 0);
|
|
122
122
|
tslib_1.__decorate([
|
|
123
|
-
(0, typeorm_1.Column)('float', { nullable: true }),
|
|
123
|
+
(0, typeorm_1.Column)('float', { nullable: true, transformer: shell_1.roundTransformer }),
|
|
124
124
|
tslib_1.__metadata("design:type", Number)
|
|
125
125
|
], MarketplaceProductVariation.prototype, "afterTaxCostPrice", void 0);
|
|
126
126
|
tslib_1.__decorate([
|
|
127
|
-
(0, typeorm_1.Column)('float', { nullable: true }),
|
|
127
|
+
(0, typeorm_1.Column)('float', { nullable: true, transformer: shell_1.roundTransformer }),
|
|
128
128
|
tslib_1.__metadata("design:type", Number)
|
|
129
129
|
], MarketplaceProductVariation.prototype, "afterTaxSalesPrice", void 0);
|
|
130
130
|
tslib_1.__decorate([
|
|
@@ -136,7 +136,7 @@ tslib_1.__decorate([
|
|
|
136
136
|
tslib_1.__metadata("design:type", String)
|
|
137
137
|
], MarketplaceProductVariation.prototype, "primaryUnit", void 0);
|
|
138
138
|
tslib_1.__decorate([
|
|
139
|
-
(0, typeorm_1.Column)('float', { nullable: true }),
|
|
139
|
+
(0, typeorm_1.Column)('float', { nullable: true, transformer: shell_1.roundTransformer }),
|
|
140
140
|
tslib_1.__metadata("design:type", Number)
|
|
141
141
|
], MarketplaceProductVariation.prototype, "primaryUnitValue", void 0);
|
|
142
142
|
tslib_1.__decorate([
|
|
@@ -173,10 +173,7 @@ tslib_1.__decorate([
|
|
|
173
173
|
], MarketplaceProductVariation.prototype, "updater", void 0);
|
|
174
174
|
MarketplaceProductVariation = tslib_1.__decorate([
|
|
175
175
|
(0, typeorm_1.Entity)(),
|
|
176
|
-
(0, typeorm_1.Index)('ix_marketplace-product-variation_0', (marketplaceProductVariation) => [
|
|
177
|
-
marketplaceProductVariation.domain,
|
|
178
|
-
marketplaceProductVariation.id
|
|
179
|
-
], { unique: true }),
|
|
176
|
+
(0, typeorm_1.Index)('ix_marketplace-product-variation_0', (marketplaceProductVariation) => [marketplaceProductVariation.domain, marketplaceProductVariation.id], { unique: true }),
|
|
180
177
|
tslib_1.__metadata("design:paramtypes", [Object])
|
|
181
178
|
], MarketplaceProductVariation);
|
|
182
179
|
exports.MarketplaceProductVariation = MarketplaceProductVariation;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"marketplace-product-variation.js","sourceRoot":"","sources":["../../server/entities/marketplace-product-variation.ts"],"names":[],"mappings":";;;;AAAA,
|
|
1
|
+
{"version":3,"file":"marketplace-product-variation.js","sourceRoot":"","sources":["../../server/entities/marketplace-product-variation.ts"],"names":[],"mappings":";;;;AAAA,qCAAiI;AAEjI,yDAAgD;AAChD,iDAAgE;AAEhE,0CAAkF;AAClF,oCAAsC;AAQ/B,IAAM,2BAA2B,GAAjC,MAAM,2BAA2B;IACtC,YAAY,gBAAgB;QAC1B,IAAI,gBAAgB,EAAE;YACpB,IAAI,CAAC,EAAE,GAAG,gBAAgB,CAAC,EAAE,CAAA;YAC7B,IAAI,CAAC,MAAM,GAAG,gBAAgB,CAAC,MAAM,CAAA;YACrC,IAAI,CAAC,kBAAkB,GAAG,gBAAgB,CAAC,kBAAkB,CAAA;YAC7D,IAAI,CAAC,WAAW,GAAG,gBAAgB,CA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C;;oEACJ;AAEvB;IAAC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gEACR;AAEnB;IAAC,IAAA,gBAAM,EAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,wBAAgB,EAAE,CAAC;;qEAC3C;AAExB;IAAC,IAAA,gBAAM,EAAC;QACN,QAAQ,EAAE,IAAI;KACf,CAAC;;oEACqB;AAEvB;IAAC,IAAA,gBAAM,EAAC;QACN,QAAQ,EAAE,IAAI;KACf,CAAC;;+DACgB;AAElB;IAAC,IAAA,0BAAgB,GAAE;sCACR,IAAI;8DAAA;AAEf;IAAC,IAAA,0BAAgB,GAAE;sCACR,IAAI;8DAAA;AAEf;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE;QACvB,QAAQ,EAAE,IAAI;KACf,CAAC;sCACO,gBAAI;4DAAA;AAEb;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE;QACvB,QAAQ,EAAE,IAAI;KACf,CAAC;sCACO,gBAAI;4DAAA;AAnIF,2BAA2B;IANvC,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EACJ,oCAAoC,EACpC,CAAC,2BAAwD,EAAE,EAAE,CAAC,CAAC,2BAA2B,CAAC,MAAM,EAAE,2BAA2B,CAAC,EAAE,CAAC,EAClI,EAAE,MAAM,EAAE,IAAI,EAAE,CACjB;;GACY,2BAA2B,CAoIvC;AApIY,kEAA2B","sourcesContent":["import { Column, CreateDateColumn, Entity, Index, ManyToOne, OneToMany, PrimaryGeneratedColumn, UpdateDateColumn } from 'typeorm'\n\nimport { User } from '@things-factory/auth-base'\nimport { Domain, roundTransformer } from '@things-factory/shell'\n\nimport { MarketplaceProduct, MarketplaceProductVariationPrice } from '../entities'\nimport { NoGenerator } from '../utils'\n\n@Entity()\n@Index(\n 'ix_marketplace-product-variation_0',\n (marketplaceProductVariation: MarketplaceProductVariation) => [marketplaceProductVariation.domain, marketplaceProductVariation.id],\n { unique: true }\n)\nexport class MarketplaceProductVariation {\n constructor(productVariation) {\n if (productVariation) {\n this.id = productVariation.id\n this.domain = productVariation.domain\n this.marketplaceProduct = productVariation.marketplaceProduct\n this.variationId = productVariation.variationId.toString()\n this.variationSku = productVariation.variationSku ? productVariation.variationSku.toString() : NoGenerator.sku()\n this.channelSku = productVariation.channelSku ? productVariation.channelSku.toString() : NoGenerator.sku()\n this.name = productVariation.name ? productVariation.name.toString() : NoGenerator.id()\n this.description = productVariation.description\n this.qty = productVariation.qty\n this.reserveQty = productVariation.reserveQty\n this.type = productVariation.type\n this.mrpPrice = productVariation.mrpPrice\n this.costPrice = productVariation.costPrice\n this.sellPrice = productVariation.sellPrice\n this.discountId = productVariation.discountId\n this.status = productVariation.status\n this.marketplaceStatus = productVariation.marketplaceStatus\n this.afterTaxCostPrice = productVariation.afterTaxCostPrice\n this.afterTaxSalesPrice = productVariation.afterTaxSalesPrice\n this.inventoryPolicy = productVariation.inventoryPolicy\n this.primaryUnit = productVariation.weight\n this.primaryUnitValue = productVariation.weightUnit\n this.inventoryItemId = productVariation.inventoryItemId\n this.locationId = productVariation.locationId\n this.creator = productVariation.creator\n this.updater = productVariation.updater\n }\n }\n\n @PrimaryGeneratedColumn('uuid')\n id: string\n\n @ManyToOne(type => Domain)\n domain: Domain\n\n /**\n * for mapping to sku column in products in product-base\n */\n @Column({ nullable: true })\n sku: string\n\n @ManyToOne(type => MarketplaceProduct, marketplaceProduct => marketplaceProduct.marketplaceProductVariations)\n marketplaceProduct: MarketplaceProduct\n\n @OneToMany(type => MarketplaceProductVariationPrice, marketplaceProductVariationPrice => marketplaceProductVariationPrice.marketplaceProductVariation)\n marketplaceProductVariationPrices: MarketplaceProductVariationPrice[]\n\n @Column()\n variationId: string\n\n @Column({ nullable: true })\n variationSku: string\n\n @Column({ nullable: true })\n channelSku: string\n\n @Column({ nullable: true })\n name: string\n\n @Column({ nullable: true })\n description: string\n\n @Column('float', { nullable: true, transformer: roundTransformer })\n qty: number\n\n @Column('float', { nullable: true, transformer: roundTransformer })\n reserveQty: number\n\n @Column({ nullable: true })\n type: string\n\n @Column('float', { nullable: true, transformer: roundTransformer })\n mrpPrice: number\n\n @Column('float', { nullable: true, transformer: roundTransformer })\n costPrice: number\n\n @Column('float', { nullable: true, transformer: roundTransformer })\n sellPrice: number\n\n @Column({ nullable: true })\n discountId: string\n\n @Column({ nullable: true })\n status: string\n\n @Column({ nullable: true })\n marketplaceStatus: string\n\n @Column('float', { nullable: true, transformer: roundTransformer })\n afterTaxCostPrice: number\n\n @Column('float', { nullable: true, transformer: roundTransformer })\n afterTaxSalesPrice: number\n\n @Column({ nullable: true })\n inventoryPolicy: string\n\n @Column({ nullable: true })\n primaryUnit: string\n\n @Column('float', { nullable: true, transformer: roundTransformer })\n primaryUnitValue: number\n\n @Column({\n nullable: true\n })\n inventoryItemId: string\n\n @Column({\n nullable: true\n })\n locationId: string\n\n @CreateDateColumn()\n createdAt: Date\n\n @UpdateDateColumn()\n updatedAt: Date\n\n @ManyToOne(type => User, {\n nullable: true\n })\n creator: User\n\n @ManyToOne(type => User, {\n nullable: true\n })\n updater: User\n}\n"]}
|
|
@@ -38,7 +38,7 @@ tslib_1.__decorate([
|
|
|
38
38
|
tslib_1.__metadata("design:type", String)
|
|
39
39
|
], MarketplaceRefundOrderItem.prototype, "status", void 0);
|
|
40
40
|
tslib_1.__decorate([
|
|
41
|
-
(0, typeorm_1.Column)({ nullable: true, type: 'float' }),
|
|
41
|
+
(0, typeorm_1.Column)({ nullable: true, type: 'float', transformer: shell_1.roundTransformer }),
|
|
42
42
|
tslib_1.__metadata("design:type", Number)
|
|
43
43
|
], MarketplaceRefundOrderItem.prototype, "price", void 0);
|
|
44
44
|
tslib_1.__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"marketplace-refund-order-item.js","sourceRoot":"","sources":["../../server/entities/marketplace-refund-order-item.ts"],"names":[],"mappings":";;;;AAAA,
|
|
1
|
+
{"version":3,"file":"marketplace-refund-order-item.js","sourceRoot":"","sources":["../../server/entities/marketplace-refund-order-item.ts"],"names":[],"mappings":";;;;AAAA,qCAAsH;AAEtH,yDAAgD;AAChD,iDAAgE;AAChE,0CAAoD;AACpD,0CAAyD;AAOlD,IAAM,0BAA0B,GAAhC,MAAM,0BAA0B;CA2CtC,CAAA;AA1CC;IAAC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;sDACrB;AAEV;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;sCAClB,cAAM;0DAAA;AAEd;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,iCAAsB,CAAC;sCAClB,iCAAsB;0EAAA;AAE9C;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,sCAA2B,CAAC;sCAClB,sCAA2B;+EAAA;AAExD;IAAC,IAAA,gBAAM,GAAE;;wDACG;AAEZ;IAAC,IAAA,gBAAM,GAAE;;+DACU;AAEnB;IAAC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DACb;AAEd;IAAC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,wBAAgB,EAAE,CAAC;;yDAC5D;AAEb;IAAC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDAChB;AAEX;IAAC,IAAA,0BAAgB,GAAE;sCACR,IAAI;6DAAA;AAEf;IAAC,IAAA,0BAAgB,GAAE;sCACR,IAAI;6DAAA;AAEf;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE;QACvB,QAAQ,EAAE,IAAI;KACf,CAAC;sCACO,gBAAI;2DAAA;AAEb;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE;QACvB,QAAQ,EAAE,IAAI;KACf,CAAC;sCACO,gBAAI;2DAAA;AA1CF,0BAA0B;IANtC,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EACJ,oCAAoC,EACpC,CAAC,0BAAsD,EAAE,EAAE,CAAC,CAAC,0BAA0B,CAAC,MAAM,EAAE,0BAA0B,CAAC,IAAI,CAAC,EAChI,EAAE,MAAM,EAAE,IAAI,EAAE,CACjB;GACY,0BAA0B,CA2CtC;AA3CY,gEAA0B","sourcesContent":["import { Column, CreateDateColumn, Entity, Index, ManyToOne, PrimaryGeneratedColumn, UpdateDateColumn } from 'typeorm'\n\nimport { User } from '@things-factory/auth-base'\nimport { Domain, roundTransformer } from '@things-factory/shell'\nimport { MarketplaceRefundOrder } from '../entities'\nimport { MarketplaceProductVariation } from '../entities'\n@Entity()\n@Index(\n 'ix_marketplace-refund-order-item_0',\n (marketplaceRefundOrderItem: MarketplaceRefundOrderItem) => [marketplaceRefundOrderItem.domain, marketplaceRefundOrderItem.name],\n { unique: true }\n)\nexport class MarketplaceRefundOrderItem {\n @PrimaryGeneratedColumn('uuid')\n id: string\n\n @ManyToOne(type => Domain)\n domain: Domain\n\n @ManyToOne(type => MarketplaceRefundOrder)\n marketplaceRefundOrder: MarketplaceRefundOrder\n\n @ManyToOne(type => MarketplaceProductVariation)\n marketplaceProductVariation: MarketplaceProductVariation\n\n @Column()\n name: string\n\n @Column()\n orderItemId: string\n\n @Column({ nullable: true })\n status: string\n\n @Column({ nullable: true, type: 'float', transformer: roundTransformer })\n price: number\n\n @Column({ nullable: true })\n qty: string\n\n @CreateDateColumn()\n createdAt: Date\n\n @UpdateDateColumn()\n updatedAt: Date\n\n @ManyToOne(type => User, {\n nullable: true\n })\n creator: User\n\n @ManyToOne(type => User, {\n nullable: true\n })\n updater: User\n}\n"]}
|
|
@@ -33,7 +33,7 @@ tslib_1.__decorate([
|
|
|
33
33
|
tslib_1.__metadata("design:type", String)
|
|
34
34
|
], MarketplaceRefundOrder.prototype, "orderNo", void 0);
|
|
35
35
|
tslib_1.__decorate([
|
|
36
|
-
(0, typeorm_1.Column)({ nullable: true, type: 'float' }),
|
|
36
|
+
(0, typeorm_1.Column)({ nullable: true, type: 'float', transformer: shell_1.roundTransformer }),
|
|
37
37
|
tslib_1.__metadata("design:type", Number)
|
|
38
38
|
], MarketplaceRefundOrder.prototype, "amount", void 0);
|
|
39
39
|
tslib_1.__decorate([
|
|
@@ -62,7 +62,9 @@ tslib_1.__decorate([
|
|
|
62
62
|
], MarketplaceRefundOrder.prototype, "updater", void 0);
|
|
63
63
|
MarketplaceRefundOrder = tslib_1.__decorate([
|
|
64
64
|
(0, typeorm_1.Entity)(),
|
|
65
|
-
(0, typeorm_1.Index)('ix_marketplace-refund-order_0', (marketplaceRefundOrder) => [marketplaceRefundOrder.domain, marketplaceRefundOrder.name], {
|
|
65
|
+
(0, typeorm_1.Index)('ix_marketplace-refund-order_0', (marketplaceRefundOrder) => [marketplaceRefundOrder.domain, marketplaceRefundOrder.name], {
|
|
66
|
+
unique: true
|
|
67
|
+
})
|
|
66
68
|
], MarketplaceRefundOrder);
|
|
67
69
|
exports.MarketplaceRefundOrder = MarketplaceRefundOrder;
|
|
68
70
|
//# sourceMappingURL=marketplace-refund-order.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"marketplace-refund-order.js","sourceRoot":"","sources":["../../server/entities/marketplace-refund-order.ts"],"names":[],"mappings":";;;;AAAA,
|
|
1
|
+
{"version":3,"file":"marketplace-refund-order.js","sourceRoot":"","sources":["../../server/entities/marketplace-refund-order.ts"],"names":[],"mappings":";;;;AAAA,qCAAiI;AAEjI,yDAAgD;AAChD,0CAA0E;AAC1E,iDAAgE;AAMzD,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;CAwClC,CAAA;AAvCC;IAAC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;kDACrB;AAEV;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;sCAClB,cAAM;sDAAA;AAEd;IAAC,IAAA,gBAAM,GAAE;;oDACG;AAEZ;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,qCAA0B,EAAE,0BAA0B,CAAC,EAAE,CAAC,0BAA0B,CAAC,sBAAsB,CAAC;;2EACtE;AAEzD;IAAC,IAAA,gBAAM,GAAE;;+DACc;AAEvB;IAAC,IAAA,gBAAM,GAAE;;uDACM;AAEf;IAAC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,wBAAgB,EAAE,CAAC;;sDAC3D;AAEd;IAAC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDACb;AAEd;IAAC,IAAA,0BAAgB,GAAE;sCACR,IAAI;yDAAA;AAEf;IAAC,IAAA,0BAAgB,GAAE;sCACR,IAAI;yDAAA;AAEf;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE;QACvB,QAAQ,EAAE,IAAI;KACf,CAAC;sCACO,gBAAI;uDAAA;AAEb;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE;QACvB,QAAQ,EAAE,IAAI;KACf,CAAC;sCACO,gBAAI;uDAAA;AAvCF,sBAAsB;IAJlC,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EAAC,+BAA+B,EAAE,CAAC,sBAA8C,EAAE,EAAE,CAAC,CAAC,sBAAsB,CAAC,MAAM,EAAE,sBAAsB,CAAC,IAAI,CAAC,EAAE;QACxJ,MAAM,EAAE,IAAI;KACb,CAAC;GACW,sBAAsB,CAwClC;AAxCY,wDAAsB","sourcesContent":["import { Column, CreateDateColumn, Entity, Index, ManyToOne, OneToMany, PrimaryGeneratedColumn, UpdateDateColumn } from 'typeorm'\n\nimport { User } from '@things-factory/auth-base'\nimport { MarketplaceRefundOrderItem, MarketplaceOrder } from '../entities'\nimport { Domain, roundTransformer } from '@things-factory/shell'\n\n@Entity()\n@Index('ix_marketplace-refund-order_0', (marketplaceRefundOrder: MarketplaceRefundOrder) => [marketplaceRefundOrder.domain, marketplaceRefundOrder.name], {\n unique: true\n})\nexport class MarketplaceRefundOrder {\n @PrimaryGeneratedColumn('uuid')\n id: string\n\n @ManyToOne(type => Domain)\n domain: Domain\n\n @Column()\n name: string\n\n @OneToMany(type => MarketplaceRefundOrderItem, marketplaceRefundOrderItem => marketplaceRefundOrderItem.marketplaceRefundOrder)\n marketplaceRefundOrderItems: MarketplaceRefundOrderItem[]\n\n @Column()\n originalOrderNo: string\n\n @Column()\n orderNo: string\n\n @Column({ nullable: true, type: 'float', transformer: roundTransformer })\n amount: number\n\n @Column({ nullable: true })\n status: string\n\n @CreateDateColumn()\n createdAt: Date\n\n @UpdateDateColumn()\n updatedAt: Date\n\n @ManyToOne(type => User, {\n nullable: true\n })\n creator: User\n\n @ManyToOne(type => User, {\n nullable: true\n })\n updater: User\n}\n"]}
|