@leav/ui 1.12.0-0eff9b0c → 1.12.0-1365cdb4
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/dist/__mocks__/utils.d.ts +3 -0
- package/dist/__mocks__/utils.js +2 -0
- package/dist/__mocks__/utils.js.map +1 -0
- package/dist/_gqlTypes/index.d.ts +117 -0
- package/dist/_gqlTypes/index.js +61 -0
- package/dist/_gqlTypes/index.js.map +1 -1
- package/dist/components/Explorer/DataView.js +30 -13
- package/dist/components/Explorer/DataView.js.map +1 -1
- package/dist/components/Explorer/actions-mass/useMassActions.js +12 -6
- package/dist/components/Explorer/actions-mass/useMassActions.js.map +1 -1
- package/dist/components/Explorer/conditionsHelper.d.ts +2 -1
- package/dist/components/Explorer/conditionsHelper.js.map +1 -1
- package/dist/components/Filters/conditionsHelper.d.ts +2 -1
- package/dist/components/Filters/conditionsHelper.js.map +1 -1
- package/dist/components/Filters/filter-items/CommonFilterItem.js.map +1 -1
- package/dist/components/Filters/filter-items/filter-type/useConditionOptionsByType.js.map +1 -1
- package/dist/components/Filters/useTransformFilters.js.map +1 -1
- package/dist/components/RecordEdition/EditRecord/EditRecord.js +8 -1
- package/dist/components/RecordEdition/EditRecord/EditRecord.js.map +1 -1
- package/dist/hooks/index.d.ts +3 -0
- package/dist/hooks/index.js +3 -0
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/useGetRecordIdCard/index.d.ts +1 -0
- package/dist/hooks/useGetRecordIdCard/index.js +5 -0
- package/dist/hooks/useGetRecordIdCard/index.js.map +1 -0
- package/dist/hooks/useGetRecordIdCard/useGetRecordIdCard.d.ts +18 -0
- package/dist/hooks/useGetRecordIdCard/useGetRecordIdCard.js +20 -0
- package/dist/hooks/useGetRecordIdCard/useGetRecordIdCard.js.map +1 -0
- package/dist/hooks/useIFrameMessenger/iFrameMessengerContext.d.ts +6 -0
- package/dist/hooks/useIFrameMessenger/iFrameMessengerContext.js +8 -0
- package/dist/hooks/useIFrameMessenger/iFrameMessengerContext.js.map +1 -0
- package/dist/hooks/useIFrameMessenger/types.d.ts +4 -1
- package/dist/hooks/useIFrameMessenger/types.js.map +1 -1
- package/dist/hooks/useIFrameMessenger/useIFrameMessenger.d.ts +10 -2
- package/dist/hooks/useIFrameMessenger/useIFrameMessenger.js +21 -9
- package/dist/hooks/useIFrameMessenger/useIFrameMessenger.js.map +1 -1
- package/dist/hooks/useIFrameMessenger/useIFrameMessengerContext.d.ts +13 -0
- package/dist/hooks/useIFrameMessenger/useIFrameMessengerContext.js +59 -0
- package/dist/hooks/useIFrameMessenger/useIFrameMessengerContext.js.map +1 -0
- package/dist/hooks/useIFrameMessenger/useIFrameMessengerHandlers.d.ts +13 -0
- package/dist/hooks/useIFrameMessenger/useIFrameMessengerHandlers.js +29 -0
- package/dist/hooks/useIFrameMessenger/useIFrameMessengerHandlers.js.map +1 -0
- package/dist/hooks/useSharedTranslation/__mocks__/useSharedTranslation.js.map +1 -1
- package/dist/locales/en/shared.json +2 -0
- package/dist/locales/fr/shared.json +3 -1
- package/package.json +3 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/__mocks__/utils.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nexport type Mockify<T> = {\n [P in keyof T]?: T[P] extends (...args: any[]) => any\n ? jest.Mock<ReturnType<T[P]> extends never ? never : any>\n : T[P];\n};\n"]}
|
|
@@ -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,10 +801,12 @@ 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
|
}
|
|
762
812
|
export type ThematicToRenew = {
|
|
@@ -823,6 +873,12 @@ export declare enum TreesSortableFields {
|
|
|
823
873
|
id = "id",
|
|
824
874
|
system = "system"
|
|
825
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
|
+
};
|
|
826
882
|
export type UploadFiltersInput = {
|
|
827
883
|
uid?: InputMaybe<Scalars['String']['input']>;
|
|
828
884
|
userId?: InputMaybe<Scalars['ID']['input']>;
|
|
@@ -886,6 +942,7 @@ export type ViewDisplayInput = {
|
|
|
886
942
|
type: ViewTypes;
|
|
887
943
|
};
|
|
888
944
|
export type ViewInput = {
|
|
945
|
+
/** The whoAmI column should never be included in attributes because is already hard-coded to be present */
|
|
889
946
|
attributes?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
890
947
|
color?: InputMaybe<Scalars['String']['input']>;
|
|
891
948
|
description?: InputMaybe<Scalars['SystemTranslationOptional']['input']>;
|
|
@@ -899,6 +956,7 @@ export type ViewInput = {
|
|
|
899
956
|
valuesVersions?: InputMaybe<Array<ViewValuesVersionInput>>;
|
|
900
957
|
};
|
|
901
958
|
export type ViewInputPartial = {
|
|
959
|
+
/** The whoAmI column should never be included in attributes because is already hard-coded to be present */
|
|
902
960
|
attributes?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
903
961
|
color?: InputMaybe<Scalars['String']['input']>;
|
|
904
962
|
description?: InputMaybe<Scalars['SystemTranslationOptional']['input']>;
|
|
@@ -6218,6 +6276,28 @@ export type PurgeRecordMutation = {
|
|
|
6218
6276
|
};
|
|
6219
6277
|
};
|
|
6220
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
|
+
};
|
|
6221
6301
|
export type CancelTaskMutationVariables = Exact<{
|
|
6222
6302
|
taskId: Scalars['ID']['input'];
|
|
6223
6303
|
}>;
|
|
@@ -9467,6 +9547,43 @@ export declare function usePurgeRecordMutation(baseOptions?: Apollo.MutationHook
|
|
|
9467
9547
|
export type PurgeRecordMutationHookResult = ReturnType<typeof usePurgeRecordMutation>;
|
|
9468
9548
|
export type PurgeRecordMutationResult = Apollo.MutationResult<PurgeRecordMutation>;
|
|
9469
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>;
|
|
9470
9587
|
export declare const CancelTaskDocument: Apollo.DocumentNode;
|
|
9471
9588
|
export type CancelTaskMutationFn = Apollo.MutationFunction<CancelTaskMutation, CancelTaskMutationVariables>;
|
|
9472
9589
|
/**
|
package/dist/_gqlTypes/index.js
CHANGED
|
@@ -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;
|
|
@@ -2760,6 +2769,58 @@ export function usePurgeRecordMutation(baseOptions) {
|
|
|
2760
2769
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2761
2770
|
return Apollo.useMutation(PurgeRecordDocument, options);
|
|
2762
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
|
+
}
|
|
2763
2824
|
export const CancelTaskDocument = gql `
|
|
2764
2825
|
mutation CANCEL_TASK($taskId: ID!) {
|
|
2765
2826
|
cancelTask(taskId: $taskId)
|