From 3030d3fa13238566b39096a6520c72d82ac71c93 Mon Sep 17 00:00:00 2001 From: Lukas Valenta Date: Mon, 26 Apr 2021 08:28:27 +0200 Subject: [PATCH] chore: Fix missing camel --- fixtures/install/playground/superface/sdk.ts | 1 + .../superface/types/starwars/character-information.ts | 2 +- src/logic/generate.ts | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/fixtures/install/playground/superface/sdk.ts b/fixtures/install/playground/superface/sdk.ts index fd6da60c..22e5a1c5 100644 --- a/fixtures/install/playground/superface/sdk.ts +++ b/fixtures/install/playground/superface/sdk.ts @@ -1,5 +1,6 @@ import { createTypedClient } from "@superfaceai/one-sdk"; import { starwarsCharacterInformation } from "./types/starwars/character-information"; +export { StarwarsCharacterInformationProfile } from "./types/starwars/character-information"; export const typeDefinitions = { ...starwarsCharacterInformation }; diff --git a/fixtures/install/playground/superface/types/starwars/character-information.ts b/fixtures/install/playground/superface/types/starwars/character-information.ts index 5e3183b7..04780d01 100644 --- a/fixtures/install/playground/superface/types/starwars/character-information.ts +++ b/fixtures/install/playground/superface/types/starwars/character-information.ts @@ -13,6 +13,6 @@ export const profile = { "RetrieveCharacterInformation": typeHelper() }; export type StarwarsCharacterInformationProfile = TypedProfile; -export const starwars/character-information = { +export const starwarsCharacterInformation = { "starwars/character-information": profile }; diff --git a/src/logic/generate.ts b/src/logic/generate.ts index 6c153251..4a2c3191 100644 --- a/src/logic/generate.ts +++ b/src/logic/generate.ts @@ -146,7 +146,7 @@ export function createProfileType( typeReference('TypedProfile', [typeQuery('profile')]) ); const profileWrapper = variableStatement( - profileName, + camelize(profileName), objectLiteral([propertyAssignment(profileName, id('profile'))]) );