Adds InjectionToken + factory for Orders, Products, Users, Transactions, Monitoring, Moderation (mirrors existing Categories/Dashboard pattern) and repoints their facades plus the derived Analytics/Customers facades and admin-order-watcher off the mock LocalGateway class directly. No behavior change today - still resolves to the mock - but a real backend can now be bound per domain with zero facade edits. Docs: full gap analysis of Product Plan v3.1 against current repo state, and a phased delivery plan (10 phases, 34 sprints, 5 tracks) breaking every identified gap into scoped, sequenced work. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
10 lines
484 B
TypeScript
10 lines
484 B
TypeScript
import { InjectionToken, inject } from '@angular/core';
|
|
import { AdminUsersGateway } from './admin-users-gateway.interface';
|
|
import { AdminUsersLocalGateway } from './admin-users-local.gateway';
|
|
|
|
/** Swap point for a real Users backend - see BACKEND-API-REFERENCE.md §8 (no seam existed before this token). */
|
|
export const ADMIN_USERS_GATEWAY = new InjectionToken<AdminUsersGateway>('ADMIN_USERS_GATEWAY', {
|
|
providedIn: 'root',
|
|
factory: () => inject(AdminUsersLocalGateway),
|
|
});
|