@maxischmaxi/maxforms-api-client 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/gen/auth/v1/auth_connect.d.ts +232 -0
- package/dist/gen/auth/v1/auth_connect.d.ts.map +1 -0
- package/dist/gen/auth/v1/auth_connect.js +236 -0
- package/dist/gen/auth/v1/auth_connect.js.map +1 -0
- package/dist/gen/auth/v1/auth_pb.d.ts +1072 -0
- package/dist/gen/auth/v1/auth_pb.d.ts.map +1 -0
- package/dist/gen/auth/v1/auth_pb.js +1779 -0
- package/dist/gen/auth/v1/auth_pb.js.map +1 -0
- package/dist/gen/forms/v1/forms_connect.d.ts +200 -0
- package/dist/gen/forms/v1/forms_connect.d.ts.map +1 -0
- package/dist/gen/forms/v1/forms_connect.js +204 -0
- package/dist/gen/forms/v1/forms_connect.js.map +1 -0
- package/dist/gen/forms/v1/forms_pb.d.ts +1154 -0
- package/dist/gen/forms/v1/forms_pb.d.ts.map +1 -0
- package/dist/gen/forms/v1/forms_pb.js +1779 -0
- package/dist/gen/forms/v1/forms_pb.js.map +1 -0
- package/dist/index.d.ts +27 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +39 -0
- package/dist/index.js.map +1 -0
- package/package.json +57 -0
|
@@ -0,0 +1,1779 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
|
|
2
|
+
// @generated from file forms/v1/forms.proto (package forms.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf";
|
|
6
|
+
/**
|
|
7
|
+
* Form status
|
|
8
|
+
*
|
|
9
|
+
* @generated from enum forms.v1.FormStatus
|
|
10
|
+
*/
|
|
11
|
+
export var FormStatus;
|
|
12
|
+
(function (FormStatus) {
|
|
13
|
+
/**
|
|
14
|
+
* @generated from enum value: FORM_STATUS_UNSPECIFIED = 0;
|
|
15
|
+
*/
|
|
16
|
+
FormStatus[FormStatus["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
17
|
+
/**
|
|
18
|
+
* @generated from enum value: FORM_STATUS_DRAFT = 1;
|
|
19
|
+
*/
|
|
20
|
+
FormStatus[FormStatus["DRAFT"] = 1] = "DRAFT";
|
|
21
|
+
/**
|
|
22
|
+
* @generated from enum value: FORM_STATUS_PUBLISHED = 2;
|
|
23
|
+
*/
|
|
24
|
+
FormStatus[FormStatus["PUBLISHED"] = 2] = "PUBLISHED";
|
|
25
|
+
})(FormStatus || (FormStatus = {}));
|
|
26
|
+
// Retrieve enum metadata with: proto3.getEnumType(FormStatus)
|
|
27
|
+
proto3.util.setEnumType(FormStatus, "forms.v1.FormStatus", [
|
|
28
|
+
{ no: 0, name: "FORM_STATUS_UNSPECIFIED" },
|
|
29
|
+
{ no: 1, name: "FORM_STATUS_DRAFT" },
|
|
30
|
+
{ no: 2, name: "FORM_STATUS_PUBLISHED" },
|
|
31
|
+
]);
|
|
32
|
+
/**
|
|
33
|
+
* Field types supported by forms
|
|
34
|
+
*
|
|
35
|
+
* @generated from enum forms.v1.FieldType
|
|
36
|
+
*/
|
|
37
|
+
export var FieldType;
|
|
38
|
+
(function (FieldType) {
|
|
39
|
+
/**
|
|
40
|
+
* @generated from enum value: FIELD_TYPE_UNSPECIFIED = 0;
|
|
41
|
+
*/
|
|
42
|
+
FieldType[FieldType["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
43
|
+
/**
|
|
44
|
+
* @generated from enum value: FIELD_TYPE_TEXT = 1;
|
|
45
|
+
*/
|
|
46
|
+
FieldType[FieldType["TEXT"] = 1] = "TEXT";
|
|
47
|
+
/**
|
|
48
|
+
* @generated from enum value: FIELD_TYPE_EMAIL = 2;
|
|
49
|
+
*/
|
|
50
|
+
FieldType[FieldType["EMAIL"] = 2] = "EMAIL";
|
|
51
|
+
/**
|
|
52
|
+
* @generated from enum value: FIELD_TYPE_NUMBER = 3;
|
|
53
|
+
*/
|
|
54
|
+
FieldType[FieldType["NUMBER"] = 3] = "NUMBER";
|
|
55
|
+
/**
|
|
56
|
+
* @generated from enum value: FIELD_TYPE_TEXTAREA = 4;
|
|
57
|
+
*/
|
|
58
|
+
FieldType[FieldType["TEXTAREA"] = 4] = "TEXTAREA";
|
|
59
|
+
/**
|
|
60
|
+
* @generated from enum value: FIELD_TYPE_SELECT = 5;
|
|
61
|
+
*/
|
|
62
|
+
FieldType[FieldType["SELECT"] = 5] = "SELECT";
|
|
63
|
+
/**
|
|
64
|
+
* @generated from enum value: FIELD_TYPE_CHECKBOX = 6;
|
|
65
|
+
*/
|
|
66
|
+
FieldType[FieldType["CHECKBOX"] = 6] = "CHECKBOX";
|
|
67
|
+
/**
|
|
68
|
+
* @generated from enum value: FIELD_TYPE_RADIO = 7;
|
|
69
|
+
*/
|
|
70
|
+
FieldType[FieldType["RADIO"] = 7] = "RADIO";
|
|
71
|
+
/**
|
|
72
|
+
* @generated from enum value: FIELD_TYPE_DATE = 8;
|
|
73
|
+
*/
|
|
74
|
+
FieldType[FieldType["DATE"] = 8] = "DATE";
|
|
75
|
+
/**
|
|
76
|
+
* @generated from enum value: FIELD_TYPE_FILE = 9;
|
|
77
|
+
*/
|
|
78
|
+
FieldType[FieldType["FILE"] = 9] = "FILE";
|
|
79
|
+
})(FieldType || (FieldType = {}));
|
|
80
|
+
// Retrieve enum metadata with: proto3.getEnumType(FieldType)
|
|
81
|
+
proto3.util.setEnumType(FieldType, "forms.v1.FieldType", [
|
|
82
|
+
{ no: 0, name: "FIELD_TYPE_UNSPECIFIED" },
|
|
83
|
+
{ no: 1, name: "FIELD_TYPE_TEXT" },
|
|
84
|
+
{ no: 2, name: "FIELD_TYPE_EMAIL" },
|
|
85
|
+
{ no: 3, name: "FIELD_TYPE_NUMBER" },
|
|
86
|
+
{ no: 4, name: "FIELD_TYPE_TEXTAREA" },
|
|
87
|
+
{ no: 5, name: "FIELD_TYPE_SELECT" },
|
|
88
|
+
{ no: 6, name: "FIELD_TYPE_CHECKBOX" },
|
|
89
|
+
{ no: 7, name: "FIELD_TYPE_RADIO" },
|
|
90
|
+
{ no: 8, name: "FIELD_TYPE_DATE" },
|
|
91
|
+
{ no: 9, name: "FIELD_TYPE_FILE" },
|
|
92
|
+
]);
|
|
93
|
+
/**
|
|
94
|
+
* Block types for form layout
|
|
95
|
+
*
|
|
96
|
+
* @generated from enum forms.v1.BlockType
|
|
97
|
+
*/
|
|
98
|
+
export var BlockType;
|
|
99
|
+
(function (BlockType) {
|
|
100
|
+
/**
|
|
101
|
+
* @generated from enum value: BLOCK_TYPE_UNSPECIFIED = 0;
|
|
102
|
+
*/
|
|
103
|
+
BlockType[BlockType["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
104
|
+
/**
|
|
105
|
+
* References a FormField
|
|
106
|
+
*
|
|
107
|
+
* @generated from enum value: BLOCK_TYPE_FIELD = 1;
|
|
108
|
+
*/
|
|
109
|
+
BlockType[BlockType["FIELD"] = 1] = "FIELD";
|
|
110
|
+
/**
|
|
111
|
+
* H1, H2, H3
|
|
112
|
+
*
|
|
113
|
+
* @generated from enum value: BLOCK_TYPE_HEADING = 2;
|
|
114
|
+
*/
|
|
115
|
+
BlockType[BlockType["HEADING"] = 2] = "HEADING";
|
|
116
|
+
/**
|
|
117
|
+
* Paragraph text
|
|
118
|
+
*
|
|
119
|
+
* @generated from enum value: BLOCK_TYPE_TEXT = 3;
|
|
120
|
+
*/
|
|
121
|
+
BlockType[BlockType["TEXT"] = 3] = "TEXT";
|
|
122
|
+
/**
|
|
123
|
+
* Horizontal divider
|
|
124
|
+
*
|
|
125
|
+
* @generated from enum value: BLOCK_TYPE_DIVIDER = 4;
|
|
126
|
+
*/
|
|
127
|
+
BlockType[BlockType["DIVIDER"] = 4] = "DIVIDER";
|
|
128
|
+
/**
|
|
129
|
+
* Multi-column row container
|
|
130
|
+
*
|
|
131
|
+
* @generated from enum value: BLOCK_TYPE_ROW = 5;
|
|
132
|
+
*/
|
|
133
|
+
BlockType[BlockType["ROW"] = 5] = "ROW";
|
|
134
|
+
})(BlockType || (BlockType = {}));
|
|
135
|
+
// Retrieve enum metadata with: proto3.getEnumType(BlockType)
|
|
136
|
+
proto3.util.setEnumType(BlockType, "forms.v1.BlockType", [
|
|
137
|
+
{ no: 0, name: "BLOCK_TYPE_UNSPECIFIED" },
|
|
138
|
+
{ no: 1, name: "BLOCK_TYPE_FIELD" },
|
|
139
|
+
{ no: 2, name: "BLOCK_TYPE_HEADING" },
|
|
140
|
+
{ no: 3, name: "BLOCK_TYPE_TEXT" },
|
|
141
|
+
{ no: 4, name: "BLOCK_TYPE_DIVIDER" },
|
|
142
|
+
{ no: 5, name: "BLOCK_TYPE_ROW" },
|
|
143
|
+
]);
|
|
144
|
+
/**
|
|
145
|
+
* FormField represents a single field in a form
|
|
146
|
+
*
|
|
147
|
+
* @generated from message forms.v1.FormField
|
|
148
|
+
*/
|
|
149
|
+
export class FormField extends Message {
|
|
150
|
+
/**
|
|
151
|
+
* @generated from field: string id = 1;
|
|
152
|
+
*/
|
|
153
|
+
id = "";
|
|
154
|
+
/**
|
|
155
|
+
* @generated from field: string name = 2;
|
|
156
|
+
*/
|
|
157
|
+
name = "";
|
|
158
|
+
/**
|
|
159
|
+
* @generated from field: string label = 3;
|
|
160
|
+
*/
|
|
161
|
+
label = "";
|
|
162
|
+
/**
|
|
163
|
+
* @generated from field: forms.v1.FieldType type = 4;
|
|
164
|
+
*/
|
|
165
|
+
type = FieldType.UNSPECIFIED;
|
|
166
|
+
/**
|
|
167
|
+
* @generated from field: bool required = 5;
|
|
168
|
+
*/
|
|
169
|
+
required = false;
|
|
170
|
+
/**
|
|
171
|
+
* @generated from field: string placeholder = 6;
|
|
172
|
+
*/
|
|
173
|
+
placeholder = "";
|
|
174
|
+
/**
|
|
175
|
+
* @generated from field: string default_value = 7;
|
|
176
|
+
*/
|
|
177
|
+
defaultValue = "";
|
|
178
|
+
/**
|
|
179
|
+
* For select, radio, checkbox
|
|
180
|
+
*
|
|
181
|
+
* @generated from field: repeated string options = 8;
|
|
182
|
+
*/
|
|
183
|
+
options = [];
|
|
184
|
+
/**
|
|
185
|
+
* Validation rules
|
|
186
|
+
*
|
|
187
|
+
* @generated from field: map<string, string> validation = 9;
|
|
188
|
+
*/
|
|
189
|
+
validation = {};
|
|
190
|
+
/**
|
|
191
|
+
* @generated from field: int32 order = 10;
|
|
192
|
+
*/
|
|
193
|
+
order = 0;
|
|
194
|
+
constructor(data) {
|
|
195
|
+
super();
|
|
196
|
+
proto3.util.initPartial(data, this);
|
|
197
|
+
}
|
|
198
|
+
static runtime = proto3;
|
|
199
|
+
static typeName = "forms.v1.FormField";
|
|
200
|
+
static fields = proto3.util.newFieldList(() => [
|
|
201
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
202
|
+
{ no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
203
|
+
{ no: 3, name: "label", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
204
|
+
{ no: 4, name: "type", kind: "enum", T: proto3.getEnumType(FieldType) },
|
|
205
|
+
{ no: 5, name: "required", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
206
|
+
{ no: 6, name: "placeholder", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
207
|
+
{ no: 7, name: "default_value", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
208
|
+
{ no: 8, name: "options", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
209
|
+
{ no: 9, name: "validation", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "scalar", T: 9 /* ScalarType.STRING */ } },
|
|
210
|
+
{ no: 10, name: "order", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
211
|
+
]);
|
|
212
|
+
static fromBinary(bytes, options) {
|
|
213
|
+
return new FormField().fromBinary(bytes, options);
|
|
214
|
+
}
|
|
215
|
+
static fromJson(jsonValue, options) {
|
|
216
|
+
return new FormField().fromJson(jsonValue, options);
|
|
217
|
+
}
|
|
218
|
+
static fromJsonString(jsonString, options) {
|
|
219
|
+
return new FormField().fromJsonString(jsonString, options);
|
|
220
|
+
}
|
|
221
|
+
static equals(a, b) {
|
|
222
|
+
return proto3.util.equals(FormField, a, b);
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* FormBlock represents a layout block in the form
|
|
227
|
+
*
|
|
228
|
+
* @generated from message forms.v1.FormBlock
|
|
229
|
+
*/
|
|
230
|
+
export class FormBlock extends Message {
|
|
231
|
+
/**
|
|
232
|
+
* @generated from field: string id = 1;
|
|
233
|
+
*/
|
|
234
|
+
id = "";
|
|
235
|
+
/**
|
|
236
|
+
* @generated from field: forms.v1.BlockType type = 2;
|
|
237
|
+
*/
|
|
238
|
+
type = BlockType.UNSPECIFIED;
|
|
239
|
+
/**
|
|
240
|
+
* For FIELD blocks - reference to FormField
|
|
241
|
+
*
|
|
242
|
+
* @generated from field: string field_id = 3;
|
|
243
|
+
*/
|
|
244
|
+
fieldId = "";
|
|
245
|
+
/**
|
|
246
|
+
* For HEADING blocks - the heading text and level (1, 2, 3)
|
|
247
|
+
*
|
|
248
|
+
* @generated from field: string content = 4;
|
|
249
|
+
*/
|
|
250
|
+
content = "";
|
|
251
|
+
/**
|
|
252
|
+
* @generated from field: int32 level = 5;
|
|
253
|
+
*/
|
|
254
|
+
level = 0;
|
|
255
|
+
/**
|
|
256
|
+
* For ROW blocks - child blocks and column count
|
|
257
|
+
*
|
|
258
|
+
* @generated from field: repeated forms.v1.FormBlock children = 6;
|
|
259
|
+
*/
|
|
260
|
+
children = [];
|
|
261
|
+
/**
|
|
262
|
+
* @generated from field: int32 columns = 7;
|
|
263
|
+
*/
|
|
264
|
+
columns = 0;
|
|
265
|
+
constructor(data) {
|
|
266
|
+
super();
|
|
267
|
+
proto3.util.initPartial(data, this);
|
|
268
|
+
}
|
|
269
|
+
static runtime = proto3;
|
|
270
|
+
static typeName = "forms.v1.FormBlock";
|
|
271
|
+
static fields = proto3.util.newFieldList(() => [
|
|
272
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
273
|
+
{ no: 2, name: "type", kind: "enum", T: proto3.getEnumType(BlockType) },
|
|
274
|
+
{ no: 3, name: "field_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
275
|
+
{ no: 4, name: "content", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
276
|
+
{ no: 5, name: "level", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
277
|
+
{ no: 6, name: "children", kind: "message", T: FormBlock, repeated: true },
|
|
278
|
+
{ no: 7, name: "columns", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
279
|
+
]);
|
|
280
|
+
static fromBinary(bytes, options) {
|
|
281
|
+
return new FormBlock().fromBinary(bytes, options);
|
|
282
|
+
}
|
|
283
|
+
static fromJson(jsonValue, options) {
|
|
284
|
+
return new FormBlock().fromJson(jsonValue, options);
|
|
285
|
+
}
|
|
286
|
+
static fromJsonString(jsonString, options) {
|
|
287
|
+
return new FormBlock().fromJsonString(jsonString, options);
|
|
288
|
+
}
|
|
289
|
+
static equals(a, b) {
|
|
290
|
+
return proto3.util.equals(FormBlock, a, b);
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* Form represents a complete form definition
|
|
295
|
+
*
|
|
296
|
+
* @generated from message forms.v1.Form
|
|
297
|
+
*/
|
|
298
|
+
export class Form extends Message {
|
|
299
|
+
/**
|
|
300
|
+
* @generated from field: string id = 1;
|
|
301
|
+
*/
|
|
302
|
+
id = "";
|
|
303
|
+
/**
|
|
304
|
+
* @generated from field: string name = 2;
|
|
305
|
+
*/
|
|
306
|
+
name = "";
|
|
307
|
+
/**
|
|
308
|
+
* @generated from field: string description = 3;
|
|
309
|
+
*/
|
|
310
|
+
description = "";
|
|
311
|
+
/**
|
|
312
|
+
* @generated from field: repeated forms.v1.FormField fields = 4;
|
|
313
|
+
*/
|
|
314
|
+
fields = [];
|
|
315
|
+
/**
|
|
316
|
+
* @generated from field: string user_id = 5;
|
|
317
|
+
*/
|
|
318
|
+
userId = "";
|
|
319
|
+
/**
|
|
320
|
+
* @generated from field: google.protobuf.Timestamp created_at = 6;
|
|
321
|
+
*/
|
|
322
|
+
createdAt;
|
|
323
|
+
/**
|
|
324
|
+
* @generated from field: google.protobuf.Timestamp updated_at = 7;
|
|
325
|
+
*/
|
|
326
|
+
updatedAt;
|
|
327
|
+
/**
|
|
328
|
+
* @generated from field: forms.v1.FormSettings settings = 8;
|
|
329
|
+
*/
|
|
330
|
+
settings;
|
|
331
|
+
/**
|
|
332
|
+
* @generated from field: string org_id = 9;
|
|
333
|
+
*/
|
|
334
|
+
orgId = "";
|
|
335
|
+
/**
|
|
336
|
+
* New fields for draft/publish and layout
|
|
337
|
+
*
|
|
338
|
+
* @generated from field: forms.v1.FormStatus status = 10;
|
|
339
|
+
*/
|
|
340
|
+
status = FormStatus.UNSPECIFIED;
|
|
341
|
+
/**
|
|
342
|
+
* @generated from field: google.protobuf.Timestamp published_at = 11;
|
|
343
|
+
*/
|
|
344
|
+
publishedAt;
|
|
345
|
+
/**
|
|
346
|
+
* @generated from field: repeated forms.v1.FormBlock layout = 12;
|
|
347
|
+
*/
|
|
348
|
+
layout = [];
|
|
349
|
+
/**
|
|
350
|
+
* @generated from field: int32 revision_count = 13;
|
|
351
|
+
*/
|
|
352
|
+
revisionCount = 0;
|
|
353
|
+
constructor(data) {
|
|
354
|
+
super();
|
|
355
|
+
proto3.util.initPartial(data, this);
|
|
356
|
+
}
|
|
357
|
+
static runtime = proto3;
|
|
358
|
+
static typeName = "forms.v1.Form";
|
|
359
|
+
static fields = proto3.util.newFieldList(() => [
|
|
360
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
361
|
+
{ no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
362
|
+
{ no: 3, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
363
|
+
{ no: 4, name: "fields", kind: "message", T: FormField, repeated: true },
|
|
364
|
+
{ no: 5, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
365
|
+
{ no: 6, name: "created_at", kind: "message", T: Timestamp },
|
|
366
|
+
{ no: 7, name: "updated_at", kind: "message", T: Timestamp },
|
|
367
|
+
{ no: 8, name: "settings", kind: "message", T: FormSettings },
|
|
368
|
+
{ no: 9, name: "org_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
369
|
+
{ no: 10, name: "status", kind: "enum", T: proto3.getEnumType(FormStatus) },
|
|
370
|
+
{ no: 11, name: "published_at", kind: "message", T: Timestamp },
|
|
371
|
+
{ no: 12, name: "layout", kind: "message", T: FormBlock, repeated: true },
|
|
372
|
+
{ no: 13, name: "revision_count", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
373
|
+
]);
|
|
374
|
+
static fromBinary(bytes, options) {
|
|
375
|
+
return new Form().fromBinary(bytes, options);
|
|
376
|
+
}
|
|
377
|
+
static fromJson(jsonValue, options) {
|
|
378
|
+
return new Form().fromJson(jsonValue, options);
|
|
379
|
+
}
|
|
380
|
+
static fromJsonString(jsonString, options) {
|
|
381
|
+
return new Form().fromJsonString(jsonString, options);
|
|
382
|
+
}
|
|
383
|
+
static equals(a, b) {
|
|
384
|
+
return proto3.util.equals(Form, a, b);
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
/**
|
|
388
|
+
* FormSettings contains form configuration
|
|
389
|
+
*
|
|
390
|
+
* @generated from message forms.v1.FormSettings
|
|
391
|
+
*/
|
|
392
|
+
export class FormSettings extends Message {
|
|
393
|
+
/**
|
|
394
|
+
* @generated from field: string submit_button_text = 1;
|
|
395
|
+
*/
|
|
396
|
+
submitButtonText = "";
|
|
397
|
+
/**
|
|
398
|
+
* @generated from field: string success_message = 2;
|
|
399
|
+
*/
|
|
400
|
+
successMessage = "";
|
|
401
|
+
/**
|
|
402
|
+
* @generated from field: string redirect_url = 3;
|
|
403
|
+
*/
|
|
404
|
+
redirectUrl = "";
|
|
405
|
+
/**
|
|
406
|
+
* @generated from field: bool notify_on_submission = 4;
|
|
407
|
+
*/
|
|
408
|
+
notifyOnSubmission = false;
|
|
409
|
+
/**
|
|
410
|
+
* @generated from field: string notification_email = 5;
|
|
411
|
+
*/
|
|
412
|
+
notificationEmail = "";
|
|
413
|
+
constructor(data) {
|
|
414
|
+
super();
|
|
415
|
+
proto3.util.initPartial(data, this);
|
|
416
|
+
}
|
|
417
|
+
static runtime = proto3;
|
|
418
|
+
static typeName = "forms.v1.FormSettings";
|
|
419
|
+
static fields = proto3.util.newFieldList(() => [
|
|
420
|
+
{ no: 1, name: "submit_button_text", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
421
|
+
{ no: 2, name: "success_message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
422
|
+
{ no: 3, name: "redirect_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
423
|
+
{ no: 4, name: "notify_on_submission", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
424
|
+
{ no: 5, name: "notification_email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
425
|
+
]);
|
|
426
|
+
static fromBinary(bytes, options) {
|
|
427
|
+
return new FormSettings().fromBinary(bytes, options);
|
|
428
|
+
}
|
|
429
|
+
static fromJson(jsonValue, options) {
|
|
430
|
+
return new FormSettings().fromJson(jsonValue, options);
|
|
431
|
+
}
|
|
432
|
+
static fromJsonString(jsonString, options) {
|
|
433
|
+
return new FormSettings().fromJsonString(jsonString, options);
|
|
434
|
+
}
|
|
435
|
+
static equals(a, b) {
|
|
436
|
+
return proto3.util.equals(FormSettings, a, b);
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
/**
|
|
440
|
+
* FormRevision represents a saved version of a form
|
|
441
|
+
*
|
|
442
|
+
* @generated from message forms.v1.FormRevision
|
|
443
|
+
*/
|
|
444
|
+
export class FormRevision extends Message {
|
|
445
|
+
/**
|
|
446
|
+
* @generated from field: string id = 1;
|
|
447
|
+
*/
|
|
448
|
+
id = "";
|
|
449
|
+
/**
|
|
450
|
+
* @generated from field: string form_id = 2;
|
|
451
|
+
*/
|
|
452
|
+
formId = "";
|
|
453
|
+
/**
|
|
454
|
+
* @generated from field: int32 version = 3;
|
|
455
|
+
*/
|
|
456
|
+
version = 0;
|
|
457
|
+
/**
|
|
458
|
+
* @generated from field: string name = 4;
|
|
459
|
+
*/
|
|
460
|
+
name = "";
|
|
461
|
+
/**
|
|
462
|
+
* @generated from field: string description = 5;
|
|
463
|
+
*/
|
|
464
|
+
description = "";
|
|
465
|
+
/**
|
|
466
|
+
* @generated from field: repeated forms.v1.FormField fields = 6;
|
|
467
|
+
*/
|
|
468
|
+
fields = [];
|
|
469
|
+
/**
|
|
470
|
+
* @generated from field: repeated forms.v1.FormBlock layout = 7;
|
|
471
|
+
*/
|
|
472
|
+
layout = [];
|
|
473
|
+
/**
|
|
474
|
+
* @generated from field: forms.v1.FormSettings settings = 8;
|
|
475
|
+
*/
|
|
476
|
+
settings;
|
|
477
|
+
/**
|
|
478
|
+
* @generated from field: google.protobuf.Timestamp created_at = 9;
|
|
479
|
+
*/
|
|
480
|
+
createdAt;
|
|
481
|
+
/**
|
|
482
|
+
* @generated from field: string created_by = 10;
|
|
483
|
+
*/
|
|
484
|
+
createdBy = "";
|
|
485
|
+
/**
|
|
486
|
+
* Optional note about this revision
|
|
487
|
+
*
|
|
488
|
+
* @generated from field: string note = 11;
|
|
489
|
+
*/
|
|
490
|
+
note = "";
|
|
491
|
+
constructor(data) {
|
|
492
|
+
super();
|
|
493
|
+
proto3.util.initPartial(data, this);
|
|
494
|
+
}
|
|
495
|
+
static runtime = proto3;
|
|
496
|
+
static typeName = "forms.v1.FormRevision";
|
|
497
|
+
static fields = proto3.util.newFieldList(() => [
|
|
498
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
499
|
+
{ no: 2, name: "form_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
500
|
+
{ no: 3, name: "version", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
501
|
+
{ no: 4, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
502
|
+
{ no: 5, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
503
|
+
{ no: 6, name: "fields", kind: "message", T: FormField, repeated: true },
|
|
504
|
+
{ no: 7, name: "layout", kind: "message", T: FormBlock, repeated: true },
|
|
505
|
+
{ no: 8, name: "settings", kind: "message", T: FormSettings },
|
|
506
|
+
{ no: 9, name: "created_at", kind: "message", T: Timestamp },
|
|
507
|
+
{ no: 10, name: "created_by", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
508
|
+
{ no: 11, name: "note", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
509
|
+
]);
|
|
510
|
+
static fromBinary(bytes, options) {
|
|
511
|
+
return new FormRevision().fromBinary(bytes, options);
|
|
512
|
+
}
|
|
513
|
+
static fromJson(jsonValue, options) {
|
|
514
|
+
return new FormRevision().fromJson(jsonValue, options);
|
|
515
|
+
}
|
|
516
|
+
static fromJsonString(jsonString, options) {
|
|
517
|
+
return new FormRevision().fromJsonString(jsonString, options);
|
|
518
|
+
}
|
|
519
|
+
static equals(a, b) {
|
|
520
|
+
return proto3.util.equals(FormRevision, a, b);
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
/**
|
|
524
|
+
* Submission represents a form submission
|
|
525
|
+
*
|
|
526
|
+
* @generated from message forms.v1.Submission
|
|
527
|
+
*/
|
|
528
|
+
export class Submission extends Message {
|
|
529
|
+
/**
|
|
530
|
+
* @generated from field: string id = 1;
|
|
531
|
+
*/
|
|
532
|
+
id = "";
|
|
533
|
+
/**
|
|
534
|
+
* @generated from field: string form_id = 2;
|
|
535
|
+
*/
|
|
536
|
+
formId = "";
|
|
537
|
+
/**
|
|
538
|
+
* @generated from field: map<string, string> data = 3;
|
|
539
|
+
*/
|
|
540
|
+
data = {};
|
|
541
|
+
/**
|
|
542
|
+
* @generated from field: google.protobuf.Timestamp submitted_at = 4;
|
|
543
|
+
*/
|
|
544
|
+
submittedAt;
|
|
545
|
+
/**
|
|
546
|
+
* @generated from field: string ip_address = 5;
|
|
547
|
+
*/
|
|
548
|
+
ipAddress = "";
|
|
549
|
+
/**
|
|
550
|
+
* @generated from field: string user_agent = 6;
|
|
551
|
+
*/
|
|
552
|
+
userAgent = "";
|
|
553
|
+
constructor(data) {
|
|
554
|
+
super();
|
|
555
|
+
proto3.util.initPartial(data, this);
|
|
556
|
+
}
|
|
557
|
+
static runtime = proto3;
|
|
558
|
+
static typeName = "forms.v1.Submission";
|
|
559
|
+
static fields = proto3.util.newFieldList(() => [
|
|
560
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
561
|
+
{ no: 2, name: "form_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
562
|
+
{ no: 3, name: "data", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "scalar", T: 9 /* ScalarType.STRING */ } },
|
|
563
|
+
{ no: 4, name: "submitted_at", kind: "message", T: Timestamp },
|
|
564
|
+
{ no: 5, name: "ip_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
565
|
+
{ no: 6, name: "user_agent", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
566
|
+
]);
|
|
567
|
+
static fromBinary(bytes, options) {
|
|
568
|
+
return new Submission().fromBinary(bytes, options);
|
|
569
|
+
}
|
|
570
|
+
static fromJson(jsonValue, options) {
|
|
571
|
+
return new Submission().fromJson(jsonValue, options);
|
|
572
|
+
}
|
|
573
|
+
static fromJsonString(jsonString, options) {
|
|
574
|
+
return new Submission().fromJsonString(jsonString, options);
|
|
575
|
+
}
|
|
576
|
+
static equals(a, b) {
|
|
577
|
+
return proto3.util.equals(Submission, a, b);
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
/**
|
|
581
|
+
* @generated from message forms.v1.CreateFormRequest
|
|
582
|
+
*/
|
|
583
|
+
export class CreateFormRequest extends Message {
|
|
584
|
+
/**
|
|
585
|
+
* @generated from field: string name = 1;
|
|
586
|
+
*/
|
|
587
|
+
name = "";
|
|
588
|
+
/**
|
|
589
|
+
* @generated from field: string description = 2;
|
|
590
|
+
*/
|
|
591
|
+
description = "";
|
|
592
|
+
/**
|
|
593
|
+
* @generated from field: repeated forms.v1.FormField fields = 3;
|
|
594
|
+
*/
|
|
595
|
+
fields = [];
|
|
596
|
+
/**
|
|
597
|
+
* @generated from field: forms.v1.FormSettings settings = 4;
|
|
598
|
+
*/
|
|
599
|
+
settings;
|
|
600
|
+
/**
|
|
601
|
+
* @generated from field: repeated forms.v1.FormBlock layout = 5;
|
|
602
|
+
*/
|
|
603
|
+
layout = [];
|
|
604
|
+
constructor(data) {
|
|
605
|
+
super();
|
|
606
|
+
proto3.util.initPartial(data, this);
|
|
607
|
+
}
|
|
608
|
+
static runtime = proto3;
|
|
609
|
+
static typeName = "forms.v1.CreateFormRequest";
|
|
610
|
+
static fields = proto3.util.newFieldList(() => [
|
|
611
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
612
|
+
{ no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
613
|
+
{ no: 3, name: "fields", kind: "message", T: FormField, repeated: true },
|
|
614
|
+
{ no: 4, name: "settings", kind: "message", T: FormSettings },
|
|
615
|
+
{ no: 5, name: "layout", kind: "message", T: FormBlock, repeated: true },
|
|
616
|
+
]);
|
|
617
|
+
static fromBinary(bytes, options) {
|
|
618
|
+
return new CreateFormRequest().fromBinary(bytes, options);
|
|
619
|
+
}
|
|
620
|
+
static fromJson(jsonValue, options) {
|
|
621
|
+
return new CreateFormRequest().fromJson(jsonValue, options);
|
|
622
|
+
}
|
|
623
|
+
static fromJsonString(jsonString, options) {
|
|
624
|
+
return new CreateFormRequest().fromJsonString(jsonString, options);
|
|
625
|
+
}
|
|
626
|
+
static equals(a, b) {
|
|
627
|
+
return proto3.util.equals(CreateFormRequest, a, b);
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
/**
|
|
631
|
+
* @generated from message forms.v1.CreateFormResponse
|
|
632
|
+
*/
|
|
633
|
+
export class CreateFormResponse extends Message {
|
|
634
|
+
/**
|
|
635
|
+
* @generated from field: forms.v1.Form form = 1;
|
|
636
|
+
*/
|
|
637
|
+
form;
|
|
638
|
+
constructor(data) {
|
|
639
|
+
super();
|
|
640
|
+
proto3.util.initPartial(data, this);
|
|
641
|
+
}
|
|
642
|
+
static runtime = proto3;
|
|
643
|
+
static typeName = "forms.v1.CreateFormResponse";
|
|
644
|
+
static fields = proto3.util.newFieldList(() => [
|
|
645
|
+
{ no: 1, name: "form", kind: "message", T: Form },
|
|
646
|
+
]);
|
|
647
|
+
static fromBinary(bytes, options) {
|
|
648
|
+
return new CreateFormResponse().fromBinary(bytes, options);
|
|
649
|
+
}
|
|
650
|
+
static fromJson(jsonValue, options) {
|
|
651
|
+
return new CreateFormResponse().fromJson(jsonValue, options);
|
|
652
|
+
}
|
|
653
|
+
static fromJsonString(jsonString, options) {
|
|
654
|
+
return new CreateFormResponse().fromJsonString(jsonString, options);
|
|
655
|
+
}
|
|
656
|
+
static equals(a, b) {
|
|
657
|
+
return proto3.util.equals(CreateFormResponse, a, b);
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
/**
|
|
661
|
+
* @generated from message forms.v1.GetFormRequest
|
|
662
|
+
*/
|
|
663
|
+
export class GetFormRequest extends Message {
|
|
664
|
+
/**
|
|
665
|
+
* @generated from field: string id = 1;
|
|
666
|
+
*/
|
|
667
|
+
id = "";
|
|
668
|
+
constructor(data) {
|
|
669
|
+
super();
|
|
670
|
+
proto3.util.initPartial(data, this);
|
|
671
|
+
}
|
|
672
|
+
static runtime = proto3;
|
|
673
|
+
static typeName = "forms.v1.GetFormRequest";
|
|
674
|
+
static fields = proto3.util.newFieldList(() => [
|
|
675
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
676
|
+
]);
|
|
677
|
+
static fromBinary(bytes, options) {
|
|
678
|
+
return new GetFormRequest().fromBinary(bytes, options);
|
|
679
|
+
}
|
|
680
|
+
static fromJson(jsonValue, options) {
|
|
681
|
+
return new GetFormRequest().fromJson(jsonValue, options);
|
|
682
|
+
}
|
|
683
|
+
static fromJsonString(jsonString, options) {
|
|
684
|
+
return new GetFormRequest().fromJsonString(jsonString, options);
|
|
685
|
+
}
|
|
686
|
+
static equals(a, b) {
|
|
687
|
+
return proto3.util.equals(GetFormRequest, a, b);
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
/**
|
|
691
|
+
* @generated from message forms.v1.GetFormResponse
|
|
692
|
+
*/
|
|
693
|
+
export class GetFormResponse extends Message {
|
|
694
|
+
/**
|
|
695
|
+
* @generated from field: forms.v1.Form form = 1;
|
|
696
|
+
*/
|
|
697
|
+
form;
|
|
698
|
+
constructor(data) {
|
|
699
|
+
super();
|
|
700
|
+
proto3.util.initPartial(data, this);
|
|
701
|
+
}
|
|
702
|
+
static runtime = proto3;
|
|
703
|
+
static typeName = "forms.v1.GetFormResponse";
|
|
704
|
+
static fields = proto3.util.newFieldList(() => [
|
|
705
|
+
{ no: 1, name: "form", kind: "message", T: Form },
|
|
706
|
+
]);
|
|
707
|
+
static fromBinary(bytes, options) {
|
|
708
|
+
return new GetFormResponse().fromBinary(bytes, options);
|
|
709
|
+
}
|
|
710
|
+
static fromJson(jsonValue, options) {
|
|
711
|
+
return new GetFormResponse().fromJson(jsonValue, options);
|
|
712
|
+
}
|
|
713
|
+
static fromJsonString(jsonString, options) {
|
|
714
|
+
return new GetFormResponse().fromJsonString(jsonString, options);
|
|
715
|
+
}
|
|
716
|
+
static equals(a, b) {
|
|
717
|
+
return proto3.util.equals(GetFormResponse, a, b);
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
/**
|
|
721
|
+
* @generated from message forms.v1.ListFormsRequest
|
|
722
|
+
*/
|
|
723
|
+
export class ListFormsRequest extends Message {
|
|
724
|
+
/**
|
|
725
|
+
* @generated from field: int32 page_size = 1;
|
|
726
|
+
*/
|
|
727
|
+
pageSize = 0;
|
|
728
|
+
/**
|
|
729
|
+
* @generated from field: string page_token = 2;
|
|
730
|
+
*/
|
|
731
|
+
pageToken = "";
|
|
732
|
+
/**
|
|
733
|
+
* Optional filter by status
|
|
734
|
+
*
|
|
735
|
+
* @generated from field: forms.v1.FormStatus status = 3;
|
|
736
|
+
*/
|
|
737
|
+
status = FormStatus.UNSPECIFIED;
|
|
738
|
+
constructor(data) {
|
|
739
|
+
super();
|
|
740
|
+
proto3.util.initPartial(data, this);
|
|
741
|
+
}
|
|
742
|
+
static runtime = proto3;
|
|
743
|
+
static typeName = "forms.v1.ListFormsRequest";
|
|
744
|
+
static fields = proto3.util.newFieldList(() => [
|
|
745
|
+
{ no: 1, name: "page_size", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
746
|
+
{ no: 2, name: "page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
747
|
+
{ no: 3, name: "status", kind: "enum", T: proto3.getEnumType(FormStatus) },
|
|
748
|
+
]);
|
|
749
|
+
static fromBinary(bytes, options) {
|
|
750
|
+
return new ListFormsRequest().fromBinary(bytes, options);
|
|
751
|
+
}
|
|
752
|
+
static fromJson(jsonValue, options) {
|
|
753
|
+
return new ListFormsRequest().fromJson(jsonValue, options);
|
|
754
|
+
}
|
|
755
|
+
static fromJsonString(jsonString, options) {
|
|
756
|
+
return new ListFormsRequest().fromJsonString(jsonString, options);
|
|
757
|
+
}
|
|
758
|
+
static equals(a, b) {
|
|
759
|
+
return proto3.util.equals(ListFormsRequest, a, b);
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
/**
|
|
763
|
+
* @generated from message forms.v1.ListFormsResponse
|
|
764
|
+
*/
|
|
765
|
+
export class ListFormsResponse extends Message {
|
|
766
|
+
/**
|
|
767
|
+
* @generated from field: repeated forms.v1.Form forms = 1;
|
|
768
|
+
*/
|
|
769
|
+
forms = [];
|
|
770
|
+
/**
|
|
771
|
+
* @generated from field: string next_page_token = 2;
|
|
772
|
+
*/
|
|
773
|
+
nextPageToken = "";
|
|
774
|
+
constructor(data) {
|
|
775
|
+
super();
|
|
776
|
+
proto3.util.initPartial(data, this);
|
|
777
|
+
}
|
|
778
|
+
static runtime = proto3;
|
|
779
|
+
static typeName = "forms.v1.ListFormsResponse";
|
|
780
|
+
static fields = proto3.util.newFieldList(() => [
|
|
781
|
+
{ no: 1, name: "forms", kind: "message", T: Form, repeated: true },
|
|
782
|
+
{ no: 2, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
783
|
+
]);
|
|
784
|
+
static fromBinary(bytes, options) {
|
|
785
|
+
return new ListFormsResponse().fromBinary(bytes, options);
|
|
786
|
+
}
|
|
787
|
+
static fromJson(jsonValue, options) {
|
|
788
|
+
return new ListFormsResponse().fromJson(jsonValue, options);
|
|
789
|
+
}
|
|
790
|
+
static fromJsonString(jsonString, options) {
|
|
791
|
+
return new ListFormsResponse().fromJsonString(jsonString, options);
|
|
792
|
+
}
|
|
793
|
+
static equals(a, b) {
|
|
794
|
+
return proto3.util.equals(ListFormsResponse, a, b);
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
/**
|
|
798
|
+
* @generated from message forms.v1.UpdateFormRequest
|
|
799
|
+
*/
|
|
800
|
+
export class UpdateFormRequest extends Message {
|
|
801
|
+
/**
|
|
802
|
+
* @generated from field: string id = 1;
|
|
803
|
+
*/
|
|
804
|
+
id = "";
|
|
805
|
+
/**
|
|
806
|
+
* @generated from field: string name = 2;
|
|
807
|
+
*/
|
|
808
|
+
name = "";
|
|
809
|
+
/**
|
|
810
|
+
* @generated from field: string description = 3;
|
|
811
|
+
*/
|
|
812
|
+
description = "";
|
|
813
|
+
/**
|
|
814
|
+
* @generated from field: repeated forms.v1.FormField fields = 4;
|
|
815
|
+
*/
|
|
816
|
+
fields = [];
|
|
817
|
+
/**
|
|
818
|
+
* @generated from field: forms.v1.FormSettings settings = 5;
|
|
819
|
+
*/
|
|
820
|
+
settings;
|
|
821
|
+
/**
|
|
822
|
+
* @generated from field: repeated forms.v1.FormBlock layout = 6;
|
|
823
|
+
*/
|
|
824
|
+
layout = [];
|
|
825
|
+
constructor(data) {
|
|
826
|
+
super();
|
|
827
|
+
proto3.util.initPartial(data, this);
|
|
828
|
+
}
|
|
829
|
+
static runtime = proto3;
|
|
830
|
+
static typeName = "forms.v1.UpdateFormRequest";
|
|
831
|
+
static fields = proto3.util.newFieldList(() => [
|
|
832
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
833
|
+
{ no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
834
|
+
{ no: 3, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
835
|
+
{ no: 4, name: "fields", kind: "message", T: FormField, repeated: true },
|
|
836
|
+
{ no: 5, name: "settings", kind: "message", T: FormSettings },
|
|
837
|
+
{ no: 6, name: "layout", kind: "message", T: FormBlock, repeated: true },
|
|
838
|
+
]);
|
|
839
|
+
static fromBinary(bytes, options) {
|
|
840
|
+
return new UpdateFormRequest().fromBinary(bytes, options);
|
|
841
|
+
}
|
|
842
|
+
static fromJson(jsonValue, options) {
|
|
843
|
+
return new UpdateFormRequest().fromJson(jsonValue, options);
|
|
844
|
+
}
|
|
845
|
+
static fromJsonString(jsonString, options) {
|
|
846
|
+
return new UpdateFormRequest().fromJsonString(jsonString, options);
|
|
847
|
+
}
|
|
848
|
+
static equals(a, b) {
|
|
849
|
+
return proto3.util.equals(UpdateFormRequest, a, b);
|
|
850
|
+
}
|
|
851
|
+
}
|
|
852
|
+
/**
|
|
853
|
+
* @generated from message forms.v1.UpdateFormResponse
|
|
854
|
+
*/
|
|
855
|
+
export class UpdateFormResponse extends Message {
|
|
856
|
+
/**
|
|
857
|
+
* @generated from field: forms.v1.Form form = 1;
|
|
858
|
+
*/
|
|
859
|
+
form;
|
|
860
|
+
constructor(data) {
|
|
861
|
+
super();
|
|
862
|
+
proto3.util.initPartial(data, this);
|
|
863
|
+
}
|
|
864
|
+
static runtime = proto3;
|
|
865
|
+
static typeName = "forms.v1.UpdateFormResponse";
|
|
866
|
+
static fields = proto3.util.newFieldList(() => [
|
|
867
|
+
{ no: 1, name: "form", kind: "message", T: Form },
|
|
868
|
+
]);
|
|
869
|
+
static fromBinary(bytes, options) {
|
|
870
|
+
return new UpdateFormResponse().fromBinary(bytes, options);
|
|
871
|
+
}
|
|
872
|
+
static fromJson(jsonValue, options) {
|
|
873
|
+
return new UpdateFormResponse().fromJson(jsonValue, options);
|
|
874
|
+
}
|
|
875
|
+
static fromJsonString(jsonString, options) {
|
|
876
|
+
return new UpdateFormResponse().fromJsonString(jsonString, options);
|
|
877
|
+
}
|
|
878
|
+
static equals(a, b) {
|
|
879
|
+
return proto3.util.equals(UpdateFormResponse, a, b);
|
|
880
|
+
}
|
|
881
|
+
}
|
|
882
|
+
/**
|
|
883
|
+
* @generated from message forms.v1.DeleteFormRequest
|
|
884
|
+
*/
|
|
885
|
+
export class DeleteFormRequest extends Message {
|
|
886
|
+
/**
|
|
887
|
+
* @generated from field: string id = 1;
|
|
888
|
+
*/
|
|
889
|
+
id = "";
|
|
890
|
+
constructor(data) {
|
|
891
|
+
super();
|
|
892
|
+
proto3.util.initPartial(data, this);
|
|
893
|
+
}
|
|
894
|
+
static runtime = proto3;
|
|
895
|
+
static typeName = "forms.v1.DeleteFormRequest";
|
|
896
|
+
static fields = proto3.util.newFieldList(() => [
|
|
897
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
898
|
+
]);
|
|
899
|
+
static fromBinary(bytes, options) {
|
|
900
|
+
return new DeleteFormRequest().fromBinary(bytes, options);
|
|
901
|
+
}
|
|
902
|
+
static fromJson(jsonValue, options) {
|
|
903
|
+
return new DeleteFormRequest().fromJson(jsonValue, options);
|
|
904
|
+
}
|
|
905
|
+
static fromJsonString(jsonString, options) {
|
|
906
|
+
return new DeleteFormRequest().fromJsonString(jsonString, options);
|
|
907
|
+
}
|
|
908
|
+
static equals(a, b) {
|
|
909
|
+
return proto3.util.equals(DeleteFormRequest, a, b);
|
|
910
|
+
}
|
|
911
|
+
}
|
|
912
|
+
/**
|
|
913
|
+
* @generated from message forms.v1.DeleteFormResponse
|
|
914
|
+
*/
|
|
915
|
+
export class DeleteFormResponse extends Message {
|
|
916
|
+
constructor(data) {
|
|
917
|
+
super();
|
|
918
|
+
proto3.util.initPartial(data, this);
|
|
919
|
+
}
|
|
920
|
+
static runtime = proto3;
|
|
921
|
+
static typeName = "forms.v1.DeleteFormResponse";
|
|
922
|
+
static fields = proto3.util.newFieldList(() => []);
|
|
923
|
+
static fromBinary(bytes, options) {
|
|
924
|
+
return new DeleteFormResponse().fromBinary(bytes, options);
|
|
925
|
+
}
|
|
926
|
+
static fromJson(jsonValue, options) {
|
|
927
|
+
return new DeleteFormResponse().fromJson(jsonValue, options);
|
|
928
|
+
}
|
|
929
|
+
static fromJsonString(jsonString, options) {
|
|
930
|
+
return new DeleteFormResponse().fromJsonString(jsonString, options);
|
|
931
|
+
}
|
|
932
|
+
static equals(a, b) {
|
|
933
|
+
return proto3.util.equals(DeleteFormResponse, a, b);
|
|
934
|
+
}
|
|
935
|
+
}
|
|
936
|
+
/**
|
|
937
|
+
* @generated from message forms.v1.PublishFormRequest
|
|
938
|
+
*/
|
|
939
|
+
export class PublishFormRequest extends Message {
|
|
940
|
+
/**
|
|
941
|
+
* @generated from field: string id = 1;
|
|
942
|
+
*/
|
|
943
|
+
id = "";
|
|
944
|
+
/**
|
|
945
|
+
* Optional note for the revision
|
|
946
|
+
*
|
|
947
|
+
* @generated from field: string revision_note = 2;
|
|
948
|
+
*/
|
|
949
|
+
revisionNote = "";
|
|
950
|
+
constructor(data) {
|
|
951
|
+
super();
|
|
952
|
+
proto3.util.initPartial(data, this);
|
|
953
|
+
}
|
|
954
|
+
static runtime = proto3;
|
|
955
|
+
static typeName = "forms.v1.PublishFormRequest";
|
|
956
|
+
static fields = proto3.util.newFieldList(() => [
|
|
957
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
958
|
+
{ no: 2, name: "revision_note", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
959
|
+
]);
|
|
960
|
+
static fromBinary(bytes, options) {
|
|
961
|
+
return new PublishFormRequest().fromBinary(bytes, options);
|
|
962
|
+
}
|
|
963
|
+
static fromJson(jsonValue, options) {
|
|
964
|
+
return new PublishFormRequest().fromJson(jsonValue, options);
|
|
965
|
+
}
|
|
966
|
+
static fromJsonString(jsonString, options) {
|
|
967
|
+
return new PublishFormRequest().fromJsonString(jsonString, options);
|
|
968
|
+
}
|
|
969
|
+
static equals(a, b) {
|
|
970
|
+
return proto3.util.equals(PublishFormRequest, a, b);
|
|
971
|
+
}
|
|
972
|
+
}
|
|
973
|
+
/**
|
|
974
|
+
* @generated from message forms.v1.PublishFormResponse
|
|
975
|
+
*/
|
|
976
|
+
export class PublishFormResponse extends Message {
|
|
977
|
+
/**
|
|
978
|
+
* @generated from field: forms.v1.Form form = 1;
|
|
979
|
+
*/
|
|
980
|
+
form;
|
|
981
|
+
/**
|
|
982
|
+
* @generated from field: forms.v1.FormRevision revision = 2;
|
|
983
|
+
*/
|
|
984
|
+
revision;
|
|
985
|
+
constructor(data) {
|
|
986
|
+
super();
|
|
987
|
+
proto3.util.initPartial(data, this);
|
|
988
|
+
}
|
|
989
|
+
static runtime = proto3;
|
|
990
|
+
static typeName = "forms.v1.PublishFormResponse";
|
|
991
|
+
static fields = proto3.util.newFieldList(() => [
|
|
992
|
+
{ no: 1, name: "form", kind: "message", T: Form },
|
|
993
|
+
{ no: 2, name: "revision", kind: "message", T: FormRevision },
|
|
994
|
+
]);
|
|
995
|
+
static fromBinary(bytes, options) {
|
|
996
|
+
return new PublishFormResponse().fromBinary(bytes, options);
|
|
997
|
+
}
|
|
998
|
+
static fromJson(jsonValue, options) {
|
|
999
|
+
return new PublishFormResponse().fromJson(jsonValue, options);
|
|
1000
|
+
}
|
|
1001
|
+
static fromJsonString(jsonString, options) {
|
|
1002
|
+
return new PublishFormResponse().fromJsonString(jsonString, options);
|
|
1003
|
+
}
|
|
1004
|
+
static equals(a, b) {
|
|
1005
|
+
return proto3.util.equals(PublishFormResponse, a, b);
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
1008
|
+
/**
|
|
1009
|
+
* @generated from message forms.v1.UnpublishFormRequest
|
|
1010
|
+
*/
|
|
1011
|
+
export class UnpublishFormRequest extends Message {
|
|
1012
|
+
/**
|
|
1013
|
+
* @generated from field: string id = 1;
|
|
1014
|
+
*/
|
|
1015
|
+
id = "";
|
|
1016
|
+
constructor(data) {
|
|
1017
|
+
super();
|
|
1018
|
+
proto3.util.initPartial(data, this);
|
|
1019
|
+
}
|
|
1020
|
+
static runtime = proto3;
|
|
1021
|
+
static typeName = "forms.v1.UnpublishFormRequest";
|
|
1022
|
+
static fields = proto3.util.newFieldList(() => [
|
|
1023
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1024
|
+
]);
|
|
1025
|
+
static fromBinary(bytes, options) {
|
|
1026
|
+
return new UnpublishFormRequest().fromBinary(bytes, options);
|
|
1027
|
+
}
|
|
1028
|
+
static fromJson(jsonValue, options) {
|
|
1029
|
+
return new UnpublishFormRequest().fromJson(jsonValue, options);
|
|
1030
|
+
}
|
|
1031
|
+
static fromJsonString(jsonString, options) {
|
|
1032
|
+
return new UnpublishFormRequest().fromJsonString(jsonString, options);
|
|
1033
|
+
}
|
|
1034
|
+
static equals(a, b) {
|
|
1035
|
+
return proto3.util.equals(UnpublishFormRequest, a, b);
|
|
1036
|
+
}
|
|
1037
|
+
}
|
|
1038
|
+
/**
|
|
1039
|
+
* @generated from message forms.v1.UnpublishFormResponse
|
|
1040
|
+
*/
|
|
1041
|
+
export class UnpublishFormResponse extends Message {
|
|
1042
|
+
/**
|
|
1043
|
+
* @generated from field: forms.v1.Form form = 1;
|
|
1044
|
+
*/
|
|
1045
|
+
form;
|
|
1046
|
+
constructor(data) {
|
|
1047
|
+
super();
|
|
1048
|
+
proto3.util.initPartial(data, this);
|
|
1049
|
+
}
|
|
1050
|
+
static runtime = proto3;
|
|
1051
|
+
static typeName = "forms.v1.UnpublishFormResponse";
|
|
1052
|
+
static fields = proto3.util.newFieldList(() => [
|
|
1053
|
+
{ no: 1, name: "form", kind: "message", T: Form },
|
|
1054
|
+
]);
|
|
1055
|
+
static fromBinary(bytes, options) {
|
|
1056
|
+
return new UnpublishFormResponse().fromBinary(bytes, options);
|
|
1057
|
+
}
|
|
1058
|
+
static fromJson(jsonValue, options) {
|
|
1059
|
+
return new UnpublishFormResponse().fromJson(jsonValue, options);
|
|
1060
|
+
}
|
|
1061
|
+
static fromJsonString(jsonString, options) {
|
|
1062
|
+
return new UnpublishFormResponse().fromJsonString(jsonString, options);
|
|
1063
|
+
}
|
|
1064
|
+
static equals(a, b) {
|
|
1065
|
+
return proto3.util.equals(UnpublishFormResponse, a, b);
|
|
1066
|
+
}
|
|
1067
|
+
}
|
|
1068
|
+
/**
|
|
1069
|
+
* @generated from message forms.v1.SaveRevisionRequest
|
|
1070
|
+
*/
|
|
1071
|
+
export class SaveRevisionRequest extends Message {
|
|
1072
|
+
/**
|
|
1073
|
+
* @generated from field: string id = 1;
|
|
1074
|
+
*/
|
|
1075
|
+
id = "";
|
|
1076
|
+
/**
|
|
1077
|
+
* Optional note for this snapshot
|
|
1078
|
+
*
|
|
1079
|
+
* @generated from field: string note = 2;
|
|
1080
|
+
*/
|
|
1081
|
+
note = "";
|
|
1082
|
+
constructor(data) {
|
|
1083
|
+
super();
|
|
1084
|
+
proto3.util.initPartial(data, this);
|
|
1085
|
+
}
|
|
1086
|
+
static runtime = proto3;
|
|
1087
|
+
static typeName = "forms.v1.SaveRevisionRequest";
|
|
1088
|
+
static fields = proto3.util.newFieldList(() => [
|
|
1089
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1090
|
+
{ no: 2, name: "note", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1091
|
+
]);
|
|
1092
|
+
static fromBinary(bytes, options) {
|
|
1093
|
+
return new SaveRevisionRequest().fromBinary(bytes, options);
|
|
1094
|
+
}
|
|
1095
|
+
static fromJson(jsonValue, options) {
|
|
1096
|
+
return new SaveRevisionRequest().fromJson(jsonValue, options);
|
|
1097
|
+
}
|
|
1098
|
+
static fromJsonString(jsonString, options) {
|
|
1099
|
+
return new SaveRevisionRequest().fromJsonString(jsonString, options);
|
|
1100
|
+
}
|
|
1101
|
+
static equals(a, b) {
|
|
1102
|
+
return proto3.util.equals(SaveRevisionRequest, a, b);
|
|
1103
|
+
}
|
|
1104
|
+
}
|
|
1105
|
+
/**
|
|
1106
|
+
* @generated from message forms.v1.SaveRevisionResponse
|
|
1107
|
+
*/
|
|
1108
|
+
export class SaveRevisionResponse extends Message {
|
|
1109
|
+
/**
|
|
1110
|
+
* @generated from field: forms.v1.FormRevision revision = 1;
|
|
1111
|
+
*/
|
|
1112
|
+
revision;
|
|
1113
|
+
constructor(data) {
|
|
1114
|
+
super();
|
|
1115
|
+
proto3.util.initPartial(data, this);
|
|
1116
|
+
}
|
|
1117
|
+
static runtime = proto3;
|
|
1118
|
+
static typeName = "forms.v1.SaveRevisionResponse";
|
|
1119
|
+
static fields = proto3.util.newFieldList(() => [
|
|
1120
|
+
{ no: 1, name: "revision", kind: "message", T: FormRevision },
|
|
1121
|
+
]);
|
|
1122
|
+
static fromBinary(bytes, options) {
|
|
1123
|
+
return new SaveRevisionResponse().fromBinary(bytes, options);
|
|
1124
|
+
}
|
|
1125
|
+
static fromJson(jsonValue, options) {
|
|
1126
|
+
return new SaveRevisionResponse().fromJson(jsonValue, options);
|
|
1127
|
+
}
|
|
1128
|
+
static fromJsonString(jsonString, options) {
|
|
1129
|
+
return new SaveRevisionResponse().fromJsonString(jsonString, options);
|
|
1130
|
+
}
|
|
1131
|
+
static equals(a, b) {
|
|
1132
|
+
return proto3.util.equals(SaveRevisionResponse, a, b);
|
|
1133
|
+
}
|
|
1134
|
+
}
|
|
1135
|
+
/**
|
|
1136
|
+
* @generated from message forms.v1.ListRevisionsRequest
|
|
1137
|
+
*/
|
|
1138
|
+
export class ListRevisionsRequest extends Message {
|
|
1139
|
+
/**
|
|
1140
|
+
* @generated from field: string form_id = 1;
|
|
1141
|
+
*/
|
|
1142
|
+
formId = "";
|
|
1143
|
+
/**
|
|
1144
|
+
* @generated from field: int32 page_size = 2;
|
|
1145
|
+
*/
|
|
1146
|
+
pageSize = 0;
|
|
1147
|
+
/**
|
|
1148
|
+
* @generated from field: string page_token = 3;
|
|
1149
|
+
*/
|
|
1150
|
+
pageToken = "";
|
|
1151
|
+
constructor(data) {
|
|
1152
|
+
super();
|
|
1153
|
+
proto3.util.initPartial(data, this);
|
|
1154
|
+
}
|
|
1155
|
+
static runtime = proto3;
|
|
1156
|
+
static typeName = "forms.v1.ListRevisionsRequest";
|
|
1157
|
+
static fields = proto3.util.newFieldList(() => [
|
|
1158
|
+
{ no: 1, name: "form_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1159
|
+
{ no: 2, name: "page_size", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
1160
|
+
{ no: 3, name: "page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1161
|
+
]);
|
|
1162
|
+
static fromBinary(bytes, options) {
|
|
1163
|
+
return new ListRevisionsRequest().fromBinary(bytes, options);
|
|
1164
|
+
}
|
|
1165
|
+
static fromJson(jsonValue, options) {
|
|
1166
|
+
return new ListRevisionsRequest().fromJson(jsonValue, options);
|
|
1167
|
+
}
|
|
1168
|
+
static fromJsonString(jsonString, options) {
|
|
1169
|
+
return new ListRevisionsRequest().fromJsonString(jsonString, options);
|
|
1170
|
+
}
|
|
1171
|
+
static equals(a, b) {
|
|
1172
|
+
return proto3.util.equals(ListRevisionsRequest, a, b);
|
|
1173
|
+
}
|
|
1174
|
+
}
|
|
1175
|
+
/**
|
|
1176
|
+
* @generated from message forms.v1.ListRevisionsResponse
|
|
1177
|
+
*/
|
|
1178
|
+
export class ListRevisionsResponse extends Message {
|
|
1179
|
+
/**
|
|
1180
|
+
* @generated from field: repeated forms.v1.FormRevision revisions = 1;
|
|
1181
|
+
*/
|
|
1182
|
+
revisions = [];
|
|
1183
|
+
/**
|
|
1184
|
+
* @generated from field: string next_page_token = 2;
|
|
1185
|
+
*/
|
|
1186
|
+
nextPageToken = "";
|
|
1187
|
+
constructor(data) {
|
|
1188
|
+
super();
|
|
1189
|
+
proto3.util.initPartial(data, this);
|
|
1190
|
+
}
|
|
1191
|
+
static runtime = proto3;
|
|
1192
|
+
static typeName = "forms.v1.ListRevisionsResponse";
|
|
1193
|
+
static fields = proto3.util.newFieldList(() => [
|
|
1194
|
+
{ no: 1, name: "revisions", kind: "message", T: FormRevision, repeated: true },
|
|
1195
|
+
{ no: 2, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1196
|
+
]);
|
|
1197
|
+
static fromBinary(bytes, options) {
|
|
1198
|
+
return new ListRevisionsResponse().fromBinary(bytes, options);
|
|
1199
|
+
}
|
|
1200
|
+
static fromJson(jsonValue, options) {
|
|
1201
|
+
return new ListRevisionsResponse().fromJson(jsonValue, options);
|
|
1202
|
+
}
|
|
1203
|
+
static fromJsonString(jsonString, options) {
|
|
1204
|
+
return new ListRevisionsResponse().fromJsonString(jsonString, options);
|
|
1205
|
+
}
|
|
1206
|
+
static equals(a, b) {
|
|
1207
|
+
return proto3.util.equals(ListRevisionsResponse, a, b);
|
|
1208
|
+
}
|
|
1209
|
+
}
|
|
1210
|
+
/**
|
|
1211
|
+
* @generated from message forms.v1.RestoreRevisionRequest
|
|
1212
|
+
*/
|
|
1213
|
+
export class RestoreRevisionRequest extends Message {
|
|
1214
|
+
/**
|
|
1215
|
+
* @generated from field: string form_id = 1;
|
|
1216
|
+
*/
|
|
1217
|
+
formId = "";
|
|
1218
|
+
/**
|
|
1219
|
+
* @generated from field: string revision_id = 2;
|
|
1220
|
+
*/
|
|
1221
|
+
revisionId = "";
|
|
1222
|
+
constructor(data) {
|
|
1223
|
+
super();
|
|
1224
|
+
proto3.util.initPartial(data, this);
|
|
1225
|
+
}
|
|
1226
|
+
static runtime = proto3;
|
|
1227
|
+
static typeName = "forms.v1.RestoreRevisionRequest";
|
|
1228
|
+
static fields = proto3.util.newFieldList(() => [
|
|
1229
|
+
{ no: 1, name: "form_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1230
|
+
{ no: 2, name: "revision_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1231
|
+
]);
|
|
1232
|
+
static fromBinary(bytes, options) {
|
|
1233
|
+
return new RestoreRevisionRequest().fromBinary(bytes, options);
|
|
1234
|
+
}
|
|
1235
|
+
static fromJson(jsonValue, options) {
|
|
1236
|
+
return new RestoreRevisionRequest().fromJson(jsonValue, options);
|
|
1237
|
+
}
|
|
1238
|
+
static fromJsonString(jsonString, options) {
|
|
1239
|
+
return new RestoreRevisionRequest().fromJsonString(jsonString, options);
|
|
1240
|
+
}
|
|
1241
|
+
static equals(a, b) {
|
|
1242
|
+
return proto3.util.equals(RestoreRevisionRequest, a, b);
|
|
1243
|
+
}
|
|
1244
|
+
}
|
|
1245
|
+
/**
|
|
1246
|
+
* @generated from message forms.v1.RestoreRevisionResponse
|
|
1247
|
+
*/
|
|
1248
|
+
export class RestoreRevisionResponse extends Message {
|
|
1249
|
+
/**
|
|
1250
|
+
* @generated from field: forms.v1.Form form = 1;
|
|
1251
|
+
*/
|
|
1252
|
+
form;
|
|
1253
|
+
constructor(data) {
|
|
1254
|
+
super();
|
|
1255
|
+
proto3.util.initPartial(data, this);
|
|
1256
|
+
}
|
|
1257
|
+
static runtime = proto3;
|
|
1258
|
+
static typeName = "forms.v1.RestoreRevisionResponse";
|
|
1259
|
+
static fields = proto3.util.newFieldList(() => [
|
|
1260
|
+
{ no: 1, name: "form", kind: "message", T: Form },
|
|
1261
|
+
]);
|
|
1262
|
+
static fromBinary(bytes, options) {
|
|
1263
|
+
return new RestoreRevisionResponse().fromBinary(bytes, options);
|
|
1264
|
+
}
|
|
1265
|
+
static fromJson(jsonValue, options) {
|
|
1266
|
+
return new RestoreRevisionResponse().fromJson(jsonValue, options);
|
|
1267
|
+
}
|
|
1268
|
+
static fromJsonString(jsonString, options) {
|
|
1269
|
+
return new RestoreRevisionResponse().fromJsonString(jsonString, options);
|
|
1270
|
+
}
|
|
1271
|
+
static equals(a, b) {
|
|
1272
|
+
return proto3.util.equals(RestoreRevisionResponse, a, b);
|
|
1273
|
+
}
|
|
1274
|
+
}
|
|
1275
|
+
/**
|
|
1276
|
+
* @generated from message forms.v1.SubmitFormRequest
|
|
1277
|
+
*/
|
|
1278
|
+
export class SubmitFormRequest extends Message {
|
|
1279
|
+
/**
|
|
1280
|
+
* @generated from field: string form_id = 1;
|
|
1281
|
+
*/
|
|
1282
|
+
formId = "";
|
|
1283
|
+
/**
|
|
1284
|
+
* @generated from field: map<string, string> data = 2;
|
|
1285
|
+
*/
|
|
1286
|
+
data = {};
|
|
1287
|
+
constructor(data) {
|
|
1288
|
+
super();
|
|
1289
|
+
proto3.util.initPartial(data, this);
|
|
1290
|
+
}
|
|
1291
|
+
static runtime = proto3;
|
|
1292
|
+
static typeName = "forms.v1.SubmitFormRequest";
|
|
1293
|
+
static fields = proto3.util.newFieldList(() => [
|
|
1294
|
+
{ no: 1, name: "form_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1295
|
+
{ no: 2, name: "data", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "scalar", T: 9 /* ScalarType.STRING */ } },
|
|
1296
|
+
]);
|
|
1297
|
+
static fromBinary(bytes, options) {
|
|
1298
|
+
return new SubmitFormRequest().fromBinary(bytes, options);
|
|
1299
|
+
}
|
|
1300
|
+
static fromJson(jsonValue, options) {
|
|
1301
|
+
return new SubmitFormRequest().fromJson(jsonValue, options);
|
|
1302
|
+
}
|
|
1303
|
+
static fromJsonString(jsonString, options) {
|
|
1304
|
+
return new SubmitFormRequest().fromJsonString(jsonString, options);
|
|
1305
|
+
}
|
|
1306
|
+
static equals(a, b) {
|
|
1307
|
+
return proto3.util.equals(SubmitFormRequest, a, b);
|
|
1308
|
+
}
|
|
1309
|
+
}
|
|
1310
|
+
/**
|
|
1311
|
+
* @generated from message forms.v1.SubmitFormResponse
|
|
1312
|
+
*/
|
|
1313
|
+
export class SubmitFormResponse extends Message {
|
|
1314
|
+
/**
|
|
1315
|
+
* @generated from field: forms.v1.Submission submission = 1;
|
|
1316
|
+
*/
|
|
1317
|
+
submission;
|
|
1318
|
+
constructor(data) {
|
|
1319
|
+
super();
|
|
1320
|
+
proto3.util.initPartial(data, this);
|
|
1321
|
+
}
|
|
1322
|
+
static runtime = proto3;
|
|
1323
|
+
static typeName = "forms.v1.SubmitFormResponse";
|
|
1324
|
+
static fields = proto3.util.newFieldList(() => [
|
|
1325
|
+
{ no: 1, name: "submission", kind: "message", T: Submission },
|
|
1326
|
+
]);
|
|
1327
|
+
static fromBinary(bytes, options) {
|
|
1328
|
+
return new SubmitFormResponse().fromBinary(bytes, options);
|
|
1329
|
+
}
|
|
1330
|
+
static fromJson(jsonValue, options) {
|
|
1331
|
+
return new SubmitFormResponse().fromJson(jsonValue, options);
|
|
1332
|
+
}
|
|
1333
|
+
static fromJsonString(jsonString, options) {
|
|
1334
|
+
return new SubmitFormResponse().fromJsonString(jsonString, options);
|
|
1335
|
+
}
|
|
1336
|
+
static equals(a, b) {
|
|
1337
|
+
return proto3.util.equals(SubmitFormResponse, a, b);
|
|
1338
|
+
}
|
|
1339
|
+
}
|
|
1340
|
+
/**
|
|
1341
|
+
* @generated from message forms.v1.GetFormPublicRequest
|
|
1342
|
+
*/
|
|
1343
|
+
export class GetFormPublicRequest extends Message {
|
|
1344
|
+
/**
|
|
1345
|
+
* @generated from field: string id = 1;
|
|
1346
|
+
*/
|
|
1347
|
+
id = "";
|
|
1348
|
+
constructor(data) {
|
|
1349
|
+
super();
|
|
1350
|
+
proto3.util.initPartial(data, this);
|
|
1351
|
+
}
|
|
1352
|
+
static runtime = proto3;
|
|
1353
|
+
static typeName = "forms.v1.GetFormPublicRequest";
|
|
1354
|
+
static fields = proto3.util.newFieldList(() => [
|
|
1355
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1356
|
+
]);
|
|
1357
|
+
static fromBinary(bytes, options) {
|
|
1358
|
+
return new GetFormPublicRequest().fromBinary(bytes, options);
|
|
1359
|
+
}
|
|
1360
|
+
static fromJson(jsonValue, options) {
|
|
1361
|
+
return new GetFormPublicRequest().fromJson(jsonValue, options);
|
|
1362
|
+
}
|
|
1363
|
+
static fromJsonString(jsonString, options) {
|
|
1364
|
+
return new GetFormPublicRequest().fromJsonString(jsonString, options);
|
|
1365
|
+
}
|
|
1366
|
+
static equals(a, b) {
|
|
1367
|
+
return proto3.util.equals(GetFormPublicRequest, a, b);
|
|
1368
|
+
}
|
|
1369
|
+
}
|
|
1370
|
+
/**
|
|
1371
|
+
* @generated from message forms.v1.GetFormPublicResponse
|
|
1372
|
+
*/
|
|
1373
|
+
export class GetFormPublicResponse extends Message {
|
|
1374
|
+
/**
|
|
1375
|
+
* @generated from field: string id = 1;
|
|
1376
|
+
*/
|
|
1377
|
+
id = "";
|
|
1378
|
+
/**
|
|
1379
|
+
* @generated from field: string name = 2;
|
|
1380
|
+
*/
|
|
1381
|
+
name = "";
|
|
1382
|
+
/**
|
|
1383
|
+
* @generated from field: string description = 3;
|
|
1384
|
+
*/
|
|
1385
|
+
description = "";
|
|
1386
|
+
/**
|
|
1387
|
+
* @generated from field: repeated forms.v1.FormField fields = 4;
|
|
1388
|
+
*/
|
|
1389
|
+
fields = [];
|
|
1390
|
+
/**
|
|
1391
|
+
* @generated from field: forms.v1.FormSettings settings = 5;
|
|
1392
|
+
*/
|
|
1393
|
+
settings;
|
|
1394
|
+
/**
|
|
1395
|
+
* @generated from field: repeated forms.v1.FormBlock layout = 6;
|
|
1396
|
+
*/
|
|
1397
|
+
layout = [];
|
|
1398
|
+
constructor(data) {
|
|
1399
|
+
super();
|
|
1400
|
+
proto3.util.initPartial(data, this);
|
|
1401
|
+
}
|
|
1402
|
+
static runtime = proto3;
|
|
1403
|
+
static typeName = "forms.v1.GetFormPublicResponse";
|
|
1404
|
+
static fields = proto3.util.newFieldList(() => [
|
|
1405
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1406
|
+
{ no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1407
|
+
{ no: 3, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1408
|
+
{ no: 4, name: "fields", kind: "message", T: FormField, repeated: true },
|
|
1409
|
+
{ no: 5, name: "settings", kind: "message", T: FormSettings },
|
|
1410
|
+
{ no: 6, name: "layout", kind: "message", T: FormBlock, repeated: true },
|
|
1411
|
+
]);
|
|
1412
|
+
static fromBinary(bytes, options) {
|
|
1413
|
+
return new GetFormPublicResponse().fromBinary(bytes, options);
|
|
1414
|
+
}
|
|
1415
|
+
static fromJson(jsonValue, options) {
|
|
1416
|
+
return new GetFormPublicResponse().fromJson(jsonValue, options);
|
|
1417
|
+
}
|
|
1418
|
+
static fromJsonString(jsonString, options) {
|
|
1419
|
+
return new GetFormPublicResponse().fromJsonString(jsonString, options);
|
|
1420
|
+
}
|
|
1421
|
+
static equals(a, b) {
|
|
1422
|
+
return proto3.util.equals(GetFormPublicResponse, a, b);
|
|
1423
|
+
}
|
|
1424
|
+
}
|
|
1425
|
+
/**
|
|
1426
|
+
* @generated from message forms.v1.ListSubmissionsRequest
|
|
1427
|
+
*/
|
|
1428
|
+
export class ListSubmissionsRequest extends Message {
|
|
1429
|
+
/**
|
|
1430
|
+
* @generated from field: string form_id = 1;
|
|
1431
|
+
*/
|
|
1432
|
+
formId = "";
|
|
1433
|
+
/**
|
|
1434
|
+
* @generated from field: int32 page_size = 2;
|
|
1435
|
+
*/
|
|
1436
|
+
pageSize = 0;
|
|
1437
|
+
/**
|
|
1438
|
+
* @generated from field: string page_token = 3;
|
|
1439
|
+
*/
|
|
1440
|
+
pageToken = "";
|
|
1441
|
+
constructor(data) {
|
|
1442
|
+
super();
|
|
1443
|
+
proto3.util.initPartial(data, this);
|
|
1444
|
+
}
|
|
1445
|
+
static runtime = proto3;
|
|
1446
|
+
static typeName = "forms.v1.ListSubmissionsRequest";
|
|
1447
|
+
static fields = proto3.util.newFieldList(() => [
|
|
1448
|
+
{ no: 1, name: "form_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1449
|
+
{ no: 2, name: "page_size", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
1450
|
+
{ no: 3, name: "page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1451
|
+
]);
|
|
1452
|
+
static fromBinary(bytes, options) {
|
|
1453
|
+
return new ListSubmissionsRequest().fromBinary(bytes, options);
|
|
1454
|
+
}
|
|
1455
|
+
static fromJson(jsonValue, options) {
|
|
1456
|
+
return new ListSubmissionsRequest().fromJson(jsonValue, options);
|
|
1457
|
+
}
|
|
1458
|
+
static fromJsonString(jsonString, options) {
|
|
1459
|
+
return new ListSubmissionsRequest().fromJsonString(jsonString, options);
|
|
1460
|
+
}
|
|
1461
|
+
static equals(a, b) {
|
|
1462
|
+
return proto3.util.equals(ListSubmissionsRequest, a, b);
|
|
1463
|
+
}
|
|
1464
|
+
}
|
|
1465
|
+
/**
|
|
1466
|
+
* @generated from message forms.v1.ListSubmissionsResponse
|
|
1467
|
+
*/
|
|
1468
|
+
export class ListSubmissionsResponse extends Message {
|
|
1469
|
+
/**
|
|
1470
|
+
* @generated from field: repeated forms.v1.Submission submissions = 1;
|
|
1471
|
+
*/
|
|
1472
|
+
submissions = [];
|
|
1473
|
+
/**
|
|
1474
|
+
* @generated from field: int32 total_count = 2;
|
|
1475
|
+
*/
|
|
1476
|
+
totalCount = 0;
|
|
1477
|
+
/**
|
|
1478
|
+
* @generated from field: string next_page_token = 3;
|
|
1479
|
+
*/
|
|
1480
|
+
nextPageToken = "";
|
|
1481
|
+
constructor(data) {
|
|
1482
|
+
super();
|
|
1483
|
+
proto3.util.initPartial(data, this);
|
|
1484
|
+
}
|
|
1485
|
+
static runtime = proto3;
|
|
1486
|
+
static typeName = "forms.v1.ListSubmissionsResponse";
|
|
1487
|
+
static fields = proto3.util.newFieldList(() => [
|
|
1488
|
+
{ no: 1, name: "submissions", kind: "message", T: Submission, repeated: true },
|
|
1489
|
+
{ no: 2, name: "total_count", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
1490
|
+
{ no: 3, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1491
|
+
]);
|
|
1492
|
+
static fromBinary(bytes, options) {
|
|
1493
|
+
return new ListSubmissionsResponse().fromBinary(bytes, options);
|
|
1494
|
+
}
|
|
1495
|
+
static fromJson(jsonValue, options) {
|
|
1496
|
+
return new ListSubmissionsResponse().fromJson(jsonValue, options);
|
|
1497
|
+
}
|
|
1498
|
+
static fromJsonString(jsonString, options) {
|
|
1499
|
+
return new ListSubmissionsResponse().fromJsonString(jsonString, options);
|
|
1500
|
+
}
|
|
1501
|
+
static equals(a, b) {
|
|
1502
|
+
return proto3.util.equals(ListSubmissionsResponse, a, b);
|
|
1503
|
+
}
|
|
1504
|
+
}
|
|
1505
|
+
/**
|
|
1506
|
+
* @generated from message forms.v1.GetSubmissionRequest
|
|
1507
|
+
*/
|
|
1508
|
+
export class GetSubmissionRequest extends Message {
|
|
1509
|
+
/**
|
|
1510
|
+
* @generated from field: string id = 1;
|
|
1511
|
+
*/
|
|
1512
|
+
id = "";
|
|
1513
|
+
constructor(data) {
|
|
1514
|
+
super();
|
|
1515
|
+
proto3.util.initPartial(data, this);
|
|
1516
|
+
}
|
|
1517
|
+
static runtime = proto3;
|
|
1518
|
+
static typeName = "forms.v1.GetSubmissionRequest";
|
|
1519
|
+
static fields = proto3.util.newFieldList(() => [
|
|
1520
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1521
|
+
]);
|
|
1522
|
+
static fromBinary(bytes, options) {
|
|
1523
|
+
return new GetSubmissionRequest().fromBinary(bytes, options);
|
|
1524
|
+
}
|
|
1525
|
+
static fromJson(jsonValue, options) {
|
|
1526
|
+
return new GetSubmissionRequest().fromJson(jsonValue, options);
|
|
1527
|
+
}
|
|
1528
|
+
static fromJsonString(jsonString, options) {
|
|
1529
|
+
return new GetSubmissionRequest().fromJsonString(jsonString, options);
|
|
1530
|
+
}
|
|
1531
|
+
static equals(a, b) {
|
|
1532
|
+
return proto3.util.equals(GetSubmissionRequest, a, b);
|
|
1533
|
+
}
|
|
1534
|
+
}
|
|
1535
|
+
/**
|
|
1536
|
+
* @generated from message forms.v1.GetSubmissionResponse
|
|
1537
|
+
*/
|
|
1538
|
+
export class GetSubmissionResponse extends Message {
|
|
1539
|
+
/**
|
|
1540
|
+
* @generated from field: forms.v1.Submission submission = 1;
|
|
1541
|
+
*/
|
|
1542
|
+
submission;
|
|
1543
|
+
constructor(data) {
|
|
1544
|
+
super();
|
|
1545
|
+
proto3.util.initPartial(data, this);
|
|
1546
|
+
}
|
|
1547
|
+
static runtime = proto3;
|
|
1548
|
+
static typeName = "forms.v1.GetSubmissionResponse";
|
|
1549
|
+
static fields = proto3.util.newFieldList(() => [
|
|
1550
|
+
{ no: 1, name: "submission", kind: "message", T: Submission },
|
|
1551
|
+
]);
|
|
1552
|
+
static fromBinary(bytes, options) {
|
|
1553
|
+
return new GetSubmissionResponse().fromBinary(bytes, options);
|
|
1554
|
+
}
|
|
1555
|
+
static fromJson(jsonValue, options) {
|
|
1556
|
+
return new GetSubmissionResponse().fromJson(jsonValue, options);
|
|
1557
|
+
}
|
|
1558
|
+
static fromJsonString(jsonString, options) {
|
|
1559
|
+
return new GetSubmissionResponse().fromJsonString(jsonString, options);
|
|
1560
|
+
}
|
|
1561
|
+
static equals(a, b) {
|
|
1562
|
+
return proto3.util.equals(GetSubmissionResponse, a, b);
|
|
1563
|
+
}
|
|
1564
|
+
}
|
|
1565
|
+
/**
|
|
1566
|
+
* @generated from message forms.v1.DeleteSubmissionRequest
|
|
1567
|
+
*/
|
|
1568
|
+
export class DeleteSubmissionRequest extends Message {
|
|
1569
|
+
/**
|
|
1570
|
+
* @generated from field: string id = 1;
|
|
1571
|
+
*/
|
|
1572
|
+
id = "";
|
|
1573
|
+
constructor(data) {
|
|
1574
|
+
super();
|
|
1575
|
+
proto3.util.initPartial(data, this);
|
|
1576
|
+
}
|
|
1577
|
+
static runtime = proto3;
|
|
1578
|
+
static typeName = "forms.v1.DeleteSubmissionRequest";
|
|
1579
|
+
static fields = proto3.util.newFieldList(() => [
|
|
1580
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1581
|
+
]);
|
|
1582
|
+
static fromBinary(bytes, options) {
|
|
1583
|
+
return new DeleteSubmissionRequest().fromBinary(bytes, options);
|
|
1584
|
+
}
|
|
1585
|
+
static fromJson(jsonValue, options) {
|
|
1586
|
+
return new DeleteSubmissionRequest().fromJson(jsonValue, options);
|
|
1587
|
+
}
|
|
1588
|
+
static fromJsonString(jsonString, options) {
|
|
1589
|
+
return new DeleteSubmissionRequest().fromJsonString(jsonString, options);
|
|
1590
|
+
}
|
|
1591
|
+
static equals(a, b) {
|
|
1592
|
+
return proto3.util.equals(DeleteSubmissionRequest, a, b);
|
|
1593
|
+
}
|
|
1594
|
+
}
|
|
1595
|
+
/**
|
|
1596
|
+
* @generated from message forms.v1.DeleteSubmissionResponse
|
|
1597
|
+
*/
|
|
1598
|
+
export class DeleteSubmissionResponse extends Message {
|
|
1599
|
+
constructor(data) {
|
|
1600
|
+
super();
|
|
1601
|
+
proto3.util.initPartial(data, this);
|
|
1602
|
+
}
|
|
1603
|
+
static runtime = proto3;
|
|
1604
|
+
static typeName = "forms.v1.DeleteSubmissionResponse";
|
|
1605
|
+
static fields = proto3.util.newFieldList(() => []);
|
|
1606
|
+
static fromBinary(bytes, options) {
|
|
1607
|
+
return new DeleteSubmissionResponse().fromBinary(bytes, options);
|
|
1608
|
+
}
|
|
1609
|
+
static fromJson(jsonValue, options) {
|
|
1610
|
+
return new DeleteSubmissionResponse().fromJson(jsonValue, options);
|
|
1611
|
+
}
|
|
1612
|
+
static fromJsonString(jsonString, options) {
|
|
1613
|
+
return new DeleteSubmissionResponse().fromJsonString(jsonString, options);
|
|
1614
|
+
}
|
|
1615
|
+
static equals(a, b) {
|
|
1616
|
+
return proto3.util.equals(DeleteSubmissionResponse, a, b);
|
|
1617
|
+
}
|
|
1618
|
+
}
|
|
1619
|
+
/**
|
|
1620
|
+
* @generated from message forms.v1.GetUploadUrlRequest
|
|
1621
|
+
*/
|
|
1622
|
+
export class GetUploadUrlRequest extends Message {
|
|
1623
|
+
/**
|
|
1624
|
+
* @generated from field: string form_id = 1;
|
|
1625
|
+
*/
|
|
1626
|
+
formId = "";
|
|
1627
|
+
/**
|
|
1628
|
+
* @generated from field: string field_id = 2;
|
|
1629
|
+
*/
|
|
1630
|
+
fieldId = "";
|
|
1631
|
+
/**
|
|
1632
|
+
* @generated from field: string filename = 3;
|
|
1633
|
+
*/
|
|
1634
|
+
filename = "";
|
|
1635
|
+
/**
|
|
1636
|
+
* @generated from field: string content_type = 4;
|
|
1637
|
+
*/
|
|
1638
|
+
contentType = "";
|
|
1639
|
+
/**
|
|
1640
|
+
* @generated from field: int64 file_size = 5;
|
|
1641
|
+
*/
|
|
1642
|
+
fileSize = protoInt64.zero;
|
|
1643
|
+
constructor(data) {
|
|
1644
|
+
super();
|
|
1645
|
+
proto3.util.initPartial(data, this);
|
|
1646
|
+
}
|
|
1647
|
+
static runtime = proto3;
|
|
1648
|
+
static typeName = "forms.v1.GetUploadUrlRequest";
|
|
1649
|
+
static fields = proto3.util.newFieldList(() => [
|
|
1650
|
+
{ no: 1, name: "form_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1651
|
+
{ no: 2, name: "field_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1652
|
+
{ no: 3, name: "filename", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1653
|
+
{ no: 4, name: "content_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1654
|
+
{ no: 5, name: "file_size", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
1655
|
+
]);
|
|
1656
|
+
static fromBinary(bytes, options) {
|
|
1657
|
+
return new GetUploadUrlRequest().fromBinary(bytes, options);
|
|
1658
|
+
}
|
|
1659
|
+
static fromJson(jsonValue, options) {
|
|
1660
|
+
return new GetUploadUrlRequest().fromJson(jsonValue, options);
|
|
1661
|
+
}
|
|
1662
|
+
static fromJsonString(jsonString, options) {
|
|
1663
|
+
return new GetUploadUrlRequest().fromJsonString(jsonString, options);
|
|
1664
|
+
}
|
|
1665
|
+
static equals(a, b) {
|
|
1666
|
+
return proto3.util.equals(GetUploadUrlRequest, a, b);
|
|
1667
|
+
}
|
|
1668
|
+
}
|
|
1669
|
+
/**
|
|
1670
|
+
* @generated from message forms.v1.GetUploadUrlResponse
|
|
1671
|
+
*/
|
|
1672
|
+
export class GetUploadUrlResponse extends Message {
|
|
1673
|
+
/**
|
|
1674
|
+
* Presigned PUT URL for direct upload
|
|
1675
|
+
*
|
|
1676
|
+
* @generated from field: string upload_url = 1;
|
|
1677
|
+
*/
|
|
1678
|
+
uploadUrl = "";
|
|
1679
|
+
/**
|
|
1680
|
+
* S3 object key to store in submission
|
|
1681
|
+
*
|
|
1682
|
+
* @generated from field: string file_key = 2;
|
|
1683
|
+
*/
|
|
1684
|
+
fileKey = "";
|
|
1685
|
+
constructor(data) {
|
|
1686
|
+
super();
|
|
1687
|
+
proto3.util.initPartial(data, this);
|
|
1688
|
+
}
|
|
1689
|
+
static runtime = proto3;
|
|
1690
|
+
static typeName = "forms.v1.GetUploadUrlResponse";
|
|
1691
|
+
static fields = proto3.util.newFieldList(() => [
|
|
1692
|
+
{ no: 1, name: "upload_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1693
|
+
{ no: 2, name: "file_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1694
|
+
]);
|
|
1695
|
+
static fromBinary(bytes, options) {
|
|
1696
|
+
return new GetUploadUrlResponse().fromBinary(bytes, options);
|
|
1697
|
+
}
|
|
1698
|
+
static fromJson(jsonValue, options) {
|
|
1699
|
+
return new GetUploadUrlResponse().fromJson(jsonValue, options);
|
|
1700
|
+
}
|
|
1701
|
+
static fromJsonString(jsonString, options) {
|
|
1702
|
+
return new GetUploadUrlResponse().fromJsonString(jsonString, options);
|
|
1703
|
+
}
|
|
1704
|
+
static equals(a, b) {
|
|
1705
|
+
return proto3.util.equals(GetUploadUrlResponse, a, b);
|
|
1706
|
+
}
|
|
1707
|
+
}
|
|
1708
|
+
/**
|
|
1709
|
+
* @generated from message forms.v1.GetDownloadUrlRequest
|
|
1710
|
+
*/
|
|
1711
|
+
export class GetDownloadUrlRequest extends Message {
|
|
1712
|
+
/**
|
|
1713
|
+
* S3 object key from submission data
|
|
1714
|
+
*
|
|
1715
|
+
* @generated from field: string file_key = 1;
|
|
1716
|
+
*/
|
|
1717
|
+
fileKey = "";
|
|
1718
|
+
constructor(data) {
|
|
1719
|
+
super();
|
|
1720
|
+
proto3.util.initPartial(data, this);
|
|
1721
|
+
}
|
|
1722
|
+
static runtime = proto3;
|
|
1723
|
+
static typeName = "forms.v1.GetDownloadUrlRequest";
|
|
1724
|
+
static fields = proto3.util.newFieldList(() => [
|
|
1725
|
+
{ no: 1, name: "file_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1726
|
+
]);
|
|
1727
|
+
static fromBinary(bytes, options) {
|
|
1728
|
+
return new GetDownloadUrlRequest().fromBinary(bytes, options);
|
|
1729
|
+
}
|
|
1730
|
+
static fromJson(jsonValue, options) {
|
|
1731
|
+
return new GetDownloadUrlRequest().fromJson(jsonValue, options);
|
|
1732
|
+
}
|
|
1733
|
+
static fromJsonString(jsonString, options) {
|
|
1734
|
+
return new GetDownloadUrlRequest().fromJsonString(jsonString, options);
|
|
1735
|
+
}
|
|
1736
|
+
static equals(a, b) {
|
|
1737
|
+
return proto3.util.equals(GetDownloadUrlRequest, a, b);
|
|
1738
|
+
}
|
|
1739
|
+
}
|
|
1740
|
+
/**
|
|
1741
|
+
* @generated from message forms.v1.GetDownloadUrlResponse
|
|
1742
|
+
*/
|
|
1743
|
+
export class GetDownloadUrlResponse extends Message {
|
|
1744
|
+
/**
|
|
1745
|
+
* Presigned GET URL (valid for 1 hour)
|
|
1746
|
+
*
|
|
1747
|
+
* @generated from field: string download_url = 1;
|
|
1748
|
+
*/
|
|
1749
|
+
downloadUrl = "";
|
|
1750
|
+
/**
|
|
1751
|
+
* Original filename extracted from key
|
|
1752
|
+
*
|
|
1753
|
+
* @generated from field: string filename = 2;
|
|
1754
|
+
*/
|
|
1755
|
+
filename = "";
|
|
1756
|
+
constructor(data) {
|
|
1757
|
+
super();
|
|
1758
|
+
proto3.util.initPartial(data, this);
|
|
1759
|
+
}
|
|
1760
|
+
static runtime = proto3;
|
|
1761
|
+
static typeName = "forms.v1.GetDownloadUrlResponse";
|
|
1762
|
+
static fields = proto3.util.newFieldList(() => [
|
|
1763
|
+
{ no: 1, name: "download_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1764
|
+
{ no: 2, name: "filename", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1765
|
+
]);
|
|
1766
|
+
static fromBinary(bytes, options) {
|
|
1767
|
+
return new GetDownloadUrlResponse().fromBinary(bytes, options);
|
|
1768
|
+
}
|
|
1769
|
+
static fromJson(jsonValue, options) {
|
|
1770
|
+
return new GetDownloadUrlResponse().fromJson(jsonValue, options);
|
|
1771
|
+
}
|
|
1772
|
+
static fromJsonString(jsonString, options) {
|
|
1773
|
+
return new GetDownloadUrlResponse().fromJsonString(jsonString, options);
|
|
1774
|
+
}
|
|
1775
|
+
static equals(a, b) {
|
|
1776
|
+
return proto3.util.equals(GetDownloadUrlResponse, a, b);
|
|
1777
|
+
}
|
|
1778
|
+
}
|
|
1779
|
+
//# sourceMappingURL=forms_pb.js.map
|