@google-shopping/reviews 0.5.1 → 0.6.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.
@@ -1,4 +1,4 @@
1
- // Copyright 2025 Google LLC
1
+ // Copyright 2026 Google LLC
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -79,7 +79,6 @@ message CustomAttribute {
79
79
  //
80
80
  // Destinations are used in Merchant Center to allow you to control where the
81
81
  // products from your data feed should be displayed.
82
- //
83
82
  message Destination {
84
83
  // Destination values.
85
84
  enum DestinationEnum {
@@ -105,6 +104,25 @@ message Destination {
105
104
 
106
105
  // [YouTube Shopping](https://support.google.com/merchants/answer/12362804).
107
106
  YOUTUBE_SHOPPING = 6;
107
+
108
+ // Youtube shopping checkout.
109
+ YOUTUBE_SHOPPING_CHECKOUT = 7;
110
+
111
+ // [Youtube Affiliate](https://support.google.com/youtube/answer/13376398).
112
+ YOUTUBE_AFFILIATE = 8;
113
+
114
+ // [Free vehicle
115
+ // listings](https://support.google.com/merchants/answer/11189169).
116
+ FREE_VEHICLE_LISTINGS = 9;
117
+
118
+ // [Vehicle ads](https://support.google.com/merchants/answer/11189169).
119
+ VEHICLE_ADS = 10;
120
+
121
+ // [Cloud retail](https://cloud.google.com/solutions/retail).
122
+ CLOUD_RETAIL = 11;
123
+
124
+ // [Local cloud retail](https://cloud.google.com/solutions/retail).
125
+ LOCAL_CLOUD_RETAIL = 12;
108
126
  }
109
127
  }
110
128
 
@@ -115,7 +133,6 @@ message Destination {
115
133
  // ads](https://support.google.com/merchants/answer/6149970)) or a subset of
116
134
  // formats within a destination (for example, [Demand Gen
117
135
  // ads](https://support.google.com/merchants/answer/13389785)).
118
- //
119
136
  message ReportingContext {
120
137
  // Reporting context values.
121
138
  enum ReportingContextEnum {
@@ -155,6 +172,10 @@ message ReportingContext {
155
172
  // listings](https://support.google.com/merchants/answer/9199328).
156
173
  FREE_LISTINGS = 7;
157
174
 
175
+ // [Free product listings on UCP
176
+ // checkout](https://developers.google.com/merchant/ucp).
177
+ FREE_LISTINGS_UCP_CHECKOUT = 19;
178
+
158
179
  // [Free local product
159
180
  // listings](https://support.google.com/merchants/answer/9825611).
160
181
  FREE_LOCAL_LISTINGS = 8;
@@ -163,6 +184,9 @@ message ReportingContext {
163
184
  // listings](https://support.google.com/merchants/answer/11544533).
164
185
  FREE_LOCAL_VEHICLE_LISTINGS = 9;
165
186
 
187
+ // [Youtube Affiliate](https://support.google.com/youtube/answer/13376398).
188
+ YOUTUBE_AFFILIATE = 18;
189
+
166
190
  // [YouTube
167
191
  // Shopping](https://support.google.com/merchants/answer/13478370).
168
192
  YOUTUBE_SHOPPING = 10;
@@ -172,6 +196,18 @@ message ReportingContext {
172
196
 
173
197
  // [Local cloud retail](https://cloud.google.com/solutions/retail).
174
198
  LOCAL_CLOUD_RETAIL = 12;
199
+
200
+ // [Product
201
+ // Reviews](https://support.google.com/merchants/answer/14620732).
202
+ PRODUCT_REVIEWS = 15;
203
+
204
+ // [Merchant
205
+ // Reviews](https://developers.google.com/merchant-review-feeds).
206
+ MERCHANT_REVIEWS = 16;
207
+
208
+ // YouTube Checkout
209
+ // .
210
+ YOUTUBE_CHECKOUT = 17;
175
211
  }
176
212
  }
177
213
 
@@ -1,4 +1,4 @@
1
- // Copyright 2025 Google LLC
1
+ // Copyright 2026 Google LLC
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -3287,7 +3287,13 @@ export namespace google {
3287
3287
  LOCAL_INVENTORY_ADS = 3,
3288
3288
  FREE_LISTINGS = 4,
3289
3289
  FREE_LOCAL_LISTINGS = 5,
3290
- YOUTUBE_SHOPPING = 6
3290
+ YOUTUBE_SHOPPING = 6,
3291
+ YOUTUBE_SHOPPING_CHECKOUT = 7,
3292
+ YOUTUBE_AFFILIATE = 8,
3293
+ FREE_VEHICLE_LISTINGS = 9,
3294
+ VEHICLE_ADS = 10,
3295
+ CLOUD_RETAIL = 11,
3296
+ LOCAL_CLOUD_RETAIL = 12
3291
3297
  }
3292
3298
  }
3293
3299
 
@@ -3396,11 +3402,16 @@ export namespace google {
3396
3402
  LOCAL_INVENTORY_ADS = 5,
3397
3403
  VEHICLE_INVENTORY_ADS = 6,
3398
3404
  FREE_LISTINGS = 7,
3405
+ FREE_LISTINGS_UCP_CHECKOUT = 19,
3399
3406
  FREE_LOCAL_LISTINGS = 8,
3400
3407
  FREE_LOCAL_VEHICLE_LISTINGS = 9,
3408
+ YOUTUBE_AFFILIATE = 18,
3401
3409
  YOUTUBE_SHOPPING = 10,
3402
3410
  CLOUD_RETAIL = 11,
3403
- LOCAL_CLOUD_RETAIL = 12
3411
+ LOCAL_CLOUD_RETAIL = 12,
3412
+ PRODUCT_REVIEWS = 15,
3413
+ MERCHANT_REVIEWS = 16,
3414
+ YOUTUBE_CHECKOUT = 17
3404
3415
  }
3405
3416
  }
3406
3417
 
@@ -1,4 +1,4 @@
1
- // Copyright 2025 Google LLC
1
+ // Copyright 2026 Google LLC
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -3023,11 +3023,16 @@
3023
3023
  case 5:
3024
3024
  case 6:
3025
3025
  case 7:
3026
+ case 19:
3026
3027
  case 8:
3027
3028
  case 9:
3029
+ case 18:
3028
3030
  case 10:
3029
3031
  case 11:
3030
3032
  case 12:
3033
+ case 15:
3034
+ case 16:
3035
+ case 17:
3031
3036
  break;
3032
3037
  }
3033
3038
  return null;
@@ -3092,6 +3097,10 @@
3092
3097
  case 7:
3093
3098
  message.reportingContext = 7;
3094
3099
  break;
3100
+ case "FREE_LISTINGS_UCP_CHECKOUT":
3101
+ case 19:
3102
+ message.reportingContext = 19;
3103
+ break;
3095
3104
  case "FREE_LOCAL_LISTINGS":
3096
3105
  case 8:
3097
3106
  message.reportingContext = 8;
@@ -3100,6 +3109,10 @@
3100
3109
  case 9:
3101
3110
  message.reportingContext = 9;
3102
3111
  break;
3112
+ case "YOUTUBE_AFFILIATE":
3113
+ case 18:
3114
+ message.reportingContext = 18;
3115
+ break;
3103
3116
  case "YOUTUBE_SHOPPING":
3104
3117
  case 10:
3105
3118
  message.reportingContext = 10;
@@ -3112,6 +3125,18 @@
3112
3125
  case 12:
3113
3126
  message.reportingContext = 12;
3114
3127
  break;
3128
+ case "PRODUCT_REVIEWS":
3129
+ case 15:
3130
+ message.reportingContext = 15;
3131
+ break;
3132
+ case "MERCHANT_REVIEWS":
3133
+ case 16:
3134
+ message.reportingContext = 16;
3135
+ break;
3136
+ case "YOUTUBE_CHECKOUT":
3137
+ case 17:
3138
+ message.reportingContext = 17;
3139
+ break;
3115
3140
  }
3116
3141
  return message;
3117
3142
  };
@@ -3435,11 +3460,16 @@
3435
3460
  case 5:
3436
3461
  case 6:
3437
3462
  case 7:
3463
+ case 19:
3438
3464
  case 8:
3439
3465
  case 9:
3466
+ case 18:
3440
3467
  case 10:
3441
3468
  case 11:
3442
3469
  case 12:
3470
+ case 15:
3471
+ case 16:
3472
+ case 17:
3443
3473
  break;
3444
3474
  }
3445
3475
  if (message.description != null && message.hasOwnProperty("description"))
@@ -3539,6 +3569,10 @@
3539
3569
  case 7:
3540
3570
  message.reportingContext = 7;
3541
3571
  break;
3572
+ case "FREE_LISTINGS_UCP_CHECKOUT":
3573
+ case 19:
3574
+ message.reportingContext = 19;
3575
+ break;
3542
3576
  case "FREE_LOCAL_LISTINGS":
3543
3577
  case 8:
3544
3578
  message.reportingContext = 8;
@@ -3547,6 +3581,10 @@
3547
3581
  case 9:
3548
3582
  message.reportingContext = 9;
3549
3583
  break;
3584
+ case "YOUTUBE_AFFILIATE":
3585
+ case 18:
3586
+ message.reportingContext = 18;
3587
+ break;
3550
3588
  case "YOUTUBE_SHOPPING":
3551
3589
  case 10:
3552
3590
  message.reportingContext = 10;
@@ -3559,6 +3597,18 @@
3559
3597
  case 12:
3560
3598
  message.reportingContext = 12;
3561
3599
  break;
3600
+ case "PRODUCT_REVIEWS":
3601
+ case 15:
3602
+ message.reportingContext = 15;
3603
+ break;
3604
+ case "MERCHANT_REVIEWS":
3605
+ case 16:
3606
+ message.reportingContext = 16;
3607
+ break;
3608
+ case "YOUTUBE_CHECKOUT":
3609
+ case 17:
3610
+ message.reportingContext = 17;
3611
+ break;
3562
3612
  }
3563
3613
  if (object.description != null)
3564
3614
  message.description = String(object.description);
@@ -7392,11 +7442,16 @@
7392
7442
  case 5:
7393
7443
  case 6:
7394
7444
  case 7:
7445
+ case 19:
7395
7446
  case 8:
7396
7447
  case 9:
7448
+ case 18:
7397
7449
  case 10:
7398
7450
  case 11:
7399
7451
  case 12:
7452
+ case 15:
7453
+ case 16:
7454
+ case 17:
7400
7455
  break;
7401
7456
  }
7402
7457
  return null;
@@ -7461,6 +7516,10 @@
7461
7516
  case 7:
7462
7517
  message.reportingContext = 7;
7463
7518
  break;
7519
+ case "FREE_LISTINGS_UCP_CHECKOUT":
7520
+ case 19:
7521
+ message.reportingContext = 19;
7522
+ break;
7464
7523
  case "FREE_LOCAL_LISTINGS":
7465
7524
  case 8:
7466
7525
  message.reportingContext = 8;
@@ -7469,6 +7528,10 @@
7469
7528
  case 9:
7470
7529
  message.reportingContext = 9;
7471
7530
  break;
7531
+ case "YOUTUBE_AFFILIATE":
7532
+ case 18:
7533
+ message.reportingContext = 18;
7534
+ break;
7472
7535
  case "YOUTUBE_SHOPPING":
7473
7536
  case 10:
7474
7537
  message.reportingContext = 10;
@@ -7481,6 +7544,18 @@
7481
7544
  case 12:
7482
7545
  message.reportingContext = 12;
7483
7546
  break;
7547
+ case "PRODUCT_REVIEWS":
7548
+ case 15:
7549
+ message.reportingContext = 15;
7550
+ break;
7551
+ case "MERCHANT_REVIEWS":
7552
+ case 16:
7553
+ message.reportingContext = 16;
7554
+ break;
7555
+ case "YOUTUBE_CHECKOUT":
7556
+ case 17:
7557
+ message.reportingContext = 17;
7558
+ break;
7484
7559
  }
7485
7560
  return message;
7486
7561
  };
@@ -7804,11 +7879,16 @@
7804
7879
  case 5:
7805
7880
  case 6:
7806
7881
  case 7:
7882
+ case 19:
7807
7883
  case 8:
7808
7884
  case 9:
7885
+ case 18:
7809
7886
  case 10:
7810
7887
  case 11:
7811
7888
  case 12:
7889
+ case 15:
7890
+ case 16:
7891
+ case 17:
7812
7892
  break;
7813
7893
  }
7814
7894
  if (message.description != null && message.hasOwnProperty("description"))
@@ -7908,6 +7988,10 @@
7908
7988
  case 7:
7909
7989
  message.reportingContext = 7;
7910
7990
  break;
7991
+ case "FREE_LISTINGS_UCP_CHECKOUT":
7992
+ case 19:
7993
+ message.reportingContext = 19;
7994
+ break;
7911
7995
  case "FREE_LOCAL_LISTINGS":
7912
7996
  case 8:
7913
7997
  message.reportingContext = 8;
@@ -7916,6 +8000,10 @@
7916
8000
  case 9:
7917
8001
  message.reportingContext = 9;
7918
8002
  break;
8003
+ case "YOUTUBE_AFFILIATE":
8004
+ case 18:
8005
+ message.reportingContext = 18;
8006
+ break;
7919
8007
  case "YOUTUBE_SHOPPING":
7920
8008
  case 10:
7921
8009
  message.reportingContext = 10;
@@ -7928,6 +8016,18 @@
7928
8016
  case 12:
7929
8017
  message.reportingContext = 12;
7930
8018
  break;
8019
+ case "PRODUCT_REVIEWS":
8020
+ case 15:
8021
+ message.reportingContext = 15;
8022
+ break;
8023
+ case "MERCHANT_REVIEWS":
8024
+ case 16:
8025
+ message.reportingContext = 16;
8026
+ break;
8027
+ case "YOUTUBE_CHECKOUT":
8028
+ case 17:
8029
+ message.reportingContext = 17;
8030
+ break;
7931
8031
  }
7932
8032
  if (object.description != null)
7933
8033
  message.description = String(object.description);
@@ -9080,6 +9180,12 @@
9080
9180
  * @property {number} FREE_LISTINGS=4 FREE_LISTINGS value
9081
9181
  * @property {number} FREE_LOCAL_LISTINGS=5 FREE_LOCAL_LISTINGS value
9082
9182
  * @property {number} YOUTUBE_SHOPPING=6 YOUTUBE_SHOPPING value
9183
+ * @property {number} YOUTUBE_SHOPPING_CHECKOUT=7 YOUTUBE_SHOPPING_CHECKOUT value
9184
+ * @property {number} YOUTUBE_AFFILIATE=8 YOUTUBE_AFFILIATE value
9185
+ * @property {number} FREE_VEHICLE_LISTINGS=9 FREE_VEHICLE_LISTINGS value
9186
+ * @property {number} VEHICLE_ADS=10 VEHICLE_ADS value
9187
+ * @property {number} CLOUD_RETAIL=11 CLOUD_RETAIL value
9188
+ * @property {number} LOCAL_CLOUD_RETAIL=12 LOCAL_CLOUD_RETAIL value
9083
9189
  */
9084
9190
  Destination.DestinationEnum = (function() {
9085
9191
  var valuesById = {}, values = Object.create(valuesById);
@@ -9090,6 +9196,12 @@
9090
9196
  values[valuesById[4] = "FREE_LISTINGS"] = 4;
9091
9197
  values[valuesById[5] = "FREE_LOCAL_LISTINGS"] = 5;
9092
9198
  values[valuesById[6] = "YOUTUBE_SHOPPING"] = 6;
9199
+ values[valuesById[7] = "YOUTUBE_SHOPPING_CHECKOUT"] = 7;
9200
+ values[valuesById[8] = "YOUTUBE_AFFILIATE"] = 8;
9201
+ values[valuesById[9] = "FREE_VEHICLE_LISTINGS"] = 9;
9202
+ values[valuesById[10] = "VEHICLE_ADS"] = 10;
9203
+ values[valuesById[11] = "CLOUD_RETAIL"] = 11;
9204
+ values[valuesById[12] = "LOCAL_CLOUD_RETAIL"] = 12;
9093
9205
  return values;
9094
9206
  })();
9095
9207
 
@@ -9284,11 +9396,16 @@
9284
9396
  * @property {number} LOCAL_INVENTORY_ADS=5 LOCAL_INVENTORY_ADS value
9285
9397
  * @property {number} VEHICLE_INVENTORY_ADS=6 VEHICLE_INVENTORY_ADS value
9286
9398
  * @property {number} FREE_LISTINGS=7 FREE_LISTINGS value
9399
+ * @property {number} FREE_LISTINGS_UCP_CHECKOUT=19 FREE_LISTINGS_UCP_CHECKOUT value
9287
9400
  * @property {number} FREE_LOCAL_LISTINGS=8 FREE_LOCAL_LISTINGS value
9288
9401
  * @property {number} FREE_LOCAL_VEHICLE_LISTINGS=9 FREE_LOCAL_VEHICLE_LISTINGS value
9402
+ * @property {number} YOUTUBE_AFFILIATE=18 YOUTUBE_AFFILIATE value
9289
9403
  * @property {number} YOUTUBE_SHOPPING=10 YOUTUBE_SHOPPING value
9290
9404
  * @property {number} CLOUD_RETAIL=11 CLOUD_RETAIL value
9291
9405
  * @property {number} LOCAL_CLOUD_RETAIL=12 LOCAL_CLOUD_RETAIL value
9406
+ * @property {number} PRODUCT_REVIEWS=15 PRODUCT_REVIEWS value
9407
+ * @property {number} MERCHANT_REVIEWS=16 MERCHANT_REVIEWS value
9408
+ * @property {number} YOUTUBE_CHECKOUT=17 YOUTUBE_CHECKOUT value
9292
9409
  */
9293
9410
  ReportingContext.ReportingContextEnum = (function() {
9294
9411
  var valuesById = {}, values = Object.create(valuesById);
@@ -9302,11 +9419,16 @@
9302
9419
  values[valuesById[5] = "LOCAL_INVENTORY_ADS"] = 5;
9303
9420
  values[valuesById[6] = "VEHICLE_INVENTORY_ADS"] = 6;
9304
9421
  values[valuesById[7] = "FREE_LISTINGS"] = 7;
9422
+ values[valuesById[19] = "FREE_LISTINGS_UCP_CHECKOUT"] = 19;
9305
9423
  values[valuesById[8] = "FREE_LOCAL_LISTINGS"] = 8;
9306
9424
  values[valuesById[9] = "FREE_LOCAL_VEHICLE_LISTINGS"] = 9;
9425
+ values[valuesById[18] = "YOUTUBE_AFFILIATE"] = 18;
9307
9426
  values[valuesById[10] = "YOUTUBE_SHOPPING"] = 10;
9308
9427
  values[valuesById[11] = "CLOUD_RETAIL"] = 11;
9309
9428
  values[valuesById[12] = "LOCAL_CLOUD_RETAIL"] = 12;
9429
+ values[valuesById[15] = "PRODUCT_REVIEWS"] = 15;
9430
+ values[valuesById[16] = "MERCHANT_REVIEWS"] = 16;
9431
+ values[valuesById[17] = "YOUTUBE_CHECKOUT"] = 17;
9310
9432
  return values;
9311
9433
  })();
9312
9434
 
@@ -1408,7 +1408,13 @@
1408
1408
  "LOCAL_INVENTORY_ADS": 3,
1409
1409
  "FREE_LISTINGS": 4,
1410
1410
  "FREE_LOCAL_LISTINGS": 5,
1411
- "YOUTUBE_SHOPPING": 6
1411
+ "YOUTUBE_SHOPPING": 6,
1412
+ "YOUTUBE_SHOPPING_CHECKOUT": 7,
1413
+ "YOUTUBE_AFFILIATE": 8,
1414
+ "FREE_VEHICLE_LISTINGS": 9,
1415
+ "VEHICLE_ADS": 10,
1416
+ "CLOUD_RETAIL": 11,
1417
+ "LOCAL_CLOUD_RETAIL": 12
1412
1418
  }
1413
1419
  }
1414
1420
  }
@@ -1433,11 +1439,16 @@
1433
1439
  "LOCAL_INVENTORY_ADS": 5,
1434
1440
  "VEHICLE_INVENTORY_ADS": 6,
1435
1441
  "FREE_LISTINGS": 7,
1442
+ "FREE_LISTINGS_UCP_CHECKOUT": 19,
1436
1443
  "FREE_LOCAL_LISTINGS": 8,
1437
1444
  "FREE_LOCAL_VEHICLE_LISTINGS": 9,
1445
+ "YOUTUBE_AFFILIATE": 18,
1438
1446
  "YOUTUBE_SHOPPING": 10,
1439
1447
  "CLOUD_RETAIL": 11,
1440
- "LOCAL_CLOUD_RETAIL": 12
1448
+ "LOCAL_CLOUD_RETAIL": 12,
1449
+ "PRODUCT_REVIEWS": 15,
1450
+ "MERCHANT_REVIEWS": 16,
1451
+ "YOUTUBE_CHECKOUT": 17
1441
1452
  }
1442
1453
  }
1443
1454
  }
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright 2025 Google LLC
2
+ // Copyright 2026 Google LLC
3
3
  //
4
4
  // Licensed under the Apache License, Version 2.0 (the "License");
5
5
  // you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright 2025 Google LLC
2
+ // Copyright 2026 Google LLC
3
3
  //
4
4
  // Licensed under the Apache License, Version 2.0 (the "License");
5
5
  // you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright 2025 Google LLC
2
+ // Copyright 2026 Google LLC
3
3
  //
4
4
  // Licensed under the Apache License, Version 2.0 (the "License");
5
5
  // you may not use this file except in compliance with the License.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@google-shopping/reviews",
3
- "version": "0.5.1",
3
+ "version": "0.6.0",
4
4
  "description": "Merchant API client for Node.js",
5
5
  "repository": {
6
6
  "type": "git",