@lcdp/api-react-rest-client 2.0.3 → 2.0.4-LDS-2812-contingenter-les-annonces.4013592121
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/order/src/models/UserLink.d.ts +3 -21
- package/order/src/models/UserLink.js +2 -2
- package/order/src/models/UserLinkAllOf.d.ts +3 -21
- package/order/src/models/UserLinkAllOf.js +3 -9
- package/package.json +1 -1
- package/sale-offer/src/apis/SearchSaleOfferApi.d.ts +2 -0
- package/sale-offer/src/apis/SearchSaleOfferApi.js +2 -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/SaleOfferCreationParameters.d.ts +6 -0
- package/sale-offer/src/models/SaleOfferCreationParameters.js +2 -0
- package/sale-offer/src/models/SaleOfferNewVersionParameters.d.ts +6 -0
- package/sale-offer/src/models/SaleOfferNewVersionParameters.js +2 -0
|
@@ -22,37 +22,19 @@ export interface UserLink extends HttpLink {
|
|
|
22
22
|
* @type {number}
|
|
23
23
|
* @memberof UserLink
|
|
24
24
|
*/
|
|
25
|
-
id
|
|
26
|
-
/**
|
|
27
|
-
* User firstname
|
|
28
|
-
* @type {string}
|
|
29
|
-
* @memberof UserLink
|
|
30
|
-
*/
|
|
31
|
-
firstname?: string;
|
|
32
|
-
/**
|
|
33
|
-
* User lastname
|
|
34
|
-
* @type {string}
|
|
35
|
-
* @memberof UserLink
|
|
36
|
-
*/
|
|
37
|
-
lastname?: string;
|
|
38
|
-
/**
|
|
39
|
-
* An email in conformity with pattern
|
|
40
|
-
* @type {string}
|
|
41
|
-
* @memberof UserLink
|
|
42
|
-
*/
|
|
43
|
-
email?: string;
|
|
25
|
+
id?: number;
|
|
44
26
|
/**
|
|
45
27
|
* User nickname
|
|
46
28
|
* @type {string}
|
|
47
29
|
* @memberof UserLink
|
|
48
30
|
*/
|
|
49
|
-
nickname
|
|
31
|
+
nickname?: string;
|
|
50
32
|
/**
|
|
51
33
|
*
|
|
52
34
|
* @type {UserLinkAllOfCompany}
|
|
53
35
|
* @memberof UserLink
|
|
54
36
|
*/
|
|
55
|
-
company
|
|
37
|
+
company?: UserLinkAllOfCompany;
|
|
56
38
|
}
|
|
57
39
|
export declare function UserLinkFromJSON(json: any): UserLink;
|
|
58
40
|
export declare function UserLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserLink;
|
|
@@ -36,7 +36,7 @@ function UserLinkFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
36
|
if ((json === undefined) || (json === null)) {
|
|
37
37
|
return json;
|
|
38
38
|
}
|
|
39
|
-
return __assign(__assign({}, (0, HttpLink_1.HttpLinkFromJSONTyped)(json, ignoreDiscriminator)), { 'id':
|
|
39
|
+
return __assign(__assign({}, (0, HttpLink_1.HttpLinkFromJSONTyped)(json, ignoreDiscriminator)), { 'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'], 'nickname': !(0, runtime_1.exists)(json, 'nickname') ? undefined : json['nickname'], 'company': !(0, runtime_1.exists)(json, 'company') ? undefined : (0, UserLinkAllOfCompany_1.UserLinkAllOfCompanyFromJSON)(json['company']) });
|
|
40
40
|
}
|
|
41
41
|
exports.UserLinkFromJSONTyped = UserLinkFromJSONTyped;
|
|
42
42
|
function UserLinkToJSON(value) {
|
|
@@ -46,6 +46,6 @@ function UserLinkToJSON(value) {
|
|
|
46
46
|
if (value === null) {
|
|
47
47
|
return null;
|
|
48
48
|
}
|
|
49
|
-
return __assign(__assign({}, (0, HttpLink_1.HttpLinkToJSON)(value)), { 'id': value.id, '
|
|
49
|
+
return __assign(__assign({}, (0, HttpLink_1.HttpLinkToJSON)(value)), { 'id': value.id, 'nickname': value.nickname, 'company': (0, UserLinkAllOfCompany_1.UserLinkAllOfCompanyToJSON)(value.company) });
|
|
50
50
|
}
|
|
51
51
|
exports.UserLinkToJSON = UserLinkToJSON;
|
|
@@ -21,37 +21,19 @@ export interface UserLinkAllOf {
|
|
|
21
21
|
* @type {number}
|
|
22
22
|
* @memberof UserLinkAllOf
|
|
23
23
|
*/
|
|
24
|
-
id
|
|
25
|
-
/**
|
|
26
|
-
* User firstname
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof UserLinkAllOf
|
|
29
|
-
*/
|
|
30
|
-
firstname?: string;
|
|
31
|
-
/**
|
|
32
|
-
* User lastname
|
|
33
|
-
* @type {string}
|
|
34
|
-
* @memberof UserLinkAllOf
|
|
35
|
-
*/
|
|
36
|
-
lastname?: string;
|
|
37
|
-
/**
|
|
38
|
-
* An email in conformity with pattern
|
|
39
|
-
* @type {string}
|
|
40
|
-
* @memberof UserLinkAllOf
|
|
41
|
-
*/
|
|
42
|
-
email?: string;
|
|
24
|
+
id?: number;
|
|
43
25
|
/**
|
|
44
26
|
* User nickname
|
|
45
27
|
* @type {string}
|
|
46
28
|
* @memberof UserLinkAllOf
|
|
47
29
|
*/
|
|
48
|
-
nickname
|
|
30
|
+
nickname?: string;
|
|
49
31
|
/**
|
|
50
32
|
*
|
|
51
33
|
* @type {UserLinkAllOfCompany}
|
|
52
34
|
* @memberof UserLinkAllOf
|
|
53
35
|
*/
|
|
54
|
-
company
|
|
36
|
+
company?: UserLinkAllOfCompany;
|
|
55
37
|
}
|
|
56
38
|
export declare function UserLinkAllOfFromJSON(json: any): UserLinkAllOf;
|
|
57
39
|
export declare function UserLinkAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserLinkAllOf;
|
|
@@ -25,12 +25,9 @@ function UserLinkAllOfFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
25
25
|
return json;
|
|
26
26
|
}
|
|
27
27
|
return {
|
|
28
|
-
'id': json['id'],
|
|
29
|
-
'
|
|
30
|
-
'
|
|
31
|
-
'email': !(0, runtime_1.exists)(json, 'email') ? undefined : json['email'],
|
|
32
|
-
'nickname': json['nickname'],
|
|
33
|
-
'company': (0, UserLinkAllOfCompany_1.UserLinkAllOfCompanyFromJSON)(json['company']),
|
|
28
|
+
'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
|
|
29
|
+
'nickname': !(0, runtime_1.exists)(json, 'nickname') ? undefined : json['nickname'],
|
|
30
|
+
'company': !(0, runtime_1.exists)(json, 'company') ? undefined : (0, UserLinkAllOfCompany_1.UserLinkAllOfCompanyFromJSON)(json['company']),
|
|
34
31
|
};
|
|
35
32
|
}
|
|
36
33
|
exports.UserLinkAllOfFromJSONTyped = UserLinkAllOfFromJSONTyped;
|
|
@@ -43,9 +40,6 @@ function UserLinkAllOfToJSON(value) {
|
|
|
43
40
|
}
|
|
44
41
|
return {
|
|
45
42
|
'id': value.id,
|
|
46
|
-
'firstname': value.firstname,
|
|
47
|
-
'lastname': value.lastname,
|
|
48
|
-
'email': value.email,
|
|
49
43
|
'nickname': value.nickname,
|
|
50
44
|
'company': (0, UserLinkAllOfCompany_1.UserLinkAllOfCompanyToJSON)(value.company),
|
|
51
45
|
};
|
package/package.json
CHANGED
|
@@ -77,6 +77,8 @@ export declare enum GetSaleOffersOrderByEnum {
|
|
|
77
77
|
STOCKBATCHdesc = "STOCK_BATCH:desc",
|
|
78
78
|
STOCKREMAININGQUANTITYasc = "STOCK_REMAINING_QUANTITY:asc",
|
|
79
79
|
STOCKREMAININGQUANTITYdesc = "STOCK_REMAINING_QUANTITY:desc",
|
|
80
|
+
MAXBUYABLEQUANTITYasc = "MAX_BUYABLE_QUANTITY:asc",
|
|
81
|
+
MAXBUYABLEQUANTITYdesc = "MAX_BUYABLE_QUANTITY:desc",
|
|
80
82
|
MINIMALQUANTITYasc = "MINIMAL_QUANTITY:asc",
|
|
81
83
|
MINIMALQUANTITYdesc = "MINIMAL_QUANTITY:desc",
|
|
82
84
|
STATUSasc = "STATUS:asc",
|
|
@@ -304,6 +304,8 @@ var GetSaleOffersOrderByEnum;
|
|
|
304
304
|
GetSaleOffersOrderByEnum["STOCKBATCHdesc"] = "STOCK_BATCH:desc";
|
|
305
305
|
GetSaleOffersOrderByEnum["STOCKREMAININGQUANTITYasc"] = "STOCK_REMAINING_QUANTITY:asc";
|
|
306
306
|
GetSaleOffersOrderByEnum["STOCKREMAININGQUANTITYdesc"] = "STOCK_REMAINING_QUANTITY:desc";
|
|
307
|
+
GetSaleOffersOrderByEnum["MAXBUYABLEQUANTITYasc"] = "MAX_BUYABLE_QUANTITY:asc";
|
|
308
|
+
GetSaleOffersOrderByEnum["MAXBUYABLEQUANTITYdesc"] = "MAX_BUYABLE_QUANTITY:desc";
|
|
307
309
|
GetSaleOffersOrderByEnum["MINIMALQUANTITYasc"] = "MINIMAL_QUANTITY:asc";
|
|
308
310
|
GetSaleOffersOrderByEnum["MINIMALQUANTITYdesc"] = "MINIMAL_QUANTITY:desc";
|
|
309
311
|
GetSaleOffersOrderByEnum["STATUSasc"] = "STATUS:asc";
|
|
@@ -47,6 +47,12 @@ export interface SaleOffer {
|
|
|
47
47
|
* @memberof SaleOffer
|
|
48
48
|
*/
|
|
49
49
|
stock?: Stock;
|
|
50
|
+
/**
|
|
51
|
+
* Maximum buyable quantity for each order Null value signify there is no limit of buyable quantity (just limited by remainingQuantity)
|
|
52
|
+
* @type {number}
|
|
53
|
+
* @memberof SaleOffer
|
|
54
|
+
*/
|
|
55
|
+
maxBuyableQuantity?: number | null;
|
|
50
56
|
/**
|
|
51
57
|
* Description of the sale offer
|
|
52
58
|
* @type {string}
|
|
@@ -36,6 +36,7 @@ function SaleOfferFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
36
|
'status': !(0, runtime_1.exists)(json, 'status') ? undefined : (0, SaleOfferStatus_1.SaleOfferStatusFromJSON)(json['status']),
|
|
37
37
|
'product': !(0, runtime_1.exists)(json, 'product') ? undefined : (0, ProductLink_1.ProductLinkFromJSON)(json['product']),
|
|
38
38
|
'stock': !(0, runtime_1.exists)(json, 'stock') ? undefined : (0, Stock_1.StockFromJSON)(json['stock']),
|
|
39
|
+
'maxBuyableQuantity': !(0, runtime_1.exists)(json, 'maxBuyableQuantity') ? json['maxBuyableQuantity'] : json['maxBuyableQuantity'],
|
|
39
40
|
'description': !(0, runtime_1.exists)(json, 'description') ? json['description'] : json['description'],
|
|
40
41
|
'distributionMode': !(0, runtime_1.exists)(json, 'distributionMode') ? json['distributionMode'] : (0, AnyIdentifiedDistributionMode_1.AnyIdentifiedDistributionModeFromJSON)(json['distributionMode']),
|
|
41
42
|
'minimalUnitPrice': !(0, runtime_1.exists)(json, 'minimalUnitPrice') ? undefined : json['minimalUnitPrice'],
|
|
@@ -63,6 +64,7 @@ function SaleOfferToJSON(value) {
|
|
|
63
64
|
'status': (0, SaleOfferStatus_1.SaleOfferStatusToJSON)(value.status),
|
|
64
65
|
'product': (0, ProductLink_1.ProductLinkToJSON)(value.product),
|
|
65
66
|
'stock': (0, Stock_1.StockToJSON)(value.stock),
|
|
67
|
+
'maxBuyableQuantity': value.maxBuyableQuantity,
|
|
66
68
|
'description': value.description,
|
|
67
69
|
'distributionMode': (0, AnyIdentifiedDistributionMode_1.AnyIdentifiedDistributionModeToJSON)(value.distributionMode),
|
|
68
70
|
'minimalUnitPrice': value.minimalUnitPrice,
|
|
@@ -36,6 +36,12 @@ export interface SaleOfferCreationParameters {
|
|
|
36
36
|
* @memberof SaleOfferCreationParameters
|
|
37
37
|
*/
|
|
38
38
|
stock?: Stock;
|
|
39
|
+
/**
|
|
40
|
+
* Maximum buyable quantity for each order Null value signify there is no limit of buyable quantity (just limited by remainingQuantity)
|
|
41
|
+
* @type {number}
|
|
42
|
+
* @memberof SaleOfferCreationParameters
|
|
43
|
+
*/
|
|
44
|
+
maxBuyableQuantity?: number | null;
|
|
39
45
|
/**
|
|
40
46
|
*
|
|
41
47
|
* @type {AnyDistributionMode}
|
|
@@ -30,6 +30,7 @@ function SaleOfferCreationParametersFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
30
30
|
'ownerId': !(0, runtime_1.exists)(json, 'ownerId') ? undefined : json['ownerId'],
|
|
31
31
|
'productId': !(0, runtime_1.exists)(json, 'productId') ? undefined : json['productId'],
|
|
32
32
|
'stock': !(0, runtime_1.exists)(json, 'stock') ? undefined : (0, Stock_1.StockFromJSON)(json['stock']),
|
|
33
|
+
'maxBuyableQuantity': !(0, runtime_1.exists)(json, 'maxBuyableQuantity') ? json['maxBuyableQuantity'] : json['maxBuyableQuantity'],
|
|
33
34
|
'distributionMode': !(0, runtime_1.exists)(json, 'distributionMode') ? json['distributionMode'] : (0, AnyDistributionMode_1.AnyDistributionModeFromJSON)(json['distributionMode']),
|
|
34
35
|
'description': !(0, runtime_1.exists)(json, 'description') ? json['description'] : json['description'],
|
|
35
36
|
'images': !(0, runtime_1.exists)(json, 'images') ? undefined : (0, SaleOfferCreationImagesParameters_1.SaleOfferCreationImagesParametersFromJSON)(json['images']),
|
|
@@ -49,6 +50,7 @@ function SaleOfferCreationParametersToJSON(value) {
|
|
|
49
50
|
'ownerId': value.ownerId,
|
|
50
51
|
'productId': value.productId,
|
|
51
52
|
'stock': (0, Stock_1.StockToJSON)(value.stock),
|
|
53
|
+
'maxBuyableQuantity': value.maxBuyableQuantity,
|
|
52
54
|
'distributionMode': (0, AnyDistributionMode_1.AnyDistributionModeToJSON)(value.distributionMode),
|
|
53
55
|
'description': value.description,
|
|
54
56
|
'images': (0, SaleOfferCreationImagesParameters_1.SaleOfferCreationImagesParametersToJSON)(value.images),
|
|
@@ -24,6 +24,12 @@ export interface SaleOfferNewVersionParameters {
|
|
|
24
24
|
* @memberof SaleOfferNewVersionParameters
|
|
25
25
|
*/
|
|
26
26
|
stock?: Stock;
|
|
27
|
+
/**
|
|
28
|
+
* Maximum buyable quantity for each order Null value signify there is no limit of buyable quantity (just limited by remainingQuantity)
|
|
29
|
+
* @type {number}
|
|
30
|
+
* @memberof SaleOfferNewVersionParameters
|
|
31
|
+
*/
|
|
32
|
+
maxBuyableQuantity?: number | null;
|
|
27
33
|
/**
|
|
28
34
|
*
|
|
29
35
|
* @type {AnyDistributionMode}
|
|
@@ -28,6 +28,7 @@ function SaleOfferNewVersionParametersFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
28
28
|
}
|
|
29
29
|
return {
|
|
30
30
|
'stock': !(0, runtime_1.exists)(json, 'stock') ? undefined : (0, Stock_1.StockFromJSON)(json['stock']),
|
|
31
|
+
'maxBuyableQuantity': !(0, runtime_1.exists)(json, 'maxBuyableQuantity') ? json['maxBuyableQuantity'] : json['maxBuyableQuantity'],
|
|
31
32
|
'distributionMode': !(0, runtime_1.exists)(json, 'distributionMode') ? json['distributionMode'] : (0, AnyDistributionMode_1.AnyDistributionModeFromJSON)(json['distributionMode']),
|
|
32
33
|
'images': !(0, runtime_1.exists)(json, 'images') ? undefined : (0, SaleOfferCreationImagesParameters_1.SaleOfferCreationImagesParametersFromJSON)(json['images']),
|
|
33
34
|
'description': !(0, runtime_1.exists)(json, 'description') ? json['description'] : json['description'],
|
|
@@ -44,6 +45,7 @@ function SaleOfferNewVersionParametersToJSON(value) {
|
|
|
44
45
|
}
|
|
45
46
|
return {
|
|
46
47
|
'stock': (0, Stock_1.StockToJSON)(value.stock),
|
|
48
|
+
'maxBuyableQuantity': value.maxBuyableQuantity,
|
|
47
49
|
'distributionMode': (0, AnyDistributionMode_1.AnyDistributionModeToJSON)(value.distributionMode),
|
|
48
50
|
'images': (0, SaleOfferCreationImagesParameters_1.SaleOfferCreationImagesParametersToJSON)(value.images),
|
|
49
51
|
'description': value.description,
|