@rasadov/lumoar-sdk 1.0.1 → 1.0.2

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.
@@ -1,16 +1,4 @@
1
- /**
2
- * Lumoar API
3
- * Compliance as a service
4
- *
5
- * The version of the OpenAPI document: 0.1.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import { AxiosResponse } from 'axios';
13
- import { DefaultApi, AuthApi, CompanyApi, ControlsApi, EvidenceApi, PaymentsApi, PoliciesApi, RolesApi, UserApi } from './api';
1
+ import { HealthApi, AuthApi, CompanyApi, ControlsApi, EvidenceApi, PaymentsApi, PoliciesApi, RolesApi, UserApi } from './api';
14
2
  export interface ConfigurationParameters {
15
3
  apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
16
4
  username?: string;
@@ -92,7 +80,7 @@ export declare class Configuration {
92
80
  isJsonMime(mime: string): boolean;
93
81
  }
94
82
  export declare class ApiSDK {
95
- private defaultApi;
83
+ private helthApi;
96
84
  private authApi;
97
85
  private companyApi;
98
86
  private controlsApi;
@@ -108,7 +96,7 @@ export declare class ApiSDK {
108
96
  private getAuthHeader;
109
97
  private setupInterceptors;
110
98
  getApi(): {
111
- defaultApi: DefaultApi;
99
+ helthApi: HealthApi;
112
100
  authApi: AuthApi;
113
101
  companyApi: CompanyApi;
114
102
  controlsApi: ControlsApi;
@@ -117,9 +105,5 @@ export declare class ApiSDK {
117
105
  policiesApi: PoliciesApi;
118
106
  rolesApi: RolesApi;
119
107
  userApi: UserApi;
120
- getRedisHealthHealthRedisGet: () => Promise<AxiosResponse<any, any, {}>>;
121
- getHealthHealthGet: () => Promise<AxiosResponse<any, any, {}>>;
122
- getDbHealthHealthDbGet: () => Promise<AxiosResponse<any, any, {}>>;
123
- getListmonkHealthHealthListmonkGet: () => Promise<AxiosResponse<any, any, {}>>;
124
108
  };
125
109
  }
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import axios from 'axios';
15
- import { DefaultApi, AuthApi, CompanyApi, ControlsApi, EvidenceApi, PaymentsApi, PoliciesApi, RolesApi, UserApi } from './api';
15
+ import { HealthApi, AuthApi, CompanyApi, ControlsApi, EvidenceApi, PaymentsApi, PoliciesApi, RolesApi, UserApi } from './api';
16
16
  export class Configuration {
17
17
  constructor(param = {}) {
18
18
  var _a;
@@ -56,7 +56,7 @@ export class ApiSDK {
56
56
  },
57
57
  });
58
58
  // Create instances of all API classes
59
- this.defaultApi = new DefaultApi(config, undefined, this.axiosInstance);
59
+ this.helthApi = new HealthApi(config, undefined, this.axiosInstance);
60
60
  this.authApi = new AuthApi(config, undefined, this.axiosInstance);
61
61
  this.companyApi = new CompanyApi(config, undefined, this.axiosInstance);
62
62
  this.controlsApi = new ControlsApi(config, undefined, this.axiosInstance);
@@ -105,7 +105,7 @@ export class ApiSDK {
105
105
  // Expose API methods (proxies the generated API)
106
106
  getApi() {
107
107
  return {
108
- defaultApi: this.defaultApi,
108
+ helthApi: this.helthApi,
109
109
  authApi: this.authApi,
110
110
  companyApi: this.companyApi,
111
111
  controlsApi: this.controlsApi,
@@ -114,11 +114,6 @@ export class ApiSDK {
114
114
  policiesApi: this.policiesApi,
115
115
  rolesApi: this.rolesApi,
116
116
  userApi: this.userApi,
117
- // Legacy support - keep the old health check methods accessible
118
- getRedisHealthHealthRedisGet: () => this.defaultApi.getRedisHealthHealthRedisGet(),
119
- getHealthHealthGet: () => this.defaultApi.getHealthHealthGet(),
120
- getDbHealthHealthDbGet: () => this.defaultApi.getDbHealthHealthDbGet(),
121
- getListmonkHealthHealthListmonkGet: () => this.defaultApi.getListmonkHealthHealthListmonkGet(),
122
117
  };
123
118
  }
124
119
  }
package/docs/AuthApi.md CHANGED
@@ -175,7 +175,7 @@ No authorization required
175
175
  [[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)
176
176
 
177
177
  # **githubCallbackV1AuthGithubCallbackPost**
178
- > any githubCallbackV1AuthGithubCallbackPost()
178
+ > AuthenticationSuccess githubCallbackV1AuthGithubCallbackPost()
179
179
 
180
180
  Handles the callback from GitHub OAuth.
181
181
 
@@ -215,7 +215,7 @@ const { status, data } = await apiInstance.githubCallbackV1AuthGithubCallbackPos
215
215
 
216
216
  ### Return type
217
217
 
218
- **any**
218
+ **AuthenticationSuccess**
219
219
 
220
220
  ### Authorization
221
221
 
@@ -280,7 +280,7 @@ No authorization required
280
280
  [[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)
281
281
 
282
282
  # **googleCallbackV1AuthGoogleCallbackPost**
283
- > any googleCallbackV1AuthGoogleCallbackPost()
283
+ > AuthenticationSuccess googleCallbackV1AuthGoogleCallbackPost()
284
284
 
285
285
  Handles the callback from Google OAuth.
286
286
 
@@ -320,7 +320,7 @@ const { status, data } = await apiInstance.googleCallbackV1AuthGoogleCallbackPos
320
320
 
321
321
  ### Return type
322
322
 
323
- **any**
323
+ **AuthenticationSuccess**
324
324
 
325
325
  ### Authorization
326
326
 
@@ -85,13 +85,13 @@ const configuration = new Configuration();
85
85
  const apiInstance = new CompanyApi(configuration);
86
86
 
87
87
  let page: number; // (optional) (default to 1)
88
- let limit: number; // (optional) (default to 10)
88
+ let elements: number; // (optional) (default to 10)
89
89
  let authorization: string; // (optional) (default to undefined)
90
90
  let sessionId: string; // (optional) (default to undefined)
91
91
 
92
92
  const { status, data } = await apiInstance.getCompaniesV1CompanyListGet(
93
93
  page,
94
- limit,
94
+ elements,
95
95
  authorization,
96
96
  sessionId
97
97
  );
@@ -102,7 +102,7 @@ const { status, data } = await apiInstance.getCompaniesV1CompanyListGet(
102
102
  |Name | Type | Description | Notes|
103
103
  |------------- | ------------- | ------------- | -------------|
104
104
  | **page** | [**number**] | | (optional) defaults to 1|
105
- | **limit** | [**number**] | | (optional) defaults to 10|
105
+ | **elements** | [**number**] | | (optional) defaults to 10|
106
106
  | **authorization** | [**string**] | | (optional) defaults to undefined|
107
107
  | **sessionId** | [**string**] | | (optional) defaults to undefined|
108
108
 
@@ -259,13 +259,13 @@ const configuration = new Configuration();
259
259
  const apiInstance = new CompanyApi(configuration);
260
260
 
261
261
  let page: number; // (optional) (default to 1)
262
- let limit: number; // (optional) (default to 10)
262
+ let elements: number; // (optional) (default to 10)
263
263
  let authorization: string; // (optional) (default to undefined)
264
264
  let sessionId: string; // (optional) (default to undefined)
265
265
 
266
266
  const { status, data } = await apiInstance.getPoliciesV1CompanyPoliciesGet(
267
267
  page,
268
- limit,
268
+ elements,
269
269
  authorization,
270
270
  sessionId
271
271
  );
@@ -276,7 +276,7 @@ const { status, data } = await apiInstance.getPoliciesV1CompanyPoliciesGet(
276
276
  |Name | Type | Description | Notes|
277
277
  |------------- | ------------- | ------------- | -------------|
278
278
  | **page** | [**number**] | | (optional) defaults to 1|
279
- | **limit** | [**number**] | | (optional) defaults to 10|
279
+ | **elements** | [**number**] | | (optional) defaults to 10|
280
280
  | **authorization** | [**string**] | | (optional) defaults to undefined|
281
281
  | **sessionId** | [**string**] | | (optional) defaults to undefined|
282
282
 
@@ -0,0 +1,183 @@
1
+ # HealthApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**getDbHealthHealthDbGet**](#getdbhealthhealthdbget) | **GET** /health/db | Get Db Health|
8
+ |[**getHealthHealthGet**](#gethealthhealthget) | **GET** /health | Get Health|
9
+ |[**getListmonkHealthHealthListmonkGet**](#getlistmonkhealthhealthlistmonkget) | **GET** /health/listmonk | Get Listmonk Health|
10
+ |[**getRedisHealthHealthRedisGet**](#getredishealthhealthredisget) | **GET** /health/redis | Get Redis Health|
11
+
12
+ # **getDbHealthHealthDbGet**
13
+ > any getDbHealthHealthDbGet()
14
+
15
+
16
+ ### Example
17
+
18
+ ```typescript
19
+ import {
20
+ HealthApi,
21
+ Configuration
22
+ } from './api';
23
+
24
+ const configuration = new Configuration();
25
+ const apiInstance = new HealthApi(configuration);
26
+
27
+ const { status, data } = await apiInstance.getDbHealthHealthDbGet();
28
+ ```
29
+
30
+ ### Parameters
31
+ This endpoint does not have any parameters.
32
+
33
+
34
+ ### Return type
35
+
36
+ **any**
37
+
38
+ ### Authorization
39
+
40
+ No authorization required
41
+
42
+ ### HTTP request headers
43
+
44
+ - **Content-Type**: Not defined
45
+ - **Accept**: application/json
46
+
47
+
48
+ ### HTTP response details
49
+ | Status code | Description | Response headers |
50
+ |-------------|-------------|------------------|
51
+ |**200** | Successful Response | - |
52
+
53
+ [[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)
54
+
55
+ # **getHealthHealthGet**
56
+ > any getHealthHealthGet()
57
+
58
+
59
+ ### Example
60
+
61
+ ```typescript
62
+ import {
63
+ HealthApi,
64
+ Configuration
65
+ } from './api';
66
+
67
+ const configuration = new Configuration();
68
+ const apiInstance = new HealthApi(configuration);
69
+
70
+ const { status, data } = await apiInstance.getHealthHealthGet();
71
+ ```
72
+
73
+ ### Parameters
74
+ This endpoint does not have any parameters.
75
+
76
+
77
+ ### Return type
78
+
79
+ **any**
80
+
81
+ ### Authorization
82
+
83
+ No authorization required
84
+
85
+ ### HTTP request headers
86
+
87
+ - **Content-Type**: Not defined
88
+ - **Accept**: application/json
89
+
90
+
91
+ ### HTTP response details
92
+ | Status code | Description | Response headers |
93
+ |-------------|-------------|------------------|
94
+ |**200** | Successful Response | - |
95
+
96
+ [[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)
97
+
98
+ # **getListmonkHealthHealthListmonkGet**
99
+ > any getListmonkHealthHealthListmonkGet()
100
+
101
+
102
+ ### Example
103
+
104
+ ```typescript
105
+ import {
106
+ HealthApi,
107
+ Configuration
108
+ } from './api';
109
+
110
+ const configuration = new Configuration();
111
+ const apiInstance = new HealthApi(configuration);
112
+
113
+ const { status, data } = await apiInstance.getListmonkHealthHealthListmonkGet();
114
+ ```
115
+
116
+ ### Parameters
117
+ This endpoint does not have any parameters.
118
+
119
+
120
+ ### Return type
121
+
122
+ **any**
123
+
124
+ ### Authorization
125
+
126
+ No authorization required
127
+
128
+ ### HTTP request headers
129
+
130
+ - **Content-Type**: Not defined
131
+ - **Accept**: application/json
132
+
133
+
134
+ ### HTTP response details
135
+ | Status code | Description | Response headers |
136
+ |-------------|-------------|------------------|
137
+ |**200** | Successful Response | - |
138
+
139
+ [[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)
140
+
141
+ # **getRedisHealthHealthRedisGet**
142
+ > any getRedisHealthHealthRedisGet()
143
+
144
+
145
+ ### Example
146
+
147
+ ```typescript
148
+ import {
149
+ HealthApi,
150
+ Configuration
151
+ } from './api';
152
+
153
+ const configuration = new Configuration();
154
+ const apiInstance = new HealthApi(configuration);
155
+
156
+ const { status, data } = await apiInstance.getRedisHealthHealthRedisGet();
157
+ ```
158
+
159
+ ### Parameters
160
+ This endpoint does not have any parameters.
161
+
162
+
163
+ ### Return type
164
+
165
+ **any**
166
+
167
+ ### Authorization
168
+
169
+ No authorization required
170
+
171
+ ### HTTP request headers
172
+
173
+ - **Content-Type**: Not defined
174
+ - **Accept**: application/json
175
+
176
+
177
+ ### HTTP response details
178
+ | Status code | Description | Response headers |
179
+ |-------------|-------------|------------------|
180
+ |**200** | Successful Response | - |
181
+
182
+ [[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)
183
+
@@ -9,7 +9,7 @@ All URIs are relative to *http://localhost*
9
9
  |[**webhookPaymentsWebhookPost**](#webhookpaymentswebhookpost) | **POST** /payments/webhook | Webhook|
10
10
 
11
11
  # **getCheckoutSessionPaymentsCheckoutGet**
12
- > ResponseGetCheckoutSessionPaymentsCheckoutGet getCheckoutSessionPaymentsCheckoutGet()
12
+ > CheckoutSessionResponse getCheckoutSessionPaymentsCheckoutGet()
13
13
 
14
14
 
15
15
  ### Example
@@ -23,14 +23,16 @@ import {
23
23
  const configuration = new Configuration();
24
24
  const apiInstance = new PaymentsApi(configuration);
25
25
 
26
- let userId: string; // (default to undefined)
27
26
  let companyId: string; // (default to undefined)
28
27
  let productId: string; // (default to undefined)
28
+ let authorization: string; // (optional) (default to undefined)
29
+ let sessionId: string; // (optional) (default to undefined)
29
30
 
30
31
  const { status, data } = await apiInstance.getCheckoutSessionPaymentsCheckoutGet(
31
- userId,
32
32
  companyId,
33
- productId
33
+ productId,
34
+ authorization,
35
+ sessionId
34
36
  );
35
37
  ```
36
38
 
@@ -38,14 +40,15 @@ const { status, data } = await apiInstance.getCheckoutSessionPaymentsCheckoutGet
38
40
 
39
41
  |Name | Type | Description | Notes|
40
42
  |------------- | ------------- | ------------- | -------------|
41
- | **userId** | [**string**] | | defaults to undefined|
42
43
  | **companyId** | [**string**] | | defaults to undefined|
43
44
  | **productId** | [**string**] | | defaults to undefined|
45
+ | **authorization** | [**string**] | | (optional) defaults to undefined|
46
+ | **sessionId** | [**string**] | | (optional) defaults to undefined|
44
47
 
45
48
 
46
49
  ### Return type
47
50
 
48
- **ResponseGetCheckoutSessionPaymentsCheckoutGet**
51
+ **CheckoutSessionResponse**
49
52
 
50
53
  ### Authorization
51
54
 
@@ -141,15 +141,15 @@ const configuration = new Configuration();
141
141
  const apiInstance = new PoliciesApi(configuration);
142
142
 
143
143
  let companyId: string; // (default to undefined)
144
- let skip: number; //Number of records to skip for pagination (optional) (default to 0)
145
- let limit: number; //Maximum number of records to return (optional) (default to 100)
144
+ let page: number; // (optional) (default to 1)
145
+ let elements: number; // (optional) (default to 100)
146
146
  let authorization: string; // (optional) (default to undefined)
147
147
  let sessionId: string; // (optional) (default to undefined)
148
148
 
149
149
  const { status, data } = await apiInstance.getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(
150
150
  companyId,
151
- skip,
152
- limit,
151
+ page,
152
+ elements,
153
153
  authorization,
154
154
  sessionId
155
155
  );
@@ -160,8 +160,8 @@ const { status, data } = await apiInstance.getCompanyPoliciesV1PoliciesCompanyCo
160
160
  |Name | Type | Description | Notes|
161
161
  |------------- | ------------- | ------------- | -------------|
162
162
  | **companyId** | [**string**] | | defaults to undefined|
163
- | **skip** | [**number**] | Number of records to skip for pagination | (optional) defaults to 0|
164
- | **limit** | [**number**] | Maximum number of records to return | (optional) defaults to 100|
163
+ | **page** | [**number**] | | (optional) defaults to 1|
164
+ | **elements** | [**number**] | | (optional) defaults to 100|
165
165
  | **authorization** | [**string**] | | (optional) defaults to undefined|
166
166
  | **sessionId** | [**string**] | | (optional) defaults to undefined|
167
167
 
package/package.json CHANGED
@@ -4,9 +4,9 @@
4
4
  "openapi-generator-cli": "^1.0.0"
5
5
  },
6
6
  "name": "@rasadov/lumoar-sdk",
7
- "version": "1.0.1",
7
+ "version": "1.0.2",
8
8
  "description": "Lumoar API SDK",
9
- "main": "index.js",
9
+ "main": "dist/index.js",
10
10
  "directories": {
11
11
  "doc": "docs"
12
12
  },
@@ -24,7 +24,12 @@
24
24
  "type": "git",
25
25
  "url": "https://github.com/rasadov/lumoar-sdk.git"
26
26
  },
27
- "keywords": ["api", "sdk", "lumoar", "typescript"],
27
+ "keywords": [
28
+ "api",
29
+ "sdk",
30
+ "lumoar",
31
+ "typescript"
32
+ ],
28
33
  "publishConfig": {
29
34
  "access": "public"
30
35
  },