@jeromefitz/notion 5.1.2 → 5.1.4

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.
@@ -1,4 +1,4 @@
1
- import { Property, DataTypes, DataTypesObject } from '../schema/index.js';
1
+ import { DataTypesObject, DataTypes, Property } from '../schema/index.js';
2
2
 
3
3
  /**
4
4
  * @note
package/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { DataTypes } from './schema/index.js';
2
2
  import { Client as Client$1 } from '@notionhq/client';
3
+ import { DATA_TYPES } from './constants/index.js';
3
4
 
4
5
  type ClientProps = {
5
6
  custom: CustomProps;
@@ -54,7 +55,7 @@ declare class Client extends Client$1 {
54
55
  *
55
56
  */
56
57
  readonly dataTypes: {
57
- [x: string]: ((props: {
58
+ [DATA_TYPES.LISTING]: (props: {
58
59
  pathVariables: any;
59
60
  routeType: any;
60
61
  slug?: any;
@@ -68,7 +69,8 @@ declare class Client extends Client$1 {
68
69
  images: {};
69
70
  info: any;
70
71
  items: Pick<any, string | number | symbol>;
71
- }>) | ((props: {
72
+ }>;
73
+ [DATA_TYPES.LISTING_BY_DATE]: (props: {
72
74
  pathVariables: any;
73
75
  routeType: any;
74
76
  slug: any;
@@ -77,7 +79,8 @@ declare class Client extends Client$1 {
77
79
  images: {};
78
80
  info: any;
79
81
  items: Pick<Pick<any, string | number | symbol>, string | number | symbol>;
80
- }>) | ((props: {
82
+ }>;
83
+ [DATA_TYPES.SLUG]: (props: {
81
84
  pathVariables: any;
82
85
  routeType: any;
83
86
  slug: any;
@@ -96,7 +99,8 @@ declare class Client extends Client$1 {
96
99
  images: {};
97
100
  info: Pick<any, string | number | symbol>;
98
101
  items: {};
99
- }>) | ((props: {
102
+ }>;
103
+ [DATA_TYPES.SLUG_BY_ROUTE]: (props: {
100
104
  pathVariables: any;
101
105
  routeType: any;
102
106
  slug: any;
@@ -105,7 +109,7 @@ declare class Client extends Client$1 {
105
109
  images: {};
106
110
  info: Pick<any, string | number | symbol>;
107
111
  items: {};
108
- }>);
112
+ }>;
109
113
  };
110
114
  constructor(options?: any);
111
115
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jeromefitz/notion",
3
- "version": "5.1.2",
3
+ "version": "5.1.4",
4
4
  "type": "module",
5
5
  "description": "Notion: Custom Client for jeromefitzgerald.com",
6
6
  "repository": "jeromefitz/packages.git",
@@ -41,13 +41,13 @@
41
41
  "lodash": "^4.17.21"
42
42
  },
43
43
  "dependencies": {
44
- "@notionhq/client": "2.2.15",
44
+ "@notionhq/client": "2.3.0",
45
45
  "date-fns": "4.1.0",
46
46
  "github-slugger": "2.0.0"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@jeromefitz/utils": "workspace:*",
50
- "@types/lodash": "4.17.15",
50
+ "@types/lodash": "4.17.16",
51
51
  "lodash": "4.17.21"
52
52
  },
53
53
  "publishConfig": {