@messenger-box/platform-client 0.0.1-alpha.465 → 0.0.1-alpha.474
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 +8 -0
- package/lib/generated-model.d.ts +116 -0
- package/lib/index.js +80 -3
- package/lib/index.js.map +1 -1
- package/package.json +3 -3
- package/src/generated-model.tsx +130 -0
- package/src/graphql/mutations/organization-mutation.gql +4 -0
- package/src/graphql/queries/teams-query.gql +46 -0
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.474](https://github.com/CDEBase/messenger-box/compare/v0.0.1-alpha.473...v0.0.1-alpha.474) (2024-02-20)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @messenger-box/platform-client
|
|
9
|
+
|
|
10
|
+
## [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)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @messenger-box/platform-client
|
|
13
|
+
|
|
6
14
|
## [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
15
|
|
|
8
16
|
**Note:** Version bump only for package @messenger-box/platform-client
|
package/lib/generated-model.d.ts
CHANGED
|
@@ -3870,6 +3870,12 @@ export type ICreateOrganizationMutation = ({
|
|
|
3870
3870
|
__typename?: 'Organization';
|
|
3871
3871
|
} & Pick<IOrganization, 'id' | 'name' | 'title' | 'description' | 'createdAt' | 'updatedAt'>)>;
|
|
3872
3872
|
});
|
|
3873
|
+
export type ISendOrganizationInvitationMutationVariables = Exact<{
|
|
3874
|
+
request?: Maybe<IOrganizationInvitationRequest>;
|
|
3875
|
+
}>;
|
|
3876
|
+
export type ISendOrganizationInvitationMutation = ({
|
|
3877
|
+
__typename?: 'Mutation';
|
|
3878
|
+
} & Pick<IMutation, 'sendOrganizationInvitation'>);
|
|
3873
3879
|
export type ICreateTeamMutationVariables = Exact<{
|
|
3874
3880
|
request: ITeamCreationRequest;
|
|
3875
3881
|
}>;
|
|
@@ -4186,6 +4192,38 @@ export type IGetOrganizationTeamsQuery = ({
|
|
|
4186
4192
|
} & Pick<IAccountTeam, 'id'>)>;
|
|
4187
4193
|
})>>>;
|
|
4188
4194
|
});
|
|
4195
|
+
export type IGetOrganizationTeamQueryVariables = Exact<{
|
|
4196
|
+
orgName: Scalars['String'];
|
|
4197
|
+
teamName: Scalars['String'];
|
|
4198
|
+
}>;
|
|
4199
|
+
export type IGetOrganizationTeamQuery = ({
|
|
4200
|
+
__typename?: 'Query';
|
|
4201
|
+
} & {
|
|
4202
|
+
getTeam?: Maybe<({
|
|
4203
|
+
__typename?: 'AccountTeam';
|
|
4204
|
+
} & Pick<IAccountTeam, 'title' | 'orgName' | 'name' | 'id' | 'createdAt' | 'updatedAt' | '_id'> & {
|
|
4205
|
+
teamMembers?: Maybe<Array<Maybe<({
|
|
4206
|
+
__typename?: 'TeamMember';
|
|
4207
|
+
} & Pick<ITeamMember, 'id' | 'name' | 'email' | 'username' | 'userId' | 'status' | 'role'>)>>>;
|
|
4208
|
+
})>;
|
|
4209
|
+
});
|
|
4210
|
+
export type IGetTeamsQueryVariables = Exact<{
|
|
4211
|
+
[key: string]: never;
|
|
4212
|
+
}>;
|
|
4213
|
+
export type IGetTeamsQuery = ({
|
|
4214
|
+
__typename?: 'Query';
|
|
4215
|
+
} & {
|
|
4216
|
+
teams?: Maybe<Array<Maybe<({
|
|
4217
|
+
__typename?: 'AccountTeam';
|
|
4218
|
+
} & Pick<IAccountTeam, 'id' | 'name' | 'title' | 'description' | 'orgName' | 'createdAt' | 'updatedAt' | 'settingsUri'> & {
|
|
4219
|
+
parentTeam?: Maybe<({
|
|
4220
|
+
__typename?: 'AccountTeam';
|
|
4221
|
+
} & Pick<IAccountTeam, 'id'>)>;
|
|
4222
|
+
teamMembers?: Maybe<Array<Maybe<({
|
|
4223
|
+
__typename?: 'TeamMember';
|
|
4224
|
+
} & Pick<ITeamMember, 'id' | 'name' | 'username' | 'email' | 'userId' | 'status' | 'role'>)>>>;
|
|
4225
|
+
})>>>;
|
|
4226
|
+
});
|
|
4189
4227
|
export type IUserAccountQueryVariables = Exact<{
|
|
4190
4228
|
userId: Scalars['String'];
|
|
4191
4229
|
}>;
|
|
@@ -7196,6 +7234,30 @@ export declare function useCreateOrganizationMutation(baseOptions?: Apollo.Mutat
|
|
|
7196
7234
|
export type CreateOrganizationMutationHookResult = ReturnType<typeof useCreateOrganizationMutation>;
|
|
7197
7235
|
export type CreateOrganizationMutationResult = Apollo.MutationResult<ICreateOrganizationMutation>;
|
|
7198
7236
|
export type CreateOrganizationMutationOptions = Apollo.BaseMutationOptions<ICreateOrganizationMutation, ICreateOrganizationMutationVariables>;
|
|
7237
|
+
export declare const SendOrganizationInvitationDocument: DocumentNode;
|
|
7238
|
+
/**
|
|
7239
|
+
* __useSendOrganizationInvitationMutation__
|
|
7240
|
+
*
|
|
7241
|
+
* To run a mutation, you first call `useSendOrganizationInvitationMutation` within a React component and pass it any options that fit your needs.
|
|
7242
|
+
* When your component renders, `useSendOrganizationInvitationMutation` returns a tuple that includes:
|
|
7243
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
7244
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
7245
|
+
*
|
|
7246
|
+
* @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;
|
|
7247
|
+
*
|
|
7248
|
+
* @example
|
|
7249
|
+
* const [sendOrganizationInvitationMutation, { data, loading, error }] = useSendOrganizationInvitationMutation({
|
|
7250
|
+
* variables: {
|
|
7251
|
+
* request: // value for 'request'
|
|
7252
|
+
* },
|
|
7253
|
+
* });
|
|
7254
|
+
*/
|
|
7255
|
+
export declare function useSendOrganizationInvitationMutation(baseOptions?: Apollo.MutationHookOptions<ISendOrganizationInvitationMutation, ISendOrganizationInvitationMutationVariables>): Apollo.MutationTuple<ISendOrganizationInvitationMutation, Exact<{
|
|
7256
|
+
request?: IOrganizationInvitationRequest;
|
|
7257
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
7258
|
+
export type SendOrganizationInvitationMutationHookResult = ReturnType<typeof useSendOrganizationInvitationMutation>;
|
|
7259
|
+
export type SendOrganizationInvitationMutationResult = Apollo.MutationResult<ISendOrganizationInvitationMutation>;
|
|
7260
|
+
export type SendOrganizationInvitationMutationOptions = Apollo.BaseMutationOptions<ISendOrganizationInvitationMutation, ISendOrganizationInvitationMutationVariables>;
|
|
7199
7261
|
export declare const CreateTeamDocument: DocumentNode;
|
|
7200
7262
|
/**
|
|
7201
7263
|
* __useCreateTeamMutation__
|
|
@@ -7754,6 +7816,60 @@ export declare function useGetOrganizationTeamsLazyQuery(baseOptions?: Apollo.La
|
|
|
7754
7816
|
export type GetOrganizationTeamsQueryHookResult = ReturnType<typeof useGetOrganizationTeamsQuery>;
|
|
7755
7817
|
export type GetOrganizationTeamsLazyQueryHookResult = ReturnType<typeof useGetOrganizationTeamsLazyQuery>;
|
|
7756
7818
|
export type GetOrganizationTeamsQueryResult = Apollo.QueryResult<IGetOrganizationTeamsQuery, IGetOrganizationTeamsQueryVariables>;
|
|
7819
|
+
export declare const GetOrganizationTeamDocument: DocumentNode;
|
|
7820
|
+
/**
|
|
7821
|
+
* __useGetOrganizationTeamQuery__
|
|
7822
|
+
*
|
|
7823
|
+
* To run a query within a React component, call `useGetOrganizationTeamQuery` and pass it any options that fit your needs.
|
|
7824
|
+
* When your component renders, `useGetOrganizationTeamQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
7825
|
+
* you can use to render your UI.
|
|
7826
|
+
*
|
|
7827
|
+
* @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;
|
|
7828
|
+
*
|
|
7829
|
+
* @example
|
|
7830
|
+
* const { data, loading, error } = useGetOrganizationTeamQuery({
|
|
7831
|
+
* variables: {
|
|
7832
|
+
* orgName: // value for 'orgName'
|
|
7833
|
+
* teamName: // value for 'teamName'
|
|
7834
|
+
* },
|
|
7835
|
+
* });
|
|
7836
|
+
*/
|
|
7837
|
+
export declare function useGetOrganizationTeamQuery(baseOptions: Apollo.QueryHookOptions<IGetOrganizationTeamQuery, IGetOrganizationTeamQueryVariables>): Apollo.QueryResult<IGetOrganizationTeamQuery, Exact<{
|
|
7838
|
+
orgName: string;
|
|
7839
|
+
teamName: string;
|
|
7840
|
+
}>>;
|
|
7841
|
+
export declare function useGetOrganizationTeamLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IGetOrganizationTeamQuery, IGetOrganizationTeamQueryVariables>): Apollo.LazyQueryResultTuple<IGetOrganizationTeamQuery, Exact<{
|
|
7842
|
+
orgName: string;
|
|
7843
|
+
teamName: string;
|
|
7844
|
+
}>>;
|
|
7845
|
+
export type GetOrganizationTeamQueryHookResult = ReturnType<typeof useGetOrganizationTeamQuery>;
|
|
7846
|
+
export type GetOrganizationTeamLazyQueryHookResult = ReturnType<typeof useGetOrganizationTeamLazyQuery>;
|
|
7847
|
+
export type GetOrganizationTeamQueryResult = Apollo.QueryResult<IGetOrganizationTeamQuery, IGetOrganizationTeamQueryVariables>;
|
|
7848
|
+
export declare const GetTeamsDocument: DocumentNode;
|
|
7849
|
+
/**
|
|
7850
|
+
* __useGetTeamsQuery__
|
|
7851
|
+
*
|
|
7852
|
+
* To run a query within a React component, call `useGetTeamsQuery` and pass it any options that fit your needs.
|
|
7853
|
+
* When your component renders, `useGetTeamsQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
7854
|
+
* you can use to render your UI.
|
|
7855
|
+
*
|
|
7856
|
+
* @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;
|
|
7857
|
+
*
|
|
7858
|
+
* @example
|
|
7859
|
+
* const { data, loading, error } = useGetTeamsQuery({
|
|
7860
|
+
* variables: {
|
|
7861
|
+
* },
|
|
7862
|
+
* });
|
|
7863
|
+
*/
|
|
7864
|
+
export declare function useGetTeamsQuery(baseOptions?: Apollo.QueryHookOptions<IGetTeamsQuery, IGetTeamsQueryVariables>): Apollo.QueryResult<IGetTeamsQuery, Exact<{
|
|
7865
|
+
[key: string]: never;
|
|
7866
|
+
}>>;
|
|
7867
|
+
export declare function useGetTeamsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IGetTeamsQuery, IGetTeamsQueryVariables>): Apollo.LazyQueryResultTuple<IGetTeamsQuery, Exact<{
|
|
7868
|
+
[key: string]: never;
|
|
7869
|
+
}>>;
|
|
7870
|
+
export type GetTeamsQueryHookResult = ReturnType<typeof useGetTeamsQuery>;
|
|
7871
|
+
export type GetTeamsLazyQueryHookResult = ReturnType<typeof useGetTeamsLazyQuery>;
|
|
7872
|
+
export type GetTeamsQueryResult = Apollo.QueryResult<IGetTeamsQuery, IGetTeamsQueryVariables>;
|
|
7757
7873
|
export declare const UserAccountDocument: DocumentNode;
|
|
7758
7874
|
/**
|
|
7759
7875
|
* __useUserAccountQuery__
|
package/lib/index.js
CHANGED
|
@@ -76,9 +76,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
76
76
|
};
|
|
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
|
-
exports.
|
|
80
|
-
exports.
|
|
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;
|
|
79
|
+
exports.SendOrganizationInvitationDocument = 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.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 = exports.CreateTeamDocument = exports.useSendOrganizationInvitationMutation = 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.useGetTeamsLazyQuery = exports.useGetTeamsQuery = exports.GetTeamsDocument = exports.useGetOrganizationTeamLazyQuery = exports.useGetOrganizationTeamQuery = exports.GetOrganizationTeamDocument = exports.useGetOrganizationTeamsLazyQuery = void 0;
|
|
82
82
|
const Apollo = __importStar(__webpack_require__(/*! @apollo/client */ "@apollo/client"));
|
|
83
83
|
const defaultOptions = {};
|
|
84
84
|
var IApplicationRoles;
|
|
@@ -1025,6 +1025,29 @@ function useCreateOrganizationMutation(baseOptions) {
|
|
|
1025
1025
|
return Apollo.useMutation(exports.CreateOrganizationDocument, options);
|
|
1026
1026
|
}
|
|
1027
1027
|
exports.useCreateOrganizationMutation = useCreateOrganizationMutation;
|
|
1028
|
+
exports.SendOrganizationInvitationDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "SendOrganizationInvitation" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "request" } }, "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "OrganizationInvitationRequest" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "sendOrganizationInvitation" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "request" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "request" } } }] }] } }] };
|
|
1029
|
+
/**
|
|
1030
|
+
* __useSendOrganizationInvitationMutation__
|
|
1031
|
+
*
|
|
1032
|
+
* To run a mutation, you first call `useSendOrganizationInvitationMutation` within a React component and pass it any options that fit your needs.
|
|
1033
|
+
* When your component renders, `useSendOrganizationInvitationMutation` returns a tuple that includes:
|
|
1034
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
1035
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
1036
|
+
*
|
|
1037
|
+
* @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;
|
|
1038
|
+
*
|
|
1039
|
+
* @example
|
|
1040
|
+
* const [sendOrganizationInvitationMutation, { data, loading, error }] = useSendOrganizationInvitationMutation({
|
|
1041
|
+
* variables: {
|
|
1042
|
+
* request: // value for 'request'
|
|
1043
|
+
* },
|
|
1044
|
+
* });
|
|
1045
|
+
*/
|
|
1046
|
+
function useSendOrganizationInvitationMutation(baseOptions) {
|
|
1047
|
+
const options = Object.assign(Object.assign({}, defaultOptions), baseOptions);
|
|
1048
|
+
return Apollo.useMutation(exports.SendOrganizationInvitationDocument, options);
|
|
1049
|
+
}
|
|
1050
|
+
exports.useSendOrganizationInvitationMutation = useSendOrganizationInvitationMutation;
|
|
1028
1051
|
exports.CreateTeamDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "CreateTeam" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "request" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "TeamCreationRequest" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "createTeam" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "request" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "request" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "name" } }, { "kind": "Field", "name": { "kind": "Name", "value": "orgName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "title" } }] } }] } }] };
|
|
1029
1052
|
/**
|
|
1030
1053
|
* __useCreateTeamMutation__
|
|
@@ -1518,6 +1541,60 @@ function useGetOrganizationTeamsLazyQuery(baseOptions) {
|
|
|
1518
1541
|
return Apollo.useLazyQuery(exports.GetOrganizationTeamsDocument, options);
|
|
1519
1542
|
}
|
|
1520
1543
|
exports.useGetOrganizationTeamsLazyQuery = useGetOrganizationTeamsLazyQuery;
|
|
1544
|
+
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" } }] } }] } }] } }] };
|
|
1545
|
+
/**
|
|
1546
|
+
* __useGetOrganizationTeamQuery__
|
|
1547
|
+
*
|
|
1548
|
+
* To run a query within a React component, call `useGetOrganizationTeamQuery` and pass it any options that fit your needs.
|
|
1549
|
+
* When your component renders, `useGetOrganizationTeamQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1550
|
+
* you can use to render your UI.
|
|
1551
|
+
*
|
|
1552
|
+
* @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;
|
|
1553
|
+
*
|
|
1554
|
+
* @example
|
|
1555
|
+
* const { data, loading, error } = useGetOrganizationTeamQuery({
|
|
1556
|
+
* variables: {
|
|
1557
|
+
* orgName: // value for 'orgName'
|
|
1558
|
+
* teamName: // value for 'teamName'
|
|
1559
|
+
* },
|
|
1560
|
+
* });
|
|
1561
|
+
*/
|
|
1562
|
+
function useGetOrganizationTeamQuery(baseOptions) {
|
|
1563
|
+
const options = Object.assign(Object.assign({}, defaultOptions), baseOptions);
|
|
1564
|
+
return Apollo.useQuery(exports.GetOrganizationTeamDocument, options);
|
|
1565
|
+
}
|
|
1566
|
+
exports.useGetOrganizationTeamQuery = useGetOrganizationTeamQuery;
|
|
1567
|
+
function useGetOrganizationTeamLazyQuery(baseOptions) {
|
|
1568
|
+
const options = Object.assign(Object.assign({}, defaultOptions), baseOptions);
|
|
1569
|
+
return Apollo.useLazyQuery(exports.GetOrganizationTeamDocument, options);
|
|
1570
|
+
}
|
|
1571
|
+
exports.useGetOrganizationTeamLazyQuery = useGetOrganizationTeamLazyQuery;
|
|
1572
|
+
exports.GetTeamsDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "GetTeams" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "teams" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "name" } }, { "kind": "Field", "name": { "kind": "Name", "value": "title" } }, { "kind": "Field", "name": { "kind": "Name", "value": "description" } }, { "kind": "Field", "name": { "kind": "Name", "value": "orgName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "parentTeam" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "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": "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": "username" } }, { "kind": "Field", "name": { "kind": "Name", "value": "email" } }, { "kind": "Field", "name": { "kind": "Name", "value": "userId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "status" } }, { "kind": "Field", "name": { "kind": "Name", "value": "role" } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "settingsUri" } }] } }] } }] };
|
|
1573
|
+
/**
|
|
1574
|
+
* __useGetTeamsQuery__
|
|
1575
|
+
*
|
|
1576
|
+
* To run a query within a React component, call `useGetTeamsQuery` and pass it any options that fit your needs.
|
|
1577
|
+
* When your component renders, `useGetTeamsQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1578
|
+
* you can use to render your UI.
|
|
1579
|
+
*
|
|
1580
|
+
* @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;
|
|
1581
|
+
*
|
|
1582
|
+
* @example
|
|
1583
|
+
* const { data, loading, error } = useGetTeamsQuery({
|
|
1584
|
+
* variables: {
|
|
1585
|
+
* },
|
|
1586
|
+
* });
|
|
1587
|
+
*/
|
|
1588
|
+
function useGetTeamsQuery(baseOptions) {
|
|
1589
|
+
const options = Object.assign(Object.assign({}, defaultOptions), baseOptions);
|
|
1590
|
+
return Apollo.useQuery(exports.GetTeamsDocument, options);
|
|
1591
|
+
}
|
|
1592
|
+
exports.useGetTeamsQuery = useGetTeamsQuery;
|
|
1593
|
+
function useGetTeamsLazyQuery(baseOptions) {
|
|
1594
|
+
const options = Object.assign(Object.assign({}, defaultOptions), baseOptions);
|
|
1595
|
+
return Apollo.useLazyQuery(exports.GetTeamsDocument, options);
|
|
1596
|
+
}
|
|
1597
|
+
exports.useGetTeamsLazyQuery = useGetTeamsLazyQuery;
|
|
1521
1598
|
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
1599
|
/**
|
|
1523
1600
|
* __useUserAccountQuery__
|