@wildix/wim-knowledge-base-client 0.1.1 → 0.1.2

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.
@@ -974,6 +974,7 @@ const de_ListDataSourceSynchronizationLogsCommand = async (output, context) => {
974
974
  const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
975
975
  const doc = (0, smithy_client_1.take)(data, {
976
976
  'logs': smithy_client_1._json,
977
+ 'metadata': smithy_client_1._json,
977
978
  });
978
979
  Object.assign(contents, doc);
979
980
  return contents;
@@ -989,6 +990,7 @@ const de_ListDocumentsCommand = async (output, context) => {
989
990
  const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
990
991
  const doc = (0, smithy_client_1.take)(data, {
991
992
  'documents': smithy_client_1._json,
993
+ 'metadata': smithy_client_1._json,
992
994
  });
993
995
  Object.assign(contents, doc);
994
996
  return contents;
@@ -1034,6 +1036,7 @@ const de_ListSearchQueriesHistoryCommand = async (output, context) => {
1034
1036
  const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1035
1037
  const doc = (0, smithy_client_1.take)(data, {
1036
1038
  'history': _ => de_SearchHistoryList(_, context),
1039
+ 'metadata': smithy_client_1._json,
1037
1040
  });
1038
1041
  Object.assign(contents, doc);
1039
1042
  return contents;
@@ -915,6 +915,7 @@ export const de_ListDataSourceSynchronizationLogsCommand = async (output, contex
915
915
  const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
916
916
  const doc = take(data, {
917
917
  'logs': _json,
918
+ 'metadata': _json,
918
919
  });
919
920
  Object.assign(contents, doc);
920
921
  return contents;
@@ -929,6 +930,7 @@ export const de_ListDocumentsCommand = async (output, context) => {
929
930
  const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
930
931
  const doc = take(data, {
931
932
  'documents': _json,
933
+ 'metadata': _json,
932
934
  });
933
935
  Object.assign(contents, doc);
934
936
  return contents;
@@ -971,6 +973,7 @@ export const de_ListSearchQueriesHistoryCommand = async (output, context) => {
971
973
  const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
972
974
  const doc = take(data, {
973
975
  'history': _ => de_SearchHistoryList(_, context),
976
+ 'metadata': _json,
974
977
  });
975
978
  Object.assign(contents, doc);
976
979
  return contents;
@@ -53,6 +53,11 @@ declare const ListDataSourceSynchronizationLogsCommand_base: {
53
53
  * // message: "STRING_VALUE", // required
54
54
  * // },
55
55
  * // ],
56
+ * // metadata: { // PaginationMetadata
57
+ * // total: Number("int"), // required
58
+ * // limit: Number("int"),
59
+ * // offset: Number("int"),
60
+ * // },
56
61
  * // };
57
62
  *
58
63
  * ```
@@ -65,6 +65,11 @@ declare const ListDocumentsCommand_base: {
65
65
  * // errorMessage: "STRING_VALUE",
66
66
  * // },
67
67
  * // ],
68
+ * // metadata: { // PaginationMetadata
69
+ * // total: Number("int"), // required
70
+ * // limit: Number("int"),
71
+ * // offset: Number("int"),
72
+ * // },
68
73
  * // };
69
74
  *
70
75
  * ```
@@ -122,6 +122,11 @@ declare const ListSearchQueriesHistoryCommand_base: {
122
122
  * // resultsCount: Number("int"), // required
123
123
  * // },
124
124
  * // ],
125
+ * // metadata: { // PaginationMetadata
126
+ * // total: Number("int"), // required
127
+ * // limit: Number("int"),
128
+ * // offset: Number("int"),
129
+ * // },
125
130
  * // };
126
131
  *
127
132
  * ```
@@ -1481,11 +1481,32 @@ export interface SyncLogItem {
1481
1481
  level: SyncLogLevel;
1482
1482
  message: string;
1483
1483
  }
1484
+ /**
1485
+ * @public
1486
+ */
1487
+ export interface PaginationMetadata {
1488
+ /**
1489
+ * The total number of results.
1490
+ * @public
1491
+ */
1492
+ total: number;
1493
+ /**
1494
+ * The number of results per page.
1495
+ * @public
1496
+ */
1497
+ limit?: number | undefined;
1498
+ /**
1499
+ * The offset from which to start the results.
1500
+ * @public
1501
+ */
1502
+ offset?: number | undefined;
1503
+ }
1484
1504
  /**
1485
1505
  * @public
1486
1506
  */
1487
1507
  export interface ListDataSourceSynchronizationLogsOutput {
1488
1508
  logs: (SyncLogItem)[];
1509
+ metadata: PaginationMetadata;
1489
1510
  }
1490
1511
  /**
1491
1512
  * @public
@@ -1519,6 +1540,7 @@ export interface ListDocumentsInput {
1519
1540
  */
1520
1541
  export interface ListDocumentsOutput {
1521
1542
  documents: (DocumentItem)[];
1543
+ metadata: PaginationMetadata;
1522
1544
  }
1523
1545
  /**
1524
1546
  * @public
@@ -1768,6 +1790,7 @@ export interface SearchHistoryItem {
1768
1790
  */
1769
1791
  export interface ListSearchQueriesHistoryOutput {
1770
1792
  history: (SearchHistoryItem)[];
1793
+ metadata: PaginationMetadata;
1771
1794
  }
1772
1795
  /**
1773
1796
  * @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.1",
4
+ "version": "0.1.2",
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",