@letpeoplework/lighthouse-client 1.1.0 → 1.2.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 +511 -351
- package/dist/index.d.cts +51 -1
- package/dist/index.d.ts +51 -1
- package/dist/index.js +510 -351
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -219,6 +219,44 @@ type TotalWorkItemAgeOverTimeResult = {
|
|
|
219
219
|
readonly endDate: string;
|
|
220
220
|
readonly daily: readonly DailyTotalWorkItemAge[];
|
|
221
221
|
};
|
|
222
|
+
type CumulativeStateTimeStateRow = {
|
|
223
|
+
readonly state: string;
|
|
224
|
+
readonly workflowOrder: number;
|
|
225
|
+
readonly totalDays: number;
|
|
226
|
+
readonly completedContributionDays: number;
|
|
227
|
+
readonly ongoingContributionDays: number;
|
|
228
|
+
readonly itemCount: number;
|
|
229
|
+
readonly completedItemCount: number;
|
|
230
|
+
readonly ongoingItemCount: number;
|
|
231
|
+
readonly meanDays: number;
|
|
232
|
+
readonly medianDays: number | null;
|
|
233
|
+
};
|
|
234
|
+
type CumulativeStateTimeResult = {
|
|
235
|
+
readonly states: readonly CumulativeStateTimeStateRow[];
|
|
236
|
+
};
|
|
237
|
+
type CumulativeStateTimeItemRow = {
|
|
238
|
+
readonly workItemId: number;
|
|
239
|
+
readonly referenceId: string;
|
|
240
|
+
readonly title: string;
|
|
241
|
+
readonly type: string;
|
|
242
|
+
readonly state: string;
|
|
243
|
+
readonly stateCategory: string;
|
|
244
|
+
readonly url: string | null;
|
|
245
|
+
readonly daysContributed: number;
|
|
246
|
+
};
|
|
247
|
+
type CumulativeStateTimeItemsResult = {
|
|
248
|
+
readonly state: string;
|
|
249
|
+
readonly items: readonly CumulativeStateTimeItemRow[];
|
|
250
|
+
};
|
|
251
|
+
type CumulativeStateTimeCandidateRow = {
|
|
252
|
+
readonly workItemId: number;
|
|
253
|
+
readonly referenceId: string;
|
|
254
|
+
readonly title: string;
|
|
255
|
+
readonly workItemType: string;
|
|
256
|
+
};
|
|
257
|
+
type CumulativeStateTimeCandidatesResult = {
|
|
258
|
+
readonly items: readonly CumulativeStateTimeCandidateRow[];
|
|
259
|
+
};
|
|
222
260
|
type LighthouseClient = {
|
|
223
261
|
readonly checkConnectivity: () => Promise<ConnectivityValidationResult>;
|
|
224
262
|
readonly getVersion: () => Promise<LighthouseApiResult<string>>;
|
|
@@ -261,6 +299,12 @@ type LighthouseClient = {
|
|
|
261
299
|
readonly getPortfolioTotalWorkItemAgeInfo: (portfolioId: number, range?: MetricsDateRange) => Promise<LighthouseApiResult<unknown>>;
|
|
262
300
|
readonly getPortfolioWorkItemAgeOverTime: (portfolioId: number, range?: MetricsDateRange) => Promise<LighthouseApiResult<WorkItemAgeOverTimeResult>>;
|
|
263
301
|
readonly getPortfolioTotalWorkItemAgeOverTime: (portfolioId: number, range?: MetricsDateRange) => Promise<LighthouseApiResult<TotalWorkItemAgeOverTimeResult>>;
|
|
302
|
+
readonly getTeamCumulativeStateTime: (teamId: number, range?: MetricsDateRange, itemIds?: readonly number[]) => Promise<LighthouseApiResult<CumulativeStateTimeResult>>;
|
|
303
|
+
readonly getTeamCumulativeStateTimeItems: (teamId: number, state: string, range?: MetricsDateRange, itemIds?: readonly number[]) => Promise<LighthouseApiResult<CumulativeStateTimeItemsResult>>;
|
|
304
|
+
readonly getTeamCumulativeStateTimeCandidates: (teamId: number, range?: MetricsDateRange) => Promise<LighthouseApiResult<CumulativeStateTimeCandidatesResult>>;
|
|
305
|
+
readonly getPortfolioCumulativeStateTime: (portfolioId: number, range?: MetricsDateRange, itemIds?: readonly number[]) => Promise<LighthouseApiResult<CumulativeStateTimeResult>>;
|
|
306
|
+
readonly getPortfolioCumulativeStateTimeItems: (portfolioId: number, state: string, range?: MetricsDateRange, itemIds?: readonly number[]) => Promise<LighthouseApiResult<CumulativeStateTimeItemsResult>>;
|
|
307
|
+
readonly getPortfolioCumulativeStateTimeCandidates: (portfolioId: number, range?: MetricsDateRange) => Promise<LighthouseApiResult<CumulativeStateTimeCandidatesResult>>;
|
|
264
308
|
readonly getFeaturesByIds: (ids: readonly number[]) => Promise<LighthouseApiResult<readonly unknown[]>>;
|
|
265
309
|
readonly getFeaturesByReferences: (refs: readonly string[]) => Promise<LighthouseApiResult<readonly unknown[]>>;
|
|
266
310
|
readonly getFeatureWorkItems: (featureId: number) => Promise<LighthouseApiResult<readonly unknown[]>>;
|
|
@@ -274,6 +318,12 @@ type LighthouseClient = {
|
|
|
274
318
|
type LighthouseClientDependencies = {
|
|
275
319
|
readonly fetch?: (url: string, init?: RequestInit) => Promise<ConnectivityFetchResponse>;
|
|
276
320
|
};
|
|
321
|
+
/**
|
|
322
|
+
* Returns true when `candidate` is strictly newer than `baseline`, false when
|
|
323
|
+
* it is equal-or-older, and null when either string is unparseable (treat as
|
|
324
|
+
* "unknown — do not block").
|
|
325
|
+
*/
|
|
326
|
+
declare const isServerVersionNewerThan: (candidate: string, baseline: string) => boolean | null;
|
|
277
327
|
declare const createLighthouseClient: (configuration: LighthouseClientConfiguration, dependencies?: LighthouseClientDependencies) => LighthouseClient;
|
|
278
328
|
|
|
279
|
-
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 DailyTotalWorkItemAge, type DailyWorkItemAge, 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, type ThroughputFilterView, type TotalWorkItemAgeOverTimeResult, type WorkItemAgeEntry, type WorkItemAgeOverTimeResult, createLighthouseAuthContext, createLighthouseClient, getClientPackageContract, getDefaultMetricsDateRange, getStandaloneDiscoveryLockfilePath, loadStandaloneDiscoveryContract, parseStandaloneDiscoveryContract, pollCliAuthSession, queryServerAuthMode, startCliAuthSession, validateLighthouseConnectivity };
|
|
329
|
+
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 CumulativeStateTimeCandidateRow, type CumulativeStateTimeCandidatesResult, type CumulativeStateTimeItemRow, type CumulativeStateTimeItemsResult, type CumulativeStateTimeResult, type CumulativeStateTimeStateRow, type DailyTotalWorkItemAge, type DailyWorkItemAge, 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, type ThroughputFilterView, type TotalWorkItemAgeOverTimeResult, type WorkItemAgeEntry, type WorkItemAgeOverTimeResult, createLighthouseAuthContext, createLighthouseClient, getClientPackageContract, getDefaultMetricsDateRange, getStandaloneDiscoveryLockfilePath, isServerVersionNewerThan, loadStandaloneDiscoveryContract, parseStandaloneDiscoveryContract, pollCliAuthSession, queryServerAuthMode, startCliAuthSession, validateLighthouseConnectivity };
|
package/dist/index.d.ts
CHANGED
|
@@ -219,6 +219,44 @@ type TotalWorkItemAgeOverTimeResult = {
|
|
|
219
219
|
readonly endDate: string;
|
|
220
220
|
readonly daily: readonly DailyTotalWorkItemAge[];
|
|
221
221
|
};
|
|
222
|
+
type CumulativeStateTimeStateRow = {
|
|
223
|
+
readonly state: string;
|
|
224
|
+
readonly workflowOrder: number;
|
|
225
|
+
readonly totalDays: number;
|
|
226
|
+
readonly completedContributionDays: number;
|
|
227
|
+
readonly ongoingContributionDays: number;
|
|
228
|
+
readonly itemCount: number;
|
|
229
|
+
readonly completedItemCount: number;
|
|
230
|
+
readonly ongoingItemCount: number;
|
|
231
|
+
readonly meanDays: number;
|
|
232
|
+
readonly medianDays: number | null;
|
|
233
|
+
};
|
|
234
|
+
type CumulativeStateTimeResult = {
|
|
235
|
+
readonly states: readonly CumulativeStateTimeStateRow[];
|
|
236
|
+
};
|
|
237
|
+
type CumulativeStateTimeItemRow = {
|
|
238
|
+
readonly workItemId: number;
|
|
239
|
+
readonly referenceId: string;
|
|
240
|
+
readonly title: string;
|
|
241
|
+
readonly type: string;
|
|
242
|
+
readonly state: string;
|
|
243
|
+
readonly stateCategory: string;
|
|
244
|
+
readonly url: string | null;
|
|
245
|
+
readonly daysContributed: number;
|
|
246
|
+
};
|
|
247
|
+
type CumulativeStateTimeItemsResult = {
|
|
248
|
+
readonly state: string;
|
|
249
|
+
readonly items: readonly CumulativeStateTimeItemRow[];
|
|
250
|
+
};
|
|
251
|
+
type CumulativeStateTimeCandidateRow = {
|
|
252
|
+
readonly workItemId: number;
|
|
253
|
+
readonly referenceId: string;
|
|
254
|
+
readonly title: string;
|
|
255
|
+
readonly workItemType: string;
|
|
256
|
+
};
|
|
257
|
+
type CumulativeStateTimeCandidatesResult = {
|
|
258
|
+
readonly items: readonly CumulativeStateTimeCandidateRow[];
|
|
259
|
+
};
|
|
222
260
|
type LighthouseClient = {
|
|
223
261
|
readonly checkConnectivity: () => Promise<ConnectivityValidationResult>;
|
|
224
262
|
readonly getVersion: () => Promise<LighthouseApiResult<string>>;
|
|
@@ -261,6 +299,12 @@ type LighthouseClient = {
|
|
|
261
299
|
readonly getPortfolioTotalWorkItemAgeInfo: (portfolioId: number, range?: MetricsDateRange) => Promise<LighthouseApiResult<unknown>>;
|
|
262
300
|
readonly getPortfolioWorkItemAgeOverTime: (portfolioId: number, range?: MetricsDateRange) => Promise<LighthouseApiResult<WorkItemAgeOverTimeResult>>;
|
|
263
301
|
readonly getPortfolioTotalWorkItemAgeOverTime: (portfolioId: number, range?: MetricsDateRange) => Promise<LighthouseApiResult<TotalWorkItemAgeOverTimeResult>>;
|
|
302
|
+
readonly getTeamCumulativeStateTime: (teamId: number, range?: MetricsDateRange, itemIds?: readonly number[]) => Promise<LighthouseApiResult<CumulativeStateTimeResult>>;
|
|
303
|
+
readonly getTeamCumulativeStateTimeItems: (teamId: number, state: string, range?: MetricsDateRange, itemIds?: readonly number[]) => Promise<LighthouseApiResult<CumulativeStateTimeItemsResult>>;
|
|
304
|
+
readonly getTeamCumulativeStateTimeCandidates: (teamId: number, range?: MetricsDateRange) => Promise<LighthouseApiResult<CumulativeStateTimeCandidatesResult>>;
|
|
305
|
+
readonly getPortfolioCumulativeStateTime: (portfolioId: number, range?: MetricsDateRange, itemIds?: readonly number[]) => Promise<LighthouseApiResult<CumulativeStateTimeResult>>;
|
|
306
|
+
readonly getPortfolioCumulativeStateTimeItems: (portfolioId: number, state: string, range?: MetricsDateRange, itemIds?: readonly number[]) => Promise<LighthouseApiResult<CumulativeStateTimeItemsResult>>;
|
|
307
|
+
readonly getPortfolioCumulativeStateTimeCandidates: (portfolioId: number, range?: MetricsDateRange) => Promise<LighthouseApiResult<CumulativeStateTimeCandidatesResult>>;
|
|
264
308
|
readonly getFeaturesByIds: (ids: readonly number[]) => Promise<LighthouseApiResult<readonly unknown[]>>;
|
|
265
309
|
readonly getFeaturesByReferences: (refs: readonly string[]) => Promise<LighthouseApiResult<readonly unknown[]>>;
|
|
266
310
|
readonly getFeatureWorkItems: (featureId: number) => Promise<LighthouseApiResult<readonly unknown[]>>;
|
|
@@ -274,6 +318,12 @@ type LighthouseClient = {
|
|
|
274
318
|
type LighthouseClientDependencies = {
|
|
275
319
|
readonly fetch?: (url: string, init?: RequestInit) => Promise<ConnectivityFetchResponse>;
|
|
276
320
|
};
|
|
321
|
+
/**
|
|
322
|
+
* Returns true when `candidate` is strictly newer than `baseline`, false when
|
|
323
|
+
* it is equal-or-older, and null when either string is unparseable (treat as
|
|
324
|
+
* "unknown — do not block").
|
|
325
|
+
*/
|
|
326
|
+
declare const isServerVersionNewerThan: (candidate: string, baseline: string) => boolean | null;
|
|
277
327
|
declare const createLighthouseClient: (configuration: LighthouseClientConfiguration, dependencies?: LighthouseClientDependencies) => LighthouseClient;
|
|
278
328
|
|
|
279
|
-
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 DailyTotalWorkItemAge, type DailyWorkItemAge, 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, type ThroughputFilterView, type TotalWorkItemAgeOverTimeResult, type WorkItemAgeEntry, type WorkItemAgeOverTimeResult, createLighthouseAuthContext, createLighthouseClient, getClientPackageContract, getDefaultMetricsDateRange, getStandaloneDiscoveryLockfilePath, loadStandaloneDiscoveryContract, parseStandaloneDiscoveryContract, pollCliAuthSession, queryServerAuthMode, startCliAuthSession, validateLighthouseConnectivity };
|
|
329
|
+
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 CumulativeStateTimeCandidateRow, type CumulativeStateTimeCandidatesResult, type CumulativeStateTimeItemRow, type CumulativeStateTimeItemsResult, type CumulativeStateTimeResult, type CumulativeStateTimeStateRow, type DailyTotalWorkItemAge, type DailyWorkItemAge, 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, type ThroughputFilterView, type TotalWorkItemAgeOverTimeResult, type WorkItemAgeEntry, type WorkItemAgeOverTimeResult, createLighthouseAuthContext, createLighthouseClient, getClientPackageContract, getDefaultMetricsDateRange, getStandaloneDiscoveryLockfilePath, isServerVersionNewerThan, loadStandaloneDiscoveryContract, parseStandaloneDiscoveryContract, pollCliAuthSession, queryServerAuthMode, startCliAuthSession, validateLighthouseConnectivity };
|