@firmenakte/api-client 1.0.4 → 1.0.5

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
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  /* eslint-disable */
2
3
  /* tslint:disable */
3
4
  // @ts-nocheck
@@ -9,7 +10,9 @@
9
10
  * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
10
11
  * ---------------------------------------------------------------
11
12
  */
12
- export var ChangeType;
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.Api = exports.HttpClient = exports.ContentType = exports.ChangeType = void 0;
15
+ var ChangeType;
13
16
  (function (ChangeType) {
14
17
  ChangeType["Business"] = "business";
15
18
  ChangeType["Edikt"] = "edikt";
@@ -17,16 +20,16 @@ export var ChangeType;
17
20
  ChangeType["Gisa"] = "gisa";
18
21
  ChangeType["Scheinunternehmen"] = "scheinunternehmen";
19
22
  ChangeType["Unknown"] = "unknown";
20
- })(ChangeType || (ChangeType = {}));
21
- export var ContentType;
23
+ })(ChangeType || (exports.ChangeType = ChangeType = {}));
24
+ var ContentType;
22
25
  (function (ContentType) {
23
26
  ContentType["Json"] = "application/json";
24
27
  ContentType["JsonApi"] = "application/vnd.api+json";
25
28
  ContentType["FormData"] = "multipart/form-data";
26
29
  ContentType["UrlEncoded"] = "application/x-www-form-urlencoded";
27
30
  ContentType["Text"] = "text/plain";
28
- })(ContentType || (ContentType = {}));
29
- export class HttpClient {
31
+ })(ContentType || (exports.ContentType = ContentType = {}));
32
+ class HttpClient {
30
33
  constructor(apiConfig = {}) {
31
34
  this.baseUrl = "https://api.firmenakte.at";
32
35
  this.securityData = null;
@@ -177,12 +180,13 @@ export class HttpClient {
177
180
  };
178
181
  }
179
182
  }
183
+ exports.HttpClient = HttpClient;
180
184
  /**
181
185
  * @title UnternehmensScreener API
182
186
  * @version v1
183
187
  * @baseUrl https://api.firmenakte.at
184
188
  */
185
- export class Api extends HttpClient {
189
+ class Api extends HttpClient {
186
190
  constructor() {
187
191
  super(...arguments);
188
192
  this.api = {
@@ -638,3 +642,4 @@ export class Api extends HttpClient {
638
642
  };
639
643
  }
640
644
  }
645
+ exports.Api = Api;
package/index.js CHANGED
@@ -1,9 +1,26 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.createApiClient = void 0;
1
18
  // packages/api-client/src/index.ts
2
- import { Api } from './client';
19
+ const client_1 = require("./client");
3
20
  /**
4
21
  * SOTA Factory: Creates a fresh, isolated instance of the API client.
5
22
  */
6
- export const createApiClient = ({ apiKey, baseUrl, }) => {
23
+ const createApiClient = ({ apiKey, baseUrl, }) => {
7
24
  const config = {
8
25
  baseApiParams: {
9
26
  headers: {
@@ -14,8 +31,9 @@ export const createApiClient = ({ apiKey, baseUrl, }) => {
14
31
  if (baseUrl) {
15
32
  config.baseUrl = baseUrl;
16
33
  }
17
- const apiInstance = new Api(config);
34
+ const apiInstance = new client_1.Api(config);
18
35
  return apiInstance.api;
19
36
  };
20
- export * from "./client";
21
- export * from "./keyfigures";
37
+ exports.createApiClient = createApiClient;
38
+ __exportStar(require("./client"), exports);
39
+ __exportStar(require("./keyfigures"), exports);
package/keyfigures.js CHANGED
@@ -1,8 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.KEY_FIGURE_FILTER_KEYS = void 0;
4
+ exports.getKeyFigureCategory = getKeyFigureCategory;
5
+ exports.getKeyFigureLabel = getKeyFigureLabel;
1
6
  /**
2
7
  * Runtime array of all available key figure filter keys.
3
8
  * This file is auto-generated from the OpenAPI spec (x-keyFigureFilterKeys or *_lte/_gte params).
4
9
  */
5
- export const KEY_FIGURE_FILTER_KEYS = [
10
+ exports.KEY_FIGURE_FILTER_KEYS = [
6
11
  "bilanz.AktivierteEigenleistungen",
7
12
  "bilanz.AnlageVermoegen",
8
13
  "bilanz.BilanzSumme",
@@ -54,7 +59,7 @@ export const KEY_FIGURE_FILTER_KEYS = [
54
59
  /**
55
60
  * Helper function to get the category of a key figure filter key.
56
61
  */
57
- export function getKeyFigureCategory(key) {
62
+ function getKeyFigureCategory(key) {
58
63
  if (key === "employees")
59
64
  return "employees";
60
65
  if (key.startsWith("bilanz."))
@@ -66,7 +71,7 @@ export function getKeyFigureCategory(key) {
66
71
  /**
67
72
  * Helper function to get a human-readable label for a key figure filter key.
68
73
  */
69
- export function getKeyFigureLabel(key) {
74
+ function getKeyFigureLabel(key) {
70
75
  if (key === "employees")
71
76
  return "Mitarbeiter";
72
77
  if (key.startsWith("bilanz.")) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firmenakte/api-client",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "TypeScript/JavaScript client for the Firmenakte API",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",