Skip to content

Commit

Permalink
feat: Add delete bulk import users api
Browse files Browse the repository at this point in the history
  • Loading branch information
anku255 committed Feb 23, 2024
1 parent 54d9671 commit d17b3ea
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,15 @@ void addBulkImportUsers(AppIdentifier appIdentifier, List<BulkImportUser> users)
List<BulkImportUserInfo> getBulkImportUsers(AppIdentifier appIdentifier, @Nonnull Integer limit, @Nullable BulkImportUserStatus status,
@Nullable String bulkImportUserId, @Nullable Long createdAt) throws StorageQueryException;

/**
* Update the status of the users in the bulk_import_users table
*/
void updateBulkImportUserStatus(AppIdentifier appIdentifier, @Nonnull String bulkImportUserId, @Nonnull BulkImportUserStatus status) throws StorageQueryException;

/**
* Delete users by id from the bulk_import_users table
*/
// void deleteBulkImportUsers(AppIdentifier appIdentifier, @Nullable
// ArrayList<String> bulkImportUserIds)
// throws StorageQueryException;
void deleteBulkImportUsers(AppIdentifier appIdentifier, @Nonnull String[] bulkImportUserIds) throws StorageQueryException;

public enum BulkImportUserStatus {
NEW, PROCESSING, FAILED
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ public String toString() {

public static class TotpDevice {
public String secretKey;
public Integer period;
public Integer skew;
public int period;
public int skew;
public String deviceName;

public TotpDevice(String secretKey, Integer period, Integer skew, String deviceName) {
public TotpDevice(String secretKey, int period, int skew, String deviceName) {
this.secretKey = secretKey;
this.period = period;
this.skew = skew;
Expand All @@ -67,16 +67,16 @@ public TotpDevice(String secretKey, Integer period, Integer skew, String deviceN

public static class LoginMethod {
public String tenantId;
public Boolean isVerified;
public Boolean isPrimary;
public boolean isVerified;
public boolean isPrimary;
public long timeJoinedInMSSinceEpoch;
public String recipeId;

public EmailPasswordLoginMethod emailPasswordLoginMethod;
public ThirdPartyLoginMethod thirdPartyLoginMethod;
public PasswordlessLoginMethod passwordlessLoginMethod;

public LoginMethod(String tenantId, String recipeId, Boolean isVerified, Boolean isPrimary, long timeJoinedInMSSinceEpoch, EmailPasswordLoginMethod emailPasswordLoginMethod, ThirdPartyLoginMethod thirdPartyLoginMethod, PasswordlessLoginMethod passwordlessLoginMethod) {
public LoginMethod(String tenantId, String recipeId, boolean isVerified, boolean isPrimary, long timeJoinedInMSSinceEpoch, EmailPasswordLoginMethod emailPasswordLoginMethod, ThirdPartyLoginMethod thirdPartyLoginMethod, PasswordlessLoginMethod passwordlessLoginMethod) {
this.tenantId = tenantId;
this.recipeId = recipeId;
this.isVerified = isVerified;
Expand Down

0 comments on commit d17b3ea

Please sign in to comment.