@abtnode/types 1.16.35 → 1.16.37-beta-20241224-013714-a79db7d3
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/lib/enum_pb.d.ts +12 -0
- package/lib/rpc_pb.d.ts +28 -2
- package/lib/type_pb.d.ts +51 -2
- package/package.json +2 -2
package/lib/enum_pb.d.ts
CHANGED
@@ -67,3 +67,15 @@ export interface ReleaseStatusMap {
|
|
67
67
|
DRAFT: 0;
|
68
68
|
PUBLISHED: 1;
|
69
69
|
}
|
70
|
+
export interface NotificationAttachmentTypeMap {
|
71
|
+
ASSET: 0;
|
72
|
+
VC: 1;
|
73
|
+
TOKEN: 2;
|
74
|
+
TEXT: 3;
|
75
|
+
IMAGE: 4;
|
76
|
+
DIVIDER: 5;
|
77
|
+
TRANSACTION: 6;
|
78
|
+
DAPP: 7;
|
79
|
+
LINK: 8;
|
80
|
+
SECTION: 9;
|
81
|
+
}
|
package/lib/rpc_pb.d.ts
CHANGED
@@ -231,6 +231,10 @@ export type TRequestGetNotifications = {
|
|
231
231
|
sender: string;
|
232
232
|
read: boolean;
|
233
233
|
paging?: type_pb.TPaging;
|
234
|
+
severity: string;
|
235
|
+
componentDid: string;
|
236
|
+
entityId: string;
|
237
|
+
pageSize: number;
|
234
238
|
};
|
235
239
|
export type TResponseGetNotifications = {
|
236
240
|
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap];
|
@@ -238,27 +242,49 @@ export type TResponseGetNotifications = {
|
|
238
242
|
paging?: type_pb.TPaging;
|
239
243
|
};
|
240
244
|
export type TRequestReadNotifications = {
|
241
|
-
|
245
|
+
notificationIds: string[];
|
246
|
+
receiver: string;
|
242
247
|
};
|
243
248
|
export type TResponseReadNotifications = {
|
244
249
|
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap];
|
245
250
|
numAffected: number;
|
246
251
|
};
|
252
|
+
export type TRequestMakeAllAsRead = {
|
253
|
+
id: string;
|
254
|
+
receiver: string;
|
255
|
+
};
|
256
|
+
export type TResponseMakeAllAsRead = {
|
257
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap];
|
258
|
+
numAffected: number;
|
259
|
+
};
|
247
260
|
export type TRequestGetBlockletNotifications = {
|
248
261
|
receiver: string;
|
249
262
|
sender: string;
|
250
263
|
read: boolean;
|
251
264
|
paging?: type_pb.TPaging;
|
252
265
|
teamDid: string;
|
266
|
+
severity: string;
|
267
|
+
componentDid: string;
|
268
|
+
entityId: string;
|
269
|
+
pageSize: number;
|
253
270
|
};
|
254
271
|
export type TResponseGetBlockletNotifications = {
|
255
272
|
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap];
|
256
273
|
list: type_pb.TNotification[];
|
257
274
|
paging?: type_pb.TPaging;
|
258
275
|
};
|
276
|
+
export type TRequestMakeAllBlockletNotificationsAsRead = {
|
277
|
+
receiver: string;
|
278
|
+
teamDid: string;
|
279
|
+
};
|
280
|
+
export type TResponseMakeAllBlockletNotificationsAsRead = {
|
281
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap];
|
282
|
+
numAffected: number;
|
283
|
+
};
|
259
284
|
export type TRequestReadBlockletNotifications = {
|
260
|
-
|
285
|
+
notificationIds: string[];
|
261
286
|
teamDid: string;
|
287
|
+
receiver: string;
|
262
288
|
};
|
263
289
|
export type TResponseReadBlockletNotifications = {
|
264
290
|
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap];
|
package/lib/type_pb.d.ts
CHANGED
@@ -473,6 +473,18 @@ export type TBlockletHistoryItem = {
|
|
473
473
|
cpu: number;
|
474
474
|
mem: number;
|
475
475
|
};
|
476
|
+
export type TNotificationAttachment = {
|
477
|
+
data?: Record<string, any>;
|
478
|
+
fields?: Record<string, any>;
|
479
|
+
type: enum_pb.NotificationAttachmentTypeMap[keyof enum_pb.NotificationAttachmentTypeMap];
|
480
|
+
};
|
481
|
+
export type TNotificationAction = {
|
482
|
+
bgcolor: string;
|
483
|
+
color: string;
|
484
|
+
link: string;
|
485
|
+
name: string;
|
486
|
+
title: string;
|
487
|
+
};
|
476
488
|
export type TNotification = {
|
477
489
|
sender: string;
|
478
490
|
receiver: string;
|
@@ -483,9 +495,46 @@ export type TNotification = {
|
|
483
495
|
entityId: string;
|
484
496
|
read: boolean;
|
485
497
|
createdAt: number;
|
486
|
-
updatedAt: number;
|
487
498
|
id: string;
|
488
|
-
severity:
|
499
|
+
severity: Notification.NotificationSeverityMap[keyof Notification.NotificationSeverityMap];
|
500
|
+
source: Notification.NotificationSourceMap[keyof Notification.NotificationSourceMap];
|
501
|
+
attachments: TNotificationAttachment[];
|
502
|
+
blocks: TNotificationAttachment[];
|
503
|
+
actions: TNotificationAction[];
|
504
|
+
componentDid: string;
|
505
|
+
type: Notification.NotificationTypeMap[keyof Notification.NotificationTypeMap];
|
506
|
+
receivers: TNotificationReceiver[];
|
507
|
+
};
|
508
|
+
export interface NotificationSourceMap {
|
509
|
+
SYSTEM: 0;
|
510
|
+
COMPONENT: 1;
|
511
|
+
}
|
512
|
+
export interface NotificationTypeMap {
|
513
|
+
NOTIFICATION: 0;
|
514
|
+
CONNECT: 1;
|
515
|
+
FEED: 2;
|
516
|
+
HI: 3;
|
517
|
+
PASSTHROUGH: 4;
|
518
|
+
}
|
519
|
+
export interface NotificationSeverityMap {
|
520
|
+
INFO: 0;
|
521
|
+
SUCCESS: 1;
|
522
|
+
ERROR: 2;
|
523
|
+
WARNING: 3;
|
524
|
+
}
|
525
|
+
export type TNotificationReceiver = {
|
526
|
+
id: string;
|
527
|
+
notificationId: string;
|
528
|
+
receiver: string;
|
529
|
+
read: boolean;
|
530
|
+
readAt: number;
|
531
|
+
walletSendStatus: number;
|
532
|
+
walletSendAt: number;
|
533
|
+
pushKitSendStatus: number;
|
534
|
+
pushKitSendAt: number;
|
535
|
+
emailSendStatus: number;
|
536
|
+
emailSendAt: number;
|
537
|
+
createdAt: number;
|
489
538
|
};
|
490
539
|
export type TRoutingRuleResponse = {
|
491
540
|
status: number;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@abtnode/types",
|
3
|
-
"version": "1.16.
|
3
|
+
"version": "1.16.37-beta-20241224-013714-a79db7d3",
|
4
4
|
"description": "Typescript definitions generated from protobuf",
|
5
5
|
"keywords": [
|
6
6
|
"abtnode",
|
@@ -36,5 +36,5 @@
|
|
36
36
|
"bugs": {
|
37
37
|
"url": "https://github.com/ArcBlock/abt-node/issues"
|
38
38
|
},
|
39
|
-
"gitHead": "
|
39
|
+
"gitHead": "040363d1ac077f7d4b4ee29e6c3bfc3e61c3ce3f"
|
40
40
|
}
|