@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.mjs
CHANGED
|
@@ -1121,6 +1121,17 @@ var writeContainerToService = (directory) => async (container, service, options
|
|
|
1121
1121
|
await writeResource(directory, { ...container }, { ...options, path: pathForContainer, type: "container" });
|
|
1122
1122
|
};
|
|
1123
1123
|
|
|
1124
|
+
// src/data-stores.ts
|
|
1125
|
+
var getDataStore = getContainer;
|
|
1126
|
+
var getDataStores = getContainers;
|
|
1127
|
+
var writeDataStore = writeContainer;
|
|
1128
|
+
var versionDataStore = versionContainer;
|
|
1129
|
+
var rmDataStore = rmContainer;
|
|
1130
|
+
var rmDataStoreById = rmContainerById;
|
|
1131
|
+
var dataStoreHasVersion = containerHasVersion;
|
|
1132
|
+
var addFileToDataStore = addFileToContainer;
|
|
1133
|
+
var writeDataStoreToService = writeContainerToService;
|
|
1134
|
+
|
|
1124
1135
|
// src/index.ts
|
|
1125
1136
|
var index_default = (path5) => {
|
|
1126
1137
|
return {
|
|
@@ -1957,42 +1968,42 @@ var index_default = (path5) => {
|
|
|
1957
1968
|
* @param options - Optional options to write the data store
|
|
1958
1969
|
*
|
|
1959
1970
|
*/
|
|
1960
|
-
writeDataStore:
|
|
1971
|
+
writeDataStore: writeDataStore(join16(path5, "containers")),
|
|
1961
1972
|
/**
|
|
1962
|
-
* Returns a
|
|
1963
|
-
* @param id - The id of the
|
|
1973
|
+
* Returns a data store from EventCatalog
|
|
1974
|
+
* @param id - The id of the data store to retrieve
|
|
1964
1975
|
* @param version - Optional id of the version to get (supports semver)
|
|
1965
1976
|
* @returns Container|Undefined
|
|
1966
1977
|
*/
|
|
1967
|
-
getDataStore:
|
|
1978
|
+
getDataStore: getDataStore(join16(path5)),
|
|
1968
1979
|
/**
|
|
1969
1980
|
* Returns all data stores from EventCatalog
|
|
1970
1981
|
* @param latestOnly - optional boolean, set to true to get only latest versions
|
|
1971
1982
|
* @returns Container[]|Undefined
|
|
1972
1983
|
*/
|
|
1973
|
-
getDataStores:
|
|
1984
|
+
getDataStores: getDataStores(join16(path5)),
|
|
1974
1985
|
/**
|
|
1975
1986
|
* Version a data store by its id
|
|
1976
1987
|
* @param id - The id of the data store to version
|
|
1977
1988
|
*/
|
|
1978
|
-
versionDataStore:
|
|
1989
|
+
versionDataStore: versionDataStore(join16(path5, "containers")),
|
|
1979
1990
|
/**
|
|
1980
1991
|
* Remove a data store by its path
|
|
1981
1992
|
* @param path - The path to the data store to remove
|
|
1982
1993
|
*/
|
|
1983
|
-
rmDataStore:
|
|
1994
|
+
rmDataStore: rmDataStore(join16(path5, "containers")),
|
|
1984
1995
|
/**
|
|
1985
1996
|
* Remove a data store by its id
|
|
1986
1997
|
* @param id - The id of the data store to remove
|
|
1987
1998
|
*/
|
|
1988
|
-
rmDataStoreById:
|
|
1999
|
+
rmDataStoreById: rmDataStoreById(join16(path5)),
|
|
1989
2000
|
/**
|
|
1990
2001
|
* Check to see if a data store version exists
|
|
1991
2002
|
* @param id - The id of the data store
|
|
1992
2003
|
* @param version - The version of the data store (supports semver)
|
|
1993
2004
|
* @returns
|
|
1994
2005
|
*/
|
|
1995
|
-
dataStoreHasVersion:
|
|
2006
|
+
dataStoreHasVersion: dataStoreHasVersion(join16(path5)),
|
|
1996
2007
|
/**
|
|
1997
2008
|
* Adds a file to a data store by its id
|
|
1998
2009
|
* @param id - The id of the data store to add the file to
|
|
@@ -2000,14 +2011,14 @@ var index_default = (path5) => {
|
|
|
2000
2011
|
* @param version - Optional version of the data store to add the file to
|
|
2001
2012
|
* @returns
|
|
2002
2013
|
*/
|
|
2003
|
-
addFileToDataStore:
|
|
2014
|
+
addFileToDataStore: addFileToDataStore(join16(path5)),
|
|
2004
2015
|
/**
|
|
2005
2016
|
* Writes a data store to a service by its id
|
|
2006
2017
|
* @param dataStore - The data store to write
|
|
2007
2018
|
* @param service - The service to write the data store to
|
|
2008
2019
|
* @returns
|
|
2009
2020
|
*/
|
|
2010
|
-
writeDataStoreToService:
|
|
2021
|
+
writeDataStoreToService: writeDataStoreToService(join16(path5))
|
|
2011
2022
|
};
|
|
2012
2023
|
};
|
|
2013
2024
|
export {
|