@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/CHANGELOG.md +24 -0
- package/dist/index.cjs +5 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/dist/resources/cards.cjs.map +1 -1
- package/dist/resources/cards.d.cts +11 -5
- package/dist/resources/cards.d.ts +11 -5
- package/dist/resources/cards.js.map +1 -1
- package/dist/resources/notifications.cjs +4 -0
- package/dist/resources/notifications.cjs.map +1 -1
- package/dist/resources/notifications.d.cts +26 -2
- package/dist/resources/notifications.d.ts +26 -2
- package/dist/resources/notifications.js +4 -1
- package/dist/resources/notifications.js.map +1 -1
- package/dist/telegram.cjs +1 -1
- package/dist/telegram.cjs.map +1 -1
- package/dist/telegram.js +1 -1
- package/dist/telegram.js.map +1 -1
- package/package.json +7 -3
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.
|
|
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.
|
|
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
|