@rasadov/lumoar-sdk 1.0.2 → 1.0.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/.openapi-generator/FILES +1 -1
- package/api.ts +96 -34
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +81 -88
- package/dist/api.d.ts +46 -17
- package/dist/api.js +89 -30
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +11 -0
- package/dist/configuration.js +3 -10
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/HealthApi.md +44 -0
- package/docs/PaymentsApi.md +13 -13
- package/docs/ResponseGetCustomerManagementSessionV1PaymentsCustomerManagementGet.md +22 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -40,7 +40,7 @@ docs/PolicyRead.md
|
|
|
40
40
|
docs/PolicyUpdate.md
|
|
41
41
|
docs/RegisterSchema.md
|
|
42
42
|
docs/RemoveFromCompany.md
|
|
43
|
-
docs/
|
|
43
|
+
docs/ResponseGetCustomerManagementSessionV1PaymentsCustomerManagementGet.md
|
|
44
44
|
docs/RolesApi.md
|
|
45
45
|
docs/RolesWithUser.md
|
|
46
46
|
docs/UpdateControlSchema.md
|
package/api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Lumoar API
|
|
5
5
|
* Compliance as a service
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document:
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1189,19 +1189,19 @@ export interface RemoveFromCompany {
|
|
|
1189
1189
|
/**
|
|
1190
1190
|
*
|
|
1191
1191
|
* @export
|
|
1192
|
-
* @interface
|
|
1192
|
+
* @interface ResponseGetCustomerManagementSessionV1PaymentsCustomerManagementGet
|
|
1193
1193
|
*/
|
|
1194
|
-
export interface
|
|
1194
|
+
export interface ResponseGetCustomerManagementSessionV1PaymentsCustomerManagementGet {
|
|
1195
1195
|
/**
|
|
1196
1196
|
*
|
|
1197
1197
|
* @type {string}
|
|
1198
|
-
* @memberof
|
|
1198
|
+
* @memberof ResponseGetCustomerManagementSessionV1PaymentsCustomerManagementGet
|
|
1199
1199
|
*/
|
|
1200
1200
|
'link': string;
|
|
1201
1201
|
/**
|
|
1202
1202
|
*
|
|
1203
1203
|
* @type {string}
|
|
1204
|
-
* @memberof
|
|
1204
|
+
* @memberof ResponseGetCustomerManagementSessionV1PaymentsCustomerManagementGet
|
|
1205
1205
|
*/
|
|
1206
1206
|
'message'?: string;
|
|
1207
1207
|
}
|
|
@@ -3595,6 +3595,36 @@ export const HealthApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
3595
3595
|
|
|
3596
3596
|
|
|
3597
3597
|
|
|
3598
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3599
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3600
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3601
|
+
|
|
3602
|
+
return {
|
|
3603
|
+
url: toPathString(localVarUrlObj),
|
|
3604
|
+
options: localVarRequestOptions,
|
|
3605
|
+
};
|
|
3606
|
+
},
|
|
3607
|
+
/**
|
|
3608
|
+
*
|
|
3609
|
+
* @summary Get Rate Limit Health
|
|
3610
|
+
* @param {*} [options] Override http request option.
|
|
3611
|
+
* @throws {RequiredError}
|
|
3612
|
+
*/
|
|
3613
|
+
getRateLimitHealthHealthRateLimitGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3614
|
+
const localVarPath = `/health/rate_limit`;
|
|
3615
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3616
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3617
|
+
let baseOptions;
|
|
3618
|
+
if (configuration) {
|
|
3619
|
+
baseOptions = configuration.baseOptions;
|
|
3620
|
+
}
|
|
3621
|
+
|
|
3622
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
3623
|
+
const localVarHeaderParameter = {} as any;
|
|
3624
|
+
const localVarQueryParameter = {} as any;
|
|
3625
|
+
|
|
3626
|
+
|
|
3627
|
+
|
|
3598
3628
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3599
3629
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3600
3630
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -3680,6 +3710,18 @@ export const HealthApiFp = function(configuration?: Configuration) {
|
|
|
3680
3710
|
const localVarOperationServerBasePath = operationServerMap['HealthApi.getListmonkHealthHealthListmonkGet']?.[localVarOperationServerIndex]?.url;
|
|
3681
3711
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3682
3712
|
},
|
|
3713
|
+
/**
|
|
3714
|
+
*
|
|
3715
|
+
* @summary Get Rate Limit Health
|
|
3716
|
+
* @param {*} [options] Override http request option.
|
|
3717
|
+
* @throws {RequiredError}
|
|
3718
|
+
*/
|
|
3719
|
+
async getRateLimitHealthHealthRateLimitGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
|
|
3720
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getRateLimitHealthHealthRateLimitGet(options);
|
|
3721
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3722
|
+
const localVarOperationServerBasePath = operationServerMap['HealthApi.getRateLimitHealthHealthRateLimitGet']?.[localVarOperationServerIndex]?.url;
|
|
3723
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3724
|
+
},
|
|
3683
3725
|
/**
|
|
3684
3726
|
*
|
|
3685
3727
|
* @summary Get Redis Health
|
|
@@ -3729,6 +3771,15 @@ export const HealthApiFactory = function (configuration?: Configuration, basePat
|
|
|
3729
3771
|
getListmonkHealthHealthListmonkGet(options?: RawAxiosRequestConfig): AxiosPromise<any> {
|
|
3730
3772
|
return localVarFp.getListmonkHealthHealthListmonkGet(options).then((request) => request(axios, basePath));
|
|
3731
3773
|
},
|
|
3774
|
+
/**
|
|
3775
|
+
*
|
|
3776
|
+
* @summary Get Rate Limit Health
|
|
3777
|
+
* @param {*} [options] Override http request option.
|
|
3778
|
+
* @throws {RequiredError}
|
|
3779
|
+
*/
|
|
3780
|
+
getRateLimitHealthHealthRateLimitGet(options?: RawAxiosRequestConfig): AxiosPromise<any> {
|
|
3781
|
+
return localVarFp.getRateLimitHealthHealthRateLimitGet(options).then((request) => request(axios, basePath));
|
|
3782
|
+
},
|
|
3732
3783
|
/**
|
|
3733
3784
|
*
|
|
3734
3785
|
* @summary Get Redis Health
|
|
@@ -3781,6 +3832,17 @@ export class HealthApi extends BaseAPI {
|
|
|
3781
3832
|
return HealthApiFp(this.configuration).getListmonkHealthHealthListmonkGet(options).then((request) => request(this.axios, this.basePath));
|
|
3782
3833
|
}
|
|
3783
3834
|
|
|
3835
|
+
/**
|
|
3836
|
+
*
|
|
3837
|
+
* @summary Get Rate Limit Health
|
|
3838
|
+
* @param {*} [options] Override http request option.
|
|
3839
|
+
* @throws {RequiredError}
|
|
3840
|
+
* @memberof HealthApi
|
|
3841
|
+
*/
|
|
3842
|
+
public getRateLimitHealthHealthRateLimitGet(options?: RawAxiosRequestConfig) {
|
|
3843
|
+
return HealthApiFp(this.configuration).getRateLimitHealthHealthRateLimitGet(options).then((request) => request(this.axios, this.basePath));
|
|
3844
|
+
}
|
|
3845
|
+
|
|
3784
3846
|
/**
|
|
3785
3847
|
*
|
|
3786
3848
|
* @summary Get Redis Health
|
|
@@ -3811,12 +3873,12 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
3811
3873
|
* @param {*} [options] Override http request option.
|
|
3812
3874
|
* @throws {RequiredError}
|
|
3813
3875
|
*/
|
|
3814
|
-
|
|
3876
|
+
getCheckoutSessionV1PaymentsCheckoutGet: async (companyId: string, productId: string, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3815
3877
|
// verify required parameter 'companyId' is not null or undefined
|
|
3816
|
-
assertParamExists('
|
|
3878
|
+
assertParamExists('getCheckoutSessionV1PaymentsCheckoutGet', 'companyId', companyId)
|
|
3817
3879
|
// verify required parameter 'productId' is not null or undefined
|
|
3818
|
-
assertParamExists('
|
|
3819
|
-
const localVarPath = `/payments/checkout`;
|
|
3880
|
+
assertParamExists('getCheckoutSessionV1PaymentsCheckoutGet', 'productId', productId)
|
|
3881
|
+
const localVarPath = `/v1/payments/checkout`;
|
|
3820
3882
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3821
3883
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3822
3884
|
let baseOptions;
|
|
@@ -3858,8 +3920,8 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
3858
3920
|
* @param {*} [options] Override http request option.
|
|
3859
3921
|
* @throws {RequiredError}
|
|
3860
3922
|
*/
|
|
3861
|
-
|
|
3862
|
-
const localVarPath = `/payments/customer/management`;
|
|
3923
|
+
getCustomerManagementSessionV1PaymentsCustomerManagementGet: async (authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3924
|
+
const localVarPath = `/v1/payments/customer/management`;
|
|
3863
3925
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3864
3926
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3865
3927
|
let baseOptions;
|
|
@@ -3891,8 +3953,8 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
3891
3953
|
* @param {*} [options] Override http request option.
|
|
3892
3954
|
* @throws {RequiredError}
|
|
3893
3955
|
*/
|
|
3894
|
-
|
|
3895
|
-
const localVarPath = `/payments/webhook`;
|
|
3956
|
+
webhookV1PaymentsWebhookPost: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3957
|
+
const localVarPath = `/v1/payments/webhook`;
|
|
3896
3958
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3897
3959
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3898
3960
|
let baseOptions;
|
|
@@ -3935,10 +3997,10 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
|
|
|
3935
3997
|
* @param {*} [options] Override http request option.
|
|
3936
3998
|
* @throws {RequiredError}
|
|
3937
3999
|
*/
|
|
3938
|
-
async
|
|
3939
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
4000
|
+
async getCheckoutSessionV1PaymentsCheckoutGet(companyId: string, productId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckoutSessionResponse>> {
|
|
4001
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCheckoutSessionV1PaymentsCheckoutGet(companyId, productId, authorization, sessionId, options);
|
|
3940
4002
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3941
|
-
const localVarOperationServerBasePath = operationServerMap['PaymentsApi.
|
|
4003
|
+
const localVarOperationServerBasePath = operationServerMap['PaymentsApi.getCheckoutSessionV1PaymentsCheckoutGet']?.[localVarOperationServerIndex]?.url;
|
|
3942
4004
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3943
4005
|
},
|
|
3944
4006
|
/**
|
|
@@ -3949,10 +4011,10 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
|
|
|
3949
4011
|
* @param {*} [options] Override http request option.
|
|
3950
4012
|
* @throws {RequiredError}
|
|
3951
4013
|
*/
|
|
3952
|
-
async
|
|
3953
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
4014
|
+
async getCustomerManagementSessionV1PaymentsCustomerManagementGet(authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ResponseGetCustomerManagementSessionV1PaymentsCustomerManagementGet>> {
|
|
4015
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCustomerManagementSessionV1PaymentsCustomerManagementGet(authorization, sessionId, options);
|
|
3954
4016
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3955
|
-
const localVarOperationServerBasePath = operationServerMap['PaymentsApi.
|
|
4017
|
+
const localVarOperationServerBasePath = operationServerMap['PaymentsApi.getCustomerManagementSessionV1PaymentsCustomerManagementGet']?.[localVarOperationServerIndex]?.url;
|
|
3956
4018
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3957
4019
|
},
|
|
3958
4020
|
/**
|
|
@@ -3961,10 +4023,10 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
|
|
|
3961
4023
|
* @param {*} [options] Override http request option.
|
|
3962
4024
|
* @throws {RequiredError}
|
|
3963
4025
|
*/
|
|
3964
|
-
async
|
|
3965
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
4026
|
+
async webhookV1PaymentsWebhookPost(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
|
|
4027
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.webhookV1PaymentsWebhookPost(options);
|
|
3966
4028
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3967
|
-
const localVarOperationServerBasePath = operationServerMap['PaymentsApi.
|
|
4029
|
+
const localVarOperationServerBasePath = operationServerMap['PaymentsApi.webhookV1PaymentsWebhookPost']?.[localVarOperationServerIndex]?.url;
|
|
3968
4030
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3969
4031
|
},
|
|
3970
4032
|
}
|
|
@@ -3987,8 +4049,8 @@ export const PaymentsApiFactory = function (configuration?: Configuration, baseP
|
|
|
3987
4049
|
* @param {*} [options] Override http request option.
|
|
3988
4050
|
* @throws {RequiredError}
|
|
3989
4051
|
*/
|
|
3990
|
-
|
|
3991
|
-
return localVarFp.
|
|
4052
|
+
getCheckoutSessionV1PaymentsCheckoutGet(companyId: string, productId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<CheckoutSessionResponse> {
|
|
4053
|
+
return localVarFp.getCheckoutSessionV1PaymentsCheckoutGet(companyId, productId, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
3992
4054
|
},
|
|
3993
4055
|
/**
|
|
3994
4056
|
*
|
|
@@ -3998,8 +4060,8 @@ export const PaymentsApiFactory = function (configuration?: Configuration, baseP
|
|
|
3998
4060
|
* @param {*} [options] Override http request option.
|
|
3999
4061
|
* @throws {RequiredError}
|
|
4000
4062
|
*/
|
|
4001
|
-
|
|
4002
|
-
return localVarFp.
|
|
4063
|
+
getCustomerManagementSessionV1PaymentsCustomerManagementGet(authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<ResponseGetCustomerManagementSessionV1PaymentsCustomerManagementGet> {
|
|
4064
|
+
return localVarFp.getCustomerManagementSessionV1PaymentsCustomerManagementGet(authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
4003
4065
|
},
|
|
4004
4066
|
/**
|
|
4005
4067
|
*
|
|
@@ -4007,8 +4069,8 @@ export const PaymentsApiFactory = function (configuration?: Configuration, baseP
|
|
|
4007
4069
|
* @param {*} [options] Override http request option.
|
|
4008
4070
|
* @throws {RequiredError}
|
|
4009
4071
|
*/
|
|
4010
|
-
|
|
4011
|
-
return localVarFp.
|
|
4072
|
+
webhookV1PaymentsWebhookPost(options?: RawAxiosRequestConfig): AxiosPromise<any> {
|
|
4073
|
+
return localVarFp.webhookV1PaymentsWebhookPost(options).then((request) => request(axios, basePath));
|
|
4012
4074
|
},
|
|
4013
4075
|
};
|
|
4014
4076
|
};
|
|
@@ -4031,8 +4093,8 @@ export class PaymentsApi extends BaseAPI {
|
|
|
4031
4093
|
* @throws {RequiredError}
|
|
4032
4094
|
* @memberof PaymentsApi
|
|
4033
4095
|
*/
|
|
4034
|
-
public
|
|
4035
|
-
return PaymentsApiFp(this.configuration).
|
|
4096
|
+
public getCheckoutSessionV1PaymentsCheckoutGet(companyId: string, productId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
|
|
4097
|
+
return PaymentsApiFp(this.configuration).getCheckoutSessionV1PaymentsCheckoutGet(companyId, productId, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
4036
4098
|
}
|
|
4037
4099
|
|
|
4038
4100
|
/**
|
|
@@ -4044,8 +4106,8 @@ export class PaymentsApi extends BaseAPI {
|
|
|
4044
4106
|
* @throws {RequiredError}
|
|
4045
4107
|
* @memberof PaymentsApi
|
|
4046
4108
|
*/
|
|
4047
|
-
public
|
|
4048
|
-
return PaymentsApiFp(this.configuration).
|
|
4109
|
+
public getCustomerManagementSessionV1PaymentsCustomerManagementGet(authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
|
|
4110
|
+
return PaymentsApiFp(this.configuration).getCustomerManagementSessionV1PaymentsCustomerManagementGet(authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
4049
4111
|
}
|
|
4050
4112
|
|
|
4051
4113
|
/**
|
|
@@ -4055,8 +4117,8 @@ export class PaymentsApi extends BaseAPI {
|
|
|
4055
4117
|
* @throws {RequiredError}
|
|
4056
4118
|
* @memberof PaymentsApi
|
|
4057
4119
|
*/
|
|
4058
|
-
public
|
|
4059
|
-
return PaymentsApiFp(this.configuration).
|
|
4120
|
+
public webhookV1PaymentsWebhookPost(options?: RawAxiosRequestConfig) {
|
|
4121
|
+
return PaymentsApiFp(this.configuration).webhookV1PaymentsWebhookPost(options).then((request) => request(this.axios, this.basePath));
|
|
4060
4122
|
}
|
|
4061
4123
|
}
|
|
4062
4124
|
|
package/base.ts
CHANGED
package/common.ts
CHANGED
package/configuration.ts
CHANGED
|
@@ -4,13 +4,14 @@
|
|
|
4
4
|
* Lumoar API
|
|
5
5
|
* Compliance as a service
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document:
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
|
|
14
15
|
import axios, { AxiosInstance, AxiosResponse } from 'axios';
|
|
15
16
|
import {
|
|
16
17
|
HealthApi,
|
|
@@ -127,96 +128,88 @@ export class Configuration {
|
|
|
127
128
|
}
|
|
128
129
|
|
|
129
130
|
|
|
131
|
+
|
|
130
132
|
export class ApiSDK {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
133
|
+
private helthApi: HealthApi;
|
|
134
|
+
private authApi: AuthApi;
|
|
135
|
+
private companyApi: CompanyApi;
|
|
136
|
+
private controlsApi: ControlsApi;
|
|
137
|
+
private evidenceApi: EvidenceApi;
|
|
138
|
+
private paymentsApi: PaymentsApi;
|
|
139
|
+
private policiesApi: PoliciesApi;
|
|
140
|
+
private rolesApi: RolesApi;
|
|
141
|
+
private userApi: UserApi;
|
|
142
|
+
private token: string | null = null;
|
|
143
|
+
private axiosInstance: AxiosInstance;
|
|
142
144
|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
}
|
|
145
|
+
constructor(basePath?: string) {
|
|
146
|
+
this.axiosInstance = axios.create({
|
|
147
|
+
baseURL: basePath,
|
|
148
|
+
withCredentials: true
|
|
149
|
+
});
|
|
150
|
+
this.setupInterceptors();
|
|
151
|
+
const config = new Configuration({
|
|
152
|
+
basePath,
|
|
153
|
+
apiKey: () => this.getAuthHeader(),
|
|
154
|
+
baseOptions: {
|
|
155
|
+
axios: this.axiosInstance
|
|
156
|
+
},
|
|
157
|
+
});
|
|
158
|
+
|
|
159
|
+
this.helthApi = new HealthApi(config, undefined, this.axiosInstance);
|
|
160
|
+
this.authApi = new AuthApi(config, undefined, this.axiosInstance);
|
|
161
|
+
this.companyApi = new CompanyApi(config, undefined, this.axiosInstance);
|
|
162
|
+
this.controlsApi = new ControlsApi(config, undefined, this.axiosInstance);
|
|
163
|
+
this.evidenceApi = new EvidenceApi(config, undefined, this.axiosInstance);
|
|
164
|
+
this.paymentsApi = new PaymentsApi(config, undefined, this.axiosInstance);
|
|
165
|
+
this.policiesApi = new PoliciesApi(config, undefined, this.axiosInstance);
|
|
166
|
+
this.rolesApi = new RolesApi(config, undefined, this.axiosInstance);
|
|
167
|
+
this.userApi = new UserApi(config, undefined, this.axiosInstance);
|
|
168
|
+
}
|
|
168
169
|
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
170
|
+
public setToken(newToken: string) {
|
|
171
|
+
this.token = newToken;
|
|
172
|
+
}
|
|
173
|
+
private getAuthHeader(): string {
|
|
174
|
+
if (!this.token) {
|
|
175
|
+
throw new Error('No token set. Call setToken() first.');
|
|
172
176
|
}
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
177
|
+
return `Bearer ${this.token}`;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
private setupInterceptors() {
|
|
181
|
+
this.axiosInstance.interceptors.request.use((config) => {
|
|
182
|
+
if (this.token) {
|
|
183
|
+
config.headers['Authorization'] = this.getAuthHeader();
|
|
178
184
|
}
|
|
179
|
-
return
|
|
180
|
-
|
|
185
|
+
return config;
|
|
186
|
+
});
|
|
181
187
|
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
return {
|
|
211
|
-
helthApi: this.helthApi,
|
|
212
|
-
authApi: this.authApi,
|
|
213
|
-
companyApi: this.companyApi,
|
|
214
|
-
controlsApi: this.controlsApi,
|
|
215
|
-
evidenceApi: this.evidenceApi,
|
|
216
|
-
paymentsApi: this.paymentsApi,
|
|
217
|
-
policiesApi: this.policiesApi,
|
|
218
|
-
rolesApi: this.rolesApi,
|
|
219
|
-
userApi: this.userApi,
|
|
220
|
-
};
|
|
221
|
-
}
|
|
222
|
-
}
|
|
188
|
+
this.axiosInstance.interceptors.response.use((response: AxiosResponse) => {
|
|
189
|
+
const newToken = response.data.newToken || response.headers['Authorization'];
|
|
190
|
+
if (newToken) {
|
|
191
|
+
this.setToken(newToken.replace('Bearer ', ''));
|
|
192
|
+
console.log('Token automatically updated via backend refresh');
|
|
193
|
+
}
|
|
194
|
+
return response;
|
|
195
|
+
}, (error) => {
|
|
196
|
+
if (error.response?.status === 401) {
|
|
197
|
+
console.error('Authentication failed - session expired');
|
|
198
|
+
}
|
|
199
|
+
return Promise.reject(error);
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
public getApi() {
|
|
203
|
+
return {
|
|
204
|
+
helthApi: this.helthApi,
|
|
205
|
+
authApi: this.authApi,
|
|
206
|
+
companyApi: this.companyApi,
|
|
207
|
+
controlsApi: this.controlsApi,
|
|
208
|
+
evidenceApi: this.evidenceApi,
|
|
209
|
+
paymentsApi: this.paymentsApi,
|
|
210
|
+
policiesApi: this.policiesApi,
|
|
211
|
+
rolesApi: this.rolesApi,
|
|
212
|
+
userApi: this.userApi,
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
}
|
package/dist/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Lumoar API
|
|
3
3
|
* Compliance as a service
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document:
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1171,19 +1171,19 @@ export interface RemoveFromCompany {
|
|
|
1171
1171
|
/**
|
|
1172
1172
|
*
|
|
1173
1173
|
* @export
|
|
1174
|
-
* @interface
|
|
1174
|
+
* @interface ResponseGetCustomerManagementSessionV1PaymentsCustomerManagementGet
|
|
1175
1175
|
*/
|
|
1176
|
-
export interface
|
|
1176
|
+
export interface ResponseGetCustomerManagementSessionV1PaymentsCustomerManagementGet {
|
|
1177
1177
|
/**
|
|
1178
1178
|
*
|
|
1179
1179
|
* @type {string}
|
|
1180
|
-
* @memberof
|
|
1180
|
+
* @memberof ResponseGetCustomerManagementSessionV1PaymentsCustomerManagementGet
|
|
1181
1181
|
*/
|
|
1182
1182
|
'link': string;
|
|
1183
1183
|
/**
|
|
1184
1184
|
*
|
|
1185
1185
|
* @type {string}
|
|
1186
|
-
* @memberof
|
|
1186
|
+
* @memberof ResponseGetCustomerManagementSessionV1PaymentsCustomerManagementGet
|
|
1187
1187
|
*/
|
|
1188
1188
|
'message'?: string;
|
|
1189
1189
|
}
|
|
@@ -2511,6 +2511,13 @@ export declare const HealthApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
2511
2511
|
* @throws {RequiredError}
|
|
2512
2512
|
*/
|
|
2513
2513
|
getListmonkHealthHealthListmonkGet: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2514
|
+
/**
|
|
2515
|
+
*
|
|
2516
|
+
* @summary Get Rate Limit Health
|
|
2517
|
+
* @param {*} [options] Override http request option.
|
|
2518
|
+
* @throws {RequiredError}
|
|
2519
|
+
*/
|
|
2520
|
+
getRateLimitHealthHealthRateLimitGet: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2514
2521
|
/**
|
|
2515
2522
|
*
|
|
2516
2523
|
* @summary Get Redis Health
|
|
@@ -2545,6 +2552,13 @@ export declare const HealthApiFp: (configuration?: Configuration) => {
|
|
|
2545
2552
|
* @throws {RequiredError}
|
|
2546
2553
|
*/
|
|
2547
2554
|
getListmonkHealthHealthListmonkGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>>;
|
|
2555
|
+
/**
|
|
2556
|
+
*
|
|
2557
|
+
* @summary Get Rate Limit Health
|
|
2558
|
+
* @param {*} [options] Override http request option.
|
|
2559
|
+
* @throws {RequiredError}
|
|
2560
|
+
*/
|
|
2561
|
+
getRateLimitHealthHealthRateLimitGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>>;
|
|
2548
2562
|
/**
|
|
2549
2563
|
*
|
|
2550
2564
|
* @summary Get Redis Health
|
|
@@ -2579,6 +2593,13 @@ export declare const HealthApiFactory: (configuration?: Configuration, basePath?
|
|
|
2579
2593
|
* @throws {RequiredError}
|
|
2580
2594
|
*/
|
|
2581
2595
|
getListmonkHealthHealthListmonkGet(options?: RawAxiosRequestConfig): AxiosPromise<any>;
|
|
2596
|
+
/**
|
|
2597
|
+
*
|
|
2598
|
+
* @summary Get Rate Limit Health
|
|
2599
|
+
* @param {*} [options] Override http request option.
|
|
2600
|
+
* @throws {RequiredError}
|
|
2601
|
+
*/
|
|
2602
|
+
getRateLimitHealthHealthRateLimitGet(options?: RawAxiosRequestConfig): AxiosPromise<any>;
|
|
2582
2603
|
/**
|
|
2583
2604
|
*
|
|
2584
2605
|
* @summary Get Redis Health
|
|
@@ -2618,6 +2639,14 @@ export declare class HealthApi extends BaseAPI {
|
|
|
2618
2639
|
* @memberof HealthApi
|
|
2619
2640
|
*/
|
|
2620
2641
|
getListmonkHealthHealthListmonkGet(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
2642
|
+
/**
|
|
2643
|
+
*
|
|
2644
|
+
* @summary Get Rate Limit Health
|
|
2645
|
+
* @param {*} [options] Override http request option.
|
|
2646
|
+
* @throws {RequiredError}
|
|
2647
|
+
* @memberof HealthApi
|
|
2648
|
+
*/
|
|
2649
|
+
getRateLimitHealthHealthRateLimitGet(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
2621
2650
|
/**
|
|
2622
2651
|
*
|
|
2623
2652
|
* @summary Get Redis Health
|
|
@@ -2642,7 +2671,7 @@ export declare const PaymentsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
2642
2671
|
* @param {*} [options] Override http request option.
|
|
2643
2672
|
* @throws {RequiredError}
|
|
2644
2673
|
*/
|
|
2645
|
-
|
|
2674
|
+
getCheckoutSessionV1PaymentsCheckoutGet: (companyId: string, productId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2646
2675
|
/**
|
|
2647
2676
|
*
|
|
2648
2677
|
* @summary Get Customer Management Session
|
|
@@ -2651,14 +2680,14 @@ export declare const PaymentsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
2651
2680
|
* @param {*} [options] Override http request option.
|
|
2652
2681
|
* @throws {RequiredError}
|
|
2653
2682
|
*/
|
|
2654
|
-
|
|
2683
|
+
getCustomerManagementSessionV1PaymentsCustomerManagementGet: (authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2655
2684
|
/**
|
|
2656
2685
|
*
|
|
2657
2686
|
* @summary Webhook
|
|
2658
2687
|
* @param {*} [options] Override http request option.
|
|
2659
2688
|
* @throws {RequiredError}
|
|
2660
2689
|
*/
|
|
2661
|
-
|
|
2690
|
+
webhookV1PaymentsWebhookPost: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2662
2691
|
};
|
|
2663
2692
|
/**
|
|
2664
2693
|
* PaymentsApi - functional programming interface
|
|
@@ -2675,7 +2704,7 @@ export declare const PaymentsApiFp: (configuration?: Configuration) => {
|
|
|
2675
2704
|
* @param {*} [options] Override http request option.
|
|
2676
2705
|
* @throws {RequiredError}
|
|
2677
2706
|
*/
|
|
2678
|
-
|
|
2707
|
+
getCheckoutSessionV1PaymentsCheckoutGet(companyId: string, productId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckoutSessionResponse>>;
|
|
2679
2708
|
/**
|
|
2680
2709
|
*
|
|
2681
2710
|
* @summary Get Customer Management Session
|
|
@@ -2684,14 +2713,14 @@ export declare const PaymentsApiFp: (configuration?: Configuration) => {
|
|
|
2684
2713
|
* @param {*} [options] Override http request option.
|
|
2685
2714
|
* @throws {RequiredError}
|
|
2686
2715
|
*/
|
|
2687
|
-
|
|
2716
|
+
getCustomerManagementSessionV1PaymentsCustomerManagementGet(authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ResponseGetCustomerManagementSessionV1PaymentsCustomerManagementGet>>;
|
|
2688
2717
|
/**
|
|
2689
2718
|
*
|
|
2690
2719
|
* @summary Webhook
|
|
2691
2720
|
* @param {*} [options] Override http request option.
|
|
2692
2721
|
* @throws {RequiredError}
|
|
2693
2722
|
*/
|
|
2694
|
-
|
|
2723
|
+
webhookV1PaymentsWebhookPost(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>>;
|
|
2695
2724
|
};
|
|
2696
2725
|
/**
|
|
2697
2726
|
* PaymentsApi - factory interface
|
|
@@ -2708,7 +2737,7 @@ export declare const PaymentsApiFactory: (configuration?: Configuration, basePat
|
|
|
2708
2737
|
* @param {*} [options] Override http request option.
|
|
2709
2738
|
* @throws {RequiredError}
|
|
2710
2739
|
*/
|
|
2711
|
-
|
|
2740
|
+
getCheckoutSessionV1PaymentsCheckoutGet(companyId: string, productId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<CheckoutSessionResponse>;
|
|
2712
2741
|
/**
|
|
2713
2742
|
*
|
|
2714
2743
|
* @summary Get Customer Management Session
|
|
@@ -2717,14 +2746,14 @@ export declare const PaymentsApiFactory: (configuration?: Configuration, basePat
|
|
|
2717
2746
|
* @param {*} [options] Override http request option.
|
|
2718
2747
|
* @throws {RequiredError}
|
|
2719
2748
|
*/
|
|
2720
|
-
|
|
2749
|
+
getCustomerManagementSessionV1PaymentsCustomerManagementGet(authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<ResponseGetCustomerManagementSessionV1PaymentsCustomerManagementGet>;
|
|
2721
2750
|
/**
|
|
2722
2751
|
*
|
|
2723
2752
|
* @summary Webhook
|
|
2724
2753
|
* @param {*} [options] Override http request option.
|
|
2725
2754
|
* @throws {RequiredError}
|
|
2726
2755
|
*/
|
|
2727
|
-
|
|
2756
|
+
webhookV1PaymentsWebhookPost(options?: RawAxiosRequestConfig): AxiosPromise<any>;
|
|
2728
2757
|
};
|
|
2729
2758
|
/**
|
|
2730
2759
|
* PaymentsApi - object-oriented interface
|
|
@@ -2744,7 +2773,7 @@ export declare class PaymentsApi extends BaseAPI {
|
|
|
2744
2773
|
* @throws {RequiredError}
|
|
2745
2774
|
* @memberof PaymentsApi
|
|
2746
2775
|
*/
|
|
2747
|
-
|
|
2776
|
+
getCheckoutSessionV1PaymentsCheckoutGet(companyId: string, productId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CheckoutSessionResponse, any, {}>>;
|
|
2748
2777
|
/**
|
|
2749
2778
|
*
|
|
2750
2779
|
* @summary Get Customer Management Session
|
|
@@ -2754,7 +2783,7 @@ export declare class PaymentsApi extends BaseAPI {
|
|
|
2754
2783
|
* @throws {RequiredError}
|
|
2755
2784
|
* @memberof PaymentsApi
|
|
2756
2785
|
*/
|
|
2757
|
-
|
|
2786
|
+
getCustomerManagementSessionV1PaymentsCustomerManagementGet(authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ResponseGetCustomerManagementSessionV1PaymentsCustomerManagementGet, any, {}>>;
|
|
2758
2787
|
/**
|
|
2759
2788
|
*
|
|
2760
2789
|
* @summary Webhook
|
|
@@ -2762,7 +2791,7 @@ export declare class PaymentsApi extends BaseAPI {
|
|
|
2762
2791
|
* @throws {RequiredError}
|
|
2763
2792
|
* @memberof PaymentsApi
|
|
2764
2793
|
*/
|
|
2765
|
-
|
|
2794
|
+
webhookV1PaymentsWebhookPost(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
2766
2795
|
}
|
|
2767
2796
|
/**
|
|
2768
2797
|
* PoliciesApi - axios parameter creator
|
package/dist/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Lumoar API
|
|
5
5
|
* Compliance as a service
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document:
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2072,6 +2072,31 @@ export const HealthApiAxiosParamCreator = function (configuration) {
|
|
|
2072
2072
|
options: localVarRequestOptions,
|
|
2073
2073
|
};
|
|
2074
2074
|
}),
|
|
2075
|
+
/**
|
|
2076
|
+
*
|
|
2077
|
+
* @summary Get Rate Limit Health
|
|
2078
|
+
* @param {*} [options] Override http request option.
|
|
2079
|
+
* @throws {RequiredError}
|
|
2080
|
+
*/
|
|
2081
|
+
getRateLimitHealthHealthRateLimitGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
2082
|
+
const localVarPath = `/health/rate_limit`;
|
|
2083
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2084
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2085
|
+
let baseOptions;
|
|
2086
|
+
if (configuration) {
|
|
2087
|
+
baseOptions = configuration.baseOptions;
|
|
2088
|
+
}
|
|
2089
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2090
|
+
const localVarHeaderParameter = {};
|
|
2091
|
+
const localVarQueryParameter = {};
|
|
2092
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2093
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2094
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2095
|
+
return {
|
|
2096
|
+
url: toPathString(localVarUrlObj),
|
|
2097
|
+
options: localVarRequestOptions,
|
|
2098
|
+
};
|
|
2099
|
+
}),
|
|
2075
2100
|
/**
|
|
2076
2101
|
*
|
|
2077
2102
|
* @summary Get Redis Health
|
|
@@ -2151,6 +2176,21 @@ export const HealthApiFp = function (configuration) {
|
|
|
2151
2176
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2152
2177
|
});
|
|
2153
2178
|
},
|
|
2179
|
+
/**
|
|
2180
|
+
*
|
|
2181
|
+
* @summary Get Rate Limit Health
|
|
2182
|
+
* @param {*} [options] Override http request option.
|
|
2183
|
+
* @throws {RequiredError}
|
|
2184
|
+
*/
|
|
2185
|
+
getRateLimitHealthHealthRateLimitGet(options) {
|
|
2186
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2187
|
+
var _a, _b, _c;
|
|
2188
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getRateLimitHealthHealthRateLimitGet(options);
|
|
2189
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2190
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['HealthApi.getRateLimitHealthHealthRateLimitGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2191
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2192
|
+
});
|
|
2193
|
+
},
|
|
2154
2194
|
/**
|
|
2155
2195
|
*
|
|
2156
2196
|
* @summary Get Redis Health
|
|
@@ -2202,6 +2242,15 @@ export const HealthApiFactory = function (configuration, basePath, axios) {
|
|
|
2202
2242
|
getListmonkHealthHealthListmonkGet(options) {
|
|
2203
2243
|
return localVarFp.getListmonkHealthHealthListmonkGet(options).then((request) => request(axios, basePath));
|
|
2204
2244
|
},
|
|
2245
|
+
/**
|
|
2246
|
+
*
|
|
2247
|
+
* @summary Get Rate Limit Health
|
|
2248
|
+
* @param {*} [options] Override http request option.
|
|
2249
|
+
* @throws {RequiredError}
|
|
2250
|
+
*/
|
|
2251
|
+
getRateLimitHealthHealthRateLimitGet(options) {
|
|
2252
|
+
return localVarFp.getRateLimitHealthHealthRateLimitGet(options).then((request) => request(axios, basePath));
|
|
2253
|
+
},
|
|
2205
2254
|
/**
|
|
2206
2255
|
*
|
|
2207
2256
|
* @summary Get Redis Health
|
|
@@ -2250,6 +2299,16 @@ export class HealthApi extends BaseAPI {
|
|
|
2250
2299
|
getListmonkHealthHealthListmonkGet(options) {
|
|
2251
2300
|
return HealthApiFp(this.configuration).getListmonkHealthHealthListmonkGet(options).then((request) => request(this.axios, this.basePath));
|
|
2252
2301
|
}
|
|
2302
|
+
/**
|
|
2303
|
+
*
|
|
2304
|
+
* @summary Get Rate Limit Health
|
|
2305
|
+
* @param {*} [options] Override http request option.
|
|
2306
|
+
* @throws {RequiredError}
|
|
2307
|
+
* @memberof HealthApi
|
|
2308
|
+
*/
|
|
2309
|
+
getRateLimitHealthHealthRateLimitGet(options) {
|
|
2310
|
+
return HealthApiFp(this.configuration).getRateLimitHealthHealthRateLimitGet(options).then((request) => request(this.axios, this.basePath));
|
|
2311
|
+
}
|
|
2253
2312
|
/**
|
|
2254
2313
|
*
|
|
2255
2314
|
* @summary Get Redis Health
|
|
@@ -2277,12 +2336,12 @@ export const PaymentsApiAxiosParamCreator = function (configuration) {
|
|
|
2277
2336
|
* @param {*} [options] Override http request option.
|
|
2278
2337
|
* @throws {RequiredError}
|
|
2279
2338
|
*/
|
|
2280
|
-
|
|
2339
|
+
getCheckoutSessionV1PaymentsCheckoutGet: (companyId_1, productId_1, authorization_1, sessionId_1, ...args_1) => __awaiter(this, [companyId_1, productId_1, authorization_1, sessionId_1, ...args_1], void 0, function* (companyId, productId, authorization, sessionId, options = {}) {
|
|
2281
2340
|
// verify required parameter 'companyId' is not null or undefined
|
|
2282
|
-
assertParamExists('
|
|
2341
|
+
assertParamExists('getCheckoutSessionV1PaymentsCheckoutGet', 'companyId', companyId);
|
|
2283
2342
|
// verify required parameter 'productId' is not null or undefined
|
|
2284
|
-
assertParamExists('
|
|
2285
|
-
const localVarPath = `/payments/checkout`;
|
|
2343
|
+
assertParamExists('getCheckoutSessionV1PaymentsCheckoutGet', 'productId', productId);
|
|
2344
|
+
const localVarPath = `/v1/payments/checkout`;
|
|
2286
2345
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2287
2346
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2288
2347
|
let baseOptions;
|
|
@@ -2317,8 +2376,8 @@ export const PaymentsApiAxiosParamCreator = function (configuration) {
|
|
|
2317
2376
|
* @param {*} [options] Override http request option.
|
|
2318
2377
|
* @throws {RequiredError}
|
|
2319
2378
|
*/
|
|
2320
|
-
|
|
2321
|
-
const localVarPath = `/payments/customer/management`;
|
|
2379
|
+
getCustomerManagementSessionV1PaymentsCustomerManagementGet: (authorization_1, sessionId_1, ...args_1) => __awaiter(this, [authorization_1, sessionId_1, ...args_1], void 0, function* (authorization, sessionId, options = {}) {
|
|
2380
|
+
const localVarPath = `/v1/payments/customer/management`;
|
|
2322
2381
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2323
2382
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2324
2383
|
let baseOptions;
|
|
@@ -2345,8 +2404,8 @@ export const PaymentsApiAxiosParamCreator = function (configuration) {
|
|
|
2345
2404
|
* @param {*} [options] Override http request option.
|
|
2346
2405
|
* @throws {RequiredError}
|
|
2347
2406
|
*/
|
|
2348
|
-
|
|
2349
|
-
const localVarPath = `/payments/webhook`;
|
|
2407
|
+
webhookV1PaymentsWebhookPost: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
2408
|
+
const localVarPath = `/v1/payments/webhook`;
|
|
2350
2409
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2351
2410
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2352
2411
|
let baseOptions;
|
|
@@ -2383,12 +2442,12 @@ export const PaymentsApiFp = function (configuration) {
|
|
|
2383
2442
|
* @param {*} [options] Override http request option.
|
|
2384
2443
|
* @throws {RequiredError}
|
|
2385
2444
|
*/
|
|
2386
|
-
|
|
2445
|
+
getCheckoutSessionV1PaymentsCheckoutGet(companyId, productId, authorization, sessionId, options) {
|
|
2387
2446
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2388
2447
|
var _a, _b, _c;
|
|
2389
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2448
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCheckoutSessionV1PaymentsCheckoutGet(companyId, productId, authorization, sessionId, options);
|
|
2390
2449
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2391
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PaymentsApi.
|
|
2450
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PaymentsApi.getCheckoutSessionV1PaymentsCheckoutGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2392
2451
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2393
2452
|
});
|
|
2394
2453
|
},
|
|
@@ -2400,12 +2459,12 @@ export const PaymentsApiFp = function (configuration) {
|
|
|
2400
2459
|
* @param {*} [options] Override http request option.
|
|
2401
2460
|
* @throws {RequiredError}
|
|
2402
2461
|
*/
|
|
2403
|
-
|
|
2462
|
+
getCustomerManagementSessionV1PaymentsCustomerManagementGet(authorization, sessionId, options) {
|
|
2404
2463
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2405
2464
|
var _a, _b, _c;
|
|
2406
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2465
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCustomerManagementSessionV1PaymentsCustomerManagementGet(authorization, sessionId, options);
|
|
2407
2466
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2408
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PaymentsApi.
|
|
2467
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PaymentsApi.getCustomerManagementSessionV1PaymentsCustomerManagementGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2409
2468
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2410
2469
|
});
|
|
2411
2470
|
},
|
|
@@ -2415,12 +2474,12 @@ export const PaymentsApiFp = function (configuration) {
|
|
|
2415
2474
|
* @param {*} [options] Override http request option.
|
|
2416
2475
|
* @throws {RequiredError}
|
|
2417
2476
|
*/
|
|
2418
|
-
|
|
2477
|
+
webhookV1PaymentsWebhookPost(options) {
|
|
2419
2478
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2420
2479
|
var _a, _b, _c;
|
|
2421
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2480
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.webhookV1PaymentsWebhookPost(options);
|
|
2422
2481
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2423
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PaymentsApi.
|
|
2482
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PaymentsApi.webhookV1PaymentsWebhookPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2424
2483
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2425
2484
|
});
|
|
2426
2485
|
},
|
|
@@ -2443,8 +2502,8 @@ export const PaymentsApiFactory = function (configuration, basePath, axios) {
|
|
|
2443
2502
|
* @param {*} [options] Override http request option.
|
|
2444
2503
|
* @throws {RequiredError}
|
|
2445
2504
|
*/
|
|
2446
|
-
|
|
2447
|
-
return localVarFp.
|
|
2505
|
+
getCheckoutSessionV1PaymentsCheckoutGet(companyId, productId, authorization, sessionId, options) {
|
|
2506
|
+
return localVarFp.getCheckoutSessionV1PaymentsCheckoutGet(companyId, productId, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
2448
2507
|
},
|
|
2449
2508
|
/**
|
|
2450
2509
|
*
|
|
@@ -2454,8 +2513,8 @@ export const PaymentsApiFactory = function (configuration, basePath, axios) {
|
|
|
2454
2513
|
* @param {*} [options] Override http request option.
|
|
2455
2514
|
* @throws {RequiredError}
|
|
2456
2515
|
*/
|
|
2457
|
-
|
|
2458
|
-
return localVarFp.
|
|
2516
|
+
getCustomerManagementSessionV1PaymentsCustomerManagementGet(authorization, sessionId, options) {
|
|
2517
|
+
return localVarFp.getCustomerManagementSessionV1PaymentsCustomerManagementGet(authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
2459
2518
|
},
|
|
2460
2519
|
/**
|
|
2461
2520
|
*
|
|
@@ -2463,8 +2522,8 @@ export const PaymentsApiFactory = function (configuration, basePath, axios) {
|
|
|
2463
2522
|
* @param {*} [options] Override http request option.
|
|
2464
2523
|
* @throws {RequiredError}
|
|
2465
2524
|
*/
|
|
2466
|
-
|
|
2467
|
-
return localVarFp.
|
|
2525
|
+
webhookV1PaymentsWebhookPost(options) {
|
|
2526
|
+
return localVarFp.webhookV1PaymentsWebhookPost(options).then((request) => request(axios, basePath));
|
|
2468
2527
|
},
|
|
2469
2528
|
};
|
|
2470
2529
|
};
|
|
@@ -2486,8 +2545,8 @@ export class PaymentsApi extends BaseAPI {
|
|
|
2486
2545
|
* @throws {RequiredError}
|
|
2487
2546
|
* @memberof PaymentsApi
|
|
2488
2547
|
*/
|
|
2489
|
-
|
|
2490
|
-
return PaymentsApiFp(this.configuration).
|
|
2548
|
+
getCheckoutSessionV1PaymentsCheckoutGet(companyId, productId, authorization, sessionId, options) {
|
|
2549
|
+
return PaymentsApiFp(this.configuration).getCheckoutSessionV1PaymentsCheckoutGet(companyId, productId, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
2491
2550
|
}
|
|
2492
2551
|
/**
|
|
2493
2552
|
*
|
|
@@ -2498,8 +2557,8 @@ export class PaymentsApi extends BaseAPI {
|
|
|
2498
2557
|
* @throws {RequiredError}
|
|
2499
2558
|
* @memberof PaymentsApi
|
|
2500
2559
|
*/
|
|
2501
|
-
|
|
2502
|
-
return PaymentsApiFp(this.configuration).
|
|
2560
|
+
getCustomerManagementSessionV1PaymentsCustomerManagementGet(authorization, sessionId, options) {
|
|
2561
|
+
return PaymentsApiFp(this.configuration).getCustomerManagementSessionV1PaymentsCustomerManagementGet(authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
2503
2562
|
}
|
|
2504
2563
|
/**
|
|
2505
2564
|
*
|
|
@@ -2508,8 +2567,8 @@ export class PaymentsApi extends BaseAPI {
|
|
|
2508
2567
|
* @throws {RequiredError}
|
|
2509
2568
|
* @memberof PaymentsApi
|
|
2510
2569
|
*/
|
|
2511
|
-
|
|
2512
|
-
return PaymentsApiFp(this.configuration).
|
|
2570
|
+
webhookV1PaymentsWebhookPost(options) {
|
|
2571
|
+
return PaymentsApiFp(this.configuration).webhookV1PaymentsWebhookPost(options).then((request) => request(this.axios, this.basePath));
|
|
2513
2572
|
}
|
|
2514
2573
|
}
|
|
2515
2574
|
/**
|
package/dist/base.d.ts
CHANGED
package/dist/base.js
CHANGED
package/dist/common.d.ts
CHANGED
package/dist/common.js
CHANGED
package/dist/configuration.d.ts
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Lumoar API
|
|
3
|
+
* Compliance as a service
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
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
|
+
*/
|
|
1
12
|
import { HealthApi, AuthApi, CompanyApi, ControlsApi, EvidenceApi, PaymentsApi, PoliciesApi, RolesApi, UserApi } from './api';
|
|
2
13
|
export interface ConfigurationParameters {
|
|
3
14
|
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
package/dist/configuration.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Lumoar API
|
|
5
5
|
* Compliance as a service
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document:
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -45,17 +45,16 @@ export class ApiSDK {
|
|
|
45
45
|
this.token = null;
|
|
46
46
|
this.axiosInstance = axios.create({
|
|
47
47
|
baseURL: basePath,
|
|
48
|
-
withCredentials: true
|
|
48
|
+
withCredentials: true
|
|
49
49
|
});
|
|
50
50
|
this.setupInterceptors();
|
|
51
51
|
const config = new Configuration({
|
|
52
52
|
basePath,
|
|
53
53
|
apiKey: () => this.getAuthHeader(),
|
|
54
54
|
baseOptions: {
|
|
55
|
-
axios: this.axiosInstance
|
|
55
|
+
axios: this.axiosInstance
|
|
56
56
|
},
|
|
57
57
|
});
|
|
58
|
-
// Create instances of all API classes
|
|
59
58
|
this.helthApi = new HealthApi(config, undefined, this.axiosInstance);
|
|
60
59
|
this.authApi = new AuthApi(config, undefined, this.axiosInstance);
|
|
61
60
|
this.companyApi = new CompanyApi(config, undefined, this.axiosInstance);
|
|
@@ -66,20 +65,16 @@ export class ApiSDK {
|
|
|
66
65
|
this.rolesApi = new RolesApi(config, undefined, this.axiosInstance);
|
|
67
66
|
this.userApi = new UserApi(config, undefined, this.axiosInstance);
|
|
68
67
|
}
|
|
69
|
-
// Set or update token
|
|
70
68
|
setToken(newToken) {
|
|
71
69
|
this.token = newToken;
|
|
72
70
|
}
|
|
73
|
-
// Get auth header
|
|
74
71
|
getAuthHeader() {
|
|
75
72
|
if (!this.token) {
|
|
76
73
|
throw new Error('No token set. Call setToken() first.');
|
|
77
74
|
}
|
|
78
75
|
return `Bearer ${this.token}`;
|
|
79
76
|
}
|
|
80
|
-
// Setup interceptors for requests and responses
|
|
81
77
|
setupInterceptors() {
|
|
82
|
-
// Request interceptor: Always set latest token
|
|
83
78
|
this.axiosInstance.interceptors.request.use((config) => {
|
|
84
79
|
if (this.token) {
|
|
85
80
|
config.headers['Authorization'] = this.getAuthHeader();
|
|
@@ -97,12 +92,10 @@ export class ApiSDK {
|
|
|
97
92
|
var _a;
|
|
98
93
|
if (((_a = error.response) === null || _a === void 0 ? void 0 : _a.status) === 401) {
|
|
99
94
|
console.error('Authentication failed - session expired');
|
|
100
|
-
// TODO: emit event or callback to app for login redirect
|
|
101
95
|
}
|
|
102
96
|
return Promise.reject(error);
|
|
103
97
|
});
|
|
104
98
|
}
|
|
105
|
-
// Expose API methods (proxies the generated API)
|
|
106
99
|
getApi() {
|
|
107
100
|
return {
|
|
108
101
|
helthApi: this.helthApi,
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/docs/HealthApi.md
CHANGED
|
@@ -7,6 +7,7 @@ All URIs are relative to *http://localhost*
|
|
|
7
7
|
|[**getDbHealthHealthDbGet**](#getdbhealthhealthdbget) | **GET** /health/db | Get Db Health|
|
|
8
8
|
|[**getHealthHealthGet**](#gethealthhealthget) | **GET** /health | Get Health|
|
|
9
9
|
|[**getListmonkHealthHealthListmonkGet**](#getlistmonkhealthhealthlistmonkget) | **GET** /health/listmonk | Get Listmonk Health|
|
|
10
|
+
|[**getRateLimitHealthHealthRateLimitGet**](#getratelimithealthhealthratelimitget) | **GET** /health/rate_limit | Get Rate Limit Health|
|
|
10
11
|
|[**getRedisHealthHealthRedisGet**](#getredishealthhealthredisget) | **GET** /health/redis | Get Redis Health|
|
|
11
12
|
|
|
12
13
|
# **getDbHealthHealthDbGet**
|
|
@@ -117,6 +118,49 @@ const { status, data } = await apiInstance.getListmonkHealthHealthListmonkGet();
|
|
|
117
118
|
This endpoint does not have any parameters.
|
|
118
119
|
|
|
119
120
|
|
|
121
|
+
### Return type
|
|
122
|
+
|
|
123
|
+
**any**
|
|
124
|
+
|
|
125
|
+
### Authorization
|
|
126
|
+
|
|
127
|
+
No authorization required
|
|
128
|
+
|
|
129
|
+
### HTTP request headers
|
|
130
|
+
|
|
131
|
+
- **Content-Type**: Not defined
|
|
132
|
+
- **Accept**: application/json
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
### HTTP response details
|
|
136
|
+
| Status code | Description | Response headers |
|
|
137
|
+
|-------------|-------------|------------------|
|
|
138
|
+
|**200** | Successful Response | - |
|
|
139
|
+
|
|
140
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
141
|
+
|
|
142
|
+
# **getRateLimitHealthHealthRateLimitGet**
|
|
143
|
+
> any getRateLimitHealthHealthRateLimitGet()
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
### Example
|
|
147
|
+
|
|
148
|
+
```typescript
|
|
149
|
+
import {
|
|
150
|
+
HealthApi,
|
|
151
|
+
Configuration
|
|
152
|
+
} from './api';
|
|
153
|
+
|
|
154
|
+
const configuration = new Configuration();
|
|
155
|
+
const apiInstance = new HealthApi(configuration);
|
|
156
|
+
|
|
157
|
+
const { status, data } = await apiInstance.getRateLimitHealthHealthRateLimitGet();
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
### Parameters
|
|
161
|
+
This endpoint does not have any parameters.
|
|
162
|
+
|
|
163
|
+
|
|
120
164
|
### Return type
|
|
121
165
|
|
|
122
166
|
**any**
|
package/docs/PaymentsApi.md
CHANGED
|
@@ -4,12 +4,12 @@ All URIs are relative to *http://localhost*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
|[**
|
|
8
|
-
|[**
|
|
9
|
-
|[**
|
|
7
|
+
|[**getCheckoutSessionV1PaymentsCheckoutGet**](#getcheckoutsessionv1paymentscheckoutget) | **GET** /v1/payments/checkout | Get Checkout Session|
|
|
8
|
+
|[**getCustomerManagementSessionV1PaymentsCustomerManagementGet**](#getcustomermanagementsessionv1paymentscustomermanagementget) | **GET** /v1/payments/customer/management | Get Customer Management Session|
|
|
9
|
+
|[**webhookV1PaymentsWebhookPost**](#webhookv1paymentswebhookpost) | **POST** /v1/payments/webhook | Webhook|
|
|
10
10
|
|
|
11
|
-
# **
|
|
12
|
-
> CheckoutSessionResponse
|
|
11
|
+
# **getCheckoutSessionV1PaymentsCheckoutGet**
|
|
12
|
+
> CheckoutSessionResponse getCheckoutSessionV1PaymentsCheckoutGet()
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
### Example
|
|
@@ -28,7 +28,7 @@ let productId: string; // (default to undefined)
|
|
|
28
28
|
let authorization: string; // (optional) (default to undefined)
|
|
29
29
|
let sessionId: string; // (optional) (default to undefined)
|
|
30
30
|
|
|
31
|
-
const { status, data } = await apiInstance.
|
|
31
|
+
const { status, data } = await apiInstance.getCheckoutSessionV1PaymentsCheckoutGet(
|
|
32
32
|
companyId,
|
|
33
33
|
productId,
|
|
34
34
|
authorization,
|
|
@@ -68,8 +68,8 @@ No authorization required
|
|
|
68
68
|
|
|
69
69
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
70
70
|
|
|
71
|
-
# **
|
|
72
|
-
>
|
|
71
|
+
# **getCustomerManagementSessionV1PaymentsCustomerManagementGet**
|
|
72
|
+
> ResponseGetCustomerManagementSessionV1PaymentsCustomerManagementGet getCustomerManagementSessionV1PaymentsCustomerManagementGet()
|
|
73
73
|
|
|
74
74
|
|
|
75
75
|
### Example
|
|
@@ -86,7 +86,7 @@ const apiInstance = new PaymentsApi(configuration);
|
|
|
86
86
|
let authorization: string; // (optional) (default to undefined)
|
|
87
87
|
let sessionId: string; // (optional) (default to undefined)
|
|
88
88
|
|
|
89
|
-
const { status, data } = await apiInstance.
|
|
89
|
+
const { status, data } = await apiInstance.getCustomerManagementSessionV1PaymentsCustomerManagementGet(
|
|
90
90
|
authorization,
|
|
91
91
|
sessionId
|
|
92
92
|
);
|
|
@@ -102,7 +102,7 @@ const { status, data } = await apiInstance.getCustomerManagementSessionPaymentsC
|
|
|
102
102
|
|
|
103
103
|
### Return type
|
|
104
104
|
|
|
105
|
-
**
|
|
105
|
+
**ResponseGetCustomerManagementSessionV1PaymentsCustomerManagementGet**
|
|
106
106
|
|
|
107
107
|
### Authorization
|
|
108
108
|
|
|
@@ -122,8 +122,8 @@ No authorization required
|
|
|
122
122
|
|
|
123
123
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
124
124
|
|
|
125
|
-
# **
|
|
126
|
-
> any
|
|
125
|
+
# **webhookV1PaymentsWebhookPost**
|
|
126
|
+
> any webhookV1PaymentsWebhookPost()
|
|
127
127
|
|
|
128
128
|
|
|
129
129
|
### Example
|
|
@@ -137,7 +137,7 @@ import {
|
|
|
137
137
|
const configuration = new Configuration();
|
|
138
138
|
const apiInstance = new PaymentsApi(configuration);
|
|
139
139
|
|
|
140
|
-
const { status, data } = await apiInstance.
|
|
140
|
+
const { status, data } = await apiInstance.webhookV1PaymentsWebhookPost();
|
|
141
141
|
```
|
|
142
142
|
|
|
143
143
|
### Parameters
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# ResponseGetCustomerManagementSessionV1PaymentsCustomerManagementGet
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**link** | **string** | | [default to undefined]
|
|
9
|
+
**message** | **string** | | [optional] [default to 'You don\'t have any active subscriptions']
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { ResponseGetCustomerManagementSessionV1PaymentsCustomerManagementGet } from './api';
|
|
15
|
+
|
|
16
|
+
const instance: ResponseGetCustomerManagementSessionV1PaymentsCustomerManagementGet = {
|
|
17
|
+
link,
|
|
18
|
+
message,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/index.ts
CHANGED