-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🏷️ Remove model typing script, do manually
- Loading branch information
1 parent
6f46aef
commit 5ef969f
Showing
24 changed files
with
145 additions
and
629 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
**/* | ||
!package.json | ||
!dist/index.js | ||
!dist/index.* | ||
!dist/**/* | ||
!js/* | ||
!js/**/* | ||
!tsconfig.json | ||
!README.md | ||
!VERSION |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
export type * from "./types"; | ||
export type * from "./index"; | ||
export type * from "./model"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
export * from "./api"; | ||
export * from "./model"; | ||
export type * from "./types"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,128 @@ | ||
import type { Entity, IEntityDatum } from "./model/entity"; | ||
|
||
// entity type is mostly used as a union type of the class instance or the data object | ||
export type TEntity = Entity | IEntityDatum; | ||
export type { Entity, IEntityDatum }; | ||
|
||
// base props interface for components | ||
export interface IEntityComponent { | ||
entity: TEntity; | ||
} | ||
|
||
export type TDatasetCategory = | ||
| ( | ||
| "news" | ||
| "leak" | ||
| "land" | ||
| "gazette" | ||
| "court" | ||
| "company" | ||
| "sanctions" | ||
| "procurement" | ||
| "finance" | ||
| "grey" | ||
| "library" | ||
| "license" | ||
| "regulatory" | ||
| "poi" | ||
| "customs" | ||
| "census" | ||
| "transport" | ||
| "casefile" | ||
| "other" | ||
) | ||
| null; | ||
|
||
export type TDatasetFrequency = | ||
| ( | ||
| "unknown" | ||
| "never" | ||
| "hourly" | ||
| "daily" | ||
| "weekly" | ||
| "monthly" | ||
| "annually" | ||
) | ||
| null; | ||
|
||
export interface IPublisher { | ||
name: string; | ||
url?: string | null; | ||
description?: string | null; | ||
country?: string | null; | ||
country_label?: string | null; | ||
official?: boolean | null; | ||
logo_url?: string | null; | ||
} | ||
|
||
export interface ICoverage { | ||
start?: string | null; | ||
end?: string | null; | ||
frequency?: Frequency; | ||
countries?: Countries; | ||
schedule?: Schedule; | ||
} | ||
|
||
export interface ISchemataStats { | ||
total?: number | null; | ||
countries?: ICountry[] | null; | ||
schemata?: ISchema[] | null; | ||
} | ||
|
||
export interface ICountry { | ||
code: string; | ||
count: number; | ||
label?: string | null; | ||
} | ||
|
||
export interface ISchema { | ||
name: string; | ||
count: number; | ||
label: string | null; | ||
plural: string | null; | ||
} | ||
|
||
export interface IResource { | ||
name: string; | ||
url: string; | ||
title?: string | null; | ||
checksum?: string | null; | ||
timestamp?: string | null; | ||
mime_type?: string | null; | ||
mime_type_label?: string | null; | ||
size?: number | null; | ||
} | ||
|
||
export interface IMaintainer { | ||
name: string; | ||
description?: string | null; | ||
url?: string | null; | ||
logo_url?: string | null; | ||
} | ||
|
||
export interface IDataset { | ||
name: string; | ||
prefix?: string | null; | ||
title?: string | null; | ||
license?: string | null; | ||
summary?: string | null; | ||
description?: string | null; | ||
url?: string | null; | ||
updated_at?: string | null; | ||
version?: string | null; | ||
category?: IDatasetCategory; | ||
publisher?: IPublisher | null; | ||
coverage?: ICoverage | null; | ||
things?: ISchemata | null; | ||
intervals?: ISchemata | null; | ||
entity_count?: number | null; | ||
resources?: IResource[] | null; | ||
index_url?: string | null; | ||
catalog?: string | null; | ||
countries?: string[] | null; | ||
info_url?: string | null; | ||
data_url?: string | null; | ||
git_repo?: string | null; | ||
uri?: string | null; | ||
maintainer?: IMaintainer | null; | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.