@rasadov/lumoar-sdk 1.0.15 → 1.0.16

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/docs/RolesApi.md CHANGED
@@ -5,6 +5,7 @@ All URIs are relative to *http://localhost*
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
7
  |[**getUserPermissionsV1RolesCompanyIdMeGet**](#getuserpermissionsv1rolescompanyidmeget) | **GET** /v1/roles/{company_id}/me | Get User Permissions|
8
+ |[**getUsersV1RolesCompanyIdListGet**](#getusersv1rolescompanyidlistget) | **GET** /v1/roles/{company_id}/list | Get Users|
8
9
  |[**inviteV1RolesInvitesPost**](#invitev1rolesinvitespost) | **POST** /v1/roles/invites | Invite|
9
10
  |[**removePeopleV1RolesInvitesDelete**](#removepeoplev1rolesinvitesdelete) | **DELETE** /v1/roles/invites | Remove People|
10
11
 
@@ -57,6 +58,63 @@ No authorization required
57
58
  - **Accept**: application/json
58
59
 
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
+ # **getUsersV1RolesCompanyIdListGet**
70
+ > Array<UserWithId> getUsersV1RolesCompanyIdListGet()
71
+
72
+
73
+ ### Example
74
+
75
+ ```typescript
76
+ import {
77
+ RolesApi,
78
+ Configuration
79
+ } from './api';
80
+
81
+ const configuration = new Configuration();
82
+ const apiInstance = new RolesApi(configuration);
83
+
84
+ let companyId: string; // (default to undefined)
85
+ let authorization: string; // (optional) (default to undefined)
86
+ let sessionId: string; // (optional) (default to undefined)
87
+
88
+ const { status, data } = await apiInstance.getUsersV1RolesCompanyIdListGet(
89
+ companyId,
90
+ authorization,
91
+ sessionId
92
+ );
93
+ ```
94
+
95
+ ### Parameters
96
+
97
+ |Name | Type | Description | Notes|
98
+ |------------- | ------------- | ------------- | -------------|
99
+ | **companyId** | [**string**] | | defaults to undefined|
100
+ | **authorization** | [**string**] | | (optional) defaults to undefined|
101
+ | **sessionId** | [**string**] | | (optional) defaults to undefined|
102
+
103
+
104
+ ### Return type
105
+
106
+ **Array<UserWithId>**
107
+
108
+ ### Authorization
109
+
110
+ No authorization required
111
+
112
+ ### HTTP request headers
113
+
114
+ - **Content-Type**: Not defined
115
+ - **Accept**: application/json
116
+
117
+
60
118
  ### HTTP response details
61
119
  | Status code | Description | Response headers |
62
120
  |-------------|-------------|------------------|
@@ -0,0 +1,18 @@
1
+ # TaskPriority
2
+
3
+
4
+ ## Enum
5
+
6
+ * `NUMBER_1` (value: `1`)
7
+
8
+ * `NUMBER_2` (value: `2`)
9
+
10
+ * `NUMBER_3` (value: `3`)
11
+
12
+ * `NUMBER_4` (value: `4`)
13
+
14
+ * `NUMBER_5` (value: `5`)
15
+
16
+ * `NUMBER_6` (value: `6`)
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/docs/TaskRead.md CHANGED
@@ -10,11 +10,10 @@ Name | Type | Description | Notes
10
10
  **title** | **string** | | [default to undefined]
11
11
  **description** | **string** | | [default to undefined]
12
12
  **due_date** | **string** | | [default to undefined]
13
- **assigned_to_id** | **string** | | [default to undefined]
14
13
  **created_at** | **string** | | [default to undefined]
15
14
  **updated_at** | **string** | | [default to undefined]
16
- **priority** | **number** | | [default to undefined]
17
- **status** | **string** | | [default to undefined]
15
+ **priority** | [**TaskPriority**](TaskPriority.md) | | [default to undefined]
16
+ **status** | [**TaskStatus**](TaskStatus.md) | | [default to undefined]
18
17
 
19
18
  ## Example
20
19
 
@@ -27,7 +26,6 @@ const instance: TaskRead = {
27
26
  title,
28
27
  description,
29
28
  due_date,
30
- assigned_to_id,
31
29
  created_at,
32
30
  updated_at,
33
31
  priority,
@@ -0,0 +1,38 @@
1
+ # TaskWithUser
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | | [default to undefined]
9
+ **company_id** | **string** | | [default to undefined]
10
+ **title** | **string** | | [default to undefined]
11
+ **description** | **string** | | [default to undefined]
12
+ **due_date** | **string** | | [default to undefined]
13
+ **created_at** | **string** | | [default to undefined]
14
+ **updated_at** | **string** | | [default to undefined]
15
+ **priority** | [**TaskPriority**](TaskPriority.md) | | [default to undefined]
16
+ **status** | [**TaskStatus**](TaskStatus.md) | | [default to undefined]
17
+ **assigned_to** | [**UserWithId**](UserWithId.md) | | [default to undefined]
18
+
19
+ ## Example
20
+
21
+ ```typescript
22
+ import { TaskWithUser } from './api';
23
+
24
+ const instance: TaskWithUser = {
25
+ id,
26
+ company_id,
27
+ title,
28
+ description,
29
+ due_date,
30
+ created_at,
31
+ updated_at,
32
+ priority,
33
+ status,
34
+ assigned_to,
35
+ };
36
+ ```
37
+
38
+ [[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/TasksApi.md CHANGED
@@ -129,7 +129,7 @@ No authorization required
129
129
  [[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)
130
130
 
131
131
  # **listTasksForCompanyV1TasksCompanyGet**
132
- > PaginationResponseTaskRead listTasksForCompanyV1TasksCompanyGet()
132
+ > PaginationResponseTaskWithUser listTasksForCompanyV1TasksCompanyGet()
133
133
 
134
134
 
135
135
  ### Example
@@ -148,7 +148,7 @@ let page: number; // (optional) (default to 1)
148
148
  let elements: number; // (optional) (default to 20)
149
149
  let dueDateFrom: string; // (optional) (default to undefined)
150
150
  let dueDateTo: string; // (optional) (default to undefined)
151
- let priority: number; // (optional) (default to undefined)
151
+ let priority: TaskPriority; // (optional) (default to undefined)
152
152
  let status: TaskStatus; // (optional) (default to undefined)
153
153
  let orderBy: OrderBy; // (optional) (default to undefined)
154
154
  let order: 'asc' | 'desc'; // (optional) (default to 'asc')
@@ -179,7 +179,7 @@ const { status, data } = await apiInstance.listTasksForCompanyV1TasksCompanyGet(
179
179
  | **elements** | [**number**] | | (optional) defaults to 20|
180
180
  | **dueDateFrom** | [**string**] | | (optional) defaults to undefined|
181
181
  | **dueDateTo** | [**string**] | | (optional) defaults to undefined|
182
- | **priority** | [**number**] | | (optional) defaults to undefined|
182
+ | **priority** | **TaskPriority** | | (optional) defaults to undefined|
183
183
  | **status** | **TaskStatus** | | (optional) defaults to undefined|
184
184
  | **orderBy** | **OrderBy** | | (optional) defaults to undefined|
185
185
  | **order** | [**&#39;asc&#39; | &#39;desc&#39;**]**Array<&#39;asc&#39; &#124; &#39;desc&#39;>** | | (optional) defaults to 'asc'|
@@ -189,7 +189,7 @@ const { status, data } = await apiInstance.listTasksForCompanyV1TasksCompanyGet(
189
189
 
190
190
  ### Return type
191
191
 
192
- **PaginationResponseTaskRead**
192
+ **PaginationResponseTaskWithUser**
193
193
 
194
194
  ### Authorization
195
195
 
@@ -229,7 +229,7 @@ let page: number; // (optional) (default to 1)
229
229
  let elements: number; // (optional) (default to 20)
230
230
  let dueDateFrom: string; // (optional) (default to undefined)
231
231
  let dueDateTo: string; // (optional) (default to undefined)
232
- let priority: number; // (optional) (default to undefined)
232
+ let priority: TaskPriority; // (optional) (default to undefined)
233
233
  let status: TaskStatus; // (optional) (default to undefined)
234
234
  let orderBy: OrderBy; // (optional) (default to undefined)
235
235
  let order: 'asc' | 'desc'; // (optional) (default to 'asc')
@@ -260,7 +260,7 @@ const { status, data } = await apiInstance.listTasksForUserV1TasksUserGet(
260
260
  | **elements** | [**number**] | | (optional) defaults to 20|
261
261
  | **dueDateFrom** | [**string**] | | (optional) defaults to undefined|
262
262
  | **dueDateTo** | [**string**] | | (optional) defaults to undefined|
263
- | **priority** | [**number**] | | (optional) defaults to undefined|
263
+ | **priority** | **TaskPriority** | | (optional) defaults to undefined|
264
264
  | **status** | **TaskStatus** | | (optional) defaults to undefined|
265
265
  | **orderBy** | **OrderBy** | | (optional) defaults to undefined|
266
266
  | **order** | [**&#39;asc&#39; | &#39;desc&#39;**]**Array<&#39;asc&#39; &#124; &#39;desc&#39;>** | | (optional) defaults to 'asc'|
@@ -6,7 +6,7 @@
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **id** | **string** | | [default to undefined]
9
- **status** | **string** | | [default to undefined]
9
+ **status** | [**TaskStatus**](TaskStatus.md) | | [default to undefined]
10
10
 
11
11
  ## Example
12
12
 
@@ -0,0 +1,26 @@
1
+ # UserWithId
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
+ **id** | **string** | | [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { UserWithId } from './api';
17
+
18
+ const instance: UserWithId = {
19
+ name,
20
+ email,
21
+ phone,
22
+ id,
23
+ };
24
+ ```
25
+
26
+ [[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/index.ts CHANGED
@@ -15,4 +15,4 @@
15
15
 
16
16
  export * from "./api";
17
17
  export * from "./configuration";
18
- export * from "./sdk";
18
+
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "openapi-generator-cli": "^1.0.0"
5
5
  },
6
6
  "name": "@rasadov/lumoar-sdk",
7
- "version": "1.0.15",
7
+ "version": "1.0.16",
8
8
  "description": "Lumoar API SDK",
9
9
  "main": "dist/index.js",
10
10
  "directories": {