Skip to content

Commit

Permalink
Merge pull request #82 from apptreesoftware/addingOriginationCodes
Browse files Browse the repository at this point in the history
Adding origination codes
  • Loading branch information
alexisandreason committed Nov 1, 2023
2 parents f9ed636 + ce330fb commit 9a966a7
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 3 deletions.
9 changes: 7 additions & 2 deletions famis_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ import {
InspectionTransactionRequest,
LaborEntryApprovalRequest,
LoginResponse,
MeterReadingCreateRequest,
MeterReadingCreateRequest, OriginationCode,
PatchCompanyRequest,
PatchSpaceAreaRequest,
PatchUserRequest,
Expand Down Expand Up @@ -702,7 +702,7 @@ export class FamisClient {

//#endregion

//#region property bill code assocations
//#region property bill code associations
async getPropertyBillCodeAssociations(
context: QueryContext
): Promise<Result<PropertyBillCodeAssociations>> {
Expand Down Expand Up @@ -1414,6 +1414,11 @@ export class FamisClient {

//End Region Meter Site

//region Origination Codes
async getOriginationCodes(context: QueryContext): Promise<Result<OriginationCode>> {
return this.getAll<OriginationCode>(context, 'originationcodes');
}

async getExternalSystems(context: QueryContext): Promise<Result<ExternalSystem>> {
return this.getAll<ExternalSystem>(context, 'externalsystems');
}
Expand Down
25 changes: 25 additions & 0 deletions model/request_models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1058,3 +1058,28 @@ export interface MeterReadingCreateRequest {
}

//End Region Meter

//region Origination Codes
export interface OriginationCode {
Id: number;
Description: string;
DefaultFlag: boolean;
Active: boolean;
UpdateDate: Date;
UpdatedById: number;
TabOrder: number;
InspectionFlag: boolean;
DefaultScheduledFlag: boolean;
DefaultProjectWorkFlag: boolean;
DefaultProvisionFlag: boolean;
ExcludeFromSlaReportingFlag: boolean;
DefaultPriorityDescription: string;
RequestorEmailEnabled: number;
SlaCalculateOnHoldEnabled: boolean;
DefaultAssignedToCreator: boolean;
OriginationGroupDescription: string;
CompleteByDateEditFlag: boolean;
DefaultSelfGenFlag: boolean;
UpdatedByExternalId: string;
}
//end region
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.0.16",
"version": "1.0.17",
"description": "A Node based 360Facility client SDK",
"main": "dist/index.js",
"scripts": {
Expand Down

0 comments on commit 9a966a7

Please sign in to comment.