@lcdp/api-react-rest-client 2.14.3-develop.18775084447 → 2.14.3
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/invoice/src/apis/SearchInvoiceApi.d.ts +2 -2
- package/invoice/src/apis/SearchInvoiceApi.js +2 -2
- package/invoice/src/models/InvoiceType.d.ts +1 -0
- package/invoice/src/models/InvoiceType.js +1 -0
- package/notification/src/models/NotificationTypeId.d.ts +2 -1
- package/notification/src/models/NotificationTypeId.js +2 -1
- package/package.json +1 -1
- package/rfx/src/apis/index.d.ts +0 -1
- package/rfx/src/apis/index.js +0 -1
- package/rfx/src/models/index.d.ts +0 -1
- package/rfx/src/models/index.js +0 -1
- package/subscription/src/apis/ManageSubscriptionApi.d.ts +56 -0
- package/subscription/src/apis/ManageSubscriptionApi.js +315 -0
- package/subscription/src/apis/ManageSubscriptionPlanApi.d.ts +30 -0
- package/{rfx/src/apis/ManageRffApi.js → subscription/src/apis/ManageSubscriptionPlanApi.js} +39 -21
- package/subscription/src/apis/SearchSubscriptionApi.d.ts +53 -0
- package/subscription/src/apis/SearchSubscriptionApi.js +208 -0
- package/subscription/src/apis/SearchSubscriptionPlanApi.d.ts +49 -0
- package/subscription/src/apis/SearchSubscriptionPlanApi.js +249 -0
- package/subscription/src/apis/SearchSubscriptionPlanFeatureApi.d.ts +26 -0
- package/subscription/src/apis/{SearchSubscriptionsApi.js → SearchSubscriptionPlanFeatureApi.js} +13 -19
- package/subscription/src/apis/index.d.ts +5 -1
- package/subscription/src/apis/index.js +5 -1
- package/subscription/src/models/HttpLink.d.ts +31 -0
- package/subscription/src/models/HttpLink.js +47 -0
- package/subscription/src/models/PaginatedObject.d.ts +32 -0
- package/subscription/src/models/PaginatedObject.js +48 -0
- package/subscription/src/models/PaginatedSubscriptions.d.ts +39 -0
- package/subscription/src/models/PaginatedSubscriptions.js +51 -0
- package/subscription/src/models/PagingMetadata.d.ts +49 -0
- package/subscription/src/models/PagingMetadata.js +55 -0
- package/{chargebee-hook → subscription}/src/models/RestError.d.ts +1 -1
- package/{chargebee-hook → subscription}/src/models/RestError.js +1 -1
- package/subscription/src/models/SubscriberLink.d.ts +37 -0
- package/subscription/src/models/SubscriberLink.js +49 -0
- package/subscription/src/models/Subscription.d.ts +18 -23
- package/subscription/src/models/Subscription.js +19 -29
- package/subscription/src/models/SubscriptionCreationParameters.d.ts +44 -0
- package/subscription/src/models/SubscriptionCreationParameters.js +56 -0
- package/subscription/src/models/SubscriptionPlan.d.ts +69 -0
- package/subscription/src/models/SubscriptionPlan.js +59 -0
- package/subscription/src/models/SubscriptionPlanFeature.d.ts +44 -0
- package/subscription/src/models/SubscriptionPlanFeature.js +50 -0
- package/subscription/src/models/SubscriptionPlanFeatureId.d.ts +26 -0
- package/subscription/src/models/SubscriptionPlanFeatureId.js +49 -0
- package/subscription/src/models/SubscriptionPlanId.d.ts +25 -0
- package/subscription/src/models/SubscriptionPlanId.js +48 -0
- package/subscription/src/models/SubscriptionPlanLink.d.ts +38 -0
- package/subscription/src/models/SubscriptionPlanLink.js +50 -0
- package/subscription/src/models/SubscriptionPlanUpdateParameters.d.ts +62 -0
- package/subscription/src/models/SubscriptionPlanUpdateParameters.js +56 -0
- package/subscription/src/models/SubscriptionUpdateParameters.d.ts +62 -0
- package/subscription/src/models/SubscriptionUpdateParameters.js +57 -0
- package/subscription/src/models/index.d.ts +14 -1
- package/subscription/src/models/index.js +14 -1
- package/third-party/src/models/ThirdPartyLinkCreationParameters.d.ts +2 -5
- package/third-party/src/models/ThirdPartyLinkCreationParameters.js +2 -5
- package/user/src/models/NotificationTypeId.d.ts +2 -1
- package/user/src/models/NotificationTypeId.js +2 -1
- package/user/src/models/OffisanteStatus.d.ts +1 -3
- package/user/src/models/OffisanteStatus.js +2 -4
- package/user/src/models/User.d.ts +0 -8
- package/user/src/models/User.js +0 -2
- package/chargebee-hook/index.d.ts +0 -1
- package/chargebee-hook/index.js +0 -17
- package/chargebee-hook/src/apis/ChargebeeHookApi.d.ts +0 -31
- package/chargebee-hook/src/apis/ChargebeeHookApi.js +0 -134
- package/chargebee-hook/src/apis/index.d.ts +0 -1
- package/chargebee-hook/src/apis/index.js +0 -19
- package/chargebee-hook/src/index.d.ts +0 -3
- package/chargebee-hook/src/index.js +0 -21
- package/chargebee-hook/src/models/HookRequest.d.ts +0 -85
- package/chargebee-hook/src/models/HookRequest.js +0 -67
- package/chargebee-hook/src/models/index.d.ts +0 -2
- package/chargebee-hook/src/models/index.js +0 -20
- package/chargebee-hook/src/runtime.d.ts +0 -190
- package/chargebee-hook/src/runtime.js +0 -598
- package/rfx/src/apis/ManageRffApi.d.ts +0 -29
- package/rfx/src/models/RffCreationParameters.d.ts +0 -37
- package/rfx/src/models/RffCreationParameters.js +0 -51
- package/subscription/src/apis/SearchSubscriptionsApi.d.ts +0 -29
- package/subscription/src/models/SubscriptionStatus.d.ts +0 -39
- package/subscription/src/models/SubscriptionStatus.js +0 -62
package/subscription/src/apis/{SearchSubscriptionsApi.js → SearchSubscriptionPlanFeatureApi.js}
RENAMED
|
@@ -64,33 +64,27 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
66
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
-
exports.
|
|
67
|
+
exports.SearchSubscriptionPlanFeatureApi = 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 SearchSubscriptionPlanFeatureApi = /** @class */ (function (_super) {
|
|
74
|
+
__extends(SearchSubscriptionPlanFeatureApi, _super);
|
|
75
|
+
function SearchSubscriptionPlanFeatureApi() {
|
|
76
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
}
|
|
78
78
|
/**
|
|
79
|
-
* Get
|
|
79
|
+
* Get all subscription plan features
|
|
80
80
|
*/
|
|
81
|
-
|
|
81
|
+
SearchSubscriptionPlanFeatureApi.prototype.getSubscriptionPlanFeaturesRaw = function (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
|
-
}
|
|
90
87
|
queryParameters = {};
|
|
91
|
-
if (requestParameters['ownerIdEq'] != null) {
|
|
92
|
-
queryParameters['ownerId[eq]'] = requestParameters['ownerIdEq'];
|
|
93
|
-
}
|
|
94
88
|
headerParameters = {};
|
|
95
89
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
96
90
|
_a = headerParameters;
|
|
@@ -112,7 +106,7 @@ var SearchSubscriptionsApi = /** @class */ (function (_super) {
|
|
|
112
106
|
case 4:
|
|
113
107
|
_c.trys.push([4, 6, , 7]);
|
|
114
108
|
return [4 /*yield*/, this.request({
|
|
115
|
-
path: "/subscriptions",
|
|
109
|
+
path: "/subscriptions/plans/features",
|
|
116
110
|
method: 'GET',
|
|
117
111
|
headers: headerParameters,
|
|
118
112
|
query: queryParameters,
|
|
@@ -121,7 +115,7 @@ var SearchSubscriptionsApi = /** @class */ (function (_super) {
|
|
|
121
115
|
response = _c.sent();
|
|
122
116
|
contentType = response.headers.get("content-type");
|
|
123
117
|
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
124
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.
|
|
118
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.SubscriptionPlanFeatureFromJSON); })];
|
|
125
119
|
}
|
|
126
120
|
else if (contentType && contentType.indexOf("text/plain") !== -1) {
|
|
127
121
|
return [2 /*return*/, new runtime.TextApiResponse(response)];
|
|
@@ -141,14 +135,14 @@ var SearchSubscriptionsApi = /** @class */ (function (_super) {
|
|
|
141
135
|
});
|
|
142
136
|
};
|
|
143
137
|
/**
|
|
144
|
-
* Get
|
|
138
|
+
* Get all subscription plan features
|
|
145
139
|
*/
|
|
146
|
-
|
|
140
|
+
SearchSubscriptionPlanFeatureApi.prototype.getSubscriptionPlanFeatures = function (initOverrides) {
|
|
147
141
|
return __awaiter(this, void 0, void 0, function () {
|
|
148
142
|
var response;
|
|
149
143
|
return __generator(this, function (_a) {
|
|
150
144
|
switch (_a.label) {
|
|
151
|
-
case 0: return [4 /*yield*/, this.
|
|
145
|
+
case 0: return [4 /*yield*/, this.getSubscriptionPlanFeaturesRaw(initOverrides)];
|
|
152
146
|
case 1:
|
|
153
147
|
response = _a.sent();
|
|
154
148
|
return [4 /*yield*/, response.value()];
|
|
@@ -157,6 +151,6 @@ var SearchSubscriptionsApi = /** @class */ (function (_super) {
|
|
|
157
151
|
});
|
|
158
152
|
});
|
|
159
153
|
};
|
|
160
|
-
return
|
|
154
|
+
return SearchSubscriptionPlanFeatureApi;
|
|
161
155
|
}(runtime.BaseAPI));
|
|
162
|
-
exports.
|
|
156
|
+
exports.SearchSubscriptionPlanFeatureApi = SearchSubscriptionPlanFeatureApi;
|
|
@@ -1 +1,5 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './ManageSubscriptionApi';
|
|
2
|
+
export * from './ManageSubscriptionPlanApi';
|
|
3
|
+
export * from './SearchSubscriptionApi';
|
|
4
|
+
export * from './SearchSubscriptionPlanApi';
|
|
5
|
+
export * from './SearchSubscriptionPlanFeatureApi';
|
|
@@ -16,4 +16,8 @@ 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("./
|
|
19
|
+
__exportStar(require("./ManageSubscriptionApi"), exports);
|
|
20
|
+
__exportStar(require("./ManageSubscriptionPlanApi"), exports);
|
|
21
|
+
__exportStar(require("./SearchSubscriptionApi"), exports);
|
|
22
|
+
__exportStar(require("./SearchSubscriptionPlanApi"), exports);
|
|
23
|
+
__exportStar(require("./SearchSubscriptionPlanFeatureApi"), exports);
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
* A base type of objects representing links to resources.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface HttpLink
|
|
16
|
+
*/
|
|
17
|
+
export interface HttpLink {
|
|
18
|
+
/**
|
|
19
|
+
* Any URL that is using http or https protocol
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof HttpLink
|
|
22
|
+
*/
|
|
23
|
+
href: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the HttpLink interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfHttpLink(value: object): value is HttpLink;
|
|
29
|
+
export declare function HttpLinkFromJSON(json: any): HttpLink;
|
|
30
|
+
export declare function HttpLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): HttpLink;
|
|
31
|
+
export declare function HttpLinkToJSON(value?: HttpLink | null): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
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.HttpLinkToJSON = exports.HttpLinkFromJSONTyped = exports.HttpLinkFromJSON = exports.instanceOfHttpLink = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the HttpLink interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfHttpLink(value) {
|
|
21
|
+
if (!('href' in value) || value['href'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfHttpLink = instanceOfHttpLink;
|
|
26
|
+
function HttpLinkFromJSON(json) {
|
|
27
|
+
return HttpLinkFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.HttpLinkFromJSON = HttpLinkFromJSON;
|
|
30
|
+
function HttpLinkFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'href': json['href'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
exports.HttpLinkFromJSONTyped = HttpLinkFromJSONTyped;
|
|
39
|
+
function HttpLinkToJSON(value) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'href': value['href'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
exports.HttpLinkToJSON = HttpLinkToJSON;
|
|
@@ -0,0 +1,32 @@
|
|
|
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 type { PagingMetadata } from './PagingMetadata';
|
|
13
|
+
/**
|
|
14
|
+
* An object which is not complete (only a specific page is available)
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PaginatedObject
|
|
17
|
+
*/
|
|
18
|
+
export interface PaginatedObject {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {PagingMetadata}
|
|
22
|
+
* @memberof PaginatedObject
|
|
23
|
+
*/
|
|
24
|
+
metadata: PagingMetadata;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the PaginatedObject interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfPaginatedObject(value: object): value is PaginatedObject;
|
|
30
|
+
export declare function PaginatedObjectFromJSON(json: any): PaginatedObject;
|
|
31
|
+
export declare function PaginatedObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedObject;
|
|
32
|
+
export declare function PaginatedObjectToJSON(value?: PaginatedObject | null): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
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.PaginatedObjectToJSON = exports.PaginatedObjectFromJSONTyped = exports.PaginatedObjectFromJSON = exports.instanceOfPaginatedObject = void 0;
|
|
17
|
+
var PagingMetadata_1 = require("./PagingMetadata");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the PaginatedObject interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfPaginatedObject(value) {
|
|
22
|
+
if (!('metadata' in value) || value['metadata'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
exports.instanceOfPaginatedObject = instanceOfPaginatedObject;
|
|
27
|
+
function PaginatedObjectFromJSON(json) {
|
|
28
|
+
return PaginatedObjectFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
exports.PaginatedObjectFromJSON = PaginatedObjectFromJSON;
|
|
31
|
+
function PaginatedObjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'metadata': (json['metadata'] === null || json['metadata'] === undefined) ? json['metadata'] : (0, PagingMetadata_1.PagingMetadataFromJSON)(json['metadata']),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
exports.PaginatedObjectFromJSONTyped = PaginatedObjectFromJSONTyped;
|
|
40
|
+
function PaginatedObjectToJSON(value) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'metadata': (0, PagingMetadata_1.PagingMetadataToJSON)(value['metadata']),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
exports.PaginatedObjectToJSON = PaginatedObjectToJSON;
|
|
@@ -0,0 +1,39 @@
|
|
|
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 type { PagingMetadata } from './PagingMetadata';
|
|
13
|
+
import type { Subscription } from './Subscription';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PaginatedSubscriptions
|
|
18
|
+
*/
|
|
19
|
+
export interface PaginatedSubscriptions {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {PagingMetadata}
|
|
23
|
+
* @memberof PaginatedSubscriptions
|
|
24
|
+
*/
|
|
25
|
+
metadata: PagingMetadata;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Array<Subscription>}
|
|
29
|
+
* @memberof PaginatedSubscriptions
|
|
30
|
+
*/
|
|
31
|
+
records?: Array<Subscription>;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the PaginatedSubscriptions interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfPaginatedSubscriptions(value: object): value is PaginatedSubscriptions;
|
|
37
|
+
export declare function PaginatedSubscriptionsFromJSON(json: any): PaginatedSubscriptions;
|
|
38
|
+
export declare function PaginatedSubscriptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedSubscriptions;
|
|
39
|
+
export declare function PaginatedSubscriptionsToJSON(value?: PaginatedSubscriptions | 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 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.PaginatedSubscriptionsToJSON = exports.PaginatedSubscriptionsFromJSONTyped = exports.PaginatedSubscriptionsFromJSON = exports.instanceOfPaginatedSubscriptions = void 0;
|
|
17
|
+
var PagingMetadata_1 = require("./PagingMetadata");
|
|
18
|
+
var Subscription_1 = require("./Subscription");
|
|
19
|
+
/**
|
|
20
|
+
* Check if a given object implements the PaginatedSubscriptions interface.
|
|
21
|
+
*/
|
|
22
|
+
function instanceOfPaginatedSubscriptions(value) {
|
|
23
|
+
if (!('metadata' in value) || value['metadata'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
exports.instanceOfPaginatedSubscriptions = instanceOfPaginatedSubscriptions;
|
|
28
|
+
function PaginatedSubscriptionsFromJSON(json) {
|
|
29
|
+
return PaginatedSubscriptionsFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
exports.PaginatedSubscriptionsFromJSON = PaginatedSubscriptionsFromJSON;
|
|
32
|
+
function PaginatedSubscriptionsFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'metadata': (json['metadata'] === null || json['metadata'] === undefined) ? json['metadata'] : (0, PagingMetadata_1.PagingMetadataFromJSON)(json['metadata']),
|
|
38
|
+
'records': (json['records'] === null || json['records'] === undefined) ? json['records'] : json['records'].map(Subscription_1.SubscriptionFromJSON),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
exports.PaginatedSubscriptionsFromJSONTyped = PaginatedSubscriptionsFromJSONTyped;
|
|
42
|
+
function PaginatedSubscriptionsToJSON(value) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'metadata': (0, PagingMetadata_1.PagingMetadataToJSON)(value['metadata']),
|
|
48
|
+
'records': (value['records'] === null || value['records'] === undefined) ? value['records'] : value['records'].map(Subscription_1.SubscriptionToJSON),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
exports.PaginatedSubscriptionsToJSON = PaginatedSubscriptionsToJSON;
|
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
* All information about current and available pages
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PagingMetadata
|
|
16
|
+
*/
|
|
17
|
+
export interface PagingMetadata {
|
|
18
|
+
/**
|
|
19
|
+
* Current page requested. Start at 0. May not be present if user do not request specific page.
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof PagingMetadata
|
|
22
|
+
*/
|
|
23
|
+
page?: number;
|
|
24
|
+
/**
|
|
25
|
+
* Number of item per page. 0 means that you only required metadata. May not be present if user do not request specific perPage.
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof PagingMetadata
|
|
28
|
+
*/
|
|
29
|
+
perPage?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Total number of item visible by the client in the request
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof PagingMetadata
|
|
34
|
+
*/
|
|
35
|
+
totalVisible: number;
|
|
36
|
+
/**
|
|
37
|
+
* Total number of item found in database
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof PagingMetadata
|
|
40
|
+
*/
|
|
41
|
+
totalFound: number;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the PagingMetadata interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfPagingMetadata(value: object): value is PagingMetadata;
|
|
47
|
+
export declare function PagingMetadataFromJSON(json: any): PagingMetadata;
|
|
48
|
+
export declare function PagingMetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PagingMetadata;
|
|
49
|
+
export declare function PagingMetadataToJSON(value?: PagingMetadata | null): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
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.PagingMetadataToJSON = exports.PagingMetadataFromJSONTyped = exports.PagingMetadataFromJSON = exports.instanceOfPagingMetadata = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the PagingMetadata interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfPagingMetadata(value) {
|
|
21
|
+
if (!('totalVisible' in value) || value['totalVisible'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('totalFound' in value) || value['totalFound'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
exports.instanceOfPagingMetadata = instanceOfPagingMetadata;
|
|
28
|
+
function PagingMetadataFromJSON(json) {
|
|
29
|
+
return PagingMetadataFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
exports.PagingMetadataFromJSON = PagingMetadataFromJSON;
|
|
32
|
+
function PagingMetadataFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'page': json['page'],
|
|
38
|
+
'perPage': json['perPage'],
|
|
39
|
+
'totalVisible': json['totalVisible'],
|
|
40
|
+
'totalFound': json['totalFound'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
exports.PagingMetadataFromJSONTyped = PagingMetadataFromJSONTyped;
|
|
44
|
+
function PagingMetadataToJSON(value) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'page': value['page'],
|
|
50
|
+
'perPage': value['perPage'],
|
|
51
|
+
'totalVisible': value['totalVisible'],
|
|
52
|
+
'totalFound': value['totalFound'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
exports.PagingMetadataToJSON = PagingMetadataToJSON;
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
* Subscriber link
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SubscriberLink
|
|
16
|
+
*/
|
|
17
|
+
export interface SubscriberLink {
|
|
18
|
+
/**
|
|
19
|
+
* Any URL that is using http or https protocol
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SubscriberLink
|
|
22
|
+
*/
|
|
23
|
+
href: string;
|
|
24
|
+
/**
|
|
25
|
+
* User id
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof SubscriberLink
|
|
28
|
+
*/
|
|
29
|
+
id?: number;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the SubscriberLink interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfSubscriberLink(value: object): value is SubscriberLink;
|
|
35
|
+
export declare function SubscriberLinkFromJSON(json: any): SubscriberLink;
|
|
36
|
+
export declare function SubscriberLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriberLink;
|
|
37
|
+
export declare function SubscriberLinkToJSON(value?: SubscriberLink | 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.SubscriberLinkToJSON = exports.SubscriberLinkFromJSONTyped = exports.SubscriberLinkFromJSON = exports.instanceOfSubscriberLink = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the SubscriberLink interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfSubscriberLink(value) {
|
|
21
|
+
if (!('href' in value) || value['href'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfSubscriberLink = instanceOfSubscriberLink;
|
|
26
|
+
function SubscriberLinkFromJSON(json) {
|
|
27
|
+
return SubscriberLinkFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.SubscriberLinkFromJSON = SubscriberLinkFromJSON;
|
|
30
|
+
function SubscriberLinkFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'href': json['href'],
|
|
36
|
+
'id': json['id'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
exports.SubscriberLinkFromJSONTyped = SubscriberLinkFromJSONTyped;
|
|
40
|
+
function SubscriberLinkToJSON(value) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'href': value['href'],
|
|
46
|
+
'id': value['id'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
exports.SubscriberLinkToJSON = SubscriberLinkToJSON;
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
12
|
+
import type { SubscriberLink } from './SubscriberLink';
|
|
13
|
+
import type { SubscriptionPlanLink } from './SubscriptionPlanLink';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
@@ -18,58 +19,52 @@ import type { SubscriptionStatus } from './SubscriptionStatus';
|
|
|
18
19
|
export interface Subscription {
|
|
19
20
|
/**
|
|
20
21
|
*
|
|
21
|
-
* @type {
|
|
22
|
+
* @type {number}
|
|
22
23
|
* @memberof Subscription
|
|
23
24
|
*/
|
|
24
|
-
|
|
25
|
+
id?: number;
|
|
25
26
|
/**
|
|
26
27
|
*
|
|
27
|
-
* @type {
|
|
28
|
+
* @type {SubscriberLink}
|
|
28
29
|
* @memberof Subscription
|
|
29
30
|
*/
|
|
30
|
-
|
|
31
|
+
subscriber?: SubscriberLink;
|
|
31
32
|
/**
|
|
32
33
|
*
|
|
33
|
-
* @type {
|
|
34
|
+
* @type {SubscriptionPlanLink}
|
|
34
35
|
* @memberof Subscription
|
|
35
36
|
*/
|
|
36
|
-
|
|
37
|
+
plan?: SubscriptionPlanLink;
|
|
37
38
|
/**
|
|
38
39
|
*
|
|
39
|
-
* @type {
|
|
40
|
+
* @type {number}
|
|
40
41
|
* @memberof Subscription
|
|
41
42
|
*/
|
|
42
|
-
|
|
43
|
+
billingPrice?: number;
|
|
43
44
|
/**
|
|
44
|
-
*
|
|
45
|
+
* Date since when the subscription is active. Ex : 12-02-2025 means that subscription is active from this date (INCLUDED)
|
|
45
46
|
* @type {Date}
|
|
46
47
|
* @memberof Subscription
|
|
47
48
|
*/
|
|
48
|
-
|
|
49
|
+
validFrom?: Date;
|
|
49
50
|
/**
|
|
50
|
-
*
|
|
51
|
+
* Date until when the subscription is active. Ex : 12-02-2025 means that subscription is active until this date (EXCLUDED)
|
|
51
52
|
* @type {Date}
|
|
52
53
|
* @memberof Subscription
|
|
53
54
|
*/
|
|
54
|
-
|
|
55
|
+
validTo?: Date | null;
|
|
55
56
|
/**
|
|
56
57
|
*
|
|
57
58
|
* @type {Date}
|
|
58
59
|
* @memberof Subscription
|
|
59
60
|
*/
|
|
60
|
-
|
|
61
|
+
nextBillingDate?: Date | null;
|
|
61
62
|
/**
|
|
62
|
-
*
|
|
63
|
-
* @type {
|
|
64
|
-
* @memberof Subscription
|
|
65
|
-
*/
|
|
66
|
-
trialStart?: Date;
|
|
67
|
-
/**
|
|
68
|
-
*
|
|
69
|
-
* @type {Date}
|
|
63
|
+
* True if this subscription is a trial, False if not
|
|
64
|
+
* @type {boolean}
|
|
70
65
|
* @memberof Subscription
|
|
71
66
|
*/
|
|
72
|
-
|
|
67
|
+
isTrial?: boolean;
|
|
73
68
|
}
|
|
74
69
|
/**
|
|
75
70
|
* Check if a given object implements the Subscription interface.
|