@abtnode/types 1.16.39-beta-20250218-132815-6baaf20e → 1.16.39-beta-20250220-212222-627e9ea7

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/rpc_pb.d.ts CHANGED
@@ -246,6 +246,19 @@ export type TResponseGetNotifications = {
246
246
  paging?: type_pb.TPaging;
247
247
  };
248
248
  export type TRequestNotificationSendLog = {
249
+ teamDid: string;
250
+ dateRange: string[];
251
+ paging?: type_pb.TPaging;
252
+ source: string;
253
+ componentDids: string[];
254
+ severities: string[];
255
+ };
256
+ export type TResponseNotificationSendLog = {
257
+ code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap];
258
+ list: type_pb.TNotification[];
259
+ paging?: type_pb.TPaging;
260
+ };
261
+ export type TRequestReceivers = {
249
262
  teamDid: string;
250
263
  userName: string;
251
264
  userDid: string;
@@ -254,10 +267,9 @@ export type TRequestNotificationSendLog = {
254
267
  emailSendStatus: number[];
255
268
  dateRange: string[];
256
269
  paging?: type_pb.TPaging;
257
- source: string;
258
- componentDids: string[];
270
+ notificationId: string;
259
271
  };
260
- export type TResponseNotificationSendLog = {
272
+ export type TResponseReceivers = {
261
273
  code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap];
262
274
  list: type_pb.TNotificationReceiver[];
263
275
  paging?: type_pb.TPaging;
@@ -272,9 +284,11 @@ export type TResponseNotificationComponents = {
272
284
  };
273
285
  export type TRequestResendNotification = {
274
286
  teamDid: string;
275
- notificationReceiverIds: string[];
287
+ notificationId: string;
288
+ receivers: string[];
276
289
  channels: string[];
277
290
  webhookUrls: string[];
291
+ resendFailedOnly: boolean;
278
292
  };
279
293
  export type TResponseResendNotification = {
280
294
  code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap];
package/lib/type_pb.d.ts CHANGED
@@ -492,6 +492,25 @@ export type TNotificationAction = {
492
492
  name: string;
493
493
  title: string;
494
494
  };
495
+ export type TStatistics = {
496
+ total: number;
497
+ pending: number;
498
+ success: number;
499
+ failed: number;
500
+ };
501
+ export type TWebhookStatistics = {
502
+ total: number;
503
+ pending: string[];
504
+ success: string[];
505
+ failed: string[];
506
+ };
507
+ export type TNotificationStatistics = {
508
+ total: number;
509
+ wallet?: TStatistics;
510
+ push?: TStatistics;
511
+ email?: TStatistics;
512
+ webhook?: TWebhookStatistics;
513
+ };
495
514
  export type TNotification = {
496
515
  sender: string;
497
516
  receiver: string;
@@ -513,6 +532,7 @@ export type TNotification = {
513
532
  receivers: TNotificationReceiver[];
514
533
  data?: Record<string, any>;
515
534
  feedType: string;
535
+ statistics?: TNotificationStatistics;
516
536
  };
517
537
  export interface NotificationSourceMap {
518
538
  SYSTEM: 0;
@@ -549,7 +569,6 @@ export type TNotificationReceiver = {
549
569
  emailSendStatus: number;
550
570
  emailSendAt: number;
551
571
  createdAt: number;
552
- notification?: TNotification;
553
572
  receiverUser?: TUserInfo;
554
573
  walletSendFailedReason: string;
555
574
  walletSendRecord: TNotificationSendRecord[];
@@ -1212,4 +1231,5 @@ export type TBlockletDocker = {
1212
1231
  dockerImage: string;
1213
1232
  dockerArgs: TDockerRunKeyValuePair[];
1214
1233
  dockerEnvs: TDockerEnvKeyValuePair[];
1234
+ dockerCommand: string;
1215
1235
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abtnode/types",
3
- "version": "1.16.39-beta-20250218-132815-6baaf20e",
3
+ "version": "1.16.39-beta-20250220-212222-627e9ea7",
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": "731bfe1a4ad07e92bd9e28fa1627648fbf485326"
39
+ "gitHead": "63bae9e50d76bf481eb2bf930f98ea672f645c50"
40
40
  }