@openfilz-sdk/typescript-ee 1.4.4 → 1.5.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 +20 -0
- package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -1
- package/README.md +20 -2
- package/api/digital-signature-api.ts +405 -0
- package/api/digital-signature-public-api.ts +463 -0
- package/api.ts +2 -0
- package/dist/api/digital-signature-api.d.ts +188 -0
- package/dist/api/digital-signature-api.js +395 -0
- package/dist/api/digital-signature-public-api.d.ts +213 -0
- package/dist/api/digital-signature-public-api.js +446 -0
- package/dist/api.d.ts +2 -0
- package/dist/api.js +2 -0
- package/dist/esm/api/digital-signature-api.d.ts +188 -0
- package/dist/esm/api/digital-signature-api.js +388 -0
- package/dist/esm/api/digital-signature-public-api.d.ts +213 -0
- package/dist/esm/api/digital-signature-public-api.js +439 -0
- package/dist/esm/api.d.ts +2 -0
- package/dist/esm/api.js +2 -0
- package/dist/esm/models/apply-signature-request.d.ts +15 -0
- package/dist/esm/models/apply-signature-request.js +14 -0
- package/dist/esm/models/create-signature-envelope-request.d.ts +19 -0
- package/dist/esm/models/create-signature-envelope-request.js +14 -0
- package/dist/esm/models/decline-signature-request.d.ts +14 -0
- package/dist/esm/models/decline-signature-request.js +14 -0
- package/dist/esm/models/enriched-audit-log.d.ts +7 -0
- package/dist/esm/models/enriched-audit-log.js +8 -1
- package/dist/esm/models/index.d.ts +8 -0
- package/dist/esm/models/index.js +8 -0
- package/dist/esm/models/notification-dto.d.ts +3 -0
- package/dist/esm/models/notification-dto.js +4 -1
- package/dist/esm/models/public-signature-view.d.ts +44 -0
- package/dist/esm/models/public-signature-view.js +27 -0
- package/dist/esm/models/search-by-audit-log-request.d.ts +7 -0
- package/dist/esm/models/search-by-audit-log-request.js +8 -1
- package/dist/esm/models/signature-envelope-dto.d.ts +34 -0
- package/dist/esm/models/signature-envelope-dto.js +21 -0
- package/dist/esm/models/signature-field-placement.d.ts +18 -0
- package/dist/esm/models/signature-field-placement.js +14 -0
- package/dist/esm/models/signature-recipient-dto.d.ts +29 -0
- package/dist/esm/models/signature-recipient-dto.js +19 -0
- package/dist/esm/models/signature-recipient-input.d.ts +18 -0
- package/dist/esm/models/signature-recipient-input.js +14 -0
- package/dist/models/apply-signature-request.d.ts +15 -0
- package/dist/models/apply-signature-request.js +15 -0
- package/dist/models/create-signature-envelope-request.d.ts +19 -0
- package/dist/models/create-signature-envelope-request.js +15 -0
- package/dist/models/decline-signature-request.d.ts +14 -0
- package/dist/models/decline-signature-request.js +15 -0
- package/dist/models/enriched-audit-log.d.ts +7 -0
- package/dist/models/enriched-audit-log.js +8 -1
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/dist/models/notification-dto.d.ts +3 -0
- package/dist/models/notification-dto.js +4 -1
- package/dist/models/public-signature-view.d.ts +44 -0
- package/dist/models/public-signature-view.js +30 -0
- package/dist/models/search-by-audit-log-request.d.ts +7 -0
- package/dist/models/search-by-audit-log-request.js +8 -1
- package/dist/models/signature-envelope-dto.d.ts +34 -0
- package/dist/models/signature-envelope-dto.js +24 -0
- package/dist/models/signature-field-placement.d.ts +18 -0
- package/dist/models/signature-field-placement.js +15 -0
- package/dist/models/signature-recipient-dto.d.ts +29 -0
- package/dist/models/signature-recipient-dto.js +22 -0
- package/dist/models/signature-recipient-input.d.ts +18 -0
- package/dist/models/signature-recipient-input.js +15 -0
- package/docs/ApplySignatureRequest.md +22 -0
- package/docs/CreateSignatureEnvelopeRequest.md +28 -0
- package/docs/DeclineSignatureRequest.md +20 -0
- package/docs/DigitalSignatureApi.md +249 -0
- package/docs/DigitalSignaturePublicApi.md +276 -0
- package/docs/PublicSignatureView.md +48 -0
- package/docs/SignatureEnvelopeDTO.md +40 -0
- package/docs/SignatureFieldPlacement.md +28 -0
- package/docs/SignatureRecipientDTO.md +36 -0
- package/docs/SignatureRecipientInput.md +26 -0
- package/models/apply-signature-request.ts +21 -0
- package/models/create-signature-envelope-request.ts +27 -0
- package/models/decline-signature-request.ts +20 -0
- package/models/enriched-audit-log.ts +8 -1
- package/models/index.ts +8 -0
- package/models/notification-dto.ts +4 -1
- package/models/public-signature-view.ts +54 -0
- package/models/search-by-audit-log-request.ts +8 -1
- package/models/signature-envelope-dto.ts +45 -0
- package/models/signature-field-placement.ts +24 -0
- package/models/signature-recipient-dto.ts +38 -0
- package/models/signature-recipient-input.ts +26 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -9,6 +9,8 @@ api/comments-api.ts
|
|
|
9
9
|
api/dashboard-api.ts
|
|
10
10
|
api/delegated-browse-grants-admin-api.ts
|
|
11
11
|
api/delegated-browse-grants-end-user-api.ts
|
|
12
|
+
api/digital-signature-api.ts
|
|
13
|
+
api/digital-signature-public-api.ts
|
|
12
14
|
api/document-controller-api.ts
|
|
13
15
|
api/document-suggestion-controller-api.ts
|
|
14
16
|
api/favorites-api.ts
|
|
@@ -27,6 +29,7 @@ base.ts
|
|
|
27
29
|
common.ts
|
|
28
30
|
configuration.ts
|
|
29
31
|
docs/AncestorInfo.md
|
|
32
|
+
docs/ApplySignatureRequest.md
|
|
30
33
|
docs/AuditLogDetails.md
|
|
31
34
|
docs/AuditVerificationResult.md
|
|
32
35
|
docs/BrokenLink.md
|
|
@@ -43,9 +46,11 @@ docs/CreateCommentRequest.md
|
|
|
43
46
|
docs/CreateDelegatedGrantRequest.md
|
|
44
47
|
docs/CreateFolderAudit.md
|
|
45
48
|
docs/CreateFolderRequest.md
|
|
49
|
+
docs/CreateSignatureEnvelopeRequest.md
|
|
46
50
|
docs/CreateTeamRequest.md
|
|
47
51
|
docs/DashboardApi.md
|
|
48
52
|
docs/DashboardStatisticsResponse.md
|
|
53
|
+
docs/DeclineSignatureRequest.md
|
|
49
54
|
docs/DelegatedBrowseGrantsAdminApi.md
|
|
50
55
|
docs/DelegatedBrowseGrantsEndUserApi.md
|
|
51
56
|
docs/DelegatedFolderNode.md
|
|
@@ -55,6 +60,8 @@ docs/DeleteMetadataAudit.md
|
|
|
55
60
|
docs/DeleteMetadataRequest.md
|
|
56
61
|
docs/DeleteRequest.md
|
|
57
62
|
docs/DeleteShareRequest.md
|
|
63
|
+
docs/DigitalSignatureApi.md
|
|
64
|
+
docs/DigitalSignaturePublicApi.md
|
|
58
65
|
docs/DocumentControllerApi.md
|
|
59
66
|
docs/DocumentInfo.md
|
|
60
67
|
docs/DocumentPosition.md
|
|
@@ -75,6 +82,7 @@ docs/MoveAudit.md
|
|
|
75
82
|
docs/MoveRequest.md
|
|
76
83
|
docs/NotificationDTO.md
|
|
77
84
|
docs/NotificationsApi.md
|
|
85
|
+
docs/PublicSignatureView.md
|
|
78
86
|
docs/RenameAudit.md
|
|
79
87
|
docs/RenameRequest.md
|
|
80
88
|
docs/ReplaceAudit.md
|
|
@@ -93,6 +101,10 @@ docs/ShareRequest.md
|
|
|
93
101
|
docs/ShareResultError.md
|
|
94
102
|
docs/ShareResultItem.md
|
|
95
103
|
docs/ShareResultResponse.md
|
|
104
|
+
docs/SignatureEnvelopeDTO.md
|
|
105
|
+
docs/SignatureFieldPlacement.md
|
|
106
|
+
docs/SignatureRecipientDTO.md
|
|
107
|
+
docs/SignatureRecipientInput.md
|
|
96
108
|
docs/SortInput.md
|
|
97
109
|
docs/StorageBreakdown.md
|
|
98
110
|
docs/Suggest.md
|
|
@@ -119,6 +131,7 @@ docs/WebhookProxyControllerApi.md
|
|
|
119
131
|
git_push.sh
|
|
120
132
|
index.ts
|
|
121
133
|
models/ancestor-info.ts
|
|
134
|
+
models/apply-signature-request.ts
|
|
122
135
|
models/audit-log-details.ts
|
|
123
136
|
models/audit-verification-result.ts
|
|
124
137
|
models/broken-link.ts
|
|
@@ -132,8 +145,10 @@ models/create-comment-request.ts
|
|
|
132
145
|
models/create-delegated-grant-request.ts
|
|
133
146
|
models/create-folder-audit.ts
|
|
134
147
|
models/create-folder-request.ts
|
|
148
|
+
models/create-signature-envelope-request.ts
|
|
135
149
|
models/create-team-request.ts
|
|
136
150
|
models/dashboard-statistics-response.ts
|
|
151
|
+
models/decline-signature-request.ts
|
|
137
152
|
models/delegated-folder-node.ts
|
|
138
153
|
models/delegated-grant-dto.ts
|
|
139
154
|
models/delete-audit.ts
|
|
@@ -156,6 +171,7 @@ models/mint-upload-token-request.ts
|
|
|
156
171
|
models/move-audit.ts
|
|
157
172
|
models/move-request.ts
|
|
158
173
|
models/notification-dto.ts
|
|
174
|
+
models/public-signature-view.ts
|
|
159
175
|
models/rename-audit.ts
|
|
160
176
|
models/rename-request.ts
|
|
161
177
|
models/replace-audit.ts
|
|
@@ -170,6 +186,10 @@ models/share-request.ts
|
|
|
170
186
|
models/share-result-error.ts
|
|
171
187
|
models/share-result-item.ts
|
|
172
188
|
models/share-result-response.ts
|
|
189
|
+
models/signature-envelope-dto.ts
|
|
190
|
+
models/signature-field-placement.ts
|
|
191
|
+
models/signature-recipient-dto.ts
|
|
192
|
+
models/signature-recipient-input.ts
|
|
173
193
|
models/sort-input.ts
|
|
174
194
|
models/storage-breakdown.ts
|
|
175
195
|
models/suggest.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
d05bceb7c52480a5bb12f3093c993a0e89d0f939a11e7ce539e823d5c30fe070
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @openfilz-sdk/typescript-ee@1.
|
|
1
|
+
## @openfilz-sdk/typescript-ee@1.5.0
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @openfilz-sdk/typescript-ee@1.
|
|
39
|
+
npm install @openfilz-sdk/typescript-ee@1.5.0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -83,6 +83,16 @@ Class | Method | HTTP request | Description
|
|
|
83
83
|
*DelegatedBrowseGrantsEndUserApi* | [**disableLinkedWebhook**](docs/DelegatedBrowseGrantsEndUserApi.md#disablelinkedwebhook) | **POST** /api/v1/users/me/delegated/grants/{id}/disable-webhook | Disable the webhook created from this grant
|
|
84
84
|
*DelegatedBrowseGrantsEndUserApi* | [**listIncoming**](docs/DelegatedBrowseGrantsEndUserApi.md#listincoming) | **GET** /api/v1/users/me/delegated/grants | List grants addressed to me
|
|
85
85
|
*DelegatedBrowseGrantsEndUserApi* | [**revoke**](docs/DelegatedBrowseGrantsEndUserApi.md#revoke) | **POST** /api/v1/users/me/delegated/grants/{id}/revoke | Revoke an accepted grant
|
|
86
|
+
*DigitalSignatureApi* | [**cancel**](docs/DigitalSignatureApi.md#cancel) | **POST** /api/v1/signatures/{id}/cancel | Cancel a non-terminal envelope
|
|
87
|
+
*DigitalSignatureApi* | [**create**](docs/DigitalSignatureApi.md#create) | **POST** /api/v1/signatures | Create and send a signature envelope
|
|
88
|
+
*DigitalSignatureApi* | [**get1**](docs/DigitalSignatureApi.md#get1) | **GET** /api/v1/signatures/{id} | Get a single envelope I sent
|
|
89
|
+
*DigitalSignatureApi* | [**listSent**](docs/DigitalSignatureApi.md#listsent) | **GET** /api/v1/signatures | List envelopes I sent for signature
|
|
90
|
+
*DigitalSignatureApi* | [**listToSign**](docs/DigitalSignatureApi.md#listtosign) | **GET** /api/v1/signatures/to-sign | List documents waiting for my signature
|
|
91
|
+
*DigitalSignaturePublicApi* | [**decline1**](docs/DigitalSignaturePublicApi.md#decline1) | **POST** /api/v1/public/signatures/decline | Decline to sign (voids the envelope)
|
|
92
|
+
*DigitalSignaturePublicApi* | [**document**](docs/DigitalSignaturePublicApi.md#document) | **GET** /api/v1/public/signatures/document | Stream the source PDF for signing
|
|
93
|
+
*DigitalSignaturePublicApi* | [**markViewed**](docs/DigitalSignaturePublicApi.md#markviewed) | **POST** /api/v1/public/signatures/viewed | Record that the recipient opened the document
|
|
94
|
+
*DigitalSignaturePublicApi* | [**sign**](docs/DigitalSignaturePublicApi.md#sign) | **POST** /api/v1/public/signatures/sign | Apply the recipient\'s signature
|
|
95
|
+
*DigitalSignaturePublicApi* | [**view**](docs/DigitalSignaturePublicApi.md#view) | **GET** /api/v1/public/signatures | Resolve a signing token to its envelope view
|
|
86
96
|
*DocumentControllerApi* | [**createBlankDocument**](docs/DocumentControllerApi.md#createblankdocument) | **POST** /api/v1/documents/create-blank | Create a blank document from template
|
|
87
97
|
*DocumentControllerApi* | [**deleteDocumentMetadata**](docs/DocumentControllerApi.md#deletedocumentmetadata) | **DELETE** /api/v1/documents/{documentId}/metadata | Delete specific metadata keys
|
|
88
98
|
*DocumentControllerApi* | [**downloadDocument**](docs/DocumentControllerApi.md#downloaddocument) | **GET** /api/v1/documents/{documentId}/download | Download a document
|
|
@@ -157,6 +167,7 @@ Class | Method | HTTP request | Description
|
|
|
157
167
|
### Documentation For Models
|
|
158
168
|
|
|
159
169
|
- [AncestorInfo](docs/AncestorInfo.md)
|
|
170
|
+
- [ApplySignatureRequest](docs/ApplySignatureRequest.md)
|
|
160
171
|
- [AuditLogDetails](docs/AuditLogDetails.md)
|
|
161
172
|
- [AuditVerificationResult](docs/AuditVerificationResult.md)
|
|
162
173
|
- [BrokenLink](docs/BrokenLink.md)
|
|
@@ -170,8 +181,10 @@ Class | Method | HTTP request | Description
|
|
|
170
181
|
- [CreateDelegatedGrantRequest](docs/CreateDelegatedGrantRequest.md)
|
|
171
182
|
- [CreateFolderAudit](docs/CreateFolderAudit.md)
|
|
172
183
|
- [CreateFolderRequest](docs/CreateFolderRequest.md)
|
|
184
|
+
- [CreateSignatureEnvelopeRequest](docs/CreateSignatureEnvelopeRequest.md)
|
|
173
185
|
- [CreateTeamRequest](docs/CreateTeamRequest.md)
|
|
174
186
|
- [DashboardStatisticsResponse](docs/DashboardStatisticsResponse.md)
|
|
187
|
+
- [DeclineSignatureRequest](docs/DeclineSignatureRequest.md)
|
|
175
188
|
- [DelegatedFolderNode](docs/DelegatedFolderNode.md)
|
|
176
189
|
- [DelegatedGrantDTO](docs/DelegatedGrantDTO.md)
|
|
177
190
|
- [DeleteAudit](docs/DeleteAudit.md)
|
|
@@ -193,6 +206,7 @@ Class | Method | HTTP request | Description
|
|
|
193
206
|
- [MoveAudit](docs/MoveAudit.md)
|
|
194
207
|
- [MoveRequest](docs/MoveRequest.md)
|
|
195
208
|
- [NotificationDTO](docs/NotificationDTO.md)
|
|
209
|
+
- [PublicSignatureView](docs/PublicSignatureView.md)
|
|
196
210
|
- [RenameAudit](docs/RenameAudit.md)
|
|
197
211
|
- [RenameRequest](docs/RenameRequest.md)
|
|
198
212
|
- [ReplaceAudit](docs/ReplaceAudit.md)
|
|
@@ -207,6 +221,10 @@ Class | Method | HTTP request | Description
|
|
|
207
221
|
- [ShareResultError](docs/ShareResultError.md)
|
|
208
222
|
- [ShareResultItem](docs/ShareResultItem.md)
|
|
209
223
|
- [ShareResultResponse](docs/ShareResultResponse.md)
|
|
224
|
+
- [SignatureEnvelopeDTO](docs/SignatureEnvelopeDTO.md)
|
|
225
|
+
- [SignatureFieldPlacement](docs/SignatureFieldPlacement.md)
|
|
226
|
+
- [SignatureRecipientDTO](docs/SignatureRecipientDTO.md)
|
|
227
|
+
- [SignatureRecipientInput](docs/SignatureRecipientInput.md)
|
|
210
228
|
- [SortInput](docs/SortInput.md)
|
|
211
229
|
- [StorageBreakdown](docs/StorageBreakdown.md)
|
|
212
230
|
- [Suggest](docs/Suggest.md)
|
|
@@ -0,0 +1,405 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* openfilz-api
|
|
5
|
+
* API for Document Management System
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import type { Configuration } from '../configuration';
|
|
17
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
18
|
+
import globalAxios from 'axios';
|
|
19
|
+
// Some imports not used depending on template conditions
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, replaceWithSerializableTypeIfNeeded } from '../common';
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
import type { CreateSignatureEnvelopeRequest } from '../models';
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
import type { SignatureEnvelopeDTO } from '../models';
|
|
28
|
+
/**
|
|
29
|
+
* DigitalSignatureApi - axios parameter creator
|
|
30
|
+
*/
|
|
31
|
+
export const DigitalSignatureApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
32
|
+
return {
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @summary Cancel a non-terminal envelope
|
|
36
|
+
* @param {string} id
|
|
37
|
+
* @param {*} [options] Override http request option.
|
|
38
|
+
* @throws {RequiredError}
|
|
39
|
+
*/
|
|
40
|
+
cancel: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
41
|
+
// verify required parameter 'id' is not null or undefined
|
|
42
|
+
assertParamExists('cancel', 'id', id)
|
|
43
|
+
const localVarPath = `/api/v1/signatures/{id}/cancel`
|
|
44
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
45
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
46
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
47
|
+
let baseOptions;
|
|
48
|
+
if (configuration) {
|
|
49
|
+
baseOptions = configuration.baseOptions;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
53
|
+
const localVarHeaderParameter = {} as any;
|
|
54
|
+
const localVarQueryParameter = {} as any;
|
|
55
|
+
|
|
56
|
+
// authentication keycloak_auth required
|
|
57
|
+
// http bearer authentication required
|
|
58
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
59
|
+
|
|
60
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
61
|
+
|
|
62
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
63
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
64
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
65
|
+
|
|
66
|
+
return {
|
|
67
|
+
url: toPathString(localVarUrlObj),
|
|
68
|
+
options: localVarRequestOptions,
|
|
69
|
+
};
|
|
70
|
+
},
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @summary Create and send a signature envelope
|
|
74
|
+
* @param {CreateSignatureEnvelopeRequest} createSignatureEnvelopeRequest
|
|
75
|
+
* @param {*} [options] Override http request option.
|
|
76
|
+
* @throws {RequiredError}
|
|
77
|
+
*/
|
|
78
|
+
create: async (createSignatureEnvelopeRequest: CreateSignatureEnvelopeRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
79
|
+
// verify required parameter 'createSignatureEnvelopeRequest' is not null or undefined
|
|
80
|
+
assertParamExists('create', 'createSignatureEnvelopeRequest', createSignatureEnvelopeRequest)
|
|
81
|
+
const localVarPath = `/api/v1/signatures`;
|
|
82
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
83
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
84
|
+
let baseOptions;
|
|
85
|
+
if (configuration) {
|
|
86
|
+
baseOptions = configuration.baseOptions;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
90
|
+
const localVarHeaderParameter = {} as any;
|
|
91
|
+
const localVarQueryParameter = {} as any;
|
|
92
|
+
|
|
93
|
+
// authentication keycloak_auth required
|
|
94
|
+
// http bearer authentication required
|
|
95
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
96
|
+
|
|
97
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
98
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
99
|
+
|
|
100
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
101
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
102
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
103
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createSignatureEnvelopeRequest, localVarRequestOptions, configuration)
|
|
104
|
+
|
|
105
|
+
return {
|
|
106
|
+
url: toPathString(localVarUrlObj),
|
|
107
|
+
options: localVarRequestOptions,
|
|
108
|
+
};
|
|
109
|
+
},
|
|
110
|
+
/**
|
|
111
|
+
*
|
|
112
|
+
* @summary Get a single envelope I sent
|
|
113
|
+
* @param {string} id
|
|
114
|
+
* @param {*} [options] Override http request option.
|
|
115
|
+
* @throws {RequiredError}
|
|
116
|
+
*/
|
|
117
|
+
get1: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
118
|
+
// verify required parameter 'id' is not null or undefined
|
|
119
|
+
assertParamExists('get1', 'id', id)
|
|
120
|
+
const localVarPath = `/api/v1/signatures/{id}`
|
|
121
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
122
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
123
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
124
|
+
let baseOptions;
|
|
125
|
+
if (configuration) {
|
|
126
|
+
baseOptions = configuration.baseOptions;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
130
|
+
const localVarHeaderParameter = {} as any;
|
|
131
|
+
const localVarQueryParameter = {} as any;
|
|
132
|
+
|
|
133
|
+
// authentication keycloak_auth required
|
|
134
|
+
// http bearer authentication required
|
|
135
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
136
|
+
|
|
137
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
138
|
+
|
|
139
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
140
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
141
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
142
|
+
|
|
143
|
+
return {
|
|
144
|
+
url: toPathString(localVarUrlObj),
|
|
145
|
+
options: localVarRequestOptions,
|
|
146
|
+
};
|
|
147
|
+
},
|
|
148
|
+
/**
|
|
149
|
+
*
|
|
150
|
+
* @summary List envelopes I sent for signature
|
|
151
|
+
* @param {*} [options] Override http request option.
|
|
152
|
+
* @throws {RequiredError}
|
|
153
|
+
*/
|
|
154
|
+
listSent: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
155
|
+
const localVarPath = `/api/v1/signatures`;
|
|
156
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
157
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
158
|
+
let baseOptions;
|
|
159
|
+
if (configuration) {
|
|
160
|
+
baseOptions = configuration.baseOptions;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
164
|
+
const localVarHeaderParameter = {} as any;
|
|
165
|
+
const localVarQueryParameter = {} as any;
|
|
166
|
+
|
|
167
|
+
// authentication keycloak_auth required
|
|
168
|
+
// http bearer authentication required
|
|
169
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
170
|
+
|
|
171
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
172
|
+
|
|
173
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
174
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
175
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
176
|
+
|
|
177
|
+
return {
|
|
178
|
+
url: toPathString(localVarUrlObj),
|
|
179
|
+
options: localVarRequestOptions,
|
|
180
|
+
};
|
|
181
|
+
},
|
|
182
|
+
/**
|
|
183
|
+
*
|
|
184
|
+
* @summary List documents waiting for my signature
|
|
185
|
+
* @param {*} [options] Override http request option.
|
|
186
|
+
* @throws {RequiredError}
|
|
187
|
+
*/
|
|
188
|
+
listToSign: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
189
|
+
const localVarPath = `/api/v1/signatures/to-sign`;
|
|
190
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
191
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
192
|
+
let baseOptions;
|
|
193
|
+
if (configuration) {
|
|
194
|
+
baseOptions = configuration.baseOptions;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
198
|
+
const localVarHeaderParameter = {} as any;
|
|
199
|
+
const localVarQueryParameter = {} as any;
|
|
200
|
+
|
|
201
|
+
// authentication keycloak_auth required
|
|
202
|
+
// http bearer authentication required
|
|
203
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
204
|
+
|
|
205
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
206
|
+
|
|
207
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
208
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
209
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
210
|
+
|
|
211
|
+
return {
|
|
212
|
+
url: toPathString(localVarUrlObj),
|
|
213
|
+
options: localVarRequestOptions,
|
|
214
|
+
};
|
|
215
|
+
},
|
|
216
|
+
}
|
|
217
|
+
};
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* DigitalSignatureApi - functional programming interface
|
|
221
|
+
*/
|
|
222
|
+
export const DigitalSignatureApiFp = function(configuration?: Configuration) {
|
|
223
|
+
const localVarAxiosParamCreator = DigitalSignatureApiAxiosParamCreator(configuration)
|
|
224
|
+
return {
|
|
225
|
+
/**
|
|
226
|
+
*
|
|
227
|
+
* @summary Cancel a non-terminal envelope
|
|
228
|
+
* @param {string} id
|
|
229
|
+
* @param {*} [options] Override http request option.
|
|
230
|
+
* @throws {RequiredError}
|
|
231
|
+
*/
|
|
232
|
+
async cancel(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SignatureEnvelopeDTO>> {
|
|
233
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.cancel(id, options);
|
|
234
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
235
|
+
const localVarOperationServerBasePath = operationServerMap['DigitalSignatureApi.cancel']?.[localVarOperationServerIndex]?.url;
|
|
236
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
237
|
+
},
|
|
238
|
+
/**
|
|
239
|
+
*
|
|
240
|
+
* @summary Create and send a signature envelope
|
|
241
|
+
* @param {CreateSignatureEnvelopeRequest} createSignatureEnvelopeRequest
|
|
242
|
+
* @param {*} [options] Override http request option.
|
|
243
|
+
* @throws {RequiredError}
|
|
244
|
+
*/
|
|
245
|
+
async create(createSignatureEnvelopeRequest: CreateSignatureEnvelopeRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SignatureEnvelopeDTO>> {
|
|
246
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.create(createSignatureEnvelopeRequest, options);
|
|
247
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
248
|
+
const localVarOperationServerBasePath = operationServerMap['DigitalSignatureApi.create']?.[localVarOperationServerIndex]?.url;
|
|
249
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
250
|
+
},
|
|
251
|
+
/**
|
|
252
|
+
*
|
|
253
|
+
* @summary Get a single envelope I sent
|
|
254
|
+
* @param {string} id
|
|
255
|
+
* @param {*} [options] Override http request option.
|
|
256
|
+
* @throws {RequiredError}
|
|
257
|
+
*/
|
|
258
|
+
async get1(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SignatureEnvelopeDTO>> {
|
|
259
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.get1(id, options);
|
|
260
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
261
|
+
const localVarOperationServerBasePath = operationServerMap['DigitalSignatureApi.get1']?.[localVarOperationServerIndex]?.url;
|
|
262
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
263
|
+
},
|
|
264
|
+
/**
|
|
265
|
+
*
|
|
266
|
+
* @summary List envelopes I sent for signature
|
|
267
|
+
* @param {*} [options] Override http request option.
|
|
268
|
+
* @throws {RequiredError}
|
|
269
|
+
*/
|
|
270
|
+
async listSent(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SignatureEnvelopeDTO>>> {
|
|
271
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSent(options);
|
|
272
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
273
|
+
const localVarOperationServerBasePath = operationServerMap['DigitalSignatureApi.listSent']?.[localVarOperationServerIndex]?.url;
|
|
274
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
275
|
+
},
|
|
276
|
+
/**
|
|
277
|
+
*
|
|
278
|
+
* @summary List documents waiting for my signature
|
|
279
|
+
* @param {*} [options] Override http request option.
|
|
280
|
+
* @throws {RequiredError}
|
|
281
|
+
*/
|
|
282
|
+
async listToSign(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SignatureEnvelopeDTO>>> {
|
|
283
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listToSign(options);
|
|
284
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
285
|
+
const localVarOperationServerBasePath = operationServerMap['DigitalSignatureApi.listToSign']?.[localVarOperationServerIndex]?.url;
|
|
286
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
287
|
+
},
|
|
288
|
+
}
|
|
289
|
+
};
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* DigitalSignatureApi - factory interface
|
|
293
|
+
*/
|
|
294
|
+
export const DigitalSignatureApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
295
|
+
const localVarFp = DigitalSignatureApiFp(configuration)
|
|
296
|
+
return {
|
|
297
|
+
/**
|
|
298
|
+
*
|
|
299
|
+
* @summary Cancel a non-terminal envelope
|
|
300
|
+
* @param {string} id
|
|
301
|
+
* @param {*} [options] Override http request option.
|
|
302
|
+
* @throws {RequiredError}
|
|
303
|
+
*/
|
|
304
|
+
cancel(id: string, options?: RawAxiosRequestConfig): AxiosPromise<SignatureEnvelopeDTO> {
|
|
305
|
+
return localVarFp.cancel(id, options).then((request) => request(axios, basePath));
|
|
306
|
+
},
|
|
307
|
+
/**
|
|
308
|
+
*
|
|
309
|
+
* @summary Create and send a signature envelope
|
|
310
|
+
* @param {CreateSignatureEnvelopeRequest} createSignatureEnvelopeRequest
|
|
311
|
+
* @param {*} [options] Override http request option.
|
|
312
|
+
* @throws {RequiredError}
|
|
313
|
+
*/
|
|
314
|
+
create(createSignatureEnvelopeRequest: CreateSignatureEnvelopeRequest, options?: RawAxiosRequestConfig): AxiosPromise<SignatureEnvelopeDTO> {
|
|
315
|
+
return localVarFp.create(createSignatureEnvelopeRequest, options).then((request) => request(axios, basePath));
|
|
316
|
+
},
|
|
317
|
+
/**
|
|
318
|
+
*
|
|
319
|
+
* @summary Get a single envelope I sent
|
|
320
|
+
* @param {string} id
|
|
321
|
+
* @param {*} [options] Override http request option.
|
|
322
|
+
* @throws {RequiredError}
|
|
323
|
+
*/
|
|
324
|
+
get1(id: string, options?: RawAxiosRequestConfig): AxiosPromise<SignatureEnvelopeDTO> {
|
|
325
|
+
return localVarFp.get1(id, options).then((request) => request(axios, basePath));
|
|
326
|
+
},
|
|
327
|
+
/**
|
|
328
|
+
*
|
|
329
|
+
* @summary List envelopes I sent for signature
|
|
330
|
+
* @param {*} [options] Override http request option.
|
|
331
|
+
* @throws {RequiredError}
|
|
332
|
+
*/
|
|
333
|
+
listSent(options?: RawAxiosRequestConfig): AxiosPromise<Array<SignatureEnvelopeDTO>> {
|
|
334
|
+
return localVarFp.listSent(options).then((request) => request(axios, basePath));
|
|
335
|
+
},
|
|
336
|
+
/**
|
|
337
|
+
*
|
|
338
|
+
* @summary List documents waiting for my signature
|
|
339
|
+
* @param {*} [options] Override http request option.
|
|
340
|
+
* @throws {RequiredError}
|
|
341
|
+
*/
|
|
342
|
+
listToSign(options?: RawAxiosRequestConfig): AxiosPromise<Array<SignatureEnvelopeDTO>> {
|
|
343
|
+
return localVarFp.listToSign(options).then((request) => request(axios, basePath));
|
|
344
|
+
},
|
|
345
|
+
};
|
|
346
|
+
};
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* DigitalSignatureApi - object-oriented interface
|
|
350
|
+
*/
|
|
351
|
+
export class DigitalSignatureApi extends BaseAPI {
|
|
352
|
+
/**
|
|
353
|
+
*
|
|
354
|
+
* @summary Cancel a non-terminal envelope
|
|
355
|
+
* @param {string} id
|
|
356
|
+
* @param {*} [options] Override http request option.
|
|
357
|
+
* @throws {RequiredError}
|
|
358
|
+
*/
|
|
359
|
+
public cancel(id: string, options?: RawAxiosRequestConfig) {
|
|
360
|
+
return DigitalSignatureApiFp(this.configuration).cancel(id, options).then((request) => request(this.axios, this.basePath));
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
/**
|
|
364
|
+
*
|
|
365
|
+
* @summary Create and send a signature envelope
|
|
366
|
+
* @param {CreateSignatureEnvelopeRequest} createSignatureEnvelopeRequest
|
|
367
|
+
* @param {*} [options] Override http request option.
|
|
368
|
+
* @throws {RequiredError}
|
|
369
|
+
*/
|
|
370
|
+
public create(createSignatureEnvelopeRequest: CreateSignatureEnvelopeRequest, options?: RawAxiosRequestConfig) {
|
|
371
|
+
return DigitalSignatureApiFp(this.configuration).create(createSignatureEnvelopeRequest, options).then((request) => request(this.axios, this.basePath));
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
/**
|
|
375
|
+
*
|
|
376
|
+
* @summary Get a single envelope I sent
|
|
377
|
+
* @param {string} id
|
|
378
|
+
* @param {*} [options] Override http request option.
|
|
379
|
+
* @throws {RequiredError}
|
|
380
|
+
*/
|
|
381
|
+
public get1(id: string, options?: RawAxiosRequestConfig) {
|
|
382
|
+
return DigitalSignatureApiFp(this.configuration).get1(id, options).then((request) => request(this.axios, this.basePath));
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
/**
|
|
386
|
+
*
|
|
387
|
+
* @summary List envelopes I sent for signature
|
|
388
|
+
* @param {*} [options] Override http request option.
|
|
389
|
+
* @throws {RequiredError}
|
|
390
|
+
*/
|
|
391
|
+
public listSent(options?: RawAxiosRequestConfig) {
|
|
392
|
+
return DigitalSignatureApiFp(this.configuration).listSent(options).then((request) => request(this.axios, this.basePath));
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
/**
|
|
396
|
+
*
|
|
397
|
+
* @summary List documents waiting for my signature
|
|
398
|
+
* @param {*} [options] Override http request option.
|
|
399
|
+
* @throws {RequiredError}
|
|
400
|
+
*/
|
|
401
|
+
public listToSign(options?: RawAxiosRequestConfig) {
|
|
402
|
+
return DigitalSignatureApiFp(this.configuration).listToSign(options).then((request) => request(this.axios, this.basePath));
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
|