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