import { InjectionToken, inject } from '@angular/core';
import { PartnerHierarchyGateway } from './partner-hierarchy-gateway.interface';
import { PartnerHierarchyApiGateway } from './partner-hierarchy-api.gateway';

/** Swap point for docs/backend/PARTNER-PROVISIONING-API-CONTRACT.md §4, §6. */
export const PARTNER_HIERARCHY_GATEWAY = new InjectionToken<PartnerHierarchyGateway>('PARTNER_HIERARCHY_GATEWAY', {
  providedIn: 'root',
  factory: () => inject(PartnerHierarchyApiGateway),
});
