@lcdp/api-react-rest-client 2.0.1-develop.3967084047 → 2.0.1
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/package.json
CHANGED
|
@@ -179,9 +179,6 @@ var SearchProductApi = /** @class */ (function (_super) {
|
|
|
179
179
|
if (requestParameters.labEq) {
|
|
180
180
|
queryParameters['lab[eq]'] = requestParameters.labEq;
|
|
181
181
|
}
|
|
182
|
-
if (requestParameters.nameIeq !== undefined) {
|
|
183
|
-
queryParameters['name[ieq]'] = requestParameters.nameIeq;
|
|
184
|
-
}
|
|
185
182
|
if (requestParameters.sWaitingSaleOfferCountGte !== undefined) {
|
|
186
183
|
queryParameters['sWaitingSaleOfferCount[gte]'] = requestParameters.sWaitingSaleOfferCountGte;
|
|
187
184
|
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { BaseAPI, ApiResponse, BlobWithMeta } from '../runtime';
|
|
13
|
-
import { UserDocument
|
|
13
|
+
import { UserDocument } from '../models';
|
|
14
14
|
export interface GetCurrentUserDocumentRequest {
|
|
15
15
|
documentType: GetCurrentUserDocumentDocumentTypeEnum;
|
|
16
16
|
}
|
|
@@ -25,10 +25,6 @@ export interface GetUserDocumentMetadataRequest {
|
|
|
25
25
|
userId: number;
|
|
26
26
|
documentType: GetUserDocumentMetadataDocumentTypeEnum;
|
|
27
27
|
}
|
|
28
|
-
export interface GetUserDocumentStatusRequest {
|
|
29
|
-
userId: number;
|
|
30
|
-
documentType: GetUserDocumentStatusDocumentTypeEnum;
|
|
31
|
-
}
|
|
32
28
|
export interface GetUserDocumentsRequest {
|
|
33
29
|
userId: number;
|
|
34
30
|
}
|
|
@@ -76,16 +72,6 @@ export declare class SearchUserDocumentApi extends BaseAPI {
|
|
|
76
72
|
* Get metadata of document associated to given user
|
|
77
73
|
*/
|
|
78
74
|
getUserDocumentMetadata(requestParameters: GetUserDocumentMetadataRequest): Promise<void>;
|
|
79
|
-
/**
|
|
80
|
-
* Get document status
|
|
81
|
-
* Get document status
|
|
82
|
-
*/
|
|
83
|
-
getUserDocumentStatusRaw(requestParameters: GetUserDocumentStatusRequest): Promise<ApiResponse<UserDocumentStatus | BlobWithMeta>>;
|
|
84
|
-
/**
|
|
85
|
-
* Get document status
|
|
86
|
-
* Get document status
|
|
87
|
-
*/
|
|
88
|
-
getUserDocumentStatus(requestParameters: GetUserDocumentStatusRequest): Promise<UserDocumentStatus | BlobWithMeta>;
|
|
89
75
|
/**
|
|
90
76
|
* Get all user documents
|
|
91
77
|
*/
|
|
@@ -143,15 +129,3 @@ export declare enum GetUserDocumentMetadataDocumentTypeEnum {
|
|
|
143
129
|
CGV = "CGV",
|
|
144
130
|
GMP = "GMP"
|
|
145
131
|
}
|
|
146
|
-
/**
|
|
147
|
-
* @export
|
|
148
|
-
* @enum {string}
|
|
149
|
-
*/
|
|
150
|
-
export declare enum GetUserDocumentStatusDocumentTypeEnum {
|
|
151
|
-
KBIS = "KBIS",
|
|
152
|
-
ID = "ID",
|
|
153
|
-
SHAREHOLDER = "SHARE_HOLDER",
|
|
154
|
-
STATUS = "STATUS",
|
|
155
|
-
CGV = "CGV",
|
|
156
|
-
GMP = "GMP"
|
|
157
|
-
}
|
|
@@ -64,7 +64,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
66
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
-
exports.
|
|
67
|
+
exports.GetUserDocumentMetadataDocumentTypeEnum = exports.GetUserDocumentDocumentTypeEnum = exports.GetCurrentUserDocumentMetadataDocumentTypeEnum = exports.GetCurrentUserDocumentDocumentTypeEnum = exports.SearchUserDocumentApi = void 0;
|
|
68
68
|
var runtime_1 = require("../runtime");
|
|
69
69
|
var models_1 = require("../models");
|
|
70
70
|
/**
|
|
@@ -417,90 +417,12 @@ var SearchUserDocumentApi = /** @class */ (function (_super) {
|
|
|
417
417
|
});
|
|
418
418
|
});
|
|
419
419
|
};
|
|
420
|
-
/**
|
|
421
|
-
* Get document status
|
|
422
|
-
* Get document status
|
|
423
|
-
*/
|
|
424
|
-
SearchUserDocumentApi.prototype.getUserDocumentStatusRaw = function (requestParameters) {
|
|
425
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
426
|
-
var queryParameters, headerParameters, token, tokenString, response, contentType, response_6;
|
|
427
|
-
return __generator(this, function (_a) {
|
|
428
|
-
switch (_a.label) {
|
|
429
|
-
case 0:
|
|
430
|
-
if (requestParameters.userId === null || requestParameters.userId === undefined) {
|
|
431
|
-
throw new runtime_1.RequiredError('userId', 'Required parameter requestParameters.userId was null or undefined when calling getUserDocumentStatus.');
|
|
432
|
-
}
|
|
433
|
-
if (requestParameters.documentType === null || requestParameters.documentType === undefined) {
|
|
434
|
-
throw new runtime_1.RequiredError('documentType', 'Required parameter requestParameters.documentType was null or undefined when calling getUserDocumentStatus.');
|
|
435
|
-
}
|
|
436
|
-
queryParameters = {};
|
|
437
|
-
headerParameters = {};
|
|
438
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
439
|
-
headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
|
|
440
|
-
}
|
|
441
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
442
|
-
token = this.configuration.accessToken;
|
|
443
|
-
tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
|
|
444
|
-
if (tokenString) {
|
|
445
|
-
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
446
|
-
}
|
|
447
|
-
}
|
|
448
|
-
_a.label = 1;
|
|
449
|
-
case 1:
|
|
450
|
-
_a.trys.push([1, 3, , 4]);
|
|
451
|
-
return [4 /*yield*/, this.request({
|
|
452
|
-
path: "/users/{userId}/documents/{documentType}/status".replace("{".concat("userId", "}"), encodeURIComponent(String(requestParameters.userId))).replace("{".concat("documentType", "}"), encodeURIComponent(String(requestParameters.documentType))),
|
|
453
|
-
method: 'GET',
|
|
454
|
-
headers: headerParameters,
|
|
455
|
-
query: queryParameters,
|
|
456
|
-
})];
|
|
457
|
-
case 2:
|
|
458
|
-
response = _a.sent();
|
|
459
|
-
contentType = response.headers.get("content-type");
|
|
460
|
-
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
461
|
-
return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return (0, models_1.UserDocumentStatusFromJSON)(jsonValue); })];
|
|
462
|
-
}
|
|
463
|
-
else if (contentType && contentType.indexOf("text/plain") !== -1) {
|
|
464
|
-
return [2 /*return*/, new runtime_1.TextApiResponse(response)];
|
|
465
|
-
}
|
|
466
|
-
else {
|
|
467
|
-
// TODO : Better handling of others application types
|
|
468
|
-
return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
|
|
469
|
-
}
|
|
470
|
-
return [3 /*break*/, 4];
|
|
471
|
-
case 3:
|
|
472
|
-
response_6 = _a.sent();
|
|
473
|
-
console.debug(response_6);
|
|
474
|
-
throw response_6;
|
|
475
|
-
case 4: return [2 /*return*/];
|
|
476
|
-
}
|
|
477
|
-
});
|
|
478
|
-
});
|
|
479
|
-
};
|
|
480
|
-
/**
|
|
481
|
-
* Get document status
|
|
482
|
-
* Get document status
|
|
483
|
-
*/
|
|
484
|
-
SearchUserDocumentApi.prototype.getUserDocumentStatus = function (requestParameters) {
|
|
485
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
486
|
-
var response;
|
|
487
|
-
return __generator(this, function (_a) {
|
|
488
|
-
switch (_a.label) {
|
|
489
|
-
case 0: return [4 /*yield*/, this.getUserDocumentStatusRaw(requestParameters)];
|
|
490
|
-
case 1:
|
|
491
|
-
response = _a.sent();
|
|
492
|
-
return [4 /*yield*/, response.value()];
|
|
493
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
494
|
-
}
|
|
495
|
-
});
|
|
496
|
-
});
|
|
497
|
-
};
|
|
498
420
|
/**
|
|
499
421
|
* Get all user documents
|
|
500
422
|
*/
|
|
501
423
|
SearchUserDocumentApi.prototype.getUserDocumentsRaw = function (requestParameters) {
|
|
502
424
|
return __awaiter(this, void 0, void 0, function () {
|
|
503
|
-
var queryParameters, headerParameters, token, tokenString, response, contentType,
|
|
425
|
+
var queryParameters, headerParameters, token, tokenString, response, contentType, response_6;
|
|
504
426
|
return __generator(this, function (_a) {
|
|
505
427
|
switch (_a.label) {
|
|
506
428
|
case 0:
|
|
@@ -543,9 +465,9 @@ var SearchUserDocumentApi = /** @class */ (function (_super) {
|
|
|
543
465
|
}
|
|
544
466
|
return [3 /*break*/, 4];
|
|
545
467
|
case 3:
|
|
546
|
-
|
|
547
|
-
console.debug(
|
|
548
|
-
throw
|
|
468
|
+
response_6 = _a.sent();
|
|
469
|
+
console.debug(response_6);
|
|
470
|
+
throw response_6;
|
|
549
471
|
case 4: return [2 /*return*/];
|
|
550
472
|
}
|
|
551
473
|
});
|
|
@@ -623,16 +545,3 @@ var GetUserDocumentMetadataDocumentTypeEnum;
|
|
|
623
545
|
GetUserDocumentMetadataDocumentTypeEnum["CGV"] = "CGV";
|
|
624
546
|
GetUserDocumentMetadataDocumentTypeEnum["GMP"] = "GMP";
|
|
625
547
|
})(GetUserDocumentMetadataDocumentTypeEnum = exports.GetUserDocumentMetadataDocumentTypeEnum || (exports.GetUserDocumentMetadataDocumentTypeEnum = {}));
|
|
626
|
-
/**
|
|
627
|
-
* @export
|
|
628
|
-
* @enum {string}
|
|
629
|
-
*/
|
|
630
|
-
var GetUserDocumentStatusDocumentTypeEnum;
|
|
631
|
-
(function (GetUserDocumentStatusDocumentTypeEnum) {
|
|
632
|
-
GetUserDocumentStatusDocumentTypeEnum["KBIS"] = "KBIS";
|
|
633
|
-
GetUserDocumentStatusDocumentTypeEnum["ID"] = "ID";
|
|
634
|
-
GetUserDocumentStatusDocumentTypeEnum["SHAREHOLDER"] = "SHARE_HOLDER";
|
|
635
|
-
GetUserDocumentStatusDocumentTypeEnum["STATUS"] = "STATUS";
|
|
636
|
-
GetUserDocumentStatusDocumentTypeEnum["CGV"] = "CGV";
|
|
637
|
-
GetUserDocumentStatusDocumentTypeEnum["GMP"] = "GMP";
|
|
638
|
-
})(GetUserDocumentStatusDocumentTypeEnum = exports.GetUserDocumentStatusDocumentTypeEnum || (exports.GetUserDocumentStatusDocumentTypeEnum = {}));
|