website refactor
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest';
|
||||
import type { Logger } from '@core/shared/application';
|
||||
import { AnalyticsSnapshot } from '@core/analytics';
|
||||
import type { Logger } from '@core/shared/domain';
|
||||
import { AnalyticsSnapshot } from '@core/analytics/application/repositories/PageViewRepository';
|
||||
import { InMemoryAnalyticsSnapshotRepository } from './InMemoryAnalyticsSnapshotRepository';
|
||||
|
||||
describe('InMemoryAnalyticsSnapshotRepository', () => {
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
* In-memory implementation of IAnalyticsSnapshotRepository for development/testing.
|
||||
*/
|
||||
|
||||
import { AnalyticsSnapshot, IAnalyticsSnapshotRepository, SnapshotEntityType, SnapshotPeriod } from '@core/analytics';
|
||||
import { Logger } from '@core/shared/application';
|
||||
import { AnalyticsSnapshot, IAnalyticsSnapshotRepository, SnapshotEntityType, SnapshotPeriod } from '@core/analytics/application/repositories/PageViewRepository';
|
||||
import { Logger } from '@core/shared/domain/Logger';
|
||||
|
||||
export class InMemoryAnalyticsSnapshotRepository implements IAnalyticsSnapshotRepository {
|
||||
export class InMemoryAnalyticsSnapshotRepository implements AnalyticsSnapshotRepository {
|
||||
private snapshots: Map<string, AnalyticsSnapshot> = new Map();
|
||||
private readonly logger: Logger;
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest';
|
||||
import type { Logger } from '@core/shared/application';
|
||||
import { EngagementEvent } from '@core/analytics';
|
||||
import type { Logger } from '@core/shared/domain';
|
||||
import { EngagementEvent } from '@core/analytics/application/repositories/PageViewRepository';
|
||||
import { InMemoryEngagementRepository } from './InMemoryEngagementRepository';
|
||||
|
||||
describe('InMemoryEngagementRepository', () => {
|
||||
|
||||
@@ -4,12 +4,12 @@
|
||||
* In-memory implementation of IEngagementRepository for development/testing.
|
||||
*/
|
||||
|
||||
import type { IEngagementRepository } from '@core/analytics/domain/repositories/IEngagementRepository';
|
||||
import type { EngagementRepository } from '@core/analytics/domain/repositories/EngagementRepository';
|
||||
import { EngagementEvent, type EngagementAction, type EngagementEntityType } from '@core/analytics/domain/entities/EngagementEvent';
|
||||
import { Logger } from '@core/shared/application';
|
||||
import { Logger } from '@core/shared/domain/Logger';
|
||||
|
||||
|
||||
export class InMemoryEngagementRepository implements IEngagementRepository {
|
||||
export class InMemoryEngagementRepository implements EngagementRepository {
|
||||
private events: Map<string, EngagementEvent> = new Map();
|
||||
private logger: Logger;
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest';
|
||||
import type { Logger } from '@core/shared/application';
|
||||
import { PageView } from '@core/analytics';
|
||||
import type { Logger } from '@core/shared/domain';
|
||||
import { PageView } from '@core/analytics/application/repositories/PageViewRepository';
|
||||
import { InMemoryPageViewRepository } from './InMemoryPageViewRepository';
|
||||
|
||||
describe('InMemoryPageViewRepository', () => {
|
||||
|
||||
@@ -4,11 +4,11 @@
|
||||
* In-memory implementation of IPageViewRepository for development/testing.
|
||||
*/
|
||||
|
||||
import type { IPageViewRepository } from '@core/analytics/application/repositories/IPageViewRepository';
|
||||
import type { PageViewRepository } from '@core/analytics/application/repositories/PageViewRepository';
|
||||
import { PageView, type EntityType } from '@core/analytics/domain/entities/PageView';
|
||||
import { Logger } from '@core/shared/application';
|
||||
import { Logger } from '@core/shared/domain';
|
||||
|
||||
export class InMemoryPageViewRepository implements IPageViewRepository {
|
||||
export class InMemoryPageViewRepository implements PageViewRepository {
|
||||
private pageViews: Map<string, PageView> = new Map();
|
||||
private logger: Logger;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user