Skip to content

Commit 7b76321

Browse files
Merge pull request #155 from regulaforensics/feature/sp-17951
SP-17951 - add new methods
2 parents c07bdac + 762ea5e commit 7b76321

File tree

2 files changed

+46
-1
lines changed

2 files changed

+46
-1
lines changed

.github/workflows/sast.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ env:
1616
# List of paths (space separated) to ignore
1717
# Supports PATTERNS
1818
# EXCLUDE_PATHS: 'foo bar/baz file.txt dir/*.yml'
19-
EXCLUDE_PATHS: ''
19+
EXCLUDE_PATHS: 'examples'
2020
# List of rules (space separated) to ignore
2121
# EXCLUDE_RULES: 'generic.secrets.security.detected-aws-account-id.detected-aws-account-id'
2222
# See https://github.com/semgrep/semgrep-rules for rules registry

src/ext/document-reader.ts

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,51 @@ export class DocumentReaderApi {
123123
);
124124
return new Response(axiosResult.data);
125125
}
126+
127+
/**
128+
*
129+
* @summary Get transactions by tag
130+
* @param {number} tagId Tag id
131+
* @param {*} [options] Override http request option.
132+
* @throws {RequiredError}
133+
*/
134+
async getTransactionsByTag(tagId: number, options?: any) {
135+
return this.transactionApi.apiV2TagTagIdTransactionsGet(tagId, options);
136+
}
137+
138+
/**
139+
*
140+
* @summary Delete Reprocess transactions by tag
141+
* @param {number} tagId Tag id
142+
* @param {*} [options] Override http request option.
143+
* @throws {RequiredError}
144+
*/
145+
async deleteReprocessTransactionsByTag(tagId: number, options?: any) {
146+
return this.transactionApi.apiV2TagTagIdDelete(tagId, options);
147+
}
148+
149+
/**
150+
*
151+
* @summary Get Reprocess transaction file
152+
* @param {number} transactionId Transaction id
153+
* @param {string} name File name
154+
* @param {*} [options] Override http request option.
155+
* @throws {RequiredError}
156+
*/
157+
async getReprocessTransactionFile(transactionId: number, name: string, options?: any) {
158+
return this.transactionApi.apiV2TransactionTransactionIdFileGet(transactionId, name, options);
159+
}
160+
161+
/**
162+
*
163+
* @summary Get Reprocess transaction data
164+
* @param {number} transactionId Transaction id
165+
* @param {*} [options] Override http request option.
166+
* @throws {RequiredError}
167+
*/
168+
async getReprocessTransactionData(transactionId: number, options?: any) {
169+
return this.transactionApi.apiV2TransactionTransactionIdGet(transactionId, options);
170+
}
126171
}
127172

128173
export function requestToBaseRequest(request: ProcessRequestExt): ProcessRequestBase {

0 commit comments

Comments
 (0)