@googleapis/merchantapi 10.1.0 → 12.0.0

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 (101) hide show
  1. package/CHANGELOG.md +232 -0
  2. package/accounts_v1.ts +13566 -0
  3. package/accounts_v1beta.ts +7 -7
  4. package/build/accounts_v1.d.ts +7784 -0
  5. package/build/accounts_v1.js +2504 -0
  6. package/build/accounts_v1.js.map +1 -0
  7. package/build/accounts_v1beta.d.ts +7 -8
  8. package/build/accounts_v1beta.js +46 -1
  9. package/build/accounts_v1beta.js.map +1 -1
  10. package/build/conversions_v1.d.ts +748 -0
  11. package/build/conversions_v1.js +256 -0
  12. package/build/conversions_v1.js.map +1 -0
  13. package/build/conversions_v1beta.d.ts +0 -1
  14. package/build/conversions_v1beta.js +6 -1
  15. package/build/conversions_v1beta.js.map +1 -1
  16. package/build/datasources_v1.d.ts +1075 -0
  17. package/build/datasources_v1.js +297 -0
  18. package/build/datasources_v1.js.map +1 -0
  19. package/build/datasources_v1beta.d.ts +0 -1
  20. package/build/datasources_v1beta.js +8 -1
  21. package/build/datasources_v1beta.js.map +1 -1
  22. package/build/index.d.ts +60 -0
  23. package/build/index.js +38 -2
  24. package/build/index.js.map +1 -1
  25. package/build/inventories_v1.d.ts +766 -0
  26. package/build/inventories_v1.js +280 -0
  27. package/build/inventories_v1.js.map +1 -0
  28. package/build/inventories_v1beta.d.ts +6 -7
  29. package/build/inventories_v1beta.js +10 -1
  30. package/build/inventories_v1beta.js.map +1 -1
  31. package/build/issueresolution_v1.d.ts +1026 -0
  32. package/build/issueresolution_v1.js +202 -0
  33. package/build/issueresolution_v1.js.map +1 -0
  34. package/build/issueresolution_v1beta.d.ts +0 -1
  35. package/build/issueresolution_v1beta.js +8 -1
  36. package/build/issueresolution_v1beta.js.map +1 -1
  37. package/build/lfp_v1.d.ts +1047 -0
  38. package/build/lfp_v1.js +315 -0
  39. package/build/lfp_v1.js.map +1 -0
  40. package/build/lfp_v1beta.d.ts +1 -2
  41. package/build/lfp_v1beta.js +12 -1
  42. package/build/lfp_v1beta.js.map +1 -1
  43. package/build/notifications_v1.d.ts +579 -0
  44. package/build/notifications_v1.js +227 -0
  45. package/build/notifications_v1.js.map +1 -0
  46. package/build/notifications_v1beta.d.ts +0 -1
  47. package/build/notifications_v1beta.js +6 -1
  48. package/build/notifications_v1beta.js.map +1 -1
  49. package/build/ordertracking_v1.d.ts +458 -0
  50. package/build/ordertracking_v1.js +96 -0
  51. package/build/ordertracking_v1.js.map +1 -0
  52. package/build/ordertracking_v1beta.d.ts +6 -3
  53. package/build/ordertracking_v1beta.js +8 -3
  54. package/build/ordertracking_v1beta.js.map +1 -1
  55. package/build/products_v1.d.ts +1555 -0
  56. package/build/products_v1.js +233 -0
  57. package/build/products_v1.js.map +1 -0
  58. package/build/products_v1beta.d.ts +13 -14
  59. package/build/products_v1beta.js +8 -1
  60. package/build/products_v1beta.js.map +1 -1
  61. package/build/promotions_v1.d.ts +698 -0
  62. package/build/promotions_v1.js +160 -0
  63. package/build/promotions_v1.js.map +1 -0
  64. package/build/promotions_v1beta.d.ts +5 -6
  65. package/build/promotions_v1beta.js +6 -1
  66. package/build/promotions_v1beta.js.map +1 -1
  67. package/build/quota_v1.d.ts +283 -0
  68. package/build/quota_v1.js +96 -0
  69. package/build/quota_v1.js.map +1 -0
  70. package/build/quota_v1beta.d.ts +0 -1
  71. package/build/quota_v1beta.js +6 -1
  72. package/build/quota_v1beta.js.map +1 -1
  73. package/build/reports_v1.d.ts +1065 -0
  74. package/build/reports_v1.js +96 -0
  75. package/build/reports_v1.js.map +1 -0
  76. package/build/reports_v1beta.d.ts +1 -2
  77. package/build/reports_v1beta.js +6 -1
  78. package/build/reports_v1beta.js.map +1 -1
  79. package/build/reviews_v1beta.d.ts +0 -1
  80. package/build/reviews_v1beta.js +8 -1
  81. package/build/reviews_v1beta.js.map +1 -1
  82. package/build/tsconfig.tsbuildinfo +1 -0
  83. package/conversions_v1.ts +1284 -0
  84. package/datasources_v1.ts +1690 -0
  85. package/index.ts +142 -0
  86. package/inventories_v1.ts +1321 -0
  87. package/inventories_v1beta.ts +6 -6
  88. package/issueresolution_v1.ts +1425 -0
  89. package/lfp_v1.ts +1666 -0
  90. package/lfp_v1beta.ts +1 -1
  91. package/notifications_v1.ts +1052 -0
  92. package/ordertracking_v1.ts +599 -0
  93. package/ordertracking_v1beta.ts +8 -4
  94. package/package.json +4 -4
  95. package/products_v1.ts +2013 -0
  96. package/products_v1beta.ts +13 -13
  97. package/promotions_v1.ts +995 -0
  98. package/promotions_v1beta.ts +5 -5
  99. package/quota_v1.ts +424 -0
  100. package/reports_v1.ts +1205 -0
  101. package/reports_v1beta.ts +1 -1
@@ -0,0 +1,160 @@
1
+ "use strict";
2
+ // Copyright 2020 Google LLC
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.merchantapi_promotions_v1 = void 0;
16
+ /* eslint-disable @typescript-eslint/no-explicit-any */
17
+ /* eslint-disable @typescript-eslint/no-unused-vars */
18
+ /* eslint-disable @typescript-eslint/no-empty-interface */
19
+ /* eslint-disable @typescript-eslint/no-namespace */
20
+ /* eslint-disable no-irregular-whitespace */
21
+ const googleapis_common_1 = require("googleapis-common");
22
+ var merchantapi_promotions_v1;
23
+ (function (merchantapi_promotions_v1) {
24
+ /**
25
+ * Merchant API
26
+ *
27
+ * Programmatically manage your Merchant Center Accounts.
28
+ *
29
+ * @example
30
+ * ```js
31
+ * const {google} = require('googleapis');
32
+ * const merchantapi = google.merchantapi('promotions_v1');
33
+ * ```
34
+ */
35
+ class Merchantapi {
36
+ context;
37
+ accounts;
38
+ constructor(options, google) {
39
+ this.context = {
40
+ _options: options || {},
41
+ google,
42
+ };
43
+ this.accounts = new Resource$Accounts(this.context);
44
+ }
45
+ }
46
+ merchantapi_promotions_v1.Merchantapi = Merchantapi;
47
+ class Resource$Accounts {
48
+ context;
49
+ promotions;
50
+ constructor(context) {
51
+ this.context = context;
52
+ this.promotions = new Resource$Accounts$Promotions(this.context);
53
+ }
54
+ }
55
+ merchantapi_promotions_v1.Resource$Accounts = Resource$Accounts;
56
+ class Resource$Accounts$Promotions {
57
+ context;
58
+ constructor(context) {
59
+ this.context = context;
60
+ }
61
+ get(paramsOrCallback, optionsOrCallback, callback) {
62
+ let params = (paramsOrCallback ||
63
+ {});
64
+ let options = (optionsOrCallback || {});
65
+ if (typeof paramsOrCallback === 'function') {
66
+ callback = paramsOrCallback;
67
+ params = {};
68
+ options = {};
69
+ }
70
+ if (typeof optionsOrCallback === 'function') {
71
+ callback = optionsOrCallback;
72
+ options = {};
73
+ }
74
+ const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
75
+ const parameters = {
76
+ options: Object.assign({
77
+ url: (rootUrl + '/promotions/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
78
+ method: 'GET',
79
+ apiVersion: '',
80
+ }, options),
81
+ params,
82
+ requiredParams: ['name'],
83
+ pathParams: ['name'],
84
+ context: this.context,
85
+ };
86
+ if (callback) {
87
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
88
+ }
89
+ else {
90
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
91
+ }
92
+ }
93
+ insert(paramsOrCallback, optionsOrCallback, callback) {
94
+ let params = (paramsOrCallback ||
95
+ {});
96
+ let options = (optionsOrCallback || {});
97
+ if (typeof paramsOrCallback === 'function') {
98
+ callback = paramsOrCallback;
99
+ params = {};
100
+ options = {};
101
+ }
102
+ if (typeof optionsOrCallback === 'function') {
103
+ callback = optionsOrCallback;
104
+ options = {};
105
+ }
106
+ const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
107
+ const parameters = {
108
+ options: Object.assign({
109
+ url: (rootUrl + '/promotions/v1/{+parent}/promotions:insert').replace(/([^:]\/)\/+/g, '$1'),
110
+ method: 'POST',
111
+ apiVersion: '',
112
+ }, options),
113
+ params,
114
+ requiredParams: ['parent'],
115
+ pathParams: ['parent'],
116
+ context: this.context,
117
+ };
118
+ if (callback) {
119
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
120
+ }
121
+ else {
122
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
123
+ }
124
+ }
125
+ list(paramsOrCallback, optionsOrCallback, callback) {
126
+ let params = (paramsOrCallback ||
127
+ {});
128
+ let options = (optionsOrCallback || {});
129
+ if (typeof paramsOrCallback === 'function') {
130
+ callback = paramsOrCallback;
131
+ params = {};
132
+ options = {};
133
+ }
134
+ if (typeof optionsOrCallback === 'function') {
135
+ callback = optionsOrCallback;
136
+ options = {};
137
+ }
138
+ const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
139
+ const parameters = {
140
+ options: Object.assign({
141
+ url: (rootUrl + '/promotions/v1/{+parent}/promotions').replace(/([^:]\/)\/+/g, '$1'),
142
+ method: 'GET',
143
+ apiVersion: '',
144
+ }, options),
145
+ params,
146
+ requiredParams: ['parent'],
147
+ pathParams: ['parent'],
148
+ context: this.context,
149
+ };
150
+ if (callback) {
151
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
152
+ }
153
+ else {
154
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
155
+ }
156
+ }
157
+ }
158
+ merchantapi_promotions_v1.Resource$Accounts$Promotions = Resource$Accounts$Promotions;
159
+ })(merchantapi_promotions_v1 || (exports.merchantapi_promotions_v1 = merchantapi_promotions_v1 = {}));
160
+ //# sourceMappingURL=promotions_v1.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"promotions_v1.js","sourceRoot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CAAC;YACf,CAAC;YAED,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,qCAAqC,CAAC;YACzE,MAAM,UAAU,GAAG;gBACjB,OAAO,EAAE,MAAM,CAAC,MAAM,CACpB;oBACE,GAAG,EAAE,CAAC,OAAO,GAAG,qCAAqC,CAAC,CAAC,OAAO,CAC5D,cAAc,EACd,IAAI,CACL;oBACD,MAAM,EAAE,KAAK;oBACb,UAAU,EAAE,EAAE;iBACf,EACD,OAAO,CACR;gBACD,MAAM;gBACN,cAAc,EAAE,CAAC,QAAQ,CAAC;gBAC1B,UAAU,EAAE,CAAC,QAAQ,CAAC;gBACtB,OAAO,EAAE,IAAI,CAAC,OAAO;aACtB,CAAC;YACF,IAAI,QAAQ,EAAE,CAAC;gBACb,IAAA,oCAAgB,EACd,UAAU,EACV,QAAyC,CAC1C,CAAC;YACJ,CAAC;iBAAM,CAAC;gBACN,OAAO,IAAA,oCAAgB,EAAgC,UAAU,CAAC,CAAC;YACrE,CAAC;QACH,CAAC;KACF;IAjcY,sDAA4B,+BAicxC,CAAA;AAoCH,CAAC,EA77BgB,yBAAyB,yCAAzB,yBAAyB,QA67BzC"}
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
3
2
  import { Readable } from 'stream';
4
3
  export declare namespace merchantapi_promotions_v1beta {
@@ -165,7 +164,7 @@ export declare namespace merchantapi_promotions_v1beta {
165
164
  */
166
165
  productTypeInclusion?: string[] | null;
167
166
  /**
168
- * Required. The list of destinations where the promotion applies to. If you don't specify a destination by including a supported value in your data source, your promotion will display in Shopping ads and free listings by default. You may have previously submitted the following values as destinations for your products: Shopping Actions, Surfaces across Google, Local surfaces across Google. To represent these values use `FREE_LISTINGS`, `FREE_LOCAL_LISTINGS`, `LOCAL_INVENTORY_ADS`. For more details see [Promotion destination](https://support.google.com/merchants/answer/13837465?sjid=5155774230887277618-NC)
167
+ * Required. The list of destinations (also known as [Marketing methods](https://support.google.com/merchants/answer/15130232)) where the promotion applies to. If you don't specify a destination by including a supported value in your data source, your promotion will display in Shopping ads and free listings by default. You may have previously submitted the following values as destinations for your products: Shopping Actions, Surfaces across Google, Local surfaces across Google. To represent these values use `FREE_LISTINGS`, `FREE_LOCAL_LISTINGS`, `LOCAL_INVENTORY_ADS`. For more details see [Promotion destination](https://support.google.com/merchants/answer/13837465?sjid=5155774230887277618-NC)
169
168
  */
170
169
  promotionDestinations?: string[] | null;
171
170
  /**
@@ -630,9 +629,9 @@ export declare namespace merchantapi_promotions_v1beta {
630
629
  *
631
630
  * // Do the magic
632
631
  * const res = await merchantapi.accounts.promotions.list({
633
- * // Output only. The maximum number of promotions to return. The service may return fewer than this value. The maximum value is 250; values above 250 will be coerced to 250. If unspecified, the maximum number of promotions will be returned.
632
+ * // Optional. The maximum number of promotions to return. The service may return fewer than this value. The maximum value is 250; values above 250 will be coerced to 250. If unspecified, the maximum number of promotions will be returned.
634
633
  * pageSize: 'placeholder-value',
635
- * // Output only. A page token, received from a previous `ListPromotions` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListPromotions` must match the call that provided the page token.
634
+ * // Optional. A page token, received from a previous `ListPromotions` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListPromotions` must match the call that provided the page token.
636
635
  * pageToken: 'placeholder-value',
637
636
  * // Required. The account to list processed promotions for. Format: `accounts/{account\}`
638
637
  * parent: 'accounts/my-account',
@@ -683,11 +682,11 @@ export declare namespace merchantapi_promotions_v1beta {
683
682
  }
684
683
  export interface Params$Resource$Accounts$Promotions$List extends StandardParameters {
685
684
  /**
686
- * Output only. The maximum number of promotions to return. The service may return fewer than this value. The maximum value is 250; values above 250 will be coerced to 250. If unspecified, the maximum number of promotions will be returned.
685
+ * Optional. The maximum number of promotions to return. The service may return fewer than this value. The maximum value is 250; values above 250 will be coerced to 250. If unspecified, the maximum number of promotions will be returned.
687
686
  */
688
687
  pageSize?: number;
689
688
  /**
690
- * Output only. A page token, received from a previous `ListPromotions` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListPromotions` must match the call that provided the page token.
689
+ * Optional. A page token, received from a previous `ListPromotions` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListPromotions` must match the call that provided the page token.
691
690
  */
692
691
  pageToken?: string;
693
692
  /**
@@ -33,6 +33,8 @@ var merchantapi_promotions_v1beta;
33
33
  * ```
34
34
  */
35
35
  class Merchantapi {
36
+ context;
37
+ accounts;
36
38
  constructor(options, google) {
37
39
  this.context = {
38
40
  _options: options || {},
@@ -43,6 +45,8 @@ var merchantapi_promotions_v1beta;
43
45
  }
44
46
  merchantapi_promotions_v1beta.Merchantapi = Merchantapi;
45
47
  class Resource$Accounts {
48
+ context;
49
+ promotions;
46
50
  constructor(context) {
47
51
  this.context = context;
48
52
  this.promotions = new Resource$Accounts$Promotions(this.context);
@@ -50,6 +54,7 @@ var merchantapi_promotions_v1beta;
50
54
  }
51
55
  merchantapi_promotions_v1beta.Resource$Accounts = Resource$Accounts;
52
56
  class Resource$Accounts$Promotions {
57
+ context;
53
58
  constructor(context) {
54
59
  this.context = context;
55
60
  }
@@ -151,5 +156,5 @@ var merchantapi_promotions_v1beta;
151
156
  }
152
157
  }
153
158
  merchantapi_promotions_v1beta.Resource$Accounts$Promotions = Resource$Accounts$Promotions;
154
- })(merchantapi_promotions_v1beta = exports.merchantapi_promotions_v1beta || (exports.merchantapi_promotions_v1beta = {}));
159
+ })(merchantapi_promotions_v1beta || (exports.merchantapi_promotions_v1beta = merchantapi_promotions_v1beta = {}));
155
160
  //# sourceMappingURL=promotions_v1beta.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"promotions_v1beta.js","sourceRoot":"","sources":["../promotions_v1beta.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC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uth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
2
+ import { Readable } from 'stream';
3
+ export declare namespace merchantapi_quota_v1 {
4
+ export interface Options extends GlobalOptions {
5
+ version: 'quota_v1';
6
+ }
7
+ interface StandardParameters {
8
+ /**
9
+ * Auth client or API Key for the request
10
+ */
11
+ auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient | BaseExternalAccountClient | GoogleAuth;
12
+ /**
13
+ * V1 error format.
14
+ */
15
+ '$.xgafv'?: string;
16
+ /**
17
+ * OAuth access token.
18
+ */
19
+ access_token?: string;
20
+ /**
21
+ * Data format for response.
22
+ */
23
+ alt?: string;
24
+ /**
25
+ * JSONP
26
+ */
27
+ callback?: string;
28
+ /**
29
+ * Selector specifying which fields to include in a partial response.
30
+ */
31
+ fields?: string;
32
+ /**
33
+ * 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.
34
+ */
35
+ key?: string;
36
+ /**
37
+ * OAuth 2.0 token for the current user.
38
+ */
39
+ oauth_token?: string;
40
+ /**
41
+ * Returns response with indentations and line breaks.
42
+ */
43
+ prettyPrint?: boolean;
44
+ /**
45
+ * 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.
46
+ */
47
+ quotaUser?: string;
48
+ /**
49
+ * Legacy upload protocol for media (e.g. "media", "multipart").
50
+ */
51
+ uploadType?: string;
52
+ /**
53
+ * Upload protocol for media (e.g. "raw", "multipart").
54
+ */
55
+ upload_protocol?: string;
56
+ }
57
+ /**
58
+ * Merchant API
59
+ *
60
+ * Programmatically manage your Merchant Center Accounts.
61
+ *
62
+ * @example
63
+ * ```js
64
+ * const {google} = require('googleapis');
65
+ * const merchantapi = google.merchantapi('quota_v1');
66
+ * ```
67
+ */
68
+ export class Merchantapi {
69
+ context: APIRequestContext;
70
+ accounts: Resource$Accounts;
71
+ constructor(options: GlobalOptions, google?: GoogleConfigurable);
72
+ }
73
+ /**
74
+ * Response message for the ListMethodGroups method.
75
+ */
76
+ export interface Schema$ListQuotaGroupsResponse {
77
+ /**
78
+ * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
79
+ */
80
+ nextPageToken?: string | null;
81
+ /**
82
+ * The methods, current quota usage and limits per each group. The quota is shared between all methods in the group. The groups are sorted in descending order based on quota_usage.
83
+ */
84
+ quotaGroups?: Schema$QuotaGroup[];
85
+ }
86
+ /**
87
+ * The method details per method in the Merchant API.
88
+ */
89
+ export interface Schema$MethodDetails {
90
+ /**
91
+ * Output only. The name of the method for example `products.list`.
92
+ */
93
+ method?: string | null;
94
+ /**
95
+ * Output only. The path for the method such as `products/v1/productInputs.insert`
96
+ */
97
+ path?: string | null;
98
+ /**
99
+ * Output only. The sub-API that the method belongs to.
100
+ */
101
+ subapi?: string | null;
102
+ /**
103
+ * Output only. The API version that the method belongs to.
104
+ */
105
+ version?: string | null;
106
+ }
107
+ /**
108
+ * The change that happened to the product including old value, new value, country code as the region code and reporting context.
109
+ */
110
+ export interface Schema$ProductChange {
111
+ /**
112
+ * 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`, ``)
113
+ */
114
+ newValue?: string | null;
115
+ /**
116
+ * 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`, ``)
117
+ */
118
+ oldValue?: string | null;
119
+ /**
120
+ * Countries that have the change (if applicable). Represented in the ISO 3166 format.
121
+ */
122
+ regionCode?: string | null;
123
+ /**
124
+ * 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)
125
+ */
126
+ reportingContext?: string | null;
127
+ }
128
+ /**
129
+ * The message that the merchant will receive to notify about product status change event
130
+ */
131
+ export interface Schema$ProductStatusChangeMessage {
132
+ /**
133
+ * The target account that owns the entity that changed. Format : `accounts/{merchant_id\}`
134
+ */
135
+ account?: string | null;
136
+ /**
137
+ * The attribute in the resource that changed, in this case it will be always `Status`.
138
+ */
139
+ attribute?: string | null;
140
+ /**
141
+ * A message to describe the change that happened to the product
142
+ */
143
+ changes?: Schema$ProductChange[];
144
+ /**
145
+ * 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.
146
+ */
147
+ eventTime?: string | null;
148
+ /**
149
+ * Optional. The product expiration time. This field will not be set if the notification is sent for a product deletion event.
150
+ */
151
+ expirationTime?: string | null;
152
+ /**
153
+ * 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\}`
154
+ */
155
+ managingAccount?: string | null;
156
+ /**
157
+ * The product name. Format: `accounts/{account\}/products/{product\}`
158
+ */
159
+ resource?: string | null;
160
+ /**
161
+ * The product id.
162
+ */
163
+ resourceId?: string | null;
164
+ /**
165
+ * The resource that changed, in this case it will always be `Product`.
166
+ */
167
+ resourceType?: string | null;
168
+ }
169
+ /**
170
+ * The group information for methods in the Merchant API. The quota is shared between all methods in the group. Even if none of the methods within the group have usage the information for the group is returned.
171
+ */
172
+ export interface Schema$QuotaGroup {
173
+ /**
174
+ * Output only. List of all methods group quota applies to.
175
+ */
176
+ methodDetails?: Schema$MethodDetails[];
177
+ /**
178
+ * Identifier. The resource name of the quota group. Format: accounts/{account\}/quotas/{group\} Note: There is no guarantee on the format of {group\}
179
+ */
180
+ name?: string | null;
181
+ /**
182
+ * Output only. The maximum number of calls allowed per day for the group.
183
+ */
184
+ quotaLimit?: string | null;
185
+ /**
186
+ * Output only. The maximum number of calls allowed per minute for the group.
187
+ */
188
+ quotaMinuteLimit?: string | null;
189
+ /**
190
+ * Output only. The current quota usage, meaning the number of calls already made on a given day to the methods in the group. The daily quota limits reset at at 12:00 PM midday UTC.
191
+ */
192
+ quotaUsage?: string | null;
193
+ }
194
+ export class Resource$Accounts {
195
+ context: APIRequestContext;
196
+ quotas: Resource$Accounts$Quotas;
197
+ constructor(context: APIRequestContext);
198
+ }
199
+ export class Resource$Accounts$Quotas {
200
+ context: APIRequestContext;
201
+ constructor(context: APIRequestContext);
202
+ /**
203
+ * Lists the daily call quota and usage per group for your Merchant Center account.
204
+ * @example
205
+ * ```js
206
+ * // Before running the sample:
207
+ * // - Enable the API at:
208
+ * // https://console.developers.google.com/apis/api/merchantapi.googleapis.com
209
+ * // - Login into gcloud by running:
210
+ * // ```sh
211
+ * // $ gcloud auth application-default login
212
+ * // ```
213
+ * // - Install the npm module by running:
214
+ * // ```sh
215
+ * // $ npm install googleapis
216
+ * // ```
217
+ *
218
+ * const {google} = require('googleapis');
219
+ * const merchantapi = google.merchantapi('quota_v1');
220
+ *
221
+ * async function main() {
222
+ * const auth = new google.auth.GoogleAuth({
223
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
224
+ * scopes: ['https://www.googleapis.com/auth/content'],
225
+ * });
226
+ *
227
+ * // Acquire an auth client, and bind it to all future calls
228
+ * const authClient = await auth.getClient();
229
+ * google.options({auth: authClient});
230
+ *
231
+ * // Do the magic
232
+ * const res = await merchantapi.accounts.quotas.list({
233
+ * // Optional. The maximum number of quotas to return in the response, used for paging. Defaults to 500; values above 1000 will be coerced to 1000.
234
+ * pageSize: 'placeholder-value',
235
+ * // Optional. Token (if provided) to retrieve the subsequent page. All other parameters must match the original call that provided the page token.
236
+ * pageToken: 'placeholder-value',
237
+ * // Required. The merchant account who owns the collection of method quotas Format: accounts/{account\}
238
+ * parent: 'accounts/my-account',
239
+ * });
240
+ * console.log(res.data);
241
+ *
242
+ * // Example response
243
+ * // {
244
+ * // "nextPageToken": "my_nextPageToken",
245
+ * // "quotaGroups": []
246
+ * // }
247
+ * }
248
+ *
249
+ * main().catch(e => {
250
+ * console.error(e);
251
+ * throw e;
252
+ * });
253
+ *
254
+ * ```
255
+ *
256
+ * @param params - Parameters for request
257
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
258
+ * @param callback - Optional callback that handles the response.
259
+ * @returns A promise if used with async/await, or void if used with a callback.
260
+ */
261
+ list(params: Params$Resource$Accounts$Quotas$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
262
+ list(params?: Params$Resource$Accounts$Quotas$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ListQuotaGroupsResponse>>;
263
+ list(params: Params$Resource$Accounts$Quotas$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
264
+ list(params: Params$Resource$Accounts$Quotas$List, options: MethodOptions | BodyResponseCallback<Schema$ListQuotaGroupsResponse>, callback: BodyResponseCallback<Schema$ListQuotaGroupsResponse>): void;
265
+ list(params: Params$Resource$Accounts$Quotas$List, callback: BodyResponseCallback<Schema$ListQuotaGroupsResponse>): void;
266
+ list(callback: BodyResponseCallback<Schema$ListQuotaGroupsResponse>): void;
267
+ }
268
+ export interface Params$Resource$Accounts$Quotas$List extends StandardParameters {
269
+ /**
270
+ * Optional. The maximum number of quotas to return in the response, used for paging. Defaults to 500; values above 1000 will be coerced to 1000.
271
+ */
272
+ pageSize?: number;
273
+ /**
274
+ * Optional. Token (if provided) to retrieve the subsequent page. All other parameters must match the original call that provided the page token.
275
+ */
276
+ pageToken?: string;
277
+ /**
278
+ * Required. The merchant account who owns the collection of method quotas Format: accounts/{account\}
279
+ */
280
+ parent?: string;
281
+ }
282
+ export {};
283
+ }
@@ -0,0 +1,96 @@
1
+ "use strict";
2
+ // Copyright 2020 Google LLC
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.merchantapi_quota_v1 = void 0;
16
+ /* eslint-disable @typescript-eslint/no-explicit-any */
17
+ /* eslint-disable @typescript-eslint/no-unused-vars */
18
+ /* eslint-disable @typescript-eslint/no-empty-interface */
19
+ /* eslint-disable @typescript-eslint/no-namespace */
20
+ /* eslint-disable no-irregular-whitespace */
21
+ const googleapis_common_1 = require("googleapis-common");
22
+ var merchantapi_quota_v1;
23
+ (function (merchantapi_quota_v1) {
24
+ /**
25
+ * Merchant API
26
+ *
27
+ * Programmatically manage your Merchant Center Accounts.
28
+ *
29
+ * @example
30
+ * ```js
31
+ * const {google} = require('googleapis');
32
+ * const merchantapi = google.merchantapi('quota_v1');
33
+ * ```
34
+ */
35
+ class Merchantapi {
36
+ context;
37
+ accounts;
38
+ constructor(options, google) {
39
+ this.context = {
40
+ _options: options || {},
41
+ google,
42
+ };
43
+ this.accounts = new Resource$Accounts(this.context);
44
+ }
45
+ }
46
+ merchantapi_quota_v1.Merchantapi = Merchantapi;
47
+ class Resource$Accounts {
48
+ context;
49
+ quotas;
50
+ constructor(context) {
51
+ this.context = context;
52
+ this.quotas = new Resource$Accounts$Quotas(this.context);
53
+ }
54
+ }
55
+ merchantapi_quota_v1.Resource$Accounts = Resource$Accounts;
56
+ class Resource$Accounts$Quotas {
57
+ context;
58
+ constructor(context) {
59
+ this.context = context;
60
+ }
61
+ list(paramsOrCallback, optionsOrCallback, callback) {
62
+ let params = (paramsOrCallback ||
63
+ {});
64
+ let options = (optionsOrCallback || {});
65
+ if (typeof paramsOrCallback === 'function') {
66
+ callback = paramsOrCallback;
67
+ params = {};
68
+ options = {};
69
+ }
70
+ if (typeof optionsOrCallback === 'function') {
71
+ callback = optionsOrCallback;
72
+ options = {};
73
+ }
74
+ const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
75
+ const parameters = {
76
+ options: Object.assign({
77
+ url: (rootUrl + '/quota/v1/{+parent}/quotas').replace(/([^:]\/)\/+/g, '$1'),
78
+ method: 'GET',
79
+ apiVersion: '',
80
+ }, options),
81
+ params,
82
+ requiredParams: ['parent'],
83
+ pathParams: ['parent'],
84
+ context: this.context,
85
+ };
86
+ if (callback) {
87
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
88
+ }
89
+ else {
90
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
91
+ }
92
+ }
93
+ }
94
+ merchantapi_quota_v1.Resource$Accounts$Quotas = Resource$Accounts$Quotas;
95
+ })(merchantapi_quota_v1 || (exports.merchantapi_quota_v1 = merchantapi_quota_v1 = {}));
96
+ //# sourceMappingURL=quota_v1.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quota_v1.js","sourceRoot":"","sources":["../quota_v1.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAEjC,uDAAuD;AACvD,sDAAsD;AACtD,0DAA0D;AAC1D,oDAAoD;AACpD,4CAA4C;AAE5C,yDAe2B;AAG3B,IAAiB,oBAAoB,CAkYpC;AAlYD,WAAiB,oBAAoB;IAgEnC;;;;;;;;;;OAUG;IACH,MAAa,WAAW;QACtB,OAAO,CAAoB;QAC3B,QAAQ,CAAoB;QAE5B,YAAY,OAAsB,EAAE,MAA2B;YAC7D,IAAI,CAAC,OAAO,GAAG;gBACb,QAAQ,EAAE,OAAO,IAAI,EAAE;gBACvB,MAAM;aACP,CAAC;YAEF,IAAI,CAAC,QAAQ,GAAG,IAAI,iBAAiB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACtD,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,EAAE,CAAC,QAAQ,CAAC;gBACtB,OAAO,EAAE,IAAI,CAAC,OAAO;aACtB,CAAC;YACF,IAAI,QAAQ,EAAE,CAAC;gBACb,IAAA,oCAAgB,EACd,UAAU,EACV,QAAyC,CAC1C,CAAC;YACJ,CAAC;iBAAM,CAAC;gBACN,OAAO,IAAA,oCAAgB,EAAiC,UAAU,CAAC,CAAC;YACtE,CAAC;QACH,CAAC;KACF;IArJY,6CAAwB,2BAqJpC,CAAA;AAiBH,CAAC,EAlYgB,oBAAoB,oCAApB,oBAAoB,QAkYpC"}
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
3
2
  import { Readable } from 'stream';
4
3
  export declare namespace merchantapi_quota_v1beta {