@wildix/wim-knowledge-base-client 0.1.6 → 0.1.7
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.SearchThresholdValue = exports.SearchStrategy = exports.SyncLogLevel = exports.SyncDataSourceStatus = exports.SyncDataSourceMode = exports.
|
|
3
|
+
exports.SearchThresholdValue = exports.SearchStrategy = exports.SyncLogLevel = exports.SyncDataSourceStatus = exports.SyncDataSourceMode = exports.DocumentStatus = exports.ConfluenceSpaceType = 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
5
|
class ForbiddenException extends KnowledgeBaseServiceException_1.KnowledgeBaseServiceException {
|
|
6
6
|
name = "ForbiddenException";
|
|
@@ -104,14 +104,7 @@ exports.DataSourceType = {
|
|
|
104
104
|
FILES: "files",
|
|
105
105
|
GDRIVE: "gdrive",
|
|
106
106
|
};
|
|
107
|
-
exports.
|
|
108
|
-
COMPLETED: "completed",
|
|
109
|
-
DRAFT: "draft",
|
|
110
|
-
FAILED: "failed",
|
|
111
|
-
PENDING: "pending",
|
|
112
|
-
PROCESSING: "processing",
|
|
113
|
-
};
|
|
114
|
-
exports.DescribeDataSourceConfluenceSpaceType = {
|
|
107
|
+
exports.ConfluenceSpaceType = {
|
|
115
108
|
COLLABORATION: "collaboration",
|
|
116
109
|
GLOBAL: "global",
|
|
117
110
|
KNOWLEDGE_BASE: "knowledge_base",
|
|
@@ -119,6 +112,13 @@ exports.DescribeDataSourceConfluenceSpaceType = {
|
|
|
119
112
|
PERSONAL: "personal",
|
|
120
113
|
SYSTEM: "system",
|
|
121
114
|
};
|
|
115
|
+
exports.DocumentStatus = {
|
|
116
|
+
COMPLETED: "completed",
|
|
117
|
+
DRAFT: "draft",
|
|
118
|
+
FAILED: "failed",
|
|
119
|
+
PENDING: "pending",
|
|
120
|
+
PROCESSING: "processing",
|
|
121
|
+
};
|
|
122
122
|
exports.SyncDataSourceMode = {
|
|
123
123
|
FULL: "full",
|
|
124
124
|
INCREMENTAL: "incremental",
|
|
@@ -95,14 +95,7 @@ export const DataSourceType = {
|
|
|
95
95
|
FILES: "files",
|
|
96
96
|
GDRIVE: "gdrive",
|
|
97
97
|
};
|
|
98
|
-
export const
|
|
99
|
-
COMPLETED: "completed",
|
|
100
|
-
DRAFT: "draft",
|
|
101
|
-
FAILED: "failed",
|
|
102
|
-
PENDING: "pending",
|
|
103
|
-
PROCESSING: "processing",
|
|
104
|
-
};
|
|
105
|
-
export const DescribeDataSourceConfluenceSpaceType = {
|
|
98
|
+
export const ConfluenceSpaceType = {
|
|
106
99
|
COLLABORATION: "collaboration",
|
|
107
100
|
GLOBAL: "global",
|
|
108
101
|
KNOWLEDGE_BASE: "knowledge_base",
|
|
@@ -110,6 +103,13 @@ export const DescribeDataSourceConfluenceSpaceType = {
|
|
|
110
103
|
PERSONAL: "personal",
|
|
111
104
|
SYSTEM: "system",
|
|
112
105
|
};
|
|
106
|
+
export const DocumentStatus = {
|
|
107
|
+
COMPLETED: "completed",
|
|
108
|
+
DRAFT: "draft",
|
|
109
|
+
FAILED: "failed",
|
|
110
|
+
PENDING: "pending",
|
|
111
|
+
PROCESSING: "processing",
|
|
112
|
+
};
|
|
113
113
|
export const SyncDataSourceMode = {
|
|
114
114
|
FULL: "full",
|
|
115
115
|
INCREMENTAL: "incremental",
|
|
@@ -366,6 +366,22 @@ export interface DataSourceItem {
|
|
|
366
366
|
export interface ConfigureDataSourceOutput {
|
|
367
367
|
dataSource: DataSourceItem;
|
|
368
368
|
}
|
|
369
|
+
/**
|
|
370
|
+
* @public
|
|
371
|
+
* @enum
|
|
372
|
+
*/
|
|
373
|
+
export declare const ConfluenceSpaceType: {
|
|
374
|
+
readonly COLLABORATION: "collaboration";
|
|
375
|
+
readonly GLOBAL: "global";
|
|
376
|
+
readonly KNOWLEDGE_BASE: "knowledge_base";
|
|
377
|
+
readonly ONBOARDING: "onboarding";
|
|
378
|
+
readonly PERSONAL: "personal";
|
|
379
|
+
readonly SYSTEM: "system";
|
|
380
|
+
};
|
|
381
|
+
/**
|
|
382
|
+
* @public
|
|
383
|
+
*/
|
|
384
|
+
export type ConfluenceSpaceType = typeof ConfluenceSpaceType[keyof typeof ConfluenceSpaceType];
|
|
369
385
|
/**
|
|
370
386
|
* @public
|
|
371
387
|
*/
|
|
@@ -744,22 +760,6 @@ export interface DescribeDataSourceConfluencePagesParameters {
|
|
|
744
760
|
*/
|
|
745
761
|
enabled?: (string)[] | undefined;
|
|
746
762
|
}
|
|
747
|
-
/**
|
|
748
|
-
* @public
|
|
749
|
-
* @enum
|
|
750
|
-
*/
|
|
751
|
-
export declare const DescribeDataSourceConfluenceSpaceType: {
|
|
752
|
-
readonly COLLABORATION: "collaboration";
|
|
753
|
-
readonly GLOBAL: "global";
|
|
754
|
-
readonly KNOWLEDGE_BASE: "knowledge_base";
|
|
755
|
-
readonly ONBOARDING: "onboarding";
|
|
756
|
-
readonly PERSONAL: "personal";
|
|
757
|
-
readonly SYSTEM: "system";
|
|
758
|
-
};
|
|
759
|
-
/**
|
|
760
|
-
* @public
|
|
761
|
-
*/
|
|
762
|
-
export type DescribeDataSourceConfluenceSpaceType = typeof DescribeDataSourceConfluenceSpaceType[keyof typeof DescribeDataSourceConfluenceSpaceType];
|
|
763
763
|
/**
|
|
764
764
|
* @public
|
|
765
765
|
*/
|
|
@@ -768,7 +768,7 @@ export interface DescribeDataSourceConfluenceSpacesParameters {
|
|
|
768
768
|
* Filter spaces by type.
|
|
769
769
|
* @public
|
|
770
770
|
*/
|
|
771
|
-
type?:
|
|
771
|
+
type?: ConfluenceSpaceType | undefined;
|
|
772
772
|
}
|
|
773
773
|
/**
|
|
774
774
|
* @public
|
|
@@ -914,7 +914,7 @@ export interface DescribeDataSourceConfluenceSpaceResult {
|
|
|
914
914
|
* Type of the Confluence space
|
|
915
915
|
* @public
|
|
916
916
|
*/
|
|
917
|
-
type:
|
|
917
|
+
type: ConfluenceSpaceType;
|
|
918
918
|
}
|
|
919
919
|
/**
|
|
920
920
|
* @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.1.
|
|
4
|
+
"version": "0.1.7",
|
|
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",
|