@lcdp/api-react-rest-client 2.10.0-upgrade-codegen-client-react.13239347278 → 2.10.0-upgrade-codegen-client-react-v2.13243668640
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/auth/src/models/RestError.d.ts +4 -2
- package/auth/src/models/RestError.js +4 -2
- package/catalog/src/models/RestError.d.ts +4 -2
- package/catalog/src/models/RestError.js +4 -2
- package/configuration/src/models/RestError.d.ts +4 -2
- package/configuration/src/models/RestError.js +4 -2
- package/content/src/models/RestError.d.ts +4 -2
- package/content/src/models/RestError.js +4 -2
- package/favorite/src/models/RestError.d.ts +4 -2
- package/favorite/src/models/RestError.js +4 -2
- package/inventory/src/apis/ManageInventoryApi.d.ts +5 -17
- package/inventory/src/apis/ManageInventoryApi.js +12 -86
- package/inventory/src/apis/SearchInventoryApi.d.ts +29 -22
- package/inventory/src/apis/SearchInventoryApi.js +106 -87
- package/inventory/src/models/ActiveProduct.d.ts +10 -3
- package/inventory/src/models/ActiveProduct.js +5 -2
- package/inventory/src/models/ActiveProductUpdateParameters.d.ts +4 -3
- package/inventory/src/models/ActiveProductUpdateParameters.js +3 -2
- package/inventory/src/models/Inventory.d.ts +63 -0
- package/inventory/src/models/Inventory.js +57 -0
- package/inventory/src/models/InventoryJournal.d.ts +31 -0
- package/inventory/src/models/InventoryJournal.js +45 -0
- package/inventory/src/models/MisalignedProduct.d.ts +6 -0
- package/inventory/src/models/MisalignedProduct.js +2 -0
- package/inventory/src/models/OverstockProduct.d.ts +6 -0
- package/inventory/src/models/OverstockProduct.js +2 -0
- package/inventory/src/models/PaginatedInventories.d.ts +39 -0
- package/inventory/src/models/PaginatedInventories.js +53 -0
- package/inventory/src/models/RestError.d.ts +4 -2
- package/inventory/src/models/RestError.js +4 -2
- package/inventory/src/models/SynchronizationMode.d.ts +25 -0
- package/inventory/src/models/SynchronizationMode.js +48 -0
- package/inventory/src/models/index.d.ts +4 -3
- package/inventory/src/models/index.js +4 -3
- package/invoice/src/models/RestError.d.ts +4 -2
- package/invoice/src/models/RestError.js +4 -2
- package/laboratory-store/src/models/RestError.d.ts +4 -2
- package/laboratory-store/src/models/RestError.js +4 -2
- package/lexicon/src/models/RestError.d.ts +4 -2
- package/lexicon/src/models/RestError.js +4 -2
- package/litigation/src/models/RestError.d.ts +4 -2
- package/litigation/src/models/RestError.js +4 -2
- package/mangopay-hook/src/models/RestError.d.ts +4 -2
- package/mangopay-hook/src/models/RestError.js +4 -2
- package/notification/src/models/RestError.d.ts +4 -2
- package/notification/src/models/RestError.js +4 -2
- package/order/src/models/RestError.d.ts +4 -2
- package/order/src/models/RestError.js +4 -2
- package/package.json +1 -1
- package/product/src/models/RestError.d.ts +4 -2
- package/product/src/models/RestError.js +4 -2
- package/pub/src/models/RestError.d.ts +4 -2
- package/pub/src/models/RestError.js +4 -2
- package/rfx/src/models/RestError.d.ts +4 -2
- package/rfx/src/models/RestError.js +4 -2
- package/sale-offer/src/models/RestError.d.ts +4 -2
- package/sale-offer/src/models/RestError.js +4 -2
- package/servant/src/models/RestError.d.ts +4 -2
- package/servant/src/models/RestError.js +4 -2
- package/shipment/src/models/RestError.d.ts +4 -2
- package/shipment/src/models/RestError.js +4 -2
- package/shopping-cart/src/models/RestError.d.ts +4 -2
- package/shopping-cart/src/models/RestError.js +4 -2
- package/smuggler/src/models/RestError.d.ts +4 -2
- package/smuggler/src/models/RestError.js +4 -2
- package/statistic/src/models/RestError.d.ts +4 -2
- package/statistic/src/models/RestError.js +4 -2
- package/subscription/src/models/RestError.d.ts +4 -2
- package/subscription/src/models/RestError.js +4 -2
- package/third-party/src/models/RestError.d.ts +4 -2
- package/third-party/src/models/RestError.js +4 -2
- package/ubo/src/models/RestError.d.ts +4 -2
- package/ubo/src/models/RestError.js +4 -2
- package/user/src/models/RestError.d.ts +4 -2
- package/user/src/models/RestError.js +4 -2
- package/wish/src/models/RestError.d.ts +4 -2
- package/wish/src/models/RestError.js +4 -2
- package/inventory/src/models/Synchroneity.d.ts +0 -32
- package/inventory/src/models/Synchroneity.js +0 -46
- package/inventory/src/models/SynchroneityOffisante.d.ts +0 -38
- package/inventory/src/models/SynchroneityOffisante.js +0 -48
- package/inventory/src/models/SynchroneitySource.d.ts +0 -37
- package/inventory/src/models/SynchroneitySource.js +0 -47
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface RestError {
|
|
18
18
|
/**
|
|
19
|
-
* Unique code to identify an error : * `CODE000` - Using outdated resource * `CODE001` - Invalid credentials * `CODE002` - Cannot renew token * `CODE003` - Invalid User CGV * `CODE004` - Resource already exists * `CODE005` - User account is disabled * `CODE006` - Invalid schedule * `CODE007` - Wrong Address according CHRONOPOST * `CODE008` - Invalid Mangopay Mandate * `CODE009` - Invalid Status * `CODE010` - Image dimension exceeded * `CODE011` - Empty User Address * `CODE012` - Empty User Legal Name * `CODE013` - Invalid quantities * `CODE014` - Invalid Meta-Order * `CODE015` - Can not release quantity greater than claimed * `CODE016` - Can not release a negative quantity of items * `CODE017` - Batch is forbidden for sale * `CODE018` - Trial already used * `CODE019` - Unable to generate session from disposableToken for admin users * `CODE020` - ETag do not match * `CODE021` - Missing informations for Offisante subscription
|
|
19
|
+
* Unique code to identify an error : * `CODE000` - Using outdated resource * `CODE001` - Invalid credentials * `CODE002` - Cannot renew token * `CODE003` - Invalid User CGV * `CODE004` - Resource already exists * `CODE005` - User account is disabled * `CODE006` - Invalid schedule * `CODE007` - Wrong Address according CHRONOPOST * `CODE008` - Invalid Mangopay Mandate * `CODE009` - Invalid Status * `CODE010` - Image dimension exceeded * `CODE011` - Empty User Address * `CODE012` - Empty User Legal Name * `CODE013` - Invalid quantities * `CODE014` - Invalid Meta-Order * `CODE015` - Can not release quantity greater than claimed * `CODE016` - Can not release a negative quantity of items * `CODE017` - Batch is forbidden for sale * `CODE018` - Trial already used * `CODE019` - Unable to generate session from disposableToken for admin users * `CODE020` - ETag do not match * `CODE021` - Missing informations for Offisante subscription * `CODE022` - Disabled feature
|
|
20
20
|
*
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof RestError
|
|
23
23
|
*/
|
|
24
24
|
code: RestErrorCodeEnum;
|
|
25
25
|
/**
|
|
26
|
-
* Unique code to identify an error : * `MESSAGE000` - Using outdated resource * `MESSAGE001` - Invalid credentials * `MESSAGE002` - Cannot renew token * `MESSAGE003` - Invalid User CGV * `MESSAGE004` - Resource already exists * `MESSAGE005` - User account is disabled * `MESSAGE006` - Invalid schedule * `MESSAGE007` - Wrong Address according CHRONOPOST * `MESSAGE008` - Invalid Mangopay Mandate * `MESSAGE009` - Invalid Status * `MESSAGE010` - Image dimension exceeded * `MESSAGE011` - Empty User Address * `MESSAGE012` - Empty User Legal Name * `MESSAGE013` - Invalid quantities * `MESSAGE014` - Invalid Meta-Order * `MESSAGE015` - Can not release quantity greater than claimed * `MESSAGE016` - Can not release a negative quantity of items * `MESSAGE017` - Batch is forbidden for sale * `MESSAGE018` - Trial already used * `MESSAGE019` - Unable to generate session from disposableToken for admin users * `MESSAGE020` - ETag do not match * `MESSAGE021` - Missing informations for Offisante subscription
|
|
26
|
+
* Unique code to identify an error : * `MESSAGE000` - Using outdated resource * `MESSAGE001` - Invalid credentials * `MESSAGE002` - Cannot renew token * `MESSAGE003` - Invalid User CGV * `MESSAGE004` - Resource already exists * `MESSAGE005` - User account is disabled * `MESSAGE006` - Invalid schedule * `MESSAGE007` - Wrong Address according CHRONOPOST * `MESSAGE008` - Invalid Mangopay Mandate * `MESSAGE009` - Invalid Status * `MESSAGE010` - Image dimension exceeded * `MESSAGE011` - Empty User Address * `MESSAGE012` - Empty User Legal Name * `MESSAGE013` - Invalid quantities * `MESSAGE014` - Invalid Meta-Order * `MESSAGE015` - Can not release quantity greater than claimed * `MESSAGE016` - Can not release a negative quantity of items * `MESSAGE017` - Batch is forbidden for sale * `MESSAGE018` - Trial already used * `MESSAGE019` - Unable to generate session from disposableToken for admin users * `MESSAGE020` - ETag do not match * `MESSAGE021` - Missing informations for Offisante subscription * `MESSAGE022` - Disabled feature
|
|
27
27
|
*
|
|
28
28
|
* @type {string}
|
|
29
29
|
* @memberof RestError
|
|
@@ -56,6 +56,7 @@ export declare const RestErrorCodeEnum: {
|
|
|
56
56
|
readonly CODE019: "CODE019";
|
|
57
57
|
readonly CODE020: "CODE020";
|
|
58
58
|
readonly CODE021: "CODE021";
|
|
59
|
+
readonly CODE022: "CODE022";
|
|
59
60
|
};
|
|
60
61
|
export declare type RestErrorCodeEnum = typeof RestErrorCodeEnum[keyof typeof RestErrorCodeEnum];
|
|
61
62
|
/**
|
|
@@ -84,6 +85,7 @@ export declare const RestErrorMessageEnum: {
|
|
|
84
85
|
readonly MESSAGE019: "Unable to generate session from disposableToken for admin users";
|
|
85
86
|
readonly MESSAGE020: "ETag do not match";
|
|
86
87
|
readonly MESSAGE021: "Missing informations for Offisante subscription";
|
|
88
|
+
readonly MESSAGE022: "Disabled feature";
|
|
87
89
|
};
|
|
88
90
|
export declare type RestErrorMessageEnum = typeof RestErrorMessageEnum[keyof typeof RestErrorMessageEnum];
|
|
89
91
|
/**
|
|
@@ -39,7 +39,8 @@ exports.RestErrorCodeEnum = {
|
|
|
39
39
|
CODE018: 'CODE018',
|
|
40
40
|
CODE019: 'CODE019',
|
|
41
41
|
CODE020: 'CODE020',
|
|
42
|
-
CODE021: 'CODE021'
|
|
42
|
+
CODE021: 'CODE021',
|
|
43
|
+
CODE022: 'CODE022'
|
|
43
44
|
};
|
|
44
45
|
/**
|
|
45
46
|
* @export
|
|
@@ -66,7 +67,8 @@ exports.RestErrorMessageEnum = {
|
|
|
66
67
|
MESSAGE018: 'Trial already used',
|
|
67
68
|
MESSAGE019: 'Unable to generate session from disposableToken for admin users',
|
|
68
69
|
MESSAGE020: 'ETag do not match',
|
|
69
|
-
MESSAGE021: 'Missing informations for Offisante subscription'
|
|
70
|
+
MESSAGE021: 'Missing informations for Offisante subscription',
|
|
71
|
+
MESSAGE022: 'Disabled feature'
|
|
70
72
|
};
|
|
71
73
|
/**
|
|
72
74
|
* Check if a given object implements the RestError interface.
|
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface RestError {
|
|
18
18
|
/**
|
|
19
|
-
* Unique code to identify an error : * `CODE000` - Using outdated resource * `CODE001` - Invalid credentials * `CODE002` - Cannot renew token * `CODE003` - Invalid User CGV * `CODE004` - Resource already exists * `CODE005` - User account is disabled * `CODE006` - Invalid schedule * `CODE007` - Wrong Address according CHRONOPOST * `CODE008` - Invalid Mangopay Mandate * `CODE009` - Invalid Status * `CODE010` - Image dimension exceeded * `CODE011` - Empty User Address * `CODE012` - Empty User Legal Name * `CODE013` - Invalid quantities * `CODE014` - Invalid Meta-Order * `CODE015` - Can not release quantity greater than claimed * `CODE016` - Can not release a negative quantity of items * `CODE017` - Batch is forbidden for sale * `CODE018` - Trial already used * `CODE019` - Unable to generate session from disposableToken for admin users * `CODE020` - ETag do not match * `CODE021` - Missing informations for Offisante subscription
|
|
19
|
+
* Unique code to identify an error : * `CODE000` - Using outdated resource * `CODE001` - Invalid credentials * `CODE002` - Cannot renew token * `CODE003` - Invalid User CGV * `CODE004` - Resource already exists * `CODE005` - User account is disabled * `CODE006` - Invalid schedule * `CODE007` - Wrong Address according CHRONOPOST * `CODE008` - Invalid Mangopay Mandate * `CODE009` - Invalid Status * `CODE010` - Image dimension exceeded * `CODE011` - Empty User Address * `CODE012` - Empty User Legal Name * `CODE013` - Invalid quantities * `CODE014` - Invalid Meta-Order * `CODE015` - Can not release quantity greater than claimed * `CODE016` - Can not release a negative quantity of items * `CODE017` - Batch is forbidden for sale * `CODE018` - Trial already used * `CODE019` - Unable to generate session from disposableToken for admin users * `CODE020` - ETag do not match * `CODE021` - Missing informations for Offisante subscription * `CODE022` - Disabled feature
|
|
20
20
|
*
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof RestError
|
|
23
23
|
*/
|
|
24
24
|
code: RestErrorCodeEnum;
|
|
25
25
|
/**
|
|
26
|
-
* Unique code to identify an error : * `MESSAGE000` - Using outdated resource * `MESSAGE001` - Invalid credentials * `MESSAGE002` - Cannot renew token * `MESSAGE003` - Invalid User CGV * `MESSAGE004` - Resource already exists * `MESSAGE005` - User account is disabled * `MESSAGE006` - Invalid schedule * `MESSAGE007` - Wrong Address according CHRONOPOST * `MESSAGE008` - Invalid Mangopay Mandate * `MESSAGE009` - Invalid Status * `MESSAGE010` - Image dimension exceeded * `MESSAGE011` - Empty User Address * `MESSAGE012` - Empty User Legal Name * `MESSAGE013` - Invalid quantities * `MESSAGE014` - Invalid Meta-Order * `MESSAGE015` - Can not release quantity greater than claimed * `MESSAGE016` - Can not release a negative quantity of items * `MESSAGE017` - Batch is forbidden for sale * `MESSAGE018` - Trial already used * `MESSAGE019` - Unable to generate session from disposableToken for admin users * `MESSAGE020` - ETag do not match * `MESSAGE021` - Missing informations for Offisante subscription
|
|
26
|
+
* Unique code to identify an error : * `MESSAGE000` - Using outdated resource * `MESSAGE001` - Invalid credentials * `MESSAGE002` - Cannot renew token * `MESSAGE003` - Invalid User CGV * `MESSAGE004` - Resource already exists * `MESSAGE005` - User account is disabled * `MESSAGE006` - Invalid schedule * `MESSAGE007` - Wrong Address according CHRONOPOST * `MESSAGE008` - Invalid Mangopay Mandate * `MESSAGE009` - Invalid Status * `MESSAGE010` - Image dimension exceeded * `MESSAGE011` - Empty User Address * `MESSAGE012` - Empty User Legal Name * `MESSAGE013` - Invalid quantities * `MESSAGE014` - Invalid Meta-Order * `MESSAGE015` - Can not release quantity greater than claimed * `MESSAGE016` - Can not release a negative quantity of items * `MESSAGE017` - Batch is forbidden for sale * `MESSAGE018` - Trial already used * `MESSAGE019` - Unable to generate session from disposableToken for admin users * `MESSAGE020` - ETag do not match * `MESSAGE021` - Missing informations for Offisante subscription * `MESSAGE022` - Disabled feature
|
|
27
27
|
*
|
|
28
28
|
* @type {string}
|
|
29
29
|
* @memberof RestError
|
|
@@ -56,6 +56,7 @@ export declare const RestErrorCodeEnum: {
|
|
|
56
56
|
readonly CODE019: "CODE019";
|
|
57
57
|
readonly CODE020: "CODE020";
|
|
58
58
|
readonly CODE021: "CODE021";
|
|
59
|
+
readonly CODE022: "CODE022";
|
|
59
60
|
};
|
|
60
61
|
export declare type RestErrorCodeEnum = typeof RestErrorCodeEnum[keyof typeof RestErrorCodeEnum];
|
|
61
62
|
/**
|
|
@@ -84,6 +85,7 @@ export declare const RestErrorMessageEnum: {
|
|
|
84
85
|
readonly MESSAGE019: "Unable to generate session from disposableToken for admin users";
|
|
85
86
|
readonly MESSAGE020: "ETag do not match";
|
|
86
87
|
readonly MESSAGE021: "Missing informations for Offisante subscription";
|
|
88
|
+
readonly MESSAGE022: "Disabled feature";
|
|
87
89
|
};
|
|
88
90
|
export declare type RestErrorMessageEnum = typeof RestErrorMessageEnum[keyof typeof RestErrorMessageEnum];
|
|
89
91
|
/**
|
|
@@ -39,7 +39,8 @@ exports.RestErrorCodeEnum = {
|
|
|
39
39
|
CODE018: 'CODE018',
|
|
40
40
|
CODE019: 'CODE019',
|
|
41
41
|
CODE020: 'CODE020',
|
|
42
|
-
CODE021: 'CODE021'
|
|
42
|
+
CODE021: 'CODE021',
|
|
43
|
+
CODE022: 'CODE022'
|
|
43
44
|
};
|
|
44
45
|
/**
|
|
45
46
|
* @export
|
|
@@ -66,7 +67,8 @@ exports.RestErrorMessageEnum = {
|
|
|
66
67
|
MESSAGE018: 'Trial already used',
|
|
67
68
|
MESSAGE019: 'Unable to generate session from disposableToken for admin users',
|
|
68
69
|
MESSAGE020: 'ETag do not match',
|
|
69
|
-
MESSAGE021: 'Missing informations for Offisante subscription'
|
|
70
|
+
MESSAGE021: 'Missing informations for Offisante subscription',
|
|
71
|
+
MESSAGE022: 'Disabled feature'
|
|
70
72
|
};
|
|
71
73
|
/**
|
|
72
74
|
* Check if a given object implements the RestError interface.
|
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface RestError {
|
|
18
18
|
/**
|
|
19
|
-
* Unique code to identify an error : * `CODE000` - Using outdated resource * `CODE001` - Invalid credentials * `CODE002` - Cannot renew token * `CODE003` - Invalid User CGV * `CODE004` - Resource already exists * `CODE005` - User account is disabled * `CODE006` - Invalid schedule * `CODE007` - Wrong Address according CHRONOPOST * `CODE008` - Invalid Mangopay Mandate * `CODE009` - Invalid Status * `CODE010` - Image dimension exceeded * `CODE011` - Empty User Address * `CODE012` - Empty User Legal Name * `CODE013` - Invalid quantities * `CODE014` - Invalid Meta-Order * `CODE015` - Can not release quantity greater than claimed * `CODE016` - Can not release a negative quantity of items * `CODE017` - Batch is forbidden for sale * `CODE018` - Trial already used * `CODE019` - Unable to generate session from disposableToken for admin users * `CODE020` - ETag do not match * `CODE021` - Missing informations for Offisante subscription
|
|
19
|
+
* Unique code to identify an error : * `CODE000` - Using outdated resource * `CODE001` - Invalid credentials * `CODE002` - Cannot renew token * `CODE003` - Invalid User CGV * `CODE004` - Resource already exists * `CODE005` - User account is disabled * `CODE006` - Invalid schedule * `CODE007` - Wrong Address according CHRONOPOST * `CODE008` - Invalid Mangopay Mandate * `CODE009` - Invalid Status * `CODE010` - Image dimension exceeded * `CODE011` - Empty User Address * `CODE012` - Empty User Legal Name * `CODE013` - Invalid quantities * `CODE014` - Invalid Meta-Order * `CODE015` - Can not release quantity greater than claimed * `CODE016` - Can not release a negative quantity of items * `CODE017` - Batch is forbidden for sale * `CODE018` - Trial already used * `CODE019` - Unable to generate session from disposableToken for admin users * `CODE020` - ETag do not match * `CODE021` - Missing informations for Offisante subscription * `CODE022` - Disabled feature
|
|
20
20
|
*
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof RestError
|
|
23
23
|
*/
|
|
24
24
|
code: RestErrorCodeEnum;
|
|
25
25
|
/**
|
|
26
|
-
* Unique code to identify an error : * `MESSAGE000` - Using outdated resource * `MESSAGE001` - Invalid credentials * `MESSAGE002` - Cannot renew token * `MESSAGE003` - Invalid User CGV * `MESSAGE004` - Resource already exists * `MESSAGE005` - User account is disabled * `MESSAGE006` - Invalid schedule * `MESSAGE007` - Wrong Address according CHRONOPOST * `MESSAGE008` - Invalid Mangopay Mandate * `MESSAGE009` - Invalid Status * `MESSAGE010` - Image dimension exceeded * `MESSAGE011` - Empty User Address * `MESSAGE012` - Empty User Legal Name * `MESSAGE013` - Invalid quantities * `MESSAGE014` - Invalid Meta-Order * `MESSAGE015` - Can not release quantity greater than claimed * `MESSAGE016` - Can not release a negative quantity of items * `MESSAGE017` - Batch is forbidden for sale * `MESSAGE018` - Trial already used * `MESSAGE019` - Unable to generate session from disposableToken for admin users * `MESSAGE020` - ETag do not match * `MESSAGE021` - Missing informations for Offisante subscription
|
|
26
|
+
* Unique code to identify an error : * `MESSAGE000` - Using outdated resource * `MESSAGE001` - Invalid credentials * `MESSAGE002` - Cannot renew token * `MESSAGE003` - Invalid User CGV * `MESSAGE004` - Resource already exists * `MESSAGE005` - User account is disabled * `MESSAGE006` - Invalid schedule * `MESSAGE007` - Wrong Address according CHRONOPOST * `MESSAGE008` - Invalid Mangopay Mandate * `MESSAGE009` - Invalid Status * `MESSAGE010` - Image dimension exceeded * `MESSAGE011` - Empty User Address * `MESSAGE012` - Empty User Legal Name * `MESSAGE013` - Invalid quantities * `MESSAGE014` - Invalid Meta-Order * `MESSAGE015` - Can not release quantity greater than claimed * `MESSAGE016` - Can not release a negative quantity of items * `MESSAGE017` - Batch is forbidden for sale * `MESSAGE018` - Trial already used * `MESSAGE019` - Unable to generate session from disposableToken for admin users * `MESSAGE020` - ETag do not match * `MESSAGE021` - Missing informations for Offisante subscription * `MESSAGE022` - Disabled feature
|
|
27
27
|
*
|
|
28
28
|
* @type {string}
|
|
29
29
|
* @memberof RestError
|
|
@@ -56,6 +56,7 @@ export declare const RestErrorCodeEnum: {
|
|
|
56
56
|
readonly CODE019: "CODE019";
|
|
57
57
|
readonly CODE020: "CODE020";
|
|
58
58
|
readonly CODE021: "CODE021";
|
|
59
|
+
readonly CODE022: "CODE022";
|
|
59
60
|
};
|
|
60
61
|
export declare type RestErrorCodeEnum = typeof RestErrorCodeEnum[keyof typeof RestErrorCodeEnum];
|
|
61
62
|
/**
|
|
@@ -84,6 +85,7 @@ export declare const RestErrorMessageEnum: {
|
|
|
84
85
|
readonly MESSAGE019: "Unable to generate session from disposableToken for admin users";
|
|
85
86
|
readonly MESSAGE020: "ETag do not match";
|
|
86
87
|
readonly MESSAGE021: "Missing informations for Offisante subscription";
|
|
88
|
+
readonly MESSAGE022: "Disabled feature";
|
|
87
89
|
};
|
|
88
90
|
export declare type RestErrorMessageEnum = typeof RestErrorMessageEnum[keyof typeof RestErrorMessageEnum];
|
|
89
91
|
/**
|
|
@@ -39,7 +39,8 @@ exports.RestErrorCodeEnum = {
|
|
|
39
39
|
CODE018: 'CODE018',
|
|
40
40
|
CODE019: 'CODE019',
|
|
41
41
|
CODE020: 'CODE020',
|
|
42
|
-
CODE021: 'CODE021'
|
|
42
|
+
CODE021: 'CODE021',
|
|
43
|
+
CODE022: 'CODE022'
|
|
43
44
|
};
|
|
44
45
|
/**
|
|
45
46
|
* @export
|
|
@@ -66,7 +67,8 @@ exports.RestErrorMessageEnum = {
|
|
|
66
67
|
MESSAGE018: 'Trial already used',
|
|
67
68
|
MESSAGE019: 'Unable to generate session from disposableToken for admin users',
|
|
68
69
|
MESSAGE020: 'ETag do not match',
|
|
69
|
-
MESSAGE021: 'Missing informations for Offisante subscription'
|
|
70
|
+
MESSAGE021: 'Missing informations for Offisante subscription',
|
|
71
|
+
MESSAGE022: 'Disabled feature'
|
|
70
72
|
};
|
|
71
73
|
/**
|
|
72
74
|
* Check if a given object implements the RestError interface.
|
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface RestError {
|
|
18
18
|
/**
|
|
19
|
-
* Unique code to identify an error : * `CODE000` - Using outdated resource * `CODE001` - Invalid credentials * `CODE002` - Cannot renew token * `CODE003` - Invalid User CGV * `CODE004` - Resource already exists * `CODE005` - User account is disabled * `CODE006` - Invalid schedule * `CODE007` - Wrong Address according CHRONOPOST * `CODE008` - Invalid Mangopay Mandate * `CODE009` - Invalid Status * `CODE010` - Image dimension exceeded * `CODE011` - Empty User Address * `CODE012` - Empty User Legal Name * `CODE013` - Invalid quantities * `CODE014` - Invalid Meta-Order * `CODE015` - Can not release quantity greater than claimed * `CODE016` - Can not release a negative quantity of items * `CODE017` - Batch is forbidden for sale * `CODE018` - Trial already used * `CODE019` - Unable to generate session from disposableToken for admin users * `CODE020` - ETag do not match * `CODE021` - Missing informations for Offisante subscription
|
|
19
|
+
* Unique code to identify an error : * `CODE000` - Using outdated resource * `CODE001` - Invalid credentials * `CODE002` - Cannot renew token * `CODE003` - Invalid User CGV * `CODE004` - Resource already exists * `CODE005` - User account is disabled * `CODE006` - Invalid schedule * `CODE007` - Wrong Address according CHRONOPOST * `CODE008` - Invalid Mangopay Mandate * `CODE009` - Invalid Status * `CODE010` - Image dimension exceeded * `CODE011` - Empty User Address * `CODE012` - Empty User Legal Name * `CODE013` - Invalid quantities * `CODE014` - Invalid Meta-Order * `CODE015` - Can not release quantity greater than claimed * `CODE016` - Can not release a negative quantity of items * `CODE017` - Batch is forbidden for sale * `CODE018` - Trial already used * `CODE019` - Unable to generate session from disposableToken for admin users * `CODE020` - ETag do not match * `CODE021` - Missing informations for Offisante subscription * `CODE022` - Disabled feature
|
|
20
20
|
*
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof RestError
|
|
23
23
|
*/
|
|
24
24
|
code: RestErrorCodeEnum;
|
|
25
25
|
/**
|
|
26
|
-
* Unique code to identify an error : * `MESSAGE000` - Using outdated resource * `MESSAGE001` - Invalid credentials * `MESSAGE002` - Cannot renew token * `MESSAGE003` - Invalid User CGV * `MESSAGE004` - Resource already exists * `MESSAGE005` - User account is disabled * `MESSAGE006` - Invalid schedule * `MESSAGE007` - Wrong Address according CHRONOPOST * `MESSAGE008` - Invalid Mangopay Mandate * `MESSAGE009` - Invalid Status * `MESSAGE010` - Image dimension exceeded * `MESSAGE011` - Empty User Address * `MESSAGE012` - Empty User Legal Name * `MESSAGE013` - Invalid quantities * `MESSAGE014` - Invalid Meta-Order * `MESSAGE015` - Can not release quantity greater than claimed * `MESSAGE016` - Can not release a negative quantity of items * `MESSAGE017` - Batch is forbidden for sale * `MESSAGE018` - Trial already used * `MESSAGE019` - Unable to generate session from disposableToken for admin users * `MESSAGE020` - ETag do not match * `MESSAGE021` - Missing informations for Offisante subscription
|
|
26
|
+
* Unique code to identify an error : * `MESSAGE000` - Using outdated resource * `MESSAGE001` - Invalid credentials * `MESSAGE002` - Cannot renew token * `MESSAGE003` - Invalid User CGV * `MESSAGE004` - Resource already exists * `MESSAGE005` - User account is disabled * `MESSAGE006` - Invalid schedule * `MESSAGE007` - Wrong Address according CHRONOPOST * `MESSAGE008` - Invalid Mangopay Mandate * `MESSAGE009` - Invalid Status * `MESSAGE010` - Image dimension exceeded * `MESSAGE011` - Empty User Address * `MESSAGE012` - Empty User Legal Name * `MESSAGE013` - Invalid quantities * `MESSAGE014` - Invalid Meta-Order * `MESSAGE015` - Can not release quantity greater than claimed * `MESSAGE016` - Can not release a negative quantity of items * `MESSAGE017` - Batch is forbidden for sale * `MESSAGE018` - Trial already used * `MESSAGE019` - Unable to generate session from disposableToken for admin users * `MESSAGE020` - ETag do not match * `MESSAGE021` - Missing informations for Offisante subscription * `MESSAGE022` - Disabled feature
|
|
27
27
|
*
|
|
28
28
|
* @type {string}
|
|
29
29
|
* @memberof RestError
|
|
@@ -56,6 +56,7 @@ export declare const RestErrorCodeEnum: {
|
|
|
56
56
|
readonly CODE019: "CODE019";
|
|
57
57
|
readonly CODE020: "CODE020";
|
|
58
58
|
readonly CODE021: "CODE021";
|
|
59
|
+
readonly CODE022: "CODE022";
|
|
59
60
|
};
|
|
60
61
|
export declare type RestErrorCodeEnum = typeof RestErrorCodeEnum[keyof typeof RestErrorCodeEnum];
|
|
61
62
|
/**
|
|
@@ -84,6 +85,7 @@ export declare const RestErrorMessageEnum: {
|
|
|
84
85
|
readonly MESSAGE019: "Unable to generate session from disposableToken for admin users";
|
|
85
86
|
readonly MESSAGE020: "ETag do not match";
|
|
86
87
|
readonly MESSAGE021: "Missing informations for Offisante subscription";
|
|
88
|
+
readonly MESSAGE022: "Disabled feature";
|
|
87
89
|
};
|
|
88
90
|
export declare type RestErrorMessageEnum = typeof RestErrorMessageEnum[keyof typeof RestErrorMessageEnum];
|
|
89
91
|
/**
|
|
@@ -39,7 +39,8 @@ exports.RestErrorCodeEnum = {
|
|
|
39
39
|
CODE018: 'CODE018',
|
|
40
40
|
CODE019: 'CODE019',
|
|
41
41
|
CODE020: 'CODE020',
|
|
42
|
-
CODE021: 'CODE021'
|
|
42
|
+
CODE021: 'CODE021',
|
|
43
|
+
CODE022: 'CODE022'
|
|
43
44
|
};
|
|
44
45
|
/**
|
|
45
46
|
* @export
|
|
@@ -66,7 +67,8 @@ exports.RestErrorMessageEnum = {
|
|
|
66
67
|
MESSAGE018: 'Trial already used',
|
|
67
68
|
MESSAGE019: 'Unable to generate session from disposableToken for admin users',
|
|
68
69
|
MESSAGE020: 'ETag do not match',
|
|
69
|
-
MESSAGE021: 'Missing informations for Offisante subscription'
|
|
70
|
+
MESSAGE021: 'Missing informations for Offisante subscription',
|
|
71
|
+
MESSAGE022: 'Disabled feature'
|
|
70
72
|
};
|
|
71
73
|
/**
|
|
72
74
|
* Check if a given object implements the RestError interface.
|
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface RestError {
|
|
18
18
|
/**
|
|
19
|
-
* Unique code to identify an error : * `CODE000` - Using outdated resource * `CODE001` - Invalid credentials * `CODE002` - Cannot renew token * `CODE003` - Invalid User CGV * `CODE004` - Resource already exists * `CODE005` - User account is disabled * `CODE006` - Invalid schedule * `CODE007` - Wrong Address according CHRONOPOST * `CODE008` - Invalid Mangopay Mandate * `CODE009` - Invalid Status * `CODE010` - Image dimension exceeded * `CODE011` - Empty User Address * `CODE012` - Empty User Legal Name * `CODE013` - Invalid quantities * `CODE014` - Invalid Meta-Order * `CODE015` - Can not release quantity greater than claimed * `CODE016` - Can not release a negative quantity of items * `CODE017` - Batch is forbidden for sale * `CODE018` - Trial already used * `CODE019` - Unable to generate session from disposableToken for admin users * `CODE020` - ETag do not match * `CODE021` - Missing informations for Offisante subscription
|
|
19
|
+
* Unique code to identify an error : * `CODE000` - Using outdated resource * `CODE001` - Invalid credentials * `CODE002` - Cannot renew token * `CODE003` - Invalid User CGV * `CODE004` - Resource already exists * `CODE005` - User account is disabled * `CODE006` - Invalid schedule * `CODE007` - Wrong Address according CHRONOPOST * `CODE008` - Invalid Mangopay Mandate * `CODE009` - Invalid Status * `CODE010` - Image dimension exceeded * `CODE011` - Empty User Address * `CODE012` - Empty User Legal Name * `CODE013` - Invalid quantities * `CODE014` - Invalid Meta-Order * `CODE015` - Can not release quantity greater than claimed * `CODE016` - Can not release a negative quantity of items * `CODE017` - Batch is forbidden for sale * `CODE018` - Trial already used * `CODE019` - Unable to generate session from disposableToken for admin users * `CODE020` - ETag do not match * `CODE021` - Missing informations for Offisante subscription * `CODE022` - Disabled feature
|
|
20
20
|
*
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof RestError
|
|
23
23
|
*/
|
|
24
24
|
code: RestErrorCodeEnum;
|
|
25
25
|
/**
|
|
26
|
-
* Unique code to identify an error : * `MESSAGE000` - Using outdated resource * `MESSAGE001` - Invalid credentials * `MESSAGE002` - Cannot renew token * `MESSAGE003` - Invalid User CGV * `MESSAGE004` - Resource already exists * `MESSAGE005` - User account is disabled * `MESSAGE006` - Invalid schedule * `MESSAGE007` - Wrong Address according CHRONOPOST * `MESSAGE008` - Invalid Mangopay Mandate * `MESSAGE009` - Invalid Status * `MESSAGE010` - Image dimension exceeded * `MESSAGE011` - Empty User Address * `MESSAGE012` - Empty User Legal Name * `MESSAGE013` - Invalid quantities * `MESSAGE014` - Invalid Meta-Order * `MESSAGE015` - Can not release quantity greater than claimed * `MESSAGE016` - Can not release a negative quantity of items * `MESSAGE017` - Batch is forbidden for sale * `MESSAGE018` - Trial already used * `MESSAGE019` - Unable to generate session from disposableToken for admin users * `MESSAGE020` - ETag do not match * `MESSAGE021` - Missing informations for Offisante subscription
|
|
26
|
+
* Unique code to identify an error : * `MESSAGE000` - Using outdated resource * `MESSAGE001` - Invalid credentials * `MESSAGE002` - Cannot renew token * `MESSAGE003` - Invalid User CGV * `MESSAGE004` - Resource already exists * `MESSAGE005` - User account is disabled * `MESSAGE006` - Invalid schedule * `MESSAGE007` - Wrong Address according CHRONOPOST * `MESSAGE008` - Invalid Mangopay Mandate * `MESSAGE009` - Invalid Status * `MESSAGE010` - Image dimension exceeded * `MESSAGE011` - Empty User Address * `MESSAGE012` - Empty User Legal Name * `MESSAGE013` - Invalid quantities * `MESSAGE014` - Invalid Meta-Order * `MESSAGE015` - Can not release quantity greater than claimed * `MESSAGE016` - Can not release a negative quantity of items * `MESSAGE017` - Batch is forbidden for sale * `MESSAGE018` - Trial already used * `MESSAGE019` - Unable to generate session from disposableToken for admin users * `MESSAGE020` - ETag do not match * `MESSAGE021` - Missing informations for Offisante subscription * `MESSAGE022` - Disabled feature
|
|
27
27
|
*
|
|
28
28
|
* @type {string}
|
|
29
29
|
* @memberof RestError
|
|
@@ -56,6 +56,7 @@ export declare const RestErrorCodeEnum: {
|
|
|
56
56
|
readonly CODE019: "CODE019";
|
|
57
57
|
readonly CODE020: "CODE020";
|
|
58
58
|
readonly CODE021: "CODE021";
|
|
59
|
+
readonly CODE022: "CODE022";
|
|
59
60
|
};
|
|
60
61
|
export declare type RestErrorCodeEnum = typeof RestErrorCodeEnum[keyof typeof RestErrorCodeEnum];
|
|
61
62
|
/**
|
|
@@ -84,6 +85,7 @@ export declare const RestErrorMessageEnum: {
|
|
|
84
85
|
readonly MESSAGE019: "Unable to generate session from disposableToken for admin users";
|
|
85
86
|
readonly MESSAGE020: "ETag do not match";
|
|
86
87
|
readonly MESSAGE021: "Missing informations for Offisante subscription";
|
|
88
|
+
readonly MESSAGE022: "Disabled feature";
|
|
87
89
|
};
|
|
88
90
|
export declare type RestErrorMessageEnum = typeof RestErrorMessageEnum[keyof typeof RestErrorMessageEnum];
|
|
89
91
|
/**
|
|
@@ -39,7 +39,8 @@ exports.RestErrorCodeEnum = {
|
|
|
39
39
|
CODE018: 'CODE018',
|
|
40
40
|
CODE019: 'CODE019',
|
|
41
41
|
CODE020: 'CODE020',
|
|
42
|
-
CODE021: 'CODE021'
|
|
42
|
+
CODE021: 'CODE021',
|
|
43
|
+
CODE022: 'CODE022'
|
|
43
44
|
};
|
|
44
45
|
/**
|
|
45
46
|
* @export
|
|
@@ -66,7 +67,8 @@ exports.RestErrorMessageEnum = {
|
|
|
66
67
|
MESSAGE018: 'Trial already used',
|
|
67
68
|
MESSAGE019: 'Unable to generate session from disposableToken for admin users',
|
|
68
69
|
MESSAGE020: 'ETag do not match',
|
|
69
|
-
MESSAGE021: 'Missing informations for Offisante subscription'
|
|
70
|
+
MESSAGE021: 'Missing informations for Offisante subscription',
|
|
71
|
+
MESSAGE022: 'Disabled feature'
|
|
70
72
|
};
|
|
71
73
|
/**
|
|
72
74
|
* Check if a given object implements the RestError interface.
|
|
@@ -10,10 +10,11 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ActiveProductUpdateParameters, OverstockProductUpdateParameters,
|
|
13
|
+
import type { ActiveProductUpdateParameters, OverstockProductUpdateParameters, SynchronizationMode } from '../models/index';
|
|
14
14
|
export interface UpdateCurrentInventoryActiveProductsRequest {
|
|
15
|
+
syncModeEq: Array<SynchronizationMode>;
|
|
15
16
|
activeProductUpdateParameters: ActiveProductUpdateParameters;
|
|
16
|
-
pEq?: number
|
|
17
|
+
pEq?: Array<number>;
|
|
17
18
|
}
|
|
18
19
|
export interface UpdateCurrentInventoryOverstockProductsRequest {
|
|
19
20
|
overstockProductUpdateParameters: OverstockProductUpdateParameters;
|
|
@@ -21,18 +22,15 @@ export interface UpdateCurrentInventoryOverstockProductsRequest {
|
|
|
21
22
|
}
|
|
22
23
|
export interface UpdateInventoryActiveProductsRequest {
|
|
23
24
|
inventoryId: number;
|
|
25
|
+
syncModeEq: Array<SynchronizationMode>;
|
|
24
26
|
activeProductUpdateParameters: ActiveProductUpdateParameters;
|
|
25
|
-
pEq?: number
|
|
27
|
+
pEq?: Array<number>;
|
|
26
28
|
}
|
|
27
29
|
export interface UpdateInventoryOverstockProductsRequest {
|
|
28
30
|
inventoryId: number;
|
|
29
31
|
overstockProductUpdateParameters: OverstockProductUpdateParameters;
|
|
30
32
|
pEq?: number;
|
|
31
33
|
}
|
|
32
|
-
export interface UpdateInventorySynchroneityRequest {
|
|
33
|
-
inventoryId: number;
|
|
34
|
-
synchroneity: Synchroneity;
|
|
35
|
-
}
|
|
36
34
|
/**
|
|
37
35
|
*
|
|
38
36
|
*/
|
|
@@ -69,14 +67,4 @@ export declare class ManageInventoryApi extends runtime.BaseAPI {
|
|
|
69
67
|
* Add product to black list
|
|
70
68
|
*/
|
|
71
69
|
updateInventoryOverstockProducts(requestParameters: UpdateInventoryOverstockProductsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
72
|
-
/**
|
|
73
|
-
* Allow to update synchroneity of an inventory. For example to force resynchronize of a source, you can send source synchronizationScheduled to \'True\'. If you want to restart synchronization from the beginning of human life, you can send souyrce lastSynchronizationDate to \'0\'
|
|
74
|
-
* Modify synchroneity state of a user
|
|
75
|
-
*/
|
|
76
|
-
updateInventorySynchroneityRaw(requestParameters: UpdateInventorySynchroneityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Synchroneity | runtime.BlobWithMeta>>;
|
|
77
|
-
/**
|
|
78
|
-
* Allow to update synchroneity of an inventory. For example to force resynchronize of a source, you can send source synchronizationScheduled to \'True\'. If you want to restart synchronization from the beginning of human life, you can send souyrce lastSynchronizationDate to \'0\'
|
|
79
|
-
* Modify synchroneity state of a user
|
|
80
|
-
*/
|
|
81
|
-
updateInventorySynchroneity(requestParameters: UpdateInventorySynchroneityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Synchroneity | runtime.BlobWithMeta>;
|
|
82
70
|
}
|
|
@@ -84,6 +84,9 @@ var ManageInventoryApi = /** @class */ (function (_super) {
|
|
|
84
84
|
return __generator(this, function (_c) {
|
|
85
85
|
switch (_c.label) {
|
|
86
86
|
case 0:
|
|
87
|
+
if (requestParameters['syncModeEq'] == null) {
|
|
88
|
+
throw new runtime.RequiredError('syncModeEq', 'Required parameter "syncModeEq" was null or undefined when calling updateCurrentInventoryActiveProducts().');
|
|
89
|
+
}
|
|
87
90
|
if (requestParameters['activeProductUpdateParameters'] == null) {
|
|
88
91
|
throw new runtime.RequiredError('activeProductUpdateParameters', 'Required parameter "activeProductUpdateParameters" was null or undefined when calling updateCurrentInventoryActiveProducts().');
|
|
89
92
|
}
|
|
@@ -91,6 +94,9 @@ var ManageInventoryApi = /** @class */ (function (_super) {
|
|
|
91
94
|
if (requestParameters['pEq'] != null) {
|
|
92
95
|
queryParameters['p[eq]'] = requestParameters['pEq'];
|
|
93
96
|
}
|
|
97
|
+
if (requestParameters['syncModeEq'] != null) {
|
|
98
|
+
queryParameters['syncMode[eq]'] = requestParameters['syncModeEq'];
|
|
99
|
+
}
|
|
94
100
|
headerParameters = {};
|
|
95
101
|
headerParameters['Content-Type'] = 'application/json';
|
|
96
102
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
@@ -229,6 +235,9 @@ var ManageInventoryApi = /** @class */ (function (_super) {
|
|
|
229
235
|
if (requestParameters['inventoryId'] == null) {
|
|
230
236
|
throw new runtime.RequiredError('inventoryId', 'Required parameter "inventoryId" was null or undefined when calling updateInventoryActiveProducts().');
|
|
231
237
|
}
|
|
238
|
+
if (requestParameters['syncModeEq'] == null) {
|
|
239
|
+
throw new runtime.RequiredError('syncModeEq', 'Required parameter "syncModeEq" was null or undefined when calling updateInventoryActiveProducts().');
|
|
240
|
+
}
|
|
232
241
|
if (requestParameters['activeProductUpdateParameters'] == null) {
|
|
233
242
|
throw new runtime.RequiredError('activeProductUpdateParameters', 'Required parameter "activeProductUpdateParameters" was null or undefined when calling updateInventoryActiveProducts().');
|
|
234
243
|
}
|
|
@@ -236,6 +245,9 @@ var ManageInventoryApi = /** @class */ (function (_super) {
|
|
|
236
245
|
if (requestParameters['pEq'] != null) {
|
|
237
246
|
queryParameters['p[eq]'] = requestParameters['pEq'];
|
|
238
247
|
}
|
|
248
|
+
if (requestParameters['syncModeEq'] != null) {
|
|
249
|
+
queryParameters['syncMode[eq]'] = requestParameters['syncModeEq'];
|
|
250
|
+
}
|
|
239
251
|
headerParameters = {};
|
|
240
252
|
headerParameters['Content-Type'] = 'application/json';
|
|
241
253
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
@@ -365,92 +377,6 @@ var ManageInventoryApi = /** @class */ (function (_super) {
|
|
|
365
377
|
});
|
|
366
378
|
});
|
|
367
379
|
};
|
|
368
|
-
/**
|
|
369
|
-
* Allow to update synchroneity of an inventory. For example to force resynchronize of a source, you can send source synchronizationScheduled to \'True\'. If you want to restart synchronization from the beginning of human life, you can send souyrce lastSynchronizationDate to \'0\'
|
|
370
|
-
* Modify synchroneity state of a user
|
|
371
|
-
*/
|
|
372
|
-
ManageInventoryApi.prototype.updateInventorySynchroneityRaw = function (requestParameters, initOverrides) {
|
|
373
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
374
|
-
var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType, response_5;
|
|
375
|
-
return __generator(this, function (_c) {
|
|
376
|
-
switch (_c.label) {
|
|
377
|
-
case 0:
|
|
378
|
-
if (requestParameters['inventoryId'] == null) {
|
|
379
|
-
throw new runtime.RequiredError('inventoryId', 'Required parameter "inventoryId" was null or undefined when calling updateInventorySynchroneity().');
|
|
380
|
-
}
|
|
381
|
-
if (requestParameters['synchroneity'] == null) {
|
|
382
|
-
throw new runtime.RequiredError('synchroneity', 'Required parameter "synchroneity" was null or undefined when calling updateInventorySynchroneity().');
|
|
383
|
-
}
|
|
384
|
-
queryParameters = {};
|
|
385
|
-
headerParameters = {};
|
|
386
|
-
headerParameters['Content-Type'] = 'application/merge-patch+json';
|
|
387
|
-
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
388
|
-
_a = headerParameters;
|
|
389
|
-
_b = "x-api-key";
|
|
390
|
-
return [4 /*yield*/, this.configuration.apiKey("x-api-key")];
|
|
391
|
-
case 1:
|
|
392
|
-
_a[_b] = _c.sent(); // apiKeyAuth authentication
|
|
393
|
-
_c.label = 2;
|
|
394
|
-
case 2:
|
|
395
|
-
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
396
|
-
token = this.configuration.accessToken;
|
|
397
|
-
return [4 /*yield*/, token("bearerAuth", [])];
|
|
398
|
-
case 3:
|
|
399
|
-
tokenString = _c.sent();
|
|
400
|
-
if (tokenString) {
|
|
401
|
-
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
402
|
-
}
|
|
403
|
-
_c.label = 4;
|
|
404
|
-
case 4:
|
|
405
|
-
_c.trys.push([4, 6, , 7]);
|
|
406
|
-
return [4 /*yield*/, this.request({
|
|
407
|
-
path: "/inventories/{inventoryId}/synchroneity".replace("{".concat("inventoryId", "}"), encodeURIComponent(String(requestParameters['inventoryId']))),
|
|
408
|
-
method: 'PATCH',
|
|
409
|
-
headers: headerParameters,
|
|
410
|
-
query: queryParameters,
|
|
411
|
-
body: (0, index_1.SynchroneityToJSON)(requestParameters['synchroneity']),
|
|
412
|
-
}, initOverrides)];
|
|
413
|
-
case 5:
|
|
414
|
-
response = _c.sent();
|
|
415
|
-
contentType = response.headers.get("content-type");
|
|
416
|
-
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
417
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.SynchroneityFromJSON)(jsonValue); })];
|
|
418
|
-
}
|
|
419
|
-
else if (contentType && contentType.indexOf("text/plain") !== -1) {
|
|
420
|
-
return [2 /*return*/, new runtime.TextApiResponse(response)];
|
|
421
|
-
}
|
|
422
|
-
else {
|
|
423
|
-
// TODO : Better handling of others application types
|
|
424
|
-
return [2 /*return*/, new runtime.BlobWithMetaApiResponse(response)];
|
|
425
|
-
}
|
|
426
|
-
return [3 /*break*/, 7];
|
|
427
|
-
case 6:
|
|
428
|
-
response_5 = _c.sent();
|
|
429
|
-
console.debug(response_5);
|
|
430
|
-
throw response_5;
|
|
431
|
-
case 7: return [2 /*return*/];
|
|
432
|
-
}
|
|
433
|
-
});
|
|
434
|
-
});
|
|
435
|
-
};
|
|
436
|
-
/**
|
|
437
|
-
* Allow to update synchroneity of an inventory. For example to force resynchronize of a source, you can send source synchronizationScheduled to \'True\'. If you want to restart synchronization from the beginning of human life, you can send souyrce lastSynchronizationDate to \'0\'
|
|
438
|
-
* Modify synchroneity state of a user
|
|
439
|
-
*/
|
|
440
|
-
ManageInventoryApi.prototype.updateInventorySynchroneity = function (requestParameters, initOverrides) {
|
|
441
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
442
|
-
var response;
|
|
443
|
-
return __generator(this, function (_a) {
|
|
444
|
-
switch (_a.label) {
|
|
445
|
-
case 0: return [4 /*yield*/, this.updateInventorySynchroneityRaw(requestParameters, initOverrides)];
|
|
446
|
-
case 1:
|
|
447
|
-
response = _a.sent();
|
|
448
|
-
return [4 /*yield*/, response.value()];
|
|
449
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
450
|
-
}
|
|
451
|
-
});
|
|
452
|
-
});
|
|
453
|
-
};
|
|
454
380
|
return ManageInventoryApi;
|
|
455
381
|
}(runtime.BaseAPI));
|
|
456
382
|
exports.ManageInventoryApi = ManageInventoryApi;
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { PaginatedActiveProducts, PaginatedMisalignedProducts, PaginatedOverstockProducts, Statistics
|
|
13
|
+
import type { Inventory, PaginatedActiveProducts, PaginatedInventories, PaginatedMisalignedProducts, PaginatedOverstockProducts, Statistics } from '../models/index';
|
|
14
14
|
export interface GetCurrentInventoryActiveProductsRequest {
|
|
15
15
|
q?: string;
|
|
16
16
|
labEq?: Array<number>;
|
|
@@ -40,6 +40,18 @@ export interface GetCurrentInventoryOverstockProductsRequest {
|
|
|
40
40
|
p?: number;
|
|
41
41
|
pp?: number;
|
|
42
42
|
}
|
|
43
|
+
export interface GetCurrentInventoryStatisticsRequest {
|
|
44
|
+
overstockBlEq?: boolean;
|
|
45
|
+
overstockForecastGte?: number;
|
|
46
|
+
}
|
|
47
|
+
export interface GetInventoriesRequest {
|
|
48
|
+
idEq?: Array<number>;
|
|
49
|
+
p?: number;
|
|
50
|
+
pp?: number;
|
|
51
|
+
}
|
|
52
|
+
export interface GetInventoryRequest {
|
|
53
|
+
inventoryId: number;
|
|
54
|
+
}
|
|
43
55
|
export interface GetInventoryActiveProductsRequest {
|
|
44
56
|
inventoryId: number;
|
|
45
57
|
q?: string;
|
|
@@ -74,9 +86,8 @@ export interface GetInventoryOverstockProductsRequest {
|
|
|
74
86
|
}
|
|
75
87
|
export interface GetInventoryStatisticsRequest {
|
|
76
88
|
inventoryId: number;
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
inventoryId: number;
|
|
89
|
+
overstockBlEq?: boolean;
|
|
90
|
+
overstockForecastGte?: number;
|
|
80
91
|
}
|
|
81
92
|
/**
|
|
82
93
|
*
|
|
@@ -109,21 +120,27 @@ export declare class SearchInventoryApi extends runtime.BaseAPI {
|
|
|
109
120
|
/**
|
|
110
121
|
* Get advices statistics
|
|
111
122
|
*/
|
|
112
|
-
getCurrentInventoryStatisticsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Statistics | runtime.BlobWithMeta>>;
|
|
123
|
+
getCurrentInventoryStatisticsRaw(requestParameters: GetCurrentInventoryStatisticsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Statistics | runtime.BlobWithMeta>>;
|
|
113
124
|
/**
|
|
114
125
|
* Get advices statistics
|
|
115
126
|
*/
|
|
116
|
-
getCurrentInventoryStatistics(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Statistics | runtime.BlobWithMeta>;
|
|
127
|
+
getCurrentInventoryStatistics(requestParameters?: GetCurrentInventoryStatisticsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Statistics | runtime.BlobWithMeta>;
|
|
117
128
|
/**
|
|
118
|
-
*
|
|
119
|
-
* Get synchronization state of inventory
|
|
129
|
+
* Get all inventories
|
|
120
130
|
*/
|
|
121
|
-
|
|
131
|
+
getInventoriesRaw(requestParameters: GetInventoriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedInventories | runtime.BlobWithMeta>>;
|
|
122
132
|
/**
|
|
123
|
-
*
|
|
124
|
-
* Get synchronization state of inventory
|
|
133
|
+
* Get all inventories
|
|
125
134
|
*/
|
|
126
|
-
|
|
135
|
+
getInventories(requestParameters?: GetInventoriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedInventories | runtime.BlobWithMeta>;
|
|
136
|
+
/**
|
|
137
|
+
* Get inventory by id
|
|
138
|
+
*/
|
|
139
|
+
getInventoryRaw(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Inventory | runtime.BlobWithMeta>>;
|
|
140
|
+
/**
|
|
141
|
+
* Get inventory by id
|
|
142
|
+
*/
|
|
143
|
+
getInventory(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Inventory | runtime.BlobWithMeta>;
|
|
127
144
|
/**
|
|
128
145
|
* Search products with params for an inventory
|
|
129
146
|
*/
|
|
@@ -156,16 +173,6 @@ export declare class SearchInventoryApi extends runtime.BaseAPI {
|
|
|
156
173
|
* Get advices statistics
|
|
157
174
|
*/
|
|
158
175
|
getInventoryStatistics(requestParameters: GetInventoryStatisticsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Statistics | runtime.BlobWithMeta>;
|
|
159
|
-
/**
|
|
160
|
-
* Allow to retrieve informations about synchronization between the inventory and its sources. Theses informations (such as last successful synchronization) can be used to monitor the freshness of data computed. Note : \'synchroneity\' is not mispelled !
|
|
161
|
-
* Get synchronization state of inventory
|
|
162
|
-
*/
|
|
163
|
-
getInventorySynchroneityRaw(requestParameters: GetInventorySynchroneityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Synchroneity | runtime.BlobWithMeta>>;
|
|
164
|
-
/**
|
|
165
|
-
* Allow to retrieve informations about synchronization between the inventory and its sources. Theses informations (such as last successful synchronization) can be used to monitor the freshness of data computed. Note : \'synchroneity\' is not mispelled !
|
|
166
|
-
* Get synchronization state of inventory
|
|
167
|
-
*/
|
|
168
|
-
getInventorySynchroneity(requestParameters: GetInventorySynchroneityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Synchroneity | runtime.BlobWithMeta>;
|
|
169
176
|
}
|
|
170
177
|
/**
|
|
171
178
|
* @export
|