@notifi-network/notifi-dataplane
Advanced tools
Comparing version 2.1.1-alpha.7 to 2.2.1-alpha.3
import { Types } from 'notifi-graphql/dist'; | ||
// If payload type undefined, fallback to object by default | ||
export interface FusionMessage<T extends object = object> { | ||
export interface FusionMessage { | ||
eventTypeId: string; | ||
variablesJson: VariablesJsonPayload<T>; | ||
variablesJson: object; | ||
idempotencyKey?: string; | ||
specificWallets?: ReadonlyArray< | ||
@@ -16,26 +14,1 @@ Readonly<{ | ||
} | ||
export type VariablesJsonPayload<T extends object> = | ||
T extends CommunityManagerJsonPayload ? CommunityManagerJsonPayload : object; | ||
export type CommunityManagerJsonPayload = { | ||
campaignId: string; | ||
Platform: TargetVariables; | ||
} & { | ||
[key in OptionalTargetType]?: TargetVariables; | ||
}; | ||
export type OptionalTargetType = 'Sms' | 'Telegram' | 'Discord' | 'Email'; | ||
/** | ||
* @param message - only plain text is supported. | ||
* @param message__markdown - markdown string here will be converted to html. | ||
* @param sourceMessage - usually to be html format source. | ||
*/ | ||
export type TargetVariables = { | ||
subject?: string; | ||
message?: string; | ||
message__markdown?: string; | ||
sourceMessage?: string; | ||
[key: string]: string | undefined; | ||
}; |
{ | ||
"name": "@notifi-network/notifi-dataplane", | ||
"version": "2.1.1-alpha.7+ac678e3e", | ||
"version": "2.2.1-alpha.3+e0dd1924", | ||
"description": "The Dataplane API for Notifi", | ||
@@ -25,3 +25,3 @@ "main": "./dist/index.js", | ||
"dependencies": { | ||
"@notifi-network/notifi-graphql": "^2.1.1-alpha.7+ac678e3e" | ||
"@notifi-network/notifi-graphql": "^2.2.1-alpha.3+e0dd1924" | ||
}, | ||
@@ -38,3 +38,3 @@ "repository": { | ||
"homepage": "https://github.com/notifi-network/notifi-sdk-ts#readme", | ||
"gitHead": "ac678e3edfada599cf8e5947685d9c4c1a38f85f" | ||
"gitHead": "e0dd1924061d75a5b4494a2d12a495d82391ac34" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
978744
9496
+ Added@notifi-network/notifi-graphql@2.2.1-alpha.15(transitive)
- Removed@notifi-network/notifi-graphql@2.1.1-alpha.7(transitive)
Updated@notifi-network/notifi-graphql@^2.2.1-alpha.3+e0dd1924