@wildix/wim-knowledge-base-client 0.1.5 → 0.1.6

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.DescribeDataSourceConfluenceSpaceType = exports.DocumentStatus = 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";
@@ -111,6 +111,14 @@ exports.DocumentStatus = {
111
111
  PENDING: "pending",
112
112
  PROCESSING: "processing",
113
113
  };
114
+ exports.DescribeDataSourceConfluenceSpaceType = {
115
+ COLLABORATION: "collaboration",
116
+ GLOBAL: "global",
117
+ KNOWLEDGE_BASE: "knowledge_base",
118
+ ONBOARDING: "onboarding",
119
+ PERSONAL: "personal",
120
+ SYSTEM: "system",
121
+ };
114
122
  exports.SyncDataSourceMode = {
115
123
  FULL: "full",
116
124
  INCREMENTAL: "incremental",
@@ -102,6 +102,14 @@ export const DocumentStatus = {
102
102
  PENDING: "pending",
103
103
  PROCESSING: "processing",
104
104
  };
105
+ export const DescribeDataSourceConfluenceSpaceType = {
106
+ COLLABORATION: "collaboration",
107
+ GLOBAL: "global",
108
+ KNOWLEDGE_BASE: "knowledge_base",
109
+ ONBOARDING: "onboarding",
110
+ PERSONAL: "personal",
111
+ SYSTEM: "system",
112
+ };
105
113
  export const SyncDataSourceMode = {
106
114
  FULL: "full",
107
115
  INCREMENTAL: "incremental",
@@ -40,7 +40,7 @@ declare const DescribeDataSourceCommand_base: {
40
40
  * parameters: { // DescribeDataSourceParameters
41
41
  * confluence: { // DescribeDataSourceConfluenceParameters
42
42
  * spaces: { // DescribeDataSourceConfluenceSpacesParameters
43
- * type: "STRING_VALUE",
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
@@ -744,15 +744,31 @@ export interface DescribeDataSourceConfluencePagesParameters {
744
744
  */
745
745
  enabled?: (string)[] | undefined;
746
746
  }
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];
747
763
  /**
748
764
  * @public
749
765
  */
750
766
  export interface DescribeDataSourceConfluenceSpacesParameters {
751
767
  /**
752
- * Filter spaces by type: 'global' (company-wide spaces) or 'personal' (individual user spaces). Defaults to 'global'
768
+ * Filter spaces by type.
753
769
  * @public
754
770
  */
755
- type?: string | undefined;
771
+ type?: DescribeDataSourceConfluenceSpaceType | 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: DescribeDataSourceConfluenceSpaceType;
897
918
  }
898
919
  /**
899
920
  * @public
@@ -1545,12 +1566,12 @@ export interface ListDocumentsInput {
1545
1566
  */
1546
1567
  search?: string | undefined;
1547
1568
  /**
1548
- * Original ID from the source system, preserving the reference to the source document.
1569
+ * Filter documents by original ID from the source system.
1549
1570
  * @public
1550
1571
  */
1551
1572
  originalId?: string | undefined;
1552
1573
  /**
1553
- * Status of the document.
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.5",
4
+ "version": "0.1.6",
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",