diff --git a/packages/gridproxy_client/src/builders/contracts.ts b/packages/gridproxy_client/src/builders/contracts.ts index 18becf1b96..ea2b16ef57 100644 --- a/packages/gridproxy_client/src/builders/contracts.ts +++ b/packages/gridproxy_client/src/builders/contracts.ts @@ -1,5 +1,6 @@ import { assertBoolean, assertId, assertIn, assertNatural, assertString } from "../utils"; import { AbstractBuilder, BuilderMapper, BuilderMethods, BuilderValidator } from "./abstract_builder"; +import { SortOrder } from "./nodes"; export enum ContractType { Node = "node", @@ -21,11 +22,6 @@ export enum SortByContracts { State = "state", } -export enum SortOrderContracts { - DESC = "desc", - ASC = "asc", -} - export interface ContractsQuery { page: number; size: number; @@ -40,7 +36,7 @@ export interface ContractsQuery { deploymentHash: string; numberOfPublicIps: number; sortBy: SortByContracts; - sortOrder: SortOrderContracts; + sortOrder: SortOrder; } const CONTRACTS_MAPPER: BuilderMapper = { @@ -90,7 +86,7 @@ const CONTRACTS_VALIDATOR: BuilderValidator = { }, sortOrder(value) { assertString(value); - assertIn(value, Object.values(SortOrderContracts)); + assertIn(value, Object.values(SortOrder)); }, }; diff --git a/packages/playground/src/weblets/tf_contracts_list.vue b/packages/playground/src/weblets/tf_contracts_list.vue index 4dabe7ba75..9d6f9ec1bd 100644 --- a/packages/playground/src/weblets/tf_contracts_list.vue +++ b/packages/playground/src/weblets/tf_contracts_list.vue @@ -203,13 +203,7 @@