@thelllabs/winehaus-sdk 0.0.20 → 0.0.21
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 +14 -0
- package/dist/esm/api/api.js +14 -0
- package/dist/types/api/api.d.ts +50 -0
- package/dist/umd/index.ts +14 -0
- package/package.json +1 -1
package/dist/cjs/api/api.js
CHANGED
|
@@ -458,6 +458,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
458
458
|
if (params === void 0) { params = {}; }
|
|
459
459
|
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId), method: "GET", secure: true, format: "json" }, params));
|
|
460
460
|
},
|
|
461
|
+
/**
|
|
462
|
+
* No description
|
|
463
|
+
*
|
|
464
|
+
* @tags Tenant Users
|
|
465
|
+
* @name GetUserAddressById
|
|
466
|
+
* @request GET:/tenants/{tenantId}/users/{userId}/addresses/{addressId}
|
|
467
|
+
* @secure
|
|
468
|
+
* @response `200` `AddressEntityDto`
|
|
469
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
470
|
+
*/
|
|
471
|
+
getUserAddressById: function (tenantId, userId, addressId, params) {
|
|
472
|
+
if (params === void 0) { params = {}; }
|
|
473
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/addresses/").concat(addressId), method: "GET", secure: true, format: "json" }, params));
|
|
474
|
+
},
|
|
461
475
|
/**
|
|
462
476
|
* No description
|
|
463
477
|
*
|
package/dist/esm/api/api.js
CHANGED
|
@@ -452,6 +452,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
452
452
|
if (params === void 0) { params = {}; }
|
|
453
453
|
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId), method: "GET", secure: true, format: "json" }, params));
|
|
454
454
|
},
|
|
455
|
+
/**
|
|
456
|
+
* No description
|
|
457
|
+
*
|
|
458
|
+
* @tags Tenant Users
|
|
459
|
+
* @name GetUserAddressById
|
|
460
|
+
* @request GET:/tenants/{tenantId}/users/{userId}/addresses/{addressId}
|
|
461
|
+
* @secure
|
|
462
|
+
* @response `200` `AddressEntityDto`
|
|
463
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
464
|
+
*/
|
|
465
|
+
getUserAddressById: function (tenantId, userId, addressId, params) {
|
|
466
|
+
if (params === void 0) { params = {}; }
|
|
467
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/addresses/").concat(addressId), method: "GET", secure: true, format: "json" }, params));
|
|
468
|
+
},
|
|
455
469
|
/**
|
|
456
470
|
* No description
|
|
457
471
|
*
|
package/dist/types/api/api.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export interface AddressEntityDto {
|
|
|
16
16
|
state: string;
|
|
17
17
|
/** @format uuid */
|
|
18
18
|
tenantId: string;
|
|
19
|
+
type: string;
|
|
19
20
|
/** @format date-time */
|
|
20
21
|
updatedAt: string;
|
|
21
22
|
/** @format uuid */
|
|
@@ -43,6 +44,7 @@ export interface CaseEntityDto {
|
|
|
43
44
|
description?: string | null;
|
|
44
45
|
/** @format uuid */
|
|
45
46
|
id: string;
|
|
47
|
+
location?: string | null;
|
|
46
48
|
/** @min 0 */
|
|
47
49
|
maxItems: number;
|
|
48
50
|
name: string;
|
|
@@ -176,6 +178,7 @@ export interface CreateAddressByTemplateDto {
|
|
|
176
178
|
notes?: string;
|
|
177
179
|
postalCode?: string;
|
|
178
180
|
state?: string;
|
|
181
|
+
type?: string;
|
|
179
182
|
}
|
|
180
183
|
export interface CreateAddressDto {
|
|
181
184
|
addressLine1: string;
|
|
@@ -187,6 +190,7 @@ export interface CreateAddressDto {
|
|
|
187
190
|
notes?: string;
|
|
188
191
|
postalCode: string;
|
|
189
192
|
state: string;
|
|
193
|
+
type: string;
|
|
190
194
|
}
|
|
191
195
|
export interface CreateCaseDto {
|
|
192
196
|
/** @format date-time */
|
|
@@ -196,6 +200,7 @@ export interface CreateCaseDto {
|
|
|
196
200
|
/** @format uuid */
|
|
197
201
|
customerId: string;
|
|
198
202
|
description?: string | null;
|
|
203
|
+
location?: string | null;
|
|
199
204
|
/** @min 0 */
|
|
200
205
|
maxItems: number;
|
|
201
206
|
name: string;
|
|
@@ -245,6 +250,7 @@ export interface CreateOperationGroupDto {
|
|
|
245
250
|
customerId: string;
|
|
246
251
|
/** @minItems 0 */
|
|
247
252
|
extras?: CreateOperationExtraDto[];
|
|
253
|
+
notes?: string;
|
|
248
254
|
/** @minItems 1 */
|
|
249
255
|
operations: CreateCaseOperationDto[];
|
|
250
256
|
/** @example "processed" */
|
|
@@ -360,6 +366,7 @@ export interface FullOperationGroupEntityDto {
|
|
|
360
366
|
extras: OperationExtraEntityDto[];
|
|
361
367
|
/** @format uuid */
|
|
362
368
|
id: string;
|
|
369
|
+
notes: string | null;
|
|
363
370
|
operations: FullCaseOperationEntityDto[];
|
|
364
371
|
/** @example "processed" */
|
|
365
372
|
status: OperationGroupStatusEnum;
|
|
@@ -502,6 +509,7 @@ export interface OperationGroupEntityDto {
|
|
|
502
509
|
customerId: string;
|
|
503
510
|
/** @format uuid */
|
|
504
511
|
id: string;
|
|
512
|
+
notes: string | null;
|
|
505
513
|
/** @example "processed" */
|
|
506
514
|
status: OperationGroupStatusEnum;
|
|
507
515
|
/** @format uuid */
|
|
@@ -697,6 +705,7 @@ export interface SigninResponseDto {
|
|
|
697
705
|
export interface SyncOperationGroupWithSnapshotDto {
|
|
698
706
|
/** @minItems 0 */
|
|
699
707
|
extras?: UpdateOperationExtraDto[];
|
|
708
|
+
notes?: string;
|
|
700
709
|
/** @minItems 1 */
|
|
701
710
|
operations: UpdateCaseOperationDto[];
|
|
702
711
|
}
|
|
@@ -720,6 +729,7 @@ export interface UpdateAddressDto {
|
|
|
720
729
|
notes?: string;
|
|
721
730
|
postalCode?: string;
|
|
722
731
|
state?: string;
|
|
732
|
+
type?: string;
|
|
723
733
|
}
|
|
724
734
|
export interface UpdateCaseDto {
|
|
725
735
|
/** @format date-time */
|
|
@@ -729,6 +739,7 @@ export interface UpdateCaseDto {
|
|
|
729
739
|
/** @format uuid */
|
|
730
740
|
customerId: string;
|
|
731
741
|
description?: string | null;
|
|
742
|
+
location?: string | null;
|
|
732
743
|
/** @min 0 */
|
|
733
744
|
maxItems: number;
|
|
734
745
|
name: string;
|
|
@@ -773,6 +784,8 @@ export interface UpdateOperationExtraTemplateDto {
|
|
|
773
784
|
pricePerItem: number;
|
|
774
785
|
}
|
|
775
786
|
export interface UpdateUserDto {
|
|
787
|
+
/** @example "user@example.com" */
|
|
788
|
+
email?: string;
|
|
776
789
|
firstName?: string | null;
|
|
777
790
|
lastName?: string | null;
|
|
778
791
|
/** This field is accepted only if called by some tenant admin/operator */
|
|
@@ -1399,6 +1412,26 @@ export declare namespace Tenants {
|
|
|
1399
1412
|
type RequestHeaders = {};
|
|
1400
1413
|
type ResponseBody = UserEntityDto;
|
|
1401
1414
|
}
|
|
1415
|
+
/**
|
|
1416
|
+
* No description
|
|
1417
|
+
* @tags Tenant Users
|
|
1418
|
+
* @name GetUserAddressById
|
|
1419
|
+
* @request GET:/tenants/{tenantId}/users/{userId}/addresses/{addressId}
|
|
1420
|
+
* @secure
|
|
1421
|
+
* @response `200` `AddressEntityDto`
|
|
1422
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
1423
|
+
*/
|
|
1424
|
+
namespace GetUserAddressById {
|
|
1425
|
+
type RequestParams = {
|
|
1426
|
+
addressId: string;
|
|
1427
|
+
tenantId: string;
|
|
1428
|
+
userId: string;
|
|
1429
|
+
};
|
|
1430
|
+
type RequestQuery = {};
|
|
1431
|
+
type RequestBody = never;
|
|
1432
|
+
type RequestHeaders = {};
|
|
1433
|
+
type ResponseBody = AddressEntityDto;
|
|
1434
|
+
}
|
|
1402
1435
|
/**
|
|
1403
1436
|
* No description
|
|
1404
1437
|
* @tags Tenant Users Operation Requests
|
|
@@ -3036,6 +3069,7 @@ export declare namespace Admin {
|
|
|
3036
3069
|
};
|
|
3037
3070
|
type RequestQuery = {
|
|
3038
3071
|
brandIds?: string[];
|
|
3072
|
+
countryIds?: string[];
|
|
3039
3073
|
createdAt?: string;
|
|
3040
3074
|
/**
|
|
3041
3075
|
* @default 10
|
|
@@ -3049,6 +3083,8 @@ export declare namespace Admin {
|
|
|
3049
3083
|
*/
|
|
3050
3084
|
page?: number;
|
|
3051
3085
|
producerIds?: string[];
|
|
3086
|
+
regionIds?: string[];
|
|
3087
|
+
search?: string;
|
|
3052
3088
|
sortBy?: string[];
|
|
3053
3089
|
styleIds?: string[];
|
|
3054
3090
|
typeIds?: string[];
|
|
@@ -3814,6 +3850,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3814
3850
|
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
3815
3851
|
*/
|
|
3816
3852
|
getTenantUser: (tenantId: string, userId: string, params?: RequestParams) => Promise<UserEntityDto>;
|
|
3853
|
+
/**
|
|
3854
|
+
* No description
|
|
3855
|
+
*
|
|
3856
|
+
* @tags Tenant Users
|
|
3857
|
+
* @name GetUserAddressById
|
|
3858
|
+
* @request GET:/tenants/{tenantId}/users/{userId}/addresses/{addressId}
|
|
3859
|
+
* @secure
|
|
3860
|
+
* @response `200` `AddressEntityDto`
|
|
3861
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
3862
|
+
*/
|
|
3863
|
+
getUserAddressById: (tenantId: string, userId: string, addressId: string, params?: RequestParams) => Promise<AddressEntityDto>;
|
|
3817
3864
|
/**
|
|
3818
3865
|
* No description
|
|
3819
3866
|
*
|
|
@@ -4888,6 +4935,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4888
4935
|
*/
|
|
4889
4936
|
listTenantWines: (tenantId: string, query?: {
|
|
4890
4937
|
brandIds?: string[];
|
|
4938
|
+
countryIds?: string[];
|
|
4891
4939
|
createdAt?: string;
|
|
4892
4940
|
/**
|
|
4893
4941
|
* @default 10
|
|
@@ -4901,6 +4949,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4901
4949
|
*/
|
|
4902
4950
|
page?: number;
|
|
4903
4951
|
producerIds?: string[];
|
|
4952
|
+
regionIds?: string[];
|
|
4953
|
+
search?: string;
|
|
4904
4954
|
sortBy?: string[];
|
|
4905
4955
|
styleIds?: string[];
|
|
4906
4956
|
typeIds?: string[];
|
package/dist/umd/index.ts
CHANGED
|
@@ -18783,6 +18783,20 @@ var Api = /** @class */ (function (_super) {
|
|
|
18783
18783
|
if (params === void 0) { params = {}; }
|
|
18784
18784
|
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId), method: "GET", secure: true, format: "json" }, params));
|
|
18785
18785
|
},
|
|
18786
|
+
/**
|
|
18787
|
+
* No description
|
|
18788
|
+
*
|
|
18789
|
+
* @tags Tenant Users
|
|
18790
|
+
* @name GetUserAddressById
|
|
18791
|
+
* @request GET:/tenants/{tenantId}/users/{userId}/addresses/{addressId}
|
|
18792
|
+
* @secure
|
|
18793
|
+
* @response `200` `AddressEntityDto`
|
|
18794
|
+
* @response `403` `HttpExceptionDto` You're not enabled to make this operation.
|
|
18795
|
+
*/
|
|
18796
|
+
getUserAddressById: function (tenantId, userId, addressId, params) {
|
|
18797
|
+
if (params === void 0) { params = {}; }
|
|
18798
|
+
return _this.request(__assign({ path: "/tenants/".concat(tenantId, "/users/").concat(userId, "/addresses/").concat(addressId), method: "GET", secure: true, format: "json" }, params));
|
|
18799
|
+
},
|
|
18786
18800
|
/**
|
|
18787
18801
|
* No description
|
|
18788
18802
|
*
|