@handsondigital/idplugger-admin 2.6.2 → 2.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,351 @@
1
+ # ConfigsApi
2
+
3
+ All URIs are relative to *https://api.idplugger.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**adminPromotionConfigsIndex**](#adminpromotionconfigsindex) | **GET** /v3/admin/promotion/{promotion_id}/configs | Listar configurações de uma promoção|
8
+ |[**adminPromotionConfigsShow**](#adminpromotionconfigsshow) | **GET** /v3/admin/promotion/{promotion_id}/configs/{key} | Buscar configuração por chave|
9
+ |[**adminPromotionConfigsStore**](#adminpromotionconfigsstore) | **POST** /v3/admin/promotion/{promotion_id}/configs | Criar nova configuração|
10
+ |[**adminPromotionConfigsUpdate**](#adminpromotionconfigsupdate) | **PUT** /v3/admin/promotion/{promotion_id}/configs/{key} | Atualizar configuração por chave|
11
+ |[**adminPromotionConfigsUpsert**](#adminpromotionconfigsupsert) | **POST** /v3/admin/promotion/{promotion_id}/configs/upsert | Criar ou atualizar configuração por chave (upsert)|
12
+ |[**adminPromotionConfigsValidKeys**](#adminpromotionconfigsvalidkeys) | **GET** /v3/admin/promotion/{promotion_id}/configs/valid-keys | Listar chaves válidas do ConfigKeyEnum|
13
+
14
+ # **adminPromotionConfigsIndex**
15
+ > AdminPromotionConfigsIndex200Response adminPromotionConfigsIndex()
16
+
17
+
18
+ ### Example
19
+
20
+ ```typescript
21
+ import {
22
+ ConfigsApi,
23
+ Configuration
24
+ } from '@handsondigital/idplugger-admin';
25
+
26
+ const configuration = new Configuration();
27
+ const apiInstance = new ConfigsApi(configuration);
28
+
29
+ let promotionId: string; //UUID da promoção (default to undefined)
30
+ let key: string; //Filtrar por chave (busca parcial) (optional) (default to undefined)
31
+ let grupo: string; //Filtrar por grupo (optional) (default to undefined)
32
+ let type: 'text' | 'uuid' | 'html' | 'url' | 'path_url' | 'integer' | 'double' | 'file' | 'json' | 'date' | 'datetime'; //Filtrar por tipo (optional) (default to undefined)
33
+ let perPage: number; //Itens por página (optional) (default to 15)
34
+ let page: number; //Número da página (optional) (default to 1)
35
+
36
+ const { status, data } = await apiInstance.adminPromotionConfigsIndex(
37
+ promotionId,
38
+ key,
39
+ grupo,
40
+ type,
41
+ perPage,
42
+ page
43
+ );
44
+ ```
45
+
46
+ ### Parameters
47
+
48
+ |Name | Type | Description | Notes|
49
+ |------------- | ------------- | ------------- | -------------|
50
+ | **promotionId** | [**string**] | UUID da promoção | defaults to undefined|
51
+ | **key** | [**string**] | Filtrar por chave (busca parcial) | (optional) defaults to undefined|
52
+ | **grupo** | [**string**] | Filtrar por grupo | (optional) defaults to undefined|
53
+ | **type** | [**&#39;text&#39; | &#39;uuid&#39; | &#39;html&#39; | &#39;url&#39; | &#39;path_url&#39; | &#39;integer&#39; | &#39;double&#39; | &#39;file&#39; | &#39;json&#39; | &#39;date&#39; | &#39;datetime&#39;**]**Array<&#39;text&#39; &#124; &#39;uuid&#39; &#124; &#39;html&#39; &#124; &#39;url&#39; &#124; &#39;path_url&#39; &#124; &#39;integer&#39; &#124; &#39;double&#39; &#124; &#39;file&#39; &#124; &#39;json&#39; &#124; &#39;date&#39; &#124; &#39;datetime&#39;>** | Filtrar por tipo | (optional) defaults to undefined|
54
+ | **perPage** | [**number**] | Itens por página | (optional) defaults to 15|
55
+ | **page** | [**number**] | Número da página | (optional) defaults to 1|
56
+
57
+
58
+ ### Return type
59
+
60
+ **AdminPromotionConfigsIndex200Response**
61
+
62
+ ### Authorization
63
+
64
+ [bearerAuth](../README.md#bearerAuth)
65
+
66
+ ### HTTP request headers
67
+
68
+ - **Content-Type**: Not defined
69
+ - **Accept**: application/json
70
+
71
+
72
+ ### HTTP response details
73
+ | Status code | Description | Response headers |
74
+ |-------------|-------------|------------------|
75
+ |**200** | success | - |
76
+ |**500** | failed | - |
77
+
78
+ [[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)
79
+
80
+ # **adminPromotionConfigsShow**
81
+ > AdminPromotionConfigsShow200Response adminPromotionConfigsShow()
82
+
83
+
84
+ ### Example
85
+
86
+ ```typescript
87
+ import {
88
+ ConfigsApi,
89
+ Configuration
90
+ } from '@handsondigital/idplugger-admin';
91
+
92
+ const configuration = new Configuration();
93
+ const apiInstance = new ConfigsApi(configuration);
94
+
95
+ let promotionId: string; //UUID da promoção (default to undefined)
96
+ let key: string; //Chave da configuração (default to undefined)
97
+
98
+ const { status, data } = await apiInstance.adminPromotionConfigsShow(
99
+ promotionId,
100
+ key
101
+ );
102
+ ```
103
+
104
+ ### Parameters
105
+
106
+ |Name | Type | Description | Notes|
107
+ |------------- | ------------- | ------------- | -------------|
108
+ | **promotionId** | [**string**] | UUID da promoção | defaults to undefined|
109
+ | **key** | [**string**] | Chave da configuração | defaults to undefined|
110
+
111
+
112
+ ### Return type
113
+
114
+ **AdminPromotionConfigsShow200Response**
115
+
116
+ ### Authorization
117
+
118
+ [bearerAuth](../README.md#bearerAuth)
119
+
120
+ ### HTTP request headers
121
+
122
+ - **Content-Type**: Not defined
123
+ - **Accept**: application/json
124
+
125
+
126
+ ### HTTP response details
127
+ | Status code | Description | Response headers |
128
+ |-------------|-------------|------------------|
129
+ |**200** | success | - |
130
+ |**404** | not found | - |
131
+
132
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
133
+
134
+ # **adminPromotionConfigsStore**
135
+ > AdminPromotionConfigsStore201Response adminPromotionConfigsStore(adminPromotionConfigsStoreRequest)
136
+
137
+
138
+ ### Example
139
+
140
+ ```typescript
141
+ import {
142
+ ConfigsApi,
143
+ Configuration,
144
+ AdminPromotionConfigsStoreRequest
145
+ } from '@handsondigital/idplugger-admin';
146
+
147
+ const configuration = new Configuration();
148
+ const apiInstance = new ConfigsApi(configuration);
149
+
150
+ let promotionId: string; //UUID da promoção (default to undefined)
151
+ let adminPromotionConfigsStoreRequest: AdminPromotionConfigsStoreRequest; //
152
+
153
+ const { status, data } = await apiInstance.adminPromotionConfigsStore(
154
+ promotionId,
155
+ adminPromotionConfigsStoreRequest
156
+ );
157
+ ```
158
+
159
+ ### Parameters
160
+
161
+ |Name | Type | Description | Notes|
162
+ |------------- | ------------- | ------------- | -------------|
163
+ | **adminPromotionConfigsStoreRequest** | **AdminPromotionConfigsStoreRequest**| | |
164
+ | **promotionId** | [**string**] | UUID da promoção | defaults to undefined|
165
+
166
+
167
+ ### Return type
168
+
169
+ **AdminPromotionConfigsStore201Response**
170
+
171
+ ### Authorization
172
+
173
+ [bearerAuth](../README.md#bearerAuth)
174
+
175
+ ### HTTP request headers
176
+
177
+ - **Content-Type**: application/json
178
+ - **Accept**: application/json
179
+
180
+
181
+ ### HTTP response details
182
+ | Status code | Description | Response headers |
183
+ |-------------|-------------|------------------|
184
+ |**201** | success | - |
185
+ |**422** | Validation error | - |
186
+ |**500** | failed | - |
187
+
188
+ [[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)
189
+
190
+ # **adminPromotionConfigsUpdate**
191
+ > AdminPromotionConfigsUpdate200Response adminPromotionConfigsUpdate(adminPromotionConfigsUpdateRequest)
192
+
193
+
194
+ ### Example
195
+
196
+ ```typescript
197
+ import {
198
+ ConfigsApi,
199
+ Configuration,
200
+ AdminPromotionConfigsUpdateRequest
201
+ } from '@handsondigital/idplugger-admin';
202
+
203
+ const configuration = new Configuration();
204
+ const apiInstance = new ConfigsApi(configuration);
205
+
206
+ let promotionId: string; //UUID da promoção (default to undefined)
207
+ let key: string; //Chave da configuração (default to undefined)
208
+ let adminPromotionConfigsUpdateRequest: AdminPromotionConfigsUpdateRequest; //
209
+
210
+ const { status, data } = await apiInstance.adminPromotionConfigsUpdate(
211
+ promotionId,
212
+ key,
213
+ adminPromotionConfigsUpdateRequest
214
+ );
215
+ ```
216
+
217
+ ### Parameters
218
+
219
+ |Name | Type | Description | Notes|
220
+ |------------- | ------------- | ------------- | -------------|
221
+ | **adminPromotionConfigsUpdateRequest** | **AdminPromotionConfigsUpdateRequest**| | |
222
+ | **promotionId** | [**string**] | UUID da promoção | defaults to undefined|
223
+ | **key** | [**string**] | Chave da configuração | defaults to undefined|
224
+
225
+
226
+ ### Return type
227
+
228
+ **AdminPromotionConfigsUpdate200Response**
229
+
230
+ ### Authorization
231
+
232
+ [bearerAuth](../README.md#bearerAuth)
233
+
234
+ ### HTTP request headers
235
+
236
+ - **Content-Type**: application/json
237
+ - **Accept**: application/json
238
+
239
+
240
+ ### HTTP response details
241
+ | Status code | Description | Response headers |
242
+ |-------------|-------------|------------------|
243
+ |**200** | success | - |
244
+ |**404** | not found | - |
245
+
246
+ [[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)
247
+
248
+ # **adminPromotionConfigsUpsert**
249
+ > AdminPromotionConfigsUpsert200Response adminPromotionConfigsUpsert(adminPromotionConfigsStoreRequest)
250
+
251
+
252
+ ### Example
253
+
254
+ ```typescript
255
+ import {
256
+ ConfigsApi,
257
+ Configuration,
258
+ AdminPromotionConfigsStoreRequest
259
+ } from '@handsondigital/idplugger-admin';
260
+
261
+ const configuration = new Configuration();
262
+ const apiInstance = new ConfigsApi(configuration);
263
+
264
+ let promotionId: string; //UUID da promoção (default to undefined)
265
+ let adminPromotionConfigsStoreRequest: AdminPromotionConfigsStoreRequest; //
266
+
267
+ const { status, data } = await apiInstance.adminPromotionConfigsUpsert(
268
+ promotionId,
269
+ adminPromotionConfigsStoreRequest
270
+ );
271
+ ```
272
+
273
+ ### Parameters
274
+
275
+ |Name | Type | Description | Notes|
276
+ |------------- | ------------- | ------------- | -------------|
277
+ | **adminPromotionConfigsStoreRequest** | **AdminPromotionConfigsStoreRequest**| | |
278
+ | **promotionId** | [**string**] | UUID da promoção | defaults to undefined|
279
+
280
+
281
+ ### Return type
282
+
283
+ **AdminPromotionConfigsUpsert200Response**
284
+
285
+ ### Authorization
286
+
287
+ [bearerAuth](../README.md#bearerAuth)
288
+
289
+ ### HTTP request headers
290
+
291
+ - **Content-Type**: application/json
292
+ - **Accept**: application/json
293
+
294
+
295
+ ### HTTP response details
296
+ | Status code | Description | Response headers |
297
+ |-------------|-------------|------------------|
298
+ |**200** | success | - |
299
+
300
+ [[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)
301
+
302
+ # **adminPromotionConfigsValidKeys**
303
+ > AdminPromotionConfigsValidKeys200Response adminPromotionConfigsValidKeys()
304
+
305
+
306
+ ### Example
307
+
308
+ ```typescript
309
+ import {
310
+ ConfigsApi,
311
+ Configuration
312
+ } from '@handsondigital/idplugger-admin';
313
+
314
+ const configuration = new Configuration();
315
+ const apiInstance = new ConfigsApi(configuration);
316
+
317
+ let promotionId: string; //UUID da promoção (default to undefined)
318
+
319
+ const { status, data } = await apiInstance.adminPromotionConfigsValidKeys(
320
+ promotionId
321
+ );
322
+ ```
323
+
324
+ ### Parameters
325
+
326
+ |Name | Type | Description | Notes|
327
+ |------------- | ------------- | ------------- | -------------|
328
+ | **promotionId** | [**string**] | UUID da promoção | defaults to undefined|
329
+
330
+
331
+ ### Return type
332
+
333
+ **AdminPromotionConfigsValidKeys200Response**
334
+
335
+ ### Authorization
336
+
337
+ [bearerAuth](../README.md#bearerAuth)
338
+
339
+ ### HTTP request headers
340
+
341
+ - **Content-Type**: Not defined
342
+ - **Accept**: application/json
343
+
344
+
345
+ ### HTTP response details
346
+ | Status code | Description | Response headers |
347
+ |-------------|-------------|------------------|
348
+ |**200** | success | - |
349
+
350
+ [[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)
351
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@handsondigital/idplugger-admin",
3
- "version": "2.6.2",
3
+ "version": "2.7.1",
4
4
  "description": "OpenAPI client for @handsondigital/idplugger-admin",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {