@blocklet/sdk 1.16.43-beta-20250427-132304-6da95c55 → 1.16.43-beta-20250429-130236-269254ff
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-
|
|
6
|
+
"version": "1.16.43-beta-20250429-130236-269254ff",
|
|
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,17 +27,17 @@
|
|
|
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-
|
|
31
|
-
"@abtnode/constant": "1.16.43-beta-
|
|
32
|
-
"@abtnode/util": "1.16.43-beta-
|
|
30
|
+
"@abtnode/client": "1.16.43-beta-20250429-130236-269254ff",
|
|
31
|
+
"@abtnode/constant": "1.16.43-beta-20250429-130236-269254ff",
|
|
32
|
+
"@abtnode/util": "1.16.43-beta-20250429-130236-269254ff",
|
|
33
33
|
"@arcblock/did": "1.20.2",
|
|
34
34
|
"@arcblock/did-auth": "1.20.2",
|
|
35
35
|
"@arcblock/jwt": "1.20.2",
|
|
36
36
|
"@arcblock/ws": "1.20.2",
|
|
37
|
-
"@blocklet/constant": "1.16.43-beta-
|
|
38
|
-
"@blocklet/env": "1.16.43-beta-
|
|
37
|
+
"@blocklet/constant": "1.16.43-beta-20250429-130236-269254ff",
|
|
38
|
+
"@blocklet/env": "1.16.43-beta-20250429-130236-269254ff",
|
|
39
39
|
"@blocklet/error": "^0.2.4",
|
|
40
|
-
"@blocklet/meta": "1.16.43-beta-
|
|
40
|
+
"@blocklet/meta": "1.16.43-beta-20250429-130236-269254ff",
|
|
41
41
|
"@did-connect/authenticator": "^2.2.7",
|
|
42
42
|
"@did-connect/handler": "^2.2.7",
|
|
43
43
|
"@nedb/core": "^2.1.5",
|
|
@@ -83,5 +83,5 @@
|
|
|
83
83
|
"ts-node": "^10.9.1",
|
|
84
84
|
"typescript": "^5.6.3"
|
|
85
85
|
},
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "0826633a53695ac92965f8993e46985259adb65f"
|
|
87
87
|
}
|