@rasadov/lumoar-sdk 1.0.1
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 +60 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/api.ts +5133 -0
- package/base.ts +86 -0
- package/common.ts +150 -0
- package/configuration.ts +228 -0
- package/dist/api.d.ts +3329 -0
- package/dist/api.js +3498 -0
- package/dist/base.d.ts +66 -0
- package/dist/base.js +60 -0
- package/dist/common.d.ts +65 -0
- package/dist/common.js +149 -0
- package/dist/configuration.d.ts +125 -0
- package/dist/configuration.js +124 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +15 -0
- package/docs/AuthApi.md +560 -0
- package/docs/AuthenticationSuccess.md +25 -0
- package/docs/CheckoutSessionResponse.md +22 -0
- package/docs/CompanyApi.md +363 -0
- package/docs/CompanyCreate.md +44 -0
- package/docs/CompanyInDBBase.md +48 -0
- package/docs/CompanyUpdate.md +42 -0
- package/docs/CompanyWithControls.md +50 -0
- package/docs/CompanyWithRoles.md +50 -0
- package/docs/ComplianceGoal.md +8 -0
- package/docs/ControlStatus.md +18 -0
- package/docs/ControlWithEvidences.md +30 -0
- package/docs/ControlWithRelationships.md +32 -0
- package/docs/ControlsApi.md +124 -0
- package/docs/CustomerDoesNotExist.md +20 -0
- package/docs/CustomerPortalSession.md +20 -0
- package/docs/DefaultApi.md +183 -0
- package/docs/Details.md +20 -0
- package/docs/EvidenceApi.md +309 -0
- package/docs/EvidenceBase.md +40 -0
- package/docs/EvidenceFileSchema.md +32 -0
- package/docs/EvidenceTextSchema.md +24 -0
- package/docs/FileDownload.md +26 -0
- package/docs/FrameworkControlsBase.md +26 -0
- package/docs/GetControl.md +22 -0
- package/docs/HTTPValidationError.md +20 -0
- package/docs/InviteToCompany.md +24 -0
- package/docs/LoginSchema.md +25 -0
- package/docs/PaymentsApi.md +164 -0
- package/docs/PermissionType.md +14 -0
- package/docs/PoliciesApi.md +302 -0
- package/docs/PolicyCreate.md +26 -0
- package/docs/PolicyRead.md +32 -0
- package/docs/PolicyUpdate.md +24 -0
- package/docs/RegisterSchema.md +31 -0
- package/docs/RemoveFromCompany.md +22 -0
- package/docs/ResponseGetCheckoutSessionPaymentsCheckoutGet.md +24 -0
- package/docs/ResponseGetCustomerManagementSessionPaymentsCustomerManagementGet.md +22 -0
- package/docs/RolesApi.md +127 -0
- package/docs/RolesWithUser.md +22 -0
- package/docs/UpdateControlSchema.md +24 -0
- package/docs/UpdatePassword.md +22 -0
- package/docs/UserApi.md +280 -0
- package/docs/UserBase.md +24 -0
- package/docs/UserInDBBase.md +30 -0
- package/docs/UserPermissionsWithCompany.md +22 -0
- package/docs/UserRole.md +20 -0
- package/docs/UserUpdate.md +24 -0
- package/docs/UserWithRelations.md +28 -0
- package/docs/ValidationError.md +24 -0
- package/docs/ValidationErrorLocInner.md +18 -0
- package/git_push.sh +57 -0
- package/index.ts +18 -0
- package/openapitools.json +7 -0
- package/package.json +33 -0
- package/tsconfig.json +14 -0
package/docs/UserApi.md
ADDED
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
# UserApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**changePasswordV1UserPasswordChangePatch**](#changepasswordv1userpasswordchangepatch) | **PATCH** /v1/user/password/change | Change Password|
|
|
8
|
+
|[**deleteUserV1UserDeleteDelete**](#deleteuserv1userdeletedelete) | **DELETE** /v1/user/delete | Delete User|
|
|
9
|
+
|[**getUserDashV1UserMeDashGet**](#getuserdashv1usermedashget) | **GET** /v1/user/me/dash | Get User Dash|
|
|
10
|
+
|[**getUserV1UserMeGet**](#getuserv1usermeget) | **GET** /v1/user/me | Get User|
|
|
11
|
+
|[**updateUserV1UserUpdatePatch**](#updateuserv1userupdatepatch) | **PATCH** /v1/user/update | Update User|
|
|
12
|
+
|
|
13
|
+
# **changePasswordV1UserPasswordChangePatch**
|
|
14
|
+
> Details changePasswordV1UserPasswordChangePatch(updatePassword)
|
|
15
|
+
|
|
16
|
+
Change user password
|
|
17
|
+
|
|
18
|
+
### Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import {
|
|
22
|
+
UserApi,
|
|
23
|
+
Configuration,
|
|
24
|
+
UpdatePassword
|
|
25
|
+
} from './api';
|
|
26
|
+
|
|
27
|
+
const configuration = new Configuration();
|
|
28
|
+
const apiInstance = new UserApi(configuration);
|
|
29
|
+
|
|
30
|
+
let updatePassword: UpdatePassword; //
|
|
31
|
+
let sessionId: string; // (optional) (default to undefined)
|
|
32
|
+
|
|
33
|
+
const { status, data } = await apiInstance.changePasswordV1UserPasswordChangePatch(
|
|
34
|
+
updatePassword,
|
|
35
|
+
sessionId
|
|
36
|
+
);
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### Parameters
|
|
40
|
+
|
|
41
|
+
|Name | Type | Description | Notes|
|
|
42
|
+
|------------- | ------------- | ------------- | -------------|
|
|
43
|
+
| **updatePassword** | **UpdatePassword**| | |
|
|
44
|
+
| **sessionId** | [**string**] | | (optional) defaults to undefined|
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
### Return type
|
|
48
|
+
|
|
49
|
+
**Details**
|
|
50
|
+
|
|
51
|
+
### Authorization
|
|
52
|
+
|
|
53
|
+
No authorization required
|
|
54
|
+
|
|
55
|
+
### HTTP request headers
|
|
56
|
+
|
|
57
|
+
- **Content-Type**: application/json
|
|
58
|
+
- **Accept**: application/json
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
### HTTP response details
|
|
62
|
+
| Status code | Description | Response headers |
|
|
63
|
+
|-------------|-------------|------------------|
|
|
64
|
+
|**200** | Successful Response | - |
|
|
65
|
+
|**422** | Validation Error | - |
|
|
66
|
+
|
|
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
|
+
|
|
69
|
+
# **deleteUserV1UserDeleteDelete**
|
|
70
|
+
> Details deleteUserV1UserDeleteDelete()
|
|
71
|
+
|
|
72
|
+
Delete user
|
|
73
|
+
|
|
74
|
+
### Example
|
|
75
|
+
|
|
76
|
+
```typescript
|
|
77
|
+
import {
|
|
78
|
+
UserApi,
|
|
79
|
+
Configuration
|
|
80
|
+
} from './api';
|
|
81
|
+
|
|
82
|
+
const configuration = new Configuration();
|
|
83
|
+
const apiInstance = new UserApi(configuration);
|
|
84
|
+
|
|
85
|
+
let sessionId: string; // (optional) (default to undefined)
|
|
86
|
+
|
|
87
|
+
const { status, data } = await apiInstance.deleteUserV1UserDeleteDelete(
|
|
88
|
+
sessionId
|
|
89
|
+
);
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
### Parameters
|
|
93
|
+
|
|
94
|
+
|Name | Type | Description | Notes|
|
|
95
|
+
|------------- | ------------- | ------------- | -------------|
|
|
96
|
+
| **sessionId** | [**string**] | | (optional) defaults to undefined|
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
### Return type
|
|
100
|
+
|
|
101
|
+
**Details**
|
|
102
|
+
|
|
103
|
+
### Authorization
|
|
104
|
+
|
|
105
|
+
No authorization required
|
|
106
|
+
|
|
107
|
+
### HTTP request headers
|
|
108
|
+
|
|
109
|
+
- **Content-Type**: Not defined
|
|
110
|
+
- **Accept**: application/json
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
### HTTP response details
|
|
114
|
+
| Status code | Description | Response headers |
|
|
115
|
+
|-------------|-------------|------------------|
|
|
116
|
+
|**200** | Successful Response | - |
|
|
117
|
+
|**422** | Validation Error | - |
|
|
118
|
+
|
|
119
|
+
[[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)
|
|
120
|
+
|
|
121
|
+
# **getUserDashV1UserMeDashGet**
|
|
122
|
+
> UserWithRelations getUserDashV1UserMeDashGet()
|
|
123
|
+
|
|
124
|
+
Get current user with relations
|
|
125
|
+
|
|
126
|
+
### Example
|
|
127
|
+
|
|
128
|
+
```typescript
|
|
129
|
+
import {
|
|
130
|
+
UserApi,
|
|
131
|
+
Configuration
|
|
132
|
+
} from './api';
|
|
133
|
+
|
|
134
|
+
const configuration = new Configuration();
|
|
135
|
+
const apiInstance = new UserApi(configuration);
|
|
136
|
+
|
|
137
|
+
let sessionId: string; // (optional) (default to undefined)
|
|
138
|
+
|
|
139
|
+
const { status, data } = await apiInstance.getUserDashV1UserMeDashGet(
|
|
140
|
+
sessionId
|
|
141
|
+
);
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
### Parameters
|
|
145
|
+
|
|
146
|
+
|Name | Type | Description | Notes|
|
|
147
|
+
|------------- | ------------- | ------------- | -------------|
|
|
148
|
+
| **sessionId** | [**string**] | | (optional) defaults to undefined|
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
### Return type
|
|
152
|
+
|
|
153
|
+
**UserWithRelations**
|
|
154
|
+
|
|
155
|
+
### Authorization
|
|
156
|
+
|
|
157
|
+
No authorization required
|
|
158
|
+
|
|
159
|
+
### HTTP request headers
|
|
160
|
+
|
|
161
|
+
- **Content-Type**: Not defined
|
|
162
|
+
- **Accept**: application/json
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
### HTTP response details
|
|
166
|
+
| Status code | Description | Response headers |
|
|
167
|
+
|-------------|-------------|------------------|
|
|
168
|
+
|**200** | Successful Response | - |
|
|
169
|
+
|**422** | Validation Error | - |
|
|
170
|
+
|
|
171
|
+
[[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)
|
|
172
|
+
|
|
173
|
+
# **getUserV1UserMeGet**
|
|
174
|
+
> UserInDBBase getUserV1UserMeGet()
|
|
175
|
+
|
|
176
|
+
Get current user
|
|
177
|
+
|
|
178
|
+
### Example
|
|
179
|
+
|
|
180
|
+
```typescript
|
|
181
|
+
import {
|
|
182
|
+
UserApi,
|
|
183
|
+
Configuration
|
|
184
|
+
} from './api';
|
|
185
|
+
|
|
186
|
+
const configuration = new Configuration();
|
|
187
|
+
const apiInstance = new UserApi(configuration);
|
|
188
|
+
|
|
189
|
+
let sessionId: string; // (optional) (default to undefined)
|
|
190
|
+
|
|
191
|
+
const { status, data } = await apiInstance.getUserV1UserMeGet(
|
|
192
|
+
sessionId
|
|
193
|
+
);
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
### Parameters
|
|
197
|
+
|
|
198
|
+
|Name | Type | Description | Notes|
|
|
199
|
+
|------------- | ------------- | ------------- | -------------|
|
|
200
|
+
| **sessionId** | [**string**] | | (optional) defaults to undefined|
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
### Return type
|
|
204
|
+
|
|
205
|
+
**UserInDBBase**
|
|
206
|
+
|
|
207
|
+
### Authorization
|
|
208
|
+
|
|
209
|
+
No authorization required
|
|
210
|
+
|
|
211
|
+
### HTTP request headers
|
|
212
|
+
|
|
213
|
+
- **Content-Type**: Not defined
|
|
214
|
+
- **Accept**: application/json
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
### HTTP response details
|
|
218
|
+
| Status code | Description | Response headers |
|
|
219
|
+
|-------------|-------------|------------------|
|
|
220
|
+
|**200** | Successful Response | - |
|
|
221
|
+
|**422** | Validation Error | - |
|
|
222
|
+
|
|
223
|
+
[[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)
|
|
224
|
+
|
|
225
|
+
# **updateUserV1UserUpdatePatch**
|
|
226
|
+
> Details updateUserV1UserUpdatePatch(userUpdate)
|
|
227
|
+
|
|
228
|
+
Update user
|
|
229
|
+
|
|
230
|
+
### Example
|
|
231
|
+
|
|
232
|
+
```typescript
|
|
233
|
+
import {
|
|
234
|
+
UserApi,
|
|
235
|
+
Configuration,
|
|
236
|
+
UserUpdate
|
|
237
|
+
} from './api';
|
|
238
|
+
|
|
239
|
+
const configuration = new Configuration();
|
|
240
|
+
const apiInstance = new UserApi(configuration);
|
|
241
|
+
|
|
242
|
+
let userUpdate: UserUpdate; //
|
|
243
|
+
let sessionId: string; // (optional) (default to undefined)
|
|
244
|
+
|
|
245
|
+
const { status, data } = await apiInstance.updateUserV1UserUpdatePatch(
|
|
246
|
+
userUpdate,
|
|
247
|
+
sessionId
|
|
248
|
+
);
|
|
249
|
+
```
|
|
250
|
+
|
|
251
|
+
### Parameters
|
|
252
|
+
|
|
253
|
+
|Name | Type | Description | Notes|
|
|
254
|
+
|------------- | ------------- | ------------- | -------------|
|
|
255
|
+
| **userUpdate** | **UserUpdate**| | |
|
|
256
|
+
| **sessionId** | [**string**] | | (optional) defaults to undefined|
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
### Return type
|
|
260
|
+
|
|
261
|
+
**Details**
|
|
262
|
+
|
|
263
|
+
### Authorization
|
|
264
|
+
|
|
265
|
+
No authorization required
|
|
266
|
+
|
|
267
|
+
### HTTP request headers
|
|
268
|
+
|
|
269
|
+
- **Content-Type**: application/json
|
|
270
|
+
- **Accept**: application/json
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
### HTTP response details
|
|
274
|
+
| Status code | Description | Response headers |
|
|
275
|
+
|-------------|-------------|------------------|
|
|
276
|
+
|**200** | Successful Response | - |
|
|
277
|
+
|**422** | Validation Error | - |
|
|
278
|
+
|
|
279
|
+
[[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)
|
|
280
|
+
|
package/docs/UserBase.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# UserBase
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**name** | **string** | | [default to undefined]
|
|
9
|
+
**email** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**phone** | **string** | | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { UserBase } from './api';
|
|
16
|
+
|
|
17
|
+
const instance: UserBase = {
|
|
18
|
+
name,
|
|
19
|
+
email,
|
|
20
|
+
phone,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# UserInDBBase
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**name** | **string** | | [default to undefined]
|
|
9
|
+
**email** | **string** | | [default to undefined]
|
|
10
|
+
**phone** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**role** | **string** | | [optional] [default to 'customer']
|
|
12
|
+
**id** | **string** | | [default to undefined]
|
|
13
|
+
**created_at** | **string** | | [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { UserInDBBase } from './api';
|
|
19
|
+
|
|
20
|
+
const instance: UserInDBBase = {
|
|
21
|
+
name,
|
|
22
|
+
email,
|
|
23
|
+
phone,
|
|
24
|
+
role,
|
|
25
|
+
id,
|
|
26
|
+
created_at,
|
|
27
|
+
};
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# UserPermissionsWithCompany
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**role** | **string** | | [default to undefined]
|
|
9
|
+
**company** | [**CompanyInDBBase**](CompanyInDBBase.md) | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { UserPermissionsWithCompany } from './api';
|
|
15
|
+
|
|
16
|
+
const instance: UserPermissionsWithCompany = {
|
|
17
|
+
role,
|
|
18
|
+
company,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[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/UserRole.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# UserRole
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**role** | **string** | | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { UserRole } from './api';
|
|
14
|
+
|
|
15
|
+
const instance: UserRole = {
|
|
16
|
+
role,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# UserUpdate
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**email** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**phone** | **string** | | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { UserUpdate } from './api';
|
|
16
|
+
|
|
17
|
+
const instance: UserUpdate = {
|
|
18
|
+
name,
|
|
19
|
+
email,
|
|
20
|
+
phone,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# UserWithRelations
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**name** | **string** | | [default to undefined]
|
|
9
|
+
**email** | **string** | | [default to undefined]
|
|
10
|
+
**phone** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**role** | **string** | | [optional] [default to 'customer']
|
|
12
|
+
**company_permissions** | [**Array<UserPermissionsWithCompany>**](UserPermissionsWithCompany.md) | | [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { UserWithRelations } from './api';
|
|
18
|
+
|
|
19
|
+
const instance: UserWithRelations = {
|
|
20
|
+
name,
|
|
21
|
+
email,
|
|
22
|
+
phone,
|
|
23
|
+
role,
|
|
24
|
+
company_permissions,
|
|
25
|
+
};
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# ValidationError
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**loc** | [**Array<ValidationErrorLocInner>**](ValidationErrorLocInner.md) | | [default to undefined]
|
|
9
|
+
**msg** | **string** | | [default to undefined]
|
|
10
|
+
**type** | **string** | | [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { ValidationError } from './api';
|
|
16
|
+
|
|
17
|
+
const instance: ValidationError = {
|
|
18
|
+
loc,
|
|
19
|
+
msg,
|
|
20
|
+
type,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# ValidationErrorLocInner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
import { ValidationErrorLocInner } from './api';
|
|
13
|
+
|
|
14
|
+
const instance: ValidationErrorLocInner = {
|
|
15
|
+
};
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
[[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/git_push.sh
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
|
3
|
+
#
|
|
4
|
+
# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
|
|
5
|
+
|
|
6
|
+
git_user_id=$1
|
|
7
|
+
git_repo_id=$2
|
|
8
|
+
release_note=$3
|
|
9
|
+
git_host=$4
|
|
10
|
+
|
|
11
|
+
if [ "$git_host" = "" ]; then
|
|
12
|
+
git_host="github.com"
|
|
13
|
+
echo "[INFO] No command line input provided. Set \$git_host to $git_host"
|
|
14
|
+
fi
|
|
15
|
+
|
|
16
|
+
if [ "$git_user_id" = "" ]; then
|
|
17
|
+
git_user_id="GIT_USER_ID"
|
|
18
|
+
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
|
19
|
+
fi
|
|
20
|
+
|
|
21
|
+
if [ "$git_repo_id" = "" ]; then
|
|
22
|
+
git_repo_id="GIT_REPO_ID"
|
|
23
|
+
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
|
24
|
+
fi
|
|
25
|
+
|
|
26
|
+
if [ "$release_note" = "" ]; then
|
|
27
|
+
release_note="Minor update"
|
|
28
|
+
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
|
29
|
+
fi
|
|
30
|
+
|
|
31
|
+
# Initialize the local directory as a Git repository
|
|
32
|
+
git init
|
|
33
|
+
|
|
34
|
+
# Adds the files in the local repository and stages them for commit.
|
|
35
|
+
git add .
|
|
36
|
+
|
|
37
|
+
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
|
38
|
+
git commit -m "$release_note"
|
|
39
|
+
|
|
40
|
+
# Sets the new remote
|
|
41
|
+
git_remote=$(git remote)
|
|
42
|
+
if [ "$git_remote" = "" ]; then # git remote not defined
|
|
43
|
+
|
|
44
|
+
if [ "$GIT_TOKEN" = "" ]; then
|
|
45
|
+
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
|
46
|
+
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
|
|
47
|
+
else
|
|
48
|
+
git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
|
|
49
|
+
fi
|
|
50
|
+
|
|
51
|
+
fi
|
|
52
|
+
|
|
53
|
+
git pull origin master
|
|
54
|
+
|
|
55
|
+
# Pushes (Forces) the changes in the local repository up to the remote repository
|
|
56
|
+
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
|
|
57
|
+
git push origin master 2>&1 | grep -v 'To https'
|
package/index.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Lumoar API
|
|
5
|
+
* Compliance as a service
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
export * from "./api";
|
|
17
|
+
export * from "./configuration";
|
|
18
|
+
|
package/package.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"dependencies": {
|
|
3
|
+
"@openapitools/openapi-generator-cli": "^2.23.4",
|
|
4
|
+
"openapi-generator-cli": "^1.0.0"
|
|
5
|
+
},
|
|
6
|
+
"name": "@rasadov/lumoar-sdk",
|
|
7
|
+
"version": "1.0.1",
|
|
8
|
+
"description": "Lumoar API SDK",
|
|
9
|
+
"main": "index.js",
|
|
10
|
+
"directories": {
|
|
11
|
+
"doc": "docs"
|
|
12
|
+
},
|
|
13
|
+
"devDependencies": {
|
|
14
|
+
"@types/node": "^24.5.2",
|
|
15
|
+
"axios": "^1.12.2",
|
|
16
|
+
"ts-node": "^10.9.2",
|
|
17
|
+
"typescript": "^5.9.2"
|
|
18
|
+
},
|
|
19
|
+
"scripts": {
|
|
20
|
+
"build": "tsc",
|
|
21
|
+
"prepublishOnly": "npm run build"
|
|
22
|
+
},
|
|
23
|
+
"repository": {
|
|
24
|
+
"type": "git",
|
|
25
|
+
"url": "https://github.com/rasadov/lumoar-sdk.git"
|
|
26
|
+
},
|
|
27
|
+
"keywords": ["api", "sdk", "lumoar", "typescript"],
|
|
28
|
+
"publishConfig": {
|
|
29
|
+
"access": "public"
|
|
30
|
+
},
|
|
31
|
+
"author": "Rauf Asadov",
|
|
32
|
+
"license": "ISC"
|
|
33
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "es6",
|
|
4
|
+
"module": "esnext",
|
|
5
|
+
"moduleResolution": "node",
|
|
6
|
+
"declaration": true,
|
|
7
|
+
"outDir": "./dist",
|
|
8
|
+
"strict": true,
|
|
9
|
+
"esModuleInterop": true,
|
|
10
|
+
"skipLibCheck": true
|
|
11
|
+
},
|
|
12
|
+
"include": ["*.ts", "api/*.ts", "sdk.ts"],
|
|
13
|
+
"exclude": ["node_modules", "dist"]
|
|
14
|
+
}
|