@synapcores/sdk 0.4.0 → 0.4.1
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.d.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1909,6 +1909,8 @@ declare class GraphEdgeApi {
|
|
|
1909
1909
|
private readonly synapCores;
|
|
1910
1910
|
constructor(synapCores: SynapCores);
|
|
1911
1911
|
create(from: string, to: string, type: string, props?: Record<string, any>): Promise<GraphEdge>;
|
|
1912
|
+
/** Delete an edge by id. Mirrors `graph.nodes.delete`. */
|
|
1913
|
+
delete(id: string): Promise<void>;
|
|
1912
1914
|
}
|
|
1913
1915
|
declare class GraphIndexesApi {
|
|
1914
1916
|
private readonly synapCores;
|
package/dist/index.d.ts
CHANGED
|
@@ -1909,6 +1909,8 @@ declare class GraphEdgeApi {
|
|
|
1909
1909
|
private readonly synapCores;
|
|
1910
1910
|
constructor(synapCores: SynapCores);
|
|
1911
1911
|
create(from: string, to: string, type: string, props?: Record<string, any>): Promise<GraphEdge>;
|
|
1912
|
+
/** Delete an edge by id. Mirrors `graph.nodes.delete`. */
|
|
1913
|
+
delete(id: string): Promise<void>;
|
|
1912
1914
|
}
|
|
1913
1915
|
declare class GraphIndexesApi {
|
|
1914
1916
|
private readonly synapCores;
|
package/dist/index.js
CHANGED
|
@@ -2102,6 +2102,10 @@ var GraphEdgeApi = class {
|
|
|
2102
2102
|
properties: data.properties ?? props
|
|
2103
2103
|
};
|
|
2104
2104
|
}
|
|
2105
|
+
/** Delete an edge by id. Mirrors `graph.nodes.delete`. */
|
|
2106
|
+
async delete(id) {
|
|
2107
|
+
await this.synapCores._getHttpClient().delete(`/graph/edges/${id}`);
|
|
2108
|
+
}
|
|
2105
2109
|
};
|
|
2106
2110
|
var GraphIndexesApi = class {
|
|
2107
2111
|
constructor(synapCores) {
|