Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Valodya committed Jun 6, 2024
2 parents 19b4ed6 + 44f695e commit eb23cee
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
4 changes: 4 additions & 0 deletions src/data-to-visualize.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ export default req => ({
return req.put(routes.dashboard(appId, dashboardId), changes)
},

updateDashboards(appId, changes) {
return req.put(routes.dashboards(appId), changes)
},

updateDashboardSettings(appId, dashboardId, settings) {
return req.put(routes.dashboardSettings(appId, dashboardId), settings)
},
Expand Down
12 changes: 8 additions & 4 deletions src/integrations.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
import urls from './urls'

export default req => ({
loadOpenAIData(appId) {
return req.get(urls.integrations(appId))
loadOpenAIData(appId, dataId) {
return req.get(urls.integrations(appId, dataId))
},

saveOpenAIData(appId, aiData) {
return req.post(urls.integrations(appId), aiData)
},

deleteOpenAIData(appId) {
return req.delete(urls.integrations(appId))
updateOpenAIData(appId, dataId, configData) {
return req.put(urls.integrations(appId, dataId), configData)
},

deleteOpenAIData(appId, dataId) {
return req.delete(urls.integrations(appId, dataId))
},
})
2 changes: 1 addition & 1 deletion src/urls.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ 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 integrations = (appId, dataId) => `${appConsole(appId)}/integrations${optional(dataId)}`

export const apiDocs = appId => `${appConsole(appId)}/api-docs`
export const apiDocsDataTable = (appId, tableName) => `${apiDocs(appId)}/data/table/${tableName}`
Expand Down

0 comments on commit eb23cee

Please sign in to comment.