@lcdp/api-react-rest-client 2.13.9-LDS-4776-shadowban.17323524235 → 2.13.9-LDS-4812-update-api.17463347527
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 +8 -30
- 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/package.json
CHANGED
|
@@ -10,6 +10,8 @@
|
|
|
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
16
|
* All these statistics are computed based on a sampling taking the last [Variable] 'user.statistics.sampling_days' days
|
|
15
17
|
*
|
|
@@ -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;
|
|
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;
|
|
36
|
+
/**
|
|
37
|
+
* Rate of sales that are associated to a litigation
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof UserStatisticLongTermQoS
|
|
40
|
+
*/
|
|
41
|
+
salesLitigationRate?: number;
|
|
42
|
+
/**
|
|
43
|
+
* Average delay 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;
|
|
48
|
+
/**
|
|
49
|
+
* Average delay of delivery for sales
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof UserStatisticLongTermQoS
|
|
52
|
+
*/
|
|
53
|
+
deliveryDelay?: number;
|
|
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;
|
|
24
|
+
/**
|
|
25
|
+
* Number of sales with modification
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof UserStatisticShortTermQoS
|
|
28
|
+
*/
|
|
29
|
+
numberOfSalesWithModification?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Rate of sales that have been modified
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof UserStatisticShortTermQoS
|
|
34
|
+
*/
|
|
35
|
+
salesModificationRate?: number;
|
|
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);
|