@lcdp/api-react-rest-client 2.13.3-LDS-4475-mangopay-sca.15925219335 → 2.13.3-develop.15531521700
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 -6
- package/auth/src/models/RestError.js +2 -6
- package/catalog/src/models/RestError.d.ts +2 -6
- package/catalog/src/models/RestError.js +2 -6
- package/configuration/src/models/RestError.d.ts +2 -6
- package/configuration/src/models/RestError.js +2 -6
- package/content/src/models/RestError.d.ts +2 -6
- package/content/src/models/RestError.js +2 -6
- package/favorite/src/models/RestError.d.ts +2 -6
- package/favorite/src/models/RestError.js +2 -6
- 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 -6
- package/inventory/src/models/RestError.js +2 -6
- package/invoice/src/models/RestError.d.ts +2 -6
- package/invoice/src/models/RestError.js +2 -6
- package/laboratory-store/src/models/RestError.d.ts +2 -6
- package/laboratory-store/src/models/RestError.js +2 -6
- package/lexicon/src/models/RestError.d.ts +2 -6
- package/lexicon/src/models/RestError.js +2 -6
- package/litigation/src/models/RestError.d.ts +2 -6
- package/litigation/src/models/RestError.js +2 -6
- package/mangopay-hook/src/models/RestError.d.ts +2 -6
- package/mangopay-hook/src/models/RestError.js +2 -6
- 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 -6
- package/notification/src/models/RestError.js +2 -6
- package/order/src/models/RestError.d.ts +2 -6
- package/order/src/models/RestError.js +2 -6
- package/package.json +1 -1
- package/product/src/models/RestError.d.ts +2 -6
- package/product/src/models/RestError.js +2 -6
- package/pub/src/models/PubCreationParameters.d.ts +13 -0
- package/pub/src/models/PubCreationParameters.js +7 -0
- package/pub/src/models/RestError.d.ts +2 -6
- package/pub/src/models/RestError.js +2 -6
- package/rfx/src/models/RestError.d.ts +2 -6
- package/rfx/src/models/RestError.js +2 -6
- package/sale-offer/src/models/RestError.d.ts +2 -6
- package/sale-offer/src/models/RestError.js +2 -6
- package/servant/src/models/RestError.d.ts +2 -6
- package/servant/src/models/RestError.js +2 -6
- package/shipment/src/models/RestError.d.ts +2 -6
- package/shipment/src/models/RestError.js +2 -6
- package/shopping-cart/src/models/RestError.d.ts +2 -6
- package/shopping-cart/src/models/RestError.js +2 -6
- package/smuggler/src/models/RestError.d.ts +2 -6
- package/smuggler/src/models/RestError.js +2 -6
- package/statistic/src/models/RestError.d.ts +2 -6
- package/statistic/src/models/RestError.js +2 -6
- package/subscription/src/models/RestError.d.ts +2 -6
- package/subscription/src/models/RestError.js +2 -6
- package/third-party/src/models/RestError.d.ts +2 -6
- package/third-party/src/models/RestError.js +2 -6
- 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 -6
- package/ubo/src/models/RestError.js +2 -6
- 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 -6
- package/user/src/models/RestError.js +2 -6
- 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 -6
- package/wish/src/models/RestError.js +2 -6
- 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
|
@@ -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
|
|
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,8 +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
|
-
readonly CODE024: "CODE024";
|
|
62
60
|
};
|
|
63
61
|
export declare type RestErrorCodeEnum = typeof RestErrorCodeEnum[keyof typeof RestErrorCodeEnum];
|
|
64
62
|
/**
|
|
@@ -88,8 +86,6 @@ export declare const RestErrorMessageEnum: {
|
|
|
88
86
|
readonly MESSAGE020: "ETag do not match";
|
|
89
87
|
readonly MESSAGE021: "Missing informations for Offisante subscription";
|
|
90
88
|
readonly MESSAGE022: "Disabled feature";
|
|
91
|
-
readonly MESSAGE023: "Invalid Sca Enrollment status";
|
|
92
|
-
readonly MESSAGE024: "Image missing";
|
|
93
89
|
};
|
|
94
90
|
export declare type RestErrorMessageEnum = typeof RestErrorMessageEnum[keyof typeof RestErrorMessageEnum];
|
|
95
91
|
/**
|
|
@@ -40,9 +40,7 @@ exports.RestErrorCodeEnum = {
|
|
|
40
40
|
CODE019: 'CODE019',
|
|
41
41
|
CODE020: 'CODE020',
|
|
42
42
|
CODE021: 'CODE021',
|
|
43
|
-
CODE022: 'CODE022'
|
|
44
|
-
CODE023: 'CODE023',
|
|
45
|
-
CODE024: 'CODE024'
|
|
43
|
+
CODE022: 'CODE022'
|
|
46
44
|
};
|
|
47
45
|
/**
|
|
48
46
|
* @export
|
|
@@ -70,9 +68,7 @@ exports.RestErrorMessageEnum = {
|
|
|
70
68
|
MESSAGE019: 'Unable to generate session from disposableToken for admin users',
|
|
71
69
|
MESSAGE020: 'ETag do not match',
|
|
72
70
|
MESSAGE021: 'Missing informations for Offisante subscription',
|
|
73
|
-
MESSAGE022: 'Disabled feature'
|
|
74
|
-
MESSAGE023: 'Invalid Sca Enrollment status',
|
|
75
|
-
MESSAGE024: 'Image missing'
|
|
71
|
+
MESSAGE022: 'Disabled feature'
|
|
76
72
|
};
|
|
77
73
|
/**
|
|
78
74
|
* Check if a given object implements the RestError interface.
|
|
@@ -17,7 +17,6 @@ import type { UserMangopayTarget } from './UserMangopayTarget';
|
|
|
17
17
|
import type { UserDelegatedServices } from './UserDelegatedServices';
|
|
18
18
|
import type { HttpLink } from './HttpLink';
|
|
19
19
|
import type { Gender } from './Gender';
|
|
20
|
-
import type { ScaEnrollmentStatus } from './ScaEnrollmentStatus';
|
|
21
20
|
import type { UserThreads } from './UserThreads';
|
|
22
21
|
import type { UserWallets } from './UserWallets';
|
|
23
22
|
import type { UserRole } from './UserRole';
|
|
@@ -25,7 +24,7 @@ import type { KycLevel } from './KycLevel';
|
|
|
25
24
|
import type { UserJournal } from './UserJournal';
|
|
26
25
|
/**
|
|
27
26
|
* Fields :
|
|
28
|
-
* - bankAccount
|
|
27
|
+
* - bankAccount can be null if the user do not have any bank account yet
|
|
29
28
|
*
|
|
30
29
|
* @export
|
|
31
30
|
* @interface User
|
|
@@ -307,12 +306,6 @@ export interface User {
|
|
|
307
306
|
* @memberof User
|
|
308
307
|
*/
|
|
309
308
|
statistic: UserStatisticLink | null;
|
|
310
|
-
/**
|
|
311
|
-
*
|
|
312
|
-
* @type {ScaEnrollmentStatus}
|
|
313
|
-
* @memberof User
|
|
314
|
-
*/
|
|
315
|
-
scaEnrollmentStatus?: ScaEnrollmentStatus;
|
|
316
309
|
}
|
|
317
310
|
/**
|
|
318
311
|
* Check if a given object implements the User interface.
|
package/user/src/models/User.js
CHANGED
|
@@ -23,7 +23,6 @@ var UserMangopayTarget_1 = require("./UserMangopayTarget");
|
|
|
23
23
|
var UserDelegatedServices_1 = require("./UserDelegatedServices");
|
|
24
24
|
var HttpLink_1 = require("./HttpLink");
|
|
25
25
|
var Gender_1 = require("./Gender");
|
|
26
|
-
var ScaEnrollmentStatus_1 = require("./ScaEnrollmentStatus");
|
|
27
26
|
var UserThreads_1 = require("./UserThreads");
|
|
28
27
|
var UserWallets_1 = require("./UserWallets");
|
|
29
28
|
var UserRole_1 = require("./UserRole");
|
|
@@ -109,7 +108,6 @@ function UserFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
109
108
|
'journal': (json['journal'] === null || json['journal'] === undefined) ? json['journal'] : (0, UserJournal_1.UserJournalFromJSON)(json['journal']),
|
|
110
109
|
'badges': json['badges'],
|
|
111
110
|
'statistic': (json['statistic'] === null || json['statistic'] === undefined) ? json['statistic'] : (0, UserStatisticLink_1.UserStatisticLinkFromJSON)(json['statistic']),
|
|
112
|
-
'scaEnrollmentStatus': (json['scaEnrollmentStatus'] === null || json['scaEnrollmentStatus'] === undefined) ? json['scaEnrollmentStatus'] : (0, ScaEnrollmentStatus_1.ScaEnrollmentStatusFromJSON)(json['scaEnrollmentStatus']),
|
|
113
111
|
};
|
|
114
112
|
}
|
|
115
113
|
exports.UserFromJSONTyped = UserFromJSONTyped;
|
|
@@ -164,7 +162,6 @@ function UserToJSON(value) {
|
|
|
164
162
|
'journal': (0, UserJournal_1.UserJournalToJSON)(value['journal']),
|
|
165
163
|
'badges': value['badges'],
|
|
166
164
|
'statistic': (0, UserStatisticLink_1.UserStatisticLinkToJSON)(value['statistic']),
|
|
167
|
-
'scaEnrollmentStatus': (0, ScaEnrollmentStatus_1.ScaEnrollmentStatusToJSON)(value['scaEnrollmentStatus']),
|
|
168
165
|
};
|
|
169
166
|
}
|
|
170
167
|
exports.UserToJSON = UserToJSON;
|
|
@@ -15,6 +15,12 @@
|
|
|
15
15
|
* @interface UserBankAccountCreationParameters
|
|
16
16
|
*/
|
|
17
17
|
export interface UserBankAccountCreationParameters {
|
|
18
|
+
/**
|
|
19
|
+
* bic
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof UserBankAccountCreationParameters
|
|
22
|
+
*/
|
|
23
|
+
bic?: string;
|
|
18
24
|
/**
|
|
19
25
|
* iban
|
|
20
26
|
* @type {string}
|
|
@@ -30,6 +30,7 @@ function UserBankAccountCreationParametersFromJSONTyped(json, ignoreDiscriminato
|
|
|
30
30
|
return json;
|
|
31
31
|
}
|
|
32
32
|
return {
|
|
33
|
+
'bic': json['bic'],
|
|
33
34
|
'iban': json['iban'],
|
|
34
35
|
};
|
|
35
36
|
}
|
|
@@ -39,6 +40,7 @@ function UserBankAccountCreationParametersToJSON(value) {
|
|
|
39
40
|
return value;
|
|
40
41
|
}
|
|
41
42
|
return {
|
|
43
|
+
'bic': value['bic'],
|
|
42
44
|
'iban': value['iban'],
|
|
43
45
|
};
|
|
44
46
|
}
|
|
@@ -27,23 +27,7 @@ export interface UserBankAccountLink {
|
|
|
27
27
|
* @memberof UserBankAccountLink
|
|
28
28
|
*/
|
|
29
29
|
id?: string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof UserBankAccountLink
|
|
34
|
-
*/
|
|
35
|
-
status?: UserBankAccountLinkStatusEnum;
|
|
36
30
|
}
|
|
37
|
-
/**
|
|
38
|
-
* @export
|
|
39
|
-
*/
|
|
40
|
-
export declare const UserBankAccountLinkStatusEnum: {
|
|
41
|
-
readonly PENDING: "PENDING";
|
|
42
|
-
readonly ACTIVE: "ACTIVE";
|
|
43
|
-
readonly DEACTIVATED: "DEACTIVATED";
|
|
44
|
-
readonly CANCELED: "CANCELED";
|
|
45
|
-
};
|
|
46
|
-
export declare type UserBankAccountLinkStatusEnum = typeof UserBankAccountLinkStatusEnum[keyof typeof UserBankAccountLinkStatusEnum];
|
|
47
31
|
/**
|
|
48
32
|
* Check if a given object implements the UserBankAccountLink interface.
|
|
49
33
|
*/
|
|
@@ -13,16 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.UserBankAccountLinkToJSON = exports.UserBankAccountLinkFromJSONTyped = exports.UserBankAccountLinkFromJSON = exports.instanceOfUserBankAccountLink =
|
|
17
|
-
/**
|
|
18
|
-
* @export
|
|
19
|
-
*/
|
|
20
|
-
exports.UserBankAccountLinkStatusEnum = {
|
|
21
|
-
PENDING: 'PENDING',
|
|
22
|
-
ACTIVE: 'ACTIVE',
|
|
23
|
-
DEACTIVATED: 'DEACTIVATED',
|
|
24
|
-
CANCELED: 'CANCELED'
|
|
25
|
-
};
|
|
16
|
+
exports.UserBankAccountLinkToJSON = exports.UserBankAccountLinkFromJSONTyped = exports.UserBankAccountLinkFromJSON = exports.instanceOfUserBankAccountLink = void 0;
|
|
26
17
|
/**
|
|
27
18
|
* Check if a given object implements the UserBankAccountLink interface.
|
|
28
19
|
*/
|
|
@@ -43,7 +34,6 @@ function UserBankAccountLinkFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
43
34
|
return {
|
|
44
35
|
'href': json['href'],
|
|
45
36
|
'id': json['id'],
|
|
46
|
-
'status': json['status'],
|
|
47
37
|
};
|
|
48
38
|
}
|
|
49
39
|
exports.UserBankAccountLinkFromJSONTyped = UserBankAccountLinkFromJSONTyped;
|
|
@@ -54,7 +44,6 @@ function UserBankAccountLinkToJSON(value) {
|
|
|
54
44
|
return {
|
|
55
45
|
'href': value['href'],
|
|
56
46
|
'id': value['id'],
|
|
57
|
-
'status': value['status'],
|
|
58
47
|
};
|
|
59
48
|
}
|
|
60
49
|
exports.UserBankAccountLinkToJSON = UserBankAccountLinkToJSON;
|
|
@@ -21,14 +21,6 @@ export interface UserJournal {
|
|
|
21
21
|
* @memberof UserJournal
|
|
22
22
|
*/
|
|
23
23
|
archivedSaleOfferPageViewAt?: Date;
|
|
24
|
-
/**
|
|
25
|
-
* Deadline indicating that the user with the ACTIVE status on Mangopay (ScaEnrollmentStatus) pre-SCA is not required to enroll.
|
|
26
|
-
* If this user starts the enrollment, this date is removed.
|
|
27
|
-
*
|
|
28
|
-
* @type {Date}
|
|
29
|
-
* @memberof UserJournal
|
|
30
|
-
*/
|
|
31
|
-
scaGracePeriod?: Date;
|
|
32
24
|
}
|
|
33
25
|
/**
|
|
34
26
|
* Check if a given object implements the UserJournal interface.
|
|
@@ -31,7 +31,6 @@ function UserJournalFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
31
31
|
}
|
|
32
32
|
return {
|
|
33
33
|
'archivedSaleOfferPageViewAt': (json['archivedSaleOfferPageViewAt'] === null || json['archivedSaleOfferPageViewAt'] === undefined) ? json['archivedSaleOfferPageViewAt'] : new Date(json['archivedSaleOfferPageViewAt']),
|
|
34
|
-
'scaGracePeriod': (json['scaGracePeriod'] === null || json['scaGracePeriod'] === undefined) ? json['scaGracePeriod'] : new Date(json['scaGracePeriod']),
|
|
35
34
|
};
|
|
36
35
|
}
|
|
37
36
|
exports.UserJournalFromJSONTyped = UserJournalFromJSONTyped;
|
|
@@ -41,7 +40,6 @@ function UserJournalToJSON(value) {
|
|
|
41
40
|
}
|
|
42
41
|
return {
|
|
43
42
|
'archivedSaleOfferPageViewAt': (value['archivedSaleOfferPageViewAt'] === null || value['archivedSaleOfferPageViewAt'] === undefined) ? value['archivedSaleOfferPageViewAt'] : (value['archivedSaleOfferPageViewAt']).toISOString(),
|
|
44
|
-
'scaGracePeriod': (value['scaGracePeriod'] === null || value['scaGracePeriod'] === undefined) ? value['scaGracePeriod'] : (value['scaGracePeriod']).toISOString(),
|
|
45
43
|
};
|
|
46
44
|
}
|
|
47
45
|
exports.UserJournalToJSON = UserJournalToJSON;
|
|
@@ -11,10 +11,9 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { UserCompany } from './UserCompany';
|
|
13
13
|
import type { Address } from './Address';
|
|
14
|
-
import type { UserRole } from './UserRole';
|
|
15
14
|
import type { UserDelegatedServices } from './UserDelegatedServices';
|
|
16
|
-
import type { UserJournalUpdateParameters } from './UserJournalUpdateParameters';
|
|
17
15
|
import type { Gender } from './Gender';
|
|
16
|
+
import type { UserJournal } from './UserJournal';
|
|
18
17
|
/**
|
|
19
18
|
*
|
|
20
19
|
* @export
|
|
@@ -69,12 +68,6 @@ export interface UserUpdateParameters {
|
|
|
69
68
|
* @memberof UserUpdateParameters
|
|
70
69
|
*/
|
|
71
70
|
phone?: string;
|
|
72
|
-
/**
|
|
73
|
-
*
|
|
74
|
-
* @type {UserRole}
|
|
75
|
-
* @memberof UserUpdateParameters
|
|
76
|
-
*/
|
|
77
|
-
role?: UserRole;
|
|
78
71
|
/**
|
|
79
72
|
*
|
|
80
73
|
* @type {string}
|
|
@@ -143,10 +136,10 @@ export interface UserUpdateParameters {
|
|
|
143
136
|
isMangopaySynced?: boolean;
|
|
144
137
|
/**
|
|
145
138
|
*
|
|
146
|
-
* @type {
|
|
139
|
+
* @type {UserJournal}
|
|
147
140
|
* @memberof UserUpdateParameters
|
|
148
141
|
*/
|
|
149
|
-
journal?:
|
|
142
|
+
journal?: UserJournal;
|
|
150
143
|
}
|
|
151
144
|
/**
|
|
152
145
|
* Check if a given object implements the UserUpdateParameters interface.
|
|
@@ -17,10 +17,9 @@ exports.UserUpdateParametersToJSON = exports.UserUpdateParametersFromJSONTyped =
|
|
|
17
17
|
var runtime_1 = require("../runtime");
|
|
18
18
|
var UserCompany_1 = require("./UserCompany");
|
|
19
19
|
var Address_1 = require("./Address");
|
|
20
|
-
var UserRole_1 = require("./UserRole");
|
|
21
20
|
var UserDelegatedServices_1 = require("./UserDelegatedServices");
|
|
22
|
-
var UserJournalUpdateParameters_1 = require("./UserJournalUpdateParameters");
|
|
23
21
|
var Gender_1 = require("./Gender");
|
|
22
|
+
var UserJournal_1 = require("./UserJournal");
|
|
24
23
|
/**
|
|
25
24
|
* Check if a given object implements the UserUpdateParameters interface.
|
|
26
25
|
*/
|
|
@@ -45,7 +44,6 @@ function UserUpdateParametersFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
44
|
'email': json['email'],
|
|
46
45
|
'nickname': json['nickname'],
|
|
47
46
|
'phone': json['phone'],
|
|
48
|
-
'role': (json['role'] === null || json['role'] === undefined) ? json['role'] : (0, UserRole_1.UserRoleFromJSON)(json['role']),
|
|
49
47
|
'fax': json['fax'],
|
|
50
48
|
'pollQuestion': json['pollQuestion'],
|
|
51
49
|
'shippingAddress': (json['shippingAddress'] === null || json['shippingAddress'] === undefined) ? json['shippingAddress'] : (0, Address_1.AddressFromJSON)(json['shippingAddress']),
|
|
@@ -57,7 +55,7 @@ function UserUpdateParametersFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
57
55
|
'delegatedServices': (json['delegatedServices'] === null || json['delegatedServices'] === undefined) ? json['delegatedServices'] : (0, UserDelegatedServices_1.UserDelegatedServicesFromJSON)(json['delegatedServices']),
|
|
58
56
|
'tags': json['tags'],
|
|
59
57
|
'isMangopaySynced': json['isMangopaySynced'],
|
|
60
|
-
'journal': (json['journal'] === null || json['journal'] === undefined) ? json['journal'] : (0,
|
|
58
|
+
'journal': (json['journal'] === null || json['journal'] === undefined) ? json['journal'] : (0, UserJournal_1.UserJournalFromJSON)(json['journal']),
|
|
61
59
|
};
|
|
62
60
|
}
|
|
63
61
|
exports.UserUpdateParametersFromJSONTyped = UserUpdateParametersFromJSONTyped;
|
|
@@ -74,7 +72,6 @@ function UserUpdateParametersToJSON(value) {
|
|
|
74
72
|
'email': value['email'],
|
|
75
73
|
'nickname': value['nickname'],
|
|
76
74
|
'phone': value['phone'],
|
|
77
|
-
'role': (0, UserRole_1.UserRoleToJSON)(value['role']),
|
|
78
75
|
'fax': value['fax'],
|
|
79
76
|
'pollQuestion': value['pollQuestion'],
|
|
80
77
|
'shippingAddress': (0, Address_1.AddressToJSON)(value['shippingAddress']),
|
|
@@ -86,7 +83,7 @@ function UserUpdateParametersToJSON(value) {
|
|
|
86
83
|
'delegatedServices': (0, UserDelegatedServices_1.UserDelegatedServicesToJSON)(value['delegatedServices']),
|
|
87
84
|
'tags': value['tags'],
|
|
88
85
|
'isMangopaySynced': value['isMangopaySynced'],
|
|
89
|
-
'journal': (0,
|
|
86
|
+
'journal': (0, UserJournal_1.UserJournalToJSON)(value['journal']),
|
|
90
87
|
};
|
|
91
88
|
}
|
|
92
89
|
exports.UserUpdateParametersToJSON = UserUpdateParametersToJSON;
|
|
@@ -13,7 +13,6 @@ export * from './PasswordResetCompletionParameters';
|
|
|
13
13
|
export * from './PasswordResetCreationParameters';
|
|
14
14
|
export * from './ProductTypeLink';
|
|
15
15
|
export * from './RestError';
|
|
16
|
-
export * from './ScaEnrollmentStatus';
|
|
17
16
|
export * from './SomeonePasswordUpdateParameters';
|
|
18
17
|
export * from './ThreadLink';
|
|
19
18
|
export * from './Transport';
|
|
@@ -32,7 +31,6 @@ export * from './UserFavoriteLaboratoryStoreLink';
|
|
|
32
31
|
export * from './UserFeature';
|
|
33
32
|
export * from './UserForbiddenSellerLink';
|
|
34
33
|
export * from './UserJournal';
|
|
35
|
-
export * from './UserJournalUpdateParameters';
|
|
36
34
|
export * from './UserMangopayTarget';
|
|
37
35
|
export * from './UserRestrictedFeatureCreationParameter';
|
|
38
36
|
export * from './UserRestrictedNotificationTypeCreationParameter';
|
package/user/src/models/index.js
CHANGED
|
@@ -31,7 +31,6 @@ __exportStar(require("./PasswordResetCompletionParameters"), exports);
|
|
|
31
31
|
__exportStar(require("./PasswordResetCreationParameters"), exports);
|
|
32
32
|
__exportStar(require("./ProductTypeLink"), exports);
|
|
33
33
|
__exportStar(require("./RestError"), exports);
|
|
34
|
-
__exportStar(require("./ScaEnrollmentStatus"), exports);
|
|
35
34
|
__exportStar(require("./SomeonePasswordUpdateParameters"), exports);
|
|
36
35
|
__exportStar(require("./ThreadLink"), exports);
|
|
37
36
|
__exportStar(require("./Transport"), exports);
|
|
@@ -50,7 +49,6 @@ __exportStar(require("./UserFavoriteLaboratoryStoreLink"), exports);
|
|
|
50
49
|
__exportStar(require("./UserFeature"), exports);
|
|
51
50
|
__exportStar(require("./UserForbiddenSellerLink"), exports);
|
|
52
51
|
__exportStar(require("./UserJournal"), exports);
|
|
53
|
-
__exportStar(require("./UserJournalUpdateParameters"), exports);
|
|
54
52
|
__exportStar(require("./UserMangopayTarget"), exports);
|
|
55
53
|
__exportStar(require("./UserRestrictedFeatureCreationParameter"), exports);
|
|
56
54
|
__exportStar(require("./UserRestrictedNotificationTypeCreationParameter"), exports);
|
|
@@ -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,8 +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
|
-
readonly CODE024: "CODE024";
|
|
62
60
|
};
|
|
63
61
|
export declare type RestErrorCodeEnum = typeof RestErrorCodeEnum[keyof typeof RestErrorCodeEnum];
|
|
64
62
|
/**
|
|
@@ -88,8 +86,6 @@ export declare const RestErrorMessageEnum: {
|
|
|
88
86
|
readonly MESSAGE020: "ETag do not match";
|
|
89
87
|
readonly MESSAGE021: "Missing informations for Offisante subscription";
|
|
90
88
|
readonly MESSAGE022: "Disabled feature";
|
|
91
|
-
readonly MESSAGE023: "Invalid Sca Enrollment status";
|
|
92
|
-
readonly MESSAGE024: "Image missing";
|
|
93
89
|
};
|
|
94
90
|
export declare type RestErrorMessageEnum = typeof RestErrorMessageEnum[keyof typeof RestErrorMessageEnum];
|
|
95
91
|
/**
|
|
@@ -40,9 +40,7 @@ exports.RestErrorCodeEnum = {
|
|
|
40
40
|
CODE019: 'CODE019',
|
|
41
41
|
CODE020: 'CODE020',
|
|
42
42
|
CODE021: 'CODE021',
|
|
43
|
-
CODE022: 'CODE022'
|
|
44
|
-
CODE023: 'CODE023',
|
|
45
|
-
CODE024: 'CODE024'
|
|
43
|
+
CODE022: 'CODE022'
|
|
46
44
|
};
|
|
47
45
|
/**
|
|
48
46
|
* @export
|
|
@@ -70,9 +68,7 @@ exports.RestErrorMessageEnum = {
|
|
|
70
68
|
MESSAGE019: 'Unable to generate session from disposableToken for admin users',
|
|
71
69
|
MESSAGE020: 'ETag do not match',
|
|
72
70
|
MESSAGE021: 'Missing informations for Offisante subscription',
|
|
73
|
-
MESSAGE022: 'Disabled feature'
|
|
74
|
-
MESSAGE023: 'Invalid Sca Enrollment status',
|
|
75
|
-
MESSAGE024: 'Image missing'
|
|
71
|
+
MESSAGE022: 'Disabled feature'
|
|
76
72
|
};
|
|
77
73
|
/**
|
|
78
74
|
* Check if a given object implements the RestError interface.
|
|
@@ -1,28 +0,0 @@
|
|
|
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 * as runtime from '../runtime';
|
|
13
|
-
export interface CreateInventoryOfferRefreshRequest {
|
|
14
|
-
inventoryId: number;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
*/
|
|
19
|
-
export declare class ManageOfferSynchronizationApi extends runtime.BaseAPI {
|
|
20
|
-
/**
|
|
21
|
-
* Create inventory offer refresh
|
|
22
|
-
*/
|
|
23
|
-
createInventoryOfferRefreshRaw(requestParameters: CreateInventoryOfferRefreshRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
24
|
-
/**
|
|
25
|
-
* Create inventory offer refresh
|
|
26
|
-
*/
|
|
27
|
-
createInventoryOfferRefresh(requestParameters: CreateInventoryOfferRefreshRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
28
|
-
}
|