@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/dist/apis/exception.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.ApiException = void 0;
|
|
19
|
-
var ApiException = (function (_super) {
|
|
20
|
-
__extends(ApiException, _super);
|
|
21
|
-
function ApiException(code, message, body, headers) {
|
|
22
|
-
var _this = _super.call(this, "HTTP-Code: " + code + "\nMessage: " + message + "\nBody: " + JSON.stringify(body) + "\nHeaders: " +
|
|
23
|
-
JSON.stringify(headers)) || this;
|
|
24
|
-
_this.code = code;
|
|
25
|
-
_this.body = body;
|
|
26
|
-
_this.headers = headers;
|
|
27
|
-
return _this;
|
|
28
|
-
}
|
|
29
|
-
return ApiException;
|
|
30
|
-
}(Error));
|
|
31
|
-
exports.ApiException = ApiException;
|
|
32
|
-
//# sourceMappingURL=exception.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"exception.js","sourceRoot":"","sources":["../../apis/exception.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AASA;IAAqC,gCAAK;IACtC,sBAA0B,IAAY,EAAE,OAAe,EAAS,IAAO,EAAS,OAAmC;QAAnH,YACI,kBAAM,aAAa,GAAG,IAAI,GAAG,aAAa,GAAG,OAAO,GAAG,UAAU,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,aAAa;YACxG,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,SAC3B;QAHyB,UAAI,GAAJ,IAAI,CAAQ;QAA0B,UAAI,GAAJ,IAAI,CAAG;QAAS,aAAO,GAAP,OAAO,CAA4B;;IAGnH,CAAC;IACL,mBAAC;AAAD,CAAC,AALD,CAAqC,KAAK,GAKzC;AALY,oCAAY"}
|
package/dist/auth/auth.d.ts
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { RequestContext } from "../http/http";
|
|
2
|
-
export interface SecurityAuthentication {
|
|
3
|
-
getName(): string;
|
|
4
|
-
applySecurityAuthentication(context: RequestContext): void | Promise<void>;
|
|
5
|
-
}
|
|
6
|
-
export interface TokenProvider {
|
|
7
|
-
getToken(): Promise<string> | string;
|
|
8
|
-
}
|
|
9
|
-
export declare class ApiKeyAuthHeaderAuthentication implements SecurityAuthentication {
|
|
10
|
-
private apiKey;
|
|
11
|
-
constructor(apiKey: string);
|
|
12
|
-
getName(): string;
|
|
13
|
-
applySecurityAuthentication(context: RequestContext): void;
|
|
14
|
-
}
|
|
15
|
-
export declare class ApiKeyAuthQueryAuthentication implements SecurityAuthentication {
|
|
16
|
-
private apiKey;
|
|
17
|
-
constructor(apiKey: string);
|
|
18
|
-
getName(): string;
|
|
19
|
-
applySecurityAuthentication(context: RequestContext): void;
|
|
20
|
-
}
|
|
21
|
-
export type AuthMethods = {
|
|
22
|
-
"default"?: SecurityAuthentication;
|
|
23
|
-
"ApiKeyAuthHeader"?: SecurityAuthentication;
|
|
24
|
-
"ApiKeyAuthQuery"?: SecurityAuthentication;
|
|
25
|
-
};
|
|
26
|
-
export type ApiKeyConfiguration = string;
|
|
27
|
-
export type HttpBasicConfiguration = {
|
|
28
|
-
"username": string;
|
|
29
|
-
"password": string;
|
|
30
|
-
};
|
|
31
|
-
export type HttpBearerConfiguration = {
|
|
32
|
-
tokenProvider: TokenProvider;
|
|
33
|
-
};
|
|
34
|
-
export type OAuth2Configuration = {
|
|
35
|
-
accessToken: string;
|
|
36
|
-
};
|
|
37
|
-
export type AuthMethodsConfiguration = {
|
|
38
|
-
"default"?: SecurityAuthentication;
|
|
39
|
-
"ApiKeyAuthHeader"?: ApiKeyConfiguration;
|
|
40
|
-
"ApiKeyAuthQuery"?: ApiKeyConfiguration;
|
|
41
|
-
};
|
|
42
|
-
export declare function configureAuthMethods(config: AuthMethodsConfiguration | undefined): AuthMethods;
|
package/dist/auth/auth.js
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.configureAuthMethods = exports.ApiKeyAuthQueryAuthentication = exports.ApiKeyAuthHeaderAuthentication = void 0;
|
|
4
|
-
var ApiKeyAuthHeaderAuthentication = (function () {
|
|
5
|
-
function ApiKeyAuthHeaderAuthentication(apiKey) {
|
|
6
|
-
this.apiKey = apiKey;
|
|
7
|
-
}
|
|
8
|
-
ApiKeyAuthHeaderAuthentication.prototype.getName = function () {
|
|
9
|
-
return "ApiKeyAuthHeader";
|
|
10
|
-
};
|
|
11
|
-
ApiKeyAuthHeaderAuthentication.prototype.applySecurityAuthentication = function (context) {
|
|
12
|
-
context.setHeaderParam("X-Api-Key", this.apiKey);
|
|
13
|
-
};
|
|
14
|
-
return ApiKeyAuthHeaderAuthentication;
|
|
15
|
-
}());
|
|
16
|
-
exports.ApiKeyAuthHeaderAuthentication = ApiKeyAuthHeaderAuthentication;
|
|
17
|
-
var ApiKeyAuthQueryAuthentication = (function () {
|
|
18
|
-
function ApiKeyAuthQueryAuthentication(apiKey) {
|
|
19
|
-
this.apiKey = apiKey;
|
|
20
|
-
}
|
|
21
|
-
ApiKeyAuthQueryAuthentication.prototype.getName = function () {
|
|
22
|
-
return "ApiKeyAuthQuery";
|
|
23
|
-
};
|
|
24
|
-
ApiKeyAuthQueryAuthentication.prototype.applySecurityAuthentication = function (context) {
|
|
25
|
-
context.setQueryParam("api_key", this.apiKey);
|
|
26
|
-
};
|
|
27
|
-
return ApiKeyAuthQueryAuthentication;
|
|
28
|
-
}());
|
|
29
|
-
exports.ApiKeyAuthQueryAuthentication = ApiKeyAuthQueryAuthentication;
|
|
30
|
-
function configureAuthMethods(config) {
|
|
31
|
-
var authMethods = {};
|
|
32
|
-
if (!config) {
|
|
33
|
-
return authMethods;
|
|
34
|
-
}
|
|
35
|
-
authMethods["default"] = config["default"];
|
|
36
|
-
if (config["ApiKeyAuthHeader"]) {
|
|
37
|
-
authMethods["ApiKeyAuthHeader"] = new ApiKeyAuthHeaderAuthentication(config["ApiKeyAuthHeader"]);
|
|
38
|
-
}
|
|
39
|
-
if (config["ApiKeyAuthQuery"]) {
|
|
40
|
-
authMethods["ApiKeyAuthQuery"] = new ApiKeyAuthQueryAuthentication(config["ApiKeyAuthQuery"]);
|
|
41
|
-
}
|
|
42
|
-
return authMethods;
|
|
43
|
-
}
|
|
44
|
-
exports.configureAuthMethods = configureAuthMethods;
|
|
45
|
-
//# sourceMappingURL=auth.js.map
|
package/dist/auth/auth.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../../auth/auth.ts"],"names":[],"mappings":";;;AA0BA;IAMI,wCAA2B,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;IAAG,CAAC;IAEtC,gDAAO,GAAd;QACI,OAAO,kBAAkB,CAAC;IAC9B,CAAC;IAEM,oEAA2B,GAAlC,UAAmC,OAAuB;QACtD,OAAO,CAAC,cAAc,CAAC,WAAW,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;IACrD,CAAC;IACL,qCAAC;AAAD,CAAC,AAfD,IAeC;AAfY,wEAA8B;AAoB3C;IAMI,uCAA2B,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;IAAG,CAAC;IAEtC,+CAAO,GAAd;QACI,OAAO,iBAAiB,CAAC;IAC7B,CAAC;IAEM,mEAA2B,GAAlC,UAAmC,OAAuB;QACtD,OAAO,CAAC,aAAa,CAAC,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;IAClD,CAAC;IACL,oCAAC;AAAD,CAAC,AAfD,IAeC;AAfY,sEAA6B;AAuC1C,SAAgB,oBAAoB,CAAC,MAA4C;IAC7E,IAAI,WAAW,GAAgB,EAAE,CAAA;IAEjC,IAAI,CAAC,MAAM,EAAE;QACT,OAAO,WAAW,CAAC;KACtB;IACD,WAAW,CAAC,SAAS,CAAC,GAAG,MAAM,CAAC,SAAS,CAAC,CAAA;IAE1C,IAAI,MAAM,CAAC,kBAAkB,CAAC,EAAE;QAC5B,WAAW,CAAC,kBAAkB,CAAC,GAAG,IAAI,8BAA8B,CAChE,MAAM,CAAC,kBAAkB,CAAC,CAC7B,CAAC;KACL;IAED,IAAI,MAAM,CAAC,iBAAiB,CAAC,EAAE;QAC3B,WAAW,CAAC,iBAAiB,CAAC,GAAG,IAAI,6BAA6B,CAC9D,MAAM,CAAC,iBAAiB,CAAC,CAC5B,CAAC;KACL;IAED,OAAO,WAAW,CAAC;AACvB,CAAC;AArBD,oDAqBC"}
|
package/dist/configuration.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { HttpLibrary } from "./http/http";
|
|
2
|
-
import { Middleware, PromiseMiddleware } from "./middleware";
|
|
3
|
-
import { BaseServerConfiguration } from "./servers";
|
|
4
|
-
import { AuthMethods, AuthMethodsConfiguration } from "./auth/auth";
|
|
5
|
-
export interface Configuration {
|
|
6
|
-
readonly baseServer: BaseServerConfiguration;
|
|
7
|
-
readonly httpApi: HttpLibrary;
|
|
8
|
-
readonly middleware: Middleware[];
|
|
9
|
-
readonly authMethods: AuthMethods;
|
|
10
|
-
}
|
|
11
|
-
export interface ConfigurationParameters {
|
|
12
|
-
baseServer?: BaseServerConfiguration;
|
|
13
|
-
httpApi?: HttpLibrary;
|
|
14
|
-
middleware?: Middleware[];
|
|
15
|
-
promiseMiddleware?: PromiseMiddleware[];
|
|
16
|
-
authMethods?: AuthMethodsConfiguration;
|
|
17
|
-
}
|
|
18
|
-
export declare function createConfiguration(conf?: ConfigurationParameters): Configuration;
|
package/dist/configuration.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createConfiguration = void 0;
|
|
4
|
-
var middleware_1 = require("./middleware");
|
|
5
|
-
var isomorphic_fetch_1 = require("./http/isomorphic-fetch");
|
|
6
|
-
var servers_1 = require("./servers");
|
|
7
|
-
var auth_1 = require("./auth/auth");
|
|
8
|
-
function createConfiguration(conf) {
|
|
9
|
-
if (conf === void 0) { conf = {}; }
|
|
10
|
-
var configuration = {
|
|
11
|
-
baseServer: conf.baseServer !== undefined ? conf.baseServer : servers_1.server1,
|
|
12
|
-
httpApi: conf.httpApi || new isomorphic_fetch_1.IsomorphicFetchHttpLibrary(),
|
|
13
|
-
middleware: conf.middleware || [],
|
|
14
|
-
authMethods: (0, auth_1.configureAuthMethods)(conf.authMethods)
|
|
15
|
-
};
|
|
16
|
-
if (conf.promiseMiddleware) {
|
|
17
|
-
conf.promiseMiddleware.forEach(function (m) { return configuration.middleware.push(new middleware_1.PromiseMiddlewareWrapper(m)); });
|
|
18
|
-
}
|
|
19
|
-
return configuration;
|
|
20
|
-
}
|
|
21
|
-
exports.createConfiguration = createConfiguration;
|
|
22
|
-
//# sourceMappingURL=configuration.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"configuration.js","sourceRoot":"","sources":["../configuration.ts"],"names":[],"mappings":";;;AACA,2CAAuF;AACvF,4DAA2F;AAC3F,qCAA6D;AAC7D,oCAA0F;AAgE1F,SAAgB,mBAAmB,CAAC,IAAkC;IAAlC,qBAAA,EAAA,SAAkC;IAClE,IAAM,aAAa,GAAkB;QACjC,UAAU,EAAE,IAAI,CAAC,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,iBAAO;QACrE,OAAO,EAAE,IAAI,CAAC,OAAO,IAAI,IAAI,6CAAkB,EAAE;QACjD,UAAU,EAAE,IAAI,CAAC,UAAU,IAAI,EAAE;QACjC,WAAW,EAAE,IAAA,2BAAoB,EAAC,IAAI,CAAC,WAAW,CAAC;KACtD,CAAC;IACF,IAAI,IAAI,CAAC,iBAAiB,EAAE;QACxB,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAC1B,UAAA,CAAC,IAAI,OAAA,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,qCAAwB,CAAC,CAAC,CAAC,CAAC,EAA9D,CAA8D,CACtE,CAAC;KACL;IACD,OAAO,aAAa,CAAC;AACzB,CAAC;AAbD,kDAaC"}
|
package/dist/http/http.d.ts
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
/// <reference types="node" />
|
|
3
|
-
/// <reference types="node" />
|
|
4
|
-
/// <reference types="node" />
|
|
5
|
-
import * as FormData from "form-data";
|
|
6
|
-
import { URLSearchParams } from 'url';
|
|
7
|
-
import * as http from 'http';
|
|
8
|
-
import * as https from 'https';
|
|
9
|
-
import { Observable } from '../rxjsStub';
|
|
10
|
-
export * from './isomorphic-fetch';
|
|
11
|
-
export declare enum HttpMethod {
|
|
12
|
-
GET = "GET",
|
|
13
|
-
HEAD = "HEAD",
|
|
14
|
-
POST = "POST",
|
|
15
|
-
PUT = "PUT",
|
|
16
|
-
DELETE = "DELETE",
|
|
17
|
-
CONNECT = "CONNECT",
|
|
18
|
-
OPTIONS = "OPTIONS",
|
|
19
|
-
TRACE = "TRACE",
|
|
20
|
-
PATCH = "PATCH"
|
|
21
|
-
}
|
|
22
|
-
export type HttpFile = {
|
|
23
|
-
data: Buffer;
|
|
24
|
-
name: string;
|
|
25
|
-
};
|
|
26
|
-
export declare class HttpException extends Error {
|
|
27
|
-
constructor(msg: string);
|
|
28
|
-
}
|
|
29
|
-
export type RequestBody = undefined | string | FormData | URLSearchParams;
|
|
30
|
-
export declare class RequestContext {
|
|
31
|
-
private httpMethod;
|
|
32
|
-
private headers;
|
|
33
|
-
private body;
|
|
34
|
-
private url;
|
|
35
|
-
private agent;
|
|
36
|
-
constructor(url: string, httpMethod: HttpMethod);
|
|
37
|
-
getUrl(): string;
|
|
38
|
-
setUrl(url: string): void;
|
|
39
|
-
setBody(body: RequestBody): void;
|
|
40
|
-
getHttpMethod(): HttpMethod;
|
|
41
|
-
getHeaders(): {
|
|
42
|
-
[key: string]: string;
|
|
43
|
-
};
|
|
44
|
-
getBody(): RequestBody;
|
|
45
|
-
setQueryParam(name: string, value: string): void;
|
|
46
|
-
addCookie(name: string, value: string): void;
|
|
47
|
-
setHeaderParam(key: string, value: string): void;
|
|
48
|
-
setAgent(agent: http.Agent | https.Agent): void;
|
|
49
|
-
getAgent(): http.Agent | https.Agent | undefined;
|
|
50
|
-
}
|
|
51
|
-
export interface ResponseBody {
|
|
52
|
-
text(): Promise<string>;
|
|
53
|
-
binary(): Promise<Buffer>;
|
|
54
|
-
}
|
|
55
|
-
export declare class SelfDecodingBody implements ResponseBody {
|
|
56
|
-
private dataSource;
|
|
57
|
-
constructor(dataSource: Promise<Buffer>);
|
|
58
|
-
binary(): Promise<Buffer>;
|
|
59
|
-
text(): Promise<string>;
|
|
60
|
-
}
|
|
61
|
-
export declare class ResponseContext {
|
|
62
|
-
httpStatusCode: number;
|
|
63
|
-
headers: {
|
|
64
|
-
[key: string]: string;
|
|
65
|
-
};
|
|
66
|
-
body: ResponseBody;
|
|
67
|
-
constructor(httpStatusCode: number, headers: {
|
|
68
|
-
[key: string]: string;
|
|
69
|
-
}, body: ResponseBody);
|
|
70
|
-
getParsedHeader(headerName: string): {
|
|
71
|
-
[parameter: string]: string;
|
|
72
|
-
};
|
|
73
|
-
getBodyAsFile(): Promise<HttpFile>;
|
|
74
|
-
getBodyAsAny(): Promise<string | Buffer | undefined>;
|
|
75
|
-
}
|
|
76
|
-
export interface HttpLibrary {
|
|
77
|
-
send(request: RequestContext): Observable<ResponseContext>;
|
|
78
|
-
}
|
|
79
|
-
export interface PromiseHttpLibrary {
|
|
80
|
-
send(request: RequestContext): Promise<ResponseContext>;
|
|
81
|
-
}
|
|
82
|
-
export declare function wrapHttpLibrary(promiseHttpLibrary: PromiseHttpLibrary): HttpLibrary;
|
package/dist/http/http.js
DELETED
|
@@ -1,229 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
18
|
-
if (k2 === undefined) k2 = k;
|
|
19
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
20
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
21
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
22
|
-
}
|
|
23
|
-
Object.defineProperty(o, k2, desc);
|
|
24
|
-
}) : (function(o, m, k, k2) {
|
|
25
|
-
if (k2 === undefined) k2 = k;
|
|
26
|
-
o[k2] = m[k];
|
|
27
|
-
}));
|
|
28
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
29
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
30
|
-
};
|
|
31
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
32
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
33
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
34
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
35
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
36
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
37
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
38
|
-
});
|
|
39
|
-
};
|
|
40
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
41
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
42
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
43
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
44
|
-
function step(op) {
|
|
45
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
46
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
47
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
48
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
49
|
-
switch (op[0]) {
|
|
50
|
-
case 0: case 1: t = op; break;
|
|
51
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
52
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
53
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
54
|
-
default:
|
|
55
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
56
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
57
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
58
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
59
|
-
if (t[2]) _.ops.pop();
|
|
60
|
-
_.trys.pop(); continue;
|
|
61
|
-
}
|
|
62
|
-
op = body.call(thisArg, _);
|
|
63
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
64
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
68
|
-
exports.wrapHttpLibrary = exports.ResponseContext = exports.SelfDecodingBody = exports.RequestContext = exports.HttpException = exports.HttpMethod = void 0;
|
|
69
|
-
var url_1 = require("url");
|
|
70
|
-
var rxjsStub_1 = require("../rxjsStub");
|
|
71
|
-
__exportStar(require("./isomorphic-fetch"), exports);
|
|
72
|
-
var HttpMethod;
|
|
73
|
-
(function (HttpMethod) {
|
|
74
|
-
HttpMethod["GET"] = "GET";
|
|
75
|
-
HttpMethod["HEAD"] = "HEAD";
|
|
76
|
-
HttpMethod["POST"] = "POST";
|
|
77
|
-
HttpMethod["PUT"] = "PUT";
|
|
78
|
-
HttpMethod["DELETE"] = "DELETE";
|
|
79
|
-
HttpMethod["CONNECT"] = "CONNECT";
|
|
80
|
-
HttpMethod["OPTIONS"] = "OPTIONS";
|
|
81
|
-
HttpMethod["TRACE"] = "TRACE";
|
|
82
|
-
HttpMethod["PATCH"] = "PATCH";
|
|
83
|
-
})(HttpMethod = exports.HttpMethod || (exports.HttpMethod = {}));
|
|
84
|
-
var HttpException = (function (_super) {
|
|
85
|
-
__extends(HttpException, _super);
|
|
86
|
-
function HttpException(msg) {
|
|
87
|
-
return _super.call(this, msg) || this;
|
|
88
|
-
}
|
|
89
|
-
return HttpException;
|
|
90
|
-
}(Error));
|
|
91
|
-
exports.HttpException = HttpException;
|
|
92
|
-
var RequestContext = (function () {
|
|
93
|
-
function RequestContext(url, httpMethod) {
|
|
94
|
-
this.httpMethod = httpMethod;
|
|
95
|
-
this.headers = {};
|
|
96
|
-
this.body = undefined;
|
|
97
|
-
this.agent = undefined;
|
|
98
|
-
this.url = new url_1.URL(url);
|
|
99
|
-
}
|
|
100
|
-
RequestContext.prototype.getUrl = function () {
|
|
101
|
-
return this.url.toString().endsWith("/") ?
|
|
102
|
-
this.url.toString().slice(0, -1)
|
|
103
|
-
: this.url.toString();
|
|
104
|
-
};
|
|
105
|
-
RequestContext.prototype.setUrl = function (url) {
|
|
106
|
-
this.url = new url_1.URL(url);
|
|
107
|
-
};
|
|
108
|
-
RequestContext.prototype.setBody = function (body) {
|
|
109
|
-
this.body = body;
|
|
110
|
-
};
|
|
111
|
-
RequestContext.prototype.getHttpMethod = function () {
|
|
112
|
-
return this.httpMethod;
|
|
113
|
-
};
|
|
114
|
-
RequestContext.prototype.getHeaders = function () {
|
|
115
|
-
return this.headers;
|
|
116
|
-
};
|
|
117
|
-
RequestContext.prototype.getBody = function () {
|
|
118
|
-
return this.body;
|
|
119
|
-
};
|
|
120
|
-
RequestContext.prototype.setQueryParam = function (name, value) {
|
|
121
|
-
this.url.searchParams.set(name, value);
|
|
122
|
-
};
|
|
123
|
-
RequestContext.prototype.addCookie = function (name, value) {
|
|
124
|
-
if (!this.headers["Cookie"]) {
|
|
125
|
-
this.headers["Cookie"] = "";
|
|
126
|
-
}
|
|
127
|
-
this.headers["Cookie"] += name + "=" + value + "; ";
|
|
128
|
-
};
|
|
129
|
-
RequestContext.prototype.setHeaderParam = function (key, value) {
|
|
130
|
-
this.headers[key] = value;
|
|
131
|
-
};
|
|
132
|
-
RequestContext.prototype.setAgent = function (agent) {
|
|
133
|
-
this.agent = agent;
|
|
134
|
-
};
|
|
135
|
-
RequestContext.prototype.getAgent = function () {
|
|
136
|
-
return this.agent;
|
|
137
|
-
};
|
|
138
|
-
return RequestContext;
|
|
139
|
-
}());
|
|
140
|
-
exports.RequestContext = RequestContext;
|
|
141
|
-
var SelfDecodingBody = (function () {
|
|
142
|
-
function SelfDecodingBody(dataSource) {
|
|
143
|
-
this.dataSource = dataSource;
|
|
144
|
-
}
|
|
145
|
-
SelfDecodingBody.prototype.binary = function () {
|
|
146
|
-
return this.dataSource;
|
|
147
|
-
};
|
|
148
|
-
SelfDecodingBody.prototype.text = function () {
|
|
149
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
150
|
-
var data;
|
|
151
|
-
return __generator(this, function (_a) {
|
|
152
|
-
switch (_a.label) {
|
|
153
|
-
case 0: return [4, this.dataSource];
|
|
154
|
-
case 1:
|
|
155
|
-
data = _a.sent();
|
|
156
|
-
return [2, data.toString()];
|
|
157
|
-
}
|
|
158
|
-
});
|
|
159
|
-
});
|
|
160
|
-
};
|
|
161
|
-
return SelfDecodingBody;
|
|
162
|
-
}());
|
|
163
|
-
exports.SelfDecodingBody = SelfDecodingBody;
|
|
164
|
-
var ResponseContext = (function () {
|
|
165
|
-
function ResponseContext(httpStatusCode, headers, body) {
|
|
166
|
-
this.httpStatusCode = httpStatusCode;
|
|
167
|
-
this.headers = headers;
|
|
168
|
-
this.body = body;
|
|
169
|
-
}
|
|
170
|
-
ResponseContext.prototype.getParsedHeader = function (headerName) {
|
|
171
|
-
var result = {};
|
|
172
|
-
if (!this.headers[headerName]) {
|
|
173
|
-
return result;
|
|
174
|
-
}
|
|
175
|
-
var parameters = this.headers[headerName].split(";");
|
|
176
|
-
for (var _i = 0, parameters_1 = parameters; _i < parameters_1.length; _i++) {
|
|
177
|
-
var parameter = parameters_1[_i];
|
|
178
|
-
var _a = parameter.split("=", 2), key = _a[0], value = _a[1];
|
|
179
|
-
key = key.toLowerCase().trim();
|
|
180
|
-
if (value === undefined) {
|
|
181
|
-
result[""] = key;
|
|
182
|
-
}
|
|
183
|
-
else {
|
|
184
|
-
value = value.trim();
|
|
185
|
-
if (value.startsWith('"') && value.endsWith('"')) {
|
|
186
|
-
value = value.substring(1, value.length - 1);
|
|
187
|
-
}
|
|
188
|
-
result[key] = value;
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
return result;
|
|
192
|
-
};
|
|
193
|
-
ResponseContext.prototype.getBodyAsFile = function () {
|
|
194
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
195
|
-
var data, fileName;
|
|
196
|
-
return __generator(this, function (_a) {
|
|
197
|
-
switch (_a.label) {
|
|
198
|
-
case 0: return [4, this.body.binary()];
|
|
199
|
-
case 1:
|
|
200
|
-
data = _a.sent();
|
|
201
|
-
fileName = this.getParsedHeader("content-disposition")["filename"] || "";
|
|
202
|
-
return [2, { data: data, name: fileName }];
|
|
203
|
-
}
|
|
204
|
-
});
|
|
205
|
-
});
|
|
206
|
-
};
|
|
207
|
-
ResponseContext.prototype.getBodyAsAny = function () {
|
|
208
|
-
try {
|
|
209
|
-
return this.body.text();
|
|
210
|
-
}
|
|
211
|
-
catch (_a) { }
|
|
212
|
-
try {
|
|
213
|
-
return this.body.binary();
|
|
214
|
-
}
|
|
215
|
-
catch (_b) { }
|
|
216
|
-
return Promise.resolve(undefined);
|
|
217
|
-
};
|
|
218
|
-
return ResponseContext;
|
|
219
|
-
}());
|
|
220
|
-
exports.ResponseContext = ResponseContext;
|
|
221
|
-
function wrapHttpLibrary(promiseHttpLibrary) {
|
|
222
|
-
return {
|
|
223
|
-
send: function (request) {
|
|
224
|
-
return (0, rxjsStub_1.from)(promiseHttpLibrary.send(request));
|
|
225
|
-
}
|
|
226
|
-
};
|
|
227
|
-
}
|
|
228
|
-
exports.wrapHttpLibrary = wrapHttpLibrary;
|
|
229
|
-
//# sourceMappingURL=http.js.map
|
package/dist/http/http.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"http.js","sourceRoot":"","sources":["../../http/http.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.IsomorphicFetchHttpLibrary = void 0;
|
|
4
|
-
var http_1 = require("./http");
|
|
5
|
-
var rxjsStub_1 = require("../rxjsStub");
|
|
6
|
-
var node_fetch_1 = require("node-fetch");
|
|
7
|
-
var IsomorphicFetchHttpLibrary = (function () {
|
|
8
|
-
function IsomorphicFetchHttpLibrary() {
|
|
9
|
-
}
|
|
10
|
-
IsomorphicFetchHttpLibrary.prototype.send = function (request) {
|
|
11
|
-
var method = request.getHttpMethod().toString();
|
|
12
|
-
var body = request.getBody();
|
|
13
|
-
var resultPromise = (0, node_fetch_1.default)(request.getUrl(), {
|
|
14
|
-
method: method,
|
|
15
|
-
body: body,
|
|
16
|
-
headers: request.getHeaders(),
|
|
17
|
-
agent: request.getAgent(),
|
|
18
|
-
}).then(function (resp) {
|
|
19
|
-
var headers = {};
|
|
20
|
-
resp.headers.forEach(function (value, name) {
|
|
21
|
-
headers[name] = value;
|
|
22
|
-
});
|
|
23
|
-
var body = {
|
|
24
|
-
text: function () { return resp.text(); },
|
|
25
|
-
binary: function () { return resp.buffer(); }
|
|
26
|
-
};
|
|
27
|
-
return new http_1.ResponseContext(resp.status, headers, body);
|
|
28
|
-
});
|
|
29
|
-
return (0, rxjsStub_1.from)(resultPromise);
|
|
30
|
-
};
|
|
31
|
-
return IsomorphicFetchHttpLibrary;
|
|
32
|
-
}());
|
|
33
|
-
exports.IsomorphicFetchHttpLibrary = IsomorphicFetchHttpLibrary;
|
|
34
|
-
//# sourceMappingURL=isomorphic-fetch.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"isomorphic-fetch.js","sourceRoot":"","sources":["../../http/isomorphic-fetch.ts"],"names":[],"mappings":";;;AAAA,+BAAoE;AACpE,wCAA+C;AAC/C,yCAA+B;AAE/B;IAAA;IA2BA,CAAC;IAzBU,yCAAI,GAAX,UAAY,OAAuB;QAC/B,IAAI,MAAM,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC,QAAQ,EAAE,CAAC;QAChD,IAAI,IAAI,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;QAE7B,IAAM,aAAa,GAAG,IAAA,oBAAK,EAAC,OAAO,CAAC,MAAM,EAAE,EAAE;YAC1C,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,IAAW;YACjB,OAAO,EAAE,OAAO,CAAC,UAAU,EAAE;YAC7B,KAAK,EAAE,OAAO,CAAC,QAAQ,EAAE;SAC5B,CAAC,CAAC,IAAI,CAAC,UAAC,IAAS;YACd,IAAM,OAAO,GAA+B,EAAE,CAAC;YAC/C,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,UAAC,KAAa,EAAE,IAAY;gBAC/C,OAAO,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC;YACxB,CAAC,CAAC,CAAC;YAEH,IAAM,IAAI,GAAG;gBACX,IAAI,EAAE,cAAM,OAAA,IAAI,CAAC,IAAI,EAAE,EAAX,CAAW;gBACvB,MAAM,EAAE,cAAM,OAAA,IAAI,CAAC,MAAM,EAAE,EAAb,CAAa;aAC5B,CAAC;YACF,OAAO,IAAI,sBAAe,CAAC,IAAI,CAAC,MAAM,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC;QAC3D,CAAC,CAAC,CAAC;QAEH,OAAO,IAAA,eAAI,EAA2B,aAAa,CAAC,CAAC;IAEzD,CAAC;IACL,iCAAC;AAAD,CAAC,AA3BD,IA2BC;AA3BY,gEAA0B"}
|
package/dist/index.d.ts
DELETED
|
@@ -1,10 +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
|
-
export { PromiseMiddleware as Middleware } from './middleware';
|
|
10
|
-
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';
|
package/dist/index.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.VariableApi = exports.TaskExecutionApi = exports.TaskApi = exports.JobExecutionApi = exports.JobApi = exports.ItemApi = exports.DefaultApi = exports.DataFactoryFileApi = exports.RequiredError = exports.createConfiguration = void 0;
|
|
18
|
-
__exportStar(require("./http/http"), exports);
|
|
19
|
-
__exportStar(require("./auth/auth"), exports);
|
|
20
|
-
__exportStar(require("./models/all"), exports);
|
|
21
|
-
var configuration_1 = require("./configuration");
|
|
22
|
-
Object.defineProperty(exports, "createConfiguration", { enumerable: true, get: function () { return configuration_1.createConfiguration; } });
|
|
23
|
-
__exportStar(require("./apis/exception"), exports);
|
|
24
|
-
__exportStar(require("./servers"), exports);
|
|
25
|
-
var baseapi_1 = require("./apis/baseapi");
|
|
26
|
-
Object.defineProperty(exports, "RequiredError", { enumerable: true, get: function () { return baseapi_1.RequiredError; } });
|
|
27
|
-
var PromiseAPI_1 = require("./types/PromiseAPI");
|
|
28
|
-
Object.defineProperty(exports, "DataFactoryFileApi", { enumerable: true, get: function () { return PromiseAPI_1.PromiseDataFactoryFileApi; } });
|
|
29
|
-
Object.defineProperty(exports, "DefaultApi", { enumerable: true, get: function () { return PromiseAPI_1.PromiseDefaultApi; } });
|
|
30
|
-
Object.defineProperty(exports, "ItemApi", { enumerable: true, get: function () { return PromiseAPI_1.PromiseItemApi; } });
|
|
31
|
-
Object.defineProperty(exports, "JobApi", { enumerable: true, get: function () { return PromiseAPI_1.PromiseJobApi; } });
|
|
32
|
-
Object.defineProperty(exports, "JobExecutionApi", { enumerable: true, get: function () { return PromiseAPI_1.PromiseJobExecutionApi; } });
|
|
33
|
-
Object.defineProperty(exports, "TaskApi", { enumerable: true, get: function () { return PromiseAPI_1.PromiseTaskApi; } });
|
|
34
|
-
Object.defineProperty(exports, "TaskExecutionApi", { enumerable: true, get: function () { return PromiseAPI_1.PromiseTaskExecutionApi; } });
|
|
35
|
-
Object.defineProperty(exports, "VariableApi", { enumerable: true, get: function () { return PromiseAPI_1.PromiseVariableApi; } });
|
|
36
|
-
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,8CAA4B;AAC5B,+CAA6B;AAC7B,iDAAqD;AAA5C,oHAAA,mBAAmB,OAAA;AAE5B,mDAAiC;AACjC,4CAA0B;AAC1B,0CAA+C;AAAtC,wGAAA,aAAa,OAAA;AAGtB,iDAAuU;AAA9T,gHAAA,yBAAyB,OAAsB;AAAG,wGAAA,iBAAiB,OAAc;AAAG,qGAAA,cAAc,OAAW;AAAG,oGAAA,aAAa,OAAU;AAAG,6GAAA,sBAAsB,OAAmB;AAAG,qGAAA,cAAc,OAAW;AAAG,8GAAA,uBAAuB,OAAoB;AAAG,yGAAA,kBAAkB,OAAe"}
|
package/dist/middleware.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { RequestContext, ResponseContext } from './http/http';
|
|
2
|
-
import { Observable } from './rxjsStub';
|
|
3
|
-
export interface Middleware {
|
|
4
|
-
pre(context: RequestContext): Observable<RequestContext>;
|
|
5
|
-
post(context: ResponseContext): Observable<ResponseContext>;
|
|
6
|
-
}
|
|
7
|
-
export declare class PromiseMiddlewareWrapper implements Middleware {
|
|
8
|
-
private middleware;
|
|
9
|
-
constructor(middleware: PromiseMiddleware);
|
|
10
|
-
pre(context: RequestContext): Observable<RequestContext>;
|
|
11
|
-
post(context: ResponseContext): Observable<ResponseContext>;
|
|
12
|
-
}
|
|
13
|
-
export interface PromiseMiddleware {
|
|
14
|
-
pre(context: RequestContext): Promise<RequestContext>;
|
|
15
|
-
post(context: ResponseContext): Promise<ResponseContext>;
|
|
16
|
-
}
|
package/dist/middleware.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PromiseMiddlewareWrapper = void 0;
|
|
4
|
-
var rxjsStub_1 = require("./rxjsStub");
|
|
5
|
-
var PromiseMiddlewareWrapper = (function () {
|
|
6
|
-
function PromiseMiddlewareWrapper(middleware) {
|
|
7
|
-
this.middleware = middleware;
|
|
8
|
-
}
|
|
9
|
-
PromiseMiddlewareWrapper.prototype.pre = function (context) {
|
|
10
|
-
return (0, rxjsStub_1.from)(this.middleware.pre(context));
|
|
11
|
-
};
|
|
12
|
-
PromiseMiddlewareWrapper.prototype.post = function (context) {
|
|
13
|
-
return (0, rxjsStub_1.from)(this.middleware.post(context));
|
|
14
|
-
};
|
|
15
|
-
return PromiseMiddlewareWrapper;
|
|
16
|
-
}());
|
|
17
|
-
exports.PromiseMiddlewareWrapper = PromiseMiddlewareWrapper;
|
|
18
|
-
//# sourceMappingURL=middleware.js.map
|
package/dist/middleware.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"middleware.js","sourceRoot":"","sources":["../middleware.ts"],"names":[],"mappings":";;;AACA,uCAA8C;AA0B9C;IAEI,kCAA2B,UAA6B;QAA7B,eAAU,GAAV,UAAU,CAAmB;IAExD,CAAC;IAED,sCAAG,GAAH,UAAI,OAAuB;QACvB,OAAO,IAAA,eAAI,EAAC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC;IAC9C,CAAC;IAED,uCAAI,GAAJ,UAAK,OAAwB;QACzB,OAAO,IAAA,eAAI,EAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;IAC/C,CAAC;IAEL,+BAAC;AAAD,CAAC,AAdD,IAcC;AAdY,4DAAwB"}
|