@adapty/core 4.2.0 → 4.3.0-dev.3b2b0c67a42af64750f8431fff08069b37d56f1b
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/index.cjs +291 -102
- package/dist/index.d.cts +496 -178
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +496 -178
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +291 -103
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -249,6 +249,16 @@ declare const ErrorCodeMapping: Readonly<{
|
|
|
249
249
|
3007: "unsupportedData";
|
|
250
250
|
3100: "persistingDataError";
|
|
251
251
|
3101: "fetchTimeoutError";
|
|
252
|
+
/**
|
|
253
|
+
* Another operation of the same kind is already in progress
|
|
254
|
+
* (e.g. a store message show).
|
|
255
|
+
*/
|
|
256
|
+
3201: "operationInProgress";
|
|
257
|
+
/**
|
|
258
|
+
* A required resource could not be resolved
|
|
259
|
+
* (e.g. no foreground-active window scene to show store messages).
|
|
260
|
+
*/
|
|
261
|
+
3202: "resolverFailure";
|
|
252
262
|
9000: "operationInterrupted";
|
|
253
263
|
}>;
|
|
254
264
|
declare const ErrorCode: Readonly<{
|
|
@@ -358,6 +368,16 @@ declare const ErrorCode: Readonly<{
|
|
|
358
368
|
3007: "unsupportedData";
|
|
359
369
|
3100: "persistingDataError";
|
|
360
370
|
3101: "fetchTimeoutError";
|
|
371
|
+
/**
|
|
372
|
+
* Another operation of the same kind is already in progress
|
|
373
|
+
* (e.g. a store message show).
|
|
374
|
+
*/
|
|
375
|
+
3201: "operationInProgress";
|
|
376
|
+
/**
|
|
377
|
+
* A required resource could not be resolved
|
|
378
|
+
* (e.g. no foreground-active window scene to show store messages).
|
|
379
|
+
*/
|
|
380
|
+
3202: "resolverFailure";
|
|
361
381
|
9000: "operationInterrupted";
|
|
362
382
|
}>;
|
|
363
383
|
type ErrorCode = keyof typeof ErrorCodeMapping;
|
|
@@ -410,6 +430,8 @@ declare const ErrorCodeName: Readonly<{
|
|
|
410
430
|
readonly unsupportedData: 3007;
|
|
411
431
|
readonly persistingDataError: 3100;
|
|
412
432
|
readonly fetchTimeoutError: 3101;
|
|
433
|
+
readonly operationInProgress: 3201;
|
|
434
|
+
readonly resolverFailure: 3202;
|
|
413
435
|
readonly operationInterrupted: 9000;
|
|
414
436
|
}>;
|
|
415
437
|
type ErrorCodeName = keyof typeof ErrorCodeName;
|
|
@@ -480,6 +502,15 @@ declare const ProductPeriod: Readonly<{
|
|
|
480
502
|
Year: "year";
|
|
481
503
|
}>;
|
|
482
504
|
type ProductPeriod = (typeof ProductPeriod)[keyof typeof ProductPeriod];
|
|
505
|
+
declare const SubscriptionBillingPlan: Readonly<{
|
|
506
|
+
UpFront: "up_front";
|
|
507
|
+
Monthly: "monthly";
|
|
508
|
+
}>;
|
|
509
|
+
/**
|
|
510
|
+
* Billing plan of a subscription.
|
|
511
|
+
* Open-ended: native SDKs may pass through plans unknown to this version.
|
|
512
|
+
*/
|
|
513
|
+
type SubscriptionBillingPlan = (typeof SubscriptionBillingPlan)[keyof typeof SubscriptionBillingPlan] | (string & {});
|
|
483
514
|
interface AdaptyPrice {
|
|
484
515
|
/**
|
|
485
516
|
* Price as number
|
|
@@ -738,6 +769,16 @@ type AdaptyPurchaseResult = {
|
|
|
738
769
|
* @public
|
|
739
770
|
*/
|
|
740
771
|
type AdaptyExternalAttributionProvider = 'apple_search_ads' | 'adjust' | 'appsflyer' | 'branch' | 'tenjin' | 'custom' | (string & {});
|
|
772
|
+
/**
|
|
773
|
+
* Reason StoreKit wants to show an App Store message.
|
|
774
|
+
*
|
|
775
|
+
* @remarks
|
|
776
|
+
* Reasons unknown to the SDK arrive as `storekit_<rawValue>`,
|
|
777
|
+
* so any string is accepted.
|
|
778
|
+
* Requires iOS 16+.
|
|
779
|
+
* @public
|
|
780
|
+
*/
|
|
781
|
+
type AdaptyStoreMessageType = 'generic' | 'price_increase_consent' | 'billing_issue' | 'win_back_offer' | (string & {});
|
|
741
782
|
/**
|
|
742
783
|
* Interface representing a user profile in Adapty,
|
|
743
784
|
* including details about the user's subscriptions and consumable products.
|
|
@@ -882,7 +923,28 @@ interface AdaptyAccessLevel {
|
|
|
882
923
|
* @readonly
|
|
883
924
|
*/
|
|
884
925
|
readonly willRenew: boolean;
|
|
926
|
+
/**
|
|
927
|
+
* Billing plan of the subscription. Set for App Store purchases only, see {@link store}.
|
|
928
|
+
* @readonly
|
|
929
|
+
*/
|
|
930
|
+
readonly billingPlan?: SubscriptionBillingPlan;
|
|
931
|
+
/**
|
|
932
|
+
* Commitment progress of a subscription bought with a commitment billing plan.
|
|
933
|
+
* Set for App Store purchases only, see {@link store}.
|
|
934
|
+
* @readonly
|
|
935
|
+
*/
|
|
936
|
+
readonly commitmentInfo?: AdaptyProfileSubscriptionCommitmentInfo;
|
|
937
|
+
/**
|
|
938
|
+
* Identifier of the Google Play offer the subscription was bought with.
|
|
939
|
+
* Set for Play Store purchases only, see {@link store}.
|
|
940
|
+
* @readonly
|
|
941
|
+
*/
|
|
942
|
+
readonly offerId?: string;
|
|
885
943
|
android?: {
|
|
944
|
+
/**
|
|
945
|
+
* @deprecated Use the top-level {@link AdaptyAccessLevel.offerId}:
|
|
946
|
+
* the value depends on the purchase store, not on the device OS.
|
|
947
|
+
*/
|
|
886
948
|
offerId?: string;
|
|
887
949
|
};
|
|
888
950
|
}
|
|
@@ -1040,6 +1102,44 @@ interface AdaptySubscription {
|
|
|
1040
1102
|
* @readonly
|
|
1041
1103
|
*/
|
|
1042
1104
|
readonly willRenew: boolean;
|
|
1105
|
+
/**
|
|
1106
|
+
* Billing plan of the subscription. Set for App Store purchases only, see {@link store}.
|
|
1107
|
+
* @readonly
|
|
1108
|
+
*/
|
|
1109
|
+
readonly billingPlan?: SubscriptionBillingPlan;
|
|
1110
|
+
/**
|
|
1111
|
+
* Commitment progress of a subscription bought with a commitment billing plan.
|
|
1112
|
+
* Set for App Store purchases only, see {@link store}.
|
|
1113
|
+
* @readonly
|
|
1114
|
+
*/
|
|
1115
|
+
readonly commitmentInfo?: AdaptyProfileSubscriptionCommitmentInfo;
|
|
1116
|
+
/**
|
|
1117
|
+
* Identifier of the Google Play offer the subscription was bought with.
|
|
1118
|
+
* Set for Play Store purchases only, see {@link store}.
|
|
1119
|
+
* @readonly
|
|
1120
|
+
*/
|
|
1121
|
+
readonly offerId?: string;
|
|
1122
|
+
}
|
|
1123
|
+
/**
|
|
1124
|
+
* Commitment progress of a subscription purchased with a commitment billing plan.
|
|
1125
|
+
* @public
|
|
1126
|
+
*/
|
|
1127
|
+
interface AdaptyProfileSubscriptionCommitmentInfo {
|
|
1128
|
+
/**
|
|
1129
|
+
* Number of the current billing period within the commitment.
|
|
1130
|
+
* @readonly
|
|
1131
|
+
*/
|
|
1132
|
+
readonly billingPeriodNumber: number;
|
|
1133
|
+
/**
|
|
1134
|
+
* Total number of billing periods in the commitment.
|
|
1135
|
+
* @readonly
|
|
1136
|
+
*/
|
|
1137
|
+
readonly totalBillingPeriods: number;
|
|
1138
|
+
/**
|
|
1139
|
+
* The date and time when the commitment expires.
|
|
1140
|
+
* @readonly
|
|
1141
|
+
*/
|
|
1142
|
+
readonly expiresAt: Date;
|
|
1043
1143
|
}
|
|
1044
1144
|
/**
|
|
1045
1145
|
* Describes an object that represents a product.
|
|
@@ -1154,6 +1254,11 @@ interface AdaptyPromotedProduct {
|
|
|
1154
1254
|
* @see {@link https://developer.apple.com/documentation/storekit/skproduct/3564805-isfamilyshareable}
|
|
1155
1255
|
*/
|
|
1156
1256
|
readonly isFamilyShareable: boolean;
|
|
1257
|
+
/**
|
|
1258
|
+
* StoreKit purchase intent identifier, passed back to native on purchase.
|
|
1259
|
+
* @internal
|
|
1260
|
+
*/
|
|
1261
|
+
readonly purchaseIntentId: string;
|
|
1157
1262
|
};
|
|
1158
1263
|
}
|
|
1159
1264
|
interface AdaptySubscriptionDetails {
|
|
@@ -1178,12 +1283,61 @@ interface AdaptySubscriptionDetails {
|
|
|
1178
1283
|
* Will be `null` for iOS version below 12.0 and macOS version below 10.14.
|
|
1179
1284
|
*/
|
|
1180
1285
|
subscriptionGroupIdentifier?: string;
|
|
1286
|
+
/**
|
|
1287
|
+
* Billing terms of the subscription: billing plan, price per billing period
|
|
1288
|
+
* and the total commitment.
|
|
1289
|
+
*/
|
|
1290
|
+
pricingTerms?: AdaptySubscriptionPricingTerms;
|
|
1181
1291
|
};
|
|
1182
1292
|
android?: {
|
|
1183
1293
|
basePlanId: string;
|
|
1184
1294
|
renewalType?: 'prepaid' | 'autorenewable';
|
|
1185
1295
|
};
|
|
1186
1296
|
}
|
|
1297
|
+
/**
|
|
1298
|
+
* Billing terms of a subscription product.
|
|
1299
|
+
* iOS only.
|
|
1300
|
+
* @public
|
|
1301
|
+
*/
|
|
1302
|
+
interface AdaptySubscriptionPricingTerms {
|
|
1303
|
+
/**
|
|
1304
|
+
* Billing plan of the subscription.
|
|
1305
|
+
* @readonly
|
|
1306
|
+
*/
|
|
1307
|
+
readonly billingPlan: SubscriptionBillingPlan;
|
|
1308
|
+
/**
|
|
1309
|
+
* Price charged for each billing period.
|
|
1310
|
+
* @readonly
|
|
1311
|
+
*/
|
|
1312
|
+
readonly billingPrice: AdaptyPrice;
|
|
1313
|
+
/**
|
|
1314
|
+
* Period between charges.
|
|
1315
|
+
* @readonly
|
|
1316
|
+
*/
|
|
1317
|
+
readonly billingPeriod: AdaptySubscriptionPeriod;
|
|
1318
|
+
/**
|
|
1319
|
+
* Total price and period the user commits to.
|
|
1320
|
+
* @readonly
|
|
1321
|
+
*/
|
|
1322
|
+
readonly commitmentInfo: AdaptySubscriptionCommitmentInfo;
|
|
1323
|
+
}
|
|
1324
|
+
/**
|
|
1325
|
+
* Total price and period of a subscription commitment.
|
|
1326
|
+
* iOS only.
|
|
1327
|
+
* @public
|
|
1328
|
+
*/
|
|
1329
|
+
interface AdaptySubscriptionCommitmentInfo {
|
|
1330
|
+
/**
|
|
1331
|
+
* Total price of the commitment.
|
|
1332
|
+
* @readonly
|
|
1333
|
+
*/
|
|
1334
|
+
readonly price: AdaptyPrice;
|
|
1335
|
+
/**
|
|
1336
|
+
* Total period of the commitment.
|
|
1337
|
+
* @readonly
|
|
1338
|
+
*/
|
|
1339
|
+
readonly period: AdaptySubscriptionPeriod;
|
|
1340
|
+
}
|
|
1187
1341
|
/**
|
|
1188
1342
|
* Subscription offer model to products
|
|
1189
1343
|
* @see {@link https://doc.adapty.io/docs/rn-api-reference#adaptysubscriptionoffer}
|
|
@@ -1277,14 +1431,22 @@ interface ProductReference {
|
|
|
1277
1431
|
accessLevelId: string;
|
|
1278
1432
|
productType: string;
|
|
1279
1433
|
ios?: {
|
|
1280
|
-
|
|
1281
|
-
winBackOfferId?: string;
|
|
1434
|
+
pricingTerms?: ProductReferencePricingTerms[];
|
|
1282
1435
|
};
|
|
1283
1436
|
android?: {
|
|
1284
1437
|
basePlanId?: string;
|
|
1285
1438
|
offerId?: string;
|
|
1286
1439
|
};
|
|
1287
1440
|
}
|
|
1441
|
+
/**
|
|
1442
|
+
* Billing plan with the offers available for it, as configured for a paywall product.
|
|
1443
|
+
* @internal
|
|
1444
|
+
*/
|
|
1445
|
+
interface ProductReferencePricingTerms {
|
|
1446
|
+
billingPlan: SubscriptionBillingPlan;
|
|
1447
|
+
promotionalOfferId?: string;
|
|
1448
|
+
winBackOfferId?: string;
|
|
1449
|
+
}
|
|
1288
1450
|
/**
|
|
1289
1451
|
* Interface representing a product identifier with vendor and platform-specific information.
|
|
1290
1452
|
* @public
|
|
@@ -1963,33 +2125,40 @@ interface AdaptyMockConfig {
|
|
|
1963
2125
|
//# sourceMappingURL=types.d.ts.map
|
|
1964
2126
|
|
|
1965
2127
|
/**
|
|
1966
|
-
* Log levels for the SDK
|
|
2128
|
+
* Log levels for the SDK, ordered from the least to the most verbose:
|
|
2129
|
+
* `ERROR` < `WARN` < `INFO` < `VERBOSE` < `DEBUG`.
|
|
1967
2130
|
*
|
|
1968
2131
|
* @remarks
|
|
2132
|
+
* Setting a level enables it and all the levels above it in the list.
|
|
1969
2133
|
* Logging is performed on a native side.
|
|
1970
2134
|
* So you are expected to watch logs in Xcode or Android Studio.
|
|
1971
2135
|
*/
|
|
1972
2136
|
declare const LogLevel: Readonly<{
|
|
1973
2137
|
/**
|
|
1974
|
-
*
|
|
1975
|
-
* such as function calls, API queries, etc.
|
|
1976
|
-
*/
|
|
1977
|
-
VERBOSE: "verbose";
|
|
1978
|
-
/**
|
|
1979
|
-
* Logs only errors
|
|
2138
|
+
* Level 0 — logs only errors.
|
|
1980
2139
|
*/
|
|
1981
2140
|
ERROR: "error";
|
|
1982
2141
|
/**
|
|
1983
|
-
*
|
|
2142
|
+
* Level 1 — logs errors and messages from the SDK
|
|
1984
2143
|
* that do not cause critical errors,
|
|
1985
|
-
* but are worth paying attention to
|
|
2144
|
+
* but are worth paying attention to.
|
|
1986
2145
|
*/
|
|
1987
2146
|
WARN: "warn";
|
|
1988
2147
|
/**
|
|
1989
|
-
*
|
|
1990
|
-
* such as those that log the lifecycle of various modules
|
|
2148
|
+
* Level 2 — additionally logs various information messages,
|
|
2149
|
+
* such as those that log the lifecycle of various modules.
|
|
1991
2150
|
*/
|
|
1992
2151
|
INFO: "info";
|
|
2152
|
+
/**
|
|
2153
|
+
* Level 3 — additionally logs any information that may be useful
|
|
2154
|
+
* during debugging, such as function calls, API queries, etc.
|
|
2155
|
+
*/
|
|
2156
|
+
VERBOSE: "verbose";
|
|
2157
|
+
/**
|
|
2158
|
+
* Level 4 — the most detailed level, additionally logs
|
|
2159
|
+
* low-level internal details of the native SDK.
|
|
2160
|
+
*/
|
|
2161
|
+
DEBUG: "debug";
|
|
1993
2162
|
}>;
|
|
1994
2163
|
type LogLevel = (typeof LogLevel)[keyof typeof LogLevel];
|
|
1995
2164
|
declare const FetchPolicy: Readonly<{
|
|
@@ -2033,6 +2202,25 @@ type GetPlacementForDefaultAudienceParamsInput = {
|
|
|
2033
2202
|
*/
|
|
2034
2203
|
maxAgeSeconds: number;
|
|
2035
2204
|
};
|
|
2205
|
+
/**
|
|
2206
|
+
* Describes optional parameters for the placement preload methods.
|
|
2207
|
+
*
|
|
2208
|
+
* @remarks
|
|
2209
|
+
* Preloading has no fetch policy: it always goes to the network and only warms
|
|
2210
|
+
* the placement cache, so unlike {@link GetPlacementParamsInput} the only knob
|
|
2211
|
+
* is the timeout.
|
|
2212
|
+
*/
|
|
2213
|
+
interface PreloadPlacementsParamsInput {
|
|
2214
|
+
/**
|
|
2215
|
+
* This value limits the timeout (in milliseconds) for this method.
|
|
2216
|
+
*
|
|
2217
|
+
* @remarks
|
|
2218
|
+
* The native SDKs clamp anything below 1000 ms up to 1000 ms. Reaching the
|
|
2219
|
+
* timeout is not an error by itself — the affected placements are retried
|
|
2220
|
+
* against the default audience source.
|
|
2221
|
+
*/
|
|
2222
|
+
loadTimeoutMs?: number;
|
|
2223
|
+
}
|
|
2036
2224
|
/**
|
|
2037
2225
|
* Describes optional parameters for the {@link activate} method.
|
|
2038
2226
|
*/
|
|
@@ -2117,6 +2305,21 @@ interface ActivateParamsInput {
|
|
|
2117
2305
|
* @defaultValue `false`
|
|
2118
2306
|
*/
|
|
2119
2307
|
adaptyAttributionEnabled?: boolean;
|
|
2308
|
+
/**
|
|
2309
|
+
* Controls who decides when store messages are shown: App Store messages
|
|
2310
|
+
* (price increase consent, billing issue, win-back offer, etc.) on iOS,
|
|
2311
|
+
* Google Play in-app messages (e.g. a declined payment) on Android.
|
|
2312
|
+
*
|
|
2313
|
+
* @remarks
|
|
2314
|
+
* - `'auto'` — iOS: StoreKit presents them automatically. Android: the SDK
|
|
2315
|
+
* requests them on every `Activity.onResume`.
|
|
2316
|
+
* - `'manual'` — messages are shown only when the app calls `showStoreMessages`.
|
|
2317
|
+
* On iOS the SDK also keeps them in a queue readable via `getPendingStoreMessageTypes`.
|
|
2318
|
+
*
|
|
2319
|
+
* Has no effect below iOS 16.
|
|
2320
|
+
* @defaultValue `'auto'`
|
|
2321
|
+
*/
|
|
2322
|
+
storeMessagesHandling?: 'auto' | 'manual';
|
|
2120
2323
|
ios?: {
|
|
2121
2324
|
/**
|
|
2122
2325
|
* Disables IDFA collection
|
|
@@ -2330,6 +2533,15 @@ interface components {
|
|
|
2330
2533
|
}, {
|
|
2331
2534
|
success: true;
|
|
2332
2535
|
}]>;
|
|
2536
|
+
'AdaptyUIDestroyFlowView.Request': {
|
|
2537
|
+
method: 'adapty_ui_destroy_flow_view';
|
|
2538
|
+
id: string;
|
|
2539
|
+
};
|
|
2540
|
+
'AdaptyUIDestroyFlowView.Response': OneOf<[{
|
|
2541
|
+
error: components['defs']['AdaptyError'];
|
|
2542
|
+
}, {
|
|
2543
|
+
success: true;
|
|
2544
|
+
}]>;
|
|
2333
2545
|
'AdaptyUIPresentOnboardingView.Request': {
|
|
2334
2546
|
method: 'adapty_ui_present_onboarding_view';
|
|
2335
2547
|
id: string;
|
|
@@ -2422,6 +2634,25 @@ interface components {
|
|
|
2422
2634
|
}, {
|
|
2423
2635
|
success: components['defs']['AdaptyFlow'];
|
|
2424
2636
|
}]>;
|
|
2637
|
+
'PreloadFlows.Request': {
|
|
2638
|
+
method: 'preload_flows';
|
|
2639
|
+
placement_ids: string[];
|
|
2640
|
+
load_timeout?: number;
|
|
2641
|
+
};
|
|
2642
|
+
'PreloadFlows.Response': OneOf<[{
|
|
2643
|
+
error: components['defs']['AdaptyError'];
|
|
2644
|
+
}, {
|
|
2645
|
+
success: true;
|
|
2646
|
+
}]>;
|
|
2647
|
+
'PreloadFlowsForDefaultAudience.Request': {
|
|
2648
|
+
method: 'preload_flows_for_default_audience';
|
|
2649
|
+
placement_ids: string[];
|
|
2650
|
+
};
|
|
2651
|
+
'PreloadFlowsForDefaultAudience.Response': OneOf<[{
|
|
2652
|
+
error: components['defs']['AdaptyError'];
|
|
2653
|
+
}, {
|
|
2654
|
+
success: true;
|
|
2655
|
+
}]>;
|
|
2425
2656
|
'GetPaywallProducts.Request': {
|
|
2426
2657
|
method: 'get_paywall_products';
|
|
2427
2658
|
flow: components['defs']['AdaptyFlow'];
|
|
@@ -2504,6 +2735,23 @@ interface components {
|
|
|
2504
2735
|
}, {
|
|
2505
2736
|
success: components['defs']['AdaptyPurchaseResult'];
|
|
2506
2737
|
}]>;
|
|
2738
|
+
'GetPendingStoreMessageTypes.Request': {
|
|
2739
|
+
method: 'get_pending_store_message_types';
|
|
2740
|
+
};
|
|
2741
|
+
'GetPendingStoreMessageTypes.Response': OneOf<[{
|
|
2742
|
+
error: components['defs']['AdaptyError'];
|
|
2743
|
+
}, {
|
|
2744
|
+
success: components['defs']['AdaptyStoreMessageType'][];
|
|
2745
|
+
}]>;
|
|
2746
|
+
'ShowStoreMessage.Request': {
|
|
2747
|
+
method: 'show_store_messages';
|
|
2748
|
+
filter?: components['defs']['AdaptyStoreMessageType'][];
|
|
2749
|
+
};
|
|
2750
|
+
'ShowStoreMessage.Response': OneOf<[{
|
|
2751
|
+
error: components['defs']['AdaptyError'];
|
|
2752
|
+
}, {
|
|
2753
|
+
success: true;
|
|
2754
|
+
}]>;
|
|
2507
2755
|
'OpenWebPaywall.Request': {
|
|
2508
2756
|
method: 'open_web_paywall';
|
|
2509
2757
|
open_in?: components['defs']['AdaptyWebPresentation'];
|
|
@@ -2797,7 +3045,7 @@ interface components {
|
|
|
2797
3045
|
view: components['defs']['AdaptyUI.OnboardingView'];
|
|
2798
3046
|
meta: components['defs']['AdaptyUI.OnboardingMeta'];
|
|
2799
3047
|
event: {
|
|
2800
|
-
name: 'onboarding_started' | 'screen_presented' | 'screen_completed' | 'second_screen_presented' | 'registration_screen_presented' | 'products_screen_presented' | 'user_email_collected' | 'onboarding_completed' | string;
|
|
3048
|
+
name: 'onboarding_started' | 'screen_presented' | 'screen_completed' | 'second_screen_presented' | 'registration_screen_presented' | 'products_screen_presented' | 'user_email_collected' | 'onboarding_completed' | (string & {});
|
|
2801
3049
|
element_id?: string;
|
|
2802
3050
|
reply?: string;
|
|
2803
3051
|
};
|
|
@@ -2872,6 +3120,7 @@ interface components {
|
|
|
2872
3120
|
customer_user_id?: string;
|
|
2873
3121
|
customer_identity_parameters?: components['defs']['CustomerIdentityParameters'];
|
|
2874
3122
|
observer_mode?: boolean;
|
|
3123
|
+
store_messages_handling?: components['defs']['StoreMessagesHandling'];
|
|
2875
3124
|
apple_idfa_collection_disabled?: boolean;
|
|
2876
3125
|
google_adid_collection_disabled?: boolean;
|
|
2877
3126
|
google_enable_pending_prepaid_plans?: boolean;
|
|
@@ -2892,6 +3141,8 @@ interface components {
|
|
|
2892
3141
|
disk_storage_size_limit?: number;
|
|
2893
3142
|
};
|
|
2894
3143
|
};
|
|
3144
|
+
StoreMessagesHandling: 'auto' | 'manual' | 'default';
|
|
3145
|
+
AdaptyStoreMessageType: 'generic' | 'price_increase_consent' | 'billing_issue' | 'win_back_offer' | (string & {});
|
|
2895
3146
|
CustomerIdentityParameters: {
|
|
2896
3147
|
app_account_token?: string;
|
|
2897
3148
|
obfuscated_account_id?: string;
|
|
@@ -2923,8 +3174,12 @@ interface components {
|
|
|
2923
3174
|
localized_string?: string;
|
|
2924
3175
|
};
|
|
2925
3176
|
'AdaptyPromotedProduct.Request': {
|
|
3177
|
+
purchase_intent_id?: string;
|
|
2926
3178
|
vendor_product_id: string;
|
|
2927
3179
|
subscription?: {
|
|
3180
|
+
pricing_terms?: {
|
|
3181
|
+
billing_plan_id: string;
|
|
3182
|
+
};
|
|
2928
3183
|
offer?: {
|
|
2929
3184
|
offer_identifier: components['defs']['AdaptySubscriptionOffer.Identifier'];
|
|
2930
3185
|
};
|
|
@@ -2932,6 +3187,7 @@ interface components {
|
|
|
2932
3187
|
payload_data?: string;
|
|
2933
3188
|
};
|
|
2934
3189
|
'AdaptyPromotedProduct.Response': {
|
|
3190
|
+
purchase_intent_id?: string;
|
|
2935
3191
|
vendor_product_id: string;
|
|
2936
3192
|
localized_description: string;
|
|
2937
3193
|
localized_title: string;
|
|
@@ -2941,10 +3197,21 @@ interface components {
|
|
|
2941
3197
|
subscription?: components['defs']['AdaptyProduct.Subscription'];
|
|
2942
3198
|
payload_data?: string;
|
|
2943
3199
|
};
|
|
3200
|
+
AdaptySubscriptionPricingTerms: {
|
|
3201
|
+
billing_plan_id: string;
|
|
3202
|
+
billing_price: components['defs']['AdaptyPrice'];
|
|
3203
|
+
billing_period: components['defs']['AdaptySubscriptionPeriod'];
|
|
3204
|
+
commitment_info: components['defs']['AdaptySubscriptionCommitmentInfo'];
|
|
3205
|
+
};
|
|
3206
|
+
AdaptySubscriptionCommitmentInfo: {
|
|
3207
|
+
price: components['defs']['AdaptyPrice'];
|
|
3208
|
+
period: components['defs']['AdaptySubscriptionPeriod'];
|
|
3209
|
+
};
|
|
2944
3210
|
'AdaptyProduct.Subscription': {
|
|
2945
3211
|
group_identifier?: string;
|
|
2946
3212
|
period: components['defs']['AdaptySubscriptionPeriod'];
|
|
2947
3213
|
localized_period?: string;
|
|
3214
|
+
pricing_terms?: components['defs']['AdaptySubscriptionPricingTerms'];
|
|
2948
3215
|
offer?: components['defs']['AdaptySubscriptionOffer'];
|
|
2949
3216
|
renewal_type?: 'prepaid' | 'autorenewable';
|
|
2950
3217
|
base_plan_id?: string;
|
|
@@ -2956,6 +3223,9 @@ interface components {
|
|
|
2956
3223
|
product_type: string;
|
|
2957
3224
|
paywall_product_index: number;
|
|
2958
3225
|
subscription?: {
|
|
3226
|
+
pricing_terms?: {
|
|
3227
|
+
billing_plan_id: string;
|
|
3228
|
+
};
|
|
2959
3229
|
offer?: {
|
|
2960
3230
|
offer_identifier: components['defs']['AdaptySubscriptionOffer.Identifier'];
|
|
2961
3231
|
};
|
|
@@ -3049,10 +3319,13 @@ interface components {
|
|
|
3049
3319
|
adapty_product_id: string;
|
|
3050
3320
|
access_level_id: string;
|
|
3051
3321
|
product_type: string;
|
|
3052
|
-
promotional_offer_id?: string;
|
|
3053
|
-
win_back_offer_id?: string;
|
|
3054
3322
|
base_plan_id?: string;
|
|
3055
3323
|
offer_id?: string;
|
|
3324
|
+
pricing_terms?: {
|
|
3325
|
+
billing_plan_id: string;
|
|
3326
|
+
promotional_offer_id?: string;
|
|
3327
|
+
win_back_offer_id?: string;
|
|
3328
|
+
}[];
|
|
3056
3329
|
};
|
|
3057
3330
|
AdaptySubscriptionPeriod: {
|
|
3058
3331
|
unit: components['defs']['AdaptySubscriptionPeriod.Unit'];
|
|
@@ -3096,6 +3369,8 @@ interface components {
|
|
|
3096
3369
|
billing_issue_detected_at?: components['defs']['Date'];
|
|
3097
3370
|
starts_at?: components['defs']['Date'];
|
|
3098
3371
|
cancellation_reason?: string;
|
|
3372
|
+
billing_plan_id?: string;
|
|
3373
|
+
commitment?: components['defs']['AdaptyProfile.SubscriptionCommitmentInfo'];
|
|
3099
3374
|
is_refund: boolean;
|
|
3100
3375
|
};
|
|
3101
3376
|
'AdaptyProfile.NonSubscription': {
|
|
@@ -3130,6 +3405,13 @@ interface components {
|
|
|
3130
3405
|
active_promotional_offer_id?: string;
|
|
3131
3406
|
offer_id?: string;
|
|
3132
3407
|
cancellation_reason?: string;
|
|
3408
|
+
billing_plan_id?: string;
|
|
3409
|
+
commitment?: components['defs']['AdaptyProfile.SubscriptionCommitmentInfo'];
|
|
3410
|
+
};
|
|
3411
|
+
'AdaptyProfile.SubscriptionCommitmentInfo': {
|
|
3412
|
+
billing_period_number: number;
|
|
3413
|
+
total_billing_periods: number;
|
|
3414
|
+
expires_at: components['defs']['Date'];
|
|
3133
3415
|
};
|
|
3134
3416
|
'AdaptyProfile.CustomAttributes': {
|
|
3135
3417
|
[key: string]: string | number;
|
|
@@ -3199,7 +3481,7 @@ interface components {
|
|
|
3199
3481
|
type: 'custom';
|
|
3200
3482
|
value: string;
|
|
3201
3483
|
}]>;
|
|
3202
|
-
'AdaptyUI.Permission': 'push' | 'camera' | 'microphone' | 'location_when_use' | 'location_always' | 'location_full_accuracy' | 'photos' | 'contacts' | 'tracking' | 'calendar' | 'bluetooth' | 'motion' | 'reminders' | 'speech' | 'media_library' | 'local_network' | 'focus_status' | 'homekit' | 'health' | 'siri' | 'music' | string;
|
|
3484
|
+
'AdaptyUI.Permission': 'push' | 'camera' | 'microphone' | 'location_when_use' | 'location_always' | 'location_full_accuracy' | 'photos' | 'contacts' | 'tracking' | 'calendar' | 'bluetooth' | 'motion' | 'reminders' | 'speech' | 'media_library' | 'local_network' | 'focus_status' | 'homekit' | 'health' | 'siri' | 'music' | (string & {});
|
|
3203
3485
|
'AdaptyUI.CustomTagsValues': {
|
|
3204
3486
|
[key: string]: string;
|
|
3205
3487
|
};
|
|
@@ -3313,7 +3595,7 @@ type Properties<Model extends Record<string, any>, SerializableData = Record<str
|
|
|
3313
3595
|
declare abstract class Coder<Model extends Record<string, any>, CodableModel extends Partial<Model>, Serializable extends Record<string, any> = Record<string, any>> implements Converter<CodableModel, Serializable> {
|
|
3314
3596
|
protected readonly platform: IPlatformAdapter;
|
|
3315
3597
|
protected abstract properties: Properties<CodableModel, Serializable>;
|
|
3316
|
-
constructor(platform
|
|
3598
|
+
constructor(platform: IPlatformAdapter);
|
|
3317
3599
|
encode(data: CodableModel): Serializable;
|
|
3318
3600
|
decode(data: Serializable): CodableModel;
|
|
3319
3601
|
protected isType(value: unknown, type: StrType<any>): boolean;
|
|
@@ -3327,48 +3609,48 @@ declare abstract class SimpleCoder<Model extends Record<string, any>, Serializab
|
|
|
3327
3609
|
//#endregion
|
|
3328
3610
|
//#region src/coders/adapty-access-level.d.ts
|
|
3329
3611
|
//# sourceMappingURL=coder.d.ts.map
|
|
3330
|
-
type Model$
|
|
3331
|
-
type Serializable$
|
|
3332
|
-
declare class AdaptyAccessLevelCoder extends SimpleCoder<Model$
|
|
3333
|
-
protected properties: Properties<Model$
|
|
3612
|
+
type Model$38 = AdaptyAccessLevel;
|
|
3613
|
+
type Serializable$39 = Def['AdaptyProfile.AccessLevel'];
|
|
3614
|
+
declare class AdaptyAccessLevelCoder extends SimpleCoder<Model$38, Serializable$39> {
|
|
3615
|
+
protected properties: Properties<Model$38, Serializable$39>;
|
|
3334
3616
|
}
|
|
3335
3617
|
|
|
3336
3618
|
//#endregion
|
|
3337
3619
|
//#region src/coders/adapty-configuration.d.ts
|
|
3338
|
-
type Model$
|
|
3339
|
-
type Serializable$
|
|
3620
|
+
type Model$37 = ActivateParamsInput;
|
|
3621
|
+
type Serializable$38 = Def['AdaptyConfiguration'];
|
|
3340
3622
|
declare class AdaptyConfigurationCoder {
|
|
3341
3623
|
private readonly platform;
|
|
3342
3624
|
private readonly sdkMetadata;
|
|
3343
3625
|
constructor(platform: IPlatformAdapter, sdkMetadata: ISdkMetadataAdapter);
|
|
3344
|
-
encode(apiKey: string, params: Model$
|
|
3626
|
+
encode(apiKey: string, params: Model$37): Serializable$38;
|
|
3345
3627
|
}
|
|
3346
3628
|
|
|
3347
3629
|
//#endregion
|
|
3348
3630
|
//#region src/coders/adapty-discount-phase.d.ts
|
|
3349
|
-
type Model$
|
|
3350
|
-
type Serializable$
|
|
3351
|
-
declare class AdaptyDiscountPhaseCoder extends SimpleCoder<Model$
|
|
3352
|
-
protected properties: Properties<Model$
|
|
3631
|
+
type Model$36 = AdaptyDiscountPhase;
|
|
3632
|
+
type Serializable$37 = Def['AdaptySubscriptionOffer.Phase'];
|
|
3633
|
+
declare class AdaptyDiscountPhaseCoder extends SimpleCoder<Model$36, Serializable$37> {
|
|
3634
|
+
protected properties: Properties<Model$36, Serializable$37>;
|
|
3353
3635
|
}
|
|
3354
3636
|
|
|
3355
3637
|
//#endregion
|
|
3356
3638
|
//#region src/coders/adapty-flow-paywall.d.ts
|
|
3357
|
-
type Model$
|
|
3358
|
-
type CodableModel$4 = Omit<Model$
|
|
3639
|
+
type Model$35 = AdaptyFlowPaywall;
|
|
3640
|
+
type CodableModel$4 = Omit<Model$35, 'productIdentifiers'> & {
|
|
3359
3641
|
products?: ProductReference[];
|
|
3360
3642
|
};
|
|
3361
|
-
type Serializable$
|
|
3362
|
-
declare class AdaptyFlowPaywallCoder extends Coder<Model$
|
|
3363
|
-
protected properties: Properties<CodableModel$4, Serializable$
|
|
3364
|
-
decode(data: Serializable$
|
|
3365
|
-
encode(data: Model$
|
|
3643
|
+
type Serializable$36 = Def['AdaptyFlowPaywall'];
|
|
3644
|
+
declare class AdaptyFlowPaywallCoder extends Coder<Model$35, CodableModel$4, Serializable$36> {
|
|
3645
|
+
protected properties: Properties<CodableModel$4, Serializable$36>;
|
|
3646
|
+
decode(data: Serializable$36): Model$35;
|
|
3647
|
+
encode(data: Model$35): Serializable$36;
|
|
3366
3648
|
}
|
|
3367
3649
|
|
|
3368
3650
|
//#endregion
|
|
3369
3651
|
//#region src/coders/adapty-flow-ui-schema.d.ts
|
|
3370
|
-
type Model$
|
|
3371
|
-
type Serializable$
|
|
3652
|
+
type Model$34 = AdaptyFlowUiSchema;
|
|
3653
|
+
type Serializable$35 = NonNullable<Def['AdaptyFlow']['ui_schema']>;
|
|
3372
3654
|
/**
|
|
3373
3655
|
* `ui_schema` is written by hand rather than declared through `Properties`,
|
|
3374
3656
|
* because `platforms` and `devices` are unions of an `'all'` literal and an
|
|
@@ -3377,26 +3659,26 @@ type Serializable$31 = NonNullable<Def['AdaptyFlow']['ui_schema']>;
|
|
|
3377
3659
|
* The flow is passed back to the native side (e.g. `adapty_ui_create_flow_view`),
|
|
3378
3660
|
* so this schema has to survive a decode/encode round trip unchanged.
|
|
3379
3661
|
*/
|
|
3380
|
-
declare class AdaptyFlowUiSchemaCoder implements Converter<Model$
|
|
3381
|
-
decode(json: Serializable$
|
|
3382
|
-
encode(model: Model$
|
|
3662
|
+
declare class AdaptyFlowUiSchemaCoder implements Converter<Model$34, Serializable$35> {
|
|
3663
|
+
decode(json: Serializable$35): Model$34;
|
|
3664
|
+
encode(model: Model$34): Serializable$35;
|
|
3383
3665
|
}
|
|
3384
3666
|
|
|
3385
3667
|
//#endregion
|
|
3386
3668
|
//#region src/coders/adapty-flow.d.ts
|
|
3387
|
-
type Model$
|
|
3388
|
-
type CodableModel$3 = Omit<Model$
|
|
3389
|
-
type Serializable$
|
|
3390
|
-
declare class AdaptyFlowCoder extends Coder<Model$
|
|
3391
|
-
protected properties: Properties<CodableModel$3, Serializable$
|
|
3392
|
-
decode(data: Serializable$
|
|
3393
|
-
encode(data: Model$
|
|
3669
|
+
type Model$33 = AdaptyFlow;
|
|
3670
|
+
type CodableModel$3 = Omit<Model$33, 'hasViewConfiguration'>;
|
|
3671
|
+
type Serializable$34 = Def['AdaptyFlow'];
|
|
3672
|
+
declare class AdaptyFlowCoder extends Coder<Model$33, CodableModel$3, Serializable$34> {
|
|
3673
|
+
protected properties: Properties<CodableModel$3, Serializable$34>;
|
|
3674
|
+
decode(data: Serializable$34): Model$33;
|
|
3675
|
+
encode(data: Model$33): Serializable$34;
|
|
3394
3676
|
}
|
|
3395
3677
|
|
|
3396
3678
|
//#endregion
|
|
3397
3679
|
//#region src/coders/adapty-identify-params.d.ts
|
|
3398
|
-
type Model$
|
|
3399
|
-
type Serializable$
|
|
3680
|
+
type Model$32 = IdentifyParamsInput;
|
|
3681
|
+
type Serializable$33 = {
|
|
3400
3682
|
app_account_token?: string;
|
|
3401
3683
|
obfuscated_account_id?: string;
|
|
3402
3684
|
obfuscated_profile_id?: string;
|
|
@@ -3404,7 +3686,7 @@ type Serializable$29 = {
|
|
|
3404
3686
|
declare class AdaptyIdentifyParamsCoder {
|
|
3405
3687
|
private readonly platform;
|
|
3406
3688
|
constructor(platform: IPlatformAdapter);
|
|
3407
|
-
encode(params?: Model$
|
|
3689
|
+
encode(params?: Model$32): Serializable$33 | undefined;
|
|
3408
3690
|
}
|
|
3409
3691
|
|
|
3410
3692
|
//#endregion
|
|
@@ -3434,7 +3716,7 @@ declare class AdaptyInstallationStatusCoder implements Converter<AdaptyInstallat
|
|
|
3434
3716
|
* native side does not register would fail at runtime, not at compile time.
|
|
3435
3717
|
* @internal
|
|
3436
3718
|
*/
|
|
3437
|
-
declare const MethodNames: readonly ["activate", "adapty_ui_create_flow_view", "adapty_ui_dismiss_flow_view", "adapty_ui_present_flow_view", "adapty_ui_show_dialog", "adapty_ui_create_onboarding_view", "adapty_ui_dismiss_onboarding_view", "adapty_ui_present_onboarding_view", "create_web_paywall_url", "get_current_installation_status", "is_activated", "get_flow", "get_flow_for_default_audience", "get_paywall_products", "get_onboarding", "get_onboarding_for_default_audience", "get_profile", "get_log_level", "get_sdk_version", "identify", "log_show_flow", "logout", "make_promoted_purchase", "make_purchase", "open_web_paywall", "present_code_redemption_sheet", "report_transaction", "restore_purchases", "set_fallback", "set_integration_identifiers", "set_log_level", "update_collecting_refund_data_consent", "update_external_attribution_data", "update_profile", "update_refund_preference", "flow_view_did_answer_permission", "adapty_ui_open_url", "adapty_ui_request_app_review", "observer_purchase_did_start", "observer_purchase_did_finish", "observer_restore_did_start", "observer_restore_did_finish"];
|
|
3719
|
+
declare const MethodNames: readonly ["activate", "adapty_ui_create_flow_view", "adapty_ui_destroy_flow_view", "adapty_ui_dismiss_flow_view", "adapty_ui_present_flow_view", "adapty_ui_show_dialog", "adapty_ui_create_onboarding_view", "adapty_ui_dismiss_onboarding_view", "adapty_ui_present_onboarding_view", "create_web_paywall_url", "get_current_installation_status", "is_activated", "get_flow", "get_flow_for_default_audience", "get_paywall_products", "get_pending_store_message_types", "get_onboarding", "get_onboarding_for_default_audience", "get_profile", "get_log_level", "get_sdk_version", "identify", "log_show_flow", "logout", "make_promoted_purchase", "make_purchase", "open_web_paywall", "preload_flows", "preload_flows_for_default_audience", "present_code_redemption_sheet", "report_transaction", "restore_purchases", "set_fallback", "set_integration_identifiers", "set_log_level", "show_store_messages", "update_collecting_refund_data_consent", "update_external_attribution_data", "update_profile", "update_refund_preference", "flow_view_did_answer_permission", "adapty_ui_open_url", "adapty_ui_request_app_review", "observer_purchase_did_start", "observer_purchase_did_finish", "observer_restore_did_start", "observer_restore_did_finish"];
|
|
3438
3720
|
type MethodName = (typeof MethodNames)[number];
|
|
3439
3721
|
/**
|
|
3440
3722
|
* Types of values that can be passed
|
|
@@ -3510,183 +3792,207 @@ interface ErrorConverter<Model extends Record<string, any>> extends Converter<Mo
|
|
|
3510
3792
|
//#endregion
|
|
3511
3793
|
//#region src/coders/adapty-native-error.d.ts
|
|
3512
3794
|
//# sourceMappingURL=error-coder.d.ts.map
|
|
3513
|
-
type Model$
|
|
3514
|
-
type Serializable$
|
|
3515
|
-
declare class AdaptyNativeErrorCoder extends SimpleCoder<Model$
|
|
3795
|
+
type Model$31 = AdaptyNativeError;
|
|
3796
|
+
type Serializable$32 = Def['AdaptyError'];
|
|
3797
|
+
declare class AdaptyNativeErrorCoder extends SimpleCoder<Model$31, Serializable$32> implements ErrorConverter<Model$31> {
|
|
3516
3798
|
type: 'error';
|
|
3517
|
-
protected properties: Properties<Model$
|
|
3518
|
-
getError(data: Model$
|
|
3799
|
+
protected properties: Properties<Model$31, Serializable$32>;
|
|
3800
|
+
getError(data: Model$31): AdaptyError;
|
|
3519
3801
|
}
|
|
3520
3802
|
|
|
3521
3803
|
//#endregion
|
|
3522
3804
|
//#region src/coders/adapty-non-subscription.d.ts
|
|
3523
|
-
type Model$
|
|
3524
|
-
type Serializable$
|
|
3525
|
-
declare class AdaptyNonSubscriptionCoder extends SimpleCoder<Model$
|
|
3526
|
-
protected properties: Properties<Model$
|
|
3805
|
+
type Model$30 = AdaptyNonSubscription;
|
|
3806
|
+
type Serializable$31 = Def['AdaptyProfile.NonSubscription'];
|
|
3807
|
+
declare class AdaptyNonSubscriptionCoder extends SimpleCoder<Model$30, Serializable$31> {
|
|
3808
|
+
protected properties: Properties<Model$30, Serializable$31>;
|
|
3527
3809
|
}
|
|
3528
3810
|
|
|
3529
3811
|
//#endregion
|
|
3530
3812
|
//#region src/coders/adapty-onboarding-builder.d.ts
|
|
3531
|
-
type Model$
|
|
3532
|
-
type Serializable$
|
|
3533
|
-
declare class AdaptyOnboardingBuilderCoder extends SimpleCoder<Model$
|
|
3534
|
-
protected properties: Properties<Model$
|
|
3813
|
+
type Model$29 = AdaptyOnboardingBuilder;
|
|
3814
|
+
type Serializable$30 = Required<Def['AdaptyOnboarding']>['onboarding_builder'];
|
|
3815
|
+
declare class AdaptyOnboardingBuilderCoder extends SimpleCoder<Model$29, Serializable$30> {
|
|
3816
|
+
protected properties: Properties<Model$29, Serializable$30>;
|
|
3535
3817
|
}
|
|
3536
3818
|
|
|
3537
3819
|
//#endregion
|
|
3538
3820
|
//#region src/coders/adapty-onboarding.d.ts
|
|
3539
|
-
type Model$
|
|
3540
|
-
type CodableModel$2 = Omit<Model$
|
|
3541
|
-
type Serializable$
|
|
3542
|
-
declare class AdaptyOnboardingCoder extends Coder<Model$
|
|
3543
|
-
protected properties: Properties<CodableModel$2, Serializable$
|
|
3544
|
-
decode(data: Serializable$
|
|
3545
|
-
encode(data: Model$
|
|
3821
|
+
type Model$28 = AdaptyOnboarding;
|
|
3822
|
+
type CodableModel$2 = Omit<Model$28, 'hasViewConfiguration'>;
|
|
3823
|
+
type Serializable$29 = Def['AdaptyOnboarding'];
|
|
3824
|
+
declare class AdaptyOnboardingCoder extends Coder<Model$28, CodableModel$2, Serializable$29> {
|
|
3825
|
+
protected properties: Properties<CodableModel$2, Serializable$29>;
|
|
3826
|
+
decode(data: Serializable$29): Model$28;
|
|
3827
|
+
encode(data: Model$28): Serializable$29;
|
|
3546
3828
|
}
|
|
3547
3829
|
|
|
3548
3830
|
//#endregion
|
|
3549
3831
|
//#region src/coders/adapty-paywall-product.d.ts
|
|
3550
|
-
type Model$
|
|
3551
|
-
type Serializable$
|
|
3552
|
-
declare class AdaptyPaywallProductCoder extends SimpleCoder<Model$
|
|
3553
|
-
protected properties: Properties<Model$
|
|
3554
|
-
getInput(data: Serializable$
|
|
3832
|
+
type Model$27 = AdaptyPaywallProduct;
|
|
3833
|
+
type Serializable$28 = Def['AdaptyPaywallProduct.Response'];
|
|
3834
|
+
declare class AdaptyPaywallProductCoder extends SimpleCoder<Model$27, Serializable$28> {
|
|
3835
|
+
protected properties: Properties<Model$27, Serializable$28>;
|
|
3836
|
+
getInput(data: Serializable$28): Def['AdaptyPaywallProduct.Request'];
|
|
3555
3837
|
}
|
|
3556
3838
|
|
|
3557
3839
|
//#endregion
|
|
3558
3840
|
//#region src/coders/adapty-placement.d.ts
|
|
3559
|
-
type Model$
|
|
3560
|
-
type Serializable$
|
|
3561
|
-
declare class AdaptyPlacementCoder extends SimpleCoder<Model$
|
|
3562
|
-
protected properties: Properties<Model$
|
|
3841
|
+
type Model$26 = AdaptyPlacement;
|
|
3842
|
+
type Serializable$27 = Def['AdaptyPlacement'];
|
|
3843
|
+
declare class AdaptyPlacementCoder extends SimpleCoder<Model$26, Serializable$27> {
|
|
3844
|
+
protected properties: Properties<Model$26, Serializable$27>;
|
|
3563
3845
|
}
|
|
3564
3846
|
|
|
3565
3847
|
//#endregion
|
|
3566
3848
|
//#region src/coders/adapty-price.d.ts
|
|
3567
|
-
type Model$
|
|
3568
|
-
type Serializable$
|
|
3569
|
-
declare class AdaptyPriceCoder extends SimpleCoder<Model$
|
|
3570
|
-
protected properties: Properties<Model$
|
|
3849
|
+
type Model$25 = AdaptyPrice;
|
|
3850
|
+
type Serializable$26 = Def['AdaptyPrice'];
|
|
3851
|
+
declare class AdaptyPriceCoder extends SimpleCoder<Model$25, Serializable$26> {
|
|
3852
|
+
protected properties: Properties<Model$25, Serializable$26>;
|
|
3571
3853
|
}
|
|
3572
3854
|
|
|
3573
3855
|
//#endregion
|
|
3574
3856
|
//#region src/coders/adapty-promoted-product.d.ts
|
|
3575
|
-
type Model$
|
|
3576
|
-
type Serializable$
|
|
3577
|
-
declare class AdaptyPromotedProductCoder extends SimpleCoder<Model$
|
|
3578
|
-
protected properties: Properties<Model$
|
|
3579
|
-
getInput(data: Serializable$
|
|
3857
|
+
type Model$24 = AdaptyPromotedProduct;
|
|
3858
|
+
type Serializable$25 = Def['AdaptyPromotedProduct.Response'];
|
|
3859
|
+
declare class AdaptyPromotedProductCoder extends SimpleCoder<Model$24, Serializable$25> {
|
|
3860
|
+
protected properties: Properties<Model$24, Serializable$25>;
|
|
3861
|
+
getInput(data: Serializable$25): Def['AdaptyPromotedProduct.Request'];
|
|
3580
3862
|
}
|
|
3581
3863
|
|
|
3582
3864
|
//#endregion
|
|
3583
3865
|
//#region src/coders/adapty-profile-parameters.d.ts
|
|
3584
|
-
type Model$
|
|
3585
|
-
type Serializable$
|
|
3586
|
-
declare class AdaptyProfileParametersCoder extends SimpleCoder<Model$
|
|
3587
|
-
protected properties: Properties<Model$
|
|
3866
|
+
type Model$23 = AdaptyProfileParameters;
|
|
3867
|
+
type Serializable$24 = Def['AdaptyProfileParameters'];
|
|
3868
|
+
declare class AdaptyProfileParametersCoder extends SimpleCoder<Model$23, Serializable$24> {
|
|
3869
|
+
protected properties: Properties<Model$23, Serializable$24>;
|
|
3870
|
+
}
|
|
3871
|
+
|
|
3872
|
+
//#endregion
|
|
3873
|
+
//#region src/coders/adapty-profile-subscription-commitment-info.d.ts
|
|
3874
|
+
type Model$22 = AdaptyProfileSubscriptionCommitmentInfo;
|
|
3875
|
+
type Serializable$23 = Def['AdaptyProfile.SubscriptionCommitmentInfo'];
|
|
3876
|
+
declare class AdaptyProfileSubscriptionCommitmentInfoCoder extends SimpleCoder<Model$22, Serializable$23> {
|
|
3877
|
+
protected properties: Properties<Model$22, Serializable$23>;
|
|
3588
3878
|
}
|
|
3589
3879
|
|
|
3590
3880
|
//#endregion
|
|
3591
3881
|
//#region src/coders/adapty-profile.d.ts
|
|
3592
|
-
type Model$
|
|
3593
|
-
type Serializable$
|
|
3594
|
-
declare class AdaptyProfileCoder extends SimpleCoder<Model$
|
|
3595
|
-
protected properties: Properties<Model$
|
|
3882
|
+
type Model$21 = AdaptyProfile;
|
|
3883
|
+
type Serializable$22 = Def['AdaptyProfile'];
|
|
3884
|
+
declare class AdaptyProfileCoder extends SimpleCoder<Model$21, Serializable$22> {
|
|
3885
|
+
protected properties: Properties<Model$21, Serializable$22>;
|
|
3596
3886
|
}
|
|
3597
3887
|
|
|
3598
3888
|
//#endregion
|
|
3599
3889
|
//#region src/coders/adapty-purchase-params.d.ts
|
|
3600
|
-
type Model$
|
|
3601
|
-
type Serializable$
|
|
3890
|
+
type Model$20 = MakePurchaseParamsInput;
|
|
3891
|
+
type Serializable$21 = Record<string, unknown>;
|
|
3602
3892
|
declare class AdaptyPurchaseParamsCoder {
|
|
3603
3893
|
private readonly platform;
|
|
3604
3894
|
constructor(platform: IPlatformAdapter);
|
|
3605
|
-
encode(data: Model$
|
|
3895
|
+
encode(data: Model$20): Serializable$21;
|
|
3606
3896
|
}
|
|
3607
3897
|
|
|
3608
3898
|
//#endregion
|
|
3609
3899
|
//#region src/coders/adapty-purchase-result.d.ts
|
|
3610
|
-
type Model$
|
|
3611
|
-
type Serializable$
|
|
3612
|
-
declare class AdaptyPurchaseResultCoder extends SimpleCoder<Model$
|
|
3613
|
-
protected properties: Properties<Model$
|
|
3614
|
-
decode(data: Serializable$
|
|
3615
|
-
encode(data: Model$
|
|
3900
|
+
type Model$19 = AdaptyPurchaseResult;
|
|
3901
|
+
type Serializable$20 = Def['AdaptyPurchaseResult'];
|
|
3902
|
+
declare class AdaptyPurchaseResultCoder extends SimpleCoder<Model$19, Serializable$20> {
|
|
3903
|
+
protected properties: Properties<Model$19, Serializable$20>;
|
|
3904
|
+
decode(data: Serializable$20): Model$19;
|
|
3905
|
+
encode(data: Model$19): Serializable$20;
|
|
3616
3906
|
}
|
|
3617
3907
|
|
|
3618
3908
|
//#endregion
|
|
3619
3909
|
//#region src/coders/adapty-remote-config.d.ts
|
|
3620
|
-
type Model$
|
|
3621
|
-
type CodableModel$1 = Omit<Model$
|
|
3622
|
-
type Serializable$
|
|
3623
|
-
declare class AdaptyRemoteConfigCoder extends Coder<Model$
|
|
3624
|
-
protected properties: Properties<CodableModel$1, Serializable$
|
|
3625
|
-
decode(data: Serializable$
|
|
3626
|
-
encode(data: Model$
|
|
3910
|
+
type Model$18 = AdaptyRemoteConfig;
|
|
3911
|
+
type CodableModel$1 = Omit<Model$18, 'dataString'>;
|
|
3912
|
+
type Serializable$19 = Def['AdaptyRemoteConfig'];
|
|
3913
|
+
declare class AdaptyRemoteConfigCoder extends Coder<Model$18, CodableModel$1, Serializable$19> {
|
|
3914
|
+
protected properties: Properties<CodableModel$1, Serializable$19>;
|
|
3915
|
+
decode(data: Serializable$19): Model$18;
|
|
3916
|
+
encode(data: Model$18): Serializable$19;
|
|
3917
|
+
}
|
|
3918
|
+
|
|
3919
|
+
//#endregion
|
|
3920
|
+
//#region src/coders/adapty-subscription-commitment-info.d.ts
|
|
3921
|
+
type Model$17 = AdaptySubscriptionCommitmentInfo;
|
|
3922
|
+
type Serializable$18 = Def['AdaptySubscriptionCommitmentInfo'];
|
|
3923
|
+
declare class AdaptySubscriptionCommitmentInfoCoder extends SimpleCoder<Model$17, Serializable$18> {
|
|
3924
|
+
protected properties: Properties<Model$17, Serializable$18>;
|
|
3627
3925
|
}
|
|
3628
3926
|
|
|
3629
3927
|
//#endregion
|
|
3630
3928
|
//#region src/coders/adapty-subscription-details.d.ts
|
|
3631
|
-
type Model$
|
|
3632
|
-
type Serializable$
|
|
3633
|
-
declare class AdaptySubscriptionDetailsCoder extends SimpleCoder<Model$
|
|
3634
|
-
protected properties: Properties<Model$
|
|
3635
|
-
decode(data: Serializable$
|
|
3929
|
+
type Model$16 = AdaptySubscriptionDetails;
|
|
3930
|
+
type Serializable$17 = Def['AdaptyProduct.Subscription'];
|
|
3931
|
+
declare class AdaptySubscriptionDetailsCoder extends SimpleCoder<Model$16, Serializable$17> {
|
|
3932
|
+
protected properties: Properties<Model$16, Serializable$17>;
|
|
3933
|
+
decode(data: Serializable$17): Model$16;
|
|
3636
3934
|
}
|
|
3637
3935
|
|
|
3638
3936
|
//#endregion
|
|
3639
3937
|
//#region src/coders/adapty-subscription-offer-identifier.d.ts
|
|
3640
|
-
type Model$
|
|
3641
|
-
type Serializable$
|
|
3642
|
-
declare class AdaptySubscriptionOfferIdCoder extends SimpleCoder<Model$
|
|
3643
|
-
protected properties: Properties<Model$
|
|
3938
|
+
type Model$15 = AdaptySubscriptionOfferId;
|
|
3939
|
+
type Serializable$16 = Def['AdaptySubscriptionOffer.Identifier'];
|
|
3940
|
+
declare class AdaptySubscriptionOfferIdCoder extends SimpleCoder<Model$15, Serializable$16> {
|
|
3941
|
+
protected properties: Properties<Model$15, Serializable$16>;
|
|
3644
3942
|
}
|
|
3645
3943
|
|
|
3646
3944
|
//#endregion
|
|
3647
3945
|
//#region src/coders/adapty-subscription-offer.d.ts
|
|
3648
|
-
type Model$
|
|
3649
|
-
type Serializable$
|
|
3650
|
-
declare class AdaptySubscriptionOfferCoder extends SimpleCoder<Model$
|
|
3651
|
-
protected properties: Properties<Model$
|
|
3652
|
-
decode(data: Serializable$
|
|
3946
|
+
type Model$14 = AdaptySubscriptionOffer;
|
|
3947
|
+
type Serializable$15 = Def['AdaptySubscriptionOffer'];
|
|
3948
|
+
declare class AdaptySubscriptionOfferCoder extends SimpleCoder<Model$14, Serializable$15> {
|
|
3949
|
+
protected properties: Properties<Model$14, Serializable$15>;
|
|
3950
|
+
decode(data: Serializable$15): Model$14;
|
|
3653
3951
|
}
|
|
3654
3952
|
|
|
3655
3953
|
//#endregion
|
|
3656
3954
|
//#region src/coders/adapty-subscription-period.d.ts
|
|
3657
|
-
type Model$
|
|
3658
|
-
type Serializable$
|
|
3659
|
-
declare class AdaptySubscriptionPeriodCoder extends SimpleCoder<Model$
|
|
3660
|
-
protected properties: Properties<Model$
|
|
3955
|
+
type Model$13 = AdaptySubscriptionPeriod;
|
|
3956
|
+
type Serializable$14 = Def['AdaptySubscriptionPeriod'];
|
|
3957
|
+
declare class AdaptySubscriptionPeriodCoder extends SimpleCoder<Model$13, Serializable$14> {
|
|
3958
|
+
protected properties: Properties<Model$13, Serializable$14>;
|
|
3959
|
+
}
|
|
3960
|
+
|
|
3961
|
+
//#endregion
|
|
3962
|
+
//#region src/coders/adapty-subscription-pricing-terms.d.ts
|
|
3963
|
+
type Model$12 = AdaptySubscriptionPricingTerms;
|
|
3964
|
+
type Serializable$13 = Def['AdaptySubscriptionPricingTerms'];
|
|
3965
|
+
declare class AdaptySubscriptionPricingTermsCoder extends SimpleCoder<Model$12, Serializable$13> {
|
|
3966
|
+
protected properties: Properties<Model$12, Serializable$13>;
|
|
3661
3967
|
}
|
|
3662
3968
|
|
|
3663
3969
|
//#endregion
|
|
3664
3970
|
//#region src/coders/adapty-subscription.d.ts
|
|
3665
|
-
type Model$
|
|
3666
|
-
type Serializable$
|
|
3667
|
-
declare class AdaptySubscriptionCoder extends SimpleCoder<Model$
|
|
3668
|
-
protected properties: Properties<Model$
|
|
3971
|
+
type Model$11 = AdaptySubscription;
|
|
3972
|
+
type Serializable$12 = Def['AdaptyProfile.Subscription'];
|
|
3973
|
+
declare class AdaptySubscriptionCoder extends SimpleCoder<Model$11, Serializable$12> {
|
|
3974
|
+
protected properties: Properties<Model$11, Serializable$12>;
|
|
3669
3975
|
}
|
|
3670
3976
|
|
|
3671
3977
|
//#endregion
|
|
3672
3978
|
//#region src/coders/adapty-ui-dialog-config.d.ts
|
|
3673
|
-
type Model$
|
|
3674
|
-
type Serializable$
|
|
3675
|
-
declare class AdaptyUiDialogConfigCoder extends SimpleCoder<Model$
|
|
3676
|
-
protected properties: Properties<Model$
|
|
3979
|
+
type Model$10 = AdaptyUiDialogConfig;
|
|
3980
|
+
type Serializable$11 = Def['AdaptyUI.DialogConfiguration'];
|
|
3981
|
+
declare class AdaptyUiDialogConfigCoder extends SimpleCoder<Model$10, Serializable$11> {
|
|
3982
|
+
protected properties: Properties<Model$10, Serializable$11>;
|
|
3677
3983
|
}
|
|
3678
3984
|
|
|
3679
3985
|
//#endregion
|
|
3680
3986
|
//#region src/coders/adapty-ui-create-onboarding-view-params.d.ts
|
|
3681
|
-
type Serializable$
|
|
3987
|
+
type Serializable$10 = Pick<Req['AdaptyUICreateOnboardingView.Request'], 'external_urls_presentation'>;
|
|
3682
3988
|
declare class AdaptyUICreateOnboardingViewParamsCoder {
|
|
3683
|
-
encode(data: CreateOnboardingViewParamsInput): Serializable$
|
|
3989
|
+
encode(data: CreateOnboardingViewParamsInput): Serializable$10;
|
|
3684
3990
|
}
|
|
3685
3991
|
|
|
3686
3992
|
//#endregion
|
|
3687
3993
|
//#region src/coders/adapty-ui-create-flow-view-params.d.ts
|
|
3688
|
-
type Model$
|
|
3689
|
-
type Serializable$
|
|
3994
|
+
type Model$9 = CreateFlowViewParamsInput;
|
|
3995
|
+
type Serializable$9 = {
|
|
3690
3996
|
locale?: Def['AdaptyLocale'];
|
|
3691
3997
|
custom_layout_id?: string;
|
|
3692
3998
|
preload_products?: boolean;
|
|
@@ -3700,7 +4006,7 @@ type Serializable$8 = {
|
|
|
3700
4006
|
declare class AdaptyUICreateFlowViewParamsCoder {
|
|
3701
4007
|
private readonly platform;
|
|
3702
4008
|
constructor(platform: IPlatformAdapter);
|
|
3703
|
-
encode(data: Model$
|
|
4009
|
+
encode(data: Model$9): Serializable$9;
|
|
3704
4010
|
private encodeCustomTimers;
|
|
3705
4011
|
private encodeCustomAssets;
|
|
3706
4012
|
private encodeProductPurchaseParams;
|
|
@@ -3708,38 +4014,38 @@ declare class AdaptyUICreateFlowViewParamsCoder {
|
|
|
3708
4014
|
|
|
3709
4015
|
//#endregion
|
|
3710
4016
|
//#region src/coders/adapty-ui-media-cache.d.ts
|
|
3711
|
-
type Model$
|
|
3712
|
-
type Serializable$
|
|
3713
|
-
declare class AdaptyUiMediaCacheCoder extends SimpleCoder<Model$
|
|
3714
|
-
protected properties: Properties<Model$
|
|
4017
|
+
type Model$8 = AdaptyUiMediaCache;
|
|
4018
|
+
type Serializable$8 = Required<Def['AdaptyConfiguration']>['media_cache'];
|
|
4019
|
+
declare class AdaptyUiMediaCacheCoder extends SimpleCoder<Model$8, Serializable$8> {
|
|
4020
|
+
protected properties: Properties<Model$8, Serializable$8>;
|
|
3715
4021
|
}
|
|
3716
4022
|
|
|
3717
4023
|
//#endregion
|
|
3718
4024
|
//#region src/coders/adapty-ui-onboarding-meta.d.ts
|
|
3719
|
-
type Model$
|
|
3720
|
-
type Serializable$
|
|
3721
|
-
declare class AdaptyUiOnboardingMetaCoder extends SimpleCoder<Model$
|
|
3722
|
-
protected properties: Properties<Model$
|
|
4025
|
+
type Model$7 = AdaptyUiOnboardingMeta;
|
|
4026
|
+
type Serializable$7 = Def['AdaptyUI.OnboardingMeta'];
|
|
4027
|
+
declare class AdaptyUiOnboardingMetaCoder extends SimpleCoder<Model$7, Serializable$7> {
|
|
4028
|
+
protected properties: Properties<Model$7, Serializable$7>;
|
|
3723
4029
|
}
|
|
3724
4030
|
|
|
3725
4031
|
//#endregion
|
|
3726
4032
|
//#region src/coders/adapty-ui-onboarding-state-params.d.ts
|
|
3727
|
-
type Model$
|
|
3728
|
-
type Serializable$
|
|
3729
|
-
declare class AdaptyUiOnboardingStateParamsCoder extends SimpleCoder<Model$
|
|
3730
|
-
protected properties: Properties<Model$
|
|
4033
|
+
type Model$6 = AdaptyUiOnboardingStateParams;
|
|
4034
|
+
type Serializable$6 = Def['AdaptyUI.OnboardingsStateParams'];
|
|
4035
|
+
declare class AdaptyUiOnboardingStateParamsCoder extends SimpleCoder<Model$6, Serializable$6> {
|
|
4036
|
+
protected properties: Properties<Model$6, Serializable$6>;
|
|
3731
4037
|
}
|
|
3732
4038
|
|
|
3733
4039
|
//#endregion
|
|
3734
4040
|
//#region src/coders/adapty-ui-onboarding-state-updated-action.d.ts
|
|
3735
|
-
type Model$
|
|
3736
|
-
type BaseModel = Omit<Model$
|
|
3737
|
-
type Serializable$
|
|
3738
|
-
declare class AdaptyUiOnboardingStateUpdatedActionCoder extends SimpleCoder<BaseModel, Serializable$
|
|
4041
|
+
type Model$5 = OnboardingStateUpdatedAction;
|
|
4042
|
+
type BaseModel = Omit<Model$5, 'value'>;
|
|
4043
|
+
type Serializable$5 = Event['OnboardingViewEvent.OnStateUpdatedAction']['action'];
|
|
4044
|
+
declare class AdaptyUiOnboardingStateUpdatedActionCoder extends SimpleCoder<BaseModel, Serializable$5> {
|
|
3739
4045
|
private readonly paramCoder;
|
|
3740
|
-
protected properties: Properties<BaseModel, Serializable$
|
|
3741
|
-
decode(data: Serializable$
|
|
3742
|
-
encode(data: OnboardingStateUpdatedAction): Serializable$
|
|
4046
|
+
protected properties: Properties<BaseModel, Serializable$5>;
|
|
4047
|
+
decode(data: Serializable$5): OnboardingStateUpdatedAction;
|
|
4048
|
+
encode(data: OnboardingStateUpdatedAction): Serializable$5;
|
|
3743
4049
|
}
|
|
3744
4050
|
|
|
3745
4051
|
//#endregion
|
|
@@ -3754,12 +4060,12 @@ declare class ArrayCoder<Model, Serializable> implements Converter<Model[], Seri
|
|
|
3754
4060
|
//#endregion
|
|
3755
4061
|
//#region src/coders/bridge-error.d.ts
|
|
3756
4062
|
//# sourceMappingURL=array.d.ts.map
|
|
3757
|
-
type Model$
|
|
3758
|
-
type Serializable$
|
|
3759
|
-
declare class BridgeErrorCoder extends SimpleCoder<Model$
|
|
4063
|
+
type Model$4 = AdaptyBridgeError;
|
|
4064
|
+
type Serializable$4 = Record<string, any>;
|
|
4065
|
+
declare class BridgeErrorCoder extends SimpleCoder<Model$4, Serializable$4> implements ErrorConverter<Model$4> {
|
|
3760
4066
|
type: 'error';
|
|
3761
|
-
protected properties: Properties<Model$
|
|
3762
|
-
getError(data: Model$
|
|
4067
|
+
protected properties: Properties<Model$4, Serializable$4>;
|
|
4068
|
+
getError(data: Model$4): AdaptyError;
|
|
3763
4069
|
}
|
|
3764
4070
|
|
|
3765
4071
|
//#endregion
|
|
@@ -3786,18 +4092,26 @@ declare class HashmapCoder<T extends Converter<any, any>> implements Converter<R
|
|
|
3786
4092
|
//#endregion
|
|
3787
4093
|
//#region src/coders/json.d.ts
|
|
3788
4094
|
//# sourceMappingURL=hashmap.d.ts.map
|
|
3789
|
-
type Model$
|
|
4095
|
+
type Model$3 = Record<string, unknown>;
|
|
3790
4096
|
type Serialized$1 = string;
|
|
3791
|
-
declare class JSONCoder implements Converter<Model$
|
|
3792
|
-
decode(input: Serialized$1): Model$
|
|
3793
|
-
encode(value: Model$
|
|
4097
|
+
declare class JSONCoder implements Converter<Model$3, Serialized$1> {
|
|
4098
|
+
decode(input: Serialized$1): Model$3;
|
|
4099
|
+
encode(value: Model$3): Serialized$1;
|
|
3794
4100
|
}
|
|
3795
4101
|
|
|
3796
4102
|
//#endregion
|
|
3797
4103
|
//#region src/coders/product-reference.d.ts
|
|
3798
|
-
type Model$
|
|
3799
|
-
type Serializable$
|
|
3800
|
-
declare class ProductReferenceCoder extends SimpleCoder<Model$
|
|
4104
|
+
type Model$2 = ProductReference;
|
|
4105
|
+
type Serializable$3 = Def['AdaptyFlowPaywall.ProductReference'];
|
|
4106
|
+
declare class ProductReferenceCoder extends SimpleCoder<Model$2, Serializable$3> {
|
|
4107
|
+
protected properties: Properties<Model$2, Serializable$3>;
|
|
4108
|
+
}
|
|
4109
|
+
|
|
4110
|
+
//#endregion
|
|
4111
|
+
//#region src/coders/product-reference-pricing-terms.d.ts
|
|
4112
|
+
type Model$1 = ProductReferencePricingTerms;
|
|
4113
|
+
type Serializable$2 = NonNullable<Def['AdaptyFlowPaywall.ProductReference']['pricing_terms']>[number];
|
|
4114
|
+
declare class ProductReferencePricingTermsCoder extends SimpleCoder<Model$1, Serializable$2> {
|
|
3801
4115
|
protected properties: Properties<Model$1, Serializable$2>;
|
|
3802
4116
|
}
|
|
3803
4117
|
|
|
@@ -3838,15 +4152,19 @@ declare class CoderFactory {
|
|
|
3838
4152
|
createPlacementCoder(): AdaptyPlacementCoder;
|
|
3839
4153
|
createPriceCoder(): AdaptyPriceCoder;
|
|
3840
4154
|
createProductReferenceCoder(): ProductReferenceCoder;
|
|
4155
|
+
createProductReferencePricingTermsCoder(): ProductReferencePricingTermsCoder;
|
|
3841
4156
|
createProfileCoder(): AdaptyProfileCoder;
|
|
3842
4157
|
createProfileParametersCoder(): AdaptyProfileParametersCoder;
|
|
4158
|
+
createProfileSubscriptionCommitmentInfoCoder(): AdaptyProfileSubscriptionCommitmentInfoCoder;
|
|
3843
4159
|
createPromotedProductCoder(): AdaptyPromotedProductCoder;
|
|
3844
4160
|
createRemoteConfigCoder(): AdaptyRemoteConfigCoder;
|
|
3845
4161
|
createSubscriptionCoder(): AdaptySubscriptionCoder;
|
|
4162
|
+
createSubscriptionCommitmentInfoCoder(): AdaptySubscriptionCommitmentInfoCoder;
|
|
3846
4163
|
createSubscriptionDetailsCoder(): AdaptySubscriptionDetailsCoder;
|
|
3847
4164
|
createSubscriptionOfferCoder(): AdaptySubscriptionOfferCoder;
|
|
3848
4165
|
createSubscriptionOfferIdCoder(): AdaptySubscriptionOfferIdCoder;
|
|
3849
4166
|
createSubscriptionPeriodCoder(): AdaptySubscriptionPeriodCoder;
|
|
4167
|
+
createSubscriptionPricingTermsCoder(): AdaptySubscriptionPricingTermsCoder;
|
|
3850
4168
|
createUiCreateOnboardingViewParamsCoder(): AdaptyUICreateOnboardingViewParamsCoder;
|
|
3851
4169
|
createUiCreateFlowViewParamsCoder(): AdaptyUICreateFlowViewParamsCoder;
|
|
3852
4170
|
createUiDialogConfigCoder(): AdaptyUiDialogConfigCoder;
|
|
@@ -3962,7 +4280,7 @@ declare function extractOnboardingCallbackArgs<T extends keyof OnboardingEventHa
|
|
|
3962
4280
|
|
|
3963
4281
|
//#endregion
|
|
3964
4282
|
//#region src/coders/parse.d.ts
|
|
3965
|
-
declare const AdaptyTypes: readonly ["AdaptyError", "AdaptyProfile", "AdaptyPurchaseResult", "AdaptyFlow", "AdaptyPaywallProduct", "AdaptyPromotedProduct", "AdaptyOnboarding", "AdaptyRemoteConfig", "AdaptyInstallationStatus", "AdaptyInstallationDetails", "AdaptyUiView", "AdaptyUiDialogActionType", "AdaptyUiOnboardingMeta", "AdaptyUiOnboardingStateParams", "AdaptyUiOnboardingStateUpdatedAction", "Array<AdaptyPaywallProduct>", "BridgeError", "String", "Boolean", "Void"];
|
|
4283
|
+
declare const AdaptyTypes: readonly ["AdaptyError", "AdaptyProfile", "AdaptyPurchaseResult", "AdaptyFlow", "AdaptyPaywallProduct", "AdaptyPromotedProduct", "AdaptyOnboarding", "AdaptyRemoteConfig", "AdaptyInstallationStatus", "AdaptyInstallationDetails", "AdaptyUiView", "AdaptyUiDialogActionType", "AdaptyUiOnboardingMeta", "AdaptyUiOnboardingStateParams", "AdaptyUiOnboardingStateUpdatedAction", "Array<AdaptyPaywallProduct>", "Array<AdaptyStoreMessageType>", "BridgeError", "String", "Boolean", "Void"];
|
|
3966
4284
|
type AdaptyType = (typeof AdaptyTypes)[number];
|
|
3967
4285
|
declare function parseMethodResult<T>(factory: CoderFactory, input: string, resultType: AdaptyType, ctx?: LogContext): T;
|
|
3968
4286
|
declare function parseCommonEvent(factory: CoderFactory, event: string, input: string, ctx?: LogContext): any;
|
|
@@ -4030,5 +4348,5 @@ declare function withErrorContext<T extends (...args: never[]) => unknown>(callb
|
|
|
4030
4348
|
//#endregion
|
|
4031
4349
|
//# sourceMappingURL=with-error-context.d.ts.map
|
|
4032
4350
|
|
|
4033
|
-
export { ActivateParamsInput, AdaptyAccessLevel, AdaptyAndroidPurchaseParams, AdaptyAndroidSubscriptionUpdateReplacementMode, AdaptyBridgeError, AdaptyCustomAsset, AdaptyCustomColorAsset, AdaptyCustomGradientAsset, AdaptyCustomImageAsset, AdaptyCustomVideoAsset, AdaptyDiscountPhase, AdaptyError, AdaptyErrorInput, AdaptyExternalAttributionProvider, AdaptyFlow, AdaptyFlowPaywall, AdaptyFlowUiSchema, AdaptyFlowUiSchemaGrid, AdaptyFlowUiSchemaLayout, AdaptyIOSPresentationStyle, AdaptyInstallationDetails, AdaptyInstallationStatus, AdaptyNativeError, AdaptyNonSubscription, AdaptyOnboarding, AdaptyOnboardingBuilder, AdaptyPaywallProduct, AdaptyPermission, AdaptyPlacement, AdaptyPrice, AdaptyProductIdentifier, AdaptyProfile, AdaptyProfileParameters, AdaptyPromotedProduct, AdaptyPurchaseResult, AdaptyRemoteConfig, AdaptySubscription, AdaptySubscriptionDetails, AdaptySubscriptionOffer, AdaptySubscriptionOfferId, AdaptySubscriptionPeriod, AdaptyType, AdaptyUiDialogActionType, AdaptyUiDialogConfig, AdaptyUiMediaCache, AdaptyUiOnboardingMeta, AdaptyUiOnboardingStateParams, AdaptyUiView, AppTrackingTransparencyStatus, ArgType, CancellationReason, CoderDependencies, CoderFactory, Converter, CreateFlowViewParamsInput, CreateOnboardingViewParamsInput, DefaultLoggerAdapter, DefaultPlatformAdapter, DefaultSdkMetadataAdapter, ErrorCode, ErrorCodeName, ErrorConverter, EventHandlerResult, FetchPolicy, FileLocation, FlowDidAppearEvent, FlowDidAskPermissionEvent, FlowDidDisappearEvent, FlowDidFailLoadingProductsEvent, FlowDidFailPurchaseEvent, FlowDidFailRestoreEvent, FlowDidFinishPurchaseEvent, FlowDidFinishRestoreEvent, FlowDidFinishWebPaymentNavigationEvent, FlowDidPerformActionEvent, FlowDidReceiveAnalyticEvent, FlowDidReceiveErrorEvent, FlowDidRequestAppReviewEvent, FlowDidSelectProductEvent, FlowDidStartPurchaseEvent, FlowDidStartRestoreEvent, FlowEventHandlers, FlowEventId, FlowEventIdType, FlowEventView, FlowObserverDidInitiatePurchaseEvent, FlowObserverDidInitiateRestoreEvent, FlowPermissionResponse, FlowPermissionStatus, FlowUserAction, GLOBAL_EVENT_TO_NATIVE_EVENT, Gender, GetPaywallProductsParamsInput, GetPlacementForDefaultAudienceParamsInput, GetPlacementParamsInput, GlobalEventIdType, GlobalEventName, HANDLER_TO_EVENT_CONFIG, HANDLER_TO_NATIVE_EVENT, ILogContext, ILogScope, ILoggerAdapter, IPlatformAdapter, ISdkMetadataAdapter, IdentifyParamsInput, Log, LogArgs, LogContext, LogEvent, LogLevel, LogScope, LogSink, LogTrace, LoggerConfig, MakePurchaseParamsInput, MethodName, MethodNames, NATIVE_EVENT_RESOLVER, NATIVE_EVENT_TO_HANDLERS, ONBOARDING_EVENT_MAPPINGS, OfferType, OnboardingAnalyticsEvent, OnboardingAnalyticsEventName, OnboardingCloseEvent, OnboardingCustomEvent, OnboardingErrorEvent, OnboardingEventHandlers, OnboardingEventId, OnboardingEventIdType, OnboardingEventView, OnboardingFinishedLoadingEvent, OnboardingPaywallEvent, OnboardingStateUpdatedAction, OnboardingStateUpdatedEvent, ParsedFlowEvent, ParsedOnboardingEvent, PlatformOS, ProductPeriod, ProductPurchaseParams, ProductReference, RefundPreference, ScopeArgs, Serializable$1 as Serializable, VendorStore, WebPresentation, components, consoleLogSink, extractFlowCallbackArgs, extractOnboardingCallbackArgs, filterUndefined, generateId, getErrorCode, getErrorPrompt, mapValues, mergeOptions, parseCommonEvent, parseFlowEvent, parseMethodResult, parseOnboardingEvent, withErrorContext };
|
|
4351
|
+
export { ActivateParamsInput, AdaptyAccessLevel, AdaptyAndroidPurchaseParams, AdaptyAndroidSubscriptionUpdateReplacementMode, AdaptyBridgeError, AdaptyCustomAsset, AdaptyCustomColorAsset, AdaptyCustomGradientAsset, AdaptyCustomImageAsset, AdaptyCustomVideoAsset, AdaptyDiscountPhase, AdaptyError, AdaptyErrorInput, AdaptyExternalAttributionProvider, AdaptyFlow, AdaptyFlowPaywall, AdaptyFlowUiSchema, AdaptyFlowUiSchemaGrid, AdaptyFlowUiSchemaLayout, AdaptyIOSPresentationStyle, AdaptyInstallationDetails, AdaptyInstallationStatus, AdaptyNativeError, AdaptyNonSubscription, AdaptyOnboarding, AdaptyOnboardingBuilder, AdaptyPaywallProduct, AdaptyPermission, AdaptyPlacement, AdaptyPrice, AdaptyProductIdentifier, AdaptyProfile, AdaptyProfileParameters, AdaptyProfileSubscriptionCommitmentInfo, AdaptyPromotedProduct, AdaptyPurchaseResult, AdaptyRemoteConfig, AdaptyStoreMessageType, AdaptySubscription, AdaptySubscriptionCommitmentInfo, AdaptySubscriptionDetails, AdaptySubscriptionOffer, AdaptySubscriptionOfferId, AdaptySubscriptionPeriod, AdaptySubscriptionPricingTerms, AdaptyType, AdaptyUiDialogActionType, AdaptyUiDialogConfig, AdaptyUiMediaCache, AdaptyUiOnboardingMeta, AdaptyUiOnboardingStateParams, AdaptyUiView, AppTrackingTransparencyStatus, ArgType, CancellationReason, CoderDependencies, CoderFactory, Converter, CreateFlowViewParamsInput, CreateOnboardingViewParamsInput, DefaultLoggerAdapter, DefaultPlatformAdapter, DefaultSdkMetadataAdapter, ErrorCode, ErrorCodeName, ErrorConverter, EventHandlerResult, FetchPolicy, FileLocation, FlowDidAppearEvent, FlowDidAskPermissionEvent, FlowDidDisappearEvent, FlowDidFailLoadingProductsEvent, FlowDidFailPurchaseEvent, FlowDidFailRestoreEvent, FlowDidFinishPurchaseEvent, FlowDidFinishRestoreEvent, FlowDidFinishWebPaymentNavigationEvent, FlowDidPerformActionEvent, FlowDidReceiveAnalyticEvent, FlowDidReceiveErrorEvent, FlowDidRequestAppReviewEvent, FlowDidSelectProductEvent, FlowDidStartPurchaseEvent, FlowDidStartRestoreEvent, FlowEventHandlers, FlowEventId, FlowEventIdType, FlowEventView, FlowObserverDidInitiatePurchaseEvent, FlowObserverDidInitiateRestoreEvent, FlowPermissionResponse, FlowPermissionStatus, FlowUserAction, GLOBAL_EVENT_TO_NATIVE_EVENT, Gender, GetPaywallProductsParamsInput, GetPlacementForDefaultAudienceParamsInput, GetPlacementParamsInput, GlobalEventIdType, GlobalEventName, HANDLER_TO_EVENT_CONFIG, HANDLER_TO_NATIVE_EVENT, ILogContext, ILogScope, ILoggerAdapter, IPlatformAdapter, ISdkMetadataAdapter, IdentifyParamsInput, Log, LogArgs, LogContext, LogEvent, LogLevel, LogScope, LogSink, LogTrace, LoggerConfig, MakePurchaseParamsInput, MethodName, MethodNames, NATIVE_EVENT_RESOLVER, NATIVE_EVENT_TO_HANDLERS, ONBOARDING_EVENT_MAPPINGS, OfferType, OnboardingAnalyticsEvent, OnboardingAnalyticsEventName, OnboardingCloseEvent, OnboardingCustomEvent, OnboardingErrorEvent, OnboardingEventHandlers, OnboardingEventId, OnboardingEventIdType, OnboardingEventView, OnboardingFinishedLoadingEvent, OnboardingPaywallEvent, OnboardingStateUpdatedAction, OnboardingStateUpdatedEvent, ParsedFlowEvent, ParsedOnboardingEvent, PlatformOS, PreloadPlacementsParamsInput, ProductPeriod, ProductPurchaseParams, ProductReference, ProductReferencePricingTerms, RefundPreference, ScopeArgs, Serializable$1 as Serializable, SubscriptionBillingPlan, VendorStore, WebPresentation, components, consoleLogSink, extractFlowCallbackArgs, extractOnboardingCallbackArgs, filterUndefined, generateId, getErrorCode, getErrorPrompt, mapValues, mergeOptions, parseCommonEvent, parseFlowEvent, parseMethodResult, parseOnboardingEvent, withErrorContext };
|
|
4034
4352
|
//# sourceMappingURL=index.d.mts.map
|