@dynamic-labs/sdk-api
Advanced tools
Comparing version 0.0.23 to 0.0.24
{ | ||
"name": "@dynamic-labs/sdk-api", | ||
"version": "0.0.23", | ||
"version": "0.0.24", | ||
"author": "Dynamic Labs", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
@@ -13,3 +13,6 @@ /** | ||
import * as runtime from '../runtime'; | ||
import { NonceResponse, ProjectSettings, UserFields, VerifyRequest, VerifyResponse } from '../models'; | ||
import { EnvironmentDataResponse, NonceResponse, ProjectSettings, UserFields, VerifyRequest, VerifyResponse } from '../models'; | ||
export interface GetEnvironmentDataRequest { | ||
environmentId: string; | ||
} | ||
export interface GetEnvironmentSettingsRequest { | ||
@@ -34,2 +37,10 @@ environmentId: string; | ||
/** | ||
* Get the environment\'s data | ||
*/ | ||
getEnvironmentDataRaw(requestParameters: GetEnvironmentDataRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<EnvironmentDataResponse>>; | ||
/** | ||
* Get the environment\'s data | ||
*/ | ||
getEnvironmentData(requestParameters: GetEnvironmentDataRequest, initOverrides?: RequestInit): Promise<EnvironmentDataResponse>; | ||
/** | ||
* Get the environment\'s settings | ||
@@ -36,0 +47,0 @@ */ |
@@ -56,2 +56,30 @@ "use strict"; | ||
/** | ||
* Get the environment\'s data | ||
*/ | ||
getEnvironmentDataRaw(requestParameters, initOverrides) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) { | ||
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getEnvironmentData.'); | ||
} | ||
const queryParameters = {}; | ||
const headerParameters = {}; | ||
const response = yield this.request({ | ||
path: `/sdk/{environmentId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))), | ||
method: 'GET', | ||
headers: headerParameters, | ||
query: queryParameters, | ||
}, initOverrides); | ||
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.EnvironmentDataResponseFromJSON)(jsonValue)); | ||
}); | ||
} | ||
/** | ||
* Get the environment\'s data | ||
*/ | ||
getEnvironmentData(requestParameters, initOverrides) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const response = yield this.getEnvironmentDataRaw(requestParameters, initOverrides); | ||
return yield response.value(); | ||
}); | ||
} | ||
/** | ||
* Get the environment\'s settings | ||
@@ -58,0 +86,0 @@ */ |
@@ -9,2 +9,3 @@ export * from './BadRequest'; | ||
export * from './CreateTokenResponseAllOfToken'; | ||
export * from './EnvironmentDataResponse'; | ||
export * from './EnvironmentEnum'; | ||
@@ -11,0 +12,0 @@ export * from './EnvironmentsResponse'; |
@@ -27,2 +27,3 @@ "use strict"; | ||
__exportStar(require("./CreateTokenResponseAllOfToken"), exports); | ||
__exportStar(require("./EnvironmentDataResponse"), exports); | ||
__exportStar(require("./EnvironmentEnum"), exports); | ||
@@ -29,0 +30,0 @@ __exportStar(require("./EnvironmentsResponse"), exports); |
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
395028
237
7799