From c3932721ef5316a13cc78077c3b104e1ad58f859 Mon Sep 17 00:00:00 2001 From: Eddie Yu Date: Mon, 30 Mar 2026 13:20:46 +0800 Subject: [PATCH 1/2] Add Asset Group model and API --- famis_client.ts | 7 +++++++ model/famis_models.ts | 16 ++++++++++++++++ package.json | 2 +- 3 files changed, 24 insertions(+), 1 deletion(-) 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..2a88a67 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 { @@ -2329,6 +2336,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": { From 9474787bdfb23b5b18a6e970785f81d922efaad6 Mon Sep 17 00:00:00 2001 From: Eddie Yu Date: Mon, 30 Mar 2026 19:14:37 +0800 Subject: [PATCH 2/2] Add UserType to User interface --- model/famis_models.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/model/famis_models.ts b/model/famis_models.ts index 2a88a67..100e5fb 100644 --- a/model/famis_models.ts +++ b/model/famis_models.ts @@ -1928,6 +1928,7 @@ export interface FamisUser { IsAllocatingIndividual: boolean; LaborEntryIds: number[]; LaborEntryComment?: string; + UserType?: UserType; } export interface UserSecurity {