@dynamic-labs/sdk-api
Advanced tools
Comparing version 0.0.41 to 0.0.42
{ | ||
"name": "@dynamic-labs/sdk-api", | ||
"version": "0.0.41", | ||
"version": "0.0.42", | ||
"author": "Dynamic Labs", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
@@ -24,2 +24,5 @@ /** | ||
} | ||
export interface DisableAllowlistByIdRequest { | ||
allowlistId: string; | ||
} | ||
export interface EnableAllowlistByIdRequest { | ||
@@ -74,2 +77,10 @@ allowlistId: string; | ||
/** | ||
* Disable the allow list | ||
*/ | ||
disableAllowlistByIdRaw(requestParameters: DisableAllowlistByIdRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<Allowlist>>; | ||
/** | ||
* Disable the allow list | ||
*/ | ||
disableAllowlistById(requestParameters: DisableAllowlistByIdRequest, initOverrides?: RequestInit): Promise<Allowlist>; | ||
/** | ||
* Enable the allowlist | ||
@@ -76,0 +87,0 @@ */ |
@@ -164,2 +164,37 @@ "use strict"; | ||
/** | ||
* Disable the allow list | ||
*/ | ||
disableAllowlistByIdRaw(requestParameters, initOverrides) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
if (requestParameters.allowlistId === null || requestParameters.allowlistId === undefined) { | ||
throw new runtime.RequiredError('allowlistId', 'Required parameter requestParameters.allowlistId was null or undefined when calling disableAllowlistById.'); | ||
} | ||
const queryParameters = {}; | ||
const headerParameters = {}; | ||
if (this.configuration && this.configuration.accessToken) { | ||
const token = this.configuration.accessToken; | ||
const tokenString = yield token("bearerAuth", []); | ||
if (tokenString) { | ||
headerParameters["Authorization"] = `Bearer ${tokenString}`; | ||
} | ||
} | ||
const response = yield this.request({ | ||
path: `/allowlists/{allowlistId}/disable`.replace(`{${"allowlistId"}}`, encodeURIComponent(String(requestParameters.allowlistId))), | ||
method: 'PUT', | ||
headers: headerParameters, | ||
query: queryParameters, | ||
}, initOverrides); | ||
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.AllowlistFromJSON)(jsonValue)); | ||
}); | ||
} | ||
/** | ||
* Disable the allow list | ||
*/ | ||
disableAllowlistById(requestParameters, initOverrides) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const response = yield this.disableAllowlistByIdRaw(requestParameters, initOverrides); | ||
return yield response.value(); | ||
}); | ||
} | ||
/** | ||
* Enable the allowlist | ||
@@ -166,0 +201,0 @@ */ |
@@ -36,2 +36,8 @@ /** | ||
walletPublicKey: string; | ||
/** | ||
* | ||
* @type {string} | ||
* @memberof AllowlistEntry | ||
*/ | ||
alias?: string; | ||
} | ||
@@ -38,0 +44,0 @@ export declare function AllowlistEntryFromJSON(json: any): AllowlistEntry; |
@@ -17,2 +17,3 @@ "use strict"; | ||
exports.AllowlistEntryToJSON = exports.AllowlistEntryFromJSONTyped = exports.AllowlistEntryFromJSON = void 0; | ||
const runtime_1 = require("../runtime"); | ||
function AllowlistEntryFromJSON(json) { | ||
@@ -30,2 +31,3 @@ return AllowlistEntryFromJSONTyped(json, false); | ||
'walletPublicKey': json['walletPublicKey'], | ||
'alias': !(0, runtime_1.exists)(json, 'alias') ? undefined : json['alias'], | ||
}; | ||
@@ -45,2 +47,3 @@ } | ||
'walletPublicKey': value.walletPublicKey, | ||
'alias': value.alias, | ||
}; | ||
@@ -47,0 +50,0 @@ } |
@@ -24,2 +24,8 @@ /** | ||
walletPublicKey: string; | ||
/** | ||
* | ||
* @type {string} | ||
* @memberof PostAllowlistEntriesRequest | ||
*/ | ||
alias?: string; | ||
} | ||
@@ -26,0 +32,0 @@ export declare function PostAllowlistEntriesRequestFromJSON(json: any): PostAllowlistEntriesRequest; |
@@ -17,2 +17,3 @@ "use strict"; | ||
exports.PostAllowlistEntriesRequestToJSON = exports.PostAllowlistEntriesRequestFromJSONTyped = exports.PostAllowlistEntriesRequestFromJSON = void 0; | ||
const runtime_1 = require("../runtime"); | ||
function PostAllowlistEntriesRequestFromJSON(json) { | ||
@@ -28,2 +29,3 @@ return PostAllowlistEntriesRequestFromJSONTyped(json, false); | ||
'walletPublicKey': json['walletPublicKey'], | ||
'alias': !(0, runtime_1.exists)(json, 'alias') ? undefined : json['alias'], | ||
}; | ||
@@ -41,2 +43,3 @@ } | ||
'walletPublicKey': value.walletPublicKey, | ||
'alias': value.alias, | ||
}; | ||
@@ -43,0 +46,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
494342
9564