Protected ReadonlydbProtected Readonlys3StaticinstanceThe process default: built from each dependency's own instance().
Attach a request-owned (already promoted) object to a transaction. The
record points at the request's key, so get serves it with no second
copy. A retry returns the existing record.
Create a new transaction metadata file record in the database linked to an S3 object. This method first checks if the S3 object exists before creating the record. If the S3 object does not exist, an error is thrown.
The ID of the logged in customer.
A promise that resolves to the created transaction metadata file record.
Copy file object from Staging S3 bucket to Transaction files S3 bucket. Create a new transaction metadata file record in the database linked to the S3 file object. This method first checks if the S3 object exists before creating the record. If the S3 object does not exist, an error is thrown.
The ID of the logged in customer.
A promise that resolves to the created transaction metadata file record.
Get a pre-signed URL that can be used to upload a file to S3. The URL is short-lived (2mins) and can be used to upload a file with the specified file name, type, and size.
The ID of the logged in customer.
A promise that resolves to an object containing the signed URL and S3 Object key.
Copy a staging object to a key owned by an approval request, so it
outlives the staging bucket's one-day sweep. No database row: the key and
file name go into the request's metadata, and execution later attaches
them with attachRequestFile. Run it outside any database transaction.
Promoted files stay when a request ends DECLINED or CANCELLED, so Make
again can reuse them.
Publishes
transaction.metadataFile.*;nullpublishes nothing (tests).