forked from humanprotocol/human-protocol
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds Email Confirmation, KYC procedure, Password Reset and Disable O…
…perator modules. (#64) * Fixes after check * Removes unnecessary comment * Fixes SDK limitation * Removes unnecessary interceptor, changes Body to Query in request for oracle discovery * Adds statistics related DTO interfaces with api mapping * Changes in interface naming convention of received data * Review fixes * Review fixes * Review fixes * Review fixes * Changes logic of calling exchange oracle: url is obtained based on the address provided in the enpoint. Adds CORS * Adds test coverage * Adds test coverage * Adds kv store to the modules that use it * minor fixes * minor fixes * Alignment of the swagger and interface used in the project * Add email verification endpoints and related logic. * Implement password reset functionality. * Add disableOperator and prepareSignature methods. * A property has been set in the eslint config to avoid enforcing a line break style. * Implement KYC procedure start. * Integration with the KYC procedure, password reset and disable operator modules. * The variable name 'restorePasswordDto' in the sendRestorePassword function has been changed to 'restorePasswordData'. * Update 'type' field data type in PrepareSignature model. * Refactor prepareSignature test and update response fixture. * Refactor service injections in multiple controllers, renamed to a generic 'service' format. * Refactor services to use 'gateway' instead of 'reputationOracleService'. * Sets base paths in the controllers and simplify the path of each endpoint. * Refactor email verification test fixtures. * Refactor 'h_captcha_token'. * Enhance test coverage for oracle gateway. * bug fixed * Remove hCaptcha token mapping in user-worker and password-reset mappers. * Refactor code to separate PrepareSignature functionality into its own module. (#71) * fix: Change naming conventions in password-reset mapper. * Merge conflict fixes --------- Co-authored-by: maciek.nabialek <maciej.nabialek@blockydevs.com>
- Loading branch information
1 parent
1fee79a
commit 74cce2e
Showing
64 changed files
with
2,036 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 12 additions & 1 deletion
13
...s/apps/human-app/server/src/integrations/reputation-oracle/reputation-oracle.interface.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,19 @@ | ||
import { SignupWorkerData } from '../../modules/user-worker/model/worker-registration.model'; | ||
import { SignupOperatorData } from '../../modules/user-operator/model/operator-registration.model'; | ||
import { SigninWorkerData } from '../../modules/user-worker/model/worker-signin.model'; | ||
import { EmailVerificationData } from '../../modules/email-confirmation/model/email-verification.model'; | ||
import { ResendEmailVerificationData } from '../../modules/email-confirmation/model/resend-email-verification.model'; | ||
import { PrepareSignatureData } from '../../modules/prepare-signature/model/prepare-signature.model'; | ||
import { DisableOperatorData } from '../../modules/disable-operator/model/disable-operator.model'; | ||
|
||
export class EmptyData {} | ||
|
||
export type RequestDataType = | ||
| EmptyData | ||
| SignupWorkerData | ||
| SignupOperatorData | ||
| SigninWorkerData; | ||
| SigninWorkerData | ||
| EmailVerificationData | ||
| ResendEmailVerificationData | ||
| PrepareSignatureData | ||
| DisableOperatorData; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.