@adapty/core 4.2.0 → 4.3.0-dev.83910fe108c2530deacef7b356a8f3ea470dae64
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 +1 -1
- package/dist/index.cjs +21 -5
- package/dist/index.d.cts +137 -16
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +137 -16
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +21 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
>
|
|
15
15
|
> This package is an internal dependency of Adapty JavaScript SDKs. It is not intended for direct installation.
|
|
16
16
|
|
|
17
|
-
This package contains the shared TypeScript foundation used by Adapty JavaScript SDKs
|
|
17
|
+
This package contains the shared TypeScript foundation used by Adapty JavaScript SDKs: React Native and Capacitor.
|
|
18
18
|
|
|
19
19
|
## Documentation
|
|
20
20
|
|
package/dist/index.cjs
CHANGED
|
@@ -2,17 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
//#region src/types/inputs.ts
|
|
4
4
|
/**
|
|
5
|
-
* Log levels for the SDK
|
|
5
|
+
* Log levels for the SDK, ordered from the least to the most verbose:
|
|
6
|
+
* `ERROR` < `WARN` < `INFO` < `VERBOSE` < `DEBUG`.
|
|
6
7
|
*
|
|
7
8
|
* @remarks
|
|
9
|
+
* Setting a level enables it and all the levels above it in the list.
|
|
8
10
|
* Logging is performed on a native side.
|
|
9
11
|
* So you are expected to watch logs in Xcode or Android Studio.
|
|
10
12
|
*/
|
|
11
13
|
const LogLevel = Object.freeze({
|
|
12
|
-
VERBOSE: "verbose",
|
|
13
14
|
ERROR: "error",
|
|
14
15
|
WARN: "warn",
|
|
15
|
-
INFO: "info"
|
|
16
|
+
INFO: "info",
|
|
17
|
+
VERBOSE: "verbose",
|
|
18
|
+
DEBUG: "debug"
|
|
16
19
|
});
|
|
17
20
|
const FetchPolicy = Object.freeze({
|
|
18
21
|
ReloadRevalidatingCacheData: "reload_revalidating_cache_data",
|
|
@@ -33,7 +36,8 @@ function getConsoleForLevel(level) {
|
|
|
33
36
|
switch (level) {
|
|
34
37
|
case "error": return console.error;
|
|
35
38
|
case "warn": return console.warn;
|
|
36
|
-
case "verbose":
|
|
39
|
+
case "verbose":
|
|
40
|
+
case "debug": return console.debug;
|
|
37
41
|
case "info":
|
|
38
42
|
default: return console.info;
|
|
39
43
|
}
|
|
@@ -94,6 +98,7 @@ var Log = class Log {
|
|
|
94
98
|
case LogLevel.WARN: return 1;
|
|
95
99
|
case LogLevel.INFO: return 2;
|
|
96
100
|
case LogLevel.VERBOSE: return 3;
|
|
101
|
+
case LogLevel.DEBUG: return 4;
|
|
97
102
|
}
|
|
98
103
|
}
|
|
99
104
|
/**
|
|
@@ -337,6 +342,8 @@ const ErrorCodeMapping = Object.freeze({
|
|
|
337
342
|
3007: "unsupportedData",
|
|
338
343
|
3100: "persistingDataError",
|
|
339
344
|
3101: "fetchTimeoutError",
|
|
345
|
+
3201: "operationInProgress",
|
|
346
|
+
3202: "resolverFailure",
|
|
340
347
|
9e3: "operationInterrupted"
|
|
341
348
|
});
|
|
342
349
|
const ErrorCode = ErrorCodeMapping;
|
|
@@ -389,6 +396,8 @@ const ErrorCodeName = Object.freeze({
|
|
|
389
396
|
unsupportedData: 3007,
|
|
390
397
|
persistingDataError: 3100,
|
|
391
398
|
fetchTimeoutError: 3101,
|
|
399
|
+
operationInProgress: 3201,
|
|
400
|
+
resolverFailure: 3202,
|
|
392
401
|
operationInterrupted: 9e3
|
|
393
402
|
});
|
|
394
403
|
function getErrorCode(error) {
|
|
@@ -711,6 +720,7 @@ var AdaptyConfigurationCoder = class {
|
|
|
711
720
|
config["observer_mode"] = params.observerMode ?? false;
|
|
712
721
|
config["ip_address_collection_disabled"] = params.ipAddressCollectionDisabled ?? false;
|
|
713
722
|
config["adapty_attribution_enabled"] = params.adaptyAttributionEnabled ?? false;
|
|
723
|
+
if (params.storeMessagesHandling) config["store_messages_handling"] = params.storeMessagesHandling;
|
|
714
724
|
if (params.logLevel) config["log_level"] = params.logLevel;
|
|
715
725
|
config["server_cluster"] = params.serverCluster ?? "default";
|
|
716
726
|
if (params.backendProxyHost) config["backend_proxy_host"] = params.backendProxyHost;
|
|
@@ -2561,6 +2571,7 @@ const RefundPreference = Object.freeze({
|
|
|
2561
2571
|
const MethodNames = [
|
|
2562
2572
|
"activate",
|
|
2563
2573
|
"adapty_ui_create_flow_view",
|
|
2574
|
+
"adapty_ui_destroy_flow_view",
|
|
2564
2575
|
"adapty_ui_dismiss_flow_view",
|
|
2565
2576
|
"adapty_ui_present_flow_view",
|
|
2566
2577
|
"adapty_ui_show_dialog",
|
|
@@ -2573,6 +2584,7 @@ const MethodNames = [
|
|
|
2573
2584
|
"get_flow",
|
|
2574
2585
|
"get_flow_for_default_audience",
|
|
2575
2586
|
"get_paywall_products",
|
|
2587
|
+
"get_pending_store_message_types",
|
|
2576
2588
|
"get_onboarding",
|
|
2577
2589
|
"get_onboarding_for_default_audience",
|
|
2578
2590
|
"get_profile",
|
|
@@ -2584,12 +2596,15 @@ const MethodNames = [
|
|
|
2584
2596
|
"make_promoted_purchase",
|
|
2585
2597
|
"make_purchase",
|
|
2586
2598
|
"open_web_paywall",
|
|
2599
|
+
"preload_flows",
|
|
2600
|
+
"preload_flows_for_default_audience",
|
|
2587
2601
|
"present_code_redemption_sheet",
|
|
2588
2602
|
"report_transaction",
|
|
2589
2603
|
"restore_purchases",
|
|
2590
2604
|
"set_fallback",
|
|
2591
2605
|
"set_integration_identifiers",
|
|
2592
2606
|
"set_log_level",
|
|
2607
|
+
"show_store_messages",
|
|
2593
2608
|
"update_collecting_refund_data_consent",
|
|
2594
2609
|
"update_external_attribution_data",
|
|
2595
2610
|
"update_profile",
|
|
@@ -2807,7 +2822,8 @@ function parseMethodResult(factory, input, resultType, ctx) {
|
|
|
2807
2822
|
"Boolean",
|
|
2808
2823
|
"Void",
|
|
2809
2824
|
"AdaptyUiView",
|
|
2810
|
-
"AdaptyUiDialogActionType"
|
|
2825
|
+
"AdaptyUiDialogActionType",
|
|
2826
|
+
"Array<AdaptyStoreMessageType>"
|
|
2811
2827
|
].includes(resultType)) return obj.success;
|
|
2812
2828
|
const coder = getCoder(factory, resultType, ctx);
|
|
2813
2829
|
return coder?.decode(obj.success);
|
package/dist/index.d.cts
CHANGED
|
@@ -249,6 +249,16 @@ declare const ErrorCodeMapping: Readonly<{
|
|
|
249
249
|
3007: "unsupportedData";
|
|
250
250
|
3100: "persistingDataError";
|
|
251
251
|
3101: "fetchTimeoutError";
|
|
252
|
+
/**
|
|
253
|
+
* Another operation of the same kind is already in progress
|
|
254
|
+
* (e.g. a store message show).
|
|
255
|
+
*/
|
|
256
|
+
3201: "operationInProgress";
|
|
257
|
+
/**
|
|
258
|
+
* A required resource could not be resolved
|
|
259
|
+
* (e.g. no foreground-active window scene to show store messages).
|
|
260
|
+
*/
|
|
261
|
+
3202: "resolverFailure";
|
|
252
262
|
9000: "operationInterrupted";
|
|
253
263
|
}>;
|
|
254
264
|
declare const ErrorCode: Readonly<{
|
|
@@ -358,6 +368,16 @@ declare const ErrorCode: Readonly<{
|
|
|
358
368
|
3007: "unsupportedData";
|
|
359
369
|
3100: "persistingDataError";
|
|
360
370
|
3101: "fetchTimeoutError";
|
|
371
|
+
/**
|
|
372
|
+
* Another operation of the same kind is already in progress
|
|
373
|
+
* (e.g. a store message show).
|
|
374
|
+
*/
|
|
375
|
+
3201: "operationInProgress";
|
|
376
|
+
/**
|
|
377
|
+
* A required resource could not be resolved
|
|
378
|
+
* (e.g. no foreground-active window scene to show store messages).
|
|
379
|
+
*/
|
|
380
|
+
3202: "resolverFailure";
|
|
361
381
|
9000: "operationInterrupted";
|
|
362
382
|
}>;
|
|
363
383
|
type ErrorCode = keyof typeof ErrorCodeMapping;
|
|
@@ -410,6 +430,8 @@ declare const ErrorCodeName: Readonly<{
|
|
|
410
430
|
readonly unsupportedData: 3007;
|
|
411
431
|
readonly persistingDataError: 3100;
|
|
412
432
|
readonly fetchTimeoutError: 3101;
|
|
433
|
+
readonly operationInProgress: 3201;
|
|
434
|
+
readonly resolverFailure: 3202;
|
|
413
435
|
readonly operationInterrupted: 9000;
|
|
414
436
|
}>;
|
|
415
437
|
type ErrorCodeName = keyof typeof ErrorCodeName;
|
|
@@ -738,6 +760,16 @@ type AdaptyPurchaseResult = {
|
|
|
738
760
|
* @public
|
|
739
761
|
*/
|
|
740
762
|
type AdaptyExternalAttributionProvider = 'apple_search_ads' | 'adjust' | 'appsflyer' | 'branch' | 'tenjin' | 'custom' | (string & {});
|
|
763
|
+
/**
|
|
764
|
+
* Reason StoreKit wants to show an App Store message.
|
|
765
|
+
*
|
|
766
|
+
* @remarks
|
|
767
|
+
* Reasons unknown to the SDK arrive as `storekit_<rawValue>`,
|
|
768
|
+
* so any string is accepted.
|
|
769
|
+
* Requires iOS 16+.
|
|
770
|
+
* @public
|
|
771
|
+
*/
|
|
772
|
+
type AdaptyStoreMessageType = 'generic' | 'price_increase_consent' | 'billing_issue' | 'win_back_offer' | (string & {});
|
|
741
773
|
/**
|
|
742
774
|
* Interface representing a user profile in Adapty,
|
|
743
775
|
* including details about the user's subscriptions and consumable products.
|
|
@@ -1963,33 +1995,40 @@ interface AdaptyMockConfig {
|
|
|
1963
1995
|
//# sourceMappingURL=types.d.ts.map
|
|
1964
1996
|
|
|
1965
1997
|
/**
|
|
1966
|
-
* Log levels for the SDK
|
|
1998
|
+
* Log levels for the SDK, ordered from the least to the most verbose:
|
|
1999
|
+
* `ERROR` < `WARN` < `INFO` < `VERBOSE` < `DEBUG`.
|
|
1967
2000
|
*
|
|
1968
2001
|
* @remarks
|
|
2002
|
+
* Setting a level enables it and all the levels above it in the list.
|
|
1969
2003
|
* Logging is performed on a native side.
|
|
1970
2004
|
* So you are expected to watch logs in Xcode or Android Studio.
|
|
1971
2005
|
*/
|
|
1972
2006
|
declare const LogLevel: Readonly<{
|
|
1973
2007
|
/**
|
|
1974
|
-
*
|
|
1975
|
-
* such as function calls, API queries, etc.
|
|
1976
|
-
*/
|
|
1977
|
-
VERBOSE: "verbose";
|
|
1978
|
-
/**
|
|
1979
|
-
* Logs only errors
|
|
2008
|
+
* Level 0 — logs only errors.
|
|
1980
2009
|
*/
|
|
1981
2010
|
ERROR: "error";
|
|
1982
2011
|
/**
|
|
1983
|
-
*
|
|
2012
|
+
* Level 1 — logs errors and messages from the SDK
|
|
1984
2013
|
* that do not cause critical errors,
|
|
1985
|
-
* but are worth paying attention to
|
|
2014
|
+
* but are worth paying attention to.
|
|
1986
2015
|
*/
|
|
1987
2016
|
WARN: "warn";
|
|
1988
2017
|
/**
|
|
1989
|
-
*
|
|
1990
|
-
* such as those that log the lifecycle of various modules
|
|
2018
|
+
* Level 2 — additionally logs various information messages,
|
|
2019
|
+
* such as those that log the lifecycle of various modules.
|
|
1991
2020
|
*/
|
|
1992
2021
|
INFO: "info";
|
|
2022
|
+
/**
|
|
2023
|
+
* Level 3 — additionally logs any information that may be useful
|
|
2024
|
+
* during debugging, such as function calls, API queries, etc.
|
|
2025
|
+
*/
|
|
2026
|
+
VERBOSE: "verbose";
|
|
2027
|
+
/**
|
|
2028
|
+
* Level 4 — the most detailed level, additionally logs
|
|
2029
|
+
* low-level internal details of the native SDK.
|
|
2030
|
+
*/
|
|
2031
|
+
DEBUG: "debug";
|
|
1993
2032
|
}>;
|
|
1994
2033
|
type LogLevel = (typeof LogLevel)[keyof typeof LogLevel];
|
|
1995
2034
|
declare const FetchPolicy: Readonly<{
|
|
@@ -2033,6 +2072,25 @@ type GetPlacementForDefaultAudienceParamsInput = {
|
|
|
2033
2072
|
*/
|
|
2034
2073
|
maxAgeSeconds: number;
|
|
2035
2074
|
};
|
|
2075
|
+
/**
|
|
2076
|
+
* Describes optional parameters for the placement preload methods.
|
|
2077
|
+
*
|
|
2078
|
+
* @remarks
|
|
2079
|
+
* Preloading has no fetch policy: it always goes to the network and only warms
|
|
2080
|
+
* the placement cache, so unlike {@link GetPlacementParamsInput} the only knob
|
|
2081
|
+
* is the timeout.
|
|
2082
|
+
*/
|
|
2083
|
+
interface PreloadPlacementsParamsInput {
|
|
2084
|
+
/**
|
|
2085
|
+
* This value limits the timeout (in milliseconds) for this method.
|
|
2086
|
+
*
|
|
2087
|
+
* @remarks
|
|
2088
|
+
* The native SDKs clamp anything below 1000 ms up to 1000 ms. Reaching the
|
|
2089
|
+
* timeout is not an error by itself — the affected placements are retried
|
|
2090
|
+
* against the default audience source.
|
|
2091
|
+
*/
|
|
2092
|
+
loadTimeoutMs?: number;
|
|
2093
|
+
}
|
|
2036
2094
|
/**
|
|
2037
2095
|
* Describes optional parameters for the {@link activate} method.
|
|
2038
2096
|
*/
|
|
@@ -2117,6 +2175,21 @@ interface ActivateParamsInput {
|
|
|
2117
2175
|
* @defaultValue `false`
|
|
2118
2176
|
*/
|
|
2119
2177
|
adaptyAttributionEnabled?: boolean;
|
|
2178
|
+
/**
|
|
2179
|
+
* Controls who decides when store messages are shown: App Store messages
|
|
2180
|
+
* (price increase consent, billing issue, win-back offer, etc.) on iOS,
|
|
2181
|
+
* Google Play in-app messages (e.g. a declined payment) on Android.
|
|
2182
|
+
*
|
|
2183
|
+
* @remarks
|
|
2184
|
+
* - `'auto'` — iOS: StoreKit presents them automatically. Android: the SDK
|
|
2185
|
+
* requests them on every `Activity.onResume`.
|
|
2186
|
+
* - `'manual'` — messages are shown only when the app calls `showStoreMessages`.
|
|
2187
|
+
* On iOS the SDK also keeps them in a queue readable via `getPendingStoreMessageTypes`.
|
|
2188
|
+
*
|
|
2189
|
+
* Has no effect below iOS 16.
|
|
2190
|
+
* @defaultValue `'auto'`
|
|
2191
|
+
*/
|
|
2192
|
+
storeMessagesHandling?: 'auto' | 'manual';
|
|
2120
2193
|
ios?: {
|
|
2121
2194
|
/**
|
|
2122
2195
|
* Disables IDFA collection
|
|
@@ -2330,6 +2403,15 @@ interface components {
|
|
|
2330
2403
|
}, {
|
|
2331
2404
|
success: true;
|
|
2332
2405
|
}]>;
|
|
2406
|
+
'AdaptyUIDestroyFlowView.Request': {
|
|
2407
|
+
method: 'adapty_ui_destroy_flow_view';
|
|
2408
|
+
id: string;
|
|
2409
|
+
};
|
|
2410
|
+
'AdaptyUIDestroyFlowView.Response': OneOf<[{
|
|
2411
|
+
error: components['defs']['AdaptyError'];
|
|
2412
|
+
}, {
|
|
2413
|
+
success: true;
|
|
2414
|
+
}]>;
|
|
2333
2415
|
'AdaptyUIPresentOnboardingView.Request': {
|
|
2334
2416
|
method: 'adapty_ui_present_onboarding_view';
|
|
2335
2417
|
id: string;
|
|
@@ -2422,6 +2504,25 @@ interface components {
|
|
|
2422
2504
|
}, {
|
|
2423
2505
|
success: components['defs']['AdaptyFlow'];
|
|
2424
2506
|
}]>;
|
|
2507
|
+
'PreloadFlows.Request': {
|
|
2508
|
+
method: 'preload_flows';
|
|
2509
|
+
placement_ids: string[];
|
|
2510
|
+
load_timeout?: number;
|
|
2511
|
+
};
|
|
2512
|
+
'PreloadFlows.Response': OneOf<[{
|
|
2513
|
+
error: components['defs']['AdaptyError'];
|
|
2514
|
+
}, {
|
|
2515
|
+
success: true;
|
|
2516
|
+
}]>;
|
|
2517
|
+
'PreloadFlowsForDefaultAudience.Request': {
|
|
2518
|
+
method: 'preload_flows_for_default_audience';
|
|
2519
|
+
placement_ids: string[];
|
|
2520
|
+
};
|
|
2521
|
+
'PreloadFlowsForDefaultAudience.Response': OneOf<[{
|
|
2522
|
+
error: components['defs']['AdaptyError'];
|
|
2523
|
+
}, {
|
|
2524
|
+
success: true;
|
|
2525
|
+
}]>;
|
|
2425
2526
|
'GetPaywallProducts.Request': {
|
|
2426
2527
|
method: 'get_paywall_products';
|
|
2427
2528
|
flow: components['defs']['AdaptyFlow'];
|
|
@@ -2504,6 +2605,23 @@ interface components {
|
|
|
2504
2605
|
}, {
|
|
2505
2606
|
success: components['defs']['AdaptyPurchaseResult'];
|
|
2506
2607
|
}]>;
|
|
2608
|
+
'GetPendingStoreMessageTypes.Request': {
|
|
2609
|
+
method: 'get_pending_store_message_types';
|
|
2610
|
+
};
|
|
2611
|
+
'GetPendingStoreMessageTypes.Response': OneOf<[{
|
|
2612
|
+
error: components['defs']['AdaptyError'];
|
|
2613
|
+
}, {
|
|
2614
|
+
success: components['defs']['AdaptyStoreMessageType'][];
|
|
2615
|
+
}]>;
|
|
2616
|
+
'ShowStoreMessage.Request': {
|
|
2617
|
+
method: 'show_store_messages';
|
|
2618
|
+
filter?: components['defs']['AdaptyStoreMessageType'][];
|
|
2619
|
+
};
|
|
2620
|
+
'ShowStoreMessage.Response': OneOf<[{
|
|
2621
|
+
error: components['defs']['AdaptyError'];
|
|
2622
|
+
}, {
|
|
2623
|
+
success: true;
|
|
2624
|
+
}]>;
|
|
2507
2625
|
'OpenWebPaywall.Request': {
|
|
2508
2626
|
method: 'open_web_paywall';
|
|
2509
2627
|
open_in?: components['defs']['AdaptyWebPresentation'];
|
|
@@ -2797,7 +2915,7 @@ interface components {
|
|
|
2797
2915
|
view: components['defs']['AdaptyUI.OnboardingView'];
|
|
2798
2916
|
meta: components['defs']['AdaptyUI.OnboardingMeta'];
|
|
2799
2917
|
event: {
|
|
2800
|
-
name: 'onboarding_started' | 'screen_presented' | 'screen_completed' | 'second_screen_presented' | 'registration_screen_presented' | 'products_screen_presented' | 'user_email_collected' | 'onboarding_completed' | string;
|
|
2918
|
+
name: 'onboarding_started' | 'screen_presented' | 'screen_completed' | 'second_screen_presented' | 'registration_screen_presented' | 'products_screen_presented' | 'user_email_collected' | 'onboarding_completed' | (string & {});
|
|
2801
2919
|
element_id?: string;
|
|
2802
2920
|
reply?: string;
|
|
2803
2921
|
};
|
|
@@ -2872,6 +2990,7 @@ interface components {
|
|
|
2872
2990
|
customer_user_id?: string;
|
|
2873
2991
|
customer_identity_parameters?: components['defs']['CustomerIdentityParameters'];
|
|
2874
2992
|
observer_mode?: boolean;
|
|
2993
|
+
store_messages_handling?: components['defs']['StoreMessagesHandling'];
|
|
2875
2994
|
apple_idfa_collection_disabled?: boolean;
|
|
2876
2995
|
google_adid_collection_disabled?: boolean;
|
|
2877
2996
|
google_enable_pending_prepaid_plans?: boolean;
|
|
@@ -2892,6 +3011,8 @@ interface components {
|
|
|
2892
3011
|
disk_storage_size_limit?: number;
|
|
2893
3012
|
};
|
|
2894
3013
|
};
|
|
3014
|
+
StoreMessagesHandling: 'auto' | 'manual' | 'default';
|
|
3015
|
+
AdaptyStoreMessageType: 'generic' | 'price_increase_consent' | 'billing_issue' | 'win_back_offer' | (string & {});
|
|
2895
3016
|
CustomerIdentityParameters: {
|
|
2896
3017
|
app_account_token?: string;
|
|
2897
3018
|
obfuscated_account_id?: string;
|
|
@@ -3199,7 +3320,7 @@ interface components {
|
|
|
3199
3320
|
type: 'custom';
|
|
3200
3321
|
value: string;
|
|
3201
3322
|
}]>;
|
|
3202
|
-
'AdaptyUI.Permission': 'push' | 'camera' | 'microphone' | 'location_when_use' | 'location_always' | 'location_full_accuracy' | 'photos' | 'contacts' | 'tracking' | 'calendar' | 'bluetooth' | 'motion' | 'reminders' | 'speech' | 'media_library' | 'local_network' | 'focus_status' | 'homekit' | 'health' | 'siri' | 'music' | string;
|
|
3323
|
+
'AdaptyUI.Permission': 'push' | 'camera' | 'microphone' | 'location_when_use' | 'location_always' | 'location_full_accuracy' | 'photos' | 'contacts' | 'tracking' | 'calendar' | 'bluetooth' | 'motion' | 'reminders' | 'speech' | 'media_library' | 'local_network' | 'focus_status' | 'homekit' | 'health' | 'siri' | 'music' | (string & {});
|
|
3203
3324
|
'AdaptyUI.CustomTagsValues': {
|
|
3204
3325
|
[key: string]: string;
|
|
3205
3326
|
};
|
|
@@ -3434,7 +3555,7 @@ declare class AdaptyInstallationStatusCoder implements Converter<AdaptyInstallat
|
|
|
3434
3555
|
* native side does not register would fail at runtime, not at compile time.
|
|
3435
3556
|
* @internal
|
|
3436
3557
|
*/
|
|
3437
|
-
declare const MethodNames: readonly ["activate", "adapty_ui_create_flow_view", "adapty_ui_dismiss_flow_view", "adapty_ui_present_flow_view", "adapty_ui_show_dialog", "adapty_ui_create_onboarding_view", "adapty_ui_dismiss_onboarding_view", "adapty_ui_present_onboarding_view", "create_web_paywall_url", "get_current_installation_status", "is_activated", "get_flow", "get_flow_for_default_audience", "get_paywall_products", "get_onboarding", "get_onboarding_for_default_audience", "get_profile", "get_log_level", "get_sdk_version", "identify", "log_show_flow", "logout", "make_promoted_purchase", "make_purchase", "open_web_paywall", "present_code_redemption_sheet", "report_transaction", "restore_purchases", "set_fallback", "set_integration_identifiers", "set_log_level", "update_collecting_refund_data_consent", "update_external_attribution_data", "update_profile", "update_refund_preference", "flow_view_did_answer_permission", "adapty_ui_open_url", "adapty_ui_request_app_review", "observer_purchase_did_start", "observer_purchase_did_finish", "observer_restore_did_start", "observer_restore_did_finish"];
|
|
3558
|
+
declare const MethodNames: readonly ["activate", "adapty_ui_create_flow_view", "adapty_ui_destroy_flow_view", "adapty_ui_dismiss_flow_view", "adapty_ui_present_flow_view", "adapty_ui_show_dialog", "adapty_ui_create_onboarding_view", "adapty_ui_dismiss_onboarding_view", "adapty_ui_present_onboarding_view", "create_web_paywall_url", "get_current_installation_status", "is_activated", "get_flow", "get_flow_for_default_audience", "get_paywall_products", "get_pending_store_message_types", "get_onboarding", "get_onboarding_for_default_audience", "get_profile", "get_log_level", "get_sdk_version", "identify", "log_show_flow", "logout", "make_promoted_purchase", "make_purchase", "open_web_paywall", "preload_flows", "preload_flows_for_default_audience", "present_code_redemption_sheet", "report_transaction", "restore_purchases", "set_fallback", "set_integration_identifiers", "set_log_level", "show_store_messages", "update_collecting_refund_data_consent", "update_external_attribution_data", "update_profile", "update_refund_preference", "flow_view_did_answer_permission", "adapty_ui_open_url", "adapty_ui_request_app_review", "observer_purchase_did_start", "observer_purchase_did_finish", "observer_restore_did_start", "observer_restore_did_finish"];
|
|
3438
3559
|
type MethodName = (typeof MethodNames)[number];
|
|
3439
3560
|
/**
|
|
3440
3561
|
* Types of values that can be passed
|
|
@@ -3962,7 +4083,7 @@ declare function extractOnboardingCallbackArgs<T extends keyof OnboardingEventHa
|
|
|
3962
4083
|
|
|
3963
4084
|
//#endregion
|
|
3964
4085
|
//#region src/coders/parse.d.ts
|
|
3965
|
-
declare const AdaptyTypes: readonly ["AdaptyError", "AdaptyProfile", "AdaptyPurchaseResult", "AdaptyFlow", "AdaptyPaywallProduct", "AdaptyPromotedProduct", "AdaptyOnboarding", "AdaptyRemoteConfig", "AdaptyInstallationStatus", "AdaptyInstallationDetails", "AdaptyUiView", "AdaptyUiDialogActionType", "AdaptyUiOnboardingMeta", "AdaptyUiOnboardingStateParams", "AdaptyUiOnboardingStateUpdatedAction", "Array<AdaptyPaywallProduct>", "BridgeError", "String", "Boolean", "Void"];
|
|
4086
|
+
declare const AdaptyTypes: readonly ["AdaptyError", "AdaptyProfile", "AdaptyPurchaseResult", "AdaptyFlow", "AdaptyPaywallProduct", "AdaptyPromotedProduct", "AdaptyOnboarding", "AdaptyRemoteConfig", "AdaptyInstallationStatus", "AdaptyInstallationDetails", "AdaptyUiView", "AdaptyUiDialogActionType", "AdaptyUiOnboardingMeta", "AdaptyUiOnboardingStateParams", "AdaptyUiOnboardingStateUpdatedAction", "Array<AdaptyPaywallProduct>", "Array<AdaptyStoreMessageType>", "BridgeError", "String", "Boolean", "Void"];
|
|
3966
4087
|
type AdaptyType = (typeof AdaptyTypes)[number];
|
|
3967
4088
|
declare function parseMethodResult<T>(factory: CoderFactory, input: string, resultType: AdaptyType, ctx?: LogContext): T;
|
|
3968
4089
|
declare function parseCommonEvent(factory: CoderFactory, event: string, input: string, ctx?: LogContext): any;
|
|
@@ -4030,5 +4151,5 @@ declare function withErrorContext<T extends (...args: never[]) => unknown>(callb
|
|
|
4030
4151
|
//#endregion
|
|
4031
4152
|
//# sourceMappingURL=with-error-context.d.ts.map
|
|
4032
4153
|
|
|
4033
|
-
export { ActivateParamsInput, AdaptyAccessLevel, AdaptyAndroidPurchaseParams, AdaptyAndroidSubscriptionUpdateReplacementMode, AdaptyBridgeError, AdaptyCustomAsset, AdaptyCustomColorAsset, AdaptyCustomGradientAsset, AdaptyCustomImageAsset, AdaptyCustomVideoAsset, AdaptyDiscountPhase, AdaptyError, AdaptyErrorInput, AdaptyExternalAttributionProvider, AdaptyFlow, AdaptyFlowPaywall, AdaptyFlowUiSchema, AdaptyFlowUiSchemaGrid, AdaptyFlowUiSchemaLayout, AdaptyIOSPresentationStyle, AdaptyInstallationDetails, AdaptyInstallationStatus, AdaptyNativeError, AdaptyNonSubscription, AdaptyOnboarding, AdaptyOnboardingBuilder, AdaptyPaywallProduct, AdaptyPermission, AdaptyPlacement, AdaptyPrice, AdaptyProductIdentifier, AdaptyProfile, AdaptyProfileParameters, AdaptyPromotedProduct, AdaptyPurchaseResult, AdaptyRemoteConfig, AdaptySubscription, AdaptySubscriptionDetails, AdaptySubscriptionOffer, AdaptySubscriptionOfferId, AdaptySubscriptionPeriod, AdaptyType, AdaptyUiDialogActionType, AdaptyUiDialogConfig, AdaptyUiMediaCache, AdaptyUiOnboardingMeta, AdaptyUiOnboardingStateParams, AdaptyUiView, AppTrackingTransparencyStatus, ArgType, CancellationReason, CoderDependencies, CoderFactory, Converter, CreateFlowViewParamsInput, CreateOnboardingViewParamsInput, DefaultLoggerAdapter, DefaultPlatformAdapter, DefaultSdkMetadataAdapter, ErrorCode, ErrorCodeName, ErrorConverter, EventHandlerResult, FetchPolicy, FileLocation, FlowDidAppearEvent, FlowDidAskPermissionEvent, FlowDidDisappearEvent, FlowDidFailLoadingProductsEvent, FlowDidFailPurchaseEvent, FlowDidFailRestoreEvent, FlowDidFinishPurchaseEvent, FlowDidFinishRestoreEvent, FlowDidFinishWebPaymentNavigationEvent, FlowDidPerformActionEvent, FlowDidReceiveAnalyticEvent, FlowDidReceiveErrorEvent, FlowDidRequestAppReviewEvent, FlowDidSelectProductEvent, FlowDidStartPurchaseEvent, FlowDidStartRestoreEvent, FlowEventHandlers, FlowEventId, FlowEventIdType, FlowEventView, FlowObserverDidInitiatePurchaseEvent, FlowObserverDidInitiateRestoreEvent, FlowPermissionResponse, FlowPermissionStatus, FlowUserAction, GLOBAL_EVENT_TO_NATIVE_EVENT, Gender, GetPaywallProductsParamsInput, GetPlacementForDefaultAudienceParamsInput, GetPlacementParamsInput, GlobalEventIdType, GlobalEventName, HANDLER_TO_EVENT_CONFIG, HANDLER_TO_NATIVE_EVENT, ILogContext, ILogScope, ILoggerAdapter, IPlatformAdapter, ISdkMetadataAdapter, IdentifyParamsInput, Log, LogArgs, LogContext, LogEvent, LogLevel, LogScope, LogSink, LogTrace, LoggerConfig, MakePurchaseParamsInput, MethodName, MethodNames, NATIVE_EVENT_RESOLVER, NATIVE_EVENT_TO_HANDLERS, ONBOARDING_EVENT_MAPPINGS, OfferType, OnboardingAnalyticsEvent, OnboardingAnalyticsEventName, OnboardingCloseEvent, OnboardingCustomEvent, OnboardingErrorEvent, OnboardingEventHandlers, OnboardingEventId, OnboardingEventIdType, OnboardingEventView, OnboardingFinishedLoadingEvent, OnboardingPaywallEvent, OnboardingStateUpdatedAction, OnboardingStateUpdatedEvent, ParsedFlowEvent, ParsedOnboardingEvent, PlatformOS, ProductPeriod, ProductPurchaseParams, ProductReference, RefundPreference, ScopeArgs, Serializable$1 as Serializable, VendorStore, WebPresentation, components, consoleLogSink, extractFlowCallbackArgs, extractOnboardingCallbackArgs, filterUndefined, generateId, getErrorCode, getErrorPrompt, mapValues, mergeOptions, parseCommonEvent, parseFlowEvent, parseMethodResult, parseOnboardingEvent, withErrorContext };
|
|
4154
|
+
export { ActivateParamsInput, AdaptyAccessLevel, AdaptyAndroidPurchaseParams, AdaptyAndroidSubscriptionUpdateReplacementMode, AdaptyBridgeError, AdaptyCustomAsset, AdaptyCustomColorAsset, AdaptyCustomGradientAsset, AdaptyCustomImageAsset, AdaptyCustomVideoAsset, AdaptyDiscountPhase, AdaptyError, AdaptyErrorInput, AdaptyExternalAttributionProvider, AdaptyFlow, AdaptyFlowPaywall, AdaptyFlowUiSchema, AdaptyFlowUiSchemaGrid, AdaptyFlowUiSchemaLayout, AdaptyIOSPresentationStyle, AdaptyInstallationDetails, AdaptyInstallationStatus, AdaptyNativeError, AdaptyNonSubscription, AdaptyOnboarding, AdaptyOnboardingBuilder, AdaptyPaywallProduct, AdaptyPermission, AdaptyPlacement, AdaptyPrice, AdaptyProductIdentifier, AdaptyProfile, AdaptyProfileParameters, AdaptyPromotedProduct, AdaptyPurchaseResult, AdaptyRemoteConfig, AdaptyStoreMessageType, AdaptySubscription, AdaptySubscriptionDetails, AdaptySubscriptionOffer, AdaptySubscriptionOfferId, AdaptySubscriptionPeriod, AdaptyType, AdaptyUiDialogActionType, AdaptyUiDialogConfig, AdaptyUiMediaCache, AdaptyUiOnboardingMeta, AdaptyUiOnboardingStateParams, AdaptyUiView, AppTrackingTransparencyStatus, ArgType, CancellationReason, CoderDependencies, CoderFactory, Converter, CreateFlowViewParamsInput, CreateOnboardingViewParamsInput, DefaultLoggerAdapter, DefaultPlatformAdapter, DefaultSdkMetadataAdapter, ErrorCode, ErrorCodeName, ErrorConverter, EventHandlerResult, FetchPolicy, FileLocation, FlowDidAppearEvent, FlowDidAskPermissionEvent, FlowDidDisappearEvent, FlowDidFailLoadingProductsEvent, FlowDidFailPurchaseEvent, FlowDidFailRestoreEvent, FlowDidFinishPurchaseEvent, FlowDidFinishRestoreEvent, FlowDidFinishWebPaymentNavigationEvent, FlowDidPerformActionEvent, FlowDidReceiveAnalyticEvent, FlowDidReceiveErrorEvent, FlowDidRequestAppReviewEvent, FlowDidSelectProductEvent, FlowDidStartPurchaseEvent, FlowDidStartRestoreEvent, FlowEventHandlers, FlowEventId, FlowEventIdType, FlowEventView, FlowObserverDidInitiatePurchaseEvent, FlowObserverDidInitiateRestoreEvent, FlowPermissionResponse, FlowPermissionStatus, FlowUserAction, GLOBAL_EVENT_TO_NATIVE_EVENT, Gender, GetPaywallProductsParamsInput, GetPlacementForDefaultAudienceParamsInput, GetPlacementParamsInput, GlobalEventIdType, GlobalEventName, HANDLER_TO_EVENT_CONFIG, HANDLER_TO_NATIVE_EVENT, ILogContext, ILogScope, ILoggerAdapter, IPlatformAdapter, ISdkMetadataAdapter, IdentifyParamsInput, Log, LogArgs, LogContext, LogEvent, LogLevel, LogScope, LogSink, LogTrace, LoggerConfig, MakePurchaseParamsInput, MethodName, MethodNames, NATIVE_EVENT_RESOLVER, NATIVE_EVENT_TO_HANDLERS, ONBOARDING_EVENT_MAPPINGS, OfferType, OnboardingAnalyticsEvent, OnboardingAnalyticsEventName, OnboardingCloseEvent, OnboardingCustomEvent, OnboardingErrorEvent, OnboardingEventHandlers, OnboardingEventId, OnboardingEventIdType, OnboardingEventView, OnboardingFinishedLoadingEvent, OnboardingPaywallEvent, OnboardingStateUpdatedAction, OnboardingStateUpdatedEvent, ParsedFlowEvent, ParsedOnboardingEvent, PlatformOS, PreloadPlacementsParamsInput, ProductPeriod, ProductPurchaseParams, ProductReference, RefundPreference, ScopeArgs, Serializable$1 as Serializable, VendorStore, WebPresentation, components, consoleLogSink, extractFlowCallbackArgs, extractOnboardingCallbackArgs, filterUndefined, generateId, getErrorCode, getErrorPrompt, mapValues, mergeOptions, parseCommonEvent, parseFlowEvent, parseMethodResult, parseOnboardingEvent, withErrorContext };
|
|
4034
4155
|
//# sourceMappingURL=index.d.cts.map
|