@messenger-box/core 0.0.1-alpha.77 → 0.0.1-alpha.86
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 +25 -2
- package/lib/index.js.map +1 -1
- package/lib/interfaces/generated-models.d.ts +35 -0
- 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.useGetUserByIdLazyQuery = exports.useGetUserByIdQuery = exports.GetUserByIdDocument = exports.useGetAllUsersLazyQuery = exports.useGetAllUsersQuery = void 0;
|
|
125
|
+
exports.useGetMessagesQuery = 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.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.useGetUserByIdLazyQuery = exports.useGetUserByIdQuery = exports.GetUserByIdDocument = exports.useGetAllUsersLazyQuery = exports.useGetAllUsersQuery = exports.GetAllUsersDocument = exports.useGetMessagesLazyQuery = void 0;
|
|
127
127
|
const Apollo = __webpack_require__(/*! @apollo/client */ "@apollo/client");
|
|
128
128
|
const defaultOptions = {};
|
|
129
129
|
var IApplicationRoles;
|
|
@@ -447,6 +447,29 @@ function useAddMemberToChannelMutation(baseOptions) {
|
|
|
447
447
|
return Apollo.useMutation(exports.AddMemberToChannelDocument, options);
|
|
448
448
|
}
|
|
449
449
|
exports.useAddMemberToChannelMutation = useAddMemberToChannelMutation;
|
|
450
|
+
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" } } }] }] } }] };
|
|
451
|
+
/**
|
|
452
|
+
* __useDeleteChannelMutation__
|
|
453
|
+
*
|
|
454
|
+
* To run a mutation, you first call `useDeleteChannelMutation` within a React component and pass it any options that fit your needs.
|
|
455
|
+
* When your component renders, `useDeleteChannelMutation` returns a tuple that includes:
|
|
456
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
457
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
458
|
+
*
|
|
459
|
+
* @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;
|
|
460
|
+
*
|
|
461
|
+
* @example
|
|
462
|
+
* const [deleteChannelMutation, { data, loading, error }] = useDeleteChannelMutation({
|
|
463
|
+
* variables: {
|
|
464
|
+
* ChannelId: // value for 'ChannelId'
|
|
465
|
+
* },
|
|
466
|
+
* });
|
|
467
|
+
*/
|
|
468
|
+
function useDeleteChannelMutation(baseOptions) {
|
|
469
|
+
const options = Object.assign(Object.assign({}, defaultOptions), baseOptions);
|
|
470
|
+
return Apollo.useMutation(exports.DeleteChannelDocument, options);
|
|
471
|
+
}
|
|
472
|
+
exports.useDeleteChannelMutation = useDeleteChannelMutation;
|
|
450
473
|
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" } } } }], "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" } } }] } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }] } }] } }] };
|
|
451
474
|
/**
|
|
452
475
|
* __useSendMessagesMutation__
|