@maxim_mazurok/gapi.client.merchantapi-datasources_v1beta 0.0.20260318 → 0.0.20260608
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 +2 -2
- 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://merchantapi.googleapis.com/$discovery/rest?version=datasources_v1beta
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20260608
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -250,7 +250,7 @@ declare namespace gapi.client {
|
|
|
250
250
|
/** The product id. */
|
|
251
251
|
resourceId?: string;
|
|
252
252
|
/** The resource that changed, in this case it will always be `Product`. */
|
|
253
|
-
resourceType?: 'RESOURCE_UNSPECIFIED' | 'PRODUCT';
|
|
253
|
+
resourceType?: 'RESOURCE_UNSPECIFIED' | 'PRODUCT' | 'ACCOUNT_SERVICE';
|
|
254
254
|
}
|
|
255
255
|
interface PromotionDataSource {
|
|
256
256
|
/** Required. Immutable. The two-letter ISO 639-1 language of the items in the data source. */
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -11,6 +11,23 @@ Install typings for Merchant API:
|
|
|
11
11
|
npm install @types/gapi.client.merchantapi-datasources_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.merchantapi-datasources_v1beta"
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
```
|
|
30
|
+
|
|
14
31
|
## Usage
|
|
15
32
|
|
|
16
33
|
You need to initialize Google API client in your code:
|