@lcdp/api-react-rest-client 2.14.1-LDS-4883.17941867207 → 2.14.1-develop.17982125054
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/statistic/src/models/UserStatistic.d.ts +9 -31
- package/statistic/src/models/UserStatistic.js +6 -12
- package/statistic/src/models/UserStatisticLongTermQoS.d.ts +61 -0
- package/statistic/src/models/UserStatisticLongTermQoS.js +55 -0
- package/statistic/src/models/UserStatisticShortTermQoS.d.ts +43 -0
- package/statistic/src/models/UserStatisticShortTermQoS.js +49 -0
- package/statistic/src/models/index.d.ts +2 -0
- package/statistic/src/models/index.js +2 -0
- package/third-party/src/models/ThirdPartyLinkCreationParameters.d.ts +2 -4
- package/third-party/src/models/ThirdPartyLinkCreationParameters.js +2 -4
- package/user/src/models/ProductStorageType.d.ts +26 -0
- package/user/src/models/ProductStorageType.js +49 -0
- package/user/src/models/RestrictedProductStorageType.d.ts +46 -0
- package/user/src/models/RestrictedProductStorageType.js +55 -0
- package/user/src/models/User.d.ts +7 -0
- package/user/src/models/User.js +3 -0
- package/user/src/models/UserStatisticLink.d.ts +8 -30
- package/user/src/models/UserStatisticLink.js +6 -12
- package/user/src/models/UserStatisticLinkAllOfLongTermQoS.d.ts +61 -0
- package/user/src/models/UserStatisticLinkAllOfLongTermQoS.js +55 -0
- package/user/src/models/UserStatisticLinkAllOfShortTermQoS.d.ts +43 -0
- package/user/src/models/UserStatisticLinkAllOfShortTermQoS.js +49 -0
- package/user/src/models/UserUpdateParameters.d.ts +7 -0
- package/user/src/models/UserUpdateParameters.js +3 -0
- package/user/src/models/index.d.ts +4 -0
- package/user/src/models/index.js +4 -0
package/package.json
CHANGED
|
@@ -10,8 +10,10 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { UserLink } from './UserLink';
|
|
13
|
+
import type { UserStatisticLongTermQoS } from './UserStatisticLongTermQoS';
|
|
14
|
+
import type { UserStatisticShortTermQoS } from './UserStatisticShortTermQoS';
|
|
13
15
|
/**
|
|
14
|
-
* All these statistics are computed based on a sampling taking the last [Variable] 'user.statistics.
|
|
16
|
+
* All these statistics are computed based on a sampling taking the last [Variable] 'user.statistics.long_term_sampling_days' days
|
|
15
17
|
*
|
|
16
18
|
* @export
|
|
17
19
|
* @interface UserStatistic
|
|
@@ -30,41 +32,17 @@ export interface UserStatistic {
|
|
|
30
32
|
*/
|
|
31
33
|
user?: UserLink;
|
|
32
34
|
/**
|
|
33
|
-
*
|
|
34
|
-
* @type {
|
|
35
|
-
* @memberof UserStatistic
|
|
36
|
-
*/
|
|
37
|
-
numberOfSales?: number;
|
|
38
|
-
/**
|
|
39
|
-
* Rate of sales that have at least one removed or refunded item
|
|
40
|
-
* @type {number}
|
|
41
|
-
* @memberof UserStatistic
|
|
42
|
-
*/
|
|
43
|
-
salesErrorRate?: number;
|
|
44
|
-
/**
|
|
45
|
-
* Rate of sales that have been canceled, ignoring cancellation issued by the buyer without any reason
|
|
46
|
-
* @type {number}
|
|
47
|
-
* @memberof UserStatistic
|
|
48
|
-
*/
|
|
49
|
-
salesCanceledRate?: number;
|
|
50
|
-
/**
|
|
51
|
-
* Rate of sales that are associated to a litigation
|
|
52
|
-
* @type {number}
|
|
53
|
-
* @memberof UserStatistic
|
|
54
|
-
*/
|
|
55
|
-
salesLitigationRate?: number;
|
|
56
|
-
/**
|
|
57
|
-
* Average delay of responsiveness for sales (delay between order created by buyer and accepted/modified/canceled by seller or administrator)
|
|
58
|
-
* @type {number}
|
|
35
|
+
*
|
|
36
|
+
* @type {UserStatisticLongTermQoS}
|
|
59
37
|
* @memberof UserStatistic
|
|
60
38
|
*/
|
|
61
|
-
|
|
39
|
+
longTermQoS?: UserStatisticLongTermQoS;
|
|
62
40
|
/**
|
|
63
|
-
*
|
|
64
|
-
* @type {
|
|
41
|
+
*
|
|
42
|
+
* @type {UserStatisticShortTermQoS}
|
|
65
43
|
* @memberof UserStatistic
|
|
66
44
|
*/
|
|
67
|
-
|
|
45
|
+
shortTermQoS?: UserStatisticShortTermQoS;
|
|
68
46
|
}
|
|
69
47
|
/**
|
|
70
48
|
* Check if a given object implements the UserStatistic interface.
|
|
@@ -15,6 +15,8 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.UserStatisticToJSON = exports.UserStatisticFromJSONTyped = exports.UserStatisticFromJSON = exports.instanceOfUserStatistic = void 0;
|
|
17
17
|
var UserLink_1 = require("./UserLink");
|
|
18
|
+
var UserStatisticLongTermQoS_1 = require("./UserStatisticLongTermQoS");
|
|
19
|
+
var UserStatisticShortTermQoS_1 = require("./UserStatisticShortTermQoS");
|
|
18
20
|
/**
|
|
19
21
|
* Check if a given object implements the UserStatistic interface.
|
|
20
22
|
*/
|
|
@@ -33,12 +35,8 @@ function UserStatisticFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
35
|
return {
|
|
34
36
|
'id': json['id'],
|
|
35
37
|
'user': (json['user'] === null || json['user'] === undefined) ? json['user'] : (0, UserLink_1.UserLinkFromJSON)(json['user']),
|
|
36
|
-
'
|
|
37
|
-
'
|
|
38
|
-
'salesCanceledRate': json['salesCanceledRate'],
|
|
39
|
-
'salesLitigationRate': json['salesLitigationRate'],
|
|
40
|
-
'salesResponsivenessDelay': json['salesResponsivenessDelay'],
|
|
41
|
-
'deliveryDelay': json['deliveryDelay'],
|
|
38
|
+
'longTermQoS': (json['longTermQoS'] === null || json['longTermQoS'] === undefined) ? json['longTermQoS'] : (0, UserStatisticLongTermQoS_1.UserStatisticLongTermQoSFromJSON)(json['longTermQoS']),
|
|
39
|
+
'shortTermQoS': (json['shortTermQoS'] === null || json['shortTermQoS'] === undefined) ? json['shortTermQoS'] : (0, UserStatisticShortTermQoS_1.UserStatisticShortTermQoSFromJSON)(json['shortTermQoS']),
|
|
42
40
|
};
|
|
43
41
|
}
|
|
44
42
|
exports.UserStatisticFromJSONTyped = UserStatisticFromJSONTyped;
|
|
@@ -49,12 +47,8 @@ function UserStatisticToJSON(value) {
|
|
|
49
47
|
return {
|
|
50
48
|
'id': value['id'],
|
|
51
49
|
'user': (0, UserLink_1.UserLinkToJSON)(value['user']),
|
|
52
|
-
'
|
|
53
|
-
'
|
|
54
|
-
'salesCanceledRate': value['salesCanceledRate'],
|
|
55
|
-
'salesLitigationRate': value['salesLitigationRate'],
|
|
56
|
-
'salesResponsivenessDelay': value['salesResponsivenessDelay'],
|
|
57
|
-
'deliveryDelay': value['deliveryDelay'],
|
|
50
|
+
'longTermQoS': (0, UserStatisticLongTermQoS_1.UserStatisticLongTermQoSToJSON)(value['longTermQoS']),
|
|
51
|
+
'shortTermQoS': (0, UserStatisticShortTermQoS_1.UserStatisticShortTermQoSToJSON)(value['shortTermQoS']),
|
|
58
52
|
};
|
|
59
53
|
}
|
|
60
54
|
exports.UserStatisticToJSON = UserStatisticToJSON;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-pharmaide-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 UserStatisticLongTermQoS
|
|
16
|
+
*/
|
|
17
|
+
export interface UserStatisticLongTermQoS {
|
|
18
|
+
/**
|
|
19
|
+
* Number of sales
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof UserStatisticLongTermQoS
|
|
22
|
+
*/
|
|
23
|
+
numberOfSales?: number | null;
|
|
24
|
+
/**
|
|
25
|
+
* Rate of sales that have at least one removed or refunded item
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof UserStatisticLongTermQoS
|
|
28
|
+
*/
|
|
29
|
+
salesErrorRate?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Rate of sales that have been canceled, ignoring cancellation issued by the buyer without any reason
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof UserStatisticLongTermQoS
|
|
34
|
+
*/
|
|
35
|
+
salesCanceledRate?: number | null;
|
|
36
|
+
/**
|
|
37
|
+
* Rate of sales that are associated to a litigation
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof UserStatisticLongTermQoS
|
|
40
|
+
*/
|
|
41
|
+
salesLitigationRate?: number | null;
|
|
42
|
+
/**
|
|
43
|
+
* Average delay (in days) of responsiveness for sales (delay between order created by buyer and accepted/modified/canceled by seller or administrator)
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof UserStatisticLongTermQoS
|
|
46
|
+
*/
|
|
47
|
+
salesResponsivenessDelay?: number | null;
|
|
48
|
+
/**
|
|
49
|
+
* Average delay (in days) of delivery for sales
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof UserStatisticLongTermQoS
|
|
52
|
+
*/
|
|
53
|
+
deliveryDelay?: number | null;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the UserStatisticLongTermQoS interface.
|
|
57
|
+
*/
|
|
58
|
+
export declare function instanceOfUserStatisticLongTermQoS(value: object): value is UserStatisticLongTermQoS;
|
|
59
|
+
export declare function UserStatisticLongTermQoSFromJSON(json: any): UserStatisticLongTermQoS;
|
|
60
|
+
export declare function UserStatisticLongTermQoSFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserStatisticLongTermQoS;
|
|
61
|
+
export declare function UserStatisticLongTermQoSToJSON(value?: UserStatisticLongTermQoS | null): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* lcdp-pharmaide-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.UserStatisticLongTermQoSToJSON = exports.UserStatisticLongTermQoSFromJSONTyped = exports.UserStatisticLongTermQoSFromJSON = exports.instanceOfUserStatisticLongTermQoS = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the UserStatisticLongTermQoS interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfUserStatisticLongTermQoS(value) {
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
exports.instanceOfUserStatisticLongTermQoS = instanceOfUserStatisticLongTermQoS;
|
|
24
|
+
function UserStatisticLongTermQoSFromJSON(json) {
|
|
25
|
+
return UserStatisticLongTermQoSFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
exports.UserStatisticLongTermQoSFromJSON = UserStatisticLongTermQoSFromJSON;
|
|
28
|
+
function UserStatisticLongTermQoSFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'numberOfSales': json['numberOfSales'],
|
|
34
|
+
'salesErrorRate': json['salesErrorRate'],
|
|
35
|
+
'salesCanceledRate': json['salesCanceledRate'],
|
|
36
|
+
'salesLitigationRate': json['salesLitigationRate'],
|
|
37
|
+
'salesResponsivenessDelay': json['salesResponsivenessDelay'],
|
|
38
|
+
'deliveryDelay': json['deliveryDelay'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
exports.UserStatisticLongTermQoSFromJSONTyped = UserStatisticLongTermQoSFromJSONTyped;
|
|
42
|
+
function UserStatisticLongTermQoSToJSON(value) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'numberOfSales': value['numberOfSales'],
|
|
48
|
+
'salesErrorRate': value['salesErrorRate'],
|
|
49
|
+
'salesCanceledRate': value['salesCanceledRate'],
|
|
50
|
+
'salesLitigationRate': value['salesLitigationRate'],
|
|
51
|
+
'salesResponsivenessDelay': value['salesResponsivenessDelay'],
|
|
52
|
+
'deliveryDelay': value['deliveryDelay'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
exports.UserStatisticLongTermQoSToJSON = UserStatisticLongTermQoSToJSON;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-pharmaide-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 UserStatisticShortTermQoS
|
|
16
|
+
*/
|
|
17
|
+
export interface UserStatisticShortTermQoS {
|
|
18
|
+
/**
|
|
19
|
+
* Number of sales
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof UserStatisticShortTermQoS
|
|
22
|
+
*/
|
|
23
|
+
numberOfSales?: number | null;
|
|
24
|
+
/**
|
|
25
|
+
* Number of sales with modification
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof UserStatisticShortTermQoS
|
|
28
|
+
*/
|
|
29
|
+
numberOfSalesWithModification?: number | null;
|
|
30
|
+
/**
|
|
31
|
+
* Rate of sales that have been modified
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof UserStatisticShortTermQoS
|
|
34
|
+
*/
|
|
35
|
+
salesModificationRate?: number | null;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the UserStatisticShortTermQoS interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfUserStatisticShortTermQoS(value: object): value is UserStatisticShortTermQoS;
|
|
41
|
+
export declare function UserStatisticShortTermQoSFromJSON(json: any): UserStatisticShortTermQoS;
|
|
42
|
+
export declare function UserStatisticShortTermQoSFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserStatisticShortTermQoS;
|
|
43
|
+
export declare function UserStatisticShortTermQoSToJSON(value?: UserStatisticShortTermQoS | null): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* lcdp-pharmaide-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.UserStatisticShortTermQoSToJSON = exports.UserStatisticShortTermQoSFromJSONTyped = exports.UserStatisticShortTermQoSFromJSON = exports.instanceOfUserStatisticShortTermQoS = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the UserStatisticShortTermQoS interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfUserStatisticShortTermQoS(value) {
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
exports.instanceOfUserStatisticShortTermQoS = instanceOfUserStatisticShortTermQoS;
|
|
24
|
+
function UserStatisticShortTermQoSFromJSON(json) {
|
|
25
|
+
return UserStatisticShortTermQoSFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
exports.UserStatisticShortTermQoSFromJSON = UserStatisticShortTermQoSFromJSON;
|
|
28
|
+
function UserStatisticShortTermQoSFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'numberOfSales': json['numberOfSales'],
|
|
34
|
+
'numberOfSalesWithModification': json['numberOfSalesWithModification'],
|
|
35
|
+
'salesModificationRate': json['salesModificationRate'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
exports.UserStatisticShortTermQoSFromJSONTyped = UserStatisticShortTermQoSFromJSONTyped;
|
|
39
|
+
function UserStatisticShortTermQoSToJSON(value) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'numberOfSales': value['numberOfSales'],
|
|
45
|
+
'numberOfSalesWithModification': value['numberOfSalesWithModification'],
|
|
46
|
+
'salesModificationRate': value['salesModificationRate'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
exports.UserStatisticShortTermQoSToJSON = UserStatisticShortTermQoSToJSON;
|
|
@@ -25,3 +25,5 @@ __exportStar(require("./RestError"), exports);
|
|
|
25
25
|
__exportStar(require("./SaleOfferStatistic"), exports);
|
|
26
26
|
__exportStar(require("./UserLink"), exports);
|
|
27
27
|
__exportStar(require("./UserStatistic"), exports);
|
|
28
|
+
__exportStar(require("./UserStatisticLongTermQoS"), exports);
|
|
29
|
+
__exportStar(require("./UserStatisticShortTermQoS"), exports);
|
|
@@ -32,10 +32,8 @@ export interface ThirdPartyLinkCreationParameters {
|
|
|
32
32
|
* @export
|
|
33
33
|
*/
|
|
34
34
|
export declare const ThirdPartyLinkCreationParametersSlugEnum: {
|
|
35
|
-
readonly
|
|
36
|
-
readonly
|
|
37
|
-
readonly CHARGEBEE_USER_PRICING_PAGE: "CHARGEBEE_USER_PRICING_PAGE";
|
|
38
|
-
readonly CHARGEBEE_USER_PORTAL: "CHARGEBEE_USER_PORTAL";
|
|
35
|
+
readonly PHARMACY_STATISTICS_DASHBOARD: "BADGES_PHARMACY_STATISTICS_DASHBOARD";
|
|
36
|
+
readonly LABORATORY_STATISTICS_DASHBOARD: "BADGES_LABORATORY_STATISTICS_DASHBOARD";
|
|
39
37
|
};
|
|
40
38
|
export declare type ThirdPartyLinkCreationParametersSlugEnum = typeof ThirdPartyLinkCreationParametersSlugEnum[keyof typeof ThirdPartyLinkCreationParametersSlugEnum];
|
|
41
39
|
/**
|
|
@@ -18,10 +18,8 @@ exports.ThirdPartyLinkCreationParametersToJSON = exports.ThirdPartyLinkCreationP
|
|
|
18
18
|
* @export
|
|
19
19
|
*/
|
|
20
20
|
exports.ThirdPartyLinkCreationParametersSlugEnum = {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
CHARGEBEE_USER_PRICING_PAGE: 'CHARGEBEE_USER_PRICING_PAGE',
|
|
24
|
-
CHARGEBEE_USER_PORTAL: 'CHARGEBEE_USER_PORTAL'
|
|
21
|
+
PHARMACY_STATISTICS_DASHBOARD: 'BADGES_PHARMACY_STATISTICS_DASHBOARD',
|
|
22
|
+
LABORATORY_STATISTICS_DASHBOARD: 'BADGES_LABORATORY_STATISTICS_DASHBOARD'
|
|
25
23
|
};
|
|
26
24
|
/**
|
|
27
25
|
* Check if a given object implements the ThirdPartyLinkCreationParameters interface.
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-monolith-service
|
|
3
|
+
* This is the REST API of LCDP products
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const ProductStorageType: {
|
|
17
|
+
readonly FREE: "FREE";
|
|
18
|
+
readonly FRIDGE: "FRIDGE";
|
|
19
|
+
readonly FREEZER: "FREEZER";
|
|
20
|
+
readonly FRESH: "FRESH";
|
|
21
|
+
};
|
|
22
|
+
export declare type ProductStorageType = typeof ProductStorageType[keyof typeof ProductStorageType];
|
|
23
|
+
export declare function instanceOfProductStorageType(value: any): boolean;
|
|
24
|
+
export declare function ProductStorageTypeFromJSON(json: any): ProductStorageType;
|
|
25
|
+
export declare function ProductStorageTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductStorageType;
|
|
26
|
+
export declare function ProductStorageTypeToJSON(value?: ProductStorageType | null): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* lcdp-monolith-service
|
|
6
|
+
* This is the REST API of LCDP products
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ProductStorageTypeToJSON = exports.ProductStorageTypeFromJSONTyped = exports.ProductStorageTypeFromJSON = exports.instanceOfProductStorageType = exports.ProductStorageType = void 0;
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
exports.ProductStorageType = {
|
|
22
|
+
FREE: 'FREE',
|
|
23
|
+
FRIDGE: 'FRIDGE',
|
|
24
|
+
FREEZER: 'FREEZER',
|
|
25
|
+
FRESH: 'FRESH'
|
|
26
|
+
};
|
|
27
|
+
function instanceOfProductStorageType(value) {
|
|
28
|
+
for (var key in exports.ProductStorageType) {
|
|
29
|
+
if (Object.prototype.hasOwnProperty.call(exports.ProductStorageType, key)) {
|
|
30
|
+
if (exports.ProductStorageType[key] === value) {
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
exports.instanceOfProductStorageType = instanceOfProductStorageType;
|
|
38
|
+
function ProductStorageTypeFromJSON(json) {
|
|
39
|
+
return ProductStorageTypeFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
exports.ProductStorageTypeFromJSON = ProductStorageTypeFromJSON;
|
|
42
|
+
function ProductStorageTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
exports.ProductStorageTypeFromJSONTyped = ProductStorageTypeFromJSONTyped;
|
|
46
|
+
function ProductStorageTypeToJSON(value) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
exports.ProductStorageTypeToJSON = ProductStorageTypeToJSON;
|
|
@@ -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 { ProductStorageType } from './ProductStorageType';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface RestrictedProductStorageType
|
|
17
|
+
*/
|
|
18
|
+
export interface RestrictedProductStorageType {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<string>}
|
|
22
|
+
* @memberof RestrictedProductStorageType
|
|
23
|
+
*/
|
|
24
|
+
actions?: Array<RestrictedProductStorageTypeActionsEnum>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {ProductStorageType}
|
|
28
|
+
* @memberof RestrictedProductStorageType
|
|
29
|
+
*/
|
|
30
|
+
target?: ProductStorageType;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export declare const RestrictedProductStorageTypeActionsEnum: {
|
|
36
|
+
readonly BUY: "BUY";
|
|
37
|
+
readonly SELL: "SELL";
|
|
38
|
+
};
|
|
39
|
+
export declare type RestrictedProductStorageTypeActionsEnum = typeof RestrictedProductStorageTypeActionsEnum[keyof typeof RestrictedProductStorageTypeActionsEnum];
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the RestrictedProductStorageType interface.
|
|
42
|
+
*/
|
|
43
|
+
export declare function instanceOfRestrictedProductStorageType(value: object): value is RestrictedProductStorageType;
|
|
44
|
+
export declare function RestrictedProductStorageTypeFromJSON(json: any): RestrictedProductStorageType;
|
|
45
|
+
export declare function RestrictedProductStorageTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): RestrictedProductStorageType;
|
|
46
|
+
export declare function RestrictedProductStorageTypeToJSON(value?: RestrictedProductStorageType | 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.RestrictedProductStorageTypeToJSON = exports.RestrictedProductStorageTypeFromJSONTyped = exports.RestrictedProductStorageTypeFromJSON = exports.instanceOfRestrictedProductStorageType = exports.RestrictedProductStorageTypeActionsEnum = void 0;
|
|
17
|
+
var ProductStorageType_1 = require("./ProductStorageType");
|
|
18
|
+
/**
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
exports.RestrictedProductStorageTypeActionsEnum = {
|
|
22
|
+
BUY: 'BUY',
|
|
23
|
+
SELL: 'SELL'
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the RestrictedProductStorageType interface.
|
|
27
|
+
*/
|
|
28
|
+
function instanceOfRestrictedProductStorageType(value) {
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
exports.instanceOfRestrictedProductStorageType = instanceOfRestrictedProductStorageType;
|
|
32
|
+
function RestrictedProductStorageTypeFromJSON(json) {
|
|
33
|
+
return RestrictedProductStorageTypeFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
exports.RestrictedProductStorageTypeFromJSON = RestrictedProductStorageTypeFromJSON;
|
|
36
|
+
function RestrictedProductStorageTypeFromJSONTyped(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, ProductStorageType_1.ProductStorageTypeFromJSON)(json['target']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
exports.RestrictedProductStorageTypeFromJSONTyped = RestrictedProductStorageTypeFromJSONTyped;
|
|
46
|
+
function RestrictedProductStorageTypeToJSON(value) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'actions': value['actions'],
|
|
52
|
+
'target': (0, ProductStorageType_1.ProductStorageTypeToJSON)(value['target']),
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
exports.RestrictedProductStorageTypeToJSON = RestrictedProductStorageTypeToJSON;
|
|
@@ -23,6 +23,7 @@ import type { UserThreads } from './UserThreads';
|
|
|
23
23
|
import type { UserWallets } from './UserWallets';
|
|
24
24
|
import type { UserRole } from './UserRole';
|
|
25
25
|
import type { KycLevel } from './KycLevel';
|
|
26
|
+
import type { RestrictedProductStorageType } from './RestrictedProductStorageType';
|
|
26
27
|
import type { UserJournal } from './UserJournal';
|
|
27
28
|
/**
|
|
28
29
|
* Fields :
|
|
@@ -260,6 +261,12 @@ export interface User {
|
|
|
260
261
|
* @memberof User
|
|
261
262
|
*/
|
|
262
263
|
restrictedProductTypes?: HttpLink;
|
|
264
|
+
/**
|
|
265
|
+
*
|
|
266
|
+
* @type {Array<RestrictedProductStorageType>}
|
|
267
|
+
* @memberof User
|
|
268
|
+
*/
|
|
269
|
+
restrictedProductStorageTypes?: Array<RestrictedProductStorageType>;
|
|
263
270
|
/**
|
|
264
271
|
*
|
|
265
272
|
* @type {HttpLink}
|
package/user/src/models/User.js
CHANGED
|
@@ -29,6 +29,7 @@ var UserThreads_1 = require("./UserThreads");
|
|
|
29
29
|
var UserWallets_1 = require("./UserWallets");
|
|
30
30
|
var UserRole_1 = require("./UserRole");
|
|
31
31
|
var KycLevel_1 = require("./KycLevel");
|
|
32
|
+
var RestrictedProductStorageType_1 = require("./RestrictedProductStorageType");
|
|
32
33
|
var UserJournal_1 = require("./UserJournal");
|
|
33
34
|
/**
|
|
34
35
|
* Check if a given object implements the User interface.
|
|
@@ -102,6 +103,7 @@ function UserFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
102
103
|
'rules': (json['rules'] === null || json['rules'] === undefined) ? json['rules'] : (0, HttpLink_1.HttpLinkFromJSON)(json['rules']),
|
|
103
104
|
'restrictedFeatures': (json['restrictedFeatures'] === null || json['restrictedFeatures'] === undefined) ? json['restrictedFeatures'] : (0, HttpLink_1.HttpLinkFromJSON)(json['restrictedFeatures']),
|
|
104
105
|
'restrictedProductTypes': (json['restrictedProductTypes'] === null || json['restrictedProductTypes'] === undefined) ? json['restrictedProductTypes'] : (0, HttpLink_1.HttpLinkFromJSON)(json['restrictedProductTypes']),
|
|
106
|
+
'restrictedProductStorageTypes': (json['restrictedProductStorageTypes'] === null || json['restrictedProductStorageTypes'] === undefined) ? json['restrictedProductStorageTypes'] : json['restrictedProductStorageTypes'].map(RestrictedProductStorageType_1.RestrictedProductStorageTypeFromJSON),
|
|
105
107
|
'restrictedNotificationTypes': (json['restrictedNotificationTypes'] === null || json['restrictedNotificationTypes'] === undefined) ? json['restrictedNotificationTypes'] : (0, HttpLink_1.HttpLinkFromJSON)(json['restrictedNotificationTypes']),
|
|
106
108
|
'customCommissions': (json['customCommissions'] === null || json['customCommissions'] === undefined) ? json['customCommissions'] : (0, HttpLink_1.HttpLinkFromJSON)(json['customCommissions']),
|
|
107
109
|
'tags': json['tags'],
|
|
@@ -159,6 +161,7 @@ function UserToJSON(value) {
|
|
|
159
161
|
'rules': (0, HttpLink_1.HttpLinkToJSON)(value['rules']),
|
|
160
162
|
'restrictedFeatures': (0, HttpLink_1.HttpLinkToJSON)(value['restrictedFeatures']),
|
|
161
163
|
'restrictedProductTypes': (0, HttpLink_1.HttpLinkToJSON)(value['restrictedProductTypes']),
|
|
164
|
+
'restrictedProductStorageTypes': (value['restrictedProductStorageTypes'] === null || value['restrictedProductStorageTypes'] === undefined) ? value['restrictedProductStorageTypes'] : value['restrictedProductStorageTypes'].map(RestrictedProductStorageType_1.RestrictedProductStorageTypeToJSON),
|
|
162
165
|
'restrictedNotificationTypes': (0, HttpLink_1.HttpLinkToJSON)(value['restrictedNotificationTypes']),
|
|
163
166
|
'customCommissions': (0, HttpLink_1.HttpLinkToJSON)(value['customCommissions']),
|
|
164
167
|
'tags': value['tags'],
|
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { UserStatisticLinkAllOfShortTermQoS } from './UserStatisticLinkAllOfShortTermQoS';
|
|
13
|
+
import type { UserStatisticLinkAllOfLongTermQoS } from './UserStatisticLinkAllOfLongTermQoS';
|
|
12
14
|
/**
|
|
13
15
|
*
|
|
14
16
|
* @export
|
|
@@ -22,41 +24,17 @@ export interface UserStatisticLink {
|
|
|
22
24
|
*/
|
|
23
25
|
href: string;
|
|
24
26
|
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {
|
|
27
|
+
*
|
|
28
|
+
* @type {UserStatisticLinkAllOfLongTermQoS}
|
|
27
29
|
* @memberof UserStatisticLink
|
|
28
30
|
*/
|
|
29
|
-
|
|
31
|
+
longTermQoS?: UserStatisticLinkAllOfLongTermQoS;
|
|
30
32
|
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {
|
|
33
|
+
*
|
|
34
|
+
* @type {UserStatisticLinkAllOfShortTermQoS}
|
|
33
35
|
* @memberof UserStatisticLink
|
|
34
36
|
*/
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Rate of sales that have been canceled, ignoring cancellation issued by the buyer without any reason
|
|
38
|
-
* @type {number}
|
|
39
|
-
* @memberof UserStatisticLink
|
|
40
|
-
*/
|
|
41
|
-
salesCanceledRate?: number;
|
|
42
|
-
/**
|
|
43
|
-
* Rate of sales that are associated to a litigation
|
|
44
|
-
* @type {number}
|
|
45
|
-
* @memberof UserStatisticLink
|
|
46
|
-
*/
|
|
47
|
-
salesLitigationRate?: number;
|
|
48
|
-
/**
|
|
49
|
-
* Average delay of responsiveness for sales (delay between order created by buyer and accepted/modified/canceled by seller or administrator)
|
|
50
|
-
* @type {number}
|
|
51
|
-
* @memberof UserStatisticLink
|
|
52
|
-
*/
|
|
53
|
-
salesResponsivenessDelay?: number;
|
|
54
|
-
/**
|
|
55
|
-
* Average delay of delivery for sales
|
|
56
|
-
* @type {number}
|
|
57
|
-
* @memberof UserStatisticLink
|
|
58
|
-
*/
|
|
59
|
-
deliveryDelay?: number;
|
|
37
|
+
shortTermQoS?: UserStatisticLinkAllOfShortTermQoS;
|
|
60
38
|
}
|
|
61
39
|
/**
|
|
62
40
|
* Check if a given object implements the UserStatisticLink interface.
|
|
@@ -14,6 +14,8 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.UserStatisticLinkToJSON = exports.UserStatisticLinkFromJSONTyped = exports.UserStatisticLinkFromJSON = exports.instanceOfUserStatisticLink = void 0;
|
|
17
|
+
var UserStatisticLinkAllOfShortTermQoS_1 = require("./UserStatisticLinkAllOfShortTermQoS");
|
|
18
|
+
var UserStatisticLinkAllOfLongTermQoS_1 = require("./UserStatisticLinkAllOfLongTermQoS");
|
|
17
19
|
/**
|
|
18
20
|
* Check if a given object implements the UserStatisticLink interface.
|
|
19
21
|
*/
|
|
@@ -33,12 +35,8 @@ function UserStatisticLinkFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
35
|
}
|
|
34
36
|
return {
|
|
35
37
|
'href': json['href'],
|
|
36
|
-
'
|
|
37
|
-
'
|
|
38
|
-
'salesCanceledRate': json['salesCanceledRate'],
|
|
39
|
-
'salesLitigationRate': json['salesLitigationRate'],
|
|
40
|
-
'salesResponsivenessDelay': json['salesResponsivenessDelay'],
|
|
41
|
-
'deliveryDelay': json['deliveryDelay'],
|
|
38
|
+
'longTermQoS': (json['longTermQoS'] === null || json['longTermQoS'] === undefined) ? json['longTermQoS'] : (0, UserStatisticLinkAllOfLongTermQoS_1.UserStatisticLinkAllOfLongTermQoSFromJSON)(json['longTermQoS']),
|
|
39
|
+
'shortTermQoS': (json['shortTermQoS'] === null || json['shortTermQoS'] === undefined) ? json['shortTermQoS'] : (0, UserStatisticLinkAllOfShortTermQoS_1.UserStatisticLinkAllOfShortTermQoSFromJSON)(json['shortTermQoS']),
|
|
42
40
|
};
|
|
43
41
|
}
|
|
44
42
|
exports.UserStatisticLinkFromJSONTyped = UserStatisticLinkFromJSONTyped;
|
|
@@ -48,12 +46,8 @@ function UserStatisticLinkToJSON(value) {
|
|
|
48
46
|
}
|
|
49
47
|
return {
|
|
50
48
|
'href': value['href'],
|
|
51
|
-
'
|
|
52
|
-
'
|
|
53
|
-
'salesCanceledRate': value['salesCanceledRate'],
|
|
54
|
-
'salesLitigationRate': value['salesLitigationRate'],
|
|
55
|
-
'salesResponsivenessDelay': value['salesResponsivenessDelay'],
|
|
56
|
-
'deliveryDelay': value['deliveryDelay'],
|
|
49
|
+
'longTermQoS': (0, UserStatisticLinkAllOfLongTermQoS_1.UserStatisticLinkAllOfLongTermQoSToJSON)(value['longTermQoS']),
|
|
50
|
+
'shortTermQoS': (0, UserStatisticLinkAllOfShortTermQoS_1.UserStatisticLinkAllOfShortTermQoSToJSON)(value['shortTermQoS']),
|
|
57
51
|
};
|
|
58
52
|
}
|
|
59
53
|
exports.UserStatisticLinkToJSON = UserStatisticLinkToJSON;
|
|
@@ -0,0 +1,61 @@
|
|
|
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
|
+
* Long-term quality of service statistics
|
|
14
|
+
* @export
|
|
15
|
+
* @interface UserStatisticLinkAllOfLongTermQoS
|
|
16
|
+
*/
|
|
17
|
+
export interface UserStatisticLinkAllOfLongTermQoS {
|
|
18
|
+
/**
|
|
19
|
+
* Number of sales
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof UserStatisticLinkAllOfLongTermQoS
|
|
22
|
+
*/
|
|
23
|
+
numberOfSales?: number;
|
|
24
|
+
/**
|
|
25
|
+
* Rate of sales that have at least one removed or refunded item
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof UserStatisticLinkAllOfLongTermQoS
|
|
28
|
+
*/
|
|
29
|
+
salesErrorRate?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Rate of sales that have been canceled, ignoring cancellation issued by the buyer without any reason
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof UserStatisticLinkAllOfLongTermQoS
|
|
34
|
+
*/
|
|
35
|
+
salesCanceledRate?: number;
|
|
36
|
+
/**
|
|
37
|
+
* Rate of sales that are associated to a litigation
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof UserStatisticLinkAllOfLongTermQoS
|
|
40
|
+
*/
|
|
41
|
+
salesLitigationRate?: number;
|
|
42
|
+
/**
|
|
43
|
+
* Average delay (in days) of responsiveness for sales (delay between order created by buyer and accepted/modified/canceled by seller or administrator)
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof UserStatisticLinkAllOfLongTermQoS
|
|
46
|
+
*/
|
|
47
|
+
salesResponsivenessDelay?: number;
|
|
48
|
+
/**
|
|
49
|
+
* Average delay (in days) of delivery for sales
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof UserStatisticLinkAllOfLongTermQoS
|
|
52
|
+
*/
|
|
53
|
+
deliveryDelay?: number;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the UserStatisticLinkAllOfLongTermQoS interface.
|
|
57
|
+
*/
|
|
58
|
+
export declare function instanceOfUserStatisticLinkAllOfLongTermQoS(value: object): value is UserStatisticLinkAllOfLongTermQoS;
|
|
59
|
+
export declare function UserStatisticLinkAllOfLongTermQoSFromJSON(json: any): UserStatisticLinkAllOfLongTermQoS;
|
|
60
|
+
export declare function UserStatisticLinkAllOfLongTermQoSFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserStatisticLinkAllOfLongTermQoS;
|
|
61
|
+
export declare function UserStatisticLinkAllOfLongTermQoSToJSON(value?: UserStatisticLinkAllOfLongTermQoS | 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.UserStatisticLinkAllOfLongTermQoSToJSON = exports.UserStatisticLinkAllOfLongTermQoSFromJSONTyped = exports.UserStatisticLinkAllOfLongTermQoSFromJSON = exports.instanceOfUserStatisticLinkAllOfLongTermQoS = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the UserStatisticLinkAllOfLongTermQoS interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfUserStatisticLinkAllOfLongTermQoS(value) {
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
exports.instanceOfUserStatisticLinkAllOfLongTermQoS = instanceOfUserStatisticLinkAllOfLongTermQoS;
|
|
24
|
+
function UserStatisticLinkAllOfLongTermQoSFromJSON(json) {
|
|
25
|
+
return UserStatisticLinkAllOfLongTermQoSFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
exports.UserStatisticLinkAllOfLongTermQoSFromJSON = UserStatisticLinkAllOfLongTermQoSFromJSON;
|
|
28
|
+
function UserStatisticLinkAllOfLongTermQoSFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'numberOfSales': json['numberOfSales'],
|
|
34
|
+
'salesErrorRate': json['salesErrorRate'],
|
|
35
|
+
'salesCanceledRate': json['salesCanceledRate'],
|
|
36
|
+
'salesLitigationRate': json['salesLitigationRate'],
|
|
37
|
+
'salesResponsivenessDelay': json['salesResponsivenessDelay'],
|
|
38
|
+
'deliveryDelay': json['deliveryDelay'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
exports.UserStatisticLinkAllOfLongTermQoSFromJSONTyped = UserStatisticLinkAllOfLongTermQoSFromJSONTyped;
|
|
42
|
+
function UserStatisticLinkAllOfLongTermQoSToJSON(value) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'numberOfSales': value['numberOfSales'],
|
|
48
|
+
'salesErrorRate': value['salesErrorRate'],
|
|
49
|
+
'salesCanceledRate': value['salesCanceledRate'],
|
|
50
|
+
'salesLitigationRate': value['salesLitigationRate'],
|
|
51
|
+
'salesResponsivenessDelay': value['salesResponsivenessDelay'],
|
|
52
|
+
'deliveryDelay': value['deliveryDelay'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
exports.UserStatisticLinkAllOfLongTermQoSToJSON = UserStatisticLinkAllOfLongTermQoSToJSON;
|
|
@@ -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
|
+
* Short-term quality of service statistics
|
|
14
|
+
* @export
|
|
15
|
+
* @interface UserStatisticLinkAllOfShortTermQoS
|
|
16
|
+
*/
|
|
17
|
+
export interface UserStatisticLinkAllOfShortTermQoS {
|
|
18
|
+
/**
|
|
19
|
+
* Number of sales
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof UserStatisticLinkAllOfShortTermQoS
|
|
22
|
+
*/
|
|
23
|
+
numberOfSales?: number | null;
|
|
24
|
+
/**
|
|
25
|
+
* Number of sales with modification
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof UserStatisticLinkAllOfShortTermQoS
|
|
28
|
+
*/
|
|
29
|
+
numberOfSalesWithModification?: number | null;
|
|
30
|
+
/**
|
|
31
|
+
* Rate of sales that have been modified
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof UserStatisticLinkAllOfShortTermQoS
|
|
34
|
+
*/
|
|
35
|
+
salesModificationRate?: number | null;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the UserStatisticLinkAllOfShortTermQoS interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfUserStatisticLinkAllOfShortTermQoS(value: object): value is UserStatisticLinkAllOfShortTermQoS;
|
|
41
|
+
export declare function UserStatisticLinkAllOfShortTermQoSFromJSON(json: any): UserStatisticLinkAllOfShortTermQoS;
|
|
42
|
+
export declare function UserStatisticLinkAllOfShortTermQoSFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserStatisticLinkAllOfShortTermQoS;
|
|
43
|
+
export declare function UserStatisticLinkAllOfShortTermQoSToJSON(value?: UserStatisticLinkAllOfShortTermQoS | null): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* lcdp-monolith-service
|
|
6
|
+
* This is the REST API of LCDP products
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.UserStatisticLinkAllOfShortTermQoSToJSON = exports.UserStatisticLinkAllOfShortTermQoSFromJSONTyped = exports.UserStatisticLinkAllOfShortTermQoSFromJSON = exports.instanceOfUserStatisticLinkAllOfShortTermQoS = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the UserStatisticLinkAllOfShortTermQoS interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfUserStatisticLinkAllOfShortTermQoS(value) {
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
exports.instanceOfUserStatisticLinkAllOfShortTermQoS = instanceOfUserStatisticLinkAllOfShortTermQoS;
|
|
24
|
+
function UserStatisticLinkAllOfShortTermQoSFromJSON(json) {
|
|
25
|
+
return UserStatisticLinkAllOfShortTermQoSFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
exports.UserStatisticLinkAllOfShortTermQoSFromJSON = UserStatisticLinkAllOfShortTermQoSFromJSON;
|
|
28
|
+
function UserStatisticLinkAllOfShortTermQoSFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'numberOfSales': json['numberOfSales'],
|
|
34
|
+
'numberOfSalesWithModification': json['numberOfSalesWithModification'],
|
|
35
|
+
'salesModificationRate': json['salesModificationRate'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
exports.UserStatisticLinkAllOfShortTermQoSFromJSONTyped = UserStatisticLinkAllOfShortTermQoSFromJSONTyped;
|
|
39
|
+
function UserStatisticLinkAllOfShortTermQoSToJSON(value) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'numberOfSales': value['numberOfSales'],
|
|
45
|
+
'numberOfSalesWithModification': value['numberOfSalesWithModification'],
|
|
46
|
+
'salesModificationRate': value['salesModificationRate'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
exports.UserStatisticLinkAllOfShortTermQoSToJSON = UserStatisticLinkAllOfShortTermQoSToJSON;
|
|
@@ -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 { RestrictedProductStorageType } from './RestrictedProductStorageType';
|
|
16
17
|
import type { UserJournalUpdateParameters } from './UserJournalUpdateParameters';
|
|
17
18
|
import type { Gender } from './Gender';
|
|
18
19
|
/**
|
|
@@ -129,6 +130,12 @@ export interface UserUpdateParameters {
|
|
|
129
130
|
* @memberof UserUpdateParameters
|
|
130
131
|
*/
|
|
131
132
|
delegatedServices?: UserDelegatedServices;
|
|
133
|
+
/**
|
|
134
|
+
*
|
|
135
|
+
* @type {Array<RestrictedProductStorageType>}
|
|
136
|
+
* @memberof UserUpdateParameters
|
|
137
|
+
*/
|
|
138
|
+
restrictedProductStorageTypes?: Array<RestrictedProductStorageType>;
|
|
132
139
|
/**
|
|
133
140
|
* Labels of the client
|
|
134
141
|
* @type {Array<string>}
|
|
@@ -19,6 +19,7 @@ var UserCompany_1 = require("./UserCompany");
|
|
|
19
19
|
var Address_1 = require("./Address");
|
|
20
20
|
var UserRole_1 = require("./UserRole");
|
|
21
21
|
var UserDelegatedServices_1 = require("./UserDelegatedServices");
|
|
22
|
+
var RestrictedProductStorageType_1 = require("./RestrictedProductStorageType");
|
|
22
23
|
var UserJournalUpdateParameters_1 = require("./UserJournalUpdateParameters");
|
|
23
24
|
var Gender_1 = require("./Gender");
|
|
24
25
|
/**
|
|
@@ -55,6 +56,7 @@ function UserUpdateParametersFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
56
|
'company': (json['company'] === null || json['company'] === undefined) ? json['company'] : (0, UserCompany_1.UserCompanyFromJSON)(json['company']),
|
|
56
57
|
'pickupEnabled': json['pickupEnabled'],
|
|
57
58
|
'delegatedServices': (json['delegatedServices'] === null || json['delegatedServices'] === undefined) ? json['delegatedServices'] : (0, UserDelegatedServices_1.UserDelegatedServicesFromJSON)(json['delegatedServices']),
|
|
59
|
+
'restrictedProductStorageTypes': (json['restrictedProductStorageTypes'] === null || json['restrictedProductStorageTypes'] === undefined) ? json['restrictedProductStorageTypes'] : json['restrictedProductStorageTypes'].map(RestrictedProductStorageType_1.RestrictedProductStorageTypeFromJSON),
|
|
58
60
|
'tags': json['tags'],
|
|
59
61
|
'isMangopaySynced': json['isMangopaySynced'],
|
|
60
62
|
'journal': (json['journal'] === null || json['journal'] === undefined) ? json['journal'] : (0, UserJournalUpdateParameters_1.UserJournalUpdateParametersFromJSON)(json['journal']),
|
|
@@ -84,6 +86,7 @@ function UserUpdateParametersToJSON(value) {
|
|
|
84
86
|
'company': (0, UserCompany_1.UserCompanyToJSON)(value['company']),
|
|
85
87
|
'pickupEnabled': value['pickupEnabled'],
|
|
86
88
|
'delegatedServices': (0, UserDelegatedServices_1.UserDelegatedServicesToJSON)(value['delegatedServices']),
|
|
89
|
+
'restrictedProductStorageTypes': (value['restrictedProductStorageTypes'] === null || value['restrictedProductStorageTypes'] === undefined) ? value['restrictedProductStorageTypes'] : value['restrictedProductStorageTypes'].map(RestrictedProductStorageType_1.RestrictedProductStorageTypeToJSON),
|
|
87
90
|
'tags': value['tags'],
|
|
88
91
|
'isMangopaySynced': value['isMangopaySynced'],
|
|
89
92
|
'journal': (0, UserJournalUpdateParameters_1.UserJournalUpdateParametersToJSON)(value['journal']),
|
|
@@ -11,8 +11,10 @@ export * from './PaginatedUsers';
|
|
|
11
11
|
export * from './PagingMetadata';
|
|
12
12
|
export * from './PasswordResetCompletionParameters';
|
|
13
13
|
export * from './PasswordResetCreationParameters';
|
|
14
|
+
export * from './ProductStorageType';
|
|
14
15
|
export * from './ProductTypeLink';
|
|
15
16
|
export * from './RestError';
|
|
17
|
+
export * from './RestrictedProductStorageType';
|
|
16
18
|
export * from './ScaEnrollmentStatus';
|
|
17
19
|
export * from './SomeonePasswordUpdateParameters';
|
|
18
20
|
export * from './ThreadLink';
|
|
@@ -46,6 +48,8 @@ export * from './UserRuleComparatorEnum';
|
|
|
46
48
|
export * from './UserRuleCreationParameters';
|
|
47
49
|
export * from './UserSocialNetwork';
|
|
48
50
|
export * from './UserStatisticLink';
|
|
51
|
+
export * from './UserStatisticLinkAllOfLongTermQoS';
|
|
52
|
+
export * from './UserStatisticLinkAllOfShortTermQoS';
|
|
49
53
|
export * from './UserThreads';
|
|
50
54
|
export * from './UserUpdateParameters';
|
|
51
55
|
export * from './UserWalletLink';
|
package/user/src/models/index.js
CHANGED
|
@@ -29,8 +29,10 @@ __exportStar(require("./PaginatedUsers"), exports);
|
|
|
29
29
|
__exportStar(require("./PagingMetadata"), exports);
|
|
30
30
|
__exportStar(require("./PasswordResetCompletionParameters"), exports);
|
|
31
31
|
__exportStar(require("./PasswordResetCreationParameters"), exports);
|
|
32
|
+
__exportStar(require("./ProductStorageType"), exports);
|
|
32
33
|
__exportStar(require("./ProductTypeLink"), exports);
|
|
33
34
|
__exportStar(require("./RestError"), exports);
|
|
35
|
+
__exportStar(require("./RestrictedProductStorageType"), exports);
|
|
34
36
|
__exportStar(require("./ScaEnrollmentStatus"), exports);
|
|
35
37
|
__exportStar(require("./SomeonePasswordUpdateParameters"), exports);
|
|
36
38
|
__exportStar(require("./ThreadLink"), exports);
|
|
@@ -64,6 +66,8 @@ __exportStar(require("./UserRuleComparatorEnum"), exports);
|
|
|
64
66
|
__exportStar(require("./UserRuleCreationParameters"), exports);
|
|
65
67
|
__exportStar(require("./UserSocialNetwork"), exports);
|
|
66
68
|
__exportStar(require("./UserStatisticLink"), exports);
|
|
69
|
+
__exportStar(require("./UserStatisticLinkAllOfLongTermQoS"), exports);
|
|
70
|
+
__exportStar(require("./UserStatisticLinkAllOfShortTermQoS"), exports);
|
|
67
71
|
__exportStar(require("./UserThreads"), exports);
|
|
68
72
|
__exportStar(require("./UserUpdateParameters"), exports);
|
|
69
73
|
__exportStar(require("./UserWalletLink"), exports);
|