@lcdp/api-react-rest-client 3.1.10 → 3.1.11-develop.24569946879
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/ProductInsight.d.ts +6 -6
- package/catalog/src/models/ProductInsight.js +6 -6
- package/catalog/src/models/ProductInsightCreateOrUpdateParameters.d.ts +8 -6
- package/catalog/src/models/ProductInsightCreateOrUpdateParameters.js +6 -4
- package/catalog/src/models/ProductSecondaryType.d.ts +25 -0
- package/catalog/src/models/ProductSecondaryType.js +48 -0
- package/catalog/src/models/ProductType.d.ts +28 -0
- package/catalog/src/models/ProductType.js +51 -0
- package/catalog/src/models/index.d.ts +2 -2
- package/catalog/src/models/index.js +2 -2
- package/factory/src/models/Product.d.ts +4 -3
- package/factory/src/models/Product.js +3 -2
- package/factory/src/models/ProductType.d.ts +28 -0
- package/factory/src/models/ProductType.js +51 -0
- package/factory/src/models/index.d.ts +1 -0
- package/factory/src/models/index.js +1 -0
- package/package.json +1 -1
- package/product/src/apis/ManageProductApi.d.ts +2 -2
- package/product/src/apis/ManageProductApi.js +2 -2
- package/product/src/apis/index.d.ts +0 -1
- package/product/src/apis/index.js +0 -1
- package/product/src/models/ProductCreationOrUpdateParameters.d.ts +8 -6
- package/product/src/models/ProductCreationOrUpdateParameters.js +6 -4
- package/product/src/models/ProductSecondaryType.d.ts +7 -19
- package/product/src/models/ProductSecondaryType.js +18 -17
- package/product/src/models/ProductType.d.ts +10 -19
- package/product/src/models/ProductType.js +21 -17
- package/shopping-cart/src/apis/ManageCartApi.d.ts +16 -0
- package/shopping-cart/src/apis/ManageCartApi.js +82 -4
- package/shopping-cart/src/apis/SearchCartApi.d.ts +1 -0
- package/shopping-cart/src/apis/SearchCartApi.js +3 -0
- package/user/src/apis/ManageUserRestrictionApi.d.ts +1 -25
- package/user/src/apis/ManageUserRestrictionApi.js +12 -152
- package/user/src/apis/SearchUserRestrictionApi.d.ts +1 -12
- package/user/src/apis/SearchUserRestrictionApi.js +0 -79
- package/user/src/models/ProductType.d.ts +28 -0
- package/user/src/models/ProductType.js +51 -0
- package/user/src/models/RestrictedProductType.d.ts +45 -0
- package/user/src/models/RestrictedProductType.js +54 -0
- package/user/src/models/User.d.ts +3 -2
- package/user/src/models/User.js +3 -2
- package/user/src/models/UserUpdateParameters.d.ts +7 -0
- package/user/src/models/UserUpdateParameters.js +3 -0
- package/user/src/models/index.d.ts +2 -2
- package/user/src/models/index.js +2 -2
- package/catalog/src/models/ProductSecondaryTypeLink.d.ts +0 -43
- package/catalog/src/models/ProductSecondaryTypeLink.js +0 -51
- package/catalog/src/models/ProductTypeLink.d.ts +0 -43
- package/catalog/src/models/ProductTypeLink.js +0 -51
- package/product/src/apis/SearchProductMetadataApi.d.ts +0 -56
- package/product/src/apis/SearchProductMetadataApi.js +0 -390
- package/user/src/models/ProductTypeLink.d.ts +0 -43
- package/user/src/models/ProductTypeLink.js +0 -51
- package/user/src/models/UserRestrictedProductTypeCreationParameter.d.ts +0 -31
- package/user/src/models/UserRestrictedProductTypeCreationParameter.js +0 -47
|
@@ -309,85 +309,6 @@ var SearchUserRestrictionApi = /** @class */ (function (_super) {
|
|
|
309
309
|
});
|
|
310
310
|
});
|
|
311
311
|
};
|
|
312
|
-
/**
|
|
313
|
-
* Get user restricted product types
|
|
314
|
-
*/
|
|
315
|
-
SearchUserRestrictionApi.prototype.getUserRestrictedProductTypesRaw = function (requestParameters, initOverrides) {
|
|
316
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
317
|
-
var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType, response_4;
|
|
318
|
-
return __generator(this, function (_c) {
|
|
319
|
-
switch (_c.label) {
|
|
320
|
-
case 0:
|
|
321
|
-
if (requestParameters['userId'] == null) {
|
|
322
|
-
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling getUserRestrictedProductTypes().');
|
|
323
|
-
}
|
|
324
|
-
queryParameters = {};
|
|
325
|
-
headerParameters = {};
|
|
326
|
-
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
327
|
-
_a = headerParameters;
|
|
328
|
-
_b = "x-api-key";
|
|
329
|
-
return [4 /*yield*/, this.configuration.apiKey("x-api-key")];
|
|
330
|
-
case 1:
|
|
331
|
-
_a[_b] = _c.sent(); // apiKeyAuth authentication
|
|
332
|
-
_c.label = 2;
|
|
333
|
-
case 2:
|
|
334
|
-
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
335
|
-
token = this.configuration.accessToken;
|
|
336
|
-
return [4 /*yield*/, token("bearerAuth", [])];
|
|
337
|
-
case 3:
|
|
338
|
-
tokenString = _c.sent();
|
|
339
|
-
if (tokenString) {
|
|
340
|
-
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
341
|
-
}
|
|
342
|
-
_c.label = 4;
|
|
343
|
-
case 4:
|
|
344
|
-
_c.trys.push([4, 6, , 7]);
|
|
345
|
-
return [4 /*yield*/, this.request({
|
|
346
|
-
path: "/users/{userId}/restricted-product-types".replace("{".concat("userId", "}"), encodeURIComponent(String(requestParameters['userId']))),
|
|
347
|
-
method: 'GET',
|
|
348
|
-
headers: headerParameters,
|
|
349
|
-
query: queryParameters,
|
|
350
|
-
}, initOverrides)];
|
|
351
|
-
case 5:
|
|
352
|
-
response = _c.sent();
|
|
353
|
-
contentType = response.headers.get("content-type");
|
|
354
|
-
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
355
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.ProductTypeLinkFromJSON); })];
|
|
356
|
-
}
|
|
357
|
-
else if (contentType && contentType.indexOf("text/plain") !== -1) {
|
|
358
|
-
return [2 /*return*/, new runtime.TextApiResponse(response)];
|
|
359
|
-
}
|
|
360
|
-
else {
|
|
361
|
-
// TODO : Better handling of others application types
|
|
362
|
-
return [2 /*return*/, new runtime.BlobWithMetaApiResponse(response)];
|
|
363
|
-
}
|
|
364
|
-
return [3 /*break*/, 7];
|
|
365
|
-
case 6:
|
|
366
|
-
response_4 = _c.sent();
|
|
367
|
-
console.debug(response_4);
|
|
368
|
-
throw response_4;
|
|
369
|
-
case 7: return [2 /*return*/];
|
|
370
|
-
}
|
|
371
|
-
});
|
|
372
|
-
});
|
|
373
|
-
};
|
|
374
|
-
/**
|
|
375
|
-
* Get user restricted product types
|
|
376
|
-
*/
|
|
377
|
-
SearchUserRestrictionApi.prototype.getUserRestrictedProductTypes = function (requestParameters, initOverrides) {
|
|
378
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
379
|
-
var response;
|
|
380
|
-
return __generator(this, function (_a) {
|
|
381
|
-
switch (_a.label) {
|
|
382
|
-
case 0: return [4 /*yield*/, this.getUserRestrictedProductTypesRaw(requestParameters, initOverrides)];
|
|
383
|
-
case 1:
|
|
384
|
-
response = _a.sent();
|
|
385
|
-
return [4 /*yield*/, response.value()];
|
|
386
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
387
|
-
}
|
|
388
|
-
});
|
|
389
|
-
});
|
|
390
|
-
};
|
|
391
312
|
return SearchUserRestrictionApi;
|
|
392
313
|
}(runtime.BaseAPI));
|
|
393
314
|
exports.SearchUserRestrictionApi = SearchUserRestrictionApi;
|
|
@@ -0,0 +1,28 @@
|
|
|
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 ProductType: {
|
|
17
|
+
readonly PARAPHARMACIE: "PARAPHARMACIE";
|
|
18
|
+
readonly DM: "DM";
|
|
19
|
+
readonly MEDICAMENT: "MEDICAMENT";
|
|
20
|
+
readonly HOMEOPATHIE: "HOMEOPATHIE";
|
|
21
|
+
readonly VETERINAIRE: "VETERINAIRE";
|
|
22
|
+
readonly COMPLEMENT: "COMPLEMENT";
|
|
23
|
+
};
|
|
24
|
+
export declare type ProductType = typeof ProductType[keyof typeof ProductType];
|
|
25
|
+
export declare function instanceOfProductType(value: any): boolean;
|
|
26
|
+
export declare function ProductTypeFromJSON(json: any): ProductType;
|
|
27
|
+
export declare function ProductTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductType;
|
|
28
|
+
export declare function ProductTypeToJSON(value?: ProductType | 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.ProductTypeToJSON = exports.ProductTypeFromJSONTyped = exports.ProductTypeFromJSON = exports.instanceOfProductType = exports.ProductType = void 0;
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
exports.ProductType = {
|
|
22
|
+
PARAPHARMACIE: 'PARAPHARMACIE',
|
|
23
|
+
DM: 'DM',
|
|
24
|
+
MEDICAMENT: 'MEDICAMENT',
|
|
25
|
+
HOMEOPATHIE: 'HOMEOPATHIE',
|
|
26
|
+
VETERINAIRE: 'VETERINAIRE',
|
|
27
|
+
COMPLEMENT: 'COMPLEMENT'
|
|
28
|
+
};
|
|
29
|
+
function instanceOfProductType(value) {
|
|
30
|
+
for (var key in exports.ProductType) {
|
|
31
|
+
if (Object.prototype.hasOwnProperty.call(exports.ProductType, key)) {
|
|
32
|
+
if (exports.ProductType[key] === value) {
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
exports.instanceOfProductType = instanceOfProductType;
|
|
40
|
+
function ProductTypeFromJSON(json) {
|
|
41
|
+
return ProductTypeFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
exports.ProductTypeFromJSON = ProductTypeFromJSON;
|
|
44
|
+
function ProductTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
exports.ProductTypeFromJSONTyped = ProductTypeFromJSONTyped;
|
|
48
|
+
function ProductTypeToJSON(value) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
exports.ProductTypeToJSON = ProductTypeToJSON;
|
|
@@ -0,0 +1,45 @@
|
|
|
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 { ProductType } from './ProductType';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface RestrictedProductType
|
|
17
|
+
*/
|
|
18
|
+
export interface RestrictedProductType {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<string>}
|
|
22
|
+
* @memberof RestrictedProductType
|
|
23
|
+
*/
|
|
24
|
+
actions?: Array<RestrictedProductTypeActionsEnum>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {ProductType}
|
|
28
|
+
* @memberof RestrictedProductType
|
|
29
|
+
*/
|
|
30
|
+
target?: ProductType;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export declare const RestrictedProductTypeActionsEnum: {
|
|
36
|
+
readonly BUY: "BUY";
|
|
37
|
+
};
|
|
38
|
+
export declare type RestrictedProductTypeActionsEnum = typeof RestrictedProductTypeActionsEnum[keyof typeof RestrictedProductTypeActionsEnum];
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the RestrictedProductType interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfRestrictedProductType(value: object): value is RestrictedProductType;
|
|
43
|
+
export declare function RestrictedProductTypeFromJSON(json: any): RestrictedProductType;
|
|
44
|
+
export declare function RestrictedProductTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): RestrictedProductType;
|
|
45
|
+
export declare function RestrictedProductTypeToJSON(value?: RestrictedProductType | null): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
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.RestrictedProductTypeToJSON = exports.RestrictedProductTypeFromJSONTyped = exports.RestrictedProductTypeFromJSON = exports.instanceOfRestrictedProductType = exports.RestrictedProductTypeActionsEnum = void 0;
|
|
17
|
+
var ProductType_1 = require("./ProductType");
|
|
18
|
+
/**
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
exports.RestrictedProductTypeActionsEnum = {
|
|
22
|
+
BUY: 'BUY'
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the RestrictedProductType interface.
|
|
26
|
+
*/
|
|
27
|
+
function instanceOfRestrictedProductType(value) {
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
exports.instanceOfRestrictedProductType = instanceOfRestrictedProductType;
|
|
31
|
+
function RestrictedProductTypeFromJSON(json) {
|
|
32
|
+
return RestrictedProductTypeFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
exports.RestrictedProductTypeFromJSON = RestrictedProductTypeFromJSON;
|
|
35
|
+
function RestrictedProductTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'actions': json['actions'],
|
|
41
|
+
'target': (json['target'] === null || json['target'] === undefined) ? json['target'] : (0, ProductType_1.ProductTypeFromJSON)(json['target']),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
exports.RestrictedProductTypeFromJSONTyped = RestrictedProductTypeFromJSONTyped;
|
|
45
|
+
function RestrictedProductTypeToJSON(value) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'actions': value['actions'],
|
|
51
|
+
'target': (0, ProductType_1.ProductTypeToJSON)(value['target']),
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
exports.RestrictedProductTypeToJSON = RestrictedProductTypeToJSON;
|
|
@@ -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 { RestrictedProductType } from './RestrictedProductType';
|
|
18
19
|
import type { HttpLink } from './HttpLink';
|
|
19
20
|
import type { Gender } from './Gender';
|
|
20
21
|
import type { ScaEnrollmentStatus } from './ScaEnrollmentStatus';
|
|
@@ -267,10 +268,10 @@ export interface User {
|
|
|
267
268
|
restrictedFeatures?: HttpLink;
|
|
268
269
|
/**
|
|
269
270
|
*
|
|
270
|
-
* @type {
|
|
271
|
+
* @type {Array<RestrictedProductType>}
|
|
271
272
|
* @memberof User
|
|
272
273
|
*/
|
|
273
|
-
restrictedProductTypes?:
|
|
274
|
+
restrictedProductTypes?: Array<RestrictedProductType>;
|
|
274
275
|
/**
|
|
275
276
|
*
|
|
276
277
|
* @type {Array<RestrictedProductStorageType>}
|
package/user/src/models/User.js
CHANGED
|
@@ -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 RestrictedProductType_1 = require("./RestrictedProductType");
|
|
24
25
|
var HttpLink_1 = require("./HttpLink");
|
|
25
26
|
var Gender_1 = require("./Gender");
|
|
26
27
|
var ScaEnrollmentStatus_1 = require("./ScaEnrollmentStatus");
|
|
@@ -105,7 +106,7 @@ function UserFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
105
106
|
'threads': (json['threads'] === null || json['threads'] === undefined) ? json['threads'] : (0, UserThreads_1.UserThreadsFromJSON)(json['threads']),
|
|
106
107
|
'rules': (json['rules'] === null || json['rules'] === undefined) ? json['rules'] : (0, HttpLink_1.HttpLinkFromJSON)(json['rules']),
|
|
107
108
|
'restrictedFeatures': (json['restrictedFeatures'] === null || json['restrictedFeatures'] === undefined) ? json['restrictedFeatures'] : (0, HttpLink_1.HttpLinkFromJSON)(json['restrictedFeatures']),
|
|
108
|
-
'restrictedProductTypes': (json['restrictedProductTypes'] === null || json['restrictedProductTypes'] === undefined) ? json['restrictedProductTypes'] :
|
|
109
|
+
'restrictedProductTypes': (json['restrictedProductTypes'] === null || json['restrictedProductTypes'] === undefined) ? json['restrictedProductTypes'] : json['restrictedProductTypes'].map(RestrictedProductType_1.RestrictedProductTypeFromJSON),
|
|
109
110
|
'restrictedProductStorageTypes': (json['restrictedProductStorageTypes'] === null || json['restrictedProductStorageTypes'] === undefined) ? json['restrictedProductStorageTypes'] : json['restrictedProductStorageTypes'].map(RestrictedProductStorageType_1.RestrictedProductStorageTypeFromJSON),
|
|
110
111
|
'restrictedNotificationTypes': (json['restrictedNotificationTypes'] === null || json['restrictedNotificationTypes'] === undefined) ? json['restrictedNotificationTypes'] : (0, HttpLink_1.HttpLinkFromJSON)(json['restrictedNotificationTypes']),
|
|
111
112
|
'customCommissions': (json['customCommissions'] === null || json['customCommissions'] === undefined) ? json['customCommissions'] : (0, HttpLink_1.HttpLinkFromJSON)(json['customCommissions']),
|
|
@@ -166,7 +167,7 @@ function UserToJSON(value) {
|
|
|
166
167
|
'threads': (0, UserThreads_1.UserThreadsToJSON)(value['threads']),
|
|
167
168
|
'rules': (0, HttpLink_1.HttpLinkToJSON)(value['rules']),
|
|
168
169
|
'restrictedFeatures': (0, HttpLink_1.HttpLinkToJSON)(value['restrictedFeatures']),
|
|
169
|
-
'restrictedProductTypes': (
|
|
170
|
+
'restrictedProductTypes': (value['restrictedProductTypes'] === null || value['restrictedProductTypes'] === undefined) ? value['restrictedProductTypes'] : value['restrictedProductTypes'].map(RestrictedProductType_1.RestrictedProductTypeToJSON),
|
|
170
171
|
'restrictedProductStorageTypes': (value['restrictedProductStorageTypes'] === null || value['restrictedProductStorageTypes'] === undefined) ? value['restrictedProductStorageTypes'] : value['restrictedProductStorageTypes'].map(RestrictedProductStorageType_1.RestrictedProductStorageTypeToJSON),
|
|
171
172
|
'restrictedNotificationTypes': (0, HttpLink_1.HttpLinkToJSON)(value['restrictedNotificationTypes']),
|
|
172
173
|
'customCommissions': (0, HttpLink_1.HttpLinkToJSON)(value['customCommissions']),
|
|
@@ -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 { RestrictedProductType } from './RestrictedProductType';
|
|
16
17
|
import type { RestrictedProductStorageType } from './RestrictedProductStorageType';
|
|
17
18
|
import type { UserJournalUpdateParameters } from './UserJournalUpdateParameters';
|
|
18
19
|
import type { Gender } from './Gender';
|
|
@@ -136,6 +137,12 @@ export interface UserUpdateParameters {
|
|
|
136
137
|
* @memberof UserUpdateParameters
|
|
137
138
|
*/
|
|
138
139
|
delegatedServices?: UserDelegatedServices;
|
|
140
|
+
/**
|
|
141
|
+
*
|
|
142
|
+
* @type {Array<RestrictedProductType>}
|
|
143
|
+
* @memberof UserUpdateParameters
|
|
144
|
+
*/
|
|
145
|
+
restrictedProductTypes?: Array<RestrictedProductType>;
|
|
139
146
|
/**
|
|
140
147
|
*
|
|
141
148
|
* @type {Array<RestrictedProductStorageType>}
|
|
@@ -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 RestrictedProductType_1 = require("./RestrictedProductType");
|
|
22
23
|
var RestrictedProductStorageType_1 = require("./RestrictedProductStorageType");
|
|
23
24
|
var UserJournalUpdateParameters_1 = require("./UserJournalUpdateParameters");
|
|
24
25
|
var Gender_1 = require("./Gender");
|
|
@@ -57,6 +58,7 @@ function UserUpdateParametersFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
57
58
|
'company': (json['company'] === null || json['company'] === undefined) ? json['company'] : (0, UserCompany_1.UserCompanyFromJSON)(json['company']),
|
|
58
59
|
'pickupEnabled': json['pickupEnabled'],
|
|
59
60
|
'delegatedServices': (json['delegatedServices'] === null || json['delegatedServices'] === undefined) ? json['delegatedServices'] : (0, UserDelegatedServices_1.UserDelegatedServicesFromJSON)(json['delegatedServices']),
|
|
61
|
+
'restrictedProductTypes': (json['restrictedProductTypes'] === null || json['restrictedProductTypes'] === undefined) ? json['restrictedProductTypes'] : json['restrictedProductTypes'].map(RestrictedProductType_1.RestrictedProductTypeFromJSON),
|
|
60
62
|
'restrictedProductStorageTypes': (json['restrictedProductStorageTypes'] === null || json['restrictedProductStorageTypes'] === undefined) ? json['restrictedProductStorageTypes'] : json['restrictedProductStorageTypes'].map(RestrictedProductStorageType_1.RestrictedProductStorageTypeFromJSON),
|
|
61
63
|
'tags': json['tags'],
|
|
62
64
|
'isMangopaySynced': json['isMangopaySynced'],
|
|
@@ -88,6 +90,7 @@ function UserUpdateParametersToJSON(value) {
|
|
|
88
90
|
'company': (0, UserCompany_1.UserCompanyToJSON)(value['company']),
|
|
89
91
|
'pickupEnabled': value['pickupEnabled'],
|
|
90
92
|
'delegatedServices': (0, UserDelegatedServices_1.UserDelegatedServicesToJSON)(value['delegatedServices']),
|
|
93
|
+
'restrictedProductTypes': (value['restrictedProductTypes'] === null || value['restrictedProductTypes'] === undefined) ? value['restrictedProductTypes'] : value['restrictedProductTypes'].map(RestrictedProductType_1.RestrictedProductTypeToJSON),
|
|
91
94
|
'restrictedProductStorageTypes': (value['restrictedProductStorageTypes'] === null || value['restrictedProductStorageTypes'] === undefined) ? value['restrictedProductStorageTypes'] : value['restrictedProductStorageTypes'].map(RestrictedProductStorageType_1.RestrictedProductStorageTypeToJSON),
|
|
92
95
|
'tags': value['tags'],
|
|
93
96
|
'isMangopaySynced': value['isMangopaySynced'],
|
|
@@ -13,9 +13,10 @@ export * from './PagingMetadata';
|
|
|
13
13
|
export * from './PasswordResetCompletionParameters';
|
|
14
14
|
export * from './PasswordResetCreationParameters';
|
|
15
15
|
export * from './ProductStorageType';
|
|
16
|
-
export * from './
|
|
16
|
+
export * from './ProductType';
|
|
17
17
|
export * from './RestError';
|
|
18
18
|
export * from './RestrictedProductStorageType';
|
|
19
|
+
export * from './RestrictedProductType';
|
|
19
20
|
export * from './ScaEnrollmentStatus';
|
|
20
21
|
export * from './SomeonePasswordUpdateParameters';
|
|
21
22
|
export * from './ThreadLink';
|
|
@@ -42,7 +43,6 @@ export * from './UserMangopayTarget';
|
|
|
42
43
|
export * from './UserMangopayUbo';
|
|
43
44
|
export * from './UserRestrictedFeatureCreationParameter';
|
|
44
45
|
export * from './UserRestrictedNotificationTypeCreationParameter';
|
|
45
|
-
export * from './UserRestrictedProductTypeCreationParameter';
|
|
46
46
|
export * from './UserRole';
|
|
47
47
|
export * from './UserRule';
|
|
48
48
|
export * from './UserRuleActionEnum';
|
package/user/src/models/index.js
CHANGED
|
@@ -31,9 +31,10 @@ __exportStar(require("./PagingMetadata"), exports);
|
|
|
31
31
|
__exportStar(require("./PasswordResetCompletionParameters"), exports);
|
|
32
32
|
__exportStar(require("./PasswordResetCreationParameters"), exports);
|
|
33
33
|
__exportStar(require("./ProductStorageType"), exports);
|
|
34
|
-
__exportStar(require("./
|
|
34
|
+
__exportStar(require("./ProductType"), exports);
|
|
35
35
|
__exportStar(require("./RestError"), exports);
|
|
36
36
|
__exportStar(require("./RestrictedProductStorageType"), exports);
|
|
37
|
+
__exportStar(require("./RestrictedProductType"), exports);
|
|
37
38
|
__exportStar(require("./ScaEnrollmentStatus"), exports);
|
|
38
39
|
__exportStar(require("./SomeonePasswordUpdateParameters"), exports);
|
|
39
40
|
__exportStar(require("./ThreadLink"), exports);
|
|
@@ -60,7 +61,6 @@ __exportStar(require("./UserMangopayTarget"), exports);
|
|
|
60
61
|
__exportStar(require("./UserMangopayUbo"), exports);
|
|
61
62
|
__exportStar(require("./UserRestrictedFeatureCreationParameter"), exports);
|
|
62
63
|
__exportStar(require("./UserRestrictedNotificationTypeCreationParameter"), exports);
|
|
63
|
-
__exportStar(require("./UserRestrictedProductTypeCreationParameter"), exports);
|
|
64
64
|
__exportStar(require("./UserRole"), exports);
|
|
65
65
|
__exportStar(require("./UserRule"), exports);
|
|
66
66
|
__exportStar(require("./UserRuleActionEnum"), exports);
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* lcdp-catalog
|
|
3
|
-
* This is the REST API of LCDP catalog
|
|
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 ProductSecondaryTypeLink
|
|
16
|
-
*/
|
|
17
|
-
export interface ProductSecondaryTypeLink {
|
|
18
|
-
/**
|
|
19
|
-
* Any URL that is using http or https protocol
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof ProductSecondaryTypeLink
|
|
22
|
-
*/
|
|
23
|
-
href: string;
|
|
24
|
-
/**
|
|
25
|
-
* Id of the product secondary type
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof ProductSecondaryTypeLink
|
|
28
|
-
*/
|
|
29
|
-
id?: string;
|
|
30
|
-
/**
|
|
31
|
-
* Readable name for display
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof ProductSecondaryTypeLink
|
|
34
|
-
*/
|
|
35
|
-
name?: string;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Check if a given object implements the ProductSecondaryTypeLink interface.
|
|
39
|
-
*/
|
|
40
|
-
export declare function instanceOfProductSecondaryTypeLink(value: object): value is ProductSecondaryTypeLink;
|
|
41
|
-
export declare function ProductSecondaryTypeLinkFromJSON(json: any): ProductSecondaryTypeLink;
|
|
42
|
-
export declare function ProductSecondaryTypeLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductSecondaryTypeLink;
|
|
43
|
-
export declare function ProductSecondaryTypeLinkToJSON(value?: ProductSecondaryTypeLink | null): any;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* lcdp-catalog
|
|
6
|
-
* This is the REST API of LCDP catalog
|
|
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.ProductSecondaryTypeLinkToJSON = exports.ProductSecondaryTypeLinkFromJSONTyped = exports.ProductSecondaryTypeLinkFromJSON = exports.instanceOfProductSecondaryTypeLink = void 0;
|
|
17
|
-
/**
|
|
18
|
-
* Check if a given object implements the ProductSecondaryTypeLink interface.
|
|
19
|
-
*/
|
|
20
|
-
function instanceOfProductSecondaryTypeLink(value) {
|
|
21
|
-
if (!('href' in value) || value['href'] === undefined)
|
|
22
|
-
return false;
|
|
23
|
-
return true;
|
|
24
|
-
}
|
|
25
|
-
exports.instanceOfProductSecondaryTypeLink = instanceOfProductSecondaryTypeLink;
|
|
26
|
-
function ProductSecondaryTypeLinkFromJSON(json) {
|
|
27
|
-
return ProductSecondaryTypeLinkFromJSONTyped(json, false);
|
|
28
|
-
}
|
|
29
|
-
exports.ProductSecondaryTypeLinkFromJSON = ProductSecondaryTypeLinkFromJSON;
|
|
30
|
-
function ProductSecondaryTypeLinkFromJSONTyped(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.ProductSecondaryTypeLinkFromJSONTyped = ProductSecondaryTypeLinkFromJSONTyped;
|
|
41
|
-
function ProductSecondaryTypeLinkToJSON(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.ProductSecondaryTypeLinkToJSON = ProductSecondaryTypeLinkToJSON;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* lcdp-catalog
|
|
3
|
-
* This is the REST API of LCDP catalog
|
|
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 ProductTypeLink
|
|
16
|
-
*/
|
|
17
|
-
export interface ProductTypeLink {
|
|
18
|
-
/**
|
|
19
|
-
* Any URL that is using http or https protocol
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof ProductTypeLink
|
|
22
|
-
*/
|
|
23
|
-
href: string;
|
|
24
|
-
/**
|
|
25
|
-
* Id of the product type (machine name)
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof ProductTypeLink
|
|
28
|
-
*/
|
|
29
|
-
id?: string;
|
|
30
|
-
/**
|
|
31
|
-
* Readable name for display
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof ProductTypeLink
|
|
34
|
-
*/
|
|
35
|
-
name?: string;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Check if a given object implements the ProductTypeLink interface.
|
|
39
|
-
*/
|
|
40
|
-
export declare function instanceOfProductTypeLink(value: object): value is ProductTypeLink;
|
|
41
|
-
export declare function ProductTypeLinkFromJSON(json: any): ProductTypeLink;
|
|
42
|
-
export declare function ProductTypeLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductTypeLink;
|
|
43
|
-
export declare function ProductTypeLinkToJSON(value?: ProductTypeLink | null): any;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* lcdp-catalog
|
|
6
|
-
* This is the REST API of LCDP catalog
|
|
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.ProductTypeLinkToJSON = exports.ProductTypeLinkFromJSONTyped = exports.ProductTypeLinkFromJSON = exports.instanceOfProductTypeLink = void 0;
|
|
17
|
-
/**
|
|
18
|
-
* Check if a given object implements the ProductTypeLink interface.
|
|
19
|
-
*/
|
|
20
|
-
function instanceOfProductTypeLink(value) {
|
|
21
|
-
if (!('href' in value) || value['href'] === undefined)
|
|
22
|
-
return false;
|
|
23
|
-
return true;
|
|
24
|
-
}
|
|
25
|
-
exports.instanceOfProductTypeLink = instanceOfProductTypeLink;
|
|
26
|
-
function ProductTypeLinkFromJSON(json) {
|
|
27
|
-
return ProductTypeLinkFromJSONTyped(json, false);
|
|
28
|
-
}
|
|
29
|
-
exports.ProductTypeLinkFromJSON = ProductTypeLinkFromJSON;
|
|
30
|
-
function ProductTypeLinkFromJSONTyped(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.ProductTypeLinkFromJSONTyped = ProductTypeLinkFromJSONTyped;
|
|
41
|
-
function ProductTypeLinkToJSON(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.ProductTypeLinkToJSON = ProductTypeLinkToJSON;
|
|
@@ -1,56 +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
|
-
import * as runtime from '../runtime';
|
|
13
|
-
import type { ProductSecondaryType, ProductType } from '../models/index';
|
|
14
|
-
export interface GetProductSecondaryTypeRequest {
|
|
15
|
-
secondaryTypeId: string;
|
|
16
|
-
}
|
|
17
|
-
export interface GetProductTypeRequest {
|
|
18
|
-
typeId: string;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
*/
|
|
23
|
-
export declare class SearchProductMetadataApi extends runtime.BaseAPI {
|
|
24
|
-
/**
|
|
25
|
-
* Get product secondary type
|
|
26
|
-
*/
|
|
27
|
-
getProductSecondaryTypeRaw(requestParameters: GetProductSecondaryTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductSecondaryType | runtime.BlobWithMeta>>;
|
|
28
|
-
/**
|
|
29
|
-
* Get product secondary type
|
|
30
|
-
*/
|
|
31
|
-
getProductSecondaryType(requestParameters: GetProductSecondaryTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductSecondaryType | runtime.BlobWithMeta>;
|
|
32
|
-
/**
|
|
33
|
-
* Get product secondary types
|
|
34
|
-
*/
|
|
35
|
-
getProductSecondaryTypesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ProductSecondaryType> | runtime.BlobWithMeta>>;
|
|
36
|
-
/**
|
|
37
|
-
* Get product secondary types
|
|
38
|
-
*/
|
|
39
|
-
getProductSecondaryTypes(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ProductSecondaryType> | runtime.BlobWithMeta>;
|
|
40
|
-
/**
|
|
41
|
-
* Get product type
|
|
42
|
-
*/
|
|
43
|
-
getProductTypeRaw(requestParameters: GetProductTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductType | runtime.BlobWithMeta>>;
|
|
44
|
-
/**
|
|
45
|
-
* Get product type
|
|
46
|
-
*/
|
|
47
|
-
getProductType(requestParameters: GetProductTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductType | runtime.BlobWithMeta>;
|
|
48
|
-
/**
|
|
49
|
-
* Get product types
|
|
50
|
-
*/
|
|
51
|
-
getProductTypesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ProductType> | runtime.BlobWithMeta>>;
|
|
52
|
-
/**
|
|
53
|
-
* Get product types
|
|
54
|
-
*/
|
|
55
|
-
getProductTypes(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ProductType> | runtime.BlobWithMeta>;
|
|
56
|
-
}
|