@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.
@@ -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: "STRING_VALUE",
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: "STRING_VALUE",
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: "STRING_VALUE",
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: "STRING_VALUE",
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: "STRING_VALUE",
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: "STRING_VALUE",
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. Example: 0 *\/6 * * * (every 6 hours)
328
+ * The sync schedule of the data source.
314
329
  * @public
315
330
  */
316
- syncSchedule?: string | undefined;
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. Example: 0 *\/6 * * * (every 6 hours)
405
+ * The sync schedule of the data source.
391
406
  * @public
392
407
  */
393
- syncSchedule?: string | undefined;
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.31",
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",