Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

> Entries before 1.2.0 were not tracked in this file; see the git history for details.

## [1.5.0] — 2026-10-06
### Added
- `FamisClient.getBillCodes(context)` — fetches `GET /billcodes`, with a new `BillCode`
model. (EY)

## [1.4.1] — 2026-08-14
### Fixed
- Non-JSON error bodies (e.g. a plain-text `"Service Unavailable"` on a FAMIS 503) no
Expand Down
8 changes: 8 additions & 0 deletions famis_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import {
AccountSegment,
AccountSegmentValue,
ActivityGroup,
BillCode,
AdjustmentTransactionResponse,
AdjustmentType,
Asset,
Expand Down Expand Up @@ -1076,6 +1077,13 @@ export class FamisClient {

//#endregion

//#region bill codes
async getBillCodes(context: QueryContext): Promise<Result<BillCode>> {
return this.getAll<BillCode>(context, 'billcodes');
}

//#endregion

//#region property bill code associations
async getPropertyBillCodeAssociations(
context: QueryContext,
Expand Down
2 changes: 1 addition & 1 deletion model/famis_models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2459,7 +2459,7 @@ export interface ChargeType {
export interface BillCode {
Id: number;
Description: string;
UpdateDate: Date;
UpdateDate: string;
UpdatedById: number;
UpdatedByExternalId: string;
Active: boolean;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "facility360",
"version": "1.4.1",
"version": "1.5.0",
"description": "A Node based 360Facility client SDK",
"main": "dist/index.js",
"files": [
Expand Down
6 changes: 6 additions & 0 deletions tests/integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ describe('Lists', async () => {
});
});

it('should fetch all bill codes', async function() {
const resp = await famisClient.getBillCodes(baseContext);
expect(resp).toBeTruthy();
expect(resp.results).toBeTruthy();
});

it('should fetch all account segments', async function() {
const resp = await famisClient.getAccountSegments(baseContext);
expect(resp).toBeTruthy();
Expand Down
Loading