@messenger-box/core 0.0.1-alpha.126 → 0.0.1-alpha.137

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.GetAllChannelDocument = exports.useGetChannelsByUserLazyQuery = exports.useGetChannelsByUserQuery = exports.GetChannelsByUserDocument = exports.useUploadImgMutation = exports.UploadImgDocument = 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.IFileRefType = 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 = exports.GetMessagesDocument = exports.useGetAllChannelLazyQuery = exports.useGetAllChannelQuery = void 0;
125
+ 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.FileInfoFragmentDoc = exports.IVisibility = exports.IUserOrderBy = exports.ISortEnum = exports.ISettingValueType = exports.IRoomType = exports.IRole = exports.IProjectType = exports.IPreDefinedRole = exports.IPostServiceCommands = 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.useDeleteMessageFileMutation = exports.DeleteMessageFileDocument = exports.useAttachUploadedFileToMessageMutation = exports.AttachUploadedFileToMessageDocument = exports.useCreateMessageFileUploadLinkMutation = exports.CreateMessageFileUploadLinkDocument = exports.useEditMessageMutation = exports.EditMessageDocument = void 0;
127
127
  const Apollo = __webpack_require__(/*! @apollo/client */ "@apollo/client");
128
128
  const defaultOptions = {};
129
129
  var IApplicationRoles;
@@ -132,7 +132,7 @@ var IApplicationRoles;
132
132
  IApplicationRoles["ADMIN"] = "ADMIN";
133
133
  /** Project Contributors */
134
134
  IApplicationRoles["CONTRIBUTORS"] = "CONTRIBUTORS";
135
- /** Guest */
135
+ /** Guest */
136
136
  IApplicationRoles["GUEST"] = "GUEST";
137
137
  IApplicationRoles["MEMBER"] = "MEMBER";
138
138
  /** organization member */
@@ -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,12 +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 = {}));
229
277
  /** File Reference Type */
230
278
  var IFileRefType;
231
279
  (function (IFileRefType) {
232
280
  IFileRefType["Post"] = "Post";
233
281
  IFileRefType["Unknown"] = "Unknown";
234
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 = {}));
235
296
  var IInviteStatus;
236
297
  (function (IInviteStatus) {
237
298
  IInviteStatus["PENDING"] = "PENDING";
@@ -250,6 +311,14 @@ var IMoleculerServiceName;
250
311
  (function (IMoleculerServiceName) {
251
312
  IMoleculerServiceName["dummy"] = "dummy";
252
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 = {}));
253
322
  /**
254
323
  * OrganizationInvitationRole: The possible organization invitation roles.
255
324
  *
@@ -313,6 +382,12 @@ var IPortalLanguage;
313
382
  IPortalLanguage["Spanish"] = "Spanish";
314
383
  IPortalLanguage["Russian"] = "Russian";
315
384
  })(IPortalLanguage = exports.IPortalLanguage || (exports.IPortalLanguage = {}));
385
+ var IPostServiceCommands;
386
+ (function (IPostServiceCommands) {
387
+ IPostServiceCommands["attachUploadedFile"] = "attachUploadedFile";
388
+ IPostServiceCommands["createFileUploadLink"] = "createFileUploadLink";
389
+ IPostServiceCommands["deleteFile"] = "deleteFile";
390
+ })(IPostServiceCommands = exports.IPostServiceCommands || (exports.IPostServiceCommands = {}));
316
391
  var IPreDefinedRole;
317
392
  (function (IPreDefinedRole) {
318
393
  IPreDefinedRole["OWNER"] = "OWNER";
@@ -383,6 +458,7 @@ var IVisibility;
383
458
  IVisibility["private"] = "private";
384
459
  IVisibility["public"] = "public";
385
460
  })(IVisibility = exports.IVisibility || (exports.IVisibility = {}));
461
+ exports.FileInfoFragmentDoc = { "kind": "Document", "definitions": [{ "kind": "FragmentDefinition", "name": { "kind": "Name", "value": "FileInfo" }, "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "FileInfo" } }, "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": "width" } }, { "kind": "Field", "name": { "kind": "Name", "value": "height" } }, { "kind": "Field", "name": { "kind": "Name", "value": "url" } }, { "kind": "Field", "name": { "kind": "Name", "value": "ref" } }, { "kind": "Field", "name": { "kind": "Name", "value": "size" } }, { "kind": "Field", "name": { "kind": "Name", "value": "refType" } }] } }] };
386
462
  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" } }] } }] };
387
463
  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" } }] } }] };
388
464
  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" } }] } }] } }] };
@@ -480,7 +556,7 @@ function useDeleteChannelMutation(baseOptions) {
480
556
  return Apollo.useMutation(exports.DeleteChannelDocument, options);
481
557
  }
482
558
  exports.useDeleteChannelMutation = useDeleteChannelMutation;
483
- 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" } }] } }] } }] };
559
+ 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": "ListType", "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "ID" } } } } }], "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" } }] } }] } }] };
484
560
  /**
485
561
  * __useSendMessagesMutation__
486
562
  *
@@ -529,7 +605,7 @@ function useDeleteMessageMutation(baseOptions) {
529
605
  return Apollo.useMutation(exports.DeleteMessageDocument, options);
530
606
  }
531
607
  exports.useDeleteMessageMutation = useDeleteMessageMutation;
532
- 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" } }] } }] } }] };
608
+ 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": "ID" } } } } } }], "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" } }] } }] } }] };
533
609
  /**
534
610
  * __useEditMessageMutation__
535
611
  *
@@ -555,30 +631,77 @@ function useEditMessageMutation(baseOptions) {
555
631
  return Apollo.useMutation(exports.EditMessageDocument, options);
556
632
  }
557
633
  exports.useEditMessageMutation = useEditMessageMutation;
558
- 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" } } }] }] } }] };
634
+ exports.CreateMessageFileUploadLinkDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "CreateMessageFileUploadLink" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "filename" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "postId" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "ID" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "createMessageFileUploadLink" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "postId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "postId" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "filename" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "filename" } } }] }] } }] };
559
635
  /**
560
- * __useUploadImgMutation__
636
+ * __useCreateMessageFileUploadLinkMutation__
561
637
  *
562
- * To run a mutation, you first call `useUploadImgMutation` within a React component and pass it any options that fit your needs.
563
- * When your component renders, `useUploadImgMutation` returns a tuple that includes:
638
+ * To run a mutation, you first call `useCreateMessageFileUploadLinkMutation` within a React component and pass it any options that fit your needs.
639
+ * When your component renders, `useCreateMessageFileUploadLinkMutation` returns a tuple that includes:
564
640
  * - A mutate function that you can call at any time to execute the mutation
565
641
  * - An object with fields that represent the current status of the mutation's execution
566
642
  *
567
643
  * @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;
568
644
  *
569
645
  * @example
570
- * const [uploadImgMutation, { data, loading, error }] = useUploadImgMutation({
646
+ * const [createMessageFileUploadLinkMutation, { data, loading, error }] = useCreateMessageFileUploadLinkMutation({
647
+ * variables: {
648
+ * filename: // value for 'filename'
649
+ * postId: // value for 'postId'
650
+ * },
651
+ * });
652
+ */
653
+ function useCreateMessageFileUploadLinkMutation(baseOptions) {
654
+ const options = Object.assign(Object.assign({}, defaultOptions), baseOptions);
655
+ return Apollo.useMutation(exports.CreateMessageFileUploadLinkDocument, options);
656
+ }
657
+ exports.useCreateMessageFileUploadLinkMutation = useCreateMessageFileUploadLinkMutation;
658
+ exports.AttachUploadedFileToMessageDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "AttachUploadedFileToMessage" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "postId" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "ID" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "file" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "UploadedFileInput" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "attachUploadedFileToMessage" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "postId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "postId" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "file" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "file" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "FragmentSpread", "name": { "kind": "Name", "value": "FileInfo" } }] } }] } }, { "kind": "FragmentDefinition", "name": { "kind": "Name", "value": "FileInfo" }, "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "FileInfo" } }, "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": "width" } }, { "kind": "Field", "name": { "kind": "Name", "value": "height" } }, { "kind": "Field", "name": { "kind": "Name", "value": "url" } }, { "kind": "Field", "name": { "kind": "Name", "value": "ref" } }, { "kind": "Field", "name": { "kind": "Name", "value": "size" } }, { "kind": "Field", "name": { "kind": "Name", "value": "refType" } }] } }] };
659
+ /**
660
+ * __useAttachUploadedFileToMessageMutation__
661
+ *
662
+ * To run a mutation, you first call `useAttachUploadedFileToMessageMutation` within a React component and pass it any options that fit your needs.
663
+ * When your component renders, `useAttachUploadedFileToMessageMutation` returns a tuple that includes:
664
+ * - A mutate function that you can call at any time to execute the mutation
665
+ * - An object with fields that represent the current status of the mutation's execution
666
+ *
667
+ * @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;
668
+ *
669
+ * @example
670
+ * const [attachUploadedFileToMessageMutation, { data, loading, error }] = useAttachUploadedFileToMessageMutation({
571
671
  * variables: {
572
- * files: // value for 'files'
573
672
  * postId: // value for 'postId'
673
+ * file: // value for 'file'
674
+ * },
675
+ * });
676
+ */
677
+ function useAttachUploadedFileToMessageMutation(baseOptions) {
678
+ const options = Object.assign(Object.assign({}, defaultOptions), baseOptions);
679
+ return Apollo.useMutation(exports.AttachUploadedFileToMessageDocument, options);
680
+ }
681
+ exports.useAttachUploadedFileToMessageMutation = useAttachUploadedFileToMessageMutation;
682
+ exports.DeleteMessageFileDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "DeleteMessageFile" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "url" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "deleteMessageFile" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "url" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "url" } } }] }] } }] };
683
+ /**
684
+ * __useDeleteMessageFileMutation__
685
+ *
686
+ * To run a mutation, you first call `useDeleteMessageFileMutation` within a React component and pass it any options that fit your needs.
687
+ * When your component renders, `useDeleteMessageFileMutation` returns a tuple that includes:
688
+ * - A mutate function that you can call at any time to execute the mutation
689
+ * - An object with fields that represent the current status of the mutation's execution
690
+ *
691
+ * @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;
692
+ *
693
+ * @example
694
+ * const [deleteMessageFileMutation, { data, loading, error }] = useDeleteMessageFileMutation({
695
+ * variables: {
696
+ * url: // value for 'url'
574
697
  * },
575
698
  * });
576
699
  */
577
- function useUploadImgMutation(baseOptions) {
700
+ function useDeleteMessageFileMutation(baseOptions) {
578
701
  const options = Object.assign(Object.assign({}, defaultOptions), baseOptions);
579
- return Apollo.useMutation(exports.UploadImgDocument, options);
702
+ return Apollo.useMutation(exports.DeleteMessageFileDocument, options);
580
703
  }
581
- exports.useUploadImgMutation = useUploadImgMutation;
704
+ exports.useDeleteMessageFileMutation = useDeleteMessageFileMutation;
582
705
  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" } }] } }] } }] } }] };
583
706
  /**
584
707
  * __useGetChannelsByUserQuery__