@hpcc-js/comms 2.102.2 → 2.102.3
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/LICENSE +43 -43
- package/README.md +50 -50
- package/dist/index.es6.js +2 -2
- package/dist/index.es6.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/index.node.js +2 -2
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.min.js +1 -1
- package/dist/index.node.min.js.map +1 -1
- package/lib-es6/__package__.js +2 -2
- package/package.json +4 -4
- package/src/__package__.ts +3 -3
- package/src/__tests__/dfuXRef.ts +22 -22
- package/src/__tests__/https.ts +69 -69
- package/src/__tests__/workunit.ts +35 -35
- package/src/clienttools/eclMeta.ts +506 -506
- package/src/clienttools/eclcc.ts +628 -628
- package/src/connection.ts +295 -295
- package/src/ecl/activity.ts +82 -82
- package/src/ecl/dfuWorkunit.ts +363 -363
- package/src/ecl/graph.ts +196 -196
- package/src/ecl/logicalFile.ts +195 -195
- package/src/ecl/machine.ts +63 -63
- package/src/ecl/query.ts +252 -252
- package/src/ecl/queryGraph.ts +813 -813
- package/src/ecl/resource.ts +39 -39
- package/src/ecl/result.ts +236 -236
- package/src/ecl/scope.ts +192 -192
- package/src/ecl/sourceFile.ts +34 -34
- package/src/ecl/store.ts +154 -154
- package/src/ecl/targetCluster.ts +149 -149
- package/src/ecl/timer.ts +42 -42
- package/src/ecl/topology.ts +131 -131
- package/src/ecl/workunit.ts +1314 -1314
- package/src/ecl/xsdParser.ts +268 -268
- package/src/espConnection.ts +172 -172
- package/src/index-common.ts +41 -41
- package/src/index.node.ts +68 -68
- package/src/index.ts +3 -3
- package/src/pem/trustwave.ts +909 -909
- package/src/services/fileSpray.ts +48 -48
- package/src/services/wsAccess.ts +8 -8
- package/src/services/wsAccount.ts +27 -27
- package/src/services/wsCloud.ts +73 -73
- package/src/services/wsCodesign.ts +94 -94
- package/src/services/wsDFU.ts +34 -34
- package/src/services/wsDFUXRef.ts +308 -308
- package/src/services/wsDali.ts +40 -40
- package/src/services/wsEcl.ts +123 -123
- package/src/services/wsElk.ts +8 -8
- package/src/services/wsLogaccess.ts +263 -263
- package/src/services/wsMachine.ts +89 -89
- package/src/services/wsPackageProcess.ts +8 -8
- package/src/services/wsResources.ts +8 -8
- package/src/services/wsSMC.ts +24 -24
- package/src/services/wsSasha.ts +7 -7
- package/src/services/wsStore.ts +230 -230
- package/src/services/wsTopology.ts +45 -45
- package/src/services/wsWorkunits.ts +160 -160
- package/src/services/wsdl/FileSpray/v1.23/FileSpray.ts +1008 -1008
- package/src/services/wsdl/FileSpray/v1.25/FileSpray.ts +1040 -1040
- package/src/services/wsdl/FileSpray/v1.26/FileSpray.ts +929 -929
- package/src/services/wsdl/WsCloud/v1/WsCloud.ts +38 -38
- package/src/services/wsdl/WsCloud/v1.02/WsCloud.ts +77 -77
- package/src/services/wsdl/WsDFUXRef/v1.02/WsDFUXRef.ts +224 -224
- package/src/services/wsdl/WsDali/v1.04/WsDali.ts +216 -216
- package/src/services/wsdl/WsDfu/v1.62/WsDfu.ts +1455 -1455
- package/src/services/wsdl/WsDfu/v1.63/WsDfu.ts +1465 -1465
- package/src/services/wsdl/WsDfu/v1.65/WsDfu.ts +1244 -1244
- package/src/services/wsdl/WsFileIO/v1.01/WsFileIO.ts +107 -107
- package/src/services/wsdl/WsPackageProcess/v1.04/WsPackageProcess.ts +519 -519
- package/src/services/wsdl/WsResources/v1.01/WsResources.ts +119 -119
- package/src/services/wsdl/WsSMC/v1.24/WsSMC.ts +665 -665
- package/src/services/wsdl/WsSMC/v1.27/WsSMC.ts +670 -670
- package/src/services/wsdl/WsTopology/v1.31/WsTopology.ts +856 -856
- package/src/services/wsdl/WsTopology/v1.32/WsTopology.ts +885 -885
- package/src/services/wsdl/WsWorkunits/v1.88/WsWorkunits.ts +2944 -2944
- package/src/services/wsdl/WsWorkunits/v1.94/WsWorkunits.ts +3072 -3072
- package/src/services/wsdl/WsWorkunits/v1.95/WsWorkunits.ts +3073 -3073
- package/src/services/wsdl/WsWorkunits/v1.97/WsWorkunits.ts +3134 -3134
- package/src/services/wsdl/WsWorkunits/v1.98/WsWorkunits.ts +3182 -3182
- package/src/services/wsdl/WsWorkunits/v1.99/WsWorkunits.ts +3162 -3162
- package/src/services/wsdl/WsWorkunits/v2/WsWorkunits.ts +3153 -3153
- package/src/services/wsdl/WsWorkunits/v2.02/WsWorkunits.ts +3157 -3157
- package/src/services/wsdl/ws_access/v1.16/ws_access.ts +1086 -1086
- package/src/services/wsdl/ws_access/v1.17/ws_access.ts +1023 -1023
- package/src/services/wsdl/ws_account/v1.05/ws_account.ts +111 -111
- package/src/services/wsdl/ws_account/v1.06/ws_account.ts +109 -109
- package/src/services/wsdl/ws_codesign/v1.1/ws_codesign.ts +100 -100
- package/src/services/wsdl/ws_elk/v1/ws_elk.ts +47 -47
- package/src/services/wsdl/ws_logaccess/v1/ws_logaccess.ts +83 -83
- package/src/services/wsdl/ws_logaccess/v1.02/ws_logaccess.ts +161 -161
- package/src/services/wsdl/ws_logaccess/v1.03/ws_logaccess.ts +190 -190
- package/src/services/wsdl/ws_logaccess/v1.04/ws_logaccess.ts +215 -215
- package/src/services/wsdl/ws_logaccess/v1.05/ws_logaccess.ts +219 -219
- package/src/services/wsdl/ws_logaccess/v1.08/ws_logaccess.ts +267 -267
- package/src/services/wsdl/ws_machine/v1.17/ws_machine.ts +567 -567
- package/src/services/wsdl/wsstore/v1.02/wsstore.ts +250 -250
- package/types/__package__.d.ts +2 -2
- package/types-3.4/__package__.d.ts +2 -2
package/src/services/wsStore.ts
CHANGED
|
@@ -1,230 +1,230 @@
|
|
|
1
|
-
import { IConnection, IOptions } from "../connection";
|
|
2
|
-
import { Service } from "../espConnection";
|
|
3
|
-
|
|
4
|
-
/*
|
|
5
|
-
Response structures generated via:
|
|
6
|
-
* http://localhost:8010/wsstore/Fetch?reqjson_
|
|
7
|
-
* http://localhost:8010/wsstore/Fetch?respjson_
|
|
8
|
-
* http://json2ts.com/
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
export namespace WsStore {
|
|
12
|
-
|
|
13
|
-
export interface CreateStoreRequest {
|
|
14
|
-
Name: string;
|
|
15
|
-
Type: string;
|
|
16
|
-
Description: string;
|
|
17
|
-
UserSpecific: boolean;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export interface DeleteRequest {
|
|
21
|
-
StoreName: string;
|
|
22
|
-
Namespace: string;
|
|
23
|
-
Key: string;
|
|
24
|
-
UserSpecific: boolean;
|
|
25
|
-
TargetUser?: string;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export interface DeleteNamespaceRequest {
|
|
29
|
-
StoreName: string;
|
|
30
|
-
Namespace: string;
|
|
31
|
-
UserSpecific: boolean;
|
|
32
|
-
TargetUser: string;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export interface FetchRequest {
|
|
36
|
-
StoreName: string;
|
|
37
|
-
Namespace: string;
|
|
38
|
-
Key: string;
|
|
39
|
-
UserSpecific: boolean;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export interface FetchAllRequest {
|
|
43
|
-
StoreName: string;
|
|
44
|
-
Namespace: string;
|
|
45
|
-
UserSpecific: boolean;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export interface FetchKeyMDRequest {
|
|
49
|
-
StoreName: string;
|
|
50
|
-
Namespace: string;
|
|
51
|
-
Key: string;
|
|
52
|
-
UserSpecific: boolean;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export interface ListKeysRequest {
|
|
56
|
-
StoreName: string;
|
|
57
|
-
Namespace: string;
|
|
58
|
-
UserSpecific: boolean;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export interface ListNamespacesRequest {
|
|
62
|
-
StoreName: string;
|
|
63
|
-
UserSpecific: boolean;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export interface SetRequest {
|
|
67
|
-
StoreName: string;
|
|
68
|
-
Namespace: string;
|
|
69
|
-
Key: string;
|
|
70
|
-
Value: string;
|
|
71
|
-
UserSpecific: boolean;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
export interface Exception {
|
|
75
|
-
Code: string;
|
|
76
|
-
Audience: string;
|
|
77
|
-
Source: string;
|
|
78
|
-
Message: string;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
export interface Exceptions {
|
|
82
|
-
Source: string;
|
|
83
|
-
Exception: Exception[];
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
export interface CreateStoreResponse {
|
|
87
|
-
Exceptions: Exceptions;
|
|
88
|
-
Name: string;
|
|
89
|
-
Type: string;
|
|
90
|
-
Description: string;
|
|
91
|
-
Owner: string;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
export interface DeleteResponse {
|
|
95
|
-
Exceptions: Exceptions;
|
|
96
|
-
Success: boolean;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
export interface DeleteNamespaceResponse {
|
|
100
|
-
Exceptions: Exceptions;
|
|
101
|
-
Success: boolean;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
export interface FetchResponse {
|
|
105
|
-
Exceptions: Exceptions;
|
|
106
|
-
Value: string;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
export interface Pair {
|
|
110
|
-
Key: string;
|
|
111
|
-
Value: string;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
export interface Pairs {
|
|
115
|
-
Pair: Pair[];
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
export interface FetchAllResponse {
|
|
119
|
-
Exceptions: Exceptions;
|
|
120
|
-
Namespace: string;
|
|
121
|
-
Pairs: Pairs;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
export interface Pair2 {
|
|
125
|
-
Key: string;
|
|
126
|
-
Value: string;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
export interface Pairs2 {
|
|
130
|
-
Pair: Pair2[];
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
export interface FetchKeyMDResponse {
|
|
134
|
-
Exceptions: Exceptions;
|
|
135
|
-
StoreName: string;
|
|
136
|
-
Namespace: string;
|
|
137
|
-
Key: string;
|
|
138
|
-
Pairs: Pairs2;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
export interface KeySet {
|
|
142
|
-
Key: string[];
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
export interface ListKeysResponse {
|
|
146
|
-
Exceptions: Exceptions;
|
|
147
|
-
StoreName: string;
|
|
148
|
-
Namespace: string;
|
|
149
|
-
KeySet: KeySet;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
export interface Namespaces {
|
|
153
|
-
Namespace: string[];
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
export interface ListNamespacesResponse {
|
|
157
|
-
Exceptions: Exceptions;
|
|
158
|
-
StoreName: string;
|
|
159
|
-
Namespaces: Namespaces;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
export interface WsstorePingResponse {
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
export interface SetResponse {
|
|
166
|
-
Exceptions: Exceptions;
|
|
167
|
-
Success: boolean;
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
export class StoreService extends Service {
|
|
172
|
-
|
|
173
|
-
constructor(optsConnection: IOptions | IConnection) {
|
|
174
|
-
super(optsConnection, "WsStore", "1");
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
CreateStore(request: WsStore.CreateStoreRequest): Promise<WsStore.CreateStoreResponse> {
|
|
178
|
-
return this._connection.send("Fetch", request);
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
Delete(request: WsStore.DeleteRequest): Promise<WsStore.DeleteResponse> {
|
|
182
|
-
return this._connection.send("Delete", request).catch(e => {
|
|
183
|
-
if (e.isESPExceptions && e.Exception.some(e => e.Code === -1)) {
|
|
184
|
-
// "Delete" item does not exist ---
|
|
185
|
-
return {
|
|
186
|
-
Exceptions: undefined,
|
|
187
|
-
Success: true
|
|
188
|
-
} as WsStore.DeleteResponse;
|
|
189
|
-
}
|
|
190
|
-
throw e;
|
|
191
|
-
});
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
DeleteNamespace(request: WsStore.DeleteNamespaceRequest): Promise<WsStore.DeleteNamespaceResponse> {
|
|
195
|
-
return this._connection.send("DeleteNamespace", request);
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
Fetch(request: WsStore.FetchRequest): Promise<WsStore.FetchResponse> {
|
|
199
|
-
return this._connection.send("Fetch", request).catch(e => {
|
|
200
|
-
if (e.isESPExceptions && e.Exception.some(e => e.Code === -1)) {
|
|
201
|
-
// "Fetch" item does not exist ---
|
|
202
|
-
return {
|
|
203
|
-
Exceptions: undefined,
|
|
204
|
-
Value: undefined
|
|
205
|
-
} as WsStore.FetchResponse;
|
|
206
|
-
}
|
|
207
|
-
throw e;
|
|
208
|
-
});
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
FetchAll(request: WsStore.FetchAllRequest): Promise<WsStore.FetchAllResponse> {
|
|
212
|
-
return this._connection.send("FetchAll", request);
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
FetchKeyMD(request: WsStore.FetchKeyMDRequest): Promise<WsStore.FetchKeyMDResponse> {
|
|
216
|
-
return this._connection.send("FetchKeyMD", request);
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
ListKeys(request: WsStore.ListKeysRequest): Promise<WsStore.ListKeysResponse> {
|
|
220
|
-
return this._connection.send("ListKeys", request);
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
ListNamespaces(request: WsStore.ListNamespacesRequest): Promise<WsStore.ListNamespacesResponse> {
|
|
224
|
-
return this._connection.send("ListNamespaces", request);
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
Set(request: WsStore.SetRequest): Promise<WsStore.SetResponse> {
|
|
228
|
-
return this._connection.send("Set", request);
|
|
229
|
-
}
|
|
230
|
-
}
|
|
1
|
+
import { IConnection, IOptions } from "../connection";
|
|
2
|
+
import { Service } from "../espConnection";
|
|
3
|
+
|
|
4
|
+
/*
|
|
5
|
+
Response structures generated via:
|
|
6
|
+
* http://localhost:8010/wsstore/Fetch?reqjson_
|
|
7
|
+
* http://localhost:8010/wsstore/Fetch?respjson_
|
|
8
|
+
* http://json2ts.com/
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
export namespace WsStore {
|
|
12
|
+
|
|
13
|
+
export interface CreateStoreRequest {
|
|
14
|
+
Name: string;
|
|
15
|
+
Type: string;
|
|
16
|
+
Description: string;
|
|
17
|
+
UserSpecific: boolean;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface DeleteRequest {
|
|
21
|
+
StoreName: string;
|
|
22
|
+
Namespace: string;
|
|
23
|
+
Key: string;
|
|
24
|
+
UserSpecific: boolean;
|
|
25
|
+
TargetUser?: string;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export interface DeleteNamespaceRequest {
|
|
29
|
+
StoreName: string;
|
|
30
|
+
Namespace: string;
|
|
31
|
+
UserSpecific: boolean;
|
|
32
|
+
TargetUser: string;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface FetchRequest {
|
|
36
|
+
StoreName: string;
|
|
37
|
+
Namespace: string;
|
|
38
|
+
Key: string;
|
|
39
|
+
UserSpecific: boolean;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export interface FetchAllRequest {
|
|
43
|
+
StoreName: string;
|
|
44
|
+
Namespace: string;
|
|
45
|
+
UserSpecific: boolean;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export interface FetchKeyMDRequest {
|
|
49
|
+
StoreName: string;
|
|
50
|
+
Namespace: string;
|
|
51
|
+
Key: string;
|
|
52
|
+
UserSpecific: boolean;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export interface ListKeysRequest {
|
|
56
|
+
StoreName: string;
|
|
57
|
+
Namespace: string;
|
|
58
|
+
UserSpecific: boolean;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export interface ListNamespacesRequest {
|
|
62
|
+
StoreName: string;
|
|
63
|
+
UserSpecific: boolean;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export interface SetRequest {
|
|
67
|
+
StoreName: string;
|
|
68
|
+
Namespace: string;
|
|
69
|
+
Key: string;
|
|
70
|
+
Value: string;
|
|
71
|
+
UserSpecific: boolean;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export interface Exception {
|
|
75
|
+
Code: string;
|
|
76
|
+
Audience: string;
|
|
77
|
+
Source: string;
|
|
78
|
+
Message: string;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export interface Exceptions {
|
|
82
|
+
Source: string;
|
|
83
|
+
Exception: Exception[];
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export interface CreateStoreResponse {
|
|
87
|
+
Exceptions: Exceptions;
|
|
88
|
+
Name: string;
|
|
89
|
+
Type: string;
|
|
90
|
+
Description: string;
|
|
91
|
+
Owner: string;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export interface DeleteResponse {
|
|
95
|
+
Exceptions: Exceptions;
|
|
96
|
+
Success: boolean;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export interface DeleteNamespaceResponse {
|
|
100
|
+
Exceptions: Exceptions;
|
|
101
|
+
Success: boolean;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export interface FetchResponse {
|
|
105
|
+
Exceptions: Exceptions;
|
|
106
|
+
Value: string;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export interface Pair {
|
|
110
|
+
Key: string;
|
|
111
|
+
Value: string;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export interface Pairs {
|
|
115
|
+
Pair: Pair[];
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export interface FetchAllResponse {
|
|
119
|
+
Exceptions: Exceptions;
|
|
120
|
+
Namespace: string;
|
|
121
|
+
Pairs: Pairs;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export interface Pair2 {
|
|
125
|
+
Key: string;
|
|
126
|
+
Value: string;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export interface Pairs2 {
|
|
130
|
+
Pair: Pair2[];
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export interface FetchKeyMDResponse {
|
|
134
|
+
Exceptions: Exceptions;
|
|
135
|
+
StoreName: string;
|
|
136
|
+
Namespace: string;
|
|
137
|
+
Key: string;
|
|
138
|
+
Pairs: Pairs2;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export interface KeySet {
|
|
142
|
+
Key: string[];
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export interface ListKeysResponse {
|
|
146
|
+
Exceptions: Exceptions;
|
|
147
|
+
StoreName: string;
|
|
148
|
+
Namespace: string;
|
|
149
|
+
KeySet: KeySet;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
export interface Namespaces {
|
|
153
|
+
Namespace: string[];
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export interface ListNamespacesResponse {
|
|
157
|
+
Exceptions: Exceptions;
|
|
158
|
+
StoreName: string;
|
|
159
|
+
Namespaces: Namespaces;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
export interface WsstorePingResponse {
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
export interface SetResponse {
|
|
166
|
+
Exceptions: Exceptions;
|
|
167
|
+
Success: boolean;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
export class StoreService extends Service {
|
|
172
|
+
|
|
173
|
+
constructor(optsConnection: IOptions | IConnection) {
|
|
174
|
+
super(optsConnection, "WsStore", "1");
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
CreateStore(request: WsStore.CreateStoreRequest): Promise<WsStore.CreateStoreResponse> {
|
|
178
|
+
return this._connection.send("Fetch", request);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
Delete(request: WsStore.DeleteRequest): Promise<WsStore.DeleteResponse> {
|
|
182
|
+
return this._connection.send("Delete", request).catch(e => {
|
|
183
|
+
if (e.isESPExceptions && e.Exception.some(e => e.Code === -1)) {
|
|
184
|
+
// "Delete" item does not exist ---
|
|
185
|
+
return {
|
|
186
|
+
Exceptions: undefined,
|
|
187
|
+
Success: true
|
|
188
|
+
} as WsStore.DeleteResponse;
|
|
189
|
+
}
|
|
190
|
+
throw e;
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
DeleteNamespace(request: WsStore.DeleteNamespaceRequest): Promise<WsStore.DeleteNamespaceResponse> {
|
|
195
|
+
return this._connection.send("DeleteNamespace", request);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
Fetch(request: WsStore.FetchRequest): Promise<WsStore.FetchResponse> {
|
|
199
|
+
return this._connection.send("Fetch", request).catch(e => {
|
|
200
|
+
if (e.isESPExceptions && e.Exception.some(e => e.Code === -1)) {
|
|
201
|
+
// "Fetch" item does not exist ---
|
|
202
|
+
return {
|
|
203
|
+
Exceptions: undefined,
|
|
204
|
+
Value: undefined
|
|
205
|
+
} as WsStore.FetchResponse;
|
|
206
|
+
}
|
|
207
|
+
throw e;
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
FetchAll(request: WsStore.FetchAllRequest): Promise<WsStore.FetchAllResponse> {
|
|
212
|
+
return this._connection.send("FetchAll", request);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
FetchKeyMD(request: WsStore.FetchKeyMDRequest): Promise<WsStore.FetchKeyMDResponse> {
|
|
216
|
+
return this._connection.send("FetchKeyMD", request);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
ListKeys(request: WsStore.ListKeysRequest): Promise<WsStore.ListKeysResponse> {
|
|
220
|
+
return this._connection.send("ListKeys", request);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
ListNamespaces(request: WsStore.ListNamespacesRequest): Promise<WsStore.ListNamespacesResponse> {
|
|
224
|
+
return this._connection.send("ListNamespaces", request);
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
Set(request: WsStore.SetRequest): Promise<WsStore.SetResponse> {
|
|
228
|
+
return this._connection.send("Set", request);
|
|
229
|
+
}
|
|
230
|
+
}
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
import { IOptions } from "../connection";
|
|
2
|
-
import { TopologyServiceBase, WsTopology } from "./wsdl/WsTopology/v1.32/WsTopology";
|
|
3
|
-
|
|
4
|
-
export {
|
|
5
|
-
WsTopology
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
export class TopologyService extends TopologyServiceBase {
|
|
9
|
-
|
|
10
|
-
connectionOptions(): IOptions {
|
|
11
|
-
return this._connection.opts();
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
protocol(): string {
|
|
15
|
-
const parts = this._connection.opts().baseUrl.split("//");
|
|
16
|
-
return parts[0];
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
ip(): string {
|
|
20
|
-
const parts = this._connection.opts().baseUrl.split("//");
|
|
21
|
-
const parts2 = parts[1].split(":");
|
|
22
|
-
return parts2[0];
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
DefaultTpLogicalClusterQuery(request: WsTopology.TpLogicalClusterQueryRequest = {}): Promise<WsTopology.TpLogicalCluster> {
|
|
26
|
-
return this.TpLogicalClusterQuery(request).then((response) => {
|
|
27
|
-
if ((response as any).default) {
|
|
28
|
-
return (response as any).default;
|
|
29
|
-
}
|
|
30
|
-
let firstHThor;
|
|
31
|
-
let first;
|
|
32
|
-
response.TpLogicalClusters.TpLogicalCluster.some((item, idx) => {
|
|
33
|
-
if (idx === 0) {
|
|
34
|
-
first = item;
|
|
35
|
-
}
|
|
36
|
-
if (item.Type === "hthor") {
|
|
37
|
-
firstHThor = item;
|
|
38
|
-
return true;
|
|
39
|
-
}
|
|
40
|
-
return false;
|
|
41
|
-
});
|
|
42
|
-
return firstHThor || first;
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
}
|
|
1
|
+
import { IOptions } from "../connection";
|
|
2
|
+
import { TopologyServiceBase, WsTopology } from "./wsdl/WsTopology/v1.32/WsTopology";
|
|
3
|
+
|
|
4
|
+
export {
|
|
5
|
+
WsTopology
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export class TopologyService extends TopologyServiceBase {
|
|
9
|
+
|
|
10
|
+
connectionOptions(): IOptions {
|
|
11
|
+
return this._connection.opts();
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
protocol(): string {
|
|
15
|
+
const parts = this._connection.opts().baseUrl.split("//");
|
|
16
|
+
return parts[0];
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
ip(): string {
|
|
20
|
+
const parts = this._connection.opts().baseUrl.split("//");
|
|
21
|
+
const parts2 = parts[1].split(":");
|
|
22
|
+
return parts2[0];
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
DefaultTpLogicalClusterQuery(request: WsTopology.TpLogicalClusterQueryRequest = {}): Promise<WsTopology.TpLogicalCluster> {
|
|
26
|
+
return this.TpLogicalClusterQuery(request).then((response) => {
|
|
27
|
+
if ((response as any).default) {
|
|
28
|
+
return (response as any).default;
|
|
29
|
+
}
|
|
30
|
+
let firstHThor;
|
|
31
|
+
let first;
|
|
32
|
+
response.TpLogicalClusters.TpLogicalCluster.some((item, idx) => {
|
|
33
|
+
if (idx === 0) {
|
|
34
|
+
first = item;
|
|
35
|
+
}
|
|
36
|
+
if (item.Type === "hthor") {
|
|
37
|
+
firstHThor = item;
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
return false;
|
|
41
|
+
});
|
|
42
|
+
return firstHThor || first;
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
}
|