@maxischmaxi/maxforms-api-client 0.0.15 → 0.0.17
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 +39 -1
- package/dist/gen/auth/v1/auth_connect.d.ts.map +1 -1
- package/dist/gen/auth/v1/auth_connect.js +39 -1
- package/dist/gen/auth/v1/auth_connect.js.map +1 -1
- package/dist/gen/auth/v1/auth_pb.d.ts +164 -0
- package/dist/gen/auth/v1/auth_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/auth_pb.js +269 -0
- package/dist/gen/auth/v1/auth_pb.js.map +1 -1
- package/dist/gen/forms/v1/forms_connect.d.ts +24 -2
- package/dist/gen/forms/v1/forms_connect.d.ts.map +1 -1
- package/dist/gen/forms/v1/forms_connect.js +24 -2
- package/dist/gen/forms/v1/forms_connect.js.map +1 -1
- package/dist/gen/forms/v1/forms_pb.d.ts +229 -16
- package/dist/gen/forms/v1/forms_pb.d.ts.map +1 -1
- package/dist/gen/forms/v1/forms_pb.js +323 -22
- package/dist/gen/forms/v1/forms_pb.js.map +1 -1
- package/package.json +1 -1
|
@@ -162,6 +162,43 @@ proto3.util.setEnumType(WebhookEvent, "forms.v1.WebhookEvent", [
|
|
|
162
162
|
{ no: 0, name: "WEBHOOK_EVENT_UNSPECIFIED" },
|
|
163
163
|
{ no: 1, name: "WEBHOOK_EVENT_SUBMISSION_CREATED" },
|
|
164
164
|
]);
|
|
165
|
+
/**
|
|
166
|
+
* FieldOption represents a label/value pair for select, radio, checkbox fields
|
|
167
|
+
*
|
|
168
|
+
* @generated from message forms.v1.FieldOption
|
|
169
|
+
*/
|
|
170
|
+
export class FieldOption extends Message {
|
|
171
|
+
/**
|
|
172
|
+
* @generated from field: string label = 1;
|
|
173
|
+
*/
|
|
174
|
+
label = "";
|
|
175
|
+
/**
|
|
176
|
+
* @generated from field: string value = 2;
|
|
177
|
+
*/
|
|
178
|
+
value = "";
|
|
179
|
+
constructor(data) {
|
|
180
|
+
super();
|
|
181
|
+
proto3.util.initPartial(data, this);
|
|
182
|
+
}
|
|
183
|
+
static runtime = proto3;
|
|
184
|
+
static typeName = "forms.v1.FieldOption";
|
|
185
|
+
static fields = proto3.util.newFieldList(() => [
|
|
186
|
+
{ no: 1, name: "label", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
187
|
+
{ no: 2, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
188
|
+
]);
|
|
189
|
+
static fromBinary(bytes, options) {
|
|
190
|
+
return new FieldOption().fromBinary(bytes, options);
|
|
191
|
+
}
|
|
192
|
+
static fromJson(jsonValue, options) {
|
|
193
|
+
return new FieldOption().fromJson(jsonValue, options);
|
|
194
|
+
}
|
|
195
|
+
static fromJsonString(jsonString, options) {
|
|
196
|
+
return new FieldOption().fromJsonString(jsonString, options);
|
|
197
|
+
}
|
|
198
|
+
static equals(a, b) {
|
|
199
|
+
return proto3.util.equals(FieldOption, a, b);
|
|
200
|
+
}
|
|
201
|
+
}
|
|
165
202
|
/**
|
|
166
203
|
* FormField represents a single field in a form
|
|
167
204
|
*
|
|
@@ -197,9 +234,9 @@ export class FormField extends Message {
|
|
|
197
234
|
*/
|
|
198
235
|
defaultValue = "";
|
|
199
236
|
/**
|
|
200
|
-
* For select, radio, checkbox
|
|
237
|
+
* For select, radio, checkbox (label/value pairs)
|
|
201
238
|
*
|
|
202
|
-
* @generated from field: repeated
|
|
239
|
+
* @generated from field: repeated forms.v1.FieldOption options = 8;
|
|
203
240
|
*/
|
|
204
241
|
options = [];
|
|
205
242
|
/**
|
|
@@ -226,7 +263,7 @@ export class FormField extends Message {
|
|
|
226
263
|
{ no: 5, name: "required", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
227
264
|
{ no: 6, name: "placeholder", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
228
265
|
{ no: 7, name: "default_value", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
229
|
-
{ no: 8, name: "options", kind: "
|
|
266
|
+
{ no: 8, name: "options", kind: "message", T: FieldOption, repeated: true },
|
|
230
267
|
{ no: 9, name: "validation", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "scalar", T: 9 /* ScalarType.STRING */ } },
|
|
231
268
|
{ no: 10, name: "order", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
232
269
|
]);
|
|
@@ -371,6 +408,18 @@ export class Form extends Message {
|
|
|
371
408
|
* @generated from field: int32 revision_count = 13;
|
|
372
409
|
*/
|
|
373
410
|
revisionCount = 0;
|
|
411
|
+
/**
|
|
412
|
+
* Custom CSS for embedded form styling
|
|
413
|
+
*
|
|
414
|
+
* @generated from field: string custom_css = 14;
|
|
415
|
+
*/
|
|
416
|
+
customCss = "";
|
|
417
|
+
/**
|
|
418
|
+
* Soft delete timestamp (set when form is moved to trash)
|
|
419
|
+
*
|
|
420
|
+
* @generated from field: google.protobuf.Timestamp deleted_at = 15;
|
|
421
|
+
*/
|
|
422
|
+
deletedAt;
|
|
374
423
|
constructor(data) {
|
|
375
424
|
super();
|
|
376
425
|
proto3.util.initPartial(data, this);
|
|
@@ -391,6 +440,8 @@ export class Form extends Message {
|
|
|
391
440
|
{ no: 11, name: "published_at", kind: "message", T: Timestamp },
|
|
392
441
|
{ no: 12, name: "layout", kind: "message", T: FormBlock, repeated: true },
|
|
393
442
|
{ no: 13, name: "revision_count", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
443
|
+
{ no: 14, name: "custom_css", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
444
|
+
{ no: 15, name: "deleted_at", kind: "message", T: Timestamp },
|
|
394
445
|
]);
|
|
395
446
|
static fromBinary(bytes, options) {
|
|
396
447
|
return new Form().fromBinary(bytes, options);
|
|
@@ -431,6 +482,12 @@ export class FormSettings extends Message {
|
|
|
431
482
|
* @generated from field: string notification_email = 5;
|
|
432
483
|
*/
|
|
433
484
|
notificationEmail = "";
|
|
485
|
+
/**
|
|
486
|
+
* "small", "medium", "large" - spacing between form elements
|
|
487
|
+
*
|
|
488
|
+
* @generated from field: string element_gap = 6;
|
|
489
|
+
*/
|
|
490
|
+
elementGap = "";
|
|
434
491
|
constructor(data) {
|
|
435
492
|
super();
|
|
436
493
|
proto3.util.initPartial(data, this);
|
|
@@ -443,6 +500,7 @@ export class FormSettings extends Message {
|
|
|
443
500
|
{ no: 3, name: "redirect_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
444
501
|
{ no: 4, name: "notify_on_submission", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
445
502
|
{ no: 5, name: "notification_email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
503
|
+
{ no: 6, name: "element_gap", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
446
504
|
]);
|
|
447
505
|
static fromBinary(bytes, options) {
|
|
448
506
|
return new FormSettings().fromBinary(bytes, options);
|
|
@@ -509,6 +567,12 @@ export class FormRevision extends Message {
|
|
|
509
567
|
* @generated from field: string note = 11;
|
|
510
568
|
*/
|
|
511
569
|
note = "";
|
|
570
|
+
/**
|
|
571
|
+
* Custom CSS stored with revision
|
|
572
|
+
*
|
|
573
|
+
* @generated from field: string custom_css = 12;
|
|
574
|
+
*/
|
|
575
|
+
customCss = "";
|
|
512
576
|
constructor(data) {
|
|
513
577
|
super();
|
|
514
578
|
proto3.util.initPartial(data, this);
|
|
@@ -527,6 +591,7 @@ export class FormRevision extends Message {
|
|
|
527
591
|
{ no: 9, name: "created_at", kind: "message", T: Timestamp },
|
|
528
592
|
{ no: 10, name: "created_by", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
529
593
|
{ no: 11, name: "note", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
594
|
+
{ no: 12, name: "custom_css", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
530
595
|
]);
|
|
531
596
|
static fromBinary(bytes, options) {
|
|
532
597
|
return new FormRevision().fromBinary(bytes, options);
|
|
@@ -571,6 +636,30 @@ export class Submission extends Message {
|
|
|
571
636
|
* @generated from field: string user_agent = 6;
|
|
572
637
|
*/
|
|
573
638
|
userAgent = "";
|
|
639
|
+
/**
|
|
640
|
+
* Page URL where form was embedded
|
|
641
|
+
*
|
|
642
|
+
* @generated from field: string referer = 7;
|
|
643
|
+
*/
|
|
644
|
+
referer = "";
|
|
645
|
+
/**
|
|
646
|
+
* Origin of the request
|
|
647
|
+
*
|
|
648
|
+
* @generated from field: string origin = 8;
|
|
649
|
+
*/
|
|
650
|
+
origin = "";
|
|
651
|
+
/**
|
|
652
|
+
* User's language preference
|
|
653
|
+
*
|
|
654
|
+
* @generated from field: string accept_language = 9;
|
|
655
|
+
*/
|
|
656
|
+
acceptLanguage = "";
|
|
657
|
+
/**
|
|
658
|
+
* Country from CF-IPCountry header
|
|
659
|
+
*
|
|
660
|
+
* @generated from field: string country = 10;
|
|
661
|
+
*/
|
|
662
|
+
country = "";
|
|
574
663
|
constructor(data) {
|
|
575
664
|
super();
|
|
576
665
|
proto3.util.initPartial(data, this);
|
|
@@ -584,6 +673,10 @@ export class Submission extends Message {
|
|
|
584
673
|
{ no: 4, name: "submitted_at", kind: "message", T: Timestamp },
|
|
585
674
|
{ no: 5, name: "ip_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
586
675
|
{ no: 6, name: "user_agent", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
676
|
+
{ no: 7, name: "referer", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
677
|
+
{ no: 8, name: "origin", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
678
|
+
{ no: 9, name: "accept_language", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
679
|
+
{ no: 10, name: "country", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
587
680
|
]);
|
|
588
681
|
static fromBinary(bytes, options) {
|
|
589
682
|
return new Submission().fromBinary(bytes, options);
|
|
@@ -743,19 +836,29 @@ export class GetFormResponse extends Message {
|
|
|
743
836
|
*/
|
|
744
837
|
export class ListFormsRequest extends Message {
|
|
745
838
|
/**
|
|
746
|
-
*
|
|
839
|
+
* 1-based page number
|
|
840
|
+
*
|
|
841
|
+
* @generated from field: int32 page = 1;
|
|
747
842
|
*/
|
|
748
|
-
|
|
843
|
+
page = 0;
|
|
749
844
|
/**
|
|
750
|
-
*
|
|
845
|
+
* Items per page (default 20, max 100)
|
|
846
|
+
*
|
|
847
|
+
* @generated from field: int32 page_size = 2;
|
|
751
848
|
*/
|
|
752
|
-
|
|
849
|
+
pageSize = 0;
|
|
753
850
|
/**
|
|
754
|
-
* Optional filter by status
|
|
851
|
+
* Optional: filter by status
|
|
755
852
|
*
|
|
756
853
|
* @generated from field: forms.v1.FormStatus status = 3;
|
|
757
854
|
*/
|
|
758
855
|
status = FormStatus.UNSPECIFIED;
|
|
856
|
+
/**
|
|
857
|
+
* Search query (fuzzy match on name, description)
|
|
858
|
+
*
|
|
859
|
+
* @generated from field: string search = 4;
|
|
860
|
+
*/
|
|
861
|
+
search = "";
|
|
759
862
|
constructor(data) {
|
|
760
863
|
super();
|
|
761
864
|
proto3.util.initPartial(data, this);
|
|
@@ -763,9 +866,10 @@ export class ListFormsRequest extends Message {
|
|
|
763
866
|
static runtime = proto3;
|
|
764
867
|
static typeName = "forms.v1.ListFormsRequest";
|
|
765
868
|
static fields = proto3.util.newFieldList(() => [
|
|
766
|
-
{ no: 1, name: "
|
|
767
|
-
{ no: 2, name: "
|
|
869
|
+
{ no: 1, name: "page", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
870
|
+
{ no: 2, name: "page_size", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
768
871
|
{ no: 3, name: "status", kind: "enum", T: proto3.getEnumType(FormStatus) },
|
|
872
|
+
{ no: 4, name: "search", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
769
873
|
]);
|
|
770
874
|
static fromBinary(bytes, options) {
|
|
771
875
|
return new ListFormsRequest().fromBinary(bytes, options);
|
|
@@ -789,9 +893,29 @@ export class ListFormsResponse extends Message {
|
|
|
789
893
|
*/
|
|
790
894
|
forms = [];
|
|
791
895
|
/**
|
|
792
|
-
*
|
|
896
|
+
* Total matching forms
|
|
897
|
+
*
|
|
898
|
+
* @generated from field: int32 total_count = 2;
|
|
793
899
|
*/
|
|
794
|
-
|
|
900
|
+
totalCount = 0;
|
|
901
|
+
/**
|
|
902
|
+
* Current page number
|
|
903
|
+
*
|
|
904
|
+
* @generated from field: int32 page = 3;
|
|
905
|
+
*/
|
|
906
|
+
page = 0;
|
|
907
|
+
/**
|
|
908
|
+
* Items per page
|
|
909
|
+
*
|
|
910
|
+
* @generated from field: int32 page_size = 4;
|
|
911
|
+
*/
|
|
912
|
+
pageSize = 0;
|
|
913
|
+
/**
|
|
914
|
+
* Total pages
|
|
915
|
+
*
|
|
916
|
+
* @generated from field: int32 total_pages = 5;
|
|
917
|
+
*/
|
|
918
|
+
totalPages = 0;
|
|
795
919
|
constructor(data) {
|
|
796
920
|
super();
|
|
797
921
|
proto3.util.initPartial(data, this);
|
|
@@ -800,7 +924,10 @@ export class ListFormsResponse extends Message {
|
|
|
800
924
|
static typeName = "forms.v1.ListFormsResponse";
|
|
801
925
|
static fields = proto3.util.newFieldList(() => [
|
|
802
926
|
{ no: 1, name: "forms", kind: "message", T: Form, repeated: true },
|
|
803
|
-
{ no: 2, name: "
|
|
927
|
+
{ no: 2, name: "total_count", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
928
|
+
{ no: 3, name: "page", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
929
|
+
{ no: 4, name: "page_size", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
930
|
+
{ no: 5, name: "total_pages", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
804
931
|
]);
|
|
805
932
|
static fromBinary(bytes, options) {
|
|
806
933
|
return new ListFormsResponse().fromBinary(bytes, options);
|
|
@@ -843,6 +970,10 @@ export class UpdateFormRequest extends Message {
|
|
|
843
970
|
* @generated from field: repeated forms.v1.FormBlock layout = 6;
|
|
844
971
|
*/
|
|
845
972
|
layout = [];
|
|
973
|
+
/**
|
|
974
|
+
* @generated from field: string custom_css = 7;
|
|
975
|
+
*/
|
|
976
|
+
customCss = "";
|
|
846
977
|
constructor(data) {
|
|
847
978
|
super();
|
|
848
979
|
proto3.util.initPartial(data, this);
|
|
@@ -856,6 +987,7 @@ export class UpdateFormRequest extends Message {
|
|
|
856
987
|
{ no: 4, name: "fields", kind: "message", T: FormField, repeated: true },
|
|
857
988
|
{ no: 5, name: "settings", kind: "message", T: FormSettings },
|
|
858
989
|
{ no: 6, name: "layout", kind: "message", T: FormBlock, repeated: true },
|
|
990
|
+
{ no: 7, name: "custom_css", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
859
991
|
]);
|
|
860
992
|
static fromBinary(bytes, options) {
|
|
861
993
|
return new UpdateFormRequest().fromBinary(bytes, options);
|
|
@@ -954,6 +1086,151 @@ export class DeleteFormResponse extends Message {
|
|
|
954
1086
|
return proto3.util.equals(DeleteFormResponse, a, b);
|
|
955
1087
|
}
|
|
956
1088
|
}
|
|
1089
|
+
/**
|
|
1090
|
+
* @generated from message forms.v1.RestoreFormRequest
|
|
1091
|
+
*/
|
|
1092
|
+
export class RestoreFormRequest extends Message {
|
|
1093
|
+
/**
|
|
1094
|
+
* @generated from field: string id = 1;
|
|
1095
|
+
*/
|
|
1096
|
+
id = "";
|
|
1097
|
+
constructor(data) {
|
|
1098
|
+
super();
|
|
1099
|
+
proto3.util.initPartial(data, this);
|
|
1100
|
+
}
|
|
1101
|
+
static runtime = proto3;
|
|
1102
|
+
static typeName = "forms.v1.RestoreFormRequest";
|
|
1103
|
+
static fields = proto3.util.newFieldList(() => [
|
|
1104
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1105
|
+
]);
|
|
1106
|
+
static fromBinary(bytes, options) {
|
|
1107
|
+
return new RestoreFormRequest().fromBinary(bytes, options);
|
|
1108
|
+
}
|
|
1109
|
+
static fromJson(jsonValue, options) {
|
|
1110
|
+
return new RestoreFormRequest().fromJson(jsonValue, options);
|
|
1111
|
+
}
|
|
1112
|
+
static fromJsonString(jsonString, options) {
|
|
1113
|
+
return new RestoreFormRequest().fromJsonString(jsonString, options);
|
|
1114
|
+
}
|
|
1115
|
+
static equals(a, b) {
|
|
1116
|
+
return proto3.util.equals(RestoreFormRequest, a, b);
|
|
1117
|
+
}
|
|
1118
|
+
}
|
|
1119
|
+
/**
|
|
1120
|
+
* @generated from message forms.v1.RestoreFormResponse
|
|
1121
|
+
*/
|
|
1122
|
+
export class RestoreFormResponse extends Message {
|
|
1123
|
+
/**
|
|
1124
|
+
* @generated from field: forms.v1.Form form = 1;
|
|
1125
|
+
*/
|
|
1126
|
+
form;
|
|
1127
|
+
constructor(data) {
|
|
1128
|
+
super();
|
|
1129
|
+
proto3.util.initPartial(data, this);
|
|
1130
|
+
}
|
|
1131
|
+
static runtime = proto3;
|
|
1132
|
+
static typeName = "forms.v1.RestoreFormResponse";
|
|
1133
|
+
static fields = proto3.util.newFieldList(() => [
|
|
1134
|
+
{ no: 1, name: "form", kind: "message", T: Form },
|
|
1135
|
+
]);
|
|
1136
|
+
static fromBinary(bytes, options) {
|
|
1137
|
+
return new RestoreFormResponse().fromBinary(bytes, options);
|
|
1138
|
+
}
|
|
1139
|
+
static fromJson(jsonValue, options) {
|
|
1140
|
+
return new RestoreFormResponse().fromJson(jsonValue, options);
|
|
1141
|
+
}
|
|
1142
|
+
static fromJsonString(jsonString, options) {
|
|
1143
|
+
return new RestoreFormResponse().fromJsonString(jsonString, options);
|
|
1144
|
+
}
|
|
1145
|
+
static equals(a, b) {
|
|
1146
|
+
return proto3.util.equals(RestoreFormResponse, a, b);
|
|
1147
|
+
}
|
|
1148
|
+
}
|
|
1149
|
+
/**
|
|
1150
|
+
* @generated from message forms.v1.ListDeletedFormsRequest
|
|
1151
|
+
*/
|
|
1152
|
+
export class ListDeletedFormsRequest extends Message {
|
|
1153
|
+
/**
|
|
1154
|
+
* @generated from field: int32 page = 1;
|
|
1155
|
+
*/
|
|
1156
|
+
page = 0;
|
|
1157
|
+
/**
|
|
1158
|
+
* @generated from field: int32 page_size = 2;
|
|
1159
|
+
*/
|
|
1160
|
+
pageSize = 0;
|
|
1161
|
+
constructor(data) {
|
|
1162
|
+
super();
|
|
1163
|
+
proto3.util.initPartial(data, this);
|
|
1164
|
+
}
|
|
1165
|
+
static runtime = proto3;
|
|
1166
|
+
static typeName = "forms.v1.ListDeletedFormsRequest";
|
|
1167
|
+
static fields = proto3.util.newFieldList(() => [
|
|
1168
|
+
{ no: 1, name: "page", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
1169
|
+
{ no: 2, name: "page_size", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
1170
|
+
]);
|
|
1171
|
+
static fromBinary(bytes, options) {
|
|
1172
|
+
return new ListDeletedFormsRequest().fromBinary(bytes, options);
|
|
1173
|
+
}
|
|
1174
|
+
static fromJson(jsonValue, options) {
|
|
1175
|
+
return new ListDeletedFormsRequest().fromJson(jsonValue, options);
|
|
1176
|
+
}
|
|
1177
|
+
static fromJsonString(jsonString, options) {
|
|
1178
|
+
return new ListDeletedFormsRequest().fromJsonString(jsonString, options);
|
|
1179
|
+
}
|
|
1180
|
+
static equals(a, b) {
|
|
1181
|
+
return proto3.util.equals(ListDeletedFormsRequest, a, b);
|
|
1182
|
+
}
|
|
1183
|
+
}
|
|
1184
|
+
/**
|
|
1185
|
+
* @generated from message forms.v1.ListDeletedFormsResponse
|
|
1186
|
+
*/
|
|
1187
|
+
export class ListDeletedFormsResponse extends Message {
|
|
1188
|
+
/**
|
|
1189
|
+
* @generated from field: repeated forms.v1.Form forms = 1;
|
|
1190
|
+
*/
|
|
1191
|
+
forms = [];
|
|
1192
|
+
/**
|
|
1193
|
+
* @generated from field: int32 total_count = 2;
|
|
1194
|
+
*/
|
|
1195
|
+
totalCount = 0;
|
|
1196
|
+
/**
|
|
1197
|
+
* @generated from field: int32 page = 3;
|
|
1198
|
+
*/
|
|
1199
|
+
page = 0;
|
|
1200
|
+
/**
|
|
1201
|
+
* @generated from field: int32 page_size = 4;
|
|
1202
|
+
*/
|
|
1203
|
+
pageSize = 0;
|
|
1204
|
+
/**
|
|
1205
|
+
* @generated from field: int32 total_pages = 5;
|
|
1206
|
+
*/
|
|
1207
|
+
totalPages = 0;
|
|
1208
|
+
constructor(data) {
|
|
1209
|
+
super();
|
|
1210
|
+
proto3.util.initPartial(data, this);
|
|
1211
|
+
}
|
|
1212
|
+
static runtime = proto3;
|
|
1213
|
+
static typeName = "forms.v1.ListDeletedFormsResponse";
|
|
1214
|
+
static fields = proto3.util.newFieldList(() => [
|
|
1215
|
+
{ no: 1, name: "forms", kind: "message", T: Form, repeated: true },
|
|
1216
|
+
{ no: 2, name: "total_count", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
1217
|
+
{ no: 3, name: "page", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
1218
|
+
{ no: 4, name: "page_size", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
1219
|
+
{ no: 5, name: "total_pages", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
1220
|
+
]);
|
|
1221
|
+
static fromBinary(bytes, options) {
|
|
1222
|
+
return new ListDeletedFormsResponse().fromBinary(bytes, options);
|
|
1223
|
+
}
|
|
1224
|
+
static fromJson(jsonValue, options) {
|
|
1225
|
+
return new ListDeletedFormsResponse().fromJson(jsonValue, options);
|
|
1226
|
+
}
|
|
1227
|
+
static fromJsonString(jsonString, options) {
|
|
1228
|
+
return new ListDeletedFormsResponse().fromJsonString(jsonString, options);
|
|
1229
|
+
}
|
|
1230
|
+
static equals(a, b) {
|
|
1231
|
+
return proto3.util.equals(ListDeletedFormsResponse, a, b);
|
|
1232
|
+
}
|
|
1233
|
+
}
|
|
957
1234
|
/**
|
|
958
1235
|
* @generated from message forms.v1.PublishFormRequest
|
|
959
1236
|
*/
|
|
@@ -1416,6 +1693,10 @@ export class GetFormPublicResponse extends Message {
|
|
|
1416
1693
|
* @generated from field: repeated forms.v1.FormBlock layout = 6;
|
|
1417
1694
|
*/
|
|
1418
1695
|
layout = [];
|
|
1696
|
+
/**
|
|
1697
|
+
* @generated from field: string custom_css = 7;
|
|
1698
|
+
*/
|
|
1699
|
+
customCss = "";
|
|
1419
1700
|
constructor(data) {
|
|
1420
1701
|
super();
|
|
1421
1702
|
proto3.util.initPartial(data, this);
|
|
@@ -1429,6 +1710,7 @@ export class GetFormPublicResponse extends Message {
|
|
|
1429
1710
|
{ no: 4, name: "fields", kind: "message", T: FormField, repeated: true },
|
|
1430
1711
|
{ no: 5, name: "settings", kind: "message", T: FormSettings },
|
|
1431
1712
|
{ no: 6, name: "layout", kind: "message", T: FormBlock, repeated: true },
|
|
1713
|
+
{ no: 7, name: "custom_css", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1432
1714
|
]);
|
|
1433
1715
|
static fromBinary(bytes, options) {
|
|
1434
1716
|
return new GetFormPublicResponse().fromBinary(bytes, options);
|
|
@@ -1452,13 +1734,17 @@ export class ListSubmissionsRequest extends Message {
|
|
|
1452
1734
|
*/
|
|
1453
1735
|
formId = "";
|
|
1454
1736
|
/**
|
|
1455
|
-
*
|
|
1737
|
+
* 1-based page number
|
|
1738
|
+
*
|
|
1739
|
+
* @generated from field: int32 page = 2;
|
|
1456
1740
|
*/
|
|
1457
|
-
|
|
1741
|
+
page = 0;
|
|
1458
1742
|
/**
|
|
1459
|
-
*
|
|
1743
|
+
* items per page (default 20, max 100)
|
|
1744
|
+
*
|
|
1745
|
+
* @generated from field: int32 page_size = 3;
|
|
1460
1746
|
*/
|
|
1461
|
-
|
|
1747
|
+
pageSize = 0;
|
|
1462
1748
|
constructor(data) {
|
|
1463
1749
|
super();
|
|
1464
1750
|
proto3.util.initPartial(data, this);
|
|
@@ -1467,8 +1753,8 @@ export class ListSubmissionsRequest extends Message {
|
|
|
1467
1753
|
static typeName = "forms.v1.ListSubmissionsRequest";
|
|
1468
1754
|
static fields = proto3.util.newFieldList(() => [
|
|
1469
1755
|
{ no: 1, name: "form_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1470
|
-
{ no: 2, name: "
|
|
1471
|
-
{ no: 3, name: "
|
|
1756
|
+
{ no: 2, name: "page", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
1757
|
+
{ no: 3, name: "page_size", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
1472
1758
|
]);
|
|
1473
1759
|
static fromBinary(bytes, options) {
|
|
1474
1760
|
return new ListSubmissionsRequest().fromBinary(bytes, options);
|
|
@@ -1496,9 +1782,17 @@ export class ListSubmissionsResponse extends Message {
|
|
|
1496
1782
|
*/
|
|
1497
1783
|
totalCount = 0;
|
|
1498
1784
|
/**
|
|
1499
|
-
* @generated from field:
|
|
1785
|
+
* @generated from field: int32 page = 3;
|
|
1500
1786
|
*/
|
|
1501
|
-
|
|
1787
|
+
page = 0;
|
|
1788
|
+
/**
|
|
1789
|
+
* @generated from field: int32 page_size = 4;
|
|
1790
|
+
*/
|
|
1791
|
+
pageSize = 0;
|
|
1792
|
+
/**
|
|
1793
|
+
* @generated from field: int32 total_pages = 5;
|
|
1794
|
+
*/
|
|
1795
|
+
totalPages = 0;
|
|
1502
1796
|
constructor(data) {
|
|
1503
1797
|
super();
|
|
1504
1798
|
proto3.util.initPartial(data, this);
|
|
@@ -1508,7 +1802,9 @@ export class ListSubmissionsResponse extends Message {
|
|
|
1508
1802
|
static fields = proto3.util.newFieldList(() => [
|
|
1509
1803
|
{ no: 1, name: "submissions", kind: "message", T: Submission, repeated: true },
|
|
1510
1804
|
{ no: 2, name: "total_count", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
1511
|
-
{ no: 3, name: "
|
|
1805
|
+
{ no: 3, name: "page", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
1806
|
+
{ no: 4, name: "page_size", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
1807
|
+
{ no: 5, name: "total_pages", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
1512
1808
|
]);
|
|
1513
1809
|
static fromBinary(bytes, options) {
|
|
1514
1810
|
return new ListSubmissionsResponse().fromBinary(bytes, options);
|
|
@@ -2651,6 +2947,10 @@ export class GetFormByPreviewTokenResponse extends Message {
|
|
|
2651
2947
|
* @generated from field: bool is_preview = 7;
|
|
2652
2948
|
*/
|
|
2653
2949
|
isPreview = false;
|
|
2950
|
+
/**
|
|
2951
|
+
* @generated from field: string custom_css = 8;
|
|
2952
|
+
*/
|
|
2953
|
+
customCss = "";
|
|
2654
2954
|
constructor(data) {
|
|
2655
2955
|
super();
|
|
2656
2956
|
proto3.util.initPartial(data, this);
|
|
@@ -2665,6 +2965,7 @@ export class GetFormByPreviewTokenResponse extends Message {
|
|
|
2665
2965
|
{ no: 5, name: "settings", kind: "message", T: FormSettings },
|
|
2666
2966
|
{ no: 6, name: "layout", kind: "message", T: FormBlock, repeated: true },
|
|
2667
2967
|
{ no: 7, name: "is_preview", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
2968
|
+
{ no: 8, name: "custom_css", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2668
2969
|
]);
|
|
2669
2970
|
static fromBinary(bytes, options) {
|
|
2670
2971
|
return new GetFormByPreviewTokenResponse().fromBinary(bytes, options);
|