@handsondigital/idplugger-admin 2.1.2 → 2.2.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.
Files changed (42) hide show
  1. package/.openapi-generator/FILES +34 -0
  2. package/README.md +47 -2
  3. package/api.ts +4055 -1527
  4. package/dist/api.d.ts +3131 -1297
  5. package/dist/api.js +1570 -74
  6. package/docs/AdminErrorsDestroy200Response.md +24 -0
  7. package/docs/AdminErrorsIndex200Response.md +26 -0
  8. package/docs/AdminErrorsIndex200ResponseContentInner.md +30 -0
  9. package/docs/AdminErrorsShow200Response.md +24 -0
  10. package/docs/AdminErrorsShow200ResponseContent.md +32 -0
  11. package/docs/AdminLogsIndex200Response.md +26 -0
  12. package/docs/AdminLogsIndex200ResponseContentInner.md +30 -0
  13. package/docs/AdminLogsShow200Response.md +24 -0
  14. package/docs/AdminLogsShow200ResponseContent.md +34 -0
  15. package/docs/AdminPermissionsByAction200Response.md +24 -0
  16. package/docs/AdminPermissionsByCategory200Response.md +24 -0
  17. package/docs/AdminPermissionsByCategory200ResponseContentInner.md +26 -0
  18. package/docs/AdminPermissionsCategories200Response.md +24 -0
  19. package/docs/AdminPermissionsGrouped200Response.md +24 -0
  20. package/docs/AdminPermissionsGrouped200ResponseContentValueInner.md +28 -0
  21. package/docs/AdminPermissionsIndex200Response.md +24 -0
  22. package/docs/AdminPermissionsIndex200ResponseContentInner.md +32 -0
  23. package/docs/AdminPermissionsIndex200ResponseContentInnerRolesInner.md +22 -0
  24. package/docs/AdminPermissionsShow200Response.md +24 -0
  25. package/docs/AdminPermissionsShow200ResponseContent.md +32 -0
  26. package/docs/AdminPromotionLuckyNumbersReset200Response.md +26 -0
  27. package/docs/AdminPromotionLuckyNumbersReset500Response.md +26 -0
  28. package/docs/AdminUsersList200Response.md +28 -0
  29. package/docs/AdminUsersList200ResponsePagination.md +40 -0
  30. package/docs/AdminUsersList200ResponseUsersInner.md +30 -0
  31. package/docs/AdminUsersList200ResponseUsersInnerPermissionsInner.md +22 -0
  32. package/docs/AdminUsersList500Response.md +24 -0
  33. package/docs/ErrorsApi.md +174 -0
  34. package/docs/LogsApi.md +133 -0
  35. package/docs/PermissionsApi.md +301 -0
  36. package/docs/PromotionApi.md +53 -0
  37. package/docs/UserApi.md +125 -0
  38. package/docs/UserResetPassword200Response.md +26 -0
  39. package/docs/UserResetPassword200ResponseUser.md +28 -0
  40. package/docs/UserResetPassword500Response.md +24 -0
  41. package/docs/UserResetPasswordRequest.md +22 -0
  42. package/package.json +1 -1
@@ -0,0 +1,40 @@
1
+ # AdminUsersList200ResponsePagination
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **current_page** | **number** | | [optional] [default to undefined]
9
+ **first_page_url** | **string** | | [optional] [default to undefined]
10
+ **from** | **number** | | [optional] [default to undefined]
11
+ **last_page** | **number** | | [optional] [default to undefined]
12
+ **last_page_url** | **string** | | [optional] [default to undefined]
13
+ **next_page_url** | **string** | | [optional] [default to undefined]
14
+ **path** | **string** | | [optional] [default to undefined]
15
+ **per_page** | **number** | | [optional] [default to undefined]
16
+ **prev_page_url** | **string** | | [optional] [default to undefined]
17
+ **to** | **number** | | [optional] [default to undefined]
18
+ **total** | **number** | | [optional] [default to undefined]
19
+
20
+ ## Example
21
+
22
+ ```typescript
23
+ import { AdminUsersList200ResponsePagination } from '@handsondigital/idplugger-admin';
24
+
25
+ const instance: AdminUsersList200ResponsePagination = {
26
+ current_page,
27
+ first_page_url,
28
+ from,
29
+ last_page,
30
+ last_page_url,
31
+ next_page_url,
32
+ path,
33
+ per_page,
34
+ prev_page_url,
35
+ to,
36
+ total,
37
+ };
38
+ ```
39
+
40
+ [[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
+ # AdminUsersList200ResponseUsersInner
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **uuid** | **string** | | [optional] [default to undefined]
9
+ **username** | **string** | | [optional] [default to undefined]
10
+ **name** | **string** | | [optional] [default to undefined]
11
+ **email** | **string** | | [optional] [default to undefined]
12
+ **role** | **string** | | [optional] [default to undefined]
13
+ **permissions** | [**Array<AdminUsersList200ResponseUsersInnerPermissionsInner>**](AdminUsersList200ResponseUsersInnerPermissionsInner.md) | Incluído apenas se _include=permissions | [optional] [default to undefined]
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import { AdminUsersList200ResponseUsersInner } from '@handsondigital/idplugger-admin';
19
+
20
+ const instance: AdminUsersList200ResponseUsersInner = {
21
+ uuid,
22
+ username,
23
+ name,
24
+ email,
25
+ role,
26
+ permissions,
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
+ # AdminUsersList200ResponseUsersInnerPermissionsInner
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **number** | | [optional] [default to undefined]
9
+ **name** | **string** | | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { AdminUsersList200ResponseUsersInnerPermissionsInner } from '@handsondigital/idplugger-admin';
15
+
16
+ const instance: AdminUsersList200ResponseUsersInnerPermissionsInner = {
17
+ id,
18
+ name,
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,24 @@
1
+ # AdminUsersList500Response
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **action** | **string** | | [optional] [default to undefined]
9
+ **result** | **string** | | [optional] [default to undefined]
10
+ **message** | **string** | | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { AdminUsersList500Response } from '@handsondigital/idplugger-admin';
16
+
17
+ const instance: AdminUsersList500Response = {
18
+ action,
19
+ result,
20
+ message,
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,174 @@
1
+ # ErrorsApi
2
+
3
+ All URIs are relative to *https://api.idplugger.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**adminErrorsDestroy**](#adminerrorsdestroy) | **DELETE** /v3/admin/errors/{id} | Deletar relatório de erro|
8
+ |[**adminErrorsIndex**](#adminerrorsindex) | **GET** /v3/admin/errors/ | Listar relatórios de erro|
9
+ |[**adminErrorsShow**](#adminerrorsshow) | **GET** /v3/admin/errors/{id} | Visualizar erro específico|
10
+
11
+ # **adminErrorsDestroy**
12
+ > AdminErrorsDestroy200Response adminErrorsDestroy()
13
+
14
+
15
+ ### Example
16
+
17
+ ```typescript
18
+ import {
19
+ ErrorsApi,
20
+ Configuration
21
+ } from '@handsondigital/idplugger-admin';
22
+
23
+ const configuration = new Configuration();
24
+ const apiInstance = new ErrorsApi(configuration);
25
+
26
+ let id: string; //ID do relatório de erro (default to undefined)
27
+
28
+ const { status, data } = await apiInstance.adminErrorsDestroy(
29
+ id
30
+ );
31
+ ```
32
+
33
+ ### Parameters
34
+
35
+ |Name | Type | Description | Notes|
36
+ |------------- | ------------- | ------------- | -------------|
37
+ | **id** | [**string**] | ID do relatório de erro | defaults to undefined|
38
+
39
+
40
+ ### Return type
41
+
42
+ **AdminErrorsDestroy200Response**
43
+
44
+ ### Authorization
45
+
46
+ [bearerAuth](../README.md#bearerAuth)
47
+
48
+ ### HTTP request headers
49
+
50
+ - **Content-Type**: Not defined
51
+ - **Accept**: application/json
52
+
53
+
54
+ ### HTTP response details
55
+ | Status code | Description | Response headers |
56
+ |-------------|-------------|------------------|
57
+ |**200** | success | - |
58
+ |**404** | not found | - |
59
+ |**401** | unauthorized | - |
60
+
61
+ [[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)
62
+
63
+ # **adminErrorsIndex**
64
+ > AdminErrorsIndex200Response adminErrorsIndex()
65
+
66
+
67
+ ### Example
68
+
69
+ ```typescript
70
+ import {
71
+ ErrorsApi,
72
+ Configuration
73
+ } from '@handsondigital/idplugger-admin';
74
+
75
+ const configuration = new Configuration();
76
+ const apiInstance = new ErrorsApi(configuration);
77
+
78
+ let q: string; //Buscar em id, mensagem, classe da exceção, arquivo (optional) (default to undefined)
79
+ let _class: string; //Filtrar por classe da exceção (optional) (default to undefined)
80
+ let date: string; //Filtrar por data (optional) (default to undefined)
81
+ let page: number; //Número da página (optional) (default to 1)
82
+
83
+ const { status, data } = await apiInstance.adminErrorsIndex(
84
+ q,
85
+ _class,
86
+ date,
87
+ page
88
+ );
89
+ ```
90
+
91
+ ### Parameters
92
+
93
+ |Name | Type | Description | Notes|
94
+ |------------- | ------------- | ------------- | -------------|
95
+ | **q** | [**string**] | Buscar em id, mensagem, classe da exceção, arquivo | (optional) defaults to undefined|
96
+ | **_class** | [**string**] | Filtrar por classe da exceção | (optional) defaults to undefined|
97
+ | **date** | [**string**] | Filtrar por data | (optional) defaults to undefined|
98
+ | **page** | [**number**] | Número da página | (optional) defaults to 1|
99
+
100
+
101
+ ### Return type
102
+
103
+ **AdminErrorsIndex200Response**
104
+
105
+ ### Authorization
106
+
107
+ [bearerAuth](../README.md#bearerAuth)
108
+
109
+ ### HTTP request headers
110
+
111
+ - **Content-Type**: Not defined
112
+ - **Accept**: application/json
113
+
114
+
115
+ ### HTTP response details
116
+ | Status code | Description | Response headers |
117
+ |-------------|-------------|------------------|
118
+ |**200** | success | - |
119
+ |**401** | unauthorized | - |
120
+
121
+ [[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)
122
+
123
+ # **adminErrorsShow**
124
+ > AdminErrorsShow200Response adminErrorsShow()
125
+
126
+
127
+ ### Example
128
+
129
+ ```typescript
130
+ import {
131
+ ErrorsApi,
132
+ Configuration
133
+ } from '@handsondigital/idplugger-admin';
134
+
135
+ const configuration = new Configuration();
136
+ const apiInstance = new ErrorsApi(configuration);
137
+
138
+ let id: string; //ID do relatório de erro (default to undefined)
139
+
140
+ const { status, data } = await apiInstance.adminErrorsShow(
141
+ id
142
+ );
143
+ ```
144
+
145
+ ### Parameters
146
+
147
+ |Name | Type | Description | Notes|
148
+ |------------- | ------------- | ------------- | -------------|
149
+ | **id** | [**string**] | ID do relatório de erro | defaults to undefined|
150
+
151
+
152
+ ### Return type
153
+
154
+ **AdminErrorsShow200Response**
155
+
156
+ ### Authorization
157
+
158
+ [bearerAuth](../README.md#bearerAuth)
159
+
160
+ ### HTTP request headers
161
+
162
+ - **Content-Type**: Not defined
163
+ - **Accept**: application/json
164
+
165
+
166
+ ### HTTP response details
167
+ | Status code | Description | Response headers |
168
+ |-------------|-------------|------------------|
169
+ |**200** | success | - |
170
+ |**404** | not found | - |
171
+ |**401** | unauthorized | - |
172
+
173
+ [[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)
174
+
@@ -0,0 +1,133 @@
1
+ # LogsApi
2
+
3
+ All URIs are relative to *https://api.idplugger.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**adminLogsIndex**](#adminlogsindex) | **GET** /v3/admin/logs/ | Listar logs de requisições da API|
8
+ |[**adminLogsShow**](#adminlogsshow) | **GET** /v3/admin/logs/{id} | Visualizar log específico|
9
+
10
+ # **adminLogsIndex**
11
+ > AdminLogsIndex200Response adminLogsIndex()
12
+
13
+
14
+ ### Example
15
+
16
+ ```typescript
17
+ import {
18
+ LogsApi,
19
+ Configuration
20
+ } from '@handsondigital/idplugger-admin';
21
+
22
+ const configuration = new Configuration();
23
+ const apiInstance = new LogsApi(configuration);
24
+
25
+ let path: string; //Filtrar por caminho da requisição (optional) (default to undefined)
26
+ let method: string; //Filtrar por método HTTP (optional) (default to undefined)
27
+ let status: number; //Filtrar por status code (optional) (default to undefined)
28
+ let username: string; //Filtrar por username do usuário (optional) (default to undefined)
29
+ let from: string; //Data inicial (YYYY-MM-DD) (optional) (default to undefined)
30
+ let to: string; //Data final (YYYY-MM-DD) (optional) (default to undefined)
31
+ let perPage: number; //Itens por página (optional) (default to 50)
32
+ let page: number; //Número da página (optional) (default to 1)
33
+
34
+ const { status, data } = await apiInstance.adminLogsIndex(
35
+ path,
36
+ method,
37
+ status,
38
+ username,
39
+ from,
40
+ to,
41
+ perPage,
42
+ page
43
+ );
44
+ ```
45
+
46
+ ### Parameters
47
+
48
+ |Name | Type | Description | Notes|
49
+ |------------- | ------------- | ------------- | -------------|
50
+ | **path** | [**string**] | Filtrar por caminho da requisição | (optional) defaults to undefined|
51
+ | **method** | [**string**] | Filtrar por método HTTP | (optional) defaults to undefined|
52
+ | **status** | [**number**] | Filtrar por status code | (optional) defaults to undefined|
53
+ | **username** | [**string**] | Filtrar por username do usuário | (optional) defaults to undefined|
54
+ | **from** | [**string**] | Data inicial (YYYY-MM-DD) | (optional) defaults to undefined|
55
+ | **to** | [**string**] | Data final (YYYY-MM-DD) | (optional) defaults to undefined|
56
+ | **perPage** | [**number**] | Itens por página | (optional) defaults to 50|
57
+ | **page** | [**number**] | Número da página | (optional) defaults to 1|
58
+
59
+
60
+ ### Return type
61
+
62
+ **AdminLogsIndex200Response**
63
+
64
+ ### Authorization
65
+
66
+ [bearerAuth](../README.md#bearerAuth)
67
+
68
+ ### HTTP request headers
69
+
70
+ - **Content-Type**: Not defined
71
+ - **Accept**: application/json
72
+
73
+
74
+ ### HTTP response details
75
+ | Status code | Description | Response headers |
76
+ |-------------|-------------|------------------|
77
+ |**200** | success | - |
78
+ |**401** | unauthorized | - |
79
+
80
+ [[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)
81
+
82
+ # **adminLogsShow**
83
+ > AdminLogsShow200Response adminLogsShow()
84
+
85
+
86
+ ### Example
87
+
88
+ ```typescript
89
+ import {
90
+ LogsApi,
91
+ Configuration
92
+ } from '@handsondigital/idplugger-admin';
93
+
94
+ const configuration = new Configuration();
95
+ const apiInstance = new LogsApi(configuration);
96
+
97
+ let id: number; //ID do log (default to undefined)
98
+
99
+ const { status, data } = await apiInstance.adminLogsShow(
100
+ id
101
+ );
102
+ ```
103
+
104
+ ### Parameters
105
+
106
+ |Name | Type | Description | Notes|
107
+ |------------- | ------------- | ------------- | -------------|
108
+ | **id** | [**number**] | ID do log | defaults to undefined|
109
+
110
+
111
+ ### Return type
112
+
113
+ **AdminLogsShow200Response**
114
+
115
+ ### Authorization
116
+
117
+ [bearerAuth](../README.md#bearerAuth)
118
+
119
+ ### HTTP request headers
120
+
121
+ - **Content-Type**: Not defined
122
+ - **Accept**: application/json
123
+
124
+
125
+ ### HTTP response details
126
+ | Status code | Description | Response headers |
127
+ |-------------|-------------|------------------|
128
+ |**200** | success | - |
129
+ |**404** | not found | - |
130
+ |**401** | unauthorized | - |
131
+
132
+ [[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)
133
+