@rasadov/lumoar-sdk 1.2.3 → 1.2.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 +1 -5
- package/api.ts +60 -641
- package/dist/api.d.ts +38 -412
- package/dist/api.js +52 -483
- package/dist/sdk.d.ts +1 -3
- package/dist/sdk.js +1 -3
- package/docs/AuditLogEntity.md +0 -2
- package/docs/ReportBase.md +0 -2
- package/docs/ReportType.md +10 -0
- package/docs/ReportsApi.md +4 -7
- package/docs/UserApi.md +9 -9
- package/package.json +1 -1
- package/sdk.ts +0 -4
package/dist/sdk.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HealthApi, AuthApi, CompanyApi, ControlsApi, AuditLogsApi, EvidenceApi, PaymentsApi,
|
|
1
|
+
import { HealthApi, AuthApi, CompanyApi, ControlsApi, AuditLogsApi, EvidenceApi, PaymentsApi, RolesApi, ReportsApi, TasksApi, UserApi } from './api';
|
|
2
2
|
export declare class ApiSDK {
|
|
3
3
|
private helthApi;
|
|
4
4
|
private authApi;
|
|
@@ -9,7 +9,6 @@ export declare class ApiSDK {
|
|
|
9
9
|
private reportsApi;
|
|
10
10
|
private evidenceApi;
|
|
11
11
|
private paymentsApi;
|
|
12
|
-
private policiesApi;
|
|
13
12
|
private rolesApi;
|
|
14
13
|
private userApi;
|
|
15
14
|
private token;
|
|
@@ -27,7 +26,6 @@ export declare class ApiSDK {
|
|
|
27
26
|
auditLogsApi: AuditLogsApi;
|
|
28
27
|
evidenceApi: EvidenceApi;
|
|
29
28
|
paymentsApi: PaymentsApi;
|
|
30
|
-
policiesApi: PoliciesApi;
|
|
31
29
|
reportsApi: ReportsApi;
|
|
32
30
|
rolesApi: RolesApi;
|
|
33
31
|
userApi: UserApi;
|
package/dist/sdk.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import axios from 'axios';
|
|
2
|
-
import { HealthApi, AuthApi, CompanyApi, ControlsApi, AuditLogsApi, EvidenceApi, PaymentsApi,
|
|
2
|
+
import { HealthApi, AuthApi, CompanyApi, ControlsApi, AuditLogsApi, EvidenceApi, PaymentsApi, RolesApi, ReportsApi, TasksApi, UserApi } from './api';
|
|
3
3
|
import { Configuration } from './configuration';
|
|
4
4
|
export class ApiSDK {
|
|
5
5
|
constructor(basePath) {
|
|
@@ -24,7 +24,6 @@ export class ApiSDK {
|
|
|
24
24
|
this.auditLogsApi = new AuditLogsApi(config, undefined, this.axiosInstance);
|
|
25
25
|
this.evidenceApi = new EvidenceApi(config, undefined, this.axiosInstance);
|
|
26
26
|
this.paymentsApi = new PaymentsApi(config, undefined, this.axiosInstance);
|
|
27
|
-
this.policiesApi = new PoliciesApi(config, undefined, this.axiosInstance);
|
|
28
27
|
this.reportsApi = new ReportsApi(config, undefined, this.axiosInstance);
|
|
29
28
|
this.rolesApi = new RolesApi(config, undefined, this.axiosInstance);
|
|
30
29
|
this.userApi = new UserApi(config, undefined, this.axiosInstance);
|
|
@@ -70,7 +69,6 @@ export class ApiSDK {
|
|
|
70
69
|
auditLogsApi: this.auditLogsApi,
|
|
71
70
|
evidenceApi: this.evidenceApi,
|
|
72
71
|
paymentsApi: this.paymentsApi,
|
|
73
|
-
policiesApi: this.policiesApi,
|
|
74
72
|
reportsApi: this.reportsApi,
|
|
75
73
|
rolesApi: this.rolesApi,
|
|
76
74
|
userApi: this.userApi,
|
package/docs/AuditLogEntity.md
CHANGED
package/docs/ReportBase.md
CHANGED
|
@@ -11,7 +11,6 @@ Name | Type | Description | Notes
|
|
|
11
11
|
**share_expiration** | **string** | | [optional] [default to undefined]
|
|
12
12
|
**status** | **string** | | [default to undefined]
|
|
13
13
|
**created_at** | **string** | | [default to undefined]
|
|
14
|
-
**updated_at** | **string** | | [default to undefined]
|
|
15
14
|
|
|
16
15
|
## Example
|
|
17
16
|
|
|
@@ -25,7 +24,6 @@ const instance: ReportBase = {
|
|
|
25
24
|
share_expiration,
|
|
26
25
|
status,
|
|
27
26
|
created_at,
|
|
28
|
-
updated_at,
|
|
29
27
|
};
|
|
30
28
|
```
|
|
31
29
|
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# ReportType
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Enum
|
|
5
|
+
|
|
6
|
+
* `AuditReady` (value: `'audit_ready'`)
|
|
7
|
+
|
|
8
|
+
* `GapAnalysis` (value: `'gap_analysis'`)
|
|
9
|
+
|
|
10
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/ReportsApi.md
CHANGED
|
@@ -67,7 +67,7 @@ No authorization required
|
|
|
67
67
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
68
68
|
|
|
69
69
|
# **generateReportV1ReportsGeneratePost**
|
|
70
|
-
> ReportGenerate generateReportV1ReportsGeneratePost(
|
|
70
|
+
> ReportGenerate generateReportV1ReportsGeneratePost()
|
|
71
71
|
|
|
72
72
|
|
|
73
73
|
### Example
|
|
@@ -82,15 +82,13 @@ const configuration = new Configuration();
|
|
|
82
82
|
const apiInstance = new ReportsApi(configuration);
|
|
83
83
|
|
|
84
84
|
let companyId: string; // (default to undefined)
|
|
85
|
-
let reportType:
|
|
86
|
-
let requestBody: { [key: string]: any; }; //
|
|
85
|
+
let reportType: ReportType; // (default to undefined)
|
|
87
86
|
let authorization: string; // (optional) (default to undefined)
|
|
88
87
|
let sessionId: string; // (optional) (default to undefined)
|
|
89
88
|
|
|
90
89
|
const { status, data } = await apiInstance.generateReportV1ReportsGeneratePost(
|
|
91
90
|
companyId,
|
|
92
91
|
reportType,
|
|
93
|
-
requestBody,
|
|
94
92
|
authorization,
|
|
95
93
|
sessionId
|
|
96
94
|
);
|
|
@@ -100,9 +98,8 @@ const { status, data } = await apiInstance.generateReportV1ReportsGeneratePost(
|
|
|
100
98
|
|
|
101
99
|
|Name | Type | Description | Notes|
|
|
102
100
|
|------------- | ------------- | ------------- | -------------|
|
|
103
|
-
| **requestBody** | **{ [key: string]: any; }**| | |
|
|
104
101
|
| **companyId** | [**string**] | | defaults to undefined|
|
|
105
|
-
| **reportType** |
|
|
102
|
+
| **reportType** | **ReportType** | | defaults to undefined|
|
|
106
103
|
| **authorization** | [**string**] | | (optional) defaults to undefined|
|
|
107
104
|
| **sessionId** | [**string**] | | (optional) defaults to undefined|
|
|
108
105
|
|
|
@@ -117,7 +114,7 @@ No authorization required
|
|
|
117
114
|
|
|
118
115
|
### HTTP request headers
|
|
119
116
|
|
|
120
|
-
- **Content-Type**:
|
|
117
|
+
- **Content-Type**: Not defined
|
|
121
118
|
- **Accept**: application/json
|
|
122
119
|
|
|
123
120
|
|
package/docs/UserApi.md
CHANGED
|
@@ -291,10 +291,12 @@ import {
|
|
|
291
291
|
const configuration = new Configuration();
|
|
292
292
|
const apiInstance = new UserApi(configuration);
|
|
293
293
|
|
|
294
|
-
let
|
|
294
|
+
let authorization: string; // (optional) (default to undefined)
|
|
295
|
+
let sessionId: string; // (optional) (default to undefined)
|
|
295
296
|
|
|
296
297
|
const { status, data } = await apiInstance.resendOtpByEmailV1UserResendOtpEmailPost(
|
|
297
|
-
|
|
298
|
+
authorization,
|
|
299
|
+
sessionId
|
|
298
300
|
);
|
|
299
301
|
```
|
|
300
302
|
|
|
@@ -302,7 +304,8 @@ const { status, data } = await apiInstance.resendOtpByEmailV1UserResendOtpEmailP
|
|
|
302
304
|
|
|
303
305
|
|Name | Type | Description | Notes|
|
|
304
306
|
|------------- | ------------- | ------------- | -------------|
|
|
305
|
-
| **
|
|
307
|
+
| **authorization** | [**string**] | | (optional) defaults to undefined|
|
|
308
|
+
| **sessionId** | [**string**] | | (optional) defaults to undefined|
|
|
306
309
|
|
|
307
310
|
|
|
308
311
|
### Return type
|
|
@@ -342,12 +345,10 @@ import {
|
|
|
342
345
|
const configuration = new Configuration();
|
|
343
346
|
const apiInstance = new UserApi(configuration);
|
|
344
347
|
|
|
345
|
-
let
|
|
346
|
-
let sessionId: string; // (optional) (default to undefined)
|
|
348
|
+
let email: string; // (default to undefined)
|
|
347
349
|
|
|
348
350
|
const { status, data } = await apiInstance.resendOtpV1UserResendOtpPasswordPost(
|
|
349
|
-
|
|
350
|
-
sessionId
|
|
351
|
+
email
|
|
351
352
|
);
|
|
352
353
|
```
|
|
353
354
|
|
|
@@ -355,8 +356,7 @@ const { status, data } = await apiInstance.resendOtpV1UserResendOtpPasswordPost(
|
|
|
355
356
|
|
|
356
357
|
|Name | Type | Description | Notes|
|
|
357
358
|
|------------- | ------------- | ------------- | -------------|
|
|
358
|
-
| **
|
|
359
|
-
| **sessionId** | [**string**] | | (optional) defaults to undefined|
|
|
359
|
+
| **email** | [**string**] | | defaults to undefined|
|
|
360
360
|
|
|
361
361
|
|
|
362
362
|
### Return type
|
package/package.json
CHANGED
package/sdk.ts
CHANGED
|
@@ -7,7 +7,6 @@ import {
|
|
|
7
7
|
AuditLogsApi,
|
|
8
8
|
EvidenceApi,
|
|
9
9
|
PaymentsApi,
|
|
10
|
-
PoliciesApi,
|
|
11
10
|
RolesApi,
|
|
12
11
|
ReportsApi,
|
|
13
12
|
TasksApi,
|
|
@@ -25,7 +24,6 @@ export class ApiSDK {
|
|
|
25
24
|
private reportsApi: ReportsApi;
|
|
26
25
|
private evidenceApi: EvidenceApi;
|
|
27
26
|
private paymentsApi: PaymentsApi;
|
|
28
|
-
private policiesApi: PoliciesApi;
|
|
29
27
|
private rolesApi: RolesApi;
|
|
30
28
|
private userApi: UserApi;
|
|
31
29
|
private token: string | null = null;
|
|
@@ -53,7 +51,6 @@ export class ApiSDK {
|
|
|
53
51
|
this.auditLogsApi = new AuditLogsApi(config, undefined, this.axiosInstance);
|
|
54
52
|
this.evidenceApi = new EvidenceApi(config, undefined, this.axiosInstance);
|
|
55
53
|
this.paymentsApi = new PaymentsApi(config, undefined, this.axiosInstance);
|
|
56
|
-
this.policiesApi = new PoliciesApi(config, undefined, this.axiosInstance);
|
|
57
54
|
this.reportsApi = new ReportsApi(config, undefined, this.axiosInstance);
|
|
58
55
|
this.rolesApi = new RolesApi(config, undefined, this.axiosInstance);
|
|
59
56
|
this.userApi = new UserApi(config, undefined, this.axiosInstance);
|
|
@@ -101,7 +98,6 @@ export class ApiSDK {
|
|
|
101
98
|
auditLogsApi: this.auditLogsApi,
|
|
102
99
|
evidenceApi: this.evidenceApi,
|
|
103
100
|
paymentsApi: this.paymentsApi,
|
|
104
|
-
policiesApi: this.policiesApi,
|
|
105
101
|
reportsApi: this.reportsApi,
|
|
106
102
|
rolesApi: this.rolesApi,
|
|
107
103
|
userApi: this.userApi,
|