@lcdp/api-react-rest-client 2.14.2-LDS-4911-migration-franco-custom-vers-ma.18038374439 → 2.14.2-LDS-4911-migration-franco-custom-vers-ma.18038534788

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.
Files changed (157) hide show
  1. package/package.json +1 -1
  2. package/user/index.d.ts +0 -1
  3. package/user/index.js +0 -17
  4. package/user/src/apis/ManagePasswordApi.d.ts +0 -41
  5. package/user/src/apis/ManagePasswordApi.js +0 -214
  6. package/user/src/apis/ManageUserApi.d.ts +0 -143
  7. package/user/src/apis/ManageUserApi.js +0 -777
  8. package/user/src/apis/ManageUserBankAccountApi.d.ts +0 -45
  9. package/user/src/apis/ManageUserBankAccountApi.js +0 -249
  10. package/user/src/apis/ManageUserDocumentApi.d.ts +0 -98
  11. package/user/src/apis/ManageUserDocumentApi.js +0 -419
  12. package/user/src/apis/ManageUserFavoriteLaboratoryStoreApi.d.ts +0 -64
  13. package/user/src/apis/ManageUserFavoriteLaboratoryStoreApi.js +0 -354
  14. package/user/src/apis/ManageUserRestrictionApi.d.ts +0 -112
  15. package/user/src/apis/ManageUserRestrictionApi.js +0 -618
  16. package/user/src/apis/ManageUserRuleApi.d.ts +0 -44
  17. package/user/src/apis/ManageUserRuleApi.js +0 -235
  18. package/user/src/apis/ManageUserSocialNetworksApi.d.ts +0 -45
  19. package/user/src/apis/ManageUserSocialNetworksApi.js +0 -249
  20. package/user/src/apis/ManageUserTransportApi.d.ts +0 -32
  21. package/user/src/apis/ManageUserTransportApi.js +0 -166
  22. package/user/src/apis/SearchUserApi.d.ts +0 -130
  23. package/user/src/apis/SearchUserApi.js +0 -628
  24. package/user/src/apis/SearchUserDocumentApi.d.ts +0 -165
  25. package/user/src/apis/SearchUserDocumentApi.js +0 -688
  26. package/user/src/apis/SearchUserFavoriteLaboratoryStoreApi.d.ts +0 -37
  27. package/user/src/apis/SearchUserFavoriteLaboratoryStoreApi.js +0 -235
  28. package/user/src/apis/SearchUserFeatureApi.d.ts +0 -26
  29. package/user/src/apis/SearchUserFeatureApi.js +0 -156
  30. package/user/src/apis/SearchUserRestrictionApi.d.ts +0 -59
  31. package/user/src/apis/SearchUserRestrictionApi.js +0 -393
  32. package/user/src/apis/SearchUserRuleApi.d.ts +0 -29
  33. package/user/src/apis/SearchUserRuleApi.js +0 -159
  34. package/user/src/apis/SearchUserSocialNetworksApi.d.ts +0 -41
  35. package/user/src/apis/SearchUserSocialNetworksApi.js +0 -239
  36. package/user/src/apis/SearchUserTransportApi.d.ts +0 -37
  37. package/user/src/apis/SearchUserTransportApi.js +0 -235
  38. package/user/src/apis/index.d.ts +0 -17
  39. package/user/src/apis/index.js +0 -35
  40. package/user/src/index.d.ts +0 -3
  41. package/user/src/index.js +0 -21
  42. package/user/src/models/Address.d.ts +0 -49
  43. package/user/src/models/Address.js +0 -51
  44. package/user/src/models/Gender.d.ts +0 -24
  45. package/user/src/models/Gender.js +0 -47
  46. package/user/src/models/HttpLink.d.ts +0 -31
  47. package/user/src/models/HttpLink.js +0 -47
  48. package/user/src/models/KycLevel.d.ts +0 -24
  49. package/user/src/models/KycLevel.js +0 -47
  50. package/user/src/models/MyPasswordUpdateParameters.d.ts +0 -37
  51. package/user/src/models/MyPasswordUpdateParameters.js +0 -47
  52. package/user/src/models/NotificationTypeId.d.ts +0 -69
  53. package/user/src/models/NotificationTypeId.js +0 -92
  54. package/user/src/models/NotificationTypeLink.d.ts +0 -38
  55. package/user/src/models/NotificationTypeLink.js +0 -50
  56. package/user/src/models/OffisanteStatus.d.ts +0 -29
  57. package/user/src/models/OffisanteStatus.js +0 -52
  58. package/user/src/models/PaginatedObject.d.ts +0 -32
  59. package/user/src/models/PaginatedObject.js +0 -48
  60. package/user/src/models/PaginatedUsers.d.ts +0 -39
  61. package/user/src/models/PaginatedUsers.js +0 -51
  62. package/user/src/models/PagingMetadata.d.ts +0 -49
  63. package/user/src/models/PagingMetadata.js +0 -55
  64. package/user/src/models/PasswordResetCompletionParameters.d.ts +0 -31
  65. package/user/src/models/PasswordResetCompletionParameters.js +0 -47
  66. package/user/src/models/PasswordResetCreationParameters.d.ts +0 -31
  67. package/user/src/models/PasswordResetCreationParameters.js +0 -47
  68. package/user/src/models/ProductStorageType.d.ts +0 -26
  69. package/user/src/models/ProductStorageType.js +0 -49
  70. package/user/src/models/ProductTypeLink.d.ts +0 -43
  71. package/user/src/models/ProductTypeLink.js +0 -51
  72. package/user/src/models/RestError.d.ts +0 -103
  73. package/user/src/models/RestError.js +0 -113
  74. package/user/src/models/RestrictedProductStorageType.d.ts +0 -46
  75. package/user/src/models/RestrictedProductStorageType.js +0 -55
  76. package/user/src/models/ScaEnrollmentStatus.d.ts +0 -31
  77. package/user/src/models/ScaEnrollmentStatus.js +0 -54
  78. package/user/src/models/SomeonePasswordUpdateParameters.d.ts +0 -31
  79. package/user/src/models/SomeonePasswordUpdateParameters.js +0 -45
  80. package/user/src/models/ThreadLink.d.ts +0 -37
  81. package/user/src/models/ThreadLink.js +0 -51
  82. package/user/src/models/Transport.d.ts +0 -55
  83. package/user/src/models/Transport.js +0 -63
  84. package/user/src/models/User.d.ts +0 -349
  85. package/user/src/models/User.js +0 -180
  86. package/user/src/models/UserBankAccountCreationParameters.d.ts +0 -31
  87. package/user/src/models/UserBankAccountCreationParameters.js +0 -45
  88. package/user/src/models/UserBankAccountLink.d.ts +0 -53
  89. package/user/src/models/UserBankAccountLink.js +0 -60
  90. package/user/src/models/UserChargebeeTarget.d.ts +0 -37
  91. package/user/src/models/UserChargebeeTarget.js +0 -49
  92. package/user/src/models/UserCompany.d.ts +0 -118
  93. package/user/src/models/UserCompany.js +0 -75
  94. package/user/src/models/UserCreationParameters.d.ts +0 -68
  95. package/user/src/models/UserCreationParameters.js +0 -71
  96. package/user/src/models/UserCustomCommissions.d.ts +0 -37
  97. package/user/src/models/UserCustomCommissions.js +0 -47
  98. package/user/src/models/UserCustomCommissionsUpdateParameters.d.ts +0 -37
  99. package/user/src/models/UserCustomCommissionsUpdateParameters.js +0 -47
  100. package/user/src/models/UserDelegatedServices.d.ts +0 -52
  101. package/user/src/models/UserDelegatedServices.js +0 -49
  102. package/user/src/models/UserDocument.d.ts +0 -66
  103. package/user/src/models/UserDocument.js +0 -68
  104. package/user/src/models/UserDocumentStatus.d.ts +0 -27
  105. package/user/src/models/UserDocumentStatus.js +0 -50
  106. package/user/src/models/UserFavoriteLaboratoryStoreCreationParameter.d.ts +0 -31
  107. package/user/src/models/UserFavoriteLaboratoryStoreCreationParameter.js +0 -47
  108. package/user/src/models/UserFavoriteLaboratoryStoreLink.d.ts +0 -37
  109. package/user/src/models/UserFavoriteLaboratoryStoreLink.js +0 -49
  110. package/user/src/models/UserFeature.d.ts +0 -37
  111. package/user/src/models/UserFeature.js +0 -47
  112. package/user/src/models/UserForbiddenSellerLink.d.ts +0 -37
  113. package/user/src/models/UserForbiddenSellerLink.js +0 -49
  114. package/user/src/models/UserJournal.d.ts +0 -39
  115. package/user/src/models/UserJournal.js +0 -47
  116. package/user/src/models/UserJournalUpdateParameters.d.ts +0 -31
  117. package/user/src/models/UserJournalUpdateParameters.js +0 -45
  118. package/user/src/models/UserMangopayTarget.d.ts +0 -37
  119. package/user/src/models/UserMangopayTarget.js +0 -49
  120. package/user/src/models/UserRestrictedFeatureCreationParameter.d.ts +0 -31
  121. package/user/src/models/UserRestrictedFeatureCreationParameter.js +0 -47
  122. package/user/src/models/UserRestrictedNotificationTypeCreationParameter.d.ts +0 -32
  123. package/user/src/models/UserRestrictedNotificationTypeCreationParameter.js +0 -48
  124. package/user/src/models/UserRestrictedProductTypeCreationParameter.d.ts +0 -31
  125. package/user/src/models/UserRestrictedProductTypeCreationParameter.js +0 -47
  126. package/user/src/models/UserRole.d.ts +0 -29
  127. package/user/src/models/UserRole.js +0 -52
  128. package/user/src/models/UserRule.d.ts +0 -58
  129. package/user/src/models/UserRule.js +0 -56
  130. package/user/src/models/UserRuleActionEnum.d.ts +0 -23
  131. package/user/src/models/UserRuleActionEnum.js +0 -46
  132. package/user/src/models/UserRuleAttributeEnum.d.ts +0 -24
  133. package/user/src/models/UserRuleAttributeEnum.js +0 -47
  134. package/user/src/models/UserRuleComparatorEnum.d.ts +0 -24
  135. package/user/src/models/UserRuleComparatorEnum.js +0 -47
  136. package/user/src/models/UserRuleCreationParameters.d.ts +0 -52
  137. package/user/src/models/UserRuleCreationParameters.js +0 -62
  138. package/user/src/models/UserSocialNetwork.d.ts +0 -67
  139. package/user/src/models/UserSocialNetwork.js +0 -57
  140. package/user/src/models/UserStatisticLink.d.ts +0 -45
  141. package/user/src/models/UserStatisticLink.js +0 -53
  142. package/user/src/models/UserStatisticLinkAllOfLongTermQoS.d.ts +0 -61
  143. package/user/src/models/UserStatisticLinkAllOfLongTermQoS.js +0 -55
  144. package/user/src/models/UserStatisticLinkAllOfShortTermQoS.d.ts +0 -43
  145. package/user/src/models/UserStatisticLinkAllOfShortTermQoS.js +0 -49
  146. package/user/src/models/UserThreads.d.ts +0 -32
  147. package/user/src/models/UserThreads.js +0 -46
  148. package/user/src/models/UserUpdateParameters.d.ts +0 -164
  149. package/user/src/models/UserUpdateParameters.js +0 -95
  150. package/user/src/models/UserWalletLink.d.ts +0 -37
  151. package/user/src/models/UserWalletLink.js +0 -49
  152. package/user/src/models/UserWallets.d.ts +0 -50
  153. package/user/src/models/UserWallets.js +0 -52
  154. package/user/src/models/index.d.ts +0 -56
  155. package/user/src/models/index.js +0 -74
  156. package/user/src/runtime.d.ts +0 -190
  157. package/user/src/runtime.js +0 -598
@@ -1,419 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * lcdp-monolith-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.UpdateUserDocumentStatusDocumentTypeEnum = exports.CreateOrUpdateUserDocumentDocumentTypeEnum = exports.CreateOrUpdateCurrentUserDocumentDocumentTypeEnum = exports.ManageUserDocumentApi = void 0;
68
- var runtime = require("../runtime");
69
- var index_1 = require("../models/index");
70
- /**
71
- *
72
- */
73
- var ManageUserDocumentApi = /** @class */ (function (_super) {
74
- __extends(ManageUserDocumentApi, _super);
75
- function ManageUserDocumentApi() {
76
- return _super !== null && _super.apply(this, arguments) || this;
77
- }
78
- /**
79
- * Restrictions: - If DocumentType is in (\'ID\', \'KBIS\', \'SHARE_HOLDER\', \'STATUS\') then user \'scaEnrollmentStatus\' should be in \'ACTIVE\'
80
- * Upload document associated to current user
81
- */
82
- ManageUserDocumentApi.prototype.createOrUpdateCurrentUserDocumentRaw = function (requestParameters, initOverrides) {
83
- return __awaiter(this, void 0, void 0, function () {
84
- var queryParameters, headerParameters, _a, _b, token, tokenString, consumes, canConsumeForm, formParams, useForm, response, contentType, response_1;
85
- return __generator(this, function (_c) {
86
- switch (_c.label) {
87
- case 0:
88
- if (requestParameters['documentType'] == null) {
89
- throw new runtime.RequiredError('documentType', 'Required parameter "documentType" was null or undefined when calling createOrUpdateCurrentUserDocument().');
90
- }
91
- queryParameters = {};
92
- headerParameters = {};
93
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
94
- _a = headerParameters;
95
- _b = "x-api-key";
96
- return [4 /*yield*/, this.configuration.apiKey("x-api-key")];
97
- case 1:
98
- _a[_b] = _c.sent(); // apiKeyAuth authentication
99
- _c.label = 2;
100
- case 2:
101
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
102
- token = this.configuration.accessToken;
103
- return [4 /*yield*/, token("bearerAuth", [])];
104
- case 3:
105
- tokenString = _c.sent();
106
- if (tokenString) {
107
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
108
- }
109
- _c.label = 4;
110
- case 4:
111
- consumes = [
112
- { contentType: 'multipart/form-data' },
113
- ];
114
- canConsumeForm = runtime.canConsumeForm(consumes);
115
- useForm = false;
116
- // use FormData to transmit files using content-type "multipart/form-data"
117
- useForm = canConsumeForm;
118
- if (useForm) {
119
- formParams = new FormData();
120
- }
121
- else {
122
- formParams = new URLSearchParams();
123
- }
124
- if (requestParameters['upload'] != null) {
125
- requestParameters['upload'].forEach(function (element) {
126
- if (useForm && runtime.instanceOfBlobWithMeta(element)) {
127
- formParams.append('upload', element.blob, element.filename);
128
- }
129
- else {
130
- formParams.append('upload', element);
131
- }
132
- });
133
- }
134
- _c.label = 5;
135
- case 5:
136
- _c.trys.push([5, 7, , 8]);
137
- return [4 /*yield*/, this.request({
138
- path: "/users/me/documents/{documentType}".replace("{".concat("documentType", "}"), encodeURIComponent(String(requestParameters['documentType']))),
139
- method: 'PUT',
140
- headers: headerParameters,
141
- query: queryParameters,
142
- body: formParams,
143
- }, initOverrides)];
144
- case 6:
145
- response = _c.sent();
146
- contentType = response.headers.get("content-type");
147
- if (contentType && contentType.indexOf("application/json") !== -1) {
148
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.UserDocumentFromJSON)(jsonValue); })];
149
- }
150
- else if (contentType && contentType.indexOf("text/plain") !== -1) {
151
- return [2 /*return*/, new runtime.TextApiResponse(response)];
152
- }
153
- else {
154
- // TODO : Better handling of others application types
155
- return [2 /*return*/, new runtime.BlobWithMetaApiResponse(response)];
156
- }
157
- return [3 /*break*/, 8];
158
- case 7:
159
- response_1 = _c.sent();
160
- console.debug(response_1);
161
- throw response_1;
162
- case 8: return [2 /*return*/];
163
- }
164
- });
165
- });
166
- };
167
- /**
168
- * Restrictions: - If DocumentType is in (\'ID\', \'KBIS\', \'SHARE_HOLDER\', \'STATUS\') then user \'scaEnrollmentStatus\' should be in \'ACTIVE\'
169
- * Upload document associated to current user
170
- */
171
- ManageUserDocumentApi.prototype.createOrUpdateCurrentUserDocument = function (requestParameters, initOverrides) {
172
- return __awaiter(this, void 0, void 0, function () {
173
- var response;
174
- return __generator(this, function (_a) {
175
- switch (_a.label) {
176
- case 0: return [4 /*yield*/, this.createOrUpdateCurrentUserDocumentRaw(requestParameters, initOverrides)];
177
- case 1:
178
- response = _a.sent();
179
- return [4 /*yield*/, response.value()];
180
- case 2: return [2 /*return*/, _a.sent()];
181
- }
182
- });
183
- });
184
- };
185
- /**
186
- * Restrictions : - If DocumentType is in (\'ID\', \'KBIS\', \'SHARE_HOLDER\', \'STATUS\') then user \'scaEnrollmentStatus\' should be in \'ACTIVE\'
187
- * Upload document associated to given user
188
- */
189
- ManageUserDocumentApi.prototype.createOrUpdateUserDocumentRaw = function (requestParameters, initOverrides) {
190
- return __awaiter(this, void 0, void 0, function () {
191
- var queryParameters, headerParameters, _a, _b, token, tokenString, consumes, canConsumeForm, formParams, useForm, response, contentType, response_2;
192
- return __generator(this, function (_c) {
193
- switch (_c.label) {
194
- case 0:
195
- if (requestParameters['userId'] == null) {
196
- throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling createOrUpdateUserDocument().');
197
- }
198
- if (requestParameters['documentType'] == null) {
199
- throw new runtime.RequiredError('documentType', 'Required parameter "documentType" was null or undefined when calling createOrUpdateUserDocument().');
200
- }
201
- queryParameters = {};
202
- headerParameters = {};
203
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
204
- _a = headerParameters;
205
- _b = "x-api-key";
206
- return [4 /*yield*/, this.configuration.apiKey("x-api-key")];
207
- case 1:
208
- _a[_b] = _c.sent(); // apiKeyAuth authentication
209
- _c.label = 2;
210
- case 2:
211
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
212
- token = this.configuration.accessToken;
213
- return [4 /*yield*/, token("bearerAuth", [])];
214
- case 3:
215
- tokenString = _c.sent();
216
- if (tokenString) {
217
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
218
- }
219
- _c.label = 4;
220
- case 4:
221
- consumes = [
222
- { contentType: 'multipart/form-data' },
223
- ];
224
- canConsumeForm = runtime.canConsumeForm(consumes);
225
- useForm = false;
226
- // use FormData to transmit files using content-type "multipart/form-data"
227
- useForm = canConsumeForm;
228
- if (useForm) {
229
- formParams = new FormData();
230
- }
231
- else {
232
- formParams = new URLSearchParams();
233
- }
234
- if (requestParameters['upload'] != null) {
235
- requestParameters['upload'].forEach(function (element) {
236
- if (useForm && runtime.instanceOfBlobWithMeta(element)) {
237
- formParams.append('upload', element.blob, element.filename);
238
- }
239
- else {
240
- formParams.append('upload', element);
241
- }
242
- });
243
- }
244
- _c.label = 5;
245
- case 5:
246
- _c.trys.push([5, 7, , 8]);
247
- return [4 /*yield*/, this.request({
248
- path: "/users/{userId}/documents/{documentType}".replace("{".concat("userId", "}"), encodeURIComponent(String(requestParameters['userId']))).replace("{".concat("documentType", "}"), encodeURIComponent(String(requestParameters['documentType']))),
249
- method: 'PUT',
250
- headers: headerParameters,
251
- query: queryParameters,
252
- body: formParams,
253
- }, initOverrides)];
254
- case 6:
255
- response = _c.sent();
256
- contentType = response.headers.get("content-type");
257
- if (contentType && contentType.indexOf("application/json") !== -1) {
258
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.UserDocumentFromJSON)(jsonValue); })];
259
- }
260
- else if (contentType && contentType.indexOf("text/plain") !== -1) {
261
- return [2 /*return*/, new runtime.TextApiResponse(response)];
262
- }
263
- else {
264
- // TODO : Better handling of others application types
265
- return [2 /*return*/, new runtime.BlobWithMetaApiResponse(response)];
266
- }
267
- return [3 /*break*/, 8];
268
- case 7:
269
- response_2 = _c.sent();
270
- console.debug(response_2);
271
- throw response_2;
272
- case 8: return [2 /*return*/];
273
- }
274
- });
275
- });
276
- };
277
- /**
278
- * Restrictions : - If DocumentType is in (\'ID\', \'KBIS\', \'SHARE_HOLDER\', \'STATUS\') then user \'scaEnrollmentStatus\' should be in \'ACTIVE\'
279
- * Upload document associated to given user
280
- */
281
- ManageUserDocumentApi.prototype.createOrUpdateUserDocument = function (requestParameters, initOverrides) {
282
- return __awaiter(this, void 0, void 0, function () {
283
- var response;
284
- return __generator(this, function (_a) {
285
- switch (_a.label) {
286
- case 0: return [4 /*yield*/, this.createOrUpdateUserDocumentRaw(requestParameters, initOverrides)];
287
- case 1:
288
- response = _a.sent();
289
- return [4 /*yield*/, response.value()];
290
- case 2: return [2 /*return*/, _a.sent()];
291
- }
292
- });
293
- });
294
- };
295
- /**
296
- * Restrictions : - Available status for document type : - GMP -> VALIDATED / VALIDATION_ASKED - Other -> All status
297
- * Update document status
298
- */
299
- ManageUserDocumentApi.prototype.updateUserDocumentStatusRaw = function (requestParameters, initOverrides) {
300
- return __awaiter(this, void 0, void 0, function () {
301
- var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType, response_3;
302
- return __generator(this, function (_c) {
303
- switch (_c.label) {
304
- case 0:
305
- if (requestParameters['userId'] == null) {
306
- throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling updateUserDocumentStatus().');
307
- }
308
- if (requestParameters['documentType'] == null) {
309
- throw new runtime.RequiredError('documentType', 'Required parameter "documentType" was null or undefined when calling updateUserDocumentStatus().');
310
- }
311
- if (requestParameters['body'] == null) {
312
- throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling updateUserDocumentStatus().');
313
- }
314
- queryParameters = {};
315
- headerParameters = {};
316
- headerParameters['Content-Type'] = 'application/json';
317
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
318
- _a = headerParameters;
319
- _b = "x-api-key";
320
- return [4 /*yield*/, this.configuration.apiKey("x-api-key")];
321
- case 1:
322
- _a[_b] = _c.sent(); // apiKeyAuth authentication
323
- _c.label = 2;
324
- case 2:
325
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
326
- token = this.configuration.accessToken;
327
- return [4 /*yield*/, token("bearerAuth", [])];
328
- case 3:
329
- tokenString = _c.sent();
330
- if (tokenString) {
331
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
332
- }
333
- _c.label = 4;
334
- case 4:
335
- _c.trys.push([4, 6, , 7]);
336
- return [4 /*yield*/, this.request({
337
- path: "/users/{userId}/documents/{documentType}/status".replace("{".concat("userId", "}"), encodeURIComponent(String(requestParameters['userId']))).replace("{".concat("documentType", "}"), encodeURIComponent(String(requestParameters['documentType']))),
338
- method: 'PUT',
339
- headers: headerParameters,
340
- query: queryParameters,
341
- body: requestParameters['body'],
342
- }, initOverrides)];
343
- case 5:
344
- response = _c.sent();
345
- contentType = response.headers.get("content-type");
346
- if (contentType && contentType.indexOf("application/json") !== -1) {
347
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.UserDocumentStatusFromJSON)(jsonValue); })];
348
- }
349
- else if (contentType && contentType.indexOf("text/plain") !== -1) {
350
- return [2 /*return*/, new runtime.TextApiResponse(response)];
351
- }
352
- else {
353
- // TODO : Better handling of others application types
354
- return [2 /*return*/, new runtime.BlobWithMetaApiResponse(response)];
355
- }
356
- return [3 /*break*/, 7];
357
- case 6:
358
- response_3 = _c.sent();
359
- console.debug(response_3);
360
- throw response_3;
361
- case 7: return [2 /*return*/];
362
- }
363
- });
364
- });
365
- };
366
- /**
367
- * Restrictions : - Available status for document type : - GMP -> VALIDATED / VALIDATION_ASKED - Other -> All status
368
- * Update document status
369
- */
370
- ManageUserDocumentApi.prototype.updateUserDocumentStatus = function (requestParameters, initOverrides) {
371
- return __awaiter(this, void 0, void 0, function () {
372
- var response;
373
- return __generator(this, function (_a) {
374
- switch (_a.label) {
375
- case 0: return [4 /*yield*/, this.updateUserDocumentStatusRaw(requestParameters, initOverrides)];
376
- case 1:
377
- response = _a.sent();
378
- return [4 /*yield*/, response.value()];
379
- case 2: return [2 /*return*/, _a.sent()];
380
- }
381
- });
382
- });
383
- };
384
- return ManageUserDocumentApi;
385
- }(runtime.BaseAPI));
386
- exports.ManageUserDocumentApi = ManageUserDocumentApi;
387
- /**
388
- * @export
389
- */
390
- exports.CreateOrUpdateCurrentUserDocumentDocumentTypeEnum = {
391
- KBIS: 'KBIS',
392
- ID: 'ID',
393
- SHARE_HOLDER: 'SHARE_HOLDER',
394
- STATUS: 'STATUS',
395
- CGV: 'CGV',
396
- GMP: 'GMP'
397
- };
398
- /**
399
- * @export
400
- */
401
- exports.CreateOrUpdateUserDocumentDocumentTypeEnum = {
402
- KBIS: 'KBIS',
403
- ID: 'ID',
404
- SHARE_HOLDER: 'SHARE_HOLDER',
405
- STATUS: 'STATUS',
406
- CGV: 'CGV',
407
- GMP: 'GMP'
408
- };
409
- /**
410
- * @export
411
- */
412
- exports.UpdateUserDocumentStatusDocumentTypeEnum = {
413
- KBIS: 'KBIS',
414
- ID: 'ID',
415
- SHARE_HOLDER: 'SHARE_HOLDER',
416
- STATUS: 'STATUS',
417
- CGV: 'CGV',
418
- GMP: 'GMP'
419
- };
@@ -1,64 +0,0 @@
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 { UserFavoriteLaboratoryStoreCreationParameter } from '../models/index';
14
- export interface CreateCurrentUserFavoriteLaboratoryStoresRequest {
15
- userFavoriteLaboratoryStoreCreationParameter: UserFavoriteLaboratoryStoreCreationParameter;
16
- }
17
- export interface CreateUserFavoriteLaboratoryStoresRequest {
18
- userId: number;
19
- userFavoriteLaboratoryStoreCreationParameter: UserFavoriteLaboratoryStoreCreationParameter;
20
- }
21
- export interface DeleteCurrentUserFavoriteLaboratoryStoresRequest {
22
- laboratoryStoreId: number;
23
- }
24
- export interface DeleteUserFavoriteLaboratoryStoresRequest {
25
- userId: number;
26
- laboratoryStoreId: number;
27
- }
28
- /**
29
- *
30
- */
31
- export declare class ManageUserFavoriteLaboratoryStoreApi extends runtime.BaseAPI {
32
- /**
33
- * Add this laboratory store in user favorite
34
- */
35
- createCurrentUserFavoriteLaboratoryStoresRaw(requestParameters: CreateCurrentUserFavoriteLaboratoryStoresRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
36
- /**
37
- * Add this laboratory store in user favorite
38
- */
39
- createCurrentUserFavoriteLaboratoryStores(requestParameters: CreateCurrentUserFavoriteLaboratoryStoresRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
40
- /**
41
- * Add this laboratory store in user favorite
42
- */
43
- createUserFavoriteLaboratoryStoresRaw(requestParameters: CreateUserFavoriteLaboratoryStoresRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
44
- /**
45
- * Add this laboratory store in user favorite
46
- */
47
- createUserFavoriteLaboratoryStores(requestParameters: CreateUserFavoriteLaboratoryStoresRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
48
- /**
49
- * Delete this laboratory store from user favorite
50
- */
51
- deleteCurrentUserFavoriteLaboratoryStoresRaw(requestParameters: DeleteCurrentUserFavoriteLaboratoryStoresRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
52
- /**
53
- * Delete this laboratory store from user favorite
54
- */
55
- deleteCurrentUserFavoriteLaboratoryStores(requestParameters: DeleteCurrentUserFavoriteLaboratoryStoresRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
56
- /**
57
- * Delete this laboratory store from user favorite
58
- */
59
- deleteUserFavoriteLaboratoryStoresRaw(requestParameters: DeleteUserFavoriteLaboratoryStoresRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
60
- /**
61
- * Delete this laboratory store from user favorite
62
- */
63
- deleteUserFavoriteLaboratoryStores(requestParameters: DeleteUserFavoriteLaboratoryStoresRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
64
- }