@thelllabs/winehaus-sdk 0.0.6 → 0.0.8

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.
@@ -90,6 +90,7 @@ export var TenantRoleEnum;
90
90
  TenantRoleEnum["Operator"] = "operator";
91
91
  TenantRoleEnum["Admin"] = "admin";
92
92
  TenantRoleEnum["Owner"] = "owner";
93
+ TenantRoleEnum["Customer"] = "customer";
93
94
  })(TenantRoleEnum || (TenantRoleEnum = {}));
94
95
  export var TenantUserStatusEnum;
95
96
  (function (TenantUserStatusEnum) {
@@ -309,6 +310,286 @@ var Api = /** @class */ (function (_super) {
309
310
  if (params === void 0) { params = {}; }
310
311
  return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/users"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
311
312
  },
313
+ /**
314
+ * No description
315
+ *
316
+ * @tags Admin Tenant Wines
317
+ * @name CreateTenantWine
318
+ * @request POST:/admin/tenants/{tenantId}/wines
319
+ * @secure
320
+ * @response `201` `WineEntityDto`
321
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
322
+ */
323
+ createTenantWine: function (tenantId, data, params) {
324
+ if (params === void 0) { params = {}; }
325
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wines"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
326
+ },
327
+ /**
328
+ * No description
329
+ *
330
+ * @tags Admin Tenant Wine Bottle Formats
331
+ * @name CreateTenantWineBottleFormat
332
+ * @request POST:/admin/tenants/{tenantId}/wine-bottle-formats
333
+ * @secure
334
+ * @response `201` `WineBottleFormatEntityDto`
335
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
336
+ */
337
+ createTenantWineBottleFormat: function (tenantId, data, params) {
338
+ if (params === void 0) { params = {}; }
339
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-bottle-formats"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
340
+ },
341
+ /**
342
+ * No description
343
+ *
344
+ * @tags Admin Tenant Wine Bottle Vintages
345
+ * @name CreateTenantWineBottleVintage
346
+ * @request POST:/admin/tenants/{tenantId}/wine-bottle-vintages
347
+ * @secure
348
+ * @response `201` `WineBottleVintageEntityDto`
349
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
350
+ */
351
+ createTenantWineBottleVintage: function (tenantId, data, params) {
352
+ if (params === void 0) { params = {}; }
353
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-bottle-vintages"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
354
+ },
355
+ /**
356
+ * No description
357
+ *
358
+ * @tags Admin Tenant Wine Brands
359
+ * @name CreateTenantWineBrand
360
+ * @request POST:/admin/tenants/{tenantId}/wine-brands
361
+ * @secure
362
+ * @response `201` `WineBrandEntityDto`
363
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
364
+ */
365
+ createTenantWineBrand: function (tenantId, data, params) {
366
+ if (params === void 0) { params = {}; }
367
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-brands"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
368
+ },
369
+ /**
370
+ * No description
371
+ *
372
+ * @tags Admin Tenant Wine Producers
373
+ * @name CreateTenantWineProducer
374
+ * @request POST:/admin/tenants/{tenantId}/wine-producers
375
+ * @secure
376
+ * @response `201` `WineProducerEntityDto`
377
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
378
+ */
379
+ createTenantWineProducer: function (tenantId, data, params) {
380
+ if (params === void 0) { params = {}; }
381
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-producers"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
382
+ },
383
+ /**
384
+ * No description
385
+ *
386
+ * @tags Admin Tenant Wine Styles
387
+ * @name CreateTenantWineStyle
388
+ * @request POST:/admin/tenants/{tenantId}/wine-styles
389
+ * @secure
390
+ * @response `201` `WineStyleEntityDto`
391
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
392
+ */
393
+ createTenantWineStyle: function (tenantId, data, params) {
394
+ if (params === void 0) { params = {}; }
395
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-styles"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
396
+ },
397
+ /**
398
+ * No description
399
+ *
400
+ * @tags Admin Tenant Wine Types
401
+ * @name CreateTenantWineType
402
+ * @request POST:/admin/tenants/{tenantId}/wine-types
403
+ * @secure
404
+ * @response `201` `WineTypeEntityDto`
405
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
406
+ */
407
+ createTenantWineType: function (tenantId, data, params) {
408
+ if (params === void 0) { params = {}; }
409
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-types"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
410
+ },
411
+ /**
412
+ * No description
413
+ *
414
+ * @tags Admin Tenant Wine Varietals
415
+ * @name CreateTenantWineVarietal
416
+ * @request POST:/admin/tenants/{tenantId}/wine-varietals
417
+ * @secure
418
+ * @response `201` `WineVarietalEntityDto`
419
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
420
+ */
421
+ createTenantWineVarietal: function (tenantId, data, params) {
422
+ if (params === void 0) { params = {}; }
423
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-varietals"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
424
+ },
425
+ /**
426
+ * No description
427
+ *
428
+ * @tags Admin Tenant Wine Villages
429
+ * @name CreateTenantWineVillage
430
+ * @request POST:/admin/tenants/{tenantId}/wine-villages
431
+ * @secure
432
+ * @response `201` `WineVillageEntityDto`
433
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
434
+ */
435
+ createTenantWineVillage: function (tenantId, data, params) {
436
+ if (params === void 0) { params = {}; }
437
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-villages"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
438
+ },
439
+ /**
440
+ * No description
441
+ *
442
+ * @tags Admin Tenant Wine Vineyards
443
+ * @name CreateTenantWineVineyard
444
+ * @request POST:/admin/tenants/{tenantId}/wine-vineyards
445
+ * @secure
446
+ * @response `201` `WineVineyardEntityDto`
447
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
448
+ */
449
+ createTenantWineVineyard: function (tenantId, data, params) {
450
+ if (params === void 0) { params = {}; }
451
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-vineyards"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
452
+ },
453
+ /**
454
+ * No description
455
+ *
456
+ * @tags Admin Tenant Wines
457
+ * @name DeleteTenantWine
458
+ * @request DELETE:/admin/tenants/{tenantId}/wines/{wineId}
459
+ * @secure
460
+ * @response `204` `void`
461
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
462
+ */
463
+ deleteTenantWine: function (tenantId, wineId, params) {
464
+ if (params === void 0) { params = {}; }
465
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wines/").concat(wineId), method: "DELETE", secure: true }, params));
466
+ },
467
+ /**
468
+ * No description
469
+ *
470
+ * @tags Admin Tenant Wine Bottle Formats
471
+ * @name DeleteTenantWineBottleFormat
472
+ * @request DELETE:/admin/tenants/{tenantId}/wine-bottle-formats/{bottleFormatId}
473
+ * @secure
474
+ * @response `204` `void`
475
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
476
+ */
477
+ deleteTenantWineBottleFormat: function (tenantId, bottleFormatId, params) {
478
+ if (params === void 0) { params = {}; }
479
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-bottle-formats/").concat(bottleFormatId), method: "DELETE", secure: true }, params));
480
+ },
481
+ /**
482
+ * No description
483
+ *
484
+ * @tags Admin Tenant Wine Bottle Vintages
485
+ * @name DeleteTenantWineBottleVintage
486
+ * @request DELETE:/admin/tenants/{tenantId}/wine-bottle-vintages/{bottleVintageId}
487
+ * @secure
488
+ * @response `204` `void`
489
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
490
+ */
491
+ deleteTenantWineBottleVintage: function (tenantId, bottleVintageId, params) {
492
+ if (params === void 0) { params = {}; }
493
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-bottle-vintages/").concat(bottleVintageId), method: "DELETE", secure: true }, params));
494
+ },
495
+ /**
496
+ * No description
497
+ *
498
+ * @tags Admin Tenant Wine Brands
499
+ * @name DeleteTenantWineBrand
500
+ * @request DELETE:/admin/tenants/{tenantId}/wine-brands/{brandId}
501
+ * @secure
502
+ * @response `204` `void`
503
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
504
+ */
505
+ deleteTenantWineBrand: function (tenantId, brandId, params) {
506
+ if (params === void 0) { params = {}; }
507
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-brands/").concat(brandId), method: "DELETE", secure: true }, params));
508
+ },
509
+ /**
510
+ * No description
511
+ *
512
+ * @tags Admin Tenant Wine Producers
513
+ * @name DeleteTenantWineProducer
514
+ * @request DELETE:/admin/tenants/{tenantId}/wine-producers/{producerId}
515
+ * @secure
516
+ * @response `204` `void`
517
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
518
+ */
519
+ deleteTenantWineProducer: function (tenantId, producerId, params) {
520
+ if (params === void 0) { params = {}; }
521
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-producers/").concat(producerId), method: "DELETE", secure: true }, params));
522
+ },
523
+ /**
524
+ * No description
525
+ *
526
+ * @tags Admin Tenant Wine Styles
527
+ * @name DeleteTenantWineStyle
528
+ * @request DELETE:/admin/tenants/{tenantId}/wine-styles/{styleId}
529
+ * @secure
530
+ * @response `204` `void`
531
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
532
+ */
533
+ deleteTenantWineStyle: function (tenantId, styleId, params) {
534
+ if (params === void 0) { params = {}; }
535
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-styles/").concat(styleId), method: "DELETE", secure: true }, params));
536
+ },
537
+ /**
538
+ * No description
539
+ *
540
+ * @tags Admin Tenant Wine Types
541
+ * @name DeleteTenantWineType
542
+ * @request DELETE:/admin/tenants/{tenantId}/wine-types/{typeId}
543
+ * @secure
544
+ * @response `204` `void`
545
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
546
+ */
547
+ deleteTenantWineType: function (tenantId, typeId, params) {
548
+ if (params === void 0) { params = {}; }
549
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-types/").concat(typeId), method: "DELETE", secure: true }, params));
550
+ },
551
+ /**
552
+ * No description
553
+ *
554
+ * @tags Admin Tenant Wine Varietals
555
+ * @name DeleteTenantWineVarietal
556
+ * @request DELETE:/admin/tenants/{tenantId}/wine-varietals/{varietalId}
557
+ * @secure
558
+ * @response `204` `void`
559
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
560
+ */
561
+ deleteTenantWineVarietal: function (tenantId, varietalId, params) {
562
+ if (params === void 0) { params = {}; }
563
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-varietals/").concat(varietalId), method: "DELETE", secure: true }, params));
564
+ },
565
+ /**
566
+ * No description
567
+ *
568
+ * @tags Admin Tenant Wine Villages
569
+ * @name DeleteTenantWineVillage
570
+ * @request DELETE:/admin/tenants/{tenantId}/wine-villages/{villageId}
571
+ * @secure
572
+ * @response `204` `void`
573
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
574
+ */
575
+ deleteTenantWineVillage: function (tenantId, villageId, params) {
576
+ if (params === void 0) { params = {}; }
577
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-villages/").concat(villageId), method: "DELETE", secure: true }, params));
578
+ },
579
+ /**
580
+ * No description
581
+ *
582
+ * @tags Admin Tenant Wine Vineyards
583
+ * @name DeleteTenantWineVineyard
584
+ * @request DELETE:/admin/tenants/{tenantId}/wine-vineyards/{vineyardId}
585
+ * @secure
586
+ * @response `204` `void`
587
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
588
+ */
589
+ deleteTenantWineVineyard: function (tenantId, vineyardId, params) {
590
+ if (params === void 0) { params = {}; }
591
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-vineyards/").concat(vineyardId), method: "DELETE", secure: true }, params));
592
+ },
312
593
  /**
313
594
  * No description
314
595
  *
@@ -337,6 +618,146 @@ var Api = /** @class */ (function (_super) {
337
618
  if (params === void 0) { params = {}; }
338
619
  return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/users/").concat(userId, "/enable"), method: "PATCH", secure: true }, params));
339
620
  },
621
+ /**
622
+ * No description
623
+ *
624
+ * @tags Admin Tenant Wine Bottle Formats
625
+ * @name GetTenantWineBottleFormatById
626
+ * @request GET:/admin/tenants/{tenantId}/wine-bottle-formats/{bottleFormatId}
627
+ * @secure
628
+ * @response `200` `WineBottleFormatEntityDto`
629
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
630
+ */
631
+ getTenantWineBottleFormatById: function (tenantId, bottleFormatId, params) {
632
+ if (params === void 0) { params = {}; }
633
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-bottle-formats/").concat(bottleFormatId), method: "GET", secure: true, format: "json" }, params));
634
+ },
635
+ /**
636
+ * No description
637
+ *
638
+ * @tags Admin Tenant Wine Bottle Vintages
639
+ * @name GetTenantWineBottleVintageById
640
+ * @request GET:/admin/tenants/{tenantId}/wine-bottle-vintages/{bottleVintageId}
641
+ * @secure
642
+ * @response `200` `WineBottleVintageEntityDto`
643
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
644
+ */
645
+ getTenantWineBottleVintageById: function (tenantId, bottleVintageId, params) {
646
+ if (params === void 0) { params = {}; }
647
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-bottle-vintages/").concat(bottleVintageId), method: "GET", secure: true, format: "json" }, params));
648
+ },
649
+ /**
650
+ * No description
651
+ *
652
+ * @tags Admin Tenant Wine Brands
653
+ * @name GetTenantWineBrandById
654
+ * @request GET:/admin/tenants/{tenantId}/wine-brands/{brandId}
655
+ * @secure
656
+ * @response `200` `WineBrandEntityDto`
657
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
658
+ */
659
+ getTenantWineBrandById: function (tenantId, brandId, params) {
660
+ if (params === void 0) { params = {}; }
661
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-brands/").concat(brandId), method: "GET", secure: true, format: "json" }, params));
662
+ },
663
+ /**
664
+ * No description
665
+ *
666
+ * @tags Admin Tenant Wines
667
+ * @name GetTenantWineById
668
+ * @request GET:/admin/tenants/{tenantId}/wines/{wineId}
669
+ * @secure
670
+ * @response `200` `WineEntityDto`
671
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
672
+ */
673
+ getTenantWineById: function (tenantId, wineId, params) {
674
+ if (params === void 0) { params = {}; }
675
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wines/").concat(wineId), method: "GET", secure: true, format: "json" }, params));
676
+ },
677
+ /**
678
+ * No description
679
+ *
680
+ * @tags Admin Tenant Wine Producers
681
+ * @name GetTenantWineProducerById
682
+ * @request GET:/admin/tenants/{tenantId}/wine-producers/{producerId}
683
+ * @secure
684
+ * @response `200` `WineProducerEntityDto`
685
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
686
+ */
687
+ getTenantWineProducerById: function (tenantId, producerId, params) {
688
+ if (params === void 0) { params = {}; }
689
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-producers/").concat(producerId), method: "GET", secure: true, format: "json" }, params));
690
+ },
691
+ /**
692
+ * No description
693
+ *
694
+ * @tags Admin Tenant Wine Styles
695
+ * @name GetTenantWineStyleById
696
+ * @request GET:/admin/tenants/{tenantId}/wine-styles/{styleId}
697
+ * @secure
698
+ * @response `200` `WineStyleEntityDto`
699
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
700
+ */
701
+ getTenantWineStyleById: function (tenantId, styleId, params) {
702
+ if (params === void 0) { params = {}; }
703
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-styles/").concat(styleId), method: "GET", secure: true, format: "json" }, params));
704
+ },
705
+ /**
706
+ * No description
707
+ *
708
+ * @tags Admin Tenant Wine Types
709
+ * @name GetTenantWineTypeById
710
+ * @request GET:/admin/tenants/{tenantId}/wine-types/{typeId}
711
+ * @secure
712
+ * @response `200` `WineTypeEntityDto`
713
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
714
+ */
715
+ getTenantWineTypeById: function (tenantId, typeId, params) {
716
+ if (params === void 0) { params = {}; }
717
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-types/").concat(typeId), method: "GET", secure: true, format: "json" }, params));
718
+ },
719
+ /**
720
+ * No description
721
+ *
722
+ * @tags Admin Tenant Wine Varietals
723
+ * @name GetTenantWineVarietalById
724
+ * @request GET:/admin/tenants/{tenantId}/wine-varietals/{varietalId}
725
+ * @secure
726
+ * @response `200` `WineVarietalEntityDto`
727
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
728
+ */
729
+ getTenantWineVarietalById: function (tenantId, varietalId, params) {
730
+ if (params === void 0) { params = {}; }
731
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-varietals/").concat(varietalId), method: "GET", secure: true, format: "json" }, params));
732
+ },
733
+ /**
734
+ * No description
735
+ *
736
+ * @tags Admin Tenant Wine Villages
737
+ * @name GetTenantWineVillageById
738
+ * @request GET:/admin/tenants/{tenantId}/wine-villages/{villageId}
739
+ * @secure
740
+ * @response `200` `WineVillageEntityDto`
741
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
742
+ */
743
+ getTenantWineVillageById: function (tenantId, villageId, params) {
744
+ if (params === void 0) { params = {}; }
745
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-villages/").concat(villageId), method: "GET", secure: true, format: "json" }, params));
746
+ },
747
+ /**
748
+ * No description
749
+ *
750
+ * @tags Admin Tenant Wine Vineyards
751
+ * @name GetTenantWineVineyardById
752
+ * @request GET:/admin/tenants/{tenantId}/wine-vineyards/{vineyardId}
753
+ * @secure
754
+ * @response `200` `WineVineyardEntityDto`
755
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
756
+ */
757
+ getTenantWineVineyardById: function (tenantId, vineyardId, params) {
758
+ if (params === void 0) { params = {}; }
759
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-vineyards/").concat(vineyardId), method: "GET", secure: true, format: "json" }, params));
760
+ },
340
761
  /**
341
762
  * No description
342
763
  *
@@ -344,13 +765,293 @@ var Api = /** @class */ (function (_super) {
344
765
  * @name ListTenantUsers
345
766
  * @request GET:/admin/tenants/{tenantId}/users
346
767
  * @secure
347
- * @response `200` `TenantUserEntityPaginationDto`
768
+ * @response `200` `TenantUserEntityPaginatedDto`
348
769
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
349
770
  */
350
771
  listTenantUsers: function (tenantId, query, params) {
351
772
  if (params === void 0) { params = {}; }
352
773
  return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/users"), method: "GET", query: query, secure: true, format: "json" }, params));
353
774
  },
775
+ /**
776
+ * No description
777
+ *
778
+ * @tags Admin Tenant Wine Bottle Formats
779
+ * @name ListTenantWineBottleFormats
780
+ * @request GET:/admin/tenants/{tenantId}/wine-bottle-formats
781
+ * @secure
782
+ * @response `200` `WineBottleFormatEntityPaginatedDto`
783
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
784
+ */
785
+ listTenantWineBottleFormats: function (tenantId, query, params) {
786
+ if (params === void 0) { params = {}; }
787
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-bottle-formats"), method: "GET", query: query, secure: true, format: "json" }, params));
788
+ },
789
+ /**
790
+ * No description
791
+ *
792
+ * @tags Admin Tenant Wine Bottle Vintages
793
+ * @name ListTenantWineBottleVintages
794
+ * @request GET:/admin/tenants/{tenantId}/wine-bottle-vintages
795
+ * @secure
796
+ * @response `200` `WineBottleVintageEntityPaginatedDto`
797
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
798
+ */
799
+ listTenantWineBottleVintages: function (tenantId, query, params) {
800
+ if (params === void 0) { params = {}; }
801
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-bottle-vintages"), method: "GET", query: query, secure: true, format: "json" }, params));
802
+ },
803
+ /**
804
+ * No description
805
+ *
806
+ * @tags Admin Tenant Wine Brands
807
+ * @name ListTenantWineBrands
808
+ * @request GET:/admin/tenants/{tenantId}/wine-brands
809
+ * @secure
810
+ * @response `200` `WineBrandEntityPaginatedDto`
811
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
812
+ */
813
+ listTenantWineBrands: function (tenantId, query, params) {
814
+ if (params === void 0) { params = {}; }
815
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-brands"), method: "GET", query: query, secure: true, format: "json" }, params));
816
+ },
817
+ /**
818
+ * No description
819
+ *
820
+ * @tags Admin Tenant Wine Producers
821
+ * @name ListTenantWineProducers
822
+ * @request GET:/admin/tenants/{tenantId}/wine-producers
823
+ * @secure
824
+ * @response `200` `WineProducerEntityPaginatedDto`
825
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
826
+ */
827
+ listTenantWineProducers: function (tenantId, query, params) {
828
+ if (params === void 0) { params = {}; }
829
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-producers"), method: "GET", query: query, secure: true, format: "json" }, params));
830
+ },
831
+ /**
832
+ * No description
833
+ *
834
+ * @tags Admin Tenant Wines
835
+ * @name ListTenantWines
836
+ * @request GET:/admin/tenants/{tenantId}/wines
837
+ * @secure
838
+ * @response `200` `WineEntityPaginatedDto`
839
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
840
+ */
841
+ listTenantWines: function (tenantId, query, params) {
842
+ if (params === void 0) { params = {}; }
843
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wines"), method: "GET", query: query, secure: true, format: "json" }, params));
844
+ },
845
+ /**
846
+ * No description
847
+ *
848
+ * @tags Admin Tenant Wine Styles
849
+ * @name ListTenantWineStyles
850
+ * @request GET:/admin/tenants/{tenantId}/wine-styles
851
+ * @secure
852
+ * @response `200` `WineStyleEntityPaginatedDto`
853
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
854
+ */
855
+ listTenantWineStyles: function (tenantId, query, params) {
856
+ if (params === void 0) { params = {}; }
857
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-styles"), method: "GET", query: query, secure: true, format: "json" }, params));
858
+ },
859
+ /**
860
+ * No description
861
+ *
862
+ * @tags Admin Tenant Wine Types
863
+ * @name ListTenantWineTypes
864
+ * @request GET:/admin/tenants/{tenantId}/wine-types
865
+ * @secure
866
+ * @response `200` `WineTypeEntityPaginatedDto`
867
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
868
+ */
869
+ listTenantWineTypes: function (tenantId, query, params) {
870
+ if (params === void 0) { params = {}; }
871
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-types"), method: "GET", query: query, secure: true, format: "json" }, params));
872
+ },
873
+ /**
874
+ * No description
875
+ *
876
+ * @tags Admin Tenant Wine Varietals
877
+ * @name ListTenantWineVarietals
878
+ * @request GET:/admin/tenants/{tenantId}/wine-varietals
879
+ * @secure
880
+ * @response `200` `WineVarietalEntityPaginatedDto`
881
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
882
+ */
883
+ listTenantWineVarietals: function (tenantId, query, params) {
884
+ if (params === void 0) { params = {}; }
885
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-varietals"), method: "GET", query: query, secure: true, format: "json" }, params));
886
+ },
887
+ /**
888
+ * No description
889
+ *
890
+ * @tags Admin Tenant Wine Villages
891
+ * @name ListTenantWineVillages
892
+ * @request GET:/admin/tenants/{tenantId}/wine-villages
893
+ * @secure
894
+ * @response `200` `WineVillageEntityPaginatedDto`
895
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
896
+ */
897
+ listTenantWineVillages: function (tenantId, query, params) {
898
+ if (params === void 0) { params = {}; }
899
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-villages"), method: "GET", query: query, secure: true, format: "json" }, params));
900
+ },
901
+ /**
902
+ * No description
903
+ *
904
+ * @tags Admin Tenant Wine Vineyards
905
+ * @name ListTenantWineVineyards
906
+ * @request GET:/admin/tenants/{tenantId}/wine-vineyards
907
+ * @secure
908
+ * @response `200` `WineVineyardEntityPaginatedDto`
909
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
910
+ */
911
+ listTenantWineVineyards: function (tenantId, query, params) {
912
+ if (params === void 0) { params = {}; }
913
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-vineyards"), method: "GET", query: query, secure: true, format: "json" }, params));
914
+ },
915
+ /**
916
+ * No description
917
+ *
918
+ * @tags Admin Tenant Wines
919
+ * @name UpdateTenantWine
920
+ * @request PATCH:/admin/tenants/{tenantId}/wines/{wineId}
921
+ * @secure
922
+ * @response `200` `WineEntityDto`
923
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
924
+ */
925
+ updateTenantWine: function (tenantId, wineId, data, params) {
926
+ if (params === void 0) { params = {}; }
927
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wines/").concat(wineId), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
928
+ },
929
+ /**
930
+ * No description
931
+ *
932
+ * @tags Admin Tenant Wine Bottle Formats
933
+ * @name UpdateTenantWineBottleFormat
934
+ * @request PATCH:/admin/tenants/{tenantId}/wine-bottle-formats/{bottleFormatId}
935
+ * @secure
936
+ * @response `200` `WineBottleFormatEntityDto`
937
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
938
+ */
939
+ updateTenantWineBottleFormat: function (tenantId, bottleFormatId, data, params) {
940
+ if (params === void 0) { params = {}; }
941
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-bottle-formats/").concat(bottleFormatId), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
942
+ },
943
+ /**
944
+ * No description
945
+ *
946
+ * @tags Admin Tenant Wine Bottle Vintages
947
+ * @name UpdateTenantWineBottleVintage
948
+ * @request PATCH:/admin/tenants/{tenantId}/wine-bottle-vintages/{bottleVintageId}
949
+ * @secure
950
+ * @response `200` `WineBottleVintageEntityDto`
951
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
952
+ */
953
+ updateTenantWineBottleVintage: function (tenantId, bottleVintageId, data, params) {
954
+ if (params === void 0) { params = {}; }
955
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-bottle-vintages/").concat(bottleVintageId), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
956
+ },
957
+ /**
958
+ * No description
959
+ *
960
+ * @tags Admin Tenant Wine Brands
961
+ * @name UpdateTenantWineBrand
962
+ * @request PATCH:/admin/tenants/{tenantId}/wine-brands/{brandId}
963
+ * @secure
964
+ * @response `200` `WineBrandEntityDto`
965
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
966
+ */
967
+ updateTenantWineBrand: function (tenantId, brandId, data, params) {
968
+ if (params === void 0) { params = {}; }
969
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-brands/").concat(brandId), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
970
+ },
971
+ /**
972
+ * No description
973
+ *
974
+ * @tags Admin Tenant Wine Producers
975
+ * @name UpdateTenantWineProducer
976
+ * @request PATCH:/admin/tenants/{tenantId}/wine-producers/{producerId}
977
+ * @secure
978
+ * @response `200` `WineProducerEntityDto`
979
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
980
+ */
981
+ updateTenantWineProducer: function (tenantId, producerId, data, params) {
982
+ if (params === void 0) { params = {}; }
983
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-producers/").concat(producerId), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
984
+ },
985
+ /**
986
+ * No description
987
+ *
988
+ * @tags Admin Tenant Wine Styles
989
+ * @name UpdateTenantWineStyle
990
+ * @request PATCH:/admin/tenants/{tenantId}/wine-styles/{styleId}
991
+ * @secure
992
+ * @response `200` `WineStyleEntityDto`
993
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
994
+ */
995
+ updateTenantWineStyle: function (tenantId, styleId, data, params) {
996
+ if (params === void 0) { params = {}; }
997
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-styles/").concat(styleId), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
998
+ },
999
+ /**
1000
+ * No description
1001
+ *
1002
+ * @tags Admin Tenant Wine Types
1003
+ * @name UpdateTenantWineType
1004
+ * @request PATCH:/admin/tenants/{tenantId}/wine-types/{typeId}
1005
+ * @secure
1006
+ * @response `200` `WineTypeEntityDto`
1007
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
1008
+ */
1009
+ updateTenantWineType: function (tenantId, typeId, data, params) {
1010
+ if (params === void 0) { params = {}; }
1011
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-types/").concat(typeId), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
1012
+ },
1013
+ /**
1014
+ * No description
1015
+ *
1016
+ * @tags Admin Tenant Wine Varietals
1017
+ * @name UpdateTenantWineVarietal
1018
+ * @request PATCH:/admin/tenants/{tenantId}/wine-varietals/{varietalId}
1019
+ * @secure
1020
+ * @response `200` `WineVarietalEntityDto`
1021
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
1022
+ */
1023
+ updateTenantWineVarietal: function (tenantId, varietalId, data, params) {
1024
+ if (params === void 0) { params = {}; }
1025
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-varietals/").concat(varietalId), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
1026
+ },
1027
+ /**
1028
+ * No description
1029
+ *
1030
+ * @tags Admin Tenant Wine Villages
1031
+ * @name UpdateTenantWineVillage
1032
+ * @request PATCH:/admin/tenants/{tenantId}/wine-villages/{villageId}
1033
+ * @secure
1034
+ * @response `200` `WineVillageEntityDto`
1035
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
1036
+ */
1037
+ updateTenantWineVillage: function (tenantId, villageId, data, params) {
1038
+ if (params === void 0) { params = {}; }
1039
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-villages/").concat(villageId), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
1040
+ },
1041
+ /**
1042
+ * No description
1043
+ *
1044
+ * @tags Admin Tenant Wine Vineyards
1045
+ * @name UpdateTenantWineVineyard
1046
+ * @request PATCH:/admin/tenants/{tenantId}/wine-vineyards/{vineyardId}
1047
+ * @secure
1048
+ * @response `200` `WineVineyardEntityDto`
1049
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
1050
+ */
1051
+ updateTenantWineVineyard: function (tenantId, vineyardId, data, params) {
1052
+ if (params === void 0) { params = {}; }
1053
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-vineyards/").concat(vineyardId), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
1054
+ },
354
1055
  };
355
1056
  return _this;
356
1057
  }