@lcdp/api-react-rest-client 2.7.0-develop.9647759087 → 2.7.0-develop.9746460647
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/magic-cart/src/models/ExpressOrder.d.ts +6 -0
- package/magic-cart/src/models/ExpressOrder.js +2 -0
- package/magic-cart/src/models/ExpressOrderCreationParameters.d.ts +6 -0
- package/magic-cart/src/models/ExpressOrderCreationParameters.js +2 -0
- package/package.json +1 -1
- package/sale-offer/src/apis/SearchSaleOfferApi.d.ts +3 -0
- package/sale-offer/src/apis/SearchSaleOfferApi.js +9 -0
- package/sale-offer/src/models/SaleOffer.d.ts +6 -0
- package/sale-offer/src/models/SaleOffer.js +2 -0
- package/sale-offer/src/models/SaleOfferStatisticLink.d.ts +12 -0
- package/sale-offer/src/models/SaleOfferStatisticLink.js +2 -2
- package/sale-offer/src/models/SaleOfferStatisticLinkAllOf.d.ts +12 -0
- package/sale-offer/src/models/SaleOfferStatisticLinkAllOf.js +4 -0
|
@@ -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
|
};
|
package/package.json
CHANGED
|
@@ -37,6 +37,9 @@ export interface GetSaleOffersRequest {
|
|
|
37
37
|
stReasonEq?: SaleOfferStatusReason;
|
|
38
38
|
stockRemainingQuantityGte?: number;
|
|
39
39
|
stockRemainingQuantityLte?: number;
|
|
40
|
+
stockLapsingDateLte?: Date;
|
|
41
|
+
stockLapsingDateGte?: Date;
|
|
42
|
+
soldOutSoonEq?: boolean;
|
|
40
43
|
orderBy?: Array<GetSaleOffersOrderByEnum>;
|
|
41
44
|
distinctBy?: GetSaleOffersDistinctByEnum;
|
|
42
45
|
p?: number;
|
|
@@ -232,6 +232,15 @@ var SearchSaleOfferApi = /** @class */ (function (_super) {
|
|
|
232
232
|
if (requestParameters.stockRemainingQuantityLte !== undefined) {
|
|
233
233
|
queryParameters['stockRemainingQuantity[lte]'] = requestParameters.stockRemainingQuantityLte;
|
|
234
234
|
}
|
|
235
|
+
if (requestParameters.stockLapsingDateLte !== undefined) {
|
|
236
|
+
queryParameters['stockLapsingDate[lte]'] = (0, runtime_1.toDateISOString)(requestParameters.stockLapsingDateLte);
|
|
237
|
+
}
|
|
238
|
+
if (requestParameters.stockLapsingDateGte !== undefined) {
|
|
239
|
+
queryParameters['stockLapsingDate[gte]'] = (0, runtime_1.toDateISOString)(requestParameters.stockLapsingDateGte);
|
|
240
|
+
}
|
|
241
|
+
if (requestParameters.soldOutSoonEq !== undefined) {
|
|
242
|
+
queryParameters['soldOutSoon[eq]'] = requestParameters.soldOutSoonEq;
|
|
243
|
+
}
|
|
235
244
|
if (requestParameters.orderBy) {
|
|
236
245
|
queryParameters['orderBy'] = requestParameters.orderBy;
|
|
237
246
|
}
|
|
@@ -78,6 +78,12 @@ export interface SaleOffer {
|
|
|
78
78
|
* @memberof SaleOffer
|
|
79
79
|
*/
|
|
80
80
|
bestRebate: number;
|
|
81
|
+
/**
|
|
82
|
+
* True if the stock is sold out soon. If \'null\' then not been computed yet or not enough data to compute.
|
|
83
|
+
* @type {boolean}
|
|
84
|
+
* @memberof SaleOffer
|
|
85
|
+
*/
|
|
86
|
+
soldOutSoon: boolean | null;
|
|
81
87
|
/**
|
|
82
88
|
*
|
|
83
89
|
* @type {OwnerLink}
|
|
@@ -42,6 +42,7 @@ function SaleOfferFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
42
|
'distributionMode': (0, AnyIdentifiedDistributionMode_1.AnyIdentifiedDistributionModeFromJSON)(json['distributionMode']),
|
|
43
43
|
'minimalUnitPrice': json['minimalUnitPrice'],
|
|
44
44
|
'bestRebate': json['bestRebate'],
|
|
45
|
+
'soldOutSoon': json['soldOutSoon'],
|
|
45
46
|
'owner': (0, OwnerLink_1.OwnerLinkFromJSON)(json['owner']),
|
|
46
47
|
'updatedAt': (new Date(json['updatedAt'])),
|
|
47
48
|
'createdAt': (new Date(json['createdAt'])),
|
|
@@ -70,6 +71,7 @@ function SaleOfferToJSON(value) {
|
|
|
70
71
|
'distributionMode': (0, AnyIdentifiedDistributionMode_1.AnyIdentifiedDistributionModeToJSON)(value.distributionMode),
|
|
71
72
|
'minimalUnitPrice': value.minimalUnitPrice,
|
|
72
73
|
'bestRebate': value.bestRebate,
|
|
74
|
+
'soldOutSoon': value.soldOutSoon,
|
|
73
75
|
'owner': (0, OwnerLink_1.OwnerLinkToJSON)(value.owner),
|
|
74
76
|
'updatedAt': (value.updatedAt.toISOString()),
|
|
75
77
|
'createdAt': (value.createdAt.toISOString()),
|
|
@@ -28,6 +28,18 @@ export interface SaleOfferStatisticLink extends HttpLink {
|
|
|
28
28
|
* @memberof SaleOfferStatisticLink
|
|
29
29
|
*/
|
|
30
30
|
numberOfSales?: number;
|
|
31
|
+
/**
|
|
32
|
+
* Sold out coefficient to factor with sale offer reamining quantity
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof SaleOfferStatisticLink
|
|
35
|
+
*/
|
|
36
|
+
soldOutCoefficient?: number;
|
|
37
|
+
/**
|
|
38
|
+
* Threshold under which a sale offer will be considered as sold out soon, such as : soldOutSoon = (soldOutCoefficient * remainingQuantity) < soldOutThreshold
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof SaleOfferStatisticLink
|
|
41
|
+
*/
|
|
42
|
+
soldOutThreshold?: number;
|
|
31
43
|
}
|
|
32
44
|
export declare function SaleOfferStatisticLinkFromJSON(json: any): SaleOfferStatisticLink;
|
|
33
45
|
export declare function SaleOfferStatisticLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): SaleOfferStatisticLink;
|
|
@@ -35,7 +35,7 @@ function SaleOfferStatisticLinkFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
35
|
if ((json === undefined) || (json === null)) {
|
|
36
36
|
return json;
|
|
37
37
|
}
|
|
38
|
-
return __assign(__assign({}, (0, HttpLink_1.HttpLinkFromJSONTyped)(json, ignoreDiscriminator)), { 'lastSaleDate': !(0, runtime_1.exists)(json, 'lastSaleDate') ? undefined : (new Date(json['lastSaleDate'])), 'numberOfSales': !(0, runtime_1.exists)(json, 'numberOfSales') ? undefined : json['numberOfSales'] });
|
|
38
|
+
return __assign(__assign({}, (0, HttpLink_1.HttpLinkFromJSONTyped)(json, ignoreDiscriminator)), { 'lastSaleDate': !(0, runtime_1.exists)(json, 'lastSaleDate') ? undefined : (new Date(json['lastSaleDate'])), 'numberOfSales': !(0, runtime_1.exists)(json, 'numberOfSales') ? undefined : json['numberOfSales'], 'soldOutCoefficient': !(0, runtime_1.exists)(json, 'soldOutCoefficient') ? undefined : json['soldOutCoefficient'], 'soldOutThreshold': !(0, runtime_1.exists)(json, 'soldOutThreshold') ? undefined : json['soldOutThreshold'] });
|
|
39
39
|
}
|
|
40
40
|
exports.SaleOfferStatisticLinkFromJSONTyped = SaleOfferStatisticLinkFromJSONTyped;
|
|
41
41
|
function SaleOfferStatisticLinkToJSON(value) {
|
|
@@ -45,6 +45,6 @@ function SaleOfferStatisticLinkToJSON(value) {
|
|
|
45
45
|
if (value === null) {
|
|
46
46
|
return null;
|
|
47
47
|
}
|
|
48
|
-
return __assign(__assign({}, (0, HttpLink_1.HttpLinkToJSON)(value)), { 'lastSaleDate': value.lastSaleDate === undefined ? undefined : (value.lastSaleDate.toISOString()), 'numberOfSales': value.numberOfSales });
|
|
48
|
+
return __assign(__assign({}, (0, HttpLink_1.HttpLinkToJSON)(value)), { 'lastSaleDate': value.lastSaleDate === undefined ? undefined : (value.lastSaleDate.toISOString()), 'numberOfSales': value.numberOfSales, 'soldOutCoefficient': value.soldOutCoefficient, 'soldOutThreshold': value.soldOutThreshold });
|
|
49
49
|
}
|
|
50
50
|
exports.SaleOfferStatisticLinkToJSON = SaleOfferStatisticLinkToJSON;
|
|
@@ -27,6 +27,18 @@ export interface SaleOfferStatisticLinkAllOf {
|
|
|
27
27
|
* @memberof SaleOfferStatisticLinkAllOf
|
|
28
28
|
*/
|
|
29
29
|
numberOfSales?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Sold out coefficient to factor with sale offer reamining quantity
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof SaleOfferStatisticLinkAllOf
|
|
34
|
+
*/
|
|
35
|
+
soldOutCoefficient?: number;
|
|
36
|
+
/**
|
|
37
|
+
* Threshold under which a sale offer will be considered as sold out soon, such as : soldOutSoon = (soldOutCoefficient * remainingQuantity) < soldOutThreshold
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof SaleOfferStatisticLinkAllOf
|
|
40
|
+
*/
|
|
41
|
+
soldOutThreshold?: number;
|
|
30
42
|
}
|
|
31
43
|
export declare function SaleOfferStatisticLinkAllOfFromJSON(json: any): SaleOfferStatisticLinkAllOf;
|
|
32
44
|
export declare function SaleOfferStatisticLinkAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): SaleOfferStatisticLinkAllOf;
|
|
@@ -26,6 +26,8 @@ function SaleOfferStatisticLinkAllOfFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
26
26
|
return {
|
|
27
27
|
'lastSaleDate': !(0, runtime_1.exists)(json, 'lastSaleDate') ? undefined : (new Date(json['lastSaleDate'])),
|
|
28
28
|
'numberOfSales': !(0, runtime_1.exists)(json, 'numberOfSales') ? undefined : json['numberOfSales'],
|
|
29
|
+
'soldOutCoefficient': !(0, runtime_1.exists)(json, 'soldOutCoefficient') ? undefined : json['soldOutCoefficient'],
|
|
30
|
+
'soldOutThreshold': !(0, runtime_1.exists)(json, 'soldOutThreshold') ? undefined : json['soldOutThreshold'],
|
|
29
31
|
};
|
|
30
32
|
}
|
|
31
33
|
exports.SaleOfferStatisticLinkAllOfFromJSONTyped = SaleOfferStatisticLinkAllOfFromJSONTyped;
|
|
@@ -39,6 +41,8 @@ function SaleOfferStatisticLinkAllOfToJSON(value) {
|
|
|
39
41
|
return {
|
|
40
42
|
'lastSaleDate': value.lastSaleDate === undefined ? undefined : (value.lastSaleDate.toISOString()),
|
|
41
43
|
'numberOfSales': value.numberOfSales,
|
|
44
|
+
'soldOutCoefficient': value.soldOutCoefficient,
|
|
45
|
+
'soldOutThreshold': value.soldOutThreshold,
|
|
42
46
|
};
|
|
43
47
|
}
|
|
44
48
|
exports.SaleOfferStatisticLinkAllOfToJSON = SaleOfferStatisticLinkAllOfToJSON;
|