MCPcopy Index your code
hub / github.com/simstudioai/sim / getHostedConfigurationVersion

Function getHostedConfigurationVersion

apps/sim/app/api/tools/appconfig/utils.ts:253–276  ·  view source on GitHub ↗
(
  client: AppConfigClient,
  applicationId: string,
  configurationProfileId: string,
  versionNumber: number
)

Source from the content-addressed store, hash-verified

251}
252
253export async function getHostedConfigurationVersion(
254 client: AppConfigClient,
255 applicationId: string,
256 configurationProfileId: string,
257 versionNumber: number
258) {
259 const response = await client.send(
260 new GetHostedConfigurationVersionCommand({
261 ApplicationId: applicationId,
262 ConfigurationProfileId: configurationProfileId,
263 VersionNumber: versionNumber,
264 })
265 )
266
267 return {
268 applicationId: response.ApplicationId ?? applicationId,
269 configurationProfileId: response.ConfigurationProfileId ?? configurationProfileId,
270 versionNumber: response.VersionNumber ?? null,
271 description: response.Description ?? null,
272 content: decodeContent(response.Content),
273 contentType: response.ContentType ?? null,
274 versionLabel: response.VersionLabel ?? null,
275 }
276}
277
278export async function listHostedConfigurationVersions(
279 client: AppConfigClient,

Callers 1

route.tsFile · 0.90

Calls 2

decodeContentFunction · 0.85
sendMethod · 0.80

Tested by

no test coverage detected