@unumid/server-sdk
Advanced tools
Comparing version 3.14.0 to 3.14.2
@@ -50,2 +50,3 @@ "use strict"; | ||
var helpers_1 = require("../utils/helpers"); | ||
var queryStringHelper_1 = require("../utils/queryStringHelper"); | ||
/** | ||
@@ -76,3 +77,3 @@ * Helper to validate request inputs. | ||
return __awaiter(void 0, void 0, void 0, function () { | ||
var data, restData, response, authToken, result, error_2; | ||
var query, restData, response, authToken, result, error_2; | ||
return __generator(this, function (_a) { | ||
@@ -84,12 +85,9 @@ switch (_a.label) { | ||
validateInputs(credentialIds, status); | ||
data = { | ||
status: status, | ||
credentialIds: credentialIds | ||
}; | ||
query = queryStringHelper_1.createListQueryString('credentialId', credentialIds); | ||
restData = { | ||
method: 'PATCH', | ||
baseUrl: config_1.configData.SaaSUrl, | ||
endPoint: 'credentialStatuses', | ||
endPoint: "credentialStatus?" + query, | ||
header: { Authorization: authorization }, | ||
data: data | ||
data: { status: status } | ||
}; | ||
@@ -96,0 +94,0 @@ return [4 /*yield*/, networkRequestHelper_1.makeNetworkRequest(restData)]; |
{ | ||
"name": "@unumid/server-sdk", | ||
"version": "3.14.0", | ||
"version": "3.14.2", | ||
"main": "build/index.js", | ||
@@ -5,0 +5,0 @@ "repository": "git@github.com:UnumID/Server-SDK-TypeScript.git", |
@@ -11,2 +11,3 @@ import { configData } from '../config'; | ||
import { CredentialStatusesOptions } from '@unumid/types/build/protos/credential'; | ||
import { createListQueryString } from '../utils/queryStringHelper'; | ||
@@ -42,6 +43,3 @@ /** | ||
const data: CredentialStatusesOptions = { | ||
status, | ||
credentialIds | ||
}; | ||
const query = createListQueryString('credentialId', credentialIds); | ||
@@ -51,5 +49,5 @@ const restData: RESTData = { | ||
baseUrl: configData.SaaSUrl, | ||
endPoint: 'credentialStatuses', | ||
endPoint: `credentialStatus?${query}`, | ||
header: { Authorization: authorization }, | ||
data | ||
data: { status } | ||
}; | ||
@@ -56,0 +54,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
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
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
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
1405388
267
16719