@kalyptos/bifrost 5.1.0 → 6.0.0

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/dist/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export type ProjectTarget = 'unit' | 'entrance' | 'street' | 'postcode' | 'city' | 'ejendom' | 'kommune' | 'sogn' | 'region' | 'retskreds' | 'politikreds' | 'opstillingskreds' | 'ejerlav';
1
+ export type ProjectTarget = 'unit' | 'entrance' | 'street' | 'postcode' | 'city' | 'ejendom' | 'jordstykke' | 'kommune' | 'sogn' | 'region' | 'retskreds' | 'politikreds' | 'opstillingskreds' | 'ejerlav';
2
2
  export type ProjectRoot = ProjectTarget;
3
3
  export type SearchTarget = Exclude<ProjectTarget, 'unit' | 'entrance'> | 'stednavn';
4
4
  export type FeatureKind = ProjectTarget | 'stednavn';
@@ -86,6 +86,7 @@ export interface PropertyRefs {
86
86
  complete: boolean;
87
87
  }
88
88
  export interface Parcel {
89
+ id: string;
89
90
  matrikelnummer: string | null;
90
91
  ejerlavskode: number | null;
91
92
  ejerlav: string | null;
@@ -116,8 +117,12 @@ export interface Components {
116
117
  sub_locality?: string;
117
118
  stednavn?: string;
118
119
  type?: string;
120
+ bfenummer?: number;
121
+ /** on an ejendom match: deprecated, read ejendom.parcels */
119
122
  matrikelnummer?: string;
123
+ /** on an ejendom match: deprecated, read ejendom.parcels */
120
124
  ejerlavskode?: number;
125
+ /** on an ejendom match: deprecated, read ejendom.parcels */
121
126
  ejerlav?: string;
122
127
  postcodes?: Area<'postcode', 'city'>[];
123
128
  kommuner?: Area<'kommunekode', 'kommune'>[];
@@ -131,10 +136,16 @@ export interface StednavnRef {
131
136
  kind: 'stednavn';
132
137
  id: string;
133
138
  }
139
+ export interface Alias {
140
+ result: string;
141
+ from: string;
142
+ to: string;
143
+ }
134
144
  export interface Match<R extends Ref | StednavnRef = Ref> {
135
145
  ref: R;
136
146
  refs: Partial<Record<FeatureKind, string>>;
137
147
  result: string;
148
+ aliases?: Alias[];
138
149
  lifecycle: Lifecycle | null;
139
150
  components: Components;
140
151
  ejendom?: Ejendom;
package/dist/types.js CHANGED
@@ -1,2 +1,2 @@
1
- // wire types, mirroring app/src/bifrost/api/contract.py
1
+ // wire types, mirroring app/src/bifrost/api/requests.py and wire.py
2
2
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kalyptos/bifrost",
3
- "version": "5.1.0",
3
+ "version": "6.0.0",
4
4
  "description": "TypeScript client for the Bifrost Danish address API",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {