@trackunit/filters-graphql-hook 2.3.10-alpha-a94628b77e7.0 → 2.3.10

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
@@ -295,7 +295,6 @@ const accessManagementMode = {
295
295
  const assetActivityState = {
296
296
  IDLING: "IDLING",
297
297
  STOPPED: "STOPPED",
298
- UNDEFINED: "UNDEFINED",
299
298
  UNKNOWN: "UNKNOWN",
300
299
  WORKING: "WORKING",
301
300
  };
@@ -320,21 +319,21 @@ const assetType = {
320
319
  TOOL: "TOOL",
321
320
  VEHICLE: "VEHICLE",
322
321
  };
323
- const deviceHealthDeviceStatus = {
322
+ const fleetDataHealthDeviceStatus = {
324
323
  CRITICAL: "CRITICAL",
325
324
  LOW: "LOW",
326
325
  };
327
- const deviceHealthIssueCategory = {
326
+ const fleetDataHealthIssueCategory = {
328
327
  COVERAGE: "COVERAGE",
329
328
  DEVICE_BATTERY: "DEVICE_BATTERY",
330
329
  INSTALL_AND_CONFIGURATION: "INSTALL_AND_CONFIGURATION",
331
330
  NON_REPORTING_DEVICE: "NON_REPORTING_DEVICE",
332
331
  };
333
- const deviceHealthIssueState = {
332
+ const fleetDataHealthIssueState = {
334
333
  OPEN: "OPEN",
335
334
  RESOLVED: "RESOLVED",
336
335
  };
337
- const deviceHealthIssueType = {
336
+ const fleetDataHealthIssueType = {
338
337
  DATA_NOT_RECEIVED: "DATA_NOT_RECEIVED",
339
338
  DEVICE_BATTERY_APPROACHING_END_OF_LIFE: "DEVICE_BATTERY_APPROACHING_END_OF_LIFE",
340
339
  LOW_CELLULAR_COVERAGE: "LOW_CELLULAR_COVERAGE",
@@ -362,7 +361,6 @@ const rentalStatus = {
362
361
  RESERVED: "RESERVED",
363
362
  RETURNED: "RETURNED",
364
363
  TRANSFER: "TRANSFER",
365
- UNDEFINED: "UNDEFINED",
366
364
  };
367
365
  const servicePlanStatus = {
368
366
  COMPLETE: "COMPLETE",
@@ -516,16 +514,16 @@ const useActiveAssetFilters = (filters) => {
516
514
  telematicsDeviceIsConnected: valueBooleanOrUndefined(filters.telematicsConnected),
517
515
  activeFilter: activeFilterToGraphQL(filters.activeFilter),
518
516
  owningDepotSiteIds: valueNameArrayOrUndefined(filters.siteDepotOwnershipIds),
519
- deviceHealthTypes: fixTypes(valueNameArrayOrUndefined(filters.fleetHealthTypes), deviceHealthIssueType),
520
- deviceHealthCategories: fixTypes(valueNameArrayOrUndefined(filters.fleetHealthCategories), deviceHealthIssueCategory),
521
- deviceHealthStates: (() => {
517
+ fleetHealthTypes: fixTypes(valueNameArrayOrUndefined(filters.fleetHealthTypes), fleetDataHealthIssueType),
518
+ fleetHealthCategories: fixTypes(valueNameArrayOrUndefined(filters.fleetHealthCategories), fleetDataHealthIssueCategory),
519
+ fleetHealthStates: (() => {
522
520
  const hasSubFilters = (valueNameArrayOrUndefined(filters.fleetHealthTypes)?.length ?? 0) > 0 ||
523
521
  (valueNameArrayOrUndefined(filters.fleetHealthCategories)?.length ?? 0) > 0 ||
524
522
  (valueNameArrayOrUndefined(filters.fleetHealthStatus)?.length ?? 0) > 0;
525
523
  // Default to OPEN when sub-filters are active
526
- return fixTypes(hasSubFilters ? [deviceHealthIssueState.OPEN] : undefined, deviceHealthIssueState);
524
+ return fixTypes(hasSubFilters ? [fleetDataHealthIssueState.OPEN] : undefined, fleetDataHealthIssueState);
527
525
  })(),
528
- deviceHealthDeviceStatuses: fixTypes(valueNameArrayOrUndefined(filters.fleetHealthStatus), deviceHealthDeviceStatus),
526
+ fleetHealthDeviceStatuses: fixTypes(valueNameArrayOrUndefined(filters.fleetHealthStatus), fleetDataHealthDeviceStatus),
529
527
  deviceTypes: valueNameArrayOrUndefined(filters.deviceTypes),
530
528
  firmwareVersion: valueNameArrayOrUndefined(filters.firmwareVersion),
531
529
  can1Profile: valueNameArrayOrUndefined(filters.can1Profile),
@@ -624,9 +622,9 @@ const assetFiltersInputSchema = zod.z
624
622
  customerIds: zod.z.array(zod.z.string()).optional(),
625
623
  deviceTypes: zod.z.array(zod.z.string()).optional(),
626
624
  firmwareVersion: zod.z.array(zod.z.string()).optional(),
627
- deviceHealthCategories: zod.z.array(zod.z.nativeEnum(deviceHealthIssueCategory)).optional(),
628
- deviceHealthDeviceStatuses: zod.z.array(zod.z.nativeEnum(deviceHealthDeviceStatus)).optional(),
629
- deviceHealthTypes: zod.z.array(zod.z.nativeEnum(deviceHealthIssueType)).optional(),
625
+ fleetHealthCategories: zod.z.array(zod.z.nativeEnum(fleetDataHealthIssueCategory)).optional(),
626
+ fleetHealthDeviceStatuses: zod.z.array(zod.z.nativeEnum(fleetDataHealthDeviceStatus)).optional(),
627
+ fleetHealthTypes: zod.z.array(zod.z.nativeEnum(fleetDataHealthIssueType)).optional(),
630
628
  groups: zod.z.array(zod.z.string()).optional(),
631
629
  customFields: zod.z.array(customFieldSchema).optional(),
632
630
  insightsFilters: zod.z
@@ -711,31 +709,6 @@ const stripNullProperties = (value) => {
711
709
  }
712
710
  return value;
713
711
  };
714
- /**
715
- * Legacy → current AssetFiltersInput key aliases. Old shared /goto links may still carry the
716
- * pre-rename `fleetHealth*` keys, so they are normalized to the current `deviceHealth*` keys
717
- * instead of being silently stripped.
718
- */
719
- const legacyFilterKeyAliases = {
720
- fleetHealthCategories: "deviceHealthCategories",
721
- fleetHealthDeviceStatuses: "deviceHealthDeviceStatuses",
722
- fleetHealthTypes: "deviceHealthTypes",
723
- };
724
- const renameLegacyFilterKeys = (value) => {
725
- if (!isPlainObject(value)) {
726
- return value;
727
- }
728
- const result = { ...value };
729
- for (const [legacyKey, currentKey] of Object.entries(legacyFilterKeyAliases)) {
730
- if (legacyKey in result) {
731
- if (!(currentKey in result)) {
732
- result[currentKey] = result[legacyKey];
733
- }
734
- delete result[legacyKey];
735
- }
736
- }
737
- return result;
738
- };
739
712
  /**
740
713
  * Validates an unknown payload against the supported public GraphQL AssetFiltersInput subset.
741
714
  *
@@ -745,7 +718,7 @@ const renameLegacyFilterKeys = (value) => {
745
718
  * @returns {ParseAssetFiltersInputResult} The stripped, validated subset or a validation error.
746
719
  */
747
720
  const parseAssetFiltersInput = (input) => {
748
- const parsed = assetFiltersInputSchema.safeParse(renameLegacyFilterKeys(stripNullProperties(input)));
721
+ const parsed = assetFiltersInputSchema.safeParse(stripNullProperties(input));
749
722
  if (!parsed.success) {
750
723
  return { success: false, error: parsed.error.message };
751
724
  }
@@ -848,14 +821,14 @@ const convertAssetFiltersInputToFilterBarValues = (input) => {
848
821
  if (parsed.data.siteTypes !== undefined) {
849
822
  filterBarValues.siteType = parsed.data.siteTypes;
850
823
  }
851
- if (parsed.data.deviceHealthTypes !== undefined) {
852
- filterBarValues.fleetHealthTypes = toValueNameArray(parsed.data.deviceHealthTypes);
824
+ if (parsed.data.fleetHealthTypes !== undefined) {
825
+ filterBarValues.fleetHealthTypes = toValueNameArray(parsed.data.fleetHealthTypes);
853
826
  }
854
- if (parsed.data.deviceHealthCategories !== undefined) {
855
- filterBarValues.fleetHealthCategories = toValueNameArray(parsed.data.deviceHealthCategories);
827
+ if (parsed.data.fleetHealthCategories !== undefined) {
828
+ filterBarValues.fleetHealthCategories = toValueNameArray(parsed.data.fleetHealthCategories);
856
829
  }
857
- if (parsed.data.deviceHealthDeviceStatuses !== undefined) {
858
- filterBarValues.fleetHealthStatus = toValueNameArray(parsed.data.deviceHealthDeviceStatuses);
830
+ if (parsed.data.fleetHealthDeviceStatuses !== undefined) {
831
+ filterBarValues.fleetHealthStatus = toValueNameArray(parsed.data.fleetHealthDeviceStatuses);
859
832
  }
860
833
  if (parsed.data.accessManagementDesiredModes !== undefined) {
861
834
  filterBarValues.accessManagementMode = parsed.data.accessManagementDesiredModes;
package/index.esm.js CHANGED
@@ -293,7 +293,6 @@ const accessManagementMode = {
293
293
  const assetActivityState = {
294
294
  IDLING: "IDLING",
295
295
  STOPPED: "STOPPED",
296
- UNDEFINED: "UNDEFINED",
297
296
  UNKNOWN: "UNKNOWN",
298
297
  WORKING: "WORKING",
299
298
  };
@@ -318,21 +317,21 @@ const assetType = {
318
317
  TOOL: "TOOL",
319
318
  VEHICLE: "VEHICLE",
320
319
  };
321
- const deviceHealthDeviceStatus = {
320
+ const fleetDataHealthDeviceStatus = {
322
321
  CRITICAL: "CRITICAL",
323
322
  LOW: "LOW",
324
323
  };
325
- const deviceHealthIssueCategory = {
324
+ const fleetDataHealthIssueCategory = {
326
325
  COVERAGE: "COVERAGE",
327
326
  DEVICE_BATTERY: "DEVICE_BATTERY",
328
327
  INSTALL_AND_CONFIGURATION: "INSTALL_AND_CONFIGURATION",
329
328
  NON_REPORTING_DEVICE: "NON_REPORTING_DEVICE",
330
329
  };
331
- const deviceHealthIssueState = {
330
+ const fleetDataHealthIssueState = {
332
331
  OPEN: "OPEN",
333
332
  RESOLVED: "RESOLVED",
334
333
  };
335
- const deviceHealthIssueType = {
334
+ const fleetDataHealthIssueType = {
336
335
  DATA_NOT_RECEIVED: "DATA_NOT_RECEIVED",
337
336
  DEVICE_BATTERY_APPROACHING_END_OF_LIFE: "DEVICE_BATTERY_APPROACHING_END_OF_LIFE",
338
337
  LOW_CELLULAR_COVERAGE: "LOW_CELLULAR_COVERAGE",
@@ -360,7 +359,6 @@ const rentalStatus = {
360
359
  RESERVED: "RESERVED",
361
360
  RETURNED: "RETURNED",
362
361
  TRANSFER: "TRANSFER",
363
- UNDEFINED: "UNDEFINED",
364
362
  };
365
363
  const servicePlanStatus = {
366
364
  COMPLETE: "COMPLETE",
@@ -514,16 +512,16 @@ const useActiveAssetFilters = (filters) => {
514
512
  telematicsDeviceIsConnected: valueBooleanOrUndefined(filters.telematicsConnected),
515
513
  activeFilter: activeFilterToGraphQL(filters.activeFilter),
516
514
  owningDepotSiteIds: valueNameArrayOrUndefined(filters.siteDepotOwnershipIds),
517
- deviceHealthTypes: fixTypes(valueNameArrayOrUndefined(filters.fleetHealthTypes), deviceHealthIssueType),
518
- deviceHealthCategories: fixTypes(valueNameArrayOrUndefined(filters.fleetHealthCategories), deviceHealthIssueCategory),
519
- deviceHealthStates: (() => {
515
+ fleetHealthTypes: fixTypes(valueNameArrayOrUndefined(filters.fleetHealthTypes), fleetDataHealthIssueType),
516
+ fleetHealthCategories: fixTypes(valueNameArrayOrUndefined(filters.fleetHealthCategories), fleetDataHealthIssueCategory),
517
+ fleetHealthStates: (() => {
520
518
  const hasSubFilters = (valueNameArrayOrUndefined(filters.fleetHealthTypes)?.length ?? 0) > 0 ||
521
519
  (valueNameArrayOrUndefined(filters.fleetHealthCategories)?.length ?? 0) > 0 ||
522
520
  (valueNameArrayOrUndefined(filters.fleetHealthStatus)?.length ?? 0) > 0;
523
521
  // Default to OPEN when sub-filters are active
524
- return fixTypes(hasSubFilters ? [deviceHealthIssueState.OPEN] : undefined, deviceHealthIssueState);
522
+ return fixTypes(hasSubFilters ? [fleetDataHealthIssueState.OPEN] : undefined, fleetDataHealthIssueState);
525
523
  })(),
526
- deviceHealthDeviceStatuses: fixTypes(valueNameArrayOrUndefined(filters.fleetHealthStatus), deviceHealthDeviceStatus),
524
+ fleetHealthDeviceStatuses: fixTypes(valueNameArrayOrUndefined(filters.fleetHealthStatus), fleetDataHealthDeviceStatus),
527
525
  deviceTypes: valueNameArrayOrUndefined(filters.deviceTypes),
528
526
  firmwareVersion: valueNameArrayOrUndefined(filters.firmwareVersion),
529
527
  can1Profile: valueNameArrayOrUndefined(filters.can1Profile),
@@ -622,9 +620,9 @@ const assetFiltersInputSchema = z
622
620
  customerIds: z.array(z.string()).optional(),
623
621
  deviceTypes: z.array(z.string()).optional(),
624
622
  firmwareVersion: z.array(z.string()).optional(),
625
- deviceHealthCategories: z.array(z.nativeEnum(deviceHealthIssueCategory)).optional(),
626
- deviceHealthDeviceStatuses: z.array(z.nativeEnum(deviceHealthDeviceStatus)).optional(),
627
- deviceHealthTypes: z.array(z.nativeEnum(deviceHealthIssueType)).optional(),
623
+ fleetHealthCategories: z.array(z.nativeEnum(fleetDataHealthIssueCategory)).optional(),
624
+ fleetHealthDeviceStatuses: z.array(z.nativeEnum(fleetDataHealthDeviceStatus)).optional(),
625
+ fleetHealthTypes: z.array(z.nativeEnum(fleetDataHealthIssueType)).optional(),
628
626
  groups: z.array(z.string()).optional(),
629
627
  customFields: z.array(customFieldSchema).optional(),
630
628
  insightsFilters: z
@@ -709,31 +707,6 @@ const stripNullProperties = (value) => {
709
707
  }
710
708
  return value;
711
709
  };
712
- /**
713
- * Legacy → current AssetFiltersInput key aliases. Old shared /goto links may still carry the
714
- * pre-rename `fleetHealth*` keys, so they are normalized to the current `deviceHealth*` keys
715
- * instead of being silently stripped.
716
- */
717
- const legacyFilterKeyAliases = {
718
- fleetHealthCategories: "deviceHealthCategories",
719
- fleetHealthDeviceStatuses: "deviceHealthDeviceStatuses",
720
- fleetHealthTypes: "deviceHealthTypes",
721
- };
722
- const renameLegacyFilterKeys = (value) => {
723
- if (!isPlainObject(value)) {
724
- return value;
725
- }
726
- const result = { ...value };
727
- for (const [legacyKey, currentKey] of Object.entries(legacyFilterKeyAliases)) {
728
- if (legacyKey in result) {
729
- if (!(currentKey in result)) {
730
- result[currentKey] = result[legacyKey];
731
- }
732
- delete result[legacyKey];
733
- }
734
- }
735
- return result;
736
- };
737
710
  /**
738
711
  * Validates an unknown payload against the supported public GraphQL AssetFiltersInput subset.
739
712
  *
@@ -743,7 +716,7 @@ const renameLegacyFilterKeys = (value) => {
743
716
  * @returns {ParseAssetFiltersInputResult} The stripped, validated subset or a validation error.
744
717
  */
745
718
  const parseAssetFiltersInput = (input) => {
746
- const parsed = assetFiltersInputSchema.safeParse(renameLegacyFilterKeys(stripNullProperties(input)));
719
+ const parsed = assetFiltersInputSchema.safeParse(stripNullProperties(input));
747
720
  if (!parsed.success) {
748
721
  return { success: false, error: parsed.error.message };
749
722
  }
@@ -846,14 +819,14 @@ const convertAssetFiltersInputToFilterBarValues = (input) => {
846
819
  if (parsed.data.siteTypes !== undefined) {
847
820
  filterBarValues.siteType = parsed.data.siteTypes;
848
821
  }
849
- if (parsed.data.deviceHealthTypes !== undefined) {
850
- filterBarValues.fleetHealthTypes = toValueNameArray(parsed.data.deviceHealthTypes);
822
+ if (parsed.data.fleetHealthTypes !== undefined) {
823
+ filterBarValues.fleetHealthTypes = toValueNameArray(parsed.data.fleetHealthTypes);
851
824
  }
852
- if (parsed.data.deviceHealthCategories !== undefined) {
853
- filterBarValues.fleetHealthCategories = toValueNameArray(parsed.data.deviceHealthCategories);
825
+ if (parsed.data.fleetHealthCategories !== undefined) {
826
+ filterBarValues.fleetHealthCategories = toValueNameArray(parsed.data.fleetHealthCategories);
854
827
  }
855
- if (parsed.data.deviceHealthDeviceStatuses !== undefined) {
856
- filterBarValues.fleetHealthStatus = toValueNameArray(parsed.data.deviceHealthDeviceStatuses);
828
+ if (parsed.data.fleetHealthDeviceStatuses !== undefined) {
829
+ filterBarValues.fleetHealthStatus = toValueNameArray(parsed.data.fleetHealthDeviceStatuses);
857
830
  }
858
831
  if (parsed.data.accessManagementDesiredModes !== undefined) {
859
832
  filterBarValues.accessManagementMode = parsed.data.accessManagementDesiredModes;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/filters-graphql-hook",
3
- "version": "2.3.10-alpha-a94628b77e7.0",
3
+ "version": "2.3.10",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -10,14 +10,14 @@
10
10
  "@graphql-codegen/cli": "^5.0.3",
11
11
  "@graphql-typed-document-node/core": "^3.2.0",
12
12
  "zod": "^3.25.76",
13
- "@trackunit/iris-app-build-utilities": "2.1.6-alpha-a94628b77e7.0",
14
- "@trackunit/filters-filter-bar": "2.2.7-alpha-a94628b77e7.0",
15
- "@trackunit/shared-utils": "1.15.67-alpha-a94628b77e7.0",
16
- "@trackunit/iris-app-api": "2.1.5-alpha-a94628b77e7.0",
17
- "@trackunit/react-core-contexts-test": "1.17.74-alpha-a94628b77e7.0",
18
- "@trackunit/i18n-library-translation": "2.1.5-alpha-a94628b77e7.0",
19
- "@trackunit/iris-app-runtime-core-api": "1.16.73-alpha-a94628b77e7.0",
20
- "@trackunit/react-core-hooks": "1.18.5-alpha-a94628b77e7.0"
13
+ "@trackunit/iris-app-build-utilities": "2.1.6",
14
+ "@trackunit/filters-filter-bar": "2.2.7",
15
+ "@trackunit/shared-utils": "1.15.67",
16
+ "@trackunit/iris-app-api": "2.1.5",
17
+ "@trackunit/react-core-contexts-test": "1.17.74",
18
+ "@trackunit/i18n-library-translation": "2.1.5",
19
+ "@trackunit/iris-app-runtime-core-api": "1.16.73",
20
+ "@trackunit/react-core-hooks": "1.18.5"
21
21
  },
22
22
  "peerDependencies": {
23
23
  "@apollo/client": "^3.13.8",
@@ -144,7 +144,6 @@ export type AreaFilterGeoJsonGeometryType = (typeof areaFilterGeoJsonGeometryTyp
144
144
  export declare const assetActivityState: {
145
145
  readonly IDLING: "IDLING";
146
146
  readonly STOPPED: "STOPPED";
147
- readonly UNDEFINED: "UNDEFINED";
148
147
  readonly UNKNOWN: "UNKNOWN";
149
148
  readonly WORKING: "WORKING";
150
149
  };
@@ -404,37 +403,6 @@ export declare const customerTypeSFS: {
404
403
  readonly SERVICE: "SERVICE";
405
404
  };
406
405
  export type CustomerTypeSFS = (typeof customerTypeSFS)[keyof typeof customerTypeSFS];
407
- export declare const deviceHealthDeviceStatus: {
408
- readonly CRITICAL: "CRITICAL";
409
- readonly LOW: "LOW";
410
- };
411
- export type DeviceHealthDeviceStatus = (typeof deviceHealthDeviceStatus)[keyof typeof deviceHealthDeviceStatus];
412
- export declare const deviceHealthIssueCategory: {
413
- readonly COVERAGE: "COVERAGE";
414
- readonly DEVICE_BATTERY: "DEVICE_BATTERY";
415
- readonly INSTALL_AND_CONFIGURATION: "INSTALL_AND_CONFIGURATION";
416
- readonly NON_REPORTING_DEVICE: "NON_REPORTING_DEVICE";
417
- };
418
- export type DeviceHealthIssueCategory = (typeof deviceHealthIssueCategory)[keyof typeof deviceHealthIssueCategory];
419
- export declare const deviceHealthIssueState: {
420
- readonly OPEN: "OPEN";
421
- readonly RESOLVED: "RESOLVED";
422
- };
423
- export type DeviceHealthIssueState = (typeof deviceHealthIssueState)[keyof typeof deviceHealthIssueState];
424
- export declare const deviceHealthIssueType: {
425
- readonly DATA_NOT_RECEIVED: "DATA_NOT_RECEIVED";
426
- readonly DEVICE_BATTERY_APPROACHING_END_OF_LIFE: "DEVICE_BATTERY_APPROACHING_END_OF_LIFE";
427
- readonly LOW_CELLULAR_COVERAGE: "LOW_CELLULAR_COVERAGE";
428
- readonly LOW_DEVICE_BATTERY: "LOW_DEVICE_BATTERY";
429
- readonly LOW_DEVICE_INPUT_VOLTAGE: "LOW_DEVICE_INPUT_VOLTAGE";
430
- readonly LOW_GPS_COVERAGE: "LOW_GPS_COVERAGE";
431
- readonly NO_CAN_DATA_CONFIGURATION: "NO_CAN_DATA_CONFIGURATION";
432
- readonly OPERATING_HOURS_FROM_CAN_MODIFIED: "OPERATING_HOURS_FROM_CAN_MODIFIED";
433
- readonly OPERATING_HOURS_REPORTING_0_HOURS_PER_DAY: "OPERATING_HOURS_REPORTING_0_HOURS_PER_DAY";
434
- readonly OPERATING_HOURS_REPORTING_24_HOURS_PER_DAY: "OPERATING_HOURS_REPORTING_24_HOURS_PER_DAY";
435
- readonly UNUSUAL_OPERATING_HOURS: "UNUSUAL_OPERATING_HOURS";
436
- };
437
- export type DeviceHealthIssueType = (typeof deviceHealthIssueType)[keyof typeof deviceHealthIssueType];
438
406
  export declare const digitalKeyMode: {
439
407
  readonly DISABLED: "DISABLED";
440
408
  readonly LOCKED_FOR_ALL: "LOCKED_FOR_ALL";
@@ -533,7 +501,6 @@ export declare const rentalStatus: {
533
501
  readonly RESERVED: "RESERVED";
534
502
  readonly RETURNED: "RETURNED";
535
503
  readonly TRANSFER: "TRANSFER";
536
- readonly UNDEFINED: "UNDEFINED";
537
504
  };
538
505
  export type RentalStatus = (typeof rentalStatus)[keyof typeof rentalStatus];
539
506
  export declare const servicePlanStatus: {
@@ -626,16 +593,6 @@ export type AssetFiltersInput = {
626
593
  customerIds?: InputMaybe<Array<Scalars["ID"]["input"]>>;
627
594
  /** List of customer types */
628
595
  customerTypes?: InputMaybe<Array<CustomerTypeSFS>>;
629
- /** Filter by Device Health Categories */
630
- deviceHealthCategories?: InputMaybe<Array<DeviceHealthIssueCategory>>;
631
- /** Filter by Device Health datetime range */
632
- deviceHealthDateTimeRange?: InputMaybe<DateTimeRange>;
633
- /** Filter by Device Health device statuses */
634
- deviceHealthDeviceStatuses?: InputMaybe<Array<DeviceHealthDeviceStatus>>;
635
- /** Filter by Device Health states */
636
- deviceHealthStates?: InputMaybe<Array<DeviceHealthIssueState>>;
637
- /** Filter by Device Health Types */
638
- deviceHealthTypes?: InputMaybe<Array<DeviceHealthIssueType>>;
639
596
  /** Filter by telematics device types */
640
597
  deviceTypes?: InputMaybe<Array<Scalars["String"]["input"]>>;
641
598
  /**
@@ -647,30 +604,20 @@ export type AssetFiltersInput = {
647
604
  externalReferences?: InputMaybe<Array<Scalars["String"]["input"]>>;
648
605
  /** Filter by reported firmware versions */
649
606
  firmwareVersion?: InputMaybe<Array<Scalars["String"]["input"]>>;
650
- /**
651
- * Filter by Fleet Health Categories
652
- * @deprecated Use `deviceHealthCategories` instead
653
- */
607
+ /** Filter by Fleet Health Categories */
654
608
  fleetHealthCategories?: InputMaybe<Array<FleetDataHealthIssueCategory>>;
655
609
  /**
656
- * Filter by Fleet Health datetime range
657
- * @deprecated Use `deviceHealthDateTimeRange` instead
610
+ * Filter by Fleet Health date range
611
+ * @deprecated Use fleetHealthDateTimeRange instead
658
612
  */
613
+ fleetHealthDateRange?: InputMaybe<DateRange>;
614
+ /** Filter by Fleet Health datetime range */
659
615
  fleetHealthDateTimeRange?: InputMaybe<DateTimeRange>;
660
- /**
661
- * Filter by Fleet Health device statuses
662
- * @deprecated Use `deviceHealthDeviceStatuses` instead
663
- */
616
+ /** Filter by Fleet Health device statuses */
664
617
  fleetHealthDeviceStatuses?: InputMaybe<Array<FleetDataHealthDeviceStatus>>;
665
- /**
666
- * Filter by Fleet Health states
667
- * @deprecated Use `deviceHealthStates` instead
668
- */
618
+ /** Filter by Fleet Health states */
669
619
  fleetHealthStates?: InputMaybe<Array<FleetDataHealthIssueState>>;
670
- /**
671
- * Filter by Fleet Health Types
672
- * @deprecated Use `deviceHealthTypes` instead
673
- */
620
+ /** Filter by Fleet Health Types */
674
621
  fleetHealthTypes?: InputMaybe<Array<FleetDataHealthIssueType>>;
675
622
  /** Filter by if the asset is followed */
676
623
  followed?: InputMaybe<Scalars["Boolean"]["input"]>;
@@ -832,6 +779,12 @@ export type CustomFieldOwnerInput = {
832
779
  /** The owner type of the custom field owner input. */
833
780
  ownerType: CustomFieldOwnerType;
834
781
  };
782
+ export type DateRange = {
783
+ /** end date */
784
+ end: Scalars["DateTime"]["input"];
785
+ /** start date */
786
+ start: Scalars["DateTime"]["input"];
787
+ };
835
788
  export type DateTimeRange = {
836
789
  /** Start date */
837
790
  from?: InputMaybe<Scalars["DateTime"]["input"]>;
@@ -17,7 +17,6 @@ declare const assetFiltersInputSchema: z.ZodObject<{
17
17
  activities: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<{
18
18
  readonly IDLING: "IDLING";
19
19
  readonly STOPPED: "STOPPED";
20
- readonly UNDEFINED: "UNDEFINED";
21
20
  readonly UNKNOWN: "UNKNOWN";
22
21
  readonly WORKING: "WORKING";
23
22
  }>, "many">>;
@@ -93,17 +92,17 @@ declare const assetFiltersInputSchema: z.ZodObject<{
93
92
  customerIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
94
93
  deviceTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
95
94
  firmwareVersion: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
96
- deviceHealthCategories: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<{
95
+ fleetHealthCategories: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<{
97
96
  readonly COVERAGE: "COVERAGE";
98
97
  readonly DEVICE_BATTERY: "DEVICE_BATTERY";
99
98
  readonly INSTALL_AND_CONFIGURATION: "INSTALL_AND_CONFIGURATION";
100
99
  readonly NON_REPORTING_DEVICE: "NON_REPORTING_DEVICE";
101
100
  }>, "many">>;
102
- deviceHealthDeviceStatuses: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<{
101
+ fleetHealthDeviceStatuses: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<{
103
102
  readonly CRITICAL: "CRITICAL";
104
103
  readonly LOW: "LOW";
105
104
  }>, "many">>;
106
- deviceHealthTypes: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<{
105
+ fleetHealthTypes: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<{
107
106
  readonly DATA_NOT_RECEIVED: "DATA_NOT_RECEIVED";
108
107
  readonly DEVICE_BATTERY_APPROACHING_END_OF_LIFE: "DEVICE_BATTERY_APPROACHING_END_OF_LIFE";
109
108
  readonly LOW_CELLULAR_COVERAGE: "LOW_CELLULAR_COVERAGE";
@@ -406,7 +405,6 @@ declare const assetFiltersInputSchema: z.ZodObject<{
406
405
  readonly RESERVED: "RESERVED";
407
406
  readonly RETURNED: "RETURNED";
408
407
  readonly TRANSFER: "TRANSFER";
409
- readonly UNDEFINED: "UNDEFINED";
410
408
  }>, "many">>;
411
409
  searchQuery: z.ZodOptional<z.ZodString>;
412
410
  serviceBooked: z.ZodOptional<z.ZodArray<z.ZodBoolean, "many">>;
@@ -454,7 +452,7 @@ declare const assetFiltersInputSchema: z.ZodObject<{
454
452
  }, "strip", z.ZodTypeAny, {
455
453
  accessManagementDesiredModes?: ("LOCKED_FOR_ALL" | "UNKNOWN" | "UNLOCKED_FOR_ALL" | "UNLOCKED_FOR_KEY" | "UNSUPPORTED")[] | undefined;
456
454
  activeFilter?: boolean | undefined;
457
- activities?: ("UNKNOWN" | "IDLING" | "STOPPED" | "UNDEFINED" | "WORKING")[] | undefined;
455
+ activities?: ("UNKNOWN" | "IDLING" | "STOPPED" | "WORKING")[] | undefined;
458
456
  area?: {
459
457
  type: "Polygon";
460
458
  coordinates: ([number, number] | [number, number, number])[][];
@@ -486,11 +484,11 @@ declare const assetFiltersInputSchema: z.ZodObject<{
486
484
  stringWildcardValue?: string | undefined;
487
485
  }[] | undefined;
488
486
  customerIds?: string[] | undefined;
489
- deviceHealthCategories?: ("COVERAGE" | "DEVICE_BATTERY" | "INSTALL_AND_CONFIGURATION" | "NON_REPORTING_DEVICE")[] | undefined;
490
- deviceHealthDeviceStatuses?: ("CRITICAL" | "LOW")[] | undefined;
491
- deviceHealthTypes?: ("DATA_NOT_RECEIVED" | "DEVICE_BATTERY_APPROACHING_END_OF_LIFE" | "LOW_CELLULAR_COVERAGE" | "LOW_DEVICE_BATTERY" | "LOW_DEVICE_INPUT_VOLTAGE" | "LOW_GPS_COVERAGE" | "NO_CAN_DATA_CONFIGURATION" | "OPERATING_HOURS_FROM_CAN_MODIFIED" | "OPERATING_HOURS_REPORTING_0_HOURS_PER_DAY" | "OPERATING_HOURS_REPORTING_24_HOURS_PER_DAY" | "UNUSUAL_OPERATING_HOURS")[] | undefined;
492
487
  deviceTypes?: string[] | undefined;
493
488
  firmwareVersion?: string[] | undefined;
489
+ fleetHealthCategories?: ("COVERAGE" | "DEVICE_BATTERY" | "INSTALL_AND_CONFIGURATION" | "NON_REPORTING_DEVICE")[] | undefined;
490
+ fleetHealthDeviceStatuses?: ("CRITICAL" | "LOW")[] | undefined;
491
+ fleetHealthTypes?: ("DATA_NOT_RECEIVED" | "DEVICE_BATTERY_APPROACHING_END_OF_LIFE" | "LOW_CELLULAR_COVERAGE" | "LOW_DEVICE_BATTERY" | "LOW_DEVICE_INPUT_VOLTAGE" | "LOW_GPS_COVERAGE" | "NO_CAN_DATA_CONFIGURATION" | "OPERATING_HOURS_FROM_CAN_MODIFIED" | "OPERATING_HOURS_REPORTING_0_HOURS_PER_DAY" | "OPERATING_HOURS_REPORTING_24_HOURS_PER_DAY" | "UNUSUAL_OPERATING_HOURS")[] | undefined;
494
492
  geometry?: {
495
493
  type: "Polygon";
496
494
  coordinates: ([number, number] | [number, number, number])[][];
@@ -558,7 +556,7 @@ declare const assetFiltersInputSchema: z.ZodObject<{
558
556
  rentalContractOrderNumbers?: string[] | undefined;
559
557
  rentalContractReferenceCodeDescriptionQuery?: string | undefined;
560
558
  rentalContractReferenceCodes?: string[] | undefined;
561
- rentalStatuses?: ("UNDEFINED" | "OTHER" | "AVAILABLE" | "IN_REPAIR" | "NOT_ON_CONTRACT" | "OFF_RENT" | "ON_RENT" | "PICK_UP_READY" | "RESERVED" | "RETURNED" | "TRANSFER")[] | undefined;
559
+ rentalStatuses?: ("OTHER" | "AVAILABLE" | "IN_REPAIR" | "NOT_ON_CONTRACT" | "OFF_RENT" | "ON_RENT" | "PICK_UP_READY" | "RESERVED" | "RETURNED" | "TRANSFER")[] | undefined;
562
560
  searchQuery?: string | undefined;
563
561
  serviceBooked?: boolean[] | undefined;
564
562
  servicePlanAssignments?: ("UNKNOWN" | "COMPLETE" | "DRAFT" | "FULLY_CONFIGURED" | "HAS_PLAN" | "HAS_SERVICE_PROVIDER" | "MISSING_PLAN" | "MISSING_PROVIDER" | "OVERDUE" | "PLANNED" | "UPCOMING")[] | undefined;
@@ -573,7 +571,7 @@ declare const assetFiltersInputSchema: z.ZodObject<{
573
571
  }, {
574
572
  accessManagementDesiredModes?: ("LOCKED_FOR_ALL" | "UNKNOWN" | "UNLOCKED_FOR_ALL" | "UNLOCKED_FOR_KEY" | "UNSUPPORTED")[] | undefined;
575
573
  activeFilter?: boolean | undefined;
576
- activities?: ("UNKNOWN" | "IDLING" | "STOPPED" | "UNDEFINED" | "WORKING")[] | undefined;
574
+ activities?: ("UNKNOWN" | "IDLING" | "STOPPED" | "WORKING")[] | undefined;
577
575
  area?: {
578
576
  type: "Polygon";
579
577
  coordinates: ([number, number] | [number, number, number])[][];
@@ -605,11 +603,11 @@ declare const assetFiltersInputSchema: z.ZodObject<{
605
603
  stringWildcardValue?: string | undefined;
606
604
  }[] | undefined;
607
605
  customerIds?: string[] | undefined;
608
- deviceHealthCategories?: ("COVERAGE" | "DEVICE_BATTERY" | "INSTALL_AND_CONFIGURATION" | "NON_REPORTING_DEVICE")[] | undefined;
609
- deviceHealthDeviceStatuses?: ("CRITICAL" | "LOW")[] | undefined;
610
- deviceHealthTypes?: ("DATA_NOT_RECEIVED" | "DEVICE_BATTERY_APPROACHING_END_OF_LIFE" | "LOW_CELLULAR_COVERAGE" | "LOW_DEVICE_BATTERY" | "LOW_DEVICE_INPUT_VOLTAGE" | "LOW_GPS_COVERAGE" | "NO_CAN_DATA_CONFIGURATION" | "OPERATING_HOURS_FROM_CAN_MODIFIED" | "OPERATING_HOURS_REPORTING_0_HOURS_PER_DAY" | "OPERATING_HOURS_REPORTING_24_HOURS_PER_DAY" | "UNUSUAL_OPERATING_HOURS")[] | undefined;
611
606
  deviceTypes?: string[] | undefined;
612
607
  firmwareVersion?: string[] | undefined;
608
+ fleetHealthCategories?: ("COVERAGE" | "DEVICE_BATTERY" | "INSTALL_AND_CONFIGURATION" | "NON_REPORTING_DEVICE")[] | undefined;
609
+ fleetHealthDeviceStatuses?: ("CRITICAL" | "LOW")[] | undefined;
610
+ fleetHealthTypes?: ("DATA_NOT_RECEIVED" | "DEVICE_BATTERY_APPROACHING_END_OF_LIFE" | "LOW_CELLULAR_COVERAGE" | "LOW_DEVICE_BATTERY" | "LOW_DEVICE_INPUT_VOLTAGE" | "LOW_GPS_COVERAGE" | "NO_CAN_DATA_CONFIGURATION" | "OPERATING_HOURS_FROM_CAN_MODIFIED" | "OPERATING_HOURS_REPORTING_0_HOURS_PER_DAY" | "OPERATING_HOURS_REPORTING_24_HOURS_PER_DAY" | "UNUSUAL_OPERATING_HOURS")[] | undefined;
613
611
  geometry?: {
614
612
  type: "Polygon";
615
613
  coordinates: ([number, number] | [number, number, number])[][];
@@ -677,7 +675,7 @@ declare const assetFiltersInputSchema: z.ZodObject<{
677
675
  rentalContractOrderNumbers?: string[] | undefined;
678
676
  rentalContractReferenceCodeDescriptionQuery?: string | undefined;
679
677
  rentalContractReferenceCodes?: string[] | undefined;
680
- rentalStatuses?: ("UNDEFINED" | "OTHER" | "AVAILABLE" | "IN_REPAIR" | "NOT_ON_CONTRACT" | "OFF_RENT" | "ON_RENT" | "PICK_UP_READY" | "RESERVED" | "RETURNED" | "TRANSFER")[] | undefined;
678
+ rentalStatuses?: ("OTHER" | "AVAILABLE" | "IN_REPAIR" | "NOT_ON_CONTRACT" | "OFF_RENT" | "ON_RENT" | "PICK_UP_READY" | "RESERVED" | "RETURNED" | "TRANSFER")[] | undefined;
681
679
  searchQuery?: string | undefined;
682
680
  serviceBooked?: boolean[] | undefined;
683
681
  servicePlanAssignments?: ("UNKNOWN" | "COMPLETE" | "DRAFT" | "FULLY_CONFIGURED" | "HAS_PLAN" | "HAS_SERVICE_PROVIDER" | "MISSING_PLAN" | "MISSING_PROVIDER" | "OVERDUE" | "PLANNED" | "UPCOMING")[] | undefined;