@things-factory/print-base 6.1.118 → 6.1.122
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/print-base",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.122",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -27,5 +27,5 @@
|
|
|
27
27
|
"@things-factory/print-proxy-service": "^6.1.118",
|
|
28
28
|
"@things-factory/shell": "^6.1.118"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "01735af77d98fa26fbcc312e9b982eee1638114d"
|
|
31
31
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
import {
|
|
3
2
|
CreateDateColumn,
|
|
4
3
|
UpdateDateColumn,
|
|
@@ -15,93 +14,99 @@ import { User } from '@things-factory/auth-base'
|
|
|
15
14
|
import { Domain } from '@things-factory/shell'
|
|
16
15
|
|
|
17
16
|
@Entity('printer_devices')
|
|
18
|
-
@Index('ix_printer_device_0', (printerDevice: PrinterDevice) => [printerDevice.domain,printerDevice.name], {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
@Index('
|
|
22
|
-
@Index('
|
|
23
|
-
@Index('
|
|
17
|
+
@Index('ix_printer_device_0', (printerDevice: PrinterDevice) => [printerDevice.domain, printerDevice.name], {
|
|
18
|
+
unique: true
|
|
19
|
+
})
|
|
20
|
+
@Index('ix_printer_device_1', (printerDevice: PrinterDevice) => [printerDevice.domain, printerDevice.type])
|
|
21
|
+
@Index('ix_printer_device_2', (printerDevice: PrinterDevice) => [printerDevice.domain, printerDevice.jobType])
|
|
22
|
+
@Index('ix_printer_device_3', (printerDevice: PrinterDevice) => [printerDevice.domain, printerDevice.status])
|
|
23
|
+
@Index('ix_printer_device_4', (printerDevice: PrinterDevice) => [printerDevice.domain, printerDevice.activeFlag])
|
|
24
|
+
@Index('ix_printer_device_5', (printerDevice: PrinterDevice) => [
|
|
25
|
+
printerDevice.domain,
|
|
26
|
+
printerDevice.printerIp,
|
|
27
|
+
printerDevice.printerDriver
|
|
28
|
+
])
|
|
24
29
|
@ObjectType({ description: 'Entity for PrinterDevice' })
|
|
25
30
|
export class PrinterDevice {
|
|
26
31
|
@PrimaryGeneratedColumn('uuid')
|
|
27
32
|
@Field(type => ID)
|
|
28
33
|
readonly id: string
|
|
29
34
|
|
|
30
|
-
@Column({ name:'name', nullable:false })
|
|
31
|
-
@Field(
|
|
35
|
+
@Column({ name: 'name', nullable: false })
|
|
36
|
+
@Field({ nullable: false })
|
|
32
37
|
name: string
|
|
33
38
|
|
|
34
|
-
@Column({ name:'description', nullable:false })
|
|
35
|
-
@Field(
|
|
39
|
+
@Column({ name: 'description', nullable: false })
|
|
40
|
+
@Field({ nullable: false })
|
|
36
41
|
description: string
|
|
37
42
|
|
|
38
|
-
@Column({ name:'type', nullable:false })
|
|
39
|
-
@Field(
|
|
43
|
+
@Column({ name: 'type', nullable: false })
|
|
44
|
+
@Field({ nullable: false })
|
|
40
45
|
type?: string
|
|
41
46
|
|
|
42
|
-
@Column({ name:'job_type', nullable:true })
|
|
43
|
-
@Field({ nullable:true })
|
|
47
|
+
@Column({ name: 'job_type', nullable: true })
|
|
48
|
+
@Field({ nullable: true })
|
|
44
49
|
jobType?: string
|
|
45
50
|
|
|
46
|
-
@Column({ name:'job_class', nullable:true })
|
|
47
|
-
@Field({ nullable:true })
|
|
51
|
+
@Column({ name: 'job_class', nullable: true })
|
|
52
|
+
@Field({ nullable: true })
|
|
48
53
|
jobClass?: string
|
|
49
54
|
|
|
50
|
-
@Column({ name:'job_category', nullable:true })
|
|
51
|
-
@Field(
|
|
55
|
+
@Column({ name: 'job_category', nullable: true })
|
|
56
|
+
@Field({ nullable: true })
|
|
52
57
|
jobCategory?: string
|
|
53
58
|
|
|
54
|
-
@Column({ name:'printer_ip', nullable:true })
|
|
55
|
-
@Field(
|
|
59
|
+
@Column({ name: 'printer_ip', nullable: true })
|
|
60
|
+
@Field({ nullable: true })
|
|
56
61
|
printerIp?: string
|
|
57
62
|
|
|
58
|
-
@Column({ name:'printer_driver', nullable:true })
|
|
59
|
-
@Field({ nullable:true })
|
|
63
|
+
@Column({ name: 'printer_driver', nullable: true })
|
|
64
|
+
@Field({ nullable: true })
|
|
60
65
|
printerDriver?: string
|
|
61
66
|
|
|
62
|
-
@Column({ name:'printer_port', type:'integer', nullable:true
|
|
63
|
-
@Field(type =>Int, { nullable:true })
|
|
67
|
+
@Column({ name: 'printer_port', type: 'integer', nullable: true })
|
|
68
|
+
@Field(type => Int, { nullable: true })
|
|
64
69
|
printerPort?: number
|
|
65
70
|
|
|
66
|
-
@Column({ name:'service_url', nullable:true })
|
|
67
|
-
@Field({ nullable:true })
|
|
71
|
+
@Column({ name: 'service_url', nullable: true })
|
|
72
|
+
@Field({ nullable: true })
|
|
68
73
|
serviceUrl?: string
|
|
69
74
|
|
|
70
|
-
@Column({ name:'dpi', type:'integer', nullable:true
|
|
71
|
-
@Field(type =>Int, { nullable:true })
|
|
75
|
+
@Column({ name: 'dpi', type: 'integer', nullable: true })
|
|
76
|
+
@Field(type => Int, { nullable: true })
|
|
72
77
|
dpi?: number
|
|
73
78
|
|
|
74
|
-
@Column({ name:'status', nullable:true })
|
|
75
|
-
@Field({ nullable:true })
|
|
79
|
+
@Column({ name: 'status', nullable: true })
|
|
80
|
+
@Field({ nullable: true })
|
|
76
81
|
status?: string
|
|
77
82
|
|
|
78
|
-
@Column({ name:'default_flag',
|
|
79
|
-
@Field({ nullable:true })
|
|
83
|
+
@Column({ name: 'default_flag', nullable: true, default: false })
|
|
84
|
+
@Field({ nullable: true })
|
|
80
85
|
defaultFlag?: boolean
|
|
81
86
|
|
|
82
|
-
@Column({ name:'active_flag',
|
|
83
|
-
@Field({ nullable:true })
|
|
87
|
+
@Column({ name: 'active_flag', nullable: true, default: false })
|
|
88
|
+
@Field({ nullable: true })
|
|
84
89
|
activeFlag?: boolean
|
|
85
90
|
|
|
86
|
-
@Column({ name:'note', nullable:true })
|
|
87
|
-
@Field({ nullable:true })
|
|
91
|
+
@Column({ name: 'note', nullable: true })
|
|
92
|
+
@Field({ nullable: true })
|
|
88
93
|
note?: string
|
|
89
94
|
|
|
90
|
-
@ManyToOne(type => Domain, {createForeignKeyConstraints: false, nullable: false})
|
|
95
|
+
@ManyToOne(type => Domain, { createForeignKeyConstraints: false, nullable: false })
|
|
91
96
|
@Field({ nullable: false })
|
|
92
97
|
domain: Domain
|
|
93
98
|
|
|
94
99
|
@RelationId((printerDevice: PrinterDevice) => printerDevice.domain)
|
|
95
100
|
domainId: string
|
|
96
101
|
|
|
97
|
-
@ManyToOne(type => User, {createForeignKeyConstraints: false, nullable: true})
|
|
102
|
+
@ManyToOne(type => User, { createForeignKeyConstraints: false, nullable: true })
|
|
98
103
|
@Field({ nullable: true })
|
|
99
104
|
creator?: User
|
|
100
105
|
|
|
101
106
|
@RelationId((printerDevice: PrinterDevice) => printerDevice.creator)
|
|
102
107
|
creatorId?: string
|
|
103
108
|
|
|
104
|
-
@ManyToOne(type => User, {createForeignKeyConstraints: false, nullable: true})
|
|
109
|
+
@ManyToOne(type => User, { createForeignKeyConstraints: false, nullable: true })
|
|
105
110
|
@Field({ nullable: true })
|
|
106
111
|
updater?: User
|
|
107
112
|
|