@eventcatalog/sdk 0.1.4 → 1.1.0

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/index.js CHANGED
@@ -33,7 +33,7 @@ __export(src_exports, {
33
33
  default: () => src_default
34
34
  });
35
35
  module.exports = __toCommonJS(src_exports);
36
- var import_node_path6 = require("path");
36
+ var import_node_path7 = require("path");
37
37
 
38
38
  // src/events.ts
39
39
  var import_promises3 = __toESM(require("fs/promises"));
@@ -197,10 +197,17 @@ var getFileFromResource = async (catalogDir, id, file, version) => {
197
197
  // src/events.ts
198
198
  var getEvent = (directory) => async (id, version) => getResource(directory, id, version, { type: "event" });
199
199
  var writeEvent = (directory) => async (event, options = { path: "" }) => writeResource(directory, { ...event }, { ...options, type: "event" });
200
+ var writeEventToService = (directory) => async (event, service, options = { path: "" }) => {
201
+ let pathForEvent = service.version && service.version !== "latest" ? `/${service.id}/versioned/${service.version}/events` : `/${service.id}/events`;
202
+ pathForEvent = (0, import_node_path2.join)(pathForEvent, event.id);
203
+ await writeResource(directory, { ...event }, { ...options, path: pathForEvent, type: "event" });
204
+ };
200
205
  var rmEvent = (directory) => async (path) => {
201
206
  await import_promises3.default.rm((0, import_node_path2.join)(directory, path), { recursive: true });
202
207
  };
203
- var rmEventById = (directory) => async (id, version) => rmResourceById(directory, id, version, { type: "event" });
208
+ var rmEventById = (directory) => async (id, version) => {
209
+ await rmResourceById(directory, id, version, { type: "event" });
210
+ };
204
211
  var versionEvent = (directory) => async (id) => versionResource(directory, id);
205
212
  var addFileToEvent = (directory) => async (id, file, version) => addFileToResource(directory, id, file, version);
206
213
  var addSchemaToEvent = (directory) => async (id, schema, version) => {
@@ -216,6 +223,11 @@ var import_promises4 = __toESM(require("fs/promises"));
216
223
  var import_node_path3 = require("path");
217
224
  var getCommand = (directory) => async (id, version) => getResource(directory, id, version, { type: "command" });
218
225
  var writeCommand = (directory) => async (command, options = { path: "" }) => writeResource(directory, { ...command }, { ...options, type: "command" });
226
+ var writeCommandToService = (directory) => async (command, service, options = { path: "" }) => {
227
+ let pathForEvent = service.version && service.version !== "latest" ? `/${service.id}/versioned/${service.version}/commands` : `/${service.id}/commands`;
228
+ pathForEvent = (0, import_node_path3.join)(pathForEvent, command.id);
229
+ await writeResource(directory, { ...command }, { ...options, path: pathForEvent, type: "command" });
230
+ };
219
231
  var rmCommand = (directory) => async (path) => {
220
232
  await import_promises4.default.rm((0, import_node_path3.join)(directory, path), { recursive: true });
221
233
  };
@@ -230,9 +242,35 @@ var commandHasVersion = (directory) => async (id, version) => {
230
242
  return !!file;
231
243
  };
232
244
 
233
- // src/services.ts
245
+ // src/queries.ts
234
246
  var import_promises5 = __toESM(require("fs/promises"));
235
247
  var import_node_path4 = require("path");
248
+ var getQuery = (directory) => async (id, version) => getResource(directory, id, version, { type: "query" });
249
+ var writeQuery = (directory) => async (query, options = { path: "" }) => writeResource(directory, { ...query }, { ...options, type: "query" });
250
+ var writeQueryToService = (directory) => async (query, service, options = { path: "" }) => {
251
+ let pathForQuery = service.version && service.version !== "latest" ? `/${service.id}/versioned/${service.version}/queries` : `/${service.id}/queries`;
252
+ pathForQuery = (0, import_node_path4.join)(pathForQuery, query.id);
253
+ await writeResource(directory, { ...query }, { ...options, path: pathForQuery, type: "query" });
254
+ };
255
+ var rmQuery = (directory) => async (path) => {
256
+ await import_promises5.default.rm((0, import_node_path4.join)(directory, path), { recursive: true });
257
+ };
258
+ var rmQueryById = (directory) => async (id, version) => {
259
+ await rmResourceById(directory, id, version, { type: "query" });
260
+ };
261
+ var versionQuery = (directory) => async (id) => versionResource(directory, id);
262
+ var addFileToQuery = (directory) => async (id, file, version) => addFileToResource(directory, id, file, version);
263
+ var addSchemaToQuery = (directory) => async (id, schema, version) => {
264
+ await addFileToQuery(directory)(id, { content: schema.schema, fileName: schema.fileName }, version);
265
+ };
266
+ var queryHasVersion = (directory) => async (id, version) => {
267
+ const file = await findFileById(directory, id, version);
268
+ return !!file;
269
+ };
270
+
271
+ // src/services.ts
272
+ var import_promises6 = __toESM(require("fs/promises"));
273
+ var import_node_path5 = require("path");
236
274
  var getService = (directory) => async (id, version) => getResource(directory, id, version, { type: "service" });
237
275
  var writeService = (directory) => async (service, options = { path: "" }) => {
238
276
  const resource = { ...service };
@@ -244,9 +282,14 @@ var writeService = (directory) => async (service, options = { path: "" }) => {
244
282
  }
245
283
  return writeResource(directory, resource, { ...options, type: "service" });
246
284
  };
285
+ var writeServiceToDomain = (directory) => async (service, domain, options = { path: "" }) => {
286
+ let pathForService = domain.version && domain.version !== "latest" ? `/${domain.id}/versioned/${domain.version}/services` : `/${domain.id}/services`;
287
+ pathForService = (0, import_node_path5.join)(pathForService, service.id);
288
+ await writeResource(directory, { ...service }, { ...options, path: pathForService, type: "service" });
289
+ };
247
290
  var versionService = (directory) => async (id) => versionResource(directory, id);
248
291
  var rmService = (directory) => async (path) => {
249
- await import_promises5.default.rm((0, import_node_path4.join)(directory, path), { recursive: true });
292
+ await import_promises6.default.rm((0, import_node_path5.join)(directory, path), { recursive: true });
250
293
  };
251
294
  var rmServiceById = (directory) => async (id, version) => rmResourceById(directory, id, version, { type: "service" });
252
295
  var addFileToService = (directory) => async (id, file, version) => addFileToResource(directory, id, file, version);
@@ -264,7 +307,7 @@ var getSpecificationFilesForService = (directory) => async (id, version) => {
264
307
  throw new Error(`Specification file name for ${specFile} is undefined`);
265
308
  }
266
309
  const rawFile = await getFileFromResource(directory, id, { fileName }, version);
267
- return { key: specFile, content: rawFile, fileName, path: (0, import_node_path4.join)((0, import_node_path4.dirname)(filePathToService), fileName) };
310
+ return { key: specFile, content: rawFile, fileName, path: (0, import_node_path5.join)((0, import_node_path5.dirname)(filePathToService), fileName) };
268
311
  });
269
312
  specs = await Promise.all(getSpecs);
270
313
  }
@@ -304,13 +347,13 @@ var serviceHasVersion = (directory) => async (id, version) => {
304
347
  };
305
348
 
306
349
  // src/domains.ts
307
- var import_promises6 = __toESM(require("fs/promises"));
308
- var import_node_path5 = require("path");
350
+ var import_promises7 = __toESM(require("fs/promises"));
351
+ var import_node_path6 = require("path");
309
352
  var getDomain = (directory) => async (id, version) => getResource(directory, id, version, { type: "domain" });
310
353
  var writeDomain = (directory) => async (domain, options = { path: "" }) => writeResource(directory, { ...domain }, { ...options, type: "domain" });
311
354
  var versionDomain = (directory) => async (id) => versionResource(directory, id);
312
355
  var rmDomain = (directory) => async (path) => {
313
- await import_promises6.default.rm((0, import_node_path5.join)(directory, path), { recursive: true });
356
+ await import_promises7.default.rm((0, import_node_path6.join)(directory, path), { recursive: true });
314
357
  };
315
358
  var rmDomainById = (directory) => async (id, version) => rmResourceById(directory, id, version, { type: "domain" });
316
359
  var addFileToDomain = (directory) => async (id, file, version) => addFileToResource(directory, id, file, version);
@@ -341,7 +384,7 @@ var src_default = (path) => {
341
384
  * @param version - Optional id of the version to get (supports semver)
342
385
  * @returns Event|Undefined
343
386
  */
344
- getEvent: getEvent((0, import_node_path6.join)(path, "events")),
387
+ getEvent: getEvent((0, import_node_path7.join)(path)),
345
388
  /**
346
389
  * Adds an event to EventCatalog
347
390
  *
@@ -349,26 +392,35 @@ var src_default = (path) => {
349
392
  * @param options - Optional options to write the event
350
393
  *
351
394
  */
352
- writeEvent: writeEvent((0, import_node_path6.join)(path, "events")),
395
+ writeEvent: writeEvent((0, import_node_path7.join)(path, "events")),
396
+ /**
397
+ * Adds an event to a service in EventCatalog
398
+ *
399
+ * @param event - The event to write to the service
400
+ * @param service - The service and it's id to write to the event to
401
+ * @param options - Optional options to write the event
402
+ *
403
+ */
404
+ writeEventToService: writeEventToService((0, import_node_path7.join)(path, "services")),
353
405
  /**
354
406
  * Remove an event to EventCatalog (modeled on the standard POSIX rm utility)
355
407
  *
356
408
  * @param path - The path to your event, e.g. `/Inventory/InventoryAdjusted`
357
409
  *
358
410
  */
359
- rmEvent: rmEvent((0, import_node_path6.join)(path, "events")),
411
+ rmEvent: rmEvent((0, import_node_path7.join)(path, "events")),
360
412
  /**
361
413
  * Remove an event by an Event id
362
414
  *
363
415
  * @param id - The id of the event you want to remove
364
416
  *
365
417
  */
366
- rmEventById: rmEventById((0, import_node_path6.join)(path, "events")),
418
+ rmEventById: rmEventById((0, import_node_path7.join)(path)),
367
419
  /**
368
420
  * Moves a given event id to the version directory
369
421
  * @param directory
370
422
  */
371
- versionEvent: versionEvent((0, import_node_path6.join)(path, "events")),
423
+ versionEvent: versionEvent((0, import_node_path7.join)(path)),
372
424
  /**
373
425
  * Adds a file to the given event
374
426
  * @param id - The id of the event to add the file to
@@ -376,7 +428,7 @@ var src_default = (path) => {
376
428
  * @param version - Optional version of the event to add the file to
377
429
  * @returns
378
430
  */
379
- addFileToEvent: addFileToEvent((0, import_node_path6.join)(path, "events")),
431
+ addFileToEvent: addFileToEvent((0, import_node_path7.join)(path)),
380
432
  /**
381
433
  * Adds a schema to the given event
382
434
  * @param id - The id of the event to add the schema to
@@ -384,14 +436,14 @@ var src_default = (path) => {
384
436
  * @param version - Optional version of the event to add the schema to
385
437
  * @returns
386
438
  */
387
- addSchemaToEvent: addSchemaToEvent((0, import_node_path6.join)(path, "events")),
439
+ addSchemaToEvent: addSchemaToEvent((0, import_node_path7.join)(path)),
388
440
  /**
389
441
  * Check to see if an event version exists
390
442
  * @param id - The id of the event
391
443
  * @param version - The version of the event (supports semver)
392
444
  * @returns
393
445
  */
394
- eventHasVersion: eventHasVersion((0, import_node_path6.join)(path, "events")),
446
+ eventHasVersion: eventHasVersion((0, import_node_path7.join)(path)),
395
447
  /**
396
448
  * ================================
397
449
  * Commands
@@ -403,7 +455,7 @@ var src_default = (path) => {
403
455
  * @param version - Optional id of the version to get (supports semver)
404
456
  * @returns Command|Undefined
405
457
  */
406
- getCommand: getCommand((0, import_node_path6.join)(path, "commands")),
458
+ getCommand: getCommand((0, import_node_path7.join)(path)),
407
459
  /**
408
460
  * Adds an command to EventCatalog
409
461
  *
@@ -411,26 +463,35 @@ var src_default = (path) => {
411
463
  * @param options - Optional options to write the command
412
464
  *
413
465
  */
414
- writeCommand: writeCommand((0, import_node_path6.join)(path, "commands")),
466
+ writeCommand: writeCommand((0, import_node_path7.join)(path, "commands")),
467
+ /**
468
+ * Adds a command to a service in EventCatalog
469
+ *
470
+ * @param command - The command to write to the service
471
+ * @param service - The service and it's id to write to the command to
472
+ * @param options - Optional options to write the command
473
+ *
474
+ */
475
+ writeCommandToService: writeCommandToService((0, import_node_path7.join)(path, "services")),
415
476
  /**
416
477
  * Remove an command to EventCatalog (modeled on the standard POSIX rm utility)
417
478
  *
418
479
  * @param path - The path to your command, e.g. `/Inventory/InventoryAdjusted`
419
480
  *
420
481
  */
421
- rmCommand: rmCommand((0, import_node_path6.join)(path, "commands")),
482
+ rmCommand: rmCommand((0, import_node_path7.join)(path, "commands")),
422
483
  /**
423
484
  * Remove an command by an Event id
424
485
  *
425
486
  * @param id - The id of the command you want to remove
426
487
  *
427
488
  */
428
- rmCommandById: rmCommandById((0, import_node_path6.join)(path, "commands")),
489
+ rmCommandById: rmCommandById((0, import_node_path7.join)(path)),
429
490
  /**
430
491
  * Moves a given command id to the version directory
431
492
  * @param directory
432
493
  */
433
- versionCommand: versionCommand((0, import_node_path6.join)(path, "commands")),
494
+ versionCommand: versionCommand((0, import_node_path7.join)(path)),
434
495
  /**
435
496
  * Adds a file to the given command
436
497
  * @param id - The id of the command to add the file to
@@ -438,7 +499,7 @@ var src_default = (path) => {
438
499
  * @param version - Optional version of the command to add the file to
439
500
  * @returns
440
501
  */
441
- addFileToCommand: addFileToCommand((0, import_node_path6.join)(path, "commands")),
502
+ addFileToCommand: addFileToCommand((0, import_node_path7.join)(path)),
442
503
  /**
443
504
  * Adds a schema to the given command
444
505
  * @param id - The id of the command to add the schema to
@@ -446,14 +507,85 @@ var src_default = (path) => {
446
507
  * @param version - Optional version of the command to add the schema to
447
508
  * @returns
448
509
  */
449
- addSchemaToCommand: addSchemaToCommand((0, import_node_path6.join)(path, "commands")),
510
+ addSchemaToCommand: addSchemaToCommand((0, import_node_path7.join)(path)),
450
511
  /**
451
512
  * Check to see if a command version exists
452
513
  * @param id - The id of the command
453
514
  * @param version - The version of the command (supports semver)
454
515
  * @returns
455
516
  */
456
- commandHasVersion: commandHasVersion((0, import_node_path6.join)(path, "commands")),
517
+ commandHasVersion: commandHasVersion((0, import_node_path7.join)(path)),
518
+ /**
519
+ * ================================
520
+ * Queries
521
+ * ================================
522
+ */
523
+ /**
524
+ * Returns a query from EventCatalog
525
+ * @param id - The id of the query to retrieve
526
+ * @param version - Optional id of the version to get (supports semver)
527
+ * @returns Query|Undefined
528
+ */
529
+ getQuery: getQuery((0, import_node_path7.join)(path)),
530
+ /**
531
+ * Adds a query to EventCatalog
532
+ *
533
+ * @param query - The query to write
534
+ * @param options - Optional options to write the event
535
+ *
536
+ */
537
+ writeQuery: writeQuery((0, import_node_path7.join)(path, "queries")),
538
+ /**
539
+ * Adds a query to a service in EventCatalog
540
+ *
541
+ * @param query - The query to write to the service
542
+ * @param service - The service and it's id to write to the query to
543
+ * @param options - Optional options to write the query
544
+ *
545
+ */
546
+ writeQueryToService: writeQueryToService((0, import_node_path7.join)(path, "services")),
547
+ /**
548
+ * Remove an query to EventCatalog (modeled on the standard POSIX rm utility)
549
+ *
550
+ * @param path - The path to your query, e.g. `/Orders/GetOrder`
551
+ *
552
+ */
553
+ rmQuery: rmQuery((0, import_node_path7.join)(path, "queries")),
554
+ /**
555
+ * Remove a query by a Query id
556
+ *
557
+ * @param id - The id of the query you want to remove
558
+ *
559
+ */
560
+ rmQueryById: rmQueryById((0, import_node_path7.join)(path)),
561
+ /**
562
+ * Moves a given query id to the version directory
563
+ * @param directory
564
+ */
565
+ versionQuery: versionQuery((0, import_node_path7.join)(path)),
566
+ /**
567
+ * Adds a file to the given query
568
+ * @param id - The id of the query to add the file to
569
+ * @param file - File contents to add including the content and the file name
570
+ * @param version - Optional version of the query to add the file to
571
+ * @returns
572
+ */
573
+ addFileToQuery: addFileToQuery((0, import_node_path7.join)(path)),
574
+ /**
575
+ * Adds a schema to the given query
576
+ * @param id - The id of the query to add the schema to
577
+ * @param schema - Schema contents to add including the content and the file name
578
+ * @param version - Optional version of the query to add the schema to
579
+ * @returns
580
+ */
581
+ addSchemaToQuery: addSchemaToQuery((0, import_node_path7.join)(path)),
582
+ /**
583
+ * Check to see if an query version exists
584
+ * @param id - The id of the query
585
+ * @param version - The version of the query (supports semver)
586
+ * @returns
587
+ */
588
+ queryHasVersion: queryHasVersion((0, import_node_path7.join)(path)),
457
589
  /**
458
590
  * ================================
459
591
  * SERVICES
@@ -466,33 +598,42 @@ var src_default = (path) => {
466
598
  * @param options - Optional options to write the event
467
599
  *
468
600
  */
469
- writeService: writeService((0, import_node_path6.join)(path, "services")),
601
+ writeService: writeService((0, import_node_path7.join)(path, "services")),
602
+ /**
603
+ * Adds a service to a domain in EventCatalog
604
+ *
605
+ * @param service - The service to write
606
+ * @param domain - The domain to add the service to
607
+ * @param options - Optional options to write the event
608
+ *
609
+ */
610
+ writeServiceToDomain: writeServiceToDomain((0, import_node_path7.join)(path, "domains")),
470
611
  /**
471
612
  * Returns a service from EventCatalog
472
613
  * @param id - The id of the service to retrieve
473
614
  * @param version - Optional id of the version to get (supports semver)
474
615
  * @returns Service|Undefined
475
616
  */
476
- getService: getService((0, import_node_path6.join)(path, "services")),
617
+ getService: getService((0, import_node_path7.join)(path)),
477
618
  /**
478
619
  * Moves a given service id to the version directory
479
620
  * @param directory
480
621
  */
481
- versionService: versionService((0, import_node_path6.join)(path, "services")),
622
+ versionService: versionService((0, import_node_path7.join)(path)),
482
623
  /**
483
624
  * Remove a service from EventCatalog (modeled on the standard POSIX rm utility)
484
625
  *
485
626
  * @param path - The path to your service, e.g. `/InventoryService`
486
627
  *
487
628
  */
488
- rmService: rmService((0, import_node_path6.join)(path, "services")),
629
+ rmService: rmService((0, import_node_path7.join)(path, "services")),
489
630
  /**
490
631
  * Remove an service by an service id
491
632
  *
492
633
  * @param id - The id of the service you want to remove
493
634
  *
494
635
  */
495
- rmServiceById: rmServiceById((0, import_node_path6.join)(path, "services")),
636
+ rmServiceById: rmServiceById((0, import_node_path7.join)(path)),
496
637
  /**
497
638
  * Adds a file to the given service
498
639
  * @param id - The id of the service to add the file to
@@ -500,21 +641,21 @@ var src_default = (path) => {
500
641
  * @param version - Optional version of the service to add the file to
501
642
  * @returns
502
643
  */
503
- addFileToService: addFileToService((0, import_node_path6.join)(path, "services")),
644
+ addFileToService: addFileToService((0, import_node_path7.join)(path)),
504
645
  /**
505
646
  * Returns the specifications for a given service
506
647
  * @param id - The id of the service to retrieve the specifications for
507
648
  * @param version - Optional version of the service
508
649
  * @returns
509
650
  */
510
- getSpecificationFilesForService: getSpecificationFilesForService((0, import_node_path6.join)(path, "services")),
651
+ getSpecificationFilesForService: getSpecificationFilesForService((0, import_node_path7.join)(path)),
511
652
  /**
512
653
  * Check to see if a service version exists
513
654
  * @param id - The id of the service
514
655
  * @param version - The version of the service (supports semver)
515
656
  * @returns
516
657
  */
517
- serviceHasVersion: serviceHasVersion((0, import_node_path6.join)(path, "services")),
658
+ serviceHasVersion: serviceHasVersion((0, import_node_path7.join)(path)),
518
659
  /**
519
660
  * ================================
520
661
  * Domains
@@ -527,33 +668,33 @@ var src_default = (path) => {
527
668
  * @param options - Optional options to write the event
528
669
  *
529
670
  */
530
- writeDomain: writeDomain((0, import_node_path6.join)(path, "domains")),
671
+ writeDomain: writeDomain((0, import_node_path7.join)(path, "domains")),
531
672
  /**
532
673
  * Returns a domain from EventCatalog
533
674
  * @param id - The id of the domain to retrieve
534
675
  * @param version - Optional id of the version to get (supports semver)
535
676
  * @returns Domain|Undefined
536
677
  */
537
- getDomain: getDomain((0, import_node_path6.join)(path, "domains")),
678
+ getDomain: getDomain((0, import_node_path7.join)(path, "domains")),
538
679
  /**
539
680
  * Moves a given domain id to the version directory
540
681
  * @param directory
541
682
  */
542
- versionDomain: versionDomain((0, import_node_path6.join)(path, "domains")),
683
+ versionDomain: versionDomain((0, import_node_path7.join)(path, "domains")),
543
684
  /**
544
685
  * Remove a domain from EventCatalog (modeled on the standard POSIX rm utility)
545
686
  *
546
687
  * @param path - The path to your domain, e.g. `/Payment`
547
688
  *
548
689
  */
549
- rmDomain: rmDomain((0, import_node_path6.join)(path, "domains")),
690
+ rmDomain: rmDomain((0, import_node_path7.join)(path, "domains")),
550
691
  /**
551
692
  * Remove an service by an domain id
552
693
  *
553
694
  * @param id - The id of the domain you want to remove
554
695
  *
555
696
  */
556
- rmDomainById: rmDomainById((0, import_node_path6.join)(path, "domains")),
697
+ rmDomainById: rmDomainById((0, import_node_path7.join)(path, "domains")),
557
698
  /**
558
699
  * Adds a file to the given domain
559
700
  * @param id - The id of the domain to add the file to
@@ -561,7 +702,7 @@ var src_default = (path) => {
561
702
  * @param version - Optional version of the domain to add the file to
562
703
  * @returns
563
704
  */
564
- addFileToDomain: addFileToDomain((0, import_node_path6.join)(path, "domains")),
705
+ addFileToDomain: addFileToDomain((0, import_node_path7.join)(path, "domains")),
565
706
  /**
566
707
  * Add an event to a service by it's id.
567
708
  *
@@ -581,7 +722,7 @@ var src_default = (path) => {
581
722
  *
582
723
  * ```
583
724
  */
584
- addEventToService: addMessageToService((0, import_node_path6.join)(path, "services")),
725
+ addEventToService: addMessageToService((0, import_node_path7.join)(path)),
585
726
  /**
586
727
  * Add a command to a service by it's id.
587
728
  *
@@ -601,14 +742,14 @@ var src_default = (path) => {
601
742
  *
602
743
  * ```
603
744
  */
604
- addCommandToService: addMessageToService((0, import_node_path6.join)(path, "services")),
745
+ addCommandToService: addMessageToService((0, import_node_path7.join)(path)),
605
746
  /**
606
747
  * Check to see if a domain version exists
607
748
  * @param id - The id of the domain
608
749
  * @param version - The version of the domain (supports semver)
609
750
  * @returns
610
751
  */
611
- domainHasVersion: domainHasVersion((0, import_node_path6.join)(path, "domains")),
752
+ domainHasVersion: domainHasVersion((0, import_node_path7.join)(path)),
612
753
  /**
613
754
  * Adds a given service to a domain
614
755
  * @param id - The id of the domain
@@ -616,7 +757,7 @@ var src_default = (path) => {
616
757
  * @param version - (Optional) The version of the domain to add the service to
617
758
  * @returns
618
759
  */
619
- addServiceToDomain: addServiceToDomain((0, import_node_path6.join)(path, "domains"))
760
+ addServiceToDomain: addServiceToDomain((0, import_node_path7.join)(path, "domains"))
620
761
  };
621
762
  };
622
763
  //# sourceMappingURL=index.js.map