@adapty/core 4.0.2 → 4.1.2-dev.18709eae4ac7e2ab6281a351e19a76b5e1812c66
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.cjs +136 -6
- package/dist/index.d.cts +262 -71
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +262 -71
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +136 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -529,6 +529,45 @@ interface AdaptyFlowPaywall {
|
|
|
529
529
|
id: string;
|
|
530
530
|
webPurchaseUrl?: string;
|
|
531
531
|
}
|
|
532
|
+
/**
|
|
533
|
+
* Describes a single layout of a flow UI schema.
|
|
534
|
+
* @public
|
|
535
|
+
*/
|
|
536
|
+
interface AdaptyFlowUiSchemaLayout {
|
|
537
|
+
readonly flowLayoutId: string;
|
|
538
|
+
}
|
|
539
|
+
/**
|
|
540
|
+
* Describes a single grid of a flow UI schema.
|
|
541
|
+
*
|
|
542
|
+
* @remarks
|
|
543
|
+
* A grid maps its {@link AdaptyFlowUiSchemaGrid.cells} onto the flow layouts
|
|
544
|
+
* for a given set of platforms, devices and breakpoints.
|
|
545
|
+
* @public
|
|
546
|
+
*/
|
|
547
|
+
interface AdaptyFlowUiSchemaGrid {
|
|
548
|
+
/**
|
|
549
|
+
* Platforms this grid applies to, or `'all'` for every platform.
|
|
550
|
+
* @readonly
|
|
551
|
+
*/
|
|
552
|
+
readonly platforms?: 'all' | ('ios' | 'android')[];
|
|
553
|
+
/**
|
|
554
|
+
* Device classes this grid applies to, or `'all'` for every device class.
|
|
555
|
+
* @readonly
|
|
556
|
+
*/
|
|
557
|
+
readonly devices?: 'all' | ('phone' | 'tab')[];
|
|
558
|
+
readonly customId?: string;
|
|
559
|
+
readonly hBreakpoints?: number[];
|
|
560
|
+
readonly vBreakpoints?: number[];
|
|
561
|
+
readonly cells: number[];
|
|
562
|
+
}
|
|
563
|
+
/**
|
|
564
|
+
* Layout schema used by the Adapty UI builder to render a flow.
|
|
565
|
+
* @public
|
|
566
|
+
*/
|
|
567
|
+
interface AdaptyFlowUiSchema {
|
|
568
|
+
readonly layouts: AdaptyFlowUiSchemaLayout[];
|
|
569
|
+
readonly grids: AdaptyFlowUiSchemaGrid[];
|
|
570
|
+
}
|
|
532
571
|
/**
|
|
533
572
|
* Describes an object that represents a flow,
|
|
534
573
|
* fetched for a placement.
|
|
@@ -557,6 +596,11 @@ interface AdaptyFlow {
|
|
|
557
596
|
* @readonly
|
|
558
597
|
*/
|
|
559
598
|
readonly paywalls: AdaptyFlowPaywall[];
|
|
599
|
+
/**
|
|
600
|
+
* Layout schema used by the Adapty UI builder to render this flow.
|
|
601
|
+
* @readonly
|
|
602
|
+
*/
|
|
603
|
+
readonly uiSchema?: AdaptyFlowUiSchema;
|
|
560
604
|
id: string;
|
|
561
605
|
flowVersionId?: string;
|
|
562
606
|
/** Server response creation timestamp in milliseconds. */
|
|
@@ -1034,6 +1078,55 @@ interface AdaptyPaywallProduct {
|
|
|
1034
1078
|
readonly isFamilyShareable: boolean;
|
|
1035
1079
|
};
|
|
1036
1080
|
}
|
|
1081
|
+
/**
|
|
1082
|
+
* Describes a product promoted in the App Store,
|
|
1083
|
+
* received through the `'onPromotedPurchaseReceived'` event.
|
|
1084
|
+
*
|
|
1085
|
+
* @remarks
|
|
1086
|
+
* Unlike {@link AdaptyPaywallProduct}, a promoted product does not belong to a
|
|
1087
|
+
* paywall, so it carries no placement, variation or A/B test information.
|
|
1088
|
+
* @public
|
|
1089
|
+
*/
|
|
1090
|
+
interface AdaptyPromotedProduct {
|
|
1091
|
+
/**
|
|
1092
|
+
* A description of the product.
|
|
1093
|
+
*/
|
|
1094
|
+
readonly localizedDescription: string;
|
|
1095
|
+
/**
|
|
1096
|
+
* The name of the product.
|
|
1097
|
+
*/
|
|
1098
|
+
readonly localizedTitle: string;
|
|
1099
|
+
/**
|
|
1100
|
+
* The region code of the locale used to format the price of the product.
|
|
1101
|
+
* ISO 3166 ALPHA-2 (US, DE)
|
|
1102
|
+
*/
|
|
1103
|
+
readonly regionCode?: string;
|
|
1104
|
+
/**
|
|
1105
|
+
* The cost of the product in the local currency
|
|
1106
|
+
*/
|
|
1107
|
+
readonly price?: AdaptyPrice;
|
|
1108
|
+
/**
|
|
1109
|
+
* Unique identifier of a product
|
|
1110
|
+
* from App Store Connect or Google Play Console
|
|
1111
|
+
*/
|
|
1112
|
+
readonly vendorProductId: string;
|
|
1113
|
+
/**
|
|
1114
|
+
* Internal payload data attached to the product.
|
|
1115
|
+
* @internal
|
|
1116
|
+
*/
|
|
1117
|
+
payloadData?: string;
|
|
1118
|
+
subscription?: AdaptySubscriptionDetails;
|
|
1119
|
+
ios?: {
|
|
1120
|
+
/**
|
|
1121
|
+
* Boolean value that indicates
|
|
1122
|
+
* whether the product is available for family sharing
|
|
1123
|
+
* in App Store Connect.
|
|
1124
|
+
* Will be `false` for iOS version below 14.0 and macOS version below 11.0.
|
|
1125
|
+
* @see {@link https://developer.apple.com/documentation/storekit/skproduct/3564805-isfamilyshareable}
|
|
1126
|
+
*/
|
|
1127
|
+
readonly isFamilyShareable: boolean;
|
|
1128
|
+
};
|
|
1129
|
+
}
|
|
1037
1130
|
interface AdaptySubscriptionDetails {
|
|
1038
1131
|
/**
|
|
1039
1132
|
* The period details for products that are subscriptions.
|
|
@@ -1686,6 +1779,11 @@ interface CreateFlowViewParamsInput {
|
|
|
1686
1779
|
* built with.
|
|
1687
1780
|
*/
|
|
1688
1781
|
locale?: string;
|
|
1782
|
+
/**
|
|
1783
|
+
* The id of a custom layout to render instead of the one resolved
|
|
1784
|
+
* automatically for the current device.
|
|
1785
|
+
*/
|
|
1786
|
+
customLayoutId?: string;
|
|
1689
1787
|
/**
|
|
1690
1788
|
* `true` if you want to prefetch products before presenting a flow view.
|
|
1691
1789
|
*/
|
|
@@ -1980,6 +2078,16 @@ interface ActivateParamsInput {
|
|
|
1980
2078
|
* @defaultValue `false`
|
|
1981
2079
|
*/
|
|
1982
2080
|
ipAddressCollectionDisabled?: boolean;
|
|
2081
|
+
/**
|
|
2082
|
+
* Enables the Adapty Attribution service.
|
|
2083
|
+
*
|
|
2084
|
+
* @remarks
|
|
2085
|
+
* When enabled, the SDK registers the install with Adapty Attribution so
|
|
2086
|
+
* acquisition data can be attributed without a third-party attribution SDK.
|
|
2087
|
+
*
|
|
2088
|
+
* @defaultValue `false`
|
|
2089
|
+
*/
|
|
2090
|
+
adaptyAttributionEnabled?: boolean;
|
|
1983
2091
|
ios?: {
|
|
1984
2092
|
/**
|
|
1985
2093
|
* Disables IDFA collection
|
|
@@ -2149,6 +2257,7 @@ interface components {
|
|
|
2149
2257
|
method: 'adapty_ui_create_flow_view';
|
|
2150
2258
|
flow: components['defs']['AdaptyFlow'];
|
|
2151
2259
|
locale?: components['defs']['AdaptyLocale'];
|
|
2260
|
+
custom_layout_id?: string;
|
|
2152
2261
|
load_timeout?: number;
|
|
2153
2262
|
preload_products?: boolean;
|
|
2154
2263
|
custom_tags?: components['defs']['AdaptyUI.CustomTagsValues'];
|
|
@@ -2357,6 +2466,15 @@ interface components {
|
|
|
2357
2466
|
}, {
|
|
2358
2467
|
success: components['defs']['AdaptyPurchaseResult'];
|
|
2359
2468
|
}]>;
|
|
2469
|
+
'MakePromotedPurchase.Request': {
|
|
2470
|
+
method: 'make_promoted_purchase';
|
|
2471
|
+
product: components['defs']['AdaptyPromotedProduct.Request'];
|
|
2472
|
+
};
|
|
2473
|
+
'MakePromotedPurchase.Response': OneOf<[{
|
|
2474
|
+
error: components['defs']['AdaptyError'];
|
|
2475
|
+
}, {
|
|
2476
|
+
success: components['defs']['AdaptyPurchaseResult'];
|
|
2477
|
+
}]>;
|
|
2360
2478
|
'OpenWebPaywall.Request': {
|
|
2361
2479
|
method: 'open_web_paywall';
|
|
2362
2480
|
open_in?: components['defs']['AdaptyWebPresentation'];
|
|
@@ -2443,12 +2561,12 @@ interface components {
|
|
|
2443
2561
|
}, {
|
|
2444
2562
|
success: true;
|
|
2445
2563
|
}]>;
|
|
2446
|
-
'
|
|
2447
|
-
method: '
|
|
2564
|
+
'UpdateExternalAttributionData.Request': {
|
|
2565
|
+
method: 'update_external_attribution_data';
|
|
2448
2566
|
attribution: string;
|
|
2449
|
-
|
|
2567
|
+
provider: string;
|
|
2450
2568
|
};
|
|
2451
|
-
'
|
|
2569
|
+
'UpdateExternalAttributionData.Response': OneOf<[{
|
|
2452
2570
|
error: components['defs']['AdaptyError'];
|
|
2453
2571
|
}, {
|
|
2454
2572
|
success: true;
|
|
@@ -2563,6 +2681,10 @@ interface components {
|
|
|
2563
2681
|
id: 'did_load_latest_profile';
|
|
2564
2682
|
profile: components['defs']['AdaptyProfile'];
|
|
2565
2683
|
};
|
|
2684
|
+
'Event.DidReceivePromotedPurchase': {
|
|
2685
|
+
id: 'did_receive_promoted_purchase';
|
|
2686
|
+
product: components['defs']['AdaptyPromotedProduct.Response'];
|
|
2687
|
+
};
|
|
2566
2688
|
'Event.OnInstallationDetailsSuccess': {
|
|
2567
2689
|
id: 'on_installation_details_success';
|
|
2568
2690
|
details: components['defs']['AdaptyInstallationDetails'];
|
|
@@ -2726,6 +2848,7 @@ interface components {
|
|
|
2726
2848
|
google_enable_pending_prepaid_plans?: boolean;
|
|
2727
2849
|
google_local_access_level_allowed?: boolean;
|
|
2728
2850
|
ip_address_collection_disabled?: boolean;
|
|
2851
|
+
adapty_attribution_enabled?: boolean;
|
|
2729
2852
|
clear_data_on_backup?: boolean;
|
|
2730
2853
|
server_cluster?: 'default' | 'eu' | 'cn';
|
|
2731
2854
|
backend_proxy_host?: string;
|
|
@@ -2761,7 +2884,7 @@ interface components {
|
|
|
2761
2884
|
is_family_shareable?: boolean;
|
|
2762
2885
|
region_code?: string;
|
|
2763
2886
|
price: components['defs']['AdaptyPrice'];
|
|
2764
|
-
subscription?: components['defs']['
|
|
2887
|
+
subscription?: components['defs']['AdaptyProduct.Subscription'];
|
|
2765
2888
|
payload_data?: string;
|
|
2766
2889
|
};
|
|
2767
2890
|
AdaptyPrice: {
|
|
@@ -2770,7 +2893,26 @@ interface components {
|
|
|
2770
2893
|
currency_symbol?: string;
|
|
2771
2894
|
localized_string?: string;
|
|
2772
2895
|
};
|
|
2773
|
-
'
|
|
2896
|
+
'AdaptyPromotedProduct.Request': {
|
|
2897
|
+
vendor_product_id: string;
|
|
2898
|
+
subscription?: {
|
|
2899
|
+
offer?: {
|
|
2900
|
+
offer_identifier: components['defs']['AdaptySubscriptionOffer.Identifier'];
|
|
2901
|
+
};
|
|
2902
|
+
};
|
|
2903
|
+
payload_data?: string;
|
|
2904
|
+
};
|
|
2905
|
+
'AdaptyPromotedProduct.Response': {
|
|
2906
|
+
vendor_product_id: string;
|
|
2907
|
+
localized_description: string;
|
|
2908
|
+
localized_title: string;
|
|
2909
|
+
is_family_shareable?: boolean;
|
|
2910
|
+
region_code?: string;
|
|
2911
|
+
price: components['defs']['AdaptyPrice'];
|
|
2912
|
+
subscription?: components['defs']['AdaptyProduct.Subscription'];
|
|
2913
|
+
payload_data?: string;
|
|
2914
|
+
};
|
|
2915
|
+
'AdaptyProduct.Subscription': {
|
|
2774
2916
|
group_identifier?: string;
|
|
2775
2917
|
period: components['defs']['AdaptySubscriptionPeriod'];
|
|
2776
2918
|
localized_period?: string;
|
|
@@ -2784,7 +2926,11 @@ interface components {
|
|
|
2784
2926
|
access_level_id: string;
|
|
2785
2927
|
product_type: string;
|
|
2786
2928
|
paywall_product_index: number;
|
|
2787
|
-
|
|
2929
|
+
subscription?: {
|
|
2930
|
+
offer?: {
|
|
2931
|
+
offer_identifier: components['defs']['AdaptySubscriptionOffer.Identifier'];
|
|
2932
|
+
};
|
|
2933
|
+
};
|
|
2788
2934
|
paywall_variation_id: string;
|
|
2789
2935
|
paywall_ab_test_name: string;
|
|
2790
2936
|
paywall_name: string;
|
|
@@ -2825,6 +2971,19 @@ interface components {
|
|
|
2825
2971
|
remote_configs?: components['defs']['AdaptyRemoteConfig'][];
|
|
2826
2972
|
flow_version_id?: string;
|
|
2827
2973
|
variations: components['defs']['AdaptyFlowPaywall'][];
|
|
2974
|
+
ui_schema?: {
|
|
2975
|
+
layouts: {
|
|
2976
|
+
flow_layout_id: string;
|
|
2977
|
+
}[];
|
|
2978
|
+
grids: {
|
|
2979
|
+
platforms?: OneOf<['all', ('ios' | 'android')[]]>;
|
|
2980
|
+
devices?: OneOf<['all', ('phone' | 'tab')[]]>;
|
|
2981
|
+
custom_id?: string;
|
|
2982
|
+
h_breakpoints?: number[];
|
|
2983
|
+
v_breakpoints?: number[];
|
|
2984
|
+
cells: number[];
|
|
2985
|
+
}[];
|
|
2986
|
+
};
|
|
2828
2987
|
payload_data?: string;
|
|
2829
2988
|
response_created_at: number;
|
|
2830
2989
|
};
|
|
@@ -3138,56 +3297,73 @@ declare abstract class SimpleCoder<Model extends Record<string, any>, Serializab
|
|
|
3138
3297
|
//#endregion
|
|
3139
3298
|
//#region src/coders/adapty-access-level.d.ts
|
|
3140
3299
|
//# sourceMappingURL=coder.d.ts.map
|
|
3141
|
-
type Model$
|
|
3142
|
-
type Serializable$
|
|
3143
|
-
declare class AdaptyAccessLevelCoder extends SimpleCoder<Model$
|
|
3144
|
-
protected properties: Properties<Model$
|
|
3300
|
+
type Model$34 = AdaptyAccessLevel;
|
|
3301
|
+
type Serializable$35 = Def['AdaptyProfile.AccessLevel'];
|
|
3302
|
+
declare class AdaptyAccessLevelCoder extends SimpleCoder<Model$34, Serializable$35> {
|
|
3303
|
+
protected properties: Properties<Model$34, Serializable$35>;
|
|
3145
3304
|
}
|
|
3146
3305
|
|
|
3147
3306
|
//#endregion
|
|
3148
3307
|
//#region src/coders/adapty-configuration.d.ts
|
|
3149
|
-
type Model$
|
|
3150
|
-
type Serializable$
|
|
3308
|
+
type Model$33 = ActivateParamsInput;
|
|
3309
|
+
type Serializable$34 = Def['AdaptyConfiguration'];
|
|
3151
3310
|
declare class AdaptyConfigurationCoder {
|
|
3152
3311
|
private readonly platform;
|
|
3153
3312
|
private readonly sdkMetadata;
|
|
3154
3313
|
constructor(platform: IPlatformAdapter, sdkMetadata: ISdkMetadataAdapter);
|
|
3155
|
-
encode(apiKey: string, params: Model$
|
|
3314
|
+
encode(apiKey: string, params: Model$33): Serializable$34;
|
|
3156
3315
|
}
|
|
3157
3316
|
|
|
3158
3317
|
//#endregion
|
|
3159
3318
|
//#region src/coders/adapty-discount-phase.d.ts
|
|
3160
|
-
type Model$
|
|
3161
|
-
type Serializable$
|
|
3162
|
-
declare class AdaptyDiscountPhaseCoder extends SimpleCoder<Model$
|
|
3163
|
-
protected properties: Properties<Model$
|
|
3319
|
+
type Model$32 = AdaptyDiscountPhase;
|
|
3320
|
+
type Serializable$33 = Def['AdaptySubscriptionOffer.Phase'];
|
|
3321
|
+
declare class AdaptyDiscountPhaseCoder extends SimpleCoder<Model$32, Serializable$33> {
|
|
3322
|
+
protected properties: Properties<Model$32, Serializable$33>;
|
|
3164
3323
|
}
|
|
3165
3324
|
|
|
3166
3325
|
//#endregion
|
|
3167
3326
|
//#region src/coders/adapty-flow-paywall.d.ts
|
|
3168
|
-
type Model$
|
|
3169
|
-
type CodableModel$3 = Omit<Model$
|
|
3327
|
+
type Model$31 = AdaptyFlowPaywall;
|
|
3328
|
+
type CodableModel$3 = Omit<Model$31, 'productIdentifiers'> & {
|
|
3170
3329
|
products?: ProductReference[];
|
|
3171
3330
|
};
|
|
3172
|
-
type Serializable$
|
|
3173
|
-
declare class AdaptyFlowPaywallCoder extends Coder<Model$
|
|
3174
|
-
protected properties: Properties<CodableModel$3, Serializable$
|
|
3175
|
-
decode(data: Serializable$
|
|
3176
|
-
encode(data: Model$
|
|
3331
|
+
type Serializable$32 = Def['AdaptyFlowPaywall'];
|
|
3332
|
+
declare class AdaptyFlowPaywallCoder extends Coder<Model$31, CodableModel$3, Serializable$32> {
|
|
3333
|
+
protected properties: Properties<CodableModel$3, Serializable$32>;
|
|
3334
|
+
decode(data: Serializable$32): Model$31;
|
|
3335
|
+
encode(data: Model$31): Serializable$32;
|
|
3336
|
+
}
|
|
3337
|
+
|
|
3338
|
+
//#endregion
|
|
3339
|
+
//#region src/coders/adapty-flow-ui-schema.d.ts
|
|
3340
|
+
type Model$30 = AdaptyFlowUiSchema;
|
|
3341
|
+
type Serializable$31 = NonNullable<Def['AdaptyFlow']['ui_schema']>;
|
|
3342
|
+
/**
|
|
3343
|
+
* `ui_schema` is written by hand rather than declared through `Properties`,
|
|
3344
|
+
* because `platforms` and `devices` are unions of an `'all'` literal and an
|
|
3345
|
+
* array, and `PropertyMeta` can only carry a single runtime type per property.
|
|
3346
|
+
*
|
|
3347
|
+
* The flow is passed back to the native side (e.g. `adapty_ui_create_flow_view`),
|
|
3348
|
+
* so this schema has to survive a decode/encode round trip unchanged.
|
|
3349
|
+
*/
|
|
3350
|
+
declare class AdaptyFlowUiSchemaCoder implements Converter<Model$30, Serializable$31> {
|
|
3351
|
+
decode(json: Serializable$31): Model$30;
|
|
3352
|
+
encode(model: Model$30): Serializable$31;
|
|
3177
3353
|
}
|
|
3178
3354
|
|
|
3179
3355
|
//#endregion
|
|
3180
3356
|
//#region src/coders/adapty-flow.d.ts
|
|
3181
|
-
type Model$
|
|
3182
|
-
type Serializable$
|
|
3183
|
-
declare class AdaptyFlowCoder extends SimpleCoder<Model$
|
|
3184
|
-
protected properties: Properties<Model$
|
|
3357
|
+
type Model$29 = AdaptyFlow;
|
|
3358
|
+
type Serializable$30 = Def['AdaptyFlow'];
|
|
3359
|
+
declare class AdaptyFlowCoder extends SimpleCoder<Model$29, Serializable$30> {
|
|
3360
|
+
protected properties: Properties<Model$29, Serializable$30>;
|
|
3185
3361
|
}
|
|
3186
3362
|
|
|
3187
3363
|
//#endregion
|
|
3188
3364
|
//#region src/coders/adapty-identify-params.d.ts
|
|
3189
|
-
type Model$
|
|
3190
|
-
type Serializable$
|
|
3365
|
+
type Model$28 = IdentifyParamsInput;
|
|
3366
|
+
type Serializable$29 = {
|
|
3191
3367
|
app_account_token?: string;
|
|
3192
3368
|
obfuscated_account_id?: string;
|
|
3193
3369
|
obfuscated_profile_id?: string;
|
|
@@ -3195,7 +3371,7 @@ type Serializable$28 = {
|
|
|
3195
3371
|
declare class AdaptyIdentifyParamsCoder {
|
|
3196
3372
|
private readonly platform;
|
|
3197
3373
|
constructor(platform: IPlatformAdapter);
|
|
3198
|
-
encode(params?: Model$
|
|
3374
|
+
encode(params?: Model$28): Serializable$29 | undefined;
|
|
3199
3375
|
}
|
|
3200
3376
|
|
|
3201
3377
|
//#endregion
|
|
@@ -3217,12 +3393,14 @@ declare class AdaptyInstallationStatusCoder implements Converter<AdaptyInstallat
|
|
|
3217
3393
|
//#region src/types/bridge.d.ts
|
|
3218
3394
|
//# sourceMappingURL=adapty-installation-status.d.ts.map
|
|
3219
3395
|
/**
|
|
3220
|
-
* Valid list of callable bridge handlers
|
|
3221
|
-
*
|
|
3222
|
-
*
|
|
3396
|
+
* Valid list of callable bridge handlers.
|
|
3397
|
+
*
|
|
3398
|
+
* The source of truth is `cross_platform.yaml`: one entry per `$requests`
|
|
3399
|
+
* method const. `bridge.test.ts` asserts the two stay in sync — a method the
|
|
3400
|
+
* native side does not register would fail at runtime, not at compile time.
|
|
3223
3401
|
* @internal
|
|
3224
3402
|
*/
|
|
3225
|
-
declare const MethodNames: readonly ["activate", "
|
|
3403
|
+
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"];
|
|
3226
3404
|
type MethodName = (typeof MethodNames)[number];
|
|
3227
3405
|
/**
|
|
3228
3406
|
* Types of values that can be passed
|
|
@@ -3249,6 +3427,7 @@ interface AdaptyBridgeError {
|
|
|
3249
3427
|
}
|
|
3250
3428
|
interface EventMap {
|
|
3251
3429
|
onLatestProfileLoad: string;
|
|
3430
|
+
onPromotedPurchaseReceived: string;
|
|
3252
3431
|
onInstallationDetailsSuccess: string;
|
|
3253
3432
|
onInstallationDetailsFail: string;
|
|
3254
3433
|
}
|
|
@@ -3264,64 +3443,73 @@ interface ErrorConverter<Model extends Record<string, any>> extends Converter<Mo
|
|
|
3264
3443
|
//#endregion
|
|
3265
3444
|
//#region src/coders/adapty-native-error.d.ts
|
|
3266
3445
|
//# sourceMappingURL=error-coder.d.ts.map
|
|
3267
|
-
type Model$
|
|
3268
|
-
type Serializable$
|
|
3269
|
-
declare class AdaptyNativeErrorCoder extends SimpleCoder<Model$
|
|
3446
|
+
type Model$27 = AdaptyNativeError;
|
|
3447
|
+
type Serializable$28 = Def['AdaptyError'];
|
|
3448
|
+
declare class AdaptyNativeErrorCoder extends SimpleCoder<Model$27, Serializable$28> implements ErrorConverter<Model$27> {
|
|
3270
3449
|
type: 'error';
|
|
3271
|
-
protected properties: Properties<Model$
|
|
3272
|
-
getError(data: Model$
|
|
3450
|
+
protected properties: Properties<Model$27, Serializable$28>;
|
|
3451
|
+
getError(data: Model$27): AdaptyError;
|
|
3273
3452
|
}
|
|
3274
3453
|
|
|
3275
3454
|
//#endregion
|
|
3276
3455
|
//#region src/coders/adapty-non-subscription.d.ts
|
|
3277
|
-
type Model$
|
|
3278
|
-
type Serializable$
|
|
3279
|
-
declare class AdaptyNonSubscriptionCoder extends SimpleCoder<Model$
|
|
3280
|
-
protected properties: Properties<Model$
|
|
3456
|
+
type Model$26 = AdaptyNonSubscription;
|
|
3457
|
+
type Serializable$27 = Def['AdaptyProfile.NonSubscription'];
|
|
3458
|
+
declare class AdaptyNonSubscriptionCoder extends SimpleCoder<Model$26, Serializable$27> {
|
|
3459
|
+
protected properties: Properties<Model$26, Serializable$27>;
|
|
3281
3460
|
}
|
|
3282
3461
|
|
|
3283
3462
|
//#endregion
|
|
3284
3463
|
//#region src/coders/adapty-onboarding-builder.d.ts
|
|
3285
|
-
type Model$
|
|
3286
|
-
type Serializable$
|
|
3287
|
-
declare class AdaptyOnboardingBuilderCoder extends SimpleCoder<Model$
|
|
3288
|
-
protected properties: Properties<Model$
|
|
3464
|
+
type Model$25 = AdaptyOnboardingBuilder;
|
|
3465
|
+
type Serializable$26 = Required<Def['AdaptyOnboarding']>['onboarding_builder'];
|
|
3466
|
+
declare class AdaptyOnboardingBuilderCoder extends SimpleCoder<Model$25, Serializable$26> {
|
|
3467
|
+
protected properties: Properties<Model$25, Serializable$26>;
|
|
3289
3468
|
}
|
|
3290
3469
|
|
|
3291
3470
|
//#endregion
|
|
3292
3471
|
//#region src/coders/adapty-onboarding.d.ts
|
|
3293
|
-
type Model$
|
|
3294
|
-
type CodableModel$2 = Omit<Model$
|
|
3295
|
-
type Serializable$
|
|
3296
|
-
declare class AdaptyOnboardingCoder extends Coder<Model$
|
|
3297
|
-
protected properties: Properties<CodableModel$2, Serializable$
|
|
3298
|
-
decode(data: Serializable$
|
|
3299
|
-
encode(data: Model$
|
|
3472
|
+
type Model$24 = AdaptyOnboarding;
|
|
3473
|
+
type CodableModel$2 = Omit<Model$24, 'hasViewConfiguration'>;
|
|
3474
|
+
type Serializable$25 = Def['AdaptyOnboarding'];
|
|
3475
|
+
declare class AdaptyOnboardingCoder extends Coder<Model$24, CodableModel$2, Serializable$25> {
|
|
3476
|
+
protected properties: Properties<CodableModel$2, Serializable$25>;
|
|
3477
|
+
decode(data: Serializable$25): Model$24;
|
|
3478
|
+
encode(data: Model$24): Serializable$25;
|
|
3300
3479
|
}
|
|
3301
3480
|
|
|
3302
3481
|
//#endregion
|
|
3303
3482
|
//#region src/coders/adapty-paywall-product.d.ts
|
|
3304
|
-
type Model$
|
|
3305
|
-
type Serializable$
|
|
3306
|
-
declare class AdaptyPaywallProductCoder extends SimpleCoder<Model$
|
|
3307
|
-
protected properties: Properties<Model$
|
|
3308
|
-
getInput(data: Serializable$
|
|
3483
|
+
type Model$23 = AdaptyPaywallProduct;
|
|
3484
|
+
type Serializable$24 = Def['AdaptyPaywallProduct.Response'];
|
|
3485
|
+
declare class AdaptyPaywallProductCoder extends SimpleCoder<Model$23, Serializable$24> {
|
|
3486
|
+
protected properties: Properties<Model$23, Serializable$24>;
|
|
3487
|
+
getInput(data: Serializable$24): Def['AdaptyPaywallProduct.Request'];
|
|
3309
3488
|
}
|
|
3310
3489
|
|
|
3311
3490
|
//#endregion
|
|
3312
3491
|
//#region src/coders/adapty-placement.d.ts
|
|
3313
|
-
type Model$
|
|
3314
|
-
type Serializable$
|
|
3315
|
-
declare class AdaptyPlacementCoder extends SimpleCoder<Model$
|
|
3316
|
-
protected properties: Properties<Model$
|
|
3492
|
+
type Model$22 = AdaptyPlacement;
|
|
3493
|
+
type Serializable$23 = Def['AdaptyPlacement'];
|
|
3494
|
+
declare class AdaptyPlacementCoder extends SimpleCoder<Model$22, Serializable$23> {
|
|
3495
|
+
protected properties: Properties<Model$22, Serializable$23>;
|
|
3317
3496
|
}
|
|
3318
3497
|
|
|
3319
3498
|
//#endregion
|
|
3320
3499
|
//#region src/coders/adapty-price.d.ts
|
|
3321
|
-
type Model$
|
|
3322
|
-
type Serializable$
|
|
3323
|
-
declare class AdaptyPriceCoder extends SimpleCoder<Model$
|
|
3500
|
+
type Model$21 = AdaptyPrice;
|
|
3501
|
+
type Serializable$22 = Def['AdaptyPrice'];
|
|
3502
|
+
declare class AdaptyPriceCoder extends SimpleCoder<Model$21, Serializable$22> {
|
|
3503
|
+
protected properties: Properties<Model$21, Serializable$22>;
|
|
3504
|
+
}
|
|
3505
|
+
|
|
3506
|
+
//#endregion
|
|
3507
|
+
//#region src/coders/adapty-promoted-product.d.ts
|
|
3508
|
+
type Model$20 = AdaptyPromotedProduct;
|
|
3509
|
+
type Serializable$21 = Def['AdaptyPromotedProduct.Response'];
|
|
3510
|
+
declare class AdaptyPromotedProductCoder extends SimpleCoder<Model$20, Serializable$21> {
|
|
3324
3511
|
protected properties: Properties<Model$20, Serializable$21>;
|
|
3512
|
+
getInput(data: Serializable$21): Def['AdaptyPromotedProduct.Request'];
|
|
3325
3513
|
}
|
|
3326
3514
|
|
|
3327
3515
|
//#endregion
|
|
@@ -3374,7 +3562,7 @@ declare class AdaptyRemoteConfigCoder extends Coder<Model$15, CodableModel$1, Se
|
|
|
3374
3562
|
//#endregion
|
|
3375
3563
|
//#region src/coders/adapty-subscription-details.d.ts
|
|
3376
3564
|
type Model$14 = AdaptySubscriptionDetails;
|
|
3377
|
-
type Serializable$15 = Def['
|
|
3565
|
+
type Serializable$15 = Def['AdaptyProduct.Subscription'];
|
|
3378
3566
|
declare class AdaptySubscriptionDetailsCoder extends SimpleCoder<Model$14, Serializable$15> {
|
|
3379
3567
|
protected properties: Properties<Model$14, Serializable$15>;
|
|
3380
3568
|
decode(data: Serializable$15): Model$14;
|
|
@@ -3433,6 +3621,7 @@ declare class AdaptyUICreateOnboardingViewParamsCoder {
|
|
|
3433
3621
|
type Model$8 = CreateFlowViewParamsInput;
|
|
3434
3622
|
type Serializable$8 = {
|
|
3435
3623
|
locale?: Def['AdaptyLocale'];
|
|
3624
|
+
custom_layout_id?: string;
|
|
3436
3625
|
preload_products?: boolean;
|
|
3437
3626
|
load_timeout?: number;
|
|
3438
3627
|
custom_tags?: Def['AdaptyUI.CustomTagsValues'];
|
|
@@ -3577,12 +3766,14 @@ declare class CoderFactory {
|
|
|
3577
3766
|
createOnboardingCoder(): AdaptyOnboardingCoder;
|
|
3578
3767
|
createFlowCoder(): AdaptyFlowCoder;
|
|
3579
3768
|
createFlowPaywallCoder(): AdaptyFlowPaywallCoder;
|
|
3769
|
+
createFlowUiSchemaCoder(): AdaptyFlowUiSchemaCoder;
|
|
3580
3770
|
createPaywallProductCoder(): AdaptyPaywallProductCoder;
|
|
3581
3771
|
createPlacementCoder(): AdaptyPlacementCoder;
|
|
3582
3772
|
createPriceCoder(): AdaptyPriceCoder;
|
|
3583
3773
|
createProductReferenceCoder(): ProductReferenceCoder;
|
|
3584
3774
|
createProfileCoder(): AdaptyProfileCoder;
|
|
3585
3775
|
createProfileParametersCoder(): AdaptyProfileParametersCoder;
|
|
3776
|
+
createPromotedProductCoder(): AdaptyPromotedProductCoder;
|
|
3586
3777
|
createRemoteConfigCoder(): AdaptyRemoteConfigCoder;
|
|
3587
3778
|
createSubscriptionCoder(): AdaptySubscriptionCoder;
|
|
3588
3779
|
createSubscriptionDetailsCoder(): AdaptySubscriptionDetailsCoder;
|
|
@@ -3700,7 +3891,7 @@ declare function extractOnboardingCallbackArgs<T extends keyof OnboardingEventHa
|
|
|
3700
3891
|
|
|
3701
3892
|
//#endregion
|
|
3702
3893
|
//#region src/coders/parse.d.ts
|
|
3703
|
-
declare const AdaptyTypes: readonly ["AdaptyError", "AdaptyProfile", "AdaptyPurchaseResult", "AdaptyFlow", "AdaptyPaywallProduct", "AdaptyOnboarding", "AdaptyRemoteConfig", "AdaptyInstallationStatus", "AdaptyInstallationDetails", "AdaptyUiView", "AdaptyUiDialogActionType", "AdaptyUiOnboardingMeta", "AdaptyUiOnboardingStateParams", "AdaptyUiOnboardingStateUpdatedAction", "Array<AdaptyPaywallProduct>", "BridgeError", "String", "Boolean", "Void"];
|
|
3894
|
+
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"];
|
|
3704
3895
|
type AdaptyType = (typeof AdaptyTypes)[number];
|
|
3705
3896
|
declare function parseMethodResult<T>(factory: CoderFactory, input: string, resultType: AdaptyType, ctx?: LogContext): T;
|
|
3706
3897
|
declare function parseCommonEvent(factory: CoderFactory, event: string, input: string, ctx?: LogContext): any;
|
|
@@ -3768,5 +3959,5 @@ declare function withErrorContext<T extends (...args: never[]) => unknown>(callb
|
|
|
3768
3959
|
//#endregion
|
|
3769
3960
|
//# sourceMappingURL=with-error-context.d.ts.map
|
|
3770
3961
|
|
|
3771
|
-
export { ActivateParamsInput, AdaptyAccessLevel, AdaptyAndroidPurchaseParams, AdaptyAndroidSubscriptionUpdateReplacementMode, AdaptyBridgeError, AdaptyCustomAsset, AdaptyCustomColorAsset, AdaptyCustomGradientAsset, AdaptyCustomImageAsset, AdaptyCustomVideoAsset, AdaptyDiscountPhase, AdaptyError, AdaptyErrorInput, AdaptyFlow, AdaptyFlowPaywall, AdaptyIOSPresentationStyle, AdaptyInstallationDetails, AdaptyInstallationStatus, AdaptyNativeError, AdaptyNonSubscription, AdaptyOnboarding, AdaptyOnboardingBuilder, AdaptyPaywallProduct, AdaptyPermission, AdaptyPlacement, AdaptyPrice, AdaptyProductIdentifier, AdaptyProfile, AdaptyProfileParameters, AdaptyPurchaseResult, AdaptyRemoteConfig, AdaptySubscription, AdaptySubscriptionDetails, AdaptySubscriptionOffer, AdaptySubscriptionOfferId, AdaptySubscriptionPeriod, AdaptyType, AdaptyUiDialogActionType, AdaptyUiDialogConfig, AdaptyUiMediaCache, AdaptyUiOnboardingMeta, AdaptyUiOnboardingStateParams, AdaptyUiView, AppTrackingTransparencyStatus, ArgType, AttributionSource, 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, Gender, GetPaywallProductsParamsInput, GetPlacementForDefaultAudienceParamsInput, GetPlacementParamsInput, 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, UserEventName, VendorStore, WebPresentation, components, consoleLogSink, extractFlowCallbackArgs, extractOnboardingCallbackArgs, filterUndefined, generateId, getErrorCode, getErrorPrompt, mapValues, mergeOptions, parseCommonEvent, parseFlowEvent, parseMethodResult, parseOnboardingEvent, withErrorContext };
|
|
3962
|
+
export { ActivateParamsInput, AdaptyAccessLevel, AdaptyAndroidPurchaseParams, AdaptyAndroidSubscriptionUpdateReplacementMode, AdaptyBridgeError, AdaptyCustomAsset, AdaptyCustomColorAsset, AdaptyCustomGradientAsset, AdaptyCustomImageAsset, AdaptyCustomVideoAsset, AdaptyDiscountPhase, AdaptyError, AdaptyErrorInput, 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, AttributionSource, 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, Gender, GetPaywallProductsParamsInput, GetPlacementForDefaultAudienceParamsInput, GetPlacementParamsInput, 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, UserEventName, VendorStore, WebPresentation, components, consoleLogSink, extractFlowCallbackArgs, extractOnboardingCallbackArgs, filterUndefined, generateId, getErrorCode, getErrorPrompt, mapValues, mergeOptions, parseCommonEvent, parseFlowEvent, parseMethodResult, parseOnboardingEvent, withErrorContext };
|
|
3772
3963
|
//# sourceMappingURL=index.d.cts.map
|