Skip to content

Commit c7328c7

Browse files
authored
Merge pull request #487 from piotrsapiejewskismartbear/master
SDCB-12541 add accounts/*/account-services endpoint
2 parents 926489a + 34b8538 commit c7328c7

9 files changed

+24
-5
lines changed

dist/api/APIResourceAccount.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { APIResourceBillingPeriod } from './APIResourceBillingPeriod';
55
import { Account, AccountData } from './models/Account';
66
import { AccountConcurrencyStatusMap } from './models/AccountConcurrencyStatusMap';
77
import { AccountPreferences } from './models/AccountPreference';
8+
import { AccountService } from './models/AccountService';
89
import { AccountServicePayment } from './models/AccountServicePayment';
910
import { BillingPeriod, BillingPeriodQueryParams } from './models/BillingPeriod';
1011
import { DeviceTimeSummaryQueryParams } from './models/Device';
@@ -28,5 +29,6 @@ export declare class APIResourceAccount extends APIResource<Account, QueryParams
2829
billingPeriod(id: number): APIResourceBillingPeriod;
2930
serviceBillingPeriod(id: number): APIResource<AccountServicePayment, BillingPeriodQueryParams, void>;
3031
visualTestAccess(): APIResource<VisualTestAccess, NoQueryParams, VisualTestAccess>;
32+
accountServices(): APIList<AccountService, import("./models/HTTP").CollectionQueryParams, any>;
3133
}
3234
export default APIResourceAccount;

dist/bitbar-cloud-api-client.js

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

dist/bitbar-cloud-api-client.js.map

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

dist/bitbar-cloud-api-client.min.js

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

dist/bitbar-cloud-api-client.min.js.map

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-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": "1.2.4",
3+
"version": "1.2.5",
44
"description": "Bitbar Cloud API Client for JavaScript",
55
"main": "dist/bitbar-cloud-api-client.min.js",
66
"types": "dist/index.d.ts",

src/api/APIResourceAccount.spec.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,4 +142,12 @@ describe('APIResourceAccount', () => {
142142
});
143143
});
144144

145+
describe('@accountServices', () => {
146+
it('should initialize proper endpoint path', () => {
147+
const call = service.accountServices();
148+
expect(call).toBeInstanceOf(APIList);
149+
expect(call.toUrl()).toEqual(`${baseUrl}/account-services`);
150+
});
151+
});
152+
145153
});

src/api/APIResourceAccount.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {APIResourceBillingPeriod} from './APIResourceBillingPeriod';
55
import {Account, AccountData} from './models/Account';
66
import {AccountConcurrencyStatusMap} from './models/AccountConcurrencyStatusMap';
77
import {AccountPreferences} from './models/AccountPreference';
8+
import {AccountService} from './models/AccountService';
89
import {AccountServicePayment} from './models/AccountServicePayment';
910
import {BillingPeriod, BillingPeriodQueryParams} from './models/BillingPeriod';
1011
import {DeviceTimeSummaryQueryParams} from './models/Device';
@@ -98,6 +99,11 @@ export class APIResourceAccount extends APIResource<Account, QueryParams, Accoun
9899
return new APIResource<VisualTestAccess, NoQueryParams, VisualTestAccess>(this).push('visual-tests', 'access');
99100
}
100101

102+
// /account/{accountId}/account-services
103+
accountServices() {
104+
return new APIList<AccountService>(this).push('account-services');
105+
}
106+
101107
}
102108

103109
export default APIResourceAccount;

0 commit comments

Comments
 (0)