@voucherify/sdk 2.9.1 → 2.9.3
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/dist/voucherifysdk.cjs +2 -0
- package/dist/voucherifysdk.cjs.map +1 -0
- package/dist/voucherifysdk.d.mts +5252 -0
- package/dist/voucherifysdk.d.ts +5252 -0
- package/dist/voucherifysdk.esm.js +2 -2261
- package/dist/voucherifysdk.esm.js.map +1 -1
- package/package.json +12 -8
- package/CHANGELOG.md +0 -657
- package/dist/ApiLimitsHandler.d.ts +0 -10
- package/dist/AsyncActions.d.ts +0 -15
- package/dist/Balance.d.ts +0 -12
- package/dist/Campaigns.d.ts +0 -58
- package/dist/Categories.d.ts +0 -26
- package/dist/ClientSide.d.ts +0 -53
- package/dist/Consents.d.ts +0 -10
- package/dist/Customers.d.ts +0 -72
- package/dist/Distributions.d.ts +0 -22
- package/dist/Events.d.ts +0 -10
- package/dist/Exports.d.ts +0 -22
- package/dist/Loyalties.d.ts +0 -159
- package/dist/MetadataSchemas.d.ts +0 -14
- package/dist/Orders.d.ts +0 -27
- package/dist/ProductCollections.d.ts +0 -26
- package/dist/Products.d.ts +0 -63
- package/dist/PromotionTiers.d.ts +0 -34
- package/dist/Promotions.d.ts +0 -18
- package/dist/PromotionsStacks.d.ts +0 -30
- package/dist/Qualifications.d.ts +0 -10
- package/dist/Redemptions.d.ts +0 -35
- package/dist/RequestController.d.ts +0 -29
- package/dist/Rewards.d.ts +0 -43
- package/dist/Segments.d.ts +0 -22
- package/dist/ValidationRules.d.ts +0 -43
- package/dist/Validations.d.ts +0 -17
- package/dist/VoucherifyClientSide.d.ts +0 -86
- package/dist/VoucherifyError.d.ts +0 -20
- package/dist/VoucherifyServerSide.d.ts +0 -131
- package/dist/Vouchers.d.ts +0 -78
- package/dist/helpers.d.ts +0 -18
- package/dist/index.d.ts +0 -25
- package/dist/types/ApplicableTo.d.ts +0 -30
- package/dist/types/AsyncActions.d.ts +0 -21
- package/dist/types/Balance.d.ts +0 -14
- package/dist/types/Campaigns.d.ts +0 -120
- package/dist/types/Categories.d.ts +0 -38
- package/dist/types/ClientSide.d.ts +0 -134
- package/dist/types/Consents.d.ts +0 -33
- package/dist/types/Customers.d.ts +0 -361
- package/dist/types/DiscountVoucher.d.ts +0 -93
- package/dist/types/Distributions.d.ts +0 -144
- package/dist/types/Events.d.ts +0 -17
- package/dist/types/Exports.d.ts +0 -149
- package/dist/types/Gift.d.ts +0 -3
- package/dist/types/Loyalties.d.ts +0 -1057
- package/dist/types/MetadataSchemas.d.ts +0 -33
- package/dist/types/Orders.d.ts +0 -195
- package/dist/types/ProductCollections.d.ts +0 -96
- package/dist/types/Products.d.ts +0 -106
- package/dist/types/PromotionTiers.d.ts +0 -127
- package/dist/types/Promotions.d.ts +0 -108
- package/dist/types/PromotionsStacks.d.ts +0 -71
- package/dist/types/Qualifications.d.ts +0 -86
- package/dist/types/Redemptions.d.ts +0 -205
- package/dist/types/Rewards.d.ts +0 -219
- package/dist/types/Segments.d.ts +0 -32
- package/dist/types/Stackable.d.ts +0 -101
- package/dist/types/UtilityTypes.d.ts +0 -3
- package/dist/types/ValidateSession.d.ts +0 -17
- package/dist/types/ValidationError.d.ts +0 -7
- package/dist/types/ValidationRules.d.ts +0 -93
- package/dist/types/Validations.d.ts +0 -98
- package/dist/types/Vouchers.d.ts +0 -364
- package/dist/types/index.d.ts +0 -25
- package/dist/voucherifysdk.umd.development.js +0 -2270
- package/dist/voucherifysdk.umd.development.js.map +0 -1
- package/dist/voucherifysdk.umd.production.min.js +0 -2
- package/dist/voucherifysdk.umd.production.min.js.map +0 -1
package/CHANGELOG.md
DELETED
|
@@ -1,657 +0,0 @@
|
|
|
1
|
-
# @voucherify/sdk
|
|
2
|
-
|
|
3
|
-
## 2.9.1
|
|
4
|
-
|
|
5
|
-
### Patch Changes
|
|
6
|
-
|
|
7
|
-
- [`2378764`](https://github.com/voucherifyio/voucherify-js-sdk/commit/23787647c22b31d5ca00908100d941ed27b1cea6) [#288](https://github.com/voucherifyio/voucherify-js-sdk/pull/288) Thanks [@awilczek](https://github.com/awilczek)! - Upgrade axios (CVE)
|
|
8
|
-
|
|
9
|
-
* [`8c843a8`](https://github.com/voucherifyio/voucherify-js-sdk/commit/8c843a82eb8720dc68f9c49baf02ebda1d24999f) [#286](https://github.com/voucherifyio/voucherify-js-sdk/pull/286) Thanks [@p-zielinski](https://github.com/p-zielinski)! - Added missing type properties in voucher.loyalty_card - for example for requesting voucher/loyalty member
|
|
10
|
-
|
|
11
|
-
## 2.9.0
|
|
12
|
-
|
|
13
|
-
### Minor Changes
|
|
14
|
-
|
|
15
|
-
- [`deb0b79`](https://github.com/voucherifyio/voucherify-js-sdk/commit/deb0b79b0e3da2ec5ad9457ba505ec2818f06347) [#282](https://github.com/voucherifyio/voucherify-js-sdk/pull/282) Thanks [@p-zielinski](https://github.com/p-zielinski)! - Support for new endpoints: List Member Activity
|
|
16
|
-
|
|
17
|
-
## 2.8.1
|
|
18
|
-
|
|
19
|
-
### Patch Changes
|
|
20
|
-
|
|
21
|
-
- [`a9ba013`](https://github.com/voucherifyio/voucherify-js-sdk/commit/a9ba013062c560a3a663b1f219f2dcb7ae9a8a7e) [#280](https://github.com/voucherifyio/voucherify-js-sdk/pull/280) Thanks [@p-zielinski](https://github.com/p-zielinski)! - TS fixes (VouchersListTransactionsRequestQuery, LoyaltiesListCardTransactionsRequestQuery, ProductCollectionsCreateRequestBody) - backwards compatible
|
|
22
|
-
|
|
23
|
-
## 2.8.0
|
|
24
|
-
|
|
25
|
-
### Minor Changes
|
|
26
|
-
|
|
27
|
-
- [`2ddd6ec`](https://github.com/voucherifyio/voucherify-js-sdk/commit/2ddd6ec688f3dbc35b301e05f0fa5f6d20bdc410) [#277](https://github.com/voucherifyio/voucherify-js-sdk/pull/277) Thanks [@p-zielinski](https://github.com/p-zielinski)! - Added support for `v1/customers/{customerId}/activity` (method `listActivity`) and fix type `ValidationValidateStackableResponse`
|
|
28
|
-
|
|
29
|
-
## 2.7.4
|
|
30
|
-
|
|
31
|
-
### Patch Changes
|
|
32
|
-
|
|
33
|
-
- [`871bafb`](https://github.com/voucherifyio/voucherify-js-sdk/commit/871bafb6d16b345fc8230d3fd6aecf55f291fdf2) [#272](https://github.com/voucherifyio/voucherify-js-sdk/pull/272) Thanks [@awilczek](https://github.com/awilczek)! - Upgrade axios to 1.7.5 (CVE-2024-39338)
|
|
34
|
-
|
|
35
|
-
## 2.7.3
|
|
36
|
-
|
|
37
|
-
### Patch Changes
|
|
38
|
-
|
|
39
|
-
- [`d532cc4`](https://github.com/voucherifyio/voucherify-js-sdk/commit/d532cc4dd6ccc1ea6cab120b8a3cec7d86598ffd) [#270](https://github.com/voucherifyio/voucherify-js-sdk/pull/270) Thanks [@p-zielinski](https://github.com/p-zielinski)! - Type support for partial redemptions. General update to responses of /validations and /redemptions endpoints.
|
|
40
|
-
|
|
41
|
-
## 2.7.2
|
|
42
|
-
|
|
43
|
-
### Patch Changes
|
|
44
|
-
|
|
45
|
-
- [`3d23881`](https://github.com/voucherifyio/voucherify-js-sdk/commit/3d23881738f317903dae3373642cc7151159ca26) [#268](https://github.com/voucherifyio/voucherify-js-sdk/pull/268) Thanks [@darekg11](https://github.com/darekg11)! - New endpoint support - `customer-redeemable`
|
|
46
|
-
|
|
47
|
-
## 2.7.1
|
|
48
|
-
|
|
49
|
-
### Patch Changes
|
|
50
|
-
|
|
51
|
-
- [`25c3f13`](https://github.com/voucherifyio/voucherify-js-sdk/commit/25c3f13d10cd8ed4a6eee50082f302efd18e1268) [#260](https://github.com/voucherifyio/voucherify-js-sdk/pull/260) Thanks [@jkaliszuk](https://github.com/jkaliszuk)! - Added `error` object in `VoucherifyError`. Added `validation_rules` in VouchersCreateParameters.
|
|
52
|
-
|
|
53
|
-
## 2.7.0
|
|
54
|
-
|
|
55
|
-
### Minor Changes
|
|
56
|
-
|
|
57
|
-
- [`32fa44a`](https://github.com/voucherifyio/voucherify-js-sdk/commit/32fa44ab17b21bda9daf953eaf4969d528c2d707) [#255](https://github.com/voucherifyio/voucherify-js-sdk/pull/255) Thanks [@awilczek](https://github.com/awilczek)! - Update axios to 1.6.5 in SDK package
|
|
58
|
-
|
|
59
|
-
* [`8df2fed`](https://github.com/voucherifyio/voucherify-js-sdk/commit/8df2fed2b4319f681d0ff17b9bb15e6bbf80dd7c) [#254](https://github.com/voucherifyio/voucherify-js-sdk/pull/254) Thanks [@p-zielinski](https://github.com/p-zielinski)! - Add support for few endpoints of Loyalties API.
|
|
60
|
-
- Added support for new endpoints: `POST /v1/qualifications`, `POST /client/v1/qualifications` [(examples of usage available in readme.md)](..%2F..%2Fpackages%2Fsdk%2FREADME.md)
|
|
61
|
-
- New exported types/interfaces: `InapplicableTo`, `Referrer`, `ReferrerWithSummaryLoyaltyReferrals`, `Customer`, `CustomerWithSummaryLoyaltyReferrals`, `CustomerSummary`, `CustomerSummaryRedemptions`, `CustomerSummaryOrders`, `CustomerLoyalty`, `CustomerReferrals`, `Discount`, `DiscountAmount_`, `DiscountUnit_`, `DiscountUnitBase_`, `DiscountUnitMultiple_`, `DiscountPercent_`, `DiscountFixed_`, `Order`, `OrderItem`, `OrderCalculated`, `OrderRedemptions`, `OrderItemCalculated`, `QualificationsCheckEligibilityRequestBody`, `QualificationsCheckEligibilityResponseBody`, `QualificationsFiltersFields`, `QualificationsFiltersCondition`, `QualificationsFieldConditions`, `QualificationsRedeemablesResponse`, `QualificationsStackingRulesResponse`, `QualificationsRedeemable`, `QualificationsRedeemableBase`, `RedeemableSingleResultResponse`, `ValidationRulesAssignmentsList`,
|
|
62
|
-
- Added optional properties to `ApplicableTo`: `product_id`, `product_source_id`, `quantity_limit`, `aggregated_quantity_limit`, `amount_limit`, `aggregated_amount_limit`, `order_item_indices`
|
|
63
|
-
- Added required property: `data_ref: 'data'` to `ApplicableToResultList` // NOTE: as this type is only used in responses, this is not a breaking change.
|
|
64
|
-
- Added optional properties to `CustomerRequest`: `birthday` and `birthdate`
|
|
65
|
-
|
|
66
|
-
## 2.6.0
|
|
67
|
-
|
|
68
|
-
### Minor Changes
|
|
69
|
-
|
|
70
|
-
- [`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.
|
|
71
|
-
|
|
72
|
-
Added support for new endpoints:
|
|
73
|
-
|
|
74
|
-
- `/loyalties/{campaignId}/rewards/{assignmentId}`,
|
|
75
|
-
- `/loyalties/{campaignId}/tiers/{tierId}/rewards`,
|
|
76
|
-
- `/rewards/{rewardId}/assignments/{assignmentId}` (example available in readme.md)
|
|
77
|
-
|
|
78
|
-
New exported types/interfaces in `Loyalties.ts`:
|
|
79
|
-
Domain types:
|
|
80
|
-
|
|
81
|
-
- LoyaltyTierRewardItemParameters,
|
|
82
|
-
- LoyaltyTierRewardItemCampaignParameters,
|
|
83
|
-
- LoyaltyTierRewardItemCoinParameters,
|
|
84
|
-
- LoyaltyTierRewardItemMaterialParameters,
|
|
85
|
-
- LoyaltyTierRewardItemCampaignDiscountCoupons,
|
|
86
|
-
- LoyaltyTierRewardItemCampaignGiftVouchersAndLoyaltyProgram
|
|
87
|
-
|
|
88
|
-
0-level types:
|
|
89
|
-
|
|
90
|
-
- LoyaltiesGetRewardAssignmentResponseBody,
|
|
91
|
-
- LoyaltiesListLoyaltyTierRewardsResponseBody
|
|
92
|
-
|
|
93
|
-
New exported types/interfaces in `Rewards.ts`:
|
|
94
|
-
Domain types:
|
|
95
|
-
|
|
96
|
-
- RewardAssignment (old `RewardsAssignmentObject`),
|
|
97
|
-
- RewardsAssignmentCampaignOrMaterialReward,
|
|
98
|
-
- RewardsAssignmentCoinReward
|
|
99
|
-
-
|
|
100
|
-
|
|
101
|
-
0-level types:
|
|
102
|
-
|
|
103
|
-
- RewardsListAssignmentsRequestQuery (old `RewardsListAssignmentsParams`),
|
|
104
|
-
- RewardsListAssignmentsResponseBody (old `RewardsListAssignmentsResponse`),
|
|
105
|
-
- RewardsCreateAssignmentRequestBody (old `RewardsCreateAssignment`),
|
|
106
|
-
- RewardsCreateAssignmentCoinRewardRequestBody,
|
|
107
|
-
- RewardsCreateAssignmentCampaignOrMaterialRewardRequestBody,
|
|
108
|
-
- RewardsCreateAssignmentResponseBody (old `RewardsCreateAssignmentResponse`),
|
|
109
|
-
- RewardsUpdateAssignmentRequestBody (old `RewardsUpdateAssignment`),
|
|
110
|
-
- RewardsUpdateAssignmentResponseBody (old `RewardsUpdateAssignmentResponse`)
|
|
111
|
-
- RewardsGetAssignmentResponseBody (brand new)
|
|
112
|
-
|
|
113
|
-
***
|
|
114
|
-
|
|
115
|
-
Added support for following endpoints:
|
|
116
|
-
|
|
117
|
-
- GET /vouchers/{code}/transactions (client.vouchers.listTransactions(code, query))
|
|
118
|
-
- POST /vouchers/{code}/transactions/export (client.vouchers.exportTransactions(code, body))
|
|
119
|
-
- GET /validation-rules-assignments (client.client.validationRules.listRulesAssignments(validationRuleId))
|
|
120
|
-
|
|
121
|
-
**New exported types/interfaces**
|
|
122
|
-
Domain types:
|
|
123
|
-
|
|
124
|
-
- GiftCardTransaction
|
|
125
|
-
- GiftCardTransactionBase
|
|
126
|
-
GiftCardTransactionDetails
|
|
127
|
-
- GiftCardTransactionRedemptionDetails
|
|
128
|
-
- GiftCardTransactionRefundDetails
|
|
129
|
-
- GiftCardTransactionAdditionDetails
|
|
130
|
-
- GiftCardTransactionRemovalDetails
|
|
131
|
-
- VoucherTransaction
|
|
132
|
-
- VoucherTransactionsExportFields
|
|
133
|
-
- ValidationRulesAssignment
|
|
134
|
-
|
|
135
|
-
0-level types:
|
|
136
|
-
|
|
137
|
-
- VouchersListTransactionsRequestQuery
|
|
138
|
-
- VouchersListTransactionsResponseBody
|
|
139
|
-
- VouchersExportTransactionsRequestBody
|
|
140
|
-
- VouchersExportTransactionsResponseBody
|
|
141
|
-
- ValidationRulesListRulesAssignmentsRequestQuery
|
|
142
|
-
- ValidationRulesListRulesAssignmentsResponseBody
|
|
143
|
-
|
|
144
|
-
**Other changes**
|
|
145
|
-
|
|
146
|
-
- Use `VouchersExportTransactionsRequestBody` as `LoyaltiesExportCardTransactionsRequestBody` (these types are identical, both related to the export of loyalty card transactions)
|
|
147
|
-
- Use `VouchersExportTransactionsResponseBody` as `LoyaltiesExportCardTransactionsResponseBody` (these types are identical, both related to the export of loyalty card transactions)
|
|
148
|
-
|
|
149
|
-
***
|
|
150
|
-
|
|
151
|
-
New exported types/interfaces in `Categories.ts`:
|
|
152
|
-
|
|
153
|
-
- CategoriesListRequestQuery
|
|
154
|
-
|
|
155
|
-
Added support for query parameters(CategoriesListRequestQuery) in `/categories` (categories.list method)
|
|
156
|
-
|
|
157
|
-
***
|
|
158
|
-
|
|
159
|
-
Add support for few endpoints of Loyalties API:
|
|
160
|
-
|
|
161
|
-
- 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)
|
|
162
|
-
- New exported types/interfaces: `PromotionsStacksListInCampaignResponseBody`, `PromotionsStacksListResponseBody`, `PromotionsStacksListRequestQuery`, `PromotionsStacksGetResponseBody`, `PromotionsStacksUpdateRequestBody`, `PromotionsStacksUpdateResponseBody`, `PromotionsStacksCreateInCampaignRequestBody`, `PromotionsStacksCreateInCampaignResponseBody`, `PromotionStackBase`, `PromotionStack`
|
|
163
|
-
|
|
164
|
-
## 2.5.0
|
|
165
|
-
|
|
166
|
-
### Minor Changes
|
|
167
|
-
|
|
168
|
-
- [`c33499d`](https://github.com/voucherifyio/voucherify-js-sdk/commit/c33499d1a75a882c2528c873f260633969eecbdd) [#246](https://github.com/voucherifyio/voucherify-js-sdk/pull/246) Thanks [@p-zielinski](https://github.com/p-zielinski)! - Add support for few endpoints of Loyalties API.
|
|
169
|
-
- Added support for new endpoints: `GET /loyalties/{campaignId}/reward-assignments/{assignmentId}`, `GET /loyalties/{campaignId}/reward-assignments/{assignmentId}/reward`, `GET /loyalties/{campaignId}/tiers`, `GET /loyalties/{campaignId}/tiers/{tierId}`, `POST /loyalties/{campaignId}/tiers`, `GET /loyalties/{campaignId}/tiers/{tierId}/earning-rules`, `GET /loyalties/members/{memberId}/tiers` [(examples of usage available in readme.md)](..%2F..%2Fpackages%2Fsdk%2FREADME.md)
|
|
170
|
-
- New exported types/interfaces: `LoyaltiesGetRewardAssignmentResponseBody`, `LoyaltiesGetRewardDetailsResponseBody`, `LoyaltiesListTiersRequestQuery`, `LoyaltiesListLoyaltyTierEarningRulesRequestQuery`, `LoyaltiesGetTierResponseBody`, `LoyaltiesCreateTiersRequestBody`, `LoyaltiesCreateTiersResponseBody`,`LoyaltiesListTiersResponseBody`, `LoyaltiesListMemberLoyaltyTiersResponseBody`, `LoyaltiesListLoyaltyTierEarningRulesResponseBody`, `EarningRule`, `LoyaltyTier`, `CreateLoyaltyTier`, MappingMultiply`,`MappingFixed`
|
|
171
|
-
|
|
172
|
-
* [`2d5b050`](https://github.com/voucherifyio/voucherify-js-sdk/commit/2d5b050a5f8c2df1e710b647b3a13a29d857a8e2) [#238](https://github.com/voucherifyio/voucherify-js-sdk/pull/238) Thanks [@p-zielinski](https://github.com/p-zielinski)! - Add support for few endpoints of Loyalties API.
|
|
173
|
-
- Added support for new endpoints: `GET /loyalties/members/{memberId}`, `GET /loyalties/members/{memberId}/activities`, `GET /loyalties/members/{memberId}/rewards`, `POST /loyalties/{campaignId}/members/{memberId}/transfers`, `GET /loyalties/{campaignId}/members/{memberId}/points-expiration`, `GET /loyalties/members/{memberId}/transactions`, `GET /loyalties/{campaignId}/members/{memberId}/transactions`, `POST /loyalties/members/{memberId}/transactions/export` and `POST /loyalties/{campaignId}/members/{memberId}/transactions/export` [(examples of usage available in readme.md)](..%2F..%2Fpackages%2Fsdk%2FREADME.md)
|
|
174
|
-
- New exported types/interfaces: `LoyaltiesTransferPointsResponseBody`, `LoyaltiesTransferPointsRequestBody`, `LoyaltiesListMemberRewardsRequestQuery`, `LoyaltiesListMemberRewardsResponseBody`, `LoyaltiesGetPointsExpirationRequestQuery`, `LoyaltiesGetPointsExpirationResponseBody`, `LoyaltiesListCardTransactionsRequestQuery`, `LoyaltiesListCardTransactionsResponseBody`, `LoyaltiesExportCardTransactionsRequestBody`, `LoyaltiesExportCardTransactionsResponseBody`, `LoyaltiesAddOrRemoveCardBalanceRequestBody`, `LoyaltiesAddOrRemoveCardBalanceResponseBody`, `LoyaltyCardTransaction`, `SimpleLoyaltyVoucher`, `LoyaltiesTransferPoints`, `LoyaltyCardTransactionsFields`, `LoyaltyCardTransactionsType`, `Reward`, `RewardTypeCampaign`, `RewardTypeCoin`, `RewardTypeMaterial`, `RewardType`, `RewardAssignment`
|
|
175
|
-
|
|
176
|
-
- [`e135b17`](https://github.com/voucherifyio/voucherify-js-sdk/commit/e135b1766ef73bb272629e2ce93a9878e3ec90fd) [#242](https://github.com/voucherifyio/voucherify-js-sdk/pull/242) Thanks [@weronika-kurczyna](https://github.com/weronika-kurczyna)! - Added missing methods covering Product Collections API.
|
|
177
|
-
- Added support for new endpoints:
|
|
178
|
-
- `GET POST /product-collections`,
|
|
179
|
-
- `GET DELETE /product-collections/{productCollectionId}`,
|
|
180
|
-
- `GET /product-collections/${productCollectionId}/products` [(examples of usage available in readme.md)](..%2F..%2Fpackages%2Fsdk%2FREADME.md)
|
|
181
|
-
- New exported types/interfaces in `ProductCollections.ts`:
|
|
182
|
-
- Domain types:
|
|
183
|
-
- ProductIdentity
|
|
184
|
-
- SkuIdentity
|
|
185
|
-
- ProductBase
|
|
186
|
-
- SkuBase
|
|
187
|
-
- ProductSaved
|
|
188
|
-
- SkuSaved
|
|
189
|
-
- ProductOrSkuIdentity
|
|
190
|
-
- ProductCollectionIdentity
|
|
191
|
-
- ProductCollectionSaved
|
|
192
|
-
- ProductCollectionBase
|
|
193
|
-
- StaticProductCollectionBase
|
|
194
|
-
- DynamicProductCollectionBase
|
|
195
|
-
- Filter
|
|
196
|
-
- Junction
|
|
197
|
-
- AllowedFiltersKeys
|
|
198
|
-
- FiltersCondition
|
|
199
|
-
- 0-level types:
|
|
200
|
-
- ProductCollectionsCreateRequestBody
|
|
201
|
-
- ProductCollectionsCreateResponseBody
|
|
202
|
-
- ProductCollectionsListRequestQuery
|
|
203
|
-
- ProductCollectionsListResponseBody
|
|
204
|
-
- ProductCollectionsGetResponseBody
|
|
205
|
-
- ProductCollectionsListProductsRequestQuery
|
|
206
|
-
- ProductCollectionsListProductsResponseBody
|
|
207
|
-
|
|
208
|
-
* [`841b6d5`](https://github.com/voucherifyio/voucherify-js-sdk/commit/841b6d57f33ff288666fde79c46a6945ed565659) [#244](https://github.com/voucherifyio/voucherify-js-sdk/pull/244) Thanks [@p-zielinski](https://github.com/p-zielinski)! - Add support for endpoint `GET /exports`.
|
|
209
|
-
- New exported types/interfaces: `ExportsListRequestQuery`, `ExportsListResponseBody`, `ExportBase`, `ExportResourceResponse`, `FieldConditions`, `ExportVoucher`, `ExportVoucherFilters`, `ExportRedemption`, `ExportRedemptionFilters`, `ExportCustomer`, `ExportCustomerFilters`, `ExportPublication`, `ExportPublicationFilters`, `ExportOrder`, `ExportOrderFilters`, `ExportPointsExpiration`, `ExportPointsExpirationFilters`, `ExportVoucherTransactionsExpiration`, `ExportVoucherTransactionsFilters`, `Junction`, `FiltersCondition`, `ExportCustomerFields`, `ExportCustomerOrder`, `ExportPublicationFields`, `ExportPublicationOrder`, `ExportRedemptionFields`, `ExportRedemptionOrder`, `ExportVoucherFields`, `ExportVoucherOrder`, `ExportOrderFields`, `ExportOrderOrder`, `ExportPointsExpirationFields`, `ExportPointsExpirationOrder`, `ExportVoucherTransactionsFields`, `ExportVoucherTransactionsOrder`
|
|
210
|
-
|
|
211
|
-
## 2.4.0
|
|
212
|
-
|
|
213
|
-
### Minor Changes
|
|
214
|
-
|
|
215
|
-
- [`b11ce2c`](https://github.com/voucherifyio/voucherify-js-sdk/commit/b11ce2c6410c7441bd48fbbf33377b98c77af072) [#241](https://github.com/voucherifyio/voucherify-js-sdk/pull/241) Thanks [@p-zielinski](https://github.com/p-zielinski)! - Add support for 3 missing endpoints in loyalties api. Corrected a typo in one of loyalties api method.
|
|
216
|
-
- Added support for new endpoints: `GET /loyalties/{campaignId}/earning-rules/{earningRuleId}`, `POST /loyalties/{campaignId}/earning-rules/{earningRuleId}/enable` and `POST /loyalties/{campaignId}/earning-rules/{earningRuleId}/disable` [(examples available in readme.md)](..%2F..%2Fpackages%2Fsdk%2FREADME.md)
|
|
217
|
-
- New exported types/interfaces: `LoyaltiesGetEarningRuleResponseBody`, `LoyaltiesEnableEarningRulesResponseBody`, `LoyaltiesDisableEarningRulesResponseBody`, `EarningRuleEvent`, `EarningRuleBase`, `EarningRuleFixed`, `EarningRuleProportionalOrder`, `EarningRuleProportionalOrderAmount`, `EarningRuleProportionalOrderTotalAmount`, `EarningRuleProportionalOrderMetadata`, `EarningRuleProportionalOrderItems`, `EarningRuleProportionalOrderItemsQuantity`, `EarningRuleProportionalOrderItemsAmount`, `EarningRuleProportionalOrderItemsSubtotalAmount`, `EarningRuleProportionalCustomerMetadata`, `EarningRuleProportionalCustomEvent`, `EarningRuleProportional`
|
|
218
|
-
- Added optional parameter `calculation_type` to `LoyaltyProportional`
|
|
219
|
-
|
|
220
|
-
* [`5bb69da`](https://github.com/voucherifyio/voucherify-js-sdk/commit/5bb69daf95c1e16c48eb5070149b88f11bfe1a30) [#229](https://github.com/voucherifyio/voucherify-js-sdk/pull/229) Thanks [@marcin-slezak](https://github.com/marcin-slezak)! - Add missing methods covering Customers API.
|
|
221
|
-
- Added support for new endpoints:
|
|
222
|
-
- `POST /customers/{customerId}/permanent-deletion`,
|
|
223
|
-
- `POST /customers/bulk/async`,
|
|
224
|
-
- `POST /customers/metadata/async` [(examples of usage available in readme.md)](..%2F..%2Fpackages%2Fsdk%2FREADME.md)
|
|
225
|
-
- New domain types:
|
|
226
|
-
- `CustomerBase`
|
|
227
|
-
- `CustomerAddress`
|
|
228
|
-
- New exported types/interfaces:
|
|
229
|
-
- `CustomersUpdateInBulkRequestBody`,
|
|
230
|
-
- `CustomersUpdateMetadataInBulkRequestBody`,
|
|
231
|
-
- `CustomersDeletePermanentlyResponseBody`
|
|
232
|
-
|
|
233
|
-
## 2.3.0
|
|
234
|
-
|
|
235
|
-
### Minor Changes
|
|
236
|
-
|
|
237
|
-
- [`644aa84`](https://github.com/voucherifyio/voucherify-js-sdk/commit/644aa8479843b8625192aa295eb07aa19ba651d7) [#227](https://github.com/voucherifyio/voucherify-js-sdk/pull/227) Thanks [@marcin-slezak](https://github.com/marcin-slezak)! - Added support for missing CSV import endpoints ([(examples of usage available in readme.md)](..%2F..%2Fpackages%2Fsdk%2FREADME.md)):
|
|
238
|
-
- `POST /skus/importCSV`
|
|
239
|
-
- `POST /products/importCSV`
|
|
240
|
-
- `POST /vouchers/importCSV`
|
|
241
|
-
- `POST /customers/importCSV`
|
|
242
|
-
- `POST /campaigns/campaignId/importCSV`
|
|
243
|
-
- Added form-data `4.0.0` to SDK package
|
|
244
|
-
|
|
245
|
-
* [`7720e31`](https://github.com/voucherifyio/voucherify-js-sdk/commit/7720e31baea0db19a7543ae12661fab77176e5ff) [#228](https://github.com/voucherifyio/voucherify-js-sdk/pull/228) Thanks [@marcin-slezak](https://github.com/marcin-slezak)! - Add missing methods covering Categories and Campaigns API.
|
|
246
|
-
- Added support for new endpoints [(examples of usage available in readme.md)](..%2F..%2Fpackages%2Fsdk%2FREADME.md):
|
|
247
|
-
- `POST /campaigns/campaignId/enable`,
|
|
248
|
-
- `POST /campaigns/campaignId/disable`,
|
|
249
|
-
- `GET, POST DELETE /categories`,
|
|
250
|
-
- `GET PUT /categories/id`.
|
|
251
|
-
- New exported types/interfaces in `Categories.ts`:
|
|
252
|
-
- `ListCategories`,
|
|
253
|
-
- `CategoryObject`,
|
|
254
|
-
- `CreateCategory`,
|
|
255
|
-
- `ResponseCreateCategory`,
|
|
256
|
-
- `ResponseUpdateCategory`,
|
|
257
|
-
- `UpdateCategoryRequest`.
|
|
258
|
-
|
|
259
|
-
- [`52e7f5e`](https://github.com/voucherifyio/voucherify-js-sdk/commit/52e7f5e8d4ea6be4ba1b9d0550cba3ec3d893672) [#221](https://github.com/voucherifyio/voucherify-js-sdk/pull/221) Thanks [@p-zielinski](https://github.com/p-zielinski)! - Implementing the following changes:
|
|
260
|
-
- Update axios from `0.21.4` to `0.27.2` in SDK package
|
|
261
|
-
- Added dotenv `16.3.1` to SDK package dev dependencies.
|
|
262
|
-
- Added frame for integration tests [(more info available in README.md, section "🧪 SDK Tests")](..%2F..%2FREADME.md)
|
|
263
|
-
|
|
264
|
-
## 2.2.6
|
|
265
|
-
|
|
266
|
-
### Patch Changes
|
|
267
|
-
|
|
268
|
-
- [`a266c2a`](https://github.com/voucherifyio/voucherify-js-sdk/commit/a266c2a9a4a1942e2b6d8ef54021e04d36ddb02c) [#223](https://github.com/voucherifyio/voucherify-js-sdk/pull/223) Thanks [@darekg11](https://github.com/darekg11)! - Add optional timeoutMs option to VoucherifyServerSide and VoucherifyClientSide classes defiing timeout in miliseconds after which Axios is going to abort the request. By default this is equal to 0 meaining that there is no timeout beside default Voucherify's Load balancer timeout which is set to 3 minutes
|
|
269
|
-
|
|
270
|
-
## 2.2.5
|
|
271
|
-
|
|
272
|
-
### Patch Changes
|
|
273
|
-
|
|
274
|
-
- [`d5751ea`](https://github.com/voucherifyio/voucherify-js-sdk/commit/d5751ea57c46f32275c4630bd4d2b6d41f3506b2) [#216](https://github.com/voucherifyio/voucherify-js-sdk/pull/216) Thanks [@Davies-Owen](https://github.com/Davies-Owen)! - add amount_off_formula, percent_off_formula, unit_off_formula, and fixed_amount_formula fields to Voucher types: DiscountAmount, DiscountPercent, DiscountUnit, DiscountFixed, VoucherDiscount, and StackableRedeemableResultDiscount
|
|
275
|
-
|
|
276
|
-
## 2.2.4
|
|
277
|
-
|
|
278
|
-
### Patch Changes
|
|
279
|
-
|
|
280
|
-
- [`2899ae6`](https://github.com/voucherifyio/voucherify-js-sdk/commit/2899ae6a1044388f4a5426ef22b8b52e00b747a4) [#214](https://github.com/voucherifyio/voucherify-js-sdk/pull/214) Thanks [@darekg11](https://github.com/darekg11)! - Added 'metadata' property to 'order' object in 'ValidationsValidateVoucherResponse' inteface. Added 'session' property to 'ValidationsValidateVoucherResponse' interface
|
|
281
|
-
|
|
282
|
-
## 2.2.3
|
|
283
|
-
|
|
284
|
-
### Patch Changes
|
|
285
|
-
|
|
286
|
-
- [`312d4a8`](https://github.com/voucherifyio/voucherify-js-sdk/commit/312d4a891a9b5da7543aff1ae3294961043efb92) [#205](https://github.com/voucherifyio/voucherify-js-sdk/pull/205) Thanks [@p-zielinski](https://github.com/p-zielinski)! - Added support for get promotion tier endpoint
|
|
287
|
-
|
|
288
|
-
## 2.2.2
|
|
289
|
-
|
|
290
|
-
### Patch Changes
|
|
291
|
-
|
|
292
|
-
- [`dd1601d`](https://github.com/voucherifyio/voucherify-js-sdk/commit/dd1601d1f3f0651433f20cf2067d96bc1f5164dc) [#209](https://github.com/voucherifyio/voucherify-js-sdk/pull/209) Thanks [@ateev](https://github.com/ateev)! - Fixed minor typos in types for Order
|
|
293
|
-
|
|
294
|
-
## 2.2.1
|
|
295
|
-
|
|
296
|
-
### Patch Changes
|
|
297
|
-
|
|
298
|
-
- [`e7fab63`](https://github.com/voucherifyio/voucherify-js-sdk/commit/e7fab63274d1038b53a049888a6cada2a16265ca) [#207](https://github.com/voucherifyio/voucherify-js-sdk/pull/207) Thanks [@marcin-slezak](https://github.com/marcin-slezak)! - Added missing DiscountFixed type addressing issue #206. Affected types:
|
|
299
|
-
- type `ClientSideValidateResponse` related to:
|
|
300
|
-
- response for GET `/validate`
|
|
301
|
-
- type `SimplePromotionTier` related to:
|
|
302
|
-
- response GET `/promotions/validation`
|
|
303
|
-
- type `PromotionsCreate` related to:
|
|
304
|
-
- params for POST `/campaigns`
|
|
305
|
-
- type `PromotionsValidateResponse` related to:
|
|
306
|
-
- response for POST `/promotions/validation`
|
|
307
|
-
- type `VouchersResponse` related to:
|
|
308
|
-
- response for POST `/redeem`
|
|
309
|
-
- response for POST `/vouchers/qualification`
|
|
310
|
-
- params for POST and PUT `/vouchers/${encode(voucher.code)}`
|
|
311
|
-
- response for GET `/vouchers/${encode(code)}`
|
|
312
|
-
- response POST `loyalties/{campaignId}/members/{memberId}/redemption`
|
|
313
|
-
- response POST `/vouchers/${encode(code)}/enable`
|
|
314
|
-
- response POST `/vouchers/${encode(code)}/disable`
|
|
315
|
-
- type `VouchersImport` related to:
|
|
316
|
-
- params for POST `/vouchers/import`
|
|
317
|
-
- type `PromotionTier` related to:
|
|
318
|
-
- response for GET `/promotions/tiers`
|
|
319
|
-
- response for GET `/promotions/${encode(promotionId)}/tiers`
|
|
320
|
-
- response for POST `/promotions/tiers/${encode(promotionsTierId)}/redemption`
|
|
321
|
-
- response for POST `/vouchers/${encode(code)}/redemption`
|
|
322
|
-
- type `PromotionTiersCreateParams` related to:
|
|
323
|
-
- params for POST `/promotions/${encode(promotionId)}/tiers`
|
|
324
|
-
- type `ValidationsValidateVoucherResponse` related to:
|
|
325
|
-
- response for POST `/vouchers/${encode(code)}/validate`
|
|
326
|
-
- type `SimpleVoucher` related to:
|
|
327
|
-
- response GET/PUT/POST `/campaigns/${encode(name)}`
|
|
328
|
-
- response GET `/campaigns`
|
|
329
|
-
- params POST `/campaigns`
|
|
330
|
-
- response POST `/campaigns/qualification`
|
|
331
|
-
|
|
332
|
-
## 2.2.0
|
|
333
|
-
|
|
334
|
-
### Minor Changes
|
|
335
|
-
|
|
336
|
-
- [`4451288`](https://github.com/voucherifyio/voucherify-js-sdk/commit/4451288cbbef3e3c288a771ed52e767ecc7ed5ab) [#203](https://github.com/voucherifyio/voucherify-js-sdk/pull/203) Thanks [@darekg11](https://github.com/darekg11)! - Add 'CampaignsListResponse' type to return value of campaigns.list method
|
|
337
|
-
|
|
338
|
-
## 2.1.9
|
|
339
|
-
|
|
340
|
-
### Patch Changes
|
|
341
|
-
|
|
342
|
-
- [`d06989b`](https://github.com/voucherifyio/voucherify-js-sdk/commit/d06989b6b3476469719425f922cba930fb8b8f9d) [#198](https://github.com/voucherifyio/voucherify-js-sdk/pull/198) Thanks [@darekg11](https://github.com/darekg11)! - Add missing 'filters' property to 'VouchersListParams' interface to allow for advanced filters for fetching resources
|
|
343
|
-
|
|
344
|
-
## 2.1.8
|
|
345
|
-
|
|
346
|
-
### Patch Changes
|
|
347
|
-
|
|
348
|
-
- [`8e7bf47`](https://github.com/voucherifyio/voucherify-js-sdk/commit/8e7bf477d969942fd59ae2fb6444b13662a260f6) [#195](https://github.com/voucherifyio/voucherify-js-sdk/pull/195) Thanks [@darekg11](https://github.com/darekg11)! - Add 'active' field to 'PromotionTier' interface. Add 'PromotionTierRedeemDetailsSimple' and 'PromotionTierRedeemDetails' types and reuse them in 'RedemptionsRedeemResponse' so that 'RedemptionsRedeemStackableRedemptionResult' can return promotion_tier property
|
|
349
|
-
|
|
350
|
-
## 2.1.7
|
|
351
|
-
|
|
352
|
-
### Patch Changes
|
|
353
|
-
|
|
354
|
-
- [`92ab4fb`](https://github.com/voucherifyio/voucherify-js-sdk/commit/92ab4fb3577332b60846536204c9d3cc6955b22b) [#188](https://github.com/voucherifyio/voucherify-js-sdk/pull/188) Thanks [@darekg11](https://github.com/darekg11)! - Add explicit properties to VoucherifyError class to make it easier for TypeScript folks. Added examples of proper error handling for both classical Node.JS and for TypeScript. Examples includes different handling for networking and API errors
|
|
355
|
-
|
|
356
|
-
* [`48a46b9`](https://github.com/voucherifyio/voucherify-js-sdk/commit/48a46b9c3c3b64636fa8885919ca9311f2b497e5) [#190](https://github.com/voucherifyio/voucherify-js-sdk/pull/190) Thanks [@darekg11](https://github.com/darekg11)! - Add missing 'related_object_ids', 'related_object_type' and 'related_object_total' properties to 'VoucherifyError' class. Those properties are returned fmor API in case of 'resource_in_ise' error
|
|
357
|
-
|
|
358
|
-
## 2.1.6
|
|
359
|
-
|
|
360
|
-
### Patch Changes
|
|
361
|
-
|
|
362
|
-
- [`089c0be`](https://github.com/voucherifyio/voucherify-js-sdk/commit/089c0bef7983a5cd57e1c38780168482067ac743) [#183](https://github.com/voucherifyio/voucherify-js-sdk/pull/183) Thanks [@emreler](https://github.com/emreler)! - Update 'key' field in ValidationError interface
|
|
363
|
-
|
|
364
|
-
## 2.1.5
|
|
365
|
-
|
|
366
|
-
### Patch Changes
|
|
367
|
-
|
|
368
|
-
- [`f87ccb7`](https://github.com/voucherifyio/voucherify-js-sdk/commit/f87ccb7049ba5fb33cf2aee01c00fd3e09c54e2a) [#181](https://github.com/voucherifyio/voucherify-js-sdk/pull/181) Thanks [@emreler](https://github.com/emreler)! - Add 'assets' from VouchersResponse to CampaignsAddVoucherResponse type
|
|
369
|
-
|
|
370
|
-
## 2.1.4
|
|
371
|
-
|
|
372
|
-
### Patch Changes
|
|
373
|
-
|
|
374
|
-
- [`03fc326`](https://github.com/voucherifyio/voucherify-js-sdk/commit/03fc3261231a4263895f07a0bb578c5ffd15752a) [#179](https://github.com/voucherifyio/voucherify-js-sdk/pull/179) Thanks [@darekg11](https://github.com/darekg11)! - Add new 'ValidationError' type describing error that can be returned upon unsuccessful validation of single voucher or in case of stacked validations. Add this new interface to 'StackableRedeemableResultResponse' and 'ValidationsValidateVoucherResponse' types
|
|
375
|
-
|
|
376
|
-
## 2.1.3
|
|
377
|
-
|
|
378
|
-
### Patch Changes
|
|
379
|
-
|
|
380
|
-
- [`4c4ccf3`](https://github.com/voucherifyio/voucherify-js-sdk/commit/4c4ccf322e2f86c9921593edda3c22691904a19b) [#173](https://github.com/voucherifyio/voucherify-js-sdk/pull/173) Thanks [@darekg11](https://github.com/darekg11)! - Bump qs dependency to 6.9.7 version to fix CVE-2022-24999 / GHSA-hrpp-h998-j3pp
|
|
381
|
-
|
|
382
|
-
## 2.1.2
|
|
383
|
-
|
|
384
|
-
### Patch Changes
|
|
385
|
-
|
|
386
|
-
- [`6886582`](https://github.com/voucherifyio/voucherify-js-sdk/commit/6886582b27be73b7f0a2cfa1ab9cc4fd4d727e8a) [#171](https://github.com/voucherifyio/voucherify-js-sdk/pull/171) Thanks [@darekg11](https://github.com/darekg11)! - Update axios to 0.21.4 in SDK package
|
|
387
|
-
|
|
388
|
-
* [`3e5f2ee`](https://github.com/voucherifyio/voucherify-js-sdk/commit/3e5f2ee0bb9855e556c67049aa55f8f5a51b7fd0) [#165](https://github.com/voucherifyio/voucherify-js-sdk/pull/165) Thanks [@darekg11](https://github.com/darekg11)! - Bumping libraries to mitigiate some of HIGH and CRITICAL vulnerabilities
|
|
389
|
-
|
|
390
|
-
## 2.1.1
|
|
391
|
-
|
|
392
|
-
### Patch Changes
|
|
393
|
-
|
|
394
|
-
- [`59d7f8a`](https://github.com/voucherifyio/voucherify-js-sdk/commit/59d7f8aeb9fe724e3b9ed49049607c2b221e993c) [#161](https://github.com/voucherifyio/voucherify-js-sdk/pull/161) Thanks [@Davies-Owen](https://github.com/Davies-Owen)! - Add missing gift.balance property to VouchersResponse interface
|
|
395
|
-
|
|
396
|
-
## 2.1.0
|
|
397
|
-
|
|
398
|
-
### Minor Changes
|
|
399
|
-
|
|
400
|
-
- [`eb0f4b1`](https://github.com/voucherifyio/voucherify-js-sdk/commit/eb0f4b164b056018e4e3131c6f9df81fb20098bb) [#160](https://github.com/voucherifyio/voucherify-js-sdk/pull/160) Thanks [@Irene350](https://github.com/Irene350)! - VoucherType input correct enum value DISCOUNT_VOUCHER and GIFT_VOUCHER
|
|
401
|
-
|
|
402
|
-
## 2.0.17
|
|
403
|
-
|
|
404
|
-
### Patch Changes
|
|
405
|
-
|
|
406
|
-
- [`8bb9bb5`](https://github.com/voucherifyio/voucherify-js-sdk/commit/8bb9bb5f48ee2a9b00038c192c39431567f34309) [#156](https://github.com/voucherifyio/voucherify-js-sdk/pull/156) Thanks [@Davies-Owen](https://github.com/Davies-Owen)! - add missing created_at property to VouchersResponse, LoyaltiesRedeemRewardResponse, CampaignsAddVoucherResponse, and ClientSideVoucherListing interfaces
|
|
407
|
-
|
|
408
|
-
## 2.0.16
|
|
409
|
-
|
|
410
|
-
### Patch Changes
|
|
411
|
-
|
|
412
|
-
- [`0960598`](https://github.com/voucherifyio/voucherify-js-sdk/commit/09605985dfa33b5902ce1f4994a1cb17526a8407) [#154](https://github.com/voucherifyio/voucherify-js-sdk/pull/154) Thanks [@Davies-Owen](https://github.com/Davies-Owen)! - Add missing property to OrdersCreateResponse interface
|
|
413
|
-
|
|
414
|
-
## 2.0.15
|
|
415
|
-
|
|
416
|
-
### Patch Changes
|
|
417
|
-
|
|
418
|
-
- [`62525f3`](https://github.com/voucherifyio/voucherify-js-sdk/commit/62525f329bcfc8281d72bd953d8a0b5eeb9982e5) [#152](https://github.com/voucherifyio/voucherify-js-sdk/pull/152) Thanks [@darekg11](https://github.com/darekg11)! - Added missing properties to OrdersItem interface
|
|
419
|
-
|
|
420
|
-
## 2.0.14
|
|
421
|
-
|
|
422
|
-
### Patch Changes
|
|
423
|
-
|
|
424
|
-
- [`98629ca`](https://github.com/voucherifyio/voucherify-js-sdk/commit/98629ca596f1b475ca0ac43ece408738acfc9970) [#149](https://github.com/voucherifyio/voucherify-js-sdk/pull/149) Thanks [@darekg11](https://github.com/darekg11)! - Drop not required customer id property when running promotion validation. Add missing proeprties to promotion validation response
|
|
425
|
-
|
|
426
|
-
## 2.0.13
|
|
427
|
-
|
|
428
|
-
### Patch Changes
|
|
429
|
-
|
|
430
|
-
- [`ff07c8a`](https://github.com/voucherifyio/voucherify-js-sdk/commit/ff07c8adb204c575e656a48beea4a927d311b89a) [#144](https://github.com/voucherifyio/voucherify-js-sdk/pull/144) Thanks [@darekg11](https://github.com/darekg11)! - Add missing 'name', 'start_date' and 'expiration_date' properties to PromotionsValidateResponse interface
|
|
431
|
-
|
|
432
|
-
## 2.0.12
|
|
433
|
-
|
|
434
|
-
### Patch Changes
|
|
435
|
-
|
|
436
|
-
- [`df19c77`](https://github.com/voucherifyio/voucherify-js-sdk/commit/df19c7771be945b1d8708a8992f82e22ce098641) [#141](https://github.com/voucherifyio/voucherify-js-sdk/pull/141) Thanks [@darekg11](https://github.com/darekg11)! - Override SimpleCustomer type to make 'id' property not required in 'RedemptionsRedeemBody' interface since passing ID of customer when redeeming is not required by design
|
|
437
|
-
|
|
438
|
-
## 2.0.11
|
|
439
|
-
|
|
440
|
-
### Patch Changes
|
|
441
|
-
|
|
442
|
-
- [`ae6110b`](https://github.com/voucherifyio/voucherify-js-sdk/commit/ae6110b1ec8022c80a8f05f16e5c9de0e6cae180) [#137](https://github.com/voucherifyio/voucherify-js-sdk/pull/137) Thanks [@darekg11](https://github.com/darekg11)! - Added support for orders import API
|
|
443
|
-
|
|
444
|
-
## 2.0.10
|
|
445
|
-
|
|
446
|
-
### Patch Changes
|
|
447
|
-
|
|
448
|
-
- [`e03db27`](https://github.com/voucherifyio/voucherify-js-sdk/commit/e03db276226a579e7d886a8acb5db58b703a6989) [#136](https://github.com/voucherifyio/voucherify-js-sdk/pull/136) Thanks [@darekg11](https://github.com/darekg11)! - Added documentation links to MetadataSchemas API methods
|
|
449
|
-
|
|
450
|
-
* [`a8557d1`](https://github.com/voucherifyio/voucherify-js-sdk/commit/a8557d1c70f0732c6996175d3b1e917c29986cee) [#134](https://github.com/voucherifyio/voucherify-js-sdk/pull/134) Thanks [@salzhrani](https://github.com/salzhrani)! - add metadata property to ProductsCreateResponse
|
|
451
|
-
|
|
452
|
-
## 2.0.9
|
|
453
|
-
|
|
454
|
-
### Patch Changes
|
|
455
|
-
|
|
456
|
-
- [`e52b787`](https://github.com/voucherifyio/voucherify-js-sdk/commit/e52b787f48a5aa763d2aaa61b3d28a701548d3cc) [#131](https://github.com/voucherifyio/voucherify-js-sdk/pull/131) Thanks [@tomek-lochmanczyk-rspective](https://github.com/tomek-lochmanczyk-rspective)! - Add function which return "Retry-After" header from response. The purpose is to get information how long it's needed to wait until new requests can be made, when api limits are reached. This ddition is backward compatible so no changes are needed to be made in older code
|
|
457
|
-
|
|
458
|
-
## 2.0.8
|
|
459
|
-
|
|
460
|
-
### Patch Changes
|
|
461
|
-
|
|
462
|
-
- [`e965f61`](https://github.com/voucherifyio/voucherify-js-sdk/commit/e965f615ada65812553a0e5df4409ccf6e02dae1) [#129](https://github.com/voucherifyio/voucherify-js-sdk/pull/129) Thanks [@Irene350](https://github.com/Irene350)! - Adding missing discount amounts on order for validate voucher type response
|
|
463
|
-
|
|
464
|
-
## 2.0.7
|
|
465
|
-
|
|
466
|
-
### Patch Changes
|
|
467
|
-
|
|
468
|
-
- [`7913a06`](https://github.com/voucherifyio/voucherify-js-sdk/commit/7913a06bb3ab6c79bcbfae8ddbff0bcc8329dd73) [#127](https://github.com/voucherifyio/voucherify-js-sdk/pull/127) Thanks [@Irene350](https://github.com/Irene350)! - Improving Validate Voucher response type
|
|
469
|
-
|
|
470
|
-
## 2.0.6
|
|
471
|
-
|
|
472
|
-
### Patch Changes
|
|
473
|
-
|
|
474
|
-
- [`f8241b7`](https://github.com/voucherifyio/voucherify-js-sdk/commit/f8241b709097f53e29427ba4f4260073375ec91c) [#125](https://github.com/voucherifyio/voucherify-js-sdk/pull/125) Thanks [@darekg11](https://github.com/darekg11)! - Added support for metadata-schemas API. Allowing to list all metadata schemas in project or retrieve single one via get method by providing schema name
|
|
475
|
-
|
|
476
|
-
## 2.0.5
|
|
477
|
-
|
|
478
|
-
### Patch Changes
|
|
479
|
-
|
|
480
|
-
- [`a7811e7`](https://github.com/voucherifyio/voucherify-js-sdk/commit/a7811e7e2939efe7a4c59c004dbc9591fcd73030) [#121](https://github.com/voucherifyio/voucherify-js-sdk/pull/121) Thanks [@jkaliszuk](https://github.com/jkaliszuk)! - Added logic that allow to storage lastResponseHeaders data and get apiLimit through ApiLimitsHandler
|
|
481
|
-
|
|
482
|
-
## 2.0.4
|
|
483
|
-
|
|
484
|
-
### Patch Changes
|
|
485
|
-
|
|
486
|
-
- [`f411c1a`](https://github.com/voucherifyio/voucherify-js-sdk/commit/f411c1a56085d80560fdca634e5fdc059a556091) [#119](https://github.com/voucherifyio/voucherify-js-sdk/pull/119) Thanks [@darekg11](https://github.com/darekg11)! - Added support for stackable API methods - validation, redemptions, rollback for both Server Side and Client Side SDKs. Added some missing fields in already existing types definitions and cleaned up other definitions by reusing interfaces
|
|
487
|
-
|
|
488
|
-
## 2.0.3
|
|
489
|
-
|
|
490
|
-
### Patch Changes
|
|
491
|
-
|
|
492
|
-
- [`da9e103`](https://github.com/voucherifyio/voucherify-js-sdk/commit/da9e103a43590b55cb80d64e1743f7ede1e09946) [#117](https://github.com/voucherifyio/voucherify-js-sdk/pull/117) Thanks [@darekg11](https://github.com/darekg11)! - Added support for listing customer activities by customerId. Additionally user can pass query params allowing for better filtering. API Reference: https://docs.voucherify.io/reference/get-customer-activities
|
|
493
|
-
|
|
494
|
-
## 2.0.2
|
|
495
|
-
|
|
496
|
-
### Patch Changes
|
|
497
|
-
|
|
498
|
-
- [`b5f04fa`](https://github.com/voucherifyio/voucherify-js-sdk/commit/b5f04fa09db6849f514910747a5ac9a721f63891) [#112](https://github.com/voucherifyio/voucherify-js-sdk/pull/112) Thanks [@darekg11](https://github.com/darekg11)! - Query params passed to `this.client.post` method are now correctly stringified. Added possibility to pass query params to `voucherify.promotions.validate` method in order to allow developers using SDK to pass advanced filters to restrict possible range of promotion campaigns against which validation should be performed.
|
|
499
|
-
|
|
500
|
-
## 2.0.1
|
|
501
|
-
|
|
502
|
-
### Patch Changes
|
|
503
|
-
|
|
504
|
-
- [`532e82b`](https://github.com/voucherifyio/voucherify-js-sdk/commit/532e82b2bd3a5991a0fd83af2edc226c6c98c680) [#105](https://github.com/voucherifyio/voucherify-js-sdk/pull/105) Thanks [@jfougere](https://github.com/jfougere)! - Fix missing session attributes in client side validation request
|
|
505
|
-
|
|
506
|
-
## 2.0.0
|
|
507
|
-
|
|
508
|
-
### Major Changes
|
|
509
|
-
|
|
510
|
-
- [`c5c8b97`](https://github.com/voucherifyio/voucherify-js-sdk/commit/c5c8b97ac9aa230ed77012c2782643df7caf119b) [#93](https://github.com/voucherifyio/voucherify-js-sdk/pull/93) Thanks [@awilczek](https://github.com/awilczek)! - Support new async API methods
|
|
511
|
-
|
|
512
|
-
Changes:
|
|
513
|
-
|
|
514
|
-
- Campaign vouchers import
|
|
515
|
-
- added CampaignsVouchersImportResponse
|
|
516
|
-
- Vouchers import
|
|
517
|
-
- added VouchersImportResponse
|
|
518
|
-
- Vouchers bulkUpdate
|
|
519
|
-
- using new API method
|
|
520
|
-
- **BREAKING** change of VouchersBulkUpdateResponse
|
|
521
|
-
- **BREAKING** obligatory 'metadata' field in VouchersBulkUpdateObject
|
|
522
|
-
- Vouchers bulkUpdateMetadata
|
|
523
|
-
- using new API method
|
|
524
|
-
- **BREAKING** change of VouchersBulkUpdateMetadataResponse
|
|
525
|
-
- **BREAKING** obligatory 'metadata' field in VouchersBulkUpdateMetadata
|
|
526
|
-
- Products bulkUpdate
|
|
527
|
-
- using [new API method](https://docs.voucherify.io/reference/post-products-in-bulk)
|
|
528
|
-
- **BREAKING** change of ProductsBulkUpdateResponse
|
|
529
|
-
- Products bulkUpdateMetadata
|
|
530
|
-
- using [new API method](https://docs.voucherify.io/reference/async-update-products-metadata-in-bulk)
|
|
531
|
-
- **BREAKING** change of method name
|
|
532
|
-
- **BREAKING** change of ProductsBulkUpdateMetadataResponse
|
|
533
|
-
- Products getSku
|
|
534
|
-
- using [new API method](https://docs.voucherify.io/reference/get-sku-v20210726)
|
|
535
|
-
- **BREAKING** change of method params
|
|
536
|
-
- changed in CR fixes
|
|
537
|
-
|
|
538
|
-
## 1.3.1
|
|
539
|
-
|
|
540
|
-
### Patch Changes
|
|
541
|
-
|
|
542
|
-
- [`8ff9b8d`](https://github.com/voucherifyio/voucherify-js-sdk/commit/8ff9b8d6e2535b524b2d5707a69ffd3ced4b2254) [#95](https://github.com/voucherifyio/voucherify-js-sdk/pull/95) Thanks [@pannga](https://github.com/pannga)! - Version 1.3.0 enabled encoding in RequestController - it was used to fix encoding for both server side and client side SDKs. This introduced issue, as we did not notice that ClientSide get methods were explicitly encoding query params (toQueryParams function). That meant the query params were encoded twice and that lead to issues with characters such as %.
|
|
543
|
-
|
|
544
|
-
## 1.3.0
|
|
545
|
-
|
|
546
|
-
### Minor Changes
|
|
547
|
-
|
|
548
|
-
- [`bc0b14b`](https://github.com/voucherifyio/voucherify-js-sdk/commit/bc0b14b56c3b91896e0fbf50e040cee11b24bc4e) [#91](https://github.com/voucherifyio/voucherify-js-sdk/pull/91) Thanks [@pannga](https://github.com/pannga)! - Fixed wrong Qs arrayFormat
|
|
549
|
-
|
|
550
|
-
## 1.2.0
|
|
551
|
-
|
|
552
|
-
### Minor Changes
|
|
553
|
-
|
|
554
|
-
- [`0425e2b`](https://github.com/voucherifyio/voucherify-js-sdk/commit/0425e2b27b9bead05c828af9c6b4e369e6df2b21) [#88](https://github.com/voucherifyio/voucherify-js-sdk/pull/88) Thanks [@darekg11](https://github.com/darekg11)! - Allow to pass additional headers to requests made to Voucherify API. Custom headers can be passed via 'customHeaders' option available in VoucherifyServerSideOptions and VoucherifyClientSideOptions. Such option might prove to be useful when debugging
|
|
555
|
-
|
|
556
|
-
## 1.1.0
|
|
557
|
-
|
|
558
|
-
### Minor Changes
|
|
559
|
-
|
|
560
|
-
- [`16019cf`](https://github.com/voucherifyio/voucherify-js-sdk/commit/16019cf22b4604c609b3baac488b46a334279424) [#79](https://github.com/voucherifyio/voucherify-js-sdk/pull/79) Thanks [@mandraszyk](https://github.com/mandraszyk)! - Async Actions API support added
|
|
561
|
-
|
|
562
|
-
## 1.0.1
|
|
563
|
-
|
|
564
|
-
### Patch Changes
|
|
565
|
-
|
|
566
|
-
- [`39276e4`](https://github.com/voucherifyio/voucherify-js-sdk/commit/39276e4e5d199fe4a15e0a64f55b07949c23be30) [#74](https://github.com/voucherifyio/voucherify-js-sdk/pull/74) Thanks [@pannga](https://github.com/pannga)! - Updated changesets/cli to the latest version
|
|
567
|
-
|
|
568
|
-
* [`39276e4`](https://github.com/voucherifyio/voucherify-js-sdk/commit/39276e4e5d199fe4a15e0a64f55b07949c23be30) [#74](https://github.com/voucherifyio/voucherify-js-sdk/pull/74) Thanks [@pannga](https://github.com/pannga)! - Removed \$FixMe types
|
|
569
|
-
|
|
570
|
-
- [`0d5b2c0`](https://github.com/voucherifyio/voucherify-js-sdk/commit/0d5b2c06087f15d0bfcbd67d50ee4deaf5d9883e) [#70](https://github.com/voucherifyio/voucherify-js-sdk/pull/70) Thanks [@pannga](https://github.com/pannga)! - Updated examples and documentation.
|
|
571
|
-
|
|
572
|
-
## 1.0.0
|
|
573
|
-
|
|
574
|
-
### Major Changes
|
|
575
|
-
|
|
576
|
-
- [`2a00746`](https://github.com/voucherifyio/voucherify-js-sdk/commit/2a00746599004b6a649bc6d892e9adbd8f413f81) [#69](https://github.com/voucherifyio/voucherify-js-sdk/pull/69) Thanks [@pannga](https://github.com/pannga)! - The first major version combines previously maintained Voucherify Node.js SDK and Voucherify.js. See Migration Guide to see what is changed.
|
|
577
|
-
|
|
578
|
-
### Patch Changes
|
|
579
|
-
|
|
580
|
-
- [`7c491eb`](https://github.com/voucherifyio/voucherify-js-sdk/commit/7c491eb9a3a786e044a7f5e31c1a1529157d69e8) [#19](https://github.com/voucherifyio/voucherify-js-sdk/pull/19) Thanks [@pannga](https://github.com/pannga)! - Distributions types
|
|
581
|
-
|
|
582
|
-
- Used FixMe convention for unknown types
|
|
583
|
-
- Added Distributions types
|
|
584
|
-
- Removed deprecated method
|
|
585
|
-
- Updated Distribution types
|
|
586
|
-
|
|
587
|
-
* [`29f69e1`](https://github.com/voucherifyio/voucherify-js-sdk/commit/29f69e1a499c1576058e915bd683812b6c7a363c) [#28](https://github.com/voucherifyio/voucherify-js-sdk/pull/28) Thanks [@pannga](https://github.com/pannga)! - Added Rewards types
|
|
588
|
-
|
|
589
|
-
- [`dec48a0`](https://github.com/voucherifyio/voucherify-js-sdk/commit/dec48a08f5d3b2907a9533c95e3e15f3d2c10dd4) [#20](https://github.com/voucherifyio/voucherify-js-sdk/pull/20) Thanks [@pannga](https://github.com/pannga)! - Added Campaigns types
|
|
590
|
-
|
|
591
|
-
* [`4d01aad`](https://github.com/voucherifyio/voucherify-js-sdk/commit/4d01aad667312797c83e027d0d871afaeb7e4d12) [#18](https://github.com/voucherifyio/voucherify-js-sdk/pull/18) Thanks [@pannga](https://github.com/pannga)! - Updated Consents types
|
|
592
|
-
|
|
593
|
-
- [`0098874`](https://github.com/voucherifyio/voucherify-js-sdk/commit/0098874bb15c1b902fdb5f4ecff19d72beec0596) [#15](https://github.com/voucherifyio/voucherify-js-sdk/pull/15) Thanks [@pannga](https://github.com/pannga)! - Added ClientSide types
|
|
594
|
-
|
|
595
|
-
* [`1dec176`](https://github.com/voucherifyio/voucherify-js-sdk/commit/1dec176817f2d1b5e6a5c959f0cbca3c7ae63a6b) [#30](https://github.com/voucherifyio/voucherify-js-sdk/pull/30) Thanks [@pannga](https://github.com/pannga)! - Added Validation Rules types
|
|
596
|
-
|
|
597
|
-
- [`0098874`](https://github.com/voucherifyio/voucherify-js-sdk/commit/0098874bb15c1b902fdb5f4ecff19d72beec0596) [#15](https://github.com/voucherifyio/voucherify-js-sdk/pull/15) Thanks [@pannga](https://github.com/pannga)! - Updated types for client side publish method
|
|
598
|
-
|
|
599
|
-
* [`dec48a0`](https://github.com/voucherifyio/voucherify-js-sdk/commit/dec48a08f5d3b2907a9533c95e3e15f3d2c10dd4) [#20](https://github.com/voucherifyio/voucherify-js-sdk/pull/20) Thanks [@pannga](https://github.com/pannga)! - added missing method for publishing a ceratin voucher to selected campaign
|
|
600
|
-
|
|
601
|
-
- [`18bd006`](https://github.com/voucherifyio/voucherify-js-sdk/commit/18bd0061268a44b4cf00f431d55913df8b7087ce) [#25](https://github.com/voucherifyio/voucherify-js-sdk/pull/25) Thanks [@pannga](https://github.com/pannga)! - Added Promotions types
|
|
602
|
-
|
|
603
|
-
* [`3276101`](https://github.com/voucherifyio/voucherify-js-sdk/commit/32761019b9653ea00c9af8cd76b20e8736779ddf) [#29](https://github.com/voucherifyio/voucherify-js-sdk/pull/29) Thanks [@pannga](https://github.com/pannga)! - Added Segments types & missing Segment List method
|
|
604
|
-
|
|
605
|
-
- [`93adf99`](https://github.com/voucherifyio/voucherify-js-sdk/commit/93adf99c55cc43c09e0deaf8fae025676ac3b0a7) [#23](https://github.com/voucherifyio/voucherify-js-sdk/pull/23) Thanks [@pannga](https://github.com/pannga)! - Added Orders types
|
|
606
|
-
|
|
607
|
-
* [`c27f5b2`](https://github.com/voucherifyio/voucherify-js-sdk/commit/c27f5b28651602afc5800f71bba83c9aaf7bc7fe) [#24](https://github.com/voucherifyio/voucherify-js-sdk/pull/24) Thanks [@pannga](https://github.com/pannga)! - Added Products types
|
|
608
|
-
|
|
609
|
-
- [`2321908`](https://github.com/voucherifyio/voucherify-js-sdk/commit/2321908bf2f72ad696bc97e0ceff4d34c10f106d) [#31](https://github.com/voucherifyio/voucherify-js-sdk/pull/31) Thanks [@pannga](https://github.com/pannga)! - Added Validation types
|
|
610
|
-
|
|
611
|
-
* [`0098874`](https://github.com/voucherifyio/voucherify-js-sdk/commit/0098874bb15c1b902fdb5f4ecff19d72beec0596) [#15](https://github.com/voucherifyio/voucherify-js-sdk/pull/15) Thanks [@pannga](https://github.com/pannga)! - Used FixMe convention for unknown types
|
|
612
|
-
|
|
613
|
-
- [`e90cdec`](https://github.com/voucherifyio/voucherify-js-sdk/commit/e90cdec6a6d0f786d3a9cc5bbe7649ea5d2eec46) [#33](https://github.com/voucherifyio/voucherify-js-sdk/pull/33) Thanks [@pannga](https://github.com/pannga)! - Added Vouchers types
|
|
614
|
-
|
|
615
|
-
* [`4d01aad`](https://github.com/voucherifyio/voucherify-js-sdk/commit/4d01aad667312797c83e027d0d871afaeb7e4d12) [#18](https://github.com/voucherifyio/voucherify-js-sdk/pull/18) Thanks [@pannga](https://github.com/pannga)! - Added Consents type
|
|
616
|
-
|
|
617
|
-
- [`8628825`](https://github.com/voucherifyio/voucherify-js-sdk/commit/8628825df7e5a2ddfd746923277d162abd4ca516) [#27](https://github.com/voucherifyio/voucherify-js-sdk/pull/27) Thanks [@pannga](https://github.com/pannga)! - Added Redemptions types
|
|
618
|
-
|
|
619
|
-
* [`0098874`](https://github.com/voucherifyio/voucherify-js-sdk/commit/0098874bb15c1b902fdb5f4ecff19d72beec0596) [#15](https://github.com/voucherifyio/voucherify-js-sdk/pull/15) Thanks [@pannga](https://github.com/pannga)! - Added missing ClientSide types
|
|
620
|
-
|
|
621
|
-
- [`022b037`](https://github.com/voucherifyio/voucherify-js-sdk/commit/022b03753898801b083f45e6633a5ed97d22c2f6) [#17](https://github.com/voucherifyio/voucherify-js-sdk/pull/17) Thanks [@pannga](https://github.com/pannga)! - Added Events types
|
|
622
|
-
|
|
623
|
-
* [`022b037`](https://github.com/voucherifyio/voucherify-js-sdk/commit/022b03753898801b083f45e6633a5ed97d22c2f6) [#17](https://github.com/voucherifyio/voucherify-js-sdk/pull/17) Thanks [@pannga](https://github.com/pannga)! - Updated Events types
|
|
624
|
-
|
|
625
|
-
- [`920b5dd`](https://github.com/voucherifyio/voucherify-js-sdk/commit/920b5dd1c95bc7b3b3b85b60d4b8aa7ebbddcaa9) [#26](https://github.com/voucherifyio/voucherify-js-sdk/pull/26) Thanks [@pannga](https://github.com/pannga)! - Added Promotion Tiers types
|
|
626
|
-
|
|
627
|
-
* [`ed1de95`](https://github.com/voucherifyio/voucherify-js-sdk/commit/ed1de95e84282971c6f3fcc0875e67d2962194b6) [#21](https://github.com/voucherifyio/voucherify-js-sdk/pull/21) Thanks [@pannga](https://github.com/pannga)! - Added Loyalties types
|
|
628
|
-
|
|
629
|
-
- [`20752b9`](https://github.com/voucherifyio/voucherify-js-sdk/commit/20752b921f824c8bbbfc4b7197b0b87612eb760d) [#22](https://github.com/voucherifyio/voucherify-js-sdk/pull/22) Thanks [@pannga](https://github.com/pannga)! - Added Exports types
|
|
630
|
-
|
|
631
|
-
## 0.0.5
|
|
632
|
-
|
|
633
|
-
### Patch Changes
|
|
634
|
-
|
|
635
|
-
- [`1036e5d`](https://github.com/voucherifyio/voucherify-js-sdk/commit/1036e5d7507421faf4bea80bfe6bab9cf6a5f0b3) [#12](https://github.com/voucherifyio/voucherify-js-sdk/pull/12) Thanks [@eddyw](https://github.com/eddyw)! - Generate UMD bundle
|
|
636
|
-
|
|
637
|
-
## 0.0.4
|
|
638
|
-
|
|
639
|
-
### Patch Changes
|
|
640
|
-
|
|
641
|
-
- [`e3285c5`](https://github.com/voucherifyio/voucherify-js-sdk/commit/e3285c5c2f20d65a4b767c3d9eebdef9172259a1) [#10](https://github.com/voucherifyio/voucherify-js-sdk/pull/10) Thanks [@eddyw](https://github.com/eddyw)! - Export missing types
|
|
642
|
-
|
|
643
|
-
- export missing type `CustomerRequest`
|
|
644
|
-
- export missing type `CustomersCommonListRequest`
|
|
645
|
-
|
|
646
|
-
## 0.0.3
|
|
647
|
-
|
|
648
|
-
### Patch Changes
|
|
649
|
-
|
|
650
|
-
- [`ca8e470`](https://github.com/voucherifyio/voucherify-js-sdk/commit/ca8e470c1cb5bfb33d642069f40f3315d89b89d2) [#6](https://github.com/voucherifyio/voucherify-js-sdk/pull/6) Thanks [@eddyw](https://github.com/eddyw)! - - Add JSDoc comments to all namespaces with links to https://docs.voucherify.io/
|
|
651
|
-
- setup typedoc to generate automatic documentation
|
|
652
|
-
|
|
653
|
-
## 0.0.2
|
|
654
|
-
|
|
655
|
-
### Patch Changes
|
|
656
|
-
|
|
657
|
-
- [`8e49408`](https://github.com/voucherifyio/voucherify-js-sdk/commit/8e494083837e8e932c26b3cad08479f4015ec2fc) [#5](https://github.com/voucherifyio/voucherify-js-sdk/pull/5) Thanks [@eddyw](https://github.com/eddyw)! - First SDK release
|