geekle-chat-service
The service handle the messaging feature for suppliers to talk with demand sit users.
Custom Fields
There is only 2 custom fields for this service inside src/index.ts
Field Name | Type | Description |
---|---|---|
order_id | string | the order or job application that is the subject of the message |
organization_id | string | the organization that the topic belongs to |
Custom Validators
Inside src/validators
the payment validator has been added to check the organization has an valid and paid subscription.
Endpoints | Validator Name | Description |
---|---|---|
createTopic | is_payment_setup | checks if the needs_payment_method_setup is set to false on the organization |
updateTopic | is_payment_setup | checks if the needs_payment_method_setup is set to false on the organization |
Custom Emails
The custom emails are stored inside src/emails
and enabled from the src/index.ts
file.
Endpoints | Template | Description |
---|---|---|
createMessage | new-message-demand.html | send an email when a user on the demand site create a message |
createMessage | new-message-supply.html | send an email when a user on the supply site create a message |
Disabled Endpoints
Some endpoints are disabled because they are unused.
adapter = sdkAdapter.setEnabledAdapterMethods(adapter, [
'listTopicsSubscribedByUser',
'getTopic',
'listMessagesForTopic',
'updateMessageReadStatus',
'createMessage',
'createSubscription',
'createTopic',
'getMessage',
'listTopicsSubscribedByOrganization',
]);