Skip to content

Releases: talon-one/talon_one.js

v9.0.0

25 Sep 13:55
e221622
Compare
Choose a tag to compare

Summary

New endpoints

Integration API

generateLoyaltyCard | POST /v1/loyalty_programs/{loyaltyProgramId}/cards | Generate loyalty card

Management API

createBatchLoyaltyCards | POST /v1/loyalty_programs/{loyaltyProgramId}/cards/batch | Create loyalty cards
createCouponsDeletionJob | POST /v1/applications/{applicationId}/campaigns/{campaignId}/coupons_deletion_jobs | Creates a coupon deletion job
disconnectCampaignStores | DELETE /v1/applications/{applicationId}/campaigns/{campaignId}/stores | Disconnect stores
exportCampaignStores | GET /v1/applications/{applicationId}/campaigns/{campaignId}/stores/export | Export stores
exportLoyaltyCards | GET /v1/loyalty_programs/{loyaltyProgramId}/cards/export | Export loyalty cards
importCampaignStores | POST /v1/applications/{applicationId}/campaigns/{campaignId}/stores/import | Import stores
oktaEventHandlerChallenge | GET /v1/provisioning/okta | Validate Okta API ownership
scimCreateUser | POST /v1/provisioning/scim/Users | Create SCIM user
scimDeleteUser | DELETE /v1/provisioning/scim/Users/{userId} | Delete SCIM user
scimGetResourceTypes | GET /v1/provisioning/scim/ResourceTypes | List supported SCIM resource types
scimGetSchemas | GET /v1/provisioning/scim/Schemas | List supported SCIM schemas
scimGetServiceProviderConfig | GET /v1/provisioning/scim/ServiceProviderConfig | Get SCIM service provider configuration
scimGetUser | GET /v1/provisioning/scim/Users/{userId} | Get SCIM user
scimGetUsers | GET /v1/provisioning/scim/Users | List SCIM users
scimPatchUser | PATCH /v1/provisioning/scim/Users/{userId} | Update SCIM user attributes
scimReplaceUserAttributes | PUT /v1/provisioning/scim/Users/{userId} | Update SCIM user

Changes

Management API

activateUserByEmail | POST /v1/users/activate | Enable user by email address
deactivateUserByEmail | POST /v1/users/deactivate | Disable user by email address

v8.0.0

11 Jun 05:49
9e84202
Compare
Choose a tag to compare

Summary

New endpoints

Management API

Changes

The disabled and archived campaign states were added.

⚠️ Deprecation Notice

  • The GET /v1/roles endpoint was deprecated. Please use the new one GET /v2/roles
  • The GET /v1/roles/{roleId} endpoint was deprecated. Please use the new one GET /v2/roles/{roleId}

v7.0.0

v6.0.1: update superagent

02 Apr 12:59
66ba55e
Compare
Choose a tag to compare
Merge pull request #34 from talon-one/sc-35535-update-superagent-depe…

…ndency-in-javascript

v6.0.1: update superagent

v6.0.0: Stores

08 Dec 15:12
854d230
Compare
Choose a tag to compare

Summary

New endpoints

Integration API

Management API

Changes:

⚠️ Deprecation Notice

  • The endpoint to create notification about campaign-related changes (POST /v1/applications/{applicationId}/notification_webhooks) was deprecated
  • The endpoint to delete notification about campaign-related changes (DELETE /v1/applications/{applicationId}/notification_webhooks/{notificationWebhookId}) was deprecated
  • The endpoint to get notification about campaign-related changes (GET /v1/applications/{applicationId}/notification_webhooks/{notificationWebhookId}) was deprecated
  • The endpoint to list notifications about campaign-related changes (GET /v1/applications/{applicationId}/notification_webhooks) was deprecated
  • The endpoint to update notification about campaign-related changes (PUT /v1/applications/{applicationId}/notification_webhooks/{notificationWebhookId}) was deprecated

v5.0.1-rc: Loyalty tiers import & List catalog items

07 Jun 15:45
241b1dd
Compare
Choose a tag to compare

Summary

Management API

⚠️ Deprecation Notice: Export customer loyalty balance to CSV endpoint

Please note that the Export customer loyalty balance to CSV endpoint is getting deprecated, please update your code to point at the new Export customer loyalty balances

v5.0.0: Reopen session endpoint, loyalty data integration endpoints and loyalty card management endpoints

09 May 16:29
590937c
Compare
Choose a tag to compare

v4.6.0: Collection Items, Catalog Sync, Effects in getCustomerSession & Loyalty Transactions retrieval

16 Aug 18:57
1479aad
Compare
Choose a tag to compare

v4.6.0

Collection Items, Catalog Sync, Effects in getCustomerSession & Loyalty Transactions retrieval

v4.5.0: Collections, EventsV2 & Partial Returns

10 Jun 10:35
17a98ee
Compare
Choose a tag to compare

v4.4.0: Customer Inventory Enhancements, Import Endpoints, Referral Updates & v1 integration endpoints deprecation

08 Nov 06:48
6ffae8c
Compare
Choose a tag to compare

Summary

Management API

Expose import endpoints as integral part of the SDK

All of our CSV import endpoints are accessible via the Web Application from the corresponding entity pages (refer to our Help Center for an example regarding Coupons).

Now these are also available endpoints as part of the SDK (links to our developer docs):

Example code snippet demonstrating import referrals using a CSV file:

// ...preparing api client...
// An example could be seen at the repository's README file: https://github.com/talon-one/talon_one.js#management-api
const fs = require('fs').promises

const referralsCSVFileContents = await fs.readFile('/path/to/import-referrals.csv')

const applicationId = 1
const campaignId = 2
const opts = {
  upFile: referralsCSVFileContents.toString()
}

apiInstance.importReferrals(applicationId, campaignId, opts).then(
  function(data) {
    console.log('Referrals imported successfully. Summary response:\n' + data);
  },
  function (error) {
    console.error("Error while importing referrals:\n" + error);
  }
);

☝️ Back to Table of Contents

Introduce updateReferral Endpoint

We introduced an endpoint to update referrals in order to allow updating their scheduling, usage limits and custom attributes attached to them.

Please consult the endpoint reference in our developer docs for more details.

☝️ Back to Table of Contents

Introduce ExportReferrals Endpoint

We introduced an endpoint to export referrals in an application or specific campaign as a CSV file.

Please consult the endpoint reference in our developer docs for more details and parameters.

☝️ Back to Table of Contents

Integration API

Extended Customer Inventory Endpoint

We have added a couple of useful data points to our customer inventory to make integration even simpler.

The customer inventory endpoint now has the ability to return giveaway codes that belong to the profile in query.
In order to learn more about setting up such campaigns refer to this help center article and this developer docs tutorial.

We have also extended the coupons objects that are returned as part of the inventory and attached these two useful data-points to each returned coupon:

  • profileRedemptionCount - holds the number of times the coupon was redeemed by the profile
  • state - holds the state of the coupon and can be one of the below values:
    • active: reserved coupons that are neither pending nor used nor expired, and have a non-exhausted limit counter
    • used: coupons that are not pending, and have reached their redemption limit or were redeemed by the profile before expiration
    • expired: all non-pending, non-active, non-used coupons that were not redeemed by the profile
    • pending: coupons that have a start date in the future

☝️ Back to Table of Contents

⚠️⚠️ Deprecation Notice: Integration API@v1 endpoints

Like we mentioned in the last few releases and months, from version 4.4.0 we won't include api@v1 endpoints as part of the official SDK.
The endpoints that are now deprecated are:

If you don't use these as part of your integration, please discard this section.

We will not remove the endpoints, and they will still be accessible to use as part of older SDK versions or custom calls over http.

We highly encourage migrating to the correspondent v2 endpoints for easier and more granular integration, as well as new features support (See our developer docs section about migrating to API V2.0).

☝️ Back to Table of Contents