@trackunit/filters-graphql-hook 0.0.17 → 0.0.23

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
@@ -162,34 +162,34 @@ input) => {
162
162
  };
163
163
 
164
164
  const assetActivityState = {
165
- Idling: "IDLING",
166
- Stopped: "STOPPED",
167
- Unknown: "UNKNOWN",
168
- Working: "WORKING",
165
+ IDLING: "IDLING",
166
+ STOPPED: "STOPPED",
167
+ UNKNOWN: "UNKNOWN",
168
+ WORKING: "WORKING",
169
169
  };
170
170
  const assetCriticalityState = {
171
- Critical: "CRITICAL",
172
- Low: "LOW",
173
- None: "NONE",
171
+ CRITICAL: "CRITICAL",
172
+ LOW: "LOW",
173
+ NONE: "NONE",
174
174
  };
175
175
  const assetLastSeen = {
176
- Last_7Days: "LAST_7_DAYS",
177
- Last_24Hours: "LAST_24_HOURS",
178
- Last_30Days: "LAST_30_DAYS",
179
- LastHour: "LAST_HOUR",
180
- OlderThan_30Days: "OLDER_THAN_30_DAYS",
176
+ LAST_7_DAYS: "LAST_7_DAYS",
177
+ LAST_24_HOURS: "LAST_24_HOURS",
178
+ LAST_30_DAYS: "LAST_30_DAYS",
179
+ LAST_HOUR: "LAST_HOUR",
180
+ OLDER_THAN_30_DAYS: "OLDER_THAN_30_DAYS",
181
181
  };
182
182
  const assetType = {
183
- Attachment: "ATTACHMENT",
184
- Equipment: "EQUIPMENT",
185
- Gateway: "GATEWAY",
186
- Machine: "MACHINE",
187
- Other: "OTHER",
188
- Tool: "TOOL",
183
+ ATTACHMENT: "ATTACHMENT",
184
+ EQUIPMENT: "EQUIPMENT",
185
+ GATEWAY: "GATEWAY",
186
+ MACHINE: "MACHINE",
187
+ OTHER: "OTHER",
188
+ TOOL: "TOOL",
189
189
  };
190
190
  const metadataCompleteness = {
191
- Complete: "COMPLETE",
192
- Partial: "PARTIAL",
191
+ COMPLETE: "COMPLETE",
192
+ PARTIAL: "PARTIAL",
193
193
  };
194
194
  const rentalStatus = {
195
195
  Available: "Available",
@@ -204,26 +204,26 @@ const rentalStatus = {
204
204
  Transfer: "Transfer",
205
205
  };
206
206
  const servicePlanStatus = {
207
- Complete: "COMPLETE",
208
- Draft: "DRAFT",
209
- FullyConfigured: "FULLY_CONFIGURED",
210
- HasPlan: "HAS_PLAN",
211
- HasServiceProvider: "HAS_SERVICE_PROVIDER",
212
- MissingPlan: "MISSING_PLAN",
213
- MissingProvider: "MISSING_PROVIDER",
214
- Overdue: "OVERDUE",
215
- Planned: "PLANNED",
216
- Unknown: "UNKNOWN",
217
- Upcoming: "UPCOMING",
207
+ COMPLETE: "COMPLETE",
208
+ DRAFT: "DRAFT",
209
+ FULLY_CONFIGURED: "FULLY_CONFIGURED",
210
+ HAS_PLAN: "HAS_PLAN",
211
+ HAS_SERVICE_PROVIDER: "HAS_SERVICE_PROVIDER",
212
+ MISSING_PLAN: "MISSING_PLAN",
213
+ MISSING_PROVIDER: "MISSING_PROVIDER",
214
+ OVERDUE: "OVERDUE",
215
+ PLANNED: "PLANNED",
216
+ UNKNOWN: "UNKNOWN",
217
+ UPCOMING: "UPCOMING",
218
218
  };
219
- const siteTypeSfs = {
220
- Area: "AREA",
221
- ClassicPoi: "CLASSIC_POI",
222
- ClassicZone: "CLASSIC_ZONE",
223
- ConstructionSite: "CONSTRUCTION_SITE",
224
- Depot: "DEPOT",
225
- NotOnSite: "NOT_ON_SITE",
226
- WorkPlace: "WORK_PLACE",
219
+ const siteTypeSFS = {
220
+ AREA: "AREA",
221
+ CLASSIC_POI: "CLASSIC_POI",
222
+ CLASSIC_ZONE: "CLASSIC_ZONE",
223
+ CONSTRUCTION_SITE: "CONSTRUCTION_SITE",
224
+ DEPOT: "DEPOT",
225
+ NOT_ON_SITE: "NOT_ON_SITE",
226
+ WORK_PLACE: "WORK_PLACE",
227
227
  };
228
228
 
229
229
  const CustomFieldPrefix$1 = "cf__";
@@ -321,7 +321,7 @@ const useActiveAssetFilters = (filters) => {
321
321
  partnerId: (_d = valueNameArrayOrUndefined(filters.partner)) === null || _d === void 0 ? void 0 : _d[0],
322
322
  groups: valueNameArrayOrUndefined(filters.groups),
323
323
  siteIds: valueNameArrayOrUndefined(filters.siteIds),
324
- siteTypes: fixTypes(filters.siteType, siteTypeSfs),
324
+ siteTypes: fixTypes(filters.siteType, siteTypeSFS),
325
325
  rentalCustomerName: stringArrayOrUndefined(filters.rentalCustomerName),
326
326
  rentalStatus: fixTypes(filters.rentalStatus, rentalStatus),
327
327
  customFields: valuesIfNotEmpty(customFields),
@@ -383,7 +383,10 @@ const useAssetQueryFilters = (props) => {
383
383
  // filters.customFields && filters.customFields.length > 0
384
384
  // ? filters.customFields.map(customField => customField.definitionId!)
385
385
  // : undefined,
386
- definitionIds: undefined,
386
+ definitionIds: null,
387
+ before: null,
388
+ after: null,
389
+ last: null,
387
390
  },
388
391
  }), [filters, props.first, sort, systemOfMeasurement]);
389
392
  };
package/index.esm.js CHANGED
@@ -158,34 +158,34 @@ input) => {
158
158
  };
159
159
 
160
160
  const assetActivityState = {
161
- Idling: "IDLING",
162
- Stopped: "STOPPED",
163
- Unknown: "UNKNOWN",
164
- Working: "WORKING",
161
+ IDLING: "IDLING",
162
+ STOPPED: "STOPPED",
163
+ UNKNOWN: "UNKNOWN",
164
+ WORKING: "WORKING",
165
165
  };
166
166
  const assetCriticalityState = {
167
- Critical: "CRITICAL",
168
- Low: "LOW",
169
- None: "NONE",
167
+ CRITICAL: "CRITICAL",
168
+ LOW: "LOW",
169
+ NONE: "NONE",
170
170
  };
171
171
  const assetLastSeen = {
172
- Last_7Days: "LAST_7_DAYS",
173
- Last_24Hours: "LAST_24_HOURS",
174
- Last_30Days: "LAST_30_DAYS",
175
- LastHour: "LAST_HOUR",
176
- OlderThan_30Days: "OLDER_THAN_30_DAYS",
172
+ LAST_7_DAYS: "LAST_7_DAYS",
173
+ LAST_24_HOURS: "LAST_24_HOURS",
174
+ LAST_30_DAYS: "LAST_30_DAYS",
175
+ LAST_HOUR: "LAST_HOUR",
176
+ OLDER_THAN_30_DAYS: "OLDER_THAN_30_DAYS",
177
177
  };
178
178
  const assetType = {
179
- Attachment: "ATTACHMENT",
180
- Equipment: "EQUIPMENT",
181
- Gateway: "GATEWAY",
182
- Machine: "MACHINE",
183
- Other: "OTHER",
184
- Tool: "TOOL",
179
+ ATTACHMENT: "ATTACHMENT",
180
+ EQUIPMENT: "EQUIPMENT",
181
+ GATEWAY: "GATEWAY",
182
+ MACHINE: "MACHINE",
183
+ OTHER: "OTHER",
184
+ TOOL: "TOOL",
185
185
  };
186
186
  const metadataCompleteness = {
187
- Complete: "COMPLETE",
188
- Partial: "PARTIAL",
187
+ COMPLETE: "COMPLETE",
188
+ PARTIAL: "PARTIAL",
189
189
  };
190
190
  const rentalStatus = {
191
191
  Available: "Available",
@@ -200,26 +200,26 @@ const rentalStatus = {
200
200
  Transfer: "Transfer",
201
201
  };
202
202
  const servicePlanStatus = {
203
- Complete: "COMPLETE",
204
- Draft: "DRAFT",
205
- FullyConfigured: "FULLY_CONFIGURED",
206
- HasPlan: "HAS_PLAN",
207
- HasServiceProvider: "HAS_SERVICE_PROVIDER",
208
- MissingPlan: "MISSING_PLAN",
209
- MissingProvider: "MISSING_PROVIDER",
210
- Overdue: "OVERDUE",
211
- Planned: "PLANNED",
212
- Unknown: "UNKNOWN",
213
- Upcoming: "UPCOMING",
203
+ COMPLETE: "COMPLETE",
204
+ DRAFT: "DRAFT",
205
+ FULLY_CONFIGURED: "FULLY_CONFIGURED",
206
+ HAS_PLAN: "HAS_PLAN",
207
+ HAS_SERVICE_PROVIDER: "HAS_SERVICE_PROVIDER",
208
+ MISSING_PLAN: "MISSING_PLAN",
209
+ MISSING_PROVIDER: "MISSING_PROVIDER",
210
+ OVERDUE: "OVERDUE",
211
+ PLANNED: "PLANNED",
212
+ UNKNOWN: "UNKNOWN",
213
+ UPCOMING: "UPCOMING",
214
214
  };
215
- const siteTypeSfs = {
216
- Area: "AREA",
217
- ClassicPoi: "CLASSIC_POI",
218
- ClassicZone: "CLASSIC_ZONE",
219
- ConstructionSite: "CONSTRUCTION_SITE",
220
- Depot: "DEPOT",
221
- NotOnSite: "NOT_ON_SITE",
222
- WorkPlace: "WORK_PLACE",
215
+ const siteTypeSFS = {
216
+ AREA: "AREA",
217
+ CLASSIC_POI: "CLASSIC_POI",
218
+ CLASSIC_ZONE: "CLASSIC_ZONE",
219
+ CONSTRUCTION_SITE: "CONSTRUCTION_SITE",
220
+ DEPOT: "DEPOT",
221
+ NOT_ON_SITE: "NOT_ON_SITE",
222
+ WORK_PLACE: "WORK_PLACE",
223
223
  };
224
224
 
225
225
  const CustomFieldPrefix$1 = "cf__";
@@ -317,7 +317,7 @@ const useActiveAssetFilters = (filters) => {
317
317
  partnerId: (_d = valueNameArrayOrUndefined(filters.partner)) === null || _d === void 0 ? void 0 : _d[0],
318
318
  groups: valueNameArrayOrUndefined(filters.groups),
319
319
  siteIds: valueNameArrayOrUndefined(filters.siteIds),
320
- siteTypes: fixTypes(filters.siteType, siteTypeSfs),
320
+ siteTypes: fixTypes(filters.siteType, siteTypeSFS),
321
321
  rentalCustomerName: stringArrayOrUndefined(filters.rentalCustomerName),
322
322
  rentalStatus: fixTypes(filters.rentalStatus, rentalStatus),
323
323
  customFields: valuesIfNotEmpty(customFields),
@@ -379,7 +379,10 @@ const useAssetQueryFilters = (props) => {
379
379
  // filters.customFields && filters.customFields.length > 0
380
380
  // ? filters.customFields.map(customField => customField.definitionId!)
381
381
  // : undefined,
382
- definitionIds: undefined,
382
+ definitionIds: null,
383
+ before: null,
384
+ after: null,
385
+ last: null,
383
386
  },
384
387
  }), [filters, props.first, sort, systemOfMeasurement]);
385
388
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/filters-graphql-hook",
3
- "version": "0.0.17",
3
+ "version": "0.0.23",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -12,8 +12,8 @@ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/
12
12
  */
13
13
  declare const documents: {
14
14
  "query GetFilteredAssets($filters: AssetFiltersInput, $sort: AssetSortInput) {\n assets(filters: $filters, sort: $sort) {\n edges {\n cursor\n }\n }\n}": DocumentNode<types.GetFilteredAssetsQuery, types.Exact<{
15
- filters?: types.InputMaybe<types.AssetFiltersInput> | undefined;
16
- sort?: types.InputMaybe<types.AssetSortInput> | undefined;
15
+ filters: types.InputMaybe<types.AssetFiltersInput>;
16
+ sort: types.InputMaybe<types.AssetSortInput>;
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,90 +86,90 @@ export type Scalars = {
86
86
  };
87
87
  };
88
88
  export declare const assetActivityState: {
89
- readonly Idling: "IDLING";
90
- readonly Stopped: "STOPPED";
91
- readonly Unknown: "UNKNOWN";
92
- readonly Working: "WORKING";
89
+ readonly IDLING: "IDLING";
90
+ readonly STOPPED: "STOPPED";
91
+ readonly UNKNOWN: "UNKNOWN";
92
+ readonly WORKING: "WORKING";
93
93
  };
94
94
  export type AssetActivityState = (typeof assetActivityState)[keyof typeof assetActivityState];
95
95
  export declare const assetCriticalityState: {
96
- readonly Critical: "CRITICAL";
97
- readonly Low: "LOW";
98
- readonly None: "NONE";
96
+ readonly CRITICAL: "CRITICAL";
97
+ readonly LOW: "LOW";
98
+ readonly NONE: "NONE";
99
99
  };
100
100
  export type AssetCriticalityState = (typeof assetCriticalityState)[keyof typeof assetCriticalityState];
101
101
  export declare const assetLastSeen: {
102
- readonly Last_7Days: "LAST_7_DAYS";
103
- readonly Last_24Hours: "LAST_24_HOURS";
104
- readonly Last_30Days: "LAST_30_DAYS";
105
- readonly LastHour: "LAST_HOUR";
106
- readonly OlderThan_30Days: "OLDER_THAN_30_DAYS";
102
+ readonly LAST_7_DAYS: "LAST_7_DAYS";
103
+ readonly LAST_24_HOURS: "LAST_24_HOURS";
104
+ readonly LAST_30_DAYS: "LAST_30_DAYS";
105
+ readonly LAST_HOUR: "LAST_HOUR";
106
+ readonly OLDER_THAN_30_DAYS: "OLDER_THAN_30_DAYS";
107
107
  };
108
108
  export type AssetLastSeen = (typeof assetLastSeen)[keyof typeof assetLastSeen];
109
109
  export declare const assetSortByProperty: {
110
- readonly AccessManagement: "ACCESS_MANAGEMENT";
111
- readonly Activity: "ACTIVITY";
112
- readonly Brand: "BRAND";
113
- readonly Category: "CATEGORY";
114
- readonly Criticality: "CRITICALITY";
115
- readonly CustomField: "CUSTOM_FIELD";
116
- readonly ExternalReference: "EXTERNAL_REFERENCE";
117
- readonly Location: "LOCATION";
118
- readonly LocationUpdatedAt: "LOCATION_UPDATED_AT";
119
- readonly Model: "MODEL";
120
- readonly Name: "NAME";
121
- readonly OwnerAccountName: "OWNER_ACCOUNT_NAME";
122
- readonly ProductionYear: "PRODUCTION_YEAR";
123
- readonly SerialNumber: "SERIAL_NUMBER";
124
- readonly ServicePlanAssignmentStatus: "SERVICE_PLAN_ASSIGNMENT_STATUS";
125
- readonly ServicePlanOverdueness: "SERVICE_PLAN_OVERDUENESS";
126
- readonly ServicePlanStatus: "SERVICE_PLAN_STATUS";
127
- readonly TelematicsDeviceSerialNumber: "TELEMATICS_DEVICE_SERIAL_NUMBER";
128
- readonly Type: "TYPE";
110
+ readonly ACCESS_MANAGEMENT: "ACCESS_MANAGEMENT";
111
+ readonly ACTIVITY: "ACTIVITY";
112
+ readonly BRAND: "BRAND";
113
+ readonly CATEGORY: "CATEGORY";
114
+ readonly CRITICALITY: "CRITICALITY";
115
+ readonly CUSTOM_FIELD: "CUSTOM_FIELD";
116
+ readonly EXTERNAL_REFERENCE: "EXTERNAL_REFERENCE";
117
+ readonly LOCATION: "LOCATION";
118
+ readonly LOCATION_UPDATED_AT: "LOCATION_UPDATED_AT";
119
+ readonly MODEL: "MODEL";
120
+ readonly NAME: "NAME";
121
+ readonly OWNER_ACCOUNT_NAME: "OWNER_ACCOUNT_NAME";
122
+ readonly PRODUCTION_YEAR: "PRODUCTION_YEAR";
123
+ readonly SERIAL_NUMBER: "SERIAL_NUMBER";
124
+ readonly SERVICE_PLAN_ASSIGNMENT_STATUS: "SERVICE_PLAN_ASSIGNMENT_STATUS";
125
+ readonly SERVICE_PLAN_OVERDUENESS: "SERVICE_PLAN_OVERDUENESS";
126
+ readonly SERVICE_PLAN_STATUS: "SERVICE_PLAN_STATUS";
127
+ readonly TELEMATICS_DEVICE_SERIAL_NUMBER: "TELEMATICS_DEVICE_SERIAL_NUMBER";
128
+ readonly TYPE: "TYPE";
129
129
  };
130
130
  export type AssetSortByProperty = (typeof assetSortByProperty)[keyof typeof assetSortByProperty];
131
131
  export declare const assetType: {
132
- readonly Attachment: "ATTACHMENT";
133
- readonly Equipment: "EQUIPMENT";
134
- readonly Gateway: "GATEWAY";
135
- readonly Machine: "MACHINE";
136
- readonly Other: "OTHER";
137
- readonly Tool: "TOOL";
132
+ readonly ATTACHMENT: "ATTACHMENT";
133
+ readonly EQUIPMENT: "EQUIPMENT";
134
+ readonly GATEWAY: "GATEWAY";
135
+ readonly MACHINE: "MACHINE";
136
+ readonly OTHER: "OTHER";
137
+ readonly TOOL: "TOOL";
138
138
  };
139
139
  export type AssetType = (typeof assetType)[keyof typeof assetType];
140
140
  export declare const customFieldOwnerType: {
141
- readonly Account: "ACCOUNT";
142
- readonly IrisApp: "IRIS_APP";
143
- readonly Trackunit: "TRACKUNIT";
141
+ readonly ACCOUNT: "ACCOUNT";
142
+ readonly IRIS_APP: "IRIS_APP";
143
+ readonly TRACKUNIT: "TRACKUNIT";
144
144
  };
145
145
  export type CustomFieldOwnerType = (typeof customFieldOwnerType)[keyof typeof customFieldOwnerType];
146
- export declare const customerTypeSfs: {
147
- readonly Contractor: "CONTRACTOR";
148
- readonly Dealer: "DEALER";
149
- readonly Distributor: "DISTRIBUTOR";
150
- readonly NotOnCustomer: "NOT_ON_CUSTOMER";
151
- readonly Oem: "OEM";
152
- readonly Other: "OTHER";
153
- readonly Rental: "RENTAL";
154
- readonly Service: "SERVICE";
146
+ export declare const customerTypeSFS: {
147
+ readonly CONTRACTOR: "CONTRACTOR";
148
+ readonly DEALER: "DEALER";
149
+ readonly DISTRIBUTOR: "DISTRIBUTOR";
150
+ readonly NOT_ON_CUSTOMER: "NOT_ON_CUSTOMER";
151
+ readonly OEM: "OEM";
152
+ readonly OTHER: "OTHER";
153
+ readonly RENTAL: "RENTAL";
154
+ readonly SERVICE: "SERVICE";
155
155
  };
156
- export type CustomerTypeSfs = (typeof customerTypeSfs)[keyof typeof customerTypeSfs];
156
+ export type CustomerTypeSFS = (typeof customerTypeSFS)[keyof typeof customerTypeSFS];
157
157
  export declare const digitalKeyMode: {
158
- readonly Disabled: "DISABLED";
159
- readonly LockedForAll: "LOCKED_FOR_ALL";
160
- readonly NeverInitialized: "NEVER_INITIALIZED";
161
- readonly Unknown: "UNKNOWN";
162
- readonly UnlockedForAll: "UNLOCKED_FOR_ALL";
163
- readonly UnlockedForAllFixed: "UNLOCKED_FOR_ALL_FIXED";
164
- readonly UnlockedForKey: "UNLOCKED_FOR_KEY";
165
- readonly UnlockedForKeyAndPin: "UNLOCKED_FOR_KEY_AND_PIN";
166
- readonly UnlockedForPin: "UNLOCKED_FOR_PIN";
167
- readonly Unsupported: "UNSUPPORTED";
158
+ readonly DISABLED: "DISABLED";
159
+ readonly LOCKED_FOR_ALL: "LOCKED_FOR_ALL";
160
+ readonly NEVER_INITIALIZED: "NEVER_INITIALIZED";
161
+ readonly UNKNOWN: "UNKNOWN";
162
+ readonly UNLOCKED_FOR_ALL: "UNLOCKED_FOR_ALL";
163
+ readonly UNLOCKED_FOR_ALL_FIXED: "UNLOCKED_FOR_ALL_FIXED";
164
+ readonly UNLOCKED_FOR_KEY: "UNLOCKED_FOR_KEY";
165
+ readonly UNLOCKED_FOR_KEY_AND_PIN: "UNLOCKED_FOR_KEY_AND_PIN";
166
+ readonly UNLOCKED_FOR_PIN: "UNLOCKED_FOR_PIN";
167
+ readonly UNSUPPORTED: "UNSUPPORTED";
168
168
  };
169
169
  export type DigitalKeyMode = (typeof digitalKeyMode)[keyof typeof digitalKeyMode];
170
170
  export declare const metadataCompleteness: {
171
- readonly Complete: "COMPLETE";
172
- readonly Partial: "PARTIAL";
171
+ readonly COMPLETE: "COMPLETE";
172
+ readonly PARTIAL: "PARTIAL";
173
173
  };
174
174
  export type MetadataCompleteness = (typeof metadataCompleteness)[keyof typeof metadataCompleteness];
175
175
  export declare const rentalStatus: {
@@ -186,37 +186,37 @@ export declare const rentalStatus: {
186
186
  };
187
187
  export type RentalStatus = (typeof rentalStatus)[keyof typeof rentalStatus];
188
188
  export declare const servicePlanStatus: {
189
- readonly Complete: "COMPLETE";
190
- readonly Draft: "DRAFT";
191
- readonly FullyConfigured: "FULLY_CONFIGURED";
192
- readonly HasPlan: "HAS_PLAN";
193
- readonly HasServiceProvider: "HAS_SERVICE_PROVIDER";
194
- readonly MissingPlan: "MISSING_PLAN";
195
- readonly MissingProvider: "MISSING_PROVIDER";
196
- readonly Overdue: "OVERDUE";
197
- readonly Planned: "PLANNED";
198
- readonly Unknown: "UNKNOWN";
199
- readonly Upcoming: "UPCOMING";
189
+ readonly COMPLETE: "COMPLETE";
190
+ readonly DRAFT: "DRAFT";
191
+ readonly FULLY_CONFIGURED: "FULLY_CONFIGURED";
192
+ readonly HAS_PLAN: "HAS_PLAN";
193
+ readonly HAS_SERVICE_PROVIDER: "HAS_SERVICE_PROVIDER";
194
+ readonly MISSING_PLAN: "MISSING_PLAN";
195
+ readonly MISSING_PROVIDER: "MISSING_PROVIDER";
196
+ readonly OVERDUE: "OVERDUE";
197
+ readonly PLANNED: "PLANNED";
198
+ readonly UNKNOWN: "UNKNOWN";
199
+ readonly UPCOMING: "UPCOMING";
200
200
  };
201
201
  export type ServicePlanStatus = (typeof servicePlanStatus)[keyof typeof servicePlanStatus];
202
- export declare const siteTypeSfs: {
203
- readonly Area: "AREA";
204
- readonly ClassicPoi: "CLASSIC_POI";
205
- readonly ClassicZone: "CLASSIC_ZONE";
206
- readonly ConstructionSite: "CONSTRUCTION_SITE";
207
- readonly Depot: "DEPOT";
208
- readonly NotOnSite: "NOT_ON_SITE";
209
- readonly WorkPlace: "WORK_PLACE";
202
+ export declare const siteTypeSFS: {
203
+ readonly AREA: "AREA";
204
+ readonly CLASSIC_POI: "CLASSIC_POI";
205
+ readonly CLASSIC_ZONE: "CLASSIC_ZONE";
206
+ readonly CONSTRUCTION_SITE: "CONSTRUCTION_SITE";
207
+ readonly DEPOT: "DEPOT";
208
+ readonly NOT_ON_SITE: "NOT_ON_SITE";
209
+ readonly WORK_PLACE: "WORK_PLACE";
210
210
  };
211
- export type SiteTypeSfs = (typeof siteTypeSfs)[keyof typeof siteTypeSfs];
211
+ export type SiteTypeSFS = (typeof siteTypeSFS)[keyof typeof siteTypeSFS];
212
212
  export declare const sortOrder: {
213
- readonly Asc: "ASC";
214
- readonly Desc: "DESC";
213
+ readonly ASC: "ASC";
214
+ readonly DESC: "DESC";
215
215
  };
216
216
  export type SortOrder = (typeof sortOrder)[keyof typeof sortOrder];
217
217
  export declare const systemOfMeasurement: {
218
- readonly Si: "SI";
219
- readonly UsCustomary: "US_CUSTOMARY";
218
+ readonly SI: "SI";
219
+ readonly US_CUSTOMARY: "US_CUSTOMARY";
220
220
  };
221
221
  export type SystemOfMeasurement = (typeof systemOfMeasurement)[keyof typeof systemOfMeasurement];
222
222
  export type AssetFiltersInput = {
@@ -239,7 +239,7 @@ export type AssetFiltersInput = {
239
239
  /** List of customerIds */
240
240
  customerIds?: InputMaybe<Array<Scalars["String"]["input"]>>;
241
241
  /** List of customer types */
242
- customerTypes?: InputMaybe<Array<CustomerTypeSfs>>;
242
+ customerTypes?: InputMaybe<Array<CustomerTypeSFS>>;
243
243
  /** Digital key mode of the asset */
244
244
  digitalKeyModes?: InputMaybe<Array<DigitalKeyMode>>;
245
245
  /** List of external references */
@@ -283,7 +283,7 @@ export type AssetFiltersInput = {
283
283
  /** List of siteIds */
284
284
  siteIds?: InputMaybe<Array<Scalars["String"]["input"]>>;
285
285
  /** List of site types */
286
- siteTypes?: InputMaybe<Array<SiteTypeSfs>>;
286
+ siteTypes?: InputMaybe<Array<SiteTypeSFS>>;
287
287
  /** The measurement system used for unit conversion of filters. */
288
288
  systemOfMeasurement?: InputMaybe<SystemOfMeasurement>;
289
289
  /** List of telematics device serial numbers */
@@ -358,8 +358,8 @@ export type CustomFieldOwnerInput = {
358
358
  ownerType: CustomFieldOwnerType;
359
359
  };
360
360
  export type GetFilteredAssetsQueryVariables = Exact<{
361
- filters?: InputMaybe<AssetFiltersInput>;
362
- sort?: InputMaybe<AssetSortInput>;
361
+ filters: InputMaybe<AssetFiltersInput>;
362
+ sort: InputMaybe<AssetSortInput>;
363
363
  }>;
364
364
  export type GetFilteredAssetsQuery = {
365
365
  __typename?: "Query";
@@ -372,6 +372,6 @@ export type GetFilteredAssetsQuery = {
372
372
  };
373
373
  };
374
374
  export declare const GetFilteredAssetsDocument: DocumentNode<GetFilteredAssetsQuery, Exact<{
375
- filters?: InputMaybe<AssetFiltersInput> | undefined;
376
- sort?: InputMaybe<AssetSortInput> | undefined;
375
+ filters: InputMaybe<AssetFiltersInput>;
376
+ sort: InputMaybe<AssetSortInput>;
377
377
  }>>;
@@ -3,9 +3,12 @@ import { AssetFiltersInput, AssetSortInput, SystemOfMeasurement } from "./genera
3
3
  export interface AssetQueryInputVariables {
4
4
  filters: AssetFiltersInput;
5
5
  sort: AssetSortInput;
6
- first: number;
6
+ before: string | null;
7
+ after: string | null;
8
+ first: number | null;
9
+ last: number | null;
7
10
  systemOfMeasurement: SystemOfMeasurement;
8
- definitionIds: string[] | undefined;
11
+ definitionIds: string[] | null;
9
12
  }
10
13
  export interface AssetQueryFilters {
11
14
  assetQueryVariables: AssetQueryInputVariables;