Skip to content

Commit 431e71a

Browse files
authored
Merge pull request #16 from marverix/master
feat: Added /project/{id}
2 parents a182245 + fd56dff commit 431e71a

File tree

6 files changed

+34
-38
lines changed

6 files changed

+34
-38
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.13.0 | (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.14.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.13.0";
14+
var version = "0.14.0";
1515

1616
/*! *****************************************************************************
1717
Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1339,6 +1339,9 @@
13391339
APIAdminResource.prototype.projects = function () {
13401340
return new APIList(this).push('projects');
13411341
};
1342+
APIAdminResource.prototype.project = function (id) {
1343+
return new APIResourceProject(this, id);
1344+
};
13421345
APIAdminResource.prototype.runs = function () {
13431346
return new APIList(this).push('admin', 'runs');
13441347
};

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: 13 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@bitbar/cloud-api-client",
3-
"version": "0.13.0",
3+
"version": "0.14.0",
44
"description": "Bitbar Cloud API Client for JavaScript",
55
"main": "dist/cloud-api-client.js",
66
"types": "dist/index.d.ts",
@@ -48,7 +48,7 @@
4848
"typescript": "^3.8.3"
4949
},
5050
"dependencies": {
51-
"@bitbar/finka": "^2.0.0",
51+
"@bitbar/finka": "^2.0.1",
5252
"axios": "^0.19.2",
5353
"form-data": "^3.0.0",
5454
"qs": "^6.9.2"

src/api/APIAdminResource.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import APIAdminResourceDeviceTime from './APIAdminResourceDeviceTime';
88
import APIAdminResourceRun from './APIAdminResourceRun';
99
import APIAdminResourceDevice from './APIAdminResourceDevice';
1010
import APIAdminResourceDeviceSession from './APIAdminResourceDeviceSession';
11+
import APIResourceProject from './APIResourceProject';
1112

1213

1314
/**
@@ -106,6 +107,11 @@ class APIAdminResource extends APIResource {
106107
return new APIList(this).push('projects');
107108
}
108109

110+
// /projects/{id}
111+
public project (id: number) {
112+
return new APIResourceProject(this, id);
113+
}
114+
109115
// /runs
110116
public runs () {
111117
return new APIList(this).push('admin', 'runs');

tsconfig.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
"moduleResolution": "Node",
1212
"typeRoots": [
1313
"./typings"
14-
]
15-
}
14+
],
15+
"skipLibCheck": true
16+
},
17+
"exclude": [
18+
"node_modules"
19+
]
1620
}

0 commit comments

Comments
 (0)