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

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.DescribeDataSourceConfluenceSpaceType = 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,14 +104,7 @@ exports.DataSourceType = {
104
104
  FILES: "files",
105
105
  GDRIVE: "gdrive",
106
106
  };
107
- exports.DocumentStatus = {
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 DocumentStatus = {
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",
@@ -55,14 +55,44 @@ declare const ListHistoryStatisticsCommand_base: {
55
55
  * // totalUniqueUsers: Number("int"), // required
56
56
  * // recentUniqueUsers: Number("int"), // required
57
57
  * // noResultsRequests: Number("int"), // required
58
- * // dailyBreakdown: [ // DailyStatisticsList
59
- * // { // DailyStatistics
58
+ * // dailyBreakdown: [ // DailyGlobalStatisticsList
59
+ * // { // DailyGlobalStatistics
60
60
  * // date: "STRING_VALUE", // required
61
61
  * // requests: Number("int"), // required
62
62
  * // uniqueUsers: Number("int"), // required
63
63
  * // noResultsRequests: Number("int"), // required
64
64
  * // },
65
65
  * // ],
66
+ * // knowledgeBases: [ // KnowledgeBaseStatisticsList
67
+ * // { // KnowledgeBaseStatistics
68
+ * // knowledgeBaseId: "STRING_VALUE", // required
69
+ * // searchDailyBreakdown: [ // DailySearchStatisticsList // required
70
+ * // { // DailySearchStatistics
71
+ * // date: "STRING_VALUE", // required
72
+ * // requests: Number("int"), // required
73
+ * // },
74
+ * // ],
75
+ * // },
76
+ * // ],
77
+ * // dataSources: [ // DataSourceStatisticsList
78
+ * // { // DataSourceStatistics
79
+ * // dataSourceId: "STRING_VALUE", // required
80
+ * // searchDailyBreakdown: [ // required
81
+ * // {
82
+ * // date: "STRING_VALUE", // required
83
+ * // requests: Number("int"), // required
84
+ * // },
85
+ * // ],
86
+ * // documentsCount: Number("int"), // required
87
+ * // documentsStatistics: [ // DocumentsStatisticsList // required
88
+ * // { // DocumentsStatistics
89
+ * // status: "draft" || "pending" || "processing" || "completed" || "failed", // required
90
+ * // count: Number("int"), // required
91
+ * // },
92
+ * // ],
93
+ * // chunksCount: Number("int"), // required
94
+ * // },
95
+ * // ],
66
96
  * // },
67
97
  * // };
68
98
  *
@@ -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
  */
@@ -637,7 +653,7 @@ export interface CreateKnowledgeBaseOutput {
637
653
  /**
638
654
  * @public
639
655
  */
640
- export interface DailyStatistics {
656
+ export interface DailyGlobalStatistics {
641
657
  /**
642
658
  * Date in format yyyy-MM-dd
643
659
  * @public
@@ -659,6 +675,42 @@ export interface DailyStatistics {
659
675
  */
660
676
  noResultsRequests: number;
661
677
  }
678
+ /**
679
+ * @public
680
+ */
681
+ export interface DailySearchStatistics {
682
+ /**
683
+ * Date in format yyyy-MM-dd
684
+ * @public
685
+ */
686
+ date: string;
687
+ /**
688
+ * Number of search requests
689
+ * @public
690
+ */
691
+ requests: number;
692
+ }
693
+ /**
694
+ * @public
695
+ */
696
+ export interface DocumentsStatistics {
697
+ status: DocumentStatus;
698
+ count: number;
699
+ }
700
+ /**
701
+ * @public
702
+ */
703
+ export interface DataSourceStatistics {
704
+ /**
705
+ * Unique identifier of the data source
706
+ * @public
707
+ */
708
+ dataSourceId: string;
709
+ searchDailyBreakdown: (DailySearchStatistics)[];
710
+ documentsCount: number;
711
+ documentsStatistics: (DocumentsStatistics)[];
712
+ chunksCount: number;
713
+ }
662
714
  /**
663
715
  * @public
664
716
  */
@@ -744,22 +796,6 @@ export interface DescribeDataSourceConfluencePagesParameters {
744
796
  */
745
797
  enabled?: (string)[] | undefined;
746
798
  }
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
799
  /**
764
800
  * @public
765
801
  */
@@ -768,7 +804,7 @@ export interface DescribeDataSourceConfluenceSpacesParameters {
768
804
  * Filter spaces by type.
769
805
  * @public
770
806
  */
771
- type?: DescribeDataSourceConfluenceSpaceType | undefined;
807
+ type?: ConfluenceSpaceType | undefined;
772
808
  }
773
809
  /**
774
810
  * @public
@@ -914,7 +950,7 @@ export interface DescribeDataSourceConfluenceSpaceResult {
914
950
  * Type of the Confluence space
915
951
  * @public
916
952
  */
917
- type: DescribeDataSourceConfluenceSpaceType;
953
+ type: ConfluenceSpaceType;
918
954
  }
919
955
  /**
920
956
  * @public
@@ -1365,6 +1401,17 @@ export interface GetKnowledgeBaseInput {
1365
1401
  export interface GetKnowledgeBaseOutput {
1366
1402
  knowledgeBase: KnowledgeBaseItem;
1367
1403
  }
1404
+ /**
1405
+ * @public
1406
+ */
1407
+ export interface KnowledgeBaseStatistics {
1408
+ /**
1409
+ * Unique identifier of the knowledge base
1410
+ * @public
1411
+ */
1412
+ knowledgeBaseId: string;
1413
+ searchDailyBreakdown: (DailySearchStatistics)[];
1414
+ }
1368
1415
  /**
1369
1416
  * @public
1370
1417
  */
@@ -1398,7 +1445,17 @@ export interface HistoryStatistics {
1398
1445
  * Daily breakdown of statistics for the last N days. Only present if daysBack is specified.
1399
1446
  * @public
1400
1447
  */
1401
- dailyBreakdown?: (DailyStatistics)[] | undefined;
1448
+ dailyBreakdown?: (DailyGlobalStatistics)[] | undefined;
1449
+ /**
1450
+ * Statistics for each knowledge base
1451
+ * @public
1452
+ */
1453
+ knowledgeBases?: (KnowledgeBaseStatistics)[] | undefined;
1454
+ /**
1455
+ * Statistics for each data source
1456
+ * @public
1457
+ */
1458
+ dataSources?: (DataSourceStatistics)[] | undefined;
1402
1459
  }
1403
1460
  /**
1404
1461
  * @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.6",
4
+ "version": "0.1.8",
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",