@admc-go-th/admc-library 1.0.128 → 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.
Files changed (53) hide show
  1. package/appQueue-QJ9ECucz.d.ts +158 -0
  2. package/{authAssignment-Te_XO-S8.d.ts → authAssignment-BAUCoEP6.d.ts} +4 -0
  3. package/databases/schema/appQueue.ts +75 -1
  4. package/databases/schema/appReportCorruption.ts +1 -1
  5. package/databases/schema/authRole.ts +16 -0
  6. package/databases/schema/files.ts +7 -0
  7. package/databases/schema/mdBanner.ts +8 -0
  8. package/databases/schema/mdEbook.ts +8 -0
  9. package/databases/schema/mdEbookGroup.ts +8 -0
  10. package/databases/schema/member.ts +8 -0
  11. package/databases/schema/msConsultChannels.ts +14 -1
  12. package/databases/schema/msWebsite.ts +7 -1
  13. package/databases/tables/appQueue.d.ts +2 -62
  14. package/databases/tables/appQueue.js +365 -53
  15. package/databases/tables/appReportCorruption.js +1 -1
  16. package/databases/tables/appReportCorruptionTransaction.js +1 -1
  17. package/databases/tables/authAssignment.d.ts +1 -1
  18. package/databases/tables/authAssignment.js +14 -0
  19. package/databases/tables/authRole.d.ts +1 -1
  20. package/databases/tables/authRole.js +14 -0
  21. package/databases/tables/authRoleChild.d.ts +1 -1
  22. package/databases/tables/authRoleChild.js +14 -0
  23. package/databases/tables/files.d.ts +1 -1
  24. package/databases/tables/files.js +13 -0
  25. package/databases/tables/index.d.ts +4 -6
  26. package/databases/tables/index.js +2701 -2571
  27. package/databases/tables/mdBanner.d.ts +1 -1
  28. package/databases/tables/mdBanner.js +13 -0
  29. package/databases/tables/mdContent.d.ts +1 -1
  30. package/databases/tables/mdContent.js +14 -0
  31. package/databases/tables/mdContentGroup.d.ts +1 -1
  32. package/databases/tables/mdContentGroup.js +14 -0
  33. package/databases/tables/mdEbook.d.ts +1 -1
  34. package/databases/tables/mdEbook.js +14 -0
  35. package/databases/tables/mdEbookGroup.d.ts +1 -1
  36. package/databases/tables/mdEbookGroup.js +14 -0
  37. package/databases/tables/mdQuestionnaire.d.ts +1 -1
  38. package/databases/tables/mdQuestionnaire.js +14 -0
  39. package/databases/tables/mdQuestionnaireData.d.ts +1 -1
  40. package/databases/tables/mdQuestionnaireData.js +14 -0
  41. package/databases/tables/member.d.ts +2 -0
  42. package/databases/tables/member.js +7 -0
  43. package/databases/tables/msConsultChannels.d.ts +2 -24
  44. package/databases/tables/msConsultChannels.js +455 -13
  45. package/databases/tables/msWebsite.d.ts +2 -56
  46. package/databases/tables/msWebsite.js +386 -46
  47. package/databases/tables/users.d.ts +1 -1
  48. package/databases/tables/users.js +14 -0
  49. package/databases/tables/usersVerify.d.ts +1 -1
  50. package/databases/tables/usersVerify.js +14 -0
  51. package/{files-Dp2zDQAj.d.ts → files-CXIMD4Bk.d.ts} +4 -0
  52. package/{mdEbook-BuaHiJvl.d.ts → mdEbook-DVvRlFVe.d.ts} +4 -0
  53. 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 };
@@ -257,6 +257,8 @@ interface authRoleAttributes {
257
257
  name: string;
258
258
  display?: string;
259
259
  status?: number;
260
+ orgId?: string;
261
+ orgInfo?: object;
260
262
  createdBy?: string;
261
263
  createdDate?: Date;
262
264
  updatedBy?: string;
@@ -268,6 +270,8 @@ declare class authRole extends Model<authRoleAttributes, authRoleAttributes> imp
268
270
  name: string;
269
271
  display?: string;
270
272
  status?: number;
273
+ orgId?: string;
274
+ orgInfo?: object;
271
275
  createdBy?: string;
272
276
  createdDate?: Date;
273
277
  updatedBy?: string;
@@ -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
  }
@@ -57,7 +57,7 @@ export class appReportCorruption extends Model<appReportCorruptionAttributes, ap
57
57
 
58
58
  @Column({
59
59
  allowNull: true,
60
- type: DataType.STRING(255)
60
+ type: DataType.STRING(1000)
61
61
  })
62
62
  declare title?: string;
63
63
 
@@ -10,6 +10,8 @@ export interface authRoleAttributes {
10
10
  name: string;
11
11
  display?: string;
12
12
  status?: number;
13
+ orgId?: string;
14
+ orgInfo?: object;
13
15
  createdBy?: string;
14
16
  createdDate?: Date;
15
17
  updatedBy?: string;
@@ -51,6 +53,20 @@ export class authRole extends Model<authRoleAttributes, authRoleAttributes> impl
51
53
  })
52
54
  declare status?: number;
53
55
 
56
+ @Column({
57
+ field: "org_id",
58
+ allowNull: true,
59
+ type: DataType.STRING(255)
60
+ })
61
+ declare orgId?: string;
62
+
63
+ @Column({
64
+ field: "org_info",
65
+ allowNull: true,
66
+ type: DataType.JSON
67
+ })
68
+ declare orgInfo?: object;
69
+
54
70
  @Column({
55
71
  field: "created_by",
56
72
  allowNull: true,
@@ -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,
@@ -26,6 +26,7 @@ export interface mdEbookAttributes {
26
26
  hasExpire: number;
27
27
  startDate?: Date;
28
28
  expireDate?: Date;
29
+ sendSubscribe?: number;
29
30
  createdBy?: string;
30
31
  createdDate?: Date;
31
32
  updatedBy?: string;
@@ -183,6 +184,13 @@ export class mdEbook extends Model<mdEbookAttributes, mdEbookAttributes> impleme
183
184
  })
184
185
  declare expireDate?: Date;
185
186
 
187
+ @Column({
188
+ field: "send_subscribe",
189
+ allowNull: true,
190
+ type: DataType.INTEGER
191
+ })
192
+ declare sendSubscribe?: number;
193
+
186
194
  @Column({
187
195
  field: "created_by",
188
196
  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
  })
@@ -32,6 +32,7 @@ export interface memberAttributes {
32
32
  otp?: string;
33
33
  otpDate?: Date;
34
34
  avatar?: string;
35
+ subscribeNews?: number;
35
36
  createdBy?: string;
36
37
  createdDate?: Date;
37
38
  updatedBy?: string;
@@ -231,6 +232,13 @@ export class member extends Model<memberAttributes, memberAttributes> implements
231
232
  })
232
233
  declare avatar?: string;
233
234
 
235
+ @Column({
236
+ field: "subscribe_news",
237
+ allowNull: true,
238
+ type: DataType.INTEGER
239
+ })
240
+ declare subscribeNews?: number;
241
+
234
242
  @Column({
235
243
  field: "created_by",
236
244
  allowNull: true,
@@ -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 { Model } from 'sequelize-typescript';
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';