react-native-iap 15.1.0 → 15.2.1
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 +171 -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 +72 -1
- package/lib/module/hooks/useIAP.js +11 -1
- 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 +405 -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 +172 -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 +283 -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 +24 -0
- package/lib/typescript/src/specs/RnIap.nitro.d.ts.map +1 -1
- package/lib/typescript/src/types.d.ts +320 -75
- 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 +52 -0
- package/nitrogen/generated/android/c++/JHybridRnIapSpec.hpp +3 -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 +22 -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 +32 -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 +3 -0
- package/nitrogen/generated/ios/swift/HybridRnIapSpec_cxx.swift +57 -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 +3 -0
- package/nitrogen/generated/shared/c++/HybridRnIapSpec.hpp +3 -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 +185 -2
- package/src/hooks/useWebhookEvents.ts +180 -0
- package/src/index.ts +440 -130
- package/src/kit-api.ts +225 -0
- package/src/specs/RnIap.nitro.ts +31 -0
- package/src/types.ts +330 -75
- 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.
|
|
@@ -47,105 +53,273 @@ export interface DeveloperProvidedBillingDetailsAndroid {
|
|
|
47
53
|
externalTransactionToken: string;
|
|
48
54
|
}
|
|
49
55
|
export declare const developerProvidedBillingListenerAndroid: (listener: (details: DeveloperProvidedBillingDetailsAndroid) => void) => EventSubscription;
|
|
56
|
+
export declare const subscriptionBillingIssueListener: (listener: (purchase: Purchase) => void) => EventSubscription;
|
|
50
57
|
/**
|
|
51
|
-
*
|
|
52
|
-
* @param params - Product request configuration
|
|
53
|
-
* @param params.skus - Array of product SKUs to fetch
|
|
54
|
-
* @param params.type - Optional filter: 'in-app' (default) for products, 'subs' for subscriptions, or 'all' for both.
|
|
55
|
-
* @returns Promise<Product[]> - Array of products from the store
|
|
58
|
+
* Retrieve products or subscriptions from the store by SKU.
|
|
56
59
|
*
|
|
57
|
-
* @
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
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.
|
|
61
67
|
*
|
|
62
|
-
*
|
|
63
|
-
*
|
|
68
|
+
* @example
|
|
69
|
+
* ```ts
|
|
70
|
+
* const products = await fetchProducts({
|
|
71
|
+
* skus: ['com.app.coins_100', 'com.app.premium'],
|
|
72
|
+
* type: 'in-app',
|
|
73
|
+
* });
|
|
64
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}
|
|
65
80
|
*/
|
|
66
81
|
export declare const fetchProducts: QueryField<'fetchProducts'>;
|
|
67
82
|
/**
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
* @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.
|
|
72
91
|
*
|
|
73
92
|
* @example
|
|
74
|
-
* ```
|
|
75
|
-
* const purchases = await getAvailablePurchases(
|
|
76
|
-
*
|
|
77
|
-
* });
|
|
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
|
+
* }
|
|
78
98
|
* ```
|
|
99
|
+
*
|
|
100
|
+
* @see {@link https://www.openiap.dev/docs/apis/get-available-purchases}
|
|
79
101
|
*/
|
|
80
102
|
export declare const getAvailablePurchases: QueryField<'getAvailablePurchases'>;
|
|
81
103
|
/**
|
|
82
104
|
* Request the promoted product from the App Store (iOS only)
|
|
83
105
|
* @returns Promise<Product | null> - The promoted product or null if none available
|
|
84
106
|
* @platform iOS
|
|
107
|
+
*
|
|
108
|
+
* @see {@link https://www.openiap.dev/docs/apis/ios/get-promoted-product-ios}
|
|
85
109
|
*/
|
|
86
110
|
export declare const getPromotedProductIOS: QueryField<'getPromotedProductIOS'>;
|
|
87
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
|
+
*/
|
|
88
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
|
+
*/
|
|
89
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
|
+
*/
|
|
90
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
|
+
*/
|
|
91
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
|
+
*/
|
|
92
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
|
+
*/
|
|
93
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
|
+
*/
|
|
94
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
|
+
*/
|
|
95
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
|
+
*/
|
|
96
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
|
+
*/
|
|
97
220
|
export declare const getReceiptDataIOS: QueryField<'getReceiptDataIOS'>;
|
|
98
221
|
export declare const getReceiptIOS: () => Promise<string>;
|
|
99
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
|
+
*/
|
|
100
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
|
+
*/
|
|
101
240
|
export declare const getTransactionJwsIOS: QueryField<'getTransactionJwsIOS'>;
|
|
102
241
|
/**
|
|
103
|
-
* Initialize connection
|
|
104
|
-
*
|
|
105
|
-
* @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.
|
|
106
248
|
*
|
|
107
249
|
* @example
|
|
108
|
-
* ```
|
|
109
|
-
* // Standard billing (default)
|
|
250
|
+
* ```ts
|
|
110
251
|
* await initConnection();
|
|
252
|
+
* await initConnection({ enableBillingProgramAndroid: 'external-offer' });
|
|
253
|
+
* ```
|
|
111
254
|
*
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
* alternativeBillingModeAndroid: 'user-choice'
|
|
115
|
-
* });
|
|
255
|
+
* @remarks When using `useIAP()`, connection is auto-managed on mount/unmount —
|
|
256
|
+
* pass options to the hook instead of calling this directly.
|
|
116
257
|
*
|
|
117
|
-
*
|
|
118
|
-
* await initConnection({
|
|
119
|
-
* alternativeBillingModeAndroid: 'alternative-only'
|
|
120
|
-
* });
|
|
121
|
-
* ```
|
|
258
|
+
* @see {@link https://www.openiap.dev/docs/apis/init-connection}
|
|
122
259
|
*/
|
|
123
260
|
export declare const initConnection: MutationField<'initConnection'>;
|
|
124
261
|
/**
|
|
125
|
-
*
|
|
262
|
+
* Close the store connection and release resources.
|
|
263
|
+
*
|
|
264
|
+
* @see {@link https://www.openiap.dev/docs/apis/end-connection}
|
|
126
265
|
*/
|
|
127
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
|
+
*/
|
|
128
272
|
export declare const restorePurchases: MutationField<'restorePurchases'>;
|
|
129
273
|
/**
|
|
130
|
-
*
|
|
131
|
-
*
|
|
132
|
-
*
|
|
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}
|
|
133
298
|
*/
|
|
134
299
|
export declare const requestPurchase: MutationField<'requestPurchase'>;
|
|
135
300
|
/**
|
|
136
|
-
*
|
|
137
|
-
*
|
|
138
|
-
*
|
|
139
|
-
* @param
|
|
140
|
-
* @
|
|
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.
|
|
141
309
|
*
|
|
142
310
|
* @example
|
|
143
|
-
* ```
|
|
144
|
-
*
|
|
145
|
-
* purchase
|
|
146
|
-
*
|
|
311
|
+
* ```ts
|
|
312
|
+
* purchaseUpdatedListener(async (purchase) => {
|
|
313
|
+
* if (await verifyOnServer(purchase)) {
|
|
314
|
+
* await finishTransaction({ purchase, isConsumable: false });
|
|
315
|
+
* }
|
|
147
316
|
* });
|
|
148
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}
|
|
149
323
|
*/
|
|
150
324
|
export declare const finishTransaction: MutationField<'finishTransaction'>;
|
|
151
325
|
/**
|
|
@@ -157,6 +331,8 @@ export declare const finishTransaction: MutationField<'finishTransaction'>;
|
|
|
157
331
|
* ```typescript
|
|
158
332
|
* await acknowledgePurchaseAndroid('purchase_token_here');
|
|
159
333
|
* ```
|
|
334
|
+
*
|
|
335
|
+
* @see {@link https://www.openiap.dev/docs/apis/android/acknowledge-purchase-android}
|
|
160
336
|
*/
|
|
161
337
|
export declare const acknowledgePurchaseAndroid: MutationField<'acknowledgePurchaseAndroid'>;
|
|
162
338
|
/**
|
|
@@ -168,6 +344,8 @@ export declare const acknowledgePurchaseAndroid: MutationField<'acknowledgePurch
|
|
|
168
344
|
* ```typescript
|
|
169
345
|
* await consumePurchaseAndroid('purchase_token_here');
|
|
170
346
|
* ```
|
|
347
|
+
*
|
|
348
|
+
* @see {@link https://www.openiap.dev/docs/apis/android/consume-purchase-android}
|
|
171
349
|
*/
|
|
172
350
|
export declare const consumePurchaseAndroid: MutationField<'consumePurchaseAndroid'>;
|
|
173
351
|
/**
|
|
@@ -193,6 +371,8 @@ export declare const consumePurchaseAndroid: MutationField<'consumePurchaseAndro
|
|
|
193
371
|
* }
|
|
194
372
|
* });
|
|
195
373
|
* ```
|
|
374
|
+
*
|
|
375
|
+
* @see {@link https://www.openiap.dev/docs/apis/validate-receipt}
|
|
196
376
|
*/
|
|
197
377
|
export declare const validateReceipt: MutationField<'validateReceipt'>;
|
|
198
378
|
/**
|
|
@@ -204,8 +384,20 @@ export declare const validateReceipt: MutationField<'validateReceipt'>;
|
|
|
204
384
|
*
|
|
205
385
|
* @param options - Receipt validation options containing the SKU
|
|
206
386
|
* @returns Promise resolving to receipt validation result
|
|
387
|
+
*
|
|
388
|
+
* @see {@link https://www.openiap.dev/docs/features/validation#verify-purchase}
|
|
207
389
|
*/
|
|
208
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'>;
|
|
209
401
|
/**
|
|
210
402
|
* Verify purchase with a specific provider (e.g., IAPKit)
|
|
211
403
|
*
|
|
@@ -226,18 +418,24 @@ export declare const verifyPurchase: MutationField<'verifyPurchase'>;
|
|
|
226
418
|
* },
|
|
227
419
|
* });
|
|
228
420
|
* ```
|
|
421
|
+
*
|
|
422
|
+
* @see {@link https://www.openiap.dev/docs/features/validation#verify-purchase-with-provider}
|
|
229
423
|
*/
|
|
230
424
|
export declare const verifyPurchaseWithProvider: MutationField<'verifyPurchaseWithProvider'>;
|
|
231
425
|
/**
|
|
232
426
|
* Sync iOS purchases with App Store (iOS only)
|
|
233
427
|
* @returns Promise<boolean>
|
|
234
428
|
* @platform iOS
|
|
429
|
+
*
|
|
430
|
+
* @see {@link https://www.openiap.dev/docs/apis/ios/sync-ios}
|
|
235
431
|
*/
|
|
236
432
|
export declare const syncIOS: MutationField<'syncIOS'>;
|
|
237
433
|
/**
|
|
238
434
|
* Present the code redemption sheet for offer codes (iOS only)
|
|
239
435
|
* @returns Promise<boolean> - Indicates whether the redemption sheet was presented
|
|
240
436
|
* @platform iOS
|
|
437
|
+
*
|
|
438
|
+
* @see {@link https://www.openiap.dev/docs/apis/ios/present-code-redemption-sheet-ios}
|
|
241
439
|
*/
|
|
242
440
|
export declare const presentCodeRedemptionSheetIOS: MutationField<'presentCodeRedemptionSheetIOS'>;
|
|
243
441
|
/**
|
|
@@ -259,12 +457,16 @@ export declare const presentCodeRedemptionSheetIOS: MutationField<'presentCodeRe
|
|
|
259
457
|
*
|
|
260
458
|
* @returns Promise<boolean> - true when the request triggers successfully
|
|
261
459
|
* @platform iOS
|
|
460
|
+
*
|
|
461
|
+
* @see {@link https://www.openiap.dev/docs/apis/ios/request-purchase-on-promoted-product-ios}
|
|
262
462
|
*/
|
|
263
463
|
export declare const requestPurchaseOnPromotedProductIOS: () => Promise<boolean>;
|
|
264
464
|
/**
|
|
265
465
|
* Clear unfinished transactions on iOS
|
|
266
466
|
* @returns Promise<boolean>
|
|
267
467
|
* @platform iOS
|
|
468
|
+
*
|
|
469
|
+
* @see {@link https://www.openiap.dev/docs/apis/ios/clear-transaction-ios}
|
|
268
470
|
*/
|
|
269
471
|
export declare const clearTransactionIOS: MutationField<'clearTransactionIOS'>;
|
|
270
472
|
/**
|
|
@@ -272,96 +474,18 @@ export declare const clearTransactionIOS: MutationField<'clearTransactionIOS'>;
|
|
|
272
474
|
* @param sku - The product SKU to refund
|
|
273
475
|
* @returns Promise<string | null> - The refund status or null if not available
|
|
274
476
|
* @platform iOS
|
|
275
|
-
*/
|
|
276
|
-
export declare const beginRefundRequestIOS: MutationField<'beginRefundRequestIOS'>;
|
|
277
|
-
/**
|
|
278
|
-
* Get subscription status for a product (iOS only)
|
|
279
|
-
* @param sku - The product SKU
|
|
280
|
-
* @returns Promise<SubscriptionStatusIOS[]> - Array of subscription status objects
|
|
281
|
-
* @throws Error when called on non-iOS platforms or when IAP is not initialized
|
|
282
|
-
* @platform iOS
|
|
283
|
-
*/
|
|
284
|
-
/**
|
|
285
|
-
* Get current entitlement for a product (iOS only)
|
|
286
|
-
* @param sku - The product SKU
|
|
287
|
-
* @returns Promise<Purchase | null> - Current entitlement or null
|
|
288
|
-
* @platform iOS
|
|
289
|
-
*/
|
|
290
|
-
/**
|
|
291
|
-
* Get latest transaction for a product (iOS only)
|
|
292
|
-
* @param sku - The product SKU
|
|
293
|
-
* @returns Promise<Purchase | null> - Latest transaction or null
|
|
294
|
-
* @platform iOS
|
|
295
|
-
*/
|
|
296
|
-
/**
|
|
297
|
-
* Get pending transactions (iOS only)
|
|
298
|
-
* @returns Promise<Purchase[]> - Array of pending transactions
|
|
299
|
-
* @platform iOS
|
|
300
|
-
*/
|
|
301
|
-
/**
|
|
302
|
-
* Show manage subscriptions screen (iOS only)
|
|
303
|
-
* @returns Promise<Purchase[]> - Subscriptions where auto-renewal status changed
|
|
304
|
-
* @platform iOS
|
|
305
|
-
*/
|
|
306
|
-
/**
|
|
307
|
-
* Check if user is eligible for intro offer (iOS only)
|
|
308
|
-
* @param groupID - The subscription group ID
|
|
309
|
-
* @returns Promise<boolean> - Eligibility status
|
|
310
|
-
* @platform iOS
|
|
311
|
-
*/
|
|
312
|
-
/**
|
|
313
|
-
* Get receipt data (iOS only)
|
|
314
|
-
* @returns Promise<string> - Base64 encoded receipt data
|
|
315
|
-
* @platform iOS
|
|
316
|
-
*/
|
|
317
|
-
/**
|
|
318
|
-
* Check if transaction is verified (iOS only)
|
|
319
|
-
* @param sku - The product SKU
|
|
320
|
-
* @returns Promise<boolean> - Verification status
|
|
321
|
-
* @platform iOS
|
|
322
|
-
*/
|
|
323
|
-
/**
|
|
324
|
-
* Get transaction JWS representation (iOS only)
|
|
325
|
-
* @param sku - The product SKU
|
|
326
|
-
* @returns Promise<string | null> - JWS representation or null
|
|
327
|
-
* @platform iOS
|
|
328
|
-
*/
|
|
329
|
-
/**
|
|
330
|
-
* Get the storefront identifier for the user's App Store account (iOS only)
|
|
331
|
-
* @returns Promise<string> - The storefront identifier (e.g., 'USA' for United States)
|
|
332
|
-
* @platform iOS
|
|
333
477
|
*
|
|
334
|
-
* @
|
|
335
|
-
* ```typescript
|
|
336
|
-
* const storefront = await getStorefrontIOS();
|
|
337
|
-
* console.log('User storefront:', storefront); // e.g., 'USA', 'GBR', 'KOR'
|
|
338
|
-
* ```
|
|
478
|
+
* @see {@link https://www.openiap.dev/docs/apis/ios/begin-refund-request-ios}
|
|
339
479
|
*/
|
|
480
|
+
export declare const beginRefundRequestIOS: MutationField<'beginRefundRequestIOS'>;
|
|
340
481
|
/**
|
|
341
482
|
* Deeplinks to native interface that allows users to manage their subscriptions
|
|
342
483
|
* Cross-platform alias aligning with expo-iap
|
|
484
|
+
*
|
|
485
|
+
* @see {@link https://www.openiap.dev/docs/apis/deep-link-to-subscriptions}
|
|
343
486
|
*/
|
|
344
487
|
export declare const deepLinkToSubscriptions: MutationField<'deepLinkToSubscriptions'>;
|
|
345
488
|
export declare const deepLinkToSubscriptionsIOS: () => Promise<boolean>;
|
|
346
|
-
/**
|
|
347
|
-
* iOS only - Gets the original app transaction ID if the app was purchased from the App Store
|
|
348
|
-
* @platform iOS
|
|
349
|
-
* @description
|
|
350
|
-
* This function retrieves the original app transaction information if the app was purchased
|
|
351
|
-
* from the App Store. Returns null if the app was not purchased (e.g., free app or TestFlight).
|
|
352
|
-
*
|
|
353
|
-
* @returns {Promise<string | null>} The original app transaction ID or null
|
|
354
|
-
*
|
|
355
|
-
* @example
|
|
356
|
-
* ```typescript
|
|
357
|
-
* const appTransaction = await getAppTransactionIOS();
|
|
358
|
-
* if (appTransaction) {
|
|
359
|
-
* console.log('App was purchased, transaction ID:', appTransaction);
|
|
360
|
-
* } else {
|
|
361
|
-
* console.log('App was not purchased from App Store');
|
|
362
|
-
* }
|
|
363
|
-
* ```
|
|
364
|
-
*/
|
|
365
489
|
/**
|
|
366
490
|
* Get all active subscriptions with detailed information (OpenIAP compliant)
|
|
367
491
|
* Returns an array of active subscriptions. If subscriptionIds is not provided,
|
|
@@ -374,6 +498,8 @@ export declare const deepLinkToSubscriptionsIOS: () => Promise<boolean>;
|
|
|
374
498
|
*
|
|
375
499
|
* @param subscriptionIds - Optional array of subscription IDs to filter by
|
|
376
500
|
* @returns Promise<ActiveSubscription[]> - Array of active subscriptions
|
|
501
|
+
*
|
|
502
|
+
* @see {@link https://www.openiap.dev/docs/apis/get-active-subscriptions}
|
|
377
503
|
*/
|
|
378
504
|
export declare const getActiveSubscriptions: QueryField<'getActiveSubscriptions'>;
|
|
379
505
|
export declare const hasActiveSubscriptions: QueryField<'hasActiveSubscriptions'>;
|
|
@@ -401,6 +527,8 @@ export declare const consumePurchase: (args: string) => Promise<boolean>;
|
|
|
401
527
|
* // Proceed with alternative billing flow
|
|
402
528
|
* }
|
|
403
529
|
* ```
|
|
530
|
+
*
|
|
531
|
+
* @see {@link https://www.openiap.dev/docs/apis/android/check-alternative-billing-availability-android}
|
|
404
532
|
*/
|
|
405
533
|
export declare const checkAlternativeBillingAvailabilityAndroid: MutationField<'checkAlternativeBillingAvailabilityAndroid'>;
|
|
406
534
|
/**
|
|
@@ -425,6 +553,8 @@ export declare const checkAlternativeBillingAvailabilityAndroid: MutationField<'
|
|
|
425
553
|
* }
|
|
426
554
|
* }
|
|
427
555
|
* ```
|
|
556
|
+
*
|
|
557
|
+
* @see {@link https://www.openiap.dev/docs/apis/android/show-alternative-billing-dialog-android}
|
|
428
558
|
*/
|
|
429
559
|
export declare const showAlternativeBillingDialogAndroid: MutationField<'showAlternativeBillingDialogAndroid'>;
|
|
430
560
|
/**
|
|
@@ -449,6 +579,8 @@ export declare const showAlternativeBillingDialogAndroid: MutationField<'showAlt
|
|
|
449
579
|
* });
|
|
450
580
|
* }
|
|
451
581
|
* ```
|
|
582
|
+
*
|
|
583
|
+
* @see {@link https://www.openiap.dev/docs/apis/android/create-alternative-billing-token-android}
|
|
452
584
|
*/
|
|
453
585
|
export declare const createAlternativeBillingTokenAndroid: MutationField<'createAlternativeBillingTokenAndroid'>;
|
|
454
586
|
/**
|
|
@@ -513,6 +645,8 @@ export declare const enableBillingProgramAndroid: (program: BillingProgramAndroi
|
|
|
513
645
|
* // External offers are available for this user
|
|
514
646
|
* }
|
|
515
647
|
* ```
|
|
648
|
+
*
|
|
649
|
+
* @see {@link https://www.openiap.dev/docs/apis/android/is-billing-program-available-android}
|
|
516
650
|
*/
|
|
517
651
|
export declare const isBillingProgramAvailableAndroid: MutationField<'isBillingProgramAvailableAndroid'>;
|
|
518
652
|
/**
|
|
@@ -533,6 +667,8 @@ export declare const isBillingProgramAvailableAndroid: MutationField<'isBillingP
|
|
|
533
667
|
* body: JSON.stringify({ token: details.externalTransactionToken })
|
|
534
668
|
* });
|
|
535
669
|
* ```
|
|
670
|
+
*
|
|
671
|
+
* @see {@link https://www.openiap.dev/docs/apis/android/create-billing-program-reporting-details-android}
|
|
536
672
|
*/
|
|
537
673
|
export declare const createBillingProgramReportingDetailsAndroid: MutationField<'createBillingProgramReportingDetailsAndroid'>;
|
|
538
674
|
/**
|
|
@@ -555,10 +691,16 @@ export declare const createBillingProgramReportingDetailsAndroid: MutationField<
|
|
|
555
691
|
* console.log('User accepted external link');
|
|
556
692
|
* }
|
|
557
693
|
* ```
|
|
694
|
+
*
|
|
695
|
+
* @see {@link https://www.openiap.dev/docs/apis/android/launch-external-link-android}
|
|
558
696
|
*/
|
|
559
697
|
export declare const launchExternalLinkAndroid: MutationField<'launchExternalLinkAndroid'>;
|
|
560
698
|
/**
|
|
561
|
-
* 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.
|
|
562
704
|
*
|
|
563
705
|
* @returns Promise<boolean> - true if notice sheet can be presented
|
|
564
706
|
* @platform iOS
|
|
@@ -571,6 +713,8 @@ export declare const launchExternalLinkAndroid: MutationField<'launchExternalLin
|
|
|
571
713
|
* const result = await presentExternalPurchaseNoticeSheetIOS();
|
|
572
714
|
* }
|
|
573
715
|
* ```
|
|
716
|
+
*
|
|
717
|
+
* @see {@link https://www.openiap.dev/docs/apis/ios/can-present-external-purchase-notice-ios}
|
|
574
718
|
*/
|
|
575
719
|
export declare const canPresentExternalPurchaseNoticeIOS: QueryField<'canPresentExternalPurchaseNoticeIOS'>;
|
|
576
720
|
/**
|
|
@@ -588,6 +732,8 @@ export declare const canPresentExternalPurchaseNoticeIOS: QueryField<'canPresent
|
|
|
588
732
|
* await presentExternalPurchaseLinkIOS('https://your-website.com/purchase');
|
|
589
733
|
* }
|
|
590
734
|
* ```
|
|
735
|
+
*
|
|
736
|
+
* @see {@link https://www.openiap.dev/docs/apis/ios/present-external-purchase-notice-sheet-ios}
|
|
591
737
|
*/
|
|
592
738
|
export declare const presentExternalPurchaseNoticeSheetIOS: () => Promise<ExternalPurchaseNoticeResultIOS>;
|
|
593
739
|
/**
|
|
@@ -604,6 +750,8 @@ export declare const presentExternalPurchaseNoticeSheetIOS: () => Promise<Extern
|
|
|
604
750
|
* console.log('User completed external purchase');
|
|
605
751
|
* }
|
|
606
752
|
* ```
|
|
753
|
+
*
|
|
754
|
+
* @see {@link https://www.openiap.dev/docs/apis/ios/present-external-purchase-link-ios}
|
|
607
755
|
*/
|
|
608
756
|
export declare const presentExternalPurchaseLinkIOS: MutationField<'presentExternalPurchaseLinkIOS'>;
|
|
609
757
|
/**
|
|
@@ -621,6 +769,8 @@ export declare const presentExternalPurchaseLinkIOS: MutationField<'presentExter
|
|
|
621
769
|
* // App can use custom external purchase links
|
|
622
770
|
* }
|
|
623
771
|
* ```
|
|
772
|
+
*
|
|
773
|
+
* @see {@link https://www.openiap.dev/docs/apis/ios/is-eligible-for-external-purchase-custom-link-ios}
|
|
624
774
|
*/
|
|
625
775
|
export declare const isEligibleForExternalPurchaseCustomLinkIOS: () => Promise<boolean>;
|
|
626
776
|
/**
|
|
@@ -641,6 +791,8 @@ export declare const isEligibleForExternalPurchaseCustomLinkIOS: () => Promise<b
|
|
|
641
791
|
* await reportToApple(result.token);
|
|
642
792
|
* }
|
|
643
793
|
* ```
|
|
794
|
+
*
|
|
795
|
+
* @see {@link https://www.openiap.dev/docs/apis/ios/get-external-purchase-custom-link-token-ios}
|
|
644
796
|
*/
|
|
645
797
|
export declare const getExternalPurchaseCustomLinkTokenIOS: (tokenType: ExternalPurchaseCustomLinkTokenTypeIOS) => Promise<ExternalPurchaseCustomLinkTokenResultIOS>;
|
|
646
798
|
/**
|
|
@@ -661,6 +813,8 @@ export declare const getExternalPurchaseCustomLinkTokenIOS: (tokenType: External
|
|
|
661
813
|
* await Linking.openURL('https://your-store.com/checkout');
|
|
662
814
|
* }
|
|
663
815
|
* ```
|
|
816
|
+
*
|
|
817
|
+
* @see {@link https://www.openiap.dev/docs/apis/ios/show-external-purchase-custom-link-notice-ios}
|
|
664
818
|
*/
|
|
665
819
|
export declare const showExternalPurchaseCustomLinkNoticeIOS: (noticeType: ExternalPurchaseCustomLinkNoticeTypeIOS) => Promise<ExternalPurchaseCustomLinkNoticeResultIOS>;
|
|
666
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,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