New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@clevercloud/client

Package Overview
Dependencies
Maintainers
6
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@clevercloud/client - npm Package Compare versions

Comparing version 2.1.0-beta.0 to 2.1.0

4

CHANGELOG.md
# Clever Client changelog
## 2.1.0 (2019-12-13)
- API endpoints update
## 2.0.1 (2019-09-23)

@@ -4,0 +8,0 @@

23

cjs/api/legacy-client.js

@@ -413,9 +413,2 @@ "use strict";

},
cards: {
get: prepareRequest(unknown.todo_getCards, ['id']),
post: prepareRequest(unknown.todo_addCard, ['id']),
_: {
delete: prepareRequest(unknown.todo_deleteCard, ['id', 'mId'])
}
},
fullprice: {

@@ -450,9 +443,2 @@ _: {

},
'sepa-debit-accounts': {
get: prepareRequest(unknown.todo_getSepaDebitAccounts, ['id']),
post: prepareRequest(unknown.todo_addSepaDebitAccount, ['id']),
_: {
delete: prepareRequest(unknown.todo_deleteSepaDebitAccount, ['id', 'mId'])
}
},
tokens: {

@@ -477,5 +463,2 @@ stripe: {

end: {
'sepa-debit': {
post: prepareRequest(unknown.todo_endPaymentWithSepaDebit, ['bid'])
},
stripe: {

@@ -751,5 +734,2 @@ post: prepareRequest(unknown.todo_endPaymentWithStripe, ['bid']),

},
cards: {
get: prepareRequest(unknown.todo_getUserCards)
},
fullprice: {

@@ -781,5 +761,2 @@ _: {

},
'sepa-debit-accounts': {
get: prepareRequest(unknown.todo_getUserSepaDebitAccounts)
},
tokens: {

@@ -786,0 +763,0 @@ stripe: {

@@ -15,2 +15,3 @@ "use strict";

* @param {String} params.provider_id
* @param {String} params.orgaId
*/

@@ -24,4 +25,4 @@ function getAddonProvider(params) {

Accept: 'application/json'
} // no query params
// no body
},
queryParams: (0, _pickNonNull.pickNonNull)(params, ['orgaId']) // no body

@@ -28,0 +29,0 @@ });

@@ -19,9 +19,3 @@ "use strict";

exports.todo_getAvailableRights = todo_getAvailableRights;
exports.todo_getCards = todo_getCards;
exports.todo_addCard = todo_addCard;
exports.todo_deleteCard = todo_deleteCard;
exports.todo_getNewSetupIntent = todo_getNewSetupIntent;
exports.todo_getSepaDebitAccounts = todo_getSepaDebitAccounts;
exports.todo_addSepaDebitAccount = todo_addSepaDebitAccount;
exports.todo_deleteSepaDebitAccount = todo_deleteSepaDebitAccount;
exports.todo_getStripeToken = todo_getStripeToken;

@@ -36,3 +30,2 @@ exports.todo_getPasswordForgottenForm = todo_getPasswordForgottenForm;

exports.todo_getStripeToken_1 = todo_getStripeToken_1;
exports.todo_endPaymentWithSepaDebit = todo_endPaymentWithSepaDebit;
exports.todo_endPaymentWithStripe = todo_endPaymentWithStripe;

@@ -50,4 +43,2 @@ exports.todo_updateStripePayment = todo_updateStripePayment;

exports.todo_getZones = todo_getZones;
exports.todo_getUserCards = todo_getUserCards;
exports.todo_getUserSepaDebitAccounts = todo_getUserSepaDebitAccounts;
exports.todo_getLoginForm = todo_getLoginForm;

@@ -354,60 +345,2 @@ exports.todo_login = todo_login;

/**
* GET /organisations/{id}/payments/cards
* @param {Object} params
* @param {String} params.id
*/
function todo_getCards(params) {
// no multipath for /self or /organisations/{id}
return Promise.resolve({
method: 'get',
url: `/organisations/${params.id}/payments/cards`,
headers: {
Accept: 'application/json'
} // no query params
// no body
});
}
/**
* POST /organisations/{id}/payments/cards
* @param {Object} params
* @param {String} params.id
* @param {Object} body
*/
function todo_addCard(params, body) {
// no multipath for /self or /organisations/{id}
return Promise.resolve({
method: 'post',
url: `/organisations/${params.id}/payments/cards`,
headers: {
Accept: 'application/json',
'Content-Type': 'application/json'
},
// no query params
body
});
}
/**
* DELETE /organisations/{id}/payments/cards/{mId}
* @param {Object} params
* @param {String} params.id
* @param {String} params.mId
*/
function todo_deleteCard(params) {
// no multipath for /self or /organisations/{id}
return Promise.resolve({
method: 'delete',
url: `/organisations/${params.id}/payments/cards/${params.mId}`,
headers: {} // no query params
// no body
});
}
/**
* GET /organisations/{id}/payments/methods/newintent

@@ -433,60 +366,2 @@ * @param {Object} params

/**
* GET /organisations/{id}/payments/sepa-debit-accounts
* @param {Object} params
* @param {String} params.id
*/
function todo_getSepaDebitAccounts(params) {
// no multipath for /self or /organisations/{id}
return Promise.resolve({
method: 'get',
url: `/organisations/${params.id}/payments/sepa-debit-accounts`,
headers: {
Accept: 'application/json'
} // no query params
// no body
});
}
/**
* POST /organisations/{id}/payments/sepa-debit-accounts
* @param {Object} params
* @param {String} params.id
* @param {Object} body
*/
function todo_addSepaDebitAccount(params, body) {
// no multipath for /self or /organisations/{id}
return Promise.resolve({
method: 'post',
url: `/organisations/${params.id}/payments/sepa-debit-accounts`,
headers: {
Accept: 'application/json',
'Content-Type': 'application/json'
},
// no query params
body
});
}
/**
* DELETE /organisations/{id}/payments/sepa-debit-accounts/{mId}
* @param {Object} params
* @param {String} params.id
* @param {String} params.mId
*/
function todo_deleteSepaDebitAccount(params) {
// no multipath for /self or /organisations/{id}
return Promise.resolve({
method: 'delete',
url: `/organisations/${params.id}/payments/sepa-debit-accounts/${params.mId}`,
headers: {} // no query params
// no body
});
}
/**
* GET /organisations/{id}/payments/tokens/stripe

@@ -663,23 +538,2 @@ * @param {Object} params

/**
* POST /payments/{bid}/end/sepa-debit
* @param {Object} params
* @param {String} params.bid
* @param {Object} body
*/
function todo_endPaymentWithSepaDebit(params, body) {
// no multipath for /self or /organisations/{id}
return Promise.resolve({
method: 'post',
url: `/payments/${params.bid}/end/sepa-debit`,
headers: {
Accept: 'application/json',
'Content-Type': 'application/json'
},
// no query params
body
});
}
/**
* POST /payments/{bid}/end/stripe

@@ -729,6 +583,7 @@ * @param {Object} params

* @param {Object} params
* @param {String} params.orgaId
*/
function todo_getAddonProviders() {
function todo_getAddonProviders(params) {
// no multipath for /self or /organisations/{id}

@@ -740,4 +595,4 @@ return Promise.resolve({

Accept: 'application/json'
} // no query params
// no body
},
queryParams: (0, _pickNonNull.pickNonNull)(params, ['orgaId']) // no body

@@ -918,38 +773,2 @@ });

/**
* GET /self/payments/cards
* @param {Object} params
*/
function todo_getUserCards() {
// no multipath for /self or /organisations/{id}
return Promise.resolve({
method: 'get',
url: `/self/payments/cards`,
headers: {
Accept: 'application/json'
} // no query params
// no body
});
}
/**
* GET /self/payments/sepa-debit-accounts
* @param {Object} params
*/
function todo_getUserSepaDebitAccounts() {
// no multipath for /self or /organisations/{id}
return Promise.resolve({
method: 'get',
url: `/self/payments/sepa-debit-accounts`,
headers: {
Accept: 'application/json'
} // no query params
// no body
});
}
/**
* GET /session/login

@@ -956,0 +775,0 @@ * @param {Object} params

@@ -392,9 +392,2 @@ import * as addon from './addon.js';

},
cards: {
get: prepareRequest(unknown.todo_getCards, ['id']),
post: prepareRequest(unknown.todo_addCard, ['id']),
_: {
delete: prepareRequest(unknown.todo_deleteCard, ['id', 'mId']),
},
},
fullprice: {

@@ -429,9 +422,2 @@ _: {

},
'sepa-debit-accounts': {
get: prepareRequest(unknown.todo_getSepaDebitAccounts, ['id']),
post: prepareRequest(unknown.todo_addSepaDebitAccount, ['id']),
_: {
delete: prepareRequest(unknown.todo_deleteSepaDebitAccount, ['id', 'mId']),
},
},
tokens: {

@@ -456,5 +442,2 @@ stripe: {

end: {
'sepa-debit': {
post: prepareRequest(unknown.todo_endPaymentWithSepaDebit, ['bid']),
},
stripe: {

@@ -730,5 +713,2 @@ post: prepareRequest(unknown.todo_endPaymentWithStripe, ['bid']),

},
cards: {
get: prepareRequest(unknown.todo_getUserCards),
},
fullprice: {

@@ -760,5 +740,2 @@ _: {

},
'sepa-debit-accounts': {
get: prepareRequest(unknown.todo_getUserSepaDebitAccounts),
},
tokens: {

@@ -765,0 +742,0 @@ stripe: {

@@ -7,2 +7,3 @@ import { pickNonNull } from '../pick-non-null.js';

* @param {String} params.provider_id
* @param {String} params.orgaId
*/

@@ -15,3 +16,3 @@ export function getAddonProvider(params) {

headers: { Accept: 'application/json' },
// no query params
queryParams: pickNonNull(params, ['orgaId']),
// no body

@@ -18,0 +19,0 @@ });

@@ -265,52 +265,2 @@ import { pickNonNull } from '../pick-non-null.js';

/**
* GET /organisations/{id}/payments/cards
* @param {Object} params
* @param {String} params.id
*/
export function todo_getCards(params) {
// no multipath for /self or /organisations/{id}
return Promise.resolve({
method: 'get',
url: `/organisations/${params.id}/payments/cards`,
headers: { Accept: 'application/json' },
// no query params
// no body
});
}
/**
* POST /organisations/{id}/payments/cards
* @param {Object} params
* @param {String} params.id
* @param {Object} body
*/
export function todo_addCard(params, body) {
// no multipath for /self or /organisations/{id}
return Promise.resolve({
method: 'post',
url: `/organisations/${params.id}/payments/cards`,
headers: { Accept: 'application/json', 'Content-Type': 'application/json' },
// no query params
body,
});
}
/**
* DELETE /organisations/{id}/payments/cards/{mId}
* @param {Object} params
* @param {String} params.id
* @param {String} params.mId
*/
export function todo_deleteCard(params) {
// no multipath for /self or /organisations/{id}
return Promise.resolve({
method: 'delete',
url: `/organisations/${params.id}/payments/cards/${params.mId}`,
headers: {},
// no query params
// no body
});
}
/**
* GET /organisations/{id}/payments/methods/newintent

@@ -333,52 +283,2 @@ * @param {Object} params

/**
* GET /organisations/{id}/payments/sepa-debit-accounts
* @param {Object} params
* @param {String} params.id
*/
export function todo_getSepaDebitAccounts(params) {
// no multipath for /self or /organisations/{id}
return Promise.resolve({
method: 'get',
url: `/organisations/${params.id}/payments/sepa-debit-accounts`,
headers: { Accept: 'application/json' },
// no query params
// no body
});
}
/**
* POST /organisations/{id}/payments/sepa-debit-accounts
* @param {Object} params
* @param {String} params.id
* @param {Object} body
*/
export function todo_addSepaDebitAccount(params, body) {
// no multipath for /self or /organisations/{id}
return Promise.resolve({
method: 'post',
url: `/organisations/${params.id}/payments/sepa-debit-accounts`,
headers: { Accept: 'application/json', 'Content-Type': 'application/json' },
// no query params
body,
});
}
/**
* DELETE /organisations/{id}/payments/sepa-debit-accounts/{mId}
* @param {Object} params
* @param {String} params.id
* @param {String} params.mId
*/
export function todo_deleteSepaDebitAccount(params) {
// no multipath for /self or /organisations/{id}
return Promise.resolve({
method: 'delete',
url: `/organisations/${params.id}/payments/sepa-debit-accounts/${params.mId}`,
headers: {},
// no query params
// no body
});
}
/**
* GET /organisations/{id}/payments/tokens/stripe

@@ -526,19 +426,2 @@ * @param {Object} params

/**
* POST /payments/{bid}/end/sepa-debit
* @param {Object} params
* @param {String} params.bid
* @param {Object} body
*/
export function todo_endPaymentWithSepaDebit(params, body) {
// no multipath for /self or /organisations/{id}
return Promise.resolve({
method: 'post',
url: `/payments/${params.bid}/end/sepa-debit`,
headers: { Accept: 'application/json', 'Content-Type': 'application/json' },
// no query params
body,
});
}
/**
* POST /payments/{bid}/end/stripe

@@ -580,4 +463,5 @@ * @param {Object} params

* @param {Object} params
* @param {String} params.orgaId
*/
export function todo_getAddonProviders() {
export function todo_getAddonProviders(params) {
// no multipath for /self or /organisations/{id}

@@ -588,3 +472,3 @@ return Promise.resolve({

headers: { Accept: 'application/json' },
// no query params
queryParams: pickNonNull(params, ['orgaId']),
// no body

@@ -739,32 +623,2 @@ });

/**
* GET /self/payments/cards
* @param {Object} params
*/
export function todo_getUserCards() {
// no multipath for /self or /organisations/{id}
return Promise.resolve({
method: 'get',
url: `/self/payments/cards`,
headers: { Accept: 'application/json' },
// no query params
// no body
});
}
/**
* GET /self/payments/sepa-debit-accounts
* @param {Object} params
*/
export function todo_getUserSepaDebitAccounts() {
// no multipath for /self or /organisations/{id}
return Promise.resolve({
method: 'get',
url: `/self/payments/sepa-debit-accounts`,
headers: { Accept: 'application/json' },
// no query params
// no body
});
}
/**
* GET /session/login

@@ -771,0 +625,0 @@ * @param {Object} params

{
"name": "@clevercloud/client",
"version": "2.1.0-beta.0",
"version": "2.1.0",
"description": "JavaScript REST client and utils for Clever Cloud's API",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/CleverCloud/clever-client.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc