@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.
Files changed (91) hide show
  1. package/.openapi-generator/FILES +81 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +154 -0
  5. package/api.ts +3648 -0
  6. package/base.ts +86 -0
  7. package/common.ts +150 -0
  8. package/configuration.ts +115 -0
  9. package/dist/api.d.ts +2664 -0
  10. package/dist/api.js +2463 -0
  11. package/dist/base.d.ts +66 -0
  12. package/dist/base.js +86 -0
  13. package/dist/common.d.ts +65 -0
  14. package/dist/common.js +253 -0
  15. package/dist/configuration.d.ts +91 -0
  16. package/dist/configuration.js +57 -0
  17. package/dist/index.d.ts +13 -0
  18. package/dist/index.js +31 -0
  19. package/docs/AdminAuthRequestToken200Response.md +24 -0
  20. package/docs/AdminAuthRequestTokenRequest.md +20 -0
  21. package/docs/AuthApi.md +264 -0
  22. package/docs/AuthLogin200Response.md +24 -0
  23. package/docs/AuthLogin401Response.md +20 -0
  24. package/docs/AuthLoginByToken200Response.md +26 -0
  25. package/docs/AuthLoginByTokenRequest.md +22 -0
  26. package/docs/AuthLoginRequest.md +22 -0
  27. package/docs/AuthMe200Response.md +28 -0
  28. package/docs/AuthMe200ResponsePromotionsInner.md +22 -0
  29. package/docs/AuthRefreshTokenRequest.md +20 -0
  30. package/docs/Metrics200Response.md +24 -0
  31. package/docs/Metrics200ResponseUsersInner.md +22 -0
  32. package/docs/Metrics400Response.md +20 -0
  33. package/docs/MetricsApi.md +75 -0
  34. package/docs/PromotionApi.md +115 -0
  35. package/docs/PromotionPullConfiguration200Response.md +24 -0
  36. package/docs/PromotionPullConfiguration500Response.md +24 -0
  37. package/docs/PromotionPullConfigurationRequest.md +20 -0
  38. package/docs/PromotionPullConfigurationRequestDb.md +28 -0
  39. package/docs/PromotionStart200Response.md +28 -0
  40. package/docs/PromotionStart200ResponseUser.md +30 -0
  41. package/docs/PromotionStartRequest.md +24 -0
  42. package/docs/PromotionStartRequestUser.md +24 -0
  43. package/docs/RolesApi.md +376 -0
  44. package/docs/RolesAttachPermissions200Response.md +28 -0
  45. package/docs/RolesAttachPermissions422Response.md +20 -0
  46. package/docs/RolesAttachPermissionsRequest.md +20 -0
  47. package/docs/RolesDestroy400Response.md +20 -0
  48. package/docs/RolesIndex200Response.md +26 -0
  49. package/docs/RolesIndex200ResponseRolesInner.md +26 -0
  50. package/docs/RolesIndex500Response.md +20 -0
  51. package/docs/RolesPermissions200Response.md +28 -0
  52. package/docs/RolesShow200Response.md +28 -0
  53. package/docs/RolesShow200ResponsePermissionsInner.md +32 -0
  54. package/docs/RolesShow200ResponseRole.md +26 -0
  55. package/docs/RolesStore201Response.md +26 -0
  56. package/docs/RolesStore201ResponseRole.md +26 -0
  57. package/docs/RolesStore422Response.md +20 -0
  58. package/docs/RolesStoreRequest.md +24 -0
  59. package/docs/RolesUpdate200Response.md +26 -0
  60. package/docs/RolesUpdateRequest.md +24 -0
  61. package/docs/StepsAllow201Response.md +26 -0
  62. package/docs/StepsAllow409Response.md +26 -0
  63. package/docs/StepsAllowRequest.md +24 -0
  64. package/docs/StepsApi.md +167 -0
  65. package/docs/StepsIndex200Response.md +22 -0
  66. package/docs/StepsIndex200ResponseStepsValueValue.md +30 -0
  67. package/docs/StepsUnallow201Response.md +26 -0
  68. package/docs/StepsUnallow409Response.md +26 -0
  69. package/docs/UserApi.md +226 -0
  70. package/docs/UserGrantPermissions200Response.md +26 -0
  71. package/docs/UserGrantPermissions200ResponseUserInner.md +24 -0
  72. package/docs/UserGrantPermissions500Response.md +24 -0
  73. package/docs/UserGrantPermissionsRequest.md +24 -0
  74. package/docs/UserRegister200Response.md +26 -0
  75. package/docs/UserRegister200ResponseUserInner.md +28 -0
  76. package/docs/UserRegister500Response.md +24 -0
  77. package/docs/UserRegisterRequest.md +24 -0
  78. package/docs/UserShow200Response.md +26 -0
  79. package/docs/UserShow200ResponseUser.md +26 -0
  80. package/docs/UserShow404Response.md +24 -0
  81. package/docs/UserShow500Response.md +24 -0
  82. package/docs/UserUpdate200Response.md +26 -0
  83. package/docs/UserUpdate200ResponseUser.md +26 -0
  84. package/docs/UserUpdate404Response.md +24 -0
  85. package/docs/UserUpdate422Response.md +20 -0
  86. package/docs/UserUpdate500Response.md +24 -0
  87. package/docs/UserUpdateRequest.md +20 -0
  88. package/git_push.sh +57 -0
  89. package/index.ts +18 -0
  90. package/package.json +31 -0
  91. package/tsconfig.json +21 -0
package/dist/api.d.ts ADDED
@@ -0,0 +1,2664 @@
1
+ /**
2
+ * Plataforma de Promoção - Documentação da API
3
+ * # 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)
4
+ *
5
+ * The version of the OpenAPI document: 3.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { Configuration } from './configuration';
13
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
+ import type { RequestArgs } from './base';
15
+ import { BaseAPI } from './base';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface AdminAuthRequestToken200Response
20
+ */
21
+ export interface AdminAuthRequestToken200Response {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof AdminAuthRequestToken200Response
26
+ */
27
+ 'entity'?: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof AdminAuthRequestToken200Response
32
+ */
33
+ 'action'?: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof AdminAuthRequestToken200Response
38
+ */
39
+ 'message'?: string;
40
+ }
41
+ /**
42
+ *
43
+ * @export
44
+ * @interface AdminAuthRequestTokenRequest
45
+ */
46
+ export interface AdminAuthRequestTokenRequest {
47
+ /**
48
+ *
49
+ * @type {string}
50
+ * @memberof AdminAuthRequestTokenRequest
51
+ */
52
+ 'email'?: string;
53
+ }
54
+ /**
55
+ *
56
+ * @export
57
+ * @interface AuthLogin200Response
58
+ */
59
+ export interface AuthLogin200Response {
60
+ /**
61
+ *
62
+ * @type {string}
63
+ * @memberof AuthLogin200Response
64
+ */
65
+ 'token'?: string;
66
+ /**
67
+ *
68
+ * @type {string}
69
+ * @memberof AuthLogin200Response
70
+ */
71
+ 'token_type'?: string;
72
+ /**
73
+ *
74
+ * @type {string}
75
+ * @memberof AuthLogin200Response
76
+ */
77
+ 'expires_in'?: string;
78
+ }
79
+ /**
80
+ *
81
+ * @export
82
+ * @interface AuthLogin401Response
83
+ */
84
+ export interface AuthLogin401Response {
85
+ /**
86
+ *
87
+ * @type {string}
88
+ * @memberof AuthLogin401Response
89
+ */
90
+ 'message'?: string;
91
+ }
92
+ /**
93
+ *
94
+ * @export
95
+ * @interface AuthLoginByToken200Response
96
+ */
97
+ export interface AuthLoginByToken200Response {
98
+ /**
99
+ *
100
+ * @type {string}
101
+ * @memberof AuthLoginByToken200Response
102
+ */
103
+ 'token'?: string;
104
+ /**
105
+ *
106
+ * @type {string}
107
+ * @memberof AuthLoginByToken200Response
108
+ */
109
+ 'refresh_token'?: string;
110
+ /**
111
+ *
112
+ * @type {string}
113
+ * @memberof AuthLoginByToken200Response
114
+ */
115
+ 'token_type'?: string;
116
+ /**
117
+ *
118
+ * @type {string}
119
+ * @memberof AuthLoginByToken200Response
120
+ */
121
+ 'expires_in'?: string;
122
+ }
123
+ /**
124
+ *
125
+ * @export
126
+ * @interface AuthLoginByTokenRequest
127
+ */
128
+ export interface AuthLoginByTokenRequest {
129
+ /**
130
+ *
131
+ * @type {string}
132
+ * @memberof AuthLoginByTokenRequest
133
+ */
134
+ 'email'?: string;
135
+ /**
136
+ *
137
+ * @type {string}
138
+ * @memberof AuthLoginByTokenRequest
139
+ */
140
+ 'token'?: string;
141
+ }
142
+ /**
143
+ *
144
+ * @export
145
+ * @interface AuthLoginRequest
146
+ */
147
+ export interface AuthLoginRequest {
148
+ /**
149
+ *
150
+ * @type {string}
151
+ * @memberof AuthLoginRequest
152
+ */
153
+ 'username'?: string;
154
+ /**
155
+ *
156
+ * @type {string}
157
+ * @memberof AuthLoginRequest
158
+ */
159
+ 'password'?: string;
160
+ }
161
+ /**
162
+ *
163
+ * @export
164
+ * @interface AuthMe200Response
165
+ */
166
+ export interface AuthMe200Response {
167
+ /**
168
+ *
169
+ * @type {string}
170
+ * @memberof AuthMe200Response
171
+ */
172
+ 'uuid'?: string;
173
+ /**
174
+ *
175
+ * @type {string}
176
+ * @memberof AuthMe200Response
177
+ */
178
+ 'username'?: string;
179
+ /**
180
+ *
181
+ * @type {string}
182
+ * @memberof AuthMe200Response
183
+ */
184
+ 'email'?: string;
185
+ /**
186
+ *
187
+ * @type {string}
188
+ * @memberof AuthMe200Response
189
+ */
190
+ 'name'?: string;
191
+ /**
192
+ * Promoções que o usuário tem acesso
193
+ * @type {Array<AuthMe200ResponsePromotionsInner>}
194
+ * @memberof AuthMe200Response
195
+ */
196
+ 'promotions'?: Array<AuthMe200ResponsePromotionsInner>;
197
+ }
198
+ /**
199
+ *
200
+ * @export
201
+ * @interface AuthMe200ResponsePromotionsInner
202
+ */
203
+ export interface AuthMe200ResponsePromotionsInner {
204
+ /**
205
+ *
206
+ * @type {string}
207
+ * @memberof AuthMe200ResponsePromotionsInner
208
+ */
209
+ 'uuid'?: string;
210
+ /**
211
+ *
212
+ * @type {string}
213
+ * @memberof AuthMe200ResponsePromotionsInner
214
+ */
215
+ 'name'?: string;
216
+ }
217
+ /**
218
+ *
219
+ * @export
220
+ * @interface AuthRefreshTokenRequest
221
+ */
222
+ export interface AuthRefreshTokenRequest {
223
+ /**
224
+ *
225
+ * @type {string}
226
+ * @memberof AuthRefreshTokenRequest
227
+ */
228
+ 'refresh_token'?: string;
229
+ }
230
+ /**
231
+ *
232
+ * @export
233
+ * @interface Metrics200Response
234
+ */
235
+ export interface Metrics200Response {
236
+ /**
237
+ *
238
+ * @type {Array<Metrics200ResponseUsersInner>}
239
+ * @memberof Metrics200Response
240
+ */
241
+ 'users'?: Array<Metrics200ResponseUsersInner>;
242
+ /**
243
+ *
244
+ * @type {Array<Metrics200ResponseUsersInner>}
245
+ * @memberof Metrics200Response
246
+ */
247
+ 'coupons'?: Array<Metrics200ResponseUsersInner>;
248
+ /**
249
+ *
250
+ * @type {Array<Metrics200ResponseUsersInner>}
251
+ * @memberof Metrics200Response
252
+ */
253
+ 'luckyNumbers'?: Array<Metrics200ResponseUsersInner>;
254
+ }
255
+ /**
256
+ *
257
+ * @export
258
+ * @interface Metrics200ResponseUsersInner
259
+ */
260
+ export interface Metrics200ResponseUsersInner {
261
+ /**
262
+ *
263
+ * @type {number}
264
+ * @memberof Metrics200ResponseUsersInner
265
+ */
266
+ 'value'?: number;
267
+ /**
268
+ *
269
+ * @type {string}
270
+ * @memberof Metrics200ResponseUsersInner
271
+ */
272
+ 'time'?: string;
273
+ }
274
+ /**
275
+ *
276
+ * @export
277
+ * @interface Metrics400Response
278
+ */
279
+ export interface Metrics400Response {
280
+ /**
281
+ *
282
+ * @type {string}
283
+ * @memberof Metrics400Response
284
+ */
285
+ 'message'?: string;
286
+ }
287
+ /**
288
+ *
289
+ * @export
290
+ * @interface PromotionPullConfiguration200Response
291
+ */
292
+ export interface PromotionPullConfiguration200Response {
293
+ /**
294
+ *
295
+ * @type {string}
296
+ * @memberof PromotionPullConfiguration200Response
297
+ */
298
+ 'action'?: string;
299
+ /**
300
+ *
301
+ * @type {string}
302
+ * @memberof PromotionPullConfiguration200Response
303
+ */
304
+ 'result'?: string;
305
+ /**
306
+ *
307
+ * @type {string}
308
+ * @memberof PromotionPullConfiguration200Response
309
+ */
310
+ 'message'?: string;
311
+ }
312
+ /**
313
+ *
314
+ * @export
315
+ * @interface PromotionPullConfiguration500Response
316
+ */
317
+ export interface PromotionPullConfiguration500Response {
318
+ /**
319
+ *
320
+ * @type {string}
321
+ * @memberof PromotionPullConfiguration500Response
322
+ */
323
+ 'action'?: string;
324
+ /**
325
+ *
326
+ * @type {string}
327
+ * @memberof PromotionPullConfiguration500Response
328
+ */
329
+ 'result'?: string;
330
+ /**
331
+ *
332
+ * @type {string}
333
+ * @memberof PromotionPullConfiguration500Response
334
+ */
335
+ 'message'?: string;
336
+ }
337
+ /**
338
+ *
339
+ * @export
340
+ * @interface PromotionPullConfigurationRequest
341
+ */
342
+ export interface PromotionPullConfigurationRequest {
343
+ /**
344
+ *
345
+ * @type {PromotionPullConfigurationRequestDb}
346
+ * @memberof PromotionPullConfigurationRequest
347
+ */
348
+ 'db'?: PromotionPullConfigurationRequestDb;
349
+ }
350
+ /**
351
+ *
352
+ * @export
353
+ * @interface PromotionPullConfigurationRequestDb
354
+ */
355
+ export interface PromotionPullConfigurationRequestDb {
356
+ /**
357
+ *
358
+ * @type {string}
359
+ * @memberof PromotionPullConfigurationRequestDb
360
+ */
361
+ 'host'?: string;
362
+ /**
363
+ *
364
+ * @type {string}
365
+ * @memberof PromotionPullConfigurationRequestDb
366
+ */
367
+ 'port'?: string;
368
+ /**
369
+ *
370
+ * @type {string}
371
+ * @memberof PromotionPullConfigurationRequestDb
372
+ */
373
+ 'name'?: string;
374
+ /**
375
+ *
376
+ * @type {string}
377
+ * @memberof PromotionPullConfigurationRequestDb
378
+ */
379
+ 'user'?: string;
380
+ /**
381
+ *
382
+ * @type {string}
383
+ * @memberof PromotionPullConfigurationRequestDb
384
+ */
385
+ 'pass'?: string;
386
+ }
387
+ /**
388
+ *
389
+ * @export
390
+ * @interface PromotionStart200Response
391
+ */
392
+ export interface PromotionStart200Response {
393
+ /**
394
+ *
395
+ * @type {string}
396
+ * @memberof PromotionStart200Response
397
+ */
398
+ 'action'?: string;
399
+ /**
400
+ *
401
+ * @type {string}
402
+ * @memberof PromotionStart200Response
403
+ */
404
+ 'result'?: string;
405
+ /**
406
+ *
407
+ * @type {string}
408
+ * @memberof PromotionStart200Response
409
+ */
410
+ 'message'?: string;
411
+ /**
412
+ *
413
+ * @type {string}
414
+ * @memberof PromotionStart200Response
415
+ */
416
+ 'promotion_id'?: string;
417
+ /**
418
+ *
419
+ * @type {PromotionStart200ResponseUser}
420
+ * @memberof PromotionStart200Response
421
+ */
422
+ 'user'?: PromotionStart200ResponseUser;
423
+ }
424
+ /**
425
+ *
426
+ * @export
427
+ * @interface PromotionStart200ResponseUser
428
+ */
429
+ export interface PromotionStart200ResponseUser {
430
+ /**
431
+ *
432
+ * @type {string}
433
+ * @memberof PromotionStart200ResponseUser
434
+ */
435
+ 'password'?: string;
436
+ /**
437
+ *
438
+ * @type {string}
439
+ * @memberof PromotionStart200ResponseUser
440
+ */
441
+ 'username'?: string;
442
+ /**
443
+ *
444
+ * @type {string}
445
+ * @memberof PromotionStart200ResponseUser
446
+ */
447
+ 'name'?: string;
448
+ /**
449
+ *
450
+ * @type {string}
451
+ * @memberof PromotionStart200ResponseUser
452
+ */
453
+ 'email'?: string;
454
+ /**
455
+ *
456
+ * @type {string}
457
+ * @memberof PromotionStart200ResponseUser
458
+ */
459
+ 'uuid'?: string;
460
+ /**
461
+ *
462
+ * @type {Array<string>}
463
+ * @memberof PromotionStart200ResponseUser
464
+ */
465
+ 'permissions'?: Array<PromotionStart200ResponseUserPermissionsEnum>;
466
+ }
467
+ export declare const PromotionStart200ResponseUserPermissionsEnum: {
468
+ readonly PromotionUsersIndex: "promotion.users.index";
469
+ readonly PromotionUsersCreate: "promotion.users.create";
470
+ readonly PromotionArticlesIndex: "promotion.articles.index";
471
+ readonly PromotionArticlesCreate: "promotion.articles.create";
472
+ readonly PromotionArticlesDelete: "promotion.articles.delete";
473
+ readonly PromotionAwardedsIndex: "promotion.awardeds.index";
474
+ readonly PromotionAwardsIndex: "promotion.awards.index";
475
+ readonly PromotionAwardsCreate: "promotion.awards.create";
476
+ readonly PromotionAwardsDelete: "promotion.awards.delete";
477
+ readonly PromotionBrandingIndex: "promotion.branding.index";
478
+ readonly PromotionBrandingCreate: "promotion.branding.create";
479
+ readonly PromotionDocumentRulesIndex: "promotion.document_rules.index";
480
+ readonly PromotionDocumentRulesCreate: "promotion.document_rules.create";
481
+ readonly PromotionFaqIndex: "promotion.faq.index";
482
+ readonly PromotionFaqCreate: "promotion.faq.create";
483
+ readonly PromotionFaqDelete: "promotion.faq.delete";
484
+ readonly PromotionLuckyNumbersIndex: "promotion.lucky_numbers.index";
485
+ readonly PromotionLuckyNumbersCreate: "promotion.lucky_numbers.create";
486
+ readonly PromotionLuckyNumbersUpdate: "promotion.lucky_numbers.update";
487
+ readonly PromotionLuckyNumbersDelete: "promotion.lucky_numbers.delete";
488
+ readonly PromotionRafflesIndex: "promotion.raffles.index";
489
+ readonly PromotionRafflesCreate: "promotion.raffles.create";
490
+ readonly PromotionRafflesDelete: "promotion.raffles.delete";
491
+ readonly PromotionTicketsIndex: "promotion.tickets.index";
492
+ readonly PromotionTicketsCreate: "promotion.tickets.create";
493
+ readonly PromotionTicketsDelete: "promotion.tickets.delete";
494
+ readonly PromotionBlacklistIndex: "promotion.blacklist.index";
495
+ readonly PromotionBlacklistCreate: "promotion.blacklist.create";
496
+ readonly PromotionBlacklistDelete: "promotion.blacklist.delete";
497
+ readonly PromotionOrdersIndex: "promotion.orders.index";
498
+ readonly PromotionOrdersCreate: "promotion.orders.create";
499
+ readonly PromotionCouponsIndex: "promotion.coupons.index";
500
+ readonly PromotionCouponsCreate: "promotion.coupons.create";
501
+ readonly PromotionCouponsDelete: "promotion.coupons.delete";
502
+ readonly PromotionConfigsIndex: "promotion.configs.index";
503
+ readonly PromotionUsersDelete: "promotion.users.delete";
504
+ readonly PromotionProductsIndex: "promotion.products.index";
505
+ readonly PromotionProductsCreate: "promotion.products.create";
506
+ readonly PromotionProductsDelete: "promotion.products.delete";
507
+ readonly PromotionStoresIndex: "promotion.stores.index";
508
+ readonly PromotionStoresCreate: "promotion.stores.create";
509
+ readonly PromotionStoresDelete: "promotion.stores.delete";
510
+ readonly PromotionConfigsWebhookConfig: "promotion.configs.webhook_config";
511
+ };
512
+ export type PromotionStart200ResponseUserPermissionsEnum = typeof PromotionStart200ResponseUserPermissionsEnum[keyof typeof PromotionStart200ResponseUserPermissionsEnum];
513
+ /**
514
+ *
515
+ * @export
516
+ * @interface PromotionStartRequest
517
+ */
518
+ export interface PromotionStartRequest {
519
+ /**
520
+ *
521
+ * @type {PromotionPullConfigurationRequestDb}
522
+ * @memberof PromotionStartRequest
523
+ */
524
+ 'db'?: PromotionPullConfigurationRequestDb;
525
+ /**
526
+ *
527
+ * @type {PromotionStartRequestUser}
528
+ * @memberof PromotionStartRequest
529
+ */
530
+ 'user'?: PromotionStartRequestUser;
531
+ /**
532
+ *
533
+ * @type {Array<string>}
534
+ * @memberof PromotionStartRequest
535
+ */
536
+ 'permissions'?: Array<PromotionStartRequestPermissionsEnum>;
537
+ }
538
+ export declare const PromotionStartRequestPermissionsEnum: {
539
+ readonly PromotionUsersIndex: "promotion.users.index";
540
+ readonly PromotionUsersCreate: "promotion.users.create";
541
+ readonly PromotionArticlesIndex: "promotion.articles.index";
542
+ readonly PromotionArticlesCreate: "promotion.articles.create";
543
+ readonly PromotionArticlesDelete: "promotion.articles.delete";
544
+ readonly PromotionAwardedsIndex: "promotion.awardeds.index";
545
+ readonly PromotionAwardsIndex: "promotion.awards.index";
546
+ readonly PromotionAwardsCreate: "promotion.awards.create";
547
+ readonly PromotionAwardsDelete: "promotion.awards.delete";
548
+ readonly PromotionBrandingIndex: "promotion.branding.index";
549
+ readonly PromotionBrandingCreate: "promotion.branding.create";
550
+ readonly PromotionDocumentRulesIndex: "promotion.document_rules.index";
551
+ readonly PromotionDocumentRulesCreate: "promotion.document_rules.create";
552
+ readonly PromotionFaqIndex: "promotion.faq.index";
553
+ readonly PromotionFaqCreate: "promotion.faq.create";
554
+ readonly PromotionFaqDelete: "promotion.faq.delete";
555
+ readonly PromotionLuckyNumbersIndex: "promotion.lucky_numbers.index";
556
+ readonly PromotionLuckyNumbersCreate: "promotion.lucky_numbers.create";
557
+ readonly PromotionLuckyNumbersUpdate: "promotion.lucky_numbers.update";
558
+ readonly PromotionLuckyNumbersDelete: "promotion.lucky_numbers.delete";
559
+ readonly PromotionRafflesIndex: "promotion.raffles.index";
560
+ readonly PromotionRafflesCreate: "promotion.raffles.create";
561
+ readonly PromotionRafflesDelete: "promotion.raffles.delete";
562
+ readonly PromotionTicketsIndex: "promotion.tickets.index";
563
+ readonly PromotionTicketsCreate: "promotion.tickets.create";
564
+ readonly PromotionTicketsDelete: "promotion.tickets.delete";
565
+ readonly PromotionBlacklistIndex: "promotion.blacklist.index";
566
+ readonly PromotionBlacklistCreate: "promotion.blacklist.create";
567
+ readonly PromotionBlacklistDelete: "promotion.blacklist.delete";
568
+ readonly PromotionOrdersIndex: "promotion.orders.index";
569
+ readonly PromotionOrdersCreate: "promotion.orders.create";
570
+ readonly PromotionCouponsIndex: "promotion.coupons.index";
571
+ readonly PromotionCouponsCreate: "promotion.coupons.create";
572
+ readonly PromotionCouponsDelete: "promotion.coupons.delete";
573
+ readonly PromotionConfigsIndex: "promotion.configs.index";
574
+ readonly PromotionUsersDelete: "promotion.users.delete";
575
+ readonly PromotionProductsIndex: "promotion.products.index";
576
+ readonly PromotionProductsCreate: "promotion.products.create";
577
+ readonly PromotionProductsDelete: "promotion.products.delete";
578
+ readonly PromotionStoresIndex: "promotion.stores.index";
579
+ readonly PromotionStoresCreate: "promotion.stores.create";
580
+ readonly PromotionStoresDelete: "promotion.stores.delete";
581
+ readonly PromotionConfigsWebhookConfig: "promotion.configs.webhook_config";
582
+ };
583
+ export type PromotionStartRequestPermissionsEnum = typeof PromotionStartRequestPermissionsEnum[keyof typeof PromotionStartRequestPermissionsEnum];
584
+ /**
585
+ *
586
+ * @export
587
+ * @interface PromotionStartRequestUser
588
+ */
589
+ export interface PromotionStartRequestUser {
590
+ /**
591
+ *
592
+ * @type {string}
593
+ * @memberof PromotionStartRequestUser
594
+ */
595
+ 'username'?: string;
596
+ /**
597
+ *
598
+ * @type {string}
599
+ * @memberof PromotionStartRequestUser
600
+ */
601
+ 'name'?: string;
602
+ /**
603
+ *
604
+ * @type {string}
605
+ * @memberof PromotionStartRequestUser
606
+ */
607
+ 'email'?: string;
608
+ }
609
+ /**
610
+ *
611
+ * @export
612
+ * @interface RolesAttachPermissions200Response
613
+ */
614
+ export interface RolesAttachPermissions200Response {
615
+ /**
616
+ *
617
+ * @type {string}
618
+ * @memberof RolesAttachPermissions200Response
619
+ */
620
+ 'action'?: string;
621
+ /**
622
+ *
623
+ * @type {string}
624
+ * @memberof RolesAttachPermissions200Response
625
+ */
626
+ 'result'?: string;
627
+ /**
628
+ *
629
+ * @type {string}
630
+ * @memberof RolesAttachPermissions200Response
631
+ */
632
+ 'message'?: string;
633
+ /**
634
+ *
635
+ * @type {object}
636
+ * @memberof RolesAttachPermissions200Response
637
+ */
638
+ 'role'?: object;
639
+ /**
640
+ *
641
+ * @type {Array<object>}
642
+ * @memberof RolesAttachPermissions200Response
643
+ */
644
+ 'permissions'?: Array<object>;
645
+ }
646
+ /**
647
+ *
648
+ * @export
649
+ * @interface RolesAttachPermissions422Response
650
+ */
651
+ export interface RolesAttachPermissions422Response {
652
+ /**
653
+ *
654
+ * @type {Array<string>}
655
+ * @memberof RolesAttachPermissions422Response
656
+ */
657
+ 'permissions'?: Array<string>;
658
+ }
659
+ /**
660
+ *
661
+ * @export
662
+ * @interface RolesAttachPermissionsRequest
663
+ */
664
+ export interface RolesAttachPermissionsRequest {
665
+ /**
666
+ *
667
+ * @type {Array<number>}
668
+ * @memberof RolesAttachPermissionsRequest
669
+ */
670
+ 'permissions': Array<number>;
671
+ }
672
+ /**
673
+ *
674
+ * @export
675
+ * @interface RolesDestroy400Response
676
+ */
677
+ export interface RolesDestroy400Response {
678
+ /**
679
+ *
680
+ * @type {string}
681
+ * @memberof RolesDestroy400Response
682
+ */
683
+ 'message'?: string;
684
+ }
685
+ /**
686
+ *
687
+ * @export
688
+ * @interface RolesIndex200Response
689
+ */
690
+ export interface RolesIndex200Response {
691
+ /**
692
+ *
693
+ * @type {string}
694
+ * @memberof RolesIndex200Response
695
+ */
696
+ 'action'?: string;
697
+ /**
698
+ *
699
+ * @type {string}
700
+ * @memberof RolesIndex200Response
701
+ */
702
+ 'result'?: string;
703
+ /**
704
+ *
705
+ * @type {string}
706
+ * @memberof RolesIndex200Response
707
+ */
708
+ 'message'?: string;
709
+ /**
710
+ *
711
+ * @type {Array<RolesIndex200ResponseRolesInner>}
712
+ * @memberof RolesIndex200Response
713
+ */
714
+ 'roles'?: Array<RolesIndex200ResponseRolesInner>;
715
+ }
716
+ /**
717
+ *
718
+ * @export
719
+ * @interface RolesIndex200ResponseRolesInner
720
+ */
721
+ export interface RolesIndex200ResponseRolesInner {
722
+ /**
723
+ *
724
+ * @type {number}
725
+ * @memberof RolesIndex200ResponseRolesInner
726
+ */
727
+ 'id'?: number;
728
+ /**
729
+ *
730
+ * @type {string}
731
+ * @memberof RolesIndex200ResponseRolesInner
732
+ */
733
+ 'name'?: string;
734
+ /**
735
+ *
736
+ * @type {string}
737
+ * @memberof RolesIndex200ResponseRolesInner
738
+ */
739
+ 'description'?: string;
740
+ /**
741
+ *
742
+ * @type {boolean}
743
+ * @memberof RolesIndex200ResponseRolesInner
744
+ */
745
+ 'is_active'?: boolean;
746
+ }
747
+ /**
748
+ *
749
+ * @export
750
+ * @interface RolesIndex500Response
751
+ */
752
+ export interface RolesIndex500Response {
753
+ /**
754
+ *
755
+ * @type {string}
756
+ * @memberof RolesIndex500Response
757
+ */
758
+ 'message'?: string;
759
+ }
760
+ /**
761
+ *
762
+ * @export
763
+ * @interface RolesPermissions200Response
764
+ */
765
+ export interface RolesPermissions200Response {
766
+ /**
767
+ *
768
+ * @type {string}
769
+ * @memberof RolesPermissions200Response
770
+ */
771
+ 'action'?: string;
772
+ /**
773
+ *
774
+ * @type {string}
775
+ * @memberof RolesPermissions200Response
776
+ */
777
+ 'result'?: string;
778
+ /**
779
+ *
780
+ * @type {string}
781
+ * @memberof RolesPermissions200Response
782
+ */
783
+ 'message'?: string;
784
+ /**
785
+ *
786
+ * @type {object}
787
+ * @memberof RolesPermissions200Response
788
+ */
789
+ 'role'?: object;
790
+ /**
791
+ *
792
+ * @type {Array<object>}
793
+ * @memberof RolesPermissions200Response
794
+ */
795
+ 'permissions'?: Array<object>;
796
+ }
797
+ /**
798
+ *
799
+ * @export
800
+ * @interface RolesShow200Response
801
+ */
802
+ export interface RolesShow200Response {
803
+ /**
804
+ *
805
+ * @type {string}
806
+ * @memberof RolesShow200Response
807
+ */
808
+ 'action'?: string;
809
+ /**
810
+ *
811
+ * @type {string}
812
+ * @memberof RolesShow200Response
813
+ */
814
+ 'result'?: string;
815
+ /**
816
+ *
817
+ * @type {string}
818
+ * @memberof RolesShow200Response
819
+ */
820
+ 'message'?: string;
821
+ /**
822
+ *
823
+ * @type {RolesShow200ResponseRole}
824
+ * @memberof RolesShow200Response
825
+ */
826
+ 'role'?: RolesShow200ResponseRole;
827
+ /**
828
+ *
829
+ * @type {Array<RolesShow200ResponsePermissionsInner>}
830
+ * @memberof RolesShow200Response
831
+ */
832
+ 'permissions'?: Array<RolesShow200ResponsePermissionsInner>;
833
+ }
834
+ /**
835
+ *
836
+ * @export
837
+ * @interface RolesShow200ResponsePermissionsInner
838
+ */
839
+ export interface RolesShow200ResponsePermissionsInner {
840
+ /**
841
+ *
842
+ * @type {number}
843
+ * @memberof RolesShow200ResponsePermissionsInner
844
+ */
845
+ 'id'?: number;
846
+ /**
847
+ *
848
+ * @type {string}
849
+ * @memberof RolesShow200ResponsePermissionsInner
850
+ */
851
+ 'key'?: string;
852
+ /**
853
+ *
854
+ * @type {string}
855
+ * @memberof RolesShow200ResponsePermissionsInner
856
+ */
857
+ 'title'?: string;
858
+ /**
859
+ *
860
+ * @type {string}
861
+ * @memberof RolesShow200ResponsePermissionsInner
862
+ */
863
+ 'description'?: string;
864
+ /**
865
+ *
866
+ * @type {string}
867
+ * @memberof RolesShow200ResponsePermissionsInner
868
+ */
869
+ 'category'?: string;
870
+ /**
871
+ *
872
+ * @type {string}
873
+ * @memberof RolesShow200ResponsePermissionsInner
874
+ */
875
+ 'action'?: string;
876
+ /**
877
+ *
878
+ * @type {boolean}
879
+ * @memberof RolesShow200ResponsePermissionsInner
880
+ */
881
+ 'is_active'?: boolean;
882
+ }
883
+ /**
884
+ *
885
+ * @export
886
+ * @interface RolesShow200ResponseRole
887
+ */
888
+ export interface RolesShow200ResponseRole {
889
+ /**
890
+ *
891
+ * @type {number}
892
+ * @memberof RolesShow200ResponseRole
893
+ */
894
+ 'id'?: number;
895
+ /**
896
+ *
897
+ * @type {string}
898
+ * @memberof RolesShow200ResponseRole
899
+ */
900
+ 'name'?: string;
901
+ /**
902
+ *
903
+ * @type {string}
904
+ * @memberof RolesShow200ResponseRole
905
+ */
906
+ 'description'?: string;
907
+ /**
908
+ *
909
+ * @type {boolean}
910
+ * @memberof RolesShow200ResponseRole
911
+ */
912
+ 'is_active'?: boolean;
913
+ }
914
+ /**
915
+ *
916
+ * @export
917
+ * @interface RolesStore201Response
918
+ */
919
+ export interface RolesStore201Response {
920
+ /**
921
+ *
922
+ * @type {string}
923
+ * @memberof RolesStore201Response
924
+ */
925
+ 'action'?: string;
926
+ /**
927
+ *
928
+ * @type {string}
929
+ * @memberof RolesStore201Response
930
+ */
931
+ 'result'?: string;
932
+ /**
933
+ *
934
+ * @type {string}
935
+ * @memberof RolesStore201Response
936
+ */
937
+ 'message'?: string;
938
+ /**
939
+ *
940
+ * @type {RolesStore201ResponseRole}
941
+ * @memberof RolesStore201Response
942
+ */
943
+ 'role'?: RolesStore201ResponseRole;
944
+ }
945
+ /**
946
+ *
947
+ * @export
948
+ * @interface RolesStore201ResponseRole
949
+ */
950
+ export interface RolesStore201ResponseRole {
951
+ /**
952
+ *
953
+ * @type {number}
954
+ * @memberof RolesStore201ResponseRole
955
+ */
956
+ 'id'?: number;
957
+ /**
958
+ *
959
+ * @type {string}
960
+ * @memberof RolesStore201ResponseRole
961
+ */
962
+ 'name'?: string;
963
+ /**
964
+ *
965
+ * @type {string}
966
+ * @memberof RolesStore201ResponseRole
967
+ */
968
+ 'description'?: string;
969
+ /**
970
+ *
971
+ * @type {boolean}
972
+ * @memberof RolesStore201ResponseRole
973
+ */
974
+ 'is_active'?: boolean;
975
+ }
976
+ /**
977
+ *
978
+ * @export
979
+ * @interface RolesStore422Response
980
+ */
981
+ export interface RolesStore422Response {
982
+ /**
983
+ *
984
+ * @type {Array<string>}
985
+ * @memberof RolesStore422Response
986
+ */
987
+ 'name'?: Array<string>;
988
+ }
989
+ /**
990
+ *
991
+ * @export
992
+ * @interface RolesStoreRequest
993
+ */
994
+ export interface RolesStoreRequest {
995
+ /**
996
+ *
997
+ * @type {string}
998
+ * @memberof RolesStoreRequest
999
+ */
1000
+ 'name': string;
1001
+ /**
1002
+ *
1003
+ * @type {string}
1004
+ * @memberof RolesStoreRequest
1005
+ */
1006
+ 'description'?: string;
1007
+ /**
1008
+ *
1009
+ * @type {boolean}
1010
+ * @memberof RolesStoreRequest
1011
+ */
1012
+ 'is_active'?: boolean;
1013
+ }
1014
+ /**
1015
+ *
1016
+ * @export
1017
+ * @interface RolesUpdate200Response
1018
+ */
1019
+ export interface RolesUpdate200Response {
1020
+ /**
1021
+ *
1022
+ * @type {string}
1023
+ * @memberof RolesUpdate200Response
1024
+ */
1025
+ 'action'?: string;
1026
+ /**
1027
+ *
1028
+ * @type {string}
1029
+ * @memberof RolesUpdate200Response
1030
+ */
1031
+ 'result'?: string;
1032
+ /**
1033
+ *
1034
+ * @type {string}
1035
+ * @memberof RolesUpdate200Response
1036
+ */
1037
+ 'message'?: string;
1038
+ /**
1039
+ *
1040
+ * @type {object}
1041
+ * @memberof RolesUpdate200Response
1042
+ */
1043
+ 'role'?: object;
1044
+ }
1045
+ /**
1046
+ *
1047
+ * @export
1048
+ * @interface RolesUpdateRequest
1049
+ */
1050
+ export interface RolesUpdateRequest {
1051
+ /**
1052
+ *
1053
+ * @type {string}
1054
+ * @memberof RolesUpdateRequest
1055
+ */
1056
+ 'name'?: string;
1057
+ /**
1058
+ *
1059
+ * @type {string}
1060
+ * @memberof RolesUpdateRequest
1061
+ */
1062
+ 'description'?: string;
1063
+ /**
1064
+ *
1065
+ * @type {boolean}
1066
+ * @memberof RolesUpdateRequest
1067
+ */
1068
+ 'is_active'?: boolean;
1069
+ }
1070
+ /**
1071
+ *
1072
+ * @export
1073
+ * @interface StepsAllow201Response
1074
+ */
1075
+ export interface StepsAllow201Response {
1076
+ /**
1077
+ *
1078
+ * @type {string}
1079
+ * @memberof StepsAllow201Response
1080
+ */
1081
+ 'action'?: string;
1082
+ /**
1083
+ *
1084
+ * @type {string}
1085
+ * @memberof StepsAllow201Response
1086
+ */
1087
+ 'endpoint'?: string;
1088
+ /**
1089
+ *
1090
+ * @type {string}
1091
+ * @memberof StepsAllow201Response
1092
+ */
1093
+ 'result'?: string;
1094
+ /**
1095
+ *
1096
+ * @type {Array<any>}
1097
+ * @memberof StepsAllow201Response
1098
+ */
1099
+ 'steps'?: Array<any>;
1100
+ }
1101
+ /**
1102
+ *
1103
+ * @export
1104
+ * @interface StepsAllow409Response
1105
+ */
1106
+ export interface StepsAllow409Response {
1107
+ /**
1108
+ *
1109
+ * @type {string}
1110
+ * @memberof StepsAllow409Response
1111
+ */
1112
+ 'action'?: string;
1113
+ /**
1114
+ *
1115
+ * @type {string}
1116
+ * @memberof StepsAllow409Response
1117
+ */
1118
+ 'endpoint'?: string;
1119
+ /**
1120
+ *
1121
+ * @type {string}
1122
+ * @memberof StepsAllow409Response
1123
+ */
1124
+ 'result'?: string;
1125
+ /**
1126
+ *
1127
+ * @type {string}
1128
+ * @memberof StepsAllow409Response
1129
+ */
1130
+ 'message'?: string;
1131
+ }
1132
+ /**
1133
+ *
1134
+ * @export
1135
+ * @interface StepsAllowRequest
1136
+ */
1137
+ export interface StepsAllowRequest {
1138
+ /**
1139
+ *
1140
+ * @type {string}
1141
+ * @memberof StepsAllowRequest
1142
+ */
1143
+ 'promotion_id'?: string;
1144
+ /**
1145
+ *
1146
+ * @type {string}
1147
+ * @memberof StepsAllowRequest
1148
+ */
1149
+ 'endpoint'?: string;
1150
+ /**
1151
+ *
1152
+ * @type {Array<any>}
1153
+ * @memberof StepsAllowRequest
1154
+ */
1155
+ 'steps'?: Array<any>;
1156
+ }
1157
+ /**
1158
+ *
1159
+ * @export
1160
+ * @interface StepsIndex200Response
1161
+ */
1162
+ export interface StepsIndex200Response {
1163
+ /**
1164
+ *
1165
+ * @type {string}
1166
+ * @memberof StepsIndex200Response
1167
+ */
1168
+ 'promotion_id'?: string;
1169
+ /**
1170
+ *
1171
+ * @type {{ [key: string]: { [key: string]: StepsIndex200ResponseStepsValueValue; }; }}
1172
+ * @memberof StepsIndex200Response
1173
+ */
1174
+ 'steps'?: {
1175
+ [key: string]: {
1176
+ [key: string]: StepsIndex200ResponseStepsValueValue;
1177
+ };
1178
+ };
1179
+ }
1180
+ /**
1181
+ *
1182
+ * @export
1183
+ * @interface StepsIndex200ResponseStepsValueValue
1184
+ */
1185
+ export interface StepsIndex200ResponseStepsValueValue {
1186
+ /**
1187
+ * Valor padrão da validação
1188
+ * @type {boolean}
1189
+ * @memberof StepsIndex200ResponseStepsValueValue
1190
+ */
1191
+ 'default'?: boolean;
1192
+ /**
1193
+ * Título da validação
1194
+ * @type {string}
1195
+ * @memberof StepsIndex200ResponseStepsValueValue
1196
+ */
1197
+ 'title'?: string;
1198
+ /**
1199
+ * Detalhes da validação
1200
+ * @type {string}
1201
+ * @memberof StepsIndex200ResponseStepsValueValue
1202
+ */
1203
+ 'description'?: string;
1204
+ /**
1205
+ * Se a validação está ativa
1206
+ * @type {boolean}
1207
+ * @memberof StepsIndex200ResponseStepsValueValue
1208
+ */
1209
+ 'active'?: boolean;
1210
+ /**
1211
+ * Dependências de outras validações
1212
+ * @type {Array<string>}
1213
+ * @memberof StepsIndex200ResponseStepsValueValue
1214
+ */
1215
+ 'depends_on'?: Array<string>;
1216
+ /**
1217
+ * Se a validação está obsoleta
1218
+ * @type {boolean}
1219
+ * @memberof StepsIndex200ResponseStepsValueValue
1220
+ */
1221
+ 'deprecated'?: boolean;
1222
+ }
1223
+ /**
1224
+ *
1225
+ * @export
1226
+ * @interface StepsUnallow201Response
1227
+ */
1228
+ export interface StepsUnallow201Response {
1229
+ /**
1230
+ *
1231
+ * @type {string}
1232
+ * @memberof StepsUnallow201Response
1233
+ */
1234
+ 'action'?: string;
1235
+ /**
1236
+ *
1237
+ * @type {string}
1238
+ * @memberof StepsUnallow201Response
1239
+ */
1240
+ 'endpoint'?: string;
1241
+ /**
1242
+ *
1243
+ * @type {string}
1244
+ * @memberof StepsUnallow201Response
1245
+ */
1246
+ 'result'?: string;
1247
+ /**
1248
+ *
1249
+ * @type {Array<any>}
1250
+ * @memberof StepsUnallow201Response
1251
+ */
1252
+ 'steps'?: Array<any>;
1253
+ }
1254
+ /**
1255
+ *
1256
+ * @export
1257
+ * @interface StepsUnallow409Response
1258
+ */
1259
+ export interface StepsUnallow409Response {
1260
+ /**
1261
+ *
1262
+ * @type {string}
1263
+ * @memberof StepsUnallow409Response
1264
+ */
1265
+ 'action'?: string;
1266
+ /**
1267
+ *
1268
+ * @type {string}
1269
+ * @memberof StepsUnallow409Response
1270
+ */
1271
+ 'endpoint'?: string;
1272
+ /**
1273
+ *
1274
+ * @type {string}
1275
+ * @memberof StepsUnallow409Response
1276
+ */
1277
+ 'result'?: string;
1278
+ /**
1279
+ *
1280
+ * @type {string}
1281
+ * @memberof StepsUnallow409Response
1282
+ */
1283
+ 'message'?: string;
1284
+ }
1285
+ /**
1286
+ *
1287
+ * @export
1288
+ * @interface UserGrantPermissions200Response
1289
+ */
1290
+ export interface UserGrantPermissions200Response {
1291
+ /**
1292
+ *
1293
+ * @type {string}
1294
+ * @memberof UserGrantPermissions200Response
1295
+ */
1296
+ 'action'?: string;
1297
+ /**
1298
+ *
1299
+ * @type {string}
1300
+ * @memberof UserGrantPermissions200Response
1301
+ */
1302
+ 'result'?: string;
1303
+ /**
1304
+ *
1305
+ * @type {string}
1306
+ * @memberof UserGrantPermissions200Response
1307
+ */
1308
+ 'message'?: string;
1309
+ /**
1310
+ *
1311
+ * @type {Array<UserGrantPermissions200ResponseUserInner>}
1312
+ * @memberof UserGrantPermissions200Response
1313
+ */
1314
+ 'user'?: Array<UserGrantPermissions200ResponseUserInner>;
1315
+ }
1316
+ /**
1317
+ *
1318
+ * @export
1319
+ * @interface UserGrantPermissions200ResponseUserInner
1320
+ */
1321
+ export interface UserGrantPermissions200ResponseUserInner {
1322
+ /**
1323
+ *
1324
+ * @type {string}
1325
+ * @memberof UserGrantPermissions200ResponseUserInner
1326
+ */
1327
+ 'promotion_id'?: string;
1328
+ /**
1329
+ *
1330
+ * @type {string}
1331
+ * @memberof UserGrantPermissions200ResponseUserInner
1332
+ */
1333
+ 'username'?: string;
1334
+ /**
1335
+ *
1336
+ * @type {Array<string>}
1337
+ * @memberof UserGrantPermissions200ResponseUserInner
1338
+ */
1339
+ 'permissions'?: Array<string>;
1340
+ }
1341
+ /**
1342
+ *
1343
+ * @export
1344
+ * @interface UserGrantPermissions500Response
1345
+ */
1346
+ export interface UserGrantPermissions500Response {
1347
+ /**
1348
+ *
1349
+ * @type {string}
1350
+ * @memberof UserGrantPermissions500Response
1351
+ */
1352
+ 'action'?: string;
1353
+ /**
1354
+ *
1355
+ * @type {string}
1356
+ * @memberof UserGrantPermissions500Response
1357
+ */
1358
+ 'result'?: string;
1359
+ /**
1360
+ *
1361
+ * @type {string}
1362
+ * @memberof UserGrantPermissions500Response
1363
+ */
1364
+ 'message'?: string;
1365
+ }
1366
+ /**
1367
+ *
1368
+ * @export
1369
+ * @interface UserGrantPermissionsRequest
1370
+ */
1371
+ export interface UserGrantPermissionsRequest {
1372
+ /**
1373
+ *
1374
+ * @type {string}
1375
+ * @memberof UserGrantPermissionsRequest
1376
+ */
1377
+ 'promotion_id'?: string;
1378
+ /**
1379
+ *
1380
+ * @type {string}
1381
+ * @memberof UserGrantPermissionsRequest
1382
+ */
1383
+ 'username'?: string;
1384
+ /**
1385
+ *
1386
+ * @type {Array<string>}
1387
+ * @memberof UserGrantPermissionsRequest
1388
+ */
1389
+ 'permissions'?: Array<string>;
1390
+ }
1391
+ /**
1392
+ *
1393
+ * @export
1394
+ * @interface UserRegister200Response
1395
+ */
1396
+ export interface UserRegister200Response {
1397
+ /**
1398
+ *
1399
+ * @type {string}
1400
+ * @memberof UserRegister200Response
1401
+ */
1402
+ 'action'?: string;
1403
+ /**
1404
+ *
1405
+ * @type {string}
1406
+ * @memberof UserRegister200Response
1407
+ */
1408
+ 'result'?: string;
1409
+ /**
1410
+ *
1411
+ * @type {string}
1412
+ * @memberof UserRegister200Response
1413
+ */
1414
+ 'message'?: string;
1415
+ /**
1416
+ *
1417
+ * @type {Array<UserRegister200ResponseUserInner>}
1418
+ * @memberof UserRegister200Response
1419
+ */
1420
+ 'user'?: Array<UserRegister200ResponseUserInner>;
1421
+ }
1422
+ /**
1423
+ *
1424
+ * @export
1425
+ * @interface UserRegister200ResponseUserInner
1426
+ */
1427
+ export interface UserRegister200ResponseUserInner {
1428
+ /**
1429
+ *
1430
+ * @type {string}
1431
+ * @memberof UserRegister200ResponseUserInner
1432
+ */
1433
+ 'password'?: string;
1434
+ /**
1435
+ *
1436
+ * @type {string}
1437
+ * @memberof UserRegister200ResponseUserInner
1438
+ */
1439
+ 'username'?: string;
1440
+ /**
1441
+ *
1442
+ * @type {string}
1443
+ * @memberof UserRegister200ResponseUserInner
1444
+ */
1445
+ 'name'?: string;
1446
+ /**
1447
+ *
1448
+ * @type {string}
1449
+ * @memberof UserRegister200ResponseUserInner
1450
+ */
1451
+ 'email'?: string;
1452
+ /**
1453
+ *
1454
+ * @type {string}
1455
+ * @memberof UserRegister200ResponseUserInner
1456
+ */
1457
+ 'uuid'?: string;
1458
+ }
1459
+ /**
1460
+ *
1461
+ * @export
1462
+ * @interface UserRegister500Response
1463
+ */
1464
+ export interface UserRegister500Response {
1465
+ /**
1466
+ *
1467
+ * @type {string}
1468
+ * @memberof UserRegister500Response
1469
+ */
1470
+ 'action'?: string;
1471
+ /**
1472
+ *
1473
+ * @type {string}
1474
+ * @memberof UserRegister500Response
1475
+ */
1476
+ 'result'?: string;
1477
+ /**
1478
+ *
1479
+ * @type {string}
1480
+ * @memberof UserRegister500Response
1481
+ */
1482
+ 'message'?: string;
1483
+ }
1484
+ /**
1485
+ *
1486
+ * @export
1487
+ * @interface UserRegisterRequest
1488
+ */
1489
+ export interface UserRegisterRequest {
1490
+ /**
1491
+ *
1492
+ * @type {string}
1493
+ * @memberof UserRegisterRequest
1494
+ */
1495
+ 'username'?: string;
1496
+ /**
1497
+ *
1498
+ * @type {string}
1499
+ * @memberof UserRegisterRequest
1500
+ */
1501
+ 'name'?: string;
1502
+ /**
1503
+ *
1504
+ * @type {string}
1505
+ * @memberof UserRegisterRequest
1506
+ */
1507
+ 'email'?: string;
1508
+ }
1509
+ /**
1510
+ *
1511
+ * @export
1512
+ * @interface UserShow200Response
1513
+ */
1514
+ export interface UserShow200Response {
1515
+ /**
1516
+ *
1517
+ * @type {string}
1518
+ * @memberof UserShow200Response
1519
+ */
1520
+ 'action'?: string;
1521
+ /**
1522
+ *
1523
+ * @type {string}
1524
+ * @memberof UserShow200Response
1525
+ */
1526
+ 'result'?: string;
1527
+ /**
1528
+ *
1529
+ * @type {string}
1530
+ * @memberof UserShow200Response
1531
+ */
1532
+ 'message'?: string;
1533
+ /**
1534
+ *
1535
+ * @type {UserShow200ResponseUser}
1536
+ * @memberof UserShow200Response
1537
+ */
1538
+ 'user'?: UserShow200ResponseUser;
1539
+ }
1540
+ /**
1541
+ *
1542
+ * @export
1543
+ * @interface UserShow200ResponseUser
1544
+ */
1545
+ export interface UserShow200ResponseUser {
1546
+ /**
1547
+ *
1548
+ * @type {string}
1549
+ * @memberof UserShow200ResponseUser
1550
+ */
1551
+ 'username'?: string;
1552
+ /**
1553
+ *
1554
+ * @type {string}
1555
+ * @memberof UserShow200ResponseUser
1556
+ */
1557
+ 'name'?: string;
1558
+ /**
1559
+ *
1560
+ * @type {string}
1561
+ * @memberof UserShow200ResponseUser
1562
+ */
1563
+ 'email'?: string;
1564
+ /**
1565
+ *
1566
+ * @type {string}
1567
+ * @memberof UserShow200ResponseUser
1568
+ */
1569
+ 'uuid'?: string;
1570
+ }
1571
+ /**
1572
+ *
1573
+ * @export
1574
+ * @interface UserShow404Response
1575
+ */
1576
+ export interface UserShow404Response {
1577
+ /**
1578
+ *
1579
+ * @type {string}
1580
+ * @memberof UserShow404Response
1581
+ */
1582
+ 'action'?: string;
1583
+ /**
1584
+ *
1585
+ * @type {string}
1586
+ * @memberof UserShow404Response
1587
+ */
1588
+ 'result'?: string;
1589
+ /**
1590
+ *
1591
+ * @type {string}
1592
+ * @memberof UserShow404Response
1593
+ */
1594
+ 'message'?: string;
1595
+ }
1596
+ /**
1597
+ *
1598
+ * @export
1599
+ * @interface UserShow500Response
1600
+ */
1601
+ export interface UserShow500Response {
1602
+ /**
1603
+ *
1604
+ * @type {string}
1605
+ * @memberof UserShow500Response
1606
+ */
1607
+ 'action'?: string;
1608
+ /**
1609
+ *
1610
+ * @type {string}
1611
+ * @memberof UserShow500Response
1612
+ */
1613
+ 'result'?: string;
1614
+ /**
1615
+ *
1616
+ * @type {string}
1617
+ * @memberof UserShow500Response
1618
+ */
1619
+ 'message'?: string;
1620
+ }
1621
+ /**
1622
+ *
1623
+ * @export
1624
+ * @interface UserUpdate200Response
1625
+ */
1626
+ export interface UserUpdate200Response {
1627
+ /**
1628
+ *
1629
+ * @type {string}
1630
+ * @memberof UserUpdate200Response
1631
+ */
1632
+ 'action'?: string;
1633
+ /**
1634
+ *
1635
+ * @type {string}
1636
+ * @memberof UserUpdate200Response
1637
+ */
1638
+ 'result'?: string;
1639
+ /**
1640
+ *
1641
+ * @type {string}
1642
+ * @memberof UserUpdate200Response
1643
+ */
1644
+ 'message'?: string;
1645
+ /**
1646
+ *
1647
+ * @type {UserUpdate200ResponseUser}
1648
+ * @memberof UserUpdate200Response
1649
+ */
1650
+ 'user'?: UserUpdate200ResponseUser;
1651
+ }
1652
+ /**
1653
+ *
1654
+ * @export
1655
+ * @interface UserUpdate200ResponseUser
1656
+ */
1657
+ export interface UserUpdate200ResponseUser {
1658
+ /**
1659
+ *
1660
+ * @type {string}
1661
+ * @memberof UserUpdate200ResponseUser
1662
+ */
1663
+ 'username'?: string;
1664
+ /**
1665
+ *
1666
+ * @type {string}
1667
+ * @memberof UserUpdate200ResponseUser
1668
+ */
1669
+ 'name'?: string;
1670
+ /**
1671
+ *
1672
+ * @type {string}
1673
+ * @memberof UserUpdate200ResponseUser
1674
+ */
1675
+ 'email'?: string;
1676
+ /**
1677
+ *
1678
+ * @type {string}
1679
+ * @memberof UserUpdate200ResponseUser
1680
+ */
1681
+ 'uuid'?: string;
1682
+ }
1683
+ /**
1684
+ *
1685
+ * @export
1686
+ * @interface UserUpdate404Response
1687
+ */
1688
+ export interface UserUpdate404Response {
1689
+ /**
1690
+ *
1691
+ * @type {string}
1692
+ * @memberof UserUpdate404Response
1693
+ */
1694
+ 'action'?: string;
1695
+ /**
1696
+ *
1697
+ * @type {string}
1698
+ * @memberof UserUpdate404Response
1699
+ */
1700
+ 'result'?: string;
1701
+ /**
1702
+ *
1703
+ * @type {string}
1704
+ * @memberof UserUpdate404Response
1705
+ */
1706
+ 'message'?: string;
1707
+ }
1708
+ /**
1709
+ *
1710
+ * @export
1711
+ * @interface UserUpdate422Response
1712
+ */
1713
+ export interface UserUpdate422Response {
1714
+ /**
1715
+ *
1716
+ * @type {Array<string>}
1717
+ * @memberof UserUpdate422Response
1718
+ */
1719
+ 'name'?: Array<string>;
1720
+ }
1721
+ /**
1722
+ *
1723
+ * @export
1724
+ * @interface UserUpdate500Response
1725
+ */
1726
+ export interface UserUpdate500Response {
1727
+ /**
1728
+ *
1729
+ * @type {string}
1730
+ * @memberof UserUpdate500Response
1731
+ */
1732
+ 'action'?: string;
1733
+ /**
1734
+ *
1735
+ * @type {string}
1736
+ * @memberof UserUpdate500Response
1737
+ */
1738
+ 'result'?: string;
1739
+ /**
1740
+ *
1741
+ * @type {string}
1742
+ * @memberof UserUpdate500Response
1743
+ */
1744
+ 'message'?: string;
1745
+ }
1746
+ /**
1747
+ *
1748
+ * @export
1749
+ * @interface UserUpdateRequest
1750
+ */
1751
+ export interface UserUpdateRequest {
1752
+ /**
1753
+ *
1754
+ * @type {string}
1755
+ * @memberof UserUpdateRequest
1756
+ */
1757
+ 'name': string;
1758
+ }
1759
+ /**
1760
+ * AuthApi - axios parameter creator
1761
+ * @export
1762
+ */
1763
+ export declare const AuthApiAxiosParamCreator: (configuration?: Configuration) => {
1764
+ /**
1765
+ *
1766
+ * @summary Solicita envio de token de login por email
1767
+ * @param {AdminAuthRequestTokenRequest} [adminAuthRequestTokenRequest]
1768
+ * @param {*} [options] Override http request option.
1769
+ * @throws {RequiredError}
1770
+ */
1771
+ adminAuthRequestToken: (adminAuthRequestTokenRequest?: AdminAuthRequestTokenRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1772
+ /**
1773
+ *
1774
+ * @summary Login na API
1775
+ * @param {AuthLoginRequest} [authLoginRequest]
1776
+ * @param {*} [options] Override http request option.
1777
+ * @throws {RequiredError}
1778
+ */
1779
+ authLogin: (authLoginRequest?: AuthLoginRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1780
+ /**
1781
+ *
1782
+ * @summary Login na API via e-mail e token
1783
+ * @param {AuthLoginByTokenRequest} [authLoginByTokenRequest]
1784
+ * @param {*} [options] Override http request option.
1785
+ * @throws {RequiredError}
1786
+ */
1787
+ authLoginByToken: (authLoginByTokenRequest?: AuthLoginByTokenRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1788
+ /**
1789
+ *
1790
+ * @summary Dados na API
1791
+ * @param {*} [options] Override http request option.
1792
+ * @throws {RequiredError}
1793
+ */
1794
+ authMe: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1795
+ /**
1796
+ *
1797
+ * @summary Renova o do token de autenticação
1798
+ * @param {AuthRefreshTokenRequest} [authRefreshTokenRequest]
1799
+ * @param {*} [options] Override http request option.
1800
+ * @throws {RequiredError}
1801
+ */
1802
+ authRefreshToken: (authRefreshTokenRequest?: AuthRefreshTokenRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1803
+ };
1804
+ /**
1805
+ * AuthApi - functional programming interface
1806
+ * @export
1807
+ */
1808
+ export declare const AuthApiFp: (configuration?: Configuration) => {
1809
+ /**
1810
+ *
1811
+ * @summary Solicita envio de token de login por email
1812
+ * @param {AdminAuthRequestTokenRequest} [adminAuthRequestTokenRequest]
1813
+ * @param {*} [options] Override http request option.
1814
+ * @throws {RequiredError}
1815
+ */
1816
+ adminAuthRequestToken(adminAuthRequestTokenRequest?: AdminAuthRequestTokenRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminAuthRequestToken200Response>>;
1817
+ /**
1818
+ *
1819
+ * @summary Login na API
1820
+ * @param {AuthLoginRequest} [authLoginRequest]
1821
+ * @param {*} [options] Override http request option.
1822
+ * @throws {RequiredError}
1823
+ */
1824
+ authLogin(authLoginRequest?: AuthLoginRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthLogin200Response>>;
1825
+ /**
1826
+ *
1827
+ * @summary Login na API via e-mail e token
1828
+ * @param {AuthLoginByTokenRequest} [authLoginByTokenRequest]
1829
+ * @param {*} [options] Override http request option.
1830
+ * @throws {RequiredError}
1831
+ */
1832
+ authLoginByToken(authLoginByTokenRequest?: AuthLoginByTokenRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthLoginByToken200Response>>;
1833
+ /**
1834
+ *
1835
+ * @summary Dados na API
1836
+ * @param {*} [options] Override http request option.
1837
+ * @throws {RequiredError}
1838
+ */
1839
+ authMe(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthMe200Response>>;
1840
+ /**
1841
+ *
1842
+ * @summary Renova o do token de autenticação
1843
+ * @param {AuthRefreshTokenRequest} [authRefreshTokenRequest]
1844
+ * @param {*} [options] Override http request option.
1845
+ * @throws {RequiredError}
1846
+ */
1847
+ authRefreshToken(authRefreshTokenRequest?: AuthRefreshTokenRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthLoginByToken200Response>>;
1848
+ };
1849
+ /**
1850
+ * AuthApi - factory interface
1851
+ * @export
1852
+ */
1853
+ export declare const AuthApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
1854
+ /**
1855
+ *
1856
+ * @summary Solicita envio de token de login por email
1857
+ * @param {AdminAuthRequestTokenRequest} [adminAuthRequestTokenRequest]
1858
+ * @param {*} [options] Override http request option.
1859
+ * @throws {RequiredError}
1860
+ */
1861
+ adminAuthRequestToken(adminAuthRequestTokenRequest?: AdminAuthRequestTokenRequest, options?: RawAxiosRequestConfig): AxiosPromise<AdminAuthRequestToken200Response>;
1862
+ /**
1863
+ *
1864
+ * @summary Login na API
1865
+ * @param {AuthLoginRequest} [authLoginRequest]
1866
+ * @param {*} [options] Override http request option.
1867
+ * @throws {RequiredError}
1868
+ */
1869
+ authLogin(authLoginRequest?: AuthLoginRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthLogin200Response>;
1870
+ /**
1871
+ *
1872
+ * @summary Login na API via e-mail e token
1873
+ * @param {AuthLoginByTokenRequest} [authLoginByTokenRequest]
1874
+ * @param {*} [options] Override http request option.
1875
+ * @throws {RequiredError}
1876
+ */
1877
+ authLoginByToken(authLoginByTokenRequest?: AuthLoginByTokenRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthLoginByToken200Response>;
1878
+ /**
1879
+ *
1880
+ * @summary Dados na API
1881
+ * @param {*} [options] Override http request option.
1882
+ * @throws {RequiredError}
1883
+ */
1884
+ authMe(options?: RawAxiosRequestConfig): AxiosPromise<AuthMe200Response>;
1885
+ /**
1886
+ *
1887
+ * @summary Renova o do token de autenticação
1888
+ * @param {AuthRefreshTokenRequest} [authRefreshTokenRequest]
1889
+ * @param {*} [options] Override http request option.
1890
+ * @throws {RequiredError}
1891
+ */
1892
+ authRefreshToken(authRefreshTokenRequest?: AuthRefreshTokenRequest, options?: RawAxiosRequestConfig): AxiosPromise<AuthLoginByToken200Response>;
1893
+ };
1894
+ /**
1895
+ * AuthApi - object-oriented interface
1896
+ * @export
1897
+ * @class AuthApi
1898
+ * @extends {BaseAPI}
1899
+ */
1900
+ export declare class AuthApi extends BaseAPI {
1901
+ /**
1902
+ *
1903
+ * @summary Solicita envio de token de login por email
1904
+ * @param {AdminAuthRequestTokenRequest} [adminAuthRequestTokenRequest]
1905
+ * @param {*} [options] Override http request option.
1906
+ * @throws {RequiredError}
1907
+ * @memberof AuthApi
1908
+ */
1909
+ adminAuthRequestToken(adminAuthRequestTokenRequest?: AdminAuthRequestTokenRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AdminAuthRequestToken200Response, any, {}>>;
1910
+ /**
1911
+ *
1912
+ * @summary Login na API
1913
+ * @param {AuthLoginRequest} [authLoginRequest]
1914
+ * @param {*} [options] Override http request option.
1915
+ * @throws {RequiredError}
1916
+ * @memberof AuthApi
1917
+ */
1918
+ authLogin(authLoginRequest?: AuthLoginRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AuthLogin200Response, any, {}>>;
1919
+ /**
1920
+ *
1921
+ * @summary Login na API via e-mail e token
1922
+ * @param {AuthLoginByTokenRequest} [authLoginByTokenRequest]
1923
+ * @param {*} [options] Override http request option.
1924
+ * @throws {RequiredError}
1925
+ * @memberof AuthApi
1926
+ */
1927
+ authLoginByToken(authLoginByTokenRequest?: AuthLoginByTokenRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AuthLoginByToken200Response, any, {}>>;
1928
+ /**
1929
+ *
1930
+ * @summary Dados na API
1931
+ * @param {*} [options] Override http request option.
1932
+ * @throws {RequiredError}
1933
+ * @memberof AuthApi
1934
+ */
1935
+ authMe(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AuthMe200Response, any, {}>>;
1936
+ /**
1937
+ *
1938
+ * @summary Renova o do token de autenticação
1939
+ * @param {AuthRefreshTokenRequest} [authRefreshTokenRequest]
1940
+ * @param {*} [options] Override http request option.
1941
+ * @throws {RequiredError}
1942
+ * @memberof AuthApi
1943
+ */
1944
+ authRefreshToken(authRefreshTokenRequest?: AuthRefreshTokenRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AuthLoginByToken200Response, any, {}>>;
1945
+ }
1946
+ /**
1947
+ * MetricsApi - axios parameter creator
1948
+ * @export
1949
+ */
1950
+ export declare const MetricsApiAxiosParamCreator: (configuration?: Configuration) => {
1951
+ /**
1952
+ *
1953
+ * @summary Devolve as métricas da promoção
1954
+ * @param {string} promotionId ID da promoção
1955
+ * @param {Array<string>} keys Chaves das métricas que deseja consultar. Exemplo: &#x60;keys[]&#x3D;users&amp;keys[]&#x3D;coupons&amp;keys[]&#x3D;luckyNumbers&#x60;
1956
+ * @param {string} [startDate] Data inicial para filtrar as métricas
1957
+ * @param {string} [endDate] Data final para filtrar as métricas
1958
+ * @param {number} [limit] Limite de resultados
1959
+ * @param {string} [resolution] Resolução das métricas. Exemplo: &#x60;minute&#x60;, &#x60;hour&#x60;, &#x60;day&#x60;
1960
+ * @param {*} [options] Override http request option.
1961
+ * @throws {RequiredError}
1962
+ */
1963
+ metrics: (promotionId: string, keys: Array<string>, startDate?: string, endDate?: string, limit?: number, resolution?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1964
+ };
1965
+ /**
1966
+ * MetricsApi - functional programming interface
1967
+ * @export
1968
+ */
1969
+ export declare const MetricsApiFp: (configuration?: Configuration) => {
1970
+ /**
1971
+ *
1972
+ * @summary Devolve as métricas da promoção
1973
+ * @param {string} promotionId ID da promoção
1974
+ * @param {Array<string>} keys Chaves das métricas que deseja consultar. Exemplo: &#x60;keys[]&#x3D;users&amp;keys[]&#x3D;coupons&amp;keys[]&#x3D;luckyNumbers&#x60;
1975
+ * @param {string} [startDate] Data inicial para filtrar as métricas
1976
+ * @param {string} [endDate] Data final para filtrar as métricas
1977
+ * @param {number} [limit] Limite de resultados
1978
+ * @param {string} [resolution] Resolução das métricas. Exemplo: &#x60;minute&#x60;, &#x60;hour&#x60;, &#x60;day&#x60;
1979
+ * @param {*} [options] Override http request option.
1980
+ * @throws {RequiredError}
1981
+ */
1982
+ metrics(promotionId: string, keys: Array<string>, startDate?: string, endDate?: string, limit?: number, resolution?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Metrics200Response>>;
1983
+ };
1984
+ /**
1985
+ * MetricsApi - factory interface
1986
+ * @export
1987
+ */
1988
+ export declare const MetricsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
1989
+ /**
1990
+ *
1991
+ * @summary Devolve as métricas da promoção
1992
+ * @param {string} promotionId ID da promoção
1993
+ * @param {Array<string>} keys Chaves das métricas que deseja consultar. Exemplo: &#x60;keys[]&#x3D;users&amp;keys[]&#x3D;coupons&amp;keys[]&#x3D;luckyNumbers&#x60;
1994
+ * @param {string} [startDate] Data inicial para filtrar as métricas
1995
+ * @param {string} [endDate] Data final para filtrar as métricas
1996
+ * @param {number} [limit] Limite de resultados
1997
+ * @param {string} [resolution] Resolução das métricas. Exemplo: &#x60;minute&#x60;, &#x60;hour&#x60;, &#x60;day&#x60;
1998
+ * @param {*} [options] Override http request option.
1999
+ * @throws {RequiredError}
2000
+ */
2001
+ metrics(promotionId: string, keys: Array<string>, startDate?: string, endDate?: string, limit?: number, resolution?: string, options?: RawAxiosRequestConfig): AxiosPromise<Metrics200Response>;
2002
+ };
2003
+ /**
2004
+ * MetricsApi - object-oriented interface
2005
+ * @export
2006
+ * @class MetricsApi
2007
+ * @extends {BaseAPI}
2008
+ */
2009
+ export declare class MetricsApi extends BaseAPI {
2010
+ /**
2011
+ *
2012
+ * @summary Devolve as métricas da promoção
2013
+ * @param {string} promotionId ID da promoção
2014
+ * @param {Array<string>} keys Chaves das métricas que deseja consultar. Exemplo: &#x60;keys[]&#x3D;users&amp;keys[]&#x3D;coupons&amp;keys[]&#x3D;luckyNumbers&#x60;
2015
+ * @param {string} [startDate] Data inicial para filtrar as métricas
2016
+ * @param {string} [endDate] Data final para filtrar as métricas
2017
+ * @param {number} [limit] Limite de resultados
2018
+ * @param {string} [resolution] Resolução das métricas. Exemplo: &#x60;minute&#x60;, &#x60;hour&#x60;, &#x60;day&#x60;
2019
+ * @param {*} [options] Override http request option.
2020
+ * @throws {RequiredError}
2021
+ * @memberof MetricsApi
2022
+ */
2023
+ metrics(promotionId: string, keys: Array<string>, startDate?: string, endDate?: string, limit?: number, resolution?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Metrics200Response, any, {}>>;
2024
+ }
2025
+ /**
2026
+ * PromotionApi - axios parameter creator
2027
+ * @export
2028
+ */
2029
+ export declare const PromotionApiAxiosParamCreator: (configuration?: Configuration) => {
2030
+ /**
2031
+ *
2032
+ * @summary Adicionar/Atualizar configurações de uma promoção ao orquestrador
2033
+ * @param {PromotionPullConfigurationRequest} [promotionPullConfigurationRequest]
2034
+ * @param {*} [options] Override http request option.
2035
+ * @throws {RequiredError}
2036
+ */
2037
+ promotionPullConfiguration: (promotionPullConfigurationRequest?: PromotionPullConfigurationRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2038
+ /**
2039
+ *
2040
+ * @summary Iniciar uma promoção na API
2041
+ * @param {PromotionStartRequest} [promotionStartRequest]
2042
+ * @param {*} [options] Override http request option.
2043
+ * @throws {RequiredError}
2044
+ */
2045
+ promotionStart: (promotionStartRequest?: PromotionStartRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2046
+ };
2047
+ /**
2048
+ * PromotionApi - functional programming interface
2049
+ * @export
2050
+ */
2051
+ export declare const PromotionApiFp: (configuration?: Configuration) => {
2052
+ /**
2053
+ *
2054
+ * @summary Adicionar/Atualizar configurações de uma promoção ao orquestrador
2055
+ * @param {PromotionPullConfigurationRequest} [promotionPullConfigurationRequest]
2056
+ * @param {*} [options] Override http request option.
2057
+ * @throws {RequiredError}
2058
+ */
2059
+ promotionPullConfiguration(promotionPullConfigurationRequest?: PromotionPullConfigurationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromotionPullConfiguration200Response>>;
2060
+ /**
2061
+ *
2062
+ * @summary Iniciar uma promoção na API
2063
+ * @param {PromotionStartRequest} [promotionStartRequest]
2064
+ * @param {*} [options] Override http request option.
2065
+ * @throws {RequiredError}
2066
+ */
2067
+ promotionStart(promotionStartRequest?: PromotionStartRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromotionStart200Response>>;
2068
+ };
2069
+ /**
2070
+ * PromotionApi - factory interface
2071
+ * @export
2072
+ */
2073
+ export declare const PromotionApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
2074
+ /**
2075
+ *
2076
+ * @summary Adicionar/Atualizar configurações de uma promoção ao orquestrador
2077
+ * @param {PromotionPullConfigurationRequest} [promotionPullConfigurationRequest]
2078
+ * @param {*} [options] Override http request option.
2079
+ * @throws {RequiredError}
2080
+ */
2081
+ promotionPullConfiguration(promotionPullConfigurationRequest?: PromotionPullConfigurationRequest, options?: RawAxiosRequestConfig): AxiosPromise<PromotionPullConfiguration200Response>;
2082
+ /**
2083
+ *
2084
+ * @summary Iniciar uma promoção na API
2085
+ * @param {PromotionStartRequest} [promotionStartRequest]
2086
+ * @param {*} [options] Override http request option.
2087
+ * @throws {RequiredError}
2088
+ */
2089
+ promotionStart(promotionStartRequest?: PromotionStartRequest, options?: RawAxiosRequestConfig): AxiosPromise<PromotionStart200Response>;
2090
+ };
2091
+ /**
2092
+ * PromotionApi - object-oriented interface
2093
+ * @export
2094
+ * @class PromotionApi
2095
+ * @extends {BaseAPI}
2096
+ */
2097
+ export declare class PromotionApi extends BaseAPI {
2098
+ /**
2099
+ *
2100
+ * @summary Adicionar/Atualizar configurações de uma promoção ao orquestrador
2101
+ * @param {PromotionPullConfigurationRequest} [promotionPullConfigurationRequest]
2102
+ * @param {*} [options] Override http request option.
2103
+ * @throws {RequiredError}
2104
+ * @memberof PromotionApi
2105
+ */
2106
+ promotionPullConfiguration(promotionPullConfigurationRequest?: PromotionPullConfigurationRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PromotionPullConfiguration200Response, any, {}>>;
2107
+ /**
2108
+ *
2109
+ * @summary Iniciar uma promoção na API
2110
+ * @param {PromotionStartRequest} [promotionStartRequest]
2111
+ * @param {*} [options] Override http request option.
2112
+ * @throws {RequiredError}
2113
+ * @memberof PromotionApi
2114
+ */
2115
+ promotionStart(promotionStartRequest?: PromotionStartRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PromotionStart200Response, any, {}>>;
2116
+ }
2117
+ /**
2118
+ * RolesApi - axios parameter creator
2119
+ * @export
2120
+ */
2121
+ export declare const RolesApiAxiosParamCreator: (configuration?: Configuration) => {
2122
+ /**
2123
+ *
2124
+ * @summary Atualizar permissões de uma role
2125
+ * @param {number} id ID da role
2126
+ * @param {RolesAttachPermissionsRequest} [rolesAttachPermissionsRequest]
2127
+ * @param {*} [options] Override http request option.
2128
+ * @throws {RequiredError}
2129
+ */
2130
+ rolesAttachPermissions: (id: number, rolesAttachPermissionsRequest?: RolesAttachPermissionsRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2131
+ /**
2132
+ *
2133
+ * @summary Remover role
2134
+ * @param {number} id ID da role
2135
+ * @param {*} [options] Override http request option.
2136
+ * @throws {RequiredError}
2137
+ */
2138
+ rolesDestroy: (id: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2139
+ /**
2140
+ *
2141
+ * @summary Listar roles
2142
+ * @param {*} [options] Override http request option.
2143
+ * @throws {RequiredError}
2144
+ */
2145
+ rolesIndex: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2146
+ /**
2147
+ *
2148
+ * @summary Listar permissões de uma role
2149
+ * @param {number} id ID da role
2150
+ * @param {*} [options] Override http request option.
2151
+ * @throws {RequiredError}
2152
+ */
2153
+ rolesPermissions: (id: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2154
+ /**
2155
+ *
2156
+ * @summary Exibir detalhes da role
2157
+ * @param {number} id ID da role
2158
+ * @param {*} [options] Override http request option.
2159
+ * @throws {RequiredError}
2160
+ */
2161
+ rolesShow: (id: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2162
+ /**
2163
+ *
2164
+ * @summary Criar role
2165
+ * @param {RolesStoreRequest} [rolesStoreRequest]
2166
+ * @param {*} [options] Override http request option.
2167
+ * @throws {RequiredError}
2168
+ */
2169
+ rolesStore: (rolesStoreRequest?: RolesStoreRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2170
+ /**
2171
+ *
2172
+ * @summary Atualizar role
2173
+ * @param {number} id ID da role
2174
+ * @param {RolesUpdateRequest} [rolesUpdateRequest]
2175
+ * @param {*} [options] Override http request option.
2176
+ * @throws {RequiredError}
2177
+ */
2178
+ rolesUpdate: (id: number, rolesUpdateRequest?: RolesUpdateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2179
+ };
2180
+ /**
2181
+ * RolesApi - functional programming interface
2182
+ * @export
2183
+ */
2184
+ export declare const RolesApiFp: (configuration?: Configuration) => {
2185
+ /**
2186
+ *
2187
+ * @summary Atualizar permissões de uma role
2188
+ * @param {number} id ID da role
2189
+ * @param {RolesAttachPermissionsRequest} [rolesAttachPermissionsRequest]
2190
+ * @param {*} [options] Override http request option.
2191
+ * @throws {RequiredError}
2192
+ */
2193
+ rolesAttachPermissions(id: number, rolesAttachPermissionsRequest?: RolesAttachPermissionsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RolesAttachPermissions200Response>>;
2194
+ /**
2195
+ *
2196
+ * @summary Remover role
2197
+ * @param {number} id ID da role
2198
+ * @param {*} [options] Override http request option.
2199
+ * @throws {RequiredError}
2200
+ */
2201
+ rolesDestroy(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
2202
+ /**
2203
+ *
2204
+ * @summary Listar roles
2205
+ * @param {*} [options] Override http request option.
2206
+ * @throws {RequiredError}
2207
+ */
2208
+ rolesIndex(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RolesIndex200Response>>;
2209
+ /**
2210
+ *
2211
+ * @summary Listar permissões de uma role
2212
+ * @param {number} id ID da role
2213
+ * @param {*} [options] Override http request option.
2214
+ * @throws {RequiredError}
2215
+ */
2216
+ rolesPermissions(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RolesPermissions200Response>>;
2217
+ /**
2218
+ *
2219
+ * @summary Exibir detalhes da role
2220
+ * @param {number} id ID da role
2221
+ * @param {*} [options] Override http request option.
2222
+ * @throws {RequiredError}
2223
+ */
2224
+ rolesShow(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RolesShow200Response>>;
2225
+ /**
2226
+ *
2227
+ * @summary Criar role
2228
+ * @param {RolesStoreRequest} [rolesStoreRequest]
2229
+ * @param {*} [options] Override http request option.
2230
+ * @throws {RequiredError}
2231
+ */
2232
+ rolesStore(rolesStoreRequest?: RolesStoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RolesStore201Response>>;
2233
+ /**
2234
+ *
2235
+ * @summary Atualizar role
2236
+ * @param {number} id ID da role
2237
+ * @param {RolesUpdateRequest} [rolesUpdateRequest]
2238
+ * @param {*} [options] Override http request option.
2239
+ * @throws {RequiredError}
2240
+ */
2241
+ rolesUpdate(id: number, rolesUpdateRequest?: RolesUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RolesUpdate200Response>>;
2242
+ };
2243
+ /**
2244
+ * RolesApi - factory interface
2245
+ * @export
2246
+ */
2247
+ export declare const RolesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
2248
+ /**
2249
+ *
2250
+ * @summary Atualizar permissões de uma role
2251
+ * @param {number} id ID da role
2252
+ * @param {RolesAttachPermissionsRequest} [rolesAttachPermissionsRequest]
2253
+ * @param {*} [options] Override http request option.
2254
+ * @throws {RequiredError}
2255
+ */
2256
+ rolesAttachPermissions(id: number, rolesAttachPermissionsRequest?: RolesAttachPermissionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<RolesAttachPermissions200Response>;
2257
+ /**
2258
+ *
2259
+ * @summary Remover role
2260
+ * @param {number} id ID da role
2261
+ * @param {*} [options] Override http request option.
2262
+ * @throws {RequiredError}
2263
+ */
2264
+ rolesDestroy(id: number, options?: RawAxiosRequestConfig): AxiosPromise<void>;
2265
+ /**
2266
+ *
2267
+ * @summary Listar roles
2268
+ * @param {*} [options] Override http request option.
2269
+ * @throws {RequiredError}
2270
+ */
2271
+ rolesIndex(options?: RawAxiosRequestConfig): AxiosPromise<RolesIndex200Response>;
2272
+ /**
2273
+ *
2274
+ * @summary Listar permissões de uma role
2275
+ * @param {number} id ID da role
2276
+ * @param {*} [options] Override http request option.
2277
+ * @throws {RequiredError}
2278
+ */
2279
+ rolesPermissions(id: number, options?: RawAxiosRequestConfig): AxiosPromise<RolesPermissions200Response>;
2280
+ /**
2281
+ *
2282
+ * @summary Exibir detalhes da role
2283
+ * @param {number} id ID da role
2284
+ * @param {*} [options] Override http request option.
2285
+ * @throws {RequiredError}
2286
+ */
2287
+ rolesShow(id: number, options?: RawAxiosRequestConfig): AxiosPromise<RolesShow200Response>;
2288
+ /**
2289
+ *
2290
+ * @summary Criar role
2291
+ * @param {RolesStoreRequest} [rolesStoreRequest]
2292
+ * @param {*} [options] Override http request option.
2293
+ * @throws {RequiredError}
2294
+ */
2295
+ rolesStore(rolesStoreRequest?: RolesStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<RolesStore201Response>;
2296
+ /**
2297
+ *
2298
+ * @summary Atualizar role
2299
+ * @param {number} id ID da role
2300
+ * @param {RolesUpdateRequest} [rolesUpdateRequest]
2301
+ * @param {*} [options] Override http request option.
2302
+ * @throws {RequiredError}
2303
+ */
2304
+ rolesUpdate(id: number, rolesUpdateRequest?: RolesUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<RolesUpdate200Response>;
2305
+ };
2306
+ /**
2307
+ * RolesApi - object-oriented interface
2308
+ * @export
2309
+ * @class RolesApi
2310
+ * @extends {BaseAPI}
2311
+ */
2312
+ export declare class RolesApi extends BaseAPI {
2313
+ /**
2314
+ *
2315
+ * @summary Atualizar permissões de uma role
2316
+ * @param {number} id ID da role
2317
+ * @param {RolesAttachPermissionsRequest} [rolesAttachPermissionsRequest]
2318
+ * @param {*} [options] Override http request option.
2319
+ * @throws {RequiredError}
2320
+ * @memberof RolesApi
2321
+ */
2322
+ rolesAttachPermissions(id: number, rolesAttachPermissionsRequest?: RolesAttachPermissionsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RolesAttachPermissions200Response, any, {}>>;
2323
+ /**
2324
+ *
2325
+ * @summary Remover role
2326
+ * @param {number} id ID da role
2327
+ * @param {*} [options] Override http request option.
2328
+ * @throws {RequiredError}
2329
+ * @memberof RolesApi
2330
+ */
2331
+ rolesDestroy(id: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
2332
+ /**
2333
+ *
2334
+ * @summary Listar roles
2335
+ * @param {*} [options] Override http request option.
2336
+ * @throws {RequiredError}
2337
+ * @memberof RolesApi
2338
+ */
2339
+ rolesIndex(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RolesIndex200Response, any, {}>>;
2340
+ /**
2341
+ *
2342
+ * @summary Listar permissões de uma role
2343
+ * @param {number} id ID da role
2344
+ * @param {*} [options] Override http request option.
2345
+ * @throws {RequiredError}
2346
+ * @memberof RolesApi
2347
+ */
2348
+ rolesPermissions(id: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RolesPermissions200Response, any, {}>>;
2349
+ /**
2350
+ *
2351
+ * @summary Exibir detalhes da role
2352
+ * @param {number} id ID da role
2353
+ * @param {*} [options] Override http request option.
2354
+ * @throws {RequiredError}
2355
+ * @memberof RolesApi
2356
+ */
2357
+ rolesShow(id: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RolesShow200Response, any, {}>>;
2358
+ /**
2359
+ *
2360
+ * @summary Criar role
2361
+ * @param {RolesStoreRequest} [rolesStoreRequest]
2362
+ * @param {*} [options] Override http request option.
2363
+ * @throws {RequiredError}
2364
+ * @memberof RolesApi
2365
+ */
2366
+ rolesStore(rolesStoreRequest?: RolesStoreRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RolesStore201Response, any, {}>>;
2367
+ /**
2368
+ *
2369
+ * @summary Atualizar role
2370
+ * @param {number} id ID da role
2371
+ * @param {RolesUpdateRequest} [rolesUpdateRequest]
2372
+ * @param {*} [options] Override http request option.
2373
+ * @throws {RequiredError}
2374
+ * @memberof RolesApi
2375
+ */
2376
+ rolesUpdate(id: number, rolesUpdateRequest?: RolesUpdateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RolesUpdate200Response, any, {}>>;
2377
+ }
2378
+ /**
2379
+ * StepsApi - axios parameter creator
2380
+ * @export
2381
+ */
2382
+ export declare const StepsApiAxiosParamCreator: (configuration?: Configuration) => {
2383
+ /**
2384
+ *
2385
+ * @summary Inclui uma Step em um determinado endpoint
2386
+ * @param {StepsAllowRequest} [stepsAllowRequest]
2387
+ * @param {*} [options] Override http request option.
2388
+ * @throws {RequiredError}
2389
+ */
2390
+ stepsAllow: (stepsAllowRequest?: StepsAllowRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2391
+ /**
2392
+ *
2393
+ * @summary Retorna todas as steps existentes
2394
+ * @param {string} [promotionId] UUID da promoção
2395
+ * @param {*} [options] Override http request option.
2396
+ * @throws {RequiredError}
2397
+ */
2398
+ stepsIndex: (promotionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2399
+ /**
2400
+ *
2401
+ * @summary Remove uma Step de um determinado endpoint
2402
+ * @param {StepsAllowRequest} [stepsAllowRequest]
2403
+ * @param {*} [options] Override http request option.
2404
+ * @throws {RequiredError}
2405
+ */
2406
+ stepsUnallow: (stepsAllowRequest?: StepsAllowRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2407
+ };
2408
+ /**
2409
+ * StepsApi - functional programming interface
2410
+ * @export
2411
+ */
2412
+ export declare const StepsApiFp: (configuration?: Configuration) => {
2413
+ /**
2414
+ *
2415
+ * @summary Inclui uma Step em um determinado endpoint
2416
+ * @param {StepsAllowRequest} [stepsAllowRequest]
2417
+ * @param {*} [options] Override http request option.
2418
+ * @throws {RequiredError}
2419
+ */
2420
+ stepsAllow(stepsAllowRequest?: StepsAllowRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StepsAllow201Response>>;
2421
+ /**
2422
+ *
2423
+ * @summary Retorna todas as steps existentes
2424
+ * @param {string} [promotionId] UUID da promoção
2425
+ * @param {*} [options] Override http request option.
2426
+ * @throws {RequiredError}
2427
+ */
2428
+ stepsIndex(promotionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StepsIndex200Response>>;
2429
+ /**
2430
+ *
2431
+ * @summary Remove uma Step de um determinado endpoint
2432
+ * @param {StepsAllowRequest} [stepsAllowRequest]
2433
+ * @param {*} [options] Override http request option.
2434
+ * @throws {RequiredError}
2435
+ */
2436
+ stepsUnallow(stepsAllowRequest?: StepsAllowRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StepsUnallow201Response>>;
2437
+ };
2438
+ /**
2439
+ * StepsApi - factory interface
2440
+ * @export
2441
+ */
2442
+ export declare const StepsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
2443
+ /**
2444
+ *
2445
+ * @summary Inclui uma Step em um determinado endpoint
2446
+ * @param {StepsAllowRequest} [stepsAllowRequest]
2447
+ * @param {*} [options] Override http request option.
2448
+ * @throws {RequiredError}
2449
+ */
2450
+ stepsAllow(stepsAllowRequest?: StepsAllowRequest, options?: RawAxiosRequestConfig): AxiosPromise<StepsAllow201Response>;
2451
+ /**
2452
+ *
2453
+ * @summary Retorna todas as steps existentes
2454
+ * @param {string} [promotionId] UUID da promoção
2455
+ * @param {*} [options] Override http request option.
2456
+ * @throws {RequiredError}
2457
+ */
2458
+ stepsIndex(promotionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<StepsIndex200Response>;
2459
+ /**
2460
+ *
2461
+ * @summary Remove uma Step de um determinado endpoint
2462
+ * @param {StepsAllowRequest} [stepsAllowRequest]
2463
+ * @param {*} [options] Override http request option.
2464
+ * @throws {RequiredError}
2465
+ */
2466
+ stepsUnallow(stepsAllowRequest?: StepsAllowRequest, options?: RawAxiosRequestConfig): AxiosPromise<StepsUnallow201Response>;
2467
+ };
2468
+ /**
2469
+ * StepsApi - object-oriented interface
2470
+ * @export
2471
+ * @class StepsApi
2472
+ * @extends {BaseAPI}
2473
+ */
2474
+ export declare class StepsApi extends BaseAPI {
2475
+ /**
2476
+ *
2477
+ * @summary Inclui uma Step em um determinado endpoint
2478
+ * @param {StepsAllowRequest} [stepsAllowRequest]
2479
+ * @param {*} [options] Override http request option.
2480
+ * @throws {RequiredError}
2481
+ * @memberof StepsApi
2482
+ */
2483
+ stepsAllow(stepsAllowRequest?: StepsAllowRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<StepsAllow201Response, any, {}>>;
2484
+ /**
2485
+ *
2486
+ * @summary Retorna todas as steps existentes
2487
+ * @param {string} [promotionId] UUID da promoção
2488
+ * @param {*} [options] Override http request option.
2489
+ * @throws {RequiredError}
2490
+ * @memberof StepsApi
2491
+ */
2492
+ stepsIndex(promotionId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<StepsIndex200Response, any, {}>>;
2493
+ /**
2494
+ *
2495
+ * @summary Remove uma Step de um determinado endpoint
2496
+ * @param {StepsAllowRequest} [stepsAllowRequest]
2497
+ * @param {*} [options] Override http request option.
2498
+ * @throws {RequiredError}
2499
+ * @memberof StepsApi
2500
+ */
2501
+ stepsUnallow(stepsAllowRequest?: StepsAllowRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<StepsUnallow201Response, any, {}>>;
2502
+ }
2503
+ /**
2504
+ * UserApi - axios parameter creator
2505
+ * @export
2506
+ */
2507
+ export declare const UserApiAxiosParamCreator: (configuration?: Configuration) => {
2508
+ /**
2509
+ *
2510
+ * @summary Dar permissões a um usuário na API
2511
+ * @param {UserGrantPermissionsRequest} [userGrantPermissionsRequest]
2512
+ * @param {*} [options] Override http request option.
2513
+ * @throws {RequiredError}
2514
+ */
2515
+ userGrantPermissions: (userGrantPermissionsRequest?: UserGrantPermissionsRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2516
+ /**
2517
+ *
2518
+ * @summary Registrar usuário na API
2519
+ * @param {UserRegisterRequest} [userRegisterRequest]
2520
+ * @param {*} [options] Override http request option.
2521
+ * @throws {RequiredError}
2522
+ */
2523
+ userRegister: (userRegisterRequest?: UserRegisterRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2524
+ /**
2525
+ *
2526
+ * @summary Visualizar dados do usuário na API
2527
+ * @param {string} uuid UUID do usuário a ser visualizado
2528
+ * @param {*} [options] Override http request option.
2529
+ * @throws {RequiredError}
2530
+ */
2531
+ userShow: (uuid: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2532
+ /**
2533
+ *
2534
+ * @summary Atualizar nome do usuário na API
2535
+ * @param {string} uuid UUID do usuário a ser atualizado
2536
+ * @param {UserUpdateRequest} [userUpdateRequest]
2537
+ * @param {*} [options] Override http request option.
2538
+ * @throws {RequiredError}
2539
+ */
2540
+ userUpdate: (uuid: string, userUpdateRequest?: UserUpdateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2541
+ };
2542
+ /**
2543
+ * UserApi - functional programming interface
2544
+ * @export
2545
+ */
2546
+ export declare const UserApiFp: (configuration?: Configuration) => {
2547
+ /**
2548
+ *
2549
+ * @summary Dar permissões a um usuário na API
2550
+ * @param {UserGrantPermissionsRequest} [userGrantPermissionsRequest]
2551
+ * @param {*} [options] Override http request option.
2552
+ * @throws {RequiredError}
2553
+ */
2554
+ userGrantPermissions(userGrantPermissionsRequest?: UserGrantPermissionsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserGrantPermissions200Response>>;
2555
+ /**
2556
+ *
2557
+ * @summary Registrar usuário na API
2558
+ * @param {UserRegisterRequest} [userRegisterRequest]
2559
+ * @param {*} [options] Override http request option.
2560
+ * @throws {RequiredError}
2561
+ */
2562
+ userRegister(userRegisterRequest?: UserRegisterRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserRegister200Response>>;
2563
+ /**
2564
+ *
2565
+ * @summary Visualizar dados do usuário na API
2566
+ * @param {string} uuid UUID do usuário a ser visualizado
2567
+ * @param {*} [options] Override http request option.
2568
+ * @throws {RequiredError}
2569
+ */
2570
+ userShow(uuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserShow200Response>>;
2571
+ /**
2572
+ *
2573
+ * @summary Atualizar nome do usuário na API
2574
+ * @param {string} uuid UUID do usuário a ser atualizado
2575
+ * @param {UserUpdateRequest} [userUpdateRequest]
2576
+ * @param {*} [options] Override http request option.
2577
+ * @throws {RequiredError}
2578
+ */
2579
+ userUpdate(uuid: string, userUpdateRequest?: UserUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserUpdate200Response>>;
2580
+ };
2581
+ /**
2582
+ * UserApi - factory interface
2583
+ * @export
2584
+ */
2585
+ export declare const UserApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
2586
+ /**
2587
+ *
2588
+ * @summary Dar permissões a um usuário na API
2589
+ * @param {UserGrantPermissionsRequest} [userGrantPermissionsRequest]
2590
+ * @param {*} [options] Override http request option.
2591
+ * @throws {RequiredError}
2592
+ */
2593
+ userGrantPermissions(userGrantPermissionsRequest?: UserGrantPermissionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserGrantPermissions200Response>;
2594
+ /**
2595
+ *
2596
+ * @summary Registrar usuário na API
2597
+ * @param {UserRegisterRequest} [userRegisterRequest]
2598
+ * @param {*} [options] Override http request option.
2599
+ * @throws {RequiredError}
2600
+ */
2601
+ userRegister(userRegisterRequest?: UserRegisterRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserRegister200Response>;
2602
+ /**
2603
+ *
2604
+ * @summary Visualizar dados do usuário na API
2605
+ * @param {string} uuid UUID do usuário a ser visualizado
2606
+ * @param {*} [options] Override http request option.
2607
+ * @throws {RequiredError}
2608
+ */
2609
+ userShow(uuid: string, options?: RawAxiosRequestConfig): AxiosPromise<UserShow200Response>;
2610
+ /**
2611
+ *
2612
+ * @summary Atualizar nome do usuário na API
2613
+ * @param {string} uuid UUID do usuário a ser atualizado
2614
+ * @param {UserUpdateRequest} [userUpdateRequest]
2615
+ * @param {*} [options] Override http request option.
2616
+ * @throws {RequiredError}
2617
+ */
2618
+ userUpdate(uuid: string, userUpdateRequest?: UserUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserUpdate200Response>;
2619
+ };
2620
+ /**
2621
+ * UserApi - object-oriented interface
2622
+ * @export
2623
+ * @class UserApi
2624
+ * @extends {BaseAPI}
2625
+ */
2626
+ export declare class UserApi extends BaseAPI {
2627
+ /**
2628
+ *
2629
+ * @summary Dar permissões a um usuário na API
2630
+ * @param {UserGrantPermissionsRequest} [userGrantPermissionsRequest]
2631
+ * @param {*} [options] Override http request option.
2632
+ * @throws {RequiredError}
2633
+ * @memberof UserApi
2634
+ */
2635
+ userGrantPermissions(userGrantPermissionsRequest?: UserGrantPermissionsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserGrantPermissions200Response, any, {}>>;
2636
+ /**
2637
+ *
2638
+ * @summary Registrar usuário na API
2639
+ * @param {UserRegisterRequest} [userRegisterRequest]
2640
+ * @param {*} [options] Override http request option.
2641
+ * @throws {RequiredError}
2642
+ * @memberof UserApi
2643
+ */
2644
+ userRegister(userRegisterRequest?: UserRegisterRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserRegister200Response, any, {}>>;
2645
+ /**
2646
+ *
2647
+ * @summary Visualizar dados do usuário na API
2648
+ * @param {string} uuid UUID do usuário a ser visualizado
2649
+ * @param {*} [options] Override http request option.
2650
+ * @throws {RequiredError}
2651
+ * @memberof UserApi
2652
+ */
2653
+ userShow(uuid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserShow200Response, any, {}>>;
2654
+ /**
2655
+ *
2656
+ * @summary Atualizar nome do usuário na API
2657
+ * @param {string} uuid UUID do usuário a ser atualizado
2658
+ * @param {UserUpdateRequest} [userUpdateRequest]
2659
+ * @param {*} [options] Override http request option.
2660
+ * @throws {RequiredError}
2661
+ * @memberof UserApi
2662
+ */
2663
+ userUpdate(uuid: string, userUpdateRequest?: UserUpdateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserUpdate200Response, any, {}>>;
2664
+ }