@trackunit/filters-graphql-hook 1.0.59 → 1.0.63
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 +0 -14
- package/index.esm.js +0 -14
- package/package.json +9 -9
- package/src/generated/graphql-api/graphql.d.ts +0 -17
package/index.cjs.js
CHANGED
|
@@ -228,18 +228,6 @@ const assetType = {
|
|
|
228
228
|
TOOL: "TOOL",
|
|
229
229
|
VEHICLE: "VEHICLE",
|
|
230
230
|
};
|
|
231
|
-
const legacyRentalStatus = {
|
|
232
|
-
Available: "Available",
|
|
233
|
-
InRepair: "InRepair",
|
|
234
|
-
NotOnContract: "NotOnContract",
|
|
235
|
-
OffRent: "OffRent",
|
|
236
|
-
OnRent: "OnRent",
|
|
237
|
-
Other: "Other",
|
|
238
|
-
PickupReady: "PickupReady",
|
|
239
|
-
Reserved: "Reserved",
|
|
240
|
-
Returned: "Returned",
|
|
241
|
-
Transfer: "Transfer",
|
|
242
|
-
};
|
|
243
231
|
const metadataCompleteness = {
|
|
244
232
|
COMPLETE: "COMPLETE",
|
|
245
233
|
PARTIAL: "PARTIAL",
|
|
@@ -377,8 +365,6 @@ const useActiveAssetFilters = (filters) => {
|
|
|
377
365
|
groups: valueNameArrayOrUndefined(filters.groups),
|
|
378
366
|
siteIds: valueNameArrayOrUndefined(filters.siteIds),
|
|
379
367
|
siteTypes: fixTypes(filters.siteType, siteTypeSFS),
|
|
380
|
-
rentalCustomerName: stringArrayOrUndefined(filters.rentalCustomerName),
|
|
381
|
-
rentalStatus: fixTypes(filters.rentalStatus, legacyRentalStatus),
|
|
382
368
|
rentalStatuses: fixTypes(filters.rentalStatuses, rentalStatus),
|
|
383
369
|
customFields: valuesIfNotEmpty(customFields),
|
|
384
370
|
systemOfMeasurement: systemOfMeasurement,
|
package/index.esm.js
CHANGED
|
@@ -226,18 +226,6 @@ const assetType = {
|
|
|
226
226
|
TOOL: "TOOL",
|
|
227
227
|
VEHICLE: "VEHICLE",
|
|
228
228
|
};
|
|
229
|
-
const legacyRentalStatus = {
|
|
230
|
-
Available: "Available",
|
|
231
|
-
InRepair: "InRepair",
|
|
232
|
-
NotOnContract: "NotOnContract",
|
|
233
|
-
OffRent: "OffRent",
|
|
234
|
-
OnRent: "OnRent",
|
|
235
|
-
Other: "Other",
|
|
236
|
-
PickupReady: "PickupReady",
|
|
237
|
-
Reserved: "Reserved",
|
|
238
|
-
Returned: "Returned",
|
|
239
|
-
Transfer: "Transfer",
|
|
240
|
-
};
|
|
241
229
|
const metadataCompleteness = {
|
|
242
230
|
COMPLETE: "COMPLETE",
|
|
243
231
|
PARTIAL: "PARTIAL",
|
|
@@ -375,8 +363,6 @@ const useActiveAssetFilters = (filters) => {
|
|
|
375
363
|
groups: valueNameArrayOrUndefined(filters.groups),
|
|
376
364
|
siteIds: valueNameArrayOrUndefined(filters.siteIds),
|
|
377
365
|
siteTypes: fixTypes(filters.siteType, siteTypeSFS),
|
|
378
|
-
rentalCustomerName: stringArrayOrUndefined(filters.rentalCustomerName),
|
|
379
|
-
rentalStatus: fixTypes(filters.rentalStatus, legacyRentalStatus),
|
|
380
366
|
rentalStatuses: fixTypes(filters.rentalStatuses, rentalStatus),
|
|
381
367
|
customFields: valuesIfNotEmpty(customFields),
|
|
382
368
|
systemOfMeasurement: systemOfMeasurement,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/filters-graphql-hook",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.63",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
@@ -13,14 +13,14 @@
|
|
|
13
13
|
"graphql": "^16.9.0",
|
|
14
14
|
"@apollo/client": "3.10.4",
|
|
15
15
|
"zod": "3.22.4",
|
|
16
|
-
"@trackunit/iris-app-build-utilities": "1.0.
|
|
17
|
-
"@trackunit/filters-filter-bar": "1.0.
|
|
18
|
-
"@trackunit/shared-utils": "1.2.
|
|
19
|
-
"@trackunit/iris-app-api": "1.0.
|
|
20
|
-
"@trackunit/react-core-contexts-test": "1.0.
|
|
21
|
-
"@trackunit/i18n-library-translation": "1.0.
|
|
22
|
-
"@trackunit/react-core-contexts-api": "1.0.
|
|
23
|
-
"@trackunit/react-core-hooks": "1.0.
|
|
16
|
+
"@trackunit/iris-app-build-utilities": "1.0.42",
|
|
17
|
+
"@trackunit/filters-filter-bar": "1.0.63",
|
|
18
|
+
"@trackunit/shared-utils": "1.2.33",
|
|
19
|
+
"@trackunit/iris-app-api": "1.0.40",
|
|
20
|
+
"@trackunit/react-core-contexts-test": "1.0.41",
|
|
21
|
+
"@trackunit/i18n-library-translation": "1.0.45",
|
|
22
|
+
"@trackunit/react-core-contexts-api": "1.0.41",
|
|
23
|
+
"@trackunit/react-core-hooks": "1.0.41"
|
|
24
24
|
},
|
|
25
25
|
"module": "./index.esm.js",
|
|
26
26
|
"main": "./index.cjs.js",
|
|
@@ -373,19 +373,6 @@ export declare const digitalKeyMode: {
|
|
|
373
373
|
readonly UNSUPPORTED: "UNSUPPORTED";
|
|
374
374
|
};
|
|
375
375
|
export type DigitalKeyMode = (typeof digitalKeyMode)[keyof typeof digitalKeyMode];
|
|
376
|
-
export declare const legacyRentalStatus: {
|
|
377
|
-
readonly Available: "Available";
|
|
378
|
-
readonly InRepair: "InRepair";
|
|
379
|
-
readonly NotOnContract: "NotOnContract";
|
|
380
|
-
readonly OffRent: "OffRent";
|
|
381
|
-
readonly OnRent: "OnRent";
|
|
382
|
-
readonly Other: "Other";
|
|
383
|
-
readonly PickupReady: "PickupReady";
|
|
384
|
-
readonly Reserved: "Reserved";
|
|
385
|
-
readonly Returned: "Returned";
|
|
386
|
-
readonly Transfer: "Transfer";
|
|
387
|
-
};
|
|
388
|
-
export type LegacyRentalStatus = (typeof legacyRentalStatus)[keyof typeof legacyRentalStatus];
|
|
389
376
|
export declare const metadataCompleteness: {
|
|
390
377
|
readonly COMPLETE: "COMPLETE";
|
|
391
378
|
readonly PARTIAL: "PARTIAL";
|
|
@@ -507,14 +494,10 @@ export type AssetFiltersInput = {
|
|
|
507
494
|
productionYears?: InputMaybe<Array<Scalars["String"]["input"]>>;
|
|
508
495
|
/** List of rental contract ids */
|
|
509
496
|
rentalContracts?: InputMaybe<Array<Scalars["String"]["input"]>>;
|
|
510
|
-
/** List of rental customer names */
|
|
511
|
-
rentalCustomerName?: InputMaybe<Array<Scalars["String"]["input"]>>;
|
|
512
497
|
/** List of siteIds where any asset in rental by this depot should be excluded */
|
|
513
498
|
rentalDepotSiteExclusionIds?: InputMaybe<Array<Scalars["ID"]["input"]>>;
|
|
514
499
|
/** List of siteIds to filter by rental depots */
|
|
515
500
|
rentalDepotSiteIds?: InputMaybe<Array<Scalars["ID"]["input"]>>;
|
|
516
|
-
/** List of legacy rental statuses */
|
|
517
|
-
rentalStatus?: InputMaybe<Array<LegacyRentalStatus>>;
|
|
518
501
|
/** List of rental statuses */
|
|
519
502
|
rentalStatuses?: InputMaybe<Array<RentalStatus>>;
|
|
520
503
|
/** A string that could match a property of an asset within your fleet */
|