@admc-go-th/admc-library 1.0.121 → 1.0.122

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 (39) hide show
  1. package/{appBlessings-peNBIrhQ.d.ts → appBlessings-DcXFhNjP.d.ts} +4 -2
  2. package/databases/schema/appBlessings.ts +11 -3
  3. package/databases/schema/appScore.ts +154 -0
  4. package/databases/schema/appScoreData.ts +101 -0
  5. package/databases/schema/appScorePerson.ts +101 -0
  6. package/databases/schema/index.ts +4 -0
  7. package/databases/schema/logsMember.ts +60 -0
  8. package/databases/schema/mdApplication.ts +8 -0
  9. package/databases/schema/mdEgp.ts +114 -0
  10. package/databases/schema/msExecutiveGroup.ts +7 -0
  11. package/databases/schema/msHoliday.ts +29 -6
  12. package/databases/tables/appBlessings.d.ts +1 -1
  13. package/databases/tables/appBlessings.js +8 -1
  14. package/databases/tables/appBlessingsTransaction.d.ts +1 -1
  15. package/databases/tables/appBlessingsTransaction.js +8 -1
  16. package/databases/tables/appScore.d.ts +44 -0
  17. package/databases/tables/appScore.js +168 -0
  18. package/databases/tables/appScoreData.d.ts +30 -0
  19. package/databases/tables/appScoreData.js +122 -0
  20. package/databases/tables/appScorePerson.d.ts +30 -0
  21. package/databases/tables/appScorePerson.js +122 -0
  22. package/databases/tables/index.d.ts +6 -2
  23. package/databases/tables/index.js +2556 -2150
  24. package/databases/tables/logsMember.d.ts +20 -0
  25. package/databases/tables/logsMember.js +86 -0
  26. package/databases/tables/mdApplication.d.ts +2 -0
  27. package/databases/tables/mdApplication.js +7 -0
  28. package/databases/tables/mdEgp.d.ts +34 -0
  29. package/databases/tables/mdEgp.js +133 -0
  30. package/databases/tables/msExecutive.d.ts +1 -1
  31. package/databases/tables/msExecutive.js +6 -0
  32. package/databases/tables/msExecutiveGroup.d.ts +1 -1
  33. package/databases/tables/msExecutiveGroup.js +6 -0
  34. package/databases/tables/msExecutivePosition.d.ts +1 -1
  35. package/databases/tables/msExecutivePosition.js +6 -0
  36. package/databases/tables/msHoliday.d.ts +10 -4
  37. package/databases/tables/msHoliday.js +23 -3
  38. package/{msExecutive-B7lTHxSZ.d.ts → msExecutive-BFeU4P0-.d.ts} +2 -0
  39. package/package.json +1 -1
@@ -0,0 +1,20 @@
1
+ import { Model } from 'sequelize-typescript';
2
+
3
+ interface logsMemberAttributes {
4
+ id?: number;
5
+ memberUuid?: string;
6
+ type?: string;
7
+ data?: object;
8
+ createdBy?: string;
9
+ createdDate?: Date;
10
+ }
11
+ declare class logsMember extends Model<logsMemberAttributes, logsMemberAttributes> implements logsMemberAttributes {
12
+ id?: number;
13
+ memberUuid?: string;
14
+ type?: string;
15
+ data?: object;
16
+ createdBy?: string;
17
+ createdDate?: Date;
18
+ }
19
+
20
+ export { logsMember, type logsMemberAttributes };
@@ -0,0 +1,86 @@
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/logsMember.ts
29
+ var logsMember_exports = {};
30
+ __export(logsMember_exports, {
31
+ logsMember: () => logsMember
32
+ });
33
+ module.exports = __toCommonJS(logsMember_exports);
34
+ var import_sequelize_typescript = require("sequelize-typescript");
35
+ var logsMember = 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
+ ], logsMember.prototype, "id", 2);
44
+ __decorateClass([
45
+ (0, import_sequelize_typescript.Column)({
46
+ field: "member_uuid",
47
+ allowNull: true,
48
+ type: import_sequelize_typescript.DataType.STRING(60)
49
+ })
50
+ ], logsMember.prototype, "memberUuid", 2);
51
+ __decorateClass([
52
+ (0, import_sequelize_typescript.Column)({
53
+ allowNull: true,
54
+ type: import_sequelize_typescript.DataType.STRING(50)
55
+ })
56
+ ], logsMember.prototype, "type", 2);
57
+ __decorateClass([
58
+ (0, import_sequelize_typescript.Column)({
59
+ allowNull: true,
60
+ type: import_sequelize_typescript.DataType.JSON
61
+ })
62
+ ], logsMember.prototype, "data", 2);
63
+ __decorateClass([
64
+ (0, import_sequelize_typescript.Column)({
65
+ field: "created_by",
66
+ allowNull: true,
67
+ type: import_sequelize_typescript.DataType.STRING(60)
68
+ })
69
+ ], logsMember.prototype, "createdBy", 2);
70
+ __decorateClass([
71
+ (0, import_sequelize_typescript.Column)({
72
+ field: "created_date",
73
+ allowNull: true,
74
+ type: import_sequelize_typescript.DataType.DATE
75
+ })
76
+ ], logsMember.prototype, "createdDate", 2);
77
+ logsMember = __decorateClass([
78
+ (0, import_sequelize_typescript.Table)({
79
+ tableName: "logs_member",
80
+ timestamps: false
81
+ })
82
+ ], logsMember);
83
+ // Annotate the CommonJS export names for ESM import in node:
84
+ 0 && (module.exports = {
85
+ logsMember
86
+ });
@@ -6,6 +6,7 @@ interface mdApplicationAttributes {
6
6
  keyName?: string;
7
7
  title?: string;
8
8
  description?: string;
9
+ textHeader?: string;
9
10
  imageCover?: string;
10
11
  fileUuid?: string;
11
12
  attachments?: object;
@@ -34,6 +35,7 @@ declare class mdApplication extends Model<mdApplicationAttributes, mdApplication
34
35
  keyName?: string;
35
36
  title?: string;
36
37
  description?: string;
38
+ textHeader?: string;
37
39
  imageCover?: string;
38
40
  fileUuid?: string;
39
41
  attachments?: object;
@@ -66,6 +66,13 @@ __decorateClass([
66
66
  type: import_sequelize_typescript.DataType.STRING
67
67
  })
68
68
  ], mdApplication.prototype, "description", 2);
69
+ __decorateClass([
70
+ (0, import_sequelize_typescript.Column)({
71
+ field: "text_header",
72
+ allowNull: true,
73
+ type: import_sequelize_typescript.DataType.STRING(255)
74
+ })
75
+ ], mdApplication.prototype, "textHeader", 2);
69
76
  __decorateClass([
70
77
  (0, import_sequelize_typescript.Column)({
71
78
  field: "image_cover",
@@ -0,0 +1,34 @@
1
+ import { Model } from 'sequelize-typescript';
2
+
3
+ interface mdEgpAttributes {
4
+ id?: number;
5
+ uuid: string;
6
+ agencyCode?: string;
7
+ title?: string;
8
+ description?: string;
9
+ projectCode?: string;
10
+ publishedDate?: Date;
11
+ attachmentLink?: string;
12
+ fileUuid?: string;
13
+ methodId?: string;
14
+ announceType?: string;
15
+ createdDate?: Date;
16
+ updatedDate?: Date;
17
+ }
18
+ declare class mdEgp extends Model<mdEgpAttributes, mdEgpAttributes> implements mdEgpAttributes {
19
+ id?: number;
20
+ uuid: string;
21
+ agencyCode?: string;
22
+ title?: string;
23
+ description?: string;
24
+ projectCode?: string;
25
+ publishedDate?: Date;
26
+ attachmentLink?: string;
27
+ fileUuid?: string;
28
+ methodId?: string;
29
+ announceType?: string;
30
+ createdDate?: Date;
31
+ updatedDate?: Date;
32
+ }
33
+
34
+ export { mdEgp, type mdEgpAttributes };
@@ -0,0 +1,133 @@
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/mdEgp.ts
29
+ var mdEgp_exports = {};
30
+ __export(mdEgp_exports, {
31
+ mdEgp: () => mdEgp
32
+ });
33
+ module.exports = __toCommonJS(mdEgp_exports);
34
+ var import_sequelize_typescript = require("sequelize-typescript");
35
+ var mdEgp = 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
+ ], mdEgp.prototype, "id", 2);
44
+ __decorateClass([
45
+ (0, import_sequelize_typescript.Column)({
46
+ type: import_sequelize_typescript.DataType.STRING(60)
47
+ })
48
+ ], mdEgp.prototype, "uuid", 2);
49
+ __decorateClass([
50
+ (0, import_sequelize_typescript.Column)({
51
+ field: "agency_code",
52
+ allowNull: true,
53
+ type: import_sequelize_typescript.DataType.STRING(60)
54
+ })
55
+ ], mdEgp.prototype, "agencyCode", 2);
56
+ __decorateClass([
57
+ (0, import_sequelize_typescript.Column)({
58
+ allowNull: true,
59
+ type: import_sequelize_typescript.DataType.STRING(255)
60
+ })
61
+ ], mdEgp.prototype, "title", 2);
62
+ __decorateClass([
63
+ (0, import_sequelize_typescript.Column)({
64
+ allowNull: true,
65
+ type: import_sequelize_typescript.DataType.STRING(255)
66
+ })
67
+ ], mdEgp.prototype, "description", 2);
68
+ __decorateClass([
69
+ (0, import_sequelize_typescript.Column)({
70
+ field: "project_code",
71
+ allowNull: true,
72
+ type: import_sequelize_typescript.DataType.STRING(60)
73
+ })
74
+ ], mdEgp.prototype, "projectCode", 2);
75
+ __decorateClass([
76
+ (0, import_sequelize_typescript.Column)({
77
+ field: "published_date",
78
+ allowNull: true,
79
+ type: import_sequelize_typescript.DataType.DATE
80
+ })
81
+ ], mdEgp.prototype, "publishedDate", 2);
82
+ __decorateClass([
83
+ (0, import_sequelize_typescript.Column)({
84
+ field: "attachment_link",
85
+ allowNull: true,
86
+ type: import_sequelize_typescript.DataType.STRING(255)
87
+ })
88
+ ], mdEgp.prototype, "attachmentLink", 2);
89
+ __decorateClass([
90
+ (0, import_sequelize_typescript.Column)({
91
+ field: "file_uuid",
92
+ allowNull: true,
93
+ type: import_sequelize_typescript.DataType.STRING(255)
94
+ })
95
+ ], mdEgp.prototype, "fileUuid", 2);
96
+ __decorateClass([
97
+ (0, import_sequelize_typescript.Column)({
98
+ field: "method_id",
99
+ allowNull: true,
100
+ type: import_sequelize_typescript.DataType.STRING(20)
101
+ })
102
+ ], mdEgp.prototype, "methodId", 2);
103
+ __decorateClass([
104
+ (0, import_sequelize_typescript.Column)({
105
+ field: "announce_type",
106
+ allowNull: true,
107
+ type: import_sequelize_typescript.DataType.STRING(20)
108
+ })
109
+ ], mdEgp.prototype, "announceType", 2);
110
+ __decorateClass([
111
+ (0, import_sequelize_typescript.Column)({
112
+ field: "created_date",
113
+ allowNull: true,
114
+ type: import_sequelize_typescript.DataType.DATE
115
+ })
116
+ ], mdEgp.prototype, "createdDate", 2);
117
+ __decorateClass([
118
+ (0, import_sequelize_typescript.Column)({
119
+ field: "updated_date",
120
+ allowNull: true,
121
+ type: import_sequelize_typescript.DataType.DATE
122
+ })
123
+ ], mdEgp.prototype, "updatedDate", 2);
124
+ mdEgp = __decorateClass([
125
+ (0, import_sequelize_typescript.Table)({
126
+ tableName: "md_egp",
127
+ timestamps: false
128
+ })
129
+ ], mdEgp);
130
+ // Annotate the CommonJS export names for ESM import in node:
131
+ 0 && (module.exports = {
132
+ mdEgp
133
+ });
@@ -1,2 +1,2 @@
1
1
  import 'sequelize-typescript';
2
- export { a as msExecutive, m as msExecutiveAttributes } from '../../msExecutive-B7lTHxSZ.js';
2
+ export { a as msExecutive, m as msExecutiveAttributes } from '../../msExecutive-BFeU4P0-.js';
@@ -50,6 +50,12 @@ __decorateClass([
50
50
  type: import_sequelize_typescript.DataType.STRING(60)
51
51
  })
52
52
  ], msExecutiveGroup.prototype, "uuid", 2);
53
+ __decorateClass([
54
+ (0, import_sequelize_typescript.Column)({
55
+ allowNull: true,
56
+ type: import_sequelize_typescript.DataType.INTEGER
57
+ })
58
+ ], msExecutiveGroup.prototype, "type", 2);
53
59
  __decorateClass([
54
60
  (0, import_sequelize_typescript.Column)({
55
61
  allowNull: true,
@@ -1,2 +1,2 @@
1
1
  import 'sequelize-typescript';
2
- export { c as msExecutiveGroup, b as msExecutiveGroupAttributes } from '../../msExecutive-B7lTHxSZ.js';
2
+ export { c as msExecutiveGroup, b as msExecutiveGroupAttributes } from '../../msExecutive-BFeU4P0-.js';
@@ -316,6 +316,12 @@ __decorateClass([
316
316
  type: import_sequelize_typescript3.DataType.STRING(60)
317
317
  })
318
318
  ], msExecutiveGroup.prototype, "uuid", 2);
319
+ __decorateClass([
320
+ (0, import_sequelize_typescript3.Column)({
321
+ allowNull: true,
322
+ type: import_sequelize_typescript3.DataType.INTEGER
323
+ })
324
+ ], msExecutiveGroup.prototype, "type", 2);
319
325
  __decorateClass([
320
326
  (0, import_sequelize_typescript3.Column)({
321
327
  allowNull: true,
@@ -1,2 +1,2 @@
1
1
  import 'sequelize-typescript';
2
- export { e as msExecutivePosition, d as msExecutivePositionAttributes } from '../../msExecutive-B7lTHxSZ.js';
2
+ export { e as msExecutivePosition, d as msExecutivePositionAttributes } from '../../msExecutive-BFeU4P0-.js';
@@ -53,6 +53,12 @@ __decorateClass([
53
53
  type: import_sequelize_typescript.DataType.STRING(60)
54
54
  })
55
55
  ], msExecutiveGroup.prototype, "uuid", 2);
56
+ __decorateClass([
57
+ (0, import_sequelize_typescript.Column)({
58
+ allowNull: true,
59
+ type: import_sequelize_typescript.DataType.INTEGER
60
+ })
61
+ ], msExecutiveGroup.prototype, "type", 2);
56
62
  __decorateClass([
57
63
  (0, import_sequelize_typescript.Column)({
58
64
  allowNull: true,
@@ -2,9 +2,12 @@ import { Model } from 'sequelize-typescript';
2
2
 
3
3
  interface msHolidayAttributes {
4
4
  id?: number;
5
+ siteId?: number;
6
+ typeId?: number;
7
+ year?: number;
5
8
  name?: string;
6
- checkDate?: string;
7
- status?: string;
9
+ atDate?: string;
10
+ status?: number;
8
11
  createdBy?: string;
9
12
  createdDate?: Date;
10
13
  updatedBy?: string;
@@ -12,9 +15,12 @@ interface msHolidayAttributes {
12
15
  }
13
16
  declare class msHoliday extends Model<msHolidayAttributes, msHolidayAttributes> implements msHolidayAttributes {
14
17
  id?: number;
18
+ siteId?: number;
19
+ typeId?: number;
20
+ year?: number;
15
21
  name?: string;
16
- checkDate?: string;
17
- status?: string;
22
+ atDate?: string;
23
+ status?: number;
18
24
  createdBy?: string;
19
25
  createdDate?: Date;
20
26
  updatedBy?: string;
@@ -41,6 +41,26 @@ __decorateClass([
41
41
  type: import_sequelize_typescript.DataType.INTEGER
42
42
  })
43
43
  ], msHoliday.prototype, "id", 2);
44
+ __decorateClass([
45
+ (0, import_sequelize_typescript.Column)({
46
+ field: "site_id",
47
+ allowNull: true,
48
+ type: import_sequelize_typescript.DataType.INTEGER
49
+ })
50
+ ], msHoliday.prototype, "siteId", 2);
51
+ __decorateClass([
52
+ (0, import_sequelize_typescript.Column)({
53
+ field: "type_id",
54
+ allowNull: true,
55
+ type: import_sequelize_typescript.DataType.INTEGER
56
+ })
57
+ ], msHoliday.prototype, "typeId", 2);
58
+ __decorateClass([
59
+ (0, import_sequelize_typescript.Column)({
60
+ allowNull: true,
61
+ type: import_sequelize_typescript.DataType.INTEGER
62
+ })
63
+ ], msHoliday.prototype, "year", 2);
44
64
  __decorateClass([
45
65
  (0, import_sequelize_typescript.Column)({
46
66
  allowNull: true,
@@ -49,15 +69,15 @@ __decorateClass([
49
69
  ], msHoliday.prototype, "name", 2);
50
70
  __decorateClass([
51
71
  (0, import_sequelize_typescript.Column)({
52
- field: "check_date",
72
+ field: "at_date",
53
73
  allowNull: true,
54
74
  type: import_sequelize_typescript.DataType.DATEONLY
55
75
  })
56
- ], msHoliday.prototype, "checkDate", 2);
76
+ ], msHoliday.prototype, "atDate", 2);
57
77
  __decorateClass([
58
78
  (0, import_sequelize_typescript.Column)({
59
79
  allowNull: true,
60
- type: import_sequelize_typescript.DataType.STRING(255)
80
+ type: import_sequelize_typescript.DataType.INTEGER
61
81
  })
62
82
  ], msHoliday.prototype, "status", 2);
63
83
  __decorateClass([
@@ -3,6 +3,7 @@ import { Model } from 'sequelize-typescript';
3
3
  interface msExecutiveGroupAttributes {
4
4
  id?: number;
5
5
  uuid?: string;
6
+ type?: number;
6
7
  name?: string;
7
8
  description?: string;
8
9
  startDate?: string;
@@ -18,6 +19,7 @@ interface msExecutiveGroupAttributes {
18
19
  declare class msExecutiveGroup extends Model<msExecutiveGroupAttributes, msExecutiveGroupAttributes> implements msExecutiveGroupAttributes {
19
20
  id?: number;
20
21
  uuid?: string;
22
+ type?: number;
21
23
  name?: string;
22
24
  description?: string;
23
25
  startDate?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@admc-go-th/admc-library",
3
- "version": "1.0.121",
3
+ "version": "1.0.122",
4
4
  "description": "",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",