From ee0d893e6ffbd74a966f6b36f33d9bed9795b429 Mon Sep 17 00:00:00 2001 From: Jeremy Clements <79224539+jeclrsg@users.noreply.github.com> Date: Wed, 23 Sep 2026 10:33:33 -0400 Subject: [PATCH] feat(comms): bump WsResources to v1.04 Signed-off-by: Jeremy Clements <79224539+jeclrsg@users.noreply.github.com> --- packages/comms/src/services/wsResources.ts | 2 +- .../wsdl/WsResources/current/WsResources.ts | 178 ++++++++++++++++++ .../wsdl/WsResources/v1.04/WsResources.ts | 178 ++++++++++++++++++ 3 files changed, 357 insertions(+), 1 deletion(-) create mode 100644 packages/comms/src/services/wsdl/WsResources/current/WsResources.ts create mode 100644 packages/comms/src/services/wsdl/WsResources/v1.04/WsResources.ts diff --git a/packages/comms/src/services/wsResources.ts b/packages/comms/src/services/wsResources.ts index c3d1cfae03..6906fec67a 100644 --- a/packages/comms/src/services/wsResources.ts +++ b/packages/comms/src/services/wsResources.ts @@ -1,4 +1,4 @@ -import { ResourcesServiceBase, WsResources } from "./wsdl/WsResources/v1.01/WsResources.ts"; +import { ResourcesServiceBase, WsResources } from "./wsdl/WsResources/v1.04/WsResources.ts"; export { type WsResources diff --git a/packages/comms/src/services/wsdl/WsResources/current/WsResources.ts b/packages/comms/src/services/wsdl/WsResources/current/WsResources.ts new file mode 100644 index 0000000000..a6509ba83f --- /dev/null +++ b/packages/comms/src/services/wsdl/WsResources/current/WsResources.ts @@ -0,0 +1,178 @@ +import { IConnection, IOptions } from "../../../../connection.ts"; +import { Service } from "../../../../espConnection.ts"; + +export namespace WsResources { + + export type unsignedInt = number; + + export enum HPCCQueueType { + Thor = "Thor", + HThor = "HThor", + Roxie = "Roxie", + All = "All" + } + + export enum ExternalIPStatus { + Unknown = "Unknown", + None = "None", + Pending = "Pending" + } + + export enum ResourceType { + UNKNOWN = "UNKNOWN", + TRACES = "TRACES", + LOGS = "LOGS", + METRICS = "METRICS" + } + + export interface WsResourcesPingRequest { + + } + + export interface WsResourcesPingResponse { + + } + + export interface ServiceQueryRequest { + Type?: string; + Name?: string; + } + + export interface Exception { + Code?: string; + Audience?: string; + Source?: string; + Message?: string; + } + + export interface Exceptions { + Source?: string; + Exception?: Exception[]; + } + + export interface Service { + Name?: string; + Type?: string; + Port?: unsignedInt; + TLSSecure?: boolean; + } + + export interface Services { + Service?: Service[]; + } + + export interface ServiceQueryResponse { + Exceptions?: Exceptions; + Services?: Services; + } + + export interface TargetQueryRequest { + Type?: HPCCQueueType; + } + + export interface HPCCQueue { + Name?: string; + Type?: HPCCQueueType; + } + + export interface Queues { + HPCCQueue?: HPCCQueue[]; + } + + export interface Roxies { + Item?: string[]; + } + + export interface TargetQueryResponse { + Exceptions?: Exceptions; + Queues?: Queues; + Roxies?: Roxies; + } + + export interface WebLinksQueryRequest { + + } + + export interface NamedValue { + Name?: string; + Value?: string; + } + + export interface Annotations { + NamedValue?: NamedValue[]; + } + + export interface ExternalIPs { + Item?: string[]; + } + + export interface ServicePorts { + Name?: string; + Protocol?: string; + Port?: unsignedInt; + } + + export interface Ports { + ServicePorts?: ServicePorts[]; + } + + export interface Connection { + Type?: string; + ExternalIPs?: ExternalIPs; + ExternalIPStatus?: ExternalIPStatus; + Ports?: Ports; + } + + export interface DiscoveredWebLink { + ServiceName?: string; + NameSpace?: string; + Annotations?: Annotations; + Connection?: Connection; + } + + export interface DiscoveredWebLinks { + DiscoveredWebLink?: DiscoveredWebLink[]; + } + + export interface ConfiguredWebLink { + Name?: string; + Description?: string; + URL?: string; + ResourceType?: ResourceType; + } + + export interface ConfiguredWebLinks { + ConfiguredWebLink?: ConfiguredWebLink[]; + } + + export interface WebLinksQueryResponse { + Exceptions?: Exceptions; + DiscoveredWebLinks?: DiscoveredWebLinks; + ConfiguredWebLinks?: ConfiguredWebLinks; + } + +} + +export class ResourcesServiceBase extends Service { + + constructor(optsConnection: IOptions | IConnection) { + super(optsConnection, "WsResources", "1.04"); + } + + Ping(request: WsResources.WsResourcesPingRequest, abortSignal?: AbortSignal): Promise { + return this._connection.send("Ping", request, "json", false, abortSignal, "WsResourcesPingResponse"); + } + + ServiceQuery(request: WsResources.ServiceQueryRequest, abortSignal?: AbortSignal): Promise { + return this._connection.send("ServiceQuery", request, "json", false, abortSignal, "ServiceQueryResponse"); + } + + TargetQuery(request: WsResources.TargetQueryRequest, abortSignal?: AbortSignal): Promise { + return this._connection.send("TargetQuery", request, "json", false, abortSignal, "TargetQueryResponse"); + } + + WebLinksQuery(request: WsResources.WebLinksQueryRequest, abortSignal?: AbortSignal): Promise { + return this._connection.send("WebLinksQuery", request, "json", false, abortSignal, "WebLinksQueryResponse"); + } + +} diff --git a/packages/comms/src/services/wsdl/WsResources/v1.04/WsResources.ts b/packages/comms/src/services/wsdl/WsResources/v1.04/WsResources.ts new file mode 100644 index 0000000000..a6509ba83f --- /dev/null +++ b/packages/comms/src/services/wsdl/WsResources/v1.04/WsResources.ts @@ -0,0 +1,178 @@ +import { IConnection, IOptions } from "../../../../connection.ts"; +import { Service } from "../../../../espConnection.ts"; + +export namespace WsResources { + + export type unsignedInt = number; + + export enum HPCCQueueType { + Thor = "Thor", + HThor = "HThor", + Roxie = "Roxie", + All = "All" + } + + export enum ExternalIPStatus { + Unknown = "Unknown", + None = "None", + Pending = "Pending" + } + + export enum ResourceType { + UNKNOWN = "UNKNOWN", + TRACES = "TRACES", + LOGS = "LOGS", + METRICS = "METRICS" + } + + export interface WsResourcesPingRequest { + + } + + export interface WsResourcesPingResponse { + + } + + export interface ServiceQueryRequest { + Type?: string; + Name?: string; + } + + export interface Exception { + Code?: string; + Audience?: string; + Source?: string; + Message?: string; + } + + export interface Exceptions { + Source?: string; + Exception?: Exception[]; + } + + export interface Service { + Name?: string; + Type?: string; + Port?: unsignedInt; + TLSSecure?: boolean; + } + + export interface Services { + Service?: Service[]; + } + + export interface ServiceQueryResponse { + Exceptions?: Exceptions; + Services?: Services; + } + + export interface TargetQueryRequest { + Type?: HPCCQueueType; + } + + export interface HPCCQueue { + Name?: string; + Type?: HPCCQueueType; + } + + export interface Queues { + HPCCQueue?: HPCCQueue[]; + } + + export interface Roxies { + Item?: string[]; + } + + export interface TargetQueryResponse { + Exceptions?: Exceptions; + Queues?: Queues; + Roxies?: Roxies; + } + + export interface WebLinksQueryRequest { + + } + + export interface NamedValue { + Name?: string; + Value?: string; + } + + export interface Annotations { + NamedValue?: NamedValue[]; + } + + export interface ExternalIPs { + Item?: string[]; + } + + export interface ServicePorts { + Name?: string; + Protocol?: string; + Port?: unsignedInt; + } + + export interface Ports { + ServicePorts?: ServicePorts[]; + } + + export interface Connection { + Type?: string; + ExternalIPs?: ExternalIPs; + ExternalIPStatus?: ExternalIPStatus; + Ports?: Ports; + } + + export interface DiscoveredWebLink { + ServiceName?: string; + NameSpace?: string; + Annotations?: Annotations; + Connection?: Connection; + } + + export interface DiscoveredWebLinks { + DiscoveredWebLink?: DiscoveredWebLink[]; + } + + export interface ConfiguredWebLink { + Name?: string; + Description?: string; + URL?: string; + ResourceType?: ResourceType; + } + + export interface ConfiguredWebLinks { + ConfiguredWebLink?: ConfiguredWebLink[]; + } + + export interface WebLinksQueryResponse { + Exceptions?: Exceptions; + DiscoveredWebLinks?: DiscoveredWebLinks; + ConfiguredWebLinks?: ConfiguredWebLinks; + } + +} + +export class ResourcesServiceBase extends Service { + + constructor(optsConnection: IOptions | IConnection) { + super(optsConnection, "WsResources", "1.04"); + } + + Ping(request: WsResources.WsResourcesPingRequest, abortSignal?: AbortSignal): Promise { + return this._connection.send("Ping", request, "json", false, abortSignal, "WsResourcesPingResponse"); + } + + ServiceQuery(request: WsResources.ServiceQueryRequest, abortSignal?: AbortSignal): Promise { + return this._connection.send("ServiceQuery", request, "json", false, abortSignal, "ServiceQueryResponse"); + } + + TargetQuery(request: WsResources.TargetQueryRequest, abortSignal?: AbortSignal): Promise { + return this._connection.send("TargetQuery", request, "json", false, abortSignal, "TargetQueryResponse"); + } + + WebLinksQuery(request: WsResources.WebLinksQueryRequest, abortSignal?: AbortSignal): Promise { + return this._connection.send("WebLinksQuery", request, "json", false, abortSignal, "WebLinksQueryResponse"); + } + +}