@trackunit/custom-field-api 0.1.23 → 0.1.25
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
|
@@ -13,7 +13,7 @@ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/
|
|
|
13
13
|
declare const documents: {
|
|
14
14
|
"query GetCustomFieldsForAsset($entityId: String!, $systemOfMeasurement: SystemOfMeasurement) {\n asset(id: $entityId) {\n customFields(systemOfMeasurement: $systemOfMeasurement) {\n edges {\n node {\n ...CustomFieldValueAndDefinition\n }\n }\n }\n }\n}\n\nquery GetCustomFieldsForSite($entityId: ID!, $systemOfMeasurement: SystemOfMeasurement) {\n site(id: $entityId) {\n customFields(systemOfMeasurement: $systemOfMeasurement) {\n edges {\n node {\n ...CustomFieldValueAndDefinition\n }\n }\n }\n }\n}\n\nfragment CustomFieldValueAndDefinition on CustomFieldValueAndDefinition {\n __typename\n type\n definition {\n definitionId\n owner {\n irisAppId\n marketplaceEntry {\n name\n }\n }\n entityType\n title\n description\n uiVisible\n uiEditable\n key\n }\n ... on BooleanFieldValueAndDefinition {\n booleanValue\n }\n ... on DateFieldValueAndDefinition {\n dateValue\n }\n ... on DropDownFieldValueAndDefinition {\n stringArrayValue\n definition {\n allValues\n multiSelect\n }\n }\n ... on EmailFieldValueAndDefinition {\n stringValue\n }\n ... on JsonFieldValueAndDefinition {\n jsonValue\n }\n ... on NumberFieldValueAndDefinition {\n numberValue\n definition {\n minimumNumber\n maximumNumber\n unitSi\n unitUs\n isInteger\n }\n }\n ... on MonetaryFieldValueAndDefinition {\n numberValue\n definition {\n minimumNumber\n maximumNumber\n currency\n }\n }\n ... on PhoneNumberFieldValueAndDefinition {\n stringValue\n }\n ... on StringFieldValueAndDefinition {\n stringValue\n definition {\n maximumLength\n minimumLength\n pattern\n }\n }\n ... on WebAddressFieldValueAndDefinition {\n stringValue\n }\n}\n\nquery GetCustomFieldDefinitions($entityType: CustomFieldEntityType = ASSET) {\n customFieldDefinitions(uiVisible: true, first: 100, entityType: $entityType) {\n edges {\n node {\n ...CustomFieldDefinition\n }\n }\n pageInfo {\n count\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n}\n\nfragment CustomFieldDefinition on CustomFieldDefinition {\n definitionId\n translations {\n description\n title\n language\n }\n owner {\n ownerType\n }\n type\n}": DocumentNode<types.GetCustomFieldsForAssetQuery, types.Exact<{
|
|
15
15
|
entityId: string;
|
|
16
|
-
systemOfMeasurement
|
|
16
|
+
systemOfMeasurement: types.InputMaybe<types.SystemOfMeasurement>;
|
|
17
17
|
}>>;
|
|
18
18
|
};
|
|
19
19
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TypedDocumentNode as DocumentNode } from "@graphql-typed-document-node/core";
|
|
2
2
|
import type { PublicIrisAppManifest } from "@trackunit/iris-app-api";
|
|
3
3
|
export type Maybe<T> = T | null;
|
|
4
|
-
export type InputMaybe<T> = Maybe<T
|
|
4
|
+
export type InputMaybe<T> = Maybe<T> | undefined;
|
|
5
5
|
export type Exact<T extends {
|
|
6
6
|
[key: string]: unknown;
|
|
7
7
|
}> = {
|
|
@@ -86,99 +86,99 @@ export type Scalars = {
|
|
|
86
86
|
};
|
|
87
87
|
};
|
|
88
88
|
export declare const customFieldEntityType: {
|
|
89
|
-
readonly
|
|
90
|
-
readonly
|
|
91
|
-
readonly
|
|
92
|
-
readonly
|
|
89
|
+
readonly ACCOUNT: "ACCOUNT";
|
|
90
|
+
readonly ASSET: "ASSET";
|
|
91
|
+
readonly GROUP: "GROUP";
|
|
92
|
+
readonly SITE: "SITE";
|
|
93
93
|
};
|
|
94
94
|
export type CustomFieldEntityType = (typeof customFieldEntityType)[keyof typeof customFieldEntityType];
|
|
95
95
|
export declare const customFieldOwnerType: {
|
|
96
|
-
readonly
|
|
97
|
-
readonly
|
|
98
|
-
readonly
|
|
96
|
+
readonly ACCOUNT: "ACCOUNT";
|
|
97
|
+
readonly IRIS_APP: "IRIS_APP";
|
|
98
|
+
readonly TRACKUNIT: "TRACKUNIT";
|
|
99
99
|
};
|
|
100
100
|
export type CustomFieldOwnerType = (typeof customFieldOwnerType)[keyof typeof customFieldOwnerType];
|
|
101
101
|
export declare const customFieldType: {
|
|
102
|
-
readonly
|
|
103
|
-
readonly
|
|
104
|
-
readonly
|
|
105
|
-
readonly
|
|
106
|
-
readonly
|
|
107
|
-
readonly
|
|
108
|
-
readonly
|
|
109
|
-
readonly
|
|
110
|
-
readonly
|
|
111
|
-
readonly
|
|
102
|
+
readonly BOOLEAN: "BOOLEAN";
|
|
103
|
+
readonly DATE: "DATE";
|
|
104
|
+
readonly DROPDOWN: "DROPDOWN";
|
|
105
|
+
readonly EMAIL: "EMAIL";
|
|
106
|
+
readonly JSON: "JSON";
|
|
107
|
+
readonly MONETARY: "MONETARY";
|
|
108
|
+
readonly NUMBER: "NUMBER";
|
|
109
|
+
readonly PHONE_NUMBER: "PHONE_NUMBER";
|
|
110
|
+
readonly STRING: "STRING";
|
|
111
|
+
readonly WEB_ADDRESS: "WEB_ADDRESS";
|
|
112
112
|
};
|
|
113
113
|
export type CustomFieldType = (typeof customFieldType)[keyof typeof customFieldType];
|
|
114
114
|
export declare const systemOfMeasurement: {
|
|
115
|
-
readonly
|
|
116
|
-
readonly
|
|
115
|
+
readonly SI: "SI";
|
|
116
|
+
readonly US_CUSTOMARY: "US_CUSTOMARY";
|
|
117
117
|
};
|
|
118
118
|
export type SystemOfMeasurement = (typeof systemOfMeasurement)[keyof typeof systemOfMeasurement];
|
|
119
119
|
export declare const unitSi: {
|
|
120
|
-
readonly
|
|
121
|
-
readonly
|
|
122
|
-
readonly
|
|
123
|
-
readonly
|
|
124
|
-
readonly
|
|
125
|
-
readonly
|
|
126
|
-
readonly
|
|
127
|
-
readonly
|
|
128
|
-
readonly
|
|
129
|
-
readonly
|
|
130
|
-
readonly
|
|
131
|
-
readonly
|
|
132
|
-
readonly
|
|
133
|
-
readonly
|
|
134
|
-
readonly
|
|
135
|
-
readonly
|
|
136
|
-
readonly
|
|
137
|
-
readonly
|
|
138
|
-
readonly
|
|
139
|
-
readonly
|
|
140
|
-
readonly
|
|
141
|
-
readonly
|
|
142
|
-
readonly
|
|
143
|
-
readonly
|
|
144
|
-
readonly
|
|
120
|
+
readonly bar: "bar";
|
|
121
|
+
readonly centimetre: "centimetre";
|
|
122
|
+
readonly cubic_metre: "cubic_metre";
|
|
123
|
+
readonly gram: "gram";
|
|
124
|
+
readonly hectare: "hectare";
|
|
125
|
+
readonly hour: "hour";
|
|
126
|
+
readonly kilogram: "kilogram";
|
|
127
|
+
readonly kilogram_per_hour: "kilogram_per_hour";
|
|
128
|
+
readonly kilogram_per_second: "kilogram_per_second";
|
|
129
|
+
readonly kilometre: "kilometre";
|
|
130
|
+
readonly kilometre_per_hour: "kilometre_per_hour";
|
|
131
|
+
readonly kilopascal: "kilopascal";
|
|
132
|
+
readonly kilowatt: "kilowatt";
|
|
133
|
+
readonly kilowatthour: "kilowatthour";
|
|
134
|
+
readonly litre: "litre";
|
|
135
|
+
readonly metre: "metre";
|
|
136
|
+
readonly metre_per_second: "metre_per_second";
|
|
137
|
+
readonly metre_per_second_squared: "metre_per_second_squared";
|
|
138
|
+
readonly millimetre: "millimetre";
|
|
139
|
+
readonly newton: "newton";
|
|
140
|
+
readonly pascal: "pascal";
|
|
141
|
+
readonly square_kilometre: "square_kilometre";
|
|
142
|
+
readonly square_metre: "square_metre";
|
|
143
|
+
readonly ton: "ton";
|
|
144
|
+
readonly watt: "watt";
|
|
145
145
|
};
|
|
146
146
|
export type UnitSi = (typeof unitSi)[keyof typeof unitSi];
|
|
147
147
|
export declare const unitUs: {
|
|
148
|
-
readonly
|
|
149
|
-
readonly
|
|
150
|
-
readonly
|
|
151
|
-
readonly
|
|
152
|
-
readonly
|
|
153
|
-
readonly
|
|
154
|
-
readonly
|
|
155
|
-
readonly
|
|
156
|
-
readonly
|
|
157
|
-
readonly
|
|
158
|
-
readonly
|
|
159
|
-
readonly
|
|
160
|
-
readonly
|
|
161
|
-
readonly
|
|
162
|
-
readonly
|
|
148
|
+
readonly acre: "acre";
|
|
149
|
+
readonly cubic_foot: "cubic_foot";
|
|
150
|
+
readonly foot: "foot";
|
|
151
|
+
readonly gallon_liquid: "gallon_liquid";
|
|
152
|
+
readonly inch: "inch";
|
|
153
|
+
readonly mile: "mile";
|
|
154
|
+
readonly mile_per_hour: "mile_per_hour";
|
|
155
|
+
readonly ounce: "ounce";
|
|
156
|
+
readonly pound: "pound";
|
|
157
|
+
readonly pound_per_hour: "pound_per_hour";
|
|
158
|
+
readonly pound_per_second: "pound_per_second";
|
|
159
|
+
readonly pound_per_square_inch: "pound_per_square_inch";
|
|
160
|
+
readonly square_foot: "square_foot";
|
|
161
|
+
readonly ton_us: "ton_us";
|
|
162
|
+
readonly yard: "yard";
|
|
163
163
|
};
|
|
164
164
|
export type UnitUs = (typeof unitUs)[keyof typeof unitUs];
|
|
165
165
|
type CustomFieldValueAndDefinition_BooleanFieldValueAndDefinition_Fragment = {
|
|
166
166
|
__typename: "BooleanFieldValueAndDefinition";
|
|
167
|
-
booleanValue
|
|
167
|
+
booleanValue: boolean | null;
|
|
168
168
|
type: CustomFieldType;
|
|
169
169
|
definition: {
|
|
170
170
|
__typename?: "BooleanFieldDefinition";
|
|
171
171
|
definitionId: string;
|
|
172
|
-
entityType
|
|
173
|
-
title
|
|
174
|
-
description
|
|
175
|
-
uiVisible
|
|
176
|
-
uiEditable
|
|
177
|
-
key
|
|
178
|
-
owner
|
|
172
|
+
entityType: CustomFieldEntityType | null;
|
|
173
|
+
title: string | null;
|
|
174
|
+
description: string | null;
|
|
175
|
+
uiVisible: boolean | null;
|
|
176
|
+
uiEditable: boolean | null;
|
|
177
|
+
key: string | null;
|
|
178
|
+
owner: {
|
|
179
179
|
__typename?: "CustomFieldOwner";
|
|
180
|
-
irisAppId
|
|
181
|
-
marketplaceEntry
|
|
180
|
+
irisAppId: string | null;
|
|
181
|
+
marketplaceEntry: {
|
|
182
182
|
__typename?: "MarketplaceEntry";
|
|
183
183
|
name: string;
|
|
184
184
|
} | null;
|
|
@@ -189,21 +189,21 @@ type CustomFieldValueAndDefinition_BooleanFieldValueAndDefinition_Fragment = {
|
|
|
189
189
|
};
|
|
190
190
|
type CustomFieldValueAndDefinition_DateFieldValueAndDefinition_Fragment = {
|
|
191
191
|
__typename: "DateFieldValueAndDefinition";
|
|
192
|
-
dateValue
|
|
192
|
+
dateValue: string | null;
|
|
193
193
|
type: CustomFieldType;
|
|
194
194
|
definition: {
|
|
195
195
|
__typename?: "DateFieldDefinition";
|
|
196
196
|
definitionId: string;
|
|
197
|
-
entityType
|
|
198
|
-
title
|
|
199
|
-
description
|
|
200
|
-
uiVisible
|
|
201
|
-
uiEditable
|
|
202
|
-
key
|
|
203
|
-
owner
|
|
197
|
+
entityType: CustomFieldEntityType | null;
|
|
198
|
+
title: string | null;
|
|
199
|
+
description: string | null;
|
|
200
|
+
uiVisible: boolean | null;
|
|
201
|
+
uiEditable: boolean | null;
|
|
202
|
+
key: string | null;
|
|
203
|
+
owner: {
|
|
204
204
|
__typename?: "CustomFieldOwner";
|
|
205
|
-
irisAppId
|
|
206
|
-
marketplaceEntry
|
|
205
|
+
irisAppId: string | null;
|
|
206
|
+
marketplaceEntry: {
|
|
207
207
|
__typename?: "MarketplaceEntry";
|
|
208
208
|
name: string;
|
|
209
209
|
} | null;
|
|
@@ -214,23 +214,23 @@ type CustomFieldValueAndDefinition_DateFieldValueAndDefinition_Fragment = {
|
|
|
214
214
|
};
|
|
215
215
|
type CustomFieldValueAndDefinition_DropDownFieldValueAndDefinition_Fragment = {
|
|
216
216
|
__typename: "DropDownFieldValueAndDefinition";
|
|
217
|
-
stringArrayValue
|
|
217
|
+
stringArrayValue: Array<string> | null;
|
|
218
218
|
type: CustomFieldType;
|
|
219
219
|
definition: {
|
|
220
220
|
__typename?: "DropDownFieldDefinition";
|
|
221
|
-
allValues
|
|
222
|
-
multiSelect
|
|
221
|
+
allValues: Array<string> | null;
|
|
222
|
+
multiSelect: boolean | null;
|
|
223
223
|
definitionId: string;
|
|
224
|
-
entityType
|
|
225
|
-
title
|
|
226
|
-
description
|
|
227
|
-
uiVisible
|
|
228
|
-
uiEditable
|
|
229
|
-
key
|
|
230
|
-
owner
|
|
224
|
+
entityType: CustomFieldEntityType | null;
|
|
225
|
+
title: string | null;
|
|
226
|
+
description: string | null;
|
|
227
|
+
uiVisible: boolean | null;
|
|
228
|
+
uiEditable: boolean | null;
|
|
229
|
+
key: string | null;
|
|
230
|
+
owner: {
|
|
231
231
|
__typename?: "CustomFieldOwner";
|
|
232
|
-
irisAppId
|
|
233
|
-
marketplaceEntry
|
|
232
|
+
irisAppId: string | null;
|
|
233
|
+
marketplaceEntry: {
|
|
234
234
|
__typename?: "MarketplaceEntry";
|
|
235
235
|
name: string;
|
|
236
236
|
} | null;
|
|
@@ -241,21 +241,21 @@ type CustomFieldValueAndDefinition_DropDownFieldValueAndDefinition_Fragment = {
|
|
|
241
241
|
};
|
|
242
242
|
type CustomFieldValueAndDefinition_EmailFieldValueAndDefinition_Fragment = {
|
|
243
243
|
__typename: "EmailFieldValueAndDefinition";
|
|
244
|
-
stringValue
|
|
244
|
+
stringValue: string | null;
|
|
245
245
|
type: CustomFieldType;
|
|
246
246
|
definition: {
|
|
247
247
|
__typename?: "EmailFieldDefinition";
|
|
248
248
|
definitionId: string;
|
|
249
|
-
entityType
|
|
250
|
-
title
|
|
251
|
-
description
|
|
252
|
-
uiVisible
|
|
253
|
-
uiEditable
|
|
254
|
-
key
|
|
255
|
-
owner
|
|
249
|
+
entityType: CustomFieldEntityType | null;
|
|
250
|
+
title: string | null;
|
|
251
|
+
description: string | null;
|
|
252
|
+
uiVisible: boolean | null;
|
|
253
|
+
uiEditable: boolean | null;
|
|
254
|
+
key: string | null;
|
|
255
|
+
owner: {
|
|
256
256
|
__typename?: "CustomFieldOwner";
|
|
257
|
-
irisAppId
|
|
258
|
-
marketplaceEntry
|
|
257
|
+
irisAppId: string | null;
|
|
258
|
+
marketplaceEntry: {
|
|
259
259
|
__typename?: "MarketplaceEntry";
|
|
260
260
|
name: string;
|
|
261
261
|
} | null;
|
|
@@ -266,21 +266,21 @@ type CustomFieldValueAndDefinition_EmailFieldValueAndDefinition_Fragment = {
|
|
|
266
266
|
};
|
|
267
267
|
type CustomFieldValueAndDefinition_JsonFieldValueAndDefinition_Fragment = {
|
|
268
268
|
__typename: "JsonFieldValueAndDefinition";
|
|
269
|
-
jsonValue
|
|
269
|
+
jsonValue: any | null;
|
|
270
270
|
type: CustomFieldType;
|
|
271
271
|
definition: {
|
|
272
272
|
__typename?: "JsonFieldDefinition";
|
|
273
273
|
definitionId: string;
|
|
274
|
-
entityType
|
|
275
|
-
title
|
|
276
|
-
description
|
|
277
|
-
uiVisible
|
|
278
|
-
uiEditable
|
|
279
|
-
key
|
|
280
|
-
owner
|
|
274
|
+
entityType: CustomFieldEntityType | null;
|
|
275
|
+
title: string | null;
|
|
276
|
+
description: string | null;
|
|
277
|
+
uiVisible: boolean | null;
|
|
278
|
+
uiEditable: boolean | null;
|
|
279
|
+
key: string | null;
|
|
280
|
+
owner: {
|
|
281
281
|
__typename?: "CustomFieldOwner";
|
|
282
|
-
irisAppId
|
|
283
|
-
marketplaceEntry
|
|
282
|
+
irisAppId: string | null;
|
|
283
|
+
marketplaceEntry: {
|
|
284
284
|
__typename?: "MarketplaceEntry";
|
|
285
285
|
name: string;
|
|
286
286
|
} | null;
|
|
@@ -291,24 +291,24 @@ type CustomFieldValueAndDefinition_JsonFieldValueAndDefinition_Fragment = {
|
|
|
291
291
|
};
|
|
292
292
|
type CustomFieldValueAndDefinition_MonetaryFieldValueAndDefinition_Fragment = {
|
|
293
293
|
__typename: "MonetaryFieldValueAndDefinition";
|
|
294
|
-
numberValue
|
|
294
|
+
numberValue: number | null;
|
|
295
295
|
type: CustomFieldType;
|
|
296
296
|
definition: {
|
|
297
297
|
__typename?: "MonetaryFieldDefinition";
|
|
298
|
-
minimumNumber
|
|
299
|
-
maximumNumber
|
|
300
|
-
currency
|
|
298
|
+
minimumNumber: number | null;
|
|
299
|
+
maximumNumber: number | null;
|
|
300
|
+
currency: string | null;
|
|
301
301
|
definitionId: string;
|
|
302
|
-
entityType
|
|
303
|
-
title
|
|
304
|
-
description
|
|
305
|
-
uiVisible
|
|
306
|
-
uiEditable
|
|
307
|
-
key
|
|
308
|
-
owner
|
|
302
|
+
entityType: CustomFieldEntityType | null;
|
|
303
|
+
title: string | null;
|
|
304
|
+
description: string | null;
|
|
305
|
+
uiVisible: boolean | null;
|
|
306
|
+
uiEditable: boolean | null;
|
|
307
|
+
key: string | null;
|
|
308
|
+
owner: {
|
|
309
309
|
__typename?: "CustomFieldOwner";
|
|
310
|
-
irisAppId
|
|
311
|
-
marketplaceEntry
|
|
310
|
+
irisAppId: string | null;
|
|
311
|
+
marketplaceEntry: {
|
|
312
312
|
__typename?: "MarketplaceEntry";
|
|
313
313
|
name: string;
|
|
314
314
|
} | null;
|
|
@@ -319,26 +319,26 @@ type CustomFieldValueAndDefinition_MonetaryFieldValueAndDefinition_Fragment = {
|
|
|
319
319
|
};
|
|
320
320
|
type CustomFieldValueAndDefinition_NumberFieldValueAndDefinition_Fragment = {
|
|
321
321
|
__typename: "NumberFieldValueAndDefinition";
|
|
322
|
-
numberValue
|
|
322
|
+
numberValue: number | null;
|
|
323
323
|
type: CustomFieldType;
|
|
324
324
|
definition: {
|
|
325
325
|
__typename?: "NumberFieldDefinition";
|
|
326
|
-
minimumNumber
|
|
327
|
-
maximumNumber
|
|
328
|
-
unitSi
|
|
329
|
-
unitUs
|
|
330
|
-
isInteger
|
|
326
|
+
minimumNumber: number | null;
|
|
327
|
+
maximumNumber: number | null;
|
|
328
|
+
unitSi: UnitSi | null;
|
|
329
|
+
unitUs: UnitUs | null;
|
|
330
|
+
isInteger: boolean | null;
|
|
331
331
|
definitionId: string;
|
|
332
|
-
entityType
|
|
333
|
-
title
|
|
334
|
-
description
|
|
335
|
-
uiVisible
|
|
336
|
-
uiEditable
|
|
337
|
-
key
|
|
338
|
-
owner
|
|
332
|
+
entityType: CustomFieldEntityType | null;
|
|
333
|
+
title: string | null;
|
|
334
|
+
description: string | null;
|
|
335
|
+
uiVisible: boolean | null;
|
|
336
|
+
uiEditable: boolean | null;
|
|
337
|
+
key: string | null;
|
|
338
|
+
owner: {
|
|
339
339
|
__typename?: "CustomFieldOwner";
|
|
340
|
-
irisAppId
|
|
341
|
-
marketplaceEntry
|
|
340
|
+
irisAppId: string | null;
|
|
341
|
+
marketplaceEntry: {
|
|
342
342
|
__typename?: "MarketplaceEntry";
|
|
343
343
|
name: string;
|
|
344
344
|
} | null;
|
|
@@ -349,21 +349,21 @@ type CustomFieldValueAndDefinition_NumberFieldValueAndDefinition_Fragment = {
|
|
|
349
349
|
};
|
|
350
350
|
type CustomFieldValueAndDefinition_PhoneNumberFieldValueAndDefinition_Fragment = {
|
|
351
351
|
__typename: "PhoneNumberFieldValueAndDefinition";
|
|
352
|
-
stringValue
|
|
352
|
+
stringValue: string | null;
|
|
353
353
|
type: CustomFieldType;
|
|
354
354
|
definition: {
|
|
355
355
|
__typename?: "PhoneNumberFieldDefinition";
|
|
356
356
|
definitionId: string;
|
|
357
|
-
entityType
|
|
358
|
-
title
|
|
359
|
-
description
|
|
360
|
-
uiVisible
|
|
361
|
-
uiEditable
|
|
362
|
-
key
|
|
363
|
-
owner
|
|
357
|
+
entityType: CustomFieldEntityType | null;
|
|
358
|
+
title: string | null;
|
|
359
|
+
description: string | null;
|
|
360
|
+
uiVisible: boolean | null;
|
|
361
|
+
uiEditable: boolean | null;
|
|
362
|
+
key: string | null;
|
|
363
|
+
owner: {
|
|
364
364
|
__typename?: "CustomFieldOwner";
|
|
365
|
-
irisAppId
|
|
366
|
-
marketplaceEntry
|
|
365
|
+
irisAppId: string | null;
|
|
366
|
+
marketplaceEntry: {
|
|
367
367
|
__typename?: "MarketplaceEntry";
|
|
368
368
|
name: string;
|
|
369
369
|
} | null;
|
|
@@ -374,24 +374,24 @@ type CustomFieldValueAndDefinition_PhoneNumberFieldValueAndDefinition_Fragment =
|
|
|
374
374
|
};
|
|
375
375
|
type CustomFieldValueAndDefinition_StringFieldValueAndDefinition_Fragment = {
|
|
376
376
|
__typename: "StringFieldValueAndDefinition";
|
|
377
|
-
stringValue
|
|
377
|
+
stringValue: string | null;
|
|
378
378
|
type: CustomFieldType;
|
|
379
379
|
definition: {
|
|
380
380
|
__typename?: "StringFieldDefinition";
|
|
381
|
-
maximumLength
|
|
382
|
-
minimumLength
|
|
383
|
-
pattern
|
|
381
|
+
maximumLength: number | null;
|
|
382
|
+
minimumLength: number | null;
|
|
383
|
+
pattern: string | null;
|
|
384
384
|
definitionId: string;
|
|
385
|
-
entityType
|
|
386
|
-
title
|
|
387
|
-
description
|
|
388
|
-
uiVisible
|
|
389
|
-
uiEditable
|
|
390
|
-
key
|
|
391
|
-
owner
|
|
385
|
+
entityType: CustomFieldEntityType | null;
|
|
386
|
+
title: string | null;
|
|
387
|
+
description: string | null;
|
|
388
|
+
uiVisible: boolean | null;
|
|
389
|
+
uiEditable: boolean | null;
|
|
390
|
+
key: string | null;
|
|
391
|
+
owner: {
|
|
392
392
|
__typename?: "CustomFieldOwner";
|
|
393
|
-
irisAppId
|
|
394
|
-
marketplaceEntry
|
|
393
|
+
irisAppId: string | null;
|
|
394
|
+
marketplaceEntry: {
|
|
395
395
|
__typename?: "MarketplaceEntry";
|
|
396
396
|
name: string;
|
|
397
397
|
} | null;
|
|
@@ -402,21 +402,21 @@ type CustomFieldValueAndDefinition_StringFieldValueAndDefinition_Fragment = {
|
|
|
402
402
|
};
|
|
403
403
|
type CustomFieldValueAndDefinition_WebAddressFieldValueAndDefinition_Fragment = {
|
|
404
404
|
__typename: "WebAddressFieldValueAndDefinition";
|
|
405
|
-
stringValue
|
|
405
|
+
stringValue: string | null;
|
|
406
406
|
type: CustomFieldType;
|
|
407
407
|
definition: {
|
|
408
408
|
__typename?: "WebAddressFieldDefinition";
|
|
409
409
|
definitionId: string;
|
|
410
|
-
entityType
|
|
411
|
-
title
|
|
412
|
-
description
|
|
413
|
-
uiVisible
|
|
414
|
-
uiEditable
|
|
415
|
-
key
|
|
416
|
-
owner
|
|
410
|
+
entityType: CustomFieldEntityType | null;
|
|
411
|
+
title: string | null;
|
|
412
|
+
description: string | null;
|
|
413
|
+
uiVisible: boolean | null;
|
|
414
|
+
uiEditable: boolean | null;
|
|
415
|
+
key: string | null;
|
|
416
|
+
owner: {
|
|
417
417
|
__typename?: "CustomFieldOwner";
|
|
418
|
-
irisAppId
|
|
419
|
-
marketplaceEntry
|
|
418
|
+
irisAppId: string | null;
|
|
419
|
+
marketplaceEntry: {
|
|
420
420
|
__typename?: "MarketplaceEntry";
|
|
421
421
|
name: string;
|
|
422
422
|
} | null;
|
|
@@ -429,13 +429,13 @@ type CustomFieldDefinition_BooleanFieldDefinition_Fragment = {
|
|
|
429
429
|
__typename?: "BooleanFieldDefinition";
|
|
430
430
|
definitionId: string;
|
|
431
431
|
type: CustomFieldType;
|
|
432
|
-
translations
|
|
432
|
+
translations: Array<{
|
|
433
433
|
__typename?: "CustomFieldDefinitionTranslations";
|
|
434
|
-
description
|
|
435
|
-
title
|
|
436
|
-
language
|
|
434
|
+
description: string | null;
|
|
435
|
+
title: string | null;
|
|
436
|
+
language: string | null;
|
|
437
437
|
} | null> | null;
|
|
438
|
-
owner
|
|
438
|
+
owner: {
|
|
439
439
|
__typename?: "CustomFieldOwner";
|
|
440
440
|
ownerType: CustomFieldOwnerType;
|
|
441
441
|
} | null;
|
|
@@ -446,13 +446,13 @@ type CustomFieldDefinition_DateFieldDefinition_Fragment = {
|
|
|
446
446
|
__typename?: "DateFieldDefinition";
|
|
447
447
|
definitionId: string;
|
|
448
448
|
type: CustomFieldType;
|
|
449
|
-
translations
|
|
449
|
+
translations: Array<{
|
|
450
450
|
__typename?: "CustomFieldDefinitionTranslations";
|
|
451
|
-
description
|
|
452
|
-
title
|
|
453
|
-
language
|
|
451
|
+
description: string | null;
|
|
452
|
+
title: string | null;
|
|
453
|
+
language: string | null;
|
|
454
454
|
} | null> | null;
|
|
455
|
-
owner
|
|
455
|
+
owner: {
|
|
456
456
|
__typename?: "CustomFieldOwner";
|
|
457
457
|
ownerType: CustomFieldOwnerType;
|
|
458
458
|
} | null;
|
|
@@ -463,13 +463,13 @@ type CustomFieldDefinition_DropDownFieldDefinition_Fragment = {
|
|
|
463
463
|
__typename?: "DropDownFieldDefinition";
|
|
464
464
|
definitionId: string;
|
|
465
465
|
type: CustomFieldType;
|
|
466
|
-
translations
|
|
466
|
+
translations: Array<{
|
|
467
467
|
__typename?: "CustomFieldDefinitionTranslations";
|
|
468
|
-
description
|
|
469
|
-
title
|
|
470
|
-
language
|
|
468
|
+
description: string | null;
|
|
469
|
+
title: string | null;
|
|
470
|
+
language: string | null;
|
|
471
471
|
} | null> | null;
|
|
472
|
-
owner
|
|
472
|
+
owner: {
|
|
473
473
|
__typename?: "CustomFieldOwner";
|
|
474
474
|
ownerType: CustomFieldOwnerType;
|
|
475
475
|
} | null;
|
|
@@ -480,13 +480,13 @@ type CustomFieldDefinition_EmailFieldDefinition_Fragment = {
|
|
|
480
480
|
__typename?: "EmailFieldDefinition";
|
|
481
481
|
definitionId: string;
|
|
482
482
|
type: CustomFieldType;
|
|
483
|
-
translations
|
|
483
|
+
translations: Array<{
|
|
484
484
|
__typename?: "CustomFieldDefinitionTranslations";
|
|
485
|
-
description
|
|
486
|
-
title
|
|
487
|
-
language
|
|
485
|
+
description: string | null;
|
|
486
|
+
title: string | null;
|
|
487
|
+
language: string | null;
|
|
488
488
|
} | null> | null;
|
|
489
|
-
owner
|
|
489
|
+
owner: {
|
|
490
490
|
__typename?: "CustomFieldOwner";
|
|
491
491
|
ownerType: CustomFieldOwnerType;
|
|
492
492
|
} | null;
|
|
@@ -497,13 +497,13 @@ type CustomFieldDefinition_JsonFieldDefinition_Fragment = {
|
|
|
497
497
|
__typename?: "JsonFieldDefinition";
|
|
498
498
|
definitionId: string;
|
|
499
499
|
type: CustomFieldType;
|
|
500
|
-
translations
|
|
500
|
+
translations: Array<{
|
|
501
501
|
__typename?: "CustomFieldDefinitionTranslations";
|
|
502
|
-
description
|
|
503
|
-
title
|
|
504
|
-
language
|
|
502
|
+
description: string | null;
|
|
503
|
+
title: string | null;
|
|
504
|
+
language: string | null;
|
|
505
505
|
} | null> | null;
|
|
506
|
-
owner
|
|
506
|
+
owner: {
|
|
507
507
|
__typename?: "CustomFieldOwner";
|
|
508
508
|
ownerType: CustomFieldOwnerType;
|
|
509
509
|
} | null;
|
|
@@ -514,13 +514,13 @@ type CustomFieldDefinition_MonetaryFieldDefinition_Fragment = {
|
|
|
514
514
|
__typename?: "MonetaryFieldDefinition";
|
|
515
515
|
definitionId: string;
|
|
516
516
|
type: CustomFieldType;
|
|
517
|
-
translations
|
|
517
|
+
translations: Array<{
|
|
518
518
|
__typename?: "CustomFieldDefinitionTranslations";
|
|
519
|
-
description
|
|
520
|
-
title
|
|
521
|
-
language
|
|
519
|
+
description: string | null;
|
|
520
|
+
title: string | null;
|
|
521
|
+
language: string | null;
|
|
522
522
|
} | null> | null;
|
|
523
|
-
owner
|
|
523
|
+
owner: {
|
|
524
524
|
__typename?: "CustomFieldOwner";
|
|
525
525
|
ownerType: CustomFieldOwnerType;
|
|
526
526
|
} | null;
|
|
@@ -531,13 +531,13 @@ type CustomFieldDefinition_NumberFieldDefinition_Fragment = {
|
|
|
531
531
|
__typename?: "NumberFieldDefinition";
|
|
532
532
|
definitionId: string;
|
|
533
533
|
type: CustomFieldType;
|
|
534
|
-
translations
|
|
534
|
+
translations: Array<{
|
|
535
535
|
__typename?: "CustomFieldDefinitionTranslations";
|
|
536
|
-
description
|
|
537
|
-
title
|
|
538
|
-
language
|
|
536
|
+
description: string | null;
|
|
537
|
+
title: string | null;
|
|
538
|
+
language: string | null;
|
|
539
539
|
} | null> | null;
|
|
540
|
-
owner
|
|
540
|
+
owner: {
|
|
541
541
|
__typename?: "CustomFieldOwner";
|
|
542
542
|
ownerType: CustomFieldOwnerType;
|
|
543
543
|
} | null;
|
|
@@ -548,13 +548,13 @@ type CustomFieldDefinition_PhoneNumberFieldDefinition_Fragment = {
|
|
|
548
548
|
__typename?: "PhoneNumberFieldDefinition";
|
|
549
549
|
definitionId: string;
|
|
550
550
|
type: CustomFieldType;
|
|
551
|
-
translations
|
|
551
|
+
translations: Array<{
|
|
552
552
|
__typename?: "CustomFieldDefinitionTranslations";
|
|
553
|
-
description
|
|
554
|
-
title
|
|
555
|
-
language
|
|
553
|
+
description: string | null;
|
|
554
|
+
title: string | null;
|
|
555
|
+
language: string | null;
|
|
556
556
|
} | null> | null;
|
|
557
|
-
owner
|
|
557
|
+
owner: {
|
|
558
558
|
__typename?: "CustomFieldOwner";
|
|
559
559
|
ownerType: CustomFieldOwnerType;
|
|
560
560
|
} | null;
|
|
@@ -565,13 +565,13 @@ type CustomFieldDefinition_StringFieldDefinition_Fragment = {
|
|
|
565
565
|
__typename?: "StringFieldDefinition";
|
|
566
566
|
definitionId: string;
|
|
567
567
|
type: CustomFieldType;
|
|
568
|
-
translations
|
|
568
|
+
translations: Array<{
|
|
569
569
|
__typename?: "CustomFieldDefinitionTranslations";
|
|
570
|
-
description
|
|
571
|
-
title
|
|
572
|
-
language
|
|
570
|
+
description: string | null;
|
|
571
|
+
title: string | null;
|
|
572
|
+
language: string | null;
|
|
573
573
|
} | null> | null;
|
|
574
|
-
owner
|
|
574
|
+
owner: {
|
|
575
575
|
__typename?: "CustomFieldOwner";
|
|
576
576
|
ownerType: CustomFieldOwnerType;
|
|
577
577
|
} | null;
|
|
@@ -582,13 +582,13 @@ type CustomFieldDefinition_WebAddressFieldDefinition_Fragment = {
|
|
|
582
582
|
__typename?: "WebAddressFieldDefinition";
|
|
583
583
|
definitionId: string;
|
|
584
584
|
type: CustomFieldType;
|
|
585
|
-
translations
|
|
585
|
+
translations: Array<{
|
|
586
586
|
__typename?: "CustomFieldDefinitionTranslations";
|
|
587
|
-
description
|
|
588
|
-
title
|
|
589
|
-
language
|
|
587
|
+
description: string | null;
|
|
588
|
+
title: string | null;
|
|
589
|
+
language: string | null;
|
|
590
590
|
} | null> | null;
|
|
591
|
-
owner
|
|
591
|
+
owner: {
|
|
592
592
|
__typename?: "CustomFieldOwner";
|
|
593
593
|
ownerType: CustomFieldOwnerType;
|
|
594
594
|
} | null;
|
|
@@ -597,17 +597,17 @@ type CustomFieldDefinition_WebAddressFieldDefinition_Fragment = {
|
|
|
597
597
|
};
|
|
598
598
|
export type GetCustomFieldsForAssetQueryVariables = Exact<{
|
|
599
599
|
entityId: Scalars["String"]["input"];
|
|
600
|
-
systemOfMeasurement
|
|
600
|
+
systemOfMeasurement: InputMaybe<SystemOfMeasurement>;
|
|
601
601
|
}>;
|
|
602
602
|
export type GetCustomFieldsForAssetQuery = {
|
|
603
603
|
__typename?: "Query";
|
|
604
|
-
asset
|
|
604
|
+
asset: {
|
|
605
605
|
__typename?: "Asset";
|
|
606
|
-
customFields
|
|
606
|
+
customFields: {
|
|
607
607
|
__typename?: "CustomFieldValueAndDefinitionConnection";
|
|
608
|
-
edges
|
|
608
|
+
edges: Array<{
|
|
609
609
|
__typename?: "CustomFieldValueAndDefinitionEdge";
|
|
610
|
-
node
|
|
610
|
+
node: ({
|
|
611
611
|
__typename?: "BooleanFieldValueAndDefinition";
|
|
612
612
|
} & {
|
|
613
613
|
" $fragmentRefs"?: {
|
|
@@ -674,17 +674,17 @@ export type GetCustomFieldsForAssetQuery = {
|
|
|
674
674
|
};
|
|
675
675
|
export type GetCustomFieldsForSiteQueryVariables = Exact<{
|
|
676
676
|
entityId: Scalars["ID"]["input"];
|
|
677
|
-
systemOfMeasurement
|
|
677
|
+
systemOfMeasurement: InputMaybe<SystemOfMeasurement>;
|
|
678
678
|
}>;
|
|
679
679
|
export type GetCustomFieldsForSiteQuery = {
|
|
680
680
|
__typename?: "Query";
|
|
681
|
-
site
|
|
681
|
+
site: {
|
|
682
682
|
__typename?: "Site";
|
|
683
|
-
customFields
|
|
683
|
+
customFields: {
|
|
684
684
|
__typename?: "CustomFieldValueAndDefinitionConnection";
|
|
685
|
-
edges
|
|
685
|
+
edges: Array<{
|
|
686
686
|
__typename?: "CustomFieldValueAndDefinitionEdge";
|
|
687
|
-
node
|
|
687
|
+
node: ({
|
|
688
688
|
__typename?: "BooleanFieldValueAndDefinition";
|
|
689
689
|
} & {
|
|
690
690
|
" $fragmentRefs"?: {
|
|
@@ -755,11 +755,11 @@ export type GetCustomFieldDefinitionsQueryVariables = Exact<{
|
|
|
755
755
|
}>;
|
|
756
756
|
export type GetCustomFieldDefinitionsQuery = {
|
|
757
757
|
__typename?: "Query";
|
|
758
|
-
customFieldDefinitions
|
|
758
|
+
customFieldDefinitions: {
|
|
759
759
|
__typename?: "CustomFieldDefinitionConnection";
|
|
760
|
-
edges
|
|
760
|
+
edges: Array<{
|
|
761
761
|
__typename?: "CustomFieldDefinitionEdge";
|
|
762
|
-
node
|
|
762
|
+
node: ({
|
|
763
763
|
__typename?: "BooleanFieldDefinition";
|
|
764
764
|
} & {
|
|
765
765
|
" $fragmentRefs"?: {
|
|
@@ -821,13 +821,13 @@ export type GetCustomFieldDefinitionsQuery = {
|
|
|
821
821
|
};
|
|
822
822
|
}) | null;
|
|
823
823
|
} | null> | null;
|
|
824
|
-
pageInfo
|
|
824
|
+
pageInfo: {
|
|
825
825
|
__typename?: "PageInfo";
|
|
826
|
-
count
|
|
827
|
-
endCursor
|
|
826
|
+
count: number | null;
|
|
827
|
+
endCursor: string | null;
|
|
828
828
|
hasNextPage: boolean;
|
|
829
829
|
hasPreviousPage: boolean;
|
|
830
|
-
startCursor
|
|
830
|
+
startCursor: string | null;
|
|
831
831
|
} | null;
|
|
832
832
|
} | null;
|
|
833
833
|
};
|
|
@@ -836,13 +836,13 @@ export declare const CustomFieldValueAndDefinitionFragmentDoc: DocumentNode<Cust
|
|
|
836
836
|
export declare const CustomFieldDefinitionFragmentDoc: DocumentNode<CustomFieldDefinitionFragment, unknown>;
|
|
837
837
|
export declare const GetCustomFieldsForAssetDocument: DocumentNode<GetCustomFieldsForAssetQuery, Exact<{
|
|
838
838
|
entityId: Scalars["String"]["input"];
|
|
839
|
-
systemOfMeasurement
|
|
839
|
+
systemOfMeasurement: InputMaybe<SystemOfMeasurement>;
|
|
840
840
|
}>>;
|
|
841
841
|
export declare const GetCustomFieldsForSiteDocument: DocumentNode<GetCustomFieldsForSiteQuery, Exact<{
|
|
842
842
|
entityId: Scalars["ID"]["input"];
|
|
843
|
-
systemOfMeasurement
|
|
843
|
+
systemOfMeasurement: InputMaybe<SystemOfMeasurement>;
|
|
844
844
|
}>>;
|
|
845
845
|
export declare const GetCustomFieldDefinitionsDocument: DocumentNode<GetCustomFieldDefinitionsQuery, Exact<{
|
|
846
|
-
entityType?: InputMaybe<CustomFieldEntityType
|
|
846
|
+
entityType?: InputMaybe<CustomFieldEntityType>;
|
|
847
847
|
}>>;
|
|
848
848
|
export {};
|
|
@@ -14,7 +14,7 @@ export declare const getCustomFieldValueAndDefinitionFromRelevantNode: (node?: C
|
|
|
14
14
|
export interface UseCustomFieldsValueAndDefinitionProps {
|
|
15
15
|
entityId?: string;
|
|
16
16
|
entityType?: SupportedEntityTypes;
|
|
17
|
-
systemOfMeasurement: SystemOfMeasurement;
|
|
17
|
+
systemOfMeasurement: SystemOfMeasurement | null;
|
|
18
18
|
}
|
|
19
19
|
export interface UseCustomFieldsValueAndDefinitionReturnValue {
|
|
20
20
|
loading: boolean;
|