@elumixor/notion-orm 0.1.1
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/README.md +267 -0
- package/dist/ast/constants.d.ts +38 -0
- package/dist/cli.js +170953 -0
- package/dist/config/helpers.d.ts +10 -0
- package/dist/config/loadConfig.d.ts +5 -0
- package/dist/db-client/DatabaseClient.d.ts +47 -0
- package/dist/db-client/add.d.ts +44 -0
- package/dist/db-client/query.d.ts +17 -0
- package/dist/db-client/queryTypes.d.ts +162 -0
- package/dist/helpers.d.ts +6 -0
- package/dist/index.js +1803 -0
- package/dist/public-api.d.ts +7 -0
- package/package.json +39 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Public API entry point for @elumixor/notion-orm.
|
|
3
|
+
* External users' generated files import DatabaseClient and types from here.
|
|
4
|
+
*/
|
|
5
|
+
export { DatabaseClient } from "./db-client/DatabaseClient";
|
|
6
|
+
export type { Query, QueryResult, QueryResultType, SupportedNotionColumnType } from "./db-client/queryTypes";
|
|
7
|
+
export type { NotionConfigType } from "./config/helpers";
|
package/package.json
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@elumixor/notion-orm",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "Bring Notion database schemas/types to TypeScript",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"types": "dist/public-api.d.ts",
|
|
8
|
+
"bin": {
|
|
9
|
+
"notion": "dist/cli.js"
|
|
10
|
+
},
|
|
11
|
+
"files": [
|
|
12
|
+
"dist"
|
|
13
|
+
],
|
|
14
|
+
"scripts": {
|
|
15
|
+
"build": "bun run build:bundle && bun run build:declaration",
|
|
16
|
+
"build:bundle": "bun build ./src/public-api.ts --target=node --outdir ./dist --entry-naming index.[ext] && bun build ./src/cli/index.ts --target=bun --outdir ./dist --entry-naming cli.[ext]",
|
|
17
|
+
"build:declaration": "tsc --project tsconfig.build.json",
|
|
18
|
+
"generate": "bun src/cli/index.ts generate",
|
|
19
|
+
"lint": "biome lint .",
|
|
20
|
+
"format": "biome format --write .",
|
|
21
|
+
"release:patch": "npm version patch -m \"Release v%s\" && git push --follow-tags",
|
|
22
|
+
"release:minor": "npm version minor -m \"Release v%s\" && git push --follow-tags",
|
|
23
|
+
"release:major": "npm version major -m \"Release v%s\" && git push --follow-tags"
|
|
24
|
+
},
|
|
25
|
+
"license": "ISC",
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"@biomejs/biome": "2.4.6",
|
|
28
|
+
"@types/node": "^25.5.0"
|
|
29
|
+
},
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"@notionhq/client": "5.3.0",
|
|
32
|
+
"typescript": "^5.6.3",
|
|
33
|
+
"zod": "^3.23.8"
|
|
34
|
+
},
|
|
35
|
+
"repository": {
|
|
36
|
+
"type": "git",
|
|
37
|
+
"url": "git+https://github.com/elumixor/notion-orm.git"
|
|
38
|
+
}
|
|
39
|
+
}
|