@rasadov/lumoar-sdk 1.0.4 → 1.0.6
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 +4 -1
- package/api.ts +95 -131
- package/dist/api.d.ts +92 -80
- package/dist/api.js +21 -109
- package/dist/sdk.d.ts +3 -1
- package/dist/sdk.js +3 -1
- package/docs/AuditLogSchema.md +32 -0
- package/docs/AuditLogsApi.md +6 -6
- package/docs/CompanyApi.md +6 -67
- package/docs/PaginationResponseAuditLogSchema.md +22 -0
- package/docs/PaginationResponseCompanyInDBBase.md +22 -0
- package/docs/PaginationResponsePolicyRead.md +22 -0
- package/docs/PoliciesApi.md +2 -2
- package/package.json +1 -1
- package/sdk.ts +5 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -6,7 +6,7 @@ common.ts
|
|
|
6
6
|
configuration.ts
|
|
7
7
|
docs/AuditLogAction.md
|
|
8
8
|
docs/AuditLogEntity.md
|
|
9
|
-
docs/
|
|
9
|
+
docs/AuditLogSchema.md
|
|
10
10
|
docs/AuditLogsApi.md
|
|
11
11
|
docs/AuthApi.md
|
|
12
12
|
docs/AuthenticationSuccess.md
|
|
@@ -36,6 +36,9 @@ docs/HTTPValidationError.md
|
|
|
36
36
|
docs/HealthApi.md
|
|
37
37
|
docs/InviteToCompany.md
|
|
38
38
|
docs/LoginSchema.md
|
|
39
|
+
docs/PaginationResponseAuditLogSchema.md
|
|
40
|
+
docs/PaginationResponseCompanyInDBBase.md
|
|
41
|
+
docs/PaginationResponsePolicyRead.md
|
|
39
42
|
docs/PaymentsApi.md
|
|
40
43
|
docs/PermissionType.md
|
|
41
44
|
docs/PoliciesApi.md
|
package/api.ts
CHANGED
|
@@ -61,49 +61,49 @@ export type AuditLogEntity = typeof AuditLogEntity[keyof typeof AuditLogEntity];
|
|
|
61
61
|
/**
|
|
62
62
|
*
|
|
63
63
|
* @export
|
|
64
|
-
* @interface
|
|
64
|
+
* @interface AuditLogSchema
|
|
65
65
|
*/
|
|
66
|
-
export interface
|
|
66
|
+
export interface AuditLogSchema {
|
|
67
67
|
/**
|
|
68
68
|
*
|
|
69
69
|
* @type {string}
|
|
70
|
-
* @memberof
|
|
70
|
+
* @memberof AuditLogSchema
|
|
71
71
|
*/
|
|
72
72
|
'company_id': string;
|
|
73
73
|
/**
|
|
74
74
|
*
|
|
75
75
|
* @type {AuditLogAction}
|
|
76
|
-
* @memberof
|
|
76
|
+
* @memberof AuditLogSchema
|
|
77
77
|
*/
|
|
78
78
|
'action': AuditLogAction;
|
|
79
79
|
/**
|
|
80
80
|
*
|
|
81
81
|
* @type {AuditLogEntity}
|
|
82
|
-
* @memberof
|
|
82
|
+
* @memberof AuditLogSchema
|
|
83
83
|
*/
|
|
84
84
|
'entity_type': AuditLogEntity;
|
|
85
85
|
/**
|
|
86
86
|
*
|
|
87
87
|
* @type {string}
|
|
88
|
-
* @memberof
|
|
88
|
+
* @memberof AuditLogSchema
|
|
89
89
|
*/
|
|
90
90
|
'entity_id': string;
|
|
91
91
|
/**
|
|
92
92
|
*
|
|
93
93
|
* @type {string}
|
|
94
|
-
* @memberof
|
|
94
|
+
* @memberof AuditLogSchema
|
|
95
95
|
*/
|
|
96
96
|
'entity_name': string;
|
|
97
97
|
/**
|
|
98
98
|
*
|
|
99
99
|
* @type {string}
|
|
100
|
-
* @memberof
|
|
100
|
+
* @memberof AuditLogSchema
|
|
101
101
|
*/
|
|
102
102
|
'timestamp': string;
|
|
103
103
|
/**
|
|
104
104
|
*
|
|
105
105
|
* @type {{ [key: string]: any; }}
|
|
106
|
-
* @memberof
|
|
106
|
+
* @memberof AuditLogSchema
|
|
107
107
|
*/
|
|
108
108
|
'details': { [key: string]: any; } | null;
|
|
109
109
|
}
|
|
@@ -1089,6 +1089,63 @@ export interface LoginSchema {
|
|
|
1089
1089
|
*/
|
|
1090
1090
|
'turnstile_token': string;
|
|
1091
1091
|
}
|
|
1092
|
+
/**
|
|
1093
|
+
*
|
|
1094
|
+
* @export
|
|
1095
|
+
* @interface PaginationResponseAuditLogSchema
|
|
1096
|
+
*/
|
|
1097
|
+
export interface PaginationResponseAuditLogSchema {
|
|
1098
|
+
/**
|
|
1099
|
+
*
|
|
1100
|
+
* @type {Array<AuditLogSchema>}
|
|
1101
|
+
* @memberof PaginationResponseAuditLogSchema
|
|
1102
|
+
*/
|
|
1103
|
+
'items': Array<AuditLogSchema>;
|
|
1104
|
+
/**
|
|
1105
|
+
*
|
|
1106
|
+
* @type {number}
|
|
1107
|
+
* @memberof PaginationResponseAuditLogSchema
|
|
1108
|
+
*/
|
|
1109
|
+
'total': number;
|
|
1110
|
+
}
|
|
1111
|
+
/**
|
|
1112
|
+
*
|
|
1113
|
+
* @export
|
|
1114
|
+
* @interface PaginationResponseCompanyInDBBase
|
|
1115
|
+
*/
|
|
1116
|
+
export interface PaginationResponseCompanyInDBBase {
|
|
1117
|
+
/**
|
|
1118
|
+
*
|
|
1119
|
+
* @type {Array<CompanyInDBBase>}
|
|
1120
|
+
* @memberof PaginationResponseCompanyInDBBase
|
|
1121
|
+
*/
|
|
1122
|
+
'items': Array<CompanyInDBBase>;
|
|
1123
|
+
/**
|
|
1124
|
+
*
|
|
1125
|
+
* @type {number}
|
|
1126
|
+
* @memberof PaginationResponseCompanyInDBBase
|
|
1127
|
+
*/
|
|
1128
|
+
'total': number;
|
|
1129
|
+
}
|
|
1130
|
+
/**
|
|
1131
|
+
*
|
|
1132
|
+
* @export
|
|
1133
|
+
* @interface PaginationResponsePolicyRead
|
|
1134
|
+
*/
|
|
1135
|
+
export interface PaginationResponsePolicyRead {
|
|
1136
|
+
/**
|
|
1137
|
+
*
|
|
1138
|
+
* @type {Array<PolicyRead>}
|
|
1139
|
+
* @memberof PaginationResponsePolicyRead
|
|
1140
|
+
*/
|
|
1141
|
+
'items': Array<PolicyRead>;
|
|
1142
|
+
/**
|
|
1143
|
+
*
|
|
1144
|
+
* @type {number}
|
|
1145
|
+
* @memberof PaginationResponsePolicyRead
|
|
1146
|
+
*/
|
|
1147
|
+
'total': number;
|
|
1148
|
+
}
|
|
1092
1149
|
/**
|
|
1093
1150
|
*
|
|
1094
1151
|
* @export
|
|
@@ -1561,8 +1618,8 @@ export const AuditLogsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
1561
1618
|
*
|
|
1562
1619
|
* @summary List Audit Logs
|
|
1563
1620
|
* @param {string} companyId
|
|
1564
|
-
* @param {number} page
|
|
1565
|
-
* @param {number} elements
|
|
1621
|
+
* @param {number} [page]
|
|
1622
|
+
* @param {number} [elements]
|
|
1566
1623
|
* @param {AuditLogEntity | null} [entityType]
|
|
1567
1624
|
* @param {AuditLogAction | null} [action]
|
|
1568
1625
|
* @param {string | null} [startDate]
|
|
@@ -1572,13 +1629,9 @@ export const AuditLogsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
1572
1629
|
* @param {*} [options] Override http request option.
|
|
1573
1630
|
* @throws {RequiredError}
|
|
1574
1631
|
*/
|
|
1575
|
-
listAuditLogsV1AuditLogsListGet: async (companyId: string, page
|
|
1632
|
+
listAuditLogsV1AuditLogsListGet: async (companyId: string, page?: number, elements?: number, entityType?: AuditLogEntity | null, action?: AuditLogAction | null, startDate?: string | null, endDate?: string | null, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1576
1633
|
// verify required parameter 'companyId' is not null or undefined
|
|
1577
1634
|
assertParamExists('listAuditLogsV1AuditLogsListGet', 'companyId', companyId)
|
|
1578
|
-
// verify required parameter 'page' is not null or undefined
|
|
1579
|
-
assertParamExists('listAuditLogsV1AuditLogsListGet', 'page', page)
|
|
1580
|
-
// verify required parameter 'elements' is not null or undefined
|
|
1581
|
-
assertParamExists('listAuditLogsV1AuditLogsListGet', 'elements', elements)
|
|
1582
1635
|
const localVarPath = `/v1/audit-logs/list`;
|
|
1583
1636
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1584
1637
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1651,8 +1704,8 @@ export const AuditLogsApiFp = function(configuration?: Configuration) {
|
|
|
1651
1704
|
*
|
|
1652
1705
|
* @summary List Audit Logs
|
|
1653
1706
|
* @param {string} companyId
|
|
1654
|
-
* @param {number} page
|
|
1655
|
-
* @param {number} elements
|
|
1707
|
+
* @param {number} [page]
|
|
1708
|
+
* @param {number} [elements]
|
|
1656
1709
|
* @param {AuditLogEntity | null} [entityType]
|
|
1657
1710
|
* @param {AuditLogAction | null} [action]
|
|
1658
1711
|
* @param {string | null} [startDate]
|
|
@@ -1662,7 +1715,7 @@ export const AuditLogsApiFp = function(configuration?: Configuration) {
|
|
|
1662
1715
|
* @param {*} [options] Override http request option.
|
|
1663
1716
|
* @throws {RequiredError}
|
|
1664
1717
|
*/
|
|
1665
|
-
async listAuditLogsV1AuditLogsListGet(companyId: string, page
|
|
1718
|
+
async listAuditLogsV1AuditLogsListGet(companyId: string, page?: number, elements?: number, entityType?: AuditLogEntity | null, action?: AuditLogAction | null, startDate?: string | null, endDate?: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaginationResponseAuditLogSchema>> {
|
|
1666
1719
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listAuditLogsV1AuditLogsListGet(companyId, page, elements, entityType, action, startDate, endDate, authorization, sessionId, options);
|
|
1667
1720
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1668
1721
|
const localVarOperationServerBasePath = operationServerMap['AuditLogsApi.listAuditLogsV1AuditLogsListGet']?.[localVarOperationServerIndex]?.url;
|
|
@@ -1682,8 +1735,8 @@ export const AuditLogsApiFactory = function (configuration?: Configuration, base
|
|
|
1682
1735
|
*
|
|
1683
1736
|
* @summary List Audit Logs
|
|
1684
1737
|
* @param {string} companyId
|
|
1685
|
-
* @param {number} page
|
|
1686
|
-
* @param {number} elements
|
|
1738
|
+
* @param {number} [page]
|
|
1739
|
+
* @param {number} [elements]
|
|
1687
1740
|
* @param {AuditLogEntity | null} [entityType]
|
|
1688
1741
|
* @param {AuditLogAction | null} [action]
|
|
1689
1742
|
* @param {string | null} [startDate]
|
|
@@ -1693,7 +1746,7 @@ export const AuditLogsApiFactory = function (configuration?: Configuration, base
|
|
|
1693
1746
|
* @param {*} [options] Override http request option.
|
|
1694
1747
|
* @throws {RequiredError}
|
|
1695
1748
|
*/
|
|
1696
|
-
listAuditLogsV1AuditLogsListGet(companyId: string, page
|
|
1749
|
+
listAuditLogsV1AuditLogsListGet(companyId: string, page?: number, elements?: number, entityType?: AuditLogEntity | null, action?: AuditLogAction | null, startDate?: string | null, endDate?: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<PaginationResponseAuditLogSchema> {
|
|
1697
1750
|
return localVarFp.listAuditLogsV1AuditLogsListGet(companyId, page, elements, entityType, action, startDate, endDate, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
1698
1751
|
},
|
|
1699
1752
|
};
|
|
@@ -1710,8 +1763,8 @@ export class AuditLogsApi extends BaseAPI {
|
|
|
1710
1763
|
*
|
|
1711
1764
|
* @summary List Audit Logs
|
|
1712
1765
|
* @param {string} companyId
|
|
1713
|
-
* @param {number} page
|
|
1714
|
-
* @param {number} elements
|
|
1766
|
+
* @param {number} [page]
|
|
1767
|
+
* @param {number} [elements]
|
|
1715
1768
|
* @param {AuditLogEntity | null} [entityType]
|
|
1716
1769
|
* @param {AuditLogAction | null} [action]
|
|
1717
1770
|
* @param {string | null} [startDate]
|
|
@@ -1722,7 +1775,7 @@ export class AuditLogsApi extends BaseAPI {
|
|
|
1722
1775
|
* @throws {RequiredError}
|
|
1723
1776
|
* @memberof AuditLogsApi
|
|
1724
1777
|
*/
|
|
1725
|
-
public listAuditLogsV1AuditLogsListGet(companyId: string, page
|
|
1778
|
+
public listAuditLogsV1AuditLogsListGet(companyId: string, page?: number, elements?: number, entityType?: AuditLogEntity | null, action?: AuditLogAction | null, startDate?: string | null, endDate?: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
|
|
1726
1779
|
return AuditLogsApiFp(this.configuration).listAuditLogsV1AuditLogsListGet(companyId, page, elements, entityType, action, startDate, endDate, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
1727
1780
|
}
|
|
1728
1781
|
}
|
|
@@ -2663,16 +2716,16 @@ export const CompanyApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
2663
2716
|
},
|
|
2664
2717
|
/**
|
|
2665
2718
|
*
|
|
2666
|
-
* @summary Get Controls
|
|
2719
|
+
* @summary Get Company With Controls
|
|
2667
2720
|
* @param {string} companyId
|
|
2668
2721
|
* @param {string} [authorization]
|
|
2669
2722
|
* @param {string} [sessionId]
|
|
2670
2723
|
* @param {*} [options] Override http request option.
|
|
2671
2724
|
* @throws {RequiredError}
|
|
2672
2725
|
*/
|
|
2673
|
-
|
|
2726
|
+
getCompanyWithControlsV1CompanyControlsCompanyIdGet: async (companyId: string, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2674
2727
|
// verify required parameter 'companyId' is not null or undefined
|
|
2675
|
-
assertParamExists('
|
|
2728
|
+
assertParamExists('getCompanyWithControlsV1CompanyControlsCompanyIdGet', 'companyId', companyId)
|
|
2676
2729
|
const localVarPath = `/v1/company/controls/{company_id}`
|
|
2677
2730
|
.replace(`{${"company_id"}}`, encodeURIComponent(String(companyId)));
|
|
2678
2731
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -2688,51 +2741,6 @@ export const CompanyApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
2688
2741
|
|
|
2689
2742
|
|
|
2690
2743
|
|
|
2691
|
-
if (authorization != null) {
|
|
2692
|
-
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
2693
|
-
}
|
|
2694
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2695
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2696
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2697
|
-
|
|
2698
|
-
return {
|
|
2699
|
-
url: toPathString(localVarUrlObj),
|
|
2700
|
-
options: localVarRequestOptions,
|
|
2701
|
-
};
|
|
2702
|
-
},
|
|
2703
|
-
/**
|
|
2704
|
-
*
|
|
2705
|
-
* @summary Get Policies
|
|
2706
|
-
* @param {number} [page]
|
|
2707
|
-
* @param {number} [elements]
|
|
2708
|
-
* @param {string} [authorization]
|
|
2709
|
-
* @param {string} [sessionId]
|
|
2710
|
-
* @param {*} [options] Override http request option.
|
|
2711
|
-
* @throws {RequiredError}
|
|
2712
|
-
*/
|
|
2713
|
-
getPoliciesV1CompanyPoliciesGet: async (page?: number, elements?: number, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2714
|
-
const localVarPath = `/v1/company/policies`;
|
|
2715
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2716
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2717
|
-
let baseOptions;
|
|
2718
|
-
if (configuration) {
|
|
2719
|
-
baseOptions = configuration.baseOptions;
|
|
2720
|
-
}
|
|
2721
|
-
|
|
2722
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
2723
|
-
const localVarHeaderParameter = {} as any;
|
|
2724
|
-
const localVarQueryParameter = {} as any;
|
|
2725
|
-
|
|
2726
|
-
if (page !== undefined) {
|
|
2727
|
-
localVarQueryParameter['page'] = page;
|
|
2728
|
-
}
|
|
2729
|
-
|
|
2730
|
-
if (elements !== undefined) {
|
|
2731
|
-
localVarQueryParameter['elements'] = elements;
|
|
2732
|
-
}
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
2744
|
if (authorization != null) {
|
|
2737
2745
|
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
2738
2746
|
}
|
|
@@ -2821,7 +2829,7 @@ export const CompanyApiFp = function(configuration?: Configuration) {
|
|
|
2821
2829
|
* @param {*} [options] Override http request option.
|
|
2822
2830
|
* @throws {RequiredError}
|
|
2823
2831
|
*/
|
|
2824
|
-
async getCompaniesV1CompanyListGet(page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
2832
|
+
async getCompaniesV1CompanyListGet(page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaginationResponseCompanyInDBBase>> {
|
|
2825
2833
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getCompaniesV1CompanyListGet(page, elements, authorization, sessionId, options);
|
|
2826
2834
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2827
2835
|
const localVarOperationServerBasePath = operationServerMap['CompanyApi.getCompaniesV1CompanyListGet']?.[localVarOperationServerIndex]?.url;
|
|
@@ -2844,33 +2852,17 @@ export const CompanyApiFp = function(configuration?: Configuration) {
|
|
|
2844
2852
|
},
|
|
2845
2853
|
/**
|
|
2846
2854
|
*
|
|
2847
|
-
* @summary Get Controls
|
|
2855
|
+
* @summary Get Company With Controls
|
|
2848
2856
|
* @param {string} companyId
|
|
2849
2857
|
* @param {string} [authorization]
|
|
2850
2858
|
* @param {string} [sessionId]
|
|
2851
2859
|
* @param {*} [options] Override http request option.
|
|
2852
2860
|
* @throws {RequiredError}
|
|
2853
2861
|
*/
|
|
2854
|
-
async
|
|
2855
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2856
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2857
|
-
const localVarOperationServerBasePath = operationServerMap['CompanyApi.getControlsV1CompanyControlsCompanyIdGet']?.[localVarOperationServerIndex]?.url;
|
|
2858
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2859
|
-
},
|
|
2860
|
-
/**
|
|
2861
|
-
*
|
|
2862
|
-
* @summary Get Policies
|
|
2863
|
-
* @param {number} [page]
|
|
2864
|
-
* @param {number} [elements]
|
|
2865
|
-
* @param {string} [authorization]
|
|
2866
|
-
* @param {string} [sessionId]
|
|
2867
|
-
* @param {*} [options] Override http request option.
|
|
2868
|
-
* @throws {RequiredError}
|
|
2869
|
-
*/
|
|
2870
|
-
async getPoliciesV1CompanyPoliciesGet(page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PolicyRead>>> {
|
|
2871
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getPoliciesV1CompanyPoliciesGet(page, elements, authorization, sessionId, options);
|
|
2862
|
+
async getCompanyWithControlsV1CompanyControlsCompanyIdGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompanyWithControls>> {
|
|
2863
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCompanyWithControlsV1CompanyControlsCompanyIdGet(companyId, authorization, sessionId, options);
|
|
2872
2864
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2873
|
-
const localVarOperationServerBasePath = operationServerMap['CompanyApi.
|
|
2865
|
+
const localVarOperationServerBasePath = operationServerMap['CompanyApi.getCompanyWithControlsV1CompanyControlsCompanyIdGet']?.[localVarOperationServerIndex]?.url;
|
|
2874
2866
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2875
2867
|
},
|
|
2876
2868
|
/**
|
|
@@ -2920,7 +2912,7 @@ export const CompanyApiFactory = function (configuration?: Configuration, basePa
|
|
|
2920
2912
|
* @param {*} [options] Override http request option.
|
|
2921
2913
|
* @throws {RequiredError}
|
|
2922
2914
|
*/
|
|
2923
|
-
getCompaniesV1CompanyListGet(page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
2915
|
+
getCompaniesV1CompanyListGet(page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<PaginationResponseCompanyInDBBase> {
|
|
2924
2916
|
return localVarFp.getCompaniesV1CompanyListGet(page, elements, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
2925
2917
|
},
|
|
2926
2918
|
/**
|
|
@@ -2937,28 +2929,15 @@ export const CompanyApiFactory = function (configuration?: Configuration, basePa
|
|
|
2937
2929
|
},
|
|
2938
2930
|
/**
|
|
2939
2931
|
*
|
|
2940
|
-
* @summary Get Controls
|
|
2932
|
+
* @summary Get Company With Controls
|
|
2941
2933
|
* @param {string} companyId
|
|
2942
2934
|
* @param {string} [authorization]
|
|
2943
2935
|
* @param {string} [sessionId]
|
|
2944
2936
|
* @param {*} [options] Override http request option.
|
|
2945
2937
|
* @throws {RequiredError}
|
|
2946
2938
|
*/
|
|
2947
|
-
|
|
2948
|
-
return localVarFp.
|
|
2949
|
-
},
|
|
2950
|
-
/**
|
|
2951
|
-
*
|
|
2952
|
-
* @summary Get Policies
|
|
2953
|
-
* @param {number} [page]
|
|
2954
|
-
* @param {number} [elements]
|
|
2955
|
-
* @param {string} [authorization]
|
|
2956
|
-
* @param {string} [sessionId]
|
|
2957
|
-
* @param {*} [options] Override http request option.
|
|
2958
|
-
* @throws {RequiredError}
|
|
2959
|
-
*/
|
|
2960
|
-
getPoliciesV1CompanyPoliciesGet(page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<PolicyRead>> {
|
|
2961
|
-
return localVarFp.getPoliciesV1CompanyPoliciesGet(page, elements, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
2939
|
+
getCompanyWithControlsV1CompanyControlsCompanyIdGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<CompanyWithControls> {
|
|
2940
|
+
return localVarFp.getCompanyWithControlsV1CompanyControlsCompanyIdGet(companyId, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
2962
2941
|
},
|
|
2963
2942
|
/**
|
|
2964
2943
|
*
|
|
@@ -3027,7 +3006,7 @@ export class CompanyApi extends BaseAPI {
|
|
|
3027
3006
|
|
|
3028
3007
|
/**
|
|
3029
3008
|
*
|
|
3030
|
-
* @summary Get Controls
|
|
3009
|
+
* @summary Get Company With Controls
|
|
3031
3010
|
* @param {string} companyId
|
|
3032
3011
|
* @param {string} [authorization]
|
|
3033
3012
|
* @param {string} [sessionId]
|
|
@@ -3035,23 +3014,8 @@ export class CompanyApi extends BaseAPI {
|
|
|
3035
3014
|
* @throws {RequiredError}
|
|
3036
3015
|
* @memberof CompanyApi
|
|
3037
3016
|
*/
|
|
3038
|
-
public
|
|
3039
|
-
return CompanyApiFp(this.configuration).
|
|
3040
|
-
}
|
|
3041
|
-
|
|
3042
|
-
/**
|
|
3043
|
-
*
|
|
3044
|
-
* @summary Get Policies
|
|
3045
|
-
* @param {number} [page]
|
|
3046
|
-
* @param {number} [elements]
|
|
3047
|
-
* @param {string} [authorization]
|
|
3048
|
-
* @param {string} [sessionId]
|
|
3049
|
-
* @param {*} [options] Override http request option.
|
|
3050
|
-
* @throws {RequiredError}
|
|
3051
|
-
* @memberof CompanyApi
|
|
3052
|
-
*/
|
|
3053
|
-
public getPoliciesV1CompanyPoliciesGet(page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
|
|
3054
|
-
return CompanyApiFp(this.configuration).getPoliciesV1CompanyPoliciesGet(page, elements, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
3017
|
+
public getCompanyWithControlsV1CompanyControlsCompanyIdGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
|
|
3018
|
+
return CompanyApiFp(this.configuration).getCompanyWithControlsV1CompanyControlsCompanyIdGet(companyId, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
3055
3019
|
}
|
|
3056
3020
|
|
|
3057
3021
|
/**
|
|
@@ -4653,7 +4617,7 @@ export const PoliciesApiFp = function(configuration?: Configuration) {
|
|
|
4653
4617
|
* @param {*} [options] Override http request option.
|
|
4654
4618
|
* @throws {RequiredError}
|
|
4655
4619
|
*/
|
|
4656
|
-
async getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId: string, page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
4620
|
+
async getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId: string, page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaginationResponsePolicyRead>> {
|
|
4657
4621
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId, page, elements, authorization, sessionId, options);
|
|
4658
4622
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4659
4623
|
const localVarOperationServerBasePath = operationServerMap['PoliciesApi.getCompanyPoliciesV1PoliciesCompanyCompanyIdGet']?.[localVarOperationServerIndex]?.url;
|
|
@@ -4733,7 +4697,7 @@ export const PoliciesApiFactory = function (configuration?: Configuration, baseP
|
|
|
4733
4697
|
* @param {*} [options] Override http request option.
|
|
4734
4698
|
* @throws {RequiredError}
|
|
4735
4699
|
*/
|
|
4736
|
-
getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId: string, page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
4700
|
+
getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId: string, page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<PaginationResponsePolicyRead> {
|
|
4737
4701
|
return localVarFp.getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId, page, elements, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
4738
4702
|
},
|
|
4739
4703
|
/**
|