-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Changes for multitenancy dashboard (#146)
* feat: Add a new method to fetch the config as json (#137) * Add a new method to fetch the config as json * Update changelog * Revert version changes * Update getConfigFieldInfo method implementation * Add non null to not null fields * Update getConfigFieldsInfo method signature in Storage interface * Add @nullable annotation to ConfigFieldInfo class * fix: core config list * fix: core config * fix: updated types * fix: refactor config description * fix: type fix * fix: pr comments * fix: pr comments * fix: pr comments * fix: to json 5.0 * fix: version and changelog * fix: rename * fix: nullable * fix: condition * fix: changelog * fix: refactor --------- Co-authored-by: Sattvik Chakravarthy <[email protected]>
- Loading branch information
1 parent
8886445
commit ddab5f2
Showing
6 changed files
with
225 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ plugins { | |
id 'java-library' | ||
} | ||
|
||
version = "6.1.0" | ||
version = "6.2.0" | ||
|
||
repositories { | ||
mavenCentral() | ||
|
64 changes: 64 additions & 0 deletions
64
src/main/java/io/supertokens/pluginInterface/ConfigFieldInfo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
/* | ||
* Copyright (c) 2024, VRAI Labs and/or its affiliates. All rights reserved. | ||
* | ||
* This software is licensed under the Apache License, Version 2.0 (the | ||
* "License") as published by the Apache Software Foundation. | ||
* | ||
* You may not use this file except in compliance with the License. You may | ||
* obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
* License for the specific language governing permissions and limitations | ||
* under the License. | ||
* | ||
*/ | ||
package io.supertokens.pluginInterface; | ||
|
||
import com.google.gson.JsonElement; | ||
|
||
import javax.annotation.Nonnull; | ||
import javax.annotation.Nullable; | ||
|
||
public class ConfigFieldInfo { | ||
@Nonnull | ||
public String key; | ||
|
||
@Nonnull | ||
public String valueType; | ||
|
||
Object value; | ||
|
||
@Nonnull | ||
public String description; | ||
|
||
public boolean isDifferentAcrossTenants; | ||
|
||
@Nullable | ||
public String[] possibleValues; | ||
|
||
public boolean isNullable; | ||
|
||
public Object defaultValue; | ||
|
||
public boolean isPluginProperty; | ||
|
||
public boolean isPluginPropertyEditable; | ||
|
||
public ConfigFieldInfo(@Nonnull String key, @Nonnull String valueType, JsonElement value, @Nonnull String description, | ||
boolean isDifferentAcrossTenants, | ||
@Nullable String[] possibleValues, boolean isNullable, Object defaultValue, | ||
boolean isPluginProperty, boolean isPluginPropertyEditable) { | ||
this.key = key; | ||
this.valueType = valueType; | ||
this.value = value; | ||
this.description = description; | ||
this.isDifferentAcrossTenants = isDifferentAcrossTenants; | ||
this.possibleValues = possibleValues; | ||
this.isNullable = isNullable; | ||
this.defaultValue = defaultValue; | ||
this.isPluginProperty = isPluginProperty; | ||
this.isPluginPropertyEditable = isPluginPropertyEditable; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters