@wildix/wim-tools-client 0.0.14 → 0.0.16
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-cjs/protocols/Aws_restJson1.js +3 -0
- package/dist-es/protocols/Aws_restJson1.js +3 -0
- package/dist-types/commands/CreateToolCommand.d.ts +2 -2
- package/dist-types/commands/ExecuteToolCommand.d.ts +3 -0
- package/dist-types/commands/GetToolCommand.d.ts +1 -1
- package/dist-types/commands/ListToolsCommand.d.ts +1 -1
- package/dist-types/commands/UpdateToolCommand.d.ts +2 -2
- package/dist-types/models/models_0.d.ts +6 -3
- package/package.json +1 -1
|
@@ -79,6 +79,8 @@ const se_ExecuteToolCommand = async (input, context) => {
|
|
|
79
79
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
80
80
|
'id': [],
|
|
81
81
|
'input': _ => se_Document(_, context),
|
|
82
|
+
'service': [],
|
|
83
|
+
'user': [],
|
|
82
84
|
}));
|
|
83
85
|
b.m("POST")
|
|
84
86
|
.h(headers)
|
|
@@ -194,6 +196,7 @@ const de_ExecuteToolCommand = async (output, context) => {
|
|
|
194
196
|
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
195
197
|
const doc = (0, smithy_client_1.take)(data, {
|
|
196
198
|
'result': _ => de_ToolExecutionResult(_, context),
|
|
199
|
+
'traceId': smithy_client_1.expectString,
|
|
197
200
|
});
|
|
198
201
|
Object.assign(contents, doc);
|
|
199
202
|
return contents;
|
|
@@ -73,6 +73,8 @@ export const se_ExecuteToolCommand = async (input, context) => {
|
|
|
73
73
|
body = JSON.stringify(take(input, {
|
|
74
74
|
'id': [],
|
|
75
75
|
'input': _ => se_Document(_, context),
|
|
76
|
+
'service': [],
|
|
77
|
+
'user': [],
|
|
76
78
|
}));
|
|
77
79
|
b.m("POST")
|
|
78
80
|
.h(headers)
|
|
@@ -181,6 +183,7 @@ export const de_ExecuteToolCommand = async (output, context) => {
|
|
|
181
183
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
182
184
|
const doc = take(data, {
|
|
183
185
|
'result': _ => de_ToolExecutionResult(_, context),
|
|
186
|
+
'traceId': __expectString,
|
|
184
187
|
});
|
|
185
188
|
Object.assign(contents, doc);
|
|
186
189
|
return contents;
|
|
@@ -38,7 +38,7 @@ declare const CreateToolCommand_base: {
|
|
|
38
38
|
* const input = { // CreateToolInput
|
|
39
39
|
* company: "STRING_VALUE",
|
|
40
40
|
* name: "STRING_VALUE", // required
|
|
41
|
-
* category: "STRING_VALUE",
|
|
41
|
+
* category: "STRING_VALUE", // required
|
|
42
42
|
* description: "STRING_VALUE",
|
|
43
43
|
* input: { // ToolInput
|
|
44
44
|
* variables: [ // ToolVariableList // required
|
|
@@ -144,7 +144,7 @@ declare const CreateToolCommand_base: {
|
|
|
144
144
|
* // id: "STRING_VALUE", // required
|
|
145
145
|
* // company: "STRING_VALUE", // required
|
|
146
146
|
* // name: "STRING_VALUE", // required
|
|
147
|
-
* // category: "STRING_VALUE",
|
|
147
|
+
* // category: "STRING_VALUE", // required
|
|
148
148
|
* // description: "STRING_VALUE",
|
|
149
149
|
* // input: { // ToolInput
|
|
150
150
|
* // variables: [ // ToolVariableList // required
|
|
@@ -39,6 +39,8 @@ declare const ExecuteToolCommand_base: {
|
|
|
39
39
|
* company: "STRING_VALUE",
|
|
40
40
|
* id: "STRING_VALUE", // required
|
|
41
41
|
* input: "DOCUMENT_VALUE", // required
|
|
42
|
+
* service: "STRING_VALUE",
|
|
43
|
+
* user: "STRING_VALUE",
|
|
42
44
|
* };
|
|
43
45
|
* const command = new ExecuteToolCommand(input);
|
|
44
46
|
* const response = await client.send(command);
|
|
@@ -50,6 +52,7 @@ declare const ExecuteToolCommand_base: {
|
|
|
50
52
|
* // message: "STRING_VALUE", // required
|
|
51
53
|
* // },
|
|
52
54
|
* // },
|
|
55
|
+
* // traceId: "STRING_VALUE", // required
|
|
53
56
|
* // };
|
|
54
57
|
*
|
|
55
58
|
* ```
|
|
@@ -46,7 +46,7 @@ declare const GetToolCommand_base: {
|
|
|
46
46
|
* // id: "STRING_VALUE", // required
|
|
47
47
|
* // company: "STRING_VALUE", // required
|
|
48
48
|
* // name: "STRING_VALUE", // required
|
|
49
|
-
* // category: "STRING_VALUE",
|
|
49
|
+
* // category: "STRING_VALUE", // required
|
|
50
50
|
* // description: "STRING_VALUE",
|
|
51
51
|
* // input: { // ToolInput
|
|
52
52
|
* // variables: [ // ToolVariableList // required
|
|
@@ -46,7 +46,7 @@ declare const ListToolsCommand_base: {
|
|
|
46
46
|
* // id: "STRING_VALUE", // required
|
|
47
47
|
* // company: "STRING_VALUE", // required
|
|
48
48
|
* // name: "STRING_VALUE", // required
|
|
49
|
-
* // category: "STRING_VALUE",
|
|
49
|
+
* // category: "STRING_VALUE", // required
|
|
50
50
|
* // description: "STRING_VALUE",
|
|
51
51
|
* // input: { // ToolInput
|
|
52
52
|
* // variables: [ // ToolVariableList // required
|
|
@@ -39,7 +39,7 @@ declare const UpdateToolCommand_base: {
|
|
|
39
39
|
* company: "STRING_VALUE",
|
|
40
40
|
* toolId: "STRING_VALUE", // required
|
|
41
41
|
* name: "STRING_VALUE", // required
|
|
42
|
-
* category: "STRING_VALUE",
|
|
42
|
+
* category: "STRING_VALUE", // required
|
|
43
43
|
* description: "STRING_VALUE",
|
|
44
44
|
* input: { // ToolInput
|
|
45
45
|
* variables: [ // ToolVariableList // required
|
|
@@ -145,7 +145,7 @@ declare const UpdateToolCommand_base: {
|
|
|
145
145
|
* // id: "STRING_VALUE", // required
|
|
146
146
|
* // company: "STRING_VALUE", // required
|
|
147
147
|
* // name: "STRING_VALUE", // required
|
|
148
|
-
* // category: "STRING_VALUE",
|
|
148
|
+
* // category: "STRING_VALUE", // required
|
|
149
149
|
* // description: "STRING_VALUE",
|
|
150
150
|
* // input: { // ToolInput
|
|
151
151
|
* // variables: [ // ToolVariableList // required
|
|
@@ -377,7 +377,7 @@ export interface ToolInput {
|
|
|
377
377
|
export interface CreateToolInput {
|
|
378
378
|
company?: string | undefined;
|
|
379
379
|
name: string;
|
|
380
|
-
category
|
|
380
|
+
category: string;
|
|
381
381
|
description?: string | undefined;
|
|
382
382
|
input: ToolInput;
|
|
383
383
|
handler: ToolHandler;
|
|
@@ -389,7 +389,7 @@ export interface Tool {
|
|
|
389
389
|
id: string;
|
|
390
390
|
company: string;
|
|
391
391
|
name: string;
|
|
392
|
-
category
|
|
392
|
+
category: string;
|
|
393
393
|
description?: string | undefined;
|
|
394
394
|
input: ToolInput;
|
|
395
395
|
handler: ToolHandler;
|
|
@@ -453,6 +453,8 @@ export interface ExecuteToolInput {
|
|
|
453
453
|
company?: string | undefined;
|
|
454
454
|
id: string;
|
|
455
455
|
input: __DocumentType;
|
|
456
|
+
service?: string | undefined;
|
|
457
|
+
user?: string | undefined;
|
|
456
458
|
}
|
|
457
459
|
/**
|
|
458
460
|
* @public
|
|
@@ -473,6 +475,7 @@ export interface ToolExecutionResult {
|
|
|
473
475
|
*/
|
|
474
476
|
export interface ExecuteToolOutput {
|
|
475
477
|
result: ToolExecutionResult;
|
|
478
|
+
traceId: string;
|
|
476
479
|
}
|
|
477
480
|
/**
|
|
478
481
|
* @public
|
|
@@ -506,7 +509,7 @@ export interface UpdateToolInput {
|
|
|
506
509
|
company?: string | undefined;
|
|
507
510
|
toolId: string;
|
|
508
511
|
name: string;
|
|
509
|
-
category
|
|
512
|
+
category: string;
|
|
510
513
|
description?: string | undefined;
|
|
511
514
|
input: ToolInput;
|
|
512
515
|
handler: ToolHandler;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/wim-tools-client",
|
|
3
3
|
"description": "@wildix/wim-tools-client client",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.16",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|