@frontegg/rest-api
Advanced tools
Comparing version 1.12.0 to 1.13.0
@@ -1,2 +0,2 @@ | ||
import { IActivateAccount, IDisableMfa, IEnrollMfaResponse, IForgotPassword, ILogin, ILoginResponse, ILoginWithMfa, IPreLogin, IPostLogin, IRecoverMFAToken, IResetPassword, ISamlConfiguration, ISamlVendorConfigResponse, IUpdateSamlConfiguration, IUpdateSamlVendorMetadata, IVerifyMfa, IVerifyMfaResponse, IAcceptInvitation, ISocialLoginProviderConfiguration, ILoginViaSocialLogin } from './interfaces'; | ||
import { IActivateAccount, IDisableMfa, IEnrollMfaResponse, IForgotPassword, ILogin, ILoginResponse, ILoginWithMfa, IPreLogin, IPostLogin, IRecoverMFAToken, IResetPassword, ISamlConfiguration, ISamlVendorConfigResponse, IUpdateSamlConfiguration, IUpdateSamlVendorMetadata, IVerifyMfa, IVerifyMfaResponse, IAcceptInvitation, ISocialLoginProviderConfiguration, ILoginViaSocialLogin, IVendorConfig, ISignUpUser, ISignUpResponse } from './interfaces'; | ||
/** | ||
@@ -152,1 +152,10 @@ * Check if requested email address has sso configuration | ||
export declare function loginViaSocialLogin({ provider, code }: ILoginViaSocialLogin): Promise<void>; | ||
/** | ||
* Get vendor secure access configuration | ||
*/ | ||
export declare function getVendorConfig(): Promise<IVendorConfig>; | ||
/** | ||
* Sign up new user | ||
* create new user with a new tenant | ||
*/ | ||
export declare function signUpUser(body: ISignUpUser): Promise<ISignUpResponse>; |
@@ -103,1 +103,16 @@ import { IUserProfile } from '..'; | ||
} | ||
export interface IVendorConfig { | ||
allowSignups: boolean; | ||
} | ||
export interface ISignUpUser { | ||
email: string; | ||
companyName: string; | ||
name?: string; | ||
password?: string; | ||
phoneNumber?: string; | ||
metadata?: string /** JSON */; | ||
roleIds?: string[]; | ||
} | ||
export interface ISignUpResponse { | ||
shouldActivate: boolean; | ||
} |
@@ -704,2 +704,25 @@ import { __awaiter, __generator, __assign, __rest } from 'tslib'; | ||
} | ||
/** | ||
* Get vendor secure access configuration | ||
*/ | ||
function getVendorConfig() { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
console.debug('getVendorConfig()'); | ||
return [2 /*return*/, Get(IDENTITY_CONFIGURATION_SERVICE_URL_V1 + "/public")]; | ||
}); | ||
}); | ||
} | ||
/** | ||
* Sign up new user | ||
* create new user with a new tenant | ||
*/ | ||
function signUpUser(body) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
console.debug('signUpUser()', body); | ||
return [2 /*return*/, Post(USERS_SERVICE_URL_V1 + "/signUp", body)]; | ||
}); | ||
}); | ||
} | ||
@@ -729,3 +752,5 @@ var auth = /*#__PURE__*/Object.freeze({ | ||
getSocialLoginsProviders: getSocialLoginsProviders, | ||
loginViaSocialLogin: loginViaSocialLogin | ||
loginViaSocialLogin: loginViaSocialLogin, | ||
getVendorConfig: getVendorConfig, | ||
signUpUser: signUpUser | ||
}); | ||
@@ -732,0 +757,0 @@ |
@@ -528,2 +528,21 @@ import { __awaiter, __rest } from 'tslib'; | ||
} | ||
/** | ||
* Get vendor secure access configuration | ||
*/ | ||
function getVendorConfig() { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
console.debug('getVendorConfig()'); | ||
return Get(`${IDENTITY_CONFIGURATION_SERVICE_URL_V1}/public`); | ||
}); | ||
} | ||
/** | ||
* Sign up new user | ||
* create new user with a new tenant | ||
*/ | ||
function signUpUser(body) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
console.debug('signUpUser()', body); | ||
return Post(`${USERS_SERVICE_URL_V1}/signUp`, body); | ||
}); | ||
} | ||
@@ -553,3 +572,5 @@ var auth = /*#__PURE__*/Object.freeze({ | ||
getSocialLoginsProviders: getSocialLoginsProviders, | ||
loginViaSocialLogin: loginViaSocialLogin | ||
loginViaSocialLogin: loginViaSocialLogin, | ||
getVendorConfig: getVendorConfig, | ||
signUpUser: signUpUser | ||
}); | ||
@@ -556,0 +577,0 @@ |
27
index.js
@@ -710,2 +710,25 @@ 'use strict'; | ||
} | ||
/** | ||
* Get vendor secure access configuration | ||
*/ | ||
function getVendorConfig() { | ||
return tslib.__awaiter(this, void 0, void 0, function () { | ||
return tslib.__generator(this, function (_a) { | ||
console.debug('getVendorConfig()'); | ||
return [2 /*return*/, Get(IDENTITY_CONFIGURATION_SERVICE_URL_V1 + "/public")]; | ||
}); | ||
}); | ||
} | ||
/** | ||
* Sign up new user | ||
* create new user with a new tenant | ||
*/ | ||
function signUpUser(body) { | ||
return tslib.__awaiter(this, void 0, void 0, function () { | ||
return tslib.__generator(this, function (_a) { | ||
console.debug('signUpUser()', body); | ||
return [2 /*return*/, Post(USERS_SERVICE_URL_V1 + "/signUp", body)]; | ||
}); | ||
}); | ||
} | ||
@@ -735,3 +758,5 @@ var auth = /*#__PURE__*/Object.freeze({ | ||
getSocialLoginsProviders: getSocialLoginsProviders, | ||
loginViaSocialLogin: loginViaSocialLogin | ||
loginViaSocialLogin: loginViaSocialLogin, | ||
getVendorConfig: getVendorConfig, | ||
signUpUser: signUpUser | ||
}); | ||
@@ -738,0 +763,0 @@ |
{ | ||
"name": "@frontegg/rest-api", | ||
"libName": "FronteggRestApi", | ||
"version": "1.12.0", | ||
"version": "1.13.0", | ||
"author": "Frontegg LTD", | ||
@@ -12,5 +12,5 @@ "module": "index.esm.js", | ||
}, | ||
"gitHead": "131930c7a0d40362d1c6a4834c5420e5c85b44e5", | ||
"gitHead": "7ccf18e2bb6cb9a1ade950b2b16684496422529d", | ||
"main": "index.js", | ||
"peerDependencies": {} | ||
} |
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
357581
4587