@messenger-box/core 0.0.1-alpha.363 → 0.0.1-alpha.365
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.
|
@@ -295,6 +295,7 @@ export declare const enum IChannelServiceCommands {
|
|
|
295
295
|
SaveMembersToChannel = "saveMembersToChannel",
|
|
296
296
|
SaveDirectChannel = "saveDirectChannel",
|
|
297
297
|
SaveChannel = "saveChannel",
|
|
298
|
+
SavePublicChannel = "savePublicChannel",
|
|
298
299
|
GetChannelUnread = "getChannelUnread",
|
|
299
300
|
InvalidateChannelByName = "invalidateChannelByName",
|
|
300
301
|
GetPinnedPosts = "getPinnedPosts",
|
|
@@ -1065,6 +1066,7 @@ export declare type IMessageInput = {
|
|
|
1065
1066
|
userRef?: Maybe<Array<Maybe<Scalars['String']>>>;
|
|
1066
1067
|
channelRef?: Maybe<Array<Maybe<Scalars['String']>>>;
|
|
1067
1068
|
files?: Maybe<Array<Scalars['ID']>>;
|
|
1069
|
+
createdBy?: Maybe<Scalars['ID']>;
|
|
1068
1070
|
};
|
|
1069
1071
|
export declare type IMessages = {
|
|
1070
1072
|
__typename?: 'Messages';
|
|
@@ -1181,6 +1183,7 @@ export declare type IMutation = {
|
|
|
1181
1183
|
sendNotificationOfUnreadMessages: Scalars['Boolean'];
|
|
1182
1184
|
sendOrganizationInvitation?: Maybe<Scalars['Boolean']>;
|
|
1183
1185
|
sendPhoneOTP: Scalars['Boolean'];
|
|
1186
|
+
sendPublicMessage?: Maybe<IPost>;
|
|
1184
1187
|
sendSms: Scalars['Boolean'];
|
|
1185
1188
|
sendThreadMessage?: Maybe<IThreadMessageSent>;
|
|
1186
1189
|
sendUserPasswordResetEmail?: Maybe<Scalars['Boolean']>;
|
|
@@ -1438,6 +1441,11 @@ export declare type IMutationSendOrganizationInvitationArgs = {
|
|
|
1438
1441
|
export declare type IMutationSendPhoneOtpArgs = {
|
|
1439
1442
|
phoneNumber: IPhoneNumberInput;
|
|
1440
1443
|
};
|
|
1444
|
+
export declare type IMutationSendPublicMessageArgs = {
|
|
1445
|
+
channelId: Scalars['String'];
|
|
1446
|
+
messageInput: IMessageInput;
|
|
1447
|
+
postId?: Maybe<Scalars['ID']>;
|
|
1448
|
+
};
|
|
1441
1449
|
export declare type IMutationSendSmsArgs = {
|
|
1442
1450
|
sms?: Maybe<ISendSmsInput>;
|
|
1443
1451
|
};
|
|
@@ -2094,6 +2102,7 @@ export declare type IPostThreadParticipants = {
|
|
|
2094
2102
|
export declare const enum IPostTypeEnum {
|
|
2095
2103
|
Alert = "ALERT",
|
|
2096
2104
|
Card = "CARD",
|
|
2105
|
+
Public = "Public",
|
|
2097
2106
|
Simple = "Simple"
|
|
2098
2107
|
}
|
|
2099
2108
|
export declare type IPostsWithCursor = {
|
|
@@ -2340,6 +2349,7 @@ export declare type IQuery = {
|
|
|
2340
2349
|
messages: IMessages;
|
|
2341
2350
|
organizations?: Maybe<Array<Maybe<IOrganization>>>;
|
|
2342
2351
|
profile: IProfile;
|
|
2352
|
+
publicMessages: IMessages;
|
|
2343
2353
|
supportServiceChannels?: Maybe<Array<Maybe<IChannel>>>;
|
|
2344
2354
|
team?: Maybe<IAccountTeam>;
|
|
2345
2355
|
teams?: Maybe<Array<Maybe<IAccountTeam>>>;
|
|
@@ -2541,6 +2551,9 @@ export declare type IQueryMessagesArgs = {
|
|
|
2541
2551
|
export declare type IQueryProfileArgs = {
|
|
2542
2552
|
userId?: Maybe<Scalars['String']>;
|
|
2543
2553
|
};
|
|
2554
|
+
export declare type IQueryPublicMessagesArgs = {
|
|
2555
|
+
channelId: Scalars['ID'];
|
|
2556
|
+
};
|
|
2544
2557
|
export declare type IQuerySupportServiceChannelsArgs = {
|
|
2545
2558
|
role?: Maybe<Scalars['String']>;
|
|
2546
2559
|
criteria?: Maybe<Scalars['AnyObject']>;
|
|
@@ -2747,6 +2760,9 @@ export declare type ISubscription = {
|
|
|
2747
2760
|
SubscribeToPolicyUpdate?: Maybe<IConfigurationUpdateEvent>;
|
|
2748
2761
|
chatMessageAdded?: Maybe<IPost>;
|
|
2749
2762
|
dummy?: Maybe<Scalars['Int']>;
|
|
2763
|
+
publicPostAdded?: Maybe<IPost>;
|
|
2764
|
+
threadChatMessageAdded?: Maybe<IPost>;
|
|
2765
|
+
threadCreatedUpdated?: Maybe<IThreadCreatedUpdated>;
|
|
2750
2766
|
};
|
|
2751
2767
|
export declare type ISubscriptionSubscribeToConfigurationUpdateArgs = {
|
|
2752
2768
|
orgName: Scalars['String'];
|
|
@@ -2764,6 +2780,13 @@ export declare type ISubscriptionChatMessageAddedArgs = {
|
|
|
2764
2780
|
channelId?: Maybe<Scalars['String']>;
|
|
2765
2781
|
directTo?: Maybe<Scalars['String']>;
|
|
2766
2782
|
};
|
|
2783
|
+
export declare type ISubscriptionPublicPostAddedArgs = {
|
|
2784
|
+
channelId: Scalars['String'];
|
|
2785
|
+
};
|
|
2786
|
+
export declare type ISubscriptionThreadChatMessageAddedArgs = {
|
|
2787
|
+
channelId?: Maybe<Scalars['String']>;
|
|
2788
|
+
postParentId?: Maybe<Scalars['String']>;
|
|
2789
|
+
};
|
|
2767
2790
|
export declare type ITeamCreateRequest = {
|
|
2768
2791
|
name?: Maybe<Scalars['String']>;
|
|
2769
2792
|
title: Scalars['String'];
|
|
@@ -2830,6 +2853,13 @@ export declare type ITerritorialStateUpdateInput = {
|
|
|
2830
2853
|
name?: Maybe<Scalars['String']>;
|
|
2831
2854
|
country: Scalars['Int'];
|
|
2832
2855
|
};
|
|
2856
|
+
export declare type IThreadCreatedUpdated = {
|
|
2857
|
+
__typename?: 'ThreadCreatedUpdated';
|
|
2858
|
+
isCreated?: Maybe<Scalars['Boolean']>;
|
|
2859
|
+
isUpdated?: Maybe<Scalars['Boolean']>;
|
|
2860
|
+
lastMessage?: Maybe<IPost>;
|
|
2861
|
+
data?: Maybe<IPostThread>;
|
|
2862
|
+
};
|
|
2833
2863
|
export declare type IThreadMessageInput = {
|
|
2834
2864
|
content: Scalars['String'];
|
|
2835
2865
|
userRef?: Maybe<Array<Maybe<Scalars['String']>>>;
|
|
@@ -3487,6 +3517,7 @@ export declare type ISendMessagesMutationVariables = Exact<{
|
|
|
3487
3517
|
content: Scalars['String'];
|
|
3488
3518
|
files?: Maybe<Array<Scalars['ID']> | Scalars['ID']>;
|
|
3489
3519
|
postId?: Maybe<Scalars['ID']>;
|
|
3520
|
+
createdBy?: Maybe<Scalars['ID']>;
|
|
3490
3521
|
}>;
|
|
3491
3522
|
export declare type ISendMessagesMutation = ({
|
|
3492
3523
|
__typename?: 'Mutation';
|
|
@@ -3495,6 +3526,18 @@ export declare type ISendMessagesMutation = ({
|
|
|
3495
3526
|
__typename?: 'Post';
|
|
3496
3527
|
} & IPostFragment)>;
|
|
3497
3528
|
});
|
|
3529
|
+
export declare type ISendPublicMessageMutationVariables = Exact<{
|
|
3530
|
+
channelId: Scalars['String'];
|
|
3531
|
+
messageInput: IMessageInput;
|
|
3532
|
+
postId?: Maybe<Scalars['ID']>;
|
|
3533
|
+
}>;
|
|
3534
|
+
export declare type ISendPublicMessageMutation = ({
|
|
3535
|
+
__typename?: 'Mutation';
|
|
3536
|
+
} & {
|
|
3537
|
+
sendPublicMessage?: Maybe<({
|
|
3538
|
+
__typename?: 'Post';
|
|
3539
|
+
} & IPostFragment)>;
|
|
3540
|
+
});
|
|
3498
3541
|
export declare type IDeleteMessageMutationVariables = Exact<{
|
|
3499
3542
|
messageId: Scalars['String'];
|
|
3500
3543
|
channelId: Scalars['String'];
|
|
@@ -3706,6 +3749,20 @@ export declare type IMessagesQuery = ({
|
|
|
3706
3749
|
} & IPostFragment)>>>;
|
|
3707
3750
|
});
|
|
3708
3751
|
});
|
|
3752
|
+
export declare type IPublicMessagesQueryVariables = Exact<{
|
|
3753
|
+
channelId: Scalars['ID'];
|
|
3754
|
+
}>;
|
|
3755
|
+
export declare type IPublicMessagesQuery = ({
|
|
3756
|
+
__typename?: 'Query';
|
|
3757
|
+
} & {
|
|
3758
|
+
publicMessages: ({
|
|
3759
|
+
__typename?: 'Messages';
|
|
3760
|
+
} & Pick<IMessages, 'totalCount'> & {
|
|
3761
|
+
data?: Maybe<Array<Maybe<({
|
|
3762
|
+
__typename?: 'Post';
|
|
3763
|
+
} & IPostFragment)>>>;
|
|
3764
|
+
});
|
|
3765
|
+
});
|
|
3709
3766
|
export declare type IGetOrganizationDetailQueryVariables = Exact<{
|
|
3710
3767
|
where: IOrgDetailWhere;
|
|
3711
3768
|
}>;
|
|
@@ -3889,7 +3946,8 @@ export declare type IGetOrganizationMembersQuery = ({
|
|
|
3889
3946
|
})>;
|
|
3890
3947
|
});
|
|
3891
3948
|
export declare type IOnChatMessageAddedSubscriptionVariables = Exact<{
|
|
3892
|
-
[
|
|
3949
|
+
channelId?: Maybe<Scalars['String']>;
|
|
3950
|
+
directTo?: Maybe<Scalars['String']>;
|
|
3893
3951
|
}>;
|
|
3894
3952
|
export declare type IOnChatMessageAddedSubscription = ({
|
|
3895
3953
|
__typename?: 'Subscription';
|
|
@@ -3898,6 +3956,44 @@ export declare type IOnChatMessageAddedSubscription = ({
|
|
|
3898
3956
|
__typename?: 'Post';
|
|
3899
3957
|
} & IPostFragment)>;
|
|
3900
3958
|
});
|
|
3959
|
+
export declare type IOnPublicPostAddedSubscriptionVariables = Exact<{
|
|
3960
|
+
channelId: Scalars['String'];
|
|
3961
|
+
}>;
|
|
3962
|
+
export declare type IOnPublicPostAddedSubscription = ({
|
|
3963
|
+
__typename?: 'Subscription';
|
|
3964
|
+
} & {
|
|
3965
|
+
publicPostAdded?: Maybe<({
|
|
3966
|
+
__typename?: 'Post';
|
|
3967
|
+
} & IPostFragment)>;
|
|
3968
|
+
});
|
|
3969
|
+
export declare type IOnThreadChatMessageAddedSubscriptionVariables = Exact<{
|
|
3970
|
+
channelId?: Maybe<Scalars['String']>;
|
|
3971
|
+
postParentId?: Maybe<Scalars['String']>;
|
|
3972
|
+
}>;
|
|
3973
|
+
export declare type IOnThreadChatMessageAddedSubscription = ({
|
|
3974
|
+
__typename?: 'Subscription';
|
|
3975
|
+
} & {
|
|
3976
|
+
threadChatMessageAdded?: Maybe<({
|
|
3977
|
+
__typename?: 'Post';
|
|
3978
|
+
} & IPostFragment)>;
|
|
3979
|
+
});
|
|
3980
|
+
export declare type IOnThreadCreatedUpdatedSubscriptionVariables = Exact<{
|
|
3981
|
+
[key: string]: never;
|
|
3982
|
+
}>;
|
|
3983
|
+
export declare type IOnThreadCreatedUpdatedSubscription = ({
|
|
3984
|
+
__typename?: 'Subscription';
|
|
3985
|
+
} & {
|
|
3986
|
+
threadCreatedUpdated?: Maybe<({
|
|
3987
|
+
__typename?: 'ThreadCreatedUpdated';
|
|
3988
|
+
} & Pick<IThreadCreatedUpdated, 'isCreated' | 'isUpdated'> & {
|
|
3989
|
+
lastMessage?: Maybe<({
|
|
3990
|
+
__typename?: 'Post';
|
|
3991
|
+
} & IPostFragment)>;
|
|
3992
|
+
data?: Maybe<({
|
|
3993
|
+
__typename?: 'PostThread';
|
|
3994
|
+
} & IPostThreadFragment)>;
|
|
3995
|
+
})>;
|
|
3996
|
+
});
|
|
3901
3997
|
export declare type ResolverTypeWrapper<T> = Promise<T> | T;
|
|
3902
3998
|
export declare type ResolverWithResolve<TResult, TParent, TContext, TArgs> = {
|
|
3903
3999
|
resolve: ResolverFn<TResult, TParent, TContext, TArgs>;
|
|
@@ -4183,6 +4279,7 @@ export declare type IResolversTypes = {
|
|
|
4183
4279
|
TeamUpdateRequest: ITeamUpdateRequest;
|
|
4184
4280
|
TerritorialStateInput: ITerritorialStateInput;
|
|
4185
4281
|
TerritorialStateUpdateInput: ITerritorialStateUpdateInput;
|
|
4282
|
+
ThreadCreatedUpdated: ResolverTypeWrapper<IThreadCreatedUpdated>;
|
|
4186
4283
|
ThreadMessageInput: IThreadMessageInput;
|
|
4187
4284
|
ThreadMessageSent: ResolverTypeWrapper<IThreadMessageSent>;
|
|
4188
4285
|
ThreadMessages: ResolverTypeWrapper<IThreadMessages>;
|
|
@@ -4432,6 +4529,7 @@ export declare type IResolversParentTypes = {
|
|
|
4432
4529
|
TeamUpdateRequest: ITeamUpdateRequest;
|
|
4433
4530
|
TerritorialStateInput: ITerritorialStateInput;
|
|
4434
4531
|
TerritorialStateUpdateInput: ITerritorialStateUpdateInput;
|
|
4532
|
+
ThreadCreatedUpdated: IThreadCreatedUpdated;
|
|
4435
4533
|
ThreadMessageInput: IThreadMessageInput;
|
|
4436
4534
|
ThreadMessageSent: IThreadMessageSent;
|
|
4437
4535
|
ThreadMessages: IThreadMessages;
|
|
@@ -5161,6 +5259,7 @@ export declare type IMutationResolvers<ContextType = any, ParentType extends IRe
|
|
|
5161
5259
|
sendNotificationOfUnreadMessages?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationSendNotificationOfUnreadMessagesArgs, 'unit' | 'value'>>;
|
|
5162
5260
|
sendOrganizationInvitation?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType, RequireFields<IMutationSendOrganizationInvitationArgs, never>>;
|
|
5163
5261
|
sendPhoneOTP?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationSendPhoneOtpArgs, 'phoneNumber'>>;
|
|
5262
|
+
sendPublicMessage?: Resolver<Maybe<IResolversTypes['Post']>, ParentType, ContextType, RequireFields<IMutationSendPublicMessageArgs, 'channelId' | 'messageInput'>>;
|
|
5164
5263
|
sendSms?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationSendSmsArgs, never>>;
|
|
5165
5264
|
sendThreadMessage?: Resolver<Maybe<IResolversTypes['ThreadMessageSent']>, ParentType, ContextType, RequireFields<IMutationSendThreadMessageArgs, 'channelId' | 'threadMessageInput'>>;
|
|
5166
5265
|
sendUserPasswordResetEmail?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType, RequireFields<IMutationSendUserPasswordResetEmailArgs, 'email'>>;
|
|
@@ -5652,6 +5751,7 @@ export declare type IQueryResolvers<ContextType = any, ParentType extends IResol
|
|
|
5652
5751
|
messages?: Resolver<IResolversTypes['Messages'], ParentType, ContextType, RequireFields<IQueryMessagesArgs, never>>;
|
|
5653
5752
|
organizations?: Resolver<Maybe<Array<Maybe<IResolversTypes['Organization']>>>, ParentType, ContextType>;
|
|
5654
5753
|
profile?: Resolver<IResolversTypes['Profile'], ParentType, ContextType, RequireFields<IQueryProfileArgs, never>>;
|
|
5754
|
+
publicMessages?: Resolver<IResolversTypes['Messages'], ParentType, ContextType, RequireFields<IQueryPublicMessagesArgs, 'channelId'>>;
|
|
5655
5755
|
supportServiceChannels?: Resolver<Maybe<Array<Maybe<IResolversTypes['Channel']>>>, ParentType, ContextType, RequireFields<IQuerySupportServiceChannelsArgs, never>>;
|
|
5656
5756
|
team?: Resolver<Maybe<IResolversTypes['AccountTeam']>, ParentType, ContextType, RequireFields<IQueryTeamArgs, 'teamId'>>;
|
|
5657
5757
|
teams?: Resolver<Maybe<Array<Maybe<IResolversTypes['AccountTeam']>>>, ParentType, ContextType>;
|
|
@@ -5753,6 +5853,9 @@ export declare type ISubscriptionResolvers<ContextType = any, ParentType extends
|
|
|
5753
5853
|
SubscribeToPolicyUpdate?: SubscriptionResolver<Maybe<IResolversTypes['ConfigurationUpdateEvent']>, "SubscribeToPolicyUpdate", ParentType, ContextType, RequireFields<ISubscriptionSubscribeToPolicyUpdateArgs, never>>;
|
|
5754
5854
|
chatMessageAdded?: SubscriptionResolver<Maybe<IResolversTypes['Post']>, "chatMessageAdded", ParentType, ContextType, RequireFields<ISubscriptionChatMessageAddedArgs, never>>;
|
|
5755
5855
|
dummy?: SubscriptionResolver<Maybe<IResolversTypes['Int']>, "dummy", ParentType, ContextType>;
|
|
5856
|
+
publicPostAdded?: SubscriptionResolver<Maybe<IResolversTypes['Post']>, "publicPostAdded", ParentType, ContextType, RequireFields<ISubscriptionPublicPostAddedArgs, 'channelId'>>;
|
|
5857
|
+
threadChatMessageAdded?: SubscriptionResolver<Maybe<IResolversTypes['Post']>, "threadChatMessageAdded", ParentType, ContextType, RequireFields<ISubscriptionThreadChatMessageAddedArgs, never>>;
|
|
5858
|
+
threadCreatedUpdated?: SubscriptionResolver<Maybe<IResolversTypes['ThreadCreatedUpdated']>, "threadCreatedUpdated", ParentType, ContextType>;
|
|
5756
5859
|
};
|
|
5757
5860
|
export declare type ITeamMemberResolvers<ContextType = any, ParentType extends IResolversParentTypes['TeamMember'] = IResolversParentTypes['TeamMember']> = {
|
|
5758
5861
|
id?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
@@ -5764,6 +5867,13 @@ export declare type ITeamMemberResolvers<ContextType = any, ParentType extends I
|
|
|
5764
5867
|
status?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
5765
5868
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
5766
5869
|
};
|
|
5870
|
+
export declare type IThreadCreatedUpdatedResolvers<ContextType = any, ParentType extends IResolversParentTypes['ThreadCreatedUpdated'] = IResolversParentTypes['ThreadCreatedUpdated']> = {
|
|
5871
|
+
isCreated?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
5872
|
+
isUpdated?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
5873
|
+
lastMessage?: Resolver<Maybe<IResolversTypes['Post']>, ParentType, ContextType>;
|
|
5874
|
+
data?: Resolver<Maybe<IResolversTypes['PostThread']>, ParentType, ContextType>;
|
|
5875
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
5876
|
+
};
|
|
5767
5877
|
export declare type IThreadMessageSentResolvers<ContextType = any, ParentType extends IResolversParentTypes['ThreadMessageSent'] = IResolversParentTypes['ThreadMessageSent']> = {
|
|
5768
5878
|
lastMessage?: Resolver<Maybe<IResolversTypes['Post']>, ParentType, ContextType>;
|
|
5769
5879
|
data?: Resolver<Maybe<IResolversTypes['PostThread']>, ParentType, ContextType>;
|
|
@@ -6104,6 +6214,7 @@ export declare type IResolvers<ContextType = any> = {
|
|
|
6104
6214
|
SubscribedOrganizationData?: ISubscribedOrganizationDataResolvers<ContextType>;
|
|
6105
6215
|
Subscription?: ISubscriptionResolvers<ContextType>;
|
|
6106
6216
|
TeamMember?: ITeamMemberResolvers<ContextType>;
|
|
6217
|
+
ThreadCreatedUpdated?: IThreadCreatedUpdatedResolvers<ContextType>;
|
|
6107
6218
|
ThreadMessageSent?: IThreadMessageSentResolvers<ContextType>;
|
|
6108
6219
|
ThreadMessages?: IThreadMessagesResolvers<ContextType>;
|
|
6109
6220
|
Time?: GraphQLScalarType;
|
|
@@ -6373,6 +6484,7 @@ export declare const SendMessagesDocument: DocumentNode;
|
|
|
6373
6484
|
* content: // value for 'content'
|
|
6374
6485
|
* files: // value for 'files'
|
|
6375
6486
|
* postId: // value for 'postId'
|
|
6487
|
+
* createdBy: // value for 'createdBy'
|
|
6376
6488
|
* },
|
|
6377
6489
|
* });
|
|
6378
6490
|
*/
|
|
@@ -6381,10 +6493,39 @@ export declare function useSendMessagesMutation(baseOptions?: Apollo.MutationHoo
|
|
|
6381
6493
|
content: string;
|
|
6382
6494
|
files?: string | string[];
|
|
6383
6495
|
postId?: string;
|
|
6496
|
+
createdBy?: string;
|
|
6384
6497
|
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
6385
6498
|
export declare type SendMessagesMutationHookResult = ReturnType<typeof useSendMessagesMutation>;
|
|
6386
6499
|
export declare type SendMessagesMutationResult = Apollo.MutationResult<ISendMessagesMutation>;
|
|
6387
6500
|
export declare type SendMessagesMutationOptions = Apollo.BaseMutationOptions<ISendMessagesMutation, ISendMessagesMutationVariables>;
|
|
6501
|
+
export declare const SendPublicMessageDocument: DocumentNode;
|
|
6502
|
+
/**
|
|
6503
|
+
* __useSendPublicMessageMutation__
|
|
6504
|
+
*
|
|
6505
|
+
* To run a mutation, you first call `useSendPublicMessageMutation` within a React component and pass it any options that fit your needs.
|
|
6506
|
+
* When your component renders, `useSendPublicMessageMutation` returns a tuple that includes:
|
|
6507
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
6508
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
6509
|
+
*
|
|
6510
|
+
* @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;
|
|
6511
|
+
*
|
|
6512
|
+
* @example
|
|
6513
|
+
* const [sendPublicMessageMutation, { data, loading, error }] = useSendPublicMessageMutation({
|
|
6514
|
+
* variables: {
|
|
6515
|
+
* channelId: // value for 'channelId'
|
|
6516
|
+
* messageInput: // value for 'messageInput'
|
|
6517
|
+
* postId: // value for 'postId'
|
|
6518
|
+
* },
|
|
6519
|
+
* });
|
|
6520
|
+
*/
|
|
6521
|
+
export declare function useSendPublicMessageMutation(baseOptions?: Apollo.MutationHookOptions<ISendPublicMessageMutation, ISendPublicMessageMutationVariables>): Apollo.MutationTuple<ISendPublicMessageMutation, Exact<{
|
|
6522
|
+
channelId: string;
|
|
6523
|
+
messageInput: IMessageInput;
|
|
6524
|
+
postId?: string;
|
|
6525
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
6526
|
+
export declare type SendPublicMessageMutationHookResult = ReturnType<typeof useSendPublicMessageMutation>;
|
|
6527
|
+
export declare type SendPublicMessageMutationResult = Apollo.MutationResult<ISendPublicMessageMutation>;
|
|
6528
|
+
export declare type SendPublicMessageMutationOptions = Apollo.BaseMutationOptions<ISendPublicMessageMutation, ISendPublicMessageMutationVariables>;
|
|
6388
6529
|
export declare const DeleteMessageDocument: DocumentNode;
|
|
6389
6530
|
/**
|
|
6390
6531
|
* __useDeleteMessageMutation__
|
|
@@ -6846,6 +6987,32 @@ export declare function useMessagesLazyQuery(baseOptions?: Apollo.LazyQueryHookO
|
|
|
6846
6987
|
export declare type MessagesQueryHookResult = ReturnType<typeof useMessagesQuery>;
|
|
6847
6988
|
export declare type MessagesLazyQueryHookResult = ReturnType<typeof useMessagesLazyQuery>;
|
|
6848
6989
|
export declare type MessagesQueryResult = Apollo.QueryResult<IMessagesQuery, IMessagesQueryVariables>;
|
|
6990
|
+
export declare const PublicMessagesDocument: DocumentNode;
|
|
6991
|
+
/**
|
|
6992
|
+
* __usePublicMessagesQuery__
|
|
6993
|
+
*
|
|
6994
|
+
* To run a query within a React component, call `usePublicMessagesQuery` and pass it any options that fit your needs.
|
|
6995
|
+
* When your component renders, `usePublicMessagesQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
6996
|
+
* you can use to render your UI.
|
|
6997
|
+
*
|
|
6998
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
6999
|
+
*
|
|
7000
|
+
* @example
|
|
7001
|
+
* const { data, loading, error } = usePublicMessagesQuery({
|
|
7002
|
+
* variables: {
|
|
7003
|
+
* channelId: // value for 'channelId'
|
|
7004
|
+
* },
|
|
7005
|
+
* });
|
|
7006
|
+
*/
|
|
7007
|
+
export declare function usePublicMessagesQuery(baseOptions: Apollo.QueryHookOptions<IPublicMessagesQuery, IPublicMessagesQueryVariables>): Apollo.QueryResult<IPublicMessagesQuery, Exact<{
|
|
7008
|
+
channelId: string;
|
|
7009
|
+
}>>;
|
|
7010
|
+
export declare function usePublicMessagesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IPublicMessagesQuery, IPublicMessagesQueryVariables>): Apollo.LazyQueryResultTuple<IPublicMessagesQuery, Exact<{
|
|
7011
|
+
channelId: string;
|
|
7012
|
+
}>>;
|
|
7013
|
+
export declare type PublicMessagesQueryHookResult = ReturnType<typeof usePublicMessagesQuery>;
|
|
7014
|
+
export declare type PublicMessagesLazyQueryHookResult = ReturnType<typeof usePublicMessagesLazyQuery>;
|
|
7015
|
+
export declare type PublicMessagesQueryResult = Apollo.QueryResult<IPublicMessagesQuery, IPublicMessagesQueryVariables>;
|
|
6849
7016
|
export declare const GetOrganizationDetailDocument: DocumentNode;
|
|
6850
7017
|
/**
|
|
6851
7018
|
* __useGetOrganizationDetailQuery__
|
|
@@ -7209,10 +7376,72 @@ export declare const OnChatMessageAddedDocument: DocumentNode;
|
|
|
7209
7376
|
* @example
|
|
7210
7377
|
* const { data, loading, error } = useOnChatMessageAddedSubscription({
|
|
7211
7378
|
* variables: {
|
|
7379
|
+
* channelId: // value for 'channelId'
|
|
7380
|
+
* directTo: // value for 'directTo'
|
|
7212
7381
|
* },
|
|
7213
7382
|
* });
|
|
7214
7383
|
*/
|
|
7215
7384
|
export declare function useOnChatMessageAddedSubscription(baseOptions?: Apollo.SubscriptionHookOptions<IOnChatMessageAddedSubscription, IOnChatMessageAddedSubscriptionVariables>): Apollo.SubscriptionResult<IOnChatMessageAddedSubscription, any>;
|
|
7216
7385
|
export declare type OnChatMessageAddedSubscriptionHookResult = ReturnType<typeof useOnChatMessageAddedSubscription>;
|
|
7217
7386
|
export declare type OnChatMessageAddedSubscriptionResult = Apollo.SubscriptionResult<IOnChatMessageAddedSubscription>;
|
|
7387
|
+
export declare const OnPublicPostAddedDocument: DocumentNode;
|
|
7388
|
+
/**
|
|
7389
|
+
* __useOnPublicPostAddedSubscription__
|
|
7390
|
+
*
|
|
7391
|
+
* To run a query within a React component, call `useOnPublicPostAddedSubscription` and pass it any options that fit your needs.
|
|
7392
|
+
* When your component renders, `useOnPublicPostAddedSubscription` returns an object from Apollo Client that contains loading, error, and data properties
|
|
7393
|
+
* you can use to render your UI.
|
|
7394
|
+
*
|
|
7395
|
+
* @param baseOptions options that will be passed into the subscription, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
7396
|
+
*
|
|
7397
|
+
* @example
|
|
7398
|
+
* const { data, loading, error } = useOnPublicPostAddedSubscription({
|
|
7399
|
+
* variables: {
|
|
7400
|
+
* channelId: // value for 'channelId'
|
|
7401
|
+
* },
|
|
7402
|
+
* });
|
|
7403
|
+
*/
|
|
7404
|
+
export declare function useOnPublicPostAddedSubscription(baseOptions: Apollo.SubscriptionHookOptions<IOnPublicPostAddedSubscription, IOnPublicPostAddedSubscriptionVariables>): Apollo.SubscriptionResult<IOnPublicPostAddedSubscription, any>;
|
|
7405
|
+
export declare type OnPublicPostAddedSubscriptionHookResult = ReturnType<typeof useOnPublicPostAddedSubscription>;
|
|
7406
|
+
export declare type OnPublicPostAddedSubscriptionResult = Apollo.SubscriptionResult<IOnPublicPostAddedSubscription>;
|
|
7407
|
+
export declare const OnThreadChatMessageAddedDocument: DocumentNode;
|
|
7408
|
+
/**
|
|
7409
|
+
* __useOnThreadChatMessageAddedSubscription__
|
|
7410
|
+
*
|
|
7411
|
+
* To run a query within a React component, call `useOnThreadChatMessageAddedSubscription` and pass it any options that fit your needs.
|
|
7412
|
+
* When your component renders, `useOnThreadChatMessageAddedSubscription` returns an object from Apollo Client that contains loading, error, and data properties
|
|
7413
|
+
* you can use to render your UI.
|
|
7414
|
+
*
|
|
7415
|
+
* @param baseOptions options that will be passed into the subscription, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
7416
|
+
*
|
|
7417
|
+
* @example
|
|
7418
|
+
* const { data, loading, error } = useOnThreadChatMessageAddedSubscription({
|
|
7419
|
+
* variables: {
|
|
7420
|
+
* channelId: // value for 'channelId'
|
|
7421
|
+
* postParentId: // value for 'postParentId'
|
|
7422
|
+
* },
|
|
7423
|
+
* });
|
|
7424
|
+
*/
|
|
7425
|
+
export declare function useOnThreadChatMessageAddedSubscription(baseOptions?: Apollo.SubscriptionHookOptions<IOnThreadChatMessageAddedSubscription, IOnThreadChatMessageAddedSubscriptionVariables>): Apollo.SubscriptionResult<IOnThreadChatMessageAddedSubscription, any>;
|
|
7426
|
+
export declare type OnThreadChatMessageAddedSubscriptionHookResult = ReturnType<typeof useOnThreadChatMessageAddedSubscription>;
|
|
7427
|
+
export declare type OnThreadChatMessageAddedSubscriptionResult = Apollo.SubscriptionResult<IOnThreadChatMessageAddedSubscription>;
|
|
7428
|
+
export declare const OnThreadCreatedUpdatedDocument: DocumentNode;
|
|
7429
|
+
/**
|
|
7430
|
+
* __useOnThreadCreatedUpdatedSubscription__
|
|
7431
|
+
*
|
|
7432
|
+
* To run a query within a React component, call `useOnThreadCreatedUpdatedSubscription` and pass it any options that fit your needs.
|
|
7433
|
+
* When your component renders, `useOnThreadCreatedUpdatedSubscription` returns an object from Apollo Client that contains loading, error, and data properties
|
|
7434
|
+
* you can use to render your UI.
|
|
7435
|
+
*
|
|
7436
|
+
* @param baseOptions options that will be passed into the subscription, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
7437
|
+
*
|
|
7438
|
+
* @example
|
|
7439
|
+
* const { data, loading, error } = useOnThreadCreatedUpdatedSubscription({
|
|
7440
|
+
* variables: {
|
|
7441
|
+
* },
|
|
7442
|
+
* });
|
|
7443
|
+
*/
|
|
7444
|
+
export declare function useOnThreadCreatedUpdatedSubscription(baseOptions?: Apollo.SubscriptionHookOptions<IOnThreadCreatedUpdatedSubscription, IOnThreadCreatedUpdatedSubscriptionVariables>): Apollo.SubscriptionResult<IOnThreadCreatedUpdatedSubscription, any>;
|
|
7445
|
+
export declare type OnThreadCreatedUpdatedSubscriptionHookResult = ReturnType<typeof useOnThreadCreatedUpdatedSubscription>;
|
|
7446
|
+
export declare type OnThreadCreatedUpdatedSubscriptionResult = Apollo.SubscriptionResult<IOnThreadCreatedUpdatedSubscription>;
|
|
7218
7447
|
export {};
|