@wildix/wim-knowledge-base-client 0.1.7 → 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.
@@ -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
  *
@@ -653,7 +653,7 @@ export interface CreateKnowledgeBaseOutput {
653
653
  /**
654
654
  * @public
655
655
  */
656
- export interface DailyStatistics {
656
+ export interface DailyGlobalStatistics {
657
657
  /**
658
658
  * Date in format yyyy-MM-dd
659
659
  * @public
@@ -675,6 +675,42 @@ export interface DailyStatistics {
675
675
  */
676
676
  noResultsRequests: number;
677
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
+ }
678
714
  /**
679
715
  * @public
680
716
  */
@@ -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.7",
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",