@trackunit/iris-app-runtime-core-api 0.3.87 → 0.3.90
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 +60 -59
- package/index.esm.js +57 -60
- package/package.json +1 -1
- package/src/CustomFieldRuntime.d.ts +84 -84
- package/src/HostConnector.d.ts +1 -1
package/index.cjs.js
CHANGED
@@ -2,68 +2,69 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
UnitSi["hectare"] = "hectare";
|
62
|
-
UnitSi["hour"] = "hour";
|
63
|
-
})(exports.UnitSi || (exports.UnitSi = {}));
|
5
|
+
const customFieldType = {
|
6
|
+
BOOLEAN: "BOOLEAN",
|
7
|
+
DATE: "DATE",
|
8
|
+
DROPDOWN: "DROPDOWN",
|
9
|
+
EMAIL: "EMAIL",
|
10
|
+
JSON: "JSON",
|
11
|
+
MONETARY: "MONETARY",
|
12
|
+
NUMBER: "NUMBER",
|
13
|
+
PHONE_NUMBER: "PHONE_NUMBER",
|
14
|
+
STRING: "STRING",
|
15
|
+
WEB_ADDRESS: "WEB_ADDRESS",
|
16
|
+
};
|
17
|
+
const UnitUs = {
|
18
|
+
acre: "acre",
|
19
|
+
foot: "foot",
|
20
|
+
square_foot: "square_foot",
|
21
|
+
cubic_foot: "cubic_foot",
|
22
|
+
gallon_liquid: "gallon_liquid",
|
23
|
+
inch: "inch",
|
24
|
+
pound: "pound",
|
25
|
+
pound_per_hour: "pound_per_hour",
|
26
|
+
pound_per_second: "pound_per_second",
|
27
|
+
mile: "mile",
|
28
|
+
mile_per_hour: "mile_per_hour",
|
29
|
+
ounce: "ounce",
|
30
|
+
ton_us: "ton_us",
|
31
|
+
yard: "yard",
|
32
|
+
pound_per_square_inch: "pound_per_square_inch",
|
33
|
+
};
|
34
|
+
const UnitSi = {
|
35
|
+
newton: "newton",
|
36
|
+
pascal: "pascal",
|
37
|
+
kilopascal: "kilopascal",
|
38
|
+
watt: "watt",
|
39
|
+
bar: "bar",
|
40
|
+
centimetre: "centimetre",
|
41
|
+
millimetre: "millimetre",
|
42
|
+
metre: "metre",
|
43
|
+
kilometre: "kilometre",
|
44
|
+
gram: "gram",
|
45
|
+
kilogram: "kilogram",
|
46
|
+
kilowatt: "kilowatt",
|
47
|
+
kilowatthour: "kilowatthour",
|
48
|
+
kilogram_per_hour: "kilogram_per_hour",
|
49
|
+
kilogram_per_second: "kilogram_per_second",
|
50
|
+
square_kilometre: "square_kilometre",
|
51
|
+
kilometre_per_hour: "kilometre_per_hour",
|
52
|
+
litre: "litre",
|
53
|
+
square_metre: "square_metre",
|
54
|
+
cubic_metre: "cubic_metre",
|
55
|
+
metre_per_second: "metre_per_second",
|
56
|
+
metre_per_second_squared: "metre_per_second_squared",
|
57
|
+
ton: "ton",
|
58
|
+
hectare: "hectare",
|
59
|
+
hour: "hour",
|
60
|
+
};
|
64
61
|
|
65
62
|
exports.BodyType = void 0;
|
66
63
|
(function (BodyType) {
|
67
64
|
BodyType[BodyType["Json"] = 0] = "Json";
|
68
65
|
BodyType[BodyType["FormData"] = 1] = "FormData";
|
69
66
|
})(exports.BodyType || (exports.BodyType = {}));
|
67
|
+
|
68
|
+
exports.UnitSi = UnitSi;
|
69
|
+
exports.UnitUs = UnitUs;
|
70
|
+
exports.customFieldType = customFieldType;
|
package/index.esm.js
CHANGED
@@ -1,62 +1,59 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
UnitSi["hectare"] = "hectare";
|
58
|
-
UnitSi["hour"] = "hour";
|
59
|
-
})(UnitSi || (UnitSi = {}));
|
1
|
+
const customFieldType = {
|
2
|
+
BOOLEAN: "BOOLEAN",
|
3
|
+
DATE: "DATE",
|
4
|
+
DROPDOWN: "DROPDOWN",
|
5
|
+
EMAIL: "EMAIL",
|
6
|
+
JSON: "JSON",
|
7
|
+
MONETARY: "MONETARY",
|
8
|
+
NUMBER: "NUMBER",
|
9
|
+
PHONE_NUMBER: "PHONE_NUMBER",
|
10
|
+
STRING: "STRING",
|
11
|
+
WEB_ADDRESS: "WEB_ADDRESS",
|
12
|
+
};
|
13
|
+
const UnitUs = {
|
14
|
+
acre: "acre",
|
15
|
+
foot: "foot",
|
16
|
+
square_foot: "square_foot",
|
17
|
+
cubic_foot: "cubic_foot",
|
18
|
+
gallon_liquid: "gallon_liquid",
|
19
|
+
inch: "inch",
|
20
|
+
pound: "pound",
|
21
|
+
pound_per_hour: "pound_per_hour",
|
22
|
+
pound_per_second: "pound_per_second",
|
23
|
+
mile: "mile",
|
24
|
+
mile_per_hour: "mile_per_hour",
|
25
|
+
ounce: "ounce",
|
26
|
+
ton_us: "ton_us",
|
27
|
+
yard: "yard",
|
28
|
+
pound_per_square_inch: "pound_per_square_inch",
|
29
|
+
};
|
30
|
+
const UnitSi = {
|
31
|
+
newton: "newton",
|
32
|
+
pascal: "pascal",
|
33
|
+
kilopascal: "kilopascal",
|
34
|
+
watt: "watt",
|
35
|
+
bar: "bar",
|
36
|
+
centimetre: "centimetre",
|
37
|
+
millimetre: "millimetre",
|
38
|
+
metre: "metre",
|
39
|
+
kilometre: "kilometre",
|
40
|
+
gram: "gram",
|
41
|
+
kilogram: "kilogram",
|
42
|
+
kilowatt: "kilowatt",
|
43
|
+
kilowatthour: "kilowatthour",
|
44
|
+
kilogram_per_hour: "kilogram_per_hour",
|
45
|
+
kilogram_per_second: "kilogram_per_second",
|
46
|
+
square_kilometre: "square_kilometre",
|
47
|
+
kilometre_per_hour: "kilometre_per_hour",
|
48
|
+
litre: "litre",
|
49
|
+
square_metre: "square_metre",
|
50
|
+
cubic_metre: "cubic_metre",
|
51
|
+
metre_per_second: "metre_per_second",
|
52
|
+
metre_per_second_squared: "metre_per_second_squared",
|
53
|
+
ton: "ton",
|
54
|
+
hectare: "hectare",
|
55
|
+
hour: "hour",
|
56
|
+
};
|
60
57
|
|
61
58
|
var BodyType;
|
62
59
|
(function (BodyType) {
|
@@ -64,4 +61,4 @@ var BodyType;
|
|
64
61
|
BodyType[BodyType["FormData"] = 1] = "FormData";
|
65
62
|
})(BodyType || (BodyType = {}));
|
66
63
|
|
67
|
-
export { BodyType,
|
64
|
+
export { BodyType, UnitSi, UnitUs, customFieldType };
|
package/package.json
CHANGED
@@ -3,18 +3,19 @@ export interface EntityIdentity {
|
|
3
3
|
type: EntityType;
|
4
4
|
id: string;
|
5
5
|
}
|
6
|
-
export declare
|
7
|
-
BOOLEAN
|
8
|
-
DATE
|
9
|
-
DROPDOWN
|
10
|
-
EMAIL
|
11
|
-
JSON
|
12
|
-
MONETARY
|
13
|
-
NUMBER
|
14
|
-
PHONE_NUMBER
|
15
|
-
STRING
|
16
|
-
WEB_ADDRESS
|
17
|
-
}
|
6
|
+
export declare const customFieldType: {
|
7
|
+
readonly BOOLEAN: "BOOLEAN";
|
8
|
+
readonly DATE: "DATE";
|
9
|
+
readonly DROPDOWN: "DROPDOWN";
|
10
|
+
readonly EMAIL: "EMAIL";
|
11
|
+
readonly JSON: "JSON";
|
12
|
+
readonly MONETARY: "MONETARY";
|
13
|
+
readonly NUMBER: "NUMBER";
|
14
|
+
readonly PHONE_NUMBER: "PHONE_NUMBER";
|
15
|
+
readonly STRING: "STRING";
|
16
|
+
readonly WEB_ADDRESS: "WEB_ADDRESS";
|
17
|
+
};
|
18
|
+
export type CustomFieldType = (typeof customFieldType)[keyof typeof customFieldType];
|
18
19
|
/**
|
19
20
|
* The new field definition
|
20
21
|
*/
|
@@ -28,149 +29,148 @@ export interface AbstractCustomFieldDefinitionObject {
|
|
28
29
|
} | null;
|
29
30
|
} | null;
|
30
31
|
/** The title */
|
31
|
-
title
|
32
|
-
entityType: string;
|
32
|
+
title?: string | null;
|
33
33
|
description?: string | null;
|
34
34
|
uiVisible?: boolean | null;
|
35
35
|
uiEditable?: boolean | null;
|
36
|
-
type
|
36
|
+
type?: CustomFieldType | null;
|
37
37
|
}
|
38
38
|
export type BooleanFieldDefinition = AbstractCustomFieldDefinitionObject & {
|
39
|
-
type:
|
39
|
+
type: "BOOLEAN";
|
40
40
|
};
|
41
41
|
export type DateFieldDefinition = AbstractCustomFieldDefinitionObject & {
|
42
42
|
/**
|
43
43
|
* ISO8601 formatted date
|
44
44
|
*/
|
45
|
-
type:
|
45
|
+
type: "DATE";
|
46
46
|
};
|
47
47
|
export type PhoneNumberFieldDefinition = AbstractCustomFieldDefinitionObject & {
|
48
|
-
type:
|
48
|
+
type: "PHONE_NUMBER";
|
49
49
|
};
|
50
50
|
export type EmailFieldDefinition = AbstractCustomFieldDefinitionObject & {
|
51
|
-
type:
|
51
|
+
type: "EMAIL";
|
52
52
|
};
|
53
53
|
export type JsonFieldDefinition = AbstractCustomFieldDefinitionObject & {
|
54
|
-
type:
|
54
|
+
type: "JSON";
|
55
55
|
};
|
56
56
|
export type MonetaryFieldDefinition = AbstractCustomFieldDefinitionObject & {
|
57
57
|
currency: string;
|
58
58
|
minimumNumber?: number | null;
|
59
59
|
maximumNumber?: number | null;
|
60
|
-
type:
|
60
|
+
type: "MONETARY";
|
61
61
|
};
|
62
62
|
export type WebAddressFieldDefinition = AbstractCustomFieldDefinitionObject & {
|
63
|
-
type:
|
63
|
+
type: "WEB_ADDRESS";
|
64
64
|
};
|
65
65
|
export type DropDownFieldDefinition = AbstractCustomFieldDefinitionObject & {
|
66
66
|
multiSelect?: boolean | null;
|
67
67
|
allValues?: string[] | null;
|
68
|
-
type:
|
69
|
-
};
|
70
|
-
export declare
|
71
|
-
acre
|
72
|
-
foot
|
73
|
-
square_foot
|
74
|
-
cubic_foot
|
75
|
-
gallon_liquid
|
76
|
-
inch
|
77
|
-
pound
|
78
|
-
pound_per_hour
|
79
|
-
pound_per_second
|
80
|
-
mile
|
81
|
-
mile_per_hour
|
82
|
-
ounce
|
83
|
-
ton_us
|
84
|
-
yard
|
85
|
-
pound_per_square_inch
|
86
|
-
}
|
87
|
-
export type UnitUsType =
|
88
|
-
export declare
|
89
|
-
newton
|
90
|
-
pascal
|
91
|
-
kilopascal
|
92
|
-
watt
|
93
|
-
bar
|
94
|
-
centimetre
|
95
|
-
millimetre
|
96
|
-
metre
|
97
|
-
kilometre
|
98
|
-
gram
|
99
|
-
kilogram
|
100
|
-
kilowatt
|
101
|
-
kilowatthour
|
102
|
-
kilogram_per_hour
|
103
|
-
kilogram_per_second
|
104
|
-
square_kilometre
|
105
|
-
kilometre_per_hour
|
106
|
-
litre
|
107
|
-
square_metre
|
108
|
-
cubic_metre
|
109
|
-
metre_per_second
|
110
|
-
metre_per_second_squared
|
111
|
-
ton
|
112
|
-
hectare
|
113
|
-
hour
|
114
|
-
}
|
115
|
-
export type UnitSiType =
|
68
|
+
type: "DROPDOWN";
|
69
|
+
};
|
70
|
+
export declare const UnitUs: {
|
71
|
+
readonly acre: "acre";
|
72
|
+
readonly foot: "foot";
|
73
|
+
readonly square_foot: "square_foot";
|
74
|
+
readonly cubic_foot: "cubic_foot";
|
75
|
+
readonly gallon_liquid: "gallon_liquid";
|
76
|
+
readonly inch: "inch";
|
77
|
+
readonly pound: "pound";
|
78
|
+
readonly pound_per_hour: "pound_per_hour";
|
79
|
+
readonly pound_per_second: "pound_per_second";
|
80
|
+
readonly mile: "mile";
|
81
|
+
readonly mile_per_hour: "mile_per_hour";
|
82
|
+
readonly ounce: "ounce";
|
83
|
+
readonly ton_us: "ton_us";
|
84
|
+
readonly yard: "yard";
|
85
|
+
readonly pound_per_square_inch: "pound_per_square_inch";
|
86
|
+
};
|
87
|
+
export type UnitUsType = (typeof UnitUs)[keyof typeof UnitUs];
|
88
|
+
export declare const UnitSi: {
|
89
|
+
readonly newton: "newton";
|
90
|
+
readonly pascal: "pascal";
|
91
|
+
readonly kilopascal: "kilopascal";
|
92
|
+
readonly watt: "watt";
|
93
|
+
readonly bar: "bar";
|
94
|
+
readonly centimetre: "centimetre";
|
95
|
+
readonly millimetre: "millimetre";
|
96
|
+
readonly metre: "metre";
|
97
|
+
readonly kilometre: "kilometre";
|
98
|
+
readonly gram: "gram";
|
99
|
+
readonly kilogram: "kilogram";
|
100
|
+
readonly kilowatt: "kilowatt";
|
101
|
+
readonly kilowatthour: "kilowatthour";
|
102
|
+
readonly kilogram_per_hour: "kilogram_per_hour";
|
103
|
+
readonly kilogram_per_second: "kilogram_per_second";
|
104
|
+
readonly square_kilometre: "square_kilometre";
|
105
|
+
readonly kilometre_per_hour: "kilometre_per_hour";
|
106
|
+
readonly litre: "litre";
|
107
|
+
readonly square_metre: "square_metre";
|
108
|
+
readonly cubic_metre: "cubic_metre";
|
109
|
+
readonly metre_per_second: "metre_per_second";
|
110
|
+
readonly metre_per_second_squared: "metre_per_second_squared";
|
111
|
+
readonly ton: "ton";
|
112
|
+
readonly hectare: "hectare";
|
113
|
+
readonly hour: "hour";
|
114
|
+
};
|
115
|
+
export type UnitSiType = (typeof UnitSi)[keyof typeof UnitSi];
|
116
116
|
export type NumberFieldDefinition = AbstractCustomFieldDefinitionObject & {
|
117
117
|
minimumNumber?: number | null;
|
118
118
|
maximumNumber?: number | null;
|
119
|
-
unitSi?:
|
120
|
-
unitUs?:
|
119
|
+
unitSi?: UnitSiType | null;
|
120
|
+
unitUs?: UnitUsType | null;
|
121
121
|
isInteger?: boolean | null;
|
122
|
-
type:
|
122
|
+
type: "NUMBER";
|
123
123
|
};
|
124
124
|
export type StringFieldDefinition = AbstractCustomFieldDefinitionObject & {
|
125
125
|
minimumLength?: number | null;
|
126
126
|
maximumLength?: number | null;
|
127
127
|
pattern?: string | null;
|
128
|
-
type:
|
128
|
+
type: "STRING";
|
129
129
|
};
|
130
130
|
export interface AbstractCustomFieldValue {
|
131
131
|
type: CustomFieldType;
|
132
132
|
}
|
133
133
|
export type BooleanFieldValue = {
|
134
|
-
type:
|
134
|
+
type: "BOOLEAN";
|
135
135
|
booleanValue?: boolean | null;
|
136
136
|
};
|
137
137
|
export type DateFieldValue = {
|
138
|
-
type:
|
138
|
+
type: "DATE";
|
139
139
|
/**
|
140
140
|
* ISO8601 formatted date
|
141
141
|
*/
|
142
142
|
dateValue?: string | null;
|
143
143
|
};
|
144
144
|
export type DropDownFieldValue = {
|
145
|
-
type:
|
145
|
+
type: "DROPDOWN";
|
146
146
|
stringArrayValue?: string[];
|
147
147
|
};
|
148
148
|
export type EmailFieldValue = {
|
149
|
-
type:
|
149
|
+
type: "EMAIL";
|
150
150
|
stringValue?: string | null;
|
151
151
|
};
|
152
152
|
export type JsonFieldValue = {
|
153
|
-
type:
|
153
|
+
type: "JSON";
|
154
154
|
jsonValue?: unknown | null;
|
155
155
|
};
|
156
156
|
export type MonetaryFieldValue = {
|
157
|
-
type:
|
157
|
+
type: "MONETARY";
|
158
158
|
numberValue?: number | null;
|
159
159
|
};
|
160
160
|
export type NumberFieldValue = {
|
161
|
-
type:
|
161
|
+
type: "NUMBER";
|
162
162
|
numberValue?: number | null;
|
163
163
|
};
|
164
164
|
export type PhoneNumberFieldValue = {
|
165
|
-
type:
|
165
|
+
type: "PHONE_NUMBER";
|
166
166
|
stringValue?: string | null;
|
167
167
|
};
|
168
168
|
export type StringFieldValue = {
|
169
|
-
type:
|
169
|
+
type: "STRING";
|
170
170
|
stringValue?: string | null;
|
171
171
|
};
|
172
172
|
export type WebAddressFieldValue = {
|
173
|
-
type:
|
173
|
+
type: "WEB_ADDRESS";
|
174
174
|
stringValue?: string | null;
|
175
175
|
};
|
176
176
|
export type CustomFieldDefinition = BooleanFieldDefinition | DateFieldDefinition | DropDownFieldDefinition | EmailFieldDefinition | JsonFieldDefinition | MonetaryFieldDefinition | NumberFieldDefinition | PhoneNumberFieldDefinition | StringFieldDefinition | WebAddressFieldDefinition;
|
package/src/HostConnector.d.ts
CHANGED
@@ -11,7 +11,7 @@ export interface CustomFieldError {
|
|
11
11
|
*/
|
12
12
|
customFieldKeys: string[];
|
13
13
|
}
|
14
|
-
export interface HostConnectorApi extends IAnalyticsContextAsync<
|
14
|
+
export interface HostConnectorApi extends IAnalyticsContextAsync<Record<string, never>>, INavigationContext, IOemBrandingContext, ICurrentUserPreferenceContext {
|
15
15
|
getAssetSortingState(): Promise<IAssetSortingContext["sortingState"]>;
|
16
16
|
setAssetSortingState(...args: Parameters<IAssetSortingContext["setSortBy"]>): Promise<void>;
|
17
17
|
getEnvironmentContext(): Promise<IEnvironmentContext>;
|