Skip to main content

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 NameTypeDescription
order_idstringthe order or job application that is the subject of the message
organization_idstringthe 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.

EndpointsValidator NameDescription
createTopicis_payment_setupchecks if the needs_payment_method_setup is set to false on the organization
updateTopicis_payment_setupchecks 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.

EndpointsTemplateDescription
createMessagenew-message-demand.htmlsend an email when a user on the demand site create a message
createMessagenew-message-supply.htmlsend 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',
]);