@lcdp/api-react-rest-client 2.14.2-LDS-4911-migration-franco-custom-vers-ma.18096496834 → 2.14.2-LDS-4892.18103018813
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 +1 -1
- package/subscription/src/apis/SearchSubscriptionPlanApi.d.ts +20 -1
- package/subscription/src/apis/SearchSubscriptionPlanApi.js +163 -8
- package/subscription/src/models/SubscriptionPlansInner.d.ts +43 -0
- package/subscription/src/models/SubscriptionPlansInner.js +49 -0
- package/subscription/src/models/index.d.ts +1 -0
- package/subscription/src/models/index.js +1 -0
- package/third-party/src/models/ThirdPartyLinkCreationParameters.d.ts +5 -2
- package/third-party/src/models/ThirdPartyLinkCreationParameters.js +5 -2
- package/user/src/models/User.d.ts +0 -8
- package/user/src/models/User.js +0 -2
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { SubscriptionPlan, SubscriptionPlanId } from '../models/index';
|
|
13
|
+
import type { SubscriptionPlan, SubscriptionPlanId, SubscriptionPlansInner } from '../models/index';
|
|
14
14
|
export interface GetSubscriptionPlanRequest {
|
|
15
15
|
subscriptionPlanId: SubscriptionPlanId;
|
|
16
16
|
}
|
|
@@ -18,10 +18,21 @@ export interface GetSubscriptionPlansRequest {
|
|
|
18
18
|
activeEq?: boolean;
|
|
19
19
|
orderBy?: GetSubscriptionPlansOrderByEnum;
|
|
20
20
|
}
|
|
21
|
+
export interface GetUserSubscriptionPlanRequest {
|
|
22
|
+
userId: number;
|
|
23
|
+
}
|
|
21
24
|
/**
|
|
22
25
|
*
|
|
23
26
|
*/
|
|
24
27
|
export declare class SearchSubscriptionPlanApi extends runtime.BaseAPI {
|
|
28
|
+
/**
|
|
29
|
+
* Get current user subscription plan
|
|
30
|
+
*/
|
|
31
|
+
getCurrentUserSubscriptionPlanRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<SubscriptionPlansInner> | runtime.BlobWithMeta>>;
|
|
32
|
+
/**
|
|
33
|
+
* Get current user subscription plan
|
|
34
|
+
*/
|
|
35
|
+
getCurrentUserSubscriptionPlan(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SubscriptionPlansInner> | runtime.BlobWithMeta>;
|
|
25
36
|
/**
|
|
26
37
|
* Get subscription plan
|
|
27
38
|
*/
|
|
@@ -38,6 +49,14 @@ export declare class SearchSubscriptionPlanApi extends runtime.BaseAPI {
|
|
|
38
49
|
* Get all subscription plans
|
|
39
50
|
*/
|
|
40
51
|
getSubscriptionPlans(requestParameters?: GetSubscriptionPlansRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SubscriptionPlan> | runtime.BlobWithMeta>;
|
|
52
|
+
/**
|
|
53
|
+
* Get user subscription plan
|
|
54
|
+
*/
|
|
55
|
+
getUserSubscriptionPlanRaw(requestParameters: GetUserSubscriptionPlanRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<SubscriptionPlansInner> | runtime.BlobWithMeta>>;
|
|
56
|
+
/**
|
|
57
|
+
* Get user subscription plan
|
|
58
|
+
*/
|
|
59
|
+
getUserSubscriptionPlan(requestParameters: GetUserSubscriptionPlanRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SubscriptionPlansInner> | runtime.BlobWithMeta>;
|
|
41
60
|
}
|
|
42
61
|
/**
|
|
43
62
|
* @export
|
|
@@ -75,12 +75,88 @@ var SearchSubscriptionPlanApi = /** @class */ (function (_super) {
|
|
|
75
75
|
function SearchSubscriptionPlanApi() {
|
|
76
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
* Get current user subscription plan
|
|
80
|
+
*/
|
|
81
|
+
SearchSubscriptionPlanApi.prototype.getCurrentUserSubscriptionPlanRaw = function (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
|
+
headerParameters = {};
|
|
89
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
90
|
+
_a = headerParameters;
|
|
91
|
+
_b = "x-api-key";
|
|
92
|
+
return [4 /*yield*/, this.configuration.apiKey("x-api-key")];
|
|
93
|
+
case 1:
|
|
94
|
+
_a[_b] = _c.sent(); // apiKeyAuth authentication
|
|
95
|
+
_c.label = 2;
|
|
96
|
+
case 2:
|
|
97
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
98
|
+
token = this.configuration.accessToken;
|
|
99
|
+
return [4 /*yield*/, token("bearerAuth", [])];
|
|
100
|
+
case 3:
|
|
101
|
+
tokenString = _c.sent();
|
|
102
|
+
if (tokenString) {
|
|
103
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
104
|
+
}
|
|
105
|
+
_c.label = 4;
|
|
106
|
+
case 4:
|
|
107
|
+
_c.trys.push([4, 6, , 7]);
|
|
108
|
+
return [4 /*yield*/, this.request({
|
|
109
|
+
path: "/subscriptions/me/plans",
|
|
110
|
+
method: 'GET',
|
|
111
|
+
headers: headerParameters,
|
|
112
|
+
query: queryParameters,
|
|
113
|
+
}, initOverrides)];
|
|
114
|
+
case 5:
|
|
115
|
+
response = _c.sent();
|
|
116
|
+
contentType = response.headers.get("content-type");
|
|
117
|
+
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
118
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.SubscriptionPlansInnerFromJSON); })];
|
|
119
|
+
}
|
|
120
|
+
else if (contentType && contentType.indexOf("text/plain") !== -1) {
|
|
121
|
+
return [2 /*return*/, new runtime.TextApiResponse(response)];
|
|
122
|
+
}
|
|
123
|
+
else {
|
|
124
|
+
// TODO : Better handling of others application types
|
|
125
|
+
return [2 /*return*/, new runtime.BlobWithMetaApiResponse(response)];
|
|
126
|
+
}
|
|
127
|
+
return [3 /*break*/, 7];
|
|
128
|
+
case 6:
|
|
129
|
+
response_1 = _c.sent();
|
|
130
|
+
console.debug(response_1);
|
|
131
|
+
throw response_1;
|
|
132
|
+
case 7: return [2 /*return*/];
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
});
|
|
136
|
+
};
|
|
137
|
+
/**
|
|
138
|
+
* Get current user subscription plan
|
|
139
|
+
*/
|
|
140
|
+
SearchSubscriptionPlanApi.prototype.getCurrentUserSubscriptionPlan = function (initOverrides) {
|
|
141
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
142
|
+
var response;
|
|
143
|
+
return __generator(this, function (_a) {
|
|
144
|
+
switch (_a.label) {
|
|
145
|
+
case 0: return [4 /*yield*/, this.getCurrentUserSubscriptionPlanRaw(initOverrides)];
|
|
146
|
+
case 1:
|
|
147
|
+
response = _a.sent();
|
|
148
|
+
return [4 /*yield*/, response.value()];
|
|
149
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
150
|
+
}
|
|
151
|
+
});
|
|
152
|
+
});
|
|
153
|
+
};
|
|
78
154
|
/**
|
|
79
155
|
* Get subscription plan
|
|
80
156
|
*/
|
|
81
157
|
SearchSubscriptionPlanApi.prototype.getSubscriptionPlanRaw = function (requestParameters, initOverrides) {
|
|
82
158
|
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
-
var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType,
|
|
159
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType, response_2;
|
|
84
160
|
return __generator(this, function (_c) {
|
|
85
161
|
switch (_c.label) {
|
|
86
162
|
case 0:
|
|
@@ -129,9 +205,9 @@ var SearchSubscriptionPlanApi = /** @class */ (function (_super) {
|
|
|
129
205
|
}
|
|
130
206
|
return [3 /*break*/, 7];
|
|
131
207
|
case 6:
|
|
132
|
-
|
|
133
|
-
console.debug(
|
|
134
|
-
throw
|
|
208
|
+
response_2 = _c.sent();
|
|
209
|
+
console.debug(response_2);
|
|
210
|
+
throw response_2;
|
|
135
211
|
case 7: return [2 /*return*/];
|
|
136
212
|
}
|
|
137
213
|
});
|
|
@@ -159,7 +235,7 @@ var SearchSubscriptionPlanApi = /** @class */ (function (_super) {
|
|
|
159
235
|
*/
|
|
160
236
|
SearchSubscriptionPlanApi.prototype.getSubscriptionPlansRaw = function (requestParameters, initOverrides) {
|
|
161
237
|
return __awaiter(this, void 0, void 0, function () {
|
|
162
|
-
var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType,
|
|
238
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType, response_3;
|
|
163
239
|
return __generator(this, function (_c) {
|
|
164
240
|
switch (_c.label) {
|
|
165
241
|
case 0:
|
|
@@ -211,9 +287,9 @@ var SearchSubscriptionPlanApi = /** @class */ (function (_super) {
|
|
|
211
287
|
}
|
|
212
288
|
return [3 /*break*/, 7];
|
|
213
289
|
case 6:
|
|
214
|
-
|
|
215
|
-
console.debug(
|
|
216
|
-
throw
|
|
290
|
+
response_3 = _c.sent();
|
|
291
|
+
console.debug(response_3);
|
|
292
|
+
throw response_3;
|
|
217
293
|
case 7: return [2 /*return*/];
|
|
218
294
|
}
|
|
219
295
|
});
|
|
@@ -237,6 +313,85 @@ var SearchSubscriptionPlanApi = /** @class */ (function (_super) {
|
|
|
237
313
|
});
|
|
238
314
|
});
|
|
239
315
|
};
|
|
316
|
+
/**
|
|
317
|
+
* Get user subscription plan
|
|
318
|
+
*/
|
|
319
|
+
SearchSubscriptionPlanApi.prototype.getUserSubscriptionPlanRaw = function (requestParameters, initOverrides) {
|
|
320
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
321
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType, response_4;
|
|
322
|
+
return __generator(this, function (_c) {
|
|
323
|
+
switch (_c.label) {
|
|
324
|
+
case 0:
|
|
325
|
+
if (requestParameters['userId'] == null) {
|
|
326
|
+
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling getUserSubscriptionPlan().');
|
|
327
|
+
}
|
|
328
|
+
queryParameters = {};
|
|
329
|
+
headerParameters = {};
|
|
330
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
331
|
+
_a = headerParameters;
|
|
332
|
+
_b = "x-api-key";
|
|
333
|
+
return [4 /*yield*/, this.configuration.apiKey("x-api-key")];
|
|
334
|
+
case 1:
|
|
335
|
+
_a[_b] = _c.sent(); // apiKeyAuth authentication
|
|
336
|
+
_c.label = 2;
|
|
337
|
+
case 2:
|
|
338
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
339
|
+
token = this.configuration.accessToken;
|
|
340
|
+
return [4 /*yield*/, token("bearerAuth", [])];
|
|
341
|
+
case 3:
|
|
342
|
+
tokenString = _c.sent();
|
|
343
|
+
if (tokenString) {
|
|
344
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
345
|
+
}
|
|
346
|
+
_c.label = 4;
|
|
347
|
+
case 4:
|
|
348
|
+
_c.trys.push([4, 6, , 7]);
|
|
349
|
+
return [4 /*yield*/, this.request({
|
|
350
|
+
path: "/subscriptions/{userId}/plans".replace("{".concat("userId", "}"), encodeURIComponent(String(requestParameters['userId']))),
|
|
351
|
+
method: 'GET',
|
|
352
|
+
headers: headerParameters,
|
|
353
|
+
query: queryParameters,
|
|
354
|
+
}, initOverrides)];
|
|
355
|
+
case 5:
|
|
356
|
+
response = _c.sent();
|
|
357
|
+
contentType = response.headers.get("content-type");
|
|
358
|
+
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
359
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.SubscriptionPlansInnerFromJSON); })];
|
|
360
|
+
}
|
|
361
|
+
else if (contentType && contentType.indexOf("text/plain") !== -1) {
|
|
362
|
+
return [2 /*return*/, new runtime.TextApiResponse(response)];
|
|
363
|
+
}
|
|
364
|
+
else {
|
|
365
|
+
// TODO : Better handling of others application types
|
|
366
|
+
return [2 /*return*/, new runtime.BlobWithMetaApiResponse(response)];
|
|
367
|
+
}
|
|
368
|
+
return [3 /*break*/, 7];
|
|
369
|
+
case 6:
|
|
370
|
+
response_4 = _c.sent();
|
|
371
|
+
console.debug(response_4);
|
|
372
|
+
throw response_4;
|
|
373
|
+
case 7: return [2 /*return*/];
|
|
374
|
+
}
|
|
375
|
+
});
|
|
376
|
+
});
|
|
377
|
+
};
|
|
378
|
+
/**
|
|
379
|
+
* Get user subscription plan
|
|
380
|
+
*/
|
|
381
|
+
SearchSubscriptionPlanApi.prototype.getUserSubscriptionPlan = function (requestParameters, initOverrides) {
|
|
382
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
383
|
+
var response;
|
|
384
|
+
return __generator(this, function (_a) {
|
|
385
|
+
switch (_a.label) {
|
|
386
|
+
case 0: return [4 /*yield*/, this.getUserSubscriptionPlanRaw(requestParameters, initOverrides)];
|
|
387
|
+
case 1:
|
|
388
|
+
response = _a.sent();
|
|
389
|
+
return [4 /*yield*/, response.value()];
|
|
390
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
391
|
+
}
|
|
392
|
+
});
|
|
393
|
+
});
|
|
394
|
+
};
|
|
240
395
|
return SearchSubscriptionPlanApi;
|
|
241
396
|
}(runtime.BaseAPI));
|
|
242
397
|
exports.SearchSubscriptionPlanApi = SearchSubscriptionPlanApi;
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SubscriptionPlansInner
|
|
16
|
+
*/
|
|
17
|
+
export interface SubscriptionPlansInner {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SubscriptionPlansInner
|
|
22
|
+
*/
|
|
23
|
+
family?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SubscriptionPlansInner
|
|
28
|
+
*/
|
|
29
|
+
name?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SubscriptionPlansInner
|
|
34
|
+
*/
|
|
35
|
+
status?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the SubscriptionPlansInner interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfSubscriptionPlansInner(value: object): value is SubscriptionPlansInner;
|
|
41
|
+
export declare function SubscriptionPlansInnerFromJSON(json: any): SubscriptionPlansInner;
|
|
42
|
+
export declare function SubscriptionPlansInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionPlansInner;
|
|
43
|
+
export declare function SubscriptionPlansInnerToJSON(value?: SubscriptionPlansInner | null): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.SubscriptionPlansInnerToJSON = exports.SubscriptionPlansInnerFromJSONTyped = exports.SubscriptionPlansInnerFromJSON = exports.instanceOfSubscriptionPlansInner = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the SubscriptionPlansInner interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfSubscriptionPlansInner(value) {
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
exports.instanceOfSubscriptionPlansInner = instanceOfSubscriptionPlansInner;
|
|
24
|
+
function SubscriptionPlansInnerFromJSON(json) {
|
|
25
|
+
return SubscriptionPlansInnerFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
exports.SubscriptionPlansInnerFromJSON = SubscriptionPlansInnerFromJSON;
|
|
28
|
+
function SubscriptionPlansInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'family': json['family'],
|
|
34
|
+
'name': json['name'],
|
|
35
|
+
'status': json['status'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
exports.SubscriptionPlansInnerFromJSONTyped = SubscriptionPlansInnerFromJSONTyped;
|
|
39
|
+
function SubscriptionPlansInnerToJSON(value) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'family': value['family'],
|
|
45
|
+
'name': value['name'],
|
|
46
|
+
'status': value['status'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
exports.SubscriptionPlansInnerToJSON = SubscriptionPlansInnerToJSON;
|
|
@@ -12,4 +12,5 @@ export * from './SubscriptionPlanFeatureId';
|
|
|
12
12
|
export * from './SubscriptionPlanId';
|
|
13
13
|
export * from './SubscriptionPlanLink';
|
|
14
14
|
export * from './SubscriptionPlanUpdateParameters';
|
|
15
|
+
export * from './SubscriptionPlansInner';
|
|
15
16
|
export * from './SubscriptionUpdateParameters';
|
|
@@ -30,4 +30,5 @@ __exportStar(require("./SubscriptionPlanFeatureId"), exports);
|
|
|
30
30
|
__exportStar(require("./SubscriptionPlanId"), exports);
|
|
31
31
|
__exportStar(require("./SubscriptionPlanLink"), exports);
|
|
32
32
|
__exportStar(require("./SubscriptionPlanUpdateParameters"), exports);
|
|
33
|
+
__exportStar(require("./SubscriptionPlansInner"), exports);
|
|
33
34
|
__exportStar(require("./SubscriptionUpdateParameters"), exports);
|
|
@@ -32,8 +32,11 @@ export interface ThirdPartyLinkCreationParameters {
|
|
|
32
32
|
* @export
|
|
33
33
|
*/
|
|
34
34
|
export declare const ThirdPartyLinkCreationParametersSlugEnum: {
|
|
35
|
-
readonly
|
|
36
|
-
readonly
|
|
35
|
+
readonly BADGES_PHARMACY_STATISTICS_DASHBOARD: "BADGES_PHARMACY_STATISTICS_DASHBOARD";
|
|
36
|
+
readonly BADGES_LABORATORY_STATISTICS_DASHBOARD: "BADGES_LABORATORY_STATISTICS_DASHBOARD";
|
|
37
|
+
readonly SUBSCRIPTIONS_PHARMAIDE_USER_PRICING_PAGE: "SUBSCRIPTIONS_PHARMAIDE_USER_PRICING_PAGE";
|
|
38
|
+
readonly SUBSCRIPTIONS_LOGISTIC_USER_PRICING_PAGE: "SUBSCRIPTIONS_LOGISTIC_USER_PRICING_PAGE";
|
|
39
|
+
readonly SUBSCRIPTIONS_USER_PORTAL: "SUBSCRIPTIONS_USER_PORTAL";
|
|
37
40
|
};
|
|
38
41
|
export declare type ThirdPartyLinkCreationParametersSlugEnum = typeof ThirdPartyLinkCreationParametersSlugEnum[keyof typeof ThirdPartyLinkCreationParametersSlugEnum];
|
|
39
42
|
/**
|
|
@@ -18,8 +18,11 @@ exports.ThirdPartyLinkCreationParametersToJSON = exports.ThirdPartyLinkCreationP
|
|
|
18
18
|
* @export
|
|
19
19
|
*/
|
|
20
20
|
exports.ThirdPartyLinkCreationParametersSlugEnum = {
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
BADGES_PHARMACY_STATISTICS_DASHBOARD: 'BADGES_PHARMACY_STATISTICS_DASHBOARD',
|
|
22
|
+
BADGES_LABORATORY_STATISTICS_DASHBOARD: 'BADGES_LABORATORY_STATISTICS_DASHBOARD',
|
|
23
|
+
SUBSCRIPTIONS_PHARMAIDE_USER_PRICING_PAGE: 'SUBSCRIPTIONS_PHARMAIDE_USER_PRICING_PAGE',
|
|
24
|
+
SUBSCRIPTIONS_LOGISTIC_USER_PRICING_PAGE: 'SUBSCRIPTIONS_LOGISTIC_USER_PRICING_PAGE',
|
|
25
|
+
SUBSCRIPTIONS_USER_PORTAL: 'SUBSCRIPTIONS_USER_PORTAL'
|
|
23
26
|
};
|
|
24
27
|
/**
|
|
25
28
|
* Check if a given object implements the ThirdPartyLinkCreationParameters interface.
|
|
@@ -57,14 +57,6 @@ export interface User {
|
|
|
57
57
|
* @memberof User
|
|
58
58
|
*/
|
|
59
59
|
role: UserRole;
|
|
60
|
-
/**
|
|
61
|
-
*
|
|
62
|
-
* @type {{ [key: string]: string; }}
|
|
63
|
-
* @memberof User
|
|
64
|
-
*/
|
|
65
|
-
entitlements?: {
|
|
66
|
-
[key: string]: string;
|
|
67
|
-
};
|
|
68
60
|
/**
|
|
69
61
|
* True if the user have unpaid invoice
|
|
70
62
|
* @type {boolean}
|
package/user/src/models/User.js
CHANGED
|
@@ -69,7 +69,6 @@ function UserFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
69
69
|
'mangopayTarget': (json['mangopayTarget'] === null || json['mangopayTarget'] === undefined) ? json['mangopayTarget'] : (0, UserMangopayTarget_1.UserMangopayTargetFromJSON)(json['mangopayTarget']),
|
|
70
70
|
'chargebeeTarget': (json['chargebeeTarget'] === null || json['chargebeeTarget'] === undefined) ? json['chargebeeTarget'] : (0, UserChargebeeTarget_1.UserChargebeeTargetFromJSON)(json['chargebeeTarget']),
|
|
71
71
|
'role': (json['role'] === null || json['role'] === undefined) ? json['role'] : (0, UserRole_1.UserRoleFromJSON)(json['role']),
|
|
72
|
-
'entitlements': json['entitlements'],
|
|
73
72
|
'haveUnpaid': json['haveUnpaid'],
|
|
74
73
|
'holidayModeEnabled': json['holidayModeEnabled'],
|
|
75
74
|
'nickname': json['nickname'],
|
|
@@ -128,7 +127,6 @@ function UserToJSON(value) {
|
|
|
128
127
|
'mangopayTarget': (0, UserMangopayTarget_1.UserMangopayTargetToJSON)(value['mangopayTarget']),
|
|
129
128
|
'chargebeeTarget': (0, UserChargebeeTarget_1.UserChargebeeTargetToJSON)(value['chargebeeTarget']),
|
|
130
129
|
'role': (0, UserRole_1.UserRoleToJSON)(value['role']),
|
|
131
|
-
'entitlements': value['entitlements'],
|
|
132
130
|
'haveUnpaid': value['haveUnpaid'],
|
|
133
131
|
'holidayModeEnabled': value['holidayModeEnabled'],
|
|
134
132
|
'nickname': value['nickname'],
|