Skip to content

Commit a182245

Browse files
author
Monika Cilińska
authored
Merge pull request #15 from marverix/master
feat: Added /me/preferences
2 parents b8120ed + 864ebbb commit a182245

File tree

5 files changed

+14
-6
lines changed

5 files changed

+14
-6
lines changed

dist/cloud-api-client.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Bitbar Cloud API Client for JavaScript v0.12.1 | (c) Bitbar Technologies and contributors | https://github.com/bitbar/cloud-api-client-js/blob/master/LICENSE.md */
1+
/* Bitbar Cloud API Client for JavaScript v0.13.0 | (c) Bitbar Technologies and contributors | https://github.com/bitbar/cloud-api-client-js/blob/master/LICENSE.md */
22
(function (global, factory) {
33
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('@bitbar/finka'), require('axios'), require('qs')) :
44
typeof define === 'function' && define.amd ? define(['@bitbar/finka', 'axios', 'qs'], factory) :
@@ -11,7 +11,7 @@
1111

1212
finka();
1313

14-
var version = "0.12.1";
14+
var version = "0.13.0";
1515

1616
/*! *****************************************************************************
1717
Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1062,6 +1062,9 @@
10621062
APIResourceUser.prototype.receipts = function () {
10631063
return new APIList(this).push('receipts');
10641064
};
1065+
APIResourceUser.prototype.preferences = function () {
1066+
return new APIResource(this).push('preferences');
1067+
};
10651068
APIResourceUser.prototype.uiPreferences = function () {
10661069
return new APIResource(this).push('ui-preferences');
10671070
};

dist/cloud-api-client.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@bitbar/cloud-api-client",
3-
"version": "0.12.1",
3+
"version": "0.13.0",
44
"description": "Bitbar Cloud API Client for JavaScript",
55
"main": "dist/cloud-api-client.js",
66
"types": "dist/index.d.ts",

src/api/APIResourceUser.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,11 @@ class APIResourceUser extends APIResource {
206206
return new APIList(this).push('receipts');
207207
}
208208

209+
// /users/{id}/preferences
210+
public preferences () {
211+
return new APIResource(this).push('preferences');
212+
}
213+
209214
// /users/{id}/ui-preferences
210215
public uiPreferences () {
211216
return new APIResource(this).push('ui-preferences');

0 commit comments

Comments
 (0)