@thelllabs/winehaus-sdk 0.0.8 → 0.0.11
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 +71 -1
- package/dist/esm/api/api.js +71 -1
- package/dist/types/api/api.d.ts +219 -1
- package/dist/umd/index.ts +71 -1
- package/package.json +1 -1
package/dist/cjs/api/api.js
CHANGED
|
@@ -197,7 +197,7 @@ var HttpClient = /** @class */ (function () {
|
|
|
197
197
|
exports.HttpClient = HttpClient;
|
|
198
198
|
/**
|
|
199
199
|
* @title winehaus-api
|
|
200
|
-
* @version 0.0.
|
|
200
|
+
* @version 0.0.2
|
|
201
201
|
* @baseUrl http://localhost:3000
|
|
202
202
|
* @contact
|
|
203
203
|
*/
|
|
@@ -316,6 +316,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
316
316
|
if (params === void 0) { params = {}; }
|
|
317
317
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/users"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
318
318
|
},
|
|
319
|
+
/**
|
|
320
|
+
* No description
|
|
321
|
+
*
|
|
322
|
+
* @tags Admin Tenant Operation Extras Templates
|
|
323
|
+
* @name CreateTenantOperationExtraTemplate
|
|
324
|
+
* @request POST:/admin/tenants/{tenantId}/operation-extras-templates
|
|
325
|
+
* @secure
|
|
326
|
+
* @response `201` `CaseOperationExtraTemplateEntityDto`
|
|
327
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
328
|
+
*/
|
|
329
|
+
createTenantOperationExtraTemplate: function (tenantId, data, params) {
|
|
330
|
+
if (params === void 0) { params = {}; }
|
|
331
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-extras-templates"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
332
|
+
},
|
|
319
333
|
/**
|
|
320
334
|
* No description
|
|
321
335
|
*
|
|
@@ -456,6 +470,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
456
470
|
if (params === void 0) { params = {}; }
|
|
457
471
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-vineyards"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
458
472
|
},
|
|
473
|
+
/**
|
|
474
|
+
* No description
|
|
475
|
+
*
|
|
476
|
+
* @tags Admin Tenant Operation Extras Templates
|
|
477
|
+
* @name DeleteTenantOperationExtraTemplate
|
|
478
|
+
* @request DELETE:/admin/tenants/{tenantId}/operation-extras-templates/{templateId}
|
|
479
|
+
* @secure
|
|
480
|
+
* @response `204` `void`
|
|
481
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
482
|
+
*/
|
|
483
|
+
deleteTenantOperationExtraTemplate: function (tenantId, templateId, params) {
|
|
484
|
+
if (params === void 0) { params = {}; }
|
|
485
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-extras-templates/").concat(templateId), method: "DELETE", secure: true }, params));
|
|
486
|
+
},
|
|
459
487
|
/**
|
|
460
488
|
* No description
|
|
461
489
|
*
|
|
@@ -624,6 +652,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
624
652
|
if (params === void 0) { params = {}; }
|
|
625
653
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/users/").concat(userId, "/enable"), method: "PATCH", secure: true }, params));
|
|
626
654
|
},
|
|
655
|
+
/**
|
|
656
|
+
* No description
|
|
657
|
+
*
|
|
658
|
+
* @tags Admin Tenant Operation Extras Templates
|
|
659
|
+
* @name GetTenantOperationExtraTemplateById
|
|
660
|
+
* @request GET:/admin/tenants/{tenantId}/operation-extras-templates/{templateId}
|
|
661
|
+
* @secure
|
|
662
|
+
* @response `200` `CaseOperationExtraTemplateEntityDto`
|
|
663
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
664
|
+
*/
|
|
665
|
+
getTenantOperationExtraTemplateById: function (tenantId, templateId, params) {
|
|
666
|
+
if (params === void 0) { params = {}; }
|
|
667
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-extras-templates/").concat(templateId), method: "GET", secure: true, format: "json" }, params));
|
|
668
|
+
},
|
|
627
669
|
/**
|
|
628
670
|
* No description
|
|
629
671
|
*
|
|
@@ -764,6 +806,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
764
806
|
if (params === void 0) { params = {}; }
|
|
765
807
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-vineyards/").concat(vineyardId), method: "GET", secure: true, format: "json" }, params));
|
|
766
808
|
},
|
|
809
|
+
/**
|
|
810
|
+
* No description
|
|
811
|
+
*
|
|
812
|
+
* @tags Admin Tenant Operation Extras Templates
|
|
813
|
+
* @name ListTenantOperationExtrasTemplates
|
|
814
|
+
* @request GET:/admin/tenants/{tenantId}/operation-extras-templates
|
|
815
|
+
* @secure
|
|
816
|
+
* @response `200` `CaseOperationExtraTemplateEntityPaginatedDto`
|
|
817
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
818
|
+
*/
|
|
819
|
+
listTenantOperationExtrasTemplates: function (tenantId, query, params) {
|
|
820
|
+
if (params === void 0) { params = {}; }
|
|
821
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-extras-templates"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
822
|
+
},
|
|
767
823
|
/**
|
|
768
824
|
* No description
|
|
769
825
|
*
|
|
@@ -918,6 +974,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
918
974
|
if (params === void 0) { params = {}; }
|
|
919
975
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-vineyards"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
920
976
|
},
|
|
977
|
+
/**
|
|
978
|
+
* No description
|
|
979
|
+
*
|
|
980
|
+
* @tags Admin Tenant Operation Extras Templates
|
|
981
|
+
* @name UpdateTenantOperationExtraTemplate
|
|
982
|
+
* @request PATCH:/admin/tenants/{tenantId}/operation-extras-templates/{templateId}
|
|
983
|
+
* @secure
|
|
984
|
+
* @response `200` `CaseOperationExtraTemplateEntityDto`
|
|
985
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
986
|
+
*/
|
|
987
|
+
updateTenantOperationExtraTemplate: function (tenantId, templateId, data, params) {
|
|
988
|
+
if (params === void 0) { params = {}; }
|
|
989
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-extras-templates/").concat(templateId), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
990
|
+
},
|
|
921
991
|
/**
|
|
922
992
|
* No description
|
|
923
993
|
*
|
package/dist/esm/api/api.js
CHANGED
|
@@ -191,7 +191,7 @@ var HttpClient = /** @class */ (function () {
|
|
|
191
191
|
export { HttpClient };
|
|
192
192
|
/**
|
|
193
193
|
* @title winehaus-api
|
|
194
|
-
* @version 0.0.
|
|
194
|
+
* @version 0.0.2
|
|
195
195
|
* @baseUrl http://localhost:3000
|
|
196
196
|
* @contact
|
|
197
197
|
*/
|
|
@@ -310,6 +310,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
310
310
|
if (params === void 0) { params = {}; }
|
|
311
311
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/users"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
312
312
|
},
|
|
313
|
+
/**
|
|
314
|
+
* No description
|
|
315
|
+
*
|
|
316
|
+
* @tags Admin Tenant Operation Extras Templates
|
|
317
|
+
* @name CreateTenantOperationExtraTemplate
|
|
318
|
+
* @request POST:/admin/tenants/{tenantId}/operation-extras-templates
|
|
319
|
+
* @secure
|
|
320
|
+
* @response `201` `CaseOperationExtraTemplateEntityDto`
|
|
321
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
322
|
+
*/
|
|
323
|
+
createTenantOperationExtraTemplate: function (tenantId, data, params) {
|
|
324
|
+
if (params === void 0) { params = {}; }
|
|
325
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-extras-templates"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
326
|
+
},
|
|
313
327
|
/**
|
|
314
328
|
* No description
|
|
315
329
|
*
|
|
@@ -450,6 +464,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
450
464
|
if (params === void 0) { params = {}; }
|
|
451
465
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-vineyards"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
452
466
|
},
|
|
467
|
+
/**
|
|
468
|
+
* No description
|
|
469
|
+
*
|
|
470
|
+
* @tags Admin Tenant Operation Extras Templates
|
|
471
|
+
* @name DeleteTenantOperationExtraTemplate
|
|
472
|
+
* @request DELETE:/admin/tenants/{tenantId}/operation-extras-templates/{templateId}
|
|
473
|
+
* @secure
|
|
474
|
+
* @response `204` `void`
|
|
475
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
476
|
+
*/
|
|
477
|
+
deleteTenantOperationExtraTemplate: function (tenantId, templateId, params) {
|
|
478
|
+
if (params === void 0) { params = {}; }
|
|
479
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-extras-templates/").concat(templateId), method: "DELETE", secure: true }, params));
|
|
480
|
+
},
|
|
453
481
|
/**
|
|
454
482
|
* No description
|
|
455
483
|
*
|
|
@@ -618,6 +646,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
618
646
|
if (params === void 0) { params = {}; }
|
|
619
647
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/users/").concat(userId, "/enable"), method: "PATCH", secure: true }, params));
|
|
620
648
|
},
|
|
649
|
+
/**
|
|
650
|
+
* No description
|
|
651
|
+
*
|
|
652
|
+
* @tags Admin Tenant Operation Extras Templates
|
|
653
|
+
* @name GetTenantOperationExtraTemplateById
|
|
654
|
+
* @request GET:/admin/tenants/{tenantId}/operation-extras-templates/{templateId}
|
|
655
|
+
* @secure
|
|
656
|
+
* @response `200` `CaseOperationExtraTemplateEntityDto`
|
|
657
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
658
|
+
*/
|
|
659
|
+
getTenantOperationExtraTemplateById: function (tenantId, templateId, params) {
|
|
660
|
+
if (params === void 0) { params = {}; }
|
|
661
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-extras-templates/").concat(templateId), method: "GET", secure: true, format: "json" }, params));
|
|
662
|
+
},
|
|
621
663
|
/**
|
|
622
664
|
* No description
|
|
623
665
|
*
|
|
@@ -758,6 +800,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
758
800
|
if (params === void 0) { params = {}; }
|
|
759
801
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-vineyards/").concat(vineyardId), method: "GET", secure: true, format: "json" }, params));
|
|
760
802
|
},
|
|
803
|
+
/**
|
|
804
|
+
* No description
|
|
805
|
+
*
|
|
806
|
+
* @tags Admin Tenant Operation Extras Templates
|
|
807
|
+
* @name ListTenantOperationExtrasTemplates
|
|
808
|
+
* @request GET:/admin/tenants/{tenantId}/operation-extras-templates
|
|
809
|
+
* @secure
|
|
810
|
+
* @response `200` `CaseOperationExtraTemplateEntityPaginatedDto`
|
|
811
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
812
|
+
*/
|
|
813
|
+
listTenantOperationExtrasTemplates: function (tenantId, query, params) {
|
|
814
|
+
if (params === void 0) { params = {}; }
|
|
815
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-extras-templates"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
816
|
+
},
|
|
761
817
|
/**
|
|
762
818
|
* No description
|
|
763
819
|
*
|
|
@@ -912,6 +968,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
912
968
|
if (params === void 0) { params = {}; }
|
|
913
969
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-vineyards"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
914
970
|
},
|
|
971
|
+
/**
|
|
972
|
+
* No description
|
|
973
|
+
*
|
|
974
|
+
* @tags Admin Tenant Operation Extras Templates
|
|
975
|
+
* @name UpdateTenantOperationExtraTemplate
|
|
976
|
+
* @request PATCH:/admin/tenants/{tenantId}/operation-extras-templates/{templateId}
|
|
977
|
+
* @secure
|
|
978
|
+
* @response `200` `CaseOperationExtraTemplateEntityDto`
|
|
979
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
980
|
+
*/
|
|
981
|
+
updateTenantOperationExtraTemplate: function (tenantId, templateId, data, params) {
|
|
982
|
+
if (params === void 0) { params = {}; }
|
|
983
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-extras-templates/").concat(templateId), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
984
|
+
},
|
|
915
985
|
/**
|
|
916
986
|
* No description
|
|
917
987
|
*
|
package/dist/types/api/api.d.ts
CHANGED
|
@@ -1,3 +1,35 @@
|
|
|
1
|
+
export interface CaseOperationExtraTemplateEntityDto {
|
|
2
|
+
/** @format date-time */
|
|
3
|
+
createdAt: string;
|
|
4
|
+
/** @format date-time */
|
|
5
|
+
deletedAt?: string | null;
|
|
6
|
+
description?: string | null;
|
|
7
|
+
/** @format uuid */
|
|
8
|
+
id: string;
|
|
9
|
+
invoiceTitle: string;
|
|
10
|
+
/**
|
|
11
|
+
* @min 0
|
|
12
|
+
* @example 100
|
|
13
|
+
*/
|
|
14
|
+
pricePerItem: number;
|
|
15
|
+
/** @format uuid */
|
|
16
|
+
tenantId?: string | null;
|
|
17
|
+
/** @format date-time */
|
|
18
|
+
updatedAt: string;
|
|
19
|
+
}
|
|
20
|
+
export interface CaseOperationExtraTemplateEntityPaginatedDto {
|
|
21
|
+
items: CaseOperationExtraTemplateEntityDto[];
|
|
22
|
+
links?: PaginationLinksDto;
|
|
23
|
+
meta: PaginationMetaDto;
|
|
24
|
+
}
|
|
25
|
+
export interface CreateCaseOperationExtraTemplateDto {
|
|
26
|
+
description?: string | null;
|
|
27
|
+
invoiceTitle: string;
|
|
28
|
+
/** [SYSTEM ADMIN ONLY] It enables the entity for ALL tenants */
|
|
29
|
+
isGlobal?: boolean;
|
|
30
|
+
/** @example 100 */
|
|
31
|
+
pricePerItem: number;
|
|
32
|
+
}
|
|
1
33
|
export interface CreateNameOnlyEntityDto {
|
|
2
34
|
/** [SYSTEM ADMIN ONLY] It enables the entity for ALL tenants */
|
|
3
35
|
isGlobal?: boolean;
|
|
@@ -123,6 +155,14 @@ export declare enum TenantUserStatusEnum {
|
|
|
123
155
|
Enabled = "enabled",
|
|
124
156
|
Blocked = "blocked"
|
|
125
157
|
}
|
|
158
|
+
export interface UpdateCaseOperationExtraTemplateDto {
|
|
159
|
+
description?: string | null;
|
|
160
|
+
invoiceTitle: string;
|
|
161
|
+
/** [SYSTEM ADMIN ONLY] It enables the entity for ALL tenants */
|
|
162
|
+
isGlobal?: boolean;
|
|
163
|
+
/** @example 100 */
|
|
164
|
+
pricePerItem: number;
|
|
165
|
+
}
|
|
126
166
|
export interface UpdateNameOnlyEntityDto {
|
|
127
167
|
/** [SYSTEM ADMIN ONLY] It enables the entity for ALL tenants */
|
|
128
168
|
isGlobal?: boolean;
|
|
@@ -499,6 +539,24 @@ export declare namespace Admin {
|
|
|
499
539
|
type RequestHeaders = {};
|
|
500
540
|
type ResponseBody = TenantUserEntityDto;
|
|
501
541
|
}
|
|
542
|
+
/**
|
|
543
|
+
* No description
|
|
544
|
+
* @tags Admin Tenant Operation Extras Templates
|
|
545
|
+
* @name CreateTenantOperationExtraTemplate
|
|
546
|
+
* @request POST:/admin/tenants/{tenantId}/operation-extras-templates
|
|
547
|
+
* @secure
|
|
548
|
+
* @response `201` `CaseOperationExtraTemplateEntityDto`
|
|
549
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
550
|
+
*/
|
|
551
|
+
namespace CreateTenantOperationExtraTemplate {
|
|
552
|
+
type RequestParams = {
|
|
553
|
+
tenantId: string;
|
|
554
|
+
};
|
|
555
|
+
type RequestQuery = {};
|
|
556
|
+
type RequestBody = CreateCaseOperationExtraTemplateDto;
|
|
557
|
+
type RequestHeaders = {};
|
|
558
|
+
type ResponseBody = CaseOperationExtraTemplateEntityDto;
|
|
559
|
+
}
|
|
502
560
|
/**
|
|
503
561
|
* No description
|
|
504
562
|
* @tags Admin Tenant Wines
|
|
@@ -679,6 +737,25 @@ export declare namespace Admin {
|
|
|
679
737
|
type RequestHeaders = {};
|
|
680
738
|
type ResponseBody = WineVineyardEntityDto;
|
|
681
739
|
}
|
|
740
|
+
/**
|
|
741
|
+
* No description
|
|
742
|
+
* @tags Admin Tenant Operation Extras Templates
|
|
743
|
+
* @name DeleteTenantOperationExtraTemplate
|
|
744
|
+
* @request DELETE:/admin/tenants/{tenantId}/operation-extras-templates/{templateId}
|
|
745
|
+
* @secure
|
|
746
|
+
* @response `204` `void`
|
|
747
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
748
|
+
*/
|
|
749
|
+
namespace DeleteTenantOperationExtraTemplate {
|
|
750
|
+
type RequestParams = {
|
|
751
|
+
templateId: string;
|
|
752
|
+
tenantId: string;
|
|
753
|
+
};
|
|
754
|
+
type RequestQuery = {};
|
|
755
|
+
type RequestBody = never;
|
|
756
|
+
type RequestHeaders = {};
|
|
757
|
+
type ResponseBody = void;
|
|
758
|
+
}
|
|
682
759
|
/**
|
|
683
760
|
* No description
|
|
684
761
|
* @tags Admin Tenant Wines
|
|
@@ -907,6 +984,25 @@ export declare namespace Admin {
|
|
|
907
984
|
type RequestHeaders = {};
|
|
908
985
|
type ResponseBody = void;
|
|
909
986
|
}
|
|
987
|
+
/**
|
|
988
|
+
* No description
|
|
989
|
+
* @tags Admin Tenant Operation Extras Templates
|
|
990
|
+
* @name GetTenantOperationExtraTemplateById
|
|
991
|
+
* @request GET:/admin/tenants/{tenantId}/operation-extras-templates/{templateId}
|
|
992
|
+
* @secure
|
|
993
|
+
* @response `200` `CaseOperationExtraTemplateEntityDto`
|
|
994
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
995
|
+
*/
|
|
996
|
+
namespace GetTenantOperationExtraTemplateById {
|
|
997
|
+
type RequestParams = {
|
|
998
|
+
templateId: string;
|
|
999
|
+
tenantId: string;
|
|
1000
|
+
};
|
|
1001
|
+
type RequestQuery = {};
|
|
1002
|
+
type RequestBody = never;
|
|
1003
|
+
type RequestHeaders = {};
|
|
1004
|
+
type ResponseBody = CaseOperationExtraTemplateEntityDto;
|
|
1005
|
+
}
|
|
910
1006
|
/**
|
|
911
1007
|
* No description
|
|
912
1008
|
* @tags Admin Tenant Wine Bottle Formats
|
|
@@ -1097,6 +1193,39 @@ export declare namespace Admin {
|
|
|
1097
1193
|
type RequestHeaders = {};
|
|
1098
1194
|
type ResponseBody = WineVineyardEntityDto;
|
|
1099
1195
|
}
|
|
1196
|
+
/**
|
|
1197
|
+
* No description
|
|
1198
|
+
* @tags Admin Tenant Operation Extras Templates
|
|
1199
|
+
* @name ListTenantOperationExtrasTemplates
|
|
1200
|
+
* @request GET:/admin/tenants/{tenantId}/operation-extras-templates
|
|
1201
|
+
* @secure
|
|
1202
|
+
* @response `200` `CaseOperationExtraTemplateEntityPaginatedDto`
|
|
1203
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
1204
|
+
*/
|
|
1205
|
+
namespace ListTenantOperationExtrasTemplates {
|
|
1206
|
+
type RequestParams = {
|
|
1207
|
+
tenantId: string;
|
|
1208
|
+
};
|
|
1209
|
+
type RequestQuery = {
|
|
1210
|
+
createdAt?: string;
|
|
1211
|
+
/**
|
|
1212
|
+
* @default 10
|
|
1213
|
+
* @example 10
|
|
1214
|
+
*/
|
|
1215
|
+
limit?: number;
|
|
1216
|
+
orderBy?: OrderByEnum;
|
|
1217
|
+
/**
|
|
1218
|
+
* @default 1
|
|
1219
|
+
* @example 1
|
|
1220
|
+
*/
|
|
1221
|
+
page?: number;
|
|
1222
|
+
search?: string;
|
|
1223
|
+
sortBy?: string[];
|
|
1224
|
+
};
|
|
1225
|
+
type RequestBody = never;
|
|
1226
|
+
type RequestHeaders = {};
|
|
1227
|
+
type ResponseBody = CaseOperationExtraTemplateEntityPaginatedDto;
|
|
1228
|
+
}
|
|
1100
1229
|
/**
|
|
1101
1230
|
* No description
|
|
1102
1231
|
* @tags Admin Tenant Users
|
|
@@ -1467,6 +1596,25 @@ export declare namespace Admin {
|
|
|
1467
1596
|
type RequestHeaders = {};
|
|
1468
1597
|
type ResponseBody = WineVineyardEntityPaginatedDto;
|
|
1469
1598
|
}
|
|
1599
|
+
/**
|
|
1600
|
+
* No description
|
|
1601
|
+
* @tags Admin Tenant Operation Extras Templates
|
|
1602
|
+
* @name UpdateTenantOperationExtraTemplate
|
|
1603
|
+
* @request PATCH:/admin/tenants/{tenantId}/operation-extras-templates/{templateId}
|
|
1604
|
+
* @secure
|
|
1605
|
+
* @response `200` `CaseOperationExtraTemplateEntityDto`
|
|
1606
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
1607
|
+
*/
|
|
1608
|
+
namespace UpdateTenantOperationExtraTemplate {
|
|
1609
|
+
type RequestParams = {
|
|
1610
|
+
templateId: string;
|
|
1611
|
+
tenantId: string;
|
|
1612
|
+
};
|
|
1613
|
+
type RequestQuery = {};
|
|
1614
|
+
type RequestBody = UpdateCaseOperationExtraTemplateDto;
|
|
1615
|
+
type RequestHeaders = {};
|
|
1616
|
+
type ResponseBody = CaseOperationExtraTemplateEntityDto;
|
|
1617
|
+
}
|
|
1470
1618
|
/**
|
|
1471
1619
|
* No description
|
|
1472
1620
|
* @tags Admin Tenant Wines
|
|
@@ -1702,7 +1850,7 @@ export declare class HttpClient<SecurityDataType = unknown> {
|
|
|
1702
1850
|
}
|
|
1703
1851
|
/**
|
|
1704
1852
|
* @title winehaus-api
|
|
1705
|
-
* @version 0.0.
|
|
1853
|
+
* @version 0.0.2
|
|
1706
1854
|
* @baseUrl http://localhost:3000
|
|
1707
1855
|
* @contact
|
|
1708
1856
|
*/
|
|
@@ -1794,6 +1942,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1794
1942
|
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
1795
1943
|
*/
|
|
1796
1944
|
createOrUpdateTenantUserAndPermissionsByUserEmail: (tenantId: string, data: CreateTenantUserDto, params?: RequestParams) => Promise<TenantUserEntityDto>;
|
|
1945
|
+
/**
|
|
1946
|
+
* No description
|
|
1947
|
+
*
|
|
1948
|
+
* @tags Admin Tenant Operation Extras Templates
|
|
1949
|
+
* @name CreateTenantOperationExtraTemplate
|
|
1950
|
+
* @request POST:/admin/tenants/{tenantId}/operation-extras-templates
|
|
1951
|
+
* @secure
|
|
1952
|
+
* @response `201` `CaseOperationExtraTemplateEntityDto`
|
|
1953
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
1954
|
+
*/
|
|
1955
|
+
createTenantOperationExtraTemplate: (tenantId: string, data: CreateCaseOperationExtraTemplateDto, params?: RequestParams) => Promise<CaseOperationExtraTemplateEntityDto>;
|
|
1797
1956
|
/**
|
|
1798
1957
|
* No description
|
|
1799
1958
|
*
|
|
@@ -1904,6 +2063,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1904
2063
|
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
1905
2064
|
*/
|
|
1906
2065
|
createTenantWineVineyard: (tenantId: string, data: CreateNameOnlyEntityDto, params?: RequestParams) => Promise<WineVineyardEntityDto>;
|
|
2066
|
+
/**
|
|
2067
|
+
* No description
|
|
2068
|
+
*
|
|
2069
|
+
* @tags Admin Tenant Operation Extras Templates
|
|
2070
|
+
* @name DeleteTenantOperationExtraTemplate
|
|
2071
|
+
* @request DELETE:/admin/tenants/{tenantId}/operation-extras-templates/{templateId}
|
|
2072
|
+
* @secure
|
|
2073
|
+
* @response `204` `void`
|
|
2074
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
2075
|
+
*/
|
|
2076
|
+
deleteTenantOperationExtraTemplate: (tenantId: string, templateId: string, params?: RequestParams) => Promise<void>;
|
|
1907
2077
|
/**
|
|
1908
2078
|
* No description
|
|
1909
2079
|
*
|
|
@@ -2036,6 +2206,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
2036
2206
|
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
2037
2207
|
*/
|
|
2038
2208
|
enableTenantUser: (tenantId: string, userId: string, params?: RequestParams) => Promise<void>;
|
|
2209
|
+
/**
|
|
2210
|
+
* No description
|
|
2211
|
+
*
|
|
2212
|
+
* @tags Admin Tenant Operation Extras Templates
|
|
2213
|
+
* @name GetTenantOperationExtraTemplateById
|
|
2214
|
+
* @request GET:/admin/tenants/{tenantId}/operation-extras-templates/{templateId}
|
|
2215
|
+
* @secure
|
|
2216
|
+
* @response `200` `CaseOperationExtraTemplateEntityDto`
|
|
2217
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
2218
|
+
*/
|
|
2219
|
+
getTenantOperationExtraTemplateById: (tenantId: string, templateId: string, params?: RequestParams) => Promise<CaseOperationExtraTemplateEntityDto>;
|
|
2039
2220
|
/**
|
|
2040
2221
|
* No description
|
|
2041
2222
|
*
|
|
@@ -2146,6 +2327,32 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
2146
2327
|
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
2147
2328
|
*/
|
|
2148
2329
|
getTenantWineVineyardById: (tenantId: string, vineyardId: string, params?: RequestParams) => Promise<WineVineyardEntityDto>;
|
|
2330
|
+
/**
|
|
2331
|
+
* No description
|
|
2332
|
+
*
|
|
2333
|
+
* @tags Admin Tenant Operation Extras Templates
|
|
2334
|
+
* @name ListTenantOperationExtrasTemplates
|
|
2335
|
+
* @request GET:/admin/tenants/{tenantId}/operation-extras-templates
|
|
2336
|
+
* @secure
|
|
2337
|
+
* @response `200` `CaseOperationExtraTemplateEntityPaginatedDto`
|
|
2338
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
2339
|
+
*/
|
|
2340
|
+
listTenantOperationExtrasTemplates: (tenantId: string, query?: {
|
|
2341
|
+
createdAt?: string;
|
|
2342
|
+
/**
|
|
2343
|
+
* @default 10
|
|
2344
|
+
* @example 10
|
|
2345
|
+
*/
|
|
2346
|
+
limit?: number;
|
|
2347
|
+
orderBy?: OrderByEnum;
|
|
2348
|
+
/**
|
|
2349
|
+
* @default 1
|
|
2350
|
+
* @example 1
|
|
2351
|
+
*/
|
|
2352
|
+
page?: number;
|
|
2353
|
+
search?: string;
|
|
2354
|
+
sortBy?: string[];
|
|
2355
|
+
}, params?: RequestParams) => Promise<CaseOperationExtraTemplateEntityPaginatedDto>;
|
|
2149
2356
|
/**
|
|
2150
2357
|
* No description
|
|
2151
2358
|
*
|
|
@@ -2439,6 +2646,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
2439
2646
|
search?: string;
|
|
2440
2647
|
sortBy?: string[];
|
|
2441
2648
|
}, params?: RequestParams) => Promise<WineVineyardEntityPaginatedDto>;
|
|
2649
|
+
/**
|
|
2650
|
+
* No description
|
|
2651
|
+
*
|
|
2652
|
+
* @tags Admin Tenant Operation Extras Templates
|
|
2653
|
+
* @name UpdateTenantOperationExtraTemplate
|
|
2654
|
+
* @request PATCH:/admin/tenants/{tenantId}/operation-extras-templates/{templateId}
|
|
2655
|
+
* @secure
|
|
2656
|
+
* @response `200` `CaseOperationExtraTemplateEntityDto`
|
|
2657
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
2658
|
+
*/
|
|
2659
|
+
updateTenantOperationExtraTemplate: (tenantId: string, templateId: string, data: UpdateCaseOperationExtraTemplateDto, params?: RequestParams) => Promise<CaseOperationExtraTemplateEntityDto>;
|
|
2442
2660
|
/**
|
|
2443
2661
|
* No description
|
|
2444
2662
|
*
|
package/dist/umd/index.ts
CHANGED
|
@@ -18522,7 +18522,7 @@ var HttpClient = /** @class */ (function () {
|
|
|
18522
18522
|
exports.HttpClient = HttpClient;
|
|
18523
18523
|
/**
|
|
18524
18524
|
* @title winehaus-api
|
|
18525
|
-
* @version 0.0.
|
|
18525
|
+
* @version 0.0.2
|
|
18526
18526
|
* @baseUrl http://localhost:3000
|
|
18527
18527
|
* @contact
|
|
18528
18528
|
*/
|
|
@@ -18641,6 +18641,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
18641
18641
|
if (params === void 0) { params = {}; }
|
|
18642
18642
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/users"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
18643
18643
|
},
|
|
18644
|
+
/**
|
|
18645
|
+
* No description
|
|
18646
|
+
*
|
|
18647
|
+
* @tags Admin Tenant Operation Extras Templates
|
|
18648
|
+
* @name CreateTenantOperationExtraTemplate
|
|
18649
|
+
* @request POST:/admin/tenants/{tenantId}/operation-extras-templates
|
|
18650
|
+
* @secure
|
|
18651
|
+
* @response `201` `CaseOperationExtraTemplateEntityDto`
|
|
18652
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
18653
|
+
*/
|
|
18654
|
+
createTenantOperationExtraTemplate: function (tenantId, data, params) {
|
|
18655
|
+
if (params === void 0) { params = {}; }
|
|
18656
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-extras-templates"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
18657
|
+
},
|
|
18644
18658
|
/**
|
|
18645
18659
|
* No description
|
|
18646
18660
|
*
|
|
@@ -18781,6 +18795,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
18781
18795
|
if (params === void 0) { params = {}; }
|
|
18782
18796
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-vineyards"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
18783
18797
|
},
|
|
18798
|
+
/**
|
|
18799
|
+
* No description
|
|
18800
|
+
*
|
|
18801
|
+
* @tags Admin Tenant Operation Extras Templates
|
|
18802
|
+
* @name DeleteTenantOperationExtraTemplate
|
|
18803
|
+
* @request DELETE:/admin/tenants/{tenantId}/operation-extras-templates/{templateId}
|
|
18804
|
+
* @secure
|
|
18805
|
+
* @response `204` `void`
|
|
18806
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
18807
|
+
*/
|
|
18808
|
+
deleteTenantOperationExtraTemplate: function (tenantId, templateId, params) {
|
|
18809
|
+
if (params === void 0) { params = {}; }
|
|
18810
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-extras-templates/").concat(templateId), method: "DELETE", secure: true }, params));
|
|
18811
|
+
},
|
|
18784
18812
|
/**
|
|
18785
18813
|
* No description
|
|
18786
18814
|
*
|
|
@@ -18949,6 +18977,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
18949
18977
|
if (params === void 0) { params = {}; }
|
|
18950
18978
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/users/").concat(userId, "/enable"), method: "PATCH", secure: true }, params));
|
|
18951
18979
|
},
|
|
18980
|
+
/**
|
|
18981
|
+
* No description
|
|
18982
|
+
*
|
|
18983
|
+
* @tags Admin Tenant Operation Extras Templates
|
|
18984
|
+
* @name GetTenantOperationExtraTemplateById
|
|
18985
|
+
* @request GET:/admin/tenants/{tenantId}/operation-extras-templates/{templateId}
|
|
18986
|
+
* @secure
|
|
18987
|
+
* @response `200` `CaseOperationExtraTemplateEntityDto`
|
|
18988
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
18989
|
+
*/
|
|
18990
|
+
getTenantOperationExtraTemplateById: function (tenantId, templateId, params) {
|
|
18991
|
+
if (params === void 0) { params = {}; }
|
|
18992
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-extras-templates/").concat(templateId), method: "GET", secure: true, format: "json" }, params));
|
|
18993
|
+
},
|
|
18952
18994
|
/**
|
|
18953
18995
|
* No description
|
|
18954
18996
|
*
|
|
@@ -19089,6 +19131,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
19089
19131
|
if (params === void 0) { params = {}; }
|
|
19090
19132
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-vineyards/").concat(vineyardId), method: "GET", secure: true, format: "json" }, params));
|
|
19091
19133
|
},
|
|
19134
|
+
/**
|
|
19135
|
+
* No description
|
|
19136
|
+
*
|
|
19137
|
+
* @tags Admin Tenant Operation Extras Templates
|
|
19138
|
+
* @name ListTenantOperationExtrasTemplates
|
|
19139
|
+
* @request GET:/admin/tenants/{tenantId}/operation-extras-templates
|
|
19140
|
+
* @secure
|
|
19141
|
+
* @response `200` `CaseOperationExtraTemplateEntityPaginatedDto`
|
|
19142
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin, operator
|
|
19143
|
+
*/
|
|
19144
|
+
listTenantOperationExtrasTemplates: function (tenantId, query, params) {
|
|
19145
|
+
if (params === void 0) { params = {}; }
|
|
19146
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-extras-templates"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
19147
|
+
},
|
|
19092
19148
|
/**
|
|
19093
19149
|
* No description
|
|
19094
19150
|
*
|
|
@@ -19243,6 +19299,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
19243
19299
|
if (params === void 0) { params = {}; }
|
|
19244
19300
|
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/wine-vineyards"), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
19245
19301
|
},
|
|
19302
|
+
/**
|
|
19303
|
+
* No description
|
|
19304
|
+
*
|
|
19305
|
+
* @tags Admin Tenant Operation Extras Templates
|
|
19306
|
+
* @name UpdateTenantOperationExtraTemplate
|
|
19307
|
+
* @request PATCH:/admin/tenants/{tenantId}/operation-extras-templates/{templateId}
|
|
19308
|
+
* @secure
|
|
19309
|
+
* @response `200` `CaseOperationExtraTemplateEntityDto`
|
|
19310
|
+
* @response `403` `HttpExceptionDto` Need user with one of these roles: owner, admin
|
|
19311
|
+
*/
|
|
19312
|
+
updateTenantOperationExtraTemplate: function (tenantId, templateId, data, params) {
|
|
19313
|
+
if (params === void 0) { params = {}; }
|
|
19314
|
+
return _this.request(__assign({ path: "/admin/tenants/".concat(tenantId, "/operation-extras-templates/").concat(templateId), method: "PATCH", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
19315
|
+
},
|
|
19246
19316
|
/**
|
|
19247
19317
|
* No description
|
|
19248
19318
|
*
|