clever-client
Advanced tools
Comparing version 0.1.14 to 0.1.15
{ | ||
"name": "clever-client", | ||
"main": "dist/clever-client.js", | ||
"version": "0.1.14", | ||
"version": "0.1.15", | ||
"authors": [ | ||
@@ -6,0 +6,0 @@ "rbelouin <rodolphe.belouin@gmail.com>" |
@@ -1330,16 +1330,16 @@ var methods = { | ||
"verb": "POST", | ||
"name": "askForPasswordResetViaForm", | ||
"name": "askForPasswordReset", | ||
"params": [{ | ||
"name": "TesterPass", | ||
"style": "header" | ||
}, { | ||
"name": "login", | ||
"style": "query" | ||
}] | ||
}, { | ||
"verb": "POST", | ||
"name": "askForPasswordReset", | ||
"name": "askForPasswordResetViaForm", | ||
"params": [{ | ||
"name": "TesterPass", | ||
"style": "header" | ||
}, { | ||
"name": "login", | ||
"style": "query" | ||
}] | ||
@@ -1969,2 +1969,12 @@ }], | ||
"verb": "POST", | ||
"name": "createUser", | ||
"params": [{ | ||
"name": "invitationKey", | ||
"style": "query" | ||
}, { | ||
"name": "addonBetaInvitationKey", | ||
"style": "query" | ||
}] | ||
}, { | ||
"verb": "POST", | ||
"name": "createUserFromForm", | ||
@@ -1990,12 +2000,2 @@ "params": [{ | ||
}] | ||
}, { | ||
"verb": "POST", | ||
"name": "createUser", | ||
"params": [{ | ||
"name": "invitationKey", | ||
"style": "query" | ||
}, { | ||
"name": "addonBetaInvitationKey", | ||
"style": "query" | ||
}] | ||
}], | ||
@@ -2170,3 +2170,3 @@ "/users/{id}": [{ | ||
name: information.name, | ||
zone: information.zone, | ||
region: information.region, | ||
providerId: providerId, | ||
@@ -2173,0 +2173,0 @@ plan: planId, |
@@ -1,2 +0,2 @@ | ||
function initializeAddonProvider(a){var b={};return b.getAll=function(){return a.addons.providers.get()()},b.get=function(b,c){var d=c?[c,b]:[b],e=c?a.organisations._:a.self;return e.addonproviders._.get.apply(a,d)()},b.update=function(b,c){var d=c?[c,b.id]:[b.id],e=c?a.organisations._:a.self;return e.addonproviders._.put.apply(a,d)(JSON.stringify(b))},b.getPlans=function(b,c){var d=c?[c,b]:[b],e=c?a.organisations._:a.self;return e.addonproviders._.plans.get.apply(a,d)()},b.editPlan=function(b,c,d){var e=d?[d,c,b.id]:[c,b.id],f=d?a.organisations._:a.self;return f.addonproviders._.plans._.put.apply(a,e)(JSON.stringify(b))},b.addPlan=function(b,c,d){var e=d?[d,c]:[c],f=d?a.organisations._:a.self;return f.addonproviders._.plans.post.apply(a,e)(JSON.stringify(b))},b.removePlan=function(b,c,d){var e=d?[d,c,b]:[c,b],f=d?a.organisations._:a.self;return f.addonproviders._.plans._.remove.apply(a,e)()},b.getFeatures=function(b,c){var d=c?[c,b]:[b],e=c?a.organisations._:a.self;return e.addonproviders._.features.get.apply(a,d)()},b.addFeature=function(b,c,d){var e=d?[d,c]:[c],f=d?a.organisations._:a.self;return f.addonproviders._.features.post.apply(a,e)(JSON.stringify(b))},b.removeFeature=function(b,c,d){var e=d?[d,c,encodeURIComponent(btoa(b))]:[c,encodeURIComponent(btoa(b))],f=d?a.organisations._:a.self;return f.addonproviders._.features._.remove.apply(a,e)()},b}function initializeAddon(a){var b={};return b.getPlanFeaturesDescription=function(a){return _.chain(a.features).sortBy("name").map(function(a){return a.name+"="+a.value}).value().join(", ")},b.getAll=function(b){var c=b?[b]:[],d=b?a.organisations._:a.self;return d.addons.get.apply(a,c)()},b.provision=function(b,c,d,e,f){var g=f?[f]:[],h=f?a.organisations._:a.self;return h.addons.post.apply(a,g)(JSON.stringify({name:b.name,zone:b.zone,providerId:c,plan:d,payment:e}))},b.get=function(b,c){var d=c?[c,b]:[b],e=c?a.organisations._:a.self;return e.addons._.get.apply(a,d)()},b.changePlan=function(b,c,d){var e=d?[d,c]:[c],f=d?a.organisations._:a.self;return f.addons._.put.apply(a,e)(JSON.stringify(b))},b.remove=function(b,c){var d=c?[c,b]:[b],e=c?a.organisations._:a.self;return e.addons._.remove.apply(a,d)()},b.getSSOData=function(b,c){var d=c?[c,b]:[b],e=c?a.organisations._:a.self;return e.addons._.sso.get.apply(a,d)()},b.getLinkedApplications=function(b,c){var d=c?[c,b]:[b],e=c?a.organisations._:a.self;return e.addons._.applications.get.apply(a,d)()},b.getTags=function(b,c){var d=c?[c,b]:[b],e=c?a.organisations._:a.self;return e.addons._.tags.get.apply(a,d)()},b.addTag=function(b,c,d){var e=d?[d,c,encodeURIComponent(b)]:[c,encodeURIComponent(b)],f=d?a.organisations._:a.self;return f.addons._.tags._.put.apply(a,e)()},b.removeTag=function(b,c,d){var e=d?[d,c,encodeURIComponent(b)]:[c,encodeURIComponent(b)],f=d?a.organisations._:a.self;return f.addons._.tags._.remove.apply(a,e)()},b}function initializeApplication(a){var b={};return b.create=function(b,c){var d=c?[c,b.id]:[b.id],e=c?a.organisations._:a.self;return e.applications.post.apply(a,d)(JSON.stringify(b))},b.get=function(b,c){var d=c?[c,b]:[b],e=c?a.organisations._:a.self;return e.applications._.get.apply(a,d)()},b.edit=function(b,c){var d=c?[c,b.id]:[b.id],e=c?a.organisations._:a.self;return e.applications._.put.apply(a,d)(JSON.stringify(b))},b.remove=function(b,c){var d=c?[c,b]:[b],e=c?a.organisations._:a.self;return e.applications._.remove.apply(a,d)()},b.getVhosts=function(b,c){var d=c?[c,b]:[b],e=c?a.organisations._:a.self;return e.applications._.vhosts.get.apply(a,d)()},b.addVhost=function(b,c,d){var e=d?[d,c,b]:[c,b],f=d?a.organisations._:a.self;return f.applications._.vhosts._.put.apply(a,e)()},b.removeVhost=function(b,c,d){var e=d?[d,c,b.fqdn]:[c,b.fqdn],f=d?a.organisations._:a.self;return f.applications._.vhosts._.remove.apply(a,e)()},b.getInstances=function(b,c){var d=c?[c,b]:[b],e=c?a.organisations._:a.self;return e.applications._.instances.get.apply(a,d)()},b.redeploy=function(b,c){var d=c?[c,b]:[b],e=c?a.organisations._:a.self;return e.applications._.instances.post.apply(a,d)()},b.undeploy=function(b,c){var d=c?[c,b]:[b],e=c?a.organisations._:a.self;return e.applications._.instances.remove.apply(a,d)()},b.getLogs=function(b,c,d){var e=c?[c,b]:[b],f=c?a.organisations._:a.self;return f.applications._.logs.get.apply(a,e)(d?{query:{since:d}}:null)},b.getInstanceIdsFromLogs=function(a){return _.chain(a).map(function(a){return a._source["@source_host"]}).unique().value()},b.getAddons=function(b,c){var d=c?[c,b]:[b],e=c?a.organisations._:a.self;return e.applications._.addons.get.apply(a,d)()},b.linkAddon=function(b,c,d){var e=d?[d,b]:[b],f=d?a.organisations._:a.self;return f.applications._.addons.post.apply(a,e)(JSON.stringify(c))},b.unlinkAddon=function(b,c,d){var e=d?[d,b,c]:[b,c],f=d?a.organisations._:a.self;return f.applications._.addons._.remove.apply(a,e)()},b.getEnvVariables=function(b,c){var d=c?[c,b]:[b],e=c?a.organisations._:a.self;return e.applications._.env.get.apply(a,d)()},b.setEnvVariable=function(b,c,d,e){var f=encodeURIComponent(b.toUpperCase()),g=e?[e,d,f]:[d,f],h=e?a.organisations._:a.self;return h.applications._.env._.put.apply(a,g)(JSON.stringify(c))},b.removeEnvVariable=function(b,c,d){var e=encodeURIComponent(b.toUpperCase()),f=d?[d,c,e]:[c,e],g=d?a.organisations._:a.self;return g.applications._.env._.remove.apply(a,f)()},b}function initializeInvoice(a){var b={};return b.createInvoice=function(b,c){var d=c?[c]:[],e=c?a.organisations._:a.self;return e.payments.billings.post.apply(a,d)(JSON.stringify(b))},b.getPaymentMethods=function(){return a.payments.methods.get()()},b.choosePaymentMethod=function(b,c,d){var e=d?[d,c.id]:[c.id],f=d?a.organisations._:a.self;return f.payments.billings._.put.apply(a,e)(JSON.stringify(b))},b.getPaymillKey=function(){return a.payments.publickeys.paymill.get()()},b.get=function(b,c){var d=c?[c,b]:[b],e=c?a.organisations._:a.self;return e.payments.billings._.get.apply(a,d)()},b.getAll=function(b){var c=b?[b]:[],d=b?a.organisations._:a.self;return d.payments.billings.get.apply(a,c)()},b}function initializeNews(a){var b={},c=function(a){var b=new Promise,c=a.getElementsByTagName("feed")[0];if(c){var d=c.getElementsByTagName("entry"),e=function(a){return{title:a.getElementsByTagName("title")[0].childNodes[0].data,href:a.getElementsByTagName("link")[0].getAttribute("href"),updated:new Date(a.getElementsByTagName("updated")[0].childNodes[0].data)}};b.resolve(_.map(d,e))}else b.reject(a);return b},d=function(a){var b=a&&a.feed&&a.feed[0],c=_.map(b.entry,function(a){return{title:a.title&&a.title[0]&&a.title[0].$t,link:a.link&&a.link[0]&&a.link[0].href,updated:a.updated&&a.updated[0]&&new Date(a.updated[0])}});return Promise.of(c)},e="undefined"!=typeof module&&module.exports&&"function"==typeof require?d:c;return b.getBlogPosts=function(){return a.newsfeeds.blog.get()().chain(e)},b.getEngineeringPosts=function(){return a.newsfeeds.engineering.get()().chain(e)},b}function initializeOrganisation(a){var b={};return b.getAll=function(b){return a.organisations.get()({query:{user:b}})},b.get=function(b){return a.organisations._.get(b)()},b.update=function(b){return a.organisations._.put(b.id)(JSON.stringify(b))},b.create=function(b){return a.organisations.post()(JSON.stringify(b))},b.remove=function(b){return a.organisations._.remove(b)()},b.addMember=function(b,c){return a.organisations._.members.post(c)(JSON.stringify(b))},b.confirmMembership=function(b,c){return a.organisations._.members.post(c)({query:b})},b.removeMember=function(b,c){return a.organisations._.members._.remove(c,b)()},b}function initializeProducts(a){var b={};return b.getInstances=function(b){return a.products.instances.get()({query:b?{"for":b}:{}})},b.getPackages=function(b,c){var d=_.extend({},b&&{coupon:b},c&&{orgaId:c});return a.products.packages.get()({query:d})},b.getPrices=function(){return a.products.prices.get()()},b.getCoupon=function(b){return a.payments.coupons._.get(b)()},b.getZones=function(){return a.products.zones.get()()},b}function initializeSession(a,b){var c={};return c.getOAuthParams=function(a,c){return _.extend({oauth_consumer_key:b.API_CONSUMER_KEY,oauth_signature_method:"PLAINTEXT",oauth_signature:b.API_CONSUMER_SECRET+"&"+(c||""),oauth_timestamp:Math.floor(Date.now()/1e3),oauth_nonce:Math.floor(1e6*Math.random())},a)},c.login=function(){var d=a.oauth.request_token.post()({headers:{"Content-Type":"application/x-www-form-urlencoded"},data:querystring.encode(c.getOAuthParams({oauth_callback:window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search}))});return d.map(function(a){var c=querystring.decode(a);localStorage.consumer_oauth_token=c.oauth_token,localStorage.consumer_oauth_token_secret=c.oauth_token_secret,window.location=b.API_HOST+"/oauth/authorize?oauth_token="+encodeURIComponent(c.oauth_token)})},c.getAccessTokenFromQueryString=function(){var a=querystring.decode(window.location.search.slice(1));return c.getAccessToken(a)},c.getAccessToken=function(b){var d=a.oauth.access_token.post()({headers:{"Content-Type":"application/x-www-form-urlencoded"},data:querystring.encode(c.getOAuthParams(b,localStorage.consumer_oauth_token_secret))});return d.map(function(a){var b=querystring.decode(a);return localStorage.user_oauth_token=b.oauth_token,localStorage.user_oauth_token_secret=b.oauth_token_secret,b})},c.getAuthorization=function(){if(localStorage.user_oauth_token&&localStorage.user_oauth_token_secret){var a=c.getOAuthParams({oauth_token:localStorage.user_oauth_token},localStorage.user_oauth_token_secret);return['OAuth realm="http://ccapi.cleverapps.io/v2/oauth"','oauth_consumer_key="'+a.oauth_consumer_key+'"','oauth_token="'+a.oauth_token+'"','oauth_signature_method="'+a.oauth_signature_method+'"','oauth_signature="'+a.oauth_signature+'"','oauth_timestamp="'+a.oauth_timestamp+'"','oauth_nonce="'+a.oauth_nonce+'"'].join(", ")}return""},c.remove=function(){localStorage.removeItem("consumer_oauth_token"),localStorage.removeItem("consumer_oauth_token_secret"),localStorage.removeItem("user_oauth_token"),localStorage.removeItem("user_oauth_token_secret")},c}function initializeStatistics(a){var b={};return b.getCredits=function(b){var c=b?[b]:[],d=b?a.organisations._:a.self;return d.credits.get.apply(a,c)()},b.getConsumptions=function(b,c){var d=c?[c]:[],e=c?a.organisations._:a.self;return e.credits.history.get.apply(a,d)({query:b})},b.getConsumptionsByAppAndByDate=function(a,b){var c=function(a){var b=new Date(a);return new Date(b.getFullYear(),b.getMonth(),b.getDate()).getTime()};return _.foldl(b,function(b,d){var e=b,f=c(d.date);return e[d.appId]=e[d.appId]||{},e[d.appId][f]=(e[d.appId][f]||0)-d.delta*a.value,e},{})},b}function initializeUser(a){var b={};return b.get=function(){return a.self.get()()},b.update=function(b){return a.self.put()(JSON.stringify(b))},b.changePassword=function(b,c){return a.self.change_password.put()(JSON.stringify({oldPassword:b,newPassword:c}))},b.getEmailAddresses=function(){return a.self.emails.get()()},b.addEmailAddress=function(b){return a.self.emails._.put(b)()},b.removeEmailAddress=function(b){return a.self.emails._.remove(b)()},b.getSSHKeys=function(){return a.self.keys.get()()},b.addSSHKey=function(b,c){return a.self.keys._.put(encodeURIComponent(b))(JSON.stringify(c))},b.removeSSHKey=function(b){return a.self.keys._.remove(encodeURIComponent(b))()},b.getCreditCards=function(){return a.self.payments.cards.get()()},b.getTokens=function(){return a.self.tokens.get()()},b.removeToken=function(b){return a.self.tokens._.remove(b)()},b}function CleverAPI(a){a=_.extend({API_HOST:"https://api.clever-cloud.com/v2"},a);var b=a.API_AUTHORIZATION?{Authorization:a.API_AUTHORIZATION,"Content-Type":"application/json"}:{},c={},d=c.client=WadlClient.buildClient(methods,{host:a.API_HOST,headers:b,parseJSON:!0,parseXML:!0});return c.session=initializeSession(d,a),c.user=initializeUser(d,a),c.organisation=initializeOrganisation(d,a),c.application=initializeApplication(d,a),c.products=initializeProducts(d,a),c.addon=initializeAddon(d,a),c.addonprovider=initializeAddonProvider(d,a),c.invoice=initializeInvoice(d,a),c.news=initializeNews(d,a),c.statistics=initializeStatistics(d,a),c}var methods={"//invoice/external/{bid}":[{verb:"POST",name:"updateInvoice",params:[{name:"bid",style:"template"}]}],"//payments/webhooks/paymill":[{verb:"POST",name:"subscriptionEvent",params:[]}],"/addons/providers":[{verb:"GET",name:"getAddonProviders",params:[]}],"/admin/owners/{id}/applications/{appId}":[{verb:"DELETE",name:"deleteApplicationForOwner",params:[{name:"id",style:"template"},{name:"appId",style:"template"}]}],"/cleverapps/{name}":[{verb:"GET",name:"checkDomainAvailability",params:[{name:"name",style:"template"}]}],"/coldstart":[{verb:"GET",name:"coldStart",params:[]}],"/github":[{verb:"GET",name:"startGithub",params:[]}],"/github/applications":[{verb:"GET",name:"getGithubApplications",params:[{name:"redirectUrl",style:"query"}]}],"/github/callback":[{verb:"GET",name:"githubCallback",params:[{name:"Cookie",style:"header"},{name:"code",style:"query"},{name:"state",style:"query"},{name:"error",style:"query"},{name:"error_description",style:"query"},{name:"error_uri",style:"query"}]}],"/github/keys":[{verb:"GET",name:"getGithubKeys",params:[{name:"redirectUrl",style:"query"}]}],"/github/link":[{verb:"GET",name:"linkGithub",params:[{name:"transactionId",style:"query"},{name:"redirectUrl",style:"query"}]}],"/github/login":[{verb:"GET",name:"githubLogin",params:[{name:"redirectUrl",style:"query"}]}],"/github/signup":[{verb:"GET",name:"githubSignup",params:[]},{verb:"POST",name:"finsihGithubSignup",params:[{name:"transactionId",style:"query"},{name:"firstName",style:"query"},{name:"lastName",style:"query"},{name:"terms",style:"query"}]}],"/internal/activeMails":[{verb:"GET",name:"getActiveMails",params:[]}],"/internal/applications":[{verb:"GET",name:"getApplications",params:[]}],"/internal/applications/{appId}":[{verb:"DELETE",name:"deleteApplication",params:[{name:"appId",style:"template"}]},{verb:"GET",name:"getApplication",params:[{name:"appId",style:"template"}]}],"/internal/applications/{appId}/downscale":[{verb:"POST",name:"downscaleApplication",params:[{name:"appId",style:"template"}]}],"/internal/applications/{appId}/forceRedeploy":[{verb:"POST",name:"forceRedeployApplication",params:[{name:"appId",style:"template"},{name:"down",style:"query"},{name:"commit",style:"query"}]}],"/internal/applications/{appId}/instances":[{verb:"POST",name:"changeApplicationInstances",params:[{name:"appId",style:"template"}]}],"/internal/applications/{appId}/instances/{instanceId}":[{verb:"PUT",name:"replaceApplicationInstance",params:[{name:"appId",style:"template"},{name:"instanceId",style:"template"}]}],"/internal/applications/{appId}/ownerId":[{verb:"GET",name:"getApplicationOwnerId",params:[{name:"appId",style:"template"}]}],"/internal/applications/{appId}/redeploy":[{verb:"POST",name:"redeployApplication",params:[{name:"appId",style:"template"},{name:"down",style:"query"},{name:"commit",style:"query"},{name:"cause",style:"query"}]}],"/internal/applications/{appId}/undeploy":[{verb:"POST",name:"undeployApplication",params:[{name:"appId",style:"template"}]}],"/internal/applications/{appId}/upscale":[{verb:"POST",name:"upscaleApplication",params:[{name:"appId",style:"template"}]}],"/internal/applications/{appId}/vhosts/{domain}":[{verb:"DELETE",name:"removeDomain",params:[{name:"appId",style:"template"},{name:"domain",style:"template"}]},{verb:"PUT",name:"addDomain",params:[{name:"appId",style:"template"},{name:"domain",style:"template"}]}],"/internal/coupons":[{verb:"POST",name:"createCoupon",params:[]}],"/internal/coupons/{name}":[{verb:"GET",name:"getCoupon",params:[{name:"name",style:"template"}]}],"/internal/dropcounts":[{verb:"GET",name:"getAllDropCount",params:[]}],"/internal/dropcounts/{ownerId}":[{verb:"GET",name:"getDropAccount",params:[{name:"ownerId",style:"template"}]},{verb:"POST",name:"addDrops",params:[{name:"ownerId",style:"template"}]}],"/internal/heroku/{ownerId}/providers":[{verb:"POST",name:"uploadManifest",params:[{name:"ownerId",style:"template"}]}],"/internal/instances":[{verb:"GET",name:"getInstances",params:[]}],"/internal/instances/dec":[{verb:"POST",name:"dec",params:[{name:"type",style:"query"},{name:"version",style:"query"}]}],"/internal/instances/inc":[{verb:"POST",name:"inc",params:[{name:"type",style:"query"},{name:"version",style:"query"}]}],"/internal/instances/{type}-{version}":[{verb:"GET",name:"getInstance",params:[{name:"type",style:"template"},{name:"version",style:"template"}]},{verb:"PUT",name:"createInstance",params:[{name:"type",style:"template"},{name:"version",style:"template"}]}],"/internal/invoices":[{verb:"GET",name:"getInvoices",params:[{name:"owner",style:"query"}]},{verb:"POST",name:"createPendingInvoice",params:[]}],"/internal/invoices/links":[{verb:"GET",name:"getLinks",params:[{name:"before",style:"query"}]}],"/internal/invoices/pdf":[{verb:"GET",name:"getPdfInvoices",params:[{name:"from",style:"query"}]}],"/internal/invoices/{invId}":[{verb:"GET",name:"getHtmlInvoice",params:[{name:"invId",style:"template"}]}],"/internal/invoices/{invoice}/credit":[{verb:"PUT",name:"generateCreditNote",params:[{name:"invoice",style:"template"}]}],"/internal/oauth1consumers":[{verb:"POST",name:"createOAuth1Consumer",params:[]}],"/internal/organisations":[{verb:"GET",name:"getOrganisations",params:[]}],"/internal/owners/{ownerId}":[{verb:"GET",name:"getOwner",params:[{name:"ownerId",style:"template"}]}],"/internal/owners/{ownerId}/applications":[{verb:"GET",name:"getOwnerApplications",params:[{name:"ownerId",style:"template"}]}],"/internal/owners/{ownerId}/keys":[{verb:"GET",name:"getUserSshKeys",params:[{name:"ownerId",style:"template"}]}],"/internal/packages":[{verb:"GET",name:"getAvailablePackages",params:[{name:"currency",style:"query"}]},{verb:"POST",name:"createPackage",params:[]}],"/internal/packages/{packageId}":[{verb:"DELETE",name:"deletePackage",params:[{name:"packageId",style:"template"}]},{verb:"PUT",name:"editPackage",params:[{name:"packageId",style:"template"}]}],"/internal/pending":[{verb:"GET",name:"getPendingUsers",params:[]}],"/internal/prices/{currency}":[{verb:"PUT",name:"setExchangeRate",params:[{name:"currency",style:"template"}]}],"/internal/users":[{verb:"GET",name:"getUsers",params:[{name:"email",style:"query"}]}],"/internal/users/{userId}/email":[{verb:"GET",name:"getEmail",params:[{name:"userId",style:"template"}]}],"/internal/users/{userId}/keys/{name}":[{verb:"DELETE",name:"deleteSshKey",params:[{name:"name",style:"template"},{name:"userId",style:"template"}]}],"/internal/users/{userId}/validate":[{verb:"POST",name:"validateUser",params:[{name:"userId",style:"template"}]}],"/newsfeeds/blog":[{verb:"GET",name:"getBlogFeed",params:[]}],"/newsfeeds/engineering":[{verb:"GET",name:"getEngineeringFeed",params:[]}],"/oauth/access_token":[{verb:"POST",name:"postAccessTokenRequest",params:[{name:"oauth_consumer_key",style:"query"},{name:"oauth_token",style:"query"},{name:"oauth_signature_method",style:"query"},{name:"oauth_signature",style:"query"},{name:"oauth_timestamp",style:"query"},{name:"oauth_nonce",style:"query"},{name:"oauth_version",style:"query"},{name:"oauth_verifier",style:"query"},{name:"oauth_callback",style:"query"},{name:"oauth_token_secret",style:"query"},{name:"oauth_callback_confirmed",style:"query"}]}],"/oauth/authorize":[{verb:"GET",name:"authorizeForm",params:[{name:"Cookie",style:"header"},{name:"Cookie",style:"header"},{name:"oauth_token",style:"query"}]},{verb:"POST",name:"authorizeToken",params:[{name:"Cookie",style:"header"},{name:"Cookie",style:"header"},{name:"almighty",style:"query"},{name:"access_organisations",style:"query"},{name:"manage_organisations",style:"query"},{name:"manage_organisations_services",style:"query"},{name:"manage_organisations_applications",style:"query"},{name:"manage_organisations_members",style:"query"},{name:"access_organisations_bills",style:"query"},{name:"access_organisations_credit_count",style:"query"},{name:"access_organisations_consumption_statistics",style:"query"},{name:"access_personal_information",style:"query"},{name:"manage_personal_information",style:"query"},{name:"manage_ssh_keys",style:"query"},{name:"manage_services",style:"query"},{name:"manage_applications",style:"query"},{name:"access_bills",style:"query"},{name:"access_credit_count",style:"query"},{name:"access_consumption_statistics",style:"query"},{name:"report_feedback",style:"query"}]}],"/oauth/request_token":[{verb:"POST",name:"postReqTokenRequest",params:[{name:"oauth_consumer_key",style:"query"},{name:"oauth_token",style:"query"},{name:"oauth_signature_method",style:"query"},{name:"oauth_signature",style:"query"},{name:"oauth_timestamp",style:"query"},{name:"oauth_nonce",style:"query"},{name:"oauth_version",style:"query"},{name:"oauth_verifier",style:"query"},{name:"oauth_callback",style:"query"},{name:"oauth_token_secret",style:"query"},{name:"oauth_callback_confirmed",style:"query"}]}],"/organisations":[{verb:"GET",name:"getUserOrganisationss",params:[{name:"user",style:"query"}]},{verb:"POST",name:"createOrganisation",params:[]}],"/organisations/{id}":[{verb:"DELETE",name:"deleteOrganisation",params:[{name:"id",style:"template"}]},{verb:"GET",name:"getOrganisation",params:[{name:"id",style:"template"}]},{verb:"PUT",name:"editOrganisation",params:[{name:"id",style:"template"}]}],"/organisations/{id}/addonproviders/{providerId}":[{verb:"GET",name:"getProviderInfos",params:[{name:"id",style:"template"},{name:"providerId",style:"template"}]},{verb:"PUT",name:"updateProviderInfos",params:[{name:"id",style:"template"},{name:"providerId",style:"template"}]}],"/organisations/{id}/addonproviders/{providerId}/features":[{verb:"GET",name:"getProviderFeatures",params:[{name:"id",style:"template"},{name:"providerId",style:"template"}]},{verb:"POST",name:"addProviderFeature",params:[{name:"id",style:"template"},{name:"providerId",style:"template"}]}],"/organisations/{id}/addonproviders/{providerId}/features/{featureId}":[{verb:"DELETE",name:"deleteProviderFeature",params:[{name:"id",style:"template"},{name:"featureId",style:"template"},{name:"providerId",style:"template"}]}],"/organisations/{id}/addonproviders/{providerId}/plans":[{verb:"GET",name:"getProviderPlans",params:[{name:"id",style:"template"},{name:"providerId",style:"template"}]},{verb:"POST",name:"addProviderPlan",params:[{name:"id",style:"template"},{name:"providerId",style:"template"}]}],"/organisations/{id}/addonproviders/{providerId}/plans/{planId}":[{verb:"DELETE",name:"deleteProviderPlan",params:[{name:"id",style:"template"},{name:"providerId",style:"template"},{name:"planId",style:"template"}]},{verb:"GET",name:"getProviderPlan",params:[{name:"id",style:"template"},{name:"providerId",style:"template"},{name:"planId",style:"template"}]},{verb:"PUT",name:"editProviderPlan",params:[{name:"id",style:"template"},{name:"providerId",style:"template"},{name:"planId",style:"template"}]}],"/organisations/{id}/addonproviders/{providerId}/testers":[{verb:"POST",name:"addBetaTester",params:[{name:"id",style:"template"},{name:"providerId",style:"template"}]}],"/organisations/{id}/addons":[{verb:"GET",name:"getAddons",params:[{name:"id",style:"template"}]},{verb:"POST",name:"provisionAddon",params:[{name:"id",style:"template"}]}],"/organisations/{id}/addons/{addonId}":[{verb:"DELETE",name:"deprovisionAddon",params:[{name:"id",style:"template"},{name:"addonId",style:"template"}]},{verb:"GET",name:"getAddon",params:[{name:"id",style:"template"},{name:"addonId",style:"template"}]},{verb:"PUT",name:"changePlan",params:[{name:"id",style:"template"},{name:"addonId",style:"template"}]}],"/organisations/{id}/addons/{addonId}/applications":[{verb:"GET",name:"getApplicationsLinkedToAddon",params:[{name:"id",style:"template"},{name:"addonId",style:"template"}]}],"/organisations/{id}/addons/{addonId}/sso":[{verb:"GET",name:"getSSOData",params:[{name:"id",style:"template"},{name:"addonId",style:"template"}]}],"/organisations/{id}/addons/{addonId}/tags":[{verb:"GET",name:"getAddonTags",params:[{name:"id",style:"template"},{name:"addonId",style:"template"}]}],"/organisations/{id}/addons/{addonId}/tags/{tag}":[{verb:"DELETE",name:"deleteAddonTag",params:[{name:"id",style:"template"},{name:"tag",style:"template"},{name:"addonId",style:"template"}]},{verb:"PUT",name:"addAddonTag",params:[{name:"id",style:"template"},{name:"tag",style:"template"},{name:"addonId",style:"template"}]}],"/organisations/{id}/applications":[{verb:"GET",name:"getAllApplications",params:[{name:"id",style:"template"}]},{verb:"POST",name:"addApplication",params:[{name:"id",style:"template"}]}],"/organisations/{id}/applications/{appId}":[{verb:"DELETE",name:"deleteApplication",params:[{name:"id",style:"template"},{name:"appId",style:"template"}]},{verb:"GET",name:"getApplication",params:[{name:"id",style:"template"},{name:"appId",style:"template"}]},{verb:"PUT",name:"editApplication",params:[{name:"id",style:"template"},{name:"appId",style:"template"}]}],"/organisations/{id}/applications/{appId}/addons":[{verb:"GET",name:"getAddonsLinkedToApplication",params:[{name:"id",style:"template"},{name:"appId",style:"template"}]},{verb:"POST",name:"linkAddonToApplication",params:[{name:"id",style:"template"},{name:"appId",style:"template"}]}],"/organisations/{id}/applications/{appId}/addons/{addonId}":[{verb:"DELETE",name:"unlinkAddonFromApplication",params:[{name:"id",style:"template"},{name:"appId",style:"template"},{name:"addonId",style:"template"}]}],"/organisations/{id}/applications/{appId}/env":[{verb:"GET",name:"getApplicationEnv",params:[{name:"id",style:"template"},{name:"appId",style:"template"}]}],"/organisations/{id}/applications/{appId}/env/{envName}":[{verb:"DELETE",name:"removeApplicationEnv",params:[{name:"id",style:"template"},{name:"appId",style:"template"},{name:"envName",style:"template"}]},{verb:"PUT",name:"editApplicationEnv",params:[{name:"id",style:"template"},{name:"appId",style:"template"},{name:"envName",style:"template"}]}],"/organisations/{id}/applications/{appId}/instance":[{verb:"PUT",name:"changeApplicationType",params:[{name:"id",style:"template"},{name:"appId",style:"template"},{name:"type",style:"query"},{name:"version",style:"query"}]}],"/organisations/{id}/applications/{appId}/instances":[{verb:"DELETE",name:"undeployApplication",params:[{name:"id",style:"template"},{name:"appId",style:"template"}]},{verb:"GET",name:"getApplicationInstances",params:[{name:"id",style:"template"},{name:"appId",style:"template"}]},{verb:"POST",name:"redeployApplication",params:[{name:"id",style:"template"},{name:"appId",style:"template"}]}],"/organisations/{id}/applications/{appId}/logs":[{verb:"GET",name:"getApplicationLogss",params:[{name:"id",style:"template"},{name:"appId",style:"template"},{name:"order",style:"query"},{name:"since",style:"query"}]}],"/organisations/{id}/applications/{appId}/tags":[{verb:"GET",name:"getApplicationTags",params:[{name:"id",style:"template"},{name:"appId",style:"template"}]}],"/organisations/{id}/applications/{appId}/tags/{tag}":[{verb:"DELETE",name:"deleteApplicationTag",params:[{name:"id",style:"template"},{name:"appId",style:"template"},{name:"tag",style:"template"}]},{verb:"PUT",name:"addApplicationTag",params:[{name:"id",style:"template"},{name:"appId",style:"template"},{name:"tag",style:"template"}]}],"/organisations/{id}/applications/{appId}/vhosts":[{verb:"GET",name:"getVhosts",params:[{name:"id",style:"template"},{name:"appId",style:"template"}]}],"/organisations/{id}/applications/{appId}/vhosts/{domain}":[{verb:"DELETE",name:"removeVhost",params:[{name:"id",style:"template"},{name:"appId",style:"template"},{name:"domain",style:"template"}]},{verb:"PUT",name:"addVhost",params:[{name:"id",style:"template"},{name:"appId",style:"template"},{name:"domain",style:"template"}]}],"/organisations/{id}/credits":[{verb:"GET",name:"getAmount",params:[{name:"id",style:"template"}]}],"/organisations/{id}/credits/history":[{verb:"GET",name:"getStats",params:[{name:"id",style:"template"},{name:"type",style:"query"},{name:"appId",style:"query"},{name:"from",style:"query"},{name:"to",style:"query"}]}],"/organisations/{id}/instances":[{verb:"GET",name:"getInstancesForAllApps",params:[{name:"id",style:"template"}]}],"/organisations/{id}/members":[{verb:"POST",name:"addOrganisationMember",params:[{name:"id",style:"template"},{name:"invitationKey",style:"query"}]}],"/organisations/{id}/members/{userId}":[{verb:"DELETE",name:"removeOrganisationMember",params:[{name:"id",style:"template"},{name:"userId",style:"template"}]},{verb:"PUT",name:"editOrganisationMember",params:[{name:"id",style:"template"},{name:"userId",style:"template"}]}],"/organisations/{id}/payment-info":[{verb:"GET",name:"getPaymentInfo",params:[{name:"id",style:"template"}]}],"/organisations/{id}/payments/billings":[{verb:"GET",name:"getInvoices",params:[{name:"id",style:"template"}]},{verb:"POST",name:"buyDrops",params:[{name:"id",style:"template"}]}],"/organisations/{id}/payments/billings/{bid}":[{verb:"GET",name:"getInvoice",params:[{name:"id",style:"template"},{name:"bid",style:"template"}]},{verb:"PUT",name:"choosePaymentMethod",params:[{name:"id",style:"template"},{name:"bid",style:"template"}]}],"/organisations/{id}/payments/recurring":[{verb:"DELETE",name:"deleteRecurrentPayment",params:[{name:"id",style:"template"}]},{verb:"GET",name:"getRecurrentPayment",params:[{name:"id",style:"template"}]},{verb:"PUT",name:"createRecurrentPayment",params:[{name:"id",style:"template"}]}],"/password_forgotten":[{verb:"GET",name:"getPasswordForgottenForm",params:[]},{verb:"POST",name:"askForPasswordResetViaForm",params:[{name:"TesterPass",style:"header"},{name:"login",style:"query"}]},{verb:"POST",name:"askForPasswordReset",params:[{name:"TesterPass",style:"header"}]}],"/password_forgotten/{key}":[{verb:"GET",name:"confirmPasswordResetRequest",params:[{name:"key",style:"template"},{name:"TesterPass",style:"header"}]}],"/payments/coupons/{name}":[{verb:"GET",name:"getCoupon",params:[{name:"name",style:"template"}]}],"/payments/methods":[{verb:"GET",name:"getAvailablePaymentMethods",params:[]}],"/payments/publickeys/paymill":[{verb:"GET",name:"getPaymillPublicKey",params:[]}],"/payments/webhooks/paymill":[{verb:"POST",name:"handlePaymillWebHook",params:[{name:"verif",style:"query"}]}],"/payments/{bid}/cancel/paymill":[{verb:"POST",name:"cancelPaymillPayment",params:[{name:"bid",style:"template"}]}],"/payments/{bid}/cancel/paypal":[{verb:"GET",name:"cancelPaypalPayment",params:[{name:"bid",style:"template"}]}],"/payments/{bid}/end/paymill":[{verb:"POST",name:"endPaymillPayment",params:[{name:"bid",style:"template"}]}],"/payments/{bid}/end/paypal":[{verb:"GET",name:"endPaypalPayment",params:[{name:"bid",style:"template"},{name:"token",style:"query"},{name:"PayerID",style:"query"}]}],"/ping":[{verb:"GET",name:"ping",params:[]}],"/ping/stats":[{verb:"GET",name:"stats",params:[]}],"/products/instances":[{verb:"GET",name:"getAvailableInstances",params:[{name:"for",style:"query"}]}],"/products/packages":[{verb:"GET",name:"getAvailablePackages",params:[{name:"coupon",style:"query"},{name:"orgaId",style:"query"},{name:"currency",style:"query"}]}],"/products/prices":[{verb:"GET",name:"getExcahngeRates",params:[]}],"/products/zones":[{verb:"GET",name:"getZones",params:[]}],"/self":[{verb:"DELETE",name:"deleteUser",params:[]},{verb:"GET",name:"getUser",params:[]},{verb:"PUT",name:"editUser",params:[]}],"/self/addons":[{verb:"GET",name:"getAddons",params:[]},{verb:"POST",name:"provisionAddon",params:[]}],"/self/addons/{addonId}":[{verb:"DELETE",name:"deprovisionAddon",params:[{name:"addonId",style:"template"}]},{verb:"GET",name:"getAddon",params:[{name:"addonId",style:"template"}]},{verb:"PUT",name:"changePlan",params:[{name:"addonId",style:"template"}]}],"/self/addons/{addonId}/applications":[{verb:"GET",name:"getApplicationsLinkedToAddon",params:[{name:"addonId",style:"template"}]}],"/self/addons/{addonId}/sso":[{verb:"GET",name:"getSSOData",params:[{name:"addonId",style:"template"}]}],"/self/addons/{addonId}/tags":[{verb:"GET",name:"getAddonTags",params:[{name:"addonId",style:"template"}]}],"/self/addons/{addonId}/tags/{tag}":[{verb:"DELETE",name:"deleteAddonTag",params:[{name:"tag",style:"template"},{name:"addonId",style:"template"}]},{verb:"PUT",name:"addAddonTag",params:[{name:"tag",style:"template"},{name:"addonId",style:"template"}]}],"/self/applications":[{verb:"GET",name:"getApplications",params:[]},{verb:"POST",name:"addApplication",params:[]}],"/self/applications/{appId}":[{verb:"DELETE",name:"deleteApplication",params:[{name:"appId",style:"template"}]},{verb:"GET",name:"getApplication",params:[{name:"appId",style:"template"}]},{verb:"PUT",name:"editApplication",params:[{name:"appId",style:"template"}]}],"/self/applications/{appId}/addons":[{verb:"GET",name:"getAddonsLinkedToApplication",params:[{name:"appId",style:"template"}]},{verb:"POST",name:"linkAddonToApplication",params:[{name:"appId",style:"template"}]}],"/self/applications/{appId}/addons/{addonId}":[{verb:"DELETE",name:"unlinkAddonFromApplication",params:[{name:"appId",style:"template"},{name:"addonId",style:"template"}]}],"/self/applications/{appId}/env":[{verb:"GET",name:"editApplicationEnv",params:[{name:"appId",style:"template"}]}],"/self/applications/{appId}/env/{envName}":[{verb:"DELETE",name:"removeApplicationEnv",params:[{name:"appId",style:"template"},{name:"envName",style:"template"}]},{verb:"PUT",name:"editApplicationEnv",params:[{name:"appId",style:"template"},{name:"envName",style:"template"}]}],"/self/applications/{appId}/instance":[{verb:"PUT",name:"changeApplicationType",params:[{name:"appId",style:"template"},{name:"type",style:"query"},{name:"version",style:"query"}]}],"/self/applications/{appId}/instances":[{verb:"DELETE",name:"undeployApplication",params:[{name:"appId",style:"template"}]},{verb:"GET",name:"getApplicationInstances",params:[{name:"appId",style:"template"}]},{verb:"POST",name:"redeployApplication",params:[{name:"appId",style:"template"}]}],"/self/applications/{appId}/logs":[{verb:"GET",name:"getApplicationLogs",params:[{name:"appId",style:"template"},{name:"orger",style:"query"},{name:"since",style:"query"}]}],"/self/applications/{appId}/tags":[{verb:"GET",name:"getApplicationTags",params:[{name:"appId",style:"template"}]}],"/self/applications/{appId}/tags/{tag}":[{verb:"DELETE",name:"deleteApplicationTag",params:[{name:"appId",style:"template"},{name:"tag",style:"template"}]},{verb:"PUT",name:"addApplicationTag",params:[{name:"appId",style:"template"},{name:"tag",style:"template"}]}],"/self/applications/{appId}/vhosts":[{verb:"GET",name:"getVhosts",params:[{name:"appId",style:"template"}]}],"/self/applications/{appId}/vhosts/{domain}":[{verb:"DELETE",name:"removeVhost",params:[{name:"appId",style:"template"},{name:"domain",style:"template"}]},{verb:"PUT",name:"addVhost",params:[{name:"appId",style:"template"},{name:"domain",style:"template"}]}],"/self/change_password":[{verb:"PUT",name:"changeUserPassword",params:[]}],"/self/confirmation_email":[{verb:"GET",name:"getConfirmationEmail",params:[]}],"/self/credits":[{verb:"GET",name:"getAmount",params:[]}],"/self/credits/history":[{verb:"GET",name:"getStats",params:[{name:"type",style:"query"},{name:"appId",style:"query"},{name:"from",style:"query"},{name:"to",style:"query"}]}],"/self/emails":[{verb:"GET",name:"getEmailAddresses",params:[]}],"/self/emails/{email}":[{verb:"DELETE",name:"removeEmailAddress",params:[{name:"email",style:"template"}]},{verb:"PUT",name:"addEmailAddress",params:[{name:"email",style:"template"}]}],"/self/feedbacks":[{verb:"POST",name:"report",params:[]}],"/self/instances":[{verb:"GET",name:"getInstancesForAllApps",params:[]}],"/self/intercomhash":[{verb:"GET",name:"getIntercomeSecureModeHash",params:[]}],"/self/keys":[{verb:"GET",name:"getSshKeys",params:[]}],"/self/keys/{key}":[{verb:"DELETE",name:"removeSshKey",params:[{name:"key",style:"template"}]},{verb:"PUT",name:"addSshKey",params:[{name:"key",style:"template"}]}],"/self/payment-info":[{verb:"GET",name:"getPaymentInfo",params:[]}],"/self/payments/billings":[{verb:"GET",name:"getInvoices",params:[]},{verb:"POST",name:"buyDrops",params:[]}],"/self/payments/billings/{bid}":[{verb:"GET",name:"getInvoice",params:[{name:"bid",style:"template"}]},{verb:"PUT",name:"choosePaymentMethod",params:[{name:"bid",style:"template"}]}],"/self/payments/cards":[{verb:"GET",name:"getUserCards",params:[]}],"/self/payments/cards/{cardId}":[{verb:"DELETE",name:"deleteUserCard",params:[{name:"cardId",style:"template"}]}],"/self/payments/recurring":[{verb:"DELETE",name:"deleteRecurrentPayment",params:[]},{verb:"GET",name:"getRecurrentPayment",params:[]},{verb:"PUT",name:"createRecurrentPayment",params:[]}],"/self/tokens":[{verb:"GET",name:"getSelfTokens",params:[]}],"/self/tokens/{token}":[{verb:"DELETE",name:"revokeToken",params:[{name:"token",style:"template"}]}],"/self/validate_email":[{verb:"GET",name:"validateEmail",params:[{name:"validationKey",style:"query"}]}],"/session/login":[{verb:"GET",name:"getLoginForm",params:[{name:"invitationKey",style:"query"},{name:"validationKey",style:"query"},{name:"secondaryEmailKey",style:"query"},{name:"deletionKey",style:"query"},{name:"url_next",style:"query"},{name:"fromAuthorize",style:"query"}]},{verb:"POST",name:"login",params:[{name:"email",style:"query"},{name:"pass",style:"query"},{name:"invitationKey",style:"query"},{name:"url_next",style:"query"},{name:"from_authorize",style:"query"}]}],"/session/signup":[{verb:"GET",name:"getSignupForm",params:[{name:"invitationKey",style:"query"},{name:"url_next",style:"query"}]}],"/users":[{verb:"GET",name:"getUsers",params:[]},{verb:"POST",name:"createUserFromForm",params:[{name:"invitationKey",style:"query"},{name:"addonBetaInvitationKey",style:"query"},{name:"email",style:"query"},{name:"pass",style:"query"},{name:"url_next",style:"query"},{name:"terms",style:"query"}]},{verb:"POST",name:"createUser",params:[{name:"invitationKey",style:"query"},{name:"addonBetaInvitationKey",style:"query"}]}],"/users/{id}":[{verb:"GET",name:"getUser",params:[{name:"id",style:"template"}]}],"/users/{id}/applications":[{verb:"GET",name:"getApplications",params:[{name:"id",style:"template"}]}],"/validation/vat/{key}":[{verb:"GET",name:"validate",params:[{name:"key",style:"template"},{name:"action",style:"query"}]}],"/vat_check":[{verb:"GET",name:"checkVat",params:[{name:"country",style:"query"},{name:"vat",style:"query"}]}],"/vendor/apps":[{verb:"GET",name:"listApps",params:[{name:"offset",style:"query"}]}],"/vendor/apps/{addonId}":[{verb:"GET",name:"getApplicationInfo",params:[{name:"addonId",style:"template"}]},{verb:"PUT",name:"editApplicationConfiguration",params:[{name:"addonId",style:"template"}]}]}; | ||
function initializeAddonProvider(a){var b={};return b.getAll=function(){return a.addons.providers.get()()},b.get=function(b,c){var d=c?[c,b]:[b],e=c?a.organisations._:a.self;return e.addonproviders._.get.apply(a,d)()},b.update=function(b,c){var d=c?[c,b.id]:[b.id],e=c?a.organisations._:a.self;return e.addonproviders._.put.apply(a,d)(JSON.stringify(b))},b.getPlans=function(b,c){var d=c?[c,b]:[b],e=c?a.organisations._:a.self;return e.addonproviders._.plans.get.apply(a,d)()},b.editPlan=function(b,c,d){var e=d?[d,c,b.id]:[c,b.id],f=d?a.organisations._:a.self;return f.addonproviders._.plans._.put.apply(a,e)(JSON.stringify(b))},b.addPlan=function(b,c,d){var e=d?[d,c]:[c],f=d?a.organisations._:a.self;return f.addonproviders._.plans.post.apply(a,e)(JSON.stringify(b))},b.removePlan=function(b,c,d){var e=d?[d,c,b]:[c,b],f=d?a.organisations._:a.self;return f.addonproviders._.plans._.remove.apply(a,e)()},b.getFeatures=function(b,c){var d=c?[c,b]:[b],e=c?a.organisations._:a.self;return e.addonproviders._.features.get.apply(a,d)()},b.addFeature=function(b,c,d){var e=d?[d,c]:[c],f=d?a.organisations._:a.self;return f.addonproviders._.features.post.apply(a,e)(JSON.stringify(b))},b.removeFeature=function(b,c,d){var e=d?[d,c,encodeURIComponent(btoa(b))]:[c,encodeURIComponent(btoa(b))],f=d?a.organisations._:a.self;return f.addonproviders._.features._.remove.apply(a,e)()},b}function initializeAddon(a){var b={};return b.getPlanFeaturesDescription=function(a){return _.chain(a.features).sortBy("name").map(function(a){return a.name+"="+a.value}).value().join(", ")},b.getAll=function(b){var c=b?[b]:[],d=b?a.organisations._:a.self;return d.addons.get.apply(a,c)()},b.provision=function(b,c,d,e,f){var g=f?[f]:[],h=f?a.organisations._:a.self;return h.addons.post.apply(a,g)(JSON.stringify({name:b.name,region:b.region,providerId:c,plan:d,payment:e}))},b.get=function(b,c){var d=c?[c,b]:[b],e=c?a.organisations._:a.self;return e.addons._.get.apply(a,d)()},b.changePlan=function(b,c,d){var e=d?[d,c]:[c],f=d?a.organisations._:a.self;return f.addons._.put.apply(a,e)(JSON.stringify(b))},b.remove=function(b,c){var d=c?[c,b]:[b],e=c?a.organisations._:a.self;return e.addons._.remove.apply(a,d)()},b.getSSOData=function(b,c){var d=c?[c,b]:[b],e=c?a.organisations._:a.self;return e.addons._.sso.get.apply(a,d)()},b.getLinkedApplications=function(b,c){var d=c?[c,b]:[b],e=c?a.organisations._:a.self;return e.addons._.applications.get.apply(a,d)()},b.getTags=function(b,c){var d=c?[c,b]:[b],e=c?a.organisations._:a.self;return e.addons._.tags.get.apply(a,d)()},b.addTag=function(b,c,d){var e=d?[d,c,encodeURIComponent(b)]:[c,encodeURIComponent(b)],f=d?a.organisations._:a.self;return f.addons._.tags._.put.apply(a,e)()},b.removeTag=function(b,c,d){var e=d?[d,c,encodeURIComponent(b)]:[c,encodeURIComponent(b)],f=d?a.organisations._:a.self;return f.addons._.tags._.remove.apply(a,e)()},b}function initializeApplication(a){var b={};return b.create=function(b,c){var d=c?[c,b.id]:[b.id],e=c?a.organisations._:a.self;return e.applications.post.apply(a,d)(JSON.stringify(b))},b.get=function(b,c){var d=c?[c,b]:[b],e=c?a.organisations._:a.self;return e.applications._.get.apply(a,d)()},b.edit=function(b,c){var d=c?[c,b.id]:[b.id],e=c?a.organisations._:a.self;return e.applications._.put.apply(a,d)(JSON.stringify(b))},b.remove=function(b,c){var d=c?[c,b]:[b],e=c?a.organisations._:a.self;return e.applications._.remove.apply(a,d)()},b.getVhosts=function(b,c){var d=c?[c,b]:[b],e=c?a.organisations._:a.self;return e.applications._.vhosts.get.apply(a,d)()},b.addVhost=function(b,c,d){var e=d?[d,c,b]:[c,b],f=d?a.organisations._:a.self;return f.applications._.vhosts._.put.apply(a,e)()},b.removeVhost=function(b,c,d){var e=d?[d,c,b.fqdn]:[c,b.fqdn],f=d?a.organisations._:a.self;return f.applications._.vhosts._.remove.apply(a,e)()},b.getInstances=function(b,c){var d=c?[c,b]:[b],e=c?a.organisations._:a.self;return e.applications._.instances.get.apply(a,d)()},b.redeploy=function(b,c){var d=c?[c,b]:[b],e=c?a.organisations._:a.self;return e.applications._.instances.post.apply(a,d)()},b.undeploy=function(b,c){var d=c?[c,b]:[b],e=c?a.organisations._:a.self;return e.applications._.instances.remove.apply(a,d)()},b.getLogs=function(b,c,d){var e=c?[c,b]:[b],f=c?a.organisations._:a.self;return f.applications._.logs.get.apply(a,e)(d?{query:{since:d}}:null)},b.getInstanceIdsFromLogs=function(a){return _.chain(a).map(function(a){return a._source["@source_host"]}).unique().value()},b.getAddons=function(b,c){var d=c?[c,b]:[b],e=c?a.organisations._:a.self;return e.applications._.addons.get.apply(a,d)()},b.linkAddon=function(b,c,d){var e=d?[d,b]:[b],f=d?a.organisations._:a.self;return f.applications._.addons.post.apply(a,e)(JSON.stringify(c))},b.unlinkAddon=function(b,c,d){var e=d?[d,b,c]:[b,c],f=d?a.organisations._:a.self;return f.applications._.addons._.remove.apply(a,e)()},b.getEnvVariables=function(b,c){var d=c?[c,b]:[b],e=c?a.organisations._:a.self;return e.applications._.env.get.apply(a,d)()},b.setEnvVariable=function(b,c,d,e){var f=encodeURIComponent(b.toUpperCase()),g=e?[e,d,f]:[d,f],h=e?a.organisations._:a.self;return h.applications._.env._.put.apply(a,g)(JSON.stringify(c))},b.removeEnvVariable=function(b,c,d){var e=encodeURIComponent(b.toUpperCase()),f=d?[d,c,e]:[c,e],g=d?a.organisations._:a.self;return g.applications._.env._.remove.apply(a,f)()},b}function initializeInvoice(a){var b={};return b.createInvoice=function(b,c){var d=c?[c]:[],e=c?a.organisations._:a.self;return e.payments.billings.post.apply(a,d)(JSON.stringify(b))},b.getPaymentMethods=function(){return a.payments.methods.get()()},b.choosePaymentMethod=function(b,c,d){var e=d?[d,c.id]:[c.id],f=d?a.organisations._:a.self;return f.payments.billings._.put.apply(a,e)(JSON.stringify(b))},b.getPaymillKey=function(){return a.payments.publickeys.paymill.get()()},b.get=function(b,c){var d=c?[c,b]:[b],e=c?a.organisations._:a.self;return e.payments.billings._.get.apply(a,d)()},b.getAll=function(b){var c=b?[b]:[],d=b?a.organisations._:a.self;return d.payments.billings.get.apply(a,c)()},b}function initializeNews(a){var b={},c=function(a){var b=new Promise,c=a.getElementsByTagName("feed")[0];if(c){var d=c.getElementsByTagName("entry"),e=function(a){return{title:a.getElementsByTagName("title")[0].childNodes[0].data,href:a.getElementsByTagName("link")[0].getAttribute("href"),updated:new Date(a.getElementsByTagName("updated")[0].childNodes[0].data)}};b.resolve(_.map(d,e))}else b.reject(a);return b},d=function(a){var b=a&&a.feed&&a.feed[0],c=_.map(b.entry,function(a){return{title:a.title&&a.title[0]&&a.title[0].$t,link:a.link&&a.link[0]&&a.link[0].href,updated:a.updated&&a.updated[0]&&new Date(a.updated[0])}});return Promise.of(c)},e="undefined"!=typeof module&&module.exports&&"function"==typeof require?d:c;return b.getBlogPosts=function(){return a.newsfeeds.blog.get()().chain(e)},b.getEngineeringPosts=function(){return a.newsfeeds.engineering.get()().chain(e)},b}function initializeOrganisation(a){var b={};return b.getAll=function(b){return a.organisations.get()({query:{user:b}})},b.get=function(b){return a.organisations._.get(b)()},b.update=function(b){return a.organisations._.put(b.id)(JSON.stringify(b))},b.create=function(b){return a.organisations.post()(JSON.stringify(b))},b.remove=function(b){return a.organisations._.remove(b)()},b.addMember=function(b,c){return a.organisations._.members.post(c)(JSON.stringify(b))},b.confirmMembership=function(b,c){return a.organisations._.members.post(c)({query:b})},b.removeMember=function(b,c){return a.organisations._.members._.remove(c,b)()},b}function initializeProducts(a){var b={};return b.getInstances=function(b){return a.products.instances.get()({query:b?{"for":b}:{}})},b.getPackages=function(b,c){var d=_.extend({},b&&{coupon:b},c&&{orgaId:c});return a.products.packages.get()({query:d})},b.getPrices=function(){return a.products.prices.get()()},b.getCoupon=function(b){return a.payments.coupons._.get(b)()},b.getZones=function(){return a.products.zones.get()()},b}function initializeSession(a,b){var c={};return c.getOAuthParams=function(a,c){return _.extend({oauth_consumer_key:b.API_CONSUMER_KEY,oauth_signature_method:"PLAINTEXT",oauth_signature:b.API_CONSUMER_SECRET+"&"+(c||""),oauth_timestamp:Math.floor(Date.now()/1e3),oauth_nonce:Math.floor(1e6*Math.random())},a)},c.login=function(){var d=a.oauth.request_token.post()({headers:{"Content-Type":"application/x-www-form-urlencoded"},data:querystring.encode(c.getOAuthParams({oauth_callback:window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search}))});return d.map(function(a){var c=querystring.decode(a);localStorage.consumer_oauth_token=c.oauth_token,localStorage.consumer_oauth_token_secret=c.oauth_token_secret,window.location=b.API_HOST+"/oauth/authorize?oauth_token="+encodeURIComponent(c.oauth_token)})},c.getAccessTokenFromQueryString=function(){var a=querystring.decode(window.location.search.slice(1));return c.getAccessToken(a)},c.getAccessToken=function(b){var d=a.oauth.access_token.post()({headers:{"Content-Type":"application/x-www-form-urlencoded"},data:querystring.encode(c.getOAuthParams(b,localStorage.consumer_oauth_token_secret))});return d.map(function(a){var b=querystring.decode(a);return localStorage.user_oauth_token=b.oauth_token,localStorage.user_oauth_token_secret=b.oauth_token_secret,b})},c.getAuthorization=function(){if(localStorage.user_oauth_token&&localStorage.user_oauth_token_secret){var a=c.getOAuthParams({oauth_token:localStorage.user_oauth_token},localStorage.user_oauth_token_secret);return['OAuth realm="http://ccapi.cleverapps.io/v2/oauth"','oauth_consumer_key="'+a.oauth_consumer_key+'"','oauth_token="'+a.oauth_token+'"','oauth_signature_method="'+a.oauth_signature_method+'"','oauth_signature="'+a.oauth_signature+'"','oauth_timestamp="'+a.oauth_timestamp+'"','oauth_nonce="'+a.oauth_nonce+'"'].join(", ")}return""},c.remove=function(){localStorage.removeItem("consumer_oauth_token"),localStorage.removeItem("consumer_oauth_token_secret"),localStorage.removeItem("user_oauth_token"),localStorage.removeItem("user_oauth_token_secret")},c}function initializeStatistics(a){var b={};return b.getCredits=function(b){var c=b?[b]:[],d=b?a.organisations._:a.self;return d.credits.get.apply(a,c)()},b.getConsumptions=function(b,c){var d=c?[c]:[],e=c?a.organisations._:a.self;return e.credits.history.get.apply(a,d)({query:b})},b.getConsumptionsByAppAndByDate=function(a,b){var c=function(a){var b=new Date(a);return new Date(b.getFullYear(),b.getMonth(),b.getDate()).getTime()};return _.foldl(b,function(b,d){var e=b,f=c(d.date);return e[d.appId]=e[d.appId]||{},e[d.appId][f]=(e[d.appId][f]||0)-d.delta*a.value,e},{})},b}function initializeUser(a){var b={};return b.get=function(){return a.self.get()()},b.update=function(b){return a.self.put()(JSON.stringify(b))},b.changePassword=function(b,c){return a.self.change_password.put()(JSON.stringify({oldPassword:b,newPassword:c}))},b.getEmailAddresses=function(){return a.self.emails.get()()},b.addEmailAddress=function(b){return a.self.emails._.put(b)()},b.removeEmailAddress=function(b){return a.self.emails._.remove(b)()},b.getSSHKeys=function(){return a.self.keys.get()()},b.addSSHKey=function(b,c){return a.self.keys._.put(encodeURIComponent(b))(JSON.stringify(c))},b.removeSSHKey=function(b){return a.self.keys._.remove(encodeURIComponent(b))()},b.getCreditCards=function(){return a.self.payments.cards.get()()},b.getTokens=function(){return a.self.tokens.get()()},b.removeToken=function(b){return a.self.tokens._.remove(b)()},b}function CleverAPI(a){a=_.extend({API_HOST:"https://api.clever-cloud.com/v2"},a);var b=a.API_AUTHORIZATION?{Authorization:a.API_AUTHORIZATION,"Content-Type":"application/json"}:{},c={},d=c.client=WadlClient.buildClient(methods,{host:a.API_HOST,headers:b,parseJSON:!0,parseXML:!0});return c.session=initializeSession(d,a),c.user=initializeUser(d,a),c.organisation=initializeOrganisation(d,a),c.application=initializeApplication(d,a),c.products=initializeProducts(d,a),c.addon=initializeAddon(d,a),c.addonprovider=initializeAddonProvider(d,a),c.invoice=initializeInvoice(d,a),c.news=initializeNews(d,a),c.statistics=initializeStatistics(d,a),c}var methods={"//invoice/external/{bid}":[{verb:"POST",name:"updateInvoice",params:[{name:"bid",style:"template"}]}],"//payments/webhooks/paymill":[{verb:"POST",name:"subscriptionEvent",params:[]}],"/addons/providers":[{verb:"GET",name:"getAddonProviders",params:[]}],"/admin/owners/{id}/applications/{appId}":[{verb:"DELETE",name:"deleteApplicationForOwner",params:[{name:"id",style:"template"},{name:"appId",style:"template"}]}],"/cleverapps/{name}":[{verb:"GET",name:"checkDomainAvailability",params:[{name:"name",style:"template"}]}],"/coldstart":[{verb:"GET",name:"coldStart",params:[]}],"/github":[{verb:"GET",name:"startGithub",params:[]}],"/github/applications":[{verb:"GET",name:"getGithubApplications",params:[{name:"redirectUrl",style:"query"}]}],"/github/callback":[{verb:"GET",name:"githubCallback",params:[{name:"Cookie",style:"header"},{name:"code",style:"query"},{name:"state",style:"query"},{name:"error",style:"query"},{name:"error_description",style:"query"},{name:"error_uri",style:"query"}]}],"/github/keys":[{verb:"GET",name:"getGithubKeys",params:[{name:"redirectUrl",style:"query"}]}],"/github/link":[{verb:"GET",name:"linkGithub",params:[{name:"transactionId",style:"query"},{name:"redirectUrl",style:"query"}]}],"/github/login":[{verb:"GET",name:"githubLogin",params:[{name:"redirectUrl",style:"query"}]}],"/github/signup":[{verb:"GET",name:"githubSignup",params:[]},{verb:"POST",name:"finsihGithubSignup",params:[{name:"transactionId",style:"query"},{name:"firstName",style:"query"},{name:"lastName",style:"query"},{name:"terms",style:"query"}]}],"/internal/activeMails":[{verb:"GET",name:"getActiveMails",params:[]}],"/internal/applications":[{verb:"GET",name:"getApplications",params:[]}],"/internal/applications/{appId}":[{verb:"DELETE",name:"deleteApplication",params:[{name:"appId",style:"template"}]},{verb:"GET",name:"getApplication",params:[{name:"appId",style:"template"}]}],"/internal/applications/{appId}/downscale":[{verb:"POST",name:"downscaleApplication",params:[{name:"appId",style:"template"}]}],"/internal/applications/{appId}/forceRedeploy":[{verb:"POST",name:"forceRedeployApplication",params:[{name:"appId",style:"template"},{name:"down",style:"query"},{name:"commit",style:"query"}]}],"/internal/applications/{appId}/instances":[{verb:"POST",name:"changeApplicationInstances",params:[{name:"appId",style:"template"}]}],"/internal/applications/{appId}/instances/{instanceId}":[{verb:"PUT",name:"replaceApplicationInstance",params:[{name:"appId",style:"template"},{name:"instanceId",style:"template"}]}],"/internal/applications/{appId}/ownerId":[{verb:"GET",name:"getApplicationOwnerId",params:[{name:"appId",style:"template"}]}],"/internal/applications/{appId}/redeploy":[{verb:"POST",name:"redeployApplication",params:[{name:"appId",style:"template"},{name:"down",style:"query"},{name:"commit",style:"query"},{name:"cause",style:"query"}]}],"/internal/applications/{appId}/undeploy":[{verb:"POST",name:"undeployApplication",params:[{name:"appId",style:"template"}]}],"/internal/applications/{appId}/upscale":[{verb:"POST",name:"upscaleApplication",params:[{name:"appId",style:"template"}]}],"/internal/applications/{appId}/vhosts/{domain}":[{verb:"DELETE",name:"removeDomain",params:[{name:"appId",style:"template"},{name:"domain",style:"template"}]},{verb:"PUT",name:"addDomain",params:[{name:"appId",style:"template"},{name:"domain",style:"template"}]}],"/internal/coupons":[{verb:"POST",name:"createCoupon",params:[]}],"/internal/coupons/{name}":[{verb:"GET",name:"getCoupon",params:[{name:"name",style:"template"}]}],"/internal/dropcounts":[{verb:"GET",name:"getAllDropCount",params:[]}],"/internal/dropcounts/{ownerId}":[{verb:"GET",name:"getDropAccount",params:[{name:"ownerId",style:"template"}]},{verb:"POST",name:"addDrops",params:[{name:"ownerId",style:"template"}]}],"/internal/heroku/{ownerId}/providers":[{verb:"POST",name:"uploadManifest",params:[{name:"ownerId",style:"template"}]}],"/internal/instances":[{verb:"GET",name:"getInstances",params:[]}],"/internal/instances/dec":[{verb:"POST",name:"dec",params:[{name:"type",style:"query"},{name:"version",style:"query"}]}],"/internal/instances/inc":[{verb:"POST",name:"inc",params:[{name:"type",style:"query"},{name:"version",style:"query"}]}],"/internal/instances/{type}-{version}":[{verb:"GET",name:"getInstance",params:[{name:"type",style:"template"},{name:"version",style:"template"}]},{verb:"PUT",name:"createInstance",params:[{name:"type",style:"template"},{name:"version",style:"template"}]}],"/internal/invoices":[{verb:"GET",name:"getInvoices",params:[{name:"owner",style:"query"}]},{verb:"POST",name:"createPendingInvoice",params:[]}],"/internal/invoices/links":[{verb:"GET",name:"getLinks",params:[{name:"before",style:"query"}]}],"/internal/invoices/pdf":[{verb:"GET",name:"getPdfInvoices",params:[{name:"from",style:"query"}]}],"/internal/invoices/{invId}":[{verb:"GET",name:"getHtmlInvoice",params:[{name:"invId",style:"template"}]}],"/internal/invoices/{invoice}/credit":[{verb:"PUT",name:"generateCreditNote",params:[{name:"invoice",style:"template"}]}],"/internal/oauth1consumers":[{verb:"POST",name:"createOAuth1Consumer",params:[]}],"/internal/organisations":[{verb:"GET",name:"getOrganisations",params:[]}],"/internal/owners/{ownerId}":[{verb:"GET",name:"getOwner",params:[{name:"ownerId",style:"template"}]}],"/internal/owners/{ownerId}/applications":[{verb:"GET",name:"getOwnerApplications",params:[{name:"ownerId",style:"template"}]}],"/internal/owners/{ownerId}/keys":[{verb:"GET",name:"getUserSshKeys",params:[{name:"ownerId",style:"template"}]}],"/internal/packages":[{verb:"GET",name:"getAvailablePackages",params:[{name:"currency",style:"query"}]},{verb:"POST",name:"createPackage",params:[]}],"/internal/packages/{packageId}":[{verb:"DELETE",name:"deletePackage",params:[{name:"packageId",style:"template"}]},{verb:"PUT",name:"editPackage",params:[{name:"packageId",style:"template"}]}],"/internal/pending":[{verb:"GET",name:"getPendingUsers",params:[]}],"/internal/prices/{currency}":[{verb:"PUT",name:"setExchangeRate",params:[{name:"currency",style:"template"}]}],"/internal/users":[{verb:"GET",name:"getUsers",params:[{name:"email",style:"query"}]}],"/internal/users/{userId}/email":[{verb:"GET",name:"getEmail",params:[{name:"userId",style:"template"}]}],"/internal/users/{userId}/keys/{name}":[{verb:"DELETE",name:"deleteSshKey",params:[{name:"name",style:"template"},{name:"userId",style:"template"}]}],"/internal/users/{userId}/validate":[{verb:"POST",name:"validateUser",params:[{name:"userId",style:"template"}]}],"/newsfeeds/blog":[{verb:"GET",name:"getBlogFeed",params:[]}],"/newsfeeds/engineering":[{verb:"GET",name:"getEngineeringFeed",params:[]}],"/oauth/access_token":[{verb:"POST",name:"postAccessTokenRequest",params:[{name:"oauth_consumer_key",style:"query"},{name:"oauth_token",style:"query"},{name:"oauth_signature_method",style:"query"},{name:"oauth_signature",style:"query"},{name:"oauth_timestamp",style:"query"},{name:"oauth_nonce",style:"query"},{name:"oauth_version",style:"query"},{name:"oauth_verifier",style:"query"},{name:"oauth_callback",style:"query"},{name:"oauth_token_secret",style:"query"},{name:"oauth_callback_confirmed",style:"query"}]}],"/oauth/authorize":[{verb:"GET",name:"authorizeForm",params:[{name:"Cookie",style:"header"},{name:"Cookie",style:"header"},{name:"oauth_token",style:"query"}]},{verb:"POST",name:"authorizeToken",params:[{name:"Cookie",style:"header"},{name:"Cookie",style:"header"},{name:"almighty",style:"query"},{name:"access_organisations",style:"query"},{name:"manage_organisations",style:"query"},{name:"manage_organisations_services",style:"query"},{name:"manage_organisations_applications",style:"query"},{name:"manage_organisations_members",style:"query"},{name:"access_organisations_bills",style:"query"},{name:"access_organisations_credit_count",style:"query"},{name:"access_organisations_consumption_statistics",style:"query"},{name:"access_personal_information",style:"query"},{name:"manage_personal_information",style:"query"},{name:"manage_ssh_keys",style:"query"},{name:"manage_services",style:"query"},{name:"manage_applications",style:"query"},{name:"access_bills",style:"query"},{name:"access_credit_count",style:"query"},{name:"access_consumption_statistics",style:"query"},{name:"report_feedback",style:"query"}]}],"/oauth/request_token":[{verb:"POST",name:"postReqTokenRequest",params:[{name:"oauth_consumer_key",style:"query"},{name:"oauth_token",style:"query"},{name:"oauth_signature_method",style:"query"},{name:"oauth_signature",style:"query"},{name:"oauth_timestamp",style:"query"},{name:"oauth_nonce",style:"query"},{name:"oauth_version",style:"query"},{name:"oauth_verifier",style:"query"},{name:"oauth_callback",style:"query"},{name:"oauth_token_secret",style:"query"},{name:"oauth_callback_confirmed",style:"query"}]}],"/organisations":[{verb:"GET",name:"getUserOrganisationss",params:[{name:"user",style:"query"}]},{verb:"POST",name:"createOrganisation",params:[]}],"/organisations/{id}":[{verb:"DELETE",name:"deleteOrganisation",params:[{name:"id",style:"template"}]},{verb:"GET",name:"getOrganisation",params:[{name:"id",style:"template"}]},{verb:"PUT",name:"editOrganisation",params:[{name:"id",style:"template"}]}],"/organisations/{id}/addonproviders/{providerId}":[{verb:"GET",name:"getProviderInfos",params:[{name:"id",style:"template"},{name:"providerId",style:"template"}]},{verb:"PUT",name:"updateProviderInfos",params:[{name:"id",style:"template"},{name:"providerId",style:"template"}]}],"/organisations/{id}/addonproviders/{providerId}/features":[{verb:"GET",name:"getProviderFeatures",params:[{name:"id",style:"template"},{name:"providerId",style:"template"}]},{verb:"POST",name:"addProviderFeature",params:[{name:"id",style:"template"},{name:"providerId",style:"template"}]}],"/organisations/{id}/addonproviders/{providerId}/features/{featureId}":[{verb:"DELETE",name:"deleteProviderFeature",params:[{name:"id",style:"template"},{name:"featureId",style:"template"},{name:"providerId",style:"template"}]}],"/organisations/{id}/addonproviders/{providerId}/plans":[{verb:"GET",name:"getProviderPlans",params:[{name:"id",style:"template"},{name:"providerId",style:"template"}]},{verb:"POST",name:"addProviderPlan",params:[{name:"id",style:"template"},{name:"providerId",style:"template"}]}],"/organisations/{id}/addonproviders/{providerId}/plans/{planId}":[{verb:"DELETE",name:"deleteProviderPlan",params:[{name:"id",style:"template"},{name:"providerId",style:"template"},{name:"planId",style:"template"}]},{verb:"GET",name:"getProviderPlan",params:[{name:"id",style:"template"},{name:"providerId",style:"template"},{name:"planId",style:"template"}]},{verb:"PUT",name:"editProviderPlan",params:[{name:"id",style:"template"},{name:"providerId",style:"template"},{name:"planId",style:"template"}]}],"/organisations/{id}/addonproviders/{providerId}/testers":[{verb:"POST",name:"addBetaTester",params:[{name:"id",style:"template"},{name:"providerId",style:"template"}]}],"/organisations/{id}/addons":[{verb:"GET",name:"getAddons",params:[{name:"id",style:"template"}]},{verb:"POST",name:"provisionAddon",params:[{name:"id",style:"template"}]}],"/organisations/{id}/addons/{addonId}":[{verb:"DELETE",name:"deprovisionAddon",params:[{name:"id",style:"template"},{name:"addonId",style:"template"}]},{verb:"GET",name:"getAddon",params:[{name:"id",style:"template"},{name:"addonId",style:"template"}]},{verb:"PUT",name:"changePlan",params:[{name:"id",style:"template"},{name:"addonId",style:"template"}]}],"/organisations/{id}/addons/{addonId}/applications":[{verb:"GET",name:"getApplicationsLinkedToAddon",params:[{name:"id",style:"template"},{name:"addonId",style:"template"}]}],"/organisations/{id}/addons/{addonId}/sso":[{verb:"GET",name:"getSSOData",params:[{name:"id",style:"template"},{name:"addonId",style:"template"}]}],"/organisations/{id}/addons/{addonId}/tags":[{verb:"GET",name:"getAddonTags",params:[{name:"id",style:"template"},{name:"addonId",style:"template"}]}],"/organisations/{id}/addons/{addonId}/tags/{tag}":[{verb:"DELETE",name:"deleteAddonTag",params:[{name:"id",style:"template"},{name:"tag",style:"template"},{name:"addonId",style:"template"}]},{verb:"PUT",name:"addAddonTag",params:[{name:"id",style:"template"},{name:"tag",style:"template"},{name:"addonId",style:"template"}]}],"/organisations/{id}/applications":[{verb:"GET",name:"getAllApplications",params:[{name:"id",style:"template"}]},{verb:"POST",name:"addApplication",params:[{name:"id",style:"template"}]}],"/organisations/{id}/applications/{appId}":[{verb:"DELETE",name:"deleteApplication",params:[{name:"id",style:"template"},{name:"appId",style:"template"}]},{verb:"GET",name:"getApplication",params:[{name:"id",style:"template"},{name:"appId",style:"template"}]},{verb:"PUT",name:"editApplication",params:[{name:"id",style:"template"},{name:"appId",style:"template"}]}],"/organisations/{id}/applications/{appId}/addons":[{verb:"GET",name:"getAddonsLinkedToApplication",params:[{name:"id",style:"template"},{name:"appId",style:"template"}]},{verb:"POST",name:"linkAddonToApplication",params:[{name:"id",style:"template"},{name:"appId",style:"template"}]}],"/organisations/{id}/applications/{appId}/addons/{addonId}":[{verb:"DELETE",name:"unlinkAddonFromApplication",params:[{name:"id",style:"template"},{name:"appId",style:"template"},{name:"addonId",style:"template"}]}],"/organisations/{id}/applications/{appId}/env":[{verb:"GET",name:"getApplicationEnv",params:[{name:"id",style:"template"},{name:"appId",style:"template"}]}],"/organisations/{id}/applications/{appId}/env/{envName}":[{verb:"DELETE",name:"removeApplicationEnv",params:[{name:"id",style:"template"},{name:"appId",style:"template"},{name:"envName",style:"template"}]},{verb:"PUT",name:"editApplicationEnv",params:[{name:"id",style:"template"},{name:"appId",style:"template"},{name:"envName",style:"template"}]}],"/organisations/{id}/applications/{appId}/instance":[{verb:"PUT",name:"changeApplicationType",params:[{name:"id",style:"template"},{name:"appId",style:"template"},{name:"type",style:"query"},{name:"version",style:"query"}]}],"/organisations/{id}/applications/{appId}/instances":[{verb:"DELETE",name:"undeployApplication",params:[{name:"id",style:"template"},{name:"appId",style:"template"}]},{verb:"GET",name:"getApplicationInstances",params:[{name:"id",style:"template"},{name:"appId",style:"template"}]},{verb:"POST",name:"redeployApplication",params:[{name:"id",style:"template"},{name:"appId",style:"template"}]}],"/organisations/{id}/applications/{appId}/logs":[{verb:"GET",name:"getApplicationLogss",params:[{name:"id",style:"template"},{name:"appId",style:"template"},{name:"order",style:"query"},{name:"since",style:"query"}]}],"/organisations/{id}/applications/{appId}/tags":[{verb:"GET",name:"getApplicationTags",params:[{name:"id",style:"template"},{name:"appId",style:"template"}]}],"/organisations/{id}/applications/{appId}/tags/{tag}":[{verb:"DELETE",name:"deleteApplicationTag",params:[{name:"id",style:"template"},{name:"appId",style:"template"},{name:"tag",style:"template"}]},{verb:"PUT",name:"addApplicationTag",params:[{name:"id",style:"template"},{name:"appId",style:"template"},{name:"tag",style:"template"}]}],"/organisations/{id}/applications/{appId}/vhosts":[{verb:"GET",name:"getVhosts",params:[{name:"id",style:"template"},{name:"appId",style:"template"}]}],"/organisations/{id}/applications/{appId}/vhosts/{domain}":[{verb:"DELETE",name:"removeVhost",params:[{name:"id",style:"template"},{name:"appId",style:"template"},{name:"domain",style:"template"}]},{verb:"PUT",name:"addVhost",params:[{name:"id",style:"template"},{name:"appId",style:"template"},{name:"domain",style:"template"}]}],"/organisations/{id}/credits":[{verb:"GET",name:"getAmount",params:[{name:"id",style:"template"}]}],"/organisations/{id}/credits/history":[{verb:"GET",name:"getStats",params:[{name:"id",style:"template"},{name:"type",style:"query"},{name:"appId",style:"query"},{name:"from",style:"query"},{name:"to",style:"query"}]}],"/organisations/{id}/instances":[{verb:"GET",name:"getInstancesForAllApps",params:[{name:"id",style:"template"}]}],"/organisations/{id}/members":[{verb:"POST",name:"addOrganisationMember",params:[{name:"id",style:"template"},{name:"invitationKey",style:"query"}]}],"/organisations/{id}/members/{userId}":[{verb:"DELETE",name:"removeOrganisationMember",params:[{name:"id",style:"template"},{name:"userId",style:"template"}]},{verb:"PUT",name:"editOrganisationMember",params:[{name:"id",style:"template"},{name:"userId",style:"template"}]}],"/organisations/{id}/payment-info":[{verb:"GET",name:"getPaymentInfo",params:[{name:"id",style:"template"}]}],"/organisations/{id}/payments/billings":[{verb:"GET",name:"getInvoices",params:[{name:"id",style:"template"}]},{verb:"POST",name:"buyDrops",params:[{name:"id",style:"template"}]}],"/organisations/{id}/payments/billings/{bid}":[{verb:"GET",name:"getInvoice",params:[{name:"id",style:"template"},{name:"bid",style:"template"}]},{verb:"PUT",name:"choosePaymentMethod",params:[{name:"id",style:"template"},{name:"bid",style:"template"}]}],"/organisations/{id}/payments/recurring":[{verb:"DELETE",name:"deleteRecurrentPayment",params:[{name:"id",style:"template"}]},{verb:"GET",name:"getRecurrentPayment",params:[{name:"id",style:"template"}]},{verb:"PUT",name:"createRecurrentPayment",params:[{name:"id",style:"template"}]}],"/password_forgotten":[{verb:"GET",name:"getPasswordForgottenForm",params:[]},{verb:"POST",name:"askForPasswordReset",params:[{name:"TesterPass",style:"header"}]},{verb:"POST",name:"askForPasswordResetViaForm",params:[{name:"TesterPass",style:"header"},{name:"login",style:"query"}]}],"/password_forgotten/{key}":[{verb:"GET",name:"confirmPasswordResetRequest",params:[{name:"key",style:"template"},{name:"TesterPass",style:"header"}]}],"/payments/coupons/{name}":[{verb:"GET",name:"getCoupon",params:[{name:"name",style:"template"}]}],"/payments/methods":[{verb:"GET",name:"getAvailablePaymentMethods",params:[]}],"/payments/publickeys/paymill":[{verb:"GET",name:"getPaymillPublicKey",params:[]}],"/payments/webhooks/paymill":[{verb:"POST",name:"handlePaymillWebHook",params:[{name:"verif",style:"query"}]}],"/payments/{bid}/cancel/paymill":[{verb:"POST",name:"cancelPaymillPayment",params:[{name:"bid",style:"template"}]}],"/payments/{bid}/cancel/paypal":[{verb:"GET",name:"cancelPaypalPayment",params:[{name:"bid",style:"template"}]}],"/payments/{bid}/end/paymill":[{verb:"POST",name:"endPaymillPayment",params:[{name:"bid",style:"template"}]}],"/payments/{bid}/end/paypal":[{verb:"GET",name:"endPaypalPayment",params:[{name:"bid",style:"template"},{name:"token",style:"query"},{name:"PayerID",style:"query"}]}],"/ping":[{verb:"GET",name:"ping",params:[]}],"/ping/stats":[{verb:"GET",name:"stats",params:[]}],"/products/instances":[{verb:"GET",name:"getAvailableInstances",params:[{name:"for",style:"query"}]}],"/products/packages":[{verb:"GET",name:"getAvailablePackages",params:[{name:"coupon",style:"query"},{name:"orgaId",style:"query"},{name:"currency",style:"query"}]}],"/products/prices":[{verb:"GET",name:"getExcahngeRates",params:[]}],"/products/zones":[{verb:"GET",name:"getZones",params:[]}],"/self":[{verb:"DELETE",name:"deleteUser",params:[]},{verb:"GET",name:"getUser",params:[]},{verb:"PUT",name:"editUser",params:[]}],"/self/addons":[{verb:"GET",name:"getAddons",params:[]},{verb:"POST",name:"provisionAddon",params:[]}],"/self/addons/{addonId}":[{verb:"DELETE",name:"deprovisionAddon",params:[{name:"addonId",style:"template"}]},{verb:"GET",name:"getAddon",params:[{name:"addonId",style:"template"}]},{verb:"PUT",name:"changePlan",params:[{name:"addonId",style:"template"}]}],"/self/addons/{addonId}/applications":[{verb:"GET",name:"getApplicationsLinkedToAddon",params:[{name:"addonId",style:"template"}]}],"/self/addons/{addonId}/sso":[{verb:"GET",name:"getSSOData",params:[{name:"addonId",style:"template"}]}],"/self/addons/{addonId}/tags":[{verb:"GET",name:"getAddonTags",params:[{name:"addonId",style:"template"}]}],"/self/addons/{addonId}/tags/{tag}":[{verb:"DELETE",name:"deleteAddonTag",params:[{name:"tag",style:"template"},{name:"addonId",style:"template"}]},{verb:"PUT",name:"addAddonTag",params:[{name:"tag",style:"template"},{name:"addonId",style:"template"}]}],"/self/applications":[{verb:"GET",name:"getApplications",params:[]},{verb:"POST",name:"addApplication",params:[]}],"/self/applications/{appId}":[{verb:"DELETE",name:"deleteApplication",params:[{name:"appId",style:"template"}]},{verb:"GET",name:"getApplication",params:[{name:"appId",style:"template"}]},{verb:"PUT",name:"editApplication",params:[{name:"appId",style:"template"}]}],"/self/applications/{appId}/addons":[{verb:"GET",name:"getAddonsLinkedToApplication",params:[{name:"appId",style:"template"}]},{verb:"POST",name:"linkAddonToApplication",params:[{name:"appId",style:"template"}]}],"/self/applications/{appId}/addons/{addonId}":[{verb:"DELETE",name:"unlinkAddonFromApplication",params:[{name:"appId",style:"template"},{name:"addonId",style:"template"}]}],"/self/applications/{appId}/env":[{verb:"GET",name:"editApplicationEnv",params:[{name:"appId",style:"template"}]}],"/self/applications/{appId}/env/{envName}":[{verb:"DELETE",name:"removeApplicationEnv",params:[{name:"appId",style:"template"},{name:"envName",style:"template"}]},{verb:"PUT",name:"editApplicationEnv",params:[{name:"appId",style:"template"},{name:"envName",style:"template"}]}],"/self/applications/{appId}/instance":[{verb:"PUT",name:"changeApplicationType",params:[{name:"appId",style:"template"},{name:"type",style:"query"},{name:"version",style:"query"}]}],"/self/applications/{appId}/instances":[{verb:"DELETE",name:"undeployApplication",params:[{name:"appId",style:"template"}]},{verb:"GET",name:"getApplicationInstances",params:[{name:"appId",style:"template"}]},{verb:"POST",name:"redeployApplication",params:[{name:"appId",style:"template"}]}],"/self/applications/{appId}/logs":[{verb:"GET",name:"getApplicationLogs",params:[{name:"appId",style:"template"},{name:"orger",style:"query"},{name:"since",style:"query"}]}],"/self/applications/{appId}/tags":[{verb:"GET",name:"getApplicationTags",params:[{name:"appId",style:"template"}]}],"/self/applications/{appId}/tags/{tag}":[{verb:"DELETE",name:"deleteApplicationTag",params:[{name:"appId",style:"template"},{name:"tag",style:"template"}]},{verb:"PUT",name:"addApplicationTag",params:[{name:"appId",style:"template"},{name:"tag",style:"template"}]}],"/self/applications/{appId}/vhosts":[{verb:"GET",name:"getVhosts",params:[{name:"appId",style:"template"}]}],"/self/applications/{appId}/vhosts/{domain}":[{verb:"DELETE",name:"removeVhost",params:[{name:"appId",style:"template"},{name:"domain",style:"template"}]},{verb:"PUT",name:"addVhost",params:[{name:"appId",style:"template"},{name:"domain",style:"template"}]}],"/self/change_password":[{verb:"PUT",name:"changeUserPassword",params:[]}],"/self/confirmation_email":[{verb:"GET",name:"getConfirmationEmail",params:[]}],"/self/credits":[{verb:"GET",name:"getAmount",params:[]}],"/self/credits/history":[{verb:"GET",name:"getStats",params:[{name:"type",style:"query"},{name:"appId",style:"query"},{name:"from",style:"query"},{name:"to",style:"query"}]}],"/self/emails":[{verb:"GET",name:"getEmailAddresses",params:[]}],"/self/emails/{email}":[{verb:"DELETE",name:"removeEmailAddress",params:[{name:"email",style:"template"}]},{verb:"PUT",name:"addEmailAddress",params:[{name:"email",style:"template"}]}],"/self/feedbacks":[{verb:"POST",name:"report",params:[]}],"/self/instances":[{verb:"GET",name:"getInstancesForAllApps",params:[]}],"/self/intercomhash":[{verb:"GET",name:"getIntercomeSecureModeHash",params:[]}],"/self/keys":[{verb:"GET",name:"getSshKeys",params:[]}],"/self/keys/{key}":[{verb:"DELETE",name:"removeSshKey",params:[{name:"key",style:"template"}]},{verb:"PUT",name:"addSshKey",params:[{name:"key",style:"template"}]}],"/self/payment-info":[{verb:"GET",name:"getPaymentInfo",params:[]}],"/self/payments/billings":[{verb:"GET",name:"getInvoices",params:[]},{verb:"POST",name:"buyDrops",params:[]}],"/self/payments/billings/{bid}":[{verb:"GET",name:"getInvoice",params:[{name:"bid",style:"template"}]},{verb:"PUT",name:"choosePaymentMethod",params:[{name:"bid",style:"template"}]}],"/self/payments/cards":[{verb:"GET",name:"getUserCards",params:[]}],"/self/payments/cards/{cardId}":[{verb:"DELETE",name:"deleteUserCard",params:[{name:"cardId",style:"template"}]}],"/self/payments/recurring":[{verb:"DELETE",name:"deleteRecurrentPayment",params:[]},{verb:"GET",name:"getRecurrentPayment",params:[]},{verb:"PUT",name:"createRecurrentPayment",params:[]}],"/self/tokens":[{verb:"GET",name:"getSelfTokens",params:[]}],"/self/tokens/{token}":[{verb:"DELETE",name:"revokeToken",params:[{name:"token",style:"template"}]}],"/self/validate_email":[{verb:"GET",name:"validateEmail",params:[{name:"validationKey",style:"query"}]}],"/session/login":[{verb:"GET",name:"getLoginForm",params:[{name:"invitationKey",style:"query"},{name:"validationKey",style:"query"},{name:"secondaryEmailKey",style:"query"},{name:"deletionKey",style:"query"},{name:"url_next",style:"query"},{name:"fromAuthorize",style:"query"}]},{verb:"POST",name:"login",params:[{name:"email",style:"query"},{name:"pass",style:"query"},{name:"invitationKey",style:"query"},{name:"url_next",style:"query"},{name:"from_authorize",style:"query"}]}],"/session/signup":[{verb:"GET",name:"getSignupForm",params:[{name:"invitationKey",style:"query"},{name:"url_next",style:"query"}]}],"/users":[{verb:"GET",name:"getUsers",params:[]},{verb:"POST",name:"createUser",params:[{name:"invitationKey",style:"query"},{name:"addonBetaInvitationKey",style:"query"}]},{verb:"POST",name:"createUserFromForm",params:[{name:"invitationKey",style:"query"},{name:"addonBetaInvitationKey",style:"query"},{name:"email",style:"query"},{name:"pass",style:"query"},{name:"url_next",style:"query"},{name:"terms",style:"query"}]}],"/users/{id}":[{verb:"GET",name:"getUser",params:[{name:"id",style:"template"}]}],"/users/{id}/applications":[{verb:"GET",name:"getApplications",params:[{name:"id",style:"template"}]}],"/validation/vat/{key}":[{verb:"GET",name:"validate",params:[{name:"key",style:"template"},{name:"action",style:"query"}]}],"/vat_check":[{verb:"GET",name:"checkVat",params:[{name:"country",style:"query"},{name:"vat",style:"query"}]}],"/vendor/apps":[{verb:"GET",name:"listApps",params:[{name:"offset",style:"query"}]}],"/vendor/apps/{addonId}":[{verb:"GET",name:"getApplicationInfo",params:[{name:"addonId",style:"template"}]},{verb:"PUT",name:"editApplicationConfiguration",params:[{name:"addonId",style:"template"}]}]}; | ||
"undefined"==typeof _&&(_=require("lodash")),"undefined"==typeof WadlClient&&(WadlClient=require("wadl-client")),"undefined"!=typeof module&&module.exports&&(module.exports=CleverAPI); |
{ | ||
"name": "clever-client", | ||
"version": "0.1.14", | ||
"version": "0.1.15", | ||
"description": "Javascript models for Clever-Cloud API", | ||
@@ -5,0 +5,0 @@ "main": "dist/clever-client.js", |
@@ -23,3 +23,3 @@ function initializeAddon(client, settings) { | ||
name: information.name, | ||
zone: information.zone, | ||
region: information.region, | ||
providerId: providerId, | ||
@@ -26,0 +26,0 @@ plan: planId, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1118968