@messenger-box/core 0.0.1-alpha.136 → 0.0.1-alpha.144

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.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;
125
+ 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.IProjectSourceType = exports.IProjectSourceProviders = exports.IPreDefinedRole = exports.IPostServiceCommands = exports.IPortalLanguage = exports.IPermissionType = exports.IPermissionResource = exports.IPermissionAction = exports.IOrgUserRole = exports.IOrganizationContextPubSubEvents = exports.IOrgainizationInvitationRole = exports.IMoleculerTopics = exports.IMoleculerServiceName = exports.IMoleculerCronServiceName = exports.IMessengerUserStatus = exports.IMessengerNotificationServiceCommands = exports.IMailTemplateId = 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 = exports.useDeleteMessageMutation = exports.DeleteMessageDocument = exports.useSendMessagesMutation = exports.SendMessagesDocument = exports.useDeleteChannelMutation = void 0;
127
127
  const Apollo = __webpack_require__(/*! @apollo/client */ "@apollo/client");
128
128
  const defaultOptions = {};
129
129
  var IApplicationRoles;
@@ -196,6 +196,8 @@ var IChannelServiceCommands;
196
196
  IChannelServiceCommands["hideChannel"] = "hideChannel";
197
197
  IChannelServiceCommands["leaveChannel"] = "leaveChannel";
198
198
  IChannelServiceCommands["deleteChannel"] = "deleteChannel";
199
+ IChannelServiceCommands["isMember"] = "isMember";
200
+ IChannelServiceCommands["viewChannel"] = "viewChannel";
199
201
  })(IChannelServiceCommands = exports.IChannelServiceCommands || (exports.IChannelServiceCommands = {}));
200
202
  var IChannelSort;
201
203
  (function (IChannelSort) {
@@ -299,6 +301,14 @@ var IInviteStatus;
299
301
  IInviteStatus["ACCEPTED"] = "ACCEPTED";
300
302
  IInviteStatus["DECLINED"] = "DECLINED";
301
303
  })(IInviteStatus = exports.IInviteStatus || (exports.IInviteStatus = {}));
304
+ var IMailTemplateId;
305
+ (function (IMailTemplateId) {
306
+ IMailTemplateId["MessageNotificationServiceId"] = "MessageNotificationServiceId";
307
+ })(IMailTemplateId = exports.IMailTemplateId || (exports.IMailTemplateId = {}));
308
+ var IMessengerNotificationServiceCommands;
309
+ (function (IMessengerNotificationServiceCommands) {
310
+ IMessengerNotificationServiceCommands["sendNotificationOfUnreadMessages"] = "sendNotificationOfUnreadMessages";
311
+ })(IMessengerNotificationServiceCommands = exports.IMessengerNotificationServiceCommands || (exports.IMessengerNotificationServiceCommands = {}));
302
312
  var IMessengerUserStatus;
303
313
  (function (IMessengerUserStatus) {
304
314
  IMessengerUserStatus["ONLINE"] = "ONLINE";
@@ -306,9 +316,14 @@ var IMessengerUserStatus;
306
316
  IMessengerUserStatus["BUSY"] = "BUSY";
307
317
  IMessengerUserStatus["INVISIBLE"] = "INVISIBLE";
308
318
  })(IMessengerUserStatus = exports.IMessengerUserStatus || (exports.IMessengerUserStatus = {}));
319
+ var IMoleculerCronServiceName;
320
+ (function (IMoleculerCronServiceName) {
321
+ IMoleculerCronServiceName["MessengerCronJob"] = "MessengerCronJob";
322
+ })(IMoleculerCronServiceName = exports.IMoleculerCronServiceName || (exports.IMoleculerCronServiceName = {}));
309
323
  /** All Moleculer Topic names are extended from this. */
310
324
  var IMoleculerServiceName;
311
325
  (function (IMoleculerServiceName) {
326
+ IMoleculerServiceName["MessengerNotificationService"] = "MessengerNotificationService";
312
327
  IMoleculerServiceName["dummy"] = "dummy";
313
328
  })(IMoleculerServiceName = exports.IMoleculerServiceName || (exports.IMoleculerServiceName = {}));
314
329
  var IMoleculerTopics;
@@ -318,6 +333,7 @@ var IMoleculerTopics;
318
333
  IMoleculerTopics["PostService"] = "PostService";
319
334
  IMoleculerTopics["PostThreadService"] = "PostThreadService";
320
335
  IMoleculerTopics["ReactionService"] = "ReactionService";
336
+ IMoleculerTopics["MessengerNotificationService"] = "MessengerNotificationService";
321
337
  })(IMoleculerTopics = exports.IMoleculerTopics || (exports.IMoleculerTopics = {}));
322
338
  /**
323
339
  * OrganizationInvitationRole: The possible organization invitation roles.
@@ -387,6 +403,8 @@ var IPostServiceCommands;
387
403
  IPostServiceCommands["attachUploadedFile"] = "attachUploadedFile";
388
404
  IPostServiceCommands["createFileUploadLink"] = "createFileUploadLink";
389
405
  IPostServiceCommands["deleteFile"] = "deleteFile";
406
+ IPostServiceCommands["readMessage"] = "readMessage";
407
+ IPostServiceCommands["deliverMessage"] = "deliverMessage";
390
408
  })(IPostServiceCommands = exports.IPostServiceCommands || (exports.IPostServiceCommands = {}));
391
409
  var IPreDefinedRole;
392
410
  (function (IPreDefinedRole) {
@@ -401,6 +419,22 @@ var IPreDefinedRole;
401
419
  IPreDefinedRole["GUEST"] = "GUEST";
402
420
  IPreDefinedRole["CONTRIBUTORS"] = "CONTRIBUTORS";
403
421
  })(IPreDefinedRole = exports.IPreDefinedRole || (exports.IPreDefinedRole = {}));
422
+ /** Various Source Providers for Projects Source. */
423
+ var IProjectSourceProviders;
424
+ (function (IProjectSourceProviders) {
425
+ IProjectSourceProviders["Github"] = "Github";
426
+ IProjectSourceProviders["Bitbucket"] = "Bitbucket";
427
+ IProjectSourceProviders["Gitlab"] = "Gitlab";
428
+ IProjectSourceProviders["Vsts"] = "Vsts";
429
+ IProjectSourceProviders["None"] = "None";
430
+ })(IProjectSourceProviders = exports.IProjectSourceProviders || (exports.IProjectSourceProviders = {}));
431
+ /** Various types of sources. */
432
+ var IProjectSourceType;
433
+ (function (IProjectSourceType) {
434
+ IProjectSourceType["Blank"] = "Blank";
435
+ IProjectSourceType["Zip"] = "Zip";
436
+ IProjectSourceType["Git"] = "Git";
437
+ })(IProjectSourceType = exports.IProjectSourceType || (exports.IProjectSourceType = {}));
404
438
  var IProjectType;
405
439
  (function (IProjectType) {
406
440
  IProjectType["internal"] = "internal";
@@ -556,7 +590,7 @@ function useDeleteChannelMutation(baseOptions) {
556
590
  return Apollo.useMutation(exports.DeleteChannelDocument, options);
557
591
  }
558
592
  exports.useDeleteChannelMutation = useDeleteChannelMutation;
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": "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": "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" } }] } }] } }] };
593
+ 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" } }] } }] } }] };
560
594
  /**
561
595
  * __useSendMessagesMutation__
562
596
  *