@admc-go-th/admc-library 1.0.63 → 1.0.65

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,62 @@
1
+ import { Model } from 'sequelize-typescript';
2
+
3
+ interface memberAttributes {
4
+ id?: number;
5
+ uuid?: string;
6
+ username?: string;
7
+ passwordHash?: string;
8
+ passwordResetToken?: string;
9
+ verificationToken?: string;
10
+ authKey?: string;
11
+ userType?: number;
12
+ email?: string;
13
+ prefix?: string;
14
+ firstName?: string;
15
+ lastName?: string;
16
+ phone?: string;
17
+ job?: string;
18
+ agency?: string;
19
+ position?: string;
20
+ gender?: string;
21
+ status?: number;
22
+ is_2fa?: number;
23
+ lineId?: string;
24
+ facebookId?: string;
25
+ policy?: number;
26
+ terms?: number;
27
+ createdBy?: string;
28
+ createdDate?: Date;
29
+ updatedBy?: string;
30
+ updatedDate?: Date;
31
+ }
32
+ declare class member extends Model<memberAttributes, memberAttributes> implements memberAttributes {
33
+ id?: number;
34
+ uuid?: string;
35
+ username?: string;
36
+ passwordHash?: string;
37
+ passwordResetToken?: string;
38
+ verificationToken?: string;
39
+ authKey?: string;
40
+ userType?: number;
41
+ email?: string;
42
+ prefix?: string;
43
+ firstName?: string;
44
+ lastName?: string;
45
+ phone?: string;
46
+ job?: string;
47
+ agency?: string;
48
+ position?: string;
49
+ gender?: string;
50
+ status?: number;
51
+ is_2fa?: number;
52
+ lineId?: string;
53
+ facebookId?: string;
54
+ policy?: number;
55
+ terms?: number;
56
+ createdBy?: string;
57
+ createdDate?: Date;
58
+ updatedBy?: string;
59
+ updatedDate?: Date;
60
+ }
61
+
62
+ export { member, type memberAttributes };
@@ -0,0 +1,222 @@
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/member.ts
29
+ var member_exports = {};
30
+ __export(member_exports, {
31
+ member: () => member
32
+ });
33
+ module.exports = __toCommonJS(member_exports);
34
+ var import_sequelize_typescript = require("sequelize-typescript");
35
+ var member = 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
+ ], member.prototype, "id", 2);
44
+ __decorateClass([
45
+ (0, import_sequelize_typescript.Column)({
46
+ allowNull: true,
47
+ type: import_sequelize_typescript.DataType.STRING(60)
48
+ })
49
+ ], member.prototype, "uuid", 2);
50
+ __decorateClass([
51
+ (0, import_sequelize_typescript.Column)({
52
+ allowNull: true,
53
+ type: import_sequelize_typescript.DataType.STRING(255)
54
+ })
55
+ ], member.prototype, "username", 2);
56
+ __decorateClass([
57
+ (0, import_sequelize_typescript.Column)({
58
+ field: "password_hash",
59
+ allowNull: true,
60
+ type: import_sequelize_typescript.DataType.STRING(255)
61
+ })
62
+ ], member.prototype, "passwordHash", 2);
63
+ __decorateClass([
64
+ (0, import_sequelize_typescript.Column)({
65
+ field: "password_reset_token",
66
+ allowNull: true,
67
+ type: import_sequelize_typescript.DataType.STRING(255)
68
+ })
69
+ ], member.prototype, "passwordResetToken", 2);
70
+ __decorateClass([
71
+ (0, import_sequelize_typescript.Column)({
72
+ field: "verification_token",
73
+ allowNull: true,
74
+ type: import_sequelize_typescript.DataType.STRING(255)
75
+ })
76
+ ], member.prototype, "verificationToken", 2);
77
+ __decorateClass([
78
+ (0, import_sequelize_typescript.Column)({
79
+ field: "auth_key",
80
+ allowNull: true,
81
+ type: import_sequelize_typescript.DataType.STRING(32)
82
+ })
83
+ ], member.prototype, "authKey", 2);
84
+ __decorateClass([
85
+ (0, import_sequelize_typescript.Column)({
86
+ field: "user_type",
87
+ allowNull: true,
88
+ type: import_sequelize_typescript.DataType.INTEGER
89
+ })
90
+ ], member.prototype, "userType", 2);
91
+ __decorateClass([
92
+ (0, import_sequelize_typescript.Column)({
93
+ allowNull: true,
94
+ type: import_sequelize_typescript.DataType.STRING(255)
95
+ })
96
+ ], member.prototype, "email", 2);
97
+ __decorateClass([
98
+ (0, import_sequelize_typescript.Column)({
99
+ allowNull: true,
100
+ type: import_sequelize_typescript.DataType.STRING(10)
101
+ })
102
+ ], member.prototype, "prefix", 2);
103
+ __decorateClass([
104
+ (0, import_sequelize_typescript.Column)({
105
+ field: "first_name",
106
+ allowNull: true,
107
+ type: import_sequelize_typescript.DataType.STRING(100)
108
+ })
109
+ ], member.prototype, "firstName", 2);
110
+ __decorateClass([
111
+ (0, import_sequelize_typescript.Column)({
112
+ field: "last_name",
113
+ allowNull: true,
114
+ type: import_sequelize_typescript.DataType.STRING(100)
115
+ })
116
+ ], member.prototype, "lastName", 2);
117
+ __decorateClass([
118
+ (0, import_sequelize_typescript.Column)({
119
+ allowNull: true,
120
+ type: import_sequelize_typescript.DataType.STRING(20)
121
+ })
122
+ ], member.prototype, "phone", 2);
123
+ __decorateClass([
124
+ (0, import_sequelize_typescript.Column)({
125
+ allowNull: true,
126
+ type: import_sequelize_typescript.DataType.STRING(255)
127
+ })
128
+ ], member.prototype, "job", 2);
129
+ __decorateClass([
130
+ (0, import_sequelize_typescript.Column)({
131
+ allowNull: true,
132
+ type: import_sequelize_typescript.DataType.STRING(255)
133
+ })
134
+ ], member.prototype, "agency", 2);
135
+ __decorateClass([
136
+ (0, import_sequelize_typescript.Column)({
137
+ allowNull: true,
138
+ type: import_sequelize_typescript.DataType.STRING(255)
139
+ })
140
+ ], member.prototype, "position", 2);
141
+ __decorateClass([
142
+ (0, import_sequelize_typescript.Column)({
143
+ allowNull: true,
144
+ type: import_sequelize_typescript.DataType.STRING(1)
145
+ })
146
+ ], member.prototype, "gender", 2);
147
+ __decorateClass([
148
+ (0, import_sequelize_typescript.Column)({
149
+ allowNull: true,
150
+ type: import_sequelize_typescript.DataType.SMALLINT
151
+ })
152
+ ], member.prototype, "status", 2);
153
+ __decorateClass([
154
+ (0, import_sequelize_typescript.Column)({
155
+ allowNull: true,
156
+ type: import_sequelize_typescript.DataType.INTEGER
157
+ })
158
+ ], member.prototype, "is_2fa", 2);
159
+ __decorateClass([
160
+ (0, import_sequelize_typescript.Column)({
161
+ field: "line_id",
162
+ allowNull: true,
163
+ type: import_sequelize_typescript.DataType.STRING(255)
164
+ })
165
+ ], member.prototype, "lineId", 2);
166
+ __decorateClass([
167
+ (0, import_sequelize_typescript.Column)({
168
+ field: "facebook_id",
169
+ allowNull: true,
170
+ type: import_sequelize_typescript.DataType.STRING(255)
171
+ })
172
+ ], member.prototype, "facebookId", 2);
173
+ __decorateClass([
174
+ (0, import_sequelize_typescript.Column)({
175
+ allowNull: true,
176
+ type: import_sequelize_typescript.DataType.INTEGER
177
+ })
178
+ ], member.prototype, "policy", 2);
179
+ __decorateClass([
180
+ (0, import_sequelize_typescript.Column)({
181
+ allowNull: true,
182
+ type: import_sequelize_typescript.DataType.INTEGER
183
+ })
184
+ ], member.prototype, "terms", 2);
185
+ __decorateClass([
186
+ (0, import_sequelize_typescript.Column)({
187
+ field: "created_by",
188
+ allowNull: true,
189
+ type: import_sequelize_typescript.DataType.STRING(60)
190
+ })
191
+ ], member.prototype, "createdBy", 2);
192
+ __decorateClass([
193
+ (0, import_sequelize_typescript.Column)({
194
+ field: "created_date",
195
+ allowNull: true,
196
+ type: import_sequelize_typescript.DataType.DATE
197
+ })
198
+ ], member.prototype, "createdDate", 2);
199
+ __decorateClass([
200
+ (0, import_sequelize_typescript.Column)({
201
+ field: "updated_by",
202
+ allowNull: true,
203
+ type: import_sequelize_typescript.DataType.STRING(60)
204
+ })
205
+ ], member.prototype, "updatedBy", 2);
206
+ __decorateClass([
207
+ (0, import_sequelize_typescript.Column)({
208
+ field: "updated_date",
209
+ allowNull: true,
210
+ type: import_sequelize_typescript.DataType.DATE
211
+ })
212
+ ], member.prototype, "updatedDate", 2);
213
+ member = __decorateClass([
214
+ (0, import_sequelize_typescript.Table)({
215
+ tableName: "member",
216
+ timestamps: false
217
+ })
218
+ ], member);
219
+ // Annotate the CommonJS export names for ESM import in node:
220
+ 0 && (module.exports = {
221
+ member
222
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@admc-go-th/admc-library",
3
- "version": "1.0.63",
3
+ "version": "1.0.65",
4
4
  "description": "",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",