@firmenakte/api-client 2.31.0 → 2.32.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/client.js CHANGED
@@ -11,7 +11,23 @@
11
11
  * ---------------------------------------------------------------
12
12
  */
13
13
  Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.Api = exports.HttpClient = exports.ContentType = exports.BusinessExportFormat = exports.ChangeType = exports.InsolvencyCourtEventType = exports.InsolvencyEvidenceKind = exports.InsolvencyEvidenceStatus = exports.InsolvencyProceedingStatus = exports.InsolvencyProceedingType = exports.PassivpostenNach = void 0;
14
+ exports.Api = exports.HttpClient = exports.ContentType = exports.BusinessExportFormat = exports.ChangeType = exports.InsolvencyCourtEventType = exports.InsolvencyEvidenceKind = exports.InsolvencyEvidenceStatus = exports.InsolvencyProceedingStatus = exports.InsolvencyProceedingType = exports.PassivpostenNach = exports.SourceKey = void 0;
15
+ /** Where a value comes from: the key of its entry in GET /api/v2/catalogs/sources. Every source field of API v2 takes one of these; the catalogue says under which terms it is shown. */
16
+ var SourceKey;
17
+ (function (SourceKey) {
18
+ SourceKey["Firmenbuch"] = "firmenbuch";
19
+ SourceKey["Ediktsdatei"] = "ediktsdatei";
20
+ SourceKey["Evi"] = "evi";
21
+ SourceKey["Gisa"] = "gisa";
22
+ SourceKey["BmfScheinunternehmen"] = "bmf-scheinunternehmen";
23
+ SourceKey["Transparenzportal"] = "transparenzportal";
24
+ SourceKey["Ama"] = "ama";
25
+ SourceKey["Bev"] = "bev";
26
+ SourceKey["StatistikAustria"] = "statistik-austria";
27
+ SourceKey["Vies"] = "vies";
28
+ SourceKey["Websites"] = "websites";
29
+ SourceKey["Openstreetmap"] = "openstreetmap";
30
+ })(SourceKey || (exports.SourceKey = SourceKey = {}));
15
31
  /** The standard Passiva position a WeitererPassivposten follows in the filing. */
16
32
  var PassivpostenNach;
17
33
  (function (PassivpostenNach) {
@@ -589,6 +605,54 @@ class Api extends HttpClient {
589
605
  format: "json",
590
606
  ...params,
591
607
  }),
608
+ /**
609
+ * @description Downloads a Firmenbuch document (PDF/XML) by its document key. Kostet 3 Credits.
610
+ *
611
+ * @tags Documents
612
+ * @name V1DocumentsDownloadDetail
613
+ * @summary Firmenbuch document download
614
+ * @request GET:/api/v1/documents/download/{documentKey}
615
+ * @secure
616
+ */
617
+ v1DocumentsDownloadDetail: (documentKey, params = {}) => this.request({
618
+ path: `/api/v1/documents/download/${documentKey}`,
619
+ method: "GET",
620
+ secure: true,
621
+ ...params,
622
+ }),
623
+ /**
624
+ * @description Returns one document change by id, with the document's metadata. The id is the shared change id from GET /globalchanges, so an id that exists but whose changeType is not "document" answers 404 here. Kostet 1 Credit.
625
+ *
626
+ * @tags Documents
627
+ * @name V1DocumentsChangesDetail
628
+ * @summary Document change by id
629
+ * @request GET:/api/v1/documents/changes/{id}
630
+ * @secure
631
+ */
632
+ v1DocumentsChangesDetail: (id, params = {}) => this.request({
633
+ path: `/api/v1/documents/changes/${id}`,
634
+ method: "GET",
635
+ secure: true,
636
+ format: "json",
637
+ ...params,
638
+ }),
639
+ /**
640
+ * @description Feed of newly filed Firmenbuch documents — this is how you learn that a company has published a new Jahresabschluss. Each entry names a documentKey; fetch the file itself with GET /documents/download/{documentKey}. Ordered by ascending id, and that id is the cursor: request with sinceId set to the highest id you have stored, walk page=1,2,… at a fixed pageSize until a page comes back with fewer than pageSize rows, keep the highest id you saw, and start the next poll from it. sinceId is exclusive, so nothing is delivered twice, and a new change always takes a higher id than every change already in the feed, so it appends to the end and never shifts a page you have already read. since is inclusive, filters on when we recorded the change rather than on the document date, and applies together with sinceId when both are sent. Paging without sinceId is not a reliable feed: an offset is not a watermark, and page stops at 1000. totalRecords stops there too — it is counted only as far as page 1000 reaches, so it caps at 1000 × pageSize and means "at least this many" once it is that; stop on a short page, not on a count. Under concurrent writes a change can become visible just after a higher id, so a consumer that must not miss one resumes from the previous poll's watermark and de-duplicates by id. fnr is normalised before matching — trimmed, spaces and leading zeros removed, case left alone — so 034853 f and 34853f are the same company, exactly as on GET /businesses. Kostet 1 Credit.
641
+ *
642
+ * @tags Documents
643
+ * @name V1DocumentsChangesList
644
+ * @summary Document change feed
645
+ * @request GET:/api/v1/documents/changes
646
+ * @secure
647
+ */
648
+ v1DocumentsChangesList: (query, params = {}) => this.request({
649
+ path: `/api/v1/documents/changes`,
650
+ method: "GET",
651
+ query: query,
652
+ secure: true,
653
+ format: "json",
654
+ ...params,
655
+ }),
592
656
  /**
593
657
  * @description Returns one Ediktsdatei change by id. The id is the shared change id from GET /globalchanges, so an id that exists but whose changeType is not "edikt" answers 404 here. Kostet 1 Credit.
594
658
  *
@@ -622,6 +686,40 @@ class Api extends HttpClient {
622
686
  format: "json",
623
687
  ...params,
624
688
  }),
689
+ /**
690
+ * @description The autocomplete read: /businesses and /people for one term, ranked together, so a search field costs one request per keystroke rather than two and does not have to merge two orders itself. Each row carries either business or person, whichever type names. Ordered by where the term sits in the name, then by the shorter name, then companies before people. pageSize is per side, so the answer holds up to twice as many rows. An empty search answers an empty list; use /businesses to page through the whole dataset. Kostet 1 Credit.
691
+ *
692
+ * @tags Search
693
+ * @name V1SearchList
694
+ * @summary Companies and people in one ranked list
695
+ * @request GET:/api/v1/search
696
+ * @secure
697
+ */
698
+ v1SearchList: (query, params = {}) => this.request({
699
+ path: `/api/v1/search`,
700
+ method: "GET",
701
+ query: query,
702
+ secure: true,
703
+ format: "json",
704
+ ...params,
705
+ }),
706
+ /**
707
+ * @description Returns the graph (nodes and edges) within 2 hops of the start entity. Exactly one of personId or fnr must be provided. The network of people and companies around one starting point — who sits on which board with whom. nodes are people ("person") and companies ("business"), each carrying the id you would pass to /people/{personId} or /businesses/{fnr} — a person's is the Firmenakte-ID, e.g. "P-7K3M-QX91"; edges are source/target pairs of those ids whose relationshipType is "assignment", a person holding a function in a company. Two further edge types the deployment can enable: "address", two companies registered at the same street address, and "ownership", a company holding shares in another — source is the shareholder, target the company it holds, and capitalAmount, currency and sharePercent carry the stake where the register gives one. Ownership edges are drawn only for companies crawled since the shareholder mapping went live, so a company not yet re-crawled reports none rather than implying it has none. The traversal depth is fixed at 2 hops and is not a parameter — a node with further connections outside that boundary carries hasMore=true, and isCentralNode marks the entity you started from. personId and fnr are mutually exclusive, not combinable: supplying both, or neither, is a 400, and an id that exists in neither register is a 404. personId answers on the canonical Firmenakte-ID; another spelling of it and a person's old "vorname-nachname-…" id answer one 308 whose relative Location carries the canonical form. Kostet 3 Credits.
708
+ *
709
+ * @tags Graph
710
+ * @name V1GraphList
711
+ * @summary Relationship graph
712
+ * @request GET:/api/v1/graph
713
+ * @secure
714
+ */
715
+ v1GraphList: (query, params = {}) => this.request({
716
+ path: `/api/v1/graph`,
717
+ method: "GET",
718
+ query: query,
719
+ secure: true,
720
+ format: "json",
721
+ ...params,
722
+ }),
625
723
  /**
626
724
  * @description Returns (id, name) pairs for all people with at least one business assignment. For client-side name index. id is the person's Firmenakte-ID, e.g. "P-7K3M-QX91". Kostet 1 Credit.
627
725
  *
@@ -671,6 +769,73 @@ class Api extends HttpClient {
671
769
  format: "json",
672
770
  ...params,
673
771
  }),
772
+ /**
773
+ * @description Returns all legal forms with pagination and optional search, sorted by business count descending. Kostet 1 Credit.
774
+ *
775
+ * @tags LegalForms
776
+ * @name V1LegalformsList
777
+ * @summary Legal form catalog
778
+ * @request GET:/api/v1/legalforms
779
+ * @secure
780
+ */
781
+ v1LegalformsList: (query, params = {}) => this.request({
782
+ path: `/api/v1/legalforms`,
783
+ method: "GET",
784
+ query: query,
785
+ secure: true,
786
+ format: "json",
787
+ ...params,
788
+ }),
789
+ /**
790
+ * @description Returns the OeNACE classification catalog with company counts. Results are ordered by company count descending — most used first. Kostet 1 Credit.
791
+ *
792
+ * @tags Oenace
793
+ * @name V1OenaceList
794
+ * @summary OeNACE classification catalog
795
+ * @request GET:/api/v1/oenace
796
+ * @secure
797
+ */
798
+ v1OenaceList: (query, params = {}) => this.request({
799
+ path: `/api/v1/oenace`,
800
+ method: "GET",
801
+ query: query,
802
+ secure: true,
803
+ format: "json",
804
+ ...params,
805
+ }),
806
+ /**
807
+ * @description Returns all assignment functions (code/text lookup) for display. Cached for at most one minute. Kostet 1 Credit.
808
+ *
809
+ * @tags AssignmentFunctions
810
+ * @name V1AssignmentfunctionsList
811
+ * @summary Assignment function catalog
812
+ * @request GET:/api/v1/assignmentfunctions
813
+ * @secure
814
+ */
815
+ v1AssignmentfunctionsList: (params = {}) => this.request({
816
+ path: `/api/v1/assignmentfunctions`,
817
+ method: "GET",
818
+ secure: true,
819
+ format: "json",
820
+ ...params,
821
+ }),
822
+ /**
823
+ * @description Returns all courts with pagination and optional search, sorted by business count descending. Kostet 1 Credit.
824
+ *
825
+ * @tags Courts
826
+ * @name V1CourtsList
827
+ * @summary Court catalog
828
+ * @request GET:/api/v1/courts
829
+ * @secure
830
+ */
831
+ v1CourtsList: (query, params = {}) => this.request({
832
+ path: `/api/v1/courts`,
833
+ method: "GET",
834
+ query: query,
835
+ secure: true,
836
+ format: "json",
837
+ ...params,
838
+ }),
674
839
  /**
675
840
  * @description Resolve company names to FNRs by exact name match (1:1). Used for CSV import. Kostet 1 Credit.
676
841
  *
@@ -886,172 +1051,6 @@ class Api extends HttpClient {
886
1051
  format: "json",
887
1052
  ...params,
888
1053
  }),
889
- /**
890
- * @description Returns unique City+ZipCode combinations from addresses with pagination and optional search. Kostet 1 Credit.
891
- *
892
- * @tags Addresses
893
- * @name V1AddressesLocationsList
894
- * @summary City and ZIP combinations
895
- * @request GET:/api/v1/addresses/locations
896
- * @secure
897
- */
898
- v1AddressesLocationsList: (query, params = {}) => this.request({
899
- path: `/api/v1/addresses/locations`,
900
- method: "GET",
901
- query: query,
902
- secure: true,
903
- format: "json",
904
- ...params,
905
- }),
906
- /**
907
- * @description Returns unique cities from addresses with pagination and optional search. Kostet 1 Credit.
908
- *
909
- * @tags Addresses
910
- * @name V1AddressesCitiesList
911
- * @summary Cities
912
- * @request GET:/api/v1/addresses/cities
913
- * @secure
914
- */
915
- v1AddressesCitiesList: (query, params = {}) => this.request({
916
- path: `/api/v1/addresses/cities`,
917
- method: "GET",
918
- query: query,
919
- secure: true,
920
- format: "json",
921
- ...params,
922
- }),
923
- /**
924
- * @description Ranks cities and City+ZipCode combinations against one term and answers the best few of both, as one ranking split into two lists — what a location filter's type-ahead needs, where /addresses/locations and /addresses/cities are the paged catalogues behind it. Ordered by where the term sits in the label, then by the shorter label, then by company count, so "wien" answers Wien before Wiener Neustadt and before every 1xxx ZIP that carries it. A term shorter than two characters is ignored and the biggest groups come back instead. top caps both lists together, not each. Kostet 1 Credit.
925
- *
926
- * @tags Addresses
927
- * @name V1AddressesSuggestList
928
- * @summary Location autocomplete
929
- * @request GET:/api/v1/addresses/suggest
930
- * @secure
931
- */
932
- v1AddressesSuggestList: (query, params = {}) => this.request({
933
- path: `/api/v1/addresses/suggest`,
934
- method: "GET",
935
- query: query,
936
- secure: true,
937
- format: "json",
938
- ...params,
939
- }),
940
- /**
941
- * @description Returns unique zip codes from addresses with pagination and optional search. Kostet 1 Credit.
942
- *
943
- * @tags Addresses
944
- * @name V1AddressesZipcodesList
945
- * @summary ZIP codes
946
- * @request GET:/api/v1/addresses/zipcodes
947
- * @secure
948
- */
949
- v1AddressesZipcodesList: (query, params = {}) => this.request({
950
- path: `/api/v1/addresses/zipcodes`,
951
- method: "GET",
952
- query: query,
953
- secure: true,
954
- format: "json",
955
- ...params,
956
- }),
957
- /**
958
- * @description The Gemeinde catalogue: one row per Austrian Gemeinde the register can address, with its official name, its URL slug, its Bundesland and that Land's slug, the PLZ that resolve to it, the alias slugs that name it and, for Wien, its Bezirke. This is the one source for a place's identity. The city column of an address is Firmenbuch free text and carries "Klagenfurt am Wörthersee", "Klagenfurt", "Klagenfurt-Viktring" and "Klagenfurt-Wölfnitz" side by side, so it cannot be a key; a Gemeinde is derived from the PLZ of the Geschäftsanschrift instead, and GET /businesses?gemeinde=<slug> answers every one of those spellings at once. Fold the zipCode buckets of GET /businesses/aggregate through zipCodes to count companies per Gemeinde. Unpaged and without a filter on purpose: 1.893 rows that change only with a new Gebietsstand, so one cacheable answer is cheaper for every caller than paging a list they all want whole. Companies with a foreign or unusable PLZ resolve to no Gemeinde and appear under none. Kostet 1 Credit.
959
- *
960
- * @tags Addresses
961
- * @name V1AddressesGemeindenList
962
- * @summary Gemeinden
963
- * @request GET:/api/v1/addresses/gemeinden
964
- * @secure
965
- */
966
- v1AddressesGemeindenList: (params = {}) => this.request({
967
- path: `/api/v1/addresses/gemeinden`,
968
- method: "GET",
969
- secure: true,
970
- format: "json",
971
- ...params,
972
- }),
973
- /**
974
- * @description Downloads a Firmenbuch document (PDF/XML) by its document key. Kostet 3 Credits.
975
- *
976
- * @tags Documents
977
- * @name V1DocumentsDownloadDetail
978
- * @summary Firmenbuch document download
979
- * @request GET:/api/v1/documents/download/{documentKey}
980
- * @secure
981
- */
982
- v1DocumentsDownloadDetail: (documentKey, params = {}) => this.request({
983
- path: `/api/v1/documents/download/${documentKey}`,
984
- method: "GET",
985
- secure: true,
986
- ...params,
987
- }),
988
- /**
989
- * @description Returns one document change by id, with the document's metadata. The id is the shared change id from GET /globalchanges, so an id that exists but whose changeType is not "document" answers 404 here. Kostet 1 Credit.
990
- *
991
- * @tags Documents
992
- * @name V1DocumentsChangesDetail
993
- * @summary Document change by id
994
- * @request GET:/api/v1/documents/changes/{id}
995
- * @secure
996
- */
997
- v1DocumentsChangesDetail: (id, params = {}) => this.request({
998
- path: `/api/v1/documents/changes/${id}`,
999
- method: "GET",
1000
- secure: true,
1001
- format: "json",
1002
- ...params,
1003
- }),
1004
- /**
1005
- * @description Feed of newly filed Firmenbuch documents — this is how you learn that a company has published a new Jahresabschluss. Each entry names a documentKey; fetch the file itself with GET /documents/download/{documentKey}. Ordered by ascending id, and that id is the cursor: request with sinceId set to the highest id you have stored, walk page=1,2,… at a fixed pageSize until a page comes back with fewer than pageSize rows, keep the highest id you saw, and start the next poll from it. sinceId is exclusive, so nothing is delivered twice, and a new change always takes a higher id than every change already in the feed, so it appends to the end and never shifts a page you have already read. since is inclusive, filters on when we recorded the change rather than on the document date, and applies together with sinceId when both are sent. Paging without sinceId is not a reliable feed: an offset is not a watermark, and page stops at 1000. totalRecords stops there too — it is counted only as far as page 1000 reaches, so it caps at 1000 × pageSize and means "at least this many" once it is that; stop on a short page, not on a count. Under concurrent writes a change can become visible just after a higher id, so a consumer that must not miss one resumes from the previous poll's watermark and de-duplicates by id. fnr is normalised before matching — trimmed, spaces and leading zeros removed, case left alone — so 034853 f and 34853f are the same company, exactly as on GET /businesses. Kostet 1 Credit.
1006
- *
1007
- * @tags Documents
1008
- * @name V1DocumentsChangesList
1009
- * @summary Document change feed
1010
- * @request GET:/api/v1/documents/changes
1011
- * @secure
1012
- */
1013
- v1DocumentsChangesList: (query, params = {}) => this.request({
1014
- path: `/api/v1/documents/changes`,
1015
- method: "GET",
1016
- query: query,
1017
- secure: true,
1018
- format: "json",
1019
- ...params,
1020
- }),
1021
- /**
1022
- * @description The autocomplete read: /businesses and /people for one term, ranked together, so a search field costs one request per keystroke rather than two and does not have to merge two orders itself. Each row carries either business or person, whichever type names. Ordered by where the term sits in the name, then by the shorter name, then companies before people. pageSize is per side, so the answer holds up to twice as many rows. An empty search answers an empty list; use /businesses to page through the whole dataset. Kostet 1 Credit.
1023
- *
1024
- * @tags Search
1025
- * @name V1SearchList
1026
- * @summary Companies and people in one ranked list
1027
- * @request GET:/api/v1/search
1028
- * @secure
1029
- */
1030
- v1SearchList: (query, params = {}) => this.request({
1031
- path: `/api/v1/search`,
1032
- method: "GET",
1033
- query: query,
1034
- secure: true,
1035
- format: "json",
1036
- ...params,
1037
- }),
1038
- /**
1039
- * @description Returns the graph (nodes and edges) within 2 hops of the start entity. Exactly one of personId or fnr must be provided. The network of people and companies around one starting point — who sits on which board with whom. nodes are people ("person") and companies ("business"), each carrying the id you would pass to /people/{personId} or /businesses/{fnr} — a person's is the Firmenakte-ID, e.g. "P-7K3M-QX91"; edges are source/target pairs of those ids whose relationshipType is "assignment", a person holding a function in a company. Two further edge types the deployment can enable: "address", two companies registered at the same street address, and "ownership", a company holding shares in another — source is the shareholder, target the company it holds, and capitalAmount, currency and sharePercent carry the stake where the register gives one. Ownership edges are drawn only for companies crawled since the shareholder mapping went live, so a company not yet re-crawled reports none rather than implying it has none. The traversal depth is fixed at 2 hops and is not a parameter — a node with further connections outside that boundary carries hasMore=true, and isCentralNode marks the entity you started from. personId and fnr are mutually exclusive, not combinable: supplying both, or neither, is a 400, and an id that exists in neither register is a 404. personId answers on the canonical Firmenakte-ID; another spelling of it and a person's old "vorname-nachname-…" id answer one 308 whose relative Location carries the canonical form. Kostet 3 Credits.
1040
- *
1041
- * @tags Graph
1042
- * @name V1GraphList
1043
- * @summary Relationship graph
1044
- * @request GET:/api/v1/graph
1045
- * @secure
1046
- */
1047
- v1GraphList: (query, params = {}) => this.request({
1048
- path: `/api/v1/graph`,
1049
- method: "GET",
1050
- query: query,
1051
- secure: true,
1052
- format: "json",
1053
- ...params,
1054
- }),
1055
1054
  /**
1056
1055
  * @description The single feed of every change across all registers — Firmenbuch, GISA, Ediktsdatei and the BMF Scheinunternehmen list — as lightweight reference rows. Each row carries only id, fnr, changeType and the dates; fetch the payload with GET /globalchanges/{id}, or poll one register's typed feed instead (/businesses/changes, /documents/changes, /edikte/changes, /trades/changes). Ordered by ascending id, and that id is the cursor: request with sinceId set to the highest id you have stored, walk page=1,2,… at a fixed pageSize until a page comes back with fewer than pageSize rows, keep the highest id you saw, and start the next poll from it. sinceId is exclusive, so nothing is delivered twice, and a new change always takes a higher id than every change already in the feed, so it appends to the end and never shifts a page you have already read. since is inclusive, filters on when we recorded the change rather than on changedDate, and applies together with sinceId when both are sent. Paging without sinceId is not a reliable feed: an offset is not a watermark, and page stops at 1000. totalRecords stops there too — it is counted only as far as page 1000 reaches, so it caps at 1000 × pageSize and means "at least this many" once it is that; stop on a short page, not on a count. Under concurrent writes a change can become visible just after a higher id, so a consumer that must not miss one resumes from the previous poll's watermark and de-duplicates by id. Kostet 1 Credit.
1057
1056
  *
@@ -1103,16 +1102,16 @@ class Api extends HttpClient {
1103
1102
  ...params,
1104
1103
  }),
1105
1104
  /**
1106
- * @description Returns the OeNACE classification catalog with company counts. Results are ordered by company count descending — most used first. Kostet 1 Credit.
1105
+ * @description Returns unique City+ZipCode combinations from addresses with pagination and optional search. Kostet 1 Credit.
1107
1106
  *
1108
- * @tags Oenace
1109
- * @name V1OenaceList
1110
- * @summary OeNACE classification catalog
1111
- * @request GET:/api/v1/oenace
1107
+ * @tags Addresses
1108
+ * @name V1AddressesLocationsList
1109
+ * @summary City and ZIP combinations
1110
+ * @request GET:/api/v1/addresses/locations
1112
1111
  * @secure
1113
1112
  */
1114
- v1OenaceList: (query, params = {}) => this.request({
1115
- path: `/api/v1/oenace`,
1113
+ v1AddressesLocationsList: (query, params = {}) => this.request({
1114
+ path: `/api/v1/addresses/locations`,
1116
1115
  method: "GET",
1117
1116
  query: query,
1118
1117
  secure: true,
@@ -1120,16 +1119,16 @@ class Api extends HttpClient {
1120
1119
  ...params,
1121
1120
  }),
1122
1121
  /**
1123
- * @description Returns all legal forms with pagination and optional search, sorted by business count descending. Kostet 1 Credit.
1122
+ * @description Returns unique cities from addresses with pagination and optional search. Kostet 1 Credit.
1124
1123
  *
1125
- * @tags LegalForms
1126
- * @name V1LegalformsList
1127
- * @summary Legal form catalog
1128
- * @request GET:/api/v1/legalforms
1124
+ * @tags Addresses
1125
+ * @name V1AddressesCitiesList
1126
+ * @summary Cities
1127
+ * @request GET:/api/v1/addresses/cities
1129
1128
  * @secure
1130
1129
  */
1131
- v1LegalformsList: (query, params = {}) => this.request({
1132
- path: `/api/v1/legalforms`,
1130
+ v1AddressesCitiesList: (query, params = {}) => this.request({
1131
+ path: `/api/v1/addresses/cities`,
1133
1132
  method: "GET",
1134
1133
  query: query,
1135
1134
  secure: true,
@@ -1137,16 +1136,16 @@ class Api extends HttpClient {
1137
1136
  ...params,
1138
1137
  }),
1139
1138
  /**
1140
- * @description Returns all courts with pagination and optional search, sorted by business count descending. Kostet 1 Credit.
1139
+ * @description Ranks cities and City+ZipCode combinations against one term and answers the best few of both, as one ranking split into two lists — what a location filter's type-ahead needs, where /addresses/locations and /addresses/cities are the paged catalogues behind it. Ordered by where the term sits in the label, then by the shorter label, then by company count, so "wien" answers Wien before Wiener Neustadt and before every 1xxx ZIP that carries it. A term shorter than two characters is ignored and the biggest groups come back instead. top caps both lists together, not each. Kostet 1 Credit.
1141
1140
  *
1142
- * @tags Courts
1143
- * @name V1CourtsList
1144
- * @summary Court catalog
1145
- * @request GET:/api/v1/courts
1141
+ * @tags Addresses
1142
+ * @name V1AddressesSuggestList
1143
+ * @summary Location autocomplete
1144
+ * @request GET:/api/v1/addresses/suggest
1146
1145
  * @secure
1147
1146
  */
1148
- v1CourtsList: (query, params = {}) => this.request({
1149
- path: `/api/v1/courts`,
1147
+ v1AddressesSuggestList: (query, params = {}) => this.request({
1148
+ path: `/api/v1/addresses/suggest`,
1150
1149
  method: "GET",
1151
1150
  query: query,
1152
1151
  secure: true,
@@ -1154,16 +1153,33 @@ class Api extends HttpClient {
1154
1153
  ...params,
1155
1154
  }),
1156
1155
  /**
1157
- * @description Returns all assignment functions (code/text lookup) for display. Cached for at most one minute. Kostet 1 Credit.
1156
+ * @description Returns unique zip codes from addresses with pagination and optional search. Kostet 1 Credit.
1158
1157
  *
1159
- * @tags AssignmentFunctions
1160
- * @name V1AssignmentfunctionsList
1161
- * @summary Assignment function catalog
1162
- * @request GET:/api/v1/assignmentfunctions
1158
+ * @tags Addresses
1159
+ * @name V1AddressesZipcodesList
1160
+ * @summary ZIP codes
1161
+ * @request GET:/api/v1/addresses/zipcodes
1163
1162
  * @secure
1164
1163
  */
1165
- v1AssignmentfunctionsList: (params = {}) => this.request({
1166
- path: `/api/v1/assignmentfunctions`,
1164
+ v1AddressesZipcodesList: (query, params = {}) => this.request({
1165
+ path: `/api/v1/addresses/zipcodes`,
1166
+ method: "GET",
1167
+ query: query,
1168
+ secure: true,
1169
+ format: "json",
1170
+ ...params,
1171
+ }),
1172
+ /**
1173
+ * @description The Gemeinde catalogue: one row per Austrian Gemeinde the register can address, with its official name, its URL slug, its Bundesland and that Land's slug, the PLZ that resolve to it, the alias slugs that name it and, for Wien, its Bezirke. This is the one source for a place's identity. The city column of an address is Firmenbuch free text and carries "Klagenfurt am Wörthersee", "Klagenfurt", "Klagenfurt-Viktring" and "Klagenfurt-Wölfnitz" side by side, so it cannot be a key; a Gemeinde is derived from the PLZ of the Geschäftsanschrift instead, and GET /businesses?gemeinde=<slug> answers every one of those spellings at once. Fold the zipCode buckets of GET /businesses/aggregate through zipCodes to count companies per Gemeinde. Unpaged and without a filter on purpose: 1.893 rows that change only with a new Gebietsstand, so one cacheable answer is cheaper for every caller than paging a list they all want whole. Companies with a foreign or unusable PLZ resolve to no Gemeinde and appear under none. Kostet 1 Credit.
1174
+ *
1175
+ * @tags Addresses
1176
+ * @name V1AddressesGemeindenList
1177
+ * @summary Gemeinden
1178
+ * @request GET:/api/v1/addresses/gemeinden
1179
+ * @secure
1180
+ */
1181
+ v1AddressesGemeindenList: (params = {}) => this.request({
1182
+ path: `/api/v1/addresses/gemeinden`,
1167
1183
  method: "GET",
1168
1184
  secure: true,
1169
1185
  format: "json",
package/index.d.ts CHANGED
@@ -49,6 +49,15 @@ export declare const createApiClient: ({ apiKey, baseUrl, timeoutMs, }: ClientCo
49
49
  page?: number;
50
50
  pageSize?: number;
51
51
  } | undefined, params?: import("./client").RequestParams) => Promise<import("./client").HttpResponse<import("./client").PagedResponseOfFoerderungChange, import("./client").ApiError | import("./client").ProblemDetails>>;
52
+ v1DocumentsDownloadDetail: (documentKey: string, params?: import("./client").RequestParams) => Promise<import("./client").HttpResponse<void, string | import("./client").ApiError | import("./client").ProblemDetails>>;
53
+ v1DocumentsChangesDetail: (id: number, params?: import("./client").RequestParams) => Promise<import("./client").HttpResponse<import("./client").DocumentChange, import("./client").ApiError | import("./client").ProblemDetails>>;
54
+ v1DocumentsChangesList: (query?: {
55
+ fnr?: string;
56
+ since?: string;
57
+ sinceId?: number;
58
+ page?: number;
59
+ pageSize?: number;
60
+ } | undefined, params?: import("./client").RequestParams) => Promise<import("./client").HttpResponse<import("./client").PagedResponseOfDocumentChange, import("./client").ApiError | import("./client").ProblemDetails>>;
52
61
  v1EdikteChangesDetail: (id: number, params?: import("./client").RequestParams) => Promise<import("./client").HttpResponse<import("./client").EdiktChange, import("./client").ApiError | import("./client").ProblemDetails>>;
53
62
  v1EdikteChangesList: (query?: {
54
63
  fnr?: string;
@@ -57,6 +66,14 @@ export declare const createApiClient: ({ apiKey, baseUrl, timeoutMs, }: ClientCo
57
66
  page?: number;
58
67
  pageSize?: number;
59
68
  } | undefined, params?: import("./client").RequestParams) => Promise<import("./client").HttpResponse<import("./client").PagedResponseOfEdiktChange, import("./client").ApiError | import("./client").ProblemDetails>>;
69
+ v1SearchList: (query?: {
70
+ search?: string;
71
+ pageSize?: number;
72
+ } | undefined, params?: import("./client").RequestParams) => Promise<import("./client").HttpResponse<import("./client").SearchResponse, import("./client").ApiError | import("./client").ProblemDetails>>;
73
+ v1GraphList: (query?: {
74
+ personId?: string;
75
+ fnr?: string;
76
+ } | undefined, params?: import("./client").RequestParams) => Promise<import("./client").HttpResponse<import("./client").GraphResponse, import("./client").ApiError | import("./client").ProblemDetails>>;
60
77
  v1PeopleNamesList: (params?: import("./client").RequestParams) => Promise<import("./client").HttpResponse<import("./client").PersonNameItem[], import("./client").ApiError | import("./client").ProblemDetails>>;
61
78
  v1PeopleList: (query?: {
62
79
  name?: string;
@@ -73,6 +90,24 @@ export declare const createApiClient: ({ apiKey, baseUrl, timeoutMs, }: ClientCo
73
90
  pageSize?: number;
74
91
  } | undefined, params?: import("./client").RequestParams) => Promise<import("./client").HttpResponse<import("./client").PagedResponseOfPerson, import("./client").ApiError | import("./client").ProblemDetails>>;
75
92
  v1PeopleDetail: (personId: string, params?: import("./client").RequestParams) => Promise<import("./client").HttpResponse<import("./client").PersonDetailResponse, import("./client").ApiError | import("./client").ProblemDetails>>;
93
+ v1LegalformsList: (query?: {
94
+ search?: string;
95
+ page?: number;
96
+ pageSize?: number;
97
+ } | undefined, params?: import("./client").RequestParams) => Promise<import("./client").HttpResponse<import("./client").PagedResponseOfLegalFormCatalogItemResponse, import("./client").ApiError | import("./client").ProblemDetails>>;
98
+ v1OenaceList: (query?: {
99
+ search?: string;
100
+ ebene?: number;
101
+ minCompanyCount?: number;
102
+ page?: number;
103
+ pageSize?: number;
104
+ } | undefined, params?: import("./client").RequestParams) => Promise<import("./client").HttpResponse<import("./client").PagedResponseOfOenaceCatalogItemResponse, import("./client").ApiError | import("./client").ProblemDetails>>;
105
+ v1AssignmentfunctionsList: (params?: import("./client").RequestParams) => Promise<import("./client").HttpResponse<import("./client").AssignmentFunctionItemResponse[], import("./client").ApiError | import("./client").ProblemDetails>>;
106
+ v1CourtsList: (query?: {
107
+ search?: string;
108
+ page?: number;
109
+ pageSize?: number;
110
+ } | undefined, params?: import("./client").RequestParams) => Promise<import("./client").HttpResponse<import("./client").PagedResponseOfCourtCatalogItemResponse, import("./client").ApiError | import("./client").ProblemDetails>>;
76
111
  v1BusinessesResolveNamesCreate: (data: import("./client").ResolveBusinessNamesRequest, params?: import("./client").RequestParams) => Promise<import("./client").HttpResponse<import("./client").ResolveBusinessNamesResponse, import("./client").ApiError | import("./client").ProblemDetails>>;
77
112
  v1BusinessesList: (query?: {
78
113
  fnr?: string[];
@@ -591,43 +626,6 @@ export declare const createApiClient: ({ apiKey, baseUrl, timeoutMs, }: ClientCo
591
626
  page?: number;
592
627
  pageSize?: number;
593
628
  } | undefined, params?: import("./client").RequestParams) => Promise<import("./client").HttpResponse<import("./client").PagedResponseOfBusinessChange, import("./client").ApiError | import("./client").ProblemDetails>>;
594
- v1AddressesLocationsList: (query?: {
595
- search?: string;
596
- page?: number;
597
- pageSize?: number;
598
- } | undefined, params?: import("./client").RequestParams) => Promise<import("./client").HttpResponse<import("./client").PagedResponseOfAddressLocationResponse, import("./client").ApiError | import("./client").ProblemDetails>>;
599
- v1AddressesCitiesList: (query?: {
600
- search?: string;
601
- page?: number;
602
- pageSize?: number;
603
- } | undefined, params?: import("./client").RequestParams) => Promise<import("./client").HttpResponse<import("./client").PagedResponseOfCityResponse, import("./client").ApiError | import("./client").ProblemDetails>>;
604
- v1AddressesSuggestList: (query?: {
605
- search?: string;
606
- top?: number;
607
- } | undefined, params?: import("./client").RequestParams) => Promise<import("./client").HttpResponse<import("./client").LocationSuggestionsResponse, import("./client").ApiError | import("./client").ProblemDetails>>;
608
- v1AddressesZipcodesList: (query?: {
609
- search?: string;
610
- page?: number;
611
- pageSize?: number;
612
- } | undefined, params?: import("./client").RequestParams) => Promise<import("./client").HttpResponse<import("./client").PagedResponseOfZipCodeResponse, import("./client").ApiError | import("./client").ProblemDetails>>;
613
- v1AddressesGemeindenList: (params?: import("./client").RequestParams) => Promise<import("./client").HttpResponse<import("./client").GemeindeResponse[], import("./client").ApiError | import("./client").ProblemDetails>>;
614
- v1DocumentsDownloadDetail: (documentKey: string, params?: import("./client").RequestParams) => Promise<import("./client").HttpResponse<void, string | import("./client").ApiError | import("./client").ProblemDetails>>;
615
- v1DocumentsChangesDetail: (id: number, params?: import("./client").RequestParams) => Promise<import("./client").HttpResponse<import("./client").DocumentChange, import("./client").ApiError | import("./client").ProblemDetails>>;
616
- v1DocumentsChangesList: (query?: {
617
- fnr?: string;
618
- since?: string;
619
- sinceId?: number;
620
- page?: number;
621
- pageSize?: number;
622
- } | undefined, params?: import("./client").RequestParams) => Promise<import("./client").HttpResponse<import("./client").PagedResponseOfDocumentChange, import("./client").ApiError | import("./client").ProblemDetails>>;
623
- v1SearchList: (query?: {
624
- search?: string;
625
- pageSize?: number;
626
- } | undefined, params?: import("./client").RequestParams) => Promise<import("./client").HttpResponse<import("./client").SearchResponse, import("./client").ApiError | import("./client").ProblemDetails>>;
627
- v1GraphList: (query?: {
628
- personId?: string;
629
- fnr?: string;
630
- } | undefined, params?: import("./client").RequestParams) => Promise<import("./client").HttpResponse<import("./client").GraphResponse, import("./client").ApiError | import("./client").ProblemDetails>>;
631
629
  v1GlobalchangesList: (query?: {
632
630
  fnr?: string;
633
631
  since?: string;
@@ -642,24 +640,26 @@ export declare const createApiClient: ({ apiKey, baseUrl, timeoutMs, }: ClientCo
642
640
  maxResultsPerType?: number;
643
641
  } | undefined, params?: import("./client").RequestParams) => Promise<import("./client").HttpResponse<import("./client").AggregatedChangesResponse, import("./client").ApiError | import("./client").ProblemDetails>>;
644
642
  v1GlobalchangesDetail: (id: number, params?: import("./client").RequestParams) => Promise<import("./client").HttpResponse<import("./client").ChangeDetailResponse, import("./client").ApiError | import("./client").ProblemDetails>>;
645
- v1OenaceList: (query?: {
643
+ v1AddressesLocationsList: (query?: {
646
644
  search?: string;
647
- ebene?: number;
648
- minCompanyCount?: number;
649
645
  page?: number;
650
646
  pageSize?: number;
651
- } | undefined, params?: import("./client").RequestParams) => Promise<import("./client").HttpResponse<import("./client").PagedResponseOfOenaceCatalogItemResponse, import("./client").ApiError | import("./client").ProblemDetails>>;
652
- v1LegalformsList: (query?: {
647
+ } | undefined, params?: import("./client").RequestParams) => Promise<import("./client").HttpResponse<import("./client").PagedResponseOfAddressLocationResponse, import("./client").ApiError | import("./client").ProblemDetails>>;
648
+ v1AddressesCitiesList: (query?: {
653
649
  search?: string;
654
650
  page?: number;
655
651
  pageSize?: number;
656
- } | undefined, params?: import("./client").RequestParams) => Promise<import("./client").HttpResponse<import("./client").PagedResponseOfLegalFormCatalogItemResponse, import("./client").ApiError | import("./client").ProblemDetails>>;
657
- v1CourtsList: (query?: {
652
+ } | undefined, params?: import("./client").RequestParams) => Promise<import("./client").HttpResponse<import("./client").PagedResponseOfCityResponse, import("./client").ApiError | import("./client").ProblemDetails>>;
653
+ v1AddressesSuggestList: (query?: {
654
+ search?: string;
655
+ top?: number;
656
+ } | undefined, params?: import("./client").RequestParams) => Promise<import("./client").HttpResponse<import("./client").LocationSuggestionsResponse, import("./client").ApiError | import("./client").ProblemDetails>>;
657
+ v1AddressesZipcodesList: (query?: {
658
658
  search?: string;
659
659
  page?: number;
660
660
  pageSize?: number;
661
- } | undefined, params?: import("./client").RequestParams) => Promise<import("./client").HttpResponse<import("./client").PagedResponseOfCourtCatalogItemResponse, import("./client").ApiError | import("./client").ProblemDetails>>;
662
- v1AssignmentfunctionsList: (params?: import("./client").RequestParams) => Promise<import("./client").HttpResponse<import("./client").AssignmentFunctionItemResponse[], import("./client").ApiError | import("./client").ProblemDetails>>;
661
+ } | undefined, params?: import("./client").RequestParams) => Promise<import("./client").HttpResponse<import("./client").PagedResponseOfZipCodeResponse, import("./client").ApiError | import("./client").ProblemDetails>>;
662
+ v1AddressesGemeindenList: (params?: import("./client").RequestParams) => Promise<import("./client").HttpResponse<import("./client").GemeindeResponse[], import("./client").ApiError | import("./client").ProblemDetails>>;
663
663
  };
664
664
  export * from "./client";
665
665
  export * from "./keyfigures";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firmenakte/api-client",
3
- "version": "2.31.0",
3
+ "version": "2.32.0",
4
4
  "description": "TypeScript/JavaScript client for the Firmenakte API",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",