Skip to content

Commit 1fae17c

Browse files
authored
Merge pull request #101 from apptreesoftware/AddAssetGroupAndAPI
Add asset group and api
2 parents 5790198 + 9474787 commit 1fae17c

3 files changed

Lines changed: 25 additions & 1 deletion

File tree

famis_client.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ import {
111111
UnitOfMeasure,
112112
UpdateWatcher,
113113
UserActivityGroupAssociations,
114+
UserAssetGroupAssociations,
114115
UserInspectionClassAssoc,
115116
UserPropertyAssociation,
116117
UserRegionAssociation,
@@ -634,6 +635,12 @@ export class FamisClient {
634635
return this.getAll<UserPropertyAssociation>(context, 'userpropertyassociation');
635636
}
636637

638+
async getUserAssetGroupAssociations(
639+
context: QueryContext
640+
): Promise<Result<UserAssetGroupAssociations>> {
641+
return this.getAll<UserAssetGroupAssociations>(context, 'userassetgroupassociations');
642+
}
643+
637644
async getUserActivityGroupAssociations(
638645
context: QueryContext
639646
): Promise<Result<UserActivityGroupAssociations>> {

model/famis_models.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1260,6 +1260,12 @@ export interface AssetStatus {
12601260
TabOrder: number;
12611261
}
12621262

1263+
export interface AssetGroup {
1264+
Id: number;
1265+
Description?: string;
1266+
DefaultFlag?: boolean;
1267+
}
1268+
12631269
export interface AssetMake {
12641270
Id: number;
12651271
Description: string;
@@ -1518,6 +1524,7 @@ export interface Asset {
15181524
AssetMake?: AssetMake;
15191525
ParentAssetAssociation?: ParentAssetAssociation[];
15201526
Attachments?: AssetAttachment[];
1527+
AssetGroups?: AssetGroup[];
15211528
}
15221529

15231530
export interface AssetRank {
@@ -1921,6 +1928,7 @@ export interface FamisUser {
19211928
IsAllocatingIndividual: boolean;
19221929
LaborEntryIds: number[];
19231930
LaborEntryComment?: string;
1931+
UserType?: UserType;
19241932
}
19251933

19261934
export interface UserSecurity {
@@ -2329,6 +2337,15 @@ export interface UserPropertyAssociation {
23292337
DefaultSubspaceExternalId: string;
23302338
}
23312339

2340+
export interface UserAssetGroupAssociations {
2341+
Id: number;
2342+
UpdateDate?: string;
2343+
UpdatedById?: number;
2344+
UpdatedByExternalId?: string;
2345+
AssetGroupId: number;
2346+
EmployeeId: number;
2347+
}
2348+
23322349
export interface Udf {
23332350
FieldName: string;
23342351
Value?: string;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "facility360",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"description": "A Node based 360Facility client SDK",
55
"main": "dist/index.js",
66
"scripts": {

0 commit comments

Comments
 (0)