@awell-health/awell-extensions 2.0.285 → 2.0.286
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1,16 @@
|
|
1
|
+
/**
|
2
|
+
* Problem:
|
3
|
+
* Freshdesk allows their users to define a custom webhook payload.
|
4
|
+
* This means there's no "standard" webhook payload and it's not possible to define a schema for it.
|
5
|
+
*
|
6
|
+
* Alternative 1:
|
7
|
+
* If a customer wants to use a webhook-based integration with Freshdesk, we register the webhook
|
8
|
+
* in a private extension and define a custom contract and schema together with the customer and use that instead.
|
9
|
+
*
|
10
|
+
* Alternative 2:
|
11
|
+
* We try to define a schema for the webhook payload that is flexible enough to handle all possible payloads.
|
12
|
+
* Haven't attempted this yet.
|
13
|
+
*
|
14
|
+
* See https://support.freshdesk.com/support/solutions/articles/132589-using-webhooks-in-automation-rules
|
15
|
+
*/
|
1
16
|
export type TicketCreatedWebhookPayload = Record<string, unknown>;
|