diff --git a/packages/plugin-runtime-types/src/bindings/gen_models.ts b/packages/plugin-runtime-types/src/bindings/gen_models.ts index b984c7eb..6b2eb5c8 100644 --- a/packages/plugin-runtime-types/src/bindings/gen_models.ts +++ b/packages/plugin-runtime-types/src/bindings/gen_models.ts @@ -1,6 +1,6 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -export type Environment = { model: "environment", id: string, workspaceId: string, createdAt: string, updatedAt: string, name: string, public: boolean, parentModel: string, parentId: string | null, variables: Array, color: string | null, }; +export type Environment = { model: "environment", id: string, workspaceId: string, createdAt: string, updatedAt: string, name: string, public: boolean, parentModel: string, parentId: string | null, variables: Array, color: string | null, sortPriority: number, }; export type EnvironmentVariable = { enabled?: boolean, name: string, value: string, id?: string, }; diff --git a/plugins/importer-insomnia/src/v4.ts b/plugins/importer-insomnia/src/v4.ts index 53eca8cc..f96b6e41 100644 --- a/plugins/importer-insomnia/src/v4.ts +++ b/plugins/importer-insomnia/src/v4.ts @@ -190,9 +190,7 @@ function importEnvironment( createdAt: e.created ? new Date(e.created).toISOString().replace('Z', '') : undefined, updatedAt: e.modified ? new Date(e.modified).toISOString().replace('Z', '') : undefined, workspaceId: convertId(workspaceId), - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-expect-error - sortPriority: e.metaSortKey, // Will be added to Yaak later + sortPriority: e.metaSortKey, parentModel: isParent ? 'workspace' : 'environment', parentId: null, model: 'environment', diff --git a/plugins/importer-insomnia/src/v5.ts b/plugins/importer-insomnia/src/v5.ts index a5b0d3dc..398f010a 100644 --- a/plugins/importer-insomnia/src/v5.ts +++ b/plugins/importer-insomnia/src/v5.ts @@ -295,9 +295,7 @@ function importEnvironment( updatedAt: updated ? new Date(updated).toISOString().replace('Z', '') : undefined, workspaceId: convertId(workspaceId), public: !e.isPrivate, - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-expect-error - sortPriority: sortKey, // Will be added to Yaak later + sortPriority: sortKey, parentModel: isParent ? 'workspace' : 'environment', parentId: null, model: 'environment',