Commit 63746f0
authored
migration: integrate openiap-gql 1.0 type system (#209)
## Summary
- unify exported types around the generated schema
- align runtime helpers, hooks, and docs with the new definitions
- applied [OpenIAP GQL
1.0](https://github.com/hyodotdev/openiap-gql/releases/tag/1.0.0)
## Testing
- npm run lint:tsc
- npm test
- npm run build
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **New Features**
- deepLinkToSubscriptionsAndroid added.
- useIAP option shouldAutoSyncPurchases introduced.
- Centralized types expose ReceiptValidationResult and VoidResult; new
PurchaseError surface for cross-platform error mapping.
- **Refactor**
- AppTransactionIOS renamed to AppTransaction; error codes standardized
(removed E_ prefix).
- getAvailablePurchases() is now no-arg.
- finishTransaction now returns VoidResult | boolean; validateReceipt
returns ReceiptValidationResult.
- Subscription requests moved to platform-scoped props.
- **Documentation**
- Multiple docs and examples reformatted and updated to reflect API and
naming changes.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->1 parent d807a2a commit 63746f0
File tree
40 files changed
+1448
-1617
lines changed- docs
- blog
- docs
- api
- methods
- examples
- getting-started
- guides
- versioned_docs
- version-2.6/api
- version-2.7/api
- version-2.9/api
- example
- __tests__
- app
- plugin/src
- src
- __tests__
- helpers
- __tests__
- modules
- __tests__
- types
- utils
- __tests__
40 files changed
+1448
-1617
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | 17 | | |
19 | 18 | | |
20 | | - | |
| 19 | + | |
21 | 20 | | |
22 | | - | |
23 | | - | |
| 21 | + | |
| 22 | + | |
24 | 23 | | |
25 | | - | |
| 24 | + | |
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
30 | | - | |
31 | 29 | | |
32 | 30 | | |
33 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | | - | |
| 193 | + | |
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
200 | | - | |
201 | | - | |
202 | | - | |
| 200 | + | |
203 | 201 | | |
204 | 202 | | |
205 | 203 | | |
| |||
244 | 242 | | |
245 | 243 | | |
246 | 244 | | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
| 245 | + | |
251 | 246 | | |
252 | 247 | | |
253 | 248 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
274 | | - | |
| 274 | + | |
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
| |||
707 | 707 | | |
708 | 708 | | |
709 | 709 | | |
710 | | - | |
| 710 | + | |
711 | 711 | | |
712 | 712 | | |
713 | | - | |
| 713 | + | |
714 | 714 | | |
715 | 715 | | |
716 | 716 | | |
| |||
0 commit comments