@fanpoints/server-js v0.2.30
@fanpoints/server-js
A javascript SDK to integrate FanPoints into your server.
0.2.30 - 2025-02-21
Added
- An method returning the credit cards of a user has been added to the
UserModule(getUserCreditCards).
0.2.29 - 2025-02-09
Added
- Bids now have an attribute
isAutomaticBidthat indicates whether the bid was made automatically or not.
0.2.28 - 2025-01-27
Added
- Shop items can now be
featured.
0.2.27 - 2024-12-02
Added
- The
bidOnItemmethod now accepts auseAutomaticBiddingparameter that allows to specify whether to use automatic bidding.
0.2.26 - 2024-11-16
Changed
- The addresses argument of the function
changeAdditionalUserInfonow accepts azipCodeattribute instead of azip_codeattribute.
0.2.25 - 2024-11-16
Changed
- The function
addUsernow also returns the name and addresses of the created user (which will both be empty for new users).
0.2.24 - 2024-11-15
Added
- The function
createTixevoFanPointsPaymentSessionhas been added to theFanPointsModuleclass. This allows to create a payment session for loyalty programs connected to Tixevo.
Changed
- Both methods to create payment sessions now allow to specify a webhook URL which is called after the payment is completed.
0.2.23 - 2024-11-15
Changed
- The build scripts were changed to explicitly name the ESM module as
index.mjsto allow Vercel to correctly use the ESM module instead of the CJS module.
0.2.20 - 2024-11-09
Changed
- The ordering arguments for the
createFanPointsPaymentSessionhave been slightly improved to allow easier use.
0.2.19 - 2024-11-09
Changed
- The arguments for the
createFanPointsPaymentSessionhave been improved to allow easier use. The option to show the price in the currency of the partner has been removed.
0.2.18 - 2024-10-26
Added
- The
registerTixevoCheckoutquery now raises an error if the Tixevo configuration is not set in the dashboard.
0.2.17 - 2024-10-22
Added
- The
getUserParticipationsquery has been added which returns the lotteries and auctions where a user is currently participating.
0.2.16 - 2024-10-19
Changed
- The
registerTixevoCheckoutmethod now works with a loyalty program client instead of a partner client. The correct partner is assigned automatically by the backend using the Tixevo configuration set in the dashboard.
0.2.15 - 2024-10-19
Changed
- Refreshing a token should finally work correctly by explicitly decoding the token and checking if it has expired.
0.2.14 - 2024-10-18
Changed
- After refreshing a refresh token, the SDK now correctly retries the request even when there it consists of a single GraphQl query.
0.2.13 - 2024-10-18
Changed
- The
addUserquery now returns the user's mail address, the Fanpoints user id and the external user id.
0.2.12 - 2024-10-18
Added
- The queries
getUsernow return the user's name and addresses. The querychangeAdditionalUserInfocan be used to change the user's name and addresses.
0.2.11 - 2024-10-14
Added
- The queries
getMarketplaceItemsandgetMarketplaceItemnow return thereadableObjectIdof the item. They can be used in all other marketplace queries.
0.2.10 - 2024-10-12
Added
- The query
getLotteryStatushas been added that allows to query the current status of the lottery and potential number of tickets bought by the user. - All marketplace items now have a
numAvailableattribute that indicates how many items are still left. - All marketplace distribution policies now have a
isRecentlyAvailableattribute that indicate if the item was added within the last week. - The obtained products now have a flag
hasBeenUndonethat indicates if the purchase has been undone.
0.2.9 - 2024-10-11
Changed
- The build scripts were changed to use ESM instead of CJS.
0.2.8 - 2024-10-10
Added
- Some marketplace types are now exported for easier use of the rewards.
Changed
- Auctions now return the number of bids and the current highest bid.
getAuctionStatusnow also works without user_id.
0.2.7 - 2024-10-01
Added
- The method
createFanPointsPaymentSessionhas been added to theFanPointsModule, allowing an alternative payment flow where the user is redirected to a dedicated FanPoints checkout page hosted by the loyalty program.
0.2.6 - 2024-09-08
Changed
- The method
registerTixevoTransactionhas been renamed toregisterTixevoCheckout.
0.2.5 - 2024-09-08
Added
- A new method
registerTixevoTransactionhas been added, allowing to register a raw checkout with Tixevo.
0.2.4 - 2024-07-29
Added
- The prizes module has been added to the SDK. It allows to open lootboxes and claim prizes.
Changed
- The
getPurchasesmethod in theMarketplaceModulehas been renamed togetObtainedProductsto better reflect that it also returns products obtained through other means like lootboxes.
0.2.3 - 2024-07-29
Changed
- The shop modules has been renamed to marketplace module and the methods have been updated to work with the new marketplace API.
0.2.2 - 2024-07-02
Added
- The methods
createPartnerClientandcreateLoyaltyProgramClientmethods have been added for easier client creation.
0.2.1 - 2024-07-02
Added
- The
estimateGivenOutFanPointsOnPurchasequery has been added that allows to estimate the number of Fan Points that will be given out for a given purchase.
Changed
- The purchase queries in the
FanPointsmodule now return the full partner associated with the purchase.
0.2.0 - 2024-06-10
Added
- The
shopmodule has been added to the SDK. This module allows a loyalty program to retrieve the items currently listed in the shop and the products bought by users. Furthermore, it allows to let users purchase items from the shop, to purchase lottery tickets, and to place bids on bidding items.
0.1.25 - 2024-06-03
Added
- The
getUserPassesmethod has been added to retrieve the Google Wallet and Apple Wallet passes of a user.
0.1.24 - 2024-03-02
Added
- The
pingmethod has been added to check if the API is reachable.
0.1.23 - 2024-02-14
Changed
- A type in the return value of
fanpoints.getBalancehas been fixed.
0.1.22 - 2024-02-14
Added
- The
fanPoints.getPriceInFanPointsmethod has been added and allows to query the price of a purchase in fan points.
Changed
- The
fanpoints.getBalancemethod now returns an object that also contains the monetary amount the user can spend with their fan points.
0.1.21 - 2024-02-14
Changed
- When configuring a partner (upon calling
createClient), one now has to set a default currency using thedefaultCurrencyattribute.
0.1.20 - 2024-02-14
Added
- The query
fanPoints.getTransactionhas been added and allows to query a single purchase transaction.
Changed
In the
fanPoints.giveFanPointsOnPurchaseand thefanPoints.payPurchaseWithFanPointsmethods, you can now set thecustomPurchaseItemIdattribute on every item to specify your own item id.Some error messages have been improved.
0.1.20 - 2024-02-14
Added
- The query
fanPoints.getTransactionhas been added and allows to query a single purchase transaction.
Changed
In the
fanPoints.giveFanPointsOnPurchaseand thefanPoints.payPurchaseWithFanPointsmethods, you can now set thecustomPurchaseItemIdattribute on every item to specify your own item id.Some error messages have been improved.
0.1.19 - 2024-02-11
Changed
In the
fanPoints.giveFanPointsOnPurchasemethod, therateCategoryparameter has been renamed torateLabelto be aligned with the backend.In the
fanPoints.payPurchaseWithFanPointsmethod, therateLabelparameter has been removed as the rate for purchases is always the same.The API configuration has been changed to a new endpoint. The old endpoint is not available anymore.
11 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
1 year ago
1 year ago
9 months ago
9 months ago
10 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago