@lcdp/api-react-rest-client 2.6.14-develop.9646141867 → 2.6.14-develop.9646608766
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/sale-offer/src/apis/SearchSaleOfferApi.d.ts +0 -3
- package/sale-offer/src/apis/SearchSaleOfferApi.js +0 -9
- package/sale-offer/src/models/SaleOffer.d.ts +0 -6
- package/sale-offer/src/models/SaleOffer.js +0 -2
- package/sale-offer/src/models/SaleOfferStatisticLink.d.ts +0 -12
- package/sale-offer/src/models/SaleOfferStatisticLink.js +2 -2
- package/sale-offer/src/models/SaleOfferStatisticLinkAllOf.d.ts +0 -12
- package/sale-offer/src/models/SaleOfferStatisticLinkAllOf.js +0 -4
- package/statistic/src/models/SaleOfferStatistic.d.ts +0 -12
- package/statistic/src/models/SaleOfferStatistic.js +0 -4
package/package.json
CHANGED
|
@@ -37,9 +37,6 @@ export interface GetSaleOffersRequest {
|
|
|
37
37
|
stReasonEq?: SaleOfferStatusReason;
|
|
38
38
|
stockRemainingQuantityGte?: number;
|
|
39
39
|
stockRemainingQuantityLte?: number;
|
|
40
|
-
stockLapsingDateLte?: Date;
|
|
41
|
-
stockLapsingDateGte?: Date;
|
|
42
|
-
soldOutSoonEq?: boolean;
|
|
43
40
|
orderBy?: Array<GetSaleOffersOrderByEnum>;
|
|
44
41
|
distinctBy?: GetSaleOffersDistinctByEnum;
|
|
45
42
|
p?: number;
|
|
@@ -232,15 +232,6 @@ 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
|
-
}
|
|
244
235
|
if (requestParameters.orderBy) {
|
|
245
236
|
queryParameters['orderBy'] = requestParameters.orderBy;
|
|
246
237
|
}
|
|
@@ -78,12 +78,6 @@ 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;
|
|
87
81
|
/**
|
|
88
82
|
*
|
|
89
83
|
* @type {OwnerLink}
|
|
@@ -42,7 +42,6 @@ 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'],
|
|
46
45
|
'owner': (0, OwnerLink_1.OwnerLinkFromJSON)(json['owner']),
|
|
47
46
|
'updatedAt': (new Date(json['updatedAt'])),
|
|
48
47
|
'createdAt': (new Date(json['createdAt'])),
|
|
@@ -71,7 +70,6 @@ function SaleOfferToJSON(value) {
|
|
|
71
70
|
'distributionMode': (0, AnyIdentifiedDistributionMode_1.AnyIdentifiedDistributionModeToJSON)(value.distributionMode),
|
|
72
71
|
'minimalUnitPrice': value.minimalUnitPrice,
|
|
73
72
|
'bestRebate': value.bestRebate,
|
|
74
|
-
'soldOutSoon': value.soldOutSoon,
|
|
75
73
|
'owner': (0, OwnerLink_1.OwnerLinkToJSON)(value.owner),
|
|
76
74
|
'updatedAt': (value.updatedAt.toISOString()),
|
|
77
75
|
'createdAt': (value.createdAt.toISOString()),
|
|
@@ -28,18 +28,6 @@ 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;
|
|
43
31
|
}
|
|
44
32
|
export declare function SaleOfferStatisticLinkFromJSON(json: any): SaleOfferStatisticLink;
|
|
45
33
|
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'] });
|
|
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 });
|
|
49
49
|
}
|
|
50
50
|
exports.SaleOfferStatisticLinkToJSON = SaleOfferStatisticLinkToJSON;
|
|
@@ -27,18 +27,6 @@ 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;
|
|
42
30
|
}
|
|
43
31
|
export declare function SaleOfferStatisticLinkAllOfFromJSON(json: any): SaleOfferStatisticLinkAllOf;
|
|
44
32
|
export declare function SaleOfferStatisticLinkAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): SaleOfferStatisticLinkAllOf;
|
|
@@ -26,8 +26,6 @@ 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'],
|
|
31
29
|
};
|
|
32
30
|
}
|
|
33
31
|
exports.SaleOfferStatisticLinkAllOfFromJSONTyped = SaleOfferStatisticLinkAllOfFromJSONTyped;
|
|
@@ -41,8 +39,6 @@ function SaleOfferStatisticLinkAllOfToJSON(value) {
|
|
|
41
39
|
return {
|
|
42
40
|
'lastSaleDate': value.lastSaleDate === undefined ? undefined : (value.lastSaleDate.toISOString()),
|
|
43
41
|
'numberOfSales': value.numberOfSales,
|
|
44
|
-
'soldOutCoefficient': value.soldOutCoefficient,
|
|
45
|
-
'soldOutThreshold': value.soldOutThreshold,
|
|
46
42
|
};
|
|
47
43
|
}
|
|
48
44
|
exports.SaleOfferStatisticLinkAllOfToJSON = SaleOfferStatisticLinkAllOfToJSON;
|
|
@@ -40,18 +40,6 @@ export interface SaleOfferStatistic {
|
|
|
40
40
|
* @memberof SaleOfferStatistic
|
|
41
41
|
*/
|
|
42
42
|
numberOfSales?: number;
|
|
43
|
-
/**
|
|
44
|
-
* Sold out coefficient to factor with sale offer reamining quantity
|
|
45
|
-
* @type {number}
|
|
46
|
-
* @memberof SaleOfferStatistic
|
|
47
|
-
*/
|
|
48
|
-
soldOutCoefficient?: number;
|
|
49
|
-
/**
|
|
50
|
-
* Threshold under which a sale offer will be considered as sold out soon, such as : soldOutSoon = (soldOutCoefficient * remainingQuantity) < soldOutThreshold
|
|
51
|
-
* @type {number}
|
|
52
|
-
* @memberof SaleOfferStatistic
|
|
53
|
-
*/
|
|
54
|
-
soldOutThreshold?: number;
|
|
55
43
|
/**
|
|
56
44
|
*
|
|
57
45
|
* @type {UserLink}
|
|
@@ -29,8 +29,6 @@ function SaleOfferStatisticFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
29
29
|
'reference': !(0, runtime_1.exists)(json, 'reference') ? undefined : json['reference'],
|
|
30
30
|
'lastSaleDate': !(0, runtime_1.exists)(json, 'lastSaleDate') ? undefined : (new Date(json['lastSaleDate'])),
|
|
31
31
|
'numberOfSales': !(0, runtime_1.exists)(json, 'numberOfSales') ? undefined : json['numberOfSales'],
|
|
32
|
-
'soldOutCoefficient': !(0, runtime_1.exists)(json, 'soldOutCoefficient') ? undefined : json['soldOutCoefficient'],
|
|
33
|
-
'soldOutThreshold': !(0, runtime_1.exists)(json, 'soldOutThreshold') ? undefined : json['soldOutThreshold'],
|
|
34
32
|
'owner': !(0, runtime_1.exists)(json, 'owner') ? undefined : (0, UserLink_1.UserLinkFromJSON)(json['owner']),
|
|
35
33
|
};
|
|
36
34
|
}
|
|
@@ -47,8 +45,6 @@ function SaleOfferStatisticToJSON(value) {
|
|
|
47
45
|
'reference': value.reference,
|
|
48
46
|
'lastSaleDate': value.lastSaleDate === undefined ? undefined : (value.lastSaleDate.toISOString()),
|
|
49
47
|
'numberOfSales': value.numberOfSales,
|
|
50
|
-
'soldOutCoefficient': value.soldOutCoefficient,
|
|
51
|
-
'soldOutThreshold': value.soldOutThreshold,
|
|
52
48
|
'owner': (0, UserLink_1.UserLinkToJSON)(value.owner),
|
|
53
49
|
};
|
|
54
50
|
}
|