@trackunit/iris-app-runtime-core-api 1.3.36 → 1.3.38

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/index.cjs.js CHANGED
@@ -1,18 +1,5 @@
1
1
  'use strict';
2
2
 
3
- const customFieldType = {
4
- BOOLEAN: "BOOLEAN",
5
- DATE: "DATE",
6
- DROPDOWN: "DROPDOWN",
7
- STRING_LIST: "STRING_LIST",
8
- EMAIL: "EMAIL",
9
- JSON: "JSON",
10
- MONETARY: "MONETARY",
11
- NUMBER: "NUMBER",
12
- PHONE_NUMBER: "PHONE_NUMBER",
13
- STRING: "STRING",
14
- WEB_ADDRESS: "WEB_ADDRESS",
15
- };
16
3
  const UnitOfMeasurement = {
17
4
  NEWTON: "NEWTON",
18
5
  PASCAL: "PASCAL",
@@ -139,4 +126,3 @@ exports.BodyType = void 0;
139
126
  exports.UnitOfMeasurement = UnitOfMeasurement;
140
127
  exports.UnitSi = UnitSi;
141
128
  exports.UnitUs = UnitUs;
142
- exports.customFieldType = customFieldType;
package/index.esm.js CHANGED
@@ -1,16 +1,3 @@
1
- const customFieldType = {
2
- BOOLEAN: "BOOLEAN",
3
- DATE: "DATE",
4
- DROPDOWN: "DROPDOWN",
5
- STRING_LIST: "STRING_LIST",
6
- EMAIL: "EMAIL",
7
- JSON: "JSON",
8
- MONETARY: "MONETARY",
9
- NUMBER: "NUMBER",
10
- PHONE_NUMBER: "PHONE_NUMBER",
11
- STRING: "STRING",
12
- WEB_ADDRESS: "WEB_ADDRESS",
13
- };
14
1
  const UnitOfMeasurement = {
15
2
  NEWTON: "NEWTON",
16
3
  PASCAL: "PASCAL",
@@ -134,4 +121,4 @@ var BodyType;
134
121
  BodyType[BodyType["FormData"] = 1] = "FormData";
135
122
  })(BodyType || (BodyType = {}));
136
123
 
137
- export { BodyType, UnitOfMeasurement, UnitSi, UnitUs, customFieldType };
124
+ export { BodyType, UnitOfMeasurement, UnitSi, UnitUs };
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@trackunit/iris-app-runtime-core-api",
3
- "version": "1.3.36",
3
+ "version": "1.3.38",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
7
- "node": ">=20.x"
7
+ "node": ">=22.x"
8
8
  },
9
9
  "dependencies": {
10
10
  "jest-fetch-mock": "^3.0.3",
11
- "@trackunit/react-core-contexts-api": "1.4.36"
11
+ "@trackunit/react-core-contexts-api": "1.4.37"
12
12
  },
13
13
  "module": "./index.esm.js",
14
14
  "main": "./index.cjs.js",
@@ -3,20 +3,6 @@ export interface EntityIdentity {
3
3
  type: EntityType;
4
4
  id: string;
5
5
  }
6
- export declare const customFieldType: {
7
- readonly BOOLEAN: "BOOLEAN";
8
- readonly DATE: "DATE";
9
- readonly DROPDOWN: "DROPDOWN";
10
- readonly STRING_LIST: "STRING_LIST";
11
- readonly EMAIL: "EMAIL";
12
- readonly JSON: "JSON";
13
- readonly MONETARY: "MONETARY";
14
- readonly NUMBER: "NUMBER";
15
- readonly PHONE_NUMBER: "PHONE_NUMBER";
16
- readonly STRING: "STRING";
17
- readonly WEB_ADDRESS: "WEB_ADDRESS";
18
- };
19
- export type CustomFieldType = (typeof customFieldType)[keyof typeof customFieldType];
20
6
  /**
21
7
  * The new field definition
22
8
  */
@@ -34,42 +20,42 @@ export interface AbstractCustomFieldDefinitionObject {
34
20
  description?: string | null;
35
21
  uiVisible?: boolean | null;
36
22
  uiEditable?: boolean | null;
37
- type?: CustomFieldType | null;
23
+ __typename?: "BooleanFieldDefinition" | "DateFieldDefinition" | "DropDownFieldDefinition" | "EmailFieldDefinition" | "JsonFieldDefinition" | "MonetaryFieldDefinition" | "NumberFieldDefinition" | "PhoneNumberFieldDefinition" | "StringFieldDefinition" | "StringListFieldDefinition" | "WebAddressFieldDefinition" | null;
38
24
  }
39
25
  export type BooleanFieldDefinition = AbstractCustomFieldDefinitionObject & {
40
- type: "BOOLEAN";
26
+ __typename: "BooleanFieldDefinition";
41
27
  };
42
28
  export type DateFieldDefinition = AbstractCustomFieldDefinitionObject & {
43
29
  /**
44
30
  * ISO8601 formatted date
45
31
  */
46
- type: "DATE";
32
+ __typename: "DateFieldDefinition";
47
33
  };
48
34
  export type PhoneNumberFieldDefinition = AbstractCustomFieldDefinitionObject & {
49
- type: "PHONE_NUMBER";
35
+ __typename: "PhoneNumberFieldDefinition";
50
36
  };
51
37
  export type EmailFieldDefinition = AbstractCustomFieldDefinitionObject & {
52
- type: "EMAIL";
38
+ __typename: "EmailFieldDefinition";
53
39
  };
54
40
  export type JsonFieldDefinition = AbstractCustomFieldDefinitionObject & {
55
- type: "JSON";
41
+ __typename: "JsonFieldDefinition";
56
42
  };
57
43
  export type MonetaryFieldDefinition = AbstractCustomFieldDefinitionObject & {
58
44
  currency: string;
59
45
  minimumNumber?: number | null;
60
46
  maximumNumber?: number | null;
61
- type: "MONETARY";
47
+ __typename: "MonetaryFieldDefinition";
62
48
  };
63
49
  export type WebAddressFieldDefinition = AbstractCustomFieldDefinitionObject & {
64
- type: "WEB_ADDRESS";
50
+ __typename: "WebAddressFieldDefinition";
65
51
  };
66
52
  export type DropDownFieldDefinition = AbstractCustomFieldDefinitionObject & {
67
53
  multiSelect?: boolean | null;
68
54
  allValues?: string[] | null;
69
- type: "DROPDOWN";
55
+ __typename: "DropDownFieldDefinition";
70
56
  };
71
57
  export type StringListFieldDefinition = AbstractCustomFieldDefinitionObject & {
72
- type: "STRING_LIST";
58
+ __typename: "StringListFieldDefinition";
73
59
  allValues?: string[] | null;
74
60
  };
75
61
  export declare const UnitOfMeasurement: {
@@ -203,63 +189,63 @@ export type NumberFieldDefinition = AbstractCustomFieldDefinitionObject & {
203
189
  unitSi?: UnitOfMeasurementType | null;
204
190
  unitUs?: UnitOfMeasurementType | null;
205
191
  isInteger?: boolean | null;
206
- type: "NUMBER";
192
+ __typename: "NumberFieldValue";
207
193
  };
208
194
  export type StringFieldDefinition = AbstractCustomFieldDefinitionObject & {
209
195
  minimumLength?: number | null;
210
196
  maximumLength?: number | null;
211
197
  pattern?: string | null;
212
- type: "STRING";
198
+ __typename: "StringFieldDefinition";
213
199
  };
214
200
  export interface AbstractCustomFieldValue {
215
- type: CustomFieldType;
201
+ __typename: "BooleanFieldValue" | "DateFieldValue" | "DropDownFieldValue" | "EmailFieldValue" | "JsonFieldValue" | "MonetaryFieldValue" | "NumberFieldValue" | "PhoneNumberFieldValue" | "StringFieldValue" | "StringListFieldValue" | "WebAddressFieldValue";
216
202
  }
217
203
  export type BooleanFieldValue = {
218
- type: "BOOLEAN";
204
+ __typename: "BooleanFieldValue";
219
205
  booleanValue?: boolean | null;
220
206
  };
221
207
  export type DateFieldValue = {
222
- type: "DATE";
208
+ __typename: "DateFieldValue";
223
209
  /**
224
210
  * ISO8601 formatted date
225
211
  */
226
212
  dateValue?: string | null;
227
213
  };
228
214
  export type StringListFieldValue = {
229
- type: "STRING_LIST";
215
+ __typename: "StringListFieldValue";
230
216
  stringArrayValue?: string[] | null;
231
217
  };
232
218
  export type DropDownFieldValue = {
233
- type: "DROPDOWN";
219
+ __typename: "DropDownFieldValue";
234
220
  stringArrayValue?: string[] | null;
235
221
  };
236
222
  export type EmailFieldValue = {
237
- type: "EMAIL";
238
- stringValue?: string | null;
223
+ __typename: "EmailFieldValue";
224
+ emailValue?: string | null;
239
225
  };
240
226
  export type JsonFieldValue = {
241
- type: "JSON";
227
+ __typename: "JsonFieldValue";
242
228
  jsonValue?: unknown | null;
243
229
  };
244
230
  export type MonetaryFieldValue = {
245
- type: "MONETARY";
246
- numberValue?: number | null;
231
+ __typename: "MonetaryFieldValue";
232
+ monetaryValue?: number | null;
247
233
  };
248
234
  export type NumberFieldValue = {
249
- type: "NUMBER";
235
+ __typename: "NumberFieldValue";
250
236
  numberValue?: number | null;
251
237
  };
252
238
  export type PhoneNumberFieldValue = {
253
- type: "PHONE_NUMBER";
254
- stringValue?: string | null;
239
+ __typename: "PhoneNumberFieldValue";
240
+ phoneNumberValue?: string | null;
255
241
  };
256
242
  export type StringFieldValue = {
257
- type: "STRING";
243
+ __typename: "StringFieldValue";
258
244
  stringValue?: string | null;
259
245
  };
260
246
  export type WebAddressFieldValue = {
261
- type: "WEB_ADDRESS";
262
- stringValue?: string | null;
247
+ __typename: "WebAddressFieldValue";
248
+ webAddressValue?: string | null;
263
249
  };
264
250
  export type CustomFieldDefinition = BooleanFieldDefinition | DateFieldDefinition | DropDownFieldDefinition | EmailFieldDefinition | JsonFieldDefinition | MonetaryFieldDefinition | NumberFieldDefinition | PhoneNumberFieldDefinition | StringFieldDefinition | StringListFieldDefinition | WebAddressFieldDefinition;
265
251
  export type CustomFieldValue = BooleanFieldValue | DateFieldValue | DropDownFieldValue | EmailFieldValue | JsonFieldValue | MonetaryFieldValue | NumberFieldValue | PhoneNumberFieldValue | StringFieldValue | StringListFieldValue | WebAddressFieldValue;