web-dc-api 0.0.21 → 0.0.22

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.
@@ -52,3 +52,4 @@ export enum ThemePermission {
52
52
  /** 查询权限,系统可以查询数据,用户只能查询自己的授权数据 */
53
53
  QUERY
54
54
  }
55
+
@@ -298,3 +298,5 @@ export {
298
298
  PrefixTransform,
299
299
  }
300
300
 
301
+ // Add a default export
302
+ export default TransformedDatastore;
@@ -9,7 +9,7 @@ export interface ICommentOperations {
9
9
  /**
10
10
  * 为指定主题开通评论功能
11
11
  * @param theme 主题/对象标识符
12
- * @param openFlag 开放标志 0-公开 1-私密
12
+ * @param openFlag 开放标志 0-公开 1-私密 2-鉴权
13
13
  * @param commentSpace 可选,评论空间上限大小(字节),默认50MB
14
14
  * @returns 操作结果 0:成功 1:评论空间没有配置 2:评论空间不足 3:评论数据同步中
15
15
  */
@@ -56,8 +56,8 @@ export interface ICommentOperations {
56
56
  themeAuthor: string,
57
57
  commentType: number,
58
58
  comment: string,
59
- refercommentkey?: string,
60
- openFlag?: number
59
+ openFlag?: number,
60
+ refercommentkey?: string
61
61
  ): Promise<[string | null, Error | null]>;
62
62
 
63
63
  /**
@@ -151,8 +151,8 @@ async addUserOffChainOpTimes(
151
151
  themeAuthor: string,
152
152
  commentType: number,
153
153
  comment: string,
154
- refercommentkey?: string,
155
- openFlag?: number
154
+ openFlag?: number,
155
+ refercommentkey?: string
156
156
  ): Promise<[string | null, Error | null]> {
157
157
  this.assertInitialized();
158
158
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "web-dc-api",
3
- "version": "0.0.21",
3
+ "version": "0.0.22",
4
4
  "description": "web相关的dcapi",
5
5
  "type": "module",
6
6
  "browser": "dist/dc.min.js",