@adastradev/user-management-sdk
Advanced tools
Comparing version 2.4.16-beta.1632921063434 to 2.4.16-beta.1633372918391
@@ -9,3 +9,3 @@ import { ApiCredentials } from '@adastradev/serverless-discovery-sdk'; | ||
getUserPools(): any; | ||
createUser(tenantId: string, userName: string, password: string, firstName: string, lastName: string, suppressInviteEmail?: boolean, role?: string): any; | ||
createUser(tenantId: string, userName: string, password: string, firstName: string, lastName: string, suppressInviteEmail?: boolean, role?: string, canPublish?: boolean): any; | ||
registerTenant(tenantName: string, userName: string, firstName: string, lastName: string): any; | ||
@@ -12,0 +12,0 @@ deleteUser(userName: string): any; |
@@ -88,4 +88,5 @@ "use strict"; | ||
}; | ||
UserManagementApi.prototype.createUser = function (tenantId, userName, password, firstName, lastName, suppressInviteEmail, role) { | ||
UserManagementApi.prototype.createUser = function (tenantId, userName, password, firstName, lastName, suppressInviteEmail, role, canPublish) { | ||
if (suppressInviteEmail === void 0) { suppressInviteEmail = false; } | ||
if (canPublish === void 0) { canPublish = false; } | ||
var params = {}; | ||
@@ -95,3 +96,3 @@ var pathTemplate = '/admin/users'; | ||
var additionalParams = {}; | ||
var body = { userName: userName, password: password, firstName: firstName, lastName: lastName, suppressInviteEmail: suppressInviteEmail, role: role, tenant_id: tenantId }; | ||
var body = { userName: userName, password: password, firstName: firstName, lastName: lastName, suppressInviteEmail: suppressInviteEmail, role: role, tenant_id: tenantId, canPublish: canPublish }; | ||
return this.apigClient.invokeApi(params, pathTemplate, method, additionalParams, body); | ||
@@ -98,0 +99,0 @@ }; |
{ | ||
"name": "@adastradev/user-management-sdk", | ||
"version": "2.4.16-beta.1632921063434", | ||
"version": "2.4.16-beta.1633372918391", | ||
"description": "Astra user management SDK for JavaScript in the browser and Node.js", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
46714
598