Skip to content

Commit 3ea399b

Browse files
committed
rename
1 parent 0c1a550 commit 3ea399b

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/prompts/portal/quickstart.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ ${f.link(referenceDocumentationUrl)}`;
214214

215215
public async selectCopilotKey(keys: string[]): Promise<string | undefined> {
216216
const selectedKey = await select({
217-
message: "Select the API Copilot key you would like to enable for this Portal:",
217+
message: "Select the API Copilot key you would like to use for this Portal:",
218218
maxItems: 10,
219219
options: keys.map((key) => ({ value: key, label: key }))
220220
});

src/types/build/build.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export class LanguageSetting {
111111
});
112112
}
113113

114-
public toJSON(): LanguageSettingData {
114+
public toLanguageSettingData(): LanguageSettingData {
115115
return this.data;
116116
}
117117
}
@@ -144,7 +144,7 @@ export class PortalSettings {
144144
continue;
145145
}
146146
firstSdkTemplateId ??= templateId;
147-
languageSettings[templateId] = LanguageSetting.from(languageSettings[templateId]).withAiIntegrationsEnabled().toJSON();
147+
languageSettings[templateId] = LanguageSetting.from(languageSettings[templateId]).withAiIntegrationsEnabled().toLanguageSettingData();
148148
}
149149

150150
return new PortalSettings({
@@ -154,7 +154,7 @@ export class PortalSettings {
154154
});
155155
}
156156

157-
public toJSON(): PortalSettingsData {
157+
public toPortalSettingsData(): PortalSettingsData {
158158
return this.data;
159159
}
160160
}
@@ -171,7 +171,7 @@ export class BuildConfig {
171171
}
172172

173173
// Used implicitly by JSON.stringify when the config is written back to disk.
174-
public toJSON(): BuildConfigData {
174+
public toBuildConfigDData(): BuildConfigData {
175175
return this.data;
176176
}
177177

@@ -222,7 +222,7 @@ export class BuildConfig {
222222
baseUrl,
223223
portalSettings: PortalSettings.from(portal.portalSettings)
224224
.withAiIntegrations(Object.keys(portal.languageConfig))
225-
.toJSON()
225+
.toPortalSettingsData()
226226
}
227227
});
228228
}
@@ -243,7 +243,7 @@ export class BuildConfig {
243243

244244
const portal = this.data.generatePortal!;
245245
const updatedPortal: PortalConfig = portal.portalSettings?.baseUrl
246-
? { ...portal, portalSettings: PortalSettings.from(portal.portalSettings).withBaseUrl(serveUrl).toJSON() }
246+
? { ...portal, portalSettings: PortalSettings.from(portal.portalSettings).withBaseUrl(serveUrl).toPortalSettingsData() }
247247
: { ...portal, baseUrl: serveUrl.toString() };
248248
return ok(new BuildConfig({ ...this.data, generatePortal: updatedPortal }));
249249
}

0 commit comments

Comments
 (0)