@messenger-box/platform-server 10.0.3-alpha.7 → 10.0.3-alpha.74
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/config/env-config.d.ts +7 -0
- package/lib/config/env-config.js +20 -0
- package/lib/config/env-config.js.map +1 -1
- package/lib/containers/containers.js +9 -1
- package/lib/containers/containers.js.map +1 -1
- package/lib/containers/context-services-from-container.d.ts +1 -1
- package/lib/containers/context-services-from-container.js +4 -2
- package/lib/containers/context-services-from-container.js.map +1 -1
- package/lib/graphql/resolvers/ai-fragment.d.ts +3 -0
- package/lib/graphql/resolvers/ai-fragment.js +276 -0
- package/lib/graphql/resolvers/ai-fragment.js.map +1 -0
- package/lib/graphql/resolvers/channel-member.d.ts +3 -2
- package/lib/graphql/resolvers/channel-member.js +30 -5
- package/lib/graphql/resolvers/channel-member.js.map +1 -1
- package/lib/graphql/resolvers/channel.d.ts +3 -2
- package/lib/graphql/resolvers/channel.js +308 -53
- package/lib/graphql/resolvers/channel.js.map +1 -1
- package/lib/graphql/resolvers/extended-token-account.d.ts +3 -2
- package/lib/graphql/resolvers/extended-token-account.js +90 -23
- package/lib/graphql/resolvers/extended-token-account.js.map +1 -1
- package/lib/graphql/resolvers/index.d.ts +1 -1
- package/lib/graphql/resolvers/index.js +1 -1
- package/lib/graphql/resolvers/index.js.map +1 -1
- package/lib/graphql/resolvers/post-thread.d.ts +1 -1
- package/lib/graphql/resolvers/post-thread.js +294 -132
- package/lib/graphql/resolvers/post-thread.js.map +1 -1
- package/lib/graphql/resolvers/post.d.ts +2 -3
- package/lib/graphql/resolvers/post.js +874 -239
- package/lib/graphql/resolvers/post.js.map +1 -1
- package/lib/graphql/resolvers/reaction.d.ts +3 -2
- package/lib/graphql/resolvers/reaction.js +96 -14
- package/lib/graphql/resolvers/reaction.js.map +1 -1
- package/lib/graphql/schema/ai-fragment.graphql +311 -0
- package/lib/graphql/schema/ai-fragment.graphql.js +1 -0
- package/lib/graphql/schema/ai-fragment.graphql.js.map +1 -0
- package/lib/graphql/schema/channel-member.graphql +110 -21
- package/lib/graphql/schema/channel-member.graphql.js +1 -1
- package/lib/graphql/schema/channel.graphql +356 -38
- package/lib/graphql/schema/channel.graphql.js +1 -1
- package/lib/graphql/schema/index.js +2 -2
- package/lib/graphql/schema/index.js.map +1 -1
- package/lib/graphql/schema/post-thread.graphql +167 -21
- package/lib/graphql/schema/post-thread.graphql.js +1 -1
- package/lib/graphql/schema/post.graphql +360 -40
- package/lib/graphql/schema/post.graphql.js +1 -1
- package/lib/graphql/schema/reaction.graphql +71 -13
- package/lib/graphql/schema/reaction.graphql.js +1 -1
- package/lib/graphql/schema/services.graphql +21 -0
- package/lib/graphql/schema/users.graphql +76 -13
- package/lib/graphql/schema/users.graphql.js +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/inngest/factory.d.ts +20 -0
- package/lib/inngest/factory.js +4 -0
- package/lib/inngest/factory.js.map +1 -0
- package/lib/inngest/functions.d.ts +235 -0
- package/lib/inngest/functions.js +1385 -0
- package/lib/inngest/functions.js.map +1 -0
- package/lib/inngest/index.d.ts +3 -0
- package/lib/inngest/prompt.d.ts +6 -0
- package/lib/inngest/prompt.js +871 -0
- package/lib/inngest/prompt.js.map +1 -0
- package/lib/inngest/utils.d.ts +5 -0
- package/lib/inngest/utils.js +32 -0
- package/lib/inngest/utils.js.map +1 -0
- package/lib/interfaces/index.d.ts +0 -1
- package/lib/interfaces/services.d.ts +1 -1
- package/lib/migrations/dbMigrations/AddPostsConfigurationsMigration.d.ts +17 -0
- package/lib/migrations/dbMigrations/AddPostsConfigurationsMigration.js +44 -0
- package/lib/migrations/dbMigrations/AddPostsConfigurationsMigration.js.map +1 -0
- package/lib/migrations/dbMigrations/index.d.ts +1 -0
- package/lib/migrations/index.d.ts +1 -0
- package/lib/migrations/mail-template-migration.js +1 -1
- package/lib/migrations/message-notification-template-migration.d.ts +1 -1
- package/lib/migrations/message-notification-template-migration.js +1 -1
- package/lib/module.js +10 -3
- package/lib/module.js.map +1 -1
- package/lib/plugins/ai-fragment-moleculer-service.d.ts +29 -0
- package/lib/plugins/ai-fragment-moleculer-service.js +516 -0
- package/lib/plugins/ai-fragment-moleculer-service.js.map +1 -0
- package/lib/plugins/channel-moleculer-service.d.ts +21 -1
- package/lib/plugins/channel-moleculer-service.js +426 -115
- package/lib/plugins/channel-moleculer-service.js.map +1 -1
- package/lib/plugins/extended-token-account-moleculer-service.d.ts +25 -1
- package/lib/plugins/extended-token-account-moleculer-service.js +348 -22
- package/lib/plugins/extended-token-account-moleculer-service.js.map +1 -1
- package/lib/plugins/index.d.ts +1 -0
- package/lib/plugins/messenger-notification-moleculer-service.d.ts +27 -3
- package/lib/plugins/messenger-notification-moleculer-service.js +404 -58
- package/lib/plugins/messenger-notification-moleculer-service.js.map +1 -1
- package/lib/plugins/post-moleculer-service.d.ts +85 -21
- package/lib/plugins/post-moleculer-service.js +1102 -256
- package/lib/plugins/post-moleculer-service.js.map +1 -1
- package/lib/plugins/post-thread-moleculer-service.d.ts +33 -1
- package/lib/plugins/post-thread-moleculer-service.js +326 -8
- package/lib/plugins/post-thread-moleculer-service.js.map +1 -1
- package/lib/plugins/reaction-moleculer-service.js +1 -1
- package/lib/plugins/reaction-moleculer-service.js.map +1 -1
- package/lib/preferences/settings/post-settings.d.ts +2 -0
- package/lib/preferences/settings/post-settings.js +47 -9
- package/lib/preferences/settings/post-settings.js.map +1 -1
- package/lib/services/ai-fragment-service.d.ts +195 -0
- package/lib/services/ai-fragment-service.js +631 -0
- package/lib/services/ai-fragment-service.js.map +1 -0
- package/lib/services/channel-service.d.ts +181 -33
- package/lib/services/channel-service.js +842 -273
- package/lib/services/channel-service.js.map +1 -1
- package/lib/services/extended-token-account-service.d.ts +130 -14
- package/lib/services/extended-token-account-service.js +462 -52
- package/lib/services/extended-token-account-service.js.map +1 -1
- package/lib/services/index.d.ts +3 -0
- package/lib/services/messenger-notification-service.d.ts +106 -13
- package/lib/services/messenger-notification-service.js +824 -442
- package/lib/services/messenger-notification-service.js.map +1 -1
- package/lib/services/post-service.d.ts +189 -16
- package/lib/services/post-service.js +949 -113
- package/lib/services/post-service.js.map +1 -1
- package/lib/services/post-thread-service.d.ts +114 -5
- package/lib/services/post-thread-service.js +400 -13
- package/lib/services/post-thread-service.js.map +1 -1
- package/lib/services/proxy-services/ai-fragment-microservice.d.ts +23 -0
- package/lib/services/proxy-services/ai-fragment-microservice.js +78 -0
- package/lib/services/proxy-services/ai-fragment-microservice.js.map +1 -0
- package/lib/services/proxy-services/channel-microservice.d.ts +6 -3
- package/lib/services/proxy-services/channel-microservice.js +25 -10
- package/lib/services/proxy-services/channel-microservice.js.map +1 -1
- package/lib/services/proxy-services/index.d.ts +1 -0
- package/lib/services/proxy-services/messenger-notification-microservice.d.ts +128 -8
- package/lib/services/proxy-services/messenger-notification-microservice.js +324 -29
- package/lib/services/proxy-services/messenger-notification-microservice.js.map +1 -1
- package/lib/services/proxy-services/post-microservice.d.ts +207 -12
- package/lib/services/proxy-services/post-microservice.js +623 -54
- package/lib/services/proxy-services/post-microservice.js.map +1 -1
- package/lib/services/proxy-services/post-thread-microservice.d.ts +134 -3
- package/lib/services/proxy-services/post-thread-microservice.js +388 -6
- package/lib/services/proxy-services/post-thread-microservice.js.map +1 -1
- package/lib/services/proxy-services/reaction-microservice.d.ts +161 -3
- package/lib/services/proxy-services/reaction-microservice.js +474 -2
- package/lib/services/proxy-services/reaction-microservice.js.map +1 -1
- package/lib/services/reaction-service.d.ts +124 -4
- package/lib/services/reaction-service.js +415 -3
- package/lib/services/reaction-service.js.map +1 -1
- package/lib/services/redis-cache-manager.d.ts +18 -0
- package/lib/services/redis-cache-manager.js +83 -0
- package/lib/services/redis-cache-manager.js.map +1 -0
- package/lib/services/sandbox-error-service.d.ts +23 -0
- package/lib/services/sandbox-error-service.js +422 -0
- package/lib/services/sandbox-error-service.js.map +1 -0
- package/lib/store/models/account-token-store.d.ts +1 -1
- package/lib/store/models/account-token-store.js.map +1 -1
- package/lib/store/models/ai-fragment.d.ts +4 -0
- package/lib/store/models/ai-fragment.js +125 -0
- package/lib/store/models/ai-fragment.js.map +1 -0
- package/lib/store/models/channel.d.ts +2 -3
- package/lib/store/models/channel.js +185 -71
- package/lib/store/models/channel.js.map +1 -1
- package/lib/store/models/index.d.ts +1 -0
- package/lib/store/models/post-thread.d.ts +3 -3
- package/lib/store/models/post-thread.js +96 -14
- package/lib/store/models/post-thread.js.map +1 -1
- package/lib/store/models/post.d.ts +2 -3
- package/lib/store/models/post.js +143 -23
- package/lib/store/models/post.js.map +1 -1
- package/lib/store/models/reaction.d.ts +2 -3
- package/lib/store/models/reaction.js +67 -8
- package/lib/store/models/reaction.js.map +1 -1
- package/lib/store/repositories/__tests__/__fixtures__/team-repository.d.ts +3 -3
- package/lib/store/repositories/ai-fragment-repository.d.ts +15 -0
- package/lib/store/repositories/ai-fragment-repository.js +69 -0
- package/lib/store/repositories/ai-fragment-repository.js.map +1 -0
- package/lib/store/repositories/channel-repository.d.ts +6 -6
- package/lib/store/repositories/channel-repository.js +5 -2
- package/lib/store/repositories/channel-repository.js.map +1 -1
- package/lib/store/repositories/index.d.ts +1 -0
- package/lib/store/repositories/post-repository.d.ts +6 -6
- package/lib/store/repositories/post-repository.js +5 -2
- package/lib/store/repositories/post-repository.js.map +1 -1
- package/lib/store/repositories/post-thread-repository.d.ts +6 -6
- package/lib/store/repositories/post-thread-repository.js +5 -2
- package/lib/store/repositories/post-thread-repository.js.map +1 -1
- package/lib/store/repositories/reaction-repository.d.ts +6 -6
- package/lib/store/repositories/reaction-repository.js +5 -2
- package/lib/store/repositories/reaction-repository.js.map +1 -1
- package/lib/templates/constants/SERVER_TYPES.ts.template +4 -4
- package/lib/templates/repositories/AiFragmentRepository.ts.template +4 -0
- package/lib/templates/repositories/ChannelRepository.ts.template +3 -3
- package/lib/templates/repositories/PostRepository.ts.template +3 -3
- package/lib/templates/repositories/PostThreadRepository.ts.template +3 -3
- package/lib/templates/repositories/ReactionRepository.ts.template +3 -4
- package/lib/templates/services/AiFragmentService.ts.template +123 -0
- package/lib/templates/services/ChannelService.ts.template +290 -39
- package/lib/templates/services/ExtendedTokenAccountService.ts.template +104 -9
- package/lib/templates/services/MessengerNotificationService.ts.template +94 -19
- package/lib/templates/services/PostService.ts.template +265 -20
- package/lib/templates/services/PostThreadService.ts.template +151 -6
- package/lib/templates/services/ReactionService.ts.template +129 -3
- package/lib/templates/services/RedisCacheManager.ts.template +22 -0
- package/lib/templates/services/SandboxErrorService.ts.template +125 -0
- package/package.json +14 -7
- package/lib/interfaces/context.d.ts +0 -14
- package/lib/store/models/common-options.js +0 -20
- package/lib/store/models/common-options.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
var channelMember = "
|
|
1
|
+
var channelMember = "\"\"\"\nChannel Member: Represents a member of a channel with their roles and notification preferences\n\"\"\"\ntype ChannelMember implements IBaseRepo @entity {\n \"\"\"\n Unique identifier for the channel member\n \"\"\"\n id: ID! @id\n\n \"\"\"\n The user account associated with this channel membership\n \"\"\"\n user: UserAccount @column(overrideType: \"ObjectId\")\n\n \"\"\"\n Member roles in the channel\n \"\"\"\n roles: String @column\n\n \"\"\"\n Total message count for this member\n \"\"\"\n msgCount: Int @column\n\n \"\"\"\n Count of mentions for this member\n \"\"\"\n mentionCount: Int @column\n\n \"\"\"\n Count of root message mentions for this member\n \"\"\"\n mentionCountRoot: Int @column\n\n \"\"\"\n Count of root messages for this member\n \"\"\"\n msgCountRoot: Int @column\n\n \"\"\"\n Notification preferences\n \"\"\"\n notifyProps: AnyObject @column\n\n \"\"\"\n Explicitly assigned roles\n \"\"\"\n explicitRoles: String @column\n\n \"\"\"\n Whether the member has admin privileges in the channel's scheme\n \"\"\"\n schemeAdmin: Boolean @column\n\n \"\"\"\n Timestamp of last channel view\n \"\"\"\n lastViewedAt: DateTime @column(overrideType: \"Date\")\n\n \"\"\"\n Last update timestamp\n \"\"\"\n updatedAt: DateTime @column(overrideType: \"Date\")\n\n \"\"\"\n Creation timestamp\n \"\"\"\n createdAt: DateTime @column(overrideType: \"Date\")\n\n \"\"\"\n Deletion timestamp\n \"\"\"\n deletedAt: DateTime @column(overrideType: \"Date\")\n}\n\n\"\"\"\nInput type for creating or updating a channel member\n\"\"\"\ninput ChannelMemberInput {\n \"\"\"\n ID of the user to be added as channel member\n \"\"\"\n userId: String!\n\n \"\"\"\n Roles to assign to the member\n \"\"\"\n roles: String\n\n \"\"\"\n Notification preferences for the member\n \"\"\"\n notifyProps: AnyObject\n\n \"\"\"\n Whether the member has guest privileges\n \"\"\"\n schemeGuest: Boolean\n\n \"\"\"\n Whether the member has user privileges\n \"\"\"\n schemeUser: Boolean\n\n \"\"\"\n Whether the member has admin privileges\n \"\"\"\n schemeAdmin: Boolean\n\n \"\"\"\n Explicitly assigned roles\n \"\"\"\n explicitRoles: String\n}\n";export{channelMember as default};//# sourceMappingURL=channel-member.graphql.js.map
|
|
@@ -1,139 +1,457 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
"""
|
|
2
|
+
Channel: A communication channel within an organization or team.
|
|
3
|
+
"""
|
|
4
|
+
type Channel implements IBaseRepo @entity {
|
|
5
|
+
"""
|
|
6
|
+
Unique identifier for the channel
|
|
7
|
+
"""
|
|
8
|
+
id: String! @id
|
|
9
|
+
|
|
10
|
+
"""
|
|
11
|
+
Channel title/name
|
|
12
|
+
"""
|
|
13
|
+
title: String @column
|
|
14
|
+
|
|
15
|
+
"""
|
|
16
|
+
Channel topic
|
|
17
|
+
"""
|
|
18
|
+
topic: String @column
|
|
19
|
+
|
|
20
|
+
"""
|
|
21
|
+
Organization name
|
|
22
|
+
"""
|
|
23
|
+
organization: Organization! @column(overrideType: "ObjectId")
|
|
24
|
+
orgName: String @column
|
|
25
|
+
|
|
26
|
+
"""
|
|
27
|
+
Channel purpose
|
|
28
|
+
"""
|
|
29
|
+
purpose: String @column
|
|
30
|
+
|
|
31
|
+
"""
|
|
32
|
+
Channel description
|
|
33
|
+
"""
|
|
34
|
+
description: String @column
|
|
35
|
+
|
|
36
|
+
"""
|
|
37
|
+
Display name
|
|
38
|
+
"""
|
|
39
|
+
displayName: String @column
|
|
40
|
+
|
|
41
|
+
"""
|
|
42
|
+
Associated team
|
|
43
|
+
"""
|
|
44
|
+
team: AccountTeam @column(overrideType: "ObjectId")
|
|
45
|
+
|
|
46
|
+
"""
|
|
47
|
+
Last post timestamp
|
|
48
|
+
"""
|
|
49
|
+
lastPostAt: DateTime @column(overrideType: "Date")
|
|
50
|
+
|
|
51
|
+
"""
|
|
52
|
+
Total message count
|
|
53
|
+
"""
|
|
54
|
+
totalMsgCount: Int @column
|
|
55
|
+
|
|
56
|
+
"""
|
|
57
|
+
Total root message count
|
|
58
|
+
"""
|
|
59
|
+
totalMsgCountRoot: Int @column
|
|
60
|
+
|
|
61
|
+
"""
|
|
62
|
+
Channel creator
|
|
63
|
+
"""
|
|
64
|
+
creator: UserAccount @column(overrideType: "ObjectId")
|
|
65
|
+
|
|
66
|
+
"""
|
|
67
|
+
Channel members
|
|
68
|
+
"""
|
|
69
|
+
members: [ChannelMember] @column(overrideType: "ObjectId[]")
|
|
70
|
+
|
|
71
|
+
"""
|
|
72
|
+
Channel type
|
|
73
|
+
"""
|
|
74
|
+
type: String @column
|
|
75
|
+
|
|
76
|
+
"""
|
|
77
|
+
Last message in the channel
|
|
78
|
+
"""
|
|
79
|
+
lastMessage: Post @column(overrideType: "ObjectId")
|
|
80
|
+
|
|
81
|
+
"""
|
|
82
|
+
Project ID
|
|
83
|
+
"""
|
|
84
|
+
projectId: String @column(overrideType: "ObjectId")
|
|
85
|
+
|
|
86
|
+
"""
|
|
87
|
+
Creation timestamp
|
|
88
|
+
"""
|
|
89
|
+
createdAt: DateTime @column(overrideType: "Date")
|
|
90
|
+
|
|
91
|
+
"""
|
|
92
|
+
Last update timestamp
|
|
93
|
+
"""
|
|
94
|
+
updatedAt: DateTime @column(overrideType: "Date")
|
|
95
|
+
|
|
96
|
+
"""
|
|
97
|
+
Deletion timestamp
|
|
98
|
+
"""
|
|
99
|
+
deletedAt: DateTime @column(overrideType: "Date")
|
|
19
100
|
}
|
|
20
101
|
|
|
102
|
+
"""
|
|
103
|
+
Channel unread message information
|
|
104
|
+
"""
|
|
21
105
|
type ChannelUnread {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
106
|
+
"""
|
|
107
|
+
Team identifier
|
|
108
|
+
"""
|
|
109
|
+
teamId: String
|
|
110
|
+
|
|
111
|
+
"""
|
|
112
|
+
Channel identifier
|
|
113
|
+
"""
|
|
114
|
+
channelId: String
|
|
115
|
+
|
|
116
|
+
"""
|
|
117
|
+
Unread message count
|
|
118
|
+
"""
|
|
119
|
+
msgCount: Int
|
|
120
|
+
|
|
121
|
+
"""
|
|
122
|
+
Mention count
|
|
123
|
+
"""
|
|
124
|
+
mentionCount: Int
|
|
125
|
+
|
|
126
|
+
"""
|
|
127
|
+
Root mention count
|
|
128
|
+
"""
|
|
26
129
|
mentionCountRoot: Int
|
|
27
|
-
|
|
28
|
-
|
|
130
|
+
|
|
131
|
+
"""
|
|
132
|
+
Root message count
|
|
133
|
+
"""
|
|
134
|
+
msgCountRoot: Int
|
|
135
|
+
|
|
136
|
+
"""
|
|
137
|
+
Notification properties
|
|
138
|
+
"""
|
|
139
|
+
notifyProps: AnyObject
|
|
29
140
|
}
|
|
30
141
|
|
|
31
|
-
|
|
142
|
+
"""
|
|
143
|
+
Channel filter input for queries
|
|
144
|
+
"""
|
|
32
145
|
input ChannelFilterInput {
|
|
146
|
+
"""
|
|
147
|
+
Filter by name
|
|
148
|
+
"""
|
|
33
149
|
nameFilter: String
|
|
150
|
+
|
|
151
|
+
"""
|
|
152
|
+
Filter by privacy level
|
|
153
|
+
"""
|
|
34
154
|
privacy: ChannelPrivacy
|
|
155
|
+
|
|
156
|
+
"""
|
|
157
|
+
Filter joined channels only
|
|
158
|
+
"""
|
|
35
159
|
joinedChannels: Boolean
|
|
160
|
+
|
|
161
|
+
"""
|
|
162
|
+
Sort order
|
|
163
|
+
"""
|
|
36
164
|
storyBy: ChannelSort
|
|
37
165
|
}
|
|
38
166
|
|
|
167
|
+
"""
|
|
168
|
+
Channel name and direct message input
|
|
169
|
+
"""
|
|
39
170
|
input ChannelNameAndDirect {
|
|
171
|
+
"""
|
|
172
|
+
Channel name
|
|
173
|
+
"""
|
|
40
174
|
name: String!
|
|
175
|
+
|
|
176
|
+
"""
|
|
177
|
+
Is direct message
|
|
178
|
+
"""
|
|
41
179
|
direct: Boolean!
|
|
42
180
|
}
|
|
43
181
|
|
|
182
|
+
"""
|
|
183
|
+
Channel create request input
|
|
184
|
+
"""
|
|
185
|
+
input ChannelCreateRequest {
|
|
186
|
+
"""
|
|
187
|
+
Channel name
|
|
188
|
+
"""
|
|
189
|
+
name: String!
|
|
190
|
+
|
|
191
|
+
"""
|
|
192
|
+
Channel description
|
|
193
|
+
"""
|
|
194
|
+
description: String!
|
|
195
|
+
|
|
196
|
+
"""
|
|
197
|
+
Channel type
|
|
198
|
+
"""
|
|
199
|
+
type: RoomType
|
|
200
|
+
|
|
201
|
+
"""
|
|
202
|
+
Associated team
|
|
203
|
+
"""
|
|
204
|
+
team: String
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
"""
|
|
208
|
+
Channel update request input
|
|
209
|
+
"""
|
|
210
|
+
input ChannelUpdateRequest {
|
|
211
|
+
"""
|
|
212
|
+
Channel ID
|
|
213
|
+
"""
|
|
214
|
+
id: ID!
|
|
215
|
+
|
|
216
|
+
"""
|
|
217
|
+
Channel title
|
|
218
|
+
"""
|
|
219
|
+
title: String
|
|
220
|
+
|
|
221
|
+
"""
|
|
222
|
+
Channel description
|
|
223
|
+
"""
|
|
224
|
+
description: String
|
|
225
|
+
|
|
226
|
+
"""
|
|
227
|
+
Channel type
|
|
228
|
+
"""
|
|
229
|
+
type: RoomType
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
"""
|
|
233
|
+
Direct channel create request input
|
|
234
|
+
"""
|
|
235
|
+
input DirectChannelCreateRequest {
|
|
236
|
+
"""
|
|
237
|
+
Receiver user IDs
|
|
238
|
+
"""
|
|
239
|
+
receiver: [ID]!
|
|
240
|
+
|
|
241
|
+
"""
|
|
242
|
+
Display name
|
|
243
|
+
"""
|
|
244
|
+
displayName: String!
|
|
245
|
+
|
|
246
|
+
"""
|
|
247
|
+
Channel options
|
|
248
|
+
"""
|
|
249
|
+
channelOptions: AnyObject
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
"""
|
|
253
|
+
Channel sorting options
|
|
254
|
+
"""
|
|
44
255
|
enum ChannelSort {
|
|
256
|
+
"""
|
|
257
|
+
Sort by name
|
|
258
|
+
"""
|
|
45
259
|
NAME
|
|
260
|
+
|
|
261
|
+
"""
|
|
262
|
+
Sort by number of messages
|
|
263
|
+
"""
|
|
46
264
|
NUMBER_OF_MESSAGES
|
|
47
265
|
}
|
|
48
266
|
|
|
267
|
+
"""
|
|
268
|
+
Channel privacy levels
|
|
269
|
+
"""
|
|
49
270
|
enum ChannelPrivacy {
|
|
271
|
+
"""
|
|
272
|
+
Private channels
|
|
273
|
+
"""
|
|
50
274
|
PRIVATE
|
|
275
|
+
|
|
276
|
+
"""
|
|
277
|
+
Public channels
|
|
278
|
+
"""
|
|
51
279
|
PUBLIC
|
|
280
|
+
|
|
281
|
+
"""
|
|
282
|
+
All channels
|
|
283
|
+
"""
|
|
52
284
|
ALL
|
|
53
285
|
}
|
|
54
286
|
|
|
287
|
+
"""
|
|
288
|
+
Room/Channel types
|
|
289
|
+
"""
|
|
55
290
|
enum RoomType {
|
|
56
291
|
"""
|
|
57
292
|
SERVICE Channel with number of users - Only members from same organization
|
|
58
293
|
"""
|
|
59
294
|
SERVICE
|
|
295
|
+
|
|
296
|
+
"""
|
|
297
|
+
AI Assistant channels
|
|
298
|
+
"""
|
|
299
|
+
AIASSISTANT
|
|
300
|
+
|
|
60
301
|
"""
|
|
61
302
|
Normal Channel with number of users - Only members from same organization
|
|
62
303
|
"""
|
|
63
304
|
CHANNEL
|
|
305
|
+
|
|
64
306
|
"""
|
|
65
307
|
Direct User to User conversations, with two or more participants - Only members from same organization
|
|
66
308
|
"""
|
|
67
309
|
DIRECT
|
|
310
|
+
|
|
68
311
|
"""
|
|
69
312
|
Channels with Private Visibility - Only members from same organization
|
|
70
313
|
"""
|
|
71
314
|
PRIVATE
|
|
315
|
+
|
|
72
316
|
"""
|
|
73
317
|
Channels with Public Visibility - Members from other organizations can join
|
|
74
318
|
"""
|
|
75
319
|
PUBLIC
|
|
76
320
|
|
|
77
|
-
|
|
321
|
+
"""
|
|
322
|
+
Group channels
|
|
323
|
+
"""
|
|
78
324
|
GROUP
|
|
325
|
+
|
|
326
|
+
"""
|
|
327
|
+
Visitor channels
|
|
328
|
+
"""
|
|
79
329
|
VISITOR
|
|
80
330
|
}
|
|
81
331
|
|
|
332
|
+
input ChannelInput {
|
|
333
|
+
content: String!
|
|
334
|
+
files: [ID!]
|
|
335
|
+
createdBy: ID
|
|
336
|
+
notificationParams: ExpoNotificationData
|
|
337
|
+
modelConfig: AnyObject
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
|
|
82
341
|
extend type Query {
|
|
342
|
+
"""
|
|
343
|
+
Get channel by name
|
|
344
|
+
"""
|
|
83
345
|
channelByName(name: String!): Channel @addAccountContext @isAuthenticated
|
|
346
|
+
|
|
347
|
+
"""
|
|
348
|
+
Get channels with filtering
|
|
349
|
+
"""
|
|
84
350
|
channels(filter: ChannelFilterInput = {
|
|
85
351
|
privacy: ALL,
|
|
86
352
|
joinedChannels: false,
|
|
87
353
|
sortyBy: NAME
|
|
88
354
|
}): [Channel] @addAccountContext @isAuthenticated
|
|
355
|
+
|
|
356
|
+
"""
|
|
357
|
+
Get channels by user with criteria
|
|
358
|
+
"""
|
|
89
359
|
channelsByUser(
|
|
90
360
|
role: String
|
|
91
|
-
criteria:AnyObject,
|
|
92
|
-
limit:Int,
|
|
93
|
-
skip:Int,
|
|
94
|
-
sort:Sort
|
|
361
|
+
criteria: AnyObject,
|
|
362
|
+
limit: Int,
|
|
363
|
+
skip: Int,
|
|
364
|
+
sort: Sort
|
|
95
365
|
): [Channel] @addAccountContext @isAuthenticated
|
|
366
|
+
|
|
367
|
+
"""
|
|
368
|
+
Get support service channels
|
|
369
|
+
"""
|
|
96
370
|
supportServiceChannels(
|
|
97
371
|
role: String
|
|
98
|
-
criteria:AnyObject,
|
|
99
|
-
limit:Int,
|
|
100
|
-
skip:Int,
|
|
101
|
-
sort:Sort
|
|
372
|
+
criteria: AnyObject,
|
|
373
|
+
limit: Int,
|
|
374
|
+
skip: Int,
|
|
375
|
+
sort: Sort
|
|
102
376
|
): [Channel] @addAccountContext @isAuthenticated
|
|
377
|
+
|
|
378
|
+
"""
|
|
379
|
+
Get direct channel by ID
|
|
380
|
+
"""
|
|
103
381
|
directChannel(id: ID!): Channel @addAccountContext @isAuthenticated
|
|
382
|
+
|
|
383
|
+
"""
|
|
384
|
+
View channel detail
|
|
385
|
+
"""
|
|
104
386
|
viewChannelDetail(id: String): Channel @addAccountContext @isAuthenticated
|
|
105
|
-
# viewChannelDetail(id: String!): Channel @addAccountContext @isAuthenticated
|
|
106
387
|
}
|
|
107
388
|
|
|
108
389
|
extend type Mutation {
|
|
390
|
+
"""
|
|
391
|
+
Create a new channel
|
|
392
|
+
"""
|
|
109
393
|
createChannel(
|
|
110
394
|
name: String!,
|
|
111
|
-
description:String!
|
|
395
|
+
description: String!
|
|
112
396
|
type: RoomType
|
|
113
397
|
team: String
|
|
114
398
|
): Channel @addAccountContext @isAuthenticated
|
|
115
399
|
|
|
400
|
+
"""
|
|
401
|
+
Add member to channel
|
|
402
|
+
"""
|
|
116
403
|
addMemberToChannel(
|
|
117
404
|
channelId: String!,
|
|
118
405
|
memberId: String!
|
|
119
406
|
): Channel @addAccountContext @isAuthenticated
|
|
120
407
|
|
|
408
|
+
"""
|
|
409
|
+
Save multiple members to channel
|
|
410
|
+
"""
|
|
121
411
|
saveMembersToChannel(
|
|
122
412
|
membersIds: [String]!
|
|
123
413
|
channelId: String!,
|
|
124
414
|
): Channel @addAccountContext @isAuthenticated
|
|
125
415
|
|
|
416
|
+
"""
|
|
417
|
+
Create direct message channel
|
|
418
|
+
"""
|
|
126
419
|
createDirectChannel(
|
|
127
420
|
receiver: [ID]!
|
|
128
421
|
displayName: String!
|
|
129
|
-
channelOptions:AnyObject
|
|
422
|
+
channelOptions: AnyObject
|
|
130
423
|
): Channel @addAccountContext @isAuthenticated
|
|
131
424
|
|
|
425
|
+
"""
|
|
426
|
+
Hide channel from user view
|
|
427
|
+
"""
|
|
132
428
|
hideChannel(id: ID!): Boolean @isAuthenticated
|
|
133
429
|
|
|
430
|
+
"""
|
|
431
|
+
Leave channel
|
|
432
|
+
"""
|
|
134
433
|
leaveChannel(id: ID!): Boolean @isAuthenticated
|
|
135
434
|
|
|
136
|
-
|
|
435
|
+
"""
|
|
436
|
+
View/mark channel as read
|
|
437
|
+
"""
|
|
438
|
+
viewChannel(id: ID!): Boolean! @isAuthenticated @addAccountContext
|
|
137
439
|
|
|
440
|
+
"""
|
|
441
|
+
Delete channel
|
|
442
|
+
"""
|
|
138
443
|
deleteChannel(id: ID!): Boolean @isAuthenticated
|
|
444
|
+
|
|
445
|
+
"""
|
|
446
|
+
Send notification of unread messages
|
|
447
|
+
"""
|
|
448
|
+
sendNotificationOfUnreadMessages(
|
|
449
|
+
unit: String!
|
|
450
|
+
value: Int!
|
|
451
|
+
): Boolean @addAccountContext @isAuthenticated
|
|
452
|
+
|
|
453
|
+
"""
|
|
454
|
+
Create channel with project ID
|
|
455
|
+
"""
|
|
456
|
+
createChannelWithProjectId(projectId: String!,channelInput: ChannelInput!): Boolean! @isAuthenticated @addAccountContext
|
|
139
457
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var channelSchema = "
|
|
1
|
+
var channelSchema = "\"\"\"\nChannel: A communication channel within an organization or team.\n\"\"\"\ntype Channel implements IBaseRepo @entity {\n \"\"\"\n Unique identifier for the channel\n \"\"\"\n id: String! @id\n \n \"\"\"\n Channel title/name\n \"\"\"\n title: String @column\n \n \"\"\"\n Channel topic\n \"\"\"\n topic: String @column\n \n \"\"\"\n Organization name\n \"\"\"\n organization: Organization! @column(overrideType: \"ObjectId\")\n orgName: String @column\n \n \"\"\"\n Channel purpose\n \"\"\"\n purpose: String @column\n \n \"\"\"\n Channel description\n \"\"\"\n description: String @column\n \n \"\"\"\n Display name\n \"\"\"\n displayName: String @column\n \n \"\"\"\n Associated team\n \"\"\"\n team: AccountTeam @column(overrideType: \"ObjectId\")\n \n \"\"\"\n Last post timestamp\n \"\"\"\n lastPostAt: DateTime @column(overrideType: \"Date\")\n \n \"\"\"\n Total message count\n \"\"\"\n totalMsgCount: Int @column\n \n \"\"\"\n Total root message count\n \"\"\"\n totalMsgCountRoot: Int @column\n \n \"\"\"\n Channel creator\n \"\"\"\n creator: UserAccount @column(overrideType: \"ObjectId\")\n \n \"\"\"\n Channel members\n \"\"\"\n members: [ChannelMember] @column(overrideType: \"ObjectId[]\")\n \n \"\"\"\n Channel type\n \"\"\"\n type: String @column\n \n \"\"\"\n Last message in the channel\n \"\"\"\n lastMessage: Post @column(overrideType: \"ObjectId\")\n\n \"\"\"\n Project ID\n \"\"\"\n projectId: String @column(overrideType: \"ObjectId\")\n \n \"\"\"\n Creation timestamp\n \"\"\"\n createdAt: DateTime @column(overrideType: \"Date\")\n \n \"\"\"\n Last update timestamp\n \"\"\"\n updatedAt: DateTime @column(overrideType: \"Date\")\n \n \"\"\"\n Deletion timestamp\n \"\"\"\n deletedAt: DateTime @column(overrideType: \"Date\")\n}\n\n\"\"\"\nChannel unread message information\n\"\"\"\ntype ChannelUnread {\n \"\"\"\n Team identifier\n \"\"\"\n teamId: String\n \n \"\"\"\n Channel identifier\n \"\"\"\n channelId: String\n \n \"\"\"\n Unread message count\n \"\"\"\n msgCount: Int\n \n \"\"\"\n Mention count\n \"\"\"\n mentionCount: Int\n \n \"\"\"\n Root mention count\n \"\"\"\n mentionCountRoot: Int\n \n \"\"\"\n Root message count\n \"\"\"\n msgCountRoot: Int\n \n \"\"\"\n Notification properties\n \"\"\"\n notifyProps: AnyObject\n}\n\n\"\"\"\nChannel filter input for queries\n\"\"\"\ninput ChannelFilterInput {\n \"\"\"\n Filter by name\n \"\"\"\n nameFilter: String\n \n \"\"\"\n Filter by privacy level\n \"\"\"\n privacy: ChannelPrivacy\n \n \"\"\"\n Filter joined channels only\n \"\"\"\n joinedChannels: Boolean\n \n \"\"\"\n Sort order\n \"\"\"\n storyBy: ChannelSort\n}\n\n\"\"\"\nChannel name and direct message input\n\"\"\"\ninput ChannelNameAndDirect {\n \"\"\"\n Channel name\n \"\"\"\n name: String!\n \n \"\"\"\n Is direct message\n \"\"\"\n direct: Boolean!\n}\n\n\"\"\"\nChannel create request input\n\"\"\"\ninput ChannelCreateRequest {\n \"\"\"\n Channel name\n \"\"\"\n name: String!\n \n \"\"\"\n Channel description\n \"\"\"\n description: String!\n \n \"\"\"\n Channel type\n \"\"\"\n type: RoomType\n \n \"\"\"\n Associated team\n \"\"\"\n team: String\n}\n\n\"\"\"\nChannel update request input\n\"\"\"\ninput ChannelUpdateRequest {\n \"\"\"\n Channel ID\n \"\"\"\n id: ID!\n \n \"\"\"\n Channel title\n \"\"\"\n title: String\n \n \"\"\"\n Channel description\n \"\"\"\n description: String\n \n \"\"\"\n Channel type\n \"\"\"\n type: RoomType\n}\n\n\"\"\"\nDirect channel create request input\n\"\"\"\ninput DirectChannelCreateRequest {\n \"\"\"\n Receiver user IDs\n \"\"\"\n receiver: [ID]!\n \n \"\"\"\n Display name\n \"\"\"\n displayName: String!\n \n \"\"\"\n Channel options\n \"\"\"\n channelOptions: AnyObject\n}\n\n\"\"\"\nChannel sorting options\n\"\"\"\nenum ChannelSort {\n \"\"\"\n Sort by name\n \"\"\"\n NAME\n \n \"\"\"\n Sort by number of messages\n \"\"\"\n NUMBER_OF_MESSAGES\n}\n\n\"\"\"\nChannel privacy levels\n\"\"\"\nenum ChannelPrivacy {\n \"\"\"\n Private channels\n \"\"\"\n PRIVATE\n \n \"\"\"\n Public channels\n \"\"\"\n PUBLIC\n \n \"\"\"\n All channels\n \"\"\"\n ALL\n}\n\n\"\"\"\nRoom/Channel types\n\"\"\"\nenum RoomType {\n \"\"\"\n SERVICE Channel with number of users - Only members from same organization\n \"\"\"\n SERVICE\n\n \"\"\"\n AI Assistant channels\n \"\"\"\n AIASSISTANT\n \n \"\"\"\n Normal Channel with number of users - Only members from same organization\n \"\"\"\n CHANNEL\n \n \"\"\"\n Direct User to User conversations, with two or more participants - Only members from same organization\n \"\"\"\n DIRECT\n \n \"\"\"\n Channels with Private Visibility - Only members from same organization\n \"\"\"\n PRIVATE\n \n \"\"\"\n Channels with Public Visibility - Members from other organizations can join\n \"\"\"\n PUBLIC\n\n \"\"\"\n Group channels\n \"\"\"\n GROUP\n \n \"\"\"\n Visitor channels\n \"\"\"\n VISITOR\n}\n\ninput ChannelInput {\n content: String!\n files: [ID!]\n createdBy: ID\n notificationParams: ExpoNotificationData\n modelConfig: AnyObject\n}\n\n\nextend type Query {\n \"\"\"\n Get channel by name\n \"\"\"\n channelByName(name: String!): Channel @addAccountContext @isAuthenticated\n \n \"\"\"\n Get channels with filtering\n \"\"\"\n channels(filter: ChannelFilterInput = {\n privacy: ALL,\n joinedChannels: false,\n sortyBy: NAME\n }): [Channel] @addAccountContext @isAuthenticated\n \n \"\"\"\n Get channels by user with criteria\n \"\"\"\n channelsByUser(\n role: String\n criteria: AnyObject,\n limit: Int,\n skip: Int,\n sort: Sort\n ): [Channel] @addAccountContext @isAuthenticated\n \n \"\"\"\n Get support service channels\n \"\"\"\n supportServiceChannels(\n role: String\n criteria: AnyObject,\n limit: Int,\n skip: Int,\n sort: Sort\n ): [Channel] @addAccountContext @isAuthenticated\n \n \"\"\"\n Get direct channel by ID\n \"\"\"\n directChannel(id: ID!): Channel @addAccountContext @isAuthenticated\n \n \"\"\"\n View channel detail\n \"\"\"\n viewChannelDetail(id: String): Channel @addAccountContext @isAuthenticated\n}\n\nextend type Mutation {\n \"\"\"\n Create a new channel\n \"\"\"\n createChannel(\n name: String!,\n description: String!\n type: RoomType\n team: String\n ): Channel @addAccountContext @isAuthenticated\n\n \"\"\"\n Add member to channel\n \"\"\"\n addMemberToChannel(\n channelId: String!,\n memberId: String!\n ): Channel @addAccountContext @isAuthenticated\n\n \"\"\"\n Save multiple members to channel\n \"\"\"\n saveMembersToChannel(\n membersIds: [String]!\n channelId: String!,\n ): Channel @addAccountContext @isAuthenticated\n\n \"\"\"\n Create direct message channel\n \"\"\"\n createDirectChannel(\n receiver: [ID]!\n displayName: String!\n channelOptions: AnyObject\n ): Channel @addAccountContext @isAuthenticated\n\n \"\"\"\n Hide channel from user view\n \"\"\"\n hideChannel(id: ID!): Boolean @isAuthenticated\n\n \"\"\"\n Leave channel\n \"\"\"\n leaveChannel(id: ID!): Boolean @isAuthenticated\n\n \"\"\"\n View/mark channel as read\n \"\"\"\n viewChannel(id: ID!): Boolean! @isAuthenticated @addAccountContext\n\n \"\"\"\n Delete channel\n \"\"\"\n deleteChannel(id: ID!): Boolean @isAuthenticated\n \n \"\"\"\n Send notification of unread messages\n \"\"\"\n sendNotificationOfUnreadMessages(\n unit: String!\n value: Int!\n ): Boolean @addAccountContext @isAuthenticated\n\n \"\"\"\n Create channel with project ID\n \"\"\"\n createChannelWithProjectId(projectId: String!,channelInput: ChannelInput!): Boolean! @isAuthenticated @addAccountContext\n}\n";export{channelSchema as default};//# sourceMappingURL=channel.graphql.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import extended from'./extended.graphql.js';import baseSchema from'./base.graphql.js';import channelSchema from'./channel.graphql.js';import channelMember from'./channel-member.graphql.js';import postSchema from'./post.graphql.js';import postThread from'./post-thread.graphql.js';import preferencesSchema from'./preferences.graphql.js';import usersSchema from'./users.graphql.js';import reactionSchema from'./reaction.graphql.js';import mailTemplate from'./mail-templates.graphql.js';import messengerPreferences from'./messenger-preferences.graphql.js';import messengerNotificationService from'./messenger-notification-service.graphql.js';import extendedTokenAccountSchema from'./extended-token-account-schema.graphql.js';import accountExt from'./account-ext.graphql.js';// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
1
|
+
import extended from'./extended.graphql.js';import baseSchema from'./base.graphql.js';import channelSchema from'./channel.graphql.js';import channelMember from'./channel-member.graphql.js';import postSchema from'./post.graphql.js';import postThread from'./post-thread.graphql.js';import preferencesSchema from'./preferences.graphql.js';import usersSchema from'./users.graphql.js';import reactionSchema from'./reaction.graphql.js';import mailTemplate from'./mail-templates.graphql.js';import messengerPreferences from'./messenger-preferences.graphql.js';import messengerNotificationService from'./messenger-notification-service.graphql.js';import extendedTokenAccountSchema from'./extended-token-account-schema.graphql.js';import accountExt from'./account-ext.graphql.js';import aiFragmentSchema from'./ai-fragment.graphql.js';// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
2
2
|
// @ts-nocheck
|
|
3
|
-
const schema = [accountExt, extendedTokenAccountSchema, extended, baseSchema, channelSchema, channelMember, postSchema, postThread, preferencesSchema, usersSchema, reactionSchema, mailTemplate, messengerPreferences, messengerNotificationService].join('\n');export{schema};//# sourceMappingURL=index.js.map
|
|
3
|
+
const schema = [accountExt, extendedTokenAccountSchema, extended, baseSchema, channelSchema, channelMember, postSchema, postThread, preferencesSchema, usersSchema, reactionSchema, mailTemplate, messengerPreferences, messengerNotificationService, aiFragmentSchema].join('\n');export{schema};//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/graphql/schema/index.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/graphql/schema/index.ts"],"sourcesContent":[null],"names":[],"mappings":"0zBAAA;AACA;AAiBA,MAAM,MAAM,GAAG,CAAA,UAAA,EAAA,0BAAA,EAAA,QAAA,EAAA,UAAA,EAAA,aAAA,EAAA,aAAA,EAAA,UAAA,EAAA,UAAA,EAAA,iBAAA,EAAA,WAAA,EAAA,cAAA,EAAA,YAAA,EAAA,oBAAA,EAAA,4BAAA,EAAA,gBAAA,CAAA,CAAA,IAAA,CAAA,IAAA"}
|