@wildix/wim-knowledge-base-client 0.0.7 → 0.0.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-cjs/KnowledgeBase.js +4 -2
- package/dist-cjs/commands/StartSyncDataSourceCommand.js +21 -0
- package/dist-cjs/commands/{SyncDataSourceCommand.js → StopSyncDataSourceCommand.js} +7 -7
- package/dist-cjs/commands/index.js +2 -1
- package/dist-cjs/models/models_0.js +7 -1
- package/dist-cjs/protocols/Aws_restJson1.js +124 -12
- package/dist-es/KnowledgeBase.js +4 -2
- package/dist-es/commands/StartSyncDataSourceCommand.js +17 -0
- package/dist-es/commands/StopSyncDataSourceCommand.js +17 -0
- package/dist-es/commands/index.js +2 -1
- package/dist-es/models/models_0.js +6 -0
- package/dist-es/protocols/Aws_restJson1.js +122 -12
- package/dist-types/KnowledgeBase.d.ts +12 -5
- package/dist-types/KnowledgeBaseClient.d.ts +4 -3
- package/dist-types/commands/CreateDataSourceCommand.d.ts +30 -0
- package/dist-types/commands/GetDataSourceCommand.d.ts +15 -0
- package/dist-types/commands/ListDataSourcesCommand.d.ts +15 -0
- package/dist-types/commands/StartSyncDataSourceCommand.d.ts +84 -0
- package/dist-types/commands/StopSyncDataSourceCommand.d.ts +83 -0
- package/dist-types/commands/UpdateDataSourceCommand.d.ts +30 -0
- package/dist-types/commands/index.d.ts +2 -1
- package/dist-types/models/models_0.d.ts +93 -3
- package/dist-types/protocols/Aws_restJson1.d.ts +14 -5
- package/package.json +1 -1
- package/dist-es/commands/SyncDataSourceCommand.js +0 -17
- package/dist-types/commands/SyncDataSourceCommand.d.ts +0 -84
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { KnowledgeBaseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KnowledgeBaseClient";
|
|
2
|
-
import { SyncDataSourceInput, SyncDataSourceOutput } from "../models/models_0";
|
|
3
|
-
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
-
/**
|
|
6
|
-
* @public
|
|
7
|
-
*/
|
|
8
|
-
export type { __MetadataBearer };
|
|
9
|
-
export { $Command };
|
|
10
|
-
/**
|
|
11
|
-
* @public
|
|
12
|
-
*
|
|
13
|
-
* The input for {@link SyncDataSourceCommand}.
|
|
14
|
-
*/
|
|
15
|
-
export interface SyncDataSourceCommandInput extends SyncDataSourceInput {
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* @public
|
|
19
|
-
*
|
|
20
|
-
* The output of {@link SyncDataSourceCommand}.
|
|
21
|
-
*/
|
|
22
|
-
export interface SyncDataSourceCommandOutput extends SyncDataSourceOutput, __MetadataBearer {
|
|
23
|
-
}
|
|
24
|
-
declare const SyncDataSourceCommand_base: {
|
|
25
|
-
new (input: SyncDataSourceCommandInput): import("@smithy/smithy-client").CommandImpl<SyncDataSourceCommandInput, SyncDataSourceCommandOutput, KnowledgeBaseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
-
new (__0_0: SyncDataSourceCommandInput): import("@smithy/smithy-client").CommandImpl<SyncDataSourceCommandInput, SyncDataSourceCommandOutput, KnowledgeBaseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
-
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
-
};
|
|
29
|
-
/**
|
|
30
|
-
* Sync a data source by its ID
|
|
31
|
-
* @example
|
|
32
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
-
* ```javascript
|
|
34
|
-
* import { KnowledgeBaseClient, SyncDataSourceCommand } from "@wildix/wim-knowledge-base-client"; // ES Modules import
|
|
35
|
-
* // const { KnowledgeBaseClient, SyncDataSourceCommand } = require("@wildix/wim-knowledge-base-client"); // CommonJS import
|
|
36
|
-
* const client = new KnowledgeBaseClient(config);
|
|
37
|
-
* const input = { // SyncDataSourceInput
|
|
38
|
-
* companyId: "STRING_VALUE",
|
|
39
|
-
* dataSourceId: "STRING_VALUE", // required
|
|
40
|
-
* syncType: "full" || "incremental" || "unknown", // required
|
|
41
|
-
* };
|
|
42
|
-
* const command = new SyncDataSourceCommand(input);
|
|
43
|
-
* const response = await client.send(command);
|
|
44
|
-
* // {};
|
|
45
|
-
*
|
|
46
|
-
* ```
|
|
47
|
-
*
|
|
48
|
-
* @param SyncDataSourceCommandInput - {@link SyncDataSourceCommandInput}
|
|
49
|
-
* @returns {@link SyncDataSourceCommandOutput}
|
|
50
|
-
* @see {@link SyncDataSourceCommandInput} for command's `input` shape.
|
|
51
|
-
* @see {@link SyncDataSourceCommandOutput} for command's `response` shape.
|
|
52
|
-
* @see {@link KnowledgeBaseClientResolvedConfig | config} for KnowledgeBaseClient's `config` shape.
|
|
53
|
-
*
|
|
54
|
-
* @throws {@link DataSourceNotFoundException} (client fault)
|
|
55
|
-
*
|
|
56
|
-
* @throws {@link UnauthorizedException} (client fault)
|
|
57
|
-
*
|
|
58
|
-
* @throws {@link ForbiddenException} (client fault)
|
|
59
|
-
*
|
|
60
|
-
* @throws {@link ValidationException} (client fault)
|
|
61
|
-
*
|
|
62
|
-
* @throws {@link KnowledgeBaseNotFoundException} (client fault)
|
|
63
|
-
*
|
|
64
|
-
* @throws {@link DocumentNotFoundException} (client fault)
|
|
65
|
-
*
|
|
66
|
-
* @throws {@link KnowledgeBaseServiceException}
|
|
67
|
-
* <p>Base exception class for all service exceptions from KnowledgeBase service.</p>
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
* @public
|
|
71
|
-
*/
|
|
72
|
-
export declare class SyncDataSourceCommand extends SyncDataSourceCommand_base {
|
|
73
|
-
/** @internal type navigation helper, not in runtime. */
|
|
74
|
-
protected static __types: {
|
|
75
|
-
api: {
|
|
76
|
-
input: SyncDataSourceInput;
|
|
77
|
-
output: {};
|
|
78
|
-
};
|
|
79
|
-
sdk: {
|
|
80
|
-
input: SyncDataSourceCommandInput;
|
|
81
|
-
output: SyncDataSourceCommandOutput;
|
|
82
|
-
};
|
|
83
|
-
};
|
|
84
|
-
}
|