@maxim_mazurok/gapi.client.forms-v1 0.2.20261111 → 0.2.20261115
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/index.d.ts +236 -238
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://forms.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20261115
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -131,7 +131,7 @@ declare namespace gapi.client {
|
|
|
131
131
|
/** Maximum number of bytes allowed for any single file uploaded to this question. */
|
|
132
132
|
maxFileSize?: string;
|
|
133
133
|
/** File types accepted by this question. */
|
|
134
|
-
types?:
|
|
134
|
+
types?: (
|
|
135
135
|
| 'FILE_TYPE_UNSPECIFIED'
|
|
136
136
|
| 'ANY'
|
|
137
137
|
| 'DOCUMENT'
|
|
@@ -141,7 +141,8 @@ declare namespace gapi.client {
|
|
|
141
141
|
| 'PDF'
|
|
142
142
|
| 'IMAGE'
|
|
143
143
|
| 'VIDEO'
|
|
144
|
-
| 'AUDIO'
|
|
144
|
+
| 'AUDIO'
|
|
145
|
+
)[];
|
|
145
146
|
}
|
|
146
147
|
interface Form {
|
|
147
148
|
/** Output only. The form ID. */
|
|
@@ -492,9 +493,10 @@ declare namespace gapi.client {
|
|
|
492
493
|
/** The target revision ID of the form that the write request is applied to. If changes have occurred after this revision, the changes in this update request are transformed against those changes. This results in a new revision of the form that incorporates both the changes in the request and the intervening changes, with the server resolving conflicting changes. The target revision ID may only be used to write to recent versions of a form. If the target revision is too far behind the latest revision, the request is not processed and returns a 400 (Bad Request Error). The request may be retried after reading the latest version of the form. In most cases a target revision ID remains valid for several minutes after it is read, but for frequently-edited forms this window may be shorter. */
|
|
493
494
|
targetRevisionId?: string;
|
|
494
495
|
}
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
496
|
+
|
|
497
|
+
const forms: {
|
|
498
|
+
/** Change the form with a batch of updates. */
|
|
499
|
+
batchUpdate(request: {
|
|
498
500
|
/** V1 error format. */
|
|
499
501
|
'$.xgafv'?: '1' | '2';
|
|
500
502
|
/** OAuth access token. */
|
|
@@ -515,49 +517,43 @@ declare namespace gapi.client {
|
|
|
515
517
|
prettyPrint?: boolean;
|
|
516
518
|
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
517
519
|
quotaUser?: string;
|
|
518
|
-
/** Required. The response ID within the form. */
|
|
519
|
-
responseId: string;
|
|
520
520
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
521
521
|
upload_protocol?: string;
|
|
522
522
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
523
523
|
uploadType?: string;
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
}): client.Request<ListFormResponsesResponse>;
|
|
558
|
-
}
|
|
559
|
-
interface WatchesResource {
|
|
560
|
-
/** Create a new watch. If a watch ID is provided, it must be unused. For each invoking project, the per form limit is one watch per Watch.EventType. A watch expires seven days after it is created (see Watch.expire_time). */
|
|
524
|
+
/** Request body */
|
|
525
|
+
resource: BatchUpdateFormRequest;
|
|
526
|
+
}): client.Request<BatchUpdateFormResponse>;
|
|
527
|
+
batchUpdate(
|
|
528
|
+
request: {
|
|
529
|
+
/** V1 error format. */
|
|
530
|
+
'$.xgafv'?: '1' | '2';
|
|
531
|
+
/** OAuth access token. */
|
|
532
|
+
access_token?: string;
|
|
533
|
+
/** Data format for response. */
|
|
534
|
+
alt?: 'json' | 'media' | 'proto';
|
|
535
|
+
/** JSONP */
|
|
536
|
+
callback?: string;
|
|
537
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
538
|
+
fields?: string;
|
|
539
|
+
/** Required. The form ID. */
|
|
540
|
+
formId: string;
|
|
541
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
542
|
+
key?: string;
|
|
543
|
+
/** OAuth 2.0 token for the current user. */
|
|
544
|
+
oauth_token?: string;
|
|
545
|
+
/** Returns response with indentations and line breaks. */
|
|
546
|
+
prettyPrint?: boolean;
|
|
547
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
548
|
+
quotaUser?: string;
|
|
549
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
550
|
+
upload_protocol?: string;
|
|
551
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
552
|
+
uploadType?: string;
|
|
553
|
+
},
|
|
554
|
+
body: BatchUpdateFormRequest,
|
|
555
|
+
): client.Request<BatchUpdateFormResponse>;
|
|
556
|
+
/** Create a new form using the title given in the provided form message in the request. *Important:* Only the form.info.title and form.info.document_title fields are copied to the new form. All other fields including the form description, items and settings are disallowed. To create a new form and add items, you must first call forms.create to create an empty form with a title and (optional) document title, and then call forms.update to add the items. */
|
|
561
557
|
create(request: {
|
|
562
558
|
/** V1 error format. */
|
|
563
559
|
'$.xgafv'?: '1' | '2';
|
|
@@ -569,8 +565,6 @@ declare namespace gapi.client {
|
|
|
569
565
|
callback?: string;
|
|
570
566
|
/** Selector specifying which fields to include in a partial response. */
|
|
571
567
|
fields?: string;
|
|
572
|
-
/** Required. ID of the Form to watch. */
|
|
573
|
-
formId: string;
|
|
574
568
|
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
575
569
|
key?: string;
|
|
576
570
|
/** OAuth 2.0 token for the current user. */
|
|
@@ -579,13 +573,15 @@ declare namespace gapi.client {
|
|
|
579
573
|
prettyPrint?: boolean;
|
|
580
574
|
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
581
575
|
quotaUser?: string;
|
|
576
|
+
/** Optional. Whether the form is unpublished. If set to `true`, the form doesn't accept responses. If set to `false` or unset, the form is published and accepts responses. */
|
|
577
|
+
unpublished?: boolean;
|
|
582
578
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
583
579
|
upload_protocol?: string;
|
|
584
580
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
585
581
|
uploadType?: string;
|
|
586
582
|
/** Request body */
|
|
587
|
-
resource:
|
|
588
|
-
}): client.Request<
|
|
583
|
+
resource: Form;
|
|
584
|
+
}): client.Request<Form>;
|
|
589
585
|
create(
|
|
590
586
|
request: {
|
|
591
587
|
/** V1 error format. */
|
|
@@ -598,8 +594,6 @@ declare namespace gapi.client {
|
|
|
598
594
|
callback?: string;
|
|
599
595
|
/** Selector specifying which fields to include in a partial response. */
|
|
600
596
|
fields?: string;
|
|
601
|
-
/** Required. ID of the Form to watch. */
|
|
602
|
-
formId: string;
|
|
603
597
|
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
604
598
|
key?: string;
|
|
605
599
|
/** OAuth 2.0 token for the current user. */
|
|
@@ -608,44 +602,17 @@ declare namespace gapi.client {
|
|
|
608
602
|
prettyPrint?: boolean;
|
|
609
603
|
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
610
604
|
quotaUser?: string;
|
|
605
|
+
/** Optional. Whether the form is unpublished. If set to `true`, the form doesn't accept responses. If set to `false` or unset, the form is published and accepts responses. */
|
|
606
|
+
unpublished?: boolean;
|
|
611
607
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
612
608
|
upload_protocol?: string;
|
|
613
609
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
614
610
|
uploadType?: string;
|
|
615
611
|
},
|
|
616
|
-
body:
|
|
617
|
-
): client.Request<
|
|
618
|
-
/**
|
|
619
|
-
|
|
620
|
-
/** V1 error format. */
|
|
621
|
-
'$.xgafv'?: '1' | '2';
|
|
622
|
-
/** OAuth access token. */
|
|
623
|
-
access_token?: string;
|
|
624
|
-
/** Data format for response. */
|
|
625
|
-
alt?: 'json' | 'media' | 'proto';
|
|
626
|
-
/** JSONP */
|
|
627
|
-
callback?: string;
|
|
628
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
629
|
-
fields?: string;
|
|
630
|
-
/** Required. The ID of the Form. */
|
|
631
|
-
formId: string;
|
|
632
|
-
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
633
|
-
key?: string;
|
|
634
|
-
/** OAuth 2.0 token for the current user. */
|
|
635
|
-
oauth_token?: string;
|
|
636
|
-
/** Returns response with indentations and line breaks. */
|
|
637
|
-
prettyPrint?: boolean;
|
|
638
|
-
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
639
|
-
quotaUser?: string;
|
|
640
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
641
|
-
upload_protocol?: string;
|
|
642
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
643
|
-
uploadType?: string;
|
|
644
|
-
/** Required. The ID of the Watch to delete. */
|
|
645
|
-
watchId: string;
|
|
646
|
-
}): client.Request<{}>;
|
|
647
|
-
/** Return a list of the watches owned by the invoking project. The maximum number of watches is two: For each invoker, the limit is one for each event type per form. */
|
|
648
|
-
list(request?: {
|
|
612
|
+
body: Form,
|
|
613
|
+
): client.Request<Form>;
|
|
614
|
+
/** Get a form. */
|
|
615
|
+
get(request?: {
|
|
649
616
|
/** V1 error format. */
|
|
650
617
|
'$.xgafv'?: '1' | '2';
|
|
651
618
|
/** OAuth access token. */
|
|
@@ -656,7 +623,7 @@ declare namespace gapi.client {
|
|
|
656
623
|
callback?: string;
|
|
657
624
|
/** Selector specifying which fields to include in a partial response. */
|
|
658
625
|
fields?: string;
|
|
659
|
-
/** Required.
|
|
626
|
+
/** Required. The form ID. */
|
|
660
627
|
formId: string;
|
|
661
628
|
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
662
629
|
key?: string;
|
|
@@ -670,9 +637,9 @@ declare namespace gapi.client {
|
|
|
670
637
|
upload_protocol?: string;
|
|
671
638
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
672
639
|
uploadType?: string;
|
|
673
|
-
}): client.Request<
|
|
674
|
-
/**
|
|
675
|
-
|
|
640
|
+
}): client.Request<Form>;
|
|
641
|
+
/** Updates the publish settings of a form. Legacy forms aren't supported because they don't have the `publish_settings` field. */
|
|
642
|
+
setPublishSettings(request: {
|
|
676
643
|
/** V1 error format. */
|
|
677
644
|
'$.xgafv'?: '1' | '2';
|
|
678
645
|
/** OAuth access token. */
|
|
@@ -683,7 +650,7 @@ declare namespace gapi.client {
|
|
|
683
650
|
callback?: string;
|
|
684
651
|
/** Selector specifying which fields to include in a partial response. */
|
|
685
652
|
fields?: string;
|
|
686
|
-
/** Required. The ID of the Form. */
|
|
653
|
+
/** Required. The ID of the form. You can get the id from Form.form_id field. */
|
|
687
654
|
formId: string;
|
|
688
655
|
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
689
656
|
key?: string;
|
|
@@ -697,12 +664,10 @@ declare namespace gapi.client {
|
|
|
697
664
|
upload_protocol?: string;
|
|
698
665
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
699
666
|
uploadType?: string;
|
|
700
|
-
/** Required. The ID of the Watch to renew. */
|
|
701
|
-
watchId: string;
|
|
702
667
|
/** Request body */
|
|
703
|
-
resource:
|
|
704
|
-
}): client.Request<
|
|
705
|
-
|
|
668
|
+
resource: SetPublishSettingsRequest;
|
|
669
|
+
}): client.Request<SetPublishSettingsResponse>;
|
|
670
|
+
setPublishSettings(
|
|
706
671
|
request: {
|
|
707
672
|
/** V1 error format. */
|
|
708
673
|
'$.xgafv'?: '1' | '2';
|
|
@@ -714,7 +679,7 @@ declare namespace gapi.client {
|
|
|
714
679
|
callback?: string;
|
|
715
680
|
/** Selector specifying which fields to include in a partial response. */
|
|
716
681
|
fields?: string;
|
|
717
|
-
/** Required. The ID of the Form. */
|
|
682
|
+
/** Required. The ID of the form. You can get the id from Form.form_id field. */
|
|
718
683
|
formId: string;
|
|
719
684
|
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
720
685
|
key?: string;
|
|
@@ -728,44 +693,12 @@ declare namespace gapi.client {
|
|
|
728
693
|
upload_protocol?: string;
|
|
729
694
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
730
695
|
uploadType?: string;
|
|
731
|
-
/** Required. The ID of the Watch to renew. */
|
|
732
|
-
watchId: string;
|
|
733
696
|
},
|
|
734
|
-
body:
|
|
735
|
-
): client.Request<
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
batchUpdate(request: {
|
|
740
|
-
/** V1 error format. */
|
|
741
|
-
'$.xgafv'?: '1' | '2';
|
|
742
|
-
/** OAuth access token. */
|
|
743
|
-
access_token?: string;
|
|
744
|
-
/** Data format for response. */
|
|
745
|
-
alt?: 'json' | 'media' | 'proto';
|
|
746
|
-
/** JSONP */
|
|
747
|
-
callback?: string;
|
|
748
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
749
|
-
fields?: string;
|
|
750
|
-
/** Required. The form ID. */
|
|
751
|
-
formId: string;
|
|
752
|
-
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
753
|
-
key?: string;
|
|
754
|
-
/** OAuth 2.0 token for the current user. */
|
|
755
|
-
oauth_token?: string;
|
|
756
|
-
/** Returns response with indentations and line breaks. */
|
|
757
|
-
prettyPrint?: boolean;
|
|
758
|
-
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
759
|
-
quotaUser?: string;
|
|
760
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
761
|
-
upload_protocol?: string;
|
|
762
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
763
|
-
uploadType?: string;
|
|
764
|
-
/** Request body */
|
|
765
|
-
resource: BatchUpdateFormRequest;
|
|
766
|
-
}): client.Request<BatchUpdateFormResponse>;
|
|
767
|
-
batchUpdate(
|
|
768
|
-
request: {
|
|
697
|
+
body: SetPublishSettingsRequest,
|
|
698
|
+
): client.Request<SetPublishSettingsResponse>;
|
|
699
|
+
responses: {
|
|
700
|
+
/** Get one response from the form. */
|
|
701
|
+
get(request?: {
|
|
769
702
|
/** V1 error format. */
|
|
770
703
|
'$.xgafv'?: '1' | '2';
|
|
771
704
|
/** OAuth access token. */
|
|
@@ -786,44 +719,15 @@ declare namespace gapi.client {
|
|
|
786
719
|
prettyPrint?: boolean;
|
|
787
720
|
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
788
721
|
quotaUser?: string;
|
|
722
|
+
/** Required. The response ID within the form. */
|
|
723
|
+
responseId: string;
|
|
789
724
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
790
725
|
upload_protocol?: string;
|
|
791
726
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
792
727
|
uploadType?: string;
|
|
793
|
-
}
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
/** Create a new form using the title given in the provided form message in the request. *Important:* Only the form.info.title and form.info.document_title fields are copied to the new form. All other fields including the form description, items and settings are disallowed. To create a new form and add items, you must first call forms.create to create an empty form with a title and (optional) document title, and then call forms.update to add the items. */
|
|
797
|
-
create(request: {
|
|
798
|
-
/** V1 error format. */
|
|
799
|
-
'$.xgafv'?: '1' | '2';
|
|
800
|
-
/** OAuth access token. */
|
|
801
|
-
access_token?: string;
|
|
802
|
-
/** Data format for response. */
|
|
803
|
-
alt?: 'json' | 'media' | 'proto';
|
|
804
|
-
/** JSONP */
|
|
805
|
-
callback?: string;
|
|
806
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
807
|
-
fields?: string;
|
|
808
|
-
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
809
|
-
key?: string;
|
|
810
|
-
/** OAuth 2.0 token for the current user. */
|
|
811
|
-
oauth_token?: string;
|
|
812
|
-
/** Returns response with indentations and line breaks. */
|
|
813
|
-
prettyPrint?: boolean;
|
|
814
|
-
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
815
|
-
quotaUser?: string;
|
|
816
|
-
/** Optional. Whether the form is unpublished. If set to `true`, the form doesn't accept responses. If set to `false` or unset, the form is published and accepts responses. */
|
|
817
|
-
unpublished?: boolean;
|
|
818
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
819
|
-
upload_protocol?: string;
|
|
820
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
821
|
-
uploadType?: string;
|
|
822
|
-
/** Request body */
|
|
823
|
-
resource: Form;
|
|
824
|
-
}): client.Request<Form>;
|
|
825
|
-
create(
|
|
826
|
-
request: {
|
|
728
|
+
}): client.Request<FormResponse>;
|
|
729
|
+
/** List a form's responses. */
|
|
730
|
+
list(request?: {
|
|
827
731
|
/** V1 error format. */
|
|
828
732
|
'$.xgafv'?: '1' | '2';
|
|
829
733
|
/** OAuth access token. */
|
|
@@ -834,81 +738,31 @@ declare namespace gapi.client {
|
|
|
834
738
|
callback?: string;
|
|
835
739
|
/** Selector specifying which fields to include in a partial response. */
|
|
836
740
|
fields?: string;
|
|
741
|
+
/** Which form responses to return. Currently, the only supported filters are: * timestamp > *N* which means to get all form responses submitted after (but not at) timestamp *N*. * timestamp >= *N* which means to get all form responses submitted at and after timestamp *N*. For both supported filters, timestamp must be formatted in RFC3339 UTC "Zulu" format. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z". */
|
|
742
|
+
filter?: string;
|
|
743
|
+
/** Required. ID of the Form whose responses to list. */
|
|
744
|
+
formId: string;
|
|
837
745
|
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
838
746
|
key?: string;
|
|
839
747
|
/** OAuth 2.0 token for the current user. */
|
|
840
748
|
oauth_token?: string;
|
|
749
|
+
/** The maximum number of responses to return. The service may return fewer than this value. If unspecified or zero, at most 5000 responses are returned. */
|
|
750
|
+
pageSize?: number;
|
|
751
|
+
/** A page token returned by a previous list response. If this field is set, the form and the values of the filter must be the same as for the original request. */
|
|
752
|
+
pageToken?: string;
|
|
841
753
|
/** Returns response with indentations and line breaks. */
|
|
842
754
|
prettyPrint?: boolean;
|
|
843
755
|
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
844
756
|
quotaUser?: string;
|
|
845
|
-
/** Optional. Whether the form is unpublished. If set to `true`, the form doesn't accept responses. If set to `false` or unset, the form is published and accepts responses. */
|
|
846
|
-
unpublished?: boolean;
|
|
847
757
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
848
758
|
upload_protocol?: string;
|
|
849
759
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
850
760
|
uploadType?: string;
|
|
851
|
-
}
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
/** V1 error format. */
|
|
857
|
-
'$.xgafv'?: '1' | '2';
|
|
858
|
-
/** OAuth access token. */
|
|
859
|
-
access_token?: string;
|
|
860
|
-
/** Data format for response. */
|
|
861
|
-
alt?: 'json' | 'media' | 'proto';
|
|
862
|
-
/** JSONP */
|
|
863
|
-
callback?: string;
|
|
864
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
865
|
-
fields?: string;
|
|
866
|
-
/** Required. The form ID. */
|
|
867
|
-
formId: string;
|
|
868
|
-
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
869
|
-
key?: string;
|
|
870
|
-
/** OAuth 2.0 token for the current user. */
|
|
871
|
-
oauth_token?: string;
|
|
872
|
-
/** Returns response with indentations and line breaks. */
|
|
873
|
-
prettyPrint?: boolean;
|
|
874
|
-
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
875
|
-
quotaUser?: string;
|
|
876
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
877
|
-
upload_protocol?: string;
|
|
878
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
879
|
-
uploadType?: string;
|
|
880
|
-
}): client.Request<Form>;
|
|
881
|
-
/** Updates the publish settings of a form. Legacy forms aren't supported because they don't have the `publish_settings` field. */
|
|
882
|
-
setPublishSettings(request: {
|
|
883
|
-
/** V1 error format. */
|
|
884
|
-
'$.xgafv'?: '1' | '2';
|
|
885
|
-
/** OAuth access token. */
|
|
886
|
-
access_token?: string;
|
|
887
|
-
/** Data format for response. */
|
|
888
|
-
alt?: 'json' | 'media' | 'proto';
|
|
889
|
-
/** JSONP */
|
|
890
|
-
callback?: string;
|
|
891
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
892
|
-
fields?: string;
|
|
893
|
-
/** Required. The ID of the form. You can get the id from Form.form_id field. */
|
|
894
|
-
formId: string;
|
|
895
|
-
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
896
|
-
key?: string;
|
|
897
|
-
/** OAuth 2.0 token for the current user. */
|
|
898
|
-
oauth_token?: string;
|
|
899
|
-
/** Returns response with indentations and line breaks. */
|
|
900
|
-
prettyPrint?: boolean;
|
|
901
|
-
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
902
|
-
quotaUser?: string;
|
|
903
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
904
|
-
upload_protocol?: string;
|
|
905
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
906
|
-
uploadType?: string;
|
|
907
|
-
/** Request body */
|
|
908
|
-
resource: SetPublishSettingsRequest;
|
|
909
|
-
}): client.Request<SetPublishSettingsResponse>;
|
|
910
|
-
setPublishSettings(
|
|
911
|
-
request: {
|
|
761
|
+
}): client.Request<ListFormResponsesResponse>;
|
|
762
|
+
};
|
|
763
|
+
watches: {
|
|
764
|
+
/** Create a new watch. If a watch ID is provided, it must be unused. For each invoking project, the per form limit is one watch per Watch.EventType. A watch expires seven days after it is created (see Watch.expire_time). */
|
|
765
|
+
create(request: {
|
|
912
766
|
/** V1 error format. */
|
|
913
767
|
'$.xgafv'?: '1' | '2';
|
|
914
768
|
/** OAuth access token. */
|
|
@@ -919,7 +773,7 @@ declare namespace gapi.client {
|
|
|
919
773
|
callback?: string;
|
|
920
774
|
/** Selector specifying which fields to include in a partial response. */
|
|
921
775
|
fields?: string;
|
|
922
|
-
/** Required.
|
|
776
|
+
/** Required. ID of the Form to watch. */
|
|
923
777
|
formId: string;
|
|
924
778
|
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
925
779
|
key?: string;
|
|
@@ -933,13 +787,157 @@ declare namespace gapi.client {
|
|
|
933
787
|
upload_protocol?: string;
|
|
934
788
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
935
789
|
uploadType?: string;
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
790
|
+
/** Request body */
|
|
791
|
+
resource: CreateWatchRequest;
|
|
792
|
+
}): client.Request<Watch>;
|
|
793
|
+
create(
|
|
794
|
+
request: {
|
|
795
|
+
/** V1 error format. */
|
|
796
|
+
'$.xgafv'?: '1' | '2';
|
|
797
|
+
/** OAuth access token. */
|
|
798
|
+
access_token?: string;
|
|
799
|
+
/** Data format for response. */
|
|
800
|
+
alt?: 'json' | 'media' | 'proto';
|
|
801
|
+
/** JSONP */
|
|
802
|
+
callback?: string;
|
|
803
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
804
|
+
fields?: string;
|
|
805
|
+
/** Required. ID of the Form to watch. */
|
|
806
|
+
formId: string;
|
|
807
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
808
|
+
key?: string;
|
|
809
|
+
/** OAuth 2.0 token for the current user. */
|
|
810
|
+
oauth_token?: string;
|
|
811
|
+
/** Returns response with indentations and line breaks. */
|
|
812
|
+
prettyPrint?: boolean;
|
|
813
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
814
|
+
quotaUser?: string;
|
|
815
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
816
|
+
upload_protocol?: string;
|
|
817
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
818
|
+
uploadType?: string;
|
|
819
|
+
},
|
|
820
|
+
body: CreateWatchRequest,
|
|
821
|
+
): client.Request<Watch>;
|
|
822
|
+
/** Delete a watch. */
|
|
823
|
+
delete(request?: {
|
|
824
|
+
/** V1 error format. */
|
|
825
|
+
'$.xgafv'?: '1' | '2';
|
|
826
|
+
/** OAuth access token. */
|
|
827
|
+
access_token?: string;
|
|
828
|
+
/** Data format for response. */
|
|
829
|
+
alt?: 'json' | 'media' | 'proto';
|
|
830
|
+
/** JSONP */
|
|
831
|
+
callback?: string;
|
|
832
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
833
|
+
fields?: string;
|
|
834
|
+
/** Required. The ID of the Form. */
|
|
835
|
+
formId: string;
|
|
836
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
837
|
+
key?: string;
|
|
838
|
+
/** OAuth 2.0 token for the current user. */
|
|
839
|
+
oauth_token?: string;
|
|
840
|
+
/** Returns response with indentations and line breaks. */
|
|
841
|
+
prettyPrint?: boolean;
|
|
842
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
843
|
+
quotaUser?: string;
|
|
844
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
845
|
+
upload_protocol?: string;
|
|
846
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
847
|
+
uploadType?: string;
|
|
848
|
+
/** Required. The ID of the Watch to delete. */
|
|
849
|
+
watchId: string;
|
|
850
|
+
}): client.Request<{}>;
|
|
851
|
+
/** Return a list of the watches owned by the invoking project. The maximum number of watches is two: For each invoker, the limit is one for each event type per form. */
|
|
852
|
+
list(request?: {
|
|
853
|
+
/** V1 error format. */
|
|
854
|
+
'$.xgafv'?: '1' | '2';
|
|
855
|
+
/** OAuth access token. */
|
|
856
|
+
access_token?: string;
|
|
857
|
+
/** Data format for response. */
|
|
858
|
+
alt?: 'json' | 'media' | 'proto';
|
|
859
|
+
/** JSONP */
|
|
860
|
+
callback?: string;
|
|
861
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
862
|
+
fields?: string;
|
|
863
|
+
/** Required. ID of the Form whose watches to list. */
|
|
864
|
+
formId: string;
|
|
865
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
866
|
+
key?: string;
|
|
867
|
+
/** OAuth 2.0 token for the current user. */
|
|
868
|
+
oauth_token?: string;
|
|
869
|
+
/** Returns response with indentations and line breaks. */
|
|
870
|
+
prettyPrint?: boolean;
|
|
871
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
872
|
+
quotaUser?: string;
|
|
873
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
874
|
+
upload_protocol?: string;
|
|
875
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
876
|
+
uploadType?: string;
|
|
877
|
+
}): client.Request<ListWatchesResponse>;
|
|
878
|
+
/** Renew an existing watch for seven days. The state of the watch after renewal is `ACTIVE`, and the `expire_time` is seven days from the renewal. Renewing a watch in an error state (e.g. `SUSPENDED`) succeeds if the error is no longer present, but fail otherwise. After a watch has expired, RenewWatch returns `NOT_FOUND`. */
|
|
879
|
+
renew(request: {
|
|
880
|
+
/** V1 error format. */
|
|
881
|
+
'$.xgafv'?: '1' | '2';
|
|
882
|
+
/** OAuth access token. */
|
|
883
|
+
access_token?: string;
|
|
884
|
+
/** Data format for response. */
|
|
885
|
+
alt?: 'json' | 'media' | 'proto';
|
|
886
|
+
/** JSONP */
|
|
887
|
+
callback?: string;
|
|
888
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
889
|
+
fields?: string;
|
|
890
|
+
/** Required. The ID of the Form. */
|
|
891
|
+
formId: string;
|
|
892
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
893
|
+
key?: string;
|
|
894
|
+
/** OAuth 2.0 token for the current user. */
|
|
895
|
+
oauth_token?: string;
|
|
896
|
+
/** Returns response with indentations and line breaks. */
|
|
897
|
+
prettyPrint?: boolean;
|
|
898
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
899
|
+
quotaUser?: string;
|
|
900
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
901
|
+
upload_protocol?: string;
|
|
902
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
903
|
+
uploadType?: string;
|
|
904
|
+
/** Required. The ID of the Watch to renew. */
|
|
905
|
+
watchId: string;
|
|
906
|
+
/** Request body */
|
|
907
|
+
resource: RenewWatchRequest;
|
|
908
|
+
}): client.Request<Watch>;
|
|
909
|
+
renew(
|
|
910
|
+
request: {
|
|
911
|
+
/** V1 error format. */
|
|
912
|
+
'$.xgafv'?: '1' | '2';
|
|
913
|
+
/** OAuth access token. */
|
|
914
|
+
access_token?: string;
|
|
915
|
+
/** Data format for response. */
|
|
916
|
+
alt?: 'json' | 'media' | 'proto';
|
|
917
|
+
/** JSONP */
|
|
918
|
+
callback?: string;
|
|
919
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
920
|
+
fields?: string;
|
|
921
|
+
/** Required. The ID of the Form. */
|
|
922
|
+
formId: string;
|
|
923
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
924
|
+
key?: string;
|
|
925
|
+
/** OAuth 2.0 token for the current user. */
|
|
926
|
+
oauth_token?: string;
|
|
927
|
+
/** Returns response with indentations and line breaks. */
|
|
928
|
+
prettyPrint?: boolean;
|
|
929
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
930
|
+
quotaUser?: string;
|
|
931
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
932
|
+
upload_protocol?: string;
|
|
933
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
934
|
+
uploadType?: string;
|
|
935
|
+
/** Required. The ID of the Watch to renew. */
|
|
936
|
+
watchId: string;
|
|
937
|
+
},
|
|
938
|
+
body: RenewWatchRequest,
|
|
939
|
+
): client.Request<Watch>;
|
|
940
|
+
};
|
|
941
|
+
};
|
|
944
942
|
}
|
|
945
943
|
}
|