From 4d7c04127faea5b03dea5132fee53388f61e345a Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 2 Nov 2023 13:14:24 +0100 Subject: [PATCH] Version Packages (#253) Co-authored-by: github-actions[bot] --- .changeset/bright-comics-ironman.md | 85 ------------------------- packages/react-widget/CHANGELOG.md | 7 +++ packages/react-widget/package.json | 4 +- packages/sdk/CHANGELOG.md | 98 +++++++++++++++++++++++++++++ packages/sdk/package.json | 2 +- 5 files changed, 108 insertions(+), 88 deletions(-) delete mode 100644 .changeset/bright-comics-ironman.md diff --git a/.changeset/bright-comics-ironman.md b/.changeset/bright-comics-ironman.md deleted file mode 100644 index d019988c9..000000000 --- a/.changeset/bright-comics-ironman.md +++ /dev/null @@ -1,85 +0,0 @@ ---- -'@voucherify/sdk': minor ---- - -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` diff --git a/packages/react-widget/CHANGELOG.md b/packages/react-widget/CHANGELOG.md index ad501fa05..2c11c214d 100644 --- a/packages/react-widget/CHANGELOG.md +++ b/packages/react-widget/CHANGELOG.md @@ -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 diff --git a/packages/react-widget/package.json b/packages/react-widget/package.json index 3d60710e0..c7d433bd9 100644 --- a/packages/react-widget/package.json +++ b/packages/react-widget/package.json @@ -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", @@ -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", diff --git a/packages/sdk/CHANGELOG.md b/packages/sdk/CHANGELOG.md index d1539af4a..3bb6e636b 100644 --- a/packages/sdk/CHANGELOG.md +++ b/packages/sdk/CHANGELOG.md @@ -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 diff --git a/packages/sdk/package.json b/packages/sdk/package.json index 13863ee23..0ae03941e 100644 --- a/packages/sdk/package.json +++ b/packages/sdk/package.json @@ -1,6 +1,6 @@ { "name": "@voucherify/sdk", - "version": "2.5.0", + "version": "2.6.0", "description": "Official Voucherify JS SDK", "author": "Voucherify", "license": "MIT",