@maxim_mazurok/gapi.client.cloudsearch-v1 0.3.20260114 → 0.3.20260506
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 +18 -4
- package/package.json +1 -1
- 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://cloudsearch.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20260506
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -1685,7 +1685,17 @@ declare namespace gapi.client {
|
|
|
1685
1685
|
/** The name of the source */
|
|
1686
1686
|
source?: Source;
|
|
1687
1687
|
}
|
|
1688
|
-
interface QuerySuggestion {
|
|
1688
|
+
interface QuerySuggestion {
|
|
1689
|
+
/** Last query time of the suggestion for query history suggestions. */
|
|
1690
|
+
lastQueryTime?: string;
|
|
1691
|
+
/** Source corpus of the suggestion. */
|
|
1692
|
+
sourceCorpus?:
|
|
1693
|
+
| 'SOURCE_CORPUS_UNSPECIFIED'
|
|
1694
|
+
| 'GMAIL'
|
|
1695
|
+
| 'DRIVE'
|
|
1696
|
+
| 'CHAT'
|
|
1697
|
+
| 'CALENDAR';
|
|
1698
|
+
}
|
|
1689
1699
|
interface RemoveActivityRequest {
|
|
1690
1700
|
/** Request options, such as the search application and clientId. */
|
|
1691
1701
|
requestOptions?: RequestOptions;
|
|
@@ -1712,6 +1722,8 @@ declare namespace gapi.client {
|
|
|
1712
1722
|
| 'CLIENT_ERROR';
|
|
1713
1723
|
}
|
|
1714
1724
|
interface RequestOptions {
|
|
1725
|
+
/** The BCP-47 language code, such as "pt" or "en". It represents the user's preferred Display Language. */
|
|
1726
|
+
clientDisplayLanguageCode?: string;
|
|
1715
1727
|
/** Debug options of the request */
|
|
1716
1728
|
debugOptions?: DebugOptions;
|
|
1717
1729
|
/** The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. For translations. Set this field using the language set in browser or for the page. In the event that the user's language preference is known, set this field to the known user language. When specified, the documents in search results are biased towards the specified language. The Suggest API uses this field as a hint to make better third-party autocomplete predictions. */
|
|
@@ -1982,7 +1994,7 @@ declare namespace gapi.client {
|
|
|
1982
1994
|
/** The status code, which should be an enum value of google.rpc.Code. */
|
|
1983
1995
|
code?: number;
|
|
1984
1996
|
/** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
|
|
1985
|
-
details?:
|
|
1997
|
+
details?: {[P in string]: any}[];
|
|
1986
1998
|
/** 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. */
|
|
1987
1999
|
message?: string;
|
|
1988
2000
|
}
|
|
@@ -2010,7 +2022,7 @@ declare namespace gapi.client {
|
|
|
2010
2022
|
/** This is present when the suggestion indicates a person. It contains more information about the person - like their email ID, name etc. */
|
|
2011
2023
|
peopleSuggestion?: PeopleSuggestion;
|
|
2012
2024
|
/** This field will be present if the suggested query is a word/phrase completion. */
|
|
2013
|
-
querySuggestion?:
|
|
2025
|
+
querySuggestion?: QuerySuggestion;
|
|
2014
2026
|
/** The source of the suggestion. */
|
|
2015
2027
|
source?: Source;
|
|
2016
2028
|
/** The suggested query that will be used for search, when the user clicks on the suggestion */
|
|
@@ -3096,6 +3108,8 @@ declare namespace gapi.client {
|
|
|
3096
3108
|
prettyPrint?: boolean;
|
|
3097
3109
|
/** 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. */
|
|
3098
3110
|
quotaUser?: string;
|
|
3111
|
+
/** The BCP-47 language code, such as "pt" or "en". It represents the user's preferred Display Language. */
|
|
3112
|
+
'requestOptions.clientDisplayLanguageCode'?: string;
|
|
3099
3113
|
/** If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field. */
|
|
3100
3114
|
'requestOptions.debugOptions.enableDebugging'?: boolean;
|
|
3101
3115
|
/** The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. For translations. Set this field using the language set in browser or for the page. In the event that the user's language preference is known, set this field to the known user language. When specified, the documents in search results are biased towards the specified language. The Suggest API uses this field as a hint to make better third-party autocomplete predictions. */
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -11,6 +11,18 @@ Install typings for Cloud Search API:
|
|
|
11
11
|
npm install @types/gapi.client.cloudsearch-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.cloudsearch-v1"]
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
```
|
|
25
|
+
|
|
14
26
|
## Usage
|
|
15
27
|
|
|
16
28
|
You need to initialize Google API client in your code:
|