Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release candidate #252

Merged
merged 100 commits into from
Nov 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
100 commits
Select commit Hold shift + click to select a range
fdbfeb4
changes to validateVoucher
p-zielinski Aug 24, 2023
4ded331
simple validations tests
p-zielinski Aug 24, 2023
6b57f8b
changelog
p-zielinski Aug 25, 2023
88a7a89
Update tidy-comics-hear.md
p-zielinski Aug 25, 2023
f869c79
node 16.20
p-zielinski Aug 25, 2023
f3a409f
node 16
p-zielinski Aug 25, 2023
b4ef41b
requested changes
p-zielinski Aug 25, 2023
9d8cb56
Update tidy-comics-hear.md
p-zielinski Aug 25, 2023
943f410
add listGiftCardTransactions method
weronika-kurczyna Sep 5, 2023
9a4f325
Add tests for List Gift Card Transactions
weronika-kurczyna Sep 5, 2023
fa8023b
export gift card transactions
weronika-kurczyna Sep 6, 2023
0ed1eed
add tests for List Gift Card Transactions Export
weronika-kurczyna Sep 6, 2023
009dc13
add enum to source in DataObject
weronika-kurczyna Sep 6, 2023
e8ae6ca
Update Vouchers.ts
weronika-kurczyna Sep 6, 2023
a9b0cad
Update new-endpoints-vouchers.md
weronika-kurczyna Sep 6, 2023
70de318
Update new-endpoints-vouchers.md
weronika-kurczyna Sep 6, 2023
7dfd589
add loyalty card to type enum
weronika-kurczyna Sep 7, 2023
d3d48e2
Update Vouchers.ts
weronika-kurczyna Sep 7, 2023
366a09e
Update Vouchers.ts
weronika-kurczyna Sep 7, 2023
7e62f9f
Delete CHANGESET-TAMPLATE.md
p-zielinski Sep 15, 2023
64637a8
done
p-zielinski Sep 15, 2023
d6c17a7
naming
p-zielinski Sep 17, 2023
831fb6b
fix naming
weronika-kurczyna Sep 25, 2023
6e14f30
create changeset
weronika-kurczyna Sep 25, 2023
2de7941
Merge branch 'main' into wk/types-001
weronika-kurczyna Sep 25, 2023
64e9d44
add type for each transaction type
weronika-kurczyna Sep 26, 2023
261249c
Update Vouchers.ts
weronika-kurczyna Sep 26, 2023
b61bb0d
update loyalties and rewards types
weronika-kurczyna Oct 10, 2023
c0ead0a
Add WithRequiredProperty and Required
weronika-kurczyna Oct 11, 2023
f34564b
fix methods regarding reward assignments
weronika-kurczyna Oct 11, 2023
0b0535c
Update Rewards.ts
weronika-kurczyna Oct 11, 2023
6388d80
update changeset
weronika-kurczyna Oct 12, 2023
1e5b0a8
starting point
p-zielinski Oct 12, 2023
83941bb
done?
p-zielinski Oct 12, 2023
6b7e3e9
types
p-zielinski Oct 12, 2023
994eb7f
Merge branch 'main' into pz/types-012
p-zielinski Oct 12, 2023
106db3e
test fix
p-zielinski Oct 12, 2023
3ec15a4
Update PromotionsStacks.ts
p-zielinski Oct 12, 2023
704babf
add get assignment method to rewards
weronika-kurczyna Oct 16, 2023
fc02cc1
restore old interfaces
weronika-kurczyna Oct 16, 2023
a49a18b
Update tidy-comics-ironman.md
weronika-kurczyna Oct 16, 2023
b62779f
Merge branch 'wk/pz-types-006new' of https://github.com/p-zielinski/v…
weronika-kurczyna Oct 16, 2023
b554fe0
Update Loyalties.ts
weronika-kurczyna Oct 16, 2023
e51a256
Update Rewards.ts
weronika-kurczyna Oct 16, 2023
d3e9d5c
Merge branch 'voucherifyio:main' into wk/types-001
weronika-kurczyna Oct 16, 2023
a77b532
list transactions - fix order and naming of types
weronika-kurczyna Oct 17, 2023
2f6c6f4
export voucher transactions
weronika-kurczyna Oct 17, 2023
54db76d
change structure to domain and 0-level types
weronika-kurczyna Oct 17, 2023
277d86d
Update bright-mirrors-clean.md
weronika-kurczyna Oct 17, 2023
739ccf7
add list rules assignments
weronika-kurczyna Oct 18, 2023
13063b3
change to required
weronika-kurczyna Oct 18, 2023
550e533
update changeset
weronika-kurczyna Oct 18, 2023
9ced6b5
tests for rewards
weronika-kurczyna Oct 18, 2023
2e3e029
add validation_rules to coin reward creation
weronika-kurczyna Oct 18, 2023
d12a25d
update changeset
weronika-kurczyna Oct 18, 2023
514bd00
update responses
weronika-kurczyna Oct 18, 2023
ea218d4
update response for get rewardassignments in loyalty
weronika-kurczyna Oct 18, 2023
cfdcf1c
get rid of old reward assignment
weronika-kurczyna Oct 19, 2023
bbf3b16
change RewardAssignmentResponseData to RewardAssignmentCreated
weronika-kurczyna Oct 19, 2023
e58cecd
revert changes from b4ef41b
weronika-kurczyna Oct 19, 2023
99f64e4
Revert "node 16.20"
weronika-kurczyna Oct 19, 2023
9ffa158
revert changes from 6b57f8b
weronika-kurczyna Oct 19, 2023
1e1094e
revert changes from 4ded331
weronika-kurczyna Oct 19, 2023
4799283
revert changes from fdbfeb4
weronika-kurczyna Oct 19, 2023
0dcb549
tests fix
weronika-kurczyna Oct 19, 2023
73ea639
change response data to created
weronika-kurczyna Oct 19, 2023
7468414
avoid renaming methods
weronika-kurczyna Oct 20, 2023
1f0e99e
reformat prettier
weronika-kurczyna Oct 20, 2023
385040f
prettier
weronika-kurczyna Oct 20, 2023
d29e2e7
Update tidy-comics-ironman.md
weronika-kurczyna Oct 20, 2023
28808d7
fix doc url
weronika-kurczyna Oct 20, 2023
fe9268a
update url
weronika-kurczyna Oct 20, 2023
53b78c5
fix urls
weronika-kurczyna Oct 20, 2023
5e3acbc
fix
p-zielinski Oct 25, 2023
d83954d
Update po-pis-po.md
p-zielinski Oct 25, 2023
58073c2
Revert "Update po-pis-po.md"
p-zielinski Oct 25, 2023
521b465
Revert "fix"
p-zielinski Oct 25, 2023
eb500e3
remove utility types
p-zielinski Oct 25, 2023
0faa71d
do not use some of the domain types
weronika-kurczyna Oct 25, 2023
04a8297
Update Rewards.ts
weronika-kurczyna Oct 26, 2023
72be6bb
Update Loyalties.ts
weronika-kurczyna Oct 26, 2023
ca69c32
update changeset
weronika-kurczyna Oct 26, 2023
bd9f12b
Update CONTRIBUTING.md
weronika-kurczyna Oct 26, 2023
73265fa
Update CONTRIBUTING.md
weronika-kurczyna Oct 26, 2023
07c53cb
Update CONTRIBUTING.md
weronika-kurczyna Oct 26, 2023
0c8e6a1
Update CONTRIBUTING.md
weronika-kurczyna Oct 26, 2023
682f18c
Update CONTRIBUTING.md
weronika-kurczyna Oct 26, 2023
295b00c
Update Vouchers.ts
weronika-kurczyna Oct 26, 2023
5b7bcd0
fix validation rules assignments
weronika-kurczyna Oct 26, 2023
4466ce2
Update bright-mirrors-clean.md
weronika-kurczyna Oct 26, 2023
d11ace4
update spacing
weronika-kurczyna Oct 27, 2023
2868ea9
do not use RewardItem
weronika-kurczyna Oct 27, 2023
3cf0363
dome
p-zielinski Oct 30, 2023
19b8c0b
Merge branch 'remove-CHANGESET-TAMPLATE' into release-candidate
p-zielinski Oct 30, 2023
5469276
Merge branch 'wk/types-001' into release-candidate
p-zielinski Oct 30, 2023
7ddd089
Merge branch 'pz/types-012' into release-candidate
p-zielinski Oct 30, 2023
6db0eea
Merge branch 'wk/pz-types-006new' into release-candidate
p-zielinski Oct 30, 2023
0d6e2ce
Merge branch 'wk/update-contributing' into release-candidate
p-zielinski Oct 30, 2023
a175f49
Merge branch 'pz/categories-patch' into release-candidate
p-zielinski Oct 30, 2023
e84587d
updated contributing changelog
p-zielinski Oct 30, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
85 changes: 85 additions & 0 deletions .changeset/bright-comics-ironman.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
---
'@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`
9 changes: 0 additions & 9 deletions CHANGESET-TAMPLATE.md

This file was deleted.

Loading