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
7 changes: 7 additions & 0 deletions famis_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ import {
UnitOfMeasure,
UpdateWatcher,
UserActivityGroupAssociations,
UserAssetGroupAssociations,
UserInspectionClassAssoc,
UserPropertyAssociation,
UserRegionAssociation,
Expand Down Expand Up @@ -634,6 +635,12 @@ export class FamisClient {
return this.getAll<UserPropertyAssociation>(context, 'userpropertyassociation');
}

async getUserAssetGroupAssociations(
context: QueryContext
): Promise<Result<UserAssetGroupAssociations>> {
return this.getAll<UserAssetGroupAssociations>(context, 'userassetgroupassociations');
}

async getUserActivityGroupAssociations(
context: QueryContext
): Promise<Result<UserActivityGroupAssociations>> {
Expand Down
17 changes: 17 additions & 0 deletions model/famis_models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -1518,6 +1524,7 @@ export interface Asset {
AssetMake?: AssetMake;
ParentAssetAssociation?: ParentAssetAssociation[];
Attachments?: AssetAttachment[];
AssetGroups?: AssetGroup[];
}

export interface AssetRank {
Expand Down Expand Up @@ -1921,6 +1928,7 @@ export interface FamisUser {
IsAllocatingIndividual: boolean;
LaborEntryIds: number[];
LaborEntryComment?: string;
UserType?: UserType;
}

export interface UserSecurity {
Expand Down Expand Up @@ -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;
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.1.0",
"version": "1.1.1",
"description": "A Node based 360Facility client SDK",
"main": "dist/index.js",
"scripts": {
Expand Down
Loading