@burdenoff/sdk-libs 2026.627.2 → 2026.627.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.
- package/dist/modules/artistrybase/index.cjs +351 -0
- package/dist/modules/artistrybase/index.d.cts +469 -0
- package/dist/modules/artistrybase/index.d.ts +469 -0
- package/dist/modules/artistrybase/index.js +351 -0
- package/dist/modules/brainyrich/index.cjs +355 -0
- package/dist/modules/brainyrich/index.d.cts +483 -0
- package/dist/modules/brainyrich/index.d.ts +483 -0
- package/dist/modules/brainyrich/index.js +355 -0
- package/dist/modules/buildmyiq/index.cjs +259 -0
- package/dist/modules/buildmyiq/index.d.cts +384 -0
- package/dist/modules/buildmyiq/index.d.ts +384 -0
- package/dist/modules/buildmyiq/index.js +259 -0
- package/dist/modules/collabkin/index.cjs +238 -0
- package/dist/modules/collabkin/index.d.cts +340 -0
- package/dist/modules/collabkin/index.d.ts +340 -0
- package/dist/modules/collabkin/index.js +238 -0
- package/dist/modules/comradecircle/index.cjs +311 -0
- package/dist/modules/comradecircle/index.d.cts +390 -0
- package/dist/modules/comradecircle/index.d.ts +390 -0
- package/dist/modules/comradecircle/index.js +311 -0
- package/package.json +1 -1
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
'use strict';var a=`
|
|
2
|
+
fragment ChannelFields on ComChannel {
|
|
3
|
+
id circleId name slug description type visibility position isArchived
|
|
4
|
+
workspaceId createdAt updatedAt
|
|
5
|
+
}
|
|
6
|
+
`,c=`
|
|
7
|
+
fragment CommentFields on ComComment {
|
|
8
|
+
id postId parentId authorId body isHidden author { id }
|
|
9
|
+
workspaceId createdAt updatedAt
|
|
10
|
+
}
|
|
11
|
+
`,le=`
|
|
12
|
+
fragment ReactionFields on ComReaction {
|
|
13
|
+
id postId memberId type member { id } workspaceId createdAt
|
|
14
|
+
}
|
|
15
|
+
`,$=`
|
|
16
|
+
fragment PollOptionFields on ComPollOption {
|
|
17
|
+
id pollId label position voteCount workspaceId createdAt
|
|
18
|
+
}
|
|
19
|
+
`,s=`
|
|
20
|
+
${$}
|
|
21
|
+
fragment PollFields on ComPoll {
|
|
22
|
+
id circleId question status allowMultiple isAnonymous closesAt
|
|
23
|
+
options { ...PollOptionFields }
|
|
24
|
+
workspaceId createdAt updatedAt
|
|
25
|
+
}
|
|
26
|
+
`,L=`
|
|
27
|
+
fragment EventRsvpFields on ComEventRsvp {
|
|
28
|
+
id eventId memberId status note member { id } workspaceId createdAt updatedAt
|
|
29
|
+
}
|
|
30
|
+
`,C=`
|
|
31
|
+
fragment ProfileFields on ComProfile {
|
|
32
|
+
id memberId displayName headline bio presence discoverable
|
|
33
|
+
avatar { id } interests skills member { id }
|
|
34
|
+
workspaceId createdAt updatedAt
|
|
35
|
+
}
|
|
36
|
+
`,p=`
|
|
37
|
+
fragment FeedFollowFields on ComFeedFollow {
|
|
38
|
+
id followerId targetId targetType muted workspaceId createdAt updatedAt
|
|
39
|
+
}
|
|
40
|
+
`,d=`
|
|
41
|
+
fragment CircleScalars on ComCircle {
|
|
42
|
+
id name slug description topic status visibility
|
|
43
|
+
avatar { id } tags memberCount workspaceId createdAt updatedAt
|
|
44
|
+
}
|
|
45
|
+
`,F=`
|
|
46
|
+
fragment MembershipScalars on ComMembership {
|
|
47
|
+
id circleId memberId role status joinedAt member { id }
|
|
48
|
+
workspaceId createdAt updatedAt
|
|
49
|
+
}
|
|
50
|
+
`,u=`
|
|
51
|
+
fragment PostScalars on ComPost {
|
|
52
|
+
id channelId authorId body status tags isPinned
|
|
53
|
+
attachmentFileIds commentCount reactionCount author { id }
|
|
54
|
+
workspaceId createdAt updatedAt
|
|
55
|
+
}
|
|
56
|
+
`,v=`
|
|
57
|
+
fragment EventScalars on ComEvent {
|
|
58
|
+
id circleId hostId title description mode status
|
|
59
|
+
startsAt endsAt location joinUrl capacity rsvpCount tags host { id }
|
|
60
|
+
workspaceId createdAt updatedAt
|
|
61
|
+
}
|
|
62
|
+
`,P=`
|
|
63
|
+
${d}
|
|
64
|
+
${a}
|
|
65
|
+
${F}
|
|
66
|
+
fragment CircleFull on ComCircle {
|
|
67
|
+
...CircleScalars
|
|
68
|
+
channels { ...ChannelFields }
|
|
69
|
+
memberships { ...MembershipScalars }
|
|
70
|
+
}
|
|
71
|
+
`,I=`
|
|
72
|
+
${F}
|
|
73
|
+
${d}
|
|
74
|
+
fragment MembershipFull on ComMembership {
|
|
75
|
+
...MembershipScalars
|
|
76
|
+
circle { ...CircleScalars }
|
|
77
|
+
}
|
|
78
|
+
`,r=`
|
|
79
|
+
${u}
|
|
80
|
+
${c}
|
|
81
|
+
${le}
|
|
82
|
+
fragment PostFull on ComPost {
|
|
83
|
+
...PostScalars
|
|
84
|
+
comments { ...CommentFields }
|
|
85
|
+
reactions { ...ReactionFields }
|
|
86
|
+
}
|
|
87
|
+
`,m=`
|
|
88
|
+
${v}
|
|
89
|
+
${L}
|
|
90
|
+
fragment EventFull on ComEvent {
|
|
91
|
+
...EventScalars
|
|
92
|
+
rsvps { ...EventRsvpFields }
|
|
93
|
+
}
|
|
94
|
+
`,A=`
|
|
95
|
+
${P}
|
|
96
|
+
query ComCircle($id: ID!) {
|
|
97
|
+
comCircle(id: $id) { ...CircleFull }
|
|
98
|
+
}
|
|
99
|
+
`,S=`
|
|
100
|
+
${d}
|
|
101
|
+
query ComListCircles(
|
|
102
|
+
$status: ComCircleStatus
|
|
103
|
+
$visibility: ComCircleVisibility
|
|
104
|
+
$pagination: PaginationInput
|
|
105
|
+
) {
|
|
106
|
+
comListCircles(status: $status, visibility: $visibility, pagination: $pagination) {
|
|
107
|
+
items { ...CircleScalars }
|
|
108
|
+
pageInfo { cursor hasMore }
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
`,y=`
|
|
112
|
+
${P}
|
|
113
|
+
mutation ComCreateCircle($input: ComCreateCircleInput!) {
|
|
114
|
+
comCreateCircle(input: $input) { ...CircleFull }
|
|
115
|
+
}
|
|
116
|
+
`,T=`
|
|
117
|
+
${P}
|
|
118
|
+
mutation ComUpdateCircle($id: ID!, $input: ComUpdateCircleInput!) {
|
|
119
|
+
comUpdateCircle(id: $id, input: $input) { ...CircleFull }
|
|
120
|
+
}
|
|
121
|
+
`,h=`
|
|
122
|
+
mutation ComArchiveCircle($id: ID!) {
|
|
123
|
+
comArchiveCircle(id: $id)
|
|
124
|
+
}
|
|
125
|
+
`,g=`
|
|
126
|
+
${a}
|
|
127
|
+
query ComListChannels($circleId: ID!) {
|
|
128
|
+
comListChannels(circleId: $circleId) { ...ChannelFields }
|
|
129
|
+
}
|
|
130
|
+
`,R=`
|
|
131
|
+
${a}
|
|
132
|
+
mutation ComCreateChannel($input: ComCreateChannelInput!) {
|
|
133
|
+
comCreateChannel(input: $input) { ...ChannelFields }
|
|
134
|
+
}
|
|
135
|
+
`,w=`
|
|
136
|
+
${a}
|
|
137
|
+
mutation ComUpdateChannel($id: ID!, $input: ComUpdateChannelInput!) {
|
|
138
|
+
comUpdateChannel(id: $id, input: $input) { ...ChannelFields }
|
|
139
|
+
}
|
|
140
|
+
`,_=`
|
|
141
|
+
${r}
|
|
142
|
+
query ComPost($id: ID!) {
|
|
143
|
+
comPost(id: $id) { ...PostFull }
|
|
144
|
+
}
|
|
145
|
+
`,f=`
|
|
146
|
+
${u}
|
|
147
|
+
query ComListPosts($channelId: ID, $status: ComPostStatus, $pagination: PaginationInput) {
|
|
148
|
+
comListPosts(channelId: $channelId, status: $status, pagination: $pagination) {
|
|
149
|
+
items { ...PostScalars }
|
|
150
|
+
pageInfo { cursor hasMore }
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
`,M=`
|
|
154
|
+
${r}
|
|
155
|
+
mutation ComCreatePost($input: ComCreatePostInput!) {
|
|
156
|
+
comCreatePost(input: $input) { ...PostFull }
|
|
157
|
+
}
|
|
158
|
+
`,b=`
|
|
159
|
+
${r}
|
|
160
|
+
mutation ComUpdatePost($id: ID!, $input: ComUpdatePostInput!) {
|
|
161
|
+
comUpdatePost(id: $id, input: $input) { ...PostFull }
|
|
162
|
+
}
|
|
163
|
+
`,O=`
|
|
164
|
+
mutation ComRemovePost($id: ID!) {
|
|
165
|
+
comRemovePost(id: $id)
|
|
166
|
+
}
|
|
167
|
+
`,U=`
|
|
168
|
+
${r}
|
|
169
|
+
mutation ComReactToPost($postId: ID!, $type: ComReactionType!) {
|
|
170
|
+
comReactToPost(postId: $postId, type: $type) { ...PostFull }
|
|
171
|
+
}
|
|
172
|
+
`,q=`
|
|
173
|
+
${c}
|
|
174
|
+
query ComListComments($postId: ID!) {
|
|
175
|
+
comListComments(postId: $postId) { ...CommentFields }
|
|
176
|
+
}
|
|
177
|
+
`,x=`
|
|
178
|
+
${c}
|
|
179
|
+
mutation ComAddComment($input: ComCreateCommentInput!) {
|
|
180
|
+
comAddComment(input: $input) { ...CommentFields }
|
|
181
|
+
}
|
|
182
|
+
`,D=`
|
|
183
|
+
${I}
|
|
184
|
+
query ComListMemberships(
|
|
185
|
+
$circleId: ID
|
|
186
|
+
$status: ComMembershipStatus
|
|
187
|
+
$pagination: PaginationInput
|
|
188
|
+
) {
|
|
189
|
+
comListMemberships(circleId: $circleId, status: $status, pagination: $pagination) {
|
|
190
|
+
items { ...MembershipFull }
|
|
191
|
+
pageInfo { cursor hasMore }
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
`,N=`
|
|
195
|
+
${I}
|
|
196
|
+
mutation ComJoinCircle($circleId: ID!) {
|
|
197
|
+
comJoinCircle(circleId: $circleId) { ...MembershipFull }
|
|
198
|
+
}
|
|
199
|
+
`,V=`
|
|
200
|
+
mutation ComLeaveCircle($circleId: ID!) {
|
|
201
|
+
comLeaveCircle(circleId: $circleId)
|
|
202
|
+
}
|
|
203
|
+
`,H=`
|
|
204
|
+
${I}
|
|
205
|
+
mutation ComSetMemberRole($membershipId: ID!, $role: ComMemberRole!) {
|
|
206
|
+
comSetMemberRole(membershipId: $membershipId, role: $role) { ...MembershipFull }
|
|
207
|
+
}
|
|
208
|
+
`,k=`
|
|
209
|
+
${m}
|
|
210
|
+
query ComEvent($id: ID!) {
|
|
211
|
+
comEvent(id: $id) { ...EventFull }
|
|
212
|
+
}
|
|
213
|
+
`,G=`
|
|
214
|
+
${v}
|
|
215
|
+
query ComListEvents($circleId: ID, $status: ComEventStatus, $pagination: PaginationInput) {
|
|
216
|
+
comListEvents(circleId: $circleId, status: $status, pagination: $pagination) {
|
|
217
|
+
items { ...EventScalars }
|
|
218
|
+
pageInfo { cursor hasMore }
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
`,W=`
|
|
222
|
+
${m}
|
|
223
|
+
mutation ComCreateEvent($input: ComCreateEventInput!) {
|
|
224
|
+
comCreateEvent(input: $input) { ...EventFull }
|
|
225
|
+
}
|
|
226
|
+
`,j=`
|
|
227
|
+
${m}
|
|
228
|
+
mutation ComUpdateEvent($id: ID!, $input: ComUpdateEventInput!) {
|
|
229
|
+
comUpdateEvent(id: $id, input: $input) { ...EventFull }
|
|
230
|
+
}
|
|
231
|
+
`,B=`
|
|
232
|
+
${m}
|
|
233
|
+
mutation ComTransitionEvent($id: ID!, $status: ComEventStatus!) {
|
|
234
|
+
comTransitionEvent(id: $id, status: $status) { ...EventFull }
|
|
235
|
+
}
|
|
236
|
+
`,J=`
|
|
237
|
+
${L}
|
|
238
|
+
mutation ComRsvpEvent($eventId: ID!, $status: ComRsvpStatus!, $note: String) {
|
|
239
|
+
comRsvpEvent(eventId: $eventId, status: $status, note: $note) { ...EventRsvpFields }
|
|
240
|
+
}
|
|
241
|
+
`,Y=`
|
|
242
|
+
${s}
|
|
243
|
+
query ComPoll($id: ID!) {
|
|
244
|
+
comPoll(id: $id) { ...PollFields }
|
|
245
|
+
}
|
|
246
|
+
`,z=`
|
|
247
|
+
${s}
|
|
248
|
+
query ComListPolls($circleId: ID!, $status: ComPollStatus) {
|
|
249
|
+
comListPolls(circleId: $circleId, status: $status) { ...PollFields }
|
|
250
|
+
}
|
|
251
|
+
`,K=`
|
|
252
|
+
${s}
|
|
253
|
+
mutation ComCreatePoll($input: ComCreatePollInput!) {
|
|
254
|
+
comCreatePoll(input: $input) { ...PollFields }
|
|
255
|
+
}
|
|
256
|
+
`,Q=`
|
|
257
|
+
${s}
|
|
258
|
+
mutation ComClosePoll($id: ID!) {
|
|
259
|
+
comClosePoll(id: $id) { ...PollFields }
|
|
260
|
+
}
|
|
261
|
+
`,X=`
|
|
262
|
+
${$}
|
|
263
|
+
mutation ComVotePoll($pollId: ID!, $optionId: ID!) {
|
|
264
|
+
comVotePoll(pollId: $pollId, optionId: $optionId) { ...PollOptionFields }
|
|
265
|
+
}
|
|
266
|
+
`,Z=`
|
|
267
|
+
${C}
|
|
268
|
+
query ComProfile($memberId: ID!) {
|
|
269
|
+
comProfile(memberId: $memberId) { ...ProfileFields }
|
|
270
|
+
}
|
|
271
|
+
`,ee=`
|
|
272
|
+
${C}
|
|
273
|
+
query ComListProfiles($discoverable: Boolean, $pagination: PaginationInput) {
|
|
274
|
+
comListProfiles(discoverable: $discoverable, pagination: $pagination) {
|
|
275
|
+
items { ...ProfileFields }
|
|
276
|
+
pageInfo { cursor hasMore }
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
`,te=`
|
|
280
|
+
${C}
|
|
281
|
+
mutation ComUpsertProfile($input: ComUpsertProfileInput!) {
|
|
282
|
+
comUpsertProfile(input: $input) { ...ProfileFields }
|
|
283
|
+
}
|
|
284
|
+
`,oe=`
|
|
285
|
+
${u}
|
|
286
|
+
query ComMyFeed($pagination: PaginationInput) {
|
|
287
|
+
comMyFeed(pagination: $pagination) {
|
|
288
|
+
items { ...PostScalars }
|
|
289
|
+
pageInfo { cursor hasMore }
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
`,ie=`
|
|
293
|
+
${p}
|
|
294
|
+
query ComMyFollows($targetType: ComFollowTargetType) {
|
|
295
|
+
comMyFollows(targetType: $targetType) { ...FeedFollowFields }
|
|
296
|
+
}
|
|
297
|
+
`,ne=`
|
|
298
|
+
${p}
|
|
299
|
+
mutation ComFollow($input: ComFollowInput!) {
|
|
300
|
+
comFollow(input: $input) { ...FeedFollowFields }
|
|
301
|
+
}
|
|
302
|
+
`,ae=`
|
|
303
|
+
mutation ComUnfollow($input: ComFollowInput!) {
|
|
304
|
+
comUnfollow(input: $input)
|
|
305
|
+
}
|
|
306
|
+
`,se=`
|
|
307
|
+
${p}
|
|
308
|
+
mutation ComMuteFollow($id: ID!, $muted: Boolean!) {
|
|
309
|
+
comMuteFollow(id: $id, muted: $muted) { ...FeedFollowFields }
|
|
310
|
+
}
|
|
311
|
+
`,re="query ComHealth { comHealth }";function me(l){let{workspace:o}=l.gql;return {circles:{async get(e){return (await o.request(A,{id:e})).comCircle},async list(e,t,i){return (await o.request(S,{status:e,visibility:t,pagination:i})).comListCircles},async create(e){return (await o.request(y,{input:e})).comCreateCircle},async update(e,t){return (await o.request(T,{id:e,input:t})).comUpdateCircle},async archive(e){return (await o.request(h,{id:e})).comArchiveCircle}},channels:{async list(e){return (await o.request(g,{circleId:e})).comListChannels},async create(e){return (await o.request(R,{input:e})).comCreateChannel},async update(e,t){return (await o.request(w,{id:e,input:t})).comUpdateChannel}},posts:{async get(e){return (await o.request(_,{id:e})).comPost},async list(e,t,i){return (await o.request(f,{channelId:e,status:t,pagination:i})).comListPosts},async create(e){return (await o.request(M,{input:e})).comCreatePost},async update(e,t){return (await o.request(b,{id:e,input:t})).comUpdatePost},async remove(e){return (await o.request(O,{id:e})).comRemovePost},async react(e,t){return (await o.request(U,{postId:e,type:t})).comReactToPost}},comments:{async list(e){return (await o.request(q,{postId:e})).comListComments},async add(e){return (await o.request(x,{input:e})).comAddComment}},memberships:{async list(e,t,i){return (await o.request(D,{circleId:e,status:t,pagination:i})).comListMemberships},async join(e){return (await o.request(N,{circleId:e})).comJoinCircle},async leave(e){return (await o.request(V,{circleId:e})).comLeaveCircle},async setRole(e,t){return (await o.request(H,{membershipId:e,role:t})).comSetMemberRole}},events:{async get(e){return (await o.request(k,{id:e})).comEvent},async list(e,t,i){return (await o.request(G,{circleId:e,status:t,pagination:i})).comListEvents},async create(e){return (await o.request(W,{input:e})).comCreateEvent},async update(e,t){return (await o.request(j,{id:e,input:t})).comUpdateEvent},async transition(e,t){return (await o.request(B,{id:e,status:t})).comTransitionEvent},async rsvp(e,t,i){return (await o.request(J,{eventId:e,status:t,note:i})).comRsvpEvent}},polls:{async get(e){return (await o.request(Y,{id:e})).comPoll},async list(e,t){return (await o.request(z,{circleId:e,status:t})).comListPolls},async create(e){return (await o.request(K,{input:e})).comCreatePoll},async close(e){return (await o.request(Q,{id:e})).comClosePoll},async vote(e,t){return (await o.request(X,{pollId:e,optionId:t})).comVotePoll}},profiles:{async get(e){return (await o.request(Z,{memberId:e})).comProfile},async list(e,t){return (await o.request(ee,{discoverable:e,pagination:t})).comListProfiles},async upsert(e){return (await o.request(te,{input:e})).comUpsertProfile}},feed:{async myFeed(e){return (await o.request(oe,{pagination:e})).comMyFeed},async myFollows(e){return (await o.request(ie,{targetType:e})).comMyFollows},async follow(e){return (await o.request(ne,{input:e})).comFollow},async unfollow(e){return (await o.request(ae,{input:e})).comUnfollow},async muteFollow(e,t){return (await o.request(se,{id:e,muted:t})).comMuteFollow}},system:{async health(){return (await o.request(re)).comHealth}}}}var ce={id:"comradecircle",version:"1.0.0",displayName:"Comradecircle",dependsOn:["auth"],attach(l){return me(l)}},ge=ce;module.exports=ge;
|
|
@@ -0,0 +1,390 @@
|
|
|
1
|
+
import { S as SdkModule } from '../../module-JDbvil5h.cjs';
|
|
2
|
+
import 'graphql-request';
|
|
3
|
+
|
|
4
|
+
type ComChannelType = 'ANNOUNCEMENT' | 'FORUM' | 'TEXT' | 'VOICE';
|
|
5
|
+
type ComChannelVisibility = 'CIRCLE' | 'PRIVATE';
|
|
6
|
+
type ComCircleStatus = 'ACTIVE' | 'ARCHIVED' | 'SUSPENDED';
|
|
7
|
+
type ComCircleVisibility = 'PRIVATE' | 'PUBLIC' | 'SECRET';
|
|
8
|
+
type ComEventMode = 'HYBRID' | 'IN_PERSON' | 'ONLINE';
|
|
9
|
+
type ComEventStatus = 'CANCELLED' | 'COMPLETED' | 'LIVE' | 'SCHEDULED';
|
|
10
|
+
type ComFollowTargetType = 'CHANNEL' | 'CIRCLE' | 'MEMBER';
|
|
11
|
+
type ComMemberRole = 'ADMIN' | 'MEMBER' | 'MODERATOR' | 'OWNER';
|
|
12
|
+
type ComMembershipStatus = 'ACTIVE' | 'BANNED' | 'LEFT' | 'PENDING';
|
|
13
|
+
type ComPollStatus = 'CLOSED' | 'OPEN';
|
|
14
|
+
type ComPostStatus = 'DRAFT' | 'HIDDEN' | 'PUBLISHED' | 'REMOVED';
|
|
15
|
+
type ComPresence = 'AWAY' | 'BUSY' | 'OFFLINE' | 'ONLINE';
|
|
16
|
+
type ComReactionType = 'CELEBRATE' | 'INSIGHTFUL' | 'LAUGH' | 'LIKE' | 'LOVE' | 'SUPPORT';
|
|
17
|
+
type ComRsvpStatus = 'GOING' | 'INTERESTED' | 'NOT_GOING' | 'WAITLISTED';
|
|
18
|
+
interface ComFileRef {
|
|
19
|
+
id: string;
|
|
20
|
+
}
|
|
21
|
+
interface ComUserRef {
|
|
22
|
+
id: string;
|
|
23
|
+
}
|
|
24
|
+
interface ComPageInfo {
|
|
25
|
+
cursor?: string | null;
|
|
26
|
+
hasMore: boolean;
|
|
27
|
+
}
|
|
28
|
+
interface ComChannel {
|
|
29
|
+
id: string;
|
|
30
|
+
circleId: string;
|
|
31
|
+
name: string;
|
|
32
|
+
slug: string;
|
|
33
|
+
description?: string | null;
|
|
34
|
+
type: ComChannelType;
|
|
35
|
+
visibility: ComChannelVisibility;
|
|
36
|
+
position: number;
|
|
37
|
+
isArchived: boolean;
|
|
38
|
+
workspaceId: string;
|
|
39
|
+
createdAt: string;
|
|
40
|
+
updatedAt: string;
|
|
41
|
+
circle?: ComCircle | null;
|
|
42
|
+
}
|
|
43
|
+
interface ComCircle {
|
|
44
|
+
id: string;
|
|
45
|
+
name: string;
|
|
46
|
+
slug: string;
|
|
47
|
+
description?: string | null;
|
|
48
|
+
topic?: string | null;
|
|
49
|
+
status: ComCircleStatus;
|
|
50
|
+
visibility: ComCircleVisibility;
|
|
51
|
+
avatar?: ComFileRef | null;
|
|
52
|
+
tags: string[];
|
|
53
|
+
memberCount: number;
|
|
54
|
+
workspaceId: string;
|
|
55
|
+
createdAt: string;
|
|
56
|
+
updatedAt: string;
|
|
57
|
+
channels?: ComChannel[];
|
|
58
|
+
memberships?: ComMembership[];
|
|
59
|
+
}
|
|
60
|
+
interface ComComment {
|
|
61
|
+
id: string;
|
|
62
|
+
postId: string;
|
|
63
|
+
parentId?: string | null;
|
|
64
|
+
authorId: string;
|
|
65
|
+
body: string;
|
|
66
|
+
isHidden: boolean;
|
|
67
|
+
author?: ComUserRef | null;
|
|
68
|
+
workspaceId: string;
|
|
69
|
+
createdAt: string;
|
|
70
|
+
updatedAt: string;
|
|
71
|
+
}
|
|
72
|
+
interface ComReaction {
|
|
73
|
+
id: string;
|
|
74
|
+
postId: string;
|
|
75
|
+
memberId: string;
|
|
76
|
+
type: ComReactionType;
|
|
77
|
+
member?: ComUserRef | null;
|
|
78
|
+
workspaceId: string;
|
|
79
|
+
createdAt: string;
|
|
80
|
+
}
|
|
81
|
+
interface ComPost {
|
|
82
|
+
id: string;
|
|
83
|
+
channelId: string;
|
|
84
|
+
authorId: string;
|
|
85
|
+
body: string;
|
|
86
|
+
status: ComPostStatus;
|
|
87
|
+
tags: string[];
|
|
88
|
+
isPinned: boolean;
|
|
89
|
+
attachmentFileIds: string[];
|
|
90
|
+
commentCount: number;
|
|
91
|
+
reactionCount: number;
|
|
92
|
+
author?: ComUserRef | null;
|
|
93
|
+
comments?: ComComment[];
|
|
94
|
+
reactions?: ComReaction[];
|
|
95
|
+
workspaceId: string;
|
|
96
|
+
createdAt: string;
|
|
97
|
+
updatedAt: string;
|
|
98
|
+
}
|
|
99
|
+
interface ComMembership {
|
|
100
|
+
id: string;
|
|
101
|
+
circleId: string;
|
|
102
|
+
memberId: string;
|
|
103
|
+
role: ComMemberRole;
|
|
104
|
+
status: ComMembershipStatus;
|
|
105
|
+
joinedAt?: string | null;
|
|
106
|
+
member?: ComUserRef | null;
|
|
107
|
+
circle?: ComCircle | null;
|
|
108
|
+
workspaceId: string;
|
|
109
|
+
createdAt: string;
|
|
110
|
+
updatedAt: string;
|
|
111
|
+
}
|
|
112
|
+
interface ComEventRsvp {
|
|
113
|
+
id: string;
|
|
114
|
+
eventId: string;
|
|
115
|
+
memberId: string;
|
|
116
|
+
status: ComRsvpStatus;
|
|
117
|
+
note?: string | null;
|
|
118
|
+
member?: ComUserRef | null;
|
|
119
|
+
workspaceId: string;
|
|
120
|
+
createdAt: string;
|
|
121
|
+
updatedAt: string;
|
|
122
|
+
}
|
|
123
|
+
interface ComEvent {
|
|
124
|
+
id: string;
|
|
125
|
+
circleId: string;
|
|
126
|
+
hostId: string;
|
|
127
|
+
title: string;
|
|
128
|
+
description?: string | null;
|
|
129
|
+
mode: ComEventMode;
|
|
130
|
+
status: ComEventStatus;
|
|
131
|
+
startsAt: string;
|
|
132
|
+
endsAt?: string | null;
|
|
133
|
+
location?: string | null;
|
|
134
|
+
joinUrl?: string | null;
|
|
135
|
+
capacity?: number | null;
|
|
136
|
+
rsvpCount: number;
|
|
137
|
+
tags: string[];
|
|
138
|
+
host?: ComUserRef | null;
|
|
139
|
+
rsvps?: ComEventRsvp[];
|
|
140
|
+
workspaceId: string;
|
|
141
|
+
createdAt: string;
|
|
142
|
+
updatedAt: string;
|
|
143
|
+
}
|
|
144
|
+
interface ComPollOption {
|
|
145
|
+
id: string;
|
|
146
|
+
pollId: string;
|
|
147
|
+
label: string;
|
|
148
|
+
position: number;
|
|
149
|
+
voteCount: number;
|
|
150
|
+
workspaceId: string;
|
|
151
|
+
createdAt: string;
|
|
152
|
+
}
|
|
153
|
+
interface ComPoll {
|
|
154
|
+
id: string;
|
|
155
|
+
circleId: string;
|
|
156
|
+
question: string;
|
|
157
|
+
status: ComPollStatus;
|
|
158
|
+
allowMultiple: boolean;
|
|
159
|
+
isAnonymous: boolean;
|
|
160
|
+
closesAt?: string | null;
|
|
161
|
+
options: ComPollOption[];
|
|
162
|
+
workspaceId: string;
|
|
163
|
+
createdAt: string;
|
|
164
|
+
updatedAt: string;
|
|
165
|
+
}
|
|
166
|
+
interface ComProfile {
|
|
167
|
+
id: string;
|
|
168
|
+
memberId: string;
|
|
169
|
+
displayName: string;
|
|
170
|
+
headline?: string | null;
|
|
171
|
+
bio?: string | null;
|
|
172
|
+
presence: ComPresence;
|
|
173
|
+
discoverable: boolean;
|
|
174
|
+
avatar?: ComFileRef | null;
|
|
175
|
+
interests: string[];
|
|
176
|
+
skills: string[];
|
|
177
|
+
member?: ComUserRef | null;
|
|
178
|
+
workspaceId: string;
|
|
179
|
+
createdAt: string;
|
|
180
|
+
updatedAt: string;
|
|
181
|
+
}
|
|
182
|
+
interface ComFeedFollow {
|
|
183
|
+
id: string;
|
|
184
|
+
followerId: string;
|
|
185
|
+
targetId: string;
|
|
186
|
+
targetType: ComFollowTargetType;
|
|
187
|
+
muted: boolean;
|
|
188
|
+
workspaceId: string;
|
|
189
|
+
createdAt: string;
|
|
190
|
+
updatedAt: string;
|
|
191
|
+
}
|
|
192
|
+
interface ComCircleConnection {
|
|
193
|
+
items: ComCircle[];
|
|
194
|
+
pageInfo: ComPageInfo;
|
|
195
|
+
}
|
|
196
|
+
interface ComPostConnection {
|
|
197
|
+
items: ComPost[];
|
|
198
|
+
pageInfo: ComPageInfo;
|
|
199
|
+
}
|
|
200
|
+
interface ComEventConnection {
|
|
201
|
+
items: ComEvent[];
|
|
202
|
+
pageInfo: ComPageInfo;
|
|
203
|
+
}
|
|
204
|
+
interface ComMembershipConnection {
|
|
205
|
+
items: ComMembership[];
|
|
206
|
+
pageInfo: ComPageInfo;
|
|
207
|
+
}
|
|
208
|
+
interface ComProfileConnection {
|
|
209
|
+
items: ComProfile[];
|
|
210
|
+
pageInfo: ComPageInfo;
|
|
211
|
+
}
|
|
212
|
+
interface ComPaginationInput {
|
|
213
|
+
cursor?: string;
|
|
214
|
+
limit?: number;
|
|
215
|
+
offset?: number;
|
|
216
|
+
}
|
|
217
|
+
interface ComCreateCircleInput {
|
|
218
|
+
name: string;
|
|
219
|
+
slug: string;
|
|
220
|
+
description?: string;
|
|
221
|
+
topic?: string;
|
|
222
|
+
avatarFileId?: string;
|
|
223
|
+
tags?: string[];
|
|
224
|
+
visibility?: ComCircleVisibility;
|
|
225
|
+
}
|
|
226
|
+
interface ComUpdateCircleInput {
|
|
227
|
+
name?: string;
|
|
228
|
+
description?: string;
|
|
229
|
+
topic?: string;
|
|
230
|
+
avatarFileId?: string;
|
|
231
|
+
tags?: string[];
|
|
232
|
+
visibility?: ComCircleVisibility;
|
|
233
|
+
}
|
|
234
|
+
interface ComCreateChannelInput {
|
|
235
|
+
circleId: string;
|
|
236
|
+
name: string;
|
|
237
|
+
slug: string;
|
|
238
|
+
description?: string;
|
|
239
|
+
position?: number;
|
|
240
|
+
type?: ComChannelType;
|
|
241
|
+
visibility?: ComChannelVisibility;
|
|
242
|
+
}
|
|
243
|
+
interface ComUpdateChannelInput {
|
|
244
|
+
name?: string;
|
|
245
|
+
description?: string;
|
|
246
|
+
position?: number;
|
|
247
|
+
type?: ComChannelType;
|
|
248
|
+
visibility?: ComChannelVisibility;
|
|
249
|
+
isArchived?: boolean;
|
|
250
|
+
}
|
|
251
|
+
interface ComCreatePostInput {
|
|
252
|
+
channelId: string;
|
|
253
|
+
body: string;
|
|
254
|
+
attachmentFileIds?: string[];
|
|
255
|
+
status?: ComPostStatus;
|
|
256
|
+
tags?: string[];
|
|
257
|
+
}
|
|
258
|
+
interface ComUpdatePostInput {
|
|
259
|
+
body?: string;
|
|
260
|
+
isPinned?: boolean;
|
|
261
|
+
status?: ComPostStatus;
|
|
262
|
+
tags?: string[];
|
|
263
|
+
}
|
|
264
|
+
interface ComCreateCommentInput {
|
|
265
|
+
postId: string;
|
|
266
|
+
body: string;
|
|
267
|
+
parentId?: string;
|
|
268
|
+
}
|
|
269
|
+
interface ComCreateEventInput {
|
|
270
|
+
circleId: string;
|
|
271
|
+
title: string;
|
|
272
|
+
startsAt: string;
|
|
273
|
+
description?: string;
|
|
274
|
+
endsAt?: string;
|
|
275
|
+
location?: string;
|
|
276
|
+
joinUrl?: string;
|
|
277
|
+
capacity?: number;
|
|
278
|
+
mode?: ComEventMode;
|
|
279
|
+
tags?: string[];
|
|
280
|
+
}
|
|
281
|
+
interface ComUpdateEventInput {
|
|
282
|
+
title?: string;
|
|
283
|
+
description?: string;
|
|
284
|
+
startsAt?: string;
|
|
285
|
+
endsAt?: string;
|
|
286
|
+
location?: string;
|
|
287
|
+
joinUrl?: string;
|
|
288
|
+
capacity?: number;
|
|
289
|
+
mode?: ComEventMode;
|
|
290
|
+
tags?: string[];
|
|
291
|
+
}
|
|
292
|
+
interface ComCreatePollInput {
|
|
293
|
+
circleId: string;
|
|
294
|
+
question: string;
|
|
295
|
+
options: string[];
|
|
296
|
+
allowMultiple?: boolean;
|
|
297
|
+
isAnonymous?: boolean;
|
|
298
|
+
closesAt?: string;
|
|
299
|
+
}
|
|
300
|
+
interface ComUpsertProfileInput {
|
|
301
|
+
displayName: string;
|
|
302
|
+
headline?: string;
|
|
303
|
+
bio?: string;
|
|
304
|
+
avatarFileId?: string;
|
|
305
|
+
discoverable?: boolean;
|
|
306
|
+
interests?: string[];
|
|
307
|
+
presence?: ComPresence;
|
|
308
|
+
skills?: string[];
|
|
309
|
+
}
|
|
310
|
+
interface ComFollowInput {
|
|
311
|
+
targetId: string;
|
|
312
|
+
targetType: ComFollowTargetType;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
interface ComradecircleCirclesApi {
|
|
316
|
+
get(id: string): Promise<ComCircle | null>;
|
|
317
|
+
list(status?: ComCircleStatus, visibility?: ComCircleVisibility, pagination?: ComPaginationInput): Promise<ComCircleConnection>;
|
|
318
|
+
create(input: ComCreateCircleInput): Promise<ComCircle>;
|
|
319
|
+
update(id: string, input: ComUpdateCircleInput): Promise<ComCircle>;
|
|
320
|
+
archive(id: string): Promise<boolean>;
|
|
321
|
+
}
|
|
322
|
+
interface ComradecircleChannelsApi {
|
|
323
|
+
list(circleId: string): Promise<ComChannel[]>;
|
|
324
|
+
create(input: ComCreateChannelInput): Promise<ComChannel>;
|
|
325
|
+
update(id: string, input: ComUpdateChannelInput): Promise<ComChannel>;
|
|
326
|
+
}
|
|
327
|
+
interface ComradecirclePostsApi {
|
|
328
|
+
get(id: string): Promise<ComPost | null>;
|
|
329
|
+
list(channelId?: string, status?: ComPostStatus, pagination?: ComPaginationInput): Promise<ComPostConnection>;
|
|
330
|
+
create(input: ComCreatePostInput): Promise<ComPost>;
|
|
331
|
+
update(id: string, input: ComUpdatePostInput): Promise<ComPost>;
|
|
332
|
+
remove(id: string): Promise<boolean>;
|
|
333
|
+
react(postId: string, type: ComReactionType): Promise<ComPost>;
|
|
334
|
+
}
|
|
335
|
+
interface ComradecircleCommentsApi {
|
|
336
|
+
list(postId: string): Promise<ComComment[]>;
|
|
337
|
+
add(input: ComCreateCommentInput): Promise<ComComment>;
|
|
338
|
+
}
|
|
339
|
+
interface ComradecircleMembershipsApi {
|
|
340
|
+
list(circleId?: string, status?: ComMembershipStatus, pagination?: ComPaginationInput): Promise<ComMembershipConnection>;
|
|
341
|
+
join(circleId: string): Promise<ComMembership>;
|
|
342
|
+
leave(circleId: string): Promise<boolean>;
|
|
343
|
+
setRole(membershipId: string, role: ComMemberRole): Promise<ComMembership>;
|
|
344
|
+
}
|
|
345
|
+
interface ComradecircleEventsApi {
|
|
346
|
+
get(id: string): Promise<ComEvent | null>;
|
|
347
|
+
list(circleId?: string, status?: ComEventStatus, pagination?: ComPaginationInput): Promise<ComEventConnection>;
|
|
348
|
+
create(input: ComCreateEventInput): Promise<ComEvent>;
|
|
349
|
+
update(id: string, input: ComUpdateEventInput): Promise<ComEvent>;
|
|
350
|
+
transition(id: string, status: ComEventStatus): Promise<ComEvent>;
|
|
351
|
+
rsvp(eventId: string, status: ComRsvpStatus, note?: string): Promise<ComEventRsvp>;
|
|
352
|
+
}
|
|
353
|
+
interface ComradecirclePollsApi {
|
|
354
|
+
get(id: string): Promise<ComPoll | null>;
|
|
355
|
+
list(circleId: string, status?: ComPollStatus): Promise<ComPoll[]>;
|
|
356
|
+
create(input: ComCreatePollInput): Promise<ComPoll>;
|
|
357
|
+
close(id: string): Promise<ComPoll>;
|
|
358
|
+
vote(pollId: string, optionId: string): Promise<ComPollOption>;
|
|
359
|
+
}
|
|
360
|
+
interface ComradecircleProfilesApi {
|
|
361
|
+
get(memberId: string): Promise<ComProfile | null>;
|
|
362
|
+
list(discoverable?: boolean, pagination?: ComPaginationInput): Promise<ComProfileConnection>;
|
|
363
|
+
upsert(input: ComUpsertProfileInput): Promise<ComProfile>;
|
|
364
|
+
}
|
|
365
|
+
interface ComradecircleFeedApi {
|
|
366
|
+
myFeed(pagination?: ComPaginationInput): Promise<ComPostConnection>;
|
|
367
|
+
myFollows(targetType?: ComFollowTargetType): Promise<ComFeedFollow[]>;
|
|
368
|
+
follow(input: ComFollowInput): Promise<ComFeedFollow>;
|
|
369
|
+
unfollow(input: ComFollowInput): Promise<boolean>;
|
|
370
|
+
muteFollow(id: string, muted: boolean): Promise<ComFeedFollow>;
|
|
371
|
+
}
|
|
372
|
+
interface ComradecircleSystemApi {
|
|
373
|
+
health(): Promise<string>;
|
|
374
|
+
}
|
|
375
|
+
interface ComradecircleApi {
|
|
376
|
+
circles: ComradecircleCirclesApi;
|
|
377
|
+
channels: ComradecircleChannelsApi;
|
|
378
|
+
posts: ComradecirclePostsApi;
|
|
379
|
+
comments: ComradecircleCommentsApi;
|
|
380
|
+
memberships: ComradecircleMembershipsApi;
|
|
381
|
+
events: ComradecircleEventsApi;
|
|
382
|
+
polls: ComradecirclePollsApi;
|
|
383
|
+
profiles: ComradecircleProfilesApi;
|
|
384
|
+
feed: ComradecircleFeedApi;
|
|
385
|
+
system: ComradecircleSystemApi;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
declare const comradecircleModule: SdkModule<ComradecircleApi>;
|
|
389
|
+
|
|
390
|
+
export { type ComChannel, type ComChannelType, type ComChannelVisibility, type ComCircle, type ComCircleConnection, type ComCircleStatus, type ComCircleVisibility, type ComComment, type ComCreateChannelInput, type ComCreateCircleInput, type ComCreateCommentInput, type ComCreateEventInput, type ComCreatePollInput, type ComCreatePostInput, type ComEvent, type ComEventConnection, type ComEventMode, type ComEventRsvp, type ComEventStatus, type ComFeedFollow, type ComFileRef, type ComFollowInput, type ComFollowTargetType, type ComMemberRole, type ComMembership, type ComMembershipConnection, type ComMembershipStatus, type ComPageInfo, type ComPaginationInput, type ComPoll, type ComPollOption, type ComPollStatus, type ComPost, type ComPostConnection, type ComPostStatus, type ComPresence, type ComProfile, type ComProfileConnection, type ComReaction, type ComReactionType, type ComRsvpStatus, type ComUpdateChannelInput, type ComUpdateCircleInput, type ComUpdateEventInput, type ComUpdatePostInput, type ComUpsertProfileInput, type ComUserRef, type ComradecircleApi, type ComradecircleChannelsApi, type ComradecircleCirclesApi, type ComradecircleCommentsApi, type ComradecircleEventsApi, type ComradecircleFeedApi, type ComradecircleMembershipsApi, type ComradecirclePollsApi, type ComradecirclePostsApi, type ComradecircleProfilesApi, type ComradecircleSystemApi, comradecircleModule as default };
|