@formalingo/sdk 0.1.2 → 0.1.4

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 (167) hide show
  1. package/README.md +31 -9
  2. package/dist/client/api/v1/analytics/index.d.ts +20 -0
  3. package/dist/client/api/v1/analytics/index.d.ts.map +1 -0
  4. package/dist/client/api/v1/analytics/index.js +20 -0
  5. package/dist/client/api/v1/analytics/index.js.map +1 -0
  6. package/dist/client/api/v1/analytics/summary/index.d.ts +131 -0
  7. package/dist/client/api/v1/analytics/summary/index.d.ts.map +1 -0
  8. package/dist/client/api/v1/analytics/summary/index.js +137 -0
  9. package/dist/client/api/v1/analytics/summary/index.js.map +1 -0
  10. package/dist/client/api/v1/deliveries/index.d.ts +192 -0
  11. package/dist/client/api/v1/deliveries/index.d.ts.map +1 -0
  12. package/dist/client/api/v1/deliveries/index.js +189 -0
  13. package/dist/client/api/v1/deliveries/index.js.map +1 -0
  14. package/dist/client/api/v1/documents/importEscaped/index.d.ts +144 -0
  15. package/dist/client/api/v1/documents/importEscaped/index.d.ts.map +1 -0
  16. package/dist/client/api/v1/documents/importEscaped/index.js +153 -0
  17. package/dist/client/api/v1/documents/importEscaped/index.js.map +1 -0
  18. package/dist/client/api/v1/documents/index.d.ts +5 -0
  19. package/dist/client/api/v1/documents/index.d.ts.map +1 -1
  20. package/dist/client/api/v1/documents/index.js +5 -0
  21. package/dist/client/api/v1/documents/index.js.map +1 -1
  22. package/dist/client/api/v1/documents/item/exportEscaped/index.d.ts +103 -0
  23. package/dist/client/api/v1/documents/item/exportEscaped/index.d.ts.map +1 -0
  24. package/dist/client/api/v1/documents/item/exportEscaped/index.js +102 -0
  25. package/dist/client/api/v1/documents/item/exportEscaped/index.js.map +1 -0
  26. package/dist/client/api/v1/documents/item/fields/index.d.ts +121 -7
  27. package/dist/client/api/v1/documents/item/fields/index.d.ts.map +1 -1
  28. package/dist/client/api/v1/documents/item/fields/index.js +125 -0
  29. package/dist/client/api/v1/documents/item/fields/index.js.map +1 -1
  30. package/dist/client/api/v1/documents/item/fields/item/index.d.ts +106 -16
  31. package/dist/client/api/v1/documents/item/fields/item/index.d.ts.map +1 -1
  32. package/dist/client/api/v1/documents/item/fields/item/index.js +97 -4
  33. package/dist/client/api/v1/documents/item/fields/item/index.js.map +1 -1
  34. package/dist/client/api/v1/documents/item/index.d.ts +104 -6
  35. package/dist/client/api/v1/documents/item/index.d.ts.map +1 -1
  36. package/dist/client/api/v1/documents/item/index.js +111 -4
  37. package/dist/client/api/v1/documents/item/index.js.map +1 -1
  38. package/dist/client/api/v1/documents/item/parseJobs/index.d.ts +155 -0
  39. package/dist/client/api/v1/documents/item/parseJobs/index.d.ts.map +1 -0
  40. package/dist/client/api/v1/documents/item/parseJobs/index.js +163 -0
  41. package/dist/client/api/v1/documents/item/parseJobs/index.js.map +1 -0
  42. package/dist/client/api/v1/documents/item/parseJobs/item/apply/index.d.ts +180 -0
  43. package/dist/client/api/v1/documents/item/parseJobs/item/apply/index.d.ts.map +1 -0
  44. package/dist/client/api/v1/documents/item/parseJobs/item/apply/index.js +189 -0
  45. package/dist/client/api/v1/documents/item/parseJobs/item/apply/index.js.map +1 -0
  46. package/dist/client/api/v1/documents/item/parseJobs/item/index.d.ts +75 -0
  47. package/dist/client/api/v1/documents/item/parseJobs/item/index.d.ts.map +1 -0
  48. package/dist/client/api/v1/documents/item/parseJobs/item/index.js +76 -0
  49. package/dist/client/api/v1/documents/item/parseJobs/item/index.js.map +1 -0
  50. package/dist/client/api/v1/documents/item/publish/index.d.ts +200 -0
  51. package/dist/client/api/v1/documents/item/publish/index.d.ts.map +1 -0
  52. package/dist/client/api/v1/documents/item/publish/index.js +220 -0
  53. package/dist/client/api/v1/documents/item/publish/index.js.map +1 -0
  54. package/dist/client/api/v1/documents/item/revisions/index.d.ts +112 -0
  55. package/dist/client/api/v1/documents/item/revisions/index.d.ts.map +1 -0
  56. package/dist/client/api/v1/documents/item/revisions/index.js +110 -0
  57. package/dist/client/api/v1/documents/item/revisions/index.js.map +1 -0
  58. package/dist/client/api/v1/documents/item/revisions/item/index.d.ts +95 -0
  59. package/dist/client/api/v1/documents/item/revisions/item/index.d.ts.map +1 -0
  60. package/dist/client/api/v1/documents/item/revisions/item/index.js +102 -0
  61. package/dist/client/api/v1/documents/item/revisions/item/index.js.map +1 -0
  62. package/dist/client/api/v1/documents/item/signerRoles/index.d.ts +1 -0
  63. package/dist/client/api/v1/documents/item/signerRoles/index.d.ts.map +1 -1
  64. package/dist/client/api/v1/documents/item/signerRoles/index.js +4 -1
  65. package/dist/client/api/v1/documents/item/signerRoles/index.js.map +1 -1
  66. package/dist/client/api/v1/documents/item/signerRoles/item/index.d.ts +121 -1
  67. package/dist/client/api/v1/documents/item/signerRoles/item/index.d.ts.map +1 -1
  68. package/dist/client/api/v1/documents/item/signerRoles/item/index.js +133 -0
  69. package/dist/client/api/v1/documents/item/signerRoles/item/index.js.map +1 -1
  70. package/dist/client/api/v1/documents/item/submissions/index.d.ts +40 -30
  71. package/dist/client/api/v1/documents/item/submissions/index.d.ts.map +1 -1
  72. package/dist/client/api/v1/documents/item/submissions/index.js +36 -28
  73. package/dist/client/api/v1/documents/item/submissions/index.js.map +1 -1
  74. package/dist/client/api/v1/documents/item/submissions/item/expire/index.d.ts +280 -0
  75. package/dist/client/api/v1/documents/item/submissions/item/expire/index.d.ts.map +1 -0
  76. package/dist/client/api/v1/documents/item/submissions/item/expire/index.js +301 -0
  77. package/dist/client/api/v1/documents/item/submissions/item/expire/index.js.map +1 -0
  78. package/dist/client/api/v1/documents/item/submissions/item/index.d.ts +86 -1
  79. package/dist/client/api/v1/documents/item/submissions/item/index.d.ts.map +1 -1
  80. package/dist/client/api/v1/documents/item/submissions/item/index.js +92 -0
  81. package/dist/client/api/v1/documents/item/submissions/item/index.js.map +1 -1
  82. package/dist/client/api/v1/documents/item/submissions/item/pdf/index.d.ts +42 -0
  83. package/dist/client/api/v1/documents/item/submissions/item/pdf/index.d.ts.map +1 -1
  84. package/dist/client/api/v1/documents/item/submissions/item/pdf/index.js +43 -0
  85. package/dist/client/api/v1/documents/item/submissions/item/pdf/index.js.map +1 -1
  86. package/dist/client/api/v1/documents/item/submissions/item/signers/item/index.d.ts +5 -41
  87. package/dist/client/api/v1/documents/item/submissions/item/signers/item/index.d.ts.map +1 -1
  88. package/dist/client/api/v1/documents/item/submissions/item/signers/item/index.js +7 -44
  89. package/dist/client/api/v1/documents/item/submissions/item/signers/item/index.js.map +1 -1
  90. package/dist/client/api/v1/documents/item/submissions/item/signers/item/responses/index.d.ts +7 -2
  91. package/dist/client/api/v1/documents/item/submissions/item/signers/item/responses/index.d.ts.map +1 -1
  92. package/dist/client/api/v1/documents/item/submissions/item/signers/item/responses/index.js +5 -0
  93. package/dist/client/api/v1/documents/item/submissions/item/signers/item/responses/index.js.map +1 -1
  94. package/dist/client/api/v1/files/index.d.ts +22 -0
  95. package/dist/client/api/v1/files/index.d.ts.map +1 -0
  96. package/dist/client/api/v1/files/index.js +21 -0
  97. package/dist/client/api/v1/files/index.js.map +1 -0
  98. package/dist/client/api/v1/files/item/download/index.d.ts +180 -0
  99. package/dist/client/api/v1/files/item/download/index.d.ts.map +1 -0
  100. package/dist/client/api/v1/files/item/download/index.js +189 -0
  101. package/dist/client/api/v1/files/item/download/index.js.map +1 -0
  102. package/dist/client/api/v1/files/item/index.d.ts +20 -0
  103. package/dist/client/api/v1/files/item/index.d.ts.map +1 -0
  104. package/dist/client/api/v1/files/item/index.js +20 -0
  105. package/dist/client/api/v1/files/item/index.js.map +1 -0
  106. package/dist/client/api/v1/forms/index.d.ts +46 -1
  107. package/dist/client/api/v1/forms/index.d.ts.map +1 -1
  108. package/dist/client/api/v1/forms/index.js +22 -1
  109. package/dist/client/api/v1/forms/index.js.map +1 -1
  110. package/dist/client/api/v1/forms/item/index.d.ts +18 -0
  111. package/dist/client/api/v1/forms/item/index.d.ts.map +1 -1
  112. package/dist/client/api/v1/forms/item/index.js +15 -0
  113. package/dist/client/api/v1/forms/item/index.js.map +1 -1
  114. package/dist/client/api/v1/forms/item/publish/index.d.ts +200 -0
  115. package/dist/client/api/v1/forms/item/publish/index.d.ts.map +1 -0
  116. package/dist/client/api/v1/forms/item/publish/index.js +220 -0
  117. package/dist/client/api/v1/forms/item/publish/index.js.map +1 -0
  118. package/dist/client/api/v1/forms/item/recipients/bulk/index.d.ts +274 -0
  119. package/dist/client/api/v1/forms/item/recipients/bulk/index.d.ts.map +1 -0
  120. package/dist/client/api/v1/forms/item/recipients/bulk/index.js +302 -0
  121. package/dist/client/api/v1/forms/item/recipients/bulk/index.js.map +1 -0
  122. package/dist/client/api/v1/forms/item/recipients/index.d.ts +10 -4
  123. package/dist/client/api/v1/forms/item/recipients/index.d.ts.map +1 -1
  124. package/dist/client/api/v1/forms/item/recipients/index.js +11 -3
  125. package/dist/client/api/v1/forms/item/recipients/index.js.map +1 -1
  126. package/dist/client/api/v1/forms/item/recipients/item/index.d.ts +3 -2
  127. package/dist/client/api/v1/forms/item/recipients/item/index.d.ts.map +1 -1
  128. package/dist/client/api/v1/forms/item/recipients/item/index.js +6 -3
  129. package/dist/client/api/v1/forms/item/recipients/item/index.js.map +1 -1
  130. package/dist/client/api/v1/forms/item/recipients/item/responses/index.d.ts +4 -0
  131. package/dist/client/api/v1/forms/item/recipients/item/responses/index.d.ts.map +1 -1
  132. package/dist/client/api/v1/forms/item/recipients/item/responses/index.js +2 -0
  133. package/dist/client/api/v1/forms/item/recipients/item/responses/index.js.map +1 -1
  134. package/dist/client/api/v1/forms/item/revisions/index.d.ts +112 -0
  135. package/dist/client/api/v1/forms/item/revisions/index.d.ts.map +1 -0
  136. package/dist/client/api/v1/forms/item/revisions/index.js +110 -0
  137. package/dist/client/api/v1/forms/item/revisions/index.js.map +1 -0
  138. package/dist/client/api/v1/forms/item/revisions/item/index.d.ts +95 -0
  139. package/dist/client/api/v1/forms/item/revisions/item/index.d.ts.map +1 -0
  140. package/dist/client/api/v1/forms/item/revisions/item/index.js +102 -0
  141. package/dist/client/api/v1/forms/item/revisions/item/index.js.map +1 -0
  142. package/dist/client/api/v1/index.d.ts +25 -0
  143. package/dist/client/api/v1/index.d.ts.map +1 -1
  144. package/dist/client/api/v1/index.js +25 -0
  145. package/dist/client/api/v1/index.js.map +1 -1
  146. package/dist/client/api/v1/integrations/index.d.ts +20 -0
  147. package/dist/client/api/v1/integrations/index.d.ts.map +1 -0
  148. package/dist/client/api/v1/integrations/index.js +20 -0
  149. package/dist/client/api/v1/integrations/index.js.map +1 -0
  150. package/dist/client/api/v1/integrations/status/index.d.ts +168 -0
  151. package/dist/client/api/v1/integrations/status/index.d.ts.map +1 -0
  152. package/dist/client/api/v1/integrations/status/index.js +177 -0
  153. package/dist/client/api/v1/integrations/status/index.js.map +1 -0
  154. package/dist/client/api/v1/quota/index.d.ts +93 -0
  155. package/dist/client/api/v1/quota/index.d.ts.map +1 -0
  156. package/dist/client/api/v1/quota/index.js +99 -0
  157. package/dist/client/api/v1/quota/index.js.map +1 -0
  158. package/dist/client/formalingoClient.js +1 -1
  159. package/dist/client/models/index.d.ts +1963 -139
  160. package/dist/client/models/index.d.ts.map +1 -1
  161. package/dist/client/models/index.js +2001 -211
  162. package/dist/client/models/index.js.map +1 -1
  163. package/dist/index.d.ts +15 -0
  164. package/dist/index.d.ts.map +1 -1
  165. package/dist/index.js +89 -1
  166. package/dist/index.js.map +1 -1
  167. package/package.json +1 -1
@@ -3,6 +3,51 @@
3
3
  // Generated by Microsoft Kiota
4
4
  // @ts-ignore
5
5
  import { createUntypedNodeFromDiscriminatorValue } from '@microsoft/kiota-abstractions';
6
+ /**
7
+ * Creates a new instance of the appropriate class based on discriminator value
8
+ * @param parseNode The parse node to use to read the discriminator value and create the object
9
+ * @returns {ApplyDocumentParseJobResponse_meta}
10
+ */
11
+ // @ts-ignore
12
+ export function createApplyDocumentParseJobResponse_metaFromDiscriminatorValue(parseNode) {
13
+ return deserializeIntoApplyDocumentParseJobResponse_meta;
14
+ }
15
+ /**
16
+ * Creates a new instance of the appropriate class based on discriminator value
17
+ * @param parseNode The parse node to use to read the discriminator value and create the object
18
+ * @returns {ApplyDocumentParseJobResponse}
19
+ */
20
+ // @ts-ignore
21
+ export function createApplyDocumentParseJobResponseFromDiscriminatorValue(parseNode) {
22
+ return deserializeIntoApplyDocumentParseJobResponse;
23
+ }
24
+ /**
25
+ * Creates a new instance of the appropriate class based on discriminator value
26
+ * @param parseNode The parse node to use to read the discriminator value and create the object
27
+ * @returns {CanonicalDocumentSubmission}
28
+ */
29
+ // @ts-ignore
30
+ export function createCanonicalDocumentSubmissionFromDiscriminatorValue(parseNode) {
31
+ return deserializeIntoCanonicalDocumentSubmission;
32
+ }
33
+ /**
34
+ * Creates a new instance of the appropriate class based on discriminator value
35
+ * @param parseNode The parse node to use to read the discriminator value and create the object
36
+ * @returns {CanonicalRecipient}
37
+ */
38
+ // @ts-ignore
39
+ export function createCanonicalRecipientFromDiscriminatorValue(parseNode) {
40
+ return deserializeIntoCanonicalRecipient;
41
+ }
42
+ /**
43
+ * Creates a new instance of the appropriate class based on discriminator value
44
+ * @param parseNode The parse node to use to read the discriminator value and create the object
45
+ * @returns {CanonicalSigner}
46
+ */
47
+ // @ts-ignore
48
+ export function createCanonicalSignerFromDiscriminatorValue(parseNode) {
49
+ return deserializeIntoCanonicalSigner;
50
+ }
6
51
  /**
7
52
  * Creates a new instance of the appropriate class based on discriminator value
8
53
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -84,6 +129,51 @@ export function createCreateSignerRoleBodyFromDiscriminatorValue(parseNode) {
84
129
  export function createCreateSubmissionBodyFromDiscriminatorValue(parseNode) {
85
130
  return deserializeIntoCreateSubmissionBody;
86
131
  }
132
+ /**
133
+ * Creates a new instance of the appropriate class based on discriminator value
134
+ * @param parseNode The parse node to use to read the discriminator value and create the object
135
+ * @returns {CreateSubmissionResponse}
136
+ */
137
+ // @ts-ignore
138
+ export function createCreateSubmissionResponseFromDiscriminatorValue(parseNode) {
139
+ return deserializeIntoCreateSubmissionResponse;
140
+ }
141
+ /**
142
+ * Creates a new instance of the appropriate class based on discriminator value
143
+ * @param parseNode The parse node to use to read the discriminator value and create the object
144
+ * @returns {CreateSubmissionResult}
145
+ */
146
+ // @ts-ignore
147
+ export function createCreateSubmissionResultFromDiscriminatorValue(parseNode) {
148
+ return deserializeIntoCreateSubmissionResult;
149
+ }
150
+ /**
151
+ * Creates a new instance of the appropriate class based on discriminator value
152
+ * @param parseNode The parse node to use to read the discriminator value and create the object
153
+ * @returns {CreateSubmissionSignerResult}
154
+ */
155
+ // @ts-ignore
156
+ export function createCreateSubmissionSignerResultFromDiscriminatorValue(parseNode) {
157
+ return deserializeIntoCreateSubmissionSignerResult;
158
+ }
159
+ /**
160
+ * Creates a new instance of the appropriate class based on discriminator value
161
+ * @param parseNode The parse node to use to read the discriminator value and create the object
162
+ * @returns {DetectedDocumentField_rect}
163
+ */
164
+ // @ts-ignore
165
+ export function createDetectedDocumentField_rectFromDiscriminatorValue(parseNode) {
166
+ return deserializeIntoDetectedDocumentField_rect;
167
+ }
168
+ /**
169
+ * Creates a new instance of the appropriate class based on discriminator value
170
+ * @param parseNode The parse node to use to read the discriminator value and create the object
171
+ * @returns {DetectedDocumentField}
172
+ */
173
+ // @ts-ignore
174
+ export function createDetectedDocumentFieldFromDiscriminatorValue(parseNode) {
175
+ return deserializeIntoDetectedDocumentField;
176
+ }
87
177
  /**
88
178
  * Creates a new instance of the appropriate class based on discriminator value
89
179
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -120,6 +210,51 @@ export function createDocumentFieldFromDiscriminatorValue(parseNode) {
120
210
  export function createDocumentFromDiscriminatorValue(parseNode) {
121
211
  return deserializeIntoDocument;
122
212
  }
213
+ /**
214
+ * Creates a new instance of the appropriate class based on discriminator value
215
+ * @param parseNode The parse node to use to read the discriminator value and create the object
216
+ * @returns {DocumentNotEditableConflict}
217
+ */
218
+ // @ts-ignore
219
+ export function createDocumentNotEditableConflictFromDiscriminatorValue(parseNode) {
220
+ return deserializeIntoDocumentNotEditableConflict;
221
+ }
222
+ /**
223
+ * Creates a new instance of the appropriate class based on discriminator value
224
+ * @param parseNode The parse node to use to read the discriminator value and create the object
225
+ * @returns {DocumentParseJobResult_stats}
226
+ */
227
+ // @ts-ignore
228
+ export function createDocumentParseJobResult_statsFromDiscriminatorValue(parseNode) {
229
+ return deserializeIntoDocumentParseJobResult_stats;
230
+ }
231
+ /**
232
+ * Creates a new instance of the appropriate class based on discriminator value
233
+ * @param parseNode The parse node to use to read the discriminator value and create the object
234
+ * @returns {DocumentParseJobResult}
235
+ */
236
+ // @ts-ignore
237
+ export function createDocumentParseJobResultFromDiscriminatorValue(parseNode) {
238
+ return deserializeIntoDocumentParseJobResult;
239
+ }
240
+ /**
241
+ * Creates a new instance of the appropriate class based on discriminator value
242
+ * @param parseNode The parse node to use to read the discriminator value and create the object
243
+ * @returns {DocumentRevision}
244
+ */
245
+ // @ts-ignore
246
+ export function createDocumentRevisionFromDiscriminatorValue(parseNode) {
247
+ return deserializeIntoDocumentRevision;
248
+ }
249
+ /**
250
+ * Creates a new instance of the appropriate class based on discriminator value
251
+ * @param parseNode The parse node to use to read the discriminator value and create the object
252
+ * @returns {DocumentSubmission_signedPdf}
253
+ */
254
+ // @ts-ignore
255
+ export function createDocumentSubmission_signedPdfFromDiscriminatorValue(parseNode) {
256
+ return deserializeIntoDocumentSubmission_signedPdf;
257
+ }
123
258
  /**
124
259
  * Creates a new instance of the appropriate class based on discriminator value
125
260
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -129,6 +264,33 @@ export function createDocumentFromDiscriminatorValue(parseNode) {
129
264
  export function createDocumentSubmissionFromDiscriminatorValue(parseNode) {
130
265
  return deserializeIntoDocumentSubmission;
131
266
  }
267
+ /**
268
+ * Creates a new instance of the appropriate class based on discriminator value
269
+ * @param parseNode The parse node to use to read the discriminator value and create the object
270
+ * @returns {FileDescriptor}
271
+ */
272
+ // @ts-ignore
273
+ export function createFileDescriptorFromDiscriminatorValue(parseNode) {
274
+ return deserializeIntoFileDescriptor;
275
+ }
276
+ /**
277
+ * Creates a new instance of the appropriate class based on discriminator value
278
+ * @param parseNode The parse node to use to read the discriminator value and create the object
279
+ * @returns {FileDownload}
280
+ */
281
+ // @ts-ignore
282
+ export function createFileDownloadFromDiscriminatorValue(parseNode) {
283
+ return deserializeIntoFileDownload;
284
+ }
285
+ /**
286
+ * Creates a new instance of the appropriate class based on discriminator value
287
+ * @param parseNode The parse node to use to read the discriminator value and create the object
288
+ * @returns {FileDownloadResponse}
289
+ */
290
+ // @ts-ignore
291
+ export function createFileDownloadResponseFromDiscriminatorValue(parseNode) {
292
+ return deserializeIntoFileDownloadResponse;
293
+ }
132
294
  /**
133
295
  * Creates a new instance of the appropriate class based on discriminator value
134
296
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -156,6 +318,96 @@ export function createForm_settingsFromDiscriminatorValue(parseNode) {
156
318
  export function createFormFromDiscriminatorValue(parseNode) {
157
319
  return deserializeIntoForm;
158
320
  }
321
+ /**
322
+ * Creates a new instance of the appropriate class based on discriminator value
323
+ * @param parseNode The parse node to use to read the discriminator value and create the object
324
+ * @returns {FormRevision}
325
+ */
326
+ // @ts-ignore
327
+ export function createFormRevisionFromDiscriminatorValue(parseNode) {
328
+ return deserializeIntoFormRevision;
329
+ }
330
+ /**
331
+ * Creates a new instance of the appropriate class based on discriminator value
332
+ * @param parseNode The parse node to use to read the discriminator value and create the object
333
+ * @returns {GetDocumentParseJobResponse_data}
334
+ */
335
+ // @ts-ignore
336
+ export function createGetDocumentParseJobResponse_dataFromDiscriminatorValue(parseNode) {
337
+ return deserializeIntoGetDocumentParseJobResponse_data;
338
+ }
339
+ /**
340
+ * Creates a new instance of the appropriate class based on discriminator value
341
+ * @param parseNode The parse node to use to read the discriminator value and create the object
342
+ * @returns {GetDocumentParseJobResponse_meta}
343
+ */
344
+ // @ts-ignore
345
+ export function createGetDocumentParseJobResponse_metaFromDiscriminatorValue(parseNode) {
346
+ return deserializeIntoGetDocumentParseJobResponse_meta;
347
+ }
348
+ /**
349
+ * Creates a new instance of the appropriate class based on discriminator value
350
+ * @param parseNode The parse node to use to read the discriminator value and create the object
351
+ * @returns {GetDocumentParseJobResponse}
352
+ */
353
+ // @ts-ignore
354
+ export function createGetDocumentParseJobResponseFromDiscriminatorValue(parseNode) {
355
+ return deserializeIntoGetDocumentParseJobResponse;
356
+ }
357
+ /**
358
+ * Creates a new instance of the appropriate class based on discriminator value
359
+ * @param parseNode The parse node to use to read the discriminator value and create the object
360
+ * @returns {ImportDocumentBundleResponse_data}
361
+ */
362
+ // @ts-ignore
363
+ export function createImportDocumentBundleResponse_dataFromDiscriminatorValue(parseNode) {
364
+ return deserializeIntoImportDocumentBundleResponse_data;
365
+ }
366
+ /**
367
+ * Creates a new instance of the appropriate class based on discriminator value
368
+ * @param parseNode The parse node to use to read the discriminator value and create the object
369
+ * @returns {ImportDocumentBundleResponse_meta}
370
+ */
371
+ // @ts-ignore
372
+ export function createImportDocumentBundleResponse_metaFromDiscriminatorValue(parseNode) {
373
+ return deserializeIntoImportDocumentBundleResponse_meta;
374
+ }
375
+ /**
376
+ * Creates a new instance of the appropriate class based on discriminator value
377
+ * @param parseNode The parse node to use to read the discriminator value and create the object
378
+ * @returns {ImportDocumentBundleResponse}
379
+ */
380
+ // @ts-ignore
381
+ export function createImportDocumentBundleResponseFromDiscriminatorValue(parseNode) {
382
+ return deserializeIntoImportDocumentBundleResponse;
383
+ }
384
+ /**
385
+ * Creates a new instance of the appropriate class based on discriminator value
386
+ * @param parseNode The parse node to use to read the discriminator value and create the object
387
+ * @returns {ParseJobAppliedResult}
388
+ */
389
+ // @ts-ignore
390
+ export function createParseJobAppliedResultFromDiscriminatorValue(parseNode) {
391
+ return deserializeIntoParseJobAppliedResult;
392
+ }
393
+ /**
394
+ * Creates a new instance of the appropriate class based on discriminator value
395
+ * @param parseNode The parse node to use to read the discriminator value and create the object
396
+ * @returns {PhoneValidationDetails}
397
+ */
398
+ // @ts-ignore
399
+ export function createPhoneValidationDetailsFromDiscriminatorValue(parseNode) {
400
+ return deserializeIntoPhoneValidationDetails;
401
+ }
402
+ /**
403
+ * Creates a new instance of the appropriate class based on discriminator value
404
+ * @param parseNode The parse node to use to read the discriminator value and create the object
405
+ * @returns {PhoneValidationError}
406
+ */
407
+ // @ts-ignore
408
+ export function createPhoneValidationErrorFromDiscriminatorValue(parseNode) {
409
+ return deserializeIntoPhoneValidationError;
410
+ }
159
411
  /**
160
412
  * Creates a new instance of the appropriate class based on discriminator value
161
413
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -165,6 +417,33 @@ export function createFormFromDiscriminatorValue(parseNode) {
165
417
  export function createQuestionFromDiscriminatorValue(parseNode) {
166
418
  return deserializeIntoQuestion;
167
419
  }
420
+ /**
421
+ * Creates a new instance of the appropriate class based on discriminator value
422
+ * @param parseNode The parse node to use to read the discriminator value and create the object
423
+ * @returns {QuotaExceededError}
424
+ */
425
+ // @ts-ignore
426
+ export function createQuotaExceededErrorFromDiscriminatorValue(parseNode) {
427
+ return deserializeIntoQuotaExceededError;
428
+ }
429
+ /**
430
+ * Creates a new instance of the appropriate class based on discriminator value
431
+ * @param parseNode The parse node to use to read the discriminator value and create the object
432
+ * @returns {RecipientBulkCreateResult}
433
+ */
434
+ // @ts-ignore
435
+ export function createRecipientBulkCreateResultFromDiscriminatorValue(parseNode) {
436
+ return deserializeIntoRecipientBulkCreateResult;
437
+ }
438
+ /**
439
+ * Creates a new instance of the appropriate class based on discriminator value
440
+ * @param parseNode The parse node to use to read the discriminator value and create the object
441
+ * @returns {RecipientCreateResult}
442
+ */
443
+ // @ts-ignore
444
+ export function createRecipientCreateResultFromDiscriminatorValue(parseNode) {
445
+ return deserializeIntoRecipientCreateResult;
446
+ }
168
447
  /**
169
448
  * Creates a new instance of the appropriate class based on discriminator value
170
449
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -183,6 +462,15 @@ export function createRecipientFromDiscriminatorValue(parseNode) {
183
462
  export function createRecipientResponseFromDiscriminatorValue(parseNode) {
184
463
  return deserializeIntoRecipientResponse;
185
464
  }
465
+ /**
466
+ * Creates a new instance of the appropriate class based on discriminator value
467
+ * @param parseNode The parse node to use to read the discriminator value and create the object
468
+ * @returns {RecipientUpdate}
469
+ */
470
+ // @ts-ignore
471
+ export function createRecipientUpdateFromDiscriminatorValue(parseNode) {
472
+ return deserializeIntoRecipientUpdate;
473
+ }
186
474
  /**
187
475
  * Creates a new instance of the appropriate class based on discriminator value
188
476
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -237,6 +525,51 @@ export function createSignerResponseFromDiscriminatorValue(parseNode) {
237
525
  export function createSignerRoleFromDiscriminatorValue(parseNode) {
238
526
  return deserializeIntoSignerRole;
239
527
  }
528
+ /**
529
+ * Creates a new instance of the appropriate class based on discriminator value
530
+ * @param parseNode The parse node to use to read the discriminator value and create the object
531
+ * @returns {SignerUpdate}
532
+ */
533
+ // @ts-ignore
534
+ export function createSignerUpdateFromDiscriminatorValue(parseNode) {
535
+ return deserializeIntoSignerUpdate;
536
+ }
537
+ /**
538
+ * Creates a new instance of the appropriate class based on discriminator value
539
+ * @param parseNode The parse node to use to read the discriminator value and create the object
540
+ * @returns {StartDocumentParseJobBody}
541
+ */
542
+ // @ts-ignore
543
+ export function createStartDocumentParseJobBodyFromDiscriminatorValue(parseNode) {
544
+ return deserializeIntoStartDocumentParseJobBody;
545
+ }
546
+ /**
547
+ * Creates a new instance of the appropriate class based on discriminator value
548
+ * @param parseNode The parse node to use to read the discriminator value and create the object
549
+ * @returns {StartDocumentParseJobResponse_data}
550
+ */
551
+ // @ts-ignore
552
+ export function createStartDocumentParseJobResponse_dataFromDiscriminatorValue(parseNode) {
553
+ return deserializeIntoStartDocumentParseJobResponse_data;
554
+ }
555
+ /**
556
+ * Creates a new instance of the appropriate class based on discriminator value
557
+ * @param parseNode The parse node to use to read the discriminator value and create the object
558
+ * @returns {StartDocumentParseJobResponse_meta}
559
+ */
560
+ // @ts-ignore
561
+ export function createStartDocumentParseJobResponse_metaFromDiscriminatorValue(parseNode) {
562
+ return deserializeIntoStartDocumentParseJobResponse_meta;
563
+ }
564
+ /**
565
+ * Creates a new instance of the appropriate class based on discriminator value
566
+ * @param parseNode The parse node to use to read the discriminator value and create the object
567
+ * @returns {StartDocumentParseJobResponse}
568
+ */
569
+ // @ts-ignore
570
+ export function createStartDocumentParseJobResponseFromDiscriminatorValue(parseNode) {
571
+ return deserializeIntoStartDocumentParseJobResponse;
572
+ }
240
573
  /**
241
574
  * Creates a new instance of the appropriate class based on discriminator value
242
575
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -291,6 +624,15 @@ export function createUpdateRecipientResponsesBodyFromDiscriminatorValue(parseNo
291
624
  export function createUpdateSectionBodyFromDiscriminatorValue(parseNode) {
292
625
  return deserializeIntoUpdateSectionBody;
293
626
  }
627
+ /**
628
+ * Creates a new instance of the appropriate class based on discriminator value
629
+ * @param parseNode The parse node to use to read the discriminator value and create the object
630
+ * @returns {UpdateSignerBody}
631
+ */
632
+ // @ts-ignore
633
+ export function createUpdateSignerBodyFromDiscriminatorValue(parseNode) {
634
+ return deserializeIntoUpdateSignerBody;
635
+ }
294
636
  /**
295
637
  * Creates a new instance of the appropriate class based on discriminator value
296
638
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -309,42 +651,113 @@ export function createUpdateSignerResponsesBody_responsesFromDiscriminatorValue(
309
651
  export function createUpdateSignerResponsesBodyFromDiscriminatorValue(parseNode) {
310
652
  return deserializeIntoUpdateSignerResponsesBody;
311
653
  }
654
+ /**
655
+ * Creates a new instance of the appropriate class based on discriminator value
656
+ * @param parseNode The parse node to use to read the discriminator value and create the object
657
+ * @returns {ValidationError}
658
+ */
659
+ // @ts-ignore
660
+ export function createValidationErrorFromDiscriminatorValue(parseNode) {
661
+ return deserializeIntoValidationError;
662
+ }
312
663
  /**
313
664
  * The deserialization information for the current model
314
- * @param CreateFieldBody The instance to deserialize into.
665
+ * @param ApplyDocumentParseJobResponse The instance to deserialize into.
315
666
  * @returns {Record<string, (node: ParseNode) => void>}
316
667
  */
317
668
  // @ts-ignore
318
- export function deserializeIntoCreateFieldBody(createFieldBody = {}) {
669
+ export function deserializeIntoApplyDocumentParseJobResponse(applyDocumentParseJobResponse = {}) {
319
670
  return {
320
- "assigneeRole": n => { createFieldBody.assigneeRole = n.getStringValue(); },
321
- "defaultValue": n => { createFieldBody.defaultValue = n.getStringValue(); },
322
- "direction": n => { createFieldBody.direction = n.getEnumValue(CreateFieldBody_directionObject) ?? CreateFieldBody_directionObject.Auto; },
323
- "height": n => { createFieldBody.height = n.getNumberValue(); },
324
- "isReadOnly": n => { createFieldBody.isReadOnly = n.getBooleanValue(); },
325
- "isRequired": n => { createFieldBody.isRequired = n.getBooleanValue(); },
326
- "label": n => { createFieldBody.label = n.getStringValue(); },
327
- "options": n => { createFieldBody.options = n.getObjectValue(createCreateFieldBody_optionsFromDiscriminatorValue); },
328
- "order": n => { createFieldBody.order = n.getNumberValue(); },
329
- "pageNumber": n => { createFieldBody.pageNumber = n.getNumberValue(); },
330
- "type": n => { createFieldBody.type = n.getEnumValue(CreateFieldBody_typeObject); },
331
- "width": n => { createFieldBody.width = n.getNumberValue(); },
332
- "x": n => { createFieldBody.x = n.getNumberValue(); },
333
- "y": n => { createFieldBody.y = n.getNumberValue(); },
671
+ "data": n => { applyDocumentParseJobResponse.data = n.getObjectValue(createParseJobAppliedResultFromDiscriminatorValue); },
672
+ "meta": n => { applyDocumentParseJobResponse.meta = n.getObjectValue(createApplyDocumentParseJobResponse_metaFromDiscriminatorValue); },
673
+ "success": n => { applyDocumentParseJobResponse.success = n.getBooleanValue(); },
334
674
  };
335
675
  }
336
676
  /**
337
677
  * The deserialization information for the current model
338
- * @param CreateFieldBody_options The instance to deserialize into.
678
+ * @param ApplyDocumentParseJobResponse_meta The instance to deserialize into.
339
679
  * @returns {Record<string, (node: ParseNode) => void>}
340
680
  */
341
681
  // @ts-ignore
342
- export function deserializeIntoCreateFieldBody_options(createFieldBody_options = {}) {
343
- return {};
682
+ export function deserializeIntoApplyDocumentParseJobResponse_meta(applyDocumentParseJobResponse_meta = {}) {
683
+ return {
684
+ "limit": n => { applyDocumentParseJobResponse_meta.limit = n.getNumberValue(); },
685
+ "page": n => { applyDocumentParseJobResponse_meta.page = n.getNumberValue(); },
686
+ "total": n => { applyDocumentParseJobResponse_meta.total = n.getNumberValue(); },
687
+ };
344
688
  }
345
689
  /**
346
690
  * The deserialization information for the current model
347
- * @param CreateFormBody The instance to deserialize into.
691
+ * @param CanonicalDocumentSubmission The instance to deserialize into.
692
+ * @returns {Record<string, (node: ParseNode) => void>}
693
+ */
694
+ // @ts-ignore
695
+ export function deserializeIntoCanonicalDocumentSubmission(canonicalDocumentSubmission = {}) {
696
+ return {
697
+ ...deserializeIntoDocumentSubmission(canonicalDocumentSubmission),
698
+ };
699
+ }
700
+ /**
701
+ * The deserialization information for the current model
702
+ * @param CanonicalRecipient The instance to deserialize into.
703
+ * @returns {Record<string, (node: ParseNode) => void>}
704
+ */
705
+ // @ts-ignore
706
+ export function deserializeIntoCanonicalRecipient(canonicalRecipient = {}) {
707
+ return {
708
+ ...deserializeIntoRecipient(canonicalRecipient),
709
+ };
710
+ }
711
+ /**
712
+ * The deserialization information for the current model
713
+ * @param CanonicalSigner The instance to deserialize into.
714
+ * @returns {Record<string, (node: ParseNode) => void>}
715
+ */
716
+ // @ts-ignore
717
+ export function deserializeIntoCanonicalSigner(canonicalSigner = {}) {
718
+ return {
719
+ ...deserializeIntoSigner(canonicalSigner),
720
+ };
721
+ }
722
+ /**
723
+ * The deserialization information for the current model
724
+ * @param CreateFieldBody The instance to deserialize into.
725
+ * @returns {Record<string, (node: ParseNode) => void>}
726
+ */
727
+ // @ts-ignore
728
+ export function deserializeIntoCreateFieldBody(createFieldBody = {}) {
729
+ return {
730
+ "assigneeRole": n => { createFieldBody.assigneeRole = n.getStringValue(); },
731
+ "defaultValue": n => { createFieldBody.defaultValue = n.getStringValue(); },
732
+ "direction": n => { createFieldBody.direction = n.getEnumValue(CreateFieldBody_directionObject) ?? CreateFieldBody_directionObject.Auto; },
733
+ "height": n => { createFieldBody.height = n.getNumberValue(); },
734
+ "id": n => { createFieldBody.id = n.getGuidValue(); },
735
+ "isReadOnly": n => { createFieldBody.isReadOnly = n.getBooleanValue(); },
736
+ "isRequired": n => { createFieldBody.isRequired = n.getBooleanValue(); },
737
+ "label": n => { createFieldBody.label = n.getStringValue(); },
738
+ "options": n => { createFieldBody.options = n.getObjectValue(createCreateFieldBody_optionsFromDiscriminatorValue); },
739
+ "order": n => { createFieldBody.order = n.getNumberValue(); },
740
+ "pageNumber": n => { createFieldBody.pageNumber = n.getNumberValue(); },
741
+ "type": n => { createFieldBody.type = n.getEnumValue(CreateFieldBody_typeObject); },
742
+ "width": n => { createFieldBody.width = n.getNumberValue(); },
743
+ "x": n => { createFieldBody.x = n.getNumberValue(); },
744
+ "y": n => { createFieldBody.y = n.getNumberValue(); },
745
+ };
746
+ }
747
+ /**
748
+ * The deserialization information for the current model
749
+ * @param CreateFieldBody_options The instance to deserialize into.
750
+ * @returns {Record<string, (node: ParseNode) => void>}
751
+ */
752
+ // @ts-ignore
753
+ export function deserializeIntoCreateFieldBody_options(createFieldBody_options = {}) {
754
+ return {
755
+ "supporting_attachment": n => { createFieldBody_options.supportingAttachment = n.getBooleanValue(); },
756
+ };
757
+ }
758
+ /**
759
+ * The deserialization information for the current model
760
+ * @param CreateFormBody The instance to deserialize into.
348
761
  * @returns {Record<string, (node: ParseNode) => void>}
349
762
  */
350
763
  // @ts-ignore
@@ -430,10 +843,84 @@ export function deserializeIntoCreateSignerRoleBody(createSignerRoleBody = {}) {
430
843
  // @ts-ignore
431
844
  export function deserializeIntoCreateSubmissionBody(createSubmissionBody = {}) {
432
845
  return {
846
+ "deliveryFormat": n => { createSubmissionBody.deliveryFormat = n.getEnumValue(CreateSubmissionBody_deliveryFormatObject) ?? CreateSubmissionBody_deliveryFormatObject.Document; },
433
847
  "signers": n => { createSubmissionBody.signers = n.getCollectionOfObjectValues(createSignerInputFromDiscriminatorValue); },
434
848
  "suppress_notifications": n => { createSubmissionBody.suppressNotifications = n.getBooleanValue(); },
435
849
  };
436
850
  }
851
+ /**
852
+ * The deserialization information for the current model
853
+ * @param CreateSubmissionResponse The instance to deserialize into.
854
+ * @returns {Record<string, (node: ParseNode) => void>}
855
+ */
856
+ // @ts-ignore
857
+ export function deserializeIntoCreateSubmissionResponse(createSubmissionResponse = {}) {
858
+ return {
859
+ "data": n => { createSubmissionResponse.data = n.getObjectValue(createCreateSubmissionResultFromDiscriminatorValue); },
860
+ "success": n => { createSubmissionResponse.success = n.getBooleanValue(); },
861
+ };
862
+ }
863
+ /**
864
+ * The deserialization information for the current model
865
+ * @param CreateSubmissionResult The instance to deserialize into.
866
+ * @returns {Record<string, (node: ParseNode) => void>}
867
+ */
868
+ // @ts-ignore
869
+ export function deserializeIntoCreateSubmissionResult(createSubmissionResult = {}) {
870
+ return {
871
+ "dispatchId": n => { createSubmissionResult.dispatchId = n.getGuidValue(); },
872
+ "dispatchReused": n => { createSubmissionResult.dispatchReused = n.getBooleanValue(); },
873
+ "linksCreated": n => { createSubmissionResult.linksCreated = n.getBooleanValue(); },
874
+ "signers": n => { createSubmissionResult.signers = n.getCollectionOfObjectValues(createCreateSubmissionSignerResultFromDiscriminatorValue); },
875
+ "submissionId": n => { createSubmissionResult.submissionId = n.getGuidValue(); },
876
+ };
877
+ }
878
+ /**
879
+ * The deserialization information for the current model
880
+ * @param CreateSubmissionSignerResult The instance to deserialize into.
881
+ * @returns {Record<string, (node: ParseNode) => void>}
882
+ */
883
+ // @ts-ignore
884
+ export function deserializeIntoCreateSubmissionSignerResult(createSubmissionSignerResult = {}) {
885
+ return {
886
+ "color": n => { createSubmissionSignerResult.color = n.getStringValue(); },
887
+ "id": n => { createSubmissionSignerResult.id = n.getGuidValue(); },
888
+ "label": n => { createSubmissionSignerResult.label = n.getStringValue(); },
889
+ "link": n => { createSubmissionSignerResult.link = n.getStringValue(); },
890
+ "name": n => { createSubmissionSignerResult.name = n.getStringValue(); },
891
+ "order": n => { createSubmissionSignerResult.order = n.getNumberValue(); },
892
+ "role": n => { createSubmissionSignerResult.role = n.getStringValue(); },
893
+ };
894
+ }
895
+ /**
896
+ * The deserialization information for the current model
897
+ * @param DetectedDocumentField The instance to deserialize into.
898
+ * @returns {Record<string, (node: ParseNode) => void>}
899
+ */
900
+ // @ts-ignore
901
+ export function deserializeIntoDetectedDocumentField(detectedDocumentField = {}) {
902
+ return {
903
+ "confidence": n => { detectedDocumentField.confidence = n.getNumberValue(); },
904
+ "label": n => { detectedDocumentField.label = n.getStringValue(); },
905
+ "pageNumber": n => { detectedDocumentField.pageNumber = n.getNumberValue(); },
906
+ "rect": n => { detectedDocumentField.rect = n.getObjectValue(createDetectedDocumentField_rectFromDiscriminatorValue); },
907
+ "type": n => { detectedDocumentField.type = n.getEnumValue(DetectedDocumentField_typeObject); },
908
+ };
909
+ }
910
+ /**
911
+ * The deserialization information for the current model
912
+ * @param DetectedDocumentField_rect The instance to deserialize into.
913
+ * @returns {Record<string, (node: ParseNode) => void>}
914
+ */
915
+ // @ts-ignore
916
+ export function deserializeIntoDetectedDocumentField_rect(detectedDocumentField_rect = {}) {
917
+ return {
918
+ "height": n => { detectedDocumentField_rect.height = n.getNumberValue(); },
919
+ "width": n => { detectedDocumentField_rect.width = n.getNumberValue(); },
920
+ "x": n => { detectedDocumentField_rect.x = n.getNumberValue(); },
921
+ "y": n => { detectedDocumentField_rect.y = n.getNumberValue(); },
922
+ };
923
+ }
437
924
  /**
438
925
  * The deserialization information for the current model
439
926
  * @param Document The instance to deserialize into.
@@ -504,8 +991,63 @@ export function deserializeIntoDocumentField(documentField = {}) {
504
991
  */
505
992
  // @ts-ignore
506
993
  export function deserializeIntoDocumentField_options(documentField_options = {}) {
994
+ return {
995
+ "supporting_attachment": n => { documentField_options.supportingAttachment = n.getBooleanValue(); },
996
+ };
997
+ }
998
+ /**
999
+ * The deserialization information for the current model
1000
+ * @param DocumentNotEditableConflict The instance to deserialize into.
1001
+ * @returns {Record<string, (node: ParseNode) => void>}
1002
+ */
1003
+ // @ts-ignore
1004
+ export function deserializeIntoDocumentNotEditableConflict(documentNotEditableConflict = {}) {
1005
+ return {
1006
+ "code": n => { documentNotEditableConflict.code = n.getEnumValue(DocumentNotEditableConflict_codeObject); },
1007
+ "error": n => { documentNotEditableConflict.errorEscaped = n.getStringValue(); },
1008
+ "success": n => { documentNotEditableConflict.success = n.getBooleanValue(); },
1009
+ };
1010
+ }
1011
+ /**
1012
+ * The deserialization information for the current model
1013
+ * @param DocumentParseJobResult The instance to deserialize into.
1014
+ * @returns {Record<string, (node: ParseNode) => void>}
1015
+ */
1016
+ // @ts-ignore
1017
+ export function deserializeIntoDocumentParseJobResult(documentParseJobResult = {}) {
1018
+ return {
1019
+ "applied": n => { documentParseJobResult.applied = n.getObjectValue(createParseJobAppliedResultFromDiscriminatorValue); },
1020
+ "detectedLanguage": n => { documentParseJobResult.detectedLanguage = n.getStringValue(); },
1021
+ "fields": n => { documentParseJobResult.fields = n.getCollectionOfObjectValues(createDetectedDocumentFieldFromDiscriminatorValue); },
1022
+ "stats": n => { documentParseJobResult.stats = n.getObjectValue(createDocumentParseJobResult_statsFromDiscriminatorValue); },
1023
+ };
1024
+ }
1025
+ /**
1026
+ * The deserialization information for the current model
1027
+ * @param DocumentParseJobResult_stats The instance to deserialize into.
1028
+ * @returns {Record<string, (node: ParseNode) => void>}
1029
+ */
1030
+ // @ts-ignore
1031
+ export function deserializeIntoDocumentParseJobResult_stats(documentParseJobResult_stats = {}) {
507
1032
  return {};
508
1033
  }
1034
+ /**
1035
+ * The deserialization information for the current model
1036
+ * @param DocumentRevision The instance to deserialize into.
1037
+ * @returns {Record<string, (node: ParseNode) => void>}
1038
+ */
1039
+ // @ts-ignore
1040
+ export function deserializeIntoDocumentRevision(documentRevision = {}) {
1041
+ return {
1042
+ "changesSummary": n => { documentRevision.changesSummary = n.getStringValue(); },
1043
+ "documentId": n => { documentRevision.documentId = n.getGuidValue(); },
1044
+ "id": n => { documentRevision.id = n.getGuidValue(); },
1045
+ "publishedAt": n => { documentRevision.publishedAt = n.getDateValue(); },
1046
+ "publishedBy": n => { documentRevision.publishedBy = n.getStringValue(); },
1047
+ "snapshot": n => { documentRevision.snapshot = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
1048
+ "version": n => { documentRevision.version = n.getNumberValue(); },
1049
+ };
1050
+ }
509
1051
  /**
510
1052
  * The deserialization information for the current model
511
1053
  * @param DocumentSubmission The instance to deserialize into.
@@ -518,11 +1060,75 @@ export function deserializeIntoDocumentSubmission(documentSubmission = {}) {
518
1060
  "completedPdfUrl": n => { documentSubmission.completedPdfUrl = n.getStringValue(); },
519
1061
  "createdAt": n => { documentSubmission.createdAt = n.getDateValue(); },
520
1062
  "documentId": n => { documentSubmission.documentId = n.getGuidValue(); },
1063
+ "documentRevisionId": n => { documentSubmission.documentRevisionId = n.getGuidValue(); },
521
1064
  "id": n => { documentSubmission.id = n.getGuidValue(); },
1065
+ "signedPdf": n => { documentSubmission.signedPdf = n.getObjectValue(createDocumentSubmission_signedPdfFromDiscriminatorValue); },
522
1066
  "signers": n => { documentSubmission.signers = n.getCollectionOfObjectValues(createSignerFromDiscriminatorValue); },
523
1067
  "status": n => { documentSubmission.status = n.getEnumValue(DocumentSubmission_statusObject); },
524
1068
  };
525
1069
  }
1070
+ /**
1071
+ * The deserialization information for the current model
1072
+ * @param DocumentSubmission_signedPdf The instance to deserialize into.
1073
+ * @returns {Record<string, (node: ParseNode) => void>}
1074
+ */
1075
+ // @ts-ignore
1076
+ export function deserializeIntoDocumentSubmission_signedPdf(documentSubmission_signedPdf = {}) {
1077
+ return {
1078
+ "authorization": n => { documentSubmission_signedPdf.authorization = n.getEnumValue(DocumentSubmission_signedPdf_authorizationObject); },
1079
+ "contentType": n => { documentSubmission_signedPdf.contentType = n.getStringValue(); },
1080
+ "downloadMethod": n => { documentSubmission_signedPdf.downloadMethod = n.getEnumValue(DocumentSubmission_signedPdf_downloadMethodObject); },
1081
+ "downloadUrl": n => { documentSubmission_signedPdf.downloadUrl = n.getStringValue(); },
1082
+ "fileId": n => { documentSubmission_signedPdf.fileId = n.getGuidValue(); },
1083
+ "name": n => { documentSubmission_signedPdf.name = n.getStringValue(); },
1084
+ "sizeBytes": n => { documentSubmission_signedPdf.sizeBytes = n.getNumberValue(); },
1085
+ };
1086
+ }
1087
+ /**
1088
+ * The deserialization information for the current model
1089
+ * @param FileDescriptor The instance to deserialize into.
1090
+ * @returns {Record<string, (node: ParseNode) => void>}
1091
+ */
1092
+ // @ts-ignore
1093
+ export function deserializeIntoFileDescriptor(fileDescriptor = {}) {
1094
+ return {
1095
+ "authorization": n => { fileDescriptor.authorization = n.getEnumValue(FileDescriptor_authorizationObject); },
1096
+ "contentType": n => { fileDescriptor.contentType = n.getStringValue(); },
1097
+ "downloadMethod": n => { fileDescriptor.downloadMethod = n.getEnumValue(FileDescriptor_downloadMethodObject); },
1098
+ "downloadUrl": n => { fileDescriptor.downloadUrl = n.getStringValue(); },
1099
+ "fileId": n => { fileDescriptor.fileId = n.getGuidValue(); },
1100
+ "name": n => { fileDescriptor.name = n.getStringValue(); },
1101
+ "sizeBytes": n => { fileDescriptor.sizeBytes = n.getNumberValue(); },
1102
+ };
1103
+ }
1104
+ /**
1105
+ * The deserialization information for the current model
1106
+ * @param FileDownload The instance to deserialize into.
1107
+ * @returns {Record<string, (node: ParseNode) => void>}
1108
+ */
1109
+ // @ts-ignore
1110
+ export function deserializeIntoFileDownload(fileDownload = {}) {
1111
+ return {
1112
+ "contentType": n => { fileDownload.contentType = n.getStringValue(); },
1113
+ "downloadUrl": n => { fileDownload.downloadUrl = n.getStringValue(); },
1114
+ "expiresIn": n => { fileDownload.expiresIn = n.getNumberValue(); },
1115
+ "fileId": n => { fileDownload.fileId = n.getGuidValue(); },
1116
+ "name": n => { fileDownload.name = n.getStringValue(); },
1117
+ "sizeBytes": n => { fileDownload.sizeBytes = n.getNumberValue(); },
1118
+ };
1119
+ }
1120
+ /**
1121
+ * The deserialization information for the current model
1122
+ * @param FileDownloadResponse The instance to deserialize into.
1123
+ * @returns {Record<string, (node: ParseNode) => void>}
1124
+ */
1125
+ // @ts-ignore
1126
+ export function deserializeIntoFileDownloadResponse(fileDownloadResponse = {}) {
1127
+ return {
1128
+ "data": n => { fileDownloadResponse.data = n.getObjectValue(createFileDownloadFromDiscriminatorValue); },
1129
+ "success": n => { fileDownloadResponse.success = n.getBooleanValue(); },
1130
+ };
1131
+ }
526
1132
  /**
527
1133
  * The deserialization information for the current model
528
1134
  * @param Form The instance to deserialize into.
@@ -538,8 +1144,10 @@ export function deserializeIntoForm(form = {}) {
538
1144
  "id": n => { form.id = n.getGuidValue(); },
539
1145
  "publicToken": n => { form.publicToken = n.getStringValue(); },
540
1146
  "question_count": n => { form.questionCount = n.getNumberValue(); },
1147
+ "sent_count": n => { form.sentCount = n.getNumberValue(); },
541
1148
  "settings": n => { form.settings = n.getObjectValue(createForm_settingsFromDiscriminatorValue); },
542
1149
  "status": n => { form.status = n.getEnumValue(Form_statusObject); },
1150
+ "submission_count": n => { form.submissionCount = n.getNumberValue(); },
543
1151
  "title": n => { form.title = n.getStringValue(); },
544
1152
  "updatedAt": n => { form.updatedAt = n.getDateValue(); },
545
1153
  "workspaceId": n => { form.workspaceId = n.getGuidValue(); },
@@ -565,167 +1173,485 @@ export function deserializeIntoForm_settings(form_settings = {}) {
565
1173
  }
566
1174
  /**
567
1175
  * The deserialization information for the current model
568
- * @param Question The instance to deserialize into.
1176
+ * @param FormRevision The instance to deserialize into.
569
1177
  * @returns {Record<string, (node: ParseNode) => void>}
570
1178
  */
571
1179
  // @ts-ignore
572
- export function deserializeIntoQuestion(question = {}) {
1180
+ export function deserializeIntoFormRevision(formRevision = {}) {
573
1181
  return {
574
- "context": n => { question.context = n.getStringValue(); },
575
- "createdAt": n => { question.createdAt = n.getDateValue(); },
576
- "formId": n => { question.formId = n.getGuidValue(); },
577
- "id": n => { question.id = n.getGuidValue(); },
578
- "isPii": n => { question.isPii = n.getBooleanValue(); },
579
- "isRequired": n => { question.isRequired = n.getBooleanValue(); },
580
- "options": n => { question.options = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
581
- "order": n => { question.order = n.getNumberValue(); },
582
- "priority": n => { question.priority = n.getEnumValue(Question_priorityObject); },
583
- "questionText": n => { question.questionText = n.getStringValue(); },
584
- "sectionId": n => { question.sectionId = n.getGuidValue(); },
585
- "type": n => { question.type = n.getEnumValue(Question_typeObject); },
1182
+ "changesSummary": n => { formRevision.changesSummary = n.getStringValue(); },
1183
+ "formId": n => { formRevision.formId = n.getGuidValue(); },
1184
+ "id": n => { formRevision.id = n.getGuidValue(); },
1185
+ "publishedAt": n => { formRevision.publishedAt = n.getDateValue(); },
1186
+ "publishedBy": n => { formRevision.publishedBy = n.getStringValue(); },
1187
+ "snapshot": n => { formRevision.snapshot = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
1188
+ "version": n => { formRevision.version = n.getNumberValue(); },
586
1189
  };
587
1190
  }
588
1191
  /**
589
1192
  * The deserialization information for the current model
590
- * @param Recipient The instance to deserialize into.
1193
+ * @param GetDocumentParseJobResponse The instance to deserialize into.
591
1194
  * @returns {Record<string, (node: ParseNode) => void>}
592
1195
  */
593
1196
  // @ts-ignore
594
- export function deserializeIntoRecipient(recipient = {}) {
1197
+ export function deserializeIntoGetDocumentParseJobResponse(getDocumentParseJobResponse = {}) {
595
1198
  return {
596
- "created_at": n => { recipient.createdAt = n.getDateValue(); },
597
- "email": n => { recipient.email = n.getStringValue(); },
598
- "expires_at": n => { recipient.expiresAt = n.getDateValue(); },
599
- "form_id": n => { recipient.formId = n.getGuidValue(); },
600
- "has_password": n => { recipient.hasPassword = n.getBooleanValue(); },
601
- "id": n => { recipient.id = n.getGuidValue(); },
602
- "is_active": n => { recipient.isActive = n.getBooleanValue(); },
603
- "is_anonymous": n => { recipient.isAnonymous = n.getBooleanValue(); },
604
- "label": n => { recipient.label = n.getStringValue(); },
605
- "last_activity_at": n => { recipient.lastActivityAt = n.getDateValue(); },
606
- "link": n => { recipient.link = n.getStringValue(); },
607
- "phone": n => { recipient.phone = n.getStringValue(); },
608
- "response_count": n => { recipient.responseCount = n.getNumberValue(); },
609
- "status": n => { recipient.status = n.getEnumValue(Recipient_statusObject); },
610
- "token": n => { recipient.token = n.getStringValue(); },
611
- "total_questions": n => { recipient.totalQuestions = n.getNumberValue(); },
612
- "visit_count": n => { recipient.visitCount = n.getNumberValue(); },
1199
+ "data": n => { getDocumentParseJobResponse.data = n.getObjectValue(createGetDocumentParseJobResponse_dataFromDiscriminatorValue); },
1200
+ "meta": n => { getDocumentParseJobResponse.meta = n.getObjectValue(createGetDocumentParseJobResponse_metaFromDiscriminatorValue); },
1201
+ "success": n => { getDocumentParseJobResponse.success = n.getBooleanValue(); },
613
1202
  };
614
1203
  }
615
1204
  /**
616
1205
  * The deserialization information for the current model
617
- * @param RecipientResponse The instance to deserialize into.
1206
+ * @param GetDocumentParseJobResponse_data The instance to deserialize into.
618
1207
  * @returns {Record<string, (node: ParseNode) => void>}
619
1208
  */
620
1209
  // @ts-ignore
621
- export function deserializeIntoRecipientResponse(recipientResponse = {}) {
1210
+ export function deserializeIntoGetDocumentParseJobResponse_data(getDocumentParseJobResponse_data = {}) {
622
1211
  return {
623
- "answeredAt": n => { recipientResponse.answeredAt = n.getDateValue(); },
624
- "questionId": n => { recipientResponse.questionId = n.getGuidValue(); },
625
- "updatedAt": n => { recipientResponse.updatedAt = n.getDateValue(); },
626
- "value": n => { recipientResponse.value = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
1212
+ "applyMode": n => { getDocumentParseJobResponse_data.applyMode = n.getEnumValue(GetDocumentParseJobResponse_data_applyModeObject); },
1213
+ "documentId": n => { getDocumentParseJobResponse_data.documentId = n.getGuidValue(); },
1214
+ "error": n => { getDocumentParseJobResponse_data.errorEscaped = n.getStringValue(); },
1215
+ "parseJobId": n => { getDocumentParseJobResponse_data.parseJobId = n.getGuidValue(); },
1216
+ "pollAfterMs": n => { getDocumentParseJobResponse_data.pollAfterMs = n.getNumberValue(); },
1217
+ "result": n => { getDocumentParseJobResponse_data.result = n.getObjectValue(createDocumentParseJobResultFromDiscriminatorValue); },
1218
+ "status": n => { getDocumentParseJobResponse_data.status = n.getEnumValue(GetDocumentParseJobResponse_data_statusObject); },
1219
+ "warnings": n => { getDocumentParseJobResponse_data.warnings = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
627
1220
  };
628
1221
  }
629
1222
  /**
630
1223
  * The deserialization information for the current model
631
- * @param Section The instance to deserialize into.
1224
+ * @param GetDocumentParseJobResponse_meta The instance to deserialize into.
632
1225
  * @returns {Record<string, (node: ParseNode) => void>}
633
1226
  */
634
1227
  // @ts-ignore
635
- export function deserializeIntoSection(section = {}) {
1228
+ export function deserializeIntoGetDocumentParseJobResponse_meta(getDocumentParseJobResponse_meta = {}) {
636
1229
  return {
637
- "createdAt": n => { section.createdAt = n.getDateValue(); },
638
- "formId": n => { section.formId = n.getGuidValue(); },
639
- "id": n => { section.id = n.getGuidValue(); },
640
- "order": n => { section.order = n.getNumberValue(); },
641
- "title": n => { section.title = n.getStringValue(); },
1230
+ "limit": n => { getDocumentParseJobResponse_meta.limit = n.getNumberValue(); },
1231
+ "page": n => { getDocumentParseJobResponse_meta.page = n.getNumberValue(); },
1232
+ "total": n => { getDocumentParseJobResponse_meta.total = n.getNumberValue(); },
642
1233
  };
643
1234
  }
644
1235
  /**
645
1236
  * The deserialization information for the current model
646
- * @param Signer The instance to deserialize into.
1237
+ * @param ImportDocumentBundleResponse The instance to deserialize into.
647
1238
  * @returns {Record<string, (node: ParseNode) => void>}
648
1239
  */
649
1240
  // @ts-ignore
650
- export function deserializeIntoSigner(signer = {}) {
1241
+ export function deserializeIntoImportDocumentBundleResponse(importDocumentBundleResponse = {}) {
651
1242
  return {
652
- "color": n => { signer.color = n.getStringValue(); },
653
- "completedAt": n => { signer.completedAt = n.getDateValue(); },
654
- "createdAt": n => { signer.createdAt = n.getDateValue(); },
655
- "documentId": n => { signer.documentId = n.getGuidValue(); },
656
- "email": n => { signer.email = n.getStringValue(); },
657
- "id": n => { signer.id = n.getGuidValue(); },
658
- "label": n => { signer.label = n.getStringValue(); },
659
- "link": n => { signer.link = n.getStringValue(); },
660
- "name": n => { signer.name = n.getStringValue(); },
661
- "order": n => { signer.order = n.getNumberValue(); },
662
- "role": n => { signer.role = n.getStringValue(); },
663
- "status": n => { signer.status = n.getEnumValue(Signer_statusObject); },
664
- "submissionId": n => { signer.submissionId = n.getGuidValue(); },
665
- "token": n => { signer.token = n.getStringValue(); },
1243
+ "actions_omitted": n => { importDocumentBundleResponse.actionsOmitted = n.getNumberValue(); },
1244
+ "conditions_omitted": n => { importDocumentBundleResponse.conditionsOmitted = n.getNumberValue(); },
1245
+ "data": n => { importDocumentBundleResponse.data = n.getObjectValue(createImportDocumentBundleResponse_dataFromDiscriminatorValue); },
1246
+ "meta": n => { importDocumentBundleResponse.meta = n.getObjectValue(createImportDocumentBundleResponse_metaFromDiscriminatorValue); },
1247
+ "success": n => { importDocumentBundleResponse.success = n.getBooleanValue(); },
1248
+ "warnings": n => { importDocumentBundleResponse.warnings = n.getCollectionOfPrimitiveValues(); },
666
1249
  };
667
1250
  }
668
1251
  /**
669
1252
  * The deserialization information for the current model
670
- * @param SignerInput The instance to deserialize into.
1253
+ * @param ImportDocumentBundleResponse_data The instance to deserialize into.
671
1254
  * @returns {Record<string, (node: ParseNode) => void>}
672
1255
  */
673
1256
  // @ts-ignore
674
- export function deserializeIntoSignerInput(signerInput = {}) {
1257
+ export function deserializeIntoImportDocumentBundleResponse_data(importDocumentBundleResponse_data = {}) {
675
1258
  return {
676
- "email": n => { signerInput.email = n.getStringValue(); },
677
- "name": n => { signerInput.name = n.getStringValue(); },
678
- "password": n => { signerInput.password = n.getStringValue(); },
679
- "phone": n => { signerInput.phone = n.getStringValue(); },
680
- "prefill": n => { signerInput.prefill = n.getObjectValue(createSignerInput_prefillFromDiscriminatorValue); },
681
- "prefillReadonly": n => { signerInput.prefillReadonly = n.getBooleanValue(); },
682
- "readonlyFieldIds": n => { signerInput.readonlyFieldIds = n.getCollectionOfPrimitiveValues(); },
683
- "role": n => { signerInput.role = n.getStringValue(); },
1259
+ "generationType": n => { importDocumentBundleResponse_data.generationType = n.getEnumValue(ImportDocumentBundleResponse_data_generationTypeObject); },
1260
+ "id": n => { importDocumentBundleResponse_data.id = n.getGuidValue(); },
1261
+ "originalFilename": n => { importDocumentBundleResponse_data.originalFilename = n.getStringValue(); },
1262
+ "originalUrl": n => { importDocumentBundleResponse_data.originalUrl = n.getStringValue(); },
1263
+ "status": n => { importDocumentBundleResponse_data.status = n.getEnumValue(ImportDocumentBundleResponse_data_statusObject); },
1264
+ "title": n => { importDocumentBundleResponse_data.title = n.getStringValue(); },
684
1265
  };
685
1266
  }
686
1267
  /**
687
1268
  * The deserialization information for the current model
688
- * @param SignerInput_prefill The instance to deserialize into.
1269
+ * @param ImportDocumentBundleResponse_meta The instance to deserialize into.
689
1270
  * @returns {Record<string, (node: ParseNode) => void>}
690
1271
  */
691
1272
  // @ts-ignore
692
- export function deserializeIntoSignerInput_prefill(signerInput_prefill = {}) {
693
- return {};
1273
+ export function deserializeIntoImportDocumentBundleResponse_meta(importDocumentBundleResponse_meta = {}) {
1274
+ return {
1275
+ "limit": n => { importDocumentBundleResponse_meta.limit = n.getNumberValue(); },
1276
+ "page": n => { importDocumentBundleResponse_meta.page = n.getNumberValue(); },
1277
+ "total": n => { importDocumentBundleResponse_meta.total = n.getNumberValue(); },
1278
+ };
694
1279
  }
695
1280
  /**
696
1281
  * The deserialization information for the current model
697
- * @param SignerResponse The instance to deserialize into.
1282
+ * @param ParseJobAppliedResult The instance to deserialize into.
698
1283
  * @returns {Record<string, (node: ParseNode) => void>}
699
1284
  */
700
1285
  // @ts-ignore
701
- export function deserializeIntoSignerResponse(signerResponse = {}) {
1286
+ export function deserializeIntoParseJobAppliedResult(parseJobAppliedResult = {}) {
702
1287
  return {
703
- "answeredAt": n => { signerResponse.answeredAt = n.getDateValue(); },
704
- "fieldId": n => { signerResponse.fieldId = n.getGuidValue(); },
705
- "updatedAt": n => { signerResponse.updatedAt = n.getDateValue(); },
706
- "value": n => { signerResponse.value = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
1288
+ "createdFieldIds": n => { parseJobAppliedResult.createdFieldIds = n.getCollectionOfPrimitiveValues(); },
1289
+ "createdSignerRoleIds": n => { parseJobAppliedResult.createdSignerRoleIds = n.getCollectionOfPrimitiveValues(); },
707
1290
  };
708
1291
  }
709
1292
  /**
710
1293
  * The deserialization information for the current model
711
- * @param SignerRole The instance to deserialize into.
1294
+ * @param PhoneValidationDetails The instance to deserialize into.
712
1295
  * @returns {Record<string, (node: ParseNode) => void>}
713
1296
  */
714
1297
  // @ts-ignore
715
- export function deserializeIntoSignerRole(signerRole = {}) {
1298
+ export function deserializeIntoPhoneValidationDetails(phoneValidationDetails = {}) {
716
1299
  return {
717
- "color": n => { signerRole.color = n.getStringValue(); },
718
- "createdAt": n => { signerRole.createdAt = n.getDateValue(); },
719
- "documentId": n => { signerRole.documentId = n.getGuidValue(); },
720
- "id": n => { signerRole.id = n.getGuidValue(); },
721
- "label": n => { signerRole.label = n.getStringValue(); },
722
- "order": n => { signerRole.order = n.getNumberValue(); },
723
- "role": n => { signerRole.role = n.getStringValue(); },
1300
+ "code": n => { phoneValidationDetails.code = n.getEnumValue(PhoneValidationDetails_codeObject); },
1301
+ "field": n => { phoneValidationDetails.field = n.getStringValue(); },
1302
+ "index": n => { phoneValidationDetails.index = n.getNumberValue(); },
1303
+ "row": n => { phoneValidationDetails.row = n.getNumberValue(); },
724
1304
  };
725
1305
  }
726
1306
  /**
727
1307
  * The deserialization information for the current model
728
- * @param SubmissionPdf The instance to deserialize into.
1308
+ * @param PhoneValidationError The instance to deserialize into.
1309
+ * @returns {Record<string, (node: ParseNode) => void>}
1310
+ */
1311
+ // @ts-ignore
1312
+ export function deserializeIntoPhoneValidationError(phoneValidationError = {}) {
1313
+ return {
1314
+ ...deserializeIntoValidationError(phoneValidationError),
1315
+ };
1316
+ }
1317
+ /**
1318
+ * The deserialization information for the current model
1319
+ * @param Question The instance to deserialize into.
1320
+ * @returns {Record<string, (node: ParseNode) => void>}
1321
+ */
1322
+ // @ts-ignore
1323
+ export function deserializeIntoQuestion(question = {}) {
1324
+ return {
1325
+ "context": n => { question.context = n.getStringValue(); },
1326
+ "createdAt": n => { question.createdAt = n.getDateValue(); },
1327
+ "formId": n => { question.formId = n.getGuidValue(); },
1328
+ "id": n => { question.id = n.getGuidValue(); },
1329
+ "isPii": n => { question.isPii = n.getBooleanValue(); },
1330
+ "isRequired": n => { question.isRequired = n.getBooleanValue(); },
1331
+ "options": n => { question.options = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
1332
+ "order": n => { question.order = n.getNumberValue(); },
1333
+ "priority": n => { question.priority = n.getEnumValue(Question_priorityObject); },
1334
+ "questionText": n => { question.questionText = n.getStringValue(); },
1335
+ "sectionId": n => { question.sectionId = n.getGuidValue(); },
1336
+ "type": n => { question.type = n.getEnumValue(Question_typeObject); },
1337
+ };
1338
+ }
1339
+ /**
1340
+ * The deserialization information for the current model
1341
+ * @param QuotaExceededError The instance to deserialize into.
1342
+ * @returns {Record<string, (node: ParseNode) => void>}
1343
+ */
1344
+ // @ts-ignore
1345
+ export function deserializeIntoQuotaExceededError(quotaExceededError = {}) {
1346
+ return {
1347
+ "code": n => { quotaExceededError.code = n.getEnumValue(QuotaExceededError_codeObject); },
1348
+ "error": n => { quotaExceededError.errorEscaped = n.getStringValue(); },
1349
+ "hint": n => { quotaExceededError.hint = n.getStringValue(); },
1350
+ "success": n => { quotaExceededError.success = n.getBooleanValue(); },
1351
+ };
1352
+ }
1353
+ /**
1354
+ * The deserialization information for the current model
1355
+ * @param Recipient The instance to deserialize into.
1356
+ * @returns {Record<string, (node: ParseNode) => void>}
1357
+ */
1358
+ // @ts-ignore
1359
+ export function deserializeIntoRecipient(recipient = {}) {
1360
+ return {
1361
+ "created_at": n => { recipient.createdAt = n.getDateValue(); },
1362
+ "email": n => { recipient.email = n.getStringValue(); },
1363
+ "expires_at": n => { recipient.expiresAt = n.getDateValue(); },
1364
+ "form_id": n => { recipient.formId = n.getGuidValue(); },
1365
+ "has_password": n => { recipient.hasPassword = n.getBooleanValue(); },
1366
+ "id": n => { recipient.id = n.getGuidValue(); },
1367
+ "is_active": n => { recipient.isActive = n.getBooleanValue(); },
1368
+ "is_anonymous": n => { recipient.isAnonymous = n.getBooleanValue(); },
1369
+ "label": n => { recipient.label = n.getStringValue(); },
1370
+ "last_activity_at": n => { recipient.lastActivityAt = n.getDateValue(); },
1371
+ "link": n => { recipient.link = n.getStringValue(); },
1372
+ "phone": n => { recipient.phone = n.getStringValue(); },
1373
+ "response_count": n => { recipient.responseCount = n.getNumberValue(); },
1374
+ "status": n => { recipient.status = n.getEnumValue(Recipient_statusObject); },
1375
+ "token": n => { recipient.token = n.getStringValue(); },
1376
+ "total_questions": n => { recipient.totalQuestions = n.getNumberValue(); },
1377
+ "visit_count": n => { recipient.visitCount = n.getNumberValue(); },
1378
+ };
1379
+ }
1380
+ /**
1381
+ * The deserialization information for the current model
1382
+ * @param RecipientBulkCreateResult The instance to deserialize into.
1383
+ * @returns {Record<string, (node: ParseNode) => void>}
1384
+ */
1385
+ // @ts-ignore
1386
+ export function deserializeIntoRecipientBulkCreateResult(recipientBulkCreateResult = {}) {
1387
+ return {
1388
+ "created_at": n => { recipientBulkCreateResult.createdAt = n.getDateValue(); },
1389
+ "dispatchId": n => { recipientBulkCreateResult.dispatchId = n.getGuidValue(); },
1390
+ "email": n => { recipientBulkCreateResult.email = n.getStringValue(); },
1391
+ "expires_at": n => { recipientBulkCreateResult.expiresAt = n.getDateValue(); },
1392
+ "form_id": n => { recipientBulkCreateResult.formId = n.getGuidValue(); },
1393
+ "has_password": n => { recipientBulkCreateResult.hasPassword = n.getBooleanValue(); },
1394
+ "id": n => { recipientBulkCreateResult.id = n.getGuidValue(); },
1395
+ "is_active": n => { recipientBulkCreateResult.isActive = n.getBooleanValue(); },
1396
+ "is_anonymous": n => { recipientBulkCreateResult.isAnonymous = n.getBooleanValue(); },
1397
+ "label": n => { recipientBulkCreateResult.label = n.getStringValue(); },
1398
+ "last_activity_at": n => { recipientBulkCreateResult.lastActivityAt = n.getDateValue(); },
1399
+ "link": n => { recipientBulkCreateResult.link = n.getStringValue(); },
1400
+ "phone": n => { recipientBulkCreateResult.phone = n.getStringValue(); },
1401
+ "response_count": n => { recipientBulkCreateResult.responseCount = n.getNumberValue(); },
1402
+ "status": n => { recipientBulkCreateResult.status = n.getEnumValue(RecipientBulkCreateResult_statusObject); },
1403
+ "token": n => { recipientBulkCreateResult.token = n.getStringValue(); },
1404
+ "total_questions": n => { recipientBulkCreateResult.totalQuestions = n.getNumberValue(); },
1405
+ "visit_count": n => { recipientBulkCreateResult.visitCount = n.getNumberValue(); },
1406
+ };
1407
+ }
1408
+ /**
1409
+ * The deserialization information for the current model
1410
+ * @param RecipientCreateResult The instance to deserialize into.
1411
+ * @returns {Record<string, (node: ParseNode) => void>}
1412
+ */
1413
+ // @ts-ignore
1414
+ export function deserializeIntoRecipientCreateResult(recipientCreateResult = {}) {
1415
+ return {
1416
+ "created_at": n => { recipientCreateResult.createdAt = n.getDateValue(); },
1417
+ "dispatchId": n => { recipientCreateResult.dispatchId = n.getGuidValue(); },
1418
+ "email": n => { recipientCreateResult.email = n.getStringValue(); },
1419
+ "expires_at": n => { recipientCreateResult.expiresAt = n.getDateValue(); },
1420
+ "form_id": n => { recipientCreateResult.formId = n.getGuidValue(); },
1421
+ "has_password": n => { recipientCreateResult.hasPassword = n.getBooleanValue(); },
1422
+ "id": n => { recipientCreateResult.id = n.getGuidValue(); },
1423
+ "is_active": n => { recipientCreateResult.isActive = n.getBooleanValue(); },
1424
+ "is_anonymous": n => { recipientCreateResult.isAnonymous = n.getBooleanValue(); },
1425
+ "label": n => { recipientCreateResult.label = n.getStringValue(); },
1426
+ "last_activity_at": n => { recipientCreateResult.lastActivityAt = n.getDateValue(); },
1427
+ "link": n => { recipientCreateResult.link = n.getStringValue(); },
1428
+ "phone": n => { recipientCreateResult.phone = n.getStringValue(); },
1429
+ "plain_password": n => { recipientCreateResult.plainPassword = n.getStringValue(); },
1430
+ "response_count": n => { recipientCreateResult.responseCount = n.getNumberValue(); },
1431
+ "status": n => { recipientCreateResult.status = n.getEnumValue(RecipientCreateResult_statusObject); },
1432
+ "token": n => { recipientCreateResult.token = n.getStringValue(); },
1433
+ "total_questions": n => { recipientCreateResult.totalQuestions = n.getNumberValue(); },
1434
+ "visit_count": n => { recipientCreateResult.visitCount = n.getNumberValue(); },
1435
+ };
1436
+ }
1437
+ /**
1438
+ * The deserialization information for the current model
1439
+ * @param RecipientResponse The instance to deserialize into.
1440
+ * @returns {Record<string, (node: ParseNode) => void>}
1441
+ */
1442
+ // @ts-ignore
1443
+ export function deserializeIntoRecipientResponse(recipientResponse = {}) {
1444
+ return {
1445
+ "answeredAt": n => { recipientResponse.answeredAt = n.getDateValue(); },
1446
+ "questionId": n => { recipientResponse.questionId = n.getGuidValue(); },
1447
+ "updatedAt": n => { recipientResponse.updatedAt = n.getDateValue(); },
1448
+ "value": n => { recipientResponse.value = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
1449
+ };
1450
+ }
1451
+ /**
1452
+ * The deserialization information for the current model
1453
+ * @param RecipientUpdate The instance to deserialize into.
1454
+ * @returns {Record<string, (node: ParseNode) => void>}
1455
+ */
1456
+ // @ts-ignore
1457
+ export function deserializeIntoRecipientUpdate(recipientUpdate = {}) {
1458
+ return {
1459
+ "created_at": n => { recipientUpdate.createdAt = n.getDateValue(); },
1460
+ "email": n => { recipientUpdate.email = n.getStringValue(); },
1461
+ "expires_at": n => { recipientUpdate.expiresAt = n.getDateValue(); },
1462
+ "form_id": n => { recipientUpdate.formId = n.getGuidValue(); },
1463
+ "has_password": n => { recipientUpdate.hasPassword = n.getBooleanValue(); },
1464
+ "id": n => { recipientUpdate.id = n.getGuidValue(); },
1465
+ "is_active": n => { recipientUpdate.isActive = n.getBooleanValue(); },
1466
+ "is_anonymous": n => { recipientUpdate.isAnonymous = n.getBooleanValue(); },
1467
+ "label": n => { recipientUpdate.label = n.getStringValue(); },
1468
+ "last_activity_at": n => { recipientUpdate.lastActivityAt = n.getDateValue(); },
1469
+ "link": n => { recipientUpdate.link = n.getStringValue(); },
1470
+ "phone": n => { recipientUpdate.phone = n.getStringValue(); },
1471
+ "response_count": n => { recipientUpdate.responseCount = n.getNumberValue(); },
1472
+ "status": n => { recipientUpdate.status = n.getEnumValue(RecipientUpdate_statusObject); },
1473
+ "token": n => { recipientUpdate.token = n.getStringValue(); },
1474
+ "total_questions": n => { recipientUpdate.totalQuestions = n.getNumberValue(); },
1475
+ "visit_count": n => { recipientUpdate.visitCount = n.getNumberValue(); },
1476
+ };
1477
+ }
1478
+ /**
1479
+ * The deserialization information for the current model
1480
+ * @param Section The instance to deserialize into.
1481
+ * @returns {Record<string, (node: ParseNode) => void>}
1482
+ */
1483
+ // @ts-ignore
1484
+ export function deserializeIntoSection(section = {}) {
1485
+ return {
1486
+ "createdAt": n => { section.createdAt = n.getDateValue(); },
1487
+ "formId": n => { section.formId = n.getGuidValue(); },
1488
+ "id": n => { section.id = n.getGuidValue(); },
1489
+ "order": n => { section.order = n.getNumberValue(); },
1490
+ "title": n => { section.title = n.getStringValue(); },
1491
+ };
1492
+ }
1493
+ /**
1494
+ * The deserialization information for the current model
1495
+ * @param Signer The instance to deserialize into.
1496
+ * @returns {Record<string, (node: ParseNode) => void>}
1497
+ */
1498
+ // @ts-ignore
1499
+ export function deserializeIntoSigner(signer = {}) {
1500
+ return {
1501
+ "color": n => { signer.color = n.getStringValue(); },
1502
+ "completedAt": n => { signer.completedAt = n.getDateValue(); },
1503
+ "createdAt": n => { signer.createdAt = n.getDateValue(); },
1504
+ "documentId": n => { signer.documentId = n.getGuidValue(); },
1505
+ "email": n => { signer.email = n.getStringValue(); },
1506
+ "id": n => { signer.id = n.getGuidValue(); },
1507
+ "label": n => { signer.label = n.getStringValue(); },
1508
+ "link": n => { signer.link = n.getStringValue(); },
1509
+ "name": n => { signer.name = n.getStringValue(); },
1510
+ "order": n => { signer.order = n.getNumberValue(); },
1511
+ "phone": n => { signer.phone = n.getStringValue(); },
1512
+ "role": n => { signer.role = n.getStringValue(); },
1513
+ "status": n => { signer.status = n.getEnumValue(Signer_statusObject); },
1514
+ "submissionId": n => { signer.submissionId = n.getGuidValue(); },
1515
+ "token": n => { signer.token = n.getStringValue(); },
1516
+ };
1517
+ }
1518
+ /**
1519
+ * The deserialization information for the current model
1520
+ * @param SignerInput The instance to deserialize into.
1521
+ * @returns {Record<string, (node: ParseNode) => void>}
1522
+ */
1523
+ // @ts-ignore
1524
+ export function deserializeIntoSignerInput(signerInput = {}) {
1525
+ return {
1526
+ "email": n => { signerInput.email = n.getStringValue(); },
1527
+ "name": n => { signerInput.name = n.getStringValue(); },
1528
+ "password": n => { signerInput.password = n.getStringValue(); },
1529
+ "phone": n => { signerInput.phone = n.getStringValue(); },
1530
+ "prefill": n => { signerInput.prefill = n.getObjectValue(createSignerInput_prefillFromDiscriminatorValue); },
1531
+ "prefillReadonly": n => { signerInput.prefillReadonly = n.getBooleanValue(); },
1532
+ "readonlyFieldIds": n => { signerInput.readonlyFieldIds = n.getCollectionOfPrimitiveValues(); },
1533
+ "role": n => { signerInput.role = n.getStringValue(); },
1534
+ };
1535
+ }
1536
+ /**
1537
+ * The deserialization information for the current model
1538
+ * @param SignerInput_prefill The instance to deserialize into.
1539
+ * @returns {Record<string, (node: ParseNode) => void>}
1540
+ */
1541
+ // @ts-ignore
1542
+ export function deserializeIntoSignerInput_prefill(signerInput_prefill = {}) {
1543
+ return {};
1544
+ }
1545
+ /**
1546
+ * The deserialization information for the current model
1547
+ * @param SignerResponse The instance to deserialize into.
1548
+ * @returns {Record<string, (node: ParseNode) => void>}
1549
+ */
1550
+ // @ts-ignore
1551
+ export function deserializeIntoSignerResponse(signerResponse = {}) {
1552
+ return {
1553
+ "answeredAt": n => { signerResponse.answeredAt = n.getDateValue(); },
1554
+ "fieldId": n => { signerResponse.fieldId = n.getGuidValue(); },
1555
+ "updatedAt": n => { signerResponse.updatedAt = n.getDateValue(); },
1556
+ "value": n => { signerResponse.value = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
1557
+ };
1558
+ }
1559
+ /**
1560
+ * The deserialization information for the current model
1561
+ * @param SignerRole The instance to deserialize into.
1562
+ * @returns {Record<string, (node: ParseNode) => void>}
1563
+ */
1564
+ // @ts-ignore
1565
+ export function deserializeIntoSignerRole(signerRole = {}) {
1566
+ return {
1567
+ "color": n => { signerRole.color = n.getStringValue(); },
1568
+ "createdAt": n => { signerRole.createdAt = n.getDateValue(); },
1569
+ "documentId": n => { signerRole.documentId = n.getGuidValue(); },
1570
+ "id": n => { signerRole.id = n.getGuidValue(); },
1571
+ "label": n => { signerRole.label = n.getStringValue(); },
1572
+ "order": n => { signerRole.order = n.getNumberValue(); },
1573
+ "role": n => { signerRole.role = n.getStringValue(); },
1574
+ };
1575
+ }
1576
+ /**
1577
+ * The deserialization information for the current model
1578
+ * @param SignerUpdate The instance to deserialize into.
1579
+ * @returns {Record<string, (node: ParseNode) => void>}
1580
+ */
1581
+ // @ts-ignore
1582
+ export function deserializeIntoSignerUpdate(signerUpdate = {}) {
1583
+ return {
1584
+ "color": n => { signerUpdate.color = n.getStringValue(); },
1585
+ "completedAt": n => { signerUpdate.completedAt = n.getDateValue(); },
1586
+ "createdAt": n => { signerUpdate.createdAt = n.getDateValue(); },
1587
+ "documentId": n => { signerUpdate.documentId = n.getGuidValue(); },
1588
+ "email": n => { signerUpdate.email = n.getStringValue(); },
1589
+ "expiresAt": n => { signerUpdate.expiresAt = n.getDateValue(); },
1590
+ "id": n => { signerUpdate.id = n.getGuidValue(); },
1591
+ "label": n => { signerUpdate.label = n.getStringValue(); },
1592
+ "name": n => { signerUpdate.name = n.getStringValue(); },
1593
+ "order": n => { signerUpdate.order = n.getNumberValue(); },
1594
+ "phone": n => { signerUpdate.phone = n.getStringValue(); },
1595
+ "role": n => { signerUpdate.role = n.getStringValue(); },
1596
+ "status": n => { signerUpdate.status = n.getEnumValue(SignerUpdate_statusObject); },
1597
+ "submissionId": n => { signerUpdate.submissionId = n.getGuidValue(); },
1598
+ };
1599
+ }
1600
+ /**
1601
+ * The deserialization information for the current model
1602
+ * @param StartDocumentParseJobBody The instance to deserialize into.
1603
+ * @returns {Record<string, (node: ParseNode) => void>}
1604
+ */
1605
+ // @ts-ignore
1606
+ export function deserializeIntoStartDocumentParseJobBody(startDocumentParseJobBody = {}) {
1607
+ return {
1608
+ "applyMode": n => { startDocumentParseJobBody.applyMode = n.getEnumValue(StartDocumentParseJobBody_applyModeObject) ?? StartDocumentParseJobBody_applyModeObject.Draft; },
1609
+ "confirmAiParse": n => { startDocumentParseJobBody.confirmAiParse = n.getBooleanValue(); },
1610
+ };
1611
+ }
1612
+ /**
1613
+ * The deserialization information for the current model
1614
+ * @param StartDocumentParseJobResponse The instance to deserialize into.
1615
+ * @returns {Record<string, (node: ParseNode) => void>}
1616
+ */
1617
+ // @ts-ignore
1618
+ export function deserializeIntoStartDocumentParseJobResponse(startDocumentParseJobResponse = {}) {
1619
+ return {
1620
+ "data": n => { startDocumentParseJobResponse.data = n.getObjectValue(createStartDocumentParseJobResponse_dataFromDiscriminatorValue); },
1621
+ "meta": n => { startDocumentParseJobResponse.meta = n.getObjectValue(createStartDocumentParseJobResponse_metaFromDiscriminatorValue); },
1622
+ "success": n => { startDocumentParseJobResponse.success = n.getBooleanValue(); },
1623
+ };
1624
+ }
1625
+ /**
1626
+ * The deserialization information for the current model
1627
+ * @param StartDocumentParseJobResponse_data The instance to deserialize into.
1628
+ * @returns {Record<string, (node: ParseNode) => void>}
1629
+ */
1630
+ // @ts-ignore
1631
+ export function deserializeIntoStartDocumentParseJobResponse_data(startDocumentParseJobResponse_data = {}) {
1632
+ return {
1633
+ "documentId": n => { startDocumentParseJobResponse_data.documentId = n.getGuidValue(); },
1634
+ "parseJobId": n => { startDocumentParseJobResponse_data.parseJobId = n.getGuidValue(); },
1635
+ "pollAfterMs": n => { startDocumentParseJobResponse_data.pollAfterMs = n.getNumberValue(); },
1636
+ "status": n => { startDocumentParseJobResponse_data.status = n.getEnumValue(StartDocumentParseJobResponse_data_statusObject); },
1637
+ };
1638
+ }
1639
+ /**
1640
+ * The deserialization information for the current model
1641
+ * @param StartDocumentParseJobResponse_meta The instance to deserialize into.
1642
+ * @returns {Record<string, (node: ParseNode) => void>}
1643
+ */
1644
+ // @ts-ignore
1645
+ export function deserializeIntoStartDocumentParseJobResponse_meta(startDocumentParseJobResponse_meta = {}) {
1646
+ return {
1647
+ "limit": n => { startDocumentParseJobResponse_meta.limit = n.getNumberValue(); },
1648
+ "page": n => { startDocumentParseJobResponse_meta.page = n.getNumberValue(); },
1649
+ "total": n => { startDocumentParseJobResponse_meta.total = n.getNumberValue(); },
1650
+ };
1651
+ }
1652
+ /**
1653
+ * The deserialization information for the current model
1654
+ * @param SubmissionPdf The instance to deserialize into.
729
1655
  * @returns {Record<string, (node: ParseNode) => void>}
730
1656
  */
731
1657
  // @ts-ignore
@@ -734,6 +1660,7 @@ export function deserializeIntoSubmissionPdf(submissionPdf = {}) {
734
1660
  "completedAt": n => { submissionPdf.completedAt = n.getDateValue(); },
735
1661
  "downloadUrl": n => { submissionPdf.downloadUrl = n.getStringValue(); },
736
1662
  "expiresIn": n => { submissionPdf.expiresIn = n.getNumberValue(); },
1663
+ "file": n => { submissionPdf.file = n.getObjectValue(createFileDescriptorFromDiscriminatorValue); },
737
1664
  "submissionId": n => { submissionPdf.submissionId = n.getGuidValue(); },
738
1665
  };
739
1666
  }
@@ -758,6 +1685,7 @@ export function deserializeIntoUpdateFormBody(updateFormBody = {}) {
758
1685
  // @ts-ignore
759
1686
  export function deserializeIntoUpdateRecipientBody(updateRecipientBody = {}) {
760
1687
  return {
1688
+ "clearPhone": n => { updateRecipientBody.clearPhone = n.getBooleanValue(); },
761
1689
  "email": n => { updateRecipientBody.email = n.getStringValue(); },
762
1690
  "expires_at": n => { updateRecipientBody.expiresAt = n.getDateValue(); },
763
1691
  "is_active": n => { updateRecipientBody.isActive = n.getBooleanValue(); },
@@ -798,6 +1726,26 @@ export function deserializeIntoUpdateSectionBody(updateSectionBody = {}) {
798
1726
  "title": n => { updateSectionBody.title = n.getStringValue(); },
799
1727
  };
800
1728
  }
1729
+ /**
1730
+ * The deserialization information for the current model
1731
+ * @param UpdateSignerBody The instance to deserialize into.
1732
+ * @returns {Record<string, (node: ParseNode) => void>}
1733
+ */
1734
+ // @ts-ignore
1735
+ export function deserializeIntoUpdateSignerBody(updateSignerBody = {}) {
1736
+ return {
1737
+ "clearPhone": n => { updateSignerBody.clearPhone = n.getBooleanValue(); },
1738
+ "color": n => { updateSignerBody.color = n.getStringValue(); },
1739
+ "email": n => { updateSignerBody.email = n.getStringValue(); },
1740
+ "expiresAt": n => { updateSignerBody.expiresAt = n.getDateValue(); },
1741
+ "label": n => { updateSignerBody.label = n.getStringValue(); },
1742
+ "name": n => { updateSignerBody.name = n.getStringValue(); },
1743
+ "order": n => { updateSignerBody.order = n.getNumberValue(); },
1744
+ "password": n => { updateSignerBody.password = n.getStringValue(); },
1745
+ "phone": n => { updateSignerBody.phone = n.getStringValue(); },
1746
+ "role": n => { updateSignerBody.role = n.getStringValue(); },
1747
+ };
1748
+ }
801
1749
  /**
802
1750
  * The deserialization information for the current model
803
1751
  * @param UpdateSignerResponsesBody The instance to deserialize into.
@@ -819,13 +1767,99 @@ export function deserializeIntoUpdateSignerResponsesBody_responses(updateSignerR
819
1767
  return {};
820
1768
  }
821
1769
  /**
822
- * Serializes information the current object
823
- * @param CreateFieldBody The instance to serialize from.
824
- * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
825
- * @param writer Serialization writer to use to serialize this model
1770
+ * The deserialization information for the current model
1771
+ * @param ValidationError The instance to deserialize into.
1772
+ * @returns {Record<string, (node: ParseNode) => void>}
826
1773
  */
827
1774
  // @ts-ignore
828
- export function serializeCreateFieldBody(writer, createFieldBody = {}, isSerializingDerivedType = false) {
1775
+ export function deserializeIntoValidationError(validationError = {}) {
1776
+ return {
1777
+ "code": n => { validationError.code = n.getStringValue(); },
1778
+ "details": n => { validationError.details = n.getObjectValue(createPhoneValidationDetailsFromDiscriminatorValue); },
1779
+ "error": n => { validationError.errorEscaped = n.getStringValue(); },
1780
+ "hint": n => { validationError.hint = n.getStringValue(); },
1781
+ "success": n => { validationError.success = n.getBooleanValue(); },
1782
+ };
1783
+ }
1784
+ /**
1785
+ * Serializes information the current object
1786
+ * @param ApplyDocumentParseJobResponse The instance to serialize from.
1787
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1788
+ * @param writer Serialization writer to use to serialize this model
1789
+ */
1790
+ // @ts-ignore
1791
+ export function serializeApplyDocumentParseJobResponse(writer, applyDocumentParseJobResponse = {}, isSerializingDerivedType = false) {
1792
+ if (!applyDocumentParseJobResponse || isSerializingDerivedType) {
1793
+ return;
1794
+ }
1795
+ writer.writeObjectValue("data", applyDocumentParseJobResponse.data, serializeParseJobAppliedResult);
1796
+ writer.writeObjectValue("meta", applyDocumentParseJobResponse.meta, serializeApplyDocumentParseJobResponse_meta);
1797
+ writer.writeBooleanValue("success", applyDocumentParseJobResponse.success);
1798
+ writer.writeAdditionalData(applyDocumentParseJobResponse.additionalData);
1799
+ }
1800
+ /**
1801
+ * Serializes information the current object
1802
+ * @param ApplyDocumentParseJobResponse_meta The instance to serialize from.
1803
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1804
+ * @param writer Serialization writer to use to serialize this model
1805
+ */
1806
+ // @ts-ignore
1807
+ export function serializeApplyDocumentParseJobResponse_meta(writer, applyDocumentParseJobResponse_meta = {}, isSerializingDerivedType = false) {
1808
+ if (!applyDocumentParseJobResponse_meta || isSerializingDerivedType) {
1809
+ return;
1810
+ }
1811
+ writer.writeNumberValue("limit", applyDocumentParseJobResponse_meta.limit);
1812
+ writer.writeNumberValue("page", applyDocumentParseJobResponse_meta.page);
1813
+ writer.writeNumberValue("total", applyDocumentParseJobResponse_meta.total);
1814
+ writer.writeAdditionalData(applyDocumentParseJobResponse_meta.additionalData);
1815
+ }
1816
+ /**
1817
+ * Serializes information the current object
1818
+ * @param CanonicalDocumentSubmission The instance to serialize from.
1819
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1820
+ * @param writer Serialization writer to use to serialize this model
1821
+ */
1822
+ // @ts-ignore
1823
+ export function serializeCanonicalDocumentSubmission(writer, canonicalDocumentSubmission = {}, isSerializingDerivedType = false) {
1824
+ if (!canonicalDocumentSubmission || isSerializingDerivedType) {
1825
+ return;
1826
+ }
1827
+ serializeDocumentSubmission(writer, canonicalDocumentSubmission, isSerializingDerivedType);
1828
+ }
1829
+ /**
1830
+ * Serializes information the current object
1831
+ * @param CanonicalRecipient The instance to serialize from.
1832
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1833
+ * @param writer Serialization writer to use to serialize this model
1834
+ */
1835
+ // @ts-ignore
1836
+ export function serializeCanonicalRecipient(writer, canonicalRecipient = {}, isSerializingDerivedType = false) {
1837
+ if (!canonicalRecipient || isSerializingDerivedType) {
1838
+ return;
1839
+ }
1840
+ serializeRecipient(writer, canonicalRecipient, isSerializingDerivedType);
1841
+ }
1842
+ /**
1843
+ * Serializes information the current object
1844
+ * @param CanonicalSigner The instance to serialize from.
1845
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1846
+ * @param writer Serialization writer to use to serialize this model
1847
+ */
1848
+ // @ts-ignore
1849
+ export function serializeCanonicalSigner(writer, canonicalSigner = {}, isSerializingDerivedType = false) {
1850
+ if (!canonicalSigner || isSerializingDerivedType) {
1851
+ return;
1852
+ }
1853
+ serializeSigner(writer, canonicalSigner, isSerializingDerivedType);
1854
+ }
1855
+ /**
1856
+ * Serializes information the current object
1857
+ * @param CreateFieldBody The instance to serialize from.
1858
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1859
+ * @param writer Serialization writer to use to serialize this model
1860
+ */
1861
+ // @ts-ignore
1862
+ export function serializeCreateFieldBody(writer, createFieldBody = {}, isSerializingDerivedType = false) {
829
1863
  if (!createFieldBody || isSerializingDerivedType) {
830
1864
  return;
831
1865
  }
@@ -833,6 +1867,7 @@ export function serializeCreateFieldBody(writer, createFieldBody = {}, isSeriali
833
1867
  writer.writeStringValue("defaultValue", createFieldBody.defaultValue);
834
1868
  writer.writeEnumValue("direction", createFieldBody.direction ?? CreateFieldBody_directionObject.Auto);
835
1869
  writer.writeNumberValue("height", createFieldBody.height);
1870
+ writer.writeGuidValue("id", createFieldBody.id);
836
1871
  writer.writeBooleanValue("isReadOnly", createFieldBody.isReadOnly);
837
1872
  writer.writeBooleanValue("isRequired", createFieldBody.isRequired);
838
1873
  writer.writeStringValue("label", createFieldBody.label);
@@ -856,6 +1891,7 @@ export function serializeCreateFieldBody_options(writer, createFieldBody_options
856
1891
  if (!createFieldBody_options || isSerializingDerivedType) {
857
1892
  return;
858
1893
  }
1894
+ writer.writeBooleanValue("supporting_attachment", createFieldBody_options.supportingAttachment);
859
1895
  writer.writeAdditionalData(createFieldBody_options.additionalData);
860
1896
  }
861
1897
  /**
@@ -945,188 +1981,594 @@ export function serializeCreateSectionBody(writer, createSectionBody = {}, isSer
945
1981
  }
946
1982
  /**
947
1983
  * Serializes information the current object
948
- * @param CreateSignerRoleBody The instance to serialize from.
1984
+ * @param CreateSignerRoleBody The instance to serialize from.
1985
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1986
+ * @param writer Serialization writer to use to serialize this model
1987
+ */
1988
+ // @ts-ignore
1989
+ export function serializeCreateSignerRoleBody(writer, createSignerRoleBody = {}, isSerializingDerivedType = false) {
1990
+ if (!createSignerRoleBody || isSerializingDerivedType) {
1991
+ return;
1992
+ }
1993
+ writer.writeStringValue("label", createSignerRoleBody.label);
1994
+ writer.writeAdditionalData(createSignerRoleBody.additionalData);
1995
+ }
1996
+ /**
1997
+ * Serializes information the current object
1998
+ * @param CreateSubmissionBody The instance to serialize from.
1999
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
2000
+ * @param writer Serialization writer to use to serialize this model
2001
+ */
2002
+ // @ts-ignore
2003
+ export function serializeCreateSubmissionBody(writer, createSubmissionBody = {}, isSerializingDerivedType = false) {
2004
+ if (!createSubmissionBody || isSerializingDerivedType) {
2005
+ return;
2006
+ }
2007
+ writer.writeEnumValue("deliveryFormat", createSubmissionBody.deliveryFormat ?? CreateSubmissionBody_deliveryFormatObject.Document);
2008
+ writer.writeCollectionOfObjectValues("signers", createSubmissionBody.signers, serializeSignerInput);
2009
+ writer.writeBooleanValue("suppress_notifications", createSubmissionBody.suppressNotifications);
2010
+ writer.writeAdditionalData(createSubmissionBody.additionalData);
2011
+ }
2012
+ /**
2013
+ * Serializes information the current object
2014
+ * @param CreateSubmissionResponse The instance to serialize from.
2015
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
2016
+ * @param writer Serialization writer to use to serialize this model
2017
+ */
2018
+ // @ts-ignore
2019
+ export function serializeCreateSubmissionResponse(writer, createSubmissionResponse = {}, isSerializingDerivedType = false) {
2020
+ if (!createSubmissionResponse || isSerializingDerivedType) {
2021
+ return;
2022
+ }
2023
+ writer.writeObjectValue("data", createSubmissionResponse.data, serializeCreateSubmissionResult);
2024
+ writer.writeBooleanValue("success", createSubmissionResponse.success);
2025
+ writer.writeAdditionalData(createSubmissionResponse.additionalData);
2026
+ }
2027
+ /**
2028
+ * Serializes information the current object
2029
+ * @param CreateSubmissionResult The instance to serialize from.
2030
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
2031
+ * @param writer Serialization writer to use to serialize this model
2032
+ */
2033
+ // @ts-ignore
2034
+ export function serializeCreateSubmissionResult(writer, createSubmissionResult = {}, isSerializingDerivedType = false) {
2035
+ if (!createSubmissionResult || isSerializingDerivedType) {
2036
+ return;
2037
+ }
2038
+ writer.writeGuidValue("dispatchId", createSubmissionResult.dispatchId);
2039
+ writer.writeBooleanValue("dispatchReused", createSubmissionResult.dispatchReused);
2040
+ writer.writeBooleanValue("linksCreated", createSubmissionResult.linksCreated);
2041
+ writer.writeCollectionOfObjectValues("signers", createSubmissionResult.signers, serializeCreateSubmissionSignerResult);
2042
+ writer.writeGuidValue("submissionId", createSubmissionResult.submissionId);
2043
+ writer.writeAdditionalData(createSubmissionResult.additionalData);
2044
+ }
2045
+ /**
2046
+ * Serializes information the current object
2047
+ * @param CreateSubmissionSignerResult The instance to serialize from.
2048
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
2049
+ * @param writer Serialization writer to use to serialize this model
2050
+ */
2051
+ // @ts-ignore
2052
+ export function serializeCreateSubmissionSignerResult(writer, createSubmissionSignerResult = {}, isSerializingDerivedType = false) {
2053
+ if (!createSubmissionSignerResult || isSerializingDerivedType) {
2054
+ return;
2055
+ }
2056
+ writer.writeStringValue("color", createSubmissionSignerResult.color);
2057
+ writer.writeGuidValue("id", createSubmissionSignerResult.id);
2058
+ writer.writeStringValue("label", createSubmissionSignerResult.label);
2059
+ writer.writeStringValue("link", createSubmissionSignerResult.link);
2060
+ writer.writeStringValue("name", createSubmissionSignerResult.name);
2061
+ writer.writeNumberValue("order", createSubmissionSignerResult.order);
2062
+ writer.writeStringValue("role", createSubmissionSignerResult.role);
2063
+ writer.writeAdditionalData(createSubmissionSignerResult.additionalData);
2064
+ }
2065
+ /**
2066
+ * Serializes information the current object
2067
+ * @param DetectedDocumentField The instance to serialize from.
2068
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
2069
+ * @param writer Serialization writer to use to serialize this model
2070
+ */
2071
+ // @ts-ignore
2072
+ export function serializeDetectedDocumentField(writer, detectedDocumentField = {}, isSerializingDerivedType = false) {
2073
+ if (!detectedDocumentField || isSerializingDerivedType) {
2074
+ return;
2075
+ }
2076
+ writer.writeNumberValue("confidence", detectedDocumentField.confidence);
2077
+ writer.writeStringValue("label", detectedDocumentField.label);
2078
+ writer.writeNumberValue("pageNumber", detectedDocumentField.pageNumber);
2079
+ writer.writeObjectValue("rect", detectedDocumentField.rect, serializeDetectedDocumentField_rect);
2080
+ writer.writeEnumValue("type", detectedDocumentField.type);
2081
+ writer.writeAdditionalData(detectedDocumentField.additionalData);
2082
+ }
2083
+ /**
2084
+ * Serializes information the current object
2085
+ * @param DetectedDocumentField_rect The instance to serialize from.
2086
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
2087
+ * @param writer Serialization writer to use to serialize this model
2088
+ */
2089
+ // @ts-ignore
2090
+ export function serializeDetectedDocumentField_rect(writer, detectedDocumentField_rect = {}, isSerializingDerivedType = false) {
2091
+ if (!detectedDocumentField_rect || isSerializingDerivedType) {
2092
+ return;
2093
+ }
2094
+ writer.writeNumberValue("height", detectedDocumentField_rect.height);
2095
+ writer.writeNumberValue("width", detectedDocumentField_rect.width);
2096
+ writer.writeNumberValue("x", detectedDocumentField_rect.x);
2097
+ writer.writeNumberValue("y", detectedDocumentField_rect.y);
2098
+ writer.writeAdditionalData(detectedDocumentField_rect.additionalData);
2099
+ }
2100
+ /**
2101
+ * Serializes information the current object
2102
+ * @param Document The instance to serialize from.
2103
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
2104
+ * @param writer Serialization writer to use to serialize this model
2105
+ */
2106
+ // @ts-ignore
2107
+ export function serializeDocument(writer, document = {}, isSerializingDerivedType = false) {
2108
+ if (!document || isSerializingDerivedType) {
2109
+ return;
2110
+ }
2111
+ writer.writeStringValue("completedPdfUrl", document.completedPdfUrl);
2112
+ writer.writeDateValue("createdAt", document.createdAt);
2113
+ writer.writeGuidValue("creatorId", document.creatorId);
2114
+ writer.writeDateValue("deletedAt", document.deletedAt);
2115
+ writer.writeStringValue("fileType", document.fileType);
2116
+ writer.writeGuidValue("id", document.id);
2117
+ writer.writeStringValue("originalFilename", document.originalFilename);
2118
+ writer.writeStringValue("originalUrl", document.originalUrl);
2119
+ writer.writeNumberValue("pageCount", document.pageCount);
2120
+ writer.writeCollectionOfObjectValues("pageDimensions", document.pageDimensions, serializeDocument_pageDimensions);
2121
+ writer.writeEnumValue("status", document.status);
2122
+ writer.writeStringValue("title", document.title);
2123
+ writer.writeDateValue("updatedAt", document.updatedAt);
2124
+ writer.writeGuidValue("workspaceId", document.workspaceId);
2125
+ writer.writeAdditionalData(document.additionalData);
2126
+ }
2127
+ /**
2128
+ * Serializes information the current object
2129
+ * @param Document_pageDimensions The instance to serialize from.
2130
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
2131
+ * @param writer Serialization writer to use to serialize this model
2132
+ */
2133
+ // @ts-ignore
2134
+ export function serializeDocument_pageDimensions(writer, document_pageDimensions = {}, isSerializingDerivedType = false) {
2135
+ if (!document_pageDimensions || isSerializingDerivedType) {
2136
+ return;
2137
+ }
2138
+ writer.writeNumberValue("height", document_pageDimensions.height);
2139
+ writer.writeNumberValue("width", document_pageDimensions.width);
2140
+ writer.writeAdditionalData(document_pageDimensions.additionalData);
2141
+ }
2142
+ /**
2143
+ * Serializes information the current object
2144
+ * @param DocumentField The instance to serialize from.
2145
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
2146
+ * @param writer Serialization writer to use to serialize this model
2147
+ */
2148
+ // @ts-ignore
2149
+ export function serializeDocumentField(writer, documentField = {}, isSerializingDerivedType = false) {
2150
+ if (!documentField || isSerializingDerivedType) {
2151
+ return;
2152
+ }
2153
+ writer.writeStringValue("assigneeRole", documentField.assigneeRole);
2154
+ writer.writeDateValue("createdAt", documentField.createdAt);
2155
+ writer.writeStringValue("defaultValue", documentField.defaultValue);
2156
+ writer.writeEnumValue("direction", documentField.direction);
2157
+ writer.writeGuidValue("documentId", documentField.documentId);
2158
+ writer.writeNumberValue("height", documentField.height);
2159
+ writer.writeGuidValue("id", documentField.id);
2160
+ writer.writeBooleanValue("isReadOnly", documentField.isReadOnly);
2161
+ writer.writeBooleanValue("isRequired", documentField.isRequired);
2162
+ writer.writeStringValue("label", documentField.label);
2163
+ writer.writeObjectValue("options", documentField.options, serializeDocumentField_options);
2164
+ writer.writeNumberValue("order", documentField.order);
2165
+ writer.writeNumberValue("pageNumber", documentField.pageNumber);
2166
+ writer.writeEnumValue("type", documentField.type);
2167
+ writer.writeNumberValue("width", documentField.width);
2168
+ writer.writeNumberValue("x", documentField.x);
2169
+ writer.writeNumberValue("y", documentField.y);
2170
+ writer.writeAdditionalData(documentField.additionalData);
2171
+ }
2172
+ /**
2173
+ * Serializes information the current object
2174
+ * @param DocumentField_options The instance to serialize from.
2175
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
2176
+ * @param writer Serialization writer to use to serialize this model
2177
+ */
2178
+ // @ts-ignore
2179
+ export function serializeDocumentField_options(writer, documentField_options = {}, isSerializingDerivedType = false) {
2180
+ if (!documentField_options || isSerializingDerivedType) {
2181
+ return;
2182
+ }
2183
+ writer.writeBooleanValue("supporting_attachment", documentField_options.supportingAttachment);
2184
+ writer.writeAdditionalData(documentField_options.additionalData);
2185
+ }
2186
+ /**
2187
+ * Serializes information the current object
2188
+ * @param DocumentNotEditableConflict The instance to serialize from.
2189
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
2190
+ * @param writer Serialization writer to use to serialize this model
2191
+ */
2192
+ // @ts-ignore
2193
+ export function serializeDocumentNotEditableConflict(writer, documentNotEditableConflict = {}, isSerializingDerivedType = false) {
2194
+ if (!documentNotEditableConflict || isSerializingDerivedType) {
2195
+ return;
2196
+ }
2197
+ writer.writeEnumValue("code", documentNotEditableConflict.code);
2198
+ writer.writeStringValue("error", documentNotEditableConflict.errorEscaped);
2199
+ writer.writeBooleanValue("success", documentNotEditableConflict.success);
2200
+ writer.writeAdditionalData(documentNotEditableConflict.additionalData);
2201
+ }
2202
+ /**
2203
+ * Serializes information the current object
2204
+ * @param DocumentParseJobResult The instance to serialize from.
2205
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
2206
+ * @param writer Serialization writer to use to serialize this model
2207
+ */
2208
+ // @ts-ignore
2209
+ export function serializeDocumentParseJobResult(writer, documentParseJobResult = {}, isSerializingDerivedType = false) {
2210
+ if (!documentParseJobResult || isSerializingDerivedType) {
2211
+ return;
2212
+ }
2213
+ writer.writeObjectValue("applied", documentParseJobResult.applied, serializeParseJobAppliedResult);
2214
+ writer.writeStringValue("detectedLanguage", documentParseJobResult.detectedLanguage);
2215
+ writer.writeCollectionOfObjectValues("fields", documentParseJobResult.fields, serializeDetectedDocumentField);
2216
+ writer.writeObjectValue("stats", documentParseJobResult.stats, serializeDocumentParseJobResult_stats);
2217
+ writer.writeAdditionalData(documentParseJobResult.additionalData);
2218
+ }
2219
+ /**
2220
+ * Serializes information the current object
2221
+ * @param DocumentParseJobResult_stats The instance to serialize from.
2222
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
2223
+ * @param writer Serialization writer to use to serialize this model
2224
+ */
2225
+ // @ts-ignore
2226
+ export function serializeDocumentParseJobResult_stats(writer, documentParseJobResult_stats = {}, isSerializingDerivedType = false) {
2227
+ if (!documentParseJobResult_stats || isSerializingDerivedType) {
2228
+ return;
2229
+ }
2230
+ writer.writeAdditionalData(documentParseJobResult_stats.additionalData);
2231
+ }
2232
+ /**
2233
+ * Serializes information the current object
2234
+ * @param DocumentRevision The instance to serialize from.
2235
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
2236
+ * @param writer Serialization writer to use to serialize this model
2237
+ */
2238
+ // @ts-ignore
2239
+ export function serializeDocumentRevision(writer, documentRevision = {}, isSerializingDerivedType = false) {
2240
+ if (!documentRevision || isSerializingDerivedType) {
2241
+ return;
2242
+ }
2243
+ writer.writeStringValue("changesSummary", documentRevision.changesSummary);
2244
+ writer.writeGuidValue("documentId", documentRevision.documentId);
2245
+ writer.writeGuidValue("id", documentRevision.id);
2246
+ writer.writeDateValue("publishedAt", documentRevision.publishedAt);
2247
+ writer.writeStringValue("publishedBy", documentRevision.publishedBy);
2248
+ writer.writeObjectValue("snapshot", documentRevision.snapshot);
2249
+ writer.writeNumberValue("version", documentRevision.version);
2250
+ writer.writeAdditionalData(documentRevision.additionalData);
2251
+ }
2252
+ /**
2253
+ * Serializes information the current object
2254
+ * @param DocumentSubmission The instance to serialize from.
2255
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
2256
+ * @param writer Serialization writer to use to serialize this model
2257
+ */
2258
+ // @ts-ignore
2259
+ export function serializeDocumentSubmission(writer, documentSubmission = {}, isSerializingDerivedType = false) {
2260
+ if (!documentSubmission || isSerializingDerivedType) {
2261
+ return;
2262
+ }
2263
+ writer.writeDateValue("completedAt", documentSubmission.completedAt);
2264
+ writer.writeStringValue("completedPdfUrl", documentSubmission.completedPdfUrl);
2265
+ writer.writeDateValue("createdAt", documentSubmission.createdAt);
2266
+ writer.writeGuidValue("documentId", documentSubmission.documentId);
2267
+ writer.writeGuidValue("documentRevisionId", documentSubmission.documentRevisionId);
2268
+ writer.writeGuidValue("id", documentSubmission.id);
2269
+ writer.writeObjectValue("signedPdf", documentSubmission.signedPdf, serializeDocumentSubmission_signedPdf);
2270
+ writer.writeCollectionOfObjectValues("signers", documentSubmission.signers, serializeSigner);
2271
+ writer.writeEnumValue("status", documentSubmission.status);
2272
+ writer.writeAdditionalData(documentSubmission.additionalData);
2273
+ }
2274
+ /**
2275
+ * Serializes information the current object
2276
+ * @param DocumentSubmission_signedPdf The instance to serialize from.
2277
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
2278
+ * @param writer Serialization writer to use to serialize this model
2279
+ */
2280
+ // @ts-ignore
2281
+ export function serializeDocumentSubmission_signedPdf(writer, documentSubmission_signedPdf = {}, isSerializingDerivedType = false) {
2282
+ if (!documentSubmission_signedPdf || isSerializingDerivedType) {
2283
+ return;
2284
+ }
2285
+ writer.writeEnumValue("authorization", documentSubmission_signedPdf.authorization);
2286
+ writer.writeStringValue("contentType", documentSubmission_signedPdf.contentType);
2287
+ writer.writeEnumValue("downloadMethod", documentSubmission_signedPdf.downloadMethod);
2288
+ writer.writeStringValue("downloadUrl", documentSubmission_signedPdf.downloadUrl);
2289
+ writer.writeGuidValue("fileId", documentSubmission_signedPdf.fileId);
2290
+ writer.writeStringValue("name", documentSubmission_signedPdf.name);
2291
+ writer.writeNumberValue("sizeBytes", documentSubmission_signedPdf.sizeBytes);
2292
+ writer.writeAdditionalData(documentSubmission_signedPdf.additionalData);
2293
+ }
2294
+ /**
2295
+ * Serializes information the current object
2296
+ * @param FileDescriptor The instance to serialize from.
2297
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
2298
+ * @param writer Serialization writer to use to serialize this model
2299
+ */
2300
+ // @ts-ignore
2301
+ export function serializeFileDescriptor(writer, fileDescriptor = {}, isSerializingDerivedType = false) {
2302
+ if (!fileDescriptor || isSerializingDerivedType) {
2303
+ return;
2304
+ }
2305
+ writer.writeEnumValue("authorization", fileDescriptor.authorization);
2306
+ writer.writeStringValue("contentType", fileDescriptor.contentType);
2307
+ writer.writeEnumValue("downloadMethod", fileDescriptor.downloadMethod);
2308
+ writer.writeStringValue("downloadUrl", fileDescriptor.downloadUrl);
2309
+ writer.writeGuidValue("fileId", fileDescriptor.fileId);
2310
+ writer.writeStringValue("name", fileDescriptor.name);
2311
+ writer.writeNumberValue("sizeBytes", fileDescriptor.sizeBytes);
2312
+ writer.writeAdditionalData(fileDescriptor.additionalData);
2313
+ }
2314
+ /**
2315
+ * Serializes information the current object
2316
+ * @param FileDownload The instance to serialize from.
2317
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
2318
+ * @param writer Serialization writer to use to serialize this model
2319
+ */
2320
+ // @ts-ignore
2321
+ export function serializeFileDownload(writer, fileDownload = {}, isSerializingDerivedType = false) {
2322
+ if (!fileDownload || isSerializingDerivedType) {
2323
+ return;
2324
+ }
2325
+ writer.writeStringValue("contentType", fileDownload.contentType);
2326
+ writer.writeStringValue("downloadUrl", fileDownload.downloadUrl);
2327
+ writer.writeNumberValue("expiresIn", fileDownload.expiresIn);
2328
+ writer.writeGuidValue("fileId", fileDownload.fileId);
2329
+ writer.writeStringValue("name", fileDownload.name);
2330
+ writer.writeNumberValue("sizeBytes", fileDownload.sizeBytes);
2331
+ writer.writeAdditionalData(fileDownload.additionalData);
2332
+ }
2333
+ /**
2334
+ * Serializes information the current object
2335
+ * @param FileDownloadResponse The instance to serialize from.
2336
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
2337
+ * @param writer Serialization writer to use to serialize this model
2338
+ */
2339
+ // @ts-ignore
2340
+ export function serializeFileDownloadResponse(writer, fileDownloadResponse = {}, isSerializingDerivedType = false) {
2341
+ if (!fileDownloadResponse || isSerializingDerivedType) {
2342
+ return;
2343
+ }
2344
+ writer.writeObjectValue("data", fileDownloadResponse.data, serializeFileDownload);
2345
+ writer.writeBooleanValue("success", fileDownloadResponse.success);
2346
+ writer.writeAdditionalData(fileDownloadResponse.additionalData);
2347
+ }
2348
+ /**
2349
+ * Serializes information the current object
2350
+ * @param Form The instance to serialize from.
2351
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
2352
+ * @param writer Serialization writer to use to serialize this model
2353
+ */
2354
+ // @ts-ignore
2355
+ export function serializeForm(writer, form = {}, isSerializingDerivedType = false) {
2356
+ if (!form || isSerializingDerivedType) {
2357
+ return;
2358
+ }
2359
+ writer.writeObjectValue("branding", form.branding, serializeForm_branding);
2360
+ writer.writeDateValue("createdAt", form.createdAt);
2361
+ writer.writeGuidValue("creatorId", form.creatorId);
2362
+ writer.writeStringValue("description", form.description);
2363
+ writer.writeGuidValue("id", form.id);
2364
+ writer.writeStringValue("publicToken", form.publicToken);
2365
+ writer.writeNumberValue("question_count", form.questionCount);
2366
+ writer.writeNumberValue("sent_count", form.sentCount);
2367
+ writer.writeObjectValue("settings", form.settings, serializeForm_settings);
2368
+ writer.writeEnumValue("status", form.status);
2369
+ writer.writeNumberValue("submission_count", form.submissionCount);
2370
+ writer.writeStringValue("title", form.title);
2371
+ writer.writeDateValue("updatedAt", form.updatedAt);
2372
+ writer.writeGuidValue("workspaceId", form.workspaceId);
2373
+ writer.writeAdditionalData(form.additionalData);
2374
+ }
2375
+ /**
2376
+ * Serializes information the current object
2377
+ * @param Form_branding The instance to serialize from.
2378
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
2379
+ * @param writer Serialization writer to use to serialize this model
2380
+ */
2381
+ // @ts-ignore
2382
+ export function serializeForm_branding(writer, form_branding = {}, isSerializingDerivedType = false) {
2383
+ if (!form_branding || isSerializingDerivedType) {
2384
+ return;
2385
+ }
2386
+ writer.writeAdditionalData(form_branding.additionalData);
2387
+ }
2388
+ /**
2389
+ * Serializes information the current object
2390
+ * @param Form_settings The instance to serialize from.
2391
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
2392
+ * @param writer Serialization writer to use to serialize this model
2393
+ */
2394
+ // @ts-ignore
2395
+ export function serializeForm_settings(writer, form_settings = {}, isSerializingDerivedType = false) {
2396
+ if (!form_settings || isSerializingDerivedType) {
2397
+ return;
2398
+ }
2399
+ writer.writeAdditionalData(form_settings.additionalData);
2400
+ }
2401
+ /**
2402
+ * Serializes information the current object
2403
+ * @param FormRevision The instance to serialize from.
949
2404
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
950
2405
  * @param writer Serialization writer to use to serialize this model
951
2406
  */
952
2407
  // @ts-ignore
953
- export function serializeCreateSignerRoleBody(writer, createSignerRoleBody = {}, isSerializingDerivedType = false) {
954
- if (!createSignerRoleBody || isSerializingDerivedType) {
2408
+ export function serializeFormRevision(writer, formRevision = {}, isSerializingDerivedType = false) {
2409
+ if (!formRevision || isSerializingDerivedType) {
955
2410
  return;
956
2411
  }
957
- writer.writeStringValue("label", createSignerRoleBody.label);
958
- writer.writeAdditionalData(createSignerRoleBody.additionalData);
2412
+ writer.writeStringValue("changesSummary", formRevision.changesSummary);
2413
+ writer.writeGuidValue("formId", formRevision.formId);
2414
+ writer.writeGuidValue("id", formRevision.id);
2415
+ writer.writeDateValue("publishedAt", formRevision.publishedAt);
2416
+ writer.writeStringValue("publishedBy", formRevision.publishedBy);
2417
+ writer.writeObjectValue("snapshot", formRevision.snapshot);
2418
+ writer.writeNumberValue("version", formRevision.version);
2419
+ writer.writeAdditionalData(formRevision.additionalData);
959
2420
  }
960
2421
  /**
961
2422
  * Serializes information the current object
962
- * @param CreateSubmissionBody The instance to serialize from.
2423
+ * @param GetDocumentParseJobResponse The instance to serialize from.
963
2424
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
964
2425
  * @param writer Serialization writer to use to serialize this model
965
2426
  */
966
2427
  // @ts-ignore
967
- export function serializeCreateSubmissionBody(writer, createSubmissionBody = {}, isSerializingDerivedType = false) {
968
- if (!createSubmissionBody || isSerializingDerivedType) {
2428
+ export function serializeGetDocumentParseJobResponse(writer, getDocumentParseJobResponse = {}, isSerializingDerivedType = false) {
2429
+ if (!getDocumentParseJobResponse || isSerializingDerivedType) {
969
2430
  return;
970
2431
  }
971
- writer.writeCollectionOfObjectValues("signers", createSubmissionBody.signers, serializeSignerInput);
972
- writer.writeBooleanValue("suppress_notifications", createSubmissionBody.suppressNotifications);
973
- writer.writeAdditionalData(createSubmissionBody.additionalData);
2432
+ writer.writeObjectValue("data", getDocumentParseJobResponse.data, serializeGetDocumentParseJobResponse_data);
2433
+ writer.writeObjectValue("meta", getDocumentParseJobResponse.meta, serializeGetDocumentParseJobResponse_meta);
2434
+ writer.writeBooleanValue("success", getDocumentParseJobResponse.success);
2435
+ writer.writeAdditionalData(getDocumentParseJobResponse.additionalData);
974
2436
  }
975
2437
  /**
976
2438
  * Serializes information the current object
977
- * @param Document The instance to serialize from.
2439
+ * @param GetDocumentParseJobResponse_data The instance to serialize from.
978
2440
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
979
2441
  * @param writer Serialization writer to use to serialize this model
980
2442
  */
981
2443
  // @ts-ignore
982
- export function serializeDocument(writer, document = {}, isSerializingDerivedType = false) {
983
- if (!document || isSerializingDerivedType) {
2444
+ export function serializeGetDocumentParseJobResponse_data(writer, getDocumentParseJobResponse_data = {}, isSerializingDerivedType = false) {
2445
+ if (!getDocumentParseJobResponse_data || isSerializingDerivedType) {
984
2446
  return;
985
2447
  }
986
- writer.writeStringValue("completedPdfUrl", document.completedPdfUrl);
987
- writer.writeDateValue("createdAt", document.createdAt);
988
- writer.writeGuidValue("creatorId", document.creatorId);
989
- writer.writeDateValue("deletedAt", document.deletedAt);
990
- writer.writeStringValue("fileType", document.fileType);
991
- writer.writeGuidValue("id", document.id);
992
- writer.writeStringValue("originalFilename", document.originalFilename);
993
- writer.writeStringValue("originalUrl", document.originalUrl);
994
- writer.writeNumberValue("pageCount", document.pageCount);
995
- writer.writeCollectionOfObjectValues("pageDimensions", document.pageDimensions, serializeDocument_pageDimensions);
996
- writer.writeEnumValue("status", document.status);
997
- writer.writeStringValue("title", document.title);
998
- writer.writeDateValue("updatedAt", document.updatedAt);
999
- writer.writeGuidValue("workspaceId", document.workspaceId);
1000
- writer.writeAdditionalData(document.additionalData);
2448
+ writer.writeEnumValue("applyMode", getDocumentParseJobResponse_data.applyMode);
2449
+ writer.writeGuidValue("documentId", getDocumentParseJobResponse_data.documentId);
2450
+ writer.writeStringValue("error", getDocumentParseJobResponse_data.errorEscaped);
2451
+ writer.writeGuidValue("parseJobId", getDocumentParseJobResponse_data.parseJobId);
2452
+ writer.writeNumberValue("pollAfterMs", getDocumentParseJobResponse_data.pollAfterMs);
2453
+ writer.writeObjectValue("result", getDocumentParseJobResponse_data.result, serializeDocumentParseJobResult);
2454
+ writer.writeEnumValue("status", getDocumentParseJobResponse_data.status);
2455
+ writer.writeObjectValue("warnings", getDocumentParseJobResponse_data.warnings);
2456
+ writer.writeAdditionalData(getDocumentParseJobResponse_data.additionalData);
1001
2457
  }
1002
2458
  /**
1003
2459
  * Serializes information the current object
1004
- * @param Document_pageDimensions The instance to serialize from.
2460
+ * @param GetDocumentParseJobResponse_meta The instance to serialize from.
1005
2461
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1006
2462
  * @param writer Serialization writer to use to serialize this model
1007
2463
  */
1008
2464
  // @ts-ignore
1009
- export function serializeDocument_pageDimensions(writer, document_pageDimensions = {}, isSerializingDerivedType = false) {
1010
- if (!document_pageDimensions || isSerializingDerivedType) {
2465
+ export function serializeGetDocumentParseJobResponse_meta(writer, getDocumentParseJobResponse_meta = {}, isSerializingDerivedType = false) {
2466
+ if (!getDocumentParseJobResponse_meta || isSerializingDerivedType) {
1011
2467
  return;
1012
2468
  }
1013
- writer.writeNumberValue("height", document_pageDimensions.height);
1014
- writer.writeNumberValue("width", document_pageDimensions.width);
1015
- writer.writeAdditionalData(document_pageDimensions.additionalData);
2469
+ writer.writeNumberValue("limit", getDocumentParseJobResponse_meta.limit);
2470
+ writer.writeNumberValue("page", getDocumentParseJobResponse_meta.page);
2471
+ writer.writeNumberValue("total", getDocumentParseJobResponse_meta.total);
2472
+ writer.writeAdditionalData(getDocumentParseJobResponse_meta.additionalData);
1016
2473
  }
1017
2474
  /**
1018
2475
  * Serializes information the current object
1019
- * @param DocumentField The instance to serialize from.
2476
+ * @param ImportDocumentBundleResponse The instance to serialize from.
1020
2477
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1021
2478
  * @param writer Serialization writer to use to serialize this model
1022
2479
  */
1023
2480
  // @ts-ignore
1024
- export function serializeDocumentField(writer, documentField = {}, isSerializingDerivedType = false) {
1025
- if (!documentField || isSerializingDerivedType) {
2481
+ export function serializeImportDocumentBundleResponse(writer, importDocumentBundleResponse = {}, isSerializingDerivedType = false) {
2482
+ if (!importDocumentBundleResponse || isSerializingDerivedType) {
1026
2483
  return;
1027
2484
  }
1028
- writer.writeStringValue("assigneeRole", documentField.assigneeRole);
1029
- writer.writeDateValue("createdAt", documentField.createdAt);
1030
- writer.writeStringValue("defaultValue", documentField.defaultValue);
1031
- writer.writeEnumValue("direction", documentField.direction);
1032
- writer.writeGuidValue("documentId", documentField.documentId);
1033
- writer.writeNumberValue("height", documentField.height);
1034
- writer.writeGuidValue("id", documentField.id);
1035
- writer.writeBooleanValue("isReadOnly", documentField.isReadOnly);
1036
- writer.writeBooleanValue("isRequired", documentField.isRequired);
1037
- writer.writeStringValue("label", documentField.label);
1038
- writer.writeObjectValue("options", documentField.options, serializeDocumentField_options);
1039
- writer.writeNumberValue("order", documentField.order);
1040
- writer.writeNumberValue("pageNumber", documentField.pageNumber);
1041
- writer.writeEnumValue("type", documentField.type);
1042
- writer.writeNumberValue("width", documentField.width);
1043
- writer.writeNumberValue("x", documentField.x);
1044
- writer.writeNumberValue("y", documentField.y);
1045
- writer.writeAdditionalData(documentField.additionalData);
2485
+ writer.writeNumberValue("actions_omitted", importDocumentBundleResponse.actionsOmitted);
2486
+ writer.writeNumberValue("conditions_omitted", importDocumentBundleResponse.conditionsOmitted);
2487
+ writer.writeObjectValue("data", importDocumentBundleResponse.data, serializeImportDocumentBundleResponse_data);
2488
+ writer.writeObjectValue("meta", importDocumentBundleResponse.meta, serializeImportDocumentBundleResponse_meta);
2489
+ writer.writeBooleanValue("success", importDocumentBundleResponse.success);
2490
+ writer.writeCollectionOfPrimitiveValues("warnings", importDocumentBundleResponse.warnings);
2491
+ writer.writeAdditionalData(importDocumentBundleResponse.additionalData);
1046
2492
  }
1047
2493
  /**
1048
2494
  * Serializes information the current object
1049
- * @param DocumentField_options The instance to serialize from.
2495
+ * @param ImportDocumentBundleResponse_data The instance to serialize from.
1050
2496
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1051
2497
  * @param writer Serialization writer to use to serialize this model
1052
2498
  */
1053
2499
  // @ts-ignore
1054
- export function serializeDocumentField_options(writer, documentField_options = {}, isSerializingDerivedType = false) {
1055
- if (!documentField_options || isSerializingDerivedType) {
2500
+ export function serializeImportDocumentBundleResponse_data(writer, importDocumentBundleResponse_data = {}, isSerializingDerivedType = false) {
2501
+ if (!importDocumentBundleResponse_data || isSerializingDerivedType) {
1056
2502
  return;
1057
2503
  }
1058
- writer.writeAdditionalData(documentField_options.additionalData);
2504
+ writer.writeEnumValue("generationType", importDocumentBundleResponse_data.generationType);
2505
+ writer.writeGuidValue("id", importDocumentBundleResponse_data.id);
2506
+ writer.writeStringValue("originalFilename", importDocumentBundleResponse_data.originalFilename);
2507
+ writer.writeStringValue("originalUrl", importDocumentBundleResponse_data.originalUrl);
2508
+ writer.writeEnumValue("status", importDocumentBundleResponse_data.status);
2509
+ writer.writeStringValue("title", importDocumentBundleResponse_data.title);
2510
+ writer.writeAdditionalData(importDocumentBundleResponse_data.additionalData);
1059
2511
  }
1060
2512
  /**
1061
2513
  * Serializes information the current object
1062
- * @param DocumentSubmission The instance to serialize from.
2514
+ * @param ImportDocumentBundleResponse_meta The instance to serialize from.
1063
2515
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1064
2516
  * @param writer Serialization writer to use to serialize this model
1065
2517
  */
1066
2518
  // @ts-ignore
1067
- export function serializeDocumentSubmission(writer, documentSubmission = {}, isSerializingDerivedType = false) {
1068
- if (!documentSubmission || isSerializingDerivedType) {
2519
+ export function serializeImportDocumentBundleResponse_meta(writer, importDocumentBundleResponse_meta = {}, isSerializingDerivedType = false) {
2520
+ if (!importDocumentBundleResponse_meta || isSerializingDerivedType) {
1069
2521
  return;
1070
2522
  }
1071
- writer.writeDateValue("completedAt", documentSubmission.completedAt);
1072
- writer.writeStringValue("completedPdfUrl", documentSubmission.completedPdfUrl);
1073
- writer.writeDateValue("createdAt", documentSubmission.createdAt);
1074
- writer.writeGuidValue("documentId", documentSubmission.documentId);
1075
- writer.writeGuidValue("id", documentSubmission.id);
1076
- writer.writeCollectionOfObjectValues("signers", documentSubmission.signers, serializeSigner);
1077
- writer.writeEnumValue("status", documentSubmission.status);
1078
- writer.writeAdditionalData(documentSubmission.additionalData);
2523
+ writer.writeNumberValue("limit", importDocumentBundleResponse_meta.limit);
2524
+ writer.writeNumberValue("page", importDocumentBundleResponse_meta.page);
2525
+ writer.writeNumberValue("total", importDocumentBundleResponse_meta.total);
2526
+ writer.writeAdditionalData(importDocumentBundleResponse_meta.additionalData);
1079
2527
  }
1080
2528
  /**
1081
2529
  * Serializes information the current object
1082
- * @param Form The instance to serialize from.
1083
2530
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
2531
+ * @param ParseJobAppliedResult The instance to serialize from.
1084
2532
  * @param writer Serialization writer to use to serialize this model
1085
2533
  */
1086
2534
  // @ts-ignore
1087
- export function serializeForm(writer, form = {}, isSerializingDerivedType = false) {
1088
- if (!form || isSerializingDerivedType) {
2535
+ export function serializeParseJobAppliedResult(writer, parseJobAppliedResult = {}, isSerializingDerivedType = false) {
2536
+ if (!parseJobAppliedResult || isSerializingDerivedType) {
1089
2537
  return;
1090
2538
  }
1091
- writer.writeObjectValue("branding", form.branding, serializeForm_branding);
1092
- writer.writeDateValue("createdAt", form.createdAt);
1093
- writer.writeGuidValue("creatorId", form.creatorId);
1094
- writer.writeStringValue("description", form.description);
1095
- writer.writeGuidValue("id", form.id);
1096
- writer.writeStringValue("publicToken", form.publicToken);
1097
- writer.writeNumberValue("question_count", form.questionCount);
1098
- writer.writeObjectValue("settings", form.settings, serializeForm_settings);
1099
- writer.writeEnumValue("status", form.status);
1100
- writer.writeStringValue("title", form.title);
1101
- writer.writeDateValue("updatedAt", form.updatedAt);
1102
- writer.writeGuidValue("workspaceId", form.workspaceId);
1103
- writer.writeAdditionalData(form.additionalData);
2539
+ writer.writeCollectionOfPrimitiveValues("createdFieldIds", parseJobAppliedResult.createdFieldIds);
2540
+ writer.writeCollectionOfPrimitiveValues("createdSignerRoleIds", parseJobAppliedResult.createdSignerRoleIds);
2541
+ writer.writeAdditionalData(parseJobAppliedResult.additionalData);
1104
2542
  }
1105
2543
  /**
1106
2544
  * Serializes information the current object
1107
- * @param Form_branding The instance to serialize from.
1108
2545
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
2546
+ * @param PhoneValidationDetails The instance to serialize from.
1109
2547
  * @param writer Serialization writer to use to serialize this model
1110
2548
  */
1111
2549
  // @ts-ignore
1112
- export function serializeForm_branding(writer, form_branding = {}, isSerializingDerivedType = false) {
1113
- if (!form_branding || isSerializingDerivedType) {
2550
+ export function serializePhoneValidationDetails(writer, phoneValidationDetails = {}, isSerializingDerivedType = false) {
2551
+ if (!phoneValidationDetails || isSerializingDerivedType) {
1114
2552
  return;
1115
2553
  }
1116
- writer.writeAdditionalData(form_branding.additionalData);
2554
+ writer.writeEnumValue("code", phoneValidationDetails.code);
2555
+ writer.writeStringValue("field", phoneValidationDetails.field);
2556
+ writer.writeNumberValue("index", phoneValidationDetails.index);
2557
+ writer.writeNumberValue("row", phoneValidationDetails.row);
2558
+ writer.writeAdditionalData(phoneValidationDetails.additionalData);
1117
2559
  }
1118
2560
  /**
1119
2561
  * Serializes information the current object
1120
- * @param Form_settings The instance to serialize from.
1121
2562
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
2563
+ * @param PhoneValidationError The instance to serialize from.
1122
2564
  * @param writer Serialization writer to use to serialize this model
1123
2565
  */
1124
2566
  // @ts-ignore
1125
- export function serializeForm_settings(writer, form_settings = {}, isSerializingDerivedType = false) {
1126
- if (!form_settings || isSerializingDerivedType) {
2567
+ export function serializePhoneValidationError(writer, phoneValidationError = {}, isSerializingDerivedType = false) {
2568
+ if (!phoneValidationError || isSerializingDerivedType) {
1127
2569
  return;
1128
2570
  }
1129
- writer.writeAdditionalData(form_settings.additionalData);
2571
+ serializeValidationError(writer, phoneValidationError, isSerializingDerivedType);
1130
2572
  }
1131
2573
  /**
1132
2574
  * Serializes information the current object
@@ -1153,6 +2595,23 @@ export function serializeQuestion(writer, question = {}, isSerializingDerivedTyp
1153
2595
  writer.writeEnumValue("type", question.type);
1154
2596
  writer.writeAdditionalData(question.additionalData);
1155
2597
  }
2598
+ /**
2599
+ * Serializes information the current object
2600
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
2601
+ * @param QuotaExceededError The instance to serialize from.
2602
+ * @param writer Serialization writer to use to serialize this model
2603
+ */
2604
+ // @ts-ignore
2605
+ export function serializeQuotaExceededError(writer, quotaExceededError = {}, isSerializingDerivedType = false) {
2606
+ if (!quotaExceededError || isSerializingDerivedType) {
2607
+ return;
2608
+ }
2609
+ writer.writeEnumValue("code", quotaExceededError.code);
2610
+ writer.writeStringValue("error", quotaExceededError.errorEscaped);
2611
+ writer.writeStringValue("hint", quotaExceededError.hint);
2612
+ writer.writeBooleanValue("success", quotaExceededError.success);
2613
+ writer.writeAdditionalData(quotaExceededError.additionalData);
2614
+ }
1156
2615
  /**
1157
2616
  * Serializes information the current object
1158
2617
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -1183,6 +2642,69 @@ export function serializeRecipient(writer, recipient = {}, isSerializingDerivedT
1183
2642
  writer.writeNumberValue("visit_count", recipient.visitCount);
1184
2643
  writer.writeAdditionalData(recipient.additionalData);
1185
2644
  }
2645
+ /**
2646
+ * Serializes information the current object
2647
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
2648
+ * @param RecipientBulkCreateResult The instance to serialize from.
2649
+ * @param writer Serialization writer to use to serialize this model
2650
+ */
2651
+ // @ts-ignore
2652
+ export function serializeRecipientBulkCreateResult(writer, recipientBulkCreateResult = {}, isSerializingDerivedType = false) {
2653
+ if (!recipientBulkCreateResult || isSerializingDerivedType) {
2654
+ return;
2655
+ }
2656
+ writer.writeDateValue("created_at", recipientBulkCreateResult.createdAt);
2657
+ writer.writeGuidValue("dispatchId", recipientBulkCreateResult.dispatchId);
2658
+ writer.writeStringValue("email", recipientBulkCreateResult.email);
2659
+ writer.writeDateValue("expires_at", recipientBulkCreateResult.expiresAt);
2660
+ writer.writeGuidValue("form_id", recipientBulkCreateResult.formId);
2661
+ writer.writeBooleanValue("has_password", recipientBulkCreateResult.hasPassword);
2662
+ writer.writeGuidValue("id", recipientBulkCreateResult.id);
2663
+ writer.writeBooleanValue("is_active", recipientBulkCreateResult.isActive);
2664
+ writer.writeBooleanValue("is_anonymous", recipientBulkCreateResult.isAnonymous);
2665
+ writer.writeStringValue("label", recipientBulkCreateResult.label);
2666
+ writer.writeDateValue("last_activity_at", recipientBulkCreateResult.lastActivityAt);
2667
+ writer.writeStringValue("link", recipientBulkCreateResult.link);
2668
+ writer.writeStringValue("phone", recipientBulkCreateResult.phone);
2669
+ writer.writeNumberValue("response_count", recipientBulkCreateResult.responseCount);
2670
+ writer.writeEnumValue("status", recipientBulkCreateResult.status);
2671
+ writer.writeStringValue("token", recipientBulkCreateResult.token);
2672
+ writer.writeNumberValue("total_questions", recipientBulkCreateResult.totalQuestions);
2673
+ writer.writeNumberValue("visit_count", recipientBulkCreateResult.visitCount);
2674
+ writer.writeAdditionalData(recipientBulkCreateResult.additionalData);
2675
+ }
2676
+ /**
2677
+ * Serializes information the current object
2678
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
2679
+ * @param RecipientCreateResult The instance to serialize from.
2680
+ * @param writer Serialization writer to use to serialize this model
2681
+ */
2682
+ // @ts-ignore
2683
+ export function serializeRecipientCreateResult(writer, recipientCreateResult = {}, isSerializingDerivedType = false) {
2684
+ if (!recipientCreateResult || isSerializingDerivedType) {
2685
+ return;
2686
+ }
2687
+ writer.writeDateValue("created_at", recipientCreateResult.createdAt);
2688
+ writer.writeGuidValue("dispatchId", recipientCreateResult.dispatchId);
2689
+ writer.writeStringValue("email", recipientCreateResult.email);
2690
+ writer.writeDateValue("expires_at", recipientCreateResult.expiresAt);
2691
+ writer.writeGuidValue("form_id", recipientCreateResult.formId);
2692
+ writer.writeBooleanValue("has_password", recipientCreateResult.hasPassword);
2693
+ writer.writeGuidValue("id", recipientCreateResult.id);
2694
+ writer.writeBooleanValue("is_active", recipientCreateResult.isActive);
2695
+ writer.writeBooleanValue("is_anonymous", recipientCreateResult.isAnonymous);
2696
+ writer.writeStringValue("label", recipientCreateResult.label);
2697
+ writer.writeDateValue("last_activity_at", recipientCreateResult.lastActivityAt);
2698
+ writer.writeStringValue("link", recipientCreateResult.link);
2699
+ writer.writeStringValue("phone", recipientCreateResult.phone);
2700
+ writer.writeStringValue("plain_password", recipientCreateResult.plainPassword);
2701
+ writer.writeNumberValue("response_count", recipientCreateResult.responseCount);
2702
+ writer.writeEnumValue("status", recipientCreateResult.status);
2703
+ writer.writeStringValue("token", recipientCreateResult.token);
2704
+ writer.writeNumberValue("total_questions", recipientCreateResult.totalQuestions);
2705
+ writer.writeNumberValue("visit_count", recipientCreateResult.visitCount);
2706
+ writer.writeAdditionalData(recipientCreateResult.additionalData);
2707
+ }
1186
2708
  /**
1187
2709
  * Serializes information the current object
1188
2710
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -1200,6 +2722,36 @@ export function serializeRecipientResponse(writer, recipientResponse = {}, isSer
1200
2722
  writer.writeObjectValue("value", recipientResponse.value);
1201
2723
  writer.writeAdditionalData(recipientResponse.additionalData);
1202
2724
  }
2725
+ /**
2726
+ * Serializes information the current object
2727
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
2728
+ * @param RecipientUpdate The instance to serialize from.
2729
+ * @param writer Serialization writer to use to serialize this model
2730
+ */
2731
+ // @ts-ignore
2732
+ export function serializeRecipientUpdate(writer, recipientUpdate = {}, isSerializingDerivedType = false) {
2733
+ if (!recipientUpdate || isSerializingDerivedType) {
2734
+ return;
2735
+ }
2736
+ writer.writeDateValue("created_at", recipientUpdate.createdAt);
2737
+ writer.writeStringValue("email", recipientUpdate.email);
2738
+ writer.writeDateValue("expires_at", recipientUpdate.expiresAt);
2739
+ writer.writeGuidValue("form_id", recipientUpdate.formId);
2740
+ writer.writeBooleanValue("has_password", recipientUpdate.hasPassword);
2741
+ writer.writeGuidValue("id", recipientUpdate.id);
2742
+ writer.writeBooleanValue("is_active", recipientUpdate.isActive);
2743
+ writer.writeBooleanValue("is_anonymous", recipientUpdate.isAnonymous);
2744
+ writer.writeStringValue("label", recipientUpdate.label);
2745
+ writer.writeDateValue("last_activity_at", recipientUpdate.lastActivityAt);
2746
+ writer.writeStringValue("link", recipientUpdate.link);
2747
+ writer.writeStringValue("phone", recipientUpdate.phone);
2748
+ writer.writeNumberValue("response_count", recipientUpdate.responseCount);
2749
+ writer.writeEnumValue("status", recipientUpdate.status);
2750
+ writer.writeStringValue("token", recipientUpdate.token);
2751
+ writer.writeNumberValue("total_questions", recipientUpdate.totalQuestions);
2752
+ writer.writeNumberValue("visit_count", recipientUpdate.visitCount);
2753
+ writer.writeAdditionalData(recipientUpdate.additionalData);
2754
+ }
1203
2755
  /**
1204
2756
  * Serializes information the current object
1205
2757
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -1239,6 +2791,7 @@ export function serializeSigner(writer, signer = {}, isSerializingDerivedType =
1239
2791
  writer.writeStringValue("link", signer.link);
1240
2792
  writer.writeStringValue("name", signer.name);
1241
2793
  writer.writeNumberValue("order", signer.order);
2794
+ writer.writeStringValue("phone", signer.phone);
1242
2795
  writer.writeStringValue("role", signer.role);
1243
2796
  writer.writeEnumValue("status", signer.status);
1244
2797
  writer.writeGuidValue("submissionId", signer.submissionId);
@@ -1316,6 +2869,97 @@ export function serializeSignerRole(writer, signerRole = {}, isSerializingDerive
1316
2869
  writer.writeStringValue("role", signerRole.role);
1317
2870
  writer.writeAdditionalData(signerRole.additionalData);
1318
2871
  }
2872
+ /**
2873
+ * Serializes information the current object
2874
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
2875
+ * @param SignerUpdate The instance to serialize from.
2876
+ * @param writer Serialization writer to use to serialize this model
2877
+ */
2878
+ // @ts-ignore
2879
+ export function serializeSignerUpdate(writer, signerUpdate = {}, isSerializingDerivedType = false) {
2880
+ if (!signerUpdate || isSerializingDerivedType) {
2881
+ return;
2882
+ }
2883
+ writer.writeStringValue("color", signerUpdate.color);
2884
+ writer.writeDateValue("completedAt", signerUpdate.completedAt);
2885
+ writer.writeDateValue("createdAt", signerUpdate.createdAt);
2886
+ writer.writeGuidValue("documentId", signerUpdate.documentId);
2887
+ writer.writeStringValue("email", signerUpdate.email);
2888
+ writer.writeDateValue("expiresAt", signerUpdate.expiresAt);
2889
+ writer.writeGuidValue("id", signerUpdate.id);
2890
+ writer.writeStringValue("label", signerUpdate.label);
2891
+ writer.writeStringValue("name", signerUpdate.name);
2892
+ writer.writeNumberValue("order", signerUpdate.order);
2893
+ writer.writeStringValue("phone", signerUpdate.phone);
2894
+ writer.writeStringValue("role", signerUpdate.role);
2895
+ writer.writeEnumValue("status", signerUpdate.status);
2896
+ writer.writeGuidValue("submissionId", signerUpdate.submissionId);
2897
+ writer.writeAdditionalData(signerUpdate.additionalData);
2898
+ }
2899
+ /**
2900
+ * Serializes information the current object
2901
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
2902
+ * @param StartDocumentParseJobBody The instance to serialize from.
2903
+ * @param writer Serialization writer to use to serialize this model
2904
+ */
2905
+ // @ts-ignore
2906
+ export function serializeStartDocumentParseJobBody(writer, startDocumentParseJobBody = {}, isSerializingDerivedType = false) {
2907
+ if (!startDocumentParseJobBody || isSerializingDerivedType) {
2908
+ return;
2909
+ }
2910
+ writer.writeEnumValue("applyMode", startDocumentParseJobBody.applyMode ?? StartDocumentParseJobBody_applyModeObject.Draft);
2911
+ writer.writeBooleanValue("confirmAiParse", startDocumentParseJobBody.confirmAiParse);
2912
+ writer.writeAdditionalData(startDocumentParseJobBody.additionalData);
2913
+ }
2914
+ /**
2915
+ * Serializes information the current object
2916
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
2917
+ * @param StartDocumentParseJobResponse The instance to serialize from.
2918
+ * @param writer Serialization writer to use to serialize this model
2919
+ */
2920
+ // @ts-ignore
2921
+ export function serializeStartDocumentParseJobResponse(writer, startDocumentParseJobResponse = {}, isSerializingDerivedType = false) {
2922
+ if (!startDocumentParseJobResponse || isSerializingDerivedType) {
2923
+ return;
2924
+ }
2925
+ writer.writeObjectValue("data", startDocumentParseJobResponse.data, serializeStartDocumentParseJobResponse_data);
2926
+ writer.writeObjectValue("meta", startDocumentParseJobResponse.meta, serializeStartDocumentParseJobResponse_meta);
2927
+ writer.writeBooleanValue("success", startDocumentParseJobResponse.success);
2928
+ writer.writeAdditionalData(startDocumentParseJobResponse.additionalData);
2929
+ }
2930
+ /**
2931
+ * Serializes information the current object
2932
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
2933
+ * @param StartDocumentParseJobResponse_data The instance to serialize from.
2934
+ * @param writer Serialization writer to use to serialize this model
2935
+ */
2936
+ // @ts-ignore
2937
+ export function serializeStartDocumentParseJobResponse_data(writer, startDocumentParseJobResponse_data = {}, isSerializingDerivedType = false) {
2938
+ if (!startDocumentParseJobResponse_data || isSerializingDerivedType) {
2939
+ return;
2940
+ }
2941
+ writer.writeGuidValue("documentId", startDocumentParseJobResponse_data.documentId);
2942
+ writer.writeGuidValue("parseJobId", startDocumentParseJobResponse_data.parseJobId);
2943
+ writer.writeNumberValue("pollAfterMs", startDocumentParseJobResponse_data.pollAfterMs);
2944
+ writer.writeEnumValue("status", startDocumentParseJobResponse_data.status);
2945
+ writer.writeAdditionalData(startDocumentParseJobResponse_data.additionalData);
2946
+ }
2947
+ /**
2948
+ * Serializes information the current object
2949
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
2950
+ * @param StartDocumentParseJobResponse_meta The instance to serialize from.
2951
+ * @param writer Serialization writer to use to serialize this model
2952
+ */
2953
+ // @ts-ignore
2954
+ export function serializeStartDocumentParseJobResponse_meta(writer, startDocumentParseJobResponse_meta = {}, isSerializingDerivedType = false) {
2955
+ if (!startDocumentParseJobResponse_meta || isSerializingDerivedType) {
2956
+ return;
2957
+ }
2958
+ writer.writeNumberValue("limit", startDocumentParseJobResponse_meta.limit);
2959
+ writer.writeNumberValue("page", startDocumentParseJobResponse_meta.page);
2960
+ writer.writeNumberValue("total", startDocumentParseJobResponse_meta.total);
2961
+ writer.writeAdditionalData(startDocumentParseJobResponse_meta.additionalData);
2962
+ }
1319
2963
  /**
1320
2964
  * Serializes information the current object
1321
2965
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -1330,6 +2974,7 @@ export function serializeSubmissionPdf(writer, submissionPdf = {}, isSerializing
1330
2974
  writer.writeDateValue("completedAt", submissionPdf.completedAt);
1331
2975
  writer.writeStringValue("downloadUrl", submissionPdf.downloadUrl);
1332
2976
  writer.writeNumberValue("expiresIn", submissionPdf.expiresIn);
2977
+ writer.writeObjectValue("file", submissionPdf.file, serializeFileDescriptor);
1333
2978
  writer.writeGuidValue("submissionId", submissionPdf.submissionId);
1334
2979
  writer.writeAdditionalData(submissionPdf.additionalData);
1335
2980
  }
@@ -1360,6 +3005,7 @@ export function serializeUpdateRecipientBody(writer, updateRecipientBody = {}, i
1360
3005
  if (!updateRecipientBody || isSerializingDerivedType) {
1361
3006
  return;
1362
3007
  }
3008
+ writer.writeBooleanValue("clearPhone", updateRecipientBody.clearPhone);
1363
3009
  writer.writeStringValue("email", updateRecipientBody.email);
1364
3010
  writer.writeDateValue("expires_at", updateRecipientBody.expiresAt);
1365
3011
  writer.writeBooleanValue("is_active", updateRecipientBody.isActive);
@@ -1410,6 +3056,29 @@ export function serializeUpdateSectionBody(writer, updateSectionBody = {}, isSer
1410
3056
  writer.writeStringValue("title", updateSectionBody.title);
1411
3057
  writer.writeAdditionalData(updateSectionBody.additionalData);
1412
3058
  }
3059
+ /**
3060
+ * Serializes information the current object
3061
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
3062
+ * @param UpdateSignerBody The instance to serialize from.
3063
+ * @param writer Serialization writer to use to serialize this model
3064
+ */
3065
+ // @ts-ignore
3066
+ export function serializeUpdateSignerBody(writer, updateSignerBody = {}, isSerializingDerivedType = false) {
3067
+ if (!updateSignerBody || isSerializingDerivedType) {
3068
+ return;
3069
+ }
3070
+ writer.writeBooleanValue("clearPhone", updateSignerBody.clearPhone);
3071
+ writer.writeStringValue("color", updateSignerBody.color);
3072
+ writer.writeStringValue("email", updateSignerBody.email);
3073
+ writer.writeDateValue("expiresAt", updateSignerBody.expiresAt);
3074
+ writer.writeStringValue("label", updateSignerBody.label);
3075
+ writer.writeStringValue("name", updateSignerBody.name);
3076
+ writer.writeNumberValue("order", updateSignerBody.order);
3077
+ writer.writeStringValue("password", updateSignerBody.password);
3078
+ writer.writeStringValue("phone", updateSignerBody.phone);
3079
+ writer.writeStringValue("role", updateSignerBody.role);
3080
+ writer.writeAdditionalData(updateSignerBody.additionalData);
3081
+ }
1413
3082
  /**
1414
3083
  * Serializes information the current object
1415
3084
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -1437,6 +3106,24 @@ export function serializeUpdateSignerResponsesBody_responses(writer, updateSigne
1437
3106
  }
1438
3107
  writer.writeAdditionalData(updateSignerResponsesBody_responses.additionalData);
1439
3108
  }
3109
+ /**
3110
+ * Serializes information the current object
3111
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
3112
+ * @param ValidationError The instance to serialize from.
3113
+ * @param writer Serialization writer to use to serialize this model
3114
+ */
3115
+ // @ts-ignore
3116
+ export function serializeValidationError(writer, validationError = {}, isSerializingDerivedType = false) {
3117
+ if (!validationError || isSerializingDerivedType) {
3118
+ return;
3119
+ }
3120
+ writer.writeStringValue("code", validationError.code);
3121
+ writer.writeObjectValue("details", validationError.details, serializePhoneValidationDetails);
3122
+ writer.writeStringValue("error", validationError.errorEscaped);
3123
+ writer.writeStringValue("hint", validationError.hint);
3124
+ writer.writeBooleanValue("success", validationError.success);
3125
+ writer.writeAdditionalData(validationError.additionalData);
3126
+ }
1440
3127
  export const CreateFieldBody_directionObject = {
1441
3128
  Auto: "auto",
1442
3129
  Rtl: "rtl",
@@ -1457,6 +3144,7 @@ export const CreateFieldBody_typeObject = {
1457
3144
  Email: "email",
1458
3145
  Phone: "phone",
1459
3146
  Initials: "initials",
3147
+ Calculation: "calculation",
1460
3148
  };
1461
3149
  export const CreateQuestionBody_priorityObject = {
1462
3150
  Low: "low",
@@ -1495,11 +3183,36 @@ export const CreateQuestionBody_typeObject = {
1495
3183
  Calculation: "calculation",
1496
3184
  Payment: "payment",
1497
3185
  };
3186
+ /**
3187
+ * Signing experience used by generated links. Defaults to the document signing view.
3188
+ */
3189
+ export const CreateSubmissionBody_deliveryFormatObject = {
3190
+ Document: "document",
3191
+ Form: "form",
3192
+ };
3193
+ export const DetectedDocumentField_typeObject = {
3194
+ Short_text: "short_text",
3195
+ Long_text: "long_text",
3196
+ Mcq: "mcq",
3197
+ Multi_select: "multi_select",
3198
+ Rating: "rating",
3199
+ Date: "date",
3200
+ Number: "number",
3201
+ Yes_no: "yes_no",
3202
+ File_upload: "file_upload",
3203
+ Dropdown: "dropdown",
3204
+ Digital_signature: "digital_signature",
3205
+ Email: "email",
3206
+ Phone: "phone",
3207
+ Initials: "initials",
3208
+ Calculation: "calculation",
3209
+ };
1498
3210
  export const Document_statusObject = {
1499
3211
  Draft: "draft",
1500
3212
  Published: "published",
1501
3213
  Completed: "completed",
1502
3214
  Expired: "expired",
3215
+ Voided: "voided",
1503
3216
  };
1504
3217
  export const DocumentField_directionObject = {
1505
3218
  Auto: "auto",
@@ -1521,17 +3234,58 @@ export const DocumentField_typeObject = {
1521
3234
  Email: "email",
1522
3235
  Phone: "phone",
1523
3236
  Initials: "initials",
3237
+ Calculation: "calculation",
3238
+ };
3239
+ export const DocumentNotEditableConflict_codeObject = {
3240
+ Document_not_editable: "document_not_editable",
3241
+ };
3242
+ export const DocumentSubmission_signedPdf_authorizationObject = {
3243
+ BearerFormalingoAPIKey: "Bearer Formalingo API key",
3244
+ };
3245
+ export const DocumentSubmission_signedPdf_downloadMethodObject = {
3246
+ GET: "GET",
1524
3247
  };
1525
3248
  export const DocumentSubmission_statusObject = {
1526
3249
  Pending: "pending",
1527
3250
  In_progress: "in_progress",
1528
3251
  Completed: "completed",
1529
3252
  };
3253
+ export const FileDescriptor_authorizationObject = {
3254
+ BearerFormalingoAPIKey: "Bearer Formalingo API key",
3255
+ };
3256
+ export const FileDescriptor_downloadMethodObject = {
3257
+ GET: "GET",
3258
+ };
1530
3259
  export const Form_statusObject = {
1531
3260
  Draft: "draft",
1532
3261
  Published: "published",
1533
3262
  Archived: "archived",
1534
3263
  };
3264
+ export const GetDocumentParseJobResponse_data_applyModeObject = {
3265
+ Draft: "draft",
3266
+ Preview: "preview",
3267
+ };
3268
+ export const GetDocumentParseJobResponse_data_statusObject = {
3269
+ Pending: "pending",
3270
+ Processing: "processing",
3271
+ Completed: "completed",
3272
+ Failed: "failed",
3273
+ };
3274
+ export const ImportDocumentBundleResponse_data_generationTypeObject = {
3275
+ Uploaded: "uploaded",
3276
+ Generated: "generated",
3277
+ };
3278
+ export const ImportDocumentBundleResponse_data_statusObject = {
3279
+ Draft: "draft",
3280
+ };
3281
+ /**
3282
+ * Stable phone-normalization failure code.
3283
+ */
3284
+ export const PhoneValidationDetails_codeObject = {
3285
+ Missing_default_country: "missing_default_country",
3286
+ Invalid_country: "invalid_country",
3287
+ Invalid_phone: "invalid_phone",
3288
+ };
1535
3289
  export const Question_priorityObject = {
1536
3290
  Low: "low",
1537
3291
  Medium: "medium",
@@ -1569,16 +3323,52 @@ export const Question_typeObject = {
1569
3323
  Calculation: "calculation",
1570
3324
  Payment: "payment",
1571
3325
  };
3326
+ /**
3327
+ * The requested operation would exceed a workspace plan limit.
3328
+ */
3329
+ export const QuotaExceededError_codeObject = {
3330
+ Quota_exceeded: "quota_exceeded",
3331
+ };
1572
3332
  export const Recipient_statusObject = {
1573
3333
  Not_started: "not_started",
1574
3334
  In_progress: "in_progress",
1575
3335
  Completed: "completed",
1576
3336
  };
3337
+ export const RecipientBulkCreateResult_statusObject = {
3338
+ Not_started: "not_started",
3339
+ In_progress: "in_progress",
3340
+ Completed: "completed",
3341
+ };
3342
+ export const RecipientCreateResult_statusObject = {
3343
+ Not_started: "not_started",
3344
+ In_progress: "in_progress",
3345
+ Completed: "completed",
3346
+ };
3347
+ export const RecipientUpdate_statusObject = {
3348
+ Not_started: "not_started",
3349
+ In_progress: "in_progress",
3350
+ Completed: "completed",
3351
+ };
1577
3352
  export const Signer_statusObject = {
1578
3353
  Pending: "pending",
1579
3354
  Viewed: "viewed",
1580
3355
  Completed: "completed",
1581
3356
  };
3357
+ export const SignerUpdate_statusObject = {
3358
+ Pending: "pending",
3359
+ Viewed: "viewed",
3360
+ Completed: "completed",
3361
+ };
3362
+ export const StartDocumentParseJobBody_applyModeObject = {
3363
+ Draft: "draft",
3364
+ Preview: "preview",
3365
+ };
3366
+ export const StartDocumentParseJobResponse_data_statusObject = {
3367
+ Pending: "pending",
3368
+ Processing: "processing",
3369
+ Completed: "completed",
3370
+ Failed: "failed",
3371
+ };
1582
3372
  export const UpdateFormBody_statusObject = {
1583
3373
  Draft: "draft",
1584
3374
  Published: "published",