@trackunit/filters-graphql-hook 0.0.108 → 0.0.110
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 +6 -6
- package/index.esm.js +6 -6
- package/package.json +1 -1
- package/src/generated/graphql-api/graphql.d.ts +13 -13
package/index.cjs.js
CHANGED
|
@@ -187,11 +187,7 @@ const assetType = {
|
|
|
187
187
|
OTHER: "OTHER",
|
|
188
188
|
TOOL: "TOOL",
|
|
189
189
|
};
|
|
190
|
-
const
|
|
191
|
-
COMPLETE: "COMPLETE",
|
|
192
|
-
PARTIAL: "PARTIAL",
|
|
193
|
-
};
|
|
194
|
-
const rentalStatus = {
|
|
190
|
+
const legacyRentalStatus = {
|
|
195
191
|
Available: "Available",
|
|
196
192
|
InRepair: "InRepair",
|
|
197
193
|
NotOnContract: "NotOnContract",
|
|
@@ -203,6 +199,10 @@ const rentalStatus = {
|
|
|
203
199
|
Returned: "Returned",
|
|
204
200
|
Transfer: "Transfer",
|
|
205
201
|
};
|
|
202
|
+
const metadataCompleteness = {
|
|
203
|
+
COMPLETE: "COMPLETE",
|
|
204
|
+
PARTIAL: "PARTIAL",
|
|
205
|
+
};
|
|
206
206
|
const servicePlanStatus = {
|
|
207
207
|
COMPLETE: "COMPLETE",
|
|
208
208
|
DRAFT: "DRAFT",
|
|
@@ -323,7 +323,7 @@ const useActiveAssetFilters = (filters) => {
|
|
|
323
323
|
siteIds: valueNameArrayOrUndefined(filters.siteIds),
|
|
324
324
|
siteTypes: fixTypes(filters.siteType, siteTypeSFS),
|
|
325
325
|
rentalCustomerName: stringArrayOrUndefined(filters.rentalCustomerName),
|
|
326
|
-
rentalStatus: fixTypes(filters.rentalStatus,
|
|
326
|
+
rentalStatus: fixTypes(filters.rentalStatus, legacyRentalStatus),
|
|
327
327
|
customFields: valuesIfNotEmpty(customFields),
|
|
328
328
|
systemOfMeasurement: systemOfMeasurement,
|
|
329
329
|
customerIds: valueNameArrayOrUndefined(filters.customerIds),
|
package/index.esm.js
CHANGED
|
@@ -183,11 +183,7 @@ const assetType = {
|
|
|
183
183
|
OTHER: "OTHER",
|
|
184
184
|
TOOL: "TOOL",
|
|
185
185
|
};
|
|
186
|
-
const
|
|
187
|
-
COMPLETE: "COMPLETE",
|
|
188
|
-
PARTIAL: "PARTIAL",
|
|
189
|
-
};
|
|
190
|
-
const rentalStatus = {
|
|
186
|
+
const legacyRentalStatus = {
|
|
191
187
|
Available: "Available",
|
|
192
188
|
InRepair: "InRepair",
|
|
193
189
|
NotOnContract: "NotOnContract",
|
|
@@ -199,6 +195,10 @@ const rentalStatus = {
|
|
|
199
195
|
Returned: "Returned",
|
|
200
196
|
Transfer: "Transfer",
|
|
201
197
|
};
|
|
198
|
+
const metadataCompleteness = {
|
|
199
|
+
COMPLETE: "COMPLETE",
|
|
200
|
+
PARTIAL: "PARTIAL",
|
|
201
|
+
};
|
|
202
202
|
const servicePlanStatus = {
|
|
203
203
|
COMPLETE: "COMPLETE",
|
|
204
204
|
DRAFT: "DRAFT",
|
|
@@ -319,7 +319,7 @@ const useActiveAssetFilters = (filters) => {
|
|
|
319
319
|
siteIds: valueNameArrayOrUndefined(filters.siteIds),
|
|
320
320
|
siteTypes: fixTypes(filters.siteType, siteTypeSFS),
|
|
321
321
|
rentalCustomerName: stringArrayOrUndefined(filters.rentalCustomerName),
|
|
322
|
-
rentalStatus: fixTypes(filters.rentalStatus,
|
|
322
|
+
rentalStatus: fixTypes(filters.rentalStatus, legacyRentalStatus),
|
|
323
323
|
customFields: valuesIfNotEmpty(customFields),
|
|
324
324
|
systemOfMeasurement: systemOfMeasurement,
|
|
325
325
|
customerIds: valueNameArrayOrUndefined(filters.customerIds),
|
package/package.json
CHANGED
|
@@ -172,17 +172,7 @@ export declare const digitalKeyMode: {
|
|
|
172
172
|
readonly UNSUPPORTED: "UNSUPPORTED";
|
|
173
173
|
};
|
|
174
174
|
export type DigitalKeyMode = (typeof digitalKeyMode)[keyof typeof digitalKeyMode];
|
|
175
|
-
export declare const
|
|
176
|
-
readonly COMPLETE: "COMPLETE";
|
|
177
|
-
readonly PARTIAL: "PARTIAL";
|
|
178
|
-
};
|
|
179
|
-
export type MetadataCompleteness = (typeof metadataCompleteness)[keyof typeof metadataCompleteness];
|
|
180
|
-
export declare const onboardingStatus: {
|
|
181
|
-
readonly ONBOARDED: "ONBOARDED";
|
|
182
|
-
readonly PENDING: "PENDING";
|
|
183
|
-
};
|
|
184
|
-
export type OnboardingStatus = (typeof onboardingStatus)[keyof typeof onboardingStatus];
|
|
185
|
-
export declare const rentalStatus: {
|
|
175
|
+
export declare const legacyRentalStatus: {
|
|
186
176
|
readonly Available: "Available";
|
|
187
177
|
readonly InRepair: "InRepair";
|
|
188
178
|
readonly NotOnContract: "NotOnContract";
|
|
@@ -194,7 +184,17 @@ export declare const rentalStatus: {
|
|
|
194
184
|
readonly Returned: "Returned";
|
|
195
185
|
readonly Transfer: "Transfer";
|
|
196
186
|
};
|
|
197
|
-
export type
|
|
187
|
+
export type LegacyRentalStatus = (typeof legacyRentalStatus)[keyof typeof legacyRentalStatus];
|
|
188
|
+
export declare const metadataCompleteness: {
|
|
189
|
+
readonly COMPLETE: "COMPLETE";
|
|
190
|
+
readonly PARTIAL: "PARTIAL";
|
|
191
|
+
};
|
|
192
|
+
export type MetadataCompleteness = (typeof metadataCompleteness)[keyof typeof metadataCompleteness];
|
|
193
|
+
export declare const onboardingStatus: {
|
|
194
|
+
readonly ONBOARDED: "ONBOARDED";
|
|
195
|
+
readonly PENDING: "PENDING";
|
|
196
|
+
};
|
|
197
|
+
export type OnboardingStatus = (typeof onboardingStatus)[keyof typeof onboardingStatus];
|
|
198
198
|
export declare const servicePlanStatus: {
|
|
199
199
|
readonly COMPLETE: "COMPLETE";
|
|
200
200
|
readonly DRAFT: "DRAFT";
|
|
@@ -281,7 +281,7 @@ export type AssetFiltersInput = {
|
|
|
281
281
|
/** List of rental customer names */
|
|
282
282
|
rentalCustomerName?: InputMaybe<Array<Scalars["String"]["input"]>>;
|
|
283
283
|
/** List of rental statuses */
|
|
284
|
-
rentalStatus?: InputMaybe<Array<
|
|
284
|
+
rentalStatus?: InputMaybe<Array<LegacyRentalStatus>>;
|
|
285
285
|
/** A string that could match a property of an asset within your fleet */
|
|
286
286
|
searchQuery?: InputMaybe<Scalars["String"]["input"]>;
|
|
287
287
|
/** List of serial numbers */
|