@hpcc-js/comms 3.5.2 → 3.6.1

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.
@@ -0,0 +1,267 @@
1
+ import { IConnection, IOptions } from "../../../../connection.ts";
2
+ import { Service } from "../../../../espConnection.ts";
3
+
4
+ export namespace WsLogaccess {
5
+
6
+ export type dateTime = string;
7
+ export type unsignedInt = number;
8
+ export type long = number;
9
+
10
+ export enum LogColumnType {
11
+ global = "global",
12
+ workunits = "workunits",
13
+ components = "components",
14
+ audience = "audience",
15
+ class = "class",
16
+ instance = "instance",
17
+ node = "node",
18
+ message = "message",
19
+ logid = "logid",
20
+ processid = "processid",
21
+ threadid = "threadid",
22
+ timestamp = "timestamp",
23
+ pod = "pod",
24
+ traceid = "traceid",
25
+ spanid = "spanid"
26
+ }
27
+
28
+ export enum LogColumnValueType {
29
+ string = "string",
30
+ numeric = "numeric",
31
+ datetime = "datetime",
32
+ enum = "enum",
33
+ epoch = "epoch"
34
+ }
35
+
36
+ export enum LogAccessType {
37
+ All = 0,
38
+ ByJobID = 1,
39
+ ByComponent = 2,
40
+ ByLogType = 3,
41
+ ByTargetAudience = 4,
42
+ BySourceInstance = 5,
43
+ BySourceNode = 6,
44
+ ByFieldName = 7,
45
+ ByPod = 8,
46
+ ByTraceID = 9,
47
+ BySpanID = 10
48
+ }
49
+
50
+ export enum LogAccessStatusCode {
51
+ Success = 0,
52
+ Warning = 1,
53
+ Fail = 2
54
+ }
55
+
56
+ export enum LogAccessFilterOperator {
57
+ NONE = 0,
58
+ AND = 1,
59
+ OR = 2
60
+ }
61
+
62
+ export enum LogSelectColumnMode {
63
+ MIN = 0,
64
+ DEFAULT = 1,
65
+ ALL = 2,
66
+ CUSTOM = 3
67
+ }
68
+
69
+ export enum SortColumType {
70
+ ByDate = 0,
71
+ ByJobID = 1,
72
+ ByComponent = 2,
73
+ ByLogType = 3,
74
+ ByTargetAudience = 4,
75
+ BySourceInstance = 5,
76
+ BySourceNode = 6,
77
+ ByFieldName = 7,
78
+ ByPod = 8,
79
+ ByTraceID = 9,
80
+ BySpanID = 10
81
+ }
82
+
83
+ export enum SortDirection {
84
+ ASC = 0,
85
+ DSC = 1
86
+ }
87
+
88
+ export interface GetHealthReportRequest {
89
+ IncludeConfiguration?: boolean;
90
+ IncludeDebugReport?: boolean;
91
+ IncludeSampleQuery?: boolean;
92
+ }
93
+
94
+ export interface Exception {
95
+ Code: string;
96
+ Audience: string;
97
+ Source: string;
98
+ Message: string;
99
+ }
100
+
101
+ export interface Exceptions {
102
+ Source: string;
103
+ Exception: Exception[];
104
+ }
105
+
106
+ export interface MessageArray {
107
+ Item: string[];
108
+ }
109
+
110
+ export interface Status {
111
+ Code: LogAccessStatusCode;
112
+ MessageArray: MessageArray;
113
+ }
114
+
115
+ export interface DebugReport {
116
+ SampleQueryReport: string;
117
+ PluginDebugReport: string;
118
+ ServerDebugReport: string;
119
+ }
120
+
121
+ export interface GetHealthReportResponse {
122
+ Exceptions: Exceptions;
123
+ Status: Status;
124
+ DebugReport: DebugReport;
125
+ Configuration: string;
126
+ }
127
+
128
+ export interface GetLogAccessInfoRequest {
129
+
130
+ }
131
+
132
+ export interface EnumeratedValues {
133
+ Item: string[];
134
+ }
135
+
136
+ export interface Column {
137
+ Name: string;
138
+ LogType: LogColumnType;
139
+ EnumeratedValues: EnumeratedValues;
140
+ ColumnMode: LogSelectColumnMode;
141
+ ColumnType: LogColumnValueType;
142
+ }
143
+
144
+ export interface Columns {
145
+ Column: Column[];
146
+ }
147
+
148
+ export interface GetLogAccessInfoResponse {
149
+ Exceptions: Exceptions;
150
+ Columns: Columns;
151
+ RemoteLogManagerType: string;
152
+ RemoteLogManagerConnectionString: string;
153
+ SupportsResultPaging: boolean;
154
+ }
155
+
156
+ export interface leftFilter {
157
+ LogCategory: LogAccessType;
158
+ SearchByValue: string;
159
+ SearchField: string;
160
+ }
161
+
162
+ export interface rightFilter {
163
+ LogCategory: LogAccessType;
164
+ SearchByValue: string;
165
+ SearchField: string;
166
+ }
167
+
168
+ export interface rightBinaryFilter {
169
+ BinaryLogFilter: BinaryLogFilter[];
170
+ }
171
+
172
+ export interface BinaryLogFilter {
173
+ leftFilter: leftFilter;
174
+ leftBinaryFilter: leftBinaryFilter;
175
+ Operator: LogAccessFilterOperator;
176
+ rightFilter: {
177
+ LogCategory: LogAccessType;
178
+ SearchByValue: string;
179
+ SearchField: string;
180
+ };
181
+ rightBinaryFilter: {
182
+ BinaryLogFilter: BinaryLogFilter[];
183
+ };
184
+ }
185
+
186
+ export interface leftBinaryFilter {
187
+ BinaryLogFilter: BinaryLogFilter[];
188
+ }
189
+
190
+ export interface Filter {
191
+ leftFilter?: leftFilter;
192
+ leftBinaryFilter?: leftBinaryFilter;
193
+ Operator?: LogAccessFilterOperator;
194
+ rightFilter?: rightFilter;
195
+ rightBinaryFilter?: rightBinaryFilter;
196
+ }
197
+
198
+ export interface Range {
199
+ StartDate?: dateTime;
200
+ EndDate?: dateTime;
201
+ }
202
+
203
+ export interface Columns2 {
204
+ Item: string[];
205
+ }
206
+
207
+ export interface SortCondition {
208
+ BySortType: SortColumType;
209
+ ColumnName: string;
210
+ Direction: SortDirection;
211
+ }
212
+
213
+ export interface SortBy {
214
+ SortCondition: SortCondition[];
215
+ }
216
+
217
+ export interface GetLogsRequest {
218
+ Filter?: Filter;
219
+ Range?: Range;
220
+ LogLineLimit?: unsignedInt;
221
+ LogLineStartFrom?: long;
222
+ SelectColumnMode?: LogSelectColumnMode;
223
+ Columns?: Columns2;
224
+ Format?: string;
225
+ SortBy?: SortBy;
226
+ }
227
+
228
+ export interface GetLogsResponse {
229
+ Exceptions: Exceptions;
230
+ LogLines: string;
231
+ LogLineCount: unsignedInt;
232
+ TotalLogLinesAvailable: unsignedInt;
233
+ }
234
+
235
+ export interface ws_logaccessPingRequest {
236
+
237
+ }
238
+
239
+ export interface ws_logaccessPingResponse {
240
+
241
+ }
242
+
243
+ }
244
+
245
+ export class LogaccessServiceBase extends Service {
246
+
247
+ constructor(optsConnection: IOptions | IConnection) {
248
+ super(optsConnection, "ws_logaccess", "1.08");
249
+ }
250
+
251
+ GetHealthReport(request: Partial<WsLogaccess.GetHealthReportRequest>): Promise<WsLogaccess.GetHealthReportResponse> {
252
+ return this._connection.send("GetHealthReport", request, "json", false, undefined, "GetHealthReportResponse");
253
+ }
254
+
255
+ GetLogAccessInfo(request: Partial<WsLogaccess.GetLogAccessInfoRequest>): Promise<WsLogaccess.GetLogAccessInfoResponse> {
256
+ return this._connection.send("GetLogAccessInfo", request, "json", false, undefined, "GetLogAccessInfoResponse");
257
+ }
258
+
259
+ GetLogs(request: Partial<WsLogaccess.GetLogsRequest>): Promise<WsLogaccess.GetLogsResponse> {
260
+ return this._connection.send("GetLogs", request, "json", false, undefined, "GetLogsResponse");
261
+ }
262
+
263
+ Ping(request: Partial<WsLogaccess.ws_logaccessPingRequest>): Promise<WsLogaccess.ws_logaccessPingResponse> {
264
+ return this._connection.send("Ping", request, "json", false, undefined, "ws_logaccessPingResponse");
265
+ }
266
+
267
+ }
@@ -1,3 +1,3 @@
1
1
  export declare const PKG_NAME = "@hpcc-js/comms";
2
- export declare const PKG_VERSION = "3.5.1";
3
- export declare const BUILD_VERSION = "3.6.1";
2
+ export declare const PKG_VERSION = "3.6.0";
3
+ export declare const BUILD_VERSION = "3.7.0";
@@ -1,5 +1,5 @@
1
- import { CloudServiceBase, WsCloud } from "./wsdl/WsCloud/v1/WsCloud.ts";
1
+ import { CloudServiceBase, WsCloud } from "./wsdl/WsCloud/v1.02/WsCloud.ts";
2
2
  export { type WsCloud };
3
3
  export declare class CloudService extends CloudServiceBase {
4
- getPODs(): Promise<object[]>;
4
+ getPODs(): Promise<WsCloud.Pod[]>;
5
5
  }
@@ -1,4 +1,4 @@
1
- import { LogaccessServiceBase, WsLogaccess } from "./wsdl/ws_logaccess/v1.05/ws_logaccess.ts";
1
+ import { LogaccessServiceBase, WsLogaccess } from "./wsdl/ws_logaccess/v1.08/ws_logaccess.ts";
2
2
  export { WsLogaccess };
3
3
  export interface GetLogsExRequest {
4
4
  audience?: string;
@@ -1,5 +1,5 @@
1
1
  import { XMLNode } from "@hpcc-js/util";
2
- import { WsWorkunits, WorkunitsServiceBase } from "./wsdl/WsWorkunits/v2/WsWorkunits.ts";
2
+ import { WsWorkunits, WorkunitsServiceBase } from "./wsdl/WsWorkunits/v2.02/WsWorkunits.ts";
3
3
  import { IConnection, IOptions } from "../connection.ts";
4
4
  export { WsWorkunits };
5
5
  export declare enum WUStateID {
@@ -0,0 +1,46 @@
1
+ import { IConnection, IOptions } from "../../../../connection.ts";
2
+ import { Service } from "../../../../espConnection.ts";
3
+ export declare namespace WsCloud {
4
+ type int = number;
5
+ interface GetPODsRequest {
6
+ }
7
+ interface Port {
8
+ ContainerPort: int;
9
+ Name: string;
10
+ Protocol: string;
11
+ }
12
+ interface Ports {
13
+ Port: Port[];
14
+ }
15
+ interface Pod {
16
+ Name: string;
17
+ Status: string;
18
+ CreationTimestamp: string;
19
+ ContainerName: string;
20
+ ContainerCount: int;
21
+ ContainerReadyCount: int;
22
+ ContainerRestartCount: int;
23
+ Ports: Ports;
24
+ }
25
+ interface Pods {
26
+ Pod: Pod[];
27
+ }
28
+ interface GetPODsResponse {
29
+ Pods: Pods;
30
+ }
31
+ interface GetServicesRequest {
32
+ }
33
+ interface GetServicesResponse {
34
+ Result: string;
35
+ }
36
+ interface WsCloudPingRequest {
37
+ }
38
+ interface WsCloudPingResponse {
39
+ }
40
+ }
41
+ export declare class CloudServiceBase extends Service {
42
+ constructor(optsConnection: IOptions | IConnection);
43
+ GetPODs(request: Partial<WsCloud.GetPODsRequest>): Promise<WsCloud.GetPODsResponse>;
44
+ GetServices(request: Partial<WsCloud.GetServicesRequest>): Promise<WsCloud.GetServicesResponse>;
45
+ Ping(request: Partial<WsCloud.WsCloudPingRequest>): Promise<WsCloud.WsCloudPingResponse>;
46
+ }
@@ -5,11 +5,11 @@ export declare namespace WsWorkunits {
5
5
  type double = number;
6
6
  type long = number;
7
7
  type nonNegativeInteger = number;
8
+ type uint64 = number;
8
9
  type unsignedInt = number;
9
10
  type base64Binary = string;
10
11
  type dateTime = string;
11
12
  type integer = number;
12
- type uint64 = number;
13
13
  enum ECLWUActions {
14
14
  Abort = "Abort",
15
15
  Delete = "Delete",
@@ -232,6 +232,7 @@ export declare namespace WsWorkunits {
232
232
  ErrorCode: nonNegativeInteger;
233
233
  Severity: string;
234
234
  Cost: nonNegativeInteger;
235
+ Id: uint64;
235
236
  }
236
237
  interface Notes {
237
238
  Note: Note[];
@@ -1659,6 +1660,9 @@ export declare namespace WsWorkunits {
1659
1660
  PageStartFrom: long;
1660
1661
  PageEndAt: long;
1661
1662
  Protected: WUProtectFilter;
1663
+ MinimumExecuteCost: double;
1664
+ MinimumFileAccessCost: double;
1665
+ MinimumCompileCost: double;
1662
1666
  Sortby: string;
1663
1667
  Descending: boolean;
1664
1668
  CacheHint: long;
@@ -17,13 +17,16 @@ export declare namespace WsLogaccess {
17
17
  processid = "processid",
18
18
  threadid = "threadid",
19
19
  timestamp = "timestamp",
20
- pod = "pod"
20
+ pod = "pod",
21
+ traceid = "traceid",
22
+ spanid = "spanid"
21
23
  }
22
24
  enum LogColumnValueType {
23
25
  string = "string",
24
26
  numeric = "numeric",
25
27
  datetime = "datetime",
26
- enum = "enum"
28
+ enum = "enum",
29
+ epoch = "epoch"
27
30
  }
28
31
  enum LogAccessType {
29
32
  All = 0,
@@ -34,7 +37,14 @@ export declare namespace WsLogaccess {
34
37
  BySourceInstance = 5,
35
38
  BySourceNode = 6,
36
39
  ByFieldName = 7,
37
- ByPod = 8
40
+ ByPod = 8,
41
+ ByTraceID = 9,
42
+ BySpanID = 10
43
+ }
44
+ enum LogAccessStatusCode {
45
+ Success = 0,
46
+ Warning = 1,
47
+ Fail = 2
38
48
  }
39
49
  enum LogAccessFilterOperator {
40
50
  NONE = 0,
@@ -56,12 +66,47 @@ export declare namespace WsLogaccess {
56
66
  BySourceInstance = 5,
57
67
  BySourceNode = 6,
58
68
  ByFieldName = 7,
59
- ByPod = 8
69
+ ByPod = 8,
70
+ ByTraceID = 9,
71
+ BySpanID = 10
60
72
  }
61
73
  enum SortDirection {
62
74
  ASC = 0,
63
75
  DSC = 1
64
76
  }
77
+ interface GetHealthReportRequest {
78
+ IncludeConfiguration?: boolean;
79
+ IncludeDebugReport?: boolean;
80
+ IncludeSampleQuery?: boolean;
81
+ }
82
+ interface Exception {
83
+ Code: string;
84
+ Audience: string;
85
+ Source: string;
86
+ Message: string;
87
+ }
88
+ interface Exceptions {
89
+ Source: string;
90
+ Exception: Exception[];
91
+ }
92
+ interface MessageArray {
93
+ Item: string[];
94
+ }
95
+ interface Status {
96
+ Code: LogAccessStatusCode;
97
+ MessageArray: MessageArray;
98
+ }
99
+ interface DebugReport {
100
+ SampleQueryReport: string;
101
+ PluginDebugReport: string;
102
+ ServerDebugReport: string;
103
+ }
104
+ interface GetHealthReportResponse {
105
+ Exceptions: Exceptions;
106
+ Status: Status;
107
+ DebugReport: DebugReport;
108
+ Configuration: string;
109
+ }
65
110
  interface GetLogAccessInfoRequest {
66
111
  }
67
112
  interface EnumeratedValues {
@@ -70,9 +115,7 @@ export declare namespace WsLogaccess {
70
115
  interface Column {
71
116
  Name: string;
72
117
  LogType: LogColumnType;
73
- EnumeratedValues: {
74
- Item: string[];
75
- };
118
+ EnumeratedValues: EnumeratedValues;
76
119
  ColumnMode: LogSelectColumnMode;
77
120
  ColumnType: LogColumnValueType;
78
121
  }
@@ -80,9 +123,8 @@ export declare namespace WsLogaccess {
80
123
  Column: Column[];
81
124
  }
82
125
  interface GetLogAccessInfoResponse {
83
- Columns: {
84
- Column: Column[];
85
- };
126
+ Exceptions: Exceptions;
127
+ Columns: Columns;
86
128
  RemoteLogManagerType: string;
87
129
  RemoteLogManagerConnectionString: string;
88
130
  SupportsResultPaging: boolean;
@@ -117,15 +159,18 @@ export declare namespace WsLogaccess {
117
159
  BinaryLogFilter: BinaryLogFilter[];
118
160
  }
119
161
  interface Filter {
120
- leftFilter: leftFilter;
121
- leftBinaryFilter: leftBinaryFilter;
122
- Operator: LogAccessFilterOperator;
123
- rightFilter: rightFilter;
124
- rightBinaryFilter: rightBinaryFilter;
162
+ leftFilter?: leftFilter;
163
+ leftBinaryFilter?: leftBinaryFilter;
164
+ Operator?: LogAccessFilterOperator;
165
+ rightFilter?: rightFilter;
166
+ rightBinaryFilter?: rightBinaryFilter;
125
167
  }
126
168
  interface Range {
127
- StartDate: dateTime;
128
- EndDate: dateTime;
169
+ StartDate?: dateTime;
170
+ EndDate?: dateTime;
171
+ }
172
+ interface Columns2 {
173
+ Item: string[];
129
174
  }
130
175
  interface SortCondition {
131
176
  BySortType: SortColumType;
@@ -136,27 +181,17 @@ export declare namespace WsLogaccess {
136
181
  SortCondition: SortCondition[];
137
182
  }
138
183
  interface GetLogsRequest {
139
- Filter?: {
140
- leftFilter?: leftFilter;
141
- leftBinaryFilter?: leftBinaryFilter;
142
- Operator?: LogAccessFilterOperator;
143
- rightFilter?: rightFilter;
144
- rightBinaryFilter?: rightBinaryFilter;
145
- };
146
- Range?: {
147
- StartDate?: dateTime;
148
- EndDate?: dateTime;
149
- };
184
+ Filter?: Filter;
185
+ Range?: Range;
150
186
  LogLineLimit?: unsignedInt;
151
187
  LogLineStartFrom?: long;
152
188
  SelectColumnMode?: LogSelectColumnMode;
153
- Columns?: Columns;
189
+ Columns?: Columns2;
154
190
  Format?: string;
155
- SortBy?: {
156
- SortCondition?: SortCondition[];
157
- };
191
+ SortBy?: SortBy;
158
192
  }
159
193
  interface GetLogsResponse {
194
+ Exceptions: Exceptions;
160
195
  LogLines: string;
161
196
  LogLineCount: unsignedInt;
162
197
  TotalLogLinesAvailable: unsignedInt;
@@ -168,7 +203,8 @@ export declare namespace WsLogaccess {
168
203
  }
169
204
  export declare class LogaccessServiceBase extends Service {
170
205
  constructor(optsConnection: IOptions | IConnection);
171
- GetLogAccessInfo(request: WsLogaccess.GetLogAccessInfoRequest): Promise<WsLogaccess.GetLogAccessInfoResponse>;
172
- GetLogs(request: WsLogaccess.GetLogsRequest): Promise<WsLogaccess.GetLogsResponse>;
173
- Ping(request: WsLogaccess.ws_logaccessPingRequest): Promise<WsLogaccess.ws_logaccessPingResponse>;
206
+ GetHealthReport(request: Partial<WsLogaccess.GetHealthReportRequest>): Promise<WsLogaccess.GetHealthReportResponse>;
207
+ GetLogAccessInfo(request: Partial<WsLogaccess.GetLogAccessInfoRequest>): Promise<WsLogaccess.GetLogAccessInfoResponse>;
208
+ GetLogs(request: Partial<WsLogaccess.GetLogsRequest>): Promise<WsLogaccess.GetLogsResponse>;
209
+ Ping(request: Partial<WsLogaccess.ws_logaccessPingRequest>): Promise<WsLogaccess.ws_logaccessPingResponse>;
174
210
  }