@rasadov/lumoar-sdk 1.0.1 → 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 +2 -4
- package/api.ts +461 -423
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +90 -103
- package/dist/api.d.ts +230 -222
- package/dist/api.js +439 -378
- 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 +4 -9
- package/dist/configuration.js +6 -18
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/AuthApi.md +4 -4
- package/docs/CompanyApi.md +6 -6
- package/docs/HealthApi.md +227 -0
- package/docs/PaymentsApi.md +21 -18
- package/docs/PoliciesApi.md +6 -6
- package/docs/ResponseGetCustomerManagementSessionV1PaymentsCustomerManagementGet.md +22 -0
- package/index.ts +1 -1
- package/package.json +8 -3
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,44 +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
|
|
1199
|
-
*/
|
|
1200
|
-
'checkout_url': string;
|
|
1201
|
-
/**
|
|
1202
|
-
*
|
|
1203
|
-
* @type {string}
|
|
1204
|
-
* @memberof ResponseGetCheckoutSessionPaymentsCheckoutGet
|
|
1205
|
-
*/
|
|
1206
|
-
'session_id': string;
|
|
1207
|
-
/**
|
|
1208
|
-
*
|
|
1209
|
-
* @type {string}
|
|
1210
|
-
* @memberof ResponseGetCheckoutSessionPaymentsCheckoutGet
|
|
1211
|
-
*/
|
|
1212
|
-
'message'?: string;
|
|
1213
|
-
}
|
|
1214
|
-
/**
|
|
1215
|
-
*
|
|
1216
|
-
* @export
|
|
1217
|
-
* @interface ResponseGetCustomerManagementSessionPaymentsCustomerManagementGet
|
|
1218
|
-
*/
|
|
1219
|
-
export interface ResponseGetCustomerManagementSessionPaymentsCustomerManagementGet {
|
|
1220
|
-
/**
|
|
1221
|
-
*
|
|
1222
|
-
* @type {string}
|
|
1223
|
-
* @memberof ResponseGetCustomerManagementSessionPaymentsCustomerManagementGet
|
|
1198
|
+
* @memberof ResponseGetCustomerManagementSessionV1PaymentsCustomerManagementGet
|
|
1224
1199
|
*/
|
|
1225
1200
|
'link': string;
|
|
1226
1201
|
/**
|
|
1227
1202
|
*
|
|
1228
1203
|
* @type {string}
|
|
1229
|
-
* @memberof
|
|
1204
|
+
* @memberof ResponseGetCustomerManagementSessionV1PaymentsCustomerManagementGet
|
|
1230
1205
|
*/
|
|
1231
1206
|
'message'?: string;
|
|
1232
1207
|
}
|
|
@@ -1935,7 +1910,7 @@ export const AuthApiFp = function(configuration?: Configuration) {
|
|
|
1935
1910
|
* @param {*} [options] Override http request option.
|
|
1936
1911
|
* @throws {RequiredError}
|
|
1937
1912
|
*/
|
|
1938
|
-
async githubCallbackV1AuthGithubCallbackPost(code: string, userAgent?: string | null, cFConnectingIP?: string | null, cFIPCountry?: string | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
1913
|
+
async githubCallbackV1AuthGithubCallbackPost(code: string, userAgent?: string | null, cFConnectingIP?: string | null, cFIPCountry?: string | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthenticationSuccess>> {
|
|
1939
1914
|
const localVarAxiosArgs = await localVarAxiosParamCreator.githubCallbackV1AuthGithubCallbackPost(code, userAgent, cFConnectingIP, cFIPCountry, options);
|
|
1940
1915
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1941
1916
|
const localVarOperationServerBasePath = operationServerMap['AuthApi.githubCallbackV1AuthGithubCallbackPost']?.[localVarOperationServerIndex]?.url;
|
|
@@ -1963,7 +1938,7 @@ export const AuthApiFp = function(configuration?: Configuration) {
|
|
|
1963
1938
|
* @param {*} [options] Override http request option.
|
|
1964
1939
|
* @throws {RequiredError}
|
|
1965
1940
|
*/
|
|
1966
|
-
async googleCallbackV1AuthGoogleCallbackPost(code: string, userAgent?: string | null, cFConnectingIP?: string | null, cFIPCountry?: string | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
1941
|
+
async googleCallbackV1AuthGoogleCallbackPost(code: string, userAgent?: string | null, cFConnectingIP?: string | null, cFIPCountry?: string | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthenticationSuccess>> {
|
|
1967
1942
|
const localVarAxiosArgs = await localVarAxiosParamCreator.googleCallbackV1AuthGoogleCallbackPost(code, userAgent, cFConnectingIP, cFIPCountry, options);
|
|
1968
1943
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1969
1944
|
const localVarOperationServerBasePath = operationServerMap['AuthApi.googleCallbackV1AuthGoogleCallbackPost']?.[localVarOperationServerIndex]?.url;
|
|
@@ -2077,7 +2052,7 @@ export const AuthApiFactory = function (configuration?: Configuration, basePath?
|
|
|
2077
2052
|
* @param {*} [options] Override http request option.
|
|
2078
2053
|
* @throws {RequiredError}
|
|
2079
2054
|
*/
|
|
2080
|
-
githubCallbackV1AuthGithubCallbackPost(code: string, userAgent?: string | null, cFConnectingIP?: string | null, cFIPCountry?: string | null, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
2055
|
+
githubCallbackV1AuthGithubCallbackPost(code: string, userAgent?: string | null, cFConnectingIP?: string | null, cFIPCountry?: string | null, options?: RawAxiosRequestConfig): AxiosPromise<AuthenticationSuccess> {
|
|
2081
2056
|
return localVarFp.githubCallbackV1AuthGithubCallbackPost(code, userAgent, cFConnectingIP, cFIPCountry, options).then((request) => request(axios, basePath));
|
|
2082
2057
|
},
|
|
2083
2058
|
/**
|
|
@@ -2099,7 +2074,7 @@ export const AuthApiFactory = function (configuration?: Configuration, basePath?
|
|
|
2099
2074
|
* @param {*} [options] Override http request option.
|
|
2100
2075
|
* @throws {RequiredError}
|
|
2101
2076
|
*/
|
|
2102
|
-
googleCallbackV1AuthGoogleCallbackPost(code: string, userAgent?: string | null, cFConnectingIP?: string | null, cFIPCountry?: string | null, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
2077
|
+
googleCallbackV1AuthGoogleCallbackPost(code: string, userAgent?: string | null, cFConnectingIP?: string | null, cFIPCountry?: string | null, options?: RawAxiosRequestConfig): AxiosPromise<AuthenticationSuccess> {
|
|
2103
2078
|
return localVarFp.googleCallbackV1AuthGoogleCallbackPost(code, userAgent, cFConnectingIP, cFIPCountry, options).then((request) => request(axios, basePath));
|
|
2104
2079
|
},
|
|
2105
2080
|
/**
|
|
@@ -2342,13 +2317,13 @@ export const CompanyApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
2342
2317
|
*
|
|
2343
2318
|
* @summary Get Companies
|
|
2344
2319
|
* @param {number} [page]
|
|
2345
|
-
* @param {number} [
|
|
2320
|
+
* @param {number} [elements]
|
|
2346
2321
|
* @param {string} [authorization]
|
|
2347
2322
|
* @param {string} [sessionId]
|
|
2348
2323
|
* @param {*} [options] Override http request option.
|
|
2349
2324
|
* @throws {RequiredError}
|
|
2350
2325
|
*/
|
|
2351
|
-
getCompaniesV1CompanyListGet: async (page?: number,
|
|
2326
|
+
getCompaniesV1CompanyListGet: async (page?: number, elements?: number, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2352
2327
|
const localVarPath = `/v1/company/list`;
|
|
2353
2328
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2354
2329
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2365,8 +2340,8 @@ export const CompanyApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
2365
2340
|
localVarQueryParameter['page'] = page;
|
|
2366
2341
|
}
|
|
2367
2342
|
|
|
2368
|
-
if (
|
|
2369
|
-
localVarQueryParameter['
|
|
2343
|
+
if (elements !== undefined) {
|
|
2344
|
+
localVarQueryParameter['elements'] = elements;
|
|
2370
2345
|
}
|
|
2371
2346
|
|
|
2372
2347
|
|
|
@@ -2465,13 +2440,13 @@ export const CompanyApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
2465
2440
|
*
|
|
2466
2441
|
* @summary Get Policies
|
|
2467
2442
|
* @param {number} [page]
|
|
2468
|
-
* @param {number} [
|
|
2443
|
+
* @param {number} [elements]
|
|
2469
2444
|
* @param {string} [authorization]
|
|
2470
2445
|
* @param {string} [sessionId]
|
|
2471
2446
|
* @param {*} [options] Override http request option.
|
|
2472
2447
|
* @throws {RequiredError}
|
|
2473
2448
|
*/
|
|
2474
|
-
getPoliciesV1CompanyPoliciesGet: async (page?: number,
|
|
2449
|
+
getPoliciesV1CompanyPoliciesGet: async (page?: number, elements?: number, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2475
2450
|
const localVarPath = `/v1/company/policies`;
|
|
2476
2451
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2477
2452
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2488,8 +2463,8 @@ export const CompanyApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
2488
2463
|
localVarQueryParameter['page'] = page;
|
|
2489
2464
|
}
|
|
2490
2465
|
|
|
2491
|
-
if (
|
|
2492
|
-
localVarQueryParameter['
|
|
2466
|
+
if (elements !== undefined) {
|
|
2467
|
+
localVarQueryParameter['elements'] = elements;
|
|
2493
2468
|
}
|
|
2494
2469
|
|
|
2495
2470
|
|
|
@@ -2576,14 +2551,14 @@ export const CompanyApiFp = function(configuration?: Configuration) {
|
|
|
2576
2551
|
*
|
|
2577
2552
|
* @summary Get Companies
|
|
2578
2553
|
* @param {number} [page]
|
|
2579
|
-
* @param {number} [
|
|
2554
|
+
* @param {number} [elements]
|
|
2580
2555
|
* @param {string} [authorization]
|
|
2581
2556
|
* @param {string} [sessionId]
|
|
2582
2557
|
* @param {*} [options] Override http request option.
|
|
2583
2558
|
* @throws {RequiredError}
|
|
2584
2559
|
*/
|
|
2585
|
-
async getCompaniesV1CompanyListGet(page?: number,
|
|
2586
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getCompaniesV1CompanyListGet(page,
|
|
2560
|
+
async getCompaniesV1CompanyListGet(page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CompanyInDBBase>>> {
|
|
2561
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCompaniesV1CompanyListGet(page, elements, authorization, sessionId, options);
|
|
2587
2562
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2588
2563
|
const localVarOperationServerBasePath = operationServerMap['CompanyApi.getCompaniesV1CompanyListGet']?.[localVarOperationServerIndex]?.url;
|
|
2589
2564
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2622,14 +2597,14 @@ export const CompanyApiFp = function(configuration?: Configuration) {
|
|
|
2622
2597
|
*
|
|
2623
2598
|
* @summary Get Policies
|
|
2624
2599
|
* @param {number} [page]
|
|
2625
|
-
* @param {number} [
|
|
2600
|
+
* @param {number} [elements]
|
|
2626
2601
|
* @param {string} [authorization]
|
|
2627
2602
|
* @param {string} [sessionId]
|
|
2628
2603
|
* @param {*} [options] Override http request option.
|
|
2629
2604
|
* @throws {RequiredError}
|
|
2630
2605
|
*/
|
|
2631
|
-
async getPoliciesV1CompanyPoliciesGet(page?: number,
|
|
2632
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getPoliciesV1CompanyPoliciesGet(page,
|
|
2606
|
+
async getPoliciesV1CompanyPoliciesGet(page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PolicyRead>>> {
|
|
2607
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPoliciesV1CompanyPoliciesGet(page, elements, authorization, sessionId, options);
|
|
2633
2608
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2634
2609
|
const localVarOperationServerBasePath = operationServerMap['CompanyApi.getPoliciesV1CompanyPoliciesGet']?.[localVarOperationServerIndex]?.url;
|
|
2635
2610
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2675,14 +2650,14 @@ export const CompanyApiFactory = function (configuration?: Configuration, basePa
|
|
|
2675
2650
|
*
|
|
2676
2651
|
* @summary Get Companies
|
|
2677
2652
|
* @param {number} [page]
|
|
2678
|
-
* @param {number} [
|
|
2653
|
+
* @param {number} [elements]
|
|
2679
2654
|
* @param {string} [authorization]
|
|
2680
2655
|
* @param {string} [sessionId]
|
|
2681
2656
|
* @param {*} [options] Override http request option.
|
|
2682
2657
|
* @throws {RequiredError}
|
|
2683
2658
|
*/
|
|
2684
|
-
getCompaniesV1CompanyListGet(page?: number,
|
|
2685
|
-
return localVarFp.getCompaniesV1CompanyListGet(page,
|
|
2659
|
+
getCompaniesV1CompanyListGet(page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<CompanyInDBBase>> {
|
|
2660
|
+
return localVarFp.getCompaniesV1CompanyListGet(page, elements, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
2686
2661
|
},
|
|
2687
2662
|
/**
|
|
2688
2663
|
*
|
|
@@ -2712,14 +2687,14 @@ export const CompanyApiFactory = function (configuration?: Configuration, basePa
|
|
|
2712
2687
|
*
|
|
2713
2688
|
* @summary Get Policies
|
|
2714
2689
|
* @param {number} [page]
|
|
2715
|
-
* @param {number} [
|
|
2690
|
+
* @param {number} [elements]
|
|
2716
2691
|
* @param {string} [authorization]
|
|
2717
2692
|
* @param {string} [sessionId]
|
|
2718
2693
|
* @param {*} [options] Override http request option.
|
|
2719
2694
|
* @throws {RequiredError}
|
|
2720
2695
|
*/
|
|
2721
|
-
getPoliciesV1CompanyPoliciesGet(page?: number,
|
|
2722
|
-
return localVarFp.getPoliciesV1CompanyPoliciesGet(page,
|
|
2696
|
+
getPoliciesV1CompanyPoliciesGet(page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<PolicyRead>> {
|
|
2697
|
+
return localVarFp.getPoliciesV1CompanyPoliciesGet(page, elements, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
2723
2698
|
},
|
|
2724
2699
|
/**
|
|
2725
2700
|
*
|
|
@@ -2761,15 +2736,15 @@ export class CompanyApi extends BaseAPI {
|
|
|
2761
2736
|
*
|
|
2762
2737
|
* @summary Get Companies
|
|
2763
2738
|
* @param {number} [page]
|
|
2764
|
-
* @param {number} [
|
|
2739
|
+
* @param {number} [elements]
|
|
2765
2740
|
* @param {string} [authorization]
|
|
2766
2741
|
* @param {string} [sessionId]
|
|
2767
2742
|
* @param {*} [options] Override http request option.
|
|
2768
2743
|
* @throws {RequiredError}
|
|
2769
2744
|
* @memberof CompanyApi
|
|
2770
2745
|
*/
|
|
2771
|
-
public getCompaniesV1CompanyListGet(page?: number,
|
|
2772
|
-
return CompanyApiFp(this.configuration).getCompaniesV1CompanyListGet(page,
|
|
2746
|
+
public getCompaniesV1CompanyListGet(page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
|
|
2747
|
+
return CompanyApiFp(this.configuration).getCompaniesV1CompanyListGet(page, elements, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
2773
2748
|
}
|
|
2774
2749
|
|
|
2775
2750
|
/**
|
|
@@ -2804,15 +2779,15 @@ export class CompanyApi extends BaseAPI {
|
|
|
2804
2779
|
*
|
|
2805
2780
|
* @summary Get Policies
|
|
2806
2781
|
* @param {number} [page]
|
|
2807
|
-
* @param {number} [
|
|
2782
|
+
* @param {number} [elements]
|
|
2808
2783
|
* @param {string} [authorization]
|
|
2809
2784
|
* @param {string} [sessionId]
|
|
2810
2785
|
* @param {*} [options] Override http request option.
|
|
2811
2786
|
* @throws {RequiredError}
|
|
2812
2787
|
* @memberof CompanyApi
|
|
2813
2788
|
*/
|
|
2814
|
-
public getPoliciesV1CompanyPoliciesGet(page?: number,
|
|
2815
|
-
return CompanyApiFp(this.configuration).getPoliciesV1CompanyPoliciesGet(page,
|
|
2789
|
+
public getPoliciesV1CompanyPoliciesGet(page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
|
|
2790
|
+
return CompanyApiFp(this.configuration).getPoliciesV1CompanyPoliciesGet(page, elements, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
2816
2791
|
}
|
|
2817
2792
|
|
|
2818
2793
|
/**
|
|
@@ -3034,19 +3009,24 @@ export class ControlsApi extends BaseAPI {
|
|
|
3034
3009
|
|
|
3035
3010
|
|
|
3036
3011
|
/**
|
|
3037
|
-
*
|
|
3012
|
+
* EvidenceApi - axios parameter creator
|
|
3038
3013
|
* @export
|
|
3039
3014
|
*/
|
|
3040
|
-
export const
|
|
3015
|
+
export const EvidenceApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
3041
3016
|
return {
|
|
3042
3017
|
/**
|
|
3043
3018
|
*
|
|
3044
|
-
* @summary
|
|
3019
|
+
* @summary Delete Evidence
|
|
3020
|
+
* @param {string} evidenceId
|
|
3021
|
+
* @param {string} [authorization]
|
|
3022
|
+
* @param {string} [sessionId]
|
|
3045
3023
|
* @param {*} [options] Override http request option.
|
|
3046
3024
|
* @throws {RequiredError}
|
|
3047
3025
|
*/
|
|
3048
|
-
|
|
3049
|
-
|
|
3026
|
+
deleteEvidenceV1EvidenceDeleteDelete: async (evidenceId: string, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3027
|
+
// verify required parameter 'evidenceId' is not null or undefined
|
|
3028
|
+
assertParamExists('deleteEvidenceV1EvidenceDeleteDelete', 'evidenceId', evidenceId)
|
|
3029
|
+
const localVarPath = `/v1/evidence/delete`;
|
|
3050
3030
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3051
3031
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3052
3032
|
let baseOptions;
|
|
@@ -3054,15 +3034,26 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
3054
3034
|
baseOptions = configuration.baseOptions;
|
|
3055
3035
|
}
|
|
3056
3036
|
|
|
3057
|
-
const localVarRequestOptions = { method: '
|
|
3037
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
3058
3038
|
const localVarHeaderParameter = {} as any;
|
|
3059
3039
|
const localVarQueryParameter = {} as any;
|
|
3040
|
+
const localVarFormParams = new URLSearchParams();
|
|
3060
3041
|
|
|
3061
3042
|
|
|
3043
|
+
if (evidenceId !== undefined) {
|
|
3044
|
+
localVarFormParams.set('evidence_id', evidenceId as any);
|
|
3045
|
+
}
|
|
3046
|
+
|
|
3062
3047
|
|
|
3048
|
+
localVarHeaderParameter['Content-Type'] = 'application/x-www-form-urlencoded';
|
|
3049
|
+
|
|
3050
|
+
if (authorization != null) {
|
|
3051
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
3052
|
+
}
|
|
3063
3053
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3064
3054
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3065
3055
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3056
|
+
localVarRequestOptions.data = localVarFormParams.toString();
|
|
3066
3057
|
|
|
3067
3058
|
return {
|
|
3068
3059
|
url: toPathString(localVarUrlObj),
|
|
@@ -3071,12 +3062,18 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
3071
3062
|
},
|
|
3072
3063
|
/**
|
|
3073
3064
|
*
|
|
3074
|
-
* @summary Get
|
|
3065
|
+
* @summary Get Evidence Files
|
|
3066
|
+
* @param {string} evidenceId
|
|
3067
|
+
* @param {string} [authorization]
|
|
3068
|
+
* @param {string} [sessionId]
|
|
3075
3069
|
* @param {*} [options] Override http request option.
|
|
3076
3070
|
* @throws {RequiredError}
|
|
3077
3071
|
*/
|
|
3078
|
-
|
|
3079
|
-
|
|
3072
|
+
getEvidenceFilesV1EvidenceFileEvidenceIdGet: async (evidenceId: string, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3073
|
+
// verify required parameter 'evidenceId' is not null or undefined
|
|
3074
|
+
assertParamExists('getEvidenceFilesV1EvidenceFileEvidenceIdGet', 'evidenceId', evidenceId)
|
|
3075
|
+
const localVarPath = `/v1/evidence/file/{evidence_id}`
|
|
3076
|
+
.replace(`{${"evidence_id"}}`, encodeURIComponent(String(evidenceId)));
|
|
3080
3077
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3081
3078
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3082
3079
|
let baseOptions;
|
|
@@ -3090,6 +3087,9 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
3090
3087
|
|
|
3091
3088
|
|
|
3092
3089
|
|
|
3090
|
+
if (authorization != null) {
|
|
3091
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
3092
|
+
}
|
|
3093
3093
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3094
3094
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3095
3095
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -3101,12 +3101,18 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
3101
3101
|
},
|
|
3102
3102
|
/**
|
|
3103
3103
|
*
|
|
3104
|
-
* @summary
|
|
3104
|
+
* @summary List Company Evidence
|
|
3105
|
+
* @param {string} companyId
|
|
3106
|
+
* @param {string} [authorization]
|
|
3107
|
+
* @param {string} [sessionId]
|
|
3105
3108
|
* @param {*} [options] Override http request option.
|
|
3106
3109
|
* @throws {RequiredError}
|
|
3107
3110
|
*/
|
|
3108
|
-
|
|
3109
|
-
|
|
3111
|
+
listCompanyEvidenceV1EvidenceCompanyCompanyIdGet: async (companyId: string, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3112
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
3113
|
+
assertParamExists('listCompanyEvidenceV1EvidenceCompanyCompanyIdGet', 'companyId', companyId)
|
|
3114
|
+
const localVarPath = `/v1/evidence/company/{company_id}`
|
|
3115
|
+
.replace(`{${"company_id"}}`, encodeURIComponent(String(companyId)));
|
|
3110
3116
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3111
3117
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3112
3118
|
let baseOptions;
|
|
@@ -3120,6 +3126,9 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
3120
3126
|
|
|
3121
3127
|
|
|
3122
3128
|
|
|
3129
|
+
if (authorization != null) {
|
|
3130
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
3131
|
+
}
|
|
3123
3132
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3124
3133
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3125
3134
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -3131,12 +3140,20 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
3131
3140
|
},
|
|
3132
3141
|
/**
|
|
3133
3142
|
*
|
|
3134
|
-
* @summary
|
|
3143
|
+
* @summary Update Evidence
|
|
3144
|
+
* @param {string} evidenceId
|
|
3145
|
+
* @param {string} text
|
|
3146
|
+
* @param {string} [authorization]
|
|
3147
|
+
* @param {string} [sessionId]
|
|
3135
3148
|
* @param {*} [options] Override http request option.
|
|
3136
3149
|
* @throws {RequiredError}
|
|
3137
3150
|
*/
|
|
3138
|
-
|
|
3139
|
-
|
|
3151
|
+
updateEvidenceV1EvidenceUpdatePut: async (evidenceId: string, text: string, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3152
|
+
// verify required parameter 'evidenceId' is not null or undefined
|
|
3153
|
+
assertParamExists('updateEvidenceV1EvidenceUpdatePut', 'evidenceId', evidenceId)
|
|
3154
|
+
// verify required parameter 'text' is not null or undefined
|
|
3155
|
+
assertParamExists('updateEvidenceV1EvidenceUpdatePut', 'text', text)
|
|
3156
|
+
const localVarPath = `/v1/evidence/update`;
|
|
3140
3157
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3141
3158
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3142
3159
|
let baseOptions;
|
|
@@ -3144,15 +3161,97 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
3144
3161
|
baseOptions = configuration.baseOptions;
|
|
3145
3162
|
}
|
|
3146
3163
|
|
|
3147
|
-
const localVarRequestOptions = { method: '
|
|
3164
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
3165
|
+
const localVarHeaderParameter = {} as any;
|
|
3166
|
+
const localVarQueryParameter = {} as any;
|
|
3167
|
+
const localVarFormParams = new URLSearchParams();
|
|
3168
|
+
|
|
3169
|
+
|
|
3170
|
+
if (evidenceId !== undefined) {
|
|
3171
|
+
localVarFormParams.set('evidence_id', evidenceId as any);
|
|
3172
|
+
}
|
|
3173
|
+
|
|
3174
|
+
if (text !== undefined) {
|
|
3175
|
+
localVarFormParams.set('text', text as any);
|
|
3176
|
+
}
|
|
3177
|
+
|
|
3178
|
+
|
|
3179
|
+
localVarHeaderParameter['Content-Type'] = 'application/x-www-form-urlencoded';
|
|
3180
|
+
|
|
3181
|
+
if (authorization != null) {
|
|
3182
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
3183
|
+
}
|
|
3184
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3185
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3186
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3187
|
+
localVarRequestOptions.data = localVarFormParams.toString();
|
|
3188
|
+
|
|
3189
|
+
return {
|
|
3190
|
+
url: toPathString(localVarUrlObj),
|
|
3191
|
+
options: localVarRequestOptions,
|
|
3192
|
+
};
|
|
3193
|
+
},
|
|
3194
|
+
/**
|
|
3195
|
+
*
|
|
3196
|
+
* @summary Upload Evidence
|
|
3197
|
+
* @param {string} companyId
|
|
3198
|
+
* @param {string} controlId
|
|
3199
|
+
* @param {File | null} file
|
|
3200
|
+
* @param {string | null} text
|
|
3201
|
+
* @param {string} [authorization]
|
|
3202
|
+
* @param {string} [sessionId]
|
|
3203
|
+
* @param {*} [options] Override http request option.
|
|
3204
|
+
* @throws {RequiredError}
|
|
3205
|
+
*/
|
|
3206
|
+
uploadEvidenceV1EvidenceUploadPost: async (companyId: string, controlId: string, file: File | null, text: string | null, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3207
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
3208
|
+
assertParamExists('uploadEvidenceV1EvidenceUploadPost', 'companyId', companyId)
|
|
3209
|
+
// verify required parameter 'controlId' is not null or undefined
|
|
3210
|
+
assertParamExists('uploadEvidenceV1EvidenceUploadPost', 'controlId', controlId)
|
|
3211
|
+
// verify required parameter 'file' is not null or undefined
|
|
3212
|
+
assertParamExists('uploadEvidenceV1EvidenceUploadPost', 'file', file)
|
|
3213
|
+
// verify required parameter 'text' is not null or undefined
|
|
3214
|
+
assertParamExists('uploadEvidenceV1EvidenceUploadPost', 'text', text)
|
|
3215
|
+
const localVarPath = `/v1/evidence/upload`;
|
|
3216
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3217
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3218
|
+
let baseOptions;
|
|
3219
|
+
if (configuration) {
|
|
3220
|
+
baseOptions = configuration.baseOptions;
|
|
3221
|
+
}
|
|
3222
|
+
|
|
3223
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3148
3224
|
const localVarHeaderParameter = {} as any;
|
|
3149
3225
|
const localVarQueryParameter = {} as any;
|
|
3226
|
+
const localVarFormParams = new URLSearchParams();
|
|
3150
3227
|
|
|
3151
3228
|
|
|
3229
|
+
if (companyId !== undefined) {
|
|
3230
|
+
localVarFormParams.set('company_id', companyId as any);
|
|
3231
|
+
}
|
|
3232
|
+
|
|
3233
|
+
if (controlId !== undefined) {
|
|
3234
|
+
localVarFormParams.set('control_id', controlId as any);
|
|
3235
|
+
}
|
|
3236
|
+
|
|
3237
|
+
if (file !== undefined) {
|
|
3238
|
+
localVarFormParams.set('file', file as any);
|
|
3239
|
+
}
|
|
3240
|
+
|
|
3241
|
+
if (text !== undefined) {
|
|
3242
|
+
localVarFormParams.set('text', text as any);
|
|
3243
|
+
}
|
|
3244
|
+
|
|
3152
3245
|
|
|
3246
|
+
localVarHeaderParameter['Content-Type'] = 'application/x-www-form-urlencoded';
|
|
3247
|
+
|
|
3248
|
+
if (authorization != null) {
|
|
3249
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
3250
|
+
}
|
|
3153
3251
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3154
3252
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3155
3253
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3254
|
+
localVarRequestOptions.data = localVarFormParams.toString();
|
|
3156
3255
|
|
|
3157
3256
|
return {
|
|
3158
3257
|
url: toPathString(localVarUrlObj),
|
|
@@ -3163,182 +3262,266 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
3163
3262
|
};
|
|
3164
3263
|
|
|
3165
3264
|
/**
|
|
3166
|
-
*
|
|
3265
|
+
* EvidenceApi - functional programming interface
|
|
3167
3266
|
* @export
|
|
3168
3267
|
*/
|
|
3169
|
-
export const
|
|
3170
|
-
const localVarAxiosParamCreator =
|
|
3268
|
+
export const EvidenceApiFp = function(configuration?: Configuration) {
|
|
3269
|
+
const localVarAxiosParamCreator = EvidenceApiAxiosParamCreator(configuration)
|
|
3171
3270
|
return {
|
|
3172
3271
|
/**
|
|
3173
3272
|
*
|
|
3174
|
-
* @summary
|
|
3273
|
+
* @summary Delete Evidence
|
|
3274
|
+
* @param {string} evidenceId
|
|
3275
|
+
* @param {string} [authorization]
|
|
3276
|
+
* @param {string} [sessionId]
|
|
3175
3277
|
* @param {*} [options] Override http request option.
|
|
3176
3278
|
* @throws {RequiredError}
|
|
3177
3279
|
*/
|
|
3178
|
-
async
|
|
3179
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
3280
|
+
async deleteEvidenceV1EvidenceDeleteDelete(evidenceId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
3281
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteEvidenceV1EvidenceDeleteDelete(evidenceId, authorization, sessionId, options);
|
|
3180
3282
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3181
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
3283
|
+
const localVarOperationServerBasePath = operationServerMap['EvidenceApi.deleteEvidenceV1EvidenceDeleteDelete']?.[localVarOperationServerIndex]?.url;
|
|
3182
3284
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3183
3285
|
},
|
|
3184
3286
|
/**
|
|
3185
3287
|
*
|
|
3186
|
-
* @summary Get
|
|
3288
|
+
* @summary Get Evidence Files
|
|
3289
|
+
* @param {string} evidenceId
|
|
3290
|
+
* @param {string} [authorization]
|
|
3291
|
+
* @param {string} [sessionId]
|
|
3187
3292
|
* @param {*} [options] Override http request option.
|
|
3188
3293
|
* @throws {RequiredError}
|
|
3189
3294
|
*/
|
|
3190
|
-
async
|
|
3191
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
3295
|
+
async getEvidenceFilesV1EvidenceFileEvidenceIdGet(evidenceId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<FileDownload>>> {
|
|
3296
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getEvidenceFilesV1EvidenceFileEvidenceIdGet(evidenceId, authorization, sessionId, options);
|
|
3192
3297
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3193
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
3298
|
+
const localVarOperationServerBasePath = operationServerMap['EvidenceApi.getEvidenceFilesV1EvidenceFileEvidenceIdGet']?.[localVarOperationServerIndex]?.url;
|
|
3194
3299
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3195
3300
|
},
|
|
3196
3301
|
/**
|
|
3197
3302
|
*
|
|
3198
|
-
* @summary
|
|
3303
|
+
* @summary List Company Evidence
|
|
3304
|
+
* @param {string} companyId
|
|
3305
|
+
* @param {string} [authorization]
|
|
3306
|
+
* @param {string} [sessionId]
|
|
3199
3307
|
* @param {*} [options] Override http request option.
|
|
3200
3308
|
* @throws {RequiredError}
|
|
3201
3309
|
*/
|
|
3202
|
-
async
|
|
3203
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
3310
|
+
async listCompanyEvidenceV1EvidenceCompanyCompanyIdGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<EvidenceBase>>> {
|
|
3311
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listCompanyEvidenceV1EvidenceCompanyCompanyIdGet(companyId, authorization, sessionId, options);
|
|
3204
3312
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3205
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
3313
|
+
const localVarOperationServerBasePath = operationServerMap['EvidenceApi.listCompanyEvidenceV1EvidenceCompanyCompanyIdGet']?.[localVarOperationServerIndex]?.url;
|
|
3206
3314
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3207
3315
|
},
|
|
3208
3316
|
/**
|
|
3209
3317
|
*
|
|
3210
|
-
* @summary
|
|
3318
|
+
* @summary Update Evidence
|
|
3319
|
+
* @param {string} evidenceId
|
|
3320
|
+
* @param {string} text
|
|
3321
|
+
* @param {string} [authorization]
|
|
3322
|
+
* @param {string} [sessionId]
|
|
3211
3323
|
* @param {*} [options] Override http request option.
|
|
3212
3324
|
* @throws {RequiredError}
|
|
3213
3325
|
*/
|
|
3214
|
-
async
|
|
3215
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
3326
|
+
async updateEvidenceV1EvidenceUpdatePut(evidenceId: string, text: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EvidenceBase>> {
|
|
3327
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateEvidenceV1EvidenceUpdatePut(evidenceId, text, authorization, sessionId, options);
|
|
3328
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3329
|
+
const localVarOperationServerBasePath = operationServerMap['EvidenceApi.updateEvidenceV1EvidenceUpdatePut']?.[localVarOperationServerIndex]?.url;
|
|
3330
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3331
|
+
},
|
|
3332
|
+
/**
|
|
3333
|
+
*
|
|
3334
|
+
* @summary Upload Evidence
|
|
3335
|
+
* @param {string} companyId
|
|
3336
|
+
* @param {string} controlId
|
|
3337
|
+
* @param {File | null} file
|
|
3338
|
+
* @param {string | null} text
|
|
3339
|
+
* @param {string} [authorization]
|
|
3340
|
+
* @param {string} [sessionId]
|
|
3341
|
+
* @param {*} [options] Override http request option.
|
|
3342
|
+
* @throws {RequiredError}
|
|
3343
|
+
*/
|
|
3344
|
+
async uploadEvidenceV1EvidenceUploadPost(companyId: string, controlId: string, file: File | null, text: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EvidenceBase>> {
|
|
3345
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadEvidenceV1EvidenceUploadPost(companyId, controlId, file, text, authorization, sessionId, options);
|
|
3216
3346
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3217
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
3347
|
+
const localVarOperationServerBasePath = operationServerMap['EvidenceApi.uploadEvidenceV1EvidenceUploadPost']?.[localVarOperationServerIndex]?.url;
|
|
3218
3348
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3219
3349
|
},
|
|
3220
3350
|
}
|
|
3221
3351
|
};
|
|
3222
3352
|
|
|
3223
3353
|
/**
|
|
3224
|
-
*
|
|
3354
|
+
* EvidenceApi - factory interface
|
|
3225
3355
|
* @export
|
|
3226
3356
|
*/
|
|
3227
|
-
export const
|
|
3228
|
-
const localVarFp =
|
|
3357
|
+
export const EvidenceApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
3358
|
+
const localVarFp = EvidenceApiFp(configuration)
|
|
3229
3359
|
return {
|
|
3230
3360
|
/**
|
|
3231
3361
|
*
|
|
3232
|
-
* @summary
|
|
3362
|
+
* @summary Delete Evidence
|
|
3363
|
+
* @param {string} evidenceId
|
|
3364
|
+
* @param {string} [authorization]
|
|
3365
|
+
* @param {string} [sessionId]
|
|
3233
3366
|
* @param {*} [options] Override http request option.
|
|
3234
3367
|
* @throws {RequiredError}
|
|
3235
3368
|
*/
|
|
3236
|
-
|
|
3237
|
-
return localVarFp.
|
|
3369
|
+
deleteEvidenceV1EvidenceDeleteDelete(evidenceId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
3370
|
+
return localVarFp.deleteEvidenceV1EvidenceDeleteDelete(evidenceId, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
3238
3371
|
},
|
|
3239
3372
|
/**
|
|
3240
3373
|
*
|
|
3241
|
-
* @summary Get
|
|
3374
|
+
* @summary Get Evidence Files
|
|
3375
|
+
* @param {string} evidenceId
|
|
3376
|
+
* @param {string} [authorization]
|
|
3377
|
+
* @param {string} [sessionId]
|
|
3242
3378
|
* @param {*} [options] Override http request option.
|
|
3243
3379
|
* @throws {RequiredError}
|
|
3244
3380
|
*/
|
|
3245
|
-
|
|
3246
|
-
return localVarFp.
|
|
3247
|
-
},
|
|
3381
|
+
getEvidenceFilesV1EvidenceFileEvidenceIdGet(evidenceId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<FileDownload>> {
|
|
3382
|
+
return localVarFp.getEvidenceFilesV1EvidenceFileEvidenceIdGet(evidenceId, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
3383
|
+
},
|
|
3248
3384
|
/**
|
|
3249
3385
|
*
|
|
3250
|
-
* @summary
|
|
3386
|
+
* @summary List Company Evidence
|
|
3387
|
+
* @param {string} companyId
|
|
3388
|
+
* @param {string} [authorization]
|
|
3389
|
+
* @param {string} [sessionId]
|
|
3251
3390
|
* @param {*} [options] Override http request option.
|
|
3252
3391
|
* @throws {RequiredError}
|
|
3253
3392
|
*/
|
|
3254
|
-
|
|
3255
|
-
return localVarFp.
|
|
3393
|
+
listCompanyEvidenceV1EvidenceCompanyCompanyIdGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<EvidenceBase>> {
|
|
3394
|
+
return localVarFp.listCompanyEvidenceV1EvidenceCompanyCompanyIdGet(companyId, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
3256
3395
|
},
|
|
3257
3396
|
/**
|
|
3258
3397
|
*
|
|
3259
|
-
* @summary
|
|
3398
|
+
* @summary Update Evidence
|
|
3399
|
+
* @param {string} evidenceId
|
|
3400
|
+
* @param {string} text
|
|
3401
|
+
* @param {string} [authorization]
|
|
3402
|
+
* @param {string} [sessionId]
|
|
3260
3403
|
* @param {*} [options] Override http request option.
|
|
3261
3404
|
* @throws {RequiredError}
|
|
3262
3405
|
*/
|
|
3263
|
-
|
|
3264
|
-
return localVarFp.
|
|
3406
|
+
updateEvidenceV1EvidenceUpdatePut(evidenceId: string, text: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<EvidenceBase> {
|
|
3407
|
+
return localVarFp.updateEvidenceV1EvidenceUpdatePut(evidenceId, text, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
3408
|
+
},
|
|
3409
|
+
/**
|
|
3410
|
+
*
|
|
3411
|
+
* @summary Upload Evidence
|
|
3412
|
+
* @param {string} companyId
|
|
3413
|
+
* @param {string} controlId
|
|
3414
|
+
* @param {File | null} file
|
|
3415
|
+
* @param {string | null} text
|
|
3416
|
+
* @param {string} [authorization]
|
|
3417
|
+
* @param {string} [sessionId]
|
|
3418
|
+
* @param {*} [options] Override http request option.
|
|
3419
|
+
* @throws {RequiredError}
|
|
3420
|
+
*/
|
|
3421
|
+
uploadEvidenceV1EvidenceUploadPost(companyId: string, controlId: string, file: File | null, text: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<EvidenceBase> {
|
|
3422
|
+
return localVarFp.uploadEvidenceV1EvidenceUploadPost(companyId, controlId, file, text, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
3265
3423
|
},
|
|
3266
3424
|
};
|
|
3267
3425
|
};
|
|
3268
3426
|
|
|
3269
3427
|
/**
|
|
3270
|
-
*
|
|
3428
|
+
* EvidenceApi - object-oriented interface
|
|
3271
3429
|
* @export
|
|
3272
|
-
* @class
|
|
3430
|
+
* @class EvidenceApi
|
|
3273
3431
|
* @extends {BaseAPI}
|
|
3274
3432
|
*/
|
|
3275
|
-
export class
|
|
3433
|
+
export class EvidenceApi extends BaseAPI {
|
|
3276
3434
|
/**
|
|
3277
3435
|
*
|
|
3278
|
-
* @summary
|
|
3436
|
+
* @summary Delete Evidence
|
|
3437
|
+
* @param {string} evidenceId
|
|
3438
|
+
* @param {string} [authorization]
|
|
3439
|
+
* @param {string} [sessionId]
|
|
3279
3440
|
* @param {*} [options] Override http request option.
|
|
3280
3441
|
* @throws {RequiredError}
|
|
3281
|
-
* @memberof
|
|
3442
|
+
* @memberof EvidenceApi
|
|
3282
3443
|
*/
|
|
3283
|
-
public
|
|
3284
|
-
return
|
|
3444
|
+
public deleteEvidenceV1EvidenceDeleteDelete(evidenceId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
|
|
3445
|
+
return EvidenceApiFp(this.configuration).deleteEvidenceV1EvidenceDeleteDelete(evidenceId, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
3285
3446
|
}
|
|
3286
3447
|
|
|
3287
3448
|
/**
|
|
3288
3449
|
*
|
|
3289
|
-
* @summary Get
|
|
3450
|
+
* @summary Get Evidence Files
|
|
3451
|
+
* @param {string} evidenceId
|
|
3452
|
+
* @param {string} [authorization]
|
|
3453
|
+
* @param {string} [sessionId]
|
|
3290
3454
|
* @param {*} [options] Override http request option.
|
|
3291
3455
|
* @throws {RequiredError}
|
|
3292
|
-
* @memberof
|
|
3456
|
+
* @memberof EvidenceApi
|
|
3293
3457
|
*/
|
|
3294
|
-
public
|
|
3295
|
-
return
|
|
3458
|
+
public getEvidenceFilesV1EvidenceFileEvidenceIdGet(evidenceId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
|
|
3459
|
+
return EvidenceApiFp(this.configuration).getEvidenceFilesV1EvidenceFileEvidenceIdGet(evidenceId, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
3296
3460
|
}
|
|
3297
3461
|
|
|
3298
3462
|
/**
|
|
3299
3463
|
*
|
|
3300
|
-
* @summary
|
|
3464
|
+
* @summary List Company Evidence
|
|
3465
|
+
* @param {string} companyId
|
|
3466
|
+
* @param {string} [authorization]
|
|
3467
|
+
* @param {string} [sessionId]
|
|
3301
3468
|
* @param {*} [options] Override http request option.
|
|
3302
3469
|
* @throws {RequiredError}
|
|
3303
|
-
* @memberof
|
|
3470
|
+
* @memberof EvidenceApi
|
|
3304
3471
|
*/
|
|
3305
|
-
public
|
|
3306
|
-
return
|
|
3472
|
+
public listCompanyEvidenceV1EvidenceCompanyCompanyIdGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
|
|
3473
|
+
return EvidenceApiFp(this.configuration).listCompanyEvidenceV1EvidenceCompanyCompanyIdGet(companyId, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
3307
3474
|
}
|
|
3308
3475
|
|
|
3309
3476
|
/**
|
|
3310
3477
|
*
|
|
3311
|
-
* @summary
|
|
3478
|
+
* @summary Update Evidence
|
|
3479
|
+
* @param {string} evidenceId
|
|
3480
|
+
* @param {string} text
|
|
3481
|
+
* @param {string} [authorization]
|
|
3482
|
+
* @param {string} [sessionId]
|
|
3312
3483
|
* @param {*} [options] Override http request option.
|
|
3313
3484
|
* @throws {RequiredError}
|
|
3314
|
-
* @memberof
|
|
3485
|
+
* @memberof EvidenceApi
|
|
3315
3486
|
*/
|
|
3316
|
-
public
|
|
3317
|
-
return
|
|
3487
|
+
public updateEvidenceV1EvidenceUpdatePut(evidenceId: string, text: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
|
|
3488
|
+
return EvidenceApiFp(this.configuration).updateEvidenceV1EvidenceUpdatePut(evidenceId, text, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
3489
|
+
}
|
|
3490
|
+
|
|
3491
|
+
/**
|
|
3492
|
+
*
|
|
3493
|
+
* @summary Upload Evidence
|
|
3494
|
+
* @param {string} companyId
|
|
3495
|
+
* @param {string} controlId
|
|
3496
|
+
* @param {File | null} file
|
|
3497
|
+
* @param {string | null} text
|
|
3498
|
+
* @param {string} [authorization]
|
|
3499
|
+
* @param {string} [sessionId]
|
|
3500
|
+
* @param {*} [options] Override http request option.
|
|
3501
|
+
* @throws {RequiredError}
|
|
3502
|
+
* @memberof EvidenceApi
|
|
3503
|
+
*/
|
|
3504
|
+
public uploadEvidenceV1EvidenceUploadPost(companyId: string, controlId: string, file: File | null, text: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
|
|
3505
|
+
return EvidenceApiFp(this.configuration).uploadEvidenceV1EvidenceUploadPost(companyId, controlId, file, text, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
3318
3506
|
}
|
|
3319
3507
|
}
|
|
3320
3508
|
|
|
3321
3509
|
|
|
3322
3510
|
|
|
3323
3511
|
/**
|
|
3324
|
-
*
|
|
3512
|
+
* HealthApi - axios parameter creator
|
|
3325
3513
|
* @export
|
|
3326
3514
|
*/
|
|
3327
|
-
export const
|
|
3515
|
+
export const HealthApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
3328
3516
|
return {
|
|
3329
3517
|
/**
|
|
3330
3518
|
*
|
|
3331
|
-
* @summary
|
|
3332
|
-
* @param {string} evidenceId
|
|
3333
|
-
* @param {string} [authorization]
|
|
3334
|
-
* @param {string} [sessionId]
|
|
3519
|
+
* @summary Get Db Health
|
|
3335
3520
|
* @param {*} [options] Override http request option.
|
|
3336
3521
|
* @throws {RequiredError}
|
|
3337
3522
|
*/
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
assertParamExists('deleteEvidenceV1EvidenceDeleteDelete', 'evidenceId', evidenceId)
|
|
3341
|
-
const localVarPath = `/v1/evidence/delete`;
|
|
3523
|
+
getDbHealthHealthDbGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3524
|
+
const localVarPath = `/health/db`;
|
|
3342
3525
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3343
3526
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3344
3527
|
let baseOptions;
|
|
@@ -3346,26 +3529,15 @@ export const EvidenceApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
3346
3529
|
baseOptions = configuration.baseOptions;
|
|
3347
3530
|
}
|
|
3348
3531
|
|
|
3349
|
-
const localVarRequestOptions = { method: '
|
|
3532
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
3350
3533
|
const localVarHeaderParameter = {} as any;
|
|
3351
3534
|
const localVarQueryParameter = {} as any;
|
|
3352
|
-
const localVarFormParams = new URLSearchParams();
|
|
3353
3535
|
|
|
3354
3536
|
|
|
3355
|
-
if (evidenceId !== undefined) {
|
|
3356
|
-
localVarFormParams.set('evidence_id', evidenceId as any);
|
|
3357
|
-
}
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
localVarHeaderParameter['Content-Type'] = 'application/x-www-form-urlencoded';
|
|
3361
3537
|
|
|
3362
|
-
if (authorization != null) {
|
|
3363
|
-
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
3364
|
-
}
|
|
3365
3538
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3366
3539
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3367
3540
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3368
|
-
localVarRequestOptions.data = localVarFormParams.toString();
|
|
3369
3541
|
|
|
3370
3542
|
return {
|
|
3371
3543
|
url: toPathString(localVarUrlObj),
|
|
@@ -3374,18 +3546,12 @@ export const EvidenceApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
3374
3546
|
},
|
|
3375
3547
|
/**
|
|
3376
3548
|
*
|
|
3377
|
-
* @summary Get
|
|
3378
|
-
* @param {string} evidenceId
|
|
3379
|
-
* @param {string} [authorization]
|
|
3380
|
-
* @param {string} [sessionId]
|
|
3549
|
+
* @summary Get Health
|
|
3381
3550
|
* @param {*} [options] Override http request option.
|
|
3382
3551
|
* @throws {RequiredError}
|
|
3383
3552
|
*/
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
assertParamExists('getEvidenceFilesV1EvidenceFileEvidenceIdGet', 'evidenceId', evidenceId)
|
|
3387
|
-
const localVarPath = `/v1/evidence/file/{evidence_id}`
|
|
3388
|
-
.replace(`{${"evidence_id"}}`, encodeURIComponent(String(evidenceId)));
|
|
3553
|
+
getHealthHealthGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3554
|
+
const localVarPath = `/health`;
|
|
3389
3555
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3390
3556
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3391
3557
|
let baseOptions;
|
|
@@ -3399,9 +3565,6 @@ export const EvidenceApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
3399
3565
|
|
|
3400
3566
|
|
|
3401
3567
|
|
|
3402
|
-
if (authorization != null) {
|
|
3403
|
-
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
3404
|
-
}
|
|
3405
3568
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3406
3569
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3407
3570
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -3413,18 +3576,12 @@ export const EvidenceApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
3413
3576
|
},
|
|
3414
3577
|
/**
|
|
3415
3578
|
*
|
|
3416
|
-
* @summary
|
|
3417
|
-
* @param {string} companyId
|
|
3418
|
-
* @param {string} [authorization]
|
|
3419
|
-
* @param {string} [sessionId]
|
|
3579
|
+
* @summary Get Listmonk Health
|
|
3420
3580
|
* @param {*} [options] Override http request option.
|
|
3421
3581
|
* @throws {RequiredError}
|
|
3422
3582
|
*/
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
assertParamExists('listCompanyEvidenceV1EvidenceCompanyCompanyIdGet', 'companyId', companyId)
|
|
3426
|
-
const localVarPath = `/v1/evidence/company/{company_id}`
|
|
3427
|
-
.replace(`{${"company_id"}}`, encodeURIComponent(String(companyId)));
|
|
3583
|
+
getListmonkHealthHealthListmonkGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3584
|
+
const localVarPath = `/health/listmonk`;
|
|
3428
3585
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3429
3586
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3430
3587
|
let baseOptions;
|
|
@@ -3438,9 +3595,6 @@ export const EvidenceApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
3438
3595
|
|
|
3439
3596
|
|
|
3440
3597
|
|
|
3441
|
-
if (authorization != null) {
|
|
3442
|
-
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
3443
|
-
}
|
|
3444
3598
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3445
3599
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3446
3600
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -3452,20 +3606,12 @@ export const EvidenceApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
3452
3606
|
},
|
|
3453
3607
|
/**
|
|
3454
3608
|
*
|
|
3455
|
-
* @summary
|
|
3456
|
-
* @param {string} evidenceId
|
|
3457
|
-
* @param {string} text
|
|
3458
|
-
* @param {string} [authorization]
|
|
3459
|
-
* @param {string} [sessionId]
|
|
3609
|
+
* @summary Get Rate Limit Health
|
|
3460
3610
|
* @param {*} [options] Override http request option.
|
|
3461
3611
|
* @throws {RequiredError}
|
|
3462
3612
|
*/
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
assertParamExists('updateEvidenceV1EvidenceUpdatePut', 'evidenceId', evidenceId)
|
|
3466
|
-
// verify required parameter 'text' is not null or undefined
|
|
3467
|
-
assertParamExists('updateEvidenceV1EvidenceUpdatePut', 'text', text)
|
|
3468
|
-
const localVarPath = `/v1/evidence/update`;
|
|
3613
|
+
getRateLimitHealthHealthRateLimitGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3614
|
+
const localVarPath = `/health/rate_limit`;
|
|
3469
3615
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3470
3616
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3471
3617
|
let baseOptions;
|
|
@@ -3473,30 +3619,15 @@ export const EvidenceApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
3473
3619
|
baseOptions = configuration.baseOptions;
|
|
3474
3620
|
}
|
|
3475
3621
|
|
|
3476
|
-
const localVarRequestOptions = { method: '
|
|
3622
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
3477
3623
|
const localVarHeaderParameter = {} as any;
|
|
3478
3624
|
const localVarQueryParameter = {} as any;
|
|
3479
|
-
const localVarFormParams = new URLSearchParams();
|
|
3480
3625
|
|
|
3481
3626
|
|
|
3482
|
-
if (evidenceId !== undefined) {
|
|
3483
|
-
localVarFormParams.set('evidence_id', evidenceId as any);
|
|
3484
|
-
}
|
|
3485
|
-
|
|
3486
|
-
if (text !== undefined) {
|
|
3487
|
-
localVarFormParams.set('text', text as any);
|
|
3488
|
-
}
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
localVarHeaderParameter['Content-Type'] = 'application/x-www-form-urlencoded';
|
|
3492
3627
|
|
|
3493
|
-
if (authorization != null) {
|
|
3494
|
-
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
3495
|
-
}
|
|
3496
3628
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3497
3629
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3498
3630
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3499
|
-
localVarRequestOptions.data = localVarFormParams.toString();
|
|
3500
3631
|
|
|
3501
3632
|
return {
|
|
3502
3633
|
url: toPathString(localVarUrlObj),
|
|
@@ -3505,26 +3636,12 @@ export const EvidenceApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
3505
3636
|
},
|
|
3506
3637
|
/**
|
|
3507
3638
|
*
|
|
3508
|
-
* @summary
|
|
3509
|
-
* @param {string} companyId
|
|
3510
|
-
* @param {string} controlId
|
|
3511
|
-
* @param {File | null} file
|
|
3512
|
-
* @param {string | null} text
|
|
3513
|
-
* @param {string} [authorization]
|
|
3514
|
-
* @param {string} [sessionId]
|
|
3639
|
+
* @summary Get Redis Health
|
|
3515
3640
|
* @param {*} [options] Override http request option.
|
|
3516
3641
|
* @throws {RequiredError}
|
|
3517
3642
|
*/
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
assertParamExists('uploadEvidenceV1EvidenceUploadPost', 'companyId', companyId)
|
|
3521
|
-
// verify required parameter 'controlId' is not null or undefined
|
|
3522
|
-
assertParamExists('uploadEvidenceV1EvidenceUploadPost', 'controlId', controlId)
|
|
3523
|
-
// verify required parameter 'file' is not null or undefined
|
|
3524
|
-
assertParamExists('uploadEvidenceV1EvidenceUploadPost', 'file', file)
|
|
3525
|
-
// verify required parameter 'text' is not null or undefined
|
|
3526
|
-
assertParamExists('uploadEvidenceV1EvidenceUploadPost', 'text', text)
|
|
3527
|
-
const localVarPath = `/v1/evidence/upload`;
|
|
3643
|
+
getRedisHealthHealthRedisGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3644
|
+
const localVarPath = `/health/redis`;
|
|
3528
3645
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3529
3646
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3530
3647
|
let baseOptions;
|
|
@@ -3532,38 +3649,15 @@ export const EvidenceApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
3532
3649
|
baseOptions = configuration.baseOptions;
|
|
3533
3650
|
}
|
|
3534
3651
|
|
|
3535
|
-
const localVarRequestOptions = { method: '
|
|
3652
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
3536
3653
|
const localVarHeaderParameter = {} as any;
|
|
3537
3654
|
const localVarQueryParameter = {} as any;
|
|
3538
|
-
const localVarFormParams = new URLSearchParams();
|
|
3539
3655
|
|
|
3540
3656
|
|
|
3541
|
-
if (companyId !== undefined) {
|
|
3542
|
-
localVarFormParams.set('company_id', companyId as any);
|
|
3543
|
-
}
|
|
3544
3657
|
|
|
3545
|
-
if (controlId !== undefined) {
|
|
3546
|
-
localVarFormParams.set('control_id', controlId as any);
|
|
3547
|
-
}
|
|
3548
|
-
|
|
3549
|
-
if (file !== undefined) {
|
|
3550
|
-
localVarFormParams.set('file', file as any);
|
|
3551
|
-
}
|
|
3552
|
-
|
|
3553
|
-
if (text !== undefined) {
|
|
3554
|
-
localVarFormParams.set('text', text as any);
|
|
3555
|
-
}
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
localVarHeaderParameter['Content-Type'] = 'application/x-www-form-urlencoded';
|
|
3559
|
-
|
|
3560
|
-
if (authorization != null) {
|
|
3561
|
-
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
3562
|
-
}
|
|
3563
3658
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3564
3659
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3565
3660
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3566
|
-
localVarRequestOptions.data = localVarFormParams.toString();
|
|
3567
3661
|
|
|
3568
3662
|
return {
|
|
3569
3663
|
url: toPathString(localVarUrlObj),
|
|
@@ -3574,247 +3668,190 @@ export const EvidenceApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
3574
3668
|
};
|
|
3575
3669
|
|
|
3576
3670
|
/**
|
|
3577
|
-
*
|
|
3671
|
+
* HealthApi - functional programming interface
|
|
3578
3672
|
* @export
|
|
3579
3673
|
*/
|
|
3580
|
-
export const
|
|
3581
|
-
const localVarAxiosParamCreator =
|
|
3674
|
+
export const HealthApiFp = function(configuration?: Configuration) {
|
|
3675
|
+
const localVarAxiosParamCreator = HealthApiAxiosParamCreator(configuration)
|
|
3582
3676
|
return {
|
|
3583
3677
|
/**
|
|
3584
3678
|
*
|
|
3585
|
-
* @summary
|
|
3586
|
-
* @param {string} evidenceId
|
|
3587
|
-
* @param {string} [authorization]
|
|
3588
|
-
* @param {string} [sessionId]
|
|
3679
|
+
* @summary Get Db Health
|
|
3589
3680
|
* @param {*} [options] Override http request option.
|
|
3590
3681
|
* @throws {RequiredError}
|
|
3591
3682
|
*/
|
|
3592
|
-
async
|
|
3593
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
3683
|
+
async getDbHealthHealthDbGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
|
|
3684
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getDbHealthHealthDbGet(options);
|
|
3594
3685
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3595
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
3686
|
+
const localVarOperationServerBasePath = operationServerMap['HealthApi.getDbHealthHealthDbGet']?.[localVarOperationServerIndex]?.url;
|
|
3596
3687
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3597
3688
|
},
|
|
3598
3689
|
/**
|
|
3599
3690
|
*
|
|
3600
|
-
* @summary Get
|
|
3601
|
-
* @param {string} evidenceId
|
|
3602
|
-
* @param {string} [authorization]
|
|
3603
|
-
* @param {string} [sessionId]
|
|
3691
|
+
* @summary Get Health
|
|
3604
3692
|
* @param {*} [options] Override http request option.
|
|
3605
3693
|
* @throws {RequiredError}
|
|
3606
3694
|
*/
|
|
3607
|
-
async
|
|
3608
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
3695
|
+
async getHealthHealthGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
|
|
3696
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getHealthHealthGet(options);
|
|
3609
3697
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3610
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
3698
|
+
const localVarOperationServerBasePath = operationServerMap['HealthApi.getHealthHealthGet']?.[localVarOperationServerIndex]?.url;
|
|
3611
3699
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3612
3700
|
},
|
|
3613
3701
|
/**
|
|
3614
3702
|
*
|
|
3615
|
-
* @summary
|
|
3616
|
-
* @param {string} companyId
|
|
3617
|
-
* @param {string} [authorization]
|
|
3618
|
-
* @param {string} [sessionId]
|
|
3703
|
+
* @summary Get Listmonk Health
|
|
3619
3704
|
* @param {*} [options] Override http request option.
|
|
3620
3705
|
* @throws {RequiredError}
|
|
3621
3706
|
*/
|
|
3622
|
-
async
|
|
3623
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
3707
|
+
async getListmonkHealthHealthListmonkGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
|
|
3708
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getListmonkHealthHealthListmonkGet(options);
|
|
3624
3709
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3625
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
3710
|
+
const localVarOperationServerBasePath = operationServerMap['HealthApi.getListmonkHealthHealthListmonkGet']?.[localVarOperationServerIndex]?.url;
|
|
3626
3711
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3627
3712
|
},
|
|
3628
3713
|
/**
|
|
3629
3714
|
*
|
|
3630
|
-
* @summary
|
|
3631
|
-
* @param {string} evidenceId
|
|
3632
|
-
* @param {string} text
|
|
3633
|
-
* @param {string} [authorization]
|
|
3634
|
-
* @param {string} [sessionId]
|
|
3715
|
+
* @summary Get Rate Limit Health
|
|
3635
3716
|
* @param {*} [options] Override http request option.
|
|
3636
3717
|
* @throws {RequiredError}
|
|
3637
3718
|
*/
|
|
3638
|
-
async
|
|
3639
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
3719
|
+
async getRateLimitHealthHealthRateLimitGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
|
|
3720
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getRateLimitHealthHealthRateLimitGet(options);
|
|
3640
3721
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3641
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
3722
|
+
const localVarOperationServerBasePath = operationServerMap['HealthApi.getRateLimitHealthHealthRateLimitGet']?.[localVarOperationServerIndex]?.url;
|
|
3642
3723
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3643
3724
|
},
|
|
3644
3725
|
/**
|
|
3645
3726
|
*
|
|
3646
|
-
* @summary
|
|
3647
|
-
* @param {string} companyId
|
|
3648
|
-
* @param {string} controlId
|
|
3649
|
-
* @param {File | null} file
|
|
3650
|
-
* @param {string | null} text
|
|
3651
|
-
* @param {string} [authorization]
|
|
3652
|
-
* @param {string} [sessionId]
|
|
3727
|
+
* @summary Get Redis Health
|
|
3653
3728
|
* @param {*} [options] Override http request option.
|
|
3654
3729
|
* @throws {RequiredError}
|
|
3655
3730
|
*/
|
|
3656
|
-
async
|
|
3657
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
3731
|
+
async getRedisHealthHealthRedisGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
|
|
3732
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getRedisHealthHealthRedisGet(options);
|
|
3658
3733
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3659
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
3734
|
+
const localVarOperationServerBasePath = operationServerMap['HealthApi.getRedisHealthHealthRedisGet']?.[localVarOperationServerIndex]?.url;
|
|
3660
3735
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3661
3736
|
},
|
|
3662
3737
|
}
|
|
3663
3738
|
};
|
|
3664
3739
|
|
|
3665
3740
|
/**
|
|
3666
|
-
*
|
|
3741
|
+
* HealthApi - factory interface
|
|
3667
3742
|
* @export
|
|
3668
3743
|
*/
|
|
3669
|
-
export const
|
|
3670
|
-
const localVarFp =
|
|
3744
|
+
export const HealthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
3745
|
+
const localVarFp = HealthApiFp(configuration)
|
|
3671
3746
|
return {
|
|
3672
3747
|
/**
|
|
3673
3748
|
*
|
|
3674
|
-
* @summary
|
|
3675
|
-
* @param {string} evidenceId
|
|
3676
|
-
* @param {string} [authorization]
|
|
3677
|
-
* @param {string} [sessionId]
|
|
3749
|
+
* @summary Get Db Health
|
|
3678
3750
|
* @param {*} [options] Override http request option.
|
|
3679
3751
|
* @throws {RequiredError}
|
|
3680
3752
|
*/
|
|
3681
|
-
|
|
3682
|
-
return localVarFp.
|
|
3753
|
+
getDbHealthHealthDbGet(options?: RawAxiosRequestConfig): AxiosPromise<any> {
|
|
3754
|
+
return localVarFp.getDbHealthHealthDbGet(options).then((request) => request(axios, basePath));
|
|
3683
3755
|
},
|
|
3684
3756
|
/**
|
|
3685
3757
|
*
|
|
3686
|
-
* @summary Get
|
|
3687
|
-
* @param {string} evidenceId
|
|
3688
|
-
* @param {string} [authorization]
|
|
3689
|
-
* @param {string} [sessionId]
|
|
3758
|
+
* @summary Get Health
|
|
3690
3759
|
* @param {*} [options] Override http request option.
|
|
3691
3760
|
* @throws {RequiredError}
|
|
3692
3761
|
*/
|
|
3693
|
-
|
|
3694
|
-
return localVarFp.
|
|
3762
|
+
getHealthHealthGet(options?: RawAxiosRequestConfig): AxiosPromise<any> {
|
|
3763
|
+
return localVarFp.getHealthHealthGet(options).then((request) => request(axios, basePath));
|
|
3695
3764
|
},
|
|
3696
3765
|
/**
|
|
3697
3766
|
*
|
|
3698
|
-
* @summary
|
|
3699
|
-
* @param {string} companyId
|
|
3700
|
-
* @param {string} [authorization]
|
|
3701
|
-
* @param {string} [sessionId]
|
|
3767
|
+
* @summary Get Listmonk Health
|
|
3702
3768
|
* @param {*} [options] Override http request option.
|
|
3703
3769
|
* @throws {RequiredError}
|
|
3704
3770
|
*/
|
|
3705
|
-
|
|
3706
|
-
return localVarFp.
|
|
3771
|
+
getListmonkHealthHealthListmonkGet(options?: RawAxiosRequestConfig): AxiosPromise<any> {
|
|
3772
|
+
return localVarFp.getListmonkHealthHealthListmonkGet(options).then((request) => request(axios, basePath));
|
|
3707
3773
|
},
|
|
3708
3774
|
/**
|
|
3709
3775
|
*
|
|
3710
|
-
* @summary
|
|
3711
|
-
* @param {string} evidenceId
|
|
3712
|
-
* @param {string} text
|
|
3713
|
-
* @param {string} [authorization]
|
|
3714
|
-
* @param {string} [sessionId]
|
|
3776
|
+
* @summary Get Rate Limit Health
|
|
3715
3777
|
* @param {*} [options] Override http request option.
|
|
3716
3778
|
* @throws {RequiredError}
|
|
3717
3779
|
*/
|
|
3718
|
-
|
|
3719
|
-
return localVarFp.
|
|
3780
|
+
getRateLimitHealthHealthRateLimitGet(options?: RawAxiosRequestConfig): AxiosPromise<any> {
|
|
3781
|
+
return localVarFp.getRateLimitHealthHealthRateLimitGet(options).then((request) => request(axios, basePath));
|
|
3720
3782
|
},
|
|
3721
3783
|
/**
|
|
3722
3784
|
*
|
|
3723
|
-
* @summary
|
|
3724
|
-
* @param {string} companyId
|
|
3725
|
-
* @param {string} controlId
|
|
3726
|
-
* @param {File | null} file
|
|
3727
|
-
* @param {string | null} text
|
|
3728
|
-
* @param {string} [authorization]
|
|
3729
|
-
* @param {string} [sessionId]
|
|
3785
|
+
* @summary Get Redis Health
|
|
3730
3786
|
* @param {*} [options] Override http request option.
|
|
3731
3787
|
* @throws {RequiredError}
|
|
3732
3788
|
*/
|
|
3733
|
-
|
|
3734
|
-
return localVarFp.
|
|
3789
|
+
getRedisHealthHealthRedisGet(options?: RawAxiosRequestConfig): AxiosPromise<any> {
|
|
3790
|
+
return localVarFp.getRedisHealthHealthRedisGet(options).then((request) => request(axios, basePath));
|
|
3735
3791
|
},
|
|
3736
3792
|
};
|
|
3737
3793
|
};
|
|
3738
3794
|
|
|
3739
3795
|
/**
|
|
3740
|
-
*
|
|
3796
|
+
* HealthApi - object-oriented interface
|
|
3741
3797
|
* @export
|
|
3742
|
-
* @class
|
|
3798
|
+
* @class HealthApi
|
|
3743
3799
|
* @extends {BaseAPI}
|
|
3744
3800
|
*/
|
|
3745
|
-
export class
|
|
3801
|
+
export class HealthApi extends BaseAPI {
|
|
3746
3802
|
/**
|
|
3747
3803
|
*
|
|
3748
|
-
* @summary
|
|
3749
|
-
* @param {string} evidenceId
|
|
3750
|
-
* @param {string} [authorization]
|
|
3751
|
-
* @param {string} [sessionId]
|
|
3804
|
+
* @summary Get Db Health
|
|
3752
3805
|
* @param {*} [options] Override http request option.
|
|
3753
3806
|
* @throws {RequiredError}
|
|
3754
|
-
* @memberof
|
|
3807
|
+
* @memberof HealthApi
|
|
3755
3808
|
*/
|
|
3756
|
-
public
|
|
3757
|
-
return
|
|
3809
|
+
public getDbHealthHealthDbGet(options?: RawAxiosRequestConfig) {
|
|
3810
|
+
return HealthApiFp(this.configuration).getDbHealthHealthDbGet(options).then((request) => request(this.axios, this.basePath));
|
|
3758
3811
|
}
|
|
3759
3812
|
|
|
3760
3813
|
/**
|
|
3761
3814
|
*
|
|
3762
|
-
* @summary Get
|
|
3763
|
-
* @param {string} evidenceId
|
|
3764
|
-
* @param {string} [authorization]
|
|
3765
|
-
* @param {string} [sessionId]
|
|
3815
|
+
* @summary Get Health
|
|
3766
3816
|
* @param {*} [options] Override http request option.
|
|
3767
3817
|
* @throws {RequiredError}
|
|
3768
|
-
* @memberof
|
|
3818
|
+
* @memberof HealthApi
|
|
3769
3819
|
*/
|
|
3770
|
-
public
|
|
3771
|
-
return
|
|
3820
|
+
public getHealthHealthGet(options?: RawAxiosRequestConfig) {
|
|
3821
|
+
return HealthApiFp(this.configuration).getHealthHealthGet(options).then((request) => request(this.axios, this.basePath));
|
|
3772
3822
|
}
|
|
3773
3823
|
|
|
3774
3824
|
/**
|
|
3775
3825
|
*
|
|
3776
|
-
* @summary
|
|
3777
|
-
* @param {string} companyId
|
|
3778
|
-
* @param {string} [authorization]
|
|
3779
|
-
* @param {string} [sessionId]
|
|
3826
|
+
* @summary Get Listmonk Health
|
|
3780
3827
|
* @param {*} [options] Override http request option.
|
|
3781
3828
|
* @throws {RequiredError}
|
|
3782
|
-
* @memberof
|
|
3829
|
+
* @memberof HealthApi
|
|
3783
3830
|
*/
|
|
3784
|
-
public
|
|
3785
|
-
return
|
|
3831
|
+
public getListmonkHealthHealthListmonkGet(options?: RawAxiosRequestConfig) {
|
|
3832
|
+
return HealthApiFp(this.configuration).getListmonkHealthHealthListmonkGet(options).then((request) => request(this.axios, this.basePath));
|
|
3786
3833
|
}
|
|
3787
3834
|
|
|
3788
3835
|
/**
|
|
3789
3836
|
*
|
|
3790
|
-
* @summary
|
|
3791
|
-
* @param {string} evidenceId
|
|
3792
|
-
* @param {string} text
|
|
3793
|
-
* @param {string} [authorization]
|
|
3794
|
-
* @param {string} [sessionId]
|
|
3837
|
+
* @summary Get Rate Limit Health
|
|
3795
3838
|
* @param {*} [options] Override http request option.
|
|
3796
3839
|
* @throws {RequiredError}
|
|
3797
|
-
* @memberof
|
|
3840
|
+
* @memberof HealthApi
|
|
3798
3841
|
*/
|
|
3799
|
-
public
|
|
3800
|
-
return
|
|
3842
|
+
public getRateLimitHealthHealthRateLimitGet(options?: RawAxiosRequestConfig) {
|
|
3843
|
+
return HealthApiFp(this.configuration).getRateLimitHealthHealthRateLimitGet(options).then((request) => request(this.axios, this.basePath));
|
|
3801
3844
|
}
|
|
3802
3845
|
|
|
3803
3846
|
/**
|
|
3804
3847
|
*
|
|
3805
|
-
* @summary
|
|
3806
|
-
* @param {string} companyId
|
|
3807
|
-
* @param {string} controlId
|
|
3808
|
-
* @param {File | null} file
|
|
3809
|
-
* @param {string | null} text
|
|
3810
|
-
* @param {string} [authorization]
|
|
3811
|
-
* @param {string} [sessionId]
|
|
3848
|
+
* @summary Get Redis Health
|
|
3812
3849
|
* @param {*} [options] Override http request option.
|
|
3813
3850
|
* @throws {RequiredError}
|
|
3814
|
-
* @memberof
|
|
3851
|
+
* @memberof HealthApi
|
|
3815
3852
|
*/
|
|
3816
|
-
public
|
|
3817
|
-
return
|
|
3853
|
+
public getRedisHealthHealthRedisGet(options?: RawAxiosRequestConfig) {
|
|
3854
|
+
return HealthApiFp(this.configuration).getRedisHealthHealthRedisGet(options).then((request) => request(this.axios, this.basePath));
|
|
3818
3855
|
}
|
|
3819
3856
|
}
|
|
3820
3857
|
|
|
@@ -3829,20 +3866,19 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
3829
3866
|
/**
|
|
3830
3867
|
*
|
|
3831
3868
|
* @summary Get Checkout Session
|
|
3832
|
-
* @param {string} userId
|
|
3833
3869
|
* @param {string} companyId
|
|
3834
3870
|
* @param {string} productId
|
|
3871
|
+
* @param {string} [authorization]
|
|
3872
|
+
* @param {string} [sessionId]
|
|
3835
3873
|
* @param {*} [options] Override http request option.
|
|
3836
3874
|
* @throws {RequiredError}
|
|
3837
3875
|
*/
|
|
3838
|
-
|
|
3839
|
-
// verify required parameter 'userId' is not null or undefined
|
|
3840
|
-
assertParamExists('getCheckoutSessionPaymentsCheckoutGet', 'userId', userId)
|
|
3876
|
+
getCheckoutSessionV1PaymentsCheckoutGet: async (companyId: string, productId: string, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3841
3877
|
// verify required parameter 'companyId' is not null or undefined
|
|
3842
|
-
assertParamExists('
|
|
3878
|
+
assertParamExists('getCheckoutSessionV1PaymentsCheckoutGet', 'companyId', companyId)
|
|
3843
3879
|
// verify required parameter 'productId' is not null or undefined
|
|
3844
|
-
assertParamExists('
|
|
3845
|
-
const localVarPath = `/payments/checkout`;
|
|
3880
|
+
assertParamExists('getCheckoutSessionV1PaymentsCheckoutGet', 'productId', productId)
|
|
3881
|
+
const localVarPath = `/v1/payments/checkout`;
|
|
3846
3882
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3847
3883
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3848
3884
|
let baseOptions;
|
|
@@ -3854,10 +3890,6 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
3854
3890
|
const localVarHeaderParameter = {} as any;
|
|
3855
3891
|
const localVarQueryParameter = {} as any;
|
|
3856
3892
|
|
|
3857
|
-
if (userId !== undefined) {
|
|
3858
|
-
localVarQueryParameter['user_id'] = userId;
|
|
3859
|
-
}
|
|
3860
|
-
|
|
3861
3893
|
if (companyId !== undefined) {
|
|
3862
3894
|
localVarQueryParameter['company_id'] = companyId;
|
|
3863
3895
|
}
|
|
@@ -3868,6 +3900,9 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
3868
3900
|
|
|
3869
3901
|
|
|
3870
3902
|
|
|
3903
|
+
if (authorization != null) {
|
|
3904
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
3905
|
+
}
|
|
3871
3906
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3872
3907
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3873
3908
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -3885,8 +3920,8 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
3885
3920
|
* @param {*} [options] Override http request option.
|
|
3886
3921
|
* @throws {RequiredError}
|
|
3887
3922
|
*/
|
|
3888
|
-
|
|
3889
|
-
const localVarPath = `/payments/customer/management`;
|
|
3923
|
+
getCustomerManagementSessionV1PaymentsCustomerManagementGet: async (authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3924
|
+
const localVarPath = `/v1/payments/customer/management`;
|
|
3890
3925
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3891
3926
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3892
3927
|
let baseOptions;
|
|
@@ -3918,8 +3953,8 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
3918
3953
|
* @param {*} [options] Override http request option.
|
|
3919
3954
|
* @throws {RequiredError}
|
|
3920
3955
|
*/
|
|
3921
|
-
|
|
3922
|
-
const localVarPath = `/payments/webhook`;
|
|
3956
|
+
webhookV1PaymentsWebhookPost: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3957
|
+
const localVarPath = `/v1/payments/webhook`;
|
|
3923
3958
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3924
3959
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3925
3960
|
let baseOptions;
|
|
@@ -3955,16 +3990,17 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
|
|
|
3955
3990
|
/**
|
|
3956
3991
|
*
|
|
3957
3992
|
* @summary Get Checkout Session
|
|
3958
|
-
* @param {string} userId
|
|
3959
3993
|
* @param {string} companyId
|
|
3960
3994
|
* @param {string} productId
|
|
3995
|
+
* @param {string} [authorization]
|
|
3996
|
+
* @param {string} [sessionId]
|
|
3961
3997
|
* @param {*} [options] Override http request option.
|
|
3962
3998
|
* @throws {RequiredError}
|
|
3963
3999
|
*/
|
|
3964
|
-
async
|
|
3965
|
-
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);
|
|
3966
4002
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3967
|
-
const localVarOperationServerBasePath = operationServerMap['PaymentsApi.
|
|
4003
|
+
const localVarOperationServerBasePath = operationServerMap['PaymentsApi.getCheckoutSessionV1PaymentsCheckoutGet']?.[localVarOperationServerIndex]?.url;
|
|
3968
4004
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3969
4005
|
},
|
|
3970
4006
|
/**
|
|
@@ -3975,10 +4011,10 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
|
|
|
3975
4011
|
* @param {*} [options] Override http request option.
|
|
3976
4012
|
* @throws {RequiredError}
|
|
3977
4013
|
*/
|
|
3978
|
-
async
|
|
3979
|
-
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);
|
|
3980
4016
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3981
|
-
const localVarOperationServerBasePath = operationServerMap['PaymentsApi.
|
|
4017
|
+
const localVarOperationServerBasePath = operationServerMap['PaymentsApi.getCustomerManagementSessionV1PaymentsCustomerManagementGet']?.[localVarOperationServerIndex]?.url;
|
|
3982
4018
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3983
4019
|
},
|
|
3984
4020
|
/**
|
|
@@ -3987,10 +4023,10 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
|
|
|
3987
4023
|
* @param {*} [options] Override http request option.
|
|
3988
4024
|
* @throws {RequiredError}
|
|
3989
4025
|
*/
|
|
3990
|
-
async
|
|
3991
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
4026
|
+
async webhookV1PaymentsWebhookPost(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
|
|
4027
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.webhookV1PaymentsWebhookPost(options);
|
|
3992
4028
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3993
|
-
const localVarOperationServerBasePath = operationServerMap['PaymentsApi.
|
|
4029
|
+
const localVarOperationServerBasePath = operationServerMap['PaymentsApi.webhookV1PaymentsWebhookPost']?.[localVarOperationServerIndex]?.url;
|
|
3994
4030
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3995
4031
|
},
|
|
3996
4032
|
}
|
|
@@ -4006,14 +4042,15 @@ export const PaymentsApiFactory = function (configuration?: Configuration, baseP
|
|
|
4006
4042
|
/**
|
|
4007
4043
|
*
|
|
4008
4044
|
* @summary Get Checkout Session
|
|
4009
|
-
* @param {string} userId
|
|
4010
4045
|
* @param {string} companyId
|
|
4011
4046
|
* @param {string} productId
|
|
4047
|
+
* @param {string} [authorization]
|
|
4048
|
+
* @param {string} [sessionId]
|
|
4012
4049
|
* @param {*} [options] Override http request option.
|
|
4013
4050
|
* @throws {RequiredError}
|
|
4014
4051
|
*/
|
|
4015
|
-
|
|
4016
|
-
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));
|
|
4017
4054
|
},
|
|
4018
4055
|
/**
|
|
4019
4056
|
*
|
|
@@ -4023,8 +4060,8 @@ export const PaymentsApiFactory = function (configuration?: Configuration, baseP
|
|
|
4023
4060
|
* @param {*} [options] Override http request option.
|
|
4024
4061
|
* @throws {RequiredError}
|
|
4025
4062
|
*/
|
|
4026
|
-
|
|
4027
|
-
return localVarFp.
|
|
4063
|
+
getCustomerManagementSessionV1PaymentsCustomerManagementGet(authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<ResponseGetCustomerManagementSessionV1PaymentsCustomerManagementGet> {
|
|
4064
|
+
return localVarFp.getCustomerManagementSessionV1PaymentsCustomerManagementGet(authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
4028
4065
|
},
|
|
4029
4066
|
/**
|
|
4030
4067
|
*
|
|
@@ -4032,8 +4069,8 @@ export const PaymentsApiFactory = function (configuration?: Configuration, baseP
|
|
|
4032
4069
|
* @param {*} [options] Override http request option.
|
|
4033
4070
|
* @throws {RequiredError}
|
|
4034
4071
|
*/
|
|
4035
|
-
|
|
4036
|
-
return localVarFp.
|
|
4072
|
+
webhookV1PaymentsWebhookPost(options?: RawAxiosRequestConfig): AxiosPromise<any> {
|
|
4073
|
+
return localVarFp.webhookV1PaymentsWebhookPost(options).then((request) => request(axios, basePath));
|
|
4037
4074
|
},
|
|
4038
4075
|
};
|
|
4039
4076
|
};
|
|
@@ -4048,15 +4085,16 @@ export class PaymentsApi extends BaseAPI {
|
|
|
4048
4085
|
/**
|
|
4049
4086
|
*
|
|
4050
4087
|
* @summary Get Checkout Session
|
|
4051
|
-
* @param {string} userId
|
|
4052
4088
|
* @param {string} companyId
|
|
4053
4089
|
* @param {string} productId
|
|
4090
|
+
* @param {string} [authorization]
|
|
4091
|
+
* @param {string} [sessionId]
|
|
4054
4092
|
* @param {*} [options] Override http request option.
|
|
4055
4093
|
* @throws {RequiredError}
|
|
4056
4094
|
* @memberof PaymentsApi
|
|
4057
4095
|
*/
|
|
4058
|
-
public
|
|
4059
|
-
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));
|
|
4060
4098
|
}
|
|
4061
4099
|
|
|
4062
4100
|
/**
|
|
@@ -4068,8 +4106,8 @@ export class PaymentsApi extends BaseAPI {
|
|
|
4068
4106
|
* @throws {RequiredError}
|
|
4069
4107
|
* @memberof PaymentsApi
|
|
4070
4108
|
*/
|
|
4071
|
-
public
|
|
4072
|
-
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));
|
|
4073
4111
|
}
|
|
4074
4112
|
|
|
4075
4113
|
/**
|
|
@@ -4079,8 +4117,8 @@ export class PaymentsApi extends BaseAPI {
|
|
|
4079
4117
|
* @throws {RequiredError}
|
|
4080
4118
|
* @memberof PaymentsApi
|
|
4081
4119
|
*/
|
|
4082
|
-
public
|
|
4083
|
-
return PaymentsApiFp(this.configuration).
|
|
4120
|
+
public webhookV1PaymentsWebhookPost(options?: RawAxiosRequestConfig) {
|
|
4121
|
+
return PaymentsApiFp(this.configuration).webhookV1PaymentsWebhookPost(options).then((request) => request(this.axios, this.basePath));
|
|
4084
4122
|
}
|
|
4085
4123
|
}
|
|
4086
4124
|
|
|
@@ -4176,14 +4214,14 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
4176
4214
|
*
|
|
4177
4215
|
* @summary Get Company Policies
|
|
4178
4216
|
* @param {string} companyId
|
|
4179
|
-
* @param {number} [
|
|
4180
|
-
* @param {number} [
|
|
4217
|
+
* @param {number} [page]
|
|
4218
|
+
* @param {number} [elements]
|
|
4181
4219
|
* @param {string} [authorization]
|
|
4182
4220
|
* @param {string} [sessionId]
|
|
4183
4221
|
* @param {*} [options] Override http request option.
|
|
4184
4222
|
* @throws {RequiredError}
|
|
4185
4223
|
*/
|
|
4186
|
-
getCompanyPoliciesV1PoliciesCompanyCompanyIdGet: async (companyId: string,
|
|
4224
|
+
getCompanyPoliciesV1PoliciesCompanyCompanyIdGet: async (companyId: string, page?: number, elements?: number, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4187
4225
|
// verify required parameter 'companyId' is not null or undefined
|
|
4188
4226
|
assertParamExists('getCompanyPoliciesV1PoliciesCompanyCompanyIdGet', 'companyId', companyId)
|
|
4189
4227
|
const localVarPath = `/v1/policies/company/{company_id}`
|
|
@@ -4199,12 +4237,12 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
4199
4237
|
const localVarHeaderParameter = {} as any;
|
|
4200
4238
|
const localVarQueryParameter = {} as any;
|
|
4201
4239
|
|
|
4202
|
-
if (
|
|
4203
|
-
localVarQueryParameter['
|
|
4240
|
+
if (page !== undefined) {
|
|
4241
|
+
localVarQueryParameter['page'] = page;
|
|
4204
4242
|
}
|
|
4205
4243
|
|
|
4206
|
-
if (
|
|
4207
|
-
localVarQueryParameter['
|
|
4244
|
+
if (elements !== undefined) {
|
|
4245
|
+
localVarQueryParameter['elements'] = elements;
|
|
4208
4246
|
}
|
|
4209
4247
|
|
|
4210
4248
|
|
|
@@ -4344,15 +4382,15 @@ export const PoliciesApiFp = function(configuration?: Configuration) {
|
|
|
4344
4382
|
*
|
|
4345
4383
|
* @summary Get Company Policies
|
|
4346
4384
|
* @param {string} companyId
|
|
4347
|
-
* @param {number} [
|
|
4348
|
-
* @param {number} [
|
|
4385
|
+
* @param {number} [page]
|
|
4386
|
+
* @param {number} [elements]
|
|
4349
4387
|
* @param {string} [authorization]
|
|
4350
4388
|
* @param {string} [sessionId]
|
|
4351
4389
|
* @param {*} [options] Override http request option.
|
|
4352
4390
|
* @throws {RequiredError}
|
|
4353
4391
|
*/
|
|
4354
|
-
async getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId: string,
|
|
4355
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId,
|
|
4392
|
+
async getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId: string, page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PolicyRead>>> {
|
|
4393
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId, page, elements, authorization, sessionId, options);
|
|
4356
4394
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4357
4395
|
const localVarOperationServerBasePath = operationServerMap['PoliciesApi.getCompanyPoliciesV1PoliciesCompanyCompanyIdGet']?.[localVarOperationServerIndex]?.url;
|
|
4358
4396
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -4424,15 +4462,15 @@ export const PoliciesApiFactory = function (configuration?: Configuration, baseP
|
|
|
4424
4462
|
*
|
|
4425
4463
|
* @summary Get Company Policies
|
|
4426
4464
|
* @param {string} companyId
|
|
4427
|
-
* @param {number} [
|
|
4428
|
-
* @param {number} [
|
|
4465
|
+
* @param {number} [page]
|
|
4466
|
+
* @param {number} [elements]
|
|
4429
4467
|
* @param {string} [authorization]
|
|
4430
4468
|
* @param {string} [sessionId]
|
|
4431
4469
|
* @param {*} [options] Override http request option.
|
|
4432
4470
|
* @throws {RequiredError}
|
|
4433
4471
|
*/
|
|
4434
|
-
getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId: string,
|
|
4435
|
-
return localVarFp.getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId,
|
|
4472
|
+
getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId: string, page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<PolicyRead>> {
|
|
4473
|
+
return localVarFp.getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId, page, elements, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
4436
4474
|
},
|
|
4437
4475
|
/**
|
|
4438
4476
|
*
|
|
@@ -4499,16 +4537,16 @@ export class PoliciesApi extends BaseAPI {
|
|
|
4499
4537
|
*
|
|
4500
4538
|
* @summary Get Company Policies
|
|
4501
4539
|
* @param {string} companyId
|
|
4502
|
-
* @param {number} [
|
|
4503
|
-
* @param {number} [
|
|
4540
|
+
* @param {number} [page]
|
|
4541
|
+
* @param {number} [elements]
|
|
4504
4542
|
* @param {string} [authorization]
|
|
4505
4543
|
* @param {string} [sessionId]
|
|
4506
4544
|
* @param {*} [options] Override http request option.
|
|
4507
4545
|
* @throws {RequiredError}
|
|
4508
4546
|
* @memberof PoliciesApi
|
|
4509
4547
|
*/
|
|
4510
|
-
public getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId: string,
|
|
4511
|
-
return PoliciesApiFp(this.configuration).getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId,
|
|
4548
|
+
public getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId: string, page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
|
|
4549
|
+
return PoliciesApiFp(this.configuration).getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId, page, elements, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
4512
4550
|
}
|
|
4513
4551
|
|
|
4514
4552
|
/**
|