react-native-iap 15.2.0 → 15.2.2
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/android/src/main/java/com/margelo/nitro/iap/HybridRnIap.kt +117 -114
- package/android/src/main/java/com/margelo/nitro/iap/ProductQueryHelpers.kt +42 -0
- package/android/src/test/java/com/margelo/nitro/iap/ProductQueryHelpersTest.kt +140 -0
- package/ios/HybridRnIap.swift +33 -0
- package/lib/module/hooks/useIAP.js.map +1 -1
- package/lib/module/hooks/useWebhookEvents.js +113 -0
- package/lib/module/hooks/useWebhookEvents.js.map +1 -0
- package/lib/module/index.js +331 -131
- package/lib/module/index.js.map +1 -1
- package/lib/module/kit-api.js +161 -0
- package/lib/module/kit-api.js.map +1 -0
- package/lib/module/types.js +16 -0
- package/lib/module/types.js.map +1 -1
- package/lib/module/utils/error.js.map +1 -1
- package/lib/module/utils/errorMapping.js +6 -0
- package/lib/module/utils/errorMapping.js.map +1 -1
- package/lib/module/webhook-client.js +164 -0
- package/lib/module/webhook-client.js.map +1 -0
- package/lib/typescript/plugin/src/withIAP.d.ts +1 -1
- package/lib/typescript/src/hooks/useIAP.d.ts +162 -2
- package/lib/typescript/src/hooks/useIAP.d.ts.map +1 -1
- package/lib/typescript/src/hooks/useWebhookEvents.d.ts +55 -0
- package/lib/typescript/src/hooks/useWebhookEvents.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +282 -129
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/kit-api.d.ts +54 -0
- package/lib/typescript/src/kit-api.d.ts.map +1 -0
- package/lib/typescript/src/specs/RnIap.nitro.d.ts +7 -0
- package/lib/typescript/src/specs/RnIap.nitro.d.ts.map +1 -1
- package/lib/typescript/src/types.d.ts +304 -74
- package/lib/typescript/src/types.d.ts.map +1 -1
- package/lib/typescript/src/utils/error.d.ts +3 -0
- package/lib/typescript/src/utils/error.d.ts.map +1 -1
- package/lib/typescript/src/utils/errorMapping.d.ts +6 -0
- package/lib/typescript/src/utils/errorMapping.d.ts.map +1 -1
- package/lib/typescript/src/webhook-client.d.ts +82 -0
- package/lib/typescript/src/webhook-client.d.ts.map +1 -0
- package/nitrogen/generated/android/NitroIap+autolinking.cmake +3 -0
- package/nitrogen/generated/android/c++/JAdvancedCommerceInfoIOS.hpp +118 -0
- package/nitrogen/generated/android/c++/JAdvancedCommerceItemDetailsIOS.hpp +62 -0
- package/nitrogen/generated/android/c++/JAdvancedCommerceItemIOS.hpp +78 -0
- package/nitrogen/generated/android/c++/JAdvancedCommerceRefundIOS.hpp +62 -0
- package/nitrogen/generated/android/c++/JHybridRnIapSpec.cpp +44 -0
- package/nitrogen/generated/android/c++/JHybridRnIapSpec.hpp +1 -0
- package/nitrogen/generated/android/c++/JPurchase.hpp +11 -0
- package/nitrogen/generated/android/c++/JPurchaseIOS.hpp +16 -1
- package/nitrogen/generated/android/c++/JRequestPurchaseResult.hpp +11 -0
- package/nitrogen/generated/android/c++/JVariant_NullType_AdvancedCommerceInfoIOS.cpp +26 -0
- package/nitrogen/generated/android/c++/JVariant_NullType_AdvancedCommerceInfoIOS.hpp +84 -0
- package/nitrogen/generated/android/c++/JVariant_NullType_AdvancedCommerceItemDetailsIOS.cpp +26 -0
- package/nitrogen/generated/android/c++/JVariant_NullType_AdvancedCommerceItemDetailsIOS.hpp +74 -0
- package/nitrogen/generated/android/c++/JVariant_NullType_Array_AdvancedCommerceRefundIOS_.cpp +35 -0
- package/nitrogen/generated/android/c++/JVariant_NullType_Array_AdvancedCommerceRefundIOS_.hpp +84 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/AdvancedCommerceInfoIOS.kt +59 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/AdvancedCommerceItemDetailsIOS.kt +38 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/AdvancedCommerceItemIOS.kt +44 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/AdvancedCommerceRefundIOS.kt +38 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/HybridRnIapSpec.kt +4 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/PurchaseIOS.kt +5 -2
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/Variant_NullType_AdvancedCommerceInfoIOS.kt +53 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/Variant_NullType_AdvancedCommerceItemDetailsIOS.kt +53 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/Variant_NullType_Array_AdvancedCommerceRefundIOS_.kt +53 -0
- package/nitrogen/generated/ios/NitroIap-Swift-Cxx-Bridge.hpp +166 -0
- package/nitrogen/generated/ios/NitroIap-Swift-Cxx-Umbrella.hpp +12 -0
- package/nitrogen/generated/ios/c++/HybridRnIapSpecSwift.hpp +20 -0
- package/nitrogen/generated/ios/swift/AdvancedCommerceInfoIOS.swift +294 -0
- package/nitrogen/generated/ios/swift/AdvancedCommerceItemDetailsIOS.swift +61 -0
- package/nitrogen/generated/ios/swift/AdvancedCommerceItemIOS.swift +141 -0
- package/nitrogen/generated/ios/swift/AdvancedCommerceRefundIOS.swift +61 -0
- package/nitrogen/generated/ios/swift/HybridRnIapSpec.swift +1 -0
- package/nitrogen/generated/ios/swift/HybridRnIapSpec_cxx.swift +25 -0
- package/nitrogen/generated/ios/swift/PurchaseIOS.swift +39 -2
- package/nitrogen/generated/ios/swift/Variant_NullType_AdvancedCommerceInfoIOS.swift +18 -0
- package/nitrogen/generated/ios/swift/Variant_NullType_AdvancedCommerceItemDetailsIOS.swift +18 -0
- package/nitrogen/generated/ios/swift/Variant_NullType__AdvancedCommerceRefundIOS_.swift +18 -0
- package/nitrogen/generated/shared/c++/AdvancedCommerceInfoIOS.hpp +117 -0
- package/nitrogen/generated/shared/c++/AdvancedCommerceItemDetailsIOS.hpp +86 -0
- package/nitrogen/generated/shared/c++/AdvancedCommerceItemIOS.hpp +99 -0
- package/nitrogen/generated/shared/c++/AdvancedCommerceRefundIOS.hpp +86 -0
- package/nitrogen/generated/shared/c++/HybridRnIapSpec.cpp +1 -0
- package/nitrogen/generated/shared/c++/HybridRnIapSpec.hpp +1 -0
- package/nitrogen/generated/shared/c++/PurchaseIOS.hpp +9 -2
- package/openiap-versions.json +3 -3
- package/package.json +1 -1
- package/plugin/build/withIAP.d.ts +1 -1
- package/plugin/src/withIAP.ts +1 -1
- package/src/hooks/useIAP.ts +162 -2
- package/src/hooks/useWebhookEvents.ts +180 -0
- package/src/index.ts +348 -130
- package/src/kit-api.ts +225 -0
- package/src/specs/RnIap.nitro.ts +8 -0
- package/src/types.ts +314 -74
- package/src/utils/error.ts +3 -0
- package/src/utils/errorMapping.ts +12 -0
- package/src/webhook-client.ts +312 -0
|
@@ -9,6 +9,12 @@ export interface EventSubscription {
|
|
|
9
9
|
remove(): void;
|
|
10
10
|
}
|
|
11
11
|
export { useIAP } from './hooks/useIAP';
|
|
12
|
+
export { useWebhookEvents } from './hooks/useWebhookEvents';
|
|
13
|
+
export type { UseWebhookEventsOptions, UseWebhookEventsResult, } from './hooks/useWebhookEvents';
|
|
14
|
+
export { connectWebhookStream, parseWebhookEventData, } from './webhook-client';
|
|
15
|
+
export type { WebhookEventPayload, WebhookEventStream, WebhookEventType as WebhookEventTypeName, WebhookListener, WebhookListenerError, WebhookListenerOptions, } from './webhook-client';
|
|
16
|
+
export { kitApi, KitApiError } from './kit-api';
|
|
17
|
+
export type { KitApiOptions, KitSubscription, EntitlementsResponse, StatusResponse, } from './kit-api';
|
|
12
18
|
/**
|
|
13
19
|
* Check if Nitro runtime is ready for IAP operations.
|
|
14
20
|
* This is useful for platforms like tvOS where Nitro may initialize later.
|
|
@@ -49,104 +55,271 @@ export interface DeveloperProvidedBillingDetailsAndroid {
|
|
|
49
55
|
export declare const developerProvidedBillingListenerAndroid: (listener: (details: DeveloperProvidedBillingDetailsAndroid) => void) => EventSubscription;
|
|
50
56
|
export declare const subscriptionBillingIssueListener: (listener: (purchase: Purchase) => void) => EventSubscription;
|
|
51
57
|
/**
|
|
52
|
-
*
|
|
53
|
-
* @param params - Product request configuration
|
|
54
|
-
* @param params.skus - Array of product SKUs to fetch
|
|
55
|
-
* @param params.type - Optional filter: 'in-app' (default) for products, 'subs' for subscriptions, or 'all' for both.
|
|
56
|
-
* @returns Promise<Product[]> - Array of products from the store
|
|
58
|
+
* Retrieve products or subscriptions from the store by SKU.
|
|
57
59
|
*
|
|
58
|
-
* @
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
60
|
+
* @param request `ProductRequest` — `skus` (string[]) and optional `type`
|
|
61
|
+
* (`'in-app' | 'subs' | 'all'`, defaults to `'in-app'`).
|
|
62
|
+
* @returns Promise resolving to a `FetchProductsResult` union — `Product[]` for `'in-app'`,
|
|
63
|
+
* `ProductSubscription[]` for `'subs'`, a mixed array for `'all'`, or `null`
|
|
64
|
+
* (the schema retains the nullable branch for backwards compatibility).
|
|
65
|
+
* @throws When the store rejects the request (empty `skus`, not connected,
|
|
66
|
+
* network/store error). Unknown SKUs are simply omitted from the result, not thrown.
|
|
62
67
|
*
|
|
63
|
-
*
|
|
64
|
-
*
|
|
68
|
+
* @example
|
|
69
|
+
* ```ts
|
|
70
|
+
* const products = await fetchProducts({
|
|
71
|
+
* skus: ['com.app.coins_100', 'com.app.premium'],
|
|
72
|
+
* type: 'in-app',
|
|
73
|
+
* });
|
|
65
74
|
* ```
|
|
75
|
+
*
|
|
76
|
+
* @remarks This is a regular promise-based call. Don't confuse with `request*` APIs
|
|
77
|
+
* (`requestPurchase`), which are event-based.
|
|
78
|
+
*
|
|
79
|
+
* @see {@link https://www.openiap.dev/docs/apis/fetch-products}
|
|
66
80
|
*/
|
|
67
81
|
export declare const fetchProducts: QueryField<'fetchProducts'>;
|
|
68
82
|
/**
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
* @param
|
|
83
|
+
* List the user's unfinished purchases — non-consumables, active subscriptions, and any
|
|
84
|
+
* pending transactions not yet finished.
|
|
85
|
+
*
|
|
86
|
+
* @param options Optional `PurchaseOptions`.
|
|
87
|
+
* - iOS: `alsoPublishToEventListenerIOS`, `onlyIncludeActiveItemsIOS`.
|
|
88
|
+
* - Android: `includeSuspendedAndroid` (include subscriptions in a paused/grace state).
|
|
89
|
+
* @returns Promise resolving to an array of `Purchase` currently held by the store.
|
|
90
|
+
* @throws When the platform query fails.
|
|
73
91
|
*
|
|
74
92
|
* @example
|
|
75
|
-
* ```
|
|
76
|
-
* const purchases = await getAvailablePurchases(
|
|
77
|
-
*
|
|
78
|
-
* });
|
|
93
|
+
* ```ts
|
|
94
|
+
* const purchases = await getAvailablePurchases();
|
|
95
|
+
* for (const p of purchases) {
|
|
96
|
+
* if (await verifyOnServer(p)) await finishTransaction({ purchase: p, isConsumable: false });
|
|
97
|
+
* }
|
|
79
98
|
* ```
|
|
99
|
+
*
|
|
100
|
+
* @see {@link https://www.openiap.dev/docs/apis/get-available-purchases}
|
|
80
101
|
*/
|
|
81
102
|
export declare const getAvailablePurchases: QueryField<'getAvailablePurchases'>;
|
|
82
103
|
/**
|
|
83
104
|
* Request the promoted product from the App Store (iOS only)
|
|
84
105
|
* @returns Promise<Product | null> - The promoted product or null if none available
|
|
85
106
|
* @platform iOS
|
|
107
|
+
*
|
|
108
|
+
* @see {@link https://www.openiap.dev/docs/apis/ios/get-promoted-product-ios}
|
|
86
109
|
*/
|
|
87
110
|
export declare const getPromotedProductIOS: QueryField<'getPromotedProductIOS'>;
|
|
88
111
|
export declare const requestPromotedProductIOS: () => Promise<ProductIOS | null>;
|
|
112
|
+
/**
|
|
113
|
+
* Get the storefront identifier for the user's App Store account (iOS only)
|
|
114
|
+
* @returns Promise<string> - The storefront identifier (e.g., 'USA' for United States)
|
|
115
|
+
* @platform iOS
|
|
116
|
+
*
|
|
117
|
+
* @example
|
|
118
|
+
* ```typescript
|
|
119
|
+
* const storefront = await getStorefrontIOS();
|
|
120
|
+
* console.log('User storefront:', storefront); // e.g., 'USA', 'GBR', 'KOR'
|
|
121
|
+
* ```
|
|
122
|
+
*
|
|
123
|
+
* @see {@link https://www.openiap.dev/docs/apis/ios/get-storefront-ios}
|
|
124
|
+
*/
|
|
89
125
|
export declare const getStorefrontIOS: QueryField<'getStorefrontIOS'>;
|
|
126
|
+
/**
|
|
127
|
+
* Return the user's storefront country code.
|
|
128
|
+
*
|
|
129
|
+
* @see {@link https://www.openiap.dev/docs/apis/get-storefront}
|
|
130
|
+
*/
|
|
90
131
|
export declare const getStorefront: QueryField<'getStorefront'>;
|
|
132
|
+
/**
|
|
133
|
+
* iOS only - Gets the original app transaction ID if the app was purchased from the App Store
|
|
134
|
+
* @platform iOS
|
|
135
|
+
* @description
|
|
136
|
+
* This function retrieves the original app transaction information if the app was purchased
|
|
137
|
+
* from the App Store. Returns null if the app was not purchased (e.g., free app or TestFlight).
|
|
138
|
+
*
|
|
139
|
+
* @returns {Promise<string | null>} The original app transaction ID or null
|
|
140
|
+
*
|
|
141
|
+
* @example
|
|
142
|
+
* ```typescript
|
|
143
|
+
* const appTransaction = await getAppTransactionIOS();
|
|
144
|
+
* if (appTransaction) {
|
|
145
|
+
* console.log('App was purchased, transaction ID:', appTransaction);
|
|
146
|
+
* } else {
|
|
147
|
+
* console.log('App was not purchased from App Store');
|
|
148
|
+
* }
|
|
149
|
+
* ```
|
|
150
|
+
*
|
|
151
|
+
* @see {@link https://www.openiap.dev/docs/apis/ios/get-app-transaction-ios}
|
|
152
|
+
*/
|
|
91
153
|
export declare const getAppTransactionIOS: QueryField<'getAppTransactionIOS'>;
|
|
154
|
+
/**
|
|
155
|
+
* Get subscription status for a product (iOS only)
|
|
156
|
+
* @param sku - The product SKU
|
|
157
|
+
* @returns Promise<SubscriptionStatusIOS[]> - Array of subscription status objects
|
|
158
|
+
* @throws Error when called on non-iOS platforms or when IAP is not initialized
|
|
159
|
+
* @platform iOS
|
|
160
|
+
*
|
|
161
|
+
* @see {@link https://www.openiap.dev/docs/apis/ios/subscription-status-ios}
|
|
162
|
+
*/
|
|
92
163
|
export declare const subscriptionStatusIOS: QueryField<'subscriptionStatusIOS'>;
|
|
164
|
+
/**
|
|
165
|
+
* Get current entitlement for a product (iOS only)
|
|
166
|
+
* @param sku - The product SKU
|
|
167
|
+
* @returns Promise<Purchase | null> - Current entitlement or null
|
|
168
|
+
* @platform iOS
|
|
169
|
+
*
|
|
170
|
+
* @see {@link https://www.openiap.dev/docs/apis/ios/current-entitlement-ios}
|
|
171
|
+
*/
|
|
93
172
|
export declare const currentEntitlementIOS: QueryField<'currentEntitlementIOS'>;
|
|
173
|
+
/**
|
|
174
|
+
* Get latest transaction for a product (iOS only)
|
|
175
|
+
* @param sku - The product SKU
|
|
176
|
+
* @returns Promise<Purchase | null> - Latest transaction or null
|
|
177
|
+
* @platform iOS
|
|
178
|
+
*
|
|
179
|
+
* @see {@link https://www.openiap.dev/docs/apis/ios/latest-transaction-ios}
|
|
180
|
+
*/
|
|
94
181
|
export declare const latestTransactionIOS: QueryField<'latestTransactionIOS'>;
|
|
182
|
+
/**
|
|
183
|
+
* Get pending transactions (iOS only)
|
|
184
|
+
* @returns Promise<Purchase[]> - Array of pending transactions
|
|
185
|
+
* @platform iOS
|
|
186
|
+
*
|
|
187
|
+
* @see {@link https://www.openiap.dev/docs/apis/ios/get-pending-transactions-ios}
|
|
188
|
+
*/
|
|
95
189
|
export declare const getPendingTransactionsIOS: QueryField<'getPendingTransactionsIOS'>;
|
|
190
|
+
/**
|
|
191
|
+
* List every StoreKit transaction (finished + unfinished) for the current user.
|
|
192
|
+
*
|
|
193
|
+
* @see {@link https://www.openiap.dev/docs/apis/ios/get-all-transactions-ios}
|
|
194
|
+
*/
|
|
195
|
+
export declare const getAllTransactionsIOS: QueryField<'getAllTransactionsIOS'>;
|
|
196
|
+
/**
|
|
197
|
+
* Show manage subscriptions screen (iOS only)
|
|
198
|
+
* @returns Promise<Purchase[]> - Subscriptions where auto-renewal status changed
|
|
199
|
+
* @platform iOS
|
|
200
|
+
*
|
|
201
|
+
* @see {@link https://www.openiap.dev/docs/apis/ios/show-manage-subscriptions-ios}
|
|
202
|
+
*/
|
|
96
203
|
export declare const showManageSubscriptionsIOS: MutationField<'showManageSubscriptionsIOS'>;
|
|
204
|
+
/**
|
|
205
|
+
* Check if user is eligible for intro offer (iOS only)
|
|
206
|
+
* @param groupID - The subscription group ID
|
|
207
|
+
* @returns Promise<boolean> - Eligibility status
|
|
208
|
+
* @platform iOS
|
|
209
|
+
*
|
|
210
|
+
* @see {@link https://www.openiap.dev/docs/apis/ios/is-eligible-for-intro-offer-ios}
|
|
211
|
+
*/
|
|
97
212
|
export declare const isEligibleForIntroOfferIOS: QueryField<'isEligibleForIntroOfferIOS'>;
|
|
213
|
+
/**
|
|
214
|
+
* Get receipt data (iOS only)
|
|
215
|
+
* @returns Promise<string> - Base64 encoded receipt data
|
|
216
|
+
* @platform iOS
|
|
217
|
+
*
|
|
218
|
+
* @see {@link https://www.openiap.dev/docs/apis/ios/get-receipt-data-ios}
|
|
219
|
+
*/
|
|
98
220
|
export declare const getReceiptDataIOS: QueryField<'getReceiptDataIOS'>;
|
|
99
221
|
export declare const getReceiptIOS: () => Promise<string>;
|
|
100
222
|
export declare const requestReceiptRefreshIOS: () => Promise<string>;
|
|
223
|
+
/**
|
|
224
|
+
* Check if transaction is verified (iOS only)
|
|
225
|
+
* @param sku - The product SKU
|
|
226
|
+
* @returns Promise<boolean> - Verification status
|
|
227
|
+
* @platform iOS
|
|
228
|
+
*
|
|
229
|
+
* @see {@link https://www.openiap.dev/docs/apis/ios/is-transaction-verified-ios}
|
|
230
|
+
*/
|
|
101
231
|
export declare const isTransactionVerifiedIOS: QueryField<'isTransactionVerifiedIOS'>;
|
|
232
|
+
/**
|
|
233
|
+
* Get transaction JWS representation (iOS only)
|
|
234
|
+
* @param sku - The product SKU
|
|
235
|
+
* @returns Promise<string | null> - JWS representation or null
|
|
236
|
+
* @platform iOS
|
|
237
|
+
*
|
|
238
|
+
* @see {@link https://www.openiap.dev/docs/apis/ios/get-transaction-jws-ios}
|
|
239
|
+
*/
|
|
102
240
|
export declare const getTransactionJwsIOS: QueryField<'getTransactionJwsIOS'>;
|
|
103
241
|
/**
|
|
104
|
-
* Initialize connection
|
|
105
|
-
*
|
|
106
|
-
* @param config
|
|
242
|
+
* Initialize the store connection. Must be called before any other IAP API.
|
|
243
|
+
*
|
|
244
|
+
* @param config Optional connection config. Use `enableBillingProgramAndroid` (Android,
|
|
245
|
+
* Play Billing 8.2.0+) to opt into External Payments etc. iOS ignores Android-specific fields.
|
|
246
|
+
* @returns Promise resolving to `true` when the platform billing client is connected.
|
|
247
|
+
* @throws When the platform billing client fails to initialize.
|
|
107
248
|
*
|
|
108
249
|
* @example
|
|
109
|
-
* ```
|
|
110
|
-
* // Standard billing (default)
|
|
250
|
+
* ```ts
|
|
111
251
|
* await initConnection();
|
|
252
|
+
* await initConnection({ enableBillingProgramAndroid: 'external-offer' });
|
|
253
|
+
* ```
|
|
112
254
|
*
|
|
113
|
-
*
|
|
114
|
-
*
|
|
115
|
-
* alternativeBillingModeAndroid: 'user-choice'
|
|
116
|
-
* });
|
|
255
|
+
* @remarks When using `useIAP()`, connection is auto-managed on mount/unmount —
|
|
256
|
+
* pass options to the hook instead of calling this directly.
|
|
117
257
|
*
|
|
118
|
-
*
|
|
119
|
-
* await initConnection({
|
|
120
|
-
* alternativeBillingModeAndroid: 'alternative-only'
|
|
121
|
-
* });
|
|
122
|
-
* ```
|
|
258
|
+
* @see {@link https://www.openiap.dev/docs/apis/init-connection}
|
|
123
259
|
*/
|
|
124
260
|
export declare const initConnection: MutationField<'initConnection'>;
|
|
125
261
|
/**
|
|
126
|
-
*
|
|
262
|
+
* Close the store connection and release resources.
|
|
263
|
+
*
|
|
264
|
+
* @see {@link https://www.openiap.dev/docs/apis/end-connection}
|
|
127
265
|
*/
|
|
128
266
|
export declare const endConnection: MutationField<'endConnection'>;
|
|
267
|
+
/**
|
|
268
|
+
* Restore non-consumable and active subscription purchases.
|
|
269
|
+
*
|
|
270
|
+
* @see {@link https://www.openiap.dev/docs/apis/restore-purchases}
|
|
271
|
+
*/
|
|
129
272
|
export declare const restorePurchases: MutationField<'restorePurchases'>;
|
|
130
273
|
/**
|
|
131
|
-
*
|
|
132
|
-
*
|
|
133
|
-
*
|
|
274
|
+
* Initiate a purchase or subscription flow. The result is delivered through
|
|
275
|
+
* `purchaseUpdatedListener` — NOT the return value.
|
|
276
|
+
*
|
|
277
|
+
* @param request `RequestPurchaseProps`, discriminated by `type`:
|
|
278
|
+
* - `type: 'in-app'` — pass `request.apple.sku` (iOS) and/or `request.google.skus` (Android).
|
|
279
|
+
* - `type: 'subs'` — same shape, plus `request.google.subscriptionOffers: [{ sku, offerToken }]`.
|
|
280
|
+
* @returns The dispatched purchase payload. **Do not rely on it** for the actual outcome.
|
|
281
|
+
* @throws Synchronous rejection from the store (e.g. `E_NOT_PREPARED`, validation failure).
|
|
282
|
+
*
|
|
283
|
+
* @example
|
|
284
|
+
* ```ts
|
|
285
|
+
* await requestPurchase({
|
|
286
|
+
* request: {
|
|
287
|
+
* apple: { sku: 'com.app.premium' },
|
|
288
|
+
* google: { skus: ['com.app.premium'] },
|
|
289
|
+
* },
|
|
290
|
+
* type: 'in-app',
|
|
291
|
+
* });
|
|
292
|
+
* ```
|
|
293
|
+
*
|
|
294
|
+
* @remarks Event-based. Listen for the result via {@link purchaseUpdatedListener} /
|
|
295
|
+
* {@link purchaseErrorListener}, or use `useIAP({ onPurchaseSuccess, onPurchaseError })`.
|
|
296
|
+
*
|
|
297
|
+
* @see {@link https://www.openiap.dev/docs/apis/request-purchase}
|
|
134
298
|
*/
|
|
135
299
|
export declare const requestPurchase: MutationField<'requestPurchase'>;
|
|
136
300
|
/**
|
|
137
|
-
*
|
|
138
|
-
*
|
|
139
|
-
*
|
|
140
|
-
* @param
|
|
141
|
-
* @
|
|
301
|
+
* Complete a purchase transaction. Call after server-side verification to remove it
|
|
302
|
+
* from the queue.
|
|
303
|
+
*
|
|
304
|
+
* @param args.purchase The `Purchase` to finalize.
|
|
305
|
+
* @param args.isConsumable `true` for consumables (consumes the token so the SKU can be
|
|
306
|
+
* re-bought, e.g. coins); `false` (default) for non-consumables and subscriptions.
|
|
307
|
+
* @returns Promise that resolves once the platform finalizes the transaction.
|
|
308
|
+
* @throws When the platform finalize call fails.
|
|
142
309
|
*
|
|
143
310
|
* @example
|
|
144
|
-
* ```
|
|
145
|
-
*
|
|
146
|
-
* purchase
|
|
147
|
-
*
|
|
311
|
+
* ```ts
|
|
312
|
+
* purchaseUpdatedListener(async (purchase) => {
|
|
313
|
+
* if (await verifyOnServer(purchase)) {
|
|
314
|
+
* await finishTransaction({ purchase, isConsumable: false });
|
|
315
|
+
* }
|
|
148
316
|
* });
|
|
149
317
|
* ```
|
|
318
|
+
*
|
|
319
|
+
* @remarks **Critical:** Android purchases must be finalized within 3 days or Google
|
|
320
|
+
* auto-refunds. iOS unfinished transactions replay on every app launch.
|
|
321
|
+
*
|
|
322
|
+
* @see {@link https://www.openiap.dev/docs/apis/finish-transaction}
|
|
150
323
|
*/
|
|
151
324
|
export declare const finishTransaction: MutationField<'finishTransaction'>;
|
|
152
325
|
/**
|
|
@@ -158,6 +331,8 @@ export declare const finishTransaction: MutationField<'finishTransaction'>;
|
|
|
158
331
|
* ```typescript
|
|
159
332
|
* await acknowledgePurchaseAndroid('purchase_token_here');
|
|
160
333
|
* ```
|
|
334
|
+
*
|
|
335
|
+
* @see {@link https://www.openiap.dev/docs/apis/android/acknowledge-purchase-android}
|
|
161
336
|
*/
|
|
162
337
|
export declare const acknowledgePurchaseAndroid: MutationField<'acknowledgePurchaseAndroid'>;
|
|
163
338
|
/**
|
|
@@ -169,6 +344,8 @@ export declare const acknowledgePurchaseAndroid: MutationField<'acknowledgePurch
|
|
|
169
344
|
* ```typescript
|
|
170
345
|
* await consumePurchaseAndroid('purchase_token_here');
|
|
171
346
|
* ```
|
|
347
|
+
*
|
|
348
|
+
* @see {@link https://www.openiap.dev/docs/apis/android/consume-purchase-android}
|
|
172
349
|
*/
|
|
173
350
|
export declare const consumePurchaseAndroid: MutationField<'consumePurchaseAndroid'>;
|
|
174
351
|
/**
|
|
@@ -194,6 +371,8 @@ export declare const consumePurchaseAndroid: MutationField<'consumePurchaseAndro
|
|
|
194
371
|
* }
|
|
195
372
|
* });
|
|
196
373
|
* ```
|
|
374
|
+
*
|
|
375
|
+
* @see {@link https://www.openiap.dev/docs/apis/validate-receipt}
|
|
197
376
|
*/
|
|
198
377
|
export declare const validateReceipt: MutationField<'validateReceipt'>;
|
|
199
378
|
/**
|
|
@@ -205,8 +384,20 @@ export declare const validateReceipt: MutationField<'validateReceipt'>;
|
|
|
205
384
|
*
|
|
206
385
|
* @param options - Receipt validation options containing the SKU
|
|
207
386
|
* @returns Promise resolving to receipt validation result
|
|
387
|
+
*
|
|
388
|
+
* @see {@link https://www.openiap.dev/docs/features/validation#verify-purchase}
|
|
208
389
|
*/
|
|
209
390
|
export declare const verifyPurchase: MutationField<'verifyPurchase'>;
|
|
391
|
+
/**
|
|
392
|
+
* iOS-only receipt validation alias.
|
|
393
|
+
*
|
|
394
|
+
* @deprecated Use `verifyPurchase` (or `validateReceipt`) instead. Kept so
|
|
395
|
+
* consumers who imported `validateReceiptIOS` — which is still declared on the
|
|
396
|
+
* OpenIAP Query interface — keep working. Throws on non-iOS platforms.
|
|
397
|
+
*
|
|
398
|
+
* @see {@link https://www.openiap.dev/docs/apis/ios/validate-receipt-ios}
|
|
399
|
+
*/
|
|
400
|
+
export declare const validateReceiptIOS: QueryField<'validateReceiptIOS'>;
|
|
210
401
|
/**
|
|
211
402
|
* Verify purchase with a specific provider (e.g., IAPKit)
|
|
212
403
|
*
|
|
@@ -227,18 +418,24 @@ export declare const verifyPurchase: MutationField<'verifyPurchase'>;
|
|
|
227
418
|
* },
|
|
228
419
|
* });
|
|
229
420
|
* ```
|
|
421
|
+
*
|
|
422
|
+
* @see {@link https://www.openiap.dev/docs/features/validation#verify-purchase-with-provider}
|
|
230
423
|
*/
|
|
231
424
|
export declare const verifyPurchaseWithProvider: MutationField<'verifyPurchaseWithProvider'>;
|
|
232
425
|
/**
|
|
233
426
|
* Sync iOS purchases with App Store (iOS only)
|
|
234
427
|
* @returns Promise<boolean>
|
|
235
428
|
* @platform iOS
|
|
429
|
+
*
|
|
430
|
+
* @see {@link https://www.openiap.dev/docs/apis/ios/sync-ios}
|
|
236
431
|
*/
|
|
237
432
|
export declare const syncIOS: MutationField<'syncIOS'>;
|
|
238
433
|
/**
|
|
239
434
|
* Present the code redemption sheet for offer codes (iOS only)
|
|
240
435
|
* @returns Promise<boolean> - Indicates whether the redemption sheet was presented
|
|
241
436
|
* @platform iOS
|
|
437
|
+
*
|
|
438
|
+
* @see {@link https://www.openiap.dev/docs/apis/ios/present-code-redemption-sheet-ios}
|
|
242
439
|
*/
|
|
243
440
|
export declare const presentCodeRedemptionSheetIOS: MutationField<'presentCodeRedemptionSheetIOS'>;
|
|
244
441
|
/**
|
|
@@ -260,12 +457,16 @@ export declare const presentCodeRedemptionSheetIOS: MutationField<'presentCodeRe
|
|
|
260
457
|
*
|
|
261
458
|
* @returns Promise<boolean> - true when the request triggers successfully
|
|
262
459
|
* @platform iOS
|
|
460
|
+
*
|
|
461
|
+
* @see {@link https://www.openiap.dev/docs/apis/ios/request-purchase-on-promoted-product-ios}
|
|
263
462
|
*/
|
|
264
463
|
export declare const requestPurchaseOnPromotedProductIOS: () => Promise<boolean>;
|
|
265
464
|
/**
|
|
266
465
|
* Clear unfinished transactions on iOS
|
|
267
466
|
* @returns Promise<boolean>
|
|
268
467
|
* @platform iOS
|
|
468
|
+
*
|
|
469
|
+
* @see {@link https://www.openiap.dev/docs/apis/ios/clear-transaction-ios}
|
|
269
470
|
*/
|
|
270
471
|
export declare const clearTransactionIOS: MutationField<'clearTransactionIOS'>;
|
|
271
472
|
/**
|
|
@@ -273,96 +474,18 @@ export declare const clearTransactionIOS: MutationField<'clearTransactionIOS'>;
|
|
|
273
474
|
* @param sku - The product SKU to refund
|
|
274
475
|
* @returns Promise<string | null> - The refund status or null if not available
|
|
275
476
|
* @platform iOS
|
|
276
|
-
*/
|
|
277
|
-
export declare const beginRefundRequestIOS: MutationField<'beginRefundRequestIOS'>;
|
|
278
|
-
/**
|
|
279
|
-
* Get subscription status for a product (iOS only)
|
|
280
|
-
* @param sku - The product SKU
|
|
281
|
-
* @returns Promise<SubscriptionStatusIOS[]> - Array of subscription status objects
|
|
282
|
-
* @throws Error when called on non-iOS platforms or when IAP is not initialized
|
|
283
|
-
* @platform iOS
|
|
284
|
-
*/
|
|
285
|
-
/**
|
|
286
|
-
* Get current entitlement for a product (iOS only)
|
|
287
|
-
* @param sku - The product SKU
|
|
288
|
-
* @returns Promise<Purchase | null> - Current entitlement or null
|
|
289
|
-
* @platform iOS
|
|
290
|
-
*/
|
|
291
|
-
/**
|
|
292
|
-
* Get latest transaction for a product (iOS only)
|
|
293
|
-
* @param sku - The product SKU
|
|
294
|
-
* @returns Promise<Purchase | null> - Latest transaction or null
|
|
295
|
-
* @platform iOS
|
|
296
|
-
*/
|
|
297
|
-
/**
|
|
298
|
-
* Get pending transactions (iOS only)
|
|
299
|
-
* @returns Promise<Purchase[]> - Array of pending transactions
|
|
300
|
-
* @platform iOS
|
|
301
|
-
*/
|
|
302
|
-
/**
|
|
303
|
-
* Show manage subscriptions screen (iOS only)
|
|
304
|
-
* @returns Promise<Purchase[]> - Subscriptions where auto-renewal status changed
|
|
305
|
-
* @platform iOS
|
|
306
|
-
*/
|
|
307
|
-
/**
|
|
308
|
-
* Check if user is eligible for intro offer (iOS only)
|
|
309
|
-
* @param groupID - The subscription group ID
|
|
310
|
-
* @returns Promise<boolean> - Eligibility status
|
|
311
|
-
* @platform iOS
|
|
312
|
-
*/
|
|
313
|
-
/**
|
|
314
|
-
* Get receipt data (iOS only)
|
|
315
|
-
* @returns Promise<string> - Base64 encoded receipt data
|
|
316
|
-
* @platform iOS
|
|
317
|
-
*/
|
|
318
|
-
/**
|
|
319
|
-
* Check if transaction is verified (iOS only)
|
|
320
|
-
* @param sku - The product SKU
|
|
321
|
-
* @returns Promise<boolean> - Verification status
|
|
322
|
-
* @platform iOS
|
|
323
|
-
*/
|
|
324
|
-
/**
|
|
325
|
-
* Get transaction JWS representation (iOS only)
|
|
326
|
-
* @param sku - The product SKU
|
|
327
|
-
* @returns Promise<string | null> - JWS representation or null
|
|
328
|
-
* @platform iOS
|
|
329
|
-
*/
|
|
330
|
-
/**
|
|
331
|
-
* Get the storefront identifier for the user's App Store account (iOS only)
|
|
332
|
-
* @returns Promise<string> - The storefront identifier (e.g., 'USA' for United States)
|
|
333
|
-
* @platform iOS
|
|
334
477
|
*
|
|
335
|
-
* @
|
|
336
|
-
* ```typescript
|
|
337
|
-
* const storefront = await getStorefrontIOS();
|
|
338
|
-
* console.log('User storefront:', storefront); // e.g., 'USA', 'GBR', 'KOR'
|
|
339
|
-
* ```
|
|
478
|
+
* @see {@link https://www.openiap.dev/docs/apis/ios/begin-refund-request-ios}
|
|
340
479
|
*/
|
|
480
|
+
export declare const beginRefundRequestIOS: MutationField<'beginRefundRequestIOS'>;
|
|
341
481
|
/**
|
|
342
482
|
* Deeplinks to native interface that allows users to manage their subscriptions
|
|
343
483
|
* Cross-platform alias aligning with expo-iap
|
|
484
|
+
*
|
|
485
|
+
* @see {@link https://www.openiap.dev/docs/apis/deep-link-to-subscriptions}
|
|
344
486
|
*/
|
|
345
487
|
export declare const deepLinkToSubscriptions: MutationField<'deepLinkToSubscriptions'>;
|
|
346
488
|
export declare const deepLinkToSubscriptionsIOS: () => Promise<boolean>;
|
|
347
|
-
/**
|
|
348
|
-
* iOS only - Gets the original app transaction ID if the app was purchased from the App Store
|
|
349
|
-
* @platform iOS
|
|
350
|
-
* @description
|
|
351
|
-
* This function retrieves the original app transaction information if the app was purchased
|
|
352
|
-
* from the App Store. Returns null if the app was not purchased (e.g., free app or TestFlight).
|
|
353
|
-
*
|
|
354
|
-
* @returns {Promise<string | null>} The original app transaction ID or null
|
|
355
|
-
*
|
|
356
|
-
* @example
|
|
357
|
-
* ```typescript
|
|
358
|
-
* const appTransaction = await getAppTransactionIOS();
|
|
359
|
-
* if (appTransaction) {
|
|
360
|
-
* console.log('App was purchased, transaction ID:', appTransaction);
|
|
361
|
-
* } else {
|
|
362
|
-
* console.log('App was not purchased from App Store');
|
|
363
|
-
* }
|
|
364
|
-
* ```
|
|
365
|
-
*/
|
|
366
489
|
/**
|
|
367
490
|
* Get all active subscriptions with detailed information (OpenIAP compliant)
|
|
368
491
|
* Returns an array of active subscriptions. If subscriptionIds is not provided,
|
|
@@ -375,6 +498,8 @@ export declare const deepLinkToSubscriptionsIOS: () => Promise<boolean>;
|
|
|
375
498
|
*
|
|
376
499
|
* @param subscriptionIds - Optional array of subscription IDs to filter by
|
|
377
500
|
* @returns Promise<ActiveSubscription[]> - Array of active subscriptions
|
|
501
|
+
*
|
|
502
|
+
* @see {@link https://www.openiap.dev/docs/apis/get-active-subscriptions}
|
|
378
503
|
*/
|
|
379
504
|
export declare const getActiveSubscriptions: QueryField<'getActiveSubscriptions'>;
|
|
380
505
|
export declare const hasActiveSubscriptions: QueryField<'hasActiveSubscriptions'>;
|
|
@@ -402,6 +527,8 @@ export declare const consumePurchase: (args: string) => Promise<boolean>;
|
|
|
402
527
|
* // Proceed with alternative billing flow
|
|
403
528
|
* }
|
|
404
529
|
* ```
|
|
530
|
+
*
|
|
531
|
+
* @see {@link https://www.openiap.dev/docs/apis/android/check-alternative-billing-availability-android}
|
|
405
532
|
*/
|
|
406
533
|
export declare const checkAlternativeBillingAvailabilityAndroid: MutationField<'checkAlternativeBillingAvailabilityAndroid'>;
|
|
407
534
|
/**
|
|
@@ -426,6 +553,8 @@ export declare const checkAlternativeBillingAvailabilityAndroid: MutationField<'
|
|
|
426
553
|
* }
|
|
427
554
|
* }
|
|
428
555
|
* ```
|
|
556
|
+
*
|
|
557
|
+
* @see {@link https://www.openiap.dev/docs/apis/android/show-alternative-billing-dialog-android}
|
|
429
558
|
*/
|
|
430
559
|
export declare const showAlternativeBillingDialogAndroid: MutationField<'showAlternativeBillingDialogAndroid'>;
|
|
431
560
|
/**
|
|
@@ -450,6 +579,8 @@ export declare const showAlternativeBillingDialogAndroid: MutationField<'showAlt
|
|
|
450
579
|
* });
|
|
451
580
|
* }
|
|
452
581
|
* ```
|
|
582
|
+
*
|
|
583
|
+
* @see {@link https://www.openiap.dev/docs/apis/android/create-alternative-billing-token-android}
|
|
453
584
|
*/
|
|
454
585
|
export declare const createAlternativeBillingTokenAndroid: MutationField<'createAlternativeBillingTokenAndroid'>;
|
|
455
586
|
/**
|
|
@@ -514,6 +645,8 @@ export declare const enableBillingProgramAndroid: (program: BillingProgramAndroi
|
|
|
514
645
|
* // External offers are available for this user
|
|
515
646
|
* }
|
|
516
647
|
* ```
|
|
648
|
+
*
|
|
649
|
+
* @see {@link https://www.openiap.dev/docs/apis/android/is-billing-program-available-android}
|
|
517
650
|
*/
|
|
518
651
|
export declare const isBillingProgramAvailableAndroid: MutationField<'isBillingProgramAvailableAndroid'>;
|
|
519
652
|
/**
|
|
@@ -534,6 +667,8 @@ export declare const isBillingProgramAvailableAndroid: MutationField<'isBillingP
|
|
|
534
667
|
* body: JSON.stringify({ token: details.externalTransactionToken })
|
|
535
668
|
* });
|
|
536
669
|
* ```
|
|
670
|
+
*
|
|
671
|
+
* @see {@link https://www.openiap.dev/docs/apis/android/create-billing-program-reporting-details-android}
|
|
537
672
|
*/
|
|
538
673
|
export declare const createBillingProgramReportingDetailsAndroid: MutationField<'createBillingProgramReportingDetailsAndroid'>;
|
|
539
674
|
/**
|
|
@@ -556,10 +691,16 @@ export declare const createBillingProgramReportingDetailsAndroid: MutationField<
|
|
|
556
691
|
* console.log('User accepted external link');
|
|
557
692
|
* }
|
|
558
693
|
* ```
|
|
694
|
+
*
|
|
695
|
+
* @see {@link https://www.openiap.dev/docs/apis/android/launch-external-link-android}
|
|
559
696
|
*/
|
|
560
697
|
export declare const launchExternalLinkAndroid: MutationField<'launchExternalLinkAndroid'>;
|
|
561
698
|
/**
|
|
562
|
-
* Check if the device can present an external purchase notice sheet (iOS
|
|
699
|
+
* Check if the device can present an external purchase notice sheet (iOS 17.4+).
|
|
700
|
+
*
|
|
701
|
+
* Wraps `ExternalPurchase.canPresent`, which Apple introduced in iOS 17.4.
|
|
702
|
+
* Note: the notice sheet itself (`presentExternalPurchaseNoticeSheetIOS`)
|
|
703
|
+
* still requires iOS 18.2+; only the eligibility check is available earlier.
|
|
563
704
|
*
|
|
564
705
|
* @returns Promise<boolean> - true if notice sheet can be presented
|
|
565
706
|
* @platform iOS
|
|
@@ -572,6 +713,8 @@ export declare const launchExternalLinkAndroid: MutationField<'launchExternalLin
|
|
|
572
713
|
* const result = await presentExternalPurchaseNoticeSheetIOS();
|
|
573
714
|
* }
|
|
574
715
|
* ```
|
|
716
|
+
*
|
|
717
|
+
* @see {@link https://www.openiap.dev/docs/apis/ios/can-present-external-purchase-notice-ios}
|
|
575
718
|
*/
|
|
576
719
|
export declare const canPresentExternalPurchaseNoticeIOS: QueryField<'canPresentExternalPurchaseNoticeIOS'>;
|
|
577
720
|
/**
|
|
@@ -589,6 +732,8 @@ export declare const canPresentExternalPurchaseNoticeIOS: QueryField<'canPresent
|
|
|
589
732
|
* await presentExternalPurchaseLinkIOS('https://your-website.com/purchase');
|
|
590
733
|
* }
|
|
591
734
|
* ```
|
|
735
|
+
*
|
|
736
|
+
* @see {@link https://www.openiap.dev/docs/apis/ios/present-external-purchase-notice-sheet-ios}
|
|
592
737
|
*/
|
|
593
738
|
export declare const presentExternalPurchaseNoticeSheetIOS: () => Promise<ExternalPurchaseNoticeResultIOS>;
|
|
594
739
|
/**
|
|
@@ -605,6 +750,8 @@ export declare const presentExternalPurchaseNoticeSheetIOS: () => Promise<Extern
|
|
|
605
750
|
* console.log('User completed external purchase');
|
|
606
751
|
* }
|
|
607
752
|
* ```
|
|
753
|
+
*
|
|
754
|
+
* @see {@link https://www.openiap.dev/docs/apis/ios/present-external-purchase-link-ios}
|
|
608
755
|
*/
|
|
609
756
|
export declare const presentExternalPurchaseLinkIOS: MutationField<'presentExternalPurchaseLinkIOS'>;
|
|
610
757
|
/**
|
|
@@ -622,6 +769,8 @@ export declare const presentExternalPurchaseLinkIOS: MutationField<'presentExter
|
|
|
622
769
|
* // App can use custom external purchase links
|
|
623
770
|
* }
|
|
624
771
|
* ```
|
|
772
|
+
*
|
|
773
|
+
* @see {@link https://www.openiap.dev/docs/apis/ios/is-eligible-for-external-purchase-custom-link-ios}
|
|
625
774
|
*/
|
|
626
775
|
export declare const isEligibleForExternalPurchaseCustomLinkIOS: () => Promise<boolean>;
|
|
627
776
|
/**
|
|
@@ -642,6 +791,8 @@ export declare const isEligibleForExternalPurchaseCustomLinkIOS: () => Promise<b
|
|
|
642
791
|
* await reportToApple(result.token);
|
|
643
792
|
* }
|
|
644
793
|
* ```
|
|
794
|
+
*
|
|
795
|
+
* @see {@link https://www.openiap.dev/docs/apis/ios/get-external-purchase-custom-link-token-ios}
|
|
645
796
|
*/
|
|
646
797
|
export declare const getExternalPurchaseCustomLinkTokenIOS: (tokenType: ExternalPurchaseCustomLinkTokenTypeIOS) => Promise<ExternalPurchaseCustomLinkTokenResultIOS>;
|
|
647
798
|
/**
|
|
@@ -662,6 +813,8 @@ export declare const getExternalPurchaseCustomLinkTokenIOS: (tokenType: External
|
|
|
662
813
|
* await Linking.openURL('https://your-store.com/checkout');
|
|
663
814
|
* }
|
|
664
815
|
* ```
|
|
816
|
+
*
|
|
817
|
+
* @see {@link https://www.openiap.dev/docs/apis/ios/show-external-purchase-custom-link-notice-ios}
|
|
665
818
|
*/
|
|
666
819
|
export declare const showExternalPurchaseCustomLinkNoticeIOS: (noticeType: ExternalPurchaseCustomLinkNoticeTypeIOS) => Promise<ExternalPurchaseCustomLinkNoticeResultIOS>;
|
|
667
820
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,4BAA4B,CAAC;AAapC,OAAO,KAAK,EAGV,yCAAyC,EACzC,uCAAuC,EACvC,wCAAwC,EACxC,sCAAsC,EACtC,+BAA+B,EAE/B,aAAa,EACb,OAAO,EACP,UAAU,EAGV,QAAQ,EACR,aAAa,EAEb,UAAU,EAWX,MAAM,SAAS,CAAC;AA0BjB,OAAO,KAAK,EACV,qBAAqB,EACrB,6BAA6B,EAC7B,uBAAuB,EACxB,MAAM,SAAS,CAAC;AAGjB,YAAY,EACV,KAAK,EACL,YAAY,EACZ,aAAa,EACb,mBAAmB,GACpB,MAAM,qBAAqB,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAE9B,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;AAgC3D,MAAM,WAAW,iBAAiB;IAChC,MAAM,IAAI,IAAI,CAAC;CAChB;AAKD,OAAO,EAAC,MAAM,EAAC,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,4BAA4B,CAAC;AAapC,OAAO,KAAK,EAGV,yCAAyC,EACzC,uCAAuC,EACvC,wCAAwC,EACxC,sCAAsC,EACtC,+BAA+B,EAE/B,aAAa,EACb,OAAO,EACP,UAAU,EAGV,QAAQ,EACR,aAAa,EAEb,UAAU,EAWX,MAAM,SAAS,CAAC;AA0BjB,OAAO,KAAK,EACV,qBAAqB,EACrB,6BAA6B,EAC7B,uBAAuB,EACxB,MAAM,SAAS,CAAC;AAGjB,YAAY,EACV,KAAK,EACL,YAAY,EACZ,aAAa,EACb,mBAAmB,GACpB,MAAM,qBAAqB,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAE9B,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,QAAQ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