@adapty/core 3.17.2 → 4.0.0-dev.6ee3d5004744a21c79e3bc059d562ef925d49d5f
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 +424 -370
- package/dist/index.d.cts +318 -247
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +318 -247
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +422 -368
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -505,28 +505,16 @@ interface AdaptyPrice {
|
|
|
505
505
|
localizedString?: string;
|
|
506
506
|
}
|
|
507
507
|
/**
|
|
508
|
-
* Describes
|
|
509
|
-
* Used in {@link Adapty.getPaywall} method.
|
|
508
|
+
* Describes a single paywall variation inside a flow.
|
|
510
509
|
* @public
|
|
511
510
|
*/
|
|
512
|
-
interface
|
|
511
|
+
interface AdaptyFlowPaywall {
|
|
513
512
|
readonly placement: AdaptyPlacement;
|
|
514
|
-
/**
|
|
515
|
-
* If `true`, it is possible to fetch the view object
|
|
516
|
-
* and use it with AdaptyUI library.
|
|
517
|
-
* @readonly
|
|
518
|
-
*/
|
|
519
|
-
readonly hasViewConfiguration: boolean;
|
|
520
513
|
/**
|
|
521
514
|
* A paywall name.
|
|
522
515
|
* @readonly
|
|
523
516
|
*/
|
|
524
517
|
readonly name: string;
|
|
525
|
-
/**
|
|
526
|
-
* A remote config configured in Adapty Dashboard for this paywall.
|
|
527
|
-
* @readonly
|
|
528
|
-
*/
|
|
529
|
-
readonly remoteConfig?: AdaptyRemoteConfig;
|
|
530
518
|
/**
|
|
531
519
|
* An identifier of a variation,
|
|
532
520
|
* used to attribute purchases to this paywall.
|
|
@@ -536,7 +524,7 @@ interface AdaptyPaywall {
|
|
|
536
524
|
/**
|
|
537
525
|
* Array of initial products info
|
|
538
526
|
* @readonly
|
|
539
|
-
* @deprecated Use {@link
|
|
527
|
+
* @deprecated Use {@link AdaptyFlowPaywall.productIdentifiers} instead
|
|
540
528
|
*/
|
|
541
529
|
readonly products: ProductReference[];
|
|
542
530
|
/**
|
|
@@ -545,11 +533,73 @@ interface AdaptyPaywall {
|
|
|
545
533
|
*/
|
|
546
534
|
readonly productIdentifiers: AdaptyProductIdentifier[];
|
|
547
535
|
id: string;
|
|
548
|
-
version?: number;
|
|
549
536
|
webPurchaseUrl?: string;
|
|
537
|
+
}
|
|
538
|
+
/**
|
|
539
|
+
* A single layout entry of a flow UI schema.
|
|
540
|
+
* @public
|
|
541
|
+
*/
|
|
542
|
+
interface AdaptyFlowUiSchemaLayout {
|
|
543
|
+
readonly flowLayoutId: string;
|
|
544
|
+
}
|
|
545
|
+
/**
|
|
546
|
+
* A single grid entry of a flow UI schema.
|
|
547
|
+
* @public
|
|
548
|
+
*/
|
|
549
|
+
interface AdaptyFlowUiSchemaGrid {
|
|
550
|
+
readonly platforms?: 'all' | ('ios' | 'android')[];
|
|
551
|
+
readonly devices?: 'all' | ('phone' | 'tab')[];
|
|
552
|
+
readonly customId?: string;
|
|
553
|
+
readonly hBreakpoints?: number[];
|
|
554
|
+
readonly vBreakpoints?: number[];
|
|
555
|
+
readonly cells: number[];
|
|
556
|
+
}
|
|
557
|
+
/**
|
|
558
|
+
* Describes the UI schema (layouts and grids) of a flow.
|
|
559
|
+
* @public
|
|
560
|
+
*/
|
|
561
|
+
interface AdaptyFlowUiSchema {
|
|
562
|
+
readonly layouts: AdaptyFlowUiSchemaLayout[];
|
|
563
|
+
readonly grids: AdaptyFlowUiSchemaGrid[];
|
|
564
|
+
}
|
|
565
|
+
/**
|
|
566
|
+
* Describes an object that represents a flow,
|
|
567
|
+
* fetched for a placement.
|
|
568
|
+
* @public
|
|
569
|
+
*/
|
|
570
|
+
interface AdaptyFlow {
|
|
571
|
+
readonly placement: AdaptyPlacement;
|
|
572
|
+
/**
|
|
573
|
+
* A flow name.
|
|
574
|
+
* @readonly
|
|
575
|
+
*/
|
|
576
|
+
readonly name: string;
|
|
577
|
+
/**
|
|
578
|
+
* An identifier of a variation,
|
|
579
|
+
* used to attribute purchases to this flow.
|
|
580
|
+
* @readonly
|
|
581
|
+
*/
|
|
582
|
+
readonly variationId: string;
|
|
583
|
+
/**
|
|
584
|
+
* Remote configs configured in Adapty Dashboard for this flow.
|
|
585
|
+
* @readonly
|
|
586
|
+
*/
|
|
587
|
+
readonly remoteConfigs?: AdaptyRemoteConfig[];
|
|
588
|
+
/**
|
|
589
|
+
* Paywall variations contained in this flow.
|
|
590
|
+
* @readonly
|
|
591
|
+
*/
|
|
592
|
+
readonly variations: AdaptyFlowPaywall[];
|
|
593
|
+
/**
|
|
594
|
+
* UI schema (layouts and grids) configured for this flow.
|
|
595
|
+
* @readonly
|
|
596
|
+
*/
|
|
597
|
+
readonly uiSchema?: AdaptyFlowUiSchema;
|
|
598
|
+
id: string;
|
|
599
|
+
flowVersionId?: string;
|
|
600
|
+
/** Server response creation timestamp in milliseconds. */
|
|
601
|
+
responseCreatedAt: number;
|
|
550
602
|
payloadData?: string;
|
|
551
|
-
requestLocale: string;
|
|
552
|
-
paywallBuilder?: AdaptyPaywallBuilder;
|
|
553
603
|
}
|
|
554
604
|
interface AdaptyOnboarding {
|
|
555
605
|
readonly placement: AdaptyPlacement;
|
|
@@ -627,10 +677,6 @@ interface AdaptyRemoteConfig {
|
|
|
627
677
|
*/
|
|
628
678
|
readonly dataString: string;
|
|
629
679
|
}
|
|
630
|
-
interface AdaptyPaywallBuilder {
|
|
631
|
-
readonly id: string;
|
|
632
|
-
readonly lang: string;
|
|
633
|
-
}
|
|
634
680
|
interface AdaptyOnboardingBuilder {
|
|
635
681
|
readonly url: string;
|
|
636
682
|
}
|
|
@@ -980,11 +1026,11 @@ interface AdaptyPaywallProduct {
|
|
|
980
1026
|
*/
|
|
981
1027
|
readonly localizedTitle: string;
|
|
982
1028
|
/**
|
|
983
|
-
* Same as `abTestName` property of the parent {@link
|
|
1029
|
+
* Same as `abTestName` property of the parent {@link AdaptyFlowPaywall}.
|
|
984
1030
|
*/
|
|
985
1031
|
readonly paywallABTestName: string;
|
|
986
1032
|
/**
|
|
987
|
-
* Same as `name` property of the parent {@link
|
|
1033
|
+
* Same as `name` property of the parent {@link AdaptyFlowPaywall}.
|
|
988
1034
|
*/
|
|
989
1035
|
readonly paywallName: string;
|
|
990
1036
|
readonly accessLevelId: string;
|
|
@@ -995,7 +1041,7 @@ interface AdaptyPaywallProduct {
|
|
|
995
1041
|
readonly price?: AdaptyPrice;
|
|
996
1042
|
readonly adaptyId: string;
|
|
997
1043
|
/**
|
|
998
|
-
* Same as `variationId` property of the parent {@link
|
|
1044
|
+
* Same as `variationId` property of the parent {@link AdaptyFlowPaywall}.
|
|
999
1045
|
*/
|
|
1000
1046
|
readonly variationId: string;
|
|
1001
1047
|
/**
|
|
@@ -1130,6 +1176,7 @@ interface AdaptyProfileParameters {
|
|
|
1130
1176
|
phoneNumber?: string;
|
|
1131
1177
|
}
|
|
1132
1178
|
interface ProductReference {
|
|
1179
|
+
flowProductId?: string;
|
|
1133
1180
|
vendorId: string;
|
|
1134
1181
|
adaptyId: string;
|
|
1135
1182
|
accessLevelId: string;
|
|
@@ -1229,7 +1276,7 @@ type ProductPurchaseParams = Array<{
|
|
|
1229
1276
|
*
|
|
1230
1277
|
* @see {@link https://adapty.io/docs/react-native-handling-events-1 | [DOC] Handling View Events}
|
|
1231
1278
|
*/
|
|
1232
|
-
interface
|
|
1279
|
+
interface FlowEventHandlers {
|
|
1233
1280
|
/**
|
|
1234
1281
|
* Called when a user taps the close button on the paywall view
|
|
1235
1282
|
*
|
|
@@ -1283,8 +1330,20 @@ interface EventHandlers {
|
|
|
1283
1330
|
* If you return `true` from this callback, the paywall view will be closed.
|
|
1284
1331
|
*/
|
|
1285
1332
|
onRestoreStarted: () => EventHandlerResult;
|
|
1286
|
-
|
|
1287
|
-
|
|
1333
|
+
/**
|
|
1334
|
+
* Called when the paywall view disappears
|
|
1335
|
+
*
|
|
1336
|
+
* If you return `true`, the paywall view will be closed.
|
|
1337
|
+
* @default false
|
|
1338
|
+
*/
|
|
1339
|
+
onDisappeared: () => EventHandlerResult;
|
|
1340
|
+
/**
|
|
1341
|
+
* Called when the paywall view appears
|
|
1342
|
+
*
|
|
1343
|
+
* If you return `true`, the paywall view will be closed.
|
|
1344
|
+
* @default false
|
|
1345
|
+
*/
|
|
1346
|
+
onAppeared: () => EventHandlerResult;
|
|
1288
1347
|
onWebPaymentNavigationFinished: (product?: AdaptyPaywallProduct, error?: AdaptyError) => EventHandlerResult;
|
|
1289
1348
|
/**
|
|
1290
1349
|
* Called when a purchase is completed
|
|
@@ -1305,14 +1364,13 @@ interface EventHandlers {
|
|
|
1305
1364
|
*/
|
|
1306
1365
|
onRestoreFailed: (error: AdaptyError) => EventHandlerResult;
|
|
1307
1366
|
/**
|
|
1308
|
-
* Called
|
|
1309
|
-
* This should not ever happen, but if it does, feel free to report it to us.
|
|
1367
|
+
* Called when the paywall view receives an error (e.g. it fails to render).
|
|
1310
1368
|
*
|
|
1311
1369
|
* If you return `true` from this callback, the paywall view will be closed.
|
|
1312
1370
|
*
|
|
1313
1371
|
* @param {AdaptyError} error - AdaptyError object with error code and message
|
|
1314
1372
|
*/
|
|
1315
|
-
|
|
1373
|
+
onError: (error: AdaptyError) => EventHandlerResult;
|
|
1316
1374
|
/**
|
|
1317
1375
|
* Called if a product list fails to load on a presented view,
|
|
1318
1376
|
* for example, if there is no internet connection
|
|
@@ -1394,7 +1452,7 @@ type OnboardingStateUpdatedAction = {
|
|
|
1394
1452
|
*
|
|
1395
1453
|
* @see {@link https://docs.adapty.io/docs/paywall-builder-fetching | [DOC] Creating Paywall View}
|
|
1396
1454
|
*/
|
|
1397
|
-
interface
|
|
1455
|
+
interface CreateFlowViewParamsInput {
|
|
1398
1456
|
/**
|
|
1399
1457
|
* `true` if you want to prefetch products before presenting a paywall view.
|
|
1400
1458
|
*/
|
|
@@ -1894,9 +1952,9 @@ interface components {
|
|
|
1894
1952
|
}, {
|
|
1895
1953
|
success: true;
|
|
1896
1954
|
}]>;
|
|
1897
|
-
'
|
|
1898
|
-
method: '
|
|
1899
|
-
|
|
1955
|
+
'AdaptyUICreateFlowView.Request': {
|
|
1956
|
+
method: 'adapty_ui_create_flow_view';
|
|
1957
|
+
flow: components['defs']['AdaptyFlow'];
|
|
1900
1958
|
load_timeout?: number;
|
|
1901
1959
|
preload_products?: boolean;
|
|
1902
1960
|
custom_tags?: components['defs']['AdaptyUI.CustomTagsValues'];
|
|
@@ -1904,10 +1962,10 @@ interface components {
|
|
|
1904
1962
|
custom_assets?: components['defs']['AdaptyUI.CustomAssets'];
|
|
1905
1963
|
product_purchase_parameters?: components['defs']['AdaptyUI.ProductPurchaseParameters'];
|
|
1906
1964
|
};
|
|
1907
|
-
'
|
|
1965
|
+
'AdaptyUICreateFlowView.Response': OneOf<[{
|
|
1908
1966
|
error: components['defs']['AdaptyError'];
|
|
1909
1967
|
}, {
|
|
1910
|
-
success: components['defs']['AdaptyUI.
|
|
1968
|
+
success: components['defs']['AdaptyUI.FlowView'];
|
|
1911
1969
|
}]>;
|
|
1912
1970
|
'AdaptyUICreateOnboardingView.Request': {
|
|
1913
1971
|
method: 'adapty_ui_create_onboarding_view';
|
|
@@ -1929,12 +1987,12 @@ interface components {
|
|
|
1929
1987
|
}, {
|
|
1930
1988
|
success: true;
|
|
1931
1989
|
}]>;
|
|
1932
|
-
'
|
|
1933
|
-
method: '
|
|
1990
|
+
'AdaptyUIDismissFlowView.Request': {
|
|
1991
|
+
method: 'adapty_ui_dismiss_flow_view';
|
|
1934
1992
|
id: string;
|
|
1935
1993
|
destroy?: boolean;
|
|
1936
1994
|
};
|
|
1937
|
-
'
|
|
1995
|
+
'AdaptyUIDismissFlowView.Response': OneOf<[{
|
|
1938
1996
|
error: components['defs']['AdaptyError'];
|
|
1939
1997
|
}, {
|
|
1940
1998
|
success: true;
|
|
@@ -1949,12 +2007,12 @@ interface components {
|
|
|
1949
2007
|
}, {
|
|
1950
2008
|
success: true;
|
|
1951
2009
|
}]>;
|
|
1952
|
-
'
|
|
1953
|
-
method: '
|
|
2010
|
+
'AdaptyUIPresentFlowView.Request': {
|
|
2011
|
+
method: 'adapty_ui_present_flow_view';
|
|
1954
2012
|
id: string;
|
|
1955
2013
|
ios_presentation_style?: components['defs']['AdaptyUI.IOSPresentationStyle'];
|
|
1956
2014
|
};
|
|
1957
|
-
'
|
|
2015
|
+
'AdaptyUIPresentFlowView.Response': OneOf<[{
|
|
1958
2016
|
error: components['defs']['AdaptyError'];
|
|
1959
2017
|
}, {
|
|
1960
2018
|
success: true;
|
|
@@ -1992,32 +2050,30 @@ interface components {
|
|
|
1992
2050
|
}, {
|
|
1993
2051
|
success: components['defs']['AdaptyOnboarding'];
|
|
1994
2052
|
}]>;
|
|
1995
|
-
'
|
|
1996
|
-
method: '
|
|
2053
|
+
'GetFlow.Request': {
|
|
2054
|
+
method: 'get_flow';
|
|
1997
2055
|
placement_id: string;
|
|
1998
|
-
locale?: components['defs']['AdaptyLocale'];
|
|
1999
2056
|
fetch_policy?: components['defs']['AdaptyPlacementFetchPolicy'];
|
|
2000
2057
|
load_timeout?: number;
|
|
2001
2058
|
};
|
|
2002
|
-
'
|
|
2059
|
+
'GetFlow.Response': OneOf<[{
|
|
2003
2060
|
error: components['defs']['AdaptyError'];
|
|
2004
2061
|
}, {
|
|
2005
|
-
success: components['defs']['
|
|
2062
|
+
success: components['defs']['AdaptyFlow'];
|
|
2006
2063
|
}]>;
|
|
2007
|
-
'
|
|
2008
|
-
method: '
|
|
2064
|
+
'GetFlowForDefaultAudience.Request': {
|
|
2065
|
+
method: 'get_flow_for_default_audience';
|
|
2009
2066
|
placement_id: string;
|
|
2010
|
-
locale?: components['defs']['AdaptyLocale'];
|
|
2011
2067
|
fetch_policy?: components['defs']['AdaptyPlacementFetchPolicy'];
|
|
2012
2068
|
};
|
|
2013
|
-
'
|
|
2069
|
+
'GetFlowForDefaultAudience.Response': OneOf<[{
|
|
2014
2070
|
error: components['defs']['AdaptyError'];
|
|
2015
2071
|
}, {
|
|
2016
|
-
success: components['defs']['
|
|
2072
|
+
success: components['defs']['AdaptyFlow'];
|
|
2017
2073
|
}]>;
|
|
2018
2074
|
'GetPaywallProducts.Request': {
|
|
2019
2075
|
method: 'get_paywall_products';
|
|
2020
|
-
|
|
2076
|
+
flow: components['defs']['AdaptyFlow'];
|
|
2021
2077
|
};
|
|
2022
2078
|
'GetPaywallProducts.Response': OneOf<[{
|
|
2023
2079
|
error: components['defs']['AdaptyError'];
|
|
@@ -2069,11 +2125,11 @@ interface components {
|
|
|
2069
2125
|
}, {
|
|
2070
2126
|
success: true;
|
|
2071
2127
|
}]>;
|
|
2072
|
-
'
|
|
2073
|
-
method: '
|
|
2074
|
-
|
|
2128
|
+
'LogShowFlow.Request': {
|
|
2129
|
+
method: 'log_show_flow';
|
|
2130
|
+
flow: components['defs']['AdaptyFlow'];
|
|
2075
2131
|
};
|
|
2076
|
-
'
|
|
2132
|
+
'LogShowFlow.Response': OneOf<[{
|
|
2077
2133
|
error: components['defs']['AdaptyError'];
|
|
2078
2134
|
}, {
|
|
2079
2135
|
success: true;
|
|
@@ -2090,12 +2146,9 @@ interface components {
|
|
|
2090
2146
|
}]>;
|
|
2091
2147
|
'OpenWebPaywall.Request': {
|
|
2092
2148
|
method: 'open_web_paywall';
|
|
2093
|
-
open_in?: components['defs']['AdaptyWebPresentation'];
|
|
2094
|
-
} & OneOf<[{
|
|
2095
2149
|
product: components['defs']['AdaptyPaywallProduct.Request'];
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
}]>;
|
|
2150
|
+
open_in?: components['defs']['AdaptyWebPresentation'];
|
|
2151
|
+
};
|
|
2099
2152
|
'OpenWebPaywall.Response': OneOf<[{
|
|
2100
2153
|
error: components['defs']['AdaptyError'];
|
|
2101
2154
|
}, {
|
|
@@ -2103,11 +2156,8 @@ interface components {
|
|
|
2103
2156
|
}]>;
|
|
2104
2157
|
'CreateWebPaywallUrl.Request': {
|
|
2105
2158
|
method: 'create_web_paywall_url';
|
|
2106
|
-
} & OneOf<[{
|
|
2107
2159
|
product: components['defs']['AdaptyPaywallProduct.Request'];
|
|
2108
|
-
}
|
|
2109
|
-
paywall: components['defs']['AdaptyPaywall'];
|
|
2110
|
-
}]>;
|
|
2160
|
+
};
|
|
2111
2161
|
'CreateWebPaywallUrl.Response': OneOf<[{
|
|
2112
2162
|
error: components['defs']['AdaptyError'];
|
|
2113
2163
|
}, {
|
|
@@ -2225,68 +2275,68 @@ interface components {
|
|
|
2225
2275
|
id: 'on_installation_details_fail';
|
|
2226
2276
|
error: components['defs']['AdaptyError'];
|
|
2227
2277
|
};
|
|
2228
|
-
'
|
|
2229
|
-
id: '
|
|
2230
|
-
view: components['defs']['AdaptyUI.
|
|
2278
|
+
'FlowViewEvent.DidAppear': {
|
|
2279
|
+
id: 'flow_view_did_appear';
|
|
2280
|
+
view: components['defs']['AdaptyUI.FlowView'];
|
|
2231
2281
|
};
|
|
2232
|
-
'
|
|
2233
|
-
id: '
|
|
2234
|
-
view: components['defs']['AdaptyUI.
|
|
2282
|
+
'FlowViewEvent.DidDisappear': {
|
|
2283
|
+
id: 'flow_view_did_disappear';
|
|
2284
|
+
view: components['defs']['AdaptyUI.FlowView'];
|
|
2235
2285
|
};
|
|
2236
|
-
'
|
|
2237
|
-
id: '
|
|
2238
|
-
view: components['defs']['AdaptyUI.
|
|
2286
|
+
'FlowViewEvent.DidUserAction': {
|
|
2287
|
+
id: 'flow_view_did_perform_action';
|
|
2288
|
+
view: components['defs']['AdaptyUI.FlowView'];
|
|
2239
2289
|
action: components['defs']['AdaptyUI.UserAction'];
|
|
2240
2290
|
};
|
|
2241
|
-
'
|
|
2242
|
-
id: '
|
|
2243
|
-
view: components['defs']['AdaptyUI.
|
|
2291
|
+
'FlowViewEvent.DidSelectProduct': {
|
|
2292
|
+
id: 'flow_view_did_select_product';
|
|
2293
|
+
view: components['defs']['AdaptyUI.FlowView'];
|
|
2244
2294
|
product_id: string;
|
|
2245
2295
|
};
|
|
2246
|
-
'
|
|
2247
|
-
id: '
|
|
2248
|
-
view: components['defs']['AdaptyUI.
|
|
2296
|
+
'FlowViewEvent.WillPurchase': {
|
|
2297
|
+
id: 'flow_view_did_start_purchase';
|
|
2298
|
+
view: components['defs']['AdaptyUI.FlowView'];
|
|
2249
2299
|
product: components['defs']['AdaptyPaywallProduct.Response'];
|
|
2250
2300
|
};
|
|
2251
|
-
'
|
|
2252
|
-
id: '
|
|
2253
|
-
view: components['defs']['AdaptyUI.
|
|
2301
|
+
'FlowViewEvent.DidPurchase': {
|
|
2302
|
+
id: 'flow_view_did_finish_purchase';
|
|
2303
|
+
view: components['defs']['AdaptyUI.FlowView'];
|
|
2254
2304
|
product: components['defs']['AdaptyPaywallProduct.Response'];
|
|
2255
2305
|
purchased_result: components['defs']['AdaptyPurchaseResult'];
|
|
2256
2306
|
};
|
|
2257
|
-
'
|
|
2258
|
-
id: '
|
|
2259
|
-
view: components['defs']['AdaptyUI.
|
|
2307
|
+
'FlowViewEvent.DidFailPurchase': {
|
|
2308
|
+
id: 'flow_view_did_fail_purchase';
|
|
2309
|
+
view: components['defs']['AdaptyUI.FlowView'];
|
|
2260
2310
|
product: components['defs']['AdaptyPaywallProduct.Response'];
|
|
2261
2311
|
error: components['defs']['AdaptyError'];
|
|
2262
2312
|
};
|
|
2263
|
-
'
|
|
2264
|
-
id: '
|
|
2265
|
-
view: components['defs']['AdaptyUI.
|
|
2313
|
+
'FlowViewEvent.WillRestorePurchase': {
|
|
2314
|
+
id: 'flow_view_did_start_restore';
|
|
2315
|
+
view: components['defs']['AdaptyUI.FlowView'];
|
|
2266
2316
|
};
|
|
2267
|
-
'
|
|
2268
|
-
id: '
|
|
2269
|
-
view: components['defs']['AdaptyUI.
|
|
2317
|
+
'FlowViewEvent.DidRestorePurchase': {
|
|
2318
|
+
id: 'flow_view_did_finish_restore';
|
|
2319
|
+
view: components['defs']['AdaptyUI.FlowView'];
|
|
2270
2320
|
profile: components['defs']['AdaptyProfile'];
|
|
2271
2321
|
};
|
|
2272
|
-
'
|
|
2273
|
-
id: '
|
|
2274
|
-
view: components['defs']['AdaptyUI.
|
|
2322
|
+
'FlowViewEvent.DidFailRestorePurchase': {
|
|
2323
|
+
id: 'flow_view_did_fail_restore';
|
|
2324
|
+
view: components['defs']['AdaptyUI.FlowView'];
|
|
2275
2325
|
error: components['defs']['AdaptyError'];
|
|
2276
2326
|
};
|
|
2277
|
-
'
|
|
2278
|
-
id: '
|
|
2279
|
-
view: components['defs']['AdaptyUI.
|
|
2327
|
+
'FlowViewEvent.DidReceiveError': {
|
|
2328
|
+
id: 'flow_view_did_receive_error';
|
|
2329
|
+
view: components['defs']['AdaptyUI.FlowView'];
|
|
2280
2330
|
error: components['defs']['AdaptyError'];
|
|
2281
2331
|
};
|
|
2282
|
-
'
|
|
2283
|
-
id: '
|
|
2284
|
-
view: components['defs']['AdaptyUI.
|
|
2332
|
+
'FlowViewEvent.DidFailLoadingProducts': {
|
|
2333
|
+
id: 'flow_view_did_fail_loading_products';
|
|
2334
|
+
view: components['defs']['AdaptyUI.FlowView'];
|
|
2285
2335
|
error: components['defs']['AdaptyError'];
|
|
2286
2336
|
};
|
|
2287
|
-
'
|
|
2288
|
-
id: '
|
|
2289
|
-
view: components['defs']['AdaptyUI.
|
|
2337
|
+
'FlowViewEvent.DidFinishWebPaymentNavigation': {
|
|
2338
|
+
id: 'flow_view_did_finish_web_payment_navigation';
|
|
2339
|
+
view: components['defs']['AdaptyUI.FlowView'];
|
|
2290
2340
|
product?: components['defs']['AdaptyPaywallProduct.Response'];
|
|
2291
2341
|
error?: components['defs']['AdaptyError'];
|
|
2292
2342
|
};
|
|
@@ -2470,18 +2520,37 @@ interface components {
|
|
|
2470
2520
|
response_created_at: number;
|
|
2471
2521
|
request_locale: components['defs']['AdaptyLocale'];
|
|
2472
2522
|
};
|
|
2473
|
-
|
|
2523
|
+
AdaptyFlow: {
|
|
2524
|
+
placement: components['defs']['AdaptyPlacement'];
|
|
2525
|
+
flow_id: string;
|
|
2526
|
+
flow_name: string;
|
|
2527
|
+
variation_id: string;
|
|
2528
|
+
remote_configs?: components['defs']['AdaptyRemoteConfig'][];
|
|
2529
|
+
flow_version_id?: string;
|
|
2530
|
+
variations: components['defs']['AdaptyFlowPaywall'][];
|
|
2531
|
+
ui_schema?: {
|
|
2532
|
+
layouts: {
|
|
2533
|
+
flow_layout_id: string;
|
|
2534
|
+
}[];
|
|
2535
|
+
grids: {
|
|
2536
|
+
platforms?: OneOf<['all', ('ios' | 'android')[]]>;
|
|
2537
|
+
devices?: OneOf<['all', ('phone' | 'tab')[]]>;
|
|
2538
|
+
custom_id?: string;
|
|
2539
|
+
h_breakpoints?: number[];
|
|
2540
|
+
v_breakpoints?: number[];
|
|
2541
|
+
cells: number[];
|
|
2542
|
+
}[];
|
|
2543
|
+
};
|
|
2544
|
+
payload_data?: string;
|
|
2545
|
+
response_created_at: number;
|
|
2546
|
+
};
|
|
2547
|
+
AdaptyFlowPaywall: {
|
|
2474
2548
|
placement: components['defs']['AdaptyPlacement'];
|
|
2475
2549
|
paywall_id: string;
|
|
2476
2550
|
paywall_name: string;
|
|
2477
2551
|
variation_id: string;
|
|
2478
|
-
|
|
2479
|
-
paywall_builder?: components['defs']['AdaptyPaywall.ViewConfiguration'];
|
|
2480
|
-
products: components['defs']['AdaptyPaywall.ProductReference'][];
|
|
2552
|
+
products: components['defs']['AdaptyFlowPaywall.ProductReference'][];
|
|
2481
2553
|
web_purchase_url?: string;
|
|
2482
|
-
payload_data?: string;
|
|
2483
|
-
response_created_at: number;
|
|
2484
|
-
request_locale: components['defs']['AdaptyLocale'];
|
|
2485
2554
|
};
|
|
2486
2555
|
AdaptyPlacement: {
|
|
2487
2556
|
developer_id: string;
|
|
@@ -2501,7 +2570,8 @@ interface components {
|
|
|
2501
2570
|
lang: components['defs']['AdaptyLocale'];
|
|
2502
2571
|
data: string;
|
|
2503
2572
|
};
|
|
2504
|
-
'
|
|
2573
|
+
'AdaptyFlowPaywall.ProductReference': {
|
|
2574
|
+
flow_product_id?: string;
|
|
2505
2575
|
vendor_product_id: string;
|
|
2506
2576
|
adapty_product_id: string;
|
|
2507
2577
|
access_level_id: string;
|
|
@@ -2511,11 +2581,6 @@ interface components {
|
|
|
2511
2581
|
base_plan_id?: string;
|
|
2512
2582
|
offer_id?: string;
|
|
2513
2583
|
};
|
|
2514
|
-
'AdaptyPaywall.ViewConfiguration': {
|
|
2515
|
-
paywall_builder_id: string;
|
|
2516
|
-
lang: components['defs']['AdaptyLocale'];
|
|
2517
|
-
json?: string;
|
|
2518
|
-
};
|
|
2519
2584
|
AdaptySubscriptionPeriod: {
|
|
2520
2585
|
unit: components['defs']['AdaptySubscriptionPeriod.Unit'];
|
|
2521
2586
|
number_of_units: number;
|
|
@@ -2637,7 +2702,7 @@ interface components {
|
|
|
2637
2702
|
payload?: string;
|
|
2638
2703
|
};
|
|
2639
2704
|
'AdaptyUI.CustomAssets': (components['assets']['Color'] | components['assets']['ColorGradient'] | components['assets']['Image'] | components['assets']['Video'])[];
|
|
2640
|
-
'AdaptyUI.
|
|
2705
|
+
'AdaptyUI.FlowView': {
|
|
2641
2706
|
id: string;
|
|
2642
2707
|
placement_id: string;
|
|
2643
2708
|
variation_id: string;
|
|
@@ -2663,9 +2728,6 @@ interface components {
|
|
|
2663
2728
|
'AdaptyUI.CustomTimersValues': {
|
|
2664
2729
|
[key: string]: components['defs']['Date'];
|
|
2665
2730
|
};
|
|
2666
|
-
'AdaptyUI.AndroidPersonalizedOffers': {
|
|
2667
|
-
[key: string]: boolean;
|
|
2668
|
-
};
|
|
2669
2731
|
'AdaptyUI.ProductPurchaseParameters': {
|
|
2670
2732
|
[key: string]: components['defs']['AdaptyPurchaseParameters'];
|
|
2671
2733
|
};
|
|
@@ -2786,34 +2848,61 @@ declare abstract class SimpleCoder<Model extends Record<string, any>, Serializab
|
|
|
2786
2848
|
//#region src/coders/adapty-access-level.d.ts
|
|
2787
2849
|
//# sourceMappingURL=coder.d.ts.map
|
|
2788
2850
|
type Model$32 = AdaptyAccessLevel;
|
|
2789
|
-
type Serializable$
|
|
2790
|
-
declare class AdaptyAccessLevelCoder extends SimpleCoder<Model$32, Serializable$
|
|
2791
|
-
protected properties: Properties<Model$32, Serializable$
|
|
2851
|
+
type Serializable$34 = Def['AdaptyProfile.AccessLevel'];
|
|
2852
|
+
declare class AdaptyAccessLevelCoder extends SimpleCoder<Model$32, Serializable$34> {
|
|
2853
|
+
protected properties: Properties<Model$32, Serializable$34>;
|
|
2792
2854
|
}
|
|
2793
2855
|
|
|
2794
2856
|
//#endregion
|
|
2795
2857
|
//#region src/coders/adapty-configuration.d.ts
|
|
2796
2858
|
type Model$31 = ActivateParamsInput;
|
|
2797
|
-
type Serializable$
|
|
2859
|
+
type Serializable$33 = Def['AdaptyConfiguration'];
|
|
2798
2860
|
declare class AdaptyConfigurationCoder {
|
|
2799
2861
|
private readonly platform;
|
|
2800
2862
|
private readonly sdkMetadata;
|
|
2801
2863
|
constructor(platform: IPlatformAdapter, sdkMetadata: ISdkMetadataAdapter);
|
|
2802
|
-
encode(apiKey: string, params: Model$31): Serializable$
|
|
2864
|
+
encode(apiKey: string, params: Model$31): Serializable$33;
|
|
2803
2865
|
}
|
|
2804
2866
|
|
|
2805
2867
|
//#endregion
|
|
2806
2868
|
//#region src/coders/adapty-discount-phase.d.ts
|
|
2807
2869
|
type Model$30 = AdaptyDiscountPhase;
|
|
2808
|
-
type Serializable$
|
|
2809
|
-
declare class AdaptyDiscountPhaseCoder extends SimpleCoder<Model$30, Serializable$
|
|
2810
|
-
protected properties: Properties<Model$30, Serializable$
|
|
2870
|
+
type Serializable$32 = Def['AdaptySubscriptionOffer.Phase'];
|
|
2871
|
+
declare class AdaptyDiscountPhaseCoder extends SimpleCoder<Model$30, Serializable$32> {
|
|
2872
|
+
protected properties: Properties<Model$30, Serializable$32>;
|
|
2873
|
+
}
|
|
2874
|
+
|
|
2875
|
+
//#endregion
|
|
2876
|
+
//#region src/coders/adapty-flow-paywall.d.ts
|
|
2877
|
+
type Model$29 = AdaptyFlowPaywall;
|
|
2878
|
+
type CodableModel$3 = Omit<Model$29, 'productIdentifiers'>;
|
|
2879
|
+
type Serializable$31 = Def['AdaptyFlowPaywall'];
|
|
2880
|
+
declare class AdaptyFlowPaywallCoder extends Coder<Model$29, CodableModel$3, Serializable$31> {
|
|
2881
|
+
protected properties: Properties<CodableModel$3, Serializable$31>;
|
|
2882
|
+
decode(data: Serializable$31): Model$29;
|
|
2883
|
+
encode(data: Model$29): Serializable$31;
|
|
2884
|
+
}
|
|
2885
|
+
|
|
2886
|
+
//#endregion
|
|
2887
|
+
//#region src/coders/adapty-flow-ui-schema.d.ts
|
|
2888
|
+
type Serializable$30 = NonNullable<Def['AdaptyFlow']['ui_schema']>;
|
|
2889
|
+
declare class AdaptyFlowUiSchemaCoder implements Converter<AdaptyFlowUiSchema, Serializable$30> {
|
|
2890
|
+
decode(data: Serializable$30): AdaptyFlowUiSchema;
|
|
2891
|
+
encode(data: AdaptyFlowUiSchema): Serializable$30;
|
|
2892
|
+
}
|
|
2893
|
+
|
|
2894
|
+
//#endregion
|
|
2895
|
+
//#region src/coders/adapty-flow.d.ts
|
|
2896
|
+
type Model$28 = AdaptyFlow;
|
|
2897
|
+
type Serializable$29 = Def['AdaptyFlow'];
|
|
2898
|
+
declare class AdaptyFlowCoder extends SimpleCoder<Model$28, Serializable$29> {
|
|
2899
|
+
protected properties: Properties<Model$28, Serializable$29>;
|
|
2811
2900
|
}
|
|
2812
2901
|
|
|
2813
2902
|
//#endregion
|
|
2814
2903
|
//#region src/coders/adapty-identify-params.d.ts
|
|
2815
|
-
type Model$
|
|
2816
|
-
type Serializable$
|
|
2904
|
+
type Model$27 = IdentifyParamsInput;
|
|
2905
|
+
type Serializable$28 = {
|
|
2817
2906
|
app_account_token?: string;
|
|
2818
2907
|
obfuscated_account_id?: string;
|
|
2819
2908
|
obfuscated_profile_id?: string;
|
|
@@ -2821,7 +2910,7 @@ type Serializable$30 = {
|
|
|
2821
2910
|
declare class AdaptyIdentifyParamsCoder {
|
|
2822
2911
|
private readonly platform;
|
|
2823
2912
|
constructor(platform: IPlatformAdapter);
|
|
2824
|
-
encode(params?: Model$
|
|
2913
|
+
encode(params?: Model$27): Serializable$28 | undefined;
|
|
2825
2914
|
}
|
|
2826
2915
|
|
|
2827
2916
|
//#endregion
|
|
@@ -2848,7 +2937,7 @@ declare class AdaptyInstallationStatusCoder implements Converter<AdaptyInstallat
|
|
|
2848
2937
|
* - iOS RNAConstants.MethodName
|
|
2849
2938
|
* @internal
|
|
2850
2939
|
*/
|
|
2851
|
-
declare const MethodNames: readonly ["activate", "adapty_ui_activate", "
|
|
2940
|
+
declare const MethodNames: readonly ["activate", "adapty_ui_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", "identify", "log_show_flow", "logout", "make_purchase", "open_web_paywall", "present_code_redemption_sheet", "report_transaction", "restore_purchases", "set_fallback", "set_integration_identifiers", "set_log_level", "update_attribution_data", "update_collecting_refund_data_consent", "update_profile", "update_refund_preference"];
|
|
2852
2941
|
type MethodName = (typeof MethodNames)[number];
|
|
2853
2942
|
/**
|
|
2854
2943
|
* Types of values that can be passed
|
|
@@ -2890,67 +2979,48 @@ interface ErrorConverter<Model extends Record<string, any>> extends Converter<Mo
|
|
|
2890
2979
|
//#endregion
|
|
2891
2980
|
//#region src/coders/adapty-native-error.d.ts
|
|
2892
2981
|
//# sourceMappingURL=error-coder.d.ts.map
|
|
2893
|
-
type Model$
|
|
2894
|
-
type Serializable$
|
|
2895
|
-
declare class AdaptyNativeErrorCoder extends SimpleCoder<Model$
|
|
2982
|
+
type Model$26 = AdaptyNativeError;
|
|
2983
|
+
type Serializable$27 = Def['AdaptyError'];
|
|
2984
|
+
declare class AdaptyNativeErrorCoder extends SimpleCoder<Model$26, Serializable$27> implements ErrorConverter<Model$26> {
|
|
2896
2985
|
type: 'error';
|
|
2897
|
-
protected properties: Properties<Model$
|
|
2898
|
-
getError(data: Model$
|
|
2986
|
+
protected properties: Properties<Model$26, Serializable$27>;
|
|
2987
|
+
getError(data: Model$26): AdaptyError;
|
|
2899
2988
|
}
|
|
2900
2989
|
|
|
2901
2990
|
//#endregion
|
|
2902
2991
|
//#region src/coders/adapty-non-subscription.d.ts
|
|
2903
|
-
type Model$
|
|
2904
|
-
type Serializable$
|
|
2905
|
-
declare class AdaptyNonSubscriptionCoder extends SimpleCoder<Model$
|
|
2906
|
-
protected properties: Properties<Model$
|
|
2992
|
+
type Model$25 = AdaptyNonSubscription;
|
|
2993
|
+
type Serializable$26 = Def['AdaptyProfile.NonSubscription'];
|
|
2994
|
+
declare class AdaptyNonSubscriptionCoder extends SimpleCoder<Model$25, Serializable$26> {
|
|
2995
|
+
protected properties: Properties<Model$25, Serializable$26>;
|
|
2907
2996
|
}
|
|
2908
2997
|
|
|
2909
2998
|
//#endregion
|
|
2910
2999
|
//#region src/coders/adapty-onboarding-builder.d.ts
|
|
2911
|
-
type Model$
|
|
2912
|
-
type Serializable$
|
|
2913
|
-
declare class AdaptyOnboardingBuilderCoder extends SimpleCoder<Model$
|
|
2914
|
-
protected properties: Properties<Model$
|
|
3000
|
+
type Model$24 = AdaptyOnboardingBuilder;
|
|
3001
|
+
type Serializable$25 = Required<Def['AdaptyOnboarding']>['onboarding_builder'];
|
|
3002
|
+
declare class AdaptyOnboardingBuilderCoder extends SimpleCoder<Model$24, Serializable$25> {
|
|
3003
|
+
protected properties: Properties<Model$24, Serializable$25>;
|
|
2915
3004
|
}
|
|
2916
3005
|
|
|
2917
3006
|
//#endregion
|
|
2918
3007
|
//#region src/coders/adapty-onboarding.d.ts
|
|
2919
|
-
type Model$
|
|
2920
|
-
type CodableModel$
|
|
2921
|
-
type Serializable$
|
|
2922
|
-
declare class AdaptyOnboardingCoder extends Coder<Model$
|
|
2923
|
-
protected properties: Properties<CodableModel$
|
|
2924
|
-
decode(data: Serializable$
|
|
2925
|
-
encode(data: Model$
|
|
2926
|
-
}
|
|
2927
|
-
|
|
2928
|
-
//#endregion
|
|
2929
|
-
//#region src/coders/adapty-paywall-builder.d.ts
|
|
2930
|
-
type Model$24 = AdaptyPaywallBuilder;
|
|
2931
|
-
type Serializable$25 = Required<Def['AdaptyPaywall']>['paywall_builder'];
|
|
2932
|
-
declare class AdaptyPaywallBuilderCoder extends SimpleCoder<Model$24, Serializable$25> {
|
|
2933
|
-
protected properties: Properties<Model$24, Serializable$25>;
|
|
3008
|
+
type Model$23 = AdaptyOnboarding;
|
|
3009
|
+
type CodableModel$2 = Omit<Model$23, 'hasViewConfiguration'>;
|
|
3010
|
+
type Serializable$24 = Def['AdaptyOnboarding'];
|
|
3011
|
+
declare class AdaptyOnboardingCoder extends Coder<Model$23, CodableModel$2, Serializable$24> {
|
|
3012
|
+
protected properties: Properties<CodableModel$2, Serializable$24>;
|
|
3013
|
+
decode(data: Serializable$24): Model$23;
|
|
3014
|
+
encode(data: Model$23): Serializable$24;
|
|
2934
3015
|
}
|
|
2935
3016
|
|
|
2936
3017
|
//#endregion
|
|
2937
3018
|
//#region src/coders/adapty-paywall-product.d.ts
|
|
2938
|
-
type Model$
|
|
2939
|
-
type Serializable$
|
|
2940
|
-
declare class AdaptyPaywallProductCoder extends SimpleCoder<Model$
|
|
2941
|
-
protected properties: Properties<Model$
|
|
2942
|
-
getInput(data: Serializable$
|
|
2943
|
-
}
|
|
2944
|
-
|
|
2945
|
-
//#endregion
|
|
2946
|
-
//#region src/coders/adapty-paywall.d.ts
|
|
2947
|
-
type Model$22 = AdaptyPaywall;
|
|
2948
|
-
type CodableModel$2 = Omit<Model$22, 'hasViewConfiguration' | 'productIdentifiers'>;
|
|
2949
|
-
type Serializable$23 = Def['AdaptyPaywall'];
|
|
2950
|
-
declare class AdaptyPaywallCoder extends Coder<Model$22, CodableModel$2, Serializable$23> {
|
|
2951
|
-
protected properties: Properties<CodableModel$2, Serializable$23>;
|
|
2952
|
-
decode(data: Serializable$23): Model$22;
|
|
2953
|
-
encode(data: Model$22): Serializable$23;
|
|
3019
|
+
type Model$22 = AdaptyPaywallProduct;
|
|
3020
|
+
type Serializable$23 = Def['AdaptyPaywallProduct.Response'];
|
|
3021
|
+
declare class AdaptyPaywallProductCoder extends SimpleCoder<Model$22, Serializable$23> {
|
|
3022
|
+
protected properties: Properties<Model$22, Serializable$23>;
|
|
3023
|
+
getInput(data: Serializable$23): Def['AdaptyPaywallProduct.Request'];
|
|
2954
3024
|
}
|
|
2955
3025
|
|
|
2956
3026
|
//#endregion
|
|
@@ -3009,7 +3079,7 @@ declare class AdaptyPurchaseResultCoder extends SimpleCoder<Model$16, Serializab
|
|
|
3009
3079
|
//#region src/coders/adapty-remote-config.d.ts
|
|
3010
3080
|
type Model$15 = AdaptyRemoteConfig;
|
|
3011
3081
|
type CodableModel$1 = Omit<Model$15, 'dataString'>;
|
|
3012
|
-
type Serializable$16 =
|
|
3082
|
+
type Serializable$16 = Def['AdaptyRemoteConfig'];
|
|
3013
3083
|
declare class AdaptyRemoteConfigCoder extends Coder<Model$15, CodableModel$1, Serializable$16> {
|
|
3014
3084
|
protected properties: Properties<CodableModel$1, Serializable$16>;
|
|
3015
3085
|
decode(data: Serializable$16): Model$15;
|
|
@@ -3074,8 +3144,8 @@ declare class AdaptyUICreateOnboardingViewParamsCoder {
|
|
|
3074
3144
|
}
|
|
3075
3145
|
|
|
3076
3146
|
//#endregion
|
|
3077
|
-
//#region src/coders/adapty-ui-create-
|
|
3078
|
-
type Model$8 =
|
|
3147
|
+
//#region src/coders/adapty-ui-create-flow-view-params.d.ts
|
|
3148
|
+
type Model$8 = CreateFlowViewParamsInput;
|
|
3079
3149
|
type Serializable$8 = {
|
|
3080
3150
|
preload_products?: boolean;
|
|
3081
3151
|
load_timeout?: number;
|
|
@@ -3084,7 +3154,7 @@ type Serializable$8 = {
|
|
|
3084
3154
|
custom_assets?: Def['AdaptyUI.CustomAssets'];
|
|
3085
3155
|
product_purchase_parameters?: Def['AdaptyUI.ProductPurchaseParameters'];
|
|
3086
3156
|
};
|
|
3087
|
-
declare class
|
|
3157
|
+
declare class AdaptyUICreateFlowViewParamsCoder {
|
|
3088
3158
|
private readonly platform;
|
|
3089
3159
|
constructor(platform: IPlatformAdapter);
|
|
3090
3160
|
encode(data: Model$8): Serializable$8;
|
|
@@ -3183,7 +3253,7 @@ declare class JSONCoder implements Converter<Model$2, Serialized$1> {
|
|
|
3183
3253
|
//#endregion
|
|
3184
3254
|
//#region src/coders/product-reference.d.ts
|
|
3185
3255
|
type Model$1 = ProductReference;
|
|
3186
|
-
type Serializable$2 = Def['
|
|
3256
|
+
type Serializable$2 = Def['AdaptyFlowPaywall.ProductReference'];
|
|
3187
3257
|
declare class ProductReferenceCoder extends SimpleCoder<Model$1, Serializable$2> {
|
|
3188
3258
|
protected properties: Properties<Model$1, Serializable$2>;
|
|
3189
3259
|
}
|
|
@@ -3218,8 +3288,9 @@ declare class CoderFactory {
|
|
|
3218
3288
|
createNonSubscriptionCoder(): AdaptyNonSubscriptionCoder;
|
|
3219
3289
|
createOnboardingBuilderCoder(): AdaptyOnboardingBuilderCoder;
|
|
3220
3290
|
createOnboardingCoder(): AdaptyOnboardingCoder;
|
|
3221
|
-
|
|
3222
|
-
|
|
3291
|
+
createFlowCoder(): AdaptyFlowCoder;
|
|
3292
|
+
createFlowPaywallCoder(): AdaptyFlowPaywallCoder;
|
|
3293
|
+
createFlowUiSchemaCoder(): AdaptyFlowUiSchemaCoder;
|
|
3223
3294
|
createPaywallProductCoder(): AdaptyPaywallProductCoder;
|
|
3224
3295
|
createPlacementCoder(): AdaptyPlacementCoder;
|
|
3225
3296
|
createPriceCoder(): AdaptyPriceCoder;
|
|
@@ -3233,7 +3304,7 @@ declare class CoderFactory {
|
|
|
3233
3304
|
createSubscriptionOfferIdCoder(): AdaptySubscriptionOfferIdCoder;
|
|
3234
3305
|
createSubscriptionPeriodCoder(): AdaptySubscriptionPeriodCoder;
|
|
3235
3306
|
createUiCreateOnboardingViewParamsCoder(): AdaptyUICreateOnboardingViewParamsCoder;
|
|
3236
|
-
|
|
3307
|
+
createUiCreateFlowViewParamsCoder(): AdaptyUICreateFlowViewParamsCoder;
|
|
3237
3308
|
createUiDialogConfigCoder(): AdaptyUiDialogConfigCoder;
|
|
3238
3309
|
createUiMediaCacheCoder(): AdaptyUiMediaCacheCoder;
|
|
3239
3310
|
createUiOnboardingMetaCoder(): AdaptyUiOnboardingMetaCoder;
|
|
@@ -3246,40 +3317,40 @@ declare class CoderFactory {
|
|
|
3246
3317
|
}
|
|
3247
3318
|
|
|
3248
3319
|
//#endregion
|
|
3249
|
-
//#region src/types/
|
|
3320
|
+
//#region src/types/flow-events.d.ts
|
|
3250
3321
|
//# sourceMappingURL=factory.d.ts.map
|
|
3251
|
-
declare const
|
|
3252
|
-
readonly DidAppear: "
|
|
3253
|
-
readonly DidDisappear: "
|
|
3254
|
-
readonly DidPerformAction: "
|
|
3255
|
-
readonly DidSelectProduct: "
|
|
3256
|
-
readonly DidStartPurchase: "
|
|
3257
|
-
readonly DidFinishPurchase: "
|
|
3258
|
-
readonly DidFailPurchase: "
|
|
3259
|
-
readonly DidStartRestore: "
|
|
3260
|
-
readonly DidFinishRestore: "
|
|
3261
|
-
readonly DidFailRestore: "
|
|
3262
|
-
readonly
|
|
3263
|
-
readonly DidFailLoadingProducts: "
|
|
3264
|
-
readonly DidFinishWebPaymentNavigation: "
|
|
3322
|
+
declare const FlowEventId: {
|
|
3323
|
+
readonly DidAppear: "flow_view_did_appear";
|
|
3324
|
+
readonly DidDisappear: "flow_view_did_disappear";
|
|
3325
|
+
readonly DidPerformAction: "flow_view_did_perform_action";
|
|
3326
|
+
readonly DidSelectProduct: "flow_view_did_select_product";
|
|
3327
|
+
readonly DidStartPurchase: "flow_view_did_start_purchase";
|
|
3328
|
+
readonly DidFinishPurchase: "flow_view_did_finish_purchase";
|
|
3329
|
+
readonly DidFailPurchase: "flow_view_did_fail_purchase";
|
|
3330
|
+
readonly DidStartRestore: "flow_view_did_start_restore";
|
|
3331
|
+
readonly DidFinishRestore: "flow_view_did_finish_restore";
|
|
3332
|
+
readonly DidFailRestore: "flow_view_did_fail_restore";
|
|
3333
|
+
readonly DidReceiveError: "flow_view_did_receive_error";
|
|
3334
|
+
readonly DidFailLoadingProducts: "flow_view_did_fail_loading_products";
|
|
3335
|
+
readonly DidFinishWebPaymentNavigation: "flow_view_did_finish_web_payment_navigation";
|
|
3265
3336
|
};
|
|
3266
|
-
type
|
|
3267
|
-
interface
|
|
3337
|
+
type FlowEventIdType = (typeof FlowEventId)[keyof typeof FlowEventId];
|
|
3338
|
+
interface FlowEventView {
|
|
3268
3339
|
id: string;
|
|
3269
3340
|
placementId?: string;
|
|
3270
3341
|
variationId?: string;
|
|
3271
3342
|
}
|
|
3272
|
-
interface
|
|
3273
|
-
id:
|
|
3274
|
-
view:
|
|
3343
|
+
interface BaseFlowEvent {
|
|
3344
|
+
id: FlowEventIdType;
|
|
3345
|
+
view: FlowEventView;
|
|
3275
3346
|
}
|
|
3276
|
-
interface
|
|
3277
|
-
id: typeof
|
|
3347
|
+
interface FlowDidAppearEvent extends BaseFlowEvent {
|
|
3348
|
+
id: typeof FlowEventId.DidAppear;
|
|
3278
3349
|
}
|
|
3279
|
-
interface
|
|
3280
|
-
id: typeof
|
|
3350
|
+
interface FlowDidDisappearEvent extends BaseFlowEvent {
|
|
3351
|
+
id: typeof FlowEventId.DidDisappear;
|
|
3281
3352
|
}
|
|
3282
|
-
type
|
|
3353
|
+
type FlowUserAction = {
|
|
3283
3354
|
type: 'close';
|
|
3284
3355
|
} | {
|
|
3285
3356
|
type: 'system_back';
|
|
@@ -3291,53 +3362,53 @@ type PaywallUserAction = {
|
|
|
3291
3362
|
type: 'custom';
|
|
3292
3363
|
value: string;
|
|
3293
3364
|
};
|
|
3294
|
-
interface
|
|
3295
|
-
id: typeof
|
|
3296
|
-
action:
|
|
3365
|
+
interface FlowDidPerformActionEvent extends BaseFlowEvent {
|
|
3366
|
+
id: typeof FlowEventId.DidPerformAction;
|
|
3367
|
+
action: FlowUserAction;
|
|
3297
3368
|
}
|
|
3298
|
-
interface
|
|
3299
|
-
id: typeof
|
|
3369
|
+
interface FlowDidSelectProductEvent extends BaseFlowEvent {
|
|
3370
|
+
id: typeof FlowEventId.DidSelectProduct;
|
|
3300
3371
|
productId: string;
|
|
3301
3372
|
}
|
|
3302
|
-
interface
|
|
3303
|
-
id: typeof
|
|
3373
|
+
interface FlowDidStartPurchaseEvent extends BaseFlowEvent {
|
|
3374
|
+
id: typeof FlowEventId.DidStartPurchase;
|
|
3304
3375
|
product: AdaptyPaywallProduct;
|
|
3305
3376
|
}
|
|
3306
|
-
interface
|
|
3307
|
-
id: typeof
|
|
3377
|
+
interface FlowDidFinishPurchaseEvent extends BaseFlowEvent {
|
|
3378
|
+
id: typeof FlowEventId.DidFinishPurchase;
|
|
3308
3379
|
purchaseResult: AdaptyPurchaseResult;
|
|
3309
3380
|
product: AdaptyPaywallProduct;
|
|
3310
3381
|
}
|
|
3311
|
-
interface
|
|
3312
|
-
id: typeof
|
|
3382
|
+
interface FlowDidFailPurchaseEvent extends BaseFlowEvent {
|
|
3383
|
+
id: typeof FlowEventId.DidFailPurchase;
|
|
3313
3384
|
error: AdaptyError;
|
|
3314
3385
|
product: AdaptyPaywallProduct;
|
|
3315
3386
|
}
|
|
3316
|
-
interface
|
|
3317
|
-
id: typeof
|
|
3387
|
+
interface FlowDidStartRestoreEvent extends BaseFlowEvent {
|
|
3388
|
+
id: typeof FlowEventId.DidStartRestore;
|
|
3318
3389
|
}
|
|
3319
|
-
interface
|
|
3320
|
-
id: typeof
|
|
3390
|
+
interface FlowDidFinishRestoreEvent extends BaseFlowEvent {
|
|
3391
|
+
id: typeof FlowEventId.DidFinishRestore;
|
|
3321
3392
|
profile: AdaptyProfile;
|
|
3322
3393
|
}
|
|
3323
|
-
interface
|
|
3324
|
-
id: typeof
|
|
3394
|
+
interface FlowDidFailRestoreEvent extends BaseFlowEvent {
|
|
3395
|
+
id: typeof FlowEventId.DidFailRestore;
|
|
3325
3396
|
error: AdaptyError;
|
|
3326
3397
|
}
|
|
3327
|
-
interface
|
|
3328
|
-
id: typeof
|
|
3398
|
+
interface FlowDidReceiveErrorEvent extends BaseFlowEvent {
|
|
3399
|
+
id: typeof FlowEventId.DidReceiveError;
|
|
3329
3400
|
error: AdaptyError;
|
|
3330
3401
|
}
|
|
3331
|
-
interface
|
|
3332
|
-
id: typeof
|
|
3402
|
+
interface FlowDidFailLoadingProductsEvent extends BaseFlowEvent {
|
|
3403
|
+
id: typeof FlowEventId.DidFailLoadingProducts;
|
|
3333
3404
|
error: AdaptyError;
|
|
3334
3405
|
}
|
|
3335
|
-
interface
|
|
3336
|
-
id: typeof
|
|
3406
|
+
interface FlowDidFinishWebPaymentNavigationEvent extends BaseFlowEvent {
|
|
3407
|
+
id: typeof FlowEventId.DidFinishWebPaymentNavigation;
|
|
3337
3408
|
product?: AdaptyPaywallProduct;
|
|
3338
3409
|
error?: AdaptyError;
|
|
3339
3410
|
}
|
|
3340
|
-
type
|
|
3411
|
+
type ParsedFlowEvent = FlowDidAppearEvent | FlowDidDisappearEvent | FlowDidPerformActionEvent | FlowDidSelectProductEvent | FlowDidStartPurchaseEvent | FlowDidFinishPurchaseEvent | FlowDidFailPurchaseEvent | FlowDidStartRestoreEvent | FlowDidFinishRestoreEvent | FlowDidFailRestoreEvent | FlowDidReceiveErrorEvent | FlowDidFailLoadingProductsEvent | FlowDidFinishWebPaymentNavigationEvent;
|
|
3341
3412
|
|
|
3342
3413
|
//#endregion
|
|
3343
3414
|
//#region src/types/onboarding-events.d.ts
|
|
@@ -3400,19 +3471,19 @@ interface OnboardingErrorEvent extends BaseOnboardingEvent {
|
|
|
3400
3471
|
type ParsedOnboardingEvent = OnboardingCloseEvent | OnboardingCustomEvent | OnboardingPaywallEvent | OnboardingStateUpdatedEvent | OnboardingFinishedLoadingEvent | OnboardingAnalyticsEvent | OnboardingErrorEvent;
|
|
3401
3472
|
|
|
3402
3473
|
//#endregion
|
|
3403
|
-
//#region src/ui-builder/
|
|
3404
|
-
type EventName$1 = keyof
|
|
3474
|
+
//#region src/ui-builder/flow-event-mapping.d.ts
|
|
3475
|
+
type EventName$1 = keyof FlowEventHandlers;
|
|
3405
3476
|
/**
|
|
3406
3477
|
* Resolves native event to handler name based on event data
|
|
3407
3478
|
*/
|
|
3408
|
-
declare const NATIVE_EVENT_RESOLVER: Record<
|
|
3479
|
+
declare const NATIVE_EVENT_RESOLVER: Record<FlowEventIdType, (event: ParsedFlowEvent) => EventName$1 | null>;
|
|
3409
3480
|
/**
|
|
3410
3481
|
* Maps handler name to native event name
|
|
3411
3482
|
* Used in addListener/addInternalListener to subscribe to correct native event
|
|
3412
3483
|
*/
|
|
3413
|
-
declare const HANDLER_TO_NATIVE_EVENT: Record<EventName$1,
|
|
3414
|
-
type ExtractedArgs$1<T extends keyof
|
|
3415
|
-
declare function
|
|
3484
|
+
declare const HANDLER_TO_NATIVE_EVENT: Record<EventName$1, FlowEventIdType>;
|
|
3485
|
+
type ExtractedArgs$1<T extends keyof FlowEventHandlers> = Parameters<FlowEventHandlers[T]>;
|
|
3486
|
+
declare function extractFlowCallbackArgs<T extends keyof FlowEventHandlers>(handlerName: T, event: ParsedFlowEvent): ExtractedArgs$1<T>;
|
|
3416
3487
|
|
|
3417
3488
|
//#endregion
|
|
3418
3489
|
//#region src/ui-builder/onboarding-event-mapping.d.ts
|
|
@@ -3436,18 +3507,18 @@ declare function extractOnboardingCallbackArgs<T extends keyof OnboardingEventHa
|
|
|
3436
3507
|
|
|
3437
3508
|
//#endregion
|
|
3438
3509
|
//#region src/coders/parse.d.ts
|
|
3439
|
-
declare const AdaptyTypes: readonly ["AdaptyError", "AdaptyProfile", "AdaptyPurchaseResult", "
|
|
3510
|
+
declare const AdaptyTypes: readonly ["AdaptyError", "AdaptyProfile", "AdaptyPurchaseResult", "AdaptyFlow", "AdaptyPaywallProduct", "AdaptyOnboarding", "AdaptyRemoteConfig", "AdaptyInstallationStatus", "AdaptyInstallationDetails", "AdaptyUiView", "AdaptyUiDialogActionType", "AdaptyUiOnboardingMeta", "AdaptyUiOnboardingStateParams", "AdaptyUiOnboardingStateUpdatedAction", "Array<AdaptyPaywallProduct>", "BridgeError", "String", "Boolean", "Void"];
|
|
3440
3511
|
type AdaptyType = (typeof AdaptyTypes)[number];
|
|
3441
3512
|
declare function parseMethodResult<T>(factory: CoderFactory, input: string, resultType: AdaptyType, ctx?: LogContext): T;
|
|
3442
3513
|
declare function parseCommonEvent(factory: CoderFactory, event: string, input: string, ctx?: LogContext): any;
|
|
3443
3514
|
|
|
3444
3515
|
//#endregion
|
|
3445
|
-
//#region src/coders/parse-
|
|
3446
|
-
declare function
|
|
3516
|
+
//#region src/coders/parse-flow.d.ts
|
|
3517
|
+
declare function parseFlowEvent(factory: CoderFactory, input: string, ctx?: LogContext): ParsedFlowEvent | null;
|
|
3447
3518
|
|
|
3448
3519
|
//#endregion
|
|
3449
3520
|
//#region src/coders/parse-onboarding.d.ts
|
|
3450
|
-
//# sourceMappingURL=parse-
|
|
3521
|
+
//# sourceMappingURL=parse-flow.d.ts.map
|
|
3451
3522
|
declare function parseOnboardingEvent(factory: CoderFactory, input: string, ctx?: LogContext): ParsedOnboardingEvent | null;
|
|
3452
3523
|
|
|
3453
3524
|
//#endregion
|
|
@@ -3504,5 +3575,5 @@ declare function withErrorContext<T extends (...args: never[]) => unknown>(callb
|
|
|
3504
3575
|
//#endregion
|
|
3505
3576
|
//# sourceMappingURL=with-error-context.d.ts.map
|
|
3506
3577
|
|
|
3507
|
-
export { ActivateParamsInput, AdaptyAccessLevel, AdaptyAndroidPurchaseParams, AdaptyAndroidSubscriptionUpdateParameters, AdaptyAndroidSubscriptionUpdateReplacementMode, AdaptyBridgeError, AdaptyCustomAsset, AdaptyCustomColorAsset, AdaptyCustomGradientAsset, AdaptyCustomImageAsset, AdaptyCustomVideoAsset, AdaptyDiscountPhase, AdaptyError, AdaptyErrorInput, AdaptyIOSPresentationStyle, AdaptyInstallationDetails, AdaptyInstallationStatus, AdaptyNativeError, AdaptyNonSubscription, AdaptyOnboarding, AdaptyOnboardingBuilder,
|
|
3578
|
+
export { ActivateParamsInput, AdaptyAccessLevel, AdaptyAndroidPurchaseParams, AdaptyAndroidSubscriptionUpdateParameters, AdaptyAndroidSubscriptionUpdateReplacementMode, AdaptyBridgeError, AdaptyCustomAsset, AdaptyCustomColorAsset, AdaptyCustomGradientAsset, AdaptyCustomImageAsset, AdaptyCustomVideoAsset, AdaptyDiscountPhase, AdaptyError, AdaptyErrorInput, AdaptyFlow, AdaptyFlowPaywall, AdaptyFlowUiSchema, AdaptyFlowUiSchemaGrid, AdaptyFlowUiSchemaLayout, AdaptyIOSPresentationStyle, AdaptyInstallationDetails, AdaptyInstallationStatus, AdaptyNativeError, AdaptyNonSubscription, AdaptyOnboarding, AdaptyOnboardingBuilder, AdaptyPaywallProduct, 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, FlowDidDisappearEvent, FlowDidFailLoadingProductsEvent, FlowDidFailPurchaseEvent, FlowDidFailRestoreEvent, FlowDidFinishPurchaseEvent, FlowDidFinishRestoreEvent, FlowDidFinishWebPaymentNavigationEvent, FlowDidPerformActionEvent, FlowDidReceiveErrorEvent, FlowDidSelectProductEvent, FlowDidStartPurchaseEvent, FlowDidStartRestoreEvent, FlowEventHandlers, FlowEventId, FlowEventIdType, FlowEventView, 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 };
|
|
3508
3579
|
//# sourceMappingURL=index.d.cts.map
|