Methods
-
Will create a new site record and return the system allocated unique identifier (SiteId).
-
Name Type Description requestAppearition.Site.Manage.SiteViewModel Contains the details of the site
requestOptionsAppearition.RequestOptions Contains the various callback methods for this request
Returns:
Type Description number The system allocated SiteId will be returned for the newly created site. This is returned as part of the success callback function in the requestOptions param -
Will delete an existing site record. Note, in the request you MUST provide comments as to why the site is being deleted (used for audit purposes). Nothing will be returned unless an error occurs.
-
Name Type Description requestAppearition.Site.Manage.SiteViewModel Contains the details of the site
requestOptionsAppearition.RequestOptions Contains the various callback methods for this request
-
Appearition.Site.Manage.GetSite (request, requestOptions)Appearition.Site.Manage.SiteViewModel static
Retrieves a site as specified by the Id property of the request Will return the Appearition.Site.Manage.SiteViewModel model
-
Name Type Description requestAppearition.Site.Manage.SiteListItemViewModel Contains the identifiers for retrieving the required records
requestOptionsAppearition.RequestOptions Contains the various callback methods for this request
Returns:
Type Description Appearition.Site.Manage.SiteViewModel This is returned as part of the success callback function in the requestOptions param -
Appearition.Site.Manage.Index (requestOptions)Appearition.Site.Manage.SiteIndexViewModel static
This method will return various data for setting up the index page of a site management UI. It will also fetch and return a paged set of site records It will return a Appearition.Site.Manage.SiteIndexViewModel object
-
Name Type Description requestOptionsAppearition.RequestOptions configure callbacks
Returns:
Type Description Appearition.Site.Manage.SiteIndexViewModel This is returned as part of the success callback function in the requestOptions param -
Appearition.Site.Manage.ListSites (request, requestOptions)Array.<Appearition.Site.Manage.SiteListItemViewModel> static
Retrieves a list of sites filtered by the criteria specified in the request Will return a collection of Appearition.Site.Manage.SiteListItemViewModel model
-
Name Type Description requestAppearition.Site.Manage.SiteListItemViewModel Contains the identifiers for retrieving the required records
requestOptionsAppearition.RequestOptions Contains the various callback methods for this request
Returns:
Type Description Array.<Appearition.Site.Manage.SiteListItemViewModel> This is returned as part of the success callback function in the requestOptions param -
Will update the details of an existing site record. Nothing will be returned unless an error occurs.
-
Name Type Description requestAppearition.Site.Manage.SiteViewModel Contains the details of the site
requestOptionsAppearition.RequestOptions Contains the various callback methods for this request
Type Definitions
-
This data structure holds the details of a document specific to a site
-
Properties:
Name Type Description DocumentIdnumber The unique identifier of the document
FormKeystring Identifies the specific form that this document relates to. If set, this document will only be presented when the user is working with the specified form. If left empty, then all forms will present this document
VersionNonumber Identifies the specific version of this document
DocumentNamestring The title given to the document. Note this will differ to the File Name
DateModifiedstring The date/time as UTC, that this document was last changed.
FileNamestring The name of the file
IsActiveboolean During the site sync process, if the client posted a document which is not longer available on the server, then this field will be set to false and the client should immediately remove the document from any local cache
-
This data structure holds the details of all sites synchronised from server to client
-
Properties:
Name Type Description SitesArray.<Appearition.Site.Manage.SiteListItemViewModel> A collection of site records
SiteAppearition.Site.Manage.SiteViewModel Can be used with a UI when creating a new site record.
PagingAppearition.Site.Manage.SitePagingViewModel Used to configure criteria when searching for sites server side
ShelterTypeListArray.<Appearition.SelectListItem> A list of ShelterTypeEnums that can be used when creating or editing a site
MainsHybridGensetListArray.<Appearition.SelectListItem> A list of MainsHybridGensetEnums that can be used when creating or editing a site
SiteStatusListArray.<Appearition.SelectListItem> A list of SiteStatusEnums that can be used when creating or editing a site
-
This data model holds summary details of a site record. Mainly used as part of a search
-
Properties:
Name Type Description Idnumber The unique identifier for the site. This is system generated
SiteNostring An identifier for the site. This is a mandatory property
SiteNamestring The name of the Site
ShelterTypeNamestring The name of the ShelterTypeEnum selected on the site record
MainsHybridGensetNamestring The name of the MainsHybridGensetEnum selected on the site record
SiteStatusAppearition.Site.SiteStatusEnum The numerical value of the SiteStatusEnum. This is a mandatory property
SiteStatusNamestring The name of the SiteStatus
SiteTypestring A text property of site
Housingstring A text property of site
TotalRecordsnumber The total number of sites found as part of a search which returned this site record
-
This data structure holds the search criteria posted to the server when searching for sites
-
Properties:
Name Type Description SiteNostring An identifier for the site. This is a mandatory property
SiteNamestring The name of the Site
ShelterTypeAppearition.Site.ShelterTypeEnum The numerical value of the ShelterTypeEnum. This is a mandatory property
ShelterTypeTextstring The name of the ShelterType
Pagenumber The page number of result set (zero based index)
RecordsPerPagenumber The total number of results per page that the server will retrieve
-
This data structure holds the details of all sites synchronised from server to client
-
Properties:
Name Type Description ProjectIdnumber The unique identifier of the project (aka channel)
UserProfileUsernamestring The unique username for the logged in user
SitesArray.<Appearition.Site.Manage.SiteSyncViewModel> A collection of site records
-
Represents a Site and all of the details
-
Properties:
Name Type Description SiteIdnumber The unique identifier for the site
SiteNamestring The name of the Site
MainsHybridGensetAppearition.Site.MainsHybridGensetEnum The numerical value of the MainsHybridGensetEnum.
ShelterTypeAppearition.Site.ShelterTypeEnum The numerical value of the ShelterTypeEnum.
AtlTypestring A text property of site
EquipmentDispositionstring A text property of site
UpgradeSpecialRequirementsstring A text property of site
Regionstring A text property of site
SiteTypestring A text property of site
Housingstring A text property of site
AccessDetailsstring A text property of site
Mapstring A text property of site
MapRefstring A text property of site
Addressstring A text property of site
AmgGridstring A text property of site
Eastingstring A text property of site
Northingstring A text property of site
MobileCoverstring A text property of site
KeyAccessstring A text property of site
Ownerstring A text property of site
IsKeySafeInstalledboolean A boolean property of site
CompoundKeystring A text property of site
ShelterKeystring A text property of site
CabinetKeystring A text property of site
Latitudenumber A coordinate used for the GPS location
Longitudenumber A coordinate used for the GPS location
DocsArray.<Appearition.Site.Manage.SiteDocSyncManifestViewModel> A collection of documents related to this specific site
-
Represents a Site and all of the details
-
Properties:
Name Type Description Idnumber The unique identifier for the site. This is system generated
SiteNostring An identifier for the site. This is a mandatory property
SiteNoOriginalstring The original value as entered by the user. Used to handle rollback actions when editing
SiteNamestring The name of the Site
ShelterTypeAppearition.Site.ShelterTypeEnum The numerical value of the ShelterTypeEnum. This is a mandatory property
ShelterTypeNamestring The name of the ShelterType
SiteStatusAppearition.Site.SiteStatusEnum The numerical value of the SiteStatusEnum. This is a mandatory property
SiteStatusNamestring The name of the SiteStatus
MainsHybridGensetAppearition.Site.MainsHybridGensetEnum The numerical value of the MainsHybridGensetEnum.
MainsHybridGensetNamestring The name of the MainsHybridGenset
AtlTypestring A text property of site
EquipmentDispositionstring A text property of site
UpgradeSpecialRequirementsstring A text property of site
Regionstring A text property of site
SiteTypestring A text property of site
Housingstring A text property of site
AccessDetailsstring A text property of site
Mapstring A text property of site
MapRefstring A text property of site
Addressstring A text property of site
AmgGridstring A text property of site
Eastingstring A text property of site
Northingstring A text property of site
MobileCoverstring A text property of site
KeyAccessstring A text property of site
Ownerstring A text property of site
IsKeySafeInstalledboolean A boolean property of site
CompoundKeystring A text property of site
ShelterKeystring A text property of site
CabinetKeystring A text property of site
Latitudenumber A coordinate used for the GPS location
Longitudenumber A coordinate used for the GPS location
Commentsstring A field to entering comments.