@axiom-lattice/client-sdk 2.1.57 → 2.1.58
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/abstract-client.d.ts +22 -1
- package/dist/abstract-client.d.ts.map +1 -1
- package/dist/abstract-client.js +15 -0
- package/dist/abstract-client.js.map +1 -1
- package/dist/index.d.ts +22 -1
- package/dist/index.js +15 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -0
- package/dist/index.mjs.map +1 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -2539,6 +2539,21 @@ var AbstractClient = class {
|
|
|
2539
2539
|
return response.data;
|
|
2540
2540
|
}
|
|
2541
2541
|
};
|
|
2542
|
+
this.connections = {
|
|
2543
|
+
list: async (type) => {
|
|
2544
|
+
const response = await this.makeRequest(`/api/connections?type=${encodeURIComponent(type)}`);
|
|
2545
|
+
return response.data.records;
|
|
2546
|
+
},
|
|
2547
|
+
create: async (data) => {
|
|
2548
|
+
return await this.makeRequest("/api/connections", { method: "POST", body: data });
|
|
2549
|
+
},
|
|
2550
|
+
update: async (type, key, data) => {
|
|
2551
|
+
return await this.makeRequest(`/api/connections/${encodeURIComponent(key)}?type=${encodeURIComponent(type)}`, { method: "PUT", body: data });
|
|
2552
|
+
},
|
|
2553
|
+
delete: async (type, key) => {
|
|
2554
|
+
await this.makeRequest(`/api/connections/${encodeURIComponent(key)}?type=${encodeURIComponent(type)}`, { method: "DELETE" });
|
|
2555
|
+
}
|
|
2556
|
+
};
|
|
2542
2557
|
this.tasks = {
|
|
2543
2558
|
list: async (params) => {
|
|
2544
2559
|
const qs = params ? `?${new URLSearchParams(params).toString()}` : "";
|