Skip to content

Commit fef078b

Browse files
authored
Merge pull request #467 from Backendless/dev
Dev
2 parents 5a15a2e + d35feee commit fef078b

File tree

2 files changed

+10
-13
lines changed

2 files changed

+10
-13
lines changed

src/automation.js

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable max-len */
12
import { prepareRoutes } from './utils/routes'
23

34
const routes = prepareRoutes({
@@ -19,19 +20,21 @@ const routes = prepareRoutes({
1920
flowInstances : '/api/app/:appId/automation/flow/:flowId/version/:versionId/analytics/instances/find',
2021
countInstances : '/api/app/:appId/automation/flow/:flowId/version/:versionId/analytics/instances/count',
2122
flowInstance : '/api/app/:appId/automation/flow/:flowId/version/:versionId/analytics/instances/:executionId',
22-
// eslint-disable-next-line max-len
23+
2324
elementExecutionInfo: '/api/app/:appId/automation/flow/:flowId/version/:versionId/analytics/instances/:executionId/element/:elementId',
2425
flowSlA : '/api/app/:appId/automation/flow/:flowId/version/:versionId/sla/goals',
2526
flowSlAGoal : '/api/app/:appId/automation/flow/:flowId/version/:versionId/sla/goals/:id',
2627
SLACalendars : '/api/app/:appId/automation/flow/sla/calendar',
2728
SLACalendar : '/api/app/:appId/automation/flow/sla/calendar/:id',
28-
// eslint-disable-next-line max-len
29+
2930
errorHandlerAnalytics: '/api/app/:appId/automation/flow/:flowId/version/:versionId/analytics/error-handler/:errorHandlerId/recorded-errors',
3031
customElements : '/api/node-server/manage/app/:appId/flowrunner/custom-elements',
32+
33+
flowrunnerAiAgentsProviders: '/api/node-server/manage/flowrunner/ai-agents/providers',
34+
3135
startDebugSession : '/api/app/:appId/automation/flow/:flowId/version/:versionId/debug/test-monitor/start-session',
3236
stopDebugSession : '/api/app/:appId/automation/flow/:flowId/version/:versionId/debug/test-monitor/stop-session',
3337
testMonitorHistory : '/api/app/:appId/automation/flow/:flowId/version/:versionId/debug/test-monitor/history',
34-
// eslint-disable-next-line max-len
3538
debugExecutionContext: '/api/app/:appId/automation/flow/:flowId/version/:versionId/debug/test-monitor/execution-context',
3639
runElementInDebugMode: '/api/app/:appId/automation/flow/:flowId/version/:versionId/debug/run/element/:elementId',
3740

@@ -160,6 +163,10 @@ export default req => ({
160163
return req.automation.get(routes.customElements(appId))
161164
},
162165

166+
getAiAgentsProviders() {
167+
return req.nodeAPI.get(routes.flowrunnerAiAgentsProviders())
168+
},
169+
163170
getRealtimeTriggerCallbackUrl(appId, scope, hostType, serviceName, modelName, lang) {
164171
return req.automation.get(routes.realtimeTriggerCallbackUrl(appId))
165172
.query({ scope, hostType, serviceName, modelName, lang })

src/community.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ const routes = prepareRoutes({
2020
devSuicide: '/console/community/dev/suicide',
2121
})
2222

23-
const activeCampaignRoutes = prepareRoutes({
24-
registerDeveloper: '/console/community/active-campaign/registration'
25-
})
26-
2723
export const community = req => ({
2824

2925
//---- COMMENTS ----//
@@ -94,12 +90,6 @@ export const community = req => ({
9490
return req.community.post(routes.reportUserActivity())
9591
},
9692

97-
//---- ACTIVE CAMPAIGN ----//
98-
99-
onRegisterDeveloper(dev) {
100-
return req.community.post(activeCampaignRoutes.registerDeveloper(), { dev })
101-
},
102-
10393
onDeveloperSuicide() {
10494
return req.community.delete(routes.devSuicide())
10595
}

0 commit comments

Comments
 (0)