@takeal/cusfront-sdk 0.6.1 → 0.6.3
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 +43 -0
- package/README.md +87 -0
- package/dist/{cards-CF3-He2x.d.ts → cards-BrqeBqLV.d.ts} +442 -1
- package/dist/{cards-qfHz6xZY.d.cts → cards-ofoGRU9v.d.cts} +442 -1
- package/dist/index.cjs +329 -205
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -8
- package/dist/index.d.ts +14 -8
- package/dist/index.js +329 -205
- package/dist/index.js.map +1 -1
- package/dist/react/index.d.cts +3 -2
- package/dist/react/index.d.ts +3 -2
- package/dist/resources/auth.cjs +48 -5
- package/dist/resources/auth.cjs.map +1 -1
- package/dist/resources/auth.d.cts +53 -7
- package/dist/resources/auth.d.ts +53 -7
- package/dist/resources/auth.js +48 -5
- package/dist/resources/auth.js.map +1 -1
- package/dist/resources/cards.cjs +36 -0
- package/dist/resources/cards.cjs.map +1 -1
- package/dist/resources/cards.d.cts +2 -1
- package/dist/resources/cards.d.ts +2 -1
- package/dist/resources/cards.js +36 -1
- package/dist/resources/cards.js.map +1 -1
- package/dist/resources/consents.cjs +91 -0
- package/dist/resources/consents.cjs.map +1 -0
- package/dist/resources/consents.d.cts +83 -0
- package/dist/resources/consents.d.ts +83 -0
- package/dist/resources/consents.js +89 -0
- package/dist/resources/consents.js.map +1 -0
- package/dist/resources/deposits.cjs +2 -0
- package/dist/resources/deposits.cjs.map +1 -1
- package/dist/resources/deposits.d.cts +2 -2
- package/dist/resources/deposits.d.ts +2 -2
- package/dist/resources/deposits.js +2 -0
- package/dist/resources/deposits.js.map +1 -1
- package/dist/resources/funding-options.d.cts +2 -2
- package/dist/resources/funding-options.d.ts +2 -2
- package/dist/resources/me.d.cts +2 -0
- package/dist/resources/me.d.ts +2 -0
- package/dist/resources/receipts.cjs +22 -0
- package/dist/resources/receipts.cjs.map +1 -0
- package/dist/resources/receipts.d.cts +51 -0
- package/dist/resources/receipts.d.ts +51 -0
- package/dist/resources/receipts.js +20 -0
- package/dist/resources/receipts.js.map +1 -0
- package/dist/telegram.cjs +367 -205
- package/dist/telegram.cjs.map +1 -1
- package/dist/telegram.d.cts +3 -2
- package/dist/telegram.d.ts +3 -2
- package/dist/telegram.js +367 -205
- package/dist/telegram.js.map +1 -1
- package/package.json +11 -1
- package/dist/deposits-B2LBe2k1.d.ts +0 -373
- package/dist/deposits-ZjT_btgi.d.cts +0 -373
package/dist/index.d.cts
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { T as TokenStore, F as FetchLike } from './http-DeANAoTs.cjs';
|
|
2
2
|
export { d as defaultBrowserStore, i as inMemoryStore } from './http-DeANAoTs.cjs';
|
|
3
3
|
import { AuthResource } from './resources/auth.cjs';
|
|
4
|
-
export { ChangePasswordInput, ExchangeTelegramInput, JwtIssued, LinkTelegramInput, LoginInput, LoginResponse, OtpSentResponse, RegisterInput, Session, TelegramLink, TelegramUnknown, TotpRequired, TotpSetupComplete, TotpSetupRequired, User } from './resources/auth.cjs';
|
|
5
|
-
import {
|
|
6
|
-
export {
|
|
7
|
-
import { b as CardsResource } from './cards-qfHz6xZY.cjs';
|
|
8
|
-
export { A as Address, B as BillingAddress, a as Card, c as CardBalance, d as CardDesignRef, e as CardForm, C as CardProduct, f as CardProductPrice, g as CardStatus, h as CardStatusSource, i as CardTopUp, j as CardTopUpStatus, k as CardTransfer, l as CardType, m as Cardholder, n as CloseBlockedReason, o as CreateCardInput, p as CustomerInfo, I as IssuanceBonus, R as RevealCardInput, q as RevealedCard, S as SetPinInput, T as TopUpInput, r as TopUpResult, s as TopUpTerms, t as TransferInput, u as TransferResult, U as UpdateCardInput } from './cards-qfHz6xZY.cjs';
|
|
4
|
+
export { ChangePasswordInput, EmailChangeRequested, ExchangeTelegramInput, JwtIssued, LinkTelegramInput, LoginInput, LoginResponse, OtpSentResponse, RegisterInput, Session, TelegramLink, TelegramUnknown, TotpRequired, TotpSetupComplete, TotpSetupRequired, User } from './resources/auth.cjs';
|
|
5
|
+
import { b as DepositsResource, F as FundingOptionsResource, c as CardsResource } from './cards-ofoGRU9v.cjs';
|
|
6
|
+
export { A as Address, B as BillingAddress, a as Card, d as CardBalance, e as CardDesignRef, f as CardForm, g as CardLoadStatus, h as CardOrder, i as CardOrderError, j as CardOrderInput, C as CardProduct, k as CardProductPrice, l as CardStatus, m as CardStatusSource, n as CardTopUp, o as CardTopUpStatus, p as CardTransfer, q as CardType, r as Cardholder, s as CloseBlockedReason, t as CreateCardInput, u as CreateDepositRefundInput, v as CreateQuoteInput, w as CustomerInfo, D as Deposit, x as DepositMethod, y as DepositStatus, z as DepositTarget, E as FeeKind, G as FunderMode, H as FundingOption, I as FundingQuote, J as InitiateDepositInput, K as IssuanceBonus, L as IssueCardInput, M as MethodTerms, R as Refund, N as RevealCardInput, O as RevealedCard, S as SetPinInput, T as TopUpInput, P as TopUpResult, Q as TopUpTerms, U as TransferInput, V as TransferResult, W as UpdateCardInput } from './cards-ofoGRU9v.cjs';
|
|
9
7
|
import { BalanceResource } from './resources/balance.cjs';
|
|
10
8
|
export { Balance } from './resources/balance.cjs';
|
|
11
9
|
import { BonusResource } from './resources/bonus.cjs';
|
|
@@ -39,6 +37,10 @@ import { AttributionResource } from './resources/attribution.cjs';
|
|
|
39
37
|
export { AnonymousKeyOptions, AttributionStatus, SignupAttribution, SurveyAnswer, TouchFields, TouchInput, TouchResult, anonymousKey, currentTouch } from './resources/attribution.cjs';
|
|
40
38
|
import { HistoryResource } from './resources/history.cjs';
|
|
41
39
|
export { HistoryAmount, HistoryCard, HistoryItem, HistoryKind, HistoryPage, HistoryStatus, ListHistoryParams } from './resources/history.cjs';
|
|
40
|
+
import { ConsentsResource } from './resources/consents.cjs';
|
|
41
|
+
export { ConsentChannel, ConsentDocument, ConsentKind, ConsentState, Consents, CookieChoiceInput } from './resources/consents.cjs';
|
|
42
|
+
import { ReceiptsResource } from './resources/receipts.cjs';
|
|
43
|
+
export { ListReceiptsParams, Receipt, ReceiptKind } from './resources/receipts.cjs';
|
|
42
44
|
export { ANALYTICS_EVENTS, AnalyticsEvent, AnalyticsOptions, AnalyticsProperties, AnalyticsZone, METRIKA_GOALS, MetrikaOptions, NO_CAPTURE_CLASS, PostHogLike, PostHogOptions, identify, initAnalytics, page, posthogDistinctId, resetAnalytics, sanitizeProperties, sanitizeUrl, setAnalyticsZone, track } from './analytics.cjs';
|
|
43
45
|
|
|
44
46
|
/**
|
|
@@ -71,7 +73,7 @@ interface BrandConfig {
|
|
|
71
73
|
* Which platform versions this SDK works with, as a semver range:
|
|
72
74
|
* comparators separated by ", ". Keep this the only definition.
|
|
73
75
|
*/
|
|
74
|
-
declare const SUPPORTED_MEISTER = ">=0.6.
|
|
76
|
+
declare const SUPPORTED_MEISTER = ">=0.6.8, <0.7.0";
|
|
75
77
|
/** What `client.ready()` returns. */
|
|
76
78
|
interface ReadyInfo {
|
|
77
79
|
/** `true` when the platform reported a version inside `supportedMeister`. */
|
|
@@ -177,7 +179,7 @@ declare function isNetworkError(e: unknown): e is NetworkError;
|
|
|
177
179
|
* `define`. `src/version.test.ts` checks it matches `package.json`, so a
|
|
178
180
|
* release bump that forgets this file fails the test run.
|
|
179
181
|
*/
|
|
180
|
-
declare const SDK_VERSION = "0.6.
|
|
182
|
+
declare const SDK_VERSION = "0.6.3";
|
|
181
183
|
|
|
182
184
|
/**
|
|
183
185
|
* `@takeal/cusfront-sdk` — typed client for the Takeal end-user API.
|
|
@@ -273,6 +275,10 @@ interface CusfrontClient {
|
|
|
273
275
|
readonly attribution: AttributionResource;
|
|
274
276
|
/** Everything that happened to the user's money in one list, or one card's part of it. */
|
|
275
277
|
readonly history: HistoryResource;
|
|
278
|
+
/** What the user agreed to; give or withdraw the optional consents. */
|
|
279
|
+
readonly consents: ConsentsResource;
|
|
280
|
+
/** A numbered receipt for every payment. */
|
|
281
|
+
readonly receipts: ReceiptsResource;
|
|
276
282
|
/** Direct access to the token store (e.g. for an explicit sign-out
|
|
277
283
|
* on Capacitor's lifecycle "app pausing" event). */
|
|
278
284
|
readonly tokens: TokenStore;
|
|
@@ -303,4 +309,4 @@ interface CusfrontClient {
|
|
|
303
309
|
*/
|
|
304
310
|
declare function createClient(opts: CreateClientOptions): CusfrontClient;
|
|
305
311
|
|
|
306
|
-
export { ApiError, type BrandConfig, ClientDescriptor, type CreateClientOptions, type CusfrontClient, MeResource, NetworkError, type ReadyBody, type ReadyInfo, ResolvedClientDescriptor, SDK_VERSION, SUPPORTED_MEISTER, TokenStore, createClient, isApiError, isNetworkError, resolveAssetUrl, satisfies };
|
|
312
|
+
export { ApiError, type BrandConfig, ClientDescriptor, ConsentsResource, type CreateClientOptions, type CusfrontClient, MeResource, NetworkError, type ReadyBody, type ReadyInfo, ReceiptsResource, ResolvedClientDescriptor, SDK_VERSION, SUPPORTED_MEISTER, TokenStore, createClient, isApiError, isNetworkError, resolveAssetUrl, satisfies };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { T as TokenStore, F as FetchLike } from './http-DeANAoTs.js';
|
|
2
2
|
export { d as defaultBrowserStore, i as inMemoryStore } from './http-DeANAoTs.js';
|
|
3
3
|
import { AuthResource } from './resources/auth.js';
|
|
4
|
-
export { ChangePasswordInput, ExchangeTelegramInput, JwtIssued, LinkTelegramInput, LoginInput, LoginResponse, OtpSentResponse, RegisterInput, Session, TelegramLink, TelegramUnknown, TotpRequired, TotpSetupComplete, TotpSetupRequired, User } from './resources/auth.js';
|
|
5
|
-
import {
|
|
6
|
-
export {
|
|
7
|
-
import { b as CardsResource } from './cards-CF3-He2x.js';
|
|
8
|
-
export { A as Address, B as BillingAddress, a as Card, c as CardBalance, d as CardDesignRef, e as CardForm, C as CardProduct, f as CardProductPrice, g as CardStatus, h as CardStatusSource, i as CardTopUp, j as CardTopUpStatus, k as CardTransfer, l as CardType, m as Cardholder, n as CloseBlockedReason, o as CreateCardInput, p as CustomerInfo, I as IssuanceBonus, R as RevealCardInput, q as RevealedCard, S as SetPinInput, T as TopUpInput, r as TopUpResult, s as TopUpTerms, t as TransferInput, u as TransferResult, U as UpdateCardInput } from './cards-CF3-He2x.js';
|
|
4
|
+
export { ChangePasswordInput, EmailChangeRequested, ExchangeTelegramInput, JwtIssued, LinkTelegramInput, LoginInput, LoginResponse, OtpSentResponse, RegisterInput, Session, TelegramLink, TelegramUnknown, TotpRequired, TotpSetupComplete, TotpSetupRequired, User } from './resources/auth.js';
|
|
5
|
+
import { b as DepositsResource, F as FundingOptionsResource, c as CardsResource } from './cards-BrqeBqLV.js';
|
|
6
|
+
export { A as Address, B as BillingAddress, a as Card, d as CardBalance, e as CardDesignRef, f as CardForm, g as CardLoadStatus, h as CardOrder, i as CardOrderError, j as CardOrderInput, C as CardProduct, k as CardProductPrice, l as CardStatus, m as CardStatusSource, n as CardTopUp, o as CardTopUpStatus, p as CardTransfer, q as CardType, r as Cardholder, s as CloseBlockedReason, t as CreateCardInput, u as CreateDepositRefundInput, v as CreateQuoteInput, w as CustomerInfo, D as Deposit, x as DepositMethod, y as DepositStatus, z as DepositTarget, E as FeeKind, G as FunderMode, H as FundingOption, I as FundingQuote, J as InitiateDepositInput, K as IssuanceBonus, L as IssueCardInput, M as MethodTerms, R as Refund, N as RevealCardInput, O as RevealedCard, S as SetPinInput, T as TopUpInput, P as TopUpResult, Q as TopUpTerms, U as TransferInput, V as TransferResult, W as UpdateCardInput } from './cards-BrqeBqLV.js';
|
|
9
7
|
import { BalanceResource } from './resources/balance.js';
|
|
10
8
|
export { Balance } from './resources/balance.js';
|
|
11
9
|
import { BonusResource } from './resources/bonus.js';
|
|
@@ -39,6 +37,10 @@ import { AttributionResource } from './resources/attribution.js';
|
|
|
39
37
|
export { AnonymousKeyOptions, AttributionStatus, SignupAttribution, SurveyAnswer, TouchFields, TouchInput, TouchResult, anonymousKey, currentTouch } from './resources/attribution.js';
|
|
40
38
|
import { HistoryResource } from './resources/history.js';
|
|
41
39
|
export { HistoryAmount, HistoryCard, HistoryItem, HistoryKind, HistoryPage, HistoryStatus, ListHistoryParams } from './resources/history.js';
|
|
40
|
+
import { ConsentsResource } from './resources/consents.js';
|
|
41
|
+
export { ConsentChannel, ConsentDocument, ConsentKind, ConsentState, Consents, CookieChoiceInput } from './resources/consents.js';
|
|
42
|
+
import { ReceiptsResource } from './resources/receipts.js';
|
|
43
|
+
export { ListReceiptsParams, Receipt, ReceiptKind } from './resources/receipts.js';
|
|
42
44
|
export { ANALYTICS_EVENTS, AnalyticsEvent, AnalyticsOptions, AnalyticsProperties, AnalyticsZone, METRIKA_GOALS, MetrikaOptions, NO_CAPTURE_CLASS, PostHogLike, PostHogOptions, identify, initAnalytics, page, posthogDistinctId, resetAnalytics, sanitizeProperties, sanitizeUrl, setAnalyticsZone, track } from './analytics.js';
|
|
43
45
|
|
|
44
46
|
/**
|
|
@@ -71,7 +73,7 @@ interface BrandConfig {
|
|
|
71
73
|
* Which platform versions this SDK works with, as a semver range:
|
|
72
74
|
* comparators separated by ", ". Keep this the only definition.
|
|
73
75
|
*/
|
|
74
|
-
declare const SUPPORTED_MEISTER = ">=0.6.
|
|
76
|
+
declare const SUPPORTED_MEISTER = ">=0.6.8, <0.7.0";
|
|
75
77
|
/** What `client.ready()` returns. */
|
|
76
78
|
interface ReadyInfo {
|
|
77
79
|
/** `true` when the platform reported a version inside `supportedMeister`. */
|
|
@@ -177,7 +179,7 @@ declare function isNetworkError(e: unknown): e is NetworkError;
|
|
|
177
179
|
* `define`. `src/version.test.ts` checks it matches `package.json`, so a
|
|
178
180
|
* release bump that forgets this file fails the test run.
|
|
179
181
|
*/
|
|
180
|
-
declare const SDK_VERSION = "0.6.
|
|
182
|
+
declare const SDK_VERSION = "0.6.3";
|
|
181
183
|
|
|
182
184
|
/**
|
|
183
185
|
* `@takeal/cusfront-sdk` — typed client for the Takeal end-user API.
|
|
@@ -273,6 +275,10 @@ interface CusfrontClient {
|
|
|
273
275
|
readonly attribution: AttributionResource;
|
|
274
276
|
/** Everything that happened to the user's money in one list, or one card's part of it. */
|
|
275
277
|
readonly history: HistoryResource;
|
|
278
|
+
/** What the user agreed to; give or withdraw the optional consents. */
|
|
279
|
+
readonly consents: ConsentsResource;
|
|
280
|
+
/** A numbered receipt for every payment. */
|
|
281
|
+
readonly receipts: ReceiptsResource;
|
|
276
282
|
/** Direct access to the token store (e.g. for an explicit sign-out
|
|
277
283
|
* on Capacitor's lifecycle "app pausing" event). */
|
|
278
284
|
readonly tokens: TokenStore;
|
|
@@ -303,4 +309,4 @@ interface CusfrontClient {
|
|
|
303
309
|
*/
|
|
304
310
|
declare function createClient(opts: CreateClientOptions): CusfrontClient;
|
|
305
311
|
|
|
306
|
-
export { ApiError, type BrandConfig, ClientDescriptor, type CreateClientOptions, type CusfrontClient, MeResource, NetworkError, type ReadyBody, type ReadyInfo, ResolvedClientDescriptor, SDK_VERSION, SUPPORTED_MEISTER, TokenStore, createClient, isApiError, isNetworkError, resolveAssetUrl, satisfies };
|
|
312
|
+
export { ApiError, type BrandConfig, ClientDescriptor, ConsentsResource, type CreateClientOptions, type CusfrontClient, MeResource, NetworkError, type ReadyBody, type ReadyInfo, ReceiptsResource, ResolvedClientDescriptor, SDK_VERSION, SUPPORTED_MEISTER, TokenStore, createClient, isApiError, isNetworkError, resolveAssetUrl, satisfies };
|