namirasoft-log 1.3.30 → 1.4.2
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/NamirasoftLogServer.d.ts +1 -1
- package/dist/NamirasoftLogServer.js +8 -8
- package/dist/NamirasoftLogServer.js.map +1 -1
- package/dist/NamirasoftLogServerBase.d.ts +1 -1
- package/dist/NamirasoftLogServerBase.js +2 -2
- package/dist/NamirasoftLogServerBase.js.map +1 -1
- package/dist/NamirasoftLogServerHealthz.d.ts +1 -1
- package/dist/NamirasoftLogServerHealthz.js +2 -2
- package/dist/NamirasoftLogServerHealthz.js.map +1 -1
- package/dist/NamirasoftLogServerLog.d.ts +2 -2
- package/dist/NamirasoftLogServerLog.js +2 -2
- package/dist/NamirasoftLogServerLog.js.map +1 -1
- package/dist/NamirasoftLogServerLogGroup.d.ts +2 -2
- package/dist/NamirasoftLogServerLogGroup.js +2 -2
- package/dist/NamirasoftLogServerLogGroup.js.map +1 -1
- package/dist/NamirasoftLogServerLogGroupCategory.d.ts +5 -6
- package/dist/NamirasoftLogServerLogGroupCategory.js +13 -21
- package/dist/NamirasoftLogServerLogGroupCategory.js.map +1 -1
- package/dist/NamirasoftLogServerLogGroupField.d.ts +5 -5
- package/dist/NamirasoftLogServerLogGroupField.js +18 -18
- package/dist/NamirasoftLogServerLogGroupField.js.map +1 -1
- package/dist/NamirasoftLogServerLogGroupTag.d.ts +5 -5
- package/dist/NamirasoftLogServerLogGroupTag.js +18 -18
- package/dist/NamirasoftLogServerLogGroupTag.js.map +1 -1
- package/dist/NamirasoftLogServerValue.d.ts +1 -1
- package/dist/NamirasoftLogServerValue.js +2 -2
- package/dist/NamirasoftLogServerValue.js.map +1 -1
- package/dist/command/HealthzGetCommand.js +2 -1
- package/dist/command/HealthzGetCommand.js.map +1 -1
- package/dist/command/LogCreateCommand.js +2 -1
- package/dist/command/LogCreateCommand.js.map +1 -1
- package/dist/command/LogGetCommand.js +2 -1
- package/dist/command/LogGetCommand.js.map +1 -1
- package/dist/command/LogGroupCategoryCommand.js +2 -4
- package/dist/command/LogGroupCategoryCommand.js.map +1 -1
- package/dist/command/LogGroupCategoryCreateCommand.js +11 -1
- package/dist/command/LogGroupCategoryCreateCommand.js.map +1 -1
- package/dist/command/LogGroupCategoryDeleteCommand.js +2 -1
- package/dist/command/LogGroupCategoryDeleteCommand.js.map +1 -1
- package/dist/command/LogGroupCategoryGetCommand.js +2 -1
- package/dist/command/LogGroupCategoryGetCommand.js.map +1 -1
- package/dist/command/LogGroupCategoryListCommand.js +2 -1
- package/dist/command/LogGroupCategoryListCommand.js.map +1 -1
- package/dist/command/LogGroupCreateCommand.js +2 -1
- package/dist/command/LogGroupCreateCommand.js.map +1 -1
- package/dist/command/LogGroupDeleteCommand.js +2 -1
- package/dist/command/LogGroupDeleteCommand.js.map +1 -1
- package/dist/command/LogGroupFieldCommand.js +3 -3
- package/dist/command/LogGroupFieldCommand.js.map +1 -1
- package/dist/command/LogGroupFieldCreateCommand.js +11 -1
- package/dist/command/LogGroupFieldCreateCommand.js.map +1 -1
- package/dist/command/LogGroupFieldDeleteCommand.js +2 -1
- package/dist/command/LogGroupFieldDeleteCommand.js.map +1 -1
- package/dist/command/LogGroupFieldGetCommand.js +2 -1
- package/dist/command/LogGroupFieldGetCommand.js.map +1 -1
- package/dist/command/LogGroupFieldListCommand.js +2 -1
- package/dist/command/LogGroupFieldListCommand.js.map +1 -1
- package/dist/command/LogGroupFieldUpdateCommand.js +11 -1
- package/dist/command/LogGroupFieldUpdateCommand.js.map +1 -1
- package/dist/command/LogGroupGetCommand.js +2 -1
- package/dist/command/LogGroupGetCommand.js.map +1 -1
- package/dist/command/LogGroupListCommand.js +2 -1
- package/dist/command/LogGroupListCommand.js.map +1 -1
- package/dist/command/LogGroupTagCommand.js +3 -3
- package/dist/command/LogGroupTagCommand.js.map +1 -1
- package/dist/command/LogGroupTagCreateCommand.js +11 -1
- package/dist/command/LogGroupTagCreateCommand.js.map +1 -1
- package/dist/command/LogGroupTagDeleteCommand.js +2 -1
- package/dist/command/LogGroupTagDeleteCommand.js.map +1 -1
- package/dist/command/LogGroupTagGetCommand.js +2 -1
- package/dist/command/LogGroupTagGetCommand.js.map +1 -1
- package/dist/command/LogGroupTagListCommand.js +2 -1
- package/dist/command/LogGroupTagListCommand.js.map +1 -1
- package/dist/command/LogGroupTagUpdateCommand.js +11 -1
- package/dist/command/LogGroupTagUpdateCommand.js.map +1 -1
- package/dist/command/LogGroupUpdateCommand.js +2 -1
- package/dist/command/LogGroupUpdateCommand.js.map +1 -1
- package/dist/command/LogListCommand.js +2 -1
- package/dist/command/LogListCommand.js.map +1 -1
- package/dist/command/ValueListCommand.js +2 -1
- package/dist/command/ValueListCommand.js.map +1 -1
- package/dist/command/cli.js +3 -1
- package/dist/command/cli.js.map +1 -1
- package/dist/enum/LogGroupRetentionUnit.d.ts +4 -6
- package/dist/enum/LogGroupRetentionUnit.js +4 -6
- package/dist/enum/LogGroupRetentionUnit.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/dist/meta/LogGroupCategoryMetaTable.d.ts +2 -0
- package/dist/meta/LogGroupCategoryMetaTable.js +2 -0
- package/dist/meta/LogGroupCategoryMetaTable.js.map +1 -1
- package/dist/meta/LogGroupFieldMetaTable.d.ts +2 -0
- package/dist/meta/LogGroupFieldMetaTable.js +2 -0
- package/dist/meta/LogGroupFieldMetaTable.js.map +1 -1
- package/dist/meta/LogGroupMetaTable.d.ts +2 -0
- package/dist/meta/LogGroupMetaTable.js +2 -0
- package/dist/meta/LogGroupMetaTable.js.map +1 -1
- package/dist/meta/LogGroupTagMetaTable.d.ts +2 -0
- package/dist/meta/LogGroupTagMetaTable.js +2 -0
- package/dist/meta/LogGroupTagMetaTable.js.map +1 -1
- package/dist/row/EntityCategoryInputRow.d.ts +1 -0
- package/dist/row/EntityFieldInputRow.d.ts +1 -0
- package/dist/row/EntityTagInputRow.d.ts +1 -0
- package/dist/row/LogGroupCategoryRow.d.ts +2 -0
- package/dist/row/LogGroupFieldRow.d.ts +2 -0
- package/dist/row/LogGroupRow.d.ts +2 -0
- package/dist/row/LogGroupTagRow.d.ts +2 -0
- package/logo.png +0 -0
- package/package.json +6 -6
- package/src/NamirasoftLogServer.ts +8 -8
- package/src/NamirasoftLogServerBase.ts +2 -2
- package/src/NamirasoftLogServerHealthz.ts +2 -2
- package/src/NamirasoftLogServerLog.ts +4 -4
- package/src/NamirasoftLogServerLogGroup.ts +4 -4
- package/src/NamirasoftLogServerLogGroupCategory.ts +13 -20
- package/src/NamirasoftLogServerLogGroupField.ts +17 -17
- package/src/NamirasoftLogServerLogGroupTag.ts +17 -17
- package/src/NamirasoftLogServerValue.ts +2 -2
- package/src/command/HealthzGetCommand.ts +2 -1
- package/src/command/LogCreateCommand.ts +2 -1
- package/src/command/LogGetCommand.ts +2 -1
- package/src/command/LogGroupCategoryCommand.ts +2 -4
- package/src/command/LogGroupCategoryCreateCommand.ts +11 -1
- package/src/command/LogGroupCategoryDeleteCommand.ts +2 -1
- package/src/command/LogGroupCategoryGetCommand.ts +2 -1
- package/src/command/LogGroupCategoryListCommand.ts +2 -1
- package/src/command/LogGroupCreateCommand.ts +2 -1
- package/src/command/LogGroupDeleteCommand.ts +2 -1
- package/src/command/LogGroupFieldCommand.ts +3 -3
- package/src/command/LogGroupFieldCreateCommand.ts +11 -1
- package/src/command/LogGroupFieldDeleteCommand.ts +2 -1
- package/src/command/LogGroupFieldGetCommand.ts +2 -1
- package/src/command/LogGroupFieldListCommand.ts +2 -1
- package/src/command/LogGroupFieldUpdateCommand.ts +11 -1
- package/src/command/LogGroupGetCommand.ts +2 -1
- package/src/command/LogGroupListCommand.ts +2 -1
- package/src/command/LogGroupTagCommand.ts +3 -3
- package/src/command/LogGroupTagCreateCommand.ts +11 -1
- package/src/command/LogGroupTagDeleteCommand.ts +2 -1
- package/src/command/LogGroupTagGetCommand.ts +2 -1
- package/src/command/LogGroupTagListCommand.ts +2 -1
- package/src/command/LogGroupTagUpdateCommand.ts +11 -1
- package/src/command/LogGroupUpdateCommand.ts +2 -1
- package/src/command/LogListCommand.ts +2 -1
- package/src/command/ValueListCommand.ts +2 -1
- package/src/command/cli.ts +3 -1
- package/src/enum/LogGroupRetentionUnit.ts +4 -6
- package/src/index.ts +0 -1
- package/src/meta/LogGroupCategoryMetaTable.ts +4 -0
- package/src/meta/LogGroupFieldMetaTable.ts +4 -0
- package/src/meta/LogGroupMetaTable.ts +4 -0
- package/src/meta/LogGroupTagMetaTable.ts +4 -0
- package/src/row/EntityCategoryInputRow.ts +1 -0
- package/src/row/EntityFieldInputRow.ts +1 -0
- package/src/row/EntityTagInputRow.ts +1 -0
- package/src/row/LogGroupCategoryRow.ts +2 -0
- package/src/row/LogGroupFieldRow.ts +2 -0
- package/src/row/LogGroupRow.ts +2 -0
- package/src/row/LogGroupTagRow.ts +2 -0
- package/dist/command/LogGroupCategoryUpdateCommand.d.ts +0 -5
- package/dist/command/LogGroupCategoryUpdateCommand.js +0 -48
- package/dist/command/LogGroupCategoryUpdateCommand.js.map +0 -1
- package/src/command/LogGroupCategoryUpdateCommand.ts +0 -55
|
@@ -1,55 +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 { BaseFinalCommand } from "namirasoft-node-cli";
|
|
22
|
-
import { IStorageMemory } from "namirasoft-core";
|
|
23
|
-
import { NamirasoftLogServer } from "../NamirasoftLogServer";
|
|
24
|
-
import { TokenManager } from "namirasoft-account";
|
|
25
|
-
|
|
26
|
-
export class LogGroupCategoryUpdateCommand extends BaseFinalCommand
|
|
27
|
-
{
|
|
28
|
-
constructor(argv: string[])
|
|
29
|
-
{
|
|
30
|
-
super(argv, ["id"], [
|
|
31
|
-
{
|
|
32
|
-
name: "category_id",
|
|
33
|
-
short: "",
|
|
34
|
-
description: "Provides the value of 'category_id' in body",
|
|
35
|
-
optional: false,
|
|
36
|
-
args: ["category_id"],
|
|
37
|
-
defaults: [""]
|
|
38
|
-
}
|
|
39
|
-
]);
|
|
40
|
-
}
|
|
41
|
-
override async exec()
|
|
42
|
-
{
|
|
43
|
-
let token = this.app.storage.getNSAToken();
|
|
44
|
-
if (token == null)
|
|
45
|
-
throw new Error("Token is not available. Please login first using:\nns-log account config \nor \n{this.command} account login.");
|
|
46
|
-
let storage = new IStorageMemory();
|
|
47
|
-
let manager = new TokenManager(storage, () => { });
|
|
48
|
-
manager.setValue(token, false);
|
|
49
|
-
let server = new NamirasoftLogServer(manager, e => this.app.logger.error(e.message));
|
|
50
|
-
let ans = await server.loggroupcategory.Update(this.arg_values[0], {
|
|
51
|
-
category_id: this.option_values.category_id
|
|
52
|
-
});
|
|
53
|
-
this.app.logger.success(JSON.stringify(ans));
|
|
54
|
-
}
|
|
55
|
-
};
|