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