@admc-go-th/admc-library 1.0.123 → 1.0.125

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 (45) hide show
  1. package/{appReportCorruption-CWG66n6V.d.ts → appReportCorruption-BsdsQQ1q.d.ts} +8 -0
  2. package/databases/schema/appFaq.ts +31 -0
  3. package/databases/schema/appQueue.ts +15 -0
  4. package/databases/schema/appQueueTour.ts +7 -0
  5. package/databases/schema/appReportCorruption.ts +17 -1
  6. package/databases/schema/appReportCorruptionTransaction.ts +16 -0
  7. package/databases/schema/index.ts +9 -0
  8. package/databases/schema/mdEgp.ts +113 -113
  9. package/databases/schema/msConsultCase.ts +83 -0
  10. package/databases/schema/msConsultChannels.ts +75 -0
  11. package/databases/schema/msConsultInstructions.ts +82 -0
  12. package/databases/schema/msConsultService.ts +108 -0
  13. package/databases/schema/msConsultSiteChannel.ts +77 -0
  14. package/databases/schema/msConsultSiteHoliday.ts +99 -0
  15. package/databases/schema/msConsultSiteStaff.ts +76 -0
  16. package/databases/schema/msVariable.ts +68 -0
  17. package/databases/tables/appFaq.d.ts +8 -0
  18. package/databases/tables/appFaq.js +27 -0
  19. package/databases/tables/appQueue.d.ts +4 -0
  20. package/databases/tables/appQueue.js +13 -0
  21. package/databases/tables/appQueueTour.d.ts +2 -0
  22. package/databases/tables/appQueueTour.js +6 -0
  23. package/databases/tables/appReportCorruption.d.ts +1 -1
  24. package/databases/tables/appReportCorruption.js +29 -1
  25. package/databases/tables/appReportCorruptionTransaction.d.ts +1 -1
  26. package/databases/tables/appReportCorruptionTransaction.js +29 -1
  27. package/databases/tables/index.d.ts +10 -1
  28. package/databases/tables/index.js +2023 -1261
  29. package/databases/tables/msConsultCase.d.ts +26 -0
  30. package/databases/tables/msConsultCase.js +106 -0
  31. package/databases/tables/msConsultChannels.d.ts +24 -0
  32. package/databases/tables/msConsultChannels.js +99 -0
  33. package/databases/tables/msConsultInstructions.d.ts +26 -0
  34. package/databases/tables/msConsultInstructions.js +105 -0
  35. package/databases/tables/msConsultService.d.ts +32 -0
  36. package/databases/tables/msConsultService.js +128 -0
  37. package/databases/tables/msConsultSiteChannel.d.ts +24 -0
  38. package/databases/tables/msConsultSiteChannel.js +101 -0
  39. package/databases/tables/msConsultSiteHoliday.d.ts +30 -0
  40. package/databases/tables/msConsultSiteHoliday.js +120 -0
  41. package/databases/tables/msConsultSiteStaff.d.ts +24 -0
  42. package/databases/tables/msConsultSiteStaff.js +100 -0
  43. package/databases/tables/msVariable.d.ts +22 -0
  44. package/databases/tables/msVariable.js +93 -0
  45. package/package.json +1 -1
@@ -0,0 +1,82 @@
1
+ import {
2
+ Model, Table, Column, DataType, Index, Sequelize, ForeignKey
3
+ } from "sequelize-typescript";
4
+
5
+ export interface msConsultInstructionsAttributes {
6
+ id?: number;
7
+ name?: string;
8
+ detail?: string;
9
+ sort?: number;
10
+ status?: number;
11
+ createdBy?: string;
12
+ createdDate?: Date;
13
+ updatedBy?: string;
14
+ updatedDate?: Date;
15
+ }
16
+
17
+ @Table({
18
+ tableName: "ms_consult_instructions",
19
+ timestamps: false
20
+ })
21
+ export class msConsultInstructions extends Model<msConsultInstructionsAttributes, msConsultInstructionsAttributes> implements msConsultInstructionsAttributes {
22
+
23
+ @Column({
24
+ primaryKey: true,
25
+ autoIncrement: true,
26
+ type: DataType.INTEGER
27
+ })
28
+ declare id?: number;
29
+
30
+ @Column({
31
+ allowNull: true,
32
+ type: DataType.STRING(255)
33
+ })
34
+ declare name?: string;
35
+
36
+ @Column({
37
+ allowNull: true,
38
+ type: DataType.STRING
39
+ })
40
+ declare detail?: string;
41
+
42
+ @Column({
43
+ allowNull: true,
44
+ type: DataType.INTEGER
45
+ })
46
+ declare sort?: number;
47
+
48
+ @Column({
49
+ allowNull: true,
50
+ type: DataType.INTEGER
51
+ })
52
+ declare status?: number;
53
+
54
+ @Column({
55
+ field: "created_by",
56
+ allowNull: true,
57
+ type: DataType.STRING(60)
58
+ })
59
+ declare createdBy?: string;
60
+
61
+ @Column({
62
+ field: "created_date",
63
+ allowNull: true,
64
+ type: DataType.DATE
65
+ })
66
+ declare createdDate?: Date;
67
+
68
+ @Column({
69
+ field: "updated_by",
70
+ allowNull: true,
71
+ type: DataType.STRING(60)
72
+ })
73
+ declare updatedBy?: string;
74
+
75
+ @Column({
76
+ field: "updated_date",
77
+ allowNull: true,
78
+ type: DataType.DATE
79
+ })
80
+ declare updatedDate?: Date;
81
+
82
+ }
@@ -0,0 +1,108 @@
1
+ import {
2
+ Model, Table, Column, DataType, Index, Sequelize, ForeignKey
3
+ } from "sequelize-typescript";
4
+
5
+ export interface msConsultServiceAttributes {
6
+ id?: number;
7
+ siteId?: number;
8
+ serviceDay?: object;
9
+ serviceStaff?: number;
10
+ roundsTotal?: number;
11
+ roundsInfo?: object;
12
+ sort?: number;
13
+ status?: number;
14
+ createdBy?: string;
15
+ createdDate?: Date;
16
+ updatedBy?: string;
17
+ updatedDate?: Date;
18
+ }
19
+
20
+ @Table({
21
+ tableName: "ms_consult_service",
22
+ timestamps: false
23
+ })
24
+ export class msConsultService extends Model<msConsultServiceAttributes, msConsultServiceAttributes> implements msConsultServiceAttributes {
25
+
26
+ @Column({
27
+ primaryKey: true,
28
+ autoIncrement: true,
29
+ type: DataType.INTEGER
30
+ })
31
+ declare id?: number;
32
+
33
+ @Column({
34
+ field: "site_id",
35
+ allowNull: true,
36
+ type: DataType.INTEGER
37
+ })
38
+ declare siteId?: number;
39
+
40
+ @Column({
41
+ field: "service_day",
42
+ allowNull: true,
43
+ type: DataType.JSON
44
+ })
45
+ declare serviceDay?: object;
46
+
47
+ @Column({
48
+ field: "service_staff",
49
+ allowNull: true,
50
+ type: DataType.INTEGER
51
+ })
52
+ declare serviceStaff?: number;
53
+
54
+ @Column({
55
+ field: "rounds_total",
56
+ allowNull: true,
57
+ type: DataType.INTEGER
58
+ })
59
+ declare roundsTotal?: number;
60
+
61
+ @Column({
62
+ field: "rounds_info",
63
+ allowNull: true,
64
+ type: DataType.JSON
65
+ })
66
+ declare roundsInfo?: object;
67
+
68
+ @Column({
69
+ allowNull: true,
70
+ type: DataType.INTEGER
71
+ })
72
+ declare sort?: number;
73
+
74
+ @Column({
75
+ allowNull: true,
76
+ type: DataType.INTEGER
77
+ })
78
+ declare status?: number;
79
+
80
+ @Column({
81
+ field: "created_by",
82
+ allowNull: true,
83
+ type: DataType.STRING(60)
84
+ })
85
+ declare createdBy?: string;
86
+
87
+ @Column({
88
+ field: "created_date",
89
+ allowNull: true,
90
+ type: DataType.DATE
91
+ })
92
+ declare createdDate?: Date;
93
+
94
+ @Column({
95
+ field: "updated_by",
96
+ allowNull: true,
97
+ type: DataType.STRING(60)
98
+ })
99
+ declare updatedBy?: string;
100
+
101
+ @Column({
102
+ field: "updated_date",
103
+ allowNull: true,
104
+ type: DataType.DATE
105
+ })
106
+ declare updatedDate?: Date;
107
+
108
+ }
@@ -0,0 +1,77 @@
1
+ import {
2
+ Model, Table, Column, DataType, Index, Sequelize, ForeignKey
3
+ } from "sequelize-typescript";
4
+
5
+ export interface msConsultSiteChannelAttributes {
6
+ id?: number;
7
+ siteId?: number;
8
+ channelId?: number;
9
+ status?: number;
10
+ createdBy?: string;
11
+ createdDate?: Date;
12
+ updatedBy?: string;
13
+ updatedDate?: Date;
14
+ }
15
+
16
+ @Table({
17
+ tableName: "ms_consult_site_channel",
18
+ timestamps: false
19
+ })
20
+ export class msConsultSiteChannel extends Model<msConsultSiteChannelAttributes, msConsultSiteChannelAttributes> implements msConsultSiteChannelAttributes {
21
+
22
+ @Column({
23
+ primaryKey: true,
24
+ autoIncrement: true,
25
+ type: DataType.INTEGER
26
+ })
27
+ declare id?: number;
28
+
29
+ @Column({
30
+ field: "site_id",
31
+ allowNull: true,
32
+ type: DataType.INTEGER
33
+ })
34
+ declare siteId?: number;
35
+
36
+ @Column({
37
+ field: "channel_id",
38
+ allowNull: true,
39
+ type: DataType.INTEGER
40
+ })
41
+ declare channelId?: number;
42
+
43
+ @Column({
44
+ allowNull: true,
45
+ type: DataType.INTEGER
46
+ })
47
+ declare status?: number;
48
+
49
+ @Column({
50
+ field: "created_by",
51
+ allowNull: true,
52
+ type: DataType.STRING(60)
53
+ })
54
+ declare createdBy?: string;
55
+
56
+ @Column({
57
+ field: "created_date",
58
+ allowNull: true,
59
+ type: DataType.DATE
60
+ })
61
+ declare createdDate?: Date;
62
+
63
+ @Column({
64
+ field: "updated_by",
65
+ allowNull: true,
66
+ type: DataType.STRING(60)
67
+ })
68
+ declare updatedBy?: string;
69
+
70
+ @Column({
71
+ field: "updated_date",
72
+ allowNull: true,
73
+ type: DataType.DATE
74
+ })
75
+ declare updatedDate?: Date;
76
+
77
+ }
@@ -0,0 +1,99 @@
1
+ import {
2
+ Model, Table, Column, DataType, Index, Sequelize, ForeignKey
3
+ } from "sequelize-typescript";
4
+
5
+ export interface msConsultSiteHolidayAttributes {
6
+ id?: number;
7
+ siteId?: number;
8
+ typeId?: number;
9
+ year?: number;
10
+ name?: string;
11
+ atDate?: string;
12
+ status?: number;
13
+ createdBy?: string;
14
+ createdDate?: Date;
15
+ updatedBy?: string;
16
+ updatedDate?: Date;
17
+ }
18
+
19
+ @Table({
20
+ tableName: "ms_consult_site_holiday",
21
+ timestamps: false
22
+ })
23
+ export class msConsultSiteHoliday extends Model<msConsultSiteHolidayAttributes, msConsultSiteHolidayAttributes> implements msConsultSiteHolidayAttributes {
24
+
25
+ @Column({
26
+ primaryKey: true,
27
+ autoIncrement: true,
28
+ type: DataType.INTEGER
29
+ })
30
+ declare id?: number;
31
+
32
+ @Column({
33
+ field: "site_id",
34
+ allowNull: true,
35
+ type: DataType.INTEGER
36
+ })
37
+ declare siteId?: number;
38
+
39
+ @Column({
40
+ field: "type_id",
41
+ allowNull: true,
42
+ type: DataType.INTEGER
43
+ })
44
+ declare typeId?: number;
45
+
46
+ @Column({
47
+ allowNull: true,
48
+ type: DataType.INTEGER
49
+ })
50
+ declare year?: number;
51
+
52
+ @Column({
53
+ allowNull: true,
54
+ type: DataType.STRING(255)
55
+ })
56
+ declare name?: string;
57
+
58
+ @Column({
59
+ field: "at_date",
60
+ allowNull: true,
61
+ type: DataType.DATEONLY
62
+ })
63
+ declare atDate?: string;
64
+
65
+ @Column({
66
+ allowNull: true,
67
+ type: DataType.INTEGER
68
+ })
69
+ declare status?: number;
70
+
71
+ @Column({
72
+ field: "created_by",
73
+ allowNull: true,
74
+ type: DataType.STRING(60)
75
+ })
76
+ declare createdBy?: string;
77
+
78
+ @Column({
79
+ field: "created_date",
80
+ allowNull: true,
81
+ type: DataType.DATE
82
+ })
83
+ declare createdDate?: Date;
84
+
85
+ @Column({
86
+ field: "updated_by",
87
+ allowNull: true,
88
+ type: DataType.STRING(60)
89
+ })
90
+ declare updatedBy?: string;
91
+
92
+ @Column({
93
+ field: "updated_date",
94
+ allowNull: true,
95
+ type: DataType.DATE
96
+ })
97
+ declare updatedDate?: Date;
98
+
99
+ }
@@ -0,0 +1,76 @@
1
+ import {
2
+ Model, Table, Column, DataType, Index, Sequelize, ForeignKey
3
+ } from "sequelize-typescript";
4
+
5
+ export interface msConsultSiteStaffAttributes {
6
+ id?: number;
7
+ siteId?: number;
8
+ name?: string;
9
+ status?: number;
10
+ createdBy?: string;
11
+ createdDate?: Date;
12
+ updatedBy?: string;
13
+ updatedDate?: Date;
14
+ }
15
+
16
+ @Table({
17
+ tableName: "ms_consult_site_staff",
18
+ timestamps: false
19
+ })
20
+ export class msConsultSiteStaff extends Model<msConsultSiteStaffAttributes, msConsultSiteStaffAttributes> implements msConsultSiteStaffAttributes {
21
+
22
+ @Column({
23
+ primaryKey: true,
24
+ autoIncrement: true,
25
+ type: DataType.INTEGER
26
+ })
27
+ declare id?: number;
28
+
29
+ @Column({
30
+ field: "site_id",
31
+ allowNull: true,
32
+ type: DataType.INTEGER
33
+ })
34
+ declare siteId?: number;
35
+
36
+ @Column({
37
+ allowNull: true,
38
+ type: DataType.STRING(255)
39
+ })
40
+ declare name?: string;
41
+
42
+ @Column({
43
+ allowNull: true,
44
+ type: DataType.INTEGER
45
+ })
46
+ declare status?: number;
47
+
48
+ @Column({
49
+ field: "created_by",
50
+ allowNull: true,
51
+ type: DataType.STRING(60)
52
+ })
53
+ declare createdBy?: string;
54
+
55
+ @Column({
56
+ field: "created_date",
57
+ allowNull: true,
58
+ type: DataType.DATE
59
+ })
60
+ declare createdDate?: Date;
61
+
62
+ @Column({
63
+ field: "updated_by",
64
+ allowNull: true,
65
+ type: DataType.STRING(60)
66
+ })
67
+ declare updatedBy?: string;
68
+
69
+ @Column({
70
+ field: "updated_date",
71
+ allowNull: true,
72
+ type: DataType.DATE
73
+ })
74
+ declare updatedDate?: Date;
75
+
76
+ }
@@ -0,0 +1,68 @@
1
+ import {
2
+ Model, Table, Column, DataType, Index, Sequelize, ForeignKey
3
+ } from "sequelize-typescript";
4
+
5
+ export interface msVariableAttributes {
6
+ id?: number;
7
+ name?: string;
8
+ data?: object;
9
+ createdBy?: string;
10
+ createdDate?: Date;
11
+ updatedBy?: string;
12
+ updatedDate?: Date;
13
+ }
14
+
15
+ @Table({
16
+ tableName: "ms_variable",
17
+ timestamps: false
18
+ })
19
+ export class msVariable extends Model<msVariableAttributes, msVariableAttributes> implements msVariableAttributes {
20
+
21
+ @Column({
22
+ primaryKey: true,
23
+ autoIncrement: true,
24
+ type: DataType.INTEGER
25
+ })
26
+ declare id?: number;
27
+
28
+ @Column({
29
+ allowNull: true,
30
+ type: DataType.STRING(255)
31
+ })
32
+ declare name?: string;
33
+
34
+ @Column({
35
+ allowNull: true,
36
+ type: DataType.JSON
37
+ })
38
+ declare data?: object;
39
+
40
+ @Column({
41
+ field: "created_by",
42
+ allowNull: true,
43
+ type: DataType.STRING(60)
44
+ })
45
+ declare createdBy?: string;
46
+
47
+ @Column({
48
+ field: "created_date",
49
+ allowNull: true,
50
+ type: DataType.DATE
51
+ })
52
+ declare createdDate?: Date;
53
+
54
+ @Column({
55
+ field: "updated_by",
56
+ allowNull: true,
57
+ type: DataType.STRING(60)
58
+ })
59
+ declare updatedBy?: string;
60
+
61
+ @Column({
62
+ field: "updated_date",
63
+ allowNull: true,
64
+ type: DataType.DATE
65
+ })
66
+ declare updatedDate?: Date;
67
+
68
+ }
@@ -12,7 +12,11 @@ interface appFaqAttributes {
12
12
  detail?: string;
13
13
  attachments?: object;
14
14
  answer?: string;
15
+ answerBy?: string;
16
+ answerDate?: Date;
17
+ answerInfo?: object;
15
18
  status?: number;
19
+ publish?: number;
16
20
  createdBy?: string;
17
21
  createdDate?: Date;
18
22
  updatedBy?: string;
@@ -30,7 +34,11 @@ declare class appFaq extends Model<appFaqAttributes, appFaqAttributes> implement
30
34
  detail?: string;
31
35
  attachments?: object;
32
36
  answer?: string;
37
+ answerBy?: string;
38
+ answerDate?: Date;
39
+ answerInfo?: object;
33
40
  status?: number;
41
+ publish?: number;
34
42
  createdBy?: string;
35
43
  createdDate?: Date;
36
44
  updatedBy?: string;
@@ -104,12 +104,39 @@ __decorateClass([
104
104
  type: import_sequelize_typescript.DataType.STRING
105
105
  })
106
106
  ], appFaq.prototype, "answer", 2);
107
+ __decorateClass([
108
+ (0, import_sequelize_typescript.Column)({
109
+ field: "answer_by",
110
+ allowNull: true,
111
+ type: import_sequelize_typescript.DataType.STRING(60)
112
+ })
113
+ ], appFaq.prototype, "answerBy", 2);
114
+ __decorateClass([
115
+ (0, import_sequelize_typescript.Column)({
116
+ field: "answer_date",
117
+ allowNull: true,
118
+ type: import_sequelize_typescript.DataType.DATE
119
+ })
120
+ ], appFaq.prototype, "answerDate", 2);
121
+ __decorateClass([
122
+ (0, import_sequelize_typescript.Column)({
123
+ field: "answer_info",
124
+ allowNull: true,
125
+ type: import_sequelize_typescript.DataType.JSON
126
+ })
127
+ ], appFaq.prototype, "answerInfo", 2);
107
128
  __decorateClass([
108
129
  (0, import_sequelize_typescript.Column)({
109
130
  allowNull: true,
110
131
  type: import_sequelize_typescript.DataType.INTEGER
111
132
  })
112
133
  ], appFaq.prototype, "status", 2);
134
+ __decorateClass([
135
+ (0, import_sequelize_typescript.Column)({
136
+ allowNull: true,
137
+ type: import_sequelize_typescript.DataType.INTEGER
138
+ })
139
+ ], appFaq.prototype, "publish", 2);
113
140
  __decorateClass([
114
141
  (0, import_sequelize_typescript.Column)({
115
142
  field: "created_by",
@@ -3,6 +3,7 @@ import { Model } from 'sequelize-typescript';
3
3
  interface appQueueAttributes {
4
4
  id?: number;
5
5
  uuid?: string;
6
+ code?: string;
6
7
  siteId?: number;
7
8
  requestDate?: string;
8
9
  approveDate?: string;
@@ -21,6 +22,7 @@ interface appQueueAttributes {
21
22
  issues?: string;
22
23
  attachments?: object;
23
24
  ipAddress?: string;
25
+ staffId?: number;
24
26
  status?: number;
25
27
  createdBy?: string;
26
28
  createdDate?: Date;
@@ -30,6 +32,7 @@ interface appQueueAttributes {
30
32
  declare class appQueue extends Model<appQueueAttributes, appQueueAttributes> implements appQueueAttributes {
31
33
  id?: number;
32
34
  uuid?: string;
35
+ code?: string;
33
36
  siteId?: number;
34
37
  requestDate?: string;
35
38
  approveDate?: string;
@@ -48,6 +51,7 @@ declare class appQueue extends Model<appQueueAttributes, appQueueAttributes> imp
48
51
  issues?: string;
49
52
  attachments?: object;
50
53
  ipAddress?: string;
54
+ staffId?: number;
51
55
  status?: number;
52
56
  createdBy?: string;
53
57
  createdDate?: Date;
@@ -47,6 +47,12 @@ __decorateClass([
47
47
  type: import_sequelize_typescript.DataType.STRING(60)
48
48
  })
49
49
  ], appQueue.prototype, "uuid", 2);
50
+ __decorateClass([
51
+ (0, import_sequelize_typescript.Column)({
52
+ allowNull: true,
53
+ type: import_sequelize_typescript.DataType.STRING(15)
54
+ })
55
+ ], appQueue.prototype, "code", 2);
50
56
  __decorateClass([
51
57
  (0, import_sequelize_typescript.Column)({
52
58
  field: "site_id",
@@ -168,6 +174,13 @@ __decorateClass([
168
174
  type: import_sequelize_typescript.DataType.STRING(30)
169
175
  })
170
176
  ], appQueue.prototype, "ipAddress", 2);
177
+ __decorateClass([
178
+ (0, import_sequelize_typescript.Column)({
179
+ field: "staff_id",
180
+ allowNull: true,
181
+ type: import_sequelize_typescript.DataType.INTEGER
182
+ })
183
+ ], appQueue.prototype, "staffId", 2);
171
184
  __decorateClass([
172
185
  (0, import_sequelize_typescript.Column)({
173
186
  allowNull: true,
@@ -3,6 +3,7 @@ import { Model } from 'sequelize-typescript';
3
3
  interface appQueueTourAttributes {
4
4
  id?: number;
5
5
  uuid?: string;
6
+ code?: string;
6
7
  requestDate?: string;
7
8
  approveDate?: string;
8
9
  timeSlot?: number;
@@ -28,6 +29,7 @@ interface appQueueTourAttributes {
28
29
  declare class appQueueTour extends Model<appQueueTourAttributes, appQueueTourAttributes> implements appQueueTourAttributes {
29
30
  id?: number;
30
31
  uuid?: string;
32
+ code?: string;
31
33
  requestDate?: string;
32
34
  approveDate?: string;
33
35
  timeSlot?: number;
@@ -47,6 +47,12 @@ __decorateClass([
47
47
  type: import_sequelize_typescript.DataType.STRING(60)
48
48
  })
49
49
  ], appQueueTour.prototype, "uuid", 2);
50
+ __decorateClass([
51
+ (0, import_sequelize_typescript.Column)({
52
+ allowNull: true,
53
+ type: import_sequelize_typescript.DataType.STRING(15)
54
+ })
55
+ ], appQueueTour.prototype, "code", 2);
50
56
  __decorateClass([
51
57
  (0, import_sequelize_typescript.Column)({
52
58
  field: "request_date",
@@ -1,2 +1,2 @@
1
1
  import 'sequelize-typescript';
2
- export { b as appReportCorruption, a as appReportCorruptionAttributes } from '../../appReportCorruption-CWG66n6V.js';
2
+ export { b as appReportCorruption, a as appReportCorruptionAttributes } from '../../appReportCorruption-BsdsQQ1q.js';