@emilgroup/document-sdk 1.27.1-beta.0 → 1.27.1-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +0 -36
- package/README.md +2 -2
- package/api/document-templates-api.ts +71 -67
- package/api/documents-api.ts +29 -39
- package/api/docx-templates-api.ts +12 -24
- package/api/layouts-api.ts +10 -20
- package/api/product-documents-api.ts +8 -14
- package/api/search-keywords-api.ts +2 -4
- package/api/searchable-document-owners-api.ts +2 -4
- package/api/searchable-documents-api.ts +16 -16
- package/dist/api/document-templates-api.d.ts +54 -59
- package/dist/api/document-templates-api.js +47 -34
- package/dist/api/documents-api.d.ts +31 -37
- package/dist/api/documents-api.js +11 -9
- package/dist/api/docx-templates-api.d.ts +18 -24
- package/dist/api/layouts-api.d.ts +15 -20
- package/dist/api/product-documents-api.d.ts +12 -15
- 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 +12 -13
- package/dist/api/searchable-documents-api.js +11 -9
- 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 -36
- package/dist/models/index.js +0 -36
- 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/product-document-class.d.ts +12 -0
- 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 -36
- package/models/list-searchable-document-owners-request-dto.ts +1 -11
- package/models/list-searchable-documents-request-dto.ts +1 -11
- package/models/product-document-class.ts +12 -0
- 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-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/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-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/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
package/.openapi-generator/FILES
CHANGED
|
@@ -18,64 +18,28 @@ configuration.ts
|
|
|
18
18
|
git_push.sh
|
|
19
19
|
index.ts
|
|
20
20
|
models/create-doc-template-request-dto.ts
|
|
21
|
-
models/create-doc-template-response-class.ts
|
|
22
21
|
models/create-document-request-dto.ts
|
|
23
|
-
models/create-document-sync-response-class.ts
|
|
24
22
|
models/create-html-template-dto.ts
|
|
25
23
|
models/create-layout-request-dto.ts
|
|
26
|
-
models/create-layout-response-class.ts
|
|
27
24
|
models/create-presigned-post-request-dto.ts
|
|
28
|
-
models/create-presigned-post-response-class.ts
|
|
29
25
|
models/delete-layout-request-dto.ts
|
|
30
26
|
models/delete-product-document-request-dto.ts
|
|
31
27
|
models/delete-request-dto.ts
|
|
32
|
-
models/delete-response-class.ts
|
|
33
|
-
models/doc-template-class.ts
|
|
34
|
-
models/document-class.ts
|
|
35
|
-
models/docx-template-class.ts
|
|
36
|
-
models/download-document-request-dto.ts
|
|
37
|
-
models/get-doc-template-request-dto.ts
|
|
38
|
-
models/get-doc-template-response-class.ts
|
|
39
|
-
models/get-document-download-url-response-class.ts
|
|
40
|
-
models/get-docx-template-download-url-response-class.ts
|
|
41
|
-
models/get-docx-template-response-class.ts
|
|
42
28
|
models/get-layout-request-dto.ts
|
|
43
|
-
models/get-layout-response-class.ts
|
|
44
|
-
models/get-product-document-download-url-response-class.ts
|
|
45
|
-
models/get-product-document-response-class.ts
|
|
46
|
-
models/get-signed-s3-key-url-response-class.ts
|
|
47
|
-
models/grpc-create-doc-template-request-dto.ts
|
|
48
|
-
models/grpc-update-doc-template-request-dto.ts
|
|
49
|
-
models/html-template-class.ts
|
|
50
29
|
models/index.ts
|
|
51
30
|
models/inline-response200.ts
|
|
52
31
|
models/inline-response503.ts
|
|
53
|
-
models/layout-class.ts
|
|
54
|
-
models/list-doc-template-request-dto.ts
|
|
55
|
-
models/list-doc-templates-response-class.ts
|
|
56
|
-
models/list-documents-response-class.ts
|
|
57
|
-
models/list-docx-templates-response-class.ts
|
|
58
|
-
models/list-layouts-response-class.ts
|
|
59
32
|
models/list-product-documents-response-class.ts
|
|
60
33
|
models/list-request-dto.ts
|
|
61
34
|
models/list-search-keywords-request-dto.ts
|
|
62
|
-
models/list-search-keywords-response-class.ts
|
|
63
35
|
models/list-searchable-document-owners-request-dto.ts
|
|
64
|
-
models/list-searchable-document-owners-response-class.ts
|
|
65
36
|
models/list-searchable-documents-request-dto.ts
|
|
66
|
-
models/list-searchable-documents-response-class.ts
|
|
67
37
|
models/product-document-class.ts
|
|
68
|
-
models/searchable-document-class.ts
|
|
69
|
-
models/searchable-document-owner-class.ts
|
|
70
38
|
models/shared-update-docx-template-request-dto.ts
|
|
71
39
|
models/update-doc-template-request-dto.ts
|
|
72
|
-
models/update-doc-template-response-class.ts
|
|
73
40
|
models/update-document-request-dto.ts
|
|
74
|
-
models/update-document-response-class.ts
|
|
75
|
-
models/update-docx-template-response-class.ts
|
|
76
41
|
models/update-html-template-dto.ts
|
|
77
42
|
models/update-layout-request-dto.ts
|
|
78
|
-
models/update-layout-response-class.ts
|
|
79
43
|
models/upload-docx-template-request-dto.ts
|
|
80
44
|
models/upload-product-document-request-dto.ts
|
|
81
45
|
package.json
|
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/document-sdk@1.27.1-beta.
|
|
20
|
+
npm install @emilgroup/document-sdk@1.27.1-beta.2 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/document-sdk@1.27.1-beta.
|
|
24
|
+
yarn add @emilgroup/document-sdk@1.27.1-beta.2
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `DocumentsApi`.
|
|
@@ -23,17 +23,7 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
|
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
import { CreateDocTemplateRequestDto } from '../models';
|
|
25
25
|
// @ts-ignore
|
|
26
|
-
import { CreateDocTemplateResponseClass } from '../models';
|
|
27
|
-
// @ts-ignore
|
|
28
|
-
import { DeleteResponseClass } from '../models';
|
|
29
|
-
// @ts-ignore
|
|
30
|
-
import { GetDocTemplateResponseClass } from '../models';
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
import { ListDocTemplatesResponseClass } from '../models';
|
|
33
|
-
// @ts-ignore
|
|
34
26
|
import { UpdateDocTemplateRequestDto } from '../models';
|
|
35
|
-
// @ts-ignore
|
|
36
|
-
import { UpdateDocTemplateResponseClass } from '../models';
|
|
37
27
|
/**
|
|
38
28
|
* DocumentTemplatesApi - axios parameter creator
|
|
39
29
|
* @export
|
|
@@ -136,14 +126,16 @@ export const DocumentTemplatesApiAxiosParamCreator = function (configuration?: C
|
|
|
136
126
|
* Retrieves the details of the document template that was previously created. Supply the unique document template id that was returned when you created it and Emil Api will return the corresponding document template information.
|
|
137
127
|
* @summary Retrieve the document template
|
|
138
128
|
* @param {number} id
|
|
129
|
+
* @param {string} expand Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
139
130
|
* @param {string} [authorization] Bearer Token
|
|
140
|
-
* @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
141
131
|
* @param {*} [options] Override http request option.
|
|
142
132
|
* @throws {RequiredError}
|
|
143
133
|
*/
|
|
144
|
-
getDocTemplate: async (id: number,
|
|
134
|
+
getDocTemplate: async (id: number, expand: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
145
135
|
// verify required parameter 'id' is not null or undefined
|
|
146
136
|
assertParamExists('getDocTemplate', 'id', id)
|
|
137
|
+
// verify required parameter 'expand' is not null or undefined
|
|
138
|
+
assertParamExists('getDocTemplate', 'expand', expand)
|
|
147
139
|
const localVarPath = `/documentservice/v1/doc-templates/{id}`
|
|
148
140
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
149
141
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -185,17 +177,29 @@ export const DocumentTemplatesApiAxiosParamCreator = function (configuration?: C
|
|
|
185
177
|
/**
|
|
186
178
|
* Returns a list of document templates you have previously created. The document templates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
187
179
|
* @summary List document templates
|
|
180
|
+
* @param {number} pageSize A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
181
|
+
* @param {string} pageToken A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
182
|
+
* @param {string} filter Filter response by productSlug, slug and name.
|
|
183
|
+
* @param {string} search Search document templates by name | slug
|
|
184
|
+
* @param {string} order Order response by createdAt.
|
|
185
|
+
* @param {string} expand Expand response by bodyTemplate.
|
|
188
186
|
* @param {string} [authorization] Bearer Token
|
|
189
|
-
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
190
|
-
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
191
|
-
* @param {string} [filter] Filter response by productSlug, slug and name.
|
|
192
|
-
* @param {string} [search] Search document templates by name | slug
|
|
193
|
-
* @param {string} [order] Order response by createdAt.
|
|
194
|
-
* @param {string} [expand] Expand response by bodyTemplate.
|
|
195
187
|
* @param {*} [options] Override http request option.
|
|
196
188
|
* @throws {RequiredError}
|
|
197
189
|
*/
|
|
198
|
-
listDocTemplates: async (
|
|
190
|
+
listDocTemplates: async (pageSize: number, pageToken: string, filter: string, search: string, order: string, expand: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
191
|
+
// verify required parameter 'pageSize' is not null or undefined
|
|
192
|
+
assertParamExists('listDocTemplates', 'pageSize', pageSize)
|
|
193
|
+
// verify required parameter 'pageToken' is not null or undefined
|
|
194
|
+
assertParamExists('listDocTemplates', 'pageToken', pageToken)
|
|
195
|
+
// verify required parameter 'filter' is not null or undefined
|
|
196
|
+
assertParamExists('listDocTemplates', 'filter', filter)
|
|
197
|
+
// verify required parameter 'search' is not null or undefined
|
|
198
|
+
assertParamExists('listDocTemplates', 'search', search)
|
|
199
|
+
// verify required parameter 'order' is not null or undefined
|
|
200
|
+
assertParamExists('listDocTemplates', 'order', order)
|
|
201
|
+
// verify required parameter 'expand' is not null or undefined
|
|
202
|
+
assertParamExists('listDocTemplates', 'expand', expand)
|
|
199
203
|
const localVarPath = `/documentservice/v1/doc-templates`;
|
|
200
204
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
201
205
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -322,7 +326,7 @@ export const DocumentTemplatesApiFp = function(configuration?: Configuration) {
|
|
|
322
326
|
* @param {*} [options] Override http request option.
|
|
323
327
|
* @throws {RequiredError}
|
|
324
328
|
*/
|
|
325
|
-
async createDocTemplate(createDocTemplateRequestDto: CreateDocTemplateRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
329
|
+
async createDocTemplate(createDocTemplateRequestDto: CreateDocTemplateRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
326
330
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createDocTemplate(createDocTemplateRequestDto, authorization, options);
|
|
327
331
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
328
332
|
},
|
|
@@ -334,7 +338,7 @@ export const DocumentTemplatesApiFp = function(configuration?: Configuration) {
|
|
|
334
338
|
* @param {*} [options] Override http request option.
|
|
335
339
|
* @throws {RequiredError}
|
|
336
340
|
*/
|
|
337
|
-
async deleteDocTemplate(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
341
|
+
async deleteDocTemplate(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
338
342
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDocTemplate(id, authorization, options);
|
|
339
343
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
340
344
|
},
|
|
@@ -342,30 +346,30 @@ export const DocumentTemplatesApiFp = function(configuration?: Configuration) {
|
|
|
342
346
|
* Retrieves the details of the document template that was previously created. Supply the unique document template id that was returned when you created it and Emil Api will return the corresponding document template information.
|
|
343
347
|
* @summary Retrieve the document template
|
|
344
348
|
* @param {number} id
|
|
349
|
+
* @param {string} expand Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
345
350
|
* @param {string} [authorization] Bearer Token
|
|
346
|
-
* @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
347
351
|
* @param {*} [options] Override http request option.
|
|
348
352
|
* @throws {RequiredError}
|
|
349
353
|
*/
|
|
350
|
-
async getDocTemplate(id: number,
|
|
351
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getDocTemplate(id,
|
|
354
|
+
async getDocTemplate(id: number, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
355
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getDocTemplate(id, expand, authorization, options);
|
|
352
356
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
353
357
|
},
|
|
354
358
|
/**
|
|
355
359
|
* Returns a list of document templates you have previously created. The document templates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
356
360
|
* @summary List document templates
|
|
361
|
+
* @param {number} pageSize A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
362
|
+
* @param {string} pageToken A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
363
|
+
* @param {string} filter Filter response by productSlug, slug and name.
|
|
364
|
+
* @param {string} search Search document templates by name | slug
|
|
365
|
+
* @param {string} order Order response by createdAt.
|
|
366
|
+
* @param {string} expand Expand response by bodyTemplate.
|
|
357
367
|
* @param {string} [authorization] Bearer Token
|
|
358
|
-
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
359
|
-
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
360
|
-
* @param {string} [filter] Filter response by productSlug, slug and name.
|
|
361
|
-
* @param {string} [search] Search document templates by name | slug
|
|
362
|
-
* @param {string} [order] Order response by createdAt.
|
|
363
|
-
* @param {string} [expand] Expand response by bodyTemplate.
|
|
364
368
|
* @param {*} [options] Override http request option.
|
|
365
369
|
* @throws {RequiredError}
|
|
366
370
|
*/
|
|
367
|
-
async listDocTemplates(
|
|
368
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listDocTemplates(
|
|
371
|
+
async listDocTemplates(pageSize: number, pageToken: string, filter: string, search: string, order: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
372
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listDocTemplates(pageSize, pageToken, filter, search, order, expand, authorization, options);
|
|
369
373
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
370
374
|
},
|
|
371
375
|
/**
|
|
@@ -377,7 +381,7 @@ export const DocumentTemplatesApiFp = function(configuration?: Configuration) {
|
|
|
377
381
|
* @param {*} [options] Override http request option.
|
|
378
382
|
* @throws {RequiredError}
|
|
379
383
|
*/
|
|
380
|
-
async updateDocTemplate(id: number, updateDocTemplateRequestDto: UpdateDocTemplateRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
384
|
+
async updateDocTemplate(id: number, updateDocTemplateRequestDto: UpdateDocTemplateRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
381
385
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateDocTemplate(id, updateDocTemplateRequestDto, authorization, options);
|
|
382
386
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
383
387
|
},
|
|
@@ -399,7 +403,7 @@ export const DocumentTemplatesApiFactory = function (configuration?: Configurati
|
|
|
399
403
|
* @param {*} [options] Override http request option.
|
|
400
404
|
* @throws {RequiredError}
|
|
401
405
|
*/
|
|
402
|
-
createDocTemplate(createDocTemplateRequestDto: CreateDocTemplateRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
406
|
+
createDocTemplate(createDocTemplateRequestDto: CreateDocTemplateRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
|
|
403
407
|
return localVarFp.createDocTemplate(createDocTemplateRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
404
408
|
},
|
|
405
409
|
/**
|
|
@@ -410,36 +414,36 @@ export const DocumentTemplatesApiFactory = function (configuration?: Configurati
|
|
|
410
414
|
* @param {*} [options] Override http request option.
|
|
411
415
|
* @throws {RequiredError}
|
|
412
416
|
*/
|
|
413
|
-
deleteDocTemplate(id: number, authorization?: string, options?: any): AxiosPromise<
|
|
417
|
+
deleteDocTemplate(id: number, authorization?: string, options?: any): AxiosPromise<void> {
|
|
414
418
|
return localVarFp.deleteDocTemplate(id, authorization, options).then((request) => request(axios, basePath));
|
|
415
419
|
},
|
|
416
420
|
/**
|
|
417
421
|
* Retrieves the details of the document template that was previously created. Supply the unique document template id that was returned when you created it and Emil Api will return the corresponding document template information.
|
|
418
422
|
* @summary Retrieve the document template
|
|
419
423
|
* @param {number} id
|
|
424
|
+
* @param {string} expand Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
420
425
|
* @param {string} [authorization] Bearer Token
|
|
421
|
-
* @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
422
426
|
* @param {*} [options] Override http request option.
|
|
423
427
|
* @throws {RequiredError}
|
|
424
428
|
*/
|
|
425
|
-
getDocTemplate(id: number,
|
|
426
|
-
return localVarFp.getDocTemplate(id,
|
|
429
|
+
getDocTemplate(id: number, expand: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
430
|
+
return localVarFp.getDocTemplate(id, expand, authorization, options).then((request) => request(axios, basePath));
|
|
427
431
|
},
|
|
428
432
|
/**
|
|
429
433
|
* Returns a list of document templates you have previously created. The document templates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
430
434
|
* @summary List document templates
|
|
435
|
+
* @param {number} pageSize A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
436
|
+
* @param {string} pageToken A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
437
|
+
* @param {string} filter Filter response by productSlug, slug and name.
|
|
438
|
+
* @param {string} search Search document templates by name | slug
|
|
439
|
+
* @param {string} order Order response by createdAt.
|
|
440
|
+
* @param {string} expand Expand response by bodyTemplate.
|
|
431
441
|
* @param {string} [authorization] Bearer Token
|
|
432
|
-
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
433
|
-
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
434
|
-
* @param {string} [filter] Filter response by productSlug, slug and name.
|
|
435
|
-
* @param {string} [search] Search document templates by name | slug
|
|
436
|
-
* @param {string} [order] Order response by createdAt.
|
|
437
|
-
* @param {string} [expand] Expand response by bodyTemplate.
|
|
438
442
|
* @param {*} [options] Override http request option.
|
|
439
443
|
* @throws {RequiredError}
|
|
440
444
|
*/
|
|
441
|
-
listDocTemplates(
|
|
442
|
-
return localVarFp.listDocTemplates(
|
|
445
|
+
listDocTemplates(pageSize: number, pageToken: string, filter: string, search: string, order: string, expand: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
446
|
+
return localVarFp.listDocTemplates(pageSize, pageToken, filter, search, order, expand, authorization, options).then((request) => request(axios, basePath));
|
|
443
447
|
},
|
|
444
448
|
/**
|
|
445
449
|
* Updates the specified document template by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
@@ -450,7 +454,7 @@ export const DocumentTemplatesApiFactory = function (configuration?: Configurati
|
|
|
450
454
|
* @param {*} [options] Override http request option.
|
|
451
455
|
* @throws {RequiredError}
|
|
452
456
|
*/
|
|
453
|
-
updateDocTemplate(id: number, updateDocTemplateRequestDto: UpdateDocTemplateRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
457
|
+
updateDocTemplate(id: number, updateDocTemplateRequestDto: UpdateDocTemplateRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
|
|
454
458
|
return localVarFp.updateDocTemplate(id, updateDocTemplateRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
455
459
|
},
|
|
456
460
|
};
|
|
@@ -512,18 +516,18 @@ export interface DocumentTemplatesApiGetDocTemplateRequest {
|
|
|
512
516
|
readonly id: number
|
|
513
517
|
|
|
514
518
|
/**
|
|
515
|
-
*
|
|
519
|
+
* Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
516
520
|
* @type {string}
|
|
517
521
|
* @memberof DocumentTemplatesApiGetDocTemplate
|
|
518
522
|
*/
|
|
519
|
-
readonly
|
|
523
|
+
readonly expand: string
|
|
520
524
|
|
|
521
525
|
/**
|
|
522
|
-
*
|
|
526
|
+
* Bearer Token
|
|
523
527
|
* @type {string}
|
|
524
528
|
* @memberof DocumentTemplatesApiGetDocTemplate
|
|
525
529
|
*/
|
|
526
|
-
readonly
|
|
530
|
+
readonly authorization?: string
|
|
527
531
|
}
|
|
528
532
|
|
|
529
533
|
/**
|
|
@@ -532,54 +536,54 @@ export interface DocumentTemplatesApiGetDocTemplateRequest {
|
|
|
532
536
|
* @interface DocumentTemplatesApiListDocTemplatesRequest
|
|
533
537
|
*/
|
|
534
538
|
export interface DocumentTemplatesApiListDocTemplatesRequest {
|
|
535
|
-
/**
|
|
536
|
-
* Bearer Token
|
|
537
|
-
* @type {string}
|
|
538
|
-
* @memberof DocumentTemplatesApiListDocTemplates
|
|
539
|
-
*/
|
|
540
|
-
readonly authorization?: string
|
|
541
|
-
|
|
542
539
|
/**
|
|
543
540
|
* A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
544
541
|
* @type {number}
|
|
545
542
|
* @memberof DocumentTemplatesApiListDocTemplates
|
|
546
543
|
*/
|
|
547
|
-
readonly pageSize
|
|
544
|
+
readonly pageSize: number
|
|
548
545
|
|
|
549
546
|
/**
|
|
550
547
|
* A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
551
548
|
* @type {string}
|
|
552
549
|
* @memberof DocumentTemplatesApiListDocTemplates
|
|
553
550
|
*/
|
|
554
|
-
readonly pageToken
|
|
551
|
+
readonly pageToken: string
|
|
555
552
|
|
|
556
553
|
/**
|
|
557
554
|
* Filter response by productSlug, slug and name.
|
|
558
555
|
* @type {string}
|
|
559
556
|
* @memberof DocumentTemplatesApiListDocTemplates
|
|
560
557
|
*/
|
|
561
|
-
readonly filter
|
|
558
|
+
readonly filter: string
|
|
562
559
|
|
|
563
560
|
/**
|
|
564
561
|
* Search document templates by name | slug
|
|
565
562
|
* @type {string}
|
|
566
563
|
* @memberof DocumentTemplatesApiListDocTemplates
|
|
567
564
|
*/
|
|
568
|
-
readonly search
|
|
565
|
+
readonly search: string
|
|
569
566
|
|
|
570
567
|
/**
|
|
571
568
|
* Order response by createdAt.
|
|
572
569
|
* @type {string}
|
|
573
570
|
* @memberof DocumentTemplatesApiListDocTemplates
|
|
574
571
|
*/
|
|
575
|
-
readonly order
|
|
572
|
+
readonly order: string
|
|
576
573
|
|
|
577
574
|
/**
|
|
578
575
|
* Expand response by bodyTemplate.
|
|
579
576
|
* @type {string}
|
|
580
577
|
* @memberof DocumentTemplatesApiListDocTemplates
|
|
581
578
|
*/
|
|
582
|
-
readonly expand
|
|
579
|
+
readonly expand: string
|
|
580
|
+
|
|
581
|
+
/**
|
|
582
|
+
* Bearer Token
|
|
583
|
+
* @type {string}
|
|
584
|
+
* @memberof DocumentTemplatesApiListDocTemplates
|
|
585
|
+
*/
|
|
586
|
+
readonly authorization?: string
|
|
583
587
|
}
|
|
584
588
|
|
|
585
589
|
/**
|
|
@@ -650,7 +654,7 @@ export class DocumentTemplatesApi extends BaseAPI {
|
|
|
650
654
|
* @memberof DocumentTemplatesApi
|
|
651
655
|
*/
|
|
652
656
|
public getDocTemplate(requestParameters: DocumentTemplatesApiGetDocTemplateRequest, options?: AxiosRequestConfig) {
|
|
653
|
-
return DocumentTemplatesApiFp(this.configuration).getDocTemplate(requestParameters.id, requestParameters.
|
|
657
|
+
return DocumentTemplatesApiFp(this.configuration).getDocTemplate(requestParameters.id, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
654
658
|
}
|
|
655
659
|
|
|
656
660
|
/**
|
|
@@ -661,8 +665,8 @@ export class DocumentTemplatesApi extends BaseAPI {
|
|
|
661
665
|
* @throws {RequiredError}
|
|
662
666
|
* @memberof DocumentTemplatesApi
|
|
663
667
|
*/
|
|
664
|
-
public listDocTemplates(requestParameters: DocumentTemplatesApiListDocTemplatesRequest
|
|
665
|
-
return DocumentTemplatesApiFp(this.configuration).listDocTemplates(requestParameters.
|
|
668
|
+
public listDocTemplates(requestParameters: DocumentTemplatesApiListDocTemplatesRequest, options?: AxiosRequestConfig) {
|
|
669
|
+
return DocumentTemplatesApiFp(this.configuration).listDocTemplates(requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
666
670
|
}
|
|
667
671
|
|
|
668
672
|
/**
|
package/api/documents-api.ts
CHANGED
|
@@ -23,21 +23,9 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
|
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
import { CreateDocumentRequestDto } from '../models';
|
|
25
25
|
// @ts-ignore
|
|
26
|
-
import { CreateDocumentSyncResponseClass } from '../models';
|
|
27
|
-
// @ts-ignore
|
|
28
26
|
import { CreatePresignedPostRequestDto } from '../models';
|
|
29
27
|
// @ts-ignore
|
|
30
|
-
import { CreatePresignedPostResponseClass } from '../models';
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
import { GetDocumentDownloadUrlResponseClass } from '../models';
|
|
33
|
-
// @ts-ignore
|
|
34
|
-
import { GetSignedS3KeyUrlResponseClass } from '../models';
|
|
35
|
-
// @ts-ignore
|
|
36
|
-
import { ListDocumentsResponseClass } from '../models';
|
|
37
|
-
// @ts-ignore
|
|
38
28
|
import { UpdateDocumentRequestDto } from '../models';
|
|
39
|
-
// @ts-ignore
|
|
40
|
-
import { UpdateDocumentResponseClass } from '../models';
|
|
41
29
|
/**
|
|
42
30
|
* DocumentsApi - axios parameter creator
|
|
43
31
|
* @export
|
|
@@ -237,14 +225,16 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
237
225
|
* This will return a presigned URL for a random S3 key
|
|
238
226
|
* @summary Fetches a presigned URL for a S3 key
|
|
239
227
|
* @param {string} s3Key Key for the file in S3 bucket to create the presigned download URL for
|
|
228
|
+
* @param {'attachment' | 'inline'} contentDisposition Content disposition override. Default will be depending on the document type.
|
|
240
229
|
* @param {string} [authorization] Bearer Token
|
|
241
|
-
* @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
242
230
|
* @param {*} [options] Override http request option.
|
|
243
231
|
* @throws {RequiredError}
|
|
244
232
|
*/
|
|
245
|
-
getSignedS3keyUrl: async (s3Key: string,
|
|
233
|
+
getSignedS3keyUrl: async (s3Key: string, contentDisposition: 'attachment' | 'inline', authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
246
234
|
// verify required parameter 's3Key' is not null or undefined
|
|
247
235
|
assertParamExists('getSignedS3keyUrl', 's3Key', s3Key)
|
|
236
|
+
// verify required parameter 'contentDisposition' is not null or undefined
|
|
237
|
+
assertParamExists('getSignedS3keyUrl', 'contentDisposition', contentDisposition)
|
|
248
238
|
const localVarPath = `/documentservice/v1/documents/signed-s3-url`;
|
|
249
239
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
250
240
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -431,7 +421,7 @@ export const DocumentsApiFp = function(configuration?: Configuration) {
|
|
|
431
421
|
* @param {*} [options] Override http request option.
|
|
432
422
|
* @throws {RequiredError}
|
|
433
423
|
*/
|
|
434
|
-
async createDocument(createDocumentRequestDto: CreateDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
424
|
+
async createDocument(createDocumentRequestDto: CreateDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
435
425
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createDocument(createDocumentRequestDto, authorization, options);
|
|
436
426
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
437
427
|
},
|
|
@@ -443,7 +433,7 @@ export const DocumentsApiFp = function(configuration?: Configuration) {
|
|
|
443
433
|
* @param {*} [options] Override http request option.
|
|
444
434
|
* @throws {RequiredError}
|
|
445
435
|
*/
|
|
446
|
-
async createPresignedPost(createPresignedPostRequestDto: CreatePresignedPostRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
436
|
+
async createPresignedPost(createPresignedPostRequestDto: CreatePresignedPostRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
447
437
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createPresignedPost(createPresignedPostRequestDto, authorization, options);
|
|
448
438
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
449
439
|
},
|
|
@@ -455,7 +445,7 @@ export const DocumentsApiFp = function(configuration?: Configuration) {
|
|
|
455
445
|
* @param {*} [options] Override http request option.
|
|
456
446
|
* @throws {RequiredError}
|
|
457
447
|
*/
|
|
458
|
-
async deleteDocument(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
448
|
+
async deleteDocument(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
459
449
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDocument(code, authorization, options);
|
|
460
450
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
461
451
|
},
|
|
@@ -468,7 +458,7 @@ export const DocumentsApiFp = function(configuration?: Configuration) {
|
|
|
468
458
|
* @param {*} [options] Override http request option.
|
|
469
459
|
* @throws {RequiredError}
|
|
470
460
|
*/
|
|
471
|
-
async getDocumentDownloadUrl(code: string, authorization?: string, contentDisposition?: 'attachment' | 'inline', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
461
|
+
async getDocumentDownloadUrl(code: string, authorization?: string, contentDisposition?: 'attachment' | 'inline', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
472
462
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getDocumentDownloadUrl(code, authorization, contentDisposition, options);
|
|
473
463
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
474
464
|
},
|
|
@@ -476,13 +466,13 @@ export const DocumentsApiFp = function(configuration?: Configuration) {
|
|
|
476
466
|
* This will return a presigned URL for a random S3 key
|
|
477
467
|
* @summary Fetches a presigned URL for a S3 key
|
|
478
468
|
* @param {string} s3Key Key for the file in S3 bucket to create the presigned download URL for
|
|
469
|
+
* @param {'attachment' | 'inline'} contentDisposition Content disposition override. Default will be depending on the document type.
|
|
479
470
|
* @param {string} [authorization] Bearer Token
|
|
480
|
-
* @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
481
471
|
* @param {*} [options] Override http request option.
|
|
482
472
|
* @throws {RequiredError}
|
|
483
473
|
*/
|
|
484
|
-
async getSignedS3keyUrl(s3Key: string,
|
|
485
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getSignedS3keyUrl(s3Key,
|
|
474
|
+
async getSignedS3keyUrl(s3Key: string, contentDisposition: 'attachment' | 'inline', authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
475
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSignedS3keyUrl(s3Key, contentDisposition, authorization, options);
|
|
486
476
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
487
477
|
},
|
|
488
478
|
/**
|
|
@@ -499,7 +489,7 @@ export const DocumentsApiFp = function(configuration?: Configuration) {
|
|
|
499
489
|
* @param {*} [options] Override http request option.
|
|
500
490
|
* @throws {RequiredError}
|
|
501
491
|
*/
|
|
502
|
-
async listDocuments(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
492
|
+
async listDocuments(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>> {
|
|
503
493
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listDocuments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
504
494
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
505
495
|
},
|
|
@@ -512,7 +502,7 @@ export const DocumentsApiFp = function(configuration?: Configuration) {
|
|
|
512
502
|
* @param {*} [options] Override http request option.
|
|
513
503
|
* @throws {RequiredError}
|
|
514
504
|
*/
|
|
515
|
-
async updateDocument(code: string, updateDocumentRequestDto: UpdateDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
505
|
+
async updateDocument(code: string, updateDocumentRequestDto: UpdateDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
516
506
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateDocument(code, updateDocumentRequestDto, authorization, options);
|
|
517
507
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
518
508
|
},
|
|
@@ -534,7 +524,7 @@ export const DocumentsApiFactory = function (configuration?: Configuration, base
|
|
|
534
524
|
* @param {*} [options] Override http request option.
|
|
535
525
|
* @throws {RequiredError}
|
|
536
526
|
*/
|
|
537
|
-
createDocument(createDocumentRequestDto: CreateDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
527
|
+
createDocument(createDocumentRequestDto: CreateDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
|
|
538
528
|
return localVarFp.createDocument(createDocumentRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
539
529
|
},
|
|
540
530
|
/**
|
|
@@ -545,7 +535,7 @@ export const DocumentsApiFactory = function (configuration?: Configuration, base
|
|
|
545
535
|
* @param {*} [options] Override http request option.
|
|
546
536
|
* @throws {RequiredError}
|
|
547
537
|
*/
|
|
548
|
-
createPresignedPost(createPresignedPostRequestDto: CreatePresignedPostRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
538
|
+
createPresignedPost(createPresignedPostRequestDto: CreatePresignedPostRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
|
|
549
539
|
return localVarFp.createPresignedPost(createPresignedPostRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
550
540
|
},
|
|
551
541
|
/**
|
|
@@ -556,7 +546,7 @@ export const DocumentsApiFactory = function (configuration?: Configuration, base
|
|
|
556
546
|
* @param {*} [options] Override http request option.
|
|
557
547
|
* @throws {RequiredError}
|
|
558
548
|
*/
|
|
559
|
-
deleteDocument(code: string, authorization?: string, options?: any): AxiosPromise<
|
|
549
|
+
deleteDocument(code: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
560
550
|
return localVarFp.deleteDocument(code, authorization, options).then((request) => request(axios, basePath));
|
|
561
551
|
},
|
|
562
552
|
/**
|
|
@@ -568,20 +558,20 @@ export const DocumentsApiFactory = function (configuration?: Configuration, base
|
|
|
568
558
|
* @param {*} [options] Override http request option.
|
|
569
559
|
* @throws {RequiredError}
|
|
570
560
|
*/
|
|
571
|
-
getDocumentDownloadUrl(code: string, authorization?: string, contentDisposition?: 'attachment' | 'inline', options?: any): AxiosPromise<
|
|
561
|
+
getDocumentDownloadUrl(code: string, authorization?: string, contentDisposition?: 'attachment' | 'inline', options?: any): AxiosPromise<void> {
|
|
572
562
|
return localVarFp.getDocumentDownloadUrl(code, authorization, contentDisposition, options).then((request) => request(axios, basePath));
|
|
573
563
|
},
|
|
574
564
|
/**
|
|
575
565
|
* This will return a presigned URL for a random S3 key
|
|
576
566
|
* @summary Fetches a presigned URL for a S3 key
|
|
577
567
|
* @param {string} s3Key Key for the file in S3 bucket to create the presigned download URL for
|
|
568
|
+
* @param {'attachment' | 'inline'} contentDisposition Content disposition override. Default will be depending on the document type.
|
|
578
569
|
* @param {string} [authorization] Bearer Token
|
|
579
|
-
* @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
580
570
|
* @param {*} [options] Override http request option.
|
|
581
571
|
* @throws {RequiredError}
|
|
582
572
|
*/
|
|
583
|
-
getSignedS3keyUrl(s3Key: string,
|
|
584
|
-
return localVarFp.getSignedS3keyUrl(s3Key,
|
|
573
|
+
getSignedS3keyUrl(s3Key: string, contentDisposition: 'attachment' | 'inline', authorization?: string, options?: any): AxiosPromise<void> {
|
|
574
|
+
return localVarFp.getSignedS3keyUrl(s3Key, contentDisposition, authorization, options).then((request) => request(axios, basePath));
|
|
585
575
|
},
|
|
586
576
|
/**
|
|
587
577
|
* Returns a list of documents you have previously created. The documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
@@ -597,7 +587,7 @@ export const DocumentsApiFactory = function (configuration?: Configuration, base
|
|
|
597
587
|
* @param {*} [options] Override http request option.
|
|
598
588
|
* @throws {RequiredError}
|
|
599
589
|
*/
|
|
600
|
-
listDocuments(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<
|
|
590
|
+
listDocuments(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<void> {
|
|
601
591
|
return localVarFp.listDocuments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
602
592
|
},
|
|
603
593
|
/**
|
|
@@ -609,7 +599,7 @@ export const DocumentsApiFactory = function (configuration?: Configuration, base
|
|
|
609
599
|
* @param {*} [options] Override http request option.
|
|
610
600
|
* @throws {RequiredError}
|
|
611
601
|
*/
|
|
612
|
-
updateDocument(code: string, updateDocumentRequestDto: UpdateDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
602
|
+
updateDocument(code: string, updateDocumentRequestDto: UpdateDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
|
|
613
603
|
return localVarFp.updateDocument(code, updateDocumentRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
614
604
|
},
|
|
615
605
|
};
|
|
@@ -720,18 +710,18 @@ export interface DocumentsApiGetSignedS3keyUrlRequest {
|
|
|
720
710
|
readonly s3Key: string
|
|
721
711
|
|
|
722
712
|
/**
|
|
723
|
-
*
|
|
724
|
-
* @type {
|
|
713
|
+
* Content disposition override. Default will be depending on the document type.
|
|
714
|
+
* @type {'attachment' | 'inline'}
|
|
725
715
|
* @memberof DocumentsApiGetSignedS3keyUrl
|
|
726
716
|
*/
|
|
727
|
-
readonly
|
|
717
|
+
readonly contentDisposition: 'attachment' | 'inline'
|
|
728
718
|
|
|
729
719
|
/**
|
|
730
|
-
*
|
|
731
|
-
* @type {
|
|
720
|
+
* Bearer Token
|
|
721
|
+
* @type {string}
|
|
732
722
|
* @memberof DocumentsApiGetSignedS3keyUrl
|
|
733
723
|
*/
|
|
734
|
-
readonly
|
|
724
|
+
readonly authorization?: string
|
|
735
725
|
}
|
|
736
726
|
|
|
737
727
|
/**
|
|
@@ -889,7 +879,7 @@ export class DocumentsApi extends BaseAPI {
|
|
|
889
879
|
* @memberof DocumentsApi
|
|
890
880
|
*/
|
|
891
881
|
public getSignedS3keyUrl(requestParameters: DocumentsApiGetSignedS3keyUrlRequest, options?: AxiosRequestConfig) {
|
|
892
|
-
return DocumentsApiFp(this.configuration).getSignedS3keyUrl(requestParameters.s3Key, requestParameters.
|
|
882
|
+
return DocumentsApiFp(this.configuration).getSignedS3keyUrl(requestParameters.s3Key, requestParameters.contentDisposition, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
893
883
|
}
|
|
894
884
|
|
|
895
885
|
/**
|