@wildix/wim-knowledge-base-client 0.0.31 → 0.0.33
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 +8 -1
- package/dist-es/models/models_0.js +7 -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 +19 -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,13 @@ var DataSourceConfig;
|
|
|
98
98
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
99
99
|
};
|
|
100
100
|
})(DataSourceConfig || (exports.DataSourceConfig = DataSourceConfig = {}));
|
|
101
|
+
exports.ScheduleConfiguration = {
|
|
102
|
+
DISABLED: "DISABLED",
|
|
103
|
+
EVERY_DAY: "EVERY_DAY",
|
|
104
|
+
EVERY_SIX_HOURS: "EVERY_SIX_HOURS",
|
|
105
|
+
EVERY_TWELVE_HOURS: "EVERY_TWELVE_HOURS",
|
|
106
|
+
EVERY_WEEK: "EVERY_WEEK",
|
|
107
|
+
};
|
|
101
108
|
exports.SyncDataSourceMode = {
|
|
102
109
|
FULL: "full",
|
|
103
110
|
INCREMENTAL: "incremental",
|
|
@@ -89,6 +89,13 @@ export var DataSourceConfig;
|
|
|
89
89
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
90
90
|
};
|
|
91
91
|
})(DataSourceConfig || (DataSourceConfig = {}));
|
|
92
|
+
export const ScheduleConfiguration = {
|
|
93
|
+
DISABLED: "DISABLED",
|
|
94
|
+
EVERY_DAY: "EVERY_DAY",
|
|
95
|
+
EVERY_SIX_HOURS: "EVERY_SIX_HOURS",
|
|
96
|
+
EVERY_TWELVE_HOURS: "EVERY_TWELVE_HOURS",
|
|
97
|
+
EVERY_WEEK: "EVERY_WEEK",
|
|
98
|
+
};
|
|
92
99
|
export const SyncDataSourceMode = {
|
|
93
100
|
FULL: "full",
|
|
94
101
|
INCREMENTAL: "incremental",
|
|
@@ -82,7 +82,7 @@ declare const ConfigureDataSourceCommand_base: {
|
|
|
82
82
|
* ],
|
|
83
83
|
* },
|
|
84
84
|
* },
|
|
85
|
-
* syncSchedule: "
|
|
85
|
+
* syncSchedule: "DISABLED" || "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: "DISABLED" || "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: "DISABLED" || "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: "DISABLED" || "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: "DISABLED" || "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: "DISABLED" || "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,31 @@ 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 DISABLED: "DISABLED";
|
|
313
|
+
readonly EVERY_DAY: "EVERY_DAY";
|
|
314
|
+
readonly EVERY_SIX_HOURS: "EVERY_SIX_HOURS";
|
|
315
|
+
readonly EVERY_TWELVE_HOURS: "EVERY_TWELVE_HOURS";
|
|
316
|
+
readonly EVERY_WEEK: "EVERY_WEEK";
|
|
317
|
+
};
|
|
318
|
+
/**
|
|
319
|
+
* @public
|
|
320
|
+
*/
|
|
321
|
+
export type ScheduleConfiguration = typeof ScheduleConfiguration[keyof typeof ScheduleConfiguration];
|
|
307
322
|
/**
|
|
308
323
|
* @public
|
|
309
324
|
*/
|
|
310
325
|
export interface ConfigureDataSourceInput {
|
|
311
326
|
config: DataSourceConfig;
|
|
312
327
|
/**
|
|
313
|
-
* The sync schedule of the data source.
|
|
328
|
+
* The sync schedule of the data source.
|
|
314
329
|
* @public
|
|
315
330
|
*/
|
|
316
|
-
syncSchedule?:
|
|
331
|
+
syncSchedule?: ScheduleConfiguration | undefined;
|
|
317
332
|
/**
|
|
318
333
|
* The unique identifier of the tenant when a service token is used.
|
|
319
334
|
* @public
|
|
@@ -387,10 +402,10 @@ export interface DataSourceItem {
|
|
|
387
402
|
type: DataSourceType;
|
|
388
403
|
config: DataSourceConfig;
|
|
389
404
|
/**
|
|
390
|
-
* The sync schedule of the data source.
|
|
405
|
+
* The sync schedule of the data source.
|
|
391
406
|
* @public
|
|
392
407
|
*/
|
|
393
|
-
syncSchedule?:
|
|
408
|
+
syncSchedule?: ScheduleConfiguration | undefined;
|
|
394
409
|
/**
|
|
395
410
|
* The ID of the data source. Example: 123e4567-e89b-12d3-a456-426614174000
|
|
396
411
|
* @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.33",
|
|
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",
|