@abtnode/types 1.16.38-beta-20250123-083218-c7ea9693 → 1.16.38-beta-20250125-130409-89d4849d

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 CHANGED
@@ -79,3 +79,20 @@ export interface NotificationAttachmentTypeMap {
79
79
  LINK: 8;
80
80
  SECTION: 9;
81
81
  }
82
+ export interface NotificationSendStatusMap {
83
+ PENDING: 0;
84
+ SENT: 1;
85
+ FAILED: 2;
86
+ }
87
+ export interface NotificationSendFailedReasonMap {
88
+ USER_DISABLED: 0;
89
+ CHANNEL_UNAVAILABLE: 1;
90
+ CHANNEL_DISABLED: 2;
91
+ NOT_ONLINE: 3;
92
+ }
93
+ export interface NotificationSendChannelMap {
94
+ APP: 0;
95
+ EMAIL: 1;
96
+ PUSH: 2;
97
+ WEBHOOK: 3;
98
+ }
package/lib/rpc_pb.d.ts CHANGED
@@ -245,10 +245,10 @@ export type TRequestNotificationSendLog = {
245
245
  teamDid: string;
246
246
  userName: string;
247
247
  userDid: string;
248
- walletSendStatus: number;
249
- pushKitSendStatus: number;
250
- emailSendStatus: number;
251
- senderAt: string;
248
+ walletSendStatus: number[];
249
+ pushKitSendStatus: number[];
250
+ emailSendStatus: number[];
251
+ dateRange: string[];
252
252
  paging?: type_pb.TPaging;
253
253
  };
254
254
  export type TResponseNotificationSendLog = {
@@ -264,6 +264,16 @@ export type TResponseNotificationComponents = {
264
264
  code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap];
265
265
  componentDids: string[];
266
266
  };
267
+ export type TRequestResendNotification = {
268
+ teamDid: string;
269
+ notificationReceiverIds: string[];
270
+ channels: string[];
271
+ webhookUrls: string[];
272
+ };
273
+ export type TResponseResendNotification = {
274
+ code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap];
275
+ data?: Record<string, any>;
276
+ };
267
277
  export type TRequestMakeAllNotificationsAsRead = {
268
278
  receiver: string;
269
279
  teamDid: string;
package/lib/type_pb.d.ts CHANGED
@@ -531,6 +531,11 @@ export interface NotificationSeverityMap {
531
531
  ERROR: 2;
532
532
  WARNING: 3;
533
533
  }
534
+ export type TNotificationSendRecord = {
535
+ sendStatus: number;
536
+ sendAt: number;
537
+ failedReason: string;
538
+ };
534
539
  export type TNotificationReceiver = {
535
540
  id: string;
536
541
  notificationId: string;
@@ -545,6 +550,14 @@ export type TNotificationReceiver = {
545
550
  emailSendAt: number;
546
551
  createdAt: number;
547
552
  notification?: TNotification;
553
+ receiverUser?: TUserInfo;
554
+ walletSendFailedReason: string;
555
+ walletSendRecord: TNotificationSendRecord[];
556
+ pushKitSendFailedReason: string;
557
+ pushKitSendRecord: TNotificationSendRecord[];
558
+ emailSendFailedReason: string;
559
+ emailSendRecord: TNotificationSendRecord[];
560
+ webhook?: Record<string, any>;
548
561
  };
549
562
  export type TRoutingRuleResponse = {
550
563
  status: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abtnode/types",
3
- "version": "1.16.38-beta-20250123-083218-c7ea9693",
3
+ "version": "1.16.38-beta-20250125-130409-89d4849d",
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": "7a5401105e25590871ad579ade72ab3097cc29ba"
39
+ "gitHead": "670d44366731900eec59f5e63a7c384eba6f22ae"
40
40
  }