@things-factory/marketplace-base 4.3.79-alpha.0 → 4.3.79-alpha.1
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.
|
@@ -8,10 +8,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
-
var _a, _b, _c, _d;
|
|
11
|
+
var _a, _b, _c, _d, _e;
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
exports.MarketplaceOrderShippingItem = void 0;
|
|
14
14
|
const typeorm_1 = require("typeorm");
|
|
15
|
+
const type_graphql_1 = require("type-graphql");
|
|
15
16
|
const auth_base_1 = require("@things-factory/auth-base");
|
|
16
17
|
const product_base_1 = require("@things-factory/product-base");
|
|
17
18
|
const shell_1 = require("@things-factory/shell");
|
|
@@ -38,6 +39,11 @@ __decorate([
|
|
|
38
39
|
(0, typeorm_1.ManyToOne)(type => product_base_1.Product, { nullable: true }),
|
|
39
40
|
__metadata("design:type", typeof (_b = typeof product_base_1.Product !== "undefined" && product_base_1.Product) === "function" ? _b : Object)
|
|
40
41
|
], MarketplaceOrderShippingItem.prototype, "product", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.ManyToOne)(type => product_base_1.ProductDetail, { nullable: true }),
|
|
44
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
45
|
+
__metadata("design:type", typeof (_c = typeof product_base_1.ProductDetail !== "undefined" && product_base_1.ProductDetail) === "function" ? _c : Object)
|
|
46
|
+
], MarketplaceOrderShippingItem.prototype, "productDetail", void 0);
|
|
41
47
|
__decorate([
|
|
42
48
|
(0, typeorm_1.Column)(),
|
|
43
49
|
__metadata("design:type", String)
|
|
@@ -58,13 +64,13 @@ __decorate([
|
|
|
58
64
|
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, {
|
|
59
65
|
nullable: true
|
|
60
66
|
}),
|
|
61
|
-
__metadata("design:type", typeof (
|
|
67
|
+
__metadata("design:type", typeof (_d = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _d : Object)
|
|
62
68
|
], MarketplaceOrderShippingItem.prototype, "creator", void 0);
|
|
63
69
|
__decorate([
|
|
64
70
|
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, {
|
|
65
71
|
nullable: true
|
|
66
72
|
}),
|
|
67
|
-
__metadata("design:type", typeof (
|
|
73
|
+
__metadata("design:type", typeof (_e = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _e : Object)
|
|
68
74
|
], MarketplaceOrderShippingItem.prototype, "updater", void 0);
|
|
69
75
|
MarketplaceOrderShippingItem = __decorate([
|
|
70
76
|
(0, typeorm_1.Entity)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"marketplace-order-shipping-item.js","sourceRoot":"","sources":["../../server/entities/marketplace-order-shipping-item.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qCAAsH;
|
|
1
|
+
{"version":3,"file":"marketplace-order-shipping-item.js","sourceRoot":"","sources":["../../server/entities/marketplace-order-shipping-item.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qCAAsH;AACtH,+CAAoC;AACpC,yDAAgD;AAChD,+DAAqE;AACrE,iDAA8C;AAE9C,0CAA4E;AAW5E,IAAa,4BAA4B,GAAzC,MAAa,4BAA4B;CAyCxC,CAAA;AAvCC;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;wDACrB;AAGV;IADC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;kDAClB,cAAM,oBAAN,cAAM;4DAAA;AAGd;IADC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,+BAAoB,CAAC;8BAClB,+BAAoB;0EAAA;AAG1C;IADC,IAAA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@@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/marketplace-base",
|
|
3
|
-
"version": "4.3.79-alpha.
|
|
3
|
+
"version": "4.3.79-alpha.1",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
"@things-factory/product-base": "^4.3.79-alpha.0",
|
|
30
30
|
"@things-factory/shell": "^4.3.79-alpha.0"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "781aa433ce81cb1cd08d6a3c4abb2934f0a192c1"
|
|
33
33
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Column, CreateDateColumn, Entity, Index, ManyToOne, PrimaryGeneratedColumn, UpdateDateColumn } from 'typeorm'
|
|
2
|
-
|
|
2
|
+
import { Field } from 'type-graphql'
|
|
3
3
|
import { User } from '@things-factory/auth-base'
|
|
4
|
-
import { Product } from '@things-factory/product-base'
|
|
4
|
+
import { Product, ProductDetail } from '@things-factory/product-base'
|
|
5
5
|
import { Domain } from '@things-factory/shell'
|
|
6
6
|
|
|
7
7
|
import { MarketplaceOrderItem, MarketplaceOrderShipping } from '../entities'
|
|
@@ -31,6 +31,10 @@ export class MarketplaceOrderShippingItem {
|
|
|
31
31
|
@ManyToOne(type => Product, { nullable: true })
|
|
32
32
|
product: Product
|
|
33
33
|
|
|
34
|
+
@ManyToOne(type => ProductDetail, { nullable: true })
|
|
35
|
+
@Field({ nullable: true })
|
|
36
|
+
productDetail: ProductDetail
|
|
37
|
+
|
|
34
38
|
@Column()
|
|
35
39
|
name: string
|
|
36
40
|
|