@wildix/wim-knowledge-base-client 0.0.31 → 0.0.32
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 -1
- package/dist-es/models/models_0.js +6 -0
- package/dist-types/commands/ConfigureDataSourceCommand.d.ts +2 -2
- package/dist-types/commands/CreateDataSourceCommand.d.ts +1 -1
- package/dist-types/commands/GetDataSourceCommand.d.ts +1 -1
- package/dist-types/commands/ListDataSourcesCommand.d.ts +1 -1
- package/dist-types/commands/UpdateDataSourceCommand.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +18 -4
- 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.DataSourceType = exports.SyncDataSourceStatus = exports.SyncDataSourceMode = exports.DataSourceConfig = exports.ProxyMethod = exports.KnowledgeBaseNotFoundException = exports.DocumentNotFoundException = exports.DataSourceNotFoundException = exports.UnauthorizedException = exports.ForbiddenException = exports.ValidationException = void 0;
|
|
3
|
+
exports.SearchStrategy = exports.SyncLogLevel = exports.DownloadDocumentType = exports.DocumentStatus = exports.DataSourceType = exports.SyncDataSourceStatus = exports.SyncDataSourceMode = exports.ScheduleConfiguration = exports.DataSourceConfig = exports.ProxyMethod = 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";
|
|
@@ -98,6 +98,12 @@ var DataSourceConfig;
|
|
|
98
98
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
99
99
|
};
|
|
100
100
|
})(DataSourceConfig || (exports.DataSourceConfig = DataSourceConfig = {}));
|
|
101
|
+
exports.ScheduleConfiguration = {
|
|
102
|
+
EVERY_DAY: "EVERY_DAY",
|
|
103
|
+
EVERY_SIX_HOURS: "EVERY_SIX_HOURS",
|
|
104
|
+
EVERY_TWELVE_HOURS: "EVERY_TWELVE_HOURS",
|
|
105
|
+
EVERY_WEEK: "EVERY_WEEK",
|
|
106
|
+
};
|
|
101
107
|
exports.SyncDataSourceMode = {
|
|
102
108
|
FULL: "full",
|
|
103
109
|
INCREMENTAL: "incremental",
|
|
@@ -89,6 +89,12 @@ export var DataSourceConfig;
|
|
|
89
89
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
90
90
|
};
|
|
91
91
|
})(DataSourceConfig || (DataSourceConfig = {}));
|
|
92
|
+
export const ScheduleConfiguration = {
|
|
93
|
+
EVERY_DAY: "EVERY_DAY",
|
|
94
|
+
EVERY_SIX_HOURS: "EVERY_SIX_HOURS",
|
|
95
|
+
EVERY_TWELVE_HOURS: "EVERY_TWELVE_HOURS",
|
|
96
|
+
EVERY_WEEK: "EVERY_WEEK",
|
|
97
|
+
};
|
|
92
98
|
export const SyncDataSourceMode = {
|
|
93
99
|
FULL: "full",
|
|
94
100
|
INCREMENTAL: "incremental",
|
|
@@ -82,7 +82,7 @@ declare const ConfigureDataSourceCommand_base: {
|
|
|
82
82
|
* ],
|
|
83
83
|
* },
|
|
84
84
|
* },
|
|
85
|
-
* syncSchedule: "
|
|
85
|
+
* syncSchedule: "EVERY_SIX_HOURS" || "EVERY_TWELVE_HOURS" || "EVERY_DAY" || "EVERY_WEEK",
|
|
86
86
|
* companyId: "STRING_VALUE",
|
|
87
87
|
* dataSourceId: "STRING_VALUE", // required
|
|
88
88
|
* };
|
|
@@ -140,7 +140,7 @@ declare const ConfigureDataSourceCommand_base: {
|
|
|
140
140
|
* // ],
|
|
141
141
|
* // },
|
|
142
142
|
* // },
|
|
143
|
-
* // syncSchedule: "
|
|
143
|
+
* // syncSchedule: "EVERY_SIX_HOURS" || "EVERY_TWELVE_HOURS" || "EVERY_DAY" || "EVERY_WEEK",
|
|
144
144
|
* // id: "STRING_VALUE", // required
|
|
145
145
|
* // companyId: "STRING_VALUE", // required
|
|
146
146
|
* // documentsCount: Number("int"), // required
|
|
@@ -94,7 +94,7 @@ declare const CreateDataSourceCommand_base: {
|
|
|
94
94
|
* // ],
|
|
95
95
|
* // },
|
|
96
96
|
* // },
|
|
97
|
-
* // syncSchedule: "
|
|
97
|
+
* // syncSchedule: "EVERY_SIX_HOURS" || "EVERY_TWELVE_HOURS" || "EVERY_DAY" || "EVERY_WEEK",
|
|
98
98
|
* // id: "STRING_VALUE", // required
|
|
99
99
|
* // companyId: "STRING_VALUE", // required
|
|
100
100
|
* // documentsCount: Number("int"), // required
|
|
@@ -92,7 +92,7 @@ declare const GetDataSourceCommand_base: {
|
|
|
92
92
|
* // ],
|
|
93
93
|
* // },
|
|
94
94
|
* // },
|
|
95
|
-
* // syncSchedule: "
|
|
95
|
+
* // syncSchedule: "EVERY_SIX_HOURS" || "EVERY_TWELVE_HOURS" || "EVERY_DAY" || "EVERY_WEEK",
|
|
96
96
|
* // id: "STRING_VALUE", // required
|
|
97
97
|
* // companyId: "STRING_VALUE", // required
|
|
98
98
|
* // documentsCount: Number("int"), // required
|
|
@@ -92,7 +92,7 @@ declare const ListDataSourcesCommand_base: {
|
|
|
92
92
|
* // ],
|
|
93
93
|
* // },
|
|
94
94
|
* // },
|
|
95
|
-
* // syncSchedule: "
|
|
95
|
+
* // syncSchedule: "EVERY_SIX_HOURS" || "EVERY_TWELVE_HOURS" || "EVERY_DAY" || "EVERY_WEEK",
|
|
96
96
|
* // id: "STRING_VALUE", // required
|
|
97
97
|
* // companyId: "STRING_VALUE", // required
|
|
98
98
|
* // documentsCount: Number("int"), // required
|
|
@@ -94,7 +94,7 @@ declare const UpdateDataSourceCommand_base: {
|
|
|
94
94
|
* // ],
|
|
95
95
|
* // },
|
|
96
96
|
* // },
|
|
97
|
-
* // syncSchedule: "
|
|
97
|
+
* // syncSchedule: "EVERY_SIX_HOURS" || "EVERY_TWELVE_HOURS" || "EVERY_DAY" || "EVERY_WEEK",
|
|
98
98
|
* // id: "STRING_VALUE", // required
|
|
99
99
|
* // companyId: "STRING_VALUE", // required
|
|
100
100
|
* // documentsCount: Number("int"), // required
|
|
@@ -304,16 +304,30 @@ export declare namespace DataSourceConfig {
|
|
|
304
304
|
}
|
|
305
305
|
const visit: <T>(value: DataSourceConfig, visitor: Visitor<T>) => T;
|
|
306
306
|
}
|
|
307
|
+
/**
|
|
308
|
+
* @public
|
|
309
|
+
* @enum
|
|
310
|
+
*/
|
|
311
|
+
export declare const ScheduleConfiguration: {
|
|
312
|
+
readonly EVERY_DAY: "EVERY_DAY";
|
|
313
|
+
readonly EVERY_SIX_HOURS: "EVERY_SIX_HOURS";
|
|
314
|
+
readonly EVERY_TWELVE_HOURS: "EVERY_TWELVE_HOURS";
|
|
315
|
+
readonly EVERY_WEEK: "EVERY_WEEK";
|
|
316
|
+
};
|
|
317
|
+
/**
|
|
318
|
+
* @public
|
|
319
|
+
*/
|
|
320
|
+
export type ScheduleConfiguration = typeof ScheduleConfiguration[keyof typeof ScheduleConfiguration];
|
|
307
321
|
/**
|
|
308
322
|
* @public
|
|
309
323
|
*/
|
|
310
324
|
export interface ConfigureDataSourceInput {
|
|
311
325
|
config: DataSourceConfig;
|
|
312
326
|
/**
|
|
313
|
-
* The sync schedule of the data source.
|
|
327
|
+
* The sync schedule of the data source.
|
|
314
328
|
* @public
|
|
315
329
|
*/
|
|
316
|
-
syncSchedule?:
|
|
330
|
+
syncSchedule?: ScheduleConfiguration | undefined;
|
|
317
331
|
/**
|
|
318
332
|
* The unique identifier of the tenant when a service token is used.
|
|
319
333
|
* @public
|
|
@@ -387,10 +401,10 @@ export interface DataSourceItem {
|
|
|
387
401
|
type: DataSourceType;
|
|
388
402
|
config: DataSourceConfig;
|
|
389
403
|
/**
|
|
390
|
-
* The sync schedule of the data source.
|
|
404
|
+
* The sync schedule of the data source.
|
|
391
405
|
* @public
|
|
392
406
|
*/
|
|
393
|
-
syncSchedule?:
|
|
407
|
+
syncSchedule?: ScheduleConfiguration | undefined;
|
|
394
408
|
/**
|
|
395
409
|
* The ID of the data source. Example: 123e4567-e89b-12d3-a456-426614174000
|
|
396
410
|
* @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.32",
|
|
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",
|