Namespaces
Methods
-
Appearition.Part.GetPartDetails (requestOptions)Appearition.Part.PartDetailsViewModel static
Retrieves the list of all manufacturers, models and suppliers of parts on the server Will return the Appearition.Site.PartDetailsViewModel model
-
Name Type Description requestOptionsAppearition.RequestOptions Contains the various callback methods for this request
Returns:
Type Description Appearition.Part.PartDetailsViewModel This is returned as part of the success callback function in the requestOptions param -
Retrieves the contents of a specific part file
-
Name Type Description partDocumentIdnumber The unique identifier of the document
requestOptionsAppearition.RequestOptions Contains the various callback methods for this request
Returns:
Type Description object File stream -
Appearition.Part.GetPartSyncManifest (request, requestOptions)Appearition.Part.PartSyncManifestViewModel Deprecated : This will replaced in the future as it can become a get request and the project id request is redundant static
Retrieves a list of parts from the server. Will return the Appearition.Part.PartsSyncViewModel model
-
Name Type Description requestAppearition.Part.GetPartSyncManifestRequestModel Contains the identifiers for retrieving the required records
requestOptionsAppearition.RequestOptions Contains the various callback methods for this request
Returns:
Type Description Appearition.Part.PartSyncManifestViewModel This is returned as part of the success callback function in the requestOptions param
Type Definitions
-
This is a simple view model containing just Project ID. Unlike the sync manifest methods in other modules, this one does not perform a delta but rather retrieved all of the part information in whole
-
Properties:
Name Type Description ProjectIdnumber The unique identifier of the project (aka channel)
-
This view model links a model to a manufacturer and part.
-
Properties:
Name Type Description Idnumber Uniquely identifies the link record in the database. System allocated.
PartIdnumber Uniquely identifies the part
ManufacturerIdnumber Uniquely identifies the manufacturer
ModelNostring The descriptive text of the model. Also a unique identifier
-
This view model contains a list of manufacturers, models and suppliers of all parts in the system
-
Properties:
Name Type Description ManufacturersArray.<Appearition.Part.PartManufacturerViewModel> A collection of manufacturers of parts
ManufacturersModelArray.<Appearition.Part.ManufacturerModelViewModel> A collection of models from the manufacturers of parts
SupplierArray.<Appearition.Part.SupplierViewModel> A collection of suppliers of parts
-
Represents a document that relates to a specific part
-
Properties:
Name Type Description DocumentIdnumber Unique identifier of the document on the server
PartIdnumber Unique identifier of the part that this document relates to
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 view model links a part to a manufacturer. A manufacturer can make numerous parts and a part can be made by different manufacturers.
-
Properties:
Name Type Description Idnumber Uniquely identifies the link record in the database. System allocated.
PartIdnumber Uniquely identifies the part
ManufacturerIdnumber Uniquely identifies the manufacturer
ManufacturerNamestring The name of the manufacturer
ModelsArray.<Appearition.Part.ManufacturerModelViewModel> A collection of models made by the manufacturer
-
Represents a Part and a few of its details
-
Properties:
Name Type Description PartIdnumber Unique identifier of the Part. This is a system allocated value
Namestring The name of the Part
PricePerUnitnumber This represents a dollar value for each unit. The context of this dollar value will vary in different applications
DocsArray.<Appearition.Part.PartDocSyncManifestViewModel> A collection of documents that are specifically related to this Part
-
This data structure holds a list of Parts
-
Properties:
Name Type Description ProjectIdnumber The unique identifier of the project (aka channel)
PartsArray.<Appearition.Part.PartSummaryViewModel> The collection of Part details
-
This model holds the details of a supplier
-
Properties:
Name Type Description Idnumber Uniquely identifies the supplier in the database. System allocated.
SupplierIdnumber Same as Id. Exists for backward compatibility
Namestring The name of the supplier