-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
224 lines (224 loc) · 10.4 KB
/
package.json
File metadata and controls
224 lines (224 loc) · 10.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
{
"name": "echolayer-api",
"version": "1.0.0",
"description": "API for www.echolayer.com",
"author": "Codex Build Inc.",
"license": "UNLICENSED",
"main": "server.ts",
"private": true,
"scripts": {
"copy-files": "copyfiles -u 1 src/**/*.yml src/**/*.json src/**/*.yaml ./build",
"build": "rm -rf ./build && mkdir -p ./build && tsoa spec && npm run tsc && npm run decrypt:post && npm run copy-files",
"build:sdk": "rm -rf sdk && npm run sdkgen:typescript-node && npm run sdkgen:typescript-fetch && npm run sdkgen:ruby",
"build:docker": "docker build --build-arg NODE_PLATFORM=arm64v8/node --build-arg GIT_SHA=$(git log -n1 --format=%H) -t $(whoami)/echolayer-api:latest .",
"tsc": "./node_modules/typescript/bin/tsc",
"keygen": "node generateKeypair.js",
"nginx:install": "brew install nginx && mkdir -p /opt/homebrew/etc/nginx/ssl/ && mkdir -p /opt/homebrew/etc/nginx/logs",
"nginx:configure": "npm run decrypt:dev && node installDevCerts.js && cp ./scripts/development/nginx.conf /opt/homebrew/etc/nginx/nginx.conf && brew services restart nginx && echo '\\nDone! Check https://dev.echolayer.com'",
"secrets:init": "node storeKeyFile.js",
"encrypt:development": "ejson encrypt src/shared/config/config.development.json && mv src/shared/config/config.development.json src/shared/config/config.development.ejson",
"encrypt:staging": "ejson encrypt src/shared/config/config.staging.json && mv src/shared/config/config.staging.json src/shared/config/config.staging.ejson",
"encrypt:production": "ejson encrypt src/shared/config/config.production.json && mv src/shared/config/config.production.json src/shared/config/config.production.ejson",
"decrypt": "npm run decrypt:development && npm run decrypt:staging && npm run decrypt:production",
"decrypt:dev": "npm run decrypt:development",
"decrypt:development": "ejson decrypt -o src/shared/config/config.development.json src/shared/config/config.development.ejson && npm run decrypt:post",
"decrypt:staging": "ejson decrypt -o src/shared/config/config.staging.json src/shared/config/config.staging.ejson && npm run decrypt:post",
"decrypt:production": "ejson decrypt -o src/shared/config/config.production.json src/shared/config/config.production.ejson && npm run decrypt:post",
"decrypt:post": "mkdir -p ./build/shared/config/ && cp src/shared/config/config.*.json build/shared/config/",
"dev": "npm run decrypt:dev && npm run build && concurrently \"./node_modules/nodemon/bin/nodemon.js\" \"nodemon -x tsoa spec\"",
"debug": "nodemon --inspect ./node_modules/nodemon/bin/nodemon.js",
"play": "ts-node play.ts",
"start": "npm run start:node",
"start:docker": "docker run -e ENVIRONMENT=DEVELOPMENT -e EJSON_PUBLIC_KEY=$(echo $EJSON_PUBLIC_KEY) -e EJSON_PRIVATE_KEY=$(echo $EJSON_PRIVATE_KEY) --network echolayer-api -it --rm --env-file .env.docker -p 3000:3000 $(whoami)/echolayer-api:latest",
"start:node": "node ./build/main.js",
"typeorm": "typeorm-ts-node-commonjs",
"typeorm-seeding": "ts-node ./node_modules/@jorgebodega/typeorm-seeding/dist/cli.js seed -d src/shared/datasource.ts",
"db:migration:run": "npm run typeorm -- migration:run -d src/shared/datasource.ts",
"db:migration:revert": "npm run typeorm -- migration:revert -d src/shared/datasource.ts",
"db:migration:generate": "npm run typeorm -- migration:generate src/shared/database/migrations/${npm_config_migration_name:-Placeholder} -d src/shared/datasource.ts",
"db:migration:create": "npm run typeorm -- migration:create src/shared/database/migrations/${npm_config_migration_name:-Placeholder}",
"db:schema:drop": "npm run typeorm -- schema:drop -d src/shared/datasource.ts",
"db:setup": "npm run build && npm run db:migration:run",
"db:reset": "npm run db:schema:drop && npm run db:setup",
"db:seed": "ts-node ./src/shared/database/seeds/org.seeder.ts ${npm_config_org_name:-Placeholder}",
"sdkgen:typescript-node": "openapi-generator-cli generate -i src/shared/documentation/generated/api-spec.yaml -g typescript-node -t src/shared/documentation/templates/typescript-node -o sdk/typescript-node -c src/shared/documentation/configs/typescript-node.json --enable-post-process-file",
"sdkgen:typescript-fetch": "openapi-generator-cli generate -i src/shared/documentation/generated/api-spec.yaml -g typescript-fetch -t src/shared/documentation/templates/typescript-fetch -o sdk/typescript-fetch -c src/shared/documentation/configs/typescript-fetch.json --enable-post-process-file",
"sdkgen:ruby": "openapi-generator-cli generate -i src/shared/documentation/generated/api-spec.yaml -g ruby -t src/shared/documentation/templates/ruby -c src/shared/documentation/configs/ruby.json -o sdk/ruby --enable-post-process-file",
"sdkpublish": "npm run sdkpublish:typescript-node && npm run sdkpublish:typescript-fetch",
"sdkpublish:typescript-node": "cd sdk/typescript-node && npm install && npm run build && npm publish dist --tag release && cd ../..",
"sdkpublish:typescript-fetch": "cd sdk/typescript-fetch && npm install && npm run build && npm publish dist --tag release && cd ../..",
"test": "DEFAULT_FROM_EMAIL=test-user@echolayer.com nyc ts-mocha ${npm_config_test_path:-'src/**/*.test.ts'} --grep 'INTEGRATION' --invert --run-in-band",
"test:integration": "DEFAULT_FROM_EMAIL=test-user@echolayer.com nyc ts-mocha ${npm_config_test_path:-'src/**/*.test.ts'} --grep 'INTEGRATION' --run-in-band",
"test:quiet": "SILENT_LOGS=yes DEFAULT_FROM_EMAIL=test-user@echolayer.com ts-mocha 'src/**/*.test.ts' --run-in-band",
"lint": "eslint --ignore-path .eslintignore --ext .ts . --fix",
"lint-quiet": "eslint --ignore-path .eslintignore --ext .ts . --fix --quiet",
"lint-spec": "tsoa spec && spectral lint ./src/shared/documentation/generated/api-spec.yaml",
"staged-lint": "eslint --fix",
"prepare": "husky install",
"postinstall": "node scripts/build/add-vector-type-to-typeorm.js"
},
"workspaces": [
"sdk/typescript-node",
"sdk/typescript-fetch"
],
"devDependencies": {
"@babel/core": "^7.24.4",
"@jorgebodega/typeorm-factory": "^1.3.0",
"@jorgebodega/typeorm-seeding": "^6.0.0",
"@openapitools/openapi-generator-cli": "^2.13.9",
"@stoplight/spectral-cli": "^6.11.1",
"@stoplight/spectral-url-versioning": "^1.0.6",
"@types/chai": "^4.3.0",
"@types/chai-as-promised": "^7.1.5",
"@types/cookie-parser": "^1.4.3",
"@types/express-routes-versioning": "^1.0.1",
"@types/faker": "5.5.3",
"@types/git-url-parse": "^9.0.1",
"@types/lodash": "^4.14.191",
"@types/minimatch": "^3.0.5",
"@types/mocha": "^9.1.0",
"@types/moxios": "^0.4.15",
"@types/passport-http-bearer": "^1.0.37",
"@types/pg": "^8.6.4",
"@types/randomstring": "^1.1.8",
"@types/remove-markdown": "^0.3.1",
"@types/sinon": "^10.0.11",
"@types/sinon-chai": "^3.2.8",
"@types/swagger-ui-express": "^4.1.3",
"@typescript-eslint/eslint-plugin": "^5.46.1",
"@typescript-eslint/parser": "^5.60.1",
"chai": "^4.3.5",
"chai-as-promised": "^7.1.1",
"chai-http": "github:chaijs/chai-http#bc64cf1871eac96bc831c310869a56d8c1ab1af5",
"concurrently": "^8.2.0",
"copyfiles": "^2.4.1",
"deep-equal-in-any-order": "^2.0.0",
"eslint": "^8.57.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-simple-import-sort": "^8.0.0",
"eslint-plugin-unused-imports": "^2.0.0",
"faker": "5.5.3",
"formidable": "^3.2.4",
"husky": "^7.0.4",
"lint-staged": "^13.1.0",
"mocha": "^10.0.0",
"moxios": "^0.4.0",
"nodemon": "^3.1.4",
"nyc": "^15.1.0",
"sinon": "^15.2.0",
"sinon-chai": "^3.7.0",
"ts-loader": "^9.2.3",
"ts-mocha": "^10.0.0",
"ts-mockito": "^2.6.1",
"webpack-cli": "^4.7.2"
},
"dependencies": {
"@airbnb/node-memwatch": "^2.0.0",
"@asteasolutions/zod-to-openapi": "^5.5.0",
"@gitbeaker/core": "^39.13.0",
"@gitbeaker/rest": "^39.13.0",
"@segment/analytics-node": "^2.1.2",
"@sendgrid/mail": "^8.1.3",
"@sentry/integrations": "^6.17.9",
"@sentry/node": "^6.17.9",
"@slack/bolt": "^3.18.0",
"@slack/oauth": "^2.6.1",
"@taskforcesh/bullmq-pro": "^6.3.4",
"@types/airbnb__node-memwatch": "^2.0.0",
"@types/analytics-node": "^3.1.9",
"@types/command-line-args": "^5.2.0",
"@types/cors": "^2.8.10",
"@types/diff": "^5.0.9",
"@types/express": "^4.17.12",
"@types/js-yaml": "^4.0.5",
"@types/micromatch": "^4.0.7",
"@types/minimist": "^1.2.5",
"@types/morgan": "^1.9.2",
"@types/natural": "^5.1.5",
"@types/node": "^15.12.2",
"@types/passport": "^1.0.6",
"@types/passport-github2": "^1.2.5",
"@types/passport-jwt": "^3.0.5",
"@types/set-cookie-parser": "^2.4.2",
"@types/stopword": "^2.0.3",
"@types/underscore": "^1.11.15",
"@types/uuid": "^9.0.8",
"ajv": "^8.12.0",
"ajv-formats": "^2.1.1",
"ansi-colors": "^4.1.1",
"axios": "^1.7.7",
"chai-shallow-deep-equal": "^1.4.6",
"class-transformer": "^0.5.1",
"command-line-args": "^5.2.1",
"cookie-parser": "^1.4.6",
"cors": "^2.8.5",
"date-fns": "^2.28.0",
"diff": "^5.2.0",
"dotenv": "^10.0.0",
"env-var": "^7.1.1",
"express": "^4.21.0",
"express-routes-versioning": "^1.0.1",
"get-tsconfig": "^4.7.3",
"git-url-parse": "^13.1.1",
"googleapis": "^98.0.0",
"gpt-tokenizer": "^2.1.2",
"graphql": "^16.8.1",
"graphql-tag": "^2.12.6",
"hot-shots": "^10.0.0",
"http-cache-semantics": "^4.1.1",
"ioredis": "^5.2.4",
"joi": "^17.13.1",
"js-yaml": "^4.1.0",
"langchain": "^0.1.36",
"lodash": "^4.17.21",
"micromatch": "^4.0.7",
"minimatch": "^5.1.0",
"minimist": "^1.2.8",
"morgan": "^1.10.0",
"msgpackr": "^1.10.1",
"mysql2": "^3.9.8",
"nanoid": "^3.2.0",
"neo4j-driver": "^5.17.0",
"octokit": "^3.2.0",
"openai": "^4.47.2",
"parse-diff": "^0.11.1",
"passport": "^0.6.0",
"passport-github2": "^0.1.12",
"passport-gitlab2": "^5.0.0",
"passport-http-bearer": "^1.0.1",
"passport-jwt": "^4.0.1",
"path-to-regexp": "^6.3.0",
"pg": "^8.6.0",
"pos": "^0.4.2",
"pusher": "^5.0.0",
"qs": "^6.7.0",
"randomstring": "^1.2.3",
"remove-markdown": "^0.3.0",
"set-cookie-parser": "^2.5.1",
"simple-git": "^3.21.0",
"stopword": "^2.0.8",
"stripe": "^15.7.0",
"swagger-ui-express": "^4.6.3",
"tree-sitter": "^0.20.6",
"tree-sitter-typescript": "^0.20.3",
"ts-node": "^10.2.1",
"tslib": "^2.3.1",
"tsoa": "^5.1.1",
"type-fest": "^4.0.0",
"typeorm": "^0.3.20",
"typeorm-encrypted": "^0.8.0",
"typescript": "^5.1.3",
"underscore": "^1.13.6",
"uuid": "^9.0.1",
"webpack": "^5.91.0",
"webpack-node-externals": "^3.0.0",
"winston": "^3.3.3",
"winston-transport-sentry-node": "^2.1.0",
"yaml": "^2.3.1",
"zod": "^3.20.2"
},
"overrides": {
"hot-shots": "^10.0.0",
"axios": "^1.7.7"
}
}