@leav/ui 1.12.0-ca805ec3 → 1.12.0-ce8c4c3e

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.
Files changed (42) hide show
  1. package/dist/_gqlTypes/index.d.ts +148 -0
  2. package/dist/_gqlTypes/index.js +70 -0
  3. package/dist/_gqlTypes/index.js.map +1 -1
  4. package/dist/_queries/attributes/attributeDetailsFragment.js +3 -0
  5. package/dist/_queries/attributes/attributeDetailsFragment.js.map +1 -1
  6. package/dist/components/Explorer/DataView.js +30 -13
  7. package/dist/components/Explorer/DataView.js.map +1 -1
  8. package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.js +6 -4
  9. package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.js.map +1 -1
  10. package/dist/components/Filters/_types.d.ts +3 -0
  11. package/dist/components/Filters/_types.js.map +1 -1
  12. package/dist/components/Filters/context/filtersReducer.js +14 -1
  13. package/dist/components/Filters/context/filtersReducer.js.map +1 -1
  14. package/dist/components/Filters/useFilters.d.ts +198 -0
  15. package/dist/components/Filters/useTransformFilters.js +4 -2
  16. package/dist/components/Filters/useTransformFilters.js.map +1 -1
  17. package/dist/components/RecordEdition/EditRecord/EditRecord.js +8 -1
  18. package/dist/components/RecordEdition/EditRecord/EditRecord.js.map +1 -1
  19. package/dist/hooks/index.d.ts +3 -0
  20. package/dist/hooks/index.js +3 -0
  21. package/dist/hooks/index.js.map +1 -1
  22. package/dist/hooks/useGetRecordIdCard/index.d.ts +1 -0
  23. package/dist/hooks/useGetRecordIdCard/index.js +5 -0
  24. package/dist/hooks/useGetRecordIdCard/index.js.map +1 -0
  25. package/dist/hooks/useGetRecordIdCard/useGetRecordIdCard.d.ts +18 -0
  26. package/dist/hooks/useGetRecordIdCard/useGetRecordIdCard.js +20 -0
  27. package/dist/hooks/useGetRecordIdCard/useGetRecordIdCard.js.map +1 -0
  28. package/dist/hooks/useIFrameMessenger/iFrameMessengerContext.d.ts +6 -0
  29. package/dist/hooks/useIFrameMessenger/iFrameMessengerContext.js +8 -0
  30. package/dist/hooks/useIFrameMessenger/iFrameMessengerContext.js.map +1 -0
  31. package/dist/hooks/useIFrameMessenger/types.d.ts +5 -2
  32. package/dist/hooks/useIFrameMessenger/types.js.map +1 -1
  33. package/dist/hooks/useIFrameMessenger/useIFrameMessenger.d.ts +10 -2
  34. package/dist/hooks/useIFrameMessenger/useIFrameMessenger.js +15 -12
  35. package/dist/hooks/useIFrameMessenger/useIFrameMessenger.js.map +1 -1
  36. package/dist/hooks/useIFrameMessenger/useIFrameMessengerContext.d.ts +13 -0
  37. package/dist/hooks/useIFrameMessenger/useIFrameMessengerContext.js +59 -0
  38. package/dist/hooks/useIFrameMessenger/useIFrameMessengerContext.js.map +1 -0
  39. package/dist/hooks/useIFrameMessenger/useIFrameMessengerHandlers.d.ts +13 -0
  40. package/dist/hooks/useIFrameMessenger/useIFrameMessengerHandlers.js +29 -0
  41. package/dist/hooks/useIFrameMessenger/useIFrameMessengerHandlers.js.map +1 -0
  42. package/package.json +3 -3
@@ -243,15 +243,40 @@ export declare enum AttributesSortableFields {
243
243
  multiple_values = "multiple_values",
244
244
  type = "type"
245
245
  }
246
+ export declare enum AutomationRuleSortableFields {
247
+ id = "id"
248
+ }
249
+ export type AutomationRulesFiltersInput = {
250
+ id?: InputMaybe<Scalars['ID']['input']>;
251
+ label?: InputMaybe<Scalars['String']['input']>;
252
+ };
253
+ export type AutomationRulesSortInput = {
254
+ field: AutomationRuleSortableFields;
255
+ order?: InputMaybe<SortOrder>;
256
+ };
246
257
  export declare enum AvailableLanguage {
247
258
  en = "en",
248
259
  fr = "fr"
249
260
  }
261
+ export type CampaignToRenew = {
262
+ endDate: Scalars['String']['input'];
263
+ id: Scalars['String']['input'];
264
+ startDate: Scalars['String']['input'];
265
+ };
266
+ export type CampaignToUpdateDates = {
267
+ endDate: Scalars['String']['input'];
268
+ id: Scalars['String']['input'];
269
+ startDate: Scalars['String']['input'];
270
+ };
250
271
  export type ChildrenAsRecordValuePermissionFilterInput = {
251
272
  action: RecordPermissionsActions;
252
273
  attributeId: Scalars['ID']['input'];
253
274
  libraryId: Scalars['ID']['input'];
254
275
  };
276
+ export type CreateAutomationRuleInput = {
277
+ description?: InputMaybe<Scalars['SystemTranslationOptional']['input']>;
278
+ label: Scalars['SystemTranslation']['input'];
279
+ };
255
280
  export type CreateRecordDataInput = {
256
281
  values?: InputMaybe<Array<ValueBatchInput>>;
257
282
  version?: InputMaybe<Array<ValueVersionInput>>;
@@ -421,6 +446,8 @@ export declare enum LogAction {
421
446
  APP_SAVE = "APP_SAVE",
422
447
  ATTRIBUTE_DELETE = "ATTRIBUTE_DELETE",
423
448
  ATTRIBUTE_SAVE = "ATTRIBUTE_SAVE",
449
+ AUTOMATION_RULE_CREATE = "AUTOMATION_RULE_CREATE",
450
+ AUTOMATION_RULE_UPDATE = "AUTOMATION_RULE_UPDATE",
424
451
  CONFIG_IMPORT_END = "CONFIG_IMPORT_END",
425
452
  CONFIG_IMPORT_START = "CONFIG_IMPORT_START",
426
453
  DATA_IMPORT_END = "DATA_IMPORT_END",
@@ -473,6 +500,7 @@ export declare enum LogSortableField {
473
500
  export type LogTopicFilterInput = {
474
501
  apiKey?: InputMaybe<Scalars['String']['input']>;
475
502
  attribute?: InputMaybe<Scalars['String']['input']>;
503
+ automationRule?: InputMaybe<Scalars['String']['input']>;
476
504
  filename?: InputMaybe<Scalars['String']['input']>;
477
505
  library?: InputMaybe<Scalars['String']['input']>;
478
506
  permission?: InputMaybe<LogTopicPermissionFilterInput>;
@@ -575,6 +603,7 @@ export declare enum PermissionsActions {
575
603
  admin_import_config_clear_database = "admin_import_config_clear_database",
576
604
  admin_library = "admin_library",
577
605
  admin_list_plugins = "admin_list_plugins",
606
+ admin_manage_automation = "admin_manage_automation",
578
607
  admin_manage_global_preferences = "admin_manage_global_preferences",
579
608
  create_record = "create_record",
580
609
  delete_record = "delete_record",
@@ -682,6 +711,25 @@ export type RecordsPagination = {
682
711
  limit: Scalars['Int']['input'];
683
712
  offset?: InputMaybe<Scalars['Int']['input']>;
684
713
  };
714
+ export type ReportFramingAttributeFilterItemInput = {
715
+ attributeId: Scalars['String']['input'];
716
+ values: Array<ReportFramingAttributeFilterValueItemInput>;
717
+ withEmptyValues?: InputMaybe<Scalars['Boolean']['input']>;
718
+ };
719
+ export type ReportFramingAttributeFilterValueItemInput = {
720
+ formattedValue?: InputMaybe<Scalars['String']['input']>;
721
+ rawValue: Scalars['String']['input'];
722
+ };
723
+ export type ReportFramingContentInput = {
724
+ filters?: InputMaybe<ReportFramingFiltersInput>;
725
+ };
726
+ export type ReportFramingFiltersInput = {
727
+ /** only for excel header filter display */
728
+ attributes?: InputMaybe<Array<ReportFramingAttributeFilterItemInput>>;
729
+ campaigns?: InputMaybe<Array<RecordFilterInput>>;
730
+ categories?: InputMaybe<Array<Scalars['String']['input']>>;
731
+ search?: InputMaybe<Scalars['String']['input']>;
732
+ };
685
733
  export type SaveValueBulkMappingInput = {
686
734
  dependenciesFilters?: InputMaybe<Array<InputMaybe<RecordFilterInput>>>;
687
735
  values: Array<SaveValueBulkMappingValueInput>;
@@ -753,12 +801,18 @@ export declare enum TaskStatus {
753
801
  }
754
802
  export declare enum TaskType {
755
803
  EXPORT = "EXPORT",
804
+ FRAMING_REPORT = "FRAMING_REPORT",
756
805
  IMPORT_CONFIG = "IMPORT_CONFIG",
757
806
  IMPORT_DATA = "IMPORT_DATA",
758
807
  INDEXATION = "INDEXATION",
759
808
  PURGE_MULTIPLE_VALUES = "PURGE_MULTIPLE_VALUES",
809
+ RENEW_CAMPAIGNS = "RENEW_CAMPAIGNS",
760
810
  SAVE_VALUE_BULK = "SAVE_VALUE_BULK"
761
811
  }
812
+ export type ThematicToRenew = {
813
+ campaignId: Scalars['String']['input'];
814
+ thematicId: Scalars['String']['input'];
815
+ };
762
816
  export declare enum TreeBehavior {
763
817
  files = "files",
764
818
  standard = "standard"
@@ -819,6 +873,12 @@ export declare enum TreesSortableFields {
819
873
  id = "id",
820
874
  system = "system"
821
875
  }
876
+ export type UpdateAutomationRuleInput = {
877
+ active?: InputMaybe<Scalars['Boolean']['input']>;
878
+ description?: InputMaybe<Scalars['SystemTranslationOptional']['input']>;
879
+ id: Scalars['ID']['input'];
880
+ label?: InputMaybe<Scalars['SystemTranslation']['input']>;
881
+ };
822
882
  export type UploadFiltersInput = {
823
883
  uid?: InputMaybe<Scalars['String']['input']>;
824
884
  userId?: InputMaybe<Scalars['ID']['input']>;
@@ -882,6 +942,7 @@ export type ViewDisplayInput = {
882
942
  type: ViewTypes;
883
943
  };
884
944
  export type ViewInput = {
945
+ /** The whoAmI column should never be included in attributes because is already hard-coded to be present */
885
946
  attributes?: InputMaybe<Array<Scalars['String']['input']>>;
886
947
  color?: InputMaybe<Scalars['String']['input']>;
887
948
  description?: InputMaybe<Scalars['SystemTranslationOptional']['input']>;
@@ -895,6 +956,7 @@ export type ViewInput = {
895
956
  valuesVersions?: InputMaybe<Array<ViewValuesVersionInput>>;
896
957
  };
897
958
  export type ViewInputPartial = {
959
+ /** The whoAmI column should never be included in attributes because is already hard-coded to be present */
898
960
  attributes?: InputMaybe<Array<Scalars['String']['input']>>;
899
961
  color?: InputMaybe<Scalars['String']['input']>;
900
962
  description?: InputMaybe<Scalars['SystemTranslationOptional']['input']>;
@@ -983,6 +1045,9 @@ export type AttributeDetailsLinkAttributeFragment = {
983
1045
  } | null;
984
1046
  smart_filter?: {
985
1047
  enable: boolean;
1048
+ through?: {
1049
+ id: string;
1050
+ } | null;
986
1051
  } | null;
987
1052
  metadata_fields?: Array<{
988
1053
  id: string;
@@ -3321,6 +3386,9 @@ export type AttributesByLibAttributeWithPermissionsLinkAttributeFragment = {
3321
3386
  } | null;
3322
3387
  smart_filter?: {
3323
3388
  enable: boolean;
3389
+ through?: {
3390
+ id: string;
3391
+ } | null;
3324
3392
  } | null;
3325
3393
  };
3326
3394
  export type AttributesByLibAttributeWithPermissionsStandardAttributeFragment = {
@@ -3410,6 +3478,9 @@ export type AttributesByLibLinkAttributeWithPermissionsFragment = {
3410
3478
  } | null;
3411
3479
  smart_filter?: {
3412
3480
  enable: boolean;
3481
+ through?: {
3482
+ id: string;
3483
+ } | null;
3413
3484
  } | null;
3414
3485
  };
3415
3486
  export type StandardAttributeDetailsFragment = {
@@ -3450,6 +3521,9 @@ export type LinkAttributeDetailsFragment = {
3450
3521
  } | null;
3451
3522
  smart_filter?: {
3452
3523
  enable: boolean;
3524
+ through?: {
3525
+ id: string;
3526
+ } | null;
3453
3527
  } | null;
3454
3528
  };
3455
3529
  export type TreeAttributeDetailsFragment = {
@@ -3824,6 +3898,9 @@ export type GetAttributeByIdQuery = {
3824
3898
  } | null;
3825
3899
  smart_filter?: {
3826
3900
  enable: boolean;
3901
+ through?: {
3902
+ id: string;
3903
+ } | null;
3827
3904
  } | null;
3828
3905
  metadata_fields?: Array<{
3829
3906
  id: string;
@@ -4050,6 +4127,9 @@ export type SaveAttributeMutation = {
4050
4127
  } | null;
4051
4128
  smart_filter?: {
4052
4129
  enable: boolean;
4130
+ through?: {
4131
+ id: string;
4132
+ } | null;
4053
4133
  } | null;
4054
4134
  metadata_fields?: Array<{
4055
4135
  id: string;
@@ -6196,6 +6276,28 @@ export type PurgeRecordMutation = {
6196
6276
  };
6197
6277
  };
6198
6278
  };
6279
+ export type GetRecordIdCardQueryVariables = Exact<{
6280
+ id?: InputMaybe<Scalars['String']['input']>;
6281
+ libraryId: Scalars['ID']['input'];
6282
+ }>;
6283
+ export type GetRecordIdCardQuery = {
6284
+ records: {
6285
+ list: Array<{
6286
+ id: string;
6287
+ whoAmI: {
6288
+ id: string;
6289
+ color?: string | null;
6290
+ label?: string | null;
6291
+ subLabel?: string | null;
6292
+ preview?: IPreviewScalar | null;
6293
+ parentContext?: Array<{
6294
+ id: string;
6295
+ label?: string | null;
6296
+ }> | null;
6297
+ };
6298
+ }>;
6299
+ };
6300
+ };
6199
6301
  export type CancelTaskMutationVariables = Exact<{
6200
6302
  taskId: Scalars['ID']['input'];
6201
6303
  }>;
@@ -7449,6 +7551,9 @@ export type GetAttributesByLibWithPermissionsQuery = {
7449
7551
  } | null;
7450
7552
  smart_filter?: {
7451
7553
  enable: boolean;
7554
+ through?: {
7555
+ id: string;
7556
+ } | null;
7452
7557
  } | null;
7453
7558
  permissions: {
7454
7559
  access_attribute: boolean;
@@ -7546,6 +7651,9 @@ export type ExplorerAttributesQuery = {
7546
7651
  } | null;
7547
7652
  smart_filter?: {
7548
7653
  enable: boolean;
7654
+ through?: {
7655
+ id: string;
7656
+ } | null;
7549
7657
  } | null;
7550
7658
  permissions: {
7551
7659
  access_attribute: boolean;
@@ -7614,6 +7722,9 @@ export type ExplorerLinkAttributeQuery = {
7614
7722
  } | null;
7615
7723
  smart_filter?: {
7616
7724
  enable: boolean;
7725
+ through?: {
7726
+ id: string;
7727
+ } | null;
7617
7728
  } | null;
7618
7729
  permissions: {
7619
7730
  access_attribute: boolean;
@@ -9436,6 +9547,43 @@ export declare function usePurgeRecordMutation(baseOptions?: Apollo.MutationHook
9436
9547
  export type PurgeRecordMutationHookResult = ReturnType<typeof usePurgeRecordMutation>;
9437
9548
  export type PurgeRecordMutationResult = Apollo.MutationResult<PurgeRecordMutation>;
9438
9549
  export type PurgeRecordMutationOptions = Apollo.BaseMutationOptions<PurgeRecordMutation, PurgeRecordMutationVariables>;
9550
+ export declare const GetRecordIdCardDocument: Apollo.DocumentNode;
9551
+ /**
9552
+ * __useGetRecordIdCardQuery__
9553
+ *
9554
+ * To run a query within a React component, call `useGetRecordIdCardQuery` and pass it any options that fit your needs.
9555
+ * When your component renders, `useGetRecordIdCardQuery` returns an object from Apollo Client that contains loading, error, and data properties
9556
+ * you can use to render your UI.
9557
+ *
9558
+ * @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;
9559
+ *
9560
+ * @example
9561
+ * const { data, loading, error } = useGetRecordIdCardQuery({
9562
+ * variables: {
9563
+ * id: // value for 'id'
9564
+ * libraryId: // value for 'libraryId'
9565
+ * },
9566
+ * });
9567
+ */
9568
+ export declare function useGetRecordIdCardQuery(baseOptions: Apollo.QueryHookOptions<GetRecordIdCardQuery, GetRecordIdCardQueryVariables> & ({
9569
+ variables: GetRecordIdCardQueryVariables;
9570
+ skip?: boolean;
9571
+ } | {
9572
+ skip: boolean;
9573
+ })): Apollo.InteropQueryResult<GetRecordIdCardQuery, Exact<{
9574
+ id?: InputMaybe<Scalars["String"]["input"]>;
9575
+ libraryId: Scalars["ID"]["input"];
9576
+ }>>;
9577
+ export declare function useGetRecordIdCardLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetRecordIdCardQuery, GetRecordIdCardQueryVariables>): Apollo.LazyQueryResultTuple<GetRecordIdCardQuery, Exact<{
9578
+ id?: InputMaybe<Scalars["String"]["input"]>;
9579
+ libraryId: Scalars["ID"]["input"];
9580
+ }>>;
9581
+ export declare function useGetRecordIdCardSuspenseQuery(baseOptions?: Apollo.SuspenseQueryHookOptions<GetRecordIdCardQuery, GetRecordIdCardQueryVariables>): Apollo.UseSuspenseQueryResult<GetRecordIdCardQuery, GetRecordIdCardQueryVariables>;
9582
+ export declare function useGetRecordIdCardSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<GetRecordIdCardQuery, GetRecordIdCardQueryVariables>): Apollo.UseSuspenseQueryResult<GetRecordIdCardQuery | undefined, GetRecordIdCardQueryVariables>;
9583
+ export type GetRecordIdCardQueryHookResult = ReturnType<typeof useGetRecordIdCardQuery>;
9584
+ export type GetRecordIdCardLazyQueryHookResult = ReturnType<typeof useGetRecordIdCardLazyQuery>;
9585
+ export type GetRecordIdCardSuspenseQueryHookResult = ReturnType<typeof useGetRecordIdCardSuspenseQuery>;
9586
+ export type GetRecordIdCardQueryResult = Apollo.QueryResult<GetRecordIdCardQuery, GetRecordIdCardQueryVariables>;
9439
9587
  export declare const CancelTaskDocument: Apollo.DocumentNode;
9440
9588
  export type CancelTaskMutationFn = Apollo.MutationFunction<CancelTaskMutation, CancelTaskMutationVariables>;
9441
9589
  /**
@@ -64,6 +64,10 @@ export var AttributesSortableFields;
64
64
  AttributesSortableFields["multiple_values"] = "multiple_values";
65
65
  AttributesSortableFields["type"] = "type";
66
66
  })(AttributesSortableFields || (AttributesSortableFields = {}));
67
+ export var AutomationRuleSortableFields;
68
+ (function (AutomationRuleSortableFields) {
69
+ AutomationRuleSortableFields["id"] = "id";
70
+ })(AutomationRuleSortableFields || (AutomationRuleSortableFields = {}));
67
71
  export var AvailableLanguage;
68
72
  (function (AvailableLanguage) {
69
73
  AvailableLanguage["en"] = "en";
@@ -128,6 +132,8 @@ export var LogAction;
128
132
  LogAction["APP_SAVE"] = "APP_SAVE";
129
133
  LogAction["ATTRIBUTE_DELETE"] = "ATTRIBUTE_DELETE";
130
134
  LogAction["ATTRIBUTE_SAVE"] = "ATTRIBUTE_SAVE";
135
+ LogAction["AUTOMATION_RULE_CREATE"] = "AUTOMATION_RULE_CREATE";
136
+ LogAction["AUTOMATION_RULE_UPDATE"] = "AUTOMATION_RULE_UPDATE";
131
137
  LogAction["CONFIG_IMPORT_END"] = "CONFIG_IMPORT_END";
132
138
  LogAction["CONFIG_IMPORT_START"] = "CONFIG_IMPORT_START";
133
139
  LogAction["DATA_IMPORT_END"] = "DATA_IMPORT_END";
@@ -230,6 +236,7 @@ export var PermissionsActions;
230
236
  PermissionsActions["admin_import_config_clear_database"] = "admin_import_config_clear_database";
231
237
  PermissionsActions["admin_library"] = "admin_library";
232
238
  PermissionsActions["admin_list_plugins"] = "admin_list_plugins";
239
+ PermissionsActions["admin_manage_automation"] = "admin_manage_automation";
233
240
  PermissionsActions["admin_manage_global_preferences"] = "admin_manage_global_preferences";
234
241
  PermissionsActions["create_record"] = "create_record";
235
242
  PermissionsActions["delete_record"] = "delete_record";
@@ -307,10 +314,12 @@ export var TaskStatus;
307
314
  export var TaskType;
308
315
  (function (TaskType) {
309
316
  TaskType["EXPORT"] = "EXPORT";
317
+ TaskType["FRAMING_REPORT"] = "FRAMING_REPORT";
310
318
  TaskType["IMPORT_CONFIG"] = "IMPORT_CONFIG";
311
319
  TaskType["IMPORT_DATA"] = "IMPORT_DATA";
312
320
  TaskType["INDEXATION"] = "INDEXATION";
313
321
  TaskType["PURGE_MULTIPLE_VALUES"] = "PURGE_MULTIPLE_VALUES";
322
+ TaskType["RENEW_CAMPAIGNS"] = "RENEW_CAMPAIGNS";
314
323
  TaskType["SAVE_VALUE_BULK"] = "SAVE_VALUE_BULK";
315
324
  })(TaskType || (TaskType = {}));
316
325
  export var TreeBehavior;
@@ -437,6 +446,9 @@ export const AttributeDetailsFragmentDoc = gql `
437
446
  reverse_link
438
447
  smart_filter {
439
448
  enable
449
+ through {
450
+ id
451
+ }
440
452
  }
441
453
  }
442
454
  ... on TreeAttribute {
@@ -978,6 +990,9 @@ export const AttributesByLibLinkAttributeWithPermissionsFragmentDoc = gql `
978
990
  }
979
991
  smart_filter {
980
992
  enable
993
+ through {
994
+ id
995
+ }
981
996
  }
982
997
  }
983
998
  ${RecordIdentityFragmentDoc}`;
@@ -1063,6 +1078,9 @@ export const LinkAttributeDetailsFragmentDoc = gql `
1063
1078
  }
1064
1079
  smart_filter {
1065
1080
  enable
1081
+ through {
1082
+ id
1083
+ }
1066
1084
  }
1067
1085
  }
1068
1086
  `;
@@ -2751,6 +2769,58 @@ export function usePurgeRecordMutation(baseOptions) {
2751
2769
  const options = { ...defaultOptions, ...baseOptions };
2752
2770
  return Apollo.useMutation(PurgeRecordDocument, options);
2753
2771
  }
2772
+ export const GetRecordIdCardDocument = gql `
2773
+ query GetRecordIdCard($id: String, $libraryId: ID!) {
2774
+ records(
2775
+ library: $libraryId
2776
+ filters: [{field: "id", condition: EQUAL, value: $id}]
2777
+ ) {
2778
+ list {
2779
+ id
2780
+ whoAmI {
2781
+ id
2782
+ color
2783
+ label
2784
+ subLabel
2785
+ preview
2786
+ parentContext {
2787
+ id
2788
+ label
2789
+ }
2790
+ }
2791
+ }
2792
+ }
2793
+ }
2794
+ `;
2795
+ /**
2796
+ * __useGetRecordIdCardQuery__
2797
+ *
2798
+ * To run a query within a React component, call `useGetRecordIdCardQuery` and pass it any options that fit your needs.
2799
+ * When your component renders, `useGetRecordIdCardQuery` returns an object from Apollo Client that contains loading, error, and data properties
2800
+ * you can use to render your UI.
2801
+ *
2802
+ * @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;
2803
+ *
2804
+ * @example
2805
+ * const { data, loading, error } = useGetRecordIdCardQuery({
2806
+ * variables: {
2807
+ * id: // value for 'id'
2808
+ * libraryId: // value for 'libraryId'
2809
+ * },
2810
+ * });
2811
+ */
2812
+ export function useGetRecordIdCardQuery(baseOptions) {
2813
+ const options = { ...defaultOptions, ...baseOptions };
2814
+ return Apollo.useQuery(GetRecordIdCardDocument, options);
2815
+ }
2816
+ export function useGetRecordIdCardLazyQuery(baseOptions) {
2817
+ const options = { ...defaultOptions, ...baseOptions };
2818
+ return Apollo.useLazyQuery(GetRecordIdCardDocument, options);
2819
+ }
2820
+ export function useGetRecordIdCardSuspenseQuery(baseOptions) {
2821
+ const options = baseOptions === Apollo.skipToken ? baseOptions : { ...defaultOptions, ...baseOptions };
2822
+ return Apollo.useSuspenseQuery(GetRecordIdCardDocument, options);
2823
+ }
2754
2824
  export const CancelTaskDocument = gql `
2755
2825
  mutation CANCEL_TASK($taskId: ID!) {
2756
2826
  cancelTask(taskId: $taskId)