@messenger-box/core 0.0.1-alpha.363 → 0.0.1-alpha.367
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';
|
|
@@ -1072,7 +1074,9 @@ export declare type IMessages = {
|
|
|
1072
1074
|
data?: Maybe<Array<Maybe<IPost>>>;
|
|
1073
1075
|
};
|
|
1074
1076
|
export declare const enum IMessengerNotificationServiceCommands {
|
|
1075
|
-
SendNotificationOfUnreadMessages = "sendNotificationOfUnreadMessages"
|
|
1077
|
+
SendNotificationOfUnreadMessages = "sendNotificationOfUnreadMessages",
|
|
1078
|
+
SendNotificationOnPost = "sendNotificationOnPost",
|
|
1079
|
+
SendNotificationOfAlertMessages = "sendNotificationOfAlertMessages"
|
|
1076
1080
|
}
|
|
1077
1081
|
export declare type IMessengerUser = IIUser & {
|
|
1078
1082
|
__typename?: 'MessengerUser';
|
|
@@ -1178,9 +1182,11 @@ export declare type IMutation = {
|
|
|
1178
1182
|
sendEmailOTP: Scalars['Boolean'];
|
|
1179
1183
|
sendEmailVerificationToken?: Maybe<Scalars['Boolean']>;
|
|
1180
1184
|
sendMessage?: Maybe<IPost>;
|
|
1185
|
+
sendNotificationOfAlertMessages: Scalars['Boolean'];
|
|
1181
1186
|
sendNotificationOfUnreadMessages: Scalars['Boolean'];
|
|
1182
1187
|
sendOrganizationInvitation?: Maybe<Scalars['Boolean']>;
|
|
1183
1188
|
sendPhoneOTP: Scalars['Boolean'];
|
|
1189
|
+
sendPublicMessage?: Maybe<IPost>;
|
|
1184
1190
|
sendSms: Scalars['Boolean'];
|
|
1185
1191
|
sendThreadMessage?: Maybe<IThreadMessageSent>;
|
|
1186
1192
|
sendUserPasswordResetEmail?: Maybe<Scalars['Boolean']>;
|
|
@@ -1428,6 +1434,10 @@ export declare type IMutationSendMessageArgs = {
|
|
|
1428
1434
|
messageInput: IMessageInput;
|
|
1429
1435
|
postId?: Maybe<Scalars['ID']>;
|
|
1430
1436
|
};
|
|
1437
|
+
export declare type IMutationSendNotificationOfAlertMessagesArgs = {
|
|
1438
|
+
unit: Scalars['String'];
|
|
1439
|
+
value: Scalars['Int'];
|
|
1440
|
+
};
|
|
1431
1441
|
export declare type IMutationSendNotificationOfUnreadMessagesArgs = {
|
|
1432
1442
|
unit: Scalars['String'];
|
|
1433
1443
|
value: Scalars['Int'];
|
|
@@ -1438,6 +1448,11 @@ export declare type IMutationSendOrganizationInvitationArgs = {
|
|
|
1438
1448
|
export declare type IMutationSendPhoneOtpArgs = {
|
|
1439
1449
|
phoneNumber: IPhoneNumberInput;
|
|
1440
1450
|
};
|
|
1451
|
+
export declare type IMutationSendPublicMessageArgs = {
|
|
1452
|
+
channelId: Scalars['String'];
|
|
1453
|
+
messageInput: IMessageInput;
|
|
1454
|
+
postId?: Maybe<Scalars['ID']>;
|
|
1455
|
+
};
|
|
1441
1456
|
export declare type IMutationSendSmsArgs = {
|
|
1442
1457
|
sms?: Maybe<ISendSmsInput>;
|
|
1443
1458
|
};
|
|
@@ -2094,6 +2109,7 @@ export declare type IPostThreadParticipants = {
|
|
|
2094
2109
|
export declare const enum IPostTypeEnum {
|
|
2095
2110
|
Alert = "ALERT",
|
|
2096
2111
|
Card = "CARD",
|
|
2112
|
+
Public = "Public",
|
|
2097
2113
|
Simple = "Simple"
|
|
2098
2114
|
}
|
|
2099
2115
|
export declare type IPostsWithCursor = {
|
|
@@ -2340,6 +2356,7 @@ export declare type IQuery = {
|
|
|
2340
2356
|
messages: IMessages;
|
|
2341
2357
|
organizations?: Maybe<Array<Maybe<IOrganization>>>;
|
|
2342
2358
|
profile: IProfile;
|
|
2359
|
+
publicMessages: IMessages;
|
|
2343
2360
|
supportServiceChannels?: Maybe<Array<Maybe<IChannel>>>;
|
|
2344
2361
|
team?: Maybe<IAccountTeam>;
|
|
2345
2362
|
teams?: Maybe<Array<Maybe<IAccountTeam>>>;
|
|
@@ -2541,6 +2558,9 @@ export declare type IQueryMessagesArgs = {
|
|
|
2541
2558
|
export declare type IQueryProfileArgs = {
|
|
2542
2559
|
userId?: Maybe<Scalars['String']>;
|
|
2543
2560
|
};
|
|
2561
|
+
export declare type IQueryPublicMessagesArgs = {
|
|
2562
|
+
channelId: Scalars['ID'];
|
|
2563
|
+
};
|
|
2544
2564
|
export declare type IQuerySupportServiceChannelsArgs = {
|
|
2545
2565
|
role?: Maybe<Scalars['String']>;
|
|
2546
2566
|
criteria?: Maybe<Scalars['AnyObject']>;
|
|
@@ -2747,6 +2767,9 @@ export declare type ISubscription = {
|
|
|
2747
2767
|
SubscribeToPolicyUpdate?: Maybe<IConfigurationUpdateEvent>;
|
|
2748
2768
|
chatMessageAdded?: Maybe<IPost>;
|
|
2749
2769
|
dummy?: Maybe<Scalars['Int']>;
|
|
2770
|
+
publicPostAdded?: Maybe<IPost>;
|
|
2771
|
+
threadChatMessageAdded?: Maybe<IPost>;
|
|
2772
|
+
threadCreatedUpdated?: Maybe<IThreadCreatedUpdated>;
|
|
2750
2773
|
};
|
|
2751
2774
|
export declare type ISubscriptionSubscribeToConfigurationUpdateArgs = {
|
|
2752
2775
|
orgName: Scalars['String'];
|
|
@@ -2764,6 +2787,13 @@ export declare type ISubscriptionChatMessageAddedArgs = {
|
|
|
2764
2787
|
channelId?: Maybe<Scalars['String']>;
|
|
2765
2788
|
directTo?: Maybe<Scalars['String']>;
|
|
2766
2789
|
};
|
|
2790
|
+
export declare type ISubscriptionPublicPostAddedArgs = {
|
|
2791
|
+
channelId: Scalars['String'];
|
|
2792
|
+
};
|
|
2793
|
+
export declare type ISubscriptionThreadChatMessageAddedArgs = {
|
|
2794
|
+
channelId?: Maybe<Scalars['String']>;
|
|
2795
|
+
postParentId?: Maybe<Scalars['String']>;
|
|
2796
|
+
};
|
|
2767
2797
|
export declare type ITeamCreateRequest = {
|
|
2768
2798
|
name?: Maybe<Scalars['String']>;
|
|
2769
2799
|
title: Scalars['String'];
|
|
@@ -2830,6 +2860,13 @@ export declare type ITerritorialStateUpdateInput = {
|
|
|
2830
2860
|
name?: Maybe<Scalars['String']>;
|
|
2831
2861
|
country: Scalars['Int'];
|
|
2832
2862
|
};
|
|
2863
|
+
export declare type IThreadCreatedUpdated = {
|
|
2864
|
+
__typename?: 'ThreadCreatedUpdated';
|
|
2865
|
+
isCreated?: Maybe<Scalars['Boolean']>;
|
|
2866
|
+
isUpdated?: Maybe<Scalars['Boolean']>;
|
|
2867
|
+
lastMessage?: Maybe<IPost>;
|
|
2868
|
+
data?: Maybe<IPostThread>;
|
|
2869
|
+
};
|
|
2833
2870
|
export declare type IThreadMessageInput = {
|
|
2834
2871
|
content: Scalars['String'];
|
|
2835
2872
|
userRef?: Maybe<Array<Maybe<Scalars['String']>>>;
|
|
@@ -3487,6 +3524,7 @@ export declare type ISendMessagesMutationVariables = Exact<{
|
|
|
3487
3524
|
content: Scalars['String'];
|
|
3488
3525
|
files?: Maybe<Array<Scalars['ID']> | Scalars['ID']>;
|
|
3489
3526
|
postId?: Maybe<Scalars['ID']>;
|
|
3527
|
+
createdBy?: Maybe<Scalars['ID']>;
|
|
3490
3528
|
}>;
|
|
3491
3529
|
export declare type ISendMessagesMutation = ({
|
|
3492
3530
|
__typename?: 'Mutation';
|
|
@@ -3495,6 +3533,18 @@ export declare type ISendMessagesMutation = ({
|
|
|
3495
3533
|
__typename?: 'Post';
|
|
3496
3534
|
} & IPostFragment)>;
|
|
3497
3535
|
});
|
|
3536
|
+
export declare type ISendPublicMessageMutationVariables = Exact<{
|
|
3537
|
+
channelId: Scalars['String'];
|
|
3538
|
+
messageInput: IMessageInput;
|
|
3539
|
+
postId?: Maybe<Scalars['ID']>;
|
|
3540
|
+
}>;
|
|
3541
|
+
export declare type ISendPublicMessageMutation = ({
|
|
3542
|
+
__typename?: 'Mutation';
|
|
3543
|
+
} & {
|
|
3544
|
+
sendPublicMessage?: Maybe<({
|
|
3545
|
+
__typename?: 'Post';
|
|
3546
|
+
} & IPostFragment)>;
|
|
3547
|
+
});
|
|
3498
3548
|
export declare type IDeleteMessageMutationVariables = Exact<{
|
|
3499
3549
|
messageId: Scalars['String'];
|
|
3500
3550
|
channelId: Scalars['String'];
|
|
@@ -3706,6 +3756,20 @@ export declare type IMessagesQuery = ({
|
|
|
3706
3756
|
} & IPostFragment)>>>;
|
|
3707
3757
|
});
|
|
3708
3758
|
});
|
|
3759
|
+
export declare type IPublicMessagesQueryVariables = Exact<{
|
|
3760
|
+
channelId: Scalars['ID'];
|
|
3761
|
+
}>;
|
|
3762
|
+
export declare type IPublicMessagesQuery = ({
|
|
3763
|
+
__typename?: 'Query';
|
|
3764
|
+
} & {
|
|
3765
|
+
publicMessages: ({
|
|
3766
|
+
__typename?: 'Messages';
|
|
3767
|
+
} & Pick<IMessages, 'totalCount'> & {
|
|
3768
|
+
data?: Maybe<Array<Maybe<({
|
|
3769
|
+
__typename?: 'Post';
|
|
3770
|
+
} & IPostFragment)>>>;
|
|
3771
|
+
});
|
|
3772
|
+
});
|
|
3709
3773
|
export declare type IGetOrganizationDetailQueryVariables = Exact<{
|
|
3710
3774
|
where: IOrgDetailWhere;
|
|
3711
3775
|
}>;
|
|
@@ -3889,7 +3953,8 @@ export declare type IGetOrganizationMembersQuery = ({
|
|
|
3889
3953
|
})>;
|
|
3890
3954
|
});
|
|
3891
3955
|
export declare type IOnChatMessageAddedSubscriptionVariables = Exact<{
|
|
3892
|
-
[
|
|
3956
|
+
channelId?: Maybe<Scalars['String']>;
|
|
3957
|
+
directTo?: Maybe<Scalars['String']>;
|
|
3893
3958
|
}>;
|
|
3894
3959
|
export declare type IOnChatMessageAddedSubscription = ({
|
|
3895
3960
|
__typename?: 'Subscription';
|
|
@@ -3898,6 +3963,44 @@ export declare type IOnChatMessageAddedSubscription = ({
|
|
|
3898
3963
|
__typename?: 'Post';
|
|
3899
3964
|
} & IPostFragment)>;
|
|
3900
3965
|
});
|
|
3966
|
+
export declare type IOnPublicPostAddedSubscriptionVariables = Exact<{
|
|
3967
|
+
channelId: Scalars['String'];
|
|
3968
|
+
}>;
|
|
3969
|
+
export declare type IOnPublicPostAddedSubscription = ({
|
|
3970
|
+
__typename?: 'Subscription';
|
|
3971
|
+
} & {
|
|
3972
|
+
publicPostAdded?: Maybe<({
|
|
3973
|
+
__typename?: 'Post';
|
|
3974
|
+
} & IPostFragment)>;
|
|
3975
|
+
});
|
|
3976
|
+
export declare type IOnThreadChatMessageAddedSubscriptionVariables = Exact<{
|
|
3977
|
+
channelId?: Maybe<Scalars['String']>;
|
|
3978
|
+
postParentId?: Maybe<Scalars['String']>;
|
|
3979
|
+
}>;
|
|
3980
|
+
export declare type IOnThreadChatMessageAddedSubscription = ({
|
|
3981
|
+
__typename?: 'Subscription';
|
|
3982
|
+
} & {
|
|
3983
|
+
threadChatMessageAdded?: Maybe<({
|
|
3984
|
+
__typename?: 'Post';
|
|
3985
|
+
} & IPostFragment)>;
|
|
3986
|
+
});
|
|
3987
|
+
export declare type IOnThreadCreatedUpdatedSubscriptionVariables = Exact<{
|
|
3988
|
+
[key: string]: never;
|
|
3989
|
+
}>;
|
|
3990
|
+
export declare type IOnThreadCreatedUpdatedSubscription = ({
|
|
3991
|
+
__typename?: 'Subscription';
|
|
3992
|
+
} & {
|
|
3993
|
+
threadCreatedUpdated?: Maybe<({
|
|
3994
|
+
__typename?: 'ThreadCreatedUpdated';
|
|
3995
|
+
} & Pick<IThreadCreatedUpdated, 'isCreated' | 'isUpdated'> & {
|
|
3996
|
+
lastMessage?: Maybe<({
|
|
3997
|
+
__typename?: 'Post';
|
|
3998
|
+
} & IPostFragment)>;
|
|
3999
|
+
data?: Maybe<({
|
|
4000
|
+
__typename?: 'PostThread';
|
|
4001
|
+
} & IPostThreadFragment)>;
|
|
4002
|
+
})>;
|
|
4003
|
+
});
|
|
3901
4004
|
export declare type ResolverTypeWrapper<T> = Promise<T> | T;
|
|
3902
4005
|
export declare type ResolverWithResolve<TResult, TParent, TContext, TArgs> = {
|
|
3903
4006
|
resolve: ResolverFn<TResult, TParent, TContext, TArgs>;
|
|
@@ -4183,6 +4286,7 @@ export declare type IResolversTypes = {
|
|
|
4183
4286
|
TeamUpdateRequest: ITeamUpdateRequest;
|
|
4184
4287
|
TerritorialStateInput: ITerritorialStateInput;
|
|
4185
4288
|
TerritorialStateUpdateInput: ITerritorialStateUpdateInput;
|
|
4289
|
+
ThreadCreatedUpdated: ResolverTypeWrapper<IThreadCreatedUpdated>;
|
|
4186
4290
|
ThreadMessageInput: IThreadMessageInput;
|
|
4187
4291
|
ThreadMessageSent: ResolverTypeWrapper<IThreadMessageSent>;
|
|
4188
4292
|
ThreadMessages: ResolverTypeWrapper<IThreadMessages>;
|
|
@@ -4432,6 +4536,7 @@ export declare type IResolversParentTypes = {
|
|
|
4432
4536
|
TeamUpdateRequest: ITeamUpdateRequest;
|
|
4433
4537
|
TerritorialStateInput: ITerritorialStateInput;
|
|
4434
4538
|
TerritorialStateUpdateInput: ITerritorialStateUpdateInput;
|
|
4539
|
+
ThreadCreatedUpdated: IThreadCreatedUpdated;
|
|
4435
4540
|
ThreadMessageInput: IThreadMessageInput;
|
|
4436
4541
|
ThreadMessageSent: IThreadMessageSent;
|
|
4437
4542
|
ThreadMessages: IThreadMessages;
|
|
@@ -5158,9 +5263,11 @@ export declare type IMutationResolvers<ContextType = any, ParentType extends IRe
|
|
|
5158
5263
|
sendEmailOTP?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationSendEmailOtpArgs, 'email'>>;
|
|
5159
5264
|
sendEmailVerificationToken?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType, RequireFields<IMutationSendEmailVerificationTokenArgs, 'email'>>;
|
|
5160
5265
|
sendMessage?: Resolver<Maybe<IResolversTypes['Post']>, ParentType, ContextType, RequireFields<IMutationSendMessageArgs, 'channelId' | 'messageInput'>>;
|
|
5266
|
+
sendNotificationOfAlertMessages?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationSendNotificationOfAlertMessagesArgs, 'unit' | 'value'>>;
|
|
5161
5267
|
sendNotificationOfUnreadMessages?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationSendNotificationOfUnreadMessagesArgs, 'unit' | 'value'>>;
|
|
5162
5268
|
sendOrganizationInvitation?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType, RequireFields<IMutationSendOrganizationInvitationArgs, never>>;
|
|
5163
5269
|
sendPhoneOTP?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationSendPhoneOtpArgs, 'phoneNumber'>>;
|
|
5270
|
+
sendPublicMessage?: Resolver<Maybe<IResolversTypes['Post']>, ParentType, ContextType, RequireFields<IMutationSendPublicMessageArgs, 'channelId' | 'messageInput'>>;
|
|
5164
5271
|
sendSms?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationSendSmsArgs, never>>;
|
|
5165
5272
|
sendThreadMessage?: Resolver<Maybe<IResolversTypes['ThreadMessageSent']>, ParentType, ContextType, RequireFields<IMutationSendThreadMessageArgs, 'channelId' | 'threadMessageInput'>>;
|
|
5166
5273
|
sendUserPasswordResetEmail?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType, RequireFields<IMutationSendUserPasswordResetEmailArgs, 'email'>>;
|
|
@@ -5652,6 +5759,7 @@ export declare type IQueryResolvers<ContextType = any, ParentType extends IResol
|
|
|
5652
5759
|
messages?: Resolver<IResolversTypes['Messages'], ParentType, ContextType, RequireFields<IQueryMessagesArgs, never>>;
|
|
5653
5760
|
organizations?: Resolver<Maybe<Array<Maybe<IResolversTypes['Organization']>>>, ParentType, ContextType>;
|
|
5654
5761
|
profile?: Resolver<IResolversTypes['Profile'], ParentType, ContextType, RequireFields<IQueryProfileArgs, never>>;
|
|
5762
|
+
publicMessages?: Resolver<IResolversTypes['Messages'], ParentType, ContextType, RequireFields<IQueryPublicMessagesArgs, 'channelId'>>;
|
|
5655
5763
|
supportServiceChannels?: Resolver<Maybe<Array<Maybe<IResolversTypes['Channel']>>>, ParentType, ContextType, RequireFields<IQuerySupportServiceChannelsArgs, never>>;
|
|
5656
5764
|
team?: Resolver<Maybe<IResolversTypes['AccountTeam']>, ParentType, ContextType, RequireFields<IQueryTeamArgs, 'teamId'>>;
|
|
5657
5765
|
teams?: Resolver<Maybe<Array<Maybe<IResolversTypes['AccountTeam']>>>, ParentType, ContextType>;
|
|
@@ -5753,6 +5861,9 @@ export declare type ISubscriptionResolvers<ContextType = any, ParentType extends
|
|
|
5753
5861
|
SubscribeToPolicyUpdate?: SubscriptionResolver<Maybe<IResolversTypes['ConfigurationUpdateEvent']>, "SubscribeToPolicyUpdate", ParentType, ContextType, RequireFields<ISubscriptionSubscribeToPolicyUpdateArgs, never>>;
|
|
5754
5862
|
chatMessageAdded?: SubscriptionResolver<Maybe<IResolversTypes['Post']>, "chatMessageAdded", ParentType, ContextType, RequireFields<ISubscriptionChatMessageAddedArgs, never>>;
|
|
5755
5863
|
dummy?: SubscriptionResolver<Maybe<IResolversTypes['Int']>, "dummy", ParentType, ContextType>;
|
|
5864
|
+
publicPostAdded?: SubscriptionResolver<Maybe<IResolversTypes['Post']>, "publicPostAdded", ParentType, ContextType, RequireFields<ISubscriptionPublicPostAddedArgs, 'channelId'>>;
|
|
5865
|
+
threadChatMessageAdded?: SubscriptionResolver<Maybe<IResolversTypes['Post']>, "threadChatMessageAdded", ParentType, ContextType, RequireFields<ISubscriptionThreadChatMessageAddedArgs, never>>;
|
|
5866
|
+
threadCreatedUpdated?: SubscriptionResolver<Maybe<IResolversTypes['ThreadCreatedUpdated']>, "threadCreatedUpdated", ParentType, ContextType>;
|
|
5756
5867
|
};
|
|
5757
5868
|
export declare type ITeamMemberResolvers<ContextType = any, ParentType extends IResolversParentTypes['TeamMember'] = IResolversParentTypes['TeamMember']> = {
|
|
5758
5869
|
id?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
@@ -5764,6 +5875,13 @@ export declare type ITeamMemberResolvers<ContextType = any, ParentType extends I
|
|
|
5764
5875
|
status?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
5765
5876
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
5766
5877
|
};
|
|
5878
|
+
export declare type IThreadCreatedUpdatedResolvers<ContextType = any, ParentType extends IResolversParentTypes['ThreadCreatedUpdated'] = IResolversParentTypes['ThreadCreatedUpdated']> = {
|
|
5879
|
+
isCreated?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
5880
|
+
isUpdated?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
5881
|
+
lastMessage?: Resolver<Maybe<IResolversTypes['Post']>, ParentType, ContextType>;
|
|
5882
|
+
data?: Resolver<Maybe<IResolversTypes['PostThread']>, ParentType, ContextType>;
|
|
5883
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
5884
|
+
};
|
|
5767
5885
|
export declare type IThreadMessageSentResolvers<ContextType = any, ParentType extends IResolversParentTypes['ThreadMessageSent'] = IResolversParentTypes['ThreadMessageSent']> = {
|
|
5768
5886
|
lastMessage?: Resolver<Maybe<IResolversTypes['Post']>, ParentType, ContextType>;
|
|
5769
5887
|
data?: Resolver<Maybe<IResolversTypes['PostThread']>, ParentType, ContextType>;
|
|
@@ -6104,6 +6222,7 @@ export declare type IResolvers<ContextType = any> = {
|
|
|
6104
6222
|
SubscribedOrganizationData?: ISubscribedOrganizationDataResolvers<ContextType>;
|
|
6105
6223
|
Subscription?: ISubscriptionResolvers<ContextType>;
|
|
6106
6224
|
TeamMember?: ITeamMemberResolvers<ContextType>;
|
|
6225
|
+
ThreadCreatedUpdated?: IThreadCreatedUpdatedResolvers<ContextType>;
|
|
6107
6226
|
ThreadMessageSent?: IThreadMessageSentResolvers<ContextType>;
|
|
6108
6227
|
ThreadMessages?: IThreadMessagesResolvers<ContextType>;
|
|
6109
6228
|
Time?: GraphQLScalarType;
|
|
@@ -6373,6 +6492,7 @@ export declare const SendMessagesDocument: DocumentNode;
|
|
|
6373
6492
|
* content: // value for 'content'
|
|
6374
6493
|
* files: // value for 'files'
|
|
6375
6494
|
* postId: // value for 'postId'
|
|
6495
|
+
* createdBy: // value for 'createdBy'
|
|
6376
6496
|
* },
|
|
6377
6497
|
* });
|
|
6378
6498
|
*/
|
|
@@ -6381,10 +6501,39 @@ export declare function useSendMessagesMutation(baseOptions?: Apollo.MutationHoo
|
|
|
6381
6501
|
content: string;
|
|
6382
6502
|
files?: string | string[];
|
|
6383
6503
|
postId?: string;
|
|
6504
|
+
createdBy?: string;
|
|
6384
6505
|
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
6385
6506
|
export declare type SendMessagesMutationHookResult = ReturnType<typeof useSendMessagesMutation>;
|
|
6386
6507
|
export declare type SendMessagesMutationResult = Apollo.MutationResult<ISendMessagesMutation>;
|
|
6387
6508
|
export declare type SendMessagesMutationOptions = Apollo.BaseMutationOptions<ISendMessagesMutation, ISendMessagesMutationVariables>;
|
|
6509
|
+
export declare const SendPublicMessageDocument: DocumentNode;
|
|
6510
|
+
/**
|
|
6511
|
+
* __useSendPublicMessageMutation__
|
|
6512
|
+
*
|
|
6513
|
+
* To run a mutation, you first call `useSendPublicMessageMutation` within a React component and pass it any options that fit your needs.
|
|
6514
|
+
* When your component renders, `useSendPublicMessageMutation` returns a tuple that includes:
|
|
6515
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
6516
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
6517
|
+
*
|
|
6518
|
+
* @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;
|
|
6519
|
+
*
|
|
6520
|
+
* @example
|
|
6521
|
+
* const [sendPublicMessageMutation, { data, loading, error }] = useSendPublicMessageMutation({
|
|
6522
|
+
* variables: {
|
|
6523
|
+
* channelId: // value for 'channelId'
|
|
6524
|
+
* messageInput: // value for 'messageInput'
|
|
6525
|
+
* postId: // value for 'postId'
|
|
6526
|
+
* },
|
|
6527
|
+
* });
|
|
6528
|
+
*/
|
|
6529
|
+
export declare function useSendPublicMessageMutation(baseOptions?: Apollo.MutationHookOptions<ISendPublicMessageMutation, ISendPublicMessageMutationVariables>): Apollo.MutationTuple<ISendPublicMessageMutation, Exact<{
|
|
6530
|
+
channelId: string;
|
|
6531
|
+
messageInput: IMessageInput;
|
|
6532
|
+
postId?: string;
|
|
6533
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
6534
|
+
export declare type SendPublicMessageMutationHookResult = ReturnType<typeof useSendPublicMessageMutation>;
|
|
6535
|
+
export declare type SendPublicMessageMutationResult = Apollo.MutationResult<ISendPublicMessageMutation>;
|
|
6536
|
+
export declare type SendPublicMessageMutationOptions = Apollo.BaseMutationOptions<ISendPublicMessageMutation, ISendPublicMessageMutationVariables>;
|
|
6388
6537
|
export declare const DeleteMessageDocument: DocumentNode;
|
|
6389
6538
|
/**
|
|
6390
6539
|
* __useDeleteMessageMutation__
|
|
@@ -6846,6 +6995,32 @@ export declare function useMessagesLazyQuery(baseOptions?: Apollo.LazyQueryHookO
|
|
|
6846
6995
|
export declare type MessagesQueryHookResult = ReturnType<typeof useMessagesQuery>;
|
|
6847
6996
|
export declare type MessagesLazyQueryHookResult = ReturnType<typeof useMessagesLazyQuery>;
|
|
6848
6997
|
export declare type MessagesQueryResult = Apollo.QueryResult<IMessagesQuery, IMessagesQueryVariables>;
|
|
6998
|
+
export declare const PublicMessagesDocument: DocumentNode;
|
|
6999
|
+
/**
|
|
7000
|
+
* __usePublicMessagesQuery__
|
|
7001
|
+
*
|
|
7002
|
+
* To run a query within a React component, call `usePublicMessagesQuery` and pass it any options that fit your needs.
|
|
7003
|
+
* When your component renders, `usePublicMessagesQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
7004
|
+
* you can use to render your UI.
|
|
7005
|
+
*
|
|
7006
|
+
* @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;
|
|
7007
|
+
*
|
|
7008
|
+
* @example
|
|
7009
|
+
* const { data, loading, error } = usePublicMessagesQuery({
|
|
7010
|
+
* variables: {
|
|
7011
|
+
* channelId: // value for 'channelId'
|
|
7012
|
+
* },
|
|
7013
|
+
* });
|
|
7014
|
+
*/
|
|
7015
|
+
export declare function usePublicMessagesQuery(baseOptions: Apollo.QueryHookOptions<IPublicMessagesQuery, IPublicMessagesQueryVariables>): Apollo.QueryResult<IPublicMessagesQuery, Exact<{
|
|
7016
|
+
channelId: string;
|
|
7017
|
+
}>>;
|
|
7018
|
+
export declare function usePublicMessagesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IPublicMessagesQuery, IPublicMessagesQueryVariables>): Apollo.LazyQueryResultTuple<IPublicMessagesQuery, Exact<{
|
|
7019
|
+
channelId: string;
|
|
7020
|
+
}>>;
|
|
7021
|
+
export declare type PublicMessagesQueryHookResult = ReturnType<typeof usePublicMessagesQuery>;
|
|
7022
|
+
export declare type PublicMessagesLazyQueryHookResult = ReturnType<typeof usePublicMessagesLazyQuery>;
|
|
7023
|
+
export declare type PublicMessagesQueryResult = Apollo.QueryResult<IPublicMessagesQuery, IPublicMessagesQueryVariables>;
|
|
6849
7024
|
export declare const GetOrganizationDetailDocument: DocumentNode;
|
|
6850
7025
|
/**
|
|
6851
7026
|
* __useGetOrganizationDetailQuery__
|
|
@@ -7209,10 +7384,72 @@ export declare const OnChatMessageAddedDocument: DocumentNode;
|
|
|
7209
7384
|
* @example
|
|
7210
7385
|
* const { data, loading, error } = useOnChatMessageAddedSubscription({
|
|
7211
7386
|
* variables: {
|
|
7387
|
+
* channelId: // value for 'channelId'
|
|
7388
|
+
* directTo: // value for 'directTo'
|
|
7212
7389
|
* },
|
|
7213
7390
|
* });
|
|
7214
7391
|
*/
|
|
7215
7392
|
export declare function useOnChatMessageAddedSubscription(baseOptions?: Apollo.SubscriptionHookOptions<IOnChatMessageAddedSubscription, IOnChatMessageAddedSubscriptionVariables>): Apollo.SubscriptionResult<IOnChatMessageAddedSubscription, any>;
|
|
7216
7393
|
export declare type OnChatMessageAddedSubscriptionHookResult = ReturnType<typeof useOnChatMessageAddedSubscription>;
|
|
7217
7394
|
export declare type OnChatMessageAddedSubscriptionResult = Apollo.SubscriptionResult<IOnChatMessageAddedSubscription>;
|
|
7395
|
+
export declare const OnPublicPostAddedDocument: DocumentNode;
|
|
7396
|
+
/**
|
|
7397
|
+
* __useOnPublicPostAddedSubscription__
|
|
7398
|
+
*
|
|
7399
|
+
* To run a query within a React component, call `useOnPublicPostAddedSubscription` and pass it any options that fit your needs.
|
|
7400
|
+
* When your component renders, `useOnPublicPostAddedSubscription` returns an object from Apollo Client that contains loading, error, and data properties
|
|
7401
|
+
* you can use to render your UI.
|
|
7402
|
+
*
|
|
7403
|
+
* @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;
|
|
7404
|
+
*
|
|
7405
|
+
* @example
|
|
7406
|
+
* const { data, loading, error } = useOnPublicPostAddedSubscription({
|
|
7407
|
+
* variables: {
|
|
7408
|
+
* channelId: // value for 'channelId'
|
|
7409
|
+
* },
|
|
7410
|
+
* });
|
|
7411
|
+
*/
|
|
7412
|
+
export declare function useOnPublicPostAddedSubscription(baseOptions: Apollo.SubscriptionHookOptions<IOnPublicPostAddedSubscription, IOnPublicPostAddedSubscriptionVariables>): Apollo.SubscriptionResult<IOnPublicPostAddedSubscription, any>;
|
|
7413
|
+
export declare type OnPublicPostAddedSubscriptionHookResult = ReturnType<typeof useOnPublicPostAddedSubscription>;
|
|
7414
|
+
export declare type OnPublicPostAddedSubscriptionResult = Apollo.SubscriptionResult<IOnPublicPostAddedSubscription>;
|
|
7415
|
+
export declare const OnThreadChatMessageAddedDocument: DocumentNode;
|
|
7416
|
+
/**
|
|
7417
|
+
* __useOnThreadChatMessageAddedSubscription__
|
|
7418
|
+
*
|
|
7419
|
+
* To run a query within a React component, call `useOnThreadChatMessageAddedSubscription` and pass it any options that fit your needs.
|
|
7420
|
+
* When your component renders, `useOnThreadChatMessageAddedSubscription` returns an object from Apollo Client that contains loading, error, and data properties
|
|
7421
|
+
* you can use to render your UI.
|
|
7422
|
+
*
|
|
7423
|
+
* @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;
|
|
7424
|
+
*
|
|
7425
|
+
* @example
|
|
7426
|
+
* const { data, loading, error } = useOnThreadChatMessageAddedSubscription({
|
|
7427
|
+
* variables: {
|
|
7428
|
+
* channelId: // value for 'channelId'
|
|
7429
|
+
* postParentId: // value for 'postParentId'
|
|
7430
|
+
* },
|
|
7431
|
+
* });
|
|
7432
|
+
*/
|
|
7433
|
+
export declare function useOnThreadChatMessageAddedSubscription(baseOptions?: Apollo.SubscriptionHookOptions<IOnThreadChatMessageAddedSubscription, IOnThreadChatMessageAddedSubscriptionVariables>): Apollo.SubscriptionResult<IOnThreadChatMessageAddedSubscription, any>;
|
|
7434
|
+
export declare type OnThreadChatMessageAddedSubscriptionHookResult = ReturnType<typeof useOnThreadChatMessageAddedSubscription>;
|
|
7435
|
+
export declare type OnThreadChatMessageAddedSubscriptionResult = Apollo.SubscriptionResult<IOnThreadChatMessageAddedSubscription>;
|
|
7436
|
+
export declare const OnThreadCreatedUpdatedDocument: DocumentNode;
|
|
7437
|
+
/**
|
|
7438
|
+
* __useOnThreadCreatedUpdatedSubscription__
|
|
7439
|
+
*
|
|
7440
|
+
* To run a query within a React component, call `useOnThreadCreatedUpdatedSubscription` and pass it any options that fit your needs.
|
|
7441
|
+
* When your component renders, `useOnThreadCreatedUpdatedSubscription` returns an object from Apollo Client that contains loading, error, and data properties
|
|
7442
|
+
* you can use to render your UI.
|
|
7443
|
+
*
|
|
7444
|
+
* @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;
|
|
7445
|
+
*
|
|
7446
|
+
* @example
|
|
7447
|
+
* const { data, loading, error } = useOnThreadCreatedUpdatedSubscription({
|
|
7448
|
+
* variables: {
|
|
7449
|
+
* },
|
|
7450
|
+
* });
|
|
7451
|
+
*/
|
|
7452
|
+
export declare function useOnThreadCreatedUpdatedSubscription(baseOptions?: Apollo.SubscriptionHookOptions<IOnThreadCreatedUpdatedSubscription, IOnThreadCreatedUpdatedSubscriptionVariables>): Apollo.SubscriptionResult<IOnThreadCreatedUpdatedSubscription, any>;
|
|
7453
|
+
export declare type OnThreadCreatedUpdatedSubscriptionHookResult = ReturnType<typeof useOnThreadCreatedUpdatedSubscription>;
|
|
7454
|
+
export declare type OnThreadCreatedUpdatedSubscriptionResult = Apollo.SubscriptionResult<IOnThreadCreatedUpdatedSubscription>;
|
|
7218
7455
|
export {};
|