@lcdp/api-react-rest-client 2.10.0-develop.13259047931 → 2.10.0-upgrade-codegen-client-react.13239347278
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 +2 -4
- package/auth/src/models/RestError.js +2 -4
- package/catalog/src/models/RestError.d.ts +2 -4
- package/catalog/src/models/RestError.js +2 -4
- package/configuration/src/models/RestError.d.ts +2 -4
- package/configuration/src/models/RestError.js +2 -4
- package/content/src/models/RestError.d.ts +2 -4
- package/content/src/models/RestError.js +2 -4
- package/favorite/src/models/RestError.d.ts +2 -4
- package/favorite/src/models/RestError.js +2 -4
- package/inventory/src/apis/ManageInventoryApi.d.ts +17 -5
- package/inventory/src/apis/ManageInventoryApi.js +86 -12
- package/inventory/src/apis/SearchInventoryApi.d.ts +22 -29
- package/inventory/src/apis/SearchInventoryApi.js +87 -106
- package/inventory/src/models/ActiveProduct.d.ts +3 -10
- package/inventory/src/models/ActiveProduct.js +2 -5
- package/inventory/src/models/ActiveProductUpdateParameters.d.ts +3 -4
- package/inventory/src/models/ActiveProductUpdateParameters.js +2 -3
- package/inventory/src/models/MisalignedProduct.d.ts +0 -6
- package/inventory/src/models/MisalignedProduct.js +0 -2
- package/inventory/src/models/OverstockProduct.d.ts +0 -6
- package/inventory/src/models/OverstockProduct.js +0 -2
- package/inventory/src/models/RestError.d.ts +2 -4
- package/inventory/src/models/RestError.js +2 -4
- package/inventory/src/models/Synchroneity.d.ts +32 -0
- package/inventory/src/models/Synchroneity.js +46 -0
- package/inventory/src/models/SynchroneityOffisante.d.ts +38 -0
- package/inventory/src/models/SynchroneityOffisante.js +48 -0
- package/inventory/src/models/SynchroneitySource.d.ts +37 -0
- package/inventory/src/models/SynchroneitySource.js +47 -0
- package/inventory/src/models/index.d.ts +3 -4
- package/inventory/src/models/index.js +3 -4
- package/invoice/src/models/RestError.d.ts +2 -4
- package/invoice/src/models/RestError.js +2 -4
- package/laboratory-store/src/apis/ManageLaboratoryStoreImageApi.js +2 -12
- package/laboratory-store/src/models/RestError.d.ts +2 -4
- package/laboratory-store/src/models/RestError.js +2 -4
- package/lexicon/src/models/RestError.d.ts +2 -4
- package/lexicon/src/models/RestError.js +2 -4
- package/litigation/src/models/RestError.d.ts +2 -4
- package/litigation/src/models/RestError.js +2 -4
- package/mangopay-hook/src/models/RestError.d.ts +2 -4
- package/mangopay-hook/src/models/RestError.js +2 -4
- package/notification/src/apis/ManageNotificationTypeApi.js +1 -6
- package/notification/src/models/RestError.d.ts +2 -4
- package/notification/src/models/RestError.js +2 -4
- package/order/src/models/RestError.d.ts +2 -4
- package/order/src/models/RestError.js +2 -4
- package/package.json +1 -1
- package/product/src/models/RestError.d.ts +2 -4
- package/product/src/models/RestError.js +2 -4
- package/pub/src/apis/ManagePubImageApi.js +1 -6
- package/pub/src/models/RestError.d.ts +2 -4
- package/pub/src/models/RestError.js +2 -4
- package/rfx/src/models/RestError.d.ts +2 -4
- package/rfx/src/models/RestError.js +2 -4
- package/sale-offer/src/models/RestError.d.ts +2 -4
- package/sale-offer/src/models/RestError.js +2 -4
- package/servant/src/models/RestError.d.ts +2 -4
- package/servant/src/models/RestError.js +2 -4
- package/shipment/src/models/RestError.d.ts +2 -4
- package/shipment/src/models/RestError.js +2 -4
- package/shopping-cart/src/models/RestError.d.ts +2 -4
- package/shopping-cart/src/models/RestError.js +2 -4
- package/smuggler/src/models/RestError.d.ts +2 -4
- package/smuggler/src/models/RestError.js +2 -4
- package/statistic/src/models/RestError.d.ts +2 -4
- package/statistic/src/models/RestError.js +2 -4
- package/subscription/src/models/RestError.d.ts +2 -4
- package/subscription/src/models/RestError.js +2 -4
- package/third-party/src/models/RestError.d.ts +2 -4
- package/third-party/src/models/RestError.js +2 -4
- package/ubo/src/models/RestError.d.ts +2 -4
- package/ubo/src/models/RestError.js +2 -4
- package/user/src/models/RestError.d.ts +2 -4
- package/user/src/models/RestError.js +2 -4
- package/wish/src/models/RestError.d.ts +2 -4
- package/wish/src/models/RestError.js +2 -4
- package/inventory/src/models/Inventory.d.ts +0 -63
- package/inventory/src/models/Inventory.js +0 -57
- package/inventory/src/models/InventoryJournal.d.ts +0 -31
- package/inventory/src/models/InventoryJournal.js +0 -45
- package/inventory/src/models/PaginatedInventories.d.ts +0 -39
- package/inventory/src/models/PaginatedInventories.js +0 -53
- package/inventory/src/models/SynchronizationMode.d.ts +0 -25
- package/inventory/src/models/SynchronizationMode.js +0 -48
|
@@ -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
|
|
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
|
|
27
27
|
*
|
|
28
28
|
* @type {string}
|
|
29
29
|
* @memberof RestError
|
|
@@ -56,7 +56,6 @@ export declare const RestErrorCodeEnum: {
|
|
|
56
56
|
readonly CODE019: "CODE019";
|
|
57
57
|
readonly CODE020: "CODE020";
|
|
58
58
|
readonly CODE021: "CODE021";
|
|
59
|
-
readonly CODE022: "CODE022";
|
|
60
59
|
};
|
|
61
60
|
export declare type RestErrorCodeEnum = typeof RestErrorCodeEnum[keyof typeof RestErrorCodeEnum];
|
|
62
61
|
/**
|
|
@@ -85,7 +84,6 @@ export declare const RestErrorMessageEnum: {
|
|
|
85
84
|
readonly MESSAGE019: "Unable to generate session from disposableToken for admin users";
|
|
86
85
|
readonly MESSAGE020: "ETag do not match";
|
|
87
86
|
readonly MESSAGE021: "Missing informations for Offisante subscription";
|
|
88
|
-
readonly MESSAGE022: "Disabled feature";
|
|
89
87
|
};
|
|
90
88
|
export declare type RestErrorMessageEnum = typeof RestErrorMessageEnum[keyof typeof RestErrorMessageEnum];
|
|
91
89
|
/**
|
|
@@ -39,8 +39,7 @@ exports.RestErrorCodeEnum = {
|
|
|
39
39
|
CODE018: 'CODE018',
|
|
40
40
|
CODE019: 'CODE019',
|
|
41
41
|
CODE020: 'CODE020',
|
|
42
|
-
CODE021: 'CODE021'
|
|
43
|
-
CODE022: 'CODE022'
|
|
42
|
+
CODE021: 'CODE021'
|
|
44
43
|
};
|
|
45
44
|
/**
|
|
46
45
|
* @export
|
|
@@ -67,8 +66,7 @@ exports.RestErrorMessageEnum = {
|
|
|
67
66
|
MESSAGE018: 'Trial already used',
|
|
68
67
|
MESSAGE019: 'Unable to generate session from disposableToken for admin users',
|
|
69
68
|
MESSAGE020: 'ETag do not match',
|
|
70
|
-
MESSAGE021: 'Missing informations for Offisante subscription'
|
|
71
|
-
MESSAGE022: 'Disabled feature'
|
|
69
|
+
MESSAGE021: 'Missing informations for Offisante subscription'
|
|
72
70
|
};
|
|
73
71
|
/**
|
|
74
72
|
* 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
|
|
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
|
|
27
27
|
*
|
|
28
28
|
* @type {string}
|
|
29
29
|
* @memberof RestError
|
|
@@ -56,7 +56,6 @@ export declare const RestErrorCodeEnum: {
|
|
|
56
56
|
readonly CODE019: "CODE019";
|
|
57
57
|
readonly CODE020: "CODE020";
|
|
58
58
|
readonly CODE021: "CODE021";
|
|
59
|
-
readonly CODE022: "CODE022";
|
|
60
59
|
};
|
|
61
60
|
export declare type RestErrorCodeEnum = typeof RestErrorCodeEnum[keyof typeof RestErrorCodeEnum];
|
|
62
61
|
/**
|
|
@@ -85,7 +84,6 @@ export declare const RestErrorMessageEnum: {
|
|
|
85
84
|
readonly MESSAGE019: "Unable to generate session from disposableToken for admin users";
|
|
86
85
|
readonly MESSAGE020: "ETag do not match";
|
|
87
86
|
readonly MESSAGE021: "Missing informations for Offisante subscription";
|
|
88
|
-
readonly MESSAGE022: "Disabled feature";
|
|
89
87
|
};
|
|
90
88
|
export declare type RestErrorMessageEnum = typeof RestErrorMessageEnum[keyof typeof RestErrorMessageEnum];
|
|
91
89
|
/**
|
|
@@ -39,8 +39,7 @@ exports.RestErrorCodeEnum = {
|
|
|
39
39
|
CODE018: 'CODE018',
|
|
40
40
|
CODE019: 'CODE019',
|
|
41
41
|
CODE020: 'CODE020',
|
|
42
|
-
CODE021: 'CODE021'
|
|
43
|
-
CODE022: 'CODE022'
|
|
42
|
+
CODE021: 'CODE021'
|
|
44
43
|
};
|
|
45
44
|
/**
|
|
46
45
|
* @export
|
|
@@ -67,8 +66,7 @@ exports.RestErrorMessageEnum = {
|
|
|
67
66
|
MESSAGE018: 'Trial already used',
|
|
68
67
|
MESSAGE019: 'Unable to generate session from disposableToken for admin users',
|
|
69
68
|
MESSAGE020: 'ETag do not match',
|
|
70
|
-
MESSAGE021: 'Missing informations for Offisante subscription'
|
|
71
|
-
MESSAGE022: 'Disabled feature'
|
|
69
|
+
MESSAGE021: 'Missing informations for Offisante subscription'
|
|
72
70
|
};
|
|
73
71
|
/**
|
|
74
72
|
* 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
|
|
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
|
|
27
27
|
*
|
|
28
28
|
* @type {string}
|
|
29
29
|
* @memberof RestError
|
|
@@ -56,7 +56,6 @@ export declare const RestErrorCodeEnum: {
|
|
|
56
56
|
readonly CODE019: "CODE019";
|
|
57
57
|
readonly CODE020: "CODE020";
|
|
58
58
|
readonly CODE021: "CODE021";
|
|
59
|
-
readonly CODE022: "CODE022";
|
|
60
59
|
};
|
|
61
60
|
export declare type RestErrorCodeEnum = typeof RestErrorCodeEnum[keyof typeof RestErrorCodeEnum];
|
|
62
61
|
/**
|
|
@@ -85,7 +84,6 @@ export declare const RestErrorMessageEnum: {
|
|
|
85
84
|
readonly MESSAGE019: "Unable to generate session from disposableToken for admin users";
|
|
86
85
|
readonly MESSAGE020: "ETag do not match";
|
|
87
86
|
readonly MESSAGE021: "Missing informations for Offisante subscription";
|
|
88
|
-
readonly MESSAGE022: "Disabled feature";
|
|
89
87
|
};
|
|
90
88
|
export declare type RestErrorMessageEnum = typeof RestErrorMessageEnum[keyof typeof RestErrorMessageEnum];
|
|
91
89
|
/**
|
|
@@ -39,8 +39,7 @@ exports.RestErrorCodeEnum = {
|
|
|
39
39
|
CODE018: 'CODE018',
|
|
40
40
|
CODE019: 'CODE019',
|
|
41
41
|
CODE020: 'CODE020',
|
|
42
|
-
CODE021: 'CODE021'
|
|
43
|
-
CODE022: 'CODE022'
|
|
42
|
+
CODE021: 'CODE021'
|
|
44
43
|
};
|
|
45
44
|
/**
|
|
46
45
|
* @export
|
|
@@ -67,8 +66,7 @@ exports.RestErrorMessageEnum = {
|
|
|
67
66
|
MESSAGE018: 'Trial already used',
|
|
68
67
|
MESSAGE019: 'Unable to generate session from disposableToken for admin users',
|
|
69
68
|
MESSAGE020: 'ETag do not match',
|
|
70
|
-
MESSAGE021: 'Missing informations for Offisante subscription'
|
|
71
|
-
MESSAGE022: 'Disabled feature'
|
|
69
|
+
MESSAGE021: 'Missing informations for Offisante subscription'
|
|
72
70
|
};
|
|
73
71
|
/**
|
|
74
72
|
* 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
|
|
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
|
|
27
27
|
*
|
|
28
28
|
* @type {string}
|
|
29
29
|
* @memberof RestError
|
|
@@ -56,7 +56,6 @@ export declare const RestErrorCodeEnum: {
|
|
|
56
56
|
readonly CODE019: "CODE019";
|
|
57
57
|
readonly CODE020: "CODE020";
|
|
58
58
|
readonly CODE021: "CODE021";
|
|
59
|
-
readonly CODE022: "CODE022";
|
|
60
59
|
};
|
|
61
60
|
export declare type RestErrorCodeEnum = typeof RestErrorCodeEnum[keyof typeof RestErrorCodeEnum];
|
|
62
61
|
/**
|
|
@@ -85,7 +84,6 @@ export declare const RestErrorMessageEnum: {
|
|
|
85
84
|
readonly MESSAGE019: "Unable to generate session from disposableToken for admin users";
|
|
86
85
|
readonly MESSAGE020: "ETag do not match";
|
|
87
86
|
readonly MESSAGE021: "Missing informations for Offisante subscription";
|
|
88
|
-
readonly MESSAGE022: "Disabled feature";
|
|
89
87
|
};
|
|
90
88
|
export declare type RestErrorMessageEnum = typeof RestErrorMessageEnum[keyof typeof RestErrorMessageEnum];
|
|
91
89
|
/**
|
|
@@ -39,8 +39,7 @@ exports.RestErrorCodeEnum = {
|
|
|
39
39
|
CODE018: 'CODE018',
|
|
40
40
|
CODE019: 'CODE019',
|
|
41
41
|
CODE020: 'CODE020',
|
|
42
|
-
CODE021: 'CODE021'
|
|
43
|
-
CODE022: 'CODE022'
|
|
42
|
+
CODE021: 'CODE021'
|
|
44
43
|
};
|
|
45
44
|
/**
|
|
46
45
|
* @export
|
|
@@ -67,8 +66,7 @@ exports.RestErrorMessageEnum = {
|
|
|
67
66
|
MESSAGE018: 'Trial already used',
|
|
68
67
|
MESSAGE019: 'Unable to generate session from disposableToken for admin users',
|
|
69
68
|
MESSAGE020: 'ETag do not match',
|
|
70
|
-
MESSAGE021: 'Missing informations for Offisante subscription'
|
|
71
|
-
MESSAGE022: 'Disabled feature'
|
|
69
|
+
MESSAGE021: 'Missing informations for Offisante subscription'
|
|
72
70
|
};
|
|
73
71
|
/**
|
|
74
72
|
* 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
|
|
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
|
|
27
27
|
*
|
|
28
28
|
* @type {string}
|
|
29
29
|
* @memberof RestError
|
|
@@ -56,7 +56,6 @@ export declare const RestErrorCodeEnum: {
|
|
|
56
56
|
readonly CODE019: "CODE019";
|
|
57
57
|
readonly CODE020: "CODE020";
|
|
58
58
|
readonly CODE021: "CODE021";
|
|
59
|
-
readonly CODE022: "CODE022";
|
|
60
59
|
};
|
|
61
60
|
export declare type RestErrorCodeEnum = typeof RestErrorCodeEnum[keyof typeof RestErrorCodeEnum];
|
|
62
61
|
/**
|
|
@@ -85,7 +84,6 @@ export declare const RestErrorMessageEnum: {
|
|
|
85
84
|
readonly MESSAGE019: "Unable to generate session from disposableToken for admin users";
|
|
86
85
|
readonly MESSAGE020: "ETag do not match";
|
|
87
86
|
readonly MESSAGE021: "Missing informations for Offisante subscription";
|
|
88
|
-
readonly MESSAGE022: "Disabled feature";
|
|
89
87
|
};
|
|
90
88
|
export declare type RestErrorMessageEnum = typeof RestErrorMessageEnum[keyof typeof RestErrorMessageEnum];
|
|
91
89
|
/**
|
|
@@ -39,8 +39,7 @@ exports.RestErrorCodeEnum = {
|
|
|
39
39
|
CODE018: 'CODE018',
|
|
40
40
|
CODE019: 'CODE019',
|
|
41
41
|
CODE020: 'CODE020',
|
|
42
|
-
CODE021: 'CODE021'
|
|
43
|
-
CODE022: 'CODE022'
|
|
42
|
+
CODE021: 'CODE021'
|
|
44
43
|
};
|
|
45
44
|
/**
|
|
46
45
|
* @export
|
|
@@ -67,8 +66,7 @@ exports.RestErrorMessageEnum = {
|
|
|
67
66
|
MESSAGE018: 'Trial already used',
|
|
68
67
|
MESSAGE019: 'Unable to generate session from disposableToken for admin users',
|
|
69
68
|
MESSAGE020: 'ETag do not match',
|
|
70
|
-
MESSAGE021: 'Missing informations for Offisante subscription'
|
|
71
|
-
MESSAGE022: 'Disabled feature'
|
|
69
|
+
MESSAGE021: 'Missing informations for Offisante subscription'
|
|
72
70
|
};
|
|
73
71
|
/**
|
|
74
72
|
* Check if a given object implements the RestError interface.
|
|
@@ -10,11 +10,10 @@
|
|
|
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, Synchroneity } from '../models/index';
|
|
14
14
|
export interface UpdateCurrentInventoryActiveProductsRequest {
|
|
15
|
-
syncModeEq: Array<SynchronizationMode>;
|
|
16
15
|
activeProductUpdateParameters: ActiveProductUpdateParameters;
|
|
17
|
-
pEq?:
|
|
16
|
+
pEq?: number;
|
|
18
17
|
}
|
|
19
18
|
export interface UpdateCurrentInventoryOverstockProductsRequest {
|
|
20
19
|
overstockProductUpdateParameters: OverstockProductUpdateParameters;
|
|
@@ -22,15 +21,18 @@ export interface UpdateCurrentInventoryOverstockProductsRequest {
|
|
|
22
21
|
}
|
|
23
22
|
export interface UpdateInventoryActiveProductsRequest {
|
|
24
23
|
inventoryId: number;
|
|
25
|
-
syncModeEq: Array<SynchronizationMode>;
|
|
26
24
|
activeProductUpdateParameters: ActiveProductUpdateParameters;
|
|
27
|
-
pEq?:
|
|
25
|
+
pEq?: number;
|
|
28
26
|
}
|
|
29
27
|
export interface UpdateInventoryOverstockProductsRequest {
|
|
30
28
|
inventoryId: number;
|
|
31
29
|
overstockProductUpdateParameters: OverstockProductUpdateParameters;
|
|
32
30
|
pEq?: number;
|
|
33
31
|
}
|
|
32
|
+
export interface UpdateInventorySynchroneityRequest {
|
|
33
|
+
inventoryId: number;
|
|
34
|
+
synchroneity: Synchroneity;
|
|
35
|
+
}
|
|
34
36
|
/**
|
|
35
37
|
*
|
|
36
38
|
*/
|
|
@@ -67,4 +69,14 @@ export declare class ManageInventoryApi extends runtime.BaseAPI {
|
|
|
67
69
|
* Add product to black list
|
|
68
70
|
*/
|
|
69
71
|
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>;
|
|
70
82
|
}
|
|
@@ -84,9 +84,6 @@ 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
|
-
}
|
|
90
87
|
if (requestParameters['activeProductUpdateParameters'] == null) {
|
|
91
88
|
throw new runtime.RequiredError('activeProductUpdateParameters', 'Required parameter "activeProductUpdateParameters" was null or undefined when calling updateCurrentInventoryActiveProducts().');
|
|
92
89
|
}
|
|
@@ -94,9 +91,6 @@ var ManageInventoryApi = /** @class */ (function (_super) {
|
|
|
94
91
|
if (requestParameters['pEq'] != null) {
|
|
95
92
|
queryParameters['p[eq]'] = requestParameters['pEq'];
|
|
96
93
|
}
|
|
97
|
-
if (requestParameters['syncModeEq'] != null) {
|
|
98
|
-
queryParameters['syncMode[eq]'] = requestParameters['syncModeEq'];
|
|
99
|
-
}
|
|
100
94
|
headerParameters = {};
|
|
101
95
|
headerParameters['Content-Type'] = 'application/json';
|
|
102
96
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
@@ -235,9 +229,6 @@ var ManageInventoryApi = /** @class */ (function (_super) {
|
|
|
235
229
|
if (requestParameters['inventoryId'] == null) {
|
|
236
230
|
throw new runtime.RequiredError('inventoryId', 'Required parameter "inventoryId" was null or undefined when calling updateInventoryActiveProducts().');
|
|
237
231
|
}
|
|
238
|
-
if (requestParameters['syncModeEq'] == null) {
|
|
239
|
-
throw new runtime.RequiredError('syncModeEq', 'Required parameter "syncModeEq" was null or undefined when calling updateInventoryActiveProducts().');
|
|
240
|
-
}
|
|
241
232
|
if (requestParameters['activeProductUpdateParameters'] == null) {
|
|
242
233
|
throw new runtime.RequiredError('activeProductUpdateParameters', 'Required parameter "activeProductUpdateParameters" was null or undefined when calling updateInventoryActiveProducts().');
|
|
243
234
|
}
|
|
@@ -245,9 +236,6 @@ var ManageInventoryApi = /** @class */ (function (_super) {
|
|
|
245
236
|
if (requestParameters['pEq'] != null) {
|
|
246
237
|
queryParameters['p[eq]'] = requestParameters['pEq'];
|
|
247
238
|
}
|
|
248
|
-
if (requestParameters['syncModeEq'] != null) {
|
|
249
|
-
queryParameters['syncMode[eq]'] = requestParameters['syncModeEq'];
|
|
250
|
-
}
|
|
251
239
|
headerParameters = {};
|
|
252
240
|
headerParameters['Content-Type'] = 'application/json';
|
|
253
241
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
@@ -377,6 +365,92 @@ var ManageInventoryApi = /** @class */ (function (_super) {
|
|
|
377
365
|
});
|
|
378
366
|
});
|
|
379
367
|
};
|
|
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
|
+
};
|
|
380
454
|
return ManageInventoryApi;
|
|
381
455
|
}(runtime.BaseAPI));
|
|
382
456
|
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 {
|
|
13
|
+
import type { PaginatedActiveProducts, PaginatedMisalignedProducts, PaginatedOverstockProducts, Statistics, Synchroneity } from '../models/index';
|
|
14
14
|
export interface GetCurrentInventoryActiveProductsRequest {
|
|
15
15
|
q?: string;
|
|
16
16
|
labEq?: Array<number>;
|
|
@@ -40,18 +40,6 @@ 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
|
-
}
|
|
55
43
|
export interface GetInventoryActiveProductsRequest {
|
|
56
44
|
inventoryId: number;
|
|
57
45
|
q?: string;
|
|
@@ -86,8 +74,9 @@ export interface GetInventoryOverstockProductsRequest {
|
|
|
86
74
|
}
|
|
87
75
|
export interface GetInventoryStatisticsRequest {
|
|
88
76
|
inventoryId: number;
|
|
89
|
-
|
|
90
|
-
|
|
77
|
+
}
|
|
78
|
+
export interface GetInventorySynchroneityRequest {
|
|
79
|
+
inventoryId: number;
|
|
91
80
|
}
|
|
92
81
|
/**
|
|
93
82
|
*
|
|
@@ -120,27 +109,21 @@ export declare class SearchInventoryApi extends runtime.BaseAPI {
|
|
|
120
109
|
/**
|
|
121
110
|
* Get advices statistics
|
|
122
111
|
*/
|
|
123
|
-
getCurrentInventoryStatisticsRaw(
|
|
112
|
+
getCurrentInventoryStatisticsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Statistics | runtime.BlobWithMeta>>;
|
|
124
113
|
/**
|
|
125
114
|
* Get advices statistics
|
|
126
115
|
*/
|
|
127
|
-
getCurrentInventoryStatistics(
|
|
116
|
+
getCurrentInventoryStatistics(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Statistics | runtime.BlobWithMeta>;
|
|
128
117
|
/**
|
|
129
|
-
*
|
|
118
|
+
* 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 !
|
|
119
|
+
* Get synchronization state of inventory
|
|
130
120
|
*/
|
|
131
|
-
|
|
121
|
+
getCurrentInventorySynchroneityRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Synchroneity | runtime.BlobWithMeta>>;
|
|
132
122
|
/**
|
|
133
|
-
*
|
|
123
|
+
* 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 !
|
|
124
|
+
* Get synchronization state of inventory
|
|
134
125
|
*/
|
|
135
|
-
|
|
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>;
|
|
126
|
+
getCurrentInventorySynchroneity(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Synchroneity | runtime.BlobWithMeta>;
|
|
144
127
|
/**
|
|
145
128
|
* Search products with params for an inventory
|
|
146
129
|
*/
|
|
@@ -173,6 +156,16 @@ export declare class SearchInventoryApi extends runtime.BaseAPI {
|
|
|
173
156
|
* Get advices statistics
|
|
174
157
|
*/
|
|
175
158
|
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>;
|
|
176
169
|
}
|
|
177
170
|
/**
|
|
178
171
|
* @export
|