@trackunit/iris-app-runtime-core-api 1.9.16 → 1.9.19
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 +14 -2
- package/index.esm.js +15 -3
- package/package.json +3 -3
- package/src/AssetSortingRuntime.d.ts +12 -2
package/index.cjs.js
CHANGED
|
@@ -17,6 +17,14 @@ const createEvent = (event) => ({
|
|
|
17
17
|
properties: {},
|
|
18
18
|
});
|
|
19
19
|
|
|
20
|
+
exports.AggregationPeriod = void 0;
|
|
21
|
+
(function (AggregationPeriod) {
|
|
22
|
+
AggregationPeriod["LAST1D"] = "LAST1D";
|
|
23
|
+
AggregationPeriod["LAST7D"] = "LAST7D";
|
|
24
|
+
AggregationPeriod["LAST30D"] = "LAST30D";
|
|
25
|
+
AggregationPeriod["LAST365D"] = "LAST365D";
|
|
26
|
+
AggregationPeriod["LIFETIME"] = "LIFETIME";
|
|
27
|
+
})(exports.AggregationPeriod || (exports.AggregationPeriod = {}));
|
|
20
28
|
exports.AssetSortByProperty = void 0;
|
|
21
29
|
(function (AssetSortByProperty) {
|
|
22
30
|
AssetSortByProperty["Activity"] = "ACTIVITY";
|
|
@@ -52,7 +60,9 @@ exports.AssetSortByProperty = void 0;
|
|
|
52
60
|
AssetSortByProperty["CumulativeOperatingHours"] = "CUMULATIVE_OPERATING_HOURS";
|
|
53
61
|
AssetSortByProperty["FuelLevel"] = "FUEL_LEVEL";
|
|
54
62
|
AssetSortByProperty["AfterTreatmentDieselExhaustFluidTankLevel"] = "AFTER_TREATMENT_DIESEL_EXHAUST_FLUID_TANK_LEVEL";
|
|
55
|
-
AssetSortByProperty["
|
|
63
|
+
AssetSortByProperty["CumulativeIdleHours"] = "CUMULATIVE_IDLE_HOURS";
|
|
64
|
+
AssetSortByProperty["ContractItemOnRentDate"] = "CONTRACT_ITEM_ON_RENT_DATE";
|
|
65
|
+
AssetSortByProperty["ContractItemOffRentDate"] = "CONTRACT_ITEM_OFF_RENT_DATE";
|
|
56
66
|
})(exports.AssetSortByProperty || (exports.AssetSortByProperty = {}));
|
|
57
67
|
// The type [key in AssetSortByProperty] will ensure that ALL keys are present
|
|
58
68
|
const stringToEnum = {
|
|
@@ -89,7 +99,9 @@ const stringToEnum = {
|
|
|
89
99
|
CUMULATIVE_OPERATING_HOURS: exports.AssetSortByProperty.CumulativeOperatingHours,
|
|
90
100
|
FUEL_LEVEL: exports.AssetSortByProperty.FuelLevel,
|
|
91
101
|
AFTER_TREATMENT_DIESEL_EXHAUST_FLUID_TANK_LEVEL: exports.AssetSortByProperty.AfterTreatmentDieselExhaustFluidTankLevel,
|
|
92
|
-
|
|
102
|
+
CUMULATIVE_IDLE_HOURS: exports.AssetSortByProperty.CumulativeIdleHours,
|
|
103
|
+
CONTRACT_ITEM_ON_RENT_DATE: exports.AssetSortByProperty.ContractItemOnRentDate,
|
|
104
|
+
CONTRACT_ITEM_OFF_RENT_DATE: exports.AssetSortByProperty.ContractItemOffRentDate,
|
|
93
105
|
};
|
|
94
106
|
/**
|
|
95
107
|
* Ensures that a string is a valid AssetSortByProperty enum value
|
package/index.esm.js
CHANGED
|
@@ -15,6 +15,14 @@ const createEvent = (event) => ({
|
|
|
15
15
|
properties: {},
|
|
16
16
|
});
|
|
17
17
|
|
|
18
|
+
var AggregationPeriod;
|
|
19
|
+
(function (AggregationPeriod) {
|
|
20
|
+
AggregationPeriod["LAST1D"] = "LAST1D";
|
|
21
|
+
AggregationPeriod["LAST7D"] = "LAST7D";
|
|
22
|
+
AggregationPeriod["LAST30D"] = "LAST30D";
|
|
23
|
+
AggregationPeriod["LAST365D"] = "LAST365D";
|
|
24
|
+
AggregationPeriod["LIFETIME"] = "LIFETIME";
|
|
25
|
+
})(AggregationPeriod || (AggregationPeriod = {}));
|
|
18
26
|
var AssetSortByProperty;
|
|
19
27
|
(function (AssetSortByProperty) {
|
|
20
28
|
AssetSortByProperty["Activity"] = "ACTIVITY";
|
|
@@ -50,7 +58,9 @@ var AssetSortByProperty;
|
|
|
50
58
|
AssetSortByProperty["CumulativeOperatingHours"] = "CUMULATIVE_OPERATING_HOURS";
|
|
51
59
|
AssetSortByProperty["FuelLevel"] = "FUEL_LEVEL";
|
|
52
60
|
AssetSortByProperty["AfterTreatmentDieselExhaustFluidTankLevel"] = "AFTER_TREATMENT_DIESEL_EXHAUST_FLUID_TANK_LEVEL";
|
|
53
|
-
AssetSortByProperty["
|
|
61
|
+
AssetSortByProperty["CumulativeIdleHours"] = "CUMULATIVE_IDLE_HOURS";
|
|
62
|
+
AssetSortByProperty["ContractItemOnRentDate"] = "CONTRACT_ITEM_ON_RENT_DATE";
|
|
63
|
+
AssetSortByProperty["ContractItemOffRentDate"] = "CONTRACT_ITEM_OFF_RENT_DATE";
|
|
54
64
|
})(AssetSortByProperty || (AssetSortByProperty = {}));
|
|
55
65
|
// The type [key in AssetSortByProperty] will ensure that ALL keys are present
|
|
56
66
|
const stringToEnum = {
|
|
@@ -87,7 +97,9 @@ const stringToEnum = {
|
|
|
87
97
|
CUMULATIVE_OPERATING_HOURS: AssetSortByProperty.CumulativeOperatingHours,
|
|
88
98
|
FUEL_LEVEL: AssetSortByProperty.FuelLevel,
|
|
89
99
|
AFTER_TREATMENT_DIESEL_EXHAUST_FLUID_TANK_LEVEL: AssetSortByProperty.AfterTreatmentDieselExhaustFluidTankLevel,
|
|
90
|
-
|
|
100
|
+
CUMULATIVE_IDLE_HOURS: AssetSortByProperty.CumulativeIdleHours,
|
|
101
|
+
CONTRACT_ITEM_ON_RENT_DATE: AssetSortByProperty.ContractItemOnRentDate,
|
|
102
|
+
CONTRACT_ITEM_OFF_RENT_DATE: AssetSortByProperty.ContractItemOffRentDate,
|
|
91
103
|
};
|
|
92
104
|
/**
|
|
93
105
|
* Ensures that a string is a valid AssetSortByProperty enum value
|
|
@@ -342,4 +354,4 @@ const UserSubscriptionPackage = {
|
|
|
342
354
|
CUSTOMER_PORTAL: "Customer Portal",
|
|
343
355
|
};
|
|
344
356
|
|
|
345
|
-
export { AssetSortByProperty, BodyType, SortOrder, SystemOfMeasurement, TimeZonePreference, UnitOfMeasurement, UnitSi, UnitUs, UserSubscriptionPackage, allPages, assetHomePageIds, createEvent, customerHomePageIds, groupHomePageIds, isAssetHomeOptions, isCustomerHomeOptions, isFleetAppStandardOptions, isGroupHomeOptions, isIrisOptions, isSiteHomeOptions, mainApps, siteHomePageIds, validateStringAsAssetSortByProperty };
|
|
357
|
+
export { AggregationPeriod, AssetSortByProperty, BodyType, SortOrder, SystemOfMeasurement, TimeZonePreference, UnitOfMeasurement, UnitSi, UnitUs, UserSubscriptionPackage, allPages, assetHomePageIds, createEvent, customerHomePageIds, groupHomePageIds, isAssetHomeOptions, isCustomerHomeOptions, isFleetAppStandardOptions, isGroupHomeOptions, isIrisOptions, isSiteHomeOptions, mainApps, siteHomePageIds, validateStringAsAssetSortByProperty };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/iris-app-runtime-core-api",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.19",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@graphql-typed-document-node/core": "^3.2.0",
|
|
11
|
-
"@trackunit/shared-utils": "1.11.
|
|
12
|
-
"@trackunit/geo-json-utils": "1.9.
|
|
11
|
+
"@trackunit/shared-utils": "1.11.15",
|
|
12
|
+
"@trackunit/geo-json-utils": "1.9.15"
|
|
13
13
|
},
|
|
14
14
|
"module": "./index.esm.js",
|
|
15
15
|
"main": "./index.cjs.js",
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
export declare enum AggregationPeriod {
|
|
2
|
+
LAST1D = "LAST1D",
|
|
3
|
+
LAST7D = "LAST7D",
|
|
4
|
+
LAST30D = "LAST30D",
|
|
5
|
+
LAST365D = "LAST365D",
|
|
6
|
+
LIFETIME = "LIFETIME"
|
|
7
|
+
}
|
|
1
8
|
export declare enum AssetSortByProperty {
|
|
2
9
|
Activity = "ACTIVITY",
|
|
3
10
|
Brand = "BRAND",
|
|
@@ -32,7 +39,9 @@ export declare enum AssetSortByProperty {
|
|
|
32
39
|
CumulativeOperatingHours = "CUMULATIVE_OPERATING_HOURS",
|
|
33
40
|
FuelLevel = "FUEL_LEVEL",
|
|
34
41
|
AfterTreatmentDieselExhaustFluidTankLevel = "AFTER_TREATMENT_DIESEL_EXHAUST_FLUID_TANK_LEVEL",
|
|
35
|
-
|
|
42
|
+
CumulativeIdleHours = "CUMULATIVE_IDLE_HOURS",
|
|
43
|
+
ContractItemOnRentDate = "CONTRACT_ITEM_ON_RENT_DATE",
|
|
44
|
+
ContractItemOffRentDate = "CONTRACT_ITEM_OFF_RENT_DATE"
|
|
36
45
|
}
|
|
37
46
|
/**
|
|
38
47
|
* Ensures that a string is a valid AssetSortByProperty enum value
|
|
@@ -52,10 +61,11 @@ export interface SortingState {
|
|
|
52
61
|
customFieldDefinitionId?: string;
|
|
53
62
|
sortBy: AssetSortByProperty;
|
|
54
63
|
order: SortOrder;
|
|
64
|
+
aggregationPeriod?: AggregationPeriod;
|
|
55
65
|
}
|
|
56
66
|
export interface AssetSortingState {
|
|
57
67
|
sortingState: SortingState;
|
|
58
|
-
setSortBy: (sortBy: AssetSortByProperty, order?: SortOrder, customFieldDefinitionId?: string) => void;
|
|
68
|
+
setSortBy: (sortBy: AssetSortByProperty, order?: SortOrder, customFieldDefinitionId?: string, aggregationPeriod?: AggregationPeriod) => void;
|
|
59
69
|
}
|
|
60
70
|
export interface AssetSortingRuntimeApi {
|
|
61
71
|
getAssetSortingState: () => Promise<AssetSortingState["sortingState"]>;
|