@@ -71,14 +71,33 @@ export type SaveVideoFieldMutation = { __typename?: 'Mutation', saveVideoField:
7171
7272export type GetTagsQueryVariables = Types . Exact < {
7373 study : Types . Scalars [ 'ID' ] [ 'input' ] ;
74+ page ?: Types . InputMaybe < Types . Scalars [ 'Int' ] [ 'input' ] > ;
75+ pageSize ?: Types . InputMaybe < Types . Scalars [ 'Int' ] [ 'input' ] > ;
7476} > ;
7577
7678
7779export type GetTagsQuery = { __typename ?: 'Query' , getTags : Array < { __typename ?: 'Tag' , _id : string , complete : boolean , entry : { __typename ?: 'Entry' , _id : string , organization : string , entryID : string , contentType : string , creator : string , dateCreated : any , meta ?: any | null , signedUrl : string , signedUrlExpiration : number , isTraining : boolean } , data ?: Array < { __typename ?: 'TagField' , type : Types . TagFieldType , name : string , field ?: { __typename : 'AslLexField' , lexiconEntry : { __typename ?: 'LexiconEntry' , key : string , primary : string , video : string , lexicon : string , associates : Array < string > , fields : any } } | { __typename : 'BooleanField' , boolValue : boolean } | { __typename : 'FreeTextField' , textValue : string } | { __typename : 'NumericField' , numericValue : number } | { __typename : 'SliderField' , sliderValue : number } | { __typename : 'VideoField' , entries : Array < { __typename ?: 'Entry' , _id : string , organization : string , entryID : string , contentType : string , creator : string , dateCreated : any , meta ?: any | null , signedUrl : string , signedUrlExpiration : number , isTraining : boolean } > } | null } > | null } > } ;
7880
81+ export type CountTagForStudyQueryVariables = Types . Exact < {
82+ study : Types . Scalars [ 'ID' ] [ 'input' ] ;
83+ } > ;
84+
85+
86+ export type CountTagForStudyQuery = { __typename ?: 'Query' , countTagForStudy : number } ;
87+
88+ export type CountTrainingTagForStudyQueryVariables = Types . Exact < {
89+ study : Types . Scalars [ 'ID' ] [ 'input' ] ;
90+ user : Types . Scalars [ 'String' ] [ 'input' ] ;
91+ } > ;
92+
93+
94+ export type CountTrainingTagForStudyQuery = { __typename ?: 'Query' , countTrainingTagForStudy : number } ;
95+
7996export type GetTrainingTagsQueryVariables = Types . Exact < {
8097 study : Types . Scalars [ 'ID' ] [ 'input' ] ;
8198 user : Types . Scalars [ 'String' ] [ 'input' ] ;
99+ page ?: Types . InputMaybe < Types . Scalars [ 'Int' ] [ 'input' ] > ;
100+ pageSize ?: Types . InputMaybe < Types . Scalars [ 'Int' ] [ 'input' ] > ;
82101} > ;
83102
84103
@@ -364,8 +383,8 @@ export type SaveVideoFieldMutationHookResult = ReturnType<typeof useSaveVideoFie
364383export type SaveVideoFieldMutationResult = Apollo . MutationResult < SaveVideoFieldMutation > ;
365384export type SaveVideoFieldMutationOptions = Apollo . BaseMutationOptions < SaveVideoFieldMutation , SaveVideoFieldMutationVariables > ;
366385export const GetTagsDocument = gql `
367- query getTags($study: ID!) {
368- getTags(study: $study) {
386+ query getTags($study: ID!, $page: Int, $pageSize: Int ) {
387+ getTags(study: $study, page: $page, pageSize: $pageSize ) {
369388 _id
370389 entry {
371390 _id
@@ -440,6 +459,8 @@ export const GetTagsDocument = gql`
440459 * const { data, loading, error } = useGetTagsQuery({
441460 * variables: {
442461 * study: // value for 'study'
462+ * page: // value for 'page'
463+ * pageSize: // value for 'pageSize'
443464 * },
444465 * });
445466 */
@@ -454,9 +475,76 @@ export function useGetTagsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<Ge
454475export type GetTagsQueryHookResult = ReturnType < typeof useGetTagsQuery > ;
455476export type GetTagsLazyQueryHookResult = ReturnType < typeof useGetTagsLazyQuery > ;
456477export type GetTagsQueryResult = Apollo . QueryResult < GetTagsQuery , GetTagsQueryVariables > ;
478+ export const CountTagForStudyDocument = gql `
479+ query countTagForStudy($study: ID!) {
480+ countTagForStudy(study: $study)
481+ }
482+ ` ;
483+
484+ /**
485+ * __useCountTagForStudyQuery__
486+ *
487+ * To run a query within a React component, call `useCountTagForStudyQuery` and pass it any options that fit your needs.
488+ * When your component renders, `useCountTagForStudyQuery` returns an object from Apollo Client that contains loading, error, and data properties
489+ * you can use to render your UI.
490+ *
491+ * @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;
492+ *
493+ * @example
494+ * const { data, loading, error } = useCountTagForStudyQuery({
495+ * variables: {
496+ * study: // value for 'study'
497+ * },
498+ * });
499+ */
500+ export function useCountTagForStudyQuery ( baseOptions : Apollo . QueryHookOptions < CountTagForStudyQuery , CountTagForStudyQueryVariables > ) {
501+ const options = { ...defaultOptions , ...baseOptions }
502+ return Apollo . useQuery < CountTagForStudyQuery , CountTagForStudyQueryVariables > ( CountTagForStudyDocument , options ) ;
503+ }
504+ export function useCountTagForStudyLazyQuery ( baseOptions ?: Apollo . LazyQueryHookOptions < CountTagForStudyQuery , CountTagForStudyQueryVariables > ) {
505+ const options = { ...defaultOptions , ...baseOptions }
506+ return Apollo . useLazyQuery < CountTagForStudyQuery , CountTagForStudyQueryVariables > ( CountTagForStudyDocument , options ) ;
507+ }
508+ export type CountTagForStudyQueryHookResult = ReturnType < typeof useCountTagForStudyQuery > ;
509+ export type CountTagForStudyLazyQueryHookResult = ReturnType < typeof useCountTagForStudyLazyQuery > ;
510+ export type CountTagForStudyQueryResult = Apollo . QueryResult < CountTagForStudyQuery , CountTagForStudyQueryVariables > ;
511+ export const CountTrainingTagForStudyDocument = gql `
512+ query countTrainingTagForStudy($study: ID!, $user: String!) {
513+ countTrainingTagForStudy(study: $study, user: $user)
514+ }
515+ ` ;
516+
517+ /**
518+ * __useCountTrainingTagForStudyQuery__
519+ *
520+ * To run a query within a React component, call `useCountTrainingTagForStudyQuery` and pass it any options that fit your needs.
521+ * When your component renders, `useCountTrainingTagForStudyQuery` returns an object from Apollo Client that contains loading, error, and data properties
522+ * you can use to render your UI.
523+ *
524+ * @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;
525+ *
526+ * @example
527+ * const { data, loading, error } = useCountTrainingTagForStudyQuery({
528+ * variables: {
529+ * study: // value for 'study'
530+ * user: // value for 'user'
531+ * },
532+ * });
533+ */
534+ export function useCountTrainingTagForStudyQuery ( baseOptions : Apollo . QueryHookOptions < CountTrainingTagForStudyQuery , CountTrainingTagForStudyQueryVariables > ) {
535+ const options = { ...defaultOptions , ...baseOptions }
536+ return Apollo . useQuery < CountTrainingTagForStudyQuery , CountTrainingTagForStudyQueryVariables > ( CountTrainingTagForStudyDocument , options ) ;
537+ }
538+ export function useCountTrainingTagForStudyLazyQuery ( baseOptions ?: Apollo . LazyQueryHookOptions < CountTrainingTagForStudyQuery , CountTrainingTagForStudyQueryVariables > ) {
539+ const options = { ...defaultOptions , ...baseOptions }
540+ return Apollo . useLazyQuery < CountTrainingTagForStudyQuery , CountTrainingTagForStudyQueryVariables > ( CountTrainingTagForStudyDocument , options ) ;
541+ }
542+ export type CountTrainingTagForStudyQueryHookResult = ReturnType < typeof useCountTrainingTagForStudyQuery > ;
543+ export type CountTrainingTagForStudyLazyQueryHookResult = ReturnType < typeof useCountTrainingTagForStudyLazyQuery > ;
544+ export type CountTrainingTagForStudyQueryResult = Apollo . QueryResult < CountTrainingTagForStudyQuery , CountTrainingTagForStudyQueryVariables > ;
457545export const GetTrainingTagsDocument = gql `
458- query getTrainingTags($study: ID!, $user: String!) {
459- getTrainingTags(study: $study, user: $user) {
546+ query getTrainingTags($study: ID!, $user: String!, $page: Int, $pageSize: Int ) {
547+ getTrainingTags(study: $study, user: $user, page: $page, pageSize: $pageSize ) {
460548 _id
461549 entry {
462550 _id
@@ -532,6 +620,8 @@ export const GetTrainingTagsDocument = gql`
532620 * variables: {
533621 * study: // value for 'study'
534622 * user: // value for 'user'
623+ * page: // value for 'page'
624+ * pageSize: // value for 'pageSize'
535625 * },
536626 * });
537627 */
0 commit comments