@lcdp/api-react-rest-client 2.13.2-LDS-4475-mangopay-sca.15191366491 → 2.13.2-LDS-4537-ubodeclaration-address.region-m.15250241363
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/auth/src/models/RestError.d.ts +2 -4
- package/auth/src/models/RestError.js +2 -4
- package/catalog/src/models/RestError.d.ts +2 -4
- package/catalog/src/models/RestError.js +2 -4
- package/configuration/src/models/RestError.d.ts +2 -4
- package/configuration/src/models/RestError.js +2 -4
- package/content/src/models/RestError.d.ts +2 -4
- package/content/src/models/RestError.js +2 -4
- package/favorite/src/models/RestError.d.ts +2 -4
- package/favorite/src/models/RestError.js +2 -4
- package/inventory/src/apis/ManageInventorySynchronizationApi.d.ts +2 -0
- package/inventory/src/apis/ManageInventorySynchronizationApi.js +6 -0
- package/inventory/src/apis/SearchInventorySynchronizationApi.d.ts +49 -0
- package/inventory/src/apis/SearchInventorySynchronizationApi.js +266 -0
- package/inventory/src/apis/index.d.ts +1 -0
- package/inventory/src/apis/index.js +1 -0
- package/inventory/src/models/ActiveProduct.d.ts +0 -7
- package/inventory/src/models/ActiveProduct.js +0 -3
- package/inventory/src/models/PaginatedIdentifiedSynchronization.d.ts +39 -0
- package/inventory/src/models/PaginatedIdentifiedSynchronization.js +53 -0
- package/inventory/src/models/RestError.d.ts +2 -4
- package/inventory/src/models/RestError.js +2 -4
- package/inventory/src/models/index.d.ts +1 -0
- package/inventory/src/models/index.js +1 -0
- package/invoice/src/models/RestError.d.ts +2 -4
- package/invoice/src/models/RestError.js +2 -4
- package/laboratory-store/src/models/RestError.d.ts +2 -4
- package/laboratory-store/src/models/RestError.js +2 -4
- package/lexicon/src/models/RestError.d.ts +2 -4
- package/lexicon/src/models/RestError.js +2 -4
- package/litigation/src/models/RestError.d.ts +2 -4
- package/litigation/src/models/RestError.js +2 -4
- package/mangopay-hook/src/models/RestError.d.ts +2 -4
- package/mangopay-hook/src/models/RestError.js +2 -4
- package/notification/src/models/NotificationTypeId.d.ts +0 -1
- package/notification/src/models/NotificationTypeId.js +1 -2
- package/notification/src/models/RestError.d.ts +2 -4
- package/notification/src/models/RestError.js +2 -4
- package/order/src/models/RestError.d.ts +2 -4
- package/order/src/models/RestError.js +2 -4
- package/package.json +1 -1
- package/product/src/models/RestError.d.ts +2 -4
- package/product/src/models/RestError.js +2 -4
- package/pub/src/models/RestError.d.ts +2 -4
- package/pub/src/models/RestError.js +2 -4
- package/rfx/src/models/RestError.d.ts +2 -4
- package/rfx/src/models/RestError.js +2 -4
- package/sale-offer/src/models/RestError.d.ts +2 -4
- package/sale-offer/src/models/RestError.js +2 -4
- package/servant/src/models/RestError.d.ts +2 -4
- package/servant/src/models/RestError.js +2 -4
- package/shipment/src/models/RestError.d.ts +2 -4
- package/shipment/src/models/RestError.js +2 -4
- package/shopping-cart/src/models/RestError.d.ts +2 -4
- package/shopping-cart/src/models/RestError.js +2 -4
- package/smuggler/src/models/RestError.d.ts +2 -4
- package/smuggler/src/models/RestError.js +2 -4
- package/statistic/src/models/RestError.d.ts +2 -4
- package/statistic/src/models/RestError.js +2 -4
- package/subscription/src/models/RestError.d.ts +2 -4
- package/subscription/src/models/RestError.js +2 -4
- package/third-party/src/models/RestError.d.ts +2 -4
- package/third-party/src/models/RestError.js +2 -4
- package/ubo/src/apis/ManageUboDeclarationApi.d.ts +2 -2
- package/ubo/src/apis/ManageUboDeclarationApi.js +2 -2
- package/ubo/src/models/Address.d.ts +1 -1
- package/ubo/src/models/Address.js +0 -2
- package/ubo/src/models/RestError.d.ts +2 -4
- package/ubo/src/models/RestError.js +2 -4
- 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/models/NotificationTypeId.d.ts +0 -1
- package/user/src/models/NotificationTypeId.js +1 -2
- package/user/src/models/RestError.d.ts +2 -4
- package/user/src/models/RestError.js +2 -4
- package/user/src/models/User.d.ts +0 -7
- package/user/src/models/User.js +0 -3
- package/user/src/models/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 -3
- package/user/src/models/UserUpdateParameters.js +3 -3
- 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 +2 -4
- 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,266 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* lcdp-pharmaide-service
|
|
6
|
+
* This is the REST API of LCDP products
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __extends = (this && this.__extends) || (function () {
|
|
16
|
+
var extendStatics = function (d, b) {
|
|
17
|
+
extendStatics = Object.setPrototypeOf ||
|
|
18
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
+
return extendStatics(d, b);
|
|
21
|
+
};
|
|
22
|
+
return function (d, b) {
|
|
23
|
+
if (typeof b !== "function" && b !== null)
|
|
24
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
+
extendStatics(d, b);
|
|
26
|
+
function __() { this.constructor = d; }
|
|
27
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
+
};
|
|
29
|
+
})();
|
|
30
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
31
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
32
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
33
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
34
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
35
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
36
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
40
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
41
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
42
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
43
|
+
function step(op) {
|
|
44
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
45
|
+
while (_) try {
|
|
46
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
47
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
48
|
+
switch (op[0]) {
|
|
49
|
+
case 0: case 1: t = op; break;
|
|
50
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
51
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
52
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
53
|
+
default:
|
|
54
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
55
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
56
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
57
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
58
|
+
if (t[2]) _.ops.pop();
|
|
59
|
+
_.trys.pop(); continue;
|
|
60
|
+
}
|
|
61
|
+
op = body.call(thisArg, _);
|
|
62
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
63
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
+
exports.SearchInventorySynchronizationApi = void 0;
|
|
68
|
+
var runtime = require("../runtime");
|
|
69
|
+
var index_1 = require("../models/index");
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
*/
|
|
73
|
+
var SearchInventorySynchronizationApi = /** @class */ (function (_super) {
|
|
74
|
+
__extends(SearchInventorySynchronizationApi, _super);
|
|
75
|
+
function SearchInventorySynchronizationApi() {
|
|
76
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Get synchronizations of the current user
|
|
80
|
+
*/
|
|
81
|
+
SearchInventorySynchronizationApi.prototype.getCurrentInventorySynchronizationsRaw = function (requestParameters, initOverrides) {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType, response_1;
|
|
84
|
+
return __generator(this, function (_c) {
|
|
85
|
+
switch (_c.label) {
|
|
86
|
+
case 0:
|
|
87
|
+
queryParameters = {};
|
|
88
|
+
if (requestParameters['idEq'] != null) {
|
|
89
|
+
queryParameters['id[eq]'] = requestParameters['idEq'];
|
|
90
|
+
}
|
|
91
|
+
if (requestParameters['modeEq'] != null) {
|
|
92
|
+
queryParameters['mode[eq]'] = requestParameters['modeEq'];
|
|
93
|
+
}
|
|
94
|
+
if (requestParameters['modeNeq'] != null) {
|
|
95
|
+
queryParameters['mode[neq]'] = requestParameters['modeNeq'];
|
|
96
|
+
}
|
|
97
|
+
if (requestParameters['p'] != null) {
|
|
98
|
+
queryParameters['p'] = requestParameters['p'];
|
|
99
|
+
}
|
|
100
|
+
if (requestParameters['pp'] != null) {
|
|
101
|
+
queryParameters['pp'] = requestParameters['pp'];
|
|
102
|
+
}
|
|
103
|
+
headerParameters = {};
|
|
104
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
105
|
+
_a = headerParameters;
|
|
106
|
+
_b = "x-api-key";
|
|
107
|
+
return [4 /*yield*/, this.configuration.apiKey("x-api-key")];
|
|
108
|
+
case 1:
|
|
109
|
+
_a[_b] = _c.sent(); // apiKeyAuth authentication
|
|
110
|
+
_c.label = 2;
|
|
111
|
+
case 2:
|
|
112
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
113
|
+
token = this.configuration.accessToken;
|
|
114
|
+
return [4 /*yield*/, token("bearerAuth", [])];
|
|
115
|
+
case 3:
|
|
116
|
+
tokenString = _c.sent();
|
|
117
|
+
if (tokenString) {
|
|
118
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
119
|
+
}
|
|
120
|
+
_c.label = 4;
|
|
121
|
+
case 4:
|
|
122
|
+
_c.trys.push([4, 6, , 7]);
|
|
123
|
+
return [4 /*yield*/, this.request({
|
|
124
|
+
path: "/inventories/me/synchronizations",
|
|
125
|
+
method: 'GET',
|
|
126
|
+
headers: headerParameters,
|
|
127
|
+
query: queryParameters,
|
|
128
|
+
}, initOverrides)];
|
|
129
|
+
case 5:
|
|
130
|
+
response = _c.sent();
|
|
131
|
+
contentType = response.headers.get("content-type");
|
|
132
|
+
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
133
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedIdentifiedSynchronizationFromJSON)(jsonValue); })];
|
|
134
|
+
}
|
|
135
|
+
else if (contentType && contentType.indexOf("text/plain") !== -1) {
|
|
136
|
+
return [2 /*return*/, new runtime.TextApiResponse(response)];
|
|
137
|
+
}
|
|
138
|
+
else {
|
|
139
|
+
// TODO : Better handling of others application types
|
|
140
|
+
return [2 /*return*/, new runtime.BlobWithMetaApiResponse(response)];
|
|
141
|
+
}
|
|
142
|
+
return [3 /*break*/, 7];
|
|
143
|
+
case 6:
|
|
144
|
+
response_1 = _c.sent();
|
|
145
|
+
console.debug(response_1);
|
|
146
|
+
throw response_1;
|
|
147
|
+
case 7: return [2 /*return*/];
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
});
|
|
151
|
+
};
|
|
152
|
+
/**
|
|
153
|
+
* Get synchronizations of the current user
|
|
154
|
+
*/
|
|
155
|
+
SearchInventorySynchronizationApi.prototype.getCurrentInventorySynchronizations = function (requestParameters, initOverrides) {
|
|
156
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
157
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
158
|
+
var response;
|
|
159
|
+
return __generator(this, function (_a) {
|
|
160
|
+
switch (_a.label) {
|
|
161
|
+
case 0: return [4 /*yield*/, this.getCurrentInventorySynchronizationsRaw(requestParameters, initOverrides)];
|
|
162
|
+
case 1:
|
|
163
|
+
response = _a.sent();
|
|
164
|
+
return [4 /*yield*/, response.value()];
|
|
165
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
});
|
|
169
|
+
};
|
|
170
|
+
/**
|
|
171
|
+
* Get synchronizations of the current user
|
|
172
|
+
*/
|
|
173
|
+
SearchInventorySynchronizationApi.prototype.getInventorySynchronizationsRaw = function (requestParameters, initOverrides) {
|
|
174
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
175
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType, response_2;
|
|
176
|
+
return __generator(this, function (_c) {
|
|
177
|
+
switch (_c.label) {
|
|
178
|
+
case 0:
|
|
179
|
+
if (requestParameters['inventoryId'] == null) {
|
|
180
|
+
throw new runtime.RequiredError('inventoryId', 'Required parameter "inventoryId" was null or undefined when calling getInventorySynchronizations().');
|
|
181
|
+
}
|
|
182
|
+
queryParameters = {};
|
|
183
|
+
if (requestParameters['idEq'] != null) {
|
|
184
|
+
queryParameters['id[eq]'] = requestParameters['idEq'];
|
|
185
|
+
}
|
|
186
|
+
if (requestParameters['modeEq'] != null) {
|
|
187
|
+
queryParameters['mode[eq]'] = requestParameters['modeEq'];
|
|
188
|
+
}
|
|
189
|
+
if (requestParameters['modeNeq'] != null) {
|
|
190
|
+
queryParameters['mode[neq]'] = requestParameters['modeNeq'];
|
|
191
|
+
}
|
|
192
|
+
if (requestParameters['p'] != null) {
|
|
193
|
+
queryParameters['p'] = requestParameters['p'];
|
|
194
|
+
}
|
|
195
|
+
if (requestParameters['pp'] != null) {
|
|
196
|
+
queryParameters['pp'] = requestParameters['pp'];
|
|
197
|
+
}
|
|
198
|
+
headerParameters = {};
|
|
199
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
200
|
+
_a = headerParameters;
|
|
201
|
+
_b = "x-api-key";
|
|
202
|
+
return [4 /*yield*/, this.configuration.apiKey("x-api-key")];
|
|
203
|
+
case 1:
|
|
204
|
+
_a[_b] = _c.sent(); // apiKeyAuth authentication
|
|
205
|
+
_c.label = 2;
|
|
206
|
+
case 2:
|
|
207
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
208
|
+
token = this.configuration.accessToken;
|
|
209
|
+
return [4 /*yield*/, token("bearerAuth", [])];
|
|
210
|
+
case 3:
|
|
211
|
+
tokenString = _c.sent();
|
|
212
|
+
if (tokenString) {
|
|
213
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
214
|
+
}
|
|
215
|
+
_c.label = 4;
|
|
216
|
+
case 4:
|
|
217
|
+
_c.trys.push([4, 6, , 7]);
|
|
218
|
+
return [4 /*yield*/, this.request({
|
|
219
|
+
path: "/inventories/{inventoryId}/synchronizations".replace("{".concat("inventoryId", "}"), encodeURIComponent(String(requestParameters['inventoryId']))),
|
|
220
|
+
method: 'GET',
|
|
221
|
+
headers: headerParameters,
|
|
222
|
+
query: queryParameters,
|
|
223
|
+
}, initOverrides)];
|
|
224
|
+
case 5:
|
|
225
|
+
response = _c.sent();
|
|
226
|
+
contentType = response.headers.get("content-type");
|
|
227
|
+
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
228
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedIdentifiedSynchronizationFromJSON)(jsonValue); })];
|
|
229
|
+
}
|
|
230
|
+
else if (contentType && contentType.indexOf("text/plain") !== -1) {
|
|
231
|
+
return [2 /*return*/, new runtime.TextApiResponse(response)];
|
|
232
|
+
}
|
|
233
|
+
else {
|
|
234
|
+
// TODO : Better handling of others application types
|
|
235
|
+
return [2 /*return*/, new runtime.BlobWithMetaApiResponse(response)];
|
|
236
|
+
}
|
|
237
|
+
return [3 /*break*/, 7];
|
|
238
|
+
case 6:
|
|
239
|
+
response_2 = _c.sent();
|
|
240
|
+
console.debug(response_2);
|
|
241
|
+
throw response_2;
|
|
242
|
+
case 7: return [2 /*return*/];
|
|
243
|
+
}
|
|
244
|
+
});
|
|
245
|
+
});
|
|
246
|
+
};
|
|
247
|
+
/**
|
|
248
|
+
* Get synchronizations of the current user
|
|
249
|
+
*/
|
|
250
|
+
SearchInventorySynchronizationApi.prototype.getInventorySynchronizations = function (requestParameters, initOverrides) {
|
|
251
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
252
|
+
var response;
|
|
253
|
+
return __generator(this, function (_a) {
|
|
254
|
+
switch (_a.label) {
|
|
255
|
+
case 0: return [4 /*yield*/, this.getInventorySynchronizationsRaw(requestParameters, initOverrides)];
|
|
256
|
+
case 1:
|
|
257
|
+
response = _a.sent();
|
|
258
|
+
return [4 /*yield*/, response.value()];
|
|
259
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
260
|
+
}
|
|
261
|
+
});
|
|
262
|
+
});
|
|
263
|
+
};
|
|
264
|
+
return SearchInventorySynchronizationApi;
|
|
265
|
+
}(runtime.BaseAPI));
|
|
266
|
+
exports.SearchInventorySynchronizationApi = SearchInventorySynchronizationApi;
|
|
@@ -19,3 +19,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
19
19
|
__exportStar(require("./ManageInventoryApi"), exports);
|
|
20
20
|
__exportStar(require("./ManageInventorySynchronizationApi"), exports);
|
|
21
21
|
__exportStar(require("./SearchInventoryApi"), exports);
|
|
22
|
+
__exportStar(require("./SearchInventorySynchronizationApi"), exports);
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { SynchronizationMode } from './SynchronizationMode';
|
|
13
12
|
import type { ProductLink } from './ProductLink';
|
|
14
13
|
/**
|
|
15
14
|
*
|
|
@@ -35,12 +34,6 @@ export interface ActiveProduct {
|
|
|
35
34
|
* @memberof ActiveProduct
|
|
36
35
|
*/
|
|
37
36
|
activeStock?: number;
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* @type {SynchronizationMode}
|
|
41
|
-
* @memberof ActiveProduct
|
|
42
|
-
*/
|
|
43
|
-
synchronizationMode?: SynchronizationMode;
|
|
44
37
|
/**
|
|
45
38
|
* Date of last update of the product
|
|
46
39
|
* @type {Date}
|
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.ActiveProductToJSON = exports.ActiveProductFromJSONTyped = exports.ActiveProductFromJSON = exports.instanceOfActiveProduct = void 0;
|
|
17
|
-
var SynchronizationMode_1 = require("./SynchronizationMode");
|
|
18
17
|
var ProductLink_1 = require("./ProductLink");
|
|
19
18
|
/**
|
|
20
19
|
* Check if a given object implements the ActiveProduct interface.
|
|
@@ -35,7 +34,6 @@ function ActiveProductFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
34
|
'product': (json['product'] === null || json['product'] === undefined) ? json['product'] : (0, ProductLink_1.ProductLinkFromJSON)(json['product']),
|
|
36
35
|
'totalActiveSaleOffers': json['totalActiveSaleOffers'],
|
|
37
36
|
'activeStock': json['activeStock'],
|
|
38
|
-
'synchronizationMode': (json['synchronizationMode'] === null || json['synchronizationMode'] === undefined) ? json['synchronizationMode'] : (0, SynchronizationMode_1.SynchronizationModeFromJSON)(json['synchronizationMode']),
|
|
39
37
|
'updatedAt': (json['updatedAt'] === null || json['updatedAt'] === undefined) ? json['updatedAt'] : new Date(json['updatedAt']),
|
|
40
38
|
};
|
|
41
39
|
}
|
|
@@ -48,7 +46,6 @@ function ActiveProductToJSON(value) {
|
|
|
48
46
|
'product': (0, ProductLink_1.ProductLinkToJSON)(value['product']),
|
|
49
47
|
'totalActiveSaleOffers': value['totalActiveSaleOffers'],
|
|
50
48
|
'activeStock': value['activeStock'],
|
|
51
|
-
'synchronizationMode': (0, SynchronizationMode_1.SynchronizationModeToJSON)(value['synchronizationMode']),
|
|
52
49
|
'updatedAt': (value['updatedAt'] === null || value['updatedAt'] === undefined) ? value['updatedAt'] : (value['updatedAt']).toISOString(),
|
|
53
50
|
};
|
|
54
51
|
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-pharmaide-service
|
|
3
|
+
* This is the REST API of LCDP products
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { PagingMetadata } from './PagingMetadata';
|
|
13
|
+
import type { IdentifiedSynchronization } from './IdentifiedSynchronization';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PaginatedIdentifiedSynchronization
|
|
18
|
+
*/
|
|
19
|
+
export interface PaginatedIdentifiedSynchronization {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {PagingMetadata}
|
|
23
|
+
* @memberof PaginatedIdentifiedSynchronization
|
|
24
|
+
*/
|
|
25
|
+
metadata: PagingMetadata;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Array<IdentifiedSynchronization>}
|
|
29
|
+
* @memberof PaginatedIdentifiedSynchronization
|
|
30
|
+
*/
|
|
31
|
+
records: Array<IdentifiedSynchronization>;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the PaginatedIdentifiedSynchronization interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfPaginatedIdentifiedSynchronization(value: object): value is PaginatedIdentifiedSynchronization;
|
|
37
|
+
export declare function PaginatedIdentifiedSynchronizationFromJSON(json: any): PaginatedIdentifiedSynchronization;
|
|
38
|
+
export declare function PaginatedIdentifiedSynchronizationFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedIdentifiedSynchronization;
|
|
39
|
+
export declare function PaginatedIdentifiedSynchronizationToJSON(value?: PaginatedIdentifiedSynchronization | null): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* lcdp-pharmaide-service
|
|
6
|
+
* This is the REST API of LCDP products
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.PaginatedIdentifiedSynchronizationToJSON = exports.PaginatedIdentifiedSynchronizationFromJSONTyped = exports.PaginatedIdentifiedSynchronizationFromJSON = exports.instanceOfPaginatedIdentifiedSynchronization = void 0;
|
|
17
|
+
var PagingMetadata_1 = require("./PagingMetadata");
|
|
18
|
+
var IdentifiedSynchronization_1 = require("./IdentifiedSynchronization");
|
|
19
|
+
/**
|
|
20
|
+
* Check if a given object implements the PaginatedIdentifiedSynchronization interface.
|
|
21
|
+
*/
|
|
22
|
+
function instanceOfPaginatedIdentifiedSynchronization(value) {
|
|
23
|
+
if (!('metadata' in value) || value['metadata'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('records' in value) || value['records'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
exports.instanceOfPaginatedIdentifiedSynchronization = instanceOfPaginatedIdentifiedSynchronization;
|
|
30
|
+
function PaginatedIdentifiedSynchronizationFromJSON(json) {
|
|
31
|
+
return PaginatedIdentifiedSynchronizationFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
exports.PaginatedIdentifiedSynchronizationFromJSON = PaginatedIdentifiedSynchronizationFromJSON;
|
|
34
|
+
function PaginatedIdentifiedSynchronizationFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'metadata': (json['metadata'] === null || json['metadata'] === undefined) ? json['metadata'] : (0, PagingMetadata_1.PagingMetadataFromJSON)(json['metadata']),
|
|
40
|
+
'records': (json['records'] === null || json['records'] === undefined) ? json['records'] : json['records'].map(IdentifiedSynchronization_1.IdentifiedSynchronizationFromJSON),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
exports.PaginatedIdentifiedSynchronizationFromJSONTyped = PaginatedIdentifiedSynchronizationFromJSONTyped;
|
|
44
|
+
function PaginatedIdentifiedSynchronizationToJSON(value) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'metadata': (0, PagingMetadata_1.PagingMetadataToJSON)(value['metadata']),
|
|
50
|
+
'records': (value['records'] === null || value['records'] === undefined) ? value['records'] : value['records'].map(IdentifiedSynchronization_1.IdentifiedSynchronizationToJSON),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
exports.PaginatedIdentifiedSynchronizationToJSON = PaginatedIdentifiedSynchronizationToJSON;
|
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface RestError {
|
|
18
18
|
/**
|
|
19
|
-
* Unique code to identify an error : * `CODE000` - Using outdated resource * `CODE001` - Invalid credentials * `CODE002` - Cannot renew token * `CODE003` - Invalid User CGV * `CODE004` - Resource already exists * `CODE005` - User account is disabled * `CODE006` - Invalid schedule * `CODE007` - Wrong Address according CHRONOPOST * `CODE008` - Invalid Mangopay Mandate * `CODE009` - Invalid Status * `CODE010` - Image dimension exceeded * `CODE011` - Empty User Address * `CODE012` - Empty User Legal Name * `CODE013` - Invalid quantities * `CODE014` - Invalid Meta-Order * `CODE015` - Can not release quantity greater than claimed * `CODE016` - Can not release a negative quantity of items * `CODE017` - Batch is forbidden for sale * `CODE018` - Trial already used * `CODE019` - Unable to generate session from disposableToken for admin users * `CODE020` - ETag do not match * `CODE021` - Missing informations for Offisante subscription * `CODE022` - Disabled feature
|
|
19
|
+
* Unique code to identify an error : * `CODE000` - Using outdated resource * `CODE001` - Invalid credentials * `CODE002` - Cannot renew token * `CODE003` - Invalid User CGV * `CODE004` - Resource already exists * `CODE005` - User account is disabled * `CODE006` - Invalid schedule * `CODE007` - Wrong Address according CHRONOPOST * `CODE008` - Invalid Mangopay Mandate * `CODE009` - Invalid Status * `CODE010` - Image dimension exceeded * `CODE011` - Empty User Address * `CODE012` - Empty User Legal Name * `CODE013` - Invalid quantities * `CODE014` - Invalid Meta-Order * `CODE015` - Can not release quantity greater than claimed * `CODE016` - Can not release a negative quantity of items * `CODE017` - Batch is forbidden for sale * `CODE018` - Trial already used * `CODE019` - Unable to generate session from disposableToken for admin users * `CODE020` - ETag do not match * `CODE021` - Missing informations for Offisante subscription * `CODE022` - Disabled feature
|
|
20
20
|
*
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof RestError
|
|
23
23
|
*/
|
|
24
24
|
code: RestErrorCodeEnum;
|
|
25
25
|
/**
|
|
26
|
-
* Unique code to identify an error : * `MESSAGE000` - Using outdated resource * `MESSAGE001` - Invalid credentials * `MESSAGE002` - Cannot renew token * `MESSAGE003` - Invalid User CGV * `MESSAGE004` - Resource already exists * `MESSAGE005` - User account is disabled * `MESSAGE006` - Invalid schedule * `MESSAGE007` - Wrong Address according CHRONOPOST * `MESSAGE008` - Invalid Mangopay Mandate * `MESSAGE009` - Invalid Status * `MESSAGE010` - Image dimension exceeded * `MESSAGE011` - Empty User Address * `MESSAGE012` - Empty User Legal Name * `MESSAGE013` - Invalid quantities * `MESSAGE014` - Invalid Meta-Order * `MESSAGE015` - Can not release quantity greater than claimed * `MESSAGE016` - Can not release a negative quantity of items * `MESSAGE017` - Batch is forbidden for sale * `MESSAGE018` - Trial already used * `MESSAGE019` - Unable to generate session from disposableToken for admin users * `MESSAGE020` - ETag do not match * `MESSAGE021` - Missing informations for Offisante subscription * `MESSAGE022` - Disabled feature
|
|
26
|
+
* Unique code to identify an error : * `MESSAGE000` - Using outdated resource * `MESSAGE001` - Invalid credentials * `MESSAGE002` - Cannot renew token * `MESSAGE003` - Invalid User CGV * `MESSAGE004` - Resource already exists * `MESSAGE005` - User account is disabled * `MESSAGE006` - Invalid schedule * `MESSAGE007` - Wrong Address according CHRONOPOST * `MESSAGE008` - Invalid Mangopay Mandate * `MESSAGE009` - Invalid Status * `MESSAGE010` - Image dimension exceeded * `MESSAGE011` - Empty User Address * `MESSAGE012` - Empty User Legal Name * `MESSAGE013` - Invalid quantities * `MESSAGE014` - Invalid Meta-Order * `MESSAGE015` - Can not release quantity greater than claimed * `MESSAGE016` - Can not release a negative quantity of items * `MESSAGE017` - Batch is forbidden for sale * `MESSAGE018` - Trial already used * `MESSAGE019` - Unable to generate session from disposableToken for admin users * `MESSAGE020` - ETag do not match * `MESSAGE021` - Missing informations for Offisante subscription * `MESSAGE022` - Disabled feature
|
|
27
27
|
*
|
|
28
28
|
* @type {string}
|
|
29
29
|
* @memberof RestError
|
|
@@ -57,7 +57,6 @@ export declare const RestErrorCodeEnum: {
|
|
|
57
57
|
readonly CODE020: "CODE020";
|
|
58
58
|
readonly CODE021: "CODE021";
|
|
59
59
|
readonly CODE022: "CODE022";
|
|
60
|
-
readonly CODE023: "CODE023";
|
|
61
60
|
};
|
|
62
61
|
export declare type RestErrorCodeEnum = typeof RestErrorCodeEnum[keyof typeof RestErrorCodeEnum];
|
|
63
62
|
/**
|
|
@@ -87,7 +86,6 @@ export declare const RestErrorMessageEnum: {
|
|
|
87
86
|
readonly MESSAGE020: "ETag do not match";
|
|
88
87
|
readonly MESSAGE021: "Missing informations for Offisante subscription";
|
|
89
88
|
readonly MESSAGE022: "Disabled feature";
|
|
90
|
-
readonly MESSAGE023: "Invalid Sca Enrollment status";
|
|
91
89
|
};
|
|
92
90
|
export declare type RestErrorMessageEnum = typeof RestErrorMessageEnum[keyof typeof RestErrorMessageEnum];
|
|
93
91
|
/**
|
|
@@ -40,8 +40,7 @@ exports.RestErrorCodeEnum = {
|
|
|
40
40
|
CODE019: 'CODE019',
|
|
41
41
|
CODE020: 'CODE020',
|
|
42
42
|
CODE021: 'CODE021',
|
|
43
|
-
CODE022: 'CODE022'
|
|
44
|
-
CODE023: 'CODE023'
|
|
43
|
+
CODE022: 'CODE022'
|
|
45
44
|
};
|
|
46
45
|
/**
|
|
47
46
|
* @export
|
|
@@ -69,8 +68,7 @@ exports.RestErrorMessageEnum = {
|
|
|
69
68
|
MESSAGE019: 'Unable to generate session from disposableToken for admin users',
|
|
70
69
|
MESSAGE020: 'ETag do not match',
|
|
71
70
|
MESSAGE021: 'Missing informations for Offisante subscription',
|
|
72
|
-
MESSAGE022: 'Disabled feature'
|
|
73
|
-
MESSAGE023: 'Invalid Sca Enrollment status'
|
|
71
|
+
MESSAGE022: 'Disabled feature'
|
|
74
72
|
};
|
|
75
73
|
/**
|
|
76
74
|
* Check if a given object implements the RestError interface.
|
|
@@ -11,6 +11,7 @@ export * from './MisalignedProduct';
|
|
|
11
11
|
export * from './OverstockProduct';
|
|
12
12
|
export * from './OverstockProductUpdateParameters';
|
|
13
13
|
export * from './PaginatedActiveProducts';
|
|
14
|
+
export * from './PaginatedIdentifiedSynchronization';
|
|
14
15
|
export * from './PaginatedInventories';
|
|
15
16
|
export * from './PaginatedMisalignedProducts';
|
|
16
17
|
export * from './PaginatedObject';
|
|
@@ -29,6 +29,7 @@ __exportStar(require("./MisalignedProduct"), exports);
|
|
|
29
29
|
__exportStar(require("./OverstockProduct"), exports);
|
|
30
30
|
__exportStar(require("./OverstockProductUpdateParameters"), exports);
|
|
31
31
|
__exportStar(require("./PaginatedActiveProducts"), exports);
|
|
32
|
+
__exportStar(require("./PaginatedIdentifiedSynchronization"), exports);
|
|
32
33
|
__exportStar(require("./PaginatedInventories"), exports);
|
|
33
34
|
__exportStar(require("./PaginatedMisalignedProducts"), exports);
|
|
34
35
|
__exportStar(require("./PaginatedObject"), 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,7 +57,6 @@ export declare const RestErrorCodeEnum: {
|
|
|
57
57
|
readonly CODE020: "CODE020";
|
|
58
58
|
readonly CODE021: "CODE021";
|
|
59
59
|
readonly CODE022: "CODE022";
|
|
60
|
-
readonly CODE023: "CODE023";
|
|
61
60
|
};
|
|
62
61
|
export declare type RestErrorCodeEnum = typeof RestErrorCodeEnum[keyof typeof RestErrorCodeEnum];
|
|
63
62
|
/**
|
|
@@ -87,7 +86,6 @@ export declare const RestErrorMessageEnum: {
|
|
|
87
86
|
readonly MESSAGE020: "ETag do not match";
|
|
88
87
|
readonly MESSAGE021: "Missing informations for Offisante subscription";
|
|
89
88
|
readonly MESSAGE022: "Disabled feature";
|
|
90
|
-
readonly MESSAGE023: "Invalid Sca Enrollment status";
|
|
91
89
|
};
|
|
92
90
|
export declare type RestErrorMessageEnum = typeof RestErrorMessageEnum[keyof typeof RestErrorMessageEnum];
|
|
93
91
|
/**
|
|
@@ -40,8 +40,7 @@ exports.RestErrorCodeEnum = {
|
|
|
40
40
|
CODE019: 'CODE019',
|
|
41
41
|
CODE020: 'CODE020',
|
|
42
42
|
CODE021: 'CODE021',
|
|
43
|
-
CODE022: 'CODE022'
|
|
44
|
-
CODE023: 'CODE023'
|
|
43
|
+
CODE022: 'CODE022'
|
|
45
44
|
};
|
|
46
45
|
/**
|
|
47
46
|
* @export
|
|
@@ -69,8 +68,7 @@ exports.RestErrorMessageEnum = {
|
|
|
69
68
|
MESSAGE019: 'Unable to generate session from disposableToken for admin users',
|
|
70
69
|
MESSAGE020: 'ETag do not match',
|
|
71
70
|
MESSAGE021: 'Missing informations for Offisante subscription',
|
|
72
|
-
MESSAGE022: 'Disabled feature'
|
|
73
|
-
MESSAGE023: 'Invalid Sca Enrollment status'
|
|
71
|
+
MESSAGE022: 'Disabled feature'
|
|
74
72
|
};
|
|
75
73
|
/**
|
|
76
74
|
* Check if a given object implements the RestError interface.
|
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface RestError {
|
|
18
18
|
/**
|
|
19
|
-
* Unique code to identify an error : * `CODE000` - Using outdated resource * `CODE001` - Invalid credentials * `CODE002` - Cannot renew token * `CODE003` - Invalid User CGV * `CODE004` - Resource already exists * `CODE005` - User account is disabled * `CODE006` - Invalid schedule * `CODE007` - Wrong Address according CHRONOPOST * `CODE008` - Invalid Mangopay Mandate * `CODE009` - Invalid Status * `CODE010` - Image dimension exceeded * `CODE011` - Empty User Address * `CODE012` - Empty User Legal Name * `CODE013` - Invalid quantities * `CODE014` - Invalid Meta-Order * `CODE015` - Can not release quantity greater than claimed * `CODE016` - Can not release a negative quantity of items * `CODE017` - Batch is forbidden for sale * `CODE018` - Trial already used * `CODE019` - Unable to generate session from disposableToken for admin users * `CODE020` - ETag do not match * `CODE021` - Missing informations for Offisante subscription * `CODE022` - Disabled feature
|
|
19
|
+
* Unique code to identify an error : * `CODE000` - Using outdated resource * `CODE001` - Invalid credentials * `CODE002` - Cannot renew token * `CODE003` - Invalid User CGV * `CODE004` - Resource already exists * `CODE005` - User account is disabled * `CODE006` - Invalid schedule * `CODE007` - Wrong Address according CHRONOPOST * `CODE008` - Invalid Mangopay Mandate * `CODE009` - Invalid Status * `CODE010` - Image dimension exceeded * `CODE011` - Empty User Address * `CODE012` - Empty User Legal Name * `CODE013` - Invalid quantities * `CODE014` - Invalid Meta-Order * `CODE015` - Can not release quantity greater than claimed * `CODE016` - Can not release a negative quantity of items * `CODE017` - Batch is forbidden for sale * `CODE018` - Trial already used * `CODE019` - Unable to generate session from disposableToken for admin users * `CODE020` - ETag do not match * `CODE021` - Missing informations for Offisante subscription * `CODE022` - Disabled feature
|
|
20
20
|
*
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof RestError
|
|
23
23
|
*/
|
|
24
24
|
code: RestErrorCodeEnum;
|
|
25
25
|
/**
|
|
26
|
-
* Unique code to identify an error : * `MESSAGE000` - Using outdated resource * `MESSAGE001` - Invalid credentials * `MESSAGE002` - Cannot renew token * `MESSAGE003` - Invalid User CGV * `MESSAGE004` - Resource already exists * `MESSAGE005` - User account is disabled * `MESSAGE006` - Invalid schedule * `MESSAGE007` - Wrong Address according CHRONOPOST * `MESSAGE008` - Invalid Mangopay Mandate * `MESSAGE009` - Invalid Status * `MESSAGE010` - Image dimension exceeded * `MESSAGE011` - Empty User Address * `MESSAGE012` - Empty User Legal Name * `MESSAGE013` - Invalid quantities * `MESSAGE014` - Invalid Meta-Order * `MESSAGE015` - Can not release quantity greater than claimed * `MESSAGE016` - Can not release a negative quantity of items * `MESSAGE017` - Batch is forbidden for sale * `MESSAGE018` - Trial already used * `MESSAGE019` - Unable to generate session from disposableToken for admin users * `MESSAGE020` - ETag do not match * `MESSAGE021` - Missing informations for Offisante subscription * `MESSAGE022` - Disabled feature
|
|
26
|
+
* Unique code to identify an error : * `MESSAGE000` - Using outdated resource * `MESSAGE001` - Invalid credentials * `MESSAGE002` - Cannot renew token * `MESSAGE003` - Invalid User CGV * `MESSAGE004` - Resource already exists * `MESSAGE005` - User account is disabled * `MESSAGE006` - Invalid schedule * `MESSAGE007` - Wrong Address according CHRONOPOST * `MESSAGE008` - Invalid Mangopay Mandate * `MESSAGE009` - Invalid Status * `MESSAGE010` - Image dimension exceeded * `MESSAGE011` - Empty User Address * `MESSAGE012` - Empty User Legal Name * `MESSAGE013` - Invalid quantities * `MESSAGE014` - Invalid Meta-Order * `MESSAGE015` - Can not release quantity greater than claimed * `MESSAGE016` - Can not release a negative quantity of items * `MESSAGE017` - Batch is forbidden for sale * `MESSAGE018` - Trial already used * `MESSAGE019` - Unable to generate session from disposableToken for admin users * `MESSAGE020` - ETag do not match * `MESSAGE021` - Missing informations for Offisante subscription * `MESSAGE022` - Disabled feature
|
|
27
27
|
*
|
|
28
28
|
* @type {string}
|
|
29
29
|
* @memberof RestError
|
|
@@ -57,7 +57,6 @@ export declare const RestErrorCodeEnum: {
|
|
|
57
57
|
readonly CODE020: "CODE020";
|
|
58
58
|
readonly CODE021: "CODE021";
|
|
59
59
|
readonly CODE022: "CODE022";
|
|
60
|
-
readonly CODE023: "CODE023";
|
|
61
60
|
};
|
|
62
61
|
export declare type RestErrorCodeEnum = typeof RestErrorCodeEnum[keyof typeof RestErrorCodeEnum];
|
|
63
62
|
/**
|
|
@@ -87,7 +86,6 @@ export declare const RestErrorMessageEnum: {
|
|
|
87
86
|
readonly MESSAGE020: "ETag do not match";
|
|
88
87
|
readonly MESSAGE021: "Missing informations for Offisante subscription";
|
|
89
88
|
readonly MESSAGE022: "Disabled feature";
|
|
90
|
-
readonly MESSAGE023: "Invalid Sca Enrollment status";
|
|
91
89
|
};
|
|
92
90
|
export declare type RestErrorMessageEnum = typeof RestErrorMessageEnum[keyof typeof RestErrorMessageEnum];
|
|
93
91
|
/**
|
|
@@ -40,8 +40,7 @@ exports.RestErrorCodeEnum = {
|
|
|
40
40
|
CODE019: 'CODE019',
|
|
41
41
|
CODE020: 'CODE020',
|
|
42
42
|
CODE021: 'CODE021',
|
|
43
|
-
CODE022: 'CODE022'
|
|
44
|
-
CODE023: 'CODE023'
|
|
43
|
+
CODE022: 'CODE022'
|
|
45
44
|
};
|
|
46
45
|
/**
|
|
47
46
|
* @export
|
|
@@ -69,8 +68,7 @@ exports.RestErrorMessageEnum = {
|
|
|
69
68
|
MESSAGE019: 'Unable to generate session from disposableToken for admin users',
|
|
70
69
|
MESSAGE020: 'ETag do not match',
|
|
71
70
|
MESSAGE021: 'Missing informations for Offisante subscription',
|
|
72
|
-
MESSAGE022: 'Disabled feature'
|
|
73
|
-
MESSAGE023: 'Invalid Sca Enrollment status'
|
|
71
|
+
MESSAGE022: 'Disabled feature'
|
|
74
72
|
};
|
|
75
73
|
/**
|
|
76
74
|
* Check if a given object implements the RestError interface.
|