{"_id":"@animal-id/partner-vue","_rev":"2-4f3a17d004ae518dadf7af8803aa984e","name":"@animal-id/partner-vue","dist-tags":{"latest":"0.2.0"},"versions":{"0.1.0":{"name":"@animal-id/partner-vue","version":"0.1.0","license":"MIT","_id":"@animal-id/partner-vue@0.1.0","maintainers":[{"name":"animal-id","email":"vm@animal-id.net"}],"dist":{"shasum":"3dbfbfbeb514df01a910fb937497d981b4a6ae57","tarball":"https://registry.npmjs.org/@animal-id/partner-vue/-/partner-vue-0.1.0.tgz","fileCount":8,"integrity":"sha512-c8q+F/YV3tski2eHNnEWVAOL95tAuOJcXdoZH5PzilOo2d8wqKjbRGSuo/ih06IqpHUaIhdHAhZjk1/Zl/lGxw==","signatures":[{"sig":"MEQCIBdCzBsFHFcDl7M+ZEm/EV9j/xcDaPyEtdqepGNmCW4NAiA9sM5eocvVMvIDS74EeYOlAfPvU2hR/ADxXI+E2lKGpg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":47013},"main":"./dist/index.cjs","type":"module","_from":"file:animal-id-partner-vue-0.1.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./package.json":"./package.json"},"scripts":{"dev":"tsup --watch","build":"tsup","clean":"rm -rf dist","typecheck":"tsc --noEmit -p tsconfig.json"},"_npmUser":{"name":"animal-id","email":"vm@animal-id.net"},"_resolved":"/private/var/folders/bd/q0ht6d8n3nn7p95597z0t7p40000gn/T/f30c5629c4168f9f51164a3130063b6d/animal-id-partner-vue-0.1.0.tgz","_integrity":"sha512-c8q+F/YV3tski2eHNnEWVAOL95tAuOJcXdoZH5PzilOo2d8wqKjbRGSuo/ih06IqpHUaIhdHAhZjk1/Zl/lGxw==","_npmVersion":"10.9.2","description":"Vue 3 composables for the Animal-ID Partner API (plugin + query/mutation composables).","directories":{},"sideEffects":false,"_nodeVersion":"22.16.0","dependencies":{"@animal-id/partner-core":"0.1.0"},"_hasShrinkwrap":false,"devDependencies":{"vue":"^3.5.0","tsup":"^8.3.0","typescript":"^5.6.0"},"peerDependencies":{"vue":">=3"},"_npmOperationalInternal":{"tmp":"tmp/partner-vue_0.1.0_1781806634281_0.5390050961913138","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@animal-id/partner-vue","version":"0.2.0","description":"Vue 3 composables for the Animal-ID Partner API (plugin + query/mutation composables).","license":"MIT","type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./package.json":"./package.json"},"sideEffects":false,"engines":{"node":">=18"},"dependencies":{"@animal-id/partner-core":"0.2.0"},"peerDependencies":{"vue":">=3"},"devDependencies":{"tsup":"^8.3.0","typescript":"^5.6.0","vue":"^3.5.0"},"scripts":{"build":"tsup","dev":"tsup --watch","typecheck":"tsc --noEmit -p tsconfig.json","clean":"rm -rf dist"},"_id":"@animal-id/partner-vue@0.2.0","_integrity":"sha512-H3IA+Xc9hN3t5ZrORtW9sFxpfdXL5e64IQNxGik5KgqwxTfD23L/tklUdPdqlHcBIBi+mRAIbWOv/6uk3Ii4sg==","_resolved":"/private/var/folders/bd/q0ht6d8n3nn7p95597z0t7p40000gn/T/51a3a251a5fff2e653748314d193cec3/animal-id-partner-vue-0.2.0.tgz","_from":"file:animal-id-partner-vue-0.2.0.tgz","_nodeVersion":"22.16.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-H3IA+Xc9hN3t5ZrORtW9sFxpfdXL5e64IQNxGik5KgqwxTfD23L/tklUdPdqlHcBIBi+mRAIbWOv/6uk3Ii4sg==","shasum":"550e0e08b8342d83479a3068420920589c788acb","tarball":"https://registry.npmjs.org/@animal-id/partner-vue/-/partner-vue-0.2.0.tgz","fileCount":8,"unpackedSize":50493,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCICqHe+xR7lxH6Ulqit7iJLHnNB7apASFa/CoTRVoI8CvAiEA0qZ3dlMYdEVdHz+aAxeVrjsW6oE4IpAWur1AyiqPirs="}]},"_npmUser":{"name":"animal-id","email":"vm@animal-id.net"},"directories":{},"maintainers":[{"name":"animal-id","email":"vm@animal-id.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/partner-vue_0.2.0_1782836442429_0.8633361639315964"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-18T18:17:14.150Z","modified":"2026-06-30T16:20:42.717Z","0.1.0":"2026-06-18T18:17:14.423Z","0.2.0":"2026-06-30T16:20:42.614Z"},"license":"MIT","description":"Vue 3 composables for the Animal-ID Partner API (plugin + query/mutation composables).","maintainers":[{"name":"animal-id","email":"vm@animal-id.net"}],"readme":"# @animal-id/partner-vue\n\nVue 3 composables for the Animal-ID Partner API.\n\n```bash\npnpm add @animal-id/partner-vue vue\n```\n\n## Setup\n\n```ts\nimport { createApp } from 'vue';\nimport { createAnimalId } from '@animal-id/partner-vue';\nimport App from './App.vue';\n\ncreateApp(App)\n  // Browser-safe: point baseUrl at your backend proxy or pass a custom `signer`.\n  .use(createAnimalId({ baseUrl: '/api/animal-id' }))\n  .mount('#app');\n```\n\n`createAnimalId(...)` also accepts a ready `AnimalIdClient`.\n\n## Composables\n\n**Queries** return reactive refs `{ data, error, isLoading, isSuccess, isError, refetch }`:\n\n```ts\nimport { useDictionaries, useAnimalsByOwner } from '@animal-id/partner-vue';\n\nconst { data: dicts, isLoading } = useDictionaries({ lang: 'uk' });\nconst { data: pets, refetch } = useAnimalsByOwner('jane@example.com');\n```\n\nPass `{ immediate: false }` to defer, or `{ watch: source }` to refetch reactively.\n\n**Mutations** return `{ mutate, data, error, isLoading, isSuccess, isError, reset }`:\n\n```ts\nimport { useCreateOwner, useCreateAnimal } from '@animal-id/partner-vue';\n\nconst { mutate: createOwner } = useCreateOwner();\nawait createOwner({ email: 'jane@example.com', consent: { account_creation: true } });\n\nconst { mutate: createAnimal } = useCreateAnimal();\n// useUpdateAnimal → mutate({ id, input }); useCreateProcedures → mutate({ animalId, body });\n// useUploadPhoto → mutate({ animalId, input }); useDeletePhoto → mutate({ animalId, photoId });\n```\n\n`useAnimalIdClient()` returns the raw client. This package also re-exports\n`@animal-id/partner-core`.\n","readmeFilename":"README.md"}