{"_id":"@animal-id/partner-angular","_rev":"2-d65d0aceb690f6f2af7441cc38168dce","name":"@animal-id/partner-angular","dist-tags":{"latest":"0.2.0"},"versions":{"0.1.0":{"name":"@animal-id/partner-angular","version":"0.1.0","license":"MIT","_id":"@animal-id/partner-angular@0.1.0","maintainers":[{"name":"animal-id","email":"vm@animal-id.net"}],"dist":{"shasum":"2e17b01c1c9988249f6cb0dd773b42a7dd55604d","tarball":"https://registry.npmjs.org/@animal-id/partner-angular/-/partner-angular-0.1.0.tgz","fileCount":8,"integrity":"sha512-+ta7C+GrEOPnlBczxpOHvbcV4TagmC8hrCPEvOaOSit4IxEaFU46deGYhfqyQW8fK+1kgP7qjgFVXTyWCT7NMg==","signatures":[{"sig":"MEUCIQCZhVcv8XB1bRfMlEdWD52NvHI9kgdMyiZuFWTTZKs+IgIgfXiJfoAgAibIJW7MP9dkC4+kNHJ7oSwXpXloPC4GK+4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":32416},"main":"./dist/index.cjs","type":"module","_from":"file:animal-id-partner-angular-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/4c26ccf6088e4ed3aeb49d8eec5e1198/animal-id-partner-angular-0.1.0.tgz","_integrity":"sha512-+ta7C+GrEOPnlBczxpOHvbcV4TagmC8hrCPEvOaOSit4IxEaFU46deGYhfqyQW8fK+1kgP7qjgFVXTyWCT7NMg==","_npmVersion":"10.9.2","description":"Angular service for the Animal-ID Partner API (injectable + RxJS, standalone providers).","directories":{},"sideEffects":false,"_nodeVersion":"22.16.0","dependencies":{"@animal-id/partner-core":"0.1.0"},"_hasShrinkwrap":false,"devDependencies":{"rxjs":"^7.8.1","tsup":"^8.3.0","typescript":"^5.6.0","@angular/core":"^17.3.0"},"peerDependencies":{"rxjs":">=7","@angular/core":">=16"},"_npmOperationalInternal":{"tmp":"tmp/partner-angular_0.1.0_1781806629295_0.47115468961179197","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@animal-id/partner-angular","version":"0.2.0","description":"Angular service for the Animal-ID Partner API (injectable + RxJS, standalone providers).","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":{"@angular/core":">=16","rxjs":">=7"},"devDependencies":{"@angular/core":"^17.3.0","rxjs":"^7.8.1","tsup":"^8.3.0","typescript":"^5.6.0"},"scripts":{"build":"tsup","dev":"tsup --watch","typecheck":"tsc --noEmit -p tsconfig.json","clean":"rm -rf dist"},"_id":"@animal-id/partner-angular@0.2.0","_integrity":"sha512-9cJIV4bqyxI8a0UayNb1p3ypLrQoeMCB0fIzFcSbVa7R7kSCFzuz862Txw0DdT8jJMQhnpN4xiGmjwDUiy0SBA==","_resolved":"/private/var/folders/bd/q0ht6d8n3nn7p95597z0t7p40000gn/T/21f6c398bbe90628d60c8fc9c0a84f3e/animal-id-partner-angular-0.2.0.tgz","_from":"file:animal-id-partner-angular-0.2.0.tgz","_nodeVersion":"22.16.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-9cJIV4bqyxI8a0UayNb1p3ypLrQoeMCB0fIzFcSbVa7R7kSCFzuz862Txw0DdT8jJMQhnpN4xiGmjwDUiy0SBA==","shasum":"1ee890f45ff0cbfc6761cbf00845e187875475be","tarball":"https://registry.npmjs.org/@animal-id/partner-angular/-/partner-angular-0.2.0.tgz","fileCount":8,"unpackedSize":34326,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDkecWepEBYpQ0xczcTtKcu5essZDQTGD3DuO51KVQ8XAIhAOaJ8+lIBwlVWkeGuMVXlmWHNE8SISfpSkGtjdXSrVWV"}]},"_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-angular_0.2.0_1782836438063_0.38934844488845055"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-18T18:17:09.189Z","modified":"2026-06-30T16:20:38.311Z","0.1.0":"2026-06-18T18:17:09.432Z","0.2.0":"2026-06-30T16:20:38.217Z"},"license":"MIT","description":"Angular service for the Animal-ID Partner API (injectable + RxJS, standalone providers).","maintainers":[{"name":"animal-id","email":"vm@animal-id.net"}],"readme":"# @animal-id/partner-angular\n\nAngular 16+ service for the Animal-ID Partner API. Idiomatic RxJS `Observable`\nmethods; convert to signals with `toSignal()` when you prefer.\n\n```bash\npnpm add @animal-id/partner-angular @angular/core rxjs\n```\n\n## Setup\n\n**Standalone (recommended):**\n\n```ts\nimport { bootstrapApplication } from '@angular/platform-browser';\nimport { provideAnimalId } from '@animal-id/partner-angular';\n\nbootstrapApplication(AppComponent, {\n  // Browser-safe: baseUrl → your backend proxy, or pass a custom `signer`.\n  providers: [provideAnimalId({ baseUrl: '/api/animal-id' })],\n});\n```\n\n**NgModule:**\n\n```ts\n@NgModule({ imports: [AnimalIdModule.forRoot({ baseUrl: '/api/animal-id' })] })\nexport class AppModule {}\n```\n\n## Usage\n\n```ts\nimport { Component, inject, signal } from '@angular/core';\nimport { toSignal } from '@angular/core/rxjs-interop';\nimport { AnimalIdService } from '@animal-id/partner-angular';\n\n@Component({ standalone: true, selector: 'app-pets', template: '…' })\nexport class PetsComponent {\n  private aid = inject(AnimalIdService);\n\n  // As a signal:\n  dictionaries = toSignal(this.aid.getDictionaries({ lang: 'uk' }));\n\n  registerOwner() {\n    this.aid\n      .createOwner({ email: 'jane@example.com', consent: { account_creation: true } })\n      .subscribe((owner) => console.log(owner.user_gid));\n  }\n}\n```\n\n### Methods\n\n`getDictionaries`, `createOwner`, `searchOwner`, `createAnimal`, `getAnimal`,\n`findAnimalsByIdentifier`, `findAnimalsByIdentifierAny`, `findAnimalsByOwner`,\n`updateAnimal`, `createProcedures`, `listProcedures`, `getProcedure`,\n`uploadPhoto`, `deletePhoto` — all return `Observable<…>`.\n\nNeed promises/async-await? Use `aid.client`, the underlying `AnimalIdClient`.\nThis package also re-exports `@animal-id/partner-core`.\n\n## Note on building for production (AOT)\n\nThis package is built with **tsup/esbuild** (legacy decorator output), which is\nideal for JIT and for use as a reference adapter. The service deliberately avoids\nconstructor-metadata DI (it uses `inject()` + explicit tokens), so it is\nAOT-friendly. For a fully Ivy-**partial**-compiled artifact (the format the Angular\nlinker expects when publishing to npm), build this package with\n[`ng-packagr`](https://github.com/ng-packagr/ng-packagr) instead — the source needs\nno changes, only the build tool.\n","readmeFilename":"README.md"}