@eventcatalog/sdk 2.1.1 → 2.1.2
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/domains.d.mts +41 -2
- package/dist/domains.d.ts +41 -2
- package/dist/domains.js +36 -9
- package/dist/domains.js.map +1 -1
- package/dist/domains.mjs +34 -9
- package/dist/domains.mjs.map +1 -1
- package/dist/index.d.mts +19 -15
- package/dist/index.d.ts +19 -15
- package/dist/index.js +156 -124
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +159 -127
- package/dist/index.mjs.map +1 -1
- package/dist/types.d.d.mts +13 -1
- package/dist/types.d.d.ts +13 -1
- package/dist/types.d.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Event, Command, Query, Channel, Service, Domain, Team, User, CustomDoc } from './types.d.mjs';
|
|
1
|
+
import { Event, Command, Query, Channel, Service, Domain, UbiquitousLanguageDictionary, Team, User, CustomDoc } from './types.d.mjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Init the SDK for EventCatalog
|
|
@@ -208,13 +208,7 @@ declare const _default: (path: string) => {
|
|
|
208
208
|
* @returns Query[]|Undefined
|
|
209
209
|
*/
|
|
210
210
|
getQueries: (options: {
|
|
211
|
-
latestOnly
|
|
212
|
-
* Adds a file to the given event
|
|
213
|
-
* @param id - The id of the event to add the file to
|
|
214
|
-
* @param file - File contents to add including the content and the file name
|
|
215
|
-
* @param version - Optional version of the event to add the file to
|
|
216
|
-
* @returns
|
|
217
|
-
*/: boolean;
|
|
211
|
+
latestOnly?: boolean;
|
|
218
212
|
}) => Promise<Query[]>;
|
|
219
213
|
/**
|
|
220
214
|
* Adds a query to EventCatalog
|
|
@@ -431,13 +425,7 @@ declare const _default: (path: string) => {
|
|
|
431
425
|
*/
|
|
432
426
|
writeService: (service: Service, options?: {
|
|
433
427
|
path?: string;
|
|
434
|
-
override
|
|
435
|
-
* Adds a schema to the given event
|
|
436
|
-
* @param id - The id of the event to add the schema to
|
|
437
|
-
* @param schema - Schema contents to add including the content and the file name
|
|
438
|
-
* @param version - Optional version of the event to add the schema to
|
|
439
|
-
* @returns
|
|
440
|
-
*/: boolean;
|
|
428
|
+
override?: boolean;
|
|
441
429
|
versionExistingContent?: boolean;
|
|
442
430
|
}) => Promise<void>;
|
|
443
431
|
/**
|
|
@@ -652,6 +640,22 @@ declare const _default: (path: string) => {
|
|
|
652
640
|
content: string;
|
|
653
641
|
fileName: string;
|
|
654
642
|
}, version?: string) => Promise<void>;
|
|
643
|
+
/**
|
|
644
|
+
* Adds an ubiquitous language dictionary to a domain
|
|
645
|
+
* @param id - The id of the domain to add the ubiquitous language to
|
|
646
|
+
* @param ubiquitousLanguageDictionary - The ubiquitous language dictionary to add
|
|
647
|
+
* @param version - Optional version of the domain to add the ubiquitous language to
|
|
648
|
+
*/
|
|
649
|
+
addUbiquitousLanguageToDomain: (id: string, ubiquitousLanguageDictionary: UbiquitousLanguageDictionary, version?: string) => Promise<void>;
|
|
650
|
+
/**
|
|
651
|
+
* Get the ubiquitous language dictionary from a domain
|
|
652
|
+
* @param id - The id of the domain to get the ubiquitous language from
|
|
653
|
+
* @param version - Optional version of the domain to get the ubiquitous language from
|
|
654
|
+
* @returns
|
|
655
|
+
*/
|
|
656
|
+
getUbiquitousLanguageFromDomain: (id: string, version?: string) => Promise<{
|
|
657
|
+
markdown: any;
|
|
658
|
+
} | undefined>;
|
|
655
659
|
/**
|
|
656
660
|
* Check to see if a domain version exists
|
|
657
661
|
* @param id - The id of the domain
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Event, Command, Query, Channel, Service, Domain, Team, User, CustomDoc } from './types.d.js';
|
|
1
|
+
import { Event, Command, Query, Channel, Service, Domain, UbiquitousLanguageDictionary, Team, User, CustomDoc } from './types.d.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Init the SDK for EventCatalog
|
|
@@ -208,13 +208,7 @@ declare const _default: (path: string) => {
|
|
|
208
208
|
* @returns Query[]|Undefined
|
|
209
209
|
*/
|
|
210
210
|
getQueries: (options: {
|
|
211
|
-
latestOnly
|
|
212
|
-
* Adds a file to the given event
|
|
213
|
-
* @param id - The id of the event to add the file to
|
|
214
|
-
* @param file - File contents to add including the content and the file name
|
|
215
|
-
* @param version - Optional version of the event to add the file to
|
|
216
|
-
* @returns
|
|
217
|
-
*/: boolean;
|
|
211
|
+
latestOnly?: boolean;
|
|
218
212
|
}) => Promise<Query[]>;
|
|
219
213
|
/**
|
|
220
214
|
* Adds a query to EventCatalog
|
|
@@ -431,13 +425,7 @@ declare const _default: (path: string) => {
|
|
|
431
425
|
*/
|
|
432
426
|
writeService: (service: Service, options?: {
|
|
433
427
|
path?: string;
|
|
434
|
-
override
|
|
435
|
-
* Adds a schema to the given event
|
|
436
|
-
* @param id - The id of the event to add the schema to
|
|
437
|
-
* @param schema - Schema contents to add including the content and the file name
|
|
438
|
-
* @param version - Optional version of the event to add the schema to
|
|
439
|
-
* @returns
|
|
440
|
-
*/: boolean;
|
|
428
|
+
override?: boolean;
|
|
441
429
|
versionExistingContent?: boolean;
|
|
442
430
|
}) => Promise<void>;
|
|
443
431
|
/**
|
|
@@ -652,6 +640,22 @@ declare const _default: (path: string) => {
|
|
|
652
640
|
content: string;
|
|
653
641
|
fileName: string;
|
|
654
642
|
}, version?: string) => Promise<void>;
|
|
643
|
+
/**
|
|
644
|
+
* Adds an ubiquitous language dictionary to a domain
|
|
645
|
+
* @param id - The id of the domain to add the ubiquitous language to
|
|
646
|
+
* @param ubiquitousLanguageDictionary - The ubiquitous language dictionary to add
|
|
647
|
+
* @param version - Optional version of the domain to add the ubiquitous language to
|
|
648
|
+
*/
|
|
649
|
+
addUbiquitousLanguageToDomain: (id: string, ubiquitousLanguageDictionary: UbiquitousLanguageDictionary, version?: string) => Promise<void>;
|
|
650
|
+
/**
|
|
651
|
+
* Get the ubiquitous language dictionary from a domain
|
|
652
|
+
* @param id - The id of the domain to get the ubiquitous language from
|
|
653
|
+
* @param version - Optional version of the domain to get the ubiquitous language from
|
|
654
|
+
* @returns
|
|
655
|
+
*/
|
|
656
|
+
getUbiquitousLanguageFromDomain: (id: string, version?: string) => Promise<{
|
|
657
|
+
markdown: any;
|
|
658
|
+
} | undefined>;
|
|
655
659
|
/**
|
|
656
660
|
* Check to see if a domain version exists
|
|
657
661
|
* @param id - The id of the domain
|