mirror of
https://github.com/sasjs/adapter.git
synced 2025-12-11 01:14:36 +00:00
chore: fixing type duplicate
This commit is contained in:
@@ -28,7 +28,6 @@ import { uploadTables } from './api/viya/uploadTables'
|
|||||||
import { executeOnComputeApi } from './api/viya/executeOnComputeApi'
|
import { executeOnComputeApi } from './api/viya/executeOnComputeApi'
|
||||||
import { getAccessTokenForViya } from './auth/getAccessTokenForViya'
|
import { getAccessTokenForViya } from './auth/getAccessTokenForViya'
|
||||||
import { refreshTokensForViya } from './auth/refreshTokensForViya'
|
import { refreshTokensForViya } from './auth/refreshTokensForViya'
|
||||||
import { FileContentUpdate } from './types/FileContentUpdate'
|
|
||||||
import { FileResource } from './types/FileResource'
|
import { FileResource } from './types/FileResource'
|
||||||
|
|
||||||
interface JobExecutionResult {
|
interface JobExecutionResult {
|
||||||
@@ -379,7 +378,7 @@ export class SASViyaApiClient {
|
|||||||
)
|
)
|
||||||
|
|
||||||
return await this.requestClient
|
return await this.requestClient
|
||||||
.put<FileContentUpdate>(
|
.put<FileResource>(
|
||||||
`${this.serverUrl}${fileUri}/content`,
|
`${this.serverUrl}${fileUri}/content`,
|
||||||
content,
|
content,
|
||||||
accessToken,
|
accessToken,
|
||||||
|
|||||||
@@ -1,33 +0,0 @@
|
|||||||
export interface FileContentUpdate {
|
|
||||||
creationTimeStamp: string
|
|
||||||
modifiedTimeStamp: string
|
|
||||||
createdBy: string
|
|
||||||
modifiedBy: string
|
|
||||||
id: string
|
|
||||||
properties: Properties
|
|
||||||
contentDisposition: string
|
|
||||||
contentType: string
|
|
||||||
encoding: string
|
|
||||||
links: Link[]
|
|
||||||
name: string
|
|
||||||
size: number
|
|
||||||
searchable: boolean
|
|
||||||
fileStatus: string
|
|
||||||
fileVersion: number
|
|
||||||
typeDefName: string
|
|
||||||
version: number
|
|
||||||
virusDetected: boolean
|
|
||||||
urlDetected: boolean
|
|
||||||
quarantine: boolean
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface Link {
|
|
||||||
method: string
|
|
||||||
rel: string
|
|
||||||
href: string
|
|
||||||
uri: string
|
|
||||||
type?: string
|
|
||||||
responseType?: string
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface Properties {}
|
|
||||||
Reference in New Issue
Block a user