-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathConductorClient.ts
More file actions
63 lines (60 loc) · 3.23 KB
/
Copy pathConductorClient.ts
File metadata and controls
63 lines (60 loc) · 3.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { BaseHttpRequest } from "./core/BaseHttpRequest";
import type { OpenAPIConfig } from "./core/OpenAPI";
import { EventResourceService } from "./services/EventResourceService";
import { HealthCheckResourceService } from "./services/HealthCheckResourceService";
import { MetadataResourceService } from "./services/MetadataResourceService";
import { SchedulerResourceService } from "./services/SchedulerResourceService";
import { TaskResourceService } from "./services/TaskResourceService";
import { TokenResourceService } from "./services/TokenResourceService";
import { WorkflowBulkResourceService } from "./services/WorkflowBulkResourceService";
import { WorkflowResourceService } from "./services/WorkflowResourceService";
import { HumanTaskService } from "./services/HumanTaskService";
import { HumanTaskResourceService } from "./services/HumanTaskResourceService";
import { ServiceRegistryResourceService } from "./services/ServiceRegistryResourceService";
import { NodeHttpRequest } from "./core/NodeHttpRequest";
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
export class ConductorClient {
public readonly eventResource: EventResourceService;
public readonly healthCheckResource: HealthCheckResourceService;
public readonly metadataResource: MetadataResourceService;
public readonly schedulerResource: SchedulerResourceService;
public readonly taskResource: TaskResourceService;
public readonly tokenResource: TokenResourceService;
public readonly workflowBulkResource: WorkflowBulkResourceService;
public readonly workflowResource: WorkflowResourceService;
public readonly serviceRegistryResource: ServiceRegistryResourceService;
public readonly humanTask: HumanTaskService;
public readonly humanTaskResource: HumanTaskResourceService;
public readonly request: BaseHttpRequest;
constructor(
config?: Partial<OpenAPIConfig>,
HttpRequest: HttpRequestConstructor = NodeHttpRequest
) {
this.request = new HttpRequest({
BASE: config?.BASE ?? "http://localhost:8080",
VERSION: config?.VERSION ?? "2",
WITH_CREDENTIALS: config?.WITH_CREDENTIALS ?? false,
CREDENTIALS: config?.CREDENTIALS ?? "include",
TOKEN: config?.TOKEN,
USERNAME: config?.USERNAME,
PASSWORD: config?.PASSWORD,
HEADERS: config?.HEADERS,
ENCODE_PATH: config?.ENCODE_PATH,
});
this.eventResource = new EventResourceService(this.request);
this.healthCheckResource = new HealthCheckResourceService(this.request);
this.metadataResource = new MetadataResourceService(this.request);
this.schedulerResource = new SchedulerResourceService(this.request);
this.taskResource = new TaskResourceService(this.request);
this.tokenResource = new TokenResourceService(this.request);
this.workflowBulkResource = new WorkflowBulkResourceService(this.request);
this.workflowResource = new WorkflowResourceService(this.request);
this.serviceRegistryResource = new ServiceRegistryResourceService(this.request);
this.humanTask = new HumanTaskService(this.request);
this.humanTaskResource = new HumanTaskResourceService(this.request);
}
}