@fin.cx/opendata 3.6.0 → 4.1.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.
Files changed (93) hide show
  1. package/.smartconfig.json +23 -20
  2. package/dist_ts/00_commitinfo_data.js +3 -3
  3. package/dist_ts/handelsregister/classes.handelsregisterclient.d.ts +64 -0
  4. package/dist_ts/handelsregister/classes.handelsregisterclient.js +397 -0
  5. package/dist_ts/handelsregister/classes.handelsregistererror.d.ts +56 -0
  6. package/dist_ts/handelsregister/classes.handelsregistererror.js +37 -0
  7. package/dist_ts/handelsregister/classes.portalsession.d.ts +46 -0
  8. package/dist_ts/handelsregister/classes.portalsession.js +160 -0
  9. package/dist_ts/handelsregister/classes.slidingwindowgate.d.ts +32 -0
  10. package/dist_ts/handelsregister/classes.slidingwindowgate.js +55 -0
  11. package/dist_ts/handelsregister/constants.d.ts +13 -0
  12. package/dist_ts/handelsregister/constants.js +19 -0
  13. package/dist_ts/handelsregister/data.codelists.d.ts +29 -0
  14. package/dist_ts/handelsregister/data.codelists.js +616 -0
  15. package/dist_ts/handelsregister/forms.d.ts +27 -0
  16. package/dist_ts/handelsregister/forms.js +77 -0
  17. package/dist_ts/handelsregister/html.d.ts +26 -0
  18. package/dist_ts/handelsregister/html.js +82 -0
  19. package/dist_ts/handelsregister/index.d.ts +9 -0
  20. package/dist_ts/handelsregister/index.js +10 -0
  21. package/dist_ts/handelsregister/interfaces.d.ts +240 -0
  22. package/dist_ts/handelsregister/interfaces.js +2 -0
  23. package/dist_ts/handelsregister/parse.searchresults.d.ts +35 -0
  24. package/dist_ts/handelsregister/parse.searchresults.js +175 -0
  25. package/dist_ts/handelsregister/parse.structuredcontent.d.ts +6 -0
  26. package/dist_ts/handelsregister/parse.structuredcontent.js +306 -0
  27. package/dist_ts/handelsregister/plugins.d.ts +4 -0
  28. package/dist_ts/handelsregister/plugins.js +8 -0
  29. package/dist_ts/handelsregister/references.d.ts +38 -0
  30. package/dist_ts/handelsregister/references.js +146 -0
  31. package/dist_ts/holidays/calendar.d.ts +32 -0
  32. package/dist_ts/holidays/calendar.js +200 -0
  33. package/dist_ts/holidays/classes.holidaycalendarerror.d.ts +14 -0
  34. package/dist_ts/holidays/classes.holidaycalendarerror.js +10 -0
  35. package/dist_ts/holidays/data.holidays.d.ts +46 -0
  36. package/dist_ts/holidays/data.holidays.js +124 -0
  37. package/dist_ts/holidays/index.d.ts +4 -0
  38. package/dist_ts/holidays/index.js +7 -0
  39. package/dist_ts/holidays/interfaces.d.ts +42 -0
  40. package/dist_ts/holidays/interfaces.js +2 -0
  41. package/dist_ts/index.d.ts +0 -2
  42. package/dist_ts/index.js +1 -3
  43. package/dist_ts/plugins.d.ts +2 -20
  44. package/dist_ts/plugins.js +3 -22
  45. package/package.json +40 -37
  46. package/readme.md +250 -119
  47. package/ts/00_commitinfo_data.ts +2 -2
  48. package/ts/handelsregister/classes.handelsregisterclient.ts +474 -0
  49. package/ts/handelsregister/classes.handelsregistererror.ts +82 -0
  50. package/ts/handelsregister/classes.portalsession.ts +191 -0
  51. package/ts/handelsregister/classes.slidingwindowgate.ts +74 -0
  52. package/ts/handelsregister/constants.ts +30 -0
  53. package/ts/handelsregister/data.codelists.ts +640 -0
  54. package/ts/handelsregister/forms.ts +99 -0
  55. package/ts/handelsregister/html.ts +113 -0
  56. package/ts/handelsregister/index.ts +27 -0
  57. package/ts/handelsregister/interfaces.ts +272 -0
  58. package/ts/handelsregister/parse.searchresults.ts +241 -0
  59. package/ts/handelsregister/parse.structuredcontent.ts +338 -0
  60. package/ts/handelsregister/plugins.ts +15 -0
  61. package/ts/handelsregister/references.ts +189 -0
  62. package/ts/holidays/calendar.ts +261 -0
  63. package/ts/holidays/classes.holidaycalendarerror.ts +20 -0
  64. package/ts/holidays/data.holidays.ts +177 -0
  65. package/ts/holidays/index.ts +18 -0
  66. package/ts/holidays/interfaces.ts +87 -0
  67. package/ts/index.ts +0 -2
  68. package/ts/plugins.ts +0 -39
  69. package/dist_ts/classes.businessrecord.d.ts +0 -38
  70. package/dist_ts/classes.businessrecord.js +0 -90
  71. package/dist_ts/classes.handelsregister.d.ts +0 -134
  72. package/dist_ts/classes.handelsregister.js +0 -307
  73. package/dist_ts/classes.jsonldata.d.ts +0 -43
  74. package/dist_ts/classes.jsonldata.js +0 -68
  75. package/dist_ts/classes.main.opendata.d.ts +0 -25
  76. package/dist_ts/classes.main.opendata.js +0 -91
  77. package/dist_ts/laws/classes.lawrecord.d.ts +0 -24
  78. package/dist_ts/laws/classes.lawrecord.js +0 -181
  79. package/dist_ts/laws/classes.lawservice.d.ts +0 -52
  80. package/dist_ts/laws/classes.lawservice.js +0 -740
  81. package/dist_ts/laws/index.d.ts +0 -3
  82. package/dist_ts/laws/index.js +0 -4
  83. package/dist_ts/laws/interfaces.law.d.ts +0 -35
  84. package/dist_ts/laws/interfaces.law.js +0 -2
  85. package/readme.hints.md +0 -89
  86. package/ts/classes.businessrecord.ts +0 -67
  87. package/ts/classes.handelsregister.ts +0 -385
  88. package/ts/classes.jsonldata.ts +0 -114
  89. package/ts/classes.main.opendata.ts +0 -120
  90. package/ts/laws/classes.lawrecord.ts +0 -81
  91. package/ts/laws/classes.lawservice.ts +0 -1010
  92. package/ts/laws/index.ts +0 -3
  93. package/ts/laws/interfaces.law.ts +0 -48
@@ -0,0 +1,87 @@
1
+ /** A German federal state, as its ISO 3166-2 subdivision code. */
2
+ export type TGermanStateCode =
3
+ | 'DE-BW'
4
+ | 'DE-BY'
5
+ | 'DE-BE'
6
+ | 'DE-BB'
7
+ | 'DE-HB'
8
+ | 'DE-HH'
9
+ | 'DE-HE'
10
+ | 'DE-MV'
11
+ | 'DE-NI'
12
+ | 'DE-NW'
13
+ | 'DE-RP'
14
+ | 'DE-SL'
15
+ | 'DE-SN'
16
+ | 'DE-ST'
17
+ | 'DE-SH'
18
+ | 'DE-TH';
19
+
20
+ /** A federal state with its name. */
21
+ export interface IGermanState {
22
+ code: TGermanStateCode;
23
+ /** the state's name, for example `Bayern` */
24
+ name: string;
25
+ }
26
+
27
+ /** A plain calendar date, `YYYY-MM-DD`. */
28
+ export type TIsoDate = string;
29
+
30
+ /** The statutory public holidays the calendar knows. */
31
+ export type TPublicHolidayId =
32
+ | 'neujahr'
33
+ | 'heilige-drei-koenige'
34
+ | 'frauentag'
35
+ | 'karfreitag'
36
+ | 'ostersonntag'
37
+ | 'ostermontag'
38
+ | 'tag-der-arbeit'
39
+ | 'tag-der-befreiung'
40
+ | 'christi-himmelfahrt'
41
+ | 'pfingstsonntag'
42
+ | 'pfingstmontag'
43
+ | 'jahrestag-17-juni-1953'
44
+ | 'fronleichnam'
45
+ | 'augsburger-friedensfest'
46
+ | 'mariae-himmelfahrt'
47
+ | 'weltkindertag'
48
+ | 'tag-der-deutschen-einheit'
49
+ | 'reformationstag'
50
+ | 'allerheiligen'
51
+ | 'buss-und-bettag'
52
+ | 'erster-weihnachtstag'
53
+ | 'zweiter-weihnachtstag';
54
+
55
+ /**
56
+ * Where a holiday applies within its state:
57
+ * - `state`: in the whole state;
58
+ * - `regional`: only in part of the state (some municipalities or parts of municipalities), which
59
+ * `region` describes. The calendar holds no list of those municipalities.
60
+ */
61
+ export type TPublicHolidayScope = 'state' | 'regional';
62
+
63
+ /** One statutory public holiday on one date in one state. */
64
+ export interface IPublicHoliday {
65
+ date: TIsoDate;
66
+ id: TPublicHolidayId;
67
+ /** the German name, for example `Christi Himmelfahrt` */
68
+ name: string;
69
+ state: TGermanStateCode;
70
+ scope: TPublicHolidayScope;
71
+ /** for a regional holiday, the part of the state where it applies */
72
+ region?: string;
73
+ /** the provision that makes the day a statutory holiday, for example `§ 2 Abs. 1 NFeiertagsG` */
74
+ legalBasis: string;
75
+ }
76
+
77
+ /**
78
+ * How a question about working days treats regional holidays, which apply only in part of a state:
79
+ * - `count`: as holidays, as if the place in question lies in that part. A period then never ends
80
+ * on a day that is a holiday at the place, at the price of ending one day later elsewhere;
81
+ * - `ignore`: as working days, when the place is known to lie outside that part.
82
+ */
83
+ export type TRegionalHolidayPolicy = 'count' | 'ignore';
84
+
85
+ export interface IWorkingDayOptions {
86
+ regionalHolidays: TRegionalHolidayPolicy;
87
+ }
package/ts/index.ts CHANGED
@@ -1,3 +1 @@
1
- export * from './classes.main.opendata.js';
2
- export * from './laws/index.js';
3
1
  export * from './stocks/index.js';
package/ts/plugins.ts CHANGED
@@ -1,33 +1,15 @@
1
1
  // node native scope
2
- import * as fs from 'node:fs/promises';
3
2
  import * as path from 'node:path';
4
3
 
5
4
  export {
6
- fs,
7
5
  path,
8
6
  }
9
7
 
10
8
  // @push.rocks scope
11
- import * as lik from '@push.rocks/lik';
12
9
  import * as qenv from '@push.rocks/qenv';
13
- import * as smartarchive from '@push.rocks/smartarchive';
14
- import * as smartarray from '@push.rocks/smartarray';
15
- import * as smartbrowser from '@push.rocks/smartbrowser';
16
- import * as smartdata from '@push.rocks/smartdata';
17
10
  import * as smartdelay from '@push.rocks/smartdelay';
18
- import * as smartfile from '@push.rocks/smartfile';
19
- import { SmartFs, SmartFsProviderNode } from '@push.rocks/smartfs';
20
- import * as smartlog from '@push.rocks/smartlog';
21
11
  import * as smartpath from '@push.rocks/smartpath';
22
- import * as smartpromise from '@push.rocks/smartpromise';
23
12
  import * as smartrequest from '@push.rocks/smartrequest';
24
- import * as smartdb from '@push.rocks/smartdb';
25
- import * as smartstream from '@push.rocks/smartstream';
26
- import * as smartunique from '@push.rocks/smartunique';
27
- import * as smartxml from '@push.rocks/smartxml';
28
-
29
- const smartfs = new SmartFs(new SmartFsProviderNode());
30
- const smartfileFactory = new smartfile.SmartFileFactory(smartfs);
31
13
 
32
14
  const getErrorMessage = (error: unknown) => {
33
15
  if (error instanceof Error) {
@@ -39,29 +21,8 @@ const getErrorMessage = (error: unknown) => {
39
21
 
40
22
  export {
41
23
  getErrorMessage,
42
- lik,
43
24
  qenv,
44
- smartarchive,
45
- smartarray,
46
- smartbrowser,
47
- smartdb,
48
- smartdata,
49
25
  smartdelay,
50
- smartfile,
51
- smartfileFactory,
52
- smartfs,
53
- smartlog,
54
26
  smartpath,
55
- smartpromise,
56
27
  smartrequest,
57
- smartstream,
58
- smartunique,
59
- smartxml,
60
- }
61
-
62
- // @tsclass scope
63
- import * as tsclass from '@tsclass/tsclass';
64
-
65
- export {
66
- tsclass,
67
28
  }
@@ -1,38 +0,0 @@
1
- import * as plugins from './plugins.js';
2
- export declare class BusinessRecord extends plugins.smartdata.SmartDataDbDoc<BusinessRecord, BusinessRecord> {
3
- static getByGermanParsedRegistration: (parsedGermanRegistrationArg: BusinessRecord["data"]["germanParsedRegistration"]) => Promise<BusinessRecord>;
4
- id: string;
5
- data: {
6
- name?: string;
7
- startDate?: string;
8
- endDate?: string;
9
- status?: 'active' | 'liquidating' | 'closed';
10
- address?: string;
11
- postalCode?: string;
12
- city?: string;
13
- country?: string;
14
- phone?: string;
15
- fax?: string;
16
- email?: string;
17
- website?: string;
18
- businessType?: string;
19
- registrationId?: string;
20
- germanParsedRegistration?: {
21
- court?: string;
22
- type?: 'HRA' | 'HRB' | 'GnR' | 'PR' | 'VR' | 'GsR';
23
- number?: string;
24
- };
25
- legalForm?: 'GmbH' | 'GmbH & Co. KG' | 'AG' | 'LLC' | 'LLP' | 'GmbH & Co. KGaA' | 'GmbH & Co. KGaA, LLC';
26
- managingDirectors?: string[];
27
- boardOfDirectors?: string[];
28
- supervisoryBoard?: string[];
29
- foundingDate?: string;
30
- capital?: string;
31
- purpose?: string;
32
- lastUpdate?: string;
33
- };
34
- /**
35
- * validates the record against the Handelregister.
36
- */
37
- validate(): Promise<void>;
38
- }
@@ -1,90 +0,0 @@
1
- var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
2
- function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
3
- var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
4
- var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
5
- var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
6
- var _, done = false;
7
- for (var i = decorators.length - 1; i >= 0; i--) {
8
- var context = {};
9
- for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
10
- for (var p in contextIn.access) context.access[p] = contextIn.access[p];
11
- context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
12
- var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
13
- if (kind === "accessor") {
14
- if (result === void 0) continue;
15
- if (result === null || typeof result !== "object") throw new TypeError("Object expected");
16
- if (_ = accept(result.get)) descriptor.get = _;
17
- if (_ = accept(result.set)) descriptor.set = _;
18
- if (_ = accept(result.init)) initializers.unshift(_);
19
- }
20
- else if (_ = accept(result)) {
21
- if (kind === "field") initializers.unshift(_);
22
- else descriptor[key] = _;
23
- }
24
- }
25
- if (target) Object.defineProperty(target, contextIn.name, descriptor);
26
- done = true;
27
- };
28
- var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {
29
- var useValue = arguments.length > 2;
30
- for (var i = 0; i < initializers.length; i++) {
31
- value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
32
- }
33
- return useValue ? value : void 0;
34
- };
35
- import * as plugins from './plugins.js';
36
- let BusinessRecord = (() => {
37
- let _classDecorators = [plugins.smartdata.Manager()];
38
- let _classDescriptor;
39
- let _classExtraInitializers = [];
40
- let _classThis;
41
- let _classSuper = plugins.smartdata.SmartDataDbDoc;
42
- let _id_decorators;
43
- let _id_initializers = [];
44
- let _id_extraInitializers = [];
45
- let _data_decorators;
46
- let _data_initializers = [];
47
- let _data_extraInitializers = [];
48
- var BusinessRecord = class extends _classSuper {
49
- static { _classThis = this; }
50
- static {
51
- const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
52
- _id_decorators = [plugins.smartdata.unI()];
53
- _data_decorators = [plugins.smartdata.svDb()];
54
- __esDecorate(null, null, _id_decorators, { kind: "field", name: "id", static: false, private: false, access: { has: obj => "id" in obj, get: obj => obj.id, set: (obj, value) => { obj.id = value; } }, metadata: _metadata }, _id_initializers, _id_extraInitializers);
55
- __esDecorate(null, null, _data_decorators, { kind: "field", name: "data", static: false, private: false, access: { has: obj => "data" in obj, get: obj => obj.data, set: (obj, value) => { obj.data = value; } }, metadata: _metadata }, _data_initializers, _data_extraInitializers);
56
- __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
57
- BusinessRecord = _classThis = _classDescriptor.value;
58
- if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
59
- }
60
- // STATIC
61
- static getByGermanParsedRegistration = async (parsedGermanRegistrationArg) => {
62
- const businessRecords = await BusinessRecord.getInstance({
63
- data: {
64
- germanParsedRegistration: parsedGermanRegistrationArg,
65
- }
66
- });
67
- return businessRecords;
68
- };
69
- // INSTANCE
70
- id = __runInitializers(this, _id_initializers, void 0);
71
- data = (__runInitializers(this, _id_extraInitializers), __runInitializers(this, _data_initializers, {}));
72
- /**
73
- * validates the record against the Handelregister.
74
- */
75
- async validate() {
76
- if (!this.data.name)
77
- throw new Error('Name is required.');
78
- }
79
- constructor() {
80
- super(...arguments);
81
- __runInitializers(this, _data_extraInitializers);
82
- }
83
- static {
84
- __runInitializers(_classThis, _classExtraInitializers);
85
- }
86
- };
87
- return BusinessRecord = _classThis;
88
- })();
89
- export { BusinessRecord };
90
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2xhc3Nlcy5idXNpbmVzc3JlY29yZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL2NsYXNzZXMuYnVzaW5lc3NyZWNvcmQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBLE9BQU8sS0FBSyxPQUFPLE1BQU0sY0FBYyxDQUFDO0lBRzNCLGNBQWM7NEJBRDFCLE9BQU8sQ0FBQyxTQUFTLENBQUMsT0FBTyxFQUFFOzs7O3NCQUNRLE9BQU8sQ0FBQyxTQUFTLENBQUMsY0FBYzs7Ozs7Ozs4QkFBeEMsU0FBUSxXQUduQzs7Ozs4QkFhRSxPQUFPLENBQUMsU0FBUyxDQUFDLEdBQUcsRUFBRTtnQ0FHdkIsT0FBTyxDQUFDLFNBQVMsQ0FBQyxJQUFJLEVBQUU7WUFGekIsd0pBQUEsRUFBRSw2QkFBRixFQUFFLCtFQUFVO1lBR1osOEpBQUEsSUFBSSw2QkFBSixJQUFJLG1GQW1DRztZQXZEVCw2S0ErREM7Ozs7UUEzREMsU0FBUztRQUNGLE1BQU0sQ0FBQyw2QkFBNkIsR0FBRyxLQUFLLEVBQUUsMkJBQStFLEVBQUUsRUFBRTtZQUN0SSxNQUFNLGVBQWUsR0FBRyxNQUFNLGNBQWMsQ0FBQyxXQUFXLENBQUM7Z0JBQ3ZELElBQUksRUFBRTtvQkFDSix3QkFBd0IsRUFBRSwyQkFBMkI7aUJBQ3REO2FBQ0YsQ0FBQyxDQUFDO1lBQ0gsT0FBTyxlQUFlLENBQUM7UUFDekIsQ0FBQyxDQUFDO1FBR0YsV0FBVztRQUVYLEVBQUUscURBQVU7UUFHWixJQUFJLGdHQW1DQSxFQUFFLEdBQUM7UUFFUDs7V0FFRztRQUNJLEtBQUssQ0FBQyxRQUFRO1lBQ25CLElBQUksQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLElBQUk7Z0JBQUUsTUFBTSxJQUFJLEtBQUssQ0FBQyxtQkFBbUIsQ0FBQyxDQUFDO1FBQzVELENBQUM7Ozs7OztZQTlEVSx1REFBYzs7Ozs7U0FBZCxjQUFjIn0=
@@ -1,134 +0,0 @@
1
- import type { BusinessRecord } from './classes.businessrecord.js';
2
- import type { OpenData } from './classes.main.opendata.js';
3
- import * as plugins from './plugins.js';
4
- /**
5
- * the HandlesRegister exposed as a class
6
- */
7
- export declare class HandelsRegister {
8
- private openDataRef;
9
- private asyncExecutionStack;
10
- private downloadDir;
11
- private uniqueDowloadFolder;
12
- smartbrowserInstance: plugins.smartbrowser.SmartBrowser;
13
- constructor(openDataRef: OpenData, downloadDirArg: string);
14
- private resetDownloadFolder;
15
- private waitForDownloadedFile;
16
- start(): Promise<void>;
17
- stop(): Promise<void>;
18
- /**
19
- * Creates a new page and configures it to allow file downloads
20
- * to a predefined path.
21
- */
22
- getNewPage: () => Promise<plugins.smartbrowser.smartpuppeteer.puppeteer.Page>;
23
- private navigateToPage;
24
- private waitForResults;
25
- private clickFindButton;
26
- private downloadFile;
27
- /**
28
- * Helper method to parse the German registration string
29
- */
30
- private parseGermanRegistration;
31
- /**
32
- * Search for a company by name and return basic info
33
- */
34
- searchCompany(companyNameArg: string, resultsLimitArg?: number): Promise<{
35
- name?: string;
36
- startDate?: string;
37
- endDate?: string;
38
- status?: "active" | "liquidating" | "closed";
39
- address?: string;
40
- postalCode?: string;
41
- city?: string;
42
- country?: string;
43
- phone?: string;
44
- fax?: string;
45
- email?: string;
46
- website?: string;
47
- businessType?: string;
48
- registrationId?: string;
49
- germanParsedRegistration?: {
50
- court?: string;
51
- type?: "HRA" | "HRB" | "GnR" | "PR" | "VR" | "GsR";
52
- number?: string;
53
- };
54
- legalForm?: "GmbH" | "GmbH & Co. KG" | "AG" | "LLC" | "LLP" | "GmbH & Co. KGaA" | "GmbH & Co. KGaA, LLC";
55
- managingDirectors?: string[];
56
- boardOfDirectors?: string[];
57
- supervisoryBoard?: string[];
58
- foundingDate?: string;
59
- capital?: string;
60
- purpose?: string;
61
- lastUpdate?: string;
62
- }[]>;
63
- /**
64
- * Search for a specific company (known register type/number/court),
65
- * then click on an element that triggers a file download.
66
- */
67
- getSpecificCompany(companyArg: BusinessRecord['data']['germanParsedRegistration']): Promise<{
68
- businessRecords: {
69
- name?: string;
70
- startDate?: string;
71
- endDate?: string;
72
- status?: "active" | "liquidating" | "closed";
73
- address?: string;
74
- postalCode?: string;
75
- city?: string;
76
- country?: string;
77
- phone?: string;
78
- fax?: string;
79
- email?: string;
80
- website?: string;
81
- businessType?: string;
82
- registrationId?: string;
83
- germanParsedRegistration?: {
84
- court?: string;
85
- type?: "HRA" | "HRB" | "GnR" | "PR" | "VR" | "GsR";
86
- number?: string;
87
- };
88
- legalForm?: "GmbH" | "GmbH & Co. KG" | "AG" | "LLC" | "LLP" | "GmbH & Co. KGaA" | "GmbH & Co. KGaA, LLC";
89
- managingDirectors?: string[];
90
- boardOfDirectors?: string[];
91
- supervisoryBoard?: string[];
92
- foundingDate?: string;
93
- capital?: string;
94
- purpose?: string;
95
- lastUpdate?: string;
96
- }[];
97
- files: plugins.smartfile.SmartFile[];
98
- }>;
99
- /**
100
- * get specific company by full name
101
- */
102
- getSpecificCompanyByName(companyNameArg: string): Promise<{
103
- businessRecords: {
104
- name?: string;
105
- startDate?: string;
106
- endDate?: string;
107
- status?: "active" | "liquidating" | "closed";
108
- address?: string;
109
- postalCode?: string;
110
- city?: string;
111
- country?: string;
112
- phone?: string;
113
- fax?: string;
114
- email?: string;
115
- website?: string;
116
- businessType?: string;
117
- registrationId?: string;
118
- germanParsedRegistration?: {
119
- court?: string;
120
- type?: "HRA" | "HRB" | "GnR" | "PR" | "VR" | "GsR";
121
- number?: string;
122
- };
123
- legalForm?: "GmbH" | "GmbH & Co. KG" | "AG" | "LLC" | "LLP" | "GmbH & Co. KGaA" | "GmbH & Co. KGaA, LLC";
124
- managingDirectors?: string[];
125
- boardOfDirectors?: string[];
126
- supervisoryBoard?: string[];
127
- foundingDate?: string;
128
- capital?: string;
129
- purpose?: string;
130
- lastUpdate?: string;
131
- }[];
132
- files: plugins.smartfile.SmartFile[];
133
- }>;
134
- }