@things-factory/routing-base 8.0.5 → 9.0.0-beta.12

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.
@@ -1,117 +0,0 @@
1
- import { Field, ID, ObjectType, registerEnumType } from 'type-graphql'
2
- import {
3
- Column,
4
- CreateDateColumn,
5
- Entity,
6
- Index,
7
- ManyToOne,
8
- PrimaryGeneratedColumn,
9
- RelationId,
10
- UpdateDateColumn
11
- } from 'typeorm'
12
-
13
- import { User } from '@things-factory/auth-base'
14
- import { Domain } from '@things-factory/shell'
15
-
16
- import { Operation } from '../operation/operation'
17
- import { Routing } from '../routing/routing'
18
-
19
- export enum RoutingItemStatus {
20
- STATUS_A = 'STATUS_A',
21
- STATUS_B = 'STATUS_B'
22
- }
23
-
24
- registerEnumType(RoutingItemStatus, {
25
- name: 'RoutingItemStatus',
26
- description: 'state enumeration of a routingItem'
27
- })
28
-
29
- @Entity()
30
- @Index(
31
- 'ix_routing_item_0',
32
- (routingItem: RoutingItem) => [routingItem.rank, routingItem.domain, routingItem.routing, routingItem.operation],
33
- { unique: true }
34
- )
35
- @ObjectType({ description: 'Entity for RoutingItem' })
36
- export class RoutingItem {
37
- @PrimaryGeneratedColumn('uuid')
38
- @Field(type => ID, { nullable: false })
39
- readonly id: string
40
-
41
- @ManyToOne(type => Domain, { nullable: false })
42
- @Field({ nullable: false })
43
- domain: Domain
44
-
45
- @RelationId((routingItem: RoutingItem) => routingItem.domain)
46
- domainId: string
47
-
48
- @ManyToOne(type => Routing, { nullable: true })
49
- @Field({ nullable: true })
50
- routing: Routing
51
-
52
- @RelationId((routingItem: RoutingItem) => routingItem.routing)
53
- routingId: string
54
-
55
- @Column({
56
- nullable: false
57
- })
58
- @Field({ nullable: false })
59
- rank: string
60
-
61
- @ManyToOne(type => Operation, { nullable: true })
62
- @Field({ nullable: true })
63
- operation: Operation
64
-
65
- @RelationId((routingItem: RoutingItem) => routingItem.operation)
66
- operationId: string
67
-
68
- @Column({
69
- nullable: true
70
- })
71
- @Field({ nullable: true })
72
- startedTransaction?: string
73
-
74
- @Column({
75
- nullable: true
76
- })
77
- @Field({ nullable: true })
78
- isStock?: boolean
79
-
80
- @Column({
81
- nullable: true
82
- })
83
- @Field({ nullable: true })
84
- operatorViewId?: string
85
-
86
- @Column({
87
- nullable: true
88
- })
89
- @Field({ nullable: true })
90
- active?: boolean
91
-
92
- @CreateDateColumn()
93
- @Field({ nullable: true })
94
- createdAt?: Date
95
-
96
- @UpdateDateColumn()
97
- @Field({ nullable: true })
98
- updatedAt?: Date
99
-
100
- @ManyToOne(type => User, {
101
- nullable: true
102
- })
103
- @Field(type => User, { nullable: true })
104
- creator?: User
105
-
106
- @RelationId((routingItem: RoutingItem) => routingItem.creator)
107
- creatorId?: string
108
-
109
- @ManyToOne(type => User, {
110
- nullable: true
111
- })
112
- @Field(type => User, { nullable: true })
113
- updater?: User
114
-
115
- @RelationId((routingItem: RoutingItem) => routingItem.updater)
116
- updaterId?: string
117
- }
package/tsconfig.json DELETED
@@ -1,9 +0,0 @@
1
- {
2
- "extends": "../tsconfig-base.json",
3
- "compilerOptions": {
4
- "outDir": "./dist-server",
5
- "baseUrl": "./"
6
- },
7
- "include": ["./server/**/*"],
8
- "exclude": ["**/*.spec.ts"]
9
- }