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