@admc-go-th/admc-library 1.0.2 → 1.0.3

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.
@@ -0,0 +1,20 @@
1
+ import { Model } from 'sequelize-typescript';
2
+
3
+ interface authAssignmentAttributes {
4
+ itemName: string;
5
+ userId: number;
6
+ createdBy?: string;
7
+ createdDate?: Date;
8
+ updatedBy?: string;
9
+ updatedDate?: Date;
10
+ }
11
+ declare class authAssignment extends Model<authAssignmentAttributes, authAssignmentAttributes> implements authAssignmentAttributes {
12
+ itemName: string;
13
+ userId: number;
14
+ createdBy?: string;
15
+ createdDate?: Date;
16
+ updatedBy?: string;
17
+ updatedDate?: Date;
18
+ }
19
+
20
+ export { authAssignment, type authAssignmentAttributes };
@@ -0,0 +1,88 @@
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/models/authAssignment.ts
29
+ var authAssignment_exports = {};
30
+ __export(authAssignment_exports, {
31
+ authAssignment: () => authAssignment
32
+ });
33
+ module.exports = __toCommonJS(authAssignment_exports);
34
+ var import_sequelize_typescript = require("sequelize-typescript");
35
+ var authAssignment = class extends import_sequelize_typescript.Model {
36
+ };
37
+ __decorateClass([
38
+ (0, import_sequelize_typescript.Column)({
39
+ field: "item_name",
40
+ primaryKey: true,
41
+ type: import_sequelize_typescript.DataType.STRING(64)
42
+ })
43
+ ], authAssignment.prototype, "itemName", 2);
44
+ __decorateClass([
45
+ (0, import_sequelize_typescript.Column)({
46
+ field: "user_id",
47
+ primaryKey: true,
48
+ type: import_sequelize_typescript.DataType.INTEGER
49
+ })
50
+ ], authAssignment.prototype, "userId", 2);
51
+ __decorateClass([
52
+ (0, import_sequelize_typescript.Column)({
53
+ field: "created_by",
54
+ allowNull: true,
55
+ type: import_sequelize_typescript.DataType.STRING(60)
56
+ })
57
+ ], authAssignment.prototype, "createdBy", 2);
58
+ __decorateClass([
59
+ (0, import_sequelize_typescript.Column)({
60
+ field: "created_date",
61
+ allowNull: true,
62
+ type: import_sequelize_typescript.DataType.DATE
63
+ })
64
+ ], authAssignment.prototype, "createdDate", 2);
65
+ __decorateClass([
66
+ (0, import_sequelize_typescript.Column)({
67
+ field: "updated_by",
68
+ allowNull: true,
69
+ type: import_sequelize_typescript.DataType.STRING(60)
70
+ })
71
+ ], authAssignment.prototype, "updatedBy", 2);
72
+ __decorateClass([
73
+ (0, import_sequelize_typescript.Column)({
74
+ field: "updated_date",
75
+ allowNull: true,
76
+ type: import_sequelize_typescript.DataType.DATE
77
+ })
78
+ ], authAssignment.prototype, "updatedDate", 2);
79
+ authAssignment = __decorateClass([
80
+ (0, import_sequelize_typescript.Table)({
81
+ tableName: "auth_assignment",
82
+ timestamps: false
83
+ })
84
+ ], authAssignment);
85
+ // Annotate the CommonJS export names for ESM import in node:
86
+ 0 && (module.exports = {
87
+ authAssignment
88
+ });
@@ -0,0 +1,28 @@
1
+ import { Model } from 'sequelize-typescript';
2
+
3
+ interface authItemAttributes {
4
+ name: string;
5
+ type: number;
6
+ description?: string;
7
+ ruleName?: string;
8
+ data?: Uint8Array;
9
+ status?: number;
10
+ createdBy?: string;
11
+ createdDate?: Date;
12
+ updatedBy?: string;
13
+ updatedDate?: Date;
14
+ }
15
+ declare class authItem extends Model<authItemAttributes, authItemAttributes> implements authItemAttributes {
16
+ name: string;
17
+ type: number;
18
+ description?: string;
19
+ ruleName?: string;
20
+ data?: Uint8Array;
21
+ status?: number;
22
+ createdBy?: string;
23
+ createdDate?: Date;
24
+ updatedBy?: string;
25
+ updatedDate?: Date;
26
+ }
27
+
28
+ export { authItem, type authItemAttributes };
@@ -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/models/authItem.ts
29
+ var authItem_exports = {};
30
+ __export(authItem_exports, {
31
+ authItem: () => authItem
32
+ });
33
+ module.exports = __toCommonJS(authItem_exports);
34
+ var import_sequelize_typescript = require("sequelize-typescript");
35
+ var authItem = class extends import_sequelize_typescript.Model {
36
+ };
37
+ __decorateClass([
38
+ (0, import_sequelize_typescript.Column)({
39
+ primaryKey: true,
40
+ type: import_sequelize_typescript.DataType.STRING(64)
41
+ })
42
+ ], authItem.prototype, "name", 2);
43
+ __decorateClass([
44
+ (0, import_sequelize_typescript.Column)({
45
+ type: import_sequelize_typescript.DataType.SMALLINT
46
+ })
47
+ ], authItem.prototype, "type", 2);
48
+ __decorateClass([
49
+ (0, import_sequelize_typescript.Column)({
50
+ allowNull: true,
51
+ type: import_sequelize_typescript.DataType.STRING
52
+ })
53
+ ], authItem.prototype, "description", 2);
54
+ __decorateClass([
55
+ (0, import_sequelize_typescript.Column)({
56
+ field: "rule_name",
57
+ allowNull: true,
58
+ type: import_sequelize_typescript.DataType.STRING(64)
59
+ })
60
+ ], authItem.prototype, "ruleName", 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
+ __decorateClass([
68
+ (0, import_sequelize_typescript.Column)({
69
+ allowNull: true,
70
+ type: import_sequelize_typescript.DataType.INTEGER,
71
+ defaultValue: "1"
72
+ })
73
+ ], authItem.prototype, "status", 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
+ ], authItem.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
+ ], authItem.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
+ ], authItem.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
+ ], authItem.prototype, "updatedDate", 2);
102
+ authItem = __decorateClass([
103
+ (0, import_sequelize_typescript.Table)({
104
+ tableName: "auth_item",
105
+ timestamps: false
106
+ })
107
+ ], authItem);
108
+ // Annotate the CommonJS export names for ESM import in node:
109
+ 0 && (module.exports = {
110
+ authItem
111
+ });
@@ -0,0 +1,12 @@
1
+ import { Model } from 'sequelize-typescript';
2
+
3
+ interface authItemChildAttributes {
4
+ parent: string;
5
+ child: string;
6
+ }
7
+ declare class authItemChild extends Model<authItemChildAttributes, authItemChildAttributes> implements authItemChildAttributes {
8
+ parent: string;
9
+ child: string;
10
+ }
11
+
12
+ export { authItemChild, type authItemChildAttributes };
@@ -0,0 +1,58 @@
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/models/authItemChild.ts
29
+ var authItemChild_exports = {};
30
+ __export(authItemChild_exports, {
31
+ authItemChild: () => authItemChild
32
+ });
33
+ module.exports = __toCommonJS(authItemChild_exports);
34
+ var import_sequelize_typescript = require("sequelize-typescript");
35
+ var authItemChild = class extends import_sequelize_typescript.Model {
36
+ };
37
+ __decorateClass([
38
+ (0, import_sequelize_typescript.Column)({
39
+ primaryKey: true,
40
+ type: import_sequelize_typescript.DataType.STRING(64)
41
+ })
42
+ ], authItemChild.prototype, "parent", 2);
43
+ __decorateClass([
44
+ (0, import_sequelize_typescript.Column)({
45
+ primaryKey: true,
46
+ type: import_sequelize_typescript.DataType.STRING(64)
47
+ })
48
+ ], authItemChild.prototype, "child", 2);
49
+ authItemChild = __decorateClass([
50
+ (0, import_sequelize_typescript.Table)({
51
+ tableName: "auth_item_child",
52
+ timestamps: false
53
+ })
54
+ ], authItemChild);
55
+ // Annotate the CommonJS export names for ESM import in node:
56
+ 0 && (module.exports = {
57
+ authItemChild
58
+ });
@@ -0,0 +1,20 @@
1
+ import { Model } from 'sequelize-typescript';
2
+
3
+ interface authRuleAttributes {
4
+ name: string;
5
+ data?: Uint8Array;
6
+ createdBy?: string;
7
+ createdDate?: Date;
8
+ updatedBy?: string;
9
+ updatedDate?: Date;
10
+ }
11
+ declare class authRule extends Model<authRuleAttributes, authRuleAttributes> implements authRuleAttributes {
12
+ name: string;
13
+ data?: Uint8Array;
14
+ createdBy?: string;
15
+ createdDate?: Date;
16
+ updatedBy?: string;
17
+ updatedDate?: Date;
18
+ }
19
+
20
+ export { authRule, type authRuleAttributes };
@@ -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/models/authRule.ts
29
+ var authRule_exports = {};
30
+ __export(authRule_exports, {
31
+ authRule: () => authRule
32
+ });
33
+ module.exports = __toCommonJS(authRule_exports);
34
+ var import_sequelize_typescript = require("sequelize-typescript");
35
+ var authRule = class extends import_sequelize_typescript.Model {
36
+ };
37
+ __decorateClass([
38
+ (0, import_sequelize_typescript.Column)({
39
+ primaryKey: true,
40
+ type: import_sequelize_typescript.DataType.STRING(64)
41
+ })
42
+ ], authRule.prototype, "name", 2);
43
+ __decorateClass([
44
+ (0, import_sequelize_typescript.Column)({
45
+ allowNull: true,
46
+ type: import_sequelize_typescript.DataType.BLOB
47
+ })
48
+ ], authRule.prototype, "data", 2);
49
+ __decorateClass([
50
+ (0, import_sequelize_typescript.Column)({
51
+ field: "created_by",
52
+ allowNull: true,
53
+ type: import_sequelize_typescript.DataType.STRING(60)
54
+ })
55
+ ], authRule.prototype, "createdBy", 2);
56
+ __decorateClass([
57
+ (0, import_sequelize_typescript.Column)({
58
+ field: "created_date",
59
+ allowNull: true,
60
+ type: import_sequelize_typescript.DataType.DATE
61
+ })
62
+ ], authRule.prototype, "createdDate", 2);
63
+ __decorateClass([
64
+ (0, import_sequelize_typescript.Column)({
65
+ field: "updated_by",
66
+ allowNull: true,
67
+ type: import_sequelize_typescript.DataType.STRING(60)
68
+ })
69
+ ], authRule.prototype, "updatedBy", 2);
70
+ __decorateClass([
71
+ (0, import_sequelize_typescript.Column)({
72
+ field: "updated_date",
73
+ allowNull: true,
74
+ type: import_sequelize_typescript.DataType.DATE
75
+ })
76
+ ], authRule.prototype, "updatedDate", 2);
77
+ authRule = __decorateClass([
78
+ (0, import_sequelize_typescript.Table)({
79
+ tableName: "auth_rule",
80
+ timestamps: false
81
+ })
82
+ ], authRule);
83
+ // Annotate the CommonJS export names for ESM import in node:
84
+ 0 && (module.exports = {
85
+ authRule
86
+ });
@@ -0,0 +1,8 @@
1
+ export { authAssignment, authAssignmentAttributes } from './authAssignment.js';
2
+ export { authItem, authItemAttributes } from './authItem.js';
3
+ export { authItemChild, authItemChildAttributes } from './authItemChild.js';
4
+ export { authRule, authRuleAttributes } from './authRule.js';
5
+ export { mdContent, mdContentAttributes } from './mdContent.js';
6
+ export { mdContentGroup, mdContentGroupAttributes } from './mdContentGroup.js';
7
+ export { users, usersAttributes } from './users.js';
8
+ import 'sequelize-typescript';