@product-live/api-sdk 2.23.0 → 2.38.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 -39
- 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 -80
- 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/http/http.ts
DELETED
|
@@ -1,229 +0,0 @@
|
|
|
1
|
-
// TODO: evaluate if we can easily get rid of this library
|
|
2
|
-
import * as FormData from "form-data";
|
|
3
|
-
import { URL, URLSearchParams } from 'url';
|
|
4
|
-
import * as http from 'http';
|
|
5
|
-
import * as https from 'https';
|
|
6
|
-
import { Observable, from } from '../rxjsStub';
|
|
7
|
-
|
|
8
|
-
export * from './isomorphic-fetch';
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Represents an HTTP method.
|
|
12
|
-
*/
|
|
13
|
-
export enum HttpMethod {
|
|
14
|
-
GET = "GET",
|
|
15
|
-
HEAD = "HEAD",
|
|
16
|
-
POST = "POST",
|
|
17
|
-
PUT = "PUT",
|
|
18
|
-
DELETE = "DELETE",
|
|
19
|
-
CONNECT = "CONNECT",
|
|
20
|
-
OPTIONS = "OPTIONS",
|
|
21
|
-
TRACE = "TRACE",
|
|
22
|
-
PATCH = "PATCH"
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Represents an HTTP file which will be transferred from or to a server.
|
|
27
|
-
*/
|
|
28
|
-
export type HttpFile = {
|
|
29
|
-
data: Buffer,
|
|
30
|
-
name: string
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
export class HttpException extends Error {
|
|
34
|
-
public constructor(msg: string) {
|
|
35
|
-
super(msg);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Represents the body of an outgoing HTTP request.
|
|
41
|
-
*/
|
|
42
|
-
export type RequestBody = undefined | string | FormData | URLSearchParams;
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Represents an HTTP request context
|
|
46
|
-
*/
|
|
47
|
-
export class RequestContext {
|
|
48
|
-
private headers: { [key: string]: string } = {};
|
|
49
|
-
private body: RequestBody = undefined;
|
|
50
|
-
private url: URL;
|
|
51
|
-
private agent: http.Agent | https.Agent | undefined = undefined;
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* Creates the request context using a http method and request resource url
|
|
55
|
-
*
|
|
56
|
-
* @param url url of the requested resource
|
|
57
|
-
* @param httpMethod http method
|
|
58
|
-
*/
|
|
59
|
-
public constructor(url: string, private httpMethod: HttpMethod) {
|
|
60
|
-
this.url = new URL(url);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
/*
|
|
64
|
-
* Returns the url set in the constructor including the query string
|
|
65
|
-
*
|
|
66
|
-
*/
|
|
67
|
-
public getUrl(): string {
|
|
68
|
-
return this.url.toString().endsWith("/") ?
|
|
69
|
-
this.url.toString().slice(0, -1)
|
|
70
|
-
: this.url.toString();
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* Replaces the url set in the constructor with this url.
|
|
75
|
-
*
|
|
76
|
-
*/
|
|
77
|
-
public setUrl(url: string) {
|
|
78
|
-
this.url = new URL(url);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* Sets the body of the http request either as a string or FormData
|
|
83
|
-
*
|
|
84
|
-
* Note that setting a body on a HTTP GET, HEAD, DELETE, CONNECT or TRACE
|
|
85
|
-
* request is discouraged.
|
|
86
|
-
* https://httpwg.org/http-core/draft-ietf-httpbis-semantics-latest.html#rfc.section.7.3.1
|
|
87
|
-
*
|
|
88
|
-
* @param body the body of the request
|
|
89
|
-
*/
|
|
90
|
-
public setBody(body: RequestBody) {
|
|
91
|
-
this.body = body;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
public getHttpMethod(): HttpMethod {
|
|
95
|
-
return this.httpMethod;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
public getHeaders(): { [key: string]: string } {
|
|
99
|
-
return this.headers;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
public getBody(): RequestBody {
|
|
103
|
-
return this.body;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
public setQueryParam(name: string, value: string) {
|
|
107
|
-
this.url.searchParams.set(name, value);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* Sets a cookie with the name and value. NO check for duplicate cookies is performed
|
|
112
|
-
*
|
|
113
|
-
*/
|
|
114
|
-
public addCookie(name: string, value: string): void {
|
|
115
|
-
if (!this.headers["Cookie"]) {
|
|
116
|
-
this.headers["Cookie"] = "";
|
|
117
|
-
}
|
|
118
|
-
this.headers["Cookie"] += name + "=" + value + "; ";
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
public setHeaderParam(key: string, value: string): void {
|
|
122
|
-
this.headers[key] = value;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
public setAgent(agent: http.Agent | https.Agent) {
|
|
126
|
-
this.agent = agent;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
public getAgent(): http.Agent | https.Agent | undefined {
|
|
130
|
-
return this.agent;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
export interface ResponseBody {
|
|
135
|
-
text(): Promise<string>;
|
|
136
|
-
binary(): Promise<Buffer>;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* Helper class to generate a `ResponseBody` from binary data
|
|
141
|
-
*/
|
|
142
|
-
export class SelfDecodingBody implements ResponseBody {
|
|
143
|
-
constructor(private dataSource: Promise<Buffer>) {}
|
|
144
|
-
|
|
145
|
-
binary(): Promise<Buffer> {
|
|
146
|
-
return this.dataSource;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
async text(): Promise<string> {
|
|
150
|
-
const data: Buffer = await this.dataSource;
|
|
151
|
-
return data.toString();
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
export class ResponseContext {
|
|
156
|
-
public constructor(
|
|
157
|
-
public httpStatusCode: number,
|
|
158
|
-
public headers: { [key: string]: string },
|
|
159
|
-
public body: ResponseBody
|
|
160
|
-
) {}
|
|
161
|
-
|
|
162
|
-
/**
|
|
163
|
-
* Parse header value in the form `value; param1="value1"`
|
|
164
|
-
*
|
|
165
|
-
* E.g. for Content-Type or Content-Disposition
|
|
166
|
-
* Parameter names are converted to lower case
|
|
167
|
-
* The first parameter is returned with the key `""`
|
|
168
|
-
*/
|
|
169
|
-
public getParsedHeader(headerName: string): { [parameter: string]: string } {
|
|
170
|
-
const result: { [parameter: string]: string } = {};
|
|
171
|
-
if (!this.headers[headerName]) {
|
|
172
|
-
return result;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
const parameters = this.headers[headerName].split(";");
|
|
176
|
-
for (const parameter of parameters) {
|
|
177
|
-
let [key, value] = parameter.split("=", 2);
|
|
178
|
-
key = key.toLowerCase().trim();
|
|
179
|
-
if (value === undefined) {
|
|
180
|
-
result[""] = key;
|
|
181
|
-
} else {
|
|
182
|
-
value = value.trim();
|
|
183
|
-
if (value.startsWith('"') && value.endsWith('"')) {
|
|
184
|
-
value = value.substring(1, value.length - 1);
|
|
185
|
-
}
|
|
186
|
-
result[key] = value;
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
return result;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
public async getBodyAsFile(): Promise<HttpFile> {
|
|
193
|
-
const data = await this.body.binary();
|
|
194
|
-
const fileName = this.getParsedHeader("content-disposition")["filename"] || "";
|
|
195
|
-
return { data, name: fileName };
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
/**
|
|
199
|
-
* Use a heuristic to get a body of unknown data structure.
|
|
200
|
-
* Return as string if possible, otherwise as binary.
|
|
201
|
-
*/
|
|
202
|
-
public getBodyAsAny(): Promise<string | Buffer | undefined> {
|
|
203
|
-
try {
|
|
204
|
-
return this.body.text();
|
|
205
|
-
} catch {}
|
|
206
|
-
|
|
207
|
-
try {
|
|
208
|
-
return this.body.binary();
|
|
209
|
-
} catch {}
|
|
210
|
-
|
|
211
|
-
return Promise.resolve(undefined);
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
export interface HttpLibrary {
|
|
216
|
-
send(request: RequestContext): Observable<ResponseContext>;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
export interface PromiseHttpLibrary {
|
|
220
|
-
send(request: RequestContext): Promise<ResponseContext>;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
export function wrapHttpLibrary(promiseHttpLibrary: PromiseHttpLibrary): HttpLibrary {
|
|
224
|
-
return {
|
|
225
|
-
send(request: RequestContext): Observable<ResponseContext> {
|
|
226
|
-
return from(promiseHttpLibrary.send(request));
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
}
|
package/http/isomorphic-fetch.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import {HttpLibrary, RequestContext, ResponseContext} from './http';
|
|
2
|
-
import { from, Observable } from '../rxjsStub';
|
|
3
|
-
import fetch from "node-fetch";
|
|
4
|
-
|
|
5
|
-
export class IsomorphicFetchHttpLibrary implements HttpLibrary {
|
|
6
|
-
|
|
7
|
-
public send(request: RequestContext): Observable<ResponseContext> {
|
|
8
|
-
let method = request.getHttpMethod().toString();
|
|
9
|
-
let body = request.getBody();
|
|
10
|
-
|
|
11
|
-
const resultPromise = fetch(request.getUrl(), {
|
|
12
|
-
method: method,
|
|
13
|
-
body: body as any,
|
|
14
|
-
headers: request.getHeaders(),
|
|
15
|
-
agent: request.getAgent(),
|
|
16
|
-
}).then((resp: any) => {
|
|
17
|
-
const headers: { [name: string]: string } = {};
|
|
18
|
-
resp.headers.forEach((value: string, name: string) => {
|
|
19
|
-
headers[name] = value;
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
const body = {
|
|
23
|
-
text: () => resp.text(),
|
|
24
|
-
binary: () => resp.buffer()
|
|
25
|
-
};
|
|
26
|
-
return new ResponseContext(resp.status, headers, body);
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
return from<Promise<ResponseContext>>(resultPromise);
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
}
|
package/index.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export * from "./http/http";
|
|
2
|
-
export * from "./auth/auth";
|
|
3
|
-
export * from "./models/all";
|
|
4
|
-
export { createConfiguration } from "./configuration"
|
|
5
|
-
export { Configuration } from "./configuration"
|
|
6
|
-
export * from "./apis/exception";
|
|
7
|
-
export * from "./servers";
|
|
8
|
-
export { RequiredError } from "./apis/baseapi";
|
|
9
|
-
|
|
10
|
-
export { PromiseMiddleware as Middleware } from './middleware';
|
|
11
|
-
export { PromiseDataFactoryFileApi as DataFactoryFileApi, PromiseDefaultApi as DefaultApi, PromiseItemApi as ItemApi, PromiseJobApi as JobApi, PromiseJobExecutionApi as JobExecutionApi, PromiseTaskApi as TaskApi, PromiseTaskExecutionApi as TaskExecutionApi, PromiseVariableApi as VariableApi } from './types/PromiseAPI';
|
|
12
|
-
|
package/middleware.ts
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import {RequestContext, ResponseContext} from './http/http';
|
|
2
|
-
import { Observable, from } from './rxjsStub';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Defines the contract for a middleware intercepting requests before
|
|
6
|
-
* they are sent (but after the RequestContext was created)
|
|
7
|
-
* and before the ResponseContext is unwrapped.
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
export interface Middleware {
|
|
11
|
-
/**
|
|
12
|
-
* Modifies the request before the request is sent.
|
|
13
|
-
*
|
|
14
|
-
* @param context RequestContext of a request which is about to be sent to the server
|
|
15
|
-
* @returns an observable of the updated request context
|
|
16
|
-
*
|
|
17
|
-
*/
|
|
18
|
-
pre(context: RequestContext): Observable<RequestContext>;
|
|
19
|
-
/**
|
|
20
|
-
* Modifies the returned response before it is deserialized.
|
|
21
|
-
*
|
|
22
|
-
* @param context ResponseContext of a sent request
|
|
23
|
-
* @returns an observable of the modified response context
|
|
24
|
-
*/
|
|
25
|
-
post(context: ResponseContext): Observable<ResponseContext>;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export class PromiseMiddlewareWrapper implements Middleware {
|
|
29
|
-
|
|
30
|
-
public constructor(private middleware: PromiseMiddleware) {
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
pre(context: RequestContext): Observable<RequestContext> {
|
|
35
|
-
return from(this.middleware.pre(context));
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
post(context: ResponseContext): Observable<ResponseContext> {
|
|
39
|
-
return from(this.middleware.post(context));
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Defines the contract for a middleware intercepting requests before
|
|
46
|
-
* they are sent (but after the RequestContext was created)
|
|
47
|
-
* and before the ResponseContext is unwrapped.
|
|
48
|
-
*
|
|
49
|
-
*/
|
|
50
|
-
export interface PromiseMiddleware {
|
|
51
|
-
/**
|
|
52
|
-
* Modifies the request before the request is sent.
|
|
53
|
-
*
|
|
54
|
-
* @param context RequestContext of a request which is about to be sent to the server
|
|
55
|
-
* @returns an observable of the updated request context
|
|
56
|
-
*
|
|
57
|
-
*/
|
|
58
|
-
pre(context: RequestContext): Promise<RequestContext>;
|
|
59
|
-
/**
|
|
60
|
-
* Modifies the returned response before it is deserialized.
|
|
61
|
-
*
|
|
62
|
-
* @param context ResponseContext of a sent request
|
|
63
|
-
* @returns an observable of the modified response context
|
|
64
|
-
*/
|
|
65
|
-
post(context: ResponseContext): Promise<ResponseContext>;
|
|
66
|
-
}
|
package/models/CreateJobDto.ts
DELETED
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Product-Live API
|
|
3
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
-
*
|
|
5
|
-
* OpenAPI spec version: 2.23.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import { HttpFile } from '../http/http';
|
|
14
|
-
|
|
15
|
-
export class CreateJobDto {
|
|
16
|
-
'key': string;
|
|
17
|
-
'periodicity'?: Array<any>;
|
|
18
|
-
'pipelineId': string;
|
|
19
|
-
'projectId': string;
|
|
20
|
-
'status': CreateJobDtoStatusEnum;
|
|
21
|
-
'title': string;
|
|
22
|
-
'titleLocal'?: any;
|
|
23
|
-
'description'?: string;
|
|
24
|
-
'descriptionLocal'?: any;
|
|
25
|
-
'output'?: { [key: string]: any; };
|
|
26
|
-
'tasks'?: Array<any>;
|
|
27
|
-
|
|
28
|
-
static readonly discriminator: string | undefined = undefined;
|
|
29
|
-
|
|
30
|
-
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
31
|
-
{
|
|
32
|
-
"name": "key",
|
|
33
|
-
"baseName": "key",
|
|
34
|
-
"type": "string",
|
|
35
|
-
"format": ""
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"name": "periodicity",
|
|
39
|
-
"baseName": "periodicity",
|
|
40
|
-
"type": "Array<any>",
|
|
41
|
-
"format": ""
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"name": "pipelineId",
|
|
45
|
-
"baseName": "pipelineId",
|
|
46
|
-
"type": "string",
|
|
47
|
-
"format": ""
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
"name": "projectId",
|
|
51
|
-
"baseName": "projectId",
|
|
52
|
-
"type": "string",
|
|
53
|
-
"format": ""
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
"name": "status",
|
|
57
|
-
"baseName": "status",
|
|
58
|
-
"type": "CreateJobDtoStatusEnum",
|
|
59
|
-
"format": ""
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
"name": "title",
|
|
63
|
-
"baseName": "title",
|
|
64
|
-
"type": "string",
|
|
65
|
-
"format": ""
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
"name": "titleLocal",
|
|
69
|
-
"baseName": "titleLocal",
|
|
70
|
-
"type": "any",
|
|
71
|
-
"format": ""
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
"name": "description",
|
|
75
|
-
"baseName": "description",
|
|
76
|
-
"type": "string",
|
|
77
|
-
"format": ""
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
"name": "descriptionLocal",
|
|
81
|
-
"baseName": "descriptionLocal",
|
|
82
|
-
"type": "any",
|
|
83
|
-
"format": ""
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
"name": "output",
|
|
87
|
-
"baseName": "output",
|
|
88
|
-
"type": "{ [key: string]: any; }",
|
|
89
|
-
"format": ""
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
"name": "tasks",
|
|
93
|
-
"baseName": "tasks",
|
|
94
|
-
"type": "Array<any>",
|
|
95
|
-
"format": ""
|
|
96
|
-
} ];
|
|
97
|
-
|
|
98
|
-
static getAttributeTypeMap() {
|
|
99
|
-
return CreateJobDto.attributeTypeMap;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
public constructor() {
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
export type CreateJobDtoStatusEnum = "DRAFT" | "PRODUCTION" | "DEPRECATED" | "ARCHIVED" | "REMOVED" ;
|
|
108
|
-
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Product-Live API
|
|
3
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
-
*
|
|
5
|
-
* OpenAPI spec version: 2.23.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import { HttpFile } from '../http/http';
|
|
14
|
-
|
|
15
|
-
export class CreateJobExecutionDto {
|
|
16
|
-
'jobId': string;
|
|
17
|
-
'info'?: any;
|
|
18
|
-
'input'?: { [key: string]: any; };
|
|
19
|
-
|
|
20
|
-
static readonly discriminator: string | undefined = undefined;
|
|
21
|
-
|
|
22
|
-
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
23
|
-
{
|
|
24
|
-
"name": "jobId",
|
|
25
|
-
"baseName": "jobId",
|
|
26
|
-
"type": "string",
|
|
27
|
-
"format": ""
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"name": "info",
|
|
31
|
-
"baseName": "info",
|
|
32
|
-
"type": "any",
|
|
33
|
-
"format": ""
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"name": "input",
|
|
37
|
-
"baseName": "input",
|
|
38
|
-
"type": "{ [key: string]: any; }",
|
|
39
|
-
"format": ""
|
|
40
|
-
} ];
|
|
41
|
-
|
|
42
|
-
static getAttributeTypeMap() {
|
|
43
|
-
return CreateJobExecutionDto.attributeTypeMap;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
public constructor() {
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
package/models/CreateTaskDto.ts
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Product-Live API
|
|
3
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
-
*
|
|
5
|
-
* OpenAPI spec version: 2.23.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import { HttpFile } from '../http/http';
|
|
14
|
-
|
|
15
|
-
export class CreateTaskDto {
|
|
16
|
-
'key': string;
|
|
17
|
-
'description': string;
|
|
18
|
-
'retryCount': number;
|
|
19
|
-
'inputKeys': Array<any>;
|
|
20
|
-
'outputKeys': Array<any>;
|
|
21
|
-
|
|
22
|
-
static readonly discriminator: string | undefined = undefined;
|
|
23
|
-
|
|
24
|
-
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
25
|
-
{
|
|
26
|
-
"name": "key",
|
|
27
|
-
"baseName": "key",
|
|
28
|
-
"type": "string",
|
|
29
|
-
"format": ""
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
"name": "description",
|
|
33
|
-
"baseName": "description",
|
|
34
|
-
"type": "string",
|
|
35
|
-
"format": ""
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"name": "retryCount",
|
|
39
|
-
"baseName": "retryCount",
|
|
40
|
-
"type": "number",
|
|
41
|
-
"format": ""
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"name": "inputKeys",
|
|
45
|
-
"baseName": "inputKeys",
|
|
46
|
-
"type": "Array<any>",
|
|
47
|
-
"format": ""
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
"name": "outputKeys",
|
|
51
|
-
"baseName": "outputKeys",
|
|
52
|
-
"type": "Array<any>",
|
|
53
|
-
"format": ""
|
|
54
|
-
} ];
|
|
55
|
-
|
|
56
|
-
static getAttributeTypeMap() {
|
|
57
|
-
return CreateTaskDto.attributeTypeMap;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
public constructor() {
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Product-Live API
|
|
3
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
-
*
|
|
5
|
-
* OpenAPI spec version: 2.23.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import { HttpFile } from '../http/http';
|
|
14
|
-
|
|
15
|
-
export class CreateVariableDto {
|
|
16
|
-
'key': string;
|
|
17
|
-
'name': string;
|
|
18
|
-
'status'?: CreateVariableDtoStatusEnum;
|
|
19
|
-
'value': string;
|
|
20
|
-
'secret'?: boolean;
|
|
21
|
-
|
|
22
|
-
static readonly discriminator: string | undefined = undefined;
|
|
23
|
-
|
|
24
|
-
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
25
|
-
{
|
|
26
|
-
"name": "key",
|
|
27
|
-
"baseName": "key",
|
|
28
|
-
"type": "string",
|
|
29
|
-
"format": ""
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
"name": "name",
|
|
33
|
-
"baseName": "name",
|
|
34
|
-
"type": "string",
|
|
35
|
-
"format": ""
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"name": "status",
|
|
39
|
-
"baseName": "status",
|
|
40
|
-
"type": "CreateVariableDtoStatusEnum",
|
|
41
|
-
"format": ""
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"name": "value",
|
|
45
|
-
"baseName": "value",
|
|
46
|
-
"type": "string",
|
|
47
|
-
"format": ""
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
"name": "secret",
|
|
51
|
-
"baseName": "secret",
|
|
52
|
-
"type": "boolean",
|
|
53
|
-
"format": ""
|
|
54
|
-
} ];
|
|
55
|
-
|
|
56
|
-
static getAttributeTypeMap() {
|
|
57
|
-
return CreateVariableDto.attributeTypeMap;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
public constructor() {
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
export type CreateVariableDtoStatusEnum = "ACTIVE" | "ARCHIVED" | "DELETED" ;
|
|
66
|
-
|
package/models/FileDto.ts
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Product-Live API
|
|
3
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
-
*
|
|
5
|
-
* OpenAPI spec version: 2.23.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import { HttpFile } from '../http/http';
|
|
14
|
-
|
|
15
|
-
export class FileDto {
|
|
16
|
-
'object': FileDtoObjectEnum;
|
|
17
|
-
'id': string;
|
|
18
|
-
'createdAt': string;
|
|
19
|
-
'updatedAt': string;
|
|
20
|
-
'url': string;
|
|
21
|
-
'filename': string;
|
|
22
|
-
|
|
23
|
-
static readonly discriminator: string | undefined = undefined;
|
|
24
|
-
|
|
25
|
-
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
26
|
-
{
|
|
27
|
-
"name": "object",
|
|
28
|
-
"baseName": "object",
|
|
29
|
-
"type": "FileDtoObjectEnum",
|
|
30
|
-
"format": ""
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"name": "id",
|
|
34
|
-
"baseName": "id",
|
|
35
|
-
"type": "string",
|
|
36
|
-
"format": ""
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"name": "createdAt",
|
|
40
|
-
"baseName": "createdAt",
|
|
41
|
-
"type": "string",
|
|
42
|
-
"format": ""
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"name": "updatedAt",
|
|
46
|
-
"baseName": "updatedAt",
|
|
47
|
-
"type": "string",
|
|
48
|
-
"format": ""
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
"name": "url",
|
|
52
|
-
"baseName": "url",
|
|
53
|
-
"type": "string",
|
|
54
|
-
"format": ""
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"name": "filename",
|
|
58
|
-
"baseName": "filename",
|
|
59
|
-
"type": "string",
|
|
60
|
-
"format": ""
|
|
61
|
-
} ];
|
|
62
|
-
|
|
63
|
-
static getAttributeTypeMap() {
|
|
64
|
-
return FileDto.attributeTypeMap;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
public constructor() {
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
export type FileDtoObjectEnum = "data_factory_file" ;
|
|
73
|
-
|