@lcdp/api-react-rest-client 2.14.3-develop.18164509826 → 2.14.3-develop.18489802587
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/chargebee-hook/index.d.ts +1 -0
- package/chargebee-hook/index.js +17 -0
- package/chargebee-hook/src/apis/ChargebeeHookApi.d.ts +31 -0
- package/chargebee-hook/src/apis/ChargebeeHookApi.js +134 -0
- package/chargebee-hook/src/apis/index.d.ts +1 -0
- package/chargebee-hook/src/apis/index.js +19 -0
- package/chargebee-hook/src/index.d.ts +3 -0
- package/chargebee-hook/src/index.js +21 -0
- package/chargebee-hook/src/models/HookRequest.d.ts +85 -0
- package/chargebee-hook/src/models/HookRequest.js +67 -0
- package/{subscription → chargebee-hook}/src/models/RestError.d.ts +1 -1
- package/{subscription → chargebee-hook}/src/models/RestError.js +1 -1
- package/chargebee-hook/src/models/index.d.ts +2 -0
- package/chargebee-hook/src/models/index.js +20 -0
- package/chargebee-hook/src/runtime.d.ts +190 -0
- package/chargebee-hook/src/runtime.js +598 -0
- package/notification/src/models/NotificationTypeId.d.ts +1 -2
- package/notification/src/models/NotificationTypeId.js +1 -2
- package/package.json +1 -1
- package/rfx/src/apis/ManageRffApi.d.ts +29 -0
- package/{subscription/src/apis/ManageSubscriptionPlanApi.js → rfx/src/apis/ManageRffApi.js} +21 -39
- package/rfx/src/apis/index.d.ts +1 -0
- package/rfx/src/apis/index.js +1 -0
- package/rfx/src/models/RffCreationParameters.d.ts +37 -0
- package/rfx/src/models/RffCreationParameters.js +51 -0
- package/rfx/src/models/index.d.ts +1 -0
- package/rfx/src/models/index.js +1 -0
- package/subscription/src/apis/SearchSubscriptionsApi.d.ts +29 -0
- package/subscription/src/apis/{SearchSubscriptionPlanFeatureApi.js → SearchSubscriptionsApi.js} +19 -13
- package/subscription/src/apis/index.d.ts +1 -5
- package/subscription/src/apis/index.js +1 -5
- package/subscription/src/models/Subscription.d.ts +6 -38
- package/subscription/src/models/Subscription.js +6 -19
- package/subscription/src/models/index.d.ts +0 -14
- package/subscription/src/models/index.js +0 -14
- package/third-party/src/models/ThirdPartyLinkCreationParameters.d.ts +5 -2
- package/third-party/src/models/ThirdPartyLinkCreationParameters.js +5 -2
- package/user/src/models/NotificationTypeId.d.ts +1 -2
- package/user/src/models/NotificationTypeId.js +1 -2
- package/user/src/models/OffisanteStatus.d.ts +3 -1
- package/user/src/models/OffisanteStatus.js +4 -2
- package/user/src/models/User.d.ts +8 -0
- package/user/src/models/User.js +2 -0
- package/subscription/src/apis/ManageSubscriptionApi.d.ts +0 -56
- package/subscription/src/apis/ManageSubscriptionApi.js +0 -315
- package/subscription/src/apis/ManageSubscriptionPlanApi.d.ts +0 -30
- package/subscription/src/apis/SearchSubscriptionApi.d.ts +0 -53
- package/subscription/src/apis/SearchSubscriptionApi.js +0 -208
- package/subscription/src/apis/SearchSubscriptionPlanApi.d.ts +0 -49
- package/subscription/src/apis/SearchSubscriptionPlanApi.js +0 -249
- package/subscription/src/apis/SearchSubscriptionPlanFeatureApi.d.ts +0 -26
- package/subscription/src/models/HttpLink.d.ts +0 -31
- package/subscription/src/models/HttpLink.js +0 -47
- package/subscription/src/models/PaginatedObject.d.ts +0 -32
- package/subscription/src/models/PaginatedObject.js +0 -48
- package/subscription/src/models/PaginatedSubscriptions.d.ts +0 -39
- package/subscription/src/models/PaginatedSubscriptions.js +0 -51
- package/subscription/src/models/PagingMetadata.d.ts +0 -49
- package/subscription/src/models/PagingMetadata.js +0 -55
- package/subscription/src/models/SubscriberLink.d.ts +0 -37
- package/subscription/src/models/SubscriberLink.js +0 -49
- package/subscription/src/models/SubscriptionCreationParameters.d.ts +0 -44
- package/subscription/src/models/SubscriptionCreationParameters.js +0 -56
- package/subscription/src/models/SubscriptionPlan.d.ts +0 -69
- package/subscription/src/models/SubscriptionPlan.js +0 -59
- package/subscription/src/models/SubscriptionPlanFeature.d.ts +0 -44
- package/subscription/src/models/SubscriptionPlanFeature.js +0 -50
- package/subscription/src/models/SubscriptionPlanFeatureId.d.ts +0 -26
- package/subscription/src/models/SubscriptionPlanFeatureId.js +0 -49
- package/subscription/src/models/SubscriptionPlanId.d.ts +0 -25
- package/subscription/src/models/SubscriptionPlanId.js +0 -48
- package/subscription/src/models/SubscriptionPlanLink.d.ts +0 -38
- package/subscription/src/models/SubscriptionPlanLink.js +0 -50
- package/subscription/src/models/SubscriptionPlanUpdateParameters.d.ts +0 -62
- package/subscription/src/models/SubscriptionPlanUpdateParameters.js +0 -56
- package/subscription/src/models/SubscriptionUpdateParameters.d.ts +0 -62
- package/subscription/src/models/SubscriptionUpdateParameters.js +0 -57
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
5
|
* lcdp-monolith-service
|
|
6
|
-
* This is the REST API of
|
|
6
|
+
* This is the REST API of RFx (Request For X)
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 1.0.0
|
|
9
9
|
* Contact: contact@lecomptoirdespharmacies.fr
|
|
@@ -64,35 +64,29 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
66
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
-
exports.
|
|
67
|
+
exports.ManageRffApi = void 0;
|
|
68
68
|
var runtime = require("../runtime");
|
|
69
69
|
var index_1 = require("../models/index");
|
|
70
70
|
/**
|
|
71
71
|
*
|
|
72
72
|
*/
|
|
73
|
-
var
|
|
74
|
-
__extends(
|
|
75
|
-
function
|
|
73
|
+
var ManageRffApi = /** @class */ (function (_super) {
|
|
74
|
+
__extends(ManageRffApi, _super);
|
|
75
|
+
function ManageRffApi() {
|
|
76
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
}
|
|
78
78
|
/**
|
|
79
|
-
*
|
|
79
|
+
* Create request for feature
|
|
80
80
|
*/
|
|
81
|
-
|
|
81
|
+
ManageRffApi.prototype.createRffRaw = function (requestParameters, initOverrides) {
|
|
82
82
|
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
-
var queryParameters, headerParameters, _a, _b, token, tokenString, response,
|
|
83
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response, response_1;
|
|
84
84
|
return __generator(this, function (_c) {
|
|
85
85
|
switch (_c.label) {
|
|
86
86
|
case 0:
|
|
87
|
-
if (requestParameters['subscriptionPlanId'] == null) {
|
|
88
|
-
throw new runtime.RequiredError('subscriptionPlanId', 'Required parameter "subscriptionPlanId" was null or undefined when calling updateSubscriptionPlan().');
|
|
89
|
-
}
|
|
90
|
-
if (requestParameters['subscriptionPlanUpdateParameters'] == null) {
|
|
91
|
-
throw new runtime.RequiredError('subscriptionPlanUpdateParameters', 'Required parameter "subscriptionPlanUpdateParameters" was null or undefined when calling updateSubscriptionPlan().');
|
|
92
|
-
}
|
|
93
87
|
queryParameters = {};
|
|
94
88
|
headerParameters = {};
|
|
95
|
-
headerParameters['Content-Type'] = 'application/
|
|
89
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
96
90
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
97
91
|
_a = headerParameters;
|
|
98
92
|
_b = "x-api-key";
|
|
@@ -113,26 +107,15 @@ var ManageSubscriptionPlanApi = /** @class */ (function (_super) {
|
|
|
113
107
|
case 4:
|
|
114
108
|
_c.trys.push([4, 6, , 7]);
|
|
115
109
|
return [4 /*yield*/, this.request({
|
|
116
|
-
path: "/
|
|
117
|
-
method: '
|
|
110
|
+
path: "/rffs",
|
|
111
|
+
method: 'POST',
|
|
118
112
|
headers: headerParameters,
|
|
119
113
|
query: queryParameters,
|
|
120
|
-
body: (0, index_1.
|
|
114
|
+
body: (0, index_1.RffCreationParametersToJSON)(requestParameters['rffCreationParameters']),
|
|
121
115
|
}, initOverrides)];
|
|
122
116
|
case 5:
|
|
123
117
|
response = _c.sent();
|
|
124
|
-
|
|
125
|
-
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
126
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.SubscriptionPlanFromJSON)(jsonValue); })];
|
|
127
|
-
}
|
|
128
|
-
else if (contentType && contentType.indexOf("text/plain") !== -1) {
|
|
129
|
-
return [2 /*return*/, new runtime.TextApiResponse(response)];
|
|
130
|
-
}
|
|
131
|
-
else {
|
|
132
|
-
// TODO : Better handling of others application types
|
|
133
|
-
return [2 /*return*/, new runtime.BlobWithMetaApiResponse(response)];
|
|
134
|
-
}
|
|
135
|
-
return [3 /*break*/, 7];
|
|
118
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
136
119
|
case 6:
|
|
137
120
|
response_1 = _c.sent();
|
|
138
121
|
console.debug(response_1);
|
|
@@ -143,22 +126,21 @@ var ManageSubscriptionPlanApi = /** @class */ (function (_super) {
|
|
|
143
126
|
});
|
|
144
127
|
};
|
|
145
128
|
/**
|
|
146
|
-
*
|
|
129
|
+
* Create request for feature
|
|
147
130
|
*/
|
|
148
|
-
|
|
131
|
+
ManageRffApi.prototype.createRff = function (requestParameters, initOverrides) {
|
|
132
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
149
133
|
return __awaiter(this, void 0, void 0, function () {
|
|
150
|
-
var response;
|
|
151
134
|
return __generator(this, function (_a) {
|
|
152
135
|
switch (_a.label) {
|
|
153
|
-
case 0: return [4 /*yield*/, this.
|
|
136
|
+
case 0: return [4 /*yield*/, this.createRffRaw(requestParameters, initOverrides)];
|
|
154
137
|
case 1:
|
|
155
|
-
|
|
156
|
-
return [
|
|
157
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
138
|
+
_a.sent();
|
|
139
|
+
return [2 /*return*/];
|
|
158
140
|
}
|
|
159
141
|
});
|
|
160
142
|
});
|
|
161
143
|
};
|
|
162
|
-
return
|
|
144
|
+
return ManageRffApi;
|
|
163
145
|
}(runtime.BaseAPI));
|
|
164
|
-
exports.
|
|
146
|
+
exports.ManageRffApi = ManageRffApi;
|
package/rfx/src/apis/index.d.ts
CHANGED
package/rfx/src/apis/index.js
CHANGED
|
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
/* tslint:disable */
|
|
18
18
|
/* eslint-disable */
|
|
19
|
+
__exportStar(require("./ManageRffApi"), exports);
|
|
19
20
|
__exportStar(require("./ManageRfiApi"), exports);
|
|
20
21
|
__exportStar(require("./ManageRfilApi"), exports);
|
|
21
22
|
__exportStar(require("./ManageRfoiApi"), exports);
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-monolith-service
|
|
3
|
+
* This is the REST API of RFx (Request For X)
|
|
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 RffCreationParameters
|
|
16
|
+
*/
|
|
17
|
+
export interface RffCreationParameters {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof RffCreationParameters
|
|
22
|
+
*/
|
|
23
|
+
userId: number;
|
|
24
|
+
/**
|
|
25
|
+
* Name of the feature the user is interested in
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof RffCreationParameters
|
|
28
|
+
*/
|
|
29
|
+
featureName: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the RffCreationParameters interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfRffCreationParameters(value: object): value is RffCreationParameters;
|
|
35
|
+
export declare function RffCreationParametersFromJSON(json: any): RffCreationParameters;
|
|
36
|
+
export declare function RffCreationParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): RffCreationParameters;
|
|
37
|
+
export declare function RffCreationParametersToJSON(value?: RffCreationParameters | null): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* lcdp-monolith-service
|
|
6
|
+
* This is the REST API of RFx (Request For X)
|
|
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.RffCreationParametersToJSON = exports.RffCreationParametersFromJSONTyped = exports.RffCreationParametersFromJSON = exports.instanceOfRffCreationParameters = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the RffCreationParameters interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfRffCreationParameters(value) {
|
|
21
|
+
if (!('userId' in value) || value['userId'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('featureName' in value) || value['featureName'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
exports.instanceOfRffCreationParameters = instanceOfRffCreationParameters;
|
|
28
|
+
function RffCreationParametersFromJSON(json) {
|
|
29
|
+
return RffCreationParametersFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
exports.RffCreationParametersFromJSON = RffCreationParametersFromJSON;
|
|
32
|
+
function RffCreationParametersFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'userId': json['userId'],
|
|
38
|
+
'featureName': json['featureName'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
exports.RffCreationParametersFromJSONTyped = RffCreationParametersFromJSONTyped;
|
|
42
|
+
function RffCreationParametersToJSON(value) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'userId': value['userId'],
|
|
48
|
+
'featureName': value['featureName'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
exports.RffCreationParametersToJSON = RffCreationParametersToJSON;
|
|
@@ -4,6 +4,7 @@ export * from './PaginatedObject';
|
|
|
4
4
|
export * from './PaginatedRfois';
|
|
5
5
|
export * from './PagingMetadata';
|
|
6
6
|
export * from './RestError';
|
|
7
|
+
export * from './RffCreationParameters';
|
|
7
8
|
export * from './RfiCreationParameters';
|
|
8
9
|
export * from './RfilCreationParameters';
|
|
9
10
|
export * from './RfoCreationParameters';
|
package/rfx/src/models/index.js
CHANGED
|
@@ -22,6 +22,7 @@ __exportStar(require("./PaginatedObject"), exports);
|
|
|
22
22
|
__exportStar(require("./PaginatedRfois"), exports);
|
|
23
23
|
__exportStar(require("./PagingMetadata"), exports);
|
|
24
24
|
__exportStar(require("./RestError"), exports);
|
|
25
|
+
__exportStar(require("./RffCreationParameters"), exports);
|
|
25
26
|
__exportStar(require("./RfiCreationParameters"), exports);
|
|
26
27
|
__exportStar(require("./RfilCreationParameters"), exports);
|
|
27
28
|
__exportStar(require("./RfoCreationParameters"), exports);
|
|
@@ -0,0 +1,29 @@
|
|
|
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 { Subscription } from '../models/index';
|
|
14
|
+
export interface GetSubscriptionsRequest {
|
|
15
|
+
ownerIdEq: number;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
export declare class SearchSubscriptionsApi extends runtime.BaseAPI {
|
|
21
|
+
/**
|
|
22
|
+
* Get subscriptions
|
|
23
|
+
*/
|
|
24
|
+
getSubscriptionsRaw(requestParameters: GetSubscriptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Subscription> | runtime.BlobWithMeta>>;
|
|
25
|
+
/**
|
|
26
|
+
* Get subscriptions
|
|
27
|
+
*/
|
|
28
|
+
getSubscriptions(requestParameters: GetSubscriptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Subscription> | runtime.BlobWithMeta>;
|
|
29
|
+
}
|
package/subscription/src/apis/{SearchSubscriptionPlanFeatureApi.js → SearchSubscriptionsApi.js}
RENAMED
|
@@ -64,27 +64,33 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
66
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
-
exports.
|
|
67
|
+
exports.SearchSubscriptionsApi = void 0;
|
|
68
68
|
var runtime = require("../runtime");
|
|
69
69
|
var index_1 = require("../models/index");
|
|
70
70
|
/**
|
|
71
71
|
*
|
|
72
72
|
*/
|
|
73
|
-
var
|
|
74
|
-
__extends(
|
|
75
|
-
function
|
|
73
|
+
var SearchSubscriptionsApi = /** @class */ (function (_super) {
|
|
74
|
+
__extends(SearchSubscriptionsApi, _super);
|
|
75
|
+
function SearchSubscriptionsApi() {
|
|
76
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
}
|
|
78
78
|
/**
|
|
79
|
-
* Get
|
|
79
|
+
* Get subscriptions
|
|
80
80
|
*/
|
|
81
|
-
|
|
81
|
+
SearchSubscriptionsApi.prototype.getSubscriptionsRaw = function (requestParameters, initOverrides) {
|
|
82
82
|
return __awaiter(this, void 0, void 0, function () {
|
|
83
83
|
var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType, response_1;
|
|
84
84
|
return __generator(this, function (_c) {
|
|
85
85
|
switch (_c.label) {
|
|
86
86
|
case 0:
|
|
87
|
+
if (requestParameters['ownerIdEq'] == null) {
|
|
88
|
+
throw new runtime.RequiredError('ownerIdEq', 'Required parameter "ownerIdEq" was null or undefined when calling getSubscriptions().');
|
|
89
|
+
}
|
|
87
90
|
queryParameters = {};
|
|
91
|
+
if (requestParameters['ownerIdEq'] != null) {
|
|
92
|
+
queryParameters['ownerId[eq]'] = requestParameters['ownerIdEq'];
|
|
93
|
+
}
|
|
88
94
|
headerParameters = {};
|
|
89
95
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
90
96
|
_a = headerParameters;
|
|
@@ -106,7 +112,7 @@ var SearchSubscriptionPlanFeatureApi = /** @class */ (function (_super) {
|
|
|
106
112
|
case 4:
|
|
107
113
|
_c.trys.push([4, 6, , 7]);
|
|
108
114
|
return [4 /*yield*/, this.request({
|
|
109
|
-
path: "/subscriptions
|
|
115
|
+
path: "/subscriptions",
|
|
110
116
|
method: 'GET',
|
|
111
117
|
headers: headerParameters,
|
|
112
118
|
query: queryParameters,
|
|
@@ -115,7 +121,7 @@ var SearchSubscriptionPlanFeatureApi = /** @class */ (function (_super) {
|
|
|
115
121
|
response = _c.sent();
|
|
116
122
|
contentType = response.headers.get("content-type");
|
|
117
123
|
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
118
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.
|
|
124
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.SubscriptionFromJSON); })];
|
|
119
125
|
}
|
|
120
126
|
else if (contentType && contentType.indexOf("text/plain") !== -1) {
|
|
121
127
|
return [2 /*return*/, new runtime.TextApiResponse(response)];
|
|
@@ -135,14 +141,14 @@ var SearchSubscriptionPlanFeatureApi = /** @class */ (function (_super) {
|
|
|
135
141
|
});
|
|
136
142
|
};
|
|
137
143
|
/**
|
|
138
|
-
* Get
|
|
144
|
+
* Get subscriptions
|
|
139
145
|
*/
|
|
140
|
-
|
|
146
|
+
SearchSubscriptionsApi.prototype.getSubscriptions = function (requestParameters, initOverrides) {
|
|
141
147
|
return __awaiter(this, void 0, void 0, function () {
|
|
142
148
|
var response;
|
|
143
149
|
return __generator(this, function (_a) {
|
|
144
150
|
switch (_a.label) {
|
|
145
|
-
case 0: return [4 /*yield*/, this.
|
|
151
|
+
case 0: return [4 /*yield*/, this.getSubscriptionsRaw(requestParameters, initOverrides)];
|
|
146
152
|
case 1:
|
|
147
153
|
response = _a.sent();
|
|
148
154
|
return [4 /*yield*/, response.value()];
|
|
@@ -151,6 +157,6 @@ var SearchSubscriptionPlanFeatureApi = /** @class */ (function (_super) {
|
|
|
151
157
|
});
|
|
152
158
|
});
|
|
153
159
|
};
|
|
154
|
-
return
|
|
160
|
+
return SearchSubscriptionsApi;
|
|
155
161
|
}(runtime.BaseAPI));
|
|
156
|
-
exports.
|
|
162
|
+
exports.SearchSubscriptionsApi = SearchSubscriptionsApi;
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './ManageSubscriptionPlanApi';
|
|
3
|
-
export * from './SearchSubscriptionApi';
|
|
4
|
-
export * from './SearchSubscriptionPlanApi';
|
|
5
|
-
export * from './SearchSubscriptionPlanFeatureApi';
|
|
1
|
+
export * from './SearchSubscriptionsApi';
|
|
@@ -16,8 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
/* tslint:disable */
|
|
18
18
|
/* eslint-disable */
|
|
19
|
-
__exportStar(require("./
|
|
20
|
-
__exportStar(require("./ManageSubscriptionPlanApi"), exports);
|
|
21
|
-
__exportStar(require("./SearchSubscriptionApi"), exports);
|
|
22
|
-
__exportStar(require("./SearchSubscriptionPlanApi"), exports);
|
|
23
|
-
__exportStar(require("./SearchSubscriptionPlanFeatureApi"), exports);
|
|
19
|
+
__exportStar(require("./SearchSubscriptionsApi"), exports);
|
|
@@ -9,8 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { SubscriberLink } from './SubscriberLink';
|
|
13
|
-
import type { SubscriptionPlanLink } from './SubscriptionPlanLink';
|
|
14
12
|
/**
|
|
15
13
|
*
|
|
16
14
|
* @export
|
|
@@ -19,52 +17,22 @@ import type { SubscriptionPlanLink } from './SubscriptionPlanLink';
|
|
|
19
17
|
export interface Subscription {
|
|
20
18
|
/**
|
|
21
19
|
*
|
|
22
|
-
* @type {
|
|
20
|
+
* @type {string}
|
|
23
21
|
* @memberof Subscription
|
|
24
22
|
*/
|
|
25
|
-
|
|
23
|
+
family?: string;
|
|
26
24
|
/**
|
|
27
25
|
*
|
|
28
|
-
* @type {
|
|
26
|
+
* @type {string}
|
|
29
27
|
* @memberof Subscription
|
|
30
28
|
*/
|
|
31
|
-
|
|
29
|
+
name?: string;
|
|
32
30
|
/**
|
|
33
31
|
*
|
|
34
|
-
* @type {
|
|
32
|
+
* @type {string}
|
|
35
33
|
* @memberof Subscription
|
|
36
34
|
*/
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* @type {number}
|
|
41
|
-
* @memberof Subscription
|
|
42
|
-
*/
|
|
43
|
-
billingPrice?: number;
|
|
44
|
-
/**
|
|
45
|
-
* Date since when the subscription is active. Ex : 12-02-2025 means that subscription is active from this date (INCLUDED)
|
|
46
|
-
* @type {Date}
|
|
47
|
-
* @memberof Subscription
|
|
48
|
-
*/
|
|
49
|
-
validFrom?: Date;
|
|
50
|
-
/**
|
|
51
|
-
* Date until when the subscription is active. Ex : 12-02-2025 means that subscription is active until this date (EXCLUDED)
|
|
52
|
-
* @type {Date}
|
|
53
|
-
* @memberof Subscription
|
|
54
|
-
*/
|
|
55
|
-
validTo?: Date | null;
|
|
56
|
-
/**
|
|
57
|
-
*
|
|
58
|
-
* @type {Date}
|
|
59
|
-
* @memberof Subscription
|
|
60
|
-
*/
|
|
61
|
-
nextBillingDate?: Date | null;
|
|
62
|
-
/**
|
|
63
|
-
* True if this subscription is a trial, False if not
|
|
64
|
-
* @type {boolean}
|
|
65
|
-
* @memberof Subscription
|
|
66
|
-
*/
|
|
67
|
-
isTrial?: boolean;
|
|
35
|
+
status?: string;
|
|
68
36
|
}
|
|
69
37
|
/**
|
|
70
38
|
* Check if a given object implements the Subscription interface.
|
|
@@ -14,9 +14,6 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.SubscriptionToJSON = exports.SubscriptionFromJSONTyped = exports.SubscriptionFromJSON = exports.instanceOfSubscription = void 0;
|
|
17
|
-
var runtime_1 = require("../runtime");
|
|
18
|
-
var SubscriberLink_1 = require("./SubscriberLink");
|
|
19
|
-
var SubscriptionPlanLink_1 = require("./SubscriptionPlanLink");
|
|
20
17
|
/**
|
|
21
18
|
* Check if a given object implements the Subscription interface.
|
|
22
19
|
*/
|
|
@@ -33,14 +30,9 @@ function SubscriptionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
30
|
return json;
|
|
34
31
|
}
|
|
35
32
|
return {
|
|
36
|
-
'
|
|
37
|
-
'
|
|
38
|
-
'
|
|
39
|
-
'billingPrice': json['billingPrice'],
|
|
40
|
-
'validFrom': (json['validFrom'] === null || json['validFrom'] === undefined) ? json['validFrom'] : new Date(json['validFrom']),
|
|
41
|
-
'validTo': (json['validTo'] === null || json['validTo'] === undefined) ? json['validTo'] : new Date(json['validTo']),
|
|
42
|
-
'nextBillingDate': (json['nextBillingDate'] === null || json['nextBillingDate'] === undefined) ? json['nextBillingDate'] : new Date(json['nextBillingDate']),
|
|
43
|
-
'isTrial': json['isTrial'],
|
|
33
|
+
'family': json['family'],
|
|
34
|
+
'name': json['name'],
|
|
35
|
+
'status': json['status'],
|
|
44
36
|
};
|
|
45
37
|
}
|
|
46
38
|
exports.SubscriptionFromJSONTyped = SubscriptionFromJSONTyped;
|
|
@@ -49,14 +41,9 @@ function SubscriptionToJSON(value) {
|
|
|
49
41
|
return value;
|
|
50
42
|
}
|
|
51
43
|
return {
|
|
52
|
-
'
|
|
53
|
-
'
|
|
54
|
-
'
|
|
55
|
-
'billingPrice': value['billingPrice'],
|
|
56
|
-
'validFrom': (value['validFrom'] === null || value['validFrom'] === undefined) ? value['validFrom'] : (0, runtime_1.toDateISOString)(value['validFrom']),
|
|
57
|
-
'validTo': (value['validTo'] === null || value['validTo'] === undefined) ? value['validTo'] : (0, runtime_1.toDateISOString)(value['validTo']),
|
|
58
|
-
'nextBillingDate': (value['nextBillingDate'] === null || value['nextBillingDate'] === undefined) ? value['nextBillingDate'] : (0, runtime_1.toDateISOString)(value['nextBillingDate']),
|
|
59
|
-
'isTrial': value['isTrial'],
|
|
44
|
+
'family': value['family'],
|
|
45
|
+
'name': value['name'],
|
|
46
|
+
'status': value['status'],
|
|
60
47
|
};
|
|
61
48
|
}
|
|
62
49
|
exports.SubscriptionToJSON = SubscriptionToJSON;
|
|
@@ -1,15 +1 @@
|
|
|
1
|
-
export * from './HttpLink';
|
|
2
|
-
export * from './PaginatedObject';
|
|
3
|
-
export * from './PaginatedSubscriptions';
|
|
4
|
-
export * from './PagingMetadata';
|
|
5
|
-
export * from './RestError';
|
|
6
|
-
export * from './SubscriberLink';
|
|
7
1
|
export * from './Subscription';
|
|
8
|
-
export * from './SubscriptionCreationParameters';
|
|
9
|
-
export * from './SubscriptionPlan';
|
|
10
|
-
export * from './SubscriptionPlanFeature';
|
|
11
|
-
export * from './SubscriptionPlanFeatureId';
|
|
12
|
-
export * from './SubscriptionPlanId';
|
|
13
|
-
export * from './SubscriptionPlanLink';
|
|
14
|
-
export * from './SubscriptionPlanUpdateParameters';
|
|
15
|
-
export * from './SubscriptionUpdateParameters';
|
|
@@ -16,18 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
/* tslint:disable */
|
|
18
18
|
/* eslint-disable */
|
|
19
|
-
__exportStar(require("./HttpLink"), exports);
|
|
20
|
-
__exportStar(require("./PaginatedObject"), exports);
|
|
21
|
-
__exportStar(require("./PaginatedSubscriptions"), exports);
|
|
22
|
-
__exportStar(require("./PagingMetadata"), exports);
|
|
23
|
-
__exportStar(require("./RestError"), exports);
|
|
24
|
-
__exportStar(require("./SubscriberLink"), exports);
|
|
25
19
|
__exportStar(require("./Subscription"), exports);
|
|
26
|
-
__exportStar(require("./SubscriptionCreationParameters"), exports);
|
|
27
|
-
__exportStar(require("./SubscriptionPlan"), exports);
|
|
28
|
-
__exportStar(require("./SubscriptionPlanFeature"), exports);
|
|
29
|
-
__exportStar(require("./SubscriptionPlanFeatureId"), exports);
|
|
30
|
-
__exportStar(require("./SubscriptionPlanId"), exports);
|
|
31
|
-
__exportStar(require("./SubscriptionPlanLink"), exports);
|
|
32
|
-
__exportStar(require("./SubscriptionPlanUpdateParameters"), exports);
|
|
33
|
-
__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.
|
|
@@ -54,8 +54,7 @@ export declare const NotificationTypeId: {
|
|
|
54
54
|
readonly ORDER_LABORATORY_DAILY_MAIL: "ORDER_LABORATORY_DAILY_MAIL";
|
|
55
55
|
readonly ORDER_VALIDATED_BUYER: "ORDER_VALIDATED_BUYER";
|
|
56
56
|
readonly ORDER_VALIDATED_SELLER: "ORDER_VALIDATED_SELLER";
|
|
57
|
-
readonly
|
|
58
|
-
readonly PHARMAIDE_SB_TEST_EXPIRATION: "PHARMAIDE_SB_TEST_EXPIRATION";
|
|
57
|
+
readonly OFFISANTE_SIGN_REQUEST: "OFFISANTE_SIGN_REQUEST";
|
|
59
58
|
readonly REQUEST_FOR_ORDER_INVOICE: "REQUEST_FOR_ORDER_INVOICE";
|
|
60
59
|
readonly CLIENT_BADGE_RECEIVED: "CLIENT_BADGE_RECEIVED";
|
|
61
60
|
readonly CLIENT_BADGE_LOST: "CLIENT_BADGE_LOST";
|
|
@@ -59,8 +59,7 @@ exports.NotificationTypeId = {
|
|
|
59
59
|
ORDER_LABORATORY_DAILY_MAIL: 'ORDER_LABORATORY_DAILY_MAIL',
|
|
60
60
|
ORDER_VALIDATED_BUYER: 'ORDER_VALIDATED_BUYER',
|
|
61
61
|
ORDER_VALIDATED_SELLER: 'ORDER_VALIDATED_SELLER',
|
|
62
|
-
|
|
63
|
-
PHARMAIDE_SB_TEST_EXPIRATION: 'PHARMAIDE_SB_TEST_EXPIRATION',
|
|
62
|
+
OFFISANTE_SIGN_REQUEST: 'OFFISANTE_SIGN_REQUEST',
|
|
64
63
|
REQUEST_FOR_ORDER_INVOICE: 'REQUEST_FOR_ORDER_INVOICE',
|
|
65
64
|
CLIENT_BADGE_RECEIVED: 'CLIENT_BADGE_RECEIVED',
|
|
66
65
|
CLIENT_BADGE_LOST: 'CLIENT_BADGE_LOST',
|
|
@@ -11,9 +11,10 @@
|
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
13
|
* Status of company in our system against Offisante system.
|
|
14
|
-
* SET : Offisante know this resource
|
|
14
|
+
* SET : Offisante know this resource but not yet its stock
|
|
15
15
|
* NOT_SET : Offisante do not know this resource
|
|
16
16
|
* IN_PROGRESS : Offisante is going to know this resource in the future
|
|
17
|
+
* ACTIVE : Offisante know this resource and its stock
|
|
17
18
|
*
|
|
18
19
|
* @export
|
|
19
20
|
*/
|
|
@@ -21,6 +22,7 @@ export declare const OffisanteStatus: {
|
|
|
21
22
|
readonly SET: "SET";
|
|
22
23
|
readonly NOT_SET: "NOT_SET";
|
|
23
24
|
readonly IN_PROGRESS: "IN_PROGRESS";
|
|
25
|
+
readonly ACTIVE: "ACTIVE";
|
|
24
26
|
};
|
|
25
27
|
export declare type OffisanteStatus = typeof OffisanteStatus[keyof typeof OffisanteStatus];
|
|
26
28
|
export declare function instanceOfOffisanteStatus(value: any): boolean;
|
|
@@ -16,16 +16,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
16
16
|
exports.OffisanteStatusToJSON = exports.OffisanteStatusFromJSONTyped = exports.OffisanteStatusFromJSON = exports.instanceOfOffisanteStatus = exports.OffisanteStatus = void 0;
|
|
17
17
|
/**
|
|
18
18
|
* Status of company in our system against Offisante system.
|
|
19
|
-
* SET : Offisante know this resource
|
|
19
|
+
* SET : Offisante know this resource but not yet its stock
|
|
20
20
|
* NOT_SET : Offisante do not know this resource
|
|
21
21
|
* IN_PROGRESS : Offisante is going to know this resource in the future
|
|
22
|
+
* ACTIVE : Offisante know this resource and its stock
|
|
22
23
|
*
|
|
23
24
|
* @export
|
|
24
25
|
*/
|
|
25
26
|
exports.OffisanteStatus = {
|
|
26
27
|
SET: 'SET',
|
|
27
28
|
NOT_SET: 'NOT_SET',
|
|
28
|
-
IN_PROGRESS: 'IN_PROGRESS'
|
|
29
|
+
IN_PROGRESS: 'IN_PROGRESS',
|
|
30
|
+
ACTIVE: 'ACTIVE'
|
|
29
31
|
};
|
|
30
32
|
function instanceOfOffisanteStatus(value) {
|
|
31
33
|
for (var key in exports.OffisanteStatus) {
|
|
@@ -57,6 +57,14 @@ 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
|
+
capabilities?: {
|
|
66
|
+
[key: string]: string;
|
|
67
|
+
};
|
|
60
68
|
/**
|
|
61
69
|
* True if the user have unpaid invoice
|
|
62
70
|
* @type {boolean}
|