@vtex/api
Advanced tools
Comparing version 0.19.0 to 0.20.0
@@ -14,5 +14,4 @@ 'use strict'; | ||
const _DefaultWorkspace = 'master'; | ||
const DefaultWorkspace = exports.DefaultWorkspace = 'master'; | ||
exports.DefaultWorkspace = _DefaultWorkspace; | ||
const routes = { | ||
@@ -23,3 +22,3 @@ Account: account => `/${ account }`, | ||
DefaultWorkspace: account => `${ routes.Workspace(account, _DefaultWorkspace) }` | ||
Promote: account => `${ routes.Workspace(account, DefaultWorkspace) }/_promote` | ||
}; | ||
@@ -39,2 +38,6 @@ | ||
set: (account, workspace, metadata) => { | ||
return client.put(routes.Workspace(account, workspace), metadata); | ||
}, | ||
create: (account, workspace) => { | ||
@@ -49,5 +52,5 @@ return client.post(routes.Account(account), { name: workspace }); | ||
promote: (account, workspace) => { | ||
return client.put(routes.DefaultWorkspace(account, workspace), { workspace: workspace }); | ||
return client.put(routes.Promote(account), { workspace: workspace }); | ||
} | ||
}; | ||
} |
{ | ||
"name": "@vtex/api", | ||
"version": "0.19.0", | ||
"version": "0.20.0", | ||
"description": "VTEX I/O API client", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
Sorry, the diff of this file is not supported yet
177586
521