namirasoft-log 1.3.18 → 1.3.21
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/NamirasoftLogServerAlarm.d.ts +5 -6
- package/dist/NamirasoftLogServerAlarm.js.map +1 -1
- package/dist/NamirasoftLogServerBase.js +1 -1
- package/dist/NamirasoftLogServerBase.js.map +1 -1
- package/dist/NamirasoftLogServerLog.d.ts +2 -2
- package/dist/NamirasoftLogServerLog.js.map +1 -1
- package/dist/NamirasoftLogServerLogGroup.d.ts +3 -3
- package/dist/index.d.ts +3 -9
- package/dist/index.js +3 -9
- package/dist/index.js.map +1 -1
- package/dist/row/{AlarmRowInput.d.ts → AlarmInputRow.d.ts} +1 -1
- package/dist/row/{AlarmRowInput.js → AlarmInputRow.js} +1 -1
- package/dist/row/AlarmInputRow.js.map +1 -0
- package/dist/row/AlarmRow.d.ts +6 -3
- package/dist/row/{LogRowInput.d.ts → LogCreateRow.d.ts} +1 -1
- package/dist/row/{LogRowOutput.js → LogCreateRow.js} +1 -1
- package/dist/row/LogCreateRow.js.map +1 -0
- package/dist/row/LogGroupInputRow.d.ts +4 -0
- package/dist/row/{AlarmRowOutput.js → LogGroupInputRow.js} +1 -1
- package/dist/row/LogGroupInputRow.js.map +1 -0
- package/dist/row/LogGroupRow.d.ts +6 -3
- package/dist/row/LogRow.d.ts +9 -3
- package/package.json +4 -3
- package/src/NamirasoftLogServerAlarm.ts +7 -8
- package/src/NamirasoftLogServerBase.ts +1 -1
- package/src/NamirasoftLogServerLog.ts +2 -2
- package/src/NamirasoftLogServerLogGroup.ts +3 -3
- package/src/index.ts +4 -10
- package/src/row/{AlarmRowInput.ts → AlarmInputRow.ts} +1 -1
- package/src/row/AlarmRow.ts +7 -4
- package/src/row/{LogRowInput.ts → LogCreateRow.ts} +1 -1
- package/src/row/{LogGroupRowInput.ts → LogGroupInputRow.ts} +2 -2
- package/src/row/LogGroupRow.ts +7 -4
- package/src/row/LogRow.ts +10 -4
- package/dist/row/AlarmRowInput.js.map +0 -1
- package/dist/row/AlarmRowOutput.d.ts +0 -4
- package/dist/row/AlarmRowOutput.js.map +0 -1
- package/dist/row/AlarmschemaRow.d.ts +0 -3
- package/dist/row/AlarmschemaRow.js +0 -3
- package/dist/row/AlarmschemaRow.js.map +0 -1
- package/dist/row/AlarmschemaRowInput.d.ts +0 -6
- package/dist/row/AlarmschemaRowInput.js +0 -3
- package/dist/row/AlarmschemaRowInput.js.map +0 -1
- package/dist/row/AlarmschemaRowOutput.d.ts +0 -4
- package/dist/row/AlarmschemaRowOutput.js +0 -3
- package/dist/row/AlarmschemaRowOutput.js.map +0 -1
- package/dist/row/LogGroupRowInput.d.ts +0 -4
- package/dist/row/LogGroupRowInput.js +0 -3
- package/dist/row/LogGroupRowInput.js.map +0 -1
- package/dist/row/LogGroupRowOutput.d.ts +0 -4
- package/dist/row/LogGroupRowOutput.js +0 -3
- package/dist/row/LogGroupRowOutput.js.map +0 -1
- package/dist/row/LogRowInput.js +0 -3
- package/dist/row/LogRowInput.js.map +0 -1
- package/dist/row/LogRowOutput.d.ts +0 -3
- package/dist/row/LogRowOutput.js.map +0 -1
- package/src/row/AlarmRowOutput.ts +0 -25
- package/src/row/AlarmschemaRow.ts +0 -24
- package/src/row/AlarmschemaRowInput.ts +0 -28
- package/src/row/AlarmschemaRowOutput.ts +0 -25
- package/src/row/LogGroupRowOutput.ts +0 -25
- package/src/row/LogRowOutput.ts +0 -24
|
@@ -1,15 +1,14 @@
|
|
|
1
|
+
import { AlarmInputRow } from "./row/AlarmInputRow";
|
|
1
2
|
import { AlarmRow } from "./row/AlarmRow";
|
|
2
|
-
import { AlarmRowInput } from "./row/AlarmRowInput";
|
|
3
|
-
import { AlarmschemaRow } from "./row/AlarmschemaRow";
|
|
4
3
|
import { FilterItem } from "namirasoft-core";
|
|
5
4
|
import { NamirasoftLogServerBase } from "./NamirasoftLogServerBase";
|
|
6
5
|
export declare class NamirasoftLogServerAlarm extends NamirasoftLogServerBase {
|
|
7
6
|
List(filters: FilterItem[] | null, page: (number | null), size: (number | null)): Promise<{
|
|
8
|
-
rows:
|
|
7
|
+
rows: AlarmRow[];
|
|
9
8
|
count: (number | null);
|
|
10
9
|
}>;
|
|
11
|
-
Get(id: string): Promise<
|
|
12
|
-
Create(body:
|
|
13
|
-
Update(id: string, body:
|
|
10
|
+
Get(id: string): Promise<AlarmRow>;
|
|
11
|
+
Create(body: AlarmInputRow): Promise<AlarmRow>;
|
|
12
|
+
Update(id: string, body: AlarmInputRow): Promise<AlarmRow>;
|
|
14
13
|
Delete(id: string): Promise<void>;
|
|
15
14
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NamirasoftLogServerAlarm.js","sourceRoot":"","sources":["../src/NamirasoftLogServerAlarm.ts"],"names":[],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"NamirasoftLogServerAlarm.js","sourceRoot":"","sources":["../src/NamirasoftLogServerAlarm.ts"],"names":[],"mappings":";;;;;;;;;;;;AAsBA,qDAA6C;AAC7C,uEAAoE;AAEpE,MAAa,wBAAyB,SAAQ,iDAAuB;IAE3D,IAAI,CAAC,OAA4B,EAAE,IAAqB,EAAE,IAAqB;;YAEjF,IAAI,oBAAoB,GAAW,4BAAU,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;YACjE,IAAI,IAAI,GAAG,aAAa,CAAC;YACzB,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,IAAI,CAA+C,IAAI,EAAE,EAAE,OAAO,EAAE,oBAAoB,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;YAClI,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;IACK,GAAG,CAAC,EAAU;;YAEhB,IAAI,IAAI,GAAG,UAAU,EAAE,EAAE,CAAC;YAC1B,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,IAAI,CAAW,IAAI,EAAE,EAAE,CAAC,CAAC;YACnD,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;IACK,MAAM,CAAC,IAAmB;;YAE5B,IAAI,IAAI,GAAG,QAAQ,CAAC;YACpB,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAW,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YAC1D,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;IACK,MAAM,CAAC,EAAU,EAAE,IAAmB;;YAExC,IAAI,IAAI,GAAG,UAAU,EAAE,EAAE,CAAC;YAC1B,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,IAAI,CAAW,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YACzD,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;IACK,MAAM,CAAC,EAAU;;YAEnB,IAAI,IAAI,GAAG,UAAU,EAAE,EAAE,CAAC;YAC1B,MAAM,IAAI,CAAC,OAAO,CAAO,IAAI,EAAE,EAAE,CAAC,CAAC;QACvC,CAAC;KAAA;CACJ;AAhCD,4DAgCC;AAAA,CAAC"}
|
|
@@ -4,7 +4,7 @@ exports.NamirasoftLogServerBase = void 0;
|
|
|
4
4
|
const namirasoft_account_1 = require("namirasoft-account");
|
|
5
5
|
class NamirasoftLogServerBase extends namirasoft_account_1.NamirasoftServerBase {
|
|
6
6
|
constructor(manager, onError) {
|
|
7
|
-
super(`https://log.namirasoft.com/api/v1`, manager, onError);
|
|
7
|
+
super(`1.3.21`, `https://log.namirasoft.com/api/v1`, manager, onError);
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
exports.NamirasoftLogServerBase = NamirasoftLogServerBase;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NamirasoftLogServerBase.js","sourceRoot":"","sources":["../src/NamirasoftLogServerBase.ts"],"names":[],"mappings":";;;AAoBA,2DAA0D;AAG1D,MAAa,uBAAwB,SAAQ,yCAAoB;IAE7D,YAAY,OAAqB,EAAE,OAA+B;QAE9D,KAAK,CAAC,mCAAmC,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"NamirasoftLogServerBase.js","sourceRoot":"","sources":["../src/NamirasoftLogServerBase.ts"],"names":[],"mappings":";;;AAoBA,2DAA0D;AAG1D,MAAa,uBAAwB,SAAQ,yCAAoB;IAE7D,YAAY,OAAqB,EAAE,OAA+B;QAE9D,KAAK,CAAC,QAAQ,EAAE,mCAAmC,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;CACJ;AAND,0DAMC;AAAA,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FilterItem } from "namirasoft-core";
|
|
2
|
+
import { LogCreateRow } from "./row/LogCreateRow";
|
|
2
3
|
import { LogRow } from "./row/LogRow";
|
|
3
|
-
import { LogRowInput } from "./row/LogRowInput";
|
|
4
4
|
import { NamirasoftLogServerBase } from "./NamirasoftLogServerBase";
|
|
5
5
|
export declare class NamirasoftLogServerLog extends NamirasoftLogServerBase {
|
|
6
6
|
List(filters: FilterItem[] | null, page: (number | null), size: (number | null)): Promise<{
|
|
@@ -8,5 +8,5 @@ export declare class NamirasoftLogServerLog extends NamirasoftLogServerBase {
|
|
|
8
8
|
count: (number | null);
|
|
9
9
|
}>;
|
|
10
10
|
Get(id: string): Promise<LogRow>;
|
|
11
|
-
Create(body:
|
|
11
|
+
Create(body: LogCreateRow): Promise<LogRow>;
|
|
12
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NamirasoftLogServerLog.js","sourceRoot":"","sources":["../src/NamirasoftLogServerLog.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,qDAA6C;AAG7C,uEAAoE;AAEpE,MAAa,sBAAuB,SAAQ,iDAAuB;IAEzD,IAAI,CAAC,OAA4B,EAAE,IAAqB,EAAE,IAAqB;;YAEjF,IAAI,oBAAoB,GAAW,4BAAU,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;YACjE,IAAI,IAAI,GAAG,WAAW,CAAC;YACvB,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,IAAI,CAA6C,IAAI,EAAE,EAAE,OAAO,EAAE,oBAAoB,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;YAChI,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;IACK,GAAG,CAAC,EAAU;;YAEhB,IAAI,IAAI,GAAG,QAAQ,EAAE,EAAE,CAAC;YACxB,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,IAAI,CAAS,IAAI,EAAE,EAAE,CAAC,CAAC;YACjD,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;IACK,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"NamirasoftLogServerLog.js","sourceRoot":"","sources":["../src/NamirasoftLogServerLog.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,qDAA6C;AAG7C,uEAAoE;AAEpE,MAAa,sBAAuB,SAAQ,iDAAuB;IAEzD,IAAI,CAAC,OAA4B,EAAE,IAAqB,EAAE,IAAqB;;YAEjF,IAAI,oBAAoB,GAAW,4BAAU,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;YACjE,IAAI,IAAI,GAAG,WAAW,CAAC;YACvB,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,IAAI,CAA6C,IAAI,EAAE,EAAE,OAAO,EAAE,oBAAoB,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;YAChI,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;IACK,GAAG,CAAC,EAAU;;YAEhB,IAAI,IAAI,GAAG,QAAQ,EAAE,EAAE,CAAC;YACxB,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,IAAI,CAAS,IAAI,EAAE,EAAE,CAAC,CAAC;YACjD,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;IACK,MAAM,CAAC,IAAkB;;YAE3B,IAAI,IAAI,GAAG,MAAM,CAAC;YAClB,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAS,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YACxD,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;CACJ;AArBD,wDAqBC;AAAA,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FilterItem } from "namirasoft-core";
|
|
2
|
+
import { LogGroupInputRow } from "./row/LogGroupInputRow";
|
|
2
3
|
import { LogGroupRow } from "./row/LogGroupRow";
|
|
3
|
-
import { LogGroupRowInput } from "./row/LogGroupRowInput";
|
|
4
4
|
import { NamirasoftLogServerBase } from "./NamirasoftLogServerBase";
|
|
5
5
|
export declare class NamirasoftLogServerLogGroup extends NamirasoftLogServerBase {
|
|
6
6
|
List(filters: FilterItem[] | null, page: (number | null), size: (number | null)): Promise<{
|
|
@@ -8,7 +8,7 @@ export declare class NamirasoftLogServerLogGroup extends NamirasoftLogServerBase
|
|
|
8
8
|
count: (number | null);
|
|
9
9
|
}>;
|
|
10
10
|
Get(id: string): Promise<LogGroupRow>;
|
|
11
|
-
Create(body:
|
|
12
|
-
Update(id: string, body:
|
|
11
|
+
Create(body: LogGroupInputRow): Promise<LogGroupRow>;
|
|
12
|
+
Update(id: string, body: LogGroupInputRow): Promise<LogGroupRow>;
|
|
13
13
|
Delete(id: string): Promise<void>;
|
|
14
14
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -34,15 +34,9 @@ export * from "./command/LogGroupGetCommand";
|
|
|
34
34
|
export * from "./command/LogGroupListCommand";
|
|
35
35
|
export * from "./command/LogGroupUpdateCommand";
|
|
36
36
|
export * from "./command/LogListCommand";
|
|
37
|
+
export * from "./row/AlarmInputRow";
|
|
37
38
|
export * from "./row/AlarmRow";
|
|
38
|
-
export * from "./row/
|
|
39
|
-
export * from "./row/
|
|
40
|
-
export * from "./row/AlarmschemaRow";
|
|
41
|
-
export * from "./row/AlarmschemaRowInput";
|
|
42
|
-
export * from "./row/AlarmschemaRowOutput";
|
|
39
|
+
export * from "./row/LogCreateRow";
|
|
40
|
+
export * from "./row/LogGroupInputRow";
|
|
43
41
|
export * from "./row/LogGroupRow";
|
|
44
|
-
export * from "./row/LogGroupRowInput";
|
|
45
|
-
export * from "./row/LogGroupRowOutput";
|
|
46
42
|
export * from "./row/LogRow";
|
|
47
|
-
export * from "./row/LogRowInput";
|
|
48
|
-
export * from "./row/LogRowOutput";
|
package/dist/index.js
CHANGED
|
@@ -50,16 +50,10 @@ __exportStar(require("./command/LogGroupGetCommand"), exports);
|
|
|
50
50
|
__exportStar(require("./command/LogGroupListCommand"), exports);
|
|
51
51
|
__exportStar(require("./command/LogGroupUpdateCommand"), exports);
|
|
52
52
|
__exportStar(require("./command/LogListCommand"), exports);
|
|
53
|
+
__exportStar(require("./row/AlarmInputRow"), exports);
|
|
53
54
|
__exportStar(require("./row/AlarmRow"), exports);
|
|
54
|
-
__exportStar(require("./row/
|
|
55
|
-
__exportStar(require("./row/
|
|
56
|
-
__exportStar(require("./row/AlarmschemaRow"), exports);
|
|
57
|
-
__exportStar(require("./row/AlarmschemaRowInput"), exports);
|
|
58
|
-
__exportStar(require("./row/AlarmschemaRowOutput"), exports);
|
|
55
|
+
__exportStar(require("./row/LogCreateRow"), exports);
|
|
56
|
+
__exportStar(require("./row/LogGroupInputRow"), exports);
|
|
59
57
|
__exportStar(require("./row/LogGroupRow"), exports);
|
|
60
|
-
__exportStar(require("./row/LogGroupRowInput"), exports);
|
|
61
|
-
__exportStar(require("./row/LogGroupRowOutput"), exports);
|
|
62
58
|
__exportStar(require("./row/LogRow"), exports);
|
|
63
|
-
__exportStar(require("./row/LogRowInput"), exports);
|
|
64
|
-
__exportStar(require("./row/LogRowOutput"), exports);
|
|
65
59
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAoBA,kDAAgC;AAChC,kDAAgC;AAChC,mDAAiC;AACjC,+CAA6B;AAC7B,4CAA0B;AAC1B,4CAA0B;AAC1B,wCAAsB;AACtB,6CAA2B;AAC3B,2CAAyB;AACzB,wDAAsC;AACtC,6DAA2C;AAC3C,4DAA0C;AAC1C,+DAA6C;AAC7C,2DAAyC;AACzC,gEAA8C;AAC9C,kDAAgC;AAChC,+CAA6B;AAC7B,wDAAsC;AACtC,yDAAuC;AACvC,+DAA6C;AAC7C,+DAA6C;AAC7C,4DAA0C;AAC1C,6DAA2C;AAC3C,+DAA6C;AAC7C,2DAAyC;AACzC,8DAA4C;AAC5C,uDAAqC;AACrC,6DAA2C;AAC3C,0DAAwC;AACxC,4DAA0C;AAC1C,kEAAgD;AAChD,kEAAgD;AAChD,+DAA6C;AAC7C,gEAA8C;AAC9C,kEAAgD;AAChD,2DAAyC;AACzC,iDAA+B;AAC/B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAoBA,kDAAgC;AAChC,kDAAgC;AAChC,mDAAiC;AACjC,+CAA6B;AAC7B,4CAA0B;AAC1B,4CAA0B;AAC1B,wCAAsB;AACtB,6CAA2B;AAC3B,2CAAyB;AACzB,wDAAsC;AACtC,6DAA2C;AAC3C,4DAA0C;AAC1C,+DAA6C;AAC7C,2DAAyC;AACzC,gEAA8C;AAC9C,kDAAgC;AAChC,+CAA6B;AAC7B,wDAAsC;AACtC,yDAAuC;AACvC,+DAA6C;AAC7C,+DAA6C;AAC7C,4DAA0C;AAC1C,6DAA2C;AAC3C,+DAA6C;AAC7C,2DAAyC;AACzC,8DAA4C;AAC5C,uDAAqC;AACrC,6DAA2C;AAC3C,0DAAwC;AACxC,4DAA0C;AAC1C,kEAAgD;AAChD,kEAAgD;AAChD,+DAA6C;AAC7C,gEAA8C;AAC9C,kEAAgD;AAChD,2DAAyC;AACzC,sDAAoC;AACpC,iDAA+B;AAC/B,qDAAmC;AACnC,yDAAuC;AACvC,oDAAkC;AAClC,+CAA6B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AlarmInputRow.js","sourceRoot":"","sources":["../../src/row/AlarmInputRow.ts"],"names":[],"mappings":""}
|
package/dist/row/AlarmRow.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export type AlarmRow = {
|
|
2
|
+
id: number;
|
|
3
|
+
user_id: string;
|
|
4
|
+
filters: (string | null);
|
|
5
|
+
notification_sender_topic_id: string;
|
|
6
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LogCreateRow.js","sourceRoot":"","sources":["../../src/row/LogCreateRow.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LogGroupInputRow.js","sourceRoot":"","sources":["../../src/row/LogGroupInputRow.ts"],"names":[],"mappings":""}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export type LogGroupRow = {
|
|
2
|
+
id: string;
|
|
3
|
+
user_id: string;
|
|
4
|
+
project_id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
};
|
package/dist/row/LogRow.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export type LogRow = {
|
|
2
|
+
user_id: (string | null);
|
|
3
|
+
log_group_id: (string | null);
|
|
4
|
+
product_id: (string | null);
|
|
5
|
+
project_id: (string | null);
|
|
6
|
+
level: (string | null);
|
|
7
|
+
message: (string | null);
|
|
8
|
+
datetime: (Date | null);
|
|
9
|
+
};
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"framework": "npm",
|
|
9
9
|
"application": "package",
|
|
10
10
|
"private": false,
|
|
11
|
-
"version": "1.3.
|
|
11
|
+
"version": "1.3.21",
|
|
12
12
|
"author": "Amir Abolhasani",
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"main": "./dist/index.js",
|
|
@@ -17,9 +17,10 @@
|
|
|
17
17
|
"build": ""
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"namirasoft-core": "^1.3.
|
|
20
|
+
"namirasoft-core": "^1.3.30",
|
|
21
|
+
"namirasoft-site": "^1.3.1",
|
|
21
22
|
"namirasoft-node-cli": "^1.3.8",
|
|
22
|
-
"namirasoft-account": "^1.3.
|
|
23
|
+
"namirasoft-account": "^1.3.17"
|
|
23
24
|
},
|
|
24
25
|
"bin": {
|
|
25
26
|
"ns-log": "./dist/command/cli.js"
|
|
@@ -18,34 +18,33 @@
|
|
|
18
18
|
/* */
|
|
19
19
|
/****************************************************************/
|
|
20
20
|
|
|
21
|
+
import { AlarmInputRow } from "./row/AlarmInputRow";
|
|
21
22
|
import { AlarmRow } from "./row/AlarmRow";
|
|
22
|
-
import { AlarmRowInput } from "./row/AlarmRowInput";
|
|
23
|
-
import { AlarmschemaRow } from "./row/AlarmschemaRow";
|
|
24
23
|
import { FilterItem } from "namirasoft-core";
|
|
25
24
|
import { NamirasoftLogServerBase } from "./NamirasoftLogServerBase";
|
|
26
25
|
|
|
27
26
|
export class NamirasoftLogServerAlarm extends NamirasoftLogServerBase
|
|
28
27
|
{
|
|
29
|
-
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null)): Promise<{ rows:
|
|
28
|
+
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null)): Promise<{ rows: AlarmRow[], count: (number | null) }>
|
|
30
29
|
{
|
|
31
30
|
let filters_string_value: string = FilterItem.stringify(filters);
|
|
32
31
|
let path = `/alarm/list`;
|
|
33
|
-
let { data } = await this._get<{ rows:
|
|
32
|
+
let { data } = await this._get<{ rows: AlarmRow[], count: (number | null) }>(path, { filters: filters_string_value, page, size });
|
|
34
33
|
return data;
|
|
35
34
|
}
|
|
36
|
-
async Get(id: string): Promise<
|
|
35
|
+
async Get(id: string): Promise<AlarmRow>
|
|
37
36
|
{
|
|
38
37
|
let path = `/alarm/${id}`;
|
|
39
|
-
let { data } = await this._get<
|
|
38
|
+
let { data } = await this._get<AlarmRow>(path, {});
|
|
40
39
|
return data;
|
|
41
40
|
}
|
|
42
|
-
async Create(body:
|
|
41
|
+
async Create(body: AlarmInputRow): Promise<AlarmRow>
|
|
43
42
|
{
|
|
44
43
|
let path = `/alarm`;
|
|
45
44
|
let { data } = await this._post<AlarmRow>(path, {}, body);
|
|
46
45
|
return data;
|
|
47
46
|
}
|
|
48
|
-
async Update(id: string, body:
|
|
47
|
+
async Update(id: string, body: AlarmInputRow): Promise<AlarmRow>
|
|
49
48
|
{
|
|
50
49
|
let path = `/alarm/${id}`;
|
|
51
50
|
let { data } = await this._put<AlarmRow>(path, {}, body);
|
|
@@ -25,6 +25,6 @@ export class NamirasoftLogServerBase extends NamirasoftServerBase
|
|
|
25
25
|
{
|
|
26
26
|
constructor(manager: TokenManager, onError: (error: Error) => void)
|
|
27
27
|
{
|
|
28
|
-
super(`https://log.namirasoft.com/api/v1`, manager, onError);
|
|
28
|
+
super(`1.3.21`, `https://log.namirasoft.com/api/v1`, manager, onError);
|
|
29
29
|
}
|
|
30
30
|
};
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
/****************************************************************/
|
|
20
20
|
|
|
21
21
|
import { FilterItem } from "namirasoft-core";
|
|
22
|
+
import { LogCreateRow } from "./row/LogCreateRow";
|
|
22
23
|
import { LogRow } from "./row/LogRow";
|
|
23
|
-
import { LogRowInput } from "./row/LogRowInput";
|
|
24
24
|
import { NamirasoftLogServerBase } from "./NamirasoftLogServerBase";
|
|
25
25
|
|
|
26
26
|
export class NamirasoftLogServerLog extends NamirasoftLogServerBase
|
|
@@ -38,7 +38,7 @@ export class NamirasoftLogServerLog extends NamirasoftLogServerBase
|
|
|
38
38
|
let { data } = await this._get<LogRow>(path, {});
|
|
39
39
|
return data;
|
|
40
40
|
}
|
|
41
|
-
async Create(body:
|
|
41
|
+
async Create(body: LogCreateRow): Promise<LogRow>
|
|
42
42
|
{
|
|
43
43
|
let path = `/log`;
|
|
44
44
|
let { data } = await this._post<LogRow>(path, {}, body);
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
/****************************************************************/
|
|
20
20
|
|
|
21
21
|
import { FilterItem } from "namirasoft-core";
|
|
22
|
+
import { LogGroupInputRow } from "./row/LogGroupInputRow";
|
|
22
23
|
import { LogGroupRow } from "./row/LogGroupRow";
|
|
23
|
-
import { LogGroupRowInput } from "./row/LogGroupRowInput";
|
|
24
24
|
import { NamirasoftLogServerBase } from "./NamirasoftLogServerBase";
|
|
25
25
|
|
|
26
26
|
export class NamirasoftLogServerLogGroup extends NamirasoftLogServerBase
|
|
@@ -38,13 +38,13 @@ export class NamirasoftLogServerLogGroup extends NamirasoftLogServerBase
|
|
|
38
38
|
let { data } = await this._get<LogGroupRow>(path, {});
|
|
39
39
|
return data;
|
|
40
40
|
}
|
|
41
|
-
async Create(body:
|
|
41
|
+
async Create(body: LogGroupInputRow): Promise<LogGroupRow>
|
|
42
42
|
{
|
|
43
43
|
let path = `/log/group`;
|
|
44
44
|
let { data } = await this._post<LogGroupRow>(path, {}, body);
|
|
45
45
|
return data;
|
|
46
46
|
}
|
|
47
|
-
async Update(id: string, body:
|
|
47
|
+
async Update(id: string, body: LogGroupInputRow): Promise<LogGroupRow>
|
|
48
48
|
{
|
|
49
49
|
let path = `/log/group/${id}`;
|
|
50
50
|
let { data } = await this._put<LogGroupRow>(path, {}, body);
|
package/src/index.ts
CHANGED
|
@@ -54,15 +54,9 @@ export * from "./command/LogGroupGetCommand";
|
|
|
54
54
|
export * from "./command/LogGroupListCommand";
|
|
55
55
|
export * from "./command/LogGroupUpdateCommand";
|
|
56
56
|
export * from "./command/LogListCommand";
|
|
57
|
+
export * from "./row/AlarmInputRow";
|
|
57
58
|
export * from "./row/AlarmRow";
|
|
58
|
-
export * from "./row/
|
|
59
|
-
export * from "./row/
|
|
60
|
-
export * from "./row/AlarmschemaRow";
|
|
61
|
-
export * from "./row/AlarmschemaRowInput";
|
|
62
|
-
export * from "./row/AlarmschemaRowOutput";
|
|
59
|
+
export * from "./row/LogCreateRow";
|
|
60
|
+
export * from "./row/LogGroupInputRow";
|
|
63
61
|
export * from "./row/LogGroupRow";
|
|
64
|
-
export * from "./row/
|
|
65
|
-
export * from "./row/LogGroupRowOutput";
|
|
66
|
-
export * from "./row/LogRow";
|
|
67
|
-
export * from "./row/LogRowInput";
|
|
68
|
-
export * from "./row/LogRowOutput";
|
|
62
|
+
export * from "./row/LogRow";
|
package/src/row/AlarmRow.ts
CHANGED
|
@@ -18,7 +18,10 @@
|
|
|
18
18
|
/* */
|
|
19
19
|
/****************************************************************/
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
export type AlarmRow =
|
|
22
|
+
{
|
|
23
|
+
id: number;
|
|
24
|
+
user_id: string;
|
|
25
|
+
filters: (string | null);
|
|
26
|
+
notification_sender_topic_id: string;
|
|
27
|
+
}
|
package/src/row/LogGroupRow.ts
CHANGED
|
@@ -18,7 +18,10 @@
|
|
|
18
18
|
/* */
|
|
19
19
|
/****************************************************************/
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
export type LogGroupRow =
|
|
22
|
+
{
|
|
23
|
+
id: string;
|
|
24
|
+
user_id: string;
|
|
25
|
+
project_id: string;
|
|
26
|
+
name: string;
|
|
27
|
+
}
|
package/src/row/LogRow.ts
CHANGED
|
@@ -18,7 +18,13 @@
|
|
|
18
18
|
/* */
|
|
19
19
|
/****************************************************************/
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
export type LogRow =
|
|
22
|
+
{
|
|
23
|
+
user_id: (string | null);
|
|
24
|
+
log_group_id: (string | null);
|
|
25
|
+
product_id: (string | null);
|
|
26
|
+
project_id: (string | null);
|
|
27
|
+
level: (string | null);
|
|
28
|
+
message: (string | null);
|
|
29
|
+
datetime: (Date | null);
|
|
30
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AlarmRowInput.js","sourceRoot":"","sources":["../../src/row/AlarmRowInput.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AlarmRowOutput.js","sourceRoot":"","sources":["../../src/row/AlarmRowOutput.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AlarmschemaRow.js","sourceRoot":"","sources":["../../src/row/AlarmschemaRow.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AlarmschemaRowInput.js","sourceRoot":"","sources":["../../src/row/AlarmschemaRowInput.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AlarmschemaRowOutput.js","sourceRoot":"","sources":["../../src/row/AlarmschemaRowOutput.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LogGroupRowInput.js","sourceRoot":"","sources":["../../src/row/LogGroupRowInput.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LogGroupRowOutput.js","sourceRoot":"","sources":["../../src/row/LogGroupRowOutput.ts"],"names":[],"mappings":""}
|
package/dist/row/LogRowInput.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LogRowInput.js","sourceRoot":"","sources":["../../src/row/LogRowInput.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LogRowOutput.js","sourceRoot":"","sources":["../../src/row/LogRowOutput.ts"],"names":[],"mappings":""}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/****************************************************************/
|
|
2
|
-
/* */
|
|
3
|
-
/* This is an Auto-Generated File */
|
|
4
|
-
/* Made By */
|
|
5
|
-
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
-
/* */
|
|
7
|
-
/****************************************************************/
|
|
8
|
-
/****************************************************************/
|
|
9
|
-
/* */
|
|
10
|
-
/* Please do not make any change to this file */
|
|
11
|
-
/* If any changed is reqired, ns-sdkg command must be used */
|
|
12
|
-
/* */
|
|
13
|
-
/****************************************************************/
|
|
14
|
-
/****************************************************************/
|
|
15
|
-
/* */
|
|
16
|
-
/* Namira Software Corporation */
|
|
17
|
-
/* https://namirasoft.com */
|
|
18
|
-
/* */
|
|
19
|
-
/****************************************************************/
|
|
20
|
-
|
|
21
|
-
export type AlarmRowOutput =
|
|
22
|
-
{
|
|
23
|
-
id: number;
|
|
24
|
-
user_id: string;
|
|
25
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/****************************************************************/
|
|
2
|
-
/* */
|
|
3
|
-
/* This is an Auto-Generated File */
|
|
4
|
-
/* Made By */
|
|
5
|
-
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
-
/* */
|
|
7
|
-
/****************************************************************/
|
|
8
|
-
/****************************************************************/
|
|
9
|
-
/* */
|
|
10
|
-
/* Please do not make any change to this file */
|
|
11
|
-
/* If any changed is reqired, ns-sdkg command must be used */
|
|
12
|
-
/* */
|
|
13
|
-
/****************************************************************/
|
|
14
|
-
/****************************************************************/
|
|
15
|
-
/* */
|
|
16
|
-
/* Namira Software Corporation */
|
|
17
|
-
/* https://namirasoft.com */
|
|
18
|
-
/* */
|
|
19
|
-
/****************************************************************/
|
|
20
|
-
|
|
21
|
-
import { AlarmschemaRowInput } from "./AlarmschemaRowInput";
|
|
22
|
-
import { AlarmschemaRowOutput } from "./AlarmschemaRowOutput";
|
|
23
|
-
|
|
24
|
-
export type AlarmschemaRow = AlarmschemaRowInput & AlarmschemaRowOutput;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/****************************************************************/
|
|
2
|
-
/* */
|
|
3
|
-
/* This is an Auto-Generated File */
|
|
4
|
-
/* Made By */
|
|
5
|
-
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
-
/* */
|
|
7
|
-
/****************************************************************/
|
|
8
|
-
/****************************************************************/
|
|
9
|
-
/* */
|
|
10
|
-
/* Please do not make any change to this file */
|
|
11
|
-
/* If any changed is reqired, ns-sdkg command must be used */
|
|
12
|
-
/* */
|
|
13
|
-
/****************************************************************/
|
|
14
|
-
/****************************************************************/
|
|
15
|
-
/* */
|
|
16
|
-
/* Namira Software Corporation */
|
|
17
|
-
/* https://namirasoft.com */
|
|
18
|
-
/* */
|
|
19
|
-
/****************************************************************/
|
|
20
|
-
|
|
21
|
-
import { LogGroupRow } from "./LogGroupRow";
|
|
22
|
-
|
|
23
|
-
export type AlarmschemaRowInput =
|
|
24
|
-
{
|
|
25
|
-
filters: (string | null);
|
|
26
|
-
notification_sender_topic_id: string;
|
|
27
|
-
log_group: LogGroupRow;
|
|
28
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/****************************************************************/
|
|
2
|
-
/* */
|
|
3
|
-
/* This is an Auto-Generated File */
|
|
4
|
-
/* Made By */
|
|
5
|
-
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
-
/* */
|
|
7
|
-
/****************************************************************/
|
|
8
|
-
/****************************************************************/
|
|
9
|
-
/* */
|
|
10
|
-
/* Please do not make any change to this file */
|
|
11
|
-
/* If any changed is reqired, ns-sdkg command must be used */
|
|
12
|
-
/* */
|
|
13
|
-
/****************************************************************/
|
|
14
|
-
/****************************************************************/
|
|
15
|
-
/* */
|
|
16
|
-
/* Namira Software Corporation */
|
|
17
|
-
/* https://namirasoft.com */
|
|
18
|
-
/* */
|
|
19
|
-
/****************************************************************/
|
|
20
|
-
|
|
21
|
-
export type AlarmschemaRowOutput =
|
|
22
|
-
{
|
|
23
|
-
id: number;
|
|
24
|
-
user_id: string;
|
|
25
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/****************************************************************/
|
|
2
|
-
/* */
|
|
3
|
-
/* This is an Auto-Generated File */
|
|
4
|
-
/* Made By */
|
|
5
|
-
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
-
/* */
|
|
7
|
-
/****************************************************************/
|
|
8
|
-
/****************************************************************/
|
|
9
|
-
/* */
|
|
10
|
-
/* Please do not make any change to this file */
|
|
11
|
-
/* If any changed is reqired, ns-sdkg command must be used */
|
|
12
|
-
/* */
|
|
13
|
-
/****************************************************************/
|
|
14
|
-
/****************************************************************/
|
|
15
|
-
/* */
|
|
16
|
-
/* Namira Software Corporation */
|
|
17
|
-
/* https://namirasoft.com */
|
|
18
|
-
/* */
|
|
19
|
-
/****************************************************************/
|
|
20
|
-
|
|
21
|
-
export type LogGroupRowOutput =
|
|
22
|
-
{
|
|
23
|
-
id: string;
|
|
24
|
-
user_id: string;
|
|
25
|
-
}
|
package/src/row/LogRowOutput.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/****************************************************************/
|
|
2
|
-
/* */
|
|
3
|
-
/* This is an Auto-Generated File */
|
|
4
|
-
/* Made By */
|
|
5
|
-
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
-
/* */
|
|
7
|
-
/****************************************************************/
|
|
8
|
-
/****************************************************************/
|
|
9
|
-
/* */
|
|
10
|
-
/* Please do not make any change to this file */
|
|
11
|
-
/* If any changed is reqired, ns-sdkg command must be used */
|
|
12
|
-
/* */
|
|
13
|
-
/****************************************************************/
|
|
14
|
-
/****************************************************************/
|
|
15
|
-
/* */
|
|
16
|
-
/* Namira Software Corporation */
|
|
17
|
-
/* https://namirasoft.com */
|
|
18
|
-
/* */
|
|
19
|
-
/****************************************************************/
|
|
20
|
-
|
|
21
|
-
export type LogRowOutput =
|
|
22
|
-
{
|
|
23
|
-
user_id: (string | null);
|
|
24
|
-
}
|