@targetprocess/work-sharing-p2p-client 1.160.2-P2P-test.21
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/README.md +2 -0
- package/bin/client.d.ts +166 -0
- package/bin/client.js +114 -0
- package/bin/client.js.map +1 -0
- package/package.json +27 -0
package/README.md
ADDED
package/bin/client.d.ts
ADDED
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
export interface IClient {
|
|
2
|
+
/**
|
|
3
|
+
* Get all profiles for P2P integration
|
|
4
|
+
* @return List of P2P profiles matching the public specification.
|
|
5
|
+
*/
|
|
6
|
+
getProfiles(host: string, x_alternative_host: string): Promise<P2pProfile[]>;
|
|
7
|
+
}
|
|
8
|
+
export declare class Client implements IClient {
|
|
9
|
+
private http;
|
|
10
|
+
private baseUrl;
|
|
11
|
+
protected jsonParseReviver: ((key: string, value: any) => any) | undefined;
|
|
12
|
+
constructor(baseUrl?: string, http?: {
|
|
13
|
+
fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
14
|
+
});
|
|
15
|
+
/**
|
|
16
|
+
* Get all profiles for P2P integration
|
|
17
|
+
* @return List of P2P profiles matching the public specification.
|
|
18
|
+
*/
|
|
19
|
+
getProfiles(host: string, x_alternative_host: string): Promise<P2pProfile[]>;
|
|
20
|
+
protected processGetProfiles(response: Response): Promise<P2pProfile[]>;
|
|
21
|
+
}
|
|
22
|
+
export interface P2pToolRef {
|
|
23
|
+
type: string;
|
|
24
|
+
url?: string;
|
|
25
|
+
}
|
|
26
|
+
export declare enum P2pMappingDirectionDto {
|
|
27
|
+
SourceToTarget = "SourceToTarget",
|
|
28
|
+
TargetToSource = "TargetToSource",
|
|
29
|
+
Bidirectional = "Bidirectional",
|
|
30
|
+
}
|
|
31
|
+
export interface P2pFieldDefDto {
|
|
32
|
+
id: string;
|
|
33
|
+
path: string;
|
|
34
|
+
name: string;
|
|
35
|
+
}
|
|
36
|
+
export interface P2pValueFieldMappingDto {
|
|
37
|
+
id: string;
|
|
38
|
+
type: string;
|
|
39
|
+
direction: P2pMappingDirectionDto;
|
|
40
|
+
source: P2pFieldDefDto;
|
|
41
|
+
target: P2pFieldDefDto;
|
|
42
|
+
}
|
|
43
|
+
export interface P2pCollectionFieldMappingDto {
|
|
44
|
+
id: string;
|
|
45
|
+
type: string;
|
|
46
|
+
direction: P2pMappingDirectionDto;
|
|
47
|
+
source: P2pFieldDefDto;
|
|
48
|
+
target: P2pFieldDefDto;
|
|
49
|
+
}
|
|
50
|
+
export interface P2pReferenceToStringFieldMappingDto {
|
|
51
|
+
id: string;
|
|
52
|
+
type: string;
|
|
53
|
+
direction: P2pMappingDirectionDto;
|
|
54
|
+
source: P2pFieldDefDto;
|
|
55
|
+
target: P2pFieldDefDto;
|
|
56
|
+
}
|
|
57
|
+
export interface P2pTargetprocessDescriptionMappingDto {
|
|
58
|
+
id: string;
|
|
59
|
+
type: string;
|
|
60
|
+
direction: P2pMappingDirectionDto;
|
|
61
|
+
source: P2pFieldDefDto;
|
|
62
|
+
target: P2pFieldDefDto;
|
|
63
|
+
}
|
|
64
|
+
export interface P2pCollectionToStringFieldMappingDto {
|
|
65
|
+
id: string;
|
|
66
|
+
type: string;
|
|
67
|
+
direction: P2pMappingDirectionDto;
|
|
68
|
+
source: P2pFieldDefDto;
|
|
69
|
+
target: P2pFieldDefDto;
|
|
70
|
+
}
|
|
71
|
+
export interface P2pRelationFieldMappingDto {
|
|
72
|
+
id: string;
|
|
73
|
+
type: string;
|
|
74
|
+
direction: P2pMappingDirectionDto;
|
|
75
|
+
source: P2pFieldDefDto;
|
|
76
|
+
target: P2pFieldDefDto;
|
|
77
|
+
}
|
|
78
|
+
export interface P2pEntityStateFieldMappingDto {
|
|
79
|
+
id: string;
|
|
80
|
+
type: string;
|
|
81
|
+
direction: P2pMappingDirectionDto;
|
|
82
|
+
source: P2pFieldDefDto;
|
|
83
|
+
target: P2pFieldDefDto;
|
|
84
|
+
}
|
|
85
|
+
export interface P2pJavaScriptTransform {
|
|
86
|
+
script: string;
|
|
87
|
+
}
|
|
88
|
+
export interface P2pJavaScriptFieldMappingDto {
|
|
89
|
+
id: string;
|
|
90
|
+
type: string;
|
|
91
|
+
direction: P2pMappingDirectionDto;
|
|
92
|
+
source: P2pFieldDefDto;
|
|
93
|
+
target: P2pFieldDefDto;
|
|
94
|
+
transform?: P2pJavaScriptTransform;
|
|
95
|
+
}
|
|
96
|
+
export interface P2pUserFieldMappingDto {
|
|
97
|
+
id: string;
|
|
98
|
+
type: string;
|
|
99
|
+
direction: P2pMappingDirectionDto;
|
|
100
|
+
source: P2pFieldDefDto;
|
|
101
|
+
target: P2pFieldDefDto;
|
|
102
|
+
}
|
|
103
|
+
export interface P2pRoleAssignmentUserFieldMappingDto {
|
|
104
|
+
id: string;
|
|
105
|
+
type: string;
|
|
106
|
+
direction: P2pMappingDirectionDto;
|
|
107
|
+
source: P2pFieldDefDto;
|
|
108
|
+
target: P2pFieldDefDto;
|
|
109
|
+
}
|
|
110
|
+
export interface P2pRoleEffortFieldMappingDto {
|
|
111
|
+
id: string;
|
|
112
|
+
type: string;
|
|
113
|
+
direction: P2pMappingDirectionDto;
|
|
114
|
+
source: P2pFieldDefDto;
|
|
115
|
+
target: P2pFieldDefDto;
|
|
116
|
+
}
|
|
117
|
+
export interface P2pConstantFieldMappingDto {
|
|
118
|
+
id: string;
|
|
119
|
+
type: string;
|
|
120
|
+
direction: P2pMappingDirectionDto;
|
|
121
|
+
source: P2pFieldDefDto;
|
|
122
|
+
target: P2pFieldDefDto;
|
|
123
|
+
}
|
|
124
|
+
export interface P2pRoleAssignmentsFieldMappingDto {
|
|
125
|
+
id: string;
|
|
126
|
+
type: string;
|
|
127
|
+
direction: P2pMappingDirectionDto;
|
|
128
|
+
source: P2pFieldDefDto;
|
|
129
|
+
target: P2pFieldDefDto;
|
|
130
|
+
}
|
|
131
|
+
export interface P2pRoleEffortToRoleEffortFieldMappingDto {
|
|
132
|
+
id: string;
|
|
133
|
+
type: string;
|
|
134
|
+
direction: P2pMappingDirectionDto;
|
|
135
|
+
source: P2pFieldDefDto;
|
|
136
|
+
target: P2pFieldDefDto;
|
|
137
|
+
}
|
|
138
|
+
export interface P2pTypeMapping {
|
|
139
|
+
sourceType: string;
|
|
140
|
+
targetType: string;
|
|
141
|
+
fieldMappings: P2pValueFieldMappingDto[];
|
|
142
|
+
}
|
|
143
|
+
export interface P2pProfileMapping {
|
|
144
|
+
typeMappings: P2pTypeMapping[];
|
|
145
|
+
}
|
|
146
|
+
export interface P2pProfile {
|
|
147
|
+
id: string;
|
|
148
|
+
name: string;
|
|
149
|
+
status: string;
|
|
150
|
+
targetTool: P2pToolRef;
|
|
151
|
+
mappings: P2pProfileMapping[];
|
|
152
|
+
}
|
|
153
|
+
export declare class ApiException extends Error {
|
|
154
|
+
message: string;
|
|
155
|
+
status: number;
|
|
156
|
+
response: string;
|
|
157
|
+
headers: {
|
|
158
|
+
[key: string]: any;
|
|
159
|
+
};
|
|
160
|
+
result: any;
|
|
161
|
+
constructor(message: string, status: number, response: string, headers: {
|
|
162
|
+
[key: string]: any;
|
|
163
|
+
}, result: any);
|
|
164
|
+
protected isApiException: boolean;
|
|
165
|
+
static isApiException(obj: any): obj is ApiException;
|
|
166
|
+
}
|
package/bin/client.js
ADDED
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
//----------------------
|
|
3
|
+
// <auto-generated>
|
|
4
|
+
// Generated using the NSwag toolchain v13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v13.0.0.0)) (http://NSwag.org)
|
|
5
|
+
// </auto-generated>
|
|
6
|
+
//----------------------
|
|
7
|
+
var __extends = (this && this.__extends) || (function () {
|
|
8
|
+
var extendStatics = Object.setPrototypeOf ||
|
|
9
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
10
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
11
|
+
return function (d, b) {
|
|
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
|
+
var Client = /** @class */ (function () {
|
|
19
|
+
function Client(baseUrl, http) {
|
|
20
|
+
this.jsonParseReviver = undefined;
|
|
21
|
+
this.http = http ? http : window;
|
|
22
|
+
this.baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : "";
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Get all profiles for P2P integration
|
|
26
|
+
* @return List of P2P profiles matching the public specification.
|
|
27
|
+
*/
|
|
28
|
+
Client.prototype.getProfiles = function (host, x_alternative_host) {
|
|
29
|
+
var _this = this;
|
|
30
|
+
var url_ = this.baseUrl + "/p2p/profiles";
|
|
31
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
32
|
+
var options_ = {
|
|
33
|
+
method: "GET",
|
|
34
|
+
headers: {
|
|
35
|
+
"host": host !== undefined && host !== null ? "" + host : "",
|
|
36
|
+
"x-alternative-host": x_alternative_host !== undefined && x_alternative_host !== null ? "" + x_alternative_host : "",
|
|
37
|
+
"Accept": "application/json"
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
return this.http.fetch(url_, options_).then(function (_response) {
|
|
41
|
+
return _this.processGetProfiles(_response);
|
|
42
|
+
});
|
|
43
|
+
};
|
|
44
|
+
Client.prototype.processGetProfiles = function (response) {
|
|
45
|
+
var _this = this;
|
|
46
|
+
var status = response.status;
|
|
47
|
+
var _headers = {};
|
|
48
|
+
if (response.headers && response.headers.forEach) {
|
|
49
|
+
response.headers.forEach(function (v, k) { return _headers[k] = v; });
|
|
50
|
+
}
|
|
51
|
+
;
|
|
52
|
+
if (status === 200) {
|
|
53
|
+
return response.text().then(function (_responseText) {
|
|
54
|
+
var result200 = null;
|
|
55
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
56
|
+
return result200;
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
else if (status === 401) {
|
|
60
|
+
return response.text().then(function (_responseText) {
|
|
61
|
+
return throwException("Unauthorized - Invalid or missing authentication token", status, _responseText, _headers);
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
else if (status === 403) {
|
|
65
|
+
return response.text().then(function (_responseText) {
|
|
66
|
+
return throwException("Forbidden - Insufficient permissions (requires work-sharing:profiles:read scope)", status, _responseText, _headers);
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
else if (status === 500) {
|
|
70
|
+
return response.text().then(function (_responseText) {
|
|
71
|
+
return throwException("Internal server error", status, _responseText, _headers);
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
else if (status !== 200 && status !== 204) {
|
|
75
|
+
return response.text().then(function (_responseText) {
|
|
76
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
return Promise.resolve(null);
|
|
80
|
+
};
|
|
81
|
+
return Client;
|
|
82
|
+
}());
|
|
83
|
+
exports.Client = Client;
|
|
84
|
+
var P2pMappingDirectionDto;
|
|
85
|
+
(function (P2pMappingDirectionDto) {
|
|
86
|
+
P2pMappingDirectionDto["SourceToTarget"] = "SourceToTarget";
|
|
87
|
+
P2pMappingDirectionDto["TargetToSource"] = "TargetToSource";
|
|
88
|
+
P2pMappingDirectionDto["Bidirectional"] = "Bidirectional";
|
|
89
|
+
})(P2pMappingDirectionDto = exports.P2pMappingDirectionDto || (exports.P2pMappingDirectionDto = {}));
|
|
90
|
+
var ApiException = /** @class */ (function (_super) {
|
|
91
|
+
__extends(ApiException, _super);
|
|
92
|
+
function ApiException(message, status, response, headers, result) {
|
|
93
|
+
var _this = _super.call(this) || this;
|
|
94
|
+
_this.isApiException = true;
|
|
95
|
+
_this.message = message;
|
|
96
|
+
_this.status = status;
|
|
97
|
+
_this.response = response;
|
|
98
|
+
_this.headers = headers;
|
|
99
|
+
_this.result = result;
|
|
100
|
+
return _this;
|
|
101
|
+
}
|
|
102
|
+
ApiException.isApiException = function (obj) {
|
|
103
|
+
return obj.isApiException === true;
|
|
104
|
+
};
|
|
105
|
+
return ApiException;
|
|
106
|
+
}(Error));
|
|
107
|
+
exports.ApiException = ApiException;
|
|
108
|
+
function throwException(message, status, response, headers, result) {
|
|
109
|
+
if (result !== null && result !== undefined)
|
|
110
|
+
throw result;
|
|
111
|
+
else
|
|
112
|
+
throw new ApiException(message, status, response, headers, null);
|
|
113
|
+
}
|
|
114
|
+
//# sourceMappingURL=client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client/src/client.ts"],"names":[],"mappings":";AAAA,wBAAwB;AACxB,mBAAmB;AACnB,8HAA8H;AAC9H,oBAAoB;AACpB,wBAAwB;;;;;;;;;;;;AAexB;IAKI,gBAAY,OAAgB,EAAE,IAAyE;QAF7F,qBAAgB,GAAmD,SAAS,CAAC;QAGnF,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAa,CAAC;QACxC,IAAI,CAAC,OAAO,GAAG,OAAO,KAAK,SAAS,IAAI,OAAO,KAAK,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC;IAC5E,CAAC;IAED;;;OAGG;IACH,4BAAW,GAAX,UAAY,IAAY,EAAE,kBAA0B;QAApD,iBAgBC;QAfG,IAAI,IAAI,GAAG,IAAI,CAAC,OAAO,GAAG,eAAe,CAAC;QAC1C,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;QAEjC,IAAI,QAAQ,GAAgB;YACxB,MAAM,EAAE,KAAK;YACb,OAAO,EAAE;gBACL,MAAM,EAAE,IAAI,KA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ACL,aAAC;AAAD,CAAC,AA5DD,IA4DC;AA5DY,wBAAM;AAmEnB,IAAY,sBAIX;AAJD,WAAY,sBAAsB;IAC9B,2DAAiC,CAAA;IACjC,2DAAiC,CAAA;IACjC,yDAA+B,CAAA;AACnC,CAAC,EAJW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAIjC;AA+ID;IAAkC,gCAAK;IAOnC,sBAAY,OAAe,EAAE,MAAc,EAAE,QAAgB,EAAE,OAAgC,EAAE,MAAW;QAA5G,YACI,iBAAO,SAOV;QAES,oBAAc,GAAG,IAAI,CAAC;QAP5B,KAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,KAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,KAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,KAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,KAAI,CAAC,MAAM,GAAG,MAAM,CAAC;;IACzB,CAAC;IAIM,2BAAc,GAArB,UAAsB,GAAQ;QAC1B,MAAM,CAAC,GAAG,CAAC,cAAc,KAAK,IAAI,CAAC;IACvC,CAAC;IACL,mBAAC;AAAD,CAAC,AAtBD,CAAkC,KAAK,GAsBtC;AAtBY,oCAAY;AAwBzB,wBAAwB,OAAe,EAAE,MAAc,EAAE,QAAgB,EAAE,OAAgC,EAAE,MAAY;IACrH,EAAE,CAAC,CAAC,MAAM,KAAK,IAAI,IAAI,MAAM,KAAK,SAAS,CAAC;QACxC,MAAM,MAAM,CAAC;IACjB,IAAI;QACA,MAAM,IAAI,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC;AACzE,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@targetprocess/work-sharing-p2p-client",
|
|
3
|
+
"version": "1.160.2-P2P-test.21",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "Js client for work-sharing-p2p service.",
|
|
6
|
+
"main": "bin/client.js",
|
|
7
|
+
"typings": "bin/client.d.ts",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"build": "tsc --pretty",
|
|
10
|
+
"client:generate": "npm run client:generate:ts",
|
|
11
|
+
"client:generate:ts": "nswag swagger2tsclient /ClassName:Client /Template:Fetch /PromiseType:Promise /DateTimeType:Date /GenerateClientInterfaces:true /GenerateConstructorInterface:true /GenerateDefaultValues:true /Input:api/swagger.yaml /Output:src/client/src/client.ts /TypeStyle:Interface /TypeScriptVersion:2.5 /WrapDtoExceptions:false /ExtendedClasses: /ExtensionCode:",
|
|
12
|
+
"build:client": "npm run client:generate && npm run build"
|
|
13
|
+
},
|
|
14
|
+
"keywords": [],
|
|
15
|
+
"author": "ci@targetprocess.com",
|
|
16
|
+
"license": "ISC",
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"nswag": "^13.15.10",
|
|
19
|
+
"typescript": "^2.6.1"
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"bin"
|
|
23
|
+
],
|
|
24
|
+
"publishConfig": {
|
|
25
|
+
"access": "public"
|
|
26
|
+
}
|
|
27
|
+
}
|