@admc-go-th/admc-library 1.0.50 → 1.0.52

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.
@@ -42,6 +42,7 @@ interface mdContentAttributes {
42
42
  imageGallery?: object;
43
43
  attachments?: object;
44
44
  sort?: number;
45
+ publish?: number;
45
46
  status?: number;
46
47
  hasExpire?: number;
47
48
  startDate?: Date;
@@ -67,6 +68,7 @@ declare class mdContent extends Model<mdContentAttributes, mdContentAttributes>
67
68
  imageGallery?: object;
68
69
  attachments?: object;
69
70
  sort?: number;
71
+ publish?: number;
70
72
  status?: number;
71
73
  hasExpire?: number;
72
74
  startDate?: Date;
@@ -10,6 +10,7 @@ export interface mdBannerAttributes {
10
10
  title?: string;
11
11
  description?: string;
12
12
  fileUuid?: string;
13
+ url?: string;
13
14
  sort?: number;
14
15
  status?: number;
15
16
  hasExpire?: number;
@@ -67,6 +68,12 @@ export class mdBanner extends Model<mdBannerAttributes, mdBannerAttributes> impl
67
68
  })
68
69
  declare fileUuid?: string;
69
70
 
71
+ @Column({
72
+ allowNull: true,
73
+ type: DataType.STRING(255)
74
+ })
75
+ declare url?: string;
76
+
70
77
  @Column({
71
78
  allowNull: true,
72
79
  type: DataType.INTEGER
@@ -17,6 +17,7 @@ export interface mdCmsSingleAttributes {
17
17
  imageCover?: string;
18
18
  attachments?: object;
19
19
  sort?: number;
20
+ publish?: number;
20
21
  status?: number;
21
22
  hasExpire?: number;
22
23
  startDate?: Date;
@@ -123,6 +124,12 @@ export class mdCmsSingle extends Model<mdCmsSingleAttributes, mdCmsSingleAttribu
123
124
  })
124
125
  declare sort?: number;
125
126
 
127
+ @Column({
128
+ allowNull: true,
129
+ type: DataType.INTEGER
130
+ })
131
+ declare publish?: number;
132
+
126
133
  @Column({
127
134
  allowNull: true,
128
135
  type: DataType.INTEGER
@@ -20,6 +20,7 @@ export interface mdContentAttributes {
20
20
  imageGallery?: object;
21
21
  attachments?: object;
22
22
  sort?: number;
23
+ publish?: number;
23
24
  status?: number;
24
25
  hasExpire?: number;
25
26
  startDate?: Date;
@@ -135,6 +136,12 @@ export class mdContent extends Model<mdContentAttributes, mdContentAttributes> i
135
136
  })
136
137
  declare sort?: number;
137
138
 
139
+ @Column({
140
+ allowNull: true,
141
+ type: DataType.INTEGER
142
+ })
143
+ declare publish?: number;
144
+
138
145
  @Column({
139
146
  allowNull: true,
140
147
  type: DataType.INTEGER
@@ -1,2 +1,2 @@
1
1
  import 'sequelize-typescript';
2
- export { b as authAssignment, a as authAssignmentAttributes } from '../../authAssignment-WsNQC_sL.js';
2
+ export { b as authAssignment, a as authAssignmentAttributes } from '../../authAssignment-Dtru6WbV.js';
@@ -222,6 +222,12 @@ __decorateClass([
222
222
  type: import_sequelize_typescript2.DataType.INTEGER
223
223
  })
224
224
  ], mdContent.prototype, "sort", 2);
225
+ __decorateClass([
226
+ (0, import_sequelize_typescript2.Column)({
227
+ allowNull: true,
228
+ type: import_sequelize_typescript2.DataType.INTEGER
229
+ })
230
+ ], mdContent.prototype, "publish", 2);
225
231
  __decorateClass([
226
232
  (0, import_sequelize_typescript2.Column)({
227
233
  allowNull: true,
@@ -1,2 +1,2 @@
1
1
  import 'sequelize-typescript';
2
- export { d as authRole, c as authRoleAttributes } from '../../authAssignment-WsNQC_sL.js';
2
+ export { d as authRole, c as authRoleAttributes } from '../../authAssignment-Dtru6WbV.js';
@@ -225,6 +225,12 @@ __decorateClass([
225
225
  type: import_sequelize_typescript2.DataType.INTEGER
226
226
  })
227
227
  ], mdContent.prototype, "sort", 2);
228
+ __decorateClass([
229
+ (0, import_sequelize_typescript2.Column)({
230
+ allowNull: true,
231
+ type: import_sequelize_typescript2.DataType.INTEGER
232
+ })
233
+ ], mdContent.prototype, "publish", 2);
228
234
  __decorateClass([
229
235
  (0, import_sequelize_typescript2.Column)({
230
236
  allowNull: true,
@@ -1,2 +1,2 @@
1
1
  import 'sequelize-typescript';
2
- export { f as authRoleChild, e as authRoleChildAttributes } from '../../authAssignment-WsNQC_sL.js';
2
+ export { f as authRoleChild, e as authRoleChildAttributes } from '../../authAssignment-Dtru6WbV.js';
@@ -228,6 +228,12 @@ __decorateClass([
228
228
  type: import_sequelize_typescript2.DataType.INTEGER
229
229
  })
230
230
  ], mdContent.prototype, "sort", 2);
231
+ __decorateClass([
232
+ (0, import_sequelize_typescript2.Column)({
233
+ allowNull: true,
234
+ type: import_sequelize_typescript2.DataType.INTEGER
235
+ })
236
+ ], mdContent.prototype, "publish", 2);
231
237
  __decorateClass([
232
238
  (0, import_sequelize_typescript2.Column)({
233
239
  allowNull: true,
@@ -1,2 +1,2 @@
1
1
  import 'sequelize-typescript';
2
- export { a as files, f as filesAttributes } from '../../files-D-yguFRL.js';
2
+ export { a as files, f as filesAttributes } from '../../files-CwfdgxR0.js';
@@ -77,6 +77,12 @@ __decorateClass([
77
77
  type: import_sequelize_typescript.DataType.STRING(60)
78
78
  })
79
79
  ], mdBanner.prototype, "fileUuid", 2);
80
+ __decorateClass([
81
+ (0, import_sequelize_typescript.Column)({
82
+ allowNull: true,
83
+ type: import_sequelize_typescript.DataType.STRING(255)
84
+ })
85
+ ], mdBanner.prototype, "url", 2);
80
86
  __decorateClass([
81
87
  (0, import_sequelize_typescript.Column)({
82
88
  allowNull: true,
@@ -1,6 +1,6 @@
1
- export { b as authAssignment, a as authAssignmentAttributes, d as authRole, c as authRoleAttributes, f as authRoleChild, e as authRoleChildAttributes, g as mdContent, m as mdContentAttributes, i as mdContentGroup, h as mdContentGroupAttributes, k as mdQuestionnaire, j as mdQuestionnaireAttributes, l as users, u as usersAttributes, o as usersVerify, n as usersVerifyAttributes } from '../../authAssignment-WsNQC_sL.js';
1
+ export { b as authAssignment, a as authAssignmentAttributes, d as authRole, c as authRoleAttributes, f as authRoleChild, e as authRoleChildAttributes, g as mdContent, m as mdContentAttributes, i as mdContentGroup, h as mdContentGroupAttributes, k as mdQuestionnaire, j as mdQuestionnaireAttributes, l as users, u as usersAttributes, o as usersVerify, n as usersVerifyAttributes } from '../../authAssignment-Dtru6WbV.js';
2
2
  export { b as authItem, a as authItemAttributes, d as authItemChild, c as authItemChildAttributes, e as menu, m as menuAttributes, g as msModule, f as msModuleAttributes } from '../../authItem-BzI7UMbH.js';
3
- export { a as files, f as filesAttributes, b as mdBanner, m as mdBannerAttributes } from '../../files-D-yguFRL.js';
3
+ export { a as files, f as filesAttributes, b as mdBanner, m as mdBannerAttributes } from '../../files-CwfdgxR0.js';
4
4
  export { mdCmsSingle, mdCmsSingleAttributes } from './mdCmsSingle.js';
5
5
  export { mdDocumentPdf, mdDocumentPdfAttributes } from './mdDocumentPdf.js';
6
6
  export { mdDownload, mdDownloadAttributes } from './mdDownload.js';
@@ -255,6 +255,12 @@ __decorateClass([
255
255
  type: import_sequelize_typescript2.DataType.INTEGER
256
256
  })
257
257
  ], mdContent.prototype, "sort", 2);
258
+ __decorateClass([
259
+ (0, import_sequelize_typescript2.Column)({
260
+ allowNull: true,
261
+ type: import_sequelize_typescript2.DataType.INTEGER
262
+ })
263
+ ], mdContent.prototype, "publish", 2);
258
264
  __decorateClass([
259
265
  (0, import_sequelize_typescript2.Column)({
260
266
  allowNull: true,
@@ -1239,6 +1245,12 @@ __decorateClass([
1239
1245
  type: import_sequelize_typescript13.DataType.STRING(60)
1240
1246
  })
1241
1247
  ], mdBanner.prototype, "fileUuid", 2);
1248
+ __decorateClass([
1249
+ (0, import_sequelize_typescript13.Column)({
1250
+ allowNull: true,
1251
+ type: import_sequelize_typescript13.DataType.STRING(255)
1252
+ })
1253
+ ], mdBanner.prototype, "url", 2);
1242
1254
  __decorateClass([
1243
1255
  (0, import_sequelize_typescript13.Column)({
1244
1256
  allowNull: true,
@@ -1518,6 +1530,12 @@ __decorateClass([
1518
1530
  type: import_sequelize_typescript15.DataType.INTEGER
1519
1531
  })
1520
1532
  ], mdCmsSingle.prototype, "sort", 2);
1533
+ __decorateClass([
1534
+ (0, import_sequelize_typescript15.Column)({
1535
+ allowNull: true,
1536
+ type: import_sequelize_typescript15.DataType.INTEGER
1537
+ })
1538
+ ], mdCmsSingle.prototype, "publish", 2);
1521
1539
  __decorateClass([
1522
1540
  (0, import_sequelize_typescript15.Column)({
1523
1541
  allowNull: true,
@@ -1,2 +1,2 @@
1
1
  import 'sequelize-typescript';
2
- export { b as mdBanner, m as mdBannerAttributes } from '../../files-D-yguFRL.js';
2
+ export { b as mdBanner, m as mdBannerAttributes } from '../../files-CwfdgxR0.js';
@@ -191,6 +191,12 @@ __decorateClass([
191
191
  type: import_sequelize_typescript2.DataType.STRING(60)
192
192
  })
193
193
  ], mdBanner.prototype, "fileUuid", 2);
194
+ __decorateClass([
195
+ (0, import_sequelize_typescript2.Column)({
196
+ allowNull: true,
197
+ type: import_sequelize_typescript2.DataType.STRING(255)
198
+ })
199
+ ], mdBanner.prototype, "url", 2);
194
200
  __decorateClass([
195
201
  (0, import_sequelize_typescript2.Column)({
196
202
  allowNull: true,
@@ -15,6 +15,7 @@ interface mdCmsSingleAttributes {
15
15
  imageCover?: string;
16
16
  attachments?: object;
17
17
  sort?: number;
18
+ publish?: number;
18
19
  status?: number;
19
20
  hasExpire?: number;
20
21
  startDate?: Date;
@@ -39,6 +40,7 @@ declare class mdCmsSingle extends Model<mdCmsSingleAttributes, mdCmsSingleAttrib
39
40
  imageCover?: string;
40
41
  attachments?: object;
41
42
  sort?: number;
43
+ publish?: number;
42
44
  status?: number;
43
45
  hasExpire?: number;
44
46
  startDate?: Date;
@@ -124,6 +124,12 @@ __decorateClass([
124
124
  type: import_sequelize_typescript.DataType.INTEGER
125
125
  })
126
126
  ], mdCmsSingle.prototype, "sort", 2);
127
+ __decorateClass([
128
+ (0, import_sequelize_typescript.Column)({
129
+ allowNull: true,
130
+ type: import_sequelize_typescript.DataType.INTEGER
131
+ })
132
+ ], mdCmsSingle.prototype, "publish", 2);
127
133
  __decorateClass([
128
134
  (0, import_sequelize_typescript.Column)({
129
135
  allowNull: true,
@@ -1,2 +1,2 @@
1
1
  import 'sequelize-typescript';
2
- export { g as mdContent, m as mdContentAttributes } from '../../authAssignment-WsNQC_sL.js';
2
+ export { g as mdContent, m as mdContentAttributes } from '../../authAssignment-Dtru6WbV.js';
@@ -803,6 +803,12 @@ __decorateClass([
803
803
  type: import_sequelize_typescript8.DataType.INTEGER
804
804
  })
805
805
  ], mdContent.prototype, "sort", 2);
806
+ __decorateClass([
807
+ (0, import_sequelize_typescript8.Column)({
808
+ allowNull: true,
809
+ type: import_sequelize_typescript8.DataType.INTEGER
810
+ })
811
+ ], mdContent.prototype, "publish", 2);
806
812
  __decorateClass([
807
813
  (0, import_sequelize_typescript8.Column)({
808
814
  allowNull: true,
@@ -1,2 +1,2 @@
1
1
  import 'sequelize-typescript';
2
- export { i as mdContentGroup, h as mdContentGroupAttributes } from '../../authAssignment-WsNQC_sL.js';
2
+ export { i as mdContentGroup, h as mdContentGroupAttributes } from '../../authAssignment-Dtru6WbV.js';
@@ -725,6 +725,12 @@ __decorateClass([
725
725
  type: import_sequelize_typescript7.DataType.INTEGER
726
726
  })
727
727
  ], mdContent.prototype, "sort", 2);
728
+ __decorateClass([
729
+ (0, import_sequelize_typescript7.Column)({
730
+ allowNull: true,
731
+ type: import_sequelize_typescript7.DataType.INTEGER
732
+ })
733
+ ], mdContent.prototype, "publish", 2);
728
734
  __decorateClass([
729
735
  (0, import_sequelize_typescript7.Column)({
730
736
  allowNull: true,
@@ -1,2 +1,2 @@
1
1
  import 'sequelize-typescript';
2
- export { k as mdQuestionnaire, j as mdQuestionnaireAttributes } from '../../authAssignment-WsNQC_sL.js';
2
+ export { k as mdQuestionnaire, j as mdQuestionnaireAttributes } from '../../authAssignment-Dtru6WbV.js';
@@ -400,6 +400,12 @@ __decorateClass([
400
400
  type: import_sequelize_typescript5.DataType.INTEGER
401
401
  })
402
402
  ], mdContent.prototype, "sort", 2);
403
+ __decorateClass([
404
+ (0, import_sequelize_typescript5.Column)({
405
+ allowNull: true,
406
+ type: import_sequelize_typescript5.DataType.INTEGER
407
+ })
408
+ ], mdContent.prototype, "publish", 2);
403
409
  __decorateClass([
404
410
  (0, import_sequelize_typescript5.Column)({
405
411
  allowNull: true,
@@ -1,2 +1,2 @@
1
1
  import 'sequelize-typescript';
2
- export { l as users, u as usersAttributes } from '../../authAssignment-WsNQC_sL.js';
2
+ export { l as users, u as usersAttributes } from '../../authAssignment-Dtru6WbV.js';
@@ -397,6 +397,12 @@ __decorateClass([
397
397
  type: import_sequelize_typescript5.DataType.INTEGER
398
398
  })
399
399
  ], mdContent.prototype, "sort", 2);
400
+ __decorateClass([
401
+ (0, import_sequelize_typescript5.Column)({
402
+ allowNull: true,
403
+ type: import_sequelize_typescript5.DataType.INTEGER
404
+ })
405
+ ], mdContent.prototype, "publish", 2);
400
406
  __decorateClass([
401
407
  (0, import_sequelize_typescript5.Column)({
402
408
  allowNull: true,
@@ -1,2 +1,2 @@
1
1
  import 'sequelize-typescript';
2
- export { o as usersVerify, n as usersVerifyAttributes } from '../../authAssignment-WsNQC_sL.js';
2
+ export { o as usersVerify, n as usersVerifyAttributes } from '../../authAssignment-Dtru6WbV.js';
@@ -400,6 +400,12 @@ __decorateClass([
400
400
  type: import_sequelize_typescript5.DataType.INTEGER
401
401
  })
402
402
  ], mdContent.prototype, "sort", 2);
403
+ __decorateClass([
404
+ (0, import_sequelize_typescript5.Column)({
405
+ allowNull: true,
406
+ type: import_sequelize_typescript5.DataType.INTEGER
407
+ })
408
+ ], mdContent.prototype, "publish", 2);
403
409
  __decorateClass([
404
410
  (0, import_sequelize_typescript5.Column)({
405
411
  allowNull: true,
@@ -7,6 +7,7 @@ interface mdBannerAttributes {
7
7
  title?: string;
8
8
  description?: string;
9
9
  fileUuid?: string;
10
+ url?: string;
10
11
  sort?: number;
11
12
  status?: number;
12
13
  hasExpire?: number;
@@ -24,6 +25,7 @@ declare class mdBanner extends Model<mdBannerAttributes, mdBannerAttributes> imp
24
25
  title?: string;
25
26
  description?: string;
26
27
  fileUuid?: string;
28
+ url?: string;
27
29
  sort?: number;
28
30
  status?: number;
29
31
  hasExpire?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@admc-go-th/admc-library",
3
- "version": "1.0.50",
3
+ "version": "1.0.52",
4
4
  "description": "",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
package/utils/logs.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  declare const Logs: (index: string, body: object) => Promise<void>;
2
+ declare const LogsAdmc: (index: string, body: object) => Promise<void>;
2
3
 
3
- export { Logs };
4
+ export { Logs, LogsAdmc };
package/utils/logs.js CHANGED
@@ -20,7 +20,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // src/utils/logs.ts
21
21
  var logs_exports = {};
22
22
  __export(logs_exports, {
23
- Logs: () => Logs
23
+ Logs: () => Logs,
24
+ LogsAdmc: () => LogsAdmc
24
25
  });
25
26
  module.exports = __toCommonJS(logs_exports);
26
27
  var import_elasticsearch = require("@elastic/elasticsearch");
@@ -36,7 +37,11 @@ var Logs = async (index, body) => {
36
37
  }
37
38
  });
38
39
  };
40
+ var LogsAdmc = async (index, body) => {
41
+ await Logs("admc-" + index, body);
42
+ };
39
43
  // Annotate the CommonJS export names for ESM import in node:
40
44
  0 && (module.exports = {
41
- Logs
45
+ Logs,
46
+ LogsAdmc
42
47
  });