@wildix/wim-knowledge-base-client 0.0.28 → 0.0.30
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/models/models_0.js +7 -7
- package/dist-cjs/protocols/Aws_restJson1.js +1 -0
- package/dist-es/models/models_0.js +6 -6
- package/dist-es/protocols/Aws_restJson1.js +1 -0
- package/dist-types/commands/CreateDataSourceCommand.d.ts +2 -1
- package/dist-types/models/models_0.d.ts +19 -14
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SearchStrategy = exports.SyncLogLevel = exports.DownloadDocumentType = exports.DocumentStatus = exports.
|
|
3
|
+
exports.SearchStrategy = exports.SyncLogLevel = exports.DownloadDocumentType = exports.DocumentStatus = exports.SyncDataSourceStatus = exports.SyncDataSourceMode = exports.DataSourceConfig = exports.ProxyMethod = exports.DataSourceType = exports.KnowledgeBaseNotFoundException = exports.DocumentNotFoundException = exports.DataSourceNotFoundException = exports.UnauthorizedException = exports.ForbiddenException = exports.ValidationException = void 0;
|
|
4
4
|
const KnowledgeBaseServiceException_1 = require("./KnowledgeBaseServiceException");
|
|
5
5
|
class ValidationException extends KnowledgeBaseServiceException_1.KnowledgeBaseServiceException {
|
|
6
6
|
name = "ValidationException";
|
|
@@ -80,6 +80,12 @@ class KnowledgeBaseNotFoundException extends KnowledgeBaseServiceException_1.Kno
|
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
exports.KnowledgeBaseNotFoundException = KnowledgeBaseNotFoundException;
|
|
83
|
+
exports.DataSourceType = {
|
|
84
|
+
CONFLUENCE: "confluence",
|
|
85
|
+
FILES: "files",
|
|
86
|
+
GDRIVE: "gdrive",
|
|
87
|
+
PROXY: "proxy",
|
|
88
|
+
};
|
|
83
89
|
exports.ProxyMethod = {
|
|
84
90
|
GET: "GET",
|
|
85
91
|
POST: "POST",
|
|
@@ -109,12 +115,6 @@ exports.SyncDataSourceStatus = {
|
|
|
109
115
|
RUNNING: "running",
|
|
110
116
|
SUCCESS: "success",
|
|
111
117
|
};
|
|
112
|
-
exports.DataSourceType = {
|
|
113
|
-
CONFLUENCE: "confluence",
|
|
114
|
-
FILES: "files",
|
|
115
|
-
GDRIVE: "gdrive",
|
|
116
|
-
PROXY: "proxy",
|
|
117
|
-
};
|
|
118
118
|
exports.DocumentStatus = {
|
|
119
119
|
COMPLETED: "completed",
|
|
120
120
|
DRAFT: "draft",
|
|
@@ -71,6 +71,12 @@ export class KnowledgeBaseNotFoundException extends __BaseException {
|
|
|
71
71
|
Object.setPrototypeOf(this, KnowledgeBaseNotFoundException.prototype);
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
+
export const DataSourceType = {
|
|
75
|
+
CONFLUENCE: "confluence",
|
|
76
|
+
FILES: "files",
|
|
77
|
+
GDRIVE: "gdrive",
|
|
78
|
+
PROXY: "proxy",
|
|
79
|
+
};
|
|
74
80
|
export const ProxyMethod = {
|
|
75
81
|
GET: "GET",
|
|
76
82
|
POST: "POST",
|
|
@@ -100,12 +106,6 @@ export const SyncDataSourceStatus = {
|
|
|
100
106
|
RUNNING: "running",
|
|
101
107
|
SUCCESS: "success",
|
|
102
108
|
};
|
|
103
|
-
export const DataSourceType = {
|
|
104
|
-
CONFLUENCE: "confluence",
|
|
105
|
-
FILES: "files",
|
|
106
|
-
GDRIVE: "gdrive",
|
|
107
|
-
PROXY: "proxy",
|
|
108
|
-
};
|
|
109
109
|
export const DocumentStatus = {
|
|
110
110
|
COMPLETED: "completed",
|
|
111
111
|
DRAFT: "draft",
|
|
@@ -27,7 +27,7 @@ declare const CreateDataSourceCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* Register a new data source with minimal configuration. All other parameters will be set in update operation.
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
@@ -37,6 +37,7 @@ declare const CreateDataSourceCommand_base: {
|
|
|
37
37
|
* const input = { // CreateDataSourceInput
|
|
38
38
|
* name: "STRING_VALUE", // required
|
|
39
39
|
* description: "STRING_VALUE",
|
|
40
|
+
* type: "files" || "confluence" || "gdrive" || "proxy", // required
|
|
40
41
|
* companyId: "STRING_VALUE",
|
|
41
42
|
* };
|
|
42
43
|
* const command = new CreateDataSourceCommand(input);
|
|
@@ -163,6 +163,20 @@ export interface ConfluenceConfig {
|
|
|
163
163
|
spaceId: string;
|
|
164
164
|
pages?: ConfluencePagesConfig | undefined;
|
|
165
165
|
}
|
|
166
|
+
/**
|
|
167
|
+
* @public
|
|
168
|
+
* @enum
|
|
169
|
+
*/
|
|
170
|
+
export declare const DataSourceType: {
|
|
171
|
+
readonly CONFLUENCE: "confluence";
|
|
172
|
+
readonly FILES: "files";
|
|
173
|
+
readonly GDRIVE: "gdrive";
|
|
174
|
+
readonly PROXY: "proxy";
|
|
175
|
+
};
|
|
176
|
+
/**
|
|
177
|
+
* @public
|
|
178
|
+
*/
|
|
179
|
+
export type DataSourceType = typeof DataSourceType[keyof typeof DataSourceType];
|
|
166
180
|
/**
|
|
167
181
|
* @public
|
|
168
182
|
*/
|
|
@@ -177,6 +191,11 @@ export interface CreateDataSourceInput {
|
|
|
177
191
|
* @public
|
|
178
192
|
*/
|
|
179
193
|
description?: string | undefined;
|
|
194
|
+
/**
|
|
195
|
+
* The type of the data source. Example: confluence
|
|
196
|
+
* @public
|
|
197
|
+
*/
|
|
198
|
+
type: DataSourceType;
|
|
180
199
|
/**
|
|
181
200
|
* The unique identifier of the tenant when a service token is used.
|
|
182
201
|
* @public
|
|
@@ -351,20 +370,6 @@ export declare const SyncDataSourceStatus: {
|
|
|
351
370
|
* @public
|
|
352
371
|
*/
|
|
353
372
|
export type SyncDataSourceStatus = typeof SyncDataSourceStatus[keyof typeof SyncDataSourceStatus];
|
|
354
|
-
/**
|
|
355
|
-
* @public
|
|
356
|
-
* @enum
|
|
357
|
-
*/
|
|
358
|
-
export declare const DataSourceType: {
|
|
359
|
-
readonly CONFLUENCE: "confluence";
|
|
360
|
-
readonly FILES: "files";
|
|
361
|
-
readonly GDRIVE: "gdrive";
|
|
362
|
-
readonly PROXY: "proxy";
|
|
363
|
-
};
|
|
364
|
-
/**
|
|
365
|
-
* @public
|
|
366
|
-
*/
|
|
367
|
-
export type DataSourceType = typeof DataSourceType[keyof typeof DataSourceType];
|
|
368
373
|
/**
|
|
369
374
|
* @public
|
|
370
375
|
*/
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/wim-knowledge-base-client",
|
|
3
3
|
"description": "@wildix/wim-knowledge-base-client client",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.30",
|
|
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",
|