gopadjs 2.8.0 → 2.9.0

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.
@@ -0,0 +1,25 @@
1
+ # Notification
2
+
3
+ Generic response for errors and validations
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **status** | **number** | | [optional] [default to undefined]
10
+ **message** | **string** | | [optional] [default to undefined]
11
+ **errors** | [**Array<Validation>**](Validation.md) | | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { Notification } from 'gopadjs';
17
+
18
+ const instance: Notification = {
19
+ status,
20
+ message,
21
+ errors,
22
+ };
23
+ ```
24
+
25
+ [[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
+ # PermitGroupUserRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **user** | **string** | | [default to undefined]
9
+ **perm** | **string** | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { PermitGroupUserRequest } from 'gopadjs';
15
+
16
+ const instance: PermitGroupUserRequest = {
17
+ user,
18
+ perm,
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)
@@ -0,0 +1,22 @@
1
+ # PermitUserGroupRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **group** | **string** | | [default to undefined]
9
+ **perm** | **string** | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { PermitUserGroupRequest } from 'gopadjs';
15
+
16
+ const instance: PermitUserGroupRequest = {
17
+ group,
18
+ perm,
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)
@@ -0,0 +1,43 @@
1
+ # Profile
2
+
3
+ Model to represent profile
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **id** | **string** | | [optional] [default to undefined]
10
+ **username** | **string** | | [optional] [default to undefined]
11
+ **password** | **string** | | [optional] [default to undefined]
12
+ **email** | **string** | | [optional] [default to undefined]
13
+ **fullname** | **string** | | [optional] [default to undefined]
14
+ **profile** | **string** | | [optional] [default to undefined]
15
+ **admin** | **boolean** | | [optional] [readonly] [default to undefined]
16
+ **active** | **boolean** | | [optional] [readonly] [default to undefined]
17
+ **created_at** | **string** | | [optional] [readonly] [default to undefined]
18
+ **updated_at** | **string** | | [optional] [readonly] [default to undefined]
19
+ **auths** | [**Array<UserAuth>**](UserAuth.md) | | [optional] [readonly] [default to undefined]
20
+ **groups** | [**Array<UserGroup>**](UserGroup.md) | | [optional] [readonly] [default to undefined]
21
+
22
+ ## Example
23
+
24
+ ```typescript
25
+ import { Profile } from 'gopadjs';
26
+
27
+ const instance: Profile = {
28
+ id,
29
+ username,
30
+ password,
31
+ email,
32
+ fullname,
33
+ profile,
34
+ admin,
35
+ active,
36
+ created_at,
37
+ updated_at,
38
+ auths,
39
+ groups,
40
+ };
41
+ ```
42
+
43
+ [[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,155 @@
1
+ # ProfileApi
2
+
3
+ All URIs are relative to *https://try.gopad.eu/api/v1*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**showProfile**](#showprofile) | **GET** /profile/self | Fetch profile details of the personal account|
8
+ |[**tokenProfile**](#tokenprofile) | **GET** /profile/token | Retrieve an unlimited auth token|
9
+ |[**updateProfile**](#updateprofile) | **PUT** /profile/self | Update your own profile information|
10
+
11
+ # **showProfile**
12
+ > Profile showProfile()
13
+
14
+
15
+ ### Example
16
+
17
+ ```typescript
18
+ import {
19
+ ProfileApi,
20
+ Configuration
21
+ } from 'gopadjs';
22
+
23
+ const configuration = new Configuration();
24
+ const apiInstance = new ProfileApi(configuration);
25
+
26
+ const { status, data } = await apiInstance.showProfile();
27
+ ```
28
+
29
+ ### Parameters
30
+ This endpoint does not have any parameters.
31
+
32
+
33
+ ### Return type
34
+
35
+ **Profile**
36
+
37
+ ### Authorization
38
+
39
+ [Basic](../README.md#Basic), [Header](../README.md#Header), [Bearer](../README.md#Bearer)
40
+
41
+ ### HTTP request headers
42
+
43
+ - **Content-Type**: Not defined
44
+ - **Accept**: application/json
45
+
46
+
47
+ ### HTTP response details
48
+ | Status code | Description | Response headers |
49
+ |-------------|-------------|------------------|
50
+ |**200** | The current profile details | - |
51
+ |**403** | User is not authorized | - |
52
+ |**500** | Some internal server error | - |
53
+
54
+ [[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)
55
+
56
+ # **tokenProfile**
57
+ > AuthToken tokenProfile()
58
+
59
+
60
+ ### Example
61
+
62
+ ```typescript
63
+ import {
64
+ ProfileApi,
65
+ Configuration
66
+ } from 'gopadjs';
67
+
68
+ const configuration = new Configuration();
69
+ const apiInstance = new ProfileApi(configuration);
70
+
71
+ const { status, data } = await apiInstance.tokenProfile();
72
+ ```
73
+
74
+ ### Parameters
75
+ This endpoint does not have any parameters.
76
+
77
+
78
+ ### Return type
79
+
80
+ **AuthToken**
81
+
82
+ ### Authorization
83
+
84
+ [Basic](../README.md#Basic), [Header](../README.md#Header), [Bearer](../README.md#Bearer)
85
+
86
+ ### HTTP request headers
87
+
88
+ - **Content-Type**: Not defined
89
+ - **Accept**: application/json
90
+
91
+
92
+ ### HTTP response details
93
+ | Status code | Description | Response headers |
94
+ |-------------|-------------|------------------|
95
+ |**200** | Generated token never expiring | - |
96
+ |**403** | User is not authorized | - |
97
+ |**500** | Some internal server error | - |
98
+
99
+ [[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)
100
+
101
+ # **updateProfile**
102
+ > Profile updateProfile(updateProfileRequest)
103
+
104
+
105
+ ### Example
106
+
107
+ ```typescript
108
+ import {
109
+ ProfileApi,
110
+ Configuration,
111
+ UpdateProfileRequest
112
+ } from 'gopadjs';
113
+
114
+ const configuration = new Configuration();
115
+ const apiInstance = new ProfileApi(configuration);
116
+
117
+ let updateProfileRequest: UpdateProfileRequest; //The profile data to update
118
+
119
+ const { status, data } = await apiInstance.updateProfile(
120
+ updateProfileRequest
121
+ );
122
+ ```
123
+
124
+ ### Parameters
125
+
126
+ |Name | Type | Description | Notes|
127
+ |------------- | ------------- | ------------- | -------------|
128
+ | **updateProfileRequest** | **UpdateProfileRequest**| The profile data to update | |
129
+
130
+
131
+ ### Return type
132
+
133
+ **Profile**
134
+
135
+ ### Authorization
136
+
137
+ [Basic](../README.md#Basic), [Header](../README.md#Header), [Bearer](../README.md#Bearer)
138
+
139
+ ### HTTP request headers
140
+
141
+ - **Content-Type**: application/json
142
+ - **Accept**: application/json
143
+
144
+
145
+ ### HTTP response details
146
+ | Status code | Description | Response headers |
147
+ |-------------|-------------|------------------|
148
+ |**200** | The current profile details | - |
149
+ |**400** | Failed to parse request | - |
150
+ |**403** | User is not authorized | - |
151
+ |**422** | Failed to validate request | - |
152
+ |**500** | Some internal server error | - |
153
+
154
+ [[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)
155
+
@@ -0,0 +1,27 @@
1
+ # Provider
2
+
3
+ Model to represent auth provider
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **name** | **string** | | [optional] [readonly] [default to undefined]
10
+ **driver** | **string** | | [optional] [readonly] [default to undefined]
11
+ **display** | **string** | | [optional] [readonly] [default to undefined]
12
+ **icon** | **string** | | [optional] [readonly] [default to undefined]
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import { Provider } from 'gopadjs';
18
+
19
+ const instance: Provider = {
20
+ name,
21
+ driver,
22
+ display,
23
+ icon,
24
+ };
25
+ ```
26
+
27
+ [[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,20 @@
1
+ # RedirectAuthRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **token** | **string** | | [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { RedirectAuthRequest } from 'gopadjs';
14
+
15
+ const instance: RedirectAuthRequest = {
16
+ token,
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,26 @@
1
+ # UpdateProfileRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **username** | **string** | | [optional] [default to undefined]
9
+ **password** | **string** | | [optional] [default to undefined]
10
+ **email** | **string** | | [optional] [default to undefined]
11
+ **fullname** | **string** | | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { UpdateProfileRequest } from 'gopadjs';
17
+
18
+ const instance: UpdateProfileRequest = {
19
+ username,
20
+ password,
21
+ email,
22
+ fullname,
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)
@@ -0,0 +1,30 @@
1
+ # UpdateUserRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **username** | **string** | | [optional] [default to undefined]
9
+ **password** | **string** | | [optional] [default to undefined]
10
+ **email** | **string** | | [optional] [default to undefined]
11
+ **fullname** | **string** | | [optional] [default to undefined]
12
+ **admin** | **boolean** | | [optional] [default to undefined]
13
+ **active** | **boolean** | | [optional] [default to undefined]
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import { UpdateUserRequest } from 'gopadjs';
19
+
20
+ const instance: UpdateUserRequest = {
21
+ username,
22
+ password,
23
+ email,
24
+ fullname,
25
+ admin,
26
+ active,
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)
package/docs/User.md ADDED
@@ -0,0 +1,41 @@
1
+ # User
2
+
3
+ Model to represent user
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **id** | **string** | | [optional] [default to undefined]
10
+ **username** | **string** | | [optional] [default to undefined]
11
+ **password** | **string** | | [optional] [default to undefined]
12
+ **email** | **string** | | [optional] [default to undefined]
13
+ **fullname** | **string** | | [optional] [default to undefined]
14
+ **profile** | **string** | | [optional] [default to undefined]
15
+ **admin** | **boolean** | | [optional] [default to undefined]
16
+ **active** | **boolean** | | [optional] [default to undefined]
17
+ **created_at** | **string** | | [optional] [readonly] [default to undefined]
18
+ **updated_at** | **string** | | [optional] [readonly] [default to undefined]
19
+ **auths** | [**Array<UserAuth>**](UserAuth.md) | | [optional] [readonly] [default to undefined]
20
+
21
+ ## Example
22
+
23
+ ```typescript
24
+ import { User } from 'gopadjs';
25
+
26
+ const instance: User = {
27
+ id,
28
+ username,
29
+ password,
30
+ email,
31
+ fullname,
32
+ profile,
33
+ admin,
34
+ active,
35
+ created_at,
36
+ updated_at,
37
+ auths,
38
+ };
39
+ ```
40
+
41
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)