@adapty/core 4.1.2 → 4.2.0-dev.13e366e9c578e84ba81d59fc10f96861b0cb81b8
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 +17 -1
- package/dist/index.d.cts +126 -6
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +126 -6
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +17 -1
- 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
|
@@ -337,6 +337,8 @@ const ErrorCodeMapping = Object.freeze({
|
|
|
337
337
|
3007: "unsupportedData",
|
|
338
338
|
3100: "persistingDataError",
|
|
339
339
|
3101: "fetchTimeoutError",
|
|
340
|
+
3201: "operationInProgress",
|
|
341
|
+
3202: "resolverFailure",
|
|
340
342
|
9e3: "operationInterrupted"
|
|
341
343
|
});
|
|
342
344
|
const ErrorCode = ErrorCodeMapping;
|
|
@@ -389,6 +391,8 @@ const ErrorCodeName = Object.freeze({
|
|
|
389
391
|
unsupportedData: 3007,
|
|
390
392
|
persistingDataError: 3100,
|
|
391
393
|
fetchTimeoutError: 3101,
|
|
394
|
+
operationInProgress: 3201,
|
|
395
|
+
resolverFailure: 3202,
|
|
392
396
|
operationInterrupted: 9e3
|
|
393
397
|
});
|
|
394
398
|
function getErrorCode(error) {
|
|
@@ -711,6 +715,7 @@ var AdaptyConfigurationCoder = class {
|
|
|
711
715
|
config["observer_mode"] = params.observerMode ?? false;
|
|
712
716
|
config["ip_address_collection_disabled"] = params.ipAddressCollectionDisabled ?? false;
|
|
713
717
|
config["adapty_attribution_enabled"] = params.adaptyAttributionEnabled ?? false;
|
|
718
|
+
if (params.storeMessagesHandling) config["store_messages_handling"] = params.storeMessagesHandling;
|
|
714
719
|
if (params.logLevel) config["log_level"] = params.logLevel;
|
|
715
720
|
config["server_cluster"] = params.serverCluster ?? "default";
|
|
716
721
|
if (params.backendProxyHost) config["backend_proxy_host"] = params.backendProxyHost;
|
|
@@ -1126,6 +1131,11 @@ var AdaptyFlowCoder = class extends Coder {
|
|
|
1126
1131
|
required: true,
|
|
1127
1132
|
type: "string"
|
|
1128
1133
|
},
|
|
1134
|
+
variationName: {
|
|
1135
|
+
key: "variation_name",
|
|
1136
|
+
required: false,
|
|
1137
|
+
type: "string"
|
|
1138
|
+
},
|
|
1129
1139
|
remoteConfigs: {
|
|
1130
1140
|
key: "remote_configs",
|
|
1131
1141
|
required: false,
|
|
@@ -2556,6 +2566,7 @@ const RefundPreference = Object.freeze({
|
|
|
2556
2566
|
const MethodNames = [
|
|
2557
2567
|
"activate",
|
|
2558
2568
|
"adapty_ui_create_flow_view",
|
|
2569
|
+
"adapty_ui_destroy_flow_view",
|
|
2559
2570
|
"adapty_ui_dismiss_flow_view",
|
|
2560
2571
|
"adapty_ui_present_flow_view",
|
|
2561
2572
|
"adapty_ui_show_dialog",
|
|
@@ -2568,6 +2579,7 @@ const MethodNames = [
|
|
|
2568
2579
|
"get_flow",
|
|
2569
2580
|
"get_flow_for_default_audience",
|
|
2570
2581
|
"get_paywall_products",
|
|
2582
|
+
"get_pending_store_message_types",
|
|
2571
2583
|
"get_onboarding",
|
|
2572
2584
|
"get_onboarding_for_default_audience",
|
|
2573
2585
|
"get_profile",
|
|
@@ -2579,12 +2591,15 @@ const MethodNames = [
|
|
|
2579
2591
|
"make_promoted_purchase",
|
|
2580
2592
|
"make_purchase",
|
|
2581
2593
|
"open_web_paywall",
|
|
2594
|
+
"preload_flows",
|
|
2595
|
+
"preload_flows_for_default_audience",
|
|
2582
2596
|
"present_code_redemption_sheet",
|
|
2583
2597
|
"report_transaction",
|
|
2584
2598
|
"restore_purchases",
|
|
2585
2599
|
"set_fallback",
|
|
2586
2600
|
"set_integration_identifiers",
|
|
2587
2601
|
"set_log_level",
|
|
2602
|
+
"show_store_messages",
|
|
2588
2603
|
"update_collecting_refund_data_consent",
|
|
2589
2604
|
"update_external_attribution_data",
|
|
2590
2605
|
"update_profile",
|
|
@@ -2802,7 +2817,8 @@ function parseMethodResult(factory, input, resultType, ctx) {
|
|
|
2802
2817
|
"Boolean",
|
|
2803
2818
|
"Void",
|
|
2804
2819
|
"AdaptyUiView",
|
|
2805
|
-
"AdaptyUiDialogActionType"
|
|
2820
|
+
"AdaptyUiDialogActionType",
|
|
2821
|
+
"Array<AdaptyStoreMessageType>"
|
|
2806
2822
|
].includes(resultType)) return obj.success;
|
|
2807
2823
|
const coder = getCoder(factory, resultType, ctx);
|
|
2808
2824
|
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;
|
|
@@ -601,6 +623,11 @@ interface AdaptyFlow {
|
|
|
601
623
|
* @readonly
|
|
602
624
|
*/
|
|
603
625
|
readonly variationId: string;
|
|
626
|
+
/**
|
|
627
|
+
* A name of the variation.
|
|
628
|
+
* @readonly
|
|
629
|
+
*/
|
|
630
|
+
readonly variationName?: string;
|
|
604
631
|
/**
|
|
605
632
|
* Remote configs configured in Adapty Dashboard for this flow.
|
|
606
633
|
* @readonly
|
|
@@ -733,6 +760,16 @@ type AdaptyPurchaseResult = {
|
|
|
733
760
|
* @public
|
|
734
761
|
*/
|
|
735
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 & {});
|
|
736
773
|
/**
|
|
737
774
|
* Interface representing a user profile in Adapty,
|
|
738
775
|
* including details about the user's subscriptions and consumable products.
|
|
@@ -2028,6 +2065,25 @@ type GetPlacementForDefaultAudienceParamsInput = {
|
|
|
2028
2065
|
*/
|
|
2029
2066
|
maxAgeSeconds: number;
|
|
2030
2067
|
};
|
|
2068
|
+
/**
|
|
2069
|
+
* Describes optional parameters for the placement preload methods.
|
|
2070
|
+
*
|
|
2071
|
+
* @remarks
|
|
2072
|
+
* Preloading has no fetch policy: it always goes to the network and only warms
|
|
2073
|
+
* the placement cache, so unlike {@link GetPlacementParamsInput} the only knob
|
|
2074
|
+
* is the timeout.
|
|
2075
|
+
*/
|
|
2076
|
+
interface PreloadPlacementsParamsInput {
|
|
2077
|
+
/**
|
|
2078
|
+
* This value limits the timeout (in milliseconds) for this method.
|
|
2079
|
+
*
|
|
2080
|
+
* @remarks
|
|
2081
|
+
* The native SDKs clamp anything below 1000 ms up to 1000 ms. Reaching the
|
|
2082
|
+
* timeout is not an error by itself — the affected placements are retried
|
|
2083
|
+
* against the default audience source.
|
|
2084
|
+
*/
|
|
2085
|
+
loadTimeoutMs?: number;
|
|
2086
|
+
}
|
|
2031
2087
|
/**
|
|
2032
2088
|
* Describes optional parameters for the {@link activate} method.
|
|
2033
2089
|
*/
|
|
@@ -2112,6 +2168,21 @@ interface ActivateParamsInput {
|
|
|
2112
2168
|
* @defaultValue `false`
|
|
2113
2169
|
*/
|
|
2114
2170
|
adaptyAttributionEnabled?: boolean;
|
|
2171
|
+
/**
|
|
2172
|
+
* Controls who decides when store messages are shown: App Store messages
|
|
2173
|
+
* (price increase consent, billing issue, win-back offer, etc.) on iOS,
|
|
2174
|
+
* Google Play in-app messages (e.g. a declined payment) on Android.
|
|
2175
|
+
*
|
|
2176
|
+
* @remarks
|
|
2177
|
+
* - `'auto'` — iOS: StoreKit presents them automatically. Android: the SDK
|
|
2178
|
+
* requests them on every `Activity.onResume`.
|
|
2179
|
+
* - `'manual'` — messages are shown only when the app calls `showStoreMessages`.
|
|
2180
|
+
* On iOS the SDK also keeps them in a queue readable via `getPendingStoreMessageTypes`.
|
|
2181
|
+
*
|
|
2182
|
+
* Has no effect below iOS 16.
|
|
2183
|
+
* @defaultValue `'auto'`
|
|
2184
|
+
*/
|
|
2185
|
+
storeMessagesHandling?: 'auto' | 'manual';
|
|
2115
2186
|
ios?: {
|
|
2116
2187
|
/**
|
|
2117
2188
|
* Disables IDFA collection
|
|
@@ -2318,13 +2389,22 @@ interface components {
|
|
|
2318
2389
|
'AdaptyUIDismissFlowView.Request': {
|
|
2319
2390
|
method: 'adapty_ui_dismiss_flow_view';
|
|
2320
2391
|
id: string;
|
|
2321
|
-
destroy
|
|
2392
|
+
destroy: boolean;
|
|
2322
2393
|
};
|
|
2323
2394
|
'AdaptyUIDismissFlowView.Response': OneOf<[{
|
|
2324
2395
|
error: components['defs']['AdaptyError'];
|
|
2325
2396
|
}, {
|
|
2326
2397
|
success: true;
|
|
2327
2398
|
}]>;
|
|
2399
|
+
'AdaptyUIDestroyFlowView.Request': {
|
|
2400
|
+
method: 'adapty_ui_destroy_flow_view';
|
|
2401
|
+
id: string;
|
|
2402
|
+
};
|
|
2403
|
+
'AdaptyUIDestroyFlowView.Response': OneOf<[{
|
|
2404
|
+
error: components['defs']['AdaptyError'];
|
|
2405
|
+
}, {
|
|
2406
|
+
success: true;
|
|
2407
|
+
}]>;
|
|
2328
2408
|
'AdaptyUIPresentOnboardingView.Request': {
|
|
2329
2409
|
method: 'adapty_ui_present_onboarding_view';
|
|
2330
2410
|
id: string;
|
|
@@ -2417,6 +2497,25 @@ interface components {
|
|
|
2417
2497
|
}, {
|
|
2418
2498
|
success: components['defs']['AdaptyFlow'];
|
|
2419
2499
|
}]>;
|
|
2500
|
+
'PreloadFlows.Request': {
|
|
2501
|
+
method: 'preload_flows';
|
|
2502
|
+
placement_ids: string[];
|
|
2503
|
+
load_timeout?: number;
|
|
2504
|
+
};
|
|
2505
|
+
'PreloadFlows.Response': OneOf<[{
|
|
2506
|
+
error: components['defs']['AdaptyError'];
|
|
2507
|
+
}, {
|
|
2508
|
+
success: true;
|
|
2509
|
+
}]>;
|
|
2510
|
+
'PreloadFlowsForDefaultAudience.Request': {
|
|
2511
|
+
method: 'preload_flows_for_default_audience';
|
|
2512
|
+
placement_ids: string[];
|
|
2513
|
+
};
|
|
2514
|
+
'PreloadFlowsForDefaultAudience.Response': OneOf<[{
|
|
2515
|
+
error: components['defs']['AdaptyError'];
|
|
2516
|
+
}, {
|
|
2517
|
+
success: true;
|
|
2518
|
+
}]>;
|
|
2420
2519
|
'GetPaywallProducts.Request': {
|
|
2421
2520
|
method: 'get_paywall_products';
|
|
2422
2521
|
flow: components['defs']['AdaptyFlow'];
|
|
@@ -2499,6 +2598,23 @@ interface components {
|
|
|
2499
2598
|
}, {
|
|
2500
2599
|
success: components['defs']['AdaptyPurchaseResult'];
|
|
2501
2600
|
}]>;
|
|
2601
|
+
'GetPendingStoreMessageTypes.Request': {
|
|
2602
|
+
method: 'get_pending_store_message_types';
|
|
2603
|
+
};
|
|
2604
|
+
'GetPendingStoreMessageTypes.Response': OneOf<[{
|
|
2605
|
+
error: components['defs']['AdaptyError'];
|
|
2606
|
+
}, {
|
|
2607
|
+
success: components['defs']['AdaptyStoreMessageType'][];
|
|
2608
|
+
}]>;
|
|
2609
|
+
'ShowStoreMessage.Request': {
|
|
2610
|
+
method: 'show_store_messages';
|
|
2611
|
+
filter?: components['defs']['AdaptyStoreMessageType'][];
|
|
2612
|
+
};
|
|
2613
|
+
'ShowStoreMessage.Response': OneOf<[{
|
|
2614
|
+
error: components['defs']['AdaptyError'];
|
|
2615
|
+
}, {
|
|
2616
|
+
success: true;
|
|
2617
|
+
}]>;
|
|
2502
2618
|
'OpenWebPaywall.Request': {
|
|
2503
2619
|
method: 'open_web_paywall';
|
|
2504
2620
|
open_in?: components['defs']['AdaptyWebPresentation'];
|
|
@@ -2792,7 +2908,7 @@ interface components {
|
|
|
2792
2908
|
view: components['defs']['AdaptyUI.OnboardingView'];
|
|
2793
2909
|
meta: components['defs']['AdaptyUI.OnboardingMeta'];
|
|
2794
2910
|
event: {
|
|
2795
|
-
name: 'onboarding_started' | 'screen_presented' | 'screen_completed' | 'second_screen_presented' | 'registration_screen_presented' | 'products_screen_presented' | 'user_email_collected' | 'onboarding_completed' | string;
|
|
2911
|
+
name: 'onboarding_started' | 'screen_presented' | 'screen_completed' | 'second_screen_presented' | 'registration_screen_presented' | 'products_screen_presented' | 'user_email_collected' | 'onboarding_completed' | (string & {});
|
|
2796
2912
|
element_id?: string;
|
|
2797
2913
|
reply?: string;
|
|
2798
2914
|
};
|
|
@@ -2867,6 +2983,7 @@ interface components {
|
|
|
2867
2983
|
customer_user_id?: string;
|
|
2868
2984
|
customer_identity_parameters?: components['defs']['CustomerIdentityParameters'];
|
|
2869
2985
|
observer_mode?: boolean;
|
|
2986
|
+
store_messages_handling?: components['defs']['StoreMessagesHandling'];
|
|
2870
2987
|
apple_idfa_collection_disabled?: boolean;
|
|
2871
2988
|
google_adid_collection_disabled?: boolean;
|
|
2872
2989
|
google_enable_pending_prepaid_plans?: boolean;
|
|
@@ -2887,6 +3004,8 @@ interface components {
|
|
|
2887
3004
|
disk_storage_size_limit?: number;
|
|
2888
3005
|
};
|
|
2889
3006
|
};
|
|
3007
|
+
StoreMessagesHandling: 'auto' | 'manual' | 'default';
|
|
3008
|
+
AdaptyStoreMessageType: 'generic' | 'price_increase_consent' | 'billing_issue' | 'win_back_offer' | (string & {});
|
|
2890
3009
|
CustomerIdentityParameters: {
|
|
2891
3010
|
app_account_token?: string;
|
|
2892
3011
|
obfuscated_account_id?: string;
|
|
@@ -2992,6 +3111,7 @@ interface components {
|
|
|
2992
3111
|
flow_id: string;
|
|
2993
3112
|
flow_name: string;
|
|
2994
3113
|
variation_id: string;
|
|
3114
|
+
variation_name?: string;
|
|
2995
3115
|
remote_configs?: components['defs']['AdaptyRemoteConfig'][];
|
|
2996
3116
|
flow_version_id?: string;
|
|
2997
3117
|
variations: components['defs']['AdaptyFlowPaywall'][];
|
|
@@ -3193,7 +3313,7 @@ interface components {
|
|
|
3193
3313
|
type: 'custom';
|
|
3194
3314
|
value: string;
|
|
3195
3315
|
}]>;
|
|
3196
|
-
'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;
|
|
3316
|
+
'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 & {});
|
|
3197
3317
|
'AdaptyUI.CustomTagsValues': {
|
|
3198
3318
|
[key: string]: string;
|
|
3199
3319
|
};
|
|
@@ -3428,7 +3548,7 @@ declare class AdaptyInstallationStatusCoder implements Converter<AdaptyInstallat
|
|
|
3428
3548
|
* native side does not register would fail at runtime, not at compile time.
|
|
3429
3549
|
* @internal
|
|
3430
3550
|
*/
|
|
3431
|
-
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"];
|
|
3551
|
+
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"];
|
|
3432
3552
|
type MethodName = (typeof MethodNames)[number];
|
|
3433
3553
|
/**
|
|
3434
3554
|
* Types of values that can be passed
|
|
@@ -3956,7 +4076,7 @@ declare function extractOnboardingCallbackArgs<T extends keyof OnboardingEventHa
|
|
|
3956
4076
|
|
|
3957
4077
|
//#endregion
|
|
3958
4078
|
//#region src/coders/parse.d.ts
|
|
3959
|
-
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"];
|
|
4079
|
+
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"];
|
|
3960
4080
|
type AdaptyType = (typeof AdaptyTypes)[number];
|
|
3961
4081
|
declare function parseMethodResult<T>(factory: CoderFactory, input: string, resultType: AdaptyType, ctx?: LogContext): T;
|
|
3962
4082
|
declare function parseCommonEvent(factory: CoderFactory, event: string, input: string, ctx?: LogContext): any;
|
|
@@ -4024,5 +4144,5 @@ declare function withErrorContext<T extends (...args: never[]) => unknown>(callb
|
|
|
4024
4144
|
//#endregion
|
|
4025
4145
|
//# sourceMappingURL=with-error-context.d.ts.map
|
|
4026
4146
|
|
|
4027
|
-
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 };
|
|
4147
|
+
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 };
|
|
4028
4148
|
//# sourceMappingURL=index.d.cts.map
|