Skip to content
This repository has been archived by the owner on Jul 14, 2022. It is now read-only.

Commit

Permalink
fix: remove joi-to-typescript & make interface manually
Browse files Browse the repository at this point in the history
  • Loading branch information
kymppi committed Oct 27, 2021
1 parent 7e4ece2 commit 805da6d
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 113 deletions.
7 changes: 2 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rittaschool/shared",
"version": "0.0.6",
"version": "0.0.7",
"main": "./lib/index.cjs.js",
"module": "./lib/index.esm.js",
"types": "./lib/index.d.ts",
Expand All @@ -9,16 +9,13 @@
"author": "Midka <[email protected]>",
"license": "GPLv3",
"scripts": {
"build": "rollup -c",
"types": "ts-node ./scripts/joi-to-typescript.ts"
"build": "rollup -c"
},
"packageManager": "[email protected]",
"devDependencies": {
"@types/node": "^16.11.6",
"joi-to-typescript": "^2.2.2",
"rollup": "^2.58.0",
"rollup-plugin-typescript2": "^0.30.0",
"ts-node": "^10.4.0",
"typescript": "^4.4.4"
},
"files": [
Expand Down
20 changes: 0 additions & 20 deletions scripts/joi-to-typescript.ts

This file was deleted.

27 changes: 4 additions & 23 deletions src/interfaces/validation/index.ts → src/interfaces/dto/index.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,10 @@
/**
* This file was automatically generated by joi-to-typescript
* Do not modify this file manually
*/

export interface CreateUserValidationSchema {
alias?: string;
email?: string;
firstName: string;
home?: {
address: string;
city: string;
country: string;
zip: string;
};
home?: LocationSchema;
lastName?: string;
oauth2Identifiers?: {
opinsys?: string;
};
oauth2Identifiers?: Oauth2IdentifersValidation;
password: string;
phoneNumber?: string;
username?: string;
Expand All @@ -37,17 +25,10 @@ export interface UpdateUserValidationSchema {
alias?: string;
email?: string;
firstName?: string;
home?: {
address: string;
city: string;
country: string;
zip: string;
};
home?: LocationSchema;
id: string;
lastName?: string;
oauth2Identifiers?: {
opinsys?: string;
};
oauth2Identifiers?: Oauth2IdentifersValidation;
password?: string;
phoneNumber?: string;
username?: string;
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export * from "./auth";
export * from "./schemas";
export * from "./users";
export * from "./validation";
export * from "./dto";
11 changes: 0 additions & 11 deletions src/interfaces/validation/Location.validation.ts

This file was deleted.

8 changes: 0 additions & 8 deletions src/interfaces/validation/Oauth2Identifers.validation.ts

This file was deleted.

43 changes: 0 additions & 43 deletions src/interfaces/validation/User.validation.ts

This file was deleted.

4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"compilerOptions": {
"outDir": "lib",
"target": "es2017",
"module": "CommonJS",
"target": "es5",
"module": "esnext",
"lib": ["es2015"],
"sourceMap": true,
"strict": true,
Expand Down

0 comments on commit 805da6d

Please sign in to comment.