@admc-go-th/admc-library 1.0.129 → 1.0.130
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/appQueue-QJ9ECucz.d.ts +158 -0
- package/databases/schema/appQueue.ts +75 -1
- package/databases/schema/appReportCorruption.ts +1 -1
- package/databases/schema/files.ts +7 -0
- package/databases/schema/mdBanner.ts +8 -0
- package/databases/schema/mdEbookGroup.ts +8 -0
- package/databases/schema/msConsultChannels.ts +14 -1
- package/databases/schema/msWebsite.ts +7 -1
- package/databases/tables/appQueue.d.ts +2 -62
- package/databases/tables/appQueue.js +365 -53
- package/databases/tables/appReportCorruption.js +1 -1
- package/databases/tables/appReportCorruptionTransaction.js +1 -1
- package/databases/tables/files.d.ts +1 -1
- package/databases/tables/files.js +13 -0
- package/databases/tables/index.d.ts +3 -5
- package/databases/tables/index.js +2681 -2579
- package/databases/tables/mdBanner.d.ts +1 -1
- package/databases/tables/mdBanner.js +13 -0
- package/databases/tables/mdEbook.d.ts +1 -1
- package/databases/tables/mdEbook.js +7 -0
- package/databases/tables/mdEbookGroup.d.ts +1 -1
- package/databases/tables/mdEbookGroup.js +7 -0
- package/databases/tables/msConsultChannels.d.ts +2 -24
- package/databases/tables/msConsultChannels.js +455 -13
- package/databases/tables/msWebsite.d.ts +2 -56
- package/databases/tables/msWebsite.js +386 -46
- package/{files-Dp2zDQAj.d.ts → files-CXIMD4Bk.d.ts} +4 -0
- package/{mdEbook-yzNQjFhx.d.ts → mdEbook-DVvRlFVe.d.ts} +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { Model } from 'sequelize-typescript';
|
|
2
|
+
|
|
3
|
+
interface msWebsiteAttributes {
|
|
4
|
+
id?: number;
|
|
5
|
+
code?: string;
|
|
6
|
+
uuid?: string;
|
|
7
|
+
name?: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
url?: string;
|
|
10
|
+
layout?: number;
|
|
11
|
+
type?: number;
|
|
12
|
+
status?: number;
|
|
13
|
+
region?: string;
|
|
14
|
+
sort?: number;
|
|
15
|
+
image?: string;
|
|
16
|
+
address?: string;
|
|
17
|
+
phone?: string;
|
|
18
|
+
fax?: string;
|
|
19
|
+
office?: string;
|
|
20
|
+
opened?: string;
|
|
21
|
+
latitude?: string;
|
|
22
|
+
longitude?: string;
|
|
23
|
+
info?: object;
|
|
24
|
+
createdBy?: string;
|
|
25
|
+
createdDate?: Date;
|
|
26
|
+
updatedBy?: string;
|
|
27
|
+
updatedDate?: Date;
|
|
28
|
+
}
|
|
29
|
+
declare class msWebsite extends Model<msWebsiteAttributes, msWebsiteAttributes> implements msWebsiteAttributes {
|
|
30
|
+
id?: number;
|
|
31
|
+
code?: string;
|
|
32
|
+
uuid?: string;
|
|
33
|
+
name?: string;
|
|
34
|
+
description?: string;
|
|
35
|
+
url?: string;
|
|
36
|
+
layout?: number;
|
|
37
|
+
type?: number;
|
|
38
|
+
status?: number;
|
|
39
|
+
region?: string;
|
|
40
|
+
sort?: number;
|
|
41
|
+
image?: string;
|
|
42
|
+
address?: string;
|
|
43
|
+
phone?: string;
|
|
44
|
+
fax?: string;
|
|
45
|
+
office?: string;
|
|
46
|
+
opened?: string;
|
|
47
|
+
latitude?: string;
|
|
48
|
+
longitude?: string;
|
|
49
|
+
info?: object;
|
|
50
|
+
createdBy?: string;
|
|
51
|
+
createdDate?: Date;
|
|
52
|
+
updatedBy?: string;
|
|
53
|
+
updatedDate?: Date;
|
|
54
|
+
appQueues?: appQueue[];
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
interface msConsultChannelsAttributes {
|
|
58
|
+
id?: number;
|
|
59
|
+
name?: string;
|
|
60
|
+
sort?: number;
|
|
61
|
+
message?: string;
|
|
62
|
+
status?: number;
|
|
63
|
+
createdBy?: string;
|
|
64
|
+
createdDate?: Date;
|
|
65
|
+
updatedBy?: string;
|
|
66
|
+
updatedDate?: Date;
|
|
67
|
+
}
|
|
68
|
+
declare class msConsultChannels extends Model<msConsultChannelsAttributes, msConsultChannelsAttributes> implements msConsultChannelsAttributes {
|
|
69
|
+
id?: number;
|
|
70
|
+
name?: string;
|
|
71
|
+
sort?: number;
|
|
72
|
+
message?: string;
|
|
73
|
+
status?: number;
|
|
74
|
+
createdBy?: string;
|
|
75
|
+
createdDate?: Date;
|
|
76
|
+
updatedBy?: string;
|
|
77
|
+
updatedDate?: Date;
|
|
78
|
+
appQueues?: appQueue[];
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
interface appQueueAttributes {
|
|
82
|
+
id?: number;
|
|
83
|
+
uuid?: string;
|
|
84
|
+
code?: string;
|
|
85
|
+
siteId?: number;
|
|
86
|
+
requestDate?: string;
|
|
87
|
+
requestFrom?: string;
|
|
88
|
+
requestTo?: string;
|
|
89
|
+
approveDate?: string;
|
|
90
|
+
timeSlot?: number;
|
|
91
|
+
fullName?: string;
|
|
92
|
+
residence?: number;
|
|
93
|
+
occupation?: number;
|
|
94
|
+
phoneNumber?: string;
|
|
95
|
+
email?: string;
|
|
96
|
+
lineId?: string;
|
|
97
|
+
consultChannel?: number;
|
|
98
|
+
consultTopic?: number;
|
|
99
|
+
consultTopicOther?: string;
|
|
100
|
+
blackCaseNumber?: string;
|
|
101
|
+
redCaseNumber?: string;
|
|
102
|
+
issues?: string;
|
|
103
|
+
attachments?: object;
|
|
104
|
+
ipAddress?: string;
|
|
105
|
+
staffId?: number;
|
|
106
|
+
status?: number;
|
|
107
|
+
caseTypeId?: number;
|
|
108
|
+
caseSectionId?: number;
|
|
109
|
+
caseSectionOther?: string;
|
|
110
|
+
caseJurisdiction?: number;
|
|
111
|
+
staffIssues?: string;
|
|
112
|
+
staffNote?: string;
|
|
113
|
+
createdBy?: string;
|
|
114
|
+
createdDate?: Date;
|
|
115
|
+
updatedBy?: string;
|
|
116
|
+
updatedDate?: Date;
|
|
117
|
+
}
|
|
118
|
+
declare class appQueue extends Model<appQueueAttributes, appQueueAttributes> implements appQueueAttributes {
|
|
119
|
+
id?: number;
|
|
120
|
+
uuid?: string;
|
|
121
|
+
code?: string;
|
|
122
|
+
siteId?: number;
|
|
123
|
+
requestDate?: string;
|
|
124
|
+
requestFrom?: string;
|
|
125
|
+
requestTo?: string;
|
|
126
|
+
approveDate?: string;
|
|
127
|
+
timeSlot?: number;
|
|
128
|
+
fullName?: string;
|
|
129
|
+
residence?: number;
|
|
130
|
+
occupation?: number;
|
|
131
|
+
phoneNumber?: string;
|
|
132
|
+
email?: string;
|
|
133
|
+
lineId?: string;
|
|
134
|
+
consultChannel?: number;
|
|
135
|
+
consultTopic?: number;
|
|
136
|
+
consultTopicOther?: string;
|
|
137
|
+
blackCaseNumber?: string;
|
|
138
|
+
redCaseNumber?: string;
|
|
139
|
+
issues?: string;
|
|
140
|
+
attachments?: object;
|
|
141
|
+
ipAddress?: string;
|
|
142
|
+
staffId?: number;
|
|
143
|
+
status?: number;
|
|
144
|
+
caseTypeId?: number;
|
|
145
|
+
caseSectionId?: number;
|
|
146
|
+
caseSectionOther?: string;
|
|
147
|
+
caseJurisdiction?: number;
|
|
148
|
+
staffIssues?: string;
|
|
149
|
+
staffNote?: string;
|
|
150
|
+
createdBy?: string;
|
|
151
|
+
createdDate?: Date;
|
|
152
|
+
updatedBy?: string;
|
|
153
|
+
updatedDate?: Date;
|
|
154
|
+
msWebsite?: msWebsite;
|
|
155
|
+
msConsultChannel?: msConsultChannels;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export { type appQueueAttributes as a, appQueue as b, msConsultChannels as c, type msWebsiteAttributes as d, msWebsite as e, type msConsultChannelsAttributes as m };
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
|
-
Model, Table, Column, DataType, Index, Sequelize, ForeignKey
|
|
2
|
+
Model, Table, Column, DataType, Index, Sequelize, ForeignKey, BelongsTo
|
|
3
3
|
} from "sequelize-typescript";
|
|
4
|
+
import { msWebsite } from "./msWebsite";
|
|
5
|
+
import { msConsultChannels } from "./msConsultChannels";
|
|
4
6
|
|
|
5
7
|
export interface appQueueAttributes {
|
|
6
8
|
id?: number;
|
|
@@ -8,6 +10,8 @@ export interface appQueueAttributes {
|
|
|
8
10
|
code?: string;
|
|
9
11
|
siteId?: number;
|
|
10
12
|
requestDate?: string;
|
|
13
|
+
requestFrom?: string;
|
|
14
|
+
requestTo?: string;
|
|
11
15
|
approveDate?: string;
|
|
12
16
|
timeSlot?: number;
|
|
13
17
|
fullName?: string;
|
|
@@ -26,6 +30,12 @@ export interface appQueueAttributes {
|
|
|
26
30
|
ipAddress?: string;
|
|
27
31
|
staffId?: number;
|
|
28
32
|
status?: number;
|
|
33
|
+
caseTypeId?: number;
|
|
34
|
+
caseSectionId?: number;
|
|
35
|
+
caseSectionOther?: string;
|
|
36
|
+
caseJurisdiction?: number;
|
|
37
|
+
staffIssues?: string;
|
|
38
|
+
staffNote?: string;
|
|
29
39
|
createdBy?: string;
|
|
30
40
|
createdDate?: Date;
|
|
31
41
|
updatedBy?: string;
|
|
@@ -57,6 +67,7 @@ export class appQueue extends Model<appQueueAttributes, appQueueAttributes> impl
|
|
|
57
67
|
})
|
|
58
68
|
declare code?: string;
|
|
59
69
|
|
|
70
|
+
@ForeignKey(() => msWebsite)
|
|
60
71
|
@Column({
|
|
61
72
|
field: "site_id",
|
|
62
73
|
allowNull: true,
|
|
@@ -71,6 +82,20 @@ export class appQueue extends Model<appQueueAttributes, appQueueAttributes> impl
|
|
|
71
82
|
})
|
|
72
83
|
declare requestDate?: string;
|
|
73
84
|
|
|
85
|
+
@Column({
|
|
86
|
+
field: "request_from",
|
|
87
|
+
allowNull: true,
|
|
88
|
+
type: DataType.TIME
|
|
89
|
+
})
|
|
90
|
+
declare requestFrom?: string;
|
|
91
|
+
|
|
92
|
+
@Column({
|
|
93
|
+
field: "request_to",
|
|
94
|
+
allowNull: true,
|
|
95
|
+
type: DataType.TIME
|
|
96
|
+
})
|
|
97
|
+
declare requestTo?: string;
|
|
98
|
+
|
|
74
99
|
@Column({
|
|
75
100
|
field: "approve_date",
|
|
76
101
|
allowNull: true,
|
|
@@ -124,6 +149,7 @@ export class appQueue extends Model<appQueueAttributes, appQueueAttributes> impl
|
|
|
124
149
|
})
|
|
125
150
|
declare lineId?: string;
|
|
126
151
|
|
|
152
|
+
@ForeignKey(() => msConsultChannels)
|
|
127
153
|
@Column({
|
|
128
154
|
field: "consult_channel",
|
|
129
155
|
allowNull: true,
|
|
@@ -191,6 +217,48 @@ export class appQueue extends Model<appQueueAttributes, appQueueAttributes> impl
|
|
|
191
217
|
})
|
|
192
218
|
declare status?: number;
|
|
193
219
|
|
|
220
|
+
@Column({
|
|
221
|
+
field: "case_type_id",
|
|
222
|
+
allowNull: true,
|
|
223
|
+
type: DataType.INTEGER
|
|
224
|
+
})
|
|
225
|
+
declare caseTypeId?: number;
|
|
226
|
+
|
|
227
|
+
@Column({
|
|
228
|
+
field: "case_section_id",
|
|
229
|
+
allowNull: true,
|
|
230
|
+
type: DataType.INTEGER
|
|
231
|
+
})
|
|
232
|
+
declare caseSectionId?: number;
|
|
233
|
+
|
|
234
|
+
@Column({
|
|
235
|
+
field: "case_section_other",
|
|
236
|
+
allowNull: true,
|
|
237
|
+
type: DataType.STRING(255)
|
|
238
|
+
})
|
|
239
|
+
declare caseSectionOther?: string;
|
|
240
|
+
|
|
241
|
+
@Column({
|
|
242
|
+
field: "case_jurisdiction",
|
|
243
|
+
allowNull: true,
|
|
244
|
+
type: DataType.INTEGER
|
|
245
|
+
})
|
|
246
|
+
declare caseJurisdiction?: number;
|
|
247
|
+
|
|
248
|
+
@Column({
|
|
249
|
+
field: "staff_issues",
|
|
250
|
+
allowNull: true,
|
|
251
|
+
type: DataType.STRING
|
|
252
|
+
})
|
|
253
|
+
declare staffIssues?: string;
|
|
254
|
+
|
|
255
|
+
@Column({
|
|
256
|
+
field: "staff_note",
|
|
257
|
+
allowNull: true,
|
|
258
|
+
type: DataType.STRING
|
|
259
|
+
})
|
|
260
|
+
declare staffNote?: string;
|
|
261
|
+
|
|
194
262
|
@Column({
|
|
195
263
|
field: "created_by",
|
|
196
264
|
allowNull: true,
|
|
@@ -219,4 +287,10 @@ export class appQueue extends Model<appQueueAttributes, appQueueAttributes> impl
|
|
|
219
287
|
})
|
|
220
288
|
declare updatedDate?: Date;
|
|
221
289
|
|
|
290
|
+
@BelongsTo(() => msWebsite)
|
|
291
|
+
declare msWebsite?: msWebsite;
|
|
292
|
+
|
|
293
|
+
@BelongsTo(() => msConsultChannels)
|
|
294
|
+
declare msConsultChannel?: msConsultChannels;
|
|
295
|
+
|
|
222
296
|
}
|
|
@@ -21,6 +21,7 @@ export interface filesAttributes {
|
|
|
21
21
|
updatedBy?: string;
|
|
22
22
|
updatedDate?: Date;
|
|
23
23
|
refId?: number;
|
|
24
|
+
sequence?: number;
|
|
24
25
|
}
|
|
25
26
|
|
|
26
27
|
@Table({
|
|
@@ -141,6 +142,12 @@ export class files extends Model<filesAttributes, filesAttributes> implements fi
|
|
|
141
142
|
})
|
|
142
143
|
declare refId?: number;
|
|
143
144
|
|
|
145
|
+
@Column({
|
|
146
|
+
allowNull: true,
|
|
147
|
+
type: DataType.INTEGER
|
|
148
|
+
})
|
|
149
|
+
declare sequence?: number;
|
|
150
|
+
|
|
144
151
|
@HasOne(() => mdBanner, {
|
|
145
152
|
sourceKey: "uuid"
|
|
146
153
|
})
|
|
@@ -6,6 +6,7 @@ import { files } from "./files";
|
|
|
6
6
|
export interface mdBannerAttributes {
|
|
7
7
|
id?: number;
|
|
8
8
|
uuid?: string;
|
|
9
|
+
groupId?: number;
|
|
9
10
|
keyName?: string;
|
|
10
11
|
title?: string;
|
|
11
12
|
description?: string;
|
|
@@ -46,6 +47,13 @@ export class mdBanner extends Model<mdBannerAttributes, mdBannerAttributes> impl
|
|
|
46
47
|
})
|
|
47
48
|
declare uuid?: string;
|
|
48
49
|
|
|
50
|
+
@Column({
|
|
51
|
+
field: "group_id",
|
|
52
|
+
allowNull: true,
|
|
53
|
+
type: DataType.INTEGER
|
|
54
|
+
})
|
|
55
|
+
declare groupId?: number;
|
|
56
|
+
|
|
49
57
|
@Column({
|
|
50
58
|
field: "key_name",
|
|
51
59
|
allowNull: true,
|
|
@@ -8,6 +8,7 @@ export interface mdEbookGroupAttributes {
|
|
|
8
8
|
uuid?: string;
|
|
9
9
|
keyName?: string;
|
|
10
10
|
userId?: number;
|
|
11
|
+
typeId?: number;
|
|
11
12
|
name: string;
|
|
12
13
|
description?: string;
|
|
13
14
|
sort?: number;
|
|
@@ -51,6 +52,13 @@ export class mdEbookGroup extends Model<mdEbookGroupAttributes, mdEbookGroupAttr
|
|
|
51
52
|
})
|
|
52
53
|
declare userId?: number;
|
|
53
54
|
|
|
55
|
+
@Column({
|
|
56
|
+
field: "type_id",
|
|
57
|
+
allowNull: true,
|
|
58
|
+
type: DataType.INTEGER
|
|
59
|
+
})
|
|
60
|
+
declare typeId?: number;
|
|
61
|
+
|
|
54
62
|
@Column({
|
|
55
63
|
type: DataType.STRING(255)
|
|
56
64
|
})
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
|
-
Model, Table, Column, DataType, Index, Sequelize, ForeignKey
|
|
2
|
+
Model, Table, Column, DataType, Index, Sequelize, ForeignKey, HasMany
|
|
3
3
|
} from "sequelize-typescript";
|
|
4
|
+
import { appQueue } from "./appQueue";
|
|
4
5
|
|
|
5
6
|
export interface msConsultChannelsAttributes {
|
|
6
7
|
id?: number;
|
|
7
8
|
name?: string;
|
|
8
9
|
sort?: number;
|
|
10
|
+
message?: string;
|
|
9
11
|
status?: number;
|
|
10
12
|
createdBy?: string;
|
|
11
13
|
createdDate?: Date;
|
|
@@ -38,6 +40,12 @@ export class msConsultChannels extends Model<msConsultChannelsAttributes, msCons
|
|
|
38
40
|
})
|
|
39
41
|
declare sort?: number;
|
|
40
42
|
|
|
43
|
+
@Column({
|
|
44
|
+
allowNull: true,
|
|
45
|
+
type: DataType.STRING(255)
|
|
46
|
+
})
|
|
47
|
+
declare message?: string;
|
|
48
|
+
|
|
41
49
|
@Column({
|
|
42
50
|
allowNull: true,
|
|
43
51
|
type: DataType.INTEGER
|
|
@@ -72,4 +80,9 @@ export class msConsultChannels extends Model<msConsultChannelsAttributes, msCons
|
|
|
72
80
|
})
|
|
73
81
|
declare updatedDate?: Date;
|
|
74
82
|
|
|
83
|
+
@HasMany(() => appQueue, {
|
|
84
|
+
sourceKey: "id"
|
|
85
|
+
})
|
|
86
|
+
declare appQueues?: appQueue[];
|
|
87
|
+
|
|
75
88
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
Model, Table, Column, DataType, Index, Sequelize, ForeignKey
|
|
2
|
+
Model, Table, Column, DataType, Index, Sequelize, ForeignKey, HasMany
|
|
3
3
|
} from "sequelize-typescript";
|
|
4
|
+
import { appQueue } from "./appQueue";
|
|
4
5
|
|
|
5
6
|
export interface msWebsiteAttributes {
|
|
6
7
|
id?: number;
|
|
@@ -190,4 +191,9 @@ export class msWebsite extends Model<msWebsiteAttributes, msWebsiteAttributes> i
|
|
|
190
191
|
})
|
|
191
192
|
declare updatedDate?: Date;
|
|
192
193
|
|
|
194
|
+
@HasMany(() => appQueue, {
|
|
195
|
+
sourceKey: "id"
|
|
196
|
+
})
|
|
197
|
+
declare appQueues?: appQueue[];
|
|
198
|
+
|
|
193
199
|
}
|
|
@@ -1,62 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
interface appQueueAttributes {
|
|
4
|
-
id?: number;
|
|
5
|
-
uuid?: string;
|
|
6
|
-
code?: string;
|
|
7
|
-
siteId?: number;
|
|
8
|
-
requestDate?: string;
|
|
9
|
-
approveDate?: string;
|
|
10
|
-
timeSlot?: number;
|
|
11
|
-
fullName?: string;
|
|
12
|
-
residence?: number;
|
|
13
|
-
occupation?: number;
|
|
14
|
-
phoneNumber?: string;
|
|
15
|
-
email?: string;
|
|
16
|
-
lineId?: string;
|
|
17
|
-
consultChannel?: number;
|
|
18
|
-
consultTopic?: number;
|
|
19
|
-
consultTopicOther?: string;
|
|
20
|
-
blackCaseNumber?: string;
|
|
21
|
-
redCaseNumber?: string;
|
|
22
|
-
issues?: string;
|
|
23
|
-
attachments?: object;
|
|
24
|
-
ipAddress?: string;
|
|
25
|
-
staffId?: number;
|
|
26
|
-
status?: number;
|
|
27
|
-
createdBy?: string;
|
|
28
|
-
createdDate?: Date;
|
|
29
|
-
updatedBy?: string;
|
|
30
|
-
updatedDate?: Date;
|
|
31
|
-
}
|
|
32
|
-
declare class appQueue extends Model<appQueueAttributes, appQueueAttributes> implements appQueueAttributes {
|
|
33
|
-
id?: number;
|
|
34
|
-
uuid?: string;
|
|
35
|
-
code?: string;
|
|
36
|
-
siteId?: number;
|
|
37
|
-
requestDate?: string;
|
|
38
|
-
approveDate?: string;
|
|
39
|
-
timeSlot?: number;
|
|
40
|
-
fullName?: string;
|
|
41
|
-
residence?: number;
|
|
42
|
-
occupation?: number;
|
|
43
|
-
phoneNumber?: string;
|
|
44
|
-
email?: string;
|
|
45
|
-
lineId?: string;
|
|
46
|
-
consultChannel?: number;
|
|
47
|
-
consultTopic?: number;
|
|
48
|
-
consultTopicOther?: string;
|
|
49
|
-
blackCaseNumber?: string;
|
|
50
|
-
redCaseNumber?: string;
|
|
51
|
-
issues?: string;
|
|
52
|
-
attachments?: object;
|
|
53
|
-
ipAddress?: string;
|
|
54
|
-
staffId?: number;
|
|
55
|
-
status?: number;
|
|
56
|
-
createdBy?: string;
|
|
57
|
-
createdDate?: Date;
|
|
58
|
-
updatedBy?: string;
|
|
59
|
-
updatedDate?: Date;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export { appQueue, type appQueueAttributes };
|
|
1
|
+
import 'sequelize-typescript';
|
|
2
|
+
export { b as appQueue, a as appQueueAttributes } from '../../appQueue-QJ9ECucz.js';
|