@yglin/tw-env-records 0.0.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.
- package/lib/app.d.ts +3 -0
- package/lib/channels.d.ts +3 -0
- package/lib/client.d.ts +40 -0
- package/lib/client.js +50 -0
- package/lib/configuration.d.ts +142 -0
- package/lib/declarations.d.ts +10 -0
- package/lib/hooks/before-record-find.d.ts +2 -0
- package/lib/hooks/log-error.d.ts +2 -0
- package/lib/hooks/on-record-created.d.ts +2 -0
- package/lib/hooks/on-record-deleted.d.ts +2 -0
- package/lib/hooks/on-record-updated.d.ts +2 -0
- package/lib/index.d.ts +1 -0
- package/lib/internal/crawler-endpoints.d.ts +2 -0
- package/lib/jobs/audit.d.ts +7 -0
- package/lib/jobs/crawler-state.d.ts +12 -0
- package/lib/jobs/crawler.d.ts +7 -0
- package/lib/jobs/full-database-analyzer.d.ts +10 -0
- package/lib/jobs/scheduler.d.ts +2 -0
- package/lib/logger.d.ts +6 -0
- package/lib/maids/collate-place-names.d.ts +1 -0
- package/lib/maids/fix-place-names.d.ts +7 -0
- package/lib/maids/full-database-analyze.d.ts +1 -0
- package/lib/maids/geocode.d.ts +4 -0
- package/lib/mongodb.d.ts +8 -0
- package/lib/postgresql.d.ts +8 -0
- package/lib/services/ask-ai/ask-ai.class.d.ts +35 -0
- package/lib/services/ask-ai/ask-ai.d.ts +10 -0
- package/lib/services/ask-ai/ask-ai.shared.d.ts +12 -0
- package/lib/services/ask-ai/ask-ai.shared.js +13 -0
- package/lib/services/date-index/date-index.class.d.ts +11 -0
- package/lib/services/date-index/date-index.d.ts +11 -0
- package/lib/services/date-index/date-index.schema.d.ts +170 -0
- package/lib/services/date-index/date-index.shared.d.ts +13 -0
- package/lib/services/date-index/date-index.shared.js +19 -0
- package/lib/services/index.d.ts +9 -0
- package/lib/services/meta/meta.class.d.ts +151 -0
- package/lib/services/meta/meta.d.ts +11 -0
- package/lib/services/meta/meta.schema.d.ts +169 -0
- package/lib/services/meta/meta.shared.d.ts +13 -0
- package/lib/services/meta/meta.shared.js +13 -0
- package/lib/services/person/person.class.d.ts +1098 -0
- package/lib/services/person/person.d.ts +11 -0
- package/lib/services/person/person.schema.d.ts +2693 -0
- package/lib/services/person/person.shared.d.ts +13 -0
- package/lib/services/person/person.shared.js +13 -0
- package/lib/services/person-index/person-index.class.d.ts +17 -0
- package/lib/services/person-index/person-index.d.ts +11 -0
- package/lib/services/person-index/person-index.schema.d.ts +253 -0
- package/lib/services/person-index/person-index.shared.d.ts +13 -0
- package/lib/services/person-index/person-index.shared.js +19 -0
- package/lib/services/place-index/place-index.class.d.ts +15 -0
- package/lib/services/place-index/place-index.d.ts +11 -0
- package/lib/services/place-index/place-index.schema.d.ts +175 -0
- package/lib/services/place-index/place-index.shared.d.ts +15 -0
- package/lib/services/place-index/place-index.shared.js +21 -0
- package/lib/services/place-names/place-names.class.d.ts +53 -0
- package/lib/services/place-names/place-names.d.ts +11 -0
- package/lib/services/place-names/place-names.schema.d.ts +459 -0
- package/lib/services/place-names/place-names.shared.d.ts +13 -0
- package/lib/services/place-names/place-names.shared.js +13 -0
- package/lib/services/record/record.class.d.ts +155 -0
- package/lib/services/record/record.d.ts +11 -0
- package/lib/services/record/record.schema.d.ts +388 -0
- package/lib/services/record/record.shared.d.ts +13 -0
- package/lib/services/record/record.shared.js +13 -0
- package/lib/services/tag/spectral.d.ts +33 -0
- package/lib/services/tag/tag.class.d.ts +1098 -0
- package/lib/services/tag/tag.d.ts +11 -0
- package/lib/services/tag/tag.schema.d.ts +2693 -0
- package/lib/services/tag/tag.shared.d.ts +13 -0
- package/lib/services/tag/tag.shared.js +13 -0
- package/lib/services/tag-index/tag-index.class.d.ts +15 -0
- package/lib/services/tag-index/tag-index.d.ts +11 -0
- package/lib/services/tag-index/tag-index.schema.d.ts +155 -0
- package/lib/services/tag-index/tag-index.shared.d.ts +13 -0
- package/lib/services/tag-index/tag-index.shared.js +19 -0
- package/lib/services/tag-similarity/tag-similarity.class.d.ts +18 -0
- package/lib/services/tag-similarity/tag-similarity.d.ts +11 -0
- package/lib/services/tag-similarity/tag-similarity.schema.d.ts +404 -0
- package/lib/services/tag-similarity/tag-similarity.shared.d.ts +12 -0
- package/lib/services/tag-similarity/tag-similarity.shared.js +13 -0
- package/lib/utils/index.d.ts +5 -0
- package/lib/utils/postgresql-transport.d.ts +20 -0
- package/lib/utils/update-date-index.d.ts +3 -0
- package/lib/utils/update-person-index.d.ts +3 -0
- package/lib/utils/update-place-index.d.ts +3 -0
- package/lib/utils/update-tag-index.d.ts +3 -0
- package/lib/utils/wrap-error.d.ts +1 -0
- package/lib/validators.d.ts +3 -0
- package/package.json +105 -0
- package/readme.md +42 -0
package/package.json
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@yglin/tw-env-records",
|
|
3
|
+
"description": "Taiwan Environmental Event Records SDK package",
|
|
4
|
+
"version": "0.0.0",
|
|
5
|
+
"homepage": "",
|
|
6
|
+
"private": false,
|
|
7
|
+
"keywords": [
|
|
8
|
+
"feathers"
|
|
9
|
+
],
|
|
10
|
+
"publishConfig": {
|
|
11
|
+
"registry": "https://registry.npmjs.org"
|
|
12
|
+
},
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "git+https://github.com/yglin/tw-env-records-backend.git"
|
|
16
|
+
},
|
|
17
|
+
"author": {
|
|
18
|
+
"name": "YGlin",
|
|
19
|
+
"email": "yglin.mlanser@gmail.com"
|
|
20
|
+
},
|
|
21
|
+
"contributors": [],
|
|
22
|
+
"bugs": {},
|
|
23
|
+
"engines": {
|
|
24
|
+
"node": ">= 18.19.1"
|
|
25
|
+
},
|
|
26
|
+
"feathers": {
|
|
27
|
+
"language": "ts",
|
|
28
|
+
"packager": "npm",
|
|
29
|
+
"database": "postgresql",
|
|
30
|
+
"framework": "koa",
|
|
31
|
+
"transports": [
|
|
32
|
+
"rest",
|
|
33
|
+
"websockets"
|
|
34
|
+
],
|
|
35
|
+
"schema": "typebox"
|
|
36
|
+
},
|
|
37
|
+
"directories": {
|
|
38
|
+
"lib": "src",
|
|
39
|
+
"test": "test"
|
|
40
|
+
},
|
|
41
|
+
"files": [
|
|
42
|
+
"lib/client.js",
|
|
43
|
+
"lib/**/*.d.ts",
|
|
44
|
+
"lib/**/*.shared.js"
|
|
45
|
+
],
|
|
46
|
+
"main": "lib/client",
|
|
47
|
+
"scripts": {
|
|
48
|
+
"dev": "nodemon -x ts-node src/index.ts",
|
|
49
|
+
"compile": "rm -rf lib/ && tsc",
|
|
50
|
+
"generate:sdk-types-tmp": "node scripts/generate-sdk-types-tmp.js tag record person meta",
|
|
51
|
+
"copy:sdk-types": "node scripts/copy-sdk-types.js tag record person meta",
|
|
52
|
+
"bundle:client": "npm run compile && npm run generate:sdk-types-tmp && npm run copy:sdk-types && npm pack --pack-destination ./public",
|
|
53
|
+
"start:prod": "rm -rf lib/ && tsc && npm run migrate && node lib/",
|
|
54
|
+
"start": "node lib/",
|
|
55
|
+
"prettier": "npx prettier \"**/*.ts\" --write",
|
|
56
|
+
"mocha": "cross-env NODE_ENV=test mocha test/ --require ts-node/register --recursive --extension test.ts --exit",
|
|
57
|
+
"test": "cross-env NODE_ENV=test npm run migrate && knex seed:run && npm run mocha",
|
|
58
|
+
"testFiles": "cross-env NODE_ENV=test mocha --require ts-node/register --extension test.ts --exit",
|
|
59
|
+
"migrate": "knex migrate:latest",
|
|
60
|
+
"migrate:prod": "cross-env NODE_ENV=production npm run migrate",
|
|
61
|
+
"migrate:make": "knex migrate:make"
|
|
62
|
+
},
|
|
63
|
+
"dependencies": {
|
|
64
|
+
"@feathersjs/adapter-commons": "^5.0.34",
|
|
65
|
+
"@feathersjs/authentication": "^5.0.34",
|
|
66
|
+
"@feathersjs/authentication-client": "^5.0.34",
|
|
67
|
+
"@feathersjs/configuration": "^5.0.34",
|
|
68
|
+
"@feathersjs/errors": "^5.0.34",
|
|
69
|
+
"@feathersjs/feathers": "^5.0.34",
|
|
70
|
+
"@feathersjs/knex": "^5.0.34",
|
|
71
|
+
"@feathersjs/koa": "^5.0.34",
|
|
72
|
+
"@feathersjs/mongodb": "^5.0.35",
|
|
73
|
+
"@feathersjs/schema": "^5.0.34",
|
|
74
|
+
"@feathersjs/socketio": "^5.0.34",
|
|
75
|
+
"@feathersjs/transport-commons": "^5.0.34",
|
|
76
|
+
"@feathersjs/typebox": "^5.0.34",
|
|
77
|
+
"@google/genai": "^1.20.0",
|
|
78
|
+
"@modelcontextprotocol/sdk": "^1.24.3",
|
|
79
|
+
"@types/lodash": "^4.17.20",
|
|
80
|
+
"knex": "^3.1.0",
|
|
81
|
+
"lodash-es": "^4.17.21",
|
|
82
|
+
"mongodb": "^6.20.0",
|
|
83
|
+
"node-cron": "^3.0.3",
|
|
84
|
+
"pg": "^8.16.3",
|
|
85
|
+
"ts-node": "^10.9.2",
|
|
86
|
+
"winston": "^3.17.0",
|
|
87
|
+
"winston-daily-rotate-file": "^5.0.0",
|
|
88
|
+
"winston-transport": "^4.9.0",
|
|
89
|
+
"axios": "^1.11.0"
|
|
90
|
+
},
|
|
91
|
+
"devDependencies": {
|
|
92
|
+
"@cfworker/json-schema": "^4.1.1",
|
|
93
|
+
"@feathersjs/cli": "^5.0.34",
|
|
94
|
+
"@feathersjs/rest-client": "^5.0.34",
|
|
95
|
+
"@types/mocha": "^10.0.10",
|
|
96
|
+
"@types/node": "^22.17.2",
|
|
97
|
+
"@types/node-cron": "^3.0.11",
|
|
98
|
+
"cross-env": "^10.0.0",
|
|
99
|
+
"mocha": "^11.7.1",
|
|
100
|
+
"nodemon": "^3.1.10",
|
|
101
|
+
"prettier": "^3.6.2",
|
|
102
|
+
"shx": "^0.4.0",
|
|
103
|
+
"typescript": "^5.9.2"
|
|
104
|
+
}
|
|
105
|
+
}
|
package/readme.md
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# tw-env-records
|
|
2
|
+
|
|
3
|
+
> Taiwan Environmental Event Records
|
|
4
|
+
|
|
5
|
+
## About
|
|
6
|
+
|
|
7
|
+
This project uses [Feathers](http://feathersjs.com). An open source framework for building APIs and real-time applications.
|
|
8
|
+
|
|
9
|
+
## Getting Started
|
|
10
|
+
|
|
11
|
+
1. Make sure you have [NodeJS](https://nodejs.org/) and [npm](https://www.npmjs.com/) installed.
|
|
12
|
+
2. Install your dependencies
|
|
13
|
+
|
|
14
|
+
```
|
|
15
|
+
cd path/to/tw-env-records
|
|
16
|
+
npm install
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
3. Start your app
|
|
20
|
+
|
|
21
|
+
```
|
|
22
|
+
npm run compile # Compile TypeScript source
|
|
23
|
+
npm run migrate # Run migrations to set up the database
|
|
24
|
+
npm start
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Testing
|
|
28
|
+
|
|
29
|
+
Run `npm test` and all your tests in the `test/` directory will be run.
|
|
30
|
+
|
|
31
|
+
## Scaffolding
|
|
32
|
+
|
|
33
|
+
This app comes with a powerful command line interface for Feathers. Here are a few things it can do:
|
|
34
|
+
|
|
35
|
+
```
|
|
36
|
+
$ npx feathers help # Show all commands
|
|
37
|
+
$ npx feathers generate service # Generate a new Service
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Help
|
|
41
|
+
|
|
42
|
+
For more information on all the things you can do with Feathers visit [docs.feathersjs.com](http://docs.feathersjs.com).
|