geekle-demand-user-service
This service handles the user information and creation of the demand user entity in the platform.
Custom Fields
These are the additional fields for a demand site user added from src/custom-user-fields.ts
.
Field Name | Type | Description |
---|---|---|
katakana_name | string | the katakana name of the user |
profession_category_names | array | a list of profession catagories the user belongs to |
skills | array | a list of skills the user has |
years_experience | object | how many years of experience the user has |
compensation_type | string | the users preferred compensation type, eg month |
compensation_amount | string | the users preferred compensation amount |
is_signup_wizard_complete | boolean | has the user completed the sign up wizard |
Custom Validators
Inside src/custom-user-fields.ts
custom field validators have been added to check the user has an valid data.
Endpoints | Validator Name | Description |
---|---|---|
createUser | valid_katakana_create | checks if katakana_name contains only katakana |
updateUser | valid_katakana_update | checks if katakana_name contains only katakana |
createUser | valid_years_experience_create | checks if years_experience is in the correct format eg 'lt1', '1-3', '3-5', '5-10', 'gt10' |
updateUser | valid_years_experience_create | checks if years_experience is in the correct format eg 'lt1', '1-3', '3-5', '5-10', 'gt10' |
createUser | valid_compensation_type_create | checks if the compensation_type is 'month', 'hour', 'day' |
updateUser | valid_compensation_type_update | checks if the compensation_type is 'month', 'hour', 'day' |
createUser | valid_compensation_type_update | checks if valid_compensation_type is in the correct format |
updateUser | valid_compensation_type_update | checks if valid_compensation_type is in the correct format |
createUser | valid_compensation_type_amount_create | checks if the compensation_amount is in the correct format |
updateUser | valid_compensation_type_amount_create | checks if the compensation_amount is in the correct format |
Custom Emails
The custom emails are stored inside src/emails
and enabled from the src/index.ts
file.
Endpoints | Template | Description |
---|---|---|
updateUser | new-registered-users.html | sends an email to the user on the demand site which was created. |
Disabled Endpoints
Some endpoints are disabled because they are unused.
adapter = sdkAdapter.setEnabledAdapterMethods(adapter, [
'createUser',
'updateUser',
'getUser',
'resetPassword',
'changeUserPassword',
'sendResetPasswordEmail',
'sendVerificationEmail',
'verifyEmail',
'changeUserEmail',
'verifyChangeEmail',
'deactivateUser',
'checkUserPassword',
'createUserForAdmin',
'listAttachments',
]);