@firmenakte/api-client 2.23.0 → 2.25.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.
@@ -22,6 +22,77 @@ export type AccountSubject = {
22
22
  city?: null | string;
23
23
  entryId?: null | string;
24
24
  };
25
+ export type AddressCoordinatesResponse = {
26
+ lat: number;
27
+ lng: number;
28
+ source: string;
29
+ transformationAccuracyMetres: number;
30
+ determination: string;
31
+ sourceMethod: string;
32
+ };
33
+ export type AddressGeographyReference = {
34
+ id: string;
35
+ type: string;
36
+ code: string;
37
+ label: string;
38
+ };
39
+ export type AddressProvenance = {
40
+ source: string;
41
+ sourceDate: string;
42
+ importedAt: string;
43
+ datasetVersion: string;
44
+ license: string;
45
+ attribution: string;
46
+ processing: string;
47
+ };
48
+ export type AddressUpdateStatus = {
49
+ status: string;
50
+ sourceDate?: null | string;
51
+ importedAt?: null | string;
52
+ datasetVersion?: null | string;
53
+ lastCheck?: null | string;
54
+ lastError?: null | string;
55
+ revision?: null | string;
56
+ };
57
+ export type AddressValidationRequest = {
58
+ /**
59
+ * Country code/name; required.
60
+ */
61
+ country: string;
62
+ /**
63
+ * Full address; or supply street fields.
64
+ */
65
+ text?: null | string;
66
+ /**
67
+ * Street.
68
+ */
69
+ street?: null | string;
70
+ /**
71
+ * Base house number.
72
+ */
73
+ houseNumber?: null | string;
74
+ /**
75
+ * Postal code.
76
+ */
77
+ zip?: null | string;
78
+ /**
79
+ * City.
80
+ */
81
+ city?: null | string;
82
+ /**
83
+ * Unit; never BEV-verified.
84
+ */
85
+ unit?: null | string;
86
+ };
87
+ export type AddressValidationResponse = {
88
+ status: string;
89
+ address?: null | ReferenceAddressResponse;
90
+ candidates: Array<ReferenceAddressResponse>;
91
+ changes: Array<string>;
92
+ unitStatus: string;
93
+ coverage: string;
94
+ datasetVersion?: null | string;
95
+ };
25
96
  /**
26
97
  * A Firmenakte ID or register alias, for example fnr:56247t, resolved to the canonical record.
27
98
  */
@@ -59,6 +130,10 @@ export type CatalogEntry = {
59
130
  fieldDetailSince?: null | string;
60
131
  detailCoverage?: null | string;
61
132
  parentCode?: null | string;
133
+ parentCodes?: null | Array<string>;
134
+ geographyId?: null | string;
135
+ geographyType?: null | string;
136
+ datasetVersion?: null | string;
62
137
  childCount?: null | number;
63
138
  refCount?: null | number;
64
139
  path?: null | Array<CatalogPathEntry>;
@@ -259,6 +334,11 @@ export type CompanyAddress = {
259
334
  current: boolean;
260
335
  source: string;
261
336
  country?: null | string;
337
+ addressId?: null | string;
338
+ matchStatus?: null | string;
339
+ datasetVersion?: null | string;
340
+ unit?: null | string;
341
+ until?: null | string;
262
342
  };
263
343
  export type CompanyAggregateGroup = {
264
344
  groupBy: string;
@@ -597,6 +677,11 @@ export type CompanySeat = {
597
677
  state?: null | string;
598
678
  country?: null | string;
599
679
  location?: null | GeoLocation;
680
+ addressId?: null | string;
681
+ matchStatus?: null | string;
682
+ coordinateSource?: null | string;
683
+ datasetVersion?: null | string;
684
+ role?: null | string;
600
685
  };
601
686
  export type CompanyTopItem = {
602
687
  group: TopGroup;
@@ -907,6 +992,11 @@ export type CursorPageOfPlaceEntry = {
907
992
  nextCursor?: null | string;
908
993
  total?: null | number;
909
994
  };
995
+ export type CursorPageOfReferenceAddressResponse = {
996
+ items: Array<ReferenceAddressResponse>;
997
+ nextCursor?: null | string;
998
+ total?: null | number;
999
+ };
910
1000
  export type CursorPageOfRuleDto = {
911
1001
  items: Array<RuleDto>;
912
1002
  nextCursor?: null | string;
@@ -1132,6 +1222,8 @@ export type FieldDefinition = {
1132
1222
  aliases?: null | Array<string>;
1133
1223
  projection?: null | FieldProjection;
1134
1224
  catalog?: null | string;
1225
+ filterVia?: null | string;
1226
+ searchTerms?: null | Array<string>;
1135
1227
  };
1136
1228
  export type FieldDto = {
1137
1229
  id: string;
@@ -1148,6 +1240,7 @@ export type FieldDto = {
1148
1240
  export type FieldGroup = {
1149
1241
  code: string;
1150
1242
  label: string;
1243
+ rank?: null | number;
1151
1244
  };
1152
1245
  export type FieldOption = {
1153
1246
  code: string;
@@ -1238,6 +1331,16 @@ export type GeoCluster = {
1238
1331
  count: number;
1239
1332
  kind?: null | string;
1240
1333
  };
1334
+ export type GeographicPlaceResponse = {
1335
+ id: string;
1336
+ type: string;
1337
+ code: string;
1338
+ name: string;
1339
+ active: boolean;
1340
+ sourceDate: string;
1341
+ datasetVersion: string;
1342
+ parents: Array<AddressGeographyReference>;
1343
+ };
1241
1344
  export type GeoLocation = {
1242
1345
  lat: number;
1243
1346
  lng: number;
@@ -1732,6 +1835,9 @@ export type PlaceEntry = {
1732
1835
  aliases?: null | Array<string>;
1733
1836
  companyCount?: null | number;
1734
1837
  parentCode?: null | string;
1838
+ parentCodes?: null | Array<string>;
1839
+ geographyId?: null | string;
1840
+ datasetVersion?: null | string;
1735
1841
  level?: null | number;
1736
1842
  childCount?: null | number;
1737
1843
  refCount?: null | number;
@@ -1765,9 +1871,23 @@ export type ReadNotificationsDto = {
1765
1871
  ids?: null | Array<string>;
1766
1872
  all?: boolean;
1767
1873
  };
1874
+ export type ReferenceAddressResponse = {
1875
+ id: string;
1876
+ bevCode: string;
1877
+ street: string;
1878
+ houseNumber: string;
1879
+ zip: string;
1880
+ city: string;
1881
+ country: string;
1882
+ active: boolean;
1883
+ geography: Array<AddressGeographyReference>;
1884
+ coordinates: AddressCoordinatesResponse;
1885
+ provenance: AddressProvenance;
1886
+ };
1768
1887
  export type RegisterIdentifier = {
1769
1888
  scheme: string;
1770
1889
  value: string;
1890
+ source?: null | string;
1771
1891
  };
1772
1892
  export type RegistrationAddress = {
1773
1893
  street?: null | string;
@@ -4692,11 +4812,16 @@ export type GetMyEntityData = {
4692
4812
  };
4693
4813
  path: {
4694
4814
  /**
4695
- * Workspace resource ID.
4815
+ * Firmenakte ID, register alias such as fnr:56247t, or workspace own-record ID.
4696
4816
  */
4697
4817
  id: string;
4698
4818
  };
4699
- query?: never;
4819
+ query?: {
4820
+ /**
4821
+ * Resolve current register values for source fields. Defaults to true; false returns only stored workspace fields, including saved Firmenakte fields, without projecting register values.
4822
+ */
4823
+ resolveSourceValues?: boolean;
4824
+ };
4700
4825
  url: '/api/v2/me/entities/{id}';
4701
4826
  };
4702
4827
  export type GetMyEntityErrors = {
@@ -4763,7 +4888,12 @@ export type UpdateMyEntityData = {
4763
4888
  */
4764
4889
  id: string;
4765
4890
  };
4766
- query?: never;
4891
+ query?: {
4892
+ /**
4893
+ * Resolve current register values in the response. Defaults to true; false returns only saved workspace source-field values.
4894
+ */
4895
+ resolveSourceValues?: boolean;
4896
+ };
4767
4897
  url: '/api/v2/me/entities/{id}';
4768
4898
  };
4769
4899
  export type UpdateMyEntityErrors = {
@@ -5459,7 +5589,12 @@ export type GetOwnRecordData = {
5459
5589
  */
5460
5590
  id: string;
5461
5591
  };
5462
- query?: never;
5592
+ query?: {
5593
+ /**
5594
+ * Resolve current register values for source fields. Defaults to true; false returns only saved workspace fields.
5595
+ */
5596
+ resolveSourceValues?: boolean;
5597
+ };
5463
5598
  url: '/api/v2/me/own-records/{id}';
5464
5599
  };
5465
5600
  export type GetOwnRecordErrors = {
@@ -5541,7 +5676,12 @@ export type UpdateOwnRecordData = {
5541
5676
  */
5542
5677
  id: string;
5543
5678
  };
5544
- query?: never;
5679
+ query?: {
5680
+ /**
5681
+ * Resolve current register values in the response. Defaults to true; false returns only saved workspace source-field values.
5682
+ */
5683
+ resolveSourceValues?: boolean;
5684
+ };
5545
5685
  url: '/api/v2/me/own-records/{id}';
5546
5686
  };
5547
5687
  export type UpdateOwnRecordErrors = {
@@ -7769,7 +7909,7 @@ export type ListFieldCatalogData = {
7769
7909
  */
7770
7910
  filterable?: boolean;
7771
7911
  /**
7772
- * Optional exact group.code from field metadata, for example figures, company, status, people, person or account. Groups come from the same catalog used by the interface.
7912
+ * Optional exact group.code from this subject's field metadata: basics, location, activity, status, people, figures or account. Groups describe the field's meaning, independently of its value type.
7773
7913
  */
7774
7914
  group?: string;
7775
7915
  };
@@ -8888,6 +9028,338 @@ export type ListSimilarCompaniesResponses = {
8888
9028
  200: CursorPageOfSimilarCompany;
8889
9029
  };
8890
9030
  export type ListSimilarCompaniesResponse = ListSimilarCompaniesResponses[keyof ListSimilarCompaniesResponses];
9031
+ export type GetAddressStatusData = {
9032
+ body?: never;
9033
+ headers?: {
9034
+ /**
9035
+ * Optional replay key, retained for 24 hours. Replays are free.
9036
+ */
9037
+ 'Idempotency-Key'?: string;
9038
+ };
9039
+ path?: never;
9040
+ query?: never;
9041
+ url: '/api/v2/addresses/status';
9042
+ };
9043
+ export type GetAddressStatusErrors = {
9044
+ /**
9045
+ * Malformed request, or a cursor from another request.
9046
+ */
9047
+ 400: Problem;
9048
+ /**
9049
+ * No valid API key or session.
9050
+ */
9051
+ 401: Problem;
9052
+ /**
9053
+ * Not enough credits for this call.
9054
+ */
9055
+ 402: Problem;
9056
+ /**
9057
+ * Not found, or it belongs to another workspace.
9058
+ */
9059
+ 404: Problem;
9060
+ /**
9061
+ * Conflict with the current state; `code` says which.
9062
+ */
9063
+ 409: Problem;
9064
+ /**
9065
+ * Erased or expired.
9066
+ */
9067
+ 410: Problem;
9068
+ /**
9069
+ * Validation failed; `errors[]` names each parameter or JSON pointer.
9070
+ */
9071
+ 422: Problem;
9072
+ /**
9073
+ * Too many requests; retry after `Retry-After`.
9074
+ */
9075
+ 429: Problem;
9076
+ /**
9077
+ * Internal error; quote `requestId` to support.
9078
+ */
9079
+ 500: Problem;
9080
+ };
9081
+ export type GetAddressStatusError = GetAddressStatusErrors[keyof GetAddressStatusErrors];
9082
+ export type GetAddressStatusResponses = {
9083
+ /**
9084
+ * Read address snapshot status.
9085
+ */
9086
+ 200: AddressUpdateStatus;
9087
+ };
9088
+ export type GetAddressStatusResponse = GetAddressStatusResponses[keyof GetAddressStatusResponses];
9089
+ export type SearchAddressesData = {
9090
+ body?: never;
9091
+ headers?: {
9092
+ /**
9093
+ * ETag from a previous read. A match returns a free 304.
9094
+ */
9095
+ 'If-None-Match'?: string;
9096
+ /**
9097
+ * Optional replay key, retained for 24 hours. Replays are free.
9098
+ */
9099
+ 'Idempotency-Key'?: string;
9100
+ };
9101
+ path?: never;
9102
+ query?: {
9103
+ /**
9104
+ * Address search text, 2–200 characters.
9105
+ */
9106
+ q?: string;
9107
+ /**
9108
+ * Page size, 1–100; default 25. Zero is not supported.
9109
+ */
9110
+ limit?: number;
9111
+ /**
9112
+ * Opaque continuation from nextCursor. Bound to the query, geography, postal code and active snapshot; expires after 24 hours.
9113
+ */
9114
+ cursor?: string;
9115
+ /**
9116
+ * Optional G-ID restricting geography.
9117
+ */
9118
+ geographyId?: string;
9119
+ /**
9120
+ * Optional postal code.
9121
+ */
9122
+ zip?: string;
9123
+ };
9124
+ url: '/api/v2/addresses';
9125
+ };
9126
+ export type SearchAddressesErrors = {
9127
+ /**
9128
+ * Malformed request, or a cursor from another request.
9129
+ */
9130
+ 400: Problem;
9131
+ /**
9132
+ * No valid API key or session.
9133
+ */
9134
+ 401: Problem;
9135
+ /**
9136
+ * Not enough credits for this call.
9137
+ */
9138
+ 402: Problem;
9139
+ /**
9140
+ * Not found, or it belongs to another workspace.
9141
+ */
9142
+ 404: Problem;
9143
+ /**
9144
+ * Conflict with the current state; `code` says which.
9145
+ */
9146
+ 409: Problem;
9147
+ /**
9148
+ * Erased or expired.
9149
+ */
9150
+ 410: Problem;
9151
+ /**
9152
+ * Validation failed; `errors[]` names each parameter or JSON pointer.
9153
+ */
9154
+ 422: Problem;
9155
+ /**
9156
+ * Too many requests; retry after `Retry-After`.
9157
+ */
9158
+ 429: Problem;
9159
+ /**
9160
+ * Internal error; quote `requestId` to support.
9161
+ */
9162
+ 500: Problem;
9163
+ };
9164
+ export type SearchAddressesError = SearchAddressesErrors[keyof SearchAddressesErrors];
9165
+ export type SearchAddressesResponses = {
9166
+ /**
9167
+ * Search Austrian reference addresses.
9168
+ */
9169
+ 200: CursorPageOfReferenceAddressResponse;
9170
+ };
9171
+ export type SearchAddressesResponse = SearchAddressesResponses[keyof SearchAddressesResponses];
9172
+ export type CheckAddressData = {
9173
+ /**
9174
+ * Country is required. Supply full address text or structured street fields. Matching needs a base house number, postal code and city; units remain unverified. The input is never saved.
9175
+ */
9176
+ body: AddressValidationRequest;
9177
+ headers?: {
9178
+ /**
9179
+ * Optional replay key, retained for 24 hours. Replays are free.
9180
+ */
9181
+ 'Idempotency-Key'?: string;
9182
+ };
9183
+ path?: never;
9184
+ query?: never;
9185
+ url: '/api/v2/addresses/validate';
9186
+ };
9187
+ export type CheckAddressErrors = {
9188
+ /**
9189
+ * Malformed request, or a cursor from another request.
9190
+ */
9191
+ 400: Problem;
9192
+ /**
9193
+ * No valid API key or session.
9194
+ */
9195
+ 401: Problem;
9196
+ /**
9197
+ * Not enough credits for this call.
9198
+ */
9199
+ 402: Problem;
9200
+ /**
9201
+ * Not found, or it belongs to another workspace.
9202
+ */
9203
+ 404: Problem;
9204
+ /**
9205
+ * Conflict with the current state; `code` says which.
9206
+ */
9207
+ 409: Problem;
9208
+ /**
9209
+ * Erased or expired.
9210
+ */
9211
+ 410: Problem;
9212
+ /**
9213
+ * Validation failed; `errors[]` names each parameter or JSON pointer.
9214
+ */
9215
+ 422: Problem;
9216
+ /**
9217
+ * Too many requests; retry after `Retry-After`.
9218
+ */
9219
+ 429: Problem;
9220
+ /**
9221
+ * Internal error; quote `requestId` to support.
9222
+ */
9223
+ 500: Problem;
9224
+ };
9225
+ export type CheckAddressError = CheckAddressErrors[keyof CheckAddressErrors];
9226
+ export type CheckAddressResponses = {
9227
+ /**
9228
+ * Check an address against the Austrian snapshot.
9229
+ */
9230
+ 200: AddressValidationResponse;
9231
+ };
9232
+ export type CheckAddressResponse = CheckAddressResponses[keyof CheckAddressResponses];
9233
+ export type GetAddressData = {
9234
+ body?: never;
9235
+ headers?: {
9236
+ /**
9237
+ * ETag from a previous read. A match returns a free 304.
9238
+ */
9239
+ 'If-None-Match'?: string;
9240
+ /**
9241
+ * Optional replay key, retained for 24 hours. Replays are free.
9242
+ */
9243
+ 'Idempotency-Key'?: string;
9244
+ };
9245
+ path: {
9246
+ /**
9247
+ * Stable A Firmenakte-ID (compact or hyphenated, including merged IDs), or bev:<address-code> alias. Resolves published current or historical addresses.
9248
+ */
9249
+ id: AkteId;
9250
+ };
9251
+ query?: never;
9252
+ url: '/api/v2/addresses/{id}';
9253
+ };
9254
+ export type GetAddressErrors = {
9255
+ /**
9256
+ * Malformed request, or a cursor from another request.
9257
+ */
9258
+ 400: Problem;
9259
+ /**
9260
+ * No valid API key or session.
9261
+ */
9262
+ 401: Problem;
9263
+ /**
9264
+ * Not enough credits for this call.
9265
+ */
9266
+ 402: Problem;
9267
+ /**
9268
+ * Not found, or it belongs to another workspace.
9269
+ */
9270
+ 404: Problem;
9271
+ /**
9272
+ * Conflict with the current state; `code` says which.
9273
+ */
9274
+ 409: Problem;
9275
+ /**
9276
+ * Erased or expired.
9277
+ */
9278
+ 410: Problem;
9279
+ /**
9280
+ * Validation failed; `errors[]` names each parameter or JSON pointer.
9281
+ */
9282
+ 422: Problem;
9283
+ /**
9284
+ * Too many requests; retry after `Retry-After`.
9285
+ */
9286
+ 429: Problem;
9287
+ /**
9288
+ * Internal error; quote `requestId` to support.
9289
+ */
9290
+ 500: Problem;
9291
+ };
9292
+ export type GetAddressError = GetAddressErrors[keyof GetAddressErrors];
9293
+ export type GetAddressResponses = {
9294
+ /**
9295
+ * Get a reference address.
9296
+ */
9297
+ 200: ReferenceAddressResponse;
9298
+ };
9299
+ export type GetAddressResponse = GetAddressResponses[keyof GetAddressResponses];
9300
+ export type GetPlaceData = {
9301
+ body?: never;
9302
+ headers?: {
9303
+ /**
9304
+ * ETag from a previous read. A match returns a free 304.
9305
+ */
9306
+ 'If-None-Match'?: string;
9307
+ };
9308
+ path: {
9309
+ /**
9310
+ * Stable G Firmenakte-ID (compact or hyphenated, including merged IDs), or geographic source alias such as gkz:10101. Resolves published current or retired geography.
9311
+ */
9312
+ id: AkteId;
9313
+ };
9314
+ query?: never;
9315
+ url: '/api/v2/places/{id}';
9316
+ };
9317
+ export type GetPlaceErrors = {
9318
+ /**
9319
+ * Malformed request, or a cursor from another request.
9320
+ */
9321
+ 400: Problem;
9322
+ /**
9323
+ * No valid API key or session.
9324
+ */
9325
+ 401: Problem;
9326
+ /**
9327
+ * Not enough credits for this call.
9328
+ */
9329
+ 402: Problem;
9330
+ /**
9331
+ * Not found, or it belongs to another workspace.
9332
+ */
9333
+ 404: Problem;
9334
+ /**
9335
+ * Conflict with the current state; `code` says which.
9336
+ */
9337
+ 409: Problem;
9338
+ /**
9339
+ * Erased or expired.
9340
+ */
9341
+ 410: Problem;
9342
+ /**
9343
+ * Validation failed; `errors[]` names each parameter or JSON pointer.
9344
+ */
9345
+ 422: Problem;
9346
+ /**
9347
+ * Too many requests; retry after `Retry-After`.
9348
+ */
9349
+ 429: Problem;
9350
+ /**
9351
+ * Internal error; quote `requestId` to support.
9352
+ */
9353
+ 500: Problem;
9354
+ };
9355
+ export type GetPlaceError = GetPlaceErrors[keyof GetPlaceErrors];
9356
+ export type GetPlaceResponses = {
9357
+ /**
9358
+ * Get a geographic place.
9359
+ */
9360
+ 200: GeographicPlaceResponse;
9361
+ };
9362
+ export type GetPlaceResponse = GetPlaceResponses[keyof GetPlaceResponses];
8891
9363
  export type GetDocumentContentData = {
8892
9364
  body?: never;
8893
9365
  headers?: {