@stryker-mutator/dashboard-data-access 0.15.2-pr-1090.0 → 0.15.2-pr-1091.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.
- package/dist/src/index.d.ts +2 -2
- package/dist/src/index.js +2 -2
- package/dist/src/mappers/DashboardQuery.d.ts +2 -2
- package/dist/src/mappers/DashboardQuery.js +1 -1
- package/dist/src/mappers/Mapper.d.ts +1 -1
- package/dist/src/mappers/MutationTestingResultMapper.d.ts +3 -3
- package/dist/src/mappers/MutationTestingResultMapper.js +1 -1
- package/dist/src/mappers/TableStorageMapper.d.ts +3 -3
- package/dist/src/mappers/TableStorageMapper.js +2 -2
- package/dist/src/mappers/factories.d.ts +1 -1
- package/dist/src/mappers/index.d.ts +1 -1
- package/dist/src/mappers/index.js +1 -1
- package/dist/src/models/MutationTestingReport.d.ts +1 -1
- package/dist/src/services/MutationTestingReportService.d.ts +3 -3
- package/dist/src/services/MutationTestingReportService.js +3 -3
- package/dist/src/services/RealTimeMutantsBlobService.d.ts +3 -3
- package/dist/src/utils.d.ts +1 -1
- package/package.json +3 -3
package/dist/src/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './errors/index.js';
|
|
2
2
|
export * from './mappers/index.js';
|
|
3
|
+
export * from './models/index.js';
|
|
3
4
|
export { MutationTestingReportService } from './services/MutationTestingReportService.js';
|
|
4
5
|
export { RealTimeMutantsBlobService } from './services/RealTimeMutantsBlobService.js';
|
|
5
|
-
export * from './errors/index.js';
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/src/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './errors/index.js';
|
|
2
2
|
export * from './mappers/index.js';
|
|
3
|
+
export * from './models/index.js';
|
|
3
4
|
export { MutationTestingReportService } from './services/MutationTestingReportService.js';
|
|
4
5
|
export { RealTimeMutantsBlobService } from './services/RealTimeMutantsBlobService.js';
|
|
5
|
-
export * from './errors/index.js';
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { TableEntityQueryOptions } from '@azure/data-tables';
|
|
2
|
+
import type { ModelClass } from './ModelClass.js';
|
|
3
3
|
export declare class DashboardQuery<TModel, TPartitionKeyFields extends keyof TModel, TRowKeyFields extends keyof TModel> {
|
|
4
4
|
protected ModelClass: ModelClass<TModel, TPartitionKeyFields, TRowKeyFields>;
|
|
5
5
|
private readonly whereConditions;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ReportIdentifier } from '@stryker-mutator/dashboard-common';
|
|
3
|
-
import
|
|
1
|
+
import type { BlobServiceClient, ContainerCreateIfNotExistsResponse } from '@azure/storage-blob';
|
|
2
|
+
import type { ReportIdentifier } from '@stryker-mutator/dashboard-common';
|
|
3
|
+
import type * as schema from 'mutation-testing-report-schema';
|
|
4
4
|
/**
|
|
5
5
|
* The report json part of a mutation testing report is stored in blob storage
|
|
6
6
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { hasErrorCode, toBlobName } from '../utils.js';
|
|
2
1
|
import { OptimisticConcurrencyError } from '../errors/index.js';
|
|
3
2
|
import { createBlobServiceClient } from '../services/BlobServiceClient.js';
|
|
3
|
+
import { hasErrorCode, toBlobName } from '../utils.js';
|
|
4
4
|
const errCodes = Object.freeze({
|
|
5
5
|
BLOB_HAS_BEEN_MODIFIED: 'BlobHasBeenModified',
|
|
6
6
|
BLOB_NOT_FOUND: 'BlobNotFound',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ModelClass } from './ModelClass.js';
|
|
1
|
+
import type { TableClient } from '@azure/data-tables';
|
|
3
2
|
import { DashboardQuery } from './DashboardQuery.js';
|
|
4
|
-
import {
|
|
3
|
+
import type { Mapper, Result } from './Mapper.js';
|
|
4
|
+
import type { ModelClass } from './ModelClass.js';
|
|
5
5
|
export default class TableStorageMapper<TModel extends object, TPartitionKeyFields extends keyof TModel, TRowKeyFields extends keyof TModel> implements Mapper<TModel, TPartitionKeyFields, TRowKeyFields> {
|
|
6
6
|
#private;
|
|
7
7
|
private readonly ModelClass;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { encodeKey, decodeKey, hasErrorCode } from '../utils.js';
|
|
2
1
|
import { OptimisticConcurrencyError } from '../errors/index.js';
|
|
3
|
-
import { DashboardQuery } from './DashboardQuery.js';
|
|
4
2
|
import { createTableClient } from '../services/TableClient.js';
|
|
3
|
+
import { decodeKey, encodeKey, hasErrorCode } from '../utils.js';
|
|
4
|
+
import { DashboardQuery } from './DashboardQuery.js';
|
|
5
5
|
const errCodes = Object.freeze({
|
|
6
6
|
UPDATE_CONDITION_NOT_SATISFIED: 'UpdateConditionNotSatisfied',
|
|
7
7
|
ENTITY_ALREADY_EXISTS: 'EntityAlreadyExists',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Mapper } from './Mapper.js';
|
|
2
1
|
import { MutationTestingReport, Project } from '../models/index.js';
|
|
2
|
+
import type { Mapper } from './Mapper.js';
|
|
3
3
|
export type MutationTestingReportMapper = Mapper<MutationTestingReport, 'projectName' | 'version', 'moduleName'>;
|
|
4
4
|
export type ProjectMapper = Mapper<Project, 'owner', 'name'>;
|
|
5
5
|
export declare function createMutationTestingReportMapper(): MutationTestingReportMapper;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReportIdentifier } from '@stryker-mutator/dashboard-common';
|
|
1
|
+
import type { ReportIdentifier } from '@stryker-mutator/dashboard-common';
|
|
2
2
|
export declare class MutationTestingReport implements ReportIdentifier {
|
|
3
3
|
/**
|
|
4
4
|
* The repo slug. /:provider/:owner/:name (could also have more components in the future, for example gitlab supports this)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Logger, MutationScoreOnlyResult, Report, ReportIdentifier } from '@stryker-mutator/dashboard-common';
|
|
2
|
+
import type { MutationTestResult } from 'mutation-testing-report-schema';
|
|
3
|
+
import type { MutationTestingReportMapper } from '../mappers/index.js';
|
|
2
4
|
import { MutationTestingResultMapper } from '../mappers/MutationTestingResultMapper.js';
|
|
3
|
-
import { MutationTestingReportMapper } from '../mappers/index.js';
|
|
4
|
-
import { MutationScoreOnlyResult, ReportIdentifier, Report, Logger } from '@stryker-mutator/dashboard-common';
|
|
5
5
|
export declare class MutationTestingReportService {
|
|
6
6
|
private readonly resultMapper;
|
|
7
7
|
private readonly mutationScoreMapper;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { isMutationTestResult } from '@stryker-mutator/dashboard-common';
|
|
1
2
|
import { aggregateResultsByModule, calculateMetrics } from 'mutation-testing-metrics';
|
|
2
|
-
import {
|
|
3
|
+
import { OptimisticConcurrencyError } from '../errors/index.js';
|
|
3
4
|
import { createMutationTestingReportMapper, DashboardQuery } from '../mappers/index.js';
|
|
4
|
-
import {
|
|
5
|
+
import { MutationTestingResultMapper } from '../mappers/MutationTestingResultMapper.js';
|
|
5
6
|
import { MutationTestingReport } from '../models/index.js';
|
|
6
|
-
import { OptimisticConcurrencyError } from '../errors/index.js';
|
|
7
7
|
function moduleHasResult(tuple) {
|
|
8
8
|
return !!tuple[1];
|
|
9
9
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { BlobServiceClient } from '@azure/storage-blob';
|
|
2
|
+
import type { ReportIdentifier } from '@stryker-mutator/dashboard-common';
|
|
3
|
+
import type { MutantResult } from 'mutation-testing-report-schema';
|
|
4
4
|
export declare class RealTimeMutantsBlobService {
|
|
5
5
|
#private;
|
|
6
6
|
private static readonly CONTAINER_NAME;
|
package/dist/src/utils.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReportIdentifier } from '@stryker-mutator/dashboard-common';
|
|
2
1
|
import { RestError } from '@azure/storage-blob';
|
|
2
|
+
import type { ReportIdentifier } from '@stryker-mutator/dashboard-common';
|
|
3
3
|
export declare function encodeKey(inputWithSlashes: string): string;
|
|
4
4
|
export declare function decodeKey(inputWithSemiColons: string): string;
|
|
5
5
|
export declare function isStorageError(maybeStorageError: unknown): maybeStorageError is RestError;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stryker-mutator/dashboard-data-access",
|
|
3
|
-
"version": "0.15.2-pr-
|
|
3
|
+
"version": "0.15.2-pr-1091.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "This package contains the data access layer of the stryker dashboard application.",
|
|
6
6
|
"scripts": {
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@azure/data-tables": "13.3.0",
|
|
26
26
|
"@azure/storage-blob": "12.26.0",
|
|
27
|
-
"@stryker-mutator/dashboard-common": "0.15.2-pr-
|
|
27
|
+
"@stryker-mutator/dashboard-common": "0.15.2-pr-1091.1",
|
|
28
28
|
"mutation-testing-metrics": "3.3.0",
|
|
29
29
|
"mutation-testing-report-schema": "3.3.0"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "8ab8d9b3ae0f3da9c6b1d1d4220570fc63d3d1b4"
|
|
32
32
|
}
|