@thelllabs/winehaus-sdk 0.0.7 → 0.0.11
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/cjs/api/api.js +212 -1
- package/dist/esm/api/api.js +212 -1
- package/dist/types/api/api.d.ts +622 -11
- package/dist/umd/index.ts +212 -1
- package/package.json +1 -1
package/dist/cjs/api/api.js
CHANGED
|
@@ -96,6 +96,7 @@ var TenantRoleEnum;
|
|
|
96
96
|
TenantRoleEnum["Operator"] = "operator";
|
|
97
97
|
TenantRoleEnum["Admin"] = "admin";
|
|
98
98
|
TenantRoleEnum["Owner"] = "owner";
|
|
99
|
+
TenantRoleEnum["Customer"] = "customer";
|
|
99
100
|
})(TenantRoleEnum = exports.TenantRoleEnum || (exports.TenantRoleEnum = {}));
|
|
100
101
|
var TenantUserStatusEnum;
|
|
101
102
|
(function (TenantUserStatusEnum) {
|
|
@@ -196,7 +197,7 @@ var HttpClient = /** @class */ (function () {
|
|
|
196
197
|
exports.HttpClient = HttpClient;
|
|
197
198
|
/**
|
|
198
199
|
* @title winehaus-api
|
|
199
|
-
* @version 0.0.
|
|
200
|
+
* @version 0.0.2
|
|
200
201
|
* @baseUrl http://localhost:3000
|
|
201
202
|
* @contact
|
|
202
203
|
*/
|
|
@@ -315,6 +316,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
315
316
|
if (params === void 0) { params = {}; }
|
|
316
317
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/users"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
317
318
|
},
|
|
319
|
+
/**
|
|
320
|
+
* No description
|
|
321
|
+
*
|
|
322
|
+
* @tags Admin Tenant Operation Extras Templates
|
|
323
|
+
* @name CreateTenantOperationExtraTemplate
|
|
324
|
+
* @request POST:/admin/tenants/{tenantId}/operation-extras-templates
|
|
325
|
+
* @secure
|
|
326
|
+
* @response `201` `CaseOperationExtraTemplateEntityDto`
|
|
327
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
328
|
+
*/
|
|
329
|
+
createTenantOperationExtraTemplate: function (tenantId, data, params) {
|
|
330
|
+
if (params === void 0) { params = {}; }
|
|
331
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-extras-templates"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
332
|
+
},
|
|
318
333
|
/**
|
|
319
334
|
* No description
|
|
320
335
|
*
|
|
@@ -329,6 +344,34 @@ var Api = /** @class */ (function (_super) {
|
|
|
329
344
|
if (params === void 0) { params = {}; }
|
|
330
345
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wines"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
331
346
|
},
|
|
347
|
+
/**
|
|
348
|
+
* No description
|
|
349
|
+
*
|
|
350
|
+
* @tags Admin Tenant Wine Bottle Formats
|
|
351
|
+
* @name CreateTenantWineBottleFormat
|
|
352
|
+
* @request POST:/admin/tenants/{tenantId}/wine-bottle-formats
|
|
353
|
+
* @secure
|
|
354
|
+
* @response `201` `WineBottleFormatEntityDto`
|
|
355
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
356
|
+
*/
|
|
357
|
+
createTenantWineBottleFormat: function (tenantId, data, params) {
|
|
358
|
+
if (params === void 0) { params = {}; }
|
|
359
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-bottle-formats"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
360
|
+
},
|
|
361
|
+
/**
|
|
362
|
+
* No description
|
|
363
|
+
*
|
|
364
|
+
* @tags Admin Tenant Wine Bottle Vintages
|
|
365
|
+
* @name CreateTenantWineBottleVintage
|
|
366
|
+
* @request POST:/admin/tenants/{tenantId}/wine-bottle-vintages
|
|
367
|
+
* @secure
|
|
368
|
+
* @response `201` `WineBottleVintageEntityDto`
|
|
369
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
370
|
+
*/
|
|
371
|
+
createTenantWineBottleVintage: function (tenantId, data, params) {
|
|
372
|
+
if (params === void 0) { params = {}; }
|
|
373
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-bottle-vintages"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
374
|
+
},
|
|
332
375
|
/**
|
|
333
376
|
* No description
|
|
334
377
|
*
|
|
@@ -427,6 +470,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
427
470
|
if (params === void 0) { params = {}; }
|
|
428
471
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-vineyards"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
429
472
|
},
|
|
473
|
+
/**
|
|
474
|
+
* No description
|
|
475
|
+
*
|
|
476
|
+
* @tags Admin Tenant Operation Extras Templates
|
|
477
|
+
* @name DeleteTenantOperationExtraTemplate
|
|
478
|
+
* @request DELETE:/admin/tenants/{tenantId}/operation-extras-templates/{templateId}
|
|
479
|
+
* @secure
|
|
480
|
+
* @response `204` `void`
|
|
481
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
482
|
+
*/
|
|
483
|
+
deleteTenantOperationExtraTemplate: function (tenantId, templateId, params) {
|
|
484
|
+
if (params === void 0) { params = {}; }
|
|
485
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-extras-templates/").concat(templateId), method: "DELETE", secure: true }, params));
|
|
486
|
+
},
|
|
430
487
|
/**
|
|
431
488
|
* No description
|
|
432
489
|
*
|
|
@@ -441,6 +498,34 @@ var Api = /** @class */ (function (_super) {
|
|
|
441
498
|
if (params === void 0) { params = {}; }
|
|
442
499
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wines/").concat(wineId), method: "DELETE", secure: true }, params));
|
|
443
500
|
},
|
|
501
|
+
/**
|
|
502
|
+
* No description
|
|
503
|
+
*
|
|
504
|
+
* @tags Admin Tenant Wine Bottle Formats
|
|
505
|
+
* @name DeleteTenantWineBottleFormat
|
|
506
|
+
* @request DELETE:/admin/tenants/{tenantId}/wine-bottle-formats/{bottleFormatId}
|
|
507
|
+
* @secure
|
|
508
|
+
* @response `204` `void`
|
|
509
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
510
|
+
*/
|
|
511
|
+
deleteTenantWineBottleFormat: function (tenantId, bottleFormatId, params) {
|
|
512
|
+
if (params === void 0) { params = {}; }
|
|
513
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-bottle-formats/").concat(bottleFormatId), method: "DELETE", secure: true }, params));
|
|
514
|
+
},
|
|
515
|
+
/**
|
|
516
|
+
* No description
|
|
517
|
+
*
|
|
518
|
+
* @tags Admin Tenant Wine Bottle Vintages
|
|
519
|
+
* @name DeleteTenantWineBottleVintage
|
|
520
|
+
* @request DELETE:/admin/tenants/{tenantId}/wine-bottle-vintages/{bottleVintageId}
|
|
521
|
+
* @secure
|
|
522
|
+
* @response `204` `void`
|
|
523
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
524
|
+
*/
|
|
525
|
+
deleteTenantWineBottleVintage: function (tenantId, bottleVintageId, params) {
|
|
526
|
+
if (params === void 0) { params = {}; }
|
|
527
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-bottle-vintages/").concat(bottleVintageId), method: "DELETE", secure: true }, params));
|
|
528
|
+
},
|
|
444
529
|
/**
|
|
445
530
|
* No description
|
|
446
531
|
*
|
|
@@ -567,6 +652,48 @@ var Api = /** @class */ (function (_super) {
|
|
|
567
652
|
if (params === void 0) { params = {}; }
|
|
568
653
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/users/").concat(userId, "/enable"), method: "PATCH", secure: true }, params));
|
|
569
654
|
},
|
|
655
|
+
/**
|
|
656
|
+
* No description
|
|
657
|
+
*
|
|
658
|
+
* @tags Admin Tenant Operation Extras Templates
|
|
659
|
+
* @name GetTenantOperationExtraTemplateById
|
|
660
|
+
* @request GET:/admin/tenants/{tenantId}/operation-extras-templates/{templateId}
|
|
661
|
+
* @secure
|
|
662
|
+
* @response `200` `CaseOperationExtraTemplateEntityDto`
|
|
663
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
664
|
+
*/
|
|
665
|
+
getTenantOperationExtraTemplateById: function (tenantId, templateId, params) {
|
|
666
|
+
if (params === void 0) { params = {}; }
|
|
667
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-extras-templates/").concat(templateId), method: "GET", secure: true, format: "json" }, params));
|
|
668
|
+
},
|
|
669
|
+
/**
|
|
670
|
+
* No description
|
|
671
|
+
*
|
|
672
|
+
* @tags Admin Tenant Wine Bottle Formats
|
|
673
|
+
* @name GetTenantWineBottleFormatById
|
|
674
|
+
* @request GET:/admin/tenants/{tenantId}/wine-bottle-formats/{bottleFormatId}
|
|
675
|
+
* @secure
|
|
676
|
+
* @response `200` `WineBottleFormatEntityDto`
|
|
677
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
678
|
+
*/
|
|
679
|
+
getTenantWineBottleFormatById: function (tenantId, bottleFormatId, params) {
|
|
680
|
+
if (params === void 0) { params = {}; }
|
|
681
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-bottle-formats/").concat(bottleFormatId), method: "GET", secure: true, format: "json" }, params));
|
|
682
|
+
},
|
|
683
|
+
/**
|
|
684
|
+
* No description
|
|
685
|
+
*
|
|
686
|
+
* @tags Admin Tenant Wine Bottle Vintages
|
|
687
|
+
* @name GetTenantWineBottleVintageById
|
|
688
|
+
* @request GET:/admin/tenants/{tenantId}/wine-bottle-vintages/{bottleVintageId}
|
|
689
|
+
* @secure
|
|
690
|
+
* @response `200` `WineBottleVintageEntityDto`
|
|
691
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
692
|
+
*/
|
|
693
|
+
getTenantWineBottleVintageById: function (tenantId, bottleVintageId, params) {
|
|
694
|
+
if (params === void 0) { params = {}; }
|
|
695
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-bottle-vintages/").concat(bottleVintageId), method: "GET", secure: true, format: "json" }, params));
|
|
696
|
+
},
|
|
570
697
|
/**
|
|
571
698
|
* No description
|
|
572
699
|
*
|
|
@@ -679,6 +806,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
679
806
|
if (params === void 0) { params = {}; }
|
|
680
807
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-vineyards/").concat(vineyardId), method: "GET", secure: true, format: "json" }, params));
|
|
681
808
|
},
|
|
809
|
+
/**
|
|
810
|
+
* No description
|
|
811
|
+
*
|
|
812
|
+
* @tags Admin Tenant Operation Extras Templates
|
|
813
|
+
* @name ListTenantOperationExtrasTemplates
|
|
814
|
+
* @request GET:/admin/tenants/{tenantId}/operation-extras-templates
|
|
815
|
+
* @secure
|
|
816
|
+
* @response `200` `CaseOperationExtraTemplateEntityPaginatedDto`
|
|
817
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
818
|
+
*/
|
|
819
|
+
listTenantOperationExtrasTemplates: function (tenantId, query, params) {
|
|
820
|
+
if (params === void 0) { params = {}; }
|
|
821
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-extras-templates"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
822
|
+
},
|
|
682
823
|
/**
|
|
683
824
|
* No description
|
|
684
825
|
*
|
|
@@ -693,6 +834,34 @@ var Api = /** @class */ (function (_super) {
|
|
|
693
834
|
if (params === void 0) { params = {}; }
|
|
694
835
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/users"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
695
836
|
},
|
|
837
|
+
/**
|
|
838
|
+
* No description
|
|
839
|
+
*
|
|
840
|
+
* @tags Admin Tenant Wine Bottle Formats
|
|
841
|
+
* @name ListTenantWineBottleFormats
|
|
842
|
+
* @request GET:/admin/tenants/{tenantId}/wine-bottle-formats
|
|
843
|
+
* @secure
|
|
844
|
+
* @response `200` `WineBottleFormatEntityPaginatedDto`
|
|
845
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
846
|
+
*/
|
|
847
|
+
listTenantWineBottleFormats: function (tenantId, query, params) {
|
|
848
|
+
if (params === void 0) { params = {}; }
|
|
849
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-bottle-formats"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
850
|
+
},
|
|
851
|
+
/**
|
|
852
|
+
* No description
|
|
853
|
+
*
|
|
854
|
+
* @tags Admin Tenant Wine Bottle Vintages
|
|
855
|
+
* @name ListTenantWineBottleVintages
|
|
856
|
+
* @request GET:/admin/tenants/{tenantId}/wine-bottle-vintages
|
|
857
|
+
* @secure
|
|
858
|
+
* @response `200` `WineBottleVintageEntityPaginatedDto`
|
|
859
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
860
|
+
*/
|
|
861
|
+
listTenantWineBottleVintages: function (tenantId, query, params) {
|
|
862
|
+
if (params === void 0) { params = {}; }
|
|
863
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-bottle-vintages"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
864
|
+
},
|
|
696
865
|
/**
|
|
697
866
|
* No description
|
|
698
867
|
*
|
|
@@ -805,6 +974,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
805
974
|
if (params === void 0) { params = {}; }
|
|
806
975
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-vineyards"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
807
976
|
},
|
|
977
|
+
/**
|
|
978
|
+
* No description
|
|
979
|
+
*
|
|
980
|
+
* @tags Admin Tenant Operation Extras Templates
|
|
981
|
+
* @name UpdateTenantOperationExtraTemplate
|
|
982
|
+
* @request PATCH:/admin/tenants/{tenantId}/operation-extras-templates/{templateId}
|
|
983
|
+
* @secure
|
|
984
|
+
* @response `200` `CaseOperationExtraTemplateEntityDto`
|
|
985
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
986
|
+
*/
|
|
987
|
+
updateTenantOperationExtraTemplate: function (tenantId, templateId, data, params) {
|
|
988
|
+
if (params === void 0) { params = {}; }
|
|
989
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-extras-templates/").concat(templateId), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
990
|
+
},
|
|
808
991
|
/**
|
|
809
992
|
* No description
|
|
810
993
|
*
|
|
@@ -819,6 +1002,34 @@ var Api = /** @class */ (function (_super) {
|
|
|
819
1002
|
if (params === void 0) { params = {}; }
|
|
820
1003
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wines/").concat(wineId), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
821
1004
|
},
|
|
1005
|
+
/**
|
|
1006
|
+
* No description
|
|
1007
|
+
*
|
|
1008
|
+
* @tags Admin Tenant Wine Bottle Formats
|
|
1009
|
+
* @name UpdateTenantWineBottleFormat
|
|
1010
|
+
* @request PATCH:/admin/tenants/{tenantId}/wine-bottle-formats/{bottleFormatId}
|
|
1011
|
+
* @secure
|
|
1012
|
+
* @response `200` `WineBottleFormatEntityDto`
|
|
1013
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
1014
|
+
*/
|
|
1015
|
+
updateTenantWineBottleFormat: function (tenantId, bottleFormatId, data, params) {
|
|
1016
|
+
if (params === void 0) { params = {}; }
|
|
1017
|
+
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));
|
|
1018
|
+
},
|
|
1019
|
+
/**
|
|
1020
|
+
* No description
|
|
1021
|
+
*
|
|
1022
|
+
* @tags Admin Tenant Wine Bottle Vintages
|
|
1023
|
+
* @name UpdateTenantWineBottleVintage
|
|
1024
|
+
* @request PATCH:/admin/tenants/{tenantId}/wine-bottle-vintages/{bottleVintageId}
|
|
1025
|
+
* @secure
|
|
1026
|
+
* @response `200` `WineBottleVintageEntityDto`
|
|
1027
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
1028
|
+
*/
|
|
1029
|
+
updateTenantWineBottleVintage: function (tenantId, bottleVintageId, data, params) {
|
|
1030
|
+
if (params === void 0) { params = {}; }
|
|
1031
|
+
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));
|
|
1032
|
+
},
|
|
822
1033
|
/**
|
|
823
1034
|
* No description
|
|
824
1035
|
*
|
package/dist/esm/api/api.js
CHANGED
|
@@ -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) {
|
|
@@ -190,7 +191,7 @@ var HttpClient = /** @class */ (function () {
|
|
|
190
191
|
export { HttpClient };
|
|
191
192
|
/**
|
|
192
193
|
* @title winehaus-api
|
|
193
|
-
* @version 0.0.
|
|
194
|
+
* @version 0.0.2
|
|
194
195
|
* @baseUrl http://localhost:3000
|
|
195
196
|
* @contact
|
|
196
197
|
*/
|
|
@@ -309,6 +310,20 @@ 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 Operation Extras Templates
|
|
317
|
+
* @name CreateTenantOperationExtraTemplate
|
|
318
|
+
* @request POST:/admin/tenants/{tenantId}/operation-extras-templates
|
|
319
|
+
* @secure
|
|
320
|
+
* @response `201` `CaseOperationExtraTemplateEntityDto`
|
|
321
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
322
|
+
*/
|
|
323
|
+
createTenantOperationExtraTemplate: function (tenantId, data, params) {
|
|
324
|
+
if (params === void 0) { params = {}; }
|
|
325
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-extras-templates"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
326
|
+
},
|
|
312
327
|
/**
|
|
313
328
|
* No description
|
|
314
329
|
*
|
|
@@ -323,6 +338,34 @@ var Api = /** @class */ (function (_super) {
|
|
|
323
338
|
if (params === void 0) { params = {}; }
|
|
324
339
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wines"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
325
340
|
},
|
|
341
|
+
/**
|
|
342
|
+
* No description
|
|
343
|
+
*
|
|
344
|
+
* @tags Admin Tenant Wine Bottle Formats
|
|
345
|
+
* @name CreateTenantWineBottleFormat
|
|
346
|
+
* @request POST:/admin/tenants/{tenantId}/wine-bottle-formats
|
|
347
|
+
* @secure
|
|
348
|
+
* @response `201` `WineBottleFormatEntityDto`
|
|
349
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
350
|
+
*/
|
|
351
|
+
createTenantWineBottleFormat: function (tenantId, data, params) {
|
|
352
|
+
if (params === void 0) { params = {}; }
|
|
353
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-bottle-formats"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
354
|
+
},
|
|
355
|
+
/**
|
|
356
|
+
* No description
|
|
357
|
+
*
|
|
358
|
+
* @tags Admin Tenant Wine Bottle Vintages
|
|
359
|
+
* @name CreateTenantWineBottleVintage
|
|
360
|
+
* @request POST:/admin/tenants/{tenantId}/wine-bottle-vintages
|
|
361
|
+
* @secure
|
|
362
|
+
* @response `201` `WineBottleVintageEntityDto`
|
|
363
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
364
|
+
*/
|
|
365
|
+
createTenantWineBottleVintage: function (tenantId, data, params) {
|
|
366
|
+
if (params === void 0) { params = {}; }
|
|
367
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-bottle-vintages"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
368
|
+
},
|
|
326
369
|
/**
|
|
327
370
|
* No description
|
|
328
371
|
*
|
|
@@ -421,6 +464,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
421
464
|
if (params === void 0) { params = {}; }
|
|
422
465
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-vineyards"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
423
466
|
},
|
|
467
|
+
/**
|
|
468
|
+
* No description
|
|
469
|
+
*
|
|
470
|
+
* @tags Admin Tenant Operation Extras Templates
|
|
471
|
+
* @name DeleteTenantOperationExtraTemplate
|
|
472
|
+
* @request DELETE:/admin/tenants/{tenantId}/operation-extras-templates/{templateId}
|
|
473
|
+
* @secure
|
|
474
|
+
* @response `204` `void`
|
|
475
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
476
|
+
*/
|
|
477
|
+
deleteTenantOperationExtraTemplate: function (tenantId, templateId, params) {
|
|
478
|
+
if (params === void 0) { params = {}; }
|
|
479
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-extras-templates/").concat(templateId), method: "DELETE", secure: true }, params));
|
|
480
|
+
},
|
|
424
481
|
/**
|
|
425
482
|
* No description
|
|
426
483
|
*
|
|
@@ -435,6 +492,34 @@ var Api = /** @class */ (function (_super) {
|
|
|
435
492
|
if (params === void 0) { params = {}; }
|
|
436
493
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wines/").concat(wineId), method: "DELETE", secure: true }, params));
|
|
437
494
|
},
|
|
495
|
+
/**
|
|
496
|
+
* No description
|
|
497
|
+
*
|
|
498
|
+
* @tags Admin Tenant Wine Bottle Formats
|
|
499
|
+
* @name DeleteTenantWineBottleFormat
|
|
500
|
+
* @request DELETE:/admin/tenants/{tenantId}/wine-bottle-formats/{bottleFormatId}
|
|
501
|
+
* @secure
|
|
502
|
+
* @response `204` `void`
|
|
503
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
504
|
+
*/
|
|
505
|
+
deleteTenantWineBottleFormat: function (tenantId, bottleFormatId, params) {
|
|
506
|
+
if (params === void 0) { params = {}; }
|
|
507
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-bottle-formats/").concat(bottleFormatId), method: "DELETE", secure: true }, params));
|
|
508
|
+
},
|
|
509
|
+
/**
|
|
510
|
+
* No description
|
|
511
|
+
*
|
|
512
|
+
* @tags Admin Tenant Wine Bottle Vintages
|
|
513
|
+
* @name DeleteTenantWineBottleVintage
|
|
514
|
+
* @request DELETE:/admin/tenants/{tenantId}/wine-bottle-vintages/{bottleVintageId}
|
|
515
|
+
* @secure
|
|
516
|
+
* @response `204` `void`
|
|
517
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
518
|
+
*/
|
|
519
|
+
deleteTenantWineBottleVintage: function (tenantId, bottleVintageId, params) {
|
|
520
|
+
if (params === void 0) { params = {}; }
|
|
521
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-bottle-vintages/").concat(bottleVintageId), method: "DELETE", secure: true }, params));
|
|
522
|
+
},
|
|
438
523
|
/**
|
|
439
524
|
* No description
|
|
440
525
|
*
|
|
@@ -561,6 +646,48 @@ var Api = /** @class */ (function (_super) {
|
|
|
561
646
|
if (params === void 0) { params = {}; }
|
|
562
647
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/users/").concat(userId, "/enable"), method: "PATCH", secure: true }, params));
|
|
563
648
|
},
|
|
649
|
+
/**
|
|
650
|
+
* No description
|
|
651
|
+
*
|
|
652
|
+
* @tags Admin Tenant Operation Extras Templates
|
|
653
|
+
* @name GetTenantOperationExtraTemplateById
|
|
654
|
+
* @request GET:/admin/tenants/{tenantId}/operation-extras-templates/{templateId}
|
|
655
|
+
* @secure
|
|
656
|
+
* @response `200` `CaseOperationExtraTemplateEntityDto`
|
|
657
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
658
|
+
*/
|
|
659
|
+
getTenantOperationExtraTemplateById: function (tenantId, templateId, params) {
|
|
660
|
+
if (params === void 0) { params = {}; }
|
|
661
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-extras-templates/").concat(templateId), method: "GET", secure: true, format: "json" }, params));
|
|
662
|
+
},
|
|
663
|
+
/**
|
|
664
|
+
* No description
|
|
665
|
+
*
|
|
666
|
+
* @tags Admin Tenant Wine Bottle Formats
|
|
667
|
+
* @name GetTenantWineBottleFormatById
|
|
668
|
+
* @request GET:/admin/tenants/{tenantId}/wine-bottle-formats/{bottleFormatId}
|
|
669
|
+
* @secure
|
|
670
|
+
* @response `200` `WineBottleFormatEntityDto`
|
|
671
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
672
|
+
*/
|
|
673
|
+
getTenantWineBottleFormatById: function (tenantId, bottleFormatId, params) {
|
|
674
|
+
if (params === void 0) { params = {}; }
|
|
675
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-bottle-formats/").concat(bottleFormatId), method: "GET", secure: true, format: "json" }, params));
|
|
676
|
+
},
|
|
677
|
+
/**
|
|
678
|
+
* No description
|
|
679
|
+
*
|
|
680
|
+
* @tags Admin Tenant Wine Bottle Vintages
|
|
681
|
+
* @name GetTenantWineBottleVintageById
|
|
682
|
+
* @request GET:/admin/tenants/{tenantId}/wine-bottle-vintages/{bottleVintageId}
|
|
683
|
+
* @secure
|
|
684
|
+
* @response `200` `WineBottleVintageEntityDto`
|
|
685
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
686
|
+
*/
|
|
687
|
+
getTenantWineBottleVintageById: function (tenantId, bottleVintageId, params) {
|
|
688
|
+
if (params === void 0) { params = {}; }
|
|
689
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-bottle-vintages/").concat(bottleVintageId), method: "GET", secure: true, format: "json" }, params));
|
|
690
|
+
},
|
|
564
691
|
/**
|
|
565
692
|
* No description
|
|
566
693
|
*
|
|
@@ -673,6 +800,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
673
800
|
if (params === void 0) { params = {}; }
|
|
674
801
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-vineyards/").concat(vineyardId), method: "GET", secure: true, format: "json" }, params));
|
|
675
802
|
},
|
|
803
|
+
/**
|
|
804
|
+
* No description
|
|
805
|
+
*
|
|
806
|
+
* @tags Admin Tenant Operation Extras Templates
|
|
807
|
+
* @name ListTenantOperationExtrasTemplates
|
|
808
|
+
* @request GET:/admin/tenants/{tenantId}/operation-extras-templates
|
|
809
|
+
* @secure
|
|
810
|
+
* @response `200` `CaseOperationExtraTemplateEntityPaginatedDto`
|
|
811
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
812
|
+
*/
|
|
813
|
+
listTenantOperationExtrasTemplates: function (tenantId, query, params) {
|
|
814
|
+
if (params === void 0) { params = {}; }
|
|
815
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-extras-templates"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
816
|
+
},
|
|
676
817
|
/**
|
|
677
818
|
* No description
|
|
678
819
|
*
|
|
@@ -687,6 +828,34 @@ var Api = /** @class */ (function (_super) {
|
|
|
687
828
|
if (params === void 0) { params = {}; }
|
|
688
829
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/users"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
689
830
|
},
|
|
831
|
+
/**
|
|
832
|
+
* No description
|
|
833
|
+
*
|
|
834
|
+
* @tags Admin Tenant Wine Bottle Formats
|
|
835
|
+
* @name ListTenantWineBottleFormats
|
|
836
|
+
* @request GET:/admin/tenants/{tenantId}/wine-bottle-formats
|
|
837
|
+
* @secure
|
|
838
|
+
* @response `200` `WineBottleFormatEntityPaginatedDto`
|
|
839
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
840
|
+
*/
|
|
841
|
+
listTenantWineBottleFormats: function (tenantId, query, params) {
|
|
842
|
+
if (params === void 0) { params = {}; }
|
|
843
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-bottle-formats"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
844
|
+
},
|
|
845
|
+
/**
|
|
846
|
+
* No description
|
|
847
|
+
*
|
|
848
|
+
* @tags Admin Tenant Wine Bottle Vintages
|
|
849
|
+
* @name ListTenantWineBottleVintages
|
|
850
|
+
* @request GET:/admin/tenants/{tenantId}/wine-bottle-vintages
|
|
851
|
+
* @secure
|
|
852
|
+
* @response `200` `WineBottleVintageEntityPaginatedDto`
|
|
853
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
854
|
+
*/
|
|
855
|
+
listTenantWineBottleVintages: function (tenantId, query, params) {
|
|
856
|
+
if (params === void 0) { params = {}; }
|
|
857
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-bottle-vintages"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
858
|
+
},
|
|
690
859
|
/**
|
|
691
860
|
* No description
|
|
692
861
|
*
|
|
@@ -799,6 +968,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
799
968
|
if (params === void 0) { params = {}; }
|
|
800
969
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-vineyards"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
801
970
|
},
|
|
971
|
+
/**
|
|
972
|
+
* No description
|
|
973
|
+
*
|
|
974
|
+
* @tags Admin Tenant Operation Extras Templates
|
|
975
|
+
* @name UpdateTenantOperationExtraTemplate
|
|
976
|
+
* @request PATCH:/admin/tenants/{tenantId}/operation-extras-templates/{templateId}
|
|
977
|
+
* @secure
|
|
978
|
+
* @response `200` `CaseOperationExtraTemplateEntityDto`
|
|
979
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
980
|
+
*/
|
|
981
|
+
updateTenantOperationExtraTemplate: function (tenantId, templateId, data, params) {
|
|
982
|
+
if (params === void 0) { params = {}; }
|
|
983
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-extras-templates/").concat(templateId), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
984
|
+
},
|
|
802
985
|
/**
|
|
803
986
|
* No description
|
|
804
987
|
*
|
|
@@ -813,6 +996,34 @@ var Api = /** @class */ (function (_super) {
|
|
|
813
996
|
if (params === void 0) { params = {}; }
|
|
814
997
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wines/").concat(wineId), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
815
998
|
},
|
|
999
|
+
/**
|
|
1000
|
+
* No description
|
|
1001
|
+
*
|
|
1002
|
+
* @tags Admin Tenant Wine Bottle Formats
|
|
1003
|
+
* @name UpdateTenantWineBottleFormat
|
|
1004
|
+
* @request PATCH:/admin/tenants/{tenantId}/wine-bottle-formats/{bottleFormatId}
|
|
1005
|
+
* @secure
|
|
1006
|
+
* @response `200` `WineBottleFormatEntityDto`
|
|
1007
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
1008
|
+
*/
|
|
1009
|
+
updateTenantWineBottleFormat: function (tenantId, bottleFormatId, data, params) {
|
|
1010
|
+
if (params === void 0) { params = {}; }
|
|
1011
|
+
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));
|
|
1012
|
+
},
|
|
1013
|
+
/**
|
|
1014
|
+
* No description
|
|
1015
|
+
*
|
|
1016
|
+
* @tags Admin Tenant Wine Bottle Vintages
|
|
1017
|
+
* @name UpdateTenantWineBottleVintage
|
|
1018
|
+
* @request PATCH:/admin/tenants/{tenantId}/wine-bottle-vintages/{bottleVintageId}
|
|
1019
|
+
* @secure
|
|
1020
|
+
* @response `200` `WineBottleVintageEntityDto`
|
|
1021
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
1022
|
+
*/
|
|
1023
|
+
updateTenantWineBottleVintage: function (tenantId, bottleVintageId, data, params) {
|
|
1024
|
+
if (params === void 0) { params = {}; }
|
|
1025
|
+
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));
|
|
1026
|
+
},
|
|
816
1027
|
/**
|
|
817
1028
|
* No description
|
|
818
1029
|
*
|