@product-live/api-sdk 2.22.0 → 2.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -35
- package/.openapi-generator/FILES +0 -74
- package/.openapi-generator/VERSION +0 -1
- package/.openapi-generator-ignore +0 -23
- package/DataFactoryFileApi.md +0 -182
- package/DefaultApi.md +0 -105
- package/ItemApi.md +0 -125
- package/JobApi.md +0 -333
- package/JobExecutionApi.md +0 -185
- package/README.md +0 -4
- package/TaskApi.md +0 -375
- package/TaskExecutionApi.md +0 -130
- package/VariableApi.md +0 -315
- package/apis/DataFactoryFileApi.ts +0 -307
- package/apis/DefaultApi.ts +0 -117
- package/apis/ItemApi.ts +0 -197
- package/apis/JobApi.ts +0 -507
- package/apis/JobExecutionApi.ts +0 -289
- package/apis/TaskApi.ts +0 -558
- package/apis/TaskExecutionApi.ts +0 -212
- package/apis/VariableApi.ts +0 -495
- package/apis/baseapi.ts +0 -37
- package/apis/exception.ts +0 -15
- package/auth/auth.ts +0 -107
- package/configuration.ts +0 -82
- package/dist/apis/DataFactoryFileApi.d.ts +0 -15
- package/dist/apis/DataFactoryFileApi.js +0 -359
- package/dist/apis/DataFactoryFileApi.js.map +0 -1
- package/dist/apis/DefaultApi.d.ts +0 -11
- package/dist/apis/DefaultApi.js +0 -172
- package/dist/apis/DefaultApi.js.map +0 -1
- package/dist/apis/ItemApi.d.ts +0 -13
- package/dist/apis/ItemApi.js +0 -249
- package/dist/apis/ItemApi.js.map +0 -1
- package/dist/apis/JobApi.d.ts +0 -21
- package/dist/apis/JobApi.js +0 -547
- package/dist/apis/JobApi.js.map +0 -1
- package/dist/apis/JobExecutionApi.d.ts +0 -16
- package/dist/apis/JobExecutionApi.js +0 -339
- package/dist/apis/JobExecutionApi.js.map +0 -1
- package/dist/apis/TaskApi.d.ts +0 -24
- package/dist/apis/TaskApi.js +0 -609
- package/dist/apis/TaskApi.js.map +0 -1
- package/dist/apis/TaskExecutionApi.d.ts +0 -13
- package/dist/apis/TaskExecutionApi.js +0 -259
- package/dist/apis/TaskExecutionApi.js.map +0 -1
- package/dist/apis/VariableApi.d.ts +0 -22
- package/dist/apis/VariableApi.js +0 -529
- package/dist/apis/VariableApi.js.map +0 -1
- package/dist/apis/baseapi.d.ts +0 -18
- package/dist/apis/baseapi.js +0 -46
- package/dist/apis/baseapi.js.map +0 -1
- package/dist/apis/exception.d.ts +0 -10
- package/dist/apis/exception.js +0 -32
- package/dist/apis/exception.js.map +0 -1
- package/dist/auth/auth.d.ts +0 -42
- package/dist/auth/auth.js +0 -45
- package/dist/auth/auth.js.map +0 -1
- package/dist/configuration.d.ts +0 -18
- package/dist/configuration.js +0 -22
- package/dist/configuration.js.map +0 -1
- package/dist/http/http.d.ts +0 -82
- package/dist/http/http.js +0 -229
- package/dist/http/http.js.map +0 -1
- package/dist/http/isomorphic-fetch.d.ts +0 -5
- package/dist/http/isomorphic-fetch.js +0 -34
- package/dist/http/isomorphic-fetch.js.map +0 -1
- package/dist/index.d.ts +0 -10
- package/dist/index.js +0 -36
- package/dist/index.js.map +0 -1
- package/dist/middleware.d.ts +0 -16
- package/dist/middleware.js +0 -18
- package/dist/middleware.js.map +0 -1
- package/dist/models/CreateJobDto.d.ts +0 -30
- package/dist/models/CreateJobDto.js +0 -82
- package/dist/models/CreateJobDto.js.map +0 -1
- package/dist/models/CreateJobExecutionDto.d.ts +0 -21
- package/dist/models/CreateJobExecutionDto.js +0 -34
- package/dist/models/CreateJobExecutionDto.js.map +0 -1
- package/dist/models/CreateTaskDto.d.ts +0 -21
- package/dist/models/CreateTaskDto.js +0 -46
- package/dist/models/CreateTaskDto.js.map +0 -1
- package/dist/models/CreateVariableDto.d.ts +0 -22
- package/dist/models/CreateVariableDto.js +0 -46
- package/dist/models/CreateVariableDto.js.map +0 -1
- package/dist/models/FileDto.d.ts +0 -23
- package/dist/models/FileDto.js +0 -52
- package/dist/models/FileDto.js.map +0 -1
- package/dist/models/FindVariablesRequest.d.ts +0 -23
- package/dist/models/FindVariablesRequest.js +0 -46
- package/dist/models/FindVariablesRequest.js.map +0 -1
- package/dist/models/GetFiles200Response.d.ts +0 -21
- package/dist/models/GetFiles200Response.js +0 -34
- package/dist/models/GetFiles200Response.js.map +0 -1
- package/dist/models/GetItems200Response.d.ts +0 -21
- package/dist/models/GetItems200Response.js +0 -34
- package/dist/models/GetItems200Response.js.map +0 -1
- package/dist/models/GetJobExecutionById400Response.d.ts +0 -17
- package/dist/models/GetJobExecutionById400Response.js +0 -22
- package/dist/models/GetJobExecutionById400Response.js.map +0 -1
- package/dist/models/GetJobExecutions200Response.d.ts +0 -21
- package/dist/models/GetJobExecutions200Response.js +0 -34
- package/dist/models/GetJobExecutions200Response.js.map +0 -1
- package/dist/models/GetJobs200Response.d.ts +0 -21
- package/dist/models/GetJobs200Response.js +0 -34
- package/dist/models/GetJobs200Response.js.map +0 -1
- package/dist/models/GetTasks200Response.d.ts +0 -21
- package/dist/models/GetTasks200Response.js +0 -34
- package/dist/models/GetTasks200Response.js.map +0 -1
- package/dist/models/GetVariables200Response.d.ts +0 -21
- package/dist/models/GetVariables200Response.js +0 -34
- package/dist/models/GetVariables200Response.js.map +0 -1
- package/dist/models/HighOrderQuery.d.ts +0 -19
- package/dist/models/HighOrderQuery.js +0 -28
- package/dist/models/HighOrderQuery.js.map +0 -1
- package/dist/models/ItemDto.d.ts +0 -28
- package/dist/models/ItemDto.js +0 -64
- package/dist/models/ItemDto.js.map +0 -1
- package/dist/models/ItemFieldDTO.d.ts +0 -19
- package/dist/models/ItemFieldDTO.js +0 -34
- package/dist/models/ItemFieldDTO.js.map +0 -1
- package/dist/models/ItemFieldFile.d.ts +0 -18
- package/dist/models/ItemFieldFile.js +0 -22
- package/dist/models/ItemFieldFile.js.map +0 -1
- package/dist/models/ItemFieldFileData.d.ts +0 -18
- package/dist/models/ItemFieldFileData.js +0 -28
- package/dist/models/ItemFieldFileData.js.map +0 -1
- package/dist/models/ItemFieldMultipleSelectWithCommentAndQuantity.d.ts +0 -18
- package/dist/models/ItemFieldMultipleSelectWithCommentAndQuantity.js +0 -22
- package/dist/models/ItemFieldMultipleSelectWithCommentAndQuantity.js.map +0 -1
- package/dist/models/ItemFieldMultipleSelectWithCommentAndQuantityData.d.ts +0 -19
- package/dist/models/ItemFieldMultipleSelectWithCommentAndQuantityData.js +0 -34
- package/dist/models/ItemFieldMultipleSelectWithCommentAndQuantityData.js.map +0 -1
- package/dist/models/ItemFieldSimpleNumber.d.ts +0 -18
- package/dist/models/ItemFieldSimpleNumber.js +0 -28
- package/dist/models/ItemFieldSimpleNumber.js.map +0 -1
- package/dist/models/ItemFieldSimpleString.d.ts +0 -17
- package/dist/models/ItemFieldSimpleString.js +0 -22
- package/dist/models/ItemFieldSimpleString.js.map +0 -1
- package/dist/models/ItemFieldSimpleStringArray.d.ts +0 -17
- package/dist/models/ItemFieldSimpleStringArray.js +0 -22
- package/dist/models/ItemFieldSimpleStringArray.js.map +0 -1
- package/dist/models/ItemMetadataDTO.d.ts +0 -23
- package/dist/models/ItemMetadataDTO.js +0 -58
- package/dist/models/ItemMetadataDTO.js.map +0 -1
- package/dist/models/JobDto.d.ts +0 -35
- package/dist/models/JobDto.js +0 -106
- package/dist/models/JobDto.js.map +0 -1
- package/dist/models/JobExecutionDto.d.ts +0 -33
- package/dist/models/JobExecutionDto.js +0 -88
- package/dist/models/JobExecutionDto.js.map +0 -1
- package/dist/models/LowOrderQuery.d.ts +0 -22
- package/dist/models/LowOrderQuery.js +0 -40
- package/dist/models/LowOrderQuery.js.map +0 -1
- package/dist/models/LowOrderQueryValue.d.ts +0 -16
- package/dist/models/LowOrderQueryValue.js +0 -15
- package/dist/models/LowOrderQueryValue.js.map +0 -1
- package/dist/models/ObjectSerializer.d.ts +0 -45
- package/dist/models/ObjectSerializer.js +0 -347
- package/dist/models/ObjectSerializer.js.map +0 -1
- package/dist/models/PatchTaskExecutionDto.d.ts +0 -22
- package/dist/models/PatchTaskExecutionDto.js +0 -34
- package/dist/models/PatchTaskExecutionDto.js.map +0 -1
- package/dist/models/Query1.d.ts +0 -23
- package/dist/models/Query1.js +0 -46
- package/dist/models/Query1.js.map +0 -1
- package/dist/models/TaskDto.d.ts +0 -26
- package/dist/models/TaskDto.js +0 -70
- package/dist/models/TaskDto.js.map +0 -1
- package/dist/models/TaskExecutionDto.d.ts +0 -30
- package/dist/models/TaskExecutionDto.js +0 -64
- package/dist/models/TaskExecutionDto.js.map +0 -1
- package/dist/models/UpdateJobDto.d.ts +0 -31
- package/dist/models/UpdateJobDto.js +0 -88
- package/dist/models/UpdateJobDto.js.map +0 -1
- package/dist/models/UpdateTaskDto.d.ts +0 -22
- package/dist/models/UpdateTaskDto.js +0 -52
- package/dist/models/UpdateTaskDto.js.map +0 -1
- package/dist/models/UpdateVariableDto.d.ts +0 -23
- package/dist/models/UpdateVariableDto.js +0 -52
- package/dist/models/UpdateVariableDto.js.map +0 -1
- package/dist/models/VariableDto.d.ts +0 -27
- package/dist/models/VariableDto.js +0 -70
- package/dist/models/VariableDto.js.map +0 -1
- package/dist/models/all.d.ts +0 -36
- package/dist/models/all.js +0 -53
- package/dist/models/all.js.map +0 -1
- package/dist/rxjsStub.d.ts +0 -10
- package/dist/rxjsStub.js +0 -33
- package/dist/rxjsStub.js.map +0 -1
- package/dist/servers.d.ts +0 -17
- package/dist/servers.js +0 -32
- package/dist/servers.js.map +0 -1
- package/dist/types/ObjectParamAPI.d.ts +0 -187
- package/dist/types/ObjectParamAPI.js +0 -160
- package/dist/types/ObjectParamAPI.js.map +0 -1
- package/dist/types/ObservableAPI.d.ts +0 -109
- package/dist/types/ObservableAPI.js +0 -758
- package/dist/types/ObservableAPI.js.map +0 -1
- package/dist/types/PromiseAPI.d.ts +0 -92
- package/dist/types/PromiseAPI.js +0 -180
- package/dist/types/PromiseAPI.js.map +0 -1
- package/dist/util.d.ts +0 -2
- package/dist/util.js +0 -29
- package/dist/util.js.map +0 -1
- package/git_push.sh +0 -51
- package/http/http.ts +0 -229
- package/http/isomorphic-fetch.ts +0 -32
- package/index.ts +0 -12
- package/middleware.ts +0 -66
- package/models/CreateJobDto.ts +0 -108
- package/models/CreateJobExecutionDto.ts +0 -49
- package/models/CreateTaskDto.ts +0 -63
- package/models/CreateVariableDto.ts +0 -66
- package/models/FileDto.ts +0 -73
- package/models/FindVariablesRequest.ts +0 -68
- package/models/GetFiles200Response.ts +0 -53
- package/models/GetItems200Response.ts +0 -53
- package/models/GetJobExecutionById400Response.ts +0 -35
- package/models/GetJobExecutions200Response.ts +0 -53
- package/models/GetJobs200Response.ts +0 -53
- package/models/GetTasks200Response.ts +0 -53
- package/models/GetVariables200Response.ts +0 -53
- package/models/HighOrderQuery.ts +0 -45
- package/models/ItemDto.ts +0 -86
- package/models/ItemFieldDTO.ts +0 -49
- package/models/ItemFieldFile.ts +0 -36
- package/models/ItemFieldFileData.ts +0 -42
- package/models/ItemFieldMultipleSelectWithCommentAndQuantity.ts +0 -36
- package/models/ItemFieldMultipleSelectWithCommentAndQuantityData.ts +0 -49
- package/models/ItemFieldSimpleNumber.ts +0 -42
- package/models/ItemFieldSimpleString.ts +0 -35
- package/models/ItemFieldSimpleStringArray.ts +0 -35
- package/models/ItemMetadataDTO.ts +0 -77
- package/models/JobDto.ts +0 -137
- package/models/JobExecutionDto.ts +0 -115
- package/models/LowOrderQuery.ts +0 -60
- package/models/LowOrderQueryValue.ts +0 -29
- package/models/ObjectSerializer.ts +0 -358
- package/models/PatchTaskExecutionDto.ts +0 -52
- package/models/Query1.ts +0 -69
- package/models/TaskDto.ts +0 -94
- package/models/TaskExecutionDto.ts +0 -88
- package/models/UpdateJobDto.ts +0 -115
- package/models/UpdateTaskDto.ts +0 -70
- package/models/UpdateVariableDto.ts +0 -73
- package/models/VariableDto.ts +0 -95
- package/models/all.ts +0 -36
- package/rxjsStub.ts +0 -27
- package/servers.ts +0 -55
- package/tsconfig.json +0 -28
- package/types/ObjectParamAPI.ts +0 -675
- package/types/ObservableAPI.ts +0 -837
- package/types/PromiseAPI.ts +0 -452
- package/util.ts +0 -37
package/types/PromiseAPI.ts
DELETED
|
@@ -1,452 +0,0 @@
|
|
|
1
|
-
import { ResponseContext, RequestContext, HttpFile } from '../http/http';
|
|
2
|
-
import { Configuration} from '../configuration'
|
|
3
|
-
|
|
4
|
-
import { CreateJobDto } from '../models/CreateJobDto';
|
|
5
|
-
import { CreateJobExecutionDto } from '../models/CreateJobExecutionDto';
|
|
6
|
-
import { CreateTaskDto } from '../models/CreateTaskDto';
|
|
7
|
-
import { CreateVariableDto } from '../models/CreateVariableDto';
|
|
8
|
-
import { FileDto } from '../models/FileDto';
|
|
9
|
-
import { FindVariablesRequest } from '../models/FindVariablesRequest';
|
|
10
|
-
import { GetFiles200Response } from '../models/GetFiles200Response';
|
|
11
|
-
import { GetItems200Response } from '../models/GetItems200Response';
|
|
12
|
-
import { GetJobExecutionById400Response } from '../models/GetJobExecutionById400Response';
|
|
13
|
-
import { GetJobExecutions200Response } from '../models/GetJobExecutions200Response';
|
|
14
|
-
import { GetJobs200Response } from '../models/GetJobs200Response';
|
|
15
|
-
import { GetTasks200Response } from '../models/GetTasks200Response';
|
|
16
|
-
import { GetVariables200Response } from '../models/GetVariables200Response';
|
|
17
|
-
import { HighOrderQuery } from '../models/HighOrderQuery';
|
|
18
|
-
import { ItemDto } from '../models/ItemDto';
|
|
19
|
-
import { ItemFieldDTO } from '../models/ItemFieldDTO';
|
|
20
|
-
import { ItemFieldFile } from '../models/ItemFieldFile';
|
|
21
|
-
import { ItemFieldFileData } from '../models/ItemFieldFileData';
|
|
22
|
-
import { ItemFieldMultipleSelectWithCommentAndQuantity } from '../models/ItemFieldMultipleSelectWithCommentAndQuantity';
|
|
23
|
-
import { ItemFieldMultipleSelectWithCommentAndQuantityData } from '../models/ItemFieldMultipleSelectWithCommentAndQuantityData';
|
|
24
|
-
import { ItemFieldSimpleNumber } from '../models/ItemFieldSimpleNumber';
|
|
25
|
-
import { ItemFieldSimpleString } from '../models/ItemFieldSimpleString';
|
|
26
|
-
import { ItemFieldSimpleStringArray } from '../models/ItemFieldSimpleStringArray';
|
|
27
|
-
import { ItemMetadataDTO } from '../models/ItemMetadataDTO';
|
|
28
|
-
import { JobDto } from '../models/JobDto';
|
|
29
|
-
import { JobExecutionDto } from '../models/JobExecutionDto';
|
|
30
|
-
import { LowOrderQuery } from '../models/LowOrderQuery';
|
|
31
|
-
import { LowOrderQueryValue } from '../models/LowOrderQueryValue';
|
|
32
|
-
import { PatchTaskExecutionDto } from '../models/PatchTaskExecutionDto';
|
|
33
|
-
import { Query1 } from '../models/Query1';
|
|
34
|
-
import { TaskDto } from '../models/TaskDto';
|
|
35
|
-
import { TaskExecutionDto } from '../models/TaskExecutionDto';
|
|
36
|
-
import { UpdateJobDto } from '../models/UpdateJobDto';
|
|
37
|
-
import { UpdateTaskDto } from '../models/UpdateTaskDto';
|
|
38
|
-
import { UpdateVariableDto } from '../models/UpdateVariableDto';
|
|
39
|
-
import { VariableDto } from '../models/VariableDto';
|
|
40
|
-
import { ObservableDataFactoryFileApi } from './ObservableAPI';
|
|
41
|
-
|
|
42
|
-
import { DataFactoryFileApiRequestFactory, DataFactoryFileApiResponseProcessor} from "../apis/DataFactoryFileApi";
|
|
43
|
-
export class PromiseDataFactoryFileApi {
|
|
44
|
-
private api: ObservableDataFactoryFileApi
|
|
45
|
-
|
|
46
|
-
public constructor(
|
|
47
|
-
configuration: Configuration,
|
|
48
|
-
requestFactory?: DataFactoryFileApiRequestFactory,
|
|
49
|
-
responseProcessor?: DataFactoryFileApiResponseProcessor
|
|
50
|
-
) {
|
|
51
|
-
this.api = new ObservableDataFactoryFileApi(configuration, requestFactory, responseProcessor);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* (Experimental) - Get a Data Factory File by id
|
|
56
|
-
* @param id
|
|
57
|
-
*/
|
|
58
|
-
public getFileById(id: string, _options?: Configuration): Promise<FileDto> {
|
|
59
|
-
const result = this.api.getFileById(id, _options);
|
|
60
|
-
return result.toPromise();
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* (Experimental) - Get a list of Data Factory File
|
|
65
|
-
* @param size
|
|
66
|
-
* @param page
|
|
67
|
-
*/
|
|
68
|
-
public getFiles(size?: number, page?: number, _options?: Configuration): Promise<GetFiles200Response> {
|
|
69
|
-
const result = this.api.getFiles(size, page, _options);
|
|
70
|
-
return result.toPromise();
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* Post a file so it can be consume by a Data Factory job
|
|
75
|
-
* @param file
|
|
76
|
-
*/
|
|
77
|
-
public uploadFile(file: HttpFile, _options?: Configuration): Promise<FileDto> {
|
|
78
|
-
const result = this.api.uploadFile(file, _options);
|
|
79
|
-
return result.toPromise();
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
import { ObservableDefaultApi } from './ObservableAPI';
|
|
88
|
-
|
|
89
|
-
import { DefaultApiRequestFactory, DefaultApiResponseProcessor} from "../apis/DefaultApi";
|
|
90
|
-
export class PromiseDefaultApi {
|
|
91
|
-
private api: ObservableDefaultApi
|
|
92
|
-
|
|
93
|
-
public constructor(
|
|
94
|
-
configuration: Configuration,
|
|
95
|
-
requestFactory?: DefaultApiRequestFactory,
|
|
96
|
-
responseProcessor?: DefaultApiResponseProcessor
|
|
97
|
-
) {
|
|
98
|
-
this.api = new ObservableDefaultApi(configuration, requestFactory, responseProcessor);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
*/
|
|
103
|
-
public liveness(_options?: Configuration): Promise<void> {
|
|
104
|
-
const result = this.api.liveness(_options);
|
|
105
|
-
return result.toPromise();
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
*/
|
|
110
|
-
public readiness(_options?: Configuration): Promise<void> {
|
|
111
|
-
const result = this.api.readiness(_options);
|
|
112
|
-
return result.toPromise();
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
import { ObservableItemApi } from './ObservableAPI';
|
|
121
|
-
|
|
122
|
-
import { ItemApiRequestFactory, ItemApiResponseProcessor} from "../apis/ItemApi";
|
|
123
|
-
export class PromiseItemApi {
|
|
124
|
-
private api: ObservableItemApi
|
|
125
|
-
|
|
126
|
-
public constructor(
|
|
127
|
-
configuration: Configuration,
|
|
128
|
-
requestFactory?: ItemApiRequestFactory,
|
|
129
|
-
responseProcessor?: ItemApiResponseProcessor
|
|
130
|
-
) {
|
|
131
|
-
this.api = new ObservableItemApi(configuration, requestFactory, responseProcessor);
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* (Experimental) - Get a Item by id
|
|
136
|
-
* @param id
|
|
137
|
-
*/
|
|
138
|
-
public getItemById(id: string, _options?: Configuration): Promise<ItemDto> {
|
|
139
|
-
const result = this.api.getItemById(id, _options);
|
|
140
|
-
return result.toPromise();
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
/**
|
|
144
|
-
* (Experimental) - Get a list of Item
|
|
145
|
-
* @param size
|
|
146
|
-
* @param page
|
|
147
|
-
*/
|
|
148
|
-
public getItems(size?: number, page?: number, _options?: Configuration): Promise<GetItems200Response> {
|
|
149
|
-
const result = this.api.getItems(size, page, _options);
|
|
150
|
-
return result.toPromise();
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
import { ObservableJobApi } from './ObservableAPI';
|
|
159
|
-
|
|
160
|
-
import { JobApiRequestFactory, JobApiResponseProcessor} from "../apis/JobApi";
|
|
161
|
-
export class PromiseJobApi {
|
|
162
|
-
private api: ObservableJobApi
|
|
163
|
-
|
|
164
|
-
public constructor(
|
|
165
|
-
configuration: Configuration,
|
|
166
|
-
requestFactory?: JobApiRequestFactory,
|
|
167
|
-
responseProcessor?: JobApiResponseProcessor
|
|
168
|
-
) {
|
|
169
|
-
this.api = new ObservableJobApi(configuration, requestFactory, responseProcessor);
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
/**
|
|
173
|
-
* (Experimental) - Create a Job
|
|
174
|
-
* @param createJobDto
|
|
175
|
-
*/
|
|
176
|
-
public createJob(createJobDto: CreateJobDto, _options?: Configuration): Promise<JobDto> {
|
|
177
|
-
const result = this.api.createJob(createJobDto, _options);
|
|
178
|
-
return result.toPromise();
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
/**
|
|
182
|
-
* (Experimental) - Get a Job by id
|
|
183
|
-
* @param id
|
|
184
|
-
*/
|
|
185
|
-
public getJobById(id: string, _options?: Configuration): Promise<JobDto> {
|
|
186
|
-
const result = this.api.getJobById(id, _options);
|
|
187
|
-
return result.toPromise();
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
/**
|
|
191
|
-
* (Experimental) - Get a list of Job
|
|
192
|
-
* @param size
|
|
193
|
-
* @param page
|
|
194
|
-
*/
|
|
195
|
-
public getJobs(size?: number, page?: number, _options?: Configuration): Promise<GetJobs200Response> {
|
|
196
|
-
const result = this.api.getJobs(size, page, _options);
|
|
197
|
-
return result.toPromise();
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
/**
|
|
201
|
-
* (Experimental) - Update a Job
|
|
202
|
-
* @param id
|
|
203
|
-
* @param updateJobDto
|
|
204
|
-
*/
|
|
205
|
-
public updateJob(id: string, updateJobDto: UpdateJobDto, _options?: Configuration): Promise<JobDto> {
|
|
206
|
-
const result = this.api.updateJob(id, updateJobDto, _options);
|
|
207
|
-
return result.toPromise();
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
/**
|
|
211
|
-
* (Experimental) - Upload a zip to update a job
|
|
212
|
-
* @param id
|
|
213
|
-
* @param file
|
|
214
|
-
*/
|
|
215
|
-
public updateJobZip(id: string, file: HttpFile, _options?: Configuration): Promise<JobDto> {
|
|
216
|
-
const result = this.api.updateJobZip(id, file, _options);
|
|
217
|
-
return result.toPromise();
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
import { ObservableJobExecutionApi } from './ObservableAPI';
|
|
226
|
-
|
|
227
|
-
import { JobExecutionApiRequestFactory, JobExecutionApiResponseProcessor} from "../apis/JobExecutionApi";
|
|
228
|
-
export class PromiseJobExecutionApi {
|
|
229
|
-
private api: ObservableJobExecutionApi
|
|
230
|
-
|
|
231
|
-
public constructor(
|
|
232
|
-
configuration: Configuration,
|
|
233
|
-
requestFactory?: JobExecutionApiRequestFactory,
|
|
234
|
-
responseProcessor?: JobExecutionApiResponseProcessor
|
|
235
|
-
) {
|
|
236
|
-
this.api = new ObservableJobExecutionApi(configuration, requestFactory, responseProcessor);
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
/**
|
|
240
|
-
* (Experimental) - Create a Job execution
|
|
241
|
-
* @param createJobExecutionDto
|
|
242
|
-
*/
|
|
243
|
-
public createJobExecution(createJobExecutionDto: CreateJobExecutionDto, _options?: Configuration): Promise<JobExecutionDto> {
|
|
244
|
-
const result = this.api.createJobExecution(createJobExecutionDto, _options);
|
|
245
|
-
return result.toPromise();
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
/**
|
|
249
|
-
* (Experimental) - Get a Job execution by id
|
|
250
|
-
* @param id
|
|
251
|
-
*/
|
|
252
|
-
public getJobExecutionById(id: string, _options?: Configuration): Promise<JobExecutionDto> {
|
|
253
|
-
const result = this.api.getJobExecutionById(id, _options);
|
|
254
|
-
return result.toPromise();
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
/**
|
|
258
|
-
* (Experimental) - Get a list of Job execution
|
|
259
|
-
* @param size
|
|
260
|
-
* @param page
|
|
261
|
-
*/
|
|
262
|
-
public getJobExecutions(size?: number, page?: number, _options?: Configuration): Promise<GetJobExecutions200Response> {
|
|
263
|
-
const result = this.api.getJobExecutions(size, page, _options);
|
|
264
|
-
return result.toPromise();
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
import { ObservableTaskApi } from './ObservableAPI';
|
|
273
|
-
|
|
274
|
-
import { TaskApiRequestFactory, TaskApiResponseProcessor} from "../apis/TaskApi";
|
|
275
|
-
export class PromiseTaskApi {
|
|
276
|
-
private api: ObservableTaskApi
|
|
277
|
-
|
|
278
|
-
public constructor(
|
|
279
|
-
configuration: Configuration,
|
|
280
|
-
requestFactory?: TaskApiRequestFactory,
|
|
281
|
-
responseProcessor?: TaskApiResponseProcessor
|
|
282
|
-
) {
|
|
283
|
-
this.api = new ObservableTaskApi(configuration, requestFactory, responseProcessor);
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
/**
|
|
287
|
-
* (Experimental) - Create a Task
|
|
288
|
-
* @param createTaskDto
|
|
289
|
-
*/
|
|
290
|
-
public createTask(createTaskDto: CreateTaskDto, _options?: Configuration): Promise<TaskDto> {
|
|
291
|
-
const result = this.api.createTask(createTaskDto, _options);
|
|
292
|
-
return result.toPromise();
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
/**
|
|
296
|
-
* (Experimental) - Delete a Task by id
|
|
297
|
-
* @param id
|
|
298
|
-
*/
|
|
299
|
-
public deleteTask(id: string, _options?: Configuration): Promise<TaskDto> {
|
|
300
|
-
const result = this.api.deleteTask(id, _options);
|
|
301
|
-
return result.toPromise();
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
/**
|
|
305
|
-
* (Experimental) - Get a Task by id
|
|
306
|
-
* @param id
|
|
307
|
-
*/
|
|
308
|
-
public getTaskById(id: string, _options?: Configuration): Promise<TaskDto> {
|
|
309
|
-
const result = this.api.getTaskById(id, _options);
|
|
310
|
-
return result.toPromise();
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
/**
|
|
314
|
-
* (Experimental) - Get a list of Task
|
|
315
|
-
* @param size
|
|
316
|
-
* @param page
|
|
317
|
-
*/
|
|
318
|
-
public getTasks(size?: number, page?: number, _options?: Configuration): Promise<GetTasks200Response> {
|
|
319
|
-
const result = this.api.getTasks(size, page, _options);
|
|
320
|
-
return result.toPromise();
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
/**
|
|
324
|
-
* (Experimental) - Poll a task if there is not task to poll, the API returns a `404 Not Found` error
|
|
325
|
-
* @param id
|
|
326
|
-
*/
|
|
327
|
-
public pollTaskExecution(id: string, _options?: Configuration): Promise<TaskExecutionDto> {
|
|
328
|
-
const result = this.api.pollTaskExecution(id, _options);
|
|
329
|
-
return result.toPromise();
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
/**
|
|
333
|
-
* (Experimental) - Update a Task
|
|
334
|
-
* @param id
|
|
335
|
-
* @param updateTaskDto
|
|
336
|
-
*/
|
|
337
|
-
public updateTask(id: string, updateTaskDto: UpdateTaskDto, _options?: Configuration): Promise<TaskDto> {
|
|
338
|
-
const result = this.api.updateTask(id, updateTaskDto, _options);
|
|
339
|
-
return result.toPromise();
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
import { ObservableTaskExecutionApi } from './ObservableAPI';
|
|
348
|
-
|
|
349
|
-
import { TaskExecutionApiRequestFactory, TaskExecutionApiResponseProcessor} from "../apis/TaskExecutionApi";
|
|
350
|
-
export class PromiseTaskExecutionApi {
|
|
351
|
-
private api: ObservableTaskExecutionApi
|
|
352
|
-
|
|
353
|
-
public constructor(
|
|
354
|
-
configuration: Configuration,
|
|
355
|
-
requestFactory?: TaskExecutionApiRequestFactory,
|
|
356
|
-
responseProcessor?: TaskExecutionApiResponseProcessor
|
|
357
|
-
) {
|
|
358
|
-
this.api = new ObservableTaskExecutionApi(configuration, requestFactory, responseProcessor);
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
/**
|
|
362
|
-
* (Experimental) - Get a Task execution by id
|
|
363
|
-
* @param id
|
|
364
|
-
*/
|
|
365
|
-
public getTaskExecutionById(id: string, _options?: Configuration): Promise<TaskExecutionDto> {
|
|
366
|
-
const result = this.api.getTaskExecutionById(id, _options);
|
|
367
|
-
return result.toPromise();
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
/**
|
|
371
|
-
* (Experimental) - Update running task instance
|
|
372
|
-
* @param id
|
|
373
|
-
* @param patchTaskExecutionDto
|
|
374
|
-
*/
|
|
375
|
-
public patchTaskExecution(id: string, patchTaskExecutionDto: PatchTaskExecutionDto, _options?: Configuration): Promise<TaskExecutionDto> {
|
|
376
|
-
const result = this.api.patchTaskExecution(id, patchTaskExecutionDto, _options);
|
|
377
|
-
return result.toPromise();
|
|
378
|
-
}
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
import { ObservableVariableApi } from './ObservableAPI';
|
|
386
|
-
|
|
387
|
-
import { VariableApiRequestFactory, VariableApiResponseProcessor} from "../apis/VariableApi";
|
|
388
|
-
export class PromiseVariableApi {
|
|
389
|
-
private api: ObservableVariableApi
|
|
390
|
-
|
|
391
|
-
public constructor(
|
|
392
|
-
configuration: Configuration,
|
|
393
|
-
requestFactory?: VariableApiRequestFactory,
|
|
394
|
-
responseProcessor?: VariableApiResponseProcessor
|
|
395
|
-
) {
|
|
396
|
-
this.api = new ObservableVariableApi(configuration, requestFactory, responseProcessor);
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
/**
|
|
400
|
-
* (Experimental) - Create a Variable
|
|
401
|
-
* @param createVariableDto
|
|
402
|
-
*/
|
|
403
|
-
public createVariable(createVariableDto: CreateVariableDto, _options?: Configuration): Promise<VariableDto> {
|
|
404
|
-
const result = this.api.createVariable(createVariableDto, _options);
|
|
405
|
-
return result.toPromise();
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
/**
|
|
409
|
-
* (Experimental) - Find a list of Variable
|
|
410
|
-
* @param findVariablesRequest
|
|
411
|
-
* @param size
|
|
412
|
-
* @param page
|
|
413
|
-
*/
|
|
414
|
-
public findVariables(findVariablesRequest: FindVariablesRequest, size?: number, page?: number, _options?: Configuration): Promise<GetVariables200Response> {
|
|
415
|
-
const result = this.api.findVariables(findVariablesRequest, size, page, _options);
|
|
416
|
-
return result.toPromise();
|
|
417
|
-
}
|
|
418
|
-
|
|
419
|
-
/**
|
|
420
|
-
* (Experimental) - Get a Variable by id
|
|
421
|
-
* @param id
|
|
422
|
-
*/
|
|
423
|
-
public getVariableById(id: string, _options?: Configuration): Promise<VariableDto> {
|
|
424
|
-
const result = this.api.getVariableById(id, _options);
|
|
425
|
-
return result.toPromise();
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
/**
|
|
429
|
-
* (Experimental) - Get a list of Variable
|
|
430
|
-
* @param size
|
|
431
|
-
* @param page
|
|
432
|
-
*/
|
|
433
|
-
public getVariables(size?: number, page?: number, _options?: Configuration): Promise<GetVariables200Response> {
|
|
434
|
-
const result = this.api.getVariables(size, page, _options);
|
|
435
|
-
return result.toPromise();
|
|
436
|
-
}
|
|
437
|
-
|
|
438
|
-
/**
|
|
439
|
-
* (Experimental) - Update a Variable
|
|
440
|
-
* @param id
|
|
441
|
-
* @param updateVariableDto
|
|
442
|
-
*/
|
|
443
|
-
public updateVariable(id: string, updateVariableDto: UpdateVariableDto, _options?: Configuration): Promise<VariableDto> {
|
|
444
|
-
const result = this.api.updateVariable(id, updateVariableDto, _options);
|
|
445
|
-
return result.toPromise();
|
|
446
|
-
}
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
package/util.ts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Returns if a specific http code is in a given code range
|
|
3
|
-
* where the code range is defined as a combination of digits
|
|
4
|
-
* and "X" (the letter X) with a length of 3
|
|
5
|
-
*
|
|
6
|
-
* @param codeRange string with length 3 consisting of digits and "X" (the letter X)
|
|
7
|
-
* @param code the http status code to be checked against the code range
|
|
8
|
-
*/
|
|
9
|
-
export function isCodeInRange(codeRange: string, code: number): boolean {
|
|
10
|
-
// This is how the default value is encoded in OAG
|
|
11
|
-
if (codeRange === "0") {
|
|
12
|
-
return true;
|
|
13
|
-
}
|
|
14
|
-
if (codeRange == code.toString()) {
|
|
15
|
-
return true;
|
|
16
|
-
} else {
|
|
17
|
-
const codeString = code.toString();
|
|
18
|
-
if (codeString.length != codeRange.length) {
|
|
19
|
-
return false;
|
|
20
|
-
}
|
|
21
|
-
for (let i = 0; i < codeString.length; i++) {
|
|
22
|
-
if (codeRange.charAt(i) != "X" && codeRange.charAt(i) != codeString.charAt(i)) {
|
|
23
|
-
return false;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Returns if it can consume form
|
|
32
|
-
*
|
|
33
|
-
* @param consumes array
|
|
34
|
-
*/
|
|
35
|
-
export function canConsumeForm(contentTypes: string[]): boolean {
|
|
36
|
-
return contentTypes.indexOf('multipart/form-data') !== -1
|
|
37
|
-
}
|