Class

PropertyServices

PropertyServices(ctx)

Properties on infohub

Constructor

# new PropertyServices(ctx)

Parameters:
Name Type Description
ctx Context

Context instance

Since:
  • 1.0, 11.2025, ar

View Source infohub/Properties.js, line 19

Classes

PropertyServices

Methods

# getPropertyListFromTypeIds(typeids)

Get list of property types in a format that can be used in 'readPropertyList

Parameters:
Name Type Description
typeids Array.<string>

View Source infohub/Properties.js, line 203

array

# async readPropertyList(query) → {Promise.<ApiResponse>}

Get property list from infohub. Use query to specify which objects and properties should be taken into account. For convenience, you can get the member ‘properties’ in the correct format from a list of properties by using the method getPropertyListFromTypeIds( typeids ).

Parameters:
Name Type Description
query *

= { "project_ids" : [ '... project shortid... ' , ' ... ' ], "object_ids" : [ '... object id ' , ' ... ' ], "properties" : [ { } ] }

View Source infohub/Properties.js, line 145

Promise.<ApiResponse>

# async writePropertyList(proplist) → {Promise.<ApiResponse>}

POST service_hub//projects//properties

Parameters:
Name Type Description
proplist Object

= [ [ { "parent_id": "string", "object_id": "string", "object_name": "string", "object_type": "string", "properties": { "additionalProp1": "string", "additionalProp2": "string", "additionalProp3": "string" }, "properties_comments" : { "additionalProp1": "string" } } ]

Since:
  • 27.11.2025, ar

View Source infohub/Properties.js, line 57

Promise.<ApiResponse>

# async writePropertyValues(proplist)

POST /{scope}/properties/values

Parameters:
Name Type Description
proplist *

= [ { "shortid": "string", "properties": { "additionalProp1": "string", "additionalProp2": "string", "additionalProp3": "string" }, "properties_comments": { "additionalProp1": "string", "additionalProp2": "string", "additionalProp3": "string" } } ]

View Source infohub/Properties.js, line 111