Skip to content

Commit

Permalink
Version Packages (#253)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] authored Nov 2, 2023
1 parent 3842629 commit 4d7c041
Show file tree
Hide file tree
Showing 5 changed files with 108 additions and 88 deletions.
85 changes: 0 additions & 85 deletions .changeset/bright-comics-ironman.md

This file was deleted.

7 changes: 7 additions & 0 deletions packages/react-widget/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @voucherify/react-widget

## 2.6.0

### Patch Changes

- Updated dependencies [[`8a3bead`](https://github.com/voucherifyio/voucherify-js-sdk/commit/8a3bead11809f676778d53dddd0ef49f6f17358d)]:
- @voucherify/sdk@2.6.0

## 2.5.0

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/react-widget/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@voucherify/react-widget",
"version": "2.5.0",
"version": "2.6.0",
"description": "Official Voucherify React Widget",
"author": "Voucherify",
"license": "MIT",
Expand Down Expand Up @@ -39,7 +39,7 @@
"react-dom": "^17.0.0"
},
"dependencies": {
"@voucherify/sdk": "2.5.0"
"@voucherify/sdk": "2.6.0"
},
"devDependencies": {
"@types/react": "^17.0.0",
Expand Down
98 changes: 98 additions & 0 deletions packages/sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,103 @@
# @voucherify/sdk

## 2.6.0

### Minor Changes

- [`8a3bead`](https://github.com/voucherifyio/voucherify-js-sdk/commit/8a3bead11809f676778d53dddd0ef49f6f17358d) [#252](https://github.com/voucherifyio/voucherify-js-sdk/pull/252) Thanks [@p-zielinski](https://github.com/p-zielinski)! - Added support for new endpoints and adding missing types in Rewards API.

Added support for new endpoints:

- `/loyalties/{campaignId}/rewards/{assignmentId}`,
- `/loyalties/{campaignId}/tiers/{tierId}/rewards`,
- `/rewards/{rewardId}/assignments/{assignmentId}` (example available in readme.md)

New exported types/interfaces in `Loyalties.ts`:
Domain types:

- LoyaltyTierRewardItemParameters,
- LoyaltyTierRewardItemCampaignParameters,
- LoyaltyTierRewardItemCoinParameters,
- LoyaltyTierRewardItemMaterialParameters,
- LoyaltyTierRewardItemCampaignDiscountCoupons,
- LoyaltyTierRewardItemCampaignGiftVouchersAndLoyaltyProgram

0-level types:

- LoyaltiesGetRewardAssignmentResponseBody,
- LoyaltiesListLoyaltyTierRewardsResponseBody

New exported types/interfaces in `Rewards.ts`:
Domain types:

- RewardAssignment (old `RewardsAssignmentObject`),
- RewardsAssignmentCampaignOrMaterialReward,
- RewardsAssignmentCoinReward
-

0-level types:

- RewardsListAssignmentsRequestQuery (old `RewardsListAssignmentsParams`),
- RewardsListAssignmentsResponseBody (old `RewardsListAssignmentsResponse`),
- RewardsCreateAssignmentRequestBody (old `RewardsCreateAssignment`),
- RewardsCreateAssignmentCoinRewardRequestBody,
- RewardsCreateAssignmentCampaignOrMaterialRewardRequestBody,
- RewardsCreateAssignmentResponseBody (old `RewardsCreateAssignmentResponse`),
- RewardsUpdateAssignmentRequestBody (old `RewardsUpdateAssignment`),
- RewardsUpdateAssignmentResponseBody (old `RewardsUpdateAssignmentResponse`)
- RewardsGetAssignmentResponseBody (brand new)

***

Added support for following endpoints:

- GET /vouchers/{code}/transactions (client.vouchers.listTransactions(code, query))
- POST /vouchers/{code}/transactions/export (client.vouchers.exportTransactions(code, body))
- GET /validation-rules-assignments (client.client.validationRules.listRulesAssignments(validationRuleId))

**New exported types/interfaces**
Domain types:

- GiftCardTransaction
- GiftCardTransactionBase
GiftCardTransactionDetails
- GiftCardTransactionRedemptionDetails
- GiftCardTransactionRefundDetails
- GiftCardTransactionAdditionDetails
- GiftCardTransactionRemovalDetails
- VoucherTransaction
- VoucherTransactionsExportFields
- ValidationRulesAssignment

0-level types:

- VouchersListTransactionsRequestQuery
- VouchersListTransactionsResponseBody
- VouchersExportTransactionsRequestBody
- VouchersExportTransactionsResponseBody
- ValidationRulesListRulesAssignmentsRequestQuery
- ValidationRulesListRulesAssignmentsResponseBody

**Other changes**

- Use `VouchersExportTransactionsRequestBody` as `LoyaltiesExportCardTransactionsRequestBody` (these types are identical, both related to the export of loyalty card transactions)
- Use `VouchersExportTransactionsResponseBody` as `LoyaltiesExportCardTransactionsResponseBody` (these types are identical, both related to the export of loyalty card transactions)

***

New exported types/interfaces in `Categories.ts`:

- CategoriesListRequestQuery

Added support for query parameters(CategoriesListRequestQuery) in `/categories` (categories.list method)

***

Add support for few endpoints of Loyalties API:

- Added support for new endpoints: `GET /promotions/{campaignId}/stacks`, `GET /promotions/{campaignId}/stacks`, `GET PUT DELETE /promotions/{campaignId}/stacks/{stackId}`, `GET /promotions/stacks` [(examples of usage available in readme.md)](..%2F..%2Fpackages%2Fsdk%2FREADME.md)
- New exported types/interfaces: `PromotionsStacksListInCampaignResponseBody`, `PromotionsStacksListResponseBody`, `PromotionsStacksListRequestQuery`, `PromotionsStacksGetResponseBody`, `PromotionsStacksUpdateRequestBody`, `PromotionsStacksUpdateResponseBody`, `PromotionsStacksCreateInCampaignRequestBody`, `PromotionsStacksCreateInCampaignResponseBody`, `PromotionStackBase`, `PromotionStack`

## 2.5.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@voucherify/sdk",
"version": "2.5.0",
"version": "2.6.0",
"description": "Official Voucherify JS SDK",
"author": "Voucherify",
"license": "MIT",
Expand Down

0 comments on commit 4d7c041

Please sign in to comment.