@google-shopping/reviews 0.2.1 → 0.4.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.
@@ -1545,6 +1545,11 @@
1545
1545
  "id": 1050,
1546
1546
  "extend": "google.protobuf.ServiceOptions"
1547
1547
  },
1548
+ "apiVersion": {
1549
+ "type": "string",
1550
+ "id": 525000001,
1551
+ "extend": "google.protobuf.ServiceOptions"
1552
+ },
1548
1553
  "CommonLanguageSettings": {
1549
1554
  "fields": {
1550
1555
  "referenceDocsUri": {
@@ -1653,6 +1658,10 @@
1653
1658
  "protoReferenceDocumentationUri": {
1654
1659
  "type": "string",
1655
1660
  "id": 110
1661
+ },
1662
+ "restReferenceDocumentationUri": {
1663
+ "type": "string",
1664
+ "id": 111
1656
1665
  }
1657
1666
  }
1658
1667
  },
@@ -1828,7 +1837,10 @@
1828
1837
  "rule": "repeated",
1829
1838
  "type": "google.api.FieldBehavior",
1830
1839
  "id": 1052,
1831
- "extend": "google.protobuf.FieldOptions"
1840
+ "extend": "google.protobuf.FieldOptions",
1841
+ "options": {
1842
+ "packed": false
1843
+ }
1832
1844
  },
1833
1845
  "FieldBehavior": {
1834
1846
  "values": {
@@ -1934,6 +1946,7 @@
1934
1946
  },
1935
1947
  "nested": {
1936
1948
  "FileDescriptorSet": {
1949
+ "edition": "proto2",
1937
1950
  "fields": {
1938
1951
  "file": {
1939
1952
  "rule": "repeated",
@@ -1943,6 +1956,7 @@
1943
1956
  }
1944
1957
  },
1945
1958
  "Edition": {
1959
+ "edition": "proto2",
1946
1960
  "values": {
1947
1961
  "EDITION_UNKNOWN": 0,
1948
1962
  "EDITION_PROTO2": 998,
@@ -1958,6 +1972,7 @@
1958
1972
  }
1959
1973
  },
1960
1974
  "FileDescriptorProto": {
1975
+ "edition": "proto2",
1961
1976
  "fields": {
1962
1977
  "name": {
1963
1978
  "type": "string",
@@ -1975,18 +1990,12 @@
1975
1990
  "publicDependency": {
1976
1991
  "rule": "repeated",
1977
1992
  "type": "int32",
1978
- "id": 10,
1979
- "options": {
1980
- "packed": false
1981
- }
1993
+ "id": 10
1982
1994
  },
1983
1995
  "weakDependency": {
1984
1996
  "rule": "repeated",
1985
1997
  "type": "int32",
1986
- "id": 11,
1987
- "options": {
1988
- "packed": false
1989
- }
1998
+ "id": 11
1990
1999
  },
1991
2000
  "messageType": {
1992
2001
  "rule": "repeated",
@@ -2027,6 +2036,7 @@
2027
2036
  }
2028
2037
  },
2029
2038
  "DescriptorProto": {
2039
+ "edition": "proto2",
2030
2040
  "fields": {
2031
2041
  "name": {
2032
2042
  "type": "string",
@@ -2109,6 +2119,7 @@
2109
2119
  }
2110
2120
  },
2111
2121
  "ExtensionRangeOptions": {
2122
+ "edition": "proto2",
2112
2123
  "fields": {
2113
2124
  "uninterpretedOption": {
2114
2125
  "rule": "repeated",
@@ -2182,6 +2193,7 @@
2182
2193
  }
2183
2194
  },
2184
2195
  "FieldDescriptorProto": {
2196
+ "edition": "proto2",
2185
2197
  "fields": {
2186
2198
  "name": {
2187
2199
  "type": "string",
@@ -2261,6 +2273,7 @@
2261
2273
  }
2262
2274
  },
2263
2275
  "OneofDescriptorProto": {
2276
+ "edition": "proto2",
2264
2277
  "fields": {
2265
2278
  "name": {
2266
2279
  "type": "string",
@@ -2273,6 +2286,7 @@
2273
2286
  }
2274
2287
  },
2275
2288
  "EnumDescriptorProto": {
2289
+ "edition": "proto2",
2276
2290
  "fields": {
2277
2291
  "name": {
2278
2292
  "type": "string",
@@ -2314,6 +2328,7 @@
2314
2328
  }
2315
2329
  },
2316
2330
  "EnumValueDescriptorProto": {
2331
+ "edition": "proto2",
2317
2332
  "fields": {
2318
2333
  "name": {
2319
2334
  "type": "string",
@@ -2330,6 +2345,7 @@
2330
2345
  }
2331
2346
  },
2332
2347
  "ServiceDescriptorProto": {
2348
+ "edition": "proto2",
2333
2349
  "fields": {
2334
2350
  "name": {
2335
2351
  "type": "string",
@@ -2347,6 +2363,7 @@
2347
2363
  }
2348
2364
  },
2349
2365
  "MethodDescriptorProto": {
2366
+ "edition": "proto2",
2350
2367
  "fields": {
2351
2368
  "name": {
2352
2369
  "type": "string",
@@ -2381,6 +2398,7 @@
2381
2398
  }
2382
2399
  },
2383
2400
  "FileOptions": {
2401
+ "edition": "proto2",
2384
2402
  "fields": {
2385
2403
  "javaPackage": {
2386
2404
  "type": "string",
@@ -2522,6 +2540,7 @@
2522
2540
  }
2523
2541
  },
2524
2542
  "MessageOptions": {
2543
+ "edition": "proto2",
2525
2544
  "fields": {
2526
2545
  "messageSetWireFormat": {
2527
2546
  "type": "bool",
@@ -2595,6 +2614,7 @@
2595
2614
  ]
2596
2615
  },
2597
2616
  "FieldOptions": {
2617
+ "edition": "proto2",
2598
2618
  "fields": {
2599
2619
  "ctype": {
2600
2620
  "type": "CType",
@@ -2656,10 +2676,7 @@
2656
2676
  "targets": {
2657
2677
  "rule": "repeated",
2658
2678
  "type": "OptionTargetType",
2659
- "id": 19,
2660
- "options": {
2661
- "packed": false
2662
- }
2679
+ "id": 19
2663
2680
  },
2664
2681
  "editionDefaults": {
2665
2682
  "rule": "repeated",
@@ -2743,6 +2760,7 @@
2743
2760
  }
2744
2761
  },
2745
2762
  "OneofOptions": {
2763
+ "edition": "proto2",
2746
2764
  "fields": {
2747
2765
  "features": {
2748
2766
  "type": "FeatureSet",
@@ -2762,6 +2780,7 @@
2762
2780
  ]
2763
2781
  },
2764
2782
  "EnumOptions": {
2783
+ "edition": "proto2",
2765
2784
  "fields": {
2766
2785
  "allowAlias": {
2767
2786
  "type": "bool",
@@ -2805,6 +2824,7 @@
2805
2824
  ]
2806
2825
  },
2807
2826
  "EnumValueOptions": {
2827
+ "edition": "proto2",
2808
2828
  "fields": {
2809
2829
  "deprecated": {
2810
2830
  "type": "bool",
@@ -2838,6 +2858,7 @@
2838
2858
  ]
2839
2859
  },
2840
2860
  "ServiceOptions": {
2861
+ "edition": "proto2",
2841
2862
  "fields": {
2842
2863
  "features": {
2843
2864
  "type": "FeatureSet",
@@ -2864,6 +2885,7 @@
2864
2885
  ]
2865
2886
  },
2866
2887
  "MethodOptions": {
2888
+ "edition": "proto2",
2867
2889
  "fields": {
2868
2890
  "deprecated": {
2869
2891
  "type": "bool",
@@ -2906,6 +2928,7 @@
2906
2928
  }
2907
2929
  },
2908
2930
  "UninterpretedOption": {
2931
+ "edition": "proto2",
2909
2932
  "fields": {
2910
2933
  "name": {
2911
2934
  "rule": "repeated",
@@ -2955,6 +2978,7 @@
2955
2978
  }
2956
2979
  },
2957
2980
  "FeatureSet": {
2981
+ "edition": "proto2",
2958
2982
  "fields": {
2959
2983
  "fieldPresence": {
2960
2984
  "type": "FieldPresence",
@@ -3026,9 +3050,21 @@
3026
3050
  1001,
3027
3051
  1001
3028
3052
  ],
3053
+ [
3054
+ 1002,
3055
+ 1002
3056
+ ],
3057
+ [
3058
+ 9990,
3059
+ 9990
3060
+ ],
3029
3061
  [
3030
3062
  9995,
3031
3063
  9999
3064
+ ],
3065
+ [
3066
+ 10000,
3067
+ 10000
3032
3068
  ]
3033
3069
  ],
3034
3070
  "reserved": [
@@ -3084,6 +3120,7 @@
3084
3120
  }
3085
3121
  },
3086
3122
  "FeatureSetDefaults": {
3123
+ "edition": "proto2",
3087
3124
  "fields": {
3088
3125
  "defaults": {
3089
3126
  "rule": "repeated",
@@ -3115,6 +3152,7 @@
3115
3152
  }
3116
3153
  },
3117
3154
  "SourceCodeInfo": {
3155
+ "edition": "proto2",
3118
3156
  "fields": {
3119
3157
  "location": {
3120
3158
  "rule": "repeated",
@@ -3128,12 +3166,18 @@
3128
3166
  "path": {
3129
3167
  "rule": "repeated",
3130
3168
  "type": "int32",
3131
- "id": 1
3169
+ "id": 1,
3170
+ "options": {
3171
+ "packed": true
3172
+ }
3132
3173
  },
3133
3174
  "span": {
3134
3175
  "rule": "repeated",
3135
3176
  "type": "int32",
3136
- "id": 2
3177
+ "id": 2,
3178
+ "options": {
3179
+ "packed": true
3180
+ }
3137
3181
  },
3138
3182
  "leadingComments": {
3139
3183
  "type": "string",
@@ -3153,6 +3197,7 @@
3153
3197
  }
3154
3198
  },
3155
3199
  "GeneratedCodeInfo": {
3200
+ "edition": "proto2",
3156
3201
  "fields": {
3157
3202
  "annotation": {
3158
3203
  "rule": "repeated",
@@ -3166,7 +3211,10 @@
3166
3211
  "path": {
3167
3212
  "rule": "repeated",
3168
3213
  "type": "int32",
3169
- "id": 1
3214
+ "id": 1,
3215
+ "options": {
3216
+ "packed": true
3217
+ }
3170
3218
  },
3171
3219
  "sourceFile": {
3172
3220
  "type": "string",
@@ -24,11 +24,7 @@ const MerchantReviewsServiceClient = v1beta.MerchantReviewsServiceClient;
24
24
  exports.MerchantReviewsServiceClient = MerchantReviewsServiceClient;
25
25
  const ProductReviewsServiceClient = v1beta.ProductReviewsServiceClient;
26
26
  exports.ProductReviewsServiceClient = ProductReviewsServiceClient;
27
- exports.default = {
28
- v1beta,
29
- MerchantReviewsServiceClient,
30
- ProductReviewsServiceClient,
31
- };
27
+ exports.default = { v1beta, MerchantReviewsServiceClient, ProductReviewsServiceClient };
32
28
  const protos = require("../protos/protos");
33
29
  exports.protos = protos;
34
30
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,kDAAkD;AAClD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AACjC,EAAE;AACF,2DAA2D;AAC3D,gDAAgD;AAChD,qDAAqD;;;AAErD,mCAAmC;AAO3B,wBAAM;AALd,MAAM,4BAA4B,GAAG,MAAM,CAAC,4BAA4B,CAAC;AAKzD,oEAA4B;AAH5C,MAAM,2BAA2B,GAAG,MAAM,CAAC,2BAA2B,CAAC;AAGzB,kEAA2B;AACzE,kBAAe;IACb,MAAM;IACN,4BAA4B;IAC5B,2BAA2B;CAC5B,CAAC;AACF,2CAA2C;AACnC,wBAAM"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,kDAAkD;AAClD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AACjC,EAAE;AACF,2DAA2D;AAC3D,gDAAgD;AAChD,qDAAqD;;;AAErD,mCAAmC;AAO3B,wBAAM;AALd,MAAM,4BAA4B,GAAG,MAAM,CAAC,4BAA4B,CAAC;AAKzD,oEAA4B;AAH5C,MAAM,2BAA2B,GAAG,MAAM,CAAC,2BAA2B,CAAC;AAGzB,kEAA2B;AACzE,kBAAe,EAAC,MAAM,EAAE,4BAA4B,EAAE,2BAA2B,EAAC,CAAC;AACnF,2CAA2C;AACnC,wBAAM"}
@@ -134,7 +134,7 @@ export declare class MerchantReviewsServiceClient {
134
134
  */
135
135
  getMerchantReview(request?: protos.google.shopping.merchant.reviews.v1beta.IGetMerchantReviewRequest, options?: CallOptions): Promise<[
136
136
  protos.google.shopping.merchant.reviews.v1beta.IMerchantReview,
137
- (protos.google.shopping.merchant.reviews.v1beta.IGetMerchantReviewRequest | undefined),
137
+ protos.google.shopping.merchant.reviews.v1beta.IGetMerchantReviewRequest | undefined,
138
138
  {} | undefined
139
139
  ]>;
140
140
  getMerchantReview(request: protos.google.shopping.merchant.reviews.v1beta.IGetMerchantReviewRequest, options: CallOptions, callback: Callback<protos.google.shopping.merchant.reviews.v1beta.IMerchantReview, protos.google.shopping.merchant.reviews.v1beta.IGetMerchantReviewRequest | null | undefined, {} | null | undefined>): void;
@@ -166,7 +166,7 @@ export declare class MerchantReviewsServiceClient {
166
166
  */
167
167
  insertMerchantReview(request?: protos.google.shopping.merchant.reviews.v1beta.IInsertMerchantReviewRequest, options?: CallOptions): Promise<[
168
168
  protos.google.shopping.merchant.reviews.v1beta.IMerchantReview,
169
- (protos.google.shopping.merchant.reviews.v1beta.IInsertMerchantReviewRequest | undefined),
169
+ protos.google.shopping.merchant.reviews.v1beta.IInsertMerchantReviewRequest | undefined,
170
170
  {} | undefined
171
171
  ]>;
172
172
  insertMerchantReview(request: protos.google.shopping.merchant.reviews.v1beta.IInsertMerchantReviewRequest, options: CallOptions, callback: Callback<protos.google.shopping.merchant.reviews.v1beta.IMerchantReview, protos.google.shopping.merchant.reviews.v1beta.IInsertMerchantReviewRequest | null | undefined, {} | null | undefined>): void;
@@ -190,42 +190,42 @@ export declare class MerchantReviewsServiceClient {
190
190
  */
191
191
  deleteMerchantReview(request?: protos.google.shopping.merchant.reviews.v1beta.IDeleteMerchantReviewRequest, options?: CallOptions): Promise<[
192
192
  protos.google.protobuf.IEmpty,
193
- (protos.google.shopping.merchant.reviews.v1beta.IDeleteMerchantReviewRequest | undefined),
193
+ protos.google.shopping.merchant.reviews.v1beta.IDeleteMerchantReviewRequest | undefined,
194
194
  {} | undefined
195
195
  ]>;
196
196
  deleteMerchantReview(request: protos.google.shopping.merchant.reviews.v1beta.IDeleteMerchantReviewRequest, options: CallOptions, callback: Callback<protos.google.protobuf.IEmpty, protos.google.shopping.merchant.reviews.v1beta.IDeleteMerchantReviewRequest | null | undefined, {} | null | undefined>): void;
197
197
  deleteMerchantReview(request: protos.google.shopping.merchant.reviews.v1beta.IDeleteMerchantReviewRequest, callback: Callback<protos.google.protobuf.IEmpty, protos.google.shopping.merchant.reviews.v1beta.IDeleteMerchantReviewRequest | null | undefined, {} | null | undefined>): void;
198
198
  /**
199
- * Lists merchant reviews.
200
- *
201
- * @param {Object} request
202
- * The request object that will be sent.
203
- * @param {string} request.parent
204
- * Required. The account to list merchant reviews for.
205
- * Format: accounts/{account}
206
- * @param {number} [request.pageSize]
207
- * Optional. The maximum number of merchant reviews to return. The service can
208
- * return fewer than this value. The maximum value is 1000; values above 1000
209
- * are coerced to 1000. If unspecified, the maximum number of reviews is
210
- * returned.
211
- * @param {string} [request.pageToken]
212
- * Optional. A page token, received from a previous `ListMerchantReviews`
213
- * call. Provide this to retrieve the subsequent page.
214
- *
215
- * When paginating, all other parameters provided to `ListMerchantReviews`
216
- * must match the call that provided the page token.
217
- * @param {object} [options]
218
- * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
219
- * @returns {Promise} - The promise which resolves to an array.
220
- * The first element of the array is Array of {@link protos.google.shopping.merchant.reviews.v1beta.MerchantReview|MerchantReview}.
221
- * The client library will perform auto-pagination by default: it will call the API as many
222
- * times as needed and will merge results from all the pages into this array.
223
- * Note that it can affect your quota.
224
- * We recommend using `listMerchantReviewsAsync()`
225
- * method described below for async iteration which you can stop as needed.
226
- * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
227
- * for more details and examples.
228
- */
199
+ * Lists merchant reviews.
200
+ *
201
+ * @param {Object} request
202
+ * The request object that will be sent.
203
+ * @param {string} request.parent
204
+ * Required. The account to list merchant reviews for.
205
+ * Format: accounts/{account}
206
+ * @param {number} [request.pageSize]
207
+ * Optional. The maximum number of merchant reviews to return. The service can
208
+ * return fewer than this value. The maximum value is 1000; values above 1000
209
+ * are coerced to 1000. If unspecified, the maximum number of reviews is
210
+ * returned.
211
+ * @param {string} [request.pageToken]
212
+ * Optional. A page token, received from a previous `ListMerchantReviews`
213
+ * call. Provide this to retrieve the subsequent page.
214
+ *
215
+ * When paginating, all other parameters provided to `ListMerchantReviews`
216
+ * must match the call that provided the page token.
217
+ * @param {object} [options]
218
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
219
+ * @returns {Promise} - The promise which resolves to an array.
220
+ * The first element of the array is Array of {@link protos.google.shopping.merchant.reviews.v1beta.MerchantReview|MerchantReview}.
221
+ * The client library will perform auto-pagination by default: it will call the API as many
222
+ * times as needed and will merge results from all the pages into this array.
223
+ * Note that it can affect your quota.
224
+ * We recommend using `listMerchantReviewsAsync()`
225
+ * method described below for async iteration which you can stop as needed.
226
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
227
+ * for more details and examples.
228
+ */
229
229
  listMerchantReviews(request?: protos.google.shopping.merchant.reviews.v1beta.IListMerchantReviewsRequest, options?: CallOptions): Promise<[
230
230
  protos.google.shopping.merchant.reviews.v1beta.IMerchantReview[],
231
231
  protos.google.shopping.merchant.reviews.v1beta.IListMerchantReviewsRequest | null,