Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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": "7c01dda", "specHash": "74a1e4a", "version": "4.5.0" }
{ "engineHash": "02fdae4", "specHash": "c8e3a85", "version": "4.5.0" }
4 changes: 2 additions & 2 deletions src/sdk-gen/managers/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export type SearchForContentQueryParamsContentTypesField =
| 'description'
| 'file_content'
| 'comments'
| 'tag'
| 'tags'
| string;
export type SearchForContentQueryParamsTypeField =
| 'file'
Expand Down Expand Up @@ -595,7 +595,7 @@ export function deserializeSearchForContentQueryParamsContentTypesField(
if (val == 'comments') {
return val;
}
if (val == 'tag') {
if (val == 'tags') {
return val;
}
if (sdIsString(val)) {
Expand Down
13 changes: 13 additions & 0 deletions src/sdk-gen/schemas/v2025R0/hubItemOperationResultV2025R0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ export interface HubItemOperationResultV2025R0 {
* The action performed on the item. */
readonly action?: string;
readonly item?: HubItemReferenceV2025R0;
/**
* The ID of the parent block the item was added to. */
readonly parentId?: string;
/**
* The HTTP status code of the operation. */
readonly status?: number;
Expand All @@ -40,6 +43,7 @@ export function serializeHubItemOperationResultV2025R0(
val.item == void 0
? val.item
: serializeHubItemReferenceV2025R0(val.item),
['parent_id']: val.parentId,
['status']: val.status,
['error']: val.error,
};
Expand All @@ -61,6 +65,14 @@ export function deserializeHubItemOperationResultV2025R0(
const action: undefined | string = val.action == void 0 ? void 0 : val.action;
const item: undefined | HubItemReferenceV2025R0 =
val.item == void 0 ? void 0 : deserializeHubItemReferenceV2025R0(val.item);
if (!(val.parent_id == void 0) && !sdIsString(val.parent_id)) {
throw new BoxSdkError({
message:
'Expecting string for "parent_id" of type "HubItemOperationResultV2025R0"',
});
}
const parentId: undefined | string =
val.parent_id == void 0 ? void 0 : val.parent_id;
if (!(val.status == void 0) && !sdIsNumber(val.status)) {
throw new BoxSdkError({
message:
Expand All @@ -78,6 +90,7 @@ export function deserializeHubItemOperationResultV2025R0(
return {
action: action,
item: item,
parentId: parentId,
status: status,
error: error,
} satisfies HubItemOperationResultV2025R0;
Expand Down
Loading