@maxim_mazurok/gapi.client.retail-v2alpha 0.0.20220811

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/tests.ts ADDED
@@ -0,0 +1,2428 @@
1
+ /* This is stub file for gapi.client.retail-v2alpha definition tests */
2
+ // IMPORTANT
3
+ // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
4
+ // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
5
+
6
+ // Revision: 20220811
7
+
8
+ gapi.load('client', async () => {
9
+ /** now we can use gapi.client */
10
+
11
+ await gapi.client.load('https://retail.googleapis.com/$discovery/rest?version=v2alpha');
12
+ /** now we can use gapi.client.retail */
13
+
14
+ /** don't forget to authenticate your client before sending any request to resources: */
15
+ /** declare client_id registered in Google Developers Console */
16
+ const client_id = '<<PUT YOUR CLIENT ID HERE>>';
17
+ const scope = [
18
+ /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account. */
19
+ 'https://www.googleapis.com/auth/cloud-platform',
20
+ ];
21
+ const immediate = false;
22
+ gapi.auth.authorize({ client_id, scope, immediate }, authResult => {
23
+ if (authResult && !authResult.error) {
24
+ /** handle successful authorization */
25
+ run();
26
+ } else {
27
+ /** handle authorization error */
28
+ }
29
+ });
30
+
31
+ async function run() {
32
+ /**
33
+ * Completes the specified prefix with keyword suggestions. This feature is only available for users who have Retail Search enabled. Please enable Retail Search on Cloud Console before
34
+ * using this feature.
35
+ */
36
+ await gapi.client.retail.projects.locations.catalogs.completeQuery({
37
+ catalog: "Test string",
38
+ dataset: "Test string",
39
+ deviceType: "Test string",
40
+ languageCodes: "Test string",
41
+ maxSuggestions: 42,
42
+ query: "Test string",
43
+ visitorId: "Test string",
44
+ });
45
+ /** Gets an AttributesConfig. */
46
+ await gapi.client.retail.projects.locations.catalogs.getAttributesConfig({
47
+ name: "Test string",
48
+ });
49
+ /** Gets a CompletionConfig. */
50
+ await gapi.client.retail.projects.locations.catalogs.getCompletionConfig({
51
+ name: "Test string",
52
+ });
53
+ /** Get which branch is currently default branch set by CatalogService.SetDefaultBranch method under a specified parent catalog. */
54
+ await gapi.client.retail.projects.locations.catalogs.getDefaultBranch({
55
+ catalog: "Test string",
56
+ });
57
+ /** Lists all the Catalogs associated with the project. */
58
+ await gapi.client.retail.projects.locations.catalogs.list({
59
+ pageSize: 42,
60
+ pageToken: "Test string",
61
+ parent: "Test string",
62
+ });
63
+ /** Updates the Catalogs. */
64
+ await gapi.client.retail.projects.locations.catalogs.patch({
65
+ name: "Test string",
66
+ updateMask: "Test string",
67
+ }, {
68
+ displayName: "Test string",
69
+ merchantCenterLinkingConfig: {
70
+ links: [
71
+ {
72
+ branchId: "Test string",
73
+ destinations: [
74
+ "Test string"
75
+ ],
76
+ languageCode: "Test string",
77
+ merchantCenterAccountId: "Test string",
78
+ regionCode: "Test string",
79
+ }
80
+ ],
81
+ },
82
+ name: "Test string",
83
+ productLevelConfig: {
84
+ ingestionProductType: "Test string",
85
+ merchantCenterProductIdField: "Test string",
86
+ },
87
+ });
88
+ /**
89
+ * Set a specified branch id as default branch. API methods such as SearchService.Search, ProductService.GetProduct, ProductService.ListProducts will treat requests using "default_branch"
90
+ * to the actual branch id set as default. For example, if `projects/*‍/locations/*‍/catalogs/*‍/branches/1` is set as default, setting SearchRequest.branch to
91
+ * `projects/*‍/locations/*‍/catalogs/*‍/branches/default_branch` is equivalent to setting SearchRequest.branch to `projects/*‍/locations/*‍/catalogs/*‍/branches/1`. Using multiple
92
+ * branches can be useful when developers would like to have a staging branch to test and verify for future usage. When it becomes ready, developers switch on the staging branch using this
93
+ * API while keeping using `projects/*‍/locations/*‍/catalogs/*‍/branches/default_branch` as SearchRequest.branch to route the traffic to this staging branch. CAUTION: If you have live
94
+ * predict/search traffic, switching the default branch could potentially cause outages if the ID space of the new branch is very different from the old one. More specifically: *
95
+ * PredictionService will only return product IDs from branch {newBranch}. * SearchService will only return product IDs from branch {newBranch} (if branch is not explicitly set). *
96
+ * UserEventService will only join events with products from branch {newBranch}.
97
+ */
98
+ await gapi.client.retail.projects.locations.catalogs.setDefaultBranch({
99
+ catalog: "Test string",
100
+ }, {
101
+ branchId: "Test string",
102
+ force: true,
103
+ note: "Test string",
104
+ });
105
+ /**
106
+ * Updates the AttributesConfig. The catalog attributes in the request will be updated in the catalog, or inserted if they do not exist. Existing catalog attributes not included in the
107
+ * request will remain unchanged. Attributes that are assigned to products, but do not exist at the catalog level, are always included in the response. The product attribute is assigned
108
+ * default values for missing catalog attribute fields, e.g., searchable and dynamic facetable options.
109
+ */
110
+ await gapi.client.retail.projects.locations.catalogs.updateAttributesConfig({
111
+ name: "Test string",
112
+ updateMask: "Test string",
113
+ }, {
114
+ attributeConfigLevel: "Test string",
115
+ catalogAttributes: {
116
+ A: {
117
+ dynamicFacetableOption: "Test string",
118
+ exactSearchableOption: "Test string",
119
+ indexableOption: "Test string",
120
+ inUse: true,
121
+ key: "Test string",
122
+ recommendationsFilteringOption: "Test string",
123
+ searchableOption: "Test string",
124
+ type: "Test string",
125
+ }
126
+ },
127
+ name: "Test string",
128
+ });
129
+ /** Updates the CompletionConfigs. */
130
+ await gapi.client.retail.projects.locations.catalogs.updateCompletionConfig({
131
+ name: "Test string",
132
+ updateMask: "Test string",
133
+ }, {
134
+ allowlistInputConfig: {
135
+ bigQuerySource: {
136
+ dataSchema: "Test string",
137
+ datasetId: "Test string",
138
+ gcsStagingDir: "Test string",
139
+ partitionDate: {
140
+ day: 42,
141
+ month: 42,
142
+ year: 42,
143
+ },
144
+ projectId: "Test string",
145
+ tableId: "Test string",
146
+ },
147
+ },
148
+ autoLearning: true,
149
+ denylistInputConfig: {
150
+ bigQuerySource: {
151
+ dataSchema: "Test string",
152
+ datasetId: "Test string",
153
+ gcsStagingDir: "Test string",
154
+ partitionDate: {
155
+ day: 42,
156
+ month: 42,
157
+ year: 42,
158
+ },
159
+ projectId: "Test string",
160
+ tableId: "Test string",
161
+ },
162
+ },
163
+ lastAllowlistImportOperation: "Test string",
164
+ lastDenylistImportOperation: "Test string",
165
+ lastSuggestionsImportOperation: "Test string",
166
+ matchingOrder: "Test string",
167
+ maxSuggestions: 42,
168
+ minPrefixLength: 42,
169
+ name: "Test string",
170
+ suggestionsInputConfig: {
171
+ bigQuerySource: {
172
+ dataSchema: "Test string",
173
+ datasetId: "Test string",
174
+ gcsStagingDir: "Test string",
175
+ partitionDate: {
176
+ day: 42,
177
+ month: 42,
178
+ year: 42,
179
+ },
180
+ projectId: "Test string",
181
+ tableId: "Test string",
182
+ },
183
+ },
184
+ });
185
+ /** Adds the specified CatalogAttribute to the AttributesConfig. If the CatalogAttribute to add already exists, an ALREADY_EXISTS error is returned. */
186
+ await gapi.client.retail.projects.locations.catalogs.attributesConfig.addCatalogAttribute({
187
+ attributesConfig: "Test string",
188
+ }, {
189
+ catalogAttribute: {
190
+ dynamicFacetableOption: "Test string",
191
+ exactSearchableOption: "Test string",
192
+ indexableOption: "Test string",
193
+ inUse: true,
194
+ key: "Test string",
195
+ recommendationsFilteringOption: "Test string",
196
+ searchableOption: "Test string",
197
+ type: "Test string",
198
+ },
199
+ });
200
+ /** Removes all specified CatalogAttributes from the AttributesConfig. */
201
+ await gapi.client.retail.projects.locations.catalogs.attributesConfig.batchRemoveCatalogAttributes({
202
+ attributesConfig: "Test string",
203
+ }, {
204
+ attributeKeys: [
205
+ "Test string"
206
+ ],
207
+ });
208
+ /** Removes the specified CatalogAttribute from the AttributesConfig. If the CatalogAttribute to remove does not exist, a NOT_FOUND error is returned. */
209
+ await gapi.client.retail.projects.locations.catalogs.attributesConfig.removeCatalogAttribute({
210
+ attributesConfig: "Test string",
211
+ }, {
212
+ key: "Test string",
213
+ });
214
+ /**
215
+ * Replaces the specified CatalogAttribute in the AttributesConfig by updating the catalog attribute with the same CatalogAttribute.key. If the CatalogAttribute to replace does not exist,
216
+ * a NOT_FOUND error is returned.
217
+ */
218
+ await gapi.client.retail.projects.locations.catalogs.attributesConfig.replaceCatalogAttribute({
219
+ attributesConfig: "Test string",
220
+ }, {
221
+ catalogAttribute: {
222
+ dynamicFacetableOption: "Test string",
223
+ exactSearchableOption: "Test string",
224
+ indexableOption: "Test string",
225
+ inUse: true,
226
+ key: "Test string",
227
+ recommendationsFilteringOption: "Test string",
228
+ searchableOption: "Test string",
229
+ type: "Test string",
230
+ },
231
+ updateMask: "Test string",
232
+ });
233
+ /** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
234
+ await gapi.client.retail.projects.locations.catalogs.branches.operations.get({
235
+ name: "Test string",
236
+ });
237
+ /**
238
+ * Incrementally adds place IDs to Product.fulfillment_info.place_ids. This process is asynchronous and does not require the Product to exist before updating fulfillment information. If
239
+ * the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, the added place IDs are not immediately manifested in the
240
+ * Product queried by ProductService.GetProduct or ProductService.ListProducts. This feature is only available for users who have Retail Search enabled. Please enable Retail Search on
241
+ * Cloud Console before using this feature.
242
+ */
243
+ await gapi.client.retail.projects.locations.catalogs.branches.products.addFulfillmentPlaces({
244
+ product: "Test string",
245
+ }, {
246
+ addTime: "Test string",
247
+ allowMissing: true,
248
+ placeIds: [
249
+ "Test string"
250
+ ],
251
+ type: "Test string",
252
+ });
253
+ /**
254
+ * Updates local inventory information for a Product at a list of places, while respecting the last update timestamps of each inventory field. This process is asynchronous and does not
255
+ * require the Product to exist before updating inventory information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is
256
+ * returned, updates are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. Local inventory information can only be modified
257
+ * using this method. ProductService.CreateProduct and ProductService.UpdateProduct has no effect on local inventories. This feature is only available for users who have Retail Search
258
+ * enabled. Please enable Retail Search on Cloud Console before using this feature.
259
+ */
260
+ await gapi.client.retail.projects.locations.catalogs.branches.products.addLocalInventories({
261
+ product: "Test string",
262
+ }, {
263
+ addMask: "Test string",
264
+ addTime: "Test string",
265
+ allowMissing: true,
266
+ localInventories: [
267
+ {
268
+ attributes: {
269
+ A: {
270
+ indexable: true,
271
+ numbers: [
272
+ 42
273
+ ],
274
+ searchable: true,
275
+ text: [
276
+ "Test string"
277
+ ],
278
+ }
279
+ },
280
+ fulfillmentTypes: [
281
+ "Test string"
282
+ ],
283
+ placeId: "Test string",
284
+ priceInfo: {
285
+ cost: 42,
286
+ currencyCode: "Test string",
287
+ originalPrice: 42,
288
+ price: 42,
289
+ priceEffectiveTime: "Test string",
290
+ priceExpireTime: "Test string",
291
+ priceRange: {
292
+ originalPrice: {
293
+ exclusiveMaximum: 42,
294
+ exclusiveMinimum: 42,
295
+ maximum: 42,
296
+ minimum: 42,
297
+ },
298
+ price: {
299
+ exclusiveMaximum: 42,
300
+ exclusiveMinimum: 42,
301
+ maximum: 42,
302
+ minimum: 42,
303
+ },
304
+ },
305
+ },
306
+ }
307
+ ],
308
+ });
309
+ /** Creates a Product. */
310
+ await gapi.client.retail.projects.locations.catalogs.branches.products.create({
311
+ parent: "Test string",
312
+ productId: "Test string",
313
+ }, {
314
+ attributes: {
315
+ A: {
316
+ indexable: true,
317
+ numbers: [
318
+ 42
319
+ ],
320
+ searchable: true,
321
+ text: [
322
+ "Test string"
323
+ ],
324
+ }
325
+ },
326
+ audience: {
327
+ ageGroups: [
328
+ "Test string"
329
+ ],
330
+ genders: [
331
+ "Test string"
332
+ ],
333
+ },
334
+ availability: "Test string",
335
+ availableQuantity: 42,
336
+ availableTime: "Test string",
337
+ brands: [
338
+ "Test string"
339
+ ],
340
+ categories: [
341
+ "Test string"
342
+ ],
343
+ collectionMemberIds: [
344
+ "Test string"
345
+ ],
346
+ colorInfo: {
347
+ colorFamilies: [
348
+ "Test string"
349
+ ],
350
+ colors: [
351
+ "Test string"
352
+ ],
353
+ },
354
+ conditions: [
355
+ "Test string"
356
+ ],
357
+ description: "Test string",
358
+ expireTime: "Test string",
359
+ fulfillmentInfo: [
360
+ {
361
+ placeIds: [
362
+ "Test string"
363
+ ],
364
+ type: "Test string",
365
+ }
366
+ ],
367
+ gtin: "Test string",
368
+ id: "Test string",
369
+ images: [
370
+ {
371
+ height: 42,
372
+ uri: "Test string",
373
+ width: 42,
374
+ }
375
+ ],
376
+ languageCode: "Test string",
377
+ materials: [
378
+ "Test string"
379
+ ],
380
+ name: "Test string",
381
+ patterns: [
382
+ "Test string"
383
+ ],
384
+ priceInfo: {
385
+ cost: 42,
386
+ currencyCode: "Test string",
387
+ originalPrice: 42,
388
+ price: 42,
389
+ priceEffectiveTime: "Test string",
390
+ priceExpireTime: "Test string",
391
+ priceRange: {
392
+ originalPrice: {
393
+ exclusiveMaximum: 42,
394
+ exclusiveMinimum: 42,
395
+ maximum: 42,
396
+ minimum: 42,
397
+ },
398
+ price: {
399
+ exclusiveMaximum: 42,
400
+ exclusiveMinimum: 42,
401
+ maximum: 42,
402
+ minimum: 42,
403
+ },
404
+ },
405
+ },
406
+ primaryProductId: "Test string",
407
+ promotions: [
408
+ {
409
+ promotionId: "Test string",
410
+ }
411
+ ],
412
+ publishTime: "Test string",
413
+ rating: {
414
+ averageRating: 42,
415
+ ratingCount: 42,
416
+ ratingHistogram: [
417
+ 42
418
+ ],
419
+ },
420
+ retrievableFields: "Test string",
421
+ sizes: [
422
+ "Test string"
423
+ ],
424
+ tags: [
425
+ "Test string"
426
+ ],
427
+ title: "Test string",
428
+ ttl: "Test string",
429
+ type: "Test string",
430
+ uri: "Test string",
431
+ variants: undefined,
432
+ });
433
+ /** Deletes a Product. */
434
+ await gapi.client.retail.projects.locations.catalogs.branches.products.delete({
435
+ name: "Test string",
436
+ });
437
+ /** Gets a Product. */
438
+ await gapi.client.retail.projects.locations.catalogs.branches.products.get({
439
+ name: "Test string",
440
+ });
441
+ /**
442
+ * Bulk import of multiple Products. Request processing may be synchronous. Non-existing items are created. Note that it is possible for a subset of the Products to be successfully
443
+ * updated.
444
+ */
445
+ await gapi.client.retail.projects.locations.catalogs.branches.products.import({
446
+ parent: "Test string",
447
+ }, {
448
+ errorsConfig: {
449
+ gcsPrefix: "Test string",
450
+ },
451
+ inputConfig: {
452
+ bigQuerySource: {
453
+ dataSchema: "Test string",
454
+ datasetId: "Test string",
455
+ gcsStagingDir: "Test string",
456
+ partitionDate: {
457
+ day: 42,
458
+ month: 42,
459
+ year: 42,
460
+ },
461
+ projectId: "Test string",
462
+ tableId: "Test string",
463
+ },
464
+ gcsSource: {
465
+ dataSchema: "Test string",
466
+ inputUris: [
467
+ "Test string"
468
+ ],
469
+ },
470
+ productInlineSource: {
471
+ products: [
472
+ {
473
+ attributes: {
474
+ A: {
475
+ indexable: true,
476
+ numbers: [
477
+ 42
478
+ ],
479
+ searchable: true,
480
+ text: [
481
+ "Test string"
482
+ ],
483
+ }
484
+ },
485
+ audience: {
486
+ ageGroups: [
487
+ "Test string"
488
+ ],
489
+ genders: [
490
+ "Test string"
491
+ ],
492
+ },
493
+ availability: "Test string",
494
+ availableQuantity: 42,
495
+ availableTime: "Test string",
496
+ brands: [
497
+ "Test string"
498
+ ],
499
+ categories: [
500
+ "Test string"
501
+ ],
502
+ collectionMemberIds: [
503
+ "Test string"
504
+ ],
505
+ colorInfo: {
506
+ colorFamilies: [
507
+ "Test string"
508
+ ],
509
+ colors: [
510
+ "Test string"
511
+ ],
512
+ },
513
+ conditions: [
514
+ "Test string"
515
+ ],
516
+ description: "Test string",
517
+ expireTime: "Test string",
518
+ fulfillmentInfo: [
519
+ {
520
+ placeIds: [
521
+ "Test string"
522
+ ],
523
+ type: "Test string",
524
+ }
525
+ ],
526
+ gtin: "Test string",
527
+ id: "Test string",
528
+ images: [
529
+ {
530
+ height: 42,
531
+ uri: "Test string",
532
+ width: 42,
533
+ }
534
+ ],
535
+ languageCode: "Test string",
536
+ materials: [
537
+ "Test string"
538
+ ],
539
+ name: "Test string",
540
+ patterns: [
541
+ "Test string"
542
+ ],
543
+ priceInfo: {
544
+ cost: 42,
545
+ currencyCode: "Test string",
546
+ originalPrice: 42,
547
+ price: 42,
548
+ priceEffectiveTime: "Test string",
549
+ priceExpireTime: "Test string",
550
+ priceRange: {
551
+ originalPrice: {
552
+ exclusiveMaximum: 42,
553
+ exclusiveMinimum: 42,
554
+ maximum: 42,
555
+ minimum: 42,
556
+ },
557
+ price: {
558
+ exclusiveMaximum: 42,
559
+ exclusiveMinimum: 42,
560
+ maximum: 42,
561
+ minimum: 42,
562
+ },
563
+ },
564
+ },
565
+ primaryProductId: "Test string",
566
+ promotions: [
567
+ {
568
+ promotionId: "Test string",
569
+ }
570
+ ],
571
+ publishTime: "Test string",
572
+ rating: {
573
+ averageRating: 42,
574
+ ratingCount: 42,
575
+ ratingHistogram: [
576
+ 42
577
+ ],
578
+ },
579
+ retrievableFields: "Test string",
580
+ sizes: [
581
+ "Test string"
582
+ ],
583
+ tags: [
584
+ "Test string"
585
+ ],
586
+ title: "Test string",
587
+ ttl: "Test string",
588
+ type: "Test string",
589
+ uri: "Test string",
590
+ variants: undefined,
591
+ }
592
+ ],
593
+ },
594
+ },
595
+ notificationPubsubTopic: "Test string",
596
+ reconciliationMode: "Test string",
597
+ requestId: "Test string",
598
+ skipDefaultBranchProtection: true,
599
+ updateMask: "Test string",
600
+ });
601
+ /** Gets a list of Products. */
602
+ await gapi.client.retail.projects.locations.catalogs.branches.products.list({
603
+ filter: "Test string",
604
+ pageSize: 42,
605
+ pageToken: "Test string",
606
+ parent: "Test string",
607
+ readMask: "Test string",
608
+ requireTotalSize: true,
609
+ });
610
+ /** Updates a Product. */
611
+ await gapi.client.retail.projects.locations.catalogs.branches.products.patch({
612
+ allowMissing: true,
613
+ name: "Test string",
614
+ updateMask: "Test string",
615
+ }, {
616
+ attributes: {
617
+ A: {
618
+ indexable: true,
619
+ numbers: [
620
+ 42
621
+ ],
622
+ searchable: true,
623
+ text: [
624
+ "Test string"
625
+ ],
626
+ }
627
+ },
628
+ audience: {
629
+ ageGroups: [
630
+ "Test string"
631
+ ],
632
+ genders: [
633
+ "Test string"
634
+ ],
635
+ },
636
+ availability: "Test string",
637
+ availableQuantity: 42,
638
+ availableTime: "Test string",
639
+ brands: [
640
+ "Test string"
641
+ ],
642
+ categories: [
643
+ "Test string"
644
+ ],
645
+ collectionMemberIds: [
646
+ "Test string"
647
+ ],
648
+ colorInfo: {
649
+ colorFamilies: [
650
+ "Test string"
651
+ ],
652
+ colors: [
653
+ "Test string"
654
+ ],
655
+ },
656
+ conditions: [
657
+ "Test string"
658
+ ],
659
+ description: "Test string",
660
+ expireTime: "Test string",
661
+ fulfillmentInfo: [
662
+ {
663
+ placeIds: [
664
+ "Test string"
665
+ ],
666
+ type: "Test string",
667
+ }
668
+ ],
669
+ gtin: "Test string",
670
+ id: "Test string",
671
+ images: [
672
+ {
673
+ height: 42,
674
+ uri: "Test string",
675
+ width: 42,
676
+ }
677
+ ],
678
+ languageCode: "Test string",
679
+ materials: [
680
+ "Test string"
681
+ ],
682
+ name: "Test string",
683
+ patterns: [
684
+ "Test string"
685
+ ],
686
+ priceInfo: {
687
+ cost: 42,
688
+ currencyCode: "Test string",
689
+ originalPrice: 42,
690
+ price: 42,
691
+ priceEffectiveTime: "Test string",
692
+ priceExpireTime: "Test string",
693
+ priceRange: {
694
+ originalPrice: {
695
+ exclusiveMaximum: 42,
696
+ exclusiveMinimum: 42,
697
+ maximum: 42,
698
+ minimum: 42,
699
+ },
700
+ price: {
701
+ exclusiveMaximum: 42,
702
+ exclusiveMinimum: 42,
703
+ maximum: 42,
704
+ minimum: 42,
705
+ },
706
+ },
707
+ },
708
+ primaryProductId: "Test string",
709
+ promotions: [
710
+ {
711
+ promotionId: "Test string",
712
+ }
713
+ ],
714
+ publishTime: "Test string",
715
+ rating: {
716
+ averageRating: 42,
717
+ ratingCount: 42,
718
+ ratingHistogram: [
719
+ 42
720
+ ],
721
+ },
722
+ retrievableFields: "Test string",
723
+ sizes: [
724
+ "Test string"
725
+ ],
726
+ tags: [
727
+ "Test string"
728
+ ],
729
+ title: "Test string",
730
+ ttl: "Test string",
731
+ type: "Test string",
732
+ uri: "Test string",
733
+ variants: undefined,
734
+ });
735
+ /**
736
+ * Permanently deletes all selected Products under a branch. This process is asynchronous. If the request is valid, the removal will be enqueued and processed offline. Depending on the
737
+ * number of Products, this operation could take hours to complete. Before the operation completes, some Products may still be returned by ProductService.GetProduct or
738
+ * ProductService.ListProducts. Depending on the number of Products, this operation could take hours to complete. To get a sample of Products that would be deleted, set
739
+ * PurgeProductsRequest.force to false.
740
+ */
741
+ await gapi.client.retail.projects.locations.catalogs.branches.products.purge({
742
+ parent: "Test string",
743
+ }, {
744
+ filter: "Test string",
745
+ force: true,
746
+ });
747
+ /**
748
+ * Incrementally removes place IDs from a Product.fulfillment_info.place_ids. This process is asynchronous and does not require the Product to exist before updating fulfillment
749
+ * information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, the removed place IDs are not immediately
750
+ * manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. This feature is only available for users who have Retail Search enabled. Please enable
751
+ * Retail Search on Cloud Console before using this feature.
752
+ */
753
+ await gapi.client.retail.projects.locations.catalogs.branches.products.removeFulfillmentPlaces({
754
+ product: "Test string",
755
+ }, {
756
+ allowMissing: true,
757
+ placeIds: [
758
+ "Test string"
759
+ ],
760
+ removeTime: "Test string",
761
+ type: "Test string",
762
+ });
763
+ /**
764
+ * Remove local inventory information for a Product at a list of places at a removal timestamp. This process is asynchronous. If the request is valid, the removal will be enqueued and
765
+ * processed downstream. As a consequence, when a response is returned, removals are not immediately manifested in the Product queried by ProductService.GetProduct or
766
+ * ProductService.ListProducts. Local inventory information can only be removed using this method. ProductService.CreateProduct and ProductService.UpdateProduct has no effect on local
767
+ * inventories. This feature is only available for users who have Retail Search enabled. Please enable Retail Search on Cloud Console before using this feature.
768
+ */
769
+ await gapi.client.retail.projects.locations.catalogs.branches.products.removeLocalInventories({
770
+ product: "Test string",
771
+ }, {
772
+ allowMissing: true,
773
+ placeIds: [
774
+ "Test string"
775
+ ],
776
+ removeTime: "Test string",
777
+ });
778
+ /**
779
+ * Updates inventory information for a Product while respecting the last update timestamps of each inventory field. This process is asynchronous and does not require the Product to exist
780
+ * before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, updates are not
781
+ * immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. When inventory is updated with ProductService.CreateProduct and
782
+ * ProductService.UpdateProduct, the specified inventory field value(s) will overwrite any existing value(s) while ignoring the last update time for this field. Furthermore, the last
783
+ * update time for the specified inventory fields will be overwritten to the time of the ProductService.CreateProduct or ProductService.UpdateProduct request. If no inventory fields are
784
+ * set in CreateProductRequest.product, then any pre-existing inventory information for this product will be used. If no inventory fields are set in SetInventoryRequest.set_mask, then any
785
+ * existing inventory information will be preserved. Pre-existing inventory information can only be updated with ProductService.SetInventory, ProductService.AddFulfillmentPlaces, and
786
+ * ProductService.RemoveFulfillmentPlaces. This feature is only available for users who have Retail Search enabled. Please enable Retail Search on Cloud Console before using this feature.
787
+ */
788
+ await gapi.client.retail.projects.locations.catalogs.branches.products.setInventory({
789
+ name: "Test string",
790
+ }, {
791
+ allowMissing: true,
792
+ inventory: {
793
+ attributes: {
794
+ A: {
795
+ indexable: true,
796
+ numbers: [
797
+ 42
798
+ ],
799
+ searchable: true,
800
+ text: [
801
+ "Test string"
802
+ ],
803
+ }
804
+ },
805
+ audience: {
806
+ ageGroups: [
807
+ "Test string"
808
+ ],
809
+ genders: [
810
+ "Test string"
811
+ ],
812
+ },
813
+ availability: "Test string",
814
+ availableQuantity: 42,
815
+ availableTime: "Test string",
816
+ brands: [
817
+ "Test string"
818
+ ],
819
+ categories: [
820
+ "Test string"
821
+ ],
822
+ collectionMemberIds: [
823
+ "Test string"
824
+ ],
825
+ colorInfo: {
826
+ colorFamilies: [
827
+ "Test string"
828
+ ],
829
+ colors: [
830
+ "Test string"
831
+ ],
832
+ },
833
+ conditions: [
834
+ "Test string"
835
+ ],
836
+ description: "Test string",
837
+ expireTime: "Test string",
838
+ fulfillmentInfo: [
839
+ {
840
+ placeIds: [
841
+ "Test string"
842
+ ],
843
+ type: "Test string",
844
+ }
845
+ ],
846
+ gtin: "Test string",
847
+ id: "Test string",
848
+ images: [
849
+ {
850
+ height: 42,
851
+ uri: "Test string",
852
+ width: 42,
853
+ }
854
+ ],
855
+ languageCode: "Test string",
856
+ materials: [
857
+ "Test string"
858
+ ],
859
+ name: "Test string",
860
+ patterns: [
861
+ "Test string"
862
+ ],
863
+ priceInfo: {
864
+ cost: 42,
865
+ currencyCode: "Test string",
866
+ originalPrice: 42,
867
+ price: 42,
868
+ priceEffectiveTime: "Test string",
869
+ priceExpireTime: "Test string",
870
+ priceRange: {
871
+ originalPrice: {
872
+ exclusiveMaximum: 42,
873
+ exclusiveMinimum: 42,
874
+ maximum: 42,
875
+ minimum: 42,
876
+ },
877
+ price: {
878
+ exclusiveMaximum: 42,
879
+ exclusiveMinimum: 42,
880
+ maximum: 42,
881
+ minimum: 42,
882
+ },
883
+ },
884
+ },
885
+ primaryProductId: "Test string",
886
+ promotions: [
887
+ {
888
+ promotionId: "Test string",
889
+ }
890
+ ],
891
+ publishTime: "Test string",
892
+ rating: {
893
+ averageRating: 42,
894
+ ratingCount: 42,
895
+ ratingHistogram: [
896
+ 42
897
+ ],
898
+ },
899
+ retrievableFields: "Test string",
900
+ sizes: [
901
+ "Test string"
902
+ ],
903
+ tags: [
904
+ "Test string"
905
+ ],
906
+ title: "Test string",
907
+ ttl: "Test string",
908
+ type: "Test string",
909
+ uri: "Test string",
910
+ variants: undefined,
911
+ },
912
+ setMask: "Test string",
913
+ setTime: "Test string",
914
+ });
915
+ /**
916
+ * Bulk import of processed completion dataset. Request processing is asynchronous. Partial updating is not supported. The operation is successfully finished only after the imported
917
+ * suggestions are indexed successfully and ready for serving. The process takes hours. This feature is only available for users who have Retail Search enabled. Please enable Retail Search
918
+ * on Cloud Console before using this feature.
919
+ */
920
+ await gapi.client.retail.projects.locations.catalogs.completionData.import({
921
+ parent: "Test string",
922
+ }, {
923
+ inputConfig: {
924
+ bigQuerySource: {
925
+ dataSchema: "Test string",
926
+ datasetId: "Test string",
927
+ gcsStagingDir: "Test string",
928
+ partitionDate: {
929
+ day: 42,
930
+ month: 42,
931
+ year: 42,
932
+ },
933
+ projectId: "Test string",
934
+ tableId: "Test string",
935
+ },
936
+ },
937
+ notificationPubsubTopic: "Test string",
938
+ });
939
+ /** Creates a Control. If the Control to create already exists, an ALREADY_EXISTS error is returned. */
940
+ await gapi.client.retail.projects.locations.catalogs.controls.create({
941
+ controlId: "Test string",
942
+ parent: "Test string",
943
+ }, {
944
+ associatedServingConfigIds: [
945
+ "Test string"
946
+ ],
947
+ displayName: "Test string",
948
+ facetSpec: {
949
+ enableDynamicPosition: true,
950
+ excludedFilterKeys: [
951
+ "Test string"
952
+ ],
953
+ facetKey: {
954
+ caseInsensitive: true,
955
+ contains: [
956
+ "Test string"
957
+ ],
958
+ intervals: [
959
+ {
960
+ exclusiveMaximum: 42,
961
+ exclusiveMinimum: 42,
962
+ maximum: 42,
963
+ minimum: 42,
964
+ }
965
+ ],
966
+ key: "Test string",
967
+ orderBy: "Test string",
968
+ prefixes: [
969
+ "Test string"
970
+ ],
971
+ query: "Test string",
972
+ restrictedValues: [
973
+ "Test string"
974
+ ],
975
+ returnMinMax: true,
976
+ },
977
+ limit: 42,
978
+ },
979
+ name: "Test string",
980
+ rule: {
981
+ boostAction: {
982
+ boost: 42,
983
+ productsFilter: "Test string",
984
+ },
985
+ condition: {
986
+ activeTimeRange: [
987
+ {
988
+ endTime: "Test string",
989
+ startTime: "Test string",
990
+ }
991
+ ],
992
+ queryTerms: [
993
+ {
994
+ fullMatch: true,
995
+ value: "Test string",
996
+ }
997
+ ],
998
+ },
999
+ doNotAssociateAction: {
1000
+ doNotAssociateTerms: [
1001
+ "Test string"
1002
+ ],
1003
+ queryTerms: [
1004
+ "Test string"
1005
+ ],
1006
+ terms: [
1007
+ "Test string"
1008
+ ],
1009
+ },
1010
+ filterAction: {
1011
+ filter: "Test string",
1012
+ },
1013
+ ignoreAction: {
1014
+ ignoreTerms: [
1015
+ "Test string"
1016
+ ],
1017
+ },
1018
+ onewaySynonymsAction: {
1019
+ onewayTerms: [
1020
+ "Test string"
1021
+ ],
1022
+ queryTerms: [
1023
+ "Test string"
1024
+ ],
1025
+ synonyms: [
1026
+ "Test string"
1027
+ ],
1028
+ },
1029
+ redirectAction: {
1030
+ redirectUri: "Test string",
1031
+ },
1032
+ replacementAction: {
1033
+ queryTerms: [
1034
+ "Test string"
1035
+ ],
1036
+ replacementTerm: "Test string",
1037
+ term: "Test string",
1038
+ },
1039
+ twowaySynonymsAction: {
1040
+ synonyms: [
1041
+ "Test string"
1042
+ ],
1043
+ },
1044
+ },
1045
+ solutionTypes: [
1046
+ "Test string"
1047
+ ],
1048
+ });
1049
+ /** Deletes a Control. If the Control to delete does not exist, a NOT_FOUND error is returned. */
1050
+ await gapi.client.retail.projects.locations.catalogs.controls.delete({
1051
+ name: "Test string",
1052
+ });
1053
+ /** Gets a Control. */
1054
+ await gapi.client.retail.projects.locations.catalogs.controls.get({
1055
+ name: "Test string",
1056
+ });
1057
+ /** Lists all Controls linked to this catalog. */
1058
+ await gapi.client.retail.projects.locations.catalogs.controls.list({
1059
+ filter: "Test string",
1060
+ pageSize: 42,
1061
+ pageToken: "Test string",
1062
+ parent: "Test string",
1063
+ });
1064
+ /** Updates a Control. Control cannot be set to a different oneof field, if so an INVALID_ARGUMENT is returned. If the Control to delete does not exist, a NOT_FOUND error is returned. */
1065
+ await gapi.client.retail.projects.locations.catalogs.controls.patch({
1066
+ name: "Test string",
1067
+ updateMask: "Test string",
1068
+ }, {
1069
+ associatedServingConfigIds: [
1070
+ "Test string"
1071
+ ],
1072
+ displayName: "Test string",
1073
+ facetSpec: {
1074
+ enableDynamicPosition: true,
1075
+ excludedFilterKeys: [
1076
+ "Test string"
1077
+ ],
1078
+ facetKey: {
1079
+ caseInsensitive: true,
1080
+ contains: [
1081
+ "Test string"
1082
+ ],
1083
+ intervals: [
1084
+ {
1085
+ exclusiveMaximum: 42,
1086
+ exclusiveMinimum: 42,
1087
+ maximum: 42,
1088
+ minimum: 42,
1089
+ }
1090
+ ],
1091
+ key: "Test string",
1092
+ orderBy: "Test string",
1093
+ prefixes: [
1094
+ "Test string"
1095
+ ],
1096
+ query: "Test string",
1097
+ restrictedValues: [
1098
+ "Test string"
1099
+ ],
1100
+ returnMinMax: true,
1101
+ },
1102
+ limit: 42,
1103
+ },
1104
+ name: "Test string",
1105
+ rule: {
1106
+ boostAction: {
1107
+ boost: 42,
1108
+ productsFilter: "Test string",
1109
+ },
1110
+ condition: {
1111
+ activeTimeRange: [
1112
+ {
1113
+ endTime: "Test string",
1114
+ startTime: "Test string",
1115
+ }
1116
+ ],
1117
+ queryTerms: [
1118
+ {
1119
+ fullMatch: true,
1120
+ value: "Test string",
1121
+ }
1122
+ ],
1123
+ },
1124
+ doNotAssociateAction: {
1125
+ doNotAssociateTerms: [
1126
+ "Test string"
1127
+ ],
1128
+ queryTerms: [
1129
+ "Test string"
1130
+ ],
1131
+ terms: [
1132
+ "Test string"
1133
+ ],
1134
+ },
1135
+ filterAction: {
1136
+ filter: "Test string",
1137
+ },
1138
+ ignoreAction: {
1139
+ ignoreTerms: [
1140
+ "Test string"
1141
+ ],
1142
+ },
1143
+ onewaySynonymsAction: {
1144
+ onewayTerms: [
1145
+ "Test string"
1146
+ ],
1147
+ queryTerms: [
1148
+ "Test string"
1149
+ ],
1150
+ synonyms: [
1151
+ "Test string"
1152
+ ],
1153
+ },
1154
+ redirectAction: {
1155
+ redirectUri: "Test string",
1156
+ },
1157
+ replacementAction: {
1158
+ queryTerms: [
1159
+ "Test string"
1160
+ ],
1161
+ replacementTerm: "Test string",
1162
+ term: "Test string",
1163
+ },
1164
+ twowaySynonymsAction: {
1165
+ synonyms: [
1166
+ "Test string"
1167
+ ],
1168
+ },
1169
+ },
1170
+ solutionTypes: [
1171
+ "Test string"
1172
+ ],
1173
+ });
1174
+ /** Creates a new model. */
1175
+ await gapi.client.retail.projects.locations.catalogs.models.create({
1176
+ dryRun: true,
1177
+ parent: "Test string",
1178
+ }, {
1179
+ createTime: "Test string",
1180
+ dataState: "Test string",
1181
+ displayName: "Test string",
1182
+ filteringOption: "Test string",
1183
+ lastTuneTime: "Test string",
1184
+ name: "Test string",
1185
+ optimizationObjective: "Test string",
1186
+ pageOptimizationConfig: {
1187
+ pageOptimizationEventType: "Test string",
1188
+ panels: [
1189
+ {
1190
+ candidates: [
1191
+ {
1192
+ servingConfigId: "Test string",
1193
+ }
1194
+ ],
1195
+ defaultCandidate: {
1196
+ servingConfigId: "Test string",
1197
+ },
1198
+ displayName: "Test string",
1199
+ }
1200
+ ],
1201
+ restriction: "Test string",
1202
+ },
1203
+ periodicTuningState: "Test string",
1204
+ servingConfigLists: [
1205
+ {
1206
+ servingConfigIds: [
1207
+ "Test string"
1208
+ ],
1209
+ }
1210
+ ],
1211
+ servingState: "Test string",
1212
+ trainingState: "Test string",
1213
+ tuningOperation: "Test string",
1214
+ type: "Test string",
1215
+ updateTime: "Test string",
1216
+ });
1217
+ /** Deletes an existing model. */
1218
+ await gapi.client.retail.projects.locations.catalogs.models.delete({
1219
+ name: "Test string",
1220
+ });
1221
+ /** Lists all the models linked to this event store. */
1222
+ await gapi.client.retail.projects.locations.catalogs.models.list({
1223
+ pageSize: 42,
1224
+ pageToken: "Test string",
1225
+ parent: "Test string",
1226
+ });
1227
+ /** Update of model metadata. Only fields that currently can be updated are: filtering_option, periodic_tuning_state. If other values are provided, this API method will ignore them. */
1228
+ await gapi.client.retail.projects.locations.catalogs.models.patch({
1229
+ name: "Test string",
1230
+ updateMask: "Test string",
1231
+ }, {
1232
+ createTime: "Test string",
1233
+ dataState: "Test string",
1234
+ displayName: "Test string",
1235
+ filteringOption: "Test string",
1236
+ lastTuneTime: "Test string",
1237
+ name: "Test string",
1238
+ optimizationObjective: "Test string",
1239
+ pageOptimizationConfig: {
1240
+ pageOptimizationEventType: "Test string",
1241
+ panels: [
1242
+ {
1243
+ candidates: [
1244
+ {
1245
+ servingConfigId: "Test string",
1246
+ }
1247
+ ],
1248
+ defaultCandidate: {
1249
+ servingConfigId: "Test string",
1250
+ },
1251
+ displayName: "Test string",
1252
+ }
1253
+ ],
1254
+ restriction: "Test string",
1255
+ },
1256
+ periodicTuningState: "Test string",
1257
+ servingConfigLists: [
1258
+ {
1259
+ servingConfigIds: [
1260
+ "Test string"
1261
+ ],
1262
+ }
1263
+ ],
1264
+ servingState: "Test string",
1265
+ trainingState: "Test string",
1266
+ tuningOperation: "Test string",
1267
+ type: "Test string",
1268
+ updateTime: "Test string",
1269
+ });
1270
+ /** Pauses the training of an existing model. */
1271
+ await gapi.client.retail.projects.locations.catalogs.models.pause({
1272
+ name: "Test string",
1273
+ }, {
1274
+ });
1275
+ /** Resumes the training of an existing model. */
1276
+ await gapi.client.retail.projects.locations.catalogs.models.resume({
1277
+ name: "Test string",
1278
+ }, {
1279
+ });
1280
+ /** Tunes an existing model. */
1281
+ await gapi.client.retail.projects.locations.catalogs.models.tune({
1282
+ name: "Test string",
1283
+ }, {
1284
+ });
1285
+ /** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
1286
+ await gapi.client.retail.projects.locations.catalogs.operations.get({
1287
+ name: "Test string",
1288
+ });
1289
+ /**
1290
+ * Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to
1291
+ * override the binding to use different resource name schemes, such as `users/*‍/operations`. To override the binding, API services can add a binding such as
1292
+ * `"/v1/{name=users/*}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must
1293
+ * ensure the name binding is the parent resource, without the operations collection id.
1294
+ */
1295
+ await gapi.client.retail.projects.locations.catalogs.operations.list({
1296
+ filter: "Test string",
1297
+ name: "Test string",
1298
+ pageSize: 42,
1299
+ pageToken: "Test string",
1300
+ });
1301
+ /** Makes a recommendation prediction. */
1302
+ await gapi.client.retail.projects.locations.catalogs.placements.predict({
1303
+ placement: "Test string",
1304
+ }, {
1305
+ filter: "Test string",
1306
+ labels: {
1307
+ A: "Test string"
1308
+ },
1309
+ pageSize: 42,
1310
+ pageToken: "Test string",
1311
+ params: {
1312
+ A: 42
1313
+ },
1314
+ userEvent: {
1315
+ attributes: {
1316
+ A: {
1317
+ indexable: true,
1318
+ numbers: [
1319
+ 42
1320
+ ],
1321
+ searchable: true,
1322
+ text: [
1323
+ "Test string"
1324
+ ],
1325
+ }
1326
+ },
1327
+ attributionToken: "Test string",
1328
+ cartId: "Test string",
1329
+ completionDetail: {
1330
+ completionAttributionToken: "Test string",
1331
+ selectedPosition: 42,
1332
+ selectedSuggestion: "Test string",
1333
+ },
1334
+ eventTime: "Test string",
1335
+ eventType: "Test string",
1336
+ experimentIds: [
1337
+ "Test string"
1338
+ ],
1339
+ filter: "Test string",
1340
+ offset: 42,
1341
+ orderBy: "Test string",
1342
+ pageCategories: [
1343
+ "Test string"
1344
+ ],
1345
+ pageViewId: "Test string",
1346
+ productDetails: [
1347
+ {
1348
+ product: {
1349
+ attributes: {
1350
+ A: {
1351
+ indexable: true,
1352
+ numbers: [
1353
+ 42
1354
+ ],
1355
+ searchable: true,
1356
+ text: [
1357
+ "Test string"
1358
+ ],
1359
+ }
1360
+ },
1361
+ audience: {
1362
+ ageGroups: [
1363
+ "Test string"
1364
+ ],
1365
+ genders: [
1366
+ "Test string"
1367
+ ],
1368
+ },
1369
+ availability: "Test string",
1370
+ availableQuantity: 42,
1371
+ availableTime: "Test string",
1372
+ brands: [
1373
+ "Test string"
1374
+ ],
1375
+ categories: [
1376
+ "Test string"
1377
+ ],
1378
+ collectionMemberIds: [
1379
+ "Test string"
1380
+ ],
1381
+ colorInfo: {
1382
+ colorFamilies: [
1383
+ "Test string"
1384
+ ],
1385
+ colors: [
1386
+ "Test string"
1387
+ ],
1388
+ },
1389
+ conditions: [
1390
+ "Test string"
1391
+ ],
1392
+ description: "Test string",
1393
+ expireTime: "Test string",
1394
+ fulfillmentInfo: [
1395
+ {
1396
+ placeIds: [
1397
+ "Test string"
1398
+ ],
1399
+ type: "Test string",
1400
+ }
1401
+ ],
1402
+ gtin: "Test string",
1403
+ id: "Test string",
1404
+ images: [
1405
+ {
1406
+ height: 42,
1407
+ uri: "Test string",
1408
+ width: 42,
1409
+ }
1410
+ ],
1411
+ languageCode: "Test string",
1412
+ materials: [
1413
+ "Test string"
1414
+ ],
1415
+ name: "Test string",
1416
+ patterns: [
1417
+ "Test string"
1418
+ ],
1419
+ priceInfo: {
1420
+ cost: 42,
1421
+ currencyCode: "Test string",
1422
+ originalPrice: 42,
1423
+ price: 42,
1424
+ priceEffectiveTime: "Test string",
1425
+ priceExpireTime: "Test string",
1426
+ priceRange: {
1427
+ originalPrice: {
1428
+ exclusiveMaximum: 42,
1429
+ exclusiveMinimum: 42,
1430
+ maximum: 42,
1431
+ minimum: 42,
1432
+ },
1433
+ price: {
1434
+ exclusiveMaximum: 42,
1435
+ exclusiveMinimum: 42,
1436
+ maximum: 42,
1437
+ minimum: 42,
1438
+ },
1439
+ },
1440
+ },
1441
+ primaryProductId: "Test string",
1442
+ promotions: [
1443
+ {
1444
+ promotionId: "Test string",
1445
+ }
1446
+ ],
1447
+ publishTime: "Test string",
1448
+ rating: {
1449
+ averageRating: 42,
1450
+ ratingCount: 42,
1451
+ ratingHistogram: [
1452
+ 42
1453
+ ],
1454
+ },
1455
+ retrievableFields: "Test string",
1456
+ sizes: [
1457
+ "Test string"
1458
+ ],
1459
+ tags: [
1460
+ "Test string"
1461
+ ],
1462
+ title: "Test string",
1463
+ ttl: "Test string",
1464
+ type: "Test string",
1465
+ uri: "Test string",
1466
+ variants: undefined,
1467
+ },
1468
+ quantity: 42,
1469
+ }
1470
+ ],
1471
+ purchaseTransaction: {
1472
+ cost: 42,
1473
+ currencyCode: "Test string",
1474
+ id: "Test string",
1475
+ revenue: 42,
1476
+ tax: 42,
1477
+ },
1478
+ referrerUri: "Test string",
1479
+ searchQuery: "Test string",
1480
+ sessionId: "Test string",
1481
+ uri: "Test string",
1482
+ userInfo: {
1483
+ directUserRequest: true,
1484
+ ipAddress: "Test string",
1485
+ userAgent: "Test string",
1486
+ userId: "Test string",
1487
+ },
1488
+ visitorId: "Test string",
1489
+ },
1490
+ validateOnly: true,
1491
+ });
1492
+ /** Performs a search. This feature is only available for users who have Retail Search enabled. Please enable Retail Search on Cloud Console before using this feature. */
1493
+ await gapi.client.retail.projects.locations.catalogs.placements.search({
1494
+ placement: "Test string",
1495
+ }, {
1496
+ boostSpec: {
1497
+ conditionBoostSpecs: [
1498
+ {
1499
+ boost: 42,
1500
+ condition: "Test string",
1501
+ }
1502
+ ],
1503
+ skipBoostSpecValidation: true,
1504
+ },
1505
+ branch: "Test string",
1506
+ canonicalFilter: "Test string",
1507
+ dynamicFacetSpec: {
1508
+ mode: "Test string",
1509
+ },
1510
+ facetSpecs: [
1511
+ {
1512
+ enableDynamicPosition: true,
1513
+ excludedFilterKeys: [
1514
+ "Test string"
1515
+ ],
1516
+ facetKey: {
1517
+ caseInsensitive: true,
1518
+ contains: [
1519
+ "Test string"
1520
+ ],
1521
+ intervals: [
1522
+ {
1523
+ exclusiveMaximum: 42,
1524
+ exclusiveMinimum: 42,
1525
+ maximum: 42,
1526
+ minimum: 42,
1527
+ }
1528
+ ],
1529
+ key: "Test string",
1530
+ orderBy: "Test string",
1531
+ prefixes: [
1532
+ "Test string"
1533
+ ],
1534
+ query: "Test string",
1535
+ restrictedValues: [
1536
+ "Test string"
1537
+ ],
1538
+ returnMinMax: true,
1539
+ },
1540
+ limit: 42,
1541
+ }
1542
+ ],
1543
+ filter: "Test string",
1544
+ labels: {
1545
+ A: "Test string"
1546
+ },
1547
+ offset: 42,
1548
+ orderBy: "Test string",
1549
+ pageCategories: [
1550
+ "Test string"
1551
+ ],
1552
+ pageSize: 42,
1553
+ pageToken: "Test string",
1554
+ personalizationSpec: {
1555
+ mode: "Test string",
1556
+ },
1557
+ query: "Test string",
1558
+ queryExpansionSpec: {
1559
+ condition: "Test string",
1560
+ pinUnexpandedResults: true,
1561
+ },
1562
+ relevanceThreshold: "Test string",
1563
+ searchMode: "Test string",
1564
+ spellCorrectionSpec: {
1565
+ mode: "Test string",
1566
+ },
1567
+ userInfo: {
1568
+ directUserRequest: true,
1569
+ ipAddress: "Test string",
1570
+ userAgent: "Test string",
1571
+ userId: "Test string",
1572
+ },
1573
+ variantRollupKeys: [
1574
+ "Test string"
1575
+ ],
1576
+ visitorId: "Test string",
1577
+ });
1578
+ /**
1579
+ * Enables a Control on the specified ServingConfig. The control is added in the last position of the list of controls it belongs to (e.g. if it's a facet spec control it will be applied
1580
+ * in the last position of servingConfig.facetSpecIds) Returns a ALREADY_EXISTS error if the control has already been applied. Returns a FAILED_PRECONDITION error if the addition could
1581
+ * exceed maximum number of control allowed for that type of control.
1582
+ */
1583
+ await gapi.client.retail.projects.locations.catalogs.servingConfigs.addControl({
1584
+ servingConfig: "Test string",
1585
+ }, {
1586
+ controlId: "Test string",
1587
+ });
1588
+ /** Creates a ServingConfig. A maximum of 100 ServingConfigs are allowed in a Catalog, otherwise a FAILED_PRECONDITION error is returned. */
1589
+ await gapi.client.retail.projects.locations.catalogs.servingConfigs.create({
1590
+ parent: "Test string",
1591
+ servingConfigId: "Test string",
1592
+ }, {
1593
+ boostControlIds: [
1594
+ "Test string"
1595
+ ],
1596
+ displayName: "Test string",
1597
+ diversityLevel: "Test string",
1598
+ doNotAssociateControlIds: [
1599
+ "Test string"
1600
+ ],
1601
+ dynamicFacetSpec: {
1602
+ mode: "Test string",
1603
+ },
1604
+ enableCategoryFilterLevel: "Test string",
1605
+ facetControlIds: [
1606
+ "Test string"
1607
+ ],
1608
+ filterControlIds: [
1609
+ "Test string"
1610
+ ],
1611
+ ignoreControlIds: [
1612
+ "Test string"
1613
+ ],
1614
+ modelId: "Test string",
1615
+ name: "Test string",
1616
+ onewaySynonymsControlIds: [
1617
+ "Test string"
1618
+ ],
1619
+ priceRerankingLevel: "Test string",
1620
+ redirectControlIds: [
1621
+ "Test string"
1622
+ ],
1623
+ replacementControlIds: [
1624
+ "Test string"
1625
+ ],
1626
+ solutionTypes: [
1627
+ "Test string"
1628
+ ],
1629
+ twowaySynonymsControlIds: [
1630
+ "Test string"
1631
+ ],
1632
+ });
1633
+ /** Deletes a ServingConfig. Returns a NotFound error if the ServingConfig does not exist. */
1634
+ await gapi.client.retail.projects.locations.catalogs.servingConfigs.delete({
1635
+ name: "Test string",
1636
+ });
1637
+ /** Gets a ServingConfig. Returns a NotFound error if the ServingConfig does not exist. */
1638
+ await gapi.client.retail.projects.locations.catalogs.servingConfigs.get({
1639
+ name: "Test string",
1640
+ });
1641
+ /** Lists all ServingConfigs linked to this catalog. */
1642
+ await gapi.client.retail.projects.locations.catalogs.servingConfigs.list({
1643
+ pageSize: 42,
1644
+ pageToken: "Test string",
1645
+ parent: "Test string",
1646
+ });
1647
+ /** Updates a ServingConfig. */
1648
+ await gapi.client.retail.projects.locations.catalogs.servingConfigs.patch({
1649
+ name: "Test string",
1650
+ updateMask: "Test string",
1651
+ }, {
1652
+ boostControlIds: [
1653
+ "Test string"
1654
+ ],
1655
+ displayName: "Test string",
1656
+ diversityLevel: "Test string",
1657
+ doNotAssociateControlIds: [
1658
+ "Test string"
1659
+ ],
1660
+ dynamicFacetSpec: {
1661
+ mode: "Test string",
1662
+ },
1663
+ enableCategoryFilterLevel: "Test string",
1664
+ facetControlIds: [
1665
+ "Test string"
1666
+ ],
1667
+ filterControlIds: [
1668
+ "Test string"
1669
+ ],
1670
+ ignoreControlIds: [
1671
+ "Test string"
1672
+ ],
1673
+ modelId: "Test string",
1674
+ name: "Test string",
1675
+ onewaySynonymsControlIds: [
1676
+ "Test string"
1677
+ ],
1678
+ priceRerankingLevel: "Test string",
1679
+ redirectControlIds: [
1680
+ "Test string"
1681
+ ],
1682
+ replacementControlIds: [
1683
+ "Test string"
1684
+ ],
1685
+ solutionTypes: [
1686
+ "Test string"
1687
+ ],
1688
+ twowaySynonymsControlIds: [
1689
+ "Test string"
1690
+ ],
1691
+ });
1692
+ /** Makes a recommendation prediction. */
1693
+ await gapi.client.retail.projects.locations.catalogs.servingConfigs.predict({
1694
+ placement: "Test string",
1695
+ }, {
1696
+ filter: "Test string",
1697
+ labels: {
1698
+ A: "Test string"
1699
+ },
1700
+ pageSize: 42,
1701
+ pageToken: "Test string",
1702
+ params: {
1703
+ A: 42
1704
+ },
1705
+ userEvent: {
1706
+ attributes: {
1707
+ A: {
1708
+ indexable: true,
1709
+ numbers: [
1710
+ 42
1711
+ ],
1712
+ searchable: true,
1713
+ text: [
1714
+ "Test string"
1715
+ ],
1716
+ }
1717
+ },
1718
+ attributionToken: "Test string",
1719
+ cartId: "Test string",
1720
+ completionDetail: {
1721
+ completionAttributionToken: "Test string",
1722
+ selectedPosition: 42,
1723
+ selectedSuggestion: "Test string",
1724
+ },
1725
+ eventTime: "Test string",
1726
+ eventType: "Test string",
1727
+ experimentIds: [
1728
+ "Test string"
1729
+ ],
1730
+ filter: "Test string",
1731
+ offset: 42,
1732
+ orderBy: "Test string",
1733
+ pageCategories: [
1734
+ "Test string"
1735
+ ],
1736
+ pageViewId: "Test string",
1737
+ productDetails: [
1738
+ {
1739
+ product: {
1740
+ attributes: {
1741
+ A: {
1742
+ indexable: true,
1743
+ numbers: [
1744
+ 42
1745
+ ],
1746
+ searchable: true,
1747
+ text: [
1748
+ "Test string"
1749
+ ],
1750
+ }
1751
+ },
1752
+ audience: {
1753
+ ageGroups: [
1754
+ "Test string"
1755
+ ],
1756
+ genders: [
1757
+ "Test string"
1758
+ ],
1759
+ },
1760
+ availability: "Test string",
1761
+ availableQuantity: 42,
1762
+ availableTime: "Test string",
1763
+ brands: [
1764
+ "Test string"
1765
+ ],
1766
+ categories: [
1767
+ "Test string"
1768
+ ],
1769
+ collectionMemberIds: [
1770
+ "Test string"
1771
+ ],
1772
+ colorInfo: {
1773
+ colorFamilies: [
1774
+ "Test string"
1775
+ ],
1776
+ colors: [
1777
+ "Test string"
1778
+ ],
1779
+ },
1780
+ conditions: [
1781
+ "Test string"
1782
+ ],
1783
+ description: "Test string",
1784
+ expireTime: "Test string",
1785
+ fulfillmentInfo: [
1786
+ {
1787
+ placeIds: [
1788
+ "Test string"
1789
+ ],
1790
+ type: "Test string",
1791
+ }
1792
+ ],
1793
+ gtin: "Test string",
1794
+ id: "Test string",
1795
+ images: [
1796
+ {
1797
+ height: 42,
1798
+ uri: "Test string",
1799
+ width: 42,
1800
+ }
1801
+ ],
1802
+ languageCode: "Test string",
1803
+ materials: [
1804
+ "Test string"
1805
+ ],
1806
+ name: "Test string",
1807
+ patterns: [
1808
+ "Test string"
1809
+ ],
1810
+ priceInfo: {
1811
+ cost: 42,
1812
+ currencyCode: "Test string",
1813
+ originalPrice: 42,
1814
+ price: 42,
1815
+ priceEffectiveTime: "Test string",
1816
+ priceExpireTime: "Test string",
1817
+ priceRange: {
1818
+ originalPrice: {
1819
+ exclusiveMaximum: 42,
1820
+ exclusiveMinimum: 42,
1821
+ maximum: 42,
1822
+ minimum: 42,
1823
+ },
1824
+ price: {
1825
+ exclusiveMaximum: 42,
1826
+ exclusiveMinimum: 42,
1827
+ maximum: 42,
1828
+ minimum: 42,
1829
+ },
1830
+ },
1831
+ },
1832
+ primaryProductId: "Test string",
1833
+ promotions: [
1834
+ {
1835
+ promotionId: "Test string",
1836
+ }
1837
+ ],
1838
+ publishTime: "Test string",
1839
+ rating: {
1840
+ averageRating: 42,
1841
+ ratingCount: 42,
1842
+ ratingHistogram: [
1843
+ 42
1844
+ ],
1845
+ },
1846
+ retrievableFields: "Test string",
1847
+ sizes: [
1848
+ "Test string"
1849
+ ],
1850
+ tags: [
1851
+ "Test string"
1852
+ ],
1853
+ title: "Test string",
1854
+ ttl: "Test string",
1855
+ type: "Test string",
1856
+ uri: "Test string",
1857
+ variants: undefined,
1858
+ },
1859
+ quantity: 42,
1860
+ }
1861
+ ],
1862
+ purchaseTransaction: {
1863
+ cost: 42,
1864
+ currencyCode: "Test string",
1865
+ id: "Test string",
1866
+ revenue: 42,
1867
+ tax: 42,
1868
+ },
1869
+ referrerUri: "Test string",
1870
+ searchQuery: "Test string",
1871
+ sessionId: "Test string",
1872
+ uri: "Test string",
1873
+ userInfo: {
1874
+ directUserRequest: true,
1875
+ ipAddress: "Test string",
1876
+ userAgent: "Test string",
1877
+ userId: "Test string",
1878
+ },
1879
+ visitorId: "Test string",
1880
+ },
1881
+ validateOnly: true,
1882
+ });
1883
+ /** Disables a Control on the specified ServingConfig. The control is removed from the ServingConfig. Returns a NOT_FOUND error if the Control is not enabled for the ServingConfig. */
1884
+ await gapi.client.retail.projects.locations.catalogs.servingConfigs.removeControl({
1885
+ servingConfig: "Test string",
1886
+ }, {
1887
+ controlId: "Test string",
1888
+ });
1889
+ /** Performs a search. This feature is only available for users who have Retail Search enabled. Please enable Retail Search on Cloud Console before using this feature. */
1890
+ await gapi.client.retail.projects.locations.catalogs.servingConfigs.search({
1891
+ placement: "Test string",
1892
+ }, {
1893
+ boostSpec: {
1894
+ conditionBoostSpecs: [
1895
+ {
1896
+ boost: 42,
1897
+ condition: "Test string",
1898
+ }
1899
+ ],
1900
+ skipBoostSpecValidation: true,
1901
+ },
1902
+ branch: "Test string",
1903
+ canonicalFilter: "Test string",
1904
+ dynamicFacetSpec: {
1905
+ mode: "Test string",
1906
+ },
1907
+ facetSpecs: [
1908
+ {
1909
+ enableDynamicPosition: true,
1910
+ excludedFilterKeys: [
1911
+ "Test string"
1912
+ ],
1913
+ facetKey: {
1914
+ caseInsensitive: true,
1915
+ contains: [
1916
+ "Test string"
1917
+ ],
1918
+ intervals: [
1919
+ {
1920
+ exclusiveMaximum: 42,
1921
+ exclusiveMinimum: 42,
1922
+ maximum: 42,
1923
+ minimum: 42,
1924
+ }
1925
+ ],
1926
+ key: "Test string",
1927
+ orderBy: "Test string",
1928
+ prefixes: [
1929
+ "Test string"
1930
+ ],
1931
+ query: "Test string",
1932
+ restrictedValues: [
1933
+ "Test string"
1934
+ ],
1935
+ returnMinMax: true,
1936
+ },
1937
+ limit: 42,
1938
+ }
1939
+ ],
1940
+ filter: "Test string",
1941
+ labels: {
1942
+ A: "Test string"
1943
+ },
1944
+ offset: 42,
1945
+ orderBy: "Test string",
1946
+ pageCategories: [
1947
+ "Test string"
1948
+ ],
1949
+ pageSize: 42,
1950
+ pageToken: "Test string",
1951
+ personalizationSpec: {
1952
+ mode: "Test string",
1953
+ },
1954
+ query: "Test string",
1955
+ queryExpansionSpec: {
1956
+ condition: "Test string",
1957
+ pinUnexpandedResults: true,
1958
+ },
1959
+ relevanceThreshold: "Test string",
1960
+ searchMode: "Test string",
1961
+ spellCorrectionSpec: {
1962
+ mode: "Test string",
1963
+ },
1964
+ userInfo: {
1965
+ directUserRequest: true,
1966
+ ipAddress: "Test string",
1967
+ userAgent: "Test string",
1968
+ userId: "Test string",
1969
+ },
1970
+ variantRollupKeys: [
1971
+ "Test string"
1972
+ ],
1973
+ visitorId: "Test string",
1974
+ });
1975
+ /**
1976
+ * Writes a single user event from the browser. This uses a GET request to due to browser restriction of POST-ing to a 3rd party domain. This method is used only by the Retail API
1977
+ * JavaScript pixel and Google Tag Manager. Users should not call this method directly.
1978
+ */
1979
+ await gapi.client.retail.projects.locations.catalogs.userEvents.collect({
1980
+ ets: "Test string",
1981
+ parent: "Test string",
1982
+ uri: "Test string",
1983
+ userEvent: "Test string",
1984
+ });
1985
+ /**
1986
+ * Bulk import of User events. Request processing might be synchronous. Events that already exist are skipped. Use this method for backfilling historical user events. Operation.response is
1987
+ * of type ImportResponse. Note that it is possible for a subset of the items to be successfully inserted. Operation.metadata is of type ImportMetadata.
1988
+ */
1989
+ await gapi.client.retail.projects.locations.catalogs.userEvents.import({
1990
+ parent: "Test string",
1991
+ }, {
1992
+ errorsConfig: {
1993
+ gcsPrefix: "Test string",
1994
+ },
1995
+ inputConfig: {
1996
+ bigQuerySource: {
1997
+ dataSchema: "Test string",
1998
+ datasetId: "Test string",
1999
+ gcsStagingDir: "Test string",
2000
+ partitionDate: {
2001
+ day: 42,
2002
+ month: 42,
2003
+ year: 42,
2004
+ },
2005
+ projectId: "Test string",
2006
+ tableId: "Test string",
2007
+ },
2008
+ gcsSource: {
2009
+ dataSchema: "Test string",
2010
+ inputUris: [
2011
+ "Test string"
2012
+ ],
2013
+ },
2014
+ userEventInlineSource: {
2015
+ userEvents: [
2016
+ {
2017
+ attributes: {
2018
+ A: {
2019
+ indexable: true,
2020
+ numbers: [
2021
+ 42
2022
+ ],
2023
+ searchable: true,
2024
+ text: [
2025
+ "Test string"
2026
+ ],
2027
+ }
2028
+ },
2029
+ attributionToken: "Test string",
2030
+ cartId: "Test string",
2031
+ completionDetail: {
2032
+ completionAttributionToken: "Test string",
2033
+ selectedPosition: 42,
2034
+ selectedSuggestion: "Test string",
2035
+ },
2036
+ eventTime: "Test string",
2037
+ eventType: "Test string",
2038
+ experimentIds: [
2039
+ "Test string"
2040
+ ],
2041
+ filter: "Test string",
2042
+ offset: 42,
2043
+ orderBy: "Test string",
2044
+ pageCategories: [
2045
+ "Test string"
2046
+ ],
2047
+ pageViewId: "Test string",
2048
+ productDetails: [
2049
+ {
2050
+ product: {
2051
+ attributes: {
2052
+ A: {
2053
+ indexable: true,
2054
+ numbers: [
2055
+ 42
2056
+ ],
2057
+ searchable: true,
2058
+ text: [
2059
+ "Test string"
2060
+ ],
2061
+ }
2062
+ },
2063
+ audience: {
2064
+ ageGroups: [
2065
+ "Test string"
2066
+ ],
2067
+ genders: [
2068
+ "Test string"
2069
+ ],
2070
+ },
2071
+ availability: "Test string",
2072
+ availableQuantity: 42,
2073
+ availableTime: "Test string",
2074
+ brands: [
2075
+ "Test string"
2076
+ ],
2077
+ categories: [
2078
+ "Test string"
2079
+ ],
2080
+ collectionMemberIds: [
2081
+ "Test string"
2082
+ ],
2083
+ colorInfo: {
2084
+ colorFamilies: [
2085
+ "Test string"
2086
+ ],
2087
+ colors: [
2088
+ "Test string"
2089
+ ],
2090
+ },
2091
+ conditions: [
2092
+ "Test string"
2093
+ ],
2094
+ description: "Test string",
2095
+ expireTime: "Test string",
2096
+ fulfillmentInfo: [
2097
+ {
2098
+ placeIds: [
2099
+ "Test string"
2100
+ ],
2101
+ type: "Test string",
2102
+ }
2103
+ ],
2104
+ gtin: "Test string",
2105
+ id: "Test string",
2106
+ images: [
2107
+ {
2108
+ height: 42,
2109
+ uri: "Test string",
2110
+ width: 42,
2111
+ }
2112
+ ],
2113
+ languageCode: "Test string",
2114
+ materials: [
2115
+ "Test string"
2116
+ ],
2117
+ name: "Test string",
2118
+ patterns: [
2119
+ "Test string"
2120
+ ],
2121
+ priceInfo: {
2122
+ cost: 42,
2123
+ currencyCode: "Test string",
2124
+ originalPrice: 42,
2125
+ price: 42,
2126
+ priceEffectiveTime: "Test string",
2127
+ priceExpireTime: "Test string",
2128
+ priceRange: {
2129
+ originalPrice: {
2130
+ exclusiveMaximum: 42,
2131
+ exclusiveMinimum: 42,
2132
+ maximum: 42,
2133
+ minimum: 42,
2134
+ },
2135
+ price: {
2136
+ exclusiveMaximum: 42,
2137
+ exclusiveMinimum: 42,
2138
+ maximum: 42,
2139
+ minimum: 42,
2140
+ },
2141
+ },
2142
+ },
2143
+ primaryProductId: "Test string",
2144
+ promotions: [
2145
+ {
2146
+ promotionId: "Test string",
2147
+ }
2148
+ ],
2149
+ publishTime: "Test string",
2150
+ rating: {
2151
+ averageRating: 42,
2152
+ ratingCount: 42,
2153
+ ratingHistogram: [
2154
+ 42
2155
+ ],
2156
+ },
2157
+ retrievableFields: "Test string",
2158
+ sizes: [
2159
+ "Test string"
2160
+ ],
2161
+ tags: [
2162
+ "Test string"
2163
+ ],
2164
+ title: "Test string",
2165
+ ttl: "Test string",
2166
+ type: "Test string",
2167
+ uri: "Test string",
2168
+ variants: undefined,
2169
+ },
2170
+ quantity: 42,
2171
+ }
2172
+ ],
2173
+ purchaseTransaction: {
2174
+ cost: 42,
2175
+ currencyCode: "Test string",
2176
+ id: "Test string",
2177
+ revenue: 42,
2178
+ tax: 42,
2179
+ },
2180
+ referrerUri: "Test string",
2181
+ searchQuery: "Test string",
2182
+ sessionId: "Test string",
2183
+ uri: "Test string",
2184
+ userInfo: {
2185
+ directUserRequest: true,
2186
+ ipAddress: "Test string",
2187
+ userAgent: "Test string",
2188
+ userId: "Test string",
2189
+ },
2190
+ visitorId: "Test string",
2191
+ }
2192
+ ],
2193
+ },
2194
+ },
2195
+ });
2196
+ /**
2197
+ * Deletes permanently all user events specified by the filter provided. Depending on the number of events specified by the filter, this operation could take hours or days to complete. To
2198
+ * test a filter, use the list command first.
2199
+ */
2200
+ await gapi.client.retail.projects.locations.catalogs.userEvents.purge({
2201
+ parent: "Test string",
2202
+ }, {
2203
+ filter: "Test string",
2204
+ force: true,
2205
+ });
2206
+ /**
2207
+ * Starts a user event rejoin operation with latest product catalog. Events will not be annotated with detailed product information if product is missing from the catalog at the time the
2208
+ * user event is ingested, and these events are stored as unjoined events with a limited usage on training and serving. This method can be used to start a join operation on specified
2209
+ * events with latest version of product catalog. It can also be used to correct events joined with the wrong product catalog. A rejoin operation can take hours or days to complete.
2210
+ */
2211
+ await gapi.client.retail.projects.locations.catalogs.userEvents.rejoin({
2212
+ parent: "Test string",
2213
+ }, {
2214
+ userEventRejoinScope: "Test string",
2215
+ });
2216
+ /** Writes a single user event. */
2217
+ await gapi.client.retail.projects.locations.catalogs.userEvents.write({
2218
+ parent: "Test string",
2219
+ }, {
2220
+ attributes: {
2221
+ A: {
2222
+ indexable: true,
2223
+ numbers: [
2224
+ 42
2225
+ ],
2226
+ searchable: true,
2227
+ text: [
2228
+ "Test string"
2229
+ ],
2230
+ }
2231
+ },
2232
+ attributionToken: "Test string",
2233
+ cartId: "Test string",
2234
+ completionDetail: {
2235
+ completionAttributionToken: "Test string",
2236
+ selectedPosition: 42,
2237
+ selectedSuggestion: "Test string",
2238
+ },
2239
+ eventTime: "Test string",
2240
+ eventType: "Test string",
2241
+ experimentIds: [
2242
+ "Test string"
2243
+ ],
2244
+ filter: "Test string",
2245
+ offset: 42,
2246
+ orderBy: "Test string",
2247
+ pageCategories: [
2248
+ "Test string"
2249
+ ],
2250
+ pageViewId: "Test string",
2251
+ productDetails: [
2252
+ {
2253
+ product: {
2254
+ attributes: {
2255
+ A: {
2256
+ indexable: true,
2257
+ numbers: [
2258
+ 42
2259
+ ],
2260
+ searchable: true,
2261
+ text: [
2262
+ "Test string"
2263
+ ],
2264
+ }
2265
+ },
2266
+ audience: {
2267
+ ageGroups: [
2268
+ "Test string"
2269
+ ],
2270
+ genders: [
2271
+ "Test string"
2272
+ ],
2273
+ },
2274
+ availability: "Test string",
2275
+ availableQuantity: 42,
2276
+ availableTime: "Test string",
2277
+ brands: [
2278
+ "Test string"
2279
+ ],
2280
+ categories: [
2281
+ "Test string"
2282
+ ],
2283
+ collectionMemberIds: [
2284
+ "Test string"
2285
+ ],
2286
+ colorInfo: {
2287
+ colorFamilies: [
2288
+ "Test string"
2289
+ ],
2290
+ colors: [
2291
+ "Test string"
2292
+ ],
2293
+ },
2294
+ conditions: [
2295
+ "Test string"
2296
+ ],
2297
+ description: "Test string",
2298
+ expireTime: "Test string",
2299
+ fulfillmentInfo: [
2300
+ {
2301
+ placeIds: [
2302
+ "Test string"
2303
+ ],
2304
+ type: "Test string",
2305
+ }
2306
+ ],
2307
+ gtin: "Test string",
2308
+ id: "Test string",
2309
+ images: [
2310
+ {
2311
+ height: 42,
2312
+ uri: "Test string",
2313
+ width: 42,
2314
+ }
2315
+ ],
2316
+ languageCode: "Test string",
2317
+ materials: [
2318
+ "Test string"
2319
+ ],
2320
+ name: "Test string",
2321
+ patterns: [
2322
+ "Test string"
2323
+ ],
2324
+ priceInfo: {
2325
+ cost: 42,
2326
+ currencyCode: "Test string",
2327
+ originalPrice: 42,
2328
+ price: 42,
2329
+ priceEffectiveTime: "Test string",
2330
+ priceExpireTime: "Test string",
2331
+ priceRange: {
2332
+ originalPrice: {
2333
+ exclusiveMaximum: 42,
2334
+ exclusiveMinimum: 42,
2335
+ maximum: 42,
2336
+ minimum: 42,
2337
+ },
2338
+ price: {
2339
+ exclusiveMaximum: 42,
2340
+ exclusiveMinimum: 42,
2341
+ maximum: 42,
2342
+ minimum: 42,
2343
+ },
2344
+ },
2345
+ },
2346
+ primaryProductId: "Test string",
2347
+ promotions: [
2348
+ {
2349
+ promotionId: "Test string",
2350
+ }
2351
+ ],
2352
+ publishTime: "Test string",
2353
+ rating: {
2354
+ averageRating: 42,
2355
+ ratingCount: 42,
2356
+ ratingHistogram: [
2357
+ 42
2358
+ ],
2359
+ },
2360
+ retrievableFields: "Test string",
2361
+ sizes: [
2362
+ "Test string"
2363
+ ],
2364
+ tags: [
2365
+ "Test string"
2366
+ ],
2367
+ title: "Test string",
2368
+ ttl: "Test string",
2369
+ type: "Test string",
2370
+ uri: "Test string",
2371
+ variants: undefined,
2372
+ },
2373
+ quantity: 42,
2374
+ }
2375
+ ],
2376
+ purchaseTransaction: {
2377
+ cost: 42,
2378
+ currencyCode: "Test string",
2379
+ id: "Test string",
2380
+ revenue: 42,
2381
+ tax: 42,
2382
+ },
2383
+ referrerUri: "Test string",
2384
+ searchQuery: "Test string",
2385
+ sessionId: "Test string",
2386
+ uri: "Test string",
2387
+ userInfo: {
2388
+ directUserRequest: true,
2389
+ ipAddress: "Test string",
2390
+ userAgent: "Test string",
2391
+ userId: "Test string",
2392
+ },
2393
+ visitorId: "Test string",
2394
+ });
2395
+ /** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
2396
+ await gapi.client.retail.projects.locations.operations.get({
2397
+ name: "Test string",
2398
+ });
2399
+ /**
2400
+ * Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to
2401
+ * override the binding to use different resource name schemes, such as `users/*‍/operations`. To override the binding, API services can add a binding such as
2402
+ * `"/v1/{name=users/*}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must
2403
+ * ensure the name binding is the parent resource, without the operations collection id.
2404
+ */
2405
+ await gapi.client.retail.projects.locations.operations.list({
2406
+ filter: "Test string",
2407
+ name: "Test string",
2408
+ pageSize: 42,
2409
+ pageToken: "Test string",
2410
+ });
2411
+ /** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
2412
+ await gapi.client.retail.projects.operations.get({
2413
+ name: "Test string",
2414
+ });
2415
+ /**
2416
+ * Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to
2417
+ * override the binding to use different resource name schemes, such as `users/*‍/operations`. To override the binding, API services can add a binding such as
2418
+ * `"/v1/{name=users/*}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must
2419
+ * ensure the name binding is the parent resource, without the operations collection id.
2420
+ */
2421
+ await gapi.client.retail.projects.operations.list({
2422
+ filter: "Test string",
2423
+ name: "Test string",
2424
+ pageSize: 42,
2425
+ pageToken: "Test string",
2426
+ });
2427
+ }
2428
+ });