@things-factory/menu-base 8.0.0-beta.0 → 8.0.0-beta.2

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.
Files changed (33) hide show
  1. package/package.json +3 -3
  2. package/server/index.ts +0 -1
  3. package/server/service/index.ts +0 -37
  4. package/server/service/menu/index.ts +0 -6
  5. package/server/service/menu/menu-mutation.ts +0 -244
  6. package/server/service/menu/menu-query.ts +0 -249
  7. package/server/service/menu/menu-type.ts +0 -78
  8. package/server/service/menu/menu.ts +0 -183
  9. package/server/service/menu-button/index.ts +0 -6
  10. package/server/service/menu-button/menu-button-mutation.ts +0 -142
  11. package/server/service/menu-button/menu-button-query.ts +0 -59
  12. package/server/service/menu-button/menu-button-type.ts +0 -31
  13. package/server/service/menu-button/menu-button.ts +0 -86
  14. package/server/service/menu-column/index.ts +0 -6
  15. package/server/service/menu-column/menu-column-mutation.ts +0 -143
  16. package/server/service/menu-column/menu-column-query.ts +0 -59
  17. package/server/service/menu-column/menu-column-type.ts +0 -92
  18. package/server/service/menu-column/menu-column.ts +0 -200
  19. package/server/service/menu-detail/index.ts +0 -6
  20. package/server/service/menu-detail/menu-detail-mutation.ts +0 -142
  21. package/server/service/menu-detail/menu-detail-query.ts +0 -75
  22. package/server/service/menu-detail/menu-detail-type.ts +0 -46
  23. package/server/service/menu-detail/menu-detail.ts +0 -111
  24. package/server/service/menu-detail-button/index.ts +0 -6
  25. package/server/service/menu-detail-button/menu-detail-button-mutation.ts +0 -143
  26. package/server/service/menu-detail-button/menu-detail-button-query.ts +0 -61
  27. package/server/service/menu-detail-button/menu-detail-button-type.ts +0 -34
  28. package/server/service/menu-detail-button/menu-detail-button.ts +0 -86
  29. package/server/service/menu-detail-column/index.ts +0 -6
  30. package/server/service/menu-detail-column/menu-detail-column-mutation.ts +0 -145
  31. package/server/service/menu-detail-column/menu-detail-column-query.ts +0 -61
  32. package/server/service/menu-detail-column/menu-detail-column-type.ts +0 -92
  33. package/server/service/menu-detail-column/menu-detail-column.ts +0 -205
@@ -1,92 +0,0 @@
1
- import { Field, InputType, Int, ObjectType } from 'type-graphql'
2
-
3
- import { MenuDetailColumn } from './menu-detail-column'
4
-
5
- @InputType()
6
- export class NewMenuDetailColumn {
7
- @Field({ nullable: true }) menuDetail?: string
8
- @Field({ nullable: true }) name?: string
9
- @Field({ nullable: true }) colType?: string
10
-
11
- @Field({ nullable: true }) description?: string
12
- @Field(type => Int, { nullable: true }) rank?: number
13
- @Field({ nullable: true }) term?: string
14
- @Field(type => Int, { nullable: true }) colSize?: number
15
- @Field({ nullable: true }) nullable?: boolean
16
- @Field({ nullable: true }) refType?: string
17
- @Field({ nullable: true }) refName?: string
18
- @Field({ nullable: true }) refUrl?: string
19
- @Field({ nullable: true }) refParams?: string
20
- @Field({ nullable: true }) refRelated?: string
21
- @Field(type => Int, { nullable: true }) searchRank?: number
22
- @Field(type => Int, { nullable: true }) sortRank?: number
23
- @Field({ nullable: true }) reverseSort?: boolean
24
- @Field({ nullable: true }) virtualField?: boolean
25
- @Field({ nullable: true }) searchName?: string
26
- @Field({ nullable: true }) searchEditor?: string
27
- @Field({ nullable: true }) searchOper?: string
28
- @Field({ nullable: true }) searchInitVal?: string
29
- @Field(type => Int, { nullable: true }) gridRank?: number
30
- @Field({ nullable: true }) gridEditor?: string
31
- @Field({ nullable: true }) gridFormat?: string
32
- @Field({ nullable: true }) gridValidator?: string
33
- @Field(type => Int, { nullable: true }) gridWidth?: number
34
- @Field({ nullable: true }) gridAlign?: string
35
- @Field(type => Int, { nullable: true }) uniqRank?: number
36
- @Field({ nullable: true }) formEditor?: string
37
- @Field({ nullable: true }) formValidator?: string
38
- @Field({ nullable: true }) formFormat?: string
39
- @Field({ nullable: true }) defVal?: string
40
- @Field({ nullable: true }) rangeVal?: string
41
- @Field({ nullable: true }) ignoreOnSave?: boolean
42
- @Field({ nullable: true }) extField?: boolean
43
- }
44
-
45
- @InputType()
46
- export class MenuDetailColumnPatch {
47
- @Field() menuDetail: string
48
- @Field() name: string
49
- @Field() colType: string
50
-
51
- @Field({ nullable: true }) description?: string
52
- @Field(type => Int, { nullable: true }) rank?: number
53
- @Field({ nullable: true }) term?: string
54
- @Field(type => Int, { nullable: true }) colSize?: number
55
- @Field({ nullable: true }) nullable?: boolean
56
- @Field({ nullable: true }) refType?: string
57
- @Field({ nullable: true }) refName?: string
58
- @Field({ nullable: true }) refUrl?: string
59
- @Field({ nullable: true }) refParams?: string
60
- @Field({ nullable: true }) refRelated?: string
61
- @Field(type => Int, { nullable: true }) searchRank?: number
62
- @Field(type => Int, { nullable: true }) sortRank?: number
63
- @Field({ nullable: true }) reverseSort?: boolean
64
- @Field({ nullable: true }) virtualField?: boolean
65
- @Field({ nullable: true }) searchName?: string
66
- @Field({ nullable: true }) searchEditor?: string
67
- @Field({ nullable: true }) searchOper?: string
68
- @Field({ nullable: true }) searchInitVal?: string
69
- @Field(type => Int, { nullable: true }) gridRank?: number
70
- @Field({ nullable: true }) gridEditor?: string
71
- @Field({ nullable: true }) gridFormat?: string
72
- @Field({ nullable: true }) gridValidator?: string
73
- @Field(type => Int, { nullable: true }) gridWidth?: number
74
- @Field({ nullable: true }) gridAlign?: string
75
- @Field(type => Int, { nullable: true }) uniqRank?: number
76
- @Field({ nullable: true }) formEditor?: string
77
- @Field({ nullable: true }) formValidator?: string
78
- @Field({ nullable: true }) formFormat?: string
79
- @Field({ nullable: true }) defVal?: string
80
- @Field({ nullable: true }) rangeVal?: string
81
- @Field({ nullable: true }) ignoreOnSave?: boolean
82
- @Field({ nullable: true }) extField?: boolean
83
- }
84
-
85
- @ObjectType()
86
- export class MenuDetailColumnList {
87
- @Field(type => [MenuDetailColumn])
88
- items: MenuDetailColumn[]
89
-
90
- @Field(type => Int)
91
- total: number
92
- }
@@ -1,205 +0,0 @@
1
- import { Field, ID, ObjectType } 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 { MenuDetail } from '../menu-detail/menu-detail'
17
-
18
- @Entity()
19
- @Index(
20
- 'ix_menu_detail_col_0',
21
- (menuDetailColumn: MenuDetailColumn) => [menuDetailColumn.menuDetail, menuDetailColumn.name],
22
- { unique: true }
23
- )
24
- @Index('ix_menu_detail_col_1', (menuDetailColumn: MenuDetailColumn) => [
25
- menuDetailColumn.menuDetail,
26
- menuDetailColumn.rank
27
- ])
28
- @ObjectType({ description: 'Entity for MenuDetailColumn' })
29
- export class MenuDetailColumn {
30
- @PrimaryGeneratedColumn('uuid')
31
- @Field(type => ID)
32
- readonly id: string
33
-
34
- @ManyToOne(type => Domain)
35
- @Field(type => Domain)
36
- domain?: Domain
37
-
38
- @RelationId((menuDetailColumn: MenuDetailColumn) => menuDetailColumn.domain)
39
- domainId?: string
40
-
41
- @ManyToOne(type => MenuDetail, menuDetail => menuDetail.columns)
42
- @Field(type => MenuDetail, { nullable: true })
43
- menuDetail?: MenuDetail
44
-
45
- @RelationId((menuDetailColumn: MenuDetailColumn) => menuDetailColumn.menuDetail)
46
- menuDetailId?: string
47
-
48
- @Column()
49
- @Field({ nullable: true })
50
- name: string
51
-
52
- @Column({ nullable: true })
53
- @Field({ nullable: true })
54
- description?: string
55
-
56
- @Column('int', { nullable: true })
57
- @Field({ nullable: true })
58
- rank?: number
59
-
60
- @Column({ nullable: true })
61
- @Field({ nullable: true })
62
- term?: string
63
-
64
- @Column()
65
- @Field({ nullable: true })
66
- colType?: string
67
-
68
- @Column('int', { nullable: true })
69
- @Field({ nullable: true })
70
- colSize?: number
71
-
72
- @Column({ nullable: true })
73
- @Field({ nullable: true })
74
- nullable?: boolean
75
-
76
- @Column({ nullable: true })
77
- @Field({ nullable: true })
78
- refType?: string
79
-
80
- @Column({ nullable: true })
81
- @Field({ nullable: true })
82
- refName?: string
83
-
84
- @Column({ nullable: true })
85
- @Field({ nullable: true })
86
- refUrl?: string
87
-
88
- @Column({ nullable: true })
89
- @Field({ nullable: true })
90
- refParams?: string
91
-
92
- @Column({ nullable: true })
93
- @Field({ nullable: true })
94
- refRelated?: string
95
-
96
- @Column('int', { nullable: true })
97
- @Field({ nullable: true })
98
- searchRank?: number
99
-
100
- @Column('int', { nullable: true })
101
- @Field({ nullable: true })
102
- sortRank?: number
103
-
104
- @Column({ nullable: true })
105
- @Field({ nullable: true })
106
- reverseSort?: boolean
107
-
108
- @Column({ nullable: true })
109
- @Field({ nullable: true })
110
- virtualField?: boolean
111
-
112
- @Column({ nullable: true })
113
- @Field({ nullable: true })
114
- searchName?: string
115
-
116
- @Column({ nullable: true })
117
- @Field({ nullable: true })
118
- searchEditor?: string
119
-
120
- @Column({ nullable: true })
121
- @Field({ nullable: true })
122
- searchOper?: string
123
-
124
- @Column({ nullable: true })
125
- @Field({ nullable: true })
126
- searchInitVal?: string
127
-
128
- @Column('int', { nullable: true })
129
- @Field({ nullable: true })
130
- gridRank?: number
131
-
132
- @Column({ nullable: true })
133
- @Field({ nullable: true })
134
- gridEditor?: string
135
-
136
- @Column({ nullable: true })
137
- @Field({ nullable: true })
138
- gridFormat?: string
139
-
140
- @Column({ nullable: true })
141
- @Field({ nullable: true })
142
- gridValidator?: string
143
-
144
- @Column('int', { nullable: true })
145
- @Field({ nullable: true })
146
- gridWidth?: number
147
-
148
- @Column({ nullable: true })
149
- @Field({ nullable: true })
150
- gridAlign?: string
151
-
152
- @Column('int', { nullable: true })
153
- @Field({ nullable: true })
154
- uniqRank?: number
155
-
156
- @Column({ nullable: true })
157
- @Field({ nullable: true })
158
- formEditor?: string
159
-
160
- @Column({ nullable: true })
161
- @Field({ nullable: true })
162
- formValidator?: string
163
-
164
- @Column({ nullable: true })
165
- @Field({ nullable: true })
166
- formFormat?: string
167
-
168
- @Column({ nullable: true })
169
- @Field({ nullable: true })
170
- defVal?: string
171
-
172
- @Column({ nullable: true })
173
- @Field({ nullable: true })
174
- rangeVal?: string
175
-
176
- @Column({ nullable: true })
177
- @Field({ nullable: true })
178
- ignoreOnSave?: boolean
179
-
180
- @Column({ nullable: true })
181
- @Field({ nullable: true })
182
- extField?: boolean
183
-
184
- @CreateDateColumn()
185
- @Field({ nullable: true })
186
- createdAt?: Date
187
-
188
- @UpdateDateColumn()
189
- @Field({ nullable: true })
190
- updatedAt?: Date
191
-
192
- @ManyToOne(type => User, { nullable: true })
193
- @Field(type => User, { nullable: true })
194
- creator?: User
195
-
196
- @RelationId((menuDetailColumn: MenuDetailColumn) => menuDetailColumn.creator)
197
- creatorId?: string
198
-
199
- @ManyToOne(type => User, { nullable: true })
200
- @Field(type => User, { nullable: true })
201
- updater?: User
202
-
203
- @RelationId((menuDetailColumn: MenuDetailColumn) => menuDetailColumn.updater)
204
- updaterId?: string
205
- }