docspring-ts 1.0.2 → 2.0.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 (316) hide show
  1. package/README.md +54 -19
  2. package/dist/apis/PDFApi.d.ts +120 -435
  3. package/dist/apis/PDFApi.js +3242 -1720
  4. package/dist/apis/PDFApi.js.map +1 -0
  5. package/dist/apis/baseapi.d.ts +18 -0
  6. package/dist/apis/baseapi.js +46 -0
  7. package/dist/apis/baseapi.js.map +1 -0
  8. package/dist/apis/exception.d.ts +10 -0
  9. package/dist/apis/exception.js +32 -0
  10. package/dist/apis/exception.js.map +1 -0
  11. package/dist/auth/auth.d.ts +36 -0
  12. package/dist/auth/auth.js +31 -0
  13. package/dist/auth/auth.js.map +1 -0
  14. package/dist/configuration.d.ts +18 -0
  15. package/dist/configuration.js +22 -0
  16. package/dist/configuration.js.map +1 -0
  17. package/dist/http/http.d.ts +68 -0
  18. package/dist/http/http.js +261 -0
  19. package/dist/http/http.js.map +1 -0
  20. package/dist/http/isomorphic-fetch.d.ts +6 -0
  21. package/dist/http/isomorphic-fetch.js +45 -0
  22. package/dist/http/isomorphic-fetch.js.map +1 -0
  23. package/dist/index.d.ts +10 -3
  24. package/dist/index.js +13 -5
  25. package/dist/index.js.map +1 -0
  26. package/dist/middleware.d.ts +16 -0
  27. package/dist/middleware.js +18 -0
  28. package/dist/middleware.js.map +1 -0
  29. package/dist/models/AddFieldsData.d.ts +19 -30
  30. package/dist/models/AddFieldsData.js +19 -46
  31. package/dist/models/AddFieldsData.js.map +1 -0
  32. package/dist/models/BatchGeneratePdfs201Response.d.ts +29 -0
  33. package/dist/models/BatchGeneratePdfs201Response.js +52 -0
  34. package/dist/models/BatchGeneratePdfs201Response.js.map +1 -0
  35. package/dist/models/CombinePdfsData.d.ts +24 -60
  36. package/dist/models/CombinePdfsData.js +49 -57
  37. package/dist/models/CombinePdfsData.js.map +1 -0
  38. package/dist/models/CombinedSubmission.d.ts +38 -112
  39. package/dist/models/CombinedSubmission.js +103 -84
  40. package/dist/models/CombinedSubmission.js.map +1 -0
  41. package/dist/models/CombinedSubmissionAction.d.ts +40 -88
  42. package/dist/models/CombinedSubmissionAction.js +68 -86
  43. package/dist/models/CombinedSubmissionAction.js.map +1 -0
  44. package/dist/models/CombinedSubmissionData.d.ts +23 -54
  45. package/dist/models/CombinedSubmissionData.js +43 -55
  46. package/dist/models/CombinedSubmissionData.js.map +1 -0
  47. package/dist/models/CopyTemplateOptions.d.ts +21 -0
  48. package/dist/models/CopyTemplateOptions.js +29 -0
  49. package/dist/models/CopyTemplateOptions.js.map +1 -0
  50. package/dist/models/CreateCombinedSubmissionResponse.d.ts +26 -51
  51. package/dist/models/CreateCombinedSubmissionResponse.js +36 -60
  52. package/dist/models/CreateCombinedSubmissionResponse.js.map +1 -0
  53. package/dist/models/CreateCustomFileData.d.ts +19 -30
  54. package/dist/models/CreateCustomFileData.js +19 -46
  55. package/dist/models/CreateCustomFileData.js.map +1 -0
  56. package/dist/models/CreateCustomFileResponse.d.ts +26 -50
  57. package/dist/models/CreateCustomFileResponse.js +36 -59
  58. package/dist/models/CreateCustomFileResponse.js.map +1 -0
  59. package/dist/models/CreateFolderData.d.ts +19 -31
  60. package/dist/models/CreateFolderData.js +19 -47
  61. package/dist/models/CreateFolderData.js.map +1 -0
  62. package/dist/models/CreateHtmlSubmissionData.d.ts +28 -0
  63. package/dist/models/CreateHtmlSubmissionData.js +71 -0
  64. package/dist/models/CreateHtmlSubmissionData.js.map +1 -0
  65. package/dist/models/CreateHtmlTemplate.d.ts +20 -0
  66. package/dist/models/CreateHtmlTemplate.js +23 -0
  67. package/dist/models/CreateHtmlTemplate.js.map +1 -0
  68. package/dist/models/CreatePdfSubmissionData.d.ts +28 -0
  69. package/dist/models/CreatePdfSubmissionData.js +65 -0
  70. package/dist/models/CreatePdfSubmissionData.js.map +1 -0
  71. package/dist/models/CreatePdfTemplate.d.ts +20 -0
  72. package/dist/models/CreatePdfTemplate.js +23 -0
  73. package/dist/models/CreatePdfTemplate.js.map +1 -0
  74. package/dist/models/CreateSubmissionDataRequestData.d.ts +40 -127
  75. package/dist/models/CreateSubmissionDataRequestData.js +62 -95
  76. package/dist/models/CreateSubmissionDataRequestData.js.map +1 -0
  77. package/dist/models/CreateSubmissionDataRequestEventRequest.d.ts +40 -0
  78. package/dist/models/CreateSubmissionDataRequestEventRequest.js +50 -0
  79. package/dist/models/CreateSubmissionDataRequestEventRequest.js.map +1 -0
  80. package/dist/models/CreateSubmissionDataRequestEventResponse.d.ts +27 -0
  81. package/dist/models/CreateSubmissionDataRequestEventResponse.js +40 -0
  82. package/dist/models/CreateSubmissionDataRequestEventResponse.js.map +1 -0
  83. package/dist/models/CreateSubmissionDataRequestResponse.d.ts +27 -0
  84. package/dist/models/CreateSubmissionDataRequestResponse.js +40 -0
  85. package/dist/models/CreateSubmissionDataRequestResponse.js.map +1 -0
  86. package/dist/models/CreateSubmissionDataRequestTokenResponse.d.ts +26 -51
  87. package/dist/models/CreateSubmissionDataRequestTokenResponse.js +36 -60
  88. package/dist/models/CreateSubmissionDataRequestTokenResponse.js.map +1 -0
  89. package/dist/models/CreateSubmissionResponse.d.ts +26 -51
  90. package/dist/models/CreateSubmissionResponse.js +36 -60
  91. package/dist/models/CreateSubmissionResponse.js.map +1 -0
  92. package/dist/models/CustomFile.d.ts +21 -0
  93. package/dist/models/CustomFile.js +29 -0
  94. package/dist/models/CustomFile.js.map +1 -0
  95. package/dist/models/ErrorResponse.d.ts +23 -43
  96. package/dist/models/ErrorResponse.js +29 -55
  97. package/dist/models/ErrorResponse.js.map +1 -0
  98. package/dist/models/Folder.d.ts +22 -48
  99. package/dist/models/Folder.js +37 -52
  100. package/dist/models/Folder.js.map +1 -0
  101. package/dist/models/JsonSchema.d.ts +28 -0
  102. package/dist/models/JsonSchema.js +71 -0
  103. package/dist/models/JsonSchema.js.map +1 -0
  104. package/dist/models/ListSubmissionsResponse.d.ts +22 -43
  105. package/dist/models/ListSubmissionsResponse.js +31 -53
  106. package/dist/models/ListSubmissionsResponse.js.map +1 -0
  107. package/dist/models/MoveFolderData.d.ts +19 -30
  108. package/dist/models/MoveFolderData.js +19 -46
  109. package/dist/models/MoveFolderData.js.map +1 -0
  110. package/dist/models/MoveTemplateData.d.ts +19 -30
  111. package/dist/models/MoveTemplateData.js +19 -46
  112. package/dist/models/MoveTemplateData.js.map +1 -0
  113. package/dist/models/MultipleErrorsResponse.d.ts +24 -0
  114. package/dist/models/MultipleErrorsResponse.js +33 -0
  115. package/dist/models/MultipleErrorsResponse.js.map +1 -0
  116. package/dist/models/ObjectSerializer.d.ts +57 -0
  117. package/dist/models/ObjectSerializer.js +459 -0
  118. package/dist/models/ObjectSerializer.js.map +1 -0
  119. package/dist/models/RenameFolderData.d.ts +19 -30
  120. package/dist/models/RenameFolderData.js +19 -46
  121. package/dist/models/RenameFolderData.js.map +1 -0
  122. package/dist/models/Submission.d.ts +63 -157
  123. package/dist/models/Submission.js +178 -104
  124. package/dist/models/Submission.js.map +1 -0
  125. package/dist/models/SubmissionAction.d.ts +40 -88
  126. package/dist/models/SubmissionAction.js +68 -86
  127. package/dist/models/SubmissionAction.js.map +1 -0
  128. package/dist/models/SubmissionBatch.d.ts +31 -88
  129. package/dist/models/SubmissionBatch.js +67 -79
  130. package/dist/models/SubmissionBatch.js.map +1 -0
  131. package/dist/models/SubmissionBatchData.d.ts +21 -49
  132. package/dist/models/SubmissionBatchData.js +31 -54
  133. package/dist/models/SubmissionBatchData.js.map +1 -0
  134. package/dist/models/SubmissionBatchWithSubmissions.d.ts +34 -0
  135. package/dist/models/SubmissionBatchWithSubmissions.js +77 -0
  136. package/dist/models/SubmissionBatchWithSubmissions.js.map +1 -0
  137. package/dist/models/SubmissionDataRequest.d.ts +60 -183
  138. package/dist/models/SubmissionDataRequest.js +163 -124
  139. package/dist/models/SubmissionDataRequest.js.map +1 -0
  140. package/dist/models/SubmissionDataRequestEvent.d.ts +45 -0
  141. package/dist/models/SubmissionDataRequestEvent.js +80 -0
  142. package/dist/models/SubmissionDataRequestEvent.js.map +1 -0
  143. package/dist/models/SubmissionDataRequestShow.d.ts +62 -0
  144. package/dist/models/SubmissionDataRequestShow.js +173 -0
  145. package/dist/models/SubmissionDataRequestShow.js.map +1 -0
  146. package/dist/models/SubmissionDataRequestToken.d.ts +23 -0
  147. package/dist/models/SubmissionDataRequestToken.js +41 -0
  148. package/dist/models/SubmissionDataRequestToken.js.map +1 -0
  149. package/dist/models/SubmissionPreview.d.ts +55 -0
  150. package/dist/models/SubmissionPreview.js +157 -0
  151. package/dist/models/SubmissionPreview.js.map +1 -0
  152. package/dist/models/SuccessErrorResponse.d.ts +25 -0
  153. package/dist/models/SuccessErrorResponse.js +34 -0
  154. package/dist/models/SuccessErrorResponse.js.map +1 -0
  155. package/dist/models/SuccessMultipleErrorsResponse.d.ts +25 -0
  156. package/dist/models/SuccessMultipleErrorsResponse.js +34 -0
  157. package/dist/models/SuccessMultipleErrorsResponse.js.map +1 -0
  158. package/dist/models/Template.d.ts +75 -153
  159. package/dist/models/Template.js +302 -111
  160. package/dist/models/Template.js.map +1 -0
  161. package/dist/models/TemplateAddFieldsResponse.d.ts +26 -0
  162. package/dist/models/TemplateAddFieldsResponse.js +40 -0
  163. package/dist/models/TemplateAddFieldsResponse.js.map +1 -0
  164. package/dist/models/TemplatePreview.d.ts +66 -0
  165. package/dist/models/TemplatePreview.js +246 -0
  166. package/dist/models/TemplatePreview.js.map +1 -0
  167. package/dist/models/UpdateHtmlTemplate.d.ts +20 -0
  168. package/dist/models/UpdateHtmlTemplate.js +23 -0
  169. package/dist/models/UpdateHtmlTemplate.js.map +1 -0
  170. package/dist/models/UpdateSubmissionDataRequestData.d.ts +31 -127
  171. package/dist/models/UpdateSubmissionDataRequestData.js +47 -93
  172. package/dist/models/UpdateSubmissionDataRequestData.js.map +1 -0
  173. package/dist/models/UploadPresignResponse.d.ts +26 -0
  174. package/dist/models/UploadPresignResponse.js +45 -0
  175. package/dist/models/UploadPresignResponse.js.map +1 -0
  176. package/dist/models/all.d.ts +48 -0
  177. package/dist/models/all.js +65 -0
  178. package/dist/models/all.js.map +1 -0
  179. package/dist/rxjsStub.d.ts +10 -0
  180. package/dist/rxjsStub.js +33 -0
  181. package/dist/rxjsStub.js.map +1 -0
  182. package/dist/servers.d.ts +17 -0
  183. package/dist/servers.js +32 -0
  184. package/dist/servers.js.map +1 -0
  185. package/dist/types/ObjectParamAPI.d.ts +269 -0
  186. package/dist/types/ObjectParamAPI.js +252 -0
  187. package/dist/types/ObjectParamAPI.js.map +1 -0
  188. package/dist/types/ObservableAPI.d.ts +124 -0
  189. package/dist/types/ObservableAPI.js +1042 -0
  190. package/dist/types/ObservableAPI.js.map +1 -0
  191. package/dist/types/PromiseAPI.d.ts +121 -0
  192. package/dist/types/PromiseAPI.js +316 -0
  193. package/dist/types/PromiseAPI.js.map +1 -0
  194. package/dist/util.d.ts +2 -0
  195. package/dist/util.js +29 -0
  196. package/dist/util.js.map +1 -0
  197. package/package.json +24 -2
  198. package/.openapi-generator/FILES +0 -61
  199. package/.openapi-generator/VERSION +0 -1
  200. package/.openapi-generator-ignore +0 -23
  201. package/CHANGELOG.md +0 -7
  202. package/dist/apis/index.d.ts +0 -1
  203. package/dist/apis/index.js +0 -19
  204. package/dist/models/AddFieldsTemplateResponse.d.ts +0 -51
  205. package/dist/models/AddFieldsTemplateResponse.js +0 -62
  206. package/dist/models/AuthenticationError.d.ts +0 -44
  207. package/dist/models/AuthenticationError.js +0 -59
  208. package/dist/models/AuthenticationSuccessResponse.d.ts +0 -38
  209. package/dist/models/AuthenticationSuccessResponse.js +0 -56
  210. package/dist/models/CopyTemplateData.d.ts +0 -37
  211. package/dist/models/CopyTemplateData.js +0 -53
  212. package/dist/models/CreateFolderAttributes.d.ts +0 -37
  213. package/dist/models/CreateFolderAttributes.js +0 -53
  214. package/dist/models/CreateHtmlTemplateData.d.ts +0 -32
  215. package/dist/models/CreateHtmlTemplateData.js +0 -51
  216. package/dist/models/CreateSubmissionBatchResponse.d.ts +0 -65
  217. package/dist/models/CreateSubmissionBatchResponse.js +0 -70
  218. package/dist/models/CreateSubmissionBatchSubmissionsResponse.d.ts +0 -53
  219. package/dist/models/CreateSubmissionBatchSubmissionsResponse.js +0 -64
  220. package/dist/models/CreateSubmissionData.d.ts +0 -80
  221. package/dist/models/CreateSubmissionData.js +0 -68
  222. package/dist/models/CreateTemplateFromUploadData.d.ts +0 -32
  223. package/dist/models/CreateTemplateFromUploadData.js +0 -51
  224. package/dist/models/DataRequestToken.d.ts +0 -49
  225. package/dist/models/DataRequestToken.js +0 -59
  226. package/dist/models/DeleteTemplateResponse.d.ts +0 -45
  227. package/dist/models/DeleteTemplateResponse.js +0 -60
  228. package/dist/models/FullTemplate.d.ts +0 -269
  229. package/dist/models/FullTemplate.js +0 -173
  230. package/dist/models/HtmlTemplateData.d.ts +0 -144
  231. package/dist/models/HtmlTemplateData.js +0 -98
  232. package/dist/models/InvalidRequest.d.ts +0 -44
  233. package/dist/models/InvalidRequest.js +0 -59
  234. package/dist/models/PendingTemplate.d.ts +0 -136
  235. package/dist/models/PendingTemplate.js +0 -103
  236. package/dist/models/SubmissionData.d.ts +0 -62
  237. package/dist/models/SubmissionData.js +0 -62
  238. package/dist/models/SubmissionDataBatchRequest.d.ts +0 -61
  239. package/dist/models/SubmissionDataBatchRequest.js +0 -62
  240. package/dist/models/TemplateData.d.ts +0 -130
  241. package/dist/models/TemplateData.js +0 -88
  242. package/dist/models/TemplateDefaults.d.ts +0 -43
  243. package/dist/models/TemplateDefaults.js +0 -56
  244. package/dist/models/TemplateDocument.d.ts +0 -51
  245. package/dist/models/TemplateDocument.js +0 -63
  246. package/dist/models/TemplateDocumentMetadata.d.ts +0 -50
  247. package/dist/models/TemplateDocumentMetadata.js +0 -62
  248. package/dist/models/UpdateDataRequestResponse.d.ts +0 -52
  249. package/dist/models/UpdateDataRequestResponse.js +0 -64
  250. package/dist/models/UpdateTemplateData.d.ts +0 -32
  251. package/dist/models/UpdateTemplateData.js +0 -51
  252. package/dist/models/UpdateTemplateResponse.d.ts +0 -45
  253. package/dist/models/UpdateTemplateResponse.js +0 -60
  254. package/dist/models/UploadTemplateData.d.ts +0 -151
  255. package/dist/models/UploadTemplateData.js +0 -101
  256. package/dist/models/index.d.ts +0 -51
  257. package/dist/models/index.js +0 -69
  258. package/dist/runtime.d.ts +0 -182
  259. package/dist/runtime.js +0 -562
  260. package/src/apis/PDFApi.ts +0 -1665
  261. package/src/apis/index.ts +0 -3
  262. package/src/index.ts +0 -5
  263. package/src/models/AddFieldsData.ts +0 -66
  264. package/src/models/AddFieldsTemplateResponse.ts +0 -93
  265. package/src/models/AuthenticationError.ts +0 -84
  266. package/src/models/AuthenticationSuccessResponse.ts +0 -76
  267. package/src/models/CombinePdfsData.ts +0 -106
  268. package/src/models/CombinedSubmission.ts +0 -185
  269. package/src/models/CombinedSubmissionAction.ts +0 -144
  270. package/src/models/CombinedSubmissionData.ts +0 -98
  271. package/src/models/CopyTemplateData.ts +0 -74
  272. package/src/models/CreateCombinedSubmissionResponse.ts +0 -101
  273. package/src/models/CreateCustomFileData.ts +0 -66
  274. package/src/models/CreateCustomFileResponse.ts +0 -94
  275. package/src/models/CreateFolderAttributes.ts +0 -74
  276. package/src/models/CreateFolderData.ts +0 -73
  277. package/src/models/CreateHtmlTemplateData.ts +0 -73
  278. package/src/models/CreateSubmissionBatchResponse.ts +0 -124
  279. package/src/models/CreateSubmissionBatchSubmissionsResponse.ts +0 -101
  280. package/src/models/CreateSubmissionData.ts +0 -137
  281. package/src/models/CreateSubmissionDataRequestData.ts +0 -192
  282. package/src/models/CreateSubmissionDataRequestTokenResponse.ts +0 -101
  283. package/src/models/CreateSubmissionResponse.ts +0 -101
  284. package/src/models/CreateTemplateFromUploadData.ts +0 -73
  285. package/src/models/DataRequestToken.ts +0 -93
  286. package/src/models/DeleteTemplateResponse.ts +0 -85
  287. package/src/models/ErrorResponse.ts +0 -85
  288. package/src/models/Folder.ts +0 -89
  289. package/src/models/FullTemplate.ts +0 -427
  290. package/src/models/HtmlTemplateData.ts +0 -215
  291. package/src/models/InvalidRequest.ts +0 -85
  292. package/src/models/ListSubmissionsResponse.ts +0 -91
  293. package/src/models/MoveFolderData.ts +0 -65
  294. package/src/models/MoveTemplateData.ts +0 -66
  295. package/src/models/PendingTemplate.ts +0 -218
  296. package/src/models/RenameFolderData.ts +0 -66
  297. package/src/models/Submission.ts +0 -246
  298. package/src/models/SubmissionAction.ts +0 -144
  299. package/src/models/SubmissionBatch.ts +0 -156
  300. package/src/models/SubmissionBatchData.ts +0 -97
  301. package/src/models/SubmissionData.ts +0 -113
  302. package/src/models/SubmissionDataBatchRequest.ts +0 -107
  303. package/src/models/SubmissionDataRequest.ts +0 -271
  304. package/src/models/Template.ts +0 -249
  305. package/src/models/TemplateData.ts +0 -197
  306. package/src/models/TemplateDefaults.ts +0 -84
  307. package/src/models/TemplateDocument.ts +0 -101
  308. package/src/models/TemplateDocumentMetadata.ts +0 -94
  309. package/src/models/UpdateDataRequestResponse.ts +0 -101
  310. package/src/models/UpdateSubmissionDataRequestData.ts +0 -190
  311. package/src/models/UpdateTemplateData.ts +0 -73
  312. package/src/models/UpdateTemplateResponse.ts +0 -85
  313. package/src/models/UploadTemplateData.ts +0 -230
  314. package/src/models/index.ts +0 -53
  315. package/src/runtime.ts +0 -431
  316. package/tsconfig.json +0 -20
@@ -1,144 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * API v1
5
- * DocSpring is a service that helps you fill out and sign PDF templates.
6
- *
7
- * The version of the OpenAPI document: v1
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
- import { exists, mapValues } from '../runtime';
16
- /**
17
- *
18
- * @export
19
- * @interface CombinedSubmissionAction
20
- */
21
- export interface CombinedSubmissionAction {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof CombinedSubmissionAction
26
- */
27
- id: string;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof CombinedSubmissionAction
32
- */
33
- integrationId: string | null;
34
- /**
35
- *
36
- * @type {string}
37
- * @memberof CombinedSubmissionAction
38
- */
39
- state: CombinedSubmissionActionStateEnum;
40
- /**
41
- *
42
- * @type {string}
43
- * @memberof CombinedSubmissionAction
44
- */
45
- actionCategory: CombinedSubmissionActionActionCategoryEnum;
46
- /**
47
- *
48
- * @type {string}
49
- * @memberof CombinedSubmissionAction
50
- */
51
- actionType: CombinedSubmissionActionActionTypeEnum;
52
- /**
53
- *
54
- * @type {object}
55
- * @memberof CombinedSubmissionAction
56
- */
57
- resultData: object;
58
- }
59
-
60
-
61
- /**
62
- * @export
63
- */
64
- export const CombinedSubmissionActionStateEnum = {
65
- Pending: 'pending',
66
- Processed: 'processed',
67
- Failed: 'failed',
68
- Error: 'error'
69
- } as const;
70
- export type CombinedSubmissionActionStateEnum = typeof CombinedSubmissionActionStateEnum[keyof typeof CombinedSubmissionActionStateEnum];
71
-
72
- /**
73
- * @export
74
- */
75
- export const CombinedSubmissionActionActionCategoryEnum = {
76
- Notification: 'notification',
77
- FileUpload: 'file_upload'
78
- } as const;
79
- export type CombinedSubmissionActionActionCategoryEnum = typeof CombinedSubmissionActionActionCategoryEnum[keyof typeof CombinedSubmissionActionActionCategoryEnum];
80
-
81
- /**
82
- * @export
83
- */
84
- export const CombinedSubmissionActionActionTypeEnum = {
85
- Webhook: 'webhook',
86
- SlackWebhook: 'slack_webhook',
87
- Email: 'email',
88
- AwsS3Upload: 'aws_s3_upload'
89
- } as const;
90
- export type CombinedSubmissionActionActionTypeEnum = typeof CombinedSubmissionActionActionTypeEnum[keyof typeof CombinedSubmissionActionActionTypeEnum];
91
-
92
-
93
- /**
94
- * Check if a given object implements the CombinedSubmissionAction interface.
95
- */
96
- export function instanceOfCombinedSubmissionAction(value: object): boolean {
97
- let isInstance = true;
98
- isInstance = isInstance && "id" in value;
99
- isInstance = isInstance && "integrationId" in value;
100
- isInstance = isInstance && "state" in value;
101
- isInstance = isInstance && "actionCategory" in value;
102
- isInstance = isInstance && "actionType" in value;
103
- isInstance = isInstance && "resultData" in value;
104
-
105
- return isInstance;
106
- }
107
-
108
- export function CombinedSubmissionActionFromJSON(json: any): CombinedSubmissionAction {
109
- return CombinedSubmissionActionFromJSONTyped(json, false);
110
- }
111
-
112
- export function CombinedSubmissionActionFromJSONTyped(json: any, ignoreDiscriminator: boolean): CombinedSubmissionAction {
113
- if ((json === undefined) || (json === null)) {
114
- return json;
115
- }
116
- return {
117
-
118
- 'id': json['id'],
119
- 'integrationId': json['integration_id'],
120
- 'state': json['state'],
121
- 'actionCategory': json['action_category'],
122
- 'actionType': json['action_type'],
123
- 'resultData': json['result_data'],
124
- };
125
- }
126
-
127
- export function CombinedSubmissionActionToJSON(value?: CombinedSubmissionAction | null): any {
128
- if (value === undefined) {
129
- return undefined;
130
- }
131
- if (value === null) {
132
- return null;
133
- }
134
- return {
135
-
136
- 'id': value.id,
137
- 'integration_id': value.integrationId,
138
- 'state': value.state,
139
- 'action_category': value.actionCategory,
140
- 'action_type': value.actionType,
141
- 'result_data': value.resultData,
142
- };
143
- }
144
-
@@ -1,98 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * API v1
5
- * DocSpring is a service that helps you fill out and sign PDF templates.
6
- *
7
- * The version of the OpenAPI document: v1
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
- import { exists, mapValues } from '../runtime';
16
- /**
17
- *
18
- * @export
19
- * @interface CombinedSubmissionData
20
- */
21
- export interface CombinedSubmissionData {
22
- /**
23
- *
24
- * @type {number}
25
- * @memberof CombinedSubmissionData
26
- */
27
- expiresIn?: number;
28
- /**
29
- *
30
- * @type {object}
31
- * @memberof CombinedSubmissionData
32
- */
33
- metadata?: object;
34
- /**
35
- *
36
- * @type {string}
37
- * @memberof CombinedSubmissionData
38
- */
39
- password?: string;
40
- /**
41
- *
42
- * @type {Array<string>}
43
- * @memberof CombinedSubmissionData
44
- */
45
- submissionIds: Array<string>;
46
- /**
47
- *
48
- * @type {boolean}
49
- * @memberof CombinedSubmissionData
50
- */
51
- test?: boolean;
52
- }
53
-
54
- /**
55
- * Check if a given object implements the CombinedSubmissionData interface.
56
- */
57
- export function instanceOfCombinedSubmissionData(value: object): boolean {
58
- let isInstance = true;
59
- isInstance = isInstance && "submissionIds" in value;
60
-
61
- return isInstance;
62
- }
63
-
64
- export function CombinedSubmissionDataFromJSON(json: any): CombinedSubmissionData {
65
- return CombinedSubmissionDataFromJSONTyped(json, false);
66
- }
67
-
68
- export function CombinedSubmissionDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): CombinedSubmissionData {
69
- if ((json === undefined) || (json === null)) {
70
- return json;
71
- }
72
- return {
73
-
74
- 'expiresIn': !exists(json, 'expires_in') ? undefined : json['expires_in'],
75
- 'metadata': !exists(json, 'metadata') ? undefined : json['metadata'],
76
- 'password': !exists(json, 'password') ? undefined : json['password'],
77
- 'submissionIds': json['submission_ids'],
78
- 'test': !exists(json, 'test') ? undefined : json['test'],
79
- };
80
- }
81
-
82
- export function CombinedSubmissionDataToJSON(value?: CombinedSubmissionData | null): any {
83
- if (value === undefined) {
84
- return undefined;
85
- }
86
- if (value === null) {
87
- return null;
88
- }
89
- return {
90
-
91
- 'expires_in': value.expiresIn,
92
- 'metadata': value.metadata,
93
- 'password': value.password,
94
- 'submission_ids': value.submissionIds,
95
- 'test': value.test,
96
- };
97
- }
98
-
@@ -1,74 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * API v1
5
- * DocSpring is a service that helps you fill out and sign PDF templates.
6
- *
7
- * The version of the OpenAPI document: v1
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
- import { exists, mapValues } from '../runtime';
16
- /**
17
- *
18
- * @export
19
- * @interface CopyTemplateData
20
- */
21
- export interface CopyTemplateData {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof CopyTemplateData
26
- */
27
- name?: string;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof CopyTemplateData
32
- */
33
- parentFolderId: string;
34
- }
35
-
36
- /**
37
- * Check if a given object implements the CopyTemplateData interface.
38
- */
39
- export function instanceOfCopyTemplateData(value: object): boolean {
40
- let isInstance = true;
41
- isInstance = isInstance && "parentFolderId" in value;
42
-
43
- return isInstance;
44
- }
45
-
46
- export function CopyTemplateDataFromJSON(json: any): CopyTemplateData {
47
- return CopyTemplateDataFromJSONTyped(json, false);
48
- }
49
-
50
- export function CopyTemplateDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): CopyTemplateData {
51
- if ((json === undefined) || (json === null)) {
52
- return json;
53
- }
54
- return {
55
-
56
- 'name': !exists(json, 'name') ? undefined : json['name'],
57
- 'parentFolderId': json['parent_folder_id'],
58
- };
59
- }
60
-
61
- export function CopyTemplateDataToJSON(value?: CopyTemplateData | null): any {
62
- if (value === undefined) {
63
- return undefined;
64
- }
65
- if (value === null) {
66
- return null;
67
- }
68
- return {
69
-
70
- 'name': value.name,
71
- 'parent_folder_id': value.parentFolderId,
72
- };
73
- }
74
-
@@ -1,101 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * API v1
5
- * DocSpring is a service that helps you fill out and sign PDF templates.
6
- *
7
- * The version of the OpenAPI document: v1
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
- import { exists, mapValues } from '../runtime';
16
- import type { CombinedSubmission } from './CombinedSubmission';
17
- import {
18
- CombinedSubmissionFromJSON,
19
- CombinedSubmissionFromJSONTyped,
20
- CombinedSubmissionToJSON,
21
- } from './CombinedSubmission';
22
-
23
- /**
24
- *
25
- * @export
26
- * @interface CreateCombinedSubmissionResponse
27
- */
28
- export interface CreateCombinedSubmissionResponse {
29
- /**
30
- *
31
- * @type {string}
32
- * @memberof CreateCombinedSubmissionResponse
33
- */
34
- status: CreateCombinedSubmissionResponseStatusEnum;
35
- /**
36
- *
37
- * @type {Array<string>}
38
- * @memberof CreateCombinedSubmissionResponse
39
- */
40
- errors?: Array<string>;
41
- /**
42
- *
43
- * @type {CombinedSubmission}
44
- * @memberof CreateCombinedSubmissionResponse
45
- */
46
- combinedSubmission: CombinedSubmission;
47
- }
48
-
49
-
50
- /**
51
- * @export
52
- */
53
- export const CreateCombinedSubmissionResponseStatusEnum = {
54
- Success: 'success',
55
- Error: 'error'
56
- } as const;
57
- export type CreateCombinedSubmissionResponseStatusEnum = typeof CreateCombinedSubmissionResponseStatusEnum[keyof typeof CreateCombinedSubmissionResponseStatusEnum];
58
-
59
-
60
- /**
61
- * Check if a given object implements the CreateCombinedSubmissionResponse interface.
62
- */
63
- export function instanceOfCreateCombinedSubmissionResponse(value: object): boolean {
64
- let isInstance = true;
65
- isInstance = isInstance && "status" in value;
66
- isInstance = isInstance && "combinedSubmission" in value;
67
-
68
- return isInstance;
69
- }
70
-
71
- export function CreateCombinedSubmissionResponseFromJSON(json: any): CreateCombinedSubmissionResponse {
72
- return CreateCombinedSubmissionResponseFromJSONTyped(json, false);
73
- }
74
-
75
- export function CreateCombinedSubmissionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateCombinedSubmissionResponse {
76
- if ((json === undefined) || (json === null)) {
77
- return json;
78
- }
79
- return {
80
-
81
- 'status': json['status'],
82
- 'errors': !exists(json, 'errors') ? undefined : json['errors'],
83
- 'combinedSubmission': CombinedSubmissionFromJSON(json['combined_submission']),
84
- };
85
- }
86
-
87
- export function CreateCombinedSubmissionResponseToJSON(value?: CreateCombinedSubmissionResponse | null): any {
88
- if (value === undefined) {
89
- return undefined;
90
- }
91
- if (value === null) {
92
- return null;
93
- }
94
- return {
95
-
96
- 'status': value.status,
97
- 'errors': value.errors,
98
- 'combined_submission': CombinedSubmissionToJSON(value.combinedSubmission),
99
- };
100
- }
101
-
@@ -1,66 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * API v1
5
- * DocSpring is a service that helps you fill out and sign PDF templates.
6
- *
7
- * The version of the OpenAPI document: v1
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
- import { exists, mapValues } from '../runtime';
16
- /**
17
- *
18
- * @export
19
- * @interface CreateCustomFileData
20
- */
21
- export interface CreateCustomFileData {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof CreateCustomFileData
26
- */
27
- cacheId: string;
28
- }
29
-
30
- /**
31
- * Check if a given object implements the CreateCustomFileData interface.
32
- */
33
- export function instanceOfCreateCustomFileData(value: object): boolean {
34
- let isInstance = true;
35
- isInstance = isInstance && "cacheId" in value;
36
-
37
- return isInstance;
38
- }
39
-
40
- export function CreateCustomFileDataFromJSON(json: any): CreateCustomFileData {
41
- return CreateCustomFileDataFromJSONTyped(json, false);
42
- }
43
-
44
- export function CreateCustomFileDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateCustomFileData {
45
- if ((json === undefined) || (json === null)) {
46
- return json;
47
- }
48
- return {
49
-
50
- 'cacheId': json['cache_id'],
51
- };
52
- }
53
-
54
- export function CreateCustomFileDataToJSON(value?: CreateCustomFileData | null): any {
55
- if (value === undefined) {
56
- return undefined;
57
- }
58
- if (value === null) {
59
- return null;
60
- }
61
- return {
62
-
63
- 'cache_id': value.cacheId,
64
- };
65
- }
66
-
@@ -1,94 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * API v1
5
- * DocSpring is a service that helps you fill out and sign PDF templates.
6
- *
7
- * The version of the OpenAPI document: v1
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
- import { exists, mapValues } from '../runtime';
16
- /**
17
- *
18
- * @export
19
- * @interface CreateCustomFileResponse
20
- */
21
- export interface CreateCustomFileResponse {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof CreateCustomFileResponse
26
- */
27
- status: CreateCustomFileResponseStatusEnum;
28
- /**
29
- *
30
- * @type {Array<string>}
31
- * @memberof CreateCustomFileResponse
32
- */
33
- errors?: Array<string>;
34
- /**
35
- *
36
- * @type {object}
37
- * @memberof CreateCustomFileResponse
38
- */
39
- customFile: object;
40
- }
41
-
42
-
43
- /**
44
- * @export
45
- */
46
- export const CreateCustomFileResponseStatusEnum = {
47
- Success: 'success',
48
- Error: 'error'
49
- } as const;
50
- export type CreateCustomFileResponseStatusEnum = typeof CreateCustomFileResponseStatusEnum[keyof typeof CreateCustomFileResponseStatusEnum];
51
-
52
-
53
- /**
54
- * Check if a given object implements the CreateCustomFileResponse interface.
55
- */
56
- export function instanceOfCreateCustomFileResponse(value: object): boolean {
57
- let isInstance = true;
58
- isInstance = isInstance && "status" in value;
59
- isInstance = isInstance && "customFile" in value;
60
-
61
- return isInstance;
62
- }
63
-
64
- export function CreateCustomFileResponseFromJSON(json: any): CreateCustomFileResponse {
65
- return CreateCustomFileResponseFromJSONTyped(json, false);
66
- }
67
-
68
- export function CreateCustomFileResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateCustomFileResponse {
69
- if ((json === undefined) || (json === null)) {
70
- return json;
71
- }
72
- return {
73
-
74
- 'status': json['status'],
75
- 'errors': !exists(json, 'errors') ? undefined : json['errors'],
76
- 'customFile': json['custom_file'],
77
- };
78
- }
79
-
80
- export function CreateCustomFileResponseToJSON(value?: CreateCustomFileResponse | null): any {
81
- if (value === undefined) {
82
- return undefined;
83
- }
84
- if (value === null) {
85
- return null;
86
- }
87
- return {
88
-
89
- 'status': value.status,
90
- 'errors': value.errors,
91
- 'custom_file': value.customFile,
92
- };
93
- }
94
-
@@ -1,74 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * API v1
5
- * DocSpring is a service that helps you fill out and sign PDF templates.
6
- *
7
- * The version of the OpenAPI document: v1
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
- import { exists, mapValues } from '../runtime';
16
- /**
17
- *
18
- * @export
19
- * @interface CreateFolderAttributes
20
- */
21
- export interface CreateFolderAttributes {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof CreateFolderAttributes
26
- */
27
- name: string;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof CreateFolderAttributes
32
- */
33
- parentFolderId?: string;
34
- }
35
-
36
- /**
37
- * Check if a given object implements the CreateFolderAttributes interface.
38
- */
39
- export function instanceOfCreateFolderAttributes(value: object): boolean {
40
- let isInstance = true;
41
- isInstance = isInstance && "name" in value;
42
-
43
- return isInstance;
44
- }
45
-
46
- export function CreateFolderAttributesFromJSON(json: any): CreateFolderAttributes {
47
- return CreateFolderAttributesFromJSONTyped(json, false);
48
- }
49
-
50
- export function CreateFolderAttributesFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateFolderAttributes {
51
- if ((json === undefined) || (json === null)) {
52
- return json;
53
- }
54
- return {
55
-
56
- 'name': json['name'],
57
- 'parentFolderId': !exists(json, 'parent_folder_id') ? undefined : json['parent_folder_id'],
58
- };
59
- }
60
-
61
- export function CreateFolderAttributesToJSON(value?: CreateFolderAttributes | null): any {
62
- if (value === undefined) {
63
- return undefined;
64
- }
65
- if (value === null) {
66
- return null;
67
- }
68
- return {
69
-
70
- 'name': value.name,
71
- 'parent_folder_id': value.parentFolderId,
72
- };
73
- }
74
-