@messenger-box/platform-client 0.0.1-alpha.408 → 0.0.1-alpha.420

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.420](https://github.com/CDEBase/messenger-box/compare/v0.0.1-alpha.419...v0.0.1-alpha.420) (2023-12-06)
7
+
8
+ **Note:** Version bump only for package @messenger-box/platform-client
9
+
10
+ ## [0.0.1-alpha.411](https://github.com/CDEBase/messenger-box/compare/v0.0.1-alpha.410...v0.0.1-alpha.411) (2023-11-20)
11
+
12
+ **Note:** Version bump only for package @messenger-box/platform-client
13
+
6
14
  ## [0.0.1-alpha.408](https://github.com/CDEBase/messenger-box/compare/v0.0.1-alpha.407...v0.0.1-alpha.408) (2023-11-18)
7
15
 
8
16
  **Note:** Version bump only for package @messenger-box/platform-client
@@ -1160,6 +1160,7 @@ export type IMutation = {
1160
1160
  createMessageFileUploadLink: Scalars['String'];
1161
1161
  createMessageFilesUploadLink: Array<Scalars['String']>;
1162
1162
  createOrganization?: Maybe<IOrganization>;
1163
+ createPostThread?: Maybe<IThreadMessageSent>;
1163
1164
  createTeam?: Maybe<IAccountTeam>;
1164
1165
  declineOrganizationInvitation?: Maybe<Scalars['Boolean']>;
1165
1166
  deleteChannel?: Maybe<Scalars['Boolean']>;
@@ -1322,6 +1323,14 @@ export type IMutationCreateMessageFilesUploadLinkArgs = {
1322
1323
  export type IMutationCreateOrganizationArgs = {
1323
1324
  organization: IOrganizationCreateRequest;
1324
1325
  };
1326
+ export type IMutationCreatePostThreadArgs = {
1327
+ channelId: Scalars['ID'];
1328
+ postParentId?: Maybe<Scalars['String']>;
1329
+ responderId?: Maybe<Scalars['String']>;
1330
+ postId?: Maybe<Scalars['ID']>;
1331
+ threadMessageInput: IThreadMessageInput;
1332
+ postThreadId?: Maybe<Scalars['ID']>;
1333
+ };
1325
1334
  export type IMutationCreateTeamArgs = {
1326
1335
  request: ITeamCreationRequest;
1327
1336
  };
@@ -1488,6 +1497,7 @@ export type IMutationSendThreadMessageArgs = {
1488
1497
  responderId?: Maybe<Scalars['String']>;
1489
1498
  postId?: Maybe<Scalars['ID']>;
1490
1499
  threadMessageInput: IThreadMessageInput;
1500
+ postThreadId?: Maybe<Scalars['ID']>;
1491
1501
  };
1492
1502
  export type IMutationSendUserPasswordResetEmailArgs = {
1493
1503
  email: Scalars['String'];
@@ -2103,7 +2113,8 @@ export declare enum IPostServiceCommands {
2103
2113
  DeleteFile = "deleteFile",
2104
2114
  ReadMessage = "readMessage",
2105
2115
  DeliverMessage = "deliverMessage",
2106
- CreateWithoutSubscription = "createWithoutSubscription"
2116
+ CreateWithoutSubscription = "createWithoutSubscription",
2117
+ CreatePostWithPostThread = "createPostWithPostThread"
2107
2118
  }
2108
2119
  export type IPostThread = IIBaseRepo & {
2109
2120
  __typename?: 'PostThread';
@@ -2133,6 +2144,9 @@ export type IPostThreadParticipants = {
2133
2144
  updatedAt?: Maybe<Scalars['DateTime']>;
2134
2145
  CreatedAt?: Maybe<Scalars['DateTime']>;
2135
2146
  };
2147
+ export declare enum IPostThreadServiceCommands {
2148
+ GetPostThread = "getPostThread"
2149
+ }
2136
2150
  export declare enum IPostTypeEnum {
2137
2151
  Alert = "ALERT",
2138
2152
  Card = "CARD",
@@ -2349,7 +2363,6 @@ export type IQuery = {
2349
2363
  getEnvironment?: Maybe<IEnvironment>;
2350
2364
  getExtendedUserAccount: IUserAccount;
2351
2365
  getManageableOrganizations?: Maybe<Array<Maybe<IOrganization>>>;
2352
- getNewMongooseObjectId: Scalars['ID'];
2353
2366
  getOrgInvitationMembers?: Maybe<IOrgInvitationMembers>;
2354
2367
  getOrgTeamInvitations?: Maybe<Array<Maybe<IOrganizationInvitation>>>;
2355
2368
  getOrganizationConfigValue?: Maybe<Scalars['AnyObject']>;
@@ -2360,6 +2373,7 @@ export type IQuery = {
2360
2373
  getOrganizationResourceContext?: Maybe<IOrganizationData>;
2361
2374
  getOrganizationTeams?: Maybe<Array<Maybe<IAccountTeam>>>;
2362
2375
  getPostReactions?: Maybe<Array<Maybe<IReaction>>>;
2376
+ getPostThread?: Maybe<IPostThread>;
2363
2377
  getRole?: Maybe<IAccessRole>;
2364
2378
  getRoles?: Maybe<Array<Maybe<IAccessRole>>>;
2365
2379
  getTeam?: Maybe<IAccountTeam>;
@@ -2535,6 +2549,14 @@ export type IQueryGetOrganizationTeamsArgs = {
2535
2549
  export type IQueryGetPostReactionsArgs = {
2536
2550
  message: Scalars['ID'];
2537
2551
  };
2552
+ export type IQueryGetPostThreadArgs = {
2553
+ postThreadId?: Maybe<Scalars['ID']>;
2554
+ channelId?: Maybe<Scalars['ID']>;
2555
+ postParentId?: Maybe<Scalars['ID']>;
2556
+ role?: Maybe<Scalars['String']>;
2557
+ participantsIds?: Maybe<Array<Maybe<Scalars['String']>>>;
2558
+ selectedFields?: Maybe<Scalars['String']>;
2559
+ };
2538
2560
  export type IQueryGetRoleArgs = {
2539
2561
  input?: Maybe<IRoleInput>;
2540
2562
  };
@@ -3414,6 +3436,26 @@ export type IPostRepliesFragment = ({
3414
3436
  });
3415
3437
  })>>>;
3416
3438
  });
3439
+ export type IPostWithoutRepliesFragment = ({
3440
+ __typename?: 'Post';
3441
+ } & Pick<IPost, 'id' | 'isPinned' | 'message' | 'type' | 'isDelivered' | 'isRead' | 'parentId' | 'createdAt' | 'fromServer' | 'updatedAt' | 'props'> & {
3442
+ channel?: Maybe<({
3443
+ __typename?: 'Channel';
3444
+ } & Pick<IChannel, 'id'>)>;
3445
+ author?: Maybe<({
3446
+ __typename?: 'UserAccount';
3447
+ } & IMessengerUserFragment)>;
3448
+ propsConfiguration?: Maybe<({
3449
+ __typename?: 'MachineConfiguration';
3450
+ } & IConfiguration_MachineConfiguration_Fragment)>;
3451
+ files: ({
3452
+ __typename?: 'FilesInfo';
3453
+ } & Pick<IFilesInfo, 'totalCount'> & {
3454
+ data?: Maybe<Array<Maybe<({
3455
+ __typename?: 'FileInfo';
3456
+ } & Pick<IFileInfo, 'id' | 'name' | 'extension' | 'mimeType' | 'height' | 'width' | 'size' | 'url' | 'refType'>)>>>;
3457
+ });
3458
+ });
3417
3459
  export type IThreadsFragment = ({
3418
3460
  __typename?: 'PostThread';
3419
3461
  } & Pick<IPostThread, 'id' | 'replyCount' | 'lastReplyAt' | 'createdAt' | 'deletedAt' | 'updatedAt'> & {
@@ -3422,14 +3464,14 @@ export type IThreadsFragment = ({
3422
3464
  } & Pick<IChannel, 'id' | 'title' | 'description' | 'topic' | 'orgName' | 'displayName' | 'createdAt' | 'purpose' | 'type' | 'updatedAt'>)>;
3423
3465
  post?: Maybe<({
3424
3466
  __typename?: 'Post';
3425
- } & IPostFragment)>;
3467
+ } & IPostWithoutRepliesFragment)>;
3426
3468
  });
3427
3469
  export type IPostThreadFragment = ({
3428
3470
  __typename?: 'PostThread';
3429
3471
  } & {
3430
3472
  replies?: Maybe<Array<Maybe<({
3431
3473
  __typename?: 'Post';
3432
- } & IPostFragment)>>>;
3474
+ } & IPostWithoutRepliesFragment)>>>;
3433
3475
  participants?: Maybe<Array<Maybe<({
3434
3476
  __typename?: 'PostThreadParticipants';
3435
3477
  } & Pick<IPostThreadParticipants, 'id'> & {
@@ -3443,7 +3485,7 @@ export type IThreadMessageSentFragment = ({
3443
3485
  } & {
3444
3486
  lastMessage?: Maybe<({
3445
3487
  __typename?: 'Post';
3446
- } & IPostFragment)>;
3488
+ } & IPostWithoutRepliesFragment)>;
3447
3489
  data?: Maybe<({
3448
3490
  __typename?: 'PostThread';
3449
3491
  } & IPostThreadFragment)>;
@@ -3562,6 +3604,7 @@ export type ISendThreadMessageMutationVariables = Exact<{
3562
3604
  responderId?: Maybe<Scalars['String']>;
3563
3605
  threadMessageInput: IThreadMessageInput;
3564
3606
  postId?: Maybe<Scalars['ID']>;
3607
+ postThreadId?: Maybe<Scalars['ID']>;
3565
3608
  }>;
3566
3609
  export type ISendThreadMessageMutation = ({
3567
3610
  __typename?: 'Mutation';
@@ -3570,6 +3613,28 @@ export type ISendThreadMessageMutation = ({
3570
3613
  __typename?: 'ThreadMessageSent';
3571
3614
  } & IThreadMessageSentFragment)>;
3572
3615
  });
3616
+ export type ICreatePostThreadMutationVariables = Exact<{
3617
+ channelId: Scalars['ID'];
3618
+ postParentId?: Maybe<Scalars['String']>;
3619
+ responderId?: Maybe<Scalars['String']>;
3620
+ threadMessageInput: IThreadMessageInput;
3621
+ postId?: Maybe<Scalars['ID']>;
3622
+ postThreadId?: Maybe<Scalars['ID']>;
3623
+ }>;
3624
+ export type ICreatePostThreadMutation = ({
3625
+ __typename?: 'Mutation';
3626
+ } & {
3627
+ createPostThread?: Maybe<({
3628
+ __typename?: 'ThreadMessageSent';
3629
+ } & {
3630
+ lastMessage?: Maybe<({
3631
+ __typename?: 'Post';
3632
+ } & Pick<IPost, 'id'>)>;
3633
+ data?: Maybe<({
3634
+ __typename?: 'PostThread';
3635
+ } & Pick<IPostThread, 'id'>)>;
3636
+ })>;
3637
+ });
3573
3638
  export type ISendMessagesMutationVariables = Exact<{
3574
3639
  channelId: Scalars['String'];
3575
3640
  content: Scalars['String'];
@@ -3792,12 +3857,6 @@ export type IGetDeviceTokenQuery = ({
3792
3857
  } & Pick<IUserToken, 'token' | 'type'>)>>>;
3793
3858
  })>;
3794
3859
  });
3795
- export type IGetNewMongooseObjectIdQueryVariables = Exact<{
3796
- [key: string]: never;
3797
- }>;
3798
- export type IGetNewMongooseObjectIdQuery = ({
3799
- __typename?: 'Query';
3800
- } & Pick<IQuery, 'getNewMongooseObjectId'>);
3801
3860
  export type IMessagesQueryVariables = Exact<{
3802
3861
  channelId?: Maybe<Scalars['ID']>;
3803
3862
  parentId?: Maybe<Scalars['String']>;
@@ -3908,10 +3967,32 @@ export type IThreadMessagesQuery = ({
3908
3967
  } & {
3909
3968
  replies?: Maybe<Array<Maybe<({
3910
3969
  __typename?: 'Post';
3911
- } & IPostFragment)>>>;
3970
+ } & IPostWithoutRepliesFragment)>>>;
3912
3971
  } & IPostThreadWithoutRepliesFragment)>>>;
3913
3972
  });
3914
3973
  });
3974
+ export type IGetPostThreadQueryVariables = Exact<{
3975
+ postThreadId?: Maybe<Scalars['ID']>;
3976
+ channelId?: Maybe<Scalars['ID']>;
3977
+ postParentId?: Maybe<Scalars['ID']>;
3978
+ role?: Maybe<Scalars['String']>;
3979
+ participantsIds?: Maybe<Array<Maybe<Scalars['String']>> | Maybe<Scalars['String']>>;
3980
+ selectedFields?: Maybe<Scalars['String']>;
3981
+ limit?: Maybe<Scalars['Int']>;
3982
+ skip?: Maybe<Scalars['Int']>;
3983
+ sort?: Maybe<ISort>;
3984
+ }>;
3985
+ export type IGetPostThreadQuery = ({
3986
+ __typename?: 'Query';
3987
+ } & {
3988
+ getPostThread?: Maybe<({
3989
+ __typename?: 'PostThread';
3990
+ } & {
3991
+ replies?: Maybe<Array<Maybe<({
3992
+ __typename?: 'Post';
3993
+ } & IPostWithoutRepliesFragment)>>>;
3994
+ } & IPostThreadWithoutRepliesFragment)>;
3995
+ });
3915
3996
  export type ISupportServiceChannelsQueryVariables = Exact<{
3916
3997
  role?: Maybe<Scalars['String']>;
3917
3998
  criteria?: Maybe<Scalars['AnyObject']>;
@@ -4081,7 +4162,7 @@ export type IOnThreadCreatedUpdatedSubscription = ({
4081
4162
  } & Pick<IThreadCreatedUpdated, 'isCreated' | 'isUpdated'> & {
4082
4163
  lastMessage?: Maybe<({
4083
4164
  __typename?: 'Post';
4084
- } & IPostFragment)>;
4165
+ } & IPostWithoutRepliesFragment)>;
4085
4166
  data?: Maybe<({
4086
4167
  __typename?: 'PostThread';
4087
4168
  } & IPostThreadFragment)>;
@@ -4313,6 +4394,7 @@ export type IResolversTypes = {
4313
4394
  PostServiceCommands: IPostServiceCommands;
4314
4395
  PostThread: ResolverTypeWrapper<IPostThread>;
4315
4396
  PostThreadParticipants: ResolverTypeWrapper<IPostThreadParticipants>;
4397
+ PostThreadServiceCommands: IPostThreadServiceCommands;
4316
4398
  PostTypeEnum: IPostTypeEnum;
4317
4399
  PostsWithCursor: ResolverTypeWrapper<IPostsWithCursor>;
4318
4400
  PreDefinedRole: IPreDefinedRole;
@@ -5314,6 +5396,7 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
5314
5396
  createMessageFileUploadLink?: Resolver<IResolversTypes['String'], ParentType, ContextType, RequireFields<IMutationCreateMessageFileUploadLinkArgs, 'postId' | 'filename'>>;
5315
5397
  createMessageFilesUploadLink?: Resolver<Array<IResolversTypes['String']>, ParentType, ContextType, RequireFields<IMutationCreateMessageFilesUploadLinkArgs, 'postId' | 'filenames'>>;
5316
5398
  createOrganization?: Resolver<Maybe<IResolversTypes['Organization']>, ParentType, ContextType, RequireFields<IMutationCreateOrganizationArgs, 'organization'>>;
5399
+ createPostThread?: Resolver<Maybe<IResolversTypes['ThreadMessageSent']>, ParentType, ContextType, RequireFields<IMutationCreatePostThreadArgs, 'channelId' | 'threadMessageInput'>>;
5317
5400
  createTeam?: Resolver<Maybe<IResolversTypes['AccountTeam']>, ParentType, ContextType, RequireFields<IMutationCreateTeamArgs, 'request'>>;
5318
5401
  declineOrganizationInvitation?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType, RequireFields<IMutationDeclineOrganizationInvitationArgs, 'id'>>;
5319
5402
  deleteChannel?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType, RequireFields<IMutationDeleteChannelArgs, 'id'>>;
@@ -5825,7 +5908,6 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
5825
5908
  getEnvironment?: Resolver<Maybe<IResolversTypes['Environment']>, ParentType, ContextType>;
5826
5909
  getExtendedUserAccount?: Resolver<IResolversTypes['UserAccount'], ParentType, ContextType, RequireFields<IQueryGetExtendedUserAccountArgs, never>>;
5827
5910
  getManageableOrganizations?: Resolver<Maybe<Array<Maybe<IResolversTypes['Organization']>>>, ParentType, ContextType>;
5828
- getNewMongooseObjectId?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
5829
5911
  getOrgInvitationMembers?: Resolver<Maybe<IResolversTypes['OrgInvitationMembers']>, ParentType, ContextType, RequireFields<IQueryGetOrgInvitationMembersArgs, never>>;
5830
5912
  getOrgTeamInvitations?: Resolver<Maybe<Array<Maybe<IResolversTypes['OrganizationInvitation']>>>, ParentType, ContextType, RequireFields<IQueryGetOrgTeamInvitationsArgs, never>>;
5831
5913
  getOrganizationConfigValue?: Resolver<Maybe<IResolversTypes['AnyObject']>, ParentType, ContextType, RequireFields<IQueryGetOrganizationConfigValueArgs, never>>;
@@ -5836,6 +5918,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
5836
5918
  getOrganizationResourceContext?: Resolver<Maybe<IResolversTypes['OrganizationData']>, ParentType, ContextType, RequireFields<IQueryGetOrganizationResourceContextArgs, never>>;
5837
5919
  getOrganizationTeams?: Resolver<Maybe<Array<Maybe<IResolversTypes['AccountTeam']>>>, ParentType, ContextType, RequireFields<IQueryGetOrganizationTeamsArgs, never>>;
5838
5920
  getPostReactions?: Resolver<Maybe<Array<Maybe<IResolversTypes['Reaction']>>>, ParentType, ContextType, RequireFields<IQueryGetPostReactionsArgs, 'message'>>;
5921
+ getPostThread?: Resolver<Maybe<IResolversTypes['PostThread']>, ParentType, ContextType, RequireFields<IQueryGetPostThreadArgs, never>>;
5839
5922
  getRole?: Resolver<Maybe<IResolversTypes['AccessRole']>, ParentType, ContextType, RequireFields<IQueryGetRoleArgs, never>>;
5840
5923
  getRoles?: Resolver<Maybe<Array<Maybe<IResolversTypes['AccessRole']>>>, ParentType, ContextType, RequireFields<IQueryGetRolesArgs, never>>;
5841
5924
  getTeam?: Resolver<Maybe<IResolversTypes['AccountTeam']>, ParentType, ContextType, RequireFields<IQueryGetTeamArgs, 'orgName' | 'teamName'>>;
@@ -6358,6 +6441,7 @@ export declare const MessengerUserFragmentDoc: DocumentNode;
6358
6441
  export declare const ConfigurationFragmentDoc: DocumentNode;
6359
6442
  export declare const PostRepliesFragmentDoc: DocumentNode;
6360
6443
  export declare const PostFragmentDoc: DocumentNode;
6444
+ export declare const PostWithoutRepliesFragmentDoc: DocumentNode;
6361
6445
  export declare const ThreadsFragmentDoc: DocumentNode;
6362
6446
  export declare const PostThreadFragmentDoc: DocumentNode;
6363
6447
  export declare const ThreadMessageSentFragmentDoc: DocumentNode;
@@ -6558,6 +6642,7 @@ export declare const SendThreadMessageDocument: DocumentNode;
6558
6642
  * responderId: // value for 'responderId'
6559
6643
  * threadMessageInput: // value for 'threadMessageInput'
6560
6644
  * postId: // value for 'postId'
6645
+ * postThreadId: // value for 'postThreadId'
6561
6646
  * },
6562
6647
  * });
6563
6648
  */
@@ -6567,10 +6652,45 @@ export declare function useSendThreadMessageMutation(baseOptions?: Apollo.Mutati
6567
6652
  responderId?: string;
6568
6653
  threadMessageInput: IThreadMessageInput;
6569
6654
  postId?: string;
6655
+ postThreadId?: string;
6570
6656
  }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
6571
6657
  export type SendThreadMessageMutationHookResult = ReturnType<typeof useSendThreadMessageMutation>;
6572
6658
  export type SendThreadMessageMutationResult = Apollo.MutationResult<ISendThreadMessageMutation>;
6573
6659
  export type SendThreadMessageMutationOptions = Apollo.BaseMutationOptions<ISendThreadMessageMutation, ISendThreadMessageMutationVariables>;
6660
+ export declare const CreatePostThreadDocument: DocumentNode;
6661
+ /**
6662
+ * __useCreatePostThreadMutation__
6663
+ *
6664
+ * To run a mutation, you first call `useCreatePostThreadMutation` within a React component and pass it any options that fit your needs.
6665
+ * When your component renders, `useCreatePostThreadMutation` returns a tuple that includes:
6666
+ * - A mutate function that you can call at any time to execute the mutation
6667
+ * - An object with fields that represent the current status of the mutation's execution
6668
+ *
6669
+ * @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;
6670
+ *
6671
+ * @example
6672
+ * const [createPostThreadMutation, { data, loading, error }] = useCreatePostThreadMutation({
6673
+ * variables: {
6674
+ * channelId: // value for 'channelId'
6675
+ * postParentId: // value for 'postParentId'
6676
+ * responderId: // value for 'responderId'
6677
+ * threadMessageInput: // value for 'threadMessageInput'
6678
+ * postId: // value for 'postId'
6679
+ * postThreadId: // value for 'postThreadId'
6680
+ * },
6681
+ * });
6682
+ */
6683
+ export declare function useCreatePostThreadMutation(baseOptions?: Apollo.MutationHookOptions<ICreatePostThreadMutation, ICreatePostThreadMutationVariables>): Apollo.MutationTuple<ICreatePostThreadMutation, Exact<{
6684
+ channelId: string;
6685
+ postParentId?: string;
6686
+ responderId?: string;
6687
+ threadMessageInput: IThreadMessageInput;
6688
+ postId?: string;
6689
+ postThreadId?: string;
6690
+ }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
6691
+ export type CreatePostThreadMutationHookResult = ReturnType<typeof useCreatePostThreadMutation>;
6692
+ export type CreatePostThreadMutationResult = Apollo.MutationResult<ICreatePostThreadMutation>;
6693
+ export type CreatePostThreadMutationOptions = Apollo.BaseMutationOptions<ICreatePostThreadMutation, ICreatePostThreadMutationVariables>;
6574
6694
  export declare const SendMessagesDocument: DocumentNode;
6575
6695
  /**
6576
6696
  * __useSendMessagesMutation__
@@ -7060,31 +7180,6 @@ export declare function useGetDeviceTokenLazyQuery(baseOptions?: Apollo.LazyQuer
7060
7180
  export type GetDeviceTokenQueryHookResult = ReturnType<typeof useGetDeviceTokenQuery>;
7061
7181
  export type GetDeviceTokenLazyQueryHookResult = ReturnType<typeof useGetDeviceTokenLazyQuery>;
7062
7182
  export type GetDeviceTokenQueryResult = Apollo.QueryResult<IGetDeviceTokenQuery, IGetDeviceTokenQueryVariables>;
7063
- export declare const GetNewMongooseObjectIdDocument: DocumentNode;
7064
- /**
7065
- * __useGetNewMongooseObjectIdQuery__
7066
- *
7067
- * To run a query within a React component, call `useGetNewMongooseObjectIdQuery` and pass it any options that fit your needs.
7068
- * When your component renders, `useGetNewMongooseObjectIdQuery` returns an object from Apollo Client that contains loading, error, and data properties
7069
- * you can use to render your UI.
7070
- *
7071
- * @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;
7072
- *
7073
- * @example
7074
- * const { data, loading, error } = useGetNewMongooseObjectIdQuery({
7075
- * variables: {
7076
- * },
7077
- * });
7078
- */
7079
- export declare function useGetNewMongooseObjectIdQuery(baseOptions?: Apollo.QueryHookOptions<IGetNewMongooseObjectIdQuery, IGetNewMongooseObjectIdQueryVariables>): Apollo.QueryResult<IGetNewMongooseObjectIdQuery, Exact<{
7080
- [key: string]: never;
7081
- }>>;
7082
- export declare function useGetNewMongooseObjectIdLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IGetNewMongooseObjectIdQuery, IGetNewMongooseObjectIdQueryVariables>): Apollo.LazyQueryResultTuple<IGetNewMongooseObjectIdQuery, Exact<{
7083
- [key: string]: never;
7084
- }>>;
7085
- export type GetNewMongooseObjectIdQueryHookResult = ReturnType<typeof useGetNewMongooseObjectIdQuery>;
7086
- export type GetNewMongooseObjectIdLazyQueryHookResult = ReturnType<typeof useGetNewMongooseObjectIdLazyQuery>;
7087
- export type GetNewMongooseObjectIdQueryResult = Apollo.QueryResult<IGetNewMongooseObjectIdQuery, IGetNewMongooseObjectIdQueryVariables>;
7088
7183
  export declare const MessagesDocument: DocumentNode;
7089
7184
  /**
7090
7185
  * __useMessagesQuery__
@@ -7298,6 +7393,56 @@ export declare function useThreadMessagesLazyQuery(baseOptions?: Apollo.LazyQuer
7298
7393
  export type ThreadMessagesQueryHookResult = ReturnType<typeof useThreadMessagesQuery>;
7299
7394
  export type ThreadMessagesLazyQueryHookResult = ReturnType<typeof useThreadMessagesLazyQuery>;
7300
7395
  export type ThreadMessagesQueryResult = Apollo.QueryResult<IThreadMessagesQuery, IThreadMessagesQueryVariables>;
7396
+ export declare const GetPostThreadDocument: DocumentNode;
7397
+ /**
7398
+ * __useGetPostThreadQuery__
7399
+ *
7400
+ * To run a query within a React component, call `useGetPostThreadQuery` and pass it any options that fit your needs.
7401
+ * When your component renders, `useGetPostThreadQuery` returns an object from Apollo Client that contains loading, error, and data properties
7402
+ * you can use to render your UI.
7403
+ *
7404
+ * @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;
7405
+ *
7406
+ * @example
7407
+ * const { data, loading, error } = useGetPostThreadQuery({
7408
+ * variables: {
7409
+ * postThreadId: // value for 'postThreadId'
7410
+ * channelId: // value for 'channelId'
7411
+ * postParentId: // value for 'postParentId'
7412
+ * role: // value for 'role'
7413
+ * participantsIds: // value for 'participantsIds'
7414
+ * selectedFields: // value for 'selectedFields'
7415
+ * limit: // value for 'limit'
7416
+ * skip: // value for 'skip'
7417
+ * sort: // value for 'sort'
7418
+ * },
7419
+ * });
7420
+ */
7421
+ export declare function useGetPostThreadQuery(baseOptions?: Apollo.QueryHookOptions<IGetPostThreadQuery, IGetPostThreadQueryVariables>): Apollo.QueryResult<IGetPostThreadQuery, Exact<{
7422
+ postThreadId?: string;
7423
+ channelId?: string;
7424
+ postParentId?: string;
7425
+ role?: string;
7426
+ participantsIds?: string | string[];
7427
+ selectedFields?: string;
7428
+ limit?: number;
7429
+ skip?: number;
7430
+ sort?: ISort;
7431
+ }>>;
7432
+ export declare function useGetPostThreadLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IGetPostThreadQuery, IGetPostThreadQueryVariables>): Apollo.LazyQueryResultTuple<IGetPostThreadQuery, Exact<{
7433
+ postThreadId?: string;
7434
+ channelId?: string;
7435
+ postParentId?: string;
7436
+ role?: string;
7437
+ participantsIds?: string | string[];
7438
+ selectedFields?: string;
7439
+ limit?: number;
7440
+ skip?: number;
7441
+ sort?: ISort;
7442
+ }>>;
7443
+ export type GetPostThreadQueryHookResult = ReturnType<typeof useGetPostThreadQuery>;
7444
+ export type GetPostThreadLazyQueryHookResult = ReturnType<typeof useGetPostThreadLazyQuery>;
7445
+ export type GetPostThreadQueryResult = Apollo.QueryResult<IGetPostThreadQuery, IGetPostThreadQueryVariables>;
7301
7446
  export declare const SupportServiceChannelsDocument: DocumentNode;
7302
7447
  /**
7303
7448
  * __useSupportServiceChannelsQuery__