@handsondigital/idplugger-admin 1.0.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.
- package/.openapi-generator/FILES +81 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +154 -0
- package/api.ts +3648 -0
- package/base.ts +86 -0
- package/common.ts +150 -0
- package/configuration.ts +115 -0
- package/dist/api.d.ts +2664 -0
- package/dist/api.js +2463 -0
- package/dist/base.d.ts +66 -0
- package/dist/base.js +86 -0
- package/dist/common.d.ts +65 -0
- package/dist/common.js +253 -0
- package/dist/configuration.d.ts +91 -0
- package/dist/configuration.js +57 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +31 -0
- package/docs/AdminAuthRequestToken200Response.md +24 -0
- package/docs/AdminAuthRequestTokenRequest.md +20 -0
- package/docs/AuthApi.md +264 -0
- package/docs/AuthLogin200Response.md +24 -0
- package/docs/AuthLogin401Response.md +20 -0
- package/docs/AuthLoginByToken200Response.md +26 -0
- package/docs/AuthLoginByTokenRequest.md +22 -0
- package/docs/AuthLoginRequest.md +22 -0
- package/docs/AuthMe200Response.md +28 -0
- package/docs/AuthMe200ResponsePromotionsInner.md +22 -0
- package/docs/AuthRefreshTokenRequest.md +20 -0
- package/docs/Metrics200Response.md +24 -0
- package/docs/Metrics200ResponseUsersInner.md +22 -0
- package/docs/Metrics400Response.md +20 -0
- package/docs/MetricsApi.md +75 -0
- package/docs/PromotionApi.md +115 -0
- package/docs/PromotionPullConfiguration200Response.md +24 -0
- package/docs/PromotionPullConfiguration500Response.md +24 -0
- package/docs/PromotionPullConfigurationRequest.md +20 -0
- package/docs/PromotionPullConfigurationRequestDb.md +28 -0
- package/docs/PromotionStart200Response.md +28 -0
- package/docs/PromotionStart200ResponseUser.md +30 -0
- package/docs/PromotionStartRequest.md +24 -0
- package/docs/PromotionStartRequestUser.md +24 -0
- package/docs/RolesApi.md +376 -0
- package/docs/RolesAttachPermissions200Response.md +28 -0
- package/docs/RolesAttachPermissions422Response.md +20 -0
- package/docs/RolesAttachPermissionsRequest.md +20 -0
- package/docs/RolesDestroy400Response.md +20 -0
- package/docs/RolesIndex200Response.md +26 -0
- package/docs/RolesIndex200ResponseRolesInner.md +26 -0
- package/docs/RolesIndex500Response.md +20 -0
- package/docs/RolesPermissions200Response.md +28 -0
- package/docs/RolesShow200Response.md +28 -0
- package/docs/RolesShow200ResponsePermissionsInner.md +32 -0
- package/docs/RolesShow200ResponseRole.md +26 -0
- package/docs/RolesStore201Response.md +26 -0
- package/docs/RolesStore201ResponseRole.md +26 -0
- package/docs/RolesStore422Response.md +20 -0
- package/docs/RolesStoreRequest.md +24 -0
- package/docs/RolesUpdate200Response.md +26 -0
- package/docs/RolesUpdateRequest.md +24 -0
- package/docs/StepsAllow201Response.md +26 -0
- package/docs/StepsAllow409Response.md +26 -0
- package/docs/StepsAllowRequest.md +24 -0
- package/docs/StepsApi.md +167 -0
- package/docs/StepsIndex200Response.md +22 -0
- package/docs/StepsIndex200ResponseStepsValueValue.md +30 -0
- package/docs/StepsUnallow201Response.md +26 -0
- package/docs/StepsUnallow409Response.md +26 -0
- package/docs/UserApi.md +226 -0
- package/docs/UserGrantPermissions200Response.md +26 -0
- package/docs/UserGrantPermissions200ResponseUserInner.md +24 -0
- package/docs/UserGrantPermissions500Response.md +24 -0
- package/docs/UserGrantPermissionsRequest.md +24 -0
- package/docs/UserRegister200Response.md +26 -0
- package/docs/UserRegister200ResponseUserInner.md +28 -0
- package/docs/UserRegister500Response.md +24 -0
- package/docs/UserRegisterRequest.md +24 -0
- package/docs/UserShow200Response.md +26 -0
- package/docs/UserShow200ResponseUser.md +26 -0
- package/docs/UserShow404Response.md +24 -0
- package/docs/UserShow500Response.md +24 -0
- package/docs/UserUpdate200Response.md +26 -0
- package/docs/UserUpdate200ResponseUser.md +26 -0
- package/docs/UserUpdate404Response.md +24 -0
- package/docs/UserUpdate422Response.md +20 -0
- package/docs/UserUpdate500Response.md +24 -0
- package/docs/UserUpdateRequest.md +20 -0
- package/git_push.sh +57 -0
- package/index.ts +18 -0
- package/package.json +31 -0
- package/tsconfig.json +21 -0
package/api.ts
ADDED
|
@@ -0,0 +1,3648 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Plataforma de Promoção - Documentação da API
|
|
5
|
+
* # Introdução Bem-vindo à documentação oficial da API da Plataforma de Promoção IdPlugger exclusiva para administradores da API! Se você está procurando a documentação destinada ao cliente da Plataforma de Promoção IdPlugger [acesse clicando aqui!](/docs/v3/promotion)</a> # Sobre a API Esta API é baseada em REST, proporcionando uma arquitetura flexível e de fácil integração. # Começando Para começar a explorar e utilizar a API da Plataforma de Promoção IdPlugger, recomendamos que você siga os seguintes passos: 0. **Postman**: [Baixe a collection do postman](https://god.gw.postman.com/run-collection/13619232-20687020-3c58-488d-bd15-9f9d1a8164b1?action=collection%2Ffork&source=rip_markdown&collection-url=entityId%3D13619232-20687020-3c58-488d-bd15-9f9d1a8164b1%26entityType%3Dcollection%26workspaceId%3Df86d7ea0-5224-4351-bf69-54ada2ca328d), instale o postman na sua máquina e importe a collection. 1. **Autenticação**: Obtenha suas credenciais de autenticação (\'username\' e \'password\') de administrador, para acessar a API. 2. **Explorar Endpoints**: Navegue pela lista de endpoints disponíveis e suas respectivas funcionalidades. 3. **Experimentar**: Utilize os exemplos de solicitação fornecidos para testar os endpoints e compreender melhor seu funcionamento. 4. **Integrar**: Integre a API da Plataforma de Promoção IdPlugger em seus próprios projetos e sistemas para aproveitar ao máximo suas capacidades. # Autenticação Todos os endpoints requerem token de autenticação válido, que pode ser obtido através de requisição à API enviando as credenciais obtidas. Este token é do tipo bearer e deve ser enviado no header da requisição no seguinte formato: | Header | Valor | | - | - | | Authorization | bearer `{token}` | Substitua `{token}` pelo token obtido na autenticação. IMPORTANTE: O bearer token tem um tempo de validade, o ideal é armazenar o bearer token e solicitar um novo token apenas quando o seu token expirar. A validade do token é enviada junto com o token na resposta do endpoint de autenticação. # Configurações de Promoção ## Pull Configurations O primeiro passo para configurar uma promoção na API é puxar a parametrização da promoção criada. Para isto, libere o servidor da API para acesso ao banco de dados da promoção e informe os dados de conexão através da rota [Pull Configuration](#/Promotion/App%5CHttp%5CControllers%5CAdmin%5CAdminController%3A%3ApullConfiguration) ## Steps Após puxar as configurações na etapa anterior, configure as steps da promoção. Steps são as partes de código que serão executadas para cada promoção. Cada promoção pode ter uma configuração diferente de steps. - Para consultar quais steps estão disponíveis, utilize [este endpoint](/docs/v3/setup/index.php#/Steps/App%5CHttp%5CControllers%5CStepsController%3A%3Aindex) - Para ativar steps em uma promoção, utilize [este endpoint](https://api.idplugger.com/docs/v3/setup/index.php#/Steps/App%5CHttp%5CControllers%5CStepsController%3A%3Aallow) - Para desativar steps em uma promoção, utilize [este endpoint](https://api.idplugger.com/docs/v3/setup/index.php#/Steps/App%5CHttp%5CControllers%5CStepsController%3A%3Aunallow) - Para consultar quais steps estão ativas, utilize o endpoint de ativação sem passar nenhuma step Algumas steps são configuradas por padrão ao fazer o pull configuration, para saber quais confira o parâmetro default na resposta do endpoint de consulta de steps. Este endpoint também retorna a descrição do que a step faz e se ela depende que outra esteja ativada ou desativada. ## Criar Usuário da API Para que um cliente possa utilizar a API, é necessário criar um usuário para ele. Para isto, após fazer o pull configuration e a parametrização de steps, utilize [este endpoint](#/User/App%5CHttp%5CControllers%5CAdmin%5CAdminController%3A%3Aregister) para criar um usuário da API. Este endpoint cria o usuário e retorna uma senha para este usuário. ## Permissões do usuário da API Após criar o usuário, é necessário dar as permissões para que ele possa atuar na promoção. Para isso, utilize [este endpoint](#/User/App%5CHttp%5CControllers%5CAdmin%5CAdminController%3A%3AgrantPermissions). Atenção: Selecione bem as permissões, deixando apenas as necessárias. ## Teste Utilize as credenciais do usuário criado para testar se a API está respondendo para a promoção configurada. # Postman Collection [<img src=\"https://run.pstmn.io/button.svg\" alt=\"Run In \" style=\"width: 128px; height: 32px;\">](https://god.gw.postman.com/run-collection/13619232-20687020-3c58-488d-bd15-9f9d1a8164b1?action=collection%2Ffork&source=rip_markdown&collection-url=entityId%3D13619232-20687020-3c58-488d-bd15-9f9d1a8164b1%26entityType%3Dcollection%26workspaceId%3Df86d7ea0-5224-4351-bf69-54ada2ca328d)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 3.0.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
|
+
import type { Configuration } from './configuration';
|
|
17
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
18
|
+
import globalAxios from 'axios';
|
|
19
|
+
// Some imports not used depending on template conditions
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
|
22
|
+
import type { RequestArgs } from './base';
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @export
|
|
29
|
+
* @interface AdminAuthRequestToken200Response
|
|
30
|
+
*/
|
|
31
|
+
export interface AdminAuthRequestToken200Response {
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof AdminAuthRequestToken200Response
|
|
36
|
+
*/
|
|
37
|
+
'entity'?: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof AdminAuthRequestToken200Response
|
|
42
|
+
*/
|
|
43
|
+
'action'?: string;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof AdminAuthRequestToken200Response
|
|
48
|
+
*/
|
|
49
|
+
'message'?: string;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @export
|
|
54
|
+
* @interface AdminAuthRequestTokenRequest
|
|
55
|
+
*/
|
|
56
|
+
export interface AdminAuthRequestTokenRequest {
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {string}
|
|
60
|
+
* @memberof AdminAuthRequestTokenRequest
|
|
61
|
+
*/
|
|
62
|
+
'email'?: string;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @export
|
|
67
|
+
* @interface AuthLogin200Response
|
|
68
|
+
*/
|
|
69
|
+
export interface AuthLogin200Response {
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof AuthLogin200Response
|
|
74
|
+
*/
|
|
75
|
+
'token'?: string;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof AuthLogin200Response
|
|
80
|
+
*/
|
|
81
|
+
'token_type'?: string;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {string}
|
|
85
|
+
* @memberof AuthLogin200Response
|
|
86
|
+
*/
|
|
87
|
+
'expires_in'?: string;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @export
|
|
92
|
+
* @interface AuthLogin401Response
|
|
93
|
+
*/
|
|
94
|
+
export interface AuthLogin401Response {
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @type {string}
|
|
98
|
+
* @memberof AuthLogin401Response
|
|
99
|
+
*/
|
|
100
|
+
'message'?: string;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
* @export
|
|
105
|
+
* @interface AuthLoginByToken200Response
|
|
106
|
+
*/
|
|
107
|
+
export interface AuthLoginByToken200Response {
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* @type {string}
|
|
111
|
+
* @memberof AuthLoginByToken200Response
|
|
112
|
+
*/
|
|
113
|
+
'token'?: string;
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
* @type {string}
|
|
117
|
+
* @memberof AuthLoginByToken200Response
|
|
118
|
+
*/
|
|
119
|
+
'refresh_token'?: string;
|
|
120
|
+
/**
|
|
121
|
+
*
|
|
122
|
+
* @type {string}
|
|
123
|
+
* @memberof AuthLoginByToken200Response
|
|
124
|
+
*/
|
|
125
|
+
'token_type'?: string;
|
|
126
|
+
/**
|
|
127
|
+
*
|
|
128
|
+
* @type {string}
|
|
129
|
+
* @memberof AuthLoginByToken200Response
|
|
130
|
+
*/
|
|
131
|
+
'expires_in'?: string;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
*
|
|
135
|
+
* @export
|
|
136
|
+
* @interface AuthLoginByTokenRequest
|
|
137
|
+
*/
|
|
138
|
+
export interface AuthLoginByTokenRequest {
|
|
139
|
+
/**
|
|
140
|
+
*
|
|
141
|
+
* @type {string}
|
|
142
|
+
* @memberof AuthLoginByTokenRequest
|
|
143
|
+
*/
|
|
144
|
+
'email'?: string;
|
|
145
|
+
/**
|
|
146
|
+
*
|
|
147
|
+
* @type {string}
|
|
148
|
+
* @memberof AuthLoginByTokenRequest
|
|
149
|
+
*/
|
|
150
|
+
'token'?: string;
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
*
|
|
154
|
+
* @export
|
|
155
|
+
* @interface AuthLoginRequest
|
|
156
|
+
*/
|
|
157
|
+
export interface AuthLoginRequest {
|
|
158
|
+
/**
|
|
159
|
+
*
|
|
160
|
+
* @type {string}
|
|
161
|
+
* @memberof AuthLoginRequest
|
|
162
|
+
*/
|
|
163
|
+
'username'?: string;
|
|
164
|
+
/**
|
|
165
|
+
*
|
|
166
|
+
* @type {string}
|
|
167
|
+
* @memberof AuthLoginRequest
|
|
168
|
+
*/
|
|
169
|
+
'password'?: string;
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
*
|
|
173
|
+
* @export
|
|
174
|
+
* @interface AuthMe200Response
|
|
175
|
+
*/
|
|
176
|
+
export interface AuthMe200Response {
|
|
177
|
+
/**
|
|
178
|
+
*
|
|
179
|
+
* @type {string}
|
|
180
|
+
* @memberof AuthMe200Response
|
|
181
|
+
*/
|
|
182
|
+
'uuid'?: string;
|
|
183
|
+
/**
|
|
184
|
+
*
|
|
185
|
+
* @type {string}
|
|
186
|
+
* @memberof AuthMe200Response
|
|
187
|
+
*/
|
|
188
|
+
'username'?: string;
|
|
189
|
+
/**
|
|
190
|
+
*
|
|
191
|
+
* @type {string}
|
|
192
|
+
* @memberof AuthMe200Response
|
|
193
|
+
*/
|
|
194
|
+
'email'?: string;
|
|
195
|
+
/**
|
|
196
|
+
*
|
|
197
|
+
* @type {string}
|
|
198
|
+
* @memberof AuthMe200Response
|
|
199
|
+
*/
|
|
200
|
+
'name'?: string;
|
|
201
|
+
/**
|
|
202
|
+
* Promoções que o usuário tem acesso
|
|
203
|
+
* @type {Array<AuthMe200ResponsePromotionsInner>}
|
|
204
|
+
* @memberof AuthMe200Response
|
|
205
|
+
*/
|
|
206
|
+
'promotions'?: Array<AuthMe200ResponsePromotionsInner>;
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
*
|
|
210
|
+
* @export
|
|
211
|
+
* @interface AuthMe200ResponsePromotionsInner
|
|
212
|
+
*/
|
|
213
|
+
export interface AuthMe200ResponsePromotionsInner {
|
|
214
|
+
/**
|
|
215
|
+
*
|
|
216
|
+
* @type {string}
|
|
217
|
+
* @memberof AuthMe200ResponsePromotionsInner
|
|
218
|
+
*/
|
|
219
|
+
'uuid'?: string;
|
|
220
|
+
/**
|
|
221
|
+
*
|
|
222
|
+
* @type {string}
|
|
223
|
+
* @memberof AuthMe200ResponsePromotionsInner
|
|
224
|
+
*/
|
|
225
|
+
'name'?: string;
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
*
|
|
229
|
+
* @export
|
|
230
|
+
* @interface AuthRefreshTokenRequest
|
|
231
|
+
*/
|
|
232
|
+
export interface AuthRefreshTokenRequest {
|
|
233
|
+
/**
|
|
234
|
+
*
|
|
235
|
+
* @type {string}
|
|
236
|
+
* @memberof AuthRefreshTokenRequest
|
|
237
|
+
*/
|
|
238
|
+
'refresh_token'?: string;
|
|
239
|
+
}
|
|
240
|
+
/**
|
|
241
|
+
*
|
|
242
|
+
* @export
|
|
243
|
+
* @interface Metrics200Response
|
|
244
|
+
*/
|
|
245
|
+
export interface Metrics200Response {
|
|
246
|
+
/**
|
|
247
|
+
*
|
|
248
|
+
* @type {Array<Metrics200ResponseUsersInner>}
|
|
249
|
+
* @memberof Metrics200Response
|
|
250
|
+
*/
|
|
251
|
+
'users'?: Array<Metrics200ResponseUsersInner>;
|
|
252
|
+
/**
|
|
253
|
+
*
|
|
254
|
+
* @type {Array<Metrics200ResponseUsersInner>}
|
|
255
|
+
* @memberof Metrics200Response
|
|
256
|
+
*/
|
|
257
|
+
'coupons'?: Array<Metrics200ResponseUsersInner>;
|
|
258
|
+
/**
|
|
259
|
+
*
|
|
260
|
+
* @type {Array<Metrics200ResponseUsersInner>}
|
|
261
|
+
* @memberof Metrics200Response
|
|
262
|
+
*/
|
|
263
|
+
'luckyNumbers'?: Array<Metrics200ResponseUsersInner>;
|
|
264
|
+
}
|
|
265
|
+
/**
|
|
266
|
+
*
|
|
267
|
+
* @export
|
|
268
|
+
* @interface Metrics200ResponseUsersInner
|
|
269
|
+
*/
|
|
270
|
+
export interface Metrics200ResponseUsersInner {
|
|
271
|
+
/**
|
|
272
|
+
*
|
|
273
|
+
* @type {number}
|
|
274
|
+
* @memberof Metrics200ResponseUsersInner
|
|
275
|
+
*/
|
|
276
|
+
'value'?: number;
|
|
277
|
+
/**
|
|
278
|
+
*
|
|
279
|
+
* @type {string}
|
|
280
|
+
* @memberof Metrics200ResponseUsersInner
|
|
281
|
+
*/
|
|
282
|
+
'time'?: string;
|
|
283
|
+
}
|
|
284
|
+
/**
|
|
285
|
+
*
|
|
286
|
+
* @export
|
|
287
|
+
* @interface Metrics400Response
|
|
288
|
+
*/
|
|
289
|
+
export interface Metrics400Response {
|
|
290
|
+
/**
|
|
291
|
+
*
|
|
292
|
+
* @type {string}
|
|
293
|
+
* @memberof Metrics400Response
|
|
294
|
+
*/
|
|
295
|
+
'message'?: string;
|
|
296
|
+
}
|
|
297
|
+
/**
|
|
298
|
+
*
|
|
299
|
+
* @export
|
|
300
|
+
* @interface PromotionPullConfiguration200Response
|
|
301
|
+
*/
|
|
302
|
+
export interface PromotionPullConfiguration200Response {
|
|
303
|
+
/**
|
|
304
|
+
*
|
|
305
|
+
* @type {string}
|
|
306
|
+
* @memberof PromotionPullConfiguration200Response
|
|
307
|
+
*/
|
|
308
|
+
'action'?: string;
|
|
309
|
+
/**
|
|
310
|
+
*
|
|
311
|
+
* @type {string}
|
|
312
|
+
* @memberof PromotionPullConfiguration200Response
|
|
313
|
+
*/
|
|
314
|
+
'result'?: string;
|
|
315
|
+
/**
|
|
316
|
+
*
|
|
317
|
+
* @type {string}
|
|
318
|
+
* @memberof PromotionPullConfiguration200Response
|
|
319
|
+
*/
|
|
320
|
+
'message'?: string;
|
|
321
|
+
}
|
|
322
|
+
/**
|
|
323
|
+
*
|
|
324
|
+
* @export
|
|
325
|
+
* @interface PromotionPullConfiguration500Response
|
|
326
|
+
*/
|
|
327
|
+
export interface PromotionPullConfiguration500Response {
|
|
328
|
+
/**
|
|
329
|
+
*
|
|
330
|
+
* @type {string}
|
|
331
|
+
* @memberof PromotionPullConfiguration500Response
|
|
332
|
+
*/
|
|
333
|
+
'action'?: string;
|
|
334
|
+
/**
|
|
335
|
+
*
|
|
336
|
+
* @type {string}
|
|
337
|
+
* @memberof PromotionPullConfiguration500Response
|
|
338
|
+
*/
|
|
339
|
+
'result'?: string;
|
|
340
|
+
/**
|
|
341
|
+
*
|
|
342
|
+
* @type {string}
|
|
343
|
+
* @memberof PromotionPullConfiguration500Response
|
|
344
|
+
*/
|
|
345
|
+
'message'?: string;
|
|
346
|
+
}
|
|
347
|
+
/**
|
|
348
|
+
*
|
|
349
|
+
* @export
|
|
350
|
+
* @interface PromotionPullConfigurationRequest
|
|
351
|
+
*/
|
|
352
|
+
export interface PromotionPullConfigurationRequest {
|
|
353
|
+
/**
|
|
354
|
+
*
|
|
355
|
+
* @type {PromotionPullConfigurationRequestDb}
|
|
356
|
+
* @memberof PromotionPullConfigurationRequest
|
|
357
|
+
*/
|
|
358
|
+
'db'?: PromotionPullConfigurationRequestDb;
|
|
359
|
+
}
|
|
360
|
+
/**
|
|
361
|
+
*
|
|
362
|
+
* @export
|
|
363
|
+
* @interface PromotionPullConfigurationRequestDb
|
|
364
|
+
*/
|
|
365
|
+
export interface PromotionPullConfigurationRequestDb {
|
|
366
|
+
/**
|
|
367
|
+
*
|
|
368
|
+
* @type {string}
|
|
369
|
+
* @memberof PromotionPullConfigurationRequestDb
|
|
370
|
+
*/
|
|
371
|
+
'host'?: string;
|
|
372
|
+
/**
|
|
373
|
+
*
|
|
374
|
+
* @type {string}
|
|
375
|
+
* @memberof PromotionPullConfigurationRequestDb
|
|
376
|
+
*/
|
|
377
|
+
'port'?: string;
|
|
378
|
+
/**
|
|
379
|
+
*
|
|
380
|
+
* @type {string}
|
|
381
|
+
* @memberof PromotionPullConfigurationRequestDb
|
|
382
|
+
*/
|
|
383
|
+
'name'?: string;
|
|
384
|
+
/**
|
|
385
|
+
*
|
|
386
|
+
* @type {string}
|
|
387
|
+
* @memberof PromotionPullConfigurationRequestDb
|
|
388
|
+
*/
|
|
389
|
+
'user'?: string;
|
|
390
|
+
/**
|
|
391
|
+
*
|
|
392
|
+
* @type {string}
|
|
393
|
+
* @memberof PromotionPullConfigurationRequestDb
|
|
394
|
+
*/
|
|
395
|
+
'pass'?: string;
|
|
396
|
+
}
|
|
397
|
+
/**
|
|
398
|
+
*
|
|
399
|
+
* @export
|
|
400
|
+
* @interface PromotionStart200Response
|
|
401
|
+
*/
|
|
402
|
+
export interface PromotionStart200Response {
|
|
403
|
+
/**
|
|
404
|
+
*
|
|
405
|
+
* @type {string}
|
|
406
|
+
* @memberof PromotionStart200Response
|
|
407
|
+
*/
|
|
408
|
+
'action'?: string;
|
|
409
|
+
/**
|
|
410
|
+
*
|
|
411
|
+
* @type {string}
|
|
412
|
+
* @memberof PromotionStart200Response
|
|
413
|
+
*/
|
|
414
|
+
'result'?: string;
|
|
415
|
+
/**
|
|
416
|
+
*
|
|
417
|
+
* @type {string}
|
|
418
|
+
* @memberof PromotionStart200Response
|
|
419
|
+
*/
|
|
420
|
+
'message'?: string;
|
|
421
|
+
/**
|
|
422
|
+
*
|
|
423
|
+
* @type {string}
|
|
424
|
+
* @memberof PromotionStart200Response
|
|
425
|
+
*/
|
|
426
|
+
'promotion_id'?: string;
|
|
427
|
+
/**
|
|
428
|
+
*
|
|
429
|
+
* @type {PromotionStart200ResponseUser}
|
|
430
|
+
* @memberof PromotionStart200Response
|
|
431
|
+
*/
|
|
432
|
+
'user'?: PromotionStart200ResponseUser;
|
|
433
|
+
}
|
|
434
|
+
/**
|
|
435
|
+
*
|
|
436
|
+
* @export
|
|
437
|
+
* @interface PromotionStart200ResponseUser
|
|
438
|
+
*/
|
|
439
|
+
export interface PromotionStart200ResponseUser {
|
|
440
|
+
/**
|
|
441
|
+
*
|
|
442
|
+
* @type {string}
|
|
443
|
+
* @memberof PromotionStart200ResponseUser
|
|
444
|
+
*/
|
|
445
|
+
'password'?: string;
|
|
446
|
+
/**
|
|
447
|
+
*
|
|
448
|
+
* @type {string}
|
|
449
|
+
* @memberof PromotionStart200ResponseUser
|
|
450
|
+
*/
|
|
451
|
+
'username'?: string;
|
|
452
|
+
/**
|
|
453
|
+
*
|
|
454
|
+
* @type {string}
|
|
455
|
+
* @memberof PromotionStart200ResponseUser
|
|
456
|
+
*/
|
|
457
|
+
'name'?: string;
|
|
458
|
+
/**
|
|
459
|
+
*
|
|
460
|
+
* @type {string}
|
|
461
|
+
* @memberof PromotionStart200ResponseUser
|
|
462
|
+
*/
|
|
463
|
+
'email'?: string;
|
|
464
|
+
/**
|
|
465
|
+
*
|
|
466
|
+
* @type {string}
|
|
467
|
+
* @memberof PromotionStart200ResponseUser
|
|
468
|
+
*/
|
|
469
|
+
'uuid'?: string;
|
|
470
|
+
/**
|
|
471
|
+
*
|
|
472
|
+
* @type {Array<string>}
|
|
473
|
+
* @memberof PromotionStart200ResponseUser
|
|
474
|
+
*/
|
|
475
|
+
'permissions'?: Array<PromotionStart200ResponseUserPermissionsEnum>;
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
export const PromotionStart200ResponseUserPermissionsEnum = {
|
|
479
|
+
PromotionUsersIndex: 'promotion.users.index',
|
|
480
|
+
PromotionUsersCreate: 'promotion.users.create',
|
|
481
|
+
PromotionArticlesIndex: 'promotion.articles.index',
|
|
482
|
+
PromotionArticlesCreate: 'promotion.articles.create',
|
|
483
|
+
PromotionArticlesDelete: 'promotion.articles.delete',
|
|
484
|
+
PromotionAwardedsIndex: 'promotion.awardeds.index',
|
|
485
|
+
PromotionAwardsIndex: 'promotion.awards.index',
|
|
486
|
+
PromotionAwardsCreate: 'promotion.awards.create',
|
|
487
|
+
PromotionAwardsDelete: 'promotion.awards.delete',
|
|
488
|
+
PromotionBrandingIndex: 'promotion.branding.index',
|
|
489
|
+
PromotionBrandingCreate: 'promotion.branding.create',
|
|
490
|
+
PromotionDocumentRulesIndex: 'promotion.document_rules.index',
|
|
491
|
+
PromotionDocumentRulesCreate: 'promotion.document_rules.create',
|
|
492
|
+
PromotionFaqIndex: 'promotion.faq.index',
|
|
493
|
+
PromotionFaqCreate: 'promotion.faq.create',
|
|
494
|
+
PromotionFaqDelete: 'promotion.faq.delete',
|
|
495
|
+
PromotionLuckyNumbersIndex: 'promotion.lucky_numbers.index',
|
|
496
|
+
PromotionLuckyNumbersCreate: 'promotion.lucky_numbers.create',
|
|
497
|
+
PromotionLuckyNumbersUpdate: 'promotion.lucky_numbers.update',
|
|
498
|
+
PromotionLuckyNumbersDelete: 'promotion.lucky_numbers.delete',
|
|
499
|
+
PromotionRafflesIndex: 'promotion.raffles.index',
|
|
500
|
+
PromotionRafflesCreate: 'promotion.raffles.create',
|
|
501
|
+
PromotionRafflesDelete: 'promotion.raffles.delete',
|
|
502
|
+
PromotionTicketsIndex: 'promotion.tickets.index',
|
|
503
|
+
PromotionTicketsCreate: 'promotion.tickets.create',
|
|
504
|
+
PromotionTicketsDelete: 'promotion.tickets.delete',
|
|
505
|
+
PromotionBlacklistIndex: 'promotion.blacklist.index',
|
|
506
|
+
PromotionBlacklistCreate: 'promotion.blacklist.create',
|
|
507
|
+
PromotionBlacklistDelete: 'promotion.blacklist.delete',
|
|
508
|
+
PromotionOrdersIndex: 'promotion.orders.index',
|
|
509
|
+
PromotionOrdersCreate: 'promotion.orders.create',
|
|
510
|
+
PromotionCouponsIndex: 'promotion.coupons.index',
|
|
511
|
+
PromotionCouponsCreate: 'promotion.coupons.create',
|
|
512
|
+
PromotionCouponsDelete: 'promotion.coupons.delete',
|
|
513
|
+
PromotionConfigsIndex: 'promotion.configs.index',
|
|
514
|
+
PromotionUsersDelete: 'promotion.users.delete',
|
|
515
|
+
PromotionProductsIndex: 'promotion.products.index',
|
|
516
|
+
PromotionProductsCreate: 'promotion.products.create',
|
|
517
|
+
PromotionProductsDelete: 'promotion.products.delete',
|
|
518
|
+
PromotionStoresIndex: 'promotion.stores.index',
|
|
519
|
+
PromotionStoresCreate: 'promotion.stores.create',
|
|
520
|
+
PromotionStoresDelete: 'promotion.stores.delete',
|
|
521
|
+
PromotionConfigsWebhookConfig: 'promotion.configs.webhook_config'
|
|
522
|
+
} as const;
|
|
523
|
+
|
|
524
|
+
export type PromotionStart200ResponseUserPermissionsEnum = typeof PromotionStart200ResponseUserPermissionsEnum[keyof typeof PromotionStart200ResponseUserPermissionsEnum];
|
|
525
|
+
|
|
526
|
+
/**
|
|
527
|
+
*
|
|
528
|
+
* @export
|
|
529
|
+
* @interface PromotionStartRequest
|
|
530
|
+
*/
|
|
531
|
+
export interface PromotionStartRequest {
|
|
532
|
+
/**
|
|
533
|
+
*
|
|
534
|
+
* @type {PromotionPullConfigurationRequestDb}
|
|
535
|
+
* @memberof PromotionStartRequest
|
|
536
|
+
*/
|
|
537
|
+
'db'?: PromotionPullConfigurationRequestDb;
|
|
538
|
+
/**
|
|
539
|
+
*
|
|
540
|
+
* @type {PromotionStartRequestUser}
|
|
541
|
+
* @memberof PromotionStartRequest
|
|
542
|
+
*/
|
|
543
|
+
'user'?: PromotionStartRequestUser;
|
|
544
|
+
/**
|
|
545
|
+
*
|
|
546
|
+
* @type {Array<string>}
|
|
547
|
+
* @memberof PromotionStartRequest
|
|
548
|
+
*/
|
|
549
|
+
'permissions'?: Array<PromotionStartRequestPermissionsEnum>;
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
export const PromotionStartRequestPermissionsEnum = {
|
|
553
|
+
PromotionUsersIndex: 'promotion.users.index',
|
|
554
|
+
PromotionUsersCreate: 'promotion.users.create',
|
|
555
|
+
PromotionArticlesIndex: 'promotion.articles.index',
|
|
556
|
+
PromotionArticlesCreate: 'promotion.articles.create',
|
|
557
|
+
PromotionArticlesDelete: 'promotion.articles.delete',
|
|
558
|
+
PromotionAwardedsIndex: 'promotion.awardeds.index',
|
|
559
|
+
PromotionAwardsIndex: 'promotion.awards.index',
|
|
560
|
+
PromotionAwardsCreate: 'promotion.awards.create',
|
|
561
|
+
PromotionAwardsDelete: 'promotion.awards.delete',
|
|
562
|
+
PromotionBrandingIndex: 'promotion.branding.index',
|
|
563
|
+
PromotionBrandingCreate: 'promotion.branding.create',
|
|
564
|
+
PromotionDocumentRulesIndex: 'promotion.document_rules.index',
|
|
565
|
+
PromotionDocumentRulesCreate: 'promotion.document_rules.create',
|
|
566
|
+
PromotionFaqIndex: 'promotion.faq.index',
|
|
567
|
+
PromotionFaqCreate: 'promotion.faq.create',
|
|
568
|
+
PromotionFaqDelete: 'promotion.faq.delete',
|
|
569
|
+
PromotionLuckyNumbersIndex: 'promotion.lucky_numbers.index',
|
|
570
|
+
PromotionLuckyNumbersCreate: 'promotion.lucky_numbers.create',
|
|
571
|
+
PromotionLuckyNumbersUpdate: 'promotion.lucky_numbers.update',
|
|
572
|
+
PromotionLuckyNumbersDelete: 'promotion.lucky_numbers.delete',
|
|
573
|
+
PromotionRafflesIndex: 'promotion.raffles.index',
|
|
574
|
+
PromotionRafflesCreate: 'promotion.raffles.create',
|
|
575
|
+
PromotionRafflesDelete: 'promotion.raffles.delete',
|
|
576
|
+
PromotionTicketsIndex: 'promotion.tickets.index',
|
|
577
|
+
PromotionTicketsCreate: 'promotion.tickets.create',
|
|
578
|
+
PromotionTicketsDelete: 'promotion.tickets.delete',
|
|
579
|
+
PromotionBlacklistIndex: 'promotion.blacklist.index',
|
|
580
|
+
PromotionBlacklistCreate: 'promotion.blacklist.create',
|
|
581
|
+
PromotionBlacklistDelete: 'promotion.blacklist.delete',
|
|
582
|
+
PromotionOrdersIndex: 'promotion.orders.index',
|
|
583
|
+
PromotionOrdersCreate: 'promotion.orders.create',
|
|
584
|
+
PromotionCouponsIndex: 'promotion.coupons.index',
|
|
585
|
+
PromotionCouponsCreate: 'promotion.coupons.create',
|
|
586
|
+
PromotionCouponsDelete: 'promotion.coupons.delete',
|
|
587
|
+
PromotionConfigsIndex: 'promotion.configs.index',
|
|
588
|
+
PromotionUsersDelete: 'promotion.users.delete',
|
|
589
|
+
PromotionProductsIndex: 'promotion.products.index',
|
|
590
|
+
PromotionProductsCreate: 'promotion.products.create',
|
|
591
|
+
PromotionProductsDelete: 'promotion.products.delete',
|
|
592
|
+
PromotionStoresIndex: 'promotion.stores.index',
|
|
593
|
+
PromotionStoresCreate: 'promotion.stores.create',
|
|
594
|
+
PromotionStoresDelete: 'promotion.stores.delete',
|
|
595
|
+
PromotionConfigsWebhookConfig: 'promotion.configs.webhook_config'
|
|
596
|
+
} as const;
|
|
597
|
+
|
|
598
|
+
export type PromotionStartRequestPermissionsEnum = typeof PromotionStartRequestPermissionsEnum[keyof typeof PromotionStartRequestPermissionsEnum];
|
|
599
|
+
|
|
600
|
+
/**
|
|
601
|
+
*
|
|
602
|
+
* @export
|
|
603
|
+
* @interface PromotionStartRequestUser
|
|
604
|
+
*/
|
|
605
|
+
export interface PromotionStartRequestUser {
|
|
606
|
+
/**
|
|
607
|
+
*
|
|
608
|
+
* @type {string}
|
|
609
|
+
* @memberof PromotionStartRequestUser
|
|
610
|
+
*/
|
|
611
|
+
'username'?: string;
|
|
612
|
+
/**
|
|
613
|
+
*
|
|
614
|
+
* @type {string}
|
|
615
|
+
* @memberof PromotionStartRequestUser
|
|
616
|
+
*/
|
|
617
|
+
'name'?: string;
|
|
618
|
+
/**
|
|
619
|
+
*
|
|
620
|
+
* @type {string}
|
|
621
|
+
* @memberof PromotionStartRequestUser
|
|
622
|
+
*/
|
|
623
|
+
'email'?: string;
|
|
624
|
+
}
|
|
625
|
+
/**
|
|
626
|
+
*
|
|
627
|
+
* @export
|
|
628
|
+
* @interface RolesAttachPermissions200Response
|
|
629
|
+
*/
|
|
630
|
+
export interface RolesAttachPermissions200Response {
|
|
631
|
+
/**
|
|
632
|
+
*
|
|
633
|
+
* @type {string}
|
|
634
|
+
* @memberof RolesAttachPermissions200Response
|
|
635
|
+
*/
|
|
636
|
+
'action'?: string;
|
|
637
|
+
/**
|
|
638
|
+
*
|
|
639
|
+
* @type {string}
|
|
640
|
+
* @memberof RolesAttachPermissions200Response
|
|
641
|
+
*/
|
|
642
|
+
'result'?: string;
|
|
643
|
+
/**
|
|
644
|
+
*
|
|
645
|
+
* @type {string}
|
|
646
|
+
* @memberof RolesAttachPermissions200Response
|
|
647
|
+
*/
|
|
648
|
+
'message'?: string;
|
|
649
|
+
/**
|
|
650
|
+
*
|
|
651
|
+
* @type {object}
|
|
652
|
+
* @memberof RolesAttachPermissions200Response
|
|
653
|
+
*/
|
|
654
|
+
'role'?: object;
|
|
655
|
+
/**
|
|
656
|
+
*
|
|
657
|
+
* @type {Array<object>}
|
|
658
|
+
* @memberof RolesAttachPermissions200Response
|
|
659
|
+
*/
|
|
660
|
+
'permissions'?: Array<object>;
|
|
661
|
+
}
|
|
662
|
+
/**
|
|
663
|
+
*
|
|
664
|
+
* @export
|
|
665
|
+
* @interface RolesAttachPermissions422Response
|
|
666
|
+
*/
|
|
667
|
+
export interface RolesAttachPermissions422Response {
|
|
668
|
+
/**
|
|
669
|
+
*
|
|
670
|
+
* @type {Array<string>}
|
|
671
|
+
* @memberof RolesAttachPermissions422Response
|
|
672
|
+
*/
|
|
673
|
+
'permissions'?: Array<string>;
|
|
674
|
+
}
|
|
675
|
+
/**
|
|
676
|
+
*
|
|
677
|
+
* @export
|
|
678
|
+
* @interface RolesAttachPermissionsRequest
|
|
679
|
+
*/
|
|
680
|
+
export interface RolesAttachPermissionsRequest {
|
|
681
|
+
/**
|
|
682
|
+
*
|
|
683
|
+
* @type {Array<number>}
|
|
684
|
+
* @memberof RolesAttachPermissionsRequest
|
|
685
|
+
*/
|
|
686
|
+
'permissions': Array<number>;
|
|
687
|
+
}
|
|
688
|
+
/**
|
|
689
|
+
*
|
|
690
|
+
* @export
|
|
691
|
+
* @interface RolesDestroy400Response
|
|
692
|
+
*/
|
|
693
|
+
export interface RolesDestroy400Response {
|
|
694
|
+
/**
|
|
695
|
+
*
|
|
696
|
+
* @type {string}
|
|
697
|
+
* @memberof RolesDestroy400Response
|
|
698
|
+
*/
|
|
699
|
+
'message'?: string;
|
|
700
|
+
}
|
|
701
|
+
/**
|
|
702
|
+
*
|
|
703
|
+
* @export
|
|
704
|
+
* @interface RolesIndex200Response
|
|
705
|
+
*/
|
|
706
|
+
export interface RolesIndex200Response {
|
|
707
|
+
/**
|
|
708
|
+
*
|
|
709
|
+
* @type {string}
|
|
710
|
+
* @memberof RolesIndex200Response
|
|
711
|
+
*/
|
|
712
|
+
'action'?: string;
|
|
713
|
+
/**
|
|
714
|
+
*
|
|
715
|
+
* @type {string}
|
|
716
|
+
* @memberof RolesIndex200Response
|
|
717
|
+
*/
|
|
718
|
+
'result'?: string;
|
|
719
|
+
/**
|
|
720
|
+
*
|
|
721
|
+
* @type {string}
|
|
722
|
+
* @memberof RolesIndex200Response
|
|
723
|
+
*/
|
|
724
|
+
'message'?: string;
|
|
725
|
+
/**
|
|
726
|
+
*
|
|
727
|
+
* @type {Array<RolesIndex200ResponseRolesInner>}
|
|
728
|
+
* @memberof RolesIndex200Response
|
|
729
|
+
*/
|
|
730
|
+
'roles'?: Array<RolesIndex200ResponseRolesInner>;
|
|
731
|
+
}
|
|
732
|
+
/**
|
|
733
|
+
*
|
|
734
|
+
* @export
|
|
735
|
+
* @interface RolesIndex200ResponseRolesInner
|
|
736
|
+
*/
|
|
737
|
+
export interface RolesIndex200ResponseRolesInner {
|
|
738
|
+
/**
|
|
739
|
+
*
|
|
740
|
+
* @type {number}
|
|
741
|
+
* @memberof RolesIndex200ResponseRolesInner
|
|
742
|
+
*/
|
|
743
|
+
'id'?: number;
|
|
744
|
+
/**
|
|
745
|
+
*
|
|
746
|
+
* @type {string}
|
|
747
|
+
* @memberof RolesIndex200ResponseRolesInner
|
|
748
|
+
*/
|
|
749
|
+
'name'?: string;
|
|
750
|
+
/**
|
|
751
|
+
*
|
|
752
|
+
* @type {string}
|
|
753
|
+
* @memberof RolesIndex200ResponseRolesInner
|
|
754
|
+
*/
|
|
755
|
+
'description'?: string;
|
|
756
|
+
/**
|
|
757
|
+
*
|
|
758
|
+
* @type {boolean}
|
|
759
|
+
* @memberof RolesIndex200ResponseRolesInner
|
|
760
|
+
*/
|
|
761
|
+
'is_active'?: boolean;
|
|
762
|
+
}
|
|
763
|
+
/**
|
|
764
|
+
*
|
|
765
|
+
* @export
|
|
766
|
+
* @interface RolesIndex500Response
|
|
767
|
+
*/
|
|
768
|
+
export interface RolesIndex500Response {
|
|
769
|
+
/**
|
|
770
|
+
*
|
|
771
|
+
* @type {string}
|
|
772
|
+
* @memberof RolesIndex500Response
|
|
773
|
+
*/
|
|
774
|
+
'message'?: string;
|
|
775
|
+
}
|
|
776
|
+
/**
|
|
777
|
+
*
|
|
778
|
+
* @export
|
|
779
|
+
* @interface RolesPermissions200Response
|
|
780
|
+
*/
|
|
781
|
+
export interface RolesPermissions200Response {
|
|
782
|
+
/**
|
|
783
|
+
*
|
|
784
|
+
* @type {string}
|
|
785
|
+
* @memberof RolesPermissions200Response
|
|
786
|
+
*/
|
|
787
|
+
'action'?: string;
|
|
788
|
+
/**
|
|
789
|
+
*
|
|
790
|
+
* @type {string}
|
|
791
|
+
* @memberof RolesPermissions200Response
|
|
792
|
+
*/
|
|
793
|
+
'result'?: string;
|
|
794
|
+
/**
|
|
795
|
+
*
|
|
796
|
+
* @type {string}
|
|
797
|
+
* @memberof RolesPermissions200Response
|
|
798
|
+
*/
|
|
799
|
+
'message'?: string;
|
|
800
|
+
/**
|
|
801
|
+
*
|
|
802
|
+
* @type {object}
|
|
803
|
+
* @memberof RolesPermissions200Response
|
|
804
|
+
*/
|
|
805
|
+
'role'?: object;
|
|
806
|
+
/**
|
|
807
|
+
*
|
|
808
|
+
* @type {Array<object>}
|
|
809
|
+
* @memberof RolesPermissions200Response
|
|
810
|
+
*/
|
|
811
|
+
'permissions'?: Array<object>;
|
|
812
|
+
}
|
|
813
|
+
/**
|
|
814
|
+
*
|
|
815
|
+
* @export
|
|
816
|
+
* @interface RolesShow200Response
|
|
817
|
+
*/
|
|
818
|
+
export interface RolesShow200Response {
|
|
819
|
+
/**
|
|
820
|
+
*
|
|
821
|
+
* @type {string}
|
|
822
|
+
* @memberof RolesShow200Response
|
|
823
|
+
*/
|
|
824
|
+
'action'?: string;
|
|
825
|
+
/**
|
|
826
|
+
*
|
|
827
|
+
* @type {string}
|
|
828
|
+
* @memberof RolesShow200Response
|
|
829
|
+
*/
|
|
830
|
+
'result'?: string;
|
|
831
|
+
/**
|
|
832
|
+
*
|
|
833
|
+
* @type {string}
|
|
834
|
+
* @memberof RolesShow200Response
|
|
835
|
+
*/
|
|
836
|
+
'message'?: string;
|
|
837
|
+
/**
|
|
838
|
+
*
|
|
839
|
+
* @type {RolesShow200ResponseRole}
|
|
840
|
+
* @memberof RolesShow200Response
|
|
841
|
+
*/
|
|
842
|
+
'role'?: RolesShow200ResponseRole;
|
|
843
|
+
/**
|
|
844
|
+
*
|
|
845
|
+
* @type {Array<RolesShow200ResponsePermissionsInner>}
|
|
846
|
+
* @memberof RolesShow200Response
|
|
847
|
+
*/
|
|
848
|
+
'permissions'?: Array<RolesShow200ResponsePermissionsInner>;
|
|
849
|
+
}
|
|
850
|
+
/**
|
|
851
|
+
*
|
|
852
|
+
* @export
|
|
853
|
+
* @interface RolesShow200ResponsePermissionsInner
|
|
854
|
+
*/
|
|
855
|
+
export interface RolesShow200ResponsePermissionsInner {
|
|
856
|
+
/**
|
|
857
|
+
*
|
|
858
|
+
* @type {number}
|
|
859
|
+
* @memberof RolesShow200ResponsePermissionsInner
|
|
860
|
+
*/
|
|
861
|
+
'id'?: number;
|
|
862
|
+
/**
|
|
863
|
+
*
|
|
864
|
+
* @type {string}
|
|
865
|
+
* @memberof RolesShow200ResponsePermissionsInner
|
|
866
|
+
*/
|
|
867
|
+
'key'?: string;
|
|
868
|
+
/**
|
|
869
|
+
*
|
|
870
|
+
* @type {string}
|
|
871
|
+
* @memberof RolesShow200ResponsePermissionsInner
|
|
872
|
+
*/
|
|
873
|
+
'title'?: string;
|
|
874
|
+
/**
|
|
875
|
+
*
|
|
876
|
+
* @type {string}
|
|
877
|
+
* @memberof RolesShow200ResponsePermissionsInner
|
|
878
|
+
*/
|
|
879
|
+
'description'?: string;
|
|
880
|
+
/**
|
|
881
|
+
*
|
|
882
|
+
* @type {string}
|
|
883
|
+
* @memberof RolesShow200ResponsePermissionsInner
|
|
884
|
+
*/
|
|
885
|
+
'category'?: string;
|
|
886
|
+
/**
|
|
887
|
+
*
|
|
888
|
+
* @type {string}
|
|
889
|
+
* @memberof RolesShow200ResponsePermissionsInner
|
|
890
|
+
*/
|
|
891
|
+
'action'?: string;
|
|
892
|
+
/**
|
|
893
|
+
*
|
|
894
|
+
* @type {boolean}
|
|
895
|
+
* @memberof RolesShow200ResponsePermissionsInner
|
|
896
|
+
*/
|
|
897
|
+
'is_active'?: boolean;
|
|
898
|
+
}
|
|
899
|
+
/**
|
|
900
|
+
*
|
|
901
|
+
* @export
|
|
902
|
+
* @interface RolesShow200ResponseRole
|
|
903
|
+
*/
|
|
904
|
+
export interface RolesShow200ResponseRole {
|
|
905
|
+
/**
|
|
906
|
+
*
|
|
907
|
+
* @type {number}
|
|
908
|
+
* @memberof RolesShow200ResponseRole
|
|
909
|
+
*/
|
|
910
|
+
'id'?: number;
|
|
911
|
+
/**
|
|
912
|
+
*
|
|
913
|
+
* @type {string}
|
|
914
|
+
* @memberof RolesShow200ResponseRole
|
|
915
|
+
*/
|
|
916
|
+
'name'?: string;
|
|
917
|
+
/**
|
|
918
|
+
*
|
|
919
|
+
* @type {string}
|
|
920
|
+
* @memberof RolesShow200ResponseRole
|
|
921
|
+
*/
|
|
922
|
+
'description'?: string;
|
|
923
|
+
/**
|
|
924
|
+
*
|
|
925
|
+
* @type {boolean}
|
|
926
|
+
* @memberof RolesShow200ResponseRole
|
|
927
|
+
*/
|
|
928
|
+
'is_active'?: boolean;
|
|
929
|
+
}
|
|
930
|
+
/**
|
|
931
|
+
*
|
|
932
|
+
* @export
|
|
933
|
+
* @interface RolesStore201Response
|
|
934
|
+
*/
|
|
935
|
+
export interface RolesStore201Response {
|
|
936
|
+
/**
|
|
937
|
+
*
|
|
938
|
+
* @type {string}
|
|
939
|
+
* @memberof RolesStore201Response
|
|
940
|
+
*/
|
|
941
|
+
'action'?: string;
|
|
942
|
+
/**
|
|
943
|
+
*
|
|
944
|
+
* @type {string}
|
|
945
|
+
* @memberof RolesStore201Response
|
|
946
|
+
*/
|
|
947
|
+
'result'?: string;
|
|
948
|
+
/**
|
|
949
|
+
*
|
|
950
|
+
* @type {string}
|
|
951
|
+
* @memberof RolesStore201Response
|
|
952
|
+
*/
|
|
953
|
+
'message'?: string;
|
|
954
|
+
/**
|
|
955
|
+
*
|
|
956
|
+
* @type {RolesStore201ResponseRole}
|
|
957
|
+
* @memberof RolesStore201Response
|
|
958
|
+
*/
|
|
959
|
+
'role'?: RolesStore201ResponseRole;
|
|
960
|
+
}
|
|
961
|
+
/**
|
|
962
|
+
*
|
|
963
|
+
* @export
|
|
964
|
+
* @interface RolesStore201ResponseRole
|
|
965
|
+
*/
|
|
966
|
+
export interface RolesStore201ResponseRole {
|
|
967
|
+
/**
|
|
968
|
+
*
|
|
969
|
+
* @type {number}
|
|
970
|
+
* @memberof RolesStore201ResponseRole
|
|
971
|
+
*/
|
|
972
|
+
'id'?: number;
|
|
973
|
+
/**
|
|
974
|
+
*
|
|
975
|
+
* @type {string}
|
|
976
|
+
* @memberof RolesStore201ResponseRole
|
|
977
|
+
*/
|
|
978
|
+
'name'?: string;
|
|
979
|
+
/**
|
|
980
|
+
*
|
|
981
|
+
* @type {string}
|
|
982
|
+
* @memberof RolesStore201ResponseRole
|
|
983
|
+
*/
|
|
984
|
+
'description'?: string;
|
|
985
|
+
/**
|
|
986
|
+
*
|
|
987
|
+
* @type {boolean}
|
|
988
|
+
* @memberof RolesStore201ResponseRole
|
|
989
|
+
*/
|
|
990
|
+
'is_active'?: boolean;
|
|
991
|
+
}
|
|
992
|
+
/**
|
|
993
|
+
*
|
|
994
|
+
* @export
|
|
995
|
+
* @interface RolesStore422Response
|
|
996
|
+
*/
|
|
997
|
+
export interface RolesStore422Response {
|
|
998
|
+
/**
|
|
999
|
+
*
|
|
1000
|
+
* @type {Array<string>}
|
|
1001
|
+
* @memberof RolesStore422Response
|
|
1002
|
+
*/
|
|
1003
|
+
'name'?: Array<string>;
|
|
1004
|
+
}
|
|
1005
|
+
/**
|
|
1006
|
+
*
|
|
1007
|
+
* @export
|
|
1008
|
+
* @interface RolesStoreRequest
|
|
1009
|
+
*/
|
|
1010
|
+
export interface RolesStoreRequest {
|
|
1011
|
+
/**
|
|
1012
|
+
*
|
|
1013
|
+
* @type {string}
|
|
1014
|
+
* @memberof RolesStoreRequest
|
|
1015
|
+
*/
|
|
1016
|
+
'name': string;
|
|
1017
|
+
/**
|
|
1018
|
+
*
|
|
1019
|
+
* @type {string}
|
|
1020
|
+
* @memberof RolesStoreRequest
|
|
1021
|
+
*/
|
|
1022
|
+
'description'?: string;
|
|
1023
|
+
/**
|
|
1024
|
+
*
|
|
1025
|
+
* @type {boolean}
|
|
1026
|
+
* @memberof RolesStoreRequest
|
|
1027
|
+
*/
|
|
1028
|
+
'is_active'?: boolean;
|
|
1029
|
+
}
|
|
1030
|
+
/**
|
|
1031
|
+
*
|
|
1032
|
+
* @export
|
|
1033
|
+
* @interface RolesUpdate200Response
|
|
1034
|
+
*/
|
|
1035
|
+
export interface RolesUpdate200Response {
|
|
1036
|
+
/**
|
|
1037
|
+
*
|
|
1038
|
+
* @type {string}
|
|
1039
|
+
* @memberof RolesUpdate200Response
|
|
1040
|
+
*/
|
|
1041
|
+
'action'?: string;
|
|
1042
|
+
/**
|
|
1043
|
+
*
|
|
1044
|
+
* @type {string}
|
|
1045
|
+
* @memberof RolesUpdate200Response
|
|
1046
|
+
*/
|
|
1047
|
+
'result'?: string;
|
|
1048
|
+
/**
|
|
1049
|
+
*
|
|
1050
|
+
* @type {string}
|
|
1051
|
+
* @memberof RolesUpdate200Response
|
|
1052
|
+
*/
|
|
1053
|
+
'message'?: string;
|
|
1054
|
+
/**
|
|
1055
|
+
*
|
|
1056
|
+
* @type {object}
|
|
1057
|
+
* @memberof RolesUpdate200Response
|
|
1058
|
+
*/
|
|
1059
|
+
'role'?: object;
|
|
1060
|
+
}
|
|
1061
|
+
/**
|
|
1062
|
+
*
|
|
1063
|
+
* @export
|
|
1064
|
+
* @interface RolesUpdateRequest
|
|
1065
|
+
*/
|
|
1066
|
+
export interface RolesUpdateRequest {
|
|
1067
|
+
/**
|
|
1068
|
+
*
|
|
1069
|
+
* @type {string}
|
|
1070
|
+
* @memberof RolesUpdateRequest
|
|
1071
|
+
*/
|
|
1072
|
+
'name'?: string;
|
|
1073
|
+
/**
|
|
1074
|
+
*
|
|
1075
|
+
* @type {string}
|
|
1076
|
+
* @memberof RolesUpdateRequest
|
|
1077
|
+
*/
|
|
1078
|
+
'description'?: string;
|
|
1079
|
+
/**
|
|
1080
|
+
*
|
|
1081
|
+
* @type {boolean}
|
|
1082
|
+
* @memberof RolesUpdateRequest
|
|
1083
|
+
*/
|
|
1084
|
+
'is_active'?: boolean;
|
|
1085
|
+
}
|
|
1086
|
+
/**
|
|
1087
|
+
*
|
|
1088
|
+
* @export
|
|
1089
|
+
* @interface StepsAllow201Response
|
|
1090
|
+
*/
|
|
1091
|
+
export interface StepsAllow201Response {
|
|
1092
|
+
/**
|
|
1093
|
+
*
|
|
1094
|
+
* @type {string}
|
|
1095
|
+
* @memberof StepsAllow201Response
|
|
1096
|
+
*/
|
|
1097
|
+
'action'?: string;
|
|
1098
|
+
/**
|
|
1099
|
+
*
|
|
1100
|
+
* @type {string}
|
|
1101
|
+
* @memberof StepsAllow201Response
|
|
1102
|
+
*/
|
|
1103
|
+
'endpoint'?: string;
|
|
1104
|
+
/**
|
|
1105
|
+
*
|
|
1106
|
+
* @type {string}
|
|
1107
|
+
* @memberof StepsAllow201Response
|
|
1108
|
+
*/
|
|
1109
|
+
'result'?: string;
|
|
1110
|
+
/**
|
|
1111
|
+
*
|
|
1112
|
+
* @type {Array<any>}
|
|
1113
|
+
* @memberof StepsAllow201Response
|
|
1114
|
+
*/
|
|
1115
|
+
'steps'?: Array<any>;
|
|
1116
|
+
}
|
|
1117
|
+
/**
|
|
1118
|
+
*
|
|
1119
|
+
* @export
|
|
1120
|
+
* @interface StepsAllow409Response
|
|
1121
|
+
*/
|
|
1122
|
+
export interface StepsAllow409Response {
|
|
1123
|
+
/**
|
|
1124
|
+
*
|
|
1125
|
+
* @type {string}
|
|
1126
|
+
* @memberof StepsAllow409Response
|
|
1127
|
+
*/
|
|
1128
|
+
'action'?: string;
|
|
1129
|
+
/**
|
|
1130
|
+
*
|
|
1131
|
+
* @type {string}
|
|
1132
|
+
* @memberof StepsAllow409Response
|
|
1133
|
+
*/
|
|
1134
|
+
'endpoint'?: string;
|
|
1135
|
+
/**
|
|
1136
|
+
*
|
|
1137
|
+
* @type {string}
|
|
1138
|
+
* @memberof StepsAllow409Response
|
|
1139
|
+
*/
|
|
1140
|
+
'result'?: string;
|
|
1141
|
+
/**
|
|
1142
|
+
*
|
|
1143
|
+
* @type {string}
|
|
1144
|
+
* @memberof StepsAllow409Response
|
|
1145
|
+
*/
|
|
1146
|
+
'message'?: string;
|
|
1147
|
+
}
|
|
1148
|
+
/**
|
|
1149
|
+
*
|
|
1150
|
+
* @export
|
|
1151
|
+
* @interface StepsAllowRequest
|
|
1152
|
+
*/
|
|
1153
|
+
export interface StepsAllowRequest {
|
|
1154
|
+
/**
|
|
1155
|
+
*
|
|
1156
|
+
* @type {string}
|
|
1157
|
+
* @memberof StepsAllowRequest
|
|
1158
|
+
*/
|
|
1159
|
+
'promotion_id'?: string;
|
|
1160
|
+
/**
|
|
1161
|
+
*
|
|
1162
|
+
* @type {string}
|
|
1163
|
+
* @memberof StepsAllowRequest
|
|
1164
|
+
*/
|
|
1165
|
+
'endpoint'?: string;
|
|
1166
|
+
/**
|
|
1167
|
+
*
|
|
1168
|
+
* @type {Array<any>}
|
|
1169
|
+
* @memberof StepsAllowRequest
|
|
1170
|
+
*/
|
|
1171
|
+
'steps'?: Array<any>;
|
|
1172
|
+
}
|
|
1173
|
+
/**
|
|
1174
|
+
*
|
|
1175
|
+
* @export
|
|
1176
|
+
* @interface StepsIndex200Response
|
|
1177
|
+
*/
|
|
1178
|
+
export interface StepsIndex200Response {
|
|
1179
|
+
/**
|
|
1180
|
+
*
|
|
1181
|
+
* @type {string}
|
|
1182
|
+
* @memberof StepsIndex200Response
|
|
1183
|
+
*/
|
|
1184
|
+
'promotion_id'?: string;
|
|
1185
|
+
/**
|
|
1186
|
+
*
|
|
1187
|
+
* @type {{ [key: string]: { [key: string]: StepsIndex200ResponseStepsValueValue; }; }}
|
|
1188
|
+
* @memberof StepsIndex200Response
|
|
1189
|
+
*/
|
|
1190
|
+
'steps'?: { [key: string]: { [key: string]: StepsIndex200ResponseStepsValueValue; }; };
|
|
1191
|
+
}
|
|
1192
|
+
/**
|
|
1193
|
+
*
|
|
1194
|
+
* @export
|
|
1195
|
+
* @interface StepsIndex200ResponseStepsValueValue
|
|
1196
|
+
*/
|
|
1197
|
+
export interface StepsIndex200ResponseStepsValueValue {
|
|
1198
|
+
/**
|
|
1199
|
+
* Valor padrão da validação
|
|
1200
|
+
* @type {boolean}
|
|
1201
|
+
* @memberof StepsIndex200ResponseStepsValueValue
|
|
1202
|
+
*/
|
|
1203
|
+
'default'?: boolean;
|
|
1204
|
+
/**
|
|
1205
|
+
* Título da validação
|
|
1206
|
+
* @type {string}
|
|
1207
|
+
* @memberof StepsIndex200ResponseStepsValueValue
|
|
1208
|
+
*/
|
|
1209
|
+
'title'?: string;
|
|
1210
|
+
/**
|
|
1211
|
+
* Detalhes da validação
|
|
1212
|
+
* @type {string}
|
|
1213
|
+
* @memberof StepsIndex200ResponseStepsValueValue
|
|
1214
|
+
*/
|
|
1215
|
+
'description'?: string;
|
|
1216
|
+
/**
|
|
1217
|
+
* Se a validação está ativa
|
|
1218
|
+
* @type {boolean}
|
|
1219
|
+
* @memberof StepsIndex200ResponseStepsValueValue
|
|
1220
|
+
*/
|
|
1221
|
+
'active'?: boolean;
|
|
1222
|
+
/**
|
|
1223
|
+
* Dependências de outras validações
|
|
1224
|
+
* @type {Array<string>}
|
|
1225
|
+
* @memberof StepsIndex200ResponseStepsValueValue
|
|
1226
|
+
*/
|
|
1227
|
+
'depends_on'?: Array<string>;
|
|
1228
|
+
/**
|
|
1229
|
+
* Se a validação está obsoleta
|
|
1230
|
+
* @type {boolean}
|
|
1231
|
+
* @memberof StepsIndex200ResponseStepsValueValue
|
|
1232
|
+
*/
|
|
1233
|
+
'deprecated'?: boolean;
|
|
1234
|
+
}
|
|
1235
|
+
/**
|
|
1236
|
+
*
|
|
1237
|
+
* @export
|
|
1238
|
+
* @interface StepsUnallow201Response
|
|
1239
|
+
*/
|
|
1240
|
+
export interface StepsUnallow201Response {
|
|
1241
|
+
/**
|
|
1242
|
+
*
|
|
1243
|
+
* @type {string}
|
|
1244
|
+
* @memberof StepsUnallow201Response
|
|
1245
|
+
*/
|
|
1246
|
+
'action'?: string;
|
|
1247
|
+
/**
|
|
1248
|
+
*
|
|
1249
|
+
* @type {string}
|
|
1250
|
+
* @memberof StepsUnallow201Response
|
|
1251
|
+
*/
|
|
1252
|
+
'endpoint'?: string;
|
|
1253
|
+
/**
|
|
1254
|
+
*
|
|
1255
|
+
* @type {string}
|
|
1256
|
+
* @memberof StepsUnallow201Response
|
|
1257
|
+
*/
|
|
1258
|
+
'result'?: string;
|
|
1259
|
+
/**
|
|
1260
|
+
*
|
|
1261
|
+
* @type {Array<any>}
|
|
1262
|
+
* @memberof StepsUnallow201Response
|
|
1263
|
+
*/
|
|
1264
|
+
'steps'?: Array<any>;
|
|
1265
|
+
}
|
|
1266
|
+
/**
|
|
1267
|
+
*
|
|
1268
|
+
* @export
|
|
1269
|
+
* @interface StepsUnallow409Response
|
|
1270
|
+
*/
|
|
1271
|
+
export interface StepsUnallow409Response {
|
|
1272
|
+
/**
|
|
1273
|
+
*
|
|
1274
|
+
* @type {string}
|
|
1275
|
+
* @memberof StepsUnallow409Response
|
|
1276
|
+
*/
|
|
1277
|
+
'action'?: string;
|
|
1278
|
+
/**
|
|
1279
|
+
*
|
|
1280
|
+
* @type {string}
|
|
1281
|
+
* @memberof StepsUnallow409Response
|
|
1282
|
+
*/
|
|
1283
|
+
'endpoint'?: string;
|
|
1284
|
+
/**
|
|
1285
|
+
*
|
|
1286
|
+
* @type {string}
|
|
1287
|
+
* @memberof StepsUnallow409Response
|
|
1288
|
+
*/
|
|
1289
|
+
'result'?: string;
|
|
1290
|
+
/**
|
|
1291
|
+
*
|
|
1292
|
+
* @type {string}
|
|
1293
|
+
* @memberof StepsUnallow409Response
|
|
1294
|
+
*/
|
|
1295
|
+
'message'?: string;
|
|
1296
|
+
}
|
|
1297
|
+
/**
|
|
1298
|
+
*
|
|
1299
|
+
* @export
|
|
1300
|
+
* @interface UserGrantPermissions200Response
|
|
1301
|
+
*/
|
|
1302
|
+
export interface UserGrantPermissions200Response {
|
|
1303
|
+
/**
|
|
1304
|
+
*
|
|
1305
|
+
* @type {string}
|
|
1306
|
+
* @memberof UserGrantPermissions200Response
|
|
1307
|
+
*/
|
|
1308
|
+
'action'?: string;
|
|
1309
|
+
/**
|
|
1310
|
+
*
|
|
1311
|
+
* @type {string}
|
|
1312
|
+
* @memberof UserGrantPermissions200Response
|
|
1313
|
+
*/
|
|
1314
|
+
'result'?: string;
|
|
1315
|
+
/**
|
|
1316
|
+
*
|
|
1317
|
+
* @type {string}
|
|
1318
|
+
* @memberof UserGrantPermissions200Response
|
|
1319
|
+
*/
|
|
1320
|
+
'message'?: string;
|
|
1321
|
+
/**
|
|
1322
|
+
*
|
|
1323
|
+
* @type {Array<UserGrantPermissions200ResponseUserInner>}
|
|
1324
|
+
* @memberof UserGrantPermissions200Response
|
|
1325
|
+
*/
|
|
1326
|
+
'user'?: Array<UserGrantPermissions200ResponseUserInner>;
|
|
1327
|
+
}
|
|
1328
|
+
/**
|
|
1329
|
+
*
|
|
1330
|
+
* @export
|
|
1331
|
+
* @interface UserGrantPermissions200ResponseUserInner
|
|
1332
|
+
*/
|
|
1333
|
+
export interface UserGrantPermissions200ResponseUserInner {
|
|
1334
|
+
/**
|
|
1335
|
+
*
|
|
1336
|
+
* @type {string}
|
|
1337
|
+
* @memberof UserGrantPermissions200ResponseUserInner
|
|
1338
|
+
*/
|
|
1339
|
+
'promotion_id'?: string;
|
|
1340
|
+
/**
|
|
1341
|
+
*
|
|
1342
|
+
* @type {string}
|
|
1343
|
+
* @memberof UserGrantPermissions200ResponseUserInner
|
|
1344
|
+
*/
|
|
1345
|
+
'username'?: string;
|
|
1346
|
+
/**
|
|
1347
|
+
*
|
|
1348
|
+
* @type {Array<string>}
|
|
1349
|
+
* @memberof UserGrantPermissions200ResponseUserInner
|
|
1350
|
+
*/
|
|
1351
|
+
'permissions'?: Array<string>;
|
|
1352
|
+
}
|
|
1353
|
+
/**
|
|
1354
|
+
*
|
|
1355
|
+
* @export
|
|
1356
|
+
* @interface UserGrantPermissions500Response
|
|
1357
|
+
*/
|
|
1358
|
+
export interface UserGrantPermissions500Response {
|
|
1359
|
+
/**
|
|
1360
|
+
*
|
|
1361
|
+
* @type {string}
|
|
1362
|
+
* @memberof UserGrantPermissions500Response
|
|
1363
|
+
*/
|
|
1364
|
+
'action'?: string;
|
|
1365
|
+
/**
|
|
1366
|
+
*
|
|
1367
|
+
* @type {string}
|
|
1368
|
+
* @memberof UserGrantPermissions500Response
|
|
1369
|
+
*/
|
|
1370
|
+
'result'?: string;
|
|
1371
|
+
/**
|
|
1372
|
+
*
|
|
1373
|
+
* @type {string}
|
|
1374
|
+
* @memberof UserGrantPermissions500Response
|
|
1375
|
+
*/
|
|
1376
|
+
'message'?: string;
|
|
1377
|
+
}
|
|
1378
|
+
/**
|
|
1379
|
+
*
|
|
1380
|
+
* @export
|
|
1381
|
+
* @interface UserGrantPermissionsRequest
|
|
1382
|
+
*/
|
|
1383
|
+
export interface UserGrantPermissionsRequest {
|
|
1384
|
+
/**
|
|
1385
|
+
*
|
|
1386
|
+
* @type {string}
|
|
1387
|
+
* @memberof UserGrantPermissionsRequest
|
|
1388
|
+
*/
|
|
1389
|
+
'promotion_id'?: string;
|
|
1390
|
+
/**
|
|
1391
|
+
*
|
|
1392
|
+
* @type {string}
|
|
1393
|
+
* @memberof UserGrantPermissionsRequest
|
|
1394
|
+
*/
|
|
1395
|
+
'username'?: string;
|
|
1396
|
+
/**
|
|
1397
|
+
*
|
|
1398
|
+
* @type {Array<string>}
|
|
1399
|
+
* @memberof UserGrantPermissionsRequest
|
|
1400
|
+
*/
|
|
1401
|
+
'permissions'?: Array<string>;
|
|
1402
|
+
}
|
|
1403
|
+
/**
|
|
1404
|
+
*
|
|
1405
|
+
* @export
|
|
1406
|
+
* @interface UserRegister200Response
|
|
1407
|
+
*/
|
|
1408
|
+
export interface UserRegister200Response {
|
|
1409
|
+
/**
|
|
1410
|
+
*
|
|
1411
|
+
* @type {string}
|
|
1412
|
+
* @memberof UserRegister200Response
|
|
1413
|
+
*/
|
|
1414
|
+
'action'?: string;
|
|
1415
|
+
/**
|
|
1416
|
+
*
|
|
1417
|
+
* @type {string}
|
|
1418
|
+
* @memberof UserRegister200Response
|
|
1419
|
+
*/
|
|
1420
|
+
'result'?: string;
|
|
1421
|
+
/**
|
|
1422
|
+
*
|
|
1423
|
+
* @type {string}
|
|
1424
|
+
* @memberof UserRegister200Response
|
|
1425
|
+
*/
|
|
1426
|
+
'message'?: string;
|
|
1427
|
+
/**
|
|
1428
|
+
*
|
|
1429
|
+
* @type {Array<UserRegister200ResponseUserInner>}
|
|
1430
|
+
* @memberof UserRegister200Response
|
|
1431
|
+
*/
|
|
1432
|
+
'user'?: Array<UserRegister200ResponseUserInner>;
|
|
1433
|
+
}
|
|
1434
|
+
/**
|
|
1435
|
+
*
|
|
1436
|
+
* @export
|
|
1437
|
+
* @interface UserRegister200ResponseUserInner
|
|
1438
|
+
*/
|
|
1439
|
+
export interface UserRegister200ResponseUserInner {
|
|
1440
|
+
/**
|
|
1441
|
+
*
|
|
1442
|
+
* @type {string}
|
|
1443
|
+
* @memberof UserRegister200ResponseUserInner
|
|
1444
|
+
*/
|
|
1445
|
+
'password'?: string;
|
|
1446
|
+
/**
|
|
1447
|
+
*
|
|
1448
|
+
* @type {string}
|
|
1449
|
+
* @memberof UserRegister200ResponseUserInner
|
|
1450
|
+
*/
|
|
1451
|
+
'username'?: string;
|
|
1452
|
+
/**
|
|
1453
|
+
*
|
|
1454
|
+
* @type {string}
|
|
1455
|
+
* @memberof UserRegister200ResponseUserInner
|
|
1456
|
+
*/
|
|
1457
|
+
'name'?: string;
|
|
1458
|
+
/**
|
|
1459
|
+
*
|
|
1460
|
+
* @type {string}
|
|
1461
|
+
* @memberof UserRegister200ResponseUserInner
|
|
1462
|
+
*/
|
|
1463
|
+
'email'?: string;
|
|
1464
|
+
/**
|
|
1465
|
+
*
|
|
1466
|
+
* @type {string}
|
|
1467
|
+
* @memberof UserRegister200ResponseUserInner
|
|
1468
|
+
*/
|
|
1469
|
+
'uuid'?: string;
|
|
1470
|
+
}
|
|
1471
|
+
/**
|
|
1472
|
+
*
|
|
1473
|
+
* @export
|
|
1474
|
+
* @interface UserRegister500Response
|
|
1475
|
+
*/
|
|
1476
|
+
export interface UserRegister500Response {
|
|
1477
|
+
/**
|
|
1478
|
+
*
|
|
1479
|
+
* @type {string}
|
|
1480
|
+
* @memberof UserRegister500Response
|
|
1481
|
+
*/
|
|
1482
|
+
'action'?: string;
|
|
1483
|
+
/**
|
|
1484
|
+
*
|
|
1485
|
+
* @type {string}
|
|
1486
|
+
* @memberof UserRegister500Response
|
|
1487
|
+
*/
|
|
1488
|
+
'result'?: string;
|
|
1489
|
+
/**
|
|
1490
|
+
*
|
|
1491
|
+
* @type {string}
|
|
1492
|
+
* @memberof UserRegister500Response
|
|
1493
|
+
*/
|
|
1494
|
+
'message'?: string;
|
|
1495
|
+
}
|
|
1496
|
+
/**
|
|
1497
|
+
*
|
|
1498
|
+
* @export
|
|
1499
|
+
* @interface UserRegisterRequest
|
|
1500
|
+
*/
|
|
1501
|
+
export interface UserRegisterRequest {
|
|
1502
|
+
/**
|
|
1503
|
+
*
|
|
1504
|
+
* @type {string}
|
|
1505
|
+
* @memberof UserRegisterRequest
|
|
1506
|
+
*/
|
|
1507
|
+
'username'?: string;
|
|
1508
|
+
/**
|
|
1509
|
+
*
|
|
1510
|
+
* @type {string}
|
|
1511
|
+
* @memberof UserRegisterRequest
|
|
1512
|
+
*/
|
|
1513
|
+
'name'?: string;
|
|
1514
|
+
/**
|
|
1515
|
+
*
|
|
1516
|
+
* @type {string}
|
|
1517
|
+
* @memberof UserRegisterRequest
|
|
1518
|
+
*/
|
|
1519
|
+
'email'?: string;
|
|
1520
|
+
}
|
|
1521
|
+
/**
|
|
1522
|
+
*
|
|
1523
|
+
* @export
|
|
1524
|
+
* @interface UserShow200Response
|
|
1525
|
+
*/
|
|
1526
|
+
export interface UserShow200Response {
|
|
1527
|
+
/**
|
|
1528
|
+
*
|
|
1529
|
+
* @type {string}
|
|
1530
|
+
* @memberof UserShow200Response
|
|
1531
|
+
*/
|
|
1532
|
+
'action'?: string;
|
|
1533
|
+
/**
|
|
1534
|
+
*
|
|
1535
|
+
* @type {string}
|
|
1536
|
+
* @memberof UserShow200Response
|
|
1537
|
+
*/
|
|
1538
|
+
'result'?: string;
|
|
1539
|
+
/**
|
|
1540
|
+
*
|
|
1541
|
+
* @type {string}
|
|
1542
|
+
* @memberof UserShow200Response
|
|
1543
|
+
*/
|
|
1544
|
+
'message'?: string;
|
|
1545
|
+
/**
|
|
1546
|
+
*
|
|
1547
|
+
* @type {UserShow200ResponseUser}
|
|
1548
|
+
* @memberof UserShow200Response
|
|
1549
|
+
*/
|
|
1550
|
+
'user'?: UserShow200ResponseUser;
|
|
1551
|
+
}
|
|
1552
|
+
/**
|
|
1553
|
+
*
|
|
1554
|
+
* @export
|
|
1555
|
+
* @interface UserShow200ResponseUser
|
|
1556
|
+
*/
|
|
1557
|
+
export interface UserShow200ResponseUser {
|
|
1558
|
+
/**
|
|
1559
|
+
*
|
|
1560
|
+
* @type {string}
|
|
1561
|
+
* @memberof UserShow200ResponseUser
|
|
1562
|
+
*/
|
|
1563
|
+
'username'?: string;
|
|
1564
|
+
/**
|
|
1565
|
+
*
|
|
1566
|
+
* @type {string}
|
|
1567
|
+
* @memberof UserShow200ResponseUser
|
|
1568
|
+
*/
|
|
1569
|
+
'name'?: string;
|
|
1570
|
+
/**
|
|
1571
|
+
*
|
|
1572
|
+
* @type {string}
|
|
1573
|
+
* @memberof UserShow200ResponseUser
|
|
1574
|
+
*/
|
|
1575
|
+
'email'?: string;
|
|
1576
|
+
/**
|
|
1577
|
+
*
|
|
1578
|
+
* @type {string}
|
|
1579
|
+
* @memberof UserShow200ResponseUser
|
|
1580
|
+
*/
|
|
1581
|
+
'uuid'?: string;
|
|
1582
|
+
}
|
|
1583
|
+
/**
|
|
1584
|
+
*
|
|
1585
|
+
* @export
|
|
1586
|
+
* @interface UserShow404Response
|
|
1587
|
+
*/
|
|
1588
|
+
export interface UserShow404Response {
|
|
1589
|
+
/**
|
|
1590
|
+
*
|
|
1591
|
+
* @type {string}
|
|
1592
|
+
* @memberof UserShow404Response
|
|
1593
|
+
*/
|
|
1594
|
+
'action'?: string;
|
|
1595
|
+
/**
|
|
1596
|
+
*
|
|
1597
|
+
* @type {string}
|
|
1598
|
+
* @memberof UserShow404Response
|
|
1599
|
+
*/
|
|
1600
|
+
'result'?: string;
|
|
1601
|
+
/**
|
|
1602
|
+
*
|
|
1603
|
+
* @type {string}
|
|
1604
|
+
* @memberof UserShow404Response
|
|
1605
|
+
*/
|
|
1606
|
+
'message'?: string;
|
|
1607
|
+
}
|
|
1608
|
+
/**
|
|
1609
|
+
*
|
|
1610
|
+
* @export
|
|
1611
|
+
* @interface UserShow500Response
|
|
1612
|
+
*/
|
|
1613
|
+
export interface UserShow500Response {
|
|
1614
|
+
/**
|
|
1615
|
+
*
|
|
1616
|
+
* @type {string}
|
|
1617
|
+
* @memberof UserShow500Response
|
|
1618
|
+
*/
|
|
1619
|
+
'action'?: string;
|
|
1620
|
+
/**
|
|
1621
|
+
*
|
|
1622
|
+
* @type {string}
|
|
1623
|
+
* @memberof UserShow500Response
|
|
1624
|
+
*/
|
|
1625
|
+
'result'?: string;
|
|
1626
|
+
/**
|
|
1627
|
+
*
|
|
1628
|
+
* @type {string}
|
|
1629
|
+
* @memberof UserShow500Response
|
|
1630
|
+
*/
|
|
1631
|
+
'message'?: string;
|
|
1632
|
+
}
|
|
1633
|
+
/**
|
|
1634
|
+
*
|
|
1635
|
+
* @export
|
|
1636
|
+
* @interface UserUpdate200Response
|
|
1637
|
+
*/
|
|
1638
|
+
export interface UserUpdate200Response {
|
|
1639
|
+
/**
|
|
1640
|
+
*
|
|
1641
|
+
* @type {string}
|
|
1642
|
+
* @memberof UserUpdate200Response
|
|
1643
|
+
*/
|
|
1644
|
+
'action'?: string;
|
|
1645
|
+
/**
|
|
1646
|
+
*
|
|
1647
|
+
* @type {string}
|
|
1648
|
+
* @memberof UserUpdate200Response
|
|
1649
|
+
*/
|
|
1650
|
+
'result'?: string;
|
|
1651
|
+
/**
|
|
1652
|
+
*
|
|
1653
|
+
* @type {string}
|
|
1654
|
+
* @memberof UserUpdate200Response
|
|
1655
|
+
*/
|
|
1656
|
+
'message'?: string;
|
|
1657
|
+
/**
|
|
1658
|
+
*
|
|
1659
|
+
* @type {UserUpdate200ResponseUser}
|
|
1660
|
+
* @memberof UserUpdate200Response
|
|
1661
|
+
*/
|
|
1662
|
+
'user'?: UserUpdate200ResponseUser;
|
|
1663
|
+
}
|
|
1664
|
+
/**
|
|
1665
|
+
*
|
|
1666
|
+
* @export
|
|
1667
|
+
* @interface UserUpdate200ResponseUser
|
|
1668
|
+
*/
|
|
1669
|
+
export interface UserUpdate200ResponseUser {
|
|
1670
|
+
/**
|
|
1671
|
+
*
|
|
1672
|
+
* @type {string}
|
|
1673
|
+
* @memberof UserUpdate200ResponseUser
|
|
1674
|
+
*/
|
|
1675
|
+
'username'?: string;
|
|
1676
|
+
/**
|
|
1677
|
+
*
|
|
1678
|
+
* @type {string}
|
|
1679
|
+
* @memberof UserUpdate200ResponseUser
|
|
1680
|
+
*/
|
|
1681
|
+
'name'?: string;
|
|
1682
|
+
/**
|
|
1683
|
+
*
|
|
1684
|
+
* @type {string}
|
|
1685
|
+
* @memberof UserUpdate200ResponseUser
|
|
1686
|
+
*/
|
|
1687
|
+
'email'?: string;
|
|
1688
|
+
/**
|
|
1689
|
+
*
|
|
1690
|
+
* @type {string}
|
|
1691
|
+
* @memberof UserUpdate200ResponseUser
|
|
1692
|
+
*/
|
|
1693
|
+
'uuid'?: string;
|
|
1694
|
+
}
|
|
1695
|
+
/**
|
|
1696
|
+
*
|
|
1697
|
+
* @export
|
|
1698
|
+
* @interface UserUpdate404Response
|
|
1699
|
+
*/
|
|
1700
|
+
export interface UserUpdate404Response {
|
|
1701
|
+
/**
|
|
1702
|
+
*
|
|
1703
|
+
* @type {string}
|
|
1704
|
+
* @memberof UserUpdate404Response
|
|
1705
|
+
*/
|
|
1706
|
+
'action'?: string;
|
|
1707
|
+
/**
|
|
1708
|
+
*
|
|
1709
|
+
* @type {string}
|
|
1710
|
+
* @memberof UserUpdate404Response
|
|
1711
|
+
*/
|
|
1712
|
+
'result'?: string;
|
|
1713
|
+
/**
|
|
1714
|
+
*
|
|
1715
|
+
* @type {string}
|
|
1716
|
+
* @memberof UserUpdate404Response
|
|
1717
|
+
*/
|
|
1718
|
+
'message'?: string;
|
|
1719
|
+
}
|
|
1720
|
+
/**
|
|
1721
|
+
*
|
|
1722
|
+
* @export
|
|
1723
|
+
* @interface UserUpdate422Response
|
|
1724
|
+
*/
|
|
1725
|
+
export interface UserUpdate422Response {
|
|
1726
|
+
/**
|
|
1727
|
+
*
|
|
1728
|
+
* @type {Array<string>}
|
|
1729
|
+
* @memberof UserUpdate422Response
|
|
1730
|
+
*/
|
|
1731
|
+
'name'?: Array<string>;
|
|
1732
|
+
}
|
|
1733
|
+
/**
|
|
1734
|
+
*
|
|
1735
|
+
* @export
|
|
1736
|
+
* @interface UserUpdate500Response
|
|
1737
|
+
*/
|
|
1738
|
+
export interface UserUpdate500Response {
|
|
1739
|
+
/**
|
|
1740
|
+
*
|
|
1741
|
+
* @type {string}
|
|
1742
|
+
* @memberof UserUpdate500Response
|
|
1743
|
+
*/
|
|
1744
|
+
'action'?: string;
|
|
1745
|
+
/**
|
|
1746
|
+
*
|
|
1747
|
+
* @type {string}
|
|
1748
|
+
* @memberof UserUpdate500Response
|
|
1749
|
+
*/
|
|
1750
|
+
'result'?: string;
|
|
1751
|
+
/**
|
|
1752
|
+
*
|
|
1753
|
+
* @type {string}
|
|
1754
|
+
* @memberof UserUpdate500Response
|
|
1755
|
+
*/
|
|
1756
|
+
'message'?: string;
|
|
1757
|
+
}
|
|
1758
|
+
/**
|
|
1759
|
+
*
|
|
1760
|
+
* @export
|
|
1761
|
+
* @interface UserUpdateRequest
|
|
1762
|
+
*/
|
|
1763
|
+
export interface UserUpdateRequest {
|
|
1764
|
+
/**
|
|
1765
|
+
*
|
|
1766
|
+
* @type {string}
|
|
1767
|
+
* @memberof UserUpdateRequest
|
|
1768
|
+
*/
|
|
1769
|
+
'name': string;
|
|
1770
|
+
}
|
|
1771
|
+
|
|
1772
|
+
/**
|
|
1773
|
+
* AuthApi - axios parameter creator
|
|
1774
|
+
* @export
|
|
1775
|
+
*/
|
|
1776
|
+
export const AuthApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
1777
|
+
return {
|
|
1778
|
+
/**
|
|
1779
|
+
*
|
|
1780
|
+
* @summary Solicita envio de token de login por email
|
|
1781
|
+
* @param {AdminAuthRequestTokenRequest} [adminAuthRequestTokenRequest]
|
|
1782
|
+
* @param {*} [options] Override http request option.
|
|
1783
|
+
* @throws {RequiredError}
|
|
1784
|
+
*/
|
|
1785
|
+
adminAuthRequestToken: async (adminAuthRequestTokenRequest?: AdminAuthRequestTokenRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1786
|
+
const localVarPath = `/admin/auth/request-token`;
|
|
1787
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1788
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1789
|
+
let baseOptions;
|
|
1790
|
+
if (configuration) {
|
|
1791
|
+
baseOptions = configuration.baseOptions;
|
|
1792
|
+
}
|
|
1793
|
+
|
|
1794
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1795
|
+
const localVarHeaderParameter = {} as any;
|
|
1796
|
+
const localVarQueryParameter = {} as any;
|
|
1797
|
+
|
|
1798
|
+
|
|
1799
|
+
|
|
1800
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1801
|
+
|
|
1802
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1803
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1804
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1805
|
+
localVarRequestOptions.data = serializeDataIfNeeded(adminAuthRequestTokenRequest, localVarRequestOptions, configuration)
|
|
1806
|
+
|
|
1807
|
+
return {
|
|
1808
|
+
url: toPathString(localVarUrlObj),
|
|
1809
|
+
options: localVarRequestOptions,
|
|
1810
|
+
};
|
|
1811
|
+
},
|
|
1812
|
+
/**
|
|
1813
|
+
*
|
|
1814
|
+
* @summary Login na API
|
|
1815
|
+
* @param {AuthLoginRequest} [authLoginRequest]
|
|
1816
|
+
* @param {*} [options] Override http request option.
|
|
1817
|
+
* @throws {RequiredError}
|
|
1818
|
+
*/
|
|
1819
|
+
authLogin: async (authLoginRequest?: AuthLoginRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1820
|
+
const localVarPath = `/v3/login`;
|
|
1821
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1822
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1823
|
+
let baseOptions;
|
|
1824
|
+
if (configuration) {
|
|
1825
|
+
baseOptions = configuration.baseOptions;
|
|
1826
|
+
}
|
|
1827
|
+
|
|
1828
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1829
|
+
const localVarHeaderParameter = {} as any;
|
|
1830
|
+
const localVarQueryParameter = {} as any;
|
|
1831
|
+
|
|
1832
|
+
|
|
1833
|
+
|
|
1834
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1835
|
+
|
|
1836
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1837
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1838
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1839
|
+
localVarRequestOptions.data = serializeDataIfNeeded(authLoginRequest, localVarRequestOptions, configuration)
|
|
1840
|
+
|
|
1841
|
+
return {
|
|
1842
|
+
url: toPathString(localVarUrlObj),
|
|
1843
|
+
options: localVarRequestOptions,
|
|
1844
|
+
};
|
|
1845
|
+
},
|
|
1846
|
+
/**
|
|
1847
|
+
*
|
|
1848
|
+
* @summary Login na API via e-mail e token
|
|
1849
|
+
* @param {AuthLoginByTokenRequest} [authLoginByTokenRequest]
|
|
1850
|
+
* @param {*} [options] Override http request option.
|
|
1851
|
+
* @throws {RequiredError}
|
|
1852
|
+
*/
|
|
1853
|
+
authLoginByToken: async (authLoginByTokenRequest?: AuthLoginByTokenRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1854
|
+
const localVarPath = `/admin/auth/login`;
|
|
1855
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1856
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1857
|
+
let baseOptions;
|
|
1858
|
+
if (configuration) {
|
|
1859
|
+
baseOptions = configuration.baseOptions;
|
|
1860
|
+
}
|
|
1861
|
+
|
|
1862
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1863
|
+
const localVarHeaderParameter = {} as any;
|
|
1864
|
+
const localVarQueryParameter = {} as any;
|
|
1865
|
+
|
|
1866
|
+
|
|
1867
|
+
|
|
1868
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1869
|
+
|
|
1870
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1871
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1872
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1873
|
+
localVarRequestOptions.data = serializeDataIfNeeded(authLoginByTokenRequest, localVarRequestOptions, configuration)
|
|
1874
|
+
|
|
1875
|
+
return {
|
|
1876
|
+
url: toPathString(localVarUrlObj),
|
|
1877
|
+
options: localVarRequestOptions,
|
|
1878
|
+
};
|
|
1879
|
+
},
|
|
1880
|
+
/**
|
|
1881
|
+
*
|
|
1882
|
+
* @summary Dados na API
|
|
1883
|
+
* @param {*} [options] Override http request option.
|
|
1884
|
+
* @throws {RequiredError}
|
|
1885
|
+
*/
|
|
1886
|
+
authMe: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1887
|
+
const localVarPath = `/v3/me`;
|
|
1888
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1889
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1890
|
+
let baseOptions;
|
|
1891
|
+
if (configuration) {
|
|
1892
|
+
baseOptions = configuration.baseOptions;
|
|
1893
|
+
}
|
|
1894
|
+
|
|
1895
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1896
|
+
const localVarHeaderParameter = {} as any;
|
|
1897
|
+
const localVarQueryParameter = {} as any;
|
|
1898
|
+
|
|
1899
|
+
// authentication bearerAuth required
|
|
1900
|
+
// http bearer authentication required
|
|
1901
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1902
|
+
|
|
1903
|
+
|
|
1904
|
+
|
|
1905
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1906
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1907
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1908
|
+
|
|
1909
|
+
return {
|
|
1910
|
+
url: toPathString(localVarUrlObj),
|
|
1911
|
+
options: localVarRequestOptions,
|
|
1912
|
+
};
|
|
1913
|
+
},
|
|
1914
|
+
/**
|
|
1915
|
+
*
|
|
1916
|
+
* @summary Renova o do token de autenticação
|
|
1917
|
+
* @param {AuthRefreshTokenRequest} [authRefreshTokenRequest]
|
|
1918
|
+
* @param {*} [options] Override http request option.
|
|
1919
|
+
* @throws {RequiredError}
|
|
1920
|
+
*/
|
|
1921
|
+
authRefreshToken: async (authRefreshTokenRequest?: AuthRefreshTokenRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1922
|
+
const localVarPath = `/admin/auth/refresh`;
|
|
1923
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1924
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1925
|
+
let baseOptions;
|
|
1926
|
+
if (configuration) {
|
|
1927
|
+
baseOptions = configuration.baseOptions;
|
|
1928
|
+
}
|
|
1929
|
+
|
|
1930
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1931
|
+
const localVarHeaderParameter = {} as any;
|
|
1932
|
+
const localVarQueryParameter = {} as any;
|
|
1933
|
+
|
|
1934
|
+
|
|
1935
|
+
|
|
1936
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1937
|
+
|
|
1938
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1939
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1940
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1941
|
+
localVarRequestOptions.data = serializeDataIfNeeded(authRefreshTokenRequest, localVarRequestOptions, configuration)
|
|
1942
|
+
|
|
1943
|
+
return {
|
|
1944
|
+
url: toPathString(localVarUrlObj),
|
|
1945
|
+
options: localVarRequestOptions,
|
|
1946
|
+
};
|
|
1947
|
+
},
|
|
1948
|
+
}
|
|
1949
|
+
};
|
|
1950
|
+
|
|
1951
|
+
/**
|
|
1952
|
+
* AuthApi - functional programming interface
|
|
1953
|
+
* @export
|
|
1954
|
+
*/
|
|
1955
|
+
export const AuthApiFp = function(configuration?: Configuration) {
|
|
1956
|
+
const localVarAxiosParamCreator = AuthApiAxiosParamCreator(configuration)
|
|
1957
|
+
return {
|
|
1958
|
+
/**
|
|
1959
|
+
*
|
|
1960
|
+
* @summary Solicita envio de token de login por email
|
|
1961
|
+
* @param {AdminAuthRequestTokenRequest} [adminAuthRequestTokenRequest]
|
|
1962
|
+
* @param {*} [options] Override http request option.
|
|
1963
|
+
* @throws {RequiredError}
|
|
1964
|
+
*/
|
|
1965
|
+
async adminAuthRequestToken(adminAuthRequestTokenRequest?: AdminAuthRequestTokenRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminAuthRequestToken200Response>> {
|
|
1966
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminAuthRequestToken(adminAuthRequestTokenRequest, options);
|
|
1967
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1968
|
+
const localVarOperationServerBasePath = operationServerMap['AuthApi.adminAuthRequestToken']?.[localVarOperationServerIndex]?.url;
|
|
1969
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1970
|
+
},
|
|
1971
|
+
/**
|
|
1972
|
+
*
|
|
1973
|
+
* @summary Login na API
|
|
1974
|
+
* @param {AuthLoginRequest} [authLoginRequest]
|
|
1975
|
+
* @param {*} [options] Override http request option.
|
|
1976
|
+
* @throws {RequiredError}
|
|
1977
|
+
*/
|
|
1978
|
+
async authLogin(authLoginRequest?: AuthLoginRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthLogin200Response>> {
|
|
1979
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authLogin(authLoginRequest, options);
|
|
1980
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1981
|
+
const localVarOperationServerBasePath = operationServerMap['AuthApi.authLogin']?.[localVarOperationServerIndex]?.url;
|
|
1982
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1983
|
+
},
|
|
1984
|
+
/**
|
|
1985
|
+
*
|
|
1986
|
+
* @summary Login na API via e-mail e token
|
|
1987
|
+
* @param {AuthLoginByTokenRequest} [authLoginByTokenRequest]
|
|
1988
|
+
* @param {*} [options] Override http request option.
|
|
1989
|
+
* @throws {RequiredError}
|
|
1990
|
+
*/
|
|
1991
|
+
async authLoginByToken(authLoginByTokenRequest?: AuthLoginByTokenRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthLoginByToken200Response>> {
|
|
1992
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authLoginByToken(authLoginByTokenRequest, options);
|
|
1993
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1994
|
+
const localVarOperationServerBasePath = operationServerMap['AuthApi.authLoginByToken']?.[localVarOperationServerIndex]?.url;
|
|
1995
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1996
|
+
},
|
|
1997
|
+
/**
|
|
1998
|
+
*
|
|
1999
|
+
* @summary Dados na API
|
|
2000
|
+
* @param {*} [options] Override http request option.
|
|
2001
|
+
* @throws {RequiredError}
|
|
2002
|
+
*/
|
|
2003
|
+
async authMe(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthMe200Response>> {
|
|
2004
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authMe(options);
|
|
2005
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2006
|
+
const localVarOperationServerBasePath = operationServerMap['AuthApi.authMe']?.[localVarOperationServerIndex]?.url;
|
|
2007
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2008
|
+
},
|
|
2009
|
+
/**
|
|
2010
|
+
*
|
|
2011
|
+
* @summary Renova o do token de autenticação
|
|
2012
|
+
* @param {AuthRefreshTokenRequest} [authRefreshTokenRequest]
|
|
2013
|
+
* @param {*} [options] Override http request option.
|
|
2014
|
+
* @throws {RequiredError}
|
|
2015
|
+
*/
|
|
2016
|
+
async authRefreshToken(authRefreshTokenRequest?: AuthRefreshTokenRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthLoginByToken200Response>> {
|
|
2017
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authRefreshToken(authRefreshTokenRequest, options);
|
|
2018
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2019
|
+
const localVarOperationServerBasePath = operationServerMap['AuthApi.authRefreshToken']?.[localVarOperationServerIndex]?.url;
|
|
2020
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2021
|
+
},
|
|
2022
|
+
}
|
|
2023
|
+
};
|
|
2024
|
+
|
|
2025
|
+
/**
|
|
2026
|
+
* AuthApi - factory interface
|
|
2027
|
+
* @export
|
|
2028
|
+
*/
|
|
2029
|
+
export const AuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
2030
|
+
const localVarFp = AuthApiFp(configuration)
|
|
2031
|
+
return {
|
|
2032
|
+
/**
|
|
2033
|
+
*
|
|
2034
|
+
* @summary Solicita envio de token de login por email
|
|
2035
|
+
* @param {AdminAuthRequestTokenRequest} [adminAuthRequestTokenRequest]
|
|
2036
|
+
* @param {*} [options] Override http request option.
|
|
2037
|
+
* @throws {RequiredError}
|
|
2038
|
+
*/
|
|
2039
|
+
adminAuthRequestToken(adminAuthRequestTokenRequest?: AdminAuthRequestTokenRequest, options?: RawAxiosRequestConfig): AxiosPromise<AdminAuthRequestToken200Response> {
|
|
2040
|
+
return localVarFp.adminAuthRequestToken(adminAuthRequestTokenRequest, options).then((request) => request(axios, basePath));
|
|
2041
|
+
},
|
|
2042
|
+
/**
|
|
2043
|
+
*
|
|
2044
|
+
* @summary Login na API
|
|
2045
|
+
* @param {AuthLoginRequest} [authLoginRequest]
|
|
2046
|
+
* @param {*} [options] Override http request option.
|
|
2047
|
+
* @throws {RequiredError}
|
|
2048
|
+
*/
|
|
2049
|
+
authLogin(authLoginRequest?: AuthLoginRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthLogin200Response> {
|
|
2050
|
+
return localVarFp.authLogin(authLoginRequest, options).then((request) => request(axios, basePath));
|
|
2051
|
+
},
|
|
2052
|
+
/**
|
|
2053
|
+
*
|
|
2054
|
+
* @summary Login na API via e-mail e token
|
|
2055
|
+
* @param {AuthLoginByTokenRequest} [authLoginByTokenRequest]
|
|
2056
|
+
* @param {*} [options] Override http request option.
|
|
2057
|
+
* @throws {RequiredError}
|
|
2058
|
+
*/
|
|
2059
|
+
authLoginByToken(authLoginByTokenRequest?: AuthLoginByTokenRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthLoginByToken200Response> {
|
|
2060
|
+
return localVarFp.authLoginByToken(authLoginByTokenRequest, options).then((request) => request(axios, basePath));
|
|
2061
|
+
},
|
|
2062
|
+
/**
|
|
2063
|
+
*
|
|
2064
|
+
* @summary Dados na API
|
|
2065
|
+
* @param {*} [options] Override http request option.
|
|
2066
|
+
* @throws {RequiredError}
|
|
2067
|
+
*/
|
|
2068
|
+
authMe(options?: RawAxiosRequestConfig): AxiosPromise<AuthMe200Response> {
|
|
2069
|
+
return localVarFp.authMe(options).then((request) => request(axios, basePath));
|
|
2070
|
+
},
|
|
2071
|
+
/**
|
|
2072
|
+
*
|
|
2073
|
+
* @summary Renova o do token de autenticação
|
|
2074
|
+
* @param {AuthRefreshTokenRequest} [authRefreshTokenRequest]
|
|
2075
|
+
* @param {*} [options] Override http request option.
|
|
2076
|
+
* @throws {RequiredError}
|
|
2077
|
+
*/
|
|
2078
|
+
authRefreshToken(authRefreshTokenRequest?: AuthRefreshTokenRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthLoginByToken200Response> {
|
|
2079
|
+
return localVarFp.authRefreshToken(authRefreshTokenRequest, options).then((request) => request(axios, basePath));
|
|
2080
|
+
},
|
|
2081
|
+
};
|
|
2082
|
+
};
|
|
2083
|
+
|
|
2084
|
+
/**
|
|
2085
|
+
* AuthApi - object-oriented interface
|
|
2086
|
+
* @export
|
|
2087
|
+
* @class AuthApi
|
|
2088
|
+
* @extends {BaseAPI}
|
|
2089
|
+
*/
|
|
2090
|
+
export class AuthApi extends BaseAPI {
|
|
2091
|
+
/**
|
|
2092
|
+
*
|
|
2093
|
+
* @summary Solicita envio de token de login por email
|
|
2094
|
+
* @param {AdminAuthRequestTokenRequest} [adminAuthRequestTokenRequest]
|
|
2095
|
+
* @param {*} [options] Override http request option.
|
|
2096
|
+
* @throws {RequiredError}
|
|
2097
|
+
* @memberof AuthApi
|
|
2098
|
+
*/
|
|
2099
|
+
public adminAuthRequestToken(adminAuthRequestTokenRequest?: AdminAuthRequestTokenRequest, options?: RawAxiosRequestConfig) {
|
|
2100
|
+
return AuthApiFp(this.configuration).adminAuthRequestToken(adminAuthRequestTokenRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2101
|
+
}
|
|
2102
|
+
|
|
2103
|
+
/**
|
|
2104
|
+
*
|
|
2105
|
+
* @summary Login na API
|
|
2106
|
+
* @param {AuthLoginRequest} [authLoginRequest]
|
|
2107
|
+
* @param {*} [options] Override http request option.
|
|
2108
|
+
* @throws {RequiredError}
|
|
2109
|
+
* @memberof AuthApi
|
|
2110
|
+
*/
|
|
2111
|
+
public authLogin(authLoginRequest?: AuthLoginRequest, options?: RawAxiosRequestConfig) {
|
|
2112
|
+
return AuthApiFp(this.configuration).authLogin(authLoginRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2113
|
+
}
|
|
2114
|
+
|
|
2115
|
+
/**
|
|
2116
|
+
*
|
|
2117
|
+
* @summary Login na API via e-mail e token
|
|
2118
|
+
* @param {AuthLoginByTokenRequest} [authLoginByTokenRequest]
|
|
2119
|
+
* @param {*} [options] Override http request option.
|
|
2120
|
+
* @throws {RequiredError}
|
|
2121
|
+
* @memberof AuthApi
|
|
2122
|
+
*/
|
|
2123
|
+
public authLoginByToken(authLoginByTokenRequest?: AuthLoginByTokenRequest, options?: RawAxiosRequestConfig) {
|
|
2124
|
+
return AuthApiFp(this.configuration).authLoginByToken(authLoginByTokenRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2125
|
+
}
|
|
2126
|
+
|
|
2127
|
+
/**
|
|
2128
|
+
*
|
|
2129
|
+
* @summary Dados na API
|
|
2130
|
+
* @param {*} [options] Override http request option.
|
|
2131
|
+
* @throws {RequiredError}
|
|
2132
|
+
* @memberof AuthApi
|
|
2133
|
+
*/
|
|
2134
|
+
public authMe(options?: RawAxiosRequestConfig) {
|
|
2135
|
+
return AuthApiFp(this.configuration).authMe(options).then((request) => request(this.axios, this.basePath));
|
|
2136
|
+
}
|
|
2137
|
+
|
|
2138
|
+
/**
|
|
2139
|
+
*
|
|
2140
|
+
* @summary Renova o do token de autenticação
|
|
2141
|
+
* @param {AuthRefreshTokenRequest} [authRefreshTokenRequest]
|
|
2142
|
+
* @param {*} [options] Override http request option.
|
|
2143
|
+
* @throws {RequiredError}
|
|
2144
|
+
* @memberof AuthApi
|
|
2145
|
+
*/
|
|
2146
|
+
public authRefreshToken(authRefreshTokenRequest?: AuthRefreshTokenRequest, options?: RawAxiosRequestConfig) {
|
|
2147
|
+
return AuthApiFp(this.configuration).authRefreshToken(authRefreshTokenRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2148
|
+
}
|
|
2149
|
+
}
|
|
2150
|
+
|
|
2151
|
+
|
|
2152
|
+
|
|
2153
|
+
/**
|
|
2154
|
+
* MetricsApi - axios parameter creator
|
|
2155
|
+
* @export
|
|
2156
|
+
*/
|
|
2157
|
+
export const MetricsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
2158
|
+
return {
|
|
2159
|
+
/**
|
|
2160
|
+
*
|
|
2161
|
+
* @summary Devolve as métricas da promoção
|
|
2162
|
+
* @param {string} promotionId ID da promoção
|
|
2163
|
+
* @param {Array<string>} keys Chaves das métricas que deseja consultar. Exemplo: `keys[]=users&keys[]=coupons&keys[]=luckyNumbers`
|
|
2164
|
+
* @param {string} [startDate] Data inicial para filtrar as métricas
|
|
2165
|
+
* @param {string} [endDate] Data final para filtrar as métricas
|
|
2166
|
+
* @param {number} [limit] Limite de resultados
|
|
2167
|
+
* @param {string} [resolution] Resolução das métricas. Exemplo: `minute`, `hour`, `day`
|
|
2168
|
+
* @param {*} [options] Override http request option.
|
|
2169
|
+
* @throws {RequiredError}
|
|
2170
|
+
*/
|
|
2171
|
+
metrics: async (promotionId: string, keys: Array<string>, startDate?: string, endDate?: string, limit?: number, resolution?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2172
|
+
// verify required parameter 'promotionId' is not null or undefined
|
|
2173
|
+
assertParamExists('metrics', 'promotionId', promotionId)
|
|
2174
|
+
// verify required parameter 'keys' is not null or undefined
|
|
2175
|
+
assertParamExists('metrics', 'keys', keys)
|
|
2176
|
+
const localVarPath = `/v3/metrics`;
|
|
2177
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2178
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2179
|
+
let baseOptions;
|
|
2180
|
+
if (configuration) {
|
|
2181
|
+
baseOptions = configuration.baseOptions;
|
|
2182
|
+
}
|
|
2183
|
+
|
|
2184
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
2185
|
+
const localVarHeaderParameter = {} as any;
|
|
2186
|
+
const localVarQueryParameter = {} as any;
|
|
2187
|
+
|
|
2188
|
+
// authentication bearerAuth required
|
|
2189
|
+
// http bearer authentication required
|
|
2190
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2191
|
+
|
|
2192
|
+
if (promotionId !== undefined) {
|
|
2193
|
+
localVarQueryParameter['promotion_id'] = promotionId;
|
|
2194
|
+
}
|
|
2195
|
+
|
|
2196
|
+
if (keys) {
|
|
2197
|
+
localVarQueryParameter['keys'] = keys;
|
|
2198
|
+
}
|
|
2199
|
+
|
|
2200
|
+
if (startDate !== undefined) {
|
|
2201
|
+
localVarQueryParameter['start_date'] = startDate;
|
|
2202
|
+
}
|
|
2203
|
+
|
|
2204
|
+
if (endDate !== undefined) {
|
|
2205
|
+
localVarQueryParameter['end_date'] = endDate;
|
|
2206
|
+
}
|
|
2207
|
+
|
|
2208
|
+
if (limit !== undefined) {
|
|
2209
|
+
localVarQueryParameter['limit'] = limit;
|
|
2210
|
+
}
|
|
2211
|
+
|
|
2212
|
+
if (resolution !== undefined) {
|
|
2213
|
+
localVarQueryParameter['resolution'] = resolution;
|
|
2214
|
+
}
|
|
2215
|
+
|
|
2216
|
+
|
|
2217
|
+
|
|
2218
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2219
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2220
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2221
|
+
|
|
2222
|
+
return {
|
|
2223
|
+
url: toPathString(localVarUrlObj),
|
|
2224
|
+
options: localVarRequestOptions,
|
|
2225
|
+
};
|
|
2226
|
+
},
|
|
2227
|
+
}
|
|
2228
|
+
};
|
|
2229
|
+
|
|
2230
|
+
/**
|
|
2231
|
+
* MetricsApi - functional programming interface
|
|
2232
|
+
* @export
|
|
2233
|
+
*/
|
|
2234
|
+
export const MetricsApiFp = function(configuration?: Configuration) {
|
|
2235
|
+
const localVarAxiosParamCreator = MetricsApiAxiosParamCreator(configuration)
|
|
2236
|
+
return {
|
|
2237
|
+
/**
|
|
2238
|
+
*
|
|
2239
|
+
* @summary Devolve as métricas da promoção
|
|
2240
|
+
* @param {string} promotionId ID da promoção
|
|
2241
|
+
* @param {Array<string>} keys Chaves das métricas que deseja consultar. Exemplo: `keys[]=users&keys[]=coupons&keys[]=luckyNumbers`
|
|
2242
|
+
* @param {string} [startDate] Data inicial para filtrar as métricas
|
|
2243
|
+
* @param {string} [endDate] Data final para filtrar as métricas
|
|
2244
|
+
* @param {number} [limit] Limite de resultados
|
|
2245
|
+
* @param {string} [resolution] Resolução das métricas. Exemplo: `minute`, `hour`, `day`
|
|
2246
|
+
* @param {*} [options] Override http request option.
|
|
2247
|
+
* @throws {RequiredError}
|
|
2248
|
+
*/
|
|
2249
|
+
async metrics(promotionId: string, keys: Array<string>, startDate?: string, endDate?: string, limit?: number, resolution?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Metrics200Response>> {
|
|
2250
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.metrics(promotionId, keys, startDate, endDate, limit, resolution, options);
|
|
2251
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2252
|
+
const localVarOperationServerBasePath = operationServerMap['MetricsApi.metrics']?.[localVarOperationServerIndex]?.url;
|
|
2253
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2254
|
+
},
|
|
2255
|
+
}
|
|
2256
|
+
};
|
|
2257
|
+
|
|
2258
|
+
/**
|
|
2259
|
+
* MetricsApi - factory interface
|
|
2260
|
+
* @export
|
|
2261
|
+
*/
|
|
2262
|
+
export const MetricsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
2263
|
+
const localVarFp = MetricsApiFp(configuration)
|
|
2264
|
+
return {
|
|
2265
|
+
/**
|
|
2266
|
+
*
|
|
2267
|
+
* @summary Devolve as métricas da promoção
|
|
2268
|
+
* @param {string} promotionId ID da promoção
|
|
2269
|
+
* @param {Array<string>} keys Chaves das métricas que deseja consultar. Exemplo: `keys[]=users&keys[]=coupons&keys[]=luckyNumbers`
|
|
2270
|
+
* @param {string} [startDate] Data inicial para filtrar as métricas
|
|
2271
|
+
* @param {string} [endDate] Data final para filtrar as métricas
|
|
2272
|
+
* @param {number} [limit] Limite de resultados
|
|
2273
|
+
* @param {string} [resolution] Resolução das métricas. Exemplo: `minute`, `hour`, `day`
|
|
2274
|
+
* @param {*} [options] Override http request option.
|
|
2275
|
+
* @throws {RequiredError}
|
|
2276
|
+
*/
|
|
2277
|
+
metrics(promotionId: string, keys: Array<string>, startDate?: string, endDate?: string, limit?: number, resolution?: string, options?: RawAxiosRequestConfig): AxiosPromise<Metrics200Response> {
|
|
2278
|
+
return localVarFp.metrics(promotionId, keys, startDate, endDate, limit, resolution, options).then((request) => request(axios, basePath));
|
|
2279
|
+
},
|
|
2280
|
+
};
|
|
2281
|
+
};
|
|
2282
|
+
|
|
2283
|
+
/**
|
|
2284
|
+
* MetricsApi - object-oriented interface
|
|
2285
|
+
* @export
|
|
2286
|
+
* @class MetricsApi
|
|
2287
|
+
* @extends {BaseAPI}
|
|
2288
|
+
*/
|
|
2289
|
+
export class MetricsApi extends BaseAPI {
|
|
2290
|
+
/**
|
|
2291
|
+
*
|
|
2292
|
+
* @summary Devolve as métricas da promoção
|
|
2293
|
+
* @param {string} promotionId ID da promoção
|
|
2294
|
+
* @param {Array<string>} keys Chaves das métricas que deseja consultar. Exemplo: `keys[]=users&keys[]=coupons&keys[]=luckyNumbers`
|
|
2295
|
+
* @param {string} [startDate] Data inicial para filtrar as métricas
|
|
2296
|
+
* @param {string} [endDate] Data final para filtrar as métricas
|
|
2297
|
+
* @param {number} [limit] Limite de resultados
|
|
2298
|
+
* @param {string} [resolution] Resolução das métricas. Exemplo: `minute`, `hour`, `day`
|
|
2299
|
+
* @param {*} [options] Override http request option.
|
|
2300
|
+
* @throws {RequiredError}
|
|
2301
|
+
* @memberof MetricsApi
|
|
2302
|
+
*/
|
|
2303
|
+
public metrics(promotionId: string, keys: Array<string>, startDate?: string, endDate?: string, limit?: number, resolution?: string, options?: RawAxiosRequestConfig) {
|
|
2304
|
+
return MetricsApiFp(this.configuration).metrics(promotionId, keys, startDate, endDate, limit, resolution, options).then((request) => request(this.axios, this.basePath));
|
|
2305
|
+
}
|
|
2306
|
+
}
|
|
2307
|
+
|
|
2308
|
+
|
|
2309
|
+
|
|
2310
|
+
/**
|
|
2311
|
+
* PromotionApi - axios parameter creator
|
|
2312
|
+
* @export
|
|
2313
|
+
*/
|
|
2314
|
+
export const PromotionApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
2315
|
+
return {
|
|
2316
|
+
/**
|
|
2317
|
+
*
|
|
2318
|
+
* @summary Adicionar/Atualizar configurações de uma promoção ao orquestrador
|
|
2319
|
+
* @param {PromotionPullConfigurationRequest} [promotionPullConfigurationRequest]
|
|
2320
|
+
* @param {*} [options] Override http request option.
|
|
2321
|
+
* @throws {RequiredError}
|
|
2322
|
+
*/
|
|
2323
|
+
promotionPullConfiguration: async (promotionPullConfigurationRequest?: PromotionPullConfigurationRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2324
|
+
const localVarPath = `/v3/admin/pullconfiguration`;
|
|
2325
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2326
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2327
|
+
let baseOptions;
|
|
2328
|
+
if (configuration) {
|
|
2329
|
+
baseOptions = configuration.baseOptions;
|
|
2330
|
+
}
|
|
2331
|
+
|
|
2332
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
2333
|
+
const localVarHeaderParameter = {} as any;
|
|
2334
|
+
const localVarQueryParameter = {} as any;
|
|
2335
|
+
|
|
2336
|
+
// authentication bearerAuth required
|
|
2337
|
+
// http bearer authentication required
|
|
2338
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2339
|
+
|
|
2340
|
+
|
|
2341
|
+
|
|
2342
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2343
|
+
|
|
2344
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2345
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2346
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2347
|
+
localVarRequestOptions.data = serializeDataIfNeeded(promotionPullConfigurationRequest, localVarRequestOptions, configuration)
|
|
2348
|
+
|
|
2349
|
+
return {
|
|
2350
|
+
url: toPathString(localVarUrlObj),
|
|
2351
|
+
options: localVarRequestOptions,
|
|
2352
|
+
};
|
|
2353
|
+
},
|
|
2354
|
+
/**
|
|
2355
|
+
*
|
|
2356
|
+
* @summary Iniciar uma promoção na API
|
|
2357
|
+
* @param {PromotionStartRequest} [promotionStartRequest]
|
|
2358
|
+
* @param {*} [options] Override http request option.
|
|
2359
|
+
* @throws {RequiredError}
|
|
2360
|
+
*/
|
|
2361
|
+
promotionStart: async (promotionStartRequest?: PromotionStartRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2362
|
+
const localVarPath = `/v3/admin/promotion/start`;
|
|
2363
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2364
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2365
|
+
let baseOptions;
|
|
2366
|
+
if (configuration) {
|
|
2367
|
+
baseOptions = configuration.baseOptions;
|
|
2368
|
+
}
|
|
2369
|
+
|
|
2370
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
2371
|
+
const localVarHeaderParameter = {} as any;
|
|
2372
|
+
const localVarQueryParameter = {} as any;
|
|
2373
|
+
|
|
2374
|
+
// authentication bearerAuth required
|
|
2375
|
+
// http bearer authentication required
|
|
2376
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2377
|
+
|
|
2378
|
+
|
|
2379
|
+
|
|
2380
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2381
|
+
|
|
2382
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2383
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2384
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2385
|
+
localVarRequestOptions.data = serializeDataIfNeeded(promotionStartRequest, localVarRequestOptions, configuration)
|
|
2386
|
+
|
|
2387
|
+
return {
|
|
2388
|
+
url: toPathString(localVarUrlObj),
|
|
2389
|
+
options: localVarRequestOptions,
|
|
2390
|
+
};
|
|
2391
|
+
},
|
|
2392
|
+
}
|
|
2393
|
+
};
|
|
2394
|
+
|
|
2395
|
+
/**
|
|
2396
|
+
* PromotionApi - functional programming interface
|
|
2397
|
+
* @export
|
|
2398
|
+
*/
|
|
2399
|
+
export const PromotionApiFp = function(configuration?: Configuration) {
|
|
2400
|
+
const localVarAxiosParamCreator = PromotionApiAxiosParamCreator(configuration)
|
|
2401
|
+
return {
|
|
2402
|
+
/**
|
|
2403
|
+
*
|
|
2404
|
+
* @summary Adicionar/Atualizar configurações de uma promoção ao orquestrador
|
|
2405
|
+
* @param {PromotionPullConfigurationRequest} [promotionPullConfigurationRequest]
|
|
2406
|
+
* @param {*} [options] Override http request option.
|
|
2407
|
+
* @throws {RequiredError}
|
|
2408
|
+
*/
|
|
2409
|
+
async promotionPullConfiguration(promotionPullConfigurationRequest?: PromotionPullConfigurationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromotionPullConfiguration200Response>> {
|
|
2410
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.promotionPullConfiguration(promotionPullConfigurationRequest, options);
|
|
2411
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2412
|
+
const localVarOperationServerBasePath = operationServerMap['PromotionApi.promotionPullConfiguration']?.[localVarOperationServerIndex]?.url;
|
|
2413
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2414
|
+
},
|
|
2415
|
+
/**
|
|
2416
|
+
*
|
|
2417
|
+
* @summary Iniciar uma promoção na API
|
|
2418
|
+
* @param {PromotionStartRequest} [promotionStartRequest]
|
|
2419
|
+
* @param {*} [options] Override http request option.
|
|
2420
|
+
* @throws {RequiredError}
|
|
2421
|
+
*/
|
|
2422
|
+
async promotionStart(promotionStartRequest?: PromotionStartRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromotionStart200Response>> {
|
|
2423
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.promotionStart(promotionStartRequest, options);
|
|
2424
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2425
|
+
const localVarOperationServerBasePath = operationServerMap['PromotionApi.promotionStart']?.[localVarOperationServerIndex]?.url;
|
|
2426
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2427
|
+
},
|
|
2428
|
+
}
|
|
2429
|
+
};
|
|
2430
|
+
|
|
2431
|
+
/**
|
|
2432
|
+
* PromotionApi - factory interface
|
|
2433
|
+
* @export
|
|
2434
|
+
*/
|
|
2435
|
+
export const PromotionApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
2436
|
+
const localVarFp = PromotionApiFp(configuration)
|
|
2437
|
+
return {
|
|
2438
|
+
/**
|
|
2439
|
+
*
|
|
2440
|
+
* @summary Adicionar/Atualizar configurações de uma promoção ao orquestrador
|
|
2441
|
+
* @param {PromotionPullConfigurationRequest} [promotionPullConfigurationRequest]
|
|
2442
|
+
* @param {*} [options] Override http request option.
|
|
2443
|
+
* @throws {RequiredError}
|
|
2444
|
+
*/
|
|
2445
|
+
promotionPullConfiguration(promotionPullConfigurationRequest?: PromotionPullConfigurationRequest, options?: RawAxiosRequestConfig): AxiosPromise<PromotionPullConfiguration200Response> {
|
|
2446
|
+
return localVarFp.promotionPullConfiguration(promotionPullConfigurationRequest, options).then((request) => request(axios, basePath));
|
|
2447
|
+
},
|
|
2448
|
+
/**
|
|
2449
|
+
*
|
|
2450
|
+
* @summary Iniciar uma promoção na API
|
|
2451
|
+
* @param {PromotionStartRequest} [promotionStartRequest]
|
|
2452
|
+
* @param {*} [options] Override http request option.
|
|
2453
|
+
* @throws {RequiredError}
|
|
2454
|
+
*/
|
|
2455
|
+
promotionStart(promotionStartRequest?: PromotionStartRequest, options?: RawAxiosRequestConfig): AxiosPromise<PromotionStart200Response> {
|
|
2456
|
+
return localVarFp.promotionStart(promotionStartRequest, options).then((request) => request(axios, basePath));
|
|
2457
|
+
},
|
|
2458
|
+
};
|
|
2459
|
+
};
|
|
2460
|
+
|
|
2461
|
+
/**
|
|
2462
|
+
* PromotionApi - object-oriented interface
|
|
2463
|
+
* @export
|
|
2464
|
+
* @class PromotionApi
|
|
2465
|
+
* @extends {BaseAPI}
|
|
2466
|
+
*/
|
|
2467
|
+
export class PromotionApi extends BaseAPI {
|
|
2468
|
+
/**
|
|
2469
|
+
*
|
|
2470
|
+
* @summary Adicionar/Atualizar configurações de uma promoção ao orquestrador
|
|
2471
|
+
* @param {PromotionPullConfigurationRequest} [promotionPullConfigurationRequest]
|
|
2472
|
+
* @param {*} [options] Override http request option.
|
|
2473
|
+
* @throws {RequiredError}
|
|
2474
|
+
* @memberof PromotionApi
|
|
2475
|
+
*/
|
|
2476
|
+
public promotionPullConfiguration(promotionPullConfigurationRequest?: PromotionPullConfigurationRequest, options?: RawAxiosRequestConfig) {
|
|
2477
|
+
return PromotionApiFp(this.configuration).promotionPullConfiguration(promotionPullConfigurationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2478
|
+
}
|
|
2479
|
+
|
|
2480
|
+
/**
|
|
2481
|
+
*
|
|
2482
|
+
* @summary Iniciar uma promoção na API
|
|
2483
|
+
* @param {PromotionStartRequest} [promotionStartRequest]
|
|
2484
|
+
* @param {*} [options] Override http request option.
|
|
2485
|
+
* @throws {RequiredError}
|
|
2486
|
+
* @memberof PromotionApi
|
|
2487
|
+
*/
|
|
2488
|
+
public promotionStart(promotionStartRequest?: PromotionStartRequest, options?: RawAxiosRequestConfig) {
|
|
2489
|
+
return PromotionApiFp(this.configuration).promotionStart(promotionStartRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2490
|
+
}
|
|
2491
|
+
}
|
|
2492
|
+
|
|
2493
|
+
|
|
2494
|
+
|
|
2495
|
+
/**
|
|
2496
|
+
* RolesApi - axios parameter creator
|
|
2497
|
+
* @export
|
|
2498
|
+
*/
|
|
2499
|
+
export const RolesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
2500
|
+
return {
|
|
2501
|
+
/**
|
|
2502
|
+
*
|
|
2503
|
+
* @summary Atualizar permissões de uma role
|
|
2504
|
+
* @param {number} id ID da role
|
|
2505
|
+
* @param {RolesAttachPermissionsRequest} [rolesAttachPermissionsRequest]
|
|
2506
|
+
* @param {*} [options] Override http request option.
|
|
2507
|
+
* @throws {RequiredError}
|
|
2508
|
+
*/
|
|
2509
|
+
rolesAttachPermissions: async (id: number, rolesAttachPermissionsRequest?: RolesAttachPermissionsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2510
|
+
// verify required parameter 'id' is not null or undefined
|
|
2511
|
+
assertParamExists('rolesAttachPermissions', 'id', id)
|
|
2512
|
+
const localVarPath = `/v3/admin/roles/{id}/permissions`
|
|
2513
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2514
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2515
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2516
|
+
let baseOptions;
|
|
2517
|
+
if (configuration) {
|
|
2518
|
+
baseOptions = configuration.baseOptions;
|
|
2519
|
+
}
|
|
2520
|
+
|
|
2521
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
2522
|
+
const localVarHeaderParameter = {} as any;
|
|
2523
|
+
const localVarQueryParameter = {} as any;
|
|
2524
|
+
|
|
2525
|
+
// authentication bearerAuth required
|
|
2526
|
+
// http bearer authentication required
|
|
2527
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2528
|
+
|
|
2529
|
+
|
|
2530
|
+
|
|
2531
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2532
|
+
|
|
2533
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2534
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2535
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2536
|
+
localVarRequestOptions.data = serializeDataIfNeeded(rolesAttachPermissionsRequest, localVarRequestOptions, configuration)
|
|
2537
|
+
|
|
2538
|
+
return {
|
|
2539
|
+
url: toPathString(localVarUrlObj),
|
|
2540
|
+
options: localVarRequestOptions,
|
|
2541
|
+
};
|
|
2542
|
+
},
|
|
2543
|
+
/**
|
|
2544
|
+
*
|
|
2545
|
+
* @summary Remover role
|
|
2546
|
+
* @param {number} id ID da role
|
|
2547
|
+
* @param {*} [options] Override http request option.
|
|
2548
|
+
* @throws {RequiredError}
|
|
2549
|
+
*/
|
|
2550
|
+
rolesDestroy: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2551
|
+
// verify required parameter 'id' is not null or undefined
|
|
2552
|
+
assertParamExists('rolesDestroy', 'id', id)
|
|
2553
|
+
const localVarPath = `/v3/admin/roles/{id}`
|
|
2554
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2555
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2556
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2557
|
+
let baseOptions;
|
|
2558
|
+
if (configuration) {
|
|
2559
|
+
baseOptions = configuration.baseOptions;
|
|
2560
|
+
}
|
|
2561
|
+
|
|
2562
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
2563
|
+
const localVarHeaderParameter = {} as any;
|
|
2564
|
+
const localVarQueryParameter = {} as any;
|
|
2565
|
+
|
|
2566
|
+
// authentication bearerAuth required
|
|
2567
|
+
// http bearer authentication required
|
|
2568
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2569
|
+
|
|
2570
|
+
|
|
2571
|
+
|
|
2572
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2573
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2574
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2575
|
+
|
|
2576
|
+
return {
|
|
2577
|
+
url: toPathString(localVarUrlObj),
|
|
2578
|
+
options: localVarRequestOptions,
|
|
2579
|
+
};
|
|
2580
|
+
},
|
|
2581
|
+
/**
|
|
2582
|
+
*
|
|
2583
|
+
* @summary Listar roles
|
|
2584
|
+
* @param {*} [options] Override http request option.
|
|
2585
|
+
* @throws {RequiredError}
|
|
2586
|
+
*/
|
|
2587
|
+
rolesIndex: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2588
|
+
const localVarPath = `/v3/admin/roles`;
|
|
2589
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2590
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2591
|
+
let baseOptions;
|
|
2592
|
+
if (configuration) {
|
|
2593
|
+
baseOptions = configuration.baseOptions;
|
|
2594
|
+
}
|
|
2595
|
+
|
|
2596
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
2597
|
+
const localVarHeaderParameter = {} as any;
|
|
2598
|
+
const localVarQueryParameter = {} as any;
|
|
2599
|
+
|
|
2600
|
+
// authentication bearerAuth required
|
|
2601
|
+
// http bearer authentication required
|
|
2602
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2603
|
+
|
|
2604
|
+
|
|
2605
|
+
|
|
2606
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2607
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2608
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2609
|
+
|
|
2610
|
+
return {
|
|
2611
|
+
url: toPathString(localVarUrlObj),
|
|
2612
|
+
options: localVarRequestOptions,
|
|
2613
|
+
};
|
|
2614
|
+
},
|
|
2615
|
+
/**
|
|
2616
|
+
*
|
|
2617
|
+
* @summary Listar permissões de uma role
|
|
2618
|
+
* @param {number} id ID da role
|
|
2619
|
+
* @param {*} [options] Override http request option.
|
|
2620
|
+
* @throws {RequiredError}
|
|
2621
|
+
*/
|
|
2622
|
+
rolesPermissions: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2623
|
+
// verify required parameter 'id' is not null or undefined
|
|
2624
|
+
assertParamExists('rolesPermissions', 'id', id)
|
|
2625
|
+
const localVarPath = `/v3/admin/roles/{id}/permissions`
|
|
2626
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2627
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2628
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2629
|
+
let baseOptions;
|
|
2630
|
+
if (configuration) {
|
|
2631
|
+
baseOptions = configuration.baseOptions;
|
|
2632
|
+
}
|
|
2633
|
+
|
|
2634
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
2635
|
+
const localVarHeaderParameter = {} as any;
|
|
2636
|
+
const localVarQueryParameter = {} as any;
|
|
2637
|
+
|
|
2638
|
+
// authentication bearerAuth required
|
|
2639
|
+
// http bearer authentication required
|
|
2640
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2641
|
+
|
|
2642
|
+
|
|
2643
|
+
|
|
2644
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2645
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2646
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2647
|
+
|
|
2648
|
+
return {
|
|
2649
|
+
url: toPathString(localVarUrlObj),
|
|
2650
|
+
options: localVarRequestOptions,
|
|
2651
|
+
};
|
|
2652
|
+
},
|
|
2653
|
+
/**
|
|
2654
|
+
*
|
|
2655
|
+
* @summary Exibir detalhes da role
|
|
2656
|
+
* @param {number} id ID da role
|
|
2657
|
+
* @param {*} [options] Override http request option.
|
|
2658
|
+
* @throws {RequiredError}
|
|
2659
|
+
*/
|
|
2660
|
+
rolesShow: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2661
|
+
// verify required parameter 'id' is not null or undefined
|
|
2662
|
+
assertParamExists('rolesShow', 'id', id)
|
|
2663
|
+
const localVarPath = `/v3/admin/roles/{id}`
|
|
2664
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2665
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2666
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2667
|
+
let baseOptions;
|
|
2668
|
+
if (configuration) {
|
|
2669
|
+
baseOptions = configuration.baseOptions;
|
|
2670
|
+
}
|
|
2671
|
+
|
|
2672
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
2673
|
+
const localVarHeaderParameter = {} as any;
|
|
2674
|
+
const localVarQueryParameter = {} as any;
|
|
2675
|
+
|
|
2676
|
+
// authentication bearerAuth required
|
|
2677
|
+
// http bearer authentication required
|
|
2678
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2679
|
+
|
|
2680
|
+
|
|
2681
|
+
|
|
2682
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2683
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2684
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2685
|
+
|
|
2686
|
+
return {
|
|
2687
|
+
url: toPathString(localVarUrlObj),
|
|
2688
|
+
options: localVarRequestOptions,
|
|
2689
|
+
};
|
|
2690
|
+
},
|
|
2691
|
+
/**
|
|
2692
|
+
*
|
|
2693
|
+
* @summary Criar role
|
|
2694
|
+
* @param {RolesStoreRequest} [rolesStoreRequest]
|
|
2695
|
+
* @param {*} [options] Override http request option.
|
|
2696
|
+
* @throws {RequiredError}
|
|
2697
|
+
*/
|
|
2698
|
+
rolesStore: async (rolesStoreRequest?: RolesStoreRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2699
|
+
const localVarPath = `/v3/admin/roles`;
|
|
2700
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2701
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2702
|
+
let baseOptions;
|
|
2703
|
+
if (configuration) {
|
|
2704
|
+
baseOptions = configuration.baseOptions;
|
|
2705
|
+
}
|
|
2706
|
+
|
|
2707
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
2708
|
+
const localVarHeaderParameter = {} as any;
|
|
2709
|
+
const localVarQueryParameter = {} as any;
|
|
2710
|
+
|
|
2711
|
+
// authentication bearerAuth required
|
|
2712
|
+
// http bearer authentication required
|
|
2713
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2714
|
+
|
|
2715
|
+
|
|
2716
|
+
|
|
2717
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2718
|
+
|
|
2719
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2720
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2721
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2722
|
+
localVarRequestOptions.data = serializeDataIfNeeded(rolesStoreRequest, localVarRequestOptions, configuration)
|
|
2723
|
+
|
|
2724
|
+
return {
|
|
2725
|
+
url: toPathString(localVarUrlObj),
|
|
2726
|
+
options: localVarRequestOptions,
|
|
2727
|
+
};
|
|
2728
|
+
},
|
|
2729
|
+
/**
|
|
2730
|
+
*
|
|
2731
|
+
* @summary Atualizar role
|
|
2732
|
+
* @param {number} id ID da role
|
|
2733
|
+
* @param {RolesUpdateRequest} [rolesUpdateRequest]
|
|
2734
|
+
* @param {*} [options] Override http request option.
|
|
2735
|
+
* @throws {RequiredError}
|
|
2736
|
+
*/
|
|
2737
|
+
rolesUpdate: async (id: number, rolesUpdateRequest?: RolesUpdateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2738
|
+
// verify required parameter 'id' is not null or undefined
|
|
2739
|
+
assertParamExists('rolesUpdate', 'id', id)
|
|
2740
|
+
const localVarPath = `/v3/admin/roles/{id}`
|
|
2741
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2742
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2743
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2744
|
+
let baseOptions;
|
|
2745
|
+
if (configuration) {
|
|
2746
|
+
baseOptions = configuration.baseOptions;
|
|
2747
|
+
}
|
|
2748
|
+
|
|
2749
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
2750
|
+
const localVarHeaderParameter = {} as any;
|
|
2751
|
+
const localVarQueryParameter = {} as any;
|
|
2752
|
+
|
|
2753
|
+
// authentication bearerAuth required
|
|
2754
|
+
// http bearer authentication required
|
|
2755
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2756
|
+
|
|
2757
|
+
|
|
2758
|
+
|
|
2759
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2760
|
+
|
|
2761
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2762
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2763
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2764
|
+
localVarRequestOptions.data = serializeDataIfNeeded(rolesUpdateRequest, localVarRequestOptions, configuration)
|
|
2765
|
+
|
|
2766
|
+
return {
|
|
2767
|
+
url: toPathString(localVarUrlObj),
|
|
2768
|
+
options: localVarRequestOptions,
|
|
2769
|
+
};
|
|
2770
|
+
},
|
|
2771
|
+
}
|
|
2772
|
+
};
|
|
2773
|
+
|
|
2774
|
+
/**
|
|
2775
|
+
* RolesApi - functional programming interface
|
|
2776
|
+
* @export
|
|
2777
|
+
*/
|
|
2778
|
+
export const RolesApiFp = function(configuration?: Configuration) {
|
|
2779
|
+
const localVarAxiosParamCreator = RolesApiAxiosParamCreator(configuration)
|
|
2780
|
+
return {
|
|
2781
|
+
/**
|
|
2782
|
+
*
|
|
2783
|
+
* @summary Atualizar permissões de uma role
|
|
2784
|
+
* @param {number} id ID da role
|
|
2785
|
+
* @param {RolesAttachPermissionsRequest} [rolesAttachPermissionsRequest]
|
|
2786
|
+
* @param {*} [options] Override http request option.
|
|
2787
|
+
* @throws {RequiredError}
|
|
2788
|
+
*/
|
|
2789
|
+
async rolesAttachPermissions(id: number, rolesAttachPermissionsRequest?: RolesAttachPermissionsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RolesAttachPermissions200Response>> {
|
|
2790
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.rolesAttachPermissions(id, rolesAttachPermissionsRequest, options);
|
|
2791
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2792
|
+
const localVarOperationServerBasePath = operationServerMap['RolesApi.rolesAttachPermissions']?.[localVarOperationServerIndex]?.url;
|
|
2793
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2794
|
+
},
|
|
2795
|
+
/**
|
|
2796
|
+
*
|
|
2797
|
+
* @summary Remover role
|
|
2798
|
+
* @param {number} id ID da role
|
|
2799
|
+
* @param {*} [options] Override http request option.
|
|
2800
|
+
* @throws {RequiredError}
|
|
2801
|
+
*/
|
|
2802
|
+
async rolesDestroy(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
2803
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.rolesDestroy(id, options);
|
|
2804
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2805
|
+
const localVarOperationServerBasePath = operationServerMap['RolesApi.rolesDestroy']?.[localVarOperationServerIndex]?.url;
|
|
2806
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2807
|
+
},
|
|
2808
|
+
/**
|
|
2809
|
+
*
|
|
2810
|
+
* @summary Listar roles
|
|
2811
|
+
* @param {*} [options] Override http request option.
|
|
2812
|
+
* @throws {RequiredError}
|
|
2813
|
+
*/
|
|
2814
|
+
async rolesIndex(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RolesIndex200Response>> {
|
|
2815
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.rolesIndex(options);
|
|
2816
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2817
|
+
const localVarOperationServerBasePath = operationServerMap['RolesApi.rolesIndex']?.[localVarOperationServerIndex]?.url;
|
|
2818
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2819
|
+
},
|
|
2820
|
+
/**
|
|
2821
|
+
*
|
|
2822
|
+
* @summary Listar permissões de uma role
|
|
2823
|
+
* @param {number} id ID da role
|
|
2824
|
+
* @param {*} [options] Override http request option.
|
|
2825
|
+
* @throws {RequiredError}
|
|
2826
|
+
*/
|
|
2827
|
+
async rolesPermissions(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RolesPermissions200Response>> {
|
|
2828
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.rolesPermissions(id, options);
|
|
2829
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2830
|
+
const localVarOperationServerBasePath = operationServerMap['RolesApi.rolesPermissions']?.[localVarOperationServerIndex]?.url;
|
|
2831
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2832
|
+
},
|
|
2833
|
+
/**
|
|
2834
|
+
*
|
|
2835
|
+
* @summary Exibir detalhes da role
|
|
2836
|
+
* @param {number} id ID da role
|
|
2837
|
+
* @param {*} [options] Override http request option.
|
|
2838
|
+
* @throws {RequiredError}
|
|
2839
|
+
*/
|
|
2840
|
+
async rolesShow(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RolesShow200Response>> {
|
|
2841
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.rolesShow(id, options);
|
|
2842
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2843
|
+
const localVarOperationServerBasePath = operationServerMap['RolesApi.rolesShow']?.[localVarOperationServerIndex]?.url;
|
|
2844
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2845
|
+
},
|
|
2846
|
+
/**
|
|
2847
|
+
*
|
|
2848
|
+
* @summary Criar role
|
|
2849
|
+
* @param {RolesStoreRequest} [rolesStoreRequest]
|
|
2850
|
+
* @param {*} [options] Override http request option.
|
|
2851
|
+
* @throws {RequiredError}
|
|
2852
|
+
*/
|
|
2853
|
+
async rolesStore(rolesStoreRequest?: RolesStoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RolesStore201Response>> {
|
|
2854
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.rolesStore(rolesStoreRequest, options);
|
|
2855
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2856
|
+
const localVarOperationServerBasePath = operationServerMap['RolesApi.rolesStore']?.[localVarOperationServerIndex]?.url;
|
|
2857
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2858
|
+
},
|
|
2859
|
+
/**
|
|
2860
|
+
*
|
|
2861
|
+
* @summary Atualizar role
|
|
2862
|
+
* @param {number} id ID da role
|
|
2863
|
+
* @param {RolesUpdateRequest} [rolesUpdateRequest]
|
|
2864
|
+
* @param {*} [options] Override http request option.
|
|
2865
|
+
* @throws {RequiredError}
|
|
2866
|
+
*/
|
|
2867
|
+
async rolesUpdate(id: number, rolesUpdateRequest?: RolesUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RolesUpdate200Response>> {
|
|
2868
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.rolesUpdate(id, rolesUpdateRequest, options);
|
|
2869
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2870
|
+
const localVarOperationServerBasePath = operationServerMap['RolesApi.rolesUpdate']?.[localVarOperationServerIndex]?.url;
|
|
2871
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2872
|
+
},
|
|
2873
|
+
}
|
|
2874
|
+
};
|
|
2875
|
+
|
|
2876
|
+
/**
|
|
2877
|
+
* RolesApi - factory interface
|
|
2878
|
+
* @export
|
|
2879
|
+
*/
|
|
2880
|
+
export const RolesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
2881
|
+
const localVarFp = RolesApiFp(configuration)
|
|
2882
|
+
return {
|
|
2883
|
+
/**
|
|
2884
|
+
*
|
|
2885
|
+
* @summary Atualizar permissões de uma role
|
|
2886
|
+
* @param {number} id ID da role
|
|
2887
|
+
* @param {RolesAttachPermissionsRequest} [rolesAttachPermissionsRequest]
|
|
2888
|
+
* @param {*} [options] Override http request option.
|
|
2889
|
+
* @throws {RequiredError}
|
|
2890
|
+
*/
|
|
2891
|
+
rolesAttachPermissions(id: number, rolesAttachPermissionsRequest?: RolesAttachPermissionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<RolesAttachPermissions200Response> {
|
|
2892
|
+
return localVarFp.rolesAttachPermissions(id, rolesAttachPermissionsRequest, options).then((request) => request(axios, basePath));
|
|
2893
|
+
},
|
|
2894
|
+
/**
|
|
2895
|
+
*
|
|
2896
|
+
* @summary Remover role
|
|
2897
|
+
* @param {number} id ID da role
|
|
2898
|
+
* @param {*} [options] Override http request option.
|
|
2899
|
+
* @throws {RequiredError}
|
|
2900
|
+
*/
|
|
2901
|
+
rolesDestroy(id: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
2902
|
+
return localVarFp.rolesDestroy(id, options).then((request) => request(axios, basePath));
|
|
2903
|
+
},
|
|
2904
|
+
/**
|
|
2905
|
+
*
|
|
2906
|
+
* @summary Listar roles
|
|
2907
|
+
* @param {*} [options] Override http request option.
|
|
2908
|
+
* @throws {RequiredError}
|
|
2909
|
+
*/
|
|
2910
|
+
rolesIndex(options?: RawAxiosRequestConfig): AxiosPromise<RolesIndex200Response> {
|
|
2911
|
+
return localVarFp.rolesIndex(options).then((request) => request(axios, basePath));
|
|
2912
|
+
},
|
|
2913
|
+
/**
|
|
2914
|
+
*
|
|
2915
|
+
* @summary Listar permissões de uma role
|
|
2916
|
+
* @param {number} id ID da role
|
|
2917
|
+
* @param {*} [options] Override http request option.
|
|
2918
|
+
* @throws {RequiredError}
|
|
2919
|
+
*/
|
|
2920
|
+
rolesPermissions(id: number, options?: RawAxiosRequestConfig): AxiosPromise<RolesPermissions200Response> {
|
|
2921
|
+
return localVarFp.rolesPermissions(id, options).then((request) => request(axios, basePath));
|
|
2922
|
+
},
|
|
2923
|
+
/**
|
|
2924
|
+
*
|
|
2925
|
+
* @summary Exibir detalhes da role
|
|
2926
|
+
* @param {number} id ID da role
|
|
2927
|
+
* @param {*} [options] Override http request option.
|
|
2928
|
+
* @throws {RequiredError}
|
|
2929
|
+
*/
|
|
2930
|
+
rolesShow(id: number, options?: RawAxiosRequestConfig): AxiosPromise<RolesShow200Response> {
|
|
2931
|
+
return localVarFp.rolesShow(id, options).then((request) => request(axios, basePath));
|
|
2932
|
+
},
|
|
2933
|
+
/**
|
|
2934
|
+
*
|
|
2935
|
+
* @summary Criar role
|
|
2936
|
+
* @param {RolesStoreRequest} [rolesStoreRequest]
|
|
2937
|
+
* @param {*} [options] Override http request option.
|
|
2938
|
+
* @throws {RequiredError}
|
|
2939
|
+
*/
|
|
2940
|
+
rolesStore(rolesStoreRequest?: RolesStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<RolesStore201Response> {
|
|
2941
|
+
return localVarFp.rolesStore(rolesStoreRequest, options).then((request) => request(axios, basePath));
|
|
2942
|
+
},
|
|
2943
|
+
/**
|
|
2944
|
+
*
|
|
2945
|
+
* @summary Atualizar role
|
|
2946
|
+
* @param {number} id ID da role
|
|
2947
|
+
* @param {RolesUpdateRequest} [rolesUpdateRequest]
|
|
2948
|
+
* @param {*} [options] Override http request option.
|
|
2949
|
+
* @throws {RequiredError}
|
|
2950
|
+
*/
|
|
2951
|
+
rolesUpdate(id: number, rolesUpdateRequest?: RolesUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<RolesUpdate200Response> {
|
|
2952
|
+
return localVarFp.rolesUpdate(id, rolesUpdateRequest, options).then((request) => request(axios, basePath));
|
|
2953
|
+
},
|
|
2954
|
+
};
|
|
2955
|
+
};
|
|
2956
|
+
|
|
2957
|
+
/**
|
|
2958
|
+
* RolesApi - object-oriented interface
|
|
2959
|
+
* @export
|
|
2960
|
+
* @class RolesApi
|
|
2961
|
+
* @extends {BaseAPI}
|
|
2962
|
+
*/
|
|
2963
|
+
export class RolesApi extends BaseAPI {
|
|
2964
|
+
/**
|
|
2965
|
+
*
|
|
2966
|
+
* @summary Atualizar permissões de uma role
|
|
2967
|
+
* @param {number} id ID da role
|
|
2968
|
+
* @param {RolesAttachPermissionsRequest} [rolesAttachPermissionsRequest]
|
|
2969
|
+
* @param {*} [options] Override http request option.
|
|
2970
|
+
* @throws {RequiredError}
|
|
2971
|
+
* @memberof RolesApi
|
|
2972
|
+
*/
|
|
2973
|
+
public rolesAttachPermissions(id: number, rolesAttachPermissionsRequest?: RolesAttachPermissionsRequest, options?: RawAxiosRequestConfig) {
|
|
2974
|
+
return RolesApiFp(this.configuration).rolesAttachPermissions(id, rolesAttachPermissionsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2975
|
+
}
|
|
2976
|
+
|
|
2977
|
+
/**
|
|
2978
|
+
*
|
|
2979
|
+
* @summary Remover role
|
|
2980
|
+
* @param {number} id ID da role
|
|
2981
|
+
* @param {*} [options] Override http request option.
|
|
2982
|
+
* @throws {RequiredError}
|
|
2983
|
+
* @memberof RolesApi
|
|
2984
|
+
*/
|
|
2985
|
+
public rolesDestroy(id: number, options?: RawAxiosRequestConfig) {
|
|
2986
|
+
return RolesApiFp(this.configuration).rolesDestroy(id, options).then((request) => request(this.axios, this.basePath));
|
|
2987
|
+
}
|
|
2988
|
+
|
|
2989
|
+
/**
|
|
2990
|
+
*
|
|
2991
|
+
* @summary Listar roles
|
|
2992
|
+
* @param {*} [options] Override http request option.
|
|
2993
|
+
* @throws {RequiredError}
|
|
2994
|
+
* @memberof RolesApi
|
|
2995
|
+
*/
|
|
2996
|
+
public rolesIndex(options?: RawAxiosRequestConfig) {
|
|
2997
|
+
return RolesApiFp(this.configuration).rolesIndex(options).then((request) => request(this.axios, this.basePath));
|
|
2998
|
+
}
|
|
2999
|
+
|
|
3000
|
+
/**
|
|
3001
|
+
*
|
|
3002
|
+
* @summary Listar permissões de uma role
|
|
3003
|
+
* @param {number} id ID da role
|
|
3004
|
+
* @param {*} [options] Override http request option.
|
|
3005
|
+
* @throws {RequiredError}
|
|
3006
|
+
* @memberof RolesApi
|
|
3007
|
+
*/
|
|
3008
|
+
public rolesPermissions(id: number, options?: RawAxiosRequestConfig) {
|
|
3009
|
+
return RolesApiFp(this.configuration).rolesPermissions(id, options).then((request) => request(this.axios, this.basePath));
|
|
3010
|
+
}
|
|
3011
|
+
|
|
3012
|
+
/**
|
|
3013
|
+
*
|
|
3014
|
+
* @summary Exibir detalhes da role
|
|
3015
|
+
* @param {number} id ID da role
|
|
3016
|
+
* @param {*} [options] Override http request option.
|
|
3017
|
+
* @throws {RequiredError}
|
|
3018
|
+
* @memberof RolesApi
|
|
3019
|
+
*/
|
|
3020
|
+
public rolesShow(id: number, options?: RawAxiosRequestConfig) {
|
|
3021
|
+
return RolesApiFp(this.configuration).rolesShow(id, options).then((request) => request(this.axios, this.basePath));
|
|
3022
|
+
}
|
|
3023
|
+
|
|
3024
|
+
/**
|
|
3025
|
+
*
|
|
3026
|
+
* @summary Criar role
|
|
3027
|
+
* @param {RolesStoreRequest} [rolesStoreRequest]
|
|
3028
|
+
* @param {*} [options] Override http request option.
|
|
3029
|
+
* @throws {RequiredError}
|
|
3030
|
+
* @memberof RolesApi
|
|
3031
|
+
*/
|
|
3032
|
+
public rolesStore(rolesStoreRequest?: RolesStoreRequest, options?: RawAxiosRequestConfig) {
|
|
3033
|
+
return RolesApiFp(this.configuration).rolesStore(rolesStoreRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3034
|
+
}
|
|
3035
|
+
|
|
3036
|
+
/**
|
|
3037
|
+
*
|
|
3038
|
+
* @summary Atualizar role
|
|
3039
|
+
* @param {number} id ID da role
|
|
3040
|
+
* @param {RolesUpdateRequest} [rolesUpdateRequest]
|
|
3041
|
+
* @param {*} [options] Override http request option.
|
|
3042
|
+
* @throws {RequiredError}
|
|
3043
|
+
* @memberof RolesApi
|
|
3044
|
+
*/
|
|
3045
|
+
public rolesUpdate(id: number, rolesUpdateRequest?: RolesUpdateRequest, options?: RawAxiosRequestConfig) {
|
|
3046
|
+
return RolesApiFp(this.configuration).rolesUpdate(id, rolesUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3047
|
+
}
|
|
3048
|
+
}
|
|
3049
|
+
|
|
3050
|
+
|
|
3051
|
+
|
|
3052
|
+
/**
|
|
3053
|
+
* StepsApi - axios parameter creator
|
|
3054
|
+
* @export
|
|
3055
|
+
*/
|
|
3056
|
+
export const StepsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
3057
|
+
return {
|
|
3058
|
+
/**
|
|
3059
|
+
*
|
|
3060
|
+
* @summary Inclui uma Step em um determinado endpoint
|
|
3061
|
+
* @param {StepsAllowRequest} [stepsAllowRequest]
|
|
3062
|
+
* @param {*} [options] Override http request option.
|
|
3063
|
+
* @throws {RequiredError}
|
|
3064
|
+
*/
|
|
3065
|
+
stepsAllow: async (stepsAllowRequest?: StepsAllowRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3066
|
+
const localVarPath = `/v3/steps/allow`;
|
|
3067
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3068
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3069
|
+
let baseOptions;
|
|
3070
|
+
if (configuration) {
|
|
3071
|
+
baseOptions = configuration.baseOptions;
|
|
3072
|
+
}
|
|
3073
|
+
|
|
3074
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3075
|
+
const localVarHeaderParameter = {} as any;
|
|
3076
|
+
const localVarQueryParameter = {} as any;
|
|
3077
|
+
|
|
3078
|
+
// authentication bearerAuth required
|
|
3079
|
+
// http bearer authentication required
|
|
3080
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3081
|
+
|
|
3082
|
+
|
|
3083
|
+
|
|
3084
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3085
|
+
|
|
3086
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3087
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3088
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3089
|
+
localVarRequestOptions.data = serializeDataIfNeeded(stepsAllowRequest, localVarRequestOptions, configuration)
|
|
3090
|
+
|
|
3091
|
+
return {
|
|
3092
|
+
url: toPathString(localVarUrlObj),
|
|
3093
|
+
options: localVarRequestOptions,
|
|
3094
|
+
};
|
|
3095
|
+
},
|
|
3096
|
+
/**
|
|
3097
|
+
*
|
|
3098
|
+
* @summary Retorna todas as steps existentes
|
|
3099
|
+
* @param {string} [promotionId] UUID da promoção
|
|
3100
|
+
* @param {*} [options] Override http request option.
|
|
3101
|
+
* @throws {RequiredError}
|
|
3102
|
+
*/
|
|
3103
|
+
stepsIndex: async (promotionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3104
|
+
const localVarPath = `/v3/steps`;
|
|
3105
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3106
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3107
|
+
let baseOptions;
|
|
3108
|
+
if (configuration) {
|
|
3109
|
+
baseOptions = configuration.baseOptions;
|
|
3110
|
+
}
|
|
3111
|
+
|
|
3112
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
3113
|
+
const localVarHeaderParameter = {} as any;
|
|
3114
|
+
const localVarQueryParameter = {} as any;
|
|
3115
|
+
|
|
3116
|
+
// authentication bearerAuth required
|
|
3117
|
+
// http bearer authentication required
|
|
3118
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3119
|
+
|
|
3120
|
+
if (promotionId !== undefined) {
|
|
3121
|
+
localVarQueryParameter['promotion_id'] = promotionId;
|
|
3122
|
+
}
|
|
3123
|
+
|
|
3124
|
+
|
|
3125
|
+
|
|
3126
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3127
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3128
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3129
|
+
|
|
3130
|
+
return {
|
|
3131
|
+
url: toPathString(localVarUrlObj),
|
|
3132
|
+
options: localVarRequestOptions,
|
|
3133
|
+
};
|
|
3134
|
+
},
|
|
3135
|
+
/**
|
|
3136
|
+
*
|
|
3137
|
+
* @summary Remove uma Step de um determinado endpoint
|
|
3138
|
+
* @param {StepsAllowRequest} [stepsAllowRequest]
|
|
3139
|
+
* @param {*} [options] Override http request option.
|
|
3140
|
+
* @throws {RequiredError}
|
|
3141
|
+
*/
|
|
3142
|
+
stepsUnallow: async (stepsAllowRequest?: StepsAllowRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3143
|
+
const localVarPath = `/v3/steps/disallow`;
|
|
3144
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3145
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3146
|
+
let baseOptions;
|
|
3147
|
+
if (configuration) {
|
|
3148
|
+
baseOptions = configuration.baseOptions;
|
|
3149
|
+
}
|
|
3150
|
+
|
|
3151
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3152
|
+
const localVarHeaderParameter = {} as any;
|
|
3153
|
+
const localVarQueryParameter = {} as any;
|
|
3154
|
+
|
|
3155
|
+
// authentication bearerAuth required
|
|
3156
|
+
// http bearer authentication required
|
|
3157
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3158
|
+
|
|
3159
|
+
|
|
3160
|
+
|
|
3161
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3162
|
+
|
|
3163
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3164
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3165
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3166
|
+
localVarRequestOptions.data = serializeDataIfNeeded(stepsAllowRequest, localVarRequestOptions, configuration)
|
|
3167
|
+
|
|
3168
|
+
return {
|
|
3169
|
+
url: toPathString(localVarUrlObj),
|
|
3170
|
+
options: localVarRequestOptions,
|
|
3171
|
+
};
|
|
3172
|
+
},
|
|
3173
|
+
}
|
|
3174
|
+
};
|
|
3175
|
+
|
|
3176
|
+
/**
|
|
3177
|
+
* StepsApi - functional programming interface
|
|
3178
|
+
* @export
|
|
3179
|
+
*/
|
|
3180
|
+
export const StepsApiFp = function(configuration?: Configuration) {
|
|
3181
|
+
const localVarAxiosParamCreator = StepsApiAxiosParamCreator(configuration)
|
|
3182
|
+
return {
|
|
3183
|
+
/**
|
|
3184
|
+
*
|
|
3185
|
+
* @summary Inclui uma Step em um determinado endpoint
|
|
3186
|
+
* @param {StepsAllowRequest} [stepsAllowRequest]
|
|
3187
|
+
* @param {*} [options] Override http request option.
|
|
3188
|
+
* @throws {RequiredError}
|
|
3189
|
+
*/
|
|
3190
|
+
async stepsAllow(stepsAllowRequest?: StepsAllowRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StepsAllow201Response>> {
|
|
3191
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.stepsAllow(stepsAllowRequest, options);
|
|
3192
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3193
|
+
const localVarOperationServerBasePath = operationServerMap['StepsApi.stepsAllow']?.[localVarOperationServerIndex]?.url;
|
|
3194
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3195
|
+
},
|
|
3196
|
+
/**
|
|
3197
|
+
*
|
|
3198
|
+
* @summary Retorna todas as steps existentes
|
|
3199
|
+
* @param {string} [promotionId] UUID da promoção
|
|
3200
|
+
* @param {*} [options] Override http request option.
|
|
3201
|
+
* @throws {RequiredError}
|
|
3202
|
+
*/
|
|
3203
|
+
async stepsIndex(promotionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StepsIndex200Response>> {
|
|
3204
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.stepsIndex(promotionId, options);
|
|
3205
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3206
|
+
const localVarOperationServerBasePath = operationServerMap['StepsApi.stepsIndex']?.[localVarOperationServerIndex]?.url;
|
|
3207
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3208
|
+
},
|
|
3209
|
+
/**
|
|
3210
|
+
*
|
|
3211
|
+
* @summary Remove uma Step de um determinado endpoint
|
|
3212
|
+
* @param {StepsAllowRequest} [stepsAllowRequest]
|
|
3213
|
+
* @param {*} [options] Override http request option.
|
|
3214
|
+
* @throws {RequiredError}
|
|
3215
|
+
*/
|
|
3216
|
+
async stepsUnallow(stepsAllowRequest?: StepsAllowRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StepsUnallow201Response>> {
|
|
3217
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.stepsUnallow(stepsAllowRequest, options);
|
|
3218
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3219
|
+
const localVarOperationServerBasePath = operationServerMap['StepsApi.stepsUnallow']?.[localVarOperationServerIndex]?.url;
|
|
3220
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3221
|
+
},
|
|
3222
|
+
}
|
|
3223
|
+
};
|
|
3224
|
+
|
|
3225
|
+
/**
|
|
3226
|
+
* StepsApi - factory interface
|
|
3227
|
+
* @export
|
|
3228
|
+
*/
|
|
3229
|
+
export const StepsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
3230
|
+
const localVarFp = StepsApiFp(configuration)
|
|
3231
|
+
return {
|
|
3232
|
+
/**
|
|
3233
|
+
*
|
|
3234
|
+
* @summary Inclui uma Step em um determinado endpoint
|
|
3235
|
+
* @param {StepsAllowRequest} [stepsAllowRequest]
|
|
3236
|
+
* @param {*} [options] Override http request option.
|
|
3237
|
+
* @throws {RequiredError}
|
|
3238
|
+
*/
|
|
3239
|
+
stepsAllow(stepsAllowRequest?: StepsAllowRequest, options?: RawAxiosRequestConfig): AxiosPromise<StepsAllow201Response> {
|
|
3240
|
+
return localVarFp.stepsAllow(stepsAllowRequest, options).then((request) => request(axios, basePath));
|
|
3241
|
+
},
|
|
3242
|
+
/**
|
|
3243
|
+
*
|
|
3244
|
+
* @summary Retorna todas as steps existentes
|
|
3245
|
+
* @param {string} [promotionId] UUID da promoção
|
|
3246
|
+
* @param {*} [options] Override http request option.
|
|
3247
|
+
* @throws {RequiredError}
|
|
3248
|
+
*/
|
|
3249
|
+
stepsIndex(promotionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<StepsIndex200Response> {
|
|
3250
|
+
return localVarFp.stepsIndex(promotionId, options).then((request) => request(axios, basePath));
|
|
3251
|
+
},
|
|
3252
|
+
/**
|
|
3253
|
+
*
|
|
3254
|
+
* @summary Remove uma Step de um determinado endpoint
|
|
3255
|
+
* @param {StepsAllowRequest} [stepsAllowRequest]
|
|
3256
|
+
* @param {*} [options] Override http request option.
|
|
3257
|
+
* @throws {RequiredError}
|
|
3258
|
+
*/
|
|
3259
|
+
stepsUnallow(stepsAllowRequest?: StepsAllowRequest, options?: RawAxiosRequestConfig): AxiosPromise<StepsUnallow201Response> {
|
|
3260
|
+
return localVarFp.stepsUnallow(stepsAllowRequest, options).then((request) => request(axios, basePath));
|
|
3261
|
+
},
|
|
3262
|
+
};
|
|
3263
|
+
};
|
|
3264
|
+
|
|
3265
|
+
/**
|
|
3266
|
+
* StepsApi - object-oriented interface
|
|
3267
|
+
* @export
|
|
3268
|
+
* @class StepsApi
|
|
3269
|
+
* @extends {BaseAPI}
|
|
3270
|
+
*/
|
|
3271
|
+
export class StepsApi extends BaseAPI {
|
|
3272
|
+
/**
|
|
3273
|
+
*
|
|
3274
|
+
* @summary Inclui uma Step em um determinado endpoint
|
|
3275
|
+
* @param {StepsAllowRequest} [stepsAllowRequest]
|
|
3276
|
+
* @param {*} [options] Override http request option.
|
|
3277
|
+
* @throws {RequiredError}
|
|
3278
|
+
* @memberof StepsApi
|
|
3279
|
+
*/
|
|
3280
|
+
public stepsAllow(stepsAllowRequest?: StepsAllowRequest, options?: RawAxiosRequestConfig) {
|
|
3281
|
+
return StepsApiFp(this.configuration).stepsAllow(stepsAllowRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3282
|
+
}
|
|
3283
|
+
|
|
3284
|
+
/**
|
|
3285
|
+
*
|
|
3286
|
+
* @summary Retorna todas as steps existentes
|
|
3287
|
+
* @param {string} [promotionId] UUID da promoção
|
|
3288
|
+
* @param {*} [options] Override http request option.
|
|
3289
|
+
* @throws {RequiredError}
|
|
3290
|
+
* @memberof StepsApi
|
|
3291
|
+
*/
|
|
3292
|
+
public stepsIndex(promotionId?: string, options?: RawAxiosRequestConfig) {
|
|
3293
|
+
return StepsApiFp(this.configuration).stepsIndex(promotionId, options).then((request) => request(this.axios, this.basePath));
|
|
3294
|
+
}
|
|
3295
|
+
|
|
3296
|
+
/**
|
|
3297
|
+
*
|
|
3298
|
+
* @summary Remove uma Step de um determinado endpoint
|
|
3299
|
+
* @param {StepsAllowRequest} [stepsAllowRequest]
|
|
3300
|
+
* @param {*} [options] Override http request option.
|
|
3301
|
+
* @throws {RequiredError}
|
|
3302
|
+
* @memberof StepsApi
|
|
3303
|
+
*/
|
|
3304
|
+
public stepsUnallow(stepsAllowRequest?: StepsAllowRequest, options?: RawAxiosRequestConfig) {
|
|
3305
|
+
return StepsApiFp(this.configuration).stepsUnallow(stepsAllowRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3306
|
+
}
|
|
3307
|
+
}
|
|
3308
|
+
|
|
3309
|
+
|
|
3310
|
+
|
|
3311
|
+
/**
|
|
3312
|
+
* UserApi - axios parameter creator
|
|
3313
|
+
* @export
|
|
3314
|
+
*/
|
|
3315
|
+
export const UserApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
3316
|
+
return {
|
|
3317
|
+
/**
|
|
3318
|
+
*
|
|
3319
|
+
* @summary Dar permissões a um usuário na API
|
|
3320
|
+
* @param {UserGrantPermissionsRequest} [userGrantPermissionsRequest]
|
|
3321
|
+
* @param {*} [options] Override http request option.
|
|
3322
|
+
* @throws {RequiredError}
|
|
3323
|
+
*/
|
|
3324
|
+
userGrantPermissions: async (userGrantPermissionsRequest?: UserGrantPermissionsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3325
|
+
const localVarPath = `/v3/admin/user/grantpermissions`;
|
|
3326
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3327
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3328
|
+
let baseOptions;
|
|
3329
|
+
if (configuration) {
|
|
3330
|
+
baseOptions = configuration.baseOptions;
|
|
3331
|
+
}
|
|
3332
|
+
|
|
3333
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3334
|
+
const localVarHeaderParameter = {} as any;
|
|
3335
|
+
const localVarQueryParameter = {} as any;
|
|
3336
|
+
|
|
3337
|
+
// authentication bearerAuth required
|
|
3338
|
+
// http bearer authentication required
|
|
3339
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3340
|
+
|
|
3341
|
+
|
|
3342
|
+
|
|
3343
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3344
|
+
|
|
3345
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3346
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3347
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3348
|
+
localVarRequestOptions.data = serializeDataIfNeeded(userGrantPermissionsRequest, localVarRequestOptions, configuration)
|
|
3349
|
+
|
|
3350
|
+
return {
|
|
3351
|
+
url: toPathString(localVarUrlObj),
|
|
3352
|
+
options: localVarRequestOptions,
|
|
3353
|
+
};
|
|
3354
|
+
},
|
|
3355
|
+
/**
|
|
3356
|
+
*
|
|
3357
|
+
* @summary Registrar usuário na API
|
|
3358
|
+
* @param {UserRegisterRequest} [userRegisterRequest]
|
|
3359
|
+
* @param {*} [options] Override http request option.
|
|
3360
|
+
* @throws {RequiredError}
|
|
3361
|
+
*/
|
|
3362
|
+
userRegister: async (userRegisterRequest?: UserRegisterRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3363
|
+
const localVarPath = `/v3/admin/user/register`;
|
|
3364
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3365
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3366
|
+
let baseOptions;
|
|
3367
|
+
if (configuration) {
|
|
3368
|
+
baseOptions = configuration.baseOptions;
|
|
3369
|
+
}
|
|
3370
|
+
|
|
3371
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3372
|
+
const localVarHeaderParameter = {} as any;
|
|
3373
|
+
const localVarQueryParameter = {} as any;
|
|
3374
|
+
|
|
3375
|
+
// authentication bearerAuth required
|
|
3376
|
+
// http bearer authentication required
|
|
3377
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3378
|
+
|
|
3379
|
+
|
|
3380
|
+
|
|
3381
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3382
|
+
|
|
3383
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3384
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3385
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3386
|
+
localVarRequestOptions.data = serializeDataIfNeeded(userRegisterRequest, localVarRequestOptions, configuration)
|
|
3387
|
+
|
|
3388
|
+
return {
|
|
3389
|
+
url: toPathString(localVarUrlObj),
|
|
3390
|
+
options: localVarRequestOptions,
|
|
3391
|
+
};
|
|
3392
|
+
},
|
|
3393
|
+
/**
|
|
3394
|
+
*
|
|
3395
|
+
* @summary Visualizar dados do usuário na API
|
|
3396
|
+
* @param {string} uuid UUID do usuário a ser visualizado
|
|
3397
|
+
* @param {*} [options] Override http request option.
|
|
3398
|
+
* @throws {RequiredError}
|
|
3399
|
+
*/
|
|
3400
|
+
userShow: async (uuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3401
|
+
// verify required parameter 'uuid' is not null or undefined
|
|
3402
|
+
assertParamExists('userShow', 'uuid', uuid)
|
|
3403
|
+
const localVarPath = `/v3/admin/user/{uuid}`
|
|
3404
|
+
.replace(`{${"uuid"}}`, encodeURIComponent(String(uuid)));
|
|
3405
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3406
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3407
|
+
let baseOptions;
|
|
3408
|
+
if (configuration) {
|
|
3409
|
+
baseOptions = configuration.baseOptions;
|
|
3410
|
+
}
|
|
3411
|
+
|
|
3412
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
3413
|
+
const localVarHeaderParameter = {} as any;
|
|
3414
|
+
const localVarQueryParameter = {} as any;
|
|
3415
|
+
|
|
3416
|
+
// authentication bearerAuth required
|
|
3417
|
+
// http bearer authentication required
|
|
3418
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3419
|
+
|
|
3420
|
+
|
|
3421
|
+
|
|
3422
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3423
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3424
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3425
|
+
|
|
3426
|
+
return {
|
|
3427
|
+
url: toPathString(localVarUrlObj),
|
|
3428
|
+
options: localVarRequestOptions,
|
|
3429
|
+
};
|
|
3430
|
+
},
|
|
3431
|
+
/**
|
|
3432
|
+
*
|
|
3433
|
+
* @summary Atualizar nome do usuário na API
|
|
3434
|
+
* @param {string} uuid UUID do usuário a ser atualizado
|
|
3435
|
+
* @param {UserUpdateRequest} [userUpdateRequest]
|
|
3436
|
+
* @param {*} [options] Override http request option.
|
|
3437
|
+
* @throws {RequiredError}
|
|
3438
|
+
*/
|
|
3439
|
+
userUpdate: async (uuid: string, userUpdateRequest?: UserUpdateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3440
|
+
// verify required parameter 'uuid' is not null or undefined
|
|
3441
|
+
assertParamExists('userUpdate', 'uuid', uuid)
|
|
3442
|
+
const localVarPath = `/v3/admin/user/{uuid}`
|
|
3443
|
+
.replace(`{${"uuid"}}`, encodeURIComponent(String(uuid)));
|
|
3444
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3445
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3446
|
+
let baseOptions;
|
|
3447
|
+
if (configuration) {
|
|
3448
|
+
baseOptions = configuration.baseOptions;
|
|
3449
|
+
}
|
|
3450
|
+
|
|
3451
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
3452
|
+
const localVarHeaderParameter = {} as any;
|
|
3453
|
+
const localVarQueryParameter = {} as any;
|
|
3454
|
+
|
|
3455
|
+
// authentication bearerAuth required
|
|
3456
|
+
// http bearer authentication required
|
|
3457
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3458
|
+
|
|
3459
|
+
|
|
3460
|
+
|
|
3461
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3462
|
+
|
|
3463
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3464
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3465
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3466
|
+
localVarRequestOptions.data = serializeDataIfNeeded(userUpdateRequest, localVarRequestOptions, configuration)
|
|
3467
|
+
|
|
3468
|
+
return {
|
|
3469
|
+
url: toPathString(localVarUrlObj),
|
|
3470
|
+
options: localVarRequestOptions,
|
|
3471
|
+
};
|
|
3472
|
+
},
|
|
3473
|
+
}
|
|
3474
|
+
};
|
|
3475
|
+
|
|
3476
|
+
/**
|
|
3477
|
+
* UserApi - functional programming interface
|
|
3478
|
+
* @export
|
|
3479
|
+
*/
|
|
3480
|
+
export const UserApiFp = function(configuration?: Configuration) {
|
|
3481
|
+
const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration)
|
|
3482
|
+
return {
|
|
3483
|
+
/**
|
|
3484
|
+
*
|
|
3485
|
+
* @summary Dar permissões a um usuário na API
|
|
3486
|
+
* @param {UserGrantPermissionsRequest} [userGrantPermissionsRequest]
|
|
3487
|
+
* @param {*} [options] Override http request option.
|
|
3488
|
+
* @throws {RequiredError}
|
|
3489
|
+
*/
|
|
3490
|
+
async userGrantPermissions(userGrantPermissionsRequest?: UserGrantPermissionsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserGrantPermissions200Response>> {
|
|
3491
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.userGrantPermissions(userGrantPermissionsRequest, options);
|
|
3492
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3493
|
+
const localVarOperationServerBasePath = operationServerMap['UserApi.userGrantPermissions']?.[localVarOperationServerIndex]?.url;
|
|
3494
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3495
|
+
},
|
|
3496
|
+
/**
|
|
3497
|
+
*
|
|
3498
|
+
* @summary Registrar usuário na API
|
|
3499
|
+
* @param {UserRegisterRequest} [userRegisterRequest]
|
|
3500
|
+
* @param {*} [options] Override http request option.
|
|
3501
|
+
* @throws {RequiredError}
|
|
3502
|
+
*/
|
|
3503
|
+
async userRegister(userRegisterRequest?: UserRegisterRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserRegister200Response>> {
|
|
3504
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.userRegister(userRegisterRequest, options);
|
|
3505
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3506
|
+
const localVarOperationServerBasePath = operationServerMap['UserApi.userRegister']?.[localVarOperationServerIndex]?.url;
|
|
3507
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3508
|
+
},
|
|
3509
|
+
/**
|
|
3510
|
+
*
|
|
3511
|
+
* @summary Visualizar dados do usuário na API
|
|
3512
|
+
* @param {string} uuid UUID do usuário a ser visualizado
|
|
3513
|
+
* @param {*} [options] Override http request option.
|
|
3514
|
+
* @throws {RequiredError}
|
|
3515
|
+
*/
|
|
3516
|
+
async userShow(uuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserShow200Response>> {
|
|
3517
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.userShow(uuid, options);
|
|
3518
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3519
|
+
const localVarOperationServerBasePath = operationServerMap['UserApi.userShow']?.[localVarOperationServerIndex]?.url;
|
|
3520
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3521
|
+
},
|
|
3522
|
+
/**
|
|
3523
|
+
*
|
|
3524
|
+
* @summary Atualizar nome do usuário na API
|
|
3525
|
+
* @param {string} uuid UUID do usuário a ser atualizado
|
|
3526
|
+
* @param {UserUpdateRequest} [userUpdateRequest]
|
|
3527
|
+
* @param {*} [options] Override http request option.
|
|
3528
|
+
* @throws {RequiredError}
|
|
3529
|
+
*/
|
|
3530
|
+
async userUpdate(uuid: string, userUpdateRequest?: UserUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserUpdate200Response>> {
|
|
3531
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.userUpdate(uuid, userUpdateRequest, options);
|
|
3532
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3533
|
+
const localVarOperationServerBasePath = operationServerMap['UserApi.userUpdate']?.[localVarOperationServerIndex]?.url;
|
|
3534
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3535
|
+
},
|
|
3536
|
+
}
|
|
3537
|
+
};
|
|
3538
|
+
|
|
3539
|
+
/**
|
|
3540
|
+
* UserApi - factory interface
|
|
3541
|
+
* @export
|
|
3542
|
+
*/
|
|
3543
|
+
export const UserApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
3544
|
+
const localVarFp = UserApiFp(configuration)
|
|
3545
|
+
return {
|
|
3546
|
+
/**
|
|
3547
|
+
*
|
|
3548
|
+
* @summary Dar permissões a um usuário na API
|
|
3549
|
+
* @param {UserGrantPermissionsRequest} [userGrantPermissionsRequest]
|
|
3550
|
+
* @param {*} [options] Override http request option.
|
|
3551
|
+
* @throws {RequiredError}
|
|
3552
|
+
*/
|
|
3553
|
+
userGrantPermissions(userGrantPermissionsRequest?: UserGrantPermissionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserGrantPermissions200Response> {
|
|
3554
|
+
return localVarFp.userGrantPermissions(userGrantPermissionsRequest, options).then((request) => request(axios, basePath));
|
|
3555
|
+
},
|
|
3556
|
+
/**
|
|
3557
|
+
*
|
|
3558
|
+
* @summary Registrar usuário na API
|
|
3559
|
+
* @param {UserRegisterRequest} [userRegisterRequest]
|
|
3560
|
+
* @param {*} [options] Override http request option.
|
|
3561
|
+
* @throws {RequiredError}
|
|
3562
|
+
*/
|
|
3563
|
+
userRegister(userRegisterRequest?: UserRegisterRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserRegister200Response> {
|
|
3564
|
+
return localVarFp.userRegister(userRegisterRequest, options).then((request) => request(axios, basePath));
|
|
3565
|
+
},
|
|
3566
|
+
/**
|
|
3567
|
+
*
|
|
3568
|
+
* @summary Visualizar dados do usuário na API
|
|
3569
|
+
* @param {string} uuid UUID do usuário a ser visualizado
|
|
3570
|
+
* @param {*} [options] Override http request option.
|
|
3571
|
+
* @throws {RequiredError}
|
|
3572
|
+
*/
|
|
3573
|
+
userShow(uuid: string, options?: RawAxiosRequestConfig): AxiosPromise<UserShow200Response> {
|
|
3574
|
+
return localVarFp.userShow(uuid, options).then((request) => request(axios, basePath));
|
|
3575
|
+
},
|
|
3576
|
+
/**
|
|
3577
|
+
*
|
|
3578
|
+
* @summary Atualizar nome do usuário na API
|
|
3579
|
+
* @param {string} uuid UUID do usuário a ser atualizado
|
|
3580
|
+
* @param {UserUpdateRequest} [userUpdateRequest]
|
|
3581
|
+
* @param {*} [options] Override http request option.
|
|
3582
|
+
* @throws {RequiredError}
|
|
3583
|
+
*/
|
|
3584
|
+
userUpdate(uuid: string, userUpdateRequest?: UserUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserUpdate200Response> {
|
|
3585
|
+
return localVarFp.userUpdate(uuid, userUpdateRequest, options).then((request) => request(axios, basePath));
|
|
3586
|
+
},
|
|
3587
|
+
};
|
|
3588
|
+
};
|
|
3589
|
+
|
|
3590
|
+
/**
|
|
3591
|
+
* UserApi - object-oriented interface
|
|
3592
|
+
* @export
|
|
3593
|
+
* @class UserApi
|
|
3594
|
+
* @extends {BaseAPI}
|
|
3595
|
+
*/
|
|
3596
|
+
export class UserApi extends BaseAPI {
|
|
3597
|
+
/**
|
|
3598
|
+
*
|
|
3599
|
+
* @summary Dar permissões a um usuário na API
|
|
3600
|
+
* @param {UserGrantPermissionsRequest} [userGrantPermissionsRequest]
|
|
3601
|
+
* @param {*} [options] Override http request option.
|
|
3602
|
+
* @throws {RequiredError}
|
|
3603
|
+
* @memberof UserApi
|
|
3604
|
+
*/
|
|
3605
|
+
public userGrantPermissions(userGrantPermissionsRequest?: UserGrantPermissionsRequest, options?: RawAxiosRequestConfig) {
|
|
3606
|
+
return UserApiFp(this.configuration).userGrantPermissions(userGrantPermissionsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3607
|
+
}
|
|
3608
|
+
|
|
3609
|
+
/**
|
|
3610
|
+
*
|
|
3611
|
+
* @summary Registrar usuário na API
|
|
3612
|
+
* @param {UserRegisterRequest} [userRegisterRequest]
|
|
3613
|
+
* @param {*} [options] Override http request option.
|
|
3614
|
+
* @throws {RequiredError}
|
|
3615
|
+
* @memberof UserApi
|
|
3616
|
+
*/
|
|
3617
|
+
public userRegister(userRegisterRequest?: UserRegisterRequest, options?: RawAxiosRequestConfig) {
|
|
3618
|
+
return UserApiFp(this.configuration).userRegister(userRegisterRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3619
|
+
}
|
|
3620
|
+
|
|
3621
|
+
/**
|
|
3622
|
+
*
|
|
3623
|
+
* @summary Visualizar dados do usuário na API
|
|
3624
|
+
* @param {string} uuid UUID do usuário a ser visualizado
|
|
3625
|
+
* @param {*} [options] Override http request option.
|
|
3626
|
+
* @throws {RequiredError}
|
|
3627
|
+
* @memberof UserApi
|
|
3628
|
+
*/
|
|
3629
|
+
public userShow(uuid: string, options?: RawAxiosRequestConfig) {
|
|
3630
|
+
return UserApiFp(this.configuration).userShow(uuid, options).then((request) => request(this.axios, this.basePath));
|
|
3631
|
+
}
|
|
3632
|
+
|
|
3633
|
+
/**
|
|
3634
|
+
*
|
|
3635
|
+
* @summary Atualizar nome do usuário na API
|
|
3636
|
+
* @param {string} uuid UUID do usuário a ser atualizado
|
|
3637
|
+
* @param {UserUpdateRequest} [userUpdateRequest]
|
|
3638
|
+
* @param {*} [options] Override http request option.
|
|
3639
|
+
* @throws {RequiredError}
|
|
3640
|
+
* @memberof UserApi
|
|
3641
|
+
*/
|
|
3642
|
+
public userUpdate(uuid: string, userUpdateRequest?: UserUpdateRequest, options?: RawAxiosRequestConfig) {
|
|
3643
|
+
return UserApiFp(this.configuration).userUpdate(uuid, userUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3644
|
+
}
|
|
3645
|
+
}
|
|
3646
|
+
|
|
3647
|
+
|
|
3648
|
+
|