-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support 8.6 unified C8 REST API, deprecate ZeebeRestClient fixes #235
- Loading branch information
Showing
4 changed files
with
420 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
import { LosslessNumber } from 'lossless-json' | ||
|
||
import { Int64String, LosslessDto } from '../../lib' | ||
import { JSONDoc } from '../../zeebe/types' | ||
|
||
export class Job<T = LosslessDto> extends LosslessDto { | ||
@Int64String | ||
key!: string | ||
type!: string | ||
@Int64String | ||
processInstanceKey!: LosslessNumber | ||
bpmnProcessId!: string | ||
processDefinitionVersion!: number | ||
@Int64String | ||
processDefinitionKey!: LosslessNumber | ||
elementId!: string | ||
@Int64String | ||
elementInstanceKey!: LosslessNumber | ||
customHeaders!: T | ||
worker!: string | ||
retries!: number | ||
@Int64String | ||
deadline!: LosslessNumber | ||
variables!: JSONDoc | ||
tenantId!: string | ||
} | ||
|
||
/** | ||
* JSON object with changed task attribute values. | ||
*/ | ||
export interface TaskChangeSet { | ||
/* The due date of the task. Reset by providing an empty String. */ | ||
dueDate?: Date | string | ||
/* The follow-up date of the task. Reset by providing an empty String. */ | ||
followUpDate?: Date | string | ||
/* The list of candidate users of the task. Reset by providing an empty list. */ | ||
candidateUsers?: string[] | ||
/* The list of candidate groups of the task. Reset by providing an empty list. */ | ||
candidateGroups?: string[] | ||
} | ||
|
||
/** JSON object with changed job attribute values. */ | ||
export interface JobUpdateChangeset { | ||
/* The new amount of retries for the job; must be a positive number. */ | ||
retries?: number | ||
/** The duration of the new timeout in ms, starting from the current moment. */ | ||
timeout?: number | ||
} | ||
|
||
export interface NewUserInfo { | ||
password: string | ||
id: number | ||
username: string | ||
name: string | ||
email: string | ||
enabled: boolean | ||
} |
Oops, something went wrong.