Skip to content

Commit

Permalink
Merge pull request #265 from camunda/alpha
Browse files Browse the repository at this point in the history
Alpha
  • Loading branch information
jwulf authored Sep 26, 2024
2 parents 6abdaee + 0e5ab48 commit 454f0a4
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
24 changes: 14 additions & 10 deletions src/operate/lib/OperateApiClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,11 +231,13 @@ export class OperateApiClient {
const json = this.addTenantIdToFilter(query)
const rest = await this.rest

return rest('decision-definitions/search', {
headers,
parseJson: (text) => parseSearchResults(text, DecisionDefinition),
json,
}).json()
return rest
.post('decision-definitions/search', {
headers,
parseJson: (text) => parseSearchResults(text, DecisionDefinition),
json,
})
.json()
}

/**
Expand Down Expand Up @@ -263,11 +265,13 @@ export class OperateApiClient {
const json = this.addTenantIdToFilter(query)
const rest = await this.rest

return rest('decision-instances/search', {
headers,
parseJson: (text) => parseSearchResults(text, DecisionInstance),
json,
}).json()
return rest
.post('decision-instances/search', {
headers,
parseJson: (text) => parseSearchResults(text, DecisionInstance),
json,
})
.json()
}

/**
Expand Down
2 changes: 2 additions & 0 deletions src/operate/lib/OperateDto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ export class DecisionInstance extends LosslessDto {
evaluationFailure!: string
@Int64String
processDefinitionKey!: string
@Int64String
processInstanceKey!: string
decisionId!: string
decisionDefinitionId!: string
decisionName!: string
Expand Down

0 comments on commit 454f0a4

Please sign in to comment.