Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: register user details #119

Merged
merged 49 commits into from
Oct 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
53bddd2
feat: Get Proof Presentation from Data with Credentials and Attribute…
KulkarniShashank Aug 30, 2023
0e4ae4c
fix: Changed the passkey approch
Sep 1, 2023
4241435
feat/fix: Implemented Add passkey for existing users
tipusinghaw Sep 6, 2023
bff4fa0
feat:implemented add passke
tipusinghaw Sep 7, 2023
62b24ed
docs: update README
ajile-in Sep 1, 2023
8dc7126
docs: add CONTRIBUTING guidelines
ajile-in Sep 1, 2023
10ff454
fix: login error message
tipusinghaw Sep 11, 2023
71409e4
docs: add company name in LICESE file
ajile-in Sep 8, 2023
57f5fd9
worked on the master table json file and .env sample refractoring
nishad-ayanworks Sep 13, 2023
cd4ed9d
Included credebl-master-table json file in the .gitignore
nishad-ayanworks Sep 13, 2023
501b1f0
worked on the username & orgslug feature for public profiles
nishad-ayanworks Sep 14, 2023
47cbb6d
refractored the GET API endoints for public profiles
nishad-ayanworks Sep 15, 2023
d013271
refactored the organization GET API public profiles
nishad-ayanworks Sep 15, 2023
c6fb954
solved the regix expression grouping issue.
nishad-ayanworks Sep 15, 2023
9e90a80
resolved the comments on the PR
nishad-ayanworks Sep 15, 2023
d18b1c6
chnaged regular expression for orgSLug
nishad-ayanworks Sep 15, 2023
1e10b29
feat: implemented username & orgslug feature for public profiles (#85)
nishad-ayanworks Sep 15, 2023
969f813
implemented org and user to bydefault public (#87)
nishad-ayanworks Sep 15, 2023
bcf6be2
refactor: API refactor in user, organization, auth and agent module (…
KulkarniShashank Sep 20, 2023
ef04604
refactor: schema APIs standardized (#84)
KulkarniShashank Sep 20, 2023
6151319
refactor: Standardize API in connection, issuance and verification (#…
KulkarniShashank Sep 21, 2023
8dd7dca
feat: support afj-0.4.1 (#102)
KulkarniShashank Sep 26, 2023
d49acd2
Fix bugs platform module (#103)
KulkarniShashank Sep 27, 2023
cc4b82c
feat: ecosystem ms setup (#104)
tipusinghaw Oct 2, 2023
0b5282b
feat: ecosystem ms setup (#105)
tipusinghaw Oct 2, 2023
87cbe33
Integrated ecosystem enable disable in config, master table entry for…
nishad-ayanworks Oct 3, 2023
66eaac4
feat: Get Proof Presentation from Data with Credentials and Attribute…
KulkarniShashank Aug 30, 2023
0f2f783
fix: Changed the passkey approch
Sep 1, 2023
b534c05
feat/fix: Implemented Add passkey for existing users
tipusinghaw Sep 6, 2023
af1f887
feat:implemented add passke
tipusinghaw Sep 7, 2023
13adad0
fix: login error message
tipusinghaw Sep 11, 2023
19e580e
worked on the master table json file and .env sample refractoring
nishad-ayanworks Sep 13, 2023
d54a5ce
worked on the username & orgslug feature for public profiles
nishad-ayanworks Sep 14, 2023
f15aa90
refractored the GET API endoints for public profiles
nishad-ayanworks Sep 15, 2023
97a51cf
refactored the organization GET API public profiles
nishad-ayanworks Sep 15, 2023
913c2ce
solved the regix expression grouping issue.
nishad-ayanworks Sep 15, 2023
44b3a80
resolved the comments on the PR
nishad-ayanworks Sep 15, 2023
db7c43a
chnaged regular expression for orgSLug
nishad-ayanworks Sep 15, 2023
2b89402
implemented org and user to bydefault public (#87)
nishad-ayanworks Sep 15, 2023
645a48a
refactor: API refactor in user, organization, auth and agent module (…
KulkarniShashank Sep 20, 2023
5e8c146
refactor: schema APIs standardized (#84)
KulkarniShashank Sep 20, 2023
6305b84
refactor: Standardize API in connection, issuance and verification (#…
KulkarniShashank Sep 21, 2023
5b99245
feat: ecosystem ms setup (#104)
tipusinghaw Oct 2, 2023
4c0b1af
feat: ecosystem ms setup (#105)
tipusinghaw Oct 2, 2023
b5a655e
feat: implemented enum
tipusinghaw Oct 4, 2023
f4de22d
fix: changed enum messages
tipusinghaw Oct 4, 2023
61e6f30
refactor: global exception handler and user DTO
tipusinghaw Oct 5, 2023
cca8220
Merge branch 'develop' of https://github.com/credebl/credebl-platform…
tipusinghaw Oct 5, 2023
24d1c39
fix: changed platform route
tipusinghaw Oct 5, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apps/agent-service/src/agent-service.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -888,5 +888,6 @@ export class AgentServiceService {
throw new RpcException(error.response ? error.response : error);
}
}

}

13 changes: 6 additions & 7 deletions apps/api-gateway/common/exception-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,12 @@ export class CustomExceptionFilter extends BaseExceptionFilter {
if (exception && exception["response"] && exception.message) {

if (Array.isArray(exception["response"].message)) {
exception["response"].message.forEach((msg) => {
errorResponse = {
statusCode: exception["statusCode"] ? exception["statusCode"] : status,
message: msg || 'Internal server error',
error: msg || 'Internal server error'
};
});

errorResponse = {
statusCode: exception["statusCode"] ? exception["statusCode"] : status,
message: exception.message ? exception.message : 'Internal server error',
error: exception["response"].message ? exception["response"].message : exception["response"] ? exception["response"] : 'Internal server error'
};
} else {
errorResponse = {
statusCode: exception["statusCode"] ? exception["statusCode"] : status,
Expand Down
3 changes: 2 additions & 1 deletion apps/api-gateway/src/ecosystem/ecosystem.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ import { EditEcosystemDto } from './dtos/edit-ecosystem-dto';
import { AuthGuard } from '@nestjs/passport';
import { User } from '../authz/decorators/user.decorator';
import { BulkEcosystemInvitationDto } from './dtos/send-invitation.dto';
// eslint-disable-next-line @typescript-eslint/no-unused-vars
import { user } from '@prisma/client';


@UseFilters(CustomExceptionFilter)
Expand Down Expand Up @@ -104,5 +106,4 @@ export class EcosystemController {
};
return res.status(HttpStatus.CREATED).json(finalResponse);
}

}
11 changes: 5 additions & 6 deletions apps/api-gateway/src/user/dto/add-user.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,17 @@ export class AddUserDetails {
@IsEmail()
@IsNotEmpty({ message: 'Please provide valid email' })
@IsString({ message: 'email should be string' })
@IsOptional()
email?: string;
email: string;

@ApiProperty({ example: 'Alen' })
@IsNotEmpty({ message: 'Please provide valid email' })
@IsString({ message: 'firstName should be string' })
@IsOptional()
firstName?: string;
firstName: string;

@ApiProperty({ example: 'Harvey' })
@IsNotEmpty({ message: 'Please provide valid email' })
@IsString({ message: 'lastName should be string' })
@IsOptional()
lastName?: string;
lastName: string;

@ApiProperty()
@Transform(({ value }) => trim(value))
Expand Down
1 change: 1 addition & 0 deletions apps/api-gateway/src/user/user.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,4 +277,5 @@ export class UserController {
return res.status(HttpStatus.OK).json(finalResponse);

}

}
3 changes: 1 addition & 2 deletions apps/organization/src/organization.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -466,5 +466,4 @@ export class OrganizationService {
throw new RpcException(error.response ? error.response : error);
}
}

}
}
1 change: 0 additions & 1 deletion apps/user/repositories/user-device.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,4 +288,3 @@ async addCredentialIdAndNameById(id:number, credentialId:string, deviceFriendlyN
}

}

1 change: 0 additions & 1 deletion libs/common/src/response-messages/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,5 @@ export const ResponseMessages = {
notCreated: 'Error while creating ecosystem',
update: 'Error while updating ecosystem'
}

},
};
1 change: 0 additions & 1 deletion libs/prisma-service/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,5 @@ model ecosystem_orgs {
lastChangedDateTime DateTime @default(now()) @db.Timestamptz(6)
lastChangedBy Int @default(1)
deletedAt DateTime? @db.Timestamp(6)
}