@handsondigital/idplugger-promotion 2.0.2 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +11 -3
- package/README.md +15 -5
- package/api.ts +1083 -415
- package/dist/api.d.ts +887 -309
- package/dist/api.js +376 -182
- package/docs/AwardedsSearch200Response.md +1 -1
- package/docs/AwardedsSearch200ResponseContentInner.md +48 -0
- package/docs/AwardedsSearch200ResponseContentInnerAllOfAwardedState.md +22 -0
- package/docs/AwardedsStates200Response.md +1 -1
- package/docs/Coupon.md +0 -2
- package/docs/CouponsApi.md +83 -0
- package/docs/CouponsCreateRequest.md +1 -1
- package/docs/CouponsCreateRequestCouponsInner.md +38 -0
- package/docs/InstantAward.md +38 -0
- package/docs/InstantAwardAttempts200Response.md +26 -0
- package/docs/InstantAwardAttempts200ResponseContent.md +24 -0
- package/docs/InstantAwardAttempts400Response.md +26 -0
- package/docs/InstantAwardAttempts401Response.md +20 -0
- package/docs/InstantAwardTryToWin200Response.md +28 -0
- package/docs/InstantAwardsApi.md +119 -0
- package/docs/Me200Response.md +2 -0
- package/docs/User.md +0 -2
- package/docs/UserWebhookSuccess.md +1 -1
- package/docs/UsersCreateRequest.md +1 -1
- package/docs/UsersIndex200Response.md +1 -1
- package/docs/UsersIndex200ResponseContentInner.md +56 -0
- package/docs/UsersUpdate201Response.md +1 -1
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -31,10 +31,11 @@ docs/Award.md
|
|
|
31
31
|
docs/Awarded.md
|
|
32
32
|
docs/AwardedsApi.md
|
|
33
33
|
docs/AwardedsSearch200Response.md
|
|
34
|
+
docs/AwardedsSearch200ResponseContentInner.md
|
|
35
|
+
docs/AwardedsSearch200ResponseContentInnerAllOfAwardedState.md
|
|
34
36
|
docs/AwardedsSearch400Response.md
|
|
35
37
|
docs/AwardedsSearch401Response.md
|
|
36
38
|
docs/AwardedsStates200Response.md
|
|
37
|
-
docs/AwardedsStates200ResponseContentInner.md
|
|
38
39
|
docs/AwardedsUpdate200Response.md
|
|
39
40
|
docs/AwardedsUpdate400Response.md
|
|
40
41
|
docs/AwardedsUpdate401Response.md
|
|
@@ -99,6 +100,7 @@ docs/CouponsCreate200Response.md
|
|
|
99
100
|
docs/CouponsCreate401Response.md
|
|
100
101
|
docs/CouponsCreate409Response.md
|
|
101
102
|
docs/CouponsCreateRequest.md
|
|
103
|
+
docs/CouponsCreateRequestCouponsInner.md
|
|
102
104
|
docs/CouponsDelete200Response.md
|
|
103
105
|
docs/CouponsDelete400Response.md
|
|
104
106
|
docs/CouponsDelete401Response.md
|
|
@@ -106,7 +108,6 @@ docs/CouponsUpdate201Response.md
|
|
|
106
108
|
docs/CouponsUpdate401Response.md
|
|
107
109
|
docs/CouponsUpdate409Response.md
|
|
108
110
|
docs/CuponsWebhookRequest.md
|
|
109
|
-
docs/DefaultApi.md
|
|
110
111
|
docs/DocumentRulesApi.md
|
|
111
112
|
docs/DocumentRulesIndex200Response.md
|
|
112
113
|
docs/DocumentRulesIndex200ResponseContent.md
|
|
@@ -139,7 +140,13 @@ docs/FaqUpdate401Response.md
|
|
|
139
140
|
docs/FilesApi.md
|
|
140
141
|
docs/FilesShow200Response.md
|
|
141
142
|
docs/FilesShow400Response.md
|
|
142
|
-
docs/
|
|
143
|
+
docs/InstantAward.md
|
|
144
|
+
docs/InstantAwardAttempts200Response.md
|
|
145
|
+
docs/InstantAwardAttempts200ResponseContent.md
|
|
146
|
+
docs/InstantAwardAttempts400Response.md
|
|
147
|
+
docs/InstantAwardAttempts401Response.md
|
|
148
|
+
docs/InstantAwardTryToWin200Response.md
|
|
149
|
+
docs/InstantAwardsApi.md
|
|
143
150
|
docs/Login200Response.md
|
|
144
151
|
docs/Login401Response.md
|
|
145
152
|
docs/LoginRequest.md
|
|
@@ -261,6 +268,7 @@ docs/UsersDelete200Response.md
|
|
|
261
268
|
docs/UsersDelete400Response.md
|
|
262
269
|
docs/UsersDelete401Response.md
|
|
263
270
|
docs/UsersIndex200Response.md
|
|
271
|
+
docs/UsersIndex200ResponseContentInner.md
|
|
264
272
|
docs/UsersUpdate201Response.md
|
|
265
273
|
docs/UsersWebhook200Response.md
|
|
266
274
|
docs/UsersWebhookRequest.md
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @handsondigital/idplugger-promotion@2.0.
|
|
1
|
+
## @handsondigital/idplugger-promotion@2.0.4
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @handsondigital/idplugger-promotion@2.0.
|
|
39
|
+
npm install @handsondigital/idplugger-promotion@2.0.4 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -79,7 +79,7 @@ Class | Method | HTTP request | Description
|
|
|
79
79
|
*CouponsApi* | [**couponsIndex**](docs/CouponsApi.md#couponsindex) | **GET** /v3/promotion/{promotion_id}/users/{user_id}/coupons | Busca por cupons de um usuário cadastrado na promoção
|
|
80
80
|
*CouponsApi* | [**couponsUpdate**](docs/CouponsApi.md#couponsupdate) | **PATCH** /v3/promotion/{promotion_id}/users/{user_id}/coupons | Cadastra ou atualiza um cupom para um usuário cadastrado na promoção
|
|
81
81
|
*CouponsApi* | [**cuponsWebhook**](docs/CouponsApi.md#cuponswebhook) | **POST** /webhook-do-cupom | Webhook de resposta ao registro de cupons
|
|
82
|
-
*
|
|
82
|
+
*CouponsApi* | [**v3PromotionPromotionIdCouponsGet**](docs/CouponsApi.md#v3promotionpromotionidcouponsget) | **GET** /v3/promotion/{promotion_id}/coupons | Buscar cupons de uma promoção
|
|
83
83
|
*DocumentRulesApi* | [**documentRulesIndex**](docs/DocumentRulesApi.md#documentrulesindex) | **GET** /v3/promotion/{promotion_id}/cms/document_rules | Termos de uso, regulamentos e política de privacidade da promoção
|
|
84
84
|
*DocumentRulesApi* | [**documentRulesRegulationDelete**](docs/DocumentRulesApi.md#documentrulesregulationdelete) | **DELETE** /v3/promotion/{promotion_id}/cms/document_rules/regulation/{regulation_id} | Exclui um regulamento da promoção
|
|
85
85
|
*DocumentRulesApi* | [**documentRulesUpdate**](docs/DocumentRulesApi.md#documentrulesupdate) | **POST** /v3/promotion/{promotion_id}/cms/document_rules | Atualiza os termos de uso e regulamento da promoção
|
|
@@ -88,6 +88,8 @@ Class | Method | HTTP request | Description
|
|
|
88
88
|
*FAQApi* | [**faqIndex**](docs/FAQApi.md#faqindex) | **GET** /v3/promotion/{promotion_id}/cms/faq | Lista as perguntas frequentes cadastradas na promoção
|
|
89
89
|
*FAQApi* | [**faqUpdate**](docs/FAQApi.md#faqupdate) | **PATCH** /v3/promotion/{promotion_id}/cms/faq | Cadastra ou atualiza perguntas frequentes na promoção
|
|
90
90
|
*FilesApi* | [**filesShow**](docs/FilesApi.md#filesshow) | **GET** /v3/promotion/{promotion_id}/files/{filename} | Faz o download de um arquivo
|
|
91
|
+
*InstantAwardsApi* | [**instantAwardAttempts**](docs/InstantAwardsApi.md#instantawardattempts) | **GET** /v3/promotion/{promotion_id}/users/{user_id}/attempts | Retorna a quantidade de chances usadas e restantes de um participante da promoção
|
|
92
|
+
*InstantAwardsApi* | [**instantAwardTryToWin**](docs/InstantAwardsApi.md#instantawardtrytowin) | **POST** /v3/promotion/{promotion_id}/users/{user_id}/try_to_win | Realiza a tentativa de ganho de um prêmio instantâneo para o participante da promoção
|
|
91
93
|
*LuckyNumbersApi* | [**luckyNumbersAddCustom**](docs/LuckyNumbersApi.md#luckynumbersaddcustom) | **POST** /v3/promotion/{promotion_id}/lucky_numbers | Cadastra Números da Sorte no repositório da promoção
|
|
92
94
|
*LuckyNumbersApi* | [**luckyNumbersRemove**](docs/LuckyNumbersApi.md#luckynumbersremove) | **POST** /v3/promotion/{promotion_id}/users/{user_id}/lucky_numbers/remove | Inativa e remove Números da Sorte cadastrados na promoção
|
|
93
95
|
*LuckyNumbersApi* | [**luckyNumbersSearch**](docs/LuckyNumbersApi.md#luckynumberssearch) | **GET** /v3/promotion/{promotion_id}/users/{user_id}/lucky_numbers | Busca por Números da Sorte de um usuário cadastrado na promoção
|
|
@@ -146,10 +148,11 @@ Class | Method | HTTP request | Description
|
|
|
146
148
|
- [Award](docs/Award.md)
|
|
147
149
|
- [Awarded](docs/Awarded.md)
|
|
148
150
|
- [AwardedsSearch200Response](docs/AwardedsSearch200Response.md)
|
|
151
|
+
- [AwardedsSearch200ResponseContentInner](docs/AwardedsSearch200ResponseContentInner.md)
|
|
152
|
+
- [AwardedsSearch200ResponseContentInnerAllOfAwardedState](docs/AwardedsSearch200ResponseContentInnerAllOfAwardedState.md)
|
|
149
153
|
- [AwardedsSearch400Response](docs/AwardedsSearch400Response.md)
|
|
150
154
|
- [AwardedsSearch401Response](docs/AwardedsSearch401Response.md)
|
|
151
155
|
- [AwardedsStates200Response](docs/AwardedsStates200Response.md)
|
|
152
|
-
- [AwardedsStates200ResponseContentInner](docs/AwardedsStates200ResponseContentInner.md)
|
|
153
156
|
- [AwardedsUpdate200Response](docs/AwardedsUpdate200Response.md)
|
|
154
157
|
- [AwardedsUpdate400Response](docs/AwardedsUpdate400Response.md)
|
|
155
158
|
- [AwardedsUpdate401Response](docs/AwardedsUpdate401Response.md)
|
|
@@ -209,6 +212,7 @@ Class | Method | HTTP request | Description
|
|
|
209
212
|
- [CouponsCreate401Response](docs/CouponsCreate401Response.md)
|
|
210
213
|
- [CouponsCreate409Response](docs/CouponsCreate409Response.md)
|
|
211
214
|
- [CouponsCreateRequest](docs/CouponsCreateRequest.md)
|
|
215
|
+
- [CouponsCreateRequestCouponsInner](docs/CouponsCreateRequestCouponsInner.md)
|
|
212
216
|
- [CouponsDelete200Response](docs/CouponsDelete200Response.md)
|
|
213
217
|
- [CouponsDelete400Response](docs/CouponsDelete400Response.md)
|
|
214
218
|
- [CouponsDelete401Response](docs/CouponsDelete401Response.md)
|
|
@@ -245,7 +249,12 @@ Class | Method | HTTP request | Description
|
|
|
245
249
|
- [FaqUpdate401Response](docs/FaqUpdate401Response.md)
|
|
246
250
|
- [FilesShow200Response](docs/FilesShow200Response.md)
|
|
247
251
|
- [FilesShow400Response](docs/FilesShow400Response.md)
|
|
248
|
-
- [
|
|
252
|
+
- [InstantAward](docs/InstantAward.md)
|
|
253
|
+
- [InstantAwardAttempts200Response](docs/InstantAwardAttempts200Response.md)
|
|
254
|
+
- [InstantAwardAttempts200ResponseContent](docs/InstantAwardAttempts200ResponseContent.md)
|
|
255
|
+
- [InstantAwardAttempts400Response](docs/InstantAwardAttempts400Response.md)
|
|
256
|
+
- [InstantAwardAttempts401Response](docs/InstantAwardAttempts401Response.md)
|
|
257
|
+
- [InstantAwardTryToWin200Response](docs/InstantAwardTryToWin200Response.md)
|
|
249
258
|
- [Login200Response](docs/Login200Response.md)
|
|
250
259
|
- [Login401Response](docs/Login401Response.md)
|
|
251
260
|
- [LoginRequest](docs/LoginRequest.md)
|
|
@@ -357,6 +366,7 @@ Class | Method | HTTP request | Description
|
|
|
357
366
|
- [UsersDelete400Response](docs/UsersDelete400Response.md)
|
|
358
367
|
- [UsersDelete401Response](docs/UsersDelete401Response.md)
|
|
359
368
|
- [UsersIndex200Response](docs/UsersIndex200Response.md)
|
|
369
|
+
- [UsersIndex200ResponseContentInner](docs/UsersIndex200ResponseContentInner.md)
|
|
360
370
|
- [UsersUpdate201Response](docs/UsersUpdate201Response.md)
|
|
361
371
|
- [UsersWebhook200Response](docs/UsersWebhook200Response.md)
|
|
362
372
|
- [UsersWebhookRequest](docs/UsersWebhookRequest.md)
|