@bandada/api-sdk
Advanced tools
Comparing version 2.2.3 to 2.2.4
/** | ||
* @module @bandada/api-sdk | ||
* @version 2.2.3 | ||
* @version 2.2.4 | ||
* @file A Typescript SDK for the Bandada API. | ||
@@ -179,3 +179,3 @@ * @copyright Ethereum Foundation 2023 | ||
requestUrl = "".concat(url$1, "/").concat(groupId); | ||
newConfig = __assign({ method: "put", data: groupUpdateDetails }, config); | ||
newConfig = __assign({ method: "patch", data: groupUpdateDetails }, config); | ||
newConfig.headers["x-api-key"] = apiKey; | ||
@@ -439,3 +439,5 @@ return [4 /*yield*/, utils.request(requestUrl, newConfig)]; | ||
case 0: | ||
newConfig = __assign({ method: "post", data: groupId }, config); | ||
newConfig = __assign({ method: "post", data: { | ||
groupId: groupId | ||
} }, config); | ||
newConfig.headers["x-api-key"] = apiKey; | ||
@@ -442,0 +444,0 @@ return [4 /*yield*/, utils.request(url, newConfig)]; |
@@ -25,5 +25,5 @@ export type Credential = { | ||
export type GroupUpdateDetails = { | ||
description: string; | ||
treeDepth: number; | ||
fingerprintDuration: number; | ||
description?: string; | ||
treeDepth?: number; | ||
fingerprintDuration?: number; | ||
credentials?: Credential; | ||
@@ -30,0 +30,0 @@ }; |
{ | ||
"name": "@bandada/api-sdk", | ||
"version": "2.2.3", | ||
"version": "2.2.4", | ||
"description": "A Typescript SDK for the Bandada API.", | ||
@@ -32,3 +32,3 @@ "license": "MIT", | ||
"dependencies": { | ||
"@bandada/utils": "2.2.3" | ||
"@bandada/utils": "2.2.4" | ||
}, | ||
@@ -35,0 +35,0 @@ "devDependencies": { |
@@ -110,3 +110,3 @@ import { request } from "@bandada/utils" | ||
const newConfig: any = { | ||
method: "put", | ||
method: "patch", | ||
data: groupUpdateDetails, | ||
@@ -113,0 +113,0 @@ ...config |
@@ -37,3 +37,5 @@ import { request } from "@bandada/utils" | ||
method: "post", | ||
data: groupId, | ||
data: { | ||
groupId | ||
}, | ||
...config | ||
@@ -40,0 +42,0 @@ } |
@@ -28,5 +28,5 @@ export type Credential = { | ||
export type GroupUpdateDetails = { | ||
description: string | ||
treeDepth: number | ||
fingerprintDuration: number | ||
description?: string | ||
treeDepth?: number | ||
fingerprintDuration?: number | ||
credentials?: Credential | ||
@@ -33,0 +33,0 @@ } |
Sorry, the diff of this file is not supported yet
126030
3175
+ Added@bandada/utils@2.2.4(transitive)
- Removed@bandada/utils@2.2.3(transitive)
Updated@bandada/utils@2.2.4