@jeromefitz/notion 5.0.13 → 5.0.14

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 (2) hide show
  1. package/package.json +2 -2
  2. package/schema/index.d.ts +18 -24
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jeromefitz/notion",
3
- "version": "5.0.13",
3
+ "version": "5.0.14",
4
4
  "type": "module",
5
5
  "description": "Notion: Custom Client for jeromefitzgerald.com",
6
6
  "repository": "jeromefitz/packages.git",
@@ -47,7 +47,7 @@
47
47
  },
48
48
  "devDependencies": {
49
49
  "@jeromefitz/utils": "workspace:*",
50
- "@types/lodash": "4.17.12",
50
+ "@types/lodash": "4.17.13",
51
51
  "lodash": "4.17.21"
52
52
  },
53
53
  "publishConfig": {
package/schema/index.d.ts CHANGED
@@ -1,29 +1,23 @@
1
1
  type DatabaseType = 'BLOG' | 'BOOKS' | 'EPISODES' | 'EVENTS' | 'PAGES' | 'PEOPLE' | 'PODCASTS' | 'SEO' | 'SHOWS' | 'VENUES';
2
2
  type DataTypes = 'LISTING' | 'LISTING_BY_DATE' | 'SLUG' | 'SLUG_BY_ROUTE';
3
- type DataTypesObject = {
4
- [id in DataTypes]: DataTypes;
5
- };
6
- type DatabaseInfo = {
7
- [key in DatabaseType]?: {
8
- active: boolean;
9
- database_id: string;
10
- dataTypes: DataTypes[];
11
- hasChild: null | string;
12
- infoType: any;
13
- isChild: null | string;
14
- isChildInfoType: any | null;
15
- name: string;
16
- page_id__seo: string;
17
- routeMeta: boolean;
18
- routeType: string;
19
- skipStaticPaths: boolean;
20
- slug: string;
21
- ttl: number;
22
- };
23
- };
24
- type Databases = {
25
- [key in DatabaseType]: DatabaseType;
26
- };
3
+ type DataTypesObject = Record<DataTypes, DataTypes>;
4
+ type DatabaseInfo = Partial<Record<DatabaseType, {
5
+ active: boolean;
6
+ database_id: string;
7
+ dataTypes: DataTypes[];
8
+ hasChild: null | string;
9
+ infoType: any;
10
+ isChild: null | string;
11
+ isChildInfoType: any | null;
12
+ name: string;
13
+ page_id__seo: string;
14
+ routeMeta: boolean;
15
+ routeType: string;
16
+ skipStaticPaths: boolean;
17
+ slug: string;
18
+ ttl: number;
19
+ }>>;
20
+ type Databases = Record<DatabaseType, DatabaseType>;
27
21
  interface Relation {
28
22
  database_id: string;
29
23
  synced_property_id?: string;