@admc-go-th/admc-library 1.0.11 → 1.0.13

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.
@@ -3,9 +3,8 @@ import { Model } from 'sequelize-typescript';
3
3
  interface authItemAttributes {
4
4
  keyName: string;
5
5
  type: number;
6
- display?: string;
6
+ display: string;
7
7
  description?: string;
8
- data?: Uint8Array;
9
8
  status?: number;
10
9
  createdBy?: string;
11
10
  createdDate?: Date;
@@ -15,9 +14,8 @@ interface authItemAttributes {
15
14
  declare class authItem extends Model<authItemAttributes, authItemAttributes> implements authItemAttributes {
16
15
  keyName: string;
17
16
  type: number;
18
- display?: string;
17
+ display: string;
19
18
  description?: string;
20
- data?: Uint8Array;
21
19
  status?: number;
22
20
  createdBy?: string;
23
21
  createdDate?: Date;
@@ -48,7 +48,6 @@ __decorateClass([
48
48
  ], authItem.prototype, "type", 2);
49
49
  __decorateClass([
50
50
  (0, import_sequelize_typescript.Column)({
51
- allowNull: true,
52
51
  type: import_sequelize_typescript.DataType.STRING(255)
53
52
  })
54
53
  ], authItem.prototype, "display", 2);
@@ -58,12 +57,6 @@ __decorateClass([
58
57
  type: import_sequelize_typescript.DataType.STRING
59
58
  })
60
59
  ], authItem.prototype, "description", 2);
61
- __decorateClass([
62
- (0, import_sequelize_typescript.Column)({
63
- allowNull: true,
64
- type: import_sequelize_typescript.DataType.BLOB
65
- })
66
- ], authItem.prototype, "data", 2);
67
60
  __decorateClass([
68
61
  (0, import_sequelize_typescript.Column)({
69
62
  allowNull: true,
@@ -2,7 +2,7 @@ import { Model } from 'sequelize-typescript';
2
2
 
3
3
  interface authRoleAttributes {
4
4
  id?: number;
5
- name?: string;
5
+ name: string;
6
6
  createdBy?: string;
7
7
  createdDate?: Date;
8
8
  updatedBy?: string;
@@ -10,7 +10,7 @@ interface authRoleAttributes {
10
10
  }
11
11
  declare class authRole extends Model<authRoleAttributes, authRoleAttributes> implements authRoleAttributes {
12
12
  id?: number;
13
- name?: string;
13
+ name: string;
14
14
  createdBy?: string;
15
15
  createdDate?: Date;
16
16
  updatedBy?: string;
@@ -43,7 +43,6 @@ __decorateClass([
43
43
  ], authRole.prototype, "id", 2);
44
44
  __decorateClass([
45
45
  (0, import_sequelize_typescript.Column)({
46
- allowNull: true,
47
46
  type: import_sequelize_typescript.DataType.STRING(255)
48
47
  })
49
48
  ], authRole.prototype, "name", 2);
@@ -112,7 +112,6 @@ __decorateClass([
112
112
  ], authItem.prototype, "type", 2);
113
113
  __decorateClass([
114
114
  (0, import_sequelize_typescript2.Column)({
115
- allowNull: true,
116
115
  type: import_sequelize_typescript2.DataType.STRING(255)
117
116
  })
118
117
  ], authItem.prototype, "display", 2);
@@ -122,12 +121,6 @@ __decorateClass([
122
121
  type: import_sequelize_typescript2.DataType.STRING
123
122
  })
124
123
  ], authItem.prototype, "description", 2);
125
- __decorateClass([
126
- (0, import_sequelize_typescript2.Column)({
127
- allowNull: true,
128
- type: import_sequelize_typescript2.DataType.BLOB
129
- })
130
- ], authItem.prototype, "data", 2);
131
124
  __decorateClass([
132
125
  (0, import_sequelize_typescript2.Column)({
133
126
  allowNull: true,
@@ -206,7 +199,6 @@ __decorateClass([
206
199
  ], authRole.prototype, "id", 2);
207
200
  __decorateClass([
208
201
  (0, import_sequelize_typescript4.Column)({
209
- allowNull: true,
210
202
  type: import_sequelize_typescript4.DataType.STRING(255)
211
203
  })
212
204
  ], authRole.prototype, "name", 2);
@@ -400,7 +392,6 @@ __decorateClass([
400
392
  ], mdContentGroup.prototype, "id", 2);
401
393
  __decorateClass([
402
394
  (0, import_sequelize_typescript7.Column)({
403
- allowNull: true,
404
395
  type: import_sequelize_typescript7.DataType.STRING(255)
405
396
  })
406
397
  ], mdContentGroup.prototype, "name", 2);
@@ -458,7 +449,7 @@ __decorateClass([
458
449
  ], menu.prototype, "id", 2);
459
450
  __decorateClass([
460
451
  (0, import_sequelize_typescript8.Column)({
461
- allowNull: true
452
+ type: import_sequelize_typescript8.DataType.STRING(60)
462
453
  })
463
454
  ], menu.prototype, "uuid", 2);
464
455
  __decorateClass([
@@ -529,7 +520,6 @@ __decorateClass([
529
520
  ], msModule.prototype, "id", 2);
530
521
  __decorateClass([
531
522
  (0, import_sequelize_typescript9.Column)({
532
- allowNull: true,
533
523
  type: import_sequelize_typescript9.DataType.STRING(100)
534
524
  })
535
525
  ], msModule.prototype, "name", 2);
@@ -581,14 +571,12 @@ __decorateClass([
581
571
  ], users.prototype, "id", 2);
582
572
  __decorateClass([
583
573
  (0, import_sequelize_typescript10.Column)({
584
- allowNull: true,
585
574
  type: import_sequelize_typescript10.DataType.STRING(60)
586
575
  })
587
576
  ], users.prototype, "uuid", 2);
588
577
  __decorateClass([
589
578
  (0, import_sequelize_typescript10.Column)({
590
- allowNull: true,
591
- type: import_sequelize_typescript10.DataType.STRING(255)
579
+ type: import_sequelize_typescript10.DataType.STRING(100)
592
580
  })
593
581
  ], users.prototype, "username", 2);
594
582
  __decorateClass([
@@ -2,7 +2,7 @@ import { Model } from 'sequelize-typescript';
2
2
 
3
3
  interface mdContentGroupAttributes {
4
4
  id?: number;
5
- name?: string;
5
+ name: string;
6
6
  description?: string;
7
7
  createdBy?: string;
8
8
  createdDate?: Date;
@@ -11,7 +11,7 @@ interface mdContentGroupAttributes {
11
11
  }
12
12
  declare class mdContentGroup extends Model<mdContentGroupAttributes, mdContentGroupAttributes> implements mdContentGroupAttributes {
13
13
  id?: number;
14
- name?: string;
14
+ name: string;
15
15
  description?: string;
16
16
  createdBy?: string;
17
17
  createdDate?: Date;
@@ -43,7 +43,6 @@ __decorateClass([
43
43
  ], mdContentGroup.prototype, "id", 2);
44
44
  __decorateClass([
45
45
  (0, import_sequelize_typescript.Column)({
46
- allowNull: true,
47
46
  type: import_sequelize_typescript.DataType.STRING(255)
48
47
  })
49
48
  ], mdContentGroup.prototype, "name", 2);
@@ -2,7 +2,7 @@ import { Model } from 'sequelize-typescript';
2
2
 
3
3
  interface menuAttributes {
4
4
  id?: number;
5
- uuid?: any;
5
+ uuid: string;
6
6
  itemName?: string;
7
7
  display?: string;
8
8
  moduleId?: number;
@@ -13,7 +13,7 @@ interface menuAttributes {
13
13
  }
14
14
  declare class menu extends Model<menuAttributes, menuAttributes> implements menuAttributes {
15
15
  id?: number;
16
- uuid?: any;
16
+ uuid: string;
17
17
  itemName?: string;
18
18
  display?: string;
19
19
  moduleId?: number;
@@ -43,7 +43,7 @@ __decorateClass([
43
43
  ], menu.prototype, "id", 2);
44
44
  __decorateClass([
45
45
  (0, import_sequelize_typescript.Column)({
46
- allowNull: true
46
+ type: import_sequelize_typescript.DataType.STRING(60)
47
47
  })
48
48
  ], menu.prototype, "uuid", 2);
49
49
  __decorateClass([
@@ -2,7 +2,7 @@ import { Model } from 'sequelize-typescript';
2
2
 
3
3
  interface msModuleAttributes {
4
4
  id?: number;
5
- name?: string;
5
+ name: string;
6
6
  createdBy?: string;
7
7
  createdDate?: Date;
8
8
  updatedBy?: string;
@@ -10,7 +10,7 @@ interface msModuleAttributes {
10
10
  }
11
11
  declare class msModule extends Model<msModuleAttributes, msModuleAttributes> implements msModuleAttributes {
12
12
  id?: number;
13
- name?: string;
13
+ name: string;
14
14
  createdBy?: string;
15
15
  createdDate?: Date;
16
16
  updatedBy?: string;
@@ -43,7 +43,6 @@ __decorateClass([
43
43
  ], msModule.prototype, "id", 2);
44
44
  __decorateClass([
45
45
  (0, import_sequelize_typescript.Column)({
46
- allowNull: true,
47
46
  type: import_sequelize_typescript.DataType.STRING(100)
48
47
  })
49
48
  ], msModule.prototype, "name", 2);
@@ -2,8 +2,8 @@ import { Model } from 'sequelize-typescript';
2
2
 
3
3
  interface usersAttributes {
4
4
  id?: number;
5
- uuid?: string;
6
- username?: string;
5
+ uuid: string;
6
+ username: string;
7
7
  passwordHash?: string;
8
8
  passwordResetToken?: string;
9
9
  verificationToken?: string;
@@ -25,8 +25,8 @@ interface usersAttributes {
25
25
  }
26
26
  declare class users extends Model<usersAttributes, usersAttributes> implements usersAttributes {
27
27
  id?: number;
28
- uuid?: string;
29
- username?: string;
28
+ uuid: string;
29
+ username: string;
30
30
  passwordHash?: string;
31
31
  passwordResetToken?: string;
32
32
  verificationToken?: string;
@@ -43,14 +43,12 @@ __decorateClass([
43
43
  ], users.prototype, "id", 2);
44
44
  __decorateClass([
45
45
  (0, import_sequelize_typescript.Column)({
46
- allowNull: true,
47
46
  type: import_sequelize_typescript.DataType.STRING(60)
48
47
  })
49
48
  ], users.prototype, "uuid", 2);
50
49
  __decorateClass([
51
50
  (0, import_sequelize_typescript.Column)({
52
- allowNull: true,
53
- type: import_sequelize_typescript.DataType.STRING(255)
51
+ type: import_sequelize_typescript.DataType.STRING(100)
54
52
  })
55
53
  ], users.prototype, "username", 2);
56
54
  __decorateClass([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@admc-go-th/admc-library",
3
- "version": "1.0.11",
3
+ "version": "1.0.13",
4
4
  "description": "",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",