@admc-go-th/admc-library 1.0.89 → 1.0.90

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.
@@ -0,0 +1,162 @@
1
+ import {
2
+ Model, Table, Column, DataType, Index, Sequelize, ForeignKey
3
+ } from "sequelize-typescript";
4
+
5
+ export interface appQueueAttributes {
6
+ id?: number;
7
+ uuid?: string;
8
+ requestDate?: Date;
9
+ approveDate?: Date;
10
+ fullName?: string;
11
+ residence?: number;
12
+ occupation?: string;
13
+ phoneNumber?: string;
14
+ email?: string;
15
+ lineId?: string;
16
+ consultChannel?: string;
17
+ consultTopic?: string;
18
+ blackCaseNumber?: string;
19
+ redCaseNumber?: string;
20
+ ipAddress?: string;
21
+ createdBy?: string;
22
+ createdDate?: Date;
23
+ updatedBy?: string;
24
+ updatedDate?: Date;
25
+ }
26
+
27
+ @Table({
28
+ tableName: "app_queue",
29
+ timestamps: false
30
+ })
31
+ export class appQueue extends Model<appQueueAttributes, appQueueAttributes> implements appQueueAttributes {
32
+
33
+ @Column({
34
+ primaryKey: true,
35
+ autoIncrement: true,
36
+ type: DataType.INTEGER
37
+ })
38
+ declare id?: number;
39
+
40
+ @Column({
41
+ allowNull: true,
42
+ type: DataType.STRING(60)
43
+ })
44
+ declare uuid?: string;
45
+
46
+ @Column({
47
+ field: "request_date",
48
+ allowNull: true,
49
+ type: DataType.DATE
50
+ })
51
+ declare requestDate?: Date;
52
+
53
+ @Column({
54
+ field: "approve_date",
55
+ allowNull: true,
56
+ type: DataType.DATE
57
+ })
58
+ declare approveDate?: Date;
59
+
60
+ @Column({
61
+ field: "full_name",
62
+ allowNull: true,
63
+ type: DataType.STRING(255)
64
+ })
65
+ declare fullName?: string;
66
+
67
+ @Column({
68
+ allowNull: true,
69
+ type: DataType.INTEGER
70
+ })
71
+ declare residence?: number;
72
+
73
+ @Column({
74
+ allowNull: true,
75
+ type: DataType.STRING(100)
76
+ })
77
+ declare occupation?: string;
78
+
79
+ @Column({
80
+ field: "phone_number",
81
+ allowNull: true,
82
+ type: DataType.STRING(20)
83
+ })
84
+ declare phoneNumber?: string;
85
+
86
+ @Column({
87
+ allowNull: true,
88
+ type: DataType.STRING(150)
89
+ })
90
+ declare email?: string;
91
+
92
+ @Column({
93
+ field: "line_id",
94
+ allowNull: true,
95
+ type: DataType.STRING(100)
96
+ })
97
+ declare lineId?: string;
98
+
99
+ @Column({
100
+ field: "consult_channel",
101
+ allowNull: true,
102
+ type: DataType.STRING(100)
103
+ })
104
+ declare consultChannel?: string;
105
+
106
+ @Column({
107
+ field: "consult_topic",
108
+ allowNull: true,
109
+ type: DataType.STRING
110
+ })
111
+ declare consultTopic?: string;
112
+
113
+ @Column({
114
+ field: "black_case_number",
115
+ allowNull: true,
116
+ type: DataType.STRING(50)
117
+ })
118
+ declare blackCaseNumber?: string;
119
+
120
+ @Column({
121
+ field: "red_case_number",
122
+ allowNull: true,
123
+ type: DataType.STRING(50)
124
+ })
125
+ declare redCaseNumber?: string;
126
+
127
+ @Column({
128
+ field: "ip_address",
129
+ allowNull: true,
130
+ type: DataType.STRING(30)
131
+ })
132
+ declare ipAddress?: string;
133
+
134
+ @Column({
135
+ field: "created_by",
136
+ allowNull: true,
137
+ type: DataType.STRING(60)
138
+ })
139
+ declare createdBy?: string;
140
+
141
+ @Column({
142
+ field: "created_date",
143
+ allowNull: true,
144
+ type: DataType.DATE
145
+ })
146
+ declare createdDate?: Date;
147
+
148
+ @Column({
149
+ field: "updated_by",
150
+ allowNull: true,
151
+ type: DataType.STRING(60)
152
+ })
153
+ declare updatedBy?: string;
154
+
155
+ @Column({
156
+ field: "updated_date",
157
+ allowNull: true,
158
+ type: DataType.DATE
159
+ })
160
+ declare updatedDate?: Date;
161
+
162
+ }
@@ -0,0 +1,148 @@
1
+ import {
2
+ Model, Table, Column, DataType, Index, Sequelize, ForeignKey
3
+ } from "sequelize-typescript";
4
+
5
+ export interface appQueueTourAttributes {
6
+ id?: number;
7
+ uuid?: string;
8
+ requestDate?: Date;
9
+ approveDate?: Date;
10
+ timeSlot?: number;
11
+ organizationType?: number;
12
+ organizationName?: string;
13
+ contactPerson?: string;
14
+ phoneNumber?: string;
15
+ email?: string;
16
+ lineId?: string;
17
+ participantsCount?: number;
18
+ ipAddress?: string;
19
+ createdBy?: string;
20
+ createdDate?: Date;
21
+ updatedBy?: string;
22
+ updatedDate?: Date;
23
+ }
24
+
25
+ @Table({
26
+ tableName: "app_queue_tour",
27
+ timestamps: false
28
+ })
29
+ export class appQueueTour extends Model<appQueueTourAttributes, appQueueTourAttributes> implements appQueueTourAttributes {
30
+
31
+ @Column({
32
+ primaryKey: true,
33
+ autoIncrement: true,
34
+ type: DataType.INTEGER
35
+ })
36
+ declare id?: number;
37
+
38
+ @Column({
39
+ allowNull: true,
40
+ type: DataType.STRING(60)
41
+ })
42
+ declare uuid?: string;
43
+
44
+ @Column({
45
+ field: "request_date",
46
+ allowNull: true,
47
+ type: DataType.DATE
48
+ })
49
+ declare requestDate?: Date;
50
+
51
+ @Column({
52
+ field: "approve_date",
53
+ allowNull: true,
54
+ type: DataType.DATE
55
+ })
56
+ declare approveDate?: Date;
57
+
58
+ @Column({
59
+ field: "time_slot",
60
+ allowNull: true,
61
+ type: DataType.INTEGER
62
+ })
63
+ declare timeSlot?: number;
64
+
65
+ @Column({
66
+ field: "organization_type",
67
+ allowNull: true,
68
+ type: DataType.INTEGER
69
+ })
70
+ declare organizationType?: number;
71
+
72
+ @Column({
73
+ field: "organization_name",
74
+ allowNull: true,
75
+ type: DataType.STRING(255)
76
+ })
77
+ declare organizationName?: string;
78
+
79
+ @Column({
80
+ field: "contact_person",
81
+ allowNull: true,
82
+ type: DataType.STRING(150)
83
+ })
84
+ declare contactPerson?: string;
85
+
86
+ @Column({
87
+ field: "phone_number",
88
+ allowNull: true,
89
+ type: DataType.STRING(20)
90
+ })
91
+ declare phoneNumber?: string;
92
+
93
+ @Column({
94
+ allowNull: true,
95
+ type: DataType.STRING(150)
96
+ })
97
+ declare email?: string;
98
+
99
+ @Column({
100
+ field: "line_id",
101
+ allowNull: true,
102
+ type: DataType.STRING(100)
103
+ })
104
+ declare lineId?: string;
105
+
106
+ @Column({
107
+ field: "participants_count",
108
+ allowNull: true,
109
+ type: DataType.INTEGER
110
+ })
111
+ declare participantsCount?: number;
112
+
113
+ @Column({
114
+ field: "ip_address",
115
+ allowNull: true,
116
+ type: DataType.STRING(30)
117
+ })
118
+ declare ipAddress?: string;
119
+
120
+ @Column({
121
+ field: "created_by",
122
+ allowNull: true,
123
+ type: DataType.STRING(60)
124
+ })
125
+ declare createdBy?: string;
126
+
127
+ @Column({
128
+ field: "created_date",
129
+ allowNull: true,
130
+ type: DataType.DATE
131
+ })
132
+ declare createdDate?: Date;
133
+
134
+ @Column({
135
+ field: "updated_by",
136
+ allowNull: true,
137
+ type: DataType.STRING(60)
138
+ })
139
+ declare updatedBy?: string;
140
+
141
+ @Column({
142
+ field: "updated_date",
143
+ allowNull: true,
144
+ type: DataType.DATE
145
+ })
146
+ declare updatedDate?: Date;
147
+
148
+ }
@@ -0,0 +1,166 @@
1
+ import {
2
+ Model, Table, Column, DataType, Index, Sequelize, ForeignKey
3
+ } from "sequelize-typescript";
4
+
5
+ export interface appReportCorruptionAttributes {
6
+ id?: number;
7
+ uuid?: string;
8
+ code?: string;
9
+ title?: string;
10
+ detail?: string;
11
+ prefix?: string;
12
+ firstName?: string;
13
+ lastName?: string;
14
+ idCard?: string;
15
+ address?: string;
16
+ provinceId?: number;
17
+ phoneNumber?: string;
18
+ email?: string;
19
+ occupation?: string;
20
+ isRequestPostOffice?: number;
21
+ ipAddress?: string;
22
+ createdBy?: string;
23
+ createdDate?: Date;
24
+ updatedBy?: string;
25
+ updatedDate?: Date;
26
+ }
27
+
28
+ @Table({
29
+ tableName: "app_report_corruption",
30
+ timestamps: false
31
+ })
32
+ export class appReportCorruption extends Model<appReportCorruptionAttributes, appReportCorruptionAttributes> implements appReportCorruptionAttributes {
33
+
34
+ @Column({
35
+ primaryKey: true,
36
+ autoIncrement: true,
37
+ type: DataType.INTEGER
38
+ })
39
+ declare id?: number;
40
+
41
+ @Column({
42
+ allowNull: true,
43
+ type: DataType.STRING(60)
44
+ })
45
+ declare uuid?: string;
46
+
47
+ @Column({
48
+ allowNull: true,
49
+ type: DataType.STRING(10)
50
+ })
51
+ declare code?: string;
52
+
53
+ @Column({
54
+ allowNull: true,
55
+ type: DataType.STRING(255)
56
+ })
57
+ declare title?: string;
58
+
59
+ @Column({
60
+ allowNull: true,
61
+ type: DataType.STRING
62
+ })
63
+ declare detail?: string;
64
+
65
+ @Column({
66
+ allowNull: true,
67
+ type: DataType.STRING(10)
68
+ })
69
+ declare prefix?: string;
70
+
71
+ @Column({
72
+ field: "first_name",
73
+ allowNull: true,
74
+ type: DataType.STRING(100)
75
+ })
76
+ declare firstName?: string;
77
+
78
+ @Column({
79
+ field: "last_name",
80
+ allowNull: true,
81
+ type: DataType.STRING(100)
82
+ })
83
+ declare lastName?: string;
84
+
85
+ @Column({
86
+ field: "id_card",
87
+ allowNull: true,
88
+ type: DataType.STRING(20)
89
+ })
90
+ declare idCard?: string;
91
+
92
+ @Column({
93
+ allowNull: true,
94
+ type: DataType.STRING
95
+ })
96
+ declare address?: string;
97
+
98
+ @Column({
99
+ field: "province_id",
100
+ allowNull: true,
101
+ type: DataType.INTEGER
102
+ })
103
+ declare provinceId?: number;
104
+
105
+ @Column({
106
+ field: "phone_number",
107
+ allowNull: true,
108
+ type: DataType.STRING(20)
109
+ })
110
+ declare phoneNumber?: string;
111
+
112
+ @Column({
113
+ allowNull: true,
114
+ type: DataType.STRING(150)
115
+ })
116
+ declare email?: string;
117
+
118
+ @Column({
119
+ allowNull: true,
120
+ type: DataType.STRING(100)
121
+ })
122
+ declare occupation?: string;
123
+
124
+ @Column({
125
+ field: "is_request_post_office",
126
+ allowNull: true,
127
+ type: DataType.INTEGER
128
+ })
129
+ declare isRequestPostOffice?: number;
130
+
131
+ @Column({
132
+ field: "ip_address",
133
+ allowNull: true,
134
+ type: DataType.STRING(30)
135
+ })
136
+ declare ipAddress?: string;
137
+
138
+ @Column({
139
+ field: "created_by",
140
+ allowNull: true,
141
+ type: DataType.STRING(60)
142
+ })
143
+ declare createdBy?: string;
144
+
145
+ @Column({
146
+ field: "created_date",
147
+ allowNull: true,
148
+ type: DataType.DATE
149
+ })
150
+ declare createdDate?: Date;
151
+
152
+ @Column({
153
+ field: "updated_by",
154
+ allowNull: true,
155
+ type: DataType.STRING(60)
156
+ })
157
+ declare updatedBy?: string;
158
+
159
+ @Column({
160
+ field: "updated_date",
161
+ allowNull: true,
162
+ type: DataType.DATE
163
+ })
164
+ declare updatedDate?: Date;
165
+
166
+ }
@@ -1,6 +1,9 @@
1
1
  export * from "./appBlessings";
2
2
  export * from "./appBlessingsTransaction";
3
3
  export * from "./appFaq";
4
+ export * from "./appQueue";
5
+ export * from "./appQueueTour";
6
+ export * from "./appReportCorruption";
4
7
  export * from "./authAssignment";
5
8
  export * from "./authItem";
6
9
  export * from "./authItemChild";
@@ -0,0 +1,46 @@
1
+ import { Model } from 'sequelize-typescript';
2
+
3
+ interface appQueueAttributes {
4
+ id?: number;
5
+ uuid?: string;
6
+ requestDate?: Date;
7
+ approveDate?: Date;
8
+ fullName?: string;
9
+ residence?: number;
10
+ occupation?: string;
11
+ phoneNumber?: string;
12
+ email?: string;
13
+ lineId?: string;
14
+ consultChannel?: string;
15
+ consultTopic?: string;
16
+ blackCaseNumber?: string;
17
+ redCaseNumber?: string;
18
+ ipAddress?: string;
19
+ createdBy?: string;
20
+ createdDate?: Date;
21
+ updatedBy?: string;
22
+ updatedDate?: Date;
23
+ }
24
+ declare class appQueue extends Model<appQueueAttributes, appQueueAttributes> implements appQueueAttributes {
25
+ id?: number;
26
+ uuid?: string;
27
+ requestDate?: Date;
28
+ approveDate?: Date;
29
+ fullName?: string;
30
+ residence?: number;
31
+ occupation?: string;
32
+ phoneNumber?: string;
33
+ email?: string;
34
+ lineId?: string;
35
+ consultChannel?: string;
36
+ consultTopic?: string;
37
+ blackCaseNumber?: string;
38
+ redCaseNumber?: string;
39
+ ipAddress?: string;
40
+ createdBy?: string;
41
+ createdDate?: Date;
42
+ updatedBy?: string;
43
+ updatedDate?: Date;
44
+ }
45
+
46
+ export { appQueue, type appQueueAttributes };
@@ -0,0 +1,175 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var __decorateClass = (decorators, target, key, kind) => {
20
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
21
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
22
+ if (decorator = decorators[i])
23
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
24
+ if (kind && result) __defProp(target, key, result);
25
+ return result;
26
+ };
27
+
28
+ // src/databases/tables/appQueue.ts
29
+ var appQueue_exports = {};
30
+ __export(appQueue_exports, {
31
+ appQueue: () => appQueue
32
+ });
33
+ module.exports = __toCommonJS(appQueue_exports);
34
+ var import_sequelize_typescript = require("sequelize-typescript");
35
+ var appQueue = class extends import_sequelize_typescript.Model {
36
+ };
37
+ __decorateClass([
38
+ (0, import_sequelize_typescript.Column)({
39
+ primaryKey: true,
40
+ autoIncrement: true,
41
+ type: import_sequelize_typescript.DataType.INTEGER
42
+ })
43
+ ], appQueue.prototype, "id", 2);
44
+ __decorateClass([
45
+ (0, import_sequelize_typescript.Column)({
46
+ allowNull: true,
47
+ type: import_sequelize_typescript.DataType.STRING(60)
48
+ })
49
+ ], appQueue.prototype, "uuid", 2);
50
+ __decorateClass([
51
+ (0, import_sequelize_typescript.Column)({
52
+ field: "request_date",
53
+ allowNull: true,
54
+ type: import_sequelize_typescript.DataType.DATE
55
+ })
56
+ ], appQueue.prototype, "requestDate", 2);
57
+ __decorateClass([
58
+ (0, import_sequelize_typescript.Column)({
59
+ field: "approve_date",
60
+ allowNull: true,
61
+ type: import_sequelize_typescript.DataType.DATE
62
+ })
63
+ ], appQueue.prototype, "approveDate", 2);
64
+ __decorateClass([
65
+ (0, import_sequelize_typescript.Column)({
66
+ field: "full_name",
67
+ allowNull: true,
68
+ type: import_sequelize_typescript.DataType.STRING(255)
69
+ })
70
+ ], appQueue.prototype, "fullName", 2);
71
+ __decorateClass([
72
+ (0, import_sequelize_typescript.Column)({
73
+ allowNull: true,
74
+ type: import_sequelize_typescript.DataType.INTEGER
75
+ })
76
+ ], appQueue.prototype, "residence", 2);
77
+ __decorateClass([
78
+ (0, import_sequelize_typescript.Column)({
79
+ allowNull: true,
80
+ type: import_sequelize_typescript.DataType.STRING(100)
81
+ })
82
+ ], appQueue.prototype, "occupation", 2);
83
+ __decorateClass([
84
+ (0, import_sequelize_typescript.Column)({
85
+ field: "phone_number",
86
+ allowNull: true,
87
+ type: import_sequelize_typescript.DataType.STRING(20)
88
+ })
89
+ ], appQueue.prototype, "phoneNumber", 2);
90
+ __decorateClass([
91
+ (0, import_sequelize_typescript.Column)({
92
+ allowNull: true,
93
+ type: import_sequelize_typescript.DataType.STRING(150)
94
+ })
95
+ ], appQueue.prototype, "email", 2);
96
+ __decorateClass([
97
+ (0, import_sequelize_typescript.Column)({
98
+ field: "line_id",
99
+ allowNull: true,
100
+ type: import_sequelize_typescript.DataType.STRING(100)
101
+ })
102
+ ], appQueue.prototype, "lineId", 2);
103
+ __decorateClass([
104
+ (0, import_sequelize_typescript.Column)({
105
+ field: "consult_channel",
106
+ allowNull: true,
107
+ type: import_sequelize_typescript.DataType.STRING(100)
108
+ })
109
+ ], appQueue.prototype, "consultChannel", 2);
110
+ __decorateClass([
111
+ (0, import_sequelize_typescript.Column)({
112
+ field: "consult_topic",
113
+ allowNull: true,
114
+ type: import_sequelize_typescript.DataType.STRING
115
+ })
116
+ ], appQueue.prototype, "consultTopic", 2);
117
+ __decorateClass([
118
+ (0, import_sequelize_typescript.Column)({
119
+ field: "black_case_number",
120
+ allowNull: true,
121
+ type: import_sequelize_typescript.DataType.STRING(50)
122
+ })
123
+ ], appQueue.prototype, "blackCaseNumber", 2);
124
+ __decorateClass([
125
+ (0, import_sequelize_typescript.Column)({
126
+ field: "red_case_number",
127
+ allowNull: true,
128
+ type: import_sequelize_typescript.DataType.STRING(50)
129
+ })
130
+ ], appQueue.prototype, "redCaseNumber", 2);
131
+ __decorateClass([
132
+ (0, import_sequelize_typescript.Column)({
133
+ field: "ip_address",
134
+ allowNull: true,
135
+ type: import_sequelize_typescript.DataType.STRING(30)
136
+ })
137
+ ], appQueue.prototype, "ipAddress", 2);
138
+ __decorateClass([
139
+ (0, import_sequelize_typescript.Column)({
140
+ field: "created_by",
141
+ allowNull: true,
142
+ type: import_sequelize_typescript.DataType.STRING(60)
143
+ })
144
+ ], appQueue.prototype, "createdBy", 2);
145
+ __decorateClass([
146
+ (0, import_sequelize_typescript.Column)({
147
+ field: "created_date",
148
+ allowNull: true,
149
+ type: import_sequelize_typescript.DataType.DATE
150
+ })
151
+ ], appQueue.prototype, "createdDate", 2);
152
+ __decorateClass([
153
+ (0, import_sequelize_typescript.Column)({
154
+ field: "updated_by",
155
+ allowNull: true,
156
+ type: import_sequelize_typescript.DataType.STRING(60)
157
+ })
158
+ ], appQueue.prototype, "updatedBy", 2);
159
+ __decorateClass([
160
+ (0, import_sequelize_typescript.Column)({
161
+ field: "updated_date",
162
+ allowNull: true,
163
+ type: import_sequelize_typescript.DataType.DATE
164
+ })
165
+ ], appQueue.prototype, "updatedDate", 2);
166
+ appQueue = __decorateClass([
167
+ (0, import_sequelize_typescript.Table)({
168
+ tableName: "app_queue",
169
+ timestamps: false
170
+ })
171
+ ], appQueue);
172
+ // Annotate the CommonJS export names for ESM import in node:
173
+ 0 && (module.exports = {
174
+ appQueue
175
+ });