denotify-client 1.1.13 → 1.1.15
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.
- package/.eslintrc +1 -1
- package/.prettierrc +2 -2
- package/.vscode/settings.json +4 -0
- package/dist/denotify-client.cjs +1 -1
- package/dist/denotify-client.d.ts +3 -3
- package/dist/denotify-client.iife.js +1 -1
- package/dist/denotify-client.mjs +1 -1
- package/package.json +1 -1
- package/tsconfig.json +33 -21
- package/types/alertbuilder.d.ts +99 -69
- package/types/client.d.ts +12 -12
- package/types/denotifyclient.d.ts +59 -46
- package/types/examples/aave-healthcheck.d.ts +1 -1
- package/types/examples/balance-monitor.d.ts +1 -1
- package/types/examples/delete-alert.d.ts +1 -1
- package/types/functionbuilder.d.ts +31 -20
- package/types/index.d.ts +14 -7
- package/types/notifications/index.d.ts +36 -3
- package/types/notifications/notification.d.ts +27 -18
- package/types/notifications/notify_discord_webhook.d.ts +32 -32
- package/types/temp.d.ts +1 -1
- package/types/triggers/handler_function_call.d.ts +60 -56
- package/types/triggers/handler_function_call_v2.d.ts +94 -79
- package/types/triggers/handler_onchain_event.d.ts +51 -47
- package/types/triggers/index.d.ts +64 -5
- package/types/triggers/trigger.d.ts +66 -31
- package/types/types/notification.d.ts +6 -6
- package/types/types/trigger.d.ts +24 -21
- package/types/types/types.d.ts +21 -18
- package/types/util/filter.d.ts +67 -40
@@ -199,7 +199,7 @@ export type HandlerFunctionCallV2RawResponse = {
|
|
199
199
|
abi: string[];
|
200
200
|
version: number;
|
201
201
|
};
|
202
|
-
export type Network = "avalanche" | "
|
202
|
+
export type Network = "ethereum" | "avalanche" | "bsc" | "polygon" | "fantom" | "optimism" | "arbitrum" | "canto";
|
203
203
|
export type TriggerConfig = PollFunctionV2 | PollFunctionV1 | OnchainEventV1;
|
204
204
|
export type TriggerTypeId = "PollFunctionV2" | "OnchainEventV1" | "PollFunctionV1";
|
205
205
|
export type TriggerUpdate = HandlerFunctionCallV2Update | HandlerFunctionCallUpdate | HandlerOnchainEventUpdate;
|
@@ -300,8 +300,8 @@ export declare class AlertBuilder {
|
|
300
300
|
* @param options Desired trigger configuration
|
301
301
|
* @returns self for piping
|
302
302
|
*/
|
303
|
-
withTrigger<
|
304
|
-
withNotification<
|
303
|
+
withTrigger<TTriggerTypeId extends TriggerTypeId>(id: TTriggerTypeId, options: TTriggerTypeId extends "PollFunctionV2" ? PollFunctionV2 : TTriggerTypeId extends "OnchainEventV1" ? OnchainEventV1 : TTriggerTypeId extends "PollFunctionV1" ? PollFunctionV1 : never): AlertBuilder;
|
304
|
+
withNotification<TNotificationTypeId extends NotificationTypeId>(id: TNotificationTypeId, options: TNotificationTypeId extends "Discord" ? DiscordWebhook : never): AlertBuilder;
|
305
305
|
validate(): Promise<{
|
306
306
|
username?: string | undefined;
|
307
307
|
avatar_url?: string | undefined;
|