Namespaces
Methods
-
Removes the file that is associated to a field on a form. Will not return anything unless an error occurs.
-
Name Type Description requestAppearition.Job.JobFormFieldPostViewModel Contains the information of the associated field on the form. Note the server side only used the jobAssigmentFormFileId property to perform the deletion
requestOptionsAppearition.RequestOptions Contains the various callback methods for this request
-
Appearition.Job.GetImage (jobAssignmentFormFileId, requestOptions)Appearition.Job.JobAssignmentFormFileContentsViewModel static
Retrieves the contents for a file that is associated to a specific field on a saved or submitted form. Will return an Appearition.Job.JobAssignmentFormFileContentsViewModel data model
-
Name Type Description jobAssignmentFormFileIdlong configure callbacks
requestOptionsany configure callbacks
Returns:
Type Description Appearition.Job.JobAssignmentFormFileContentsViewModel This is returned as part of the success callback function in the requestOptions param -
Appearition.Job.GetJobFormData (request, requestOptions)Appearition.Job.JobAssignmentViewModel static
Retrieves the most recent modified Job Assignment with all of the saved forms record for the give job and site. Form data returned will contain any reviewer comments if they've been made. Will return the Appearition.Job.JobAssignmentViewModel model
-
Name Type Description requestAppearition.Job.JobDataGetViewModel Contains the identifiers for retrieving the required records
requestOptionsAppearition.RequestOptions Contains the various callback methods for this request
Returns:
Type Description Appearition.Job.JobAssignmentViewModel This is returned as part of the success callback function in the requestOptions param -
Appearition.Job.GetJobSummaryFormData (request, requestOptions)Appearition.Job.AllJobAssignmentViewModel static
Retrieves a summary of saved or submitted job forms for a given user and project (aka Channel). Will return the Appearition.Job.AllJobAssignmentViewModel model
-
Name Type Description requestAppearition.Job.JobDataGetViewModel Contains the identifiers for retrieving the required records
requestOptionsAppearition.RequestOptions Contains the various callback methods for this request
Returns:
Type Description Appearition.Job.AllJobAssignmentViewModel This is returned as part of the success callback function in the requestOptions param -
Appearition.Job.GetSiteJobs (requestOptions)Appearition.Job.SiteJobsViewModel static
Retrieves all of the allocated Jobs for Sites as published on the Appearition platform for the specified tenant and project. It will return a Appearition.Job.SiteJobsViewModel object
-
Name Type Description requestOptionsAppearition.RequestOptions configure callbacks
Returns:
Type Description Appearition.Job.SiteJobsViewModel This is returned as part of the success callback function in the requestOptions param -
Appearition.Job.SaveJobFormData (request, requestOptions)Appearition.Job.JobViewModel static
Saves the form to the server as a draft. Will return the Appearition.Job.JobViewModel model
-
Name Type Description requestAppearition.Job.JobAssignmentViewModel Contains the information of the job for the site and the completed form data
requestOptionsAppearition.RequestOptions Contains the various callback methods for this request
Returns:
Type Description Appearition.Job.JobViewModel This is returned as part of the success callback function in the requestOptions param -
Appearition.Job.SubmitJobFormData (request, requestOptions)Appearition.Job.JobViewModel static
Submits a completed form for review. Will return the Appearition.Job.JobViewModel model
-
Name Type Description requestAppearition.Job.JobAssignmentViewModel Contains the information of the job for the site and the completed form data
requestOptionsAppearition.RequestOptions Contains the various callback methods for this request
Returns:
Type Description Appearition.Job.JobViewModel This is returned as part of the success callback function in the requestOptions param -
Submits a file for the submitted job form. Invoke this after the SubmitJobFormData has succeeded. This will not return anything unless a failure occurs.
-
Name Type Description requestAppearition.Job.SubmitJobFormFileRequest Contains the various fields required for linking this file to the correct submitted form
fileContentstring The file contents that need to be submitted to the server
requestOptionsAppearition.RequestOptions Contains the various callback methods for this request
Type Definitions
-
This is the return data structure for the Appearition.Job.GetJobSummaryFormData method
-
Properties:
Name Type Description FormsArray.<Appearition.Job.JobFormPostViewModel> A collection of job form records in summary (i.e. not all properties are populated)
-
The various actions that can be performed on an asset
-
Properties:
Name Type Description CheckInnumber 1401
CheckOutnumber 1402
Verifynumber 1403
-
The various status values for a Job Form
-
Properties:
Name Type Description ReadyForReviewnumber 801
ReviewInProgressnumber 802
Approvednumber 803
Rejectednumber 804
UnSubmittednumber 805
-
This is the data structure that holds the file associated to a field on a saved or submitted form
-
Properties:
Name Type Description File64Basestring A base64string representation of file contents.
FileNamestring The name of the file represented in the File64Base property.
-
This is the data model returned by Appearition.Job.GetJobFormData method
-
Properties:
Name Type Description ProjectIdnumber The unique identifier for the project (aka Channel)
AssigneeUsernamestring The unique login of the user allocated to the job.
AssigneeFirstNamestring The first name of the user allocated to the job.
AssigneeLastNamestring The last name of the user allocated to the job.
SiteIdnumber The unique identifier for the site
JobStatusnumber Refer to Appearition.Job.JobStatusEnum for options
JobIdnumber The unique identifier for the job
JobNostring This is one of a four identifiers that admin can assign to a job
PurchaseOrderNostring This is one of a four identifiers that admin can assign to a job
PTWstring This is one of a four identifiers that admin can assign to a job
TroubleTicketstring This is one of a four identifiers that admin can assign to a job
ReviewerCommentsstring Hold comments made by a reviewer of this job assignment
FormsArray.<Appearition.Job.JobFormPostViewModel> A collection of forms with data that has been saved on the server
-
This is the data structure to send as part of the Appearition.Job.GetJobFormData method
-
Properties:
Name Type Description ProjectIdnumber The unique identifier for the project (aka Channel)
AssigneeUsernamestring The unique login of the user allocated to the job.
AssigneeFirstNamestring The first name of the user allocated to the job.
AssigneeLastNamestring The last name of the user allocated to the job.
JobIdnumber The unique identifier for the job
SiteIdnumber The unique identifier for the site
-
This is the data model of a specific field in a submitted form. Note, that this model contains properties that relate to assets. An asset is a part instance
-
Properties:
Name Type Description Idnumber The unique identifier of the field record with the data as submitted
FormFieldIdnumber The unique identifier to the field as declared on the form
ParentFieldIdnumber The unique identifier of the parent field
FieldKeystring The unique identifier for the field. In most cases will be the same as FormFieldId however if there is a parent involved it will have the parent field id prepended (e.g.
| ) jobAssigmentFormFileIdnumber The unique identifier of the associated file record attached for this field.
jobAssigmentFormFileNamenumber The name of the associated file that is attached to this field.
FormFieldValuestring The value entered in the field
imageExistboolean Indicates if the associated file is an image
RowNonumber If the field is a table like field where the user can add rows, this property will contain the index of the row number this field belongs to
ReviewerCommentsstring Holds comments made by a reviewer on the field
AssetActionAppearition.Job.AssetActionEnum If the field is related to an Asset, then the action taken will be set here. Refer to Appearition.Job.AssetActionEnum
PartIdnumber The unique identifier to the part that the asset action is happening for
Barcodestring Uniquely identifies the instance of the part that the asset action is happening for
SerialNostring A property of the instance of the part that the asset action is happening for
ManufacturerIdnumber The unique identifier of a manufacturer of the part
NewManufacturerNamestring The name of the manufacturer. If the ManufacturerId is null, then the value specified here will represent a new manufacturer (unless the name already exists)
ModelIdnumber The unique identifier of a model of the part
NewModelNostring The name of the model. If the ModelId is null, then the value specified here will represent a new model (unless the name already exists)
Commentstring A comment that is related to the part
SupplierIdnumber The unique identifier of a supplier of the part
NewSupplierNamestring The name of the supplier. If the SupplierId is null, then the value specified here will represent a new supplier (unless the name already exists)
PurchaseDatestring A date/time that represents when the part instance was purchased. The date format is ISO 8601 (yyyy-MM-ddTHH:mmZ)
WarrantyExpiryDatestring A date/time that represents when the warranty period of part instance expires. The date format is ISO 8601 (yyyy-MM-ddTHH:mmZ)
PartInstanceIdnumber The unique identifier of the instance of the part being modified
SubPartInstanceIdnumber The unique identifier of the instance of the part which is a child
JobAssignmentFormFieldForAsset_ParentIdnumber The unique identifier of the parent Form Field. This applies for instances of parts (i.e. an Asset)
PartInstance_CurrentParentIdnumber If this record is a Sub Part, then this field represents the parent PartInstanceId
SubpartsArray.<Appearition.Job.JobFormFieldPostViewModel> If this record is a Part Instance, then this collection holds all of the sub parts under it
-
This is the data model of a submitted form
-
Properties:
Name Type Description SubmitCorrelationKeystring A unique string set by the client (e.g. UUID) which the server will use to guard against the same request being submitted more than once
FormIdnumber The unique identifier to the form
FormStatusnumber Refer to Appearition.Job.FormStatusEnum for options
FormKeystring A unique identifier for the form. In most cases will be the same as FormId
FormNamestring The name of the form at the time of submission
FormGroupNamestring The name of the form group that this form was selected from at the time of submission
FormGroupIdstring The unique identifier of the form group
JobIdnumber The unique identifier for the job
JobNostring This is one of a four identifiers that admin can assign to a job
PurchaseOrderNostring This is one of a four identifiers that admin can assign to a job
PTWstring This is one of a four identifiers that admin can assign to a job
TroubleTicketstring This is one of a four identifiers that admin can assign to a job
SiteIdlong The unique identifier for the site
SiteNamestring The name of site
AssigneeUsernamestring The unique login of the user allocated to the job.
AssigneeFirstNamestring The first name of the user allocated to the job.
AssigneeLastNamestring The last name of the user allocated to the job.
EnteredUtcDatestring The date and time in UTC of when the form data was entered. The date format is ISO 8601 (yyyy-MM-ddTHH:mmZ)
ReviewerCommentsstring Hold comments made by a reviewer of this job assignment
FieldsArray.<Appearition.Job.JobFormFieldPostViewModel> The collection of fields on the form along with data
-
The various status values for a Job
-
Properties:
Name Type Description Assignednumber 501
ReadyForReviewnumber 502
ReviewInProgressnumber 503
Approvednumber 504
Rejectednumber 505
Cancellednumber 506
-
Represents a Job
-
Properties:
Name Type Description JobIdnumber The unique identifier for a Job
JobNostring This is one of a four identifiers that admin can assign to a job
PurchaseOrderNostring This is one of a four identifiers that admin can assign to a job
PTWstring This is one of a four identifiers that admin can assign to a job
TroubleTicketstring This is one of a four identifiers that admin can assign to a job
JobStatusnumber Refer to Appearition.Job.JobStatusEnum for options
SiteIdnumber The unique identifier of the Site this job is for
IsDeletedboolean Used to notify any clients that cache job records that this job has been removed server side
File64Basestring A base64string representation of file contents. This is deprecated
FileNamestring The name of the file represented in the File64Base property. This is deprecated
ScheduledStartUtcDatestring If set, shows the scheduled start date of this job (format: d MMM yy)
ScheduledEndUtcDatestring If set, shows the scheduled end date of this job (format: d MMM yy)
-
This is the return data structure for the Appearition.Job.GetSiteJobs method
-
Properties:
Name Type Description AssigneeUsernamestring The unique login of the user allocated to the job.
AssigneeFirstNamestring The first name of the user allocated to the job.
AssigneeLastNamestring The last name of the user allocated to the job.
SiteJobsArray.<Appearition.Job.SiteJobViewModel> A collection of site job records
-
Represents a Site and all of the allocated jobs
-
Properties:
Name Type Description SiteIdnumber The unique identifier for a Site
JobsArray.<Appearition.Job.JobViewModel> A collection of job records that have been allocated to the Site
-
This is the data structure to send as part of the Appearition.Job.SubmitJobFormFile method
-
Properties:
Name Type Description ProjectIdnumber The unique identifier for the project (aka Channel)
SiteIdnumber The unique identifier for the site
JobIdnumber The unique identifier for the job
FormKeystring A unique identifier for the form submitted.
FieldKeystring The unique identifier for the field in the submitted form that this file is associate with
FileChecksumstring The MD5 hash of the file contents. Will be used on the server to validate the correct file bytes have been transferred
FileNamestring The name of the file being uploaded