@messenger-box/platform-client 0.0.1-alpha.373 → 0.0.1-alpha.381

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/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.0.1-alpha.381](https://github.com/CDEBase/messenger-box/compare/v0.0.1-alpha.380...v0.0.1-alpha.381) (2023-08-09)
7
+
8
+ **Note:** Version bump only for package @messenger-box/platform-client
9
+
10
+ ## [0.0.1-alpha.379](https://github.com/CDEBase/messenger-box/compare/v0.0.1-alpha.378...v0.0.1-alpha.379) (2023-08-04)
11
+
12
+ **Note:** Version bump only for package @messenger-box/platform-client
13
+
6
14
  ## [0.0.1-alpha.373](https://github.com/CDEBase/messenger-box/compare/v0.0.1-alpha.372...v0.0.1-alpha.373) (2023-07-21)
7
15
 
8
16
  **Note:** Version bump only for package @messenger-box/platform-client
@@ -676,6 +676,18 @@ export declare type IEnvironment = {
676
676
  export declare type IEnvironmentPayload = {
677
677
  args?: Maybe<Scalars['AnyObject']>;
678
678
  };
679
+ export declare type IExpoNotificationData = {
680
+ url: Scalars['String'];
681
+ params: Scalars['AnyObject'];
682
+ screen: Scalars['String'];
683
+ senderId?: Maybe<Scalars['String']>;
684
+ thread?: Maybe<IExpoNotificationThread>;
685
+ other?: Maybe<Scalars['AnyObject']>;
686
+ };
687
+ export declare type IExpoNotificationThread = {
688
+ id: Scalars['String'];
689
+ extraParams?: Maybe<Scalars['AnyObject']>;
690
+ };
679
691
  export declare type IExternalResourceData = IIResourceData & {
680
692
  __typename?: 'ExternalResourceData';
681
693
  /** The associated URI for this external resource. */
@@ -1076,7 +1088,9 @@ export declare type IMessages = {
1076
1088
  export declare enum IMessengerNotificationServiceCommands {
1077
1089
  SendNotificationOfUnreadMessages = "sendNotificationOfUnreadMessages",
1078
1090
  SendNotificationOnPost = "sendNotificationOnPost",
1079
- SendNotificationOfAlertMessages = "sendNotificationOfAlertMessages"
1091
+ SendNotificationOfAlertMessages = "sendNotificationOfAlertMessages",
1092
+ SendPushNotificationsExpo = "sendPushNotificationsExpo",
1093
+ SendExpoNotificationOnPost = "sendExpoNotificationOnPost"
1080
1094
  }
1081
1095
  export declare type IMessengerUser = IIUser & {
1082
1096
  __typename?: 'MessengerUser';
@@ -1181,6 +1195,7 @@ export declare type IMutation = {
1181
1195
  saveMembersToChannel?: Maybe<IChannel>;
1182
1196
  sendEmailOTP: Scalars['Boolean'];
1183
1197
  sendEmailVerificationToken?: Maybe<Scalars['Boolean']>;
1198
+ sendExpoNotificationOnPost: Scalars['Boolean'];
1184
1199
  sendMessage?: Maybe<IPost>;
1185
1200
  sendNotificationOfAlertMessages: Scalars['Boolean'];
1186
1201
  sendNotificationOfUnreadMessages: Scalars['Boolean'];
@@ -1429,6 +1444,10 @@ export declare type IMutationSendEmailOtpArgs = {
1429
1444
  export declare type IMutationSendEmailVerificationTokenArgs = {
1430
1445
  email: Scalars['String'];
1431
1446
  };
1447
+ export declare type IMutationSendExpoNotificationOnPostArgs = {
1448
+ postId: Scalars['ID'];
1449
+ notificationData: IExpoNotificationData;
1450
+ };
1432
1451
  export declare type IMutationSendMessageArgs = {
1433
1452
  channelId: Scalars['String'];
1434
1453
  messageInput: IMessageInput;
@@ -2076,7 +2095,8 @@ export declare enum IPostServiceCommands {
2076
2095
  CreateFilesUploadLink = "createFilesUploadLink",
2077
2096
  DeleteFile = "deleteFile",
2078
2097
  ReadMessage = "readMessage",
2079
- DeliverMessage = "deliverMessage"
2098
+ DeliverMessage = "deliverMessage",
2099
+ CreateWithoutSubscription = "createWithoutSubscription"
2080
2100
  }
2081
2101
  export declare type IPostThread = IIBaseRepo & {
2082
2102
  __typename?: 'PostThread';
@@ -3549,6 +3569,13 @@ export declare type ISendPublicMessageMutation = ({
3549
3569
  __typename?: 'Post';
3550
3570
  } & IPostFragment)>;
3551
3571
  });
3572
+ export declare type ISendExpoNotificationOnPostMutationVariables = Exact<{
3573
+ postId: Scalars['ID'];
3574
+ notificationData: IExpoNotificationData;
3575
+ }>;
3576
+ export declare type ISendExpoNotificationOnPostMutation = ({
3577
+ __typename?: 'Mutation';
3578
+ } & Pick<IMutation, 'sendExpoNotificationOnPost'>);
3552
3579
  export declare type IDeleteMessageMutationVariables = Exact<{
3553
3580
  messageId: Scalars['String'];
3554
3581
  channelId: Scalars['String'];
@@ -4118,6 +4145,8 @@ export declare type IResolversTypes = {
4118
4145
  EditPresentationTypes: IEditPresentationTypes;
4119
4146
  Environment: ResolverTypeWrapper<IEnvironment>;
4120
4147
  EnvironmentPayload: IEnvironmentPayload;
4148
+ ExpoNotificationData: IExpoNotificationData;
4149
+ ExpoNotificationThread: IExpoNotificationThread;
4121
4150
  ExternalResourceData: ResolverTypeWrapper<IExternalResourceData>;
4122
4151
  FieldError: ResolverTypeWrapper<IFieldError>;
4123
4152
  File: ResolverTypeWrapper<IFile>;
@@ -4397,6 +4426,8 @@ export declare type IResolversParentTypes = {
4397
4426
  DeviceTokens: IDeviceTokens;
4398
4427
  Environment: IEnvironment;
4399
4428
  EnvironmentPayload: IEnvironmentPayload;
4429
+ ExpoNotificationData: IExpoNotificationData;
4430
+ ExpoNotificationThread: IExpoNotificationThread;
4400
4431
  ExternalResourceData: IExternalResourceData;
4401
4432
  FieldError: IFieldError;
4402
4433
  File: IFile;
@@ -5267,6 +5298,7 @@ export declare type IMutationResolvers<ContextType = any, ParentType extends IRe
5267
5298
  saveMembersToChannel?: Resolver<Maybe<IResolversTypes['Channel']>, ParentType, ContextType, RequireFields<IMutationSaveMembersToChannelArgs, 'membersId' | 'channelId'>>;
5268
5299
  sendEmailOTP?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationSendEmailOtpArgs, 'email'>>;
5269
5300
  sendEmailVerificationToken?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType, RequireFields<IMutationSendEmailVerificationTokenArgs, 'email'>>;
5301
+ sendExpoNotificationOnPost?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationSendExpoNotificationOnPostArgs, 'postId' | 'notificationData'>>;
5270
5302
  sendMessage?: Resolver<Maybe<IResolversTypes['Post']>, ParentType, ContextType, RequireFields<IMutationSendMessageArgs, 'channelId' | 'messageInput'>>;
5271
5303
  sendNotificationOfAlertMessages?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationSendNotificationOfAlertMessagesArgs, 'unit' | 'value'>>;
5272
5304
  sendNotificationOfUnreadMessages?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationSendNotificationOfUnreadMessagesArgs, 'unit' | 'value'>>;
@@ -6539,6 +6571,32 @@ export declare function useSendPublicMessageMutation(baseOptions?: Apollo.Mutati
6539
6571
  export declare type SendPublicMessageMutationHookResult = ReturnType<typeof useSendPublicMessageMutation>;
6540
6572
  export declare type SendPublicMessageMutationResult = Apollo.MutationResult<ISendPublicMessageMutation>;
6541
6573
  export declare type SendPublicMessageMutationOptions = Apollo.BaseMutationOptions<ISendPublicMessageMutation, ISendPublicMessageMutationVariables>;
6574
+ export declare const SendExpoNotificationOnPostDocument: DocumentNode;
6575
+ /**
6576
+ * __useSendExpoNotificationOnPostMutation__
6577
+ *
6578
+ * To run a mutation, you first call `useSendExpoNotificationOnPostMutation` within a React component and pass it any options that fit your needs.
6579
+ * When your component renders, `useSendExpoNotificationOnPostMutation` returns a tuple that includes:
6580
+ * - A mutate function that you can call at any time to execute the mutation
6581
+ * - An object with fields that represent the current status of the mutation's execution
6582
+ *
6583
+ * @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;
6584
+ *
6585
+ * @example
6586
+ * const [sendExpoNotificationOnPostMutation, { data, loading, error }] = useSendExpoNotificationOnPostMutation({
6587
+ * variables: {
6588
+ * postId: // value for 'postId'
6589
+ * notificationData: // value for 'notificationData'
6590
+ * },
6591
+ * });
6592
+ */
6593
+ export declare function useSendExpoNotificationOnPostMutation(baseOptions?: Apollo.MutationHookOptions<ISendExpoNotificationOnPostMutation, ISendExpoNotificationOnPostMutationVariables>): Apollo.MutationTuple<ISendExpoNotificationOnPostMutation, Exact<{
6594
+ postId: string;
6595
+ notificationData: IExpoNotificationData;
6596
+ }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
6597
+ export declare type SendExpoNotificationOnPostMutationHookResult = ReturnType<typeof useSendExpoNotificationOnPostMutation>;
6598
+ export declare type SendExpoNotificationOnPostMutationResult = Apollo.MutationResult<ISendExpoNotificationOnPostMutation>;
6599
+ export declare type SendExpoNotificationOnPostMutationOptions = Apollo.BaseMutationOptions<ISendExpoNotificationOnPostMutation, ISendExpoNotificationOnPostMutationVariables>;
6542
6600
  export declare const DeleteMessageDocument: DocumentNode;
6543
6601
  /**
6544
6602
  * __useDeleteMessageMutation__
package/lib/index.js CHANGED
@@ -48,9 +48,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
48
48
  };
49
49
  Object.defineProperty(exports, "__esModule", ({ value: true }));
50
50
  exports.ConfigurationFragmentDoc = exports.MessengerUserFragmentDoc = exports.MinimalUserFragmentDoc = exports.FileInfoFragmentDoc = exports.IVisibility = exports.IUserOrderBy = exports.ITokenTypesEnum = exports.ISortEnum = exports.ISmsServiceActions = exports.ISettingValueType = exports.IRoomType = exports.IRole = exports.IPreDefinedRole = exports.IPostTypeEnum = exports.IPostServiceCommands = exports.IPortalLanguage = exports.IPermissionType = exports.IPermissionResource = exports.IPermissionAction = exports.IOrganizationContextPubSubEvents = exports.IOrgainizationInvitationRole = exports.IOrgUserRole = exports.IOtpAction = exports.IMoleculerTopics = exports.IMoleculerServiceName = exports.IMoleculerCronServiceName = exports.IMessengerUserStatus = exports.IMessengerNotificationServiceCommands = exports.IMailTemplateId = exports.IInviteStatus = exports.IIdType = exports.IIdStatus = exports.IGlobalLanguages = exports.IGlobalCurrencies = exports.IGender = exports.IFileRefType = exports.IEditPresentationTypes = exports.IDeviceInfoPlatform = exports.IConfigurationTarget = exports.IConfigurationScope = exports.IConfigurationContributionNames = exports.IConfigFragmentName = exports.IConfigCollectionName = exports.IClientTypes = exports.IClientCacheTypeNames = exports.IChannelSort = exports.IChannelServiceCommands = exports.IChannelPrivacy = exports.IBaseServiceCommands = exports.IApplicationRoles = void 0;
51
- exports.GetChannelsByUserDocument = exports.useViewChannelDetailLazyQuery = exports.useViewChannelDetailQuery = exports.ViewChannelDetailDocument = exports.useGetAllChannelLazyQuery = exports.useGetAllChannelQuery = exports.GetAllChannelDocument = exports.useCreateTeamMutation = exports.CreateTeamDocument = exports.useCreateOrganizationMutation = exports.CreateOrganizationDocument = exports.useDeleteMessageFileMutation = exports.DeleteMessageFileDocument = exports.useAttachUploadedFilesToMessageMutation = exports.AttachUploadedFilesToMessageDocument = exports.useCreateMessageFilesUploadLinkMutation = exports.CreateMessageFilesUploadLinkDocument = exports.useAttachUploadedFileToMessageMutation = exports.AttachUploadedFileToMessageDocument = exports.useCreateMessageFileUploadLinkMutation = exports.CreateMessageFileUploadLinkDocument = exports.useEditMessageMutation = exports.EditMessageDocument = exports.useDeleteMessageMutation = exports.DeleteMessageDocument = exports.useSendPublicMessageMutation = exports.SendPublicMessageDocument = exports.useSendMessagesMutation = exports.SendMessagesDocument = exports.useSendThreadMessageMutation = exports.SendThreadMessageDocument = exports.useRemoveDeviceTokenMutation = exports.RemoveDeviceTokenDocument = exports.useSetDeviceTokenMutation = exports.SetDeviceTokenDocument = exports.useDeleteChannelMutation = exports.DeleteChannelDocument = exports.useSaveMembersToChannelMutation = exports.SaveMembersToChannelDocument = exports.useAddMemberToChannelMutation = exports.AddMemberToChannelDocument = exports.useAddDirectChannelMutation = exports.AddDirectChannelDocument = exports.useAddChannelMutation = exports.AddChannelDocument = exports.UserFragmentDoc = exports.ThreadMessageSentFragmentDoc = exports.PostThreadFragmentDoc = exports.PostFragmentDoc = exports.PostRepliesFragmentDoc = void 0;
52
- 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.useUserAccountLazyQuery = exports.useUserAccountQuery = exports.UserAccountDocument = exports.useGetOrganizationTeamsLazyQuery = exports.useGetOrganizationTeamsQuery = exports.GetOrganizationTeamsDocument = exports.useSupportServiceChannelsLazyQuery = exports.useSupportServiceChannelsQuery = exports.SupportServiceChannelsDocument = exports.useThreadMessagesLazyQuery = exports.useThreadMessagesQuery = exports.ThreadMessagesDocument = exports.useGetMessagesLazyQuery = exports.useGetMessagesQuery = exports.GetMessagesDocument = exports.useGetOrganizationDetailLazyQuery = exports.useGetOrganizationDetailQuery = exports.GetOrganizationDetailDocument = exports.usePublicMessagesLazyQuery = exports.usePublicMessagesQuery = exports.PublicMessagesDocument = exports.useMessagesLazyQuery = exports.useMessagesQuery = exports.MessagesDocument = exports.useGetNewMongooseObjectIdLazyQuery = exports.useGetNewMongooseObjectIdQuery = exports.GetNewMongooseObjectIdDocument = exports.useGetDeviceTokenLazyQuery = exports.useGetDeviceTokenQuery = exports.GetDeviceTokenDocument = exports.useFileUrlLazyQuery = exports.useFileUrlQuery = exports.FileUrlDocument = exports.useCheckForNewMessagesLazyQuery = exports.useCheckForNewMessagesQuery = exports.CheckForNewMessagesDocument = exports.useGetChannelsByUserLazyQuery = exports.useGetChannelsByUserQuery = void 0;
53
- exports.useOnThreadCreatedUpdatedSubscription = exports.OnThreadCreatedUpdatedDocument = exports.useOnThreadChatMessageAddedSubscription = exports.OnThreadChatMessageAddedDocument = exports.useOnPublicPostAddedSubscription = exports.OnPublicPostAddedDocument = exports.useOnChatMessageAddedSubscription = exports.OnChatMessageAddedDocument = exports.useGetOrganizationMembersLazyQuery = exports.useGetOrganizationMembersQuery = exports.GetOrganizationMembersDocument = exports.useGetUserOrganizationsLazyQuery = exports.useGetUserOrganizationsQuery = exports.GetUserOrganizationsDocument = void 0;
51
+ exports.useViewChannelDetailQuery = exports.ViewChannelDetailDocument = exports.useGetAllChannelLazyQuery = exports.useGetAllChannelQuery = exports.GetAllChannelDocument = exports.useCreateTeamMutation = exports.CreateTeamDocument = exports.useCreateOrganizationMutation = exports.CreateOrganizationDocument = exports.useDeleteMessageFileMutation = exports.DeleteMessageFileDocument = exports.useAttachUploadedFilesToMessageMutation = exports.AttachUploadedFilesToMessageDocument = exports.useCreateMessageFilesUploadLinkMutation = exports.CreateMessageFilesUploadLinkDocument = exports.useAttachUploadedFileToMessageMutation = exports.AttachUploadedFileToMessageDocument = exports.useCreateMessageFileUploadLinkMutation = exports.CreateMessageFileUploadLinkDocument = exports.useEditMessageMutation = exports.EditMessageDocument = exports.useDeleteMessageMutation = exports.DeleteMessageDocument = exports.useSendExpoNotificationOnPostMutation = exports.SendExpoNotificationOnPostDocument = exports.useSendPublicMessageMutation = exports.SendPublicMessageDocument = exports.useSendMessagesMutation = exports.SendMessagesDocument = exports.useSendThreadMessageMutation = exports.SendThreadMessageDocument = exports.useRemoveDeviceTokenMutation = exports.RemoveDeviceTokenDocument = exports.useSetDeviceTokenMutation = exports.SetDeviceTokenDocument = exports.useDeleteChannelMutation = exports.DeleteChannelDocument = exports.useSaveMembersToChannelMutation = exports.SaveMembersToChannelDocument = exports.useAddMemberToChannelMutation = exports.AddMemberToChannelDocument = exports.useAddDirectChannelMutation = exports.AddDirectChannelDocument = exports.useAddChannelMutation = exports.AddChannelDocument = exports.UserFragmentDoc = exports.ThreadMessageSentFragmentDoc = exports.PostThreadFragmentDoc = exports.PostFragmentDoc = exports.PostRepliesFragmentDoc = void 0;
52
+ exports.CurrentUserDocument = exports.useUsersToChatLazyQuery = exports.useUsersToChatQuery = exports.UsersToChatDocument = exports.useGetUserByIdLazyQuery = exports.useGetUserByIdQuery = exports.GetUserByIdDocument = exports.useGetAllUsersLazyQuery = exports.useGetAllUsersQuery = exports.GetAllUsersDocument = exports.useUserAccountLazyQuery = exports.useUserAccountQuery = exports.UserAccountDocument = exports.useGetOrganizationTeamsLazyQuery = exports.useGetOrganizationTeamsQuery = exports.GetOrganizationTeamsDocument = exports.useSupportServiceChannelsLazyQuery = exports.useSupportServiceChannelsQuery = exports.SupportServiceChannelsDocument = exports.useThreadMessagesLazyQuery = exports.useThreadMessagesQuery = exports.ThreadMessagesDocument = exports.useGetMessagesLazyQuery = exports.useGetMessagesQuery = exports.GetMessagesDocument = exports.useGetOrganizationDetailLazyQuery = exports.useGetOrganizationDetailQuery = exports.GetOrganizationDetailDocument = exports.usePublicMessagesLazyQuery = exports.usePublicMessagesQuery = exports.PublicMessagesDocument = exports.useMessagesLazyQuery = exports.useMessagesQuery = exports.MessagesDocument = exports.useGetNewMongooseObjectIdLazyQuery = exports.useGetNewMongooseObjectIdQuery = exports.GetNewMongooseObjectIdDocument = exports.useGetDeviceTokenLazyQuery = exports.useGetDeviceTokenQuery = exports.GetDeviceTokenDocument = exports.useFileUrlLazyQuery = exports.useFileUrlQuery = exports.FileUrlDocument = exports.useCheckForNewMessagesLazyQuery = exports.useCheckForNewMessagesQuery = exports.CheckForNewMessagesDocument = exports.useGetChannelsByUserLazyQuery = exports.useGetChannelsByUserQuery = exports.GetChannelsByUserDocument = exports.useViewChannelDetailLazyQuery = void 0;
53
+ exports.useOnThreadCreatedUpdatedSubscription = exports.OnThreadCreatedUpdatedDocument = exports.useOnThreadChatMessageAddedSubscription = exports.OnThreadChatMessageAddedDocument = exports.useOnPublicPostAddedSubscription = exports.OnPublicPostAddedDocument = exports.useOnChatMessageAddedSubscription = exports.OnChatMessageAddedDocument = exports.useGetOrganizationMembersLazyQuery = exports.useGetOrganizationMembersQuery = exports.GetOrganizationMembersDocument = exports.useGetUserOrganizationsLazyQuery = exports.useGetUserOrganizationsQuery = exports.GetUserOrganizationsDocument = exports.useCurrentUserLazyQuery = exports.useCurrentUserQuery = void 0;
54
54
  const Apollo = __importStar(__webpack_require__(/*! @apollo/client */ "@apollo/client"));
55
55
  const defaultOptions = {};
56
56
  var IApplicationRoles;
@@ -286,6 +286,8 @@ var IMessengerNotificationServiceCommands;
286
286
  IMessengerNotificationServiceCommands["SendNotificationOfUnreadMessages"] = "sendNotificationOfUnreadMessages";
287
287
  IMessengerNotificationServiceCommands["SendNotificationOnPost"] = "sendNotificationOnPost";
288
288
  IMessengerNotificationServiceCommands["SendNotificationOfAlertMessages"] = "sendNotificationOfAlertMessages";
289
+ IMessengerNotificationServiceCommands["SendPushNotificationsExpo"] = "sendPushNotificationsExpo";
290
+ IMessengerNotificationServiceCommands["SendExpoNotificationOnPost"] = "sendExpoNotificationOnPost";
289
291
  })(IMessengerNotificationServiceCommands = exports.IMessengerNotificationServiceCommands || (exports.IMessengerNotificationServiceCommands = {}));
290
292
  var IMessengerUserStatus;
291
293
  (function (IMessengerUserStatus) {
@@ -393,6 +395,7 @@ var IPostServiceCommands;
393
395
  IPostServiceCommands["DeleteFile"] = "deleteFile";
394
396
  IPostServiceCommands["ReadMessage"] = "readMessage";
395
397
  IPostServiceCommands["DeliverMessage"] = "deliverMessage";
398
+ IPostServiceCommands["CreateWithoutSubscription"] = "createWithoutSubscription";
396
399
  })(IPostServiceCommands = exports.IPostServiceCommands || (exports.IPostServiceCommands = {}));
397
400
  var IPostTypeEnum;
398
401
  (function (IPostTypeEnum) {
@@ -735,6 +738,30 @@ function useSendPublicMessageMutation(baseOptions) {
735
738
  return Apollo.useMutation(exports.SendPublicMessageDocument, options);
736
739
  }
737
740
  exports.useSendPublicMessageMutation = useSendPublicMessageMutation;
741
+ exports.SendExpoNotificationOnPostDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "SendExpoNotificationOnPost" }, "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": "notificationData" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "ExpoNotificationData" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "sendExpoNotificationOnPost" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "postId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "postId" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "notificationData" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "notificationData" } } }] }] } }] };
742
+ /**
743
+ * __useSendExpoNotificationOnPostMutation__
744
+ *
745
+ * To run a mutation, you first call `useSendExpoNotificationOnPostMutation` within a React component and pass it any options that fit your needs.
746
+ * When your component renders, `useSendExpoNotificationOnPostMutation` returns a tuple that includes:
747
+ * - A mutate function that you can call at any time to execute the mutation
748
+ * - An object with fields that represent the current status of the mutation's execution
749
+ *
750
+ * @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;
751
+ *
752
+ * @example
753
+ * const [sendExpoNotificationOnPostMutation, { data, loading, error }] = useSendExpoNotificationOnPostMutation({
754
+ * variables: {
755
+ * postId: // value for 'postId'
756
+ * notificationData: // value for 'notificationData'
757
+ * },
758
+ * });
759
+ */
760
+ function useSendExpoNotificationOnPostMutation(baseOptions) {
761
+ const options = Object.assign(Object.assign({}, defaultOptions), baseOptions);
762
+ return Apollo.useMutation(exports.SendExpoNotificationOnPostDocument, options);
763
+ }
764
+ exports.useSendExpoNotificationOnPostMutation = useSendExpoNotificationOnPostMutation;
738
765
  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" } } }] } }] }] } }] };
739
766
  /**
740
767
  * __useDeleteMessageMutation__