-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from kintone/action-settings-apis
feat: implement Action Settings APIs
- Loading branch information
Showing
17 changed files
with
456 additions
and
8 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
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
18 changes: 18 additions & 0 deletions
18
src/main/java/com/kintone/client/api/app/GetAppActionsPreviewRequest.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,18 @@ | ||
package com.kintone.client.api.app; | ||
|
||
import com.kintone.client.api.KintoneRequest; | ||
import lombok.Data; | ||
|
||
/** A request object for Get App Action Settings Preview API. */ | ||
@Data | ||
public class GetAppActionsPreviewRequest implements KintoneRequest { | ||
|
||
/** The App ID (required). */ | ||
private Long app; | ||
|
||
/** | ||
* The localization language setting (optional). If set to null, the default names will be | ||
* retrieved. | ||
*/ | ||
private String lang; | ||
} |
22 changes: 22 additions & 0 deletions
22
src/main/java/com/kintone/client/api/app/GetAppActionsPreviewResponseBody.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,22 @@ | ||
package com.kintone.client.api.app; | ||
|
||
import com.kintone.client.api.KintoneResponseBody; | ||
import com.kintone.client.model.app.AppAction; | ||
import java.util.Map; | ||
import lombok.Value; | ||
|
||
/** A response object for Get App Action Settings Preview API. */ | ||
@Value | ||
public class GetAppActionsPreviewResponseBody implements KintoneResponseBody { | ||
|
||
/** | ||
* An object of Action settings. The object's key is the Action's unique identifier, which is set | ||
* as the Action's name in its default language settings (this is regardless of the lang request | ||
* parameter's value). The values of the key are the various Action settings associated with that | ||
* Action. | ||
*/ | ||
private Map<String, AppAction> actions; | ||
|
||
/** The revision number of the app settings. */ | ||
private final long revision; | ||
} |
18 changes: 18 additions & 0 deletions
18
src/main/java/com/kintone/client/api/app/GetAppActionsRequest.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,18 @@ | ||
package com.kintone.client.api.app; | ||
|
||
import com.kintone.client.api.KintoneRequest; | ||
import lombok.Data; | ||
|
||
/** A request object for Get App Action Settings API. */ | ||
@Data | ||
public class GetAppActionsRequest implements KintoneRequest { | ||
|
||
/** The App ID (required). */ | ||
private Long app; | ||
|
||
/** | ||
* The localization language setting (optional). If set to null, the default names will be | ||
* retrieved. | ||
*/ | ||
private String lang; | ||
} |
22 changes: 22 additions & 0 deletions
22
src/main/java/com/kintone/client/api/app/GetAppActionsResponseBody.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,22 @@ | ||
package com.kintone.client.api.app; | ||
|
||
import com.kintone.client.api.KintoneResponseBody; | ||
import com.kintone.client.model.app.AppAction; | ||
import java.util.Map; | ||
import lombok.Value; | ||
|
||
/** A response object for Get App Action Settings API. */ | ||
@Value | ||
public class GetAppActionsResponseBody implements KintoneResponseBody { | ||
|
||
/** | ||
* An object of Action settings. The object's key is the Action's unique identifier, which is set | ||
* as the Action's name in its default language settings (this is regardless of the lang request | ||
* parameter's value). The values of the key are the various Action settings associated with that | ||
* Action. | ||
*/ | ||
private Map<String, AppAction> actions; | ||
|
||
/** The revision number of the app settings. */ | ||
private final long revision; | ||
} |
28 changes: 28 additions & 0 deletions
28
src/main/java/com/kintone/client/api/app/UpdateAppActionsRequest.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,28 @@ | ||
package com.kintone.client.api.app; | ||
|
||
import com.kintone.client.api.KintoneRequest; | ||
import com.kintone.client.model.app.AppAction; | ||
import java.util.Map; | ||
import lombok.Data; | ||
|
||
/** A request object for Update App Actions Settings API. */ | ||
@Data | ||
public class UpdateAppActionsRequest implements KintoneRequest { | ||
|
||
/** The App ID (required). */ | ||
private Long app; | ||
|
||
/** | ||
* An object listing Action settings. The object's key is the Action's unique identifier, which is | ||
* equal to the Action's name in its default language settings. The values of the key are the | ||
* various Action settings associated with that Action. | ||
*/ | ||
private Map<String, AppAction> actions; | ||
|
||
/** | ||
* The expected revision number of the App settings (optional). The request will fail if the | ||
* revision number is not the latest revision. The revision will not be checked if this parameter | ||
* is null, or -1 is specified. | ||
*/ | ||
private Long revision; | ||
} |
17 changes: 17 additions & 0 deletions
17
src/main/java/com/kintone/client/api/app/UpdateAppActionsResponseBody.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,17 @@ | ||
package com.kintone.client.api.app; | ||
|
||
import com.kintone.client.api.KintoneResponseBody; | ||
import com.kintone.client.model.app.ActionId; | ||
import java.util.Map; | ||
import lombok.Value; | ||
|
||
/** A response object for Update App Actions Settings API. */ | ||
@Value | ||
public class UpdateAppActionsResponseBody implements KintoneResponseBody { | ||
|
||
/** An object containing data of the Action settings. */ | ||
private Map<String, ActionId> actions; | ||
|
||
/** The revision number of the App settings. */ | ||
private final long revision; | ||
} |
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,11 @@ | ||
package com.kintone.client.model.app; | ||
|
||
import lombok.Value; | ||
|
||
/** Created or updated Action ID returned by Update App Action Settings API. */ | ||
@Value | ||
public class ActionId { | ||
|
||
/** The ID of the Action. */ | ||
private final long id; | ||
} |
Oops, something went wrong.