namirasoft-log 1.3.7 → 1.3.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/command/LogCreateCommand.js +1 -37
- package/dist/command/LogCreateCommand.js.map +1 -1
- package/dist/row/LogRowInput.d.ts +0 -4
- package/dist/row/LogRowOutput.d.ts +4 -1
- package/package.json +1 -1
- package/src/command/LogCreateCommand.ts +1 -37
- package/src/row/LogRowInput.ts +0 -4
- package/src/row/LogRowOutput.ts +2 -0
|
@@ -17,22 +17,6 @@ const namirasoft_account_1 = require("namirasoft-account");
|
|
|
17
17
|
class LogCreateCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
|
18
18
|
constructor(argv) {
|
|
19
19
|
super(argv, [], [
|
|
20
|
-
{
|
|
21
|
-
name: "id",
|
|
22
|
-
short: "",
|
|
23
|
-
description: "Provides the value of 'id' in body",
|
|
24
|
-
optional: true,
|
|
25
|
-
args: ["id"],
|
|
26
|
-
defaults: [""]
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
name: "user_id",
|
|
30
|
-
short: "",
|
|
31
|
-
description: "Provides the value of 'user_id' in body",
|
|
32
|
-
optional: true,
|
|
33
|
-
args: ["user_id"],
|
|
34
|
-
defaults: [""]
|
|
35
|
-
},
|
|
36
20
|
{
|
|
37
21
|
name: "product_id",
|
|
38
22
|
short: "",
|
|
@@ -80,22 +64,6 @@ class LogCreateCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
|
|
80
64
|
optional: true,
|
|
81
65
|
args: ["stack"],
|
|
82
66
|
defaults: [""]
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
name: "sent",
|
|
86
|
-
short: "",
|
|
87
|
-
description: "Provides the value of 'sent' in body",
|
|
88
|
-
optional: true,
|
|
89
|
-
args: ["sent"],
|
|
90
|
-
defaults: [""]
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
name: "result",
|
|
94
|
-
short: "",
|
|
95
|
-
description: "Provides the value of 'result' in body",
|
|
96
|
-
optional: true,
|
|
97
|
-
args: ["result"],
|
|
98
|
-
defaults: [""]
|
|
99
67
|
}
|
|
100
68
|
]);
|
|
101
69
|
}
|
|
@@ -109,16 +77,12 @@ class LogCreateCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
|
|
109
77
|
manager.setValue(token, false);
|
|
110
78
|
let server = new NamirasoftLogServer_1.NamirasoftLogServer(manager, e => this.app.logger.error(e.message));
|
|
111
79
|
let ans = yield server.log.Create({
|
|
112
|
-
id: this.option_values.id,
|
|
113
|
-
user_id: this.option_values.user_id,
|
|
114
80
|
product_id: this.option_values.product_id,
|
|
115
81
|
project_id: this.option_values.project_id,
|
|
116
82
|
log_group_id: this.option_values.log_group_id,
|
|
117
83
|
level: this.option_values.level,
|
|
118
84
|
message: this.option_values.message,
|
|
119
|
-
stack: this.option_values.stack
|
|
120
|
-
sent: this.option_values.sent,
|
|
121
|
-
result: this.option_values.result
|
|
85
|
+
stack: this.option_values.stack
|
|
122
86
|
});
|
|
123
87
|
this.app.logger.success(JSON.stringify(ans));
|
|
124
88
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LogCreateCommand.js","sourceRoot":"","sources":["../../src/command/LogCreateCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAqBA,6DAAuD;AACvD,qDAAiD;AACjD,gEAA6D;AAC7D,2DAAkD;AAElD,MAAa,gBAAiB,SAAQ,sCAAgB;IAElD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE,EAAE,EAAE;YACZ;gBACI,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"LogCreateCommand.js","sourceRoot":"","sources":["../../src/command/LogCreateCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAqBA,6DAAuD;AACvD,qDAAiD;AACjD,gEAA6D;AAC7D,2DAAkD;AAElD,MAAa,gBAAiB,SAAQ,sCAAgB;IAElD,YAAY,IAAc;QAEtB,KA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GAAG,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC;YAC3C,IAAI,KAAK,IAAI,IAAI;gBACb,MAAM,IAAI,KAAK,CAAC,+GAA+G,CAAC,CAAC;YACrI,IAAI,OAAO,GAAG,IAAI,gCAAc,EAAE,CAAC;YACnC,IAAI,OAAO,GAAG,IAAI,iCAAY,CAAC,OAAO,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;YACnD,OAAO,CAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;YAC/B,IAAI,MAAM,GAAG,IAAI,yCAAmB,CAAC,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;YACrF,IAAI,GAAG,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC;gBAC9B,UAAU,EAAE,IAAI,CAAC,aAAa,CAAC,UAAU;gBACzC,UAAU,EAAE,IAAI,CAAC,aAAa,CAAC,UAAU;gBACzC,YAAY,EAAE,IAAI,CAAC,aAAa,CAAC,YAAY;gBAC7C,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC,KAAK;gBAC/B,OAAO,EAAE,IAAI,CAAC,aAAa,CAAC,OAAO;gBACnC,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC,KAAK;aAClC,CAAC,CAAC;YACH,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACjD,CAAC;KAAA;CACJ;AA1ED,4CA0EC;AAAA,CAAC"}
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
export type LogRowInput = {
|
|
2
|
-
id: (string | null);
|
|
3
|
-
user_id: (string | null);
|
|
4
2
|
product_id: (string | null);
|
|
5
3
|
project_id: (string | null);
|
|
6
4
|
log_group_id: (string | null);
|
|
7
5
|
level: (string | null);
|
|
8
6
|
message: (string | null);
|
|
9
7
|
stack: (string | null);
|
|
10
|
-
sent: (boolean | null);
|
|
11
|
-
result: (string | null);
|
|
12
8
|
};
|
package/package.json
CHANGED
|
@@ -29,22 +29,6 @@ export class LogCreateCommand extends BaseFinalCommand
|
|
|
29
29
|
constructor(argv: string[])
|
|
30
30
|
{
|
|
31
31
|
super(argv, [], [
|
|
32
|
-
{
|
|
33
|
-
name: "id",
|
|
34
|
-
short: "",
|
|
35
|
-
description: "Provides the value of 'id' in body",
|
|
36
|
-
optional: true,
|
|
37
|
-
args: ["id"],
|
|
38
|
-
defaults: [""]
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
name: "user_id",
|
|
42
|
-
short: "",
|
|
43
|
-
description: "Provides the value of 'user_id' in body",
|
|
44
|
-
optional: true,
|
|
45
|
-
args: ["user_id"],
|
|
46
|
-
defaults: [""]
|
|
47
|
-
},
|
|
48
32
|
{
|
|
49
33
|
name: "product_id",
|
|
50
34
|
short: "",
|
|
@@ -92,22 +76,6 @@ export class LogCreateCommand extends BaseFinalCommand
|
|
|
92
76
|
optional: true,
|
|
93
77
|
args: ["stack"],
|
|
94
78
|
defaults: [""]
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
name: "sent",
|
|
98
|
-
short: "",
|
|
99
|
-
description: "Provides the value of 'sent' in body",
|
|
100
|
-
optional: true,
|
|
101
|
-
args: ["sent"],
|
|
102
|
-
defaults: [""]
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
name: "result",
|
|
106
|
-
short: "",
|
|
107
|
-
description: "Provides the value of 'result' in body",
|
|
108
|
-
optional: true,
|
|
109
|
-
args: ["result"],
|
|
110
|
-
defaults: [""]
|
|
111
79
|
}
|
|
112
80
|
]);
|
|
113
81
|
}
|
|
@@ -121,16 +89,12 @@ export class LogCreateCommand extends BaseFinalCommand
|
|
|
121
89
|
manager.setValue(token, false);
|
|
122
90
|
let server = new NamirasoftLogServer(manager, e => this.app.logger.error(e.message));
|
|
123
91
|
let ans = await server.log.Create({
|
|
124
|
-
id: this.option_values.id,
|
|
125
|
-
user_id: this.option_values.user_id,
|
|
126
92
|
product_id: this.option_values.product_id,
|
|
127
93
|
project_id: this.option_values.project_id,
|
|
128
94
|
log_group_id: this.option_values.log_group_id,
|
|
129
95
|
level: this.option_values.level,
|
|
130
96
|
message: this.option_values.message,
|
|
131
|
-
stack: this.option_values.stack
|
|
132
|
-
sent: this.option_values.sent,
|
|
133
|
-
result: this.option_values.result
|
|
97
|
+
stack: this.option_values.stack
|
|
134
98
|
});
|
|
135
99
|
this.app.logger.success(JSON.stringify(ans));
|
|
136
100
|
}
|
package/src/row/LogRowInput.ts
CHANGED
|
@@ -21,14 +21,10 @@
|
|
|
21
21
|
|
|
22
22
|
export type LogRowInput =
|
|
23
23
|
{
|
|
24
|
-
id: (string | null);
|
|
25
|
-
user_id: (string | null);
|
|
26
24
|
product_id: (string | null);
|
|
27
25
|
project_id: (string | null);
|
|
28
26
|
log_group_id: (string | null);
|
|
29
27
|
level: (string | null);
|
|
30
28
|
message: (string | null);
|
|
31
29
|
stack: (string | null);
|
|
32
|
-
sent: (boolean | null);
|
|
33
|
-
result: (string | null);
|
|
34
30
|
}
|