Skip to main content

geekle-catalog-service

The service handles the job listing as a product entity.

Custom Fields

Inside the src/custom-product-fields.ts file, additional fields have been added to make it easier to list jobs using the product entity.

Field NameTypeDescription
compensation_amountstringthe salary of the job listing
compensation_typestringhow often the job seeker would be paid
position_requirementsstringwhat is required of this position
location_notesstringthe location of the job
work_start_timestringwhat time does this job start
work_end_timestringwhat time does this job end
work_compensationstringany additional compensation for the job seeker
supports_remote_workbooleancan this job be done remotely
contract_monthsnumberhow many months is the contract for this job
order_countnumberhow many people have applied to this job

Custom Validators

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

EndpointsValidator NameDescription
createProductvalid_work_start_time_createthis is to confirm the start time is sorted in the correct format when creating a job listing
updateProductvalid_work_start_time_updatethis is to confirm the start time is sorted in the correct format when updating a job listing
createProductvalid_work_end_time_createthis is to confirm the end time is sorted in the correct format when creating a job listing
updateProductvalid_work_end_time_updatethis is to confirm the end time is sorted in the correct format when updating a job listing

Inside src/validators the payment validator has been added to check the organization has an valid and paid subscription.

EndpointsValidator NameDescription
createProductis_payment_setupchecks if the needs_payment_method_setup is set to false on the organization
updateProductis_payment_setupchecks if the needs_payment_method_setup is set to false on the organization

Custom Endpoints

No new endpoints have been added but unused endpoints have been disabled in src/index.ts using the setEnabledAdapterMethods function

Disabled Endpoints

Some endpoints are disabled because they are unused.

  adapter = sdkAdapter.setEnabledAdapterMethods(adapter, [
'createProduct',
'createAttachment',
'deleteAttachment',
'getAttachmentUploadUrl',
'getProduct',
'listAttributes',
'listCategories',
'listProductsForOrganization',
'updateProduct',
'listProductsForActiveStatus',
'listProducts',
'listAttachments',
]);