@rasadov/lumoar 2.0.0 → 2.0.5

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/dist/api.d.ts CHANGED
@@ -1596,7 +1596,7 @@ export interface CreateTaskSchema {
1596
1596
  * @type {string}
1597
1597
  * @memberof CreateTaskSchema
1598
1598
  */
1599
- 'assigned_to_id': string;
1599
+ 'assigned_to_id'?: string | null;
1600
1600
  /**
1601
1601
  *
1602
1602
  * @type {string}
@@ -3136,12 +3136,6 @@ export interface ResetPasswordSchema {
3136
3136
  * @memberof ResetPasswordSchema
3137
3137
  */
3138
3138
  'new_password': string;
3139
- /**
3140
- *
3141
- * @type {string}
3142
- * @memberof ResetPasswordSchema
3143
- */
3144
- 'turnstile_token': string;
3145
3139
  }
3146
3140
  /**
3147
3141
  *
package/dist/index.d.ts CHANGED
@@ -11,3 +11,4 @@
11
11
  */
12
12
  export * from "./api";
13
13
  export * from "./configuration";
14
+ export * from "./sdk";
package/dist/index.js CHANGED
@@ -13,3 +13,4 @@
13
13
  */
14
14
  export * from "./api";
15
15
  export * from "./configuration";
16
+ export * from "./sdk";
package/dist/sdk.d.ts ADDED
@@ -0,0 +1,49 @@
1
+ import { APIKeysApi, AssetsApi, AuditLogsApi, AuthApi, CompanyApi, ControlsApi, EvidenceApi, FrameworksApi, HealthApi, IntegrationsApi, PaymentsApi, ReportsApi, RisksApi, RolesApi, TasksApi, UserApi, V2Api, VendorContactsApi, VendorDocumentsApi, VendorRiskAssessmentsApi, VendorsApi } from './api';
2
+ export declare class ApiSDK {
3
+ private aPIKeysApi;
4
+ private assetsApi;
5
+ private auditLogsApi;
6
+ private authApi;
7
+ private companyApi;
8
+ private controlsApi;
9
+ private evidenceApi;
10
+ private frameworksApi;
11
+ private healthApi;
12
+ private integrationsApi;
13
+ private paymentsApi;
14
+ private reportsApi;
15
+ private risksApi;
16
+ private rolesApi;
17
+ private tasksApi;
18
+ private userApi;
19
+ private v2Api;
20
+ private vendorContactsApi;
21
+ private vendorDocumentsApi;
22
+ private vendorRiskAssessmentsApi;
23
+ private vendorsApi;
24
+ private axiosInstance;
25
+ constructor(basePath?: string, apiKey?: string);
26
+ getApi(): {
27
+ aPIKeysApi: APIKeysApi;
28
+ assetsApi: AssetsApi;
29
+ auditLogsApi: AuditLogsApi;
30
+ authApi: AuthApi;
31
+ companyApi: CompanyApi;
32
+ controlsApi: ControlsApi;
33
+ evidenceApi: EvidenceApi;
34
+ frameworksApi: FrameworksApi;
35
+ healthApi: HealthApi;
36
+ integrationsApi: IntegrationsApi;
37
+ paymentsApi: PaymentsApi;
38
+ reportsApi: ReportsApi;
39
+ risksApi: RisksApi;
40
+ rolesApi: RolesApi;
41
+ tasksApi: TasksApi;
42
+ userApi: UserApi;
43
+ v2Api: V2Api;
44
+ vendorContactsApi: VendorContactsApi;
45
+ vendorDocumentsApi: VendorDocumentsApi;
46
+ vendorRiskAssessmentsApi: VendorRiskAssessmentsApi;
47
+ vendorsApi: VendorsApi;
48
+ };
49
+ }
package/dist/sdk.js ADDED
@@ -0,0 +1,64 @@
1
+ import axios from 'axios';
2
+ import { APIKeysApi, AssetsApi, AuditLogsApi, AuthApi, CompanyApi, ControlsApi, EvidenceApi, FrameworksApi, HealthApi, IntegrationsApi, PaymentsApi, ReportsApi, RisksApi, RolesApi, TasksApi, UserApi, V2Api, VendorContactsApi, VendorDocumentsApi, VendorRiskAssessmentsApi, VendorsApi } from './api';
3
+ import { Configuration } from './configuration';
4
+ export class ApiSDK {
5
+ constructor(basePath, apiKey) {
6
+ this.axiosInstance = axios.create({
7
+ baseURL: basePath,
8
+ withCredentials: false
9
+ });
10
+ const config = new Configuration({
11
+ basePath,
12
+ apiKey: apiKey ? () => apiKey : undefined,
13
+ baseOptions: {
14
+ axios: this.axiosInstance
15
+ },
16
+ });
17
+ this.aPIKeysApi = new APIKeysApi(config, undefined, this.axiosInstance);
18
+ this.assetsApi = new AssetsApi(config, undefined, this.axiosInstance);
19
+ this.auditLogsApi = new AuditLogsApi(config, undefined, this.axiosInstance);
20
+ this.authApi = new AuthApi(config, undefined, this.axiosInstance);
21
+ this.companyApi = new CompanyApi(config, undefined, this.axiosInstance);
22
+ this.controlsApi = new ControlsApi(config, undefined, this.axiosInstance);
23
+ this.evidenceApi = new EvidenceApi(config, undefined, this.axiosInstance);
24
+ this.frameworksApi = new FrameworksApi(config, undefined, this.axiosInstance);
25
+ this.healthApi = new HealthApi(config, undefined, this.axiosInstance);
26
+ this.integrationsApi = new IntegrationsApi(config, undefined, this.axiosInstance);
27
+ this.paymentsApi = new PaymentsApi(config, undefined, this.axiosInstance);
28
+ this.reportsApi = new ReportsApi(config, undefined, this.axiosInstance);
29
+ this.risksApi = new RisksApi(config, undefined, this.axiosInstance);
30
+ this.rolesApi = new RolesApi(config, undefined, this.axiosInstance);
31
+ this.tasksApi = new TasksApi(config, undefined, this.axiosInstance);
32
+ this.userApi = new UserApi(config, undefined, this.axiosInstance);
33
+ this.v2Api = new V2Api(config, undefined, this.axiosInstance);
34
+ this.vendorContactsApi = new VendorContactsApi(config, undefined, this.axiosInstance);
35
+ this.vendorDocumentsApi = new VendorDocumentsApi(config, undefined, this.axiosInstance);
36
+ this.vendorRiskAssessmentsApi = new VendorRiskAssessmentsApi(config, undefined, this.axiosInstance);
37
+ this.vendorsApi = new VendorsApi(config, undefined, this.axiosInstance);
38
+ }
39
+ getApi() {
40
+ return {
41
+ aPIKeysApi: this.aPIKeysApi,
42
+ assetsApi: this.assetsApi,
43
+ auditLogsApi: this.auditLogsApi,
44
+ authApi: this.authApi,
45
+ companyApi: this.companyApi,
46
+ controlsApi: this.controlsApi,
47
+ evidenceApi: this.evidenceApi,
48
+ frameworksApi: this.frameworksApi,
49
+ healthApi: this.healthApi,
50
+ integrationsApi: this.integrationsApi,
51
+ paymentsApi: this.paymentsApi,
52
+ reportsApi: this.reportsApi,
53
+ risksApi: this.risksApi,
54
+ rolesApi: this.rolesApi,
55
+ tasksApi: this.tasksApi,
56
+ userApi: this.userApi,
57
+ v2Api: this.v2Api,
58
+ vendorContactsApi: this.vendorContactsApi,
59
+ vendorDocumentsApi: this.vendorDocumentsApi,
60
+ vendorRiskAssessmentsApi: this.vendorRiskAssessmentsApi,
61
+ vendorsApi: this.vendorsApi,
62
+ };
63
+ }
64
+ }
package/package.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "@rasadov/lumoar",
3
- "version": "2.0.0",
3
+ "version": "2.0.5",
4
4
  "description": "Lumoar API SDK for public use (API key authentication)",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "files": [
8
8
  "dist",
9
9
  "openapi.json",
10
- "README.md"
10
+ "README.md",
11
+ "sdk.ts"
11
12
  ],
12
13
  "scripts": {
13
14
  "build": "tsc",
@@ -36,4 +37,4 @@
36
37
  "@types/node": "^24.5.2",
37
38
  "typescript": "^5.9.2"
38
39
  }
39
- }
40
+ }
package/sdk.ts ADDED
@@ -0,0 +1,113 @@
1
+ import axios, { AxiosInstance, AxiosResponse } from 'axios';
2
+ import {
3
+ APIKeysApi,
4
+ AssetsApi,
5
+ AuditLogsApi,
6
+ AuthApi,
7
+ CompanyApi,
8
+ ControlsApi,
9
+ EvidenceApi,
10
+ FrameworksApi,
11
+ HealthApi,
12
+ IntegrationsApi,
13
+ PaymentsApi,
14
+ ReportsApi,
15
+ RisksApi,
16
+ RolesApi,
17
+ TasksApi,
18
+ UserApi,
19
+ V2Api,
20
+ VendorContactsApi,
21
+ VendorDocumentsApi,
22
+ VendorRiskAssessmentsApi,
23
+ VendorsApi
24
+ } from './api';
25
+ import { Configuration } from './configuration';
26
+
27
+ export class ApiSDK {
28
+ private aPIKeysApi: APIKeysApi;
29
+ private assetsApi: AssetsApi;
30
+ private auditLogsApi: AuditLogsApi;
31
+ private authApi: AuthApi;
32
+ private companyApi: CompanyApi;
33
+ private controlsApi: ControlsApi;
34
+ private evidenceApi: EvidenceApi;
35
+ private frameworksApi: FrameworksApi;
36
+ private healthApi: HealthApi;
37
+ private integrationsApi: IntegrationsApi;
38
+ private paymentsApi: PaymentsApi;
39
+ private reportsApi: ReportsApi;
40
+ private risksApi: RisksApi;
41
+ private rolesApi: RolesApi;
42
+ private tasksApi: TasksApi;
43
+ private userApi: UserApi;
44
+ private v2Api: V2Api;
45
+ private vendorContactsApi: VendorContactsApi;
46
+ private vendorDocumentsApi: VendorDocumentsApi;
47
+ private vendorRiskAssessmentsApi: VendorRiskAssessmentsApi;
48
+ private vendorsApi: VendorsApi;
49
+ private axiosInstance: AxiosInstance;
50
+
51
+ constructor(basePath?: string, apiKey?: string) {
52
+ this.axiosInstance = axios.create({
53
+ baseURL: basePath,
54
+ withCredentials: false
55
+ });
56
+
57
+ const config = new Configuration({
58
+ basePath,
59
+ apiKey: apiKey ? () => apiKey : undefined,
60
+ baseOptions: {
61
+ axios: this.axiosInstance
62
+ },
63
+ });
64
+
65
+ this.aPIKeysApi = new APIKeysApi(config, undefined, this.axiosInstance);
66
+ this.assetsApi = new AssetsApi(config, undefined, this.axiosInstance);
67
+ this.auditLogsApi = new AuditLogsApi(config, undefined, this.axiosInstance);
68
+ this.authApi = new AuthApi(config, undefined, this.axiosInstance);
69
+ this.companyApi = new CompanyApi(config, undefined, this.axiosInstance);
70
+ this.controlsApi = new ControlsApi(config, undefined, this.axiosInstance);
71
+ this.evidenceApi = new EvidenceApi(config, undefined, this.axiosInstance);
72
+ this.frameworksApi = new FrameworksApi(config, undefined, this.axiosInstance);
73
+ this.healthApi = new HealthApi(config, undefined, this.axiosInstance);
74
+ this.integrationsApi = new IntegrationsApi(config, undefined, this.axiosInstance);
75
+ this.paymentsApi = new PaymentsApi(config, undefined, this.axiosInstance);
76
+ this.reportsApi = new ReportsApi(config, undefined, this.axiosInstance);
77
+ this.risksApi = new RisksApi(config, undefined, this.axiosInstance);
78
+ this.rolesApi = new RolesApi(config, undefined, this.axiosInstance);
79
+ this.tasksApi = new TasksApi(config, undefined, this.axiosInstance);
80
+ this.userApi = new UserApi(config, undefined, this.axiosInstance);
81
+ this.v2Api = new V2Api(config, undefined, this.axiosInstance);
82
+ this.vendorContactsApi = new VendorContactsApi(config, undefined, this.axiosInstance);
83
+ this.vendorDocumentsApi = new VendorDocumentsApi(config, undefined, this.axiosInstance);
84
+ this.vendorRiskAssessmentsApi = new VendorRiskAssessmentsApi(config, undefined, this.axiosInstance);
85
+ this.vendorsApi = new VendorsApi(config, undefined, this.axiosInstance);
86
+ }
87
+
88
+ public getApi() {
89
+ return {
90
+ aPIKeysApi: this.aPIKeysApi,
91
+ assetsApi: this.assetsApi,
92
+ auditLogsApi: this.auditLogsApi,
93
+ authApi: this.authApi,
94
+ companyApi: this.companyApi,
95
+ controlsApi: this.controlsApi,
96
+ evidenceApi: this.evidenceApi,
97
+ frameworksApi: this.frameworksApi,
98
+ healthApi: this.healthApi,
99
+ integrationsApi: this.integrationsApi,
100
+ paymentsApi: this.paymentsApi,
101
+ reportsApi: this.reportsApi,
102
+ risksApi: this.risksApi,
103
+ rolesApi: this.rolesApi,
104
+ tasksApi: this.tasksApi,
105
+ userApi: this.userApi,
106
+ v2Api: this.v2Api,
107
+ vendorContactsApi: this.vendorContactsApi,
108
+ vendorDocumentsApi: this.vendorDocumentsApi,
109
+ vendorRiskAssessmentsApi: this.vendorRiskAssessmentsApi,
110
+ vendorsApi: this.vendorsApi,
111
+ };
112
+ }
113
+ }