@maxim_mazurok/gapi.client.workflows-v1beta 0.1.20260303 → 0.2.20260427
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 +29 -29
- package/package.json +1 -1
- package/readme.md +17 -0
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=v1beta
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20260427
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -91,7 +91,7 @@ declare namespace gapi.client {
|
|
|
91
91
|
/** The status code, which should be an enum value of google.rpc.Code. */
|
|
92
92
|
code?: number;
|
|
93
93
|
/** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
|
|
94
|
-
details?:
|
|
94
|
+
details?: {[P in string]: any}[];
|
|
95
95
|
/** A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. */
|
|
96
96
|
message?: string;
|
|
97
97
|
}
|
|
@@ -113,7 +113,7 @@ declare namespace gapi.client {
|
|
|
113
113
|
/** Workflow code to be executed. The size limit is 128KB. */
|
|
114
114
|
sourceContents?: string;
|
|
115
115
|
/** Output only. State of the workflow deployment. */
|
|
116
|
-
state?:
|
|
116
|
+
state?: 'STATE_UNSPECIFIED' | 'ACTIVE';
|
|
117
117
|
/** Output only. The last update timestamp of the workflow. */
|
|
118
118
|
updateTime?: string;
|
|
119
119
|
}
|
|
@@ -121,11 +121,11 @@ declare namespace gapi.client {
|
|
|
121
121
|
/** Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. */
|
|
122
122
|
delete(request?: {
|
|
123
123
|
/** V1 error format. */
|
|
124
|
-
'$.xgafv'?:
|
|
124
|
+
'$.xgafv'?: '1' | '2';
|
|
125
125
|
/** OAuth access token. */
|
|
126
126
|
access_token?: string;
|
|
127
127
|
/** Data format for response. */
|
|
128
|
-
alt?:
|
|
128
|
+
alt?: 'json' | 'media' | 'proto';
|
|
129
129
|
/** JSONP */
|
|
130
130
|
callback?: string;
|
|
131
131
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -148,11 +148,11 @@ declare namespace gapi.client {
|
|
|
148
148
|
/** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
|
|
149
149
|
get(request?: {
|
|
150
150
|
/** V1 error format. */
|
|
151
|
-
'$.xgafv'?:
|
|
151
|
+
'$.xgafv'?: '1' | '2';
|
|
152
152
|
/** OAuth access token. */
|
|
153
153
|
access_token?: string;
|
|
154
154
|
/** Data format for response. */
|
|
155
|
-
alt?:
|
|
155
|
+
alt?: 'json' | 'media' | 'proto';
|
|
156
156
|
/** JSONP */
|
|
157
157
|
callback?: string;
|
|
158
158
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -175,11 +175,11 @@ declare namespace gapi.client {
|
|
|
175
175
|
/** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
|
|
176
176
|
list(request?: {
|
|
177
177
|
/** V1 error format. */
|
|
178
|
-
'$.xgafv'?:
|
|
178
|
+
'$.xgafv'?: '1' | '2';
|
|
179
179
|
/** OAuth access token. */
|
|
180
180
|
access_token?: string;
|
|
181
181
|
/** Data format for response. */
|
|
182
|
-
alt?:
|
|
182
|
+
alt?: 'json' | 'media' | 'proto';
|
|
183
183
|
/** JSONP */
|
|
184
184
|
callback?: string;
|
|
185
185
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -212,11 +212,11 @@ declare namespace gapi.client {
|
|
|
212
212
|
/** Creates a new workflow. If a workflow with the specified name already exists in the specified project and location, the long running operation will return ALREADY_EXISTS error. */
|
|
213
213
|
create(request: {
|
|
214
214
|
/** V1 error format. */
|
|
215
|
-
'$.xgafv'?:
|
|
215
|
+
'$.xgafv'?: '1' | '2';
|
|
216
216
|
/** OAuth access token. */
|
|
217
217
|
access_token?: string;
|
|
218
218
|
/** Data format for response. */
|
|
219
|
-
alt?:
|
|
219
|
+
alt?: 'json' | 'media' | 'proto';
|
|
220
220
|
/** JSONP */
|
|
221
221
|
callback?: string;
|
|
222
222
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -243,11 +243,11 @@ declare namespace gapi.client {
|
|
|
243
243
|
create(
|
|
244
244
|
request: {
|
|
245
245
|
/** V1 error format. */
|
|
246
|
-
'$.xgafv'?:
|
|
246
|
+
'$.xgafv'?: '1' | '2';
|
|
247
247
|
/** OAuth access token. */
|
|
248
248
|
access_token?: string;
|
|
249
249
|
/** Data format for response. */
|
|
250
|
-
alt?:
|
|
250
|
+
alt?: 'json' | 'media' | 'proto';
|
|
251
251
|
/** JSONP */
|
|
252
252
|
callback?: string;
|
|
253
253
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -274,11 +274,11 @@ declare namespace gapi.client {
|
|
|
274
274
|
/** Deletes a workflow with the specified name. This method also cancels and deletes all running executions of the workflow. */
|
|
275
275
|
delete(request?: {
|
|
276
276
|
/** V1 error format. */
|
|
277
|
-
'$.xgafv'?:
|
|
277
|
+
'$.xgafv'?: '1' | '2';
|
|
278
278
|
/** OAuth access token. */
|
|
279
279
|
access_token?: string;
|
|
280
280
|
/** Data format for response. */
|
|
281
|
-
alt?:
|
|
281
|
+
alt?: 'json' | 'media' | 'proto';
|
|
282
282
|
/** JSONP */
|
|
283
283
|
callback?: string;
|
|
284
284
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -301,11 +301,11 @@ declare namespace gapi.client {
|
|
|
301
301
|
/** Gets details of a single Workflow. */
|
|
302
302
|
get(request?: {
|
|
303
303
|
/** V1 error format. */
|
|
304
|
-
'$.xgafv'?:
|
|
304
|
+
'$.xgafv'?: '1' | '2';
|
|
305
305
|
/** OAuth access token. */
|
|
306
306
|
access_token?: string;
|
|
307
307
|
/** Data format for response. */
|
|
308
|
-
alt?:
|
|
308
|
+
alt?: 'json' | 'media' | 'proto';
|
|
309
309
|
/** JSONP */
|
|
310
310
|
callback?: string;
|
|
311
311
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -328,11 +328,11 @@ declare namespace gapi.client {
|
|
|
328
328
|
/** Lists Workflows in a given project and location. The default order is not specified. */
|
|
329
329
|
list(request?: {
|
|
330
330
|
/** V1 error format. */
|
|
331
|
-
'$.xgafv'?:
|
|
331
|
+
'$.xgafv'?: '1' | '2';
|
|
332
332
|
/** OAuth access token. */
|
|
333
333
|
access_token?: string;
|
|
334
334
|
/** Data format for response. */
|
|
335
|
-
alt?:
|
|
335
|
+
alt?: 'json' | 'media' | 'proto';
|
|
336
336
|
/** JSONP */
|
|
337
337
|
callback?: string;
|
|
338
338
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -363,11 +363,11 @@ declare namespace gapi.client {
|
|
|
363
363
|
/** Updates an existing workflow. Running this method has no impact on already running executions of the workflow. A new revision of the workflow may be created as a result of a successful update operation. In that case, such revision will be used in new workflow executions. */
|
|
364
364
|
patch(request: {
|
|
365
365
|
/** V1 error format. */
|
|
366
|
-
'$.xgafv'?:
|
|
366
|
+
'$.xgafv'?: '1' | '2';
|
|
367
367
|
/** OAuth access token. */
|
|
368
368
|
access_token?: string;
|
|
369
369
|
/** Data format for response. */
|
|
370
|
-
alt?:
|
|
370
|
+
alt?: 'json' | 'media' | 'proto';
|
|
371
371
|
/** JSONP */
|
|
372
372
|
callback?: string;
|
|
373
373
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -394,11 +394,11 @@ declare namespace gapi.client {
|
|
|
394
394
|
patch(
|
|
395
395
|
request: {
|
|
396
396
|
/** V1 error format. */
|
|
397
|
-
'$.xgafv'?:
|
|
397
|
+
'$.xgafv'?: '1' | '2';
|
|
398
398
|
/** OAuth access token. */
|
|
399
399
|
access_token?: string;
|
|
400
400
|
/** Data format for response. */
|
|
401
|
-
alt?:
|
|
401
|
+
alt?: 'json' | 'media' | 'proto';
|
|
402
402
|
/** JSONP */
|
|
403
403
|
callback?: string;
|
|
404
404
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -427,11 +427,11 @@ declare namespace gapi.client {
|
|
|
427
427
|
/** Gets information about a location. */
|
|
428
428
|
get(request?: {
|
|
429
429
|
/** V1 error format. */
|
|
430
|
-
'$.xgafv'?:
|
|
430
|
+
'$.xgafv'?: '1' | '2';
|
|
431
431
|
/** OAuth access token. */
|
|
432
432
|
access_token?: string;
|
|
433
433
|
/** Data format for response. */
|
|
434
|
-
alt?:
|
|
434
|
+
alt?: 'json' | 'media' | 'proto';
|
|
435
435
|
/** JSONP */
|
|
436
436
|
callback?: string;
|
|
437
437
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -451,17 +451,17 @@ declare namespace gapi.client {
|
|
|
451
451
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
452
452
|
uploadType?: string;
|
|
453
453
|
}): Request<Location>;
|
|
454
|
-
/** Lists information about the supported locations for this service. This method
|
|
454
|
+
/** Lists information about the supported locations for this service. This method lists locations based on the resource scope provided in the ListLocationsRequest.name field: * **Global locations**: If `name` is empty, the method lists the public locations available to all projects. * **Project-specific locations**: If `name` follows the format `projects/{project}`, the method lists locations visible to that specific project. This includes public, private, or other project-specific locations enabled for the project. For gRPC and client library implementations, the resource name is passed as the `name` field. For direct service calls, the resource name is incorporated into the request path based on the specific service implementation and version. */
|
|
455
455
|
list(request?: {
|
|
456
456
|
/** V1 error format. */
|
|
457
|
-
'$.xgafv'?:
|
|
457
|
+
'$.xgafv'?: '1' | '2';
|
|
458
458
|
/** OAuth access token. */
|
|
459
459
|
access_token?: string;
|
|
460
460
|
/** Data format for response. */
|
|
461
|
-
alt?:
|
|
461
|
+
alt?: 'json' | 'media' | 'proto';
|
|
462
462
|
/** JSONP */
|
|
463
463
|
callback?: string;
|
|
464
|
-
/** Optional. Do not use this field
|
|
464
|
+
/** Optional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage. */
|
|
465
465
|
extraLocationTypes?: string | string[];
|
|
466
466
|
/** Selector specifying which fields to include in a partial response. */
|
|
467
467
|
fields?: string;
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -11,6 +11,23 @@ Install typings for Workflows API:
|
|
|
11
11
|
npm install @types/gapi.client.workflows-v1beta --save-dev
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
+
## TypeScript 6.0+
|
|
15
|
+
|
|
16
|
+
TypeScript 6.0 changed `types` to default to `[]`. You must now explicitly list type packages in `tsconfig.json`:
|
|
17
|
+
|
|
18
|
+
```json
|
|
19
|
+
{
|
|
20
|
+
"compilerOptions": {
|
|
21
|
+
"types": [
|
|
22
|
+
"gapi",
|
|
23
|
+
"gapi.auth2",
|
|
24
|
+
"gapi.client",
|
|
25
|
+
"gapi.client.workflows-v1beta"
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
```
|
|
30
|
+
|
|
14
31
|
## Usage
|
|
15
32
|
|
|
16
33
|
You need to initialize Google API client in your code:
|