@wildix/wim-knowledge-base-client 0.0.60 → 0.0.62
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 +14 -14
- package/dist-cjs/protocols/Aws_restJson1.js +1 -0
- package/dist-es/models/models_0.js +12 -12
- package/dist-es/protocols/Aws_restJson1.js +1 -0
- package/dist-types/commands/GetDataSourceSyncStatusCommand.d.ts +3 -0
- package/dist-types/commands/ListSearchQueriesHistoryCommand.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +15 -9
- package/package.json +1 -1
|
@@ -1,20 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SearchThresholdValue = exports.SearchStrategy = exports.SyncLogLevel = exports.SyncDataSourceStatus = exports.SyncDataSourceMode = exports.DocumentStatus = exports.DataSourceType = exports.ScheduleConfiguration = exports.DataSourceConfig = exports.KnowledgeBaseNotFoundException = exports.DocumentNotFoundException = exports.DataSourceNotFoundException = exports.
|
|
3
|
+
exports.SearchThresholdValue = exports.SearchStrategy = exports.SyncLogLevel = exports.SyncDataSourceStatus = exports.SyncDataSourceMode = exports.DocumentStatus = exports.DataSourceType = exports.ScheduleConfiguration = exports.DataSourceConfig = exports.KnowledgeBaseNotFoundException = exports.DocumentNotFoundException = exports.DataSourceNotFoundException = exports.ValidationException = exports.UnauthorizedException = exports.ForbiddenException = void 0;
|
|
4
4
|
const KnowledgeBaseServiceException_1 = require("./KnowledgeBaseServiceException");
|
|
5
|
-
class ValidationException extends KnowledgeBaseServiceException_1.KnowledgeBaseServiceException {
|
|
6
|
-
name = "ValidationException";
|
|
7
|
-
$fault = "client";
|
|
8
|
-
constructor(opts) {
|
|
9
|
-
super({
|
|
10
|
-
name: "ValidationException",
|
|
11
|
-
$fault: "client",
|
|
12
|
-
...opts
|
|
13
|
-
});
|
|
14
|
-
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
exports.ValidationException = ValidationException;
|
|
18
5
|
class ForbiddenException extends KnowledgeBaseServiceException_1.KnowledgeBaseServiceException {
|
|
19
6
|
name = "ForbiddenException";
|
|
20
7
|
$fault = "client";
|
|
@@ -41,6 +28,19 @@ class UnauthorizedException extends KnowledgeBaseServiceException_1.KnowledgeBas
|
|
|
41
28
|
}
|
|
42
29
|
}
|
|
43
30
|
exports.UnauthorizedException = UnauthorizedException;
|
|
31
|
+
class ValidationException extends KnowledgeBaseServiceException_1.KnowledgeBaseServiceException {
|
|
32
|
+
name = "ValidationException";
|
|
33
|
+
$fault = "client";
|
|
34
|
+
constructor(opts) {
|
|
35
|
+
super({
|
|
36
|
+
name: "ValidationException",
|
|
37
|
+
$fault: "client",
|
|
38
|
+
...opts
|
|
39
|
+
});
|
|
40
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.ValidationException = ValidationException;
|
|
44
44
|
class DataSourceNotFoundException extends KnowledgeBaseServiceException_1.KnowledgeBaseServiceException {
|
|
45
45
|
name = "DataSourceNotFoundException";
|
|
46
46
|
$fault = "client";
|
|
@@ -796,6 +796,7 @@ const de_GetDataSourceSyncStatusCommand = async (output, context) => {
|
|
|
796
796
|
});
|
|
797
797
|
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
798
798
|
const doc = (0, smithy_client_1.take)(data, {
|
|
799
|
+
'documentsStats': smithy_client_1._json,
|
|
799
800
|
'lastSyncErrorMessage': smithy_client_1.expectString,
|
|
800
801
|
'lastSyncMode': smithy_client_1.expectString,
|
|
801
802
|
'lastSyncedAt': smithy_client_1.expectString,
|
|
@@ -1,16 +1,4 @@
|
|
|
1
1
|
import { KnowledgeBaseServiceException as __BaseException } from "./KnowledgeBaseServiceException";
|
|
2
|
-
export class ValidationException extends __BaseException {
|
|
3
|
-
name = "ValidationException";
|
|
4
|
-
$fault = "client";
|
|
5
|
-
constructor(opts) {
|
|
6
|
-
super({
|
|
7
|
-
name: "ValidationException",
|
|
8
|
-
$fault: "client",
|
|
9
|
-
...opts
|
|
10
|
-
});
|
|
11
|
-
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
2
|
export class ForbiddenException extends __BaseException {
|
|
15
3
|
name = "ForbiddenException";
|
|
16
4
|
$fault = "client";
|
|
@@ -35,6 +23,18 @@ export class UnauthorizedException extends __BaseException {
|
|
|
35
23
|
Object.setPrototypeOf(this, UnauthorizedException.prototype);
|
|
36
24
|
}
|
|
37
25
|
}
|
|
26
|
+
export class ValidationException extends __BaseException {
|
|
27
|
+
name = "ValidationException";
|
|
28
|
+
$fault = "client";
|
|
29
|
+
constructor(opts) {
|
|
30
|
+
super({
|
|
31
|
+
name: "ValidationException",
|
|
32
|
+
$fault: "client",
|
|
33
|
+
...opts
|
|
34
|
+
});
|
|
35
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
38
|
export class DataSourceNotFoundException extends __BaseException {
|
|
39
39
|
name = "DataSourceNotFoundException";
|
|
40
40
|
$fault = "client";
|
|
@@ -748,6 +748,7 @@ export const de_GetDataSourceSyncStatusCommand = async (output, context) => {
|
|
|
748
748
|
});
|
|
749
749
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
750
750
|
const doc = take(data, {
|
|
751
|
+
'documentsStats': _json,
|
|
751
752
|
'lastSyncErrorMessage': __expectString,
|
|
752
753
|
'lastSyncMode': __expectString,
|
|
753
754
|
'lastSyncedAt': __expectString,
|
|
@@ -45,6 +45,9 @@ declare const GetDataSourceSyncStatusCommand_base: {
|
|
|
45
45
|
* // lastSyncedAt: "STRING_VALUE",
|
|
46
46
|
* // lastSyncMode: "full" || "incremental",
|
|
47
47
|
* // lastSyncErrorMessage: "STRING_VALUE",
|
|
48
|
+
* // documentsStats: { // SyncStatusStats
|
|
49
|
+
* // "<keys>": Number("int"),
|
|
50
|
+
* // },
|
|
48
51
|
* // };
|
|
49
52
|
*
|
|
50
53
|
* ```
|
|
@@ -45,6 +45,7 @@ declare const ListSearchQueriesHistoryCommand_base: {
|
|
|
45
45
|
* sessionId: "STRING_VALUE",
|
|
46
46
|
* externalSessionId: "STRING_VALUE",
|
|
47
47
|
* searchUser: "STRING_VALUE",
|
|
48
|
+
* withEmptyResults: true || false,
|
|
48
49
|
* },
|
|
49
50
|
* search: "STRING_VALUE",
|
|
50
51
|
* withContent: true || false,
|
|
@@ -4,35 +4,35 @@ import { DocumentType as __DocumentType } from "@smithy/types";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare class
|
|
8
|
-
readonly name: "
|
|
7
|
+
export declare class ForbiddenException extends __BaseException {
|
|
8
|
+
readonly name: "ForbiddenException";
|
|
9
9
|
readonly $fault: "client";
|
|
10
10
|
/**
|
|
11
11
|
* @internal
|
|
12
12
|
*/
|
|
13
|
-
constructor(opts: __ExceptionOptionType<
|
|
13
|
+
constructor(opts: __ExceptionOptionType<ForbiddenException, __BaseException>);
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
16
|
* @public
|
|
17
17
|
*/
|
|
18
|
-
export declare class
|
|
19
|
-
readonly name: "
|
|
18
|
+
export declare class UnauthorizedException extends __BaseException {
|
|
19
|
+
readonly name: "UnauthorizedException";
|
|
20
20
|
readonly $fault: "client";
|
|
21
21
|
/**
|
|
22
22
|
* @internal
|
|
23
23
|
*/
|
|
24
|
-
constructor(opts: __ExceptionOptionType<
|
|
24
|
+
constructor(opts: __ExceptionOptionType<UnauthorizedException, __BaseException>);
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
27
|
* @public
|
|
28
28
|
*/
|
|
29
|
-
export declare class
|
|
30
|
-
readonly name: "
|
|
29
|
+
export declare class ValidationException extends __BaseException {
|
|
30
|
+
readonly name: "ValidationException";
|
|
31
31
|
readonly $fault: "client";
|
|
32
32
|
/**
|
|
33
33
|
* @internal
|
|
34
34
|
*/
|
|
35
|
-
constructor(opts: __ExceptionOptionType<
|
|
35
|
+
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
|
|
36
36
|
}
|
|
37
37
|
/**
|
|
38
38
|
* @public
|
|
@@ -1103,6 +1103,7 @@ export interface GetDataSourceSyncStatusOutput {
|
|
|
1103
1103
|
lastSyncedAt?: string | undefined;
|
|
1104
1104
|
lastSyncMode?: SyncDataSourceMode | undefined;
|
|
1105
1105
|
lastSyncErrorMessage?: string | undefined;
|
|
1106
|
+
documentsStats?: Partial<Record<DocumentStatus, number>> | undefined;
|
|
1106
1107
|
}
|
|
1107
1108
|
/**
|
|
1108
1109
|
* @public
|
|
@@ -1459,6 +1460,11 @@ export interface SearchHistoryFilter {
|
|
|
1459
1460
|
* @public
|
|
1460
1461
|
*/
|
|
1461
1462
|
searchUser?: string | undefined;
|
|
1463
|
+
/**
|
|
1464
|
+
* Whether to include the history results with empty results.
|
|
1465
|
+
* @public
|
|
1466
|
+
*/
|
|
1467
|
+
withEmptyResults?: boolean | undefined;
|
|
1462
1468
|
}
|
|
1463
1469
|
/**
|
|
1464
1470
|
* @public
|
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.62",
|
|
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",
|