@eventcatalog/sdk 2.8.1 → 2.8.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/data-stores.d.mts +179 -0
- package/dist/data-stores.d.ts +179 -0
- package/dist/data-stores.js +387 -0
- package/dist/data-stores.js.map +1 -0
- package/dist/data-stores.mjs +342 -0
- package/dist/data-stores.mjs.map +1 -0
- package/dist/eventcatalog.js +22 -11
- package/dist/eventcatalog.js.map +1 -1
- package/dist/eventcatalog.mjs +22 -11
- package/dist/eventcatalog.mjs.map +1 -1
- package/dist/index.d.mts +15 -17
- package/dist/index.d.ts +15 -17
- package/dist/index.js +22 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +22 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -135,7 +135,12 @@ declare const _default: (path: string) => {
|
|
|
135
135
|
*/
|
|
136
136
|
writeCommand: (command: Command, options?: {
|
|
137
137
|
path?: string;
|
|
138
|
-
override
|
|
138
|
+
override? /**
|
|
139
|
+
* Remove an event by an Event id
|
|
140
|
+
*
|
|
141
|
+
* @param id - The id of the event you want to remove
|
|
142
|
+
*
|
|
143
|
+
*/: boolean;
|
|
139
144
|
versionExistingContent?: boolean;
|
|
140
145
|
format?: "md" | "mdx";
|
|
141
146
|
}) => Promise<void>;
|
|
@@ -151,19 +156,7 @@ declare const _default: (path: string) => {
|
|
|
151
156
|
id: string;
|
|
152
157
|
version?: string;
|
|
153
158
|
}, options?: {
|
|
154
|
-
path
|
|
155
|
-
/**
|
|
156
|
-
* Check to see if an event version exists
|
|
157
|
-
* @param id - The id of the event
|
|
158
|
-
* @param version - The version of the event (supports semver)
|
|
159
|
-
* @returns
|
|
160
|
-
*/
|
|
161
|
-
? /**
|
|
162
|
-
* Check to see if an event version exists
|
|
163
|
-
* @param id - The id of the event
|
|
164
|
-
* @param version - The version of the event (supports semver)
|
|
165
|
-
* @returns
|
|
166
|
-
*/: string;
|
|
159
|
+
path?: string;
|
|
167
160
|
format?: "md" | "mdx";
|
|
168
161
|
override?: boolean;
|
|
169
162
|
}) => Promise<void>;
|
|
@@ -676,7 +669,12 @@ declare const _default: (path: string) => {
|
|
|
676
669
|
*
|
|
677
670
|
*/
|
|
678
671
|
writeDomain: (domain: Domain, options?: {
|
|
679
|
-
path
|
|
672
|
+
path? /**
|
|
673
|
+
* Remove an event to EventCatalog (modeled on the standard POSIX rm utility)
|
|
674
|
+
*
|
|
675
|
+
* @param path - The path to your event, e.g. `/Inventory/InventoryAdjusted`
|
|
676
|
+
*
|
|
677
|
+
*/: string;
|
|
680
678
|
override?: boolean;
|
|
681
679
|
versionExistingContent?: boolean;
|
|
682
680
|
format?: "md" | "mdx";
|
|
@@ -1033,8 +1031,8 @@ declare const _default: (path: string) => {
|
|
|
1033
1031
|
format?: "md" | "mdx";
|
|
1034
1032
|
}) => Promise<void>;
|
|
1035
1033
|
/**
|
|
1036
|
-
* Returns a
|
|
1037
|
-
* @param id - The id of the
|
|
1034
|
+
* Returns a data store from EventCatalog
|
|
1035
|
+
* @param id - The id of the data store to retrieve
|
|
1038
1036
|
* @param version - Optional id of the version to get (supports semver)
|
|
1039
1037
|
* @returns Container|Undefined
|
|
1040
1038
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -135,7 +135,12 @@ declare const _default: (path: string) => {
|
|
|
135
135
|
*/
|
|
136
136
|
writeCommand: (command: Command, options?: {
|
|
137
137
|
path?: string;
|
|
138
|
-
override
|
|
138
|
+
override? /**
|
|
139
|
+
* Remove an event by an Event id
|
|
140
|
+
*
|
|
141
|
+
* @param id - The id of the event you want to remove
|
|
142
|
+
*
|
|
143
|
+
*/: boolean;
|
|
139
144
|
versionExistingContent?: boolean;
|
|
140
145
|
format?: "md" | "mdx";
|
|
141
146
|
}) => Promise<void>;
|
|
@@ -151,19 +156,7 @@ declare const _default: (path: string) => {
|
|
|
151
156
|
id: string;
|
|
152
157
|
version?: string;
|
|
153
158
|
}, options?: {
|
|
154
|
-
path
|
|
155
|
-
/**
|
|
156
|
-
* Check to see if an event version exists
|
|
157
|
-
* @param id - The id of the event
|
|
158
|
-
* @param version - The version of the event (supports semver)
|
|
159
|
-
* @returns
|
|
160
|
-
*/
|
|
161
|
-
? /**
|
|
162
|
-
* Check to see if an event version exists
|
|
163
|
-
* @param id - The id of the event
|
|
164
|
-
* @param version - The version of the event (supports semver)
|
|
165
|
-
* @returns
|
|
166
|
-
*/: string;
|
|
159
|
+
path?: string;
|
|
167
160
|
format?: "md" | "mdx";
|
|
168
161
|
override?: boolean;
|
|
169
162
|
}) => Promise<void>;
|
|
@@ -676,7 +669,12 @@ declare const _default: (path: string) => {
|
|
|
676
669
|
*
|
|
677
670
|
*/
|
|
678
671
|
writeDomain: (domain: Domain, options?: {
|
|
679
|
-
path
|
|
672
|
+
path? /**
|
|
673
|
+
* Remove an event to EventCatalog (modeled on the standard POSIX rm utility)
|
|
674
|
+
*
|
|
675
|
+
* @param path - The path to your event, e.g. `/Inventory/InventoryAdjusted`
|
|
676
|
+
*
|
|
677
|
+
*/: string;
|
|
680
678
|
override?: boolean;
|
|
681
679
|
versionExistingContent?: boolean;
|
|
682
680
|
format?: "md" | "mdx";
|
|
@@ -1033,8 +1031,8 @@ declare const _default: (path: string) => {
|
|
|
1033
1031
|
format?: "md" | "mdx";
|
|
1034
1032
|
}) => Promise<void>;
|
|
1035
1033
|
/**
|
|
1036
|
-
* Returns a
|
|
1037
|
-
* @param id - The id of the
|
|
1034
|
+
* Returns a data store from EventCatalog
|
|
1035
|
+
* @param id - The id of the data store to retrieve
|
|
1038
1036
|
* @param version - Optional id of the version to get (supports semver)
|
|
1039
1037
|
* @returns Container|Undefined
|
|
1040
1038
|
*/
|
package/dist/index.js
CHANGED
|
@@ -1155,6 +1155,17 @@ var writeContainerToService = (directory) => async (container, service, options
|
|
|
1155
1155
|
await writeResource(directory, { ...container }, { ...options, path: pathForContainer, type: "container" });
|
|
1156
1156
|
};
|
|
1157
1157
|
|
|
1158
|
+
// src/data-stores.ts
|
|
1159
|
+
var getDataStore = getContainer;
|
|
1160
|
+
var getDataStores = getContainers;
|
|
1161
|
+
var writeDataStore = writeContainer;
|
|
1162
|
+
var versionDataStore = versionContainer;
|
|
1163
|
+
var rmDataStore = rmContainer;
|
|
1164
|
+
var rmDataStoreById = rmContainerById;
|
|
1165
|
+
var dataStoreHasVersion = containerHasVersion;
|
|
1166
|
+
var addFileToDataStore = addFileToContainer;
|
|
1167
|
+
var writeDataStoreToService = writeContainerToService;
|
|
1168
|
+
|
|
1158
1169
|
// src/index.ts
|
|
1159
1170
|
var index_default = (path5) => {
|
|
1160
1171
|
return {
|
|
@@ -1991,42 +2002,42 @@ var index_default = (path5) => {
|
|
|
1991
2002
|
* @param options - Optional options to write the data store
|
|
1992
2003
|
*
|
|
1993
2004
|
*/
|
|
1994
|
-
writeDataStore:
|
|
2005
|
+
writeDataStore: writeDataStore((0, import_node_path17.join)(path5, "containers")),
|
|
1995
2006
|
/**
|
|
1996
|
-
* Returns a
|
|
1997
|
-
* @param id - The id of the
|
|
2007
|
+
* Returns a data store from EventCatalog
|
|
2008
|
+
* @param id - The id of the data store to retrieve
|
|
1998
2009
|
* @param version - Optional id of the version to get (supports semver)
|
|
1999
2010
|
* @returns Container|Undefined
|
|
2000
2011
|
*/
|
|
2001
|
-
getDataStore:
|
|
2012
|
+
getDataStore: getDataStore((0, import_node_path17.join)(path5)),
|
|
2002
2013
|
/**
|
|
2003
2014
|
* Returns all data stores from EventCatalog
|
|
2004
2015
|
* @param latestOnly - optional boolean, set to true to get only latest versions
|
|
2005
2016
|
* @returns Container[]|Undefined
|
|
2006
2017
|
*/
|
|
2007
|
-
getDataStores:
|
|
2018
|
+
getDataStores: getDataStores((0, import_node_path17.join)(path5)),
|
|
2008
2019
|
/**
|
|
2009
2020
|
* Version a data store by its id
|
|
2010
2021
|
* @param id - The id of the data store to version
|
|
2011
2022
|
*/
|
|
2012
|
-
versionDataStore:
|
|
2023
|
+
versionDataStore: versionDataStore((0, import_node_path17.join)(path5, "containers")),
|
|
2013
2024
|
/**
|
|
2014
2025
|
* Remove a data store by its path
|
|
2015
2026
|
* @param path - The path to the data store to remove
|
|
2016
2027
|
*/
|
|
2017
|
-
rmDataStore:
|
|
2028
|
+
rmDataStore: rmDataStore((0, import_node_path17.join)(path5, "containers")),
|
|
2018
2029
|
/**
|
|
2019
2030
|
* Remove a data store by its id
|
|
2020
2031
|
* @param id - The id of the data store to remove
|
|
2021
2032
|
*/
|
|
2022
|
-
rmDataStoreById:
|
|
2033
|
+
rmDataStoreById: rmDataStoreById((0, import_node_path17.join)(path5)),
|
|
2023
2034
|
/**
|
|
2024
2035
|
* Check to see if a data store version exists
|
|
2025
2036
|
* @param id - The id of the data store
|
|
2026
2037
|
* @param version - The version of the data store (supports semver)
|
|
2027
2038
|
* @returns
|
|
2028
2039
|
*/
|
|
2029
|
-
dataStoreHasVersion:
|
|
2040
|
+
dataStoreHasVersion: dataStoreHasVersion((0, import_node_path17.join)(path5)),
|
|
2030
2041
|
/**
|
|
2031
2042
|
* Adds a file to a data store by its id
|
|
2032
2043
|
* @param id - The id of the data store to add the file to
|
|
@@ -2034,14 +2045,14 @@ var index_default = (path5) => {
|
|
|
2034
2045
|
* @param version - Optional version of the data store to add the file to
|
|
2035
2046
|
* @returns
|
|
2036
2047
|
*/
|
|
2037
|
-
addFileToDataStore:
|
|
2048
|
+
addFileToDataStore: addFileToDataStore((0, import_node_path17.join)(path5)),
|
|
2038
2049
|
/**
|
|
2039
2050
|
* Writes a data store to a service by its id
|
|
2040
2051
|
* @param dataStore - The data store to write
|
|
2041
2052
|
* @param service - The service to write the data store to
|
|
2042
2053
|
* @returns
|
|
2043
2054
|
*/
|
|
2044
|
-
writeDataStoreToService:
|
|
2055
|
+
writeDataStoreToService: writeDataStoreToService((0, import_node_path17.join)(path5))
|
|
2045
2056
|
};
|
|
2046
2057
|
};
|
|
2047
2058
|
//# sourceMappingURL=index.js.map
|