@lcdp/api-react-rest-client 2.11.5-LDS-4510-ajouter-grace-period-sur-user.15106924709 → 2.11.5-develop.14709582461
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 +28 -1
- package/inventory/src/apis/ManageInventoryApi.js +165 -8
- package/inventory/src/apis/index.d.ts +0 -1
- package/inventory/src/apis/index.js +0 -1
- package/inventory/src/models/ActiveProductUpdateParameters.d.ts +32 -0
- package/inventory/src/models/ActiveProductUpdateParameters.js +46 -0
- package/inventory/src/models/RestError.d.ts +2 -4
- package/inventory/src/models/RestError.js +2 -4
- package/inventory/src/models/SynchronizationMode.d.ts +3 -3
- package/inventory/src/models/SynchronizationMode.js +3 -3
- package/inventory/src/models/index.d.ts +1 -7
- package/inventory/src/models/index.js +1 -7
- package/invoice/src/models/RestError.d.ts +2 -4
- package/invoice/src/models/RestError.js +2 -4
- 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/models/NotificationTypeId.d.ts +0 -1
- package/notification/src/models/NotificationTypeId.js +1 -2
- 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/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/ProductLink.d.ts +1 -1
- 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/ubo/src/models/Ubo.d.ts +2 -3
- package/ubo/src/models/Ubo.js +2 -3
- package/ubo/src/models/index.d.ts +0 -1
- package/ubo/src/models/index.js +0 -1
- package/user/src/apis/ManageUserApi.d.ts +0 -2
- package/user/src/apis/ManageUserApi.js +0 -6
- package/user/src/models/NotificationTypeId.d.ts +0 -1
- package/user/src/models/NotificationTypeId.js +1 -2
- package/user/src/models/RestError.d.ts +2 -4
- package/user/src/models/RestError.js +2 -4
- package/user/src/models/User.d.ts +0 -7
- package/user/src/models/User.js +0 -3
- package/user/src/models/UserJournal.d.ts +0 -8
- package/user/src/models/UserJournal.js +0 -2
- package/user/src/models/index.d.ts +0 -1
- package/user/src/models/index.js +0 -1
- package/wish/src/models/RestError.d.ts +2 -4
- package/wish/src/models/RestError.js +2 -4
- package/inventory/src/apis/ManageInventorySynchronizationApi.d.ts +0 -93
- package/inventory/src/apis/ManageInventorySynchronizationApi.js +0 -515
- package/inventory/src/models/AnyBuffer.d.ts +0 -26
- package/inventory/src/models/AnyBuffer.js +0 -50
- package/inventory/src/models/Buffer.d.ts +0 -33
- package/inventory/src/models/Buffer.js +0 -47
- package/inventory/src/models/FixedBuffer.d.ts +0 -37
- package/inventory/src/models/FixedBuffer.js +0 -49
- package/inventory/src/models/IdentifiedSynchronization.d.ts +0 -52
- package/inventory/src/models/IdentifiedSynchronization.js +0 -62
- package/inventory/src/models/SalesForecastBuffer.d.ts +0 -37
- package/inventory/src/models/SalesForecastBuffer.js +0 -49
- package/inventory/src/models/Synchronization.d.ts +0 -48
- package/inventory/src/models/Synchronization.js +0 -58
- package/inventory/src/models/SynchronizationProposal.d.ts +0 -56
- package/inventory/src/models/SynchronizationProposal.js +0 -63
- package/ubo/src/models/Birthplace.d.ts +0 -38
- package/ubo/src/models/Birthplace.js +0 -52
- package/user/src/models/ScaEnrollmentStatus.d.ts +0 -31
- package/user/src/models/ScaEnrollmentStatus.js +0 -54
|
@@ -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 * `CODE022` - Disabled feature
|
|
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 * `MESSAGE022` - Disabled feature
|
|
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
|
|
@@ -57,7 +57,6 @@ export declare const RestErrorCodeEnum: {
|
|
|
57
57
|
readonly CODE020: "CODE020";
|
|
58
58
|
readonly CODE021: "CODE021";
|
|
59
59
|
readonly CODE022: "CODE022";
|
|
60
|
-
readonly CODE023: "CODE023";
|
|
61
60
|
};
|
|
62
61
|
export declare type RestErrorCodeEnum = typeof RestErrorCodeEnum[keyof typeof RestErrorCodeEnum];
|
|
63
62
|
/**
|
|
@@ -87,7 +86,6 @@ export declare const RestErrorMessageEnum: {
|
|
|
87
86
|
readonly MESSAGE020: "ETag do not match";
|
|
88
87
|
readonly MESSAGE021: "Missing informations for Offisante subscription";
|
|
89
88
|
readonly MESSAGE022: "Disabled feature";
|
|
90
|
-
readonly MESSAGE023: "Invalid Sca Enrollment status";
|
|
91
89
|
};
|
|
92
90
|
export declare type RestErrorMessageEnum = typeof RestErrorMessageEnum[keyof typeof RestErrorMessageEnum];
|
|
93
91
|
/**
|
|
@@ -40,8 +40,7 @@ exports.RestErrorCodeEnum = {
|
|
|
40
40
|
CODE019: 'CODE019',
|
|
41
41
|
CODE020: 'CODE020',
|
|
42
42
|
CODE021: 'CODE021',
|
|
43
|
-
CODE022: 'CODE022'
|
|
44
|
-
CODE023: 'CODE023'
|
|
43
|
+
CODE022: 'CODE022'
|
|
45
44
|
};
|
|
46
45
|
/**
|
|
47
46
|
* @export
|
|
@@ -69,8 +68,7 @@ exports.RestErrorMessageEnum = {
|
|
|
69
68
|
MESSAGE019: 'Unable to generate session from disposableToken for admin users',
|
|
70
69
|
MESSAGE020: 'ETag do not match',
|
|
71
70
|
MESSAGE021: 'Missing informations for Offisante subscription',
|
|
72
|
-
MESSAGE022: 'Disabled feature'
|
|
73
|
-
MESSAGE023: 'Invalid Sca Enrollment status'
|
|
71
|
+
MESSAGE022: 'Disabled feature'
|
|
74
72
|
};
|
|
75
73
|
/**
|
|
76
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 * `CODE022` - Disabled feature
|
|
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 * `MESSAGE022` - Disabled feature
|
|
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
|
|
@@ -57,7 +57,6 @@ export declare const RestErrorCodeEnum: {
|
|
|
57
57
|
readonly CODE020: "CODE020";
|
|
58
58
|
readonly CODE021: "CODE021";
|
|
59
59
|
readonly CODE022: "CODE022";
|
|
60
|
-
readonly CODE023: "CODE023";
|
|
61
60
|
};
|
|
62
61
|
export declare type RestErrorCodeEnum = typeof RestErrorCodeEnum[keyof typeof RestErrorCodeEnum];
|
|
63
62
|
/**
|
|
@@ -87,7 +86,6 @@ export declare const RestErrorMessageEnum: {
|
|
|
87
86
|
readonly MESSAGE020: "ETag do not match";
|
|
88
87
|
readonly MESSAGE021: "Missing informations for Offisante subscription";
|
|
89
88
|
readonly MESSAGE022: "Disabled feature";
|
|
90
|
-
readonly MESSAGE023: "Invalid Sca Enrollment status";
|
|
91
89
|
};
|
|
92
90
|
export declare type RestErrorMessageEnum = typeof RestErrorMessageEnum[keyof typeof RestErrorMessageEnum];
|
|
93
91
|
/**
|
|
@@ -40,8 +40,7 @@ exports.RestErrorCodeEnum = {
|
|
|
40
40
|
CODE019: 'CODE019',
|
|
41
41
|
CODE020: 'CODE020',
|
|
42
42
|
CODE021: 'CODE021',
|
|
43
|
-
CODE022: 'CODE022'
|
|
44
|
-
CODE023: 'CODE023'
|
|
43
|
+
CODE022: 'CODE022'
|
|
45
44
|
};
|
|
46
45
|
/**
|
|
47
46
|
* @export
|
|
@@ -69,8 +68,7 @@ exports.RestErrorMessageEnum = {
|
|
|
69
68
|
MESSAGE019: 'Unable to generate session from disposableToken for admin users',
|
|
70
69
|
MESSAGE020: 'ETag do not match',
|
|
71
70
|
MESSAGE021: 'Missing informations for Offisante subscription',
|
|
72
|
-
MESSAGE022: 'Disabled feature'
|
|
73
|
-
MESSAGE023: 'Invalid Sca Enrollment status'
|
|
71
|
+
MESSAGE022: 'Disabled feature'
|
|
74
72
|
};
|
|
75
73
|
/**
|
|
76
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 * `CODE022` - Disabled feature
|
|
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 * `MESSAGE022` - Disabled feature
|
|
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
|
|
@@ -57,7 +57,6 @@ export declare const RestErrorCodeEnum: {
|
|
|
57
57
|
readonly CODE020: "CODE020";
|
|
58
58
|
readonly CODE021: "CODE021";
|
|
59
59
|
readonly CODE022: "CODE022";
|
|
60
|
-
readonly CODE023: "CODE023";
|
|
61
60
|
};
|
|
62
61
|
export declare type RestErrorCodeEnum = typeof RestErrorCodeEnum[keyof typeof RestErrorCodeEnum];
|
|
63
62
|
/**
|
|
@@ -87,7 +86,6 @@ export declare const RestErrorMessageEnum: {
|
|
|
87
86
|
readonly MESSAGE020: "ETag do not match";
|
|
88
87
|
readonly MESSAGE021: "Missing informations for Offisante subscription";
|
|
89
88
|
readonly MESSAGE022: "Disabled feature";
|
|
90
|
-
readonly MESSAGE023: "Invalid Sca Enrollment status";
|
|
91
89
|
};
|
|
92
90
|
export declare type RestErrorMessageEnum = typeof RestErrorMessageEnum[keyof typeof RestErrorMessageEnum];
|
|
93
91
|
/**
|
|
@@ -40,8 +40,7 @@ exports.RestErrorCodeEnum = {
|
|
|
40
40
|
CODE019: 'CODE019',
|
|
41
41
|
CODE020: 'CODE020',
|
|
42
42
|
CODE021: 'CODE021',
|
|
43
|
-
CODE022: 'CODE022'
|
|
44
|
-
CODE023: 'CODE023'
|
|
43
|
+
CODE022: 'CODE022'
|
|
45
44
|
};
|
|
46
45
|
/**
|
|
47
46
|
* @export
|
|
@@ -69,8 +68,7 @@ exports.RestErrorMessageEnum = {
|
|
|
69
68
|
MESSAGE019: 'Unable to generate session from disposableToken for admin users',
|
|
70
69
|
MESSAGE020: 'ETag do not match',
|
|
71
70
|
MESSAGE021: 'Missing informations for Offisante subscription',
|
|
72
|
-
MESSAGE022: 'Disabled feature'
|
|
73
|
-
MESSAGE023: 'Invalid Sca Enrollment status'
|
|
71
|
+
MESSAGE022: 'Disabled feature'
|
|
74
72
|
};
|
|
75
73
|
/**
|
|
76
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 * `CODE022` - Disabled feature
|
|
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 * `MESSAGE022` - Disabled feature
|
|
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
|
|
@@ -57,7 +57,6 @@ export declare const RestErrorCodeEnum: {
|
|
|
57
57
|
readonly CODE020: "CODE020";
|
|
58
58
|
readonly CODE021: "CODE021";
|
|
59
59
|
readonly CODE022: "CODE022";
|
|
60
|
-
readonly CODE023: "CODE023";
|
|
61
60
|
};
|
|
62
61
|
export declare type RestErrorCodeEnum = typeof RestErrorCodeEnum[keyof typeof RestErrorCodeEnum];
|
|
63
62
|
/**
|
|
@@ -87,7 +86,6 @@ export declare const RestErrorMessageEnum: {
|
|
|
87
86
|
readonly MESSAGE020: "ETag do not match";
|
|
88
87
|
readonly MESSAGE021: "Missing informations for Offisante subscription";
|
|
89
88
|
readonly MESSAGE022: "Disabled feature";
|
|
90
|
-
readonly MESSAGE023: "Invalid Sca Enrollment status";
|
|
91
89
|
};
|
|
92
90
|
export declare type RestErrorMessageEnum = typeof RestErrorMessageEnum[keyof typeof RestErrorMessageEnum];
|
|
93
91
|
/**
|
|
@@ -40,8 +40,7 @@ exports.RestErrorCodeEnum = {
|
|
|
40
40
|
CODE019: 'CODE019',
|
|
41
41
|
CODE020: 'CODE020',
|
|
42
42
|
CODE021: 'CODE021',
|
|
43
|
-
CODE022: 'CODE022'
|
|
44
|
-
CODE023: 'CODE023'
|
|
43
|
+
CODE022: 'CODE022'
|
|
45
44
|
};
|
|
46
45
|
/**
|
|
47
46
|
* @export
|
|
@@ -69,8 +68,7 @@ exports.RestErrorMessageEnum = {
|
|
|
69
68
|
MESSAGE019: 'Unable to generate session from disposableToken for admin users',
|
|
70
69
|
MESSAGE020: 'ETag do not match',
|
|
71
70
|
MESSAGE021: 'Missing informations for Offisante subscription',
|
|
72
|
-
MESSAGE022: 'Disabled feature'
|
|
73
|
-
MESSAGE023: 'Invalid Sca Enrollment status'
|
|
71
|
+
MESSAGE022: 'Disabled feature'
|
|
74
72
|
};
|
|
75
73
|
/**
|
|
76
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 * `CODE022` - Disabled feature
|
|
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 * `MESSAGE022` - Disabled feature
|
|
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
|
|
@@ -57,7 +57,6 @@ export declare const RestErrorCodeEnum: {
|
|
|
57
57
|
readonly CODE020: "CODE020";
|
|
58
58
|
readonly CODE021: "CODE021";
|
|
59
59
|
readonly CODE022: "CODE022";
|
|
60
|
-
readonly CODE023: "CODE023";
|
|
61
60
|
};
|
|
62
61
|
export declare type RestErrorCodeEnum = typeof RestErrorCodeEnum[keyof typeof RestErrorCodeEnum];
|
|
63
62
|
/**
|
|
@@ -87,7 +86,6 @@ export declare const RestErrorMessageEnum: {
|
|
|
87
86
|
readonly MESSAGE020: "ETag do not match";
|
|
88
87
|
readonly MESSAGE021: "Missing informations for Offisante subscription";
|
|
89
88
|
readonly MESSAGE022: "Disabled feature";
|
|
90
|
-
readonly MESSAGE023: "Invalid Sca Enrollment status";
|
|
91
89
|
};
|
|
92
90
|
export declare type RestErrorMessageEnum = typeof RestErrorMessageEnum[keyof typeof RestErrorMessageEnum];
|
|
93
91
|
/**
|
|
@@ -40,8 +40,7 @@ exports.RestErrorCodeEnum = {
|
|
|
40
40
|
CODE019: 'CODE019',
|
|
41
41
|
CODE020: 'CODE020',
|
|
42
42
|
CODE021: 'CODE021',
|
|
43
|
-
CODE022: 'CODE022'
|
|
44
|
-
CODE023: 'CODE023'
|
|
43
|
+
CODE022: 'CODE022'
|
|
45
44
|
};
|
|
46
45
|
/**
|
|
47
46
|
* @export
|
|
@@ -69,8 +68,7 @@ exports.RestErrorMessageEnum = {
|
|
|
69
68
|
MESSAGE019: 'Unable to generate session from disposableToken for admin users',
|
|
70
69
|
MESSAGE020: 'ETag do not match',
|
|
71
70
|
MESSAGE021: 'Missing informations for Offisante subscription',
|
|
72
|
-
MESSAGE022: 'Disabled feature'
|
|
73
|
-
MESSAGE023: 'Invalid Sca Enrollment status'
|
|
71
|
+
MESSAGE022: 'Disabled feature'
|
|
74
72
|
};
|
|
75
73
|
/**
|
|
76
74
|
* Check if a given object implements the RestError interface.
|
|
@@ -10,11 +10,22 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { OverstockProductUpdateParameters } from '../models/index';
|
|
13
|
+
import type { ActiveProductUpdateParameters, OverstockProductUpdateParameters, SynchronizationMode } from '../models/index';
|
|
14
|
+
export interface UpdateCurrentInventoryActiveProductsRequest {
|
|
15
|
+
syncModeEq: Array<SynchronizationMode>;
|
|
16
|
+
activeProductUpdateParameters: ActiveProductUpdateParameters;
|
|
17
|
+
pEq?: Array<number>;
|
|
18
|
+
}
|
|
14
19
|
export interface UpdateCurrentInventoryOverstockProductsRequest {
|
|
15
20
|
overstockProductUpdateParameters: OverstockProductUpdateParameters;
|
|
16
21
|
pEq?: number;
|
|
17
22
|
}
|
|
23
|
+
export interface UpdateInventoryActiveProductsRequest {
|
|
24
|
+
inventoryId: number;
|
|
25
|
+
syncModeEq: Array<SynchronizationMode>;
|
|
26
|
+
activeProductUpdateParameters: ActiveProductUpdateParameters;
|
|
27
|
+
pEq?: Array<number>;
|
|
28
|
+
}
|
|
18
29
|
export interface UpdateInventoryOverstockProductsRequest {
|
|
19
30
|
inventoryId: number;
|
|
20
31
|
overstockProductUpdateParameters: OverstockProductUpdateParameters;
|
|
@@ -24,6 +35,14 @@ export interface UpdateInventoryOverstockProductsRequest {
|
|
|
24
35
|
*
|
|
25
36
|
*/
|
|
26
37
|
export declare class ManageInventoryApi extends runtime.BaseAPI {
|
|
38
|
+
/**
|
|
39
|
+
* Allows to enable / disable automatic update on products for current user
|
|
40
|
+
*/
|
|
41
|
+
updateCurrentInventoryActiveProductsRaw(requestParameters: UpdateCurrentInventoryActiveProductsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
42
|
+
/**
|
|
43
|
+
* Allows to enable / disable automatic update on products for current user
|
|
44
|
+
*/
|
|
45
|
+
updateCurrentInventoryActiveProducts(requestParameters: UpdateCurrentInventoryActiveProductsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
27
46
|
/**
|
|
28
47
|
* Add product to black list
|
|
29
48
|
*/
|
|
@@ -32,6 +51,14 @@ export declare class ManageInventoryApi extends runtime.BaseAPI {
|
|
|
32
51
|
* Add product to black list
|
|
33
52
|
*/
|
|
34
53
|
updateCurrentInventoryOverstockProducts(requestParameters: UpdateCurrentInventoryOverstockProductsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
54
|
+
/**
|
|
55
|
+
* Allows to enable / disable automatic update on products for an inventory
|
|
56
|
+
*/
|
|
57
|
+
updateInventoryActiveProductsRaw(requestParameters: UpdateInventoryActiveProductsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
58
|
+
/**
|
|
59
|
+
* Allows to enable / disable automatic update on products for an inventory
|
|
60
|
+
*/
|
|
61
|
+
updateInventoryActiveProducts(requestParameters: UpdateInventoryActiveProductsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
35
62
|
/**
|
|
36
63
|
* Add product to black list
|
|
37
64
|
*/
|
|
@@ -75,12 +75,89 @@ var ManageInventoryApi = /** @class */ (function (_super) {
|
|
|
75
75
|
function ManageInventoryApi() {
|
|
76
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
* Allows to enable / disable automatic update on products for current user
|
|
80
|
+
*/
|
|
81
|
+
ManageInventoryApi.prototype.updateCurrentInventoryActiveProductsRaw = function (requestParameters, initOverrides) {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response, response_1;
|
|
84
|
+
return __generator(this, function (_c) {
|
|
85
|
+
switch (_c.label) {
|
|
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
|
+
if (requestParameters['activeProductUpdateParameters'] == null) {
|
|
91
|
+
throw new runtime.RequiredError('activeProductUpdateParameters', 'Required parameter "activeProductUpdateParameters" was null or undefined when calling updateCurrentInventoryActiveProducts().');
|
|
92
|
+
}
|
|
93
|
+
queryParameters = {};
|
|
94
|
+
if (requestParameters['pEq'] != null) {
|
|
95
|
+
queryParameters['p[eq]'] = requestParameters['pEq'];
|
|
96
|
+
}
|
|
97
|
+
if (requestParameters['syncModeEq'] != null) {
|
|
98
|
+
queryParameters['syncMode[eq]'] = requestParameters['syncModeEq'];
|
|
99
|
+
}
|
|
100
|
+
headerParameters = {};
|
|
101
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
102
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
103
|
+
_a = headerParameters;
|
|
104
|
+
_b = "x-api-key";
|
|
105
|
+
return [4 /*yield*/, this.configuration.apiKey("x-api-key")];
|
|
106
|
+
case 1:
|
|
107
|
+
_a[_b] = _c.sent(); // apiKeyAuth authentication
|
|
108
|
+
_c.label = 2;
|
|
109
|
+
case 2:
|
|
110
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
111
|
+
token = this.configuration.accessToken;
|
|
112
|
+
return [4 /*yield*/, token("bearerAuth", [])];
|
|
113
|
+
case 3:
|
|
114
|
+
tokenString = _c.sent();
|
|
115
|
+
if (tokenString) {
|
|
116
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
117
|
+
}
|
|
118
|
+
_c.label = 4;
|
|
119
|
+
case 4:
|
|
120
|
+
_c.trys.push([4, 6, , 7]);
|
|
121
|
+
return [4 /*yield*/, this.request({
|
|
122
|
+
path: "/inventories/me/active-products",
|
|
123
|
+
method: 'PATCH',
|
|
124
|
+
headers: headerParameters,
|
|
125
|
+
query: queryParameters,
|
|
126
|
+
body: (0, index_1.ActiveProductUpdateParametersToJSON)(requestParameters['activeProductUpdateParameters']),
|
|
127
|
+
}, initOverrides)];
|
|
128
|
+
case 5:
|
|
129
|
+
response = _c.sent();
|
|
130
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
131
|
+
case 6:
|
|
132
|
+
response_1 = _c.sent();
|
|
133
|
+
console.debug(response_1);
|
|
134
|
+
throw response_1;
|
|
135
|
+
case 7: return [2 /*return*/];
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
});
|
|
139
|
+
};
|
|
140
|
+
/**
|
|
141
|
+
* Allows to enable / disable automatic update on products for current user
|
|
142
|
+
*/
|
|
143
|
+
ManageInventoryApi.prototype.updateCurrentInventoryActiveProducts = function (requestParameters, initOverrides) {
|
|
144
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
145
|
+
return __generator(this, function (_a) {
|
|
146
|
+
switch (_a.label) {
|
|
147
|
+
case 0: return [4 /*yield*/, this.updateCurrentInventoryActiveProductsRaw(requestParameters, initOverrides)];
|
|
148
|
+
case 1:
|
|
149
|
+
_a.sent();
|
|
150
|
+
return [2 /*return*/];
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
});
|
|
154
|
+
};
|
|
78
155
|
/**
|
|
79
156
|
* Add product to black list
|
|
80
157
|
*/
|
|
81
158
|
ManageInventoryApi.prototype.updateCurrentInventoryOverstockProductsRaw = function (requestParameters, initOverrides) {
|
|
82
159
|
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
-
var queryParameters, headerParameters, _a, _b, token, tokenString, response,
|
|
160
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response, response_2;
|
|
84
161
|
return __generator(this, function (_c) {
|
|
85
162
|
switch (_c.label) {
|
|
86
163
|
case 0:
|
|
@@ -123,9 +200,9 @@ var ManageInventoryApi = /** @class */ (function (_super) {
|
|
|
123
200
|
response = _c.sent();
|
|
124
201
|
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
125
202
|
case 6:
|
|
126
|
-
|
|
127
|
-
console.debug(
|
|
128
|
-
throw
|
|
203
|
+
response_2 = _c.sent();
|
|
204
|
+
console.debug(response_2);
|
|
205
|
+
throw response_2;
|
|
129
206
|
case 7: return [2 /*return*/];
|
|
130
207
|
}
|
|
131
208
|
});
|
|
@@ -146,12 +223,92 @@ var ManageInventoryApi = /** @class */ (function (_super) {
|
|
|
146
223
|
});
|
|
147
224
|
});
|
|
148
225
|
};
|
|
226
|
+
/**
|
|
227
|
+
* Allows to enable / disable automatic update on products for an inventory
|
|
228
|
+
*/
|
|
229
|
+
ManageInventoryApi.prototype.updateInventoryActiveProductsRaw = function (requestParameters, initOverrides) {
|
|
230
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
231
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response, response_3;
|
|
232
|
+
return __generator(this, function (_c) {
|
|
233
|
+
switch (_c.label) {
|
|
234
|
+
case 0:
|
|
235
|
+
if (requestParameters['inventoryId'] == null) {
|
|
236
|
+
throw new runtime.RequiredError('inventoryId', 'Required parameter "inventoryId" was null or undefined when calling updateInventoryActiveProducts().');
|
|
237
|
+
}
|
|
238
|
+
if (requestParameters['syncModeEq'] == null) {
|
|
239
|
+
throw new runtime.RequiredError('syncModeEq', 'Required parameter "syncModeEq" was null or undefined when calling updateInventoryActiveProducts().');
|
|
240
|
+
}
|
|
241
|
+
if (requestParameters['activeProductUpdateParameters'] == null) {
|
|
242
|
+
throw new runtime.RequiredError('activeProductUpdateParameters', 'Required parameter "activeProductUpdateParameters" was null or undefined when calling updateInventoryActiveProducts().');
|
|
243
|
+
}
|
|
244
|
+
queryParameters = {};
|
|
245
|
+
if (requestParameters['pEq'] != null) {
|
|
246
|
+
queryParameters['p[eq]'] = requestParameters['pEq'];
|
|
247
|
+
}
|
|
248
|
+
if (requestParameters['syncModeEq'] != null) {
|
|
249
|
+
queryParameters['syncMode[eq]'] = requestParameters['syncModeEq'];
|
|
250
|
+
}
|
|
251
|
+
headerParameters = {};
|
|
252
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
253
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
254
|
+
_a = headerParameters;
|
|
255
|
+
_b = "x-api-key";
|
|
256
|
+
return [4 /*yield*/, this.configuration.apiKey("x-api-key")];
|
|
257
|
+
case 1:
|
|
258
|
+
_a[_b] = _c.sent(); // apiKeyAuth authentication
|
|
259
|
+
_c.label = 2;
|
|
260
|
+
case 2:
|
|
261
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
262
|
+
token = this.configuration.accessToken;
|
|
263
|
+
return [4 /*yield*/, token("bearerAuth", [])];
|
|
264
|
+
case 3:
|
|
265
|
+
tokenString = _c.sent();
|
|
266
|
+
if (tokenString) {
|
|
267
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
268
|
+
}
|
|
269
|
+
_c.label = 4;
|
|
270
|
+
case 4:
|
|
271
|
+
_c.trys.push([4, 6, , 7]);
|
|
272
|
+
return [4 /*yield*/, this.request({
|
|
273
|
+
path: "/inventories/{inventoryId}/active-products".replace("{".concat("inventoryId", "}"), encodeURIComponent(String(requestParameters['inventoryId']))),
|
|
274
|
+
method: 'PATCH',
|
|
275
|
+
headers: headerParameters,
|
|
276
|
+
query: queryParameters,
|
|
277
|
+
body: (0, index_1.ActiveProductUpdateParametersToJSON)(requestParameters['activeProductUpdateParameters']),
|
|
278
|
+
}, initOverrides)];
|
|
279
|
+
case 5:
|
|
280
|
+
response = _c.sent();
|
|
281
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
282
|
+
case 6:
|
|
283
|
+
response_3 = _c.sent();
|
|
284
|
+
console.debug(response_3);
|
|
285
|
+
throw response_3;
|
|
286
|
+
case 7: return [2 /*return*/];
|
|
287
|
+
}
|
|
288
|
+
});
|
|
289
|
+
});
|
|
290
|
+
};
|
|
291
|
+
/**
|
|
292
|
+
* Allows to enable / disable automatic update on products for an inventory
|
|
293
|
+
*/
|
|
294
|
+
ManageInventoryApi.prototype.updateInventoryActiveProducts = function (requestParameters, initOverrides) {
|
|
295
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
296
|
+
return __generator(this, function (_a) {
|
|
297
|
+
switch (_a.label) {
|
|
298
|
+
case 0: return [4 /*yield*/, this.updateInventoryActiveProductsRaw(requestParameters, initOverrides)];
|
|
299
|
+
case 1:
|
|
300
|
+
_a.sent();
|
|
301
|
+
return [2 /*return*/];
|
|
302
|
+
}
|
|
303
|
+
});
|
|
304
|
+
});
|
|
305
|
+
};
|
|
149
306
|
/**
|
|
150
307
|
* Add product to black list
|
|
151
308
|
*/
|
|
152
309
|
ManageInventoryApi.prototype.updateInventoryOverstockProductsRaw = function (requestParameters, initOverrides) {
|
|
153
310
|
return __awaiter(this, void 0, void 0, function () {
|
|
154
|
-
var queryParameters, headerParameters, _a, _b, token, tokenString, response,
|
|
311
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response, response_4;
|
|
155
312
|
return __generator(this, function (_c) {
|
|
156
313
|
switch (_c.label) {
|
|
157
314
|
case 0:
|
|
@@ -197,9 +354,9 @@ var ManageInventoryApi = /** @class */ (function (_super) {
|
|
|
197
354
|
response = _c.sent();
|
|
198
355
|
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
199
356
|
case 6:
|
|
200
|
-
|
|
201
|
-
console.debug(
|
|
202
|
-
throw
|
|
357
|
+
response_4 = _c.sent();
|
|
358
|
+
console.debug(response_4);
|
|
359
|
+
throw response_4;
|
|
203
360
|
case 7: return [2 /*return*/];
|
|
204
361
|
}
|
|
205
362
|
});
|
|
@@ -17,5 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
/* tslint:disable */
|
|
18
18
|
/* eslint-disable */
|
|
19
19
|
__exportStar(require("./ManageInventoryApi"), exports);
|
|
20
|
-
__exportStar(require("./ManageInventorySynchronizationApi"), exports);
|
|
21
20
|
__exportStar(require("./SearchInventoryApi"), exports);
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-pharmaide-service
|
|
3
|
+
* This is the REST API of LCDP products
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { SynchronizationMode } from './SynchronizationMode';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ActiveProductUpdateParameters
|
|
17
|
+
*/
|
|
18
|
+
export interface ActiveProductUpdateParameters {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {SynchronizationMode}
|
|
22
|
+
* @memberof ActiveProductUpdateParameters
|
|
23
|
+
*/
|
|
24
|
+
synchronizationMode?: SynchronizationMode;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the ActiveProductUpdateParameters interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfActiveProductUpdateParameters(value: object): value is ActiveProductUpdateParameters;
|
|
30
|
+
export declare function ActiveProductUpdateParametersFromJSON(json: any): ActiveProductUpdateParameters;
|
|
31
|
+
export declare function ActiveProductUpdateParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActiveProductUpdateParameters;
|
|
32
|
+
export declare function ActiveProductUpdateParametersToJSON(value?: ActiveProductUpdateParameters | null): any;
|