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 Name | Type | Description |
|---|---|---|
| compensation_amount | string | the salary of the job listing |
| compensation_type | string | how often the job seeker would be paid |
| position_requirements | string | what is required of this position |
| location_notes | string | the location of the job |
| work_start_time | string | what time does this job start |
| work_end_time | string | what time does this job end |
| work_compensation | string | any additional compensation for the job seeker |
| supports_remote_work | boolean | can this job be done remotely |
| contract_months | number | how many months is the contract for this job |
| order_count | number | how 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.
| Endpoints | Validator Name | Description |
|---|---|---|
| createProduct | valid_work_start_time_create | this is to confirm the start time is sorted in the correct format when creating a job listing |
| updateProduct | valid_work_start_time_update | this is to confirm the start time is sorted in the correct format when updating a job listing |
| createProduct | valid_work_end_time_create | this is to confirm the end time is sorted in the correct format when creating a job listing |
| updateProduct | valid_work_end_time_update | this 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.
| Endpoints | Validator Name | Description |
|---|---|---|
| createProduct | is_payment_setup | checks if the needs_payment_method_setup is set to false on the organization |
| updateProduct | is_payment_setup | checks 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',
]);