@messenger-box/core 0.0.1-alpha.137 → 0.0.1-alpha.145
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 +44 -3
- package/lib/index.js.map +1 -1
- package/lib/interfaces/generated-models.d.ts +391 -10
- package/package.json +2 -2
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.
|
|
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.useAddMemberToChannelMutation = exports.AddMemberToChannelDocument = exports.useAddDirectChannelMutation = exports.AddDirectChannelDocument = exports.useAddChannelMutation = exports.AddChannelDocument = exports.PostPropsFragmentDoc = exports.ConfigurationFragmentDoc = exports.FileInfoFragmentDoc = exports.IVisibility = exports.IUserOrderBy = exports.ISortEnum = exports.ISmsServiceActions = 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 = exports.DeleteChannelDocument = 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,15 @@ 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";
|
|
327
|
+
IMoleculerServiceName["SmsService"] = "SmsService";
|
|
312
328
|
IMoleculerServiceName["dummy"] = "dummy";
|
|
313
329
|
})(IMoleculerServiceName = exports.IMoleculerServiceName || (exports.IMoleculerServiceName = {}));
|
|
314
330
|
var IMoleculerTopics;
|
|
@@ -318,6 +334,7 @@ var IMoleculerTopics;
|
|
|
318
334
|
IMoleculerTopics["PostService"] = "PostService";
|
|
319
335
|
IMoleculerTopics["PostThreadService"] = "PostThreadService";
|
|
320
336
|
IMoleculerTopics["ReactionService"] = "ReactionService";
|
|
337
|
+
IMoleculerTopics["MessengerNotificationService"] = "MessengerNotificationService";
|
|
321
338
|
})(IMoleculerTopics = exports.IMoleculerTopics || (exports.IMoleculerTopics = {}));
|
|
322
339
|
/**
|
|
323
340
|
* OrganizationInvitationRole: The possible organization invitation roles.
|
|
@@ -387,6 +404,8 @@ var IPostServiceCommands;
|
|
|
387
404
|
IPostServiceCommands["attachUploadedFile"] = "attachUploadedFile";
|
|
388
405
|
IPostServiceCommands["createFileUploadLink"] = "createFileUploadLink";
|
|
389
406
|
IPostServiceCommands["deleteFile"] = "deleteFile";
|
|
407
|
+
IPostServiceCommands["readMessage"] = "readMessage";
|
|
408
|
+
IPostServiceCommands["deliverMessage"] = "deliverMessage";
|
|
390
409
|
})(IPostServiceCommands = exports.IPostServiceCommands || (exports.IPostServiceCommands = {}));
|
|
391
410
|
var IPreDefinedRole;
|
|
392
411
|
(function (IPreDefinedRole) {
|
|
@@ -401,6 +420,22 @@ var IPreDefinedRole;
|
|
|
401
420
|
IPreDefinedRole["GUEST"] = "GUEST";
|
|
402
421
|
IPreDefinedRole["CONTRIBUTORS"] = "CONTRIBUTORS";
|
|
403
422
|
})(IPreDefinedRole = exports.IPreDefinedRole || (exports.IPreDefinedRole = {}));
|
|
423
|
+
/** Various Source Providers for Projects Source. */
|
|
424
|
+
var IProjectSourceProviders;
|
|
425
|
+
(function (IProjectSourceProviders) {
|
|
426
|
+
IProjectSourceProviders["Github"] = "Github";
|
|
427
|
+
IProjectSourceProviders["Bitbucket"] = "Bitbucket";
|
|
428
|
+
IProjectSourceProviders["Gitlab"] = "Gitlab";
|
|
429
|
+
IProjectSourceProviders["Vsts"] = "Vsts";
|
|
430
|
+
IProjectSourceProviders["None"] = "None";
|
|
431
|
+
})(IProjectSourceProviders = exports.IProjectSourceProviders || (exports.IProjectSourceProviders = {}));
|
|
432
|
+
/** Various types of sources. */
|
|
433
|
+
var IProjectSourceType;
|
|
434
|
+
(function (IProjectSourceType) {
|
|
435
|
+
IProjectSourceType["Blank"] = "Blank";
|
|
436
|
+
IProjectSourceType["Zip"] = "Zip";
|
|
437
|
+
IProjectSourceType["Git"] = "Git";
|
|
438
|
+
})(IProjectSourceType = exports.IProjectSourceType || (exports.IProjectSourceType = {}));
|
|
404
439
|
var IProjectType;
|
|
405
440
|
(function (IProjectType) {
|
|
406
441
|
IProjectType["internal"] = "internal";
|
|
@@ -435,6 +470,10 @@ var ISettingValueType;
|
|
|
435
470
|
ISettingValueType["NullableInteger"] = "NullableInteger";
|
|
436
471
|
ISettingValueType["NullableNumber"] = "NullableNumber";
|
|
437
472
|
})(ISettingValueType = exports.ISettingValueType || (exports.ISettingValueType = {}));
|
|
473
|
+
var ISmsServiceActions;
|
|
474
|
+
(function (ISmsServiceActions) {
|
|
475
|
+
ISmsServiceActions["send"] = "send";
|
|
476
|
+
})(ISmsServiceActions = exports.ISmsServiceActions || (exports.ISmsServiceActions = {}));
|
|
438
477
|
var ISortEnum;
|
|
439
478
|
(function (ISortEnum) {
|
|
440
479
|
ISortEnum["ASC"] = "ASC";
|
|
@@ -754,7 +793,7 @@ function useGetAllChannelLazyQuery(baseOptions) {
|
|
|
754
793
|
return Apollo.useLazyQuery(exports.GetAllChannelDocument, options);
|
|
755
794
|
}
|
|
756
795
|
exports.useGetAllChannelLazyQuery = useGetAllChannelLazyQuery;
|
|
757
|
-
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": "
|
|
796
|
+
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" } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "skip" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "Int" } } }, "defaultValue": { "kind": "IntValue", "value": "0" } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "limit" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "Int" } } }, "defaultValue": { "kind": "IntValue", "value": "100" } }], "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": "skip" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "skip" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "limit" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "limit" } } }], "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" } }] }] } }] };
|
|
758
797
|
/**
|
|
759
798
|
* __useGetMessagesQuery__
|
|
760
799
|
*
|
|
@@ -768,6 +807,8 @@ exports.GetMessagesDocument = { "kind": "Document", "definitions": [{ "kind": "O
|
|
|
768
807
|
* const { data, loading, error } = useGetMessagesQuery({
|
|
769
808
|
* variables: {
|
|
770
809
|
* channelId: // value for 'channelId'
|
|
810
|
+
* skip: // value for 'skip'
|
|
811
|
+
* limit: // value for 'limit'
|
|
771
812
|
* },
|
|
772
813
|
* });
|
|
773
814
|
*/
|