@lcdp/api-react-rest-client 2.13.6-LDS-4612-gestion-froid-par-labo.16499332516 → 2.13.6-LDS-4612-gestion-froid-par-labo.16516598805

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-LDS-4612-gestion-froid-par-labo.16499332516",
3
+ "version": "2.13.6-LDS-4612-gestion-froid-par-labo.16516598805",
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, ProductStorageType, UserRestrictedFeatureCreationParameter, UserRestrictedNotificationTypeCreationParameter, UserRestrictedProductTypeCreationParameter, UserRestrictedStorageTypeCreationParameter } 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
  }
@@ -47,7 +47,7 @@ export interface DeleteUserRestrictedProductTypeRequest {
47
47
  }
48
48
  export interface DeleteUserRestrictedStorageTypeRequest {
49
49
  userId: number;
50
- storageType: ProductStorageType;
50
+ storageTypeId: string;
51
51
  }
52
52
  /**
53
53
  *
@@ -696,8 +696,8 @@ var ManageUserRestrictionApi = /** @class */ (function (_super) {
696
696
  if (requestParameters['userId'] == null) {
697
697
  throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling deleteUserRestrictedStorageType().');
698
698
  }
699
- if (requestParameters['storageType'] == null) {
700
- throw new runtime.RequiredError('storageType', 'Required parameter "storageType" was null or undefined when calling deleteUserRestrictedStorageType().');
699
+ if (requestParameters['storageTypeId'] == null) {
700
+ throw new runtime.RequiredError('storageTypeId', 'Required parameter "storageTypeId" was null or undefined when calling deleteUserRestrictedStorageType().');
701
701
  }
702
702
  queryParameters = {};
703
703
  headerParameters = {};
@@ -721,7 +721,7 @@ var ManageUserRestrictionApi = /** @class */ (function (_super) {
721
721
  case 4:
722
722
  _c.trys.push([4, 6, , 7]);
723
723
  return [4 /*yield*/, this.request({
724
- path: "/users/{userId}/restricted-storage-types/{storageType}".replace("{".concat("userId", "}"), encodeURIComponent(String(requestParameters['userId']))).replace("{".concat("storageType", "}"), encodeURIComponent(String(requestParameters['storageType']))),
724
+ path: "/users/{userId}/restricted-storage-types/{storageTypeId}".replace("{".concat("userId", "}"), encodeURIComponent(String(requestParameters['userId']))).replace("{".concat("storageTypeId", "}"), encodeURIComponent(String(requestParameters['storageTypeId']))),
725
725
  method: 'DELETE',
726
726
  headers: headerParameters,
727
727
  query: queryParameters,
@@ -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, ProductStorageType, 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
  }
@@ -62,9 +62,9 @@ export declare class SearchUserRestrictionApi extends runtime.BaseAPI {
62
62
  /**
63
63
  * Get user restricted storage product types
64
64
  */
65
- getUserRestrictedStorageTypesRaw(requestParameters: GetUserRestrictedStorageTypesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ProductStorageType> | runtime.BlobWithMeta>>;
65
+ getUserRestrictedStorageTypesRaw(requestParameters: GetUserRestrictedStorageTypesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<StorageTypeLink> | runtime.BlobWithMeta>>;
66
66
  /**
67
67
  * Get user restricted storage product types
68
68
  */
69
- getUserRestrictedStorageTypes(requestParameters: GetUserRestrictedStorageTypesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ProductStorageType> | runtime.BlobWithMeta>;
69
+ getUserRestrictedStorageTypes(requestParameters: GetUserRestrictedStorageTypesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<StorageTypeLink> | runtime.BlobWithMeta>;
70
70
  }
@@ -431,7 +431,7 @@ var SearchUserRestrictionApi = /** @class */ (function (_super) {
431
431
  response = _c.sent();
432
432
  contentType = response.headers.get("content-type");
433
433
  if (contentType && contentType.indexOf("application/json") !== -1) {
434
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.ProductStorageTypeFromJSON); })];
434
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.StorageTypeLinkFromJSON); })];
435
435
  }
436
436
  else if (contentType && contentType.indexOf("text/plain") !== -1) {
437
437
  return [2 /*return*/, new runtime.TextApiResponse(response)];
@@ -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;
@@ -9,7 +9,6 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { ProductStorageType } from './ProductStorageType';
13
12
  /**
14
13
  *
15
14
  * @export
@@ -17,11 +16,11 @@ import type { ProductStorageType } from './ProductStorageType';
17
16
  */
18
17
  export interface UserRestrictedStorageTypeCreationParameter {
19
18
  /**
20
- *
21
- * @type {ProductStorageType}
19
+ * Storage type id
20
+ * @type {string}
22
21
  * @memberof UserRestrictedStorageTypeCreationParameter
23
22
  */
24
- storageType: ProductStorageType;
23
+ storageTypeId?: string;
25
24
  }
26
25
  /**
27
26
  * Check if a given object implements the UserRestrictedStorageTypeCreationParameter interface.
@@ -14,13 +14,10 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.UserRestrictedStorageTypeCreationParameterToJSON = exports.UserRestrictedStorageTypeCreationParameterFromJSONTyped = exports.UserRestrictedStorageTypeCreationParameterFromJSON = exports.instanceOfUserRestrictedStorageTypeCreationParameter = void 0;
17
- var ProductStorageType_1 = require("./ProductStorageType");
18
17
  /**
19
18
  * Check if a given object implements the UserRestrictedStorageTypeCreationParameter interface.
20
19
  */
21
20
  function instanceOfUserRestrictedStorageTypeCreationParameter(value) {
22
- if (!('storageType' in value) || value['storageType'] === undefined)
23
- return false;
24
21
  return true;
25
22
  }
26
23
  exports.instanceOfUserRestrictedStorageTypeCreationParameter = instanceOfUserRestrictedStorageTypeCreationParameter;
@@ -33,7 +30,7 @@ function UserRestrictedStorageTypeCreationParameterFromJSONTyped(json, ignoreDis
33
30
  return json;
34
31
  }
35
32
  return {
36
- 'storageType': (json['storageType'] === null || json['storageType'] === undefined) ? json['storageType'] : (0, ProductStorageType_1.ProductStorageTypeFromJSON)(json['storageType']),
33
+ 'storageTypeId': json['storageTypeId'],
37
34
  };
38
35
  }
39
36
  exports.UserRestrictedStorageTypeCreationParameterFromJSONTyped = UserRestrictedStorageTypeCreationParameterFromJSONTyped;
@@ -42,7 +39,7 @@ function UserRestrictedStorageTypeCreationParameterToJSON(value) {
42
39
  return value;
43
40
  }
44
41
  return {
45
- 'storageType': (0, ProductStorageType_1.ProductStorageTypeToJSON)(value['storageType']),
42
+ 'storageTypeId': value['storageTypeId'],
46
43
  };
47
44
  }
48
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;
@@ -11,11 +11,11 @@ export * from './PaginatedUsers';
11
11
  export * from './PagingMetadata';
12
12
  export * from './PasswordResetCompletionParameters';
13
13
  export * from './PasswordResetCreationParameters';
14
- export * from './ProductStorageType';
15
14
  export * from './ProductTypeLink';
16
15
  export * from './RestError';
17
16
  export * from './ScaEnrollmentStatus';
18
17
  export * from './SomeonePasswordUpdateParameters';
18
+ export * from './StorageTypeLink';
19
19
  export * from './ThreadLink';
20
20
  export * from './Transport';
21
21
  export * from './User';
@@ -47,6 +47,7 @@ export * from './UserRuleComparatorEnum';
47
47
  export * from './UserRuleCreationParameters';
48
48
  export * from './UserSocialNetwork';
49
49
  export * from './UserStatisticLink';
50
+ export * from './UserStorageType';
50
51
  export * from './UserThreads';
51
52
  export * from './UserUpdateParameters';
52
53
  export * from './UserWalletLink';
@@ -29,11 +29,11 @@ __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);
33
32
  __exportStar(require("./ProductTypeLink"), exports);
34
33
  __exportStar(require("./RestError"), exports);
35
34
  __exportStar(require("./ScaEnrollmentStatus"), exports);
36
35
  __exportStar(require("./SomeonePasswordUpdateParameters"), exports);
36
+ __exportStar(require("./StorageTypeLink"), exports);
37
37
  __exportStar(require("./ThreadLink"), exports);
38
38
  __exportStar(require("./Transport"), exports);
39
39
  __exportStar(require("./User"), exports);
@@ -65,6 +65,7 @@ __exportStar(require("./UserRuleComparatorEnum"), exports);
65
65
  __exportStar(require("./UserRuleCreationParameters"), exports);
66
66
  __exportStar(require("./UserSocialNetwork"), exports);
67
67
  __exportStar(require("./UserStatisticLink"), exports);
68
+ __exportStar(require("./UserStorageType"), exports);
68
69
  __exportStar(require("./UserThreads"), exports);
69
70
  __exportStar(require("./UserUpdateParameters"), exports);
70
71
  __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
- /**
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;
@@ -1,49 +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.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;