@sesamy/sesamy-js 1.24.1 → 1.25.0

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/README.md CHANGED
@@ -18,59 +18,66 @@ The following events are tracked:
18
18
 
19
19
  The following methods are available on the `sesamy` object:
20
20
 
21
- - init: Initializes the sesamy-js library
21
+ Certainly! Here’s the list with bullet points sorted alphabetically:
22
+
23
+ - attributions
24
+ - get: get the attributions for a user
25
+ - set: set the attributions for a user
22
26
  - auth
23
27
  - getUser: fetches the user's profile
24
28
  - isAuthenticated: checks if the user is authenticated
25
29
  - loginWithRedirect: redirects the user to the login page
26
30
  - logout: logs the user out
27
31
  - setToken: stores a token in session storage
32
+ - bills
33
+ - get: get a bill by id
34
+ - list: lists all the user's bills
35
+ - clearCache: clears the cache for the sesamy-js library
36
+ - contracts
37
+ - cancel: cancel a contract by id
38
+ - get: get a contract by id
39
+ - list: lists all the user's contracts
28
40
  - entitlements
41
+ - access: fetches the user's access URL for an entitlement
29
42
  - get: gets a single entitlement by id
30
43
  - list: lists the user's entitlements
31
- - access: fetches the user's access url for an entitlement
32
44
  - signedLinks: lists and signedLinks registered in the current session
33
45
  - fulfillments
34
- - list: list the users fullfillments for a sku
46
+ - list: list the user's fulfillments for a SKU
47
+ - generateLink: creates a link to a Sesamy hosted service such as account, consume, or checkout. If the user is authenticated, the link will be signed so that the user can access the service without logging in again.
48
+ - getPaymentIssues: returns a list of failed payments and cards that will expire
49
+ - getVersion: returns the version of the sesamy-js library
50
+ - init: Initializes the sesamy-js library
51
+ - paywalls
52
+ - get: get a paywall by id
53
+ - product
54
+ - autoOnboard: trigger the auto-onboarding process for a product by SKU
55
+ - get: get a product by SKU
35
56
  - profile
36
57
  - get: fetches the user's profile
37
- - update: updates the user's profile
38
- - openHostedAccountPage: opens the hosted account page
39
58
  - isSpotifyLinked: returns true if the user has linked their Spotify account
59
+ - openHostedAccountPage: opens the hosted account page
40
60
  - unlinkSpotify: unlinks the user's Spotify account
61
+ - update: updates the user's profile
62
+ - subscriptions (deprecated, use contracts instead)
63
+ - list: lists all the user's subscriptions
41
64
  - tags
65
+ - delete: deletes a tag for the user
42
66
  - get: fetches the user's tags
43
67
  - set: sets a tag for the user
44
- - delete: deletes a tag for the user
45
- - userMetadata
46
- - get: get the user's metadata by id
47
- - list: list all the user's metadata
48
- - set: sets the user's metadata
49
- - delete: deletes the user's metadata by id
50
68
  - tallies
69
+ - delete: delete a tally by id
51
70
  - get: get a tally for a user by id
52
71
  - list: list all tallies for a user
53
72
  - push: push an item to a tally
54
- - delete: delete a tally by id
55
- - bills
56
- - get: get a bill by id
57
- - list: lists all the user's bills
58
- - contracts
59
- - get: get a contract by id
60
- - list: lists all the user's contracts
61
- - cancel: cancel a contract by id
62
- - transactions:
73
+ - transactions
63
74
  - get: get a transaction by id
64
75
  - list: lists all the user's transactions
65
- - subscriptions (deprecated, use contracts instead):
66
- - list: lists all the user's subscriptions
67
- - product
68
- - get: get a product by sku
69
- - autoOnboard: trigger the auto-onboarding process for a product by sku
70
- - getVersion: returns the version of the sesamy-js library
71
- - getPaymentIssues: returns a list of failed payments and cards that will expire
72
- - generateLink: creates a link to a sesamy hosted service such as account, consume or checkout. If the user is authenticated, the link will be signed so that the user can access the service without logging in again.
73
- - clearCache: clears the cache for the sesamy-js library
76
+ - userMetadata
77
+ - delete: deletes the user's metadata by id
78
+ - get: get the user's metadata by id
79
+ - list: list all the user's metadata
80
+ - set: sets the user's metadata
74
81
 
75
82
  ## Events
76
83
 
@@ -153,7 +160,7 @@ Checks if the user is currently authenticated. This function verifies the existe
153
160
 
154
161
  ### Returns
155
162
 
156
- - **boolean**: Returns `true` if the user is authenticated either via local storage tokens or the Auth0 client; otherwise, it returns `false`.
163
+ - boolean: Returns `true` if the user is authenticated either via local storage tokens or the Auth0 client; otherwise, it returns `false`.
157
164
 
158
165
  ### Example
159
166
 
@@ -389,16 +396,16 @@ console.log('Signed links:', signedLinks);
389
396
 
390
397
  ### Types
391
398
 
392
- - **GetEntitlementsOptions**: An object containing optional parameters for fetching entitlements.
399
+ - GetEntitlementsOptions: An object containing optional parameters for fetching entitlements.
393
400
 
394
401
  - `includeSignedLinks` (boolean, optional): Whether to include signed links. Defaults to `true`.
395
402
  - `waitForEntitlementAfter` (Date, optional): A date to filter entitlements that are available after the given date.
396
403
 
397
- - **Entitlement**: Represents an entitlement object.
404
+ - Entitlement: Represents an entitlement object.
398
405
 
399
- - **Access**: Represents the access details for an entitlement.
406
+ - Access: Represents the access details for an entitlement.
400
407
 
401
- - **SignedLink**: Represents a signed link for accessing an entitlement.
408
+ - SignedLink: Represents a signed link for accessing an entitlement.
402
409
 
403
410
  # Services
404
411