@lcdp/api-react-rest-client 2.7.0-develop.9660466057 → 2.7.0-develop.9747005348
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.
|
@@ -16,6 +16,12 @@ import { SellerProposal } from './SellerProposal';
|
|
|
16
16
|
* @interface ExpressOrder
|
|
17
17
|
*/
|
|
18
18
|
export interface ExpressOrder {
|
|
19
|
+
/**
|
|
20
|
+
* True if the solution is optimal. False if solution could have been better with more time.
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof ExpressOrder
|
|
23
|
+
*/
|
|
24
|
+
optimal?: boolean;
|
|
19
25
|
/**
|
|
20
26
|
*
|
|
21
27
|
* @type {Array<SellerProposal>}
|
|
@@ -25,6 +25,7 @@ function ExpressOrderFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
25
25
|
return json;
|
|
26
26
|
}
|
|
27
27
|
return {
|
|
28
|
+
'optimal': !(0, runtime_1.exists)(json, 'optimal') ? undefined : json['optimal'],
|
|
28
29
|
'sellerProposals': !(0, runtime_1.exists)(json, 'sellerProposals') ? undefined : (json['sellerProposals'].map(SellerProposal_1.SellerProposalFromJSON)),
|
|
29
30
|
};
|
|
30
31
|
}
|
|
@@ -37,6 +38,7 @@ function ExpressOrderToJSON(value) {
|
|
|
37
38
|
return null;
|
|
38
39
|
}
|
|
39
40
|
return {
|
|
41
|
+
'optimal': value.optimal,
|
|
40
42
|
'sellerProposals': value.sellerProposals === undefined ? undefined : (value.sellerProposals.map(SellerProposal_1.SellerProposalToJSON)),
|
|
41
43
|
};
|
|
42
44
|
}
|
|
@@ -16,6 +16,12 @@ import { ExpressOrderNeed } from './ExpressOrderNeed';
|
|
|
16
16
|
* @interface ExpressOrderCreationParameters
|
|
17
17
|
*/
|
|
18
18
|
export interface ExpressOrderCreationParameters {
|
|
19
|
+
/**
|
|
20
|
+
* Number of seconds allocated to the request in order to process
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof ExpressOrderCreationParameters
|
|
23
|
+
*/
|
|
24
|
+
maxRequestDuration?: number;
|
|
19
25
|
/**
|
|
20
26
|
* User Id to do the request for
|
|
21
27
|
* @type {number}
|
|
@@ -25,6 +25,7 @@ function ExpressOrderCreationParametersFromJSONTyped(json, ignoreDiscriminator)
|
|
|
25
25
|
return json;
|
|
26
26
|
}
|
|
27
27
|
return {
|
|
28
|
+
'maxRequestDuration': !(0, runtime_1.exists)(json, 'maxRequestDuration') ? undefined : json['maxRequestDuration'],
|
|
28
29
|
'buyerId': json['buyerId'],
|
|
29
30
|
'needs': !(0, runtime_1.exists)(json, 'needs') ? undefined : (json['needs'].map(ExpressOrderNeed_1.ExpressOrderNeedFromJSON)),
|
|
30
31
|
};
|
|
@@ -38,6 +39,7 @@ function ExpressOrderCreationParametersToJSON(value) {
|
|
|
38
39
|
return null;
|
|
39
40
|
}
|
|
40
41
|
return {
|
|
42
|
+
'maxRequestDuration': value.maxRequestDuration,
|
|
41
43
|
'buyerId': value.buyerId,
|
|
42
44
|
'needs': value.needs === undefined ? undefined : (value.needs.map(ExpressOrderNeed_1.ExpressOrderNeedToJSON)),
|
|
43
45
|
};
|