@thelllabs/winehaus-sdk 0.0.13 → 0.0.15
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 +325 -89
- package/dist/esm/api/api.js +324 -88
- package/dist/types/api/api.d.ts +1089 -339
- package/dist/umd/index.ts +325 -89
- package/package.json +1 -1
package/dist/esm/api/api.js
CHANGED
|
@@ -97,17 +97,29 @@ export var CaseOperationTypesEnum;
|
|
|
97
97
|
CaseOperationTypesEnum["Deposit"] = "deposit";
|
|
98
98
|
CaseOperationTypesEnum["Withdrawal"] = "withdrawal";
|
|
99
99
|
})(CaseOperationTypesEnum || (CaseOperationTypesEnum = {}));
|
|
100
|
-
export var
|
|
101
|
-
(function (
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
})(
|
|
100
|
+
export var CreateOnlyOperationGroupStatusEnum;
|
|
101
|
+
(function (CreateOnlyOperationGroupStatusEnum) {
|
|
102
|
+
CreateOnlyOperationGroupStatusEnum["OnHold"] = "on_hold";
|
|
103
|
+
CreateOnlyOperationGroupStatusEnum["Confirmed"] = "confirmed";
|
|
104
|
+
CreateOnlyOperationGroupStatusEnum["Processed"] = "processed";
|
|
105
|
+
})(CreateOnlyOperationGroupStatusEnum || (CreateOnlyOperationGroupStatusEnum = {}));
|
|
106
|
+
export var OperationGroupStatusEnum;
|
|
107
|
+
(function (OperationGroupStatusEnum) {
|
|
108
|
+
OperationGroupStatusEnum["OnHold"] = "on_hold";
|
|
109
|
+
OperationGroupStatusEnum["Confirmed"] = "confirmed";
|
|
110
|
+
OperationGroupStatusEnum["Processed"] = "processed";
|
|
111
|
+
OperationGroupStatusEnum["Cancelled"] = "cancelled";
|
|
112
|
+
})(OperationGroupStatusEnum || (OperationGroupStatusEnum = {}));
|
|
106
113
|
export var OrderByEnum;
|
|
107
114
|
(function (OrderByEnum) {
|
|
108
115
|
OrderByEnum["ASC"] = "ASC";
|
|
109
116
|
OrderByEnum["DESC"] = "DESC";
|
|
110
117
|
})(OrderByEnum || (OrderByEnum = {}));
|
|
118
|
+
export var PhoneTypeEnum;
|
|
119
|
+
(function (PhoneTypeEnum) {
|
|
120
|
+
PhoneTypeEnum["Fixed"] = "fixed";
|
|
121
|
+
PhoneTypeEnum["Mobile"] = "mobile";
|
|
122
|
+
})(PhoneTypeEnum || (PhoneTypeEnum = {}));
|
|
111
123
|
export var TenantRoleEnum;
|
|
112
124
|
(function (TenantRoleEnum) {
|
|
113
125
|
TenantRoleEnum["Operator"] = "operator";
|
|
@@ -288,120 +300,190 @@ var Api = /** @class */ (function (_super) {
|
|
|
288
300
|
return _this.request(__assign({ path: "/auth/signin", method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
289
301
|
},
|
|
290
302
|
};
|
|
291
|
-
_this.
|
|
303
|
+
_this.tenants = {
|
|
292
304
|
/**
|
|
293
305
|
* No description
|
|
294
306
|
*
|
|
295
|
-
* @tags Users
|
|
307
|
+
* @tags Tenant Users
|
|
308
|
+
* @name CreateTenantUser
|
|
309
|
+
* @request POST:/tenants/{tenantId}/users
|
|
310
|
+
* @secure
|
|
311
|
+
* @response `200` `UserEntityDto`
|
|
312
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner
|
|
313
|
+
*/
|
|
314
|
+
createTenantUser: function (tenantId, data, params) {
|
|
315
|
+
if (params === void 0) { params = {}; }
|
|
316
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
317
|
+
},
|
|
318
|
+
/**
|
|
319
|
+
* No description
|
|
320
|
+
*
|
|
321
|
+
* @tags Tenant Users
|
|
296
322
|
* @name CreateUserAddress
|
|
297
|
-
* @request POST:/
|
|
323
|
+
* @request POST:/tenants/{tenantId}/users/userId/addresses
|
|
298
324
|
* @secure
|
|
299
325
|
* @response `201` `AddressEntityDto`
|
|
300
326
|
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
301
327
|
*/
|
|
302
|
-
createUserAddress: function (userId, data, params) {
|
|
328
|
+
createUserAddress: function (tenantId, userId, data, params) {
|
|
329
|
+
if (params === void 0) { params = {}; }
|
|
330
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/userId/addresses"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
331
|
+
},
|
|
332
|
+
/**
|
|
333
|
+
* No description
|
|
334
|
+
*
|
|
335
|
+
* @tags Tenant Users
|
|
336
|
+
* @name DeleteTenantUser
|
|
337
|
+
* @request DELETE:/tenants/{tenantId}/users/{userId}
|
|
338
|
+
* @secure
|
|
339
|
+
* @response `204` `void`
|
|
340
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner
|
|
341
|
+
*/
|
|
342
|
+
deleteTenantUser: function (tenantId, userId, params) {
|
|
303
343
|
if (params === void 0) { params = {}; }
|
|
304
|
-
return _this.request(__assign({ path: "/
|
|
344
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId), method: "DELETE", secure: true }, params));
|
|
305
345
|
},
|
|
306
346
|
/**
|
|
307
347
|
* No description
|
|
308
348
|
*
|
|
309
|
-
* @tags Users
|
|
349
|
+
* @tags Tenant Users
|
|
310
350
|
* @name DeleteUserAddress
|
|
311
|
-
* @request DELETE:/
|
|
351
|
+
* @request DELETE:/tenants/{tenantId}/users/userId/addresses/{addressId}
|
|
312
352
|
* @secure
|
|
313
353
|
* @response `204` `void`
|
|
314
354
|
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
315
355
|
*/
|
|
316
|
-
deleteUserAddress: function (userId, addressId, params) {
|
|
356
|
+
deleteUserAddress: function (tenantId, userId, addressId, params) {
|
|
317
357
|
if (params === void 0) { params = {}; }
|
|
318
|
-
return _this.request(__assign({ path: "/
|
|
358
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/userId/addresses/").concat(addressId), method: "DELETE", secure: true }, params));
|
|
319
359
|
},
|
|
320
360
|
/**
|
|
321
361
|
* No description
|
|
322
362
|
*
|
|
323
|
-
* @tags Users
|
|
324
|
-
* @name
|
|
325
|
-
* @request
|
|
363
|
+
* @tags Tenant Users
|
|
364
|
+
* @name DisableTenantUser
|
|
365
|
+
* @request PATCH:/tenants/{tenantId}/users/{userId}/disable
|
|
326
366
|
* @secure
|
|
327
|
-
* @response `
|
|
367
|
+
* @response `204` `void`
|
|
368
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner
|
|
369
|
+
*/
|
|
370
|
+
disableTenantUser: function (tenantId, userId, params) {
|
|
371
|
+
if (params === void 0) { params = {}; }
|
|
372
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/disable"), method: "PATCH", secure: true }, params));
|
|
373
|
+
},
|
|
374
|
+
/**
|
|
375
|
+
* No description
|
|
376
|
+
*
|
|
377
|
+
* @tags Tenant Users
|
|
378
|
+
* @name EnableTenantUser
|
|
379
|
+
* @request PATCH:/tenants/{tenantId}/users/{userId}/enable
|
|
380
|
+
* @secure
|
|
381
|
+
* @response `204` `void`
|
|
382
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner
|
|
383
|
+
*/
|
|
384
|
+
enableTenantUser: function (tenantId, userId, params) {
|
|
385
|
+
if (params === void 0) { params = {}; }
|
|
386
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/enable"), method: "PATCH", secure: true }, params));
|
|
387
|
+
},
|
|
388
|
+
/**
|
|
389
|
+
* No description
|
|
390
|
+
*
|
|
391
|
+
* @tags Tenant Users
|
|
392
|
+
* @name GetTenantUser
|
|
393
|
+
* @request GET:/tenants/{tenantId}/users/{userId}
|
|
394
|
+
* @secure
|
|
395
|
+
* @response `200` `UserEntityDto`
|
|
328
396
|
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
329
397
|
*/
|
|
330
|
-
|
|
398
|
+
getTenantUser: function (tenantId, userId, params) {
|
|
399
|
+
if (params === void 0) { params = {}; }
|
|
400
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId), method: "GET", secure: true, format: "json" }, params));
|
|
401
|
+
},
|
|
402
|
+
/**
|
|
403
|
+
* No description
|
|
404
|
+
*
|
|
405
|
+
* @tags Tenant Users
|
|
406
|
+
* @name ListTenantUsers
|
|
407
|
+
* @request GET:/tenants/{tenantId}/users
|
|
408
|
+
* @secure
|
|
409
|
+
* @response `200` `UserEntityPaginatedDto`
|
|
410
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
411
|
+
*/
|
|
412
|
+
listTenantUsers: function (tenantId, query, params) {
|
|
331
413
|
if (params === void 0) { params = {}; }
|
|
332
|
-
return _this.request(__assign({ path: "/
|
|
414
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
333
415
|
},
|
|
334
416
|
/**
|
|
335
417
|
* No description
|
|
336
418
|
*
|
|
337
|
-
* @tags Users
|
|
419
|
+
* @tags Tenant Users
|
|
338
420
|
* @name ListUserAddresses
|
|
339
|
-
* @request GET:/
|
|
421
|
+
* @request GET:/tenants/{tenantId}/users/userId/addresses
|
|
340
422
|
* @secure
|
|
341
423
|
* @response `200` `AddressEntityPaginatedDto`
|
|
342
424
|
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
343
425
|
*/
|
|
344
|
-
listUserAddresses: function (userId, query, params) {
|
|
426
|
+
listUserAddresses: function (tenantId, userId, query, params) {
|
|
345
427
|
if (params === void 0) { params = {}; }
|
|
346
|
-
return _this.request(__assign({ path: "/
|
|
428
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/userId/addresses"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
347
429
|
},
|
|
348
430
|
/**
|
|
349
431
|
* No description
|
|
350
432
|
*
|
|
351
|
-
* @tags Users
|
|
352
|
-
* @name
|
|
353
|
-
* @request PATCH:/users/{userId}
|
|
433
|
+
* @tags Tenant Users
|
|
434
|
+
* @name UpdateTenantUser
|
|
435
|
+
* @request PATCH:/tenants/{tenantId}/users/{userId}
|
|
354
436
|
* @secure
|
|
355
437
|
* @response `200` `UserEntityDto`
|
|
356
438
|
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
357
439
|
*/
|
|
358
|
-
|
|
440
|
+
updateTenantUser: function (tenantId, userId, data, params) {
|
|
359
441
|
if (params === void 0) { params = {}; }
|
|
360
|
-
return _this.request(__assign({ path: "/
|
|
442
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
361
443
|
},
|
|
362
444
|
/**
|
|
363
445
|
* No description
|
|
364
446
|
*
|
|
365
|
-
* @tags Users
|
|
366
|
-
* @name
|
|
367
|
-
* @request PATCH:/users/{userId}
|
|
447
|
+
* @tags Tenant Users
|
|
448
|
+
* @name UpdateTenantUserPassword
|
|
449
|
+
* @request PATCH:/tenants/{tenantId}/users/{userId}/password
|
|
368
450
|
* @secure
|
|
369
451
|
* @response `200` `UserEntityDto`
|
|
370
452
|
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
371
453
|
*/
|
|
372
|
-
|
|
454
|
+
updateTenantUserPassword: function (tenantId, userId, data, params) {
|
|
373
455
|
if (params === void 0) { params = {}; }
|
|
374
|
-
return _this.request(__assign({ path: "/users/".concat(userId), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
456
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/password"), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
375
457
|
},
|
|
376
458
|
};
|
|
377
459
|
_this.admin = {
|
|
378
460
|
/**
|
|
379
461
|
* No description
|
|
380
462
|
*
|
|
381
|
-
* @tags Admin Tenant
|
|
382
|
-
* @name
|
|
383
|
-
* @request
|
|
463
|
+
* @tags Admin Tenant Operation Groups
|
|
464
|
+
* @name CancelTenantOperationGroup
|
|
465
|
+
* @request PATCH:/admin/tenants/{tenantId}/operation-groups/{groupId}/cancel
|
|
384
466
|
* @secure
|
|
385
|
-
* @response `
|
|
386
|
-
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
467
|
+
* @response `204` `void`
|
|
468
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
387
469
|
*/
|
|
388
|
-
|
|
470
|
+
cancelTenantOperationGroup: function (tenantId, groupId, params) {
|
|
389
471
|
if (params === void 0) { params = {}; }
|
|
390
|
-
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/
|
|
472
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-groups/").concat(groupId, "/cancel"), method: "PATCH", secure: true }, params));
|
|
391
473
|
},
|
|
392
474
|
/**
|
|
393
|
-
*
|
|
475
|
+
* No description
|
|
394
476
|
*
|
|
395
|
-
* @tags Admin Tenant
|
|
396
|
-
* @name
|
|
397
|
-
* @request
|
|
477
|
+
* @tags Admin Tenant Operation Groups
|
|
478
|
+
* @name ConfirmTenantOperationGroup
|
|
479
|
+
* @request PATCH:/admin/tenants/{tenantId}/operation-groups/{groupId}/confirm
|
|
398
480
|
* @secure
|
|
399
|
-
* @response `
|
|
481
|
+
* @response `204` `void`
|
|
400
482
|
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
401
483
|
*/
|
|
402
|
-
|
|
484
|
+
confirmTenantOperationGroup: function (tenantId, groupId, params) {
|
|
403
485
|
if (params === void 0) { params = {}; }
|
|
404
|
-
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/
|
|
486
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-groups/").concat(groupId, "/confirm"), method: "PATCH", secure: true }, params));
|
|
405
487
|
},
|
|
406
488
|
/**
|
|
407
489
|
* No description
|
|
@@ -424,13 +506,27 @@ var Api = /** @class */ (function (_super) {
|
|
|
424
506
|
* @name CreateTenantOperationExtraTemplate
|
|
425
507
|
* @request POST:/admin/tenants/{tenantId}/operation-extras-templates
|
|
426
508
|
* @secure
|
|
427
|
-
* @response `201` `
|
|
509
|
+
* @response `201` `OperationExtraTemplateEntityDto`
|
|
428
510
|
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
429
511
|
*/
|
|
430
512
|
createTenantOperationExtraTemplate: function (tenantId, data, params) {
|
|
431
513
|
if (params === void 0) { params = {}; }
|
|
432
514
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-extras-templates"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
433
515
|
},
|
|
516
|
+
/**
|
|
517
|
+
* No description
|
|
518
|
+
*
|
|
519
|
+
* @tags Admin Tenant Operation Groups
|
|
520
|
+
* @name CreateTenantOperationGroup
|
|
521
|
+
* @request POST:/admin/tenants/{tenantId}/operation-groups
|
|
522
|
+
* @secure
|
|
523
|
+
* @response `201` `OperationGroupEntityDto`
|
|
524
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
525
|
+
*/
|
|
526
|
+
createTenantOperationGroup: function (tenantId, data, params) {
|
|
527
|
+
if (params === void 0) { params = {}; }
|
|
528
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-groups"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
529
|
+
},
|
|
434
530
|
/**
|
|
435
531
|
* No description
|
|
436
532
|
*
|
|
@@ -487,6 +583,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
487
583
|
if (params === void 0) { params = {}; }
|
|
488
584
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-brands"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
489
585
|
},
|
|
586
|
+
/**
|
|
587
|
+
* No description
|
|
588
|
+
*
|
|
589
|
+
* @tags Admin Tenant Wine Countries
|
|
590
|
+
* @name CreateTenantWineCountry
|
|
591
|
+
* @request POST:/admin/tenants/{tenantId}/wine-countries
|
|
592
|
+
* @secure
|
|
593
|
+
* @response `201` `WineCountryEntityDto`
|
|
594
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
595
|
+
*/
|
|
596
|
+
createTenantWineCountry: function (tenantId, data, params) {
|
|
597
|
+
if (params === void 0) { params = {}; }
|
|
598
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-countries"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
599
|
+
},
|
|
490
600
|
/**
|
|
491
601
|
* No description
|
|
492
602
|
*
|
|
@@ -501,6 +611,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
501
611
|
if (params === void 0) { params = {}; }
|
|
502
612
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-producers"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
503
613
|
},
|
|
614
|
+
/**
|
|
615
|
+
* No description
|
|
616
|
+
*
|
|
617
|
+
* @tags Admin Tenant Wine Regions
|
|
618
|
+
* @name CreateTenantWineRegion
|
|
619
|
+
* @request POST:/admin/tenants/{tenantId}/wine-regions
|
|
620
|
+
* @secure
|
|
621
|
+
* @response `201` `WineRegionEntityDto`
|
|
622
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
623
|
+
*/
|
|
624
|
+
createTenantWineRegion: function (tenantId, data, params) {
|
|
625
|
+
if (params === void 0) { params = {}; }
|
|
626
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-regions"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
627
|
+
},
|
|
504
628
|
/**
|
|
505
629
|
* No description
|
|
506
630
|
*
|
|
@@ -655,6 +779,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
655
779
|
if (params === void 0) { params = {}; }
|
|
656
780
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-brands/").concat(brandId), method: "DELETE", secure: true }, params));
|
|
657
781
|
},
|
|
782
|
+
/**
|
|
783
|
+
* No description
|
|
784
|
+
*
|
|
785
|
+
* @tags Admin Tenant Wine Countries
|
|
786
|
+
* @name DeleteTenantWineCountry
|
|
787
|
+
* @request DELETE:/admin/tenants/{tenantId}/wine-countries/{countryId}
|
|
788
|
+
* @secure
|
|
789
|
+
* @response `204` `void`
|
|
790
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
791
|
+
*/
|
|
792
|
+
deleteTenantWineCountry: function (tenantId, countryId, params) {
|
|
793
|
+
if (params === void 0) { params = {}; }
|
|
794
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-countries/").concat(countryId), method: "DELETE", secure: true }, params));
|
|
795
|
+
},
|
|
658
796
|
/**
|
|
659
797
|
* No description
|
|
660
798
|
*
|
|
@@ -669,6 +807,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
669
807
|
if (params === void 0) { params = {}; }
|
|
670
808
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-producers/").concat(producerId), method: "DELETE", secure: true }, params));
|
|
671
809
|
},
|
|
810
|
+
/**
|
|
811
|
+
* No description
|
|
812
|
+
*
|
|
813
|
+
* @tags Admin Tenant Wine Regions
|
|
814
|
+
* @name DeleteTenantWineRegion
|
|
815
|
+
* @request DELETE:/admin/tenants/{tenantId}/wine-regions/{regionId}
|
|
816
|
+
* @secure
|
|
817
|
+
* @response `204` `void`
|
|
818
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
819
|
+
*/
|
|
820
|
+
deleteTenantWineRegion: function (tenantId, regionId, params) {
|
|
821
|
+
if (params === void 0) { params = {}; }
|
|
822
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-regions/").concat(regionId), method: "DELETE", secure: true }, params));
|
|
823
|
+
},
|
|
672
824
|
/**
|
|
673
825
|
* No description
|
|
674
826
|
*
|
|
@@ -739,34 +891,6 @@ var Api = /** @class */ (function (_super) {
|
|
|
739
891
|
if (params === void 0) { params = {}; }
|
|
740
892
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-vineyards/").concat(vineyardId), method: "DELETE", secure: true }, params));
|
|
741
893
|
},
|
|
742
|
-
/**
|
|
743
|
-
* No description
|
|
744
|
-
*
|
|
745
|
-
* @tags Admin Tenant Users
|
|
746
|
-
* @name DisableTenantUser
|
|
747
|
-
* @request PATCH:/admin/tenants/{tenantId}/users/{userId}/disable
|
|
748
|
-
* @secure
|
|
749
|
-
* @response `204` `void`
|
|
750
|
-
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
751
|
-
*/
|
|
752
|
-
disableTenantUser: function (tenantId, userId, params) {
|
|
753
|
-
if (params === void 0) { params = {}; }
|
|
754
|
-
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/users/").concat(userId, "/disable"), method: "PATCH", secure: true }, params));
|
|
755
|
-
},
|
|
756
|
-
/**
|
|
757
|
-
* No description
|
|
758
|
-
*
|
|
759
|
-
* @tags Admin Tenant Users
|
|
760
|
-
* @name EnableTenantUser
|
|
761
|
-
* @request PATCH:/admin/tenants/{tenantId}/users/{userId}/enable
|
|
762
|
-
* @secure
|
|
763
|
-
* @response `204` `void`
|
|
764
|
-
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
765
|
-
*/
|
|
766
|
-
enableTenantUser: function (tenantId, userId, params) {
|
|
767
|
-
if (params === void 0) { params = {}; }
|
|
768
|
-
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/users/").concat(userId, "/enable"), method: "PATCH", secure: true }, params));
|
|
769
|
-
},
|
|
770
894
|
/**
|
|
771
895
|
* No description
|
|
772
896
|
*
|
|
@@ -788,13 +912,27 @@ var Api = /** @class */ (function (_super) {
|
|
|
788
912
|
* @name GetTenantOperationExtraTemplateById
|
|
789
913
|
* @request GET:/admin/tenants/{tenantId}/operation-extras-templates/{templateId}
|
|
790
914
|
* @secure
|
|
791
|
-
* @response `200` `
|
|
915
|
+
* @response `200` `OperationExtraTemplateEntityDto`
|
|
792
916
|
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
793
917
|
*/
|
|
794
918
|
getTenantOperationExtraTemplateById: function (tenantId, templateId, params) {
|
|
795
919
|
if (params === void 0) { params = {}; }
|
|
796
920
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-extras-templates/").concat(templateId), method: "GET", secure: true, format: "json" }, params));
|
|
797
921
|
},
|
|
922
|
+
/**
|
|
923
|
+
* No description
|
|
924
|
+
*
|
|
925
|
+
* @tags Admin Tenant Operation Groups
|
|
926
|
+
* @name GetTenantOperationGroupById
|
|
927
|
+
* @request GET:/admin/tenants/{tenantId}/operation-groups/{groupId}
|
|
928
|
+
* @secure
|
|
929
|
+
* @response `200` `FullOperationGroupEntityDto`
|
|
930
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
931
|
+
*/
|
|
932
|
+
getTenantOperationGroupById: function (tenantId, groupId, params) {
|
|
933
|
+
if (params === void 0) { params = {}; }
|
|
934
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-groups/").concat(groupId), method: "GET", secure: true, format: "json" }, params));
|
|
935
|
+
},
|
|
798
936
|
/**
|
|
799
937
|
* No description
|
|
800
938
|
*
|
|
@@ -851,6 +989,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
851
989
|
if (params === void 0) { params = {}; }
|
|
852
990
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wines/").concat(wineId), method: "GET", secure: true, format: "json" }, params));
|
|
853
991
|
},
|
|
992
|
+
/**
|
|
993
|
+
* No description
|
|
994
|
+
*
|
|
995
|
+
* @tags Admin Tenant Wine Countries
|
|
996
|
+
* @name GetTenantWineCountryById
|
|
997
|
+
* @request GET:/admin/tenants/{tenantId}/wine-countries/{countryId}
|
|
998
|
+
* @secure
|
|
999
|
+
* @response `200` `WineCountryEntityDto`
|
|
1000
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
1001
|
+
*/
|
|
1002
|
+
getTenantWineCountryById: function (tenantId, countryId, params) {
|
|
1003
|
+
if (params === void 0) { params = {}; }
|
|
1004
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-countries/").concat(countryId), method: "GET", secure: true, format: "json" }, params));
|
|
1005
|
+
},
|
|
854
1006
|
/**
|
|
855
1007
|
* No description
|
|
856
1008
|
*
|
|
@@ -865,6 +1017,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
865
1017
|
if (params === void 0) { params = {}; }
|
|
866
1018
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-producers/").concat(producerId), method: "GET", secure: true, format: "json" }, params));
|
|
867
1019
|
},
|
|
1020
|
+
/**
|
|
1021
|
+
* No description
|
|
1022
|
+
*
|
|
1023
|
+
* @tags Admin Tenant Wine Regions
|
|
1024
|
+
* @name GetTenantWineRegionById
|
|
1025
|
+
* @request GET:/admin/tenants/{tenantId}/wine-regions/{regionId}
|
|
1026
|
+
* @secure
|
|
1027
|
+
* @response `200` `WineRegionEntityDto`
|
|
1028
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
1029
|
+
*/
|
|
1030
|
+
getTenantWineRegionById: function (tenantId, regionId, params) {
|
|
1031
|
+
if (params === void 0) { params = {}; }
|
|
1032
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-regions/").concat(regionId), method: "GET", secure: true, format: "json" }, params));
|
|
1033
|
+
},
|
|
868
1034
|
/**
|
|
869
1035
|
* No description
|
|
870
1036
|
*
|
|
@@ -970,7 +1136,7 @@ var Api = /** @class */ (function (_super) {
|
|
|
970
1136
|
* @name ListTenantOperationExtrasTemplates
|
|
971
1137
|
* @request GET:/admin/tenants/{tenantId}/operation-extras-templates
|
|
972
1138
|
* @secure
|
|
973
|
-
* @response `200` `
|
|
1139
|
+
* @response `200` `OperationExtraTemplateEntityPaginatedDto`
|
|
974
1140
|
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
975
1141
|
*/
|
|
976
1142
|
listTenantOperationExtrasTemplates: function (tenantId, query, params) {
|
|
@@ -980,16 +1146,16 @@ var Api = /** @class */ (function (_super) {
|
|
|
980
1146
|
/**
|
|
981
1147
|
* No description
|
|
982
1148
|
*
|
|
983
|
-
* @tags Admin Tenant
|
|
984
|
-
* @name
|
|
985
|
-
* @request GET:/admin/tenants/{tenantId}/
|
|
1149
|
+
* @tags Admin Tenant Operation Groups
|
|
1150
|
+
* @name ListTenantOperationGroups
|
|
1151
|
+
* @request GET:/admin/tenants/{tenantId}/operation-groups
|
|
986
1152
|
* @secure
|
|
987
|
-
* @response `200` `
|
|
988
|
-
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
1153
|
+
* @response `200` `OperationGroupEntityPaginatedDto`
|
|
1154
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
989
1155
|
*/
|
|
990
|
-
|
|
1156
|
+
listTenantOperationGroups: function (tenantId, query, params) {
|
|
991
1157
|
if (params === void 0) { params = {}; }
|
|
992
|
-
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/
|
|
1158
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-groups"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
993
1159
|
},
|
|
994
1160
|
/**
|
|
995
1161
|
* No description
|
|
@@ -1033,6 +1199,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
1033
1199
|
if (params === void 0) { params = {}; }
|
|
1034
1200
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-brands"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
1035
1201
|
},
|
|
1202
|
+
/**
|
|
1203
|
+
* No description
|
|
1204
|
+
*
|
|
1205
|
+
* @tags Admin Tenant Wine Countries
|
|
1206
|
+
* @name ListTenantWineCountries
|
|
1207
|
+
* @request GET:/admin/tenants/{tenantId}/wine-countries
|
|
1208
|
+
* @secure
|
|
1209
|
+
* @response `200` `WineCountryEntityPaginatedDto`
|
|
1210
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
1211
|
+
*/
|
|
1212
|
+
listTenantWineCountries: function (tenantId, query, params) {
|
|
1213
|
+
if (params === void 0) { params = {}; }
|
|
1214
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-countries"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
1215
|
+
},
|
|
1036
1216
|
/**
|
|
1037
1217
|
* No description
|
|
1038
1218
|
*
|
|
@@ -1047,6 +1227,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
1047
1227
|
if (params === void 0) { params = {}; }
|
|
1048
1228
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-producers"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
1049
1229
|
},
|
|
1230
|
+
/**
|
|
1231
|
+
* No description
|
|
1232
|
+
*
|
|
1233
|
+
* @tags Admin Tenant Wine Regions
|
|
1234
|
+
* @name ListTenantWineRegions
|
|
1235
|
+
* @request GET:/admin/tenants/{tenantId}/wine-regions
|
|
1236
|
+
* @secure
|
|
1237
|
+
* @response `200` `WineRegionEntityPaginatedDto`
|
|
1238
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
1239
|
+
*/
|
|
1240
|
+
listTenantWineRegions: function (tenantId, query, params) {
|
|
1241
|
+
if (params === void 0) { params = {}; }
|
|
1242
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-regions"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
1243
|
+
},
|
|
1050
1244
|
/**
|
|
1051
1245
|
* No description
|
|
1052
1246
|
*
|
|
@@ -1131,6 +1325,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
1131
1325
|
if (params === void 0) { params = {}; }
|
|
1132
1326
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-vineyards"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
1133
1327
|
},
|
|
1328
|
+
/**
|
|
1329
|
+
* No description
|
|
1330
|
+
*
|
|
1331
|
+
* @tags Admin Tenant Operation Groups
|
|
1332
|
+
* @name ProcessTenantOperationGroup
|
|
1333
|
+
* @request PATCH:/admin/tenants/{tenantId}/operation-groups/{groupId}/process
|
|
1334
|
+
* @secure
|
|
1335
|
+
* @response `204` `void`
|
|
1336
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
1337
|
+
*/
|
|
1338
|
+
processTenantOperationGroup: function (tenantId, groupId, params) {
|
|
1339
|
+
if (params === void 0) { params = {}; }
|
|
1340
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-groups/").concat(groupId, "/process"), method: "PATCH", secure: true }, params));
|
|
1341
|
+
},
|
|
1134
1342
|
/**
|
|
1135
1343
|
* No description
|
|
1136
1344
|
*
|
|
@@ -1152,7 +1360,7 @@ var Api = /** @class */ (function (_super) {
|
|
|
1152
1360
|
* @name UpdateTenantOperationExtraTemplate
|
|
1153
1361
|
* @request PATCH:/admin/tenants/{tenantId}/operation-extras-templates/{templateId}
|
|
1154
1362
|
* @secure
|
|
1155
|
-
* @response `200` `
|
|
1363
|
+
* @response `200` `OperationExtraTemplateEntityDto`
|
|
1156
1364
|
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
1157
1365
|
*/
|
|
1158
1366
|
updateTenantOperationExtraTemplate: function (tenantId, templateId, data, params) {
|
|
@@ -1215,6 +1423,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
1215
1423
|
if (params === void 0) { params = {}; }
|
|
1216
1424
|
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));
|
|
1217
1425
|
},
|
|
1426
|
+
/**
|
|
1427
|
+
* No description
|
|
1428
|
+
*
|
|
1429
|
+
* @tags Admin Tenant Wine Countries
|
|
1430
|
+
* @name UpdateTenantWineCountry
|
|
1431
|
+
* @request PATCH:/admin/tenants/{tenantId}/wine-countries/{countryId}
|
|
1432
|
+
* @secure
|
|
1433
|
+
* @response `200` `WineCountryEntityDto`
|
|
1434
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
1435
|
+
*/
|
|
1436
|
+
updateTenantWineCountry: function (tenantId, countryId, data, params) {
|
|
1437
|
+
if (params === void 0) { params = {}; }
|
|
1438
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-countries/").concat(countryId), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
1439
|
+
},
|
|
1218
1440
|
/**
|
|
1219
1441
|
* No description
|
|
1220
1442
|
*
|
|
@@ -1229,6 +1451,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
1229
1451
|
if (params === void 0) { params = {}; }
|
|
1230
1452
|
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));
|
|
1231
1453
|
},
|
|
1454
|
+
/**
|
|
1455
|
+
* No description
|
|
1456
|
+
*
|
|
1457
|
+
* @tags Admin Tenant Wine Regions
|
|
1458
|
+
* @name UpdateTenantWineRegion
|
|
1459
|
+
* @request PATCH:/admin/tenants/{tenantId}/wine-regions/{regionId}
|
|
1460
|
+
* @secure
|
|
1461
|
+
* @response `200` `WineRegionEntityDto`
|
|
1462
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
1463
|
+
*/
|
|
1464
|
+
updateTenantWineRegion: function (tenantId, regionId, data, params) {
|
|
1465
|
+
if (params === void 0) { params = {}; }
|
|
1466
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-regions/").concat(regionId), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
1467
|
+
},
|
|
1232
1468
|
/**
|
|
1233
1469
|
* No description
|
|
1234
1470
|
*
|