@googleapis/merchantapi 3.0.0 → 5.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.
- package/CHANGELOG.md +34 -0
- package/accounts_v1beta.ts +1518 -170
- package/build/accounts_v1beta.d.ts +593 -58
- package/build/accounts_v1beta.js +344 -1
- package/build/accounts_v1beta.js.map +1 -1
- package/build/conversions_v1beta.d.ts +25 -18
- package/build/conversions_v1beta.js.map +1 -1
- package/build/datasources_v1beta.d.ts +31 -10
- package/build/datasources_v1beta.js.map +1 -1
- package/build/inventories_v1beta.d.ts +11 -7
- package/build/inventories_v1beta.js.map +1 -1
- package/build/lfp_v1beta.d.ts +131 -6
- package/build/lfp_v1beta.js +39 -0
- package/build/lfp_v1beta.js.map +1 -1
- package/build/notifications_v1beta.d.ts +10 -6
- package/build/notifications_v1beta.js.map +1 -1
- package/build/products_v1beta.d.ts +76 -19
- package/build/products_v1beta.js +32 -0
- package/build/products_v1beta.js.map +1 -1
- package/build/promotions_v1beta.d.ts +10 -6
- package/build/promotions_v1beta.js.map +1 -1
- package/build/quota_v1beta.d.ts +10 -6
- package/build/quota_v1beta.js.map +1 -1
- package/build/reports_v1beta.d.ts +11 -7
- package/build/reports_v1beta.js.map +1 -1
- package/build/reviews_v1beta.d.ts +12 -8
- package/build/reviews_v1beta.js.map +1 -1
- package/conversions_v1beta.ts +25 -18
- package/datasources_v1beta.ts +31 -10
- package/inventories_v1beta.ts +11 -7
- package/lfp_v1beta.ts +213 -6
- package/notifications_v1beta.ts +10 -6
- package/package.json +1 -1
- package/products_v1beta.ts +152 -19
- package/promotions_v1beta.ts +10 -6
- package/quota_v1beta.ts +10 -6
- package/reports_v1beta.ts +11 -7
- package/reviews_v1beta.ts +12 -8
|
@@ -76,9 +76,12 @@ export declare namespace merchantapi_conversions_v1beta {
|
|
|
76
76
|
*/
|
|
77
77
|
export interface Schema$AttributionSettings {
|
|
78
78
|
/**
|
|
79
|
-
* Required. Lookback
|
|
79
|
+
* Required. Lookback window (in days) used for attribution in this source. Supported values are `7`, `30` & `40`.
|
|
80
80
|
*/
|
|
81
81
|
attributionLookbackWindowDays?: number | null;
|
|
82
|
+
/**
|
|
83
|
+
* Required. Attribution model.
|
|
84
|
+
*/
|
|
82
85
|
attributionModel?: string | null;
|
|
83
86
|
/**
|
|
84
87
|
* Immutable. Unordered list. List of different conversion types a conversion event can be classified as. A standard "purchase" type will be automatically created if this list is empty at creation time.
|
|
@@ -106,7 +109,7 @@ export declare namespace merchantapi_conversions_v1beta {
|
|
|
106
109
|
*/
|
|
107
110
|
merchantCenterDestination?: Schema$MerchantCenterDestination;
|
|
108
111
|
/**
|
|
109
|
-
* Output only. Identifier. Generated by the Content API upon creation of a new `ConversionSource`. Format: [a-z]{4\}
|
|
112
|
+
* Output only. Identifier. Generated by the Content API upon creation of a new `ConversionSource`. Format: `[a-z]{4\}:.+` The four characters before the colon represent the type of conversion source. Content after the colon represents the ID of the conversion source within that type. The ID of two different conversion sources might be the same across different types. The following type prefixes are supported: * `galk`: For GoogleAnalyticsLink sources. * `mcdn`: For MerchantCenterDestination sources.
|
|
110
113
|
*/
|
|
111
114
|
name?: string | null;
|
|
112
115
|
/**
|
|
@@ -115,7 +118,7 @@ export declare namespace merchantapi_conversions_v1beta {
|
|
|
115
118
|
state?: string | null;
|
|
116
119
|
}
|
|
117
120
|
/**
|
|
118
|
-
* Message representing
|
|
121
|
+
* Message representing the type of a conversion event.
|
|
119
122
|
*/
|
|
120
123
|
export interface Schema$ConversionType {
|
|
121
124
|
/**
|
|
@@ -167,7 +170,7 @@ export declare namespace merchantapi_conversions_v1beta {
|
|
|
167
170
|
*/
|
|
168
171
|
export interface Schema$MerchantCenterDestination {
|
|
169
172
|
/**
|
|
170
|
-
* Required. Attribution settings
|
|
173
|
+
* Required. Attribution settings used for the Merchant Center Destination.
|
|
171
174
|
*/
|
|
172
175
|
attributionSettings?: Schema$AttributionSettings;
|
|
173
176
|
/**
|
|
@@ -179,7 +182,7 @@ export declare namespace merchantapi_conversions_v1beta {
|
|
|
179
182
|
*/
|
|
180
183
|
destination?: string | null;
|
|
181
184
|
/**
|
|
182
|
-
* Required. Merchant-specified display name for the destination. This is the name that identifies the conversion source within the Merchant Center UI.
|
|
185
|
+
* Required. Merchant-specified display name for the destination. This is the name that identifies the conversion source within the Merchant Center UI. The maximum length is 64 characters.
|
|
183
186
|
*/
|
|
184
187
|
displayName?: string | null;
|
|
185
188
|
}
|
|
@@ -188,19 +191,19 @@ export declare namespace merchantapi_conversions_v1beta {
|
|
|
188
191
|
*/
|
|
189
192
|
export interface Schema$ProductChange {
|
|
190
193
|
/**
|
|
191
|
-
* The new value of the changed resource or attribute.
|
|
194
|
+
* 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`, ``)
|
|
192
195
|
*/
|
|
193
196
|
newValue?: string | null;
|
|
194
197
|
/**
|
|
195
|
-
* The old value of the changed resource or attribute.
|
|
198
|
+
* 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`, ``)
|
|
196
199
|
*/
|
|
197
200
|
oldValue?: string | null;
|
|
198
201
|
/**
|
|
199
|
-
* Countries that have the change (if applicable)
|
|
202
|
+
* Countries that have the change (if applicable). Represented in the ISO 3166 format.
|
|
200
203
|
*/
|
|
201
204
|
regionCode?: string | null;
|
|
202
205
|
/**
|
|
203
|
-
* Reporting contexts that have the change (if applicable)
|
|
206
|
+
* 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)
|
|
204
207
|
*/
|
|
205
208
|
reportingContext?: string | null;
|
|
206
209
|
}
|
|
@@ -221,7 +224,11 @@ export declare namespace merchantapi_conversions_v1beta {
|
|
|
221
224
|
*/
|
|
222
225
|
changes?: Schema$ProductChange[];
|
|
223
226
|
/**
|
|
224
|
-
* The
|
|
227
|
+
* 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.
|
|
228
|
+
*/
|
|
229
|
+
eventTime?: string | null;
|
|
230
|
+
/**
|
|
231
|
+
* Optional. The product expiration time. This field will not bet set if the notification is sent for a product deletion event.
|
|
225
232
|
*/
|
|
226
233
|
expirationTime?: string | null;
|
|
227
234
|
/**
|
|
@@ -229,7 +236,7 @@ export declare namespace merchantapi_conversions_v1beta {
|
|
|
229
236
|
*/
|
|
230
237
|
managingAccount?: string | null;
|
|
231
238
|
/**
|
|
232
|
-
* The product name. Format: `
|
|
239
|
+
* The product name. Format: `accounts/{account\}/products/{product\}`
|
|
233
240
|
*/
|
|
234
241
|
resource?: string | null;
|
|
235
242
|
/**
|
|
@@ -341,7 +348,7 @@ export declare namespace merchantapi_conversions_v1beta {
|
|
|
341
348
|
}
|
|
342
349
|
export interface Params$Resource$Accounts$Conversionsources$Create extends StandardParameters {
|
|
343
350
|
/**
|
|
344
|
-
* Required. The merchant account that will own the new conversion source. Format: accounts/{account\}
|
|
351
|
+
* Required. The merchant account that will own the new conversion source. Format: `accounts/{account\}`
|
|
345
352
|
*/
|
|
346
353
|
parent?: string;
|
|
347
354
|
/**
|
|
@@ -351,13 +358,13 @@ export declare namespace merchantapi_conversions_v1beta {
|
|
|
351
358
|
}
|
|
352
359
|
export interface Params$Resource$Accounts$Conversionsources$Delete extends StandardParameters {
|
|
353
360
|
/**
|
|
354
|
-
* Required. The name of the conversion source to be deleted. Format: accounts/{account\}/conversionSources/{conversion_source\}
|
|
361
|
+
* Required. The name of the conversion source to be deleted. Format: `accounts/{account\}/conversionSources/{conversion_source\}`
|
|
355
362
|
*/
|
|
356
363
|
name?: string;
|
|
357
364
|
}
|
|
358
365
|
export interface Params$Resource$Accounts$Conversionsources$Get extends StandardParameters {
|
|
359
366
|
/**
|
|
360
|
-
* Required. The name of the conversion source to be fetched. Format: accounts/{account\}/conversionSources/{conversion_source\}
|
|
367
|
+
* Required. The name of the conversion source to be fetched. Format: `accounts/{account\}/conversionSources/{conversion_source\}`
|
|
361
368
|
*/
|
|
362
369
|
name?: string;
|
|
363
370
|
}
|
|
@@ -371,17 +378,17 @@ export declare namespace merchantapi_conversions_v1beta {
|
|
|
371
378
|
*/
|
|
372
379
|
pageToken?: string;
|
|
373
380
|
/**
|
|
374
|
-
* Required. The merchant account who owns the collection of conversion sources. Format: accounts/{account\}
|
|
381
|
+
* Required. The merchant account who owns the collection of conversion sources. Format: `accounts/{account\}`
|
|
375
382
|
*/
|
|
376
383
|
parent?: string;
|
|
377
384
|
/**
|
|
378
|
-
* Optional. Show deleted (archived)
|
|
385
|
+
* Optional. Show deleted (archived) conversion sources. By default, deleted conversion sources are not returned.
|
|
379
386
|
*/
|
|
380
387
|
showDeleted?: boolean;
|
|
381
388
|
}
|
|
382
389
|
export interface Params$Resource$Accounts$Conversionsources$Patch extends StandardParameters {
|
|
383
390
|
/**
|
|
384
|
-
* Output only. Identifier. Generated by the Content API upon creation of a new `ConversionSource`. Format: [a-z]{4\}
|
|
391
|
+
* Output only. Identifier. Generated by the Content API upon creation of a new `ConversionSource`. Format: `[a-z]{4\}:.+` The four characters before the colon represent the type of conversion source. Content after the colon represents the ID of the conversion source within that type. The ID of two different conversion sources might be the same across different types. The following type prefixes are supported: * `galk`: For GoogleAnalyticsLink sources. * `mcdn`: For MerchantCenterDestination sources.
|
|
385
392
|
*/
|
|
386
393
|
name?: string;
|
|
387
394
|
/**
|
|
@@ -395,7 +402,7 @@ export declare namespace merchantapi_conversions_v1beta {
|
|
|
395
402
|
}
|
|
396
403
|
export interface Params$Resource$Accounts$Conversionsources$Undelete extends StandardParameters {
|
|
397
404
|
/**
|
|
398
|
-
* Required. The name of the conversion source to be undeleted. Format: accounts/{account\}/conversionSources/{conversion_source\}
|
|
405
|
+
* Required. The name of the conversion source to be undeleted. Format: `accounts/{account\}/conversionSources/{conversion_source\}`
|
|
399
406
|
*/
|
|
400
407
|
name?: string;
|
|
401
408
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversions_v1beta.js","sourceRoot":"","sources":["../conversions_v1beta.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,8BAA8B,
|
|
1
|
+
{"version":3,"file":"conversions_v1beta.js","sourceRoot":"","sources":["../conversions_v1beta.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,8BAA8B,CAg4B9C;AAh4BD,WAAiB,8BAA8B;IAgE7C;;;;;;;;;;OAUG;IACH,MAAa,WAAW;QAItB,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,CAAC;KACF;IAZY,0CAAW,cAYvB,CAAA;IAuLD,MAAa,iBAAiB;QAG5B,YAAY,OAA0B;YACpC,IAAI,CAAC,OAAO,GAAG,OAA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EAAE,EAAE;iBACf,EACD,OAAO,CACR;gBACD,MAAM;gBACN,cAAc,EAAE,CAAC,MAAM,CAAC;gBACxB,UAAU,EAAE,CAAC,MAAM,CAAC;gBACpB,OAAO,EAAE,IAAI,CAAC,OAAO;aACtB,CAAC;YACF,IAAI,QAAQ,EAAE;gBACZ,IAAA,oCAAgB,EACd,UAAU,EACV,QAAyC,CAC1C,CAAC;aACH;iBAAM;gBACL,OAAO,IAAA,oCAAgB,EAA0B,UAAU,CAAC,CAAC;aAC9D;QACH,CAAC;KACF;IA5hBY,kEAAmC,sCA4hB/C,CAAA;AA2EH,CAAC,EAh4BgB,8BAA8B,GAA9B,sCAA8B,KAA9B,sCAA8B,QAg4B9C"}
|
|
@@ -72,7 +72,7 @@ export declare namespace merchantapi_datasources_v1beta {
|
|
|
72
72
|
constructor(options: GlobalOptions, google?: GoogleConfigurable);
|
|
73
73
|
}
|
|
74
74
|
/**
|
|
75
|
-
* The [data source](
|
|
75
|
+
* The [data source](/merchant/api/guides/data-sources/overview) for the Merchant Center account.
|
|
76
76
|
*/
|
|
77
77
|
export interface Schema$DataSource {
|
|
78
78
|
/**
|
|
@@ -100,7 +100,7 @@ export declare namespace merchantapi_datasources_v1beta {
|
|
|
100
100
|
*/
|
|
101
101
|
merchantReviewDataSource?: Schema$MerchantReviewDataSource;
|
|
102
102
|
/**
|
|
103
|
-
* Identifier. The name of the data source. Format: `
|
|
103
|
+
* Required. Identifier. The name of the data source. Format: `accounts/{account\}/dataSources/{datasource\}`
|
|
104
104
|
*/
|
|
105
105
|
name?: string | null;
|
|
106
106
|
/**
|
|
@@ -150,6 +150,19 @@ export declare namespace merchantapi_datasources_v1beta {
|
|
|
150
150
|
*/
|
|
151
151
|
takeFromDataSources?: Schema$DataSourceReference[];
|
|
152
152
|
}
|
|
153
|
+
/**
|
|
154
|
+
* Destinations also known as [Marketing methods](https://support.google.com/merchants/answer/15130232) selections.
|
|
155
|
+
*/
|
|
156
|
+
export interface Schema$Destination {
|
|
157
|
+
/**
|
|
158
|
+
* [Marketing methods](https://support.google.com/merchants/answer/15130232) (also known as destination) selections.
|
|
159
|
+
*/
|
|
160
|
+
destination?: string | null;
|
|
161
|
+
/**
|
|
162
|
+
* The state of the destination.
|
|
163
|
+
*/
|
|
164
|
+
state?: string | null;
|
|
165
|
+
}
|
|
153
166
|
/**
|
|
154
167
|
* A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \}
|
|
155
168
|
*/
|
|
@@ -320,7 +333,7 @@ export declare namespace merchantapi_datasources_v1beta {
|
|
|
320
333
|
*/
|
|
321
334
|
export interface Schema$PrimaryProductDataSource {
|
|
322
335
|
/**
|
|
323
|
-
*
|
|
336
|
+
* Optional. Immutable. Specifies the type of data source channel.
|
|
324
337
|
*/
|
|
325
338
|
channel?: string | null;
|
|
326
339
|
/**
|
|
@@ -335,6 +348,10 @@ export declare namespace merchantapi_datasources_v1beta {
|
|
|
335
348
|
* Optional. Default rule management of the data source. If set, the linked data sources will be replaced.
|
|
336
349
|
*/
|
|
337
350
|
defaultRule?: Schema$DefaultRule;
|
|
351
|
+
/**
|
|
352
|
+
* Optional. A list of destinations describing where products of the data source can be shown. When retrieving the data source, the list contains all the destinations that can be used for the data source, including the ones that are disabled for the data source but enabled for the account. Only destinations that are enabled on the account, for example through program participation, can be enabled on the data source. If unset, during creation, the destinations will be inherited based on the account level program participation. If set, during creation or update, the data source will be set only for the specified destinations. Updating this field requires at least one destination.
|
|
353
|
+
*/
|
|
354
|
+
destinations?: Schema$Destination[];
|
|
338
355
|
/**
|
|
339
356
|
* Optional. Immutable. The feed label that is specified on the data source level. Must be less than or equal to 20 uppercase letters (A-Z), numbers (0-9), and dashes (-). See also [migration to feed labels](https://developers.google.com/shopping-content/guides/products/feed-labels). `feedLabel` and `contentLanguage` must be either both set or unset for data sources with product content type. They must be set for data sources with a file input. If set, the data source will only accept products matching this combination. If unset, the data source will accept products without that restriction.
|
|
340
357
|
*/
|
|
@@ -345,19 +362,19 @@ export declare namespace merchantapi_datasources_v1beta {
|
|
|
345
362
|
*/
|
|
346
363
|
export interface Schema$ProductChange {
|
|
347
364
|
/**
|
|
348
|
-
* The new value of the changed resource or attribute.
|
|
365
|
+
* 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`, ``)
|
|
349
366
|
*/
|
|
350
367
|
newValue?: string | null;
|
|
351
368
|
/**
|
|
352
|
-
* The old value of the changed resource or attribute.
|
|
369
|
+
* 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`, ``)
|
|
353
370
|
*/
|
|
354
371
|
oldValue?: string | null;
|
|
355
372
|
/**
|
|
356
|
-
* Countries that have the change (if applicable)
|
|
373
|
+
* Countries that have the change (if applicable). Represented in the ISO 3166 format.
|
|
357
374
|
*/
|
|
358
375
|
regionCode?: string | null;
|
|
359
376
|
/**
|
|
360
|
-
* Reporting contexts that have the change (if applicable)
|
|
377
|
+
* 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)
|
|
361
378
|
*/
|
|
362
379
|
reportingContext?: string | null;
|
|
363
380
|
}
|
|
@@ -383,7 +400,11 @@ export declare namespace merchantapi_datasources_v1beta {
|
|
|
383
400
|
*/
|
|
384
401
|
changes?: Schema$ProductChange[];
|
|
385
402
|
/**
|
|
386
|
-
* The
|
|
403
|
+
* 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.
|
|
404
|
+
*/
|
|
405
|
+
eventTime?: string | null;
|
|
406
|
+
/**
|
|
407
|
+
* Optional. The product expiration time. This field will not bet set if the notification is sent for a product deletion event.
|
|
387
408
|
*/
|
|
388
409
|
expirationTime?: string | null;
|
|
389
410
|
/**
|
|
@@ -391,7 +412,7 @@ export declare namespace merchantapi_datasources_v1beta {
|
|
|
391
412
|
*/
|
|
392
413
|
managingAccount?: string | null;
|
|
393
414
|
/**
|
|
394
|
-
* The product name. Format: `
|
|
415
|
+
* The product name. Format: `accounts/{account\}/products/{product\}`
|
|
395
416
|
*/
|
|
396
417
|
resource?: string | null;
|
|
397
418
|
/**
|
|
@@ -609,7 +630,7 @@ export declare namespace merchantapi_datasources_v1beta {
|
|
|
609
630
|
}
|
|
610
631
|
export interface Params$Resource$Accounts$Datasources$Patch extends StandardParameters {
|
|
611
632
|
/**
|
|
612
|
-
* Identifier. The name of the data source. Format: `
|
|
633
|
+
* Required. Identifier. The name of the data source. Format: `accounts/{account\}/dataSources/{datasource\}`
|
|
613
634
|
*/
|
|
614
635
|
name?: string;
|
|
615
636
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"datasources_v1beta.js","sourceRoot":"","sources":["../datasources_v1beta.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,8BAA8B,
|
|
1
|
+
{"version":3,"file":"datasources_v1beta.js","sourceRoot":"","sources":["../datasources_v1beta.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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AI,OAAO,gBAAgB,KAAK,UAAU,EAAE;gBAC1C,QAAQ,GAAG,gBAAgB,CAAC;gBAC5B,MAAM,GAAG,EAA0D,CAAC;gBACpE,OAAO,GAAG,EAAE,CAAC;aACd;YAED,IAAI,OAAO,iBAAiB,KAAK,UAAU,EAAE;gBAC3C,QAAQ,GAAG,iBAAiB,CAAC;gBAC7B,OAAO,GAAG,EAAE,CAAC;aACd;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,6BAA6B,CAAC,CAAC,OAAO,CACpD,cAAc,EACd,IAAI,CACL;oBACD,MAAM,EAAE,KAAK;oBACb,UAAU,EAAE,EAAE;iBACf,EACD,OAAO,CACR;gBACD,MAAM;gBACN,cAAc,EAAE,CAAC,MAAM,CAAC;gBACxB,UAAU,EAAE,CAAC,MAAM,CAAC;gBACpB,OAAO,EAAE,IAAI,CAAC,OAAO;aACtB,CAAC;YACF,IAAI,QAAQ,EAAE;gBACZ,IAAA,oCAAgB,EACd,UAAU,EACV,QAAyC,CAC1C,CAAC;aACH;iBAAM;gBACL,OAAO,IAAA,oCAAgB,EAAoB,UAAU,CAAC,CAAC;aACxD;QACH,CAAC;KACF;IA7FY,wEAAyC,4CA6FrD,CAAA;AASH,CAAC,EA1sCgB,8BAA8B,GAA9B,sCAA8B,KAA9B,sCAA8B,QA0sC9C"}
|
|
@@ -203,19 +203,19 @@ export declare namespace merchantapi_inventories_v1beta {
|
|
|
203
203
|
*/
|
|
204
204
|
export interface Schema$ProductChange {
|
|
205
205
|
/**
|
|
206
|
-
* The new value of the changed resource or attribute.
|
|
206
|
+
* 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`, ``)
|
|
207
207
|
*/
|
|
208
208
|
newValue?: string | null;
|
|
209
209
|
/**
|
|
210
|
-
* The old value of the changed resource or attribute.
|
|
210
|
+
* 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`, ``)
|
|
211
211
|
*/
|
|
212
212
|
oldValue?: string | null;
|
|
213
213
|
/**
|
|
214
|
-
* Countries that have the change (if applicable)
|
|
214
|
+
* Countries that have the change (if applicable). Represented in the ISO 3166 format.
|
|
215
215
|
*/
|
|
216
216
|
regionCode?: string | null;
|
|
217
217
|
/**
|
|
218
|
-
* Reporting contexts that have the change (if applicable)
|
|
218
|
+
* 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)
|
|
219
219
|
*/
|
|
220
220
|
reportingContext?: string | null;
|
|
221
221
|
}
|
|
@@ -236,7 +236,11 @@ export declare namespace merchantapi_inventories_v1beta {
|
|
|
236
236
|
*/
|
|
237
237
|
changes?: Schema$ProductChange[];
|
|
238
238
|
/**
|
|
239
|
-
* The
|
|
239
|
+
* 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.
|
|
240
|
+
*/
|
|
241
|
+
eventTime?: string | null;
|
|
242
|
+
/**
|
|
243
|
+
* Optional. The product expiration time. This field will not bet set if the notification is sent for a product deletion event.
|
|
240
244
|
*/
|
|
241
245
|
expirationTime?: string | null;
|
|
242
246
|
/**
|
|
@@ -244,7 +248,7 @@ export declare namespace merchantapi_inventories_v1beta {
|
|
|
244
248
|
*/
|
|
245
249
|
managingAccount?: string | null;
|
|
246
250
|
/**
|
|
247
|
-
* The product name. Format: `
|
|
251
|
+
* The product name. Format: `accounts/{account\}/products/{product\}`
|
|
248
252
|
*/
|
|
249
253
|
resource?: string | null;
|
|
250
254
|
/**
|
|
@@ -265,7 +269,7 @@ export declare namespace merchantapi_inventories_v1beta {
|
|
|
265
269
|
*/
|
|
266
270
|
account?: string | null;
|
|
267
271
|
/**
|
|
268
|
-
* Availability of the product in this region. For accepted attribute values, see the [regional product inventory data specification](https://support.google.com/merchants/answer/
|
|
272
|
+
* Availability of the product in this region. For accepted attribute values, see the [regional product inventory data specification](https://support.google.com/merchants/answer/6324448).
|
|
269
273
|
*/
|
|
270
274
|
availability?: string | null;
|
|
271
275
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inventories_v1beta.js","sourceRoot":"","sources":["../inventories_v1beta.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,8BAA8B,
|
|
1
|
+
{"version":3,"file":"inventories_v1beta.js","sourceRoot":"","sources":["../inventories_v1beta.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,8BAA8B,CA48B9C;AA58BD,WAAiB,8BAA8B;IAgE7C;;;;;;;;;;OAUG;IACH,MAAa,WAAW;QAItB,YAAY,OAAsB,EAAE,MAA2B;YAC7D,IAAI,CAAC,OAAO,GAAG;gBACb,QAAQ,EAAE,OAAO,IAAI,EAAE;gBACvB,MAAM;aACP,CAAC;Y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AG,CAAC,gBAAgB;gBAC5B,EAAE,CAA+D,CAAC;YACpE,IAAI,OAAO,GAAG,CAAC,iBAAiB,IAAI,EAAE,CAAkB,CAAC;YAEzD,IAAI,OAAO,gBAAgB,KAAK,UAAU,EAAE;gBAC1C,QAAQ,GAAG,gBAAgB,CAAC;gBAC5B,MAAM;oBACJ,EAAgE,CAAC;gBACnE,OAAO,GAAG,EAAE,CAAC;aACd;YAED,IAAI,OAAO,iBAAiB,KAAK,UAAU,EAAE;gBAC3C,QAAQ,GAAG,iBAAiB,CAAC;gBAC7B,OAAO,GAAG,EAAE,CAAC;aACd;YAED,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,qCAAqC,CAAC;YACzE,MAAM,UAAU,GAAG;gBACjB,OAAO,EAAE,MAAM,CAAC,MAAM,CACpB;oBACE,GAAG,EAAE,CACH,OAAO,GAAG,mDAAmD,CAC9D,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBAC/B,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;gBACZ,IAAA,oCAAgB,EACd,UAAU,EACV,QAAyC,CAC1C,CAAC;aACH;iBAAM;gBACL,OAAO,IAAA,oCAAgB,EACrB,UAAU,CACX,CAAC;aACH;QACH,CAAC;KACF;IA3RY,6EAA8C,iDA2R1D,CAAA;AAoCH,CAAC,EA58BgB,8BAA8B,GAA9B,sCAA8B,KAA9B,sCAA8B,QA48B9C"}
|
package/build/lfp_v1beta.d.ts
CHANGED
|
@@ -71,11 +71,65 @@ export declare namespace merchantapi_lfp_v1beta {
|
|
|
71
71
|
accounts: Resource$Accounts;
|
|
72
72
|
constructor(options: GlobalOptions, google?: GoogleConfigurable);
|
|
73
73
|
}
|
|
74
|
+
/**
|
|
75
|
+
* Country-specific settings for the merchant.
|
|
76
|
+
*/
|
|
77
|
+
export interface Schema$CountrySettings {
|
|
78
|
+
/**
|
|
79
|
+
* True if this merchant has enabled free local listings in MC.
|
|
80
|
+
*/
|
|
81
|
+
freeLocalListingsEnabled?: boolean | null;
|
|
82
|
+
/**
|
|
83
|
+
* Output only. The verification state of this merchant's instock serving feature.
|
|
84
|
+
*/
|
|
85
|
+
instockServingVerificationState?: string | null;
|
|
86
|
+
/**
|
|
87
|
+
* Output only. The verification state of this merchant's inventory check.
|
|
88
|
+
*/
|
|
89
|
+
inventoryVerificationState?: string | null;
|
|
90
|
+
/**
|
|
91
|
+
* True if this merchant has enabled local inventory ads in MC.
|
|
92
|
+
*/
|
|
93
|
+
localInventoryAdsEnabled?: boolean | null;
|
|
94
|
+
/**
|
|
95
|
+
* Output only. The verification state of this merchant's pickup serving feature.
|
|
96
|
+
*/
|
|
97
|
+
pickupServingVerificationState?: string | null;
|
|
98
|
+
/**
|
|
99
|
+
* Output only. The product page type selected by this merchant.
|
|
100
|
+
*/
|
|
101
|
+
productPageType?: string | null;
|
|
102
|
+
/**
|
|
103
|
+
* Required. The [CLDR territory code](https://github.com/unicode-org/cldr/blob/latest/common/main/en.xml) for the country for which these settings are defined.
|
|
104
|
+
*/
|
|
105
|
+
regionCode?: string | null;
|
|
106
|
+
}
|
|
74
107
|
/**
|
|
75
108
|
* A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \}
|
|
76
109
|
*/
|
|
77
110
|
export interface Schema$Empty {
|
|
78
111
|
}
|
|
112
|
+
/**
|
|
113
|
+
* The inventory statistics for a merchant.
|
|
114
|
+
*/
|
|
115
|
+
export interface Schema$InventoryStats {
|
|
116
|
+
/**
|
|
117
|
+
* Number of entries (understanding entry as a pair of product and store) that were built based on provided inventories/sales and submitted to Google.
|
|
118
|
+
*/
|
|
119
|
+
submittedEntries?: string | null;
|
|
120
|
+
/**
|
|
121
|
+
* Number of submitted in stock entries.
|
|
122
|
+
*/
|
|
123
|
+
submittedInStockEntries?: string | null;
|
|
124
|
+
/**
|
|
125
|
+
* Number of products from provided inventories/sales that were created from matches to existing online products provided by the merchant or to the Google catalog.
|
|
126
|
+
*/
|
|
127
|
+
submittedProducts?: string | null;
|
|
128
|
+
/**
|
|
129
|
+
* Number of entries that were built based on provided inventories/sales and couldn't be submitted to Google due to errors like missing product.
|
|
130
|
+
*/
|
|
131
|
+
unsubmittedEntries?: string | null;
|
|
132
|
+
}
|
|
79
133
|
/**
|
|
80
134
|
* Local Inventory for the merchant.
|
|
81
135
|
*/
|
|
@@ -137,6 +191,31 @@ export declare namespace merchantapi_lfp_v1beta {
|
|
|
137
191
|
*/
|
|
138
192
|
targetAccount?: string | null;
|
|
139
193
|
}
|
|
194
|
+
/**
|
|
195
|
+
* The LFP state of a merchant.
|
|
196
|
+
*/
|
|
197
|
+
export interface Schema$LfpMerchantState {
|
|
198
|
+
/**
|
|
199
|
+
* Country-specific settings for the merchant.
|
|
200
|
+
*/
|
|
201
|
+
countrySettings?: Schema$CountrySettings[];
|
|
202
|
+
/**
|
|
203
|
+
* The inventory statistics for the merchant. The field will be absent if the merchant has no inventory submitted through LFP.
|
|
204
|
+
*/
|
|
205
|
+
inventoryStats?: Schema$InventoryStats;
|
|
206
|
+
/**
|
|
207
|
+
* Number of [GBPs](https://www.google.com/business/) this merchant has access to.
|
|
208
|
+
*/
|
|
209
|
+
linkedGbps?: string | null;
|
|
210
|
+
/**
|
|
211
|
+
* Identifier. The name of the `LfpMerchantState` resource. Format: `accounts/{account\}/lfpMerchantStates/{target_merchant\}`
|
|
212
|
+
*/
|
|
213
|
+
name?: string | null;
|
|
214
|
+
/**
|
|
215
|
+
* Output only. The state per store from the specified merchant. The field will be absent if the merchant has no stores submitted through LFP.
|
|
216
|
+
*/
|
|
217
|
+
storeStates?: Schema$LfpStoreState[];
|
|
218
|
+
}
|
|
140
219
|
/**
|
|
141
220
|
* A sale for the merchant.
|
|
142
221
|
*/
|
|
@@ -239,6 +318,23 @@ export declare namespace merchantapi_lfp_v1beta {
|
|
|
239
318
|
*/
|
|
240
319
|
websiteUri?: string | null;
|
|
241
320
|
}
|
|
321
|
+
/**
|
|
322
|
+
* The state of a specific merchant's store.
|
|
323
|
+
*/
|
|
324
|
+
export interface Schema$LfpStoreState {
|
|
325
|
+
/**
|
|
326
|
+
* Output only. The store matching state.
|
|
327
|
+
*/
|
|
328
|
+
matchingState?: string | null;
|
|
329
|
+
/**
|
|
330
|
+
* The hint of why the matching has failed (only set if matching_state is FAILED).
|
|
331
|
+
*/
|
|
332
|
+
matchingStateHint?: string | null;
|
|
333
|
+
/**
|
|
334
|
+
* Required. Immutable. The identifier of this store.
|
|
335
|
+
*/
|
|
336
|
+
storeCode?: string | null;
|
|
337
|
+
}
|
|
242
338
|
/**
|
|
243
339
|
* Response message for the ListLfpStores method.
|
|
244
340
|
*/
|
|
@@ -270,19 +366,19 @@ export declare namespace merchantapi_lfp_v1beta {
|
|
|
270
366
|
*/
|
|
271
367
|
export interface Schema$ProductChange {
|
|
272
368
|
/**
|
|
273
|
-
* The new value of the changed resource or attribute.
|
|
369
|
+
* 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`, ``)
|
|
274
370
|
*/
|
|
275
371
|
newValue?: string | null;
|
|
276
372
|
/**
|
|
277
|
-
* The old value of the changed resource or attribute.
|
|
373
|
+
* 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`, ``)
|
|
278
374
|
*/
|
|
279
375
|
oldValue?: string | null;
|
|
280
376
|
/**
|
|
281
|
-
* Countries that have the change (if applicable)
|
|
377
|
+
* Countries that have the change (if applicable). Represented in the ISO 3166 format.
|
|
282
378
|
*/
|
|
283
379
|
regionCode?: string | null;
|
|
284
380
|
/**
|
|
285
|
-
* Reporting contexts that have the change (if applicable)
|
|
381
|
+
* 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)
|
|
286
382
|
*/
|
|
287
383
|
reportingContext?: string | null;
|
|
288
384
|
}
|
|
@@ -303,7 +399,11 @@ export declare namespace merchantapi_lfp_v1beta {
|
|
|
303
399
|
*/
|
|
304
400
|
changes?: Schema$ProductChange[];
|
|
305
401
|
/**
|
|
306
|
-
* The
|
|
402
|
+
* 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.
|
|
403
|
+
*/
|
|
404
|
+
eventTime?: string | null;
|
|
405
|
+
/**
|
|
406
|
+
* Optional. The product expiration time. This field will not bet set if the notification is sent for a product deletion event.
|
|
307
407
|
*/
|
|
308
408
|
expirationTime?: string | null;
|
|
309
409
|
/**
|
|
@@ -311,7 +411,7 @@ export declare namespace merchantapi_lfp_v1beta {
|
|
|
311
411
|
*/
|
|
312
412
|
managingAccount?: string | null;
|
|
313
413
|
/**
|
|
314
|
-
* The product name. Format: `
|
|
414
|
+
* The product name. Format: `accounts/{account\}/products/{product\}`
|
|
315
415
|
*/
|
|
316
416
|
resource?: string | null;
|
|
317
417
|
/**
|
|
@@ -326,6 +426,7 @@ export declare namespace merchantapi_lfp_v1beta {
|
|
|
326
426
|
export class Resource$Accounts {
|
|
327
427
|
context: APIRequestContext;
|
|
328
428
|
lfpInventories: Resource$Accounts$Lfpinventories;
|
|
429
|
+
lfpMerchantStates: Resource$Accounts$Lfpmerchantstates;
|
|
329
430
|
lfpSales: Resource$Accounts$Lfpsales;
|
|
330
431
|
lfpStores: Resource$Accounts$Lfpstores;
|
|
331
432
|
constructor(context: APIRequestContext);
|
|
@@ -358,6 +459,30 @@ export declare namespace merchantapi_lfp_v1beta {
|
|
|
358
459
|
*/
|
|
359
460
|
requestBody?: Schema$LfpInventory;
|
|
360
461
|
}
|
|
462
|
+
export class Resource$Accounts$Lfpmerchantstates {
|
|
463
|
+
context: APIRequestContext;
|
|
464
|
+
constructor(context: APIRequestContext);
|
|
465
|
+
/**
|
|
466
|
+
* Gets the LFP state of a merchant
|
|
467
|
+
*
|
|
468
|
+
* @param params - Parameters for request
|
|
469
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
470
|
+
* @param callback - Optional callback that handles the response.
|
|
471
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
472
|
+
*/
|
|
473
|
+
get(params: Params$Resource$Accounts$Lfpmerchantstates$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
474
|
+
get(params?: Params$Resource$Accounts$Lfpmerchantstates$Get, options?: MethodOptions): GaxiosPromise<Schema$LfpMerchantState>;
|
|
475
|
+
get(params: Params$Resource$Accounts$Lfpmerchantstates$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
476
|
+
get(params: Params$Resource$Accounts$Lfpmerchantstates$Get, options: MethodOptions | BodyResponseCallback<Schema$LfpMerchantState>, callback: BodyResponseCallback<Schema$LfpMerchantState>): void;
|
|
477
|
+
get(params: Params$Resource$Accounts$Lfpmerchantstates$Get, callback: BodyResponseCallback<Schema$LfpMerchantState>): void;
|
|
478
|
+
get(callback: BodyResponseCallback<Schema$LfpMerchantState>): void;
|
|
479
|
+
}
|
|
480
|
+
export interface Params$Resource$Accounts$Lfpmerchantstates$Get extends StandardParameters {
|
|
481
|
+
/**
|
|
482
|
+
* Required. The name of the state to retrieve. Format: `accounts/{account\}/lfpMerchantStates/{target_merchant\}`
|
|
483
|
+
*/
|
|
484
|
+
name?: string;
|
|
485
|
+
}
|
|
361
486
|
export class Resource$Accounts$Lfpsales {
|
|
362
487
|
context: APIRequestContext;
|
|
363
488
|
constructor(context: APIRequestContext);
|