Skip to content

Commit

Permalink
adjusted ordering of devices
Browse files Browse the repository at this point in the history
  • Loading branch information
plehocky committed Jul 10, 2024
1 parent fe784a4 commit 9402800
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/helpers/device-helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type FilterQuery = {
};

type DeviceOrderingInput = {
sortKey: 'name' | 'createdAt' | 'serviceState';
sortKey: 'name' | 'discoveredAt';
direction: 'ASC' | 'DESC';
};

Expand Down
3 changes: 1 addition & 2 deletions src/schema/api.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -654,9 +654,8 @@ type Snapshot {
}

enum SortDeviceBy {
createdAt
discoveredAt
name
serviceState
}

enum SortDirection {
Expand Down
2 changes: 1 addition & 1 deletion src/schema/device.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ export const FilterDevicesInput = inputObjectType({
});
export const SortDeviceBy = enumType({
name: 'SortDeviceBy',
members: ['name', 'createdAt', 'serviceState'],
members: ['name', 'discoveredAt'],
});
export const DeviceOrderByInput = inputObjectType({
name: 'DeviceOrderByInput',
Expand Down
2 changes: 1 addition & 1 deletion src/schema/nexus-typegen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ export interface NexusGenEnums {
DeviceSize: 'LARGE' | 'MEDIUM' | 'SMALL';
DeviceSource: 'DISCOVERED' | 'IMPORTED' | 'MANUAL';
GraphEdgeStatus: 'ok' | 'unknown';
SortDeviceBy: 'createdAt' | 'name' | 'serviceState';
SortDeviceBy: 'discoveredAt' | 'name';
SortDirection: 'ASC' | 'DESC';
SortStreamBy: 'createdAt' | 'streamName';
TopologyLayer: 'EthTopology' | 'PhysicalTopology' | 'PtpTopology';
Expand Down

0 comments on commit 9402800

Please sign in to comment.