@lcdp/api-react-rest-client 2.13.6-LDS-4646-claude-security-token.16418756413 → 2.13.6-LDS-4612-gestion-froid-par-labo.16498787815

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.
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AnyAuthenticationCredential, DisposableTokenCreationParameters, SessionResponse } from '../models/index';
13
+ import type { AnyAuthenticationCredential, DisposableTokenCreationParameters, Session } from '../models/index';
14
14
  export interface CreateDisposableTokenRequest {
15
15
  disposableTokenCreationParameters: DisposableTokenCreationParameters;
16
16
  }
@@ -35,12 +35,12 @@ export declare class AuthApi extends runtime.BaseAPI {
35
35
  * Create a new session with credentials given in request body.
36
36
  * Create a new session
37
37
  */
38
- loginRaw(requestParameters: LoginRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SessionResponse | runtime.BlobWithMeta>>;
38
+ loginRaw(requestParameters: LoginRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Session | runtime.BlobWithMeta>>;
39
39
  /**
40
40
  * Create a new session with credentials given in request body.
41
41
  * Create a new session
42
42
  */
43
- login(requestParameters: LoginRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SessionResponse | runtime.BlobWithMeta>;
43
+ login(requestParameters: LoginRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Session | runtime.BlobWithMeta>;
44
44
  /**
45
45
  *
46
46
  * Delete an existing session
@@ -185,7 +185,7 @@ var AuthApi = /** @class */ (function (_super) {
185
185
  response = _a.sent();
186
186
  contentType = response.headers.get("content-type");
187
187
  if (contentType && contentType.indexOf("application/json") !== -1) {
188
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.SessionResponseFromJSON)(jsonValue); })];
188
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.SessionFromJSON)(jsonValue); })];
189
189
  }
190
190
  else if (contentType && contentType.indexOf("text/plain") !== -1) {
191
191
  return [2 /*return*/, new runtime.TextApiResponse(response)];
@@ -17,7 +17,6 @@ export * from './RefreshCredential';
17
17
  export * from './RestError';
18
18
  export * from './RevealedApiKey';
19
19
  export * from './Session';
20
- export * from './SessionResponse';
21
20
  export * from './User';
22
21
  export * from './UserLink';
23
22
  export * from './UserLinkAllOfCompany';
@@ -35,7 +35,6 @@ __exportStar(require("./RefreshCredential"), exports);
35
35
  __exportStar(require("./RestError"), exports);
36
36
  __exportStar(require("./RevealedApiKey"), exports);
37
37
  __exportStar(require("./Session"), exports);
38
- __exportStar(require("./SessionResponse"), exports);
39
38
  __exportStar(require("./User"), exports);
40
39
  __exportStar(require("./UserLink"), exports);
41
40
  __exportStar(require("./UserLinkAllOfCompany"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lcdp/api-react-rest-client",
3
- "version": "2.13.6-LDS-4646-claude-security-token.16418756413",
3
+ "version": "2.13.6-LDS-4612-gestion-froid-par-labo.16498787815",
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
  }
@@ -77,6 +81,14 @@ export declare class ManageUserRestrictionApi extends runtime.BaseAPI {
77
81
  * Add this product type in restricted user product types
78
82
  */
79
83
  createUserRestrictedProductType(requestParameters: CreateUserRestrictedProductTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
84
+ /**
85
+ * Add this storage type in restricted user storage product types
86
+ */
87
+ createUserRestrictedStorageTypeRaw(requestParameters: CreateUserRestrictedStorageTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
88
+ /**
89
+ * Add this storage type in restricted user storage product types
90
+ */
91
+ createUserRestrictedStorageType(requestParameters: CreateUserRestrictedStorageTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
80
92
  /**
81
93
  * Delete this notification type from restricted user notification types
82
94
  */
@@ -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
  });
@@ -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, ProductStorageType, ProductTypeLink, 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 GetUserRestrictedStorageProductTypesRequest {
24
+ userId: number;
25
+ }
23
26
  /**
24
27
  *
25
28
  */
@@ -56,4 +59,12 @@ export declare class SearchUserRestrictionApi extends runtime.BaseAPI {
56
59
  * Get user restricted product types
57
60
  */
58
61
  getUserRestrictedProductTypes(requestParameters: GetUserRestrictedProductTypesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ProductTypeLink> | runtime.BlobWithMeta>;
62
+ /**
63
+ * Get user restricted storage product types
64
+ */
65
+ getUserRestrictedStorageProductTypesRaw(requestParameters: GetUserRestrictedStorageProductTypesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ProductStorageType> | runtime.BlobWithMeta>>;
66
+ /**
67
+ * Get user restricted storage product types
68
+ */
69
+ getUserRestrictedStorageProductTypes(requestParameters: GetUserRestrictedStorageProductTypesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ProductStorageType> | runtime.BlobWithMeta>;
59
70
  }
@@ -388,6 +388,85 @@ var SearchUserRestrictionApi = /** @class */ (function (_super) {
388
388
  });
389
389
  });
390
390
  };
391
+ /**
392
+ * Get user restricted storage product types
393
+ */
394
+ SearchUserRestrictionApi.prototype.getUserRestrictedStorageProductTypesRaw = function (requestParameters, initOverrides) {
395
+ return __awaiter(this, void 0, void 0, function () {
396
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType, response_5;
397
+ return __generator(this, function (_c) {
398
+ switch (_c.label) {
399
+ case 0:
400
+ if (requestParameters['userId'] == null) {
401
+ throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling getUserRestrictedStorageProductTypes().');
402
+ }
403
+ queryParameters = {};
404
+ headerParameters = {};
405
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
406
+ _a = headerParameters;
407
+ _b = "x-api-key";
408
+ return [4 /*yield*/, this.configuration.apiKey("x-api-key")];
409
+ case 1:
410
+ _a[_b] = _c.sent(); // apiKeyAuth authentication
411
+ _c.label = 2;
412
+ case 2:
413
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
414
+ token = this.configuration.accessToken;
415
+ return [4 /*yield*/, token("bearerAuth", [])];
416
+ case 3:
417
+ tokenString = _c.sent();
418
+ if (tokenString) {
419
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
420
+ }
421
+ _c.label = 4;
422
+ case 4:
423
+ _c.trys.push([4, 6, , 7]);
424
+ return [4 /*yield*/, this.request({
425
+ path: "/users/{userId}/restricted-storage-types".replace("{".concat("userId", "}"), encodeURIComponent(String(requestParameters['userId']))),
426
+ method: 'GET',
427
+ headers: headerParameters,
428
+ query: queryParameters,
429
+ }, initOverrides)];
430
+ case 5:
431
+ response = _c.sent();
432
+ contentType = response.headers.get("content-type");
433
+ if (contentType && contentType.indexOf("application/json") !== -1) {
434
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.ProductStorageTypeFromJSON); })];
435
+ }
436
+ else if (contentType && contentType.indexOf("text/plain") !== -1) {
437
+ return [2 /*return*/, new runtime.TextApiResponse(response)];
438
+ }
439
+ else {
440
+ // TODO : Better handling of others application types
441
+ return [2 /*return*/, new runtime.BlobWithMetaApiResponse(response)];
442
+ }
443
+ return [3 /*break*/, 7];
444
+ case 6:
445
+ response_5 = _c.sent();
446
+ console.debug(response_5);
447
+ throw response_5;
448
+ case 7: return [2 /*return*/];
449
+ }
450
+ });
451
+ });
452
+ };
453
+ /**
454
+ * Get user restricted storage product types
455
+ */
456
+ SearchUserRestrictionApi.prototype.getUserRestrictedStorageProductTypes = function (requestParameters, initOverrides) {
457
+ return __awaiter(this, void 0, void 0, function () {
458
+ var response;
459
+ return __generator(this, function (_a) {
460
+ switch (_a.label) {
461
+ case 0: return [4 /*yield*/, this.getUserRestrictedStorageProductTypesRaw(requestParameters, initOverrides)];
462
+ case 1:
463
+ response = _a.sent();
464
+ return [4 /*yield*/, response.value()];
465
+ case 2: return [2 /*return*/, _a.sent()];
466
+ }
467
+ });
468
+ });
469
+ };
391
470
  return SearchUserRestrictionApi;
392
471
  }(runtime.BaseAPI));
393
472
  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
+ /**
13
+ *
14
+ * @export
15
+ */
16
+ export declare const ProductStorageType: {
17
+ readonly FREE: "FREE";
18
+ readonly FRIDGE: "FRIDGE";
19
+ readonly FREEZER: "FREEZER";
20
+ readonly FRESH: "FRESH";
21
+ };
22
+ export declare type ProductStorageType = typeof ProductStorageType[keyof typeof ProductStorageType];
23
+ export declare function instanceOfProductStorageType(value: any): boolean;
24
+ export declare function ProductStorageTypeFromJSON(json: any): ProductStorageType;
25
+ export declare function ProductStorageTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductStorageType;
26
+ export declare function ProductStorageTypeToJSON(value?: ProductStorageType | null): any;
@@ -0,0 +1,49 @@
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.ProductStorageTypeToJSON = exports.ProductStorageTypeFromJSONTyped = exports.ProductStorageTypeFromJSON = exports.instanceOfProductStorageType = exports.ProductStorageType = void 0;
17
+ /**
18
+ *
19
+ * @export
20
+ */
21
+ exports.ProductStorageType = {
22
+ FREE: 'FREE',
23
+ FRIDGE: 'FRIDGE',
24
+ FREEZER: 'FREEZER',
25
+ FRESH: 'FRESH'
26
+ };
27
+ function instanceOfProductStorageType(value) {
28
+ for (var key in exports.ProductStorageType) {
29
+ if (Object.prototype.hasOwnProperty.call(exports.ProductStorageType, key)) {
30
+ if (exports.ProductStorageType[key] === value) {
31
+ return true;
32
+ }
33
+ }
34
+ }
35
+ return false;
36
+ }
37
+ exports.instanceOfProductStorageType = instanceOfProductStorageType;
38
+ function ProductStorageTypeFromJSON(json) {
39
+ return ProductStorageTypeFromJSONTyped(json, false);
40
+ }
41
+ exports.ProductStorageTypeFromJSON = ProductStorageTypeFromJSON;
42
+ function ProductStorageTypeFromJSONTyped(json, ignoreDiscriminator) {
43
+ return json;
44
+ }
45
+ exports.ProductStorageTypeFromJSONTyped = ProductStorageTypeFromJSONTyped;
46
+ function ProductStorageTypeToJSON(value) {
47
+ return value;
48
+ }
49
+ exports.ProductStorageTypeToJSON = ProductStorageTypeToJSON;
@@ -0,0 +1,32 @@
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 type { ProductStorageType } from './ProductStorageType';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface UserRestrictedStorageTypeCreationParameter
17
+ */
18
+ export interface UserRestrictedStorageTypeCreationParameter {
19
+ /**
20
+ *
21
+ * @type {ProductStorageType}
22
+ * @memberof UserRestrictedStorageTypeCreationParameter
23
+ */
24
+ storageType: ProductStorageType;
25
+ }
26
+ /**
27
+ * Check if a given object implements the UserRestrictedStorageTypeCreationParameter interface.
28
+ */
29
+ export declare function instanceOfUserRestrictedStorageTypeCreationParameter(value: object): value is UserRestrictedStorageTypeCreationParameter;
30
+ export declare function UserRestrictedStorageTypeCreationParameterFromJSON(json: any): UserRestrictedStorageTypeCreationParameter;
31
+ export declare function UserRestrictedStorageTypeCreationParameterFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserRestrictedStorageTypeCreationParameter;
32
+ export declare function UserRestrictedStorageTypeCreationParameterToJSON(value?: UserRestrictedStorageTypeCreationParameter | null): any;
@@ -0,0 +1,48 @@
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
+ var ProductStorageType_1 = require("./ProductStorageType");
18
+ /**
19
+ * Check if a given object implements the UserRestrictedStorageTypeCreationParameter interface.
20
+ */
21
+ function instanceOfUserRestrictedStorageTypeCreationParameter(value) {
22
+ if (!('storageType' in value) || value['storageType'] === undefined)
23
+ return false;
24
+ return true;
25
+ }
26
+ exports.instanceOfUserRestrictedStorageTypeCreationParameter = instanceOfUserRestrictedStorageTypeCreationParameter;
27
+ function UserRestrictedStorageTypeCreationParameterFromJSON(json) {
28
+ return UserRestrictedStorageTypeCreationParameterFromJSONTyped(json, false);
29
+ }
30
+ exports.UserRestrictedStorageTypeCreationParameterFromJSON = UserRestrictedStorageTypeCreationParameterFromJSON;
31
+ function UserRestrictedStorageTypeCreationParameterFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'storageType': (json['storageType'] === null || json['storageType'] === undefined) ? json['storageType'] : (0, ProductStorageType_1.ProductStorageTypeFromJSON)(json['storageType']),
37
+ };
38
+ }
39
+ exports.UserRestrictedStorageTypeCreationParameterFromJSONTyped = UserRestrictedStorageTypeCreationParameterFromJSONTyped;
40
+ function UserRestrictedStorageTypeCreationParameterToJSON(value) {
41
+ if (value == null) {
42
+ return value;
43
+ }
44
+ return {
45
+ 'storageType': (0, ProductStorageType_1.ProductStorageTypeToJSON)(value['storageType']),
46
+ };
47
+ }
48
+ exports.UserRestrictedStorageTypeCreationParameterToJSON = UserRestrictedStorageTypeCreationParameterToJSON;
@@ -11,6 +11,7 @@ export * from './PaginatedUsers';
11
11
  export * from './PagingMetadata';
12
12
  export * from './PasswordResetCompletionParameters';
13
13
  export * from './PasswordResetCreationParameters';
14
+ export * from './ProductStorageType';
14
15
  export * from './ProductTypeLink';
15
16
  export * from './RestError';
16
17
  export * from './ScaEnrollmentStatus';
@@ -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';
@@ -29,6 +29,7 @@ __exportStar(require("./PaginatedUsers"), exports);
29
29
  __exportStar(require("./PagingMetadata"), exports);
30
30
  __exportStar(require("./PasswordResetCompletionParameters"), exports);
31
31
  __exportStar(require("./PasswordResetCreationParameters"), exports);
32
+ __exportStar(require("./ProductStorageType"), exports);
32
33
  __exportStar(require("./ProductTypeLink"), exports);
33
34
  __exportStar(require("./RestError"), exports);
34
35
  __exportStar(require("./ScaEnrollmentStatus"), 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);
@@ -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 SessionResponse
16
- */
17
- export interface SessionResponse {
18
- /**
19
- * Expiration of access token in seconds
20
- * @type {number}
21
- * @memberof SessionResponse
22
- */
23
- expiredIn: number;
24
- /**
25
- * Authentication successful message
26
- * @type {string}
27
- * @memberof SessionResponse
28
- */
29
- message: string;
30
- }
31
- /**
32
- * Check if a given object implements the SessionResponse interface.
33
- */
34
- export declare function instanceOfSessionResponse(value: object): value is SessionResponse;
35
- export declare function SessionResponseFromJSON(json: any): SessionResponse;
36
- export declare function SessionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SessionResponse;
37
- export declare function SessionResponseToJSON(value?: SessionResponse | 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.SessionResponseToJSON = exports.SessionResponseFromJSONTyped = exports.SessionResponseFromJSON = exports.instanceOfSessionResponse = void 0;
17
- /**
18
- * Check if a given object implements the SessionResponse interface.
19
- */
20
- function instanceOfSessionResponse(value) {
21
- if (!('expiredIn' in value) || value['expiredIn'] === undefined)
22
- return false;
23
- if (!('message' in value) || value['message'] === undefined)
24
- return false;
25
- return true;
26
- }
27
- exports.instanceOfSessionResponse = instanceOfSessionResponse;
28
- function SessionResponseFromJSON(json) {
29
- return SessionResponseFromJSONTyped(json, false);
30
- }
31
- exports.SessionResponseFromJSON = SessionResponseFromJSON;
32
- function SessionResponseFromJSONTyped(json, ignoreDiscriminator) {
33
- if (json == null) {
34
- return json;
35
- }
36
- return {
37
- 'expiredIn': json['expiredIn'],
38
- 'message': json['message'],
39
- };
40
- }
41
- exports.SessionResponseFromJSONTyped = SessionResponseFromJSONTyped;
42
- function SessionResponseToJSON(value) {
43
- if (value == null) {
44
- return value;
45
- }
46
- return {
47
- 'expiredIn': value['expiredIn'],
48
- 'message': value['message'],
49
- };
50
- }
51
- exports.SessionResponseToJSON = SessionResponseToJSON;