@bmiddha/webhooks
Classes#
Interfaces#
Type aliases#
Hook#
Ƭ Hook: object
Type declaration#
| Name | Type |
|---|---|
key | string |
urls | string[] |
Defined in: types/Hook.ts:1
HookDocument#
Ƭ HookDocument: Hook & Document & { _id: string }
Defined in: db/mongo.ts:10
MemoryDBType#
Ƭ MemoryDBType: Record<string, string[]>
Defined in: types/Options.ts:4
Options#
Ƭ Options: object
Type declaration#
| Name | Type |
|---|---|
memoryDB? | MemoryDBType |
mongooseConnection? | Connection |
redisClient? | Redis |
Defined in: types/Options.ts:6
StatusResponse#
Ƭ StatusResponse: object
Type declaration#
| Name | Type |
|---|---|
body | string |
headers | object |
key | string |
status | number |
url | string |
Defined in: types/StatusResponse.ts:1
TriggerOptions#
Ƭ TriggerOptions: object
Type declaration#
| Name | Type |
|---|---|
body | object |
callback? | (res: StatusResponse) => void |
headers? | object |
key | string |
Defined in: types/TriggerOptions.ts:2
Variables#
HookSchema#
• Const HookSchema: Schema<HookDocument, Model<any, any, any>, undefined>
Defined in: db/mongo.ts:5