@messenger-box/core 0.0.1-alpha.112 → 0.0.1-alpha.127

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/index.js CHANGED
@@ -122,8 +122,8 @@ __exportStar(__webpack_require__(/*! ./interfaces */ "./src/interfaces/index.ts"
122
122
  "use strict";
123
123
 
124
124
  Object.defineProperty(exports, "__esModule", { value: true });
125
- exports.GetMessagesDocument = exports.useGetAllChannelLazyQuery = exports.useGetAllChannelQuery = exports.GetAllChannelDocument = exports.useGetChannelsByUserLazyQuery = exports.useGetChannelsByUserQuery = exports.GetChannelsByUserDocument = exports.useEditMessageMutation = exports.EditMessageDocument = exports.useDeleteMessageMutation = exports.DeleteMessageDocument = exports.useSendMessagesMutation = exports.SendMessagesDocument = exports.useDeleteChannelMutation = exports.DeleteChannelDocument = exports.useAddMemberToChannelMutation = exports.AddMemberToChannelDocument = exports.useAddDirectChannelMutation = exports.AddDirectChannelDocument = exports.useAddChannelMutation = exports.AddChannelDocument = exports.PostPropsFragmentDoc = exports.ConfigurationFragmentDoc = exports.IVisibility = exports.IUserOrderBy = exports.ISortEnum = exports.ISettingValueType = exports.IRoomType = exports.IRole = exports.IProjectType = exports.IPreDefinedRole = exports.IPortalLanguage = exports.IPermissionType = exports.IPermissionResource = exports.IPermissionAction = exports.IOrgUserRole = exports.IOrganizationContextPubSubEvents = exports.IOrgainizationInvitationRole = exports.IMoleculerServiceName = exports.IMessengerUserStatus = exports.IInviteStatus = exports.IConfigurationTarget = exports.IConfigurationScope = exports.IConfigFragmentName = exports.IConfigCollectionName = exports.IClientTypes = exports.IClientCacheTypeNames = exports.IChannelSort = exports.IChannelPrivacy = exports.IApplicationRoles = void 0;
126
- exports.useCurrentUserLazyQuery = exports.useCurrentUserQuery = exports.CurrentUserDocument = exports.useUsersToChatLazyQuery = exports.useUsersToChatQuery = exports.UsersToChatDocument = exports.useGetUserByIdLazyQuery = exports.useGetUserByIdQuery = exports.GetUserByIdDocument = exports.useGetAllUsersLazyQuery = exports.useGetAllUsersQuery = exports.GetAllUsersDocument = exports.useGetMessagesLazyQuery = exports.useGetMessagesQuery = void 0;
125
+ exports.useEditMessageMutation = exports.EditMessageDocument = exports.useDeleteMessageMutation = exports.DeleteMessageDocument = exports.useSendMessagesMutation = exports.SendMessagesDocument = exports.useDeleteChannelMutation = exports.DeleteChannelDocument = exports.useAddMemberToChannelMutation = exports.AddMemberToChannelDocument = exports.useAddDirectChannelMutation = exports.AddDirectChannelDocument = exports.useAddChannelMutation = exports.AddChannelDocument = exports.PostPropsFragmentDoc = exports.ConfigurationFragmentDoc = exports.IVisibility = exports.IUserOrderBy = exports.ISortEnum = exports.ISettingValueType = exports.IRoomType = exports.IRole = exports.IProjectType = exports.IPreDefinedRole = exports.IPortalLanguage = exports.IPermissionType = exports.IPermissionResource = exports.IPermissionAction = exports.IOrgUserRole = exports.IOrganizationContextPubSubEvents = exports.IOrgainizationInvitationRole = exports.IMoleculerTopics = exports.IMoleculerServiceName = exports.IMessengerUserStatus = exports.IInviteStatus = exports.IGlobalLanguages = exports.IGlobalCurrencies = exports.IFileRefType = exports.IEditPresentationTypes = exports.IConfigurationTarget = exports.IConfigurationScope = exports.IConfigFragmentName = exports.IConfigCollectionName = exports.IClientTypes = exports.IClientCacheTypeNames = exports.IChannelSort = exports.IChannelServiceCommands = exports.IChannelPrivacy = exports.IBaseServiceCommands = exports.IApplicationRoles = void 0;
126
+ exports.useCurrentUserLazyQuery = exports.useCurrentUserQuery = exports.CurrentUserDocument = exports.useUsersToChatLazyQuery = exports.useUsersToChatQuery = exports.UsersToChatDocument = exports.useGetUserByIdLazyQuery = exports.useGetUserByIdQuery = exports.GetUserByIdDocument = exports.useGetAllUsersLazyQuery = exports.useGetAllUsersQuery = exports.GetAllUsersDocument = exports.useGetMessagesLazyQuery = exports.useGetMessagesQuery = exports.GetMessagesDocument = exports.useGetAllChannelLazyQuery = exports.useGetAllChannelQuery = exports.GetAllChannelDocument = exports.useGetChannelsByUserLazyQuery = exports.useGetChannelsByUserQuery = exports.GetChannelsByUserDocument = exports.useUploadImgMutation = exports.UploadImgDocument = void 0;
127
127
  const Apollo = __webpack_require__(/*! @apollo/client */ "@apollo/client");
128
128
  const defaultOptions = {};
129
129
  var IApplicationRoles;
@@ -148,12 +148,55 @@ var IApplicationRoles;
148
148
  /** User who is logged in */
149
149
  IApplicationRoles["USER"] = "USER";
150
150
  })(IApplicationRoles = exports.IApplicationRoles || (exports.IApplicationRoles = {}));
151
+ var IBaseServiceCommands;
152
+ (function (IBaseServiceCommands) {
153
+ IBaseServiceCommands["count"] = "count";
154
+ IBaseServiceCommands["get"] = "get";
155
+ IBaseServiceCommands["getAll"] = "getAll";
156
+ IBaseServiceCommands["create"] = "create";
157
+ IBaseServiceCommands["insert"] = "insert";
158
+ IBaseServiceCommands["bulkCreate"] = "bulkCreate";
159
+ IBaseServiceCommands["update"] = "update";
160
+ IBaseServiceCommands["delete"] = "delete";
161
+ IBaseServiceCommands["getAllWithCount"] = "getAllWithCount";
162
+ })(IBaseServiceCommands = exports.IBaseServiceCommands || (exports.IBaseServiceCommands = {}));
151
163
  var IChannelPrivacy;
152
164
  (function (IChannelPrivacy) {
153
165
  IChannelPrivacy["PRIVATE"] = "PRIVATE";
154
166
  IChannelPrivacy["PUBLIC"] = "PUBLIC";
155
167
  IChannelPrivacy["ALL"] = "ALL";
156
168
  })(IChannelPrivacy = exports.IChannelPrivacy || (exports.IChannelPrivacy = {}));
169
+ var IChannelServiceCommands;
170
+ (function (IChannelServiceCommands) {
171
+ IChannelServiceCommands["createDirectChannel"] = "createDirectChannel";
172
+ IChannelServiceCommands["addMemberToChannel"] = "addMemberToChannel";
173
+ IChannelServiceCommands["saveDirectChannel"] = "saveDirectChannel";
174
+ IChannelServiceCommands["saveChannel"] = "saveChannel";
175
+ IChannelServiceCommands["getChannelUnread"] = "getChannelUnread";
176
+ IChannelServiceCommands["invalidateChannelByName"] = "invalidateChannelByName";
177
+ IChannelServiceCommands["getPinnedPosts"] = "getPinnedPosts";
178
+ IChannelServiceCommands["getFromMaster"] = "getFromMaster";
179
+ IChannelServiceCommands["restore"] = "restore";
180
+ IChannelServiceCommands["permanentDeleteByTeam"] = "permanentDeleteByTeam";
181
+ IChannelServiceCommands["permanentDelete"] = "permanentDelete";
182
+ IChannelServiceCommands["permanentDeleteMembersByChannel"] = "permanentDeleteMembersByChannel";
183
+ IChannelServiceCommands["getChannels"] = "getChannels";
184
+ IChannelServiceCommands["getMoreChannels"] = "getMoreChannels";
185
+ IChannelServiceCommands["getPrivateChannelsForTeam"] = "getPrivateChannelsForTeam";
186
+ IChannelServiceCommands["getPublicChannelsForTeam"] = "getPublicChannelsForTeam";
187
+ IChannelServiceCommands["getPublicChannelsByIdsForTeam"] = "getPublicChannelsByIdsForTeam";
188
+ IChannelServiceCommands["getChannelCounts"] = "getChannelCounts";
189
+ IChannelServiceCommands["getTeamChannels"] = "getTeamChannels";
190
+ IChannelServiceCommands["getByName"] = "getByName";
191
+ IChannelServiceCommands["getByNames"] = "getByNames";
192
+ IChannelServiceCommands["getByNameIncludeDeleted"] = "getByNameIncludeDeleted";
193
+ IChannelServiceCommands["getDeletedByName"] = "getDeletedByName";
194
+ IChannelServiceCommands["getDeleted"] = "getDeleted";
195
+ IChannelServiceCommands["saveMultipleMembers"] = "saveMultipleMembers";
196
+ IChannelServiceCommands["hideChannel"] = "hideChannel";
197
+ IChannelServiceCommands["leaveChannel"] = "leaveChannel";
198
+ IChannelServiceCommands["deleteChannel"] = "deleteChannel";
199
+ })(IChannelServiceCommands = exports.IChannelServiceCommands || (exports.IChannelServiceCommands = {}));
157
200
  var IChannelSort;
158
201
  (function (IChannelSort) {
159
202
  IChannelSort["NAME"] = "NAME";
@@ -194,7 +237,7 @@ var IConfigFragmentName;
194
237
  IConfigFragmentName["teamMembers"] = "teamMembers";
195
238
  /** Organization Members Document with role value */
196
239
  IConfigFragmentName["orgMembers"] = "orgMembers";
197
- /** Billing Plans */
240
+ /** Billing */
198
241
  IConfigFragmentName["billingPlanPolicies"] = "billingPlanPolicies";
199
242
  })(IConfigFragmentName = exports.IConfigFragmentName || (exports.IConfigFragmentName = {}));
200
243
  /**
@@ -226,6 +269,30 @@ var IConfigurationTarget;
226
269
  IConfigurationTarget["DEFAULT"] = "DEFAULT";
227
270
  IConfigurationTarget["MEMORY"] = "MEMORY";
228
271
  })(IConfigurationTarget = exports.IConfigurationTarget || (exports.IConfigurationTarget = {}));
272
+ var IEditPresentationTypes;
273
+ (function (IEditPresentationTypes) {
274
+ IEditPresentationTypes["Multiline"] = "Multiline";
275
+ IEditPresentationTypes["Singleline"] = "Singleline";
276
+ })(IEditPresentationTypes = exports.IEditPresentationTypes || (exports.IEditPresentationTypes = {}));
277
+ /** File Reference Type */
278
+ var IFileRefType;
279
+ (function (IFileRefType) {
280
+ IFileRefType["Post"] = "Post";
281
+ IFileRefType["Unknown"] = "Unknown";
282
+ })(IFileRefType = exports.IFileRefType || (exports.IFileRefType = {}));
283
+ var IGlobalCurrencies;
284
+ (function (IGlobalCurrencies) {
285
+ IGlobalCurrencies["USD"] = "USD";
286
+ IGlobalCurrencies["EURO"] = "EURO";
287
+ IGlobalCurrencies["AUD"] = "AUD";
288
+ })(IGlobalCurrencies = exports.IGlobalCurrencies || (exports.IGlobalCurrencies = {}));
289
+ var IGlobalLanguages;
290
+ (function (IGlobalLanguages) {
291
+ IGlobalLanguages["English"] = "English";
292
+ IGlobalLanguages["Spanish"] = "Spanish";
293
+ IGlobalLanguages["French"] = "French";
294
+ IGlobalLanguages["Russian"] = "Russian";
295
+ })(IGlobalLanguages = exports.IGlobalLanguages || (exports.IGlobalLanguages = {}));
229
296
  var IInviteStatus;
230
297
  (function (IInviteStatus) {
231
298
  IInviteStatus["PENDING"] = "PENDING";
@@ -244,6 +311,14 @@ var IMoleculerServiceName;
244
311
  (function (IMoleculerServiceName) {
245
312
  IMoleculerServiceName["dummy"] = "dummy";
246
313
  })(IMoleculerServiceName = exports.IMoleculerServiceName || (exports.IMoleculerServiceName = {}));
314
+ var IMoleculerTopics;
315
+ (function (IMoleculerTopics) {
316
+ IMoleculerTopics["BaseService"] = "BaseService";
317
+ IMoleculerTopics["ChannelService"] = "ChannelService";
318
+ IMoleculerTopics["PostService"] = "PostService";
319
+ IMoleculerTopics["PostThreadService"] = "PostThreadService";
320
+ IMoleculerTopics["ReactionService"] = "ReactionService";
321
+ })(IMoleculerTopics = exports.IMoleculerTopics || (exports.IMoleculerTopics = {}));
247
322
  /**
248
323
  * OrganizationInvitationRole: The possible organization invitation roles.
249
324
  *
@@ -377,184 +452,9 @@ var IVisibility;
377
452
  IVisibility["private"] = "private";
378
453
  IVisibility["public"] = "public";
379
454
  })(IVisibility = exports.IVisibility || (exports.IVisibility = {}));
380
- exports.ConfigurationFragmentDoc = {
381
- "kind": "Document",
382
- "definitions": [{
383
- "kind": "FragmentDefinition",
384
- "name": { "kind": "Name", "value": "Configuration" },
385
- "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "IConfigurationModel" } },
386
- "selectionSet": {
387
- "kind": "SelectionSet",
388
- "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "resource" } }, {
389
- "kind": "Field",
390
- "name": { "kind": "Name", "value": "target" }
391
- }, { "kind": "Field", "name": { "kind": "Name", "value": "contents" } }, {
392
- "kind": "Field",
393
- "name": { "kind": "Name", "value": "keys" }
394
- }, {
395
- "kind": "Field",
396
- "name": { "kind": "Name", "value": "overrides" },
397
- "selectionSet": {
398
- "kind": "SelectionSet",
399
- "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "contents" } }, {
400
- "kind": "Field",
401
- "name": { "kind": "Name", "value": "identifiers" }
402
- }]
403
- }
404
- }, { "kind": "Field", "name": { "kind": "Name", "value": "__typename" } }]
405
- }
406
- }]
407
- };
408
- exports.PostPropsFragmentDoc = {
409
- "kind": "Document", "definitions": [{
410
- "kind": "FragmentDefinition",
411
- "name": { "kind": "Name", "value": "PostProps" },
412
- "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "Post" } },
413
- "selectionSet": {
414
- "kind": "SelectionSet",
415
- "selections": [{
416
- "kind": "Field",
417
- "name": { "kind": "Name", "value": "author" },
418
- "selectionSet": {
419
- "kind": "SelectionSet",
420
- "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "username" } }]
421
- }
422
- }, { "kind": "Field", "name": { "kind": "Name", "value": "id" } }, {
423
- "kind": "Field",
424
- "name": { "kind": "Name", "value": "message" }
425
- }, { "kind": "Field", "name": { "kind": "Name", "value": "createdAt" } }, {
426
- "kind": "Field",
427
- "name": { "kind": "Name", "value": "editedBy" },
428
- "selectionSet": {
429
- "kind": "SelectionSet",
430
- "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "alias" } }]
431
- }
432
- }, { "kind": "Field", "name": { "kind": "Name", "value": "updatedAt" } }, {
433
- "kind": "Field",
434
- "name": { "kind": "Name", "value": "propsConfiguration" },
435
- "selectionSet": {
436
- "kind": "SelectionSet",
437
- "selections": [{ "kind": "FragmentSpread", "name": { "kind": "Name", "value": "Configuration" } }]
438
- }
439
- }, {
440
- "kind": "Field",
441
- "name": { "kind": "Name", "value": "isPinned" },
442
- "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }]
443
- }, {
444
- "kind": "Field",
445
- "name": { "kind": "Name", "value": "center" },
446
- "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }]
447
- }, {
448
- "kind": "Field",
449
- "name": { "kind": "Name", "value": "compactDisplay" },
450
- "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }]
451
- }, {
452
- "kind": "Field",
453
- "name": { "kind": "Name", "value": "isFirstReply" },
454
- "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }]
455
- }, {
456
- "kind": "Field",
457
- "name": { "kind": "Name", "value": "shouldHighlight" },
458
- "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }]
459
- }, {
460
- "kind": "Field",
461
- "name": { "kind": "Name", "value": "consecutivePostByUser" },
462
- "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }]
463
- }, {
464
- "kind": "Field",
465
- "name": { "kind": "Name", "value": "previousPostIsComment" },
466
- "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }]
467
- }, {
468
- "kind": "Field",
469
- "name": { "kind": "Name", "value": "isCommentMention" },
470
- "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }]
471
- }, {
472
- "kind": "Field",
473
- "name": { "kind": "Name", "value": "hasReplies" },
474
- "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }]
475
- }, {
476
- "kind": "Field",
477
- "name": { "kind": "Name", "value": "isLastPost" },
478
- "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }]
479
- }, {
480
- "kind": "Field",
481
- "name": { "kind": "Name", "value": "channelArchived" },
482
- "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }]
483
- }, {
484
- "kind": "Field",
485
- "name": { "kind": "Name", "value": "isFlagged" },
486
- "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }]
487
- }, {
488
- "kind": "Field",
489
- "name": { "kind": "Name", "value": "isCollapsedThreadsEnabled" },
490
- "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }]
491
- }]
492
- }
493
- }, {
494
- "kind": "FragmentDefinition",
495
- "name": { "kind": "Name", "value": "Configuration" },
496
- "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "IConfigurationModel" } },
497
- "selectionSet": {
498
- "kind": "SelectionSet",
499
- "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "resource" } }, {
500
- "kind": "Field",
501
- "name": { "kind": "Name", "value": "target" }
502
- }, { "kind": "Field", "name": { "kind": "Name", "value": "contents" } }, {
503
- "kind": "Field",
504
- "name": { "kind": "Name", "value": "keys" }
505
- }, {
506
- "kind": "Field",
507
- "name": { "kind": "Name", "value": "overrides" },
508
- "selectionSet": {
509
- "kind": "SelectionSet",
510
- "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "contents" } }, {
511
- "kind": "Field",
512
- "name": { "kind": "Name", "value": "identifiers" }
513
- }]
514
- }
515
- }, { "kind": "Field", "name": { "kind": "Name", "value": "__typename" } }]
516
- }
517
- }]
518
- };
519
- exports.AddChannelDocument = {
520
- "kind": "Document", "definitions": [{
521
- "kind": "OperationDefinition",
522
- "operation": "mutation",
523
- "name": { "kind": "Name", "value": "AddChannel" },
524
- "variableDefinitions": [{
525
- "kind": "VariableDefinition",
526
- "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "name" } },
527
- "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } }
528
- }, {
529
- "kind": "VariableDefinition",
530
- "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "description" } },
531
- "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } }
532
- }],
533
- "selectionSet": {
534
- "kind": "SelectionSet",
535
- "selections": [{
536
- "kind": "Field",
537
- "name": { "kind": "Name", "value": "createChannel" },
538
- "arguments": [{
539
- "kind": "Argument",
540
- "name": { "kind": "Name", "value": "name" },
541
- "value": { "kind": "Variable", "name": { "kind": "Name", "value": "name" } }
542
- }, {
543
- "kind": "Argument",
544
- "name": { "kind": "Name", "value": "description" },
545
- "value": { "kind": "Variable", "name": { "kind": "Name", "value": "description" } }
546
- }],
547
- "selectionSet": {
548
- "kind": "SelectionSet",
549
- "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, {
550
- "kind": "Field",
551
- "name": { "kind": "Name", "value": "title" }
552
- }, { "kind": "Field", "name": { "kind": "Name", "value": "type" } }]
553
- }
554
- }]
555
- }
556
- }]
557
- };
455
+ exports.ConfigurationFragmentDoc = { "kind": "Document", "definitions": [{ "kind": "FragmentDefinition", "name": { "kind": "Name", "value": "Configuration" }, "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "IConfigurationModel" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "resource" } }, { "kind": "Field", "name": { "kind": "Name", "value": "target" } }, { "kind": "Field", "name": { "kind": "Name", "value": "contents" } }, { "kind": "Field", "name": { "kind": "Name", "value": "keys" } }, { "kind": "Field", "name": { "kind": "Name", "value": "overrides" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "contents" } }, { "kind": "Field", "name": { "kind": "Name", "value": "identifiers" } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "__typename" } }] } }] };
456
+ exports.PostPropsFragmentDoc = { "kind": "Document", "definitions": [{ "kind": "FragmentDefinition", "name": { "kind": "Name", "value": "PostProps" }, "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "Post" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "author" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "username" } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "message" } }, { "kind": "Field", "name": { "kind": "Name", "value": "createdAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "editedBy" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "alias" } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "updatedAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "propsConfiguration" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "FragmentSpread", "name": { "kind": "Name", "value": "Configuration" } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "files" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "totalCount" } }, { "kind": "Field", "name": { "kind": "Name", "value": "data" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "name" } }, { "kind": "Field", "name": { "kind": "Name", "value": "extension" } }, { "kind": "Field", "name": { "kind": "Name", "value": "mimeType" } }, { "kind": "Field", "name": { "kind": "Name", "value": "height" } }, { "kind": "Field", "name": { "kind": "Name", "value": "width" } }, { "kind": "Field", "name": { "kind": "Name", "value": "size" } }, { "kind": "Field", "name": { "kind": "Name", "value": "url" } }, { "kind": "Field", "name": { "kind": "Name", "value": "refType" } }] } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "isPinned" }, "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }] }, { "kind": "Field", "name": { "kind": "Name", "value": "center" }, "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }] }, { "kind": "Field", "name": { "kind": "Name", "value": "compactDisplay" }, "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }] }, { "kind": "Field", "name": { "kind": "Name", "value": "isFirstReply" }, "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }] }, { "kind": "Field", "name": { "kind": "Name", "value": "shouldHighlight" }, "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }] }, { "kind": "Field", "name": { "kind": "Name", "value": "consecutivePostByUser" }, "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }] }, { "kind": "Field", "name": { "kind": "Name", "value": "previousPostIsComment" }, "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }] }, { "kind": "Field", "name": { "kind": "Name", "value": "isCommentMention" }, "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }] }, { "kind": "Field", "name": { "kind": "Name", "value": "hasReplies" }, "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }] }, { "kind": "Field", "name": { "kind": "Name", "value": "isLastPost" }, "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }] }, { "kind": "Field", "name": { "kind": "Name", "value": "channelArchived" }, "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }] }, { "kind": "Field", "name": { "kind": "Name", "value": "isFlagged" }, "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }] }, { "kind": "Field", "name": { "kind": "Name", "value": "isCollapsedThreadsEnabled" }, "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }] }] } }, { "kind": "FragmentDefinition", "name": { "kind": "Name", "value": "Configuration" }, "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "IConfigurationModel" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "resource" } }, { "kind": "Field", "name": { "kind": "Name", "value": "target" } }, { "kind": "Field", "name": { "kind": "Name", "value": "contents" } }, { "kind": "Field", "name": { "kind": "Name", "value": "keys" } }, { "kind": "Field", "name": { "kind": "Name", "value": "overrides" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "contents" } }, { "kind": "Field", "name": { "kind": "Name", "value": "identifiers" } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "__typename" } }] } }] };
457
+ exports.AddChannelDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "AddChannel" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "name" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "description" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "createChannel" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "name" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "name" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "description" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "description" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "title" } }, { "kind": "Field", "name": { "kind": "Name", "value": "type" } }] } }] } }] };
558
458
  /**
559
459
  * __useAddChannelMutation__
560
460
  *
@@ -578,58 +478,7 @@ function useAddChannelMutation(baseOptions) {
578
478
  return Apollo.useMutation(exports.AddChannelDocument, options);
579
479
  }
580
480
  exports.useAddChannelMutation = useAddChannelMutation;
581
- exports.AddDirectChannelDocument = {
582
- "kind": "Document", "definitions": [{
583
- "kind": "OperationDefinition",
584
- "operation": "mutation",
585
- "name": { "kind": "Name", "value": "AddDirectChannel" },
586
- "variableDefinitions": [{
587
- "kind": "VariableDefinition",
588
- "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "receiver" } },
589
- "type": {
590
- "kind": "NonNullType",
591
- "type": { "kind": "ListType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "ID" } } }
592
- }
593
- }, {
594
- "kind": "VariableDefinition",
595
- "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "displayName" } },
596
- "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } }
597
- }],
598
- "selectionSet": {
599
- "kind": "SelectionSet",
600
- "selections": [{
601
- "kind": "Field",
602
- "name": { "kind": "Name", "value": "createDirectChannel" },
603
- "arguments": [{
604
- "kind": "Argument",
605
- "name": { "kind": "Name", "value": "receiver" },
606
- "value": { "kind": "Variable", "name": { "kind": "Name", "value": "receiver" } }
607
- }, {
608
- "kind": "Argument",
609
- "name": { "kind": "Name", "value": "displayName" },
610
- "value": { "kind": "Variable", "name": { "kind": "Name", "value": "displayName" } }
611
- }],
612
- "selectionSet": {
613
- "kind": "SelectionSet",
614
- "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, {
615
- "kind": "Field",
616
- "name": { "kind": "Name", "value": "displayName" }
617
- }, { "kind": "Field", "name": { "kind": "Name", "value": "title" } }, {
618
- "kind": "Field",
619
- "name": { "kind": "Name", "value": "type" }
620
- }, {
621
- "kind": "Field",
622
- "name": { "kind": "Name", "value": "members" },
623
- "selectionSet": {
624
- "kind": "SelectionSet",
625
- "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "user" } }]
626
- }
627
- }]
628
- }
629
- }]
630
- }
631
- }]
632
- };
481
+ exports.AddDirectChannelDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "AddDirectChannel" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "receiver" } }, "type": { "kind": "NonNullType", "type": { "kind": "ListType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "ID" } } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "displayName" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "createDirectChannel" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "receiver" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "receiver" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "displayName" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "displayName" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "displayName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "title" } }, { "kind": "Field", "name": { "kind": "Name", "value": "type" } }, { "kind": "Field", "name": { "kind": "Name", "value": "members" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "user" } }] } }] } }] } }] };
633
482
  /**
634
483
  * __useAddDirectChannelMutation__
635
484
  *
@@ -653,55 +502,7 @@ function useAddDirectChannelMutation(baseOptions) {
653
502
  return Apollo.useMutation(exports.AddDirectChannelDocument, options);
654
503
  }
655
504
  exports.useAddDirectChannelMutation = useAddDirectChannelMutation;
656
- exports.AddMemberToChannelDocument = {
657
- "kind": "Document", "definitions": [{
658
- "kind": "OperationDefinition",
659
- "operation": "mutation",
660
- "name": { "kind": "Name", "value": "AddMemberToChannel" },
661
- "variableDefinitions": [{
662
- "kind": "VariableDefinition",
663
- "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "channelId" } },
664
- "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } }
665
- }, {
666
- "kind": "VariableDefinition",
667
- "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "memberId" } },
668
- "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } }
669
- }],
670
- "selectionSet": {
671
- "kind": "SelectionSet",
672
- "selections": [{
673
- "kind": "Field",
674
- "name": { "kind": "Name", "value": "addMemberToChannel" },
675
- "arguments": [{
676
- "kind": "Argument",
677
- "name": { "kind": "Name", "value": "channelId" },
678
- "value": { "kind": "Variable", "name": { "kind": "Name", "value": "channelId" } }
679
- }, {
680
- "kind": "Argument",
681
- "name": { "kind": "Name", "value": "memberId" },
682
- "value": { "kind": "Variable", "name": { "kind": "Name", "value": "memberId" } }
683
- }],
684
- "selectionSet": {
685
- "kind": "SelectionSet",
686
- "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, {
687
- "kind": "Field",
688
- "name": { "kind": "Name", "value": "displayName" }
689
- }, { "kind": "Field", "name": { "kind": "Name", "value": "title" } }, {
690
- "kind": "Field",
691
- "name": { "kind": "Name", "value": "type" }
692
- }, {
693
- "kind": "Field",
694
- "name": { "kind": "Name", "value": "members" },
695
- "selectionSet": {
696
- "kind": "SelectionSet",
697
- "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "user" } }]
698
- }
699
- }]
700
- }
701
- }]
702
- }
703
- }]
704
- };
505
+ exports.AddMemberToChannelDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "AddMemberToChannel" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "channelId" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "memberId" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "addMemberToChannel" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "channelId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "channelId" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "memberId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "memberId" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "displayName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "title" } }, { "kind": "Field", "name": { "kind": "Name", "value": "type" } }, { "kind": "Field", "name": { "kind": "Name", "value": "members" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "user" } }] } }] } }] } }] };
705
506
  /**
706
507
  * __useAddMemberToChannelMutation__
707
508
  *
@@ -725,31 +526,7 @@ function useAddMemberToChannelMutation(baseOptions) {
725
526
  return Apollo.useMutation(exports.AddMemberToChannelDocument, options);
726
527
  }
727
528
  exports.useAddMemberToChannelMutation = useAddMemberToChannelMutation;
728
- exports.DeleteChannelDocument = {
729
- "kind": "Document",
730
- "definitions": [{
731
- "kind": "OperationDefinition",
732
- "operation": "mutation",
733
- "name": { "kind": "Name", "value": "DeleteChannel" },
734
- "variableDefinitions": [{
735
- "kind": "VariableDefinition",
736
- "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "ChannelId" } },
737
- "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "ID" } } }
738
- }],
739
- "selectionSet": {
740
- "kind": "SelectionSet",
741
- "selections": [{
742
- "kind": "Field",
743
- "name": { "kind": "Name", "value": "deleteChannel" },
744
- "arguments": [{
745
- "kind": "Argument",
746
- "name": { "kind": "Name", "value": "id" },
747
- "value": { "kind": "Variable", "name": { "kind": "Name", "value": "ChannelId" } }
748
- }]
749
- }]
750
- }
751
- }]
752
- };
529
+ exports.DeleteChannelDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "DeleteChannel" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "ChannelId" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "ID" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "deleteChannel" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "id" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "ChannelId" } } }] }] } }] };
753
530
  /**
754
531
  * __useDeleteChannelMutation__
755
532
  *
@@ -772,49 +549,7 @@ function useDeleteChannelMutation(baseOptions) {
772
549
  return Apollo.useMutation(exports.DeleteChannelDocument, options);
773
550
  }
774
551
  exports.useDeleteChannelMutation = useDeleteChannelMutation;
775
- exports.SendMessagesDocument = {
776
- "kind": "Document", "definitions": [{
777
- "kind": "OperationDefinition",
778
- "operation": "mutation",
779
- "name": { "kind": "Name", "value": "SendMessages" },
780
- "variableDefinitions": [{
781
- "kind": "VariableDefinition",
782
- "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "channelId" } },
783
- "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } }
784
- }, {
785
- "kind": "VariableDefinition",
786
- "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "content" } },
787
- "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } }
788
- }],
789
- "selectionSet": {
790
- "kind": "SelectionSet",
791
- "selections": [{
792
- "kind": "Field",
793
- "name": { "kind": "Name", "value": "sendMessage" },
794
- "arguments": [{
795
- "kind": "Argument",
796
- "name": { "kind": "Name", "value": "channelId" },
797
- "value": { "kind": "Variable", "name": { "kind": "Name", "value": "channelId" } }
798
- }, {
799
- "kind": "Argument",
800
- "name": { "kind": "Name", "value": "messageInput" },
801
- "value": {
802
- "kind": "ObjectValue",
803
- "fields": [{
804
- "kind": "ObjectField",
805
- "name": { "kind": "Name", "value": "content" },
806
- "value": { "kind": "Variable", "name": { "kind": "Name", "value": "content" } }
807
- }]
808
- }
809
- }],
810
- "selectionSet": {
811
- "kind": "SelectionSet",
812
- "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }]
813
- }
814
- }]
815
- }
816
- }]
817
- };
552
+ exports.SendMessagesDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "SendMessages" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "channelId" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "content" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "files" } }, "type": { "kind": "NonNullType", "type": { "kind": "ListType", "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "Upload" } } } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "sendMessage" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "channelId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "channelId" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "messageInput" }, "value": { "kind": "ObjectValue", "fields": [{ "kind": "ObjectField", "name": { "kind": "Name", "value": "content" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "content" } } }, { "kind": "ObjectField", "name": { "kind": "Name", "value": "files" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "files" } } }] } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "message" } }] } }] } }] };
818
553
  /**
819
554
  * __useSendMessagesMutation__
820
555
  *
@@ -830,6 +565,7 @@ exports.SendMessagesDocument = {
830
565
  * variables: {
831
566
  * channelId: // value for 'channelId'
832
567
  * content: // value for 'content'
568
+ * files: // value for 'files'
833
569
  * },
834
570
  * });
835
571
  */
@@ -838,45 +574,7 @@ function useSendMessagesMutation(baseOptions) {
838
574
  return Apollo.useMutation(exports.SendMessagesDocument, options);
839
575
  }
840
576
  exports.useSendMessagesMutation = useSendMessagesMutation;
841
- exports.DeleteMessageDocument = {
842
- "kind": "Document", "definitions": [{
843
- "kind": "OperationDefinition",
844
- "operation": "mutation",
845
- "name": { "kind": "Name", "value": "DeleteMessage" },
846
- "variableDefinitions": [{
847
- "kind": "VariableDefinition",
848
- "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "messageId" } },
849
- "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } }
850
- }, {
851
- "kind": "VariableDefinition",
852
- "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "channelId" } },
853
- "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } }
854
- }],
855
- "selectionSet": {
856
- "kind": "SelectionSet",
857
- "selections": [{
858
- "kind": "Field",
859
- "name": { "kind": "Name", "value": "deleteMessage" },
860
- "arguments": [{
861
- "kind": "Argument",
862
- "name": { "kind": "Name", "value": "messageId" },
863
- "value": {
864
- "kind": "ObjectValue",
865
- "fields": [{
866
- "kind": "ObjectField",
867
- "name": { "kind": "Name", "value": "messageId" },
868
- "value": { "kind": "Variable", "name": { "kind": "Name", "value": "messageId" } }
869
- }, {
870
- "kind": "ObjectField",
871
- "name": { "kind": "Name", "value": "channelId" },
872
- "value": { "kind": "Variable", "name": { "kind": "Name", "value": "channelId" } }
873
- }]
874
- }
875
- }]
876
- }]
877
- }
878
- }]
879
- };
577
+ exports.DeleteMessageDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "DeleteMessage" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "messageId" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "channelId" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "deleteMessage" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "messageId" }, "value": { "kind": "ObjectValue", "fields": [{ "kind": "ObjectField", "name": { "kind": "Name", "value": "messageId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "messageId" } } }, { "kind": "ObjectField", "name": { "kind": "Name", "value": "channelId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "channelId" } } }] } }] }] } }] };
880
578
  /**
881
579
  * __useDeleteMessageMutation__
882
580
  *
@@ -900,64 +598,7 @@ function useDeleteMessageMutation(baseOptions) {
900
598
  return Apollo.useMutation(exports.DeleteMessageDocument, options);
901
599
  }
902
600
  exports.useDeleteMessageMutation = useDeleteMessageMutation;
903
- exports.EditMessageDocument = {
904
- "kind": "Document", "definitions": [{
905
- "kind": "OperationDefinition",
906
- "operation": "mutation",
907
- "name": { "kind": "Name", "value": "EditMessage" },
908
- "variableDefinitions": [{
909
- "kind": "VariableDefinition",
910
- "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "messageId" } },
911
- "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } }
912
- }, {
913
- "kind": "VariableDefinition",
914
- "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "channelId" } },
915
- "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } }
916
- }, {
917
- "kind": "VariableDefinition",
918
- "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "content" } },
919
- "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } }
920
- }],
921
- "selectionSet": {
922
- "kind": "SelectionSet",
923
- "selections": [{
924
- "kind": "Field",
925
- "name": { "kind": "Name", "value": "editMessage" },
926
- "arguments": [{
927
- "kind": "Argument",
928
- "name": { "kind": "Name", "value": "messageId" },
929
- "value": {
930
- "kind": "ObjectValue",
931
- "fields": [{
932
- "kind": "ObjectField",
933
- "name": { "kind": "Name", "value": "messageId" },
934
- "value": { "kind": "Variable", "name": { "kind": "Name", "value": "messageId" } }
935
- }, {
936
- "kind": "ObjectField",
937
- "name": { "kind": "Name", "value": "channelId" },
938
- "value": { "kind": "Variable", "name": { "kind": "Name", "value": "channelId" } }
939
- }]
940
- }
941
- }, {
942
- "kind": "Argument",
943
- "name": { "kind": "Name", "value": "messageInput" },
944
- "value": {
945
- "kind": "ObjectValue",
946
- "fields": [{
947
- "kind": "ObjectField",
948
- "name": { "kind": "Name", "value": "content" },
949
- "value": { "kind": "Variable", "name": { "kind": "Name", "value": "content" } }
950
- }]
951
- }
952
- }],
953
- "selectionSet": {
954
- "kind": "SelectionSet",
955
- "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }]
956
- }
957
- }]
958
- }
959
- }]
960
- };
601
+ exports.EditMessageDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "EditMessage" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "messageId" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "channelId" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "content" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "files" } }, "type": { "kind": "NonNullType", "type": { "kind": "ListType", "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "Upload" } } } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "editMessage" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "messageId" }, "value": { "kind": "ObjectValue", "fields": [{ "kind": "ObjectField", "name": { "kind": "Name", "value": "messageId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "messageId" } } }, { "kind": "ObjectField", "name": { "kind": "Name", "value": "channelId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "channelId" } } }] } }, { "kind": "Argument", "name": { "kind": "Name", "value": "messageInput" }, "value": { "kind": "ObjectValue", "fields": [{ "kind": "ObjectField", "name": { "kind": "Name", "value": "content" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "content" } } }, { "kind": "ObjectField", "name": { "kind": "Name", "value": "files" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "files" } } }] } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }] } }] } }] };
961
602
  /**
962
603
  * __useEditMessageMutation__
963
604
  *
@@ -974,6 +615,7 @@ exports.EditMessageDocument = {
974
615
  * messageId: // value for 'messageId'
975
616
  * channelId: // value for 'channelId'
976
617
  * content: // value for 'content'
618
+ * files: // value for 'files'
977
619
  * },
978
620
  * });
979
621
  */
@@ -982,41 +624,31 @@ function useEditMessageMutation(baseOptions) {
982
624
  return Apollo.useMutation(exports.EditMessageDocument, options);
983
625
  }
984
626
  exports.useEditMessageMutation = useEditMessageMutation;
985
- exports.GetChannelsByUserDocument = {
986
- "kind": "Document",
987
- "definitions": [{
988
- "kind": "OperationDefinition",
989
- "operation": "query",
990
- "name": { "kind": "Name", "value": "GetChannelsByUser" },
991
- "selectionSet": {
992
- "kind": "SelectionSet",
993
- "selections": [{
994
- "kind": "Field",
995
- "name": { "kind": "Name", "value": "channelsByUser" },
996
- "selectionSet": {
997
- "kind": "SelectionSet",
998
- "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, {
999
- "kind": "Field",
1000
- "name": { "kind": "Name", "value": "title" }
1001
- }, { "kind": "Field", "name": { "kind": "Name", "value": "description" } }, {
1002
- "kind": "Field",
1003
- "name": { "kind": "Name", "value": "type" }
1004
- }, { "kind": "Field", "name": { "kind": "Name", "value": "displayName" } }, {
1005
- "kind": "Field",
1006
- "name": { "kind": "Name", "value": "members" },
1007
- "selectionSet": {
1008
- "kind": "SelectionSet",
1009
- "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, {
1010
- "kind": "Field",
1011
- "name": { "kind": "Name", "value": "user" }
1012
- }]
1013
- }
1014
- }]
1015
- }
1016
- }]
1017
- }
1018
- }]
1019
- };
627
+ exports.UploadImgDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "UploadImg" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "files" } }, "type": { "kind": "NonNullType", "type": { "kind": "ListType", "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "Upload" } } } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "postId" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "uploadFile" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "files" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "files" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "postId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "postId" } } }] }] } }] };
628
+ /**
629
+ * __useUploadImgMutation__
630
+ *
631
+ * To run a mutation, you first call `useUploadImgMutation` within a React component and pass it any options that fit your needs.
632
+ * When your component renders, `useUploadImgMutation` returns a tuple that includes:
633
+ * - A mutate function that you can call at any time to execute the mutation
634
+ * - An object with fields that represent the current status of the mutation's execution
635
+ *
636
+ * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
637
+ *
638
+ * @example
639
+ * const [uploadImgMutation, { data, loading, error }] = useUploadImgMutation({
640
+ * variables: {
641
+ * files: // value for 'files'
642
+ * postId: // value for 'postId'
643
+ * },
644
+ * });
645
+ */
646
+ function useUploadImgMutation(baseOptions) {
647
+ const options = Object.assign(Object.assign({}, defaultOptions), baseOptions);
648
+ return Apollo.useMutation(exports.UploadImgDocument, options);
649
+ }
650
+ exports.useUploadImgMutation = useUploadImgMutation;
651
+ exports.GetChannelsByUserDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "GetChannelsByUser" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "channelsByUser" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "title" } }, { "kind": "Field", "name": { "kind": "Name", "value": "description" } }, { "kind": "Field", "name": { "kind": "Name", "value": "type" } }, { "kind": "Field", "name": { "kind": "Name", "value": "displayName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "members" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "user" } }] } }] } }] } }] };
1020
652
  /**
1021
653
  * __useGetChannelsByUserQuery__
1022
654
  *
@@ -1042,41 +674,7 @@ function useGetChannelsByUserLazyQuery(baseOptions) {
1042
674
  return Apollo.useLazyQuery(exports.GetChannelsByUserDocument, options);
1043
675
  }
1044
676
  exports.useGetChannelsByUserLazyQuery = useGetChannelsByUserLazyQuery;
1045
- exports.GetAllChannelDocument = {
1046
- "kind": "Document",
1047
- "definitions": [{
1048
- "kind": "OperationDefinition",
1049
- "operation": "query",
1050
- "name": { "kind": "Name", "value": "GetAllChannel" },
1051
- "selectionSet": {
1052
- "kind": "SelectionSet",
1053
- "selections": [{
1054
- "kind": "Field",
1055
- "name": { "kind": "Name", "value": "channels" },
1056
- "selectionSet": {
1057
- "kind": "SelectionSet",
1058
- "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, {
1059
- "kind": "Field",
1060
- "name": { "kind": "Name", "value": "title" }
1061
- }, { "kind": "Field", "name": { "kind": "Name", "value": "description" } }, {
1062
- "kind": "Field",
1063
- "name": { "kind": "Name", "value": "type" }
1064
- }, { "kind": "Field", "name": { "kind": "Name", "value": "displayName" } }, {
1065
- "kind": "Field",
1066
- "name": { "kind": "Name", "value": "members" },
1067
- "selectionSet": {
1068
- "kind": "SelectionSet",
1069
- "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, {
1070
- "kind": "Field",
1071
- "name": { "kind": "Name", "value": "user" }
1072
- }]
1073
- }
1074
- }]
1075
- }
1076
- }]
1077
- }
1078
- }]
1079
- };
677
+ exports.GetAllChannelDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "GetAllChannel" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "channels" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "title" } }, { "kind": "Field", "name": { "kind": "Name", "value": "description" } }, { "kind": "Field", "name": { "kind": "Name", "value": "type" } }, { "kind": "Field", "name": { "kind": "Name", "value": "displayName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "members" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "user" } }] } }] } }] } }] };
1080
678
  /**
1081
679
  * __useGetAllChannelQuery__
1082
680
  *
@@ -1102,154 +700,7 @@ function useGetAllChannelLazyQuery(baseOptions) {
1102
700
  return Apollo.useLazyQuery(exports.GetAllChannelDocument, options);
1103
701
  }
1104
702
  exports.useGetAllChannelLazyQuery = useGetAllChannelLazyQuery;
1105
- exports.GetMessagesDocument = {
1106
- "kind": "Document",
1107
- "definitions": [{
1108
- "kind": "OperationDefinition",
1109
- "operation": "query",
1110
- "name": { "kind": "Name", "value": "GetMessages" },
1111
- "variableDefinitions": [{
1112
- "kind": "VariableDefinition",
1113
- "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "channelId" } },
1114
- "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "ID" } }
1115
- }],
1116
- "selectionSet": {
1117
- "kind": "SelectionSet",
1118
- "selections": [{
1119
- "kind": "Field",
1120
- "name": { "kind": "Name", "value": "messages" },
1121
- "arguments": [{
1122
- "kind": "Argument",
1123
- "name": { "kind": "Name", "value": "channelId" },
1124
- "value": { "kind": "Variable", "name": { "kind": "Name", "value": "channelId" } }
1125
- }, {
1126
- "kind": "Argument",
1127
- "name": { "kind": "Name", "value": "limit" },
1128
- "value": { "kind": "IntValue", "value": "100" }
1129
- }],
1130
- "selectionSet": {
1131
- "kind": "SelectionSet",
1132
- "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "totalCount" } }, {
1133
- "kind": "Field",
1134
- "name": { "kind": "Name", "value": "data" },
1135
- "selectionSet": {
1136
- "kind": "SelectionSet",
1137
- "selections": [{ "kind": "FragmentSpread", "name": { "kind": "Name", "value": "PostProps" } }]
1138
- }
1139
- }]
1140
- }
1141
- }]
1142
- }
1143
- }, {
1144
- "kind": "FragmentDefinition",
1145
- "name": { "kind": "Name", "value": "Configuration" },
1146
- "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "IConfigurationModel" } },
1147
- "selectionSet": {
1148
- "kind": "SelectionSet",
1149
- "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "resource" } }, {
1150
- "kind": "Field",
1151
- "name": { "kind": "Name", "value": "target" }
1152
- }, { "kind": "Field", "name": { "kind": "Name", "value": "contents" } }, {
1153
- "kind": "Field",
1154
- "name": { "kind": "Name", "value": "keys" }
1155
- }, {
1156
- "kind": "Field",
1157
- "name": { "kind": "Name", "value": "overrides" },
1158
- "selectionSet": {
1159
- "kind": "SelectionSet",
1160
- "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "contents" } }, {
1161
- "kind": "Field",
1162
- "name": { "kind": "Name", "value": "identifiers" }
1163
- }]
1164
- }
1165
- }, { "kind": "Field", "name": { "kind": "Name", "value": "__typename" } }]
1166
- }
1167
- }, {
1168
- "kind": "FragmentDefinition",
1169
- "name": { "kind": "Name", "value": "PostProps" },
1170
- "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "Post" } },
1171
- "selectionSet": {
1172
- "kind": "SelectionSet",
1173
- "selections": [{
1174
- "kind": "Field",
1175
- "name": { "kind": "Name", "value": "author" },
1176
- "selectionSet": {
1177
- "kind": "SelectionSet",
1178
- "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "username" } }]
1179
- }
1180
- }, { "kind": "Field", "name": { "kind": "Name", "value": "id" } }, {
1181
- "kind": "Field",
1182
- "name": { "kind": "Name", "value": "message" }
1183
- }, { "kind": "Field", "name": { "kind": "Name", "value": "createdAt" } }, {
1184
- "kind": "Field",
1185
- "name": { "kind": "Name", "value": "editedBy" },
1186
- "selectionSet": {
1187
- "kind": "SelectionSet",
1188
- "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "alias" } }]
1189
- }
1190
- }, { "kind": "Field", "name": { "kind": "Name", "value": "updatedAt" } }, {
1191
- "kind": "Field",
1192
- "name": { "kind": "Name", "value": "propsConfiguration" },
1193
- "selectionSet": {
1194
- "kind": "SelectionSet",
1195
- "selections": [{ "kind": "FragmentSpread", "name": { "kind": "Name", "value": "Configuration" } }]
1196
- }
1197
- }, {
1198
- "kind": "Field",
1199
- "name": { "kind": "Name", "value": "isPinned" },
1200
- "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }]
1201
- }, {
1202
- "kind": "Field",
1203
- "name": { "kind": "Name", "value": "center" },
1204
- "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }]
1205
- }, {
1206
- "kind": "Field",
1207
- "name": { "kind": "Name", "value": "compactDisplay" },
1208
- "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }]
1209
- }, {
1210
- "kind": "Field",
1211
- "name": { "kind": "Name", "value": "isFirstReply" },
1212
- "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }]
1213
- }, {
1214
- "kind": "Field",
1215
- "name": { "kind": "Name", "value": "shouldHighlight" },
1216
- "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }]
1217
- }, {
1218
- "kind": "Field",
1219
- "name": { "kind": "Name", "value": "consecutivePostByUser" },
1220
- "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }]
1221
- }, {
1222
- "kind": "Field",
1223
- "name": { "kind": "Name", "value": "previousPostIsComment" },
1224
- "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }]
1225
- }, {
1226
- "kind": "Field",
1227
- "name": { "kind": "Name", "value": "isCommentMention" },
1228
- "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }]
1229
- }, {
1230
- "kind": "Field",
1231
- "name": { "kind": "Name", "value": "hasReplies" },
1232
- "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }]
1233
- }, {
1234
- "kind": "Field",
1235
- "name": { "kind": "Name", "value": "isLastPost" },
1236
- "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }]
1237
- }, {
1238
- "kind": "Field",
1239
- "name": { "kind": "Name", "value": "channelArchived" },
1240
- "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }]
1241
- }, {
1242
- "kind": "Field",
1243
- "name": { "kind": "Name", "value": "isFlagged" },
1244
- "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }]
1245
- }, {
1246
- "kind": "Field",
1247
- "name": { "kind": "Name", "value": "isCollapsedThreadsEnabled" },
1248
- "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }]
1249
- }]
1250
- }
1251
- }]
1252
- };
703
+ exports.GetMessagesDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "GetMessages" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "channelId" } }, "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "ID" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "messages" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "channelId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "channelId" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "limit" }, "value": { "kind": "IntValue", "value": "100" } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "totalCount" } }, { "kind": "Field", "name": { "kind": "Name", "value": "data" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "FragmentSpread", "name": { "kind": "Name", "value": "PostProps" } }] } }] } }] } }, { "kind": "FragmentDefinition", "name": { "kind": "Name", "value": "Configuration" }, "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "IConfigurationModel" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "resource" } }, { "kind": "Field", "name": { "kind": "Name", "value": "target" } }, { "kind": "Field", "name": { "kind": "Name", "value": "contents" } }, { "kind": "Field", "name": { "kind": "Name", "value": "keys" } }, { "kind": "Field", "name": { "kind": "Name", "value": "overrides" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "contents" } }, { "kind": "Field", "name": { "kind": "Name", "value": "identifiers" } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "__typename" } }] } }, { "kind": "FragmentDefinition", "name": { "kind": "Name", "value": "PostProps" }, "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "Post" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "author" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "username" } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "message" } }, { "kind": "Field", "name": { "kind": "Name", "value": "createdAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "editedBy" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "alias" } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "updatedAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "propsConfiguration" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "FragmentSpread", "name": { "kind": "Name", "value": "Configuration" } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "files" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "totalCount" } }, { "kind": "Field", "name": { "kind": "Name", "value": "data" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "name" } }, { "kind": "Field", "name": { "kind": "Name", "value": "extension" } }, { "kind": "Field", "name": { "kind": "Name", "value": "mimeType" } }, { "kind": "Field", "name": { "kind": "Name", "value": "height" } }, { "kind": "Field", "name": { "kind": "Name", "value": "width" } }, { "kind": "Field", "name": { "kind": "Name", "value": "size" } }, { "kind": "Field", "name": { "kind": "Name", "value": "url" } }, { "kind": "Field", "name": { "kind": "Name", "value": "refType" } }] } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "isPinned" }, "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }] }, { "kind": "Field", "name": { "kind": "Name", "value": "center" }, "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }] }, { "kind": "Field", "name": { "kind": "Name", "value": "compactDisplay" }, "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }] }, { "kind": "Field", "name": { "kind": "Name", "value": "isFirstReply" }, "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }] }, { "kind": "Field", "name": { "kind": "Name", "value": "shouldHighlight" }, "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }] }, { "kind": "Field", "name": { "kind": "Name", "value": "consecutivePostByUser" }, "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }] }, { "kind": "Field", "name": { "kind": "Name", "value": "previousPostIsComment" }, "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }] }, { "kind": "Field", "name": { "kind": "Name", "value": "isCommentMention" }, "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }] }, { "kind": "Field", "name": { "kind": "Name", "value": "hasReplies" }, "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }] }, { "kind": "Field", "name": { "kind": "Name", "value": "isLastPost" }, "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }] }, { "kind": "Field", "name": { "kind": "Name", "value": "channelArchived" }, "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }] }, { "kind": "Field", "name": { "kind": "Name", "value": "isFlagged" }, "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }] }, { "kind": "Field", "name": { "kind": "Name", "value": "isCollapsedThreadsEnabled" }, "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }] }] } }] };
1253
704
  /**
1254
705
  * __useGetMessagesQuery__
1255
706
  *
@@ -1276,31 +727,7 @@ function useGetMessagesLazyQuery(baseOptions) {
1276
727
  return Apollo.useLazyQuery(exports.GetMessagesDocument, options);
1277
728
  }
1278
729
  exports.useGetMessagesLazyQuery = useGetMessagesLazyQuery;
1279
- exports.GetAllUsersDocument = {
1280
- "kind": "Document",
1281
- "definitions": [{
1282
- "kind": "OperationDefinition",
1283
- "operation": "query",
1284
- "name": { "kind": "Name", "value": "GetAllUsers" },
1285
- "selectionSet": {
1286
- "kind": "SelectionSet",
1287
- "selections": [{
1288
- "kind": "Field",
1289
- "name": { "kind": "Name", "value": "getUsers" },
1290
- "selectionSet": {
1291
- "kind": "SelectionSet",
1292
- "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, {
1293
- "kind": "Field",
1294
- "name": { "kind": "Name", "value": "username" }
1295
- }, { "kind": "Field", "name": { "kind": "Name", "value": "email" } }, {
1296
- "kind": "Field",
1297
- "name": { "kind": "Name", "value": "alias" }
1298
- }]
1299
- }
1300
- }]
1301
- }
1302
- }]
1303
- };
730
+ exports.GetAllUsersDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "GetAllUsers" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "getUsers" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "username" } }, { "kind": "Field", "name": { "kind": "Name", "value": "email" } }, { "kind": "Field", "name": { "kind": "Name", "value": "alias" } }] } }] } }] };
1304
731
  /**
1305
732
  * __useGetAllUsersQuery__
1306
733
  *
@@ -1326,35 +753,7 @@ function useGetAllUsersLazyQuery(baseOptions) {
1326
753
  return Apollo.useLazyQuery(exports.GetAllUsersDocument, options);
1327
754
  }
1328
755
  exports.useGetAllUsersLazyQuery = useGetAllUsersLazyQuery;
1329
- exports.GetUserByIdDocument = {
1330
- "kind": "Document",
1331
- "definitions": [{
1332
- "kind": "OperationDefinition",
1333
- "operation": "query",
1334
- "name": { "kind": "Name", "value": "GetUserById" },
1335
- "variableDefinitions": [{
1336
- "kind": "VariableDefinition",
1337
- "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "userId" } },
1338
- "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } }
1339
- }],
1340
- "selectionSet": {
1341
- "kind": "SelectionSet",
1342
- "selections": [{
1343
- "kind": "Field",
1344
- "name": { "kind": "Name", "value": "getUserAccount" },
1345
- "arguments": [{
1346
- "kind": "Argument",
1347
- "name": { "kind": "Name", "value": "userId" },
1348
- "value": { "kind": "Variable", "name": { "kind": "Name", "value": "userId" } }
1349
- }],
1350
- "selectionSet": {
1351
- "kind": "SelectionSet",
1352
- "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "username" } }]
1353
- }
1354
- }]
1355
- }
1356
- }]
1357
- };
756
+ exports.GetUserByIdDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "GetUserById" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "userId" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "getUserAccount" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "userId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "userId" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "username" } }] } }] } }] };
1358
757
  /**
1359
758
  * __useGetUserByIdQuery__
1360
759
  *
@@ -1381,41 +780,7 @@ function useGetUserByIdLazyQuery(baseOptions) {
1381
780
  return Apollo.useLazyQuery(exports.GetUserByIdDocument, options);
1382
781
  }
1383
782
  exports.useGetUserByIdLazyQuery = useGetUserByIdLazyQuery;
1384
- exports.UsersToChatDocument = {
1385
- "kind": "Document",
1386
- "definitions": [{
1387
- "kind": "OperationDefinition",
1388
- "operation": "query",
1389
- "name": { "kind": "Name", "value": "UsersToChat" },
1390
- "variableDefinitions": [{
1391
- "kind": "VariableDefinition",
1392
- "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "auth0Id" } },
1393
- "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } }
1394
- }],
1395
- "selectionSet": {
1396
- "kind": "SelectionSet",
1397
- "selections": [{
1398
- "kind": "Field",
1399
- "name": { "kind": "Name", "value": "usersToChat" },
1400
- "arguments": [{
1401
- "kind": "Argument",
1402
- "name": { "kind": "Name", "value": "auth0Id" },
1403
- "value": { "kind": "Variable", "name": { "kind": "Name", "value": "auth0Id" } }
1404
- }],
1405
- "selectionSet": {
1406
- "kind": "SelectionSet",
1407
- "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, {
1408
- "kind": "Field",
1409
- "name": { "kind": "Name", "value": "username" }
1410
- }, { "kind": "Field", "name": { "kind": "Name", "value": "email" } }, {
1411
- "kind": "Field",
1412
- "name": { "kind": "Name", "value": "alias" }
1413
- }]
1414
- }
1415
- }]
1416
- }
1417
- }]
1418
- };
783
+ exports.UsersToChatDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "UsersToChat" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "auth0Id" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "usersToChat" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "auth0Id" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "auth0Id" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "username" } }, { "kind": "Field", "name": { "kind": "Name", "value": "email" } }, { "kind": "Field", "name": { "kind": "Name", "value": "alias" } }] } }] } }] };
1419
784
  /**
1420
785
  * __useUsersToChatQuery__
1421
786
  *
@@ -1442,41 +807,7 @@ function useUsersToChatLazyQuery(baseOptions) {
1442
807
  return Apollo.useLazyQuery(exports.UsersToChatDocument, options);
1443
808
  }
1444
809
  exports.useUsersToChatLazyQuery = useUsersToChatLazyQuery;
1445
- exports.CurrentUserDocument = {
1446
- "kind": "Document",
1447
- "definitions": [{
1448
- "kind": "OperationDefinition",
1449
- "operation": "query",
1450
- "name": { "kind": "Name", "value": "CurrentUser" },
1451
- "variableDefinitions": [{
1452
- "kind": "VariableDefinition",
1453
- "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "auth0Id" } },
1454
- "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } }
1455
- }],
1456
- "selectionSet": {
1457
- "kind": "SelectionSet",
1458
- "selections": [{
1459
- "kind": "Field",
1460
- "name": { "kind": "Name", "value": "currentUser" },
1461
- "arguments": [{
1462
- "kind": "Argument",
1463
- "name": { "kind": "Name", "value": "auth0Id" },
1464
- "value": { "kind": "Variable", "name": { "kind": "Name", "value": "auth0Id" } }
1465
- }],
1466
- "selectionSet": {
1467
- "kind": "SelectionSet",
1468
- "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, {
1469
- "kind": "Field",
1470
- "name": { "kind": "Name", "value": "username" }
1471
- }, { "kind": "Field", "name": { "kind": "Name", "value": "email" } }, {
1472
- "kind": "Field",
1473
- "name": { "kind": "Name", "value": "alias" }
1474
- }]
1475
- }
1476
- }]
1477
- }
1478
- }]
1479
- };
810
+ exports.CurrentUserDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "CurrentUser" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "auth0Id" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "currentUser" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "auth0Id" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "auth0Id" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "username" } }, { "kind": "Field", "name": { "kind": "Name", "value": "email" } }, { "kind": "Field", "name": { "kind": "Name", "value": "alias" } }] } }] } }] };
1480
811
  /**
1481
812
  * __useCurrentUserQuery__
1482
813
  *