Skip to content

Commit

Permalink
Update package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Letsmoe committed Nov 4, 2024
1 parent 5804d26 commit e1b3ae6
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 36 deletions.
19 changes: 9 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,28 @@
"module": "./src/index.ts",
"types": "./src/index.ts",
"type": "module",
"exports": {
"./client": "./src/client.ts",
"./server": "./src/server.ts"
},
"exports": {
"./client": "./src/client.ts",
"./server": "./src/server.ts"
},
"scripts": {
"postinstall": "bunx prisma generate",
"postyalcpublish": "bunx prisma generate",
"db:introspect": "dotenv -- prisma introspect",
"db:generate": "dotenv -- prisma generate",
"prisma:generate": "bunx prisma generate"
},
"devDependencies": {
"bun-types": "^1.1.18"
"bun-types": "^1.1.34"
},
"peerDependencies": {
"typescript": "^5.0.0"
"typescript": "^5.6.3"
},
"dependencies": {
"@prisma/client": "5.7.0",
"@prisma/client": "5.21.1",
"moment": "^2.30.1",
"prisma": "^5.7.0",
"prisma": "^5.21.1",
"prisma-dbml-generator": "^0.10.0",
"prisma-generator-fake-data": "^0.14.2",
"prisma-generator-fake-data": "^0.14.3",
"prisma-import": "^1.0.5",
"zod-prisma": "^0.5.4"
},
Expand Down
1 change: 0 additions & 1 deletion prisma/schema/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ enum Ausstellgrund {
Sonstiges
}


enum Ausweisart {
VerbrauchsausweisWohnen
VerbrauchsausweisGewerbe
Expand Down
50 changes: 25 additions & 25 deletions src/types/fake-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export function fakeAnteilshaber() {
}
export function fakeAnteilshaberComplete() {
return {
id: faker.number.int(),
id: faker.number.int({ max: 2147483647 }),
benutzer_id: faker.number.int(),
gebaeude_id: faker.number.int(),
rolle: undefined,
Expand All @@ -33,7 +33,7 @@ export function fakeApiRequests() {
}
export function fakeApiRequestsComplete() {
return {
id: faker.number.int(),
id: faker.number.int({ max: 2147483647 }),
date: new Date(),
ip: faker.lorem.words(5),
method: faker.lorem.words(5),
Expand Down Expand Up @@ -105,7 +105,7 @@ export function fakeBedarfsausweisWohnen() {
}
export function fakeBedarfsausweisWohnenComplete() {
return {
id: faker.number.int(),
id: faker.number.int({ max: 2147483647 }),
uid: '[object Object]',
benutzer_id: undefined,
ausstellgrund: undefined,
Expand Down Expand Up @@ -181,7 +181,7 @@ export function fakeBenutzer() {
}
export function fakeBenutzerComplete() {
return {
id: faker.number.int(),
id: faker.number.int({ max: 2147483647 }),
uid: '[object Object]',
name: undefined,
vorname: undefined,
Expand All @@ -204,7 +204,7 @@ export function fakeEvent() {
}
export function fakeEventComplete() {
return {
id: faker.number.int(),
id: faker.number.int({ max: 2147483647 }),
uid: '[object Object]',
date: new Date(),
title: faker.lorem.words(5),
Expand All @@ -218,9 +218,9 @@ export function fakeGebaeudeAufnahmeAllgemein() {
ausweisart: undefined,
gebaeudetyp: undefined,
gebaeudeteil: undefined,
baujahr_gebaeude: [faker.number.int(),faker.number.int(),faker.number.int(),faker.number.int(),faker.number.int()],
baujahr_heizung: [faker.number.int(),faker.number.int(),faker.number.int(),faker.number.int(),faker.number.int()],
baujahr_klima: [faker.number.int(),faker.number.int(),faker.number.int(),faker.number.int(),faker.number.int()],
baujahr_gebaeude: [faker.number.int({ max: 2147483647 }),faker.number.int({ max: 2147483647 }),faker.number.int({ max: 2147483647 }),faker.number.int({ max: 2147483647 }),faker.number.int({ max: 2147483647 })],
baujahr_heizung: [faker.number.int({ max: 2147483647 }),faker.number.int({ max: 2147483647 }),faker.number.int({ max: 2147483647 }),faker.number.int({ max: 2147483647 }),faker.number.int({ max: 2147483647 })],
baujahr_klima: [faker.number.int({ max: 2147483647 }),faker.number.int({ max: 2147483647 }),faker.number.int({ max: 2147483647 }),faker.number.int({ max: 2147483647 }),faker.number.int({ max: 2147483647 })],
einheiten: undefined,
flaeche: undefined,
nutzflaeche: undefined,
Expand Down Expand Up @@ -276,15 +276,15 @@ export function fakeGebaeudeAufnahmeAllgemein() {
}
export function fakeGebaeudeAufnahmeAllgemeinComplete() {
return {
id: faker.number.int(),
id: faker.number.int({ max: 2147483647 }),
uid: '[object Object]',
benutzer_id: undefined,
ausweisart: undefined,
gebaeudetyp: undefined,
gebaeudeteil: undefined,
baujahr_gebaeude: [faker.number.int(),faker.number.int(),faker.number.int(),faker.number.int(),faker.number.int()],
baujahr_heizung: [faker.number.int(),faker.number.int(),faker.number.int(),faker.number.int(),faker.number.int()],
baujahr_klima: [faker.number.int(),faker.number.int(),faker.number.int(),faker.number.int(),faker.number.int()],
baujahr_gebaeude: [faker.number.int({ max: 2147483647 }),faker.number.int({ max: 2147483647 }),faker.number.int({ max: 2147483647 }),faker.number.int({ max: 2147483647 }),faker.number.int({ max: 2147483647 })],
baujahr_heizung: [faker.number.int({ max: 2147483647 }),faker.number.int({ max: 2147483647 }),faker.number.int({ max: 2147483647 }),faker.number.int({ max: 2147483647 }),faker.number.int({ max: 2147483647 })],
baujahr_klima: [faker.number.int({ max: 2147483647 }),faker.number.int({ max: 2147483647 }),faker.number.int({ max: 2147483647 }),faker.number.int({ max: 2147483647 }),faker.number.int({ max: 2147483647 })],
einheiten: undefined,
flaeche: undefined,
nutzflaeche: undefined,
Expand Down Expand Up @@ -352,15 +352,15 @@ export function fakeGebaeudeBilder() {
}
export function fakeGebaeudeBilderComplete() {
return {
id: faker.number.int(),
id: faker.number.int({ max: 2147483647 }),
gebaeude_stammdaten_id: faker.number.int(),
kategorie: faker.helpers.arrayElement([BilderKategorie.Heizung, BilderKategorie.Fenster, BilderKategorie.Gebaeude, BilderKategorie.Daemmung] as const),
uid: '[object Object]',
};
}
export function fakeGebaeudePlaeneComplete() {
return {
id: faker.number.int(),
id: faker.number.int({ max: 2147483647 }),
gebaeude_stammdaten_id: faker.number.int(),
uid: '[object Object]',
};
Expand All @@ -376,7 +376,7 @@ export function fakeGebaeudeStammdaten() {
}
export function fakeGebaeudeStammdatenComplete() {
return {
id: faker.number.int(),
id: faker.number.int({ max: 2147483647 }),
uid: '[object Object]',
benutzer_id: undefined,
latitude: undefined,
Expand All @@ -395,7 +395,7 @@ export function fakeKlimafaktoren() {
}
export function fakeKlimafaktorenComplete() {
return {
id: faker.number.int(),
id: faker.number.int({ max: 2147483647 }),
plz: faker.lorem.words(5),
month: faker.number.int(),
year: faker.number.int(),
Expand All @@ -414,7 +414,7 @@ export function fakePostleitzahlen() {
}
export function fakePostleitzahlenComplete() {
return {
id: faker.number.int(),
id: faker.number.int({ max: 2147483647 }),
plz: faker.lorem.words(5),
stadt: faker.lorem.words(5),
bundesland: faker.lorem.words(5),
Expand Down Expand Up @@ -448,7 +448,7 @@ export function fakeRechnung() {
}
export function fakeRechnungComplete() {
return {
id: faker.number.int(),
id: faker.number.int({ max: 2147483647 }),
uid: '[object Object]',
benutzer_id: faker.number.int(),
gebaeude_aufnahme_allgemein_id: faker.number.int(),
Expand Down Expand Up @@ -484,7 +484,7 @@ export function fakeRefreshTokens() {
}
export function fakeRefreshTokensComplete() {
return {
id: faker.number.int(),
id: faker.number.int({ max: 2147483647 }),
benutzer_id: faker.number.int(),
token: faker.lorem.words(5),
ip: faker.lorem.words(5),
Expand All @@ -503,7 +503,7 @@ export function fakeTickets() {
}
export function fakeTicketsComplete() {
return {
id: faker.number.int(),
id: faker.number.int({ max: 2147483647 }),
uid: '[object Object]',
benutzer_id: undefined,
created_at: new Date(),
Expand Down Expand Up @@ -559,7 +559,7 @@ export function fakeVerbrauchsausweisGewerbe() {
}
export function fakeVerbrauchsausweisGewerbeComplete() {
return {
id: faker.number.int(),
id: faker.number.int({ max: 2147483647 }),
uid: '[object Object]',
benutzer_id: undefined,
ausstellgrund: undefined,
Expand Down Expand Up @@ -629,7 +629,7 @@ export function fakeVerbrauchsausweisWohnen() {
}
export function fakeVerbrauchsausweisWohnenComplete() {
return {
id: faker.number.int(),
id: faker.number.int({ max: 2147483647 }),
uid: '[object Object]',
benutzer_id: undefined,
ausstellgrund: undefined,
Expand Down Expand Up @@ -668,7 +668,7 @@ export function fakedocumenttemplates() {
}
export function fakedocumenttemplatesComplete() {
return {
id: faker.number.int(),
id: faker.number.int({ max: 2147483647 }),
name: faker.person.fullName(),
shortdescription: faker.lorem.words(5),
longdescription: faker.lorem.words(5),
Expand All @@ -689,7 +689,7 @@ export function fakedocumenttypes() {
}
export function fakedocumenttypesComplete() {
return {
id: faker.number.int(),
id: faker.number.int({ max: 2147483647 }),
name: faker.person.fullName(),
shortdescription: faker.lorem.words(5),
longdescription: faker.lorem.words(5),
Expand All @@ -702,7 +702,7 @@ export function faketokens() {
}
export function faketokensComplete() {
return {
id: faker.number.int(),
id: faker.number.int({ max: 2147483647 }),
token: faker.lorem.words(5),
user_id: faker.number.int(),
date_created: new Date(),
Expand Down

0 comments on commit e1b3ae6

Please sign in to comment.