@lcdp/api-react-rest-client 2.13.9-LDS-4699-etape-1-no-more-archive-of-frid.17092299169 → 2.13.9-LDS-4699-etape-1-no-more-archive-of-frid.17131480426

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.
Files changed (37) hide show
  1. package/catalog/src/models/ProductInsight.d.ts +4 -3
  2. package/catalog/src/models/ProductInsight.js +3 -2
  3. package/catalog/src/models/ProductInsightCreateOrUpdateParameters.d.ts +4 -3
  4. package/catalog/src/models/ProductInsightCreateOrUpdateParameters.js +3 -2
  5. package/catalog/src/models/ProductStorageType.d.ts +26 -0
  6. package/catalog/src/models/ProductStorageType.js +49 -0
  7. package/catalog/src/models/index.d.ts +1 -0
  8. package/catalog/src/models/index.js +1 -0
  9. package/magic-cart/src/models/ProductStorageType.d.ts +8 -19
  10. package/magic-cart/src/models/ProductStorageType.js +19 -17
  11. package/order/src/models/ProductStorageType.d.ts +8 -19
  12. package/order/src/models/ProductStorageType.js +19 -17
  13. package/package.json +1 -1
  14. package/product/src/apis/SearchProductMetadataApi.d.ts +1 -20
  15. package/product/src/apis/SearchProductMetadataApi.js +8 -163
  16. package/product/src/models/ProductCreationOrUpdateParameters.d.ts +4 -3
  17. package/product/src/models/ProductCreationOrUpdateParameters.js +3 -2
  18. package/product/src/models/ProductStorageType.d.ts +8 -19
  19. package/product/src/models/ProductStorageType.js +19 -17
  20. package/shopping-cart/src/models/ProductStorageType.d.ts +8 -19
  21. package/shopping-cart/src/models/ProductStorageType.js +19 -17
  22. package/user/src/apis/ManageUserRestrictionApi.d.ts +1 -25
  23. package/user/src/apis/ManageUserRestrictionApi.js +20 -160
  24. package/user/src/apis/SearchUserRestrictionApi.d.ts +1 -20
  25. package/user/src/apis/SearchUserRestrictionApi.js +12 -167
  26. package/user/src/models/ProductStorageType.d.ts +26 -0
  27. package/user/src/models/ProductStorageType.js +49 -0
  28. package/user/src/models/User.d.ts +3 -2
  29. package/user/src/models/User.js +3 -2
  30. package/user/src/models/UserUpdateParameters.d.ts +7 -0
  31. package/user/src/models/UserUpdateParameters.js +3 -0
  32. package/user/src/models/index.d.ts +1 -2
  33. package/user/src/models/index.js +1 -2
  34. package/user/src/models/ProductStorageTypeLink.d.ts +0 -43
  35. package/user/src/models/ProductStorageTypeLink.js +0 -51
  36. package/user/src/models/UserRestrictedProductStorageTypeCreationParameter.d.ts +0 -31
  37. package/user/src/models/UserRestrictedProductStorageTypeCreationParameter.js +0 -47
@@ -151,88 +151,12 @@ var SearchUserRestrictionApi = /** @class */ (function (_super) {
151
151
  });
152
152
  });
153
153
  };
154
- /**
155
- * Get user restricted product storage types
156
- */
157
- SearchUserRestrictionApi.prototype.getCurrentUserRestrictedProductStorageTypesRaw = 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-product-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.ProductStorageTypeLinkFromJSON); })];
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 product storage types
215
- */
216
- SearchUserRestrictionApi.prototype.getCurrentUserRestrictedProductStorageTypes = 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.getCurrentUserRestrictedProductStorageTypesRaw(initOverrides)];
222
- case 1:
223
- response = _a.sent();
224
- return [4 /*yield*/, response.value()];
225
- case 2: return [2 /*return*/, _a.sent()];
226
- }
227
- });
228
- });
229
- };
230
154
  /**
231
155
  * Get user restricted features
232
156
  */
233
157
  SearchUserRestrictionApi.prototype.getUserRestrictedFeaturesRaw = function (requestParameters, initOverrides) {
234
158
  return __awaiter(this, void 0, void 0, function () {
235
- var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType, response_3;
159
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType, response_2;
236
160
  return __generator(this, function (_c) {
237
161
  switch (_c.label) {
238
162
  case 0:
@@ -281,9 +205,9 @@ var SearchUserRestrictionApi = /** @class */ (function (_super) {
281
205
  }
282
206
  return [3 /*break*/, 7];
283
207
  case 6:
284
- response_3 = _c.sent();
285
- console.debug(response_3);
286
- throw response_3;
208
+ response_2 = _c.sent();
209
+ console.debug(response_2);
210
+ throw response_2;
287
211
  case 7: return [2 /*return*/];
288
212
  }
289
213
  });
@@ -311,7 +235,7 @@ var SearchUserRestrictionApi = /** @class */ (function (_super) {
311
235
  */
312
236
  SearchUserRestrictionApi.prototype.getUserRestrictedNotificationTypesRaw = function (requestParameters, initOverrides) {
313
237
  return __awaiter(this, void 0, void 0, function () {
314
- var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType, response_4;
238
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType, response_3;
315
239
  return __generator(this, function (_c) {
316
240
  switch (_c.label) {
317
241
  case 0:
@@ -360,9 +284,9 @@ var SearchUserRestrictionApi = /** @class */ (function (_super) {
360
284
  }
361
285
  return [3 /*break*/, 7];
362
286
  case 6:
363
- response_4 = _c.sent();
364
- console.debug(response_4);
365
- throw response_4;
287
+ response_3 = _c.sent();
288
+ console.debug(response_3);
289
+ throw response_3;
366
290
  case 7: return [2 /*return*/];
367
291
  }
368
292
  });
@@ -385,91 +309,12 @@ var SearchUserRestrictionApi = /** @class */ (function (_super) {
385
309
  });
386
310
  });
387
311
  };
388
- /**
389
- * Get user restricted product storage types
390
- */
391
- SearchUserRestrictionApi.prototype.getUserRestrictedProductStorageTypesRaw = function (requestParameters, initOverrides) {
392
- return __awaiter(this, void 0, void 0, function () {
393
- var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType, response_5;
394
- return __generator(this, function (_c) {
395
- switch (_c.label) {
396
- case 0:
397
- if (requestParameters['userId'] == null) {
398
- throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling getUserRestrictedProductStorageTypes().');
399
- }
400
- queryParameters = {};
401
- headerParameters = {};
402
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
403
- _a = headerParameters;
404
- _b = "x-api-key";
405
- return [4 /*yield*/, this.configuration.apiKey("x-api-key")];
406
- case 1:
407
- _a[_b] = _c.sent(); // apiKeyAuth authentication
408
- _c.label = 2;
409
- case 2:
410
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
411
- token = this.configuration.accessToken;
412
- return [4 /*yield*/, token("bearerAuth", [])];
413
- case 3:
414
- tokenString = _c.sent();
415
- if (tokenString) {
416
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
417
- }
418
- _c.label = 4;
419
- case 4:
420
- _c.trys.push([4, 6, , 7]);
421
- return [4 /*yield*/, this.request({
422
- path: "/users/{userId}/restricted-product-storage-types".replace("{".concat("userId", "}"), encodeURIComponent(String(requestParameters['userId']))),
423
- method: 'GET',
424
- headers: headerParameters,
425
- query: queryParameters,
426
- }, initOverrides)];
427
- case 5:
428
- response = _c.sent();
429
- contentType = response.headers.get("content-type");
430
- if (contentType && contentType.indexOf("application/json") !== -1) {
431
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.ProductStorageTypeLinkFromJSON); })];
432
- }
433
- else if (contentType && contentType.indexOf("text/plain") !== -1) {
434
- return [2 /*return*/, new runtime.TextApiResponse(response)];
435
- }
436
- else {
437
- // TODO : Better handling of others application types
438
- return [2 /*return*/, new runtime.BlobWithMetaApiResponse(response)];
439
- }
440
- return [3 /*break*/, 7];
441
- case 6:
442
- response_5 = _c.sent();
443
- console.debug(response_5);
444
- throw response_5;
445
- case 7: return [2 /*return*/];
446
- }
447
- });
448
- });
449
- };
450
- /**
451
- * Get user restricted product storage types
452
- */
453
- SearchUserRestrictionApi.prototype.getUserRestrictedProductStorageTypes = function (requestParameters, initOverrides) {
454
- return __awaiter(this, void 0, void 0, function () {
455
- var response;
456
- return __generator(this, function (_a) {
457
- switch (_a.label) {
458
- case 0: return [4 /*yield*/, this.getUserRestrictedProductStorageTypesRaw(requestParameters, initOverrides)];
459
- case 1:
460
- response = _a.sent();
461
- return [4 /*yield*/, response.value()];
462
- case 2: return [2 /*return*/, _a.sent()];
463
- }
464
- });
465
- });
466
- };
467
312
  /**
468
313
  * Get user restricted product types
469
314
  */
470
315
  SearchUserRestrictionApi.prototype.getUserRestrictedProductTypesRaw = function (requestParameters, initOverrides) {
471
316
  return __awaiter(this, void 0, void 0, function () {
472
- var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType, response_6;
317
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType, response_4;
473
318
  return __generator(this, function (_c) {
474
319
  switch (_c.label) {
475
320
  case 0:
@@ -518,9 +363,9 @@ var SearchUserRestrictionApi = /** @class */ (function (_super) {
518
363
  }
519
364
  return [3 /*break*/, 7];
520
365
  case 6:
521
- response_6 = _c.sent();
522
- console.debug(response_6);
523
- throw response_6;
366
+ response_4 = _c.sent();
367
+ console.debug(response_4);
368
+ throw response_4;
524
369
  case 7: return [2 /*return*/];
525
370
  }
526
371
  });
@@ -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;
@@ -15,6 +15,7 @@ import type { Address } from './Address';
15
15
  import type { UserStatisticLink } from './UserStatisticLink';
16
16
  import type { UserMangopayTarget } from './UserMangopayTarget';
17
17
  import type { UserDelegatedServices } from './UserDelegatedServices';
18
+ import type { ProductStorageType } from './ProductStorageType';
18
19
  import type { HttpLink } from './HttpLink';
19
20
  import type { Gender } from './Gender';
20
21
  import type { ScaEnrollmentStatus } from './ScaEnrollmentStatus';
@@ -255,10 +256,10 @@ export interface User {
255
256
  restrictedProductTypes?: HttpLink;
256
257
  /**
257
258
  *
258
- * @type {HttpLink}
259
+ * @type {Array<ProductStorageType>}
259
260
  * @memberof User
260
261
  */
261
- restrictedProductStorageTypes?: HttpLink;
262
+ restrictedProductStorageTypes?: Array<ProductStorageType>;
262
263
  /**
263
264
  *
264
265
  * @type {HttpLink}
@@ -21,6 +21,7 @@ var Address_1 = require("./Address");
21
21
  var UserStatisticLink_1 = require("./UserStatisticLink");
22
22
  var UserMangopayTarget_1 = require("./UserMangopayTarget");
23
23
  var UserDelegatedServices_1 = require("./UserDelegatedServices");
24
+ var ProductStorageType_1 = require("./ProductStorageType");
24
25
  var HttpLink_1 = require("./HttpLink");
25
26
  var Gender_1 = require("./Gender");
26
27
  var ScaEnrollmentStatus_1 = require("./ScaEnrollmentStatus");
@@ -100,7 +101,7 @@ function UserFromJSONTyped(json, ignoreDiscriminator) {
100
101
  'rules': (json['rules'] === null || json['rules'] === undefined) ? json['rules'] : (0, HttpLink_1.HttpLinkFromJSON)(json['rules']),
101
102
  'restrictedFeatures': (json['restrictedFeatures'] === null || json['restrictedFeatures'] === undefined) ? json['restrictedFeatures'] : (0, HttpLink_1.HttpLinkFromJSON)(json['restrictedFeatures']),
102
103
  'restrictedProductTypes': (json['restrictedProductTypes'] === null || json['restrictedProductTypes'] === undefined) ? json['restrictedProductTypes'] : (0, HttpLink_1.HttpLinkFromJSON)(json['restrictedProductTypes']),
103
- 'restrictedProductStorageTypes': (json['restrictedProductStorageTypes'] === null || json['restrictedProductStorageTypes'] === undefined) ? json['restrictedProductStorageTypes'] : (0, HttpLink_1.HttpLinkFromJSON)(json['restrictedProductStorageTypes']),
104
+ 'restrictedProductStorageTypes': (json['restrictedProductStorageTypes'] === null || json['restrictedProductStorageTypes'] === undefined) ? json['restrictedProductStorageTypes'] : json['restrictedProductStorageTypes'].map(ProductStorageType_1.ProductStorageTypeFromJSON),
104
105
  'restrictedNotificationTypes': (json['restrictedNotificationTypes'] === null || json['restrictedNotificationTypes'] === undefined) ? json['restrictedNotificationTypes'] : (0, HttpLink_1.HttpLinkFromJSON)(json['restrictedNotificationTypes']),
105
106
  'customCommissions': (json['customCommissions'] === null || json['customCommissions'] === undefined) ? json['customCommissions'] : (0, HttpLink_1.HttpLinkFromJSON)(json['customCommissions']),
106
107
  'tags': json['tags'],
@@ -157,7 +158,7 @@ function UserToJSON(value) {
157
158
  'rules': (0, HttpLink_1.HttpLinkToJSON)(value['rules']),
158
159
  'restrictedFeatures': (0, HttpLink_1.HttpLinkToJSON)(value['restrictedFeatures']),
159
160
  'restrictedProductTypes': (0, HttpLink_1.HttpLinkToJSON)(value['restrictedProductTypes']),
160
- 'restrictedProductStorageTypes': (0, HttpLink_1.HttpLinkToJSON)(value['restrictedProductStorageTypes']),
161
+ 'restrictedProductStorageTypes': (value['restrictedProductStorageTypes'] === null || value['restrictedProductStorageTypes'] === undefined) ? value['restrictedProductStorageTypes'] : value['restrictedProductStorageTypes'].map(ProductStorageType_1.ProductStorageTypeToJSON),
161
162
  'restrictedNotificationTypes': (0, HttpLink_1.HttpLinkToJSON)(value['restrictedNotificationTypes']),
162
163
  'customCommissions': (0, HttpLink_1.HttpLinkToJSON)(value['customCommissions']),
163
164
  'tags': value['tags'],
@@ -13,6 +13,7 @@ import type { UserCompany } from './UserCompany';
13
13
  import type { Address } from './Address';
14
14
  import type { UserRole } from './UserRole';
15
15
  import type { UserDelegatedServices } from './UserDelegatedServices';
16
+ import type { ProductStorageType } from './ProductStorageType';
16
17
  import type { UserJournalUpdateParameters } from './UserJournalUpdateParameters';
17
18
  import type { Gender } from './Gender';
18
19
  /**
@@ -129,6 +130,12 @@ export interface UserUpdateParameters {
129
130
  * @memberof UserUpdateParameters
130
131
  */
131
132
  delegatedServices?: UserDelegatedServices;
133
+ /**
134
+ *
135
+ * @type {Array<ProductStorageType>}
136
+ * @memberof UserUpdateParameters
137
+ */
138
+ restrictedProductStorageTypes?: Array<ProductStorageType>;
132
139
  /**
133
140
  * Labels of the client
134
141
  * @type {Array<string>}
@@ -19,6 +19,7 @@ var UserCompany_1 = require("./UserCompany");
19
19
  var Address_1 = require("./Address");
20
20
  var UserRole_1 = require("./UserRole");
21
21
  var UserDelegatedServices_1 = require("./UserDelegatedServices");
22
+ var ProductStorageType_1 = require("./ProductStorageType");
22
23
  var UserJournalUpdateParameters_1 = require("./UserJournalUpdateParameters");
23
24
  var Gender_1 = require("./Gender");
24
25
  /**
@@ -55,6 +56,7 @@ function UserUpdateParametersFromJSONTyped(json, ignoreDiscriminator) {
55
56
  'company': (json['company'] === null || json['company'] === undefined) ? json['company'] : (0, UserCompany_1.UserCompanyFromJSON)(json['company']),
56
57
  'pickupEnabled': json['pickupEnabled'],
57
58
  'delegatedServices': (json['delegatedServices'] === null || json['delegatedServices'] === undefined) ? json['delegatedServices'] : (0, UserDelegatedServices_1.UserDelegatedServicesFromJSON)(json['delegatedServices']),
59
+ 'restrictedProductStorageTypes': (json['restrictedProductStorageTypes'] === null || json['restrictedProductStorageTypes'] === undefined) ? json['restrictedProductStorageTypes'] : json['restrictedProductStorageTypes'].map(ProductStorageType_1.ProductStorageTypeFromJSON),
58
60
  'tags': json['tags'],
59
61
  'isMangopaySynced': json['isMangopaySynced'],
60
62
  'journal': (json['journal'] === null || json['journal'] === undefined) ? json['journal'] : (0, UserJournalUpdateParameters_1.UserJournalUpdateParametersFromJSON)(json['journal']),
@@ -84,6 +86,7 @@ function UserUpdateParametersToJSON(value) {
84
86
  'company': (0, UserCompany_1.UserCompanyToJSON)(value['company']),
85
87
  'pickupEnabled': value['pickupEnabled'],
86
88
  'delegatedServices': (0, UserDelegatedServices_1.UserDelegatedServicesToJSON)(value['delegatedServices']),
89
+ 'restrictedProductStorageTypes': (value['restrictedProductStorageTypes'] === null || value['restrictedProductStorageTypes'] === undefined) ? value['restrictedProductStorageTypes'] : value['restrictedProductStorageTypes'].map(ProductStorageType_1.ProductStorageTypeToJSON),
87
90
  'tags': value['tags'],
88
91
  'isMangopaySynced': value['isMangopaySynced'],
89
92
  'journal': (0, UserJournalUpdateParameters_1.UserJournalUpdateParametersToJSON)(value['journal']),
@@ -11,7 +11,7 @@ export * from './PaginatedUsers';
11
11
  export * from './PagingMetadata';
12
12
  export * from './PasswordResetCompletionParameters';
13
13
  export * from './PasswordResetCreationParameters';
14
- export * from './ProductStorageTypeLink';
14
+ export * from './ProductStorageType';
15
15
  export * from './ProductTypeLink';
16
16
  export * from './RestError';
17
17
  export * from './ScaEnrollmentStatus';
@@ -37,7 +37,6 @@ export * from './UserJournalUpdateParameters';
37
37
  export * from './UserMangopayTarget';
38
38
  export * from './UserRestrictedFeatureCreationParameter';
39
39
  export * from './UserRestrictedNotificationTypeCreationParameter';
40
- export * from './UserRestrictedProductStorageTypeCreationParameter';
41
40
  export * from './UserRestrictedProductTypeCreationParameter';
42
41
  export * from './UserRole';
43
42
  export * from './UserRule';
@@ -29,7 +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("./ProductStorageTypeLink"), exports);
32
+ __exportStar(require("./ProductStorageType"), exports);
33
33
  __exportStar(require("./ProductTypeLink"), exports);
34
34
  __exportStar(require("./RestError"), exports);
35
35
  __exportStar(require("./ScaEnrollmentStatus"), exports);
@@ -55,7 +55,6 @@ __exportStar(require("./UserJournalUpdateParameters"), exports);
55
55
  __exportStar(require("./UserMangopayTarget"), exports);
56
56
  __exportStar(require("./UserRestrictedFeatureCreationParameter"), exports);
57
57
  __exportStar(require("./UserRestrictedNotificationTypeCreationParameter"), exports);
58
- __exportStar(require("./UserRestrictedProductStorageTypeCreationParameter"), exports);
59
58
  __exportStar(require("./UserRestrictedProductTypeCreationParameter"), exports);
60
59
  __exportStar(require("./UserRole"), exports);
61
60
  __exportStar(require("./UserRule"), exports);
@@ -1,43 +0,0 @@
1
- /**
2
- * lcdp-monolith-service
3
- * This is the REST API of LCDP products
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- * Contact: contact@lecomptoirdespharmacies.fr
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- *
14
- * @export
15
- * @interface ProductStorageTypeLink
16
- */
17
- export interface ProductStorageTypeLink {
18
- /**
19
- * Any URL that is using http or https protocol
20
- * @type {string}
21
- * @memberof ProductStorageTypeLink
22
- */
23
- href: string;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof ProductStorageTypeLink
28
- */
29
- id?: string;
30
- /**
31
- *
32
- * @type {string}
33
- * @memberof ProductStorageTypeLink
34
- */
35
- name?: string;
36
- }
37
- /**
38
- * Check if a given object implements the ProductStorageTypeLink interface.
39
- */
40
- export declare function instanceOfProductStorageTypeLink(value: object): value is ProductStorageTypeLink;
41
- export declare function ProductStorageTypeLinkFromJSON(json: any): ProductStorageTypeLink;
42
- export declare function ProductStorageTypeLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductStorageTypeLink;
43
- export declare function ProductStorageTypeLinkToJSON(value?: ProductStorageTypeLink | 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.ProductStorageTypeLinkToJSON = exports.ProductStorageTypeLinkFromJSONTyped = exports.ProductStorageTypeLinkFromJSON = exports.instanceOfProductStorageTypeLink = void 0;
17
- /**
18
- * Check if a given object implements the ProductStorageTypeLink interface.
19
- */
20
- function instanceOfProductStorageTypeLink(value) {
21
- if (!('href' in value) || value['href'] === undefined)
22
- return false;
23
- return true;
24
- }
25
- exports.instanceOfProductStorageTypeLink = instanceOfProductStorageTypeLink;
26
- function ProductStorageTypeLinkFromJSON(json) {
27
- return ProductStorageTypeLinkFromJSONTyped(json, false);
28
- }
29
- exports.ProductStorageTypeLinkFromJSON = ProductStorageTypeLinkFromJSON;
30
- function ProductStorageTypeLinkFromJSONTyped(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.ProductStorageTypeLinkFromJSONTyped = ProductStorageTypeLinkFromJSONTyped;
41
- function ProductStorageTypeLinkToJSON(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.ProductStorageTypeLinkToJSON = ProductStorageTypeLinkToJSON;
@@ -1,31 +0,0 @@
1
- /**
2
- * lcdp-monolith-service
3
- * This is the REST API of LCDP products
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- * Contact: contact@lecomptoirdespharmacies.fr
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- *
14
- * @export
15
- * @interface UserRestrictedProductStorageTypeCreationParameter
16
- */
17
- export interface UserRestrictedProductStorageTypeCreationParameter {
18
- /**
19
- * Product storage type id
20
- * @type {string}
21
- * @memberof UserRestrictedProductStorageTypeCreationParameter
22
- */
23
- productStorageTypeId: string;
24
- }
25
- /**
26
- * Check if a given object implements the UserRestrictedProductStorageTypeCreationParameter interface.
27
- */
28
- export declare function instanceOfUserRestrictedProductStorageTypeCreationParameter(value: object): value is UserRestrictedProductStorageTypeCreationParameter;
29
- export declare function UserRestrictedProductStorageTypeCreationParameterFromJSON(json: any): UserRestrictedProductStorageTypeCreationParameter;
30
- export declare function UserRestrictedProductStorageTypeCreationParameterFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserRestrictedProductStorageTypeCreationParameter;
31
- export declare function UserRestrictedProductStorageTypeCreationParameterToJSON(value?: UserRestrictedProductStorageTypeCreationParameter | null): any;
@@ -1,47 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * lcdp-monolith-service
6
- * This is the REST API of LCDP products
7
- *
8
- * The version of the OpenAPI document: 1.0.0
9
- * Contact: contact@lecomptoirdespharmacies.fr
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.UserRestrictedProductStorageTypeCreationParameterToJSON = exports.UserRestrictedProductStorageTypeCreationParameterFromJSONTyped = exports.UserRestrictedProductStorageTypeCreationParameterFromJSON = exports.instanceOfUserRestrictedProductStorageTypeCreationParameter = void 0;
17
- /**
18
- * Check if a given object implements the UserRestrictedProductStorageTypeCreationParameter interface.
19
- */
20
- function instanceOfUserRestrictedProductStorageTypeCreationParameter(value) {
21
- if (!('productStorageTypeId' in value) || value['productStorageTypeId'] === undefined)
22
- return false;
23
- return true;
24
- }
25
- exports.instanceOfUserRestrictedProductStorageTypeCreationParameter = instanceOfUserRestrictedProductStorageTypeCreationParameter;
26
- function UserRestrictedProductStorageTypeCreationParameterFromJSON(json) {
27
- return UserRestrictedProductStorageTypeCreationParameterFromJSONTyped(json, false);
28
- }
29
- exports.UserRestrictedProductStorageTypeCreationParameterFromJSON = UserRestrictedProductStorageTypeCreationParameterFromJSON;
30
- function UserRestrictedProductStorageTypeCreationParameterFromJSONTyped(json, ignoreDiscriminator) {
31
- if (json == null) {
32
- return json;
33
- }
34
- return {
35
- 'productStorageTypeId': json['productStorageTypeId'],
36
- };
37
- }
38
- exports.UserRestrictedProductStorageTypeCreationParameterFromJSONTyped = UserRestrictedProductStorageTypeCreationParameterFromJSONTyped;
39
- function UserRestrictedProductStorageTypeCreationParameterToJSON(value) {
40
- if (value == null) {
41
- return value;
42
- }
43
- return {
44
- 'productStorageTypeId': value['productStorageTypeId'],
45
- };
46
- }
47
- exports.UserRestrictedProductStorageTypeCreationParameterToJSON = UserRestrictedProductStorageTypeCreationParameterToJSON;