vviinn-widgets 2.40.2 → 2.40.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/dist/cjs/{package-66fc2d42.js → package-54a34e30.js} +1 -1
  2. package/dist/cjs/vviinn-carousel_4.cjs.entry.js +1 -1
  3. package/dist/cjs/vviinn-vpr-button.cjs.entry.js +1 -1
  4. package/dist/cjs/vviinn-vps-button.cjs.entry.js +1 -1
  5. package/dist/cjs/vviinn-vps-widget.cjs.entry.js +1 -1
  6. package/dist/collection/collection-manifest.json +2 -2
  7. package/dist/collection/components/image-search/search-filters/search-filters.js +2 -2
  8. package/dist/collection/components/vviinn-carousel/vviinn-carousel.js +2 -2
  9. package/dist/collection/components/vviinn-example-image/vviinn-example-image.js +3 -3
  10. package/dist/collection/components/vviinn-image-selector/vviinn-image-selector.js +3 -3
  11. package/dist/collection/components/vviinn-image-view/vviinn-detected-object/vviinn-detected-object.js +2 -2
  12. package/dist/collection/components/vviinn-image-view/vviinn-image-view.js +2 -2
  13. package/dist/collection/components/vviinn-modal/vviinn-modal.js +1 -1
  14. package/dist/collection/components/vviinn-product-card/vviinn-product-card.js +5 -5
  15. package/dist/collection/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.js +1 -1
  16. package/dist/collection/components/vviinn-vpr-button/vviinn-vpr-button.js +10 -10
  17. package/dist/collection/components/vviinn-vpr-widget/vviinn-vpr-vidget.js +11 -11
  18. package/dist/collection/components/vviinn-vps-button/vviinn-vps-button.js +13 -13
  19. package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.js +13 -13
  20. package/dist/collection/interfaces/generated.js +1 -0
  21. package/dist/esm/{package-e0b16841.js → package-45ccc0a3.js} +1 -1
  22. package/dist/esm/vviinn-carousel_4.entry.js +1 -1
  23. package/dist/esm/vviinn-vpr-button.entry.js +1 -1
  24. package/dist/esm/vviinn-vps-button.entry.js +1 -1
  25. package/dist/esm/vviinn-vps-widget.entry.js +1 -1
  26. package/dist/types/analytics/GAnalytics.d.ts +4 -4
  27. package/dist/types/interfaces/generated.d.ts +869 -0
  28. package/dist/vviinn-widgets/{p-f2486332.entry.js → p-2e7f7b84.entry.js} +1 -1
  29. package/{www/build/p-28feba37.entry.js → dist/vviinn-widgets/p-684e4690.entry.js} +1 -1
  30. package/dist/vviinn-widgets/{p-e12ab596.entry.js → p-b35a362b.entry.js} +1 -1
  31. package/dist/vviinn-widgets/p-ccb91f56.js +1 -0
  32. package/dist/vviinn-widgets/{p-c6e8ddfb.entry.js → p-d39e2c57.entry.js} +1 -1
  33. package/dist/vviinn-widgets/vviinn-widgets.esm.js +1 -1
  34. package/package.json +1 -1
  35. package/www/build/{p-f2486332.entry.js → p-2e7f7b84.entry.js} +1 -1
  36. package/www/build/p-3365c8ea.js +1 -0
  37. package/{dist/vviinn-widgets/p-28feba37.entry.js → www/build/p-684e4690.entry.js} +1 -1
  38. package/www/build/p-a67898be.css +1 -0
  39. package/www/build/{p-e12ab596.entry.js → p-b35a362b.entry.js} +1 -1
  40. package/www/build/p-ccb91f56.js +1 -0
  41. package/www/build/{p-c6e8ddfb.entry.js → p-d39e2c57.entry.js} +1 -1
  42. package/www/build/vviinn-widgets.esm.js +1 -1
  43. package/www/index.html +2 -2
  44. package/dist/vviinn-widgets/p-b51f27f5.js +0 -1
  45. package/www/build/p-b51f27f5.js +0 -1
@@ -0,0 +1,869 @@
1
+ /**
2
+ * This file was auto-generated by openapi-typescript.
3
+ * Do not make direct changes to the file.
4
+ */
5
+ export interface paths {
6
+ "/products": {
7
+ /** Returns all products which has at least one image */
8
+ get: operations["GetProducts"];
9
+ };
10
+ "/category-tree": {
11
+ /** Save or publish the categoryTree */
12
+ put: operations["SaveCategoryTree"];
13
+ };
14
+ "/product/{product-id}/annotation": {
15
+ /** Save or publish the product */
16
+ put: operations["SaveProduct"];
17
+ };
18
+ "/product/{product-id}/similar-products": {
19
+ /** Return most similar products to input one */
20
+ get: operations["GetSimilarProductsToInputImage"];
21
+ };
22
+ "/product/{product-id}/similar-products/{category}": {
23
+ /** Return most similar products to input one in specific category */
24
+ get: operations["GetSimilarProductsToInputImageInSpecificCategory"];
25
+ };
26
+ "/product/{product-id}/cross-selling-products": {
27
+ /** Return cross selling products to input one */
28
+ get: operations["GetCrossSellingProductsToInputImage"];
29
+ };
30
+ "/product/{product-id}/cross-selling-products/{category}": {
31
+ /** Return cross selling products to input one in specific category */
32
+ get: operations["GetCrossSellingProductsToInputImageInSpecificCategory"];
33
+ };
34
+ "/image/{image-id}": {
35
+ /** Deletes all images from a site on a given image id */
36
+ delete: operations["DeleteImageById"];
37
+ };
38
+ "/product/{product-id}/full": {
39
+ /** Deletes product and its images from a site on a given product id */
40
+ delete: operations["DeleteFullProduct"];
41
+ parameters: {
42
+ path: {
43
+ "product-id": string;
44
+ };
45
+ };
46
+ };
47
+ "/product/{product-id}": {
48
+ /** Deletes all images from a site on a given product id */
49
+ delete: operations["DeleteImageByProductId"];
50
+ parameters: {
51
+ path: {
52
+ "product-id": string;
53
+ };
54
+ };
55
+ };
56
+ "/product/{product-id}/image/{image-id}": {
57
+ /** Upload image directly to catalog and trigger feature extraction */
58
+ put: operations["AddImage"];
59
+ /** Deletes all images from a site on given product and image ids */
60
+ delete: operations["DeleteImageByImageIdAndProductId"];
61
+ };
62
+ "/search/session": {
63
+ /** Starts a reusable search session for a one image. */
64
+ post: operations["CreateSearchSession"];
65
+ };
66
+ "/search/session/{search-id}": {
67
+ /** Starts a search in existing session. */
68
+ get: operations["SearchInExistingSession"];
69
+ };
70
+ "/search/session/{search-id}/category/{category}": {
71
+ /** Starts a search in existing session in specific category. */
72
+ get: operations["SearchInExistingSessionWithCategory"];
73
+ };
74
+ "/search/session/{search-id}/detect-objects": {
75
+ /** Get detected objects of image in existing session. */
76
+ get: operations["DetectObjectsOfImageInExistingSession"];
77
+ };
78
+ "/search/session/{search-id}/upload-image": {
79
+ /** Upload high resolution image to existing session. */
80
+ put: operations["UploadHighResolutionImageToExistingSession"];
81
+ };
82
+ }
83
+ export interface components {
84
+ schemas: {
85
+ "ion-detected-object-rectangle": {
86
+ left?: number;
87
+ top?: number;
88
+ width?: number;
89
+ height?: number;
90
+ };
91
+ "ion-detected-object-value": {
92
+ classId?: number;
93
+ class?: string;
94
+ score?: number;
95
+ rectangle?: components["schemas"]["ion-detected-object-rectangle"];
96
+ };
97
+ "ion-detected-object": {
98
+ value?: components["schemas"]["ion-detected-object-value"];
99
+ links?: {
100
+ [key: string]: components["schemas"]["ion-link"];
101
+ };
102
+ };
103
+ "ion-detected-objects": {
104
+ value?: components["schemas"]["ion-detected-object"][];
105
+ };
106
+ "delete-image-by-productId-and-imageId-404-error": {
107
+ "site-id"?: number;
108
+ "product-id"?: string;
109
+ "image-id"?: string;
110
+ };
111
+ "delete-image-by-productId-and-imageId-400-error": {
112
+ siteId?: number;
113
+ imageCode?: string;
114
+ productCode?: string;
115
+ };
116
+ "delete-image-error": {
117
+ "site-id"?: number;
118
+ "image-id"?: string;
119
+ };
120
+ "delete-image-by-imageId": {
121
+ "site-id"?: number;
122
+ "number-of-products"?: number;
123
+ "image-id"?: string;
124
+ };
125
+ "image-by-productId-and-imageId": {
126
+ "site-id"?: number;
127
+ "product-id"?: string;
128
+ "image-id"?: string;
129
+ url?: string;
130
+ };
131
+ "delete-product-images-by-productId": {
132
+ "site-id"?: number;
133
+ "product-id"?: string;
134
+ "image-ids"?: unknown[];
135
+ };
136
+ "product-data": {
137
+ title: string;
138
+ description?: string;
139
+ link?: string;
140
+ availability?: "in_stock" | "out_of_stock" | "preorder" | "backorder";
141
+ availability_date?: string;
142
+ cost_of_goods_sold?: string;
143
+ expiration_date?: string;
144
+ price?: number;
145
+ sale_price?: number;
146
+ sale_price_effective_date?: string;
147
+ unit_pricing_measure?: string;
148
+ unit_pricing_base_measure?: string;
149
+ installment?: string;
150
+ subscription_cost?: string;
151
+ loyalty_points?: string;
152
+ google_product_category?: string;
153
+ product_type?: string;
154
+ brand?: string;
155
+ gtin?: string;
156
+ mpn?: string;
157
+ identifier_exists?: boolean;
158
+ condition?: "new" | "refurbished" | "used";
159
+ adult?: boolean;
160
+ multipack?: number;
161
+ is_bundle?: boolean;
162
+ energy_efficiency_class?: "A+++" | "A++" | "A+" | "A" | "B" | "C" | "D" | "E" | "F" | "G";
163
+ min_energy_efficiency_class?: "A+++" | "A++" | "A+" | "A" | "B" | "C" | "D" | "E" | "F" | "G";
164
+ max_energy_efficiency_class?: "A+++" | "A++" | "A+" | "A" | "B" | "C" | "D" | "E" | "F" | "G";
165
+ age_group?: "newborn" | "infant" | "toddler" | "kids" | "adult";
166
+ color?: string;
167
+ gender?: "male" | "female" | "unisex";
168
+ material?: string;
169
+ pattern?: string;
170
+ size?: string;
171
+ size_type?: "regular" | "petite" | "tall" | "plus" | "big" | "maternity";
172
+ size_system?: "AU" | "BR" | "CN" | "DE" | "EU" | "FR" | "IT" | "JP" | "MEX" | "UK" | "US";
173
+ item_group_id?: string;
174
+ ads_redirect?: string;
175
+ custom_label_0?: string;
176
+ custom_label_1?: string;
177
+ custom_label_2?: string;
178
+ custom_label_3?: string;
179
+ custom_label_4?: string;
180
+ promotion_id?: string;
181
+ excluded_destination?: "Shopping_ads" | "Buy_on_Google_listings" | "Display_ads" | "Local_inventory_ads" | "Free_listings" | "Free_local_listings";
182
+ included_destination?: "Shopping_ads" | "Buy_on_Google_listings" | "Display_ads" | "Local_inventory_ads" | "Free_listings" | "Free_local_listings";
183
+ shipping?: string;
184
+ shipping_label?: string;
185
+ shipping_weight?: string;
186
+ shipping_length?: string;
187
+ shipping_width?: string;
188
+ shipping_height?: string;
189
+ transit_time_label?: string;
190
+ max_handling_time?: string;
191
+ min_handling_time?: string;
192
+ tax?: string;
193
+ tax_category?: string;
194
+ product_detail?: string;
195
+ shopping_ads_excluded_country?: string;
196
+ product_highlight?: string;
197
+ categories?: unknown[];
198
+ };
199
+ product: {
200
+ "site-id"?: number;
201
+ "product-id"?: string;
202
+ data?: components["schemas"]["product-data"];
203
+ };
204
+ "product-annotation": {
205
+ message: string;
206
+ data: components["schemas"]["product"];
207
+ }[];
208
+ "product-annotation-images": {
209
+ url?: string;
210
+ };
211
+ "product-annotation-error": {
212
+ message: string;
213
+ data: components["schemas"]["product"];
214
+ debug?: string;
215
+ }[];
216
+ "category-tree": {
217
+ id: string;
218
+ title: string;
219
+ parentId: string;
220
+ }[];
221
+ products: {
222
+ productIds?: unknown[];
223
+ };
224
+ "visual-product-search-object": {
225
+ groupId?: string | null;
226
+ productId?: string;
227
+ title?: string;
228
+ /** link to the product detail page */
229
+ deeplink?: string | null;
230
+ brand?: string | null;
231
+ productType?: string | null;
232
+ image?: {
233
+ original?: string;
234
+ thumbnail?: string | null;
235
+ };
236
+ price?: {
237
+ actual?: number | null;
238
+ sale?: number | null;
239
+ };
240
+ };
241
+ "category-filter": components["schemas"]["ion-link"] & {
242
+ name: string;
243
+ };
244
+ "name-value-item": {
245
+ name: string;
246
+ value: string;
247
+ };
248
+ "ion-link": {
249
+ method: string;
250
+ href: string;
251
+ };
252
+ "search-area": components["schemas"]["ion-link"] & {
253
+ rel: string[];
254
+ value: components["schemas"]["name-value-item"][];
255
+ };
256
+ "upload-high-resolution-image": components["schemas"]["ion-link"] & {
257
+ rel: string[];
258
+ value: components["schemas"]["name-value-item"][];
259
+ };
260
+ "visual-product-search": components["schemas"]["visual-product-search-object"][];
261
+ "ion-visual-product-search": {
262
+ value?: components["schemas"]["visual-product-search-object"][];
263
+ type?: string;
264
+ searchArea?: components["schemas"]["search-area"];
265
+ uploadHighResolutionImage?: components["schemas"]["upload-high-resolution-image"];
266
+ filters?: {
267
+ type?: string;
268
+ value?: {
269
+ categories?: components["schemas"]["category-filter"][];
270
+ };
271
+ };
272
+ links?: {
273
+ [key: string]: components["schemas"]["ion-link"];
274
+ };
275
+ detectedObjects?: components["schemas"]["ion-detected-object"][];
276
+ };
277
+ "visual-product-recommendations": {
278
+ bestFits?: string[];
279
+ extended?: components["schemas"]["visual-product-search"][];
280
+ };
281
+ };
282
+ responses: {
283
+ /** detected objects response */
284
+ "ion-detected-objects": {
285
+ content: {
286
+ "application/json": components["schemas"]["ion-detected-objects"];
287
+ };
288
+ };
289
+ /** success */
290
+ "visual-product-search": {
291
+ content: {
292
+ "application/json": components["schemas"]["visual-product-search"];
293
+ };
294
+ };
295
+ /** success */
296
+ "ion-visual-product-search": {
297
+ content: {
298
+ "application/json": components["schemas"]["ion-visual-product-search"];
299
+ };
300
+ };
301
+ /** success */
302
+ "visual-product-recommendation": {
303
+ content: {
304
+ "application/json": components["schemas"]["visual-product-recommendations"];
305
+ };
306
+ };
307
+ /** Authentication Error */
308
+ "authentication-error": {
309
+ content: {
310
+ "application/json": unknown;
311
+ };
312
+ };
313
+ /** Authorization Error */
314
+ "authorization-error": {
315
+ content: {
316
+ "application/json": unknown;
317
+ };
318
+ };
319
+ };
320
+ parameters: {
321
+ "campaign-id": number;
322
+ campaigns: string;
323
+ "image-code": string;
324
+ };
325
+ requestBodies: {
326
+ /** Product data object */
327
+ "product-annotation": {
328
+ content: {
329
+ "application/json": {
330
+ data?: components["schemas"]["product-data"];
331
+ images?: components["schemas"]["product-annotation-images"][];
332
+ };
333
+ };
334
+ };
335
+ };
336
+ }
337
+ export interface operations {
338
+ /** Returns all products which has at least one image */
339
+ GetProducts: {
340
+ responses: {
341
+ /** success */
342
+ 200: {
343
+ content: {
344
+ "application/json": components["schemas"]["products"];
345
+ };
346
+ };
347
+ /** An exception occurred on products */
348
+ 400: {
349
+ content: {
350
+ "application/json": unknown;
351
+ };
352
+ };
353
+ 401: components["responses"]["authentication-error"];
354
+ 403: components["responses"]["authorization-error"];
355
+ };
356
+ };
357
+ /** Save or publish the categoryTree */
358
+ SaveCategoryTree: {
359
+ responses: {
360
+ /** success */
361
+ 200: {
362
+ content: {
363
+ "application/json": unknown;
364
+ };
365
+ };
366
+ /** Could not save or publish the category */
367
+ 400: {
368
+ content: {
369
+ "application/json": unknown;
370
+ };
371
+ };
372
+ 401: components["responses"]["authentication-error"];
373
+ 403: components["responses"]["authorization-error"];
374
+ /** Invalid structure passed to endpoint */
375
+ 422: {
376
+ content: {
377
+ "application/json": unknown;
378
+ };
379
+ };
380
+ };
381
+ /** List of category objects */
382
+ requestBody: {
383
+ content: {
384
+ "application/json": components["schemas"]["category-tree"];
385
+ };
386
+ };
387
+ };
388
+ /** Save or publish the product */
389
+ SaveProduct: {
390
+ parameters: {
391
+ path: {
392
+ "product-id": string;
393
+ };
394
+ };
395
+ responses: {
396
+ /** success */
397
+ 200: {
398
+ content: {
399
+ "application/json": components["schemas"]["product-annotation"];
400
+ };
401
+ };
402
+ /** Could not save or publish the product */
403
+ 400: {
404
+ content: {
405
+ "application/json": components["schemas"]["product-annotation-error"];
406
+ };
407
+ };
408
+ 401: components["responses"]["authentication-error"];
409
+ 403: components["responses"]["authorization-error"];
410
+ };
411
+ requestBody: components["requestBodies"]["product-annotation"];
412
+ };
413
+ /** Return most similar products to input one */
414
+ GetSimilarProductsToInputImage: {
415
+ parameters: {
416
+ path: {
417
+ "product-id": string;
418
+ };
419
+ query: {
420
+ "similar-products-count"?: number;
421
+ campaigns?: components["parameters"]["campaigns"];
422
+ "image-code"?: components["parameters"]["image-code"];
423
+ };
424
+ };
425
+ responses: {
426
+ 200: components["responses"]["visual-product-recommendation"];
427
+ /** An exception occurred on load similar products */
428
+ 400: {
429
+ content: {
430
+ "application/json": unknown;
431
+ };
432
+ };
433
+ 401: components["responses"]["authentication-error"];
434
+ 403: components["responses"]["authorization-error"];
435
+ /** Wait timeout exception occured on load similar products */
436
+ 504: {
437
+ content: {
438
+ "application/json": unknown;
439
+ };
440
+ };
441
+ };
442
+ };
443
+ /** Return most similar products to input one in specific category */
444
+ GetSimilarProductsToInputImageInSpecificCategory: {
445
+ parameters: {
446
+ path: {
447
+ "product-id": string;
448
+ category: string;
449
+ };
450
+ query: {
451
+ "similar-products-count": number;
452
+ campaigns?: components["parameters"]["campaigns"];
453
+ "image-code"?: components["parameters"]["image-code"];
454
+ };
455
+ };
456
+ responses: {
457
+ 200: components["responses"]["visual-product-recommendation"];
458
+ /** An exception occurred on load similar products */
459
+ 400: {
460
+ content: {
461
+ "application/json": unknown;
462
+ };
463
+ };
464
+ 401: components["responses"]["authentication-error"];
465
+ 403: components["responses"]["authorization-error"];
466
+ /** Wait timeout exception occured on load similar products */
467
+ 504: {
468
+ content: {
469
+ "application/json": unknown;
470
+ };
471
+ };
472
+ };
473
+ };
474
+ /** Return cross selling products to input one */
475
+ GetCrossSellingProductsToInputImage: {
476
+ parameters: {
477
+ path: {
478
+ "product-id": string;
479
+ };
480
+ query: {
481
+ "cross-selling-products-count"?: number;
482
+ campaigns?: components["parameters"]["campaigns"];
483
+ "image-code"?: components["parameters"]["image-code"];
484
+ };
485
+ };
486
+ responses: {
487
+ 200: components["responses"]["visual-product-search"];
488
+ /** An exception occurred on load similar products */
489
+ 400: {
490
+ content: {
491
+ "application/json": unknown;
492
+ };
493
+ };
494
+ 401: components["responses"]["authentication-error"];
495
+ 403: components["responses"]["authorization-error"];
496
+ /** Wait timeout exception occured on load similar products */
497
+ 504: {
498
+ content: {
499
+ "application/json": unknown;
500
+ };
501
+ };
502
+ };
503
+ };
504
+ /** Return cross selling products to input one in specific category */
505
+ GetCrossSellingProductsToInputImageInSpecificCategory: {
506
+ parameters: {
507
+ path: {
508
+ "product-id": string;
509
+ category: string;
510
+ };
511
+ query: {
512
+ "cross-selling-products-count": number;
513
+ campaigns?: components["parameters"]["campaigns"];
514
+ "image-code"?: components["parameters"]["image-code"];
515
+ };
516
+ };
517
+ responses: {
518
+ 200: components["responses"]["visual-product-search"];
519
+ /** An exception occurred on load similar products */
520
+ 400: {
521
+ content: {
522
+ "application/json": unknown;
523
+ };
524
+ };
525
+ 401: components["responses"]["authentication-error"];
526
+ 403: components["responses"]["authorization-error"];
527
+ /** Wait timeout exception occured on load similar products */
528
+ 504: {
529
+ content: {
530
+ "application/json": unknown;
531
+ };
532
+ };
533
+ };
534
+ };
535
+ /** Deletes all images from a site on a given image id */
536
+ DeleteImageById: {
537
+ parameters: {
538
+ path: {
539
+ "image-id": string;
540
+ };
541
+ };
542
+ responses: {
543
+ /** success */
544
+ 200: {
545
+ content: {
546
+ "application/json": {
547
+ message?: string;
548
+ data?: components["schemas"]["delete-image-by-imageId"];
549
+ };
550
+ };
551
+ };
552
+ /** Could not delete the image */
553
+ 400: {
554
+ content: {
555
+ "application/json": {
556
+ message?: string;
557
+ data?: components["schemas"]["delete-image-error"];
558
+ debug?: string;
559
+ };
560
+ };
561
+ };
562
+ 401: components["responses"]["authentication-error"];
563
+ 403: components["responses"]["authorization-error"];
564
+ /** Unable to find any matching image */
565
+ 404: {
566
+ content: {
567
+ "application/json": {
568
+ message?: string;
569
+ data?: components["schemas"]["delete-image-error"];
570
+ };
571
+ };
572
+ };
573
+ };
574
+ };
575
+ /** Deletes product and its images from a site on a given product id */
576
+ DeleteFullProduct: {
577
+ parameters: {
578
+ path: {
579
+ "product-id": string;
580
+ };
581
+ };
582
+ responses: {
583
+ /** success */
584
+ 200: {
585
+ content: {
586
+ "application/json": {
587
+ message?: string;
588
+ data?: components["schemas"]["delete-product-images-by-productId"];
589
+ };
590
+ };
591
+ };
592
+ /** Could not delete the image */
593
+ 400: {
594
+ content: {
595
+ "application/json": {
596
+ message?: string;
597
+ data?: components["schemas"]["delete-image-error"];
598
+ debug?: string;
599
+ };
600
+ };
601
+ };
602
+ 401: components["responses"]["authentication-error"];
603
+ 403: components["responses"]["authorization-error"];
604
+ /** Unable to find any image of the product */
605
+ 404: {
606
+ content: {
607
+ "application/json": {
608
+ message?: string;
609
+ data?: components["schemas"]["delete-image-error"];
610
+ };
611
+ };
612
+ };
613
+ };
614
+ };
615
+ /** Deletes all images from a site on a given product id */
616
+ DeleteImageByProductId: {
617
+ parameters: {
618
+ path: {
619
+ "product-id": string;
620
+ };
621
+ };
622
+ responses: {
623
+ /** success */
624
+ 200: {
625
+ content: {
626
+ "application/json": {
627
+ message?: string;
628
+ data?: components["schemas"]["delete-product-images-by-productId"];
629
+ };
630
+ };
631
+ };
632
+ /** Could not delete the image */
633
+ 400: {
634
+ content: {
635
+ "application/json": {
636
+ message?: string;
637
+ data?: components["schemas"]["delete-image-error"];
638
+ debug?: string;
639
+ };
640
+ };
641
+ };
642
+ 401: components["responses"]["authentication-error"];
643
+ 403: components["responses"]["authorization-error"];
644
+ /** Unable to find any image of the product */
645
+ 404: {
646
+ content: {
647
+ "application/json": {
648
+ message?: string;
649
+ data?: components["schemas"]["delete-image-error"];
650
+ };
651
+ };
652
+ };
653
+ };
654
+ };
655
+ /** Upload image directly to catalog and trigger feature extraction */
656
+ AddImage: {
657
+ parameters: {
658
+ path: {
659
+ "product-id": string;
660
+ "image-id": string;
661
+ };
662
+ };
663
+ responses: {
664
+ /** success */
665
+ 200: {
666
+ content: {
667
+ "application/json": {
668
+ message?: string;
669
+ data?: components["schemas"]["image-by-productId-and-imageId"];
670
+ };
671
+ };
672
+ };
673
+ /** Could not save or publish the image */
674
+ 400: {
675
+ content: {
676
+ "application/json": {
677
+ message?: string;
678
+ data?: components["schemas"]["image-by-productId-and-imageId"];
679
+ debug?: string;
680
+ };
681
+ };
682
+ };
683
+ 401: components["responses"]["authentication-error"];
684
+ 403: components["responses"]["authorization-error"];
685
+ /** Unable to find product to add this image to */
686
+ 404: {
687
+ content: {
688
+ "application/json": {
689
+ message?: string;
690
+ data?: components["schemas"]["image-by-productId-and-imageId"];
691
+ };
692
+ };
693
+ };
694
+ };
695
+ /** Image url */
696
+ requestBody: {
697
+ content: {
698
+ "application/x-www-form-urlencoded": {
699
+ "image-url": string;
700
+ };
701
+ };
702
+ };
703
+ };
704
+ /** Deletes all images from a site on given product and image ids */
705
+ DeleteImageByImageIdAndProductId: {
706
+ parameters: {
707
+ path: {
708
+ "product-id": string;
709
+ "image-id": string;
710
+ };
711
+ };
712
+ responses: {
713
+ /** success */
714
+ 200: {
715
+ content: {
716
+ "application/json": {
717
+ message?: string;
718
+ data?: components["schemas"]["image-by-productId-and-imageId"];
719
+ };
720
+ };
721
+ };
722
+ /** Could not delete the image */
723
+ 400: {
724
+ content: {
725
+ "application/json": {
726
+ message?: string;
727
+ data?: components["schemas"]["delete-image-by-productId-and-imageId-400-error"];
728
+ debug?: string;
729
+ };
730
+ };
731
+ };
732
+ 401: components["responses"]["authentication-error"];
733
+ 403: components["responses"]["authorization-error"];
734
+ /** Unable to find image. */
735
+ 404: {
736
+ content: {
737
+ "application/json": {
738
+ message?: string;
739
+ data?: components["schemas"]["delete-image-by-productId-and-imageId-404-error"];
740
+ };
741
+ };
742
+ };
743
+ };
744
+ };
745
+ /** Starts a reusable search session for a one image. */
746
+ CreateSearchSession: {
747
+ parameters: {
748
+ query: {
749
+ "campaign-id"?: components["parameters"]["campaign-id"];
750
+ };
751
+ };
752
+ responses: {
753
+ 200: components["responses"]["ion-visual-product-search"];
754
+ /** ProductSearch exception */
755
+ 400: {
756
+ content: {
757
+ "application/json": unknown;
758
+ };
759
+ };
760
+ 401: components["responses"]["authentication-error"];
761
+ 403: components["responses"]["authorization-error"];
762
+ };
763
+ requestBody: {
764
+ content: {
765
+ "multipart/form-data": {
766
+ image: string;
767
+ };
768
+ };
769
+ };
770
+ };
771
+ /** Starts a search in existing session. */
772
+ SearchInExistingSession: {
773
+ parameters: {
774
+ path: {
775
+ "search-id": string;
776
+ };
777
+ query: {
778
+ "campaign-id"?: components["parameters"]["campaign-id"];
779
+ };
780
+ };
781
+ responses: {
782
+ 200: components["responses"]["ion-visual-product-search"];
783
+ /** ProductSearch exception */
784
+ 400: {
785
+ content: {
786
+ "application/json": unknown;
787
+ };
788
+ };
789
+ 401: components["responses"]["authentication-error"];
790
+ 403: components["responses"]["authorization-error"];
791
+ };
792
+ };
793
+ /** Starts a search in existing session in specific category. */
794
+ SearchInExistingSessionWithCategory: {
795
+ parameters: {
796
+ path: {
797
+ "search-id": string;
798
+ category: string;
799
+ };
800
+ query: {
801
+ "campaign-id"?: components["parameters"]["campaign-id"];
802
+ };
803
+ };
804
+ responses: {
805
+ 200: components["responses"]["ion-visual-product-search"];
806
+ /** ProductSearch exception */
807
+ 400: {
808
+ content: {
809
+ "application/json": unknown;
810
+ };
811
+ };
812
+ 401: components["responses"]["authentication-error"];
813
+ 403: components["responses"]["authorization-error"];
814
+ };
815
+ };
816
+ /** Get detected objects of image in existing session. */
817
+ DetectObjectsOfImageInExistingSession: {
818
+ parameters: {
819
+ path: {
820
+ "search-id": string;
821
+ };
822
+ query: {
823
+ "campaign-id"?: components["parameters"]["campaign-id"];
824
+ };
825
+ };
826
+ responses: {
827
+ 200: components["responses"]["ion-detected-objects"];
828
+ /** ProductSearch exception */
829
+ 400: {
830
+ content: {
831
+ "application/json": unknown;
832
+ };
833
+ };
834
+ 401: components["responses"]["authentication-error"];
835
+ 403: components["responses"]["authorization-error"];
836
+ };
837
+ };
838
+ /** Upload high resolution image to existing session. */
839
+ UploadHighResolutionImageToExistingSession: {
840
+ parameters: {
841
+ path: {
842
+ "search-id": string;
843
+ };
844
+ query: {
845
+ "campaign-id"?: components["parameters"]["campaign-id"];
846
+ };
847
+ };
848
+ responses: {
849
+ /** success */
850
+ 200: {
851
+ content: {
852
+ "application/json": {
853
+ message?: string;
854
+ };
855
+ };
856
+ };
857
+ /** ProductSearch exception */
858
+ 400: {
859
+ content: {
860
+ "application/json": unknown;
861
+ };
862
+ };
863
+ 401: components["responses"]["authentication-error"];
864
+ 403: components["responses"]["authorization-error"];
865
+ };
866
+ };
867
+ }
868
+ export interface external {
869
+ }