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

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";
@@ -62,6 +62,8 @@ declare const CreateDocumentCommand_base: {
62
62
  * // createdAt: "STRING_VALUE", // required
63
63
  * // updatedAt: "STRING_VALUE", // required
64
64
  * // status: "draft" || "pending" || "processing" || "completed" || "failed", // required
65
+ * // chunksCount: Number("int"),
66
+ * // processingDuration: Number("int"),
65
67
  * // errorMessage: "STRING_VALUE",
66
68
  * // },
67
69
  * // };
@@ -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);
@@ -58,8 +59,11 @@ declare const GetDocumentCommand_base: {
58
59
  * // createdAt: "STRING_VALUE", // required
59
60
  * // updatedAt: "STRING_VALUE", // required
60
61
  * // status: "draft" || "pending" || "processing" || "completed" || "failed", // required
62
+ * // chunksCount: Number("int"),
63
+ * // processingDuration: Number("int"),
61
64
  * // errorMessage: "STRING_VALUE",
62
65
  * // },
66
+ * // content: "STRING_VALUE",
63
67
  * // chunks: [ // ChunksList
64
68
  * // { // ChunkItem
65
69
  * // id: "STRING_VALUE", // required
@@ -57,6 +57,8 @@ declare const ListDocumentsCommand_base: {
57
57
  * // createdAt: "STRING_VALUE", // required
58
58
  * // updatedAt: "STRING_VALUE", // required
59
59
  * // status: "draft" || "pending" || "processing" || "completed" || "failed", // required
60
+ * // chunksCount: Number("int"),
61
+ * // processingDuration: Number("int"),
60
62
  * // errorMessage: "STRING_VALUE",
61
63
  * // },
62
64
  * // ],
@@ -63,6 +63,8 @@ declare const UpdateDocumentCommand_base: {
63
63
  * // createdAt: "STRING_VALUE", // required
64
64
  * // updatedAt: "STRING_VALUE", // required
65
65
  * // status: "draft" || "pending" || "processing" || "completed" || "failed", // required
66
+ * // chunksCount: Number("int"),
67
+ * // processingDuration: Number("int"),
66
68
  * // errorMessage: "STRING_VALUE",
67
69
  * // },
68
70
  * // };
@@ -552,6 +552,8 @@ export interface DocumentItem {
552
552
  createdAt: string;
553
553
  updatedAt: string;
554
554
  status: DocumentStatus;
555
+ chunksCount?: number | undefined;
556
+ processingDuration?: number | undefined;
555
557
  errorMessage?: string | undefined;
556
558
  }
557
559
  /**
@@ -750,6 +752,15 @@ export interface GetDocumentInput {
750
752
  * @public
751
753
  */
752
754
  documentId: string;
755
+ /**
756
+ * Whether to include the content of the document
757
+ * @public
758
+ */
759
+ withContent?: boolean | undefined;
760
+ /**
761
+ * Whether to include the chunks of the document
762
+ * @public
763
+ */
753
764
  withChunks?: boolean | undefined;
754
765
  }
755
766
  /**
@@ -757,6 +768,7 @@ export interface GetDocumentInput {
757
768
  */
758
769
  export interface GetDocumentOutput {
759
770
  document: DocumentItem;
771
+ content?: string | undefined;
760
772
  chunks?: (ChunkItem)[] | undefined;
761
773
  }
762
774
  /**
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.19",
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",