@thelllabs/winehaus-sdk 0.0.11 → 0.0.14
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 +390 -54
- package/dist/esm/api/api.js +389 -53
- package/dist/types/api/api.d.ts +1294 -174
- package/dist/umd/index.ts +390 -54
- package/package.json +1 -1
package/dist/cjs/api/api.js
CHANGED
|
@@ -85,12 +85,40 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
85
85
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
86
86
|
};
|
|
87
87
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
88
|
-
exports.Api = exports.HttpClient = exports.ContentType = exports.TenantUserStatusEnum = exports.TenantRoleEnum = exports.OrderByEnum = void 0;
|
|
88
|
+
exports.Api = exports.HttpClient = exports.ContentType = exports.TenantUserStatusEnum = exports.TenantRoleEnum = exports.PhoneTypeEnum = exports.OrderByEnum = exports.CreateOnlyCaseOperationStatusEnum = exports.CaseOperationTypesEnum = exports.CaseOperationStatusEnum = exports.CaseOperationLogTypeEnum = void 0;
|
|
89
|
+
var CaseOperationLogTypeEnum;
|
|
90
|
+
(function (CaseOperationLogTypeEnum) {
|
|
91
|
+
CaseOperationLogTypeEnum["RequestAccepted"] = "request_accepted";
|
|
92
|
+
CaseOperationLogTypeEnum["StatusChange"] = "status_change";
|
|
93
|
+
})(CaseOperationLogTypeEnum = exports.CaseOperationLogTypeEnum || (exports.CaseOperationLogTypeEnum = {}));
|
|
94
|
+
var CaseOperationStatusEnum;
|
|
95
|
+
(function (CaseOperationStatusEnum) {
|
|
96
|
+
CaseOperationStatusEnum["OnHold"] = "on_hold";
|
|
97
|
+
CaseOperationStatusEnum["Confirmed"] = "confirmed";
|
|
98
|
+
CaseOperationStatusEnum["Processed"] = "processed";
|
|
99
|
+
CaseOperationStatusEnum["Cancelled"] = "cancelled";
|
|
100
|
+
})(CaseOperationStatusEnum = exports.CaseOperationStatusEnum || (exports.CaseOperationStatusEnum = {}));
|
|
101
|
+
var CaseOperationTypesEnum;
|
|
102
|
+
(function (CaseOperationTypesEnum) {
|
|
103
|
+
CaseOperationTypesEnum["Deposit"] = "deposit";
|
|
104
|
+
CaseOperationTypesEnum["Withdrawal"] = "withdrawal";
|
|
105
|
+
})(CaseOperationTypesEnum = exports.CaseOperationTypesEnum || (exports.CaseOperationTypesEnum = {}));
|
|
106
|
+
var CreateOnlyCaseOperationStatusEnum;
|
|
107
|
+
(function (CreateOnlyCaseOperationStatusEnum) {
|
|
108
|
+
CreateOnlyCaseOperationStatusEnum["OnHold"] = "on_hold";
|
|
109
|
+
CreateOnlyCaseOperationStatusEnum["Confirmed"] = "confirmed";
|
|
110
|
+
CreateOnlyCaseOperationStatusEnum["Processed"] = "processed";
|
|
111
|
+
})(CreateOnlyCaseOperationStatusEnum = exports.CreateOnlyCaseOperationStatusEnum || (exports.CreateOnlyCaseOperationStatusEnum = {}));
|
|
89
112
|
var OrderByEnum;
|
|
90
113
|
(function (OrderByEnum) {
|
|
91
114
|
OrderByEnum["ASC"] = "ASC";
|
|
92
115
|
OrderByEnum["DESC"] = "DESC";
|
|
93
116
|
})(OrderByEnum = exports.OrderByEnum || (exports.OrderByEnum = {}));
|
|
117
|
+
var PhoneTypeEnum;
|
|
118
|
+
(function (PhoneTypeEnum) {
|
|
119
|
+
PhoneTypeEnum["Fixed"] = "fixed";
|
|
120
|
+
PhoneTypeEnum["Mobile"] = "mobile";
|
|
121
|
+
})(PhoneTypeEnum = exports.PhoneTypeEnum || (exports.PhoneTypeEnum = {}));
|
|
94
122
|
var TenantRoleEnum;
|
|
95
123
|
(function (TenantRoleEnum) {
|
|
96
124
|
TenantRoleEnum["Operator"] = "operator";
|
|
@@ -271,50 +299,190 @@ var Api = /** @class */ (function (_super) {
|
|
|
271
299
|
return _this.request(__assign({ path: "/auth/signin", method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
272
300
|
},
|
|
273
301
|
};
|
|
274
|
-
_this.
|
|
302
|
+
_this.tenants = {
|
|
275
303
|
/**
|
|
276
304
|
* No description
|
|
277
305
|
*
|
|
278
|
-
* @tags Users
|
|
279
|
-
* @name
|
|
280
|
-
* @request
|
|
306
|
+
* @tags Tenant Users
|
|
307
|
+
* @name CreateTenantUser
|
|
308
|
+
* @request POST:/tenants/{tenantId}/users
|
|
281
309
|
* @secure
|
|
282
310
|
* @response `200` `UserEntityDto`
|
|
311
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner
|
|
312
|
+
*/
|
|
313
|
+
createTenantUser: function (tenantId, data, params) {
|
|
314
|
+
if (params === void 0) { params = {}; }
|
|
315
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
316
|
+
},
|
|
317
|
+
/**
|
|
318
|
+
* No description
|
|
319
|
+
*
|
|
320
|
+
* @tags Tenant Users
|
|
321
|
+
* @name CreateUserAddress
|
|
322
|
+
* @request POST:/tenants/{tenantId}/users/userId/addresses
|
|
323
|
+
* @secure
|
|
324
|
+
* @response `201` `AddressEntityDto`
|
|
325
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
326
|
+
*/
|
|
327
|
+
createUserAddress: function (tenantId, userId, data, params) {
|
|
328
|
+
if (params === void 0) { params = {}; }
|
|
329
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/userId/addresses"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
330
|
+
},
|
|
331
|
+
/**
|
|
332
|
+
* No description
|
|
333
|
+
*
|
|
334
|
+
* @tags Tenant Users
|
|
335
|
+
* @name DeleteTenantUser
|
|
336
|
+
* @request DELETE:/tenants/{tenantId}/users/{userId}
|
|
337
|
+
* @secure
|
|
338
|
+
* @response `204` `void`
|
|
339
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner
|
|
340
|
+
*/
|
|
341
|
+
deleteTenantUser: function (tenantId, userId, params) {
|
|
342
|
+
if (params === void 0) { params = {}; }
|
|
343
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId), method: "DELETE", secure: true }, params));
|
|
344
|
+
},
|
|
345
|
+
/**
|
|
346
|
+
* No description
|
|
347
|
+
*
|
|
348
|
+
* @tags Tenant Users
|
|
349
|
+
* @name DeleteUserAddress
|
|
350
|
+
* @request DELETE:/tenants/{tenantId}/users/userId/addresses/{addressId}
|
|
351
|
+
* @secure
|
|
352
|
+
* @response `204` `void`
|
|
353
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
354
|
+
*/
|
|
355
|
+
deleteUserAddress: function (tenantId, userId, addressId, params) {
|
|
356
|
+
if (params === void 0) { params = {}; }
|
|
357
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/userId/addresses/").concat(addressId), method: "DELETE", secure: true }, params));
|
|
358
|
+
},
|
|
359
|
+
/**
|
|
360
|
+
* No description
|
|
361
|
+
*
|
|
362
|
+
* @tags Tenant Users
|
|
363
|
+
* @name DisableTenantUser
|
|
364
|
+
* @request PATCH:/tenants/{tenantId}/users/{userId}/disable
|
|
365
|
+
* @secure
|
|
366
|
+
* @response `204` `void`
|
|
367
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner
|
|
368
|
+
*/
|
|
369
|
+
disableTenantUser: function (tenantId, userId, params) {
|
|
370
|
+
if (params === void 0) { params = {}; }
|
|
371
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/disable"), method: "PATCH", secure: true }, params));
|
|
372
|
+
},
|
|
373
|
+
/**
|
|
374
|
+
* No description
|
|
375
|
+
*
|
|
376
|
+
* @tags Tenant Users
|
|
377
|
+
* @name EnableTenantUser
|
|
378
|
+
* @request PATCH:/tenants/{tenantId}/users/{userId}/enable
|
|
379
|
+
* @secure
|
|
380
|
+
* @response `204` `void`
|
|
381
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner
|
|
382
|
+
*/
|
|
383
|
+
enableTenantUser: function (tenantId, userId, params) {
|
|
384
|
+
if (params === void 0) { params = {}; }
|
|
385
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/enable"), method: "PATCH", secure: true }, params));
|
|
386
|
+
},
|
|
387
|
+
/**
|
|
388
|
+
* No description
|
|
389
|
+
*
|
|
390
|
+
* @tags Tenant Users
|
|
391
|
+
* @name GetTenantUser
|
|
392
|
+
* @request GET:/tenants/{tenantId}/users/{userId}
|
|
393
|
+
* @secure
|
|
394
|
+
* @response `200` `UserEntityDto`
|
|
395
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
396
|
+
*/
|
|
397
|
+
getTenantUser: function (tenantId, userId, params) {
|
|
398
|
+
if (params === void 0) { params = {}; }
|
|
399
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId), method: "GET", secure: true, format: "json" }, params));
|
|
400
|
+
},
|
|
401
|
+
/**
|
|
402
|
+
* No description
|
|
403
|
+
*
|
|
404
|
+
* @tags Tenant Users
|
|
405
|
+
* @name ListTenantUsers
|
|
406
|
+
* @request GET:/tenants/{tenantId}/users
|
|
407
|
+
* @secure
|
|
408
|
+
* @response `200` `UserEntityPaginatedDto`
|
|
409
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
410
|
+
*/
|
|
411
|
+
listTenantUsers: function (tenantId, query, params) {
|
|
412
|
+
if (params === void 0) { params = {}; }
|
|
413
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
414
|
+
},
|
|
415
|
+
/**
|
|
416
|
+
* No description
|
|
417
|
+
*
|
|
418
|
+
* @tags Tenant Users
|
|
419
|
+
* @name ListUserAddresses
|
|
420
|
+
* @request GET:/tenants/{tenantId}/users/userId/addresses
|
|
421
|
+
* @secure
|
|
422
|
+
* @response `200` `AddressEntityPaginatedDto`
|
|
283
423
|
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
284
424
|
*/
|
|
285
|
-
|
|
425
|
+
listUserAddresses: function (tenantId, userId, query, params) {
|
|
286
426
|
if (params === void 0) { params = {}; }
|
|
287
|
-
return _this.request(__assign({ path: "/
|
|
427
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/userId/addresses"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
288
428
|
},
|
|
289
429
|
/**
|
|
290
430
|
* No description
|
|
291
431
|
*
|
|
292
|
-
* @tags Users
|
|
293
|
-
* @name
|
|
294
|
-
* @request PATCH:/users/{userId}
|
|
432
|
+
* @tags Tenant Users
|
|
433
|
+
* @name UpdateTenantUser
|
|
434
|
+
* @request PATCH:/tenants/{tenantId}/users/{userId}
|
|
295
435
|
* @secure
|
|
296
436
|
* @response `200` `UserEntityDto`
|
|
297
437
|
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
298
438
|
*/
|
|
299
|
-
|
|
439
|
+
updateTenantUser: function (tenantId, userId, data, params) {
|
|
300
440
|
if (params === void 0) { params = {}; }
|
|
301
|
-
return _this.request(__assign({ path: "/users/".concat(userId), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
441
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
442
|
+
},
|
|
443
|
+
/**
|
|
444
|
+
* No description
|
|
445
|
+
*
|
|
446
|
+
* @tags Tenant Users
|
|
447
|
+
* @name UpdateTenantUserPassword
|
|
448
|
+
* @request PATCH:/tenants/{tenantId}/users/{userId}/password
|
|
449
|
+
* @secure
|
|
450
|
+
* @response `200` `UserEntityDto`
|
|
451
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
452
|
+
*/
|
|
453
|
+
updateTenantUserPassword: function (tenantId, userId, data, params) {
|
|
454
|
+
if (params === void 0) { params = {}; }
|
|
455
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/password"), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
302
456
|
},
|
|
303
457
|
};
|
|
304
458
|
_this.admin = {
|
|
305
459
|
/**
|
|
306
|
-
*
|
|
460
|
+
* No description
|
|
307
461
|
*
|
|
308
|
-
* @tags Admin Tenant
|
|
309
|
-
* @name
|
|
310
|
-
* @request POST:/admin/tenants/{tenantId}/
|
|
462
|
+
* @tags Admin Tenant Cases
|
|
463
|
+
* @name AddTenantCaseBatchOperations
|
|
464
|
+
* @request POST:/admin/tenants/{tenantId}/cases/{caseId}/operations/batch
|
|
311
465
|
* @secure
|
|
312
|
-
* @response `200` `
|
|
466
|
+
* @response `200` `CaseBatchOperationResponseDto`
|
|
467
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
468
|
+
*/
|
|
469
|
+
addTenantCaseBatchOperations: function (tenantId, caseId, data, params) {
|
|
470
|
+
if (params === void 0) { params = {}; }
|
|
471
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/cases/").concat(caseId, "/operations/batch"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
472
|
+
},
|
|
473
|
+
/**
|
|
474
|
+
* No description
|
|
475
|
+
*
|
|
476
|
+
* @tags Admin Tenant Cases
|
|
477
|
+
* @name CreateTenantCase
|
|
478
|
+
* @request POST:/admin/tenants/{tenantId}/cases
|
|
479
|
+
* @secure
|
|
480
|
+
* @response `201` `CaseEntityDto`
|
|
313
481
|
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
314
482
|
*/
|
|
315
|
-
|
|
483
|
+
createTenantCase: function (tenantId, data, params) {
|
|
316
484
|
if (params === void 0) { params = {}; }
|
|
317
|
-
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/
|
|
485
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/cases"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
318
486
|
},
|
|
319
487
|
/**
|
|
320
488
|
* No description
|
|
@@ -386,6 +554,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
386
554
|
if (params === void 0) { params = {}; }
|
|
387
555
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-brands"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
388
556
|
},
|
|
557
|
+
/**
|
|
558
|
+
* No description
|
|
559
|
+
*
|
|
560
|
+
* @tags Admin Tenant Wine Countries
|
|
561
|
+
* @name CreateTenantWineCountry
|
|
562
|
+
* @request POST:/admin/tenants/{tenantId}/wine-countries
|
|
563
|
+
* @secure
|
|
564
|
+
* @response `201` `WineCountryEntityDto`
|
|
565
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
566
|
+
*/
|
|
567
|
+
createTenantWineCountry: function (tenantId, data, params) {
|
|
568
|
+
if (params === void 0) { params = {}; }
|
|
569
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-countries"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
570
|
+
},
|
|
389
571
|
/**
|
|
390
572
|
* No description
|
|
391
573
|
*
|
|
@@ -400,6 +582,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
400
582
|
if (params === void 0) { params = {}; }
|
|
401
583
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-producers"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
402
584
|
},
|
|
585
|
+
/**
|
|
586
|
+
* No description
|
|
587
|
+
*
|
|
588
|
+
* @tags Admin Tenant Wine Regions
|
|
589
|
+
* @name CreateTenantWineRegion
|
|
590
|
+
* @request POST:/admin/tenants/{tenantId}/wine-regions
|
|
591
|
+
* @secure
|
|
592
|
+
* @response `201` `WineRegionEntityDto`
|
|
593
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
594
|
+
*/
|
|
595
|
+
createTenantWineRegion: function (tenantId, data, params) {
|
|
596
|
+
if (params === void 0) { params = {}; }
|
|
597
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-regions"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
598
|
+
},
|
|
403
599
|
/**
|
|
404
600
|
* No description
|
|
405
601
|
*
|
|
@@ -470,6 +666,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
470
666
|
if (params === void 0) { params = {}; }
|
|
471
667
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-vineyards"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
472
668
|
},
|
|
669
|
+
/**
|
|
670
|
+
* No description
|
|
671
|
+
*
|
|
672
|
+
* @tags Admin Tenant Cases
|
|
673
|
+
* @name DeleteTenantCase
|
|
674
|
+
* @request DELETE:/admin/tenants/{tenantId}/cases/{caseId}
|
|
675
|
+
* @secure
|
|
676
|
+
* @response `204` `void`
|
|
677
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
678
|
+
*/
|
|
679
|
+
deleteTenantCase: function (tenantId, caseId, params) {
|
|
680
|
+
if (params === void 0) { params = {}; }
|
|
681
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/cases/").concat(caseId), method: "DELETE", secure: true }, params));
|
|
682
|
+
},
|
|
473
683
|
/**
|
|
474
684
|
* No description
|
|
475
685
|
*
|
|
@@ -540,6 +750,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
540
750
|
if (params === void 0) { params = {}; }
|
|
541
751
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-brands/").concat(brandId), method: "DELETE", secure: true }, params));
|
|
542
752
|
},
|
|
753
|
+
/**
|
|
754
|
+
* No description
|
|
755
|
+
*
|
|
756
|
+
* @tags Admin Tenant Wine Countries
|
|
757
|
+
* @name DeleteTenantWineCountry
|
|
758
|
+
* @request DELETE:/admin/tenants/{tenantId}/wine-countries/{countryId}
|
|
759
|
+
* @secure
|
|
760
|
+
* @response `204` `void`
|
|
761
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
762
|
+
*/
|
|
763
|
+
deleteTenantWineCountry: function (tenantId, countryId, params) {
|
|
764
|
+
if (params === void 0) { params = {}; }
|
|
765
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-countries/").concat(countryId), method: "DELETE", secure: true }, params));
|
|
766
|
+
},
|
|
543
767
|
/**
|
|
544
768
|
* No description
|
|
545
769
|
*
|
|
@@ -554,6 +778,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
554
778
|
if (params === void 0) { params = {}; }
|
|
555
779
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-producers/").concat(producerId), method: "DELETE", secure: true }, params));
|
|
556
780
|
},
|
|
781
|
+
/**
|
|
782
|
+
* No description
|
|
783
|
+
*
|
|
784
|
+
* @tags Admin Tenant Wine Regions
|
|
785
|
+
* @name DeleteTenantWineRegion
|
|
786
|
+
* @request DELETE:/admin/tenants/{tenantId}/wine-regions/{regionId}
|
|
787
|
+
* @secure
|
|
788
|
+
* @response `204` `void`
|
|
789
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
790
|
+
*/
|
|
791
|
+
deleteTenantWineRegion: function (tenantId, regionId, params) {
|
|
792
|
+
if (params === void 0) { params = {}; }
|
|
793
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-regions/").concat(regionId), method: "DELETE", secure: true }, params));
|
|
794
|
+
},
|
|
557
795
|
/**
|
|
558
796
|
* No description
|
|
559
797
|
*
|
|
@@ -627,30 +865,16 @@ var Api = /** @class */ (function (_super) {
|
|
|
627
865
|
/**
|
|
628
866
|
* No description
|
|
629
867
|
*
|
|
630
|
-
* @tags Admin Tenant
|
|
631
|
-
* @name
|
|
632
|
-
* @request
|
|
868
|
+
* @tags Admin Tenant Cases
|
|
869
|
+
* @name GetTenantCaseById
|
|
870
|
+
* @request GET:/admin/tenants/{tenantId}/cases/{caseId}
|
|
633
871
|
* @secure
|
|
634
|
-
* @response `
|
|
635
|
-
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
872
|
+
* @response `200` `CaseEntityDto`
|
|
873
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator, customer
|
|
636
874
|
*/
|
|
637
|
-
|
|
875
|
+
getTenantCaseById: function (tenantId, caseId, params) {
|
|
638
876
|
if (params === void 0) { params = {}; }
|
|
639
|
-
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/
|
|
640
|
-
},
|
|
641
|
-
/**
|
|
642
|
-
* No description
|
|
643
|
-
*
|
|
644
|
-
* @tags Admin Tenant Users
|
|
645
|
-
* @name EnableTenantUser
|
|
646
|
-
* @request PATCH:/admin/tenants/{tenantId}/users/{userId}/enable
|
|
647
|
-
* @secure
|
|
648
|
-
* @response `204` `void`
|
|
649
|
-
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
650
|
-
*/
|
|
651
|
-
enableTenantUser: function (tenantId, userId, params) {
|
|
652
|
-
if (params === void 0) { params = {}; }
|
|
653
|
-
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/users/").concat(userId, "/enable"), method: "PATCH", secure: true }, params));
|
|
877
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/cases/").concat(caseId), method: "GET", secure: true, format: "json" }, params));
|
|
654
878
|
},
|
|
655
879
|
/**
|
|
656
880
|
* No description
|
|
@@ -722,6 +946,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
722
946
|
if (params === void 0) { params = {}; }
|
|
723
947
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wines/").concat(wineId), method: "GET", secure: true, format: "json" }, params));
|
|
724
948
|
},
|
|
949
|
+
/**
|
|
950
|
+
* No description
|
|
951
|
+
*
|
|
952
|
+
* @tags Admin Tenant Wine Countries
|
|
953
|
+
* @name GetTenantWineCountryById
|
|
954
|
+
* @request GET:/admin/tenants/{tenantId}/wine-countries/{countryId}
|
|
955
|
+
* @secure
|
|
956
|
+
* @response `200` `WineCountryEntityDto`
|
|
957
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
958
|
+
*/
|
|
959
|
+
getTenantWineCountryById: function (tenantId, countryId, params) {
|
|
960
|
+
if (params === void 0) { params = {}; }
|
|
961
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-countries/").concat(countryId), method: "GET", secure: true, format: "json" }, params));
|
|
962
|
+
},
|
|
725
963
|
/**
|
|
726
964
|
* No description
|
|
727
965
|
*
|
|
@@ -736,6 +974,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
736
974
|
if (params === void 0) { params = {}; }
|
|
737
975
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-producers/").concat(producerId), method: "GET", secure: true, format: "json" }, params));
|
|
738
976
|
},
|
|
977
|
+
/**
|
|
978
|
+
* No description
|
|
979
|
+
*
|
|
980
|
+
* @tags Admin Tenant Wine Regions
|
|
981
|
+
* @name GetTenantWineRegionById
|
|
982
|
+
* @request GET:/admin/tenants/{tenantId}/wine-regions/{regionId}
|
|
983
|
+
* @secure
|
|
984
|
+
* @response `200` `WineRegionEntityDto`
|
|
985
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
986
|
+
*/
|
|
987
|
+
getTenantWineRegionById: function (tenantId, regionId, params) {
|
|
988
|
+
if (params === void 0) { params = {}; }
|
|
989
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-regions/").concat(regionId), method: "GET", secure: true, format: "json" }, params));
|
|
990
|
+
},
|
|
739
991
|
/**
|
|
740
992
|
* No description
|
|
741
993
|
*
|
|
@@ -809,30 +1061,44 @@ var Api = /** @class */ (function (_super) {
|
|
|
809
1061
|
/**
|
|
810
1062
|
* No description
|
|
811
1063
|
*
|
|
812
|
-
* @tags Admin Tenant
|
|
813
|
-
* @name
|
|
814
|
-
* @request GET:/admin/tenants/{tenantId}/
|
|
1064
|
+
* @tags Admin Tenant Cases
|
|
1065
|
+
* @name ListTenantCaseInventory
|
|
1066
|
+
* @request GET:/admin/tenants/{tenantId}/cases/{caseId}/inventory
|
|
815
1067
|
* @secure
|
|
816
|
-
* @response `200` `
|
|
817
|
-
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
1068
|
+
* @response `200` `CaseWineInventoryItemEntityPaginatedDto`
|
|
1069
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator, customer
|
|
818
1070
|
*/
|
|
819
|
-
|
|
1071
|
+
listTenantCaseInventory: function (tenantId, caseId, query, params) {
|
|
820
1072
|
if (params === void 0) { params = {}; }
|
|
821
|
-
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/
|
|
1073
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/cases/").concat(caseId, "/inventory"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
822
1074
|
},
|
|
823
1075
|
/**
|
|
824
1076
|
* No description
|
|
825
1077
|
*
|
|
826
|
-
* @tags Admin Tenant
|
|
827
|
-
* @name
|
|
828
|
-
* @request GET:/admin/tenants/{tenantId}/
|
|
1078
|
+
* @tags Admin Tenant Cases
|
|
1079
|
+
* @name ListTenantCases
|
|
1080
|
+
* @request GET:/admin/tenants/{tenantId}/cases
|
|
829
1081
|
* @secure
|
|
830
|
-
* @response `200` `
|
|
831
|
-
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
1082
|
+
* @response `200` `CaseEntityPaginatedDto`
|
|
1083
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator, customer
|
|
832
1084
|
*/
|
|
833
|
-
|
|
1085
|
+
listTenantCases: function (tenantId, query, params) {
|
|
1086
|
+
if (params === void 0) { params = {}; }
|
|
1087
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/cases"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
1088
|
+
},
|
|
1089
|
+
/**
|
|
1090
|
+
* No description
|
|
1091
|
+
*
|
|
1092
|
+
* @tags Admin Tenant Operation Extras Templates
|
|
1093
|
+
* @name ListTenantOperationExtrasTemplates
|
|
1094
|
+
* @request GET:/admin/tenants/{tenantId}/operation-extras-templates
|
|
1095
|
+
* @secure
|
|
1096
|
+
* @response `200` `CaseOperationExtraTemplateEntityPaginatedDto`
|
|
1097
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
1098
|
+
*/
|
|
1099
|
+
listTenantOperationExtrasTemplates: function (tenantId, query, params) {
|
|
834
1100
|
if (params === void 0) { params = {}; }
|
|
835
|
-
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/
|
|
1101
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-extras-templates"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
836
1102
|
},
|
|
837
1103
|
/**
|
|
838
1104
|
* No description
|
|
@@ -876,6 +1142,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
876
1142
|
if (params === void 0) { params = {}; }
|
|
877
1143
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-brands"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
878
1144
|
},
|
|
1145
|
+
/**
|
|
1146
|
+
* No description
|
|
1147
|
+
*
|
|
1148
|
+
* @tags Admin Tenant Wine Countries
|
|
1149
|
+
* @name ListTenantWineCountries
|
|
1150
|
+
* @request GET:/admin/tenants/{tenantId}/wine-countries
|
|
1151
|
+
* @secure
|
|
1152
|
+
* @response `200` `WineCountryEntityPaginatedDto`
|
|
1153
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
1154
|
+
*/
|
|
1155
|
+
listTenantWineCountries: function (tenantId, query, params) {
|
|
1156
|
+
if (params === void 0) { params = {}; }
|
|
1157
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-countries"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
1158
|
+
},
|
|
879
1159
|
/**
|
|
880
1160
|
* No description
|
|
881
1161
|
*
|
|
@@ -890,6 +1170,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
890
1170
|
if (params === void 0) { params = {}; }
|
|
891
1171
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-producers"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
892
1172
|
},
|
|
1173
|
+
/**
|
|
1174
|
+
* No description
|
|
1175
|
+
*
|
|
1176
|
+
* @tags Admin Tenant Wine Regions
|
|
1177
|
+
* @name ListTenantWineRegions
|
|
1178
|
+
* @request GET:/admin/tenants/{tenantId}/wine-regions
|
|
1179
|
+
* @secure
|
|
1180
|
+
* @response `200` `WineRegionEntityPaginatedDto`
|
|
1181
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
1182
|
+
*/
|
|
1183
|
+
listTenantWineRegions: function (tenantId, query, params) {
|
|
1184
|
+
if (params === void 0) { params = {}; }
|
|
1185
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-regions"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
1186
|
+
},
|
|
893
1187
|
/**
|
|
894
1188
|
* No description
|
|
895
1189
|
*
|
|
@@ -974,6 +1268,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
974
1268
|
if (params === void 0) { params = {}; }
|
|
975
1269
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-vineyards"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
976
1270
|
},
|
|
1271
|
+
/**
|
|
1272
|
+
* No description
|
|
1273
|
+
*
|
|
1274
|
+
* @tags Admin Tenant Cases
|
|
1275
|
+
* @name UpdateTenantCase
|
|
1276
|
+
* @request PATCH:/admin/tenants/{tenantId}/cases/{caseId}
|
|
1277
|
+
* @secure
|
|
1278
|
+
* @response `200` `CaseEntityDto`
|
|
1279
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
1280
|
+
*/
|
|
1281
|
+
updateTenantCase: function (tenantId, caseId, data, params) {
|
|
1282
|
+
if (params === void 0) { params = {}; }
|
|
1283
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/cases/").concat(caseId), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
1284
|
+
},
|
|
977
1285
|
/**
|
|
978
1286
|
* No description
|
|
979
1287
|
*
|
|
@@ -1044,6 +1352,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
1044
1352
|
if (params === void 0) { params = {}; }
|
|
1045
1353
|
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));
|
|
1046
1354
|
},
|
|
1355
|
+
/**
|
|
1356
|
+
* No description
|
|
1357
|
+
*
|
|
1358
|
+
* @tags Admin Tenant Wine Countries
|
|
1359
|
+
* @name UpdateTenantWineCountry
|
|
1360
|
+
* @request PATCH:/admin/tenants/{tenantId}/wine-countries/{countryId}
|
|
1361
|
+
* @secure
|
|
1362
|
+
* @response `200` `WineCountryEntityDto`
|
|
1363
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
1364
|
+
*/
|
|
1365
|
+
updateTenantWineCountry: function (tenantId, countryId, data, params) {
|
|
1366
|
+
if (params === void 0) { params = {}; }
|
|
1367
|
+
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));
|
|
1368
|
+
},
|
|
1047
1369
|
/**
|
|
1048
1370
|
* No description
|
|
1049
1371
|
*
|
|
@@ -1058,6 +1380,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
1058
1380
|
if (params === void 0) { params = {}; }
|
|
1059
1381
|
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));
|
|
1060
1382
|
},
|
|
1383
|
+
/**
|
|
1384
|
+
* No description
|
|
1385
|
+
*
|
|
1386
|
+
* @tags Admin Tenant Wine Regions
|
|
1387
|
+
* @name UpdateTenantWineRegion
|
|
1388
|
+
* @request PATCH:/admin/tenants/{tenantId}/wine-regions/{regionId}
|
|
1389
|
+
* @secure
|
|
1390
|
+
* @response `200` `WineRegionEntityDto`
|
|
1391
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
1392
|
+
*/
|
|
1393
|
+
updateTenantWineRegion: function (tenantId, regionId, data, params) {
|
|
1394
|
+
if (params === void 0) { params = {}; }
|
|
1395
|
+
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));
|
|
1396
|
+
},
|
|
1061
1397
|
/**
|
|
1062
1398
|
* No description
|
|
1063
1399
|
*
|