From 88c2953a341acb1c3260e046253a6d549c01fc93 Mon Sep 17 00:00:00 2001 From: Alla Maley Date: Tue, 25 Oct 2022 12:15:51 +0200 Subject: [PATCH] feat: new types for useModelRelationQuery and response of prepareInput --- src/prefabs/factories/prefab.ts | 5 +++++ src/prefabs/types/helpers.ts | 1 + 2 files changed, 6 insertions(+) diff --git a/src/prefabs/factories/prefab.ts b/src/prefabs/factories/prefab.ts index edbdb82a..c28354d2 100644 --- a/src/prefabs/factories/prefab.ts +++ b/src/prefabs/factories/prefab.ts @@ -32,6 +32,11 @@ export type BeforeCreateArgs = { data: Record | null; error: Record | null; }; + useModelRelationQuery: (propertyModelId: string) => { + loading: boolean; + data: Record | null; + error: Record | null; + }; useModelIdSelector: () => string | null; useActionIdSelector: () => string | null; usePrefabSelector: () => { name: string; id: string } | null; diff --git a/src/prefabs/types/helpers.ts b/src/prefabs/types/helpers.ts index a919d9da..1eeedaba 100644 --- a/src/prefabs/types/helpers.ts +++ b/src/prefabs/types/helpers.ts @@ -17,4 +17,5 @@ export interface PreparedInput { variableId: string; }; isRelational: boolean; + isMultiRelational: boolean; }