@wildix/wim-knowledge-base-client 0.0.17 → 0.0.18

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.
@@ -206,7 +206,8 @@ const se_GetDocumentCommand = async (input, context) => {
206
206
  b.p('documentId', () => input.documentId, '{documentId}', false);
207
207
  const query = (0, smithy_client_1.map)({
208
208
  [_c]: [, input[_cI]],
209
- [_wC]: [() => input.withChunks !== void 0, () => (input[_wC].toString())],
209
+ [_wC]: [() => input.withContent !== void 0, () => (input[_wC].toString())],
210
+ [_wCi]: [() => input.withChunks !== void 0, () => (input[_wCi].toString())],
210
211
  });
211
212
  let body;
212
213
  b.m("GET")
@@ -645,6 +646,7 @@ const de_GetDocumentCommand = async (output, context) => {
645
646
  const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
646
647
  const doc = (0, smithy_client_1.take)(data, {
647
648
  'chunks': smithy_client_1._json,
649
+ 'content': smithy_client_1.expectString,
648
650
  'document': smithy_client_1._json,
649
651
  });
650
652
  Object.assign(contents, doc);
@@ -1121,4 +1123,5 @@ const _l = "limit";
1121
1123
  const _o = "offset";
1122
1124
  const _q = "query";
1123
1125
  const _sT = "syncType";
1124
- const _wC = "withChunks";
1126
+ const _wC = "withContent";
1127
+ const _wCi = "withChunks";
@@ -192,7 +192,8 @@ export const se_GetDocumentCommand = async (input, context) => {
192
192
  b.p('documentId', () => input.documentId, '{documentId}', false);
193
193
  const query = map({
194
194
  [_c]: [, input[_cI]],
195
- [_wC]: [() => input.withChunks !== void 0, () => (input[_wC].toString())],
195
+ [_wC]: [() => input.withContent !== void 0, () => (input[_wC].toString())],
196
+ [_wCi]: [() => input.withChunks !== void 0, () => (input[_wCi].toString())],
196
197
  });
197
198
  let body;
198
199
  b.m("GET")
@@ -605,6 +606,7 @@ export const de_GetDocumentCommand = async (output, context) => {
605
606
  const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
606
607
  const doc = take(data, {
607
608
  'chunks': _json,
609
+ 'content': __expectString,
608
610
  'document': _json,
609
611
  });
610
612
  Object.assign(contents, doc);
@@ -1065,4 +1067,5 @@ const _l = "limit";
1065
1067
  const _o = "offset";
1066
1068
  const _q = "query";
1067
1069
  const _sT = "syncType";
1068
- const _wC = "withChunks";
1070
+ const _wC = "withContent";
1071
+ const _wCi = "withChunks";
@@ -38,6 +38,7 @@ declare const GetDocumentCommand_base: {
38
38
  * companyId: "STRING_VALUE",
39
39
  * dataSourceId: "STRING_VALUE", // required
40
40
  * documentId: "STRING_VALUE", // required
41
+ * withContent: true || false,
41
42
  * withChunks: true || false,
42
43
  * };
43
44
  * const command = new GetDocumentCommand(input);
@@ -60,6 +61,7 @@ declare const GetDocumentCommand_base: {
60
61
  * // status: "draft" || "pending" || "processing" || "completed" || "failed", // required
61
62
  * // errorMessage: "STRING_VALUE",
62
63
  * // },
64
+ * // content: "STRING_VALUE",
63
65
  * // chunks: [ // ChunksList
64
66
  * // { // ChunkItem
65
67
  * // id: "STRING_VALUE", // required
@@ -750,6 +750,15 @@ export interface GetDocumentInput {
750
750
  * @public
751
751
  */
752
752
  documentId: string;
753
+ /**
754
+ * Whether to include the content of the document
755
+ * @public
756
+ */
757
+ withContent?: boolean | undefined;
758
+ /**
759
+ * Whether to include the chunks of the document
760
+ * @public
761
+ */
753
762
  withChunks?: boolean | undefined;
754
763
  }
755
764
  /**
@@ -757,6 +766,7 @@ export interface GetDocumentInput {
757
766
  */
758
767
  export interface GetDocumentOutput {
759
768
  document: DocumentItem;
769
+ content?: string | undefined;
760
770
  chunks?: (ChunkItem)[] | undefined;
761
771
  }
762
772
  /**
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.0.17",
4
+ "version": "0.0.18",
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",