Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
70c80ad
chore: Update .codegen.json with commit hash of codegen and openapi spec
box-sdk-build Feb 20, 2025
8d261e1
docs: Documentation for Java SDK (box/box-codegen#664)
box-sdk-build Feb 21, 2025
93edb0a
chore: Update .codegen.json with commit hash of codegen and openapi spec
box-sdk-build Feb 21, 2025
32fa186
chore: Update .codegen.json with commit hash of codegen and openapi spec
box-sdk-build Feb 21, 2025
6468621
chore: Update .codegen.json with commit hash of codegen and openapi spec
box-sdk-build Feb 24, 2025
7b1f518
test: reorder function calls to fix test samples (box/box-codegen#666)
box-sdk-build Feb 24, 2025
b4e78cb
chore: Update .codegen.json with commit hash of codegen and openapi spec
box-sdk-build Feb 26, 2025
0011e00
chore: Update .codegen.json with commit hash of codegen and openapi spec
box-sdk-build Feb 26, 2025
efc2c71
Auto resolve conflict by keeping our changes
Feb 26, 2025
ef0a8d0
Auto resolve conflict by keeping our changes
Feb 26, 2025
83e991a
chore: Update .codegen.json with commit hash of codegen and openapi spec
box-sdk-build Mar 3, 2025
cffebd1
chore: Update .codegen.json with commit hash of codegen and openapi spec
box-sdk-build Mar 5, 2025
c757509
chore: Update .codegen.json with commit hash of codegen and openapi spec
box-sdk-build Mar 6, 2025
f1ca79f
chore: Update .codegen.json with commit hash of codegen and openapi spec
box-sdk-build Mar 10, 2025
8e8ea27
chore: Update .codegen.json with commit hash of codegen and openapi spec
box-sdk-build Mar 10, 2025
772a12b
chore: Update .codegen.json with commit hash of codegen and openapi spec
box-sdk-build Mar 11, 2025
bb84e79
feat: add find app item for shared link endpoint (box/box-openapi#514)
box-sdk-build Mar 12, 2025
19deff5
fix: add verification_phone_number property to create sign request (b…
box-sdk-build Mar 12, 2025
63a4e3e
chore: Update .codegen.json with commit hash of codegen and openapi spec
box-sdk-build Mar 12, 2025
71ca647
feat: add Integration Mappings Teams API (box/box-openapi#517)
box-sdk-build Mar 12, 2025
a55eb49
Auto resolve conflict by keeping our changes
Mar 13, 2025
2327917
Auto resolve conflict by keeping our changes
Mar 13, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .codegen.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "engineHash": "41feeaa", "specHash": "1080bb4", "version": "0.5.0" }
{ "engineHash": "41feeaa", "specHash": "c303afc", "version": "0.5.0" }
120 changes: 120 additions & 0 deletions docs/integrationmappings.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
- [Create Slack integration mapping](#create-slack-integration-mapping)
- [Update Slack integration mapping](#update-slack-integration-mapping)
- [Delete Slack integration mapping](#delete-slack-integration-mapping)
- [List Teams integration mappings](#list-teams-integration-mappings)
- [Create Teams integration mapping](#create-teams-integration-mapping)
- [Update Teams integration mapping](#update-teams-integration-mapping)
- [Delete Teams integration mapping](#delete-teams-integration-mapping)

## List Slack integration mappings

Expand Down Expand Up @@ -133,3 +137,119 @@ This function returns a value of type `void`.
Empty body in response


## List Teams integration mappings

Lists [Teams integration mappings](https://support.box.com/hc/en-us/articles/360044681474-Using-Box-for-Teams) in a users' enterprise.
You need Admin or Co-Admin role to
use this endpoint.

This operation is performed by calling function `getIntegrationMappingTeams`.

See the endpoint docs at
[API Reference](https://developer.box.com/reference/get-integration-mappings-teams/).

*Currently we don't have an example for calling `getIntegrationMappingTeams` in integration tests*

### Arguments

- queryParams `GetIntegrationMappingTeamsQueryParams`
- Query parameters of getIntegrationMappingTeams method
- headers `GetIntegrationMappingTeamsHeaders`
- Headers of getIntegrationMappingTeams method


### Returns

This function returns a value of type `IntegrationMappingsTeams`.

Returns a collection of integration mappings


## Create Teams integration mapping

Creates a [Teams integration mapping](https://support.box.com/hc/en-us/articles/360044681474-Using-Box-for-Teams)
by mapping a Teams channel to a Box item.
You need Admin or Co-Admin role to
use this endpoint.

This operation is performed by calling function `createIntegrationMappingTeams`.

See the endpoint docs at
[API Reference](https://developer.box.com/reference/post-integration-mappings-teams/).

*Currently we don't have an example for calling `createIntegrationMappingTeams` in integration tests*

### Arguments

- requestBody `IntegrationMappingTeamsCreateRequest`
- Request body of createIntegrationMappingTeams method
- headers `CreateIntegrationMappingTeamsHeaders`
- Headers of createIntegrationMappingTeams method


### Returns

This function returns a value of type `IntegrationMappingTeams`.

Returns the created integration mapping.


## Update Teams integration mapping

Updates a [Teams integration mapping](https://support.box.com/hc/en-us/articles/360044681474-Using-Box-for-Teams).
Supports updating the Box folder ID and options.
You need Admin or Co-Admin role to
use this endpoint.

This operation is performed by calling function `updateIntegrationMappingTeamsById`.

See the endpoint docs at
[API Reference](https://developer.box.com/reference/put-integration-mappings-teams-id/).

*Currently we don't have an example for calling `updateIntegrationMappingTeamsById` in integration tests*

### Arguments

- integrationMappingId `String`
- An ID of an integration mapping Example: "11235432"
- requestBody `UpdateIntegrationMappingTeamsByIdRequestBody`
- Request body of updateIntegrationMappingTeamsById method
- headers `UpdateIntegrationMappingTeamsByIdHeaders`
- Headers of updateIntegrationMappingTeamsById method


### Returns

This function returns a value of type `IntegrationMappingTeams`.

Returns the updated integration mapping object.


## Delete Teams integration mapping

Deletes a [Teams integration mapping](https://support.box.com/hc/en-us/articles/360044681474-Using-Box-for-Teams).
You need Admin or Co-Admin role to
use this endpoint.

This operation is performed by calling function `deleteIntegrationMappingTeamsById`.

See the endpoint docs at
[API Reference](https://developer.box.com/reference/delete-integration-mappings-teams-id/).

*Currently we don't have an example for calling `deleteIntegrationMappingTeamsById` in integration tests*

### Arguments

- integrationMappingId `String`
- An ID of an integration mapping Example: "11235432"
- headers `DeleteIntegrationMappingTeamsByIdHeaders`
- Headers of deleteIntegrationMappingTeamsById method


### Returns

This function returns a value of type `void`.

Empty body in response


Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
package com.box.sdkgen.managers.integrationmappings;

import static com.box.sdkgen.internal.utils.UtilsManager.mapOf;

import java.util.Map;

public class CreateIntegrationMappingTeamsHeaders {

public Map<String, String> extraHeaders;

public CreateIntegrationMappingTeamsHeaders() {
this.extraHeaders = mapOf();
}

protected CreateIntegrationMappingTeamsHeaders(
CreateIntegrationMappingTeamsHeadersBuilder builder) {
this.extraHeaders = builder.extraHeaders;
}

public Map<String, String> getExtraHeaders() {
return extraHeaders;
}

public static class CreateIntegrationMappingTeamsHeadersBuilder {

protected Map<String, String> extraHeaders;

public CreateIntegrationMappingTeamsHeadersBuilder extraHeaders(
Map<String, String> extraHeaders) {
this.extraHeaders = extraHeaders;
return this;
}

public CreateIntegrationMappingTeamsHeaders build() {
return new CreateIntegrationMappingTeamsHeaders(this);
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
package com.box.sdkgen.managers.integrationmappings;

import static com.box.sdkgen.internal.utils.UtilsManager.mapOf;

import java.util.Map;

public class DeleteIntegrationMappingTeamsByIdHeaders {

public Map<String, String> extraHeaders;

public DeleteIntegrationMappingTeamsByIdHeaders() {
this.extraHeaders = mapOf();
}

protected DeleteIntegrationMappingTeamsByIdHeaders(
DeleteIntegrationMappingTeamsByIdHeadersBuilder builder) {
this.extraHeaders = builder.extraHeaders;
}

public Map<String, String> getExtraHeaders() {
return extraHeaders;
}

public static class DeleteIntegrationMappingTeamsByIdHeadersBuilder {

protected Map<String, String> extraHeaders;

public DeleteIntegrationMappingTeamsByIdHeadersBuilder extraHeaders(
Map<String, String> extraHeaders) {
this.extraHeaders = extraHeaders;
return this;
}

public DeleteIntegrationMappingTeamsByIdHeaders build() {
return new DeleteIntegrationMappingTeamsByIdHeaders(this);
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
package com.box.sdkgen.managers.integrationmappings;

import static com.box.sdkgen.internal.utils.UtilsManager.mapOf;

import java.util.Map;

public class GetIntegrationMappingTeamsHeaders {

public Map<String, String> extraHeaders;

public GetIntegrationMappingTeamsHeaders() {
this.extraHeaders = mapOf();
}

protected GetIntegrationMappingTeamsHeaders(GetIntegrationMappingTeamsHeadersBuilder builder) {
this.extraHeaders = builder.extraHeaders;
}

public Map<String, String> getExtraHeaders() {
return extraHeaders;
}

public static class GetIntegrationMappingTeamsHeadersBuilder {

protected Map<String, String> extraHeaders;

public GetIntegrationMappingTeamsHeadersBuilder extraHeaders(Map<String, String> extraHeaders) {
this.extraHeaders = extraHeaders;
return this;
}

public GetIntegrationMappingTeamsHeaders build() {
return new GetIntegrationMappingTeamsHeaders(this);
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
package com.box.sdkgen.managers.integrationmappings;

import com.box.sdkgen.serialization.json.EnumWrapper;

public class GetIntegrationMappingTeamsQueryParams {

public EnumWrapper<GetIntegrationMappingTeamsQueryParamsPartnerItemTypeField> partnerItemType;

public String partnerItemId;

public String boxItemId;

public EnumWrapper<GetIntegrationMappingTeamsQueryParamsBoxItemTypeField> boxItemType;

public GetIntegrationMappingTeamsQueryParams() {}

protected GetIntegrationMappingTeamsQueryParams(
GetIntegrationMappingTeamsQueryParamsBuilder builder) {
this.partnerItemType = builder.partnerItemType;
this.partnerItemId = builder.partnerItemId;
this.boxItemId = builder.boxItemId;
this.boxItemType = builder.boxItemType;
}

public EnumWrapper<GetIntegrationMappingTeamsQueryParamsPartnerItemTypeField>
getPartnerItemType() {
return partnerItemType;
}

public String getPartnerItemId() {
return partnerItemId;
}

public String getBoxItemId() {
return boxItemId;
}

public EnumWrapper<GetIntegrationMappingTeamsQueryParamsBoxItemTypeField> getBoxItemType() {
return boxItemType;
}

public static class GetIntegrationMappingTeamsQueryParamsBuilder {

protected EnumWrapper<GetIntegrationMappingTeamsQueryParamsPartnerItemTypeField>
partnerItemType;

protected String partnerItemId;

protected String boxItemId;

protected EnumWrapper<GetIntegrationMappingTeamsQueryParamsBoxItemTypeField> boxItemType;

public GetIntegrationMappingTeamsQueryParamsBuilder partnerItemType(
GetIntegrationMappingTeamsQueryParamsPartnerItemTypeField partnerItemType) {
this.partnerItemType =
new EnumWrapper<GetIntegrationMappingTeamsQueryParamsPartnerItemTypeField>(
partnerItemType);
return this;
}

public GetIntegrationMappingTeamsQueryParamsBuilder partnerItemType(
EnumWrapper<GetIntegrationMappingTeamsQueryParamsPartnerItemTypeField> partnerItemType) {
this.partnerItemType = partnerItemType;
return this;
}

public GetIntegrationMappingTeamsQueryParamsBuilder partnerItemId(String partnerItemId) {
this.partnerItemId = partnerItemId;
return this;
}

public GetIntegrationMappingTeamsQueryParamsBuilder boxItemId(String boxItemId) {
this.boxItemId = boxItemId;
return this;
}

public GetIntegrationMappingTeamsQueryParamsBuilder boxItemType(
GetIntegrationMappingTeamsQueryParamsBoxItemTypeField boxItemType) {
this.boxItemType =
new EnumWrapper<GetIntegrationMappingTeamsQueryParamsBoxItemTypeField>(boxItemType);
return this;
}

public GetIntegrationMappingTeamsQueryParamsBuilder boxItemType(
EnumWrapper<GetIntegrationMappingTeamsQueryParamsBoxItemTypeField> boxItemType) {
this.boxItemType = boxItemType;
return this;
}

public GetIntegrationMappingTeamsQueryParams build() {
return new GetIntegrationMappingTeamsQueryParams(this);
}
}
}
Loading
Loading