@messenger-box/core 0.0.1-alpha.391 → 0.0.1-alpha.393
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.
|
@@ -1086,7 +1086,9 @@ export declare type IMessageInput = {
|
|
|
1086
1086
|
export declare type IMessages = {
|
|
1087
1087
|
__typename?: 'Messages';
|
|
1088
1088
|
data?: Maybe<Array<Maybe<IPost>>>;
|
|
1089
|
+
id?: Maybe<Scalars['String']>;
|
|
1089
1090
|
messagesRefId?: Maybe<Scalars['String']>;
|
|
1091
|
+
threadmessagesRefId?: Maybe<Scalars['String']>;
|
|
1090
1092
|
totalCount?: Maybe<Scalars['Int']>;
|
|
1091
1093
|
};
|
|
1092
1094
|
export declare const enum IMessengerNotificationServiceCommands {
|
|
@@ -2580,6 +2582,7 @@ export declare type IQueryMessagesArgs = {
|
|
|
2580
2582
|
parentId?: Maybe<Scalars['String']>;
|
|
2581
2583
|
limit?: Maybe<Scalars['Int']>;
|
|
2582
2584
|
skip?: Maybe<Scalars['Int']>;
|
|
2585
|
+
sort?: Maybe<ISort>;
|
|
2583
2586
|
};
|
|
2584
2587
|
export declare type IQueryProfileArgs = {
|
|
2585
2588
|
userId?: Maybe<Scalars['String']>;
|
|
@@ -2602,6 +2605,7 @@ export declare type IQueryThreadMessagesArgs = {
|
|
|
2602
2605
|
postParentId?: Maybe<Scalars['ID']>;
|
|
2603
2606
|
role?: Maybe<Scalars['String']>;
|
|
2604
2607
|
participantsIds?: Maybe<Array<Maybe<Scalars['String']>>>;
|
|
2608
|
+
selectedFields?: Maybe<Scalars['String']>;
|
|
2605
2609
|
limit?: Maybe<Scalars['Int']>;
|
|
2606
2610
|
skip?: Maybe<Scalars['Int']>;
|
|
2607
2611
|
};
|
|
@@ -3413,7 +3417,7 @@ export declare type IPostRepliesFragment = ({
|
|
|
3413
3417
|
});
|
|
3414
3418
|
})>>>;
|
|
3415
3419
|
});
|
|
3416
|
-
export declare type
|
|
3420
|
+
export declare type IThreadsFragment = ({
|
|
3417
3421
|
__typename?: 'PostThread';
|
|
3418
3422
|
} & Pick<IPostThread, 'id' | 'replyCount' | 'lastReplyAt' | 'createdAt' | 'deletedAt' | 'updatedAt'> & {
|
|
3419
3423
|
channel?: Maybe<({
|
|
@@ -3422,6 +3426,10 @@ export declare type IPostThreadFragment = ({
|
|
|
3422
3426
|
post?: Maybe<({
|
|
3423
3427
|
__typename?: 'Post';
|
|
3424
3428
|
} & IPostFragment)>;
|
|
3429
|
+
});
|
|
3430
|
+
export declare type IPostThreadFragment = ({
|
|
3431
|
+
__typename?: 'PostThread';
|
|
3432
|
+
} & {
|
|
3425
3433
|
replies?: Maybe<Array<Maybe<({
|
|
3426
3434
|
__typename?: 'Post';
|
|
3427
3435
|
} & IPostFragment)>>>;
|
|
@@ -3432,7 +3440,7 @@ export declare type IPostThreadFragment = ({
|
|
|
3432
3440
|
__typename?: 'UserAccount';
|
|
3433
3441
|
} & IMessengerUserFragment);
|
|
3434
3442
|
})>>>;
|
|
3435
|
-
});
|
|
3443
|
+
} & IThreadsFragment);
|
|
3436
3444
|
export declare type IThreadMessageSentFragment = ({
|
|
3437
3445
|
__typename?: 'ThreadMessageSent';
|
|
3438
3446
|
} & {
|
|
@@ -3443,6 +3451,17 @@ export declare type IThreadMessageSentFragment = ({
|
|
|
3443
3451
|
__typename?: 'PostThread';
|
|
3444
3452
|
} & IPostThreadFragment)>;
|
|
3445
3453
|
});
|
|
3454
|
+
export declare type IPostThreadWithoutRepliesFragment = ({
|
|
3455
|
+
__typename?: 'PostThread';
|
|
3456
|
+
} & {
|
|
3457
|
+
participants?: Maybe<Array<Maybe<({
|
|
3458
|
+
__typename?: 'PostThreadParticipants';
|
|
3459
|
+
} & Pick<IPostThreadParticipants, 'id'> & {
|
|
3460
|
+
user: ({
|
|
3461
|
+
__typename?: 'UserAccount';
|
|
3462
|
+
} & IMessengerUserFragment);
|
|
3463
|
+
})>>>;
|
|
3464
|
+
} & IThreadsFragment);
|
|
3446
3465
|
export declare type IUserFragment = ({
|
|
3447
3466
|
__typename?: 'UserAccount';
|
|
3448
3467
|
} & Pick<IUserAccount, 'id' | 'email' | 'emailVerified' | 'notificationEmail' | 'username' | 'familyName' | 'givenName' | 'picture' | 'alias'>);
|
|
@@ -3787,6 +3806,7 @@ export declare type IMessagesQueryVariables = Exact<{
|
|
|
3787
3806
|
parentId?: Maybe<Scalars['String']>;
|
|
3788
3807
|
limit?: Scalars['Int'];
|
|
3789
3808
|
skip?: Scalars['Int'];
|
|
3809
|
+
sort?: Maybe<ISort>;
|
|
3790
3810
|
}>;
|
|
3791
3811
|
export declare type IMessagesQuery = ({
|
|
3792
3812
|
__typename?: 'Query';
|
|
@@ -3799,6 +3819,24 @@ export declare type IMessagesQuery = ({
|
|
|
3799
3819
|
} & IPostFragment)>>>;
|
|
3800
3820
|
});
|
|
3801
3821
|
});
|
|
3822
|
+
export declare type IPostThreadMessagesQueryVariables = Exact<{
|
|
3823
|
+
channelId?: Maybe<Scalars['ID']>;
|
|
3824
|
+
parentId?: Maybe<Scalars['String']>;
|
|
3825
|
+
limit?: Scalars['Int'];
|
|
3826
|
+
skip?: Scalars['Int'];
|
|
3827
|
+
sort?: Maybe<ISort>;
|
|
3828
|
+
}>;
|
|
3829
|
+
export declare type IPostThreadMessagesQuery = ({
|
|
3830
|
+
__typename?: 'Query';
|
|
3831
|
+
} & {
|
|
3832
|
+
messages: ({
|
|
3833
|
+
__typename?: 'Messages';
|
|
3834
|
+
} & Pick<IMessages, 'threadmessagesRefId' | 'totalCount'> & {
|
|
3835
|
+
data?: Maybe<Array<Maybe<({
|
|
3836
|
+
__typename?: 'Post';
|
|
3837
|
+
} & IPostFragment)>>>;
|
|
3838
|
+
});
|
|
3839
|
+
});
|
|
3802
3840
|
export declare type IPublicMessagesQueryVariables = Exact<{
|
|
3803
3841
|
channelId: Scalars['ID'];
|
|
3804
3842
|
}>;
|
|
@@ -3854,10 +3892,13 @@ export declare type IGetMessagesQuery = ({
|
|
|
3854
3892
|
export declare type IThreadMessagesQueryVariables = Exact<{
|
|
3855
3893
|
channelId?: Maybe<Scalars['ID']>;
|
|
3856
3894
|
postParentId?: Maybe<Scalars['ID']>;
|
|
3895
|
+
selectedFields?: Maybe<Scalars['String']>;
|
|
3857
3896
|
role?: Maybe<Scalars['String']>;
|
|
3858
3897
|
participantsIds?: Maybe<Array<Maybe<Scalars['String']>> | Maybe<Scalars['String']>>;
|
|
3859
3898
|
limit?: Maybe<Scalars['Int']>;
|
|
3860
3899
|
skip?: Maybe<Scalars['Int']>;
|
|
3900
|
+
repliesLimit2?: Maybe<Scalars['Int']>;
|
|
3901
|
+
repliesSkip2?: Maybe<Scalars['Int']>;
|
|
3861
3902
|
}>;
|
|
3862
3903
|
export declare type IThreadMessagesQuery = ({
|
|
3863
3904
|
__typename?: 'Query';
|
|
@@ -3867,7 +3908,11 @@ export declare type IThreadMessagesQuery = ({
|
|
|
3867
3908
|
} & Pick<IThreadMessages, 'totalCount'> & {
|
|
3868
3909
|
data?: Maybe<Array<Maybe<({
|
|
3869
3910
|
__typename?: 'PostThread';
|
|
3870
|
-
} &
|
|
3911
|
+
} & {
|
|
3912
|
+
replies?: Maybe<Array<Maybe<({
|
|
3913
|
+
__typename?: 'Post';
|
|
3914
|
+
} & IPostFragment)>>>;
|
|
3915
|
+
} & IPostThreadWithoutRepliesFragment)>>>;
|
|
3871
3916
|
});
|
|
3872
3917
|
});
|
|
3873
3918
|
export declare type ISupportServiceChannelsQueryVariables = Exact<{
|
|
@@ -5232,7 +5277,9 @@ export declare type IMemorySettingsResolvers<ContextType = any, ParentType exten
|
|
|
5232
5277
|
};
|
|
5233
5278
|
export declare type IMessagesResolvers<ContextType = any, ParentType extends IResolversParentTypes['Messages'] = IResolversParentTypes['Messages']> = {
|
|
5234
5279
|
data?: Resolver<Maybe<Array<Maybe<IResolversTypes['Post']>>>, ParentType, ContextType>;
|
|
5280
|
+
id?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
5235
5281
|
messagesRefId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
5282
|
+
threadmessagesRefId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
5236
5283
|
totalCount?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
5237
5284
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
5238
5285
|
};
|
|
@@ -6314,8 +6361,10 @@ export declare const MessengerUserFragmentDoc: DocumentNode;
|
|
|
6314
6361
|
export declare const ConfigurationFragmentDoc: DocumentNode;
|
|
6315
6362
|
export declare const PostRepliesFragmentDoc: DocumentNode;
|
|
6316
6363
|
export declare const PostFragmentDoc: DocumentNode;
|
|
6364
|
+
export declare const ThreadsFragmentDoc: DocumentNode;
|
|
6317
6365
|
export declare const PostThreadFragmentDoc: DocumentNode;
|
|
6318
6366
|
export declare const ThreadMessageSentFragmentDoc: DocumentNode;
|
|
6367
|
+
export declare const PostThreadWithoutRepliesFragmentDoc: DocumentNode;
|
|
6319
6368
|
export declare const UserFragmentDoc: DocumentNode;
|
|
6320
6369
|
export declare const AddChannelDocument: DocumentNode;
|
|
6321
6370
|
/**
|
|
@@ -7056,6 +7105,7 @@ export declare const MessagesDocument: DocumentNode;
|
|
|
7056
7105
|
* parentId: // value for 'parentId'
|
|
7057
7106
|
* limit: // value for 'limit'
|
|
7058
7107
|
* skip: // value for 'skip'
|
|
7108
|
+
* sort: // value for 'sort'
|
|
7059
7109
|
* },
|
|
7060
7110
|
* });
|
|
7061
7111
|
*/
|
|
@@ -7064,16 +7114,56 @@ export declare function useMessagesQuery(baseOptions?: Apollo.QueryHookOptions<I
|
|
|
7064
7114
|
parentId?: string;
|
|
7065
7115
|
limit?: number;
|
|
7066
7116
|
skip?: number;
|
|
7117
|
+
sort?: ISort;
|
|
7067
7118
|
}>>;
|
|
7068
7119
|
export declare function useMessagesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IMessagesQuery, IMessagesQueryVariables>): Apollo.LazyQueryResultTuple<IMessagesQuery, Exact<{
|
|
7069
7120
|
channelId?: string;
|
|
7070
7121
|
parentId?: string;
|
|
7071
7122
|
limit?: number;
|
|
7072
7123
|
skip?: number;
|
|
7124
|
+
sort?: ISort;
|
|
7073
7125
|
}>>;
|
|
7074
7126
|
export declare type MessagesQueryHookResult = ReturnType<typeof useMessagesQuery>;
|
|
7075
7127
|
export declare type MessagesLazyQueryHookResult = ReturnType<typeof useMessagesLazyQuery>;
|
|
7076
7128
|
export declare type MessagesQueryResult = Apollo.QueryResult<IMessagesQuery, IMessagesQueryVariables>;
|
|
7129
|
+
export declare const PostThreadMessagesDocument: DocumentNode;
|
|
7130
|
+
/**
|
|
7131
|
+
* __usePostThreadMessagesQuery__
|
|
7132
|
+
*
|
|
7133
|
+
* To run a query within a React component, call `usePostThreadMessagesQuery` and pass it any options that fit your needs.
|
|
7134
|
+
* When your component renders, `usePostThreadMessagesQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
7135
|
+
* you can use to render your UI.
|
|
7136
|
+
*
|
|
7137
|
+
* @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;
|
|
7138
|
+
*
|
|
7139
|
+
* @example
|
|
7140
|
+
* const { data, loading, error } = usePostThreadMessagesQuery({
|
|
7141
|
+
* variables: {
|
|
7142
|
+
* channelId: // value for 'channelId'
|
|
7143
|
+
* parentId: // value for 'parentId'
|
|
7144
|
+
* limit: // value for 'limit'
|
|
7145
|
+
* skip: // value for 'skip'
|
|
7146
|
+
* sort: // value for 'sort'
|
|
7147
|
+
* },
|
|
7148
|
+
* });
|
|
7149
|
+
*/
|
|
7150
|
+
export declare function usePostThreadMessagesQuery(baseOptions?: Apollo.QueryHookOptions<IPostThreadMessagesQuery, IPostThreadMessagesQueryVariables>): Apollo.QueryResult<IPostThreadMessagesQuery, Exact<{
|
|
7151
|
+
channelId?: string;
|
|
7152
|
+
parentId?: string;
|
|
7153
|
+
limit?: number;
|
|
7154
|
+
skip?: number;
|
|
7155
|
+
sort?: ISort;
|
|
7156
|
+
}>>;
|
|
7157
|
+
export declare function usePostThreadMessagesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IPostThreadMessagesQuery, IPostThreadMessagesQueryVariables>): Apollo.LazyQueryResultTuple<IPostThreadMessagesQuery, Exact<{
|
|
7158
|
+
channelId?: string;
|
|
7159
|
+
parentId?: string;
|
|
7160
|
+
limit?: number;
|
|
7161
|
+
skip?: number;
|
|
7162
|
+
sort?: ISort;
|
|
7163
|
+
}>>;
|
|
7164
|
+
export declare type PostThreadMessagesQueryHookResult = ReturnType<typeof usePostThreadMessagesQuery>;
|
|
7165
|
+
export declare type PostThreadMessagesLazyQueryHookResult = ReturnType<typeof usePostThreadMessagesLazyQuery>;
|
|
7166
|
+
export declare type PostThreadMessagesQueryResult = Apollo.QueryResult<IPostThreadMessagesQuery, IPostThreadMessagesQueryVariables>;
|
|
7077
7167
|
export declare const PublicMessagesDocument: DocumentNode;
|
|
7078
7168
|
/**
|
|
7079
7169
|
* __usePublicMessagesQuery__
|
|
@@ -7176,28 +7266,37 @@ export declare const ThreadMessagesDocument: DocumentNode;
|
|
|
7176
7266
|
* variables: {
|
|
7177
7267
|
* channelId: // value for 'channelId'
|
|
7178
7268
|
* postParentId: // value for 'postParentId'
|
|
7269
|
+
* selectedFields: // value for 'selectedFields'
|
|
7179
7270
|
* role: // value for 'role'
|
|
7180
7271
|
* participantsIds: // value for 'participantsIds'
|
|
7181
7272
|
* limit: // value for 'limit'
|
|
7182
7273
|
* skip: // value for 'skip'
|
|
7274
|
+
* repliesLimit2: // value for 'repliesLimit2'
|
|
7275
|
+
* repliesSkip2: // value for 'repliesSkip2'
|
|
7183
7276
|
* },
|
|
7184
7277
|
* });
|
|
7185
7278
|
*/
|
|
7186
7279
|
export declare function useThreadMessagesQuery(baseOptions?: Apollo.QueryHookOptions<IThreadMessagesQuery, IThreadMessagesQueryVariables>): Apollo.QueryResult<IThreadMessagesQuery, Exact<{
|
|
7187
7280
|
channelId?: string;
|
|
7188
7281
|
postParentId?: string;
|
|
7282
|
+
selectedFields?: string;
|
|
7189
7283
|
role?: string;
|
|
7190
7284
|
participantsIds?: string | string[];
|
|
7191
7285
|
limit?: number;
|
|
7192
7286
|
skip?: number;
|
|
7287
|
+
repliesLimit2?: number;
|
|
7288
|
+
repliesSkip2?: number;
|
|
7193
7289
|
}>>;
|
|
7194
7290
|
export declare function useThreadMessagesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IThreadMessagesQuery, IThreadMessagesQueryVariables>): Apollo.LazyQueryResultTuple<IThreadMessagesQuery, Exact<{
|
|
7195
7291
|
channelId?: string;
|
|
7196
7292
|
postParentId?: string;
|
|
7293
|
+
selectedFields?: string;
|
|
7197
7294
|
role?: string;
|
|
7198
7295
|
participantsIds?: string | string[];
|
|
7199
7296
|
limit?: number;
|
|
7200
7297
|
skip?: number;
|
|
7298
|
+
repliesLimit2?: number;
|
|
7299
|
+
repliesSkip2?: number;
|
|
7201
7300
|
}>>;
|
|
7202
7301
|
export declare type ThreadMessagesQueryHookResult = ReturnType<typeof useThreadMessagesQuery>;
|
|
7203
7302
|
export declare type ThreadMessagesLazyQueryHookResult = ReturnType<typeof useThreadMessagesLazyQuery>;
|