diff --git a/.codegen.json b/.codegen.json index 183f4913..4cb09839 100644 --- a/.codegen.json +++ b/.codegen.json @@ -1 +1 @@ -{ "engineHash": "7c01dda", "specHash": "74a1e4a", "version": "10.5.0" } +{ "engineHash": "02fdae4", "specHash": "c8e3a85", "version": "10.5.0" } diff --git a/package-lock.json b/package-lock.json index 6d021f94..c671dba2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2766,9 +2766,9 @@ } }, "node_modules/electron-to-chromium": { - "version": "1.5.322", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.322.tgz", - "integrity": "sha512-vFU34OcrvMcH66T+dYC3G4nURmgfDVewMIu6Q2urXpumAPSMmzvcn04KVVV8Opikq8Vs5nUbO/8laNhNRqSzYw==", + "version": "1.5.325", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.325.tgz", + "integrity": "sha512-PwfIw7WQSt3xX7yOf5OE/unLzsK9CaN2f/FvV3WjPR1Knoc1T9vePRVV4W1EM301JzzysK51K7FNKcusCr0zYA==", "dev": true, "license": "ISC" }, diff --git a/src/managers/search.ts b/src/managers/search.ts index 7cde29e6..e02f0d97 100644 --- a/src/managers/search.ts +++ b/src/managers/search.ts @@ -93,7 +93,7 @@ export type SearchForContentQueryParamsContentTypesField = | 'description' | 'file_content' | 'comments' - | 'tag' + | 'tags' | string; export type SearchForContentQueryParamsTypeField = | 'file' @@ -595,7 +595,7 @@ export function deserializeSearchForContentQueryParamsContentTypesField( if (val == 'comments') { return val; } - if (val == 'tag') { + if (val == 'tags') { return val; } if (sdIsString(val)) { diff --git a/src/schemas/v2025R0/hubItemOperationResultV2025R0.ts b/src/schemas/v2025R0/hubItemOperationResultV2025R0.ts index ed0e997c..dc3b39e8 100644 --- a/src/schemas/v2025R0/hubItemOperationResultV2025R0.ts +++ b/src/schemas/v2025R0/hubItemOperationResultV2025R0.ts @@ -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; @@ -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, }; @@ -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: @@ -78,6 +90,7 @@ export function deserializeHubItemOperationResultV2025R0( return { action: action, item: item, + parentId: parentId, status: status, error: error, } satisfies HubItemOperationResultV2025R0;