{"_id":"wildberry-types","name":"wildberry-types","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"wildberry-types","version":"1.0.0","description":"TypeScript type definitions for Wildberry","main":"dist/index.js","module":"dist/index.mjs","types":"dist/index.d.ts","exports":{".":{"require":"./dist/index.js","import":"./dist/index.mjs","types":"./dist/index.d.ts"}},"scripts":{"build":"tsup","prepare":"npm run build"},"keywords":["types","typescript","react","react-native","next"],"author":"","license":"MIT","devDependencies":{"typescript":"^5.0.0","tsup":"^7.0.0"},"peerDependencies":{"typescript":">=4.0.0"},"_id":"wildberry-types@1.0.0","gitHead":"0b9f49b429e49500f6a92b6dbe5f977ec830b11f","_nodeVersion":"23.6.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-it4oQT3zPsystHu4Ihv07KyMPftJqA9/bfaqRlr9SxqyO747qf+JrpnKoHY3PhdLLxkBGdThUu4tYeNIii7ThQ==","shasum":"0190c0e26cd5b484772f00464dbae0e00dbfa0e6","tarball":"https://registry.npmjs.org/wildberry-types/-/wildberry-types-1.0.0.tgz","fileCount":8,"unpackedSize":37871,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDdZmKrpxkEeLRN9zLQIhnBaajopgaTfDwxPkR2xc661gIhAJa0VjP/xjneiZmN3wlkNcmOhoPu09VGcylEP0oGvjEV"}]},"_npmUser":{"name":"wildberry","email":"joshuarnas@gmail.com"},"directories":{},"maintainers":[{"name":"wildberry","email":"joshuarnas@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/wildberry-types_1.0.0_1742049971267_0.15356912617695695"},"_hasShrinkwrap":false}},"time":{"created":"2025-03-15T14:46:11.265Z","1.0.0":"2025-03-15T14:46:11.478Z","modified":"2025-03-15T14:46:11.768Z"},"maintainers":[{"name":"wildberry","email":"joshuarnas@gmail.com"}],"description":"TypeScript type definitions for Wildberry","keywords":["types","typescript","react","react-native","next"],"license":"MIT","readme":"# Wildberry Types\n\nTypeScript type definitions for Wildberry that can be used across different JavaScript frameworks including React, React Native, and Next.js.\n\n## Installation\n\n```bash\nnpm install wildberry-types\n# or\nyarn add wildberry-types\n# or\npnpm add wildberry-types\n```\n\n## Usage\n\n### React / Next.js\n\n```typescript\nimport { CustomerInfo, MakePurchaseResult } from 'wildberry-types';\n\nconst handlePurchase = (result: MakePurchaseResult) => {\n  // Type-safe access to purchase result\n  console.log(result.customerInfo);\n  console.log(result.transaction);\n};\n```\n\n### React Native\n\n```typescript\nimport { CustomerInfo, MakePurchaseResult } from 'wildberry-types';\n\n// Use the types in your React Native components\ntype Props = {\n  customerInfo: CustomerInfo;\n};\n\nconst CustomerProfile: React.FC<Props> = ({ customerInfo }) => {\n  // Type-safe access to customer info\n  return (\n    <View>\n      <Text>User ID: {customerInfo.originalAppUserId}</Text>\n      <Text>First Seen: {customerInfo.firstSeen}</Text>\n    </View>\n  );\n};\n```\n\n## Available Types\n\n- `CustomerInfo` - Customer information including entitlements and subscription details\n- `PurchasesOfferings` - Available offerings and products\n- `Transaction` - Purchase transaction details\n- `MakePurchaseResult` - Result of a purchase operation\n- `LogInResult` - Result of a login operation\n- `WebPurchaseRedemptionResult` - Result of a web purchase redemption\n- `PurchasesError` - Error information\n\n## License\n\nMIT\n","readmeFilename":"README.md","_rev":"1-43d2df022cb91ec742d30b5119adcd4a"}