namirasoft-alarm 1.4.5 → 1.4.8
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.
- package/dist/NamirasoftAlarmServerBase.d.ts +2 -2
- package/dist/NamirasoftAlarmServerBase.js +2 -2
- package/dist/NamirasoftAlarmServerBase.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/meta/AlarmCategoryMetaTable.d.ts +4 -3
- package/dist/meta/AlarmCategoryMetaTable.js +10 -9
- package/dist/meta/AlarmCategoryMetaTable.js.map +1 -1
- package/dist/meta/AlarmFieldMetaTable.d.ts +4 -3
- package/dist/meta/AlarmFieldMetaTable.js +12 -11
- package/dist/meta/AlarmFieldMetaTable.js.map +1 -1
- package/dist/meta/AlarmMetaTable.d.ts +4 -3
- package/dist/meta/AlarmMetaTable.js +15 -14
- package/dist/meta/AlarmMetaTable.js.map +1 -1
- package/dist/meta/AlarmTagMetaTable.d.ts +4 -3
- package/dist/meta/AlarmTagMetaTable.js +12 -11
- package/dist/meta/AlarmTagMetaTable.js.map +1 -1
- package/dist/meta/NamirasoftAlarmMetaDatabase.d.ts +15 -0
- package/dist/meta/NamirasoftAlarmMetaDatabase.js +24 -0
- package/dist/meta/NamirasoftAlarmMetaDatabase.js.map +1 -0
- package/package.json +4 -4
- package/src/NamirasoftAlarmServerBase.ts +3 -3
- package/src/index.ts +1 -1
- package/src/meta/AlarmCategoryMetaTable.ts +12 -11
- package/src/meta/AlarmFieldMetaTable.ts +14 -13
- package/src/meta/AlarmMetaTable.ts +17 -16
- package/src/meta/AlarmTagMetaTable.ts +14 -13
- package/src/meta/{MetaDatabase.ts → NamirasoftAlarmMetaDatabase.ts} +17 -11
- package/dist/meta/MetaDatabase.d.ts +0 -12
- package/dist/meta/MetaDatabase.js +0 -19
- package/dist/meta/MetaDatabase.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NSABaseServer } from "namirasoft-account";
|
|
2
2
|
import { TokenManager } from "namirasoft-account";
|
|
3
|
-
export declare class NamirasoftAlarmServerBase extends
|
|
3
|
+
export declare class NamirasoftAlarmServerBase extends NSABaseServer {
|
|
4
4
|
constructor(base_url: string, manager: TokenManager, onError: (error: Error) => void);
|
|
5
5
|
}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.NamirasoftAlarmServerBase = void 0;
|
|
4
4
|
const namirasoft_account_1 = require("namirasoft-account");
|
|
5
|
-
class NamirasoftAlarmServerBase extends namirasoft_account_1.
|
|
5
|
+
class NamirasoftAlarmServerBase extends namirasoft_account_1.NSABaseServer {
|
|
6
6
|
constructor(base_url, manager, onError) {
|
|
7
|
-
super(base_url, `1.4.
|
|
7
|
+
super(base_url, `1.4.8`, manager, onError);
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
exports.NamirasoftAlarmServerBase = NamirasoftAlarmServerBase;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NamirasoftAlarmServerBase.js","sourceRoot":"","sources":["../src/NamirasoftAlarmServerBase.ts"],"names":[],"mappings":";;;AAoBA,
|
|
1
|
+
{"version":3,"file":"NamirasoftAlarmServerBase.js","sourceRoot":"","sources":["../src/NamirasoftAlarmServerBase.ts"],"names":[],"mappings":";;;AAoBA,2DAAmD;AAGnD,MAAa,yBAA0B,SAAQ,kCAAa;IAExD,YAAY,QAAgB,EAAE,OAAqB,EAAE,OAA+B;QAEhF,KAAK,CAAC,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IAC/C,CAAC;CACJ;AAND,8DAMC;AAAA,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -37,7 +37,7 @@ export * from "./meta/AlarmCategoryMetaTable";
|
|
|
37
37
|
export * from "./meta/AlarmFieldMetaTable";
|
|
38
38
|
export * from "./meta/AlarmMetaTable";
|
|
39
39
|
export * from "./meta/AlarmTagMetaTable";
|
|
40
|
-
export * from "./meta/
|
|
40
|
+
export * from "./meta/NamirasoftAlarmMetaDatabase";
|
|
41
41
|
export * from "./row/AlarmCategoryRow";
|
|
42
42
|
export * from "./row/AlarmFieldRow";
|
|
43
43
|
export * from "./row/AlarmInputRow";
|
package/dist/index.js
CHANGED
|
@@ -53,7 +53,7 @@ __exportStar(require("./meta/AlarmCategoryMetaTable"), exports);
|
|
|
53
53
|
__exportStar(require("./meta/AlarmFieldMetaTable"), exports);
|
|
54
54
|
__exportStar(require("./meta/AlarmMetaTable"), exports);
|
|
55
55
|
__exportStar(require("./meta/AlarmTagMetaTable"), exports);
|
|
56
|
-
__exportStar(require("./meta/
|
|
56
|
+
__exportStar(require("./meta/NamirasoftAlarmMetaDatabase"), exports);
|
|
57
57
|
__exportStar(require("./row/AlarmCategoryRow"), exports);
|
|
58
58
|
__exportStar(require("./row/AlarmFieldRow"), exports);
|
|
59
59
|
__exportStar(require("./row/AlarmInputRow"), exports);
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAoBA,0DAAwC;AACxC,+DAA6C;AAC7C,uEAAqD;AACrD,oEAAkD;AAClD,kEAAgD;AAChD,8DAA4C;AAC5C,iEAA+C;AAC/C,+DAA6C;AAC7C,iEAA+C;AAC/C,uEAAqD;AACrD,uEAAqD;AACrD,oEAAkD;AAClD,qEAAmD;AACnD,yDAAuC;AACvC,+DAA6C;AAC7C,+DAA6C;AAC7C,8DAA4C;AAC5C,oEAAkD;AAClD,oEAAkD;AAClD,iEAA+C;AAC/C,kEAAgD;AAChD,oEAAkD;AAClD,4DAA0C;AAC1C,6DAA2C;AAC3C,4DAA0C;AAC1C,kEAAgD;AAChD,kEAAgD;AAChD,+DAA6C;AAC7C,gEAA8C;AAC9C,kEAAgD;AAChD,+DAA6C;AAC7C,2DAAyC;AACzC,8DAA4C;AAC5C,yDAAuC;AACvC,6DAA2C;AAC3C,gEAA8C;AAC9C,6DAA2C;AAC3C,wDAAsC;AACtC,2DAAyC;AACzC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAoBA,0DAAwC;AACxC,+DAA6C;AAC7C,uEAAqD;AACrD,oEAAkD;AAClD,kEAAgD;AAChD,8DAA4C;AAC5C,iEAA+C;AAC/C,+DAA6C;AAC7C,iEAA+C;AAC/C,uEAAqD;AACrD,uEAAqD;AACrD,oEAAkD;AAClD,qEAAmD;AACnD,yDAAuC;AACvC,+DAA6C;AAC7C,+DAA6C;AAC7C,8DAA4C;AAC5C,oEAAkD;AAClD,oEAAkD;AAClD,iEAA+C;AAC/C,kEAAgD;AAChD,oEAAkD;AAClD,4DAA0C;AAC1C,6DAA2C;AAC3C,4DAA0C;AAC1C,kEAAgD;AAChD,kEAAgD;AAChD,+DAA6C;AAC7C,gEAA8C;AAC9C,kEAAgD;AAChD,+DAA6C;AAC7C,2DAAyC;AACzC,8DAA4C;AAC5C,yDAAuC;AACvC,6DAA2C;AAC3C,gEAA8C;AAC9C,6DAA2C;AAC3C,wDAAsC;AACtC,2DAAyC;AACzC,qEAAmD;AACnD,yDAAuC;AACvC,sDAAoC;AACpC,sDAAoC;AACpC,iDAA+B;AAC/B,oDAAkC;AAClC,+DAA6C;AAC7C,4DAA0C;AAC1C,0DAAwC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { BaseMetaColumn
|
|
2
|
-
|
|
1
|
+
import { BaseMetaColumn } from "namirasoft-core";
|
|
2
|
+
import { NSBaseMetaDatabase, NSBaseMetaTable } from "namirasoft-site";
|
|
3
|
+
export declare class AlarmCategoryMetaTable extends NSBaseMetaTable {
|
|
3
4
|
columns: {
|
|
4
5
|
id: BaseMetaColumn;
|
|
5
6
|
user_id: BaseMetaColumn;
|
|
@@ -8,5 +9,5 @@ export declare class AlarmCategoryMetaTable extends BaseMetaTable {
|
|
|
8
9
|
created_at: BaseMetaColumn;
|
|
9
10
|
updated_at: BaseMetaColumn;
|
|
10
11
|
};
|
|
11
|
-
constructor();
|
|
12
|
+
constructor(database: NSBaseMetaDatabase);
|
|
12
13
|
}
|
|
@@ -2,16 +2,17 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AlarmCategoryMetaTable = void 0;
|
|
4
4
|
const namirasoft_core_1 = require("namirasoft-core");
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
const namirasoft_site_1 = require("namirasoft-site");
|
|
6
|
+
class AlarmCategoryMetaTable extends namirasoft_site_1.NSBaseMetaTable {
|
|
7
|
+
constructor(database) {
|
|
8
|
+
super(database, "alarm_category", "Alarm Category", new namirasoft_core_1.BaseUUID(""));
|
|
8
9
|
this.columns = {
|
|
9
|
-
id: new namirasoft_core_1.BaseMetaColumn("id", "Id", "Integer", true),
|
|
10
|
-
user_id: new namirasoft_core_1.BaseMetaColumn("user_id", "User Id", "String", true),
|
|
11
|
-
entity_id: new namirasoft_core_1.BaseMetaColumn("entity_id", "Entity Id", "String", true),
|
|
12
|
-
category_id: new namirasoft_core_1.BaseMetaColumn("category_id", "Category Id", "String", true),
|
|
13
|
-
created_at: new namirasoft_core_1.BaseMetaColumn("created_at", "Created At", "DateTime", true),
|
|
14
|
-
updated_at: new namirasoft_core_1.BaseMetaColumn("updated_at", "Updated At", "DateTime", true),
|
|
10
|
+
id: new namirasoft_core_1.BaseMetaColumn(this, "id", "Id", "Integer", true),
|
|
11
|
+
user_id: new namirasoft_core_1.BaseMetaColumn(this, "user_id", "User Id", "String", true),
|
|
12
|
+
entity_id: new namirasoft_core_1.BaseMetaColumn(this, "entity_id", "Entity Id", "String", true),
|
|
13
|
+
category_id: new namirasoft_core_1.BaseMetaColumn(this, "category_id", "Category Id", "String", true),
|
|
14
|
+
created_at: new namirasoft_core_1.BaseMetaColumn(this, "created_at", "Created At", "DateTime", true),
|
|
15
|
+
updated_at: new namirasoft_core_1.BaseMetaColumn(this, "updated_at", "Updated At", "DateTime", true),
|
|
15
16
|
};
|
|
16
17
|
}
|
|
17
18
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlarmCategoryMetaTable.js","sourceRoot":"","sources":["../../src/meta/AlarmCategoryMetaTable.ts"],"names":[],"mappings":";;;AAoBA,
|
|
1
|
+
{"version":3,"file":"AlarmCategoryMetaTable.js","sourceRoot":"","sources":["../../src/meta/AlarmCategoryMetaTable.ts"],"names":[],"mappings":";;;AAoBA,qDAA2D;AAC3D,qDAAsE;AAEtE,MAAa,sBAAuB,SAAQ,iCAAe;IAUvD,YAAY,QAA4B;QAEpC,KAAK,CAAC,QAAQ,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,IAAI,0BAAQ,CAAC,EAAE,CAAC,CAAC,CAAC;QACtE,IAAI,CAAC,OAAO,GAAG;YACX,EAAE,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,CAAC;YACzD,OAAO,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,CAAC;YACvE,SAAS,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,CAAC;YAC7E,WAAW,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,aAAa,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,CAAC;YACnF,UAAU,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,IAAI,CAAC;YAClF,UAAU,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,IAAI,CAAC;SACrF,CAAC;IACN,CAAC;CACJ;AAtBD,wDAsBC;AAAA,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { BaseMetaColumn
|
|
2
|
-
|
|
1
|
+
import { BaseMetaColumn } from "namirasoft-core";
|
|
2
|
+
import { NSBaseMetaDatabase, NSBaseMetaTable } from "namirasoft-site";
|
|
3
|
+
export declare class AlarmFieldMetaTable extends NSBaseMetaTable {
|
|
3
4
|
columns: {
|
|
4
5
|
id: BaseMetaColumn;
|
|
5
6
|
user_id: BaseMetaColumn;
|
|
@@ -10,5 +11,5 @@ export declare class AlarmFieldMetaTable extends BaseMetaTable {
|
|
|
10
11
|
created_at: BaseMetaColumn;
|
|
11
12
|
updated_at: BaseMetaColumn;
|
|
12
13
|
};
|
|
13
|
-
constructor();
|
|
14
|
+
constructor(database: NSBaseMetaDatabase);
|
|
14
15
|
}
|
|
@@ -2,18 +2,19 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AlarmFieldMetaTable = void 0;
|
|
4
4
|
const namirasoft_core_1 = require("namirasoft-core");
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
const namirasoft_site_1 = require("namirasoft-site");
|
|
6
|
+
class AlarmFieldMetaTable extends namirasoft_site_1.NSBaseMetaTable {
|
|
7
|
+
constructor(database) {
|
|
8
|
+
super(database, "alarm_field", "Alarm Field", new namirasoft_core_1.BaseUUID(""));
|
|
8
9
|
this.columns = {
|
|
9
|
-
id: new namirasoft_core_1.BaseMetaColumn("id", "Id", "Integer", true),
|
|
10
|
-
user_id: new namirasoft_core_1.BaseMetaColumn("user_id", "User Id", "String", true),
|
|
11
|
-
entity_id: new namirasoft_core_1.BaseMetaColumn("entity_id", "Entity Id", "String", true),
|
|
12
|
-
field_id: new namirasoft_core_1.BaseMetaColumn("field_id", "Field Id", "String", true),
|
|
13
|
-
value: new namirasoft_core_1.BaseMetaColumn("value", "Value", "String", true),
|
|
14
|
-
description: new namirasoft_core_1.BaseMetaColumn("description", "Description", "String", false),
|
|
15
|
-
created_at: new namirasoft_core_1.BaseMetaColumn("created_at", "Created At", "DateTime", true),
|
|
16
|
-
updated_at: new namirasoft_core_1.BaseMetaColumn("updated_at", "Updated At", "DateTime", true),
|
|
10
|
+
id: new namirasoft_core_1.BaseMetaColumn(this, "id", "Id", "Integer", true),
|
|
11
|
+
user_id: new namirasoft_core_1.BaseMetaColumn(this, "user_id", "User Id", "String", true),
|
|
12
|
+
entity_id: new namirasoft_core_1.BaseMetaColumn(this, "entity_id", "Entity Id", "String", true),
|
|
13
|
+
field_id: new namirasoft_core_1.BaseMetaColumn(this, "field_id", "Field Id", "String", true),
|
|
14
|
+
value: new namirasoft_core_1.BaseMetaColumn(this, "value", "Value", "String", true),
|
|
15
|
+
description: new namirasoft_core_1.BaseMetaColumn(this, "description", "Description", "String", false),
|
|
16
|
+
created_at: new namirasoft_core_1.BaseMetaColumn(this, "created_at", "Created At", "DateTime", true),
|
|
17
|
+
updated_at: new namirasoft_core_1.BaseMetaColumn(this, "updated_at", "Updated At", "DateTime", true),
|
|
17
18
|
};
|
|
18
19
|
}
|
|
19
20
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlarmFieldMetaTable.js","sourceRoot":"","sources":["../../src/meta/AlarmFieldMetaTable.ts"],"names":[],"mappings":";;;AAoBA,
|
|
1
|
+
{"version":3,"file":"AlarmFieldMetaTable.js","sourceRoot":"","sources":["../../src/meta/AlarmFieldMetaTable.ts"],"names":[],"mappings":";;;AAoBA,qDAA2D;AAC3D,qDAAsE;AAEtE,MAAa,mBAAoB,SAAQ,iCAAe;IAYpD,YAAY,QAA4B;QAEpC,KAAK,CAAC,QAAQ,EAAE,aAAa,EAAE,aAAa,EAAE,IAAI,0BAAQ,CAAC,EAAE,CAAC,CAAC,CAAC;QAChE,IAAI,CAAC,OAAO,GAAG;YACX,EAAE,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,CAAC;YACzD,OAAO,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,CAAC;YACvE,SAAS,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,CAAC;YAC7E,QAAQ,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,CAAC;YAC1E,KAAK,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,CAAC;YACjE,WAAW,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,aAAa,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,CAAC;YACpF,UAAU,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,IAAI,CAAC;YAClF,UAAU,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,IAAI,CAAC;SACrF,CAAC;IACN,CAAC;CACJ;AA1BD,kDA0BC;AAAA,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { BaseMetaColumn
|
|
2
|
-
|
|
1
|
+
import { BaseMetaColumn } from "namirasoft-core";
|
|
2
|
+
import { NSBaseMetaDatabase, NSBaseMetaTable } from "namirasoft-site";
|
|
3
|
+
export declare class AlarmMetaTable extends NSBaseMetaTable {
|
|
3
4
|
columns: {
|
|
4
5
|
id: BaseMetaColumn;
|
|
5
6
|
user_id: BaseMetaColumn;
|
|
@@ -13,5 +14,5 @@ export declare class AlarmMetaTable extends BaseMetaTable {
|
|
|
13
14
|
created_at: BaseMetaColumn;
|
|
14
15
|
updated_at: BaseMetaColumn;
|
|
15
16
|
};
|
|
16
|
-
constructor();
|
|
17
|
+
constructor(database: NSBaseMetaDatabase);
|
|
17
18
|
}
|
|
@@ -2,21 +2,22 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AlarmMetaTable = void 0;
|
|
4
4
|
const namirasoft_core_1 = require("namirasoft-core");
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
const namirasoft_site_1 = require("namirasoft-site");
|
|
6
|
+
class AlarmMetaTable extends namirasoft_site_1.NSBaseMetaTable {
|
|
7
|
+
constructor(database) {
|
|
8
|
+
super(database, "alarm", "Alarm", new namirasoft_core_1.BaseUUID("alm"));
|
|
8
9
|
this.columns = {
|
|
9
|
-
id: new namirasoft_core_1.BaseMetaColumn("id", "Id", "String", true),
|
|
10
|
-
user_id: new namirasoft_core_1.BaseMetaColumn("user_id", "User Id", "String", true),
|
|
11
|
-
product_id: new namirasoft_core_1.BaseMetaColumn("product_id", "Product Id", "String", true),
|
|
12
|
-
topic_id: new namirasoft_core_1.BaseMetaColumn("topic_id", "Topic Id", "String", true),
|
|
13
|
-
name: new namirasoft_core_1.BaseMetaColumn("name", "Name", "String", false),
|
|
14
|
-
entity: new namirasoft_core_1.BaseMetaColumn("entity", "Entity", "String", false),
|
|
15
|
-
action: new namirasoft_core_1.BaseMetaColumn("action", "Action", "String", false),
|
|
16
|
-
filters: new namirasoft_core_1.BaseMetaColumn("filters", "Filters", "String", false),
|
|
17
|
-
description: new namirasoft_core_1.BaseMetaColumn("description", "Description", "String", false),
|
|
18
|
-
created_at: new namirasoft_core_1.BaseMetaColumn("created_at", "Created At", "DateTime", true),
|
|
19
|
-
updated_at: new namirasoft_core_1.BaseMetaColumn("updated_at", "Updated At", "DateTime", true),
|
|
10
|
+
id: new namirasoft_core_1.BaseMetaColumn(this, "id", "Id", "String", true),
|
|
11
|
+
user_id: new namirasoft_core_1.BaseMetaColumn(this, "user_id", "User Id", "String", true),
|
|
12
|
+
product_id: new namirasoft_core_1.BaseMetaColumn(this, "product_id", "Product Id", "String", true),
|
|
13
|
+
topic_id: new namirasoft_core_1.BaseMetaColumn(this, "topic_id", "Topic Id", "String", true),
|
|
14
|
+
name: new namirasoft_core_1.BaseMetaColumn(this, "name", "Name", "String", false),
|
|
15
|
+
entity: new namirasoft_core_1.BaseMetaColumn(this, "entity", "Entity", "String", false),
|
|
16
|
+
action: new namirasoft_core_1.BaseMetaColumn(this, "action", "Action", "String", false),
|
|
17
|
+
filters: new namirasoft_core_1.BaseMetaColumn(this, "filters", "Filters", "String", false),
|
|
18
|
+
description: new namirasoft_core_1.BaseMetaColumn(this, "description", "Description", "String", false),
|
|
19
|
+
created_at: new namirasoft_core_1.BaseMetaColumn(this, "created_at", "Created At", "DateTime", true),
|
|
20
|
+
updated_at: new namirasoft_core_1.BaseMetaColumn(this, "updated_at", "Updated At", "DateTime", true),
|
|
20
21
|
};
|
|
21
22
|
}
|
|
22
23
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlarmMetaTable.js","sourceRoot":"","sources":["../../src/meta/AlarmMetaTable.ts"],"names":[],"mappings":";;;AAoBA,
|
|
1
|
+
{"version":3,"file":"AlarmMetaTable.js","sourceRoot":"","sources":["../../src/meta/AlarmMetaTable.ts"],"names":[],"mappings":";;;AAoBA,qDAA2D;AAC3D,qDAAsE;AAEtE,MAAa,cAAe,SAAQ,iCAAe;IAe/C,YAAY,QAA4B;QAEpC,KAAK,CAAC,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,0BAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;QACvD,IAAI,CAAC,OAAO,GAAG;YACX,EAAE,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC;YACxD,OAAO,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,CAAC;YACvE,UAAU,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,QAAQ,EAAE,IAAI,CAAC;YAChF,QAAQ,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,CAAC;YAC1E,IAAI,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC;YAC/D,MAAM,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,CAAC;YACrE,MAAM,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,CAAC;YACrE,OAAO,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,CAAC;YACxE,WAAW,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,aAAa,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,CAAC;YACpF,UAAU,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,IAAI,CAAC;YAClF,UAAU,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,IAAI,CAAC;SACrF,CAAC;IACN,CAAC;CACJ;AAhCD,wCAgCC;AAAA,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { BaseMetaColumn
|
|
2
|
-
|
|
1
|
+
import { BaseMetaColumn } from "namirasoft-core";
|
|
2
|
+
import { NSBaseMetaDatabase, NSBaseMetaTable } from "namirasoft-site";
|
|
3
|
+
export declare class AlarmTagMetaTable extends NSBaseMetaTable {
|
|
3
4
|
columns: {
|
|
4
5
|
id: BaseMetaColumn;
|
|
5
6
|
user_id: BaseMetaColumn;
|
|
@@ -10,5 +11,5 @@ export declare class AlarmTagMetaTable extends BaseMetaTable {
|
|
|
10
11
|
created_at: BaseMetaColumn;
|
|
11
12
|
updated_at: BaseMetaColumn;
|
|
12
13
|
};
|
|
13
|
-
constructor();
|
|
14
|
+
constructor(database: NSBaseMetaDatabase);
|
|
14
15
|
}
|
|
@@ -2,18 +2,19 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AlarmTagMetaTable = void 0;
|
|
4
4
|
const namirasoft_core_1 = require("namirasoft-core");
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
const namirasoft_site_1 = require("namirasoft-site");
|
|
6
|
+
class AlarmTagMetaTable extends namirasoft_site_1.NSBaseMetaTable {
|
|
7
|
+
constructor(database) {
|
|
8
|
+
super(database, "alarm_tag", "Alarm Tag", new namirasoft_core_1.BaseUUID(""));
|
|
8
9
|
this.columns = {
|
|
9
|
-
id: new namirasoft_core_1.BaseMetaColumn("id", "Id", "Integer", true),
|
|
10
|
-
user_id: new namirasoft_core_1.BaseMetaColumn("user_id", "User Id", "String", true),
|
|
11
|
-
entity_id: new namirasoft_core_1.BaseMetaColumn("entity_id", "Entity Id", "String", true),
|
|
12
|
-
name: new namirasoft_core_1.BaseMetaColumn("name", "Name", "String", true),
|
|
13
|
-
value: new namirasoft_core_1.BaseMetaColumn("value", "Value", "String", true),
|
|
14
|
-
description: new namirasoft_core_1.BaseMetaColumn("description", "Description", "String", false),
|
|
15
|
-
created_at: new namirasoft_core_1.BaseMetaColumn("created_at", "Created At", "DateTime", true),
|
|
16
|
-
updated_at: new namirasoft_core_1.BaseMetaColumn("updated_at", "Updated At", "DateTime", true),
|
|
10
|
+
id: new namirasoft_core_1.BaseMetaColumn(this, "id", "Id", "Integer", true),
|
|
11
|
+
user_id: new namirasoft_core_1.BaseMetaColumn(this, "user_id", "User Id", "String", true),
|
|
12
|
+
entity_id: new namirasoft_core_1.BaseMetaColumn(this, "entity_id", "Entity Id", "String", true),
|
|
13
|
+
name: new namirasoft_core_1.BaseMetaColumn(this, "name", "Name", "String", true),
|
|
14
|
+
value: new namirasoft_core_1.BaseMetaColumn(this, "value", "Value", "String", true),
|
|
15
|
+
description: new namirasoft_core_1.BaseMetaColumn(this, "description", "Description", "String", false),
|
|
16
|
+
created_at: new namirasoft_core_1.BaseMetaColumn(this, "created_at", "Created At", "DateTime", true),
|
|
17
|
+
updated_at: new namirasoft_core_1.BaseMetaColumn(this, "updated_at", "Updated At", "DateTime", true),
|
|
17
18
|
};
|
|
18
19
|
}
|
|
19
20
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlarmTagMetaTable.js","sourceRoot":"","sources":["../../src/meta/AlarmTagMetaTable.ts"],"names":[],"mappings":";;;AAoBA,
|
|
1
|
+
{"version":3,"file":"AlarmTagMetaTable.js","sourceRoot":"","sources":["../../src/meta/AlarmTagMetaTable.ts"],"names":[],"mappings":";;;AAoBA,qDAA2D;AAC3D,qDAAsE;AAEtE,MAAa,iBAAkB,SAAQ,iCAAe;IAYlD,YAAY,QAA4B;QAEpC,KAAK,CAAC,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,IAAI,0BAAQ,CAAC,EAAE,CAAC,CAAC,CAAC;QAC5D,IAAI,CAAC,OAAO,GAAG;YACX,EAAE,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,CAAC;YACzD,OAAO,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,CAAC;YACvE,SAAS,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,CAAC;YAC7E,IAAI,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,CAAC;YAC9D,KAAK,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,CAAC;YACjE,WAAW,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,aAAa,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,CAAC;YACpF,UAAU,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,IAAI,CAAC;YAClF,UAAU,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,IAAI,CAAC;SACrF,CAAC;IACN,CAAC;CACJ;AA1BD,8CA0BC;AAAA,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AlarmCategoryMetaTable } from "./AlarmCategoryMetaTable";
|
|
2
|
+
import { AlarmFieldMetaTable } from "./AlarmFieldMetaTable";
|
|
3
|
+
import { AlarmMetaTable } from "./AlarmMetaTable";
|
|
4
|
+
import { AlarmTagMetaTable } from "./AlarmTagMetaTable";
|
|
5
|
+
import { NSBaseMetaDatabase } from "namirasoft-site";
|
|
6
|
+
export declare class NamirasoftAlarmMetaDatabase extends NSBaseMetaDatabase {
|
|
7
|
+
static main: NamirasoftAlarmMetaDatabase;
|
|
8
|
+
tables: {
|
|
9
|
+
alarm: AlarmMetaTable;
|
|
10
|
+
alarm_category: AlarmCategoryMetaTable;
|
|
11
|
+
alarm_field: AlarmFieldMetaTable;
|
|
12
|
+
alarm_tag: AlarmTagMetaTable;
|
|
13
|
+
};
|
|
14
|
+
constructor();
|
|
15
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NamirasoftAlarmMetaDatabase = void 0;
|
|
4
|
+
const AlarmCategoryMetaTable_1 = require("./AlarmCategoryMetaTable");
|
|
5
|
+
const AlarmFieldMetaTable_1 = require("./AlarmFieldMetaTable");
|
|
6
|
+
const AlarmMetaTable_1 = require("./AlarmMetaTable");
|
|
7
|
+
const AlarmTagMetaTable_1 = require("./AlarmTagMetaTable");
|
|
8
|
+
const namirasoft_site_1 = require("namirasoft-site");
|
|
9
|
+
class NamirasoftAlarmMetaDatabase extends namirasoft_site_1.NSBaseMetaDatabase {
|
|
10
|
+
constructor() {
|
|
11
|
+
super({ id: "prd-ad236da9ae8d4e7f", name: "Namirasoft Alarm", headline: "", description: "", logo: "https://static.namirasoft.com/image/namirasoft/alarm/logo/base.png", link: "https://alarm.namirasoft.com" });
|
|
12
|
+
this.tables = {
|
|
13
|
+
alarm: new AlarmMetaTable_1.AlarmMetaTable(this),
|
|
14
|
+
alarm_category: new AlarmCategoryMetaTable_1.AlarmCategoryMetaTable(this),
|
|
15
|
+
alarm_field: new AlarmFieldMetaTable_1.AlarmFieldMetaTable(this),
|
|
16
|
+
alarm_tag: new AlarmTagMetaTable_1.AlarmTagMetaTable(this),
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
;
|
|
20
|
+
}
|
|
21
|
+
exports.NamirasoftAlarmMetaDatabase = NamirasoftAlarmMetaDatabase;
|
|
22
|
+
NamirasoftAlarmMetaDatabase.main = new NamirasoftAlarmMetaDatabase();
|
|
23
|
+
;
|
|
24
|
+
//# sourceMappingURL=NamirasoftAlarmMetaDatabase.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NamirasoftAlarmMetaDatabase.js","sourceRoot":"","sources":["../../src/meta/NamirasoftAlarmMetaDatabase.ts"],"names":[],"mappings":";;;AAoBA,qEAAkE;AAClE,+DAA4D;AAC5D,qDAAkD;AAClD,2DAAwD;AACxD,qDAAqD;AAErD,MAAa,2BAA4B,SAAQ,oCAAkB;IAS/D;QAEI,KAAK,CAAC,EAAE,EAAE,EAAE,sBAAsB,EAAE,IAAI,EAAE,kBAAkB,EAAE,QAAQ,EAAE,EAAE,EAAE,WAAW,EAAE,EAAE,EAAE,IAAI,EAAE,oEAAoE,EAAE,IAAI,EAAE,8BAA8B,EAAE,CAAC,CAAC;QACjN,IAAI,CAAC,MAAM,GAAG;YACV,KAAK,EAAE,IAAI,+BAAc,CAAC,IAAI,CAAC;YAC/B,cAAc,EAAE,IAAI,+CAAsB,CAAC,IAAI,CAAC;YAChD,WAAW,EAAE,IAAI,yCAAmB,CAAC,IAAI,CAAC;YAC1C,SAAS,EAAE,IAAI,qCAAiB,CAAC,IAAI,CAAC;SACzC,CAAC;IACN,CAAC;IAAA,CAAC;;AAlBN,kEAmBC;AAjBiB,gCAAI,GAAgC,IAAI,2BAA2B,EAAE,CAAC;AAiBvF,CAAC"}
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"framework": "npm",
|
|
9
9
|
"application": "package",
|
|
10
10
|
"private": false,
|
|
11
|
-
"version": "1.4.
|
|
11
|
+
"version": "1.4.8",
|
|
12
12
|
"author": "Amir Abolhasani",
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"main": "./dist/index.js",
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
"build": ""
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"namirasoft-core": "^1.4.
|
|
21
|
-
"namirasoft-site": "^1.4.
|
|
20
|
+
"namirasoft-core": "^1.4.21",
|
|
21
|
+
"namirasoft-site": "^1.4.5",
|
|
22
22
|
"namirasoft-node-cli": "^1.4.4",
|
|
23
|
-
"namirasoft-account": "^1.4.
|
|
23
|
+
"namirasoft-account": "^1.4.27"
|
|
24
24
|
},
|
|
25
25
|
"bin": {
|
|
26
26
|
"ns-alarm": "./dist/command/cli.js"
|
|
@@ -18,13 +18,13 @@
|
|
|
18
18
|
/* */
|
|
19
19
|
/****************************************************************/
|
|
20
20
|
|
|
21
|
-
import {
|
|
21
|
+
import { NSABaseServer } from "namirasoft-account";
|
|
22
22
|
import { TokenManager } from "namirasoft-account";
|
|
23
23
|
|
|
24
|
-
export class NamirasoftAlarmServerBase extends
|
|
24
|
+
export class NamirasoftAlarmServerBase extends NSABaseServer
|
|
25
25
|
{
|
|
26
26
|
constructor(base_url: string, manager: TokenManager, onError: (error: Error) => void)
|
|
27
27
|
{
|
|
28
|
-
super(base_url, `1.4.
|
|
28
|
+
super(base_url, `1.4.8`, manager, onError);
|
|
29
29
|
}
|
|
30
30
|
};
|
package/src/index.ts
CHANGED
|
@@ -57,7 +57,7 @@ export * from "./meta/AlarmCategoryMetaTable";
|
|
|
57
57
|
export * from "./meta/AlarmFieldMetaTable";
|
|
58
58
|
export * from "./meta/AlarmMetaTable";
|
|
59
59
|
export * from "./meta/AlarmTagMetaTable";
|
|
60
|
-
export * from "./meta/
|
|
60
|
+
export * from "./meta/NamirasoftAlarmMetaDatabase";
|
|
61
61
|
export * from "./row/AlarmCategoryRow";
|
|
62
62
|
export * from "./row/AlarmFieldRow";
|
|
63
63
|
export * from "./row/AlarmInputRow";
|
|
@@ -18,11 +18,12 @@
|
|
|
18
18
|
/* */
|
|
19
19
|
/****************************************************************/
|
|
20
20
|
|
|
21
|
-
import {
|
|
21
|
+
import { BaseUUID, BaseMetaColumn } from "namirasoft-core";
|
|
22
|
+
import { NSBaseMetaDatabase, NSBaseMetaTable } from "namirasoft-site";
|
|
22
23
|
|
|
23
|
-
export class AlarmCategoryMetaTable extends
|
|
24
|
+
export class AlarmCategoryMetaTable extends NSBaseMetaTable
|
|
24
25
|
{
|
|
25
|
-
public columns
|
|
26
|
+
public override columns: {
|
|
26
27
|
id: BaseMetaColumn;
|
|
27
28
|
user_id: BaseMetaColumn;
|
|
28
29
|
entity_id: BaseMetaColumn;
|
|
@@ -30,16 +31,16 @@ export class AlarmCategoryMetaTable extends BaseMetaTable
|
|
|
30
31
|
created_at: BaseMetaColumn;
|
|
31
32
|
updated_at: BaseMetaColumn;
|
|
32
33
|
}
|
|
33
|
-
constructor()
|
|
34
|
+
constructor(database: NSBaseMetaDatabase)
|
|
34
35
|
{
|
|
35
|
-
super("alarm_category", "Alarm Category");
|
|
36
|
+
super(database, "alarm_category", "Alarm Category", new BaseUUID(""));
|
|
36
37
|
this.columns = {
|
|
37
|
-
id: new BaseMetaColumn("id", "Id", "Integer", true),
|
|
38
|
-
user_id: new BaseMetaColumn("user_id", "User Id", "String", true),
|
|
39
|
-
entity_id: new BaseMetaColumn("entity_id", "Entity Id", "String", true),
|
|
40
|
-
category_id: new BaseMetaColumn("category_id", "Category Id", "String", true),
|
|
41
|
-
created_at: new BaseMetaColumn("created_at", "Created At", "DateTime", true),
|
|
42
|
-
updated_at: new BaseMetaColumn("updated_at", "Updated At", "DateTime", true),
|
|
38
|
+
id: new BaseMetaColumn(this, "id", "Id", "Integer", true),
|
|
39
|
+
user_id: new BaseMetaColumn(this, "user_id", "User Id", "String", true),
|
|
40
|
+
entity_id: new BaseMetaColumn(this, "entity_id", "Entity Id", "String", true),
|
|
41
|
+
category_id: new BaseMetaColumn(this, "category_id", "Category Id", "String", true),
|
|
42
|
+
created_at: new BaseMetaColumn(this, "created_at", "Created At", "DateTime", true),
|
|
43
|
+
updated_at: new BaseMetaColumn(this, "updated_at", "Updated At", "DateTime", true),
|
|
43
44
|
};
|
|
44
45
|
}
|
|
45
46
|
};
|
|
@@ -18,11 +18,12 @@
|
|
|
18
18
|
/* */
|
|
19
19
|
/****************************************************************/
|
|
20
20
|
|
|
21
|
-
import {
|
|
21
|
+
import { BaseUUID, BaseMetaColumn } from "namirasoft-core";
|
|
22
|
+
import { NSBaseMetaDatabase, NSBaseMetaTable } from "namirasoft-site";
|
|
22
23
|
|
|
23
|
-
export class AlarmFieldMetaTable extends
|
|
24
|
+
export class AlarmFieldMetaTable extends NSBaseMetaTable
|
|
24
25
|
{
|
|
25
|
-
public columns
|
|
26
|
+
public override columns: {
|
|
26
27
|
id: BaseMetaColumn;
|
|
27
28
|
user_id: BaseMetaColumn;
|
|
28
29
|
entity_id: BaseMetaColumn;
|
|
@@ -32,18 +33,18 @@ export class AlarmFieldMetaTable extends BaseMetaTable
|
|
|
32
33
|
created_at: BaseMetaColumn;
|
|
33
34
|
updated_at: BaseMetaColumn;
|
|
34
35
|
}
|
|
35
|
-
constructor()
|
|
36
|
+
constructor(database: NSBaseMetaDatabase)
|
|
36
37
|
{
|
|
37
|
-
super("alarm_field", "Alarm Field");
|
|
38
|
+
super(database, "alarm_field", "Alarm Field", new BaseUUID(""));
|
|
38
39
|
this.columns = {
|
|
39
|
-
id: new BaseMetaColumn("id", "Id", "Integer", true),
|
|
40
|
-
user_id: new BaseMetaColumn("user_id", "User Id", "String", true),
|
|
41
|
-
entity_id: new BaseMetaColumn("entity_id", "Entity Id", "String", true),
|
|
42
|
-
field_id: new BaseMetaColumn("field_id", "Field Id", "String", true),
|
|
43
|
-
value: new BaseMetaColumn("value", "Value", "String", true),
|
|
44
|
-
description: new BaseMetaColumn("description", "Description", "String", false),
|
|
45
|
-
created_at: new BaseMetaColumn("created_at", "Created At", "DateTime", true),
|
|
46
|
-
updated_at: new BaseMetaColumn("updated_at", "Updated At", "DateTime", true),
|
|
40
|
+
id: new BaseMetaColumn(this, "id", "Id", "Integer", true),
|
|
41
|
+
user_id: new BaseMetaColumn(this, "user_id", "User Id", "String", true),
|
|
42
|
+
entity_id: new BaseMetaColumn(this, "entity_id", "Entity Id", "String", true),
|
|
43
|
+
field_id: new BaseMetaColumn(this, "field_id", "Field Id", "String", true),
|
|
44
|
+
value: new BaseMetaColumn(this, "value", "Value", "String", true),
|
|
45
|
+
description: new BaseMetaColumn(this, "description", "Description", "String", false),
|
|
46
|
+
created_at: new BaseMetaColumn(this, "created_at", "Created At", "DateTime", true),
|
|
47
|
+
updated_at: new BaseMetaColumn(this, "updated_at", "Updated At", "DateTime", true),
|
|
47
48
|
};
|
|
48
49
|
}
|
|
49
50
|
};
|
|
@@ -18,11 +18,12 @@
|
|
|
18
18
|
/* */
|
|
19
19
|
/****************************************************************/
|
|
20
20
|
|
|
21
|
-
import {
|
|
21
|
+
import { BaseUUID, BaseMetaColumn } from "namirasoft-core";
|
|
22
|
+
import { NSBaseMetaDatabase, NSBaseMetaTable } from "namirasoft-site";
|
|
22
23
|
|
|
23
|
-
export class AlarmMetaTable extends
|
|
24
|
+
export class AlarmMetaTable extends NSBaseMetaTable
|
|
24
25
|
{
|
|
25
|
-
public columns
|
|
26
|
+
public override columns: {
|
|
26
27
|
id: BaseMetaColumn;
|
|
27
28
|
user_id: BaseMetaColumn;
|
|
28
29
|
product_id: BaseMetaColumn;
|
|
@@ -35,21 +36,21 @@ export class AlarmMetaTable extends BaseMetaTable
|
|
|
35
36
|
created_at: BaseMetaColumn;
|
|
36
37
|
updated_at: BaseMetaColumn;
|
|
37
38
|
}
|
|
38
|
-
constructor()
|
|
39
|
+
constructor(database: NSBaseMetaDatabase)
|
|
39
40
|
{
|
|
40
|
-
super("alarm", "Alarm");
|
|
41
|
+
super(database, "alarm", "Alarm", new BaseUUID("alm"));
|
|
41
42
|
this.columns = {
|
|
42
|
-
id: new BaseMetaColumn("id", "Id", "String", true),
|
|
43
|
-
user_id: new BaseMetaColumn("user_id", "User Id", "String", true),
|
|
44
|
-
product_id: new BaseMetaColumn("product_id", "Product Id", "String", true),
|
|
45
|
-
topic_id: new BaseMetaColumn("topic_id", "Topic Id", "String", true),
|
|
46
|
-
name: new BaseMetaColumn("name", "Name", "String", false),
|
|
47
|
-
entity: new BaseMetaColumn("entity", "Entity", "String", false),
|
|
48
|
-
action: new BaseMetaColumn("action", "Action", "String", false),
|
|
49
|
-
filters: new BaseMetaColumn("filters", "Filters", "String", false),
|
|
50
|
-
description: new BaseMetaColumn("description", "Description", "String", false),
|
|
51
|
-
created_at: new BaseMetaColumn("created_at", "Created At", "DateTime", true),
|
|
52
|
-
updated_at: new BaseMetaColumn("updated_at", "Updated At", "DateTime", true),
|
|
43
|
+
id: new BaseMetaColumn(this, "id", "Id", "String", true),
|
|
44
|
+
user_id: new BaseMetaColumn(this, "user_id", "User Id", "String", true),
|
|
45
|
+
product_id: new BaseMetaColumn(this, "product_id", "Product Id", "String", true),
|
|
46
|
+
topic_id: new BaseMetaColumn(this, "topic_id", "Topic Id", "String", true),
|
|
47
|
+
name: new BaseMetaColumn(this, "name", "Name", "String", false),
|
|
48
|
+
entity: new BaseMetaColumn(this, "entity", "Entity", "String", false),
|
|
49
|
+
action: new BaseMetaColumn(this, "action", "Action", "String", false),
|
|
50
|
+
filters: new BaseMetaColumn(this, "filters", "Filters", "String", false),
|
|
51
|
+
description: new BaseMetaColumn(this, "description", "Description", "String", false),
|
|
52
|
+
created_at: new BaseMetaColumn(this, "created_at", "Created At", "DateTime", true),
|
|
53
|
+
updated_at: new BaseMetaColumn(this, "updated_at", "Updated At", "DateTime", true),
|
|
53
54
|
};
|
|
54
55
|
}
|
|
55
56
|
};
|
|
@@ -18,11 +18,12 @@
|
|
|
18
18
|
/* */
|
|
19
19
|
/****************************************************************/
|
|
20
20
|
|
|
21
|
-
import {
|
|
21
|
+
import { BaseUUID, BaseMetaColumn } from "namirasoft-core";
|
|
22
|
+
import { NSBaseMetaDatabase, NSBaseMetaTable } from "namirasoft-site";
|
|
22
23
|
|
|
23
|
-
export class AlarmTagMetaTable extends
|
|
24
|
+
export class AlarmTagMetaTable extends NSBaseMetaTable
|
|
24
25
|
{
|
|
25
|
-
public columns
|
|
26
|
+
public override columns: {
|
|
26
27
|
id: BaseMetaColumn;
|
|
27
28
|
user_id: BaseMetaColumn;
|
|
28
29
|
entity_id: BaseMetaColumn;
|
|
@@ -32,18 +33,18 @@ export class AlarmTagMetaTable extends BaseMetaTable
|
|
|
32
33
|
created_at: BaseMetaColumn;
|
|
33
34
|
updated_at: BaseMetaColumn;
|
|
34
35
|
}
|
|
35
|
-
constructor()
|
|
36
|
+
constructor(database: NSBaseMetaDatabase)
|
|
36
37
|
{
|
|
37
|
-
super("alarm_tag", "Alarm Tag");
|
|
38
|
+
super(database, "alarm_tag", "Alarm Tag", new BaseUUID(""));
|
|
38
39
|
this.columns = {
|
|
39
|
-
id: new BaseMetaColumn("id", "Id", "Integer", true),
|
|
40
|
-
user_id: new BaseMetaColumn("user_id", "User Id", "String", true),
|
|
41
|
-
entity_id: new BaseMetaColumn("entity_id", "Entity Id", "String", true),
|
|
42
|
-
name: new BaseMetaColumn("name", "Name", "String", true),
|
|
43
|
-
value: new BaseMetaColumn("value", "Value", "String", true),
|
|
44
|
-
description: new BaseMetaColumn("description", "Description", "String", false),
|
|
45
|
-
created_at: new BaseMetaColumn("created_at", "Created At", "DateTime", true),
|
|
46
|
-
updated_at: new BaseMetaColumn("updated_at", "Updated At", "DateTime", true),
|
|
40
|
+
id: new BaseMetaColumn(this, "id", "Id", "Integer", true),
|
|
41
|
+
user_id: new BaseMetaColumn(this, "user_id", "User Id", "String", true),
|
|
42
|
+
entity_id: new BaseMetaColumn(this, "entity_id", "Entity Id", "String", true),
|
|
43
|
+
name: new BaseMetaColumn(this, "name", "Name", "String", true),
|
|
44
|
+
value: new BaseMetaColumn(this, "value", "Value", "String", true),
|
|
45
|
+
description: new BaseMetaColumn(this, "description", "Description", "String", false),
|
|
46
|
+
created_at: new BaseMetaColumn(this, "created_at", "Created At", "DateTime", true),
|
|
47
|
+
updated_at: new BaseMetaColumn(this, "updated_at", "Updated At", "DateTime", true),
|
|
47
48
|
};
|
|
48
49
|
}
|
|
49
50
|
};
|
|
@@ -22,19 +22,25 @@ import { AlarmCategoryMetaTable } from "./AlarmCategoryMetaTable";
|
|
|
22
22
|
import { AlarmFieldMetaTable } from "./AlarmFieldMetaTable";
|
|
23
23
|
import { AlarmMetaTable } from "./AlarmMetaTable";
|
|
24
24
|
import { AlarmTagMetaTable } from "./AlarmTagMetaTable";
|
|
25
|
+
import { NSBaseMetaDatabase } from "namirasoft-site";
|
|
25
26
|
|
|
26
|
-
export class
|
|
27
|
+
export class NamirasoftAlarmMetaDatabase extends NSBaseMetaDatabase
|
|
27
28
|
{
|
|
28
|
-
public static main:
|
|
29
|
-
public
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
29
|
+
public static main: NamirasoftAlarmMetaDatabase = new NamirasoftAlarmMetaDatabase();
|
|
30
|
+
public override tables: {
|
|
31
|
+
alarm: AlarmMetaTable,
|
|
32
|
+
alarm_category: AlarmCategoryMetaTable,
|
|
33
|
+
alarm_field: AlarmFieldMetaTable,
|
|
34
|
+
alarm_tag: AlarmTagMetaTable,
|
|
35
|
+
};
|
|
33
36
|
constructor()
|
|
34
37
|
{
|
|
35
|
-
|
|
36
|
-
this.
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
super({ id: "prd-ad236da9ae8d4e7f", name: "Namirasoft Alarm", headline: "", description: "", logo: "https://static.namirasoft.com/image/namirasoft/alarm/logo/base.png", link: "https://alarm.namirasoft.com" });
|
|
39
|
+
this.tables = {
|
|
40
|
+
alarm: new AlarmMetaTable(this),
|
|
41
|
+
alarm_category: new AlarmCategoryMetaTable(this),
|
|
42
|
+
alarm_field: new AlarmFieldMetaTable(this),
|
|
43
|
+
alarm_tag: new AlarmTagMetaTable(this),
|
|
44
|
+
};
|
|
45
|
+
};
|
|
40
46
|
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { AlarmCategoryMetaTable } from "./AlarmCategoryMetaTable";
|
|
2
|
-
import { AlarmFieldMetaTable } from "./AlarmFieldMetaTable";
|
|
3
|
-
import { AlarmMetaTable } from "./AlarmMetaTable";
|
|
4
|
-
import { AlarmTagMetaTable } from "./AlarmTagMetaTable";
|
|
5
|
-
export declare class MetaDatabase {
|
|
6
|
-
static main: MetaDatabase;
|
|
7
|
-
alarm: AlarmMetaTable;
|
|
8
|
-
alarm_category: AlarmCategoryMetaTable;
|
|
9
|
-
alarm_field: AlarmFieldMetaTable;
|
|
10
|
-
alarm_tag: AlarmTagMetaTable;
|
|
11
|
-
constructor();
|
|
12
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MetaDatabase = void 0;
|
|
4
|
-
const AlarmCategoryMetaTable_1 = require("./AlarmCategoryMetaTable");
|
|
5
|
-
const AlarmFieldMetaTable_1 = require("./AlarmFieldMetaTable");
|
|
6
|
-
const AlarmMetaTable_1 = require("./AlarmMetaTable");
|
|
7
|
-
const AlarmTagMetaTable_1 = require("./AlarmTagMetaTable");
|
|
8
|
-
class MetaDatabase {
|
|
9
|
-
constructor() {
|
|
10
|
-
this.alarm = new AlarmMetaTable_1.AlarmMetaTable();
|
|
11
|
-
this.alarm_category = new AlarmCategoryMetaTable_1.AlarmCategoryMetaTable();
|
|
12
|
-
this.alarm_field = new AlarmFieldMetaTable_1.AlarmFieldMetaTable();
|
|
13
|
-
this.alarm_tag = new AlarmTagMetaTable_1.AlarmTagMetaTable();
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
exports.MetaDatabase = MetaDatabase;
|
|
17
|
-
MetaDatabase.main = new MetaDatabase();
|
|
18
|
-
;
|
|
19
|
-
//# sourceMappingURL=MetaDatabase.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MetaDatabase.js","sourceRoot":"","sources":["../../src/meta/MetaDatabase.ts"],"names":[],"mappings":";;;AAoBA,qEAAkE;AAClE,+DAA4D;AAC5D,qDAAkD;AAClD,2DAAwD;AAExD,MAAa,YAAY;IAOrB;QAEI,IAAI,CAAC,KAAK,GAAG,IAAI,+BAAc,EAAE,CAAC;QAClC,IAAI,CAAC,cAAc,GAAG,IAAI,+CAAsB,EAAE,CAAC;QACnD,IAAI,CAAC,WAAW,GAAG,IAAI,yCAAmB,EAAE,CAAC;QAC7C,IAAI,CAAC,SAAS,GAAG,IAAI,qCAAiB,EAAE,CAAC;IAC7C,CAAC;;AAbL,oCAcC;AAZiB,iBAAI,GAAiB,IAAI,YAAY,EAAE,CAAC;AAYzD,CAAC"}
|