@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/eventcatalog.mjs
CHANGED
|
@@ -1028,6 +1028,17 @@ var writeContainerToService = (directory) => async (container, service, options
|
|
|
1028
1028
|
await writeResource(directory, { ...container }, { ...options, path: pathForContainer, type: "container" });
|
|
1029
1029
|
};
|
|
1030
1030
|
|
|
1031
|
+
// src/data-stores.ts
|
|
1032
|
+
var getDataStore = getContainer;
|
|
1033
|
+
var getDataStores = getContainers;
|
|
1034
|
+
var writeDataStore = writeContainer;
|
|
1035
|
+
var versionDataStore = versionContainer;
|
|
1036
|
+
var rmDataStore = rmContainer;
|
|
1037
|
+
var rmDataStoreById = rmContainerById;
|
|
1038
|
+
var dataStoreHasVersion = containerHasVersion;
|
|
1039
|
+
var addFileToDataStore = addFileToContainer;
|
|
1040
|
+
var writeDataStoreToService = writeContainerToService;
|
|
1041
|
+
|
|
1031
1042
|
// src/index.ts
|
|
1032
1043
|
var index_default = (path5) => {
|
|
1033
1044
|
return {
|
|
@@ -1864,42 +1875,42 @@ var index_default = (path5) => {
|
|
|
1864
1875
|
* @param options - Optional options to write the data store
|
|
1865
1876
|
*
|
|
1866
1877
|
*/
|
|
1867
|
-
writeDataStore:
|
|
1878
|
+
writeDataStore: writeDataStore(join15(path5, "containers")),
|
|
1868
1879
|
/**
|
|
1869
|
-
* Returns a
|
|
1870
|
-
* @param id - The id of the
|
|
1880
|
+
* Returns a data store from EventCatalog
|
|
1881
|
+
* @param id - The id of the data store to retrieve
|
|
1871
1882
|
* @param version - Optional id of the version to get (supports semver)
|
|
1872
1883
|
* @returns Container|Undefined
|
|
1873
1884
|
*/
|
|
1874
|
-
getDataStore:
|
|
1885
|
+
getDataStore: getDataStore(join15(path5)),
|
|
1875
1886
|
/**
|
|
1876
1887
|
* Returns all data stores from EventCatalog
|
|
1877
1888
|
* @param latestOnly - optional boolean, set to true to get only latest versions
|
|
1878
1889
|
* @returns Container[]|Undefined
|
|
1879
1890
|
*/
|
|
1880
|
-
getDataStores:
|
|
1891
|
+
getDataStores: getDataStores(join15(path5)),
|
|
1881
1892
|
/**
|
|
1882
1893
|
* Version a data store by its id
|
|
1883
1894
|
* @param id - The id of the data store to version
|
|
1884
1895
|
*/
|
|
1885
|
-
versionDataStore:
|
|
1896
|
+
versionDataStore: versionDataStore(join15(path5, "containers")),
|
|
1886
1897
|
/**
|
|
1887
1898
|
* Remove a data store by its path
|
|
1888
1899
|
* @param path - The path to the data store to remove
|
|
1889
1900
|
*/
|
|
1890
|
-
rmDataStore:
|
|
1901
|
+
rmDataStore: rmDataStore(join15(path5, "containers")),
|
|
1891
1902
|
/**
|
|
1892
1903
|
* Remove a data store by its id
|
|
1893
1904
|
* @param id - The id of the data store to remove
|
|
1894
1905
|
*/
|
|
1895
|
-
rmDataStoreById:
|
|
1906
|
+
rmDataStoreById: rmDataStoreById(join15(path5)),
|
|
1896
1907
|
/**
|
|
1897
1908
|
* Check to see if a data store version exists
|
|
1898
1909
|
* @param id - The id of the data store
|
|
1899
1910
|
* @param version - The version of the data store (supports semver)
|
|
1900
1911
|
* @returns
|
|
1901
1912
|
*/
|
|
1902
|
-
dataStoreHasVersion:
|
|
1913
|
+
dataStoreHasVersion: dataStoreHasVersion(join15(path5)),
|
|
1903
1914
|
/**
|
|
1904
1915
|
* Adds a file to a data store by its id
|
|
1905
1916
|
* @param id - The id of the data store to add the file to
|
|
@@ -1907,14 +1918,14 @@ var index_default = (path5) => {
|
|
|
1907
1918
|
* @param version - Optional version of the data store to add the file to
|
|
1908
1919
|
* @returns
|
|
1909
1920
|
*/
|
|
1910
|
-
addFileToDataStore:
|
|
1921
|
+
addFileToDataStore: addFileToDataStore(join15(path5)),
|
|
1911
1922
|
/**
|
|
1912
1923
|
* Writes a data store to a service by its id
|
|
1913
1924
|
* @param dataStore - The data store to write
|
|
1914
1925
|
* @param service - The service to write the data store to
|
|
1915
1926
|
* @returns
|
|
1916
1927
|
*/
|
|
1917
|
-
writeDataStoreToService:
|
|
1928
|
+
writeDataStoreToService: writeDataStoreToService(join15(path5))
|
|
1918
1929
|
};
|
|
1919
1930
|
};
|
|
1920
1931
|
|