@builder6/server 0.6.2 → 0.6.3

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.
@@ -17,7 +17,7 @@ export declare class RoomsController {
17
17
  getUsers(userIds: string | string[]): Promise<any[]>;
18
18
  searchUsers(req: Request, keyword: string, roomdId: string): Promise<string[]>;
19
19
  getThreads(roomId: string): Promise<{
20
- data: import("mongodb").WithId<import("bson").Document>[];
20
+ data: any;
21
21
  inboxNotifications: any[];
22
22
  meta: {
23
23
  nextCursor: any;
@@ -30,7 +30,7 @@ export declare class RoomsController {
30
30
  deletedInboxNotifications: any[];
31
31
  }>;
32
32
  getThreadsDelta(roomId: string, since: string): Promise<{
33
- data: import("mongodb").WithId<import("bson").Document>[];
33
+ data: any;
34
34
  inboxNotifications: any[];
35
35
  meta: {
36
36
  nextCursor: any;
@@ -44,10 +44,10 @@ export declare class RoomsController {
44
44
  }>;
45
45
  createThread(req: Request, roomId: string, record: Record<string, any>): Promise<any>;
46
46
  threadWithNotification(req: Request, roomId: string, threadId: string): Promise<{
47
- thread: import("mongodb").WithId<import("bson").Document>;
47
+ thread: any;
48
48
  }>;
49
- threadMarkasResolved(req: Request, roomId: string, threadId: string): Promise<import("mongodb").WithId<import("bson").Document>>;
50
- threadMarkasUnResolved(req: Request, roomId: string, threadId: string): Promise<import("mongodb").WithId<import("bson").Document>>;
49
+ threadMarkasResolved(req: Request, roomId: string, threadId: string): Promise<any>;
50
+ threadMarkasUnResolved(req: Request, roomId: string, threadId: string): Promise<any>;
51
51
  createComment(req: Request, roomId: string, threadId: string, record: Record<string, any>): Promise<any>;
52
52
  updateComment(req: Request, roomId: string, threadId: string, commentId: string, record: Record<string, any>): Promise<any>;
53
53
  deleteComment(req: Request, roomId: string, threadId: string, commentId: string): Promise<{}>;
@@ -28,14 +28,14 @@ export declare class RoomsService {
28
28
  getAttachmentById(attachmentId: string): Promise<Attachment>;
29
29
  getUsers(userIds: string | string[]): Promise<any[]>;
30
30
  searchUsers(spaceId: string, keyword: string, roomId: string): Promise<string[]>;
31
- getThread(roomId: string, threadId: string): Promise<import("mongodb").WithId<import("bson").Document>>;
32
- getThreads(roomId: string, since?: Date): Promise<import("mongodb").WithId<import("bson").Document>[]>;
33
- getComments(roomId: string, threadId: string): Promise<import("mongodb").WithId<import("bson").Document>[]>;
31
+ getThread(roomId: string, threadId: string): Promise<any>;
32
+ getThreads(roomId: string, since?: Date): Promise<any>;
33
+ getComments(roomId: string, threadId: string): Promise<any>;
34
34
  createThread({ id, comment, metadata, resolved, roomId, userId, }: CreateThreadParams): Promise<any>;
35
- updateThread(threadId: any, thread?: CreateThreadParams): Promise<import("mongodb").WithId<import("bson").Document>>;
35
+ updateThread(threadId: any, thread?: CreateThreadParams): Promise<any>;
36
36
  createComment({ id, attachmentIds, body, roomId, threadId, userId, }: CreateCommentParams): Promise<any>;
37
37
  updateComment(commentId: any, { attachmentIds, body, userId }: CreateCommentParams): Promise<any>;
38
- deleteComment(commentId: any): Promise<import("mongodb").DeleteResult>;
38
+ deleteComment(commentId: any): Promise<any>;
39
39
  createReaction(commentId: string, { userId, emoji }: {
40
40
  userId: string;
41
41
  emoji: string;
@@ -2,5 +2,5 @@ import { MongodbService } from '@builder6/core';
2
2
  export declare class ObjectService {
3
3
  private readonly mongodbService;
4
4
  constructor(mongodbService: MongodbService);
5
- getObject(objectName: string): Promise<import("mongodb").WithId<import("bson").Document>>;
5
+ getObject(objectName: string): Promise<any>;
6
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder6/server",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "AGPL-3.0-only",
@@ -29,11 +29,11 @@
29
29
  "test:e2e": "jest --config ./test/jest-e2e.json"
30
30
  },
31
31
  "dependencies": {
32
- "@builder6/core": "^0.6.2",
33
- "@builder6/email": "^0.6.2",
32
+ "@builder6/core": "^0.6.3",
33
+ "@builder6/email": "^0.6.3",
34
34
  "@builder6/moleculer": "^0.6.2",
35
- "@builder6/query-mongodb": "^0.6.2",
36
- "@builder6/tables": "^0.6.2",
35
+ "@builder6/query-mongodb": "^0.6.3",
36
+ "@builder6/tables": "^0.6.3",
37
37
  "@nestjs/common": "^9.0.0",
38
38
  "@nestjs/config": "^3.3.0",
39
39
  "@nestjs/core": "^9.0.0",
@@ -60,7 +60,7 @@
60
60
  "ioredis": "^5.4.1",
61
61
  "mime-types": "^2.1.35",
62
62
  "moleculer": "^0.14.35",
63
- "mongodb": "^5.2.0",
63
+ "mongodb": "^3.7.3",
64
64
  "multer": "^1.4.5-lts.1",
65
65
  "nopt": "5.0.0",
66
66
  "openid-client": "^5.7.1",
@@ -115,5 +115,5 @@
115
115
  "publishConfig": {
116
116
  "access": "public"
117
117
  },
118
- "gitHead": "f5089b43c088503955ab42d08d9c22d05ffe257a"
118
+ "gitHead": "95072e46086936653f20eafe111f229d4f751c84"
119
119
  }