Skip to content

Commit 389f8d9

Browse files
feat: add canPublicSharedLinkBeCreated to Hubs (box/box-codegen#928) (#1367)
1 parent 4800235 commit 389f8d9

4 files changed

Lines changed: 94 additions & 102 deletions

File tree

.codegen.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{ "engineHash": "bc04b80", "specHash": "f2523d5", "version": "10.4.0" }
1+
{ "engineHash": "65f6eab", "specHash": "57b3004", "version": "10.4.0" }

package-lock.json

Lines changed: 56 additions & 101 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/schemas/v2025R0/hubUpdateRequestV2025R0.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ export interface HubUpdateRequestV2025R0 {
2525
/**
2626
* Indicates if a shared link can be created for the Box Hub. */
2727
readonly canSharedLinkBeCreated?: boolean;
28+
/**
29+
* Indicates if a public shared link can be created for the Box Hub. */
30+
readonly canPublicSharedLinkBeCreated?: boolean;
2831
readonly rawData?: SerializedData;
2932
}
3033
export function serializeHubUpdateRequestV2025R0(
@@ -38,6 +41,7 @@ export function serializeHubUpdateRequestV2025R0(
3841
val.isCollaborationRestrictedToEnterprise,
3942
['can_non_owners_invite']: val.canNonOwnersInvite,
4043
['can_shared_link_be_created']: val.canSharedLinkBeCreated,
44+
['can_public_shared_link_be_created']: val.canPublicSharedLinkBeCreated,
4145
};
4246
}
4347
export function deserializeHubUpdateRequestV2025R0(
@@ -107,6 +111,19 @@ export function deserializeHubUpdateRequestV2025R0(
107111
val.can_shared_link_be_created == void 0
108112
? void 0
109113
: val.can_shared_link_be_created;
114+
if (
115+
!(val.can_public_shared_link_be_created == void 0) &&
116+
!sdIsBoolean(val.can_public_shared_link_be_created)
117+
) {
118+
throw new BoxSdkError({
119+
message:
120+
'Expecting boolean for "can_public_shared_link_be_created" of type "HubUpdateRequestV2025R0"',
121+
});
122+
}
123+
const canPublicSharedLinkBeCreated: undefined | boolean =
124+
val.can_public_shared_link_be_created == void 0
125+
? void 0
126+
: val.can_public_shared_link_be_created;
110127
return {
111128
title: title,
112129
description: description,
@@ -115,5 +132,6 @@ export function deserializeHubUpdateRequestV2025R0(
115132
isCollaborationRestrictedToEnterprise,
116133
canNonOwnersInvite: canNonOwnersInvite,
117134
canSharedLinkBeCreated: canSharedLinkBeCreated,
135+
canPublicSharedLinkBeCreated: canPublicSharedLinkBeCreated,
118136
} satisfies HubUpdateRequestV2025R0;
119137
}

0 commit comments

Comments
 (0)