@notifi-network/notifi-dataplane
Advanced tools
Comparing version 0.90.4 to 0.90.5
import { Types } from 'notifi-graphql/dist'; | ||
export interface FusionMessage { | ||
// If payload type undefined, fallback to default CommunityManagerJsonPayload | ||
export interface FusionMessage<T extends object = CommunityManagerJsonPayload> { | ||
eventTypeId: string; | ||
variablesJson: object | VariablesJsonPayload; | ||
variablesJson: VariablesJsonPayload<T>; | ||
specificWallets?: ReadonlyArray< | ||
@@ -14,8 +15,11 @@ Readonly<{ | ||
export type OptionalTargetType = 'Sms' | 'Telegram' | 'Discord' | 'Email'; | ||
export type VariablesJsonPayload<T extends object> = | ||
T extends CommunityManagerJsonPayload ? CommunityManagerJsonPayload : object; | ||
export type VariablesJsonPayload = { Platform: TargetVariables } & { | ||
export type CommunityManagerJsonPayload = { Platform: TargetVariables } & { | ||
[key in OptionalTargetType]?: TargetVariables; | ||
}; | ||
export type OptionalTargetType = 'Sms' | 'Telegram' | 'Discord' | 'Email'; | ||
/** | ||
@@ -22,0 +26,0 @@ * @param message - only plain text is supported. |
{ | ||
"name": "@notifi-network/notifi-dataplane", | ||
"version": "0.90.4", | ||
"version": "0.90.5", | ||
"description": "The Dataplane API for Notifi", | ||
@@ -25,3 +25,3 @@ "main": "./dist/index.js", | ||
"dependencies": { | ||
"@notifi-network/notifi-graphql": "^0.90.4" | ||
"@notifi-network/notifi-graphql": "^0.90.5" | ||
}, | ||
@@ -38,3 +38,3 @@ "repository": { | ||
"homepage": "https://github.com/notifi-network/notifi-sdk-ts#readme", | ||
"gitHead": "66aa45e6e8b75a7215f91a1f4e1c8e4cddd74d01" | ||
"gitHead": "a49faf2341f330137de0f48f0010bf034f071a2f" | ||
} |
Sorry, the diff of this file is too big to display
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
346132
7249
2