@formalingo/sdk 0.1.0 → 0.1.1

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 (94) hide show
  1. package/README.md +214 -0
  2. package/dist/client/api/index.d.ts +20 -0
  3. package/dist/client/api/index.d.ts.map +1 -0
  4. package/dist/client/api/index.js +20 -0
  5. package/dist/client/api/index.js.map +1 -0
  6. package/dist/client/api/v1/documents/index.d.ts +163 -0
  7. package/dist/client/api/v1/documents/index.d.ts.map +1 -0
  8. package/dist/client/api/v1/documents/index.js +164 -0
  9. package/dist/client/api/v1/documents/index.js.map +1 -0
  10. package/dist/client/api/v1/documents/item/fields/index.d.ts +111 -0
  11. package/dist/client/api/v1/documents/item/fields/index.d.ts.map +1 -0
  12. package/dist/client/api/v1/documents/item/fields/index.js +115 -0
  13. package/dist/client/api/v1/documents/item/fields/index.js.map +1 -0
  14. package/dist/client/api/v1/documents/item/fields/item/index.d.ts +221 -0
  15. package/dist/client/api/v1/documents/item/fields/item/index.d.ts.map +1 -0
  16. package/dist/client/api/v1/documents/item/fields/item/index.js +218 -0
  17. package/dist/client/api/v1/documents/item/fields/item/index.js.map +1 -0
  18. package/dist/client/api/v1/documents/item/index.d.ts +207 -0
  19. package/dist/client/api/v1/documents/item/index.d.ts.map +1 -0
  20. package/dist/client/api/v1/documents/item/index.js +217 -0
  21. package/dist/client/api/v1/documents/item/index.js.map +1 -0
  22. package/dist/client/api/v1/documents/item/signerRoles/index.d.ts +111 -0
  23. package/dist/client/api/v1/documents/item/signerRoles/index.d.ts.map +1 -0
  24. package/dist/client/api/v1/documents/item/signerRoles/index.js +115 -0
  25. package/dist/client/api/v1/documents/item/signerRoles/index.js.map +1 -0
  26. package/dist/client/api/v1/documents/item/signerRoles/item/index.d.ts +56 -0
  27. package/dist/client/api/v1/documents/item/signerRoles/item/index.d.ts.map +1 -0
  28. package/dist/client/api/v1/documents/item/signerRoles/item/index.js +59 -0
  29. package/dist/client/api/v1/documents/item/signerRoles/item/index.js.map +1 -0
  30. package/dist/client/api/v1/documents/item/submissions/index.d.ts +111 -0
  31. package/dist/client/api/v1/documents/item/submissions/index.d.ts.map +1 -0
  32. package/dist/client/api/v1/documents/item/submissions/index.js +116 -0
  33. package/dist/client/api/v1/documents/item/submissions/index.js.map +1 -0
  34. package/dist/client/api/v1/documents/item/submissions/item/index.d.ts +65 -0
  35. package/dist/client/api/v1/documents/item/submissions/item/index.d.ts.map +1 -0
  36. package/dist/client/api/v1/documents/item/submissions/item/index.js +70 -0
  37. package/dist/client/api/v1/documents/item/submissions/item/index.js.map +1 -0
  38. package/dist/client/api/v1/documents/item/submissions/item/signers/index.d.ts +68 -0
  39. package/dist/client/api/v1/documents/item/submissions/item/signers/index.d.ts.map +1 -0
  40. package/dist/client/api/v1/documents/item/submissions/item/signers/index.js +70 -0
  41. package/dist/client/api/v1/documents/item/submissions/item/signers/index.js.map +1 -0
  42. package/dist/client/api/v1/documents/item/submissions/item/signers/item/index.d.ts +137 -0
  43. package/dist/client/api/v1/documents/item/submissions/item/signers/item/index.d.ts.map +1 -0
  44. package/dist/client/api/v1/documents/item/submissions/item/signers/item/index.js +146 -0
  45. package/dist/client/api/v1/documents/item/submissions/item/signers/item/index.js.map +1 -0
  46. package/dist/client/api/v1/forms/index.d.ts +231 -0
  47. package/dist/client/api/v1/forms/index.d.ts.map +1 -0
  48. package/dist/client/api/v1/forms/index.js +244 -0
  49. package/dist/client/api/v1/forms/index.js.map +1 -0
  50. package/dist/client/api/v1/forms/item/index.d.ts +241 -0
  51. package/dist/client/api/v1/forms/item/index.d.ts.map +1 -0
  52. package/dist/client/api/v1/forms/item/index.js +261 -0
  53. package/dist/client/api/v1/forms/item/index.js.map +1 -0
  54. package/dist/client/api/v1/forms/item/questions/index.d.ts +111 -0
  55. package/dist/client/api/v1/forms/item/questions/index.d.ts.map +1 -0
  56. package/dist/client/api/v1/forms/item/questions/index.js +115 -0
  57. package/dist/client/api/v1/forms/item/questions/index.js.map +1 -0
  58. package/dist/client/api/v1/forms/item/questions/item/index.d.ts +196 -0
  59. package/dist/client/api/v1/forms/item/questions/item/index.d.ts.map +1 -0
  60. package/dist/client/api/v1/forms/item/questions/item/index.js +193 -0
  61. package/dist/client/api/v1/forms/item/questions/item/index.js.map +1 -0
  62. package/dist/client/api/v1/forms/item/recipients/index.d.ts +111 -0
  63. package/dist/client/api/v1/forms/item/recipients/index.d.ts.map +1 -0
  64. package/dist/client/api/v1/forms/item/recipients/index.js +115 -0
  65. package/dist/client/api/v1/forms/item/recipients/index.js.map +1 -0
  66. package/dist/client/api/v1/forms/item/recipients/item/index.d.ts +100 -0
  67. package/dist/client/api/v1/forms/item/recipients/item/index.d.ts.map +1 -0
  68. package/dist/client/api/v1/forms/item/recipients/item/index.js +106 -0
  69. package/dist/client/api/v1/forms/item/recipients/item/index.js.map +1 -0
  70. package/dist/client/api/v1/forms/item/sections/index.d.ts +111 -0
  71. package/dist/client/api/v1/forms/item/sections/index.d.ts.map +1 -0
  72. package/dist/client/api/v1/forms/item/sections/index.js +115 -0
  73. package/dist/client/api/v1/forms/item/sections/index.js.map +1 -0
  74. package/dist/client/api/v1/forms/item/sections/item/index.d.ts +100 -0
  75. package/dist/client/api/v1/forms/item/sections/item/index.d.ts.map +1 -0
  76. package/dist/client/api/v1/forms/item/sections/item/index.js +106 -0
  77. package/dist/client/api/v1/forms/item/sections/item/index.js.map +1 -0
  78. package/dist/client/api/v1/index.d.ts +25 -0
  79. package/dist/client/api/v1/index.d.ts.map +1 -0
  80. package/dist/client/api/v1/index.js +27 -0
  81. package/dist/client/api/v1/index.js.map +1 -0
  82. package/dist/client/formalingoClient.d.ts +20 -7
  83. package/dist/client/formalingoClient.d.ts.map +1 -1
  84. package/dist/client/formalingoClient.js +56 -2
  85. package/dist/client/formalingoClient.js.map +1 -1
  86. package/dist/client/models/index.d.ts +1376 -0
  87. package/dist/client/models/index.d.ts.map +1 -0
  88. package/dist/client/models/index.js +1333 -0
  89. package/dist/client/models/index.js.map +1 -0
  90. package/dist/index.d.ts +8 -2
  91. package/dist/index.d.ts.map +1 -1
  92. package/dist/index.js +11 -4
  93. package/dist/index.js.map +1 -1
  94. package/package.json +1 -1
@@ -0,0 +1,1333 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated by Microsoft Kiota
4
+ // @ts-ignore
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 {CreateFieldBody_options}
10
+ */
11
+ // @ts-ignore
12
+ export function createCreateFieldBody_optionsFromDiscriminatorValue(parseNode) {
13
+ return deserializeIntoCreateFieldBody_options;
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 {CreateFieldBody}
19
+ */
20
+ // @ts-ignore
21
+ export function createCreateFieldBodyFromDiscriminatorValue(parseNode) {
22
+ return deserializeIntoCreateFieldBody;
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 {CreateFormBody}
28
+ */
29
+ // @ts-ignore
30
+ export function createCreateFormBodyFromDiscriminatorValue(parseNode) {
31
+ return deserializeIntoCreateFormBody;
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 {CreateQuestionBody}
37
+ */
38
+ // @ts-ignore
39
+ export function createCreateQuestionBodyFromDiscriminatorValue(parseNode) {
40
+ return deserializeIntoCreateQuestionBody;
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 {CreateRecipientBody_prefill}
46
+ */
47
+ // @ts-ignore
48
+ export function createCreateRecipientBody_prefillFromDiscriminatorValue(parseNode) {
49
+ return deserializeIntoCreateRecipientBody_prefill;
50
+ }
51
+ /**
52
+ * Creates a new instance of the appropriate class based on discriminator value
53
+ * @param parseNode The parse node to use to read the discriminator value and create the object
54
+ * @returns {CreateRecipientBody}
55
+ */
56
+ // @ts-ignore
57
+ export function createCreateRecipientBodyFromDiscriminatorValue(parseNode) {
58
+ return deserializeIntoCreateRecipientBody;
59
+ }
60
+ /**
61
+ * Creates a new instance of the appropriate class based on discriminator value
62
+ * @param parseNode The parse node to use to read the discriminator value and create the object
63
+ * @returns {CreateSectionBody}
64
+ */
65
+ // @ts-ignore
66
+ export function createCreateSectionBodyFromDiscriminatorValue(parseNode) {
67
+ return deserializeIntoCreateSectionBody;
68
+ }
69
+ /**
70
+ * Creates a new instance of the appropriate class based on discriminator value
71
+ * @param parseNode The parse node to use to read the discriminator value and create the object
72
+ * @returns {CreateSignerRoleBody}
73
+ */
74
+ // @ts-ignore
75
+ export function createCreateSignerRoleBodyFromDiscriminatorValue(parseNode) {
76
+ return deserializeIntoCreateSignerRoleBody;
77
+ }
78
+ /**
79
+ * Creates a new instance of the appropriate class based on discriminator value
80
+ * @param parseNode The parse node to use to read the discriminator value and create the object
81
+ * @returns {CreateSubmissionBody}
82
+ */
83
+ // @ts-ignore
84
+ export function createCreateSubmissionBodyFromDiscriminatorValue(parseNode) {
85
+ return deserializeIntoCreateSubmissionBody;
86
+ }
87
+ /**
88
+ * Creates a new instance of the appropriate class based on discriminator value
89
+ * @param parseNode The parse node to use to read the discriminator value and create the object
90
+ * @returns {Document_pageDimensions}
91
+ */
92
+ // @ts-ignore
93
+ export function createDocument_pageDimensionsFromDiscriminatorValue(parseNode) {
94
+ return deserializeIntoDocument_pageDimensions;
95
+ }
96
+ /**
97
+ * Creates a new instance of the appropriate class based on discriminator value
98
+ * @param parseNode The parse node to use to read the discriminator value and create the object
99
+ * @returns {DocumentField_options}
100
+ */
101
+ // @ts-ignore
102
+ export function createDocumentField_optionsFromDiscriminatorValue(parseNode) {
103
+ return deserializeIntoDocumentField_options;
104
+ }
105
+ /**
106
+ * Creates a new instance of the appropriate class based on discriminator value
107
+ * @param parseNode The parse node to use to read the discriminator value and create the object
108
+ * @returns {DocumentField}
109
+ */
110
+ // @ts-ignore
111
+ export function createDocumentFieldFromDiscriminatorValue(parseNode) {
112
+ return deserializeIntoDocumentField;
113
+ }
114
+ /**
115
+ * Creates a new instance of the appropriate class based on discriminator value
116
+ * @param parseNode The parse node to use to read the discriminator value and create the object
117
+ * @returns {Document}
118
+ */
119
+ // @ts-ignore
120
+ export function createDocumentFromDiscriminatorValue(parseNode) {
121
+ return deserializeIntoDocument;
122
+ }
123
+ /**
124
+ * Creates a new instance of the appropriate class based on discriminator value
125
+ * @param parseNode The parse node to use to read the discriminator value and create the object
126
+ * @returns {DocumentSubmission}
127
+ */
128
+ // @ts-ignore
129
+ export function createDocumentSubmissionFromDiscriminatorValue(parseNode) {
130
+ return deserializeIntoDocumentSubmission;
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 {Form_branding}
136
+ */
137
+ // @ts-ignore
138
+ export function createForm_brandingFromDiscriminatorValue(parseNode) {
139
+ return deserializeIntoForm_branding;
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 {Form_settings}
145
+ */
146
+ // @ts-ignore
147
+ export function createForm_settingsFromDiscriminatorValue(parseNode) {
148
+ return deserializeIntoForm_settings;
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 {Form}
154
+ */
155
+ // @ts-ignore
156
+ export function createFormFromDiscriminatorValue(parseNode) {
157
+ return deserializeIntoForm;
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 {Question}
163
+ */
164
+ // @ts-ignore
165
+ export function createQuestionFromDiscriminatorValue(parseNode) {
166
+ return deserializeIntoQuestion;
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 {Recipient}
172
+ */
173
+ // @ts-ignore
174
+ export function createRecipientFromDiscriminatorValue(parseNode) {
175
+ return deserializeIntoRecipient;
176
+ }
177
+ /**
178
+ * Creates a new instance of the appropriate class based on discriminator value
179
+ * @param parseNode The parse node to use to read the discriminator value and create the object
180
+ * @returns {Section}
181
+ */
182
+ // @ts-ignore
183
+ export function createSectionFromDiscriminatorValue(parseNode) {
184
+ return deserializeIntoSection;
185
+ }
186
+ /**
187
+ * Creates a new instance of the appropriate class based on discriminator value
188
+ * @param parseNode The parse node to use to read the discriminator value and create the object
189
+ * @returns {Signer}
190
+ */
191
+ // @ts-ignore
192
+ export function createSignerFromDiscriminatorValue(parseNode) {
193
+ return deserializeIntoSigner;
194
+ }
195
+ /**
196
+ * Creates a new instance of the appropriate class based on discriminator value
197
+ * @param parseNode The parse node to use to read the discriminator value and create the object
198
+ * @returns {SignerInput_prefill}
199
+ */
200
+ // @ts-ignore
201
+ export function createSignerInput_prefillFromDiscriminatorValue(parseNode) {
202
+ return deserializeIntoSignerInput_prefill;
203
+ }
204
+ /**
205
+ * Creates a new instance of the appropriate class based on discriminator value
206
+ * @param parseNode The parse node to use to read the discriminator value and create the object
207
+ * @returns {SignerInput}
208
+ */
209
+ // @ts-ignore
210
+ export function createSignerInputFromDiscriminatorValue(parseNode) {
211
+ return deserializeIntoSignerInput;
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 {SignerRole}
217
+ */
218
+ // @ts-ignore
219
+ export function createSignerRoleFromDiscriminatorValue(parseNode) {
220
+ return deserializeIntoSignerRole;
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 {UpdateFormBody}
226
+ */
227
+ // @ts-ignore
228
+ export function createUpdateFormBodyFromDiscriminatorValue(parseNode) {
229
+ return deserializeIntoUpdateFormBody;
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 {UpdateRecipientBody}
235
+ */
236
+ // @ts-ignore
237
+ export function createUpdateRecipientBodyFromDiscriminatorValue(parseNode) {
238
+ return deserializeIntoUpdateRecipientBody;
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 {UpdateSectionBody}
244
+ */
245
+ // @ts-ignore
246
+ export function createUpdateSectionBodyFromDiscriminatorValue(parseNode) {
247
+ return deserializeIntoUpdateSectionBody;
248
+ }
249
+ /**
250
+ * The deserialization information for the current model
251
+ * @param CreateFieldBody The instance to deserialize into.
252
+ * @returns {Record<string, (node: ParseNode) => void>}
253
+ */
254
+ // @ts-ignore
255
+ export function deserializeIntoCreateFieldBody(createFieldBody = {}) {
256
+ return {
257
+ "assigneeRole": n => { createFieldBody.assigneeRole = n.getStringValue(); },
258
+ "defaultValue": n => { createFieldBody.defaultValue = n.getStringValue(); },
259
+ "direction": n => { createFieldBody.direction = n.getEnumValue(CreateFieldBody_directionObject) ?? CreateFieldBody_directionObject.Auto; },
260
+ "height": n => { createFieldBody.height = n.getNumberValue(); },
261
+ "isReadOnly": n => { createFieldBody.isReadOnly = n.getBooleanValue(); },
262
+ "isRequired": n => { createFieldBody.isRequired = n.getBooleanValue(); },
263
+ "label": n => { createFieldBody.label = n.getStringValue(); },
264
+ "options": n => { createFieldBody.options = n.getObjectValue(createCreateFieldBody_optionsFromDiscriminatorValue); },
265
+ "order": n => { createFieldBody.order = n.getNumberValue(); },
266
+ "pageNumber": n => { createFieldBody.pageNumber = n.getNumberValue(); },
267
+ "type": n => { createFieldBody.type = n.getEnumValue(CreateFieldBody_typeObject); },
268
+ "width": n => { createFieldBody.width = n.getNumberValue(); },
269
+ "x": n => { createFieldBody.x = n.getNumberValue(); },
270
+ "y": n => { createFieldBody.y = n.getNumberValue(); },
271
+ };
272
+ }
273
+ /**
274
+ * The deserialization information for the current model
275
+ * @param CreateFieldBody_options The instance to deserialize into.
276
+ * @returns {Record<string, (node: ParseNode) => void>}
277
+ */
278
+ // @ts-ignore
279
+ export function deserializeIntoCreateFieldBody_options(createFieldBody_options = {}) {
280
+ return {};
281
+ }
282
+ /**
283
+ * The deserialization information for the current model
284
+ * @param CreateFormBody The instance to deserialize into.
285
+ * @returns {Record<string, (node: ParseNode) => void>}
286
+ */
287
+ // @ts-ignore
288
+ export function deserializeIntoCreateFormBody(createFormBody = {}) {
289
+ return {
290
+ "description": n => { createFormBody.description = n.getStringValue(); },
291
+ "title": n => { createFormBody.title = n.getStringValue(); },
292
+ };
293
+ }
294
+ /**
295
+ * The deserialization information for the current model
296
+ * @param CreateQuestionBody The instance to deserialize into.
297
+ * @returns {Record<string, (node: ParseNode) => void>}
298
+ */
299
+ // @ts-ignore
300
+ export function deserializeIntoCreateQuestionBody(createQuestionBody = {}) {
301
+ return {
302
+ "context": n => { createQuestionBody.context = n.getStringValue(); },
303
+ "is_pii": n => { createQuestionBody.isPii = n.getBooleanValue(); },
304
+ "is_required": n => { createQuestionBody.isRequired = n.getBooleanValue(); },
305
+ "options": n => { createQuestionBody.options = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
306
+ "order": n => { createQuestionBody.order = n.getNumberValue(); },
307
+ "priority": n => { createQuestionBody.priority = n.getEnumValue(CreateQuestionBody_priorityObject) ?? CreateQuestionBody_priorityObject.Low; },
308
+ "question_text": n => { createQuestionBody.questionText = n.getStringValue(); },
309
+ "section_id": n => { createQuestionBody.sectionId = n.getGuidValue(); },
310
+ "type": n => { createQuestionBody.type = n.getEnumValue(CreateQuestionBody_typeObject); },
311
+ };
312
+ }
313
+ /**
314
+ * The deserialization information for the current model
315
+ * @param CreateRecipientBody The instance to deserialize into.
316
+ * @returns {Record<string, (node: ParseNode) => void>}
317
+ */
318
+ // @ts-ignore
319
+ export function deserializeIntoCreateRecipientBody(createRecipientBody = {}) {
320
+ return {
321
+ "email": n => { createRecipientBody.email = n.getStringValue(); },
322
+ "expires_at": n => { createRecipientBody.expiresAt = n.getDateValue(); },
323
+ "label": n => { createRecipientBody.label = n.getStringValue(); },
324
+ "password": n => { createRecipientBody.password = n.getStringValue(); },
325
+ "phone": n => { createRecipientBody.phone = n.getStringValue(); },
326
+ "prefill": n => { createRecipientBody.prefill = n.getObjectValue(createCreateRecipientBody_prefillFromDiscriminatorValue); },
327
+ };
328
+ }
329
+ /**
330
+ * The deserialization information for the current model
331
+ * @param CreateRecipientBody_prefill The instance to deserialize into.
332
+ * @returns {Record<string, (node: ParseNode) => void>}
333
+ */
334
+ // @ts-ignore
335
+ export function deserializeIntoCreateRecipientBody_prefill(createRecipientBody_prefill = {}) {
336
+ return {};
337
+ }
338
+ /**
339
+ * The deserialization information for the current model
340
+ * @param CreateSectionBody The instance to deserialize into.
341
+ * @returns {Record<string, (node: ParseNode) => void>}
342
+ */
343
+ // @ts-ignore
344
+ export function deserializeIntoCreateSectionBody(createSectionBody = {}) {
345
+ return {
346
+ "order": n => { createSectionBody.order = n.getNumberValue(); },
347
+ "title": n => { createSectionBody.title = n.getStringValue(); },
348
+ };
349
+ }
350
+ /**
351
+ * The deserialization information for the current model
352
+ * @param CreateSignerRoleBody The instance to deserialize into.
353
+ * @returns {Record<string, (node: ParseNode) => void>}
354
+ */
355
+ // @ts-ignore
356
+ export function deserializeIntoCreateSignerRoleBody(createSignerRoleBody = {}) {
357
+ return {
358
+ "label": n => { createSignerRoleBody.label = n.getStringValue(); },
359
+ };
360
+ }
361
+ /**
362
+ * The deserialization information for the current model
363
+ * @param CreateSubmissionBody The instance to deserialize into.
364
+ * @returns {Record<string, (node: ParseNode) => void>}
365
+ */
366
+ // @ts-ignore
367
+ export function deserializeIntoCreateSubmissionBody(createSubmissionBody = {}) {
368
+ return {
369
+ "signers": n => { createSubmissionBody.signers = n.getCollectionOfObjectValues(createSignerInputFromDiscriminatorValue); },
370
+ };
371
+ }
372
+ /**
373
+ * The deserialization information for the current model
374
+ * @param Document The instance to deserialize into.
375
+ * @returns {Record<string, (node: ParseNode) => void>}
376
+ */
377
+ // @ts-ignore
378
+ export function deserializeIntoDocument(document = {}) {
379
+ return {
380
+ "completedPdfUrl": n => { document.completedPdfUrl = n.getStringValue(); },
381
+ "createdAt": n => { document.createdAt = n.getDateValue(); },
382
+ "creatorId": n => { document.creatorId = n.getGuidValue(); },
383
+ "deletedAt": n => { document.deletedAt = n.getDateValue(); },
384
+ "fileType": n => { document.fileType = n.getStringValue(); },
385
+ "id": n => { document.id = n.getGuidValue(); },
386
+ "originalFilename": n => { document.originalFilename = n.getStringValue(); },
387
+ "originalUrl": n => { document.originalUrl = n.getStringValue(); },
388
+ "pageCount": n => { document.pageCount = n.getNumberValue(); },
389
+ "pageDimensions": n => { document.pageDimensions = n.getCollectionOfObjectValues(createDocument_pageDimensionsFromDiscriminatorValue); },
390
+ "status": n => { document.status = n.getEnumValue(Document_statusObject); },
391
+ "title": n => { document.title = n.getStringValue(); },
392
+ "updatedAt": n => { document.updatedAt = n.getDateValue(); },
393
+ "workspaceId": n => { document.workspaceId = n.getGuidValue(); },
394
+ };
395
+ }
396
+ /**
397
+ * The deserialization information for the current model
398
+ * @param Document_pageDimensions The instance to deserialize into.
399
+ * @returns {Record<string, (node: ParseNode) => void>}
400
+ */
401
+ // @ts-ignore
402
+ export function deserializeIntoDocument_pageDimensions(document_pageDimensions = {}) {
403
+ return {
404
+ "height": n => { document_pageDimensions.height = n.getNumberValue(); },
405
+ "width": n => { document_pageDimensions.width = n.getNumberValue(); },
406
+ };
407
+ }
408
+ /**
409
+ * The deserialization information for the current model
410
+ * @param DocumentField The instance to deserialize into.
411
+ * @returns {Record<string, (node: ParseNode) => void>}
412
+ */
413
+ // @ts-ignore
414
+ export function deserializeIntoDocumentField(documentField = {}) {
415
+ return {
416
+ "assigneeRole": n => { documentField.assigneeRole = n.getStringValue(); },
417
+ "createdAt": n => { documentField.createdAt = n.getDateValue(); },
418
+ "defaultValue": n => { documentField.defaultValue = n.getStringValue(); },
419
+ "direction": n => { documentField.direction = n.getEnumValue(DocumentField_directionObject); },
420
+ "documentId": n => { documentField.documentId = n.getGuidValue(); },
421
+ "height": n => { documentField.height = n.getNumberValue(); },
422
+ "id": n => { documentField.id = n.getGuidValue(); },
423
+ "isReadOnly": n => { documentField.isReadOnly = n.getBooleanValue(); },
424
+ "isRequired": n => { documentField.isRequired = n.getBooleanValue(); },
425
+ "label": n => { documentField.label = n.getStringValue(); },
426
+ "options": n => { documentField.options = n.getObjectValue(createDocumentField_optionsFromDiscriminatorValue); },
427
+ "order": n => { documentField.order = n.getNumberValue(); },
428
+ "pageNumber": n => { documentField.pageNumber = n.getNumberValue(); },
429
+ "type": n => { documentField.type = n.getEnumValue(DocumentField_typeObject); },
430
+ "width": n => { documentField.width = n.getNumberValue(); },
431
+ "x": n => { documentField.x = n.getNumberValue(); },
432
+ "y": n => { documentField.y = n.getNumberValue(); },
433
+ };
434
+ }
435
+ /**
436
+ * The deserialization information for the current model
437
+ * @param DocumentField_options The instance to deserialize into.
438
+ * @returns {Record<string, (node: ParseNode) => void>}
439
+ */
440
+ // @ts-ignore
441
+ export function deserializeIntoDocumentField_options(documentField_options = {}) {
442
+ return {};
443
+ }
444
+ /**
445
+ * The deserialization information for the current model
446
+ * @param DocumentSubmission The instance to deserialize into.
447
+ * @returns {Record<string, (node: ParseNode) => void>}
448
+ */
449
+ // @ts-ignore
450
+ export function deserializeIntoDocumentSubmission(documentSubmission = {}) {
451
+ return {
452
+ "completedAt": n => { documentSubmission.completedAt = n.getDateValue(); },
453
+ "completedPdfUrl": n => { documentSubmission.completedPdfUrl = n.getStringValue(); },
454
+ "createdAt": n => { documentSubmission.createdAt = n.getDateValue(); },
455
+ "documentId": n => { documentSubmission.documentId = n.getGuidValue(); },
456
+ "id": n => { documentSubmission.id = n.getGuidValue(); },
457
+ "signers": n => { documentSubmission.signers = n.getCollectionOfObjectValues(createSignerFromDiscriminatorValue); },
458
+ "status": n => { documentSubmission.status = n.getEnumValue(DocumentSubmission_statusObject); },
459
+ };
460
+ }
461
+ /**
462
+ * The deserialization information for the current model
463
+ * @param Form The instance to deserialize into.
464
+ * @returns {Record<string, (node: ParseNode) => void>}
465
+ */
466
+ // @ts-ignore
467
+ export function deserializeIntoForm(form = {}) {
468
+ return {
469
+ "branding": n => { form.branding = n.getObjectValue(createForm_brandingFromDiscriminatorValue); },
470
+ "createdAt": n => { form.createdAt = n.getDateValue(); },
471
+ "creatorId": n => { form.creatorId = n.getGuidValue(); },
472
+ "description": n => { form.description = n.getStringValue(); },
473
+ "id": n => { form.id = n.getGuidValue(); },
474
+ "publicToken": n => { form.publicToken = n.getStringValue(); },
475
+ "question_count": n => { form.questionCount = n.getNumberValue(); },
476
+ "settings": n => { form.settings = n.getObjectValue(createForm_settingsFromDiscriminatorValue); },
477
+ "status": n => { form.status = n.getEnumValue(Form_statusObject); },
478
+ "title": n => { form.title = n.getStringValue(); },
479
+ "updatedAt": n => { form.updatedAt = n.getDateValue(); },
480
+ "workspaceId": n => { form.workspaceId = n.getGuidValue(); },
481
+ };
482
+ }
483
+ /**
484
+ * The deserialization information for the current model
485
+ * @param Form_branding The instance to deserialize into.
486
+ * @returns {Record<string, (node: ParseNode) => void>}
487
+ */
488
+ // @ts-ignore
489
+ export function deserializeIntoForm_branding(form_branding = {}) {
490
+ return {};
491
+ }
492
+ /**
493
+ * The deserialization information for the current model
494
+ * @param Form_settings The instance to deserialize into.
495
+ * @returns {Record<string, (node: ParseNode) => void>}
496
+ */
497
+ // @ts-ignore
498
+ export function deserializeIntoForm_settings(form_settings = {}) {
499
+ return {};
500
+ }
501
+ /**
502
+ * The deserialization information for the current model
503
+ * @param Question The instance to deserialize into.
504
+ * @returns {Record<string, (node: ParseNode) => void>}
505
+ */
506
+ // @ts-ignore
507
+ export function deserializeIntoQuestion(question = {}) {
508
+ return {
509
+ "context": n => { question.context = n.getStringValue(); },
510
+ "createdAt": n => { question.createdAt = n.getDateValue(); },
511
+ "formId": n => { question.formId = n.getGuidValue(); },
512
+ "id": n => { question.id = n.getGuidValue(); },
513
+ "isPii": n => { question.isPii = n.getBooleanValue(); },
514
+ "isRequired": n => { question.isRequired = n.getBooleanValue(); },
515
+ "options": n => { question.options = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
516
+ "order": n => { question.order = n.getNumberValue(); },
517
+ "priority": n => { question.priority = n.getEnumValue(Question_priorityObject); },
518
+ "questionText": n => { question.questionText = n.getStringValue(); },
519
+ "sectionId": n => { question.sectionId = n.getGuidValue(); },
520
+ "type": n => { question.type = n.getEnumValue(Question_typeObject); },
521
+ };
522
+ }
523
+ /**
524
+ * The deserialization information for the current model
525
+ * @param Recipient The instance to deserialize into.
526
+ * @returns {Record<string, (node: ParseNode) => void>}
527
+ */
528
+ // @ts-ignore
529
+ export function deserializeIntoRecipient(recipient = {}) {
530
+ return {
531
+ "created_at": n => { recipient.createdAt = n.getDateValue(); },
532
+ "email": n => { recipient.email = n.getStringValue(); },
533
+ "expires_at": n => { recipient.expiresAt = n.getDateValue(); },
534
+ "form_id": n => { recipient.formId = n.getGuidValue(); },
535
+ "has_password": n => { recipient.hasPassword = n.getBooleanValue(); },
536
+ "id": n => { recipient.id = n.getGuidValue(); },
537
+ "is_active": n => { recipient.isActive = n.getBooleanValue(); },
538
+ "is_anonymous": n => { recipient.isAnonymous = n.getBooleanValue(); },
539
+ "label": n => { recipient.label = n.getStringValue(); },
540
+ "last_activity_at": n => { recipient.lastActivityAt = n.getDateValue(); },
541
+ "link": n => { recipient.link = n.getStringValue(); },
542
+ "phone": n => { recipient.phone = n.getStringValue(); },
543
+ "response_count": n => { recipient.responseCount = n.getNumberValue(); },
544
+ "status": n => { recipient.status = n.getEnumValue(Recipient_statusObject); },
545
+ "token": n => { recipient.token = n.getStringValue(); },
546
+ "total_questions": n => { recipient.totalQuestions = n.getNumberValue(); },
547
+ "visit_count": n => { recipient.visitCount = n.getNumberValue(); },
548
+ };
549
+ }
550
+ /**
551
+ * The deserialization information for the current model
552
+ * @param Section The instance to deserialize into.
553
+ * @returns {Record<string, (node: ParseNode) => void>}
554
+ */
555
+ // @ts-ignore
556
+ export function deserializeIntoSection(section = {}) {
557
+ return {
558
+ "createdAt": n => { section.createdAt = n.getDateValue(); },
559
+ "formId": n => { section.formId = n.getGuidValue(); },
560
+ "id": n => { section.id = n.getGuidValue(); },
561
+ "order": n => { section.order = n.getNumberValue(); },
562
+ "title": n => { section.title = n.getStringValue(); },
563
+ };
564
+ }
565
+ /**
566
+ * The deserialization information for the current model
567
+ * @param Signer The instance to deserialize into.
568
+ * @returns {Record<string, (node: ParseNode) => void>}
569
+ */
570
+ // @ts-ignore
571
+ export function deserializeIntoSigner(signer = {}) {
572
+ return {
573
+ "color": n => { signer.color = n.getStringValue(); },
574
+ "completedAt": n => { signer.completedAt = n.getDateValue(); },
575
+ "createdAt": n => { signer.createdAt = n.getDateValue(); },
576
+ "documentId": n => { signer.documentId = n.getGuidValue(); },
577
+ "email": n => { signer.email = n.getStringValue(); },
578
+ "id": n => { signer.id = n.getGuidValue(); },
579
+ "label": n => { signer.label = n.getStringValue(); },
580
+ "link": n => { signer.link = n.getStringValue(); },
581
+ "name": n => { signer.name = n.getStringValue(); },
582
+ "order": n => { signer.order = n.getNumberValue(); },
583
+ "role": n => { signer.role = n.getStringValue(); },
584
+ "status": n => { signer.status = n.getEnumValue(Signer_statusObject); },
585
+ "submissionId": n => { signer.submissionId = n.getGuidValue(); },
586
+ "token": n => { signer.token = n.getStringValue(); },
587
+ };
588
+ }
589
+ /**
590
+ * The deserialization information for the current model
591
+ * @param SignerInput The instance to deserialize into.
592
+ * @returns {Record<string, (node: ParseNode) => void>}
593
+ */
594
+ // @ts-ignore
595
+ export function deserializeIntoSignerInput(signerInput = {}) {
596
+ return {
597
+ "email": n => { signerInput.email = n.getStringValue(); },
598
+ "name": n => { signerInput.name = n.getStringValue(); },
599
+ "password": n => { signerInput.password = n.getStringValue(); },
600
+ "phone": n => { signerInput.phone = n.getStringValue(); },
601
+ "prefill": n => { signerInput.prefill = n.getObjectValue(createSignerInput_prefillFromDiscriminatorValue); },
602
+ "prefillReadonly": n => { signerInput.prefillReadonly = n.getBooleanValue(); },
603
+ "role": n => { signerInput.role = n.getStringValue(); },
604
+ };
605
+ }
606
+ /**
607
+ * The deserialization information for the current model
608
+ * @param SignerInput_prefill The instance to deserialize into.
609
+ * @returns {Record<string, (node: ParseNode) => void>}
610
+ */
611
+ // @ts-ignore
612
+ export function deserializeIntoSignerInput_prefill(signerInput_prefill = {}) {
613
+ return {};
614
+ }
615
+ /**
616
+ * The deserialization information for the current model
617
+ * @param SignerRole The instance to deserialize into.
618
+ * @returns {Record<string, (node: ParseNode) => void>}
619
+ */
620
+ // @ts-ignore
621
+ export function deserializeIntoSignerRole(signerRole = {}) {
622
+ return {
623
+ "color": n => { signerRole.color = n.getStringValue(); },
624
+ "createdAt": n => { signerRole.createdAt = n.getDateValue(); },
625
+ "documentId": n => { signerRole.documentId = n.getGuidValue(); },
626
+ "id": n => { signerRole.id = n.getGuidValue(); },
627
+ "label": n => { signerRole.label = n.getStringValue(); },
628
+ "order": n => { signerRole.order = n.getNumberValue(); },
629
+ "role": n => { signerRole.role = n.getStringValue(); },
630
+ };
631
+ }
632
+ /**
633
+ * The deserialization information for the current model
634
+ * @param UpdateFormBody The instance to deserialize into.
635
+ * @returns {Record<string, (node: ParseNode) => void>}
636
+ */
637
+ // @ts-ignore
638
+ export function deserializeIntoUpdateFormBody(updateFormBody = {}) {
639
+ return {
640
+ "description": n => { updateFormBody.description = n.getStringValue(); },
641
+ "status": n => { updateFormBody.status = n.getEnumValue(UpdateFormBody_statusObject); },
642
+ "title": n => { updateFormBody.title = n.getStringValue(); },
643
+ };
644
+ }
645
+ /**
646
+ * The deserialization information for the current model
647
+ * @param UpdateRecipientBody The instance to deserialize into.
648
+ * @returns {Record<string, (node: ParseNode) => void>}
649
+ */
650
+ // @ts-ignore
651
+ export function deserializeIntoUpdateRecipientBody(updateRecipientBody = {}) {
652
+ return {
653
+ "email": n => { updateRecipientBody.email = n.getStringValue(); },
654
+ "expires_at": n => { updateRecipientBody.expiresAt = n.getDateValue(); },
655
+ "is_active": n => { updateRecipientBody.isActive = n.getBooleanValue(); },
656
+ "label": n => { updateRecipientBody.label = n.getStringValue(); },
657
+ "password": n => { updateRecipientBody.password = n.getStringValue(); },
658
+ "phone": n => { updateRecipientBody.phone = n.getStringValue(); },
659
+ };
660
+ }
661
+ /**
662
+ * The deserialization information for the current model
663
+ * @param UpdateSectionBody The instance to deserialize into.
664
+ * @returns {Record<string, (node: ParseNode) => void>}
665
+ */
666
+ // @ts-ignore
667
+ export function deserializeIntoUpdateSectionBody(updateSectionBody = {}) {
668
+ return {
669
+ "order": n => { updateSectionBody.order = n.getNumberValue(); },
670
+ "title": n => { updateSectionBody.title = n.getStringValue(); },
671
+ };
672
+ }
673
+ /**
674
+ * Serializes information the current object
675
+ * @param CreateFieldBody The instance to serialize from.
676
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
677
+ * @param writer Serialization writer to use to serialize this model
678
+ */
679
+ // @ts-ignore
680
+ export function serializeCreateFieldBody(writer, createFieldBody = {}, isSerializingDerivedType = false) {
681
+ if (!createFieldBody || isSerializingDerivedType) {
682
+ return;
683
+ }
684
+ writer.writeStringValue("assigneeRole", createFieldBody.assigneeRole);
685
+ writer.writeStringValue("defaultValue", createFieldBody.defaultValue);
686
+ writer.writeEnumValue("direction", createFieldBody.direction ?? CreateFieldBody_directionObject.Auto);
687
+ writer.writeNumberValue("height", createFieldBody.height);
688
+ writer.writeBooleanValue("isReadOnly", createFieldBody.isReadOnly);
689
+ writer.writeBooleanValue("isRequired", createFieldBody.isRequired);
690
+ writer.writeStringValue("label", createFieldBody.label);
691
+ writer.writeObjectValue("options", createFieldBody.options, serializeCreateFieldBody_options);
692
+ writer.writeNumberValue("order", createFieldBody.order);
693
+ writer.writeNumberValue("pageNumber", createFieldBody.pageNumber);
694
+ writer.writeEnumValue("type", createFieldBody.type);
695
+ writer.writeNumberValue("width", createFieldBody.width);
696
+ writer.writeNumberValue("x", createFieldBody.x);
697
+ writer.writeNumberValue("y", createFieldBody.y);
698
+ writer.writeAdditionalData(createFieldBody.additionalData);
699
+ }
700
+ /**
701
+ * Serializes information the current object
702
+ * @param CreateFieldBody_options The instance to serialize from.
703
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
704
+ * @param writer Serialization writer to use to serialize this model
705
+ */
706
+ // @ts-ignore
707
+ export function serializeCreateFieldBody_options(writer, createFieldBody_options = {}, isSerializingDerivedType = false) {
708
+ if (!createFieldBody_options || isSerializingDerivedType) {
709
+ return;
710
+ }
711
+ writer.writeAdditionalData(createFieldBody_options.additionalData);
712
+ }
713
+ /**
714
+ * Serializes information the current object
715
+ * @param CreateFormBody The instance to serialize from.
716
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
717
+ * @param writer Serialization writer to use to serialize this model
718
+ */
719
+ // @ts-ignore
720
+ export function serializeCreateFormBody(writer, createFormBody = {}, isSerializingDerivedType = false) {
721
+ if (!createFormBody || isSerializingDerivedType) {
722
+ return;
723
+ }
724
+ writer.writeStringValue("description", createFormBody.description);
725
+ writer.writeStringValue("title", createFormBody.title);
726
+ writer.writeAdditionalData(createFormBody.additionalData);
727
+ }
728
+ /**
729
+ * Serializes information the current object
730
+ * @param CreateQuestionBody The instance to serialize from.
731
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
732
+ * @param writer Serialization writer to use to serialize this model
733
+ */
734
+ // @ts-ignore
735
+ export function serializeCreateQuestionBody(writer, createQuestionBody = {}, isSerializingDerivedType = false) {
736
+ if (!createQuestionBody || isSerializingDerivedType) {
737
+ return;
738
+ }
739
+ writer.writeStringValue("context", createQuestionBody.context);
740
+ writer.writeBooleanValue("is_pii", createQuestionBody.isPii);
741
+ writer.writeBooleanValue("is_required", createQuestionBody.isRequired);
742
+ writer.writeObjectValue("options", createQuestionBody.options);
743
+ writer.writeNumberValue("order", createQuestionBody.order);
744
+ writer.writeEnumValue("priority", createQuestionBody.priority ?? CreateQuestionBody_priorityObject.Low);
745
+ writer.writeStringValue("question_text", createQuestionBody.questionText);
746
+ writer.writeGuidValue("section_id", createQuestionBody.sectionId);
747
+ writer.writeEnumValue("type", createQuestionBody.type);
748
+ writer.writeAdditionalData(createQuestionBody.additionalData);
749
+ }
750
+ /**
751
+ * Serializes information the current object
752
+ * @param CreateRecipientBody The instance to serialize from.
753
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
754
+ * @param writer Serialization writer to use to serialize this model
755
+ */
756
+ // @ts-ignore
757
+ export function serializeCreateRecipientBody(writer, createRecipientBody = {}, isSerializingDerivedType = false) {
758
+ if (!createRecipientBody || isSerializingDerivedType) {
759
+ return;
760
+ }
761
+ writer.writeStringValue("email", createRecipientBody.email);
762
+ writer.writeDateValue("expires_at", createRecipientBody.expiresAt);
763
+ writer.writeStringValue("label", createRecipientBody.label);
764
+ writer.writeStringValue("password", createRecipientBody.password);
765
+ writer.writeStringValue("phone", createRecipientBody.phone);
766
+ writer.writeObjectValue("prefill", createRecipientBody.prefill, serializeCreateRecipientBody_prefill);
767
+ writer.writeAdditionalData(createRecipientBody.additionalData);
768
+ }
769
+ /**
770
+ * Serializes information the current object
771
+ * @param CreateRecipientBody_prefill The instance to serialize from.
772
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
773
+ * @param writer Serialization writer to use to serialize this model
774
+ */
775
+ // @ts-ignore
776
+ export function serializeCreateRecipientBody_prefill(writer, createRecipientBody_prefill = {}, isSerializingDerivedType = false) {
777
+ if (!createRecipientBody_prefill || isSerializingDerivedType) {
778
+ return;
779
+ }
780
+ writer.writeAdditionalData(createRecipientBody_prefill.additionalData);
781
+ }
782
+ /**
783
+ * Serializes information the current object
784
+ * @param CreateSectionBody The instance to serialize from.
785
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
786
+ * @param writer Serialization writer to use to serialize this model
787
+ */
788
+ // @ts-ignore
789
+ export function serializeCreateSectionBody(writer, createSectionBody = {}, isSerializingDerivedType = false) {
790
+ if (!createSectionBody || isSerializingDerivedType) {
791
+ return;
792
+ }
793
+ writer.writeNumberValue("order", createSectionBody.order);
794
+ writer.writeStringValue("title", createSectionBody.title);
795
+ writer.writeAdditionalData(createSectionBody.additionalData);
796
+ }
797
+ /**
798
+ * Serializes information the current object
799
+ * @param CreateSignerRoleBody The instance to serialize from.
800
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
801
+ * @param writer Serialization writer to use to serialize this model
802
+ */
803
+ // @ts-ignore
804
+ export function serializeCreateSignerRoleBody(writer, createSignerRoleBody = {}, isSerializingDerivedType = false) {
805
+ if (!createSignerRoleBody || isSerializingDerivedType) {
806
+ return;
807
+ }
808
+ writer.writeStringValue("label", createSignerRoleBody.label);
809
+ writer.writeAdditionalData(createSignerRoleBody.additionalData);
810
+ }
811
+ /**
812
+ * Serializes information the current object
813
+ * @param CreateSubmissionBody The instance to serialize from.
814
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
815
+ * @param writer Serialization writer to use to serialize this model
816
+ */
817
+ // @ts-ignore
818
+ export function serializeCreateSubmissionBody(writer, createSubmissionBody = {}, isSerializingDerivedType = false) {
819
+ if (!createSubmissionBody || isSerializingDerivedType) {
820
+ return;
821
+ }
822
+ writer.writeCollectionOfObjectValues("signers", createSubmissionBody.signers, serializeSignerInput);
823
+ writer.writeAdditionalData(createSubmissionBody.additionalData);
824
+ }
825
+ /**
826
+ * Serializes information the current object
827
+ * @param Document The instance to serialize from.
828
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
829
+ * @param writer Serialization writer to use to serialize this model
830
+ */
831
+ // @ts-ignore
832
+ export function serializeDocument(writer, document = {}, isSerializingDerivedType = false) {
833
+ if (!document || isSerializingDerivedType) {
834
+ return;
835
+ }
836
+ writer.writeStringValue("completedPdfUrl", document.completedPdfUrl);
837
+ writer.writeDateValue("createdAt", document.createdAt);
838
+ writer.writeGuidValue("creatorId", document.creatorId);
839
+ writer.writeDateValue("deletedAt", document.deletedAt);
840
+ writer.writeStringValue("fileType", document.fileType);
841
+ writer.writeGuidValue("id", document.id);
842
+ writer.writeStringValue("originalFilename", document.originalFilename);
843
+ writer.writeStringValue("originalUrl", document.originalUrl);
844
+ writer.writeNumberValue("pageCount", document.pageCount);
845
+ writer.writeCollectionOfObjectValues("pageDimensions", document.pageDimensions, serializeDocument_pageDimensions);
846
+ writer.writeEnumValue("status", document.status);
847
+ writer.writeStringValue("title", document.title);
848
+ writer.writeDateValue("updatedAt", document.updatedAt);
849
+ writer.writeGuidValue("workspaceId", document.workspaceId);
850
+ writer.writeAdditionalData(document.additionalData);
851
+ }
852
+ /**
853
+ * Serializes information the current object
854
+ * @param Document_pageDimensions The instance to serialize from.
855
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
856
+ * @param writer Serialization writer to use to serialize this model
857
+ */
858
+ // @ts-ignore
859
+ export function serializeDocument_pageDimensions(writer, document_pageDimensions = {}, isSerializingDerivedType = false) {
860
+ if (!document_pageDimensions || isSerializingDerivedType) {
861
+ return;
862
+ }
863
+ writer.writeNumberValue("height", document_pageDimensions.height);
864
+ writer.writeNumberValue("width", document_pageDimensions.width);
865
+ writer.writeAdditionalData(document_pageDimensions.additionalData);
866
+ }
867
+ /**
868
+ * Serializes information the current object
869
+ * @param DocumentField The instance to serialize from.
870
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
871
+ * @param writer Serialization writer to use to serialize this model
872
+ */
873
+ // @ts-ignore
874
+ export function serializeDocumentField(writer, documentField = {}, isSerializingDerivedType = false) {
875
+ if (!documentField || isSerializingDerivedType) {
876
+ return;
877
+ }
878
+ writer.writeStringValue("assigneeRole", documentField.assigneeRole);
879
+ writer.writeDateValue("createdAt", documentField.createdAt);
880
+ writer.writeStringValue("defaultValue", documentField.defaultValue);
881
+ writer.writeEnumValue("direction", documentField.direction);
882
+ writer.writeGuidValue("documentId", documentField.documentId);
883
+ writer.writeNumberValue("height", documentField.height);
884
+ writer.writeGuidValue("id", documentField.id);
885
+ writer.writeBooleanValue("isReadOnly", documentField.isReadOnly);
886
+ writer.writeBooleanValue("isRequired", documentField.isRequired);
887
+ writer.writeStringValue("label", documentField.label);
888
+ writer.writeObjectValue("options", documentField.options, serializeDocumentField_options);
889
+ writer.writeNumberValue("order", documentField.order);
890
+ writer.writeNumberValue("pageNumber", documentField.pageNumber);
891
+ writer.writeEnumValue("type", documentField.type);
892
+ writer.writeNumberValue("width", documentField.width);
893
+ writer.writeNumberValue("x", documentField.x);
894
+ writer.writeNumberValue("y", documentField.y);
895
+ writer.writeAdditionalData(documentField.additionalData);
896
+ }
897
+ /**
898
+ * Serializes information the current object
899
+ * @param DocumentField_options The instance to serialize from.
900
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
901
+ * @param writer Serialization writer to use to serialize this model
902
+ */
903
+ // @ts-ignore
904
+ export function serializeDocumentField_options(writer, documentField_options = {}, isSerializingDerivedType = false) {
905
+ if (!documentField_options || isSerializingDerivedType) {
906
+ return;
907
+ }
908
+ writer.writeAdditionalData(documentField_options.additionalData);
909
+ }
910
+ /**
911
+ * Serializes information the current object
912
+ * @param DocumentSubmission The instance to serialize from.
913
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
914
+ * @param writer Serialization writer to use to serialize this model
915
+ */
916
+ // @ts-ignore
917
+ export function serializeDocumentSubmission(writer, documentSubmission = {}, isSerializingDerivedType = false) {
918
+ if (!documentSubmission || isSerializingDerivedType) {
919
+ return;
920
+ }
921
+ writer.writeDateValue("completedAt", documentSubmission.completedAt);
922
+ writer.writeStringValue("completedPdfUrl", documentSubmission.completedPdfUrl);
923
+ writer.writeDateValue("createdAt", documentSubmission.createdAt);
924
+ writer.writeGuidValue("documentId", documentSubmission.documentId);
925
+ writer.writeGuidValue("id", documentSubmission.id);
926
+ writer.writeCollectionOfObjectValues("signers", documentSubmission.signers, serializeSigner);
927
+ writer.writeEnumValue("status", documentSubmission.status);
928
+ writer.writeAdditionalData(documentSubmission.additionalData);
929
+ }
930
+ /**
931
+ * Serializes information the current object
932
+ * @param Form The instance to serialize from.
933
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
934
+ * @param writer Serialization writer to use to serialize this model
935
+ */
936
+ // @ts-ignore
937
+ export function serializeForm(writer, form = {}, isSerializingDerivedType = false) {
938
+ if (!form || isSerializingDerivedType) {
939
+ return;
940
+ }
941
+ writer.writeObjectValue("branding", form.branding, serializeForm_branding);
942
+ writer.writeDateValue("createdAt", form.createdAt);
943
+ writer.writeGuidValue("creatorId", form.creatorId);
944
+ writer.writeStringValue("description", form.description);
945
+ writer.writeGuidValue("id", form.id);
946
+ writer.writeStringValue("publicToken", form.publicToken);
947
+ writer.writeNumberValue("question_count", form.questionCount);
948
+ writer.writeObjectValue("settings", form.settings, serializeForm_settings);
949
+ writer.writeEnumValue("status", form.status);
950
+ writer.writeStringValue("title", form.title);
951
+ writer.writeDateValue("updatedAt", form.updatedAt);
952
+ writer.writeGuidValue("workspaceId", form.workspaceId);
953
+ writer.writeAdditionalData(form.additionalData);
954
+ }
955
+ /**
956
+ * Serializes information the current object
957
+ * @param Form_branding The instance to serialize from.
958
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
959
+ * @param writer Serialization writer to use to serialize this model
960
+ */
961
+ // @ts-ignore
962
+ export function serializeForm_branding(writer, form_branding = {}, isSerializingDerivedType = false) {
963
+ if (!form_branding || isSerializingDerivedType) {
964
+ return;
965
+ }
966
+ writer.writeAdditionalData(form_branding.additionalData);
967
+ }
968
+ /**
969
+ * Serializes information the current object
970
+ * @param Form_settings The instance to serialize from.
971
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
972
+ * @param writer Serialization writer to use to serialize this model
973
+ */
974
+ // @ts-ignore
975
+ export function serializeForm_settings(writer, form_settings = {}, isSerializingDerivedType = false) {
976
+ if (!form_settings || isSerializingDerivedType) {
977
+ return;
978
+ }
979
+ writer.writeAdditionalData(form_settings.additionalData);
980
+ }
981
+ /**
982
+ * Serializes information the current object
983
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
984
+ * @param Question The instance to serialize from.
985
+ * @param writer Serialization writer to use to serialize this model
986
+ */
987
+ // @ts-ignore
988
+ export function serializeQuestion(writer, question = {}, isSerializingDerivedType = false) {
989
+ if (!question || isSerializingDerivedType) {
990
+ return;
991
+ }
992
+ writer.writeStringValue("context", question.context);
993
+ writer.writeDateValue("createdAt", question.createdAt);
994
+ writer.writeGuidValue("formId", question.formId);
995
+ writer.writeGuidValue("id", question.id);
996
+ writer.writeBooleanValue("isPii", question.isPii);
997
+ writer.writeBooleanValue("isRequired", question.isRequired);
998
+ writer.writeObjectValue("options", question.options);
999
+ writer.writeNumberValue("order", question.order);
1000
+ writer.writeEnumValue("priority", question.priority);
1001
+ writer.writeStringValue("questionText", question.questionText);
1002
+ writer.writeGuidValue("sectionId", question.sectionId);
1003
+ writer.writeEnumValue("type", question.type);
1004
+ writer.writeAdditionalData(question.additionalData);
1005
+ }
1006
+ /**
1007
+ * Serializes information the current object
1008
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1009
+ * @param Recipient The instance to serialize from.
1010
+ * @param writer Serialization writer to use to serialize this model
1011
+ */
1012
+ // @ts-ignore
1013
+ export function serializeRecipient(writer, recipient = {}, isSerializingDerivedType = false) {
1014
+ if (!recipient || isSerializingDerivedType) {
1015
+ return;
1016
+ }
1017
+ writer.writeDateValue("created_at", recipient.createdAt);
1018
+ writer.writeStringValue("email", recipient.email);
1019
+ writer.writeDateValue("expires_at", recipient.expiresAt);
1020
+ writer.writeGuidValue("form_id", recipient.formId);
1021
+ writer.writeBooleanValue("has_password", recipient.hasPassword);
1022
+ writer.writeGuidValue("id", recipient.id);
1023
+ writer.writeBooleanValue("is_active", recipient.isActive);
1024
+ writer.writeBooleanValue("is_anonymous", recipient.isAnonymous);
1025
+ writer.writeStringValue("label", recipient.label);
1026
+ writer.writeDateValue("last_activity_at", recipient.lastActivityAt);
1027
+ writer.writeStringValue("link", recipient.link);
1028
+ writer.writeStringValue("phone", recipient.phone);
1029
+ writer.writeNumberValue("response_count", recipient.responseCount);
1030
+ writer.writeEnumValue("status", recipient.status);
1031
+ writer.writeStringValue("token", recipient.token);
1032
+ writer.writeNumberValue("total_questions", recipient.totalQuestions);
1033
+ writer.writeNumberValue("visit_count", recipient.visitCount);
1034
+ writer.writeAdditionalData(recipient.additionalData);
1035
+ }
1036
+ /**
1037
+ * Serializes information the current object
1038
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1039
+ * @param Section The instance to serialize from.
1040
+ * @param writer Serialization writer to use to serialize this model
1041
+ */
1042
+ // @ts-ignore
1043
+ export function serializeSection(writer, section = {}, isSerializingDerivedType = false) {
1044
+ if (!section || isSerializingDerivedType) {
1045
+ return;
1046
+ }
1047
+ writer.writeDateValue("createdAt", section.createdAt);
1048
+ writer.writeGuidValue("formId", section.formId);
1049
+ writer.writeGuidValue("id", section.id);
1050
+ writer.writeNumberValue("order", section.order);
1051
+ writer.writeStringValue("title", section.title);
1052
+ writer.writeAdditionalData(section.additionalData);
1053
+ }
1054
+ /**
1055
+ * Serializes information the current object
1056
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1057
+ * @param Signer The instance to serialize from.
1058
+ * @param writer Serialization writer to use to serialize this model
1059
+ */
1060
+ // @ts-ignore
1061
+ export function serializeSigner(writer, signer = {}, isSerializingDerivedType = false) {
1062
+ if (!signer || isSerializingDerivedType) {
1063
+ return;
1064
+ }
1065
+ writer.writeStringValue("color", signer.color);
1066
+ writer.writeDateValue("completedAt", signer.completedAt);
1067
+ writer.writeDateValue("createdAt", signer.createdAt);
1068
+ writer.writeGuidValue("documentId", signer.documentId);
1069
+ writer.writeStringValue("email", signer.email);
1070
+ writer.writeGuidValue("id", signer.id);
1071
+ writer.writeStringValue("label", signer.label);
1072
+ writer.writeStringValue("link", signer.link);
1073
+ writer.writeStringValue("name", signer.name);
1074
+ writer.writeNumberValue("order", signer.order);
1075
+ writer.writeStringValue("role", signer.role);
1076
+ writer.writeEnumValue("status", signer.status);
1077
+ writer.writeGuidValue("submissionId", signer.submissionId);
1078
+ writer.writeStringValue("token", signer.token);
1079
+ writer.writeAdditionalData(signer.additionalData);
1080
+ }
1081
+ /**
1082
+ * Serializes information the current object
1083
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1084
+ * @param SignerInput The instance to serialize from.
1085
+ * @param writer Serialization writer to use to serialize this model
1086
+ */
1087
+ // @ts-ignore
1088
+ export function serializeSignerInput(writer, signerInput = {}, isSerializingDerivedType = false) {
1089
+ if (!signerInput || isSerializingDerivedType) {
1090
+ return;
1091
+ }
1092
+ writer.writeStringValue("email", signerInput.email);
1093
+ writer.writeStringValue("name", signerInput.name);
1094
+ writer.writeStringValue("password", signerInput.password);
1095
+ writer.writeStringValue("phone", signerInput.phone);
1096
+ writer.writeObjectValue("prefill", signerInput.prefill, serializeSignerInput_prefill);
1097
+ writer.writeBooleanValue("prefillReadonly", signerInput.prefillReadonly);
1098
+ writer.writeStringValue("role", signerInput.role);
1099
+ writer.writeAdditionalData(signerInput.additionalData);
1100
+ }
1101
+ /**
1102
+ * Serializes information the current object
1103
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1104
+ * @param SignerInput_prefill The instance to serialize from.
1105
+ * @param writer Serialization writer to use to serialize this model
1106
+ */
1107
+ // @ts-ignore
1108
+ export function serializeSignerInput_prefill(writer, signerInput_prefill = {}, isSerializingDerivedType = false) {
1109
+ if (!signerInput_prefill || isSerializingDerivedType) {
1110
+ return;
1111
+ }
1112
+ writer.writeAdditionalData(signerInput_prefill.additionalData);
1113
+ }
1114
+ /**
1115
+ * Serializes information the current object
1116
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1117
+ * @param SignerRole The instance to serialize from.
1118
+ * @param writer Serialization writer to use to serialize this model
1119
+ */
1120
+ // @ts-ignore
1121
+ export function serializeSignerRole(writer, signerRole = {}, isSerializingDerivedType = false) {
1122
+ if (!signerRole || isSerializingDerivedType) {
1123
+ return;
1124
+ }
1125
+ writer.writeStringValue("color", signerRole.color);
1126
+ writer.writeDateValue("createdAt", signerRole.createdAt);
1127
+ writer.writeGuidValue("documentId", signerRole.documentId);
1128
+ writer.writeGuidValue("id", signerRole.id);
1129
+ writer.writeStringValue("label", signerRole.label);
1130
+ writer.writeNumberValue("order", signerRole.order);
1131
+ writer.writeStringValue("role", signerRole.role);
1132
+ writer.writeAdditionalData(signerRole.additionalData);
1133
+ }
1134
+ /**
1135
+ * Serializes information the current object
1136
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1137
+ * @param UpdateFormBody The instance to serialize from.
1138
+ * @param writer Serialization writer to use to serialize this model
1139
+ */
1140
+ // @ts-ignore
1141
+ export function serializeUpdateFormBody(writer, updateFormBody = {}, isSerializingDerivedType = false) {
1142
+ if (!updateFormBody || isSerializingDerivedType) {
1143
+ return;
1144
+ }
1145
+ writer.writeStringValue("description", updateFormBody.description);
1146
+ writer.writeEnumValue("status", updateFormBody.status);
1147
+ writer.writeStringValue("title", updateFormBody.title);
1148
+ writer.writeAdditionalData(updateFormBody.additionalData);
1149
+ }
1150
+ /**
1151
+ * Serializes information the current object
1152
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1153
+ * @param UpdateRecipientBody The instance to serialize from.
1154
+ * @param writer Serialization writer to use to serialize this model
1155
+ */
1156
+ // @ts-ignore
1157
+ export function serializeUpdateRecipientBody(writer, updateRecipientBody = {}, isSerializingDerivedType = false) {
1158
+ if (!updateRecipientBody || isSerializingDerivedType) {
1159
+ return;
1160
+ }
1161
+ writer.writeStringValue("email", updateRecipientBody.email);
1162
+ writer.writeDateValue("expires_at", updateRecipientBody.expiresAt);
1163
+ writer.writeBooleanValue("is_active", updateRecipientBody.isActive);
1164
+ writer.writeStringValue("label", updateRecipientBody.label);
1165
+ writer.writeStringValue("password", updateRecipientBody.password);
1166
+ writer.writeStringValue("phone", updateRecipientBody.phone);
1167
+ writer.writeAdditionalData(updateRecipientBody.additionalData);
1168
+ }
1169
+ /**
1170
+ * Serializes information the current object
1171
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1172
+ * @param UpdateSectionBody The instance to serialize from.
1173
+ * @param writer Serialization writer to use to serialize this model
1174
+ */
1175
+ // @ts-ignore
1176
+ export function serializeUpdateSectionBody(writer, updateSectionBody = {}, isSerializingDerivedType = false) {
1177
+ if (!updateSectionBody || isSerializingDerivedType) {
1178
+ return;
1179
+ }
1180
+ writer.writeNumberValue("order", updateSectionBody.order);
1181
+ writer.writeStringValue("title", updateSectionBody.title);
1182
+ writer.writeAdditionalData(updateSectionBody.additionalData);
1183
+ }
1184
+ export const CreateFieldBody_directionObject = {
1185
+ Auto: "auto",
1186
+ Rtl: "rtl",
1187
+ Ltr: "ltr",
1188
+ };
1189
+ export const CreateFieldBody_typeObject = {
1190
+ Short_text: "short_text",
1191
+ Long_text: "long_text",
1192
+ Mcq: "mcq",
1193
+ Multi_select: "multi_select",
1194
+ Rating: "rating",
1195
+ Date: "date",
1196
+ Number: "number",
1197
+ Yes_no: "yes_no",
1198
+ File_upload: "file_upload",
1199
+ Dropdown: "dropdown",
1200
+ Digital_signature: "digital_signature",
1201
+ Email: "email",
1202
+ Phone: "phone",
1203
+ Initials: "initials",
1204
+ };
1205
+ export const CreateQuestionBody_priorityObject = {
1206
+ Low: "low",
1207
+ Medium: "medium",
1208
+ High: "high",
1209
+ Critical: "critical",
1210
+ };
1211
+ export const CreateQuestionBody_typeObject = {
1212
+ Short_text: "short_text",
1213
+ Long_text: "long_text",
1214
+ Mcq: "mcq",
1215
+ Multi_select: "multi_select",
1216
+ Rating: "rating",
1217
+ Date: "date",
1218
+ Number: "number",
1219
+ Yes_no: "yes_no",
1220
+ File_upload: "file_upload",
1221
+ Dropdown: "dropdown",
1222
+ Digital_signature: "digital_signature",
1223
+ Email: "email",
1224
+ Phone: "phone",
1225
+ Initials: "initials",
1226
+ Url: "url",
1227
+ Time: "time",
1228
+ Date_range: "date_range",
1229
+ Address: "address",
1230
+ Slider: "slider",
1231
+ Currency: "currency",
1232
+ Heading: "heading",
1233
+ Divider: "divider",
1234
+ Picture_choice: "picture_choice",
1235
+ Checkbox: "checkbox",
1236
+ Ranking: "ranking",
1237
+ Matrix: "matrix",
1238
+ Opinion_scale: "opinion_scale",
1239
+ Calculation: "calculation",
1240
+ Payment: "payment",
1241
+ };
1242
+ export const Document_statusObject = {
1243
+ Draft: "draft",
1244
+ Sent: "sent",
1245
+ Completed: "completed",
1246
+ Expired: "expired",
1247
+ };
1248
+ export const DocumentField_directionObject = {
1249
+ Auto: "auto",
1250
+ Rtl: "rtl",
1251
+ Ltr: "ltr",
1252
+ };
1253
+ export const DocumentField_typeObject = {
1254
+ Short_text: "short_text",
1255
+ Long_text: "long_text",
1256
+ Mcq: "mcq",
1257
+ Multi_select: "multi_select",
1258
+ Rating: "rating",
1259
+ Date: "date",
1260
+ Number: "number",
1261
+ Yes_no: "yes_no",
1262
+ File_upload: "file_upload",
1263
+ Dropdown: "dropdown",
1264
+ Digital_signature: "digital_signature",
1265
+ Email: "email",
1266
+ Phone: "phone",
1267
+ Initials: "initials",
1268
+ };
1269
+ export const DocumentSubmission_statusObject = {
1270
+ Pending: "pending",
1271
+ In_progress: "in_progress",
1272
+ Completed: "completed",
1273
+ };
1274
+ export const Form_statusObject = {
1275
+ Draft: "draft",
1276
+ Published: "published",
1277
+ Archived: "archived",
1278
+ };
1279
+ export const Question_priorityObject = {
1280
+ Low: "low",
1281
+ Medium: "medium",
1282
+ High: "high",
1283
+ Critical: "critical",
1284
+ };
1285
+ export const Question_typeObject = {
1286
+ Short_text: "short_text",
1287
+ Long_text: "long_text",
1288
+ Mcq: "mcq",
1289
+ Multi_select: "multi_select",
1290
+ Rating: "rating",
1291
+ Date: "date",
1292
+ Number: "number",
1293
+ Yes_no: "yes_no",
1294
+ File_upload: "file_upload",
1295
+ Dropdown: "dropdown",
1296
+ Digital_signature: "digital_signature",
1297
+ Email: "email",
1298
+ Phone: "phone",
1299
+ Initials: "initials",
1300
+ Url: "url",
1301
+ Time: "time",
1302
+ Date_range: "date_range",
1303
+ Address: "address",
1304
+ Slider: "slider",
1305
+ Currency: "currency",
1306
+ Heading: "heading",
1307
+ Divider: "divider",
1308
+ Picture_choice: "picture_choice",
1309
+ Checkbox: "checkbox",
1310
+ Ranking: "ranking",
1311
+ Matrix: "matrix",
1312
+ Opinion_scale: "opinion_scale",
1313
+ Calculation: "calculation",
1314
+ Payment: "payment",
1315
+ };
1316
+ export const Recipient_statusObject = {
1317
+ Not_started: "not_started",
1318
+ In_progress: "in_progress",
1319
+ Completed: "completed",
1320
+ };
1321
+ export const Signer_statusObject = {
1322
+ Pending: "pending",
1323
+ Viewed: "viewed",
1324
+ Completed: "completed",
1325
+ };
1326
+ export const UpdateFormBody_statusObject = {
1327
+ Draft: "draft",
1328
+ Published: "published",
1329
+ Archived: "archived",
1330
+ };
1331
+ /* tslint:enable */
1332
+ /* eslint-enable */
1333
+ //# sourceMappingURL=index.js.map