@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
|
@@ -0,0 +1,62 @@
|
|
|
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 { SubscriptionPlanFeatureId } from './SubscriptionPlanFeatureId';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface SubscriptionPlanUpdateParameters
|
|
17
|
+
*/
|
|
18
|
+
export interface SubscriptionPlanUpdateParameters {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof SubscriptionPlanUpdateParameters
|
|
23
|
+
*/
|
|
24
|
+
name?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof SubscriptionPlanUpdateParameters
|
|
29
|
+
*/
|
|
30
|
+
description?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof SubscriptionPlanUpdateParameters
|
|
35
|
+
*/
|
|
36
|
+
price?: number;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<SubscriptionPlanFeatureId>}
|
|
40
|
+
* @memberof SubscriptionPlanUpdateParameters
|
|
41
|
+
*/
|
|
42
|
+
features?: Array<SubscriptionPlanFeatureId>;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {boolean}
|
|
46
|
+
* @memberof SubscriptionPlanUpdateParameters
|
|
47
|
+
*/
|
|
48
|
+
active?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof SubscriptionPlanUpdateParameters
|
|
53
|
+
*/
|
|
54
|
+
position?: number;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the SubscriptionPlanUpdateParameters interface.
|
|
58
|
+
*/
|
|
59
|
+
export declare function instanceOfSubscriptionPlanUpdateParameters(value: object): value is SubscriptionPlanUpdateParameters;
|
|
60
|
+
export declare function SubscriptionPlanUpdateParametersFromJSON(json: any): SubscriptionPlanUpdateParameters;
|
|
61
|
+
export declare function SubscriptionPlanUpdateParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionPlanUpdateParameters;
|
|
62
|
+
export declare function SubscriptionPlanUpdateParametersToJSON(value?: SubscriptionPlanUpdateParameters | null): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
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.SubscriptionPlanUpdateParametersToJSON = exports.SubscriptionPlanUpdateParametersFromJSONTyped = exports.SubscriptionPlanUpdateParametersFromJSON = exports.instanceOfSubscriptionPlanUpdateParameters = void 0;
|
|
17
|
+
var SubscriptionPlanFeatureId_1 = require("./SubscriptionPlanFeatureId");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the SubscriptionPlanUpdateParameters interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfSubscriptionPlanUpdateParameters(value) {
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
exports.instanceOfSubscriptionPlanUpdateParameters = instanceOfSubscriptionPlanUpdateParameters;
|
|
25
|
+
function SubscriptionPlanUpdateParametersFromJSON(json) {
|
|
26
|
+
return SubscriptionPlanUpdateParametersFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
exports.SubscriptionPlanUpdateParametersFromJSON = SubscriptionPlanUpdateParametersFromJSON;
|
|
29
|
+
function SubscriptionPlanUpdateParametersFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'name': json['name'],
|
|
35
|
+
'description': json['description'],
|
|
36
|
+
'price': json['price'],
|
|
37
|
+
'features': (json['features'] === null || json['features'] === undefined) ? json['features'] : json['features'].map(SubscriptionPlanFeatureId_1.SubscriptionPlanFeatureIdFromJSON),
|
|
38
|
+
'active': json['active'],
|
|
39
|
+
'position': json['position'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
exports.SubscriptionPlanUpdateParametersFromJSONTyped = SubscriptionPlanUpdateParametersFromJSONTyped;
|
|
43
|
+
function SubscriptionPlanUpdateParametersToJSON(value) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'name': value['name'],
|
|
49
|
+
'description': value['description'],
|
|
50
|
+
'price': value['price'],
|
|
51
|
+
'features': (value['features'] === null || value['features'] === undefined) ? value['features'] : value['features'].map(SubscriptionPlanFeatureId_1.SubscriptionPlanFeatureIdToJSON),
|
|
52
|
+
'active': value['active'],
|
|
53
|
+
'position': value['position'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
exports.SubscriptionPlanUpdateParametersToJSON = SubscriptionPlanUpdateParametersToJSON;
|
|
@@ -0,0 +1,62 @@
|
|
|
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 { SubscriptionPlanId } from './SubscriptionPlanId';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface SubscriptionUpdateParameters
|
|
17
|
+
*/
|
|
18
|
+
export interface SubscriptionUpdateParameters {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {SubscriptionPlanId}
|
|
22
|
+
* @memberof SubscriptionUpdateParameters
|
|
23
|
+
*/
|
|
24
|
+
planId?: SubscriptionPlanId;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof SubscriptionUpdateParameters
|
|
29
|
+
*/
|
|
30
|
+
billingPrice?: number;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {Date}
|
|
34
|
+
* @memberof SubscriptionUpdateParameters
|
|
35
|
+
*/
|
|
36
|
+
validFrom?: Date;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Date}
|
|
40
|
+
* @memberof SubscriptionUpdateParameters
|
|
41
|
+
*/
|
|
42
|
+
validTo?: Date | null;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Date}
|
|
46
|
+
* @memberof SubscriptionUpdateParameters
|
|
47
|
+
*/
|
|
48
|
+
nextBillingDate?: Date | null;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {boolean}
|
|
52
|
+
* @memberof SubscriptionUpdateParameters
|
|
53
|
+
*/
|
|
54
|
+
isTrial?: boolean;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the SubscriptionUpdateParameters interface.
|
|
58
|
+
*/
|
|
59
|
+
export declare function instanceOfSubscriptionUpdateParameters(value: object): value is SubscriptionUpdateParameters;
|
|
60
|
+
export declare function SubscriptionUpdateParametersFromJSON(json: any): SubscriptionUpdateParameters;
|
|
61
|
+
export declare function SubscriptionUpdateParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionUpdateParameters;
|
|
62
|
+
export declare function SubscriptionUpdateParametersToJSON(value?: SubscriptionUpdateParameters | null): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
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.SubscriptionUpdateParametersToJSON = exports.SubscriptionUpdateParametersFromJSONTyped = exports.SubscriptionUpdateParametersFromJSON = exports.instanceOfSubscriptionUpdateParameters = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
var SubscriptionPlanId_1 = require("./SubscriptionPlanId");
|
|
19
|
+
/**
|
|
20
|
+
* Check if a given object implements the SubscriptionUpdateParameters interface.
|
|
21
|
+
*/
|
|
22
|
+
function instanceOfSubscriptionUpdateParameters(value) {
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfSubscriptionUpdateParameters = instanceOfSubscriptionUpdateParameters;
|
|
26
|
+
function SubscriptionUpdateParametersFromJSON(json) {
|
|
27
|
+
return SubscriptionUpdateParametersFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.SubscriptionUpdateParametersFromJSON = SubscriptionUpdateParametersFromJSON;
|
|
30
|
+
function SubscriptionUpdateParametersFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'planId': (json['planId'] === null || json['planId'] === undefined) ? json['planId'] : (0, SubscriptionPlanId_1.SubscriptionPlanIdFromJSON)(json['planId']),
|
|
36
|
+
'billingPrice': json['billingPrice'],
|
|
37
|
+
'validFrom': (json['validFrom'] === null || json['validFrom'] === undefined) ? json['validFrom'] : new Date(json['validFrom']),
|
|
38
|
+
'validTo': (json['validTo'] === null || json['validTo'] === undefined) ? json['validTo'] : new Date(json['validTo']),
|
|
39
|
+
'nextBillingDate': (json['nextBillingDate'] === null || json['nextBillingDate'] === undefined) ? json['nextBillingDate'] : new Date(json['nextBillingDate']),
|
|
40
|
+
'isTrial': json['isTrial'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
exports.SubscriptionUpdateParametersFromJSONTyped = SubscriptionUpdateParametersFromJSONTyped;
|
|
44
|
+
function SubscriptionUpdateParametersToJSON(value) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'planId': (0, SubscriptionPlanId_1.SubscriptionPlanIdToJSON)(value['planId']),
|
|
50
|
+
'billingPrice': value['billingPrice'],
|
|
51
|
+
'validFrom': (value['validFrom'] === null || value['validFrom'] === undefined) ? value['validFrom'] : (0, runtime_1.toDateISOString)(value['validFrom']),
|
|
52
|
+
'validTo': (value['validTo'] === null || value['validTo'] === undefined) ? value['validTo'] : (0, runtime_1.toDateISOString)(value['validTo']),
|
|
53
|
+
'nextBillingDate': (value['nextBillingDate'] === null || value['nextBillingDate'] === undefined) ? value['nextBillingDate'] : (0, runtime_1.toDateISOString)(value['nextBillingDate']),
|
|
54
|
+
'isTrial': value['isTrial'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
exports.SubscriptionUpdateParametersToJSON = SubscriptionUpdateParametersToJSON;
|
|
@@ -1,2 +1,15 @@
|
|
|
1
|
+
export * from './HttpLink';
|
|
2
|
+
export * from './PaginatedObject';
|
|
3
|
+
export * from './PaginatedSubscriptions';
|
|
4
|
+
export * from './PagingMetadata';
|
|
5
|
+
export * from './RestError';
|
|
6
|
+
export * from './SubscriberLink';
|
|
1
7
|
export * from './Subscription';
|
|
2
|
-
export * from './
|
|
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,5 +16,18 @@ 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);
|
|
19
25
|
__exportStar(require("./Subscription"), exports);
|
|
20
|
-
__exportStar(require("./
|
|
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,11 +32,8 @@ export interface ThirdPartyLinkCreationParameters {
|
|
|
32
32
|
* @export
|
|
33
33
|
*/
|
|
34
34
|
export declare const ThirdPartyLinkCreationParametersSlugEnum: {
|
|
35
|
-
readonly
|
|
36
|
-
readonly
|
|
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";
|
|
35
|
+
readonly PHARMACY_STATISTICS_DASHBOARD: "BADGES_PHARMACY_STATISTICS_DASHBOARD";
|
|
36
|
+
readonly LABORATORY_STATISTICS_DASHBOARD: "BADGES_LABORATORY_STATISTICS_DASHBOARD";
|
|
40
37
|
};
|
|
41
38
|
export declare type ThirdPartyLinkCreationParametersSlugEnum = typeof ThirdPartyLinkCreationParametersSlugEnum[keyof typeof ThirdPartyLinkCreationParametersSlugEnum];
|
|
42
39
|
/**
|
|
@@ -18,11 +18,8 @@ exports.ThirdPartyLinkCreationParametersToJSON = exports.ThirdPartyLinkCreationP
|
|
|
18
18
|
* @export
|
|
19
19
|
*/
|
|
20
20
|
exports.ThirdPartyLinkCreationParametersSlugEnum = {
|
|
21
|
-
|
|
22
|
-
|
|
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'
|
|
21
|
+
PHARMACY_STATISTICS_DASHBOARD: 'BADGES_PHARMACY_STATISTICS_DASHBOARD',
|
|
22
|
+
LABORATORY_STATISTICS_DASHBOARD: 'BADGES_LABORATORY_STATISTICS_DASHBOARD'
|
|
26
23
|
};
|
|
27
24
|
/**
|
|
28
25
|
* Check if a given object implements the ThirdPartyLinkCreationParameters interface.
|
|
@@ -54,7 +54,8 @@ 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
|
|
57
|
+
readonly PHARMAIDE_FIRST_SUBSCRIPTION: "PHARMAIDE_FIRST_SUBSCRIPTION";
|
|
58
|
+
readonly PHARMAIDE_SB_TEST_EXPIRATION: "PHARMAIDE_SB_TEST_EXPIRATION";
|
|
58
59
|
readonly REQUEST_FOR_ORDER_INVOICE: "REQUEST_FOR_ORDER_INVOICE";
|
|
59
60
|
readonly CLIENT_BADGE_RECEIVED: "CLIENT_BADGE_RECEIVED";
|
|
60
61
|
readonly CLIENT_BADGE_LOST: "CLIENT_BADGE_LOST";
|
|
@@ -59,7 +59,8 @@ 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
|
-
|
|
62
|
+
PHARMAIDE_FIRST_SUBSCRIPTION: 'PHARMAIDE_FIRST_SUBSCRIPTION',
|
|
63
|
+
PHARMAIDE_SB_TEST_EXPIRATION: 'PHARMAIDE_SB_TEST_EXPIRATION',
|
|
63
64
|
REQUEST_FOR_ORDER_INVOICE: 'REQUEST_FOR_ORDER_INVOICE',
|
|
64
65
|
CLIENT_BADGE_RECEIVED: 'CLIENT_BADGE_RECEIVED',
|
|
65
66
|
CLIENT_BADGE_LOST: 'CLIENT_BADGE_LOST',
|
|
@@ -11,10 +11,9 @@
|
|
|
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 and
|
|
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
|
|
18
17
|
*
|
|
19
18
|
* @export
|
|
20
19
|
*/
|
|
@@ -22,7 +21,6 @@ export declare const OffisanteStatus: {
|
|
|
22
21
|
readonly SET: "SET";
|
|
23
22
|
readonly NOT_SET: "NOT_SET";
|
|
24
23
|
readonly IN_PROGRESS: "IN_PROGRESS";
|
|
25
|
-
readonly ACTIVE: "ACTIVE";
|
|
26
24
|
};
|
|
27
25
|
export declare type OffisanteStatus = typeof OffisanteStatus[keyof typeof OffisanteStatus];
|
|
28
26
|
export declare function instanceOfOffisanteStatus(value: any): boolean;
|
|
@@ -16,18 +16,16 @@ 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 and
|
|
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
|
|
23
22
|
*
|
|
24
23
|
* @export
|
|
25
24
|
*/
|
|
26
25
|
exports.OffisanteStatus = {
|
|
27
26
|
SET: 'SET',
|
|
28
27
|
NOT_SET: 'NOT_SET',
|
|
29
|
-
IN_PROGRESS: 'IN_PROGRESS'
|
|
30
|
-
ACTIVE: 'ACTIVE'
|
|
28
|
+
IN_PROGRESS: 'IN_PROGRESS'
|
|
31
29
|
};
|
|
32
30
|
function instanceOfOffisanteStatus(value) {
|
|
33
31
|
for (var key in exports.OffisanteStatus) {
|
|
@@ -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
|
-
capabilities?: {
|
|
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
|
-
'capabilities': json['capabilities'],
|
|
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
|
-
'capabilities': value['capabilities'],
|
|
132
130
|
'haveUnpaid': value['haveUnpaid'],
|
|
133
131
|
'holidayModeEnabled': value['holidayModeEnabled'],
|
|
134
132
|
'nickname': value['nickname'],
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './src';
|
package/chargebee-hook/index.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./src"), exports);
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* lcdp-monolith-service
|
|
3
|
-
* This is the REST API of LCDP Chargebee hook
|
|
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 { HookRequest } from '../models/index';
|
|
14
|
-
export interface HookOperationRequest {
|
|
15
|
-
hookRequest: HookRequest;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
*
|
|
19
|
-
*/
|
|
20
|
-
export declare class ChargebeeHookApi extends runtime.BaseAPI {
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* Call chargebee hook
|
|
24
|
-
*/
|
|
25
|
-
hookRaw(requestParameters: HookOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* Call chargebee hook
|
|
29
|
-
*/
|
|
30
|
-
hook(requestParameters: HookOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
31
|
-
}
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* lcdp-monolith-service
|
|
6
|
-
* This is the REST API of LCDP Chargebee hook
|
|
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.ChargebeeHookApi = void 0;
|
|
68
|
-
var runtime = require("../runtime");
|
|
69
|
-
var index_1 = require("../models/index");
|
|
70
|
-
/**
|
|
71
|
-
*
|
|
72
|
-
*/
|
|
73
|
-
var ChargebeeHookApi = /** @class */ (function (_super) {
|
|
74
|
-
__extends(ChargebeeHookApi, _super);
|
|
75
|
-
function ChargebeeHookApi() {
|
|
76
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
*
|
|
80
|
-
* Call chargebee hook
|
|
81
|
-
*/
|
|
82
|
-
ChargebeeHookApi.prototype.hookRaw = function (requestParameters, initOverrides) {
|
|
83
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
84
|
-
var queryParameters, headerParameters, response, response_1;
|
|
85
|
-
return __generator(this, function (_a) {
|
|
86
|
-
switch (_a.label) {
|
|
87
|
-
case 0:
|
|
88
|
-
if (requestParameters['hookRequest'] == null) {
|
|
89
|
-
throw new runtime.RequiredError('hookRequest', 'Required parameter "hookRequest" was null or undefined when calling hook().');
|
|
90
|
-
}
|
|
91
|
-
queryParameters = {};
|
|
92
|
-
headerParameters = {};
|
|
93
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
94
|
-
_a.label = 1;
|
|
95
|
-
case 1:
|
|
96
|
-
_a.trys.push([1, 3, , 4]);
|
|
97
|
-
return [4 /*yield*/, this.request({
|
|
98
|
-
path: "/chargebee-hooks",
|
|
99
|
-
method: 'POST',
|
|
100
|
-
headers: headerParameters,
|
|
101
|
-
query: queryParameters,
|
|
102
|
-
body: (0, index_1.HookRequestToJSON)(requestParameters['hookRequest']),
|
|
103
|
-
}, initOverrides)];
|
|
104
|
-
case 2:
|
|
105
|
-
response = _a.sent();
|
|
106
|
-
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
107
|
-
case 3:
|
|
108
|
-
response_1 = _a.sent();
|
|
109
|
-
console.debug(response_1);
|
|
110
|
-
throw response_1;
|
|
111
|
-
case 4: return [2 /*return*/];
|
|
112
|
-
}
|
|
113
|
-
});
|
|
114
|
-
});
|
|
115
|
-
};
|
|
116
|
-
/**
|
|
117
|
-
*
|
|
118
|
-
* Call chargebee hook
|
|
119
|
-
*/
|
|
120
|
-
ChargebeeHookApi.prototype.hook = function (requestParameters, initOverrides) {
|
|
121
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
122
|
-
return __generator(this, function (_a) {
|
|
123
|
-
switch (_a.label) {
|
|
124
|
-
case 0: return [4 /*yield*/, this.hookRaw(requestParameters, initOverrides)];
|
|
125
|
-
case 1:
|
|
126
|
-
_a.sent();
|
|
127
|
-
return [2 /*return*/];
|
|
128
|
-
}
|
|
129
|
-
});
|
|
130
|
-
});
|
|
131
|
-
};
|
|
132
|
-
return ChargebeeHookApi;
|
|
133
|
-
}(runtime.BaseAPI));
|
|
134
|
-
exports.ChargebeeHookApi = ChargebeeHookApi;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './ChargebeeHookApi';
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
/* tslint:disable */
|
|
18
|
-
/* eslint-disable */
|
|
19
|
-
__exportStar(require("./ChargebeeHookApi"), exports);
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
/* tslint:disable */
|
|
18
|
-
/* eslint-disable */
|
|
19
|
-
__exportStar(require("./runtime"), exports);
|
|
20
|
-
__exportStar(require("./apis/index"), exports);
|
|
21
|
-
__exportStar(require("./models/index"), exports);
|