@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/dist/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Lumoar API
|
|
5
5
|
* Compliance as a service
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document:
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -865,13 +865,13 @@ export const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
865
865
|
*
|
|
866
866
|
* @summary Get Companies
|
|
867
867
|
* @param {number} [page]
|
|
868
|
-
* @param {number} [
|
|
868
|
+
* @param {number} [elements]
|
|
869
869
|
* @param {string} [authorization]
|
|
870
870
|
* @param {string} [sessionId]
|
|
871
871
|
* @param {*} [options] Override http request option.
|
|
872
872
|
* @throws {RequiredError}
|
|
873
873
|
*/
|
|
874
|
-
getCompaniesV1CompanyListGet: (page_1,
|
|
874
|
+
getCompaniesV1CompanyListGet: (page_1, elements_1, authorization_1, sessionId_1, ...args_1) => __awaiter(this, [page_1, elements_1, authorization_1, sessionId_1, ...args_1], void 0, function* (page, elements, authorization, sessionId, options = {}) {
|
|
875
875
|
const localVarPath = `/v1/company/list`;
|
|
876
876
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
877
877
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -885,8 +885,8 @@ export const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
885
885
|
if (page !== undefined) {
|
|
886
886
|
localVarQueryParameter['page'] = page;
|
|
887
887
|
}
|
|
888
|
-
if (
|
|
889
|
-
localVarQueryParameter['
|
|
888
|
+
if (elements !== undefined) {
|
|
889
|
+
localVarQueryParameter['elements'] = elements;
|
|
890
890
|
}
|
|
891
891
|
if (authorization != null) {
|
|
892
892
|
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
@@ -971,13 +971,13 @@ export const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
971
971
|
*
|
|
972
972
|
* @summary Get Policies
|
|
973
973
|
* @param {number} [page]
|
|
974
|
-
* @param {number} [
|
|
974
|
+
* @param {number} [elements]
|
|
975
975
|
* @param {string} [authorization]
|
|
976
976
|
* @param {string} [sessionId]
|
|
977
977
|
* @param {*} [options] Override http request option.
|
|
978
978
|
* @throws {RequiredError}
|
|
979
979
|
*/
|
|
980
|
-
getPoliciesV1CompanyPoliciesGet: (page_1,
|
|
980
|
+
getPoliciesV1CompanyPoliciesGet: (page_1, elements_1, authorization_1, sessionId_1, ...args_1) => __awaiter(this, [page_1, elements_1, authorization_1, sessionId_1, ...args_1], void 0, function* (page, elements, authorization, sessionId, options = {}) {
|
|
981
981
|
const localVarPath = `/v1/company/policies`;
|
|
982
982
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
983
983
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -991,8 +991,8 @@ export const CompanyApiAxiosParamCreator = function (configuration) {
|
|
|
991
991
|
if (page !== undefined) {
|
|
992
992
|
localVarQueryParameter['page'] = page;
|
|
993
993
|
}
|
|
994
|
-
if (
|
|
995
|
-
localVarQueryParameter['
|
|
994
|
+
if (elements !== undefined) {
|
|
995
|
+
localVarQueryParameter['elements'] = elements;
|
|
996
996
|
}
|
|
997
997
|
if (authorization != null) {
|
|
998
998
|
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
@@ -1071,16 +1071,16 @@ export const CompanyApiFp = function (configuration) {
|
|
|
1071
1071
|
*
|
|
1072
1072
|
* @summary Get Companies
|
|
1073
1073
|
* @param {number} [page]
|
|
1074
|
-
* @param {number} [
|
|
1074
|
+
* @param {number} [elements]
|
|
1075
1075
|
* @param {string} [authorization]
|
|
1076
1076
|
* @param {string} [sessionId]
|
|
1077
1077
|
* @param {*} [options] Override http request option.
|
|
1078
1078
|
* @throws {RequiredError}
|
|
1079
1079
|
*/
|
|
1080
|
-
getCompaniesV1CompanyListGet(page,
|
|
1080
|
+
getCompaniesV1CompanyListGet(page, elements, authorization, sessionId, options) {
|
|
1081
1081
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1082
1082
|
var _a, _b, _c;
|
|
1083
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCompaniesV1CompanyListGet(page,
|
|
1083
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCompaniesV1CompanyListGet(page, elements, authorization, sessionId, options);
|
|
1084
1084
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1085
1085
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CompanyApi.getCompaniesV1CompanyListGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1086
1086
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1126,16 +1126,16 @@ export const CompanyApiFp = function (configuration) {
|
|
|
1126
1126
|
*
|
|
1127
1127
|
* @summary Get Policies
|
|
1128
1128
|
* @param {number} [page]
|
|
1129
|
-
* @param {number} [
|
|
1129
|
+
* @param {number} [elements]
|
|
1130
1130
|
* @param {string} [authorization]
|
|
1131
1131
|
* @param {string} [sessionId]
|
|
1132
1132
|
* @param {*} [options] Override http request option.
|
|
1133
1133
|
* @throws {RequiredError}
|
|
1134
1134
|
*/
|
|
1135
|
-
getPoliciesV1CompanyPoliciesGet(page,
|
|
1135
|
+
getPoliciesV1CompanyPoliciesGet(page, elements, authorization, sessionId, options) {
|
|
1136
1136
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1137
1137
|
var _a, _b, _c;
|
|
1138
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPoliciesV1CompanyPoliciesGet(page,
|
|
1138
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPoliciesV1CompanyPoliciesGet(page, elements, authorization, sessionId, options);
|
|
1139
1139
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1140
1140
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CompanyApi.getPoliciesV1CompanyPoliciesGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1141
1141
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1184,14 +1184,14 @@ export const CompanyApiFactory = function (configuration, basePath, axios) {
|
|
|
1184
1184
|
*
|
|
1185
1185
|
* @summary Get Companies
|
|
1186
1186
|
* @param {number} [page]
|
|
1187
|
-
* @param {number} [
|
|
1187
|
+
* @param {number} [elements]
|
|
1188
1188
|
* @param {string} [authorization]
|
|
1189
1189
|
* @param {string} [sessionId]
|
|
1190
1190
|
* @param {*} [options] Override http request option.
|
|
1191
1191
|
* @throws {RequiredError}
|
|
1192
1192
|
*/
|
|
1193
|
-
getCompaniesV1CompanyListGet(page,
|
|
1194
|
-
return localVarFp.getCompaniesV1CompanyListGet(page,
|
|
1193
|
+
getCompaniesV1CompanyListGet(page, elements, authorization, sessionId, options) {
|
|
1194
|
+
return localVarFp.getCompaniesV1CompanyListGet(page, elements, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
1195
1195
|
},
|
|
1196
1196
|
/**
|
|
1197
1197
|
*
|
|
@@ -1221,14 +1221,14 @@ export const CompanyApiFactory = function (configuration, basePath, axios) {
|
|
|
1221
1221
|
*
|
|
1222
1222
|
* @summary Get Policies
|
|
1223
1223
|
* @param {number} [page]
|
|
1224
|
-
* @param {number} [
|
|
1224
|
+
* @param {number} [elements]
|
|
1225
1225
|
* @param {string} [authorization]
|
|
1226
1226
|
* @param {string} [sessionId]
|
|
1227
1227
|
* @param {*} [options] Override http request option.
|
|
1228
1228
|
* @throws {RequiredError}
|
|
1229
1229
|
*/
|
|
1230
|
-
getPoliciesV1CompanyPoliciesGet(page,
|
|
1231
|
-
return localVarFp.getPoliciesV1CompanyPoliciesGet(page,
|
|
1230
|
+
getPoliciesV1CompanyPoliciesGet(page, elements, authorization, sessionId, options) {
|
|
1231
|
+
return localVarFp.getPoliciesV1CompanyPoliciesGet(page, elements, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
1232
1232
|
},
|
|
1233
1233
|
/**
|
|
1234
1234
|
*
|
|
@@ -1268,15 +1268,15 @@ export class CompanyApi extends BaseAPI {
|
|
|
1268
1268
|
*
|
|
1269
1269
|
* @summary Get Companies
|
|
1270
1270
|
* @param {number} [page]
|
|
1271
|
-
* @param {number} [
|
|
1271
|
+
* @param {number} [elements]
|
|
1272
1272
|
* @param {string} [authorization]
|
|
1273
1273
|
* @param {string} [sessionId]
|
|
1274
1274
|
* @param {*} [options] Override http request option.
|
|
1275
1275
|
* @throws {RequiredError}
|
|
1276
1276
|
* @memberof CompanyApi
|
|
1277
1277
|
*/
|
|
1278
|
-
getCompaniesV1CompanyListGet(page,
|
|
1279
|
-
return CompanyApiFp(this.configuration).getCompaniesV1CompanyListGet(page,
|
|
1278
|
+
getCompaniesV1CompanyListGet(page, elements, authorization, sessionId, options) {
|
|
1279
|
+
return CompanyApiFp(this.configuration).getCompaniesV1CompanyListGet(page, elements, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
1280
1280
|
}
|
|
1281
1281
|
/**
|
|
1282
1282
|
*
|
|
@@ -1308,15 +1308,15 @@ export class CompanyApi extends BaseAPI {
|
|
|
1308
1308
|
*
|
|
1309
1309
|
* @summary Get Policies
|
|
1310
1310
|
* @param {number} [page]
|
|
1311
|
-
* @param {number} [
|
|
1311
|
+
* @param {number} [elements]
|
|
1312
1312
|
* @param {string} [authorization]
|
|
1313
1313
|
* @param {string} [sessionId]
|
|
1314
1314
|
* @param {*} [options] Override http request option.
|
|
1315
1315
|
* @throws {RequiredError}
|
|
1316
1316
|
* @memberof CompanyApi
|
|
1317
1317
|
*/
|
|
1318
|
-
getPoliciesV1CompanyPoliciesGet(page,
|
|
1319
|
-
return CompanyApiFp(this.configuration).getPoliciesV1CompanyPoliciesGet(page,
|
|
1318
|
+
getPoliciesV1CompanyPoliciesGet(page, elements, authorization, sessionId, options) {
|
|
1319
|
+
return CompanyApiFp(this.configuration).getPoliciesV1CompanyPoliciesGet(page, elements, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
1320
1320
|
}
|
|
1321
1321
|
/**
|
|
1322
1322
|
*
|
|
@@ -1522,31 +1522,45 @@ export class ControlsApi extends BaseAPI {
|
|
|
1522
1522
|
}
|
|
1523
1523
|
}
|
|
1524
1524
|
/**
|
|
1525
|
-
*
|
|
1525
|
+
* EvidenceApi - axios parameter creator
|
|
1526
1526
|
* @export
|
|
1527
1527
|
*/
|
|
1528
|
-
export const
|
|
1528
|
+
export const EvidenceApiAxiosParamCreator = function (configuration) {
|
|
1529
1529
|
return {
|
|
1530
1530
|
/**
|
|
1531
1531
|
*
|
|
1532
|
-
* @summary
|
|
1532
|
+
* @summary Delete Evidence
|
|
1533
|
+
* @param {string} evidenceId
|
|
1534
|
+
* @param {string} [authorization]
|
|
1535
|
+
* @param {string} [sessionId]
|
|
1533
1536
|
* @param {*} [options] Override http request option.
|
|
1534
1537
|
* @throws {RequiredError}
|
|
1535
1538
|
*/
|
|
1536
|
-
|
|
1537
|
-
|
|
1539
|
+
deleteEvidenceV1EvidenceDeleteDelete: (evidenceId_1, authorization_1, sessionId_1, ...args_1) => __awaiter(this, [evidenceId_1, authorization_1, sessionId_1, ...args_1], void 0, function* (evidenceId, authorization, sessionId, options = {}) {
|
|
1540
|
+
// verify required parameter 'evidenceId' is not null or undefined
|
|
1541
|
+
assertParamExists('deleteEvidenceV1EvidenceDeleteDelete', 'evidenceId', evidenceId);
|
|
1542
|
+
const localVarPath = `/v1/evidence/delete`;
|
|
1538
1543
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1539
1544
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1540
1545
|
let baseOptions;
|
|
1541
1546
|
if (configuration) {
|
|
1542
1547
|
baseOptions = configuration.baseOptions;
|
|
1543
1548
|
}
|
|
1544
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
1549
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
1545
1550
|
const localVarHeaderParameter = {};
|
|
1546
1551
|
const localVarQueryParameter = {};
|
|
1552
|
+
const localVarFormParams = new URLSearchParams();
|
|
1553
|
+
if (evidenceId !== undefined) {
|
|
1554
|
+
localVarFormParams.set('evidence_id', evidenceId);
|
|
1555
|
+
}
|
|
1556
|
+
localVarHeaderParameter['Content-Type'] = 'application/x-www-form-urlencoded';
|
|
1557
|
+
if (authorization != null) {
|
|
1558
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
1559
|
+
}
|
|
1547
1560
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1548
1561
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1549
1562
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1563
|
+
localVarRequestOptions.data = localVarFormParams.toString();
|
|
1550
1564
|
return {
|
|
1551
1565
|
url: toPathString(localVarUrlObj),
|
|
1552
1566
|
options: localVarRequestOptions,
|
|
@@ -1554,12 +1568,18 @@ export const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1554
1568
|
}),
|
|
1555
1569
|
/**
|
|
1556
1570
|
*
|
|
1557
|
-
* @summary Get
|
|
1571
|
+
* @summary Get Evidence Files
|
|
1572
|
+
* @param {string} evidenceId
|
|
1573
|
+
* @param {string} [authorization]
|
|
1574
|
+
* @param {string} [sessionId]
|
|
1558
1575
|
* @param {*} [options] Override http request option.
|
|
1559
1576
|
* @throws {RequiredError}
|
|
1560
1577
|
*/
|
|
1561
|
-
|
|
1562
|
-
|
|
1578
|
+
getEvidenceFilesV1EvidenceFileEvidenceIdGet: (evidenceId_1, authorization_1, sessionId_1, ...args_1) => __awaiter(this, [evidenceId_1, authorization_1, sessionId_1, ...args_1], void 0, function* (evidenceId, authorization, sessionId, options = {}) {
|
|
1579
|
+
// verify required parameter 'evidenceId' is not null or undefined
|
|
1580
|
+
assertParamExists('getEvidenceFilesV1EvidenceFileEvidenceIdGet', 'evidenceId', evidenceId);
|
|
1581
|
+
const localVarPath = `/v1/evidence/file/{evidence_id}`
|
|
1582
|
+
.replace(`{${"evidence_id"}}`, encodeURIComponent(String(evidenceId)));
|
|
1563
1583
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1564
1584
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1565
1585
|
let baseOptions;
|
|
@@ -1569,6 +1589,9 @@ export const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1569
1589
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1570
1590
|
const localVarHeaderParameter = {};
|
|
1571
1591
|
const localVarQueryParameter = {};
|
|
1592
|
+
if (authorization != null) {
|
|
1593
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
1594
|
+
}
|
|
1572
1595
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1573
1596
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1574
1597
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1579,12 +1602,18 @@ export const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1579
1602
|
}),
|
|
1580
1603
|
/**
|
|
1581
1604
|
*
|
|
1582
|
-
* @summary
|
|
1605
|
+
* @summary List Company Evidence
|
|
1606
|
+
* @param {string} companyId
|
|
1607
|
+
* @param {string} [authorization]
|
|
1608
|
+
* @param {string} [sessionId]
|
|
1583
1609
|
* @param {*} [options] Override http request option.
|
|
1584
1610
|
* @throws {RequiredError}
|
|
1585
1611
|
*/
|
|
1586
|
-
|
|
1587
|
-
|
|
1612
|
+
listCompanyEvidenceV1EvidenceCompanyCompanyIdGet: (companyId_1, authorization_1, sessionId_1, ...args_1) => __awaiter(this, [companyId_1, authorization_1, sessionId_1, ...args_1], void 0, function* (companyId, authorization, sessionId, options = {}) {
|
|
1613
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
1614
|
+
assertParamExists('listCompanyEvidenceV1EvidenceCompanyCompanyIdGet', 'companyId', companyId);
|
|
1615
|
+
const localVarPath = `/v1/evidence/company/{company_id}`
|
|
1616
|
+
.replace(`{${"company_id"}}`, encodeURIComponent(String(companyId)));
|
|
1588
1617
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1589
1618
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1590
1619
|
let baseOptions;
|
|
@@ -1594,6 +1623,9 @@ export const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1594
1623
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1595
1624
|
const localVarHeaderParameter = {};
|
|
1596
1625
|
const localVarQueryParameter = {};
|
|
1626
|
+
if (authorization != null) {
|
|
1627
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
1628
|
+
}
|
|
1597
1629
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1598
1630
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1599
1631
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1604,24 +1636,101 @@ export const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1604
1636
|
}),
|
|
1605
1637
|
/**
|
|
1606
1638
|
*
|
|
1607
|
-
* @summary
|
|
1639
|
+
* @summary Update Evidence
|
|
1640
|
+
* @param {string} evidenceId
|
|
1641
|
+
* @param {string} text
|
|
1642
|
+
* @param {string} [authorization]
|
|
1643
|
+
* @param {string} [sessionId]
|
|
1608
1644
|
* @param {*} [options] Override http request option.
|
|
1609
1645
|
* @throws {RequiredError}
|
|
1610
1646
|
*/
|
|
1611
|
-
|
|
1612
|
-
|
|
1647
|
+
updateEvidenceV1EvidenceUpdatePut: (evidenceId_1, text_1, authorization_1, sessionId_1, ...args_1) => __awaiter(this, [evidenceId_1, text_1, authorization_1, sessionId_1, ...args_1], void 0, function* (evidenceId, text, authorization, sessionId, options = {}) {
|
|
1648
|
+
// verify required parameter 'evidenceId' is not null or undefined
|
|
1649
|
+
assertParamExists('updateEvidenceV1EvidenceUpdatePut', 'evidenceId', evidenceId);
|
|
1650
|
+
// verify required parameter 'text' is not null or undefined
|
|
1651
|
+
assertParamExists('updateEvidenceV1EvidenceUpdatePut', 'text', text);
|
|
1652
|
+
const localVarPath = `/v1/evidence/update`;
|
|
1613
1653
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1614
1654
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1615
1655
|
let baseOptions;
|
|
1616
1656
|
if (configuration) {
|
|
1617
1657
|
baseOptions = configuration.baseOptions;
|
|
1618
1658
|
}
|
|
1619
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
1659
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
1620
1660
|
const localVarHeaderParameter = {};
|
|
1621
1661
|
const localVarQueryParameter = {};
|
|
1662
|
+
const localVarFormParams = new URLSearchParams();
|
|
1663
|
+
if (evidenceId !== undefined) {
|
|
1664
|
+
localVarFormParams.set('evidence_id', evidenceId);
|
|
1665
|
+
}
|
|
1666
|
+
if (text !== undefined) {
|
|
1667
|
+
localVarFormParams.set('text', text);
|
|
1668
|
+
}
|
|
1669
|
+
localVarHeaderParameter['Content-Type'] = 'application/x-www-form-urlencoded';
|
|
1670
|
+
if (authorization != null) {
|
|
1671
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
1672
|
+
}
|
|
1622
1673
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1623
1674
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1624
1675
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1676
|
+
localVarRequestOptions.data = localVarFormParams.toString();
|
|
1677
|
+
return {
|
|
1678
|
+
url: toPathString(localVarUrlObj),
|
|
1679
|
+
options: localVarRequestOptions,
|
|
1680
|
+
};
|
|
1681
|
+
}),
|
|
1682
|
+
/**
|
|
1683
|
+
*
|
|
1684
|
+
* @summary Upload Evidence
|
|
1685
|
+
* @param {string} companyId
|
|
1686
|
+
* @param {string} controlId
|
|
1687
|
+
* @param {File | null} file
|
|
1688
|
+
* @param {string | null} text
|
|
1689
|
+
* @param {string} [authorization]
|
|
1690
|
+
* @param {string} [sessionId]
|
|
1691
|
+
* @param {*} [options] Override http request option.
|
|
1692
|
+
* @throws {RequiredError}
|
|
1693
|
+
*/
|
|
1694
|
+
uploadEvidenceV1EvidenceUploadPost: (companyId_1, controlId_1, file_1, text_1, authorization_1, sessionId_1, ...args_1) => __awaiter(this, [companyId_1, controlId_1, file_1, text_1, authorization_1, sessionId_1, ...args_1], void 0, function* (companyId, controlId, file, text, authorization, sessionId, options = {}) {
|
|
1695
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
1696
|
+
assertParamExists('uploadEvidenceV1EvidenceUploadPost', 'companyId', companyId);
|
|
1697
|
+
// verify required parameter 'controlId' is not null or undefined
|
|
1698
|
+
assertParamExists('uploadEvidenceV1EvidenceUploadPost', 'controlId', controlId);
|
|
1699
|
+
// verify required parameter 'file' is not null or undefined
|
|
1700
|
+
assertParamExists('uploadEvidenceV1EvidenceUploadPost', 'file', file);
|
|
1701
|
+
// verify required parameter 'text' is not null or undefined
|
|
1702
|
+
assertParamExists('uploadEvidenceV1EvidenceUploadPost', 'text', text);
|
|
1703
|
+
const localVarPath = `/v1/evidence/upload`;
|
|
1704
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1705
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1706
|
+
let baseOptions;
|
|
1707
|
+
if (configuration) {
|
|
1708
|
+
baseOptions = configuration.baseOptions;
|
|
1709
|
+
}
|
|
1710
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1711
|
+
const localVarHeaderParameter = {};
|
|
1712
|
+
const localVarQueryParameter = {};
|
|
1713
|
+
const localVarFormParams = new URLSearchParams();
|
|
1714
|
+
if (companyId !== undefined) {
|
|
1715
|
+
localVarFormParams.set('company_id', companyId);
|
|
1716
|
+
}
|
|
1717
|
+
if (controlId !== undefined) {
|
|
1718
|
+
localVarFormParams.set('control_id', controlId);
|
|
1719
|
+
}
|
|
1720
|
+
if (file !== undefined) {
|
|
1721
|
+
localVarFormParams.set('file', file);
|
|
1722
|
+
}
|
|
1723
|
+
if (text !== undefined) {
|
|
1724
|
+
localVarFormParams.set('text', text);
|
|
1725
|
+
}
|
|
1726
|
+
localVarHeaderParameter['Content-Type'] = 'application/x-www-form-urlencoded';
|
|
1727
|
+
if (authorization != null) {
|
|
1728
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
1729
|
+
}
|
|
1730
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1731
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1732
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1733
|
+
localVarRequestOptions.data = localVarFormParams.toString();
|
|
1625
1734
|
return {
|
|
1626
1735
|
url: toPathString(localVarUrlObj),
|
|
1627
1736
|
options: localVarRequestOptions,
|
|
@@ -1630,207 +1739,284 @@ export const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1630
1739
|
};
|
|
1631
1740
|
};
|
|
1632
1741
|
/**
|
|
1633
|
-
*
|
|
1742
|
+
* EvidenceApi - functional programming interface
|
|
1634
1743
|
* @export
|
|
1635
1744
|
*/
|
|
1636
|
-
export const
|
|
1637
|
-
const localVarAxiosParamCreator =
|
|
1745
|
+
export const EvidenceApiFp = function (configuration) {
|
|
1746
|
+
const localVarAxiosParamCreator = EvidenceApiAxiosParamCreator(configuration);
|
|
1638
1747
|
return {
|
|
1639
1748
|
/**
|
|
1640
1749
|
*
|
|
1641
|
-
* @summary
|
|
1750
|
+
* @summary Delete Evidence
|
|
1751
|
+
* @param {string} evidenceId
|
|
1752
|
+
* @param {string} [authorization]
|
|
1753
|
+
* @param {string} [sessionId]
|
|
1642
1754
|
* @param {*} [options] Override http request option.
|
|
1643
1755
|
* @throws {RequiredError}
|
|
1644
1756
|
*/
|
|
1645
|
-
|
|
1757
|
+
deleteEvidenceV1EvidenceDeleteDelete(evidenceId, authorization, sessionId, options) {
|
|
1646
1758
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1647
1759
|
var _a, _b, _c;
|
|
1648
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1760
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteEvidenceV1EvidenceDeleteDelete(evidenceId, authorization, sessionId, options);
|
|
1649
1761
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1650
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
1762
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EvidenceApi.deleteEvidenceV1EvidenceDeleteDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1651
1763
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1652
1764
|
});
|
|
1653
1765
|
},
|
|
1654
1766
|
/**
|
|
1655
1767
|
*
|
|
1656
|
-
* @summary Get
|
|
1768
|
+
* @summary Get Evidence Files
|
|
1769
|
+
* @param {string} evidenceId
|
|
1770
|
+
* @param {string} [authorization]
|
|
1771
|
+
* @param {string} [sessionId]
|
|
1657
1772
|
* @param {*} [options] Override http request option.
|
|
1658
1773
|
* @throws {RequiredError}
|
|
1659
1774
|
*/
|
|
1660
|
-
|
|
1775
|
+
getEvidenceFilesV1EvidenceFileEvidenceIdGet(evidenceId, authorization, sessionId, options) {
|
|
1661
1776
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1662
1777
|
var _a, _b, _c;
|
|
1663
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1778
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getEvidenceFilesV1EvidenceFileEvidenceIdGet(evidenceId, authorization, sessionId, options);
|
|
1664
1779
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1665
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
1780
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EvidenceApi.getEvidenceFilesV1EvidenceFileEvidenceIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1666
1781
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1667
1782
|
});
|
|
1668
1783
|
},
|
|
1669
1784
|
/**
|
|
1670
1785
|
*
|
|
1671
|
-
* @summary
|
|
1786
|
+
* @summary List Company Evidence
|
|
1787
|
+
* @param {string} companyId
|
|
1788
|
+
* @param {string} [authorization]
|
|
1789
|
+
* @param {string} [sessionId]
|
|
1672
1790
|
* @param {*} [options] Override http request option.
|
|
1673
1791
|
* @throws {RequiredError}
|
|
1674
1792
|
*/
|
|
1675
|
-
|
|
1793
|
+
listCompanyEvidenceV1EvidenceCompanyCompanyIdGet(companyId, authorization, sessionId, options) {
|
|
1676
1794
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1677
1795
|
var _a, _b, _c;
|
|
1678
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1796
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listCompanyEvidenceV1EvidenceCompanyCompanyIdGet(companyId, authorization, sessionId, options);
|
|
1679
1797
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1680
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
1798
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EvidenceApi.listCompanyEvidenceV1EvidenceCompanyCompanyIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1681
1799
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1682
1800
|
});
|
|
1683
1801
|
},
|
|
1684
1802
|
/**
|
|
1685
1803
|
*
|
|
1686
|
-
* @summary
|
|
1804
|
+
* @summary Update Evidence
|
|
1805
|
+
* @param {string} evidenceId
|
|
1806
|
+
* @param {string} text
|
|
1807
|
+
* @param {string} [authorization]
|
|
1808
|
+
* @param {string} [sessionId]
|
|
1687
1809
|
* @param {*} [options] Override http request option.
|
|
1688
1810
|
* @throws {RequiredError}
|
|
1689
1811
|
*/
|
|
1690
|
-
|
|
1812
|
+
updateEvidenceV1EvidenceUpdatePut(evidenceId, text, authorization, sessionId, options) {
|
|
1691
1813
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1692
1814
|
var _a, _b, _c;
|
|
1693
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1815
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateEvidenceV1EvidenceUpdatePut(evidenceId, text, authorization, sessionId, options);
|
|
1816
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1817
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EvidenceApi.updateEvidenceV1EvidenceUpdatePut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1818
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1819
|
+
});
|
|
1820
|
+
},
|
|
1821
|
+
/**
|
|
1822
|
+
*
|
|
1823
|
+
* @summary Upload Evidence
|
|
1824
|
+
* @param {string} companyId
|
|
1825
|
+
* @param {string} controlId
|
|
1826
|
+
* @param {File | null} file
|
|
1827
|
+
* @param {string | null} text
|
|
1828
|
+
* @param {string} [authorization]
|
|
1829
|
+
* @param {string} [sessionId]
|
|
1830
|
+
* @param {*} [options] Override http request option.
|
|
1831
|
+
* @throws {RequiredError}
|
|
1832
|
+
*/
|
|
1833
|
+
uploadEvidenceV1EvidenceUploadPost(companyId, controlId, file, text, authorization, sessionId, options) {
|
|
1834
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1835
|
+
var _a, _b, _c;
|
|
1836
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.uploadEvidenceV1EvidenceUploadPost(companyId, controlId, file, text, authorization, sessionId, options);
|
|
1694
1837
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1695
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
1838
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EvidenceApi.uploadEvidenceV1EvidenceUploadPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1696
1839
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1697
1840
|
});
|
|
1698
1841
|
},
|
|
1699
1842
|
};
|
|
1700
1843
|
};
|
|
1701
1844
|
/**
|
|
1702
|
-
*
|
|
1845
|
+
* EvidenceApi - factory interface
|
|
1703
1846
|
* @export
|
|
1704
1847
|
*/
|
|
1705
|
-
export const
|
|
1706
|
-
const localVarFp =
|
|
1848
|
+
export const EvidenceApiFactory = function (configuration, basePath, axios) {
|
|
1849
|
+
const localVarFp = EvidenceApiFp(configuration);
|
|
1707
1850
|
return {
|
|
1708
1851
|
/**
|
|
1709
1852
|
*
|
|
1710
|
-
* @summary
|
|
1853
|
+
* @summary Delete Evidence
|
|
1854
|
+
* @param {string} evidenceId
|
|
1855
|
+
* @param {string} [authorization]
|
|
1856
|
+
* @param {string} [sessionId]
|
|
1711
1857
|
* @param {*} [options] Override http request option.
|
|
1712
1858
|
* @throws {RequiredError}
|
|
1713
1859
|
*/
|
|
1714
|
-
|
|
1715
|
-
return localVarFp.
|
|
1860
|
+
deleteEvidenceV1EvidenceDeleteDelete(evidenceId, authorization, sessionId, options) {
|
|
1861
|
+
return localVarFp.deleteEvidenceV1EvidenceDeleteDelete(evidenceId, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
1716
1862
|
},
|
|
1717
1863
|
/**
|
|
1718
1864
|
*
|
|
1719
|
-
* @summary Get
|
|
1865
|
+
* @summary Get Evidence Files
|
|
1866
|
+
* @param {string} evidenceId
|
|
1867
|
+
* @param {string} [authorization]
|
|
1868
|
+
* @param {string} [sessionId]
|
|
1720
1869
|
* @param {*} [options] Override http request option.
|
|
1721
1870
|
* @throws {RequiredError}
|
|
1722
1871
|
*/
|
|
1723
|
-
|
|
1724
|
-
return localVarFp.
|
|
1872
|
+
getEvidenceFilesV1EvidenceFileEvidenceIdGet(evidenceId, authorization, sessionId, options) {
|
|
1873
|
+
return localVarFp.getEvidenceFilesV1EvidenceFileEvidenceIdGet(evidenceId, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
1725
1874
|
},
|
|
1726
1875
|
/**
|
|
1727
1876
|
*
|
|
1728
|
-
* @summary
|
|
1877
|
+
* @summary List Company Evidence
|
|
1878
|
+
* @param {string} companyId
|
|
1879
|
+
* @param {string} [authorization]
|
|
1880
|
+
* @param {string} [sessionId]
|
|
1729
1881
|
* @param {*} [options] Override http request option.
|
|
1730
1882
|
* @throws {RequiredError}
|
|
1731
1883
|
*/
|
|
1732
|
-
|
|
1733
|
-
return localVarFp.
|
|
1884
|
+
listCompanyEvidenceV1EvidenceCompanyCompanyIdGet(companyId, authorization, sessionId, options) {
|
|
1885
|
+
return localVarFp.listCompanyEvidenceV1EvidenceCompanyCompanyIdGet(companyId, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
1734
1886
|
},
|
|
1735
1887
|
/**
|
|
1736
1888
|
*
|
|
1737
|
-
* @summary
|
|
1889
|
+
* @summary Update Evidence
|
|
1890
|
+
* @param {string} evidenceId
|
|
1891
|
+
* @param {string} text
|
|
1892
|
+
* @param {string} [authorization]
|
|
1893
|
+
* @param {string} [sessionId]
|
|
1738
1894
|
* @param {*} [options] Override http request option.
|
|
1739
1895
|
* @throws {RequiredError}
|
|
1740
1896
|
*/
|
|
1741
|
-
|
|
1742
|
-
return localVarFp.
|
|
1897
|
+
updateEvidenceV1EvidenceUpdatePut(evidenceId, text, authorization, sessionId, options) {
|
|
1898
|
+
return localVarFp.updateEvidenceV1EvidenceUpdatePut(evidenceId, text, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
1899
|
+
},
|
|
1900
|
+
/**
|
|
1901
|
+
*
|
|
1902
|
+
* @summary Upload Evidence
|
|
1903
|
+
* @param {string} companyId
|
|
1904
|
+
* @param {string} controlId
|
|
1905
|
+
* @param {File | null} file
|
|
1906
|
+
* @param {string | null} text
|
|
1907
|
+
* @param {string} [authorization]
|
|
1908
|
+
* @param {string} [sessionId]
|
|
1909
|
+
* @param {*} [options] Override http request option.
|
|
1910
|
+
* @throws {RequiredError}
|
|
1911
|
+
*/
|
|
1912
|
+
uploadEvidenceV1EvidenceUploadPost(companyId, controlId, file, text, authorization, sessionId, options) {
|
|
1913
|
+
return localVarFp.uploadEvidenceV1EvidenceUploadPost(companyId, controlId, file, text, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
1743
1914
|
},
|
|
1744
1915
|
};
|
|
1745
1916
|
};
|
|
1746
1917
|
/**
|
|
1747
|
-
*
|
|
1918
|
+
* EvidenceApi - object-oriented interface
|
|
1748
1919
|
* @export
|
|
1749
|
-
* @class
|
|
1920
|
+
* @class EvidenceApi
|
|
1750
1921
|
* @extends {BaseAPI}
|
|
1751
1922
|
*/
|
|
1752
|
-
export class
|
|
1923
|
+
export class EvidenceApi extends BaseAPI {
|
|
1753
1924
|
/**
|
|
1754
1925
|
*
|
|
1755
|
-
* @summary
|
|
1926
|
+
* @summary Delete Evidence
|
|
1927
|
+
* @param {string} evidenceId
|
|
1928
|
+
* @param {string} [authorization]
|
|
1929
|
+
* @param {string} [sessionId]
|
|
1756
1930
|
* @param {*} [options] Override http request option.
|
|
1757
1931
|
* @throws {RequiredError}
|
|
1758
|
-
* @memberof
|
|
1932
|
+
* @memberof EvidenceApi
|
|
1759
1933
|
*/
|
|
1760
|
-
|
|
1761
|
-
return
|
|
1934
|
+
deleteEvidenceV1EvidenceDeleteDelete(evidenceId, authorization, sessionId, options) {
|
|
1935
|
+
return EvidenceApiFp(this.configuration).deleteEvidenceV1EvidenceDeleteDelete(evidenceId, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
1762
1936
|
}
|
|
1763
1937
|
/**
|
|
1764
1938
|
*
|
|
1765
|
-
* @summary Get
|
|
1939
|
+
* @summary Get Evidence Files
|
|
1940
|
+
* @param {string} evidenceId
|
|
1941
|
+
* @param {string} [authorization]
|
|
1942
|
+
* @param {string} [sessionId]
|
|
1766
1943
|
* @param {*} [options] Override http request option.
|
|
1767
1944
|
* @throws {RequiredError}
|
|
1768
|
-
* @memberof
|
|
1945
|
+
* @memberof EvidenceApi
|
|
1769
1946
|
*/
|
|
1770
|
-
|
|
1771
|
-
return
|
|
1947
|
+
getEvidenceFilesV1EvidenceFileEvidenceIdGet(evidenceId, authorization, sessionId, options) {
|
|
1948
|
+
return EvidenceApiFp(this.configuration).getEvidenceFilesV1EvidenceFileEvidenceIdGet(evidenceId, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
1772
1949
|
}
|
|
1773
1950
|
/**
|
|
1774
1951
|
*
|
|
1775
|
-
* @summary
|
|
1952
|
+
* @summary List Company Evidence
|
|
1953
|
+
* @param {string} companyId
|
|
1954
|
+
* @param {string} [authorization]
|
|
1955
|
+
* @param {string} [sessionId]
|
|
1776
1956
|
* @param {*} [options] Override http request option.
|
|
1777
1957
|
* @throws {RequiredError}
|
|
1778
|
-
* @memberof
|
|
1958
|
+
* @memberof EvidenceApi
|
|
1779
1959
|
*/
|
|
1780
|
-
|
|
1781
|
-
return
|
|
1960
|
+
listCompanyEvidenceV1EvidenceCompanyCompanyIdGet(companyId, authorization, sessionId, options) {
|
|
1961
|
+
return EvidenceApiFp(this.configuration).listCompanyEvidenceV1EvidenceCompanyCompanyIdGet(companyId, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
1782
1962
|
}
|
|
1783
1963
|
/**
|
|
1784
1964
|
*
|
|
1785
|
-
* @summary
|
|
1965
|
+
* @summary Update Evidence
|
|
1966
|
+
* @param {string} evidenceId
|
|
1967
|
+
* @param {string} text
|
|
1968
|
+
* @param {string} [authorization]
|
|
1969
|
+
* @param {string} [sessionId]
|
|
1786
1970
|
* @param {*} [options] Override http request option.
|
|
1787
1971
|
* @throws {RequiredError}
|
|
1788
|
-
* @memberof
|
|
1972
|
+
* @memberof EvidenceApi
|
|
1789
1973
|
*/
|
|
1790
|
-
|
|
1791
|
-
return
|
|
1974
|
+
updateEvidenceV1EvidenceUpdatePut(evidenceId, text, authorization, sessionId, options) {
|
|
1975
|
+
return EvidenceApiFp(this.configuration).updateEvidenceV1EvidenceUpdatePut(evidenceId, text, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
1976
|
+
}
|
|
1977
|
+
/**
|
|
1978
|
+
*
|
|
1979
|
+
* @summary Upload Evidence
|
|
1980
|
+
* @param {string} companyId
|
|
1981
|
+
* @param {string} controlId
|
|
1982
|
+
* @param {File | null} file
|
|
1983
|
+
* @param {string | null} text
|
|
1984
|
+
* @param {string} [authorization]
|
|
1985
|
+
* @param {string} [sessionId]
|
|
1986
|
+
* @param {*} [options] Override http request option.
|
|
1987
|
+
* @throws {RequiredError}
|
|
1988
|
+
* @memberof EvidenceApi
|
|
1989
|
+
*/
|
|
1990
|
+
uploadEvidenceV1EvidenceUploadPost(companyId, controlId, file, text, authorization, sessionId, options) {
|
|
1991
|
+
return EvidenceApiFp(this.configuration).uploadEvidenceV1EvidenceUploadPost(companyId, controlId, file, text, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
1792
1992
|
}
|
|
1793
1993
|
}
|
|
1794
1994
|
/**
|
|
1795
|
-
*
|
|
1995
|
+
* HealthApi - axios parameter creator
|
|
1796
1996
|
* @export
|
|
1797
1997
|
*/
|
|
1798
|
-
export const
|
|
1998
|
+
export const HealthApiAxiosParamCreator = function (configuration) {
|
|
1799
1999
|
return {
|
|
1800
2000
|
/**
|
|
1801
2001
|
*
|
|
1802
|
-
* @summary
|
|
1803
|
-
* @param {string} evidenceId
|
|
1804
|
-
* @param {string} [authorization]
|
|
1805
|
-
* @param {string} [sessionId]
|
|
2002
|
+
* @summary Get Db Health
|
|
1806
2003
|
* @param {*} [options] Override http request option.
|
|
1807
2004
|
* @throws {RequiredError}
|
|
1808
2005
|
*/
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
assertParamExists('deleteEvidenceV1EvidenceDeleteDelete', 'evidenceId', evidenceId);
|
|
1812
|
-
const localVarPath = `/v1/evidence/delete`;
|
|
2006
|
+
getDbHealthHealthDbGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
2007
|
+
const localVarPath = `/health/db`;
|
|
1813
2008
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1814
2009
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1815
2010
|
let baseOptions;
|
|
1816
2011
|
if (configuration) {
|
|
1817
2012
|
baseOptions = configuration.baseOptions;
|
|
1818
2013
|
}
|
|
1819
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
2014
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1820
2015
|
const localVarHeaderParameter = {};
|
|
1821
2016
|
const localVarQueryParameter = {};
|
|
1822
|
-
const localVarFormParams = new URLSearchParams();
|
|
1823
|
-
if (evidenceId !== undefined) {
|
|
1824
|
-
localVarFormParams.set('evidence_id', evidenceId);
|
|
1825
|
-
}
|
|
1826
|
-
localVarHeaderParameter['Content-Type'] = 'application/x-www-form-urlencoded';
|
|
1827
|
-
if (authorization != null) {
|
|
1828
|
-
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
1829
|
-
}
|
|
1830
2017
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1831
2018
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1832
2019
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1833
|
-
localVarRequestOptions.data = localVarFormParams.toString();
|
|
1834
2020
|
return {
|
|
1835
2021
|
url: toPathString(localVarUrlObj),
|
|
1836
2022
|
options: localVarRequestOptions,
|
|
@@ -1838,18 +2024,12 @@ export const EvidenceApiAxiosParamCreator = function (configuration) {
|
|
|
1838
2024
|
}),
|
|
1839
2025
|
/**
|
|
1840
2026
|
*
|
|
1841
|
-
* @summary Get
|
|
1842
|
-
* @param {string} evidenceId
|
|
1843
|
-
* @param {string} [authorization]
|
|
1844
|
-
* @param {string} [sessionId]
|
|
2027
|
+
* @summary Get Health
|
|
1845
2028
|
* @param {*} [options] Override http request option.
|
|
1846
2029
|
* @throws {RequiredError}
|
|
1847
2030
|
*/
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
assertParamExists('getEvidenceFilesV1EvidenceFileEvidenceIdGet', 'evidenceId', evidenceId);
|
|
1851
|
-
const localVarPath = `/v1/evidence/file/{evidence_id}`
|
|
1852
|
-
.replace(`{${"evidence_id"}}`, encodeURIComponent(String(evidenceId)));
|
|
2031
|
+
getHealthHealthGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
2032
|
+
const localVarPath = `/health`;
|
|
1853
2033
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1854
2034
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1855
2035
|
let baseOptions;
|
|
@@ -1859,9 +2039,6 @@ export const EvidenceApiAxiosParamCreator = function (configuration) {
|
|
|
1859
2039
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1860
2040
|
const localVarHeaderParameter = {};
|
|
1861
2041
|
const localVarQueryParameter = {};
|
|
1862
|
-
if (authorization != null) {
|
|
1863
|
-
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
1864
|
-
}
|
|
1865
2042
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1866
2043
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1867
2044
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1872,18 +2049,12 @@ export const EvidenceApiAxiosParamCreator = function (configuration) {
|
|
|
1872
2049
|
}),
|
|
1873
2050
|
/**
|
|
1874
2051
|
*
|
|
1875
|
-
* @summary
|
|
1876
|
-
* @param {string} companyId
|
|
1877
|
-
* @param {string} [authorization]
|
|
1878
|
-
* @param {string} [sessionId]
|
|
2052
|
+
* @summary Get Listmonk Health
|
|
1879
2053
|
* @param {*} [options] Override http request option.
|
|
1880
2054
|
* @throws {RequiredError}
|
|
1881
2055
|
*/
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
assertParamExists('listCompanyEvidenceV1EvidenceCompanyCompanyIdGet', 'companyId', companyId);
|
|
1885
|
-
const localVarPath = `/v1/evidence/company/{company_id}`
|
|
1886
|
-
.replace(`{${"company_id"}}`, encodeURIComponent(String(companyId)));
|
|
2056
|
+
getListmonkHealthHealthListmonkGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
2057
|
+
const localVarPath = `/health/listmonk`;
|
|
1887
2058
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1888
2059
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1889
2060
|
let baseOptions;
|
|
@@ -1893,9 +2064,6 @@ export const EvidenceApiAxiosParamCreator = function (configuration) {
|
|
|
1893
2064
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1894
2065
|
const localVarHeaderParameter = {};
|
|
1895
2066
|
const localVarQueryParameter = {};
|
|
1896
|
-
if (authorization != null) {
|
|
1897
|
-
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
1898
|
-
}
|
|
1899
2067
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1900
2068
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1901
2069
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1906,44 +2074,24 @@ export const EvidenceApiAxiosParamCreator = function (configuration) {
|
|
|
1906
2074
|
}),
|
|
1907
2075
|
/**
|
|
1908
2076
|
*
|
|
1909
|
-
* @summary
|
|
1910
|
-
* @param {string} evidenceId
|
|
1911
|
-
* @param {string} text
|
|
1912
|
-
* @param {string} [authorization]
|
|
1913
|
-
* @param {string} [sessionId]
|
|
2077
|
+
* @summary Get Rate Limit Health
|
|
1914
2078
|
* @param {*} [options] Override http request option.
|
|
1915
2079
|
* @throws {RequiredError}
|
|
1916
2080
|
*/
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
assertParamExists('updateEvidenceV1EvidenceUpdatePut', 'evidenceId', evidenceId);
|
|
1920
|
-
// verify required parameter 'text' is not null or undefined
|
|
1921
|
-
assertParamExists('updateEvidenceV1EvidenceUpdatePut', 'text', text);
|
|
1922
|
-
const localVarPath = `/v1/evidence/update`;
|
|
2081
|
+
getRateLimitHealthHealthRateLimitGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
2082
|
+
const localVarPath = `/health/rate_limit`;
|
|
1923
2083
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1924
2084
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1925
2085
|
let baseOptions;
|
|
1926
2086
|
if (configuration) {
|
|
1927
2087
|
baseOptions = configuration.baseOptions;
|
|
1928
2088
|
}
|
|
1929
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
2089
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1930
2090
|
const localVarHeaderParameter = {};
|
|
1931
2091
|
const localVarQueryParameter = {};
|
|
1932
|
-
const localVarFormParams = new URLSearchParams();
|
|
1933
|
-
if (evidenceId !== undefined) {
|
|
1934
|
-
localVarFormParams.set('evidence_id', evidenceId);
|
|
1935
|
-
}
|
|
1936
|
-
if (text !== undefined) {
|
|
1937
|
-
localVarFormParams.set('text', text);
|
|
1938
|
-
}
|
|
1939
|
-
localVarHeaderParameter['Content-Type'] = 'application/x-www-form-urlencoded';
|
|
1940
|
-
if (authorization != null) {
|
|
1941
|
-
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
1942
|
-
}
|
|
1943
2092
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1944
2093
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1945
2094
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1946
|
-
localVarRequestOptions.data = localVarFormParams.toString();
|
|
1947
2095
|
return {
|
|
1948
2096
|
url: toPathString(localVarUrlObj),
|
|
1949
2097
|
options: localVarRequestOptions,
|
|
@@ -1951,56 +2099,24 @@ export const EvidenceApiAxiosParamCreator = function (configuration) {
|
|
|
1951
2099
|
}),
|
|
1952
2100
|
/**
|
|
1953
2101
|
*
|
|
1954
|
-
* @summary
|
|
1955
|
-
* @param {string} companyId
|
|
1956
|
-
* @param {string} controlId
|
|
1957
|
-
* @param {File | null} file
|
|
1958
|
-
* @param {string | null} text
|
|
1959
|
-
* @param {string} [authorization]
|
|
1960
|
-
* @param {string} [sessionId]
|
|
2102
|
+
* @summary Get Redis Health
|
|
1961
2103
|
* @param {*} [options] Override http request option.
|
|
1962
2104
|
* @throws {RequiredError}
|
|
1963
2105
|
*/
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
assertParamExists('uploadEvidenceV1EvidenceUploadPost', 'companyId', companyId);
|
|
1967
|
-
// verify required parameter 'controlId' is not null or undefined
|
|
1968
|
-
assertParamExists('uploadEvidenceV1EvidenceUploadPost', 'controlId', controlId);
|
|
1969
|
-
// verify required parameter 'file' is not null or undefined
|
|
1970
|
-
assertParamExists('uploadEvidenceV1EvidenceUploadPost', 'file', file);
|
|
1971
|
-
// verify required parameter 'text' is not null or undefined
|
|
1972
|
-
assertParamExists('uploadEvidenceV1EvidenceUploadPost', 'text', text);
|
|
1973
|
-
const localVarPath = `/v1/evidence/upload`;
|
|
2106
|
+
getRedisHealthHealthRedisGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
2107
|
+
const localVarPath = `/health/redis`;
|
|
1974
2108
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1975
2109
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1976
2110
|
let baseOptions;
|
|
1977
2111
|
if (configuration) {
|
|
1978
2112
|
baseOptions = configuration.baseOptions;
|
|
1979
2113
|
}
|
|
1980
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
2114
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1981
2115
|
const localVarHeaderParameter = {};
|
|
1982
2116
|
const localVarQueryParameter = {};
|
|
1983
|
-
const localVarFormParams = new URLSearchParams();
|
|
1984
|
-
if (companyId !== undefined) {
|
|
1985
|
-
localVarFormParams.set('company_id', companyId);
|
|
1986
|
-
}
|
|
1987
|
-
if (controlId !== undefined) {
|
|
1988
|
-
localVarFormParams.set('control_id', controlId);
|
|
1989
|
-
}
|
|
1990
|
-
if (file !== undefined) {
|
|
1991
|
-
localVarFormParams.set('file', file);
|
|
1992
|
-
}
|
|
1993
|
-
if (text !== undefined) {
|
|
1994
|
-
localVarFormParams.set('text', text);
|
|
1995
|
-
}
|
|
1996
|
-
localVarHeaderParameter['Content-Type'] = 'application/x-www-form-urlencoded';
|
|
1997
|
-
if (authorization != null) {
|
|
1998
|
-
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
1999
|
-
}
|
|
2000
2117
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2001
2118
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2002
2119
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2003
|
-
localVarRequestOptions.data = localVarFormParams.toString();
|
|
2004
2120
|
return {
|
|
2005
2121
|
url: toPathString(localVarUrlObj),
|
|
2006
2122
|
options: localVarRequestOptions,
|
|
@@ -2009,256 +2125,199 @@ export const EvidenceApiAxiosParamCreator = function (configuration) {
|
|
|
2009
2125
|
};
|
|
2010
2126
|
};
|
|
2011
2127
|
/**
|
|
2012
|
-
*
|
|
2128
|
+
* HealthApi - functional programming interface
|
|
2013
2129
|
* @export
|
|
2014
2130
|
*/
|
|
2015
|
-
export const
|
|
2016
|
-
const localVarAxiosParamCreator =
|
|
2131
|
+
export const HealthApiFp = function (configuration) {
|
|
2132
|
+
const localVarAxiosParamCreator = HealthApiAxiosParamCreator(configuration);
|
|
2017
2133
|
return {
|
|
2018
2134
|
/**
|
|
2019
2135
|
*
|
|
2020
|
-
* @summary
|
|
2021
|
-
* @param {string} evidenceId
|
|
2022
|
-
* @param {string} [authorization]
|
|
2023
|
-
* @param {string} [sessionId]
|
|
2136
|
+
* @summary Get Db Health
|
|
2024
2137
|
* @param {*} [options] Override http request option.
|
|
2025
2138
|
* @throws {RequiredError}
|
|
2026
2139
|
*/
|
|
2027
|
-
|
|
2140
|
+
getDbHealthHealthDbGet(options) {
|
|
2028
2141
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2029
2142
|
var _a, _b, _c;
|
|
2030
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2143
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getDbHealthHealthDbGet(options);
|
|
2031
2144
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2032
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
2145
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['HealthApi.getDbHealthHealthDbGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2033
2146
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2034
2147
|
});
|
|
2035
2148
|
},
|
|
2036
2149
|
/**
|
|
2037
2150
|
*
|
|
2038
|
-
* @summary Get
|
|
2039
|
-
* @param {string} evidenceId
|
|
2040
|
-
* @param {string} [authorization]
|
|
2041
|
-
* @param {string} [sessionId]
|
|
2151
|
+
* @summary Get Health
|
|
2042
2152
|
* @param {*} [options] Override http request option.
|
|
2043
2153
|
* @throws {RequiredError}
|
|
2044
2154
|
*/
|
|
2045
|
-
|
|
2155
|
+
getHealthHealthGet(options) {
|
|
2046
2156
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2047
2157
|
var _a, _b, _c;
|
|
2048
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2158
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getHealthHealthGet(options);
|
|
2049
2159
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2050
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
2160
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['HealthApi.getHealthHealthGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2051
2161
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2052
2162
|
});
|
|
2053
2163
|
},
|
|
2054
2164
|
/**
|
|
2055
2165
|
*
|
|
2056
|
-
* @summary
|
|
2057
|
-
* @param {string} companyId
|
|
2058
|
-
* @param {string} [authorization]
|
|
2059
|
-
* @param {string} [sessionId]
|
|
2166
|
+
* @summary Get Listmonk Health
|
|
2060
2167
|
* @param {*} [options] Override http request option.
|
|
2061
2168
|
* @throws {RequiredError}
|
|
2062
2169
|
*/
|
|
2063
|
-
|
|
2170
|
+
getListmonkHealthHealthListmonkGet(options) {
|
|
2064
2171
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2065
2172
|
var _a, _b, _c;
|
|
2066
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2173
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getListmonkHealthHealthListmonkGet(options);
|
|
2067
2174
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2068
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
2175
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['HealthApi.getListmonkHealthHealthListmonkGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2069
2176
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2070
2177
|
});
|
|
2071
2178
|
},
|
|
2072
2179
|
/**
|
|
2073
2180
|
*
|
|
2074
|
-
* @summary
|
|
2075
|
-
* @param {string} evidenceId
|
|
2076
|
-
* @param {string} text
|
|
2077
|
-
* @param {string} [authorization]
|
|
2078
|
-
* @param {string} [sessionId]
|
|
2181
|
+
* @summary Get Rate Limit Health
|
|
2079
2182
|
* @param {*} [options] Override http request option.
|
|
2080
2183
|
* @throws {RequiredError}
|
|
2081
2184
|
*/
|
|
2082
|
-
|
|
2185
|
+
getRateLimitHealthHealthRateLimitGet(options) {
|
|
2083
2186
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2084
2187
|
var _a, _b, _c;
|
|
2085
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2188
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getRateLimitHealthHealthRateLimitGet(options);
|
|
2086
2189
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2087
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
2190
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['HealthApi.getRateLimitHealthHealthRateLimitGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2088
2191
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2089
2192
|
});
|
|
2090
2193
|
},
|
|
2091
2194
|
/**
|
|
2092
2195
|
*
|
|
2093
|
-
* @summary
|
|
2094
|
-
* @param {string} companyId
|
|
2095
|
-
* @param {string} controlId
|
|
2096
|
-
* @param {File | null} file
|
|
2097
|
-
* @param {string | null} text
|
|
2098
|
-
* @param {string} [authorization]
|
|
2099
|
-
* @param {string} [sessionId]
|
|
2196
|
+
* @summary Get Redis Health
|
|
2100
2197
|
* @param {*} [options] Override http request option.
|
|
2101
2198
|
* @throws {RequiredError}
|
|
2102
2199
|
*/
|
|
2103
|
-
|
|
2200
|
+
getRedisHealthHealthRedisGet(options) {
|
|
2104
2201
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2105
2202
|
var _a, _b, _c;
|
|
2106
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2203
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getRedisHealthHealthRedisGet(options);
|
|
2107
2204
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2108
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
2205
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['HealthApi.getRedisHealthHealthRedisGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2109
2206
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2110
2207
|
});
|
|
2111
2208
|
},
|
|
2112
2209
|
};
|
|
2113
2210
|
};
|
|
2114
2211
|
/**
|
|
2115
|
-
*
|
|
2212
|
+
* HealthApi - factory interface
|
|
2116
2213
|
* @export
|
|
2117
2214
|
*/
|
|
2118
|
-
export const
|
|
2119
|
-
const localVarFp =
|
|
2215
|
+
export const HealthApiFactory = function (configuration, basePath, axios) {
|
|
2216
|
+
const localVarFp = HealthApiFp(configuration);
|
|
2120
2217
|
return {
|
|
2121
2218
|
/**
|
|
2122
2219
|
*
|
|
2123
|
-
* @summary
|
|
2124
|
-
* @param {string} evidenceId
|
|
2125
|
-
* @param {string} [authorization]
|
|
2126
|
-
* @param {string} [sessionId]
|
|
2220
|
+
* @summary Get Db Health
|
|
2127
2221
|
* @param {*} [options] Override http request option.
|
|
2128
2222
|
* @throws {RequiredError}
|
|
2129
2223
|
*/
|
|
2130
|
-
|
|
2131
|
-
return localVarFp.
|
|
2224
|
+
getDbHealthHealthDbGet(options) {
|
|
2225
|
+
return localVarFp.getDbHealthHealthDbGet(options).then((request) => request(axios, basePath));
|
|
2132
2226
|
},
|
|
2133
2227
|
/**
|
|
2134
2228
|
*
|
|
2135
|
-
* @summary Get
|
|
2136
|
-
* @param {string} evidenceId
|
|
2137
|
-
* @param {string} [authorization]
|
|
2138
|
-
* @param {string} [sessionId]
|
|
2229
|
+
* @summary Get Health
|
|
2139
2230
|
* @param {*} [options] Override http request option.
|
|
2140
2231
|
* @throws {RequiredError}
|
|
2141
2232
|
*/
|
|
2142
|
-
|
|
2143
|
-
return localVarFp.
|
|
2233
|
+
getHealthHealthGet(options) {
|
|
2234
|
+
return localVarFp.getHealthHealthGet(options).then((request) => request(axios, basePath));
|
|
2144
2235
|
},
|
|
2145
2236
|
/**
|
|
2146
2237
|
*
|
|
2147
|
-
* @summary
|
|
2148
|
-
* @param {string} companyId
|
|
2149
|
-
* @param {string} [authorization]
|
|
2150
|
-
* @param {string} [sessionId]
|
|
2238
|
+
* @summary Get Listmonk Health
|
|
2151
2239
|
* @param {*} [options] Override http request option.
|
|
2152
2240
|
* @throws {RequiredError}
|
|
2153
2241
|
*/
|
|
2154
|
-
|
|
2155
|
-
return localVarFp.
|
|
2242
|
+
getListmonkHealthHealthListmonkGet(options) {
|
|
2243
|
+
return localVarFp.getListmonkHealthHealthListmonkGet(options).then((request) => request(axios, basePath));
|
|
2156
2244
|
},
|
|
2157
2245
|
/**
|
|
2158
2246
|
*
|
|
2159
|
-
* @summary
|
|
2160
|
-
* @param {string} evidenceId
|
|
2161
|
-
* @param {string} text
|
|
2162
|
-
* @param {string} [authorization]
|
|
2163
|
-
* @param {string} [sessionId]
|
|
2247
|
+
* @summary Get Rate Limit Health
|
|
2164
2248
|
* @param {*} [options] Override http request option.
|
|
2165
2249
|
* @throws {RequiredError}
|
|
2166
2250
|
*/
|
|
2167
|
-
|
|
2168
|
-
return localVarFp.
|
|
2251
|
+
getRateLimitHealthHealthRateLimitGet(options) {
|
|
2252
|
+
return localVarFp.getRateLimitHealthHealthRateLimitGet(options).then((request) => request(axios, basePath));
|
|
2169
2253
|
},
|
|
2170
2254
|
/**
|
|
2171
2255
|
*
|
|
2172
|
-
* @summary
|
|
2173
|
-
* @param {string} companyId
|
|
2174
|
-
* @param {string} controlId
|
|
2175
|
-
* @param {File | null} file
|
|
2176
|
-
* @param {string | null} text
|
|
2177
|
-
* @param {string} [authorization]
|
|
2178
|
-
* @param {string} [sessionId]
|
|
2256
|
+
* @summary Get Redis Health
|
|
2179
2257
|
* @param {*} [options] Override http request option.
|
|
2180
2258
|
* @throws {RequiredError}
|
|
2181
2259
|
*/
|
|
2182
|
-
|
|
2183
|
-
return localVarFp.
|
|
2260
|
+
getRedisHealthHealthRedisGet(options) {
|
|
2261
|
+
return localVarFp.getRedisHealthHealthRedisGet(options).then((request) => request(axios, basePath));
|
|
2184
2262
|
},
|
|
2185
2263
|
};
|
|
2186
2264
|
};
|
|
2187
2265
|
/**
|
|
2188
|
-
*
|
|
2266
|
+
* HealthApi - object-oriented interface
|
|
2189
2267
|
* @export
|
|
2190
|
-
* @class
|
|
2268
|
+
* @class HealthApi
|
|
2191
2269
|
* @extends {BaseAPI}
|
|
2192
2270
|
*/
|
|
2193
|
-
export class
|
|
2271
|
+
export class HealthApi extends BaseAPI {
|
|
2194
2272
|
/**
|
|
2195
2273
|
*
|
|
2196
|
-
* @summary
|
|
2197
|
-
* @param {string} evidenceId
|
|
2198
|
-
* @param {string} [authorization]
|
|
2199
|
-
* @param {string} [sessionId]
|
|
2274
|
+
* @summary Get Db Health
|
|
2200
2275
|
* @param {*} [options] Override http request option.
|
|
2201
2276
|
* @throws {RequiredError}
|
|
2202
|
-
* @memberof
|
|
2277
|
+
* @memberof HealthApi
|
|
2203
2278
|
*/
|
|
2204
|
-
|
|
2205
|
-
return
|
|
2279
|
+
getDbHealthHealthDbGet(options) {
|
|
2280
|
+
return HealthApiFp(this.configuration).getDbHealthHealthDbGet(options).then((request) => request(this.axios, this.basePath));
|
|
2206
2281
|
}
|
|
2207
2282
|
/**
|
|
2208
2283
|
*
|
|
2209
|
-
* @summary Get
|
|
2210
|
-
* @param {string} evidenceId
|
|
2211
|
-
* @param {string} [authorization]
|
|
2212
|
-
* @param {string} [sessionId]
|
|
2284
|
+
* @summary Get Health
|
|
2213
2285
|
* @param {*} [options] Override http request option.
|
|
2214
2286
|
* @throws {RequiredError}
|
|
2215
|
-
* @memberof
|
|
2287
|
+
* @memberof HealthApi
|
|
2216
2288
|
*/
|
|
2217
|
-
|
|
2218
|
-
return
|
|
2289
|
+
getHealthHealthGet(options) {
|
|
2290
|
+
return HealthApiFp(this.configuration).getHealthHealthGet(options).then((request) => request(this.axios, this.basePath));
|
|
2219
2291
|
}
|
|
2220
2292
|
/**
|
|
2221
2293
|
*
|
|
2222
|
-
* @summary
|
|
2223
|
-
* @param {string} companyId
|
|
2224
|
-
* @param {string} [authorization]
|
|
2225
|
-
* @param {string} [sessionId]
|
|
2294
|
+
* @summary Get Listmonk Health
|
|
2226
2295
|
* @param {*} [options] Override http request option.
|
|
2227
2296
|
* @throws {RequiredError}
|
|
2228
|
-
* @memberof
|
|
2297
|
+
* @memberof HealthApi
|
|
2229
2298
|
*/
|
|
2230
|
-
|
|
2231
|
-
return
|
|
2299
|
+
getListmonkHealthHealthListmonkGet(options) {
|
|
2300
|
+
return HealthApiFp(this.configuration).getListmonkHealthHealthListmonkGet(options).then((request) => request(this.axios, this.basePath));
|
|
2232
2301
|
}
|
|
2233
2302
|
/**
|
|
2234
2303
|
*
|
|
2235
|
-
* @summary
|
|
2236
|
-
* @param {string} evidenceId
|
|
2237
|
-
* @param {string} text
|
|
2238
|
-
* @param {string} [authorization]
|
|
2239
|
-
* @param {string} [sessionId]
|
|
2304
|
+
* @summary Get Rate Limit Health
|
|
2240
2305
|
* @param {*} [options] Override http request option.
|
|
2241
2306
|
* @throws {RequiredError}
|
|
2242
|
-
* @memberof
|
|
2307
|
+
* @memberof HealthApi
|
|
2243
2308
|
*/
|
|
2244
|
-
|
|
2245
|
-
return
|
|
2309
|
+
getRateLimitHealthHealthRateLimitGet(options) {
|
|
2310
|
+
return HealthApiFp(this.configuration).getRateLimitHealthHealthRateLimitGet(options).then((request) => request(this.axios, this.basePath));
|
|
2246
2311
|
}
|
|
2247
2312
|
/**
|
|
2248
2313
|
*
|
|
2249
|
-
* @summary
|
|
2250
|
-
* @param {string} companyId
|
|
2251
|
-
* @param {string} controlId
|
|
2252
|
-
* @param {File | null} file
|
|
2253
|
-
* @param {string | null} text
|
|
2254
|
-
* @param {string} [authorization]
|
|
2255
|
-
* @param {string} [sessionId]
|
|
2314
|
+
* @summary Get Redis Health
|
|
2256
2315
|
* @param {*} [options] Override http request option.
|
|
2257
2316
|
* @throws {RequiredError}
|
|
2258
|
-
* @memberof
|
|
2317
|
+
* @memberof HealthApi
|
|
2259
2318
|
*/
|
|
2260
|
-
|
|
2261
|
-
return
|
|
2319
|
+
getRedisHealthHealthRedisGet(options) {
|
|
2320
|
+
return HealthApiFp(this.configuration).getRedisHealthHealthRedisGet(options).then((request) => request(this.axios, this.basePath));
|
|
2262
2321
|
}
|
|
2263
2322
|
}
|
|
2264
2323
|
/**
|
|
@@ -2270,20 +2329,19 @@ export const PaymentsApiAxiosParamCreator = function (configuration) {
|
|
|
2270
2329
|
/**
|
|
2271
2330
|
*
|
|
2272
2331
|
* @summary Get Checkout Session
|
|
2273
|
-
* @param {string} userId
|
|
2274
2332
|
* @param {string} companyId
|
|
2275
2333
|
* @param {string} productId
|
|
2334
|
+
* @param {string} [authorization]
|
|
2335
|
+
* @param {string} [sessionId]
|
|
2276
2336
|
* @param {*} [options] Override http request option.
|
|
2277
2337
|
* @throws {RequiredError}
|
|
2278
2338
|
*/
|
|
2279
|
-
|
|
2280
|
-
// verify required parameter 'userId' is not null or undefined
|
|
2281
|
-
assertParamExists('getCheckoutSessionPaymentsCheckoutGet', 'userId', userId);
|
|
2339
|
+
getCheckoutSessionV1PaymentsCheckoutGet: (companyId_1, productId_1, authorization_1, sessionId_1, ...args_1) => __awaiter(this, [companyId_1, productId_1, authorization_1, sessionId_1, ...args_1], void 0, function* (companyId, productId, authorization, sessionId, options = {}) {
|
|
2282
2340
|
// verify required parameter 'companyId' is not null or undefined
|
|
2283
|
-
assertParamExists('
|
|
2341
|
+
assertParamExists('getCheckoutSessionV1PaymentsCheckoutGet', 'companyId', companyId);
|
|
2284
2342
|
// verify required parameter 'productId' is not null or undefined
|
|
2285
|
-
assertParamExists('
|
|
2286
|
-
const localVarPath = `/payments/checkout`;
|
|
2343
|
+
assertParamExists('getCheckoutSessionV1PaymentsCheckoutGet', 'productId', productId);
|
|
2344
|
+
const localVarPath = `/v1/payments/checkout`;
|
|
2287
2345
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2288
2346
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2289
2347
|
let baseOptions;
|
|
@@ -2293,15 +2351,15 @@ export const PaymentsApiAxiosParamCreator = function (configuration) {
|
|
|
2293
2351
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2294
2352
|
const localVarHeaderParameter = {};
|
|
2295
2353
|
const localVarQueryParameter = {};
|
|
2296
|
-
if (userId !== undefined) {
|
|
2297
|
-
localVarQueryParameter['user_id'] = userId;
|
|
2298
|
-
}
|
|
2299
2354
|
if (companyId !== undefined) {
|
|
2300
2355
|
localVarQueryParameter['company_id'] = companyId;
|
|
2301
2356
|
}
|
|
2302
2357
|
if (productId !== undefined) {
|
|
2303
2358
|
localVarQueryParameter['product_id'] = productId;
|
|
2304
2359
|
}
|
|
2360
|
+
if (authorization != null) {
|
|
2361
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
2362
|
+
}
|
|
2305
2363
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2306
2364
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2307
2365
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -2318,8 +2376,8 @@ export const PaymentsApiAxiosParamCreator = function (configuration) {
|
|
|
2318
2376
|
* @param {*} [options] Override http request option.
|
|
2319
2377
|
* @throws {RequiredError}
|
|
2320
2378
|
*/
|
|
2321
|
-
|
|
2322
|
-
const localVarPath = `/payments/customer/management`;
|
|
2379
|
+
getCustomerManagementSessionV1PaymentsCustomerManagementGet: (authorization_1, sessionId_1, ...args_1) => __awaiter(this, [authorization_1, sessionId_1, ...args_1], void 0, function* (authorization, sessionId, options = {}) {
|
|
2380
|
+
const localVarPath = `/v1/payments/customer/management`;
|
|
2323
2381
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2324
2382
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2325
2383
|
let baseOptions;
|
|
@@ -2346,8 +2404,8 @@ export const PaymentsApiAxiosParamCreator = function (configuration) {
|
|
|
2346
2404
|
* @param {*} [options] Override http request option.
|
|
2347
2405
|
* @throws {RequiredError}
|
|
2348
2406
|
*/
|
|
2349
|
-
|
|
2350
|
-
const localVarPath = `/payments/webhook`;
|
|
2407
|
+
webhookV1PaymentsWebhookPost: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
2408
|
+
const localVarPath = `/v1/payments/webhook`;
|
|
2351
2409
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2352
2410
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2353
2411
|
let baseOptions;
|
|
@@ -2377,18 +2435,19 @@ export const PaymentsApiFp = function (configuration) {
|
|
|
2377
2435
|
/**
|
|
2378
2436
|
*
|
|
2379
2437
|
* @summary Get Checkout Session
|
|
2380
|
-
* @param {string} userId
|
|
2381
2438
|
* @param {string} companyId
|
|
2382
2439
|
* @param {string} productId
|
|
2440
|
+
* @param {string} [authorization]
|
|
2441
|
+
* @param {string} [sessionId]
|
|
2383
2442
|
* @param {*} [options] Override http request option.
|
|
2384
2443
|
* @throws {RequiredError}
|
|
2385
2444
|
*/
|
|
2386
|
-
|
|
2445
|
+
getCheckoutSessionV1PaymentsCheckoutGet(companyId, productId, authorization, sessionId, options) {
|
|
2387
2446
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2388
2447
|
var _a, _b, _c;
|
|
2389
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2448
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCheckoutSessionV1PaymentsCheckoutGet(companyId, productId, authorization, sessionId, options);
|
|
2390
2449
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2391
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PaymentsApi.
|
|
2450
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PaymentsApi.getCheckoutSessionV1PaymentsCheckoutGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2392
2451
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2393
2452
|
});
|
|
2394
2453
|
},
|
|
@@ -2400,12 +2459,12 @@ export const PaymentsApiFp = function (configuration) {
|
|
|
2400
2459
|
* @param {*} [options] Override http request option.
|
|
2401
2460
|
* @throws {RequiredError}
|
|
2402
2461
|
*/
|
|
2403
|
-
|
|
2462
|
+
getCustomerManagementSessionV1PaymentsCustomerManagementGet(authorization, sessionId, options) {
|
|
2404
2463
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2405
2464
|
var _a, _b, _c;
|
|
2406
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2465
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCustomerManagementSessionV1PaymentsCustomerManagementGet(authorization, sessionId, options);
|
|
2407
2466
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2408
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PaymentsApi.
|
|
2467
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PaymentsApi.getCustomerManagementSessionV1PaymentsCustomerManagementGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2409
2468
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2410
2469
|
});
|
|
2411
2470
|
},
|
|
@@ -2415,12 +2474,12 @@ export const PaymentsApiFp = function (configuration) {
|
|
|
2415
2474
|
* @param {*} [options] Override http request option.
|
|
2416
2475
|
* @throws {RequiredError}
|
|
2417
2476
|
*/
|
|
2418
|
-
|
|
2477
|
+
webhookV1PaymentsWebhookPost(options) {
|
|
2419
2478
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2420
2479
|
var _a, _b, _c;
|
|
2421
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2480
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.webhookV1PaymentsWebhookPost(options);
|
|
2422
2481
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2423
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PaymentsApi.
|
|
2482
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PaymentsApi.webhookV1PaymentsWebhookPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2424
2483
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2425
2484
|
});
|
|
2426
2485
|
},
|
|
@@ -2436,14 +2495,15 @@ export const PaymentsApiFactory = function (configuration, basePath, axios) {
|
|
|
2436
2495
|
/**
|
|
2437
2496
|
*
|
|
2438
2497
|
* @summary Get Checkout Session
|
|
2439
|
-
* @param {string} userId
|
|
2440
2498
|
* @param {string} companyId
|
|
2441
2499
|
* @param {string} productId
|
|
2500
|
+
* @param {string} [authorization]
|
|
2501
|
+
* @param {string} [sessionId]
|
|
2442
2502
|
* @param {*} [options] Override http request option.
|
|
2443
2503
|
* @throws {RequiredError}
|
|
2444
2504
|
*/
|
|
2445
|
-
|
|
2446
|
-
return localVarFp.
|
|
2505
|
+
getCheckoutSessionV1PaymentsCheckoutGet(companyId, productId, authorization, sessionId, options) {
|
|
2506
|
+
return localVarFp.getCheckoutSessionV1PaymentsCheckoutGet(companyId, productId, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
2447
2507
|
},
|
|
2448
2508
|
/**
|
|
2449
2509
|
*
|
|
@@ -2453,8 +2513,8 @@ export const PaymentsApiFactory = function (configuration, basePath, axios) {
|
|
|
2453
2513
|
* @param {*} [options] Override http request option.
|
|
2454
2514
|
* @throws {RequiredError}
|
|
2455
2515
|
*/
|
|
2456
|
-
|
|
2457
|
-
return localVarFp.
|
|
2516
|
+
getCustomerManagementSessionV1PaymentsCustomerManagementGet(authorization, sessionId, options) {
|
|
2517
|
+
return localVarFp.getCustomerManagementSessionV1PaymentsCustomerManagementGet(authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
2458
2518
|
},
|
|
2459
2519
|
/**
|
|
2460
2520
|
*
|
|
@@ -2462,8 +2522,8 @@ export const PaymentsApiFactory = function (configuration, basePath, axios) {
|
|
|
2462
2522
|
* @param {*} [options] Override http request option.
|
|
2463
2523
|
* @throws {RequiredError}
|
|
2464
2524
|
*/
|
|
2465
|
-
|
|
2466
|
-
return localVarFp.
|
|
2525
|
+
webhookV1PaymentsWebhookPost(options) {
|
|
2526
|
+
return localVarFp.webhookV1PaymentsWebhookPost(options).then((request) => request(axios, basePath));
|
|
2467
2527
|
},
|
|
2468
2528
|
};
|
|
2469
2529
|
};
|
|
@@ -2477,15 +2537,16 @@ export class PaymentsApi extends BaseAPI {
|
|
|
2477
2537
|
/**
|
|
2478
2538
|
*
|
|
2479
2539
|
* @summary Get Checkout Session
|
|
2480
|
-
* @param {string} userId
|
|
2481
2540
|
* @param {string} companyId
|
|
2482
2541
|
* @param {string} productId
|
|
2542
|
+
* @param {string} [authorization]
|
|
2543
|
+
* @param {string} [sessionId]
|
|
2483
2544
|
* @param {*} [options] Override http request option.
|
|
2484
2545
|
* @throws {RequiredError}
|
|
2485
2546
|
* @memberof PaymentsApi
|
|
2486
2547
|
*/
|
|
2487
|
-
|
|
2488
|
-
return PaymentsApiFp(this.configuration).
|
|
2548
|
+
getCheckoutSessionV1PaymentsCheckoutGet(companyId, productId, authorization, sessionId, options) {
|
|
2549
|
+
return PaymentsApiFp(this.configuration).getCheckoutSessionV1PaymentsCheckoutGet(companyId, productId, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
2489
2550
|
}
|
|
2490
2551
|
/**
|
|
2491
2552
|
*
|
|
@@ -2496,8 +2557,8 @@ export class PaymentsApi extends BaseAPI {
|
|
|
2496
2557
|
* @throws {RequiredError}
|
|
2497
2558
|
* @memberof PaymentsApi
|
|
2498
2559
|
*/
|
|
2499
|
-
|
|
2500
|
-
return PaymentsApiFp(this.configuration).
|
|
2560
|
+
getCustomerManagementSessionV1PaymentsCustomerManagementGet(authorization, sessionId, options) {
|
|
2561
|
+
return PaymentsApiFp(this.configuration).getCustomerManagementSessionV1PaymentsCustomerManagementGet(authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
2501
2562
|
}
|
|
2502
2563
|
/**
|
|
2503
2564
|
*
|
|
@@ -2506,8 +2567,8 @@ export class PaymentsApi extends BaseAPI {
|
|
|
2506
2567
|
* @throws {RequiredError}
|
|
2507
2568
|
* @memberof PaymentsApi
|
|
2508
2569
|
*/
|
|
2509
|
-
|
|
2510
|
-
return PaymentsApiFp(this.configuration).
|
|
2570
|
+
webhookV1PaymentsWebhookPost(options) {
|
|
2571
|
+
return PaymentsApiFp(this.configuration).webhookV1PaymentsWebhookPost(options).then((request) => request(this.axios, this.basePath));
|
|
2511
2572
|
}
|
|
2512
2573
|
}
|
|
2513
2574
|
/**
|
|
@@ -2589,14 +2650,14 @@ export const PoliciesApiAxiosParamCreator = function (configuration) {
|
|
|
2589
2650
|
*
|
|
2590
2651
|
* @summary Get Company Policies
|
|
2591
2652
|
* @param {string} companyId
|
|
2592
|
-
* @param {number} [
|
|
2593
|
-
* @param {number} [
|
|
2653
|
+
* @param {number} [page]
|
|
2654
|
+
* @param {number} [elements]
|
|
2594
2655
|
* @param {string} [authorization]
|
|
2595
2656
|
* @param {string} [sessionId]
|
|
2596
2657
|
* @param {*} [options] Override http request option.
|
|
2597
2658
|
* @throws {RequiredError}
|
|
2598
2659
|
*/
|
|
2599
|
-
getCompanyPoliciesV1PoliciesCompanyCompanyIdGet: (companyId_1,
|
|
2660
|
+
getCompanyPoliciesV1PoliciesCompanyCompanyIdGet: (companyId_1, page_1, elements_1, authorization_1, sessionId_1, ...args_1) => __awaiter(this, [companyId_1, page_1, elements_1, authorization_1, sessionId_1, ...args_1], void 0, function* (companyId, page, elements, authorization, sessionId, options = {}) {
|
|
2600
2661
|
// verify required parameter 'companyId' is not null or undefined
|
|
2601
2662
|
assertParamExists('getCompanyPoliciesV1PoliciesCompanyCompanyIdGet', 'companyId', companyId);
|
|
2602
2663
|
const localVarPath = `/v1/policies/company/{company_id}`
|
|
@@ -2610,11 +2671,11 @@ export const PoliciesApiAxiosParamCreator = function (configuration) {
|
|
|
2610
2671
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2611
2672
|
const localVarHeaderParameter = {};
|
|
2612
2673
|
const localVarQueryParameter = {};
|
|
2613
|
-
if (
|
|
2614
|
-
localVarQueryParameter['
|
|
2674
|
+
if (page !== undefined) {
|
|
2675
|
+
localVarQueryParameter['page'] = page;
|
|
2615
2676
|
}
|
|
2616
|
-
if (
|
|
2617
|
-
localVarQueryParameter['
|
|
2677
|
+
if (elements !== undefined) {
|
|
2678
|
+
localVarQueryParameter['elements'] = elements;
|
|
2618
2679
|
}
|
|
2619
2680
|
if (authorization != null) {
|
|
2620
2681
|
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
@@ -2744,17 +2805,17 @@ export const PoliciesApiFp = function (configuration) {
|
|
|
2744
2805
|
*
|
|
2745
2806
|
* @summary Get Company Policies
|
|
2746
2807
|
* @param {string} companyId
|
|
2747
|
-
* @param {number} [
|
|
2748
|
-
* @param {number} [
|
|
2808
|
+
* @param {number} [page]
|
|
2809
|
+
* @param {number} [elements]
|
|
2749
2810
|
* @param {string} [authorization]
|
|
2750
2811
|
* @param {string} [sessionId]
|
|
2751
2812
|
* @param {*} [options] Override http request option.
|
|
2752
2813
|
* @throws {RequiredError}
|
|
2753
2814
|
*/
|
|
2754
|
-
getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId,
|
|
2815
|
+
getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId, page, elements, authorization, sessionId, options) {
|
|
2755
2816
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2756
2817
|
var _a, _b, _c;
|
|
2757
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId,
|
|
2818
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId, page, elements, authorization, sessionId, options);
|
|
2758
2819
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2759
2820
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PoliciesApi.getCompanyPoliciesV1PoliciesCompanyCompanyIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2760
2821
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2832,15 +2893,15 @@ export const PoliciesApiFactory = function (configuration, basePath, axios) {
|
|
|
2832
2893
|
*
|
|
2833
2894
|
* @summary Get Company Policies
|
|
2834
2895
|
* @param {string} companyId
|
|
2835
|
-
* @param {number} [
|
|
2836
|
-
* @param {number} [
|
|
2896
|
+
* @param {number} [page]
|
|
2897
|
+
* @param {number} [elements]
|
|
2837
2898
|
* @param {string} [authorization]
|
|
2838
2899
|
* @param {string} [sessionId]
|
|
2839
2900
|
* @param {*} [options] Override http request option.
|
|
2840
2901
|
* @throws {RequiredError}
|
|
2841
2902
|
*/
|
|
2842
|
-
getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId,
|
|
2843
|
-
return localVarFp.getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId,
|
|
2903
|
+
getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId, page, elements, authorization, sessionId, options) {
|
|
2904
|
+
return localVarFp.getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId, page, elements, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
2844
2905
|
},
|
|
2845
2906
|
/**
|
|
2846
2907
|
*
|
|
@@ -2904,16 +2965,16 @@ export class PoliciesApi extends BaseAPI {
|
|
|
2904
2965
|
*
|
|
2905
2966
|
* @summary Get Company Policies
|
|
2906
2967
|
* @param {string} companyId
|
|
2907
|
-
* @param {number} [
|
|
2908
|
-
* @param {number} [
|
|
2968
|
+
* @param {number} [page]
|
|
2969
|
+
* @param {number} [elements]
|
|
2909
2970
|
* @param {string} [authorization]
|
|
2910
2971
|
* @param {string} [sessionId]
|
|
2911
2972
|
* @param {*} [options] Override http request option.
|
|
2912
2973
|
* @throws {RequiredError}
|
|
2913
2974
|
* @memberof PoliciesApi
|
|
2914
2975
|
*/
|
|
2915
|
-
getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId,
|
|
2916
|
-
return PoliciesApiFp(this.configuration).getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId,
|
|
2976
|
+
getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId, page, elements, authorization, sessionId, options) {
|
|
2977
|
+
return PoliciesApiFp(this.configuration).getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId, page, elements, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
2917
2978
|
}
|
|
2918
2979
|
/**
|
|
2919
2980
|
*
|