@messenger-box/platform-client 0.0.1-alpha.465 → 0.0.1-alpha.469

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,10 @@
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.469](https://github.com/CDEBase/messenger-box/compare/v0.0.1-alpha.468...v0.0.1-alpha.469) (2024-02-13)
7
+
8
+ **Note:** Version bump only for package @messenger-box/platform-client
9
+
6
10
  ## [0.0.1-alpha.465](https://github.com/CDEBase/messenger-box/compare/v0.0.1-alpha.464...v0.0.1-alpha.465) (2024-02-07)
7
11
 
8
12
  **Note:** Version bump only for package @messenger-box/platform-client
@@ -4186,6 +4186,21 @@ export type IGetOrganizationTeamsQuery = ({
4186
4186
  } & Pick<IAccountTeam, 'id'>)>;
4187
4187
  })>>>;
4188
4188
  });
4189
+ export type IGetOrganizationTeamQueryVariables = Exact<{
4190
+ orgName: Scalars['String'];
4191
+ teamName: Scalars['String'];
4192
+ }>;
4193
+ export type IGetOrganizationTeamQuery = ({
4194
+ __typename?: 'Query';
4195
+ } & {
4196
+ getTeam?: Maybe<({
4197
+ __typename?: 'AccountTeam';
4198
+ } & Pick<IAccountTeam, 'title' | 'orgName' | 'name' | 'id' | 'createdAt' | 'updatedAt' | '_id'> & {
4199
+ teamMembers?: Maybe<Array<Maybe<({
4200
+ __typename?: 'TeamMember';
4201
+ } & Pick<ITeamMember, 'id' | 'name' | 'email' | 'username' | 'userId' | 'status' | 'role'>)>>>;
4202
+ })>;
4203
+ });
4189
4204
  export type IUserAccountQueryVariables = Exact<{
4190
4205
  userId: Scalars['String'];
4191
4206
  }>;
@@ -7754,6 +7769,35 @@ export declare function useGetOrganizationTeamsLazyQuery(baseOptions?: Apollo.La
7754
7769
  export type GetOrganizationTeamsQueryHookResult = ReturnType<typeof useGetOrganizationTeamsQuery>;
7755
7770
  export type GetOrganizationTeamsLazyQueryHookResult = ReturnType<typeof useGetOrganizationTeamsLazyQuery>;
7756
7771
  export type GetOrganizationTeamsQueryResult = Apollo.QueryResult<IGetOrganizationTeamsQuery, IGetOrganizationTeamsQueryVariables>;
7772
+ export declare const GetOrganizationTeamDocument: DocumentNode;
7773
+ /**
7774
+ * __useGetOrganizationTeamQuery__
7775
+ *
7776
+ * To run a query within a React component, call `useGetOrganizationTeamQuery` and pass it any options that fit your needs.
7777
+ * When your component renders, `useGetOrganizationTeamQuery` returns an object from Apollo Client that contains loading, error, and data properties
7778
+ * you can use to render your UI.
7779
+ *
7780
+ * @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;
7781
+ *
7782
+ * @example
7783
+ * const { data, loading, error } = useGetOrganizationTeamQuery({
7784
+ * variables: {
7785
+ * orgName: // value for 'orgName'
7786
+ * teamName: // value for 'teamName'
7787
+ * },
7788
+ * });
7789
+ */
7790
+ export declare function useGetOrganizationTeamQuery(baseOptions: Apollo.QueryHookOptions<IGetOrganizationTeamQuery, IGetOrganizationTeamQueryVariables>): Apollo.QueryResult<IGetOrganizationTeamQuery, Exact<{
7791
+ orgName: string;
7792
+ teamName: string;
7793
+ }>>;
7794
+ export declare function useGetOrganizationTeamLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IGetOrganizationTeamQuery, IGetOrganizationTeamQueryVariables>): Apollo.LazyQueryResultTuple<IGetOrganizationTeamQuery, Exact<{
7795
+ orgName: string;
7796
+ teamName: string;
7797
+ }>>;
7798
+ export type GetOrganizationTeamQueryHookResult = ReturnType<typeof useGetOrganizationTeamQuery>;
7799
+ export type GetOrganizationTeamLazyQueryHookResult = ReturnType<typeof useGetOrganizationTeamLazyQuery>;
7800
+ export type GetOrganizationTeamQueryResult = Apollo.QueryResult<IGetOrganizationTeamQuery, IGetOrganizationTeamQueryVariables>;
7757
7801
  export declare const UserAccountDocument: DocumentNode;
7758
7802
  /**
7759
7803
  * __useUserAccountQuery__
package/lib/index.js CHANGED
@@ -77,8 +77,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
77
77
  Object.defineProperty(exports, "__esModule", ({ value: true }));
78
78
  exports.MessengerUserFragmentDoc = exports.MinimalUserFragmentDoc = exports.FileInfoFragmentDoc = exports.IVisibility = exports.IUserOrderBy = exports.ITokenTypesEnum = exports.ISortEnum = exports.ISmsServiceActions = exports.ISettingValueType = exports.IRoomType = exports.IRole = exports.IPreDefinedRole = exports.IPostTypeEnum = exports.IPostThreadServiceCommands = exports.IPostServiceCommands = exports.IPortalLanguage = exports.IPermissionType = exports.IPermissionResource = exports.IPermissionAction = exports.IOrganizationContextPubSubEvents = exports.IOrgainizationInvitationRole = exports.IOrgUserRole = exports.IOtpAction = exports.IMoleculerTopics = exports.IMoleculerServiceName = exports.IMoleculerCronServiceName = exports.IMessengerUserStatus = exports.IMessengerNotificationServiceCommands = exports.IMailTemplateId = exports.IInviteStatus = exports.IIdType = exports.IIdStatus = exports.IGlobalLanguages = exports.IGlobalCurrencies = exports.IGender = exports.IFileRefType = exports.IEditPresentationTypes = exports.IDeviceInfoPlatform = exports.IConfigurationTarget = exports.IConfigurationScope = exports.IConfigurationContributionNames = exports.IConfigFragmentName = exports.IConfigCollectionName = exports.IClientTypes = exports.IClientCacheTypeNames = exports.IChannelSort = exports.IChannelServiceCommands = exports.IChannelPrivacy = exports.IBaseServiceCommands = exports.IApplicationRoles = void 0;
79
79
  exports.CreateTeamDocument = exports.useCreateOrganizationMutation = exports.CreateOrganizationDocument = exports.useDeleteMessageFileMutation = exports.DeleteMessageFileDocument = exports.useAttachUploadedFilesToMessageMutation = exports.AttachUploadedFilesToMessageDocument = exports.useCreateMessageFilesUploadLinkMutation = exports.CreateMessageFilesUploadLinkDocument = exports.useAttachUploadedFileToMessageMutation = exports.AttachUploadedFileToMessageDocument = exports.useCreateMessageFileUploadLinkMutation = exports.CreateMessageFileUploadLinkDocument = exports.useEditMessageMutation = exports.EditMessageDocument = exports.useDeleteMessageMutation = exports.DeleteMessageDocument = exports.useSendExpoNotificationOnPostMutation = exports.SendExpoNotificationOnPostDocument = exports.useSendPublicMessageMutation = exports.SendPublicMessageDocument = exports.useSendMessagesMutation = exports.SendMessagesDocument = exports.useCreatePostThreadMutation = exports.CreatePostThreadDocument = exports.useSendThreadMessageMutation = exports.SendThreadMessageDocument = exports.useRemoveDeviceTokenMutation = exports.RemoveDeviceTokenDocument = exports.useSetDeviceTokenMutation = exports.SetDeviceTokenDocument = exports.useDeleteChannelMutation = exports.DeleteChannelDocument = exports.useSaveMembersToChannelMutation = exports.SaveMembersToChannelDocument = exports.useAddMemberToChannelMutation = exports.AddMemberToChannelDocument = exports.useAddDirectChannelMutation = exports.AddDirectChannelDocument = exports.useAddChannelMutation = exports.AddChannelDocument = exports.UserFragmentDoc = exports.PostThreadWithoutRepliesFragmentDoc = exports.ThreadMessageSentFragmentDoc = exports.PostThreadFragmentDoc = exports.ThreadsFragmentDoc = exports.PostWithoutRepliesFragmentDoc = exports.PostFragmentDoc = exports.PostRepliesFragmentDoc = exports.ConfigurationFragmentDoc = void 0;
80
- exports.UserAccountDocument = exports.useGetOrganizationTeamsLazyQuery = exports.useGetOrganizationTeamsQuery = exports.GetOrganizationTeamsDocument = exports.useSupportServiceChannelsLazyQuery = exports.useSupportServiceChannelsQuery = exports.SupportServiceChannelsDocument = exports.useGetPostThreadLazyQuery = exports.useGetPostThreadQuery = exports.GetPostThreadDocument = exports.useThreadMessagesLazyQuery = exports.useThreadMessagesQuery = exports.ThreadMessagesDocument = exports.useGetMessagesLazyQuery = exports.useGetMessagesQuery = exports.GetMessagesDocument = exports.useGetOrganizationMembersLazyQuery = exports.useGetOrganizationMembersQuery = exports.GetOrganizationMembersDocument = exports.useGetOrganizationDetailLazyQuery = exports.useGetOrganizationDetailQuery = exports.GetOrganizationDetailDocument = exports.usePublicMessagesLazyQuery = exports.usePublicMessagesQuery = exports.PublicMessagesDocument = exports.usePostThreadMessagesLazyQuery = exports.usePostThreadMessagesQuery = exports.PostThreadMessagesDocument = exports.useMessagesLazyQuery = exports.useMessagesQuery = exports.MessagesDocument = exports.useGetDeviceTokenLazyQuery = exports.useGetDeviceTokenQuery = exports.GetDeviceTokenDocument = exports.useFileUrlLazyQuery = exports.useFileUrlQuery = exports.FileUrlDocument = exports.useCheckForNewMessagesLazyQuery = exports.useCheckForNewMessagesQuery = exports.CheckForNewMessagesDocument = exports.useGetChannelsByUserLazyQuery = exports.useGetChannelsByUserQuery = exports.GetChannelsByUserDocument = exports.useViewChannelDetailLazyQuery = exports.useViewChannelDetailQuery = exports.ViewChannelDetailDocument = exports.useGetAllChannelLazyQuery = exports.useGetAllChannelQuery = exports.GetAllChannelDocument = exports.useCreateTeamMutation = void 0;
81
- exports.useOnThreadCreatedUpdatedSubscription = exports.OnThreadCreatedUpdatedDocument = exports.useOnThreadChatMessageAddedSubscription = exports.OnThreadChatMessageAddedDocument = exports.useOnPublicPostAddedSubscription = exports.OnPublicPostAddedDocument = exports.useOnChatMessageAddedSubscription = exports.OnChatMessageAddedDocument = exports.useGetUserOrganizationsLazyQuery = exports.useGetUserOrganizationsQuery = exports.GetUserOrganizationsDocument = exports.useCurrentUserLazyQuery = exports.useCurrentUserQuery = exports.CurrentUserDocument = exports.useUsersToChatLazyQuery = exports.useUsersToChatQuery = exports.UsersToChatDocument = exports.useGetUserByIdLazyQuery = exports.useGetUserByIdQuery = exports.GetUserByIdDocument = exports.useGetAllUsersLazyQuery = exports.useGetAllUsersQuery = exports.GetAllUsersDocument = exports.useUserAccountLazyQuery = exports.useUserAccountQuery = void 0;
80
+ exports.GetOrganizationTeamDocument = exports.useGetOrganizationTeamsLazyQuery = exports.useGetOrganizationTeamsQuery = exports.GetOrganizationTeamsDocument = exports.useSupportServiceChannelsLazyQuery = exports.useSupportServiceChannelsQuery = exports.SupportServiceChannelsDocument = exports.useGetPostThreadLazyQuery = exports.useGetPostThreadQuery = exports.GetPostThreadDocument = exports.useThreadMessagesLazyQuery = exports.useThreadMessagesQuery = exports.ThreadMessagesDocument = exports.useGetMessagesLazyQuery = exports.useGetMessagesQuery = exports.GetMessagesDocument = exports.useGetOrganizationMembersLazyQuery = exports.useGetOrganizationMembersQuery = exports.GetOrganizationMembersDocument = exports.useGetOrganizationDetailLazyQuery = exports.useGetOrganizationDetailQuery = exports.GetOrganizationDetailDocument = exports.usePublicMessagesLazyQuery = exports.usePublicMessagesQuery = exports.PublicMessagesDocument = exports.usePostThreadMessagesLazyQuery = exports.usePostThreadMessagesQuery = exports.PostThreadMessagesDocument = exports.useMessagesLazyQuery = exports.useMessagesQuery = exports.MessagesDocument = exports.useGetDeviceTokenLazyQuery = exports.useGetDeviceTokenQuery = exports.GetDeviceTokenDocument = exports.useFileUrlLazyQuery = exports.useFileUrlQuery = exports.FileUrlDocument = exports.useCheckForNewMessagesLazyQuery = exports.useCheckForNewMessagesQuery = exports.CheckForNewMessagesDocument = exports.useGetChannelsByUserLazyQuery = exports.useGetChannelsByUserQuery = exports.GetChannelsByUserDocument = exports.useViewChannelDetailLazyQuery = exports.useViewChannelDetailQuery = exports.ViewChannelDetailDocument = exports.useGetAllChannelLazyQuery = exports.useGetAllChannelQuery = exports.GetAllChannelDocument = exports.useCreateTeamMutation = void 0;
81
+ exports.useOnThreadCreatedUpdatedSubscription = exports.OnThreadCreatedUpdatedDocument = exports.useOnThreadChatMessageAddedSubscription = exports.OnThreadChatMessageAddedDocument = exports.useOnPublicPostAddedSubscription = exports.OnPublicPostAddedDocument = exports.useOnChatMessageAddedSubscription = exports.OnChatMessageAddedDocument = exports.useGetUserOrganizationsLazyQuery = exports.useGetUserOrganizationsQuery = exports.GetUserOrganizationsDocument = exports.useCurrentUserLazyQuery = exports.useCurrentUserQuery = exports.CurrentUserDocument = exports.useUsersToChatLazyQuery = exports.useUsersToChatQuery = exports.UsersToChatDocument = exports.useGetUserByIdLazyQuery = exports.useGetUserByIdQuery = exports.GetUserByIdDocument = exports.useGetAllUsersLazyQuery = exports.useGetAllUsersQuery = exports.GetAllUsersDocument = exports.useUserAccountLazyQuery = exports.useUserAccountQuery = exports.UserAccountDocument = exports.useGetOrganizationTeamLazyQuery = exports.useGetOrganizationTeamQuery = void 0;
82
82
  const Apollo = __importStar(__webpack_require__(/*! @apollo/client */ "@apollo/client"));
83
83
  const defaultOptions = {};
84
84
  var IApplicationRoles;
@@ -1518,6 +1518,34 @@ function useGetOrganizationTeamsLazyQuery(baseOptions) {
1518
1518
  return Apollo.useLazyQuery(exports.GetOrganizationTeamsDocument, options);
1519
1519
  }
1520
1520
  exports.useGetOrganizationTeamsLazyQuery = useGetOrganizationTeamsLazyQuery;
1521
+ exports.GetOrganizationTeamDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "GetOrganizationTeam" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "orgName" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "teamName" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "getTeam" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "orgName" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "orgName" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "teamName" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "teamName" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "title" } }, { "kind": "Field", "name": { "kind": "Name", "value": "orgName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "name" } }, { "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "createdAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "updatedAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "_id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "teamMembers" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "name" } }, { "kind": "Field", "name": { "kind": "Name", "value": "email" } }, { "kind": "Field", "name": { "kind": "Name", "value": "username" } }, { "kind": "Field", "name": { "kind": "Name", "value": "userId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "status" } }, { "kind": "Field", "name": { "kind": "Name", "value": "role" } }] } }] } }] } }] };
1522
+ /**
1523
+ * __useGetOrganizationTeamQuery__
1524
+ *
1525
+ * To run a query within a React component, call `useGetOrganizationTeamQuery` and pass it any options that fit your needs.
1526
+ * When your component renders, `useGetOrganizationTeamQuery` returns an object from Apollo Client that contains loading, error, and data properties
1527
+ * you can use to render your UI.
1528
+ *
1529
+ * @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;
1530
+ *
1531
+ * @example
1532
+ * const { data, loading, error } = useGetOrganizationTeamQuery({
1533
+ * variables: {
1534
+ * orgName: // value for 'orgName'
1535
+ * teamName: // value for 'teamName'
1536
+ * },
1537
+ * });
1538
+ */
1539
+ function useGetOrganizationTeamQuery(baseOptions) {
1540
+ const options = Object.assign(Object.assign({}, defaultOptions), baseOptions);
1541
+ return Apollo.useQuery(exports.GetOrganizationTeamDocument, options);
1542
+ }
1543
+ exports.useGetOrganizationTeamQuery = useGetOrganizationTeamQuery;
1544
+ function useGetOrganizationTeamLazyQuery(baseOptions) {
1545
+ const options = Object.assign(Object.assign({}, defaultOptions), baseOptions);
1546
+ return Apollo.useLazyQuery(exports.GetOrganizationTeamDocument, options);
1547
+ }
1548
+ exports.useGetOrganizationTeamLazyQuery = useGetOrganizationTeamLazyQuery;
1521
1549
  exports.UserAccountDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "UserAccount" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "userId" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "getUserAccount" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "userId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "userId" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "FragmentSpread", "name": { "kind": "Name", "value": "MessengerUser" } }] } }] } }, { "kind": "FragmentDefinition", "name": { "kind": "Name", "value": "MessengerUser" }, "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "UserAccount" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "givenName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "familyName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "email" } }, { "kind": "Field", "name": { "kind": "Name", "value": "username" } }, { "kind": "Field", "name": { "kind": "Name", "value": "fullName" }, "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "client" } }] }, { "kind": "Field", "name": { "kind": "Name", "value": "picture" } }, { "kind": "Field", "name": { "kind": "Name", "value": "alias" } }, { "kind": "Field", "name": { "kind": "Name", "value": "tokens" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "type" } }, { "kind": "Field", "name": { "kind": "Name", "value": "token" } }, { "kind": "Field", "name": { "kind": "Name", "value": "valid" } }] } }] } }] };
1522
1550
  /**
1523
1551
  * __useUserAccountQuery__