@hpcc-js/comms 3.8.0 → 3.9.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/dist/browser/index.js +175 -86
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/index.umd.cjs +1 -1
- package/dist/browser/index.umd.cjs.map +1 -1
- package/dist/node/index.cjs +53 -56
- package/dist/node/index.cjs.map +4 -4
- package/dist/node/index.js +53 -56
- package/dist/node/index.js.map +4 -4
- package/package.json +6 -7
- package/src/__package__.ts +2 -2
- package/src/ecl/logicalFile.ts +1 -0
- package/src/ecl/store.ts +1 -1
- package/src/index.node.ts +1 -1
- package/src/services/fileSpray.ts +1 -1
- package/src/services/wsCodesign.ts +7 -83
- package/src/services/wsDFU.ts +1 -1
- package/src/services/wsDFUXRef.ts +3 -304
- package/src/services/wsMachine.ts +1 -1
- package/src/services/wsPackageProcess.ts +1 -1
- package/src/services/wsSMC.ts +1 -1
- package/src/services/wsStore.ts +7 -205
- package/src/services/wsTopology.ts +1 -1
- package/src/services/wsWorkunits.ts +0 -8
- package/src/services/wsdl/FileSpray/v1.27/FileSpray.ts +930 -0
- package/src/services/wsdl/WsDFUXRef/v1.04/WsDFUXRef.ts +227 -0
- package/src/services/wsdl/WsDfu/v1.66/WsDfu.ts +1267 -0
- package/src/services/wsdl/WsDfu/v1.67/WsDfu.ts +1268 -0
- package/src/services/wsdl/WsFileIO/v1.01/WsFileIO.ts +12 -15
- package/src/services/wsdl/WsPackageProcess/v1.07/WsPackageProcess.ts +500 -0
- package/src/services/wsdl/WsSMC/v1.27/WsSMC.ts +43 -122
- package/src/services/wsdl/WsSMC/v1.28/WsSMC.ts +645 -0
- package/src/services/wsdl/WsTopology/v1.32/WsTopology.ts +65 -164
- package/src/services/wsdl/WsTopology/v1.33/WsTopology.ts +835 -0
- package/src/services/wsdl/WsWorkunits/v2.02/WsWorkunits.ts +6 -1
- package/src/services/wsdl/ws_codesign/v1.1/ws_codesign.ts +15 -20
- package/src/services/wsdl/ws_elk/v1/ws_elk.ts +4 -4
- package/src/services/wsdl/ws_machine/v1.18/ws_machine.ts +497 -0
- package/src/services/wsdl/ws_machine/v1.19/ws_machine.ts +497 -0
- package/src/services/wsdl/wsstore/v1.02/wsstore.ts +29 -40
- package/types/__package__.d.ts +2 -2
- package/types/ecl/logicalFile.d.ts +1 -0
- package/types/services/fileSpray.d.ts +1 -1
- package/types/services/wsCodesign.d.ts +5 -55
- package/types/services/wsDFU.d.ts +1 -1
- package/types/services/wsDFUXRef.d.ts +3 -218
- package/types/services/wsMachine.d.ts +1 -1
- package/types/services/wsPackageProcess.d.ts +1 -1
- package/types/services/wsSMC.d.ts +1 -1
- package/types/services/wsStore.d.ts +5 -145
- package/types/services/wsTopology.d.ts +1 -1
- package/types/services/wsdl/FileSpray/{v1.26 → v1.27}/FileSpray.d.ts +1 -0
- package/types/services/wsdl/WsDFUXRef/v1.04/WsDFUXRef.d.ts +147 -0
- package/types/services/wsdl/WsDfu/{v1.65 → v1.67}/WsDfu.d.ts +16 -0
- package/types/services/wsdl/WsPackageProcess/{v1.04 → v1.07}/WsPackageProcess.d.ts +75 -95
- package/types/services/wsdl/WsSMC/{v1.27 → v1.28}/WsSMC.d.ts +84 -122
- package/types/services/wsdl/WsTopology/{v1.32 → v1.33}/WsTopology.d.ts +97 -164
- package/types/services/wsdl/WsWorkunits/v2.02/WsWorkunits.d.ts +6 -1
- package/types/services/wsdl/ws_codesign/v1.1/ws_codesign.d.ts +60 -0
- package/types/services/wsdl/ws_elk/v1/ws_elk.d.ts +2 -2
- package/types/services/wsdl/ws_machine/{v1.17 → v1.19}/ws_machine.d.ts +65 -138
- package/types/services/wsdl/wsstore/v1.02/wsstore.d.ts +166 -0
package/src/services/wsStore.ts
CHANGED
|
@@ -1,185 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Service } from "../espConnection.ts";
|
|
1
|
+
import { storeServiceBase as StoreServiceBase, Wsstore as WsStore } from "./wsdl/wsstore/v1.02/wsstore.ts";
|
|
3
2
|
|
|
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
|
-
*/
|
|
3
|
+
export { type WsStore };
|
|
10
4
|
|
|
11
|
-
export
|
|
5
|
+
export class StoreService extends StoreServiceBase {
|
|
12
6
|
|
|
13
|
-
|
|
14
|
-
|
|
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 => {
|
|
7
|
+
Delete(request: Partial<WsStore.DeleteRequest>): Promise<WsStore.DeleteResponse> {
|
|
8
|
+
return super.Delete(request).catch(e => {
|
|
183
9
|
if (e.isESPExceptions && e.Exception.some(e => e.Code === -1)) {
|
|
184
10
|
// "Delete" item does not exist ---
|
|
185
11
|
return {
|
|
@@ -191,12 +17,8 @@ export class StoreService extends Service {
|
|
|
191
17
|
});
|
|
192
18
|
}
|
|
193
19
|
|
|
194
|
-
|
|
195
|
-
return
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
Fetch(request: WsStore.FetchRequest): Promise<WsStore.FetchResponse> {
|
|
199
|
-
return this._connection.send("Fetch", request).catch(e => {
|
|
20
|
+
Fetch(request: Partial<WsStore.FetchRequest>): Promise<WsStore.FetchResponse> {
|
|
21
|
+
return super.Fetch(request).catch(e => {
|
|
200
22
|
if (e.isESPExceptions && e.Exception.some(e => e.Code === -1)) {
|
|
201
23
|
// "Fetch" item does not exist ---
|
|
202
24
|
return {
|
|
@@ -207,24 +29,4 @@ export class StoreService extends Service {
|
|
|
207
29
|
throw e;
|
|
208
30
|
});
|
|
209
31
|
}
|
|
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
32
|
}
|
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
import { deepMixin, xml2json, XMLNode } from "@hpcc-js/util";
|
|
2
2
|
import { WsWorkunits, WorkunitsServiceBase } from "./wsdl/WsWorkunits/v2.02/WsWorkunits.ts";
|
|
3
3
|
import { IConnection, IOptions } from "../connection.ts";
|
|
4
|
-
import { ESPConnection } from "../espConnection.ts";
|
|
5
|
-
|
|
6
|
-
/*
|
|
7
|
-
Response structures generated via:
|
|
8
|
-
* http://localhost:8010/WsWorkunits/WUInfo?reqjson_
|
|
9
|
-
* http://localhost:8010/WsWorkunits/WUInfo?respjson_
|
|
10
|
-
* http://json2ts.com/
|
|
11
|
-
*/
|
|
12
4
|
|
|
13
5
|
export {
|
|
14
6
|
WsWorkunits
|