???, see instance docs: /{subdirectory}/apidocs/#/service-info/Ams/Inspection
Returns Promise that represents a collection of the matching (limited) inspection objects
Get cycle from
Returns Promise that represents ... I have no idea what this endpoint does
Get cycle intervals
Returns Promise that represents a Dictionary of the cycle intervals available
Get cycle types
Returns Promise that represents a Dictionary of the cycle types available
Get districts
Returns Promise that represents an Array of the districts
Get Inspection Employee lists. Abstraction done here, though only one employee list field, AFAIK.
Which list (endpoint) to get. Includes only SubmitTos.
Whether to include inactive employees in the returned list. Defaults to false.
Optional
domainIds: number[]Filter to certain domains within the Cityworks instance.
Returns Promise that represents a collection of employees. See: /{subdirectory}/apidocs/#/data-type-info;dataType=EmployeeNameId
Get list of statuses
Returns object that represents an array of all possible statuses for an Inspection
Get inspection submit to list
Optional
includeInactiveEmployees: boolean = falsewhether to include inactive employees in the return. Defaults to false.
Optional
domainIds: number[]which domains to include in the return, default to All domains
Returns object that represents a collection of all possible employees for an Inspection's SubmitTo
Search for inspections
The search information to retrieve matched inspections, see instance docs: /{subdirectory}/apidocs/#/service-info/Ams/Inspection
Returns Promise that represents an array of the matching inspection IDs
Get the questions and answers for inspection template(s)
An array of the IDs to reopen the matched inspections
Returns object that represents an array which contains a list of InspQuestionPanel for the template
Get inspection template question conditions
An array of template IDs to get the matched inspection template Question conditions for
Returns object that represents an array which contains a dictionary of InspQuestion IDs to configs
Get entity types for inspection template(s)
An array of the IDs to reopen the matched inspections
Returns object that represents an array of Entity Types
Get inspection templates
Optional
entityTypes: string[]The Entity Type(s) to return potential inspections for
Optional
canCreate: booleanIf true, only return templates the user can create, ignored if false or null, default is true
Optional
options: {An object which can include: [IncludeInactive]: boolean, MaximumDateModified: Date, MinimumDateModified: Date, TemplateIds: Array
Returns Promise that represents a collection of all Inspections matching the provided parameters
Get a list of templates by IDs
Optional
options: { MaximumDateModified?: Date; MinimumDateModified?: Date }An object which can include: [IncludeInactive]: boolean, MaximumDateModified: Date, MinimumDateModified: Date, TemplateIds: Array
Returns object that represents an object describing the inspection
Cancel inspections
An array of the IDs to cancel the matched inspections
Optional
cancelReason: stringA reason for cancelling the inspection(s)
Optional
dateCancelled: DateThe date/time that it should be indicated the inspection was cancelled
Returns object that represents a collection of inspections
Close inspections
An array of the IDs to close the matched inspections
Returns object that represents a collection of inspections
Add an entity to an existing inspection This method requires an Entity/Asset to be specified. You can either specify the Entity Type and its UID or a WorkOrderEntityBase Object.
Either of two attribute combinations are valid: entityType & entityUid OR Entity as a fully-inflated WorkOrderEntity (WorkOrderEntityBase) object.
An Inspection ID to attach the entity/asset to.
Provide a boolean to whether the inspection's X/Y coordinates should be updated. Default is true.
Add Facility_Id for the Facility Identifier and Level_id for the Facility Level Identifier. Defaults to empty so that no facility is specified.
Returns object that represents an object which describes an Inspection Entity
Create new inspection
See /{subdirectory}/apidocs/#/data-type-infodataType=InspectionBase on your Cityworks instance
Returns Promise that represents an object describing the newly-created inspection
Create inspections from an array of entities
See /{subdirectory}/apidocs/#/data-type-infodataType=InspectionBase on your Cityworks instance
Returns Promise that represents a collection of objects describing the newly-created inspections
Create an inspection from a parent inspection (TODO: what parent!?)
See /{subdirectory}/apidocs/#/data-type-infodataType=InspectionBase on your Cityworks instance
Returns object that represents an object describing the newly-created inspection
Create an inspection from a service request
See /{subdirectory}/apidocs/#/data-type-infodataType=InspectionBase on your Cityworks instance
Returns object that represents an object describing the newly-created inspection
Create an inspection from a WorkOrder
See /{subdirectory}/apidocs/#/data-type-infodataType=InspectionBase on your Cityworks instance
Returns object that represents an object describing the newly-created inspection
Create a search definition. Save the definition by setting SaveDefinition = true and supplying a SearchName.
Search data variables. See /{subdirectory}/apidocs/#/service-info/Ams/Inspection
Optional
searchName: stringWhat to name your search (if it should be saved)
Optional
sharedWithin: numberWhat group or domain to share the search to.
Whether or not to save the search definition. Defaults to true when a search name is specified.
Whether or not to enable EURL for the saved search. Defaults to true.
Returns Promise that represents a collection of Cityworks Metadata Objects
Delete inspections
An array of the IDs to delete the matched inspections
Returns object that represents a collection of inspection Ids which have been deleted
Delete Map Layer Fields
The inspection ID to delete the map layer fields for.
Returns Promise that represents a collection of Objects describing the workorders
Get the answers for inspections
An Array of one or more Inspection IDs
Returns Promise that represents a collection of Inspection Answers
Get the audit log for a specific Inspection
An Inspection ID to get the audit log for
Returns Promise that represents a collection of Cityworks Metadata Objects
Get an inspection by ID
The inspection ID to retrieve
Returns Promise that represents an object describing the inspection
Get inspections by array of IDs
The inspection IDs to retrieve
Returns Promise that represents a collection of Objects describing the inspections
Get Map Layer Fields
The inspection ID to get the map layer fields for.
Returns Promise that represents a collection of Objects describing the inspections
Move inspection by InspectionId. Must provide well known id (WKID) or well known text (WKT)
The ID of the inspection that should be moved
The X coordinate for the move
The Y coordinate for the move
Should include at least WKT or WKID attribute. Can also include VcsWKID attribute.
Optional
z: numberthe optional Z coordinate for the move
Returns Promise that represents an object describing the updated GISPoint
Reopen closed inspections
An array of the IDs to reopen the matched inspections
Returns object that represents a collection of inspections
Update an inspection
See /{subdirectory}/apidocs/#/data-type-infodataType=InspectionBase on the Cityworks instance
Returns Promise that represents an object describing the updated inspection
Update Map Layer Fields
The inspection ID to get the map layer fields for.
Object with X, Y, and optional Z coordinate specified.
Optional
inspTemplateId: numberOptional. Inspection's template ID. If provided, the map layer fields will be updated from the inspection template otherwise, only existing updated.
Optional
domainId: numberOptional. Domain ID of org
Returns Promise that represents a ...
Optional
adminInspection Administration methods
Optional
attachmentsInspection Administration methods
Inspection Costing methods
Uncancel inspections
An array of the IDs to uncancel the matched requests
Returns object that represents a collection of requests
Get SubmitTo list
Whether to include inactive employees in the returned list. Defaults to false.
Optional
domainIds: number[]Filter to certain domains within the Cityworks instance.
Returns Promise that represents a collection of employees. See: /{subdirectory}/apidocs/#/data-type-info;dataType=EmployeeNameId
Get the records on the basis of inspectionId, only populates InspectionId, InspTemplateName, and Location properties