@thelllabs/winehaus-sdk 0.0.4 → 0.0.7
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 +573 -31
- package/dist/cjs/sdk.js +34 -10
- package/dist/esm/api/api.js +572 -30
- package/dist/esm/sdk.js +34 -10
- package/dist/types/api/api.d.ts +1822 -181
- package/dist/types/interfaces.d.ts +6 -0
- package/dist/types/sdk.d.ts +10 -5
- package/dist/umd/index.ts +607 -41
- package/package.json +1 -1
package/dist/cjs/api/api.js
CHANGED
|
@@ -85,41 +85,23 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
85
85
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
86
86
|
};
|
|
87
87
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
88
|
-
exports.Api = exports.HttpClient = exports.ContentType = exports.
|
|
89
|
-
var CreateTenantUserDtoRolesEnum;
|
|
90
|
-
(function (CreateTenantUserDtoRolesEnum) {
|
|
91
|
-
CreateTenantUserDtoRolesEnum["Operator"] = "operator";
|
|
92
|
-
CreateTenantUserDtoRolesEnum["Admin"] = "admin";
|
|
93
|
-
CreateTenantUserDtoRolesEnum["Owner"] = "owner";
|
|
94
|
-
})(CreateTenantUserDtoRolesEnum = exports.CreateTenantUserDtoRolesEnum || (exports.CreateTenantUserDtoRolesEnum = {}));
|
|
95
|
-
var ListTenantUsersParamsRolesEnum;
|
|
96
|
-
(function (ListTenantUsersParamsRolesEnum) {
|
|
97
|
-
ListTenantUsersParamsRolesEnum["Operator"] = "operator";
|
|
98
|
-
ListTenantUsersParamsRolesEnum["Admin"] = "admin";
|
|
99
|
-
ListTenantUsersParamsRolesEnum["Owner"] = "owner";
|
|
100
|
-
})(ListTenantUsersParamsRolesEnum = exports.ListTenantUsersParamsRolesEnum || (exports.ListTenantUsersParamsRolesEnum = {}));
|
|
101
|
-
var ListTenantUsersParamsStatusEnum;
|
|
102
|
-
(function (ListTenantUsersParamsStatusEnum) {
|
|
103
|
-
ListTenantUsersParamsStatusEnum["Enabled"] = "enabled";
|
|
104
|
-
ListTenantUsersParamsStatusEnum["Blocked"] = "blocked";
|
|
105
|
-
})(ListTenantUsersParamsStatusEnum = exports.ListTenantUsersParamsStatusEnum || (exports.ListTenantUsersParamsStatusEnum = {}));
|
|
88
|
+
exports.Api = exports.HttpClient = exports.ContentType = exports.TenantUserStatusEnum = exports.TenantRoleEnum = exports.OrderByEnum = void 0;
|
|
106
89
|
var OrderByEnum;
|
|
107
90
|
(function (OrderByEnum) {
|
|
108
91
|
OrderByEnum["ASC"] = "ASC";
|
|
109
92
|
OrderByEnum["DESC"] = "DESC";
|
|
110
93
|
})(OrderByEnum = exports.OrderByEnum || (exports.OrderByEnum = {}));
|
|
111
|
-
var
|
|
112
|
-
(function (
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
})(
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
})(TenantUserEntityDtoStatusEnum = exports.TenantUserEntityDtoStatusEnum || (exports.TenantUserEntityDtoStatusEnum = {}));
|
|
94
|
+
var TenantRoleEnum;
|
|
95
|
+
(function (TenantRoleEnum) {
|
|
96
|
+
TenantRoleEnum["Operator"] = "operator";
|
|
97
|
+
TenantRoleEnum["Admin"] = "admin";
|
|
98
|
+
TenantRoleEnum["Owner"] = "owner";
|
|
99
|
+
})(TenantRoleEnum = exports.TenantRoleEnum || (exports.TenantRoleEnum = {}));
|
|
100
|
+
var TenantUserStatusEnum;
|
|
101
|
+
(function (TenantUserStatusEnum) {
|
|
102
|
+
TenantUserStatusEnum["Enabled"] = "enabled";
|
|
103
|
+
TenantUserStatusEnum["Blocked"] = "blocked";
|
|
104
|
+
})(TenantUserStatusEnum = exports.TenantUserStatusEnum || (exports.TenantUserStatusEnum = {}));
|
|
123
105
|
var axios_1 = __importDefault(require("axios"));
|
|
124
106
|
var ContentType;
|
|
125
107
|
(function (ContentType) {
|
|
@@ -333,6 +315,230 @@ var Api = /** @class */ (function (_super) {
|
|
|
333
315
|
if (params === void 0) { params = {}; }
|
|
334
316
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/users"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
335
317
|
},
|
|
318
|
+
/**
|
|
319
|
+
* No description
|
|
320
|
+
*
|
|
321
|
+
* @tags Admin Tenant Wines
|
|
322
|
+
* @name CreateTenantWine
|
|
323
|
+
* @request POST:/admin/tenants/{tenantId}/wines
|
|
324
|
+
* @secure
|
|
325
|
+
* @response `201` `WineEntityDto`
|
|
326
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
327
|
+
*/
|
|
328
|
+
createTenantWine: function (tenantId, data, params) {
|
|
329
|
+
if (params === void 0) { params = {}; }
|
|
330
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wines"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
331
|
+
},
|
|
332
|
+
/**
|
|
333
|
+
* No description
|
|
334
|
+
*
|
|
335
|
+
* @tags Admin Tenant Wine Brands
|
|
336
|
+
* @name CreateTenantWineBrand
|
|
337
|
+
* @request POST:/admin/tenants/{tenantId}/wine-brands
|
|
338
|
+
* @secure
|
|
339
|
+
* @response `201` `WineBrandEntityDto`
|
|
340
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
341
|
+
*/
|
|
342
|
+
createTenantWineBrand: function (tenantId, data, params) {
|
|
343
|
+
if (params === void 0) { params = {}; }
|
|
344
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-brands"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
345
|
+
},
|
|
346
|
+
/**
|
|
347
|
+
* No description
|
|
348
|
+
*
|
|
349
|
+
* @tags Admin Tenant Wine Producers
|
|
350
|
+
* @name CreateTenantWineProducer
|
|
351
|
+
* @request POST:/admin/tenants/{tenantId}/wine-producers
|
|
352
|
+
* @secure
|
|
353
|
+
* @response `201` `WineProducerEntityDto`
|
|
354
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
355
|
+
*/
|
|
356
|
+
createTenantWineProducer: function (tenantId, data, params) {
|
|
357
|
+
if (params === void 0) { params = {}; }
|
|
358
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-producers"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
359
|
+
},
|
|
360
|
+
/**
|
|
361
|
+
* No description
|
|
362
|
+
*
|
|
363
|
+
* @tags Admin Tenant Wine Styles
|
|
364
|
+
* @name CreateTenantWineStyle
|
|
365
|
+
* @request POST:/admin/tenants/{tenantId}/wine-styles
|
|
366
|
+
* @secure
|
|
367
|
+
* @response `201` `WineStyleEntityDto`
|
|
368
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
369
|
+
*/
|
|
370
|
+
createTenantWineStyle: function (tenantId, data, params) {
|
|
371
|
+
if (params === void 0) { params = {}; }
|
|
372
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-styles"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
373
|
+
},
|
|
374
|
+
/**
|
|
375
|
+
* No description
|
|
376
|
+
*
|
|
377
|
+
* @tags Admin Tenant Wine Types
|
|
378
|
+
* @name CreateTenantWineType
|
|
379
|
+
* @request POST:/admin/tenants/{tenantId}/wine-types
|
|
380
|
+
* @secure
|
|
381
|
+
* @response `201` `WineTypeEntityDto`
|
|
382
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
383
|
+
*/
|
|
384
|
+
createTenantWineType: function (tenantId, data, params) {
|
|
385
|
+
if (params === void 0) { params = {}; }
|
|
386
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-types"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
387
|
+
},
|
|
388
|
+
/**
|
|
389
|
+
* No description
|
|
390
|
+
*
|
|
391
|
+
* @tags Admin Tenant Wine Varietals
|
|
392
|
+
* @name CreateTenantWineVarietal
|
|
393
|
+
* @request POST:/admin/tenants/{tenantId}/wine-varietals
|
|
394
|
+
* @secure
|
|
395
|
+
* @response `201` `WineVarietalEntityDto`
|
|
396
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
397
|
+
*/
|
|
398
|
+
createTenantWineVarietal: function (tenantId, data, params) {
|
|
399
|
+
if (params === void 0) { params = {}; }
|
|
400
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-varietals"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
401
|
+
},
|
|
402
|
+
/**
|
|
403
|
+
* No description
|
|
404
|
+
*
|
|
405
|
+
* @tags Admin Tenant Wine Villages
|
|
406
|
+
* @name CreateTenantWineVillage
|
|
407
|
+
* @request POST:/admin/tenants/{tenantId}/wine-villages
|
|
408
|
+
* @secure
|
|
409
|
+
* @response `201` `WineVillageEntityDto`
|
|
410
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
411
|
+
*/
|
|
412
|
+
createTenantWineVillage: function (tenantId, data, params) {
|
|
413
|
+
if (params === void 0) { params = {}; }
|
|
414
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-villages"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
415
|
+
},
|
|
416
|
+
/**
|
|
417
|
+
* No description
|
|
418
|
+
*
|
|
419
|
+
* @tags Admin Tenant Wine Vineyards
|
|
420
|
+
* @name CreateTenantWineVineyard
|
|
421
|
+
* @request POST:/admin/tenants/{tenantId}/wine-vineyards
|
|
422
|
+
* @secure
|
|
423
|
+
* @response `201` `WineVineyardEntityDto`
|
|
424
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
425
|
+
*/
|
|
426
|
+
createTenantWineVineyard: function (tenantId, data, params) {
|
|
427
|
+
if (params === void 0) { params = {}; }
|
|
428
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-vineyards"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
429
|
+
},
|
|
430
|
+
/**
|
|
431
|
+
* No description
|
|
432
|
+
*
|
|
433
|
+
* @tags Admin Tenant Wines
|
|
434
|
+
* @name DeleteTenantWine
|
|
435
|
+
* @request DELETE:/admin/tenants/{tenantId}/wines/{wineId}
|
|
436
|
+
* @secure
|
|
437
|
+
* @response `204` `void`
|
|
438
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
439
|
+
*/
|
|
440
|
+
deleteTenantWine: function (tenantId, wineId, params) {
|
|
441
|
+
if (params === void 0) { params = {}; }
|
|
442
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wines/").concat(wineId), method: "DELETE", secure: true }, params));
|
|
443
|
+
},
|
|
444
|
+
/**
|
|
445
|
+
* No description
|
|
446
|
+
*
|
|
447
|
+
* @tags Admin Tenant Wine Brands
|
|
448
|
+
* @name DeleteTenantWineBrand
|
|
449
|
+
* @request DELETE:/admin/tenants/{tenantId}/wine-brands/{brandId}
|
|
450
|
+
* @secure
|
|
451
|
+
* @response `204` `void`
|
|
452
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
453
|
+
*/
|
|
454
|
+
deleteTenantWineBrand: function (tenantId, brandId, params) {
|
|
455
|
+
if (params === void 0) { params = {}; }
|
|
456
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-brands/").concat(brandId), method: "DELETE", secure: true }, params));
|
|
457
|
+
},
|
|
458
|
+
/**
|
|
459
|
+
* No description
|
|
460
|
+
*
|
|
461
|
+
* @tags Admin Tenant Wine Producers
|
|
462
|
+
* @name DeleteTenantWineProducer
|
|
463
|
+
* @request DELETE:/admin/tenants/{tenantId}/wine-producers/{producerId}
|
|
464
|
+
* @secure
|
|
465
|
+
* @response `204` `void`
|
|
466
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
467
|
+
*/
|
|
468
|
+
deleteTenantWineProducer: function (tenantId, producerId, params) {
|
|
469
|
+
if (params === void 0) { params = {}; }
|
|
470
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-producers/").concat(producerId), method: "DELETE", secure: true }, params));
|
|
471
|
+
},
|
|
472
|
+
/**
|
|
473
|
+
* No description
|
|
474
|
+
*
|
|
475
|
+
* @tags Admin Tenant Wine Styles
|
|
476
|
+
* @name DeleteTenantWineStyle
|
|
477
|
+
* @request DELETE:/admin/tenants/{tenantId}/wine-styles/{styleId}
|
|
478
|
+
* @secure
|
|
479
|
+
* @response `204` `void`
|
|
480
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
481
|
+
*/
|
|
482
|
+
deleteTenantWineStyle: function (tenantId, styleId, params) {
|
|
483
|
+
if (params === void 0) { params = {}; }
|
|
484
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-styles/").concat(styleId), method: "DELETE", secure: true }, params));
|
|
485
|
+
},
|
|
486
|
+
/**
|
|
487
|
+
* No description
|
|
488
|
+
*
|
|
489
|
+
* @tags Admin Tenant Wine Types
|
|
490
|
+
* @name DeleteTenantWineType
|
|
491
|
+
* @request DELETE:/admin/tenants/{tenantId}/wine-types/{typeId}
|
|
492
|
+
* @secure
|
|
493
|
+
* @response `204` `void`
|
|
494
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
495
|
+
*/
|
|
496
|
+
deleteTenantWineType: function (tenantId, typeId, params) {
|
|
497
|
+
if (params === void 0) { params = {}; }
|
|
498
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-types/").concat(typeId), method: "DELETE", secure: true }, params));
|
|
499
|
+
},
|
|
500
|
+
/**
|
|
501
|
+
* No description
|
|
502
|
+
*
|
|
503
|
+
* @tags Admin Tenant Wine Varietals
|
|
504
|
+
* @name DeleteTenantWineVarietal
|
|
505
|
+
* @request DELETE:/admin/tenants/{tenantId}/wine-varietals/{varietalId}
|
|
506
|
+
* @secure
|
|
507
|
+
* @response `204` `void`
|
|
508
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
509
|
+
*/
|
|
510
|
+
deleteTenantWineVarietal: function (tenantId, varietalId, params) {
|
|
511
|
+
if (params === void 0) { params = {}; }
|
|
512
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-varietals/").concat(varietalId), method: "DELETE", secure: true }, params));
|
|
513
|
+
},
|
|
514
|
+
/**
|
|
515
|
+
* No description
|
|
516
|
+
*
|
|
517
|
+
* @tags Admin Tenant Wine Villages
|
|
518
|
+
* @name DeleteTenantWineVillage
|
|
519
|
+
* @request DELETE:/admin/tenants/{tenantId}/wine-villages/{villageId}
|
|
520
|
+
* @secure
|
|
521
|
+
* @response `204` `void`
|
|
522
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
523
|
+
*/
|
|
524
|
+
deleteTenantWineVillage: function (tenantId, villageId, params) {
|
|
525
|
+
if (params === void 0) { params = {}; }
|
|
526
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-villages/").concat(villageId), method: "DELETE", secure: true }, params));
|
|
527
|
+
},
|
|
528
|
+
/**
|
|
529
|
+
* No description
|
|
530
|
+
*
|
|
531
|
+
* @tags Admin Tenant Wine Vineyards
|
|
532
|
+
* @name DeleteTenantWineVineyard
|
|
533
|
+
* @request DELETE:/admin/tenants/{tenantId}/wine-vineyards/{vineyardId}
|
|
534
|
+
* @secure
|
|
535
|
+
* @response `204` `void`
|
|
536
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
537
|
+
*/
|
|
538
|
+
deleteTenantWineVineyard: function (tenantId, vineyardId, params) {
|
|
539
|
+
if (params === void 0) { params = {}; }
|
|
540
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-vineyards/").concat(vineyardId), method: "DELETE", secure: true }, params));
|
|
541
|
+
},
|
|
336
542
|
/**
|
|
337
543
|
* No description
|
|
338
544
|
*
|
|
@@ -361,6 +567,118 @@ var Api = /** @class */ (function (_super) {
|
|
|
361
567
|
if (params === void 0) { params = {}; }
|
|
362
568
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/users/").concat(userId, "/enable"), method: "PATCH", secure: true }, params));
|
|
363
569
|
},
|
|
570
|
+
/**
|
|
571
|
+
* No description
|
|
572
|
+
*
|
|
573
|
+
* @tags Admin Tenant Wine Brands
|
|
574
|
+
* @name GetTenantWineBrandById
|
|
575
|
+
* @request GET:/admin/tenants/{tenantId}/wine-brands/{brandId}
|
|
576
|
+
* @secure
|
|
577
|
+
* @response `200` `WineBrandEntityDto`
|
|
578
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
579
|
+
*/
|
|
580
|
+
getTenantWineBrandById: function (tenantId, brandId, params) {
|
|
581
|
+
if (params === void 0) { params = {}; }
|
|
582
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-brands/").concat(brandId), method: "GET", secure: true, format: "json" }, params));
|
|
583
|
+
},
|
|
584
|
+
/**
|
|
585
|
+
* No description
|
|
586
|
+
*
|
|
587
|
+
* @tags Admin Tenant Wines
|
|
588
|
+
* @name GetTenantWineById
|
|
589
|
+
* @request GET:/admin/tenants/{tenantId}/wines/{wineId}
|
|
590
|
+
* @secure
|
|
591
|
+
* @response `200` `WineEntityDto`
|
|
592
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
593
|
+
*/
|
|
594
|
+
getTenantWineById: function (tenantId, wineId, params) {
|
|
595
|
+
if (params === void 0) { params = {}; }
|
|
596
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wines/").concat(wineId), method: "GET", secure: true, format: "json" }, params));
|
|
597
|
+
},
|
|
598
|
+
/**
|
|
599
|
+
* No description
|
|
600
|
+
*
|
|
601
|
+
* @tags Admin Tenant Wine Producers
|
|
602
|
+
* @name GetTenantWineProducerById
|
|
603
|
+
* @request GET:/admin/tenants/{tenantId}/wine-producers/{producerId}
|
|
604
|
+
* @secure
|
|
605
|
+
* @response `200` `WineProducerEntityDto`
|
|
606
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
607
|
+
*/
|
|
608
|
+
getTenantWineProducerById: function (tenantId, producerId, params) {
|
|
609
|
+
if (params === void 0) { params = {}; }
|
|
610
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-producers/").concat(producerId), method: "GET", secure: true, format: "json" }, params));
|
|
611
|
+
},
|
|
612
|
+
/**
|
|
613
|
+
* No description
|
|
614
|
+
*
|
|
615
|
+
* @tags Admin Tenant Wine Styles
|
|
616
|
+
* @name GetTenantWineStyleById
|
|
617
|
+
* @request GET:/admin/tenants/{tenantId}/wine-styles/{styleId}
|
|
618
|
+
* @secure
|
|
619
|
+
* @response `200` `WineStyleEntityDto`
|
|
620
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
621
|
+
*/
|
|
622
|
+
getTenantWineStyleById: function (tenantId, styleId, params) {
|
|
623
|
+
if (params === void 0) { params = {}; }
|
|
624
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-styles/").concat(styleId), method: "GET", secure: true, format: "json" }, params));
|
|
625
|
+
},
|
|
626
|
+
/**
|
|
627
|
+
* No description
|
|
628
|
+
*
|
|
629
|
+
* @tags Admin Tenant Wine Types
|
|
630
|
+
* @name GetTenantWineTypeById
|
|
631
|
+
* @request GET:/admin/tenants/{tenantId}/wine-types/{typeId}
|
|
632
|
+
* @secure
|
|
633
|
+
* @response `200` `WineTypeEntityDto`
|
|
634
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
635
|
+
*/
|
|
636
|
+
getTenantWineTypeById: function (tenantId, typeId, params) {
|
|
637
|
+
if (params === void 0) { params = {}; }
|
|
638
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-types/").concat(typeId), method: "GET", secure: true, format: "json" }, params));
|
|
639
|
+
},
|
|
640
|
+
/**
|
|
641
|
+
* No description
|
|
642
|
+
*
|
|
643
|
+
* @tags Admin Tenant Wine Varietals
|
|
644
|
+
* @name GetTenantWineVarietalById
|
|
645
|
+
* @request GET:/admin/tenants/{tenantId}/wine-varietals/{varietalId}
|
|
646
|
+
* @secure
|
|
647
|
+
* @response `200` `WineVarietalEntityDto`
|
|
648
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
649
|
+
*/
|
|
650
|
+
getTenantWineVarietalById: function (tenantId, varietalId, params) {
|
|
651
|
+
if (params === void 0) { params = {}; }
|
|
652
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-varietals/").concat(varietalId), method: "GET", secure: true, format: "json" }, params));
|
|
653
|
+
},
|
|
654
|
+
/**
|
|
655
|
+
* No description
|
|
656
|
+
*
|
|
657
|
+
* @tags Admin Tenant Wine Villages
|
|
658
|
+
* @name GetTenantWineVillageById
|
|
659
|
+
* @request GET:/admin/tenants/{tenantId}/wine-villages/{villageId}
|
|
660
|
+
* @secure
|
|
661
|
+
* @response `200` `WineVillageEntityDto`
|
|
662
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
663
|
+
*/
|
|
664
|
+
getTenantWineVillageById: function (tenantId, villageId, params) {
|
|
665
|
+
if (params === void 0) { params = {}; }
|
|
666
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-villages/").concat(villageId), method: "GET", secure: true, format: "json" }, params));
|
|
667
|
+
},
|
|
668
|
+
/**
|
|
669
|
+
* No description
|
|
670
|
+
*
|
|
671
|
+
* @tags Admin Tenant Wine Vineyards
|
|
672
|
+
* @name GetTenantWineVineyardById
|
|
673
|
+
* @request GET:/admin/tenants/{tenantId}/wine-vineyards/{vineyardId}
|
|
674
|
+
* @secure
|
|
675
|
+
* @response `200` `WineVineyardEntityDto`
|
|
676
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
677
|
+
*/
|
|
678
|
+
getTenantWineVineyardById: function (tenantId, vineyardId, params) {
|
|
679
|
+
if (params === void 0) { params = {}; }
|
|
680
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-vineyards/").concat(vineyardId), method: "GET", secure: true, format: "json" }, params));
|
|
681
|
+
},
|
|
364
682
|
/**
|
|
365
683
|
* No description
|
|
366
684
|
*
|
|
@@ -368,13 +686,237 @@ var Api = /** @class */ (function (_super) {
|
|
|
368
686
|
* @name ListTenantUsers
|
|
369
687
|
* @request GET:/admin/tenants/{tenantId}/users
|
|
370
688
|
* @secure
|
|
371
|
-
* @response `200` `
|
|
689
|
+
* @response `200` `TenantUserEntityPaginatedDto`
|
|
372
690
|
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
373
691
|
*/
|
|
374
692
|
listTenantUsers: function (tenantId, query, params) {
|
|
375
693
|
if (params === void 0) { params = {}; }
|
|
376
694
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/users"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
377
695
|
},
|
|
696
|
+
/**
|
|
697
|
+
* No description
|
|
698
|
+
*
|
|
699
|
+
* @tags Admin Tenant Wine Brands
|
|
700
|
+
* @name ListTenantWineBrands
|
|
701
|
+
* @request GET:/admin/tenants/{tenantId}/wine-brands
|
|
702
|
+
* @secure
|
|
703
|
+
* @response `200` `WineBrandEntityPaginatedDto`
|
|
704
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
705
|
+
*/
|
|
706
|
+
listTenantWineBrands: function (tenantId, query, params) {
|
|
707
|
+
if (params === void 0) { params = {}; }
|
|
708
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-brands"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
709
|
+
},
|
|
710
|
+
/**
|
|
711
|
+
* No description
|
|
712
|
+
*
|
|
713
|
+
* @tags Admin Tenant Wine Producers
|
|
714
|
+
* @name ListTenantWineProducers
|
|
715
|
+
* @request GET:/admin/tenants/{tenantId}/wine-producers
|
|
716
|
+
* @secure
|
|
717
|
+
* @response `200` `WineProducerEntityPaginatedDto`
|
|
718
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
719
|
+
*/
|
|
720
|
+
listTenantWineProducers: function (tenantId, query, params) {
|
|
721
|
+
if (params === void 0) { params = {}; }
|
|
722
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-producers"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
723
|
+
},
|
|
724
|
+
/**
|
|
725
|
+
* No description
|
|
726
|
+
*
|
|
727
|
+
* @tags Admin Tenant Wines
|
|
728
|
+
* @name ListTenantWines
|
|
729
|
+
* @request GET:/admin/tenants/{tenantId}/wines
|
|
730
|
+
* @secure
|
|
731
|
+
* @response `200` `WineEntityPaginatedDto`
|
|
732
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
733
|
+
*/
|
|
734
|
+
listTenantWines: function (tenantId, query, params) {
|
|
735
|
+
if (params === void 0) { params = {}; }
|
|
736
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wines"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
737
|
+
},
|
|
738
|
+
/**
|
|
739
|
+
* No description
|
|
740
|
+
*
|
|
741
|
+
* @tags Admin Tenant Wine Styles
|
|
742
|
+
* @name ListTenantWineStyles
|
|
743
|
+
* @request GET:/admin/tenants/{tenantId}/wine-styles
|
|
744
|
+
* @secure
|
|
745
|
+
* @response `200` `WineStyleEntityPaginatedDto`
|
|
746
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
747
|
+
*/
|
|
748
|
+
listTenantWineStyles: function (tenantId, query, params) {
|
|
749
|
+
if (params === void 0) { params = {}; }
|
|
750
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-styles"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
751
|
+
},
|
|
752
|
+
/**
|
|
753
|
+
* No description
|
|
754
|
+
*
|
|
755
|
+
* @tags Admin Tenant Wine Types
|
|
756
|
+
* @name ListTenantWineTypes
|
|
757
|
+
* @request GET:/admin/tenants/{tenantId}/wine-types
|
|
758
|
+
* @secure
|
|
759
|
+
* @response `200` `WineTypeEntityPaginatedDto`
|
|
760
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
761
|
+
*/
|
|
762
|
+
listTenantWineTypes: function (tenantId, query, params) {
|
|
763
|
+
if (params === void 0) { params = {}; }
|
|
764
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-types"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
765
|
+
},
|
|
766
|
+
/**
|
|
767
|
+
* No description
|
|
768
|
+
*
|
|
769
|
+
* @tags Admin Tenant Wine Varietals
|
|
770
|
+
* @name ListTenantWineVarietals
|
|
771
|
+
* @request GET:/admin/tenants/{tenantId}/wine-varietals
|
|
772
|
+
* @secure
|
|
773
|
+
* @response `200` `WineVarietalEntityPaginatedDto`
|
|
774
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
775
|
+
*/
|
|
776
|
+
listTenantWineVarietals: function (tenantId, query, params) {
|
|
777
|
+
if (params === void 0) { params = {}; }
|
|
778
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-varietals"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
779
|
+
},
|
|
780
|
+
/**
|
|
781
|
+
* No description
|
|
782
|
+
*
|
|
783
|
+
* @tags Admin Tenant Wine Villages
|
|
784
|
+
* @name ListTenantWineVillages
|
|
785
|
+
* @request GET:/admin/tenants/{tenantId}/wine-villages
|
|
786
|
+
* @secure
|
|
787
|
+
* @response `200` `WineVillageEntityPaginatedDto`
|
|
788
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
789
|
+
*/
|
|
790
|
+
listTenantWineVillages: function (tenantId, query, params) {
|
|
791
|
+
if (params === void 0) { params = {}; }
|
|
792
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-villages"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
793
|
+
},
|
|
794
|
+
/**
|
|
795
|
+
* No description
|
|
796
|
+
*
|
|
797
|
+
* @tags Admin Tenant Wine Vineyards
|
|
798
|
+
* @name ListTenantWineVineyards
|
|
799
|
+
* @request GET:/admin/tenants/{tenantId}/wine-vineyards
|
|
800
|
+
* @secure
|
|
801
|
+
* @response `200` `WineVineyardEntityPaginatedDto`
|
|
802
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
803
|
+
*/
|
|
804
|
+
listTenantWineVineyards: function (tenantId, query, params) {
|
|
805
|
+
if (params === void 0) { params = {}; }
|
|
806
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-vineyards"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
807
|
+
},
|
|
808
|
+
/**
|
|
809
|
+
* No description
|
|
810
|
+
*
|
|
811
|
+
* @tags Admin Tenant Wines
|
|
812
|
+
* @name UpdateTenantWine
|
|
813
|
+
* @request PATCH:/admin/tenants/{tenantId}/wines/{wineId}
|
|
814
|
+
* @secure
|
|
815
|
+
* @response `200` `WineEntityDto`
|
|
816
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
817
|
+
*/
|
|
818
|
+
updateTenantWine: function (tenantId, wineId, data, params) {
|
|
819
|
+
if (params === void 0) { params = {}; }
|
|
820
|
+
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
|
+
},
|
|
822
|
+
/**
|
|
823
|
+
* No description
|
|
824
|
+
*
|
|
825
|
+
* @tags Admin Tenant Wine Brands
|
|
826
|
+
* @name UpdateTenantWineBrand
|
|
827
|
+
* @request PATCH:/admin/tenants/{tenantId}/wine-brands/{brandId}
|
|
828
|
+
* @secure
|
|
829
|
+
* @response `200` `WineBrandEntityDto`
|
|
830
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
831
|
+
*/
|
|
832
|
+
updateTenantWineBrand: function (tenantId, brandId, data, params) {
|
|
833
|
+
if (params === void 0) { params = {}; }
|
|
834
|
+
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));
|
|
835
|
+
},
|
|
836
|
+
/**
|
|
837
|
+
* No description
|
|
838
|
+
*
|
|
839
|
+
* @tags Admin Tenant Wine Producers
|
|
840
|
+
* @name UpdateTenantWineProducer
|
|
841
|
+
* @request PATCH:/admin/tenants/{tenantId}/wine-producers/{producerId}
|
|
842
|
+
* @secure
|
|
843
|
+
* @response `200` `WineProducerEntityDto`
|
|
844
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
845
|
+
*/
|
|
846
|
+
updateTenantWineProducer: function (tenantId, producerId, data, params) {
|
|
847
|
+
if (params === void 0) { params = {}; }
|
|
848
|
+
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));
|
|
849
|
+
},
|
|
850
|
+
/**
|
|
851
|
+
* No description
|
|
852
|
+
*
|
|
853
|
+
* @tags Admin Tenant Wine Styles
|
|
854
|
+
* @name UpdateTenantWineStyle
|
|
855
|
+
* @request PATCH:/admin/tenants/{tenantId}/wine-styles/{styleId}
|
|
856
|
+
* @secure
|
|
857
|
+
* @response `200` `WineStyleEntityDto`
|
|
858
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
859
|
+
*/
|
|
860
|
+
updateTenantWineStyle: function (tenantId, styleId, data, params) {
|
|
861
|
+
if (params === void 0) { params = {}; }
|
|
862
|
+
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));
|
|
863
|
+
},
|
|
864
|
+
/**
|
|
865
|
+
* No description
|
|
866
|
+
*
|
|
867
|
+
* @tags Admin Tenant Wine Types
|
|
868
|
+
* @name UpdateTenantWineType
|
|
869
|
+
* @request PATCH:/admin/tenants/{tenantId}/wine-types/{typeId}
|
|
870
|
+
* @secure
|
|
871
|
+
* @response `200` `WineTypeEntityDto`
|
|
872
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
873
|
+
*/
|
|
874
|
+
updateTenantWineType: function (tenantId, typeId, data, params) {
|
|
875
|
+
if (params === void 0) { params = {}; }
|
|
876
|
+
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));
|
|
877
|
+
},
|
|
878
|
+
/**
|
|
879
|
+
* No description
|
|
880
|
+
*
|
|
881
|
+
* @tags Admin Tenant Wine Varietals
|
|
882
|
+
* @name UpdateTenantWineVarietal
|
|
883
|
+
* @request PATCH:/admin/tenants/{tenantId}/wine-varietals/{varietalId}
|
|
884
|
+
* @secure
|
|
885
|
+
* @response `200` `WineVarietalEntityDto`
|
|
886
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
887
|
+
*/
|
|
888
|
+
updateTenantWineVarietal: function (tenantId, varietalId, data, params) {
|
|
889
|
+
if (params === void 0) { params = {}; }
|
|
890
|
+
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));
|
|
891
|
+
},
|
|
892
|
+
/**
|
|
893
|
+
* No description
|
|
894
|
+
*
|
|
895
|
+
* @tags Admin Tenant Wine Villages
|
|
896
|
+
* @name UpdateTenantWineVillage
|
|
897
|
+
* @request PATCH:/admin/tenants/{tenantId}/wine-villages/{villageId}
|
|
898
|
+
* @secure
|
|
899
|
+
* @response `200` `WineVillageEntityDto`
|
|
900
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
901
|
+
*/
|
|
902
|
+
updateTenantWineVillage: function (tenantId, villageId, data, params) {
|
|
903
|
+
if (params === void 0) { params = {}; }
|
|
904
|
+
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));
|
|
905
|
+
},
|
|
906
|
+
/**
|
|
907
|
+
* No description
|
|
908
|
+
*
|
|
909
|
+
* @tags Admin Tenant Wine Vineyards
|
|
910
|
+
* @name UpdateTenantWineVineyard
|
|
911
|
+
* @request PATCH:/admin/tenants/{tenantId}/wine-vineyards/{vineyardId}
|
|
912
|
+
* @secure
|
|
913
|
+
* @response `200` `WineVineyardEntityDto`
|
|
914
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
915
|
+
*/
|
|
916
|
+
updateTenantWineVineyard: function (tenantId, vineyardId, data, params) {
|
|
917
|
+
if (params === void 0) { params = {}; }
|
|
918
|
+
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));
|
|
919
|
+
},
|
|
378
920
|
};
|
|
379
921
|
return _this;
|
|
380
922
|
}
|