@blocklet/sdk 1.16.43-beta-20250427-232837-e671de06 → 1.16.43-beta-20250430-124448-4edc5502

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.
@@ -1,4 +1,5 @@
1
1
  export interface TActivityTarget {
2
+ author?: any;
2
3
  desc?: any;
3
4
  id: string;
4
5
  image?: any;
@@ -96,7 +97,7 @@ export interface TNotificationActivity {
96
97
  actor: unknown;
97
98
  meta?: any;
98
99
  target: TActivityTarget;
99
- type: 'comment' | 'like' | 'follow' | 'tips' | 'mention' | 'assign';
100
+ type: 'comment' | 'like' | 'follow' | 'tips' | 'mention' | 'assign' | 'un_assign';
100
101
  }
101
102
  export interface TNotificationAttachment {
102
103
  data?: any;
@@ -13,6 +13,7 @@ declare const ACTIVITY_TYPES: {
13
13
  TIPS: string;
14
14
  MENTION: string;
15
15
  ASSIGN: string;
16
+ UN_ASSIGN: string;
16
17
  };
17
18
  declare const ACTIVITY_TARGET_TYPES: {
18
19
  DISCUSSION: string;
@@ -102,6 +103,7 @@ declare const _default: {
102
103
  TIPS: string;
103
104
  MENTION: string;
104
105
  ASSIGN: string;
106
+ UN_ASSIGN: string;
105
107
  };
106
108
  ACTIVITY_TARGET_TYPES: {
107
109
  DISCUSSION: string;
@@ -40,6 +40,7 @@ const ACTIVITY_TYPES = {
40
40
  TIPS: 'tips',
41
41
  MENTION: 'mention',
42
42
  ASSIGN: 'assign',
43
+ UN_ASSIGN: 'un_assign',
43
44
  };
44
45
  exports.ACTIVITY_TYPES = ACTIVITY_TYPES;
45
46
  const ACTIVITY_TARGET_TYPES = {
@@ -195,6 +196,11 @@ const activityTargetSchema = Joi.object({
195
196
  then: Joi.forbidden(),
196
197
  otherwise: Joi.string().allow('').optional(),
197
198
  }),
199
+ author: Joi.when('type', {
200
+ is: ACTIVITY_TARGET_TYPES.USER,
201
+ then: Joi.forbidden(),
202
+ otherwise: Joi.string().allow('').optional(),
203
+ }),
198
204
  image: Joi.when('type', {
199
205
  is: ACTIVITY_TARGET_TYPES.USER,
200
206
  then: Joi.forbidden(),
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.16.43-beta-20250427-232837-e671de06",
6
+ "version": "1.16.43-beta-20250430-124448-4edc5502",
7
7
  "description": "graphql client to read/write data on abt node",
8
8
  "main": "lib/index.js",
9
9
  "typings": "lib/index.d.ts",
@@ -27,23 +27,23 @@
27
27
  "author": "linchen1987 <linchen.1987@foxmail.com> (http://github.com/linchen1987)",
28
28
  "license": "Apache-2.0",
29
29
  "dependencies": {
30
- "@abtnode/client": "1.16.43-beta-20250427-232837-e671de06",
31
- "@abtnode/constant": "1.16.43-beta-20250427-232837-e671de06",
32
- "@abtnode/util": "1.16.43-beta-20250427-232837-e671de06",
33
- "@arcblock/did": "1.20.2",
34
- "@arcblock/did-auth": "1.20.2",
35
- "@arcblock/jwt": "1.20.2",
36
- "@arcblock/ws": "1.20.2",
37
- "@blocklet/constant": "1.16.43-beta-20250427-232837-e671de06",
38
- "@blocklet/env": "1.16.43-beta-20250427-232837-e671de06",
30
+ "@abtnode/client": "1.16.43-beta-20250430-124448-4edc5502",
31
+ "@abtnode/constant": "1.16.43-beta-20250430-124448-4edc5502",
32
+ "@abtnode/util": "1.16.43-beta-20250430-124448-4edc5502",
33
+ "@arcblock/did": "1.20.4",
34
+ "@arcblock/did-auth": "1.20.4",
35
+ "@arcblock/jwt": "1.20.4",
36
+ "@arcblock/ws": "1.20.4",
37
+ "@blocklet/constant": "1.16.43-beta-20250430-124448-4edc5502",
38
+ "@blocklet/env": "1.16.43-beta-20250430-124448-4edc5502",
39
39
  "@blocklet/error": "^0.2.4",
40
- "@blocklet/meta": "1.16.43-beta-20250427-232837-e671de06",
40
+ "@blocklet/meta": "1.16.43-beta-20250430-124448-4edc5502",
41
41
  "@did-connect/authenticator": "^2.2.7",
42
42
  "@did-connect/handler": "^2.2.7",
43
43
  "@nedb/core": "^2.1.5",
44
- "@ocap/mcrypto": "1.20.2",
45
- "@ocap/util": "1.20.2",
46
- "@ocap/wallet": "1.20.2",
44
+ "@ocap/mcrypto": "1.20.4",
45
+ "@ocap/util": "1.20.4",
46
+ "@ocap/wallet": "1.20.4",
47
47
  "axios": "^1.7.9",
48
48
  "cheerio": "1.0.0-rc.12",
49
49
  "debug": "^4.3.7",
@@ -83,5 +83,5 @@
83
83
  "ts-node": "^10.9.1",
84
84
  "typescript": "^5.6.3"
85
85
  },
86
- "gitHead": "3644f271b67d5ebaa7a8b852173860a005f1d057"
86
+ "gitHead": "9b59264b5dc2c9450161be5a0ee4cdb981687cd7"
87
87
  }