@emilgroup/document-sdk-node 1.22.0 → 1.22.1-beta.1
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.
- package/.openapi-generator/FILES +0 -38
- package/README.md +2 -2
- package/api/default-api.ts +8 -4
- package/api/document-templates-api.ts +79 -75
- package/api/documents-api.ts +18 -30
- package/api/docx-templates-api.ts +16 -28
- package/api/layouts-api.ts +18 -28
- package/api/product-documents-api.ts +19 -226
- package/api/search-keywords-api.ts +2 -4
- package/api/searchable-document-owners-api.ts +2 -4
- package/api/searchable-documents-api.ts +20 -20
- package/dist/api/default-api.d.ts +8 -4
- package/dist/api/default-api.js +8 -4
- package/dist/api/document-templates-api.d.ts +62 -67
- package/dist/api/document-templates-api.js +55 -42
- package/dist/api/documents-api.d.ts +25 -31
- package/dist/api/documents-api.js +4 -4
- package/dist/api/docx-templates-api.d.ts +22 -28
- package/dist/api/docx-templates-api.js +4 -4
- package/dist/api/layouts-api.d.ts +23 -28
- package/dist/api/layouts-api.js +8 -8
- package/dist/api/product-documents-api.d.ts +19 -141
- package/dist/api/product-documents-api.js +9 -143
- package/dist/api/search-keywords-api.d.ts +3 -4
- package/dist/api/searchable-document-owners-api.d.ts +3 -4
- package/dist/api/searchable-documents-api.d.ts +16 -17
- package/dist/api/searchable-documents-api.js +15 -13
- package/dist/models/create-doc-template-request-dto.d.ts +2 -2
- package/dist/models/create-document-request-dto.d.ts +10 -10
- package/dist/models/create-presigned-post-request-dto.d.ts +4 -4
- package/dist/models/index.d.ts +0 -38
- package/dist/models/index.js +0 -38
- package/dist/models/list-searchable-document-owners-request-dto.d.ts +1 -8
- package/dist/models/list-searchable-document-owners-request-dto.js +0 -7
- package/dist/models/list-searchable-documents-request-dto.d.ts +1 -8
- package/dist/models/list-searchable-documents-request-dto.js +0 -7
- package/dist/models/update-doc-template-request-dto.d.ts +2 -2
- package/dist/models/update-document-request-dto.d.ts +5 -5
- package/dist/models/upload-docx-template-request-dto.d.ts +1 -1
- package/dist/models/upload-product-document-request-dto.d.ts +2 -2
- package/models/create-doc-template-request-dto.ts +2 -2
- package/models/create-document-request-dto.ts +10 -10
- package/models/create-presigned-post-request-dto.ts +4 -4
- package/models/index.ts +0 -38
- package/models/list-searchable-document-owners-request-dto.ts +1 -11
- package/models/list-searchable-documents-request-dto.ts +1 -11
- package/models/update-doc-template-request-dto.ts +2 -2
- package/models/update-document-request-dto.ts +5 -5
- package/models/upload-docx-template-request-dto.ts +1 -1
- package/models/upload-product-document-request-dto.ts +2 -2
- package/package.json +1 -1
- package/dist/models/create-doc-template-response-class.d.ts +0 -25
- package/dist/models/create-doc-template-response-class.js +0 -15
- package/dist/models/create-document-sync-response-class.d.ts +0 -25
- package/dist/models/create-document-sync-response-class.js +0 -15
- package/dist/models/create-layout-response-class.d.ts +0 -25
- package/dist/models/create-layout-response-class.js +0 -15
- package/dist/models/create-presigned-post-response-class.d.ts +0 -30
- package/dist/models/create-presigned-post-response-class.js +0 -15
- package/dist/models/delete-response-class.d.ts +0 -24
- package/dist/models/delete-response-class.js +0 -15
- package/dist/models/doc-template-class.d.ts +0 -92
- package/dist/models/doc-template-class.js +0 -15
- package/dist/models/document-class.d.ts +0 -165
- package/dist/models/document-class.js +0 -53
- package/dist/models/docx-template-class.d.ts +0 -90
- package/dist/models/docx-template-class.js +0 -15
- package/dist/models/download-document-request-dto.d.ts +0 -30
- package/dist/models/download-document-request-dto.js +0 -15
- package/dist/models/get-doc-template-request-dto.d.ts +0 -30
- package/dist/models/get-doc-template-request-dto.js +0 -15
- package/dist/models/get-doc-template-response-class.d.ts +0 -25
- package/dist/models/get-doc-template-response-class.js +0 -15
- package/dist/models/get-document-download-url-response-class.d.ts +0 -24
- package/dist/models/get-document-download-url-response-class.js +0 -15
- package/dist/models/get-docx-template-download-url-response-class.d.ts +0 -24
- package/dist/models/get-docx-template-download-url-response-class.js +0 -15
- package/dist/models/get-docx-template-response-class.d.ts +0 -25
- package/dist/models/get-docx-template-response-class.js +0 -15
- package/dist/models/get-layout-response-class.d.ts +0 -25
- package/dist/models/get-layout-response-class.js +0 -15
- package/dist/models/get-product-document-download-url-response-class.d.ts +0 -24
- package/dist/models/get-product-document-download-url-response-class.js +0 -15
- package/dist/models/get-product-document-response-class.d.ts +0 -25
- package/dist/models/get-product-document-response-class.js +0 -15
- package/dist/models/get-signed-s3-key-url-response-class.d.ts +0 -24
- package/dist/models/get-signed-s3-key-url-response-class.js +0 -15
- package/dist/models/grpc-create-doc-template-request-dto.d.ts +0 -55
- package/dist/models/grpc-create-doc-template-request-dto.js +0 -15
- package/dist/models/grpc-update-doc-template-request-dto.d.ts +0 -61
- package/dist/models/grpc-update-doc-template-request-dto.js +0 -15
- package/dist/models/html-template-class.d.ts +0 -66
- package/dist/models/html-template-class.js +0 -21
- package/dist/models/layout-class.d.ts +0 -79
- package/dist/models/layout-class.js +0 -15
- package/dist/models/list-doc-template-request-dto.d.ts +0 -54
- package/dist/models/list-doc-template-request-dto.js +0 -15
- package/dist/models/list-doc-templates-response-class.d.ts +0 -31
- package/dist/models/list-doc-templates-response-class.js +0 -15
- package/dist/models/list-documents-response-class.d.ts +0 -31
- package/dist/models/list-documents-response-class.js +0 -15
- package/dist/models/list-docx-templates-response-class.d.ts +0 -31
- package/dist/models/list-docx-templates-response-class.js +0 -15
- package/dist/models/list-layouts-response-class.d.ts +0 -31
- package/dist/models/list-layouts-response-class.js +0 -15
- package/dist/models/list-product-documents-response-class.d.ts +0 -31
- package/dist/models/list-product-documents-response-class.js +0 -15
- package/dist/models/list-search-keywords-response-class.d.ts +0 -24
- package/dist/models/list-search-keywords-response-class.js +0 -15
- package/dist/models/list-searchable-document-owners-response-class.d.ts +0 -25
- package/dist/models/list-searchable-document-owners-response-class.js +0 -15
- package/dist/models/list-searchable-documents-response-class.d.ts +0 -31
- package/dist/models/list-searchable-documents-response-class.js +0 -15
- package/dist/models/product-document-class.d.ts +0 -117
- package/dist/models/product-document-class.js +0 -24
- package/dist/models/searchable-document-class.d.ts +0 -66
- package/dist/models/searchable-document-class.js +0 -15
- package/dist/models/searchable-document-owner-class.d.ts +0 -30
- package/dist/models/searchable-document-owner-class.js +0 -15
- package/dist/models/update-doc-template-response-class.d.ts +0 -25
- package/dist/models/update-doc-template-response-class.js +0 -15
- package/dist/models/update-document-response-class.d.ts +0 -25
- package/dist/models/update-document-response-class.js +0 -15
- package/dist/models/update-docx-template-response-class.d.ts +0 -25
- package/dist/models/update-docx-template-response-class.js +0 -15
- package/dist/models/update-layout-response-class.d.ts +0 -25
- package/dist/models/update-layout-response-class.js +0 -15
- package/models/create-doc-template-response-class.ts +0 -31
- package/models/create-document-sync-response-class.ts +0 -31
- package/models/create-layout-response-class.ts +0 -31
- package/models/create-presigned-post-response-class.ts +0 -36
- package/models/delete-response-class.ts +0 -30
- package/models/doc-template-class.ts +0 -98
- package/models/document-class.ts +0 -175
- package/models/docx-template-class.ts +0 -96
- package/models/download-document-request-dto.ts +0 -36
- package/models/get-doc-template-request-dto.ts +0 -36
- package/models/get-doc-template-response-class.ts +0 -31
- package/models/get-document-download-url-response-class.ts +0 -30
- package/models/get-docx-template-download-url-response-class.ts +0 -30
- package/models/get-docx-template-response-class.ts +0 -31
- package/models/get-layout-response-class.ts +0 -31
- package/models/get-product-document-download-url-response-class.ts +0 -30
- package/models/get-product-document-response-class.ts +0 -31
- package/models/get-signed-s3-key-url-response-class.ts +0 -30
- package/models/grpc-create-doc-template-request-dto.ts +0 -61
- package/models/grpc-update-doc-template-request-dto.ts +0 -67
- package/models/html-template-class.ts +0 -75
- package/models/layout-class.ts +0 -85
- package/models/list-doc-template-request-dto.ts +0 -60
- package/models/list-doc-templates-response-class.ts +0 -37
- package/models/list-documents-response-class.ts +0 -37
- package/models/list-docx-templates-response-class.ts +0 -37
- package/models/list-layouts-response-class.ts +0 -37
- package/models/list-product-documents-response-class.ts +0 -37
- package/models/list-search-keywords-response-class.ts +0 -30
- package/models/list-searchable-document-owners-response-class.ts +0 -31
- package/models/list-searchable-documents-response-class.ts +0 -37
- package/models/product-document-class.ts +0 -126
- package/models/searchable-document-class.ts +0 -72
- package/models/searchable-document-owner-class.ts +0 -36
- package/models/update-doc-template-response-class.ts +0 -31
- package/models/update-document-response-class.ts +0 -31
- package/models/update-docx-template-response-class.ts +0 -31
- package/models/update-layout-response-class.ts +0 -31
|
@@ -21,14 +21,6 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
23
|
// @ts-ignore
|
|
24
|
-
import { CreatePresignedPostResponseClass } from '../models';
|
|
25
|
-
// @ts-ignore
|
|
26
|
-
import { GetProductDocumentDownloadUrlResponseClass } from '../models';
|
|
27
|
-
// @ts-ignore
|
|
28
|
-
import { GetProductDocumentResponseClass } from '../models';
|
|
29
|
-
// @ts-ignore
|
|
30
|
-
import { ListProductDocumentsResponseClass } from '../models';
|
|
31
|
-
// @ts-ignore
|
|
32
24
|
import { UploadProductDocumentRequestDto } from '../models';
|
|
33
25
|
// URLSearchParams not necessarily used
|
|
34
26
|
// @ts-ignore
|
|
@@ -54,7 +46,7 @@ export const ProductDocumentsApiAxiosParamCreator = function (configuration?: Co
|
|
|
54
46
|
assertParamExists('deleteProductDocument', 'code', code)
|
|
55
47
|
// verify required parameter 'productSlug' is not null or undefined
|
|
56
48
|
assertParamExists('deleteProductDocument', 'productSlug', productSlug)
|
|
57
|
-
const localVarPath = `/documentservice/v1/documents/
|
|
49
|
+
const localVarPath = `/documentservice/v1/product-documents/{productSlug}/{code}`
|
|
58
50
|
.replace(`{${"code"}}`, encodeURIComponent(String(code)))
|
|
59
51
|
.replace(`{${"productSlug"}}`, encodeURIComponent(String(productSlug)));
|
|
60
52
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -103,7 +95,7 @@ export const ProductDocumentsApiAxiosParamCreator = function (configuration?: Co
|
|
|
103
95
|
assertParamExists('downloadProductDocument', 'productSlug', productSlug)
|
|
104
96
|
// verify required parameter 'code' is not null or undefined
|
|
105
97
|
assertParamExists('downloadProductDocument', 'code', code)
|
|
106
|
-
const localVarPath = `/documentservice/v1/documents/
|
|
98
|
+
const localVarPath = `/documentservice/v1/product-documents/{productSlug}/{code}/download-url`
|
|
107
99
|
.replace(`{${"productSlug"}}`, encodeURIComponent(String(productSlug)))
|
|
108
100
|
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
109
101
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -152,7 +144,7 @@ export const ProductDocumentsApiAxiosParamCreator = function (configuration?: Co
|
|
|
152
144
|
assertParamExists('getProductDocument', 'productSlug', productSlug)
|
|
153
145
|
// verify required parameter 'code' is not null or undefined
|
|
154
146
|
assertParamExists('getProductDocument', 'code', code)
|
|
155
|
-
const localVarPath = `/documentservice/v1/documents/
|
|
147
|
+
const localVarPath = `/documentservice/v1/product-documents/{productSlug}/{code}`
|
|
156
148
|
.replace(`{${"productSlug"}}`, encodeURIComponent(String(productSlug)))
|
|
157
149
|
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
158
150
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -188,7 +180,7 @@ export const ProductDocumentsApiAxiosParamCreator = function (configuration?: Co
|
|
|
188
180
|
};
|
|
189
181
|
},
|
|
190
182
|
/**
|
|
191
|
-
* Returns a list of product documents you have previously created.
|
|
183
|
+
* Returns a list of product documents you have previously created. The product documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
192
184
|
* @summary List product documents
|
|
193
185
|
* @param {string} productSlug
|
|
194
186
|
* @param {string} [authorization] Bearer Token
|
|
@@ -205,87 +197,7 @@ export const ProductDocumentsApiAxiosParamCreator = function (configuration?: Co
|
|
|
205
197
|
listProductDocuments: async (productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
206
198
|
// verify required parameter 'productSlug' is not null or undefined
|
|
207
199
|
assertParamExists('listProductDocuments', 'productSlug', productSlug)
|
|
208
|
-
const localVarPath = `/documentservice/v1/documents/
|
|
209
|
-
.replace(`{${"productSlug"}}`, encodeURIComponent(String(productSlug)));
|
|
210
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
211
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
212
|
-
let baseOptions;
|
|
213
|
-
let baseAccessToken;
|
|
214
|
-
if (configuration) {
|
|
215
|
-
baseOptions = configuration.baseOptions;
|
|
216
|
-
baseAccessToken = configuration.accessToken;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
220
|
-
const localVarHeaderParameter = {} as any;
|
|
221
|
-
const localVarQueryParameter = {} as any;
|
|
222
|
-
|
|
223
|
-
// authentication bearer required
|
|
224
|
-
// http bearer authentication required
|
|
225
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
226
|
-
|
|
227
|
-
if (pageSize !== undefined) {
|
|
228
|
-
localVarQueryParameter['pageSize'] = pageSize;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
if (pageToken !== undefined) {
|
|
232
|
-
localVarQueryParameter['pageToken'] = pageToken;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
if (filter !== undefined) {
|
|
236
|
-
localVarQueryParameter['filter'] = filter;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
if (search !== undefined) {
|
|
240
|
-
localVarQueryParameter['search'] = search;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
if (order !== undefined) {
|
|
244
|
-
localVarQueryParameter['order'] = order;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
if (expand !== undefined) {
|
|
248
|
-
localVarQueryParameter['expand'] = expand;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
if (filters !== undefined) {
|
|
252
|
-
localVarQueryParameter['filters'] = filters;
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
256
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
262
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
263
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
264
|
-
|
|
265
|
-
return {
|
|
266
|
-
url: toPathString(localVarUrlObj),
|
|
267
|
-
options: localVarRequestOptions,
|
|
268
|
-
};
|
|
269
|
-
},
|
|
270
|
-
/**
|
|
271
|
-
* Returns a list of product documents you have previously created. The product documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
272
|
-
* @summary List product documents
|
|
273
|
-
* @param {string} productSlug
|
|
274
|
-
* @param {string} [authorization] Bearer Token
|
|
275
|
-
* @param {number} [pageSize] Page size
|
|
276
|
-
* @param {string} [pageToken] Page token
|
|
277
|
-
* @param {string} [filter] List filter
|
|
278
|
-
* @param {string} [search] Search query
|
|
279
|
-
* @param {string} [order] Ordering criteria
|
|
280
|
-
* @param {string} [expand] Extra fields to fetch
|
|
281
|
-
* @param {string} [filters] List filters
|
|
282
|
-
* @param {*} [options] Override http request option.
|
|
283
|
-
* @throws {RequiredError}
|
|
284
|
-
*/
|
|
285
|
-
listProductDocuments_1: async (productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
286
|
-
// verify required parameter 'productSlug' is not null or undefined
|
|
287
|
-
assertParamExists('listProductDocuments_1', 'productSlug', productSlug)
|
|
288
|
-
const localVarPath = `/documentservice/v1/documents/product`
|
|
200
|
+
const localVarPath = `/documentservice/v1/product-documents/{productSlug}`
|
|
289
201
|
.replace(`{${"productSlug"}}`, encodeURIComponent(String(productSlug)));
|
|
290
202
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
291
203
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -361,7 +273,7 @@ export const ProductDocumentsApiAxiosParamCreator = function (configuration?: Co
|
|
|
361
273
|
assertParamExists('uploadProductDocument', 'productSlug', productSlug)
|
|
362
274
|
// verify required parameter 'uploadProductDocumentRequestDto' is not null or undefined
|
|
363
275
|
assertParamExists('uploadProductDocument', 'uploadProductDocumentRequestDto', uploadProductDocumentRequestDto)
|
|
364
|
-
const localVarPath = `/documentservice/v1/documents/
|
|
276
|
+
const localVarPath = `/documentservice/v1/product-documents/{productSlug}`
|
|
365
277
|
.replace(`{${"productSlug"}}`, encodeURIComponent(String(productSlug)));
|
|
366
278
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
367
279
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -417,7 +329,7 @@ export const ProductDocumentsApiFp = function(configuration?: Configuration) {
|
|
|
417
329
|
* @param {*} [options] Override http request option.
|
|
418
330
|
* @throws {RequiredError}
|
|
419
331
|
*/
|
|
420
|
-
async deleteProductDocument(code: string, productSlug: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
332
|
+
async deleteProductDocument(code: string, productSlug: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
421
333
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProductDocument(code, productSlug, authorization, options);
|
|
422
334
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
423
335
|
},
|
|
@@ -430,7 +342,7 @@ export const ProductDocumentsApiFp = function(configuration?: Configuration) {
|
|
|
430
342
|
* @param {*} [options] Override http request option.
|
|
431
343
|
* @throws {RequiredError}
|
|
432
344
|
*/
|
|
433
|
-
async downloadProductDocument(productSlug: string, code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
345
|
+
async downloadProductDocument(productSlug: string, code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
434
346
|
const localVarAxiosArgs = await localVarAxiosParamCreator.downloadProductDocument(productSlug, code, authorization, options);
|
|
435
347
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
436
348
|
},
|
|
@@ -443,12 +355,12 @@ export const ProductDocumentsApiFp = function(configuration?: Configuration) {
|
|
|
443
355
|
* @param {*} [options] Override http request option.
|
|
444
356
|
* @throws {RequiredError}
|
|
445
357
|
*/
|
|
446
|
-
async getProductDocument(productSlug: string, code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
358
|
+
async getProductDocument(productSlug: string, code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
447
359
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getProductDocument(productSlug, code, authorization, options);
|
|
448
360
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
449
361
|
},
|
|
450
362
|
/**
|
|
451
|
-
* Returns a list of product documents you have previously created.
|
|
363
|
+
* Returns a list of product documents you have previously created. The product documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
452
364
|
* @summary List product documents
|
|
453
365
|
* @param {string} productSlug
|
|
454
366
|
* @param {string} [authorization] Bearer Token
|
|
@@ -462,29 +374,10 @@ export const ProductDocumentsApiFp = function(configuration?: Configuration) {
|
|
|
462
374
|
* @param {*} [options] Override http request option.
|
|
463
375
|
* @throws {RequiredError}
|
|
464
376
|
*/
|
|
465
|
-
async listProductDocuments(productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
377
|
+
async listProductDocuments(productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
466
378
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listProductDocuments(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
467
379
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
468
380
|
},
|
|
469
|
-
/**
|
|
470
|
-
* Returns a list of product documents you have previously created. The product documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
471
|
-
* @summary List product documents
|
|
472
|
-
* @param {string} productSlug
|
|
473
|
-
* @param {string} [authorization] Bearer Token
|
|
474
|
-
* @param {number} [pageSize] Page size
|
|
475
|
-
* @param {string} [pageToken] Page token
|
|
476
|
-
* @param {string} [filter] List filter
|
|
477
|
-
* @param {string} [search] Search query
|
|
478
|
-
* @param {string} [order] Ordering criteria
|
|
479
|
-
* @param {string} [expand] Extra fields to fetch
|
|
480
|
-
* @param {string} [filters] List filters
|
|
481
|
-
* @param {*} [options] Override http request option.
|
|
482
|
-
* @throws {RequiredError}
|
|
483
|
-
*/
|
|
484
|
-
async listProductDocuments_1(productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListProductDocumentsResponseClass>> {
|
|
485
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listProductDocuments_1(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
486
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
487
|
-
},
|
|
488
381
|
/**
|
|
489
382
|
* Upload a product document.
|
|
490
383
|
* @summary Create the product document
|
|
@@ -494,7 +387,7 @@ export const ProductDocumentsApiFp = function(configuration?: Configuration) {
|
|
|
494
387
|
* @param {*} [options] Override http request option.
|
|
495
388
|
* @throws {RequiredError}
|
|
496
389
|
*/
|
|
497
|
-
async uploadProductDocument(productSlug: string, uploadProductDocumentRequestDto: UploadProductDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
390
|
+
async uploadProductDocument(productSlug: string, uploadProductDocumentRequestDto: UploadProductDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
498
391
|
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadProductDocument(productSlug, uploadProductDocumentRequestDto, authorization, options);
|
|
499
392
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
500
393
|
},
|
|
@@ -517,7 +410,7 @@ export const ProductDocumentsApiFactory = function (configuration?: Configuratio
|
|
|
517
410
|
* @param {*} [options] Override http request option.
|
|
518
411
|
* @throws {RequiredError}
|
|
519
412
|
*/
|
|
520
|
-
deleteProductDocument(code: string, productSlug: string, authorization?: string, options?: any): AxiosPromise<
|
|
413
|
+
deleteProductDocument(code: string, productSlug: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
521
414
|
return localVarFp.deleteProductDocument(code, productSlug, authorization, options).then((request) => request(axios, basePath));
|
|
522
415
|
},
|
|
523
416
|
/**
|
|
@@ -529,7 +422,7 @@ export const ProductDocumentsApiFactory = function (configuration?: Configuratio
|
|
|
529
422
|
* @param {*} [options] Override http request option.
|
|
530
423
|
* @throws {RequiredError}
|
|
531
424
|
*/
|
|
532
|
-
downloadProductDocument(productSlug: string, code: string, authorization?: string, options?: any): AxiosPromise<
|
|
425
|
+
downloadProductDocument(productSlug: string, code: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
533
426
|
return localVarFp.downloadProductDocument(productSlug, code, authorization, options).then((request) => request(axios, basePath));
|
|
534
427
|
},
|
|
535
428
|
/**
|
|
@@ -541,11 +434,11 @@ export const ProductDocumentsApiFactory = function (configuration?: Configuratio
|
|
|
541
434
|
* @param {*} [options] Override http request option.
|
|
542
435
|
* @throws {RequiredError}
|
|
543
436
|
*/
|
|
544
|
-
getProductDocument(productSlug: string, code: string, authorization?: string, options?: any): AxiosPromise<
|
|
437
|
+
getProductDocument(productSlug: string, code: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
545
438
|
return localVarFp.getProductDocument(productSlug, code, authorization, options).then((request) => request(axios, basePath));
|
|
546
439
|
},
|
|
547
440
|
/**
|
|
548
|
-
* Returns a list of product documents you have previously created.
|
|
441
|
+
* Returns a list of product documents you have previously created. The product documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
549
442
|
* @summary List product documents
|
|
550
443
|
* @param {string} productSlug
|
|
551
444
|
* @param {string} [authorization] Bearer Token
|
|
@@ -559,27 +452,9 @@ export const ProductDocumentsApiFactory = function (configuration?: Configuratio
|
|
|
559
452
|
* @param {*} [options] Override http request option.
|
|
560
453
|
* @throws {RequiredError}
|
|
561
454
|
*/
|
|
562
|
-
listProductDocuments(productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<
|
|
455
|
+
listProductDocuments(productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<void> {
|
|
563
456
|
return localVarFp.listProductDocuments(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
564
457
|
},
|
|
565
|
-
/**
|
|
566
|
-
* Returns a list of product documents you have previously created. The product documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
567
|
-
* @summary List product documents
|
|
568
|
-
* @param {string} productSlug
|
|
569
|
-
* @param {string} [authorization] Bearer Token
|
|
570
|
-
* @param {number} [pageSize] Page size
|
|
571
|
-
* @param {string} [pageToken] Page token
|
|
572
|
-
* @param {string} [filter] List filter
|
|
573
|
-
* @param {string} [search] Search query
|
|
574
|
-
* @param {string} [order] Ordering criteria
|
|
575
|
-
* @param {string} [expand] Extra fields to fetch
|
|
576
|
-
* @param {string} [filters] List filters
|
|
577
|
-
* @param {*} [options] Override http request option.
|
|
578
|
-
* @throws {RequiredError}
|
|
579
|
-
*/
|
|
580
|
-
listProductDocuments_1(productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListProductDocumentsResponseClass> {
|
|
581
|
-
return localVarFp.listProductDocuments_1(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
582
|
-
},
|
|
583
458
|
/**
|
|
584
459
|
* Upload a product document.
|
|
585
460
|
* @summary Create the product document
|
|
@@ -589,7 +464,7 @@ export const ProductDocumentsApiFactory = function (configuration?: Configuratio
|
|
|
589
464
|
* @param {*} [options] Override http request option.
|
|
590
465
|
* @throws {RequiredError}
|
|
591
466
|
*/
|
|
592
|
-
uploadProductDocument(productSlug: string, uploadProductDocumentRequestDto: UploadProductDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
467
|
+
uploadProductDocument(productSlug: string, uploadProductDocumentRequestDto: UploadProductDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
|
|
593
468
|
return localVarFp.uploadProductDocument(productSlug, uploadProductDocumentRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
594
469
|
},
|
|
595
470
|
};
|
|
@@ -749,76 +624,6 @@ export interface ProductDocumentsApiListProductDocumentsRequest {
|
|
|
749
624
|
readonly filters?: string
|
|
750
625
|
}
|
|
751
626
|
|
|
752
|
-
/**
|
|
753
|
-
* Request parameters for listProductDocuments_1 operation in ProductDocumentsApi.
|
|
754
|
-
* @export
|
|
755
|
-
* @interface ProductDocumentsApiListProductDocuments0Request
|
|
756
|
-
*/
|
|
757
|
-
export interface ProductDocumentsApiListProductDocuments0Request {
|
|
758
|
-
/**
|
|
759
|
-
*
|
|
760
|
-
* @type {string}
|
|
761
|
-
* @memberof ProductDocumentsApiListProductDocuments0
|
|
762
|
-
*/
|
|
763
|
-
readonly productSlug: string
|
|
764
|
-
|
|
765
|
-
/**
|
|
766
|
-
* Bearer Token
|
|
767
|
-
* @type {string}
|
|
768
|
-
* @memberof ProductDocumentsApiListProductDocuments0
|
|
769
|
-
*/
|
|
770
|
-
readonly authorization?: string
|
|
771
|
-
|
|
772
|
-
/**
|
|
773
|
-
* Page size
|
|
774
|
-
* @type {number}
|
|
775
|
-
* @memberof ProductDocumentsApiListProductDocuments0
|
|
776
|
-
*/
|
|
777
|
-
readonly pageSize?: number
|
|
778
|
-
|
|
779
|
-
/**
|
|
780
|
-
* Page token
|
|
781
|
-
* @type {string}
|
|
782
|
-
* @memberof ProductDocumentsApiListProductDocuments0
|
|
783
|
-
*/
|
|
784
|
-
readonly pageToken?: string
|
|
785
|
-
|
|
786
|
-
/**
|
|
787
|
-
* List filter
|
|
788
|
-
* @type {string}
|
|
789
|
-
* @memberof ProductDocumentsApiListProductDocuments0
|
|
790
|
-
*/
|
|
791
|
-
readonly filter?: string
|
|
792
|
-
|
|
793
|
-
/**
|
|
794
|
-
* Search query
|
|
795
|
-
* @type {string}
|
|
796
|
-
* @memberof ProductDocumentsApiListProductDocuments0
|
|
797
|
-
*/
|
|
798
|
-
readonly search?: string
|
|
799
|
-
|
|
800
|
-
/**
|
|
801
|
-
* Ordering criteria
|
|
802
|
-
* @type {string}
|
|
803
|
-
* @memberof ProductDocumentsApiListProductDocuments0
|
|
804
|
-
*/
|
|
805
|
-
readonly order?: string
|
|
806
|
-
|
|
807
|
-
/**
|
|
808
|
-
* Extra fields to fetch
|
|
809
|
-
* @type {string}
|
|
810
|
-
* @memberof ProductDocumentsApiListProductDocuments0
|
|
811
|
-
*/
|
|
812
|
-
readonly expand?: string
|
|
813
|
-
|
|
814
|
-
/**
|
|
815
|
-
* List filters
|
|
816
|
-
* @type {string}
|
|
817
|
-
* @memberof ProductDocumentsApiListProductDocuments0
|
|
818
|
-
*/
|
|
819
|
-
readonly filters?: string
|
|
820
|
-
}
|
|
821
|
-
|
|
822
627
|
/**
|
|
823
628
|
* Request parameters for uploadProductDocument operation in ProductDocumentsApi.
|
|
824
629
|
* @export
|
|
@@ -891,7 +696,7 @@ export class ProductDocumentsApi extends BaseAPI {
|
|
|
891
696
|
}
|
|
892
697
|
|
|
893
698
|
/**
|
|
894
|
-
* Returns a list of product documents you have previously created.
|
|
699
|
+
* Returns a list of product documents you have previously created. The product documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
895
700
|
* @summary List product documents
|
|
896
701
|
* @param {ProductDocumentsApiListProductDocumentsRequest} requestParameters Request parameters.
|
|
897
702
|
* @param {*} [options] Override http request option.
|
|
@@ -902,18 +707,6 @@ export class ProductDocumentsApi extends BaseAPI {
|
|
|
902
707
|
return ProductDocumentsApiFp(this.configuration).listProductDocuments(requestParameters.productSlug, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
903
708
|
}
|
|
904
709
|
|
|
905
|
-
/**
|
|
906
|
-
* Returns a list of product documents you have previously created. The product documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
907
|
-
* @summary List product documents
|
|
908
|
-
* @param {ProductDocumentsApiListProductDocuments0Request} requestParameters Request parameters.
|
|
909
|
-
* @param {*} [options] Override http request option.
|
|
910
|
-
* @throws {RequiredError}
|
|
911
|
-
* @memberof ProductDocumentsApi
|
|
912
|
-
*/
|
|
913
|
-
public listProductDocuments_1(requestParameters: ProductDocumentsApiListProductDocuments0Request, options?: AxiosRequestConfig) {
|
|
914
|
-
return ProductDocumentsApiFp(this.configuration).listProductDocuments_1(requestParameters.productSlug, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
915
|
-
}
|
|
916
|
-
|
|
917
710
|
/**
|
|
918
711
|
* Upload a product document.
|
|
919
712
|
* @summary Create the product document
|
|
@@ -20,8 +20,6 @@ import { Configuration } from '../configuration';
|
|
|
20
20
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
|
-
// @ts-ignore
|
|
24
|
-
import { ListSearchKeywordsResponseClass } from '../models';
|
|
25
23
|
// URLSearchParams not necessarily used
|
|
26
24
|
// @ts-ignore
|
|
27
25
|
import { URL, URLSearchParams } from 'url';
|
|
@@ -98,7 +96,7 @@ export const SearchKeywordsApiFp = function(configuration?: Configuration) {
|
|
|
98
96
|
* @param {*} [options] Override http request option.
|
|
99
97
|
* @throws {RequiredError}
|
|
100
98
|
*/
|
|
101
|
-
async listSearchKeywords(searchText: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
99
|
+
async listSearchKeywords(searchText: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
102
100
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listSearchKeywords(searchText, authorization, options);
|
|
103
101
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
104
102
|
},
|
|
@@ -120,7 +118,7 @@ export const SearchKeywordsApiFactory = function (configuration?: Configuration,
|
|
|
120
118
|
* @param {*} [options] Override http request option.
|
|
121
119
|
* @throws {RequiredError}
|
|
122
120
|
*/
|
|
123
|
-
listSearchKeywords(searchText: string, authorization?: string, options?: any): AxiosPromise<
|
|
121
|
+
listSearchKeywords(searchText: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
124
122
|
return localVarFp.listSearchKeywords(searchText, authorization, options).then((request) => request(axios, basePath));
|
|
125
123
|
},
|
|
126
124
|
};
|
|
@@ -20,8 +20,6 @@ import { Configuration } from '../configuration';
|
|
|
20
20
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
|
-
// @ts-ignore
|
|
24
|
-
import { ListSearchableDocumentOwnersResponseClass } from '../models';
|
|
25
23
|
// URLSearchParams not necessarily used
|
|
26
24
|
// @ts-ignore
|
|
27
25
|
import { URL, URLSearchParams } from 'url';
|
|
@@ -132,7 +130,7 @@ export const SearchableDocumentOwnersApiFp = function(configuration?: Configurat
|
|
|
132
130
|
* @param {*} [options] Override http request option.
|
|
133
131
|
* @throws {RequiredError}
|
|
134
132
|
*/
|
|
135
|
-
async listSearchableDocumentOwners(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
133
|
+
async listSearchableDocumentOwners(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
136
134
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listSearchableDocumentOwners(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
137
135
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
138
136
|
},
|
|
@@ -160,7 +158,7 @@ export const SearchableDocumentOwnersApiFactory = function (configuration?: Conf
|
|
|
160
158
|
* @param {*} [options] Override http request option.
|
|
161
159
|
* @throws {RequiredError}
|
|
162
160
|
*/
|
|
163
|
-
listSearchableDocumentOwners(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<
|
|
161
|
+
listSearchableDocumentOwners(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<void> {
|
|
164
162
|
return localVarFp.listSearchableDocumentOwners(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
165
163
|
},
|
|
166
164
|
};
|
|
@@ -20,8 +20,6 @@ import { Configuration } from '../configuration';
|
|
|
20
20
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
|
-
// @ts-ignore
|
|
24
|
-
import { ListSearchableDocumentsResponseClass } from '../models';
|
|
25
23
|
// URLSearchParams not necessarily used
|
|
26
24
|
// @ts-ignore
|
|
27
25
|
import { URL, URLSearchParams } from 'url';
|
|
@@ -33,20 +31,22 @@ const FormData = require('form-data');
|
|
|
33
31
|
export const SearchableDocumentsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
34
32
|
return {
|
|
35
33
|
/**
|
|
36
|
-
* Returns a list of searchable documents you have previously created.
|
|
34
|
+
* Returns a list of searchable documents you have previously created. The searchable documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
37
35
|
* @summary List searchable documents
|
|
38
36
|
* @param {string} searchText Text to search in the documents.
|
|
39
37
|
* @param {string} ownerIds List of searched document owner IDs separated with | (search in all documents if an \'*\' list provided).
|
|
38
|
+
* @param {string} product PBM product the documents belongs to.
|
|
40
39
|
* @param {string} [authorization] Bearer Token
|
|
41
|
-
* @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] PBM product the documents belongs to.
|
|
42
40
|
* @param {*} [options] Override http request option.
|
|
43
41
|
* @throws {RequiredError}
|
|
44
42
|
*/
|
|
45
|
-
listSearchableDocuments: async (searchText: string, ownerIds: string,
|
|
43
|
+
listSearchableDocuments: async (searchText: string, ownerIds: string, product: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
46
44
|
// verify required parameter 'searchText' is not null or undefined
|
|
47
45
|
assertParamExists('listSearchableDocuments', 'searchText', searchText)
|
|
48
46
|
// verify required parameter 'ownerIds' is not null or undefined
|
|
49
47
|
assertParamExists('listSearchableDocuments', 'ownerIds', ownerIds)
|
|
48
|
+
// verify required parameter 'product' is not null or undefined
|
|
49
|
+
assertParamExists('listSearchableDocuments', 'product', product)
|
|
50
50
|
const localVarPath = `/documentservice/v1/searchable-documents`;
|
|
51
51
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
52
52
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -103,17 +103,17 @@ export const SearchableDocumentsApiFp = function(configuration?: Configuration)
|
|
|
103
103
|
const localVarAxiosParamCreator = SearchableDocumentsApiAxiosParamCreator(configuration)
|
|
104
104
|
return {
|
|
105
105
|
/**
|
|
106
|
-
* Returns a list of searchable documents you have previously created.
|
|
106
|
+
* Returns a list of searchable documents you have previously created. The searchable documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
107
107
|
* @summary List searchable documents
|
|
108
108
|
* @param {string} searchText Text to search in the documents.
|
|
109
109
|
* @param {string} ownerIds List of searched document owner IDs separated with | (search in all documents if an \'*\' list provided).
|
|
110
|
+
* @param {string} product PBM product the documents belongs to.
|
|
110
111
|
* @param {string} [authorization] Bearer Token
|
|
111
|
-
* @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] PBM product the documents belongs to.
|
|
112
112
|
* @param {*} [options] Override http request option.
|
|
113
113
|
* @throws {RequiredError}
|
|
114
114
|
*/
|
|
115
|
-
async listSearchableDocuments(searchText: string, ownerIds: string,
|
|
116
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listSearchableDocuments(searchText, ownerIds,
|
|
115
|
+
async listSearchableDocuments(searchText: string, ownerIds: string, product: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
116
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSearchableDocuments(searchText, ownerIds, product, authorization, options);
|
|
117
117
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
118
118
|
},
|
|
119
119
|
}
|
|
@@ -127,17 +127,17 @@ export const SearchableDocumentsApiFactory = function (configuration?: Configura
|
|
|
127
127
|
const localVarFp = SearchableDocumentsApiFp(configuration)
|
|
128
128
|
return {
|
|
129
129
|
/**
|
|
130
|
-
* Returns a list of searchable documents you have previously created.
|
|
130
|
+
* Returns a list of searchable documents you have previously created. The searchable documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
131
131
|
* @summary List searchable documents
|
|
132
132
|
* @param {string} searchText Text to search in the documents.
|
|
133
133
|
* @param {string} ownerIds List of searched document owner IDs separated with | (search in all documents if an \'*\' list provided).
|
|
134
|
+
* @param {string} product PBM product the documents belongs to.
|
|
134
135
|
* @param {string} [authorization] Bearer Token
|
|
135
|
-
* @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] PBM product the documents belongs to.
|
|
136
136
|
* @param {*} [options] Override http request option.
|
|
137
137
|
* @throws {RequiredError}
|
|
138
138
|
*/
|
|
139
|
-
listSearchableDocuments(searchText: string, ownerIds: string,
|
|
140
|
-
return localVarFp.listSearchableDocuments(searchText, ownerIds,
|
|
139
|
+
listSearchableDocuments(searchText: string, ownerIds: string, product: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
140
|
+
return localVarFp.listSearchableDocuments(searchText, ownerIds, product, authorization, options).then((request) => request(axios, basePath));
|
|
141
141
|
},
|
|
142
142
|
};
|
|
143
143
|
};
|
|
@@ -163,18 +163,18 @@ export interface SearchableDocumentsApiListSearchableDocumentsRequest {
|
|
|
163
163
|
readonly ownerIds: string
|
|
164
164
|
|
|
165
165
|
/**
|
|
166
|
-
*
|
|
166
|
+
* PBM product the documents belongs to.
|
|
167
167
|
* @type {string}
|
|
168
168
|
* @memberof SearchableDocumentsApiListSearchableDocuments
|
|
169
169
|
*/
|
|
170
|
-
readonly
|
|
170
|
+
readonly product: string
|
|
171
171
|
|
|
172
172
|
/**
|
|
173
|
-
*
|
|
174
|
-
* @type {
|
|
173
|
+
* Bearer Token
|
|
174
|
+
* @type {string}
|
|
175
175
|
* @memberof SearchableDocumentsApiListSearchableDocuments
|
|
176
176
|
*/
|
|
177
|
-
readonly
|
|
177
|
+
readonly authorization?: string
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
/**
|
|
@@ -185,7 +185,7 @@ export interface SearchableDocumentsApiListSearchableDocumentsRequest {
|
|
|
185
185
|
*/
|
|
186
186
|
export class SearchableDocumentsApi extends BaseAPI {
|
|
187
187
|
/**
|
|
188
|
-
* Returns a list of searchable documents you have previously created.
|
|
188
|
+
* Returns a list of searchable documents you have previously created. The searchable documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
189
189
|
* @summary List searchable documents
|
|
190
190
|
* @param {SearchableDocumentsApiListSearchableDocumentsRequest} requestParameters Request parameters.
|
|
191
191
|
* @param {*} [options] Override http request option.
|
|
@@ -193,6 +193,6 @@ export class SearchableDocumentsApi extends BaseAPI {
|
|
|
193
193
|
* @memberof SearchableDocumentsApi
|
|
194
194
|
*/
|
|
195
195
|
public listSearchableDocuments(requestParameters: SearchableDocumentsApiListSearchableDocumentsRequest, options?: AxiosRequestConfig) {
|
|
196
|
-
return SearchableDocumentsApiFp(this.configuration).listSearchableDocuments(requestParameters.searchText, requestParameters.ownerIds, requestParameters.
|
|
196
|
+
return SearchableDocumentsApiFp(this.configuration).listSearchableDocuments(requestParameters.searchText, requestParameters.ownerIds, requestParameters.product, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
197
197
|
}
|
|
198
198
|
}
|
|
@@ -19,7 +19,8 @@ import { InlineResponse200 } from '../models';
|
|
|
19
19
|
*/
|
|
20
20
|
export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Returns the health status of the document service. This endpoint is used to monitor the operational status of the document service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
23
|
+
* @summary Health Check
|
|
23
24
|
* @param {*} [options] Override http request option.
|
|
24
25
|
* @throws {RequiredError}
|
|
25
26
|
*/
|
|
@@ -31,7 +32,8 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
31
32
|
*/
|
|
32
33
|
export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
33
34
|
/**
|
|
34
|
-
*
|
|
35
|
+
* Returns the health status of the document service. This endpoint is used to monitor the operational status of the document service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
36
|
+
* @summary Health Check
|
|
35
37
|
* @param {*} [options] Override http request option.
|
|
36
38
|
* @throws {RequiredError}
|
|
37
39
|
*/
|
|
@@ -43,7 +45,8 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
43
45
|
*/
|
|
44
46
|
export declare const DefaultApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
45
47
|
/**
|
|
46
|
-
*
|
|
48
|
+
* Returns the health status of the document service. This endpoint is used to monitor the operational status of the document service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
49
|
+
* @summary Health Check
|
|
47
50
|
* @param {*} [options] Override http request option.
|
|
48
51
|
* @throws {RequiredError}
|
|
49
52
|
*/
|
|
@@ -57,7 +60,8 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
57
60
|
*/
|
|
58
61
|
export declare class DefaultApi extends BaseAPI {
|
|
59
62
|
/**
|
|
60
|
-
*
|
|
63
|
+
* Returns the health status of the document service. This endpoint is used to monitor the operational status of the document service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
64
|
+
* @summary Health Check
|
|
61
65
|
* @param {*} [options] Override http request option.
|
|
62
66
|
* @throws {RequiredError}
|
|
63
67
|
* @memberof DefaultApi
|