@notifi-network/notifi-core
Advanced tools
Comparing version 0.3.0 to 0.3.1-alpha.0
@@ -5,2 +5,2 @@ export * from './models'; | ||
export * from './NotifiService'; | ||
//# sourceMappingURL=index.d.ts.map | ||
//# sourceMappingURL=index.d.ts.map |
@@ -16,2 +16,3 @@ import { Filter } from './Filter'; | ||
* @property {TargetGroup} targetGroup - The targetGroup associated with this alert | ||
* @property {string | null} groupName - The group associated with this alert | ||
* | ||
@@ -26,3 +27,4 @@ */ | ||
targetGroup: TargetGroup; | ||
groupName: string | null; | ||
}>; | ||
//# sourceMappingURL=Alert.d.ts.map |
import { Alert, Filter, Source, TargetGroup, User } from './models'; | ||
export declare type ClientData = Readonly<{ | ||
alerts: ReadonlyArray<Alert>; | ||
filters: ReadonlyArray<Filter>; | ||
sources: ReadonlyArray<Source>; | ||
targetGroups: ReadonlyArray<TargetGroup>; | ||
alerts: ReadonlyArray<Alert>; | ||
filters: ReadonlyArray<Filter>; | ||
sources: ReadonlyArray<Source>; | ||
targetGroups: ReadonlyArray<TargetGroup>; | ||
}>; | ||
@@ -23,6 +23,6 @@ /** | ||
export declare type ClientUpdateAlertInput = Readonly<{ | ||
alertId: string; | ||
emailAddress: string | null; | ||
phoneNumber: string | null; | ||
telegramId: string | null; | ||
alertId: string; | ||
emailAddress: string | null; | ||
phoneNumber: string | null; | ||
telegramId: string | null; | ||
}>; | ||
@@ -46,28 +46,28 @@ /** | ||
export declare type ClientCreateAlertInput = Readonly<{ | ||
name: string; | ||
sourceId: string; | ||
filterId: string; | ||
filterOptions?: FilterOptions; | ||
emailAddress: string | null; | ||
phoneNumber: string | null; | ||
telegramId: string | null; | ||
name: string; | ||
sourceId: string; | ||
filterId: string; | ||
filterOptions?: FilterOptions; | ||
emailAddress: string | null; | ||
phoneNumber: string | null; | ||
telegramId: string | null; | ||
}>; | ||
export declare type EmptyFilterOptions = Record<never, never>; | ||
export declare type ThresholdFilterOptions = Readonly<{ | ||
threshold: number; | ||
threshold: number; | ||
}>; | ||
export declare type FilterOptions = EmptyFilterOptions | ThresholdFilterOptions; | ||
export declare type ClientDeleteAlertInput = Readonly<{ | ||
alertId: string; | ||
alertId: string; | ||
}>; | ||
export declare type MessageSigner = Readonly<{ | ||
signMessage: (message: Uint8Array) => Promise<Uint8Array>; | ||
signMessage: (message: Uint8Array) => Promise<Uint8Array>; | ||
}>; | ||
export declare type NotifiClient = Readonly<{ | ||
fetchData: () => Promise<ClientData>; | ||
logIn: (signer: MessageSigner) => Promise<User>; | ||
createAlert: (input: ClientCreateAlertInput) => Promise<Alert>; | ||
deleteAlert: (input: ClientDeleteAlertInput) => Promise<string>; | ||
updateAlert: (input: ClientUpdateAlertInput) => Promise<Alert>; | ||
fetchData: () => Promise<ClientData>; | ||
logIn: (signer: MessageSigner) => Promise<User>; | ||
createAlert: (input: ClientCreateAlertInput) => Promise<Alert>; | ||
deleteAlert: (input: ClientDeleteAlertInput) => Promise<string>; | ||
updateAlert: (input: ClientUpdateAlertInput) => Promise<Alert>; | ||
}>; | ||
//# sourceMappingURL=NotifiClient.d.ts.map | ||
//# sourceMappingURL=NotifiClient.d.ts.map |
import * as Operations from './operations'; | ||
export declare type NotifiService = Operations.CreateAlertService & | ||
Operations.CreateEmailTargetService & | ||
Operations.CreateSmsTargetService & | ||
Operations.CreateSourceGroupService & | ||
Operations.CreateTargetGroupService & | ||
Operations.CreateTelegramTargetService & | ||
Operations.DeleteAlertService & | ||
Operations.DeleteSourceGroupService & | ||
Operations.DeleteTargetGroupService & | ||
Operations.GetAlertsService & | ||
Operations.GetEmailTargetsService & | ||
Operations.GetFiltersService & | ||
Operations.GetSmsTargetsService & | ||
Operations.GetSourcesService & | ||
Operations.GetSourceGroupsService & | ||
Operations.GetTargetGroupsService & | ||
Operations.GetTelegramTargetsService & | ||
Operations.LogInFromDappService & | ||
Operations.UpdateTargetGroupService & | ||
Readonly<{ | ||
export declare type NotifiService = Operations.CreateAlertService & Operations.CreateEmailTargetService & Operations.CreateSmsTargetService & Operations.CreateSourceGroupService & Operations.CreateTargetGroupService & Operations.CreateTelegramTargetService & Operations.DeleteAlertService & Operations.DeleteSourceGroupService & Operations.DeleteTargetGroupService & Operations.GetAlertsService & Operations.GetEmailTargetsService & Operations.GetFiltersService & Operations.GetSmsTargetsService & Operations.GetSourcesService & Operations.GetSourceGroupsService & Operations.GetTargetGroupsService & Operations.GetTelegramTargetsService & Operations.LogInFromDappService & Operations.UpdateTargetGroupService & Readonly<{ | ||
setJwt: (jwt: string | null) => void; | ||
}>; | ||
//# sourceMappingURL=NotifiService.d.ts.map | ||
}>; | ||
//# sourceMappingURL=NotifiService.d.ts.map |
@@ -8,2 +8,3 @@ import { Alert, Operation } from '../models'; | ||
filterOptions: string; | ||
groupName?: string; | ||
}>; | ||
@@ -10,0 +11,0 @@ export declare type CreateAlertResult = Alert; |
{ | ||
"name": "@notifi-network/notifi-core", | ||
"version": "0.3.0", | ||
"version": "0.3.1-alpha.0+c2888ce", | ||
"description": "The interfaces for the core functionality provided by the SDK", | ||
@@ -39,3 +39,3 @@ "author": "Juni Kim <73hKrn@gmail.com>", | ||
}, | ||
"gitHead": "83acf641ca85c0a058b58b631369fe16f75446c3" | ||
"gitHead": "c2888ce9105e2e3fe180fc7892cef638141ada35" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
82685
572
1