@admc-go-th/admc-library 1.0.113 → 1.0.114

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.
@@ -2,13 +2,21 @@ import { Model } from 'sequelize-typescript';
2
2
 
3
3
  interface msExecutiveAttributes {
4
4
  id?: number;
5
+ groupId?: number;
6
+ positionId?: number;
7
+ positionOther?: string;
5
8
  titleId?: number;
6
9
  firstName?: string;
7
10
  lastName?: string;
8
- firstNameEn?: string;
9
- lastNameEn?: string;
10
11
  email?: string;
12
+ phone?: string;
13
+ fax?: string;
14
+ education?: string;
15
+ experience?: string;
16
+ image?: string;
17
+ sort?: number;
11
18
  status?: string;
19
+ info?: object;
12
20
  createdBy?: string;
13
21
  createdDate?: Date;
14
22
  updatedBy?: string;
@@ -16,13 +24,21 @@ interface msExecutiveAttributes {
16
24
  }
17
25
  declare class msExecutive extends Model<msExecutiveAttributes, msExecutiveAttributes> implements msExecutiveAttributes {
18
26
  id?: number;
27
+ groupId?: number;
28
+ positionId?: number;
29
+ positionOther?: string;
19
30
  titleId?: number;
20
31
  firstName?: string;
21
32
  lastName?: string;
22
- firstNameEn?: string;
23
- lastNameEn?: string;
24
33
  email?: string;
34
+ phone?: string;
35
+ fax?: string;
36
+ education?: string;
37
+ experience?: string;
38
+ image?: string;
39
+ sort?: number;
25
40
  status?: string;
41
+ info?: object;
26
42
  createdBy?: string;
27
43
  createdDate?: Date;
28
44
  updatedBy?: string;
@@ -41,6 +41,27 @@ __decorateClass([
41
41
  type: import_sequelize_typescript.DataType.INTEGER
42
42
  })
43
43
  ], msExecutive.prototype, "id", 2);
44
+ __decorateClass([
45
+ (0, import_sequelize_typescript.Column)({
46
+ field: "group_id",
47
+ allowNull: true,
48
+ type: import_sequelize_typescript.DataType.INTEGER
49
+ })
50
+ ], msExecutive.prototype, "groupId", 2);
51
+ __decorateClass([
52
+ (0, import_sequelize_typescript.Column)({
53
+ field: "position_id",
54
+ allowNull: true,
55
+ type: import_sequelize_typescript.DataType.INTEGER
56
+ })
57
+ ], msExecutive.prototype, "positionId", 2);
58
+ __decorateClass([
59
+ (0, import_sequelize_typescript.Column)({
60
+ field: "position_other",
61
+ allowNull: true,
62
+ type: import_sequelize_typescript.DataType.STRING(255)
63
+ })
64
+ ], msExecutive.prototype, "positionOther", 2);
44
65
  __decorateClass([
45
66
  (0, import_sequelize_typescript.Column)({
46
67
  field: "title_id",
@@ -64,30 +85,58 @@ __decorateClass([
64
85
  ], msExecutive.prototype, "lastName", 2);
65
86
  __decorateClass([
66
87
  (0, import_sequelize_typescript.Column)({
67
- field: "first_name_en",
68
88
  allowNull: true,
69
89
  type: import_sequelize_typescript.DataType.STRING(255)
70
90
  })
71
- ], msExecutive.prototype, "firstNameEn", 2);
91
+ ], msExecutive.prototype, "email", 2);
72
92
  __decorateClass([
73
93
  (0, import_sequelize_typescript.Column)({
74
- field: "last_name_en",
75
94
  allowNull: true,
76
95
  type: import_sequelize_typescript.DataType.STRING(255)
77
96
  })
78
- ], msExecutive.prototype, "lastNameEn", 2);
97
+ ], msExecutive.prototype, "phone", 2);
79
98
  __decorateClass([
80
99
  (0, import_sequelize_typescript.Column)({
81
100
  allowNull: true,
82
101
  type: import_sequelize_typescript.DataType.STRING(255)
83
102
  })
84
- ], msExecutive.prototype, "email", 2);
103
+ ], msExecutive.prototype, "fax", 2);
104
+ __decorateClass([
105
+ (0, import_sequelize_typescript.Column)({
106
+ allowNull: true,
107
+ type: import_sequelize_typescript.DataType.STRING(255)
108
+ })
109
+ ], msExecutive.prototype, "education", 2);
110
+ __decorateClass([
111
+ (0, import_sequelize_typescript.Column)({
112
+ allowNull: true,
113
+ type: import_sequelize_typescript.DataType.STRING(255)
114
+ })
115
+ ], msExecutive.prototype, "experience", 2);
116
+ __decorateClass([
117
+ (0, import_sequelize_typescript.Column)({
118
+ allowNull: true,
119
+ type: import_sequelize_typescript.DataType.STRING(255)
120
+ })
121
+ ], msExecutive.prototype, "image", 2);
122
+ __decorateClass([
123
+ (0, import_sequelize_typescript.Column)({
124
+ allowNull: true,
125
+ type: import_sequelize_typescript.DataType.INTEGER
126
+ })
127
+ ], msExecutive.prototype, "sort", 2);
85
128
  __decorateClass([
86
129
  (0, import_sequelize_typescript.Column)({
87
130
  allowNull: true,
88
131
  type: import_sequelize_typescript.DataType.STRING(255)
89
132
  })
90
133
  ], msExecutive.prototype, "status", 2);
134
+ __decorateClass([
135
+ (0, import_sequelize_typescript.Column)({
136
+ allowNull: true,
137
+ type: import_sequelize_typescript.DataType.JSON
138
+ })
139
+ ], msExecutive.prototype, "info", 2);
91
140
  __decorateClass([
92
141
  (0, import_sequelize_typescript.Column)({
93
142
  field: "created_by",
@@ -0,0 +1,34 @@
1
+ import { Model } from 'sequelize-typescript';
2
+
3
+ interface msExecutiveGroupAttributes {
4
+ id?: number;
5
+ uuid?: string;
6
+ name?: string;
7
+ description?: string;
8
+ startDate?: string;
9
+ endDate?: string;
10
+ sort?: number;
11
+ status?: number;
12
+ info?: object;
13
+ createdBy?: string;
14
+ createdDate?: Date;
15
+ updatedBy?: string;
16
+ updatedDate?: Date;
17
+ }
18
+ declare class msExecutiveGroup extends Model<msExecutiveGroupAttributes, msExecutiveGroupAttributes> implements msExecutiveGroupAttributes {
19
+ id?: number;
20
+ uuid?: string;
21
+ name?: string;
22
+ description?: string;
23
+ startDate?: string;
24
+ endDate?: string;
25
+ sort?: number;
26
+ status?: number;
27
+ info?: object;
28
+ createdBy?: string;
29
+ createdDate?: Date;
30
+ updatedBy?: string;
31
+ updatedDate?: Date;
32
+ }
33
+
34
+ export { msExecutiveGroup, type msExecutiveGroupAttributes };
@@ -0,0 +1,131 @@
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/msExecutiveGroup.ts
29
+ var msExecutiveGroup_exports = {};
30
+ __export(msExecutiveGroup_exports, {
31
+ msExecutiveGroup: () => msExecutiveGroup
32
+ });
33
+ module.exports = __toCommonJS(msExecutiveGroup_exports);
34
+ var import_sequelize_typescript = require("sequelize-typescript");
35
+ var msExecutiveGroup = 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
+ ], msExecutiveGroup.prototype, "id", 2);
44
+ __decorateClass([
45
+ (0, import_sequelize_typescript.Column)({
46
+ allowNull: true,
47
+ type: import_sequelize_typescript.DataType.STRING(60)
48
+ })
49
+ ], msExecutiveGroup.prototype, "uuid", 2);
50
+ __decorateClass([
51
+ (0, import_sequelize_typescript.Column)({
52
+ allowNull: true,
53
+ type: import_sequelize_typescript.DataType.STRING(255)
54
+ })
55
+ ], msExecutiveGroup.prototype, "name", 2);
56
+ __decorateClass([
57
+ (0, import_sequelize_typescript.Column)({
58
+ allowNull: true,
59
+ type: import_sequelize_typescript.DataType.STRING(255)
60
+ })
61
+ ], msExecutiveGroup.prototype, "description", 2);
62
+ __decorateClass([
63
+ (0, import_sequelize_typescript.Column)({
64
+ field: "start_date",
65
+ allowNull: true,
66
+ type: import_sequelize_typescript.DataType.DATEONLY
67
+ })
68
+ ], msExecutiveGroup.prototype, "startDate", 2);
69
+ __decorateClass([
70
+ (0, import_sequelize_typescript.Column)({
71
+ field: "end_date",
72
+ allowNull: true,
73
+ type: import_sequelize_typescript.DataType.DATEONLY
74
+ })
75
+ ], msExecutiveGroup.prototype, "endDate", 2);
76
+ __decorateClass([
77
+ (0, import_sequelize_typescript.Column)({
78
+ allowNull: true,
79
+ type: import_sequelize_typescript.DataType.INTEGER
80
+ })
81
+ ], msExecutiveGroup.prototype, "sort", 2);
82
+ __decorateClass([
83
+ (0, import_sequelize_typescript.Column)({
84
+ allowNull: true,
85
+ type: import_sequelize_typescript.DataType.INTEGER
86
+ })
87
+ ], msExecutiveGroup.prototype, "status", 2);
88
+ __decorateClass([
89
+ (0, import_sequelize_typescript.Column)({
90
+ allowNull: true,
91
+ type: import_sequelize_typescript.DataType.JSON
92
+ })
93
+ ], msExecutiveGroup.prototype, "info", 2);
94
+ __decorateClass([
95
+ (0, import_sequelize_typescript.Column)({
96
+ field: "created_by",
97
+ allowNull: true,
98
+ type: import_sequelize_typescript.DataType.STRING(60)
99
+ })
100
+ ], msExecutiveGroup.prototype, "createdBy", 2);
101
+ __decorateClass([
102
+ (0, import_sequelize_typescript.Column)({
103
+ field: "created_date",
104
+ allowNull: true,
105
+ type: import_sequelize_typescript.DataType.DATE
106
+ })
107
+ ], msExecutiveGroup.prototype, "createdDate", 2);
108
+ __decorateClass([
109
+ (0, import_sequelize_typescript.Column)({
110
+ field: "updated_by",
111
+ allowNull: true,
112
+ type: import_sequelize_typescript.DataType.STRING(60)
113
+ })
114
+ ], msExecutiveGroup.prototype, "updatedBy", 2);
115
+ __decorateClass([
116
+ (0, import_sequelize_typescript.Column)({
117
+ field: "updated_date",
118
+ allowNull: true,
119
+ type: import_sequelize_typescript.DataType.DATE
120
+ })
121
+ ], msExecutiveGroup.prototype, "updatedDate", 2);
122
+ msExecutiveGroup = __decorateClass([
123
+ (0, import_sequelize_typescript.Table)({
124
+ tableName: "ms_executive_group",
125
+ timestamps: false
126
+ })
127
+ ], msExecutiveGroup);
128
+ // Annotate the CommonJS export names for ESM import in node:
129
+ 0 && (module.exports = {
130
+ msExecutiveGroup
131
+ });
@@ -0,0 +1,28 @@
1
+ import { Model } from 'sequelize-typescript';
2
+
3
+ interface msExecutivePositionAttributes {
4
+ id?: number;
5
+ name?: string;
6
+ description?: string;
7
+ sort?: number;
8
+ status?: number;
9
+ info?: object;
10
+ createdBy?: string;
11
+ createdDate?: Date;
12
+ updatedBy?: string;
13
+ updatedDate?: Date;
14
+ }
15
+ declare class msExecutivePosition extends Model<msExecutivePositionAttributes, msExecutivePositionAttributes> implements msExecutivePositionAttributes {
16
+ id?: number;
17
+ name?: string;
18
+ description?: string;
19
+ sort?: number;
20
+ status?: number;
21
+ info?: object;
22
+ createdBy?: string;
23
+ createdDate?: Date;
24
+ updatedBy?: string;
25
+ updatedDate?: Date;
26
+ }
27
+
28
+ export { msExecutivePosition, type msExecutivePositionAttributes };
@@ -0,0 +1,111 @@
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/msExecutivePosition.ts
29
+ var msExecutivePosition_exports = {};
30
+ __export(msExecutivePosition_exports, {
31
+ msExecutivePosition: () => msExecutivePosition
32
+ });
33
+ module.exports = __toCommonJS(msExecutivePosition_exports);
34
+ var import_sequelize_typescript = require("sequelize-typescript");
35
+ var msExecutivePosition = 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
+ ], msExecutivePosition.prototype, "id", 2);
44
+ __decorateClass([
45
+ (0, import_sequelize_typescript.Column)({
46
+ allowNull: true,
47
+ type: import_sequelize_typescript.DataType.STRING(255)
48
+ })
49
+ ], msExecutivePosition.prototype, "name", 2);
50
+ __decorateClass([
51
+ (0, import_sequelize_typescript.Column)({
52
+ allowNull: true,
53
+ type: import_sequelize_typescript.DataType.STRING(255)
54
+ })
55
+ ], msExecutivePosition.prototype, "description", 2);
56
+ __decorateClass([
57
+ (0, import_sequelize_typescript.Column)({
58
+ allowNull: true,
59
+ type: import_sequelize_typescript.DataType.INTEGER
60
+ })
61
+ ], msExecutivePosition.prototype, "sort", 2);
62
+ __decorateClass([
63
+ (0, import_sequelize_typescript.Column)({
64
+ allowNull: true,
65
+ type: import_sequelize_typescript.DataType.INTEGER
66
+ })
67
+ ], msExecutivePosition.prototype, "status", 2);
68
+ __decorateClass([
69
+ (0, import_sequelize_typescript.Column)({
70
+ allowNull: true,
71
+ type: import_sequelize_typescript.DataType.JSON
72
+ })
73
+ ], msExecutivePosition.prototype, "info", 2);
74
+ __decorateClass([
75
+ (0, import_sequelize_typescript.Column)({
76
+ field: "created_by",
77
+ allowNull: true,
78
+ type: import_sequelize_typescript.DataType.STRING(60)
79
+ })
80
+ ], msExecutivePosition.prototype, "createdBy", 2);
81
+ __decorateClass([
82
+ (0, import_sequelize_typescript.Column)({
83
+ field: "created_date",
84
+ allowNull: true,
85
+ type: import_sequelize_typescript.DataType.DATE
86
+ })
87
+ ], msExecutivePosition.prototype, "createdDate", 2);
88
+ __decorateClass([
89
+ (0, import_sequelize_typescript.Column)({
90
+ field: "updated_by",
91
+ allowNull: true,
92
+ type: import_sequelize_typescript.DataType.STRING(60)
93
+ })
94
+ ], msExecutivePosition.prototype, "updatedBy", 2);
95
+ __decorateClass([
96
+ (0, import_sequelize_typescript.Column)({
97
+ field: "updated_date",
98
+ allowNull: true,
99
+ type: import_sequelize_typescript.DataType.DATE
100
+ })
101
+ ], msExecutivePosition.prototype, "updatedDate", 2);
102
+ msExecutivePosition = __decorateClass([
103
+ (0, import_sequelize_typescript.Table)({
104
+ tableName: "ms_executive_position",
105
+ timestamps: false
106
+ })
107
+ ], msExecutivePosition);
108
+ // Annotate the CommonJS export names for ESM import in node:
109
+ 0 && (module.exports = {
110
+ msExecutivePosition
111
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@admc-go-th/admc-library",
3
- "version": "1.0.113",
3
+ "version": "1.0.114",
4
4
  "description": "",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",