Skip to main content

geekle-order-service

This service handles the creation and management of orders which in geekle are job applications

Custom Fields

inside the src/custom-fields.ts file, additional fields have been added to turn orders into job applications.

Field NameTypeDescription
demand_user_infoobjectthe user data of the person applying to the job
topic_idstringif a topic exists, the id of the topic connected to the order

Custom Validators

inside the src/custom-fields.ts additional validators have been added to validate the values in the new custom fields.

EndpointsValidator NameDescription
createOrdervalid_compensation_type_amount_createchecks if the compensation_amount is in the correct format
updateOrdervalid_compensation_type_amount_updatechecks if the compensation_amount is in the correct format
createOrdervalid_compensation_type_createchecks if the compensation_type is 'month', 'hour', 'day'
updateOrdervalid_compensation_type_updatechecks if the compensation_type is 'month', 'hour', 'day'
createOrdervalid_years_experience_createchecks if the years of experience is in the correct format
updateOrdervalid_years_experience_updatechecks if the years of experience is in the correct format
updateOrderorder_status_check_updatechecks if the order status update is valid for the current order status

Custom Emails

The custom emails are stored inside src/emails and enabled from the src/index.ts file.

EndpointsTemplateDescription
createOrdernew-order-created.htmlthis sends the the order information to the supply user

Custom Side Effect

The order's service contains a custom side effect the logic is setup in src/update-order-count-side-effect.ts. This trigger when a demand site user applies for a job, updating the count stored on the product.

EndpointsSide Effect NameDescription
createOrderupdateCountHandlerupdate the the order count listed on the product

Disabled Endpoints

Some endpoints are disabled because they are unused.

 adapter = sdkAdapter.setEnabledAdapterMethods(adapter, [
'getOrder',
'listOrders',
'listOrdersForOrganization',
'updateOrder',
'listOrdersForUser',
'createOrder',
]);