diff --git a/famis_client.ts b/famis_client.ts index 9f3f878..64af1f6 100644 --- a/famis_client.ts +++ b/famis_client.ts @@ -111,6 +111,7 @@ import { UnitOfMeasure, UpdateWatcher, UserActivityGroupAssociations, + UserAssetGroupAssociations, UserInspectionClassAssoc, UserPropertyAssociation, UserRegionAssociation, @@ -634,6 +635,12 @@ export class FamisClient { return this.getAll(context, 'userpropertyassociation'); } + async getUserAssetGroupAssociations( + context: QueryContext + ): Promise> { + return this.getAll(context, 'userassetgroupassociations'); + } + async getUserActivityGroupAssociations( context: QueryContext ): Promise> { diff --git a/model/famis_models.ts b/model/famis_models.ts index 318697d..100e5fb 100644 --- a/model/famis_models.ts +++ b/model/famis_models.ts @@ -1260,6 +1260,12 @@ export interface AssetStatus { TabOrder: number; } +export interface AssetGroup { + Id: number; + Description?: string; + DefaultFlag?: boolean; +} + export interface AssetMake { Id: number; Description: string; @@ -1518,6 +1524,7 @@ export interface Asset { AssetMake?: AssetMake; ParentAssetAssociation?: ParentAssetAssociation[]; Attachments?: AssetAttachment[]; + AssetGroups?: AssetGroup[]; } export interface AssetRank { @@ -1921,6 +1928,7 @@ export interface FamisUser { IsAllocatingIndividual: boolean; LaborEntryIds: number[]; LaborEntryComment?: string; + UserType?: UserType; } export interface UserSecurity { @@ -2329,6 +2337,15 @@ export interface UserPropertyAssociation { DefaultSubspaceExternalId: string; } +export interface UserAssetGroupAssociations { + Id: number; + UpdateDate?: string; + UpdatedById?: number; + UpdatedByExternalId?: string; + AssetGroupId: number; + EmployeeId: number; +} + export interface Udf { FieldName: string; Value?: string; diff --git a/package.json b/package.json index 453c630..7b73e6e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "facility360", - "version": "1.1.0", + "version": "1.1.1", "description": "A Node based 360Facility client SDK", "main": "dist/index.js", "scripts": {