@trackunit/filters-graphql-hook 0.0.19 → 0.0.24
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 +44 -41
- package/index.esm.js +44 -41
- package/package.json +1 -1
- package/src/generated/graphql-api/gql.d.ts +2 -2
- package/src/generated/graphql-api/graphql.d.ts +93 -93
- package/src/useAssetQueryFilters.d.ts +5 -2
package/index.cjs.js
CHANGED
|
@@ -162,34 +162,34 @@ input) => {
|
|
|
162
162
|
};
|
|
163
163
|
|
|
164
164
|
const assetActivityState = {
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
165
|
+
IDLING: "IDLING",
|
|
166
|
+
STOPPED: "STOPPED",
|
|
167
|
+
UNKNOWN: "UNKNOWN",
|
|
168
|
+
WORKING: "WORKING",
|
|
169
169
|
};
|
|
170
170
|
const assetCriticalityState = {
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
171
|
+
CRITICAL: "CRITICAL",
|
|
172
|
+
LOW: "LOW",
|
|
173
|
+
NONE: "NONE",
|
|
174
174
|
};
|
|
175
175
|
const assetLastSeen = {
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
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
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
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
|
-
|
|
192
|
-
|
|
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
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
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
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
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,
|
|
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:
|
|
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
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
161
|
+
IDLING: "IDLING",
|
|
162
|
+
STOPPED: "STOPPED",
|
|
163
|
+
UNKNOWN: "UNKNOWN",
|
|
164
|
+
WORKING: "WORKING",
|
|
165
165
|
};
|
|
166
166
|
const assetCriticalityState = {
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
167
|
+
CRITICAL: "CRITICAL",
|
|
168
|
+
LOW: "LOW",
|
|
169
|
+
NONE: "NONE",
|
|
170
170
|
};
|
|
171
171
|
const assetLastSeen = {
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
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
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
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
|
-
|
|
188
|
-
|
|
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
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
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
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
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,
|
|
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:
|
|
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
|
@@ -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
|
|
16
|
-
sort
|
|
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
|
|
90
|
-
readonly
|
|
91
|
-
readonly
|
|
92
|
-
readonly
|
|
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
|
|
97
|
-
readonly
|
|
98
|
-
readonly
|
|
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
|
|
103
|
-
readonly
|
|
104
|
-
readonly
|
|
105
|
-
readonly
|
|
106
|
-
readonly
|
|
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
|
|
111
|
-
readonly
|
|
112
|
-
readonly
|
|
113
|
-
readonly
|
|
114
|
-
readonly
|
|
115
|
-
readonly
|
|
116
|
-
readonly
|
|
117
|
-
readonly
|
|
118
|
-
readonly
|
|
119
|
-
readonly
|
|
120
|
-
readonly
|
|
121
|
-
readonly
|
|
122
|
-
readonly
|
|
123
|
-
readonly
|
|
124
|
-
readonly
|
|
125
|
-
readonly
|
|
126
|
-
readonly
|
|
127
|
-
readonly
|
|
128
|
-
readonly
|
|
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
|
|
133
|
-
readonly
|
|
134
|
-
readonly
|
|
135
|
-
readonly
|
|
136
|
-
readonly
|
|
137
|
-
readonly
|
|
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
|
|
142
|
-
readonly
|
|
143
|
-
readonly
|
|
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
|
|
147
|
-
readonly
|
|
148
|
-
readonly
|
|
149
|
-
readonly
|
|
150
|
-
readonly
|
|
151
|
-
readonly
|
|
152
|
-
readonly
|
|
153
|
-
readonly
|
|
154
|
-
readonly
|
|
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
|
|
156
|
+
export type CustomerTypeSFS = (typeof customerTypeSFS)[keyof typeof customerTypeSFS];
|
|
157
157
|
export declare const digitalKeyMode: {
|
|
158
|
-
readonly
|
|
159
|
-
readonly
|
|
160
|
-
readonly
|
|
161
|
-
readonly
|
|
162
|
-
readonly
|
|
163
|
-
readonly
|
|
164
|
-
readonly
|
|
165
|
-
readonly
|
|
166
|
-
readonly
|
|
167
|
-
readonly
|
|
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
|
|
172
|
-
readonly
|
|
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
|
|
190
|
-
readonly
|
|
191
|
-
readonly
|
|
192
|
-
readonly
|
|
193
|
-
readonly
|
|
194
|
-
readonly
|
|
195
|
-
readonly
|
|
196
|
-
readonly
|
|
197
|
-
readonly
|
|
198
|
-
readonly
|
|
199
|
-
readonly
|
|
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
|
|
203
|
-
readonly
|
|
204
|
-
readonly
|
|
205
|
-
readonly
|
|
206
|
-
readonly
|
|
207
|
-
readonly
|
|
208
|
-
readonly
|
|
209
|
-
readonly
|
|
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
|
|
211
|
+
export type SiteTypeSFS = (typeof siteTypeSFS)[keyof typeof siteTypeSFS];
|
|
212
212
|
export declare const sortOrder: {
|
|
213
|
-
readonly
|
|
214
|
-
readonly
|
|
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
|
|
219
|
-
readonly
|
|
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<
|
|
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<
|
|
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
|
|
362
|
-
sort
|
|
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
|
|
376
|
-
sort
|
|
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
|
-
|
|
6
|
+
before: string | null;
|
|
7
|
+
after: string | null;
|
|
8
|
+
first: number | null;
|
|
9
|
+
last: number | null;
|
|
7
10
|
systemOfMeasurement: SystemOfMeasurement;
|
|
8
|
-
definitionIds: string[] |
|
|
11
|
+
definitionIds: string[] | null;
|
|
9
12
|
}
|
|
10
13
|
export interface AssetQueryFilters {
|
|
11
14
|
assetQueryVariables: AssetQueryInputVariables;
|