@googleapis/merchantapi 5.0.0 → 6.0.1

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 (46) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/accounts_v1beta.ts +301 -188
  3. package/build/accounts_v1beta.d.ts +119 -119
  4. package/build/accounts_v1beta.js.map +1 -1
  5. package/build/conversions_v1beta.d.ts +13 -13
  6. package/build/conversions_v1beta.js.map +1 -1
  7. package/build/datasources_v1beta.d.ts +16 -16
  8. package/build/datasources_v1beta.js.map +1 -1
  9. package/build/index.d.ts +11 -1
  10. package/build/index.js +7 -1
  11. package/build/index.js.map +1 -1
  12. package/build/inventories_v1beta.d.ts +13 -13
  13. package/build/inventories_v1beta.js.map +1 -1
  14. package/build/issueresolution_v1beta.d.ts +661 -0
  15. package/build/issueresolution_v1beta.js +148 -0
  16. package/build/issueresolution_v1beta.js.map +1 -0
  17. package/build/lfp_v1beta.d.ts +15 -15
  18. package/build/lfp_v1beta.js.map +1 -1
  19. package/build/notifications_v1beta.d.ts +11 -11
  20. package/build/notifications_v1beta.js.map +1 -1
  21. package/build/ordertracking_v1beta.d.ts +385 -0
  22. package/build/ordertracking_v1beta.js +91 -0
  23. package/build/ordertracking_v1beta.js.map +1 -0
  24. package/build/products_v1beta.d.ts +11 -11
  25. package/build/products_v1beta.js.map +1 -1
  26. package/build/promotions_v1beta.d.ts +7 -7
  27. package/build/promotions_v1beta.js.map +1 -1
  28. package/build/quota_v1beta.d.ts +3 -3
  29. package/build/reports_v1beta.d.ts +3 -3
  30. package/build/reports_v1beta.js.map +1 -1
  31. package/build/reviews_v1beta.d.ts +17 -17
  32. package/build/reviews_v1beta.js.map +1 -1
  33. package/conversions_v1beta.ts +35 -20
  34. package/datasources_v1beta.ts +42 -24
  35. package/index.ts +24 -1
  36. package/inventories_v1beta.ts +31 -22
  37. package/issueresolution_v1beta.ts +962 -0
  38. package/lfp_v1beta.ts +41 -23
  39. package/notifications_v1beta.ts +27 -20
  40. package/ordertracking_v1beta.ts +525 -0
  41. package/package.json +2 -2
  42. package/products_v1beta.ts +29 -17
  43. package/promotions_v1beta.ts +17 -11
  44. package/quota_v1beta.ts +5 -5
  45. package/reports_v1beta.ts +7 -4
  46. package/reviews_v1beta.ts +45 -27
@@ -0,0 +1,525 @@
1
+ // Copyright 2020 Google LLC
2
+ // Licensed under the Apache License, Version 2.0 (the "License");
3
+ // you may not use this file except in compliance with the License.
4
+ // You may obtain a copy of the License at
5
+ //
6
+ // http://www.apache.org/licenses/LICENSE-2.0
7
+ //
8
+ // Unless required by applicable law or agreed to in writing, software
9
+ // distributed under the License is distributed on an "AS IS" BASIS,
10
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ // See the License for the specific language governing permissions and
12
+ // limitations under the License.
13
+
14
+ /* eslint-disable @typescript-eslint/no-explicit-any */
15
+ /* eslint-disable @typescript-eslint/no-unused-vars */
16
+ /* eslint-disable @typescript-eslint/no-empty-interface */
17
+ /* eslint-disable @typescript-eslint/no-namespace */
18
+ /* eslint-disable no-irregular-whitespace */
19
+
20
+ import {
21
+ OAuth2Client,
22
+ JWT,
23
+ Compute,
24
+ UserRefreshClient,
25
+ BaseExternalAccountClient,
26
+ GaxiosResponseWithHTTP2,
27
+ GoogleConfigurable,
28
+ createAPIRequest,
29
+ MethodOptions,
30
+ StreamMethodOptions,
31
+ GlobalOptions,
32
+ GoogleAuth,
33
+ BodyResponseCallback,
34
+ APIRequestContext,
35
+ } from 'googleapis-common';
36
+ import {Readable} from 'stream';
37
+
38
+ export namespace merchantapi_ordertracking_v1beta {
39
+ export interface Options extends GlobalOptions {
40
+ version: 'ordertracking_v1beta';
41
+ }
42
+
43
+ interface StandardParameters {
44
+ /**
45
+ * Auth client or API Key for the request
46
+ */
47
+ auth?:
48
+ | string
49
+ | OAuth2Client
50
+ | JWT
51
+ | Compute
52
+ | UserRefreshClient
53
+ | BaseExternalAccountClient
54
+ | GoogleAuth;
55
+
56
+ /**
57
+ * V1 error format.
58
+ */
59
+ '$.xgafv'?: string;
60
+ /**
61
+ * OAuth access token.
62
+ */
63
+ access_token?: string;
64
+ /**
65
+ * Data format for response.
66
+ */
67
+ alt?: string;
68
+ /**
69
+ * JSONP
70
+ */
71
+ callback?: string;
72
+ /**
73
+ * Selector specifying which fields to include in a partial response.
74
+ */
75
+ fields?: string;
76
+ /**
77
+ * API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
78
+ */
79
+ key?: string;
80
+ /**
81
+ * OAuth 2.0 token for the current user.
82
+ */
83
+ oauth_token?: string;
84
+ /**
85
+ * Returns response with indentations and line breaks.
86
+ */
87
+ prettyPrint?: boolean;
88
+ /**
89
+ * 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.
90
+ */
91
+ quotaUser?: string;
92
+ /**
93
+ * Legacy upload protocol for media (e.g. "media", "multipart").
94
+ */
95
+ uploadType?: string;
96
+ /**
97
+ * Upload protocol for media (e.g. "raw", "multipart").
98
+ */
99
+ upload_protocol?: string;
100
+ }
101
+
102
+ /**
103
+ * Merchant API
104
+ *
105
+ * Programmatically manage your Merchant Center Accounts.
106
+ *
107
+ * @example
108
+ * ```js
109
+ * const {google} = require('googleapis');
110
+ * const merchantapi = google.merchantapi('ordertracking_v1beta');
111
+ * ```
112
+ */
113
+ export class Merchantapi {
114
+ context: APIRequestContext;
115
+ accounts: Resource$Accounts;
116
+
117
+ constructor(options: GlobalOptions, google?: GoogleConfigurable) {
118
+ this.context = {
119
+ _options: options || {},
120
+ google,
121
+ };
122
+
123
+ this.accounts = new Resource$Accounts(this.context);
124
+ }
125
+ }
126
+
127
+ /**
128
+ * Represents civil time (or occasionally physical time). This type can represent a civil time in one of a few possible ways: * When utc_offset is set and time_zone is unset: a civil time on a calendar day with a particular offset from UTC. * When time_zone is set and utc_offset is unset: a civil time on a calendar day in a particular time zone. * When neither time_zone nor utc_offset is set: a civil time on a calendar day in local time. The date is relative to the Proleptic Gregorian Calendar. If year, month, or day are 0, the DateTime is considered not to have a specific year, month, or day respectively. This type may also be used to represent a physical time if all the date and time fields are set and either case of the `time_offset` oneof is set. Consider using `Timestamp` message for physical time instead. If your use case also would like to store the user's timezone, that can be done in another field. This type is more flexible than some applications may want. Make sure to document and validate your application's limitations.
129
+ */
130
+ export interface Schema$DateTime {
131
+ /**
132
+ * Optional. Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if specifying a datetime without a day.
133
+ */
134
+ day?: number | null;
135
+ /**
136
+ * Optional. Hours of day in 24 hour format. Should be from 0 to 23, defaults to 0 (midnight). An API may choose to allow the value "24:00:00" for scenarios like business closing time.
137
+ */
138
+ hours?: number | null;
139
+ /**
140
+ * Optional. Minutes of hour of day. Must be from 0 to 59, defaults to 0.
141
+ */
142
+ minutes?: number | null;
143
+ /**
144
+ * Optional. Month of year. Must be from 1 to 12, or 0 if specifying a datetime without a month.
145
+ */
146
+ month?: number | null;
147
+ /**
148
+ * Optional. Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999, defaults to 0.
149
+ */
150
+ nanos?: number | null;
151
+ /**
152
+ * Optional. Seconds of minutes of the time. Must normally be from 0 to 59, defaults to 0. An API may allow the value 60 if it allows leap-seconds.
153
+ */
154
+ seconds?: number | null;
155
+ /**
156
+ * Time zone.
157
+ */
158
+ timeZone?: Schema$TimeZone;
159
+ /**
160
+ * UTC offset. Must be whole seconds, between -18 hours and +18 hours. For example, a UTC offset of -4:00 would be represented as { seconds: -14400 \}.
161
+ */
162
+ utcOffset?: string | null;
163
+ /**
164
+ * Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a datetime without a year.
165
+ */
166
+ year?: number | null;
167
+ }
168
+ /**
169
+ * The line items of the order.
170
+ */
171
+ export interface Schema$LineItemDetails {
172
+ /**
173
+ * Optional. Brand of the product.
174
+ */
175
+ brand?: string | null;
176
+ /**
177
+ * Optional. The Global Trade Item Number.
178
+ */
179
+ gtin?: string | null;
180
+ /**
181
+ * Required. The ID for this line item.
182
+ */
183
+ lineItemId?: string | null;
184
+ /**
185
+ * Optional. The manufacturer part number.
186
+ */
187
+ mpn?: string | null;
188
+ /**
189
+ * Required. The Content API REST ID of the product, in the form channel:contentLanguage:targetCountry:offerId.
190
+ */
191
+ productId?: string | null;
192
+ /**
193
+ * Optional. Plain text title of this product.
194
+ */
195
+ productTitle?: string | null;
196
+ /**
197
+ * Required. The quantity of the line item in the order.
198
+ */
199
+ quantity?: string | null;
200
+ }
201
+ /**
202
+ * Represents a business trade from which signals are extracted, such as shipping.
203
+ */
204
+ export interface Schema$OrderTrackingSignal {
205
+ /**
206
+ * Optional. The shipping fee of the order; this value should be set to zero in the case of free shipping.
207
+ */
208
+ customerShippingFee?: Schema$Price;
209
+ /**
210
+ * Optional. The delivery postal code, as a continuous string without spaces or dashes, for example "95016". This field will be anonymized in returned OrderTrackingSignal creation response.
211
+ */
212
+ deliveryPostalCode?: string | null;
213
+ /**
214
+ * Optional. The [CLDR territory code] (http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml) for the shipping destination.
215
+ */
216
+ deliveryRegionCode?: string | null;
217
+ /**
218
+ * Required. Information about line items in the order.
219
+ */
220
+ lineItems?: Schema$LineItemDetails[];
221
+ /**
222
+ * Optional. The Google Merchant Center ID of this order tracking signal. This value is optional. If left unset, the caller's Merchant Center ID is used. You must request access in order to provide data on behalf of another business. For more information, see [Submitting Order Tracking Signals](/shopping-content/guides/order-tracking-signals).
223
+ */
224
+ merchantId?: string | null;
225
+ /**
226
+ * Required. The time when the order was created on the businesses side. Include the year and timezone string, if available.
227
+ */
228
+ orderCreatedTime?: Schema$DateTime;
229
+ /**
230
+ * Required. The ID of the order on the businesses side. This field will be hashed in returned OrderTrackingSignal creation response.
231
+ */
232
+ orderId?: string | null;
233
+ /**
234
+ * Output only. The ID that uniquely identifies this order tracking signal.
235
+ */
236
+ orderTrackingSignalId?: string | null;
237
+ /**
238
+ * Optional. The mapping of the line items to the shipment information.
239
+ */
240
+ shipmentLineItemMapping?: Schema$ShipmentLineItemMapping[];
241
+ /**
242
+ * Required. The shipping information for the order.
243
+ */
244
+ shippingInfo?: Schema$ShippingInfo[];
245
+ }
246
+ /**
247
+ * The price represented as a number and currency.
248
+ */
249
+ export interface Schema$Price {
250
+ /**
251
+ * The price represented as a number in micros (1 million micros is an equivalent to one's currency standard unit, for example, 1 USD = 1000000 micros).
252
+ */
253
+ amountMicros?: string | null;
254
+ /**
255
+ * The currency of the price using three-letter acronyms according to [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217).
256
+ */
257
+ currencyCode?: string | null;
258
+ }
259
+ /**
260
+ * The change that happened to the product including old value, new value, country code as the region code and reporting context.
261
+ */
262
+ export interface Schema$ProductChange {
263
+ /**
264
+ * The new value of the changed resource or attribute. If empty, it means that the product was deleted. Will have one of these values : (`approved`, `pending`, `disapproved`, ``)
265
+ */
266
+ newValue?: string | null;
267
+ /**
268
+ * The old value of the changed resource or attribute. If empty, it means that the product was created. Will have one of these values : (`approved`, `pending`, `disapproved`, ``)
269
+ */
270
+ oldValue?: string | null;
271
+ /**
272
+ * Countries that have the change (if applicable). Represented in the ISO 3166 format.
273
+ */
274
+ regionCode?: string | null;
275
+ /**
276
+ * Reporting contexts that have the change (if applicable). Currently this field supports only (`SHOPPING_ADS`, `LOCAL_INVENTORY_ADS`, `YOUTUBE_SHOPPING`, `YOUTUBE_CHECKOUT`, `YOUTUBE_AFFILIATE`) from the enum value [ReportingContextEnum](/merchant/api/reference/rest/Shared.Types/ReportingContextEnum)
277
+ */
278
+ reportingContext?: string | null;
279
+ }
280
+ /**
281
+ * The message that the merchant will receive to notify about product status change event
282
+ */
283
+ export interface Schema$ProductStatusChangeMessage {
284
+ /**
285
+ * The target account that owns the entity that changed. Format : `accounts/{merchant_id\}`
286
+ */
287
+ account?: string | null;
288
+ /**
289
+ * The attribute in the resource that changed, in this case it will be always `Status`.
290
+ */
291
+ attribute?: string | null;
292
+ /**
293
+ * A message to describe the change that happened to the product
294
+ */
295
+ changes?: Schema$ProductChange[];
296
+ /**
297
+ * The time at which the event was generated. If you want to order the notification messages you receive you should rely on this field not on the order of receiving the notifications.
298
+ */
299
+ eventTime?: string | null;
300
+ /**
301
+ * Optional. The product expiration time. This field will not bet set if the notification is sent for a product deletion event.
302
+ */
303
+ expirationTime?: string | null;
304
+ /**
305
+ * The account that manages the merchant's account. can be the same as merchant id if it is standalone account. Format : `accounts/{service_provider_id\}`
306
+ */
307
+ managingAccount?: string | null;
308
+ /**
309
+ * The product name. Format: `accounts/{account\}/products/{product\}`
310
+ */
311
+ resource?: string | null;
312
+ /**
313
+ * The product id.
314
+ */
315
+ resourceId?: string | null;
316
+ /**
317
+ * The resource that changed, in this case it will always be `Product`.
318
+ */
319
+ resourceType?: string | null;
320
+ }
321
+ /**
322
+ * Represents how many items are in the shipment for the given shipment_id and line_item_id.
323
+ */
324
+ export interface Schema$ShipmentLineItemMapping {
325
+ /**
326
+ * Required. The line item ID.
327
+ */
328
+ lineItemId?: string | null;
329
+ /**
330
+ * Required. The line item quantity in the shipment.
331
+ */
332
+ quantity?: string | null;
333
+ /**
334
+ * Required. The shipment ID. This field will be hashed in returned OrderTrackingSignal creation response.
335
+ */
336
+ shipmentId?: string | null;
337
+ }
338
+ /**
339
+ * The shipping information for the order.
340
+ */
341
+ export interface Schema$ShippingInfo {
342
+ /**
343
+ * Optional. The time when the shipment was actually delivered. Include the year and timezone string, if available. This field is required, if one of the following fields is absent: tracking_id or carrier_name.
344
+ */
345
+ actualDeliveryTime?: Schema$DateTime;
346
+ /**
347
+ * Optional. The name of the shipping carrier for the delivery. This field is required if one of the following fields is absent: earliest_delivery_promise_time, latest_delivery_promise_time, and actual_delivery_time.
348
+ */
349
+ carrier?: string | null;
350
+ /**
351
+ * Optional. The service type for fulfillment, such as GROUND, FIRST_CLASS, etc.
352
+ */
353
+ carrierService?: string | null;
354
+ /**
355
+ * Optional. The earliest delivery promised time. Include the year and timezone string, if available. This field is required, if one of the following fields is absent: tracking_id or carrier_name.
356
+ */
357
+ earliestDeliveryPromiseTime?: Schema$DateTime;
358
+ /**
359
+ * Optional. The latest delivery promised time. Include the year and timezone string, if available. This field is required, if one of the following fields is absent: tracking_id or carrier_name.
360
+ */
361
+ latestDeliveryPromiseTime?: Schema$DateTime;
362
+ /**
363
+ * Required. The origin postal code, as a continuous string without spaces or dashes, for example "95016". This field will be anonymized in returned OrderTrackingSignal creation response.
364
+ */
365
+ originPostalCode?: string | null;
366
+ /**
367
+ * Required. The [CLDR territory code] (http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml) for the shipping origin.
368
+ */
369
+ originRegionCode?: string | null;
370
+ /**
371
+ * Required. The shipment ID. This field will be hashed in returned OrderTrackingSignal creation response.
372
+ */
373
+ shipmentId?: string | null;
374
+ /**
375
+ * Optional. The time when the shipment was shipped. Include the year and timezone string, if available.
376
+ */
377
+ shippedTime?: Schema$DateTime;
378
+ /**
379
+ * Required. The status of the shipment.
380
+ */
381
+ shippingStatus?: string | null;
382
+ /**
383
+ * Optional. The tracking ID of the shipment. This field is required if one of the following fields is absent: earliest_delivery_promise_time, latest_delivery_promise_time, and actual_delivery_time.
384
+ */
385
+ trackingId?: string | null;
386
+ }
387
+ /**
388
+ * Represents a time zone from the [IANA Time Zone Database](https://www.iana.org/time-zones).
389
+ */
390
+ export interface Schema$TimeZone {
391
+ /**
392
+ * IANA Time Zone Database time zone. For example "America/New_York".
393
+ */
394
+ id?: string | null;
395
+ /**
396
+ * Optional. IANA Time Zone Database version number. For example "2019a".
397
+ */
398
+ version?: string | null;
399
+ }
400
+
401
+ export class Resource$Accounts {
402
+ context: APIRequestContext;
403
+ ordertrackingsignals: Resource$Accounts$Ordertrackingsignals;
404
+ constructor(context: APIRequestContext) {
405
+ this.context = context;
406
+ this.ordertrackingsignals = new Resource$Accounts$Ordertrackingsignals(
407
+ this.context
408
+ );
409
+ }
410
+ }
411
+
412
+ export class Resource$Accounts$Ordertrackingsignals {
413
+ context: APIRequestContext;
414
+ constructor(context: APIRequestContext) {
415
+ this.context = context;
416
+ }
417
+
418
+ /**
419
+ * Creates new order tracking signal.
420
+ *
421
+ * @param params - Parameters for request
422
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
423
+ * @param callback - Optional callback that handles the response.
424
+ * @returns A promise if used with async/await, or void if used with a callback.
425
+ */
426
+ create(
427
+ params: Params$Resource$Accounts$Ordertrackingsignals$Create,
428
+ options: StreamMethodOptions
429
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
430
+ create(
431
+ params?: Params$Resource$Accounts$Ordertrackingsignals$Create,
432
+ options?: MethodOptions
433
+ ): Promise<GaxiosResponseWithHTTP2<Schema$OrderTrackingSignal>>;
434
+ create(
435
+ params: Params$Resource$Accounts$Ordertrackingsignals$Create,
436
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
437
+ callback: BodyResponseCallback<Readable>
438
+ ): void;
439
+ create(
440
+ params: Params$Resource$Accounts$Ordertrackingsignals$Create,
441
+ options: MethodOptions | BodyResponseCallback<Schema$OrderTrackingSignal>,
442
+ callback: BodyResponseCallback<Schema$OrderTrackingSignal>
443
+ ): void;
444
+ create(
445
+ params: Params$Resource$Accounts$Ordertrackingsignals$Create,
446
+ callback: BodyResponseCallback<Schema$OrderTrackingSignal>
447
+ ): void;
448
+ create(callback: BodyResponseCallback<Schema$OrderTrackingSignal>): void;
449
+ create(
450
+ paramsOrCallback?:
451
+ | Params$Resource$Accounts$Ordertrackingsignals$Create
452
+ | BodyResponseCallback<Schema$OrderTrackingSignal>
453
+ | BodyResponseCallback<Readable>,
454
+ optionsOrCallback?:
455
+ | MethodOptions
456
+ | StreamMethodOptions
457
+ | BodyResponseCallback<Schema$OrderTrackingSignal>
458
+ | BodyResponseCallback<Readable>,
459
+ callback?:
460
+ | BodyResponseCallback<Schema$OrderTrackingSignal>
461
+ | BodyResponseCallback<Readable>
462
+ ):
463
+ | void
464
+ | Promise<GaxiosResponseWithHTTP2<Schema$OrderTrackingSignal>>
465
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
466
+ let params = (paramsOrCallback ||
467
+ {}) as Params$Resource$Accounts$Ordertrackingsignals$Create;
468
+ let options = (optionsOrCallback || {}) as MethodOptions;
469
+
470
+ if (typeof paramsOrCallback === 'function') {
471
+ callback = paramsOrCallback;
472
+ params = {} as Params$Resource$Accounts$Ordertrackingsignals$Create;
473
+ options = {};
474
+ }
475
+
476
+ if (typeof optionsOrCallback === 'function') {
477
+ callback = optionsOrCallback;
478
+ options = {};
479
+ }
480
+
481
+ const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
482
+ const parameters = {
483
+ options: Object.assign(
484
+ {
485
+ url: (
486
+ rootUrl + '/ordertracking/v1beta/{+parent}/ordertrackingsignals'
487
+ ).replace(/([^:]\/)\/+/g, '$1'),
488
+ method: 'POST',
489
+ apiVersion: '',
490
+ },
491
+ options
492
+ ),
493
+ params,
494
+ requiredParams: ['parent'],
495
+ pathParams: ['parent'],
496
+ context: this.context,
497
+ };
498
+ if (callback) {
499
+ createAPIRequest<Schema$OrderTrackingSignal>(
500
+ parameters,
501
+ callback as BodyResponseCallback<unknown>
502
+ );
503
+ } else {
504
+ return createAPIRequest<Schema$OrderTrackingSignal>(parameters);
505
+ }
506
+ }
507
+ }
508
+
509
+ export interface Params$Resource$Accounts$Ordertrackingsignals$Create
510
+ extends StandardParameters {
511
+ /**
512
+ * Output only. The ID that uniquely identifies this order tracking signal.
513
+ */
514
+ orderTrackingSignalId?: string;
515
+ /**
516
+ * Required. The account of the business for which the order signal is created. Format: accounts/{account\}
517
+ */
518
+ parent?: string;
519
+
520
+ /**
521
+ * Request body metadata
522
+ */
523
+ requestBody?: Schema$OrderTrackingSignal;
524
+ }
525
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@googleapis/merchantapi",
3
- "version": "5.0.0",
3
+ "version": "6.0.1",
4
4
  "description": "merchantapi",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -28,7 +28,7 @@
28
28
  "webpack": "webpack"
29
29
  },
30
30
  "dependencies": {
31
- "googleapis-common": "^7.0.0"
31
+ "googleapis-common": "^8.0.2-rc.0"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@microsoft/api-documenter": "^7.8.10",
@@ -23,7 +23,7 @@ import {
23
23
  Compute,
24
24
  UserRefreshClient,
25
25
  BaseExternalAccountClient,
26
- GaxiosPromise,
26
+ GaxiosResponseWithHTTP2,
27
27
  GoogleConfigurable,
28
28
  createAPIRequest,
29
29
  MethodOptions,
@@ -1221,11 +1221,11 @@ export namespace merchantapi_products_v1beta {
1221
1221
  delete(
1222
1222
  params: Params$Resource$Accounts$Productinputs$Delete,
1223
1223
  options: StreamMethodOptions
1224
- ): GaxiosPromise<Readable>;
1224
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
1225
1225
  delete(
1226
1226
  params?: Params$Resource$Accounts$Productinputs$Delete,
1227
1227
  options?: MethodOptions
1228
- ): GaxiosPromise<Schema$Empty>;
1228
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
1229
1229
  delete(
1230
1230
  params: Params$Resource$Accounts$Productinputs$Delete,
1231
1231
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -1254,7 +1254,10 @@ export namespace merchantapi_products_v1beta {
1254
1254
  callback?:
1255
1255
  | BodyResponseCallback<Schema$Empty>
1256
1256
  | BodyResponseCallback<Readable>
1257
- ): void | GaxiosPromise<Schema$Empty> | GaxiosPromise<Readable> {
1257
+ ):
1258
+ | void
1259
+ | Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
1260
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
1258
1261
  let params = (paramsOrCallback ||
1259
1262
  {}) as Params$Resource$Accounts$Productinputs$Delete;
1260
1263
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -1309,11 +1312,11 @@ export namespace merchantapi_products_v1beta {
1309
1312
  insert(
1310
1313
  params: Params$Resource$Accounts$Productinputs$Insert,
1311
1314
  options: StreamMethodOptions
1312
- ): GaxiosPromise<Readable>;
1315
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
1313
1316
  insert(
1314
1317
  params?: Params$Resource$Accounts$Productinputs$Insert,
1315
1318
  options?: MethodOptions
1316
- ): GaxiosPromise<Schema$ProductInput>;
1319
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ProductInput>>;
1317
1320
  insert(
1318
1321
  params: Params$Resource$Accounts$Productinputs$Insert,
1319
1322
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -1342,7 +1345,10 @@ export namespace merchantapi_products_v1beta {
1342
1345
  callback?:
1343
1346
  | BodyResponseCallback<Schema$ProductInput>
1344
1347
  | BodyResponseCallback<Readable>
1345
- ): void | GaxiosPromise<Schema$ProductInput> | GaxiosPromise<Readable> {
1348
+ ):
1349
+ | void
1350
+ | Promise<GaxiosResponseWithHTTP2<Schema$ProductInput>>
1351
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
1346
1352
  let params = (paramsOrCallback ||
1347
1353
  {}) as Params$Resource$Accounts$Productinputs$Insert;
1348
1354
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -1396,11 +1402,11 @@ export namespace merchantapi_products_v1beta {
1396
1402
  patch(
1397
1403
  params: Params$Resource$Accounts$Productinputs$Patch,
1398
1404
  options: StreamMethodOptions
1399
- ): GaxiosPromise<Readable>;
1405
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
1400
1406
  patch(
1401
1407
  params?: Params$Resource$Accounts$Productinputs$Patch,
1402
1408
  options?: MethodOptions
1403
- ): GaxiosPromise<Schema$ProductInput>;
1409
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ProductInput>>;
1404
1410
  patch(
1405
1411
  params: Params$Resource$Accounts$Productinputs$Patch,
1406
1412
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -1429,7 +1435,10 @@ export namespace merchantapi_products_v1beta {
1429
1435
  callback?:
1430
1436
  | BodyResponseCallback<Schema$ProductInput>
1431
1437
  | BodyResponseCallback<Readable>
1432
- ): void | GaxiosPromise<Schema$ProductInput> | GaxiosPromise<Readable> {
1438
+ ):
1439
+ | void
1440
+ | Promise<GaxiosResponseWithHTTP2<Schema$ProductInput>>
1441
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
1433
1442
  let params = (paramsOrCallback ||
1434
1443
  {}) as Params$Resource$Accounts$Productinputs$Patch;
1435
1444
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -1539,11 +1548,11 @@ export namespace merchantapi_products_v1beta {
1539
1548
  get(
1540
1549
  params: Params$Resource$Accounts$Products$Get,
1541
1550
  options: StreamMethodOptions
1542
- ): GaxiosPromise<Readable>;
1551
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
1543
1552
  get(
1544
1553
  params?: Params$Resource$Accounts$Products$Get,
1545
1554
  options?: MethodOptions
1546
- ): GaxiosPromise<Schema$Product>;
1555
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Product>>;
1547
1556
  get(
1548
1557
  params: Params$Resource$Accounts$Products$Get,
1549
1558
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -1572,7 +1581,10 @@ export namespace merchantapi_products_v1beta {
1572
1581
  callback?:
1573
1582
  | BodyResponseCallback<Schema$Product>
1574
1583
  | BodyResponseCallback<Readable>
1575
- ): void | GaxiosPromise<Schema$Product> | GaxiosPromise<Readable> {
1584
+ ):
1585
+ | void
1586
+ | Promise<GaxiosResponseWithHTTP2<Schema$Product>>
1587
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
1576
1588
  let params = (paramsOrCallback ||
1577
1589
  {}) as Params$Resource$Accounts$Products$Get;
1578
1590
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -1627,11 +1639,11 @@ export namespace merchantapi_products_v1beta {
1627
1639
  list(
1628
1640
  params: Params$Resource$Accounts$Products$List,
1629
1641
  options: StreamMethodOptions
1630
- ): GaxiosPromise<Readable>;
1642
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
1631
1643
  list(
1632
1644
  params?: Params$Resource$Accounts$Products$List,
1633
1645
  options?: MethodOptions
1634
- ): GaxiosPromise<Schema$ListProductsResponse>;
1646
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ListProductsResponse>>;
1635
1647
  list(
1636
1648
  params: Params$Resource$Accounts$Products$List,
1637
1649
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -1664,8 +1676,8 @@ export namespace merchantapi_products_v1beta {
1664
1676
  | BodyResponseCallback<Readable>
1665
1677
  ):
1666
1678
  | void
1667
- | GaxiosPromise<Schema$ListProductsResponse>
1668
- | GaxiosPromise<Readable> {
1679
+ | Promise<GaxiosResponseWithHTTP2<Schema$ListProductsResponse>>
1680
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
1669
1681
  let params = (paramsOrCallback ||
1670
1682
  {}) as Params$Resource$Accounts$Products$List;
1671
1683
  let options = (optionsOrCallback || {}) as MethodOptions;