@wildix/wim-knowledge-base-client 0.1.5 → 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.DocumentStatus = exports.DataSourceType = exports.ScheduleConfiguration = exports.DataSourceConfig = exports.KnowledgeBaseNotFoundException = exports.DocumentNotFoundException = exports.DataSourceNotFoundException = exports.ValidationException = exports.UnauthorizedException = exports.ForbiddenException = void 0;
|
|
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,6 +104,14 @@ exports.DataSourceType = {
|
|
|
104
104
|
FILES: "files",
|
|
105
105
|
GDRIVE: "gdrive",
|
|
106
106
|
};
|
|
107
|
+
exports.ConfluenceSpaceType = {
|
|
108
|
+
COLLABORATION: "collaboration",
|
|
109
|
+
GLOBAL: "global",
|
|
110
|
+
KNOWLEDGE_BASE: "knowledge_base",
|
|
111
|
+
ONBOARDING: "onboarding",
|
|
112
|
+
PERSONAL: "personal",
|
|
113
|
+
SYSTEM: "system",
|
|
114
|
+
};
|
|
107
115
|
exports.DocumentStatus = {
|
|
108
116
|
COMPLETED: "completed",
|
|
109
117
|
DRAFT: "draft",
|
|
@@ -95,6 +95,14 @@ export const DataSourceType = {
|
|
|
95
95
|
FILES: "files",
|
|
96
96
|
GDRIVE: "gdrive",
|
|
97
97
|
};
|
|
98
|
+
export const ConfluenceSpaceType = {
|
|
99
|
+
COLLABORATION: "collaboration",
|
|
100
|
+
GLOBAL: "global",
|
|
101
|
+
KNOWLEDGE_BASE: "knowledge_base",
|
|
102
|
+
ONBOARDING: "onboarding",
|
|
103
|
+
PERSONAL: "personal",
|
|
104
|
+
SYSTEM: "system",
|
|
105
|
+
};
|
|
98
106
|
export const DocumentStatus = {
|
|
99
107
|
COMPLETED: "completed",
|
|
100
108
|
DRAFT: "draft",
|
|
@@ -40,7 +40,7 @@ declare const DescribeDataSourceCommand_base: {
|
|
|
40
40
|
* parameters: { // DescribeDataSourceParameters
|
|
41
41
|
* confluence: { // DescribeDataSourceConfluenceParameters
|
|
42
42
|
* spaces: { // DescribeDataSourceConfluenceSpacesParameters
|
|
43
|
-
* type: "
|
|
43
|
+
* type: "global" || "collaboration" || "knowledge_base" || "personal" || "system" || "onboarding",
|
|
44
44
|
* },
|
|
45
45
|
* pages: { // DescribeDataSourceConfluencePagesParameters
|
|
46
46
|
* spaceId: "STRING_VALUE", // required
|
|
@@ -75,6 +75,7 @@ declare const DescribeDataSourceCommand_base: {
|
|
|
75
75
|
* // id: "STRING_VALUE", // required
|
|
76
76
|
* // name: "STRING_VALUE", // required
|
|
77
77
|
* // key: "STRING_VALUE",
|
|
78
|
+
* // type: "global" || "collaboration" || "knowledge_base" || "personal" || "system" || "onboarding", // required
|
|
78
79
|
* // },
|
|
79
80
|
* // ],
|
|
80
81
|
* // pages: [ // DescribeDataSourceConfluencePagesList
|
|
@@ -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
|
*/
|
|
@@ -749,10 +765,10 @@ export interface DescribeDataSourceConfluencePagesParameters {
|
|
|
749
765
|
*/
|
|
750
766
|
export interface DescribeDataSourceConfluenceSpacesParameters {
|
|
751
767
|
/**
|
|
752
|
-
* Filter spaces by type
|
|
768
|
+
* Filter spaces by type.
|
|
753
769
|
* @public
|
|
754
770
|
*/
|
|
755
|
-
type?:
|
|
771
|
+
type?: ConfluenceSpaceType | undefined;
|
|
756
772
|
}
|
|
757
773
|
/**
|
|
758
774
|
* @public
|
|
@@ -894,6 +910,11 @@ export interface DescribeDataSourceConfluenceSpaceResult {
|
|
|
894
910
|
* @public
|
|
895
911
|
*/
|
|
896
912
|
key?: string | undefined;
|
|
913
|
+
/**
|
|
914
|
+
* Type of the Confluence space
|
|
915
|
+
* @public
|
|
916
|
+
*/
|
|
917
|
+
type: ConfluenceSpaceType;
|
|
897
918
|
}
|
|
898
919
|
/**
|
|
899
920
|
* @public
|
|
@@ -1545,12 +1566,12 @@ export interface ListDocumentsInput {
|
|
|
1545
1566
|
*/
|
|
1546
1567
|
search?: string | undefined;
|
|
1547
1568
|
/**
|
|
1548
|
-
*
|
|
1569
|
+
* Filter documents by original ID from the source system.
|
|
1549
1570
|
* @public
|
|
1550
1571
|
*/
|
|
1551
1572
|
originalId?: string | undefined;
|
|
1552
1573
|
/**
|
|
1553
|
-
*
|
|
1574
|
+
* Filter documents by status.
|
|
1554
1575
|
* @public
|
|
1555
1576
|
*/
|
|
1556
1577
|
status?: DocumentStatus | undefined;
|
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",
|