@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.
package/dist/umd/index.ts CHANGED
@@ -18421,6 +18421,7 @@ var TenantRoleEnum;
18421
18421
  TenantRoleEnum["Operator"] = "operator";
18422
18422
  TenantRoleEnum["Admin"] = "admin";
18423
18423
  TenantRoleEnum["Owner"] = "owner";
18424
+ TenantRoleEnum["Customer"] = "customer";
18424
18425
  })(TenantRoleEnum = exports.TenantRoleEnum || (exports.TenantRoleEnum = {}));
18425
18426
  var TenantUserStatusEnum;
18426
18427
  (function (TenantUserStatusEnum) {
@@ -18640,6 +18641,286 @@ var Api = /** @class */ (function (_super) {
18640
18641
  if (params === void 0) { params = {}; }
18641
18642
  return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/users"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
18642
18643
  },
18644
+ /**
18645
+ * No description
18646
+ *
18647
+ * @tags Admin Tenant Wines
18648
+ * @name CreateTenantWine
18649
+ * @request POST:/admin/tenants/{tenantId}/wines
18650
+ * @secure
18651
+ * @response `201` `WineEntityDto`
18652
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
18653
+ */
18654
+ createTenantWine: function (tenantId, data, params) {
18655
+ if (params === void 0) { params = {}; }
18656
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wines"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
18657
+ },
18658
+ /**
18659
+ * No description
18660
+ *
18661
+ * @tags Admin Tenant Wine Bottle Formats
18662
+ * @name CreateTenantWineBottleFormat
18663
+ * @request POST:/admin/tenants/{tenantId}/wine-bottle-formats
18664
+ * @secure
18665
+ * @response `201` `WineBottleFormatEntityDto`
18666
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
18667
+ */
18668
+ createTenantWineBottleFormat: function (tenantId, data, params) {
18669
+ if (params === void 0) { params = {}; }
18670
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-bottle-formats"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
18671
+ },
18672
+ /**
18673
+ * No description
18674
+ *
18675
+ * @tags Admin Tenant Wine Bottle Vintages
18676
+ * @name CreateTenantWineBottleVintage
18677
+ * @request POST:/admin/tenants/{tenantId}/wine-bottle-vintages
18678
+ * @secure
18679
+ * @response `201` `WineBottleVintageEntityDto`
18680
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
18681
+ */
18682
+ createTenantWineBottleVintage: function (tenantId, data, params) {
18683
+ if (params === void 0) { params = {}; }
18684
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-bottle-vintages"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
18685
+ },
18686
+ /**
18687
+ * No description
18688
+ *
18689
+ * @tags Admin Tenant Wine Brands
18690
+ * @name CreateTenantWineBrand
18691
+ * @request POST:/admin/tenants/{tenantId}/wine-brands
18692
+ * @secure
18693
+ * @response `201` `WineBrandEntityDto`
18694
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
18695
+ */
18696
+ createTenantWineBrand: function (tenantId, data, params) {
18697
+ if (params === void 0) { params = {}; }
18698
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-brands"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
18699
+ },
18700
+ /**
18701
+ * No description
18702
+ *
18703
+ * @tags Admin Tenant Wine Producers
18704
+ * @name CreateTenantWineProducer
18705
+ * @request POST:/admin/tenants/{tenantId}/wine-producers
18706
+ * @secure
18707
+ * @response `201` `WineProducerEntityDto`
18708
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
18709
+ */
18710
+ createTenantWineProducer: function (tenantId, data, params) {
18711
+ if (params === void 0) { params = {}; }
18712
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-producers"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
18713
+ },
18714
+ /**
18715
+ * No description
18716
+ *
18717
+ * @tags Admin Tenant Wine Styles
18718
+ * @name CreateTenantWineStyle
18719
+ * @request POST:/admin/tenants/{tenantId}/wine-styles
18720
+ * @secure
18721
+ * @response `201` `WineStyleEntityDto`
18722
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
18723
+ */
18724
+ createTenantWineStyle: function (tenantId, data, params) {
18725
+ if (params === void 0) { params = {}; }
18726
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-styles"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
18727
+ },
18728
+ /**
18729
+ * No description
18730
+ *
18731
+ * @tags Admin Tenant Wine Types
18732
+ * @name CreateTenantWineType
18733
+ * @request POST:/admin/tenants/{tenantId}/wine-types
18734
+ * @secure
18735
+ * @response `201` `WineTypeEntityDto`
18736
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
18737
+ */
18738
+ createTenantWineType: function (tenantId, data, params) {
18739
+ if (params === void 0) { params = {}; }
18740
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-types"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
18741
+ },
18742
+ /**
18743
+ * No description
18744
+ *
18745
+ * @tags Admin Tenant Wine Varietals
18746
+ * @name CreateTenantWineVarietal
18747
+ * @request POST:/admin/tenants/{tenantId}/wine-varietals
18748
+ * @secure
18749
+ * @response `201` `WineVarietalEntityDto`
18750
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
18751
+ */
18752
+ createTenantWineVarietal: function (tenantId, data, params) {
18753
+ if (params === void 0) { params = {}; }
18754
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-varietals"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
18755
+ },
18756
+ /**
18757
+ * No description
18758
+ *
18759
+ * @tags Admin Tenant Wine Villages
18760
+ * @name CreateTenantWineVillage
18761
+ * @request POST:/admin/tenants/{tenantId}/wine-villages
18762
+ * @secure
18763
+ * @response `201` `WineVillageEntityDto`
18764
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
18765
+ */
18766
+ createTenantWineVillage: function (tenantId, data, params) {
18767
+ if (params === void 0) { params = {}; }
18768
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-villages"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
18769
+ },
18770
+ /**
18771
+ * No description
18772
+ *
18773
+ * @tags Admin Tenant Wine Vineyards
18774
+ * @name CreateTenantWineVineyard
18775
+ * @request POST:/admin/tenants/{tenantId}/wine-vineyards
18776
+ * @secure
18777
+ * @response `201` `WineVineyardEntityDto`
18778
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
18779
+ */
18780
+ createTenantWineVineyard: function (tenantId, data, params) {
18781
+ if (params === void 0) { params = {}; }
18782
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-vineyards"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
18783
+ },
18784
+ /**
18785
+ * No description
18786
+ *
18787
+ * @tags Admin Tenant Wines
18788
+ * @name DeleteTenantWine
18789
+ * @request DELETE:/admin/tenants/{tenantId}/wines/{wineId}
18790
+ * @secure
18791
+ * @response `204` `void`
18792
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
18793
+ */
18794
+ deleteTenantWine: function (tenantId, wineId, params) {
18795
+ if (params === void 0) { params = {}; }
18796
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wines/").concat(wineId), method: "DELETE", secure: true }, params));
18797
+ },
18798
+ /**
18799
+ * No description
18800
+ *
18801
+ * @tags Admin Tenant Wine Bottle Formats
18802
+ * @name DeleteTenantWineBottleFormat
18803
+ * @request DELETE:/admin/tenants/{tenantId}/wine-bottle-formats/{bottleFormatId}
18804
+ * @secure
18805
+ * @response `204` `void`
18806
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
18807
+ */
18808
+ deleteTenantWineBottleFormat: function (tenantId, bottleFormatId, params) {
18809
+ if (params === void 0) { params = {}; }
18810
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-bottle-formats/").concat(bottleFormatId), method: "DELETE", secure: true }, params));
18811
+ },
18812
+ /**
18813
+ * No description
18814
+ *
18815
+ * @tags Admin Tenant Wine Bottle Vintages
18816
+ * @name DeleteTenantWineBottleVintage
18817
+ * @request DELETE:/admin/tenants/{tenantId}/wine-bottle-vintages/{bottleVintageId}
18818
+ * @secure
18819
+ * @response `204` `void`
18820
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
18821
+ */
18822
+ deleteTenantWineBottleVintage: function (tenantId, bottleVintageId, params) {
18823
+ if (params === void 0) { params = {}; }
18824
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-bottle-vintages/").concat(bottleVintageId), method: "DELETE", secure: true }, params));
18825
+ },
18826
+ /**
18827
+ * No description
18828
+ *
18829
+ * @tags Admin Tenant Wine Brands
18830
+ * @name DeleteTenantWineBrand
18831
+ * @request DELETE:/admin/tenants/{tenantId}/wine-brands/{brandId}
18832
+ * @secure
18833
+ * @response `204` `void`
18834
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
18835
+ */
18836
+ deleteTenantWineBrand: function (tenantId, brandId, params) {
18837
+ if (params === void 0) { params = {}; }
18838
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-brands/").concat(brandId), method: "DELETE", secure: true }, params));
18839
+ },
18840
+ /**
18841
+ * No description
18842
+ *
18843
+ * @tags Admin Tenant Wine Producers
18844
+ * @name DeleteTenantWineProducer
18845
+ * @request DELETE:/admin/tenants/{tenantId}/wine-producers/{producerId}
18846
+ * @secure
18847
+ * @response `204` `void`
18848
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
18849
+ */
18850
+ deleteTenantWineProducer: function (tenantId, producerId, params) {
18851
+ if (params === void 0) { params = {}; }
18852
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-producers/").concat(producerId), method: "DELETE", secure: true }, params));
18853
+ },
18854
+ /**
18855
+ * No description
18856
+ *
18857
+ * @tags Admin Tenant Wine Styles
18858
+ * @name DeleteTenantWineStyle
18859
+ * @request DELETE:/admin/tenants/{tenantId}/wine-styles/{styleId}
18860
+ * @secure
18861
+ * @response `204` `void`
18862
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
18863
+ */
18864
+ deleteTenantWineStyle: function (tenantId, styleId, params) {
18865
+ if (params === void 0) { params = {}; }
18866
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-styles/").concat(styleId), method: "DELETE", secure: true }, params));
18867
+ },
18868
+ /**
18869
+ * No description
18870
+ *
18871
+ * @tags Admin Tenant Wine Types
18872
+ * @name DeleteTenantWineType
18873
+ * @request DELETE:/admin/tenants/{tenantId}/wine-types/{typeId}
18874
+ * @secure
18875
+ * @response `204` `void`
18876
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
18877
+ */
18878
+ deleteTenantWineType: function (tenantId, typeId, params) {
18879
+ if (params === void 0) { params = {}; }
18880
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-types/").concat(typeId), method: "DELETE", secure: true }, params));
18881
+ },
18882
+ /**
18883
+ * No description
18884
+ *
18885
+ * @tags Admin Tenant Wine Varietals
18886
+ * @name DeleteTenantWineVarietal
18887
+ * @request DELETE:/admin/tenants/{tenantId}/wine-varietals/{varietalId}
18888
+ * @secure
18889
+ * @response `204` `void`
18890
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
18891
+ */
18892
+ deleteTenantWineVarietal: function (tenantId, varietalId, params) {
18893
+ if (params === void 0) { params = {}; }
18894
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-varietals/").concat(varietalId), method: "DELETE", secure: true }, params));
18895
+ },
18896
+ /**
18897
+ * No description
18898
+ *
18899
+ * @tags Admin Tenant Wine Villages
18900
+ * @name DeleteTenantWineVillage
18901
+ * @request DELETE:/admin/tenants/{tenantId}/wine-villages/{villageId}
18902
+ * @secure
18903
+ * @response `204` `void`
18904
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
18905
+ */
18906
+ deleteTenantWineVillage: function (tenantId, villageId, params) {
18907
+ if (params === void 0) { params = {}; }
18908
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-villages/").concat(villageId), method: "DELETE", secure: true }, params));
18909
+ },
18910
+ /**
18911
+ * No description
18912
+ *
18913
+ * @tags Admin Tenant Wine Vineyards
18914
+ * @name DeleteTenantWineVineyard
18915
+ * @request DELETE:/admin/tenants/{tenantId}/wine-vineyards/{vineyardId}
18916
+ * @secure
18917
+ * @response `204` `void`
18918
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
18919
+ */
18920
+ deleteTenantWineVineyard: function (tenantId, vineyardId, params) {
18921
+ if (params === void 0) { params = {}; }
18922
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-vineyards/").concat(vineyardId), method: "DELETE", secure: true }, params));
18923
+ },
18643
18924
  /**
18644
18925
  * No description
18645
18926
  *
@@ -18668,6 +18949,146 @@ var Api = /** @class */ (function (_super) {
18668
18949
  if (params === void 0) { params = {}; }
18669
18950
  return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/users/").concat(userId, "/enable"), method: "PATCH", secure: true }, params));
18670
18951
  },
18952
+ /**
18953
+ * No description
18954
+ *
18955
+ * @tags Admin Tenant Wine Bottle Formats
18956
+ * @name GetTenantWineBottleFormatById
18957
+ * @request GET:/admin/tenants/{tenantId}/wine-bottle-formats/{bottleFormatId}
18958
+ * @secure
18959
+ * @response `200` `WineBottleFormatEntityDto`
18960
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
18961
+ */
18962
+ getTenantWineBottleFormatById: function (tenantId, bottleFormatId, params) {
18963
+ if (params === void 0) { params = {}; }
18964
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-bottle-formats/").concat(bottleFormatId), method: "GET", secure: true, format: "json" }, params));
18965
+ },
18966
+ /**
18967
+ * No description
18968
+ *
18969
+ * @tags Admin Tenant Wine Bottle Vintages
18970
+ * @name GetTenantWineBottleVintageById
18971
+ * @request GET:/admin/tenants/{tenantId}/wine-bottle-vintages/{bottleVintageId}
18972
+ * @secure
18973
+ * @response `200` `WineBottleVintageEntityDto`
18974
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
18975
+ */
18976
+ getTenantWineBottleVintageById: function (tenantId, bottleVintageId, params) {
18977
+ if (params === void 0) { params = {}; }
18978
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-bottle-vintages/").concat(bottleVintageId), method: "GET", secure: true, format: "json" }, params));
18979
+ },
18980
+ /**
18981
+ * No description
18982
+ *
18983
+ * @tags Admin Tenant Wine Brands
18984
+ * @name GetTenantWineBrandById
18985
+ * @request GET:/admin/tenants/{tenantId}/wine-brands/{brandId}
18986
+ * @secure
18987
+ * @response `200` `WineBrandEntityDto`
18988
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
18989
+ */
18990
+ getTenantWineBrandById: function (tenantId, brandId, params) {
18991
+ if (params === void 0) { params = {}; }
18992
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-brands/").concat(brandId), method: "GET", secure: true, format: "json" }, params));
18993
+ },
18994
+ /**
18995
+ * No description
18996
+ *
18997
+ * @tags Admin Tenant Wines
18998
+ * @name GetTenantWineById
18999
+ * @request GET:/admin/tenants/{tenantId}/wines/{wineId}
19000
+ * @secure
19001
+ * @response `200` `WineEntityDto`
19002
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
19003
+ */
19004
+ getTenantWineById: function (tenantId, wineId, params) {
19005
+ if (params === void 0) { params = {}; }
19006
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wines/").concat(wineId), method: "GET", secure: true, format: "json" }, params));
19007
+ },
19008
+ /**
19009
+ * No description
19010
+ *
19011
+ * @tags Admin Tenant Wine Producers
19012
+ * @name GetTenantWineProducerById
19013
+ * @request GET:/admin/tenants/{tenantId}/wine-producers/{producerId}
19014
+ * @secure
19015
+ * @response `200` `WineProducerEntityDto`
19016
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
19017
+ */
19018
+ getTenantWineProducerById: function (tenantId, producerId, params) {
19019
+ if (params === void 0) { params = {}; }
19020
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-producers/").concat(producerId), method: "GET", secure: true, format: "json" }, params));
19021
+ },
19022
+ /**
19023
+ * No description
19024
+ *
19025
+ * @tags Admin Tenant Wine Styles
19026
+ * @name GetTenantWineStyleById
19027
+ * @request GET:/admin/tenants/{tenantId}/wine-styles/{styleId}
19028
+ * @secure
19029
+ * @response `200` `WineStyleEntityDto`
19030
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
19031
+ */
19032
+ getTenantWineStyleById: function (tenantId, styleId, params) {
19033
+ if (params === void 0) { params = {}; }
19034
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-styles/").concat(styleId), method: "GET", secure: true, format: "json" }, params));
19035
+ },
19036
+ /**
19037
+ * No description
19038
+ *
19039
+ * @tags Admin Tenant Wine Types
19040
+ * @name GetTenantWineTypeById
19041
+ * @request GET:/admin/tenants/{tenantId}/wine-types/{typeId}
19042
+ * @secure
19043
+ * @response `200` `WineTypeEntityDto`
19044
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
19045
+ */
19046
+ getTenantWineTypeById: function (tenantId, typeId, params) {
19047
+ if (params === void 0) { params = {}; }
19048
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-types/").concat(typeId), method: "GET", secure: true, format: "json" }, params));
19049
+ },
19050
+ /**
19051
+ * No description
19052
+ *
19053
+ * @tags Admin Tenant Wine Varietals
19054
+ * @name GetTenantWineVarietalById
19055
+ * @request GET:/admin/tenants/{tenantId}/wine-varietals/{varietalId}
19056
+ * @secure
19057
+ * @response `200` `WineVarietalEntityDto`
19058
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
19059
+ */
19060
+ getTenantWineVarietalById: function (tenantId, varietalId, params) {
19061
+ if (params === void 0) { params = {}; }
19062
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-varietals/").concat(varietalId), method: "GET", secure: true, format: "json" }, params));
19063
+ },
19064
+ /**
19065
+ * No description
19066
+ *
19067
+ * @tags Admin Tenant Wine Villages
19068
+ * @name GetTenantWineVillageById
19069
+ * @request GET:/admin/tenants/{tenantId}/wine-villages/{villageId}
19070
+ * @secure
19071
+ * @response `200` `WineVillageEntityDto`
19072
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
19073
+ */
19074
+ getTenantWineVillageById: function (tenantId, villageId, params) {
19075
+ if (params === void 0) { params = {}; }
19076
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-villages/").concat(villageId), method: "GET", secure: true, format: "json" }, params));
19077
+ },
19078
+ /**
19079
+ * No description
19080
+ *
19081
+ * @tags Admin Tenant Wine Vineyards
19082
+ * @name GetTenantWineVineyardById
19083
+ * @request GET:/admin/tenants/{tenantId}/wine-vineyards/{vineyardId}
19084
+ * @secure
19085
+ * @response `200` `WineVineyardEntityDto`
19086
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
19087
+ */
19088
+ getTenantWineVineyardById: function (tenantId, vineyardId, params) {
19089
+ if (params === void 0) { params = {}; }
19090
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-vineyards/").concat(vineyardId), method: "GET", secure: true, format: "json" }, params));
19091
+ },
18671
19092
  /**
18672
19093
  * No description
18673
19094
  *
@@ -18675,13 +19096,293 @@ var Api = /** @class */ (function (_super) {
18675
19096
  * @name ListTenantUsers
18676
19097
  * @request GET:/admin/tenants/{tenantId}/users
18677
19098
  * @secure
18678
- * @response `200` `TenantUserEntityPaginationDto`
19099
+ * @response `200` `TenantUserEntityPaginatedDto`
18679
19100
  * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
18680
19101
  */
18681
19102
  listTenantUsers: function (tenantId, query, params) {
18682
19103
  if (params === void 0) { params = {}; }
18683
19104
  return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/users"), method: "GET", query: query, secure: true, format: "json" }, params));
18684
19105
  },
19106
+ /**
19107
+ * No description
19108
+ *
19109
+ * @tags Admin Tenant Wine Bottle Formats
19110
+ * @name ListTenantWineBottleFormats
19111
+ * @request GET:/admin/tenants/{tenantId}/wine-bottle-formats
19112
+ * @secure
19113
+ * @response `200` `WineBottleFormatEntityPaginatedDto`
19114
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
19115
+ */
19116
+ listTenantWineBottleFormats: function (tenantId, query, params) {
19117
+ if (params === void 0) { params = {}; }
19118
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-bottle-formats"), method: "GET", query: query, secure: true, format: "json" }, params));
19119
+ },
19120
+ /**
19121
+ * No description
19122
+ *
19123
+ * @tags Admin Tenant Wine Bottle Vintages
19124
+ * @name ListTenantWineBottleVintages
19125
+ * @request GET:/admin/tenants/{tenantId}/wine-bottle-vintages
19126
+ * @secure
19127
+ * @response `200` `WineBottleVintageEntityPaginatedDto`
19128
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
19129
+ */
19130
+ listTenantWineBottleVintages: function (tenantId, query, params) {
19131
+ if (params === void 0) { params = {}; }
19132
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-bottle-vintages"), method: "GET", query: query, secure: true, format: "json" }, params));
19133
+ },
19134
+ /**
19135
+ * No description
19136
+ *
19137
+ * @tags Admin Tenant Wine Brands
19138
+ * @name ListTenantWineBrands
19139
+ * @request GET:/admin/tenants/{tenantId}/wine-brands
19140
+ * @secure
19141
+ * @response `200` `WineBrandEntityPaginatedDto`
19142
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
19143
+ */
19144
+ listTenantWineBrands: function (tenantId, query, params) {
19145
+ if (params === void 0) { params = {}; }
19146
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-brands"), method: "GET", query: query, secure: true, format: "json" }, params));
19147
+ },
19148
+ /**
19149
+ * No description
19150
+ *
19151
+ * @tags Admin Tenant Wine Producers
19152
+ * @name ListTenantWineProducers
19153
+ * @request GET:/admin/tenants/{tenantId}/wine-producers
19154
+ * @secure
19155
+ * @response `200` `WineProducerEntityPaginatedDto`
19156
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
19157
+ */
19158
+ listTenantWineProducers: function (tenantId, query, params) {
19159
+ if (params === void 0) { params = {}; }
19160
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-producers"), method: "GET", query: query, secure: true, format: "json" }, params));
19161
+ },
19162
+ /**
19163
+ * No description
19164
+ *
19165
+ * @tags Admin Tenant Wines
19166
+ * @name ListTenantWines
19167
+ * @request GET:/admin/tenants/{tenantId}/wines
19168
+ * @secure
19169
+ * @response `200` `WineEntityPaginatedDto`
19170
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
19171
+ */
19172
+ listTenantWines: function (tenantId, query, params) {
19173
+ if (params === void 0) { params = {}; }
19174
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wines"), method: "GET", query: query, secure: true, format: "json" }, params));
19175
+ },
19176
+ /**
19177
+ * No description
19178
+ *
19179
+ * @tags Admin Tenant Wine Styles
19180
+ * @name ListTenantWineStyles
19181
+ * @request GET:/admin/tenants/{tenantId}/wine-styles
19182
+ * @secure
19183
+ * @response `200` `WineStyleEntityPaginatedDto`
19184
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
19185
+ */
19186
+ listTenantWineStyles: function (tenantId, query, params) {
19187
+ if (params === void 0) { params = {}; }
19188
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-styles"), method: "GET", query: query, secure: true, format: "json" }, params));
19189
+ },
19190
+ /**
19191
+ * No description
19192
+ *
19193
+ * @tags Admin Tenant Wine Types
19194
+ * @name ListTenantWineTypes
19195
+ * @request GET:/admin/tenants/{tenantId}/wine-types
19196
+ * @secure
19197
+ * @response `200` `WineTypeEntityPaginatedDto`
19198
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
19199
+ */
19200
+ listTenantWineTypes: function (tenantId, query, params) {
19201
+ if (params === void 0) { params = {}; }
19202
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-types"), method: "GET", query: query, secure: true, format: "json" }, params));
19203
+ },
19204
+ /**
19205
+ * No description
19206
+ *
19207
+ * @tags Admin Tenant Wine Varietals
19208
+ * @name ListTenantWineVarietals
19209
+ * @request GET:/admin/tenants/{tenantId}/wine-varietals
19210
+ * @secure
19211
+ * @response `200` `WineVarietalEntityPaginatedDto`
19212
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
19213
+ */
19214
+ listTenantWineVarietals: function (tenantId, query, params) {
19215
+ if (params === void 0) { params = {}; }
19216
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-varietals"), method: "GET", query: query, secure: true, format: "json" }, params));
19217
+ },
19218
+ /**
19219
+ * No description
19220
+ *
19221
+ * @tags Admin Tenant Wine Villages
19222
+ * @name ListTenantWineVillages
19223
+ * @request GET:/admin/tenants/{tenantId}/wine-villages
19224
+ * @secure
19225
+ * @response `200` `WineVillageEntityPaginatedDto`
19226
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
19227
+ */
19228
+ listTenantWineVillages: function (tenantId, query, params) {
19229
+ if (params === void 0) { params = {}; }
19230
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-villages"), method: "GET", query: query, secure: true, format: "json" }, params));
19231
+ },
19232
+ /**
19233
+ * No description
19234
+ *
19235
+ * @tags Admin Tenant Wine Vineyards
19236
+ * @name ListTenantWineVineyards
19237
+ * @request GET:/admin/tenants/{tenantId}/wine-vineyards
19238
+ * @secure
19239
+ * @response `200` `WineVineyardEntityPaginatedDto`
19240
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
19241
+ */
19242
+ listTenantWineVineyards: function (tenantId, query, params) {
19243
+ if (params === void 0) { params = {}; }
19244
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-vineyards"), method: "GET", query: query, secure: true, format: "json" }, params));
19245
+ },
19246
+ /**
19247
+ * No description
19248
+ *
19249
+ * @tags Admin Tenant Wines
19250
+ * @name UpdateTenantWine
19251
+ * @request PATCH:/admin/tenants/{tenantId}/wines/{wineId}
19252
+ * @secure
19253
+ * @response `200` `WineEntityDto`
19254
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
19255
+ */
19256
+ updateTenantWine: function (tenantId, wineId, data, params) {
19257
+ if (params === void 0) { params = {}; }
19258
+ return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wines/").concat(wineId), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
19259
+ },
19260
+ /**
19261
+ * No description
19262
+ *
19263
+ * @tags Admin Tenant Wine Bottle Formats
19264
+ * @name UpdateTenantWineBottleFormat
19265
+ * @request PATCH:/admin/tenants/{tenantId}/wine-bottle-formats/{bottleFormatId}
19266
+ * @secure
19267
+ * @response `200` `WineBottleFormatEntityDto`
19268
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
19269
+ */
19270
+ updateTenantWineBottleFormat: function (tenantId, bottleFormatId, data, params) {
19271
+ if (params === void 0) { params = {}; }
19272
+ 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));
19273
+ },
19274
+ /**
19275
+ * No description
19276
+ *
19277
+ * @tags Admin Tenant Wine Bottle Vintages
19278
+ * @name UpdateTenantWineBottleVintage
19279
+ * @request PATCH:/admin/tenants/{tenantId}/wine-bottle-vintages/{bottleVintageId}
19280
+ * @secure
19281
+ * @response `200` `WineBottleVintageEntityDto`
19282
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
19283
+ */
19284
+ updateTenantWineBottleVintage: function (tenantId, bottleVintageId, data, params) {
19285
+ if (params === void 0) { params = {}; }
19286
+ 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));
19287
+ },
19288
+ /**
19289
+ * No description
19290
+ *
19291
+ * @tags Admin Tenant Wine Brands
19292
+ * @name UpdateTenantWineBrand
19293
+ * @request PATCH:/admin/tenants/{tenantId}/wine-brands/{brandId}
19294
+ * @secure
19295
+ * @response `200` `WineBrandEntityDto`
19296
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
19297
+ */
19298
+ updateTenantWineBrand: function (tenantId, brandId, data, params) {
19299
+ if (params === void 0) { params = {}; }
19300
+ 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));
19301
+ },
19302
+ /**
19303
+ * No description
19304
+ *
19305
+ * @tags Admin Tenant Wine Producers
19306
+ * @name UpdateTenantWineProducer
19307
+ * @request PATCH:/admin/tenants/{tenantId}/wine-producers/{producerId}
19308
+ * @secure
19309
+ * @response `200` `WineProducerEntityDto`
19310
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
19311
+ */
19312
+ updateTenantWineProducer: function (tenantId, producerId, data, params) {
19313
+ if (params === void 0) { params = {}; }
19314
+ 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));
19315
+ },
19316
+ /**
19317
+ * No description
19318
+ *
19319
+ * @tags Admin Tenant Wine Styles
19320
+ * @name UpdateTenantWineStyle
19321
+ * @request PATCH:/admin/tenants/{tenantId}/wine-styles/{styleId}
19322
+ * @secure
19323
+ * @response `200` `WineStyleEntityDto`
19324
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
19325
+ */
19326
+ updateTenantWineStyle: function (tenantId, styleId, data, params) {
19327
+ if (params === void 0) { params = {}; }
19328
+ 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));
19329
+ },
19330
+ /**
19331
+ * No description
19332
+ *
19333
+ * @tags Admin Tenant Wine Types
19334
+ * @name UpdateTenantWineType
19335
+ * @request PATCH:/admin/tenants/{tenantId}/wine-types/{typeId}
19336
+ * @secure
19337
+ * @response `200` `WineTypeEntityDto`
19338
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
19339
+ */
19340
+ updateTenantWineType: function (tenantId, typeId, data, params) {
19341
+ if (params === void 0) { params = {}; }
19342
+ 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));
19343
+ },
19344
+ /**
19345
+ * No description
19346
+ *
19347
+ * @tags Admin Tenant Wine Varietals
19348
+ * @name UpdateTenantWineVarietal
19349
+ * @request PATCH:/admin/tenants/{tenantId}/wine-varietals/{varietalId}
19350
+ * @secure
19351
+ * @response `200` `WineVarietalEntityDto`
19352
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
19353
+ */
19354
+ updateTenantWineVarietal: function (tenantId, varietalId, data, params) {
19355
+ if (params === void 0) { params = {}; }
19356
+ 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));
19357
+ },
19358
+ /**
19359
+ * No description
19360
+ *
19361
+ * @tags Admin Tenant Wine Villages
19362
+ * @name UpdateTenantWineVillage
19363
+ * @request PATCH:/admin/tenants/{tenantId}/wine-villages/{villageId}
19364
+ * @secure
19365
+ * @response `200` `WineVillageEntityDto`
19366
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
19367
+ */
19368
+ updateTenantWineVillage: function (tenantId, villageId, data, params) {
19369
+ if (params === void 0) { params = {}; }
19370
+ 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));
19371
+ },
19372
+ /**
19373
+ * No description
19374
+ *
19375
+ * @tags Admin Tenant Wine Vineyards
19376
+ * @name UpdateTenantWineVineyard
19377
+ * @request PATCH:/admin/tenants/{tenantId}/wine-vineyards/{vineyardId}
19378
+ * @secure
19379
+ * @response `200` `WineVineyardEntityDto`
19380
+ * @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
19381
+ */
19382
+ updateTenantWineVineyard: function (tenantId, vineyardId, data, params) {
19383
+ if (params === void 0) { params = {}; }
19384
+ 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));
19385
+ },
18685
19386
  };
18686
19387
  return _this;
18687
19388
  }