@abtnode/types
Advanced tools
Comparing version 1.16.36 to 1.16.37-beta-20241224-013714-a79db7d3
@@ -70,1 +70,13 @@ // package: abt_node | ||
} | ||
export interface NotificationAttachmentTypeMap { | ||
ASSET: 0; | ||
VC: 1; | ||
TOKEN: 2; | ||
TEXT: 3; | ||
IMAGE: 4; | ||
DIVIDER: 5; | ||
TRANSACTION: 6; | ||
DAPP: 7; | ||
LINK: 8; | ||
SECTION: 9; | ||
} |
@@ -234,2 +234,6 @@ // package: abt_node | ||
paging?: type_pb.TPaging; | ||
severity: string; | ||
componentDid: string; | ||
entityId: string; | ||
pageSize: number; | ||
}; | ||
@@ -242,3 +246,4 @@ export type TResponseGetNotifications = { | ||
export type TRequestReadNotifications = { | ||
id: string; | ||
notificationIds: string[]; | ||
receiver: string; | ||
}; | ||
@@ -249,2 +254,10 @@ export type TResponseReadNotifications = { | ||
}; | ||
export type TRequestMakeAllAsRead = { | ||
id: string; | ||
receiver: string; | ||
}; | ||
export type TResponseMakeAllAsRead = { | ||
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap]; | ||
numAffected: number; | ||
}; | ||
export type TRequestGetBlockletNotifications = { | ||
@@ -256,2 +269,6 @@ receiver: string; | ||
teamDid: string; | ||
severity: string; | ||
componentDid: string; | ||
entityId: string; | ||
pageSize: number; | ||
}; | ||
@@ -263,5 +280,14 @@ export type TResponseGetBlockletNotifications = { | ||
}; | ||
export type TRequestMakeAllBlockletNotificationsAsRead = { | ||
receiver: string; | ||
teamDid: string; | ||
}; | ||
export type TResponseMakeAllBlockletNotificationsAsRead = { | ||
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap]; | ||
numAffected: number; | ||
}; | ||
export type TRequestReadBlockletNotifications = { | ||
id: string; | ||
notificationIds: string[]; | ||
teamDid: string; | ||
receiver: string; | ||
}; | ||
@@ -268,0 +294,0 @@ export type TResponseReadBlockletNotifications = { |
@@ -476,2 +476,14 @@ // package: abt_node | ||
}; | ||
export type TNotificationAttachment = { | ||
data?: Record<string, any>; | ||
fields?: Record<string, any>; | ||
type: enum_pb.NotificationAttachmentTypeMap[keyof enum_pb.NotificationAttachmentTypeMap]; | ||
}; | ||
export type TNotificationAction = { | ||
bgcolor: string; | ||
color: string; | ||
link: string; | ||
name: string; | ||
title: string; | ||
}; | ||
export type TNotification = { | ||
@@ -487,6 +499,43 @@ sender: string; | ||
createdAt: number; | ||
updatedAt: number; | ||
id: string; | ||
severity: string; | ||
severity: Notification.NotificationSeverityMap[keyof Notification.NotificationSeverityMap]; | ||
source: Notification.NotificationSourceMap[keyof Notification.NotificationSourceMap]; | ||
attachments: TNotificationAttachment[]; | ||
blocks: TNotificationAttachment[]; | ||
actions: TNotificationAction[]; | ||
componentDid: string; | ||
type: Notification.NotificationTypeMap[keyof Notification.NotificationTypeMap]; | ||
receivers: TNotificationReceiver[]; | ||
}; | ||
export interface NotificationSourceMap { | ||
SYSTEM: 0; | ||
COMPONENT: 1; | ||
} | ||
export interface NotificationTypeMap { | ||
NOTIFICATION: 0; | ||
CONNECT: 1; | ||
FEED: 2; | ||
HI: 3; | ||
PASSTHROUGH: 4; | ||
} | ||
export interface NotificationSeverityMap { | ||
INFO: 0; | ||
SUCCESS: 1; | ||
ERROR: 2; | ||
WARNING: 3; | ||
} | ||
export type TNotificationReceiver = { | ||
id: string; | ||
notificationId: string; | ||
receiver: string; | ||
read: boolean; | ||
readAt: number; | ||
walletSendStatus: number; | ||
walletSendAt: number; | ||
pushKitSendStatus: number; | ||
pushKitSendAt: number; | ||
emailSendStatus: number; | ||
emailSendAt: number; | ||
createdAt: number; | ||
}; | ||
export type TRoutingRuleResponse = { | ||
@@ -493,0 +542,0 @@ status: number; |
{ | ||
"name": "@abtnode/types", | ||
"version": "1.16.36", | ||
"version": "1.16.37-beta-20241224-013714-a79db7d3", | ||
"description": "Typescript definitions generated from protobuf", | ||
@@ -39,3 +39,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "2d70fa8a2f68de49e1d5718e693ec6b1bdcad15e" | ||
"gitHead": "040363d1ac077f7d4b4ee29e6c3bfc3e61c3ce3f" | ||
} |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
57883
2349
2