@maxim_mazurok/gapi.client.script-v1 0.0.20250113 → 0.0.20250130

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 +8 -9
  2. package/package.json +1 -1
  3. package/readme.md +3 -3
package/index.d.ts CHANGED
@@ -9,14 +9,14 @@
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://script.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20250113
12
+ // Revision: 20250130
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
16
16
  declare namespace gapi.client {
17
17
  /** Load Apps Script API v1 */
18
18
  function load(
19
- urlOrObject: 'https://script.googleapis.com/$discovery/rest?version=v1'
19
+ urlOrObject: 'https://script.googleapis.com/$discovery/rest?version=v1',
20
20
  ): Promise<void>;
21
21
  /** @deprecated Please load APIs with discovery documents. */
22
22
  function load(name: 'script', version: 'v1'): Promise<void>;
@@ -456,7 +456,7 @@ declare namespace gapi.client {
456
456
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
457
457
  uploadType?: string;
458
458
  },
459
- body: DeploymentConfig
459
+ body: DeploymentConfig,
460
460
  ): Request<Deployment>;
461
461
  /** Deletes a deployment of an Apps Script project. */
462
462
  delete(request?: {
@@ -607,7 +607,7 @@ declare namespace gapi.client {
607
607
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
608
608
  uploadType?: string;
609
609
  },
610
- body: UpdateDeploymentRequest
610
+ body: UpdateDeploymentRequest,
611
611
  ): Request<Deployment>;
612
612
  }
613
613
  interface VersionsResource {
@@ -667,7 +667,7 @@ declare namespace gapi.client {
667
667
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
668
668
  uploadType?: string;
669
669
  },
670
- body: Version
670
+ body: Version,
671
671
  ): Request<Version>;
672
672
  /** Gets a version of a script project. */
673
673
  get(request?: {
@@ -783,7 +783,7 @@ declare namespace gapi.client {
783
783
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
784
784
  uploadType?: string;
785
785
  },
786
- body: CreateProjectRequest
786
+ body: CreateProjectRequest,
787
787
  ): Request<Project>;
788
788
  /** Gets a script project's metadata. */
789
789
  get(request?: {
@@ -928,13 +928,12 @@ declare namespace gapi.client {
928
928
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
929
929
  uploadType?: string;
930
930
  },
931
- body: Content
931
+ body: Content,
932
932
  ): Request<Content>;
933
933
  deployments: DeploymentsResource;
934
934
  versions: VersionsResource;
935
935
  }
936
936
  interface ScriptsResource {
937
- /** Runs a function in an Apps Script project. The script project must be deployed for use with the Apps Script API and the calling application must share the same Cloud Platform project. This method requires authorization with an OAuth 2.0 token that includes at least one of the scopes listed in the [Authorization](#authorization-scopes) section; script projects that do not require authorization cannot be executed through this API. To find the correct scopes to include in the authentication token, open the script project **Overview** page and scroll down to "Project OAuth Scopes." The error `403, PERMISSION_DENIED: The caller does not have permission` indicates that the Cloud Platform project used to authorize the request is not the same as the one used by the script. */
938
937
  run(request: {
939
938
  /** V1 error format. */
940
939
  '$.xgafv'?: string;
@@ -990,7 +989,7 @@ declare namespace gapi.client {
990
989
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
991
990
  uploadType?: string;
992
991
  },
993
- body: ExecutionRequest
992
+ body: ExecutionRequest,
994
993
  ): Request<Operation>;
995
994
  }
996
995
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.script-v1",
3
- "version": "0.0.20250113",
3
+ "version": "0.0.20250130",
4
4
  "description": "TypeScript typings for Apps Script API v1",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -30,7 +30,7 @@ gapi.client.load(
30
30
  () => {
31
31
  // now we can use:
32
32
  // gapi.client.script
33
- }
33
+ },
34
34
  );
35
35
  ```
36
36
 
@@ -113,7 +113,7 @@ gapi.auth.authorize(
113
113
  } else {
114
114
  /* handle authorization error */
115
115
  }
116
- }
116
+ },
117
117
  );
118
118
  ```
119
119
 
@@ -156,7 +156,7 @@ Updates the content of the specified script project. This content is stored as t
156
156
  await gapi.client.script.projects.updateContent({scriptId: 'scriptId'});
157
157
 
158
158
  /*
159
- Runs a function in an Apps Script project. The script project must be deployed for use with the Apps Script API and the calling application must share the same Cloud Platform project. This method requires authorization with an OAuth 2.0 token that includes at least one of the scopes listed in the [Authorization](#authorization-scopes) section; script projects that do not require authorization cannot be executed through this API. To find the correct scopes to include in the authentication token, open the script project **Overview** page and scroll down to "Project OAuth Scopes." The error `403, PERMISSION_DENIED: The caller does not have permission` indicates that the Cloud Platform project used to authorize the request is not the same as the one used by the script.
159
+
160
160
  */
161
161
  await gapi.client.script.scripts.run({scriptId: 'scriptId'});
162
162
  ```