Optionally specify a version to add the service to a specific version of the domain.
@example
import utils from'@eventcatalog/utils'; // Adds a service to the domain const{ addServiceToDomain }=utils('/path/to/eventcatalog'); // Adds a service (Orders Service) to the domain (Orders) awaitaddServiceToDomain('Orders',{ service:'Order Service', version:'2.0.0'}); // Adds a service (Orders Service) to the domain (Orders) with a specific version awaitaddServiceToDomain('Orders',{ service:'Order Service', version:'2.0.0'},'1.0.0');
Add a service to a domain by it's id.
Optionally specify a version to add the service to a specific version of the domain.