@lcdp/api-react-rest-client 2.13.7-LDS-4699-etape-1-no-more-archive-of-frid.16802170202 → 2.13.7-develop.16716439023
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/package.json +1 -1
- package/user/src/apis/ManageUserRestrictionApi.d.ts +1 -25
- package/user/src/apis/ManageUserRestrictionApi.js +16 -156
- package/user/src/apis/SearchUserRestrictionApi.d.ts +1 -20
- package/user/src/apis/SearchUserRestrictionApi.js +12 -167
- package/user/src/apis/index.d.ts +0 -1
- package/user/src/apis/index.js +0 -1
- package/user/src/models/index.d.ts +0 -3
- package/user/src/models/index.js +0 -3
- package/user/src/apis/SearchUserStorageTypeApi.d.ts +0 -26
- package/user/src/apis/SearchUserStorageTypeApi.js +0 -156
- package/user/src/models/StorageTypeLink.d.ts +0 -43
- package/user/src/models/StorageTypeLink.js +0 -51
- package/user/src/models/UserRestrictedStorageTypeCreationParameter.d.ts +0 -31
- package/user/src/models/UserRestrictedStorageTypeCreationParameter.js +0 -45
- package/user/src/models/UserStorageType.d.ts +0 -37
- package/user/src/models/UserStorageType.js +0 -47
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { NotificationTypeId, UserRestrictedFeatureCreationParameter, UserRestrictedNotificationTypeCreationParameter, UserRestrictedProductTypeCreationParameter
|
|
13
|
+
import type { NotificationTypeId, UserRestrictedFeatureCreationParameter, UserRestrictedNotificationTypeCreationParameter, UserRestrictedProductTypeCreationParameter } from '../models/index';
|
|
14
14
|
export interface CreateCurrentUserRestrictedNotificationTypeRequest {
|
|
15
15
|
userRestrictedNotificationTypeCreationParameter: UserRestrictedNotificationTypeCreationParameter;
|
|
16
16
|
}
|
|
@@ -26,10 +26,6 @@ export interface CreateUserRestrictedProductTypeRequest {
|
|
|
26
26
|
userId: number;
|
|
27
27
|
userRestrictedProductTypeCreationParameter: UserRestrictedProductTypeCreationParameter;
|
|
28
28
|
}
|
|
29
|
-
export interface CreateUserRestrictedStorageTypeRequest {
|
|
30
|
-
userId: number;
|
|
31
|
-
userRestrictedStorageTypeCreationParameter: UserRestrictedStorageTypeCreationParameter;
|
|
32
|
-
}
|
|
33
29
|
export interface DeleteCurrentUserRestrictedNotificationTypeRequest {
|
|
34
30
|
notificationTypeId: NotificationTypeId;
|
|
35
31
|
}
|
|
@@ -45,10 +41,6 @@ export interface DeleteUserRestrictedProductTypeRequest {
|
|
|
45
41
|
userId: number;
|
|
46
42
|
productTypeId: string;
|
|
47
43
|
}
|
|
48
|
-
export interface DeleteUserRestrictedStorageTypeRequest {
|
|
49
|
-
userId: number;
|
|
50
|
-
storageTypeId: string;
|
|
51
|
-
}
|
|
52
44
|
/**
|
|
53
45
|
*
|
|
54
46
|
*/
|
|
@@ -85,14 +77,6 @@ export declare class ManageUserRestrictionApi extends runtime.BaseAPI {
|
|
|
85
77
|
* Add this product type in restricted user product types
|
|
86
78
|
*/
|
|
87
79
|
createUserRestrictedProductType(requestParameters: CreateUserRestrictedProductTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
88
|
-
/**
|
|
89
|
-
* Add this storage type in restricted user storage product types
|
|
90
|
-
*/
|
|
91
|
-
createUserRestrictedStorageTypeRaw(requestParameters: CreateUserRestrictedStorageTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
92
|
-
/**
|
|
93
|
-
* Add this storage type in restricted user storage product types
|
|
94
|
-
*/
|
|
95
|
-
createUserRestrictedStorageType(requestParameters: CreateUserRestrictedStorageTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
96
80
|
/**
|
|
97
81
|
* Delete this notification type from restricted user notification types
|
|
98
82
|
*/
|
|
@@ -125,12 +109,4 @@ export declare class ManageUserRestrictionApi extends runtime.BaseAPI {
|
|
|
125
109
|
* Delete this product type from restricted user product types
|
|
126
110
|
*/
|
|
127
111
|
deleteUserRestrictedProductType(requestParameters: DeleteUserRestrictedProductTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
128
|
-
/**
|
|
129
|
-
* Delete this storage type from restricted user storage types
|
|
130
|
-
*/
|
|
131
|
-
deleteUserRestrictedStorageTypeRaw(requestParameters: DeleteUserRestrictedStorageTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
132
|
-
/**
|
|
133
|
-
* Delete this storage type from restricted user storage types
|
|
134
|
-
*/
|
|
135
|
-
deleteUserRestrictedStorageType(requestParameters: DeleteUserRestrictedStorageTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
136
112
|
}
|
|
@@ -356,83 +356,12 @@ var ManageUserRestrictionApi = /** @class */ (function (_super) {
|
|
|
356
356
|
});
|
|
357
357
|
});
|
|
358
358
|
};
|
|
359
|
-
/**
|
|
360
|
-
* Add this storage type in restricted user storage product types
|
|
361
|
-
*/
|
|
362
|
-
ManageUserRestrictionApi.prototype.createUserRestrictedStorageTypeRaw = function (requestParameters, initOverrides) {
|
|
363
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
364
|
-
var queryParameters, headerParameters, _a, _b, token, tokenString, response, response_5;
|
|
365
|
-
return __generator(this, function (_c) {
|
|
366
|
-
switch (_c.label) {
|
|
367
|
-
case 0:
|
|
368
|
-
if (requestParameters['userId'] == null) {
|
|
369
|
-
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling createUserRestrictedStorageType().');
|
|
370
|
-
}
|
|
371
|
-
if (requestParameters['userRestrictedStorageTypeCreationParameter'] == null) {
|
|
372
|
-
throw new runtime.RequiredError('userRestrictedStorageTypeCreationParameter', 'Required parameter "userRestrictedStorageTypeCreationParameter" was null or undefined when calling createUserRestrictedStorageType().');
|
|
373
|
-
}
|
|
374
|
-
queryParameters = {};
|
|
375
|
-
headerParameters = {};
|
|
376
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
377
|
-
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
378
|
-
_a = headerParameters;
|
|
379
|
-
_b = "x-api-key";
|
|
380
|
-
return [4 /*yield*/, this.configuration.apiKey("x-api-key")];
|
|
381
|
-
case 1:
|
|
382
|
-
_a[_b] = _c.sent(); // apiKeyAuth authentication
|
|
383
|
-
_c.label = 2;
|
|
384
|
-
case 2:
|
|
385
|
-
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
386
|
-
token = this.configuration.accessToken;
|
|
387
|
-
return [4 /*yield*/, token("bearerAuth", [])];
|
|
388
|
-
case 3:
|
|
389
|
-
tokenString = _c.sent();
|
|
390
|
-
if (tokenString) {
|
|
391
|
-
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
392
|
-
}
|
|
393
|
-
_c.label = 4;
|
|
394
|
-
case 4:
|
|
395
|
-
_c.trys.push([4, 6, , 7]);
|
|
396
|
-
return [4 /*yield*/, this.request({
|
|
397
|
-
path: "/users/{userId}/restricted-storage-types".replace("{".concat("userId", "}"), encodeURIComponent(String(requestParameters['userId']))),
|
|
398
|
-
method: 'POST',
|
|
399
|
-
headers: headerParameters,
|
|
400
|
-
query: queryParameters,
|
|
401
|
-
body: (0, index_1.UserRestrictedStorageTypeCreationParameterToJSON)(requestParameters['userRestrictedStorageTypeCreationParameter']),
|
|
402
|
-
}, initOverrides)];
|
|
403
|
-
case 5:
|
|
404
|
-
response = _c.sent();
|
|
405
|
-
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
406
|
-
case 6:
|
|
407
|
-
response_5 = _c.sent();
|
|
408
|
-
console.debug(response_5);
|
|
409
|
-
throw response_5;
|
|
410
|
-
case 7: return [2 /*return*/];
|
|
411
|
-
}
|
|
412
|
-
});
|
|
413
|
-
});
|
|
414
|
-
};
|
|
415
|
-
/**
|
|
416
|
-
* Add this storage type in restricted user storage product types
|
|
417
|
-
*/
|
|
418
|
-
ManageUserRestrictionApi.prototype.createUserRestrictedStorageType = function (requestParameters, initOverrides) {
|
|
419
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
420
|
-
return __generator(this, function (_a) {
|
|
421
|
-
switch (_a.label) {
|
|
422
|
-
case 0: return [4 /*yield*/, this.createUserRestrictedStorageTypeRaw(requestParameters, initOverrides)];
|
|
423
|
-
case 1:
|
|
424
|
-
_a.sent();
|
|
425
|
-
return [2 /*return*/];
|
|
426
|
-
}
|
|
427
|
-
});
|
|
428
|
-
});
|
|
429
|
-
};
|
|
430
359
|
/**
|
|
431
360
|
* Delete this notification type from restricted user notification types
|
|
432
361
|
*/
|
|
433
362
|
ManageUserRestrictionApi.prototype.deleteCurrentUserRestrictedNotificationTypeRaw = function (requestParameters, initOverrides) {
|
|
434
363
|
return __awaiter(this, void 0, void 0, function () {
|
|
435
|
-
var queryParameters, headerParameters, token, tokenString, response,
|
|
364
|
+
var queryParameters, headerParameters, token, tokenString, response, response_5;
|
|
436
365
|
return __generator(this, function (_a) {
|
|
437
366
|
switch (_a.label) {
|
|
438
367
|
case 0:
|
|
@@ -462,9 +391,9 @@ var ManageUserRestrictionApi = /** @class */ (function (_super) {
|
|
|
462
391
|
response = _a.sent();
|
|
463
392
|
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
464
393
|
case 4:
|
|
465
|
-
|
|
466
|
-
console.debug(
|
|
467
|
-
throw
|
|
394
|
+
response_5 = _a.sent();
|
|
395
|
+
console.debug(response_5);
|
|
396
|
+
throw response_5;
|
|
468
397
|
case 5: return [2 /*return*/];
|
|
469
398
|
}
|
|
470
399
|
});
|
|
@@ -490,7 +419,7 @@ var ManageUserRestrictionApi = /** @class */ (function (_super) {
|
|
|
490
419
|
*/
|
|
491
420
|
ManageUserRestrictionApi.prototype.deleteUserRestrictedFeatureRaw = function (requestParameters, initOverrides) {
|
|
492
421
|
return __awaiter(this, void 0, void 0, function () {
|
|
493
|
-
var queryParameters, headerParameters, _a, _b, token, tokenString, response,
|
|
422
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response, response_6;
|
|
494
423
|
return __generator(this, function (_c) {
|
|
495
424
|
switch (_c.label) {
|
|
496
425
|
case 0:
|
|
@@ -531,9 +460,9 @@ var ManageUserRestrictionApi = /** @class */ (function (_super) {
|
|
|
531
460
|
response = _c.sent();
|
|
532
461
|
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
533
462
|
case 6:
|
|
534
|
-
|
|
535
|
-
console.debug(
|
|
536
|
-
throw
|
|
463
|
+
response_6 = _c.sent();
|
|
464
|
+
console.debug(response_6);
|
|
465
|
+
throw response_6;
|
|
537
466
|
case 7: return [2 /*return*/];
|
|
538
467
|
}
|
|
539
468
|
});
|
|
@@ -559,7 +488,7 @@ var ManageUserRestrictionApi = /** @class */ (function (_super) {
|
|
|
559
488
|
*/
|
|
560
489
|
ManageUserRestrictionApi.prototype.deleteUserRestrictedNotificationTypeRaw = function (requestParameters, initOverrides) {
|
|
561
490
|
return __awaiter(this, void 0, void 0, function () {
|
|
562
|
-
var queryParameters, headerParameters, token, tokenString, response,
|
|
491
|
+
var queryParameters, headerParameters, token, tokenString, response, response_7;
|
|
563
492
|
return __generator(this, function (_a) {
|
|
564
493
|
switch (_a.label) {
|
|
565
494
|
case 0:
|
|
@@ -592,9 +521,9 @@ var ManageUserRestrictionApi = /** @class */ (function (_super) {
|
|
|
592
521
|
response = _a.sent();
|
|
593
522
|
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
594
523
|
case 4:
|
|
595
|
-
|
|
596
|
-
console.debug(
|
|
597
|
-
throw
|
|
524
|
+
response_7 = _a.sent();
|
|
525
|
+
console.debug(response_7);
|
|
526
|
+
throw response_7;
|
|
598
527
|
case 5: return [2 /*return*/];
|
|
599
528
|
}
|
|
600
529
|
});
|
|
@@ -620,7 +549,7 @@ var ManageUserRestrictionApi = /** @class */ (function (_super) {
|
|
|
620
549
|
*/
|
|
621
550
|
ManageUserRestrictionApi.prototype.deleteUserRestrictedProductTypeRaw = function (requestParameters, initOverrides) {
|
|
622
551
|
return __awaiter(this, void 0, void 0, function () {
|
|
623
|
-
var queryParameters, headerParameters, _a, _b, token, tokenString, response,
|
|
552
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response, response_8;
|
|
624
553
|
return __generator(this, function (_c) {
|
|
625
554
|
switch (_c.label) {
|
|
626
555
|
case 0:
|
|
@@ -661,9 +590,9 @@ var ManageUserRestrictionApi = /** @class */ (function (_super) {
|
|
|
661
590
|
response = _c.sent();
|
|
662
591
|
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
663
592
|
case 6:
|
|
664
|
-
|
|
665
|
-
console.debug(
|
|
666
|
-
throw
|
|
593
|
+
response_8 = _c.sent();
|
|
594
|
+
console.debug(response_8);
|
|
595
|
+
throw response_8;
|
|
667
596
|
case 7: return [2 /*return*/];
|
|
668
597
|
}
|
|
669
598
|
});
|
|
@@ -684,75 +613,6 @@ var ManageUserRestrictionApi = /** @class */ (function (_super) {
|
|
|
684
613
|
});
|
|
685
614
|
});
|
|
686
615
|
};
|
|
687
|
-
/**
|
|
688
|
-
* Delete this storage type from restricted user storage types
|
|
689
|
-
*/
|
|
690
|
-
ManageUserRestrictionApi.prototype.deleteUserRestrictedStorageTypeRaw = function (requestParameters, initOverrides) {
|
|
691
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
692
|
-
var queryParameters, headerParameters, _a, _b, token, tokenString, response, response_10;
|
|
693
|
-
return __generator(this, function (_c) {
|
|
694
|
-
switch (_c.label) {
|
|
695
|
-
case 0:
|
|
696
|
-
if (requestParameters['userId'] == null) {
|
|
697
|
-
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling deleteUserRestrictedStorageType().');
|
|
698
|
-
}
|
|
699
|
-
if (requestParameters['storageTypeId'] == null) {
|
|
700
|
-
throw new runtime.RequiredError('storageTypeId', 'Required parameter "storageTypeId" was null or undefined when calling deleteUserRestrictedStorageType().');
|
|
701
|
-
}
|
|
702
|
-
queryParameters = {};
|
|
703
|
-
headerParameters = {};
|
|
704
|
-
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
705
|
-
_a = headerParameters;
|
|
706
|
-
_b = "x-api-key";
|
|
707
|
-
return [4 /*yield*/, this.configuration.apiKey("x-api-key")];
|
|
708
|
-
case 1:
|
|
709
|
-
_a[_b] = _c.sent(); // apiKeyAuth authentication
|
|
710
|
-
_c.label = 2;
|
|
711
|
-
case 2:
|
|
712
|
-
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
713
|
-
token = this.configuration.accessToken;
|
|
714
|
-
return [4 /*yield*/, token("bearerAuth", [])];
|
|
715
|
-
case 3:
|
|
716
|
-
tokenString = _c.sent();
|
|
717
|
-
if (tokenString) {
|
|
718
|
-
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
719
|
-
}
|
|
720
|
-
_c.label = 4;
|
|
721
|
-
case 4:
|
|
722
|
-
_c.trys.push([4, 6, , 7]);
|
|
723
|
-
return [4 /*yield*/, this.request({
|
|
724
|
-
path: "/users/{userId}/restricted-storage-types/{storageTypeId}".replace("{".concat("userId", "}"), encodeURIComponent(String(requestParameters['userId']))).replace("{".concat("storageTypeId", "}"), encodeURIComponent(String(requestParameters['storageTypeId']))),
|
|
725
|
-
method: 'DELETE',
|
|
726
|
-
headers: headerParameters,
|
|
727
|
-
query: queryParameters,
|
|
728
|
-
}, initOverrides)];
|
|
729
|
-
case 5:
|
|
730
|
-
response = _c.sent();
|
|
731
|
-
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
732
|
-
case 6:
|
|
733
|
-
response_10 = _c.sent();
|
|
734
|
-
console.debug(response_10);
|
|
735
|
-
throw response_10;
|
|
736
|
-
case 7: return [2 /*return*/];
|
|
737
|
-
}
|
|
738
|
-
});
|
|
739
|
-
});
|
|
740
|
-
};
|
|
741
|
-
/**
|
|
742
|
-
* Delete this storage type from restricted user storage types
|
|
743
|
-
*/
|
|
744
|
-
ManageUserRestrictionApi.prototype.deleteUserRestrictedStorageType = function (requestParameters, initOverrides) {
|
|
745
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
746
|
-
return __generator(this, function (_a) {
|
|
747
|
-
switch (_a.label) {
|
|
748
|
-
case 0: return [4 /*yield*/, this.deleteUserRestrictedStorageTypeRaw(requestParameters, initOverrides)];
|
|
749
|
-
case 1:
|
|
750
|
-
_a.sent();
|
|
751
|
-
return [2 /*return*/];
|
|
752
|
-
}
|
|
753
|
-
});
|
|
754
|
-
});
|
|
755
|
-
};
|
|
756
616
|
return ManageUserRestrictionApi;
|
|
757
617
|
}(runtime.BaseAPI));
|
|
758
618
|
exports.ManageUserRestrictionApi = ManageUserRestrictionApi;
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { NotificationTypeLink, ProductTypeLink,
|
|
13
|
+
import type { NotificationTypeLink, ProductTypeLink, UserFeature } from '../models/index';
|
|
14
14
|
export interface GetUserRestrictedFeaturesRequest {
|
|
15
15
|
userId: number;
|
|
16
16
|
}
|
|
@@ -20,9 +20,6 @@ export interface GetUserRestrictedNotificationTypesRequest {
|
|
|
20
20
|
export interface GetUserRestrictedProductTypesRequest {
|
|
21
21
|
userId: number;
|
|
22
22
|
}
|
|
23
|
-
export interface GetUserRestrictedStorageTypesRequest {
|
|
24
|
-
userId: number;
|
|
25
|
-
}
|
|
26
23
|
/**
|
|
27
24
|
*
|
|
28
25
|
*/
|
|
@@ -35,14 +32,6 @@ export declare class SearchUserRestrictionApi extends runtime.BaseAPI {
|
|
|
35
32
|
* Get notifications that will not be pushed outside the system (eg. mail)
|
|
36
33
|
*/
|
|
37
34
|
getCurrentUserRestrictedNotificationTypes(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<NotificationTypeLink> | runtime.BlobWithMeta>;
|
|
38
|
-
/**
|
|
39
|
-
* Get user restricted storage product types
|
|
40
|
-
*/
|
|
41
|
-
getCurrentUserRestrictedStorageTypesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<StorageTypeLink> | runtime.BlobWithMeta>>;
|
|
42
|
-
/**
|
|
43
|
-
* Get user restricted storage product types
|
|
44
|
-
*/
|
|
45
|
-
getCurrentUserRestrictedStorageTypes(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<StorageTypeLink> | runtime.BlobWithMeta>;
|
|
46
35
|
/**
|
|
47
36
|
* Get user restricted features
|
|
48
37
|
*/
|
|
@@ -67,12 +56,4 @@ export declare class SearchUserRestrictionApi extends runtime.BaseAPI {
|
|
|
67
56
|
* Get user restricted product types
|
|
68
57
|
*/
|
|
69
58
|
getUserRestrictedProductTypes(requestParameters: GetUserRestrictedProductTypesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ProductTypeLink> | runtime.BlobWithMeta>;
|
|
70
|
-
/**
|
|
71
|
-
* Get user restricted storage product types
|
|
72
|
-
*/
|
|
73
|
-
getUserRestrictedStorageTypesRaw(requestParameters: GetUserRestrictedStorageTypesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<StorageTypeLink> | runtime.BlobWithMeta>>;
|
|
74
|
-
/**
|
|
75
|
-
* Get user restricted storage product types
|
|
76
|
-
*/
|
|
77
|
-
getUserRestrictedStorageTypes(requestParameters: GetUserRestrictedStorageTypesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<StorageTypeLink> | runtime.BlobWithMeta>;
|
|
78
59
|
}
|
|
@@ -151,88 +151,12 @@ var SearchUserRestrictionApi = /** @class */ (function (_super) {
|
|
|
151
151
|
});
|
|
152
152
|
});
|
|
153
153
|
};
|
|
154
|
-
/**
|
|
155
|
-
* Get user restricted storage product types
|
|
156
|
-
*/
|
|
157
|
-
SearchUserRestrictionApi.prototype.getCurrentUserRestrictedStorageTypesRaw = function (initOverrides) {
|
|
158
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
159
|
-
var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType, response_2;
|
|
160
|
-
return __generator(this, function (_c) {
|
|
161
|
-
switch (_c.label) {
|
|
162
|
-
case 0:
|
|
163
|
-
queryParameters = {};
|
|
164
|
-
headerParameters = {};
|
|
165
|
-
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
166
|
-
_a = headerParameters;
|
|
167
|
-
_b = "x-api-key";
|
|
168
|
-
return [4 /*yield*/, this.configuration.apiKey("x-api-key")];
|
|
169
|
-
case 1:
|
|
170
|
-
_a[_b] = _c.sent(); // apiKeyAuth authentication
|
|
171
|
-
_c.label = 2;
|
|
172
|
-
case 2:
|
|
173
|
-
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
174
|
-
token = this.configuration.accessToken;
|
|
175
|
-
return [4 /*yield*/, token("bearerAuth", [])];
|
|
176
|
-
case 3:
|
|
177
|
-
tokenString = _c.sent();
|
|
178
|
-
if (tokenString) {
|
|
179
|
-
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
180
|
-
}
|
|
181
|
-
_c.label = 4;
|
|
182
|
-
case 4:
|
|
183
|
-
_c.trys.push([4, 6, , 7]);
|
|
184
|
-
return [4 /*yield*/, this.request({
|
|
185
|
-
path: "/users/me/restricted-storage-types",
|
|
186
|
-
method: 'GET',
|
|
187
|
-
headers: headerParameters,
|
|
188
|
-
query: queryParameters,
|
|
189
|
-
}, initOverrides)];
|
|
190
|
-
case 5:
|
|
191
|
-
response = _c.sent();
|
|
192
|
-
contentType = response.headers.get("content-type");
|
|
193
|
-
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
194
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.StorageTypeLinkFromJSON); })];
|
|
195
|
-
}
|
|
196
|
-
else if (contentType && contentType.indexOf("text/plain") !== -1) {
|
|
197
|
-
return [2 /*return*/, new runtime.TextApiResponse(response)];
|
|
198
|
-
}
|
|
199
|
-
else {
|
|
200
|
-
// TODO : Better handling of others application types
|
|
201
|
-
return [2 /*return*/, new runtime.BlobWithMetaApiResponse(response)];
|
|
202
|
-
}
|
|
203
|
-
return [3 /*break*/, 7];
|
|
204
|
-
case 6:
|
|
205
|
-
response_2 = _c.sent();
|
|
206
|
-
console.debug(response_2);
|
|
207
|
-
throw response_2;
|
|
208
|
-
case 7: return [2 /*return*/];
|
|
209
|
-
}
|
|
210
|
-
});
|
|
211
|
-
});
|
|
212
|
-
};
|
|
213
|
-
/**
|
|
214
|
-
* Get user restricted storage product types
|
|
215
|
-
*/
|
|
216
|
-
SearchUserRestrictionApi.prototype.getCurrentUserRestrictedStorageTypes = function (initOverrides) {
|
|
217
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
218
|
-
var response;
|
|
219
|
-
return __generator(this, function (_a) {
|
|
220
|
-
switch (_a.label) {
|
|
221
|
-
case 0: return [4 /*yield*/, this.getCurrentUserRestrictedStorageTypesRaw(initOverrides)];
|
|
222
|
-
case 1:
|
|
223
|
-
response = _a.sent();
|
|
224
|
-
return [4 /*yield*/, response.value()];
|
|
225
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
226
|
-
}
|
|
227
|
-
});
|
|
228
|
-
});
|
|
229
|
-
};
|
|
230
154
|
/**
|
|
231
155
|
* Get user restricted features
|
|
232
156
|
*/
|
|
233
157
|
SearchUserRestrictionApi.prototype.getUserRestrictedFeaturesRaw = function (requestParameters, initOverrides) {
|
|
234
158
|
return __awaiter(this, void 0, void 0, function () {
|
|
235
|
-
var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType,
|
|
159
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType, response_2;
|
|
236
160
|
return __generator(this, function (_c) {
|
|
237
161
|
switch (_c.label) {
|
|
238
162
|
case 0:
|
|
@@ -281,9 +205,9 @@ var SearchUserRestrictionApi = /** @class */ (function (_super) {
|
|
|
281
205
|
}
|
|
282
206
|
return [3 /*break*/, 7];
|
|
283
207
|
case 6:
|
|
284
|
-
|
|
285
|
-
console.debug(
|
|
286
|
-
throw
|
|
208
|
+
response_2 = _c.sent();
|
|
209
|
+
console.debug(response_2);
|
|
210
|
+
throw response_2;
|
|
287
211
|
case 7: return [2 /*return*/];
|
|
288
212
|
}
|
|
289
213
|
});
|
|
@@ -311,7 +235,7 @@ var SearchUserRestrictionApi = /** @class */ (function (_super) {
|
|
|
311
235
|
*/
|
|
312
236
|
SearchUserRestrictionApi.prototype.getUserRestrictedNotificationTypesRaw = function (requestParameters, initOverrides) {
|
|
313
237
|
return __awaiter(this, void 0, void 0, function () {
|
|
314
|
-
var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType,
|
|
238
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType, response_3;
|
|
315
239
|
return __generator(this, function (_c) {
|
|
316
240
|
switch (_c.label) {
|
|
317
241
|
case 0:
|
|
@@ -360,9 +284,9 @@ var SearchUserRestrictionApi = /** @class */ (function (_super) {
|
|
|
360
284
|
}
|
|
361
285
|
return [3 /*break*/, 7];
|
|
362
286
|
case 6:
|
|
363
|
-
|
|
364
|
-
console.debug(
|
|
365
|
-
throw
|
|
287
|
+
response_3 = _c.sent();
|
|
288
|
+
console.debug(response_3);
|
|
289
|
+
throw response_3;
|
|
366
290
|
case 7: return [2 /*return*/];
|
|
367
291
|
}
|
|
368
292
|
});
|
|
@@ -390,7 +314,7 @@ var SearchUserRestrictionApi = /** @class */ (function (_super) {
|
|
|
390
314
|
*/
|
|
391
315
|
SearchUserRestrictionApi.prototype.getUserRestrictedProductTypesRaw = function (requestParameters, initOverrides) {
|
|
392
316
|
return __awaiter(this, void 0, void 0, function () {
|
|
393
|
-
var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType,
|
|
317
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType, response_4;
|
|
394
318
|
return __generator(this, function (_c) {
|
|
395
319
|
switch (_c.label) {
|
|
396
320
|
case 0:
|
|
@@ -439,9 +363,9 @@ var SearchUserRestrictionApi = /** @class */ (function (_super) {
|
|
|
439
363
|
}
|
|
440
364
|
return [3 /*break*/, 7];
|
|
441
365
|
case 6:
|
|
442
|
-
|
|
443
|
-
console.debug(
|
|
444
|
-
throw
|
|
366
|
+
response_4 = _c.sent();
|
|
367
|
+
console.debug(response_4);
|
|
368
|
+
throw response_4;
|
|
445
369
|
case 7: return [2 /*return*/];
|
|
446
370
|
}
|
|
447
371
|
});
|
|
@@ -464,85 +388,6 @@ var SearchUserRestrictionApi = /** @class */ (function (_super) {
|
|
|
464
388
|
});
|
|
465
389
|
});
|
|
466
390
|
};
|
|
467
|
-
/**
|
|
468
|
-
* Get user restricted storage product types
|
|
469
|
-
*/
|
|
470
|
-
SearchUserRestrictionApi.prototype.getUserRestrictedStorageTypesRaw = function (requestParameters, initOverrides) {
|
|
471
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
472
|
-
var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType, response_6;
|
|
473
|
-
return __generator(this, function (_c) {
|
|
474
|
-
switch (_c.label) {
|
|
475
|
-
case 0:
|
|
476
|
-
if (requestParameters['userId'] == null) {
|
|
477
|
-
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling getUserRestrictedStorageTypes().');
|
|
478
|
-
}
|
|
479
|
-
queryParameters = {};
|
|
480
|
-
headerParameters = {};
|
|
481
|
-
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
482
|
-
_a = headerParameters;
|
|
483
|
-
_b = "x-api-key";
|
|
484
|
-
return [4 /*yield*/, this.configuration.apiKey("x-api-key")];
|
|
485
|
-
case 1:
|
|
486
|
-
_a[_b] = _c.sent(); // apiKeyAuth authentication
|
|
487
|
-
_c.label = 2;
|
|
488
|
-
case 2:
|
|
489
|
-
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
490
|
-
token = this.configuration.accessToken;
|
|
491
|
-
return [4 /*yield*/, token("bearerAuth", [])];
|
|
492
|
-
case 3:
|
|
493
|
-
tokenString = _c.sent();
|
|
494
|
-
if (tokenString) {
|
|
495
|
-
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
496
|
-
}
|
|
497
|
-
_c.label = 4;
|
|
498
|
-
case 4:
|
|
499
|
-
_c.trys.push([4, 6, , 7]);
|
|
500
|
-
return [4 /*yield*/, this.request({
|
|
501
|
-
path: "/users/{userId}/restricted-storage-types".replace("{".concat("userId", "}"), encodeURIComponent(String(requestParameters['userId']))),
|
|
502
|
-
method: 'GET',
|
|
503
|
-
headers: headerParameters,
|
|
504
|
-
query: queryParameters,
|
|
505
|
-
}, initOverrides)];
|
|
506
|
-
case 5:
|
|
507
|
-
response = _c.sent();
|
|
508
|
-
contentType = response.headers.get("content-type");
|
|
509
|
-
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
510
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.StorageTypeLinkFromJSON); })];
|
|
511
|
-
}
|
|
512
|
-
else if (contentType && contentType.indexOf("text/plain") !== -1) {
|
|
513
|
-
return [2 /*return*/, new runtime.TextApiResponse(response)];
|
|
514
|
-
}
|
|
515
|
-
else {
|
|
516
|
-
// TODO : Better handling of others application types
|
|
517
|
-
return [2 /*return*/, new runtime.BlobWithMetaApiResponse(response)];
|
|
518
|
-
}
|
|
519
|
-
return [3 /*break*/, 7];
|
|
520
|
-
case 6:
|
|
521
|
-
response_6 = _c.sent();
|
|
522
|
-
console.debug(response_6);
|
|
523
|
-
throw response_6;
|
|
524
|
-
case 7: return [2 /*return*/];
|
|
525
|
-
}
|
|
526
|
-
});
|
|
527
|
-
});
|
|
528
|
-
};
|
|
529
|
-
/**
|
|
530
|
-
* Get user restricted storage product types
|
|
531
|
-
*/
|
|
532
|
-
SearchUserRestrictionApi.prototype.getUserRestrictedStorageTypes = function (requestParameters, initOverrides) {
|
|
533
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
534
|
-
var response;
|
|
535
|
-
return __generator(this, function (_a) {
|
|
536
|
-
switch (_a.label) {
|
|
537
|
-
case 0: return [4 /*yield*/, this.getUserRestrictedStorageTypesRaw(requestParameters, initOverrides)];
|
|
538
|
-
case 1:
|
|
539
|
-
response = _a.sent();
|
|
540
|
-
return [4 /*yield*/, response.value()];
|
|
541
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
542
|
-
}
|
|
543
|
-
});
|
|
544
|
-
});
|
|
545
|
-
};
|
|
546
391
|
return SearchUserRestrictionApi;
|
|
547
392
|
}(runtime.BaseAPI));
|
|
548
393
|
exports.SearchUserRestrictionApi = SearchUserRestrictionApi;
|
package/user/src/apis/index.d.ts
CHANGED
|
@@ -14,5 +14,4 @@ export * from './SearchUserFeatureApi';
|
|
|
14
14
|
export * from './SearchUserRestrictionApi';
|
|
15
15
|
export * from './SearchUserRuleApi';
|
|
16
16
|
export * from './SearchUserSocialNetworksApi';
|
|
17
|
-
export * from './SearchUserStorageTypeApi';
|
|
18
17
|
export * from './SearchUserTransportApi';
|
package/user/src/apis/index.js
CHANGED
|
@@ -32,5 +32,4 @@ __exportStar(require("./SearchUserFeatureApi"), exports);
|
|
|
32
32
|
__exportStar(require("./SearchUserRestrictionApi"), exports);
|
|
33
33
|
__exportStar(require("./SearchUserRuleApi"), exports);
|
|
34
34
|
__exportStar(require("./SearchUserSocialNetworksApi"), exports);
|
|
35
|
-
__exportStar(require("./SearchUserStorageTypeApi"), exports);
|
|
36
35
|
__exportStar(require("./SearchUserTransportApi"), exports);
|
|
@@ -15,7 +15,6 @@ export * from './ProductTypeLink';
|
|
|
15
15
|
export * from './RestError';
|
|
16
16
|
export * from './ScaEnrollmentStatus';
|
|
17
17
|
export * from './SomeonePasswordUpdateParameters';
|
|
18
|
-
export * from './StorageTypeLink';
|
|
19
18
|
export * from './ThreadLink';
|
|
20
19
|
export * from './Transport';
|
|
21
20
|
export * from './User';
|
|
@@ -38,7 +37,6 @@ export * from './UserMangopayTarget';
|
|
|
38
37
|
export * from './UserRestrictedFeatureCreationParameter';
|
|
39
38
|
export * from './UserRestrictedNotificationTypeCreationParameter';
|
|
40
39
|
export * from './UserRestrictedProductTypeCreationParameter';
|
|
41
|
-
export * from './UserRestrictedStorageTypeCreationParameter';
|
|
42
40
|
export * from './UserRole';
|
|
43
41
|
export * from './UserRule';
|
|
44
42
|
export * from './UserRuleActionEnum';
|
|
@@ -47,7 +45,6 @@ export * from './UserRuleComparatorEnum';
|
|
|
47
45
|
export * from './UserRuleCreationParameters';
|
|
48
46
|
export * from './UserSocialNetwork';
|
|
49
47
|
export * from './UserStatisticLink';
|
|
50
|
-
export * from './UserStorageType';
|
|
51
48
|
export * from './UserThreads';
|
|
52
49
|
export * from './UserUpdateParameters';
|
|
53
50
|
export * from './UserWalletLink';
|
package/user/src/models/index.js
CHANGED
|
@@ -33,7 +33,6 @@ __exportStar(require("./ProductTypeLink"), exports);
|
|
|
33
33
|
__exportStar(require("./RestError"), exports);
|
|
34
34
|
__exportStar(require("./ScaEnrollmentStatus"), exports);
|
|
35
35
|
__exportStar(require("./SomeonePasswordUpdateParameters"), exports);
|
|
36
|
-
__exportStar(require("./StorageTypeLink"), exports);
|
|
37
36
|
__exportStar(require("./ThreadLink"), exports);
|
|
38
37
|
__exportStar(require("./Transport"), exports);
|
|
39
38
|
__exportStar(require("./User"), exports);
|
|
@@ -56,7 +55,6 @@ __exportStar(require("./UserMangopayTarget"), exports);
|
|
|
56
55
|
__exportStar(require("./UserRestrictedFeatureCreationParameter"), exports);
|
|
57
56
|
__exportStar(require("./UserRestrictedNotificationTypeCreationParameter"), exports);
|
|
58
57
|
__exportStar(require("./UserRestrictedProductTypeCreationParameter"), exports);
|
|
59
|
-
__exportStar(require("./UserRestrictedStorageTypeCreationParameter"), exports);
|
|
60
58
|
__exportStar(require("./UserRole"), exports);
|
|
61
59
|
__exportStar(require("./UserRule"), exports);
|
|
62
60
|
__exportStar(require("./UserRuleActionEnum"), exports);
|
|
@@ -65,7 +63,6 @@ __exportStar(require("./UserRuleComparatorEnum"), exports);
|
|
|
65
63
|
__exportStar(require("./UserRuleCreationParameters"), exports);
|
|
66
64
|
__exportStar(require("./UserSocialNetwork"), exports);
|
|
67
65
|
__exportStar(require("./UserStatisticLink"), exports);
|
|
68
|
-
__exportStar(require("./UserStorageType"), exports);
|
|
69
66
|
__exportStar(require("./UserThreads"), exports);
|
|
70
67
|
__exportStar(require("./UserUpdateParameters"), exports);
|
|
71
68
|
__exportStar(require("./UserWalletLink"), exports);
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* lcdp-monolith-service
|
|
3
|
-
* This is the REST API of LCDP products
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
* Contact: contact@lecomptoirdespharmacies.fr
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import * as runtime from '../runtime';
|
|
13
|
-
import type { UserStorageType } from '../models/index';
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
*/
|
|
17
|
-
export declare class SearchUserStorageTypeApi extends runtime.BaseAPI {
|
|
18
|
-
/**
|
|
19
|
-
* Get storage types relatives to an user
|
|
20
|
-
*/
|
|
21
|
-
getUserStorageTypesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<UserStorageType> | runtime.BlobWithMeta>>;
|
|
22
|
-
/**
|
|
23
|
-
* Get storage types relatives to an user
|
|
24
|
-
*/
|
|
25
|
-
getUserStorageTypes(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<UserStorageType> | runtime.BlobWithMeta>;
|
|
26
|
-
}
|
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* lcdp-monolith-service
|
|
6
|
-
* This is the REST API of LCDP products
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
* Contact: contact@lecomptoirdespharmacies.fr
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
var __extends = (this && this.__extends) || (function () {
|
|
16
|
-
var extendStatics = function (d, b) {
|
|
17
|
-
extendStatics = Object.setPrototypeOf ||
|
|
18
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
-
return extendStatics(d, b);
|
|
21
|
-
};
|
|
22
|
-
return function (d, b) {
|
|
23
|
-
if (typeof b !== "function" && b !== null)
|
|
24
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
-
extendStatics(d, b);
|
|
26
|
-
function __() { this.constructor = d; }
|
|
27
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
-
};
|
|
29
|
-
})();
|
|
30
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
31
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
32
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
33
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
34
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
35
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
36
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
37
|
-
});
|
|
38
|
-
};
|
|
39
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
40
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
41
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
42
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
43
|
-
function step(op) {
|
|
44
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
45
|
-
while (_) try {
|
|
46
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
47
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
48
|
-
switch (op[0]) {
|
|
49
|
-
case 0: case 1: t = op; break;
|
|
50
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
51
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
52
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
53
|
-
default:
|
|
54
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
55
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
56
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
57
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
58
|
-
if (t[2]) _.ops.pop();
|
|
59
|
-
_.trys.pop(); continue;
|
|
60
|
-
}
|
|
61
|
-
op = body.call(thisArg, _);
|
|
62
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
63
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
-
exports.SearchUserStorageTypeApi = void 0;
|
|
68
|
-
var runtime = require("../runtime");
|
|
69
|
-
var index_1 = require("../models/index");
|
|
70
|
-
/**
|
|
71
|
-
*
|
|
72
|
-
*/
|
|
73
|
-
var SearchUserStorageTypeApi = /** @class */ (function (_super) {
|
|
74
|
-
__extends(SearchUserStorageTypeApi, _super);
|
|
75
|
-
function SearchUserStorageTypeApi() {
|
|
76
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Get storage types relatives to an user
|
|
80
|
-
*/
|
|
81
|
-
SearchUserStorageTypeApi.prototype.getUserStorageTypesRaw = function (initOverrides) {
|
|
82
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
-
var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType, response_1;
|
|
84
|
-
return __generator(this, function (_c) {
|
|
85
|
-
switch (_c.label) {
|
|
86
|
-
case 0:
|
|
87
|
-
queryParameters = {};
|
|
88
|
-
headerParameters = {};
|
|
89
|
-
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
90
|
-
_a = headerParameters;
|
|
91
|
-
_b = "x-api-key";
|
|
92
|
-
return [4 /*yield*/, this.configuration.apiKey("x-api-key")];
|
|
93
|
-
case 1:
|
|
94
|
-
_a[_b] = _c.sent(); // apiKeyAuth authentication
|
|
95
|
-
_c.label = 2;
|
|
96
|
-
case 2:
|
|
97
|
-
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
98
|
-
token = this.configuration.accessToken;
|
|
99
|
-
return [4 /*yield*/, token("bearerAuth", [])];
|
|
100
|
-
case 3:
|
|
101
|
-
tokenString = _c.sent();
|
|
102
|
-
if (tokenString) {
|
|
103
|
-
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
104
|
-
}
|
|
105
|
-
_c.label = 4;
|
|
106
|
-
case 4:
|
|
107
|
-
_c.trys.push([4, 6, , 7]);
|
|
108
|
-
return [4 /*yield*/, this.request({
|
|
109
|
-
path: "/users/storage-types",
|
|
110
|
-
method: 'GET',
|
|
111
|
-
headers: headerParameters,
|
|
112
|
-
query: queryParameters,
|
|
113
|
-
}, initOverrides)];
|
|
114
|
-
case 5:
|
|
115
|
-
response = _c.sent();
|
|
116
|
-
contentType = response.headers.get("content-type");
|
|
117
|
-
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
118
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.UserStorageTypeFromJSON); })];
|
|
119
|
-
}
|
|
120
|
-
else if (contentType && contentType.indexOf("text/plain") !== -1) {
|
|
121
|
-
return [2 /*return*/, new runtime.TextApiResponse(response)];
|
|
122
|
-
}
|
|
123
|
-
else {
|
|
124
|
-
// TODO : Better handling of others application types
|
|
125
|
-
return [2 /*return*/, new runtime.BlobWithMetaApiResponse(response)];
|
|
126
|
-
}
|
|
127
|
-
return [3 /*break*/, 7];
|
|
128
|
-
case 6:
|
|
129
|
-
response_1 = _c.sent();
|
|
130
|
-
console.debug(response_1);
|
|
131
|
-
throw response_1;
|
|
132
|
-
case 7: return [2 /*return*/];
|
|
133
|
-
}
|
|
134
|
-
});
|
|
135
|
-
});
|
|
136
|
-
};
|
|
137
|
-
/**
|
|
138
|
-
* Get storage types relatives to an user
|
|
139
|
-
*/
|
|
140
|
-
SearchUserStorageTypeApi.prototype.getUserStorageTypes = function (initOverrides) {
|
|
141
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
142
|
-
var response;
|
|
143
|
-
return __generator(this, function (_a) {
|
|
144
|
-
switch (_a.label) {
|
|
145
|
-
case 0: return [4 /*yield*/, this.getUserStorageTypesRaw(initOverrides)];
|
|
146
|
-
case 1:
|
|
147
|
-
response = _a.sent();
|
|
148
|
-
return [4 /*yield*/, response.value()];
|
|
149
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
150
|
-
}
|
|
151
|
-
});
|
|
152
|
-
});
|
|
153
|
-
};
|
|
154
|
-
return SearchUserStorageTypeApi;
|
|
155
|
-
}(runtime.BaseAPI));
|
|
156
|
-
exports.SearchUserStorageTypeApi = SearchUserStorageTypeApi;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* lcdp-monolith-service
|
|
3
|
-
* This is the REST API of LCDP products
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
* Contact: contact@lecomptoirdespharmacies.fr
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface StorageTypeLink
|
|
16
|
-
*/
|
|
17
|
-
export interface StorageTypeLink {
|
|
18
|
-
/**
|
|
19
|
-
* Any URL that is using http or https protocol
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof StorageTypeLink
|
|
22
|
-
*/
|
|
23
|
-
href: string;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof StorageTypeLink
|
|
28
|
-
*/
|
|
29
|
-
id?: string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof StorageTypeLink
|
|
34
|
-
*/
|
|
35
|
-
name?: string;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Check if a given object implements the StorageTypeLink interface.
|
|
39
|
-
*/
|
|
40
|
-
export declare function instanceOfStorageTypeLink(value: object): value is StorageTypeLink;
|
|
41
|
-
export declare function StorageTypeLinkFromJSON(json: any): StorageTypeLink;
|
|
42
|
-
export declare function StorageTypeLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): StorageTypeLink;
|
|
43
|
-
export declare function StorageTypeLinkToJSON(value?: StorageTypeLink | null): any;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* lcdp-monolith-service
|
|
6
|
-
* This is the REST API of LCDP products
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
* Contact: contact@lecomptoirdespharmacies.fr
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.StorageTypeLinkToJSON = exports.StorageTypeLinkFromJSONTyped = exports.StorageTypeLinkFromJSON = exports.instanceOfStorageTypeLink = void 0;
|
|
17
|
-
/**
|
|
18
|
-
* Check if a given object implements the StorageTypeLink interface.
|
|
19
|
-
*/
|
|
20
|
-
function instanceOfStorageTypeLink(value) {
|
|
21
|
-
if (!('href' in value) || value['href'] === undefined)
|
|
22
|
-
return false;
|
|
23
|
-
return true;
|
|
24
|
-
}
|
|
25
|
-
exports.instanceOfStorageTypeLink = instanceOfStorageTypeLink;
|
|
26
|
-
function StorageTypeLinkFromJSON(json) {
|
|
27
|
-
return StorageTypeLinkFromJSONTyped(json, false);
|
|
28
|
-
}
|
|
29
|
-
exports.StorageTypeLinkFromJSON = StorageTypeLinkFromJSON;
|
|
30
|
-
function StorageTypeLinkFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
-
if (json == null) {
|
|
32
|
-
return json;
|
|
33
|
-
}
|
|
34
|
-
return {
|
|
35
|
-
'href': json['href'],
|
|
36
|
-
'id': json['id'],
|
|
37
|
-
'name': json['name'],
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
exports.StorageTypeLinkFromJSONTyped = StorageTypeLinkFromJSONTyped;
|
|
41
|
-
function StorageTypeLinkToJSON(value) {
|
|
42
|
-
if (value == null) {
|
|
43
|
-
return value;
|
|
44
|
-
}
|
|
45
|
-
return {
|
|
46
|
-
'href': value['href'],
|
|
47
|
-
'id': value['id'],
|
|
48
|
-
'name': value['name'],
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
exports.StorageTypeLinkToJSON = StorageTypeLinkToJSON;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* lcdp-monolith-service
|
|
3
|
-
* This is the REST API of LCDP products
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
* Contact: contact@lecomptoirdespharmacies.fr
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface UserRestrictedStorageTypeCreationParameter
|
|
16
|
-
*/
|
|
17
|
-
export interface UserRestrictedStorageTypeCreationParameter {
|
|
18
|
-
/**
|
|
19
|
-
* Storage type id
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof UserRestrictedStorageTypeCreationParameter
|
|
22
|
-
*/
|
|
23
|
-
storageTypeId?: string;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Check if a given object implements the UserRestrictedStorageTypeCreationParameter interface.
|
|
27
|
-
*/
|
|
28
|
-
export declare function instanceOfUserRestrictedStorageTypeCreationParameter(value: object): value is UserRestrictedStorageTypeCreationParameter;
|
|
29
|
-
export declare function UserRestrictedStorageTypeCreationParameterFromJSON(json: any): UserRestrictedStorageTypeCreationParameter;
|
|
30
|
-
export declare function UserRestrictedStorageTypeCreationParameterFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserRestrictedStorageTypeCreationParameter;
|
|
31
|
-
export declare function UserRestrictedStorageTypeCreationParameterToJSON(value?: UserRestrictedStorageTypeCreationParameter | null): any;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* lcdp-monolith-service
|
|
6
|
-
* This is the REST API of LCDP products
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
* Contact: contact@lecomptoirdespharmacies.fr
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.UserRestrictedStorageTypeCreationParameterToJSON = exports.UserRestrictedStorageTypeCreationParameterFromJSONTyped = exports.UserRestrictedStorageTypeCreationParameterFromJSON = exports.instanceOfUserRestrictedStorageTypeCreationParameter = void 0;
|
|
17
|
-
/**
|
|
18
|
-
* Check if a given object implements the UserRestrictedStorageTypeCreationParameter interface.
|
|
19
|
-
*/
|
|
20
|
-
function instanceOfUserRestrictedStorageTypeCreationParameter(value) {
|
|
21
|
-
return true;
|
|
22
|
-
}
|
|
23
|
-
exports.instanceOfUserRestrictedStorageTypeCreationParameter = instanceOfUserRestrictedStorageTypeCreationParameter;
|
|
24
|
-
function UserRestrictedStorageTypeCreationParameterFromJSON(json) {
|
|
25
|
-
return UserRestrictedStorageTypeCreationParameterFromJSONTyped(json, false);
|
|
26
|
-
}
|
|
27
|
-
exports.UserRestrictedStorageTypeCreationParameterFromJSON = UserRestrictedStorageTypeCreationParameterFromJSON;
|
|
28
|
-
function UserRestrictedStorageTypeCreationParameterFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
-
if (json == null) {
|
|
30
|
-
return json;
|
|
31
|
-
}
|
|
32
|
-
return {
|
|
33
|
-
'storageTypeId': json['storageTypeId'],
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
exports.UserRestrictedStorageTypeCreationParameterFromJSONTyped = UserRestrictedStorageTypeCreationParameterFromJSONTyped;
|
|
37
|
-
function UserRestrictedStorageTypeCreationParameterToJSON(value) {
|
|
38
|
-
if (value == null) {
|
|
39
|
-
return value;
|
|
40
|
-
}
|
|
41
|
-
return {
|
|
42
|
-
'storageTypeId': value['storageTypeId'],
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
exports.UserRestrictedStorageTypeCreationParameterToJSON = UserRestrictedStorageTypeCreationParameterToJSON;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* lcdp-monolith-service
|
|
3
|
-
* This is the REST API of LCDP products
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
* Contact: contact@lecomptoirdespharmacies.fr
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface UserStorageType
|
|
16
|
-
*/
|
|
17
|
-
export interface UserStorageType {
|
|
18
|
-
/**
|
|
19
|
-
* Id of the storage type (machine name)
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof UserStorageType
|
|
22
|
-
*/
|
|
23
|
-
id?: string;
|
|
24
|
-
/**
|
|
25
|
-
* Readable name for display
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof UserStorageType
|
|
28
|
-
*/
|
|
29
|
-
name?: string;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Check if a given object implements the UserStorageType interface.
|
|
33
|
-
*/
|
|
34
|
-
export declare function instanceOfUserStorageType(value: object): value is UserStorageType;
|
|
35
|
-
export declare function UserStorageTypeFromJSON(json: any): UserStorageType;
|
|
36
|
-
export declare function UserStorageTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserStorageType;
|
|
37
|
-
export declare function UserStorageTypeToJSON(value?: UserStorageType | null): any;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* lcdp-monolith-service
|
|
6
|
-
* This is the REST API of LCDP products
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
* Contact: contact@lecomptoirdespharmacies.fr
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.UserStorageTypeToJSON = exports.UserStorageTypeFromJSONTyped = exports.UserStorageTypeFromJSON = exports.instanceOfUserStorageType = void 0;
|
|
17
|
-
/**
|
|
18
|
-
* Check if a given object implements the UserStorageType interface.
|
|
19
|
-
*/
|
|
20
|
-
function instanceOfUserStorageType(value) {
|
|
21
|
-
return true;
|
|
22
|
-
}
|
|
23
|
-
exports.instanceOfUserStorageType = instanceOfUserStorageType;
|
|
24
|
-
function UserStorageTypeFromJSON(json) {
|
|
25
|
-
return UserStorageTypeFromJSONTyped(json, false);
|
|
26
|
-
}
|
|
27
|
-
exports.UserStorageTypeFromJSON = UserStorageTypeFromJSON;
|
|
28
|
-
function UserStorageTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
-
if (json == null) {
|
|
30
|
-
return json;
|
|
31
|
-
}
|
|
32
|
-
return {
|
|
33
|
-
'id': json['id'],
|
|
34
|
-
'name': json['name'],
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
exports.UserStorageTypeFromJSONTyped = UserStorageTypeFromJSONTyped;
|
|
38
|
-
function UserStorageTypeToJSON(value) {
|
|
39
|
-
if (value == null) {
|
|
40
|
-
return value;
|
|
41
|
-
}
|
|
42
|
-
return {
|
|
43
|
-
'id': value['id'],
|
|
44
|
-
'name': value['name'],
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
exports.UserStorageTypeToJSON = UserStorageTypeToJSON;
|