@firmenakte/api-client 2.37.0 → 2.39.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/README.md CHANGED
@@ -49,11 +49,11 @@ client has one method per operation, named by the operation's `operationId` in t
49
49
  import { createApiClient, isApiError } from "@firmenakte/api-client/v2";
50
50
 
51
51
  const client = createApiClient({ apiKey: process.env.FIRMENAKTE_KEY });
52
- const { data: company, response } = await client.getCompany({ path: { id: "fnr:56247t" } });
52
+ const { data: company, response } = await client.getPublicCompany({ path: { id: "fnr:56247t" } });
53
53
  console.log(company.name, response.headers.get("X-Credits-Charged"));
54
54
 
55
55
  try {
56
- await client.getCompany({ path: { id: "fnr:999999x" } });
56
+ await client.getPublicCompany({ path: { id: "fnr:999999x" } });
57
57
  } catch (error) {
58
58
  if (!isApiError(error)) throw error; // no answer: network failure, timeout or abort
59
59
  console.log(error.status, error.problem?.detail);
package/client.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- /** 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. */
1
+ /** Where a value comes from: the key of its entry in GET /api/v2/public/sources/catalogue. Every source field of API v2 takes one of these; the catalogue says under which terms it is shown. */
2
2
  export declare enum SourceKey {
3
3
  Firmenbuch = "firmenbuch",
4
4
  Ediktsdatei = "ediktsdatei",
@@ -1256,7 +1256,7 @@ export interface InsolvencyProceeding {
1256
1256
  courtEvent: InsolvencyCourtEvidence | null;
1257
1257
  /** An unambiguous company-level court event selected from Firmenbuch evidence. Source wording and case fields are retained; personal birth dates in text are redacted. */
1258
1258
  typeEvidence: InsolvencyCourtEvidence | null;
1259
- /** 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. */
1259
+ /** Where a value comes from: the key of its entry in GET /api/v2/public/sources/catalogue. Every source field of API v2 takes one of these; the catalogue says under which terms it is shown. */
1260
1260
  source?: SourceKey;
1261
1261
  }
1262
1262
  export type JsonDocument = any;
@@ -5209,23 +5209,6 @@ export declare namespace Api {
5209
5209
  type RequestHeaders = {};
5210
5210
  type ResponseBody = BusinessMapTopItem[];
5211
5211
  }
5212
- /**
5213
- * @description Similar companies without confirmed deletion (same OeNACE branch, same region preferred). Kostet 3 Credits.
5214
- * @tags Businesses
5215
- * @name V1BusinessesSimilarList
5216
- * @summary Similar companies
5217
- * @request GET:/api/v1/businesses/{fnr}/similar
5218
- * @secure
5219
- */
5220
- namespace V1BusinessesSimilarList {
5221
- type RequestParams = {
5222
- fnr: string;
5223
- };
5224
- type RequestQuery = {};
5225
- type RequestBody = never;
5226
- type RequestHeaders = {};
5227
- type ResponseBody = BusinessListResponse[];
5228
- }
5229
5212
  /**
5230
5213
  * @description Returns the whole Firmenakte of one company: master data, addresses, people, GISA licences, Edikte, documents and the parsed annual accounts. fnr is matched exactly against the stored, normalised Firmenbuchnummer — lower case, no spaces, no leading zeros and no "FN" prefix, e.g. 34853f. Nothing is normalised on the way in, so "FN 34853 f" answers 404 rather than the company. 404 also means the company is not in the dataset yet. Kostet 1 Credit.
5231
5214
  * @tags Businesses
@@ -8542,16 +8525,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8542
8525
  */
8543
8526
  "guv.ZinsenUndAehnlicheAufwendungen_lte"?: number | null;
8544
8527
  }, params?: RequestParams) => Promise<HttpResponse<BusinessMapTopItem[], ApiError | ProblemDetails>>;
8545
- /**
8546
- * @description Similar companies without confirmed deletion (same OeNACE branch, same region preferred). Kostet 3 Credits.
8547
- *
8548
- * @tags Businesses
8549
- * @name V1BusinessesSimilarList
8550
- * @summary Similar companies
8551
- * @request GET:/api/v1/businesses/{fnr}/similar
8552
- * @secure
8553
- */
8554
- v1BusinessesSimilarList: (fnr: string, params?: RequestParams) => Promise<HttpResponse<BusinessListResponse[], ApiError | ProblemDetails>>;
8555
8528
  /**
8556
8529
  * @description Returns the whole Firmenakte of one company: master data, addresses, people, GISA licences, Edikte, documents and the parsed annual accounts. fnr is matched exactly against the stored, normalised Firmenbuchnummer — lower case, no spaces, no leading zeros and no "FN" prefix, e.g. 34853f. Nothing is normalised on the way in, so "FN 34853 f" answers 404 rather than the company. 404 also means the company is not in the dataset yet. Kostet 1 Credit.
8557
8530
  *