Skip to content

Commit

Permalink
Merge pull request #14 from alphin-roy2000/develop
Browse files Browse the repository at this point in the history
profile 99.99%
  • Loading branch information
sru-thy committed Nov 13, 2021
2 parents 2a46dea + 7268c7a commit f3829ac
Show file tree
Hide file tree
Showing 18 changed files with 12,040 additions and 570 deletions.
11,421 changes: 11,406 additions & 15 deletions package-lock.json

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { ProfileModule } from './profile/profile.module';
import { PostsModule } from './posts/posts.module';
import { ServeStaticModule } from '@nestjs/serve-static';
import { join } from 'path';
import { CompanyModule } from './company/company.module';




Expand All @@ -20,7 +20,6 @@ import { CompanyModule } from './company/company.module';
CommentsModule,
ProfileModule,
PostsModule,
CompanyModule,
ServeStaticModule.forRoot({
rootPath:join(__dirname,'..','uploads'),

Expand Down
18 changes: 0 additions & 18 deletions src/company/company.controller.spec.ts

This file was deleted.

34 changes: 0 additions & 34 deletions src/company/company.controller.ts

This file was deleted.

13 changes: 0 additions & 13 deletions src/company/company.module.ts

This file was deleted.

78 changes: 0 additions & 78 deletions src/company/company.service.ts

This file was deleted.

30 changes: 0 additions & 30 deletions src/company/entities/company.entity.ts

This file was deleted.

9 changes: 9 additions & 0 deletions src/profile/dto/connection.dto.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { ApiProperty } from "@nestjs/swagger";

export class ConnectionDto{
@ApiProperty({
description: 'profile_id',
type: 'string',
})
readonly profile_id:string
}
141 changes: 98 additions & 43 deletions src/profile/dto/create-profile.dto.ts
Original file line number Diff line number Diff line change
@@ -1,45 +1,100 @@
import { ApiProperty } from '@nestjs/swagger';
import { IsString,MaxLength } from 'class-validator';


export class ProfileDto{
@ApiProperty({
description:"unique profile id",
type:'string'})
readonly profile_id: string;
@ApiProperty({
description: 'Users id',
type: 'string',

})
@IsString()
readonly uid: string;
@ApiProperty({
description: 'Bio',
type: 'string',
})
@IsString()
@MaxLength(1024)
readonly bio: string;
@ApiProperty({
description: 'Adsress',
type: 'string',
})
@IsString()
@MaxLength(1024)
readonly adsress: string;
@ApiProperty({
description: 'User Type',
type: 'string',
example: 'Alumini',
})
@IsString()
readonly utype: string;
@ApiProperty({
description: 'Image Url',
type: 'string',
})
@IsString()
readonly img_url: string;

import { IsString, MaxLength } from 'class-validator';
import Skills from '../entities/skills.entity';

export class ProfileParameter{
profile_id:string
}

export class ProfileDto {
@ApiProperty({
description: 'Fullname',
type: 'string',
example:'Aneez Muhammed'
})
@IsString()
@MaxLength(128)
readonly fullname: string;

@ApiProperty({
description: 'Admission',
type: 'list',
example:{admission_no:'B18CS008',branch:'CSE',batch:'2019'}
})
@IsString()
readonly admission: { admission_no: string,branch:string, batch: string };

@ApiProperty({
description: 'Phone No',
type: 'string',
example:'+919943435345'
})
@IsString()
@MaxLength(15)
readonly phoneno: string;

@ApiProperty({
description: 'Urs',
type: '"simple-json"',
example:{ personal_url:"www.sad.com", linkedin: "www.sad.com", facebook: "www.sad.com",github: "www.sad.com" }
})
@IsString()
readonly urls: { personal_url:string, linkedin: string, facebook: string,github: string };

@ApiProperty({
description: 'About',
type: 'string',
example:'This is a sample bio'
})
@IsString()
@MaxLength(1024)
readonly about: string;

@ApiProperty({
description: 'Address',
type: 'simple-json',
example:{ place:"Hello", district: "KTM", state: "Kerala",country: "India" }
})
@IsString()
readonly address: { place:string, district: string, state: string,country: string };

@ApiProperty({
description: 'Ref Name',
type: 'string',
example:'Kurian'
})
@IsString()
readonly ref_fullname: string;

@ApiProperty({
description: 'Ref Email',
type: 'string',
example:'1@mail.com'
})
@IsString()
readonly ref_email: string;

@ApiProperty({
description: 'Ref Phone',
type: 'string',
example:'+9144434343'
})
@IsString()
readonly ref_phonenumber: string;

@ApiProperty({
description: 'Skills',
type: 'simple-array',
example:["CSS","HTML"]
})
@IsString()
readonly skills: Skills[];

@ApiProperty({
description: 'accomplishments',
type: 'simple-array',
example:["CSS","HTML"]
})
@IsString()
readonly accomplishments: string[];
}
Loading

0 comments on commit f3829ac

Please sign in to comment.