@lcdp/api-react-rest-client 2.13.6-develop.16600079644 → 2.13.7-LDS-4699-etape-1-no-more-archive-of-frid.16619245926

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lcdp/api-react-rest-client",
3
- "version": "2.13.6-develop.16600079644",
3
+ "version": "2.13.7-LDS-4699-etape-1-no-more-archive-of-frid.16619245926",
4
4
  "scripts": {
5
5
  "build": "tsc"
6
6
  },
@@ -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 } from '../models/index';
13
+ import type { NotificationTypeId, UserRestrictedFeatureCreationParameter, UserRestrictedNotificationTypeCreationParameter, UserRestrictedProductTypeCreationParameter, UserRestrictedStorageTypeCreationParameter } from '../models/index';
14
14
  export interface CreateCurrentUserRestrictedNotificationTypeRequest {
15
15
  userRestrictedNotificationTypeCreationParameter: UserRestrictedNotificationTypeCreationParameter;
16
16
  }
@@ -26,6 +26,10 @@ export interface CreateUserRestrictedProductTypeRequest {
26
26
  userId: number;
27
27
  userRestrictedProductTypeCreationParameter: UserRestrictedProductTypeCreationParameter;
28
28
  }
29
+ export interface CreateUserRestrictedStorageTypeRequest {
30
+ userId: number;
31
+ userRestrictedStorageTypeCreationParameter: UserRestrictedStorageTypeCreationParameter;
32
+ }
29
33
  export interface DeleteCurrentUserRestrictedNotificationTypeRequest {
30
34
  notificationTypeId: NotificationTypeId;
31
35
  }
@@ -41,6 +45,10 @@ export interface DeleteUserRestrictedProductTypeRequest {
41
45
  userId: number;
42
46
  productTypeId: string;
43
47
  }
48
+ export interface DeleteUserRestrictedStorageTypeRequest {
49
+ userId: number;
50
+ storageTypeId: string;
51
+ }
44
52
  /**
45
53
  *
46
54
  */
@@ -77,6 +85,14 @@ export declare class ManageUserRestrictionApi extends runtime.BaseAPI {
77
85
  * Add this product type in restricted user product types
78
86
  */
79
87
  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>;
80
96
  /**
81
97
  * Delete this notification type from restricted user notification types
82
98
  */
@@ -109,4 +125,12 @@ export declare class ManageUserRestrictionApi extends runtime.BaseAPI {
109
125
  * Delete this product type from restricted user product types
110
126
  */
111
127
  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>;
112
136
  }
@@ -356,12 +356,83 @@ 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
+ };
359
430
  /**
360
431
  * Delete this notification type from restricted user notification types
361
432
  */
362
433
  ManageUserRestrictionApi.prototype.deleteCurrentUserRestrictedNotificationTypeRaw = function (requestParameters, initOverrides) {
363
434
  return __awaiter(this, void 0, void 0, function () {
364
- var queryParameters, headerParameters, token, tokenString, response, response_5;
435
+ var queryParameters, headerParameters, token, tokenString, response, response_6;
365
436
  return __generator(this, function (_a) {
366
437
  switch (_a.label) {
367
438
  case 0:
@@ -391,9 +462,9 @@ var ManageUserRestrictionApi = /** @class */ (function (_super) {
391
462
  response = _a.sent();
392
463
  return [2 /*return*/, new runtime.VoidApiResponse(response)];
393
464
  case 4:
394
- response_5 = _a.sent();
395
- console.debug(response_5);
396
- throw response_5;
465
+ response_6 = _a.sent();
466
+ console.debug(response_6);
467
+ throw response_6;
397
468
  case 5: return [2 /*return*/];
398
469
  }
399
470
  });
@@ -419,7 +490,7 @@ var ManageUserRestrictionApi = /** @class */ (function (_super) {
419
490
  */
420
491
  ManageUserRestrictionApi.prototype.deleteUserRestrictedFeatureRaw = function (requestParameters, initOverrides) {
421
492
  return __awaiter(this, void 0, void 0, function () {
422
- var queryParameters, headerParameters, _a, _b, token, tokenString, response, response_6;
493
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response, response_7;
423
494
  return __generator(this, function (_c) {
424
495
  switch (_c.label) {
425
496
  case 0:
@@ -460,9 +531,9 @@ var ManageUserRestrictionApi = /** @class */ (function (_super) {
460
531
  response = _c.sent();
461
532
  return [2 /*return*/, new runtime.VoidApiResponse(response)];
462
533
  case 6:
463
- response_6 = _c.sent();
464
- console.debug(response_6);
465
- throw response_6;
534
+ response_7 = _c.sent();
535
+ console.debug(response_7);
536
+ throw response_7;
466
537
  case 7: return [2 /*return*/];
467
538
  }
468
539
  });
@@ -488,7 +559,7 @@ var ManageUserRestrictionApi = /** @class */ (function (_super) {
488
559
  */
489
560
  ManageUserRestrictionApi.prototype.deleteUserRestrictedNotificationTypeRaw = function (requestParameters, initOverrides) {
490
561
  return __awaiter(this, void 0, void 0, function () {
491
- var queryParameters, headerParameters, token, tokenString, response, response_7;
562
+ var queryParameters, headerParameters, token, tokenString, response, response_8;
492
563
  return __generator(this, function (_a) {
493
564
  switch (_a.label) {
494
565
  case 0:
@@ -521,9 +592,9 @@ var ManageUserRestrictionApi = /** @class */ (function (_super) {
521
592
  response = _a.sent();
522
593
  return [2 /*return*/, new runtime.VoidApiResponse(response)];
523
594
  case 4:
524
- response_7 = _a.sent();
525
- console.debug(response_7);
526
- throw response_7;
595
+ response_8 = _a.sent();
596
+ console.debug(response_8);
597
+ throw response_8;
527
598
  case 5: return [2 /*return*/];
528
599
  }
529
600
  });
@@ -549,7 +620,7 @@ var ManageUserRestrictionApi = /** @class */ (function (_super) {
549
620
  */
550
621
  ManageUserRestrictionApi.prototype.deleteUserRestrictedProductTypeRaw = function (requestParameters, initOverrides) {
551
622
  return __awaiter(this, void 0, void 0, function () {
552
- var queryParameters, headerParameters, _a, _b, token, tokenString, response, response_8;
623
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response, response_9;
553
624
  return __generator(this, function (_c) {
554
625
  switch (_c.label) {
555
626
  case 0:
@@ -590,9 +661,9 @@ var ManageUserRestrictionApi = /** @class */ (function (_super) {
590
661
  response = _c.sent();
591
662
  return [2 /*return*/, new runtime.VoidApiResponse(response)];
592
663
  case 6:
593
- response_8 = _c.sent();
594
- console.debug(response_8);
595
- throw response_8;
664
+ response_9 = _c.sent();
665
+ console.debug(response_9);
666
+ throw response_9;
596
667
  case 7: return [2 /*return*/];
597
668
  }
598
669
  });
@@ -613,6 +684,75 @@ var ManageUserRestrictionApi = /** @class */ (function (_super) {
613
684
  });
614
685
  });
615
686
  };
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
+ };
616
756
  return ManageUserRestrictionApi;
617
757
  }(runtime.BaseAPI));
618
758
  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, UserFeature } from '../models/index';
13
+ import type { NotificationTypeLink, ProductTypeLink, StorageTypeLink, UserFeature } from '../models/index';
14
14
  export interface GetUserRestrictedFeaturesRequest {
15
15
  userId: number;
16
16
  }
@@ -20,6 +20,9 @@ export interface GetUserRestrictedNotificationTypesRequest {
20
20
  export interface GetUserRestrictedProductTypesRequest {
21
21
  userId: number;
22
22
  }
23
+ export interface GetUserRestrictedStorageTypesRequest {
24
+ userId: number;
25
+ }
23
26
  /**
24
27
  *
25
28
  */
@@ -32,6 +35,14 @@ export declare class SearchUserRestrictionApi extends runtime.BaseAPI {
32
35
  * Get notifications that will not be pushed outside the system (eg. mail)
33
36
  */
34
37
  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>;
35
46
  /**
36
47
  * Get user restricted features
37
48
  */
@@ -56,4 +67,12 @@ export declare class SearchUserRestrictionApi extends runtime.BaseAPI {
56
67
  * Get user restricted product types
57
68
  */
58
69
  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>;
59
78
  }
@@ -151,12 +151,88 @@ 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
+ };
154
230
  /**
155
231
  * Get user restricted features
156
232
  */
157
233
  SearchUserRestrictionApi.prototype.getUserRestrictedFeaturesRaw = function (requestParameters, initOverrides) {
158
234
  return __awaiter(this, void 0, void 0, function () {
159
- var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType, response_2;
235
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType, response_3;
160
236
  return __generator(this, function (_c) {
161
237
  switch (_c.label) {
162
238
  case 0:
@@ -205,9 +281,9 @@ var SearchUserRestrictionApi = /** @class */ (function (_super) {
205
281
  }
206
282
  return [3 /*break*/, 7];
207
283
  case 6:
208
- response_2 = _c.sent();
209
- console.debug(response_2);
210
- throw response_2;
284
+ response_3 = _c.sent();
285
+ console.debug(response_3);
286
+ throw response_3;
211
287
  case 7: return [2 /*return*/];
212
288
  }
213
289
  });
@@ -235,7 +311,7 @@ var SearchUserRestrictionApi = /** @class */ (function (_super) {
235
311
  */
236
312
  SearchUserRestrictionApi.prototype.getUserRestrictedNotificationTypesRaw = function (requestParameters, initOverrides) {
237
313
  return __awaiter(this, void 0, void 0, function () {
238
- var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType, response_3;
314
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType, response_4;
239
315
  return __generator(this, function (_c) {
240
316
  switch (_c.label) {
241
317
  case 0:
@@ -284,9 +360,9 @@ var SearchUserRestrictionApi = /** @class */ (function (_super) {
284
360
  }
285
361
  return [3 /*break*/, 7];
286
362
  case 6:
287
- response_3 = _c.sent();
288
- console.debug(response_3);
289
- throw response_3;
363
+ response_4 = _c.sent();
364
+ console.debug(response_4);
365
+ throw response_4;
290
366
  case 7: return [2 /*return*/];
291
367
  }
292
368
  });
@@ -314,7 +390,7 @@ var SearchUserRestrictionApi = /** @class */ (function (_super) {
314
390
  */
315
391
  SearchUserRestrictionApi.prototype.getUserRestrictedProductTypesRaw = function (requestParameters, initOverrides) {
316
392
  return __awaiter(this, void 0, void 0, function () {
317
- var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType, response_4;
393
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType, response_5;
318
394
  return __generator(this, function (_c) {
319
395
  switch (_c.label) {
320
396
  case 0:
@@ -363,9 +439,9 @@ var SearchUserRestrictionApi = /** @class */ (function (_super) {
363
439
  }
364
440
  return [3 /*break*/, 7];
365
441
  case 6:
366
- response_4 = _c.sent();
367
- console.debug(response_4);
368
- throw response_4;
442
+ response_5 = _c.sent();
443
+ console.debug(response_5);
444
+ throw response_5;
369
445
  case 7: return [2 /*return*/];
370
446
  }
371
447
  });
@@ -388,6 +464,85 @@ var SearchUserRestrictionApi = /** @class */ (function (_super) {
388
464
  });
389
465
  });
390
466
  };
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
+ };
391
546
  return SearchUserRestrictionApi;
392
547
  }(runtime.BaseAPI));
393
548
  exports.SearchUserRestrictionApi = SearchUserRestrictionApi;
@@ -0,0 +1,26 @@
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
+ }
@@ -0,0 +1,156 @@
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;
@@ -14,4 +14,5 @@ export * from './SearchUserFeatureApi';
14
14
  export * from './SearchUserRestrictionApi';
15
15
  export * from './SearchUserRuleApi';
16
16
  export * from './SearchUserSocialNetworksApi';
17
+ export * from './SearchUserStorageTypeApi';
17
18
  export * from './SearchUserTransportApi';
@@ -32,4 +32,5 @@ __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);
35
36
  __exportStar(require("./SearchUserTransportApi"), exports);
@@ -0,0 +1,43 @@
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;
@@ -0,0 +1,51 @@
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;
@@ -0,0 +1,31 @@
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;
@@ -0,0 +1,45 @@
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;
@@ -0,0 +1,37 @@
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;
@@ -0,0 +1,47 @@
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;
@@ -15,6 +15,7 @@ export * from './ProductTypeLink';
15
15
  export * from './RestError';
16
16
  export * from './ScaEnrollmentStatus';
17
17
  export * from './SomeonePasswordUpdateParameters';
18
+ export * from './StorageTypeLink';
18
19
  export * from './ThreadLink';
19
20
  export * from './Transport';
20
21
  export * from './User';
@@ -37,6 +38,7 @@ export * from './UserMangopayTarget';
37
38
  export * from './UserRestrictedFeatureCreationParameter';
38
39
  export * from './UserRestrictedNotificationTypeCreationParameter';
39
40
  export * from './UserRestrictedProductTypeCreationParameter';
41
+ export * from './UserRestrictedStorageTypeCreationParameter';
40
42
  export * from './UserRole';
41
43
  export * from './UserRule';
42
44
  export * from './UserRuleActionEnum';
@@ -45,6 +47,7 @@ export * from './UserRuleComparatorEnum';
45
47
  export * from './UserRuleCreationParameters';
46
48
  export * from './UserSocialNetwork';
47
49
  export * from './UserStatisticLink';
50
+ export * from './UserStorageType';
48
51
  export * from './UserThreads';
49
52
  export * from './UserUpdateParameters';
50
53
  export * from './UserWalletLink';
@@ -33,6 +33,7 @@ __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);
36
37
  __exportStar(require("./ThreadLink"), exports);
37
38
  __exportStar(require("./Transport"), exports);
38
39
  __exportStar(require("./User"), exports);
@@ -55,6 +56,7 @@ __exportStar(require("./UserMangopayTarget"), exports);
55
56
  __exportStar(require("./UserRestrictedFeatureCreationParameter"), exports);
56
57
  __exportStar(require("./UserRestrictedNotificationTypeCreationParameter"), exports);
57
58
  __exportStar(require("./UserRestrictedProductTypeCreationParameter"), exports);
59
+ __exportStar(require("./UserRestrictedStorageTypeCreationParameter"), exports);
58
60
  __exportStar(require("./UserRole"), exports);
59
61
  __exportStar(require("./UserRule"), exports);
60
62
  __exportStar(require("./UserRuleActionEnum"), exports);
@@ -63,6 +65,7 @@ __exportStar(require("./UserRuleComparatorEnum"), exports);
63
65
  __exportStar(require("./UserRuleCreationParameters"), exports);
64
66
  __exportStar(require("./UserSocialNetwork"), exports);
65
67
  __exportStar(require("./UserStatisticLink"), exports);
68
+ __exportStar(require("./UserStorageType"), exports);
66
69
  __exportStar(require("./UserThreads"), exports);
67
70
  __exportStar(require("./UserUpdateParameters"), exports);
68
71
  __exportStar(require("./UserWalletLink"), exports);