@leav/ui 1.12.0-1 → 1.12.0-234abc17
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/_gqlTypes/index.d.ts +129 -33
- package/dist/_gqlTypes/index.js +71 -3
- package/dist/_gqlTypes/index.js.map +1 -1
- package/dist/_queries/attributes/attributeDetailsFragment.js +3 -0
- package/dist/_queries/attributes/attributeDetailsFragment.js.map +1 -1
- package/dist/components/Explorer/DataView.js +39 -11
- package/dist/components/Explorer/DataView.js.map +1 -1
- package/dist/components/Explorer/Explorer.js +3 -2
- package/dist/components/Explorer/Explorer.js.map +1 -1
- package/dist/components/Explorer/TableNameCell.js +1 -4
- package/dist/components/Explorer/TableNameCell.js.map +1 -1
- package/dist/components/Explorer/actions-mass/ResultsCount.js +2 -2
- package/dist/components/Explorer/actions-mass/ResultsCount.js.map +1 -1
- package/dist/components/Explorer/actions-mass/useEditAttributeMassAction.js +14 -6
- package/dist/components/Explorer/actions-mass/useEditAttributeMassAction.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.js +6 -4
- package/dist/components/Explorer/manage-view-settings/save-view/prepareViewForRequest.js.map +1 -1
- package/dist/components/Filters/_types.d.ts +3 -0
- package/dist/components/Filters/_types.js.map +1 -1
- package/dist/components/Filters/context/filtersReducer.js +14 -1
- package/dist/components/Filters/context/filtersReducer.js.map +1 -1
- package/dist/components/Filters/useFilters.d.ts +198 -0
- package/dist/components/Filters/useTransformFilters.js +4 -2
- 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 +10 -3
- package/dist/hooks/useIFrameMessenger/types.js.map +1 -1
- package/dist/hooks/useIFrameMessenger/useIFrameMessenger.d.ts +11 -2
- package/dist/hooks/useIFrameMessenger/useIFrameMessenger.js +31 -10
- 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/useIFrameMessengerClient/IFrameMessengerClient.js +3 -0
- package/dist/hooks/useIFrameMessengerClient/IFrameMessengerClient.js.map +1 -1
- package/dist/hooks/useIFrameMessengerClient/iFrameMessengerClientContext.d.ts +1 -0
- package/dist/hooks/useIFrameMessengerClient/useIFrameMessengerClient.d.ts +1 -0
- package/package.json +10 -10
|
@@ -243,6 +243,17 @@ 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"
|
|
@@ -262,6 +273,10 @@ export type ChildrenAsRecordValuePermissionFilterInput = {
|
|
|
262
273
|
attributeId: Scalars['ID']['input'];
|
|
263
274
|
libraryId: Scalars['ID']['input'];
|
|
264
275
|
};
|
|
276
|
+
export type CreateAutomationRuleInput = {
|
|
277
|
+
description?: InputMaybe<Scalars['SystemTranslationOptional']['input']>;
|
|
278
|
+
label: Scalars['SystemTranslation']['input'];
|
|
279
|
+
};
|
|
265
280
|
export type CreateRecordDataInput = {
|
|
266
281
|
values?: InputMaybe<Array<ValueBatchInput>>;
|
|
267
282
|
version?: InputMaybe<Array<ValueVersionInput>>;
|
|
@@ -431,6 +446,8 @@ export declare enum LogAction {
|
|
|
431
446
|
APP_SAVE = "APP_SAVE",
|
|
432
447
|
ATTRIBUTE_DELETE = "ATTRIBUTE_DELETE",
|
|
433
448
|
ATTRIBUTE_SAVE = "ATTRIBUTE_SAVE",
|
|
449
|
+
AUTOMATION_RULE_CREATE = "AUTOMATION_RULE_CREATE",
|
|
450
|
+
AUTOMATION_RULE_UPDATE = "AUTOMATION_RULE_UPDATE",
|
|
434
451
|
CONFIG_IMPORT_END = "CONFIG_IMPORT_END",
|
|
435
452
|
CONFIG_IMPORT_START = "CONFIG_IMPORT_START",
|
|
436
453
|
DATA_IMPORT_END = "DATA_IMPORT_END",
|
|
@@ -483,6 +500,7 @@ export declare enum LogSortableField {
|
|
|
483
500
|
export type LogTopicFilterInput = {
|
|
484
501
|
apiKey?: InputMaybe<Scalars['String']['input']>;
|
|
485
502
|
attribute?: InputMaybe<Scalars['String']['input']>;
|
|
503
|
+
automationRule?: InputMaybe<Scalars['String']['input']>;
|
|
486
504
|
filename?: InputMaybe<Scalars['String']['input']>;
|
|
487
505
|
library?: InputMaybe<Scalars['String']['input']>;
|
|
488
506
|
permission?: InputMaybe<LogTopicPermissionFilterInput>;
|
|
@@ -498,10 +516,6 @@ export type LogTopicRecordFilterInput = {
|
|
|
498
516
|
id?: InputMaybe<Scalars['String']['input']>;
|
|
499
517
|
libraryId?: InputMaybe<Scalars['String']['input']>;
|
|
500
518
|
};
|
|
501
|
-
export type MapValueInput = {
|
|
502
|
-
after?: InputMaybe<Scalars['ID']['input']>;
|
|
503
|
-
before?: InputMaybe<Scalars['ID']['input']>;
|
|
504
|
-
};
|
|
505
519
|
export declare enum MultiDisplayOption {
|
|
506
520
|
avatar = "avatar",
|
|
507
521
|
badge_qty = "badge_qty",
|
|
@@ -589,6 +603,7 @@ export declare enum PermissionsActions {
|
|
|
589
603
|
admin_import_config_clear_database = "admin_import_config_clear_database",
|
|
590
604
|
admin_library = "admin_library",
|
|
591
605
|
admin_list_plugins = "admin_list_plugins",
|
|
606
|
+
admin_manage_automation = "admin_manage_automation",
|
|
592
607
|
admin_manage_global_preferences = "admin_manage_global_preferences",
|
|
593
608
|
create_record = "create_record",
|
|
594
609
|
delete_record = "delete_record",
|
|
@@ -705,40 +720,23 @@ export type ReportFramingAttributeFilterValueItemInput = {
|
|
|
705
720
|
formattedValue?: InputMaybe<Scalars['String']['input']>;
|
|
706
721
|
rawValue: Scalars['String']['input'];
|
|
707
722
|
};
|
|
708
|
-
export type ReportFramingCampaignInput = {
|
|
709
|
-
computedFraming?: InputMaybe<Array<ReportFramingItemInput>>;
|
|
710
|
-
framing?: InputMaybe<Array<ReportFramingItemInput>>;
|
|
711
|
-
id: Scalars['String']['input'];
|
|
712
|
-
label?: InputMaybe<Scalars['String']['input']>;
|
|
713
|
-
thematics: Array<ReportFramingThematicInput>;
|
|
714
|
-
};
|
|
715
|
-
export type ReportFramingCategoryInput = {
|
|
716
|
-
categoryId: Scalars['String']['input'];
|
|
717
|
-
children: Array<ReportFramingCategoryInput>;
|
|
718
|
-
computedFraming?: InputMaybe<Array<ReportFramingItemInput>>;
|
|
719
|
-
framing?: InputMaybe<Array<ReportFramingItemInput>>;
|
|
720
|
-
id?: InputMaybe<Scalars['String']['input']>;
|
|
721
|
-
label?: InputMaybe<Scalars['String']['input']>;
|
|
722
|
-
};
|
|
723
723
|
export type ReportFramingContentInput = {
|
|
724
|
-
campaigns: Array<ReportFramingCampaignInput>;
|
|
725
724
|
filters?: InputMaybe<ReportFramingFiltersInput>;
|
|
726
725
|
};
|
|
727
726
|
export type ReportFramingFiltersInput = {
|
|
727
|
+
/** only for excel header filter display */
|
|
728
728
|
attributes?: InputMaybe<Array<ReportFramingAttributeFilterItemInput>>;
|
|
729
|
+
campaigns?: InputMaybe<Array<RecordFilterInput>>;
|
|
730
|
+
categories?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
729
731
|
search?: InputMaybe<Scalars['String']['input']>;
|
|
730
732
|
};
|
|
731
|
-
export type
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
value?: InputMaybe<Scalars['Int']['input']>;
|
|
733
|
+
export type SaveValueBulkMappingInput = {
|
|
734
|
+
dependenciesFilters?: InputMaybe<Array<InputMaybe<RecordFilterInput>>>;
|
|
735
|
+
values: Array<SaveValueBulkMappingValueInput>;
|
|
735
736
|
};
|
|
736
|
-
export type
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
framing?: InputMaybe<Array<ReportFramingItemInput>>;
|
|
740
|
-
id: Scalars['String']['input'];
|
|
741
|
-
label?: InputMaybe<Scalars['String']['input']>;
|
|
737
|
+
export type SaveValueBulkMappingValueInput = {
|
|
738
|
+
after?: InputMaybe<Scalars['ID']['input']>;
|
|
739
|
+
before?: InputMaybe<Scalars['ID']['input']>;
|
|
742
740
|
};
|
|
743
741
|
export type SheetInput = {
|
|
744
742
|
keyIndex?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -811,6 +809,10 @@ export declare enum TaskType {
|
|
|
811
809
|
RENEW_CAMPAIGNS = "RENEW_CAMPAIGNS",
|
|
812
810
|
SAVE_VALUE_BULK = "SAVE_VALUE_BULK"
|
|
813
811
|
}
|
|
812
|
+
export type ThematicToRenew = {
|
|
813
|
+
campaignId: Scalars['String']['input'];
|
|
814
|
+
thematicId: Scalars['String']['input'];
|
|
815
|
+
};
|
|
814
816
|
export declare enum TreeBehavior {
|
|
815
817
|
files = "files",
|
|
816
818
|
standard = "standard"
|
|
@@ -871,6 +873,12 @@ export declare enum TreesSortableFields {
|
|
|
871
873
|
id = "id",
|
|
872
874
|
system = "system"
|
|
873
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
|
+
};
|
|
874
882
|
export type UploadFiltersInput = {
|
|
875
883
|
uid?: InputMaybe<Scalars['String']['input']>;
|
|
876
884
|
userId?: InputMaybe<Scalars['ID']['input']>;
|
|
@@ -934,6 +942,7 @@ export type ViewDisplayInput = {
|
|
|
934
942
|
type: ViewTypes;
|
|
935
943
|
};
|
|
936
944
|
export type ViewInput = {
|
|
945
|
+
/** The whoAmI column should never be included in attributes because is already hard-coded to be present */
|
|
937
946
|
attributes?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
938
947
|
color?: InputMaybe<Scalars['String']['input']>;
|
|
939
948
|
description?: InputMaybe<Scalars['SystemTranslationOptional']['input']>;
|
|
@@ -947,6 +956,7 @@ export type ViewInput = {
|
|
|
947
956
|
valuesVersions?: InputMaybe<Array<ViewValuesVersionInput>>;
|
|
948
957
|
};
|
|
949
958
|
export type ViewInputPartial = {
|
|
959
|
+
/** The whoAmI column should never be included in attributes because is already hard-coded to be present */
|
|
950
960
|
attributes?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
951
961
|
color?: InputMaybe<Scalars['String']['input']>;
|
|
952
962
|
description?: InputMaybe<Scalars['SystemTranslationOptional']['input']>;
|
|
@@ -1035,6 +1045,9 @@ export type AttributeDetailsLinkAttributeFragment = {
|
|
|
1035
1045
|
} | null;
|
|
1036
1046
|
smart_filter?: {
|
|
1037
1047
|
enable: boolean;
|
|
1048
|
+
through?: {
|
|
1049
|
+
id: string;
|
|
1050
|
+
} | null;
|
|
1038
1051
|
} | null;
|
|
1039
1052
|
metadata_fields?: Array<{
|
|
1040
1053
|
id: string;
|
|
@@ -3373,6 +3386,9 @@ export type AttributesByLibAttributeWithPermissionsLinkAttributeFragment = {
|
|
|
3373
3386
|
} | null;
|
|
3374
3387
|
smart_filter?: {
|
|
3375
3388
|
enable: boolean;
|
|
3389
|
+
through?: {
|
|
3390
|
+
id: string;
|
|
3391
|
+
} | null;
|
|
3376
3392
|
} | null;
|
|
3377
3393
|
};
|
|
3378
3394
|
export type AttributesByLibAttributeWithPermissionsStandardAttributeFragment = {
|
|
@@ -3462,6 +3478,9 @@ export type AttributesByLibLinkAttributeWithPermissionsFragment = {
|
|
|
3462
3478
|
} | null;
|
|
3463
3479
|
smart_filter?: {
|
|
3464
3480
|
enable: boolean;
|
|
3481
|
+
through?: {
|
|
3482
|
+
id: string;
|
|
3483
|
+
} | null;
|
|
3465
3484
|
} | null;
|
|
3466
3485
|
};
|
|
3467
3486
|
export type StandardAttributeDetailsFragment = {
|
|
@@ -3502,6 +3521,9 @@ export type LinkAttributeDetailsFragment = {
|
|
|
3502
3521
|
} | null;
|
|
3503
3522
|
smart_filter?: {
|
|
3504
3523
|
enable: boolean;
|
|
3524
|
+
through?: {
|
|
3525
|
+
id: string;
|
|
3526
|
+
} | null;
|
|
3505
3527
|
} | null;
|
|
3506
3528
|
};
|
|
3507
3529
|
export type TreeAttributeDetailsFragment = {
|
|
@@ -3876,6 +3898,9 @@ export type GetAttributeByIdQuery = {
|
|
|
3876
3898
|
} | null;
|
|
3877
3899
|
smart_filter?: {
|
|
3878
3900
|
enable: boolean;
|
|
3901
|
+
through?: {
|
|
3902
|
+
id: string;
|
|
3903
|
+
} | null;
|
|
3879
3904
|
} | null;
|
|
3880
3905
|
metadata_fields?: Array<{
|
|
3881
3906
|
id: string;
|
|
@@ -4102,6 +4127,9 @@ export type SaveAttributeMutation = {
|
|
|
4102
4127
|
} | null;
|
|
4103
4128
|
smart_filter?: {
|
|
4104
4129
|
enable: boolean;
|
|
4130
|
+
through?: {
|
|
4131
|
+
id: string;
|
|
4132
|
+
} | null;
|
|
4105
4133
|
} | null;
|
|
4106
4134
|
metadata_fields?: Array<{
|
|
4107
4135
|
id: string;
|
|
@@ -6248,6 +6276,28 @@ export type PurgeRecordMutation = {
|
|
|
6248
6276
|
};
|
|
6249
6277
|
};
|
|
6250
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
|
+
};
|
|
6251
6301
|
export type CancelTaskMutationVariables = Exact<{
|
|
6252
6302
|
taskId: Scalars['ID']['input'];
|
|
6253
6303
|
}>;
|
|
@@ -7228,7 +7278,7 @@ export type SaveValueBulkMutationVariables = Exact<{
|
|
|
7228
7278
|
libraryId: Scalars['ID']['input'];
|
|
7229
7279
|
recordsFilters: Array<InputMaybe<RecordFilterInput>> | InputMaybe<RecordFilterInput>;
|
|
7230
7280
|
attributeId: Scalars['ID']['input'];
|
|
7231
|
-
|
|
7281
|
+
mapping: Array<SaveValueBulkMappingInput> | SaveValueBulkMappingInput;
|
|
7232
7282
|
}>;
|
|
7233
7283
|
export type SaveValueBulkMutation = {
|
|
7234
7284
|
saveValueBulk: string;
|
|
@@ -7501,6 +7551,9 @@ export type GetAttributesByLibWithPermissionsQuery = {
|
|
|
7501
7551
|
} | null;
|
|
7502
7552
|
smart_filter?: {
|
|
7503
7553
|
enable: boolean;
|
|
7554
|
+
through?: {
|
|
7555
|
+
id: string;
|
|
7556
|
+
} | null;
|
|
7504
7557
|
} | null;
|
|
7505
7558
|
permissions: {
|
|
7506
7559
|
access_attribute: boolean;
|
|
@@ -7598,6 +7651,9 @@ export type ExplorerAttributesQuery = {
|
|
|
7598
7651
|
} | null;
|
|
7599
7652
|
smart_filter?: {
|
|
7600
7653
|
enable: boolean;
|
|
7654
|
+
through?: {
|
|
7655
|
+
id: string;
|
|
7656
|
+
} | null;
|
|
7601
7657
|
} | null;
|
|
7602
7658
|
permissions: {
|
|
7603
7659
|
access_attribute: boolean;
|
|
@@ -7666,6 +7722,9 @@ export type ExplorerLinkAttributeQuery = {
|
|
|
7666
7722
|
} | null;
|
|
7667
7723
|
smart_filter?: {
|
|
7668
7724
|
enable: boolean;
|
|
7725
|
+
through?: {
|
|
7726
|
+
id: string;
|
|
7727
|
+
} | null;
|
|
7669
7728
|
} | null;
|
|
7670
7729
|
permissions: {
|
|
7671
7730
|
access_attribute: boolean;
|
|
@@ -9488,6 +9547,43 @@ export declare function usePurgeRecordMutation(baseOptions?: Apollo.MutationHook
|
|
|
9488
9547
|
export type PurgeRecordMutationHookResult = ReturnType<typeof usePurgeRecordMutation>;
|
|
9489
9548
|
export type PurgeRecordMutationResult = Apollo.MutationResult<PurgeRecordMutation>;
|
|
9490
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>;
|
|
9491
9587
|
export declare const CancelTaskDocument: Apollo.DocumentNode;
|
|
9492
9588
|
export type CancelTaskMutationFn = Apollo.MutationFunction<CancelTaskMutation, CancelTaskMutationVariables>;
|
|
9493
9589
|
/**
|
|
@@ -9875,7 +9971,7 @@ export type SaveValueBulkMutationFn = Apollo.MutationFunction<SaveValueBulkMutat
|
|
|
9875
9971
|
* libraryId: // value for 'libraryId'
|
|
9876
9972
|
* recordsFilters: // value for 'recordsFilters'
|
|
9877
9973
|
* attributeId: // value for 'attributeId'
|
|
9878
|
-
*
|
|
9974
|
+
* mapping: // value for 'mapping'
|
|
9879
9975
|
* },
|
|
9880
9976
|
* });
|
|
9881
9977
|
*/
|
|
@@ -9883,7 +9979,7 @@ export declare function useSaveValueBulkMutation(baseOptions?: Apollo.MutationHo
|
|
|
9883
9979
|
libraryId: Scalars["ID"]["input"];
|
|
9884
9980
|
recordsFilters: Array<InputMaybe<RecordFilterInput>> | InputMaybe<RecordFilterInput>;
|
|
9885
9981
|
attributeId: Scalars["ID"]["input"];
|
|
9886
|
-
|
|
9982
|
+
mapping: Array<SaveValueBulkMappingInput> | SaveValueBulkMappingInput;
|
|
9887
9983
|
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
9888
9984
|
export type SaveValueBulkMutationHookResult = ReturnType<typeof useSaveValueBulkMutation>;
|
|
9889
9985
|
export type SaveValueBulkMutationResult = Apollo.MutationResult<SaveValueBulkMutation>;
|
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";
|
|
@@ -439,6 +446,9 @@ export const AttributeDetailsFragmentDoc = gql `
|
|
|
439
446
|
reverse_link
|
|
440
447
|
smart_filter {
|
|
441
448
|
enable
|
|
449
|
+
through {
|
|
450
|
+
id
|
|
451
|
+
}
|
|
442
452
|
}
|
|
443
453
|
}
|
|
444
454
|
... on TreeAttribute {
|
|
@@ -980,6 +990,9 @@ export const AttributesByLibLinkAttributeWithPermissionsFragmentDoc = gql `
|
|
|
980
990
|
}
|
|
981
991
|
smart_filter {
|
|
982
992
|
enable
|
|
993
|
+
through {
|
|
994
|
+
id
|
|
995
|
+
}
|
|
983
996
|
}
|
|
984
997
|
}
|
|
985
998
|
${RecordIdentityFragmentDoc}`;
|
|
@@ -1065,6 +1078,9 @@ export const LinkAttributeDetailsFragmentDoc = gql `
|
|
|
1065
1078
|
}
|
|
1066
1079
|
smart_filter {
|
|
1067
1080
|
enable
|
|
1081
|
+
through {
|
|
1082
|
+
id
|
|
1083
|
+
}
|
|
1068
1084
|
}
|
|
1069
1085
|
}
|
|
1070
1086
|
`;
|
|
@@ -2753,6 +2769,58 @@ export function usePurgeRecordMutation(baseOptions) {
|
|
|
2753
2769
|
const options = { ...defaultOptions, ...baseOptions };
|
|
2754
2770
|
return Apollo.useMutation(PurgeRecordDocument, options);
|
|
2755
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
|
+
}
|
|
2756
2824
|
export const CancelTaskDocument = gql `
|
|
2757
2825
|
mutation CANCEL_TASK($taskId: ID!) {
|
|
2758
2826
|
cancelTask(taskId: $taskId)
|
|
@@ -3196,12 +3264,12 @@ export function useSaveValueBatchMutation(baseOptions) {
|
|
|
3196
3264
|
return Apollo.useMutation(SaveValueBatchDocument, options);
|
|
3197
3265
|
}
|
|
3198
3266
|
export const SaveValueBulkDocument = gql `
|
|
3199
|
-
mutation SAVE_VALUE_BULK($libraryId: ID!, $recordsFilters: [RecordFilterInput]!, $attributeId: ID!, $
|
|
3267
|
+
mutation SAVE_VALUE_BULK($libraryId: ID!, $recordsFilters: [RecordFilterInput]!, $attributeId: ID!, $mapping: [SaveValueBulkMappingInput!]!) {
|
|
3200
3268
|
saveValueBulk(
|
|
3201
3269
|
libraryId: $libraryId
|
|
3202
3270
|
recordsFilters: $recordsFilters
|
|
3203
3271
|
attributeId: $attributeId
|
|
3204
|
-
|
|
3272
|
+
mapping: $mapping
|
|
3205
3273
|
)
|
|
3206
3274
|
}
|
|
3207
3275
|
`;
|
|
@@ -3221,7 +3289,7 @@ export const SaveValueBulkDocument = gql `
|
|
|
3221
3289
|
* libraryId: // value for 'libraryId'
|
|
3222
3290
|
* recordsFilters: // value for 'recordsFilters'
|
|
3223
3291
|
* attributeId: // value for 'attributeId'
|
|
3224
|
-
*
|
|
3292
|
+
* mapping: // value for 'mapping'
|
|
3225
3293
|
* },
|
|
3226
3294
|
* });
|
|
3227
3295
|
*/
|