Skip to content

Commit 83ec1bb

Browse files
committed
feat: add new property to AppSettings APIs
1 parent b5d5fe1 commit 83ec1bb

File tree

4 files changed

+19
-1
lines changed

4 files changed

+19
-1
lines changed

src/main/java/com/kintone/client/api/app/GetAppSettingsPreviewResponseBody.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ public class GetAppSettingsPreviewResponseBody implements KintoneResponseBody {
4343
/** The "duplicate record" feature is enabled. */
4444
private final boolean enableDuplicateRecord;
4545

46+
/** The inline record editing feature is enabled. */
47+
private final boolean enableInlineRecordEditing;
48+
4649
/** The revision number of the App settings. */
4750
private final long revision;
4851
}

src/main/java/com/kintone/client/api/app/GetAppSettingsResponseBody.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ public class GetAppSettingsResponseBody implements KintoneResponseBody {
4343
/** The "duplicate record" feature is enabled. */
4444
private final boolean enableDuplicateRecord;
4545

46+
/** The inline record editing feature is enabled. */
47+
private final boolean enableInlineRecordEditing;
48+
4649
/** The revision number of the App settings. */
4750
private final long revision;
4851
}

src/main/java/com/kintone/client/api/app/UpdateAppSettingsRequest.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,12 @@ public class UpdateAppSettingsRequest implements KintoneRequest {
7070
*/
7171
private Boolean enableDuplicateRecord;
7272

73+
/**
74+
* The on/off settings of inline record editing feature (optional). If set to null, leaves this
75+
* setting unchanged.
76+
*/
77+
private Boolean enableInlineRecordEditing;
78+
7379
/**
7480
* The expected revision number of the App settings (optional). The request will fail if the
7581
* revision number is not the latest revision. The revision will not be checked if this parameter

src/test/java/com/kintone/client/AppClientTest.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import static org.assertj.core.api.Assertions.assertThat;
44

5-
import com.google.common.collect.Lists;
65
import com.kintone.client.api.app.*;
76
import com.kintone.client.model.Entity;
87
import com.kintone.client.model.EntityType;
@@ -44,6 +43,7 @@
4443
import java.util.Collections;
4544
import java.util.List;
4645
import java.util.Map;
46+
import org.assertj.core.util.Lists;
4747
import org.junit.jupiter.api.Test;
4848

4949
public class AppClientTest {
@@ -670,6 +670,7 @@ public void getAppSettings_long() {
670670
true,
671671
true,
672672
true,
673+
true,
673674
10L);
674675
mockClient.setResponseBody(resp);
675676

@@ -694,6 +695,7 @@ public void getAppSettings_long_String() {
694695
true,
695696
true,
696697
true,
698+
true,
697699
10L);
698700
mockClient.setResponseBody(resp);
699701

@@ -719,6 +721,7 @@ public void getAppSettings_GetAppSettingsRequest() {
719721
true,
720722
true,
721723
true,
724+
true,
722725
1);
723726
mockClient.setResponseBody(resp);
724727

@@ -742,6 +745,7 @@ public void getAppSettingsPreview_long() {
742745
true,
743746
true,
744747
true,
748+
true,
745749
10L);
746750
mockClient.setResponseBody(resp);
747751

@@ -766,6 +770,7 @@ public void getAppSettingsPreview_long_String() {
766770
true,
767771
true,
768772
true,
773+
true,
769774
10L);
770775
mockClient.setResponseBody(resp);
771776

@@ -791,6 +796,7 @@ public void getAppSettingsPreview_GetAppSettingsPreviewRequest() {
791796
true,
792797
true,
793798
true,
799+
true,
794800
1);
795801
mockClient.setResponseBody(resp);
796802

0 commit comments

Comments
 (0)