@lcdp/api-react-rest-client 3.2.0 → 3.3.0-LDS-5710-move-codegen-in-frontend.25448746177
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/auth/src/runtime.d.ts +2 -2
- package/auth/src/runtime.js +8 -12
- package/banking-operation/src/runtime.d.ts +2 -2
- package/banking-operation/src/runtime.js +8 -12
- 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/catalog/src/runtime.d.ts +2 -2
- package/catalog/src/runtime.js +8 -12
- package/challenge/src/runtime.d.ts +2 -2
- package/challenge/src/runtime.js +8 -12
- package/chargebee-hook/src/runtime.d.ts +2 -2
- package/chargebee-hook/src/runtime.js +8 -12
- package/configuration/src/runtime.d.ts +2 -2
- package/configuration/src/runtime.js +8 -12
- package/content/src/runtime.d.ts +2 -2
- package/content/src/runtime.js +8 -12
- 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/factory/src/runtime.d.ts +2 -2
- package/factory/src/runtime.js +8 -12
- package/favorite/src/runtime.d.ts +2 -2
- package/favorite/src/runtime.js +8 -12
- package/geo/src/runtime.d.ts +2 -2
- package/geo/src/runtime.js +8 -12
- package/inventory/src/runtime.d.ts +2 -2
- package/inventory/src/runtime.js +8 -12
- package/invoice/src/runtime.d.ts +2 -2
- package/invoice/src/runtime.js +8 -12
- package/laboratory/src/runtime.d.ts +2 -2
- package/laboratory/src/runtime.js +8 -12
- package/laboratory-store/src/runtime.d.ts +2 -2
- package/laboratory-store/src/runtime.js +8 -12
- package/laboratory-store-log/src/runtime.d.ts +2 -2
- package/laboratory-store-log/src/runtime.js +8 -12
- package/lexicon/src/runtime.d.ts +2 -2
- package/lexicon/src/runtime.js +8 -12
- package/litigation/src/runtime.d.ts +2 -2
- package/litigation/src/runtime.js +8 -12
- package/magic-cart/src/runtime.d.ts +2 -2
- package/magic-cart/src/runtime.js +8 -12
- package/mandate/src/runtime.d.ts +2 -2
- package/mandate/src/runtime.js +8 -12
- package/mangopay-hook/src/runtime.d.ts +2 -2
- package/mangopay-hook/src/runtime.js +8 -12
- package/message/src/runtime.d.ts +2 -2
- package/message/src/runtime.js +8 -12
- package/notification/src/runtime.d.ts +2 -2
- package/notification/src/runtime.js +8 -12
- package/order/src/runtime.d.ts +2 -2
- package/order/src/runtime.js +8 -12
- package/order-log/src/runtime.d.ts +2 -2
- package/order-log/src/runtime.js +8 -12
- package/outrage-message/src/runtime.d.ts +2 -2
- package/outrage-message/src/runtime.js +8 -12
- 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/product/src/runtime.d.ts +2 -2
- package/product/src/runtime.js +8 -12
- package/pub/src/runtime.d.ts +2 -2
- package/pub/src/runtime.js +8 -12
- package/recommendation/src/runtime.d.ts +2 -2
- package/recommendation/src/runtime.js +8 -12
- package/rfx/src/runtime.d.ts +2 -2
- package/rfx/src/runtime.js +8 -12
- package/sale-offer/src/runtime.d.ts +2 -2
- package/sale-offer/src/runtime.js +8 -12
- package/sale-offer-log/src/runtime.d.ts +2 -2
- package/sale-offer-log/src/runtime.js +8 -12
- package/servant/src/runtime.d.ts +2 -2
- package/servant/src/runtime.js +8 -12
- package/shipment/src/runtime.d.ts +2 -2
- package/shipment/src/runtime.js +8 -12
- package/shopping-cart/src/runtime.d.ts +2 -2
- package/shopping-cart/src/runtime.js +8 -12
- package/smuggler/src/runtime.d.ts +2 -2
- package/smuggler/src/runtime.js +8 -12
- package/statistic/src/runtime.d.ts +2 -2
- package/statistic/src/runtime.js +8 -12
- package/subscription/src/runtime.d.ts +2 -2
- package/subscription/src/runtime.js +8 -12
- package/third-party/src/runtime.d.ts +2 -2
- package/third-party/src/runtime.js +8 -12
- package/thread/src/runtime.d.ts +2 -2
- package/thread/src/runtime.js +8 -12
- package/ubo/src/runtime.d.ts +2 -2
- package/ubo/src/runtime.js +8 -12
- 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 +46 -0
- package/user/src/models/RestrictedProductType.js +55 -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/user/src/runtime.d.ts +2 -2
- package/user/src/runtime.js +8 -12
- package/wish/src/runtime.d.ts +2 -2
- package/wish/src/runtime.js +8 -12
- 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
|
@@ -0,0 +1,46 @@
|
|
|
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
|
+
readonly SELL: "SELL";
|
|
38
|
+
};
|
|
39
|
+
export declare type RestrictedProductTypeActionsEnum = typeof RestrictedProductTypeActionsEnum[keyof typeof RestrictedProductTypeActionsEnum];
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the RestrictedProductType interface.
|
|
42
|
+
*/
|
|
43
|
+
export declare function instanceOfRestrictedProductType(value: object): value is RestrictedProductType;
|
|
44
|
+
export declare function RestrictedProductTypeFromJSON(json: any): RestrictedProductType;
|
|
45
|
+
export declare function RestrictedProductTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): RestrictedProductType;
|
|
46
|
+
export declare function RestrictedProductTypeToJSON(value?: RestrictedProductType | null): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
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
|
+
SELL: 'SELL'
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the RestrictedProductType interface.
|
|
27
|
+
*/
|
|
28
|
+
function instanceOfRestrictedProductType(value) {
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
exports.instanceOfRestrictedProductType = instanceOfRestrictedProductType;
|
|
32
|
+
function RestrictedProductTypeFromJSON(json) {
|
|
33
|
+
return RestrictedProductTypeFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
exports.RestrictedProductTypeFromJSON = RestrictedProductTypeFromJSON;
|
|
36
|
+
function RestrictedProductTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'actions': json['actions'],
|
|
42
|
+
'target': (json['target'] === null || json['target'] === undefined) ? json['target'] : (0, ProductType_1.ProductTypeFromJSON)(json['target']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
exports.RestrictedProductTypeFromJSONTyped = RestrictedProductTypeFromJSONTyped;
|
|
46
|
+
function RestrictedProductTypeToJSON(value) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'actions': value['actions'],
|
|
52
|
+
'target': (0, ProductType_1.ProductTypeToJSON)(value['target']),
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
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);
|
package/user/src/runtime.d.ts
CHANGED
|
@@ -127,7 +127,7 @@ export interface RequestOpts {
|
|
|
127
127
|
export declare function querystring(params: HTTPQuery, prefix?: string): string;
|
|
128
128
|
export declare function mapValues(data: any, fn: (item: any) => any): {};
|
|
129
129
|
export declare function canConsumeForm(consumes: Consume[]): boolean;
|
|
130
|
-
export declare function toDateISOString(date:
|
|
130
|
+
export declare function toDateISOString<D extends Date | null | undefined>(date: D): D extends Date ? string : D;
|
|
131
131
|
export interface Consume {
|
|
132
132
|
contentType: string;
|
|
133
133
|
}
|
|
@@ -174,7 +174,7 @@ export declare class VoidApiResponse {
|
|
|
174
174
|
}
|
|
175
175
|
export interface BlobWithMeta {
|
|
176
176
|
blob: Blob;
|
|
177
|
-
filename
|
|
177
|
+
filename?: string;
|
|
178
178
|
}
|
|
179
179
|
export declare function instanceOfBlobWithMeta(object: any): object is BlobWithMeta;
|
|
180
180
|
export declare class BlobWithMetaApiResponse {
|
package/user/src/runtime.js
CHANGED
|
@@ -560,20 +560,16 @@ var BlobWithMetaApiResponse = /** @class */ (function () {
|
|
|
560
560
|
;
|
|
561
561
|
BlobWithMetaApiResponse.prototype.extractFilename = function (headers) {
|
|
562
562
|
var headerName = 'Content-Disposition';
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
var filenameRegex = /filename\*?=['"]?(?:UTF-\d['"]*)?([^;\r\n"']*)['"]?;?/;
|
|
566
|
-
var matches = filenameRegex.exec(headerValue);
|
|
567
|
-
if (matches != null && matches[1]) {
|
|
568
|
-
return matches[1];
|
|
569
|
-
}
|
|
570
|
-
else {
|
|
571
|
-
return undefined;
|
|
572
|
-
}
|
|
573
|
-
}
|
|
574
|
-
else {
|
|
563
|
+
var headerValue = headers.get(headerName);
|
|
564
|
+
if (headerValue == null) {
|
|
575
565
|
return undefined;
|
|
576
566
|
}
|
|
567
|
+
var filenameRegex = /filename\*?=['"]?(?:UTF-\d['"]*)?([^;\r\n"']*)['"]?;?/;
|
|
568
|
+
var matches = filenameRegex.exec(headerValue);
|
|
569
|
+
if (matches != null && matches[1]) {
|
|
570
|
+
return matches[1];
|
|
571
|
+
}
|
|
572
|
+
return undefined;
|
|
577
573
|
};
|
|
578
574
|
return BlobWithMetaApiResponse;
|
|
579
575
|
}());
|
package/wish/src/runtime.d.ts
CHANGED
|
@@ -127,7 +127,7 @@ export interface RequestOpts {
|
|
|
127
127
|
export declare function querystring(params: HTTPQuery, prefix?: string): string;
|
|
128
128
|
export declare function mapValues(data: any, fn: (item: any) => any): {};
|
|
129
129
|
export declare function canConsumeForm(consumes: Consume[]): boolean;
|
|
130
|
-
export declare function toDateISOString(date:
|
|
130
|
+
export declare function toDateISOString<D extends Date | null | undefined>(date: D): D extends Date ? string : D;
|
|
131
131
|
export interface Consume {
|
|
132
132
|
contentType: string;
|
|
133
133
|
}
|
|
@@ -174,7 +174,7 @@ export declare class VoidApiResponse {
|
|
|
174
174
|
}
|
|
175
175
|
export interface BlobWithMeta {
|
|
176
176
|
blob: Blob;
|
|
177
|
-
filename
|
|
177
|
+
filename?: string;
|
|
178
178
|
}
|
|
179
179
|
export declare function instanceOfBlobWithMeta(object: any): object is BlobWithMeta;
|
|
180
180
|
export declare class BlobWithMetaApiResponse {
|
package/wish/src/runtime.js
CHANGED
|
@@ -560,20 +560,16 @@ var BlobWithMetaApiResponse = /** @class */ (function () {
|
|
|
560
560
|
;
|
|
561
561
|
BlobWithMetaApiResponse.prototype.extractFilename = function (headers) {
|
|
562
562
|
var headerName = 'Content-Disposition';
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
var filenameRegex = /filename\*?=['"]?(?:UTF-\d['"]*)?([^;\r\n"']*)['"]?;?/;
|
|
566
|
-
var matches = filenameRegex.exec(headerValue);
|
|
567
|
-
if (matches != null && matches[1]) {
|
|
568
|
-
return matches[1];
|
|
569
|
-
}
|
|
570
|
-
else {
|
|
571
|
-
return undefined;
|
|
572
|
-
}
|
|
573
|
-
}
|
|
574
|
-
else {
|
|
563
|
+
var headerValue = headers.get(headerName);
|
|
564
|
+
if (headerValue == null) {
|
|
575
565
|
return undefined;
|
|
576
566
|
}
|
|
567
|
+
var filenameRegex = /filename\*?=['"]?(?:UTF-\d['"]*)?([^;\r\n"']*)['"]?;?/;
|
|
568
|
+
var matches = filenameRegex.exec(headerValue);
|
|
569
|
+
if (matches != null && matches[1]) {
|
|
570
|
+
return matches[1];
|
|
571
|
+
}
|
|
572
|
+
return undefined;
|
|
577
573
|
};
|
|
578
574
|
return BlobWithMetaApiResponse;
|
|
579
575
|
}());
|
|
@@ -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
|
-
}
|