@lcdp/api-react-rest-client 2.14.3-LDS-4892.18154750151 → 2.14.3-LDS-4918-avoid-infinite-error-on-smuggle.18157164080
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/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 +38 -6
- package/subscription/src/models/Subscription.js +19 -6
- 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 -0
- package/subscription/src/models/index.js +14 -0
- package/third-party/src/models/ThirdPartyLinkCreationParameters.d.ts +2 -5
- package/third-party/src/models/ThirdPartyLinkCreationParameters.js +2 -5
- 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
|
@@ -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 +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';
|
|
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,4 +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);
|
|
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.
|
|
@@ -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);
|
|
@@ -1,85 +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
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface HookRequest
|
|
16
|
-
*/
|
|
17
|
-
export interface HookRequest {
|
|
18
|
-
/**
|
|
19
|
-
* API version (e.g., v2)
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof HookRequest
|
|
22
|
-
*/
|
|
23
|
-
api_version?: string;
|
|
24
|
-
/**
|
|
25
|
-
* Event type (e.g., subscription_created, customer_updated)
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof HookRequest
|
|
28
|
-
*/
|
|
29
|
-
event_type: string;
|
|
30
|
-
/**
|
|
31
|
-
* Unique event identifier
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof HookRequest
|
|
34
|
-
*/
|
|
35
|
-
id: string;
|
|
36
|
-
/**
|
|
37
|
-
* Object type (e.g., event)
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof HookRequest
|
|
40
|
-
*/
|
|
41
|
-
object?: string;
|
|
42
|
-
/**
|
|
43
|
-
* Event timestamp (epoch seconds)
|
|
44
|
-
* @type {number}
|
|
45
|
-
* @memberof HookRequest
|
|
46
|
-
*/
|
|
47
|
-
occurred_at?: number;
|
|
48
|
-
/**
|
|
49
|
-
* Event source (e.g., admin_console, api)
|
|
50
|
-
* @type {string}
|
|
51
|
-
* @memberof HookRequest
|
|
52
|
-
*/
|
|
53
|
-
source?: string;
|
|
54
|
-
/**
|
|
55
|
-
* User who triggered the event
|
|
56
|
-
* @type {string}
|
|
57
|
-
* @memberof HookRequest
|
|
58
|
-
*/
|
|
59
|
-
user?: string;
|
|
60
|
-
/**
|
|
61
|
-
* Webhook status (e.g., scheduled)
|
|
62
|
-
* @type {string}
|
|
63
|
-
* @memberof HookRequest
|
|
64
|
-
*/
|
|
65
|
-
webhook_status?: string;
|
|
66
|
-
/**
|
|
67
|
-
* Event-specific content containing customer, subscription, etc.
|
|
68
|
-
* @type {object}
|
|
69
|
-
* @memberof HookRequest
|
|
70
|
-
*/
|
|
71
|
-
content?: object;
|
|
72
|
-
/**
|
|
73
|
-
* List of webhooks
|
|
74
|
-
* @type {Array<object>}
|
|
75
|
-
* @memberof HookRequest
|
|
76
|
-
*/
|
|
77
|
-
webhooks?: Array<object>;
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* Check if a given object implements the HookRequest interface.
|
|
81
|
-
*/
|
|
82
|
-
export declare function instanceOfHookRequest(value: object): value is HookRequest;
|
|
83
|
-
export declare function HookRequestFromJSON(json: any): HookRequest;
|
|
84
|
-
export declare function HookRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): HookRequest;
|
|
85
|
-
export declare function HookRequestToJSON(value?: HookRequest | null): any;
|
|
@@ -1,67 +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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.HookRequestToJSON = exports.HookRequestFromJSONTyped = exports.HookRequestFromJSON = exports.instanceOfHookRequest = void 0;
|
|
17
|
-
/**
|
|
18
|
-
* Check if a given object implements the HookRequest interface.
|
|
19
|
-
*/
|
|
20
|
-
function instanceOfHookRequest(value) {
|
|
21
|
-
if (!('event_type' in value) || value['event_type'] === undefined)
|
|
22
|
-
return false;
|
|
23
|
-
if (!('id' in value) || value['id'] === undefined)
|
|
24
|
-
return false;
|
|
25
|
-
return true;
|
|
26
|
-
}
|
|
27
|
-
exports.instanceOfHookRequest = instanceOfHookRequest;
|
|
28
|
-
function HookRequestFromJSON(json) {
|
|
29
|
-
return HookRequestFromJSONTyped(json, false);
|
|
30
|
-
}
|
|
31
|
-
exports.HookRequestFromJSON = HookRequestFromJSON;
|
|
32
|
-
function HookRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
-
if (json == null) {
|
|
34
|
-
return json;
|
|
35
|
-
}
|
|
36
|
-
return {
|
|
37
|
-
'api_version': json['api_version'],
|
|
38
|
-
'event_type': json['event_type'],
|
|
39
|
-
'id': json['id'],
|
|
40
|
-
'object': json['object'],
|
|
41
|
-
'occurred_at': json['occurred_at'],
|
|
42
|
-
'source': json['source'],
|
|
43
|
-
'user': json['user'],
|
|
44
|
-
'webhook_status': json['webhook_status'],
|
|
45
|
-
'content': json['content'],
|
|
46
|
-
'webhooks': json['webhooks'],
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
exports.HookRequestFromJSONTyped = HookRequestFromJSONTyped;
|
|
50
|
-
function HookRequestToJSON(value) {
|
|
51
|
-
if (value == null) {
|
|
52
|
-
return value;
|
|
53
|
-
}
|
|
54
|
-
return {
|
|
55
|
-
'api_version': value['api_version'],
|
|
56
|
-
'event_type': value['event_type'],
|
|
57
|
-
'id': value['id'],
|
|
58
|
-
'object': value['object'],
|
|
59
|
-
'occurred_at': value['occurred_at'],
|
|
60
|
-
'source': value['source'],
|
|
61
|
-
'user': value['user'],
|
|
62
|
-
'webhook_status': value['webhook_status'],
|
|
63
|
-
'content': value['content'],
|
|
64
|
-
'webhooks': value['webhooks'],
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
exports.HookRequestToJSON = HookRequestToJSON;
|
|
@@ -1,20 +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("./HookRequest"), exports);
|
|
20
|
-
__exportStar(require("./RestError"), exports);
|