From 5d47bb381952d9915e493eb185460fc504a309ad Mon Sep 17 00:00:00 2001 From: michaelfarrell76 Date: Wed, 18 Oct 2023 23:01:57 -0700 Subject: [PATCH] Fixes typo in graphql calls --- package.json | 2 +- src/graphql/gqls/prompt.ts | 27 +++++++++++---------------- 2 files changed, 12 insertions(+), 17 deletions(-) diff --git a/package.json b/package.json index e9276aa6..eb0ea3e2 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "author": "Transcend Inc.", "name": "@transcend-io/cli", "description": "Small package containing useful typescript utilities.", - "version": "4.110.0", + "version": "4.110.1", "homepage": "https://github.com/transcend-io/cli", "repository": { "type": "git", diff --git a/src/graphql/gqls/prompt.ts b/src/graphql/gqls/prompt.ts index 73538ba6..362b5da5 100644 --- a/src/graphql/gqls/prompt.ts +++ b/src/graphql/gqls/prompt.ts @@ -25,17 +25,14 @@ export const PROMPTS = gql` } `; -export const PROMPT_TEMPLATES = gql` - query TranscendCliPromptTemplates($first: Int!, $offset: Int!) { - promptTemplates( - first: $first // TODO: https://transcend.height.app/T-27909 - enable optimizations // isExportCsv: true // useMaster: false // TODO: https://transcend.height.app/T-27909 - order by createdAt // orderBy: [{ field: title, direction: ASC }] - offset: $offset - ) { +export const PROMPT_TEMPLATES = gql` + query TranscendCliPromptTemplates($first: Int!, $offset: Int!) { + promptTemplates(first: $first, offset: $offset) { nodes { id title @@ -45,17 +42,14 @@ export const PROMPT_TEMPLATES = gql` } `; -export const PROMPT_PARTIALS = gql` - query TranscendCliPromptPartials($first: Int!, $offset: Int!) { - promptPartials( - first: $first // TODO: https://transcend.height.app/T-27909 - enable optimizations // isExportCsv: true // useMaster: false // TODO: https://transcend.height.app/T-27909 - order by createdAt // orderBy: [{ field: title, direction: ASC }] - offset: $offset - ) { +export const PROMPT_PARTIALS = gql` + query TranscendCliPromptPartials($first: Int!, $offset: Int!) { + promptPartials(first: $first, offset: $offset) { nodes { id title @@ -65,15 +59,16 @@ export const PROMPT_PARTIALS = gql` } `; -export const PROMPT_GROUPS = gql` - query TranscendCliPromptGroups($first: Int!, $offset: Int!) { - promptGroups( - first: $first // TODO: https://transcend.height.app/T-27909 - enable optimizations // isExportCsv: true // useMaster: false // TODO: https://transcend.height.app/T-27909 - order by createdAt // orderBy: [{ field: title, direction: ASC }] +export const PROMPT_GROUPS = gql` + query TranscendCliPromptGroups($first: Int!, $offset: Int!) { + promptGroups( + first: $first + offset: $offset ) { nodes {