@openfilz-sdk/typescript-ee 1.4.3 → 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.
Files changed (93) hide show
  1. package/.openapi-generator/FILES +20 -0
  2. package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -1
  3. package/README.md +20 -2
  4. package/api/digital-signature-api.ts +405 -0
  5. package/api/digital-signature-public-api.ts +463 -0
  6. package/api.ts +2 -0
  7. package/dist/api/digital-signature-api.d.ts +188 -0
  8. package/dist/api/digital-signature-api.js +395 -0
  9. package/dist/api/digital-signature-public-api.d.ts +213 -0
  10. package/dist/api/digital-signature-public-api.js +446 -0
  11. package/dist/api.d.ts +2 -0
  12. package/dist/api.js +2 -0
  13. package/dist/esm/api/digital-signature-api.d.ts +188 -0
  14. package/dist/esm/api/digital-signature-api.js +388 -0
  15. package/dist/esm/api/digital-signature-public-api.d.ts +213 -0
  16. package/dist/esm/api/digital-signature-public-api.js +439 -0
  17. package/dist/esm/api.d.ts +2 -0
  18. package/dist/esm/api.js +2 -0
  19. package/dist/esm/models/apply-signature-request.d.ts +15 -0
  20. package/dist/esm/models/apply-signature-request.js +14 -0
  21. package/dist/esm/models/create-signature-envelope-request.d.ts +19 -0
  22. package/dist/esm/models/create-signature-envelope-request.js +14 -0
  23. package/dist/esm/models/decline-signature-request.d.ts +14 -0
  24. package/dist/esm/models/decline-signature-request.js +14 -0
  25. package/dist/esm/models/enriched-audit-log.d.ts +7 -0
  26. package/dist/esm/models/enriched-audit-log.js +8 -1
  27. package/dist/esm/models/index.d.ts +8 -0
  28. package/dist/esm/models/index.js +8 -0
  29. package/dist/esm/models/mint-upload-token-request.d.ts +1 -0
  30. package/dist/esm/models/notification-dto.d.ts +3 -0
  31. package/dist/esm/models/notification-dto.js +4 -1
  32. package/dist/esm/models/public-signature-view.d.ts +44 -0
  33. package/dist/esm/models/public-signature-view.js +27 -0
  34. package/dist/esm/models/search-by-audit-log-request.d.ts +7 -0
  35. package/dist/esm/models/search-by-audit-log-request.js +8 -1
  36. package/dist/esm/models/signature-envelope-dto.d.ts +34 -0
  37. package/dist/esm/models/signature-envelope-dto.js +21 -0
  38. package/dist/esm/models/signature-field-placement.d.ts +18 -0
  39. package/dist/esm/models/signature-field-placement.js +14 -0
  40. package/dist/esm/models/signature-recipient-dto.d.ts +29 -0
  41. package/dist/esm/models/signature-recipient-dto.js +19 -0
  42. package/dist/esm/models/signature-recipient-input.d.ts +18 -0
  43. package/dist/esm/models/signature-recipient-input.js +14 -0
  44. package/dist/models/apply-signature-request.d.ts +15 -0
  45. package/dist/models/apply-signature-request.js +15 -0
  46. package/dist/models/create-signature-envelope-request.d.ts +19 -0
  47. package/dist/models/create-signature-envelope-request.js +15 -0
  48. package/dist/models/decline-signature-request.d.ts +14 -0
  49. package/dist/models/decline-signature-request.js +15 -0
  50. package/dist/models/enriched-audit-log.d.ts +7 -0
  51. package/dist/models/enriched-audit-log.js +8 -1
  52. package/dist/models/index.d.ts +8 -0
  53. package/dist/models/index.js +8 -0
  54. package/dist/models/mint-upload-token-request.d.ts +1 -0
  55. package/dist/models/notification-dto.d.ts +3 -0
  56. package/dist/models/notification-dto.js +4 -1
  57. package/dist/models/public-signature-view.d.ts +44 -0
  58. package/dist/models/public-signature-view.js +30 -0
  59. package/dist/models/search-by-audit-log-request.d.ts +7 -0
  60. package/dist/models/search-by-audit-log-request.js +8 -1
  61. package/dist/models/signature-envelope-dto.d.ts +34 -0
  62. package/dist/models/signature-envelope-dto.js +24 -0
  63. package/dist/models/signature-field-placement.d.ts +18 -0
  64. package/dist/models/signature-field-placement.js +15 -0
  65. package/dist/models/signature-recipient-dto.d.ts +29 -0
  66. package/dist/models/signature-recipient-dto.js +22 -0
  67. package/dist/models/signature-recipient-input.d.ts +18 -0
  68. package/dist/models/signature-recipient-input.js +15 -0
  69. package/docs/ApplySignatureRequest.md +22 -0
  70. package/docs/CreateSignatureEnvelopeRequest.md +28 -0
  71. package/docs/DeclineSignatureRequest.md +20 -0
  72. package/docs/DigitalSignatureApi.md +249 -0
  73. package/docs/DigitalSignaturePublicApi.md +276 -0
  74. package/docs/MintUploadTokenRequest.md +2 -0
  75. package/docs/PublicSignatureView.md +48 -0
  76. package/docs/SignatureEnvelopeDTO.md +40 -0
  77. package/docs/SignatureFieldPlacement.md +28 -0
  78. package/docs/SignatureRecipientDTO.md +36 -0
  79. package/docs/SignatureRecipientInput.md +26 -0
  80. package/models/apply-signature-request.ts +21 -0
  81. package/models/create-signature-envelope-request.ts +27 -0
  82. package/models/decline-signature-request.ts +20 -0
  83. package/models/enriched-audit-log.ts +8 -1
  84. package/models/index.ts +8 -0
  85. package/models/mint-upload-token-request.ts +1 -0
  86. package/models/notification-dto.ts +4 -1
  87. package/models/public-signature-view.ts +54 -0
  88. package/models/search-by-audit-log-request.ts +8 -1
  89. package/models/signature-envelope-dto.ts +45 -0
  90. package/models/signature-field-placement.ts +24 -0
  91. package/models/signature-recipient-dto.ts +38 -0
  92. package/models/signature-recipient-input.ts +26 -0
  93. package/package.json +1 -1
@@ -0,0 +1,34 @@
1
+ /**
2
+ * openfilz-api
3
+ * API for Document Management System
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { SignatureRecipientDTO } from './signature-recipient-dto';
13
+ export interface SignatureEnvelopeDTO {
14
+ 'id'?: string;
15
+ 'title'?: string;
16
+ 'message'?: string;
17
+ 'sourceDocId'?: string;
18
+ 'signedDocId'?: string;
19
+ 'status'?: SignatureEnvelopeDTOStatusEnum;
20
+ 'initiatorEmail'?: string;
21
+ 'createdAt'?: string;
22
+ 'completedAt'?: string;
23
+ 'expiresAt'?: string;
24
+ 'recipients'?: Array<SignatureRecipientDTO>;
25
+ }
26
+ export declare const SignatureEnvelopeDTOStatusEnum: {
27
+ readonly Draft: "DRAFT";
28
+ readonly Sent: "SENT";
29
+ readonly Completed: "COMPLETED";
30
+ readonly Declined: "DECLINED";
31
+ readonly Cancelled: "CANCELLED";
32
+ readonly Expired: "EXPIRED";
33
+ };
34
+ export type SignatureEnvelopeDTOStatusEnum = typeof SignatureEnvelopeDTOStatusEnum[keyof typeof SignatureEnvelopeDTOStatusEnum];
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * openfilz-api
6
+ * API for Document Management System
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.SignatureEnvelopeDTOStatusEnum = void 0;
17
+ exports.SignatureEnvelopeDTOStatusEnum = {
18
+ Draft: 'DRAFT',
19
+ Sent: 'SENT',
20
+ Completed: 'COMPLETED',
21
+ Declined: 'DECLINED',
22
+ Cancelled: 'CANCELLED',
23
+ Expired: 'EXPIRED'
24
+ };
@@ -0,0 +1,18 @@
1
+ /**
2
+ * openfilz-api
3
+ * API for Document Management System
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ export interface SignatureFieldPlacement {
13
+ 'page': number;
14
+ 'x': number;
15
+ 'y': number;
16
+ 'w': number;
17
+ 'h': number;
18
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * openfilz-api
6
+ * API for Document Management System
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,29 @@
1
+ /**
2
+ * openfilz-api
3
+ * API for Document Management System
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ export interface SignatureRecipientDTO {
13
+ 'id'?: string;
14
+ 'userId'?: string;
15
+ 'name'?: string;
16
+ 'email'?: string;
17
+ 'orderIndex'?: number;
18
+ 'status'?: SignatureRecipientDTOStatusEnum;
19
+ 'viewedAt'?: string;
20
+ 'signedAt'?: string;
21
+ 'declineReason'?: string;
22
+ }
23
+ export declare const SignatureRecipientDTOStatusEnum: {
24
+ readonly Pending: "PENDING";
25
+ readonly Viewed: "VIEWED";
26
+ readonly Signed: "SIGNED";
27
+ readonly Declined: "DECLINED";
28
+ };
29
+ export type SignatureRecipientDTOStatusEnum = typeof SignatureRecipientDTOStatusEnum[keyof typeof SignatureRecipientDTOStatusEnum];
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * openfilz-api
6
+ * API for Document Management System
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.SignatureRecipientDTOStatusEnum = void 0;
17
+ exports.SignatureRecipientDTOStatusEnum = {
18
+ Pending: 'PENDING',
19
+ Viewed: 'VIEWED',
20
+ Signed: 'SIGNED',
21
+ Declined: 'DECLINED'
22
+ };
@@ -0,0 +1,18 @@
1
+ /**
2
+ * openfilz-api
3
+ * API for Document Management System
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { SignatureFieldPlacement } from './signature-field-placement';
13
+ export interface SignatureRecipientInput {
14
+ 'userId'?: string;
15
+ 'name'?: string;
16
+ 'email': string;
17
+ 'field': SignatureFieldPlacement;
18
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * openfilz-api
6
+ * API for Document Management System
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,22 @@
1
+ # ApplySignatureRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **signatureImage** | **string** | | [optional] [default to undefined]
9
+ **typedName** | **string** | | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { ApplySignatureRequest } from '@openfilz-sdk/typescript-ee';
15
+
16
+ const instance: ApplySignatureRequest = {
17
+ signatureImage,
18
+ typedName,
19
+ };
20
+ ```
21
+
22
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,28 @@
1
+ # CreateSignatureEnvelopeRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **sourceDocId** | **string** | | [default to undefined]
9
+ **title** | **string** | | [default to undefined]
10
+ **message** | **string** | | [optional] [default to undefined]
11
+ **recipients** | [**Array&lt;SignatureRecipientInput&gt;**](SignatureRecipientInput.md) | | [default to undefined]
12
+ **expiresInDays** | **number** | | [optional] [default to undefined]
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import { CreateSignatureEnvelopeRequest } from '@openfilz-sdk/typescript-ee';
18
+
19
+ const instance: CreateSignatureEnvelopeRequest = {
20
+ sourceDocId,
21
+ title,
22
+ message,
23
+ recipients,
24
+ expiresInDays,
25
+ };
26
+ ```
27
+
28
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,20 @@
1
+ # DeclineSignatureRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **reason** | **string** | | [optional] [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { DeclineSignatureRequest } from '@openfilz-sdk/typescript-ee';
14
+
15
+ const instance: DeclineSignatureRequest = {
16
+ reason,
17
+ };
18
+ ```
19
+
20
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,249 @@
1
+ # DigitalSignatureApi
2
+
3
+ All URIs are relative to *http://localhost:8081*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**cancel**](#cancel) | **POST** /api/v1/signatures/{id}/cancel | Cancel a non-terminal envelope|
8
+ |[**create**](#create) | **POST** /api/v1/signatures | Create and send a signature envelope|
9
+ |[**get1**](#get1) | **GET** /api/v1/signatures/{id} | Get a single envelope I sent|
10
+ |[**listSent**](#listsent) | **GET** /api/v1/signatures | List envelopes I sent for signature|
11
+ |[**listToSign**](#listtosign) | **GET** /api/v1/signatures/to-sign | List documents waiting for my signature|
12
+
13
+ # **cancel**
14
+ > SignatureEnvelopeDTO cancel()
15
+
16
+
17
+ ### Example
18
+
19
+ ```typescript
20
+ import {
21
+ DigitalSignatureApi,
22
+ Configuration
23
+ } from '@openfilz-sdk/typescript-ee';
24
+
25
+ const configuration = new Configuration();
26
+ const apiInstance = new DigitalSignatureApi(configuration);
27
+
28
+ let id: string; // (default to undefined)
29
+
30
+ const { status, data } = await apiInstance.cancel(
31
+ id
32
+ );
33
+ ```
34
+
35
+ ### Parameters
36
+
37
+ |Name | Type | Description | Notes|
38
+ |------------- | ------------- | ------------- | -------------|
39
+ | **id** | [**string**] | | defaults to undefined|
40
+
41
+
42
+ ### Return type
43
+
44
+ **SignatureEnvelopeDTO**
45
+
46
+ ### Authorization
47
+
48
+ [keycloak_auth](../README.md#keycloak_auth)
49
+
50
+ ### HTTP request headers
51
+
52
+ - **Content-Type**: Not defined
53
+ - **Accept**: application/json
54
+
55
+
56
+ ### HTTP response details
57
+ | Status code | Description | Response headers |
58
+ |-------------|-------------|------------------|
59
+ |**200** | OK | - |
60
+
61
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
62
+
63
+ # **create**
64
+ > SignatureEnvelopeDTO create(createSignatureEnvelopeRequest)
65
+
66
+
67
+ ### Example
68
+
69
+ ```typescript
70
+ import {
71
+ DigitalSignatureApi,
72
+ Configuration,
73
+ CreateSignatureEnvelopeRequest
74
+ } from '@openfilz-sdk/typescript-ee';
75
+
76
+ const configuration = new Configuration();
77
+ const apiInstance = new DigitalSignatureApi(configuration);
78
+
79
+ let createSignatureEnvelopeRequest: CreateSignatureEnvelopeRequest; //
80
+
81
+ const { status, data } = await apiInstance.create(
82
+ createSignatureEnvelopeRequest
83
+ );
84
+ ```
85
+
86
+ ### Parameters
87
+
88
+ |Name | Type | Description | Notes|
89
+ |------------- | ------------- | ------------- | -------------|
90
+ | **createSignatureEnvelopeRequest** | **CreateSignatureEnvelopeRequest**| | |
91
+
92
+
93
+ ### Return type
94
+
95
+ **SignatureEnvelopeDTO**
96
+
97
+ ### Authorization
98
+
99
+ [keycloak_auth](../README.md#keycloak_auth)
100
+
101
+ ### HTTP request headers
102
+
103
+ - **Content-Type**: application/json
104
+ - **Accept**: application/json
105
+
106
+
107
+ ### HTTP response details
108
+ | Status code | Description | Response headers |
109
+ |-------------|-------------|------------------|
110
+ |**200** | OK | - |
111
+
112
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
113
+
114
+ # **get1**
115
+ > SignatureEnvelopeDTO get1()
116
+
117
+
118
+ ### Example
119
+
120
+ ```typescript
121
+ import {
122
+ DigitalSignatureApi,
123
+ Configuration
124
+ } from '@openfilz-sdk/typescript-ee';
125
+
126
+ const configuration = new Configuration();
127
+ const apiInstance = new DigitalSignatureApi(configuration);
128
+
129
+ let id: string; // (default to undefined)
130
+
131
+ const { status, data } = await apiInstance.get1(
132
+ id
133
+ );
134
+ ```
135
+
136
+ ### Parameters
137
+
138
+ |Name | Type | Description | Notes|
139
+ |------------- | ------------- | ------------- | -------------|
140
+ | **id** | [**string**] | | defaults to undefined|
141
+
142
+
143
+ ### Return type
144
+
145
+ **SignatureEnvelopeDTO**
146
+
147
+ ### Authorization
148
+
149
+ [keycloak_auth](../README.md#keycloak_auth)
150
+
151
+ ### HTTP request headers
152
+
153
+ - **Content-Type**: Not defined
154
+ - **Accept**: application/json
155
+
156
+
157
+ ### HTTP response details
158
+ | Status code | Description | Response headers |
159
+ |-------------|-------------|------------------|
160
+ |**200** | OK | - |
161
+
162
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
163
+
164
+ # **listSent**
165
+ > Array<SignatureEnvelopeDTO> listSent()
166
+
167
+
168
+ ### Example
169
+
170
+ ```typescript
171
+ import {
172
+ DigitalSignatureApi,
173
+ Configuration
174
+ } from '@openfilz-sdk/typescript-ee';
175
+
176
+ const configuration = new Configuration();
177
+ const apiInstance = new DigitalSignatureApi(configuration);
178
+
179
+ const { status, data } = await apiInstance.listSent();
180
+ ```
181
+
182
+ ### Parameters
183
+ This endpoint does not have any parameters.
184
+
185
+
186
+ ### Return type
187
+
188
+ **Array<SignatureEnvelopeDTO>**
189
+
190
+ ### Authorization
191
+
192
+ [keycloak_auth](../README.md#keycloak_auth)
193
+
194
+ ### HTTP request headers
195
+
196
+ - **Content-Type**: Not defined
197
+ - **Accept**: application/json
198
+
199
+
200
+ ### HTTP response details
201
+ | Status code | Description | Response headers |
202
+ |-------------|-------------|------------------|
203
+ |**200** | OK | - |
204
+
205
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
206
+
207
+ # **listToSign**
208
+ > Array<SignatureEnvelopeDTO> listToSign()
209
+
210
+
211
+ ### Example
212
+
213
+ ```typescript
214
+ import {
215
+ DigitalSignatureApi,
216
+ Configuration
217
+ } from '@openfilz-sdk/typescript-ee';
218
+
219
+ const configuration = new Configuration();
220
+ const apiInstance = new DigitalSignatureApi(configuration);
221
+
222
+ const { status, data } = await apiInstance.listToSign();
223
+ ```
224
+
225
+ ### Parameters
226
+ This endpoint does not have any parameters.
227
+
228
+
229
+ ### Return type
230
+
231
+ **Array<SignatureEnvelopeDTO>**
232
+
233
+ ### Authorization
234
+
235
+ [keycloak_auth](../README.md#keycloak_auth)
236
+
237
+ ### HTTP request headers
238
+
239
+ - **Content-Type**: Not defined
240
+ - **Accept**: application/json
241
+
242
+
243
+ ### HTTP response details
244
+ | Status code | Description | Response headers |
245
+ |-------------|-------------|------------------|
246
+ |**200** | OK | - |
247
+
248
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
249
+