Skip to content

Commit

Permalink
Revert "Add routes for Dashboard Prompt customization"
Browse files Browse the repository at this point in the history
  • Loading branch information
v-excelsior authored Mar 28, 2024
1 parent ccf5063 commit 95a4d45
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 77 deletions.
32 changes: 9 additions & 23 deletions src/automation.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ const routes = prepareRoutes({
flowGroup : '/api/app/:appId/automation/flow/:flowId',
flowVersionMetrics : '/api/app/:appId/automation/flow/:flowId/version/:versionId/analytics/version-metrics',
stepsMetrics : '/api/app/:appId/automation/flow/:flowId/version/:versionId/analytics/step-metrics',
// eslint-disable-next-line max-len
errorHandlerAnalytics: '/api/app/:appId/automation/flow/:flowId/version/:versionId/analytics/error-handler/:errorHandlerId/recorded-errors',
cloudCodeElements : '/api/app/:appId/automation/flow/cloud-code/elements',
startDebugSession : '/api/app/:appId/automation/flow/:flowId/version/:versionId/debug/test-monitor/start-session',
stopDebugSession : '/api/app/:appId/automation/flow/:flowId/version/:versionId/debug/test-monitor/stop-session',
Expand Down Expand Up @@ -71,51 +69,39 @@ export default req => ({
return req.automation.delete(routes.flowGroup(appId, groupId))
},

getFlowVersionMetrics(appId, flowId, versionId, fromDate, toDate) {
getFlowVersionMetrics(appId, flowId, versionId) {
return req.automation.get(routes.flowVersionMetrics(appId, flowId, versionId))
.query({ fromDate, toDate })
},

getFlowStepsMetrics(appId, flowId, versionId, fromDate, toDate) {
getFlowStepsMetrics(appId, flowId, versionId) {
return req.automation.get(routes.stepsMetrics(appId, flowId, versionId))
.query({ fromDate, toDate })
},

loadErrorHandlerAnalytics(appId, flowId, versionId, errorHandlerId) {
return req.automation.get(routes.errorHandlerAnalytics(appId, flowId, versionId, errorHandlerId))
},

getCloudCodeElements(appId) {
return req.automation.get(routes.cloudCodeElements(appId))
},

startDebugSession(appId, flowId, versionId, forceStart) {
startDebugSession(appId, flowId, versionId) {
return req.automation.post(routes.startDebugSession(appId, flowId, versionId))
.query({ forceStart })
},

stopDebugSession(appId, flowId, versionId, sessionId) {
stopDebugSession(appId, flowId, versionId) {
return req.automation.delete(routes.stopDebugSession(appId, flowId, versionId))
.query({ sessionId })
},

loadTestMonitorHistory(appId, flowId, versionId, sessionId) {
loadTestMonitorHistory(appId, flowId, versionId) {
return req.automation.get(routes.testMonitorHistory(appId, flowId, versionId))
.query({ sessionId })
},

loadDebugExecutionContext(appId, flowId, versionId, sessionId) {
loadDebugExecutionContext(appId, flowId, versionId) {
return req.automation.get(routes.debugExecutionContext(appId, flowId, versionId))
.query({ sessionId })
},

updateDebugExecutionContext(appId, flowId, versionId, context, sessionId) {
updateDebugExecutionContext(appId, flowId, versionId, context) {
return req.automation.put(routes.debugExecutionContext(appId, flowId, versionId), context)
.query({ sessionId })
},

runElementInDebugMode(appId, flowId, versionId, elementId, body, sessionId) {
return req.automation.post(routes.runElementInDebugMode(appId, flowId, versionId, elementId), body, sessionId)
.query({ sessionId })
runElementInDebugMode(appId, flowId, versionId, elementId, body) {
return req.automation.post(routes.runElementInDebugMode(appId, flowId, versionId, elementId), body)
},
})
4 changes: 0 additions & 4 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ import projectTemplate from './project-template'
import security from './security'
import devPermissions, { DevPermissions } from './dev-permissions'
import openAI from './open-ai'
import integrations from './integrations'
import settings from './settings'
import status from './status'
import tables from './tables'
Expand All @@ -45,7 +44,6 @@ import uiBuilder from './ui-builder'
import chartBuilder from './chart-builder'
import visualizations from './visualizations'
import consolePreview from './console-preview'
import quickApps from './quick-apps'

import { community } from './community'
import { marketplace } from './marketplace'
Expand Down Expand Up @@ -210,8 +208,6 @@ const createClient = (serverUrl, authKey, options) => {
visualizations : visualizations(request),
initialQuestionnaire: initialQuestionnaire(request),
consolePreview : consolePreview(request),
quickApps : quickApps(request),
integrations : integrations(request),
}
}

Expand Down
15 changes: 0 additions & 15 deletions src/integrations.js

This file was deleted.

32 changes: 0 additions & 32 deletions src/quick-apps.js

This file was deleted.

3 changes: 0 additions & 3 deletions src/urls.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,6 @@ export const emailTemplates = (appId, templateName) => `${appConsole(appId)}/ema

export const installEmailTemplate = (appId, productId) => `${appConsole(appId)}/email-templates/install/${productId}`

export const integrations = appId => `${appConsole(appId)}/integrations/openAI`

export const apiDocs = appId => `${appConsole(appId)}/api-docs`
export const apiDocsDataTable = (appId, tableName) => `${apiDocs(appId)}/data/table/${tableName}`
export const apiDocsMessagingChannel = (appId, channelName) => `${apiDocs(appId)}/messaging/channel/${channelName}`
Expand Down Expand Up @@ -238,7 +236,6 @@ export default {
directoryView,
geo,
installEmailTemplate,
integrations,
landingPage,
mailSettings,
marketplace,
Expand Down

0 comments on commit 95a4d45

Please sign in to comment.