@letpeoplework/lighthouse-client 0.4.0 → 0.5.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/index.cjs +2 -2
- package/dist/index.d.cts +6 -2
- package/dist/index.d.ts +6 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -161,7 +161,7 @@ var getResolvedEndpoint = (mode, lighthouseUrl) => {
|
|
|
161
161
|
mode,
|
|
162
162
|
lighthouseUrl,
|
|
163
163
|
apiBaseUrl,
|
|
164
|
-
healthCheckUrl: `${apiBaseUrl}/v1/version`
|
|
164
|
+
healthCheckUrl: `${apiBaseUrl}/v1/version/current`
|
|
165
165
|
};
|
|
166
166
|
};
|
|
167
167
|
var getMisconfiguredResult = (reason) => ({
|
|
@@ -670,7 +670,7 @@ var createLighthouseClient = (configuration, dependencies = {}) => ({
|
|
|
670
670
|
getRequestInit(configuration.auth)
|
|
671
671
|
);
|
|
672
672
|
},
|
|
673
|
-
getVersion: async () => requestText(configuration, dependencies, "/v1/version"),
|
|
673
|
+
getVersion: async () => requestText(configuration, dependencies, "/v1/version/current"),
|
|
674
674
|
listWorkTrackingConnections: async () => requestJson(
|
|
675
675
|
configuration,
|
|
676
676
|
dependencies,
|
package/dist/index.d.cts
CHANGED
|
@@ -124,7 +124,11 @@ type CliServerConnection = {
|
|
|
124
124
|
readonly insecure?: boolean;
|
|
125
125
|
readonly auth?: StoredLighthouseAuth;
|
|
126
126
|
};
|
|
127
|
-
type
|
|
127
|
+
type CliStandaloneConnection = {
|
|
128
|
+
readonly mode: "standalone";
|
|
129
|
+
readonly authMode: "disabled";
|
|
130
|
+
};
|
|
131
|
+
type CliConnection = CliServerConnection | CliStandaloneConnection;
|
|
128
132
|
type CliAuthDependencies = {
|
|
129
133
|
readonly fetch: typeof globalThis.fetch;
|
|
130
134
|
};
|
|
@@ -201,4 +205,4 @@ type LighthouseClientDependencies = {
|
|
|
201
205
|
};
|
|
202
206
|
declare const createLighthouseClient: (configuration: LighthouseClientConfiguration, dependencies?: LighthouseClientDependencies) => LighthouseClient;
|
|
203
207
|
|
|
204
|
-
export { type BacktestInput, type CliAuthSessionPollResult, type CliAuthSessionStartError, type CliAuthSessionStartOutcome, type CliAuthSessionStartResult, type CliConnection, type CliServerAuthMode, type CliServerConnection, type ClientCapability, type ClientPackageContract, type ConnectivityCategory, type ConnectivityDependencies, type ConnectivityFetchResponse, type ConnectivityValidationResult, type LighthouseApiError, type LighthouseApiResult, type LighthouseAuthContext, type LighthouseAuthOverrides, type LighthouseAuthStatus, type LighthouseAuthStore, type LighthouseClient, type LighthouseClientAuth, type LighthouseClientConfiguration, type LighthouseClientDependencies, type LighthouseConnectionConfiguration, type LighthouseWritePayload, type ManualForecastInput, type MetricsDateRange, type ResolvedLighthouseEndpoint, type ServerAuthModeResult, type StandaloneDiscoveryContract, type StandaloneDiscoveryContractParseResult, type StoredLighthouseAuth, createLighthouseAuthContext, createLighthouseClient, getClientPackageContract, getDefaultMetricsDateRange, parseStandaloneDiscoveryContract, pollCliAuthSession, queryServerAuthMode, startCliAuthSession, validateLighthouseConnectivity };
|
|
208
|
+
export { type BacktestInput, type CliAuthSessionPollResult, type CliAuthSessionStartError, type CliAuthSessionStartOutcome, type CliAuthSessionStartResult, type CliConnection, type CliServerAuthMode, type CliServerConnection, type CliStandaloneConnection, type ClientCapability, type ClientPackageContract, type ConnectivityCategory, type ConnectivityDependencies, type ConnectivityFetchResponse, type ConnectivityValidationResult, type LighthouseApiError, type LighthouseApiResult, type LighthouseAuthContext, type LighthouseAuthOverrides, type LighthouseAuthStatus, type LighthouseAuthStore, type LighthouseClient, type LighthouseClientAuth, type LighthouseClientConfiguration, type LighthouseClientDependencies, type LighthouseConnectionConfiguration, type LighthouseWritePayload, type ManualForecastInput, type MetricsDateRange, type ResolvedLighthouseEndpoint, type ServerAuthModeResult, type StandaloneDiscoveryContract, type StandaloneDiscoveryContractParseResult, type StoredLighthouseAuth, createLighthouseAuthContext, createLighthouseClient, getClientPackageContract, getDefaultMetricsDateRange, parseStandaloneDiscoveryContract, pollCliAuthSession, queryServerAuthMode, startCliAuthSession, validateLighthouseConnectivity };
|
package/dist/index.d.ts
CHANGED
|
@@ -124,7 +124,11 @@ type CliServerConnection = {
|
|
|
124
124
|
readonly insecure?: boolean;
|
|
125
125
|
readonly auth?: StoredLighthouseAuth;
|
|
126
126
|
};
|
|
127
|
-
type
|
|
127
|
+
type CliStandaloneConnection = {
|
|
128
|
+
readonly mode: "standalone";
|
|
129
|
+
readonly authMode: "disabled";
|
|
130
|
+
};
|
|
131
|
+
type CliConnection = CliServerConnection | CliStandaloneConnection;
|
|
128
132
|
type CliAuthDependencies = {
|
|
129
133
|
readonly fetch: typeof globalThis.fetch;
|
|
130
134
|
};
|
|
@@ -201,4 +205,4 @@ type LighthouseClientDependencies = {
|
|
|
201
205
|
};
|
|
202
206
|
declare const createLighthouseClient: (configuration: LighthouseClientConfiguration, dependencies?: LighthouseClientDependencies) => LighthouseClient;
|
|
203
207
|
|
|
204
|
-
export { type BacktestInput, type CliAuthSessionPollResult, type CliAuthSessionStartError, type CliAuthSessionStartOutcome, type CliAuthSessionStartResult, type CliConnection, type CliServerAuthMode, type CliServerConnection, type ClientCapability, type ClientPackageContract, type ConnectivityCategory, type ConnectivityDependencies, type ConnectivityFetchResponse, type ConnectivityValidationResult, type LighthouseApiError, type LighthouseApiResult, type LighthouseAuthContext, type LighthouseAuthOverrides, type LighthouseAuthStatus, type LighthouseAuthStore, type LighthouseClient, type LighthouseClientAuth, type LighthouseClientConfiguration, type LighthouseClientDependencies, type LighthouseConnectionConfiguration, type LighthouseWritePayload, type ManualForecastInput, type MetricsDateRange, type ResolvedLighthouseEndpoint, type ServerAuthModeResult, type StandaloneDiscoveryContract, type StandaloneDiscoveryContractParseResult, type StoredLighthouseAuth, createLighthouseAuthContext, createLighthouseClient, getClientPackageContract, getDefaultMetricsDateRange, parseStandaloneDiscoveryContract, pollCliAuthSession, queryServerAuthMode, startCliAuthSession, validateLighthouseConnectivity };
|
|
208
|
+
export { type BacktestInput, type CliAuthSessionPollResult, type CliAuthSessionStartError, type CliAuthSessionStartOutcome, type CliAuthSessionStartResult, type CliConnection, type CliServerAuthMode, type CliServerConnection, type CliStandaloneConnection, type ClientCapability, type ClientPackageContract, type ConnectivityCategory, type ConnectivityDependencies, type ConnectivityFetchResponse, type ConnectivityValidationResult, type LighthouseApiError, type LighthouseApiResult, type LighthouseAuthContext, type LighthouseAuthOverrides, type LighthouseAuthStatus, type LighthouseAuthStore, type LighthouseClient, type LighthouseClientAuth, type LighthouseClientConfiguration, type LighthouseClientDependencies, type LighthouseConnectionConfiguration, type LighthouseWritePayload, type ManualForecastInput, type MetricsDateRange, type ResolvedLighthouseEndpoint, type ServerAuthModeResult, type StandaloneDiscoveryContract, type StandaloneDiscoveryContractParseResult, type StoredLighthouseAuth, createLighthouseAuthContext, createLighthouseClient, getClientPackageContract, getDefaultMetricsDateRange, parseStandaloneDiscoveryContract, pollCliAuthSession, queryServerAuthMode, startCliAuthSession, validateLighthouseConnectivity };
|
package/dist/index.js
CHANGED
|
@@ -129,7 +129,7 @@ var getResolvedEndpoint = (mode, lighthouseUrl) => {
|
|
|
129
129
|
mode,
|
|
130
130
|
lighthouseUrl,
|
|
131
131
|
apiBaseUrl,
|
|
132
|
-
healthCheckUrl: `${apiBaseUrl}/v1/version`
|
|
132
|
+
healthCheckUrl: `${apiBaseUrl}/v1/version/current`
|
|
133
133
|
};
|
|
134
134
|
};
|
|
135
135
|
var getMisconfiguredResult = (reason) => ({
|
|
@@ -638,7 +638,7 @@ var createLighthouseClient = (configuration, dependencies = {}) => ({
|
|
|
638
638
|
getRequestInit(configuration.auth)
|
|
639
639
|
);
|
|
640
640
|
},
|
|
641
|
-
getVersion: async () => requestText(configuration, dependencies, "/v1/version"),
|
|
641
|
+
getVersion: async () => requestText(configuration, dependencies, "/v1/version/current"),
|
|
642
642
|
listWorkTrackingConnections: async () => requestJson(
|
|
643
643
|
configuration,
|
|
644
644
|
dependencies,
|
package/package.json
CHANGED