@trackunit/custom-field-api 1.3.169 → 1.3.171
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/custom-field-api",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.171",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=22.x"
|
|
6
6
|
},
|
|
@@ -12,14 +12,14 @@
|
|
|
12
12
|
"graphql": "^16.10.0",
|
|
13
13
|
"@apollo/client": "3.13.8",
|
|
14
14
|
"react": "19.0.0",
|
|
15
|
-
"@trackunit/iris-app-build-utilities": "1.3.
|
|
16
|
-
"@trackunit/iris-app-api": "1.3.
|
|
17
|
-
"@trackunit/react-core-contexts-test": "1.3.
|
|
18
|
-
"@trackunit/shared-utils": "1.5.
|
|
19
|
-
"@trackunit/react-core-hooks": "1.3.
|
|
20
|
-
"@trackunit/iris-app-runtime-core": "1.4.
|
|
21
|
-
"@trackunit/react-core-contexts-api": "1.4.
|
|
22
|
-
"@trackunit/react-test-setup": "1.0.
|
|
15
|
+
"@trackunit/iris-app-build-utilities": "1.3.148",
|
|
16
|
+
"@trackunit/iris-app-api": "1.3.148",
|
|
17
|
+
"@trackunit/react-core-contexts-test": "1.3.155",
|
|
18
|
+
"@trackunit/shared-utils": "1.5.141",
|
|
19
|
+
"@trackunit/react-core-hooks": "1.3.154",
|
|
20
|
+
"@trackunit/iris-app-runtime-core": "1.4.151",
|
|
21
|
+
"@trackunit/react-core-contexts-api": "1.4.148",
|
|
22
|
+
"@trackunit/react-test-setup": "1.0.31"
|
|
23
23
|
},
|
|
24
24
|
"module": "./index.esm.js",
|
|
25
25
|
"main": "./index.cjs.js",
|
|
@@ -5,13 +5,13 @@ export type AllCustomFieldDefinition = CustomFieldDefinitionFragment;
|
|
|
5
5
|
interface UseAllCustomFieldDefinitionsProps {
|
|
6
6
|
entityType?: SupportedEntityTypes | null;
|
|
7
7
|
filterQuery?: string;
|
|
8
|
-
owners?: CustomFieldOwnerType
|
|
8
|
+
owners?: Array<CustomFieldOwnerType>;
|
|
9
9
|
systemOfMeasurement: SystemOfMeasurement | null;
|
|
10
10
|
onlyEditable?: boolean;
|
|
11
11
|
}
|
|
12
12
|
interface UseAllCustomFieldDefinitionsReturnValue {
|
|
13
13
|
loading: boolean;
|
|
14
|
-
definitions: AllCustomFieldDefinition
|
|
14
|
+
definitions: Array<AllCustomFieldDefinition>;
|
|
15
15
|
appNameFromId: (appId?: string | null) => string | null | undefined;
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
@@ -18,7 +18,7 @@ export interface UseAllCustomFieldsValueAndDefinitionProps {
|
|
|
18
18
|
}
|
|
19
19
|
export interface UseAllCustomFieldsValueAndDefinitionReturnValue {
|
|
20
20
|
loading: boolean;
|
|
21
|
-
fields: AllCustomFieldValueAndDefinition
|
|
21
|
+
fields: Array<AllCustomFieldValueAndDefinition>;
|
|
22
22
|
refetch: () => Promise<void>;
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
@@ -5,13 +5,13 @@ export type CustomFieldDefinition = CustomFieldDefinitionFragment;
|
|
|
5
5
|
interface UseCustomFieldDefinitionsProps {
|
|
6
6
|
entityType?: SupportedEntityTypes;
|
|
7
7
|
filterQuery?: string;
|
|
8
|
-
owners?: CustomFieldOwnerType
|
|
8
|
+
owners?: Array<CustomFieldOwnerType>;
|
|
9
9
|
systemOfMeasurement: SystemOfMeasurement | null;
|
|
10
10
|
onlyEditable?: boolean;
|
|
11
11
|
}
|
|
12
12
|
interface UseCustomFieldDefinitionsReturnValue {
|
|
13
13
|
loading: boolean;
|
|
14
|
-
definitions: CustomFieldDefinition
|
|
14
|
+
definitions: Array<CustomFieldDefinition>;
|
|
15
15
|
appNameFromId: (appId?: string | null) => string | null | undefined;
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
@@ -18,7 +18,7 @@ export interface UseCustomFieldsValueAndDefinitionProps {
|
|
|
18
18
|
}
|
|
19
19
|
export interface UseCustomFieldsValueAndDefinitionReturnValue {
|
|
20
20
|
loading: boolean;
|
|
21
|
-
fields: CustomFieldValueAndDefinition
|
|
21
|
+
fields: Array<CustomFieldValueAndDefinition>;
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
24
|
* Custom hook to fetch custom fields and definitions for a specified entity.
|
|
@@ -4,7 +4,7 @@ import { CustomFieldValueAndDefinition } from "./useCustomFieldsValueAndDefiniti
|
|
|
4
4
|
/**
|
|
5
5
|
* Execute custom fields update from form data
|
|
6
6
|
*/
|
|
7
|
-
export declare const useUpdateCustomFieldValues: (entityId: string, entityType: EntityType, customFields: CustomFieldValueAndDefinition
|
|
7
|
+
export declare const useUpdateCustomFieldValues: (entityId: string, entityType: EntityType, customFields: Array<CustomFieldValueAndDefinition>, systemOfMeasurement?: SystemOfMeasurementType) => {
|
|
8
8
|
updateCustomFields: (data: Record<string, unknown>) => Promise<import("@apollo/client").FetchResult<import("./generated/graphql-api/graphql").UpdateCustomFieldValuesMutation>>;
|
|
9
9
|
result: import("./generated/graphql-api/graphql").UpdateCustomFieldValuesMutation | null | undefined;
|
|
10
10
|
inProgress: boolean;
|