Private clientCreates a batch of associations and correlates them with the given case.
Returns the transaction ID object
Adds a new case and bulk creates given associations inline.
Returns the transaction ID object
Gets the status of a bulk transaction. For example:
Optional limit?: numberOptional page?: numberconst { data } = await addCaseWithAssociations(input);
const status = await getTransactionStatus({
transaction_id: data.id,
case_id: data.attributes.case_id,
})
Optional associationOptional limit?: numberOptional page?: numberGets the status of a bulk transaction by case ID and transaction ID
Optional limit?: numberOptional page?: numberLists all associations related to your service account, accepts optional pagination.
Optional input: { The optional pagination options
Optional limit?: numberHow many items to return in the response
Optional page?: numberThe page number to start at
A list of associations for types ENTITY, PERSON, UNKNOWN
Optional limit?: numberOptional page?: numberOptional input: { Optional limit?: numberOptional page?: numberValidates that a Shortcut Case payload does not have validation errors. Returns a valid "status" and information about any errors that might be in the request
Validates that a Shortcut Associations payload does not have validation errors. Returns a valid "status" and information about any errors that might be in the request
Static getRetrieve an id_token to use in getAuthZToken.
This method should not be called with every interaction of the API, instead obtain the AuthZ token, store it and use it until the 'expires_in' time has elapsed.
Once the AuthZ token expires, get a new AuthN token to request a new id_token to get a new AuthZ token to store.
These auth endpoints are rate limited.
The service account details
Optional auth_Contains the id_token that should be used for getAuthZToken
Static getGets the access_token that can be used to call new DowJonesSDK()
The credentials received from getAuthNToken
Optional auth_The access_token to use in new DowJonesSDK()
Static refreshOptional auth_Use the getAuthNToken and getAuthZToken flow
Generated using TypeDoc
The DowJonesSDK class can be used as follows:
Using your service account details Call DowJonesSDK.getAuthNToken(..) -> get the 'id_token'
Use the 'id_token' in 1. to call DowJonesSDK.getAuthZToken(..) -> store this result in your DB use 'access_token' as input to new DowJonesSDK(..);
When the access_token expires, refresh it:
DowJonesSDK.refreshAuthZToken(..) -> Update the db value of token
Example