@adapty/core 4.0.0-dev.be3bfb2d97c35a578f09706e179187ebdb312943 → 4.0.0
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 +450 -384
- package/dist/index.d.cts +592 -372
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +592 -372
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +448 -382
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -505,51 +505,63 @@ 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
513
|
/**
|
|
515
|
-
*
|
|
516
|
-
* and use it with AdaptyUI library.
|
|
514
|
+
* A paywall name.
|
|
517
515
|
* @readonly
|
|
518
516
|
*/
|
|
519
|
-
readonly
|
|
517
|
+
readonly name: string;
|
|
520
518
|
/**
|
|
521
|
-
*
|
|
519
|
+
* An identifier of a variation,
|
|
520
|
+
* used to attribute purchases to this paywall.
|
|
522
521
|
* @readonly
|
|
523
522
|
*/
|
|
524
|
-
readonly
|
|
523
|
+
readonly variationId: string;
|
|
525
524
|
/**
|
|
526
|
-
*
|
|
525
|
+
* Array of product identifiers for this paywall
|
|
527
526
|
* @readonly
|
|
528
527
|
*/
|
|
529
|
-
readonly
|
|
528
|
+
readonly productIdentifiers: AdaptyProductIdentifier[];
|
|
529
|
+
id: string;
|
|
530
|
+
webPurchaseUrl?: string;
|
|
531
|
+
}
|
|
532
|
+
/**
|
|
533
|
+
* Describes an object that represents a flow,
|
|
534
|
+
* fetched for a placement.
|
|
535
|
+
* @public
|
|
536
|
+
*/
|
|
537
|
+
interface AdaptyFlow {
|
|
538
|
+
readonly placement: AdaptyPlacement;
|
|
539
|
+
/**
|
|
540
|
+
* A flow name.
|
|
541
|
+
* @readonly
|
|
542
|
+
*/
|
|
543
|
+
readonly name: string;
|
|
530
544
|
/**
|
|
531
545
|
* An identifier of a variation,
|
|
532
|
-
* used to attribute purchases to this
|
|
546
|
+
* used to attribute purchases to this flow.
|
|
533
547
|
* @readonly
|
|
534
548
|
*/
|
|
535
549
|
readonly variationId: string;
|
|
536
550
|
/**
|
|
537
|
-
*
|
|
551
|
+
* Remote configs configured in Adapty Dashboard for this flow.
|
|
538
552
|
* @readonly
|
|
539
|
-
* @deprecated Use {@link AdaptyPaywall.productIdentifiers} instead
|
|
540
553
|
*/
|
|
541
|
-
readonly
|
|
554
|
+
readonly remoteConfigs?: AdaptyRemoteConfig[];
|
|
542
555
|
/**
|
|
543
|
-
*
|
|
556
|
+
* Paywall variations contained in this flow.
|
|
544
557
|
* @readonly
|
|
545
558
|
*/
|
|
546
|
-
readonly
|
|
559
|
+
readonly paywalls: AdaptyFlowPaywall[];
|
|
547
560
|
id: string;
|
|
548
|
-
|
|
549
|
-
|
|
561
|
+
flowVersionId?: string;
|
|
562
|
+
/** Server response creation timestamp in milliseconds. */
|
|
563
|
+
responseCreatedAt: number;
|
|
550
564
|
payloadData?: string;
|
|
551
|
-
requestLocale: string;
|
|
552
|
-
paywallBuilder?: AdaptyPaywallBuilder;
|
|
553
565
|
}
|
|
554
566
|
interface AdaptyOnboarding {
|
|
555
567
|
readonly placement: AdaptyPlacement;
|
|
@@ -627,10 +639,6 @@ interface AdaptyRemoteConfig {
|
|
|
627
639
|
*/
|
|
628
640
|
readonly dataString: string;
|
|
629
641
|
}
|
|
630
|
-
interface AdaptyPaywallBuilder {
|
|
631
|
-
readonly id: string;
|
|
632
|
-
readonly lang: string;
|
|
633
|
-
}
|
|
634
642
|
interface AdaptyOnboardingBuilder {
|
|
635
643
|
readonly url: string;
|
|
636
644
|
}
|
|
@@ -646,6 +654,15 @@ type AdaptyPurchaseResult = {
|
|
|
646
654
|
purchaseToken?: string;
|
|
647
655
|
};
|
|
648
656
|
};
|
|
657
|
+
/**
|
|
658
|
+
* Identifier of an attribution source applied to a profile.
|
|
659
|
+
*
|
|
660
|
+
* Known value is `'apple_search_ads'`. Other identifiers may be emitted
|
|
661
|
+
* in future versions, so any string is accepted — clients must tolerate
|
|
662
|
+
* unknown values.
|
|
663
|
+
* @public
|
|
664
|
+
*/
|
|
665
|
+
type AttributionSource = 'apple_search_ads' | (string & {});
|
|
649
666
|
/**
|
|
650
667
|
* Interface representing a user profile in Adapty,
|
|
651
668
|
* including details about the user's subscriptions and consumable products.
|
|
@@ -659,6 +676,13 @@ interface AdaptyProfile {
|
|
|
659
676
|
* @readonly
|
|
660
677
|
*/
|
|
661
678
|
readonly accessLevels?: Record<string, AdaptyAccessLevel>;
|
|
679
|
+
/**
|
|
680
|
+
* Identifiers of attribution sources applied to the profile.
|
|
681
|
+
* Known value is `'apple_search_ads'`; unknown values may appear
|
|
682
|
+
* in future versions.
|
|
683
|
+
* @readonly
|
|
684
|
+
*/
|
|
685
|
+
readonly appliedAttributionSources?: AttributionSource[];
|
|
662
686
|
/**
|
|
663
687
|
* Object representing custom attributes set for the user using
|
|
664
688
|
* the {@link Adapty.updateProfile} method.
|
|
@@ -964,11 +988,11 @@ interface AdaptyPaywallProduct {
|
|
|
964
988
|
*/
|
|
965
989
|
readonly localizedTitle: string;
|
|
966
990
|
/**
|
|
967
|
-
* Same as `abTestName` property of the parent {@link
|
|
991
|
+
* Same as `abTestName` property of the parent {@link AdaptyFlowPaywall}.
|
|
968
992
|
*/
|
|
969
993
|
readonly paywallABTestName: string;
|
|
970
994
|
/**
|
|
971
|
-
* Same as `name` property of the parent {@link
|
|
995
|
+
* Same as `name` property of the parent {@link AdaptyFlowPaywall}.
|
|
972
996
|
*/
|
|
973
997
|
readonly paywallName: string;
|
|
974
998
|
readonly accessLevelId: string;
|
|
@@ -979,7 +1003,7 @@ interface AdaptyPaywallProduct {
|
|
|
979
1003
|
readonly price?: AdaptyPrice;
|
|
980
1004
|
readonly adaptyId: string;
|
|
981
1005
|
/**
|
|
982
|
-
* Same as `variationId` property of the parent {@link
|
|
1006
|
+
* Same as `variationId` property of the parent {@link AdaptyFlowPaywall}.
|
|
983
1007
|
*/
|
|
984
1008
|
readonly variationId: string;
|
|
985
1009
|
/**
|
|
@@ -1047,6 +1071,9 @@ type AdaptySubscriptionOfferId = {
|
|
|
1047
1071
|
} | {
|
|
1048
1072
|
id: string;
|
|
1049
1073
|
type: 'promotional' | 'win_back';
|
|
1074
|
+
} | {
|
|
1075
|
+
id?: string;
|
|
1076
|
+
type: 'code';
|
|
1050
1077
|
};
|
|
1051
1078
|
/**
|
|
1052
1079
|
* Discount model to products
|
|
@@ -1114,6 +1141,7 @@ interface AdaptyProfileParameters {
|
|
|
1114
1141
|
phoneNumber?: string;
|
|
1115
1142
|
}
|
|
1116
1143
|
interface ProductReference {
|
|
1144
|
+
flowProductId?: string;
|
|
1117
1145
|
vendorId: string;
|
|
1118
1146
|
adaptyId: string;
|
|
1119
1147
|
accessLevelId: string;
|
|
@@ -1187,16 +1215,152 @@ interface AdaptyInstallationDetails {
|
|
|
1187
1215
|
*/
|
|
1188
1216
|
readonly payload?: string;
|
|
1189
1217
|
} //#endregion
|
|
1190
|
-
//#region src/
|
|
1218
|
+
//#region src/types/flow-events.d.ts
|
|
1191
1219
|
|
|
1192
1220
|
//# sourceMappingURL=index.d.ts.map
|
|
1221
|
+
declare const FlowEventId: {
|
|
1222
|
+
readonly DidAppear: "flow_view_did_appear";
|
|
1223
|
+
readonly DidDisappear: "flow_view_did_disappear";
|
|
1224
|
+
readonly DidPerformAction: "flow_view_did_perform_action";
|
|
1225
|
+
readonly DidSelectProduct: "flow_view_did_select_product";
|
|
1226
|
+
readonly DidStartPurchase: "flow_view_did_start_purchase";
|
|
1227
|
+
readonly DidFinishPurchase: "flow_view_did_finish_purchase";
|
|
1228
|
+
readonly DidFailPurchase: "flow_view_did_fail_purchase";
|
|
1229
|
+
readonly DidStartRestore: "flow_view_did_start_restore";
|
|
1230
|
+
readonly DidFinishRestore: "flow_view_did_finish_restore";
|
|
1231
|
+
readonly DidFailRestore: "flow_view_did_fail_restore";
|
|
1232
|
+
readonly DidReceiveError: "flow_view_did_receive_error";
|
|
1233
|
+
readonly DidFailLoadingProducts: "flow_view_did_fail_loading_products";
|
|
1234
|
+
readonly DidFinishWebPaymentNavigation: "flow_view_did_finish_web_payment_navigation";
|
|
1235
|
+
readonly DidRequestAppReview: "flow_view_did_request_app_review";
|
|
1236
|
+
readonly DidReceiveAnalyticEvent: "flow_view_did_receive_analytic_event";
|
|
1237
|
+
readonly DidAskPermission: "flow_view_did_ask_permission";
|
|
1238
|
+
readonly ObserverDidInitiatePurchase: "flow_view_observer_did_initiate_purchase";
|
|
1239
|
+
readonly ObserverDidInitiateRestore: "flow_view_observer_did_initiate_restore";
|
|
1240
|
+
};
|
|
1241
|
+
type FlowEventIdType = (typeof FlowEventId)[keyof typeof FlowEventId];
|
|
1242
|
+
/**
|
|
1243
|
+
* Permission identifier a flow view asks the host app to request.
|
|
1244
|
+
*
|
|
1245
|
+
* The literals below are the known cross-platform set; any string is valid —
|
|
1246
|
+
* unknown or platform-specific ids (e.g. Android `'phone'`, `'sms'`) and future
|
|
1247
|
+
* values pass through unchanged. The `(string & {})` keeps the known values as
|
|
1248
|
+
* autocomplete hints while still accepting arbitrary strings.
|
|
1249
|
+
*/
|
|
1250
|
+
type AdaptyPermission = '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 & {});
|
|
1251
|
+
interface FlowEventView {
|
|
1252
|
+
id: string;
|
|
1253
|
+
placementId?: string;
|
|
1254
|
+
variationId?: string;
|
|
1255
|
+
}
|
|
1256
|
+
interface BaseFlowEvent {
|
|
1257
|
+
id: FlowEventIdType;
|
|
1258
|
+
view: FlowEventView;
|
|
1259
|
+
}
|
|
1260
|
+
interface FlowDidAppearEvent extends BaseFlowEvent {
|
|
1261
|
+
id: typeof FlowEventId.DidAppear;
|
|
1262
|
+
}
|
|
1263
|
+
interface FlowDidDisappearEvent extends BaseFlowEvent {
|
|
1264
|
+
id: typeof FlowEventId.DidDisappear;
|
|
1265
|
+
}
|
|
1266
|
+
type FlowUserAction = {
|
|
1267
|
+
type: 'close';
|
|
1268
|
+
} | {
|
|
1269
|
+
type: 'system_back';
|
|
1270
|
+
} | {
|
|
1271
|
+
type: 'open_url';
|
|
1272
|
+
value: string;
|
|
1273
|
+
openIn: WebPresentation;
|
|
1274
|
+
} | {
|
|
1275
|
+
type: 'custom';
|
|
1276
|
+
value: string;
|
|
1277
|
+
};
|
|
1278
|
+
interface FlowDidPerformActionEvent extends BaseFlowEvent {
|
|
1279
|
+
id: typeof FlowEventId.DidPerformAction;
|
|
1280
|
+
action: FlowUserAction;
|
|
1281
|
+
}
|
|
1282
|
+
interface FlowDidSelectProductEvent extends BaseFlowEvent {
|
|
1283
|
+
id: typeof FlowEventId.DidSelectProduct;
|
|
1284
|
+
productId: string;
|
|
1285
|
+
}
|
|
1286
|
+
interface FlowDidStartPurchaseEvent extends BaseFlowEvent {
|
|
1287
|
+
id: typeof FlowEventId.DidStartPurchase;
|
|
1288
|
+
product: AdaptyPaywallProduct;
|
|
1289
|
+
}
|
|
1290
|
+
interface FlowDidFinishPurchaseEvent extends BaseFlowEvent {
|
|
1291
|
+
id: typeof FlowEventId.DidFinishPurchase;
|
|
1292
|
+
purchaseResult: AdaptyPurchaseResult;
|
|
1293
|
+
product: AdaptyPaywallProduct;
|
|
1294
|
+
}
|
|
1295
|
+
interface FlowDidFailPurchaseEvent extends BaseFlowEvent {
|
|
1296
|
+
id: typeof FlowEventId.DidFailPurchase;
|
|
1297
|
+
error: AdaptyError;
|
|
1298
|
+
product: AdaptyPaywallProduct;
|
|
1299
|
+
}
|
|
1300
|
+
interface FlowDidStartRestoreEvent extends BaseFlowEvent {
|
|
1301
|
+
id: typeof FlowEventId.DidStartRestore;
|
|
1302
|
+
}
|
|
1303
|
+
interface FlowDidFinishRestoreEvent extends BaseFlowEvent {
|
|
1304
|
+
id: typeof FlowEventId.DidFinishRestore;
|
|
1305
|
+
profile: AdaptyProfile;
|
|
1306
|
+
}
|
|
1307
|
+
interface FlowDidFailRestoreEvent extends BaseFlowEvent {
|
|
1308
|
+
id: typeof FlowEventId.DidFailRestore;
|
|
1309
|
+
error: AdaptyError;
|
|
1310
|
+
}
|
|
1311
|
+
interface FlowDidReceiveErrorEvent extends BaseFlowEvent {
|
|
1312
|
+
id: typeof FlowEventId.DidReceiveError;
|
|
1313
|
+
error: AdaptyError;
|
|
1314
|
+
}
|
|
1315
|
+
interface FlowDidFailLoadingProductsEvent extends BaseFlowEvent {
|
|
1316
|
+
id: typeof FlowEventId.DidFailLoadingProducts;
|
|
1317
|
+
error: AdaptyError;
|
|
1318
|
+
}
|
|
1319
|
+
interface FlowDidFinishWebPaymentNavigationEvent extends BaseFlowEvent {
|
|
1320
|
+
id: typeof FlowEventId.DidFinishWebPaymentNavigation;
|
|
1321
|
+
product?: AdaptyPaywallProduct;
|
|
1322
|
+
error?: AdaptyError;
|
|
1323
|
+
}
|
|
1324
|
+
interface FlowDidRequestAppReviewEvent extends BaseFlowEvent {
|
|
1325
|
+
id: typeof FlowEventId.DidRequestAppReview;
|
|
1326
|
+
}
|
|
1327
|
+
interface FlowDidReceiveAnalyticEvent extends BaseFlowEvent {
|
|
1328
|
+
id: typeof FlowEventId.DidReceiveAnalyticEvent;
|
|
1329
|
+
name: string;
|
|
1330
|
+
params: Record<string, unknown>;
|
|
1331
|
+
}
|
|
1332
|
+
interface FlowDidAskPermissionEvent extends BaseFlowEvent {
|
|
1333
|
+
id: typeof FlowEventId.DidAskPermission;
|
|
1334
|
+
/** Correlation id — sent back to native in the response. SDK-internal. */
|
|
1335
|
+
eventId: string;
|
|
1336
|
+
/** Permission identifier the flow view asks the host to request. */
|
|
1337
|
+
permission: AdaptyPermission;
|
|
1338
|
+
/** Arbitrary string key/value args attached by the dashboard. */
|
|
1339
|
+
customArgs: Record<string, string>;
|
|
1340
|
+
}
|
|
1341
|
+
interface FlowObserverDidInitiatePurchaseEvent extends BaseFlowEvent {
|
|
1342
|
+
id: typeof FlowEventId.ObserverDidInitiatePurchase;
|
|
1343
|
+
/** Correlation id — sent back to native in the reply. SDK-internal. */
|
|
1344
|
+
eventId: string;
|
|
1345
|
+
/** Product the user initiated the purchase for. */
|
|
1346
|
+
product: AdaptyPaywallProduct;
|
|
1347
|
+
}
|
|
1348
|
+
interface FlowObserverDidInitiateRestoreEvent extends BaseFlowEvent {
|
|
1349
|
+
id: typeof FlowEventId.ObserverDidInitiateRestore;
|
|
1350
|
+
/** Correlation id — sent back to native in the reply. SDK-internal. */
|
|
1351
|
+
eventId: string;
|
|
1352
|
+
}
|
|
1353
|
+
type ParsedFlowEvent = FlowDidAppearEvent | FlowDidDisappearEvent | FlowDidPerformActionEvent | FlowDidSelectProductEvent | FlowDidStartPurchaseEvent | FlowDidFinishPurchaseEvent | FlowDidFailPurchaseEvent | FlowDidStartRestoreEvent | FlowDidFinishRestoreEvent | FlowDidFailRestoreEvent | FlowDidReceiveErrorEvent | FlowDidFailLoadingProductsEvent | FlowDidFinishWebPaymentNavigationEvent | FlowDidRequestAppReviewEvent | FlowDidReceiveAnalyticEvent | FlowDidAskPermissionEvent | FlowObserverDidInitiatePurchaseEvent | FlowObserverDidInitiateRestoreEvent;
|
|
1354
|
+
|
|
1355
|
+
//#endregion
|
|
1356
|
+
//#region src/ui-builder/types.d.ts
|
|
1193
1357
|
/**
|
|
1194
1358
|
* @internal
|
|
1195
1359
|
*/
|
|
1196
1360
|
type ArgType<T> = T extends (() => unknown) ? void : T extends ((arg: infer U) => unknown) ? U : void;
|
|
1197
1361
|
/**
|
|
1198
1362
|
* EventHandler callback should not return a promise,
|
|
1199
|
-
* because using `await` may postpone closing a
|
|
1363
|
+
* because using `await` may postpone closing a flow view.
|
|
1200
1364
|
*
|
|
1201
1365
|
* We don't want to block the UI thread.
|
|
1202
1366
|
*/
|
|
@@ -1208,16 +1372,25 @@ type ProductPurchaseParams = Array<{
|
|
|
1208
1372
|
productId: AdaptyProductIdentifier;
|
|
1209
1373
|
params: MakePurchaseParamsInput;
|
|
1210
1374
|
}>;
|
|
1375
|
+
/**
|
|
1376
|
+
* Result of an OS permission request, returned to native by the SDK.
|
|
1377
|
+
*/
|
|
1378
|
+
type FlowPermissionStatus = 'granted' | 'denied';
|
|
1379
|
+
interface FlowPermissionResponse {
|
|
1380
|
+
status: FlowPermissionStatus;
|
|
1381
|
+
/** Optional human-readable detail (e.g. the OS status string). */
|
|
1382
|
+
detail?: string;
|
|
1383
|
+
}
|
|
1211
1384
|
/**
|
|
1212
1385
|
* Hashmap of possible events to their callbacks
|
|
1213
1386
|
*
|
|
1214
1387
|
* @see {@link https://adapty.io/docs/react-native-handling-events-1 | [DOC] Handling View Events}
|
|
1215
1388
|
*/
|
|
1216
|
-
interface
|
|
1389
|
+
interface FlowEventHandlers {
|
|
1217
1390
|
/**
|
|
1218
|
-
* Called when a user taps the close button on the
|
|
1391
|
+
* Called when a user taps the close button on the flow view
|
|
1219
1392
|
*
|
|
1220
|
-
* If you return `true`, the
|
|
1393
|
+
* If you return `true`, the flow view will be closed.
|
|
1221
1394
|
* We strongly recommend to return `true` in this case.
|
|
1222
1395
|
* @default true
|
|
1223
1396
|
*/
|
|
@@ -1225,29 +1398,29 @@ interface EventHandlers {
|
|
|
1225
1398
|
/**
|
|
1226
1399
|
* Called when a user navigates back on Android
|
|
1227
1400
|
*
|
|
1228
|
-
*
|
|
1229
|
-
*
|
|
1230
|
-
* @default
|
|
1401
|
+
* Return `true` to close the flow view.
|
|
1402
|
+
* By default, this handler returns `false`, so the flow view stays open.
|
|
1403
|
+
* @default false
|
|
1231
1404
|
*/
|
|
1232
1405
|
onAndroidSystemBack: () => EventHandlerResult;
|
|
1233
1406
|
/**
|
|
1234
|
-
* Called when a user taps the product in the
|
|
1407
|
+
* Called when a user taps the product in the flow view
|
|
1235
1408
|
*
|
|
1236
|
-
* If you return `true` from this callback, the
|
|
1409
|
+
* If you return `true` from this callback, the flow view will be closed.
|
|
1237
1410
|
*/
|
|
1238
1411
|
onProductSelected: (productId: string) => EventHandlerResult;
|
|
1239
1412
|
/**
|
|
1240
|
-
* Called when a user taps the purchase button in the
|
|
1413
|
+
* Called when a user taps the purchase button in the flow view
|
|
1241
1414
|
*
|
|
1242
|
-
* If you return `true` from this callback, the
|
|
1415
|
+
* If you return `true` from this callback, the flow view will be closed.
|
|
1243
1416
|
*/
|
|
1244
1417
|
onPurchaseStarted: (product: AdaptyPaywallProduct) => EventHandlerResult;
|
|
1245
1418
|
/**
|
|
1246
1419
|
* Called when the purchase succeeds, the user cancels their purchase, or the purchase appears to be pending
|
|
1247
1420
|
*
|
|
1248
|
-
* If you return `true` from this callback, the
|
|
1421
|
+
* If you return `true` from this callback, the flow view will be closed.
|
|
1249
1422
|
* We strongly recommend returning `purchaseResult.type !== 'user_cancelled'` in this case.
|
|
1250
|
-
* @default
|
|
1423
|
+
* @default false
|
|
1251
1424
|
*
|
|
1252
1425
|
* @param {AdaptyPurchaseResult} purchaseResult - object, which provides details about the purchase.
|
|
1253
1426
|
* If the result is `'success'`, it also includes the updated user's profile.
|
|
@@ -1256,38 +1429,37 @@ interface EventHandlers {
|
|
|
1256
1429
|
/**
|
|
1257
1430
|
* Called if a purchase fails after a user taps the purchase button
|
|
1258
1431
|
*
|
|
1259
|
-
* If you return `true` from this callback, the
|
|
1432
|
+
* If you return `true` from this callback, the flow view will be closed.
|
|
1260
1433
|
*
|
|
1261
1434
|
* @param {AdaptyError} error - AdaptyError object with error code and message
|
|
1262
1435
|
*/
|
|
1263
1436
|
onPurchaseFailed: (error: AdaptyError, product: AdaptyPaywallProduct) => EventHandlerResult;
|
|
1264
1437
|
/**
|
|
1265
|
-
* Called when a user taps the restore button in the
|
|
1438
|
+
* Called when a user taps the restore button in the flow view
|
|
1266
1439
|
*
|
|
1267
|
-
* If you return `true` from this callback, the
|
|
1440
|
+
* If you return `true` from this callback, the flow view will be closed.
|
|
1268
1441
|
*/
|
|
1269
1442
|
onRestoreStarted: () => EventHandlerResult;
|
|
1270
1443
|
/**
|
|
1271
|
-
* Called when the
|
|
1444
|
+
* Called when the flow view disappears
|
|
1272
1445
|
*
|
|
1273
|
-
* If you return `true`, the
|
|
1446
|
+
* If you return `true`, the flow view will be closed.
|
|
1274
1447
|
* @default false
|
|
1275
1448
|
*/
|
|
1276
|
-
|
|
1449
|
+
onDisappeared: () => EventHandlerResult;
|
|
1277
1450
|
/**
|
|
1278
|
-
* Called when the
|
|
1451
|
+
* Called when the flow view appears
|
|
1279
1452
|
*
|
|
1280
|
-
* If you return `true`, the
|
|
1453
|
+
* If you return `true`, the flow view will be closed.
|
|
1281
1454
|
* @default false
|
|
1282
1455
|
*/
|
|
1283
|
-
|
|
1456
|
+
onAppeared: () => EventHandlerResult;
|
|
1284
1457
|
onWebPaymentNavigationFinished: (product?: AdaptyPaywallProduct, error?: AdaptyError) => EventHandlerResult;
|
|
1285
1458
|
/**
|
|
1286
|
-
* Called when a
|
|
1459
|
+
* Called when a restore is completed
|
|
1287
1460
|
*
|
|
1288
|
-
* If you return `true` from this callback, the
|
|
1289
|
-
*
|
|
1290
|
-
* @default true
|
|
1461
|
+
* If you return `true` from this callback, the flow view will be closed.
|
|
1462
|
+
* @default false
|
|
1291
1463
|
*
|
|
1292
1464
|
* @param {AdaptyProfile} profile - updated user profile
|
|
1293
1465
|
*/
|
|
@@ -1295,25 +1467,24 @@ interface EventHandlers {
|
|
|
1295
1467
|
/**
|
|
1296
1468
|
* Called if a restore fails after a user taps the restore button
|
|
1297
1469
|
*
|
|
1298
|
-
* If you return `true` from this callback, the
|
|
1470
|
+
* If you return `true` from this callback, the flow view will be closed.
|
|
1299
1471
|
*
|
|
1300
1472
|
* @param {AdaptyError} error - AdaptyError object with error code and message
|
|
1301
1473
|
*/
|
|
1302
1474
|
onRestoreFailed: (error: AdaptyError) => EventHandlerResult;
|
|
1303
1475
|
/**
|
|
1304
|
-
* Called
|
|
1305
|
-
* This should not ever happen, but if it does, feel free to report it to us.
|
|
1476
|
+
* Called when the flow view receives an error (e.g. it fails to render).
|
|
1306
1477
|
*
|
|
1307
|
-
* If you return `true` from this callback, the
|
|
1478
|
+
* If you return `true` from this callback, the flow view will be closed.
|
|
1308
1479
|
*
|
|
1309
1480
|
* @param {AdaptyError} error - AdaptyError object with error code and message
|
|
1310
1481
|
*/
|
|
1311
|
-
|
|
1482
|
+
onError: (error: AdaptyError) => EventHandlerResult;
|
|
1312
1483
|
/**
|
|
1313
1484
|
* Called if a product list fails to load on a presented view,
|
|
1314
1485
|
* for example, if there is no internet connection
|
|
1315
1486
|
*
|
|
1316
|
-
* If you return `true` from this callback, the
|
|
1487
|
+
* If you return `true` from this callback, the flow view will be closed.
|
|
1317
1488
|
*
|
|
1318
1489
|
* @param {AdaptyError} error - AdaptyError object with error code and message
|
|
1319
1490
|
*/
|
|
@@ -1328,6 +1499,85 @@ interface EventHandlers {
|
|
|
1328
1499
|
* `'browser_out_app'` (default) — external browser (e.g. `Linking.openURL`)
|
|
1329
1500
|
*/
|
|
1330
1501
|
onUrlPress: (url: string, openIn: WebPresentation) => EventHandlerResult;
|
|
1502
|
+
/**
|
|
1503
|
+
* Called when the flow view asks the host app to show the native
|
|
1504
|
+
* app review prompt (e.g. `SKStoreReviewController` on iOS,
|
|
1505
|
+
* In-App Review on Android).
|
|
1506
|
+
*
|
|
1507
|
+
* This is a notification: returning `true` would close the view,
|
|
1508
|
+
* but for an app-review prompt you almost always want to keep it open.
|
|
1509
|
+
*/
|
|
1510
|
+
onRequestAppReview: () => EventHandlerResult;
|
|
1511
|
+
/**
|
|
1512
|
+
* Called when the flow view reports an analytics event.
|
|
1513
|
+
*
|
|
1514
|
+
* This is a notification: the return value follows the standard
|
|
1515
|
+
* close-on-`true` contract, but you normally keep the view open.
|
|
1516
|
+
*
|
|
1517
|
+
* @param name - analytics event name
|
|
1518
|
+
* @param params - arbitrary event parameters
|
|
1519
|
+
*/
|
|
1520
|
+
onAnalytics: (name: string, params: Record<string, unknown>) => EventHandlerResult;
|
|
1521
|
+
/**
|
|
1522
|
+
* Called when the flow view asks the host app to request an OS-level
|
|
1523
|
+
* permission (e.g. notifications, ATT). This is the only **asynchronous**
|
|
1524
|
+
* handler: return a `Promise` that resolves with the resulting status.
|
|
1525
|
+
*
|
|
1526
|
+
* If you do not provide a handler, the SDK replies `'denied'`.
|
|
1527
|
+
*
|
|
1528
|
+
* @param permission - permission identifier the flow view requested
|
|
1529
|
+
* @param customArgs - arbitrary string args configured in the dashboard
|
|
1530
|
+
*/
|
|
1531
|
+
onRequestPermission: (permission: AdaptyPermission, customArgs: Record<string, string>) => Promise<FlowPermissionResponse>;
|
|
1532
|
+
/**
|
|
1533
|
+
* Called in **observer mode** when the user taps the purchase button inside
|
|
1534
|
+
* an Adapty-rendered flow view. Adapty does NOT make the purchase —
|
|
1535
|
+
* your app performs it through its own purchase API. Drive the flow view's
|
|
1536
|
+
* loading state with the two provided callbacks:
|
|
1537
|
+
*
|
|
1538
|
+
* - call `onStartPurchase()` right before you begin the purchase (shows the
|
|
1539
|
+
* flow view's loading indicator);
|
|
1540
|
+
* - call `onFinishPurchase()` once it settles, success or failure (hides it).
|
|
1541
|
+
*
|
|
1542
|
+
* The return value follows the standard close-on-`true` contract; you
|
|
1543
|
+
* normally keep the view open (`false`) and dismiss it yourself after the
|
|
1544
|
+
* purchase succeeds.
|
|
1545
|
+
*
|
|
1546
|
+
* @remarks
|
|
1547
|
+
* Fires only when the SDK was activated in observer mode
|
|
1548
|
+
* (`activate(apiKey, { observerMode: true })`). Without it, Adapty handles
|
|
1549
|
+
* purchases itself and this event is never emitted.
|
|
1550
|
+
*
|
|
1551
|
+
* Adapty does not see the purchase you make, so after it succeeds you must
|
|
1552
|
+
* report the transaction to Adapty yourself (e.g. via `reportTransaction`). The
|
|
1553
|
+
* `onStartPurchase`/`onFinishPurchase` callbacks only drive the flow view's
|
|
1554
|
+
* loading UI;
|
|
1555
|
+
*
|
|
1556
|
+
* @param product - product the user initiated the purchase for
|
|
1557
|
+
* @param onStartPurchase - notify the flow view the purchase started
|
|
1558
|
+
* @param onFinishPurchase - notify the flow view the purchase finished
|
|
1559
|
+
*/
|
|
1560
|
+
onObserverPurchaseInitiated: (product: AdaptyPaywallProduct, onStartPurchase: () => void, onFinishPurchase: () => void) => EventHandlerResult;
|
|
1561
|
+
/**
|
|
1562
|
+
* Called in **observer mode** when the user taps the restore button inside an
|
|
1563
|
+
* Adapty-rendered flow view. Adapty does NOT restore — your app
|
|
1564
|
+
* performs it through its own API. Drive the flow view's loading state with the
|
|
1565
|
+
* two provided callbacks (`onStartRestore()` / `onFinishRestore()`).
|
|
1566
|
+
*
|
|
1567
|
+
* @remarks
|
|
1568
|
+
* Fires only when the SDK was activated in observer mode
|
|
1569
|
+
* (`activate(apiKey, { observerMode: true })`). Without it, Adapty handles
|
|
1570
|
+
* restores itself and this event is never emitted.
|
|
1571
|
+
*
|
|
1572
|
+
* Report any transactions surfaced by the restore to Adapty yourself (e.g.
|
|
1573
|
+
* via `reportTransaction`) so they flow into events and analytics. The
|
|
1574
|
+
* `onStartRestore`/`onFinishRestore` callbacks only drive the flow view's
|
|
1575
|
+
* loading UI; they do not report anything.
|
|
1576
|
+
*
|
|
1577
|
+
* @param onStartRestore - notify the flow view the restore started
|
|
1578
|
+
* @param onFinishRestore - notify the flow view the restore finished
|
|
1579
|
+
*/
|
|
1580
|
+
onObserverRestoreInitiated: (onStartRestore: () => void, onFinishRestore: () => void) => EventHandlerResult;
|
|
1331
1581
|
}
|
|
1332
1582
|
interface OnboardingEventHandlers {
|
|
1333
1583
|
onClose: (actionId: string, meta: AdaptyUiOnboardingMeta) => EventHandlerResult;
|
|
@@ -1386,13 +1636,13 @@ type OnboardingStateUpdatedAction = {
|
|
|
1386
1636
|
};
|
|
1387
1637
|
};
|
|
1388
1638
|
/**
|
|
1389
|
-
* Additional options for creating a
|
|
1639
|
+
* Additional options for creating a flow view
|
|
1390
1640
|
*
|
|
1391
|
-
* @see {@link https://docs.adapty.io/docs/paywall-builder-fetching | [DOC] Creating
|
|
1641
|
+
* @see {@link https://docs.adapty.io/docs/paywall-builder-fetching | [DOC] Creating Flow View}
|
|
1392
1642
|
*/
|
|
1393
|
-
interface
|
|
1643
|
+
interface CreateFlowViewParamsInput {
|
|
1394
1644
|
/**
|
|
1395
|
-
* `true` if you want to prefetch products before presenting a
|
|
1645
|
+
* `true` if you want to prefetch products before presenting a flow view.
|
|
1396
1646
|
*/
|
|
1397
1647
|
prefetchProducts?: boolean;
|
|
1398
1648
|
/**
|
|
@@ -1416,6 +1666,16 @@ interface CreatePaywallViewParamsInput {
|
|
|
1416
1666
|
customTimers?: Record<string, Date>;
|
|
1417
1667
|
customAssets?: Record<string, AdaptyCustomAsset>;
|
|
1418
1668
|
productPurchaseParams?: ProductPurchaseParams;
|
|
1669
|
+
android?: {
|
|
1670
|
+
/**
|
|
1671
|
+
* When `true`, the flow view applies safe-area paddings.
|
|
1672
|
+
*
|
|
1673
|
+
* @platform android
|
|
1674
|
+
* @remarks
|
|
1675
|
+
* When omitted, the default is decided by the presenting API you use.
|
|
1676
|
+
*/
|
|
1677
|
+
enableSafeArea?: boolean;
|
|
1678
|
+
};
|
|
1419
1679
|
}
|
|
1420
1680
|
/**
|
|
1421
1681
|
* Additional options for creating an onboarding view
|
|
@@ -1510,7 +1770,7 @@ type AdaptyCustomGradientAsset = {
|
|
|
1510
1770
|
};
|
|
1511
1771
|
};
|
|
1512
1772
|
/**
|
|
1513
|
-
* iOS presentation style for
|
|
1773
|
+
* iOS presentation style for flow and onboarding views
|
|
1514
1774
|
*/
|
|
1515
1775
|
type AdaptyIOSPresentationStyle = 'full_screen' | 'page_sheet';
|
|
1516
1776
|
|
|
@@ -1605,8 +1865,17 @@ type GetPlacementForDefaultAudienceParamsInput = {
|
|
|
1605
1865
|
*/
|
|
1606
1866
|
interface ActivateParamsInput {
|
|
1607
1867
|
/**
|
|
1608
|
-
* Turn it on
|
|
1609
|
-
*
|
|
1868
|
+
* Observer mode. Turn it on when your app handles purchases and subscription
|
|
1869
|
+
* status itself (through your own purchase code or a third-party SDK) and
|
|
1870
|
+
* uses Adapty only for sending subscription events and analytics.
|
|
1871
|
+
*
|
|
1872
|
+
* @remarks
|
|
1873
|
+
* This also enables using Adapty Flow (paywall) views in observer mode: the
|
|
1874
|
+
* paywall is still rendered by Adapty, but when the user taps buy/restore the
|
|
1875
|
+
* SDK does NOT make the purchase — it notifies your app through the
|
|
1876
|
+
* `onObserverPurchaseInitiated` / `onObserverRestoreInitiated` flow event
|
|
1877
|
+
* handlers. Report completed purchases back to Adapty (e.g. via
|
|
1878
|
+
* `reportTransaction`) so they still flow into events and analytics.
|
|
1610
1879
|
*
|
|
1611
1880
|
* @defaultValue `false`
|
|
1612
1881
|
*/
|
|
@@ -1636,12 +1905,6 @@ interface ActivateParamsInput {
|
|
|
1636
1905
|
backendProxyPort?: number;
|
|
1637
1906
|
activateUi?: boolean;
|
|
1638
1907
|
mediaCache?: AdaptyUiMediaCache;
|
|
1639
|
-
/**
|
|
1640
|
-
* Locks methods threads until the SDK is ready.
|
|
1641
|
-
* @defaultValue `false`
|
|
1642
|
-
* @deprecated Turned on by default
|
|
1643
|
-
*/
|
|
1644
|
-
lockMethodsUntilReady?: boolean;
|
|
1645
1908
|
/**
|
|
1646
1909
|
* Does not activate SDK until any other method is called
|
|
1647
1910
|
* Fixes annoying iOS simulator auhtentication
|
|
@@ -1732,66 +1995,12 @@ interface AdaptyAndroidPurchaseParams {
|
|
|
1732
1995
|
*/
|
|
1733
1996
|
isOfferPersonalized?: boolean;
|
|
1734
1997
|
}
|
|
1735
|
-
interface AdaptyAndroidSubscriptionUpdateParameters {
|
|
1736
|
-
oldSubVendorProductId: string;
|
|
1737
|
-
prorationMode: AdaptyAndroidSubscriptionUpdateReplacementMode;
|
|
1738
|
-
/**
|
|
1739
|
-
* @deprecated Use {@link AdaptyAndroidPurchaseParams.isOfferPersonalized} instead.
|
|
1740
|
-
* This field has been moved to the upper level in the new structure.
|
|
1741
|
-
*
|
|
1742
|
-
* @example
|
|
1743
|
-
* // OLD (deprecated):
|
|
1744
|
-
* android: {
|
|
1745
|
-
* oldSubVendorProductId: 'old_product_id',
|
|
1746
|
-
* prorationMode: 'charge_prorated_price',
|
|
1747
|
-
* isOfferPersonalized: true // This field is deprecated
|
|
1748
|
-
* }
|
|
1749
|
-
*
|
|
1750
|
-
* // NEW:
|
|
1751
|
-
* android: {
|
|
1752
|
-
* subscriptionUpdateParams: {
|
|
1753
|
-
* oldSubVendorProductId: 'old_product_id',
|
|
1754
|
-
* prorationMode: 'charge_prorated_price'
|
|
1755
|
-
* },
|
|
1756
|
-
* isOfferPersonalized: true // Moved to upper level
|
|
1757
|
-
* }
|
|
1758
|
-
*/
|
|
1759
|
-
isOfferPersonalized?: boolean;
|
|
1760
|
-
}
|
|
1761
1998
|
type MakePurchaseParamsInput = {
|
|
1762
1999
|
/**
|
|
1763
2000
|
* Android purchase parameters
|
|
1764
2001
|
* @platform android
|
|
1765
2002
|
*/
|
|
1766
2003
|
android?: AdaptyAndroidPurchaseParams;
|
|
1767
|
-
} | {
|
|
1768
|
-
/**
|
|
1769
|
-
* @deprecated Use the new parameter structure instead
|
|
1770
|
-
*
|
|
1771
|
-
* @example
|
|
1772
|
-
* // OLD (deprecated):
|
|
1773
|
-
* makePurchase(product, {
|
|
1774
|
-
* android: {
|
|
1775
|
-
* oldSubVendorProductId: 'old_product_id',
|
|
1776
|
-
* prorationMode: 'charge_prorated_price',
|
|
1777
|
-
* isOfferPersonalized: true
|
|
1778
|
-
* }
|
|
1779
|
-
* });
|
|
1780
|
-
*
|
|
1781
|
-
* // NEW:
|
|
1782
|
-
* makePurchase(product, {
|
|
1783
|
-
* android: {
|
|
1784
|
-
* subscriptionUpdateParams: {
|
|
1785
|
-
* oldSubVendorProductId: 'old_product_id',
|
|
1786
|
-
* prorationMode: 'charge_prorated_price'
|
|
1787
|
-
* },
|
|
1788
|
-
* isOfferPersonalized: true, // Note: moved to upper level
|
|
1789
|
-
* }
|
|
1790
|
-
* });
|
|
1791
|
-
*
|
|
1792
|
-
* @platform android
|
|
1793
|
-
*/
|
|
1794
|
-
android?: AdaptyAndroidSubscriptionUpdateParameters;
|
|
1795
2004
|
};
|
|
1796
2005
|
type FileLocation = {
|
|
1797
2006
|
ios: {
|
|
@@ -1890,20 +2099,21 @@ interface components {
|
|
|
1890
2099
|
}, {
|
|
1891
2100
|
success: true;
|
|
1892
2101
|
}]>;
|
|
1893
|
-
'
|
|
1894
|
-
method: '
|
|
1895
|
-
|
|
2102
|
+
'AdaptyUICreateFlowView.Request': {
|
|
2103
|
+
method: 'adapty_ui_create_flow_view';
|
|
2104
|
+
flow: components['defs']['AdaptyFlow'];
|
|
1896
2105
|
load_timeout?: number;
|
|
1897
2106
|
preload_products?: boolean;
|
|
1898
2107
|
custom_tags?: components['defs']['AdaptyUI.CustomTagsValues'];
|
|
1899
2108
|
custom_timers?: components['defs']['AdaptyUI.CustomTimersValues'];
|
|
1900
2109
|
custom_assets?: components['defs']['AdaptyUI.CustomAssets'];
|
|
1901
2110
|
product_purchase_parameters?: components['defs']['AdaptyUI.ProductPurchaseParameters'];
|
|
2111
|
+
enable_safe_area_paddings?: boolean;
|
|
1902
2112
|
};
|
|
1903
|
-
'
|
|
2113
|
+
'AdaptyUICreateFlowView.Response': OneOf<[{
|
|
1904
2114
|
error: components['defs']['AdaptyError'];
|
|
1905
2115
|
}, {
|
|
1906
|
-
success: components['defs']['AdaptyUI.
|
|
2116
|
+
success: components['defs']['AdaptyUI.FlowView'];
|
|
1907
2117
|
}]>;
|
|
1908
2118
|
'AdaptyUICreateOnboardingView.Request': {
|
|
1909
2119
|
method: 'adapty_ui_create_onboarding_view';
|
|
@@ -1925,12 +2135,12 @@ interface components {
|
|
|
1925
2135
|
}, {
|
|
1926
2136
|
success: true;
|
|
1927
2137
|
}]>;
|
|
1928
|
-
'
|
|
1929
|
-
method: '
|
|
2138
|
+
'AdaptyUIDismissFlowView.Request': {
|
|
2139
|
+
method: 'adapty_ui_dismiss_flow_view';
|
|
1930
2140
|
id: string;
|
|
1931
2141
|
destroy?: boolean;
|
|
1932
2142
|
};
|
|
1933
|
-
'
|
|
2143
|
+
'AdaptyUIDismissFlowView.Response': OneOf<[{
|
|
1934
2144
|
error: components['defs']['AdaptyError'];
|
|
1935
2145
|
}, {
|
|
1936
2146
|
success: true;
|
|
@@ -1945,12 +2155,12 @@ interface components {
|
|
|
1945
2155
|
}, {
|
|
1946
2156
|
success: true;
|
|
1947
2157
|
}]>;
|
|
1948
|
-
'
|
|
1949
|
-
method: '
|
|
2158
|
+
'AdaptyUIPresentFlowView.Request': {
|
|
2159
|
+
method: 'adapty_ui_present_flow_view';
|
|
1950
2160
|
id: string;
|
|
1951
2161
|
ios_presentation_style?: components['defs']['AdaptyUI.IOSPresentationStyle'];
|
|
1952
2162
|
};
|
|
1953
|
-
'
|
|
2163
|
+
'AdaptyUIPresentFlowView.Response': OneOf<[{
|
|
1954
2164
|
error: components['defs']['AdaptyError'];
|
|
1955
2165
|
}, {
|
|
1956
2166
|
success: true;
|
|
@@ -1965,6 +2175,24 @@ interface components {
|
|
|
1965
2175
|
}, {
|
|
1966
2176
|
success: components['defs']['AdaptyUI.DialogActionType'];
|
|
1967
2177
|
}]>;
|
|
2178
|
+
'AdaptyUIOpenUrl.Request': {
|
|
2179
|
+
method: 'adapty_ui_open_url';
|
|
2180
|
+
url: string;
|
|
2181
|
+
open_in?: components['defs']['AdaptyWebPresentation'];
|
|
2182
|
+
};
|
|
2183
|
+
'AdaptyUIOpenUrl.Response': OneOf<[{
|
|
2184
|
+
error: components['defs']['AdaptyError'];
|
|
2185
|
+
}, {
|
|
2186
|
+
success: true;
|
|
2187
|
+
}]>;
|
|
2188
|
+
'AdaptyUIRequestAppReview.Request': {
|
|
2189
|
+
method: 'adapty_ui_request_app_review';
|
|
2190
|
+
};
|
|
2191
|
+
'AdaptyUIRequestAppReview.Response': OneOf<[{
|
|
2192
|
+
error: components['defs']['AdaptyError'];
|
|
2193
|
+
}, {
|
|
2194
|
+
success: true;
|
|
2195
|
+
}]>;
|
|
1968
2196
|
'GetOnboarding.Request': {
|
|
1969
2197
|
method: 'get_onboarding';
|
|
1970
2198
|
placement_id: string;
|
|
@@ -1988,32 +2216,30 @@ interface components {
|
|
|
1988
2216
|
}, {
|
|
1989
2217
|
success: components['defs']['AdaptyOnboarding'];
|
|
1990
2218
|
}]>;
|
|
1991
|
-
'
|
|
1992
|
-
method: '
|
|
2219
|
+
'GetFlow.Request': {
|
|
2220
|
+
method: 'get_flow';
|
|
1993
2221
|
placement_id: string;
|
|
1994
|
-
locale?: components['defs']['AdaptyLocale'];
|
|
1995
2222
|
fetch_policy?: components['defs']['AdaptyPlacementFetchPolicy'];
|
|
1996
2223
|
load_timeout?: number;
|
|
1997
2224
|
};
|
|
1998
|
-
'
|
|
2225
|
+
'GetFlow.Response': OneOf<[{
|
|
1999
2226
|
error: components['defs']['AdaptyError'];
|
|
2000
2227
|
}, {
|
|
2001
|
-
success: components['defs']['
|
|
2228
|
+
success: components['defs']['AdaptyFlow'];
|
|
2002
2229
|
}]>;
|
|
2003
|
-
'
|
|
2004
|
-
method: '
|
|
2230
|
+
'GetFlowForDefaultAudience.Request': {
|
|
2231
|
+
method: 'get_flow_for_default_audience';
|
|
2005
2232
|
placement_id: string;
|
|
2006
|
-
locale?: components['defs']['AdaptyLocale'];
|
|
2007
2233
|
fetch_policy?: components['defs']['AdaptyPlacementFetchPolicy'];
|
|
2008
2234
|
};
|
|
2009
|
-
'
|
|
2235
|
+
'GetFlowForDefaultAudience.Response': OneOf<[{
|
|
2010
2236
|
error: components['defs']['AdaptyError'];
|
|
2011
2237
|
}, {
|
|
2012
|
-
success: components['defs']['
|
|
2238
|
+
success: components['defs']['AdaptyFlow'];
|
|
2013
2239
|
}]>;
|
|
2014
2240
|
'GetPaywallProducts.Request': {
|
|
2015
2241
|
method: 'get_paywall_products';
|
|
2016
|
-
|
|
2242
|
+
flow: components['defs']['AdaptyFlow'];
|
|
2017
2243
|
};
|
|
2018
2244
|
'GetPaywallProducts.Response': OneOf<[{
|
|
2019
2245
|
error: components['defs']['AdaptyError'];
|
|
@@ -2065,11 +2291,11 @@ interface components {
|
|
|
2065
2291
|
}, {
|
|
2066
2292
|
success: true;
|
|
2067
2293
|
}]>;
|
|
2068
|
-
'
|
|
2069
|
-
method: '
|
|
2070
|
-
|
|
2294
|
+
'LogShowFlow.Request': {
|
|
2295
|
+
method: 'log_show_flow';
|
|
2296
|
+
flow: components['defs']['AdaptyFlow'];
|
|
2071
2297
|
};
|
|
2072
|
-
'
|
|
2298
|
+
'LogShowFlow.Response': OneOf<[{
|
|
2073
2299
|
error: components['defs']['AdaptyError'];
|
|
2074
2300
|
}, {
|
|
2075
2301
|
success: true;
|
|
@@ -2090,7 +2316,7 @@ interface components {
|
|
|
2090
2316
|
} & OneOf<[{
|
|
2091
2317
|
product: components['defs']['AdaptyPaywallProduct.Request'];
|
|
2092
2318
|
}, {
|
|
2093
|
-
paywall: components['defs']['
|
|
2319
|
+
paywall: components['defs']['AdaptyFlowPaywall'];
|
|
2094
2320
|
}]>;
|
|
2095
2321
|
'OpenWebPaywall.Response': OneOf<[{
|
|
2096
2322
|
error: components['defs']['AdaptyError'];
|
|
@@ -2102,7 +2328,7 @@ interface components {
|
|
|
2102
2328
|
} & OneOf<[{
|
|
2103
2329
|
product: components['defs']['AdaptyPaywallProduct.Request'];
|
|
2104
2330
|
}, {
|
|
2105
|
-
paywall: components['defs']['
|
|
2331
|
+
paywall: components['defs']['AdaptyFlowPaywall'];
|
|
2106
2332
|
}]>;
|
|
2107
2333
|
'CreateWebPaywallUrl.Response': OneOf<[{
|
|
2108
2334
|
error: components['defs']['AdaptyError'];
|
|
@@ -2207,8 +2433,85 @@ interface components {
|
|
|
2207
2433
|
}, {
|
|
2208
2434
|
success: true;
|
|
2209
2435
|
}]>;
|
|
2436
|
+
'FlowViewDidAnswerPermission.Request': {
|
|
2437
|
+
method: 'flow_view_did_answer_permission';
|
|
2438
|
+
event_id: string;
|
|
2439
|
+
status: 'granted' | 'denied';
|
|
2440
|
+
detail?: string;
|
|
2441
|
+
};
|
|
2442
|
+
'FlowViewDidAnswerPermission.Response': OneOf<[{
|
|
2443
|
+
error: components['defs']['AdaptyError'];
|
|
2444
|
+
}, {
|
|
2445
|
+
success: true;
|
|
2446
|
+
}]>;
|
|
2447
|
+
'ObserverPurchaseDidStart.Request': {
|
|
2448
|
+
method: 'observer_purchase_did_start';
|
|
2449
|
+
event_id: string;
|
|
2450
|
+
};
|
|
2451
|
+
'ObserverPurchaseDidStart.Response': OneOf<[{
|
|
2452
|
+
error: components['defs']['AdaptyError'];
|
|
2453
|
+
}, {
|
|
2454
|
+
success: true;
|
|
2455
|
+
}]>;
|
|
2456
|
+
'ObserverPurchaseDidFinish.Request': {
|
|
2457
|
+
method: 'observer_purchase_did_finish';
|
|
2458
|
+
event_id: string;
|
|
2459
|
+
};
|
|
2460
|
+
'ObserverPurchaseDidFinish.Response': OneOf<[{
|
|
2461
|
+
error: components['defs']['AdaptyError'];
|
|
2462
|
+
}, {
|
|
2463
|
+
success: true;
|
|
2464
|
+
}]>;
|
|
2465
|
+
'ObserverRestoreDidStart.Request': {
|
|
2466
|
+
method: 'observer_restore_did_start';
|
|
2467
|
+
event_id: string;
|
|
2468
|
+
};
|
|
2469
|
+
'ObserverRestoreDidStart.Response': OneOf<[{
|
|
2470
|
+
error: components['defs']['AdaptyError'];
|
|
2471
|
+
}, {
|
|
2472
|
+
success: true;
|
|
2473
|
+
}]>;
|
|
2474
|
+
'ObserverRestoreDidFinish.Request': {
|
|
2475
|
+
method: 'observer_restore_did_finish';
|
|
2476
|
+
event_id: string;
|
|
2477
|
+
};
|
|
2478
|
+
'ObserverRestoreDidFinish.Response': OneOf<[{
|
|
2479
|
+
error: components['defs']['AdaptyError'];
|
|
2480
|
+
}, {
|
|
2481
|
+
success: true;
|
|
2482
|
+
}]>;
|
|
2210
2483
|
};
|
|
2211
2484
|
events: {
|
|
2485
|
+
'FlowViewEvent.DidAskPermission': {
|
|
2486
|
+
id: 'flow_view_did_ask_permission';
|
|
2487
|
+
view: components['defs']['AdaptyUI.FlowView'];
|
|
2488
|
+
event_id: string;
|
|
2489
|
+
permission: components['defs']['AdaptyUI.Permission'];
|
|
2490
|
+
custom_args?: {
|
|
2491
|
+
[key: string]: string;
|
|
2492
|
+
};
|
|
2493
|
+
};
|
|
2494
|
+
'FlowViewEvent.DidRequestAppReview': {
|
|
2495
|
+
id: 'flow_view_did_request_app_review';
|
|
2496
|
+
view: components['defs']['AdaptyUI.FlowView'];
|
|
2497
|
+
};
|
|
2498
|
+
'FlowViewEvent.ObserverDidInitiatePurchase': {
|
|
2499
|
+
id: 'flow_view_observer_did_initiate_purchase';
|
|
2500
|
+
view: components['defs']['AdaptyUI.FlowView'];
|
|
2501
|
+
event_id: string;
|
|
2502
|
+
product: components['defs']['AdaptyPaywallProduct.Response'];
|
|
2503
|
+
};
|
|
2504
|
+
'FlowViewEvent.ObserverDidInitiateRestore': {
|
|
2505
|
+
id: 'flow_view_observer_did_initiate_restore';
|
|
2506
|
+
view: components['defs']['AdaptyUI.FlowView'];
|
|
2507
|
+
event_id: string;
|
|
2508
|
+
};
|
|
2509
|
+
'FlowViewEvent.DidReceiveAnalyticEvent': {
|
|
2510
|
+
id: 'flow_view_did_receive_analytic_event';
|
|
2511
|
+
view: components['defs']['AdaptyUI.FlowView'];
|
|
2512
|
+
name: string;
|
|
2513
|
+
params: Record<string, unknown>;
|
|
2514
|
+
};
|
|
2212
2515
|
'Event.DidLoadLatestProfile': {
|
|
2213
2516
|
id: 'did_load_latest_profile';
|
|
2214
2517
|
profile: components['defs']['AdaptyProfile'];
|
|
@@ -2221,68 +2524,68 @@ interface components {
|
|
|
2221
2524
|
id: 'on_installation_details_fail';
|
|
2222
2525
|
error: components['defs']['AdaptyError'];
|
|
2223
2526
|
};
|
|
2224
|
-
'
|
|
2225
|
-
id: '
|
|
2226
|
-
view: components['defs']['AdaptyUI.
|
|
2527
|
+
'FlowViewEvent.DidAppear': {
|
|
2528
|
+
id: 'flow_view_did_appear';
|
|
2529
|
+
view: components['defs']['AdaptyUI.FlowView'];
|
|
2227
2530
|
};
|
|
2228
|
-
'
|
|
2229
|
-
id: '
|
|
2230
|
-
view: components['defs']['AdaptyUI.
|
|
2531
|
+
'FlowViewEvent.DidDisappear': {
|
|
2532
|
+
id: 'flow_view_did_disappear';
|
|
2533
|
+
view: components['defs']['AdaptyUI.FlowView'];
|
|
2231
2534
|
};
|
|
2232
|
-
'
|
|
2233
|
-
id: '
|
|
2234
|
-
view: components['defs']['AdaptyUI.
|
|
2535
|
+
'FlowViewEvent.DidUserAction': {
|
|
2536
|
+
id: 'flow_view_did_perform_action';
|
|
2537
|
+
view: components['defs']['AdaptyUI.FlowView'];
|
|
2235
2538
|
action: components['defs']['AdaptyUI.UserAction'];
|
|
2236
2539
|
};
|
|
2237
|
-
'
|
|
2238
|
-
id: '
|
|
2239
|
-
view: components['defs']['AdaptyUI.
|
|
2540
|
+
'FlowViewEvent.DidSelectProduct': {
|
|
2541
|
+
id: 'flow_view_did_select_product';
|
|
2542
|
+
view: components['defs']['AdaptyUI.FlowView'];
|
|
2240
2543
|
product_id: string;
|
|
2241
2544
|
};
|
|
2242
|
-
'
|
|
2243
|
-
id: '
|
|
2244
|
-
view: components['defs']['AdaptyUI.
|
|
2545
|
+
'FlowViewEvent.WillPurchase': {
|
|
2546
|
+
id: 'flow_view_did_start_purchase';
|
|
2547
|
+
view: components['defs']['AdaptyUI.FlowView'];
|
|
2245
2548
|
product: components['defs']['AdaptyPaywallProduct.Response'];
|
|
2246
2549
|
};
|
|
2247
|
-
'
|
|
2248
|
-
id: '
|
|
2249
|
-
view: components['defs']['AdaptyUI.
|
|
2550
|
+
'FlowViewEvent.DidPurchase': {
|
|
2551
|
+
id: 'flow_view_did_finish_purchase';
|
|
2552
|
+
view: components['defs']['AdaptyUI.FlowView'];
|
|
2250
2553
|
product: components['defs']['AdaptyPaywallProduct.Response'];
|
|
2251
2554
|
purchased_result: components['defs']['AdaptyPurchaseResult'];
|
|
2252
2555
|
};
|
|
2253
|
-
'
|
|
2254
|
-
id: '
|
|
2255
|
-
view: components['defs']['AdaptyUI.
|
|
2556
|
+
'FlowViewEvent.DidFailPurchase': {
|
|
2557
|
+
id: 'flow_view_did_fail_purchase';
|
|
2558
|
+
view: components['defs']['AdaptyUI.FlowView'];
|
|
2256
2559
|
product: components['defs']['AdaptyPaywallProduct.Response'];
|
|
2257
2560
|
error: components['defs']['AdaptyError'];
|
|
2258
2561
|
};
|
|
2259
|
-
'
|
|
2260
|
-
id: '
|
|
2261
|
-
view: components['defs']['AdaptyUI.
|
|
2562
|
+
'FlowViewEvent.WillRestorePurchase': {
|
|
2563
|
+
id: 'flow_view_did_start_restore';
|
|
2564
|
+
view: components['defs']['AdaptyUI.FlowView'];
|
|
2262
2565
|
};
|
|
2263
|
-
'
|
|
2264
|
-
id: '
|
|
2265
|
-
view: components['defs']['AdaptyUI.
|
|
2566
|
+
'FlowViewEvent.DidRestorePurchase': {
|
|
2567
|
+
id: 'flow_view_did_finish_restore';
|
|
2568
|
+
view: components['defs']['AdaptyUI.FlowView'];
|
|
2266
2569
|
profile: components['defs']['AdaptyProfile'];
|
|
2267
2570
|
};
|
|
2268
|
-
'
|
|
2269
|
-
id: '
|
|
2270
|
-
view: components['defs']['AdaptyUI.
|
|
2571
|
+
'FlowViewEvent.DidFailRestorePurchase': {
|
|
2572
|
+
id: 'flow_view_did_fail_restore';
|
|
2573
|
+
view: components['defs']['AdaptyUI.FlowView'];
|
|
2271
2574
|
error: components['defs']['AdaptyError'];
|
|
2272
2575
|
};
|
|
2273
|
-
'
|
|
2274
|
-
id: '
|
|
2275
|
-
view: components['defs']['AdaptyUI.
|
|
2576
|
+
'FlowViewEvent.DidReceiveError': {
|
|
2577
|
+
id: 'flow_view_did_receive_error';
|
|
2578
|
+
view: components['defs']['AdaptyUI.FlowView'];
|
|
2276
2579
|
error: components['defs']['AdaptyError'];
|
|
2277
2580
|
};
|
|
2278
|
-
'
|
|
2279
|
-
id: '
|
|
2280
|
-
view: components['defs']['AdaptyUI.
|
|
2581
|
+
'FlowViewEvent.DidFailLoadingProducts': {
|
|
2582
|
+
id: 'flow_view_did_fail_loading_products';
|
|
2583
|
+
view: components['defs']['AdaptyUI.FlowView'];
|
|
2281
2584
|
error: components['defs']['AdaptyError'];
|
|
2282
2585
|
};
|
|
2283
|
-
'
|
|
2284
|
-
id: '
|
|
2285
|
-
view: components['defs']['AdaptyUI.
|
|
2586
|
+
'FlowViewEvent.DidFinishWebPaymentNavigation': {
|
|
2587
|
+
id: 'flow_view_did_finish_web_payment_navigation';
|
|
2588
|
+
view: components['defs']['AdaptyUI.FlowView'];
|
|
2286
2589
|
product?: components['defs']['AdaptyPaywallProduct.Response'];
|
|
2287
2590
|
error?: components['defs']['AdaptyError'];
|
|
2288
2591
|
};
|
|
@@ -2397,6 +2700,7 @@ interface components {
|
|
|
2397
2700
|
};
|
|
2398
2701
|
'AdaptyPaywallProduct.Response': {
|
|
2399
2702
|
vendor_product_id: string;
|
|
2703
|
+
flow_product_id?: string;
|
|
2400
2704
|
adapty_product_id: string;
|
|
2401
2705
|
access_level_id: string;
|
|
2402
2706
|
product_type: string;
|
|
@@ -2466,18 +2770,24 @@ interface components {
|
|
|
2466
2770
|
response_created_at: number;
|
|
2467
2771
|
request_locale: components['defs']['AdaptyLocale'];
|
|
2468
2772
|
};
|
|
2469
|
-
|
|
2773
|
+
AdaptyFlow: {
|
|
2774
|
+
placement: components['defs']['AdaptyPlacement'];
|
|
2775
|
+
flow_id: string;
|
|
2776
|
+
flow_name: string;
|
|
2777
|
+
variation_id: string;
|
|
2778
|
+
remote_configs?: components['defs']['AdaptyRemoteConfig'][];
|
|
2779
|
+
flow_version_id?: string;
|
|
2780
|
+
variations: components['defs']['AdaptyFlowPaywall'][];
|
|
2781
|
+
payload_data?: string;
|
|
2782
|
+
response_created_at: number;
|
|
2783
|
+
};
|
|
2784
|
+
AdaptyFlowPaywall: {
|
|
2470
2785
|
placement: components['defs']['AdaptyPlacement'];
|
|
2471
2786
|
paywall_id: string;
|
|
2472
2787
|
paywall_name: string;
|
|
2473
2788
|
variation_id: string;
|
|
2474
|
-
|
|
2475
|
-
paywall_builder?: components['defs']['AdaptyPaywall.ViewConfiguration'];
|
|
2476
|
-
products: components['defs']['AdaptyPaywall.ProductReference'][];
|
|
2789
|
+
products: components['defs']['AdaptyFlowPaywall.ProductReference'][];
|
|
2477
2790
|
web_purchase_url?: string;
|
|
2478
|
-
payload_data?: string;
|
|
2479
|
-
response_created_at: number;
|
|
2480
|
-
request_locale: components['defs']['AdaptyLocale'];
|
|
2481
2791
|
};
|
|
2482
2792
|
AdaptyPlacement: {
|
|
2483
2793
|
developer_id: string;
|
|
@@ -2497,7 +2807,8 @@ interface components {
|
|
|
2497
2807
|
lang: components['defs']['AdaptyLocale'];
|
|
2498
2808
|
data: string;
|
|
2499
2809
|
};
|
|
2500
|
-
'
|
|
2810
|
+
'AdaptyFlowPaywall.ProductReference': {
|
|
2811
|
+
flow_product_id?: string;
|
|
2501
2812
|
vendor_product_id: string;
|
|
2502
2813
|
adapty_product_id: string;
|
|
2503
2814
|
access_level_id: string;
|
|
@@ -2507,11 +2818,6 @@ interface components {
|
|
|
2507
2818
|
base_plan_id?: string;
|
|
2508
2819
|
offer_id?: string;
|
|
2509
2820
|
};
|
|
2510
|
-
'AdaptyPaywall.ViewConfiguration': {
|
|
2511
|
-
paywall_builder_id: string;
|
|
2512
|
-
lang: components['defs']['AdaptyLocale'];
|
|
2513
|
-
json?: string;
|
|
2514
|
-
};
|
|
2515
2821
|
AdaptySubscriptionPeriod: {
|
|
2516
2822
|
unit: components['defs']['AdaptySubscriptionPeriod.Unit'];
|
|
2517
2823
|
number_of_units: number;
|
|
@@ -2533,6 +2839,7 @@ interface components {
|
|
|
2533
2839
|
};
|
|
2534
2840
|
timestamp: number;
|
|
2535
2841
|
is_test_user: boolean;
|
|
2842
|
+
applied_attribution_sources?: string[];
|
|
2536
2843
|
};
|
|
2537
2844
|
'AdaptyProfile.AccessLevel': {
|
|
2538
2845
|
id: string;
|
|
@@ -2609,6 +2916,9 @@ interface components {
|
|
|
2609
2916
|
}, {
|
|
2610
2917
|
id: string;
|
|
2611
2918
|
type: 'promotional' | 'win_back';
|
|
2919
|
+
}, {
|
|
2920
|
+
id?: string;
|
|
2921
|
+
type: 'code';
|
|
2612
2922
|
}]>;
|
|
2613
2923
|
'AdaptySubscriptionOffer.PaymentMode': 'pay_as_you_go' | 'pay_up_front' | 'free_trial' | 'unknown';
|
|
2614
2924
|
AdaptyPurchaseResult: OneOf<[{
|
|
@@ -2632,7 +2942,7 @@ interface components {
|
|
|
2632
2942
|
payload?: string;
|
|
2633
2943
|
};
|
|
2634
2944
|
'AdaptyUI.CustomAssets': (components['assets']['Color'] | components['assets']['ColorGradient'] | components['assets']['Image'] | components['assets']['Video'])[];
|
|
2635
|
-
'AdaptyUI.
|
|
2945
|
+
'AdaptyUI.FlowView': {
|
|
2636
2946
|
id: string;
|
|
2637
2947
|
placement_id: string;
|
|
2638
2948
|
variation_id: string;
|
|
@@ -2652,15 +2962,13 @@ interface components {
|
|
|
2652
2962
|
type: 'custom';
|
|
2653
2963
|
value: string;
|
|
2654
2964
|
}]>;
|
|
2965
|
+
'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;
|
|
2655
2966
|
'AdaptyUI.CustomTagsValues': {
|
|
2656
2967
|
[key: string]: string;
|
|
2657
2968
|
};
|
|
2658
2969
|
'AdaptyUI.CustomTimersValues': {
|
|
2659
2970
|
[key: string]: components['defs']['Date'];
|
|
2660
2971
|
};
|
|
2661
|
-
'AdaptyUI.AndroidPersonalizedOffers': {
|
|
2662
|
-
[key: string]: boolean;
|
|
2663
|
-
};
|
|
2664
2972
|
'AdaptyUI.ProductPurchaseParameters': {
|
|
2665
2973
|
[key: string]: components['defs']['AdaptyPurchaseParameters'];
|
|
2666
2974
|
};
|
|
@@ -2728,6 +3036,8 @@ interface components {
|
|
|
2728
3036
|
Video: {
|
|
2729
3037
|
id: string;
|
|
2730
3038
|
type: 'video';
|
|
3039
|
+
h_res?: number;
|
|
3040
|
+
v_res?: number;
|
|
2731
3041
|
} & OneOf<[{
|
|
2732
3042
|
asset_id: string;
|
|
2733
3043
|
}, {
|
|
@@ -2805,10 +3115,31 @@ declare class AdaptyDiscountPhaseCoder extends SimpleCoder<Model$30, Serializabl
|
|
|
2805
3115
|
protected properties: Properties<Model$30, Serializable$31>;
|
|
2806
3116
|
}
|
|
2807
3117
|
|
|
3118
|
+
//#endregion
|
|
3119
|
+
//#region src/coders/adapty-flow-paywall.d.ts
|
|
3120
|
+
type Model$29 = AdaptyFlowPaywall;
|
|
3121
|
+
type CodableModel$3 = Omit<Model$29, 'productIdentifiers'> & {
|
|
3122
|
+
products?: ProductReference[];
|
|
3123
|
+
};
|
|
3124
|
+
type Serializable$30 = Def['AdaptyFlowPaywall'];
|
|
3125
|
+
declare class AdaptyFlowPaywallCoder extends Coder<Model$29, CodableModel$3, Serializable$30> {
|
|
3126
|
+
protected properties: Properties<CodableModel$3, Serializable$30>;
|
|
3127
|
+
decode(data: Serializable$30): Model$29;
|
|
3128
|
+
encode(data: Model$29): Serializable$30;
|
|
3129
|
+
}
|
|
3130
|
+
|
|
3131
|
+
//#endregion
|
|
3132
|
+
//#region src/coders/adapty-flow.d.ts
|
|
3133
|
+
type Model$28 = AdaptyFlow;
|
|
3134
|
+
type Serializable$29 = Def['AdaptyFlow'];
|
|
3135
|
+
declare class AdaptyFlowCoder extends SimpleCoder<Model$28, Serializable$29> {
|
|
3136
|
+
protected properties: Properties<Model$28, Serializable$29>;
|
|
3137
|
+
}
|
|
3138
|
+
|
|
2808
3139
|
//#endregion
|
|
2809
3140
|
//#region src/coders/adapty-identify-params.d.ts
|
|
2810
|
-
type Model$
|
|
2811
|
-
type Serializable$
|
|
3141
|
+
type Model$27 = IdentifyParamsInput;
|
|
3142
|
+
type Serializable$28 = {
|
|
2812
3143
|
app_account_token?: string;
|
|
2813
3144
|
obfuscated_account_id?: string;
|
|
2814
3145
|
obfuscated_profile_id?: string;
|
|
@@ -2816,7 +3147,7 @@ type Serializable$30 = {
|
|
|
2816
3147
|
declare class AdaptyIdentifyParamsCoder {
|
|
2817
3148
|
private readonly platform;
|
|
2818
3149
|
constructor(platform: IPlatformAdapter);
|
|
2819
|
-
encode(params?: Model$
|
|
3150
|
+
encode(params?: Model$27): Serializable$28 | undefined;
|
|
2820
3151
|
}
|
|
2821
3152
|
|
|
2822
3153
|
//#endregion
|
|
@@ -2843,7 +3174,7 @@ declare class AdaptyInstallationStatusCoder implements Converter<AdaptyInstallat
|
|
|
2843
3174
|
* - iOS RNAConstants.MethodName
|
|
2844
3175
|
* @internal
|
|
2845
3176
|
*/
|
|
2846
|
-
declare const MethodNames: readonly ["activate", "adapty_ui_activate", "
|
|
3177
|
+
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", "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"];
|
|
2847
3178
|
type MethodName = (typeof MethodNames)[number];
|
|
2848
3179
|
/**
|
|
2849
3180
|
* Types of values that can be passed
|
|
@@ -2885,67 +3216,48 @@ interface ErrorConverter<Model extends Record<string, any>> extends Converter<Mo
|
|
|
2885
3216
|
//#endregion
|
|
2886
3217
|
//#region src/coders/adapty-native-error.d.ts
|
|
2887
3218
|
//# sourceMappingURL=error-coder.d.ts.map
|
|
2888
|
-
type Model$
|
|
2889
|
-
type Serializable$
|
|
2890
|
-
declare class AdaptyNativeErrorCoder extends SimpleCoder<Model$
|
|
3219
|
+
type Model$26 = AdaptyNativeError;
|
|
3220
|
+
type Serializable$27 = Def['AdaptyError'];
|
|
3221
|
+
declare class AdaptyNativeErrorCoder extends SimpleCoder<Model$26, Serializable$27> implements ErrorConverter<Model$26> {
|
|
2891
3222
|
type: 'error';
|
|
2892
|
-
protected properties: Properties<Model$
|
|
2893
|
-
getError(data: Model$
|
|
3223
|
+
protected properties: Properties<Model$26, Serializable$27>;
|
|
3224
|
+
getError(data: Model$26): AdaptyError;
|
|
2894
3225
|
}
|
|
2895
3226
|
|
|
2896
3227
|
//#endregion
|
|
2897
3228
|
//#region src/coders/adapty-non-subscription.d.ts
|
|
2898
|
-
type Model$
|
|
2899
|
-
type Serializable$
|
|
2900
|
-
declare class AdaptyNonSubscriptionCoder extends SimpleCoder<Model$
|
|
2901
|
-
protected properties: Properties<Model$
|
|
3229
|
+
type Model$25 = AdaptyNonSubscription;
|
|
3230
|
+
type Serializable$26 = Def['AdaptyProfile.NonSubscription'];
|
|
3231
|
+
declare class AdaptyNonSubscriptionCoder extends SimpleCoder<Model$25, Serializable$26> {
|
|
3232
|
+
protected properties: Properties<Model$25, Serializable$26>;
|
|
2902
3233
|
}
|
|
2903
3234
|
|
|
2904
3235
|
//#endregion
|
|
2905
3236
|
//#region src/coders/adapty-onboarding-builder.d.ts
|
|
2906
|
-
type Model$
|
|
2907
|
-
type Serializable$
|
|
2908
|
-
declare class AdaptyOnboardingBuilderCoder extends SimpleCoder<Model$
|
|
2909
|
-
protected properties: Properties<Model$
|
|
3237
|
+
type Model$24 = AdaptyOnboardingBuilder;
|
|
3238
|
+
type Serializable$25 = Required<Def['AdaptyOnboarding']>['onboarding_builder'];
|
|
3239
|
+
declare class AdaptyOnboardingBuilderCoder extends SimpleCoder<Model$24, Serializable$25> {
|
|
3240
|
+
protected properties: Properties<Model$24, Serializable$25>;
|
|
2910
3241
|
}
|
|
2911
3242
|
|
|
2912
3243
|
//#endregion
|
|
2913
3244
|
//#region src/coders/adapty-onboarding.d.ts
|
|
2914
|
-
type Model$
|
|
2915
|
-
type CodableModel$
|
|
2916
|
-
type Serializable$
|
|
2917
|
-
declare class AdaptyOnboardingCoder extends Coder<Model$
|
|
2918
|
-
protected properties: Properties<CodableModel$
|
|
2919
|
-
decode(data: Serializable$
|
|
2920
|
-
encode(data: Model$
|
|
2921
|
-
}
|
|
2922
|
-
|
|
2923
|
-
//#endregion
|
|
2924
|
-
//#region src/coders/adapty-paywall-builder.d.ts
|
|
2925
|
-
type Model$24 = AdaptyPaywallBuilder;
|
|
2926
|
-
type Serializable$25 = Required<Def['AdaptyPaywall']>['paywall_builder'];
|
|
2927
|
-
declare class AdaptyPaywallBuilderCoder extends SimpleCoder<Model$24, Serializable$25> {
|
|
2928
|
-
protected properties: Properties<Model$24, Serializable$25>;
|
|
3245
|
+
type Model$23 = AdaptyOnboarding;
|
|
3246
|
+
type CodableModel$2 = Omit<Model$23, 'hasViewConfiguration'>;
|
|
3247
|
+
type Serializable$24 = Def['AdaptyOnboarding'];
|
|
3248
|
+
declare class AdaptyOnboardingCoder extends Coder<Model$23, CodableModel$2, Serializable$24> {
|
|
3249
|
+
protected properties: Properties<CodableModel$2, Serializable$24>;
|
|
3250
|
+
decode(data: Serializable$24): Model$23;
|
|
3251
|
+
encode(data: Model$23): Serializable$24;
|
|
2929
3252
|
}
|
|
2930
3253
|
|
|
2931
3254
|
//#endregion
|
|
2932
3255
|
//#region src/coders/adapty-paywall-product.d.ts
|
|
2933
|
-
type Model$
|
|
2934
|
-
type Serializable$
|
|
2935
|
-
declare class AdaptyPaywallProductCoder extends SimpleCoder<Model$
|
|
2936
|
-
protected properties: Properties<Model$
|
|
2937
|
-
getInput(data: Serializable$
|
|
2938
|
-
}
|
|
2939
|
-
|
|
2940
|
-
//#endregion
|
|
2941
|
-
//#region src/coders/adapty-paywall.d.ts
|
|
2942
|
-
type Model$22 = AdaptyPaywall;
|
|
2943
|
-
type CodableModel$2 = Omit<Model$22, 'hasViewConfiguration' | 'productIdentifiers'>;
|
|
2944
|
-
type Serializable$23 = Def['AdaptyPaywall'];
|
|
2945
|
-
declare class AdaptyPaywallCoder extends Coder<Model$22, CodableModel$2, Serializable$23> {
|
|
2946
|
-
protected properties: Properties<CodableModel$2, Serializable$23>;
|
|
2947
|
-
decode(data: Serializable$23): Model$22;
|
|
2948
|
-
encode(data: Model$22): Serializable$23;
|
|
3256
|
+
type Model$22 = AdaptyPaywallProduct;
|
|
3257
|
+
type Serializable$23 = Def['AdaptyPaywallProduct.Response'];
|
|
3258
|
+
declare class AdaptyPaywallProductCoder extends SimpleCoder<Model$22, Serializable$23> {
|
|
3259
|
+
protected properties: Properties<Model$22, Serializable$23>;
|
|
3260
|
+
getInput(data: Serializable$23): Def['AdaptyPaywallProduct.Request'];
|
|
2949
3261
|
}
|
|
2950
3262
|
|
|
2951
3263
|
//#endregion
|
|
@@ -3004,7 +3316,7 @@ declare class AdaptyPurchaseResultCoder extends SimpleCoder<Model$16, Serializab
|
|
|
3004
3316
|
//#region src/coders/adapty-remote-config.d.ts
|
|
3005
3317
|
type Model$15 = AdaptyRemoteConfig;
|
|
3006
3318
|
type CodableModel$1 = Omit<Model$15, 'dataString'>;
|
|
3007
|
-
type Serializable$16 =
|
|
3319
|
+
type Serializable$16 = Def['AdaptyRemoteConfig'];
|
|
3008
3320
|
declare class AdaptyRemoteConfigCoder extends Coder<Model$15, CodableModel$1, Serializable$16> {
|
|
3009
3321
|
protected properties: Properties<CodableModel$1, Serializable$16>;
|
|
3010
3322
|
decode(data: Serializable$16): Model$15;
|
|
@@ -3069,8 +3381,8 @@ declare class AdaptyUICreateOnboardingViewParamsCoder {
|
|
|
3069
3381
|
}
|
|
3070
3382
|
|
|
3071
3383
|
//#endregion
|
|
3072
|
-
//#region src/coders/adapty-ui-create-
|
|
3073
|
-
type Model$8 =
|
|
3384
|
+
//#region src/coders/adapty-ui-create-flow-view-params.d.ts
|
|
3385
|
+
type Model$8 = CreateFlowViewParamsInput;
|
|
3074
3386
|
type Serializable$8 = {
|
|
3075
3387
|
preload_products?: boolean;
|
|
3076
3388
|
load_timeout?: number;
|
|
@@ -3078,8 +3390,9 @@ type Serializable$8 = {
|
|
|
3078
3390
|
custom_timers?: Def['AdaptyUI.CustomTimersValues'];
|
|
3079
3391
|
custom_assets?: Def['AdaptyUI.CustomAssets'];
|
|
3080
3392
|
product_purchase_parameters?: Def['AdaptyUI.ProductPurchaseParameters'];
|
|
3393
|
+
enable_safe_area_paddings?: boolean;
|
|
3081
3394
|
};
|
|
3082
|
-
declare class
|
|
3395
|
+
declare class AdaptyUICreateFlowViewParamsCoder {
|
|
3083
3396
|
private readonly platform;
|
|
3084
3397
|
constructor(platform: IPlatformAdapter);
|
|
3085
3398
|
encode(data: Model$8): Serializable$8;
|
|
@@ -3178,7 +3491,7 @@ declare class JSONCoder implements Converter<Model$2, Serialized$1> {
|
|
|
3178
3491
|
//#endregion
|
|
3179
3492
|
//#region src/coders/product-reference.d.ts
|
|
3180
3493
|
type Model$1 = ProductReference;
|
|
3181
|
-
type Serializable$2 = Def['
|
|
3494
|
+
type Serializable$2 = Def['AdaptyFlowPaywall.ProductReference'];
|
|
3182
3495
|
declare class ProductReferenceCoder extends SimpleCoder<Model$1, Serializable$2> {
|
|
3183
3496
|
protected properties: Properties<Model$1, Serializable$2>;
|
|
3184
3497
|
}
|
|
@@ -3213,8 +3526,8 @@ declare class CoderFactory {
|
|
|
3213
3526
|
createNonSubscriptionCoder(): AdaptyNonSubscriptionCoder;
|
|
3214
3527
|
createOnboardingBuilderCoder(): AdaptyOnboardingBuilderCoder;
|
|
3215
3528
|
createOnboardingCoder(): AdaptyOnboardingCoder;
|
|
3216
|
-
|
|
3217
|
-
|
|
3529
|
+
createFlowCoder(): AdaptyFlowCoder;
|
|
3530
|
+
createFlowPaywallCoder(): AdaptyFlowPaywallCoder;
|
|
3218
3531
|
createPaywallProductCoder(): AdaptyPaywallProductCoder;
|
|
3219
3532
|
createPlacementCoder(): AdaptyPlacementCoder;
|
|
3220
3533
|
createPriceCoder(): AdaptyPriceCoder;
|
|
@@ -3228,7 +3541,7 @@ declare class CoderFactory {
|
|
|
3228
3541
|
createSubscriptionOfferIdCoder(): AdaptySubscriptionOfferIdCoder;
|
|
3229
3542
|
createSubscriptionPeriodCoder(): AdaptySubscriptionPeriodCoder;
|
|
3230
3543
|
createUiCreateOnboardingViewParamsCoder(): AdaptyUICreateOnboardingViewParamsCoder;
|
|
3231
|
-
|
|
3544
|
+
createUiCreateFlowViewParamsCoder(): AdaptyUICreateFlowViewParamsCoder;
|
|
3232
3545
|
createUiDialogConfigCoder(): AdaptyUiDialogConfigCoder;
|
|
3233
3546
|
createUiMediaCacheCoder(): AdaptyUiMediaCacheCoder;
|
|
3234
3547
|
createUiOnboardingMetaCoder(): AdaptyUiOnboardingMetaCoder;
|
|
@@ -3240,102 +3553,9 @@ declare class CoderFactory {
|
|
|
3240
3553
|
createHashmapCoder<T extends Converter<any, any>>(coder: T | null): HashmapCoder<T>;
|
|
3241
3554
|
}
|
|
3242
3555
|
|
|
3243
|
-
//#endregion
|
|
3244
|
-
//#region src/types/paywall-events.d.ts
|
|
3245
|
-
//# sourceMappingURL=factory.d.ts.map
|
|
3246
|
-
declare const PaywallEventId: {
|
|
3247
|
-
readonly DidAppear: "paywall_view_did_appear";
|
|
3248
|
-
readonly DidDisappear: "paywall_view_did_disappear";
|
|
3249
|
-
readonly DidPerformAction: "paywall_view_did_perform_action";
|
|
3250
|
-
readonly DidSelectProduct: "paywall_view_did_select_product";
|
|
3251
|
-
readonly DidStartPurchase: "paywall_view_did_start_purchase";
|
|
3252
|
-
readonly DidFinishPurchase: "paywall_view_did_finish_purchase";
|
|
3253
|
-
readonly DidFailPurchase: "paywall_view_did_fail_purchase";
|
|
3254
|
-
readonly DidStartRestore: "paywall_view_did_start_restore";
|
|
3255
|
-
readonly DidFinishRestore: "paywall_view_did_finish_restore";
|
|
3256
|
-
readonly DidFailRestore: "paywall_view_did_fail_restore";
|
|
3257
|
-
readonly DidFailRendering: "paywall_view_did_fail_rendering";
|
|
3258
|
-
readonly DidFailLoadingProducts: "paywall_view_did_fail_loading_products";
|
|
3259
|
-
readonly DidFinishWebPaymentNavigation: "paywall_view_did_finish_web_payment_navigation";
|
|
3260
|
-
};
|
|
3261
|
-
type PaywallEventIdType = (typeof PaywallEventId)[keyof typeof PaywallEventId];
|
|
3262
|
-
interface PaywallEventView {
|
|
3263
|
-
id: string;
|
|
3264
|
-
placementId?: string;
|
|
3265
|
-
variationId?: string;
|
|
3266
|
-
}
|
|
3267
|
-
interface BasePaywallEvent {
|
|
3268
|
-
id: PaywallEventIdType;
|
|
3269
|
-
view: PaywallEventView;
|
|
3270
|
-
}
|
|
3271
|
-
interface PaywallDidAppearEvent extends BasePaywallEvent {
|
|
3272
|
-
id: typeof PaywallEventId.DidAppear;
|
|
3273
|
-
}
|
|
3274
|
-
interface PaywallDidDisappearEvent extends BasePaywallEvent {
|
|
3275
|
-
id: typeof PaywallEventId.DidDisappear;
|
|
3276
|
-
}
|
|
3277
|
-
type PaywallUserAction = {
|
|
3278
|
-
type: 'close';
|
|
3279
|
-
} | {
|
|
3280
|
-
type: 'system_back';
|
|
3281
|
-
} | {
|
|
3282
|
-
type: 'open_url';
|
|
3283
|
-
value: string;
|
|
3284
|
-
openIn: WebPresentation;
|
|
3285
|
-
} | {
|
|
3286
|
-
type: 'custom';
|
|
3287
|
-
value: string;
|
|
3288
|
-
};
|
|
3289
|
-
interface PaywallDidPerformActionEvent extends BasePaywallEvent {
|
|
3290
|
-
id: typeof PaywallEventId.DidPerformAction;
|
|
3291
|
-
action: PaywallUserAction;
|
|
3292
|
-
}
|
|
3293
|
-
interface PaywallDidSelectProductEvent extends BasePaywallEvent {
|
|
3294
|
-
id: typeof PaywallEventId.DidSelectProduct;
|
|
3295
|
-
productId: string;
|
|
3296
|
-
}
|
|
3297
|
-
interface PaywallDidStartPurchaseEvent extends BasePaywallEvent {
|
|
3298
|
-
id: typeof PaywallEventId.DidStartPurchase;
|
|
3299
|
-
product: AdaptyPaywallProduct;
|
|
3300
|
-
}
|
|
3301
|
-
interface PaywallDidFinishPurchaseEvent extends BasePaywallEvent {
|
|
3302
|
-
id: typeof PaywallEventId.DidFinishPurchase;
|
|
3303
|
-
purchaseResult: AdaptyPurchaseResult;
|
|
3304
|
-
product: AdaptyPaywallProduct;
|
|
3305
|
-
}
|
|
3306
|
-
interface PaywallDidFailPurchaseEvent extends BasePaywallEvent {
|
|
3307
|
-
id: typeof PaywallEventId.DidFailPurchase;
|
|
3308
|
-
error: AdaptyError;
|
|
3309
|
-
product: AdaptyPaywallProduct;
|
|
3310
|
-
}
|
|
3311
|
-
interface PaywallDidStartRestoreEvent extends BasePaywallEvent {
|
|
3312
|
-
id: typeof PaywallEventId.DidStartRestore;
|
|
3313
|
-
}
|
|
3314
|
-
interface PaywallDidFinishRestoreEvent extends BasePaywallEvent {
|
|
3315
|
-
id: typeof PaywallEventId.DidFinishRestore;
|
|
3316
|
-
profile: AdaptyProfile;
|
|
3317
|
-
}
|
|
3318
|
-
interface PaywallDidFailRestoreEvent extends BasePaywallEvent {
|
|
3319
|
-
id: typeof PaywallEventId.DidFailRestore;
|
|
3320
|
-
error: AdaptyError;
|
|
3321
|
-
}
|
|
3322
|
-
interface PaywallDidFailRenderingEvent extends BasePaywallEvent {
|
|
3323
|
-
id: typeof PaywallEventId.DidFailRendering;
|
|
3324
|
-
error: AdaptyError;
|
|
3325
|
-
}
|
|
3326
|
-
interface PaywallDidFailLoadingProductsEvent extends BasePaywallEvent {
|
|
3327
|
-
id: typeof PaywallEventId.DidFailLoadingProducts;
|
|
3328
|
-
error: AdaptyError;
|
|
3329
|
-
}
|
|
3330
|
-
interface PaywallDidFinishWebPaymentNavigationEvent extends BasePaywallEvent {
|
|
3331
|
-
id: typeof PaywallEventId.DidFinishWebPaymentNavigation;
|
|
3332
|
-
product?: AdaptyPaywallProduct;
|
|
3333
|
-
error?: AdaptyError;
|
|
3334
|
-
}
|
|
3335
|
-
type ParsedPaywallEvent = PaywallDidAppearEvent | PaywallDidDisappearEvent | PaywallDidPerformActionEvent | PaywallDidSelectProductEvent | PaywallDidStartPurchaseEvent | PaywallDidFinishPurchaseEvent | PaywallDidFailPurchaseEvent | PaywallDidStartRestoreEvent | PaywallDidFinishRestoreEvent | PaywallDidFailRestoreEvent | PaywallDidFailRenderingEvent | PaywallDidFailLoadingProductsEvent | PaywallDidFinishWebPaymentNavigationEvent;
|
|
3336
|
-
|
|
3337
3556
|
//#endregion
|
|
3338
3557
|
//#region src/types/onboarding-events.d.ts
|
|
3558
|
+
//# sourceMappingURL=factory.d.ts.map
|
|
3339
3559
|
declare const OnboardingEventId: {
|
|
3340
3560
|
readonly Close: "onboarding_on_close_action";
|
|
3341
3561
|
readonly Custom: "onboarding_on_custom_action";
|
|
@@ -3395,19 +3615,19 @@ interface OnboardingErrorEvent extends BaseOnboardingEvent {
|
|
|
3395
3615
|
type ParsedOnboardingEvent = OnboardingCloseEvent | OnboardingCustomEvent | OnboardingPaywallEvent | OnboardingStateUpdatedEvent | OnboardingFinishedLoadingEvent | OnboardingAnalyticsEvent | OnboardingErrorEvent;
|
|
3396
3616
|
|
|
3397
3617
|
//#endregion
|
|
3398
|
-
//#region src/ui-builder/
|
|
3399
|
-
type EventName$1 = keyof
|
|
3618
|
+
//#region src/ui-builder/flow-event-mapping.d.ts
|
|
3619
|
+
type EventName$1 = keyof FlowEventHandlers;
|
|
3400
3620
|
/**
|
|
3401
3621
|
* Resolves native event to handler name based on event data
|
|
3402
3622
|
*/
|
|
3403
|
-
declare const NATIVE_EVENT_RESOLVER: Record<
|
|
3623
|
+
declare const NATIVE_EVENT_RESOLVER: Record<FlowEventIdType, (event: ParsedFlowEvent) => EventName$1 | null>;
|
|
3404
3624
|
/**
|
|
3405
3625
|
* Maps handler name to native event name
|
|
3406
3626
|
* Used in addListener/addInternalListener to subscribe to correct native event
|
|
3407
3627
|
*/
|
|
3408
|
-
declare const HANDLER_TO_NATIVE_EVENT: Record<EventName$1,
|
|
3409
|
-
type ExtractedArgs$1<T extends keyof
|
|
3410
|
-
declare function
|
|
3628
|
+
declare const HANDLER_TO_NATIVE_EVENT: Record<EventName$1, FlowEventIdType>;
|
|
3629
|
+
type ExtractedArgs$1<T extends keyof FlowEventHandlers> = Parameters<FlowEventHandlers[T]>;
|
|
3630
|
+
declare function extractFlowCallbackArgs<T extends keyof FlowEventHandlers>(handlerName: T, event: ParsedFlowEvent): ExtractedArgs$1<T>;
|
|
3411
3631
|
|
|
3412
3632
|
//#endregion
|
|
3413
3633
|
//#region src/ui-builder/onboarding-event-mapping.d.ts
|
|
@@ -3431,18 +3651,18 @@ declare function extractOnboardingCallbackArgs<T extends keyof OnboardingEventHa
|
|
|
3431
3651
|
|
|
3432
3652
|
//#endregion
|
|
3433
3653
|
//#region src/coders/parse.d.ts
|
|
3434
|
-
declare const AdaptyTypes: readonly ["AdaptyError", "AdaptyProfile", "AdaptyPurchaseResult", "
|
|
3654
|
+
declare const AdaptyTypes: readonly ["AdaptyError", "AdaptyProfile", "AdaptyPurchaseResult", "AdaptyFlow", "AdaptyPaywallProduct", "AdaptyOnboarding", "AdaptyRemoteConfig", "AdaptyInstallationStatus", "AdaptyInstallationDetails", "AdaptyUiView", "AdaptyUiDialogActionType", "AdaptyUiOnboardingMeta", "AdaptyUiOnboardingStateParams", "AdaptyUiOnboardingStateUpdatedAction", "Array<AdaptyPaywallProduct>", "BridgeError", "String", "Boolean", "Void"];
|
|
3435
3655
|
type AdaptyType = (typeof AdaptyTypes)[number];
|
|
3436
3656
|
declare function parseMethodResult<T>(factory: CoderFactory, input: string, resultType: AdaptyType, ctx?: LogContext): T;
|
|
3437
3657
|
declare function parseCommonEvent(factory: CoderFactory, event: string, input: string, ctx?: LogContext): any;
|
|
3438
3658
|
|
|
3439
3659
|
//#endregion
|
|
3440
|
-
//#region src/coders/parse-
|
|
3441
|
-
declare function
|
|
3660
|
+
//#region src/coders/parse-flow.d.ts
|
|
3661
|
+
declare function parseFlowEvent(factory: CoderFactory, input: string, ctx?: LogContext): ParsedFlowEvent | null;
|
|
3442
3662
|
|
|
3443
3663
|
//#endregion
|
|
3444
3664
|
//#region src/coders/parse-onboarding.d.ts
|
|
3445
|
-
//# sourceMappingURL=parse-
|
|
3665
|
+
//# sourceMappingURL=parse-flow.d.ts.map
|
|
3446
3666
|
declare function parseOnboardingEvent(factory: CoderFactory, input: string, ctx?: LogContext): ParsedOnboardingEvent | null;
|
|
3447
3667
|
|
|
3448
3668
|
//#endregion
|
|
@@ -3499,5 +3719,5 @@ declare function withErrorContext<T extends (...args: never[]) => unknown>(callb
|
|
|
3499
3719
|
//#endregion
|
|
3500
3720
|
//# sourceMappingURL=with-error-context.d.ts.map
|
|
3501
3721
|
|
|
3502
|
-
export { ActivateParamsInput, AdaptyAccessLevel, AdaptyAndroidPurchaseParams,
|
|
3722
|
+
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 };
|
|
3503
3723
|
//# sourceMappingURL=index.d.cts.map
|