IsatData Pro API V1
Members
-
inner,constantForwardMessageStatesnumber
-
Enumerated type for State of Mobile-Terminated message
Properties:
Name Type Default Description SUBMITTEDnumber 0 RECEIVEDnumber 1 ERRORnumber 2 DELIVERY_FAILEDnumber 3 TIMED_OUTnumber 4 CANCELLEDnumber 5 -
inner,constantWakeupPeriodsnumber
-
Enumerated type for TerminalWakeupPeriod
Properties:
Name Type Default Description Nonenumber 0 Seconds30number 1 Seconds60number 2 Minutes3number 3 Minutes10number 4 Minutes30number 5 Minutes60number 6 Minutes2number 7 Minutes5number 8 Minutes15number 9
Methods
-
async,innercancelForwardMessages(auth, ids){Promise.<CancelForwardMessagesResult>}
/home/gbp/projects/isatdatapro-api/lib/api-v1.js, line 880 -
Requests cancellation of specific Mobile-Terminated message(s)
Name Type Description authApiV1Auth Mailbox authenticataion
idsnumber | Array.<number> Message id(s) to be cancelled
Returns:
Type Description Promise.<CancelForwardMessagesResult> see CancelForwardMessagesResult -
innerdateToIdpTime(date){string}
/home/gbp/projects/isatdatapro-api/lib/api-v1.js, line 183 -
Returns an IDP message gateway formatted timestamp, defaults to 1970-01-01 00:00:00
Name Type Description dateObject A Javascript Date object
Returns:
Type Description string An IDP message gateway formatted timestamp 'YYYY-MM-DD hh:mm:ss' -
async,innergetBroadcastIds(auth){Promise.<BroadcastIdList>}
/home/gbp/projects/isatdatapro-api/lib/api-v1.js, line 987 -
Returns the list of Broadcast IDs associated with the Mailbox
Name Type Description authApiV1Auth Mailbox authentication
Returns:
Type Description Promise.<BroadcastIdList> See BroadcastIdList -
async,innergetErrorDefinitions(){Promise.<Array.<ErrorDefinition>>}
/home/gbp/projects/isatdatapro-api/lib/api-v1.js, line 399 -
Returns an array of error definitions based on an API error code
Returns:
Type Description Promise.<Array.<ErrorDefinition>> See ErrorDefinition -
async,innergetErrorName(errorId){Promise.<string>}
/home/gbp/projects/isatdatapro-api/lib/api-v1.js, line 424 -
Returns a descriptive error name based on an API error code
Name Type Description errorIdstring | number The ErrorID number returned by the API operation
Returns:
Type Description Promise.<string> An error name/description or 'UNDEFINED' -
async,innergetForwardMessages(auth, ids){Promise.<GetForwardMessagesResult>}
/home/gbp/projects/isatdatapro-api/lib/api-v1.js, line 723 -
Retrieves Mobile-Terminated messages submitted, by ID(s)
Name Type Description authApiV1Auth Mailbox authentication see
ApiV1Authidsnumber | Array.<number> An array of unique
ForwardMessageIDnumbersReturns:
Type Description Promise.<GetForwardMessagesResult> The requested IDs and/or error code see GetForwardMessagesResult -
async,innergetForwardStatuses(auth, filter){Promise.<GetForwardStatusesResult>}
/home/gbp/projects/isatdatapro-api/lib/api-v1.js, line 809 -
Retrieves Mobile-Terminated message state/status by ID(s) and optional time range NOTE: API should support ids as optional if startTimeUtc is specified
Name Type Description authApiV1Auth Mailbox authentication see
ApiV1AuthfilterForwardStatusFilter A set of filter criteria for the query see
ForwardStatusFilterThrows:
-
If filter does not include ids or startTimeUtc
- Type
- Error
Returns:
Type Description Promise.<GetForwardStatusesResult> see GetForwardStatusesResult -
-
async,innergetIdpTime(){Promise.<Date>}
/home/gbp/projects/isatdatapro-api/lib/api-v1.js, line 248 -
Returns current UTC time at the MGS
Returns:
Type Description Promise.<Date> UTC time at the message gateway -
async,innergetIdpVersion(){Promise.<string>}
/home/gbp/projects/isatdatapro-api/lib/api-v1.js, line 118 -
Returns the Message Gateway System software version details
Returns:
Type Description Promise.<string> IDP Message Gateway System software version -
async,innergetMobileIds(auth, filter){Promise.<MobileIdList>}
/home/gbp/projects/isatdatapro-api/lib/api-v1.js, line 931 -
Returns a list of MobileID metadata
Name Type Description authApiV1Auth Mailbox authentication
filterObject optional Filters for ID (next ID for sequential query) and size
Name Type Description mobileIdstring optional Set the only/first Mobile ID to query, if present
pageSizenumber optional Maximum number of results to return (1..1000) defaults to 1000
Returns:
Type Description Promise.<MobileIdList> A response list with error code see MobileIdList -
async,innergetReturnMessages(auth, filter){Promise.<GetReturnMessagesResponse>}
/home/gbp/projects/isatdatapro-api/lib/api-v1.js, line 513 -
Returns a response object containing retrieved messages that match the filter
Name Type Description authApiV1Auth Mailbox authentication parameters see
ApiV1AuthfilterFilterGetMobileOrigintated See
FilterGetMobileOrigintatedReturns:
Type Description Promise.<GetReturnMessagesResponse> See GetReturnMessagesResponse -
innergetStateDefinition(state){string}
/home/gbp/projects/isatdatapro-api/lib/api-v1.js, line 768 -
Returns the enumerated string of the state value
Name Type Description statenumber The state value returned in ForwardStatus
Returns:
Type Description string see ForwardMessageStates -
innergetWakeupPeriod(period){string}
/home/gbp/projects/isatdatapro-api/lib/api-v1.js, line 595 -
Returns the enumerated string of the WakeupPeriod
Name Type Description periodnumber The TerminalWakeupPeriod
Returns:
Type Description string see WakeupPeriods -
inneridpTimeToDate(idpTimeUtc){Date}
/home/gbp/projects/isatdatapro-api/lib/api-v1.js, line 235 -
Returns a Javascript Date object by converting an IDP message gateway formatted timestamp
Name Type Description idpTimeUtcstring An IDP message gateway formatted timestamp 'YYYY-MM-DD hh:mm:ss'
Throws:
-
If the passed in value is not a valid IDP datestamp
- Type
- Error
Returns:
Type Description Date Javascript Date object -
-
async,innersubmitForwardMessages(auth, messages){Promise.<SubmitForwardMessagesResult>}
/home/gbp/projects/isatdatapro-api/lib/api-v1.js, line 639 -
Submits Mobile-Terminated message(s) to remote modem(s)
Name Type Description authApiV1Auth Mailbox authentication see
ApiV1AuthmessagesArray.<ForwardMessage> An array of messages see
ForwardMessageReturns:
Type Description Promise.<SubmitForwardMessagesResult> An error code and metadata see SubmitForwardMessagesResult
Type Definitions
-
ApiV1AuthObject
-
An authentication pair for the IDP Messaging API V1, used for various operations
Properties:
Name Type Description accessIdstring The mailbox unique access_id
passwordstring The mailbox password
-
BroadcastIdListObject
-
Response structure for a BroadcastID query
Properties:
Name Type Description errorIdnumber An error code for the get_mobiles_paged operation
broadcastGroupsArray.<BroadcastInformation> A list of
BroadcastInformationobjects -
BroadcastInformationObject
-
Metadata for a BroadcastID
Properties:
Name Type Description mobileIdstring The unique Broadcast ID
descriptionstring A description as provisioned on the MGS
-
CancelForwardMessagesResultObject
-
Response structure for cancellation request of Mobile-Terminated message(s)
Properties:
Name Type Description errorIdnumber An error code for the submit_cancelations operation
submissionsArray.<ForwardCancelation> The list of submitted messages to cancel
-
ErrorDefinitionObject
-
Describes an error code returned by the IDP Messaging API
Properties:
Name Type Description idnumber The unique error number
namestring The unique name
descriptionstring A verbose description of the error
-
FieldObject
-
A data structure containing various content and metadata within a message, present if a codec is provisioned on the Mailbox
Properties:
Name Type Argument Description namestring A descriptive name of the field, usually in camelCase notation
dataTypestring <optional>
Supported types
'enum' is presented as string on decode, may be number or string on encode
'boolean' is presented as a string Value
'unsignedint', 'signedint' are presented as a string Value
'string'
'data' is a string, base64 encoded
'array' is an object with Elements instead of Value
'message' is an object with Message instead of Value
'dynamic' TBC
'property' TBCstringValuestring <optional>
Present if Type is 'enum', 'boolean', 'unsignedint', 'signedint', 'string', 'data'
elementsArray.<Object> <optional>
present if Type is 'array'
Properties
Name Type Argument Description indexnumber <optional>
index of the Elements array
fieldsArray.<Field> <optional>
A list of field objects
messageMessage <optional>
present if Type is 'message'
-
FilterGetMobileOrigintatedObject
-
A filter to apply when retrieving Mobile-Originated messages
Properties:
Name Type Argument Default Description startTimeUtcstring | Date <optional>
Start time (high water mark from prior nextStartUtc) ISO format 'YYYY-MM-DDTHH:MM:SSZ'
required if startMessageId is not present, ignored if startMessageId is presentstartMessageIdnumber <optional>
Start message ID (high water mark from prior NextStartID)
required if startTimeUtc is not presentendTimeUtcstring | Date <optional>
Optional end time if startTimeUtc is used, to return a range of messages rather than all since startTimeUtc
mobileIdstring <optional>
Optional filter to retrieve only messages for a single terminal/modem
includeRawPayloadboolean <optional>
true A flag indicating if ReturnMessage.RawPayload should be returned
includeFieldTypeboolean <optional>
true A flag indicating if ReturnMessage.Payload.Fields should include the Type property
-
ForwardCancelationObject
-
Metadata structure for a Mobile-Terminated message submission
Properties:
Name Type Argument Description errorIdnumber An error code returned by the MGS (0 = no errors; 115 = )
messageIdnumber A unique number generated by the network for tracking status of delivery (-1 if failed)
userMessageIdstring <optional>
The optional user-supplied message ID to correlate with ForwardMessageID
mobileIdstring A unique Mobile ID or Broadcast ID to send the message to (empty string if failed)
sizenumber <optional>
The over-the-air message size, in bytes
stateTimeUtcstring The ISO timestamp YYYY-MM-DDTHH:MM:SSZ of the last reported state of the message
mobileWakeupPeriodnumber A [something] indicating if the modem is configured for low power sleep
scheduledSendTimeUtcstring A timestamp YYYY-MM-DDTHH:MM:SSZ for the scheduled message delivery to a low power modem
-
ForwardMessageObject
-
Data structure for a Mobile-Terminated (aka To-Mobile aka Forward) message
Properties:
Name Type Argument Description mobileIdstring A unique Mobile ID or Broadcast ID to send the message to
userMessageIdstring <optional>
An optional ID that may be used by your application to correlate to a system-assigned ForwardMessageID
payloadRawArray.<number> <optional>
Must be present if Payload is not present, an array of bytes as decimal values (0..255)
payloadJsonMessage <optional>
Must be present if RawPayload is not present, see
Messsageimplies that a Message Definition File is used on the Mailbox -
ForwardMessageRecordObject
-
Metadata structure for a Mobile-Terminated message that has been submitted to the IDP Message Gateway System
Properties:
Name Type Description mobileIdstring A unique Mobile ID or Broadcast ID to send the message to
payloadRawArray.<number> Must be present if Payload is not present, an array of bytes as decimal values (0..255)
payloadJsonMessage Must be present if RawPayload is not present, see
Messageimplies that a Message Definition File is used on the MailboxmessageIdnumber A unique number assigned by the MGS upon submission (get_forward_messages only)
mailboxTimeUtcstring A timestamp assigned by the MGS upon submission (get_forward_messages only)
stateTimeUtcstring A timestamp of the most recent State (get_forward_messages only)
statenumber The current state of the message (get_forward_messages only)
errorIdnumber An error code for the record retrieval
isClosedboolean An indicator if the message is completed/failed (get_forward_messages only)
referenceNumbernumber System generated (get_forward_messages only)
-
ForwardStatusObject
-
Metadata for a submitted Mobile-Terminated message state
Properties:
Name Type Description errorIdnumber An error code for the Mobile-Terminated message
messageIdnumber The unique ID of the message assigned by the system
isClosedboolean An indicator whether the message is no longer pending (delivered or failed)
referenceNumbernumber stateTimeUtcstring The ISO timestamp YYYY-MM-DDTHH:MM:SSZ or Date of the reported state of the message
statenumber The state/status code of the message
-
ForwardStatusFilterObject
-
A filter for requesting Mobile-Terminated message(s) states
Properties:
Name Type Argument Description idsnumber | Array.<number> <optional>
Unique ForwardMessage.ID(s) to query, must be present if startTimeUtc is not
startTimeUtcstring | Date <optional>
The UTC timestamp YYYY-MM-DD hh:mm:ss for the start of retrieval, must be present if ids is not
endTimeUtcstring | Date <optional>
The UTC timestamp YYYY-MM-DD hh:mm:ss for the end of retrieval
-
ForwardSubmissionObject
-
Metadata structure for a Mobile-Terminated message submission
Properties:
Name Type Argument Description errorIdnumber An error code returned by the MGS (0 = no errors)
messageIdnumber A unique number generated by the network for tracking status of delivery
userMessageIdstring <optional>
The optional user-supplied message ID to correlate with ForwardMessageID
mobileIdstring A unique Mobile ID or Broadcast ID to send the message to
sizenumber The over-the-air message size, in bytes
stateTimeUtcstring The ISO timestamp YYYY-MM-DDTHH:MM:SSZ of the last reported state of the message
mobileWakeupPeriodnumber A [something] indicating if the modem is configured for low power sleep
scheduledSendTimeUtcstring An ISO timestamp YYYY-MM-DDTHH:MM:SSZ for the scheduled message delivery to a low power modem
-
GetForwardMessagesResultObject
-
Structure of response to a retrieval of Mobile-Terminated message(s)
Properties:
Name Type Description errorIdnumber An error code for the get_forward_messages operation
messagesArray.<ForwardMessageRecord> An array of records see
ForwardMessageRecord -
GetForwardStatusesResultObject
-
Response structure for a query of Mobile-Terminated message state(s)
Properties:
Name Type Description errorIdnumber An error code returned for the get_forward_statuses operation
moreboolean An indicator if additional statuses are available for retrieval
nextStartTimeUtcstring | null The ISO timestamp YYYY-MM-DDTHH:MM:SSZ for the next retrieval, null if More is false
statusesArray.<ForwardStatus> | null An array of
ForwardStatusif any were retrieved, otherwise null -
GetReturnMessagesResponseObject
-
The JSON structured response to the retrieving Mobile-Originated messages
Properties:
Name Type Description errorIdnumber An API error code (0 means no error)
moreboolean A flag indicating if more messages are available to retrieve
nextStartTimeUtcstring An ISO timestamp YYYY-MM-DDTHH:MM:SSZ for the next high water mark retrieval, empty string if none
nextStartIdnumber Unique ReturnMessage.ID of the next message available to retrieve from the MGS/Mailbox, -1 if none
messagesArray.<ReturnMessage> | null An array of
ReturnMessageobjects or null if none meet the filter/range criteria -
MessageObject
-
A set of metadata encapsulating data transported over the satellite network as a message
Properties:
Name Type Argument Description isForwardboolean <optional>
indicates if the message is Mobile-Terminated (aka To-Mobile aka Forward)
codecServiceIdnumber Service Identification Number the first byte of payload optionally used for codec
codecMessageIdnumber Message Identification Number the second byte of payload optionally used for codec
namestring A short name for the message, typically using camelCase notation
fieldsArray.<Field> An array of Field types
-
MobileIdListObject
-
Structure of response to a MobileID query
Properties:
Name Type Description ErrorIDnumber An error code for the get_mobiles_paged operation
MobilesArray.<MobileInformation> A list of
MobileInformationobjects -
MobileInformationObject
-
Metadata for a queried MobileID
Properties:
Name Type Description mobileIdstring The unique Mobile ID
descriptionstring A description as provisioned on the MGS
lastRegistrationTimeUtcstring An ISO timestamp format YYYY-MM-DDTHH:MM:SSZ of the last Registration message
regionNamestring The region/beam on which the last Registration message was received
-
ReturnMessageObject
-
A set of metadata relating to a Mobile-Originated (aka From-Mobile aka Return) message
Properties:
Name Type Argument Description messageIdnumber A unique number assigned by the MGS upon receipt of the message
receiveTimeUtcstring An ISO timestamp YYYY-MM-DDTHH:MM:SSZ when the message was received at the Satellite Access Station
regionNamestring The name of the satellite regional beam the message was received on
sizenumber The size of the message received over-the-air, in bytes
mailboxTimeUtcstring An ISO timestamp YYYY-MM-DDTHH:MM:SSZ when the message is ready for retrieval in the Mailbox
mobileIdstring The unique Mobile ID of the terminal/modem that sent the message
codecServiceIdnumber Service Identification Number the first byte of payload optionally used for codec
payloadRawArray.<number> <optional>
An array of bytes as decimal numbers (0..255)
present if requested in the get_return_messages operationpayloadJsonMessage <optional>
A JSON data structured
Message
present if the MGS has decoded the raw payload using a Message Definition File on the Mailbox -
SubmitForwardMessagesResultObject
-
Structure of response to a Mobile-Terminated message(s) submission
Properties:
Name Type Description errorIdnumber An error code returned by the system (0 = no errors)
submissionsArray.<ForwardSubmission> An array of
ForwardSubmissionmetadata for Mobile-Terminated messages submitted in the operation