@lcdp/api-react-rest-client 2.7.0-develop.9746460647 → 2.7.0

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,12 +16,6 @@ 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;
25
19
  /**
26
20
  *
27
21
  * @type {Array<SellerProposal>}
@@ -25,7 +25,6 @@ function ExpressOrderFromJSONTyped(json, ignoreDiscriminator) {
25
25
  return json;
26
26
  }
27
27
  return {
28
- 'optimal': !(0, runtime_1.exists)(json, 'optimal') ? undefined : json['optimal'],
29
28
  'sellerProposals': !(0, runtime_1.exists)(json, 'sellerProposals') ? undefined : (json['sellerProposals'].map(SellerProposal_1.SellerProposalFromJSON)),
30
29
  };
31
30
  }
@@ -38,7 +37,6 @@ function ExpressOrderToJSON(value) {
38
37
  return null;
39
38
  }
40
39
  return {
41
- 'optimal': value.optimal,
42
40
  'sellerProposals': value.sellerProposals === undefined ? undefined : (value.sellerProposals.map(SellerProposal_1.SellerProposalToJSON)),
43
41
  };
44
42
  }
@@ -16,12 +16,6 @@ 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;
25
19
  /**
26
20
  * User Id to do the request for
27
21
  * @type {number}
@@ -25,7 +25,6 @@ function ExpressOrderCreationParametersFromJSONTyped(json, ignoreDiscriminator)
25
25
  return json;
26
26
  }
27
27
  return {
28
- 'maxRequestDuration': !(0, runtime_1.exists)(json, 'maxRequestDuration') ? undefined : json['maxRequestDuration'],
29
28
  'buyerId': json['buyerId'],
30
29
  'needs': !(0, runtime_1.exists)(json, 'needs') ? undefined : (json['needs'].map(ExpressOrderNeed_1.ExpressOrderNeedFromJSON)),
31
30
  };
@@ -39,7 +38,6 @@ function ExpressOrderCreationParametersToJSON(value) {
39
38
  return null;
40
39
  }
41
40
  return {
42
- 'maxRequestDuration': value.maxRequestDuration,
43
41
  'buyerId': value.buyerId,
44
42
  'needs': value.needs === undefined ? undefined : (value.needs.map(ExpressOrderNeed_1.ExpressOrderNeedToJSON)),
45
43
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lcdp/api-react-rest-client",
3
- "version": "2.7.0-develop.9746460647",
3
+ "version": "2.7.0",
4
4
  "scripts": {
5
5
  "build": "tsc"
6
6
  },
@@ -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'], 'soldOutCoefficient': !(0, runtime_1.exists)(json, 'soldOutCoefficient') ? undefined : json['soldOutCoefficient'], 'soldOutThreshold': !(0, runtime_1.exists)(json, 'soldOutThreshold') ? undefined : json['soldOutThreshold'] });
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, 'soldOutCoefficient': value.soldOutCoefficient, 'soldOutThreshold': value.soldOutThreshold });
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;