@admc-go-th/admc-library 1.0.129 → 1.0.132

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 (94) hide show
  1. package/appQueue-HW5J6Gb9.d.ts +162 -0
  2. package/{authAssignment-BAUCoEP6.d.ts → authAssignment-De3034JH.d.ts} +16 -0
  3. package/databases/schema/appQueue.ts +93 -3
  4. package/databases/schema/appReportCorruption.ts +1 -1
  5. package/databases/schema/appScore.ts +8 -0
  6. package/databases/schema/files.ts +7 -0
  7. package/databases/schema/formFaq.ts +126 -126
  8. package/databases/schema/index.ts +10 -5
  9. package/databases/schema/informationIndex.ts +211 -211
  10. package/databases/schema/informationIndexGroup.ts +103 -103
  11. package/databases/schema/mdBanner.ts +8 -0
  12. package/databases/schema/mdDownloadBk.ts +136 -136
  13. package/databases/schema/mdEbookGroup.ts +8 -0
  14. package/databases/schema/msConsultCase.ts +0 -8
  15. package/databases/schema/msConsultChannels.ts +14 -1
  16. package/databases/schema/msConsultSiteCase.ts +91 -0
  17. package/databases/schema/msConsultSiteIssue.ts +84 -0
  18. package/databases/schema/msExecutiveActing.ts +75 -0
  19. package/databases/schema/msExecutiveBoard.ts +82 -82
  20. package/databases/schema/msExecutiveBoardBk.ts +83 -0
  21. package/databases/schema/msExecutivePosition.ts +117 -117
  22. package/databases/schema/msExecutivePositionBk.ts +112 -0
  23. package/databases/schema/msGuidelines.ts +88 -88
  24. package/databases/schema/msOrganization.ts +139 -0
  25. package/databases/schema/msPosition.ts +76 -0
  26. package/databases/schema/msQueueTourFaq.ts +90 -0
  27. package/databases/schema/msQueueTourGuidelines.ts +90 -0
  28. package/databases/schema/msWebsite.ts +7 -1
  29. package/databases/schema/setting.ts +73 -73
  30. package/databases/schema/userPermissionV.ts +78 -0
  31. package/databases/schema/users.ts +62 -0
  32. package/databases/tables/appQueue.d.ts +2 -62
  33. package/databases/tables/appQueue.js +380 -54
  34. package/databases/tables/appReportCorruption.js +1 -1
  35. package/databases/tables/appReportCorruptionTransaction.js +1 -1
  36. package/databases/tables/appScore.d.ts +2 -0
  37. package/databases/tables/appScore.js +7 -0
  38. package/databases/tables/authAssignment.d.ts +1 -1
  39. package/databases/tables/authAssignment.js +54 -0
  40. package/databases/tables/authRole.d.ts +1 -1
  41. package/databases/tables/authRole.js +54 -0
  42. package/databases/tables/authRoleChild.d.ts +1 -1
  43. package/databases/tables/authRoleChild.js +54 -0
  44. package/databases/tables/files.d.ts +1 -1
  45. package/databases/tables/files.js +13 -0
  46. package/databases/tables/index.d.ts +15 -11
  47. package/databases/tables/index.js +4440 -3810
  48. package/databases/tables/mdBanner.d.ts +1 -1
  49. package/databases/tables/mdBanner.js +13 -0
  50. package/databases/tables/mdContent.d.ts +1 -1
  51. package/databases/tables/mdContent.js +54 -0
  52. package/databases/tables/mdContentGroup.d.ts +1 -1
  53. package/databases/tables/mdContentGroup.js +54 -0
  54. package/databases/tables/mdEbook.d.ts +1 -1
  55. package/databases/tables/mdEbook.js +7 -0
  56. package/databases/tables/mdEbookGroup.d.ts +1 -1
  57. package/databases/tables/mdEbookGroup.js +7 -0
  58. package/databases/tables/mdQuestionnaire.d.ts +1 -1
  59. package/databases/tables/mdQuestionnaire.js +54 -0
  60. package/databases/tables/mdQuestionnaireData.d.ts +1 -1
  61. package/databases/tables/mdQuestionnaireData.js +54 -0
  62. package/databases/tables/msConsultCase.d.ts +0 -2
  63. package/databases/tables/msConsultCase.js +0 -7
  64. package/databases/tables/msConsultChannels.d.ts +2 -24
  65. package/databases/tables/msConsultChannels.js +469 -13
  66. package/databases/tables/msConsultSiteCase.d.ts +28 -0
  67. package/databases/tables/msConsultSiteCase.js +113 -0
  68. package/databases/tables/msConsultSiteIssue.d.ts +26 -0
  69. package/databases/tables/msConsultSiteIssue.js +107 -0
  70. package/databases/tables/msExecutiveActing.d.ts +24 -0
  71. package/databases/tables/msExecutiveActing.js +99 -0
  72. package/databases/tables/msExecutiveBoardBk.d.ts +26 -0
  73. package/databases/tables/msExecutiveBoardBk.js +106 -0
  74. package/databases/tables/msExecutivePositionBk.d.ts +34 -0
  75. package/databases/tables/msExecutivePositionBk.js +131 -0
  76. package/databases/tables/msOrganization.d.ts +40 -0
  77. package/databases/tables/msOrganization.js +155 -0
  78. package/databases/tables/msPosition.d.ts +24 -0
  79. package/databases/tables/msPosition.js +100 -0
  80. package/databases/tables/msQueueTourFaq.d.ts +28 -0
  81. package/databases/tables/msQueueTourFaq.js +112 -0
  82. package/databases/tables/msQueueTourGuidelines.d.ts +28 -0
  83. package/databases/tables/msQueueTourGuidelines.js +112 -0
  84. package/databases/tables/msWebsite.d.ts +2 -56
  85. package/databases/tables/msWebsite.js +400 -46
  86. package/databases/tables/userPermissionV.d.ts +26 -0
  87. package/databases/tables/userPermissionV.js +101 -0
  88. package/databases/tables/users.d.ts +1 -1
  89. package/databases/tables/users.js +54 -0
  90. package/databases/tables/usersVerify.d.ts +1 -1
  91. package/databases/tables/usersVerify.js +54 -0
  92. package/{files-Dp2zDQAj.d.ts → files-CXIMD4Bk.d.ts} +4 -0
  93. package/{mdEbook-yzNQjFhx.d.ts → mdEbook-DVvRlFVe.d.ts} +2 -0
  94. package/package.json +1 -1
@@ -1,74 +1,74 @@
1
- import {
2
- Model, Table, Column, DataType, Index, Sequelize, ForeignKey
3
- } from "sequelize-typescript";
4
-
5
- export interface settingAttributes {
6
- id?: number;
7
- uuid: string;
8
- title?: string;
9
- description?: string;
10
- imageLogoUuid?: string;
11
- imageCoverUuid?: string;
12
- imageBackgroundUuid?: string;
13
- updatedDate?: Date;
14
- }
15
-
16
- @Table({
17
- tableName: "setting",
18
- timestamps: false
19
- })
20
- export class setting extends Model<settingAttributes, settingAttributes> implements settingAttributes {
21
-
22
- @Column({
23
- primaryKey: true,
24
- autoIncrement: true,
25
- type: DataType.INTEGER
26
- })
27
- declare id?: number;
28
-
29
- @Column({
30
- type: DataType.STRING(60)
31
- })
32
- declare uuid: string;
33
-
34
- @Column({
35
- allowNull: true,
36
- type: DataType.STRING(255)
37
- })
38
- declare title?: string;
39
-
40
- @Column({
41
- allowNull: true,
42
- type: DataType.STRING(255)
43
- })
44
- declare description?: string;
45
-
46
- @Column({
47
- field: "image_logo_uuid",
48
- allowNull: true,
49
- type: DataType.STRING(60)
50
- })
51
- declare imageLogoUuid?: string;
52
-
53
- @Column({
54
- field: "image_cover_uuid",
55
- allowNull: true,
56
- type: DataType.STRING(60)
57
- })
58
- declare imageCoverUuid?: string;
59
-
60
- @Column({
61
- field: "image_background_uuid",
62
- allowNull: true,
63
- type: DataType.STRING(60)
64
- })
65
- declare imageBackgroundUuid?: string;
66
-
67
- @Column({
68
- field: "updated_date",
69
- allowNull: true,
70
- type: DataType.DATE
71
- })
72
- declare updatedDate?: Date;
73
-
1
+ import {
2
+ Model, Table, Column, DataType, Index, Sequelize, ForeignKey
3
+ } from "sequelize-typescript";
4
+
5
+ export interface settingAttributes {
6
+ id?: number;
7
+ uuid: string;
8
+ title?: string;
9
+ description?: string;
10
+ imageLogoUuid?: string;
11
+ imageCoverUuid?: string;
12
+ imageBackgroundUuid?: string;
13
+ updatedDate?: Date;
14
+ }
15
+
16
+ @Table({
17
+ tableName: "setting",
18
+ timestamps: false
19
+ })
20
+ export class setting extends Model<settingAttributes, settingAttributes> implements settingAttributes {
21
+
22
+ @Column({
23
+ primaryKey: true,
24
+ autoIncrement: true,
25
+ type: DataType.INTEGER
26
+ })
27
+ declare id?: number;
28
+
29
+ @Column({
30
+ type: DataType.STRING(60)
31
+ })
32
+ declare uuid: string;
33
+
34
+ @Column({
35
+ allowNull: true,
36
+ type: DataType.STRING(255)
37
+ })
38
+ declare title?: string;
39
+
40
+ @Column({
41
+ allowNull: true,
42
+ type: DataType.STRING(255)
43
+ })
44
+ declare description?: string;
45
+
46
+ @Column({
47
+ field: "image_logo_uuid",
48
+ allowNull: true,
49
+ type: DataType.STRING(60)
50
+ })
51
+ declare imageLogoUuid?: string;
52
+
53
+ @Column({
54
+ field: "image_cover_uuid",
55
+ allowNull: true,
56
+ type: DataType.STRING(60)
57
+ })
58
+ declare imageCoverUuid?: string;
59
+
60
+ @Column({
61
+ field: "image_background_uuid",
62
+ allowNull: true,
63
+ type: DataType.STRING(60)
64
+ })
65
+ declare imageBackgroundUuid?: string;
66
+
67
+ @Column({
68
+ field: "updated_date",
69
+ allowNull: true,
70
+ type: DataType.DATE
71
+ })
72
+ declare updatedDate?: Date;
73
+
74
74
  }
@@ -0,0 +1,78 @@
1
+ import {
2
+ Model, Table, Column, DataType, Index, Sequelize, ForeignKey
3
+ } from "sequelize-typescript";
4
+
5
+ export interface userPermissionVAttributes {
6
+ userId?: number;
7
+ uuid: string;
8
+ username: string;
9
+ roleId?: number;
10
+ th?: string;
11
+ en?: string;
12
+ fr?: string;
13
+ sites?: string;
14
+ management?: string;
15
+ }
16
+
17
+ @Table({
18
+ tableName: "user_permission_v",
19
+ timestamps: false,
20
+ comment: "VIEW"
21
+ })
22
+ export class userPermissionV extends Model<userPermissionVAttributes, userPermissionVAttributes> implements userPermissionVAttributes {
23
+
24
+ @Column({
25
+ field: "user_id",
26
+ type: DataType.INTEGER,
27
+ defaultValue: "0"
28
+ })
29
+ declare userId?: number;
30
+
31
+ @Column({
32
+ type: DataType.STRING(60)
33
+ })
34
+ declare uuid: string;
35
+
36
+ @Column({
37
+ type: DataType.STRING(100)
38
+ })
39
+ declare username: string;
40
+
41
+ @Column({
42
+ field: "role_id",
43
+ allowNull: true,
44
+ type: DataType.INTEGER
45
+ })
46
+ declare roleId?: number;
47
+
48
+ @Column({
49
+ allowNull: true,
50
+ type: DataType.STRING(2)
51
+ })
52
+ declare th?: string;
53
+
54
+ @Column({
55
+ allowNull: true,
56
+ type: DataType.STRING(2)
57
+ })
58
+ declare en?: string;
59
+
60
+ @Column({
61
+ allowNull: true,
62
+ type: DataType.STRING(2)
63
+ })
64
+ declare fr?: string;
65
+
66
+ @Column({
67
+ allowNull: true,
68
+ type: DataType.STRING
69
+ })
70
+ declare sites?: string;
71
+
72
+ @Column({
73
+ allowNull: true,
74
+ type: DataType.STRING(10)
75
+ })
76
+ declare management?: string;
77
+
78
+ }
@@ -21,9 +21,17 @@ export interface usersAttributes {
21
21
  userAuthen?: string;
22
22
  userType?: number;
23
23
  prefix?: string;
24
+ prefixId?: number;
24
25
  firstName?: string;
25
26
  lastName?: string;
27
+ firstNameEn?: string;
28
+ lastNameEn?: string;
26
29
  phone?: string;
30
+ organizationId?: number;
31
+ occupation?: string;
32
+ position?: string;
33
+ positionId?: number;
34
+ genderCode?: string;
27
35
  status?: number;
28
36
  is_2fa?: number;
29
37
  createdBy?: string;
@@ -134,6 +142,13 @@ export class users extends Model<usersAttributes, usersAttributes> implements us
134
142
  })
135
143
  declare prefix?: string;
136
144
 
145
+ @Column({
146
+ field: "prefix_id",
147
+ allowNull: true,
148
+ type: DataType.INTEGER
149
+ })
150
+ declare prefixId?: number;
151
+
137
152
  @Column({
138
153
  field: "first_name",
139
154
  allowNull: true,
@@ -148,12 +163,59 @@ export class users extends Model<usersAttributes, usersAttributes> implements us
148
163
  })
149
164
  declare lastName?: string;
150
165
 
166
+ @Column({
167
+ field: "first_name_en",
168
+ allowNull: true,
169
+ type: DataType.STRING(100)
170
+ })
171
+ declare firstNameEn?: string;
172
+
173
+ @Column({
174
+ field: "last_name_en",
175
+ allowNull: true,
176
+ type: DataType.STRING(100)
177
+ })
178
+ declare lastNameEn?: string;
179
+
151
180
  @Column({
152
181
  allowNull: true,
153
182
  type: DataType.STRING(20)
154
183
  })
155
184
  declare phone?: string;
156
185
 
186
+ @Column({
187
+ field: "organization_id",
188
+ allowNull: true,
189
+ type: DataType.INTEGER
190
+ })
191
+ declare organizationId?: number;
192
+
193
+ @Column({
194
+ allowNull: true,
195
+ type: DataType.STRING(255)
196
+ })
197
+ declare occupation?: string;
198
+
199
+ @Column({
200
+ allowNull: true,
201
+ type: DataType.STRING(255)
202
+ })
203
+ declare position?: string;
204
+
205
+ @Column({
206
+ field: "position_id",
207
+ allowNull: true,
208
+ type: DataType.INTEGER
209
+ })
210
+ declare positionId?: number;
211
+
212
+ @Column({
213
+ field: "gender_code",
214
+ allowNull: true,
215
+ type: DataType.STRING(1)
216
+ })
217
+ declare genderCode?: string;
218
+
157
219
  @Column({
158
220
  allowNull: true,
159
221
  type: DataType.SMALLINT
@@ -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-HW5J6Gb9.js';