@clevercloud/client
Advanced tools
Comparing version 7.5.0 to 7.6.0
@@ -437,3 +437,3 @@ "use strict"; | ||
unpaid: { | ||
get: prepareRequest(organisation.todo_getUnpaidInvoicesByOrga, ['id']) | ||
get: prepareRequest(organisation.todo_getUnpaidInvoicesByOrga_1, ['id']) | ||
} | ||
@@ -447,3 +447,3 @@ }, | ||
methods: { | ||
get: prepareRequest(organisation.todo_getUnpaidInvoicesByOrga_1, ['id']), | ||
get: prepareRequest(organisation.todo_getUnpaidInvoicesByOrga, ['id']), | ||
post: prepareRequest(organisation.todo_addPaymentMethodByOrga, ['id']), | ||
@@ -450,0 +450,0 @@ _: { |
@@ -24,3 +24,3 @@ "use strict"; | ||
exports.todo_buyDropsByOrga = todo_buyDropsByOrga; | ||
exports.todo_getUnpaidInvoicesByOrga = todo_getUnpaidInvoicesByOrga; | ||
exports.todo_getUnpaidInvoicesByOrga_1 = todo_getUnpaidInvoicesByOrga_1; | ||
exports.deletePurchaseOrder = deletePurchaseOrder; | ||
@@ -31,3 +31,3 @@ exports.getInvoice = getInvoice; | ||
exports.todo_getPriceWithTaxByOrga = todo_getPriceWithTaxByOrga; | ||
exports.todo_getUnpaidInvoicesByOrga_1 = todo_getUnpaidInvoicesByOrga_1; | ||
exports.todo_getUnpaidInvoicesByOrga = todo_getUnpaidInvoicesByOrga; | ||
exports.todo_addPaymentMethodByOrga = todo_addPaymentMethodByOrga; | ||
@@ -431,3 +431,3 @@ exports.todo_getDefaultMethodByOrga = todo_getDefaultMethodByOrga; | ||
function todo_getUnpaidInvoicesByOrga(params) { | ||
function todo_getUnpaidInvoicesByOrga_1(params) { | ||
// no multipath for /self or /organisations/{id} | ||
@@ -557,3 +557,3 @@ return Promise.resolve({ | ||
function todo_getUnpaidInvoicesByOrga_1(params) { | ||
function todo_getUnpaidInvoicesByOrga(params) { | ||
// no multipath for /self or /organisations/{id} | ||
@@ -560,0 +560,0 @@ return Promise.resolve({ |
@@ -6,2 +6,3 @@ "use strict"; | ||
}); | ||
exports.getJenkinsUpdates = getJenkinsUpdates; | ||
exports.getAddonProvider = getAddonProvider; | ||
@@ -14,2 +15,19 @@ exports.getAddon = getAddon; | ||
/** | ||
* GET /addon-providers/jenkins/addons/{addonId}/updates | ||
* @param {Object} params | ||
* @param {String} params.addonId | ||
*/ | ||
function getJenkinsUpdates(params) { | ||
// no multipath for /self or /organisations/{id} | ||
return Promise.resolve({ | ||
method: 'get', | ||
url: `/v4/addon-providers/jenkins/addons/${params.addonId}/updates`, | ||
headers: { | ||
Accept: 'application/json' | ||
} // no query params | ||
// no body | ||
}); | ||
} | ||
/** | ||
* GET /addon-providers/{providerId} | ||
@@ -19,2 +37,4 @@ * @param {Object} params | ||
*/ | ||
function getAddonProvider(params) { | ||
@@ -21,0 +41,0 @@ // no multipath for /self or /organisations/{id} |
@@ -411,3 +411,3 @@ import * as addon from './addon.js'; | ||
unpaid: { | ||
get: prepareRequest(organisation.todo_getUnpaidInvoicesByOrga, ['id']), | ||
get: prepareRequest(organisation.todo_getUnpaidInvoicesByOrga_1, ['id']), | ||
}, | ||
@@ -421,3 +421,3 @@ }, | ||
methods: { | ||
get: prepareRequest(organisation.todo_getUnpaidInvoicesByOrga_1, ['id']), | ||
get: prepareRequest(organisation.todo_getUnpaidInvoicesByOrga, ['id']), | ||
post: prepareRequest(organisation.todo_addPaymentMethodByOrga, ['id']), | ||
@@ -424,0 +424,0 @@ _: { |
@@ -317,3 +317,3 @@ import { pickNonNull } from '../../pick-non-null.js'; | ||
*/ | ||
export function todo_getUnpaidInvoicesByOrga(params) { | ||
export function todo_getUnpaidInvoicesByOrga_1(params) { | ||
// no multipath for /self or /organisations/{id} | ||
@@ -424,3 +424,3 @@ return Promise.resolve({ | ||
*/ | ||
export function todo_getUnpaidInvoicesByOrga_1(params) { | ||
export function todo_getUnpaidInvoicesByOrga(params) { | ||
// no multipath for /self or /organisations/{id} | ||
@@ -427,0 +427,0 @@ return Promise.resolve({ |
import { pickNonNull } from '../../pick-non-null.js'; | ||
/** | ||
* GET /addon-providers/jenkins/addons/{addonId}/updates | ||
* @param {Object} params | ||
* @param {String} params.addonId | ||
*/ | ||
export function getJenkinsUpdates(params) { | ||
// no multipath for /self or /organisations/{id} | ||
return Promise.resolve({ | ||
method: 'get', | ||
url: `/v4/addon-providers/jenkins/addons/${params.addonId}/updates`, | ||
headers: { Accept: 'application/json' }, | ||
// no query params | ||
// no body | ||
}); | ||
} | ||
/** | ||
* GET /addon-providers/{providerId} | ||
@@ -5,0 +21,0 @@ * @param {Object} params |
{ | ||
"name": "@clevercloud/client", | ||
"version": "7.5.0", | ||
"version": "7.6.0", | ||
"description": "JavaScript REST client and utils for Clever Cloud's API", | ||
@@ -29,3 +29,3 @@ "homepage": "https://github.com/CleverCloud/clever-client.js", | ||
"prepack": "npm run lint && npm run test && npm run generate-client", | ||
"test": "echo ok", | ||
"test": "web-test-runner \"test/**/*.spec.js\" --node-resolve", | ||
"test:watch": "web-test-runner \"test/**/*.spec.js\" --node-resolve --watch" | ||
@@ -32,0 +32,0 @@ }, |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
460308
96
13899
0