@admc-go-th/admc-library 1.0.67 → 1.0.69

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.
@@ -4,6 +4,7 @@ interface msModuleAttributes {
4
4
  id?: number;
5
5
  key?: string;
6
6
  name: string;
7
+ description?: string;
7
8
  status?: number;
8
9
  createdBy?: string;
9
10
  createdDate?: Date;
@@ -14,6 +15,7 @@ declare class msModule extends Model<msModuleAttributes, msModuleAttributes> imp
14
15
  id?: number;
15
16
  key?: string;
16
17
  name: string;
18
+ description?: string;
17
19
  status?: number;
18
20
  createdBy?: string;
19
21
  createdDate?: Date;
@@ -0,0 +1,105 @@
1
+ import {
2
+ Model, Table, Column, DataType, Index, Sequelize, ForeignKey
3
+ } from "sequelize-typescript";
4
+
5
+ export interface helperAttributes {
6
+ id?: number;
7
+ target?: string;
8
+ content?: string;
9
+ disableBeacon?: number;
10
+ placement?: string;
11
+ disableScrolling?: number;
12
+ sort?: number;
13
+ status?: number;
14
+ createdBy?: string;
15
+ createdDate?: Date;
16
+ updatedBy?: string;
17
+ updatedDate?: Date;
18
+ }
19
+
20
+ @Table({
21
+ tableName: "helper",
22
+ timestamps: false
23
+ })
24
+ export class helper extends Model<helperAttributes, helperAttributes> implements helperAttributes {
25
+
26
+ @Column({
27
+ primaryKey: true,
28
+ autoIncrement: true,
29
+ type: DataType.INTEGER
30
+ })
31
+ declare id?: number;
32
+
33
+ @Column({
34
+ allowNull: true,
35
+ type: DataType.STRING(255)
36
+ })
37
+ declare target?: string;
38
+
39
+ @Column({
40
+ allowNull: true,
41
+ type: DataType.STRING(255)
42
+ })
43
+ declare content?: string;
44
+
45
+ @Column({
46
+ field: "disable_beacon",
47
+ allowNull: true,
48
+ type: DataType.INTEGER
49
+ })
50
+ declare disableBeacon?: number;
51
+
52
+ @Column({
53
+ allowNull: true,
54
+ type: DataType.STRING(255)
55
+ })
56
+ declare placement?: string;
57
+
58
+ @Column({
59
+ field: "disable_scrolling",
60
+ allowNull: true,
61
+ type: DataType.INTEGER
62
+ })
63
+ declare disableScrolling?: number;
64
+
65
+ @Column({
66
+ allowNull: true,
67
+ type: DataType.INTEGER
68
+ })
69
+ declare sort?: number;
70
+
71
+ @Column({
72
+ allowNull: true,
73
+ type: DataType.INTEGER
74
+ })
75
+ declare status?: number;
76
+
77
+ @Column({
78
+ field: "created_by",
79
+ allowNull: true,
80
+ type: DataType.STRING(60)
81
+ })
82
+ declare createdBy?: string;
83
+
84
+ @Column({
85
+ field: "created_date",
86
+ allowNull: true,
87
+ type: DataType.DATE
88
+ })
89
+ declare createdDate?: Date;
90
+
91
+ @Column({
92
+ field: "updated_by",
93
+ allowNull: true,
94
+ type: DataType.STRING(60)
95
+ })
96
+ declare updatedBy?: string;
97
+
98
+ @Column({
99
+ field: "updated_date",
100
+ allowNull: true,
101
+ type: DataType.DATE
102
+ })
103
+ declare updatedDate?: Date;
104
+
105
+ }
@@ -4,6 +4,7 @@ export * from "./authItemChild";
4
4
  export * from "./authRole";
5
5
  export * from "./authRoleChild";
6
6
  export * from "./files";
7
+ export * from "./helper";
7
8
  export * from "./logs";
8
9
  export * from "./mdBanner";
9
10
  export * from "./mdCmsSingle";
@@ -7,6 +7,7 @@ export interface msModuleAttributes {
7
7
  id?: number;
8
8
  key?: string;
9
9
  name: string;
10
+ description?: string;
10
11
  status?: number;
11
12
  createdBy?: string;
12
13
  createdDate?: Date;
@@ -38,6 +39,12 @@ export class msModule extends Model<msModuleAttributes, msModuleAttributes> impl
38
39
  })
39
40
  declare name: string;
40
41
 
42
+ @Column({
43
+ allowNull: true,
44
+ type: DataType.STRING(255)
45
+ })
46
+ declare description?: string;
47
+
41
48
  @Column({
42
49
  allowNull: true,
43
50
  type: DataType.INTEGER
@@ -1,2 +1,2 @@
1
1
  import 'sequelize-typescript';
2
- export { b as authItem, a as authItemAttributes } from '../../authItem-BniqC5Pc.js';
2
+ export { b as authItem, a as authItemAttributes } from '../../authItem-DBSkCaSi.js';
@@ -58,6 +58,12 @@ __decorateClass([
58
58
  type: import_sequelize_typescript.DataType.STRING(100)
59
59
  })
60
60
  ], msModule.prototype, "name", 2);
61
+ __decorateClass([
62
+ (0, import_sequelize_typescript.Column)({
63
+ allowNull: true,
64
+ type: import_sequelize_typescript.DataType.STRING(255)
65
+ })
66
+ ], msModule.prototype, "description", 2);
61
67
  __decorateClass([
62
68
  (0, import_sequelize_typescript.Column)({
63
69
  allowNull: true,
@@ -1,2 +1,2 @@
1
1
  import 'sequelize-typescript';
2
- export { d as authItemChild, c as authItemChildAttributes } from '../../authItem-BniqC5Pc.js';
2
+ export { d as authItemChild, c as authItemChildAttributes } from '../../authItem-DBSkCaSi.js';
@@ -61,6 +61,12 @@ __decorateClass([
61
61
  type: import_sequelize_typescript.DataType.STRING(100)
62
62
  })
63
63
  ], msModule.prototype, "name", 2);
64
+ __decorateClass([
65
+ (0, import_sequelize_typescript.Column)({
66
+ allowNull: true,
67
+ type: import_sequelize_typescript.DataType.STRING(255)
68
+ })
69
+ ], msModule.prototype, "description", 2);
64
70
  __decorateClass([
65
71
  (0, import_sequelize_typescript.Column)({
66
72
  allowNull: true,
@@ -0,0 +1,32 @@
1
+ import { Model } from 'sequelize-typescript';
2
+
3
+ interface helperAttributes {
4
+ id?: number;
5
+ target?: string;
6
+ content?: string;
7
+ disableBeacon?: number;
8
+ placement?: string;
9
+ disableScrolling?: number;
10
+ sort?: number;
11
+ status?: number;
12
+ createdBy?: string;
13
+ createdDate?: Date;
14
+ updatedBy?: string;
15
+ updatedDate?: Date;
16
+ }
17
+ declare class helper extends Model<helperAttributes, helperAttributes> implements helperAttributes {
18
+ id?: number;
19
+ target?: string;
20
+ content?: string;
21
+ disableBeacon?: number;
22
+ placement?: string;
23
+ disableScrolling?: number;
24
+ sort?: number;
25
+ status?: number;
26
+ createdBy?: string;
27
+ createdDate?: Date;
28
+ updatedBy?: string;
29
+ updatedDate?: Date;
30
+ }
31
+
32
+ export { helper, type helperAttributes };
@@ -0,0 +1,125 @@
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/helper.ts
29
+ var helper_exports = {};
30
+ __export(helper_exports, {
31
+ helper: () => helper
32
+ });
33
+ module.exports = __toCommonJS(helper_exports);
34
+ var import_sequelize_typescript = require("sequelize-typescript");
35
+ var helper = 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
+ ], helper.prototype, "id", 2);
44
+ __decorateClass([
45
+ (0, import_sequelize_typescript.Column)({
46
+ allowNull: true,
47
+ type: import_sequelize_typescript.DataType.STRING(255)
48
+ })
49
+ ], helper.prototype, "target", 2);
50
+ __decorateClass([
51
+ (0, import_sequelize_typescript.Column)({
52
+ allowNull: true,
53
+ type: import_sequelize_typescript.DataType.STRING(255)
54
+ })
55
+ ], helper.prototype, "content", 2);
56
+ __decorateClass([
57
+ (0, import_sequelize_typescript.Column)({
58
+ field: "disable_beacon",
59
+ allowNull: true,
60
+ type: import_sequelize_typescript.DataType.INTEGER
61
+ })
62
+ ], helper.prototype, "disableBeacon", 2);
63
+ __decorateClass([
64
+ (0, import_sequelize_typescript.Column)({
65
+ allowNull: true,
66
+ type: import_sequelize_typescript.DataType.STRING(255)
67
+ })
68
+ ], helper.prototype, "placement", 2);
69
+ __decorateClass([
70
+ (0, import_sequelize_typescript.Column)({
71
+ field: "disable_scrolling",
72
+ allowNull: true,
73
+ type: import_sequelize_typescript.DataType.INTEGER
74
+ })
75
+ ], helper.prototype, "disableScrolling", 2);
76
+ __decorateClass([
77
+ (0, import_sequelize_typescript.Column)({
78
+ allowNull: true,
79
+ type: import_sequelize_typescript.DataType.INTEGER
80
+ })
81
+ ], helper.prototype, "sort", 2);
82
+ __decorateClass([
83
+ (0, import_sequelize_typescript.Column)({
84
+ allowNull: true,
85
+ type: import_sequelize_typescript.DataType.INTEGER
86
+ })
87
+ ], helper.prototype, "status", 2);
88
+ __decorateClass([
89
+ (0, import_sequelize_typescript.Column)({
90
+ field: "created_by",
91
+ allowNull: true,
92
+ type: import_sequelize_typescript.DataType.STRING(60)
93
+ })
94
+ ], helper.prototype, "createdBy", 2);
95
+ __decorateClass([
96
+ (0, import_sequelize_typescript.Column)({
97
+ field: "created_date",
98
+ allowNull: true,
99
+ type: import_sequelize_typescript.DataType.DATE
100
+ })
101
+ ], helper.prototype, "createdDate", 2);
102
+ __decorateClass([
103
+ (0, import_sequelize_typescript.Column)({
104
+ field: "updated_by",
105
+ allowNull: true,
106
+ type: import_sequelize_typescript.DataType.STRING(60)
107
+ })
108
+ ], helper.prototype, "updatedBy", 2);
109
+ __decorateClass([
110
+ (0, import_sequelize_typescript.Column)({
111
+ field: "updated_date",
112
+ allowNull: true,
113
+ type: import_sequelize_typescript.DataType.DATE
114
+ })
115
+ ], helper.prototype, "updatedDate", 2);
116
+ helper = __decorateClass([
117
+ (0, import_sequelize_typescript.Table)({
118
+ tableName: "helper",
119
+ timestamps: false
120
+ })
121
+ ], helper);
122
+ // Annotate the CommonJS export names for ESM import in node:
123
+ 0 && (module.exports = {
124
+ helper
125
+ });
@@ -1,6 +1,7 @@
1
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-CcMPKnNv.js';
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-BniqC5Pc.js';
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-DBSkCaSi.js';
3
3
  export { a as files, f as filesAttributes, b as mdBanner, m as mdBannerAttributes } from '../../files-C1bgSUjy.js';
4
+ export { helper, helperAttributes } from './helper.js';
4
5
  export { logs, logsAttributes } from './logs.js';
5
6
  export { mdCmsSingle, mdCmsSingleAttributes } from './mdCmsSingle.js';
6
7
  export { mdConfiguration, mdConfigurationAttributes } from './mdConfiguration.js';