@trackunit/custom-field-api 0.1.246 → 0.1.248

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,16 +1,16 @@
1
1
  {
2
2
  "name": "@trackunit/custom-field-api",
3
- "version": "0.1.246",
3
+ "version": "0.1.248",
4
4
  "engines": {
5
5
  "node": ">=20.x"
6
6
  },
7
7
  "repository": "https://github.com/Trackunit/manager",
8
8
  "license": "SEE LICENSE IN LICENSE.txt",
9
9
  "dependencies": {
10
- "@graphql-codegen/cli": "^5.0.0",
10
+ "@graphql-codegen/cli": "^5.0.3",
11
11
  "@trackunit/iris-app-build-utilities": "*",
12
12
  "@graphql-typed-document-node/core": "^3.2.0",
13
- "graphql": "^16.8.1",
13
+ "graphql": "^16.9.0",
14
14
  "@trackunit/iris-app-api": "*",
15
15
  "@apollo/client": "3.10.4",
16
16
  "@trackunit/react-core-contexts-test": "*",
@@ -8,7 +8,11 @@ export type FragmentType<TDocumentType extends DocumentTypeDecoration<any, any>>
8
8
  };
9
9
  } : never : never : never;
10
10
  export declare function getFragmentData<TType>(_documentNode: DocumentTypeDecoration<TType, any>, fragmentType: FragmentType<DocumentTypeDecoration<TType, any>>): TType;
11
+ export declare function getFragmentData<TType>(_documentNode: DocumentTypeDecoration<TType, any>, fragmentType: FragmentType<DocumentTypeDecoration<TType, any>> | undefined): TType | undefined;
12
+ export declare function getFragmentData<TType>(_documentNode: DocumentTypeDecoration<TType, any>, fragmentType: FragmentType<DocumentTypeDecoration<TType, any>> | null): TType | null;
11
13
  export declare function getFragmentData<TType>(_documentNode: DocumentTypeDecoration<TType, any>, fragmentType: FragmentType<DocumentTypeDecoration<TType, any>> | null | undefined): TType | null | undefined;
14
+ export declare function getFragmentData<TType>(_documentNode: DocumentTypeDecoration<TType, any>, fragmentType: Array<FragmentType<DocumentTypeDecoration<TType, any>>>): Array<TType>;
15
+ export declare function getFragmentData<TType>(_documentNode: DocumentTypeDecoration<TType, any>, fragmentType: Array<FragmentType<DocumentTypeDecoration<TType, any>>> | null | undefined): Array<TType> | null | undefined;
12
16
  export declare function getFragmentData<TType>(_documentNode: DocumentTypeDecoration<TType, any>, fragmentType: ReadonlyArray<FragmentType<DocumentTypeDecoration<TType, any>>>): ReadonlyArray<TType>;
13
17
  export declare function getFragmentData<TType>(_documentNode: DocumentTypeDecoration<TType, any>, fragmentType: ReadonlyArray<FragmentType<DocumentTypeDecoration<TType, any>>> | null | undefined): ReadonlyArray<TType> | null | undefined;
14
18
  export declare function makeFragmentData<F extends DocumentTypeDecoration<any, any>, FT extends ResultOf<F>>(data: FT, _fragment: F): FragmentType<F>;
@@ -9,6 +9,7 @@ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/
9
9
  * 3. It does not support dead code elimination, so it will add unused operations.
10
10
  *
11
11
  * Therefore it is highly recommended to use the babel or swc plugin for production.
12
+ * Learn more about it here: https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#reducing-bundle-size
12
13
  */
13
14
  declare const documents: {
14
15
  "query GetCustomFieldsForAsset($entityId: ID!, $systemOfMeasurement: SystemOfMeasurement) {\n asset(id: $entityId) {\n customFields {\n edges {\n node {\n ...CustomFieldValueAndDefinition\n }\n }\n }\n }\n}\n\nquery GetCustomFieldsForSite($entityId: ID!, $systemOfMeasurement: SystemOfMeasurement) {\n site(id: $entityId) {\n customFields {\n edges {\n node {\n ...CustomFieldValueAndDefinition\n }\n }\n }\n }\n}\n\nquery GetCustomFieldsForAssetForIrisApp($entityId: ID!, $systemOfMeasurement: SystemOfMeasurement, $irisAppId: String!) {\n asset(id: $entityId) {\n customFields(owner: {ownerType: IRIS_APP, irisAppId: $irisAppId}) {\n edges {\n node {\n ...CustomFieldValueAndDefinition\n }\n }\n }\n }\n}\n\nquery GetCustomFieldsForSiteForIrisApp($entityId: ID!, $systemOfMeasurement: SystemOfMeasurement, $irisAppId: String!) {\n site(id: $entityId) {\n customFields(owner: {ownerType: IRIS_APP, irisAppId: $irisAppId}) {\n edges {\n node {\n ...CustomFieldValueAndDefinition\n }\n }\n }\n }\n}\n\nfragment CustomFieldValueAndDefinition on CustomFieldValueAndDefinition {\n __typename\n definition {\n __typename\n description\n entityType\n id\n key\n owner {\n irisAppId\n marketplaceEntry {\n name\n }\n ownerType\n }\n title\n translations {\n description\n title\n language\n }\n type\n uiEditable\n uiVisible\n ... on DropDownFieldDefinition {\n allValues\n multiSelect\n }\n ... on StringListFieldDefinition {\n itemMaximumLength\n itemMinimumLength\n pattern\n maximumItems\n }\n ... on NumberFieldDefinition {\n isInteger\n maximumNumber(systemOfMeasurement: $systemOfMeasurement)\n minimumNumber(systemOfMeasurement: $systemOfMeasurement)\n unitSi\n unitUs\n }\n ... on MonetaryFieldDefinition {\n currency\n maximumNumber\n minimumNumber\n }\n ... on StringFieldDefinition {\n maximumLength\n minimumLength\n pattern\n }\n }\n valueEditable\n ... on BooleanFieldValueAndDefinition {\n booleanValue\n }\n ... on DateFieldValueAndDefinition {\n dateValue\n }\n ... on DropDownFieldValueAndDefinition {\n stringArrayValue\n }\n ... on EmailFieldValueAndDefinition {\n stringValue\n }\n ... on JsonFieldValueAndDefinition {\n jsonValue\n }\n ... on NumberFieldValueAndDefinition {\n numberValue(systemOfMeasurement: $systemOfMeasurement)\n }\n ... on MonetaryFieldValueAndDefinition {\n numberValue\n }\n ... on PhoneNumberFieldValueAndDefinition {\n stringValue\n }\n ... on StringFieldValueAndDefinition {\n stringValue\n }\n ... on StringListFieldValueAndDefinition {\n stringArrayValue\n }\n ... on WebAddressFieldValueAndDefinition {\n stringValue\n }\n}\n\nquery GetCustomFieldDefinitions($entityType: CustomFieldEntityType = ASSET, $systemOfMeasurement: SystemOfMeasurement) {\n customFieldDefinitions(uiVisible: true, first: 100, entityType: $entityType) {\n edges {\n node {\n ...CustomFieldDefinition\n }\n }\n }\n}\n\nquery GetCustomFieldDefinitionsForIrisApp($entityType: CustomFieldEntityType = ASSET, $systemOfMeasurement: SystemOfMeasurement, $irisAppId: String!) {\n customFieldDefinitions(\n uiVisible: true\n first: 100\n entityType: $entityType\n owner: {ownerType: IRIS_APP, irisAppId: $irisAppId}\n ) {\n edges {\n node {\n ...CustomFieldDefinition\n }\n }\n }\n}\n\nfragment CustomFieldDefinition on CustomFieldDefinition {\n __typename\n description\n entityType\n id\n key\n owner {\n irisAppId\n marketplaceEntry {\n name\n }\n ownerType\n }\n title\n translations {\n description\n title\n language\n }\n type\n uiEditable\n uiVisible\n ... on DropDownFieldDefinition {\n allValues\n multiSelect\n }\n ... on NumberFieldDefinition {\n isInteger\n maximumNumber(systemOfMeasurement: $systemOfMeasurement)\n minimumNumber(systemOfMeasurement: $systemOfMeasurement)\n unitSi\n unitUs\n }\n ... on MonetaryFieldDefinition {\n currency\n maximumNumber\n minimumNumber\n }\n ... on StringFieldDefinition {\n maximumLength\n minimumLength\n pattern\n }\n}\n\nmutation UpdateCustomFieldValues($customFields: [SetCustomFieldValueInput!]!, $entityId: ID!, $entityType: CustomFieldEntityType!, $systemOfMeasurement: SystemOfMeasurement) {\n customFieldSetValues(\n input: {entityIds: [$entityId], entityType: $entityType, values: $customFields}\n systemOfMeasurement: $systemOfMeasurement\n ) {\n success\n fieldsWithInvalidValues {\n definitionId\n }\n }\n}": DocumentNode<types.GetCustomFieldsForAssetQuery, types.Exact<{
@@ -134,6 +134,7 @@ export declare const customFieldEntityType: {
134
134
  readonly ASSET: "ASSET";
135
135
  readonly CUSTOMER: "CUSTOMER";
136
136
  readonly GROUP: "GROUP";
137
+ readonly RENTAL_CONTRACT: "RENTAL_CONTRACT";
137
138
  readonly SITE: "SITE";
138
139
  };
139
140
  export type CustomFieldEntityType = (typeof customFieldEntityType)[keyof typeof customFieldEntityType];