@maxim_mazurok/gapi.client.docs-v1 0.3.20260311 → 0.3.20260529

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 +24 -4
  2. package/package.json +1 -1
  3. package/readme.md +12 -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://docs.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20260311
12
+ // Revision: 20260529
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -221,7 +221,7 @@ declare namespace gapi.client {
221
221
  | 'DATE_FORMAT_ISO8601';
222
222
  /** Output only. Indicates how the DateElement is displayed in the document. */
223
223
  displayText?: string;
224
- /** The language code of the DateElement. For example, `en`. If unset, the default locale is `en`. Limited to the following locales: `af`, `am`, `ar`, `az`, `be`, `bg`, `bn`, `ca`, `cs`, `da`, `de`, `el`, `en`, `en-CA`, `en-GB`, `es`, `es-419`, `et`, `eu`, `fa`, `fi`, `fil`, `fr`, `fr-CA`, `gl`, `gu`, `hi`, `hr`, `hu`, `hy`, `id`, `is`, `it`, `iw`, `ja`, `ka`, `kk`, `km`, `kn`, `ko`, `lo`, `lt`, `lv`, `ml`, `mn`, `mr`, `ms`, `ne`, `nl`, `no`, `pa`, `pl`, `pt-BR`, `pt-PT`, `ro`, `ru`, `si`, `sk`, `sl`, `sr`, `sv`, `sw`, `ta`, `te`, `th`, `tr`, `uk`, `ur`, `vi`, `zh-CN`, `zh-HK`, `zh-TW`, `zu`, `cy`, `my`. */
224
+ /** The language code of the DateElement. For example, `en`. If unset, the default locale is `en`. Limited to the following locales: `af`, `am`, `ar`, `as`, `az`, `be`, `bg`, `bn`, `ca`, `cs`, `da`, `de`, `el`, `en`, `en-CA`, `en-GB`, `es`, `es-419`, `et`, `eu`, `fa`, `fi`, `fil`, `fr`, `fr-CA`, `gl`, `gu`, `hi`, `hr`, `hu`, `hy`, `id`, `is`, `it`, `iw`, `ja`, `ka`, `kk`, `km`, `kn`, `ko`, `lo`, `lt`, `lv`, `mk`, `ml`, `mn`, `mr`, `ms`, `ne`, `nl`, `no`, `or`, `pa`, `pl`, `pt-BR`, `pt-PT`, `ro`, `ru`, `si`, `sk`, `sl`, `sq`, `sr`, `sv`, `sw`, `ta`, `te`, `th`, `tr`, `uk`, `ur`, `uz`, `vi`, `zh-CN`, `zh-HK`, `zh-TW`, `zu`, `cy`, `my`. */
225
225
  locale?: string;
226
226
  /** Determines how the time part of the DateElement will be displayed in the document. If unset, the default value is TIME_FORMAT_DISABLED, indicating no time should be shown. */
227
227
  timeFormat?:
@@ -229,9 +229,9 @@ declare namespace gapi.client {
229
229
  | 'TIME_FORMAT_DISABLED'
230
230
  | 'TIME_FORMAT_HOUR_MINUTE'
231
231
  | 'TIME_FORMAT_HOUR_MINUTE_TIMEZONE';
232
- /** The point in time to represent, in seconds and nanoseconds since Unix epoch: January 1, 1970 at midnight UTC. Timestamp is expected to be in UTC. If time_zone_id is set, the timestamp is adjusted according to the time zone. For example, a timestamp of `18000` with a date format of `DATE_FORMAT_ISO8601` and time format of `TIME_FORMAT_HOUR_MINUTE` would be displayed as `1970-01-01 5:00 AM`. A timestamp of `18000` with date format of `DATE_FORMAT_8SO8601`, time format of `TIME_FORMAT_HOUR_MINUTE`, and time zone set to `America/New_York` will instead be `1970-01-01 12:00 AM`. */
232
+ /** The point in time to represent, in seconds and nanoseconds since Unix epoch: January 1, 1970 at midnight UTC. Timestamp is expected to be in UTC. If time_zone_id is set, the timestamp is adjusted according to the time zone. For example, a timestamp of `18000` with a date format of `DATE_FORMAT_ISO8601` and time format of `TIME_FORMAT_HOUR_MINUTE` would be displayed as `1970-01-01 5:00 AM`. A timestamp of `18000` with date format of `DATE_FORMAT_ISO8601`, time format of `TIME_FORMAT_HOUR_MINUTE`, and time zone set to `America/New_York` will instead be `1970-01-01 12:00 AM`. */
233
233
  timestamp?: string;
234
- /** The time zone of the DateElement, as defined by the Unicode Common Locale Data Repository (CLDR) project. For example, `America/New York`. If unset, the default time zone is `etc/UTC`. */
234
+ /** The time zone of the DateElement, as defined by the Unicode Common Locale Data Repository (CLDR) project. For example, `America/New_York`. If unset, the default time zone is `etc/UTC`. */
235
235
  timeZoneId?: string;
236
236
  }
237
237
  interface DateElementPropertiesSuggestionState {
@@ -686,6 +686,14 @@ declare namespace gapi.client {
686
686
  /** The properties of the person mention to insert. */
687
687
  personProperties?: PersonProperties;
688
688
  }
689
+ interface InsertRichLinkRequest {
690
+ /** Inserts the rich link at the end of a header, footer, footnote or the document body. */
691
+ endOfSegmentLocation?: EndOfSegmentLocation;
692
+ /** Inserts the rich link at a specific index in the document. The rich link must be inserted inside the bounds of an existing Paragraph. For instance, it cannot be inserted at a table's start index (i.e. between the table and its preceding paragraph). The rich link cannot be inserted inside an equation. */
693
+ location?: Location;
694
+ /** The properties of the rich link to insert. */
695
+ richLinkProperties?: RichLinkProperties;
696
+ }
689
697
  interface InsertSectionBreakRequest {
690
698
  /** Inserts a newline and a section break at the end of the document body. Section breaks cannot be inserted inside a footnote, header or footer. Because section breaks can only be inserted inside the body, the segment ID field must be empty. */
691
699
  endOfSegmentLocation?: EndOfSegmentLocation;
@@ -1221,6 +1229,8 @@ declare namespace gapi.client {
1221
1229
  insertPageBreak?: InsertPageBreakRequest;
1222
1230
  /** Inserts a person mention. */
1223
1231
  insertPerson?: InsertPersonRequest;
1232
+ /** Insert a rich link. */
1233
+ insertRichLink?: InsertRichLinkRequest;
1224
1234
  /** Inserts a section break at the specified location. */
1225
1235
  insertSectionBreak?: InsertSectionBreakRequest;
1226
1236
  /** Inserts a table at the specified location. */
@@ -1247,6 +1257,8 @@ declare namespace gapi.client {
1247
1257
  updateDocumentStyle?: UpdateDocumentStyleRequest;
1248
1258
  /** Updates the properties of a document tab. */
1249
1259
  updateDocumentTabProperties?: UpdateDocumentTabPropertiesRequest;
1260
+ /** Updates a named style. */
1261
+ updateNamedStyle?: UpdateNamedStyleRequest;
1250
1262
  /** Updates the paragraph style at the specified range. */
1251
1263
  updateParagraphStyle?: UpdateParagraphStyleRequest;
1252
1264
  /** Updates the section style of the specified range. */
@@ -1762,6 +1774,14 @@ declare namespace gapi.client {
1762
1774
  /** The tab properties to update. */
1763
1775
  tabProperties?: TabProperties;
1764
1776
  }
1777
+ interface UpdateNamedStyleRequest {
1778
+ /** The NamedStyle fields that should be updated. At least `named_style_type` must be specified. The root `named_style` is implied and should not be specified. A single `"*"` can be used as short-hand for listing every field. For example, to update the text style to bold, set `fields` to include `"text_style"` and `"text_style.bold"`. To update the paragraph style's alignment property, set `fields` to include `"paragraph_style"` and `"paragraph_style.alignment"`. To reset a property to its default value, include its field name in the field mask but leave the field itself unset. Specifying `"text_style"` or `"paragraph_style"` with an empty TextStyle or ParagraphStyle will reset all of its nested fields. */
1779
+ fields?: string;
1780
+ /** The document style to update. */
1781
+ namedStyle?: NamedStyle;
1782
+ /** The document tab to update. By default, the update is applied to the first tab. */
1783
+ tabId?: string;
1784
+ }
1765
1785
  interface UpdateParagraphStyleRequest {
1766
1786
  /** The fields that should be updated. At least one field must be specified. The root `paragraph_style` is implied and should not be specified. A single `"*"` can be used as short-hand for listing every field. For example, to update the paragraph style's alignment property, set `fields` to `"alignment"`. To reset a property to its default value, include its field name in the field mask but leave the field itself unset. */
1767
1787
  fields?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.docs-v1",
3
- "version": "0.3.20260311",
3
+ "version": "0.3.20260529",
4
4
  "description": "TypeScript typings for Google Docs API v1",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -11,6 +11,18 @@ Install typings for Google Docs API:
11
11
  npm install @types/gapi.client.docs-v1 --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": ["gapi", "gapi.auth2", "gapi.client", "gapi.client.docs-v1"]
22
+ }
23
+ }
24
+ ```
25
+
14
26
  ## Usage
15
27
 
16
28
  You need to initialize Google API client in your code: