@takeal/cusfront-sdk 0.3.0 → 0.3.7

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/index.d.ts CHANGED
@@ -22,7 +22,7 @@ import { PushResource } from './resources/push.js';
22
22
  export { PushCapableRegistration, PushStatus, PushSubscriptionInput } from './resources/push.js';
23
23
  import { MeResource } from './resources/me.js';
24
24
  import { NotificationsResource } from './resources/notifications.js';
25
- export { InboxItem, ListNotificationsParams, NotificationCategory, NotificationCategoryPreferences, NotificationChannel, NotificationLocale, NotificationPage, NotificationPreferences, NotificationPreferencesInput } from './resources/notifications.js';
25
+ export { CardOtpData, InboxItem, ListNotificationsParams, NotificationCategory, NotificationCategoryPreferences, NotificationChannel, NotificationLocale, NotificationPage, NotificationPreferences, NotificationPreferencesInput, isCardOtp } from './resources/notifications.js';
26
26
  import { C as ClientDescriptor, R as ResolvedClientDescriptor, D as DevicesResource } from './devices-DP_hxwmW.js';
27
27
  export { a as CLIENT_HEADER, b as ClientPlatform, c as Device, d as DeviceKind, e as DevicePlatform, M as MobilePushCredential, f as RegisterDeviceInput, g as RegisterWebPushOptions, h as RegisteredDevice, U as UnregisterWebPushOptions, W as WebPushCredential, i as detectClientPlatform } from './devices-DP_hxwmW.js';
28
28
  export { A as Address, C as CustomerInfo } from './customer-CoxPwe5o.js';
@@ -119,7 +119,7 @@ declare function isNetworkError(e: unknown): e is NetworkError;
119
119
  * `define`. `src/version.test.ts` checks it matches `package.json`, so a
120
120
  * release bump that forgets this file fails the test run.
121
121
  */
122
- declare const SDK_VERSION = "0.3.0";
122
+ declare const SDK_VERSION = "0.3.7";
123
123
 
124
124
  /**
125
125
  * `@takeal/cusfront-sdk` — typed client for the Takeal end-user API.
package/dist/index.js CHANGED
@@ -628,6 +628,9 @@ var MeResource = class {
628
628
  };
629
629
 
630
630
  // src/resources/notifications.ts
631
+ function isCardOtp(item) {
632
+ return item.event_type === "card_otp" && typeof item.data?.otp === "string";
633
+ }
631
634
  var NotificationsResource = class {
632
635
  constructor(http) {
633
636
  this.http = http;
@@ -752,7 +755,7 @@ var DevicesResource = class {
752
755
  };
753
756
 
754
757
  // src/version.ts
755
- var SDK_VERSION = "0.3.0";
758
+ var SDK_VERSION = "0.3.7";
756
759
 
757
760
  // src/client-platform.ts
758
761
  var CLIENT_HEADER = "X-Takeal-Client";
@@ -869,6 +872,6 @@ function defaultFetch() {
869
872
  );
870
873
  }
871
874
 
872
- export { ApiError, CLIENT_HEADER, NetworkError, SDK_VERSION, createClient, defaultBrowserStore, detectClientPlatform, inMemoryStore, isApiError, isNetworkError, resolveAssetUrl };
875
+ export { ApiError, CLIENT_HEADER, NetworkError, SDK_VERSION, createClient, defaultBrowserStore, detectClientPlatform, inMemoryStore, isApiError, isCardOtp, isNetworkError, resolveAssetUrl };
873
876
  //# sourceMappingURL=index.js.map
874
877
  //# sourceMappingURL=index.js.map