@formalingo/sdk 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +214 -0
- package/dist/client/api/index.d.ts +20 -0
- package/dist/client/api/index.d.ts.map +1 -0
- package/dist/client/api/index.js +20 -0
- package/dist/client/api/index.js.map +1 -0
- package/dist/client/api/v1/documents/index.d.ts +163 -0
- package/dist/client/api/v1/documents/index.d.ts.map +1 -0
- package/dist/client/api/v1/documents/index.js +164 -0
- package/dist/client/api/v1/documents/index.js.map +1 -0
- package/dist/client/api/v1/documents/item/fields/index.d.ts +111 -0
- package/dist/client/api/v1/documents/item/fields/index.d.ts.map +1 -0
- package/dist/client/api/v1/documents/item/fields/index.js +115 -0
- package/dist/client/api/v1/documents/item/fields/index.js.map +1 -0
- package/dist/client/api/v1/documents/item/fields/item/index.d.ts +221 -0
- package/dist/client/api/v1/documents/item/fields/item/index.d.ts.map +1 -0
- package/dist/client/api/v1/documents/item/fields/item/index.js +218 -0
- package/dist/client/api/v1/documents/item/fields/item/index.js.map +1 -0
- package/dist/client/api/v1/documents/item/index.d.ts +207 -0
- package/dist/client/api/v1/documents/item/index.d.ts.map +1 -0
- package/dist/client/api/v1/documents/item/index.js +217 -0
- package/dist/client/api/v1/documents/item/index.js.map +1 -0
- package/dist/client/api/v1/documents/item/signerRoles/index.d.ts +111 -0
- package/dist/client/api/v1/documents/item/signerRoles/index.d.ts.map +1 -0
- package/dist/client/api/v1/documents/item/signerRoles/index.js +115 -0
- package/dist/client/api/v1/documents/item/signerRoles/index.js.map +1 -0
- package/dist/client/api/v1/documents/item/signerRoles/item/index.d.ts +56 -0
- package/dist/client/api/v1/documents/item/signerRoles/item/index.d.ts.map +1 -0
- package/dist/client/api/v1/documents/item/signerRoles/item/index.js +59 -0
- package/dist/client/api/v1/documents/item/signerRoles/item/index.js.map +1 -0
- package/dist/client/api/v1/documents/item/submissions/index.d.ts +111 -0
- package/dist/client/api/v1/documents/item/submissions/index.d.ts.map +1 -0
- package/dist/client/api/v1/documents/item/submissions/index.js +116 -0
- package/dist/client/api/v1/documents/item/submissions/index.js.map +1 -0
- package/dist/client/api/v1/documents/item/submissions/item/index.d.ts +70 -0
- package/dist/client/api/v1/documents/item/submissions/item/index.d.ts.map +1 -0
- package/dist/client/api/v1/documents/item/submissions/item/index.js +75 -0
- package/dist/client/api/v1/documents/item/submissions/item/index.js.map +1 -0
- package/dist/client/api/v1/documents/item/submissions/item/pdf/index.d.ts +91 -0
- package/dist/client/api/v1/documents/item/submissions/item/pdf/index.d.ts.map +1 -0
- package/dist/client/api/v1/documents/item/submissions/item/pdf/index.js +100 -0
- package/dist/client/api/v1/documents/item/submissions/item/pdf/index.js.map +1 -0
- package/dist/client/api/v1/documents/item/submissions/item/signers/index.d.ts +68 -0
- package/dist/client/api/v1/documents/item/submissions/item/signers/index.d.ts.map +1 -0
- package/dist/client/api/v1/documents/item/submissions/item/signers/index.js +71 -0
- package/dist/client/api/v1/documents/item/submissions/item/signers/index.js.map +1 -0
- package/dist/client/api/v1/documents/item/submissions/item/signers/item/index.d.ts +146 -0
- package/dist/client/api/v1/documents/item/submissions/item/signers/item/index.d.ts.map +1 -0
- package/dist/client/api/v1/documents/item/submissions/item/signers/item/index.js +156 -0
- package/dist/client/api/v1/documents/item/submissions/item/signers/item/index.js.map +1 -0
- package/dist/client/api/v1/documents/item/submissions/item/signers/item/responses/index.d.ts +134 -0
- package/dist/client/api/v1/documents/item/submissions/item/signers/item/responses/index.d.ts.map +1 -0
- package/dist/client/api/v1/documents/item/submissions/item/signers/item/responses/index.js +145 -0
- package/dist/client/api/v1/documents/item/submissions/item/signers/item/responses/index.js.map +1 -0
- package/dist/client/api/v1/forms/index.d.ts +231 -0
- package/dist/client/api/v1/forms/index.d.ts.map +1 -0
- package/dist/client/api/v1/forms/index.js +244 -0
- package/dist/client/api/v1/forms/index.js.map +1 -0
- package/dist/client/api/v1/forms/item/index.d.ts +241 -0
- package/dist/client/api/v1/forms/item/index.d.ts.map +1 -0
- package/dist/client/api/v1/forms/item/index.js +261 -0
- package/dist/client/api/v1/forms/item/index.js.map +1 -0
- package/dist/client/api/v1/forms/item/questions/index.d.ts +111 -0
- package/dist/client/api/v1/forms/item/questions/index.d.ts.map +1 -0
- package/dist/client/api/v1/forms/item/questions/index.js +115 -0
- package/dist/client/api/v1/forms/item/questions/index.js.map +1 -0
- package/dist/client/api/v1/forms/item/questions/item/index.d.ts +196 -0
- package/dist/client/api/v1/forms/item/questions/item/index.d.ts.map +1 -0
- package/dist/client/api/v1/forms/item/questions/item/index.js +193 -0
- package/dist/client/api/v1/forms/item/questions/item/index.js.map +1 -0
- package/dist/client/api/v1/forms/item/recipients/index.d.ts +111 -0
- package/dist/client/api/v1/forms/item/recipients/index.d.ts.map +1 -0
- package/dist/client/api/v1/forms/item/recipients/index.js +116 -0
- package/dist/client/api/v1/forms/item/recipients/index.js.map +1 -0
- package/dist/client/api/v1/forms/item/recipients/item/index.d.ts +109 -0
- package/dist/client/api/v1/forms/item/recipients/item/index.d.ts.map +1 -0
- package/dist/client/api/v1/forms/item/recipients/item/index.js +116 -0
- package/dist/client/api/v1/forms/item/recipients/item/index.js.map +1 -0
- package/dist/client/api/v1/forms/item/recipients/item/responses/index.d.ts +134 -0
- package/dist/client/api/v1/forms/item/recipients/item/responses/index.d.ts.map +1 -0
- package/dist/client/api/v1/forms/item/recipients/item/responses/index.js +145 -0
- package/dist/client/api/v1/forms/item/recipients/item/responses/index.js.map +1 -0
- package/dist/client/api/v1/forms/item/sections/index.d.ts +111 -0
- package/dist/client/api/v1/forms/item/sections/index.d.ts.map +1 -0
- package/dist/client/api/v1/forms/item/sections/index.js +115 -0
- package/dist/client/api/v1/forms/item/sections/index.js.map +1 -0
- package/dist/client/api/v1/forms/item/sections/item/index.d.ts +100 -0
- package/dist/client/api/v1/forms/item/sections/item/index.d.ts.map +1 -0
- package/dist/client/api/v1/forms/item/sections/item/index.js +106 -0
- package/dist/client/api/v1/forms/item/sections/item/index.js.map +1 -0
- package/dist/client/api/v1/index.d.ts +25 -0
- package/dist/client/api/v1/index.d.ts.map +1 -0
- package/dist/client/api/v1/index.js +27 -0
- package/dist/client/api/v1/index.js.map +1 -0
- package/dist/client/formalingoClient.d.ts +20 -7
- package/dist/client/formalingoClient.d.ts.map +1 -1
- package/dist/client/formalingoClient.js +56 -2
- package/dist/client/formalingoClient.js.map +1 -1
- package/dist/client/models/index.d.ts +1597 -0
- package/dist/client/models/index.d.ts.map +1 -0
- package/dist/client/models/index.js +1589 -0
- package/dist/client/models/index.js.map +1 -0
- package/dist/index.d.ts +8 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,1589 @@
|
|
|
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 {RecipientResponse}
|
|
181
|
+
*/
|
|
182
|
+
// @ts-ignore
|
|
183
|
+
export function createRecipientResponseFromDiscriminatorValue(parseNode) {
|
|
184
|
+
return deserializeIntoRecipientResponse;
|
|
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 {Section}
|
|
190
|
+
*/
|
|
191
|
+
// @ts-ignore
|
|
192
|
+
export function createSectionFromDiscriminatorValue(parseNode) {
|
|
193
|
+
return deserializeIntoSection;
|
|
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 {Signer}
|
|
199
|
+
*/
|
|
200
|
+
// @ts-ignore
|
|
201
|
+
export function createSignerFromDiscriminatorValue(parseNode) {
|
|
202
|
+
return deserializeIntoSigner;
|
|
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_prefill}
|
|
208
|
+
*/
|
|
209
|
+
// @ts-ignore
|
|
210
|
+
export function createSignerInput_prefillFromDiscriminatorValue(parseNode) {
|
|
211
|
+
return deserializeIntoSignerInput_prefill;
|
|
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 {SignerInput}
|
|
217
|
+
*/
|
|
218
|
+
// @ts-ignore
|
|
219
|
+
export function createSignerInputFromDiscriminatorValue(parseNode) {
|
|
220
|
+
return deserializeIntoSignerInput;
|
|
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 {SignerResponse}
|
|
226
|
+
*/
|
|
227
|
+
// @ts-ignore
|
|
228
|
+
export function createSignerResponseFromDiscriminatorValue(parseNode) {
|
|
229
|
+
return deserializeIntoSignerResponse;
|
|
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 {SignerRole}
|
|
235
|
+
*/
|
|
236
|
+
// @ts-ignore
|
|
237
|
+
export function createSignerRoleFromDiscriminatorValue(parseNode) {
|
|
238
|
+
return deserializeIntoSignerRole;
|
|
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 {SubmissionPdf}
|
|
244
|
+
*/
|
|
245
|
+
// @ts-ignore
|
|
246
|
+
export function createSubmissionPdfFromDiscriminatorValue(parseNode) {
|
|
247
|
+
return deserializeIntoSubmissionPdf;
|
|
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 {UpdateFormBody}
|
|
253
|
+
*/
|
|
254
|
+
// @ts-ignore
|
|
255
|
+
export function createUpdateFormBodyFromDiscriminatorValue(parseNode) {
|
|
256
|
+
return deserializeIntoUpdateFormBody;
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
260
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
261
|
+
* @returns {UpdateRecipientBody}
|
|
262
|
+
*/
|
|
263
|
+
// @ts-ignore
|
|
264
|
+
export function createUpdateRecipientBodyFromDiscriminatorValue(parseNode) {
|
|
265
|
+
return deserializeIntoUpdateRecipientBody;
|
|
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 {UpdateRecipientResponsesBody_responses}
|
|
271
|
+
*/
|
|
272
|
+
// @ts-ignore
|
|
273
|
+
export function createUpdateRecipientResponsesBody_responsesFromDiscriminatorValue(parseNode) {
|
|
274
|
+
return deserializeIntoUpdateRecipientResponsesBody_responses;
|
|
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 {UpdateRecipientResponsesBody}
|
|
280
|
+
*/
|
|
281
|
+
// @ts-ignore
|
|
282
|
+
export function createUpdateRecipientResponsesBodyFromDiscriminatorValue(parseNode) {
|
|
283
|
+
return deserializeIntoUpdateRecipientResponsesBody;
|
|
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 {UpdateSectionBody}
|
|
289
|
+
*/
|
|
290
|
+
// @ts-ignore
|
|
291
|
+
export function createUpdateSectionBodyFromDiscriminatorValue(parseNode) {
|
|
292
|
+
return deserializeIntoUpdateSectionBody;
|
|
293
|
+
}
|
|
294
|
+
/**
|
|
295
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
296
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
297
|
+
* @returns {UpdateSignerResponsesBody_responses}
|
|
298
|
+
*/
|
|
299
|
+
// @ts-ignore
|
|
300
|
+
export function createUpdateSignerResponsesBody_responsesFromDiscriminatorValue(parseNode) {
|
|
301
|
+
return deserializeIntoUpdateSignerResponsesBody_responses;
|
|
302
|
+
}
|
|
303
|
+
/**
|
|
304
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
305
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
306
|
+
* @returns {UpdateSignerResponsesBody}
|
|
307
|
+
*/
|
|
308
|
+
// @ts-ignore
|
|
309
|
+
export function createUpdateSignerResponsesBodyFromDiscriminatorValue(parseNode) {
|
|
310
|
+
return deserializeIntoUpdateSignerResponsesBody;
|
|
311
|
+
}
|
|
312
|
+
/**
|
|
313
|
+
* The deserialization information for the current model
|
|
314
|
+
* @param CreateFieldBody The instance to deserialize into.
|
|
315
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
316
|
+
*/
|
|
317
|
+
// @ts-ignore
|
|
318
|
+
export function deserializeIntoCreateFieldBody(createFieldBody = {}) {
|
|
319
|
+
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(); },
|
|
334
|
+
};
|
|
335
|
+
}
|
|
336
|
+
/**
|
|
337
|
+
* The deserialization information for the current model
|
|
338
|
+
* @param CreateFieldBody_options The instance to deserialize into.
|
|
339
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
340
|
+
*/
|
|
341
|
+
// @ts-ignore
|
|
342
|
+
export function deserializeIntoCreateFieldBody_options(createFieldBody_options = {}) {
|
|
343
|
+
return {};
|
|
344
|
+
}
|
|
345
|
+
/**
|
|
346
|
+
* The deserialization information for the current model
|
|
347
|
+
* @param CreateFormBody The instance to deserialize into.
|
|
348
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
349
|
+
*/
|
|
350
|
+
// @ts-ignore
|
|
351
|
+
export function deserializeIntoCreateFormBody(createFormBody = {}) {
|
|
352
|
+
return {
|
|
353
|
+
"description": n => { createFormBody.description = n.getStringValue(); },
|
|
354
|
+
"title": n => { createFormBody.title = n.getStringValue(); },
|
|
355
|
+
};
|
|
356
|
+
}
|
|
357
|
+
/**
|
|
358
|
+
* The deserialization information for the current model
|
|
359
|
+
* @param CreateQuestionBody The instance to deserialize into.
|
|
360
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
361
|
+
*/
|
|
362
|
+
// @ts-ignore
|
|
363
|
+
export function deserializeIntoCreateQuestionBody(createQuestionBody = {}) {
|
|
364
|
+
return {
|
|
365
|
+
"context": n => { createQuestionBody.context = n.getStringValue(); },
|
|
366
|
+
"is_pii": n => { createQuestionBody.isPii = n.getBooleanValue(); },
|
|
367
|
+
"is_required": n => { createQuestionBody.isRequired = n.getBooleanValue(); },
|
|
368
|
+
"options": n => { createQuestionBody.options = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
|
|
369
|
+
"order": n => { createQuestionBody.order = n.getNumberValue(); },
|
|
370
|
+
"priority": n => { createQuestionBody.priority = n.getEnumValue(CreateQuestionBody_priorityObject) ?? CreateQuestionBody_priorityObject.Low; },
|
|
371
|
+
"question_text": n => { createQuestionBody.questionText = n.getStringValue(); },
|
|
372
|
+
"section_id": n => { createQuestionBody.sectionId = n.getGuidValue(); },
|
|
373
|
+
"type": n => { createQuestionBody.type = n.getEnumValue(CreateQuestionBody_typeObject); },
|
|
374
|
+
};
|
|
375
|
+
}
|
|
376
|
+
/**
|
|
377
|
+
* The deserialization information for the current model
|
|
378
|
+
* @param CreateRecipientBody The instance to deserialize into.
|
|
379
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
380
|
+
*/
|
|
381
|
+
// @ts-ignore
|
|
382
|
+
export function deserializeIntoCreateRecipientBody(createRecipientBody = {}) {
|
|
383
|
+
return {
|
|
384
|
+
"email": n => { createRecipientBody.email = n.getStringValue(); },
|
|
385
|
+
"expires_at": n => { createRecipientBody.expiresAt = n.getDateValue(); },
|
|
386
|
+
"label": n => { createRecipientBody.label = n.getStringValue(); },
|
|
387
|
+
"password": n => { createRecipientBody.password = n.getStringValue(); },
|
|
388
|
+
"phone": n => { createRecipientBody.phone = n.getStringValue(); },
|
|
389
|
+
"prefill": n => { createRecipientBody.prefill = n.getObjectValue(createCreateRecipientBody_prefillFromDiscriminatorValue); },
|
|
390
|
+
"suppress_notifications": n => { createRecipientBody.suppressNotifications = n.getBooleanValue(); },
|
|
391
|
+
};
|
|
392
|
+
}
|
|
393
|
+
/**
|
|
394
|
+
* The deserialization information for the current model
|
|
395
|
+
* @param CreateRecipientBody_prefill The instance to deserialize into.
|
|
396
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
397
|
+
*/
|
|
398
|
+
// @ts-ignore
|
|
399
|
+
export function deserializeIntoCreateRecipientBody_prefill(createRecipientBody_prefill = {}) {
|
|
400
|
+
return {};
|
|
401
|
+
}
|
|
402
|
+
/**
|
|
403
|
+
* The deserialization information for the current model
|
|
404
|
+
* @param CreateSectionBody The instance to deserialize into.
|
|
405
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
406
|
+
*/
|
|
407
|
+
// @ts-ignore
|
|
408
|
+
export function deserializeIntoCreateSectionBody(createSectionBody = {}) {
|
|
409
|
+
return {
|
|
410
|
+
"order": n => { createSectionBody.order = n.getNumberValue(); },
|
|
411
|
+
"title": n => { createSectionBody.title = n.getStringValue(); },
|
|
412
|
+
};
|
|
413
|
+
}
|
|
414
|
+
/**
|
|
415
|
+
* The deserialization information for the current model
|
|
416
|
+
* @param CreateSignerRoleBody The instance to deserialize into.
|
|
417
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
418
|
+
*/
|
|
419
|
+
// @ts-ignore
|
|
420
|
+
export function deserializeIntoCreateSignerRoleBody(createSignerRoleBody = {}) {
|
|
421
|
+
return {
|
|
422
|
+
"label": n => { createSignerRoleBody.label = n.getStringValue(); },
|
|
423
|
+
};
|
|
424
|
+
}
|
|
425
|
+
/**
|
|
426
|
+
* The deserialization information for the current model
|
|
427
|
+
* @param CreateSubmissionBody The instance to deserialize into.
|
|
428
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
429
|
+
*/
|
|
430
|
+
// @ts-ignore
|
|
431
|
+
export function deserializeIntoCreateSubmissionBody(createSubmissionBody = {}) {
|
|
432
|
+
return {
|
|
433
|
+
"signers": n => { createSubmissionBody.signers = n.getCollectionOfObjectValues(createSignerInputFromDiscriminatorValue); },
|
|
434
|
+
"suppress_notifications": n => { createSubmissionBody.suppressNotifications = n.getBooleanValue(); },
|
|
435
|
+
};
|
|
436
|
+
}
|
|
437
|
+
/**
|
|
438
|
+
* The deserialization information for the current model
|
|
439
|
+
* @param Document The instance to deserialize into.
|
|
440
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
441
|
+
*/
|
|
442
|
+
// @ts-ignore
|
|
443
|
+
export function deserializeIntoDocument(document = {}) {
|
|
444
|
+
return {
|
|
445
|
+
"completedPdfUrl": n => { document.completedPdfUrl = n.getStringValue(); },
|
|
446
|
+
"createdAt": n => { document.createdAt = n.getDateValue(); },
|
|
447
|
+
"creatorId": n => { document.creatorId = n.getGuidValue(); },
|
|
448
|
+
"deletedAt": n => { document.deletedAt = n.getDateValue(); },
|
|
449
|
+
"fileType": n => { document.fileType = n.getStringValue(); },
|
|
450
|
+
"id": n => { document.id = n.getGuidValue(); },
|
|
451
|
+
"originalFilename": n => { document.originalFilename = n.getStringValue(); },
|
|
452
|
+
"originalUrl": n => { document.originalUrl = n.getStringValue(); },
|
|
453
|
+
"pageCount": n => { document.pageCount = n.getNumberValue(); },
|
|
454
|
+
"pageDimensions": n => { document.pageDimensions = n.getCollectionOfObjectValues(createDocument_pageDimensionsFromDiscriminatorValue); },
|
|
455
|
+
"status": n => { document.status = n.getEnumValue(Document_statusObject); },
|
|
456
|
+
"title": n => { document.title = n.getStringValue(); },
|
|
457
|
+
"updatedAt": n => { document.updatedAt = n.getDateValue(); },
|
|
458
|
+
"workspaceId": n => { document.workspaceId = n.getGuidValue(); },
|
|
459
|
+
};
|
|
460
|
+
}
|
|
461
|
+
/**
|
|
462
|
+
* The deserialization information for the current model
|
|
463
|
+
* @param Document_pageDimensions The instance to deserialize into.
|
|
464
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
465
|
+
*/
|
|
466
|
+
// @ts-ignore
|
|
467
|
+
export function deserializeIntoDocument_pageDimensions(document_pageDimensions = {}) {
|
|
468
|
+
return {
|
|
469
|
+
"height": n => { document_pageDimensions.height = n.getNumberValue(); },
|
|
470
|
+
"width": n => { document_pageDimensions.width = n.getNumberValue(); },
|
|
471
|
+
};
|
|
472
|
+
}
|
|
473
|
+
/**
|
|
474
|
+
* The deserialization information for the current model
|
|
475
|
+
* @param DocumentField The instance to deserialize into.
|
|
476
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
477
|
+
*/
|
|
478
|
+
// @ts-ignore
|
|
479
|
+
export function deserializeIntoDocumentField(documentField = {}) {
|
|
480
|
+
return {
|
|
481
|
+
"assigneeRole": n => { documentField.assigneeRole = n.getStringValue(); },
|
|
482
|
+
"createdAt": n => { documentField.createdAt = n.getDateValue(); },
|
|
483
|
+
"defaultValue": n => { documentField.defaultValue = n.getStringValue(); },
|
|
484
|
+
"direction": n => { documentField.direction = n.getEnumValue(DocumentField_directionObject); },
|
|
485
|
+
"documentId": n => { documentField.documentId = n.getGuidValue(); },
|
|
486
|
+
"height": n => { documentField.height = n.getNumberValue(); },
|
|
487
|
+
"id": n => { documentField.id = n.getGuidValue(); },
|
|
488
|
+
"isReadOnly": n => { documentField.isReadOnly = n.getBooleanValue(); },
|
|
489
|
+
"isRequired": n => { documentField.isRequired = n.getBooleanValue(); },
|
|
490
|
+
"label": n => { documentField.label = n.getStringValue(); },
|
|
491
|
+
"options": n => { documentField.options = n.getObjectValue(createDocumentField_optionsFromDiscriminatorValue); },
|
|
492
|
+
"order": n => { documentField.order = n.getNumberValue(); },
|
|
493
|
+
"pageNumber": n => { documentField.pageNumber = n.getNumberValue(); },
|
|
494
|
+
"type": n => { documentField.type = n.getEnumValue(DocumentField_typeObject); },
|
|
495
|
+
"width": n => { documentField.width = n.getNumberValue(); },
|
|
496
|
+
"x": n => { documentField.x = n.getNumberValue(); },
|
|
497
|
+
"y": n => { documentField.y = n.getNumberValue(); },
|
|
498
|
+
};
|
|
499
|
+
}
|
|
500
|
+
/**
|
|
501
|
+
* The deserialization information for the current model
|
|
502
|
+
* @param DocumentField_options The instance to deserialize into.
|
|
503
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
504
|
+
*/
|
|
505
|
+
// @ts-ignore
|
|
506
|
+
export function deserializeIntoDocumentField_options(documentField_options = {}) {
|
|
507
|
+
return {};
|
|
508
|
+
}
|
|
509
|
+
/**
|
|
510
|
+
* The deserialization information for the current model
|
|
511
|
+
* @param DocumentSubmission The instance to deserialize into.
|
|
512
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
513
|
+
*/
|
|
514
|
+
// @ts-ignore
|
|
515
|
+
export function deserializeIntoDocumentSubmission(documentSubmission = {}) {
|
|
516
|
+
return {
|
|
517
|
+
"completedAt": n => { documentSubmission.completedAt = n.getDateValue(); },
|
|
518
|
+
"completedPdfUrl": n => { documentSubmission.completedPdfUrl = n.getStringValue(); },
|
|
519
|
+
"createdAt": n => { documentSubmission.createdAt = n.getDateValue(); },
|
|
520
|
+
"documentId": n => { documentSubmission.documentId = n.getGuidValue(); },
|
|
521
|
+
"id": n => { documentSubmission.id = n.getGuidValue(); },
|
|
522
|
+
"signers": n => { documentSubmission.signers = n.getCollectionOfObjectValues(createSignerFromDiscriminatorValue); },
|
|
523
|
+
"status": n => { documentSubmission.status = n.getEnumValue(DocumentSubmission_statusObject); },
|
|
524
|
+
};
|
|
525
|
+
}
|
|
526
|
+
/**
|
|
527
|
+
* The deserialization information for the current model
|
|
528
|
+
* @param Form The instance to deserialize into.
|
|
529
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
530
|
+
*/
|
|
531
|
+
// @ts-ignore
|
|
532
|
+
export function deserializeIntoForm(form = {}) {
|
|
533
|
+
return {
|
|
534
|
+
"branding": n => { form.branding = n.getObjectValue(createForm_brandingFromDiscriminatorValue); },
|
|
535
|
+
"createdAt": n => { form.createdAt = n.getDateValue(); },
|
|
536
|
+
"creatorId": n => { form.creatorId = n.getGuidValue(); },
|
|
537
|
+
"description": n => { form.description = n.getStringValue(); },
|
|
538
|
+
"id": n => { form.id = n.getGuidValue(); },
|
|
539
|
+
"publicToken": n => { form.publicToken = n.getStringValue(); },
|
|
540
|
+
"question_count": n => { form.questionCount = n.getNumberValue(); },
|
|
541
|
+
"settings": n => { form.settings = n.getObjectValue(createForm_settingsFromDiscriminatorValue); },
|
|
542
|
+
"status": n => { form.status = n.getEnumValue(Form_statusObject); },
|
|
543
|
+
"title": n => { form.title = n.getStringValue(); },
|
|
544
|
+
"updatedAt": n => { form.updatedAt = n.getDateValue(); },
|
|
545
|
+
"workspaceId": n => { form.workspaceId = n.getGuidValue(); },
|
|
546
|
+
};
|
|
547
|
+
}
|
|
548
|
+
/**
|
|
549
|
+
* The deserialization information for the current model
|
|
550
|
+
* @param Form_branding The instance to deserialize into.
|
|
551
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
552
|
+
*/
|
|
553
|
+
// @ts-ignore
|
|
554
|
+
export function deserializeIntoForm_branding(form_branding = {}) {
|
|
555
|
+
return {};
|
|
556
|
+
}
|
|
557
|
+
/**
|
|
558
|
+
* The deserialization information for the current model
|
|
559
|
+
* @param Form_settings The instance to deserialize into.
|
|
560
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
561
|
+
*/
|
|
562
|
+
// @ts-ignore
|
|
563
|
+
export function deserializeIntoForm_settings(form_settings = {}) {
|
|
564
|
+
return {};
|
|
565
|
+
}
|
|
566
|
+
/**
|
|
567
|
+
* The deserialization information for the current model
|
|
568
|
+
* @param Question The instance to deserialize into.
|
|
569
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
570
|
+
*/
|
|
571
|
+
// @ts-ignore
|
|
572
|
+
export function deserializeIntoQuestion(question = {}) {
|
|
573
|
+
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); },
|
|
586
|
+
};
|
|
587
|
+
}
|
|
588
|
+
/**
|
|
589
|
+
* The deserialization information for the current model
|
|
590
|
+
* @param Recipient The instance to deserialize into.
|
|
591
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
592
|
+
*/
|
|
593
|
+
// @ts-ignore
|
|
594
|
+
export function deserializeIntoRecipient(recipient = {}) {
|
|
595
|
+
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(); },
|
|
613
|
+
};
|
|
614
|
+
}
|
|
615
|
+
/**
|
|
616
|
+
* The deserialization information for the current model
|
|
617
|
+
* @param RecipientResponse The instance to deserialize into.
|
|
618
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
619
|
+
*/
|
|
620
|
+
// @ts-ignore
|
|
621
|
+
export function deserializeIntoRecipientResponse(recipientResponse = {}) {
|
|
622
|
+
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); },
|
|
627
|
+
};
|
|
628
|
+
}
|
|
629
|
+
/**
|
|
630
|
+
* The deserialization information for the current model
|
|
631
|
+
* @param Section The instance to deserialize into.
|
|
632
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
633
|
+
*/
|
|
634
|
+
// @ts-ignore
|
|
635
|
+
export function deserializeIntoSection(section = {}) {
|
|
636
|
+
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(); },
|
|
642
|
+
};
|
|
643
|
+
}
|
|
644
|
+
/**
|
|
645
|
+
* The deserialization information for the current model
|
|
646
|
+
* @param Signer The instance to deserialize into.
|
|
647
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
648
|
+
*/
|
|
649
|
+
// @ts-ignore
|
|
650
|
+
export function deserializeIntoSigner(signer = {}) {
|
|
651
|
+
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(); },
|
|
666
|
+
};
|
|
667
|
+
}
|
|
668
|
+
/**
|
|
669
|
+
* The deserialization information for the current model
|
|
670
|
+
* @param SignerInput The instance to deserialize into.
|
|
671
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
672
|
+
*/
|
|
673
|
+
// @ts-ignore
|
|
674
|
+
export function deserializeIntoSignerInput(signerInput = {}) {
|
|
675
|
+
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(); },
|
|
684
|
+
};
|
|
685
|
+
}
|
|
686
|
+
/**
|
|
687
|
+
* The deserialization information for the current model
|
|
688
|
+
* @param SignerInput_prefill The instance to deserialize into.
|
|
689
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
690
|
+
*/
|
|
691
|
+
// @ts-ignore
|
|
692
|
+
export function deserializeIntoSignerInput_prefill(signerInput_prefill = {}) {
|
|
693
|
+
return {};
|
|
694
|
+
}
|
|
695
|
+
/**
|
|
696
|
+
* The deserialization information for the current model
|
|
697
|
+
* @param SignerResponse The instance to deserialize into.
|
|
698
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
699
|
+
*/
|
|
700
|
+
// @ts-ignore
|
|
701
|
+
export function deserializeIntoSignerResponse(signerResponse = {}) {
|
|
702
|
+
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); },
|
|
707
|
+
};
|
|
708
|
+
}
|
|
709
|
+
/**
|
|
710
|
+
* The deserialization information for the current model
|
|
711
|
+
* @param SignerRole The instance to deserialize into.
|
|
712
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
713
|
+
*/
|
|
714
|
+
// @ts-ignore
|
|
715
|
+
export function deserializeIntoSignerRole(signerRole = {}) {
|
|
716
|
+
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(); },
|
|
724
|
+
};
|
|
725
|
+
}
|
|
726
|
+
/**
|
|
727
|
+
* The deserialization information for the current model
|
|
728
|
+
* @param SubmissionPdf The instance to deserialize into.
|
|
729
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
730
|
+
*/
|
|
731
|
+
// @ts-ignore
|
|
732
|
+
export function deserializeIntoSubmissionPdf(submissionPdf = {}) {
|
|
733
|
+
return {
|
|
734
|
+
"completedAt": n => { submissionPdf.completedAt = n.getDateValue(); },
|
|
735
|
+
"downloadUrl": n => { submissionPdf.downloadUrl = n.getStringValue(); },
|
|
736
|
+
"expiresIn": n => { submissionPdf.expiresIn = n.getNumberValue(); },
|
|
737
|
+
"submissionId": n => { submissionPdf.submissionId = n.getGuidValue(); },
|
|
738
|
+
};
|
|
739
|
+
}
|
|
740
|
+
/**
|
|
741
|
+
* The deserialization information for the current model
|
|
742
|
+
* @param UpdateFormBody The instance to deserialize into.
|
|
743
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
744
|
+
*/
|
|
745
|
+
// @ts-ignore
|
|
746
|
+
export function deserializeIntoUpdateFormBody(updateFormBody = {}) {
|
|
747
|
+
return {
|
|
748
|
+
"description": n => { updateFormBody.description = n.getStringValue(); },
|
|
749
|
+
"status": n => { updateFormBody.status = n.getEnumValue(UpdateFormBody_statusObject); },
|
|
750
|
+
"title": n => { updateFormBody.title = n.getStringValue(); },
|
|
751
|
+
};
|
|
752
|
+
}
|
|
753
|
+
/**
|
|
754
|
+
* The deserialization information for the current model
|
|
755
|
+
* @param UpdateRecipientBody The instance to deserialize into.
|
|
756
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
757
|
+
*/
|
|
758
|
+
// @ts-ignore
|
|
759
|
+
export function deserializeIntoUpdateRecipientBody(updateRecipientBody = {}) {
|
|
760
|
+
return {
|
|
761
|
+
"email": n => { updateRecipientBody.email = n.getStringValue(); },
|
|
762
|
+
"expires_at": n => { updateRecipientBody.expiresAt = n.getDateValue(); },
|
|
763
|
+
"is_active": n => { updateRecipientBody.isActive = n.getBooleanValue(); },
|
|
764
|
+
"label": n => { updateRecipientBody.label = n.getStringValue(); },
|
|
765
|
+
"password": n => { updateRecipientBody.password = n.getStringValue(); },
|
|
766
|
+
"phone": n => { updateRecipientBody.phone = n.getStringValue(); },
|
|
767
|
+
};
|
|
768
|
+
}
|
|
769
|
+
/**
|
|
770
|
+
* The deserialization information for the current model
|
|
771
|
+
* @param UpdateRecipientResponsesBody The instance to deserialize into.
|
|
772
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
773
|
+
*/
|
|
774
|
+
// @ts-ignore
|
|
775
|
+
export function deserializeIntoUpdateRecipientResponsesBody(updateRecipientResponsesBody = {}) {
|
|
776
|
+
return {
|
|
777
|
+
"responses": n => { updateRecipientResponsesBody.responses = n.getObjectValue(createUpdateRecipientResponsesBody_responsesFromDiscriminatorValue); },
|
|
778
|
+
};
|
|
779
|
+
}
|
|
780
|
+
/**
|
|
781
|
+
* The deserialization information for the current model
|
|
782
|
+
* @param UpdateRecipientResponsesBody_responses The instance to deserialize into.
|
|
783
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
784
|
+
*/
|
|
785
|
+
// @ts-ignore
|
|
786
|
+
export function deserializeIntoUpdateRecipientResponsesBody_responses(updateRecipientResponsesBody_responses = {}) {
|
|
787
|
+
return {};
|
|
788
|
+
}
|
|
789
|
+
/**
|
|
790
|
+
* The deserialization information for the current model
|
|
791
|
+
* @param UpdateSectionBody The instance to deserialize into.
|
|
792
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
793
|
+
*/
|
|
794
|
+
// @ts-ignore
|
|
795
|
+
export function deserializeIntoUpdateSectionBody(updateSectionBody = {}) {
|
|
796
|
+
return {
|
|
797
|
+
"order": n => { updateSectionBody.order = n.getNumberValue(); },
|
|
798
|
+
"title": n => { updateSectionBody.title = n.getStringValue(); },
|
|
799
|
+
};
|
|
800
|
+
}
|
|
801
|
+
/**
|
|
802
|
+
* The deserialization information for the current model
|
|
803
|
+
* @param UpdateSignerResponsesBody The instance to deserialize into.
|
|
804
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
805
|
+
*/
|
|
806
|
+
// @ts-ignore
|
|
807
|
+
export function deserializeIntoUpdateSignerResponsesBody(updateSignerResponsesBody = {}) {
|
|
808
|
+
return {
|
|
809
|
+
"responses": n => { updateSignerResponsesBody.responses = n.getObjectValue(createUpdateSignerResponsesBody_responsesFromDiscriminatorValue); },
|
|
810
|
+
};
|
|
811
|
+
}
|
|
812
|
+
/**
|
|
813
|
+
* The deserialization information for the current model
|
|
814
|
+
* @param UpdateSignerResponsesBody_responses The instance to deserialize into.
|
|
815
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
816
|
+
*/
|
|
817
|
+
// @ts-ignore
|
|
818
|
+
export function deserializeIntoUpdateSignerResponsesBody_responses(updateSignerResponsesBody_responses = {}) {
|
|
819
|
+
return {};
|
|
820
|
+
}
|
|
821
|
+
/**
|
|
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
|
|
826
|
+
*/
|
|
827
|
+
// @ts-ignore
|
|
828
|
+
export function serializeCreateFieldBody(writer, createFieldBody = {}, isSerializingDerivedType = false) {
|
|
829
|
+
if (!createFieldBody || isSerializingDerivedType) {
|
|
830
|
+
return;
|
|
831
|
+
}
|
|
832
|
+
writer.writeStringValue("assigneeRole", createFieldBody.assigneeRole);
|
|
833
|
+
writer.writeStringValue("defaultValue", createFieldBody.defaultValue);
|
|
834
|
+
writer.writeEnumValue("direction", createFieldBody.direction ?? CreateFieldBody_directionObject.Auto);
|
|
835
|
+
writer.writeNumberValue("height", createFieldBody.height);
|
|
836
|
+
writer.writeBooleanValue("isReadOnly", createFieldBody.isReadOnly);
|
|
837
|
+
writer.writeBooleanValue("isRequired", createFieldBody.isRequired);
|
|
838
|
+
writer.writeStringValue("label", createFieldBody.label);
|
|
839
|
+
writer.writeObjectValue("options", createFieldBody.options, serializeCreateFieldBody_options);
|
|
840
|
+
writer.writeNumberValue("order", createFieldBody.order);
|
|
841
|
+
writer.writeNumberValue("pageNumber", createFieldBody.pageNumber);
|
|
842
|
+
writer.writeEnumValue("type", createFieldBody.type);
|
|
843
|
+
writer.writeNumberValue("width", createFieldBody.width);
|
|
844
|
+
writer.writeNumberValue("x", createFieldBody.x);
|
|
845
|
+
writer.writeNumberValue("y", createFieldBody.y);
|
|
846
|
+
writer.writeAdditionalData(createFieldBody.additionalData);
|
|
847
|
+
}
|
|
848
|
+
/**
|
|
849
|
+
* Serializes information the current object
|
|
850
|
+
* @param CreateFieldBody_options The instance to serialize from.
|
|
851
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
852
|
+
* @param writer Serialization writer to use to serialize this model
|
|
853
|
+
*/
|
|
854
|
+
// @ts-ignore
|
|
855
|
+
export function serializeCreateFieldBody_options(writer, createFieldBody_options = {}, isSerializingDerivedType = false) {
|
|
856
|
+
if (!createFieldBody_options || isSerializingDerivedType) {
|
|
857
|
+
return;
|
|
858
|
+
}
|
|
859
|
+
writer.writeAdditionalData(createFieldBody_options.additionalData);
|
|
860
|
+
}
|
|
861
|
+
/**
|
|
862
|
+
* Serializes information the current object
|
|
863
|
+
* @param CreateFormBody The instance to serialize from.
|
|
864
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
865
|
+
* @param writer Serialization writer to use to serialize this model
|
|
866
|
+
*/
|
|
867
|
+
// @ts-ignore
|
|
868
|
+
export function serializeCreateFormBody(writer, createFormBody = {}, isSerializingDerivedType = false) {
|
|
869
|
+
if (!createFormBody || isSerializingDerivedType) {
|
|
870
|
+
return;
|
|
871
|
+
}
|
|
872
|
+
writer.writeStringValue("description", createFormBody.description);
|
|
873
|
+
writer.writeStringValue("title", createFormBody.title);
|
|
874
|
+
writer.writeAdditionalData(createFormBody.additionalData);
|
|
875
|
+
}
|
|
876
|
+
/**
|
|
877
|
+
* Serializes information the current object
|
|
878
|
+
* @param CreateQuestionBody The instance to serialize from.
|
|
879
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
880
|
+
* @param writer Serialization writer to use to serialize this model
|
|
881
|
+
*/
|
|
882
|
+
// @ts-ignore
|
|
883
|
+
export function serializeCreateQuestionBody(writer, createQuestionBody = {}, isSerializingDerivedType = false) {
|
|
884
|
+
if (!createQuestionBody || isSerializingDerivedType) {
|
|
885
|
+
return;
|
|
886
|
+
}
|
|
887
|
+
writer.writeStringValue("context", createQuestionBody.context);
|
|
888
|
+
writer.writeBooleanValue("is_pii", createQuestionBody.isPii);
|
|
889
|
+
writer.writeBooleanValue("is_required", createQuestionBody.isRequired);
|
|
890
|
+
writer.writeObjectValue("options", createQuestionBody.options);
|
|
891
|
+
writer.writeNumberValue("order", createQuestionBody.order);
|
|
892
|
+
writer.writeEnumValue("priority", createQuestionBody.priority ?? CreateQuestionBody_priorityObject.Low);
|
|
893
|
+
writer.writeStringValue("question_text", createQuestionBody.questionText);
|
|
894
|
+
writer.writeGuidValue("section_id", createQuestionBody.sectionId);
|
|
895
|
+
writer.writeEnumValue("type", createQuestionBody.type);
|
|
896
|
+
writer.writeAdditionalData(createQuestionBody.additionalData);
|
|
897
|
+
}
|
|
898
|
+
/**
|
|
899
|
+
* Serializes information the current object
|
|
900
|
+
* @param CreateRecipientBody The instance to serialize from.
|
|
901
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
902
|
+
* @param writer Serialization writer to use to serialize this model
|
|
903
|
+
*/
|
|
904
|
+
// @ts-ignore
|
|
905
|
+
export function serializeCreateRecipientBody(writer, createRecipientBody = {}, isSerializingDerivedType = false) {
|
|
906
|
+
if (!createRecipientBody || isSerializingDerivedType) {
|
|
907
|
+
return;
|
|
908
|
+
}
|
|
909
|
+
writer.writeStringValue("email", createRecipientBody.email);
|
|
910
|
+
writer.writeDateValue("expires_at", createRecipientBody.expiresAt);
|
|
911
|
+
writer.writeStringValue("label", createRecipientBody.label);
|
|
912
|
+
writer.writeStringValue("password", createRecipientBody.password);
|
|
913
|
+
writer.writeStringValue("phone", createRecipientBody.phone);
|
|
914
|
+
writer.writeObjectValue("prefill", createRecipientBody.prefill, serializeCreateRecipientBody_prefill);
|
|
915
|
+
writer.writeBooleanValue("suppress_notifications", createRecipientBody.suppressNotifications);
|
|
916
|
+
writer.writeAdditionalData(createRecipientBody.additionalData);
|
|
917
|
+
}
|
|
918
|
+
/**
|
|
919
|
+
* Serializes information the current object
|
|
920
|
+
* @param CreateRecipientBody_prefill The instance to serialize from.
|
|
921
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
922
|
+
* @param writer Serialization writer to use to serialize this model
|
|
923
|
+
*/
|
|
924
|
+
// @ts-ignore
|
|
925
|
+
export function serializeCreateRecipientBody_prefill(writer, createRecipientBody_prefill = {}, isSerializingDerivedType = false) {
|
|
926
|
+
if (!createRecipientBody_prefill || isSerializingDerivedType) {
|
|
927
|
+
return;
|
|
928
|
+
}
|
|
929
|
+
writer.writeAdditionalData(createRecipientBody_prefill.additionalData);
|
|
930
|
+
}
|
|
931
|
+
/**
|
|
932
|
+
* Serializes information the current object
|
|
933
|
+
* @param CreateSectionBody The instance to serialize from.
|
|
934
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
935
|
+
* @param writer Serialization writer to use to serialize this model
|
|
936
|
+
*/
|
|
937
|
+
// @ts-ignore
|
|
938
|
+
export function serializeCreateSectionBody(writer, createSectionBody = {}, isSerializingDerivedType = false) {
|
|
939
|
+
if (!createSectionBody || isSerializingDerivedType) {
|
|
940
|
+
return;
|
|
941
|
+
}
|
|
942
|
+
writer.writeNumberValue("order", createSectionBody.order);
|
|
943
|
+
writer.writeStringValue("title", createSectionBody.title);
|
|
944
|
+
writer.writeAdditionalData(createSectionBody.additionalData);
|
|
945
|
+
}
|
|
946
|
+
/**
|
|
947
|
+
* Serializes information the current object
|
|
948
|
+
* @param CreateSignerRoleBody The instance to serialize from.
|
|
949
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
950
|
+
* @param writer Serialization writer to use to serialize this model
|
|
951
|
+
*/
|
|
952
|
+
// @ts-ignore
|
|
953
|
+
export function serializeCreateSignerRoleBody(writer, createSignerRoleBody = {}, isSerializingDerivedType = false) {
|
|
954
|
+
if (!createSignerRoleBody || isSerializingDerivedType) {
|
|
955
|
+
return;
|
|
956
|
+
}
|
|
957
|
+
writer.writeStringValue("label", createSignerRoleBody.label);
|
|
958
|
+
writer.writeAdditionalData(createSignerRoleBody.additionalData);
|
|
959
|
+
}
|
|
960
|
+
/**
|
|
961
|
+
* Serializes information the current object
|
|
962
|
+
* @param CreateSubmissionBody The instance to serialize from.
|
|
963
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
964
|
+
* @param writer Serialization writer to use to serialize this model
|
|
965
|
+
*/
|
|
966
|
+
// @ts-ignore
|
|
967
|
+
export function serializeCreateSubmissionBody(writer, createSubmissionBody = {}, isSerializingDerivedType = false) {
|
|
968
|
+
if (!createSubmissionBody || isSerializingDerivedType) {
|
|
969
|
+
return;
|
|
970
|
+
}
|
|
971
|
+
writer.writeCollectionOfObjectValues("signers", createSubmissionBody.signers, serializeSignerInput);
|
|
972
|
+
writer.writeBooleanValue("suppress_notifications", createSubmissionBody.suppressNotifications);
|
|
973
|
+
writer.writeAdditionalData(createSubmissionBody.additionalData);
|
|
974
|
+
}
|
|
975
|
+
/**
|
|
976
|
+
* Serializes information the current object
|
|
977
|
+
* @param Document The instance to serialize from.
|
|
978
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
979
|
+
* @param writer Serialization writer to use to serialize this model
|
|
980
|
+
*/
|
|
981
|
+
// @ts-ignore
|
|
982
|
+
export function serializeDocument(writer, document = {}, isSerializingDerivedType = false) {
|
|
983
|
+
if (!document || isSerializingDerivedType) {
|
|
984
|
+
return;
|
|
985
|
+
}
|
|
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);
|
|
1001
|
+
}
|
|
1002
|
+
/**
|
|
1003
|
+
* Serializes information the current object
|
|
1004
|
+
* @param Document_pageDimensions The instance to serialize from.
|
|
1005
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
1006
|
+
* @param writer Serialization writer to use to serialize this model
|
|
1007
|
+
*/
|
|
1008
|
+
// @ts-ignore
|
|
1009
|
+
export function serializeDocument_pageDimensions(writer, document_pageDimensions = {}, isSerializingDerivedType = false) {
|
|
1010
|
+
if (!document_pageDimensions || isSerializingDerivedType) {
|
|
1011
|
+
return;
|
|
1012
|
+
}
|
|
1013
|
+
writer.writeNumberValue("height", document_pageDimensions.height);
|
|
1014
|
+
writer.writeNumberValue("width", document_pageDimensions.width);
|
|
1015
|
+
writer.writeAdditionalData(document_pageDimensions.additionalData);
|
|
1016
|
+
}
|
|
1017
|
+
/**
|
|
1018
|
+
* Serializes information the current object
|
|
1019
|
+
* @param DocumentField The instance to serialize from.
|
|
1020
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
1021
|
+
* @param writer Serialization writer to use to serialize this model
|
|
1022
|
+
*/
|
|
1023
|
+
// @ts-ignore
|
|
1024
|
+
export function serializeDocumentField(writer, documentField = {}, isSerializingDerivedType = false) {
|
|
1025
|
+
if (!documentField || isSerializingDerivedType) {
|
|
1026
|
+
return;
|
|
1027
|
+
}
|
|
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);
|
|
1046
|
+
}
|
|
1047
|
+
/**
|
|
1048
|
+
* Serializes information the current object
|
|
1049
|
+
* @param DocumentField_options The instance to serialize from.
|
|
1050
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
1051
|
+
* @param writer Serialization writer to use to serialize this model
|
|
1052
|
+
*/
|
|
1053
|
+
// @ts-ignore
|
|
1054
|
+
export function serializeDocumentField_options(writer, documentField_options = {}, isSerializingDerivedType = false) {
|
|
1055
|
+
if (!documentField_options || isSerializingDerivedType) {
|
|
1056
|
+
return;
|
|
1057
|
+
}
|
|
1058
|
+
writer.writeAdditionalData(documentField_options.additionalData);
|
|
1059
|
+
}
|
|
1060
|
+
/**
|
|
1061
|
+
* Serializes information the current object
|
|
1062
|
+
* @param DocumentSubmission The instance to serialize from.
|
|
1063
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
1064
|
+
* @param writer Serialization writer to use to serialize this model
|
|
1065
|
+
*/
|
|
1066
|
+
// @ts-ignore
|
|
1067
|
+
export function serializeDocumentSubmission(writer, documentSubmission = {}, isSerializingDerivedType = false) {
|
|
1068
|
+
if (!documentSubmission || isSerializingDerivedType) {
|
|
1069
|
+
return;
|
|
1070
|
+
}
|
|
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);
|
|
1079
|
+
}
|
|
1080
|
+
/**
|
|
1081
|
+
* Serializes information the current object
|
|
1082
|
+
* @param Form The instance to serialize from.
|
|
1083
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
1084
|
+
* @param writer Serialization writer to use to serialize this model
|
|
1085
|
+
*/
|
|
1086
|
+
// @ts-ignore
|
|
1087
|
+
export function serializeForm(writer, form = {}, isSerializingDerivedType = false) {
|
|
1088
|
+
if (!form || isSerializingDerivedType) {
|
|
1089
|
+
return;
|
|
1090
|
+
}
|
|
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);
|
|
1104
|
+
}
|
|
1105
|
+
/**
|
|
1106
|
+
* Serializes information the current object
|
|
1107
|
+
* @param Form_branding The instance to serialize from.
|
|
1108
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
1109
|
+
* @param writer Serialization writer to use to serialize this model
|
|
1110
|
+
*/
|
|
1111
|
+
// @ts-ignore
|
|
1112
|
+
export function serializeForm_branding(writer, form_branding = {}, isSerializingDerivedType = false) {
|
|
1113
|
+
if (!form_branding || isSerializingDerivedType) {
|
|
1114
|
+
return;
|
|
1115
|
+
}
|
|
1116
|
+
writer.writeAdditionalData(form_branding.additionalData);
|
|
1117
|
+
}
|
|
1118
|
+
/**
|
|
1119
|
+
* Serializes information the current object
|
|
1120
|
+
* @param Form_settings The instance to serialize from.
|
|
1121
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
1122
|
+
* @param writer Serialization writer to use to serialize this model
|
|
1123
|
+
*/
|
|
1124
|
+
// @ts-ignore
|
|
1125
|
+
export function serializeForm_settings(writer, form_settings = {}, isSerializingDerivedType = false) {
|
|
1126
|
+
if (!form_settings || isSerializingDerivedType) {
|
|
1127
|
+
return;
|
|
1128
|
+
}
|
|
1129
|
+
writer.writeAdditionalData(form_settings.additionalData);
|
|
1130
|
+
}
|
|
1131
|
+
/**
|
|
1132
|
+
* Serializes information the current object
|
|
1133
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
1134
|
+
* @param Question The instance to serialize from.
|
|
1135
|
+
* @param writer Serialization writer to use to serialize this model
|
|
1136
|
+
*/
|
|
1137
|
+
// @ts-ignore
|
|
1138
|
+
export function serializeQuestion(writer, question = {}, isSerializingDerivedType = false) {
|
|
1139
|
+
if (!question || isSerializingDerivedType) {
|
|
1140
|
+
return;
|
|
1141
|
+
}
|
|
1142
|
+
writer.writeStringValue("context", question.context);
|
|
1143
|
+
writer.writeDateValue("createdAt", question.createdAt);
|
|
1144
|
+
writer.writeGuidValue("formId", question.formId);
|
|
1145
|
+
writer.writeGuidValue("id", question.id);
|
|
1146
|
+
writer.writeBooleanValue("isPii", question.isPii);
|
|
1147
|
+
writer.writeBooleanValue("isRequired", question.isRequired);
|
|
1148
|
+
writer.writeObjectValue("options", question.options);
|
|
1149
|
+
writer.writeNumberValue("order", question.order);
|
|
1150
|
+
writer.writeEnumValue("priority", question.priority);
|
|
1151
|
+
writer.writeStringValue("questionText", question.questionText);
|
|
1152
|
+
writer.writeGuidValue("sectionId", question.sectionId);
|
|
1153
|
+
writer.writeEnumValue("type", question.type);
|
|
1154
|
+
writer.writeAdditionalData(question.additionalData);
|
|
1155
|
+
}
|
|
1156
|
+
/**
|
|
1157
|
+
* Serializes information the current object
|
|
1158
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
1159
|
+
* @param Recipient The instance to serialize from.
|
|
1160
|
+
* @param writer Serialization writer to use to serialize this model
|
|
1161
|
+
*/
|
|
1162
|
+
// @ts-ignore
|
|
1163
|
+
export function serializeRecipient(writer, recipient = {}, isSerializingDerivedType = false) {
|
|
1164
|
+
if (!recipient || isSerializingDerivedType) {
|
|
1165
|
+
return;
|
|
1166
|
+
}
|
|
1167
|
+
writer.writeDateValue("created_at", recipient.createdAt);
|
|
1168
|
+
writer.writeStringValue("email", recipient.email);
|
|
1169
|
+
writer.writeDateValue("expires_at", recipient.expiresAt);
|
|
1170
|
+
writer.writeGuidValue("form_id", recipient.formId);
|
|
1171
|
+
writer.writeBooleanValue("has_password", recipient.hasPassword);
|
|
1172
|
+
writer.writeGuidValue("id", recipient.id);
|
|
1173
|
+
writer.writeBooleanValue("is_active", recipient.isActive);
|
|
1174
|
+
writer.writeBooleanValue("is_anonymous", recipient.isAnonymous);
|
|
1175
|
+
writer.writeStringValue("label", recipient.label);
|
|
1176
|
+
writer.writeDateValue("last_activity_at", recipient.lastActivityAt);
|
|
1177
|
+
writer.writeStringValue("link", recipient.link);
|
|
1178
|
+
writer.writeStringValue("phone", recipient.phone);
|
|
1179
|
+
writer.writeNumberValue("response_count", recipient.responseCount);
|
|
1180
|
+
writer.writeEnumValue("status", recipient.status);
|
|
1181
|
+
writer.writeStringValue("token", recipient.token);
|
|
1182
|
+
writer.writeNumberValue("total_questions", recipient.totalQuestions);
|
|
1183
|
+
writer.writeNumberValue("visit_count", recipient.visitCount);
|
|
1184
|
+
writer.writeAdditionalData(recipient.additionalData);
|
|
1185
|
+
}
|
|
1186
|
+
/**
|
|
1187
|
+
* Serializes information the current object
|
|
1188
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
1189
|
+
* @param RecipientResponse The instance to serialize from.
|
|
1190
|
+
* @param writer Serialization writer to use to serialize this model
|
|
1191
|
+
*/
|
|
1192
|
+
// @ts-ignore
|
|
1193
|
+
export function serializeRecipientResponse(writer, recipientResponse = {}, isSerializingDerivedType = false) {
|
|
1194
|
+
if (!recipientResponse || isSerializingDerivedType) {
|
|
1195
|
+
return;
|
|
1196
|
+
}
|
|
1197
|
+
writer.writeDateValue("answeredAt", recipientResponse.answeredAt);
|
|
1198
|
+
writer.writeGuidValue("questionId", recipientResponse.questionId);
|
|
1199
|
+
writer.writeDateValue("updatedAt", recipientResponse.updatedAt);
|
|
1200
|
+
writer.writeObjectValue("value", recipientResponse.value);
|
|
1201
|
+
writer.writeAdditionalData(recipientResponse.additionalData);
|
|
1202
|
+
}
|
|
1203
|
+
/**
|
|
1204
|
+
* Serializes information the current object
|
|
1205
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
1206
|
+
* @param Section The instance to serialize from.
|
|
1207
|
+
* @param writer Serialization writer to use to serialize this model
|
|
1208
|
+
*/
|
|
1209
|
+
// @ts-ignore
|
|
1210
|
+
export function serializeSection(writer, section = {}, isSerializingDerivedType = false) {
|
|
1211
|
+
if (!section || isSerializingDerivedType) {
|
|
1212
|
+
return;
|
|
1213
|
+
}
|
|
1214
|
+
writer.writeDateValue("createdAt", section.createdAt);
|
|
1215
|
+
writer.writeGuidValue("formId", section.formId);
|
|
1216
|
+
writer.writeGuidValue("id", section.id);
|
|
1217
|
+
writer.writeNumberValue("order", section.order);
|
|
1218
|
+
writer.writeStringValue("title", section.title);
|
|
1219
|
+
writer.writeAdditionalData(section.additionalData);
|
|
1220
|
+
}
|
|
1221
|
+
/**
|
|
1222
|
+
* Serializes information the current object
|
|
1223
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
1224
|
+
* @param Signer The instance to serialize from.
|
|
1225
|
+
* @param writer Serialization writer to use to serialize this model
|
|
1226
|
+
*/
|
|
1227
|
+
// @ts-ignore
|
|
1228
|
+
export function serializeSigner(writer, signer = {}, isSerializingDerivedType = false) {
|
|
1229
|
+
if (!signer || isSerializingDerivedType) {
|
|
1230
|
+
return;
|
|
1231
|
+
}
|
|
1232
|
+
writer.writeStringValue("color", signer.color);
|
|
1233
|
+
writer.writeDateValue("completedAt", signer.completedAt);
|
|
1234
|
+
writer.writeDateValue("createdAt", signer.createdAt);
|
|
1235
|
+
writer.writeGuidValue("documentId", signer.documentId);
|
|
1236
|
+
writer.writeStringValue("email", signer.email);
|
|
1237
|
+
writer.writeGuidValue("id", signer.id);
|
|
1238
|
+
writer.writeStringValue("label", signer.label);
|
|
1239
|
+
writer.writeStringValue("link", signer.link);
|
|
1240
|
+
writer.writeStringValue("name", signer.name);
|
|
1241
|
+
writer.writeNumberValue("order", signer.order);
|
|
1242
|
+
writer.writeStringValue("role", signer.role);
|
|
1243
|
+
writer.writeEnumValue("status", signer.status);
|
|
1244
|
+
writer.writeGuidValue("submissionId", signer.submissionId);
|
|
1245
|
+
writer.writeStringValue("token", signer.token);
|
|
1246
|
+
writer.writeAdditionalData(signer.additionalData);
|
|
1247
|
+
}
|
|
1248
|
+
/**
|
|
1249
|
+
* Serializes information the current object
|
|
1250
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
1251
|
+
* @param SignerInput The instance to serialize from.
|
|
1252
|
+
* @param writer Serialization writer to use to serialize this model
|
|
1253
|
+
*/
|
|
1254
|
+
// @ts-ignore
|
|
1255
|
+
export function serializeSignerInput(writer, signerInput = {}, isSerializingDerivedType = false) {
|
|
1256
|
+
if (!signerInput || isSerializingDerivedType) {
|
|
1257
|
+
return;
|
|
1258
|
+
}
|
|
1259
|
+
writer.writeStringValue("email", signerInput.email);
|
|
1260
|
+
writer.writeStringValue("name", signerInput.name);
|
|
1261
|
+
writer.writeStringValue("password", signerInput.password);
|
|
1262
|
+
writer.writeStringValue("phone", signerInput.phone);
|
|
1263
|
+
writer.writeObjectValue("prefill", signerInput.prefill, serializeSignerInput_prefill);
|
|
1264
|
+
writer.writeBooleanValue("prefillReadonly", signerInput.prefillReadonly);
|
|
1265
|
+
writer.writeCollectionOfPrimitiveValues("readonlyFieldIds", signerInput.readonlyFieldIds);
|
|
1266
|
+
writer.writeStringValue("role", signerInput.role);
|
|
1267
|
+
writer.writeAdditionalData(signerInput.additionalData);
|
|
1268
|
+
}
|
|
1269
|
+
/**
|
|
1270
|
+
* Serializes information the current object
|
|
1271
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
1272
|
+
* @param SignerInput_prefill The instance to serialize from.
|
|
1273
|
+
* @param writer Serialization writer to use to serialize this model
|
|
1274
|
+
*/
|
|
1275
|
+
// @ts-ignore
|
|
1276
|
+
export function serializeSignerInput_prefill(writer, signerInput_prefill = {}, isSerializingDerivedType = false) {
|
|
1277
|
+
if (!signerInput_prefill || isSerializingDerivedType) {
|
|
1278
|
+
return;
|
|
1279
|
+
}
|
|
1280
|
+
writer.writeAdditionalData(signerInput_prefill.additionalData);
|
|
1281
|
+
}
|
|
1282
|
+
/**
|
|
1283
|
+
* Serializes information the current object
|
|
1284
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
1285
|
+
* @param SignerResponse The instance to serialize from.
|
|
1286
|
+
* @param writer Serialization writer to use to serialize this model
|
|
1287
|
+
*/
|
|
1288
|
+
// @ts-ignore
|
|
1289
|
+
export function serializeSignerResponse(writer, signerResponse = {}, isSerializingDerivedType = false) {
|
|
1290
|
+
if (!signerResponse || isSerializingDerivedType) {
|
|
1291
|
+
return;
|
|
1292
|
+
}
|
|
1293
|
+
writer.writeDateValue("answeredAt", signerResponse.answeredAt);
|
|
1294
|
+
writer.writeGuidValue("fieldId", signerResponse.fieldId);
|
|
1295
|
+
writer.writeDateValue("updatedAt", signerResponse.updatedAt);
|
|
1296
|
+
writer.writeObjectValue("value", signerResponse.value);
|
|
1297
|
+
writer.writeAdditionalData(signerResponse.additionalData);
|
|
1298
|
+
}
|
|
1299
|
+
/**
|
|
1300
|
+
* Serializes information the current object
|
|
1301
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
1302
|
+
* @param SignerRole The instance to serialize from.
|
|
1303
|
+
* @param writer Serialization writer to use to serialize this model
|
|
1304
|
+
*/
|
|
1305
|
+
// @ts-ignore
|
|
1306
|
+
export function serializeSignerRole(writer, signerRole = {}, isSerializingDerivedType = false) {
|
|
1307
|
+
if (!signerRole || isSerializingDerivedType) {
|
|
1308
|
+
return;
|
|
1309
|
+
}
|
|
1310
|
+
writer.writeStringValue("color", signerRole.color);
|
|
1311
|
+
writer.writeDateValue("createdAt", signerRole.createdAt);
|
|
1312
|
+
writer.writeGuidValue("documentId", signerRole.documentId);
|
|
1313
|
+
writer.writeGuidValue("id", signerRole.id);
|
|
1314
|
+
writer.writeStringValue("label", signerRole.label);
|
|
1315
|
+
writer.writeNumberValue("order", signerRole.order);
|
|
1316
|
+
writer.writeStringValue("role", signerRole.role);
|
|
1317
|
+
writer.writeAdditionalData(signerRole.additionalData);
|
|
1318
|
+
}
|
|
1319
|
+
/**
|
|
1320
|
+
* Serializes information the current object
|
|
1321
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
1322
|
+
* @param SubmissionPdf The instance to serialize from.
|
|
1323
|
+
* @param writer Serialization writer to use to serialize this model
|
|
1324
|
+
*/
|
|
1325
|
+
// @ts-ignore
|
|
1326
|
+
export function serializeSubmissionPdf(writer, submissionPdf = {}, isSerializingDerivedType = false) {
|
|
1327
|
+
if (!submissionPdf || isSerializingDerivedType) {
|
|
1328
|
+
return;
|
|
1329
|
+
}
|
|
1330
|
+
writer.writeDateValue("completedAt", submissionPdf.completedAt);
|
|
1331
|
+
writer.writeStringValue("downloadUrl", submissionPdf.downloadUrl);
|
|
1332
|
+
writer.writeNumberValue("expiresIn", submissionPdf.expiresIn);
|
|
1333
|
+
writer.writeGuidValue("submissionId", submissionPdf.submissionId);
|
|
1334
|
+
writer.writeAdditionalData(submissionPdf.additionalData);
|
|
1335
|
+
}
|
|
1336
|
+
/**
|
|
1337
|
+
* Serializes information the current object
|
|
1338
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
1339
|
+
* @param UpdateFormBody The instance to serialize from.
|
|
1340
|
+
* @param writer Serialization writer to use to serialize this model
|
|
1341
|
+
*/
|
|
1342
|
+
// @ts-ignore
|
|
1343
|
+
export function serializeUpdateFormBody(writer, updateFormBody = {}, isSerializingDerivedType = false) {
|
|
1344
|
+
if (!updateFormBody || isSerializingDerivedType) {
|
|
1345
|
+
return;
|
|
1346
|
+
}
|
|
1347
|
+
writer.writeStringValue("description", updateFormBody.description);
|
|
1348
|
+
writer.writeEnumValue("status", updateFormBody.status);
|
|
1349
|
+
writer.writeStringValue("title", updateFormBody.title);
|
|
1350
|
+
writer.writeAdditionalData(updateFormBody.additionalData);
|
|
1351
|
+
}
|
|
1352
|
+
/**
|
|
1353
|
+
* Serializes information the current object
|
|
1354
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
1355
|
+
* @param UpdateRecipientBody The instance to serialize from.
|
|
1356
|
+
* @param writer Serialization writer to use to serialize this model
|
|
1357
|
+
*/
|
|
1358
|
+
// @ts-ignore
|
|
1359
|
+
export function serializeUpdateRecipientBody(writer, updateRecipientBody = {}, isSerializingDerivedType = false) {
|
|
1360
|
+
if (!updateRecipientBody || isSerializingDerivedType) {
|
|
1361
|
+
return;
|
|
1362
|
+
}
|
|
1363
|
+
writer.writeStringValue("email", updateRecipientBody.email);
|
|
1364
|
+
writer.writeDateValue("expires_at", updateRecipientBody.expiresAt);
|
|
1365
|
+
writer.writeBooleanValue("is_active", updateRecipientBody.isActive);
|
|
1366
|
+
writer.writeStringValue("label", updateRecipientBody.label);
|
|
1367
|
+
writer.writeStringValue("password", updateRecipientBody.password);
|
|
1368
|
+
writer.writeStringValue("phone", updateRecipientBody.phone);
|
|
1369
|
+
writer.writeAdditionalData(updateRecipientBody.additionalData);
|
|
1370
|
+
}
|
|
1371
|
+
/**
|
|
1372
|
+
* Serializes information the current object
|
|
1373
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
1374
|
+
* @param UpdateRecipientResponsesBody The instance to serialize from.
|
|
1375
|
+
* @param writer Serialization writer to use to serialize this model
|
|
1376
|
+
*/
|
|
1377
|
+
// @ts-ignore
|
|
1378
|
+
export function serializeUpdateRecipientResponsesBody(writer, updateRecipientResponsesBody = {}, isSerializingDerivedType = false) {
|
|
1379
|
+
if (!updateRecipientResponsesBody || isSerializingDerivedType) {
|
|
1380
|
+
return;
|
|
1381
|
+
}
|
|
1382
|
+
writer.writeObjectValue("responses", updateRecipientResponsesBody.responses, serializeUpdateRecipientResponsesBody_responses);
|
|
1383
|
+
writer.writeAdditionalData(updateRecipientResponsesBody.additionalData);
|
|
1384
|
+
}
|
|
1385
|
+
/**
|
|
1386
|
+
* Serializes information the current object
|
|
1387
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
1388
|
+
* @param UpdateRecipientResponsesBody_responses The instance to serialize from.
|
|
1389
|
+
* @param writer Serialization writer to use to serialize this model
|
|
1390
|
+
*/
|
|
1391
|
+
// @ts-ignore
|
|
1392
|
+
export function serializeUpdateRecipientResponsesBody_responses(writer, updateRecipientResponsesBody_responses = {}, isSerializingDerivedType = false) {
|
|
1393
|
+
if (!updateRecipientResponsesBody_responses || isSerializingDerivedType) {
|
|
1394
|
+
return;
|
|
1395
|
+
}
|
|
1396
|
+
writer.writeAdditionalData(updateRecipientResponsesBody_responses.additionalData);
|
|
1397
|
+
}
|
|
1398
|
+
/**
|
|
1399
|
+
* Serializes information the current object
|
|
1400
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
1401
|
+
* @param UpdateSectionBody The instance to serialize from.
|
|
1402
|
+
* @param writer Serialization writer to use to serialize this model
|
|
1403
|
+
*/
|
|
1404
|
+
// @ts-ignore
|
|
1405
|
+
export function serializeUpdateSectionBody(writer, updateSectionBody = {}, isSerializingDerivedType = false) {
|
|
1406
|
+
if (!updateSectionBody || isSerializingDerivedType) {
|
|
1407
|
+
return;
|
|
1408
|
+
}
|
|
1409
|
+
writer.writeNumberValue("order", updateSectionBody.order);
|
|
1410
|
+
writer.writeStringValue("title", updateSectionBody.title);
|
|
1411
|
+
writer.writeAdditionalData(updateSectionBody.additionalData);
|
|
1412
|
+
}
|
|
1413
|
+
/**
|
|
1414
|
+
* Serializes information the current object
|
|
1415
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
1416
|
+
* @param UpdateSignerResponsesBody The instance to serialize from.
|
|
1417
|
+
* @param writer Serialization writer to use to serialize this model
|
|
1418
|
+
*/
|
|
1419
|
+
// @ts-ignore
|
|
1420
|
+
export function serializeUpdateSignerResponsesBody(writer, updateSignerResponsesBody = {}, isSerializingDerivedType = false) {
|
|
1421
|
+
if (!updateSignerResponsesBody || isSerializingDerivedType) {
|
|
1422
|
+
return;
|
|
1423
|
+
}
|
|
1424
|
+
writer.writeObjectValue("responses", updateSignerResponsesBody.responses, serializeUpdateSignerResponsesBody_responses);
|
|
1425
|
+
writer.writeAdditionalData(updateSignerResponsesBody.additionalData);
|
|
1426
|
+
}
|
|
1427
|
+
/**
|
|
1428
|
+
* Serializes information the current object
|
|
1429
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
1430
|
+
* @param UpdateSignerResponsesBody_responses The instance to serialize from.
|
|
1431
|
+
* @param writer Serialization writer to use to serialize this model
|
|
1432
|
+
*/
|
|
1433
|
+
// @ts-ignore
|
|
1434
|
+
export function serializeUpdateSignerResponsesBody_responses(writer, updateSignerResponsesBody_responses = {}, isSerializingDerivedType = false) {
|
|
1435
|
+
if (!updateSignerResponsesBody_responses || isSerializingDerivedType) {
|
|
1436
|
+
return;
|
|
1437
|
+
}
|
|
1438
|
+
writer.writeAdditionalData(updateSignerResponsesBody_responses.additionalData);
|
|
1439
|
+
}
|
|
1440
|
+
export const CreateFieldBody_directionObject = {
|
|
1441
|
+
Auto: "auto",
|
|
1442
|
+
Rtl: "rtl",
|
|
1443
|
+
Ltr: "ltr",
|
|
1444
|
+
};
|
|
1445
|
+
export const CreateFieldBody_typeObject = {
|
|
1446
|
+
Short_text: "short_text",
|
|
1447
|
+
Long_text: "long_text",
|
|
1448
|
+
Mcq: "mcq",
|
|
1449
|
+
Multi_select: "multi_select",
|
|
1450
|
+
Rating: "rating",
|
|
1451
|
+
Date: "date",
|
|
1452
|
+
Number: "number",
|
|
1453
|
+
Yes_no: "yes_no",
|
|
1454
|
+
File_upload: "file_upload",
|
|
1455
|
+
Dropdown: "dropdown",
|
|
1456
|
+
Digital_signature: "digital_signature",
|
|
1457
|
+
Email: "email",
|
|
1458
|
+
Phone: "phone",
|
|
1459
|
+
Initials: "initials",
|
|
1460
|
+
};
|
|
1461
|
+
export const CreateQuestionBody_priorityObject = {
|
|
1462
|
+
Low: "low",
|
|
1463
|
+
Medium: "medium",
|
|
1464
|
+
High: "high",
|
|
1465
|
+
Critical: "critical",
|
|
1466
|
+
};
|
|
1467
|
+
export const CreateQuestionBody_typeObject = {
|
|
1468
|
+
Short_text: "short_text",
|
|
1469
|
+
Long_text: "long_text",
|
|
1470
|
+
Mcq: "mcq",
|
|
1471
|
+
Multi_select: "multi_select",
|
|
1472
|
+
Rating: "rating",
|
|
1473
|
+
Date: "date",
|
|
1474
|
+
Number: "number",
|
|
1475
|
+
Yes_no: "yes_no",
|
|
1476
|
+
File_upload: "file_upload",
|
|
1477
|
+
Dropdown: "dropdown",
|
|
1478
|
+
Digital_signature: "digital_signature",
|
|
1479
|
+
Email: "email",
|
|
1480
|
+
Phone: "phone",
|
|
1481
|
+
Initials: "initials",
|
|
1482
|
+
Url: "url",
|
|
1483
|
+
Time: "time",
|
|
1484
|
+
Date_range: "date_range",
|
|
1485
|
+
Address: "address",
|
|
1486
|
+
Slider: "slider",
|
|
1487
|
+
Currency: "currency",
|
|
1488
|
+
Heading: "heading",
|
|
1489
|
+
Divider: "divider",
|
|
1490
|
+
Picture_choice: "picture_choice",
|
|
1491
|
+
Checkbox: "checkbox",
|
|
1492
|
+
Ranking: "ranking",
|
|
1493
|
+
Matrix: "matrix",
|
|
1494
|
+
Opinion_scale: "opinion_scale",
|
|
1495
|
+
Calculation: "calculation",
|
|
1496
|
+
Payment: "payment",
|
|
1497
|
+
};
|
|
1498
|
+
export const Document_statusObject = {
|
|
1499
|
+
Draft: "draft",
|
|
1500
|
+
Published: "published",
|
|
1501
|
+
Completed: "completed",
|
|
1502
|
+
Expired: "expired",
|
|
1503
|
+
};
|
|
1504
|
+
export const DocumentField_directionObject = {
|
|
1505
|
+
Auto: "auto",
|
|
1506
|
+
Rtl: "rtl",
|
|
1507
|
+
Ltr: "ltr",
|
|
1508
|
+
};
|
|
1509
|
+
export const DocumentField_typeObject = {
|
|
1510
|
+
Short_text: "short_text",
|
|
1511
|
+
Long_text: "long_text",
|
|
1512
|
+
Mcq: "mcq",
|
|
1513
|
+
Multi_select: "multi_select",
|
|
1514
|
+
Rating: "rating",
|
|
1515
|
+
Date: "date",
|
|
1516
|
+
Number: "number",
|
|
1517
|
+
Yes_no: "yes_no",
|
|
1518
|
+
File_upload: "file_upload",
|
|
1519
|
+
Dropdown: "dropdown",
|
|
1520
|
+
Digital_signature: "digital_signature",
|
|
1521
|
+
Email: "email",
|
|
1522
|
+
Phone: "phone",
|
|
1523
|
+
Initials: "initials",
|
|
1524
|
+
};
|
|
1525
|
+
export const DocumentSubmission_statusObject = {
|
|
1526
|
+
Pending: "pending",
|
|
1527
|
+
In_progress: "in_progress",
|
|
1528
|
+
Completed: "completed",
|
|
1529
|
+
};
|
|
1530
|
+
export const Form_statusObject = {
|
|
1531
|
+
Draft: "draft",
|
|
1532
|
+
Published: "published",
|
|
1533
|
+
Archived: "archived",
|
|
1534
|
+
};
|
|
1535
|
+
export const Question_priorityObject = {
|
|
1536
|
+
Low: "low",
|
|
1537
|
+
Medium: "medium",
|
|
1538
|
+
High: "high",
|
|
1539
|
+
Critical: "critical",
|
|
1540
|
+
};
|
|
1541
|
+
export const Question_typeObject = {
|
|
1542
|
+
Short_text: "short_text",
|
|
1543
|
+
Long_text: "long_text",
|
|
1544
|
+
Mcq: "mcq",
|
|
1545
|
+
Multi_select: "multi_select",
|
|
1546
|
+
Rating: "rating",
|
|
1547
|
+
Date: "date",
|
|
1548
|
+
Number: "number",
|
|
1549
|
+
Yes_no: "yes_no",
|
|
1550
|
+
File_upload: "file_upload",
|
|
1551
|
+
Dropdown: "dropdown",
|
|
1552
|
+
Digital_signature: "digital_signature",
|
|
1553
|
+
Email: "email",
|
|
1554
|
+
Phone: "phone",
|
|
1555
|
+
Initials: "initials",
|
|
1556
|
+
Url: "url",
|
|
1557
|
+
Time: "time",
|
|
1558
|
+
Date_range: "date_range",
|
|
1559
|
+
Address: "address",
|
|
1560
|
+
Slider: "slider",
|
|
1561
|
+
Currency: "currency",
|
|
1562
|
+
Heading: "heading",
|
|
1563
|
+
Divider: "divider",
|
|
1564
|
+
Picture_choice: "picture_choice",
|
|
1565
|
+
Checkbox: "checkbox",
|
|
1566
|
+
Ranking: "ranking",
|
|
1567
|
+
Matrix: "matrix",
|
|
1568
|
+
Opinion_scale: "opinion_scale",
|
|
1569
|
+
Calculation: "calculation",
|
|
1570
|
+
Payment: "payment",
|
|
1571
|
+
};
|
|
1572
|
+
export const Recipient_statusObject = {
|
|
1573
|
+
Not_started: "not_started",
|
|
1574
|
+
In_progress: "in_progress",
|
|
1575
|
+
Completed: "completed",
|
|
1576
|
+
};
|
|
1577
|
+
export const Signer_statusObject = {
|
|
1578
|
+
Pending: "pending",
|
|
1579
|
+
Viewed: "viewed",
|
|
1580
|
+
Completed: "completed",
|
|
1581
|
+
};
|
|
1582
|
+
export const UpdateFormBody_statusObject = {
|
|
1583
|
+
Draft: "draft",
|
|
1584
|
+
Published: "published",
|
|
1585
|
+
Archived: "archived",
|
|
1586
|
+
};
|
|
1587
|
+
/* tslint:enable */
|
|
1588
|
+
/* eslint-enable */
|
|
1589
|
+
//# sourceMappingURL=index.js.map
|