@emilgroup/document-sdk-node 1.22.0 → 1.22.1-beta.0
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 +42 -38
- package/api/docx-templates-api.ts +16 -28
- package/api/layouts-api.ts +18 -28
- package/api/product-documents-api.ts +47 -238
- 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 +39 -36
- package/dist/api/documents-api.js +21 -13
- 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 +37 -150
- package/dist/api/product-documents-api.js +29 -155
- 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
|
@@ -116,7 +116,7 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
116
116
|
(0, common_1.assertParamExists)('deleteProductDocument', 'code', code);
|
|
117
117
|
// verify required parameter 'productSlug' is not null or undefined
|
|
118
118
|
(0, common_1.assertParamExists)('deleteProductDocument', 'productSlug', productSlug);
|
|
119
|
-
localVarPath = "/documentservice/v1/documents/
|
|
119
|
+
localVarPath = "/documentservice/v1/product-documents/{productSlug}/{code}"
|
|
120
120
|
.replace("{".concat("code", "}"), encodeURIComponent(String(code)))
|
|
121
121
|
.replace("{".concat("productSlug", "}"), encodeURIComponent(String(productSlug)));
|
|
122
122
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -151,13 +151,14 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
151
151
|
/**
|
|
152
152
|
* Get a pre-signed download url for the given product document.
|
|
153
153
|
* @summary Get pre-signed url for downloading product document
|
|
154
|
-
* @param {string} productSlug
|
|
155
|
-
* @param {string} code
|
|
154
|
+
* @param {string} productSlug Product slug
|
|
155
|
+
* @param {string} code Product document code
|
|
156
|
+
* @param {'attachment' | 'inline'} contentDisposition Content disposition override. Default will be depending on the document type.
|
|
156
157
|
* @param {string} [authorization] Bearer Token
|
|
157
158
|
* @param {*} [options] Override http request option.
|
|
158
159
|
* @throws {RequiredError}
|
|
159
160
|
*/
|
|
160
|
-
downloadProductDocument: function (productSlug, code, authorization, options) {
|
|
161
|
+
downloadProductDocument: function (productSlug, code, contentDisposition, authorization, options) {
|
|
161
162
|
if (options === void 0) { options = {}; }
|
|
162
163
|
return __awaiter(_this, void 0, void 0, function () {
|
|
163
164
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -168,7 +169,9 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
168
169
|
(0, common_1.assertParamExists)('downloadProductDocument', 'productSlug', productSlug);
|
|
169
170
|
// verify required parameter 'code' is not null or undefined
|
|
170
171
|
(0, common_1.assertParamExists)('downloadProductDocument', 'code', code);
|
|
171
|
-
|
|
172
|
+
// verify required parameter 'contentDisposition' is not null or undefined
|
|
173
|
+
(0, common_1.assertParamExists)('downloadProductDocument', 'contentDisposition', contentDisposition);
|
|
174
|
+
localVarPath = "/documentservice/v1/product-documents/{productSlug}/{code}/download-url"
|
|
172
175
|
.replace("{".concat("productSlug", "}"), encodeURIComponent(String(productSlug)))
|
|
173
176
|
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
174
177
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -186,6 +189,9 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
186
189
|
// authentication bearer required
|
|
187
190
|
// http bearer authentication required
|
|
188
191
|
_a.sent();
|
|
192
|
+
if (contentDisposition !== undefined) {
|
|
193
|
+
localVarQueryParameter['contentDisposition'] = contentDisposition;
|
|
194
|
+
}
|
|
189
195
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
190
196
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
191
197
|
}
|
|
@@ -220,7 +226,7 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
220
226
|
(0, common_1.assertParamExists)('getProductDocument', 'productSlug', productSlug);
|
|
221
227
|
// verify required parameter 'code' is not null or undefined
|
|
222
228
|
(0, common_1.assertParamExists)('getProductDocument', 'code', code);
|
|
223
|
-
localVarPath = "/documentservice/v1/documents/
|
|
229
|
+
localVarPath = "/documentservice/v1/product-documents/{productSlug}/{code}"
|
|
224
230
|
.replace("{".concat("productSlug", "}"), encodeURIComponent(String(productSlug)))
|
|
225
231
|
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
226
232
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -253,7 +259,7 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
253
259
|
});
|
|
254
260
|
},
|
|
255
261
|
/**
|
|
256
|
-
* Returns a list of product documents you have previously created.
|
|
262
|
+
* 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.
|
|
257
263
|
* @summary List product documents
|
|
258
264
|
* @param {string} productSlug
|
|
259
265
|
* @param {string} [authorization] Bearer Token
|
|
@@ -276,83 +282,7 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
276
282
|
case 0:
|
|
277
283
|
// verify required parameter 'productSlug' is not null or undefined
|
|
278
284
|
(0, common_1.assertParamExists)('listProductDocuments', 'productSlug', productSlug);
|
|
279
|
-
localVarPath = "/documentservice/v1/documents/
|
|
280
|
-
.replace("{".concat("productSlug", "}"), encodeURIComponent(String(productSlug)));
|
|
281
|
-
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
282
|
-
if (configuration) {
|
|
283
|
-
baseOptions = configuration.baseOptions;
|
|
284
|
-
baseAccessToken = configuration.accessToken;
|
|
285
|
-
}
|
|
286
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
287
|
-
localVarHeaderParameter = {};
|
|
288
|
-
localVarQueryParameter = {};
|
|
289
|
-
// authentication bearer required
|
|
290
|
-
// http bearer authentication required
|
|
291
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
292
|
-
case 1:
|
|
293
|
-
// authentication bearer required
|
|
294
|
-
// http bearer authentication required
|
|
295
|
-
_a.sent();
|
|
296
|
-
if (pageSize !== undefined) {
|
|
297
|
-
localVarQueryParameter['pageSize'] = pageSize;
|
|
298
|
-
}
|
|
299
|
-
if (pageToken !== undefined) {
|
|
300
|
-
localVarQueryParameter['pageToken'] = pageToken;
|
|
301
|
-
}
|
|
302
|
-
if (filter !== undefined) {
|
|
303
|
-
localVarQueryParameter['filter'] = filter;
|
|
304
|
-
}
|
|
305
|
-
if (search !== undefined) {
|
|
306
|
-
localVarQueryParameter['search'] = search;
|
|
307
|
-
}
|
|
308
|
-
if (order !== undefined) {
|
|
309
|
-
localVarQueryParameter['order'] = order;
|
|
310
|
-
}
|
|
311
|
-
if (expand !== undefined) {
|
|
312
|
-
localVarQueryParameter['expand'] = expand;
|
|
313
|
-
}
|
|
314
|
-
if (filters !== undefined) {
|
|
315
|
-
localVarQueryParameter['filters'] = filters;
|
|
316
|
-
}
|
|
317
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
318
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
319
|
-
}
|
|
320
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
321
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
322
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
323
|
-
return [2 /*return*/, {
|
|
324
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
325
|
-
options: localVarRequestOptions,
|
|
326
|
-
}];
|
|
327
|
-
}
|
|
328
|
-
});
|
|
329
|
-
});
|
|
330
|
-
},
|
|
331
|
-
/**
|
|
332
|
-
* 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.
|
|
333
|
-
* @summary List product documents
|
|
334
|
-
* @param {string} productSlug
|
|
335
|
-
* @param {string} [authorization] Bearer Token
|
|
336
|
-
* @param {number} [pageSize] Page size
|
|
337
|
-
* @param {string} [pageToken] Page token
|
|
338
|
-
* @param {string} [filter] List filter
|
|
339
|
-
* @param {string} [search] Search query
|
|
340
|
-
* @param {string} [order] Ordering criteria
|
|
341
|
-
* @param {string} [expand] Extra fields to fetch
|
|
342
|
-
* @param {string} [filters] List filters
|
|
343
|
-
* @param {*} [options] Override http request option.
|
|
344
|
-
* @throws {RequiredError}
|
|
345
|
-
*/
|
|
346
|
-
listProductDocuments_1: function (productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
347
|
-
if (options === void 0) { options = {}; }
|
|
348
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
349
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
350
|
-
return __generator(this, function (_a) {
|
|
351
|
-
switch (_a.label) {
|
|
352
|
-
case 0:
|
|
353
|
-
// verify required parameter 'productSlug' is not null or undefined
|
|
354
|
-
(0, common_1.assertParamExists)('listProductDocuments_1', 'productSlug', productSlug);
|
|
355
|
-
localVarPath = "/documentservice/v1/documents/product"
|
|
285
|
+
localVarPath = "/documentservice/v1/product-documents/{productSlug}"
|
|
356
286
|
.replace("{".concat("productSlug", "}"), encodeURIComponent(String(productSlug)));
|
|
357
287
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
358
288
|
if (configuration) {
|
|
@@ -424,7 +354,7 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
424
354
|
(0, common_1.assertParamExists)('uploadProductDocument', 'productSlug', productSlug);
|
|
425
355
|
// verify required parameter 'uploadProductDocumentRequestDto' is not null or undefined
|
|
426
356
|
(0, common_1.assertParamExists)('uploadProductDocument', 'uploadProductDocumentRequestDto', uploadProductDocumentRequestDto);
|
|
427
|
-
localVarPath = "/documentservice/v1/documents/
|
|
357
|
+
localVarPath = "/documentservice/v1/product-documents/{productSlug}"
|
|
428
358
|
.replace("{".concat("productSlug", "}"), encodeURIComponent(String(productSlug)));
|
|
429
359
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
430
360
|
if (configuration) {
|
|
@@ -492,18 +422,19 @@ var ProductDocumentsApiFp = function (configuration) {
|
|
|
492
422
|
/**
|
|
493
423
|
* Get a pre-signed download url for the given product document.
|
|
494
424
|
* @summary Get pre-signed url for downloading product document
|
|
495
|
-
* @param {string} productSlug
|
|
496
|
-
* @param {string} code
|
|
425
|
+
* @param {string} productSlug Product slug
|
|
426
|
+
* @param {string} code Product document code
|
|
427
|
+
* @param {'attachment' | 'inline'} contentDisposition Content disposition override. Default will be depending on the document type.
|
|
497
428
|
* @param {string} [authorization] Bearer Token
|
|
498
429
|
* @param {*} [options] Override http request option.
|
|
499
430
|
* @throws {RequiredError}
|
|
500
431
|
*/
|
|
501
|
-
downloadProductDocument: function (productSlug, code, authorization, options) {
|
|
432
|
+
downloadProductDocument: function (productSlug, code, contentDisposition, authorization, options) {
|
|
502
433
|
return __awaiter(this, void 0, void 0, function () {
|
|
503
434
|
var localVarAxiosArgs;
|
|
504
435
|
return __generator(this, function (_a) {
|
|
505
436
|
switch (_a.label) {
|
|
506
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.downloadProductDocument(productSlug, code, authorization, options)];
|
|
437
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.downloadProductDocument(productSlug, code, contentDisposition, authorization, options)];
|
|
507
438
|
case 1:
|
|
508
439
|
localVarAxiosArgs = _a.sent();
|
|
509
440
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -534,7 +465,7 @@ var ProductDocumentsApiFp = function (configuration) {
|
|
|
534
465
|
});
|
|
535
466
|
},
|
|
536
467
|
/**
|
|
537
|
-
* Returns a list of product documents you have previously created.
|
|
468
|
+
* 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.
|
|
538
469
|
* @summary List product documents
|
|
539
470
|
* @param {string} productSlug
|
|
540
471
|
* @param {string} [authorization] Bearer Token
|
|
@@ -561,34 +492,6 @@ var ProductDocumentsApiFp = function (configuration) {
|
|
|
561
492
|
});
|
|
562
493
|
});
|
|
563
494
|
},
|
|
564
|
-
/**
|
|
565
|
-
* 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.
|
|
566
|
-
* @summary List product documents
|
|
567
|
-
* @param {string} productSlug
|
|
568
|
-
* @param {string} [authorization] Bearer Token
|
|
569
|
-
* @param {number} [pageSize] Page size
|
|
570
|
-
* @param {string} [pageToken] Page token
|
|
571
|
-
* @param {string} [filter] List filter
|
|
572
|
-
* @param {string} [search] Search query
|
|
573
|
-
* @param {string} [order] Ordering criteria
|
|
574
|
-
* @param {string} [expand] Extra fields to fetch
|
|
575
|
-
* @param {string} [filters] List filters
|
|
576
|
-
* @param {*} [options] Override http request option.
|
|
577
|
-
* @throws {RequiredError}
|
|
578
|
-
*/
|
|
579
|
-
listProductDocuments_1: function (productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
580
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
581
|
-
var localVarAxiosArgs;
|
|
582
|
-
return __generator(this, function (_a) {
|
|
583
|
-
switch (_a.label) {
|
|
584
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listProductDocuments_1(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
|
|
585
|
-
case 1:
|
|
586
|
-
localVarAxiosArgs = _a.sent();
|
|
587
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
588
|
-
}
|
|
589
|
-
});
|
|
590
|
-
});
|
|
591
|
-
},
|
|
592
495
|
/**
|
|
593
496
|
* Upload a product document.
|
|
594
497
|
* @summary Create the product document
|
|
@@ -636,14 +539,15 @@ var ProductDocumentsApiFactory = function (configuration, basePath, axios) {
|
|
|
636
539
|
/**
|
|
637
540
|
* Get a pre-signed download url for the given product document.
|
|
638
541
|
* @summary Get pre-signed url for downloading product document
|
|
639
|
-
* @param {string} productSlug
|
|
640
|
-
* @param {string} code
|
|
542
|
+
* @param {string} productSlug Product slug
|
|
543
|
+
* @param {string} code Product document code
|
|
544
|
+
* @param {'attachment' | 'inline'} contentDisposition Content disposition override. Default will be depending on the document type.
|
|
641
545
|
* @param {string} [authorization] Bearer Token
|
|
642
546
|
* @param {*} [options] Override http request option.
|
|
643
547
|
* @throws {RequiredError}
|
|
644
548
|
*/
|
|
645
|
-
downloadProductDocument: function (productSlug, code, authorization, options) {
|
|
646
|
-
return localVarFp.downloadProductDocument(productSlug, code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
549
|
+
downloadProductDocument: function (productSlug, code, contentDisposition, authorization, options) {
|
|
550
|
+
return localVarFp.downloadProductDocument(productSlug, code, contentDisposition, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
647
551
|
},
|
|
648
552
|
/**
|
|
649
553
|
* Get a product document.
|
|
@@ -658,7 +562,7 @@ var ProductDocumentsApiFactory = function (configuration, basePath, axios) {
|
|
|
658
562
|
return localVarFp.getProductDocument(productSlug, code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
659
563
|
},
|
|
660
564
|
/**
|
|
661
|
-
* Returns a list of product documents you have previously created.
|
|
565
|
+
* 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.
|
|
662
566
|
* @summary List product documents
|
|
663
567
|
* @param {string} productSlug
|
|
664
568
|
* @param {string} [authorization] Bearer Token
|
|
@@ -675,24 +579,6 @@ var ProductDocumentsApiFactory = function (configuration, basePath, axios) {
|
|
|
675
579
|
listProductDocuments: function (productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
676
580
|
return localVarFp.listProductDocuments(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
677
581
|
},
|
|
678
|
-
/**
|
|
679
|
-
* 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.
|
|
680
|
-
* @summary List product documents
|
|
681
|
-
* @param {string} productSlug
|
|
682
|
-
* @param {string} [authorization] Bearer Token
|
|
683
|
-
* @param {number} [pageSize] Page size
|
|
684
|
-
* @param {string} [pageToken] Page token
|
|
685
|
-
* @param {string} [filter] List filter
|
|
686
|
-
* @param {string} [search] Search query
|
|
687
|
-
* @param {string} [order] Ordering criteria
|
|
688
|
-
* @param {string} [expand] Extra fields to fetch
|
|
689
|
-
* @param {string} [filters] List filters
|
|
690
|
-
* @param {*} [options] Override http request option.
|
|
691
|
-
* @throws {RequiredError}
|
|
692
|
-
*/
|
|
693
|
-
listProductDocuments_1: function (productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
694
|
-
return localVarFp.listProductDocuments_1(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
695
|
-
},
|
|
696
582
|
/**
|
|
697
583
|
* Upload a product document.
|
|
698
584
|
* @summary Create the product document
|
|
@@ -741,7 +627,7 @@ var ProductDocumentsApi = /** @class */ (function (_super) {
|
|
|
741
627
|
*/
|
|
742
628
|
ProductDocumentsApi.prototype.downloadProductDocument = function (requestParameters, options) {
|
|
743
629
|
var _this = this;
|
|
744
|
-
return (0, exports.ProductDocumentsApiFp)(this.configuration).downloadProductDocument(requestParameters.productSlug, requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
630
|
+
return (0, exports.ProductDocumentsApiFp)(this.configuration).downloadProductDocument(requestParameters.productSlug, requestParameters.code, requestParameters.contentDisposition, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
745
631
|
};
|
|
746
632
|
/**
|
|
747
633
|
* Get a product document.
|
|
@@ -756,7 +642,7 @@ var ProductDocumentsApi = /** @class */ (function (_super) {
|
|
|
756
642
|
return (0, exports.ProductDocumentsApiFp)(this.configuration).getProductDocument(requestParameters.productSlug, requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
757
643
|
};
|
|
758
644
|
/**
|
|
759
|
-
* Returns a list of product documents you have previously created.
|
|
645
|
+
* 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.
|
|
760
646
|
* @summary List product documents
|
|
761
647
|
* @param {ProductDocumentsApiListProductDocumentsRequest} requestParameters Request parameters.
|
|
762
648
|
* @param {*} [options] Override http request option.
|
|
@@ -767,18 +653,6 @@ var ProductDocumentsApi = /** @class */ (function (_super) {
|
|
|
767
653
|
var _this = this;
|
|
768
654
|
return (0, exports.ProductDocumentsApiFp)(this.configuration).listProductDocuments(requestParameters.productSlug, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
769
655
|
};
|
|
770
|
-
/**
|
|
771
|
-
* 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.
|
|
772
|
-
* @summary List product documents
|
|
773
|
-
* @param {ProductDocumentsApiListProductDocuments0Request} requestParameters Request parameters.
|
|
774
|
-
* @param {*} [options] Override http request option.
|
|
775
|
-
* @throws {RequiredError}
|
|
776
|
-
* @memberof ProductDocumentsApi
|
|
777
|
-
*/
|
|
778
|
-
ProductDocumentsApi.prototype.listProductDocuments_1 = function (requestParameters, options) {
|
|
779
|
-
var _this = this;
|
|
780
|
-
return (0, exports.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(function (request) { return request(_this.axios, _this.basePath); });
|
|
781
|
-
};
|
|
782
656
|
/**
|
|
783
657
|
* Upload a product document.
|
|
784
658
|
* @summary Create the product document
|
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
13
|
import { Configuration } from '../configuration';
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
-
import { ListSearchKeywordsResponseClass } from '../models';
|
|
16
15
|
/**
|
|
17
16
|
* SearchKeywordsApi - axios parameter creator
|
|
18
17
|
* @export
|
|
@@ -41,7 +40,7 @@ export declare const SearchKeywordsApiFp: (configuration?: Configuration) => {
|
|
|
41
40
|
* @param {*} [options] Override http request option.
|
|
42
41
|
* @throws {RequiredError}
|
|
43
42
|
*/
|
|
44
|
-
listSearchKeywords(searchText: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
43
|
+
listSearchKeywords(searchText: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
45
44
|
};
|
|
46
45
|
/**
|
|
47
46
|
* SearchKeywordsApi - factory interface
|
|
@@ -56,7 +55,7 @@ export declare const SearchKeywordsApiFactory: (configuration?: Configuration, b
|
|
|
56
55
|
* @param {*} [options] Override http request option.
|
|
57
56
|
* @throws {RequiredError}
|
|
58
57
|
*/
|
|
59
|
-
listSearchKeywords(searchText: string, authorization?: string, options?: any): AxiosPromise<
|
|
58
|
+
listSearchKeywords(searchText: string, authorization?: string, options?: any): AxiosPromise<void>;
|
|
60
59
|
};
|
|
61
60
|
/**
|
|
62
61
|
* Request parameters for listSearchKeywords operation in SearchKeywordsApi.
|
|
@@ -92,5 +91,5 @@ export declare class SearchKeywordsApi extends BaseAPI {
|
|
|
92
91
|
* @throws {RequiredError}
|
|
93
92
|
* @memberof SearchKeywordsApi
|
|
94
93
|
*/
|
|
95
|
-
listSearchKeywords(requestParameters: SearchKeywordsApiListSearchKeywordsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
94
|
+
listSearchKeywords(requestParameters: SearchKeywordsApiListSearchKeywordsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
96
95
|
}
|
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
13
|
import { Configuration } from '../configuration';
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
-
import { ListSearchableDocumentOwnersResponseClass } from '../models';
|
|
16
15
|
/**
|
|
17
16
|
* SearchableDocumentOwnersApi - axios parameter creator
|
|
18
17
|
* @export
|
|
@@ -53,7 +52,7 @@ export declare const SearchableDocumentOwnersApiFp: (configuration?: Configurati
|
|
|
53
52
|
* @param {*} [options] Override http request option.
|
|
54
53
|
* @throws {RequiredError}
|
|
55
54
|
*/
|
|
56
|
-
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<
|
|
55
|
+
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>>;
|
|
57
56
|
};
|
|
58
57
|
/**
|
|
59
58
|
* SearchableDocumentOwnersApi - factory interface
|
|
@@ -74,7 +73,7 @@ export declare const SearchableDocumentOwnersApiFactory: (configuration?: Config
|
|
|
74
73
|
* @param {*} [options] Override http request option.
|
|
75
74
|
* @throws {RequiredError}
|
|
76
75
|
*/
|
|
77
|
-
listSearchableDocumentOwners(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<
|
|
76
|
+
listSearchableDocumentOwners(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<void>;
|
|
78
77
|
};
|
|
79
78
|
/**
|
|
80
79
|
* Request parameters for listSearchableDocumentOwners operation in SearchableDocumentOwnersApi.
|
|
@@ -146,5 +145,5 @@ export declare class SearchableDocumentOwnersApi extends BaseAPI {
|
|
|
146
145
|
* @throws {RequiredError}
|
|
147
146
|
* @memberof SearchableDocumentOwnersApi
|
|
148
147
|
*/
|
|
149
|
-
listSearchableDocumentOwners(requestParameters?: SearchableDocumentOwnersApiListSearchableDocumentOwnersRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
148
|
+
listSearchableDocumentOwners(requestParameters?: SearchableDocumentOwnersApiListSearchableDocumentOwnersRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
150
149
|
}
|
|
@@ -12,23 +12,22 @@
|
|
|
12
12
|
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
13
|
import { Configuration } from '../configuration';
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
-
import { ListSearchableDocumentsResponseClass } from '../models';
|
|
16
15
|
/**
|
|
17
16
|
* SearchableDocumentsApi - axios parameter creator
|
|
18
17
|
* @export
|
|
19
18
|
*/
|
|
20
19
|
export declare const SearchableDocumentsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
21
20
|
/**
|
|
22
|
-
* Returns a list of searchable documents you have previously created.
|
|
21
|
+
* 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.
|
|
23
22
|
* @summary List searchable documents
|
|
24
23
|
* @param {string} searchText Text to search in the documents.
|
|
25
24
|
* @param {string} ownerIds List of searched document owner IDs separated with | (search in all documents if an \'*\' list provided).
|
|
25
|
+
* @param {string} product PBM product the documents belongs to.
|
|
26
26
|
* @param {string} [authorization] Bearer Token
|
|
27
|
-
* @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] PBM product the documents belongs to.
|
|
28
27
|
* @param {*} [options] Override http request option.
|
|
29
28
|
* @throws {RequiredError}
|
|
30
29
|
*/
|
|
31
|
-
listSearchableDocuments: (searchText: string, ownerIds: string,
|
|
30
|
+
listSearchableDocuments: (searchText: string, ownerIds: string, product: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
32
31
|
};
|
|
33
32
|
/**
|
|
34
33
|
* SearchableDocumentsApi - functional programming interface
|
|
@@ -36,16 +35,16 @@ export declare const SearchableDocumentsApiAxiosParamCreator: (configuration?: C
|
|
|
36
35
|
*/
|
|
37
36
|
export declare const SearchableDocumentsApiFp: (configuration?: Configuration) => {
|
|
38
37
|
/**
|
|
39
|
-
* Returns a list of searchable documents you have previously created.
|
|
38
|
+
* 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.
|
|
40
39
|
* @summary List searchable documents
|
|
41
40
|
* @param {string} searchText Text to search in the documents.
|
|
42
41
|
* @param {string} ownerIds List of searched document owner IDs separated with | (search in all documents if an \'*\' list provided).
|
|
42
|
+
* @param {string} product PBM product the documents belongs to.
|
|
43
43
|
* @param {string} [authorization] Bearer Token
|
|
44
|
-
* @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] PBM product the documents belongs to.
|
|
45
44
|
* @param {*} [options] Override http request option.
|
|
46
45
|
* @throws {RequiredError}
|
|
47
46
|
*/
|
|
48
|
-
listSearchableDocuments(searchText: string, ownerIds: string,
|
|
47
|
+
listSearchableDocuments(searchText: string, ownerIds: string, product: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
49
48
|
};
|
|
50
49
|
/**
|
|
51
50
|
* SearchableDocumentsApi - factory interface
|
|
@@ -53,16 +52,16 @@ export declare const SearchableDocumentsApiFp: (configuration?: Configuration) =
|
|
|
53
52
|
*/
|
|
54
53
|
export declare const SearchableDocumentsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
55
54
|
/**
|
|
56
|
-
* Returns a list of searchable documents you have previously created.
|
|
55
|
+
* 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.
|
|
57
56
|
* @summary List searchable documents
|
|
58
57
|
* @param {string} searchText Text to search in the documents.
|
|
59
58
|
* @param {string} ownerIds List of searched document owner IDs separated with | (search in all documents if an \'*\' list provided).
|
|
59
|
+
* @param {string} product PBM product the documents belongs to.
|
|
60
60
|
* @param {string} [authorization] Bearer Token
|
|
61
|
-
* @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] PBM product the documents belongs to.
|
|
62
61
|
* @param {*} [options] Override http request option.
|
|
63
62
|
* @throws {RequiredError}
|
|
64
63
|
*/
|
|
65
|
-
listSearchableDocuments(searchText: string, ownerIds: string,
|
|
64
|
+
listSearchableDocuments(searchText: string, ownerIds: string, product: string, authorization?: string, options?: any): AxiosPromise<void>;
|
|
66
65
|
};
|
|
67
66
|
/**
|
|
68
67
|
* Request parameters for listSearchableDocuments operation in SearchableDocumentsApi.
|
|
@@ -83,17 +82,17 @@ export interface SearchableDocumentsApiListSearchableDocumentsRequest {
|
|
|
83
82
|
*/
|
|
84
83
|
readonly ownerIds: string;
|
|
85
84
|
/**
|
|
86
|
-
*
|
|
85
|
+
* PBM product the documents belongs to.
|
|
87
86
|
* @type {string}
|
|
88
87
|
* @memberof SearchableDocumentsApiListSearchableDocuments
|
|
89
88
|
*/
|
|
90
|
-
readonly
|
|
89
|
+
readonly product: string;
|
|
91
90
|
/**
|
|
92
|
-
*
|
|
93
|
-
* @type {
|
|
91
|
+
* Bearer Token
|
|
92
|
+
* @type {string}
|
|
94
93
|
* @memberof SearchableDocumentsApiListSearchableDocuments
|
|
95
94
|
*/
|
|
96
|
-
readonly
|
|
95
|
+
readonly authorization?: string;
|
|
97
96
|
}
|
|
98
97
|
/**
|
|
99
98
|
* SearchableDocumentsApi - object-oriented interface
|
|
@@ -103,12 +102,12 @@ export interface SearchableDocumentsApiListSearchableDocumentsRequest {
|
|
|
103
102
|
*/
|
|
104
103
|
export declare class SearchableDocumentsApi extends BaseAPI {
|
|
105
104
|
/**
|
|
106
|
-
* Returns a list of searchable documents you have previously created.
|
|
105
|
+
* 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
106
|
* @summary List searchable documents
|
|
108
107
|
* @param {SearchableDocumentsApiListSearchableDocumentsRequest} requestParameters Request parameters.
|
|
109
108
|
* @param {*} [options] Override http request option.
|
|
110
109
|
* @throws {RequiredError}
|
|
111
110
|
* @memberof SearchableDocumentsApi
|
|
112
111
|
*/
|
|
113
|
-
listSearchableDocuments(requestParameters: SearchableDocumentsApiListSearchableDocumentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
112
|
+
listSearchableDocuments(requestParameters: SearchableDocumentsApiListSearchableDocumentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
114
113
|
}
|
|
@@ -97,16 +97,16 @@ var SearchableDocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
97
97
|
var _this = this;
|
|
98
98
|
return {
|
|
99
99
|
/**
|
|
100
|
-
* Returns a list of searchable documents you have previously created.
|
|
100
|
+
* 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.
|
|
101
101
|
* @summary List searchable documents
|
|
102
102
|
* @param {string} searchText Text to search in the documents.
|
|
103
103
|
* @param {string} ownerIds List of searched document owner IDs separated with | (search in all documents if an \'*\' list provided).
|
|
104
|
+
* @param {string} product PBM product the documents belongs to.
|
|
104
105
|
* @param {string} [authorization] Bearer Token
|
|
105
|
-
* @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] PBM product the documents belongs to.
|
|
106
106
|
* @param {*} [options] Override http request option.
|
|
107
107
|
* @throws {RequiredError}
|
|
108
108
|
*/
|
|
109
|
-
listSearchableDocuments: function (searchText, ownerIds,
|
|
109
|
+
listSearchableDocuments: function (searchText, ownerIds, product, authorization, options) {
|
|
110
110
|
if (options === void 0) { options = {}; }
|
|
111
111
|
return __awaiter(_this, void 0, void 0, function () {
|
|
112
112
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -117,6 +117,8 @@ var SearchableDocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
117
117
|
(0, common_1.assertParamExists)('listSearchableDocuments', 'searchText', searchText);
|
|
118
118
|
// verify required parameter 'ownerIds' is not null or undefined
|
|
119
119
|
(0, common_1.assertParamExists)('listSearchableDocuments', 'ownerIds', ownerIds);
|
|
120
|
+
// verify required parameter 'product' is not null or undefined
|
|
121
|
+
(0, common_1.assertParamExists)('listSearchableDocuments', 'product', product);
|
|
120
122
|
localVarPath = "/documentservice/v1/searchable-documents";
|
|
121
123
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
122
124
|
if (configuration) {
|
|
@@ -167,21 +169,21 @@ var SearchableDocumentsApiFp = function (configuration) {
|
|
|
167
169
|
var localVarAxiosParamCreator = (0, exports.SearchableDocumentsApiAxiosParamCreator)(configuration);
|
|
168
170
|
return {
|
|
169
171
|
/**
|
|
170
|
-
* Returns a list of searchable documents you have previously created.
|
|
172
|
+
* 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.
|
|
171
173
|
* @summary List searchable documents
|
|
172
174
|
* @param {string} searchText Text to search in the documents.
|
|
173
175
|
* @param {string} ownerIds List of searched document owner IDs separated with | (search in all documents if an \'*\' list provided).
|
|
176
|
+
* @param {string} product PBM product the documents belongs to.
|
|
174
177
|
* @param {string} [authorization] Bearer Token
|
|
175
|
-
* @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] PBM product the documents belongs to.
|
|
176
178
|
* @param {*} [options] Override http request option.
|
|
177
179
|
* @throws {RequiredError}
|
|
178
180
|
*/
|
|
179
|
-
listSearchableDocuments: function (searchText, ownerIds,
|
|
181
|
+
listSearchableDocuments: function (searchText, ownerIds, product, authorization, options) {
|
|
180
182
|
return __awaiter(this, void 0, void 0, function () {
|
|
181
183
|
var localVarAxiosArgs;
|
|
182
184
|
return __generator(this, function (_a) {
|
|
183
185
|
switch (_a.label) {
|
|
184
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listSearchableDocuments(searchText, ownerIds,
|
|
186
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listSearchableDocuments(searchText, ownerIds, product, authorization, options)];
|
|
185
187
|
case 1:
|
|
186
188
|
localVarAxiosArgs = _a.sent();
|
|
187
189
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -200,17 +202,17 @@ var SearchableDocumentsApiFactory = function (configuration, basePath, axios) {
|
|
|
200
202
|
var localVarFp = (0, exports.SearchableDocumentsApiFp)(configuration);
|
|
201
203
|
return {
|
|
202
204
|
/**
|
|
203
|
-
* Returns a list of searchable documents you have previously created.
|
|
205
|
+
* 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.
|
|
204
206
|
* @summary List searchable documents
|
|
205
207
|
* @param {string} searchText Text to search in the documents.
|
|
206
208
|
* @param {string} ownerIds List of searched document owner IDs separated with | (search in all documents if an \'*\' list provided).
|
|
209
|
+
* @param {string} product PBM product the documents belongs to.
|
|
207
210
|
* @param {string} [authorization] Bearer Token
|
|
208
|
-
* @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] PBM product the documents belongs to.
|
|
209
211
|
* @param {*} [options] Override http request option.
|
|
210
212
|
* @throws {RequiredError}
|
|
211
213
|
*/
|
|
212
|
-
listSearchableDocuments: function (searchText, ownerIds,
|
|
213
|
-
return localVarFp.listSearchableDocuments(searchText, ownerIds,
|
|
214
|
+
listSearchableDocuments: function (searchText, ownerIds, product, authorization, options) {
|
|
215
|
+
return localVarFp.listSearchableDocuments(searchText, ownerIds, product, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
214
216
|
},
|
|
215
217
|
};
|
|
216
218
|
};
|
|
@@ -227,7 +229,7 @@ var SearchableDocumentsApi = /** @class */ (function (_super) {
|
|
|
227
229
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
228
230
|
}
|
|
229
231
|
/**
|
|
230
|
-
* Returns a list of searchable documents you have previously created.
|
|
232
|
+
* 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.
|
|
231
233
|
* @summary List searchable documents
|
|
232
234
|
* @param {SearchableDocumentsApiListSearchableDocumentsRequest} requestParameters Request parameters.
|
|
233
235
|
* @param {*} [options] Override http request option.
|
|
@@ -236,7 +238,7 @@ var SearchableDocumentsApi = /** @class */ (function (_super) {
|
|
|
236
238
|
*/
|
|
237
239
|
SearchableDocumentsApi.prototype.listSearchableDocuments = function (requestParameters, options) {
|
|
238
240
|
var _this = this;
|
|
239
|
-
return (0, exports.SearchableDocumentsApiFp)(this.configuration).listSearchableDocuments(requestParameters.searchText, requestParameters.ownerIds, requestParameters.
|
|
241
|
+
return (0, exports.SearchableDocumentsApiFp)(this.configuration).listSearchableDocuments(requestParameters.searchText, requestParameters.ownerIds, requestParameters.product, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
240
242
|
};
|
|
241
243
|
return SearchableDocumentsApi;
|
|
242
244
|
}(base_1.BaseAPI));
|
|
@@ -45,11 +45,11 @@ export interface CreateDocTemplateRequestDto {
|
|
|
45
45
|
* @type {string}
|
|
46
46
|
* @memberof CreateDocTemplateRequestDto
|
|
47
47
|
*/
|
|
48
|
-
'productSlug'
|
|
48
|
+
'productSlug': string;
|
|
49
49
|
/**
|
|
50
50
|
* The filename of the document template as it appears when sent to customers.
|
|
51
51
|
* @type {string}
|
|
52
52
|
* @memberof CreateDocTemplateRequestDto
|
|
53
53
|
*/
|
|
54
|
-
'label'
|
|
54
|
+
'label': string;
|
|
55
55
|
}
|