Skip to content

Commit

Permalink
chore: use snake case to pass addon params
Browse files Browse the repository at this point in the history
  • Loading branch information
nd0ut committed Sep 13, 2022
1 parent c907c73 commit 6a11d99
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
6 changes: 4 additions & 2 deletions packages/rest-client/src/api/addons/executeAddon.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ describe('executeAddon', () => {

const response = await executeAddon(
{
addonName: AddonName.AWS_REKOGNITION_DETECT_LABELS,
addonName: AddonName.UC_CLAMAV_VIRUS_SCAN,
target: copy.result.uuid,
params: undefined
params: {
purge_infected: false
}
},
testSettings
)
Expand Down
8 changes: 4 additions & 4 deletions packages/rest-client/src/types/AddonParams.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import { AddonName } from './AddonName'

export type AddonUcClamavVirusScanParams = {
purgeInfected: boolean
purge_infected: boolean
}

export type AddonAwsRekognitionDetectLabelsParams = undefined

export type AddonRemoveBgParams = {
crop?: boolean
cropMargin?: string
crop_margin?: string
scale?: string
addShadow?: boolean
typeLevel?: 'none' | '1' | '2' | 'latest'
add_shadow?: boolean
type_level?: 'none' | '1' | '2' | 'latest'
type?: 'auto' | 'person' | 'product' | 'car'
semitransparency?: boolean
channels?: 'rgba' | 'alpha'
Expand Down

0 comments on commit 6a11d99

Please sign in to comment.