1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-07 04:20:05 +00:00

refactor(request-client): put related types in one file

This commit is contained in:
Yury Shkoda
2023-08-14 10:55:09 +03:00
parent f18a523087
commit 5731b0f9b1
9 changed files with 69 additions and 69 deletions

View File

@@ -1,19 +1,11 @@
import { RequestClient } from './RequestClient'
import { AxiosResponse } from 'axios'
export interface SasjsParsedResponse<T> {
result: T
log: string
etag: string
status: number
printOutput?: string
}
import { SasjsParsedResponse } from '../types'
/**
* Specific request client for SASJS.
* Append tokens in headers.
*/
export class SasjsRequestClient extends RequestClient {
getHeaders = (accessToken: string | undefined, contentType: string) => {
const headers: any = {}