@lcdp/api-react-rest-client 2.13.3-LDS-4475-mangopay-sca.15925219335 → 2.13.3-develop.15818772806
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 +0 -2
- package/catalog/src/models/RestError.d.ts +2 -4
- package/catalog/src/models/RestError.js +0 -2
- package/configuration/src/models/RestError.d.ts +2 -4
- package/configuration/src/models/RestError.js +0 -2
- package/content/src/models/RestError.d.ts +2 -4
- package/content/src/models/RestError.js +0 -2
- package/favorite/src/models/RestError.d.ts +2 -4
- package/favorite/src/models/RestError.js +0 -2
- package/inventory/src/apis/index.d.ts +0 -1
- package/inventory/src/apis/index.js +0 -1
- package/inventory/src/models/RestError.d.ts +2 -4
- package/inventory/src/models/RestError.js +0 -2
- package/invoice/src/models/RestError.d.ts +2 -4
- package/invoice/src/models/RestError.js +0 -2
- package/laboratory-store/src/models/RestError.d.ts +2 -4
- package/laboratory-store/src/models/RestError.js +0 -2
- package/lexicon/src/models/RestError.d.ts +2 -4
- package/lexicon/src/models/RestError.js +0 -2
- package/litigation/src/models/RestError.d.ts +2 -4
- package/litigation/src/models/RestError.js +0 -2
- package/mangopay-hook/src/models/RestError.d.ts +2 -4
- package/mangopay-hook/src/models/RestError.js +0 -2
- 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 +0 -2
- package/order/src/models/RestError.d.ts +2 -4
- package/order/src/models/RestError.js +0 -2
- package/package.json +1 -1
- package/product/src/models/RestError.d.ts +2 -4
- package/product/src/models/RestError.js +0 -2
- package/pub/src/models/RestError.d.ts +2 -4
- package/pub/src/models/RestError.js +0 -2
- package/rfx/src/models/RestError.d.ts +2 -4
- package/rfx/src/models/RestError.js +0 -2
- package/sale-offer/src/models/RestError.d.ts +2 -4
- package/sale-offer/src/models/RestError.js +0 -2
- package/servant/src/models/RestError.d.ts +2 -4
- package/servant/src/models/RestError.js +0 -2
- package/shipment/src/models/RestError.d.ts +2 -4
- package/shipment/src/models/RestError.js +0 -2
- package/shopping-cart/src/models/RestError.d.ts +2 -4
- package/shopping-cart/src/models/RestError.js +0 -2
- package/smuggler/src/models/RestError.d.ts +2 -4
- package/smuggler/src/models/RestError.js +0 -2
- package/statistic/src/models/RestError.d.ts +2 -4
- package/statistic/src/models/RestError.js +0 -2
- package/subscription/src/models/RestError.d.ts +2 -4
- package/subscription/src/models/RestError.js +0 -2
- package/third-party/src/models/RestError.d.ts +2 -4
- package/third-party/src/models/RestError.js +0 -2
- package/ubo/src/apis/ManageUboDeclarationApi.d.ts +2 -2
- package/ubo/src/apis/ManageUboDeclarationApi.js +2 -2
- package/ubo/src/models/RestError.d.ts +2 -4
- package/ubo/src/models/RestError.js +0 -2
- package/user/src/apis/ManageUserApi.d.ts +0 -2
- package/user/src/apis/ManageUserApi.js +0 -6
- package/user/src/apis/ManageUserDocumentApi.d.ts +6 -6
- package/user/src/apis/ManageUserDocumentApi.js +6 -6
- package/user/src/apis/ManageUserRoleApi.d.ts +32 -0
- package/{inventory/src/apis/ManageOfferSynchronizationApi.js → user/src/apis/ManageUserRoleApi.js} +41 -20
- package/user/src/apis/index.d.ts +1 -0
- package/user/src/apis/index.js +1 -0
- 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 +0 -2
- package/user/src/models/User.d.ts +1 -8
- package/user/src/models/User.js +0 -3
- package/user/src/models/UserBankAccountCreationParameters.d.ts +6 -0
- package/user/src/models/UserBankAccountCreationParameters.js +2 -0
- package/user/src/models/UserBankAccountLink.d.ts +0 -16
- package/user/src/models/UserBankAccountLink.js +1 -12
- package/user/src/models/UserJournal.d.ts +0 -8
- package/user/src/models/UserJournal.js +0 -2
- package/user/src/models/UserUpdateParameters.d.ts +3 -10
- package/user/src/models/UserUpdateParameters.js +3 -6
- package/user/src/models/index.d.ts +0 -2
- package/user/src/models/index.js +0 -2
- package/wish/src/models/RestError.d.ts +2 -4
- package/wish/src/models/RestError.js +0 -2
- package/inventory/src/apis/ManageOfferSynchronizationApi.d.ts +0 -28
- package/user/src/models/ScaEnrollmentStatus.d.ts +0 -31
- package/user/src/models/ScaEnrollmentStatus.js +0 -54
- package/user/src/models/UserJournalUpdateParameters.d.ts +0 -31
- package/user/src/models/UserJournalUpdateParameters.js +0 -45
|
@@ -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 * `CODE024` - Image missing
|
|
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 * `MESSAGE024` - Image missing
|
|
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
|
readonly CODE024: "CODE024";
|
|
62
61
|
};
|
|
63
62
|
export declare type RestErrorCodeEnum = typeof RestErrorCodeEnum[keyof typeof RestErrorCodeEnum];
|
|
@@ -88,7 +87,6 @@ export declare const RestErrorMessageEnum: {
|
|
|
88
87
|
readonly MESSAGE020: "ETag do not match";
|
|
89
88
|
readonly MESSAGE021: "Missing informations for Offisante subscription";
|
|
90
89
|
readonly MESSAGE022: "Disabled feature";
|
|
91
|
-
readonly MESSAGE023: "Invalid Sca Enrollment status";
|
|
92
90
|
readonly MESSAGE024: "Image missing";
|
|
93
91
|
};
|
|
94
92
|
export declare type RestErrorMessageEnum = typeof RestErrorMessageEnum[keyof typeof RestErrorMessageEnum];
|
|
@@ -41,7 +41,6 @@ exports.RestErrorCodeEnum = {
|
|
|
41
41
|
CODE020: 'CODE020',
|
|
42
42
|
CODE021: 'CODE021',
|
|
43
43
|
CODE022: 'CODE022',
|
|
44
|
-
CODE023: 'CODE023',
|
|
45
44
|
CODE024: 'CODE024'
|
|
46
45
|
};
|
|
47
46
|
/**
|
|
@@ -71,7 +70,6 @@ exports.RestErrorMessageEnum = {
|
|
|
71
70
|
MESSAGE020: 'ETag do not match',
|
|
72
71
|
MESSAGE021: 'Missing informations for Offisante subscription',
|
|
73
72
|
MESSAGE022: 'Disabled feature',
|
|
74
|
-
MESSAGE023: 'Invalid Sca Enrollment status',
|
|
75
73
|
MESSAGE024: 'Image missing'
|
|
76
74
|
};
|
|
77
75
|
/**
|
|
@@ -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 * `CODE024` - Image missing
|
|
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 * `MESSAGE024` - Image missing
|
|
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
|
readonly CODE024: "CODE024";
|
|
62
61
|
};
|
|
63
62
|
export declare type RestErrorCodeEnum = typeof RestErrorCodeEnum[keyof typeof RestErrorCodeEnum];
|
|
@@ -88,7 +87,6 @@ export declare const RestErrorMessageEnum: {
|
|
|
88
87
|
readonly MESSAGE020: "ETag do not match";
|
|
89
88
|
readonly MESSAGE021: "Missing informations for Offisante subscription";
|
|
90
89
|
readonly MESSAGE022: "Disabled feature";
|
|
91
|
-
readonly MESSAGE023: "Invalid Sca Enrollment status";
|
|
92
90
|
readonly MESSAGE024: "Image missing";
|
|
93
91
|
};
|
|
94
92
|
export declare type RestErrorMessageEnum = typeof RestErrorMessageEnum[keyof typeof RestErrorMessageEnum];
|
|
@@ -41,7 +41,6 @@ exports.RestErrorCodeEnum = {
|
|
|
41
41
|
CODE020: 'CODE020',
|
|
42
42
|
CODE021: 'CODE021',
|
|
43
43
|
CODE022: 'CODE022',
|
|
44
|
-
CODE023: 'CODE023',
|
|
45
44
|
CODE024: 'CODE024'
|
|
46
45
|
};
|
|
47
46
|
/**
|
|
@@ -71,7 +70,6 @@ exports.RestErrorMessageEnum = {
|
|
|
71
70
|
MESSAGE020: 'ETag do not match',
|
|
72
71
|
MESSAGE021: 'Missing informations for Offisante subscription',
|
|
73
72
|
MESSAGE022: 'Disabled feature',
|
|
74
|
-
MESSAGE023: 'Invalid Sca Enrollment status',
|
|
75
73
|
MESSAGE024: 'Image missing'
|
|
76
74
|
};
|
|
77
75
|
/**
|
|
@@ -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 * `CODE024` - Image missing
|
|
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 * `MESSAGE024` - Image missing
|
|
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
|
readonly CODE024: "CODE024";
|
|
62
61
|
};
|
|
63
62
|
export declare type RestErrorCodeEnum = typeof RestErrorCodeEnum[keyof typeof RestErrorCodeEnum];
|
|
@@ -88,7 +87,6 @@ export declare const RestErrorMessageEnum: {
|
|
|
88
87
|
readonly MESSAGE020: "ETag do not match";
|
|
89
88
|
readonly MESSAGE021: "Missing informations for Offisante subscription";
|
|
90
89
|
readonly MESSAGE022: "Disabled feature";
|
|
91
|
-
readonly MESSAGE023: "Invalid Sca Enrollment status";
|
|
92
90
|
readonly MESSAGE024: "Image missing";
|
|
93
91
|
};
|
|
94
92
|
export declare type RestErrorMessageEnum = typeof RestErrorMessageEnum[keyof typeof RestErrorMessageEnum];
|
|
@@ -41,7 +41,6 @@ exports.RestErrorCodeEnum = {
|
|
|
41
41
|
CODE020: 'CODE020',
|
|
42
42
|
CODE021: 'CODE021',
|
|
43
43
|
CODE022: 'CODE022',
|
|
44
|
-
CODE023: 'CODE023',
|
|
45
44
|
CODE024: 'CODE024'
|
|
46
45
|
};
|
|
47
46
|
/**
|
|
@@ -71,7 +70,6 @@ exports.RestErrorMessageEnum = {
|
|
|
71
70
|
MESSAGE020: 'ETag do not match',
|
|
72
71
|
MESSAGE021: 'Missing informations for Offisante subscription',
|
|
73
72
|
MESSAGE022: 'Disabled feature',
|
|
74
|
-
MESSAGE023: 'Invalid Sca Enrollment status',
|
|
75
73
|
MESSAGE024: 'Image missing'
|
|
76
74
|
};
|
|
77
75
|
/**
|
|
@@ -20,12 +20,12 @@ export interface CreateOrUpdateUboDeclarationRequest {
|
|
|
20
20
|
*/
|
|
21
21
|
export declare class ManageUboDeclarationApi extends runtime.BaseAPI {
|
|
22
22
|
/**
|
|
23
|
-
* Preconditions : # All : - Ubo declaration can be created/updated only if status is in (\'CREATED\', \'INCOMPLETE\', \'VALIDATED\', \'REFUSED\') - If status is in (\'CREATED\', \'INCOMPLETE\'), all existing ubos mangopayId should be in the request (+ potential new ones).
|
|
23
|
+
* Preconditions : # All : - Ubo declaration can be created/updated only if status is in (\'CREATED\', \'INCOMPLETE\', \'VALIDATED\', \'REFUSED\') - If status is in (\'CREATED\', \'INCOMPLETE\'), all existing ubos mangopayId should be in the request (+ potential new ones). # Non-Admin : - You can only put on ubo declaration id mapping your user id
|
|
24
24
|
* Create or update UBO declaration
|
|
25
25
|
*/
|
|
26
26
|
createOrUpdateUboDeclarationRaw(requestParameters: CreateOrUpdateUboDeclarationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UboDeclaration | runtime.BlobWithMeta>>;
|
|
27
27
|
/**
|
|
28
|
-
* Preconditions : # All : - Ubo declaration can be created/updated only if status is in (\'CREATED\', \'INCOMPLETE\', \'VALIDATED\', \'REFUSED\') - If status is in (\'CREATED\', \'INCOMPLETE\'), all existing ubos mangopayId should be in the request (+ potential new ones).
|
|
28
|
+
* Preconditions : # All : - Ubo declaration can be created/updated only if status is in (\'CREATED\', \'INCOMPLETE\', \'VALIDATED\', \'REFUSED\') - If status is in (\'CREATED\', \'INCOMPLETE\'), all existing ubos mangopayId should be in the request (+ potential new ones). # Non-Admin : - You can only put on ubo declaration id mapping your user id
|
|
29
29
|
* Create or update UBO declaration
|
|
30
30
|
*/
|
|
31
31
|
createOrUpdateUboDeclaration(requestParameters: CreateOrUpdateUboDeclarationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UboDeclaration | runtime.BlobWithMeta>;
|
|
@@ -76,7 +76,7 @@ var ManageUboDeclarationApi = /** @class */ (function (_super) {
|
|
|
76
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
}
|
|
78
78
|
/**
|
|
79
|
-
* Preconditions : # All : - Ubo declaration can be created/updated only if status is in (\'CREATED\', \'INCOMPLETE\', \'VALIDATED\', \'REFUSED\') - If status is in (\'CREATED\', \'INCOMPLETE\'), all existing ubos mangopayId should be in the request (+ potential new ones).
|
|
79
|
+
* Preconditions : # All : - Ubo declaration can be created/updated only if status is in (\'CREATED\', \'INCOMPLETE\', \'VALIDATED\', \'REFUSED\') - If status is in (\'CREATED\', \'INCOMPLETE\'), all existing ubos mangopayId should be in the request (+ potential new ones). # Non-Admin : - You can only put on ubo declaration id mapping your user id
|
|
80
80
|
* Create or update UBO declaration
|
|
81
81
|
*/
|
|
82
82
|
ManageUboDeclarationApi.prototype.createOrUpdateUboDeclarationRaw = function (requestParameters, initOverrides) {
|
|
@@ -141,7 +141,7 @@ var ManageUboDeclarationApi = /** @class */ (function (_super) {
|
|
|
141
141
|
});
|
|
142
142
|
};
|
|
143
143
|
/**
|
|
144
|
-
* Preconditions : # All : - Ubo declaration can be created/updated only if status is in (\'CREATED\', \'INCOMPLETE\', \'VALIDATED\', \'REFUSED\') - If status is in (\'CREATED\', \'INCOMPLETE\'), all existing ubos mangopayId should be in the request (+ potential new ones).
|
|
144
|
+
* Preconditions : # All : - Ubo declaration can be created/updated only if status is in (\'CREATED\', \'INCOMPLETE\', \'VALIDATED\', \'REFUSED\') - If status is in (\'CREATED\', \'INCOMPLETE\'), all existing ubos mangopayId should be in the request (+ potential new ones). # Non-Admin : - You can only put on ubo declaration id mapping your user id
|
|
145
145
|
* Create or update UBO declaration
|
|
146
146
|
*/
|
|
147
147
|
ManageUboDeclarationApi.prototype.createOrUpdateUboDeclaration = function (requestParameters, initOverrides) {
|
|
@@ -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 * `CODE024` - Image missing
|
|
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 * `MESSAGE024` - Image missing
|
|
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
|
readonly CODE024: "CODE024";
|
|
62
61
|
};
|
|
63
62
|
export declare type RestErrorCodeEnum = typeof RestErrorCodeEnum[keyof typeof RestErrorCodeEnum];
|
|
@@ -88,7 +87,6 @@ export declare const RestErrorMessageEnum: {
|
|
|
88
87
|
readonly MESSAGE020: "ETag do not match";
|
|
89
88
|
readonly MESSAGE021: "Missing informations for Offisante subscription";
|
|
90
89
|
readonly MESSAGE022: "Disabled feature";
|
|
91
|
-
readonly MESSAGE023: "Invalid Sca Enrollment status";
|
|
92
90
|
readonly MESSAGE024: "Image missing";
|
|
93
91
|
};
|
|
94
92
|
export declare type RestErrorMessageEnum = typeof RestErrorMessageEnum[keyof typeof RestErrorMessageEnum];
|
|
@@ -41,7 +41,6 @@ exports.RestErrorCodeEnum = {
|
|
|
41
41
|
CODE020: 'CODE020',
|
|
42
42
|
CODE021: 'CODE021',
|
|
43
43
|
CODE022: 'CODE022',
|
|
44
|
-
CODE023: 'CODE023',
|
|
45
44
|
CODE024: 'CODE024'
|
|
46
45
|
};
|
|
47
46
|
/**
|
|
@@ -71,7 +70,6 @@ exports.RestErrorMessageEnum = {
|
|
|
71
70
|
MESSAGE020: 'ETag do not match',
|
|
72
71
|
MESSAGE021: 'Missing informations for Offisante subscription',
|
|
73
72
|
MESSAGE022: 'Disabled feature',
|
|
74
|
-
MESSAGE023: 'Invalid Sca Enrollment status',
|
|
75
73
|
MESSAGE024: 'Image missing'
|
|
76
74
|
};
|
|
77
75
|
/**
|
|
@@ -37,12 +37,10 @@ export interface SetUserHolidayModeEnabledRequest {
|
|
|
37
37
|
}
|
|
38
38
|
export interface UpdateCurrentUserRequest {
|
|
39
39
|
userUpdateParameters: UserUpdateParameters;
|
|
40
|
-
xWithSca?: boolean;
|
|
41
40
|
}
|
|
42
41
|
export interface UpdateUserRequest {
|
|
43
42
|
userId: number;
|
|
44
43
|
userUpdateParameters: UserUpdateParameters;
|
|
45
|
-
xWithSca?: boolean;
|
|
46
44
|
}
|
|
47
45
|
/**
|
|
48
46
|
*
|
|
@@ -616,9 +616,6 @@ var ManageUserApi = /** @class */ (function (_super) {
|
|
|
616
616
|
queryParameters = {};
|
|
617
617
|
headerParameters = {};
|
|
618
618
|
headerParameters['Content-Type'] = 'application/merge-patch+json';
|
|
619
|
-
if (requestParameters['xWithSca'] != null) {
|
|
620
|
-
headerParameters['X-With-Sca'] = String(requestParameters['xWithSca']);
|
|
621
|
-
}
|
|
622
619
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
623
620
|
_a = headerParameters;
|
|
624
621
|
_b = "x-api-key";
|
|
@@ -703,9 +700,6 @@ var ManageUserApi = /** @class */ (function (_super) {
|
|
|
703
700
|
queryParameters = {};
|
|
704
701
|
headerParameters = {};
|
|
705
702
|
headerParameters['Content-Type'] = 'application/merge-patch+json';
|
|
706
|
-
if (requestParameters['xWithSca'] != null) {
|
|
707
|
-
headerParameters['X-With-Sca'] = String(requestParameters['xWithSca']);
|
|
708
|
-
}
|
|
709
703
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
710
704
|
_a = headerParameters;
|
|
711
705
|
_b = "x-api-key";
|
|
@@ -30,32 +30,32 @@ export interface UpdateUserDocumentStatusRequest {
|
|
|
30
30
|
*/
|
|
31
31
|
export declare class ManageUserDocumentApi extends runtime.BaseAPI {
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
*
|
|
34
34
|
* Upload document associated to current user
|
|
35
35
|
*/
|
|
36
36
|
createOrUpdateCurrentUserDocumentRaw(requestParameters: CreateOrUpdateCurrentUserDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserDocument | runtime.BlobWithMeta>>;
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
38
|
+
*
|
|
39
39
|
* Upload document associated to current user
|
|
40
40
|
*/
|
|
41
41
|
createOrUpdateCurrentUserDocument(requestParameters: CreateOrUpdateCurrentUserDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserDocument | runtime.BlobWithMeta>;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
*
|
|
44
44
|
* Upload document associated to given user
|
|
45
45
|
*/
|
|
46
46
|
createOrUpdateUserDocumentRaw(requestParameters: CreateOrUpdateUserDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserDocument | runtime.BlobWithMeta>>;
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
48
|
+
*
|
|
49
49
|
* Upload document associated to given user
|
|
50
50
|
*/
|
|
51
51
|
createOrUpdateUserDocument(requestParameters: CreateOrUpdateUserDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserDocument | runtime.BlobWithMeta>;
|
|
52
52
|
/**
|
|
53
|
-
*
|
|
53
|
+
* Restriction : Available status for document type : - GMP -> VALIDATED / VALIDATION_ASKED - Other -> All status
|
|
54
54
|
* Update document status
|
|
55
55
|
*/
|
|
56
56
|
updateUserDocumentStatusRaw(requestParameters: UpdateUserDocumentStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserDocumentStatus | runtime.BlobWithMeta>>;
|
|
57
57
|
/**
|
|
58
|
-
*
|
|
58
|
+
* Restriction : Available status for document type : - GMP -> VALIDATED / VALIDATION_ASKED - Other -> All status
|
|
59
59
|
* Update document status
|
|
60
60
|
*/
|
|
61
61
|
updateUserDocumentStatus(requestParameters: UpdateUserDocumentStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserDocumentStatus | runtime.BlobWithMeta>;
|
|
@@ -76,7 +76,7 @@ var ManageUserDocumentApi = /** @class */ (function (_super) {
|
|
|
76
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
}
|
|
78
78
|
/**
|
|
79
|
-
*
|
|
79
|
+
*
|
|
80
80
|
* Upload document associated to current user
|
|
81
81
|
*/
|
|
82
82
|
ManageUserDocumentApi.prototype.createOrUpdateCurrentUserDocumentRaw = function (requestParameters, initOverrides) {
|
|
@@ -165,7 +165,7 @@ var ManageUserDocumentApi = /** @class */ (function (_super) {
|
|
|
165
165
|
});
|
|
166
166
|
};
|
|
167
167
|
/**
|
|
168
|
-
*
|
|
168
|
+
*
|
|
169
169
|
* Upload document associated to current user
|
|
170
170
|
*/
|
|
171
171
|
ManageUserDocumentApi.prototype.createOrUpdateCurrentUserDocument = function (requestParameters, initOverrides) {
|
|
@@ -183,7 +183,7 @@ var ManageUserDocumentApi = /** @class */ (function (_super) {
|
|
|
183
183
|
});
|
|
184
184
|
};
|
|
185
185
|
/**
|
|
186
|
-
*
|
|
186
|
+
*
|
|
187
187
|
* Upload document associated to given user
|
|
188
188
|
*/
|
|
189
189
|
ManageUserDocumentApi.prototype.createOrUpdateUserDocumentRaw = function (requestParameters, initOverrides) {
|
|
@@ -275,7 +275,7 @@ var ManageUserDocumentApi = /** @class */ (function (_super) {
|
|
|
275
275
|
});
|
|
276
276
|
};
|
|
277
277
|
/**
|
|
278
|
-
*
|
|
278
|
+
*
|
|
279
279
|
* Upload document associated to given user
|
|
280
280
|
*/
|
|
281
281
|
ManageUserDocumentApi.prototype.createOrUpdateUserDocument = function (requestParameters, initOverrides) {
|
|
@@ -293,7 +293,7 @@ var ManageUserDocumentApi = /** @class */ (function (_super) {
|
|
|
293
293
|
});
|
|
294
294
|
};
|
|
295
295
|
/**
|
|
296
|
-
*
|
|
296
|
+
* Restriction : Available status for document type : - GMP -> VALIDATED / VALIDATION_ASKED - Other -> All status
|
|
297
297
|
* Update document status
|
|
298
298
|
*/
|
|
299
299
|
ManageUserDocumentApi.prototype.updateUserDocumentStatusRaw = function (requestParameters, initOverrides) {
|
|
@@ -364,7 +364,7 @@ var ManageUserDocumentApi = /** @class */ (function (_super) {
|
|
|
364
364
|
});
|
|
365
365
|
};
|
|
366
366
|
/**
|
|
367
|
-
*
|
|
367
|
+
* Restriction : Available status for document type : - GMP -> VALIDATED / VALIDATION_ASKED - Other -> All status
|
|
368
368
|
* Update document status
|
|
369
369
|
*/
|
|
370
370
|
ManageUserDocumentApi.prototype.updateUserDocumentStatus = function (requestParameters, initOverrides) {
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-monolith-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 * as runtime from '../runtime';
|
|
13
|
+
import type { UserRole } from '../models/index';
|
|
14
|
+
export interface UpdateUserRoleRequest {
|
|
15
|
+
userId: number;
|
|
16
|
+
body: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
export declare class ManageUserRoleApi extends runtime.BaseAPI {
|
|
22
|
+
/**
|
|
23
|
+
* Preconditions : - User with userId should be from role \'ADMINISTRATOR\'
|
|
24
|
+
* Update user role
|
|
25
|
+
*/
|
|
26
|
+
updateUserRoleRaw(requestParameters: UpdateUserRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserRole | runtime.BlobWithMeta>>;
|
|
27
|
+
/**
|
|
28
|
+
* Preconditions : - User with userId should be from role \'ADMINISTRATOR\'
|
|
29
|
+
* Update user role
|
|
30
|
+
*/
|
|
31
|
+
updateUserRole(requestParameters: UpdateUserRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserRole | runtime.BlobWithMeta>;
|
|
32
|
+
}
|
package/{inventory/src/apis/ManageOfferSynchronizationApi.js → user/src/apis/ManageUserRoleApi.js}
RENAMED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
|
-
* lcdp-
|
|
5
|
+
* lcdp-monolith-service
|
|
6
6
|
* This is the REST API of LCDP products
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 1.0.0
|
|
@@ -64,30 +64,36 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
66
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
-
exports.
|
|
67
|
+
exports.ManageUserRoleApi = void 0;
|
|
68
68
|
var runtime = require("../runtime");
|
|
69
|
+
var index_1 = require("../models/index");
|
|
69
70
|
/**
|
|
70
71
|
*
|
|
71
72
|
*/
|
|
72
|
-
var
|
|
73
|
-
__extends(
|
|
74
|
-
function
|
|
73
|
+
var ManageUserRoleApi = /** @class */ (function (_super) {
|
|
74
|
+
__extends(ManageUserRoleApi, _super);
|
|
75
|
+
function ManageUserRoleApi() {
|
|
75
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
76
77
|
}
|
|
77
78
|
/**
|
|
78
|
-
*
|
|
79
|
+
* Preconditions : - User with userId should be from role \'ADMINISTRATOR\'
|
|
80
|
+
* Update user role
|
|
79
81
|
*/
|
|
80
|
-
|
|
82
|
+
ManageUserRoleApi.prototype.updateUserRoleRaw = function (requestParameters, initOverrides) {
|
|
81
83
|
return __awaiter(this, void 0, void 0, function () {
|
|
82
|
-
var queryParameters, headerParameters, _a, _b, token, tokenString, response, response_1;
|
|
84
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType, response_1;
|
|
83
85
|
return __generator(this, function (_c) {
|
|
84
86
|
switch (_c.label) {
|
|
85
87
|
case 0:
|
|
86
|
-
if (requestParameters['
|
|
87
|
-
throw new runtime.RequiredError('
|
|
88
|
+
if (requestParameters['userId'] == null) {
|
|
89
|
+
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling updateUserRole().');
|
|
90
|
+
}
|
|
91
|
+
if (requestParameters['body'] == null) {
|
|
92
|
+
throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling updateUserRole().');
|
|
88
93
|
}
|
|
89
94
|
queryParameters = {};
|
|
90
95
|
headerParameters = {};
|
|
96
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
91
97
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
92
98
|
_a = headerParameters;
|
|
93
99
|
_b = "x-api-key";
|
|
@@ -108,14 +114,26 @@ var ManageOfferSynchronizationApi = /** @class */ (function (_super) {
|
|
|
108
114
|
case 4:
|
|
109
115
|
_c.trys.push([4, 6, , 7]);
|
|
110
116
|
return [4 /*yield*/, this.request({
|
|
111
|
-
path: "/
|
|
112
|
-
method: '
|
|
117
|
+
path: "/users/{userId}/role".replace("{".concat("userId", "}"), encodeURIComponent(String(requestParameters['userId']))),
|
|
118
|
+
method: 'PUT',
|
|
113
119
|
headers: headerParameters,
|
|
114
120
|
query: queryParameters,
|
|
121
|
+
body: requestParameters['body'],
|
|
115
122
|
}, initOverrides)];
|
|
116
123
|
case 5:
|
|
117
124
|
response = _c.sent();
|
|
118
|
-
|
|
125
|
+
contentType = response.headers.get("content-type");
|
|
126
|
+
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
127
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.UserRoleFromJSON)(jsonValue); })];
|
|
128
|
+
}
|
|
129
|
+
else if (contentType && contentType.indexOf("text/plain") !== -1) {
|
|
130
|
+
return [2 /*return*/, new runtime.TextApiResponse(response)];
|
|
131
|
+
}
|
|
132
|
+
else {
|
|
133
|
+
// TODO : Better handling of others application types
|
|
134
|
+
return [2 /*return*/, new runtime.BlobWithMetaApiResponse(response)];
|
|
135
|
+
}
|
|
136
|
+
return [3 /*break*/, 7];
|
|
119
137
|
case 6:
|
|
120
138
|
response_1 = _c.sent();
|
|
121
139
|
console.debug(response_1);
|
|
@@ -126,20 +144,23 @@ var ManageOfferSynchronizationApi = /** @class */ (function (_super) {
|
|
|
126
144
|
});
|
|
127
145
|
};
|
|
128
146
|
/**
|
|
129
|
-
*
|
|
147
|
+
* Preconditions : - User with userId should be from role \'ADMINISTRATOR\'
|
|
148
|
+
* Update user role
|
|
130
149
|
*/
|
|
131
|
-
|
|
150
|
+
ManageUserRoleApi.prototype.updateUserRole = function (requestParameters, initOverrides) {
|
|
132
151
|
return __awaiter(this, void 0, void 0, function () {
|
|
152
|
+
var response;
|
|
133
153
|
return __generator(this, function (_a) {
|
|
134
154
|
switch (_a.label) {
|
|
135
|
-
case 0: return [4 /*yield*/, this.
|
|
155
|
+
case 0: return [4 /*yield*/, this.updateUserRoleRaw(requestParameters, initOverrides)];
|
|
136
156
|
case 1:
|
|
137
|
-
_a.sent();
|
|
138
|
-
return [
|
|
157
|
+
response = _a.sent();
|
|
158
|
+
return [4 /*yield*/, response.value()];
|
|
159
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
139
160
|
}
|
|
140
161
|
});
|
|
141
162
|
});
|
|
142
163
|
};
|
|
143
|
-
return
|
|
164
|
+
return ManageUserRoleApi;
|
|
144
165
|
}(runtime.BaseAPI));
|
|
145
|
-
exports.
|
|
166
|
+
exports.ManageUserRoleApi = ManageUserRoleApi;
|
package/user/src/apis/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export * from './ManageUserBankAccountApi';
|
|
|
4
4
|
export * from './ManageUserDocumentApi';
|
|
5
5
|
export * from './ManageUserFavoriteLaboratoryStoreApi';
|
|
6
6
|
export * from './ManageUserRestrictionApi';
|
|
7
|
+
export * from './ManageUserRoleApi';
|
|
7
8
|
export * from './ManageUserRuleApi';
|
|
8
9
|
export * from './ManageUserSocialNetworksApi';
|
|
9
10
|
export * from './ManageUserTransportApi';
|
package/user/src/apis/index.js
CHANGED
|
@@ -22,6 +22,7 @@ __exportStar(require("./ManageUserBankAccountApi"), exports);
|
|
|
22
22
|
__exportStar(require("./ManageUserDocumentApi"), exports);
|
|
23
23
|
__exportStar(require("./ManageUserFavoriteLaboratoryStoreApi"), exports);
|
|
24
24
|
__exportStar(require("./ManageUserRestrictionApi"), exports);
|
|
25
|
+
__exportStar(require("./ManageUserRoleApi"), exports);
|
|
25
26
|
__exportStar(require("./ManageUserRuleApi"), exports);
|
|
26
27
|
__exportStar(require("./ManageUserSocialNetworksApi"), exports);
|
|
27
28
|
__exportStar(require("./ManageUserTransportApi"), exports);
|
|
@@ -61,7 +61,6 @@ export declare const NotificationTypeId: {
|
|
|
61
61
|
readonly CLIENT_BADGE_RECEIVED: "CLIENT_BADGE_RECEIVED";
|
|
62
62
|
readonly CLIENT_BADGE_LOST: "CLIENT_BADGE_LOST";
|
|
63
63
|
readonly CLIENT_BADGE_INCENTIVE: "CLIENT_BADGE_INCENTIVE";
|
|
64
|
-
readonly CLIENT_ENROLLMENT_REQUIRED: "CLIENT_ENROLLMENT_REQUIRED";
|
|
65
64
|
};
|
|
66
65
|
export declare type NotificationTypeId = typeof NotificationTypeId[keyof typeof NotificationTypeId];
|
|
67
66
|
export declare function instanceOfNotificationTypeId(value: any): boolean;
|
|
@@ -65,8 +65,7 @@ exports.NotificationTypeId = {
|
|
|
65
65
|
REQUEST_FOR_ORDER_INVOICE: 'REQUEST_FOR_ORDER_INVOICE',
|
|
66
66
|
CLIENT_BADGE_RECEIVED: 'CLIENT_BADGE_RECEIVED',
|
|
67
67
|
CLIENT_BADGE_LOST: 'CLIENT_BADGE_LOST',
|
|
68
|
-
CLIENT_BADGE_INCENTIVE: 'CLIENT_BADGE_INCENTIVE'
|
|
69
|
-
CLIENT_ENROLLMENT_REQUIRED: 'CLIENT_ENROLLMENT_REQUIRED'
|
|
68
|
+
CLIENT_BADGE_INCENTIVE: 'CLIENT_BADGE_INCENTIVE'
|
|
70
69
|
};
|
|
71
70
|
function instanceOfNotificationTypeId(value) {
|
|
72
71
|
for (var key in exports.NotificationTypeId) {
|
|
@@ -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 * `CODE024` - Image missing
|
|
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 * `MESSAGE024` - Image missing
|
|
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
|
readonly CODE024: "CODE024";
|
|
62
61
|
};
|
|
63
62
|
export declare type RestErrorCodeEnum = typeof RestErrorCodeEnum[keyof typeof RestErrorCodeEnum];
|
|
@@ -88,7 +87,6 @@ export declare const RestErrorMessageEnum: {
|
|
|
88
87
|
readonly MESSAGE020: "ETag do not match";
|
|
89
88
|
readonly MESSAGE021: "Missing informations for Offisante subscription";
|
|
90
89
|
readonly MESSAGE022: "Disabled feature";
|
|
91
|
-
readonly MESSAGE023: "Invalid Sca Enrollment status";
|
|
92
90
|
readonly MESSAGE024: "Image missing";
|
|
93
91
|
};
|
|
94
92
|
export declare type RestErrorMessageEnum = typeof RestErrorMessageEnum[keyof typeof RestErrorMessageEnum];
|