@maxim_mazurok/gapi.client.workflows-v1 0.0.20230809 → 0.0.20230906

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.d.ts +57 -1
  2. package/package.json +1 -1
  3. package/tests.ts +7 -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://workflows.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20230809
12
+ // Revision: 20230906
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -41,6 +41,14 @@ declare namespace gapi.client {
41
41
  operations?:
42
42
  Operation[];
43
43
  }
44
+ interface ListWorkflowRevisionsResponse {
45
+ /** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
46
+ nextPageToken?:
47
+ string;
48
+ /** The revisions of the workflow, ordered in reverse chronological order. */
49
+ workflows?:
50
+ Workflow[];
51
+ }
44
52
  interface ListWorkflowsResponse {
45
53
  /** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
46
54
  nextPageToken?:
@@ -570,6 +578,54 @@ declare namespace gapi.client {
570
578
  uploadType?:
571
579
  string;
572
580
  }): Request<ListWorkflowsResponse>;
581
+ /** Lists revisions for a given workflow. */
582
+ listRevisions(request?: {
583
+ /** V1 error format. */
584
+ "$.xgafv"?:
585
+ string;
586
+ /** OAuth access token. */
587
+ access_token?:
588
+ string;
589
+ /** Data format for response. */
590
+ alt?:
591
+ string;
592
+ /** JSONP */
593
+ callback?:
594
+ string;
595
+ /** Selector specifying which fields to include in a partial response. */
596
+ fields?:
597
+ string;
598
+ /** 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. */
599
+ key?:
600
+ string;
601
+ /** Required. Workflow from which the revisions should be listed. Format: projects/{project}/locations/{location}/workflows/{workflow} */
602
+ name:
603
+ string;
604
+ /** OAuth 2.0 token for the current user. */
605
+ oauth_token?:
606
+ string;
607
+ /**
608
+ * The maximum number of revisions to return per page. If a value is not specified, a default value of 20 is used. The maximum permitted value is 100 and values greater than 100
609
+ * coerced down to 100.
610
+ */
611
+ pageSize?:
612
+ number;
613
+ /** The page token, received from a previous ListWorkflowRevisions call. Provide this to retrieve the subsequent page. */
614
+ pageToken?:
615
+ string;
616
+ /** Returns response with indentations and line breaks. */
617
+ prettyPrint?:
618
+ boolean;
619
+ /** 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. */
620
+ quotaUser?:
621
+ string;
622
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
623
+ upload_protocol?:
624
+ string;
625
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
626
+ uploadType?:
627
+ string;
628
+ }): Request<ListWorkflowRevisionsResponse>;
573
629
  /**
574
630
  * Updates an existing workflow. Running this method has no impact on already running executions of the workflow. A new revision of the workflow might be created as a result of a
575
631
  * successful update operation. In that case, the new revision is used in new workflow executions.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.workflows-v1",
3
- "version": "0.0.20230809",
3
+ "version": "0.0.20230906",
4
4
  "description": "TypeScript typings for Workflows API v1",
5
5
  "license": "MIT",
6
6
  "author": {
package/tests.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
4
4
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
5
5
 
6
- // Revision: 20230809
6
+ // Revision: 20230906
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -102,6 +102,12 @@ gapi.load('client', async () => {
102
102
  pageToken: "Test string",
103
103
  parent: "Test string",
104
104
  });
105
+ /** Lists revisions for a given workflow. */
106
+ await gapi.client.workflows.projects.locations.workflows.listRevisions({
107
+ name: "Test string",
108
+ pageSize: 42,
109
+ pageToken: "Test string",
110
+ });
105
111
  /**
106
112
  * Updates an existing workflow. Running this method has no impact on already running executions of the workflow. A new revision of the workflow might be created as a result of a
107
113
  * successful update operation. In that case, the new revision is used in new workflow executions.