@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
@@ -0,0 +1,26 @@
1
+ # RolesStore201ResponseRole
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **number** | | [optional] [default to undefined]
9
+ **name** | **string** | | [optional] [default to undefined]
10
+ **description** | **string** | | [optional] [default to undefined]
11
+ **is_active** | **boolean** | | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { RolesStore201ResponseRole } from '@handsondigital/idplugger-admin';
17
+
18
+ const instance: RolesStore201ResponseRole = {
19
+ id,
20
+ name,
21
+ description,
22
+ is_active,
23
+ };
24
+ ```
25
+
26
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,20 @@
1
+ # RolesStore422Response
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **name** | **Array<string>** | | [optional] [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { RolesStore422Response } from '@handsondigital/idplugger-admin';
14
+
15
+ const instance: RolesStore422Response = {
16
+ name,
17
+ };
18
+ ```
19
+
20
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,24 @@
1
+ # RolesStoreRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **name** | **string** | | [default to undefined]
9
+ **description** | **string** | | [optional] [default to undefined]
10
+ **is_active** | **boolean** | | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { RolesStoreRequest } from '@handsondigital/idplugger-admin';
16
+
17
+ const instance: RolesStoreRequest = {
18
+ name,
19
+ description,
20
+ is_active,
21
+ };
22
+ ```
23
+
24
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,26 @@
1
+ # RolesUpdate200Response
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **action** | **string** | | [optional] [default to undefined]
9
+ **result** | **string** | | [optional] [default to undefined]
10
+ **message** | **string** | | [optional] [default to undefined]
11
+ **role** | **object** | | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { RolesUpdate200Response } from '@handsondigital/idplugger-admin';
17
+
18
+ const instance: RolesUpdate200Response = {
19
+ action,
20
+ result,
21
+ message,
22
+ role,
23
+ };
24
+ ```
25
+
26
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,24 @@
1
+ # RolesUpdateRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **name** | **string** | | [optional] [default to undefined]
9
+ **description** | **string** | | [optional] [default to undefined]
10
+ **is_active** | **boolean** | | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { RolesUpdateRequest } from '@handsondigital/idplugger-admin';
16
+
17
+ const instance: RolesUpdateRequest = {
18
+ name,
19
+ description,
20
+ is_active,
21
+ };
22
+ ```
23
+
24
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,26 @@
1
+ # StepsAllow201Response
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **action** | **string** | | [optional] [default to undefined]
9
+ **endpoint** | **string** | | [optional] [default to undefined]
10
+ **result** | **string** | | [optional] [default to undefined]
11
+ **steps** | **Array<any>** | | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { StepsAllow201Response } from '@handsondigital/idplugger-admin';
17
+
18
+ const instance: StepsAllow201Response = {
19
+ action,
20
+ endpoint,
21
+ result,
22
+ steps,
23
+ };
24
+ ```
25
+
26
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,26 @@
1
+ # StepsAllow409Response
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **action** | **string** | | [optional] [default to undefined]
9
+ **endpoint** | **string** | | [optional] [default to undefined]
10
+ **result** | **string** | | [optional] [default to undefined]
11
+ **message** | **string** | | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { StepsAllow409Response } from '@handsondigital/idplugger-admin';
17
+
18
+ const instance: StepsAllow409Response = {
19
+ action,
20
+ endpoint,
21
+ result,
22
+ message,
23
+ };
24
+ ```
25
+
26
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,24 @@
1
+ # StepsAllowRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **promotion_id** | **string** | | [optional] [default to undefined]
9
+ **endpoint** | **string** | | [optional] [default to undefined]
10
+ **steps** | **Array<any>** | | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { StepsAllowRequest } from '@handsondigital/idplugger-admin';
16
+
17
+ const instance: StepsAllowRequest = {
18
+ promotion_id,
19
+ endpoint,
20
+ steps,
21
+ };
22
+ ```
23
+
24
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,167 @@
1
+ # StepsApi
2
+
3
+ All URIs are relative to *https://api.idplugger.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**stepsAllow**](#stepsallow) | **POST** /v3/steps/allow | Inclui uma Step em um determinado endpoint|
8
+ |[**stepsIndex**](#stepsindex) | **GET** /v3/steps | Retorna todas as steps existentes|
9
+ |[**stepsUnallow**](#stepsunallow) | **POST** /v3/steps/disallow | Remove uma Step de um determinado endpoint|
10
+
11
+ # **stepsAllow**
12
+ > StepsAllow201Response stepsAllow()
13
+
14
+
15
+ ### Example
16
+
17
+ ```typescript
18
+ import {
19
+ StepsApi,
20
+ Configuration,
21
+ StepsAllowRequest
22
+ } from '@handsondigital/idplugger-admin';
23
+
24
+ const configuration = new Configuration();
25
+ const apiInstance = new StepsApi(configuration);
26
+
27
+ let stepsAllowRequest: StepsAllowRequest; // (optional)
28
+
29
+ const { status, data } = await apiInstance.stepsAllow(
30
+ stepsAllowRequest
31
+ );
32
+ ```
33
+
34
+ ### Parameters
35
+
36
+ |Name | Type | Description | Notes|
37
+ |------------- | ------------- | ------------- | -------------|
38
+ | **stepsAllowRequest** | **StepsAllowRequest**| | |
39
+
40
+
41
+ ### Return type
42
+
43
+ **StepsAllow201Response**
44
+
45
+ ### Authorization
46
+
47
+ [bearerAuth](../README.md#bearerAuth)
48
+
49
+ ### HTTP request headers
50
+
51
+ - **Content-Type**: application/json
52
+ - **Accept**: application/json
53
+
54
+
55
+ ### HTTP response details
56
+ | Status code | Description | Response headers |
57
+ |-------------|-------------|------------------|
58
+ |**201** | success | - |
59
+ |**409** | failed | - |
60
+ |**401** | unauthorized | - |
61
+
62
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
63
+
64
+ # **stepsIndex**
65
+ > StepsIndex200Response stepsIndex()
66
+
67
+
68
+ ### Example
69
+
70
+ ```typescript
71
+ import {
72
+ StepsApi,
73
+ Configuration
74
+ } from '@handsondigital/idplugger-admin';
75
+
76
+ const configuration = new Configuration();
77
+ const apiInstance = new StepsApi(configuration);
78
+
79
+ let promotionId: string; //UUID da promoção (optional) (default to undefined)
80
+
81
+ const { status, data } = await apiInstance.stepsIndex(
82
+ promotionId
83
+ );
84
+ ```
85
+
86
+ ### Parameters
87
+
88
+ |Name | Type | Description | Notes|
89
+ |------------- | ------------- | ------------- | -------------|
90
+ | **promotionId** | [**string**] | UUID da promoção | (optional) defaults to undefined|
91
+
92
+
93
+ ### Return type
94
+
95
+ **StepsIndex200Response**
96
+
97
+ ### Authorization
98
+
99
+ [bearerAuth](../README.md#bearerAuth)
100
+
101
+ ### HTTP request headers
102
+
103
+ - **Content-Type**: Not defined
104
+ - **Accept**: application/json
105
+
106
+
107
+ ### HTTP response details
108
+ | Status code | Description | Response headers |
109
+ |-------------|-------------|------------------|
110
+ |**200** | success | - |
111
+ |**401** | unauthorized | - |
112
+
113
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
114
+
115
+ # **stepsUnallow**
116
+ > StepsUnallow201Response stepsUnallow()
117
+
118
+
119
+ ### Example
120
+
121
+ ```typescript
122
+ import {
123
+ StepsApi,
124
+ Configuration,
125
+ StepsAllowRequest
126
+ } from '@handsondigital/idplugger-admin';
127
+
128
+ const configuration = new Configuration();
129
+ const apiInstance = new StepsApi(configuration);
130
+
131
+ let stepsAllowRequest: StepsAllowRequest; // (optional)
132
+
133
+ const { status, data } = await apiInstance.stepsUnallow(
134
+ stepsAllowRequest
135
+ );
136
+ ```
137
+
138
+ ### Parameters
139
+
140
+ |Name | Type | Description | Notes|
141
+ |------------- | ------------- | ------------- | -------------|
142
+ | **stepsAllowRequest** | **StepsAllowRequest**| | |
143
+
144
+
145
+ ### Return type
146
+
147
+ **StepsUnallow201Response**
148
+
149
+ ### Authorization
150
+
151
+ [bearerAuth](../README.md#bearerAuth)
152
+
153
+ ### HTTP request headers
154
+
155
+ - **Content-Type**: application/json
156
+ - **Accept**: application/json
157
+
158
+
159
+ ### HTTP response details
160
+ | Status code | Description | Response headers |
161
+ |-------------|-------------|------------------|
162
+ |**201** | success | - |
163
+ |**409** | failed | - |
164
+ |**401** | unauthorized | - |
165
+
166
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
167
+
@@ -0,0 +1,22 @@
1
+ # StepsIndex200Response
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **promotion_id** | **string** | | [optional] [default to undefined]
9
+ **steps** | **{ [key: string]: { [key: string]: StepsIndex200ResponseStepsValueValue; }; }** | | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { StepsIndex200Response } from '@handsondigital/idplugger-admin';
15
+
16
+ const instance: StepsIndex200Response = {
17
+ promotion_id,
18
+ steps,
19
+ };
20
+ ```
21
+
22
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,30 @@
1
+ # StepsIndex200ResponseStepsValueValue
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **_default** | **boolean** | Valor padrão da validação | [optional] [default to undefined]
9
+ **title** | **string** | Título da validação | [optional] [default to undefined]
10
+ **description** | **string** | Detalhes da validação | [optional] [default to undefined]
11
+ **active** | **boolean** | Se a validação está ativa | [optional] [default to undefined]
12
+ **depends_on** | **Array<string>** | Dependências de outras validações | [optional] [default to undefined]
13
+ **deprecated** | **boolean** | Se a validação está obsoleta | [optional] [default to undefined]
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import { StepsIndex200ResponseStepsValueValue } from '@handsondigital/idplugger-admin';
19
+
20
+ const instance: StepsIndex200ResponseStepsValueValue = {
21
+ _default,
22
+ title,
23
+ description,
24
+ active,
25
+ depends_on,
26
+ deprecated,
27
+ };
28
+ ```
29
+
30
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,26 @@
1
+ # StepsUnallow201Response
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **action** | **string** | | [optional] [default to undefined]
9
+ **endpoint** | **string** | | [optional] [default to undefined]
10
+ **result** | **string** | | [optional] [default to undefined]
11
+ **steps** | **Array<any>** | | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { StepsUnallow201Response } from '@handsondigital/idplugger-admin';
17
+
18
+ const instance: StepsUnallow201Response = {
19
+ action,
20
+ endpoint,
21
+ result,
22
+ steps,
23
+ };
24
+ ```
25
+
26
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,26 @@
1
+ # StepsUnallow409Response
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **action** | **string** | | [optional] [default to undefined]
9
+ **endpoint** | **string** | | [optional] [default to undefined]
10
+ **result** | **string** | | [optional] [default to undefined]
11
+ **message** | **string** | | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { StepsUnallow409Response } from '@handsondigital/idplugger-admin';
17
+
18
+ const instance: StepsUnallow409Response = {
19
+ action,
20
+ endpoint,
21
+ result,
22
+ message,
23
+ };
24
+ ```
25
+
26
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)