@lcdp/api-react-rest-client 2.13.9-LDS-4860-monolith-aucunes-contraintes-su.17069222825 → 2.13.9-LDS-4699-etape-1-no-more-archive-of-frid.17069308302
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/catalog/src/models/ProductStorageType.d.ts +19 -8
- package/catalog/src/models/ProductStorageType.js +17 -19
- package/magic-cart/src/models/ProductStorageType.d.ts +19 -8
- package/magic-cart/src/models/ProductStorageType.js +17 -19
- package/order/src/models/ProductStorageType.d.ts +19 -8
- package/order/src/models/ProductStorageType.js +17 -19
- package/package.json +1 -1
- package/product/src/apis/SearchProductMetadataApi.d.ts +20 -1
- package/product/src/apis/SearchProductMetadataApi.js +163 -8
- package/product/src/models/ProductCreationOrUpdateParameters.d.ts +3 -4
- package/product/src/models/ProductCreationOrUpdateParameters.js +2 -3
- package/product/src/models/ProductStorageType.d.ts +19 -8
- package/product/src/models/ProductStorageType.js +17 -19
- package/shopping-cart/src/models/ProductStorageType.d.ts +19 -8
- package/shopping-cart/src/models/ProductStorageType.js +17 -19
- package/user/src/apis/ManageUserRestrictionApi.d.ts +25 -1
- package/user/src/apis/ManageUserRestrictionApi.js +160 -20
- package/user/src/apis/SearchUserRestrictionApi.d.ts +20 -1
- package/user/src/apis/SearchUserRestrictionApi.js +167 -12
- package/user/src/models/ProductStorageTypeLink.d.ts +43 -0
- package/user/src/models/ProductStorageTypeLink.js +51 -0
- package/user/src/models/UserRestrictedProductStorageTypeCreationParameter.d.ts +31 -0
- package/user/src/models/UserRestrictedProductStorageTypeCreationParameter.js +47 -0
- package/user/src/models/index.d.ts +2 -0
- package/user/src/models/index.js +2 -0
|
@@ -151,12 +151,88 @@ 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
|
+
};
|
|
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,
|
|
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
|
-
|
|
209
|
-
console.debug(
|
|
210
|
-
throw
|
|
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,
|
|
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
|
-
|
|
288
|
-
console.debug(
|
|
289
|
-
throw
|
|
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
|
});
|
|
@@ -309,12 +385,91 @@ var SearchUserRestrictionApi = /** @class */ (function (_super) {
|
|
|
309
385
|
});
|
|
310
386
|
});
|
|
311
387
|
};
|
|
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
|
+
};
|
|
312
467
|
/**
|
|
313
468
|
* Get user restricted product types
|
|
314
469
|
*/
|
|
315
470
|
SearchUserRestrictionApi.prototype.getUserRestrictedProductTypesRaw = function (requestParameters, initOverrides) {
|
|
316
471
|
return __awaiter(this, void 0, void 0, function () {
|
|
317
|
-
var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType,
|
|
472
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType, response_6;
|
|
318
473
|
return __generator(this, function (_c) {
|
|
319
474
|
switch (_c.label) {
|
|
320
475
|
case 0:
|
|
@@ -363,9 +518,9 @@ var SearchUserRestrictionApi = /** @class */ (function (_super) {
|
|
|
363
518
|
}
|
|
364
519
|
return [3 /*break*/, 7];
|
|
365
520
|
case 6:
|
|
366
|
-
|
|
367
|
-
console.debug(
|
|
368
|
-
throw
|
|
521
|
+
response_6 = _c.sent();
|
|
522
|
+
console.debug(response_6);
|
|
523
|
+
throw response_6;
|
|
369
524
|
case 7: return [2 /*return*/];
|
|
370
525
|
}
|
|
371
526
|
});
|
|
@@ -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 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;
|
|
@@ -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.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;
|
|
@@ -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 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;
|
|
@@ -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.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;
|
|
@@ -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 './ProductStorageTypeLink';
|
|
14
15
|
export * from './ProductTypeLink';
|
|
15
16
|
export * from './RestError';
|
|
16
17
|
export * from './ScaEnrollmentStatus';
|
|
@@ -36,6 +37,7 @@ export * from './UserJournalUpdateParameters';
|
|
|
36
37
|
export * from './UserMangopayTarget';
|
|
37
38
|
export * from './UserRestrictedFeatureCreationParameter';
|
|
38
39
|
export * from './UserRestrictedNotificationTypeCreationParameter';
|
|
40
|
+
export * from './UserRestrictedProductStorageTypeCreationParameter';
|
|
39
41
|
export * from './UserRestrictedProductTypeCreationParameter';
|
|
40
42
|
export * from './UserRole';
|
|
41
43
|
export * from './UserRule';
|
package/user/src/models/index.js
CHANGED
|
@@ -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("./ProductStorageTypeLink"), exports);
|
|
32
33
|
__exportStar(require("./ProductTypeLink"), exports);
|
|
33
34
|
__exportStar(require("./RestError"), exports);
|
|
34
35
|
__exportStar(require("./ScaEnrollmentStatus"), exports);
|
|
@@ -54,6 +55,7 @@ __exportStar(require("./UserJournalUpdateParameters"), exports);
|
|
|
54
55
|
__exportStar(require("./UserMangopayTarget"), exports);
|
|
55
56
|
__exportStar(require("./UserRestrictedFeatureCreationParameter"), exports);
|
|
56
57
|
__exportStar(require("./UserRestrictedNotificationTypeCreationParameter"), exports);
|
|
58
|
+
__exportStar(require("./UserRestrictedProductStorageTypeCreationParameter"), exports);
|
|
57
59
|
__exportStar(require("./UserRestrictedProductTypeCreationParameter"), exports);
|
|
58
60
|
__exportStar(require("./UserRole"), exports);
|
|
59
61
|
__exportStar(require("./UserRule"), exports);
|