Skip to content

Commit 9641125

Browse files
committed
chore: flush changes
1 parent 93898f9 commit 9641125

File tree

679 files changed

+31773
-12662
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

679 files changed

+31773
-12662
lines changed

backend/bundle.cjs

Lines changed: 500 additions & 0 deletions
Large diffs are not rendered by default.

backend/jest.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ const jestConfig: JestConfigWithTsJest = {
1313
preset: 'ts-jest/presets/js-with-ts-esm',
1414
testEnvironment: 'node',
1515
resolver: 'jest-ts-webcompat-resolver',
16-
clearMocks: true,
16+
// extensionsToTreatAsEsm: ['.ts'],
17+
clearMocks: true,
1718
collectCoverage: true,
1819
collectCoverageFrom: [
1920
'./app.{js,ts,mts,mjs,cjs,cts}',

backend/package.json

Lines changed: 30 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
"version": "1.0.0",
44
"private": true,
55
"description": "This project was bootstrapped with Fastify-CLI.",
6-
"main": "dist/app.js",
6+
"main": "src/start.ts",
77
"type": "module",
88
"scripts": {
99
"prepare": "prisma generate",
10-
"test": "cross-env DEBUG=prisma:* NODE_ENV=test jest",
10+
"test": "cross-env DEBUG=prisma:* NODE_ENV=test NODE_OPTIONS=--experimental-vm-modules jest",
1111
"test:jest": "pnpm test",
1212
"test:watch": "cross-env NODE_ENV=test jest --watch",
1313
"start": "cross-env NODE_ENV=production node dist/src/start.js",
@@ -21,7 +21,8 @@
2121
"predocker": "pnpm cleanbuild",
2222
"docker": "docker build -t chatbackend . --no-cache --env-file ../.env",
2323
"clean": "rimraf dist",
24-
"dev": "cross-env DEBUG=prisma:* node-dev --timestamp --respawn --vm --loader ts-node/esm src/start.ts",
24+
"predev": "shx cp -R src/views public src/schema dist/src",
25+
"dev": "cross-env DEBUG=prisma:* node-dev --timestamp --respawn --vm --loader ts-node/esm src/start.ts",
2526
"lint": "eslint --fix .",
2627
"lint:check": "eslint .",
2728
"format": "prettier --write .",
@@ -49,14 +50,15 @@
4950
"@fastify/view": "^8.2.0",
5051
"@immobiliarelabs/fastify-sentry": "^8.0.0",
5152
"@mgcrea/fastify-graceful-exit": "^1.1.1",
52-
"@nestjs/common": "^10.2.9",
53+
"@nestjs/common": "^10.2.10",
5354
"@nestjs/config": "^3.1.1",
54-
"@nestjs/core": "^10.2.9",
55-
"@nestjs/platform-fastify": "^10.2.9",
55+
"@nestjs/core": "^10.2.10",
56+
"@nestjs/platform-fastify": "^10.2.10",
5657
"@nestjs/swagger": "^7.1.16",
5758
"@npmcli/ci-detect": "^3.0.2",
5859
"@ory/kratos-client": "^1.0.0",
5960
"@prisma/client": "^5.6.0",
61+
"@sentry/profiling-node": "^1.2.6",
6062
"chalk": "^5.3.0",
6163
"class-transformer": "^0.5.1",
6264
"class-validator": "^0.14.0",
@@ -75,6 +77,7 @@
7577
"fastify-impressions": "^1.0.5",
7678
"fastify-ip": "^1.0.0",
7779
"fastify-json5": "^1.0.0",
80+
"fastify-method-override": "^1.5.10",
7881
"fastify-plugin": "^4.5.1",
7982
"fastify-print-routes": "^3.0.0",
8083
"fastify-qs": "^4.0.2",
@@ -85,35 +88,41 @@
8588
"fastify-zod-validate": "^0.2.0",
8689
"figlet": "^1.7.0",
8790
"git-repo-info": "^2.1.1",
91+
"got": "^13.0.0",
8892
"ioredis": "^5.3.2",
8993
"is-docker": "^3.0.0",
9094
"node-api-analytics": "^1.1.3",
95+
"prisma-json-schema-generator": "^4.0.0",
9196
"prisma-redis-middleware": "^4.8.0",
92-
"prisma-json-schema-generator": "^5.0.0",
9397
"prisma-zod-generator": "^0.8.13",
9498
"rate-limiter-flexible": "^5.0.0",
99+
"protobufjs": "^7.2.5",
95100
"redis-url-plus": "^1.1.0",
96101
"scan-env": "github:BrycensRanch/scan-env",
97102
"useragent": "^2.3.0",
98-
"reflect-metadata": "^0.2.0",
99103
"yaml": "^2.3.4",
104+
"reflect-metadata": "^0.2.0",
105+
"xml2js": "^0.6.2",
100106
"zod": "^3.22.4"
101107
},
102108
"devDependencies": {
103109
"@babel/core": "^7.23.3",
104-
"typescript": "^5.2.2",
105110
"@babel/plugin-transform-modules-commonjs": "^7.23.3",
106111
"@babel/preset-env": "^7.23.3",
107112
"@jest/globals": "^29.7.0",
108113
"@nestjs/cli": "^10.2.1",
109114
"@nestjs/schematics": "^10.0.3",
110-
"@nestjs/testing": "^10.2.9",
115+
"@nestjs/testing": "^10.2.10",
116+
"@rollup/plugin-commonjs": "^25.0.7",
117+
"@rollup/plugin-json": "^6.0.1",
118+
"@rollup/plugin-node-resolve": "^15.2.3",
119+
"@rollup/plugin-typescript": "^11.1.5",
111120
"@types/dotenv-defaults": "^2.0.4",
112121
"@types/figlet": "^1.5.8",
113122
"@types/ioredis-mock": "^8.2.5",
114-
"@types/jest": "^29.5.8",
115-
"@types/mocha": "^10.0.4",
116-
"@types/node": "^20.9.1",
123+
"@types/jest": "^29.5.9",
124+
"@types/mocha": "^10.0.5",
125+
"@types/node": "^20.9.3",
117126
"@types/useragent": "^2.3.4",
118127
"@typescript-eslint/eslint-plugin": "^7.0.0",
119128
"@typescript-eslint/parser": "^7.0.0",
@@ -150,11 +159,18 @@
150159
"prettier-eslint-cli": "^8.0.1",
151160
"prisma": "^5.6.0",
152161
"rimraf": "^5.0.5",
162+
"rollup": "^4.5.0",
163+
"rollup-plugin-polyfill-node": "^0.13.0",
164+
"shx": "^0.3.4",
153165
"source-map-support": "^0.5.21",
166+
"supertest": "^6.3.3",
154167
"ts-jest": "^29.1.1",
155168
"ts-jest-mock-import-meta": "^1.1.0",
156169
"ts-node": "^10.9.1",
157-
"ts-node-dev": "^2.0.0"
170+
"ts-node-dev": "^2.0.0",
171+
"tsc-watch": "^6.0.4",
172+
"typescript": "^5.3.2",
173+
"vitest": "^0.34.6"
158174
},
159175
"prisma": {
160176
"seed": "ts-node-esm ./prisma/seed.ts"

backend/prisma/.gitignore

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import { z } from 'zod';
2+
import { ApiKeyOrderByWithRelationInputObjectSchema } from './objects/ApiKeyOrderByWithRelationInput.schema';
3+
import { ApiKeyWhereInputObjectSchema } from './objects/ApiKeyWhereInput.schema';
4+
import { ApiKeyWhereUniqueInputObjectSchema } from './objects/ApiKeyWhereUniqueInput.schema';
5+
import { ApiKeyCountAggregateInputObjectSchema } from './objects/ApiKeyCountAggregateInput.schema';
6+
import { ApiKeyMinAggregateInputObjectSchema } from './objects/ApiKeyMinAggregateInput.schema';
7+
import { ApiKeyMaxAggregateInputObjectSchema } from './objects/ApiKeyMaxAggregateInput.schema';
8+
import { ApiKeyAvgAggregateInputObjectSchema } from './objects/ApiKeyAvgAggregateInput.schema';
9+
import { ApiKeySumAggregateInputObjectSchema } from './objects/ApiKeySumAggregateInput.schema';
10+
11+
export const ApiKeyAggregateSchema = z.object({
12+
orderBy: z
13+
.union([ApiKeyOrderByWithRelationInputObjectSchema, ApiKeyOrderByWithRelationInputObjectSchema.array()])
14+
.optional(),
15+
where: ApiKeyWhereInputObjectSchema.optional(),
16+
cursor: ApiKeyWhereUniqueInputObjectSchema.optional(),
17+
take: z.number().optional(),
18+
skip: z.number().optional(),
19+
_count: z.union([z.literal(true), ApiKeyCountAggregateInputObjectSchema]).optional(),
20+
_min: ApiKeyMinAggregateInputObjectSchema.optional(),
21+
_max: ApiKeyMaxAggregateInputObjectSchema.optional(),
22+
_avg: ApiKeyAvgAggregateInputObjectSchema.optional(),
23+
_sum: ApiKeySumAggregateInputObjectSchema.optional(),
24+
});
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import { z } from 'zod';
2+
import { DiscordAccountOrderByWithRelationInputObjectSchema } from './objects/DiscordAccountOrderByWithRelationInput.schema';
3+
import { DiscordAccountWhereInputObjectSchema } from './objects/DiscordAccountWhereInput.schema';
4+
import { DiscordAccountWhereUniqueInputObjectSchema } from './objects/DiscordAccountWhereUniqueInput.schema';
5+
import { DiscordAccountCountAggregateInputObjectSchema } from './objects/DiscordAccountCountAggregateInput.schema';
6+
import { DiscordAccountMinAggregateInputObjectSchema } from './objects/DiscordAccountMinAggregateInput.schema';
7+
import { DiscordAccountMaxAggregateInputObjectSchema } from './objects/DiscordAccountMaxAggregateInput.schema';
8+
import { DiscordAccountAvgAggregateInputObjectSchema } from './objects/DiscordAccountAvgAggregateInput.schema';
9+
import { DiscordAccountSumAggregateInputObjectSchema } from './objects/DiscordAccountSumAggregateInput.schema';
10+
11+
export const DiscordAccountAggregateSchema = z.object({
12+
orderBy: z
13+
.union([
14+
DiscordAccountOrderByWithRelationInputObjectSchema,
15+
DiscordAccountOrderByWithRelationInputObjectSchema.array(),
16+
])
17+
.optional(),
18+
where: DiscordAccountWhereInputObjectSchema.optional(),
19+
cursor: DiscordAccountWhereUniqueInputObjectSchema.optional(),
20+
take: z.number().optional(),
21+
skip: z.number().optional(),
22+
_count: z.union([z.literal(true), DiscordAccountCountAggregateInputObjectSchema]).optional(),
23+
_min: DiscordAccountMinAggregateInputObjectSchema.optional(),
24+
_max: DiscordAccountMaxAggregateInputObjectSchema.optional(),
25+
_avg: DiscordAccountAvgAggregateInputObjectSchema.optional(),
26+
_sum: DiscordAccountSumAggregateInputObjectSchema.optional(),
27+
});
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import { z } from 'zod';
2+
import { FollowingOrderByWithRelationInputObjectSchema } from './objects/FollowingOrderByWithRelationInput.schema';
3+
import { FollowingWhereInputObjectSchema } from './objects/FollowingWhereInput.schema';
4+
import { FollowingWhereUniqueInputObjectSchema } from './objects/FollowingWhereUniqueInput.schema';
5+
import { FollowingCountAggregateInputObjectSchema } from './objects/FollowingCountAggregateInput.schema';
6+
import { FollowingMinAggregateInputObjectSchema } from './objects/FollowingMinAggregateInput.schema';
7+
import { FollowingMaxAggregateInputObjectSchema } from './objects/FollowingMaxAggregateInput.schema';
8+
import { FollowingAvgAggregateInputObjectSchema } from './objects/FollowingAvgAggregateInput.schema';
9+
import { FollowingSumAggregateInputObjectSchema } from './objects/FollowingSumAggregateInput.schema';
10+
11+
export const FollowingAggregateSchema = z.object({
12+
orderBy: z
13+
.union([FollowingOrderByWithRelationInputObjectSchema, FollowingOrderByWithRelationInputObjectSchema.array()])
14+
.optional(),
15+
where: FollowingWhereInputObjectSchema.optional(),
16+
cursor: FollowingWhereUniqueInputObjectSchema.optional(),
17+
take: z.number().optional(),
18+
skip: z.number().optional(),
19+
_count: z.union([z.literal(true), FollowingCountAggregateInputObjectSchema]).optional(),
20+
_min: FollowingMinAggregateInputObjectSchema.optional(),
21+
_max: FollowingMaxAggregateInputObjectSchema.optional(),
22+
_avg: FollowingAvgAggregateInputObjectSchema.optional(),
23+
_sum: FollowingSumAggregateInputObjectSchema.optional(),
24+
});
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import { z } from 'zod';
2+
import { MojangAccountOrderByWithRelationInputObjectSchema } from './objects/MojangAccountOrderByWithRelationInput.schema';
3+
import { MojangAccountWhereInputObjectSchema } from './objects/MojangAccountWhereInput.schema';
4+
import { MojangAccountWhereUniqueInputObjectSchema } from './objects/MojangAccountWhereUniqueInput.schema';
5+
import { MojangAccountCountAggregateInputObjectSchema } from './objects/MojangAccountCountAggregateInput.schema';
6+
import { MojangAccountMinAggregateInputObjectSchema } from './objects/MojangAccountMinAggregateInput.schema';
7+
import { MojangAccountMaxAggregateInputObjectSchema } from './objects/MojangAccountMaxAggregateInput.schema';
8+
import { MojangAccountAvgAggregateInputObjectSchema } from './objects/MojangAccountAvgAggregateInput.schema';
9+
import { MojangAccountSumAggregateInputObjectSchema } from './objects/MojangAccountSumAggregateInput.schema';
10+
11+
export const MojangAccountAggregateSchema = z.object({
12+
orderBy: z
13+
.union([
14+
MojangAccountOrderByWithRelationInputObjectSchema,
15+
MojangAccountOrderByWithRelationInputObjectSchema.array(),
16+
])
17+
.optional(),
18+
where: MojangAccountWhereInputObjectSchema.optional(),
19+
cursor: MojangAccountWhereUniqueInputObjectSchema.optional(),
20+
take: z.number().optional(),
21+
skip: z.number().optional(),
22+
_count: z.union([z.literal(true), MojangAccountCountAggregateInputObjectSchema]).optional(),
23+
_min: MojangAccountMinAggregateInputObjectSchema.optional(),
24+
_max: MojangAccountMaxAggregateInputObjectSchema.optional(),
25+
_avg: MojangAccountAvgAggregateInputObjectSchema.optional(),
26+
_sum: MojangAccountSumAggregateInputObjectSchema.optional(),
27+
});
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import { z } from 'zod';
2+
import { PostOrderByWithRelationInputObjectSchema } from './objects/PostOrderByWithRelationInput.schema';
3+
import { PostWhereInputObjectSchema } from './objects/PostWhereInput.schema';
4+
import { PostWhereUniqueInputObjectSchema } from './objects/PostWhereUniqueInput.schema';
5+
import { PostCountAggregateInputObjectSchema } from './objects/PostCountAggregateInput.schema';
6+
import { PostMinAggregateInputObjectSchema } from './objects/PostMinAggregateInput.schema';
7+
import { PostMaxAggregateInputObjectSchema } from './objects/PostMaxAggregateInput.schema';
8+
import { PostAvgAggregateInputObjectSchema } from './objects/PostAvgAggregateInput.schema';
9+
import { PostSumAggregateInputObjectSchema } from './objects/PostSumAggregateInput.schema';
10+
11+
export const PostAggregateSchema = z.object({
12+
orderBy: z
13+
.union([PostOrderByWithRelationInputObjectSchema, PostOrderByWithRelationInputObjectSchema.array()])
14+
.optional(),
15+
where: PostWhereInputObjectSchema.optional(),
16+
cursor: PostWhereUniqueInputObjectSchema.optional(),
17+
take: z.number().optional(),
18+
skip: z.number().optional(),
19+
_count: z.union([z.literal(true), PostCountAggregateInputObjectSchema]).optional(),
20+
_min: PostMinAggregateInputObjectSchema.optional(),
21+
_max: PostMaxAggregateInputObjectSchema.optional(),
22+
_avg: PostAvgAggregateInputObjectSchema.optional(),
23+
_sum: PostSumAggregateInputObjectSchema.optional(),
24+
});
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import { z } from 'zod';
2+
import { ProfileOrderByWithRelationInputObjectSchema } from './objects/ProfileOrderByWithRelationInput.schema';
3+
import { ProfileWhereInputObjectSchema } from './objects/ProfileWhereInput.schema';
4+
import { ProfileWhereUniqueInputObjectSchema } from './objects/ProfileWhereUniqueInput.schema';
5+
import { ProfileCountAggregateInputObjectSchema } from './objects/ProfileCountAggregateInput.schema';
6+
import { ProfileMinAggregateInputObjectSchema } from './objects/ProfileMinAggregateInput.schema';
7+
import { ProfileMaxAggregateInputObjectSchema } from './objects/ProfileMaxAggregateInput.schema';
8+
import { ProfileAvgAggregateInputObjectSchema } from './objects/ProfileAvgAggregateInput.schema';
9+
import { ProfileSumAggregateInputObjectSchema } from './objects/ProfileSumAggregateInput.schema';
10+
11+
export const ProfileAggregateSchema = z.object({
12+
orderBy: z
13+
.union([ProfileOrderByWithRelationInputObjectSchema, ProfileOrderByWithRelationInputObjectSchema.array()])
14+
.optional(),
15+
where: ProfileWhereInputObjectSchema.optional(),
16+
cursor: ProfileWhereUniqueInputObjectSchema.optional(),
17+
take: z.number().optional(),
18+
skip: z.number().optional(),
19+
_count: z.union([z.literal(true), ProfileCountAggregateInputObjectSchema]).optional(),
20+
_min: ProfileMinAggregateInputObjectSchema.optional(),
21+
_max: ProfileMaxAggregateInputObjectSchema.optional(),
22+
_avg: ProfileAvgAggregateInputObjectSchema.optional(),
23+
_sum: ProfileSumAggregateInputObjectSchema.optional(),
24+
});

0 commit comments

Comments
 (0)