@things-factory/warehouse-base 6.2.113 → 6.2.114
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/warehouse-base",
|
|
3
|
-
"version": "6.2.
|
|
3
|
+
"version": "6.2.114",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
"migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@things-factory/biz-base": "^6.2.
|
|
28
|
-
"@things-factory/id-rule-base": "^6.2.
|
|
29
|
-
"@things-factory/integration-sellercraft": "^6.2.
|
|
30
|
-
"@things-factory/marketplace-base": "^6.2.
|
|
31
|
-
"@things-factory/product-base": "^6.2.
|
|
32
|
-
"@things-factory/setting-base": "^6.2.
|
|
27
|
+
"@things-factory/biz-base": "^6.2.114",
|
|
28
|
+
"@things-factory/id-rule-base": "^6.2.114",
|
|
29
|
+
"@things-factory/integration-sellercraft": "^6.2.114",
|
|
30
|
+
"@things-factory/marketplace-base": "^6.2.114",
|
|
31
|
+
"@things-factory/product-base": "^6.2.114",
|
|
32
|
+
"@things-factory/setting-base": "^6.2.114"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "6b471894613abd775ce70b23790f89a2505c825a"
|
|
35
35
|
}
|
|
@@ -154,6 +154,9 @@ export class InventoryPatch {
|
|
|
154
154
|
|
|
155
155
|
@Field({ nullable: true })
|
|
156
156
|
lot?: string
|
|
157
|
+
|
|
158
|
+
@Field(type => ObjectRef, { nullable: true })
|
|
159
|
+
originInventory?: ObjectRef
|
|
157
160
|
}
|
|
158
161
|
|
|
159
162
|
@InputType()
|
|
@@ -244,6 +247,9 @@ export class NewInventory {
|
|
|
244
247
|
|
|
245
248
|
@Field({ nullable: true })
|
|
246
249
|
lot?: string
|
|
250
|
+
|
|
251
|
+
@Field(type => ObjectRef, { nullable: true })
|
|
252
|
+
originInventory?: ObjectRef
|
|
247
253
|
}
|
|
248
254
|
|
|
249
255
|
@ObjectType()
|
|
@@ -1,15 +1,5 @@
|
|
|
1
1
|
import { Field, Float, ID, Int, ObjectType } from 'type-graphql'
|
|
2
|
-
import {
|
|
3
|
-
Column,
|
|
4
|
-
CreateDateColumn,
|
|
5
|
-
Entity,
|
|
6
|
-
Index,
|
|
7
|
-
ManyToOne,
|
|
8
|
-
OneToMany,
|
|
9
|
-
PrimaryGeneratedColumn,
|
|
10
|
-
RelationId,
|
|
11
|
-
UpdateDateColumn
|
|
12
|
-
} from 'typeorm'
|
|
2
|
+
import { Column, CreateDateColumn, Entity, Index, ManyToOne, OneToMany, PrimaryGeneratedColumn, RelationId, UpdateDateColumn } from 'typeorm'
|
|
13
3
|
|
|
14
4
|
import { User } from '@things-factory/auth-base'
|
|
15
5
|
import { Bizplace } from '@things-factory/biz-base'
|
|
@@ -336,6 +326,13 @@ export class Inventory {
|
|
|
336
326
|
@Field({ nullable: true })
|
|
337
327
|
lot?: string
|
|
338
328
|
|
|
329
|
+
@ManyToOne(type => Inventory, { nullable: true })
|
|
330
|
+
@Field(type => Inventory, { nullable: true })
|
|
331
|
+
originInventory?: Inventory
|
|
332
|
+
|
|
333
|
+
@RelationId((inventory: Inventory) => inventory.originInventory)
|
|
334
|
+
originInventoryId?: string
|
|
335
|
+
|
|
339
336
|
constructor(obj?) {
|
|
340
337
|
if (obj) {
|
|
341
338
|
this.id = obj.inventory_id
|