box-node-sdk 4.2.0 → 4.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/box-client.d.ts +61 -0
- package/lib/box-client.d.ts.map +1 -1
- package/lib/box-client.js +205 -0
- package/lib/box-client.js.map +1 -1
- package/lib/sdk-gen/client.d.ts +3 -1
- package/lib/sdk-gen/client.d.ts.map +1 -1
- package/lib/sdk-gen/client.js +5 -0
- package/lib/sdk-gen/client.js.map +1 -1
- package/lib/sdk-gen/managers/ai.d.ts +3 -3
- package/lib/sdk-gen/managers/ai.js +3 -3
- package/lib/sdk-gen/managers/aiStudio.js.map +1 -1
- package/lib/sdk-gen/managers/appItemAssociations.js.map +1 -1
- package/lib/sdk-gen/managers/archives.d.ts +4 -4
- package/lib/sdk-gen/managers/archives.js +4 -4
- package/lib/sdk-gen/managers/archives.js.map +1 -1
- package/lib/sdk-gen/managers/authorization.d.ts +1 -1
- package/lib/sdk-gen/managers/authorization.js +1 -1
- package/lib/sdk-gen/managers/avatars.js.map +1 -1
- package/lib/sdk-gen/managers/chunkedUploads.d.ts +18 -18
- package/lib/sdk-gen/managers/chunkedUploads.js +18 -18
- package/lib/sdk-gen/managers/chunkedUploads.js.map +1 -1
- package/lib/sdk-gen/managers/collaborationAllowlistEntries.js.map +1 -1
- package/lib/sdk-gen/managers/collaborationAllowlistExemptTargets.js.map +1 -1
- package/lib/sdk-gen/managers/collections.js.map +1 -1
- package/lib/sdk-gen/managers/comments.js.map +1 -1
- package/lib/sdk-gen/managers/devicePinners.js.map +1 -1
- package/lib/sdk-gen/managers/docgen.js.map +1 -1
- package/lib/sdk-gen/managers/docgenTemplate.js.map +1 -1
- package/lib/sdk-gen/managers/downloads.js.map +1 -1
- package/lib/sdk-gen/managers/emailAliases.js.map +1 -1
- package/lib/sdk-gen/managers/enterpriseConfigurations.js.map +1 -1
- package/lib/sdk-gen/managers/events.d.ts +2 -2
- package/lib/sdk-gen/managers/events.js +2 -2
- package/lib/sdk-gen/managers/fileClassifications.d.ts +3 -3
- package/lib/sdk-gen/managers/fileClassifications.js.map +1 -1
- package/lib/sdk-gen/managers/fileMetadata.d.ts +24 -2
- package/lib/sdk-gen/managers/fileMetadata.d.ts.map +1 -1
- package/lib/sdk-gen/managers/fileMetadata.js +16 -0
- package/lib/sdk-gen/managers/fileMetadata.js.map +1 -1
- package/lib/sdk-gen/managers/fileRequests.js.map +1 -1
- package/lib/sdk-gen/managers/fileVersionLegalHolds.js.map +1 -1
- package/lib/sdk-gen/managers/fileVersionRetentions.d.ts +2 -2
- package/lib/sdk-gen/managers/fileVersionRetentions.js +2 -2
- package/lib/sdk-gen/managers/fileVersionRetentions.js.map +1 -1
- package/lib/sdk-gen/managers/fileVersions.js.map +1 -1
- package/lib/sdk-gen/managers/fileWatermarks.js.map +1 -1
- package/lib/sdk-gen/managers/files.d.ts +1 -1
- package/lib/sdk-gen/managers/files.d.ts.map +1 -1
- package/lib/sdk-gen/managers/files.js.map +1 -1
- package/lib/sdk-gen/managers/folderClassifications.d.ts +3 -3
- package/lib/sdk-gen/managers/folderClassifications.js.map +1 -1
- package/lib/sdk-gen/managers/folderLocks.js.map +1 -1
- package/lib/sdk-gen/managers/folderMetadata.d.ts +12 -1
- package/lib/sdk-gen/managers/folderMetadata.d.ts.map +1 -1
- package/lib/sdk-gen/managers/folderMetadata.js +8 -0
- package/lib/sdk-gen/managers/folderMetadata.js.map +1 -1
- package/lib/sdk-gen/managers/folderWatermarks.js.map +1 -1
- package/lib/sdk-gen/managers/folders.d.ts +10 -10
- package/lib/sdk-gen/managers/folders.d.ts.map +1 -1
- package/lib/sdk-gen/managers/folders.js +3 -3
- package/lib/sdk-gen/managers/folders.js.map +1 -1
- package/lib/sdk-gen/managers/groups.js.map +1 -1
- package/lib/sdk-gen/managers/hubCollaborations.js.map +1 -1
- package/lib/sdk-gen/managers/hubItems.js.map +1 -1
- package/lib/sdk-gen/managers/hubs.js.map +1 -1
- package/lib/sdk-gen/managers/index.d.ts +1 -0
- package/lib/sdk-gen/managers/index.d.ts.map +1 -1
- package/lib/sdk-gen/managers/index.js +1 -0
- package/lib/sdk-gen/managers/index.js.map +1 -1
- package/lib/sdk-gen/managers/integrationMappings.js.map +1 -1
- package/lib/sdk-gen/managers/invites.js.map +1 -1
- package/lib/sdk-gen/managers/legalHoldPolicies.js.map +1 -1
- package/lib/sdk-gen/managers/legalHoldPolicyAssignments.d.ts +2 -2
- package/lib/sdk-gen/managers/legalHoldPolicyAssignments.d.ts.map +1 -1
- package/lib/sdk-gen/managers/legalHoldPolicyAssignments.js +2 -2
- package/lib/sdk-gen/managers/legalHoldPolicyAssignments.js.map +1 -1
- package/lib/sdk-gen/managers/listCollaborations.js.map +1 -1
- package/lib/sdk-gen/managers/memberships.js.map +1 -1
- package/lib/sdk-gen/managers/metadataCascadePolicies.d.ts +3 -3
- package/lib/sdk-gen/managers/metadataCascadePolicies.d.ts.map +1 -1
- package/lib/sdk-gen/managers/metadataCascadePolicies.js.map +1 -1
- package/lib/sdk-gen/managers/metadataTaxonomies.d.ts +704 -0
- package/lib/sdk-gen/managers/metadataTaxonomies.d.ts.map +1 -0
- package/lib/sdk-gen/managers/metadataTaxonomies.js +1157 -0
- package/lib/sdk-gen/managers/metadataTaxonomies.js.map +1 -0
- package/lib/sdk-gen/managers/metadataTemplates.d.ts +30 -3
- package/lib/sdk-gen/managers/metadataTemplates.d.ts.map +1 -1
- package/lib/sdk-gen/managers/metadataTemplates.js +106 -33
- package/lib/sdk-gen/managers/metadataTemplates.js.map +1 -1
- package/lib/sdk-gen/managers/retentionPolicies.js.map +1 -1
- package/lib/sdk-gen/managers/retentionPolicyAssignments.js.map +1 -1
- package/lib/sdk-gen/managers/search.d.ts +1 -1
- package/lib/sdk-gen/managers/search.d.ts.map +1 -1
- package/lib/sdk-gen/managers/sharedLinksFiles.js.map +1 -1
- package/lib/sdk-gen/managers/sharedLinksFolders.js.map +1 -1
- package/lib/sdk-gen/managers/sharedLinksWebLinks.js.map +1 -1
- package/lib/sdk-gen/managers/shieldInformationBarrierReports.js.map +1 -1
- package/lib/sdk-gen/managers/shieldInformationBarrierSegmentMembers.js.map +1 -1
- package/lib/sdk-gen/managers/shieldInformationBarrierSegmentRestrictions.js.map +1 -1
- package/lib/sdk-gen/managers/shieldInformationBarrierSegments.js.map +1 -1
- package/lib/sdk-gen/managers/shieldInformationBarriers.js.map +1 -1
- package/lib/sdk-gen/managers/shieldLists.js.map +1 -1
- package/lib/sdk-gen/managers/signRequests.d.ts +4 -1
- package/lib/sdk-gen/managers/signRequests.d.ts.map +1 -1
- package/lib/sdk-gen/managers/signRequests.js +11 -0
- package/lib/sdk-gen/managers/signRequests.js.map +1 -1
- package/lib/sdk-gen/managers/signTemplates.js.map +1 -1
- package/lib/sdk-gen/managers/skills.js.map +1 -1
- package/lib/sdk-gen/managers/storagePolicies.js.map +1 -1
- package/lib/sdk-gen/managers/storagePolicyAssignments.js.map +1 -1
- package/lib/sdk-gen/managers/taskAssignments.js.map +1 -1
- package/lib/sdk-gen/managers/tasks.js.map +1 -1
- package/lib/sdk-gen/managers/termsOfServiceUserStatuses.js.map +1 -1
- package/lib/sdk-gen/managers/termsOfServices.js.map +1 -1
- package/lib/sdk-gen/managers/transfer.js.map +1 -1
- package/lib/sdk-gen/managers/trashedFiles.d.ts +2 -2
- package/lib/sdk-gen/managers/trashedFiles.js +2 -2
- package/lib/sdk-gen/managers/trashedFiles.js.map +1 -1
- package/lib/sdk-gen/managers/trashedFolders.d.ts +2 -2
- package/lib/sdk-gen/managers/trashedFolders.js +2 -2
- package/lib/sdk-gen/managers/trashedFolders.js.map +1 -1
- package/lib/sdk-gen/managers/trashedWebLinks.js.map +1 -1
- package/lib/sdk-gen/managers/uploads.js.map +1 -1
- package/lib/sdk-gen/managers/userCollaborations.js.map +1 -1
- package/lib/sdk-gen/managers/users.d.ts +2 -2
- package/lib/sdk-gen/managers/users.d.ts.map +1 -1
- package/lib/sdk-gen/managers/users.js.map +1 -1
- package/lib/sdk-gen/managers/webLinks.js.map +1 -1
- package/lib/sdk-gen/managers/webhooks.js.map +1 -1
- package/lib/sdk-gen/managers/workflows.js.map +1 -1
- package/lib/sdk-gen/managers/zipDownloads.d.ts +2 -2
- package/lib/sdk-gen/managers/zipDownloads.js +2 -2
- package/lib/sdk-gen/networking/retries.d.ts.map +1 -1
- package/lib/sdk-gen/networking/retries.js +3 -1
- package/lib/sdk-gen/networking/retries.js.map +1 -1
- package/lib/sdk-gen/networking/version.d.ts +1 -1
- package/lib/sdk-gen/networking/version.js +1 -1
- package/lib/sdk-gen/schemas/aiAgentBasicTextToolBase.d.ts +1 -1
- package/lib/sdk-gen/schemas/aiAgentBasicTextToolBase.d.ts.map +1 -1
- package/lib/sdk-gen/schemas/aiAgentReference.d.ts +2 -2
- package/lib/sdk-gen/schemas/aiAgentReference.d.ts.map +1 -1
- package/lib/sdk-gen/schemas/aiAgentSpreadsheetTool.d.ts +1 -1
- package/lib/sdk-gen/schemas/aiAgentSpreadsheetTool.d.ts.map +1 -1
- package/lib/sdk-gen/schemas/aiExtractStructured.d.ts +3 -0
- package/lib/sdk-gen/schemas/aiExtractStructured.d.ts.map +1 -1
- package/lib/sdk-gen/schemas/aiExtractStructured.js +30 -18
- package/lib/sdk-gen/schemas/aiExtractStructured.js.map +1 -1
- package/lib/sdk-gen/schemas/aiExtractStructuredResponse.d.ts +5 -0
- package/lib/sdk-gen/schemas/aiExtractStructuredResponse.d.ts.map +1 -1
- package/lib/sdk-gen/schemas/aiExtractStructuredResponse.js +24 -0
- package/lib/sdk-gen/schemas/aiExtractStructuredResponse.js.map +1 -1
- package/lib/sdk-gen/schemas/fileFull.d.ts +9 -0
- package/lib/sdk-gen/schemas/fileFull.d.ts.map +1 -1
- package/lib/sdk-gen/schemas/fileFull.js +35 -2
- package/lib/sdk-gen/schemas/fileFull.js.map +1 -1
- package/lib/sdk-gen/schemas/folderFull.d.ts +9 -0
- package/lib/sdk-gen/schemas/folderFull.d.ts.map +1 -1
- package/lib/sdk-gen/schemas/folderFull.js +32 -1
- package/lib/sdk-gen/schemas/folderFull.js.map +1 -1
- package/lib/sdk-gen/schemas/index.d.ts +23 -3
- package/lib/sdk-gen/schemas/index.d.ts.map +1 -1
- package/lib/sdk-gen/schemas/index.js +23 -3
- package/lib/sdk-gen/schemas/index.js.map +1 -1
- package/lib/sdk-gen/schemas/legalHoldPolicy.d.ts +7 -1
- package/lib/sdk-gen/schemas/legalHoldPolicy.d.ts.map +1 -1
- package/lib/sdk-gen/schemas/legalHoldPolicy.js +16 -0
- package/lib/sdk-gen/schemas/legalHoldPolicy.js.map +1 -1
- package/lib/sdk-gen/schemas/metadataCascadePolicy.d.ts +6 -6
- package/lib/sdk-gen/schemas/metadataCascadePolicy.d.ts.map +1 -1
- package/lib/sdk-gen/schemas/metadataFilter.d.ts +3 -3
- package/lib/sdk-gen/schemas/metadataFilter.d.ts.map +1 -1
- package/lib/sdk-gen/schemas/metadataTaxonomies.d.ts +22 -0
- package/lib/sdk-gen/schemas/metadataTaxonomies.d.ts.map +1 -0
- package/lib/sdk-gen/schemas/metadataTaxonomies.js +67 -0
- package/lib/sdk-gen/schemas/metadataTaxonomies.js.map +1 -0
- package/lib/sdk-gen/schemas/metadataTaxonomy.d.ts +24 -0
- package/lib/sdk-gen/schemas/metadataTaxonomy.d.ts.map +1 -0
- package/lib/sdk-gen/schemas/metadataTaxonomy.js +89 -0
- package/lib/sdk-gen/schemas/metadataTaxonomy.js.map +1 -0
- package/lib/sdk-gen/schemas/metadataTaxonomyAncestor.d.ts +16 -0
- package/lib/sdk-gen/schemas/metadataTaxonomyAncestor.d.ts.map +1 -0
- package/lib/sdk-gen/schemas/metadataTaxonomyAncestor.js +46 -0
- package/lib/sdk-gen/schemas/metadataTaxonomyAncestor.js.map +1 -0
- package/lib/sdk-gen/schemas/metadataTaxonomyLevel.d.ts +16 -0
- package/lib/sdk-gen/schemas/metadataTaxonomyLevel.d.ts.map +1 -0
- package/lib/sdk-gen/schemas/metadataTaxonomyLevel.js +46 -0
- package/lib/sdk-gen/schemas/metadataTaxonomyLevel.js.map +1 -0
- package/lib/sdk-gen/schemas/metadataTaxonomyLevels.d.ts +11 -0
- package/lib/sdk-gen/schemas/metadataTaxonomyLevels.d.ts.map +1 -0
- package/lib/sdk-gen/schemas/metadataTaxonomyLevels.js +39 -0
- package/lib/sdk-gen/schemas/metadataTaxonomyLevels.js.map +1 -0
- package/lib/sdk-gen/schemas/metadataTaxonomyNode.d.ts +28 -0
- package/lib/sdk-gen/schemas/metadataTaxonomyNode.d.ts.map +1 -0
- package/lib/sdk-gen/schemas/metadataTaxonomyNode.js +113 -0
- package/lib/sdk-gen/schemas/metadataTaxonomyNode.js.map +1 -0
- package/lib/sdk-gen/schemas/metadataTaxonomyNodes.d.ts +22 -0
- package/lib/sdk-gen/schemas/metadataTaxonomyNodes.d.ts.map +1 -0
- package/lib/sdk-gen/schemas/metadataTaxonomyNodes.js +67 -0
- package/lib/sdk-gen/schemas/metadataTaxonomyNodes.js.map +1 -0
- package/lib/sdk-gen/schemas/metadataTemplate.d.ts +1 -1
- package/lib/sdk-gen/schemas/metadataTemplate.d.ts.map +1 -1
- package/lib/sdk-gen/schemas/metadataTemplate.js +3 -0
- package/lib/sdk-gen/schemas/metadataTemplate.js.map +1 -1
- package/lib/sdk-gen/schemas/realtimeServer.d.ts +1 -1
- package/lib/sdk-gen/schemas/realtimeServer.d.ts.map +1 -1
- package/lib/sdk-gen/schemas/signRequestCancelRequest.d.ts +10 -0
- package/lib/sdk-gen/schemas/signRequestCancelRequest.d.ts.map +1 -0
- package/lib/sdk-gen/schemas/signRequestCancelRequest.js +25 -0
- package/lib/sdk-gen/schemas/signRequestCancelRequest.js.map +1 -0
- package/lib/sdk-gen/schemas/signRequestCreateRequest.d.ts +1 -1
- package/lib/sdk-gen/schemas/signRequestCreateSigner.d.ts +4 -0
- package/lib/sdk-gen/schemas/signRequestCreateSigner.d.ts.map +1 -1
- package/lib/sdk-gen/schemas/signRequestCreateSigner.js +8 -0
- package/lib/sdk-gen/schemas/signRequestCreateSigner.js.map +1 -1
- package/lib/sdk-gen/schemas/signRequestSigner.d.ts.map +1 -1
- package/lib/sdk-gen/schemas/signRequestSigner.js +7 -0
- package/lib/sdk-gen/schemas/signRequestSigner.js.map +1 -1
- package/lib/sdk-gen/schemas/signRequestSignerInput.d.ts +6 -1
- package/lib/sdk-gen/schemas/signRequestSignerInput.d.ts.map +1 -1
- package/lib/sdk-gen/schemas/signRequestSignerInput.js +9 -0
- package/lib/sdk-gen/schemas/signRequestSignerInput.js.map +1 -1
- package/lib/sdk-gen/schemas/signRequestSignerInputCustomValidation.d.ts +36 -0
- package/lib/sdk-gen/schemas/signRequestSignerInputCustomValidation.d.ts.map +1 -0
- package/lib/sdk-gen/schemas/signRequestSignerInputCustomValidation.js +123 -0
- package/lib/sdk-gen/schemas/signRequestSignerInputCustomValidation.js.map +1 -0
- package/lib/sdk-gen/schemas/signRequestSignerInputDateAsiaValidation.d.ts +13 -0
- package/lib/sdk-gen/schemas/signRequestSignerInputDateAsiaValidation.d.ts.map +1 -0
- package/lib/sdk-gen/schemas/signRequestSignerInputDateAsiaValidation.js +44 -0
- package/lib/sdk-gen/schemas/signRequestSignerInputDateAsiaValidation.js.map +1 -0
- package/lib/sdk-gen/schemas/signRequestSignerInputDateEuValidation.d.ts +13 -0
- package/lib/sdk-gen/schemas/signRequestSignerInputDateEuValidation.d.ts.map +1 -0
- package/lib/sdk-gen/schemas/signRequestSignerInputDateEuValidation.js +44 -0
- package/lib/sdk-gen/schemas/signRequestSignerInputDateEuValidation.js.map +1 -0
- package/lib/sdk-gen/schemas/signRequestSignerInputDateIsoValidation.d.ts +13 -0
- package/lib/sdk-gen/schemas/signRequestSignerInputDateIsoValidation.d.ts.map +1 -0
- package/lib/sdk-gen/schemas/signRequestSignerInputDateIsoValidation.js +44 -0
- package/lib/sdk-gen/schemas/signRequestSignerInputDateIsoValidation.js.map +1 -0
- package/lib/sdk-gen/schemas/signRequestSignerInputDateUsValidation.d.ts +13 -0
- package/lib/sdk-gen/schemas/signRequestSignerInputDateUsValidation.d.ts.map +1 -0
- package/lib/sdk-gen/schemas/signRequestSignerInputDateUsValidation.js +44 -0
- package/lib/sdk-gen/schemas/signRequestSignerInputDateUsValidation.js.map +1 -0
- package/lib/sdk-gen/schemas/signRequestSignerInputEmailValidation.d.ts +22 -0
- package/lib/sdk-gen/schemas/signRequestSignerInputEmailValidation.d.ts.map +1 -0
- package/lib/sdk-gen/schemas/signRequestSignerInputEmailValidation.js +82 -0
- package/lib/sdk-gen/schemas/signRequestSignerInputEmailValidation.js.map +1 -0
- package/lib/sdk-gen/schemas/signRequestSignerInputNumberWithCommaValidation.d.ts +13 -0
- package/lib/sdk-gen/schemas/signRequestSignerInputNumberWithCommaValidation.d.ts.map +1 -0
- package/lib/sdk-gen/schemas/signRequestSignerInputNumberWithCommaValidation.js +44 -0
- package/lib/sdk-gen/schemas/signRequestSignerInputNumberWithCommaValidation.js.map +1 -0
- package/lib/sdk-gen/schemas/signRequestSignerInputNumberWithPeriodValidation.d.ts +13 -0
- package/lib/sdk-gen/schemas/signRequestSignerInputNumberWithPeriodValidation.d.ts.map +1 -0
- package/lib/sdk-gen/schemas/signRequestSignerInputNumberWithPeriodValidation.js +44 -0
- package/lib/sdk-gen/schemas/signRequestSignerInputNumberWithPeriodValidation.js.map +1 -0
- package/lib/sdk-gen/schemas/signRequestSignerInputSsnValidation.d.ts +22 -0
- package/lib/sdk-gen/schemas/signRequestSignerInputSsnValidation.d.ts.map +1 -0
- package/lib/sdk-gen/schemas/signRequestSignerInputSsnValidation.js +82 -0
- package/lib/sdk-gen/schemas/signRequestSignerInputSsnValidation.js.map +1 -0
- package/lib/sdk-gen/schemas/signRequestSignerInputValidation.d.ts +16 -0
- package/lib/sdk-gen/schemas/signRequestSignerInputValidation.d.ts.map +1 -0
- package/lib/sdk-gen/schemas/signRequestSignerInputValidation.js +251 -0
- package/lib/sdk-gen/schemas/signRequestSignerInputValidation.js.map +1 -0
- package/lib/sdk-gen/schemas/signRequestSignerInputZip4Validation.d.ts +22 -0
- package/lib/sdk-gen/schemas/signRequestSignerInputZip4Validation.d.ts.map +1 -0
- package/lib/sdk-gen/schemas/signRequestSignerInputZip4Validation.js +82 -0
- package/lib/sdk-gen/schemas/signRequestSignerInputZip4Validation.js.map +1 -0
- package/lib/sdk-gen/schemas/signRequestSignerInputZipValidation.d.ts +22 -0
- package/lib/sdk-gen/schemas/signRequestSignerInputZipValidation.d.ts.map +1 -0
- package/lib/sdk-gen/schemas/signRequestSignerInputZipValidation.js +82 -0
- package/lib/sdk-gen/schemas/signRequestSignerInputZipValidation.js.map +1 -0
- package/lib/sdk-gen/schemas/signTemplate.d.ts +1 -1
- package/lib/sdk-gen/schemas/templateSignerInput.d.ts +6 -1
- package/lib/sdk-gen/schemas/templateSignerInput.d.ts.map +1 -1
- package/lib/sdk-gen/schemas/templateSignerInput.js +9 -0
- package/lib/sdk-gen/schemas/templateSignerInput.js.map +1 -1
- package/lib/util/token-storage-adapter.d.ts +53 -0
- package/lib/util/token-storage-adapter.d.ts.map +1 -0
- package/lib/util/token-storage-adapter.js +131 -0
- package/lib/util/token-storage-adapter.js.map +1 -0
- package/lib-esm/box-client.d.ts +61 -0
- package/lib-esm/box-client.js +206 -0
- package/lib-esm/box-client.js.map +1 -1
- package/lib-esm/bundle.js +1848 -55
- package/lib-esm/bundle.js.map +1 -1
- package/lib-esm/sdk-gen/client.d.ts +3 -1
- package/lib-esm/sdk-gen/client.js +6 -0
- package/lib-esm/sdk-gen/client.js.map +1 -1
- package/lib-esm/sdk-gen/managers/ai.d.ts +3 -3
- package/lib-esm/sdk-gen/managers/ai.js +3 -3
- package/lib-esm/sdk-gen/managers/aiStudio.js.map +1 -1
- package/lib-esm/sdk-gen/managers/appItemAssociations.js.map +1 -1
- package/lib-esm/sdk-gen/managers/archives.d.ts +4 -4
- package/lib-esm/sdk-gen/managers/archives.js +4 -4
- package/lib-esm/sdk-gen/managers/archives.js.map +1 -1
- package/lib-esm/sdk-gen/managers/authorization.d.ts +1 -1
- package/lib-esm/sdk-gen/managers/authorization.js +1 -1
- package/lib-esm/sdk-gen/managers/avatars.js.map +1 -1
- package/lib-esm/sdk-gen/managers/chunkedUploads.d.ts +18 -18
- package/lib-esm/sdk-gen/managers/chunkedUploads.js +18 -18
- package/lib-esm/sdk-gen/managers/chunkedUploads.js.map +1 -1
- package/lib-esm/sdk-gen/managers/collaborationAllowlistEntries.js.map +1 -1
- package/lib-esm/sdk-gen/managers/collaborationAllowlistExemptTargets.js.map +1 -1
- package/lib-esm/sdk-gen/managers/collections.js.map +1 -1
- package/lib-esm/sdk-gen/managers/comments.js.map +1 -1
- package/lib-esm/sdk-gen/managers/devicePinners.js.map +1 -1
- package/lib-esm/sdk-gen/managers/docgen.js.map +1 -1
- package/lib-esm/sdk-gen/managers/docgenTemplate.js.map +1 -1
- package/lib-esm/sdk-gen/managers/downloads.js.map +1 -1
- package/lib-esm/sdk-gen/managers/emailAliases.js.map +1 -1
- package/lib-esm/sdk-gen/managers/enterpriseConfigurations.js.map +1 -1
- package/lib-esm/sdk-gen/managers/events.d.ts +2 -2
- package/lib-esm/sdk-gen/managers/events.js +2 -2
- package/lib-esm/sdk-gen/managers/fileClassifications.d.ts +3 -3
- package/lib-esm/sdk-gen/managers/fileClassifications.js +1 -1
- package/lib-esm/sdk-gen/managers/fileClassifications.js.map +1 -1
- package/lib-esm/sdk-gen/managers/fileMetadata.d.ts +24 -2
- package/lib-esm/sdk-gen/managers/fileMetadata.js +16 -0
- package/lib-esm/sdk-gen/managers/fileMetadata.js.map +1 -1
- package/lib-esm/sdk-gen/managers/fileRequests.js.map +1 -1
- package/lib-esm/sdk-gen/managers/fileVersionLegalHolds.js.map +1 -1
- package/lib-esm/sdk-gen/managers/fileVersionRetentions.d.ts +2 -2
- package/lib-esm/sdk-gen/managers/fileVersionRetentions.js +2 -2
- package/lib-esm/sdk-gen/managers/fileVersionRetentions.js.map +1 -1
- package/lib-esm/sdk-gen/managers/fileVersions.js.map +1 -1
- package/lib-esm/sdk-gen/managers/fileWatermarks.js.map +1 -1
- package/lib-esm/sdk-gen/managers/files.d.ts +1 -1
- package/lib-esm/sdk-gen/managers/files.js.map +1 -1
- package/lib-esm/sdk-gen/managers/folderClassifications.d.ts +3 -3
- package/lib-esm/sdk-gen/managers/folderClassifications.js +1 -1
- package/lib-esm/sdk-gen/managers/folderClassifications.js.map +1 -1
- package/lib-esm/sdk-gen/managers/folderLocks.js.map +1 -1
- package/lib-esm/sdk-gen/managers/folderMetadata.d.ts +12 -1
- package/lib-esm/sdk-gen/managers/folderMetadata.js +8 -0
- package/lib-esm/sdk-gen/managers/folderMetadata.js.map +1 -1
- package/lib-esm/sdk-gen/managers/folderWatermarks.js.map +1 -1
- package/lib-esm/sdk-gen/managers/folders.d.ts +10 -10
- package/lib-esm/sdk-gen/managers/folders.js +3 -3
- package/lib-esm/sdk-gen/managers/folders.js.map +1 -1
- package/lib-esm/sdk-gen/managers/groups.js.map +1 -1
- package/lib-esm/sdk-gen/managers/hubCollaborations.js.map +1 -1
- package/lib-esm/sdk-gen/managers/hubItems.js.map +1 -1
- package/lib-esm/sdk-gen/managers/hubs.js.map +1 -1
- package/lib-esm/sdk-gen/managers/index.d.ts +1 -0
- package/lib-esm/sdk-gen/managers/index.js +1 -0
- package/lib-esm/sdk-gen/managers/index.js.map +1 -1
- package/lib-esm/sdk-gen/managers/integrationMappings.js.map +1 -1
- package/lib-esm/sdk-gen/managers/invites.js.map +1 -1
- package/lib-esm/sdk-gen/managers/legalHoldPolicies.js.map +1 -1
- package/lib-esm/sdk-gen/managers/legalHoldPolicyAssignments.d.ts +2 -2
- package/lib-esm/sdk-gen/managers/legalHoldPolicyAssignments.js +2 -2
- package/lib-esm/sdk-gen/managers/legalHoldPolicyAssignments.js.map +1 -1
- package/lib-esm/sdk-gen/managers/listCollaborations.js.map +1 -1
- package/lib-esm/sdk-gen/managers/memberships.js.map +1 -1
- package/lib-esm/sdk-gen/managers/metadataCascadePolicies.d.ts +3 -3
- package/lib-esm/sdk-gen/managers/metadataCascadePolicies.js.map +1 -1
- package/lib-esm/sdk-gen/managers/metadataTaxonomies.d.ts +703 -0
- package/lib-esm/sdk-gen/managers/metadataTaxonomies.js +1158 -0
- package/lib-esm/sdk-gen/managers/metadataTaxonomies.js.map +1 -0
- package/lib-esm/sdk-gen/managers/metadataTemplates.d.ts +30 -3
- package/lib-esm/sdk-gen/managers/metadataTemplates.js +106 -33
- package/lib-esm/sdk-gen/managers/metadataTemplates.js.map +1 -1
- package/lib-esm/sdk-gen/managers/retentionPolicies.js.map +1 -1
- package/lib-esm/sdk-gen/managers/retentionPolicyAssignments.js.map +1 -1
- package/lib-esm/sdk-gen/managers/search.d.ts +1 -1
- package/lib-esm/sdk-gen/managers/sharedLinksFiles.js.map +1 -1
- package/lib-esm/sdk-gen/managers/sharedLinksFolders.js.map +1 -1
- package/lib-esm/sdk-gen/managers/sharedLinksWebLinks.js.map +1 -1
- package/lib-esm/sdk-gen/managers/shieldInformationBarrierReports.js.map +1 -1
- package/lib-esm/sdk-gen/managers/shieldInformationBarrierSegmentMembers.js.map +1 -1
- package/lib-esm/sdk-gen/managers/shieldInformationBarrierSegmentRestrictions.js.map +1 -1
- package/lib-esm/sdk-gen/managers/shieldInformationBarrierSegments.js.map +1 -1
- package/lib-esm/sdk-gen/managers/shieldInformationBarriers.js.map +1 -1
- package/lib-esm/sdk-gen/managers/shieldLists.js.map +1 -1
- package/lib-esm/sdk-gen/managers/signRequests.d.ts +4 -1
- package/lib-esm/sdk-gen/managers/signRequests.js +11 -0
- package/lib-esm/sdk-gen/managers/signRequests.js.map +1 -1
- package/lib-esm/sdk-gen/managers/signTemplates.js.map +1 -1
- package/lib-esm/sdk-gen/managers/skills.js.map +1 -1
- package/lib-esm/sdk-gen/managers/storagePolicies.js.map +1 -1
- package/lib-esm/sdk-gen/managers/storagePolicyAssignments.js.map +1 -1
- package/lib-esm/sdk-gen/managers/taskAssignments.js.map +1 -1
- package/lib-esm/sdk-gen/managers/tasks.js.map +1 -1
- package/lib-esm/sdk-gen/managers/termsOfServiceUserStatuses.js.map +1 -1
- package/lib-esm/sdk-gen/managers/termsOfServices.js.map +1 -1
- package/lib-esm/sdk-gen/managers/transfer.js.map +1 -1
- package/lib-esm/sdk-gen/managers/trashedFiles.d.ts +2 -2
- package/lib-esm/sdk-gen/managers/trashedFiles.js +2 -2
- package/lib-esm/sdk-gen/managers/trashedFiles.js.map +1 -1
- package/lib-esm/sdk-gen/managers/trashedFolders.d.ts +2 -2
- package/lib-esm/sdk-gen/managers/trashedFolders.js +2 -2
- package/lib-esm/sdk-gen/managers/trashedFolders.js.map +1 -1
- package/lib-esm/sdk-gen/managers/trashedWebLinks.js.map +1 -1
- package/lib-esm/sdk-gen/managers/uploads.js.map +1 -1
- package/lib-esm/sdk-gen/managers/userCollaborations.js.map +1 -1
- package/lib-esm/sdk-gen/managers/users.d.ts +2 -2
- package/lib-esm/sdk-gen/managers/users.js.map +1 -1
- package/lib-esm/sdk-gen/managers/webLinks.js.map +1 -1
- package/lib-esm/sdk-gen/managers/webhooks.js.map +1 -1
- package/lib-esm/sdk-gen/managers/workflows.js.map +1 -1
- package/lib-esm/sdk-gen/managers/zipDownloads.d.ts +2 -2
- package/lib-esm/sdk-gen/managers/zipDownloads.js +2 -2
- package/lib-esm/sdk-gen/networking/retries.js +3 -1
- package/lib-esm/sdk-gen/networking/retries.js.map +1 -1
- package/lib-esm/sdk-gen/networking/version.d.ts +1 -1
- package/lib-esm/sdk-gen/networking/version.js +1 -1
- package/lib-esm/sdk-gen/schemas/aiAgentBasicTextToolBase.d.ts +1 -1
- package/lib-esm/sdk-gen/schemas/aiAgentReference.d.ts +2 -2
- package/lib-esm/sdk-gen/schemas/aiAgentReference.js +1 -1
- package/lib-esm/sdk-gen/schemas/aiAgentReference.js.map +1 -1
- package/lib-esm/sdk-gen/schemas/aiAgentSpreadsheetTool.d.ts +1 -1
- package/lib-esm/sdk-gen/schemas/aiExtractStructured.d.ts +3 -0
- package/lib-esm/sdk-gen/schemas/aiExtractStructured.js +30 -18
- package/lib-esm/sdk-gen/schemas/aiExtractStructured.js.map +1 -1
- package/lib-esm/sdk-gen/schemas/aiExtractStructuredResponse.d.ts +5 -0
- package/lib-esm/sdk-gen/schemas/aiExtractStructuredResponse.js +24 -0
- package/lib-esm/sdk-gen/schemas/aiExtractStructuredResponse.js.map +1 -1
- package/lib-esm/sdk-gen/schemas/fileFull.d.ts +9 -0
- package/lib-esm/sdk-gen/schemas/fileFull.js +35 -2
- package/lib-esm/sdk-gen/schemas/fileFull.js.map +1 -1
- package/lib-esm/sdk-gen/schemas/folderFull.d.ts +9 -0
- package/lib-esm/sdk-gen/schemas/folderFull.js +32 -1
- package/lib-esm/sdk-gen/schemas/folderFull.js.map +1 -1
- package/lib-esm/sdk-gen/schemas/index.d.ts +23 -3
- package/lib-esm/sdk-gen/schemas/index.js +23 -3
- package/lib-esm/sdk-gen/schemas/index.js.map +1 -1
- package/lib-esm/sdk-gen/schemas/legalHoldPolicy.d.ts +7 -1
- package/lib-esm/sdk-gen/schemas/legalHoldPolicy.js +16 -0
- package/lib-esm/sdk-gen/schemas/legalHoldPolicy.js.map +1 -1
- package/lib-esm/sdk-gen/schemas/metadataCascadePolicy.d.ts +6 -6
- package/lib-esm/sdk-gen/schemas/metadataCascadePolicy.js +3 -3
- package/lib-esm/sdk-gen/schemas/metadataCascadePolicy.js.map +1 -1
- package/lib-esm/sdk-gen/schemas/metadataFilter.d.ts +3 -3
- package/lib-esm/sdk-gen/schemas/metadataTaxonomies.d.ts +21 -0
- package/lib-esm/sdk-gen/schemas/metadataTaxonomies.js +67 -0
- package/lib-esm/sdk-gen/schemas/metadataTaxonomies.js.map +1 -0
- package/lib-esm/sdk-gen/schemas/metadataTaxonomy.d.ts +23 -0
- package/lib-esm/sdk-gen/schemas/metadataTaxonomy.js +89 -0
- package/lib-esm/sdk-gen/schemas/metadataTaxonomy.js.map +1 -0
- package/lib-esm/sdk-gen/schemas/metadataTaxonomyAncestor.d.ts +15 -0
- package/lib-esm/sdk-gen/schemas/metadataTaxonomyAncestor.js +46 -0
- package/lib-esm/sdk-gen/schemas/metadataTaxonomyAncestor.js.map +1 -0
- package/lib-esm/sdk-gen/schemas/metadataTaxonomyLevel.d.ts +15 -0
- package/lib-esm/sdk-gen/schemas/metadataTaxonomyLevel.js +46 -0
- package/lib-esm/sdk-gen/schemas/metadataTaxonomyLevel.js.map +1 -0
- package/lib-esm/sdk-gen/schemas/metadataTaxonomyLevels.d.ts +10 -0
- package/lib-esm/sdk-gen/schemas/metadataTaxonomyLevels.js +39 -0
- package/lib-esm/sdk-gen/schemas/metadataTaxonomyLevels.js.map +1 -0
- package/lib-esm/sdk-gen/schemas/metadataTaxonomyNode.d.ts +27 -0
- package/lib-esm/sdk-gen/schemas/metadataTaxonomyNode.js +113 -0
- package/lib-esm/sdk-gen/schemas/metadataTaxonomyNode.js.map +1 -0
- package/lib-esm/sdk-gen/schemas/metadataTaxonomyNodes.d.ts +21 -0
- package/lib-esm/sdk-gen/schemas/metadataTaxonomyNodes.js +67 -0
- package/lib-esm/sdk-gen/schemas/metadataTaxonomyNodes.js.map +1 -0
- package/lib-esm/sdk-gen/schemas/metadataTemplate.d.ts +1 -1
- package/lib-esm/sdk-gen/schemas/metadataTemplate.js +3 -0
- package/lib-esm/sdk-gen/schemas/metadataTemplate.js.map +1 -1
- package/lib-esm/sdk-gen/schemas/realtimeServer.d.ts +1 -1
- package/lib-esm/sdk-gen/schemas/signRequestCancelRequest.d.ts +9 -0
- package/lib-esm/sdk-gen/schemas/signRequestCancelRequest.js +25 -0
- package/lib-esm/sdk-gen/schemas/signRequestCancelRequest.js.map +1 -0
- package/lib-esm/sdk-gen/schemas/signRequestCreateRequest.d.ts +1 -1
- package/lib-esm/sdk-gen/schemas/signRequestCreateSigner.d.ts +4 -0
- package/lib-esm/sdk-gen/schemas/signRequestCreateSigner.js +8 -0
- package/lib-esm/sdk-gen/schemas/signRequestCreateSigner.js.map +1 -1
- package/lib-esm/sdk-gen/schemas/signRequestSigner.js +7 -0
- package/lib-esm/sdk-gen/schemas/signRequestSigner.js.map +1 -1
- package/lib-esm/sdk-gen/schemas/signRequestSignerInput.d.ts +6 -1
- package/lib-esm/sdk-gen/schemas/signRequestSignerInput.js +9 -0
- package/lib-esm/sdk-gen/schemas/signRequestSignerInput.js.map +1 -1
- package/lib-esm/sdk-gen/schemas/signRequestSignerInputCustomValidation.d.ts +35 -0
- package/lib-esm/sdk-gen/schemas/signRequestSignerInputCustomValidation.js +130 -0
- package/lib-esm/sdk-gen/schemas/signRequestSignerInputCustomValidation.js.map +1 -0
- package/lib-esm/sdk-gen/schemas/signRequestSignerInputDateAsiaValidation.d.ts +12 -0
- package/lib-esm/sdk-gen/schemas/signRequestSignerInputDateAsiaValidation.js +44 -0
- package/lib-esm/sdk-gen/schemas/signRequestSignerInputDateAsiaValidation.js.map +1 -0
- package/lib-esm/sdk-gen/schemas/signRequestSignerInputDateEuValidation.d.ts +12 -0
- package/lib-esm/sdk-gen/schemas/signRequestSignerInputDateEuValidation.js +44 -0
- package/lib-esm/sdk-gen/schemas/signRequestSignerInputDateEuValidation.js.map +1 -0
- package/lib-esm/sdk-gen/schemas/signRequestSignerInputDateIsoValidation.d.ts +12 -0
- package/lib-esm/sdk-gen/schemas/signRequestSignerInputDateIsoValidation.js +44 -0
- package/lib-esm/sdk-gen/schemas/signRequestSignerInputDateIsoValidation.js.map +1 -0
- package/lib-esm/sdk-gen/schemas/signRequestSignerInputDateUsValidation.d.ts +12 -0
- package/lib-esm/sdk-gen/schemas/signRequestSignerInputDateUsValidation.js +44 -0
- package/lib-esm/sdk-gen/schemas/signRequestSignerInputDateUsValidation.js.map +1 -0
- package/lib-esm/sdk-gen/schemas/signRequestSignerInputEmailValidation.d.ts +21 -0
- package/lib-esm/sdk-gen/schemas/signRequestSignerInputEmailValidation.js +83 -0
- package/lib-esm/sdk-gen/schemas/signRequestSignerInputEmailValidation.js.map +1 -0
- package/lib-esm/sdk-gen/schemas/signRequestSignerInputNumberWithCommaValidation.d.ts +12 -0
- package/lib-esm/sdk-gen/schemas/signRequestSignerInputNumberWithCommaValidation.js +44 -0
- package/lib-esm/sdk-gen/schemas/signRequestSignerInputNumberWithCommaValidation.js.map +1 -0
- package/lib-esm/sdk-gen/schemas/signRequestSignerInputNumberWithPeriodValidation.d.ts +12 -0
- package/lib-esm/sdk-gen/schemas/signRequestSignerInputNumberWithPeriodValidation.js +44 -0
- package/lib-esm/sdk-gen/schemas/signRequestSignerInputNumberWithPeriodValidation.js.map +1 -0
- package/lib-esm/sdk-gen/schemas/signRequestSignerInputSsnValidation.d.ts +21 -0
- package/lib-esm/sdk-gen/schemas/signRequestSignerInputSsnValidation.js +83 -0
- package/lib-esm/sdk-gen/schemas/signRequestSignerInputSsnValidation.js.map +1 -0
- package/lib-esm/sdk-gen/schemas/signRequestSignerInputValidation.d.ts +15 -0
- package/lib-esm/sdk-gen/schemas/signRequestSignerInputValidation.js +251 -0
- package/lib-esm/sdk-gen/schemas/signRequestSignerInputValidation.js.map +1 -0
- package/lib-esm/sdk-gen/schemas/signRequestSignerInputZip4Validation.d.ts +21 -0
- package/lib-esm/sdk-gen/schemas/signRequestSignerInputZip4Validation.js +83 -0
- package/lib-esm/sdk-gen/schemas/signRequestSignerInputZip4Validation.js.map +1 -0
- package/lib-esm/sdk-gen/schemas/signRequestSignerInputZipValidation.d.ts +21 -0
- package/lib-esm/sdk-gen/schemas/signRequestSignerInputZipValidation.js +83 -0
- package/lib-esm/sdk-gen/schemas/signRequestSignerInputZipValidation.js.map +1 -0
- package/lib-esm/sdk-gen/schemas/signTemplate.d.ts +1 -1
- package/lib-esm/sdk-gen/schemas/templateSignerInput.d.ts +6 -1
- package/lib-esm/sdk-gen/schemas/templateSignerInput.js +9 -0
- package/lib-esm/sdk-gen/schemas/templateSignerInput.js.map +1 -1
- package/lib-esm/util/token-storage-adapter.d.ts +52 -0
- package/lib-esm/util/token-storage-adapter.js +117 -0
- package/lib-esm/util/token-storage-adapter.js.map +1 -0
- package/package.json +2 -2
package/lib-esm/bundle.js
CHANGED
|
@@ -398,7 +398,7 @@
|
|
|
398
398
|
* @license MIT
|
|
399
399
|
*/
|
|
400
400
|
|
|
401
|
-
(function (exports) {
|
|
401
|
+
(function (exports$1) {
|
|
402
402
|
|
|
403
403
|
const base64 = base64Js;
|
|
404
404
|
const ieee754$1 = ieee754;
|
|
@@ -407,12 +407,12 @@
|
|
|
407
407
|
? Symbol['for']('nodejs.util.inspect.custom') // eslint-disable-line dot-notation
|
|
408
408
|
: null;
|
|
409
409
|
|
|
410
|
-
exports.Buffer = Buffer;
|
|
411
|
-
exports.SlowBuffer = SlowBuffer;
|
|
412
|
-
exports.INSPECT_MAX_BYTES = 50;
|
|
410
|
+
exports$1.Buffer = Buffer;
|
|
411
|
+
exports$1.SlowBuffer = SlowBuffer;
|
|
412
|
+
exports$1.INSPECT_MAX_BYTES = 50;
|
|
413
413
|
|
|
414
414
|
const K_MAX_LENGTH = 0x7fffffff;
|
|
415
|
-
exports.kMaxLength = K_MAX_LENGTH;
|
|
415
|
+
exports$1.kMaxLength = K_MAX_LENGTH;
|
|
416
416
|
|
|
417
417
|
/**
|
|
418
418
|
* If `Buffer.TYPED_ARRAY_SUPPORT`:
|
|
@@ -1008,7 +1008,7 @@
|
|
|
1008
1008
|
|
|
1009
1009
|
Buffer.prototype.inspect = function inspect () {
|
|
1010
1010
|
let str = '';
|
|
1011
|
-
const max = exports.INSPECT_MAX_BYTES;
|
|
1011
|
+
const max = exports$1.INSPECT_MAX_BYTES;
|
|
1012
1012
|
str = this.toString('hex', 0, max).replace(/(.{2})/g, '$1 ').trim();
|
|
1013
1013
|
if (this.length > max) str += ' ... ';
|
|
1014
1014
|
return '<Buffer ' + str + '>'
|
|
@@ -3592,7 +3592,7 @@
|
|
|
3592
3592
|
|
|
3593
3593
|
var browser = {exports: {}};
|
|
3594
3594
|
|
|
3595
|
-
(function (module, exports) {
|
|
3595
|
+
(function (module, exports$1) {
|
|
3596
3596
|
|
|
3597
3597
|
// ref: https://github.com/tc39/proposal-global
|
|
3598
3598
|
var getGlobal = function () {
|
|
@@ -3607,22 +3607,22 @@
|
|
|
3607
3607
|
|
|
3608
3608
|
var globalObject = getGlobal();
|
|
3609
3609
|
|
|
3610
|
-
module.exports = exports = globalObject.fetch;
|
|
3610
|
+
module.exports = exports$1 = globalObject.fetch;
|
|
3611
3611
|
|
|
3612
3612
|
// Needed for TypeScript and Webpack.
|
|
3613
3613
|
if (globalObject.fetch) {
|
|
3614
|
-
exports.default = globalObject.fetch.bind(globalObject);
|
|
3614
|
+
exports$1.default = globalObject.fetch.bind(globalObject);
|
|
3615
3615
|
}
|
|
3616
3616
|
|
|
3617
|
-
exports.Headers = globalObject.Headers;
|
|
3618
|
-
exports.Request = globalObject.Request;
|
|
3619
|
-
exports.Response = globalObject.Response;
|
|
3617
|
+
exports$1.Headers = globalObject.Headers;
|
|
3618
|
+
exports$1.Request = globalObject.Request;
|
|
3619
|
+
exports$1.Response = globalObject.Response;
|
|
3620
3620
|
} (browser, browser.exports));
|
|
3621
3621
|
|
|
3622
3622
|
var browserExports = browser.exports;
|
|
3623
3623
|
var nodeFetch = /*@__PURE__*/getDefaultExportFromCjs(browserExports);
|
|
3624
3624
|
|
|
3625
|
-
const sdkVersion = '4.
|
|
3625
|
+
const sdkVersion = '4.4.0';
|
|
3626
3626
|
|
|
3627
3627
|
class BoxRetryStrategy {
|
|
3628
3628
|
constructor(fields) {
|
|
@@ -3688,7 +3688,9 @@
|
|
|
3688
3688
|
* @returns {number}
|
|
3689
3689
|
*/
|
|
3690
3690
|
retryAfter(fetchOptions, fetchResponse, attemptNumber) {
|
|
3691
|
-
const retryAfterHeader =
|
|
3691
|
+
const retryAfterHeader = 'Retry-After' in fetchResponse.headers
|
|
3692
|
+
? fetchResponse.headers['Retry-After']
|
|
3693
|
+
: void 0;
|
|
3692
3694
|
if (!(retryAfterHeader == void 0)) {
|
|
3693
3695
|
return parseFloat(retryAfterHeader);
|
|
3694
3696
|
}
|
|
@@ -4794,7 +4796,7 @@
|
|
|
4794
4796
|
* An Access Token is a string that enables Box to verify that a
|
|
4795
4797
|
* request belongs to an authorized session. In the normal order of
|
|
4796
4798
|
* operations you will begin by requesting authentication from the
|
|
4797
|
-
* [authorize](
|
|
4799
|
+
* [authorize](https://developer.box.com/reference/get-authorize) endpoint and Box will send you an
|
|
4798
4800
|
* authorization code.
|
|
4799
4801
|
*
|
|
4800
4802
|
* You will then send this code to this endpoint to exchange it for
|
|
@@ -6460,6 +6462,13 @@
|
|
|
6460
6462
|
});
|
|
6461
6463
|
}
|
|
6462
6464
|
const canViewAnnotationsSelf = val.can_view_annotations_self;
|
|
6465
|
+
if (!(val.can_apply_watermark == void 0) &&
|
|
6466
|
+
!sdIsBoolean(val.can_apply_watermark)) {
|
|
6467
|
+
throw new BoxSdkError({
|
|
6468
|
+
message: 'Expecting boolean for "can_apply_watermark" of type "FileFullPermissionsField"',
|
|
6469
|
+
});
|
|
6470
|
+
}
|
|
6471
|
+
const canApplyWatermark = val.can_apply_watermark == void 0 ? void 0 : val.can_apply_watermark;
|
|
6463
6472
|
return {
|
|
6464
6473
|
canDelete: canDelete,
|
|
6465
6474
|
canDownload: canDownload,
|
|
@@ -6473,6 +6482,7 @@
|
|
|
6473
6482
|
canUpload: canUpload,
|
|
6474
6483
|
canViewAnnotationsAll: canViewAnnotationsAll,
|
|
6475
6484
|
canViewAnnotationsSelf: canViewAnnotationsSelf,
|
|
6485
|
+
canApplyWatermark: canApplyWatermark,
|
|
6476
6486
|
};
|
|
6477
6487
|
}
|
|
6478
6488
|
function deserializeFileFullLockTypeField(val) {
|
|
@@ -6617,7 +6627,27 @@
|
|
|
6617
6627
|
});
|
|
6618
6628
|
}
|
|
6619
6629
|
const isWatermarked = val.is_watermarked == void 0 ? void 0 : val.is_watermarked;
|
|
6620
|
-
|
|
6630
|
+
if (!(val.is_watermark_inherited == void 0) &&
|
|
6631
|
+
!sdIsBoolean(val.is_watermark_inherited)) {
|
|
6632
|
+
throw new BoxSdkError({
|
|
6633
|
+
message: 'Expecting boolean for "is_watermark_inherited" of type "FileFullWatermarkInfoField"',
|
|
6634
|
+
});
|
|
6635
|
+
}
|
|
6636
|
+
const isWatermarkInherited = val.is_watermark_inherited == void 0 ? void 0 : val.is_watermark_inherited;
|
|
6637
|
+
if (!(val.is_watermarked_by_access_policy == void 0) &&
|
|
6638
|
+
!sdIsBoolean(val.is_watermarked_by_access_policy)) {
|
|
6639
|
+
throw new BoxSdkError({
|
|
6640
|
+
message: 'Expecting boolean for "is_watermarked_by_access_policy" of type "FileFullWatermarkInfoField"',
|
|
6641
|
+
});
|
|
6642
|
+
}
|
|
6643
|
+
const isWatermarkedByAccessPolicy = val.is_watermarked_by_access_policy == void 0
|
|
6644
|
+
? void 0
|
|
6645
|
+
: val.is_watermarked_by_access_policy;
|
|
6646
|
+
return {
|
|
6647
|
+
isWatermarked: isWatermarked,
|
|
6648
|
+
isWatermarkInherited: isWatermarkInherited,
|
|
6649
|
+
isWatermarkedByAccessPolicy: isWatermarkedByAccessPolicy,
|
|
6650
|
+
};
|
|
6621
6651
|
}
|
|
6622
6652
|
function deserializeFileFullAllowedInviteeRolesField(val) {
|
|
6623
6653
|
if (val == 'editor') {
|
|
@@ -8443,10 +8473,10 @@
|
|
|
8443
8473
|
* trash can it be retrieved with this API call. If instead one of
|
|
8444
8474
|
* its parent folders was moved to the trash, only that folder
|
|
8445
8475
|
* can be inspected using the
|
|
8446
|
-
* [`GET /folders/:id/trash`](
|
|
8476
|
+
* [`GET /folders/:id/trash`](https://developer.box.com/reference/get-folders-id-trash) API.
|
|
8447
8477
|
*
|
|
8448
8478
|
* To list all items that have been moved to the trash, please
|
|
8449
|
-
* use the [`GET /folders/trash/items`](
|
|
8479
|
+
* use the [`GET /folders/trash/items`](https://developer.box.com/reference/get-folders-trash-items/)
|
|
8450
8480
|
* API.
|
|
8451
8481
|
* @param {string} fileId The unique identifier that represents a file.
|
|
8452
8482
|
|
|
@@ -10096,7 +10126,7 @@
|
|
|
10096
10126
|
* This allows to always upload your content to the closest Box data center and can significantly improve upload speed.
|
|
10097
10127
|
* Return information about an upload session.
|
|
10098
10128
|
*
|
|
10099
|
-
* The actual endpoint URL is returned by the [`Create upload session`](
|
|
10129
|
+
* The actual endpoint URL is returned by the [`Create upload session`](https://developer.box.com/reference/post-files-upload-sessions) endpoint.
|
|
10100
10130
|
* @param {string} url URL of getFileUploadSessionById method
|
|
10101
10131
|
* @param {GetFileUploadSessionByUrlOptionalsInput} optionalsInput
|
|
10102
10132
|
* @returns {Promise<UploadSession>}
|
|
@@ -10125,7 +10155,7 @@
|
|
|
10125
10155
|
/**
|
|
10126
10156
|
* Return information about an upload session.
|
|
10127
10157
|
*
|
|
10128
|
-
* The actual endpoint URL is returned by the [`Create upload session`](
|
|
10158
|
+
* The actual endpoint URL is returned by the [`Create upload session`](https://developer.box.com/reference/post-files-upload-sessions) endpoint.
|
|
10129
10159
|
* @param {string} uploadSessionId The ID of the upload session.
|
|
10130
10160
|
Example: "D5E3F7A"
|
|
10131
10161
|
* @param {GetFileUploadSessionByIdOptionalsInput} optionalsInput
|
|
@@ -10157,8 +10187,8 @@
|
|
|
10157
10187
|
* This allows to always upload your content to the closest Box data center and can significantly improve upload speed.
|
|
10158
10188
|
* Uploads a chunk of a file for an upload session.
|
|
10159
10189
|
*
|
|
10160
|
-
* The actual endpoint URL is returned by the [`Create upload session`](
|
|
10161
|
-
* and [`Get upload session`](
|
|
10190
|
+
* The actual endpoint URL is returned by the [`Create upload session`](https://developer.box.com/reference/post-files-upload-sessions)
|
|
10191
|
+
* and [`Get upload session`](https://developer.box.com/reference/get-files-upload-sessions-id) endpoints.
|
|
10162
10192
|
* @param {string} url URL of uploadFilePart method
|
|
10163
10193
|
* @param {ByteStream} requestBody Request body of uploadFilePart method
|
|
10164
10194
|
* @param {UploadFilePartByUrlHeadersInput} headersInput Headers of uploadFilePart method
|
|
@@ -10197,8 +10227,8 @@
|
|
|
10197
10227
|
/**
|
|
10198
10228
|
* Uploads a chunk of a file for an upload session.
|
|
10199
10229
|
*
|
|
10200
|
-
* The actual endpoint URL is returned by the [`Create upload session`](
|
|
10201
|
-
* and [`Get upload session`](
|
|
10230
|
+
* The actual endpoint URL is returned by the [`Create upload session`](https://developer.box.com/reference/post-files-upload-sessions)
|
|
10231
|
+
* and [`Get upload session`](https://developer.box.com/reference/get-files-upload-sessions-id) endpoints.
|
|
10202
10232
|
* @param {string} uploadSessionId The ID of the upload session.
|
|
10203
10233
|
Example: "D5E3F7A"
|
|
10204
10234
|
* @param {ByteStream} requestBody Request body of uploadFilePart method
|
|
@@ -10242,8 +10272,8 @@
|
|
|
10242
10272
|
*
|
|
10243
10273
|
* This cannot be reversed.
|
|
10244
10274
|
*
|
|
10245
|
-
* The actual endpoint URL is returned by the [`Create upload session`](
|
|
10246
|
-
* and [`Get upload session`](
|
|
10275
|
+
* The actual endpoint URL is returned by the [`Create upload session`](https://developer.box.com/reference/post-files-upload-sessions)
|
|
10276
|
+
* and [`Get upload session`](https://developer.box.com/reference/get-files-upload-sessions-id) endpoints.
|
|
10247
10277
|
* @param {string} url URL of deleteFileUploadSessionById method
|
|
10248
10278
|
* @param {DeleteFileUploadSessionByUrlOptionalsInput} optionalsInput
|
|
10249
10279
|
* @returns {Promise<undefined>}
|
|
@@ -10274,8 +10304,8 @@
|
|
|
10274
10304
|
*
|
|
10275
10305
|
* This cannot be reversed.
|
|
10276
10306
|
*
|
|
10277
|
-
* The actual endpoint URL is returned by the [`Create upload session`](
|
|
10278
|
-
* and [`Get upload session`](
|
|
10307
|
+
* The actual endpoint URL is returned by the [`Create upload session`](https://developer.box.com/reference/post-files-upload-sessions)
|
|
10308
|
+
* and [`Get upload session`](https://developer.box.com/reference/get-files-upload-sessions-id) endpoints.
|
|
10279
10309
|
* @param {string} uploadSessionId The ID of the upload session.
|
|
10280
10310
|
Example: "D5E3F7A"
|
|
10281
10311
|
* @param {DeleteFileUploadSessionByIdOptionalsInput} optionalsInput
|
|
@@ -10307,8 +10337,8 @@
|
|
|
10307
10337
|
* This allows to always upload your content to the closest Box data center and can significantly improve upload speed.
|
|
10308
10338
|
* Return a list of the chunks uploaded to the upload session so far.
|
|
10309
10339
|
*
|
|
10310
|
-
* The actual endpoint URL is returned by the [`Create upload session`](
|
|
10311
|
-
* and [`Get upload session`](
|
|
10340
|
+
* The actual endpoint URL is returned by the [`Create upload session`](https://developer.box.com/reference/post-files-upload-sessions)
|
|
10341
|
+
* and [`Get upload session`](https://developer.box.com/reference/get-files-upload-sessions-id) endpoints.
|
|
10312
10342
|
* @param {string} url URL of getFileUploadSessionParts method
|
|
10313
10343
|
* @param {GetFileUploadSessionPartsByUrlOptionalsInput} optionalsInput
|
|
10314
10344
|
* @returns {Promise<UploadParts>}
|
|
@@ -10344,8 +10374,8 @@
|
|
|
10344
10374
|
/**
|
|
10345
10375
|
* Return a list of the chunks uploaded to the upload session so far.
|
|
10346
10376
|
*
|
|
10347
|
-
* The actual endpoint URL is returned by the [`Create upload session`](
|
|
10348
|
-
* and [`Get upload session`](
|
|
10377
|
+
* The actual endpoint URL is returned by the [`Create upload session`](https://developer.box.com/reference/post-files-upload-sessions)
|
|
10378
|
+
* and [`Get upload session`](https://developer.box.com/reference/get-files-upload-sessions-id) endpoints.
|
|
10349
10379
|
* @param {string} uploadSessionId The ID of the upload session.
|
|
10350
10380
|
Example: "D5E3F7A"
|
|
10351
10381
|
* @param {GetFileUploadSessionPartsOptionalsInput} optionalsInput
|
|
@@ -10384,8 +10414,8 @@
|
|
|
10384
10414
|
* This allows to always upload your content to the closest Box data center and can significantly improve upload speed.
|
|
10385
10415
|
* Close an upload session and create a file from the uploaded chunks.
|
|
10386
10416
|
*
|
|
10387
|
-
* The actual endpoint URL is returned by the [`Create upload session`](
|
|
10388
|
-
* and [`Get upload session`](
|
|
10417
|
+
* The actual endpoint URL is returned by the [`Create upload session`](https://developer.box.com/reference/post-files-upload-sessions)
|
|
10418
|
+
* and [`Get upload session`](https://developer.box.com/reference/get-files-upload-sessions-id) endpoints.
|
|
10389
10419
|
* @param {string} url URL of createFileUploadSessionCommit method
|
|
10390
10420
|
* @param {CreateFileUploadSessionCommitByUrlRequestBody} requestBody Request body of createFileUploadSessionCommit method
|
|
10391
10421
|
* @param {CreateFileUploadSessionCommitByUrlHeadersInput} headersInput Headers of createFileUploadSessionCommit method
|
|
@@ -10429,8 +10459,8 @@
|
|
|
10429
10459
|
/**
|
|
10430
10460
|
* Close an upload session and create a file from the uploaded chunks.
|
|
10431
10461
|
*
|
|
10432
|
-
* The actual endpoint URL is returned by the [`Create upload session`](
|
|
10433
|
-
* and [`Get upload session`](
|
|
10462
|
+
* The actual endpoint URL is returned by the [`Create upload session`](https://developer.box.com/reference/post-files-upload-sessions)
|
|
10463
|
+
* and [`Get upload session`](https://developer.box.com/reference/get-files-upload-sessions-id) endpoints.
|
|
10434
10464
|
* @param {string} uploadSessionId The ID of the upload session.
|
|
10435
10465
|
Example: "D5E3F7A"
|
|
10436
10466
|
* @param {CreateFileUploadSessionCommitRequestBody} requestBody Request body of createFileUploadSessionCommit method
|
|
@@ -14014,8 +14044,12 @@
|
|
|
14014
14044
|
|
|
14015
14045
|
class GetFileMetadataOptionals {
|
|
14016
14046
|
constructor(fields) {
|
|
14047
|
+
this.queryParams = {};
|
|
14017
14048
|
this.headers = new GetFileMetadataHeaders({});
|
|
14018
14049
|
this.cancellationToken = void 0;
|
|
14050
|
+
if (fields.queryParams !== undefined) {
|
|
14051
|
+
this.queryParams = fields.queryParams;
|
|
14052
|
+
}
|
|
14019
14053
|
if (fields.headers !== undefined) {
|
|
14020
14054
|
this.headers = fields.headers;
|
|
14021
14055
|
}
|
|
@@ -14026,8 +14060,12 @@
|
|
|
14026
14060
|
}
|
|
14027
14061
|
class GetFileMetadataByIdOptionals {
|
|
14028
14062
|
constructor(fields) {
|
|
14063
|
+
this.queryParams = {};
|
|
14029
14064
|
this.headers = new GetFileMetadataByIdHeaders({});
|
|
14030
14065
|
this.cancellationToken = void 0;
|
|
14066
|
+
if (fields.queryParams !== undefined) {
|
|
14067
|
+
this.queryParams = fields.queryParams;
|
|
14068
|
+
}
|
|
14031
14069
|
if (fields.headers !== undefined) {
|
|
14032
14070
|
this.headers = fields.headers;
|
|
14033
14071
|
}
|
|
@@ -14148,15 +14186,19 @@
|
|
|
14148
14186
|
getFileMetadata(fileId_1) {
|
|
14149
14187
|
return __awaiter$1(this, arguments, void 0, function* (fileId, optionalsInput = {}) {
|
|
14150
14188
|
const optionals = new GetFileMetadataOptionals({
|
|
14189
|
+
queryParams: optionalsInput.queryParams,
|
|
14151
14190
|
headers: optionalsInput.headers,
|
|
14152
14191
|
cancellationToken: optionalsInput.cancellationToken,
|
|
14153
14192
|
});
|
|
14193
|
+
const queryParams = optionals.queryParams;
|
|
14154
14194
|
const headers = optionals.headers;
|
|
14155
14195
|
const cancellationToken = optionals.cancellationToken;
|
|
14196
|
+
const queryParamsMap = prepareParams({ ['view']: toString(queryParams.view) });
|
|
14156
14197
|
const headersMap = prepareParams(Object.assign({}, headers.extraHeaders));
|
|
14157
14198
|
const response = yield this.networkSession.networkClient.fetch(new FetchOptions({
|
|
14158
14199
|
url: ''.concat(this.networkSession.baseUrls.baseUrl, '/2.0/files/', toString(fileId), '/metadata'),
|
|
14159
14200
|
method: 'GET',
|
|
14201
|
+
params: queryParamsMap,
|
|
14160
14202
|
headers: headersMap,
|
|
14161
14203
|
responseFormat: 'json',
|
|
14162
14204
|
auth: this.auth,
|
|
@@ -14187,15 +14229,19 @@
|
|
|
14187
14229
|
getFileMetadataById(fileId_1, scope_1, templateKey_1) {
|
|
14188
14230
|
return __awaiter$1(this, arguments, void 0, function* (fileId, scope, templateKey, optionalsInput = {}) {
|
|
14189
14231
|
const optionals = new GetFileMetadataByIdOptionals({
|
|
14232
|
+
queryParams: optionalsInput.queryParams,
|
|
14190
14233
|
headers: optionalsInput.headers,
|
|
14191
14234
|
cancellationToken: optionalsInput.cancellationToken,
|
|
14192
14235
|
});
|
|
14236
|
+
const queryParams = optionals.queryParams;
|
|
14193
14237
|
const headers = optionals.headers;
|
|
14194
14238
|
const cancellationToken = optionals.cancellationToken;
|
|
14239
|
+
const queryParamsMap = prepareParams({ ['view']: toString(queryParams.view) });
|
|
14195
14240
|
const headersMap = prepareParams(Object.assign({}, headers.extraHeaders));
|
|
14196
14241
|
const response = yield this.networkSession.networkClient.fetch(new FetchOptions({
|
|
14197
14242
|
url: ''.concat(this.networkSession.baseUrls.baseUrl, '/2.0/files/', toString(fileId), '/metadata/', toString(scope), '/', toString(templateKey)),
|
|
14198
14243
|
method: 'GET',
|
|
14244
|
+
params: queryParamsMap,
|
|
14199
14245
|
headers: headersMap,
|
|
14200
14246
|
responseFormat: 'json',
|
|
14201
14247
|
auth: this.auth,
|
|
@@ -17028,6 +17074,13 @@
|
|
|
17028
17074
|
});
|
|
17029
17075
|
}
|
|
17030
17076
|
const canUpload = val.can_upload;
|
|
17077
|
+
if (!(val.can_apply_watermark == void 0) &&
|
|
17078
|
+
!sdIsBoolean(val.can_apply_watermark)) {
|
|
17079
|
+
throw new BoxSdkError({
|
|
17080
|
+
message: 'Expecting boolean for "can_apply_watermark" of type "FolderFullPermissionsField"',
|
|
17081
|
+
});
|
|
17082
|
+
}
|
|
17083
|
+
const canApplyWatermark = val.can_apply_watermark == void 0 ? void 0 : val.can_apply_watermark;
|
|
17031
17084
|
return {
|
|
17032
17085
|
canDelete: canDelete,
|
|
17033
17086
|
canDownload: canDownload,
|
|
@@ -17036,6 +17089,7 @@
|
|
|
17036
17089
|
canSetShareAccess: canSetShareAccess,
|
|
17037
17090
|
canShare: canShare,
|
|
17038
17091
|
canUpload: canUpload,
|
|
17092
|
+
canApplyWatermark: canApplyWatermark,
|
|
17039
17093
|
};
|
|
17040
17094
|
}
|
|
17041
17095
|
function deserializeFolderFullMetadataField(val) {
|
|
@@ -17124,8 +17178,26 @@
|
|
|
17124
17178
|
});
|
|
17125
17179
|
}
|
|
17126
17180
|
const isWatermarked = val.is_watermarked == void 0 ? void 0 : val.is_watermarked;
|
|
17181
|
+
if (!(val.is_watermark_inherited == void 0) &&
|
|
17182
|
+
!sdIsBoolean(val.is_watermark_inherited)) {
|
|
17183
|
+
throw new BoxSdkError({
|
|
17184
|
+
message: 'Expecting boolean for "is_watermark_inherited" of type "FolderFullWatermarkInfoField"',
|
|
17185
|
+
});
|
|
17186
|
+
}
|
|
17187
|
+
const isWatermarkInherited = val.is_watermark_inherited == void 0 ? void 0 : val.is_watermark_inherited;
|
|
17188
|
+
if (!(val.is_watermarked_by_access_policy == void 0) &&
|
|
17189
|
+
!sdIsBoolean(val.is_watermarked_by_access_policy)) {
|
|
17190
|
+
throw new BoxSdkError({
|
|
17191
|
+
message: 'Expecting boolean for "is_watermarked_by_access_policy" of type "FolderFullWatermarkInfoField"',
|
|
17192
|
+
});
|
|
17193
|
+
}
|
|
17194
|
+
const isWatermarkedByAccessPolicy = val.is_watermarked_by_access_policy == void 0
|
|
17195
|
+
? void 0
|
|
17196
|
+
: val.is_watermarked_by_access_policy;
|
|
17127
17197
|
return {
|
|
17128
17198
|
isWatermarked: isWatermarked,
|
|
17199
|
+
isWatermarkInherited: isWatermarkInherited,
|
|
17200
|
+
isWatermarkedByAccessPolicy: isWatermarkedByAccessPolicy,
|
|
17129
17201
|
};
|
|
17130
17202
|
}
|
|
17131
17203
|
function deserializeFolderFullClassificationField(val) {
|
|
@@ -17618,10 +17690,10 @@
|
|
|
17618
17690
|
* Passing `sort`, `direction`, `offset`, and `limit`
|
|
17619
17691
|
* parameters in query allows you to manage the
|
|
17620
17692
|
* list of returned
|
|
17621
|
-
* [folder items](
|
|
17693
|
+
* [folder items](https://developer.box.com/reference/resources/folder--full#param-item-collection).
|
|
17622
17694
|
*
|
|
17623
17695
|
* To fetch more items within the folder, use the
|
|
17624
|
-
* [Get items in a folder](
|
|
17696
|
+
* [Get items in a folder](https://developer.box.com/reference/get-folders-id-items) endpoint.
|
|
17625
17697
|
* @param {string} folderId The unique identifier that represent a folder.
|
|
17626
17698
|
|
|
17627
17699
|
The ID for any folder can be determined
|
|
@@ -17771,7 +17843,7 @@
|
|
|
17771
17843
|
* folders, and web links.
|
|
17772
17844
|
*
|
|
17773
17845
|
* To request more information about the folder itself, like its size,
|
|
17774
|
-
* use the [Get a folder](
|
|
17846
|
+
* use the [Get a folder](https://developer.box.com/reference/get-folders-id) endpoint instead.
|
|
17775
17847
|
* @param {string} folderId The unique identifier that represent a folder.
|
|
17776
17848
|
|
|
17777
17849
|
The ID for any folder can be determined
|
|
@@ -18654,10 +18726,10 @@
|
|
|
18654
18726
|
* trash can it be retrieved with this API call. If instead one of
|
|
18655
18727
|
* its parent folders was moved to the trash, only that folder
|
|
18656
18728
|
* can be inspected using the
|
|
18657
|
-
* [`GET /folders/:id/trash`](
|
|
18729
|
+
* [`GET /folders/:id/trash`](https://developer.box.com/reference/get-folders-id-trash) API.
|
|
18658
18730
|
*
|
|
18659
18731
|
* To list all items that have been moved to the trash, please
|
|
18660
|
-
* use the [`GET /folders/trash/items`](
|
|
18732
|
+
* use the [`GET /folders/trash/items`](https://developer.box.com/reference/get-folders-trash-items/)
|
|
18661
18733
|
* API.
|
|
18662
18734
|
* @param {string} folderId The unique identifier that represent a folder.
|
|
18663
18735
|
|
|
@@ -18755,8 +18827,12 @@
|
|
|
18755
18827
|
|
|
18756
18828
|
class GetFolderMetadataOptionals {
|
|
18757
18829
|
constructor(fields) {
|
|
18830
|
+
this.queryParams = {};
|
|
18758
18831
|
this.headers = new GetFolderMetadataHeaders({});
|
|
18759
18832
|
this.cancellationToken = void 0;
|
|
18833
|
+
if (fields.queryParams !== undefined) {
|
|
18834
|
+
this.queryParams = fields.queryParams;
|
|
18835
|
+
}
|
|
18760
18836
|
if (fields.headers !== undefined) {
|
|
18761
18837
|
this.headers = fields.headers;
|
|
18762
18838
|
}
|
|
@@ -18893,15 +18969,19 @@
|
|
|
18893
18969
|
getFolderMetadata(folderId_1) {
|
|
18894
18970
|
return __awaiter$1(this, arguments, void 0, function* (folderId, optionalsInput = {}) {
|
|
18895
18971
|
const optionals = new GetFolderMetadataOptionals({
|
|
18972
|
+
queryParams: optionalsInput.queryParams,
|
|
18896
18973
|
headers: optionalsInput.headers,
|
|
18897
18974
|
cancellationToken: optionalsInput.cancellationToken,
|
|
18898
18975
|
});
|
|
18976
|
+
const queryParams = optionals.queryParams;
|
|
18899
18977
|
const headers = optionals.headers;
|
|
18900
18978
|
const cancellationToken = optionals.cancellationToken;
|
|
18979
|
+
const queryParamsMap = prepareParams({ ['view']: toString(queryParams.view) });
|
|
18901
18980
|
const headersMap = prepareParams(Object.assign({}, headers.extraHeaders));
|
|
18902
18981
|
const response = yield this.networkSession.networkClient.fetch(new FetchOptions({
|
|
18903
18982
|
url: ''.concat(this.networkSession.baseUrls.baseUrl, '/2.0/folders/', toString(folderId), '/metadata'),
|
|
18904
18983
|
method: 'GET',
|
|
18984
|
+
params: queryParamsMap,
|
|
18905
18985
|
headers: headersMap,
|
|
18906
18986
|
responseFormat: 'json',
|
|
18907
18987
|
auth: this.auth,
|
|
@@ -20018,6 +20098,9 @@
|
|
|
20018
20098
|
if (val == 'integer') {
|
|
20019
20099
|
return val;
|
|
20020
20100
|
}
|
|
20101
|
+
if (val == 'taxonomy') {
|
|
20102
|
+
return val;
|
|
20103
|
+
}
|
|
20021
20104
|
throw new BoxSdkError({
|
|
20022
20105
|
message: "Can't deserialize MetadataTemplateFieldsTypeField",
|
|
20023
20106
|
});
|
|
@@ -20703,6 +20786,16 @@
|
|
|
20703
20786
|
function serializeCreateMetadataTemplateRequestBodyFieldsOptionsField(val) {
|
|
20704
20787
|
return { ['key']: val.key };
|
|
20705
20788
|
}
|
|
20789
|
+
function serializeCreateMetadataTemplateRequestBodyFieldsOptionsRulesField(val) {
|
|
20790
|
+
return {
|
|
20791
|
+
['multiSelect']: val.multiSelect,
|
|
20792
|
+
['selectableLevels']: val.selectableLevels == void 0
|
|
20793
|
+
? val.selectableLevels
|
|
20794
|
+
: val.selectableLevels.map(function (item) {
|
|
20795
|
+
return item;
|
|
20796
|
+
}),
|
|
20797
|
+
};
|
|
20798
|
+
}
|
|
20706
20799
|
function serializeCreateMetadataTemplateRequestBodyFieldsField(val) {
|
|
20707
20800
|
return {
|
|
20708
20801
|
['type']: serializeCreateMetadataTemplateRequestBodyFieldsTypeField(val.type),
|
|
@@ -20715,6 +20808,11 @@
|
|
|
20715
20808
|
: val.options.map(function (item) {
|
|
20716
20809
|
return serializeCreateMetadataTemplateRequestBodyFieldsOptionsField(item);
|
|
20717
20810
|
}),
|
|
20811
|
+
['taxonomyKey']: val.taxonomyKey,
|
|
20812
|
+
['namespace']: val.namespace,
|
|
20813
|
+
['optionsRules']: val.optionsRules == void 0
|
|
20814
|
+
? val.optionsRules
|
|
20815
|
+
: serializeCreateMetadataTemplateRequestBodyFieldsOptionsRulesField(val.optionsRules),
|
|
20718
20816
|
};
|
|
20719
20817
|
}
|
|
20720
20818
|
function serializeCreateMetadataTemplateRequestBody(val) {
|
|
@@ -29762,7 +29860,7 @@
|
|
|
29762
29860
|
}
|
|
29763
29861
|
/**
|
|
29764
29862
|
* Returns a list of real-time servers that can be used for long-polling updates
|
|
29765
|
-
* to the [event stream](
|
|
29863
|
+
* to the [event stream](https://developer.box.com/reference/get-events).
|
|
29766
29864
|
*
|
|
29767
29865
|
* Long polling is the concept where a HTTP request is kept open until the
|
|
29768
29866
|
* server sends a response, then repeating the process over and over to receive
|
|
@@ -29777,7 +29875,7 @@
|
|
|
29777
29875
|
* When an event occurs in monitored account a response with the value
|
|
29778
29876
|
* `new_change` will be sent. The response contains no other details as
|
|
29779
29877
|
* it only serves as a prompt to take further action such as sending a
|
|
29780
|
-
* request to the [events endpoint](
|
|
29878
|
+
* request to the [events endpoint](https://developer.box.com/reference/get-events) with the last known
|
|
29781
29879
|
* `stream_position`.
|
|
29782
29880
|
*
|
|
29783
29881
|
* After the server sends this response it closes the connection. You must now
|
|
@@ -31705,11 +31803,25 @@
|
|
|
31705
31803
|
});
|
|
31706
31804
|
}
|
|
31707
31805
|
const fileVersion = val.file_version == void 0 ? void 0 : val.file_version;
|
|
31806
|
+
if (!(val.ownership == void 0) && !sdIsNumber(val.ownership)) {
|
|
31807
|
+
throw new BoxSdkError({
|
|
31808
|
+
message: 'Expecting number for "ownership" of type "LegalHoldPolicyAssignmentCountsField"',
|
|
31809
|
+
});
|
|
31810
|
+
}
|
|
31811
|
+
const ownership = val.ownership == void 0 ? void 0 : val.ownership;
|
|
31812
|
+
if (!(val.interactions == void 0) && !sdIsNumber(val.interactions)) {
|
|
31813
|
+
throw new BoxSdkError({
|
|
31814
|
+
message: 'Expecting number for "interactions" of type "LegalHoldPolicyAssignmentCountsField"',
|
|
31815
|
+
});
|
|
31816
|
+
}
|
|
31817
|
+
const interactions = val.interactions == void 0 ? void 0 : val.interactions;
|
|
31708
31818
|
return {
|
|
31709
31819
|
user: user,
|
|
31710
31820
|
folder: folder,
|
|
31711
31821
|
file: file,
|
|
31712
31822
|
fileVersion: fileVersion,
|
|
31823
|
+
ownership: ownership,
|
|
31824
|
+
interactions: interactions,
|
|
31713
31825
|
};
|
|
31714
31826
|
}
|
|
31715
31827
|
function deserializeLegalHoldPolicy(val) {
|
|
@@ -32466,7 +32578,7 @@
|
|
|
32466
32578
|
});
|
|
32467
32579
|
}
|
|
32468
32580
|
/**
|
|
32469
|
-
* Assign a legal hold to
|
|
32581
|
+
* Assign a legal hold to an item type of: file, file version, folder, user, ownership, or interactions.
|
|
32470
32582
|
* @param {CreateLegalHoldPolicyAssignmentRequestBody} requestBody Request body of createLegalHoldPolicyAssignment method
|
|
32471
32583
|
* @param {CreateLegalHoldPolicyAssignmentOptionalsInput} optionalsInput
|
|
32472
32584
|
* @returns {Promise<LegalHoldPolicyAssignment>}
|
|
@@ -32773,7 +32885,7 @@
|
|
|
32773
32885
|
* **Note**:
|
|
32774
32886
|
* File retention API is now **deprecated**.
|
|
32775
32887
|
* To get information about files and file versions under retention,
|
|
32776
|
-
* see [files under retention](
|
|
32888
|
+
* see [files under retention](https://developer.box.com/reference/get-retention-policy-assignments-id-files-under-retention) or [file versions under retention](https://developer.box.com/reference/get-retention-policy-assignments-id-file-versions-under-retention) endpoints.
|
|
32777
32889
|
* @param {GetFileVersionRetentionsQueryParams} queryParams Query parameters of getFileVersionRetentions method
|
|
32778
32890
|
* @param {GetFileVersionRetentionsHeadersInput} headersInput Headers of getFileVersionRetentions method
|
|
32779
32891
|
* @param {CancellationToken} cancellationToken Token used for request cancellation.
|
|
@@ -32814,7 +32926,7 @@
|
|
|
32814
32926
|
* **Note**:
|
|
32815
32927
|
* File retention API is now **deprecated**.
|
|
32816
32928
|
* To get information about files and file versions under retention,
|
|
32817
|
-
* see [files under retention](
|
|
32929
|
+
* see [files under retention](https://developer.box.com/reference/get-retention-policy-assignments-id-files-under-retention) or [file versions under retention](https://developer.box.com/reference/get-retention-policy-assignments-id-file-versions-under-retention) endpoints.
|
|
32818
32930
|
* @param {string} fileVersionRetentionId The ID of the file version retention.
|
|
32819
32931
|
Example: "3424234"
|
|
32820
32932
|
* @param {GetFileVersionRetentionByIdOptionalsInput} optionalsInput
|
|
@@ -37666,7 +37778,7 @@
|
|
|
37666
37778
|
* be created.
|
|
37667
37779
|
*
|
|
37668
37780
|
* The URL of this endpoint should not be considered as fixed. Instead, use
|
|
37669
|
-
* the [Create zip download](
|
|
37781
|
+
* the [Create zip download](https://developer.box.com/reference/post-zip-downloads) API to request to create a
|
|
37670
37782
|
* `zip` archive, and then follow the `download_url` field in the response to
|
|
37671
37783
|
* this endpoint.
|
|
37672
37784
|
* @param {string} downloadUrl The URL that can be used to download created `zip` archive.
|
|
@@ -37705,7 +37817,7 @@
|
|
|
37705
37817
|
* download.
|
|
37706
37818
|
*
|
|
37707
37819
|
* The URL of this endpoint should not be considered as fixed. Instead, use
|
|
37708
|
-
* the [Create zip download](
|
|
37820
|
+
* the [Create zip download](https://developer.box.com/reference/post-zip-downloads) API to request to create a
|
|
37709
37821
|
* `zip` archive, and then follow the `status_url` field in the response to
|
|
37710
37822
|
* this endpoint.
|
|
37711
37823
|
* @param {string} statusUrl The URL that can be used to get the status of the `zip` archive being downloaded.
|
|
@@ -37871,9 +37983,398 @@
|
|
|
37871
37983
|
['password']: val.password,
|
|
37872
37984
|
['signer_group_id']: val.signerGroupId,
|
|
37873
37985
|
['suppress_notifications']: val.suppressNotifications,
|
|
37986
|
+
['language']: val.language,
|
|
37987
|
+
};
|
|
37988
|
+
}
|
|
37989
|
+
|
|
37990
|
+
function deserializeSignRequestSignerInputEmailValidationValidationTypeField(val) {
|
|
37991
|
+
if (val == 'email') {
|
|
37992
|
+
return val;
|
|
37993
|
+
}
|
|
37994
|
+
if (sdIsString(val)) {
|
|
37995
|
+
return val;
|
|
37996
|
+
}
|
|
37997
|
+
throw new BoxSdkError({
|
|
37998
|
+
message: "Can't deserialize SignRequestSignerInputEmailValidationValidationTypeField",
|
|
37999
|
+
});
|
|
38000
|
+
}
|
|
38001
|
+
function deserializeSignRequestSignerInputEmailValidation(val) {
|
|
38002
|
+
if (!sdIsMap(val)) {
|
|
38003
|
+
throw new BoxSdkError({
|
|
38004
|
+
message: 'Expecting a map for "SignRequestSignerInputEmailValidation"',
|
|
38005
|
+
});
|
|
38006
|
+
}
|
|
38007
|
+
if (val.validation_type == void 0) {
|
|
38008
|
+
throw new BoxSdkError({
|
|
38009
|
+
message: 'Expecting "validation_type" of type "SignRequestSignerInputEmailValidation" to be defined',
|
|
38010
|
+
});
|
|
38011
|
+
}
|
|
38012
|
+
const validationType = deserializeSignRequestSignerInputEmailValidationValidationTypeField(val.validation_type);
|
|
38013
|
+
return {
|
|
38014
|
+
validationType: validationType,
|
|
38015
|
+
};
|
|
38016
|
+
}
|
|
38017
|
+
|
|
38018
|
+
function deserializeSignRequestSignerInputCustomValidationValidationTypeField(val) {
|
|
38019
|
+
if (val == 'custom') {
|
|
38020
|
+
return val;
|
|
38021
|
+
}
|
|
38022
|
+
if (sdIsString(val)) {
|
|
38023
|
+
return val;
|
|
38024
|
+
}
|
|
38025
|
+
throw new BoxSdkError({
|
|
38026
|
+
message: "Can't deserialize SignRequestSignerInputCustomValidationValidationTypeField",
|
|
38027
|
+
});
|
|
38028
|
+
}
|
|
38029
|
+
function deserializeSignRequestSignerInputCustomValidation(val) {
|
|
38030
|
+
if (!sdIsMap(val)) {
|
|
38031
|
+
throw new BoxSdkError({
|
|
38032
|
+
message: 'Expecting a map for "SignRequestSignerInputCustomValidation"',
|
|
38033
|
+
});
|
|
38034
|
+
}
|
|
38035
|
+
if (val.validation_type == void 0) {
|
|
38036
|
+
throw new BoxSdkError({
|
|
38037
|
+
message: 'Expecting "validation_type" of type "SignRequestSignerInputCustomValidation" to be defined',
|
|
38038
|
+
});
|
|
38039
|
+
}
|
|
38040
|
+
const validationType = deserializeSignRequestSignerInputCustomValidationValidationTypeField(val.validation_type);
|
|
38041
|
+
if (!(val.custom_regex == void 0) && !sdIsString(val.custom_regex)) {
|
|
38042
|
+
throw new BoxSdkError({
|
|
38043
|
+
message: 'Expecting string for "custom_regex" of type "SignRequestSignerInputCustomValidation"',
|
|
38044
|
+
});
|
|
38045
|
+
}
|
|
38046
|
+
const customRegex = val.custom_regex == void 0 ? void 0 : val.custom_regex;
|
|
38047
|
+
if (!(val.custom_error_message == void 0) &&
|
|
38048
|
+
!sdIsString(val.custom_error_message)) {
|
|
38049
|
+
throw new BoxSdkError({
|
|
38050
|
+
message: 'Expecting string for "custom_error_message" of type "SignRequestSignerInputCustomValidation"',
|
|
38051
|
+
});
|
|
38052
|
+
}
|
|
38053
|
+
const customErrorMessage = val.custom_error_message == void 0 ? void 0 : val.custom_error_message;
|
|
38054
|
+
return {
|
|
38055
|
+
validationType: validationType,
|
|
38056
|
+
customRegex: customRegex,
|
|
38057
|
+
customErrorMessage: customErrorMessage,
|
|
38058
|
+
};
|
|
38059
|
+
}
|
|
38060
|
+
|
|
38061
|
+
function deserializeSignRequestSignerInputZipValidationValidationTypeField(val) {
|
|
38062
|
+
if (val == 'zip') {
|
|
38063
|
+
return val;
|
|
38064
|
+
}
|
|
38065
|
+
if (sdIsString(val)) {
|
|
38066
|
+
return val;
|
|
38067
|
+
}
|
|
38068
|
+
throw new BoxSdkError({
|
|
38069
|
+
message: "Can't deserialize SignRequestSignerInputZipValidationValidationTypeField",
|
|
38070
|
+
});
|
|
38071
|
+
}
|
|
38072
|
+
function deserializeSignRequestSignerInputZipValidation(val) {
|
|
38073
|
+
if (!sdIsMap(val)) {
|
|
38074
|
+
throw new BoxSdkError({
|
|
38075
|
+
message: 'Expecting a map for "SignRequestSignerInputZipValidation"',
|
|
38076
|
+
});
|
|
38077
|
+
}
|
|
38078
|
+
if (val.validation_type == void 0) {
|
|
38079
|
+
throw new BoxSdkError({
|
|
38080
|
+
message: 'Expecting "validation_type" of type "SignRequestSignerInputZipValidation" to be defined',
|
|
38081
|
+
});
|
|
38082
|
+
}
|
|
38083
|
+
const validationType = deserializeSignRequestSignerInputZipValidationValidationTypeField(val.validation_type);
|
|
38084
|
+
return {
|
|
38085
|
+
validationType: validationType,
|
|
38086
|
+
};
|
|
38087
|
+
}
|
|
38088
|
+
|
|
38089
|
+
function deserializeSignRequestSignerInputZip4ValidationValidationTypeField(val) {
|
|
38090
|
+
if (val == 'zip_4') {
|
|
38091
|
+
return val;
|
|
38092
|
+
}
|
|
38093
|
+
if (sdIsString(val)) {
|
|
38094
|
+
return val;
|
|
38095
|
+
}
|
|
38096
|
+
throw new BoxSdkError({
|
|
38097
|
+
message: "Can't deserialize SignRequestSignerInputZip4ValidationValidationTypeField",
|
|
38098
|
+
});
|
|
38099
|
+
}
|
|
38100
|
+
function deserializeSignRequestSignerInputZip4Validation(val) {
|
|
38101
|
+
if (!sdIsMap(val)) {
|
|
38102
|
+
throw new BoxSdkError({
|
|
38103
|
+
message: 'Expecting a map for "SignRequestSignerInputZip4Validation"',
|
|
38104
|
+
});
|
|
38105
|
+
}
|
|
38106
|
+
if (val.validation_type == void 0) {
|
|
38107
|
+
throw new BoxSdkError({
|
|
38108
|
+
message: 'Expecting "validation_type" of type "SignRequestSignerInputZip4Validation" to be defined',
|
|
38109
|
+
});
|
|
38110
|
+
}
|
|
38111
|
+
const validationType = deserializeSignRequestSignerInputZip4ValidationValidationTypeField(val.validation_type);
|
|
38112
|
+
return {
|
|
38113
|
+
validationType: validationType,
|
|
38114
|
+
};
|
|
38115
|
+
}
|
|
38116
|
+
|
|
38117
|
+
function deserializeSignRequestSignerInputSsnValidationValidationTypeField(val) {
|
|
38118
|
+
if (val == 'ssn') {
|
|
38119
|
+
return val;
|
|
38120
|
+
}
|
|
38121
|
+
if (sdIsString(val)) {
|
|
38122
|
+
return val;
|
|
38123
|
+
}
|
|
38124
|
+
throw new BoxSdkError({
|
|
38125
|
+
message: "Can't deserialize SignRequestSignerInputSsnValidationValidationTypeField",
|
|
38126
|
+
});
|
|
38127
|
+
}
|
|
38128
|
+
function deserializeSignRequestSignerInputSsnValidation(val) {
|
|
38129
|
+
if (!sdIsMap(val)) {
|
|
38130
|
+
throw new BoxSdkError({
|
|
38131
|
+
message: 'Expecting a map for "SignRequestSignerInputSsnValidation"',
|
|
38132
|
+
});
|
|
38133
|
+
}
|
|
38134
|
+
if (val.validation_type == void 0) {
|
|
38135
|
+
throw new BoxSdkError({
|
|
38136
|
+
message: 'Expecting "validation_type" of type "SignRequestSignerInputSsnValidation" to be defined',
|
|
38137
|
+
});
|
|
38138
|
+
}
|
|
38139
|
+
const validationType = deserializeSignRequestSignerInputSsnValidationValidationTypeField(val.validation_type);
|
|
38140
|
+
return {
|
|
38141
|
+
validationType: validationType,
|
|
38142
|
+
};
|
|
38143
|
+
}
|
|
38144
|
+
|
|
38145
|
+
function deserializeSignRequestSignerInputNumberWithPeriodValidationValidationTypeField(val) {
|
|
38146
|
+
if (val == 'number_with_period') {
|
|
38147
|
+
return val;
|
|
38148
|
+
}
|
|
38149
|
+
if (sdIsString(val)) {
|
|
38150
|
+
return val;
|
|
38151
|
+
}
|
|
38152
|
+
throw new BoxSdkError({
|
|
38153
|
+
message: "Can't deserialize SignRequestSignerInputNumberWithPeriodValidationValidationTypeField",
|
|
38154
|
+
});
|
|
38155
|
+
}
|
|
38156
|
+
function deserializeSignRequestSignerInputNumberWithPeriodValidation(val) {
|
|
38157
|
+
if (!sdIsMap(val)) {
|
|
38158
|
+
throw new BoxSdkError({
|
|
38159
|
+
message: 'Expecting a map for "SignRequestSignerInputNumberWithPeriodValidation"',
|
|
38160
|
+
});
|
|
38161
|
+
}
|
|
38162
|
+
const validationType = val.validation_type == void 0
|
|
38163
|
+
? void 0
|
|
38164
|
+
: deserializeSignRequestSignerInputNumberWithPeriodValidationValidationTypeField(val.validation_type);
|
|
38165
|
+
return {
|
|
38166
|
+
validationType: validationType,
|
|
38167
|
+
};
|
|
38168
|
+
}
|
|
38169
|
+
|
|
38170
|
+
function deserializeSignRequestSignerInputNumberWithCommaValidationValidationTypeField(val) {
|
|
38171
|
+
if (val == 'number_with_comma') {
|
|
38172
|
+
return val;
|
|
38173
|
+
}
|
|
38174
|
+
if (sdIsString(val)) {
|
|
38175
|
+
return val;
|
|
38176
|
+
}
|
|
38177
|
+
throw new BoxSdkError({
|
|
38178
|
+
message: "Can't deserialize SignRequestSignerInputNumberWithCommaValidationValidationTypeField",
|
|
38179
|
+
});
|
|
38180
|
+
}
|
|
38181
|
+
function deserializeSignRequestSignerInputNumberWithCommaValidation(val) {
|
|
38182
|
+
if (!sdIsMap(val)) {
|
|
38183
|
+
throw new BoxSdkError({
|
|
38184
|
+
message: 'Expecting a map for "SignRequestSignerInputNumberWithCommaValidation"',
|
|
38185
|
+
});
|
|
38186
|
+
}
|
|
38187
|
+
const validationType = val.validation_type == void 0
|
|
38188
|
+
? void 0
|
|
38189
|
+
: deserializeSignRequestSignerInputNumberWithCommaValidationValidationTypeField(val.validation_type);
|
|
38190
|
+
return {
|
|
38191
|
+
validationType: validationType,
|
|
38192
|
+
};
|
|
38193
|
+
}
|
|
38194
|
+
|
|
38195
|
+
function deserializeSignRequestSignerInputDateIsoValidationValidationTypeField(val) {
|
|
38196
|
+
if (val == 'date_iso') {
|
|
38197
|
+
return val;
|
|
38198
|
+
}
|
|
38199
|
+
if (sdIsString(val)) {
|
|
38200
|
+
return val;
|
|
38201
|
+
}
|
|
38202
|
+
throw new BoxSdkError({
|
|
38203
|
+
message: "Can't deserialize SignRequestSignerInputDateIsoValidationValidationTypeField",
|
|
38204
|
+
});
|
|
38205
|
+
}
|
|
38206
|
+
function deserializeSignRequestSignerInputDateIsoValidation(val) {
|
|
38207
|
+
if (!sdIsMap(val)) {
|
|
38208
|
+
throw new BoxSdkError({
|
|
38209
|
+
message: 'Expecting a map for "SignRequestSignerInputDateIsoValidation"',
|
|
38210
|
+
});
|
|
38211
|
+
}
|
|
38212
|
+
const validationType = val.validation_type == void 0
|
|
38213
|
+
? void 0
|
|
38214
|
+
: deserializeSignRequestSignerInputDateIsoValidationValidationTypeField(val.validation_type);
|
|
38215
|
+
return {
|
|
38216
|
+
validationType: validationType,
|
|
38217
|
+
};
|
|
38218
|
+
}
|
|
38219
|
+
|
|
38220
|
+
function deserializeSignRequestSignerInputDateUsValidationValidationTypeField(val) {
|
|
38221
|
+
if (val == 'date_us') {
|
|
38222
|
+
return val;
|
|
38223
|
+
}
|
|
38224
|
+
if (sdIsString(val)) {
|
|
38225
|
+
return val;
|
|
38226
|
+
}
|
|
38227
|
+
throw new BoxSdkError({
|
|
38228
|
+
message: "Can't deserialize SignRequestSignerInputDateUsValidationValidationTypeField",
|
|
38229
|
+
});
|
|
38230
|
+
}
|
|
38231
|
+
function deserializeSignRequestSignerInputDateUsValidation(val) {
|
|
38232
|
+
if (!sdIsMap(val)) {
|
|
38233
|
+
throw new BoxSdkError({
|
|
38234
|
+
message: 'Expecting a map for "SignRequestSignerInputDateUsValidation"',
|
|
38235
|
+
});
|
|
38236
|
+
}
|
|
38237
|
+
const validationType = val.validation_type == void 0
|
|
38238
|
+
? void 0
|
|
38239
|
+
: deserializeSignRequestSignerInputDateUsValidationValidationTypeField(val.validation_type);
|
|
38240
|
+
return {
|
|
38241
|
+
validationType: validationType,
|
|
38242
|
+
};
|
|
38243
|
+
}
|
|
38244
|
+
|
|
38245
|
+
function deserializeSignRequestSignerInputDateEuValidationValidationTypeField(val) {
|
|
38246
|
+
if (val == 'date_eu') {
|
|
38247
|
+
return val;
|
|
38248
|
+
}
|
|
38249
|
+
if (sdIsString(val)) {
|
|
38250
|
+
return val;
|
|
38251
|
+
}
|
|
38252
|
+
throw new BoxSdkError({
|
|
38253
|
+
message: "Can't deserialize SignRequestSignerInputDateEuValidationValidationTypeField",
|
|
38254
|
+
});
|
|
38255
|
+
}
|
|
38256
|
+
function deserializeSignRequestSignerInputDateEuValidation(val) {
|
|
38257
|
+
if (!sdIsMap(val)) {
|
|
38258
|
+
throw new BoxSdkError({
|
|
38259
|
+
message: 'Expecting a map for "SignRequestSignerInputDateEuValidation"',
|
|
38260
|
+
});
|
|
38261
|
+
}
|
|
38262
|
+
const validationType = val.validation_type == void 0
|
|
38263
|
+
? void 0
|
|
38264
|
+
: deserializeSignRequestSignerInputDateEuValidationValidationTypeField(val.validation_type);
|
|
38265
|
+
return {
|
|
38266
|
+
validationType: validationType,
|
|
38267
|
+
};
|
|
38268
|
+
}
|
|
38269
|
+
|
|
38270
|
+
function deserializeSignRequestSignerInputDateAsiaValidationValidationTypeField(val) {
|
|
38271
|
+
if (val == 'date_asia') {
|
|
38272
|
+
return val;
|
|
38273
|
+
}
|
|
38274
|
+
if (sdIsString(val)) {
|
|
38275
|
+
return val;
|
|
38276
|
+
}
|
|
38277
|
+
throw new BoxSdkError({
|
|
38278
|
+
message: "Can't deserialize SignRequestSignerInputDateAsiaValidationValidationTypeField",
|
|
38279
|
+
});
|
|
38280
|
+
}
|
|
38281
|
+
function deserializeSignRequestSignerInputDateAsiaValidation(val) {
|
|
38282
|
+
if (!sdIsMap(val)) {
|
|
38283
|
+
throw new BoxSdkError({
|
|
38284
|
+
message: 'Expecting a map for "SignRequestSignerInputDateAsiaValidation"',
|
|
38285
|
+
});
|
|
38286
|
+
}
|
|
38287
|
+
const validationType = val.validation_type == void 0
|
|
38288
|
+
? void 0
|
|
38289
|
+
: deserializeSignRequestSignerInputDateAsiaValidationValidationTypeField(val.validation_type);
|
|
38290
|
+
return {
|
|
38291
|
+
validationType: validationType,
|
|
37874
38292
|
};
|
|
37875
38293
|
}
|
|
37876
38294
|
|
|
38295
|
+
function deserializeSignRequestSignerInputValidation(val) {
|
|
38296
|
+
try {
|
|
38297
|
+
return deserializeSignRequestSignerInputEmailValidation(val);
|
|
38298
|
+
}
|
|
38299
|
+
catch (error) {
|
|
38300
|
+
}
|
|
38301
|
+
finally {
|
|
38302
|
+
}
|
|
38303
|
+
try {
|
|
38304
|
+
return deserializeSignRequestSignerInputCustomValidation(val);
|
|
38305
|
+
}
|
|
38306
|
+
catch (error) {
|
|
38307
|
+
}
|
|
38308
|
+
finally {
|
|
38309
|
+
}
|
|
38310
|
+
try {
|
|
38311
|
+
return deserializeSignRequestSignerInputZipValidation(val);
|
|
38312
|
+
}
|
|
38313
|
+
catch (error) {
|
|
38314
|
+
}
|
|
38315
|
+
finally {
|
|
38316
|
+
}
|
|
38317
|
+
try {
|
|
38318
|
+
return deserializeSignRequestSignerInputZip4Validation(val);
|
|
38319
|
+
}
|
|
38320
|
+
catch (error) {
|
|
38321
|
+
}
|
|
38322
|
+
finally {
|
|
38323
|
+
}
|
|
38324
|
+
try {
|
|
38325
|
+
return deserializeSignRequestSignerInputSsnValidation(val);
|
|
38326
|
+
}
|
|
38327
|
+
catch (error) {
|
|
38328
|
+
}
|
|
38329
|
+
finally {
|
|
38330
|
+
}
|
|
38331
|
+
try {
|
|
38332
|
+
return deserializeSignRequestSignerInputNumberWithPeriodValidation(val);
|
|
38333
|
+
}
|
|
38334
|
+
catch (error) {
|
|
38335
|
+
}
|
|
38336
|
+
finally {
|
|
38337
|
+
}
|
|
38338
|
+
try {
|
|
38339
|
+
return deserializeSignRequestSignerInputNumberWithCommaValidation(val);
|
|
38340
|
+
}
|
|
38341
|
+
catch (error) {
|
|
38342
|
+
}
|
|
38343
|
+
finally {
|
|
38344
|
+
}
|
|
38345
|
+
try {
|
|
38346
|
+
return deserializeSignRequestSignerInputDateIsoValidation(val);
|
|
38347
|
+
}
|
|
38348
|
+
catch (error) {
|
|
38349
|
+
}
|
|
38350
|
+
finally {
|
|
38351
|
+
}
|
|
38352
|
+
try {
|
|
38353
|
+
return deserializeSignRequestSignerInputDateUsValidation(val);
|
|
38354
|
+
}
|
|
38355
|
+
catch (error) {
|
|
38356
|
+
}
|
|
38357
|
+
finally {
|
|
38358
|
+
}
|
|
38359
|
+
try {
|
|
38360
|
+
return deserializeSignRequestSignerInputDateEuValidation(val);
|
|
38361
|
+
}
|
|
38362
|
+
catch (error) {
|
|
38363
|
+
}
|
|
38364
|
+
finally {
|
|
38365
|
+
}
|
|
38366
|
+
try {
|
|
38367
|
+
return deserializeSignRequestSignerInputDateAsiaValidation(val);
|
|
38368
|
+
}
|
|
38369
|
+
catch (error) {
|
|
38370
|
+
}
|
|
38371
|
+
finally {
|
|
38372
|
+
}
|
|
38373
|
+
throw new BoxSdkError({
|
|
38374
|
+
message: "Can't deserialize SignRequestSignerInputValidation",
|
|
38375
|
+
});
|
|
38376
|
+
}
|
|
38377
|
+
|
|
37877
38378
|
function deserializeSignRequestSignerInputTypeField(val) {
|
|
37878
38379
|
if (val == 'signature') {
|
|
37879
38380
|
return val;
|
|
@@ -37979,6 +38480,9 @@
|
|
|
37979
38480
|
});
|
|
37980
38481
|
}
|
|
37981
38482
|
const readOnly = val.read_only == void 0 ? void 0 : val.read_only;
|
|
38483
|
+
const validation = val.validation == void 0
|
|
38484
|
+
? void 0
|
|
38485
|
+
: deserializeSignRequestSignerInputValidation(val.validation);
|
|
37982
38486
|
if (!(val.document_tag_id == void 0) && !sdIsString(val.document_tag_id)) {
|
|
37983
38487
|
throw new BoxSdkError({
|
|
37984
38488
|
message: 'Expecting string for "document_tag_id" of type "SignRequestSignerInput"',
|
|
@@ -38008,6 +38512,7 @@
|
|
|
38008
38512
|
contentType: contentType,
|
|
38009
38513
|
pageIndex: pageIndex,
|
|
38010
38514
|
readOnly: readOnly,
|
|
38515
|
+
validation: validation,
|
|
38011
38516
|
documentTagId: documentTagId,
|
|
38012
38517
|
textValue: textValue,
|
|
38013
38518
|
checkboxValue: checkboxValue,
|
|
@@ -38204,6 +38709,12 @@
|
|
|
38204
38709
|
});
|
|
38205
38710
|
}
|
|
38206
38711
|
const suppressNotifications = val.suppress_notifications == void 0 ? void 0 : val.suppress_notifications;
|
|
38712
|
+
if (!(val.language == void 0) && !sdIsString(val.language)) {
|
|
38713
|
+
throw new BoxSdkError({
|
|
38714
|
+
message: 'Expecting string for "language" of type "SignRequestSigner"',
|
|
38715
|
+
});
|
|
38716
|
+
}
|
|
38717
|
+
const language = val.language == void 0 ? void 0 : val.language;
|
|
38207
38718
|
return {
|
|
38208
38719
|
hasViewedDocument: hasViewedDocument,
|
|
38209
38720
|
signerDecision: signerDecision,
|
|
@@ -38223,6 +38734,7 @@
|
|
|
38223
38734
|
password: password,
|
|
38224
38735
|
signerGroupId: signerGroupId,
|
|
38225
38736
|
suppressNotifications: suppressNotifications,
|
|
38737
|
+
language: language,
|
|
38226
38738
|
};
|
|
38227
38739
|
}
|
|
38228
38740
|
|
|
@@ -38535,6 +39047,10 @@
|
|
|
38535
39047
|
};
|
|
38536
39048
|
}
|
|
38537
39049
|
|
|
39050
|
+
function serializeSignRequestCancelRequest(val) {
|
|
39051
|
+
return { ['reason']: val.reason };
|
|
39052
|
+
}
|
|
39053
|
+
|
|
38538
39054
|
function deserializeSignRequests(val) {
|
|
38539
39055
|
if (!sdIsMap(val)) {
|
|
38540
39056
|
throw new BoxSdkError({ message: 'Expecting a map for "SignRequests"' });
|
|
@@ -38600,8 +39116,12 @@
|
|
|
38600
39116
|
|
|
38601
39117
|
class CancelSignRequestOptionals {
|
|
38602
39118
|
constructor(fields) {
|
|
39119
|
+
this.requestBody = void 0;
|
|
38603
39120
|
this.headers = new CancelSignRequestHeaders({});
|
|
38604
39121
|
this.cancellationToken = void 0;
|
|
39122
|
+
if (fields.requestBody !== undefined) {
|
|
39123
|
+
this.requestBody = fields.requestBody;
|
|
39124
|
+
}
|
|
38605
39125
|
if (fields.headers !== undefined) {
|
|
38606
39126
|
this.headers = fields.headers;
|
|
38607
39127
|
}
|
|
@@ -38716,9 +39236,11 @@
|
|
|
38716
39236
|
cancelSignRequest(signRequestId_1) {
|
|
38717
39237
|
return __awaiter$1(this, arguments, void 0, function* (signRequestId, optionalsInput = {}) {
|
|
38718
39238
|
const optionals = new CancelSignRequestOptionals({
|
|
39239
|
+
requestBody: optionalsInput.requestBody,
|
|
38719
39240
|
headers: optionalsInput.headers,
|
|
38720
39241
|
cancellationToken: optionalsInput.cancellationToken,
|
|
38721
39242
|
});
|
|
39243
|
+
const requestBody = optionals.requestBody;
|
|
38722
39244
|
const headers = optionals.headers;
|
|
38723
39245
|
const cancellationToken = optionals.cancellationToken;
|
|
38724
39246
|
const headersMap = prepareParams(Object.assign({}, headers.extraHeaders));
|
|
@@ -38726,6 +39248,10 @@
|
|
|
38726
39248
|
url: ''.concat(this.networkSession.baseUrls.baseUrl, '/2.0/sign_requests/', toString(signRequestId), '/cancel'),
|
|
38727
39249
|
method: 'POST',
|
|
38728
39250
|
headers: headersMap,
|
|
39251
|
+
data: !(requestBody == void 0)
|
|
39252
|
+
? serializeSignRequestCancelRequest(requestBody)
|
|
39253
|
+
: void 0,
|
|
39254
|
+
contentType: 'application/json',
|
|
38729
39255
|
responseFormat: 'json',
|
|
38730
39256
|
auth: this.auth,
|
|
38731
39257
|
networkSession: this.networkSession,
|
|
@@ -39809,6 +40335,9 @@
|
|
|
39809
40335
|
});
|
|
39810
40336
|
}
|
|
39811
40337
|
const readOnly = val.read_only == void 0 ? void 0 : val.read_only;
|
|
40338
|
+
const validation = val.validation == void 0
|
|
40339
|
+
? void 0
|
|
40340
|
+
: deserializeSignRequestSignerInputValidation(val.validation);
|
|
39812
40341
|
if (!(val.document_tag_id == void 0) && !sdIsString(val.document_tag_id)) {
|
|
39813
40342
|
throw new BoxSdkError({
|
|
39814
40343
|
message: 'Expecting string for "document_tag_id" of type "TemplateSignerInput"',
|
|
@@ -39845,6 +40374,7 @@
|
|
|
39845
40374
|
dimensions: dimensions,
|
|
39846
40375
|
label: label,
|
|
39847
40376
|
readOnly: readOnly,
|
|
40377
|
+
validation: validation,
|
|
39848
40378
|
documentTagId: documentTagId,
|
|
39849
40379
|
textValue: textValue,
|
|
39850
40380
|
checkboxValue: checkboxValue,
|
|
@@ -42625,6 +43155,21 @@
|
|
|
42625
43155
|
});
|
|
42626
43156
|
}
|
|
42627
43157
|
const completionReason = val.completion_reason == void 0 ? void 0 : val.completion_reason;
|
|
43158
|
+
if (!(val.confidence_score == void 0) && !sdIsMap(val.confidence_score)) {
|
|
43159
|
+
throw new BoxSdkError({
|
|
43160
|
+
message: 'Expecting object for "confidence_score" of type "AiExtractStructuredResponse"',
|
|
43161
|
+
});
|
|
43162
|
+
}
|
|
43163
|
+
const confidenceScore = val.confidence_score == void 0
|
|
43164
|
+
? void 0
|
|
43165
|
+
: sdIsMap(val.confidence_score)
|
|
43166
|
+
? Object.fromEntries(Object.entries(val.confidence_score).map(([k, v]) => [
|
|
43167
|
+
k,
|
|
43168
|
+
(function (v) {
|
|
43169
|
+
return v;
|
|
43170
|
+
})(v),
|
|
43171
|
+
]))
|
|
43172
|
+
: {};
|
|
42628
43173
|
const aiAgentInfo = val.ai_agent_info == void 0
|
|
42629
43174
|
? void 0
|
|
42630
43175
|
: deserializeAiAgentInfo(val.ai_agent_info);
|
|
@@ -42632,6 +43177,7 @@
|
|
|
42632
43177
|
answer: answer,
|
|
42633
43178
|
createdAt: createdAt,
|
|
42634
43179
|
completionReason: completionReason,
|
|
43180
|
+
confidenceScore: confidenceScore,
|
|
42635
43181
|
aiAgentInfo: aiAgentInfo,
|
|
42636
43182
|
};
|
|
42637
43183
|
}
|
|
@@ -42688,6 +43234,7 @@
|
|
|
42688
43234
|
: val.fields.map(function (item) {
|
|
42689
43235
|
return serializeAiExtractStructuredFieldsField(item);
|
|
42690
43236
|
}),
|
|
43237
|
+
['include_confidence_score']: val.includeConfidenceScore,
|
|
42691
43238
|
['ai_agent']: val.aiAgent == void 0
|
|
42692
43239
|
? val.aiAgent
|
|
42693
43240
|
: serializeAiExtractStructuredAgent(val.aiAgent),
|
|
@@ -42943,11 +43490,11 @@
|
|
|
42943
43490
|
* Sends an AI request to supported Large Language Models (LLMs) and returns extracted metadata as a set of key-value pairs.
|
|
42944
43491
|
*
|
|
42945
43492
|
* To define the extraction structure, provide either a metadata template or a list of fields. To learn more about creating templates, see [Creating metadata templates in the Admin Console](https://support.box.com/hc/en-us/articles/360044194033-Customizing-Metadata-Templates)
|
|
42946
|
-
* or use the [metadata template API](
|
|
43493
|
+
* or use the [metadata template API](https://developer.box.com/guides/metadata/templates/create).
|
|
42947
43494
|
*
|
|
42948
|
-
* This endpoint also supports [Enhanced Extract Agent](
|
|
43495
|
+
* This endpoint also supports [Enhanced Extract Agent](https://developer.box.com/guides/box-ai/ai-tutorials/extract-metadata-structured#enhanced-extract-agent).
|
|
42949
43496
|
*
|
|
42950
|
-
* For information about supported file formats and languages, see the [Extract metadata from file (structured)](
|
|
43497
|
+
* For information about supported file formats and languages, see the [Extract metadata from file (structured)](https://developer.box.com/guides/box-ai/ai-tutorials/extract-metadata-structured) API guide.
|
|
42951
43498
|
* @param {AiExtractStructured} requestBody Request body of createAiExtractStructured method
|
|
42952
43499
|
* @param {CreateAiExtractStructuredOptionalsInput} optionalsInput
|
|
42953
43500
|
* @returns {Promise<AiExtractStructuredResponse>}
|
|
@@ -44184,6 +44731,1248 @@
|
|
|
44184
44731
|
}
|
|
44185
44732
|
}
|
|
44186
44733
|
|
|
44734
|
+
function serializeMetadataTaxonomyLevel(val) {
|
|
44735
|
+
return {
|
|
44736
|
+
['displayName']: val.displayName,
|
|
44737
|
+
['description']: val.description,
|
|
44738
|
+
['level']: val.level,
|
|
44739
|
+
};
|
|
44740
|
+
}
|
|
44741
|
+
function deserializeMetadataTaxonomyLevel(val) {
|
|
44742
|
+
if (!sdIsMap(val)) {
|
|
44743
|
+
throw new BoxSdkError({
|
|
44744
|
+
message: 'Expecting a map for "MetadataTaxonomyLevel"',
|
|
44745
|
+
});
|
|
44746
|
+
}
|
|
44747
|
+
if (!(val.displayName == void 0) && !sdIsString(val.displayName)) {
|
|
44748
|
+
throw new BoxSdkError({
|
|
44749
|
+
message: 'Expecting string for "displayName" of type "MetadataTaxonomyLevel"',
|
|
44750
|
+
});
|
|
44751
|
+
}
|
|
44752
|
+
const displayName = val.displayName == void 0 ? void 0 : val.displayName;
|
|
44753
|
+
if (!(val.description == void 0) && !sdIsString(val.description)) {
|
|
44754
|
+
throw new BoxSdkError({
|
|
44755
|
+
message: 'Expecting string for "description" of type "MetadataTaxonomyLevel"',
|
|
44756
|
+
});
|
|
44757
|
+
}
|
|
44758
|
+
const description = val.description == void 0 ? void 0 : val.description;
|
|
44759
|
+
if (!(val.level == void 0) && !sdIsNumber(val.level)) {
|
|
44760
|
+
throw new BoxSdkError({
|
|
44761
|
+
message: 'Expecting number for "level" of type "MetadataTaxonomyLevel"',
|
|
44762
|
+
});
|
|
44763
|
+
}
|
|
44764
|
+
const level = val.level == void 0 ? void 0 : val.level;
|
|
44765
|
+
return {
|
|
44766
|
+
displayName: displayName,
|
|
44767
|
+
description: description,
|
|
44768
|
+
level: level,
|
|
44769
|
+
};
|
|
44770
|
+
}
|
|
44771
|
+
|
|
44772
|
+
function deserializeMetadataTaxonomy(val) {
|
|
44773
|
+
if (!sdIsMap(val)) {
|
|
44774
|
+
throw new BoxSdkError({
|
|
44775
|
+
message: 'Expecting a map for "MetadataTaxonomy"',
|
|
44776
|
+
});
|
|
44777
|
+
}
|
|
44778
|
+
if (val.id == void 0) {
|
|
44779
|
+
throw new BoxSdkError({
|
|
44780
|
+
message: 'Expecting "id" of type "MetadataTaxonomy" to be defined',
|
|
44781
|
+
});
|
|
44782
|
+
}
|
|
44783
|
+
if (!sdIsString(val.id)) {
|
|
44784
|
+
throw new BoxSdkError({
|
|
44785
|
+
message: 'Expecting string for "id" of type "MetadataTaxonomy"',
|
|
44786
|
+
});
|
|
44787
|
+
}
|
|
44788
|
+
const id = val.id;
|
|
44789
|
+
if (!(val.key == void 0) && !sdIsString(val.key)) {
|
|
44790
|
+
throw new BoxSdkError({
|
|
44791
|
+
message: 'Expecting string for "key" of type "MetadataTaxonomy"',
|
|
44792
|
+
});
|
|
44793
|
+
}
|
|
44794
|
+
const key = val.key == void 0 ? void 0 : val.key;
|
|
44795
|
+
if (val.displayName == void 0) {
|
|
44796
|
+
throw new BoxSdkError({
|
|
44797
|
+
message: 'Expecting "displayName" of type "MetadataTaxonomy" to be defined',
|
|
44798
|
+
});
|
|
44799
|
+
}
|
|
44800
|
+
if (!sdIsString(val.displayName)) {
|
|
44801
|
+
throw new BoxSdkError({
|
|
44802
|
+
message: 'Expecting string for "displayName" of type "MetadataTaxonomy"',
|
|
44803
|
+
});
|
|
44804
|
+
}
|
|
44805
|
+
const displayName = val.displayName;
|
|
44806
|
+
if (val.namespace == void 0) {
|
|
44807
|
+
throw new BoxSdkError({
|
|
44808
|
+
message: 'Expecting "namespace" of type "MetadataTaxonomy" to be defined',
|
|
44809
|
+
});
|
|
44810
|
+
}
|
|
44811
|
+
if (!sdIsString(val.namespace)) {
|
|
44812
|
+
throw new BoxSdkError({
|
|
44813
|
+
message: 'Expecting string for "namespace" of type "MetadataTaxonomy"',
|
|
44814
|
+
});
|
|
44815
|
+
}
|
|
44816
|
+
const namespace = val.namespace;
|
|
44817
|
+
if (!(val.levels == void 0) && !sdIsList(val.levels)) {
|
|
44818
|
+
throw new BoxSdkError({
|
|
44819
|
+
message: 'Expecting array for "levels" of type "MetadataTaxonomy"',
|
|
44820
|
+
});
|
|
44821
|
+
}
|
|
44822
|
+
const levels = val.levels == void 0
|
|
44823
|
+
? void 0
|
|
44824
|
+
: sdIsList(val.levels)
|
|
44825
|
+
? val.levels.map(function (itm) {
|
|
44826
|
+
return deserializeMetadataTaxonomyLevel(itm);
|
|
44827
|
+
})
|
|
44828
|
+
: [];
|
|
44829
|
+
return {
|
|
44830
|
+
id: id,
|
|
44831
|
+
key: key,
|
|
44832
|
+
displayName: displayName,
|
|
44833
|
+
namespace: namespace,
|
|
44834
|
+
levels: levels,
|
|
44835
|
+
};
|
|
44836
|
+
}
|
|
44837
|
+
|
|
44838
|
+
function deserializeMetadataTaxonomies(val) {
|
|
44839
|
+
if (!sdIsMap(val)) {
|
|
44840
|
+
throw new BoxSdkError({
|
|
44841
|
+
message: 'Expecting a map for "MetadataTaxonomies"',
|
|
44842
|
+
});
|
|
44843
|
+
}
|
|
44844
|
+
if (!(val.limit == void 0) && !sdIsNumber(val.limit)) {
|
|
44845
|
+
throw new BoxSdkError({
|
|
44846
|
+
message: 'Expecting number for "limit" of type "MetadataTaxonomies"',
|
|
44847
|
+
});
|
|
44848
|
+
}
|
|
44849
|
+
const limit = val.limit == void 0 ? void 0 : val.limit;
|
|
44850
|
+
if (!(val.next_marker == void 0) && !sdIsString(val.next_marker)) {
|
|
44851
|
+
throw new BoxSdkError({
|
|
44852
|
+
message: 'Expecting string for "next_marker" of type "MetadataTaxonomies"',
|
|
44853
|
+
});
|
|
44854
|
+
}
|
|
44855
|
+
const nextMarker = val.next_marker == void 0 ? void 0 : val.next_marker;
|
|
44856
|
+
if (!(val.prev_marker == void 0) && !sdIsString(val.prev_marker)) {
|
|
44857
|
+
throw new BoxSdkError({
|
|
44858
|
+
message: 'Expecting string for "prev_marker" of type "MetadataTaxonomies"',
|
|
44859
|
+
});
|
|
44860
|
+
}
|
|
44861
|
+
const prevMarker = val.prev_marker == void 0 ? void 0 : val.prev_marker;
|
|
44862
|
+
if (!(val.entries == void 0) && !sdIsList(val.entries)) {
|
|
44863
|
+
throw new BoxSdkError({
|
|
44864
|
+
message: 'Expecting array for "entries" of type "MetadataTaxonomies"',
|
|
44865
|
+
});
|
|
44866
|
+
}
|
|
44867
|
+
const entries = val.entries == void 0
|
|
44868
|
+
? void 0
|
|
44869
|
+
: sdIsList(val.entries)
|
|
44870
|
+
? val.entries.map(function (itm) {
|
|
44871
|
+
return deserializeMetadataTaxonomy(itm);
|
|
44872
|
+
})
|
|
44873
|
+
: [];
|
|
44874
|
+
return {
|
|
44875
|
+
limit: limit,
|
|
44876
|
+
nextMarker: nextMarker,
|
|
44877
|
+
prevMarker: prevMarker,
|
|
44878
|
+
entries: entries,
|
|
44879
|
+
};
|
|
44880
|
+
}
|
|
44881
|
+
|
|
44882
|
+
function deserializeMetadataTaxonomyLevels(val) {
|
|
44883
|
+
if (!sdIsMap(val)) {
|
|
44884
|
+
throw new BoxSdkError({
|
|
44885
|
+
message: 'Expecting a map for "MetadataTaxonomyLevels"',
|
|
44886
|
+
});
|
|
44887
|
+
}
|
|
44888
|
+
if (!(val.entries == void 0) && !sdIsList(val.entries)) {
|
|
44889
|
+
throw new BoxSdkError({
|
|
44890
|
+
message: 'Expecting array for "entries" of type "MetadataTaxonomyLevels"',
|
|
44891
|
+
});
|
|
44892
|
+
}
|
|
44893
|
+
const entries = val.entries == void 0
|
|
44894
|
+
? void 0
|
|
44895
|
+
: sdIsList(val.entries)
|
|
44896
|
+
? val.entries.map(function (itm) {
|
|
44897
|
+
return deserializeMetadataTaxonomyLevel(itm);
|
|
44898
|
+
})
|
|
44899
|
+
: [];
|
|
44900
|
+
return { entries: entries };
|
|
44901
|
+
}
|
|
44902
|
+
|
|
44903
|
+
function deserializeMetadataTaxonomyAncestor(val) {
|
|
44904
|
+
if (!sdIsMap(val)) {
|
|
44905
|
+
throw new BoxSdkError({
|
|
44906
|
+
message: 'Expecting a map for "MetadataTaxonomyAncestor"',
|
|
44907
|
+
});
|
|
44908
|
+
}
|
|
44909
|
+
if (!(val.id == void 0) && !sdIsString(val.id)) {
|
|
44910
|
+
throw new BoxSdkError({
|
|
44911
|
+
message: 'Expecting string for "id" of type "MetadataTaxonomyAncestor"',
|
|
44912
|
+
});
|
|
44913
|
+
}
|
|
44914
|
+
const id = val.id == void 0 ? void 0 : val.id;
|
|
44915
|
+
if (!(val.displayName == void 0) && !sdIsString(val.displayName)) {
|
|
44916
|
+
throw new BoxSdkError({
|
|
44917
|
+
message: 'Expecting string for "displayName" of type "MetadataTaxonomyAncestor"',
|
|
44918
|
+
});
|
|
44919
|
+
}
|
|
44920
|
+
const displayName = val.displayName == void 0 ? void 0 : val.displayName;
|
|
44921
|
+
if (!(val.level == void 0) && !sdIsNumber(val.level)) {
|
|
44922
|
+
throw new BoxSdkError({
|
|
44923
|
+
message: 'Expecting number for "level" of type "MetadataTaxonomyAncestor"',
|
|
44924
|
+
});
|
|
44925
|
+
}
|
|
44926
|
+
const level = val.level == void 0 ? void 0 : val.level;
|
|
44927
|
+
return {
|
|
44928
|
+
id: id,
|
|
44929
|
+
displayName: displayName,
|
|
44930
|
+
level: level,
|
|
44931
|
+
};
|
|
44932
|
+
}
|
|
44933
|
+
|
|
44934
|
+
function deserializeMetadataTaxonomyNode(val) {
|
|
44935
|
+
if (!sdIsMap(val)) {
|
|
44936
|
+
throw new BoxSdkError({
|
|
44937
|
+
message: 'Expecting a map for "MetadataTaxonomyNode"',
|
|
44938
|
+
});
|
|
44939
|
+
}
|
|
44940
|
+
if (val.id == void 0) {
|
|
44941
|
+
throw new BoxSdkError({
|
|
44942
|
+
message: 'Expecting "id" of type "MetadataTaxonomyNode" to be defined',
|
|
44943
|
+
});
|
|
44944
|
+
}
|
|
44945
|
+
if (!sdIsString(val.id)) {
|
|
44946
|
+
throw new BoxSdkError({
|
|
44947
|
+
message: 'Expecting string for "id" of type "MetadataTaxonomyNode"',
|
|
44948
|
+
});
|
|
44949
|
+
}
|
|
44950
|
+
const id = val.id;
|
|
44951
|
+
if (val.displayName == void 0) {
|
|
44952
|
+
throw new BoxSdkError({
|
|
44953
|
+
message: 'Expecting "displayName" of type "MetadataTaxonomyNode" to be defined',
|
|
44954
|
+
});
|
|
44955
|
+
}
|
|
44956
|
+
if (!sdIsString(val.displayName)) {
|
|
44957
|
+
throw new BoxSdkError({
|
|
44958
|
+
message: 'Expecting string for "displayName" of type "MetadataTaxonomyNode"',
|
|
44959
|
+
});
|
|
44960
|
+
}
|
|
44961
|
+
const displayName = val.displayName;
|
|
44962
|
+
if (val.level == void 0) {
|
|
44963
|
+
throw new BoxSdkError({
|
|
44964
|
+
message: 'Expecting "level" of type "MetadataTaxonomyNode" to be defined',
|
|
44965
|
+
});
|
|
44966
|
+
}
|
|
44967
|
+
if (!sdIsNumber(val.level)) {
|
|
44968
|
+
throw new BoxSdkError({
|
|
44969
|
+
message: 'Expecting number for "level" of type "MetadataTaxonomyNode"',
|
|
44970
|
+
});
|
|
44971
|
+
}
|
|
44972
|
+
const level = val.level;
|
|
44973
|
+
if (!(val.parentId == void 0) && !sdIsString(val.parentId)) {
|
|
44974
|
+
throw new BoxSdkError({
|
|
44975
|
+
message: 'Expecting string for "parentId" of type "MetadataTaxonomyNode"',
|
|
44976
|
+
});
|
|
44977
|
+
}
|
|
44978
|
+
const parentId = val.parentId == void 0 ? void 0 : val.parentId;
|
|
44979
|
+
if (!(val.nodePath == void 0) && !sdIsList(val.nodePath)) {
|
|
44980
|
+
throw new BoxSdkError({
|
|
44981
|
+
message: 'Expecting array for "nodePath" of type "MetadataTaxonomyNode"',
|
|
44982
|
+
});
|
|
44983
|
+
}
|
|
44984
|
+
const nodePath = val.nodePath == void 0
|
|
44985
|
+
? void 0
|
|
44986
|
+
: sdIsList(val.nodePath)
|
|
44987
|
+
? val.nodePath.map(function (itm) {
|
|
44988
|
+
if (!sdIsString(itm)) {
|
|
44989
|
+
throw new BoxSdkError({
|
|
44990
|
+
message: 'Expecting string for "MetadataTaxonomyNode"',
|
|
44991
|
+
});
|
|
44992
|
+
}
|
|
44993
|
+
return itm;
|
|
44994
|
+
})
|
|
44995
|
+
: [];
|
|
44996
|
+
if (!(val.ancestors == void 0) && !sdIsList(val.ancestors)) {
|
|
44997
|
+
throw new BoxSdkError({
|
|
44998
|
+
message: 'Expecting array for "ancestors" of type "MetadataTaxonomyNode"',
|
|
44999
|
+
});
|
|
45000
|
+
}
|
|
45001
|
+
const ancestors = val.ancestors == void 0
|
|
45002
|
+
? void 0
|
|
45003
|
+
: sdIsList(val.ancestors)
|
|
45004
|
+
? val.ancestors.map(function (itm) {
|
|
45005
|
+
return deserializeMetadataTaxonomyAncestor(itm);
|
|
45006
|
+
})
|
|
45007
|
+
: [];
|
|
45008
|
+
return {
|
|
45009
|
+
id: id,
|
|
45010
|
+
displayName: displayName,
|
|
45011
|
+
level: level,
|
|
45012
|
+
parentId: parentId,
|
|
45013
|
+
nodePath: nodePath,
|
|
45014
|
+
ancestors: ancestors,
|
|
45015
|
+
};
|
|
45016
|
+
}
|
|
45017
|
+
|
|
45018
|
+
function deserializeMetadataTaxonomyNodes(val) {
|
|
45019
|
+
if (!sdIsMap(val)) {
|
|
45020
|
+
throw new BoxSdkError({
|
|
45021
|
+
message: 'Expecting a map for "MetadataTaxonomyNodes"',
|
|
45022
|
+
});
|
|
45023
|
+
}
|
|
45024
|
+
if (!(val.limit == void 0) && !sdIsNumber(val.limit)) {
|
|
45025
|
+
throw new BoxSdkError({
|
|
45026
|
+
message: 'Expecting number for "limit" of type "MetadataTaxonomyNodes"',
|
|
45027
|
+
});
|
|
45028
|
+
}
|
|
45029
|
+
const limit = val.limit == void 0 ? void 0 : val.limit;
|
|
45030
|
+
if (!(val.next_marker == void 0) && !sdIsString(val.next_marker)) {
|
|
45031
|
+
throw new BoxSdkError({
|
|
45032
|
+
message: 'Expecting string for "next_marker" of type "MetadataTaxonomyNodes"',
|
|
45033
|
+
});
|
|
45034
|
+
}
|
|
45035
|
+
const nextMarker = val.next_marker == void 0 ? void 0 : val.next_marker;
|
|
45036
|
+
if (!(val.prev_marker == void 0) && !sdIsString(val.prev_marker)) {
|
|
45037
|
+
throw new BoxSdkError({
|
|
45038
|
+
message: 'Expecting string for "prev_marker" of type "MetadataTaxonomyNodes"',
|
|
45039
|
+
});
|
|
45040
|
+
}
|
|
45041
|
+
const prevMarker = val.prev_marker == void 0 ? void 0 : val.prev_marker;
|
|
45042
|
+
if (!(val.entries == void 0) && !sdIsList(val.entries)) {
|
|
45043
|
+
throw new BoxSdkError({
|
|
45044
|
+
message: 'Expecting array for "entries" of type "MetadataTaxonomyNodes"',
|
|
45045
|
+
});
|
|
45046
|
+
}
|
|
45047
|
+
const entries = val.entries == void 0
|
|
45048
|
+
? void 0
|
|
45049
|
+
: sdIsList(val.entries)
|
|
45050
|
+
? val.entries.map(function (itm) {
|
|
45051
|
+
return deserializeMetadataTaxonomyNode(itm);
|
|
45052
|
+
})
|
|
45053
|
+
: [];
|
|
45054
|
+
return {
|
|
45055
|
+
limit: limit,
|
|
45056
|
+
nextMarker: nextMarker,
|
|
45057
|
+
prevMarker: prevMarker,
|
|
45058
|
+
entries: entries,
|
|
45059
|
+
};
|
|
45060
|
+
}
|
|
45061
|
+
|
|
45062
|
+
class CreateMetadataTaxonomyOptionals {
|
|
45063
|
+
constructor(fields) {
|
|
45064
|
+
this.headers = new CreateMetadataTaxonomyHeaders({});
|
|
45065
|
+
this.cancellationToken = void 0;
|
|
45066
|
+
if (fields.headers !== undefined) {
|
|
45067
|
+
this.headers = fields.headers;
|
|
45068
|
+
}
|
|
45069
|
+
if (fields.cancellationToken !== undefined) {
|
|
45070
|
+
this.cancellationToken = fields.cancellationToken;
|
|
45071
|
+
}
|
|
45072
|
+
}
|
|
45073
|
+
}
|
|
45074
|
+
class GetMetadataTaxonomiesOptionals {
|
|
45075
|
+
constructor(fields) {
|
|
45076
|
+
this.queryParams = {};
|
|
45077
|
+
this.headers = new GetMetadataTaxonomiesHeaders({});
|
|
45078
|
+
this.cancellationToken = void 0;
|
|
45079
|
+
if (fields.queryParams !== undefined) {
|
|
45080
|
+
this.queryParams = fields.queryParams;
|
|
45081
|
+
}
|
|
45082
|
+
if (fields.headers !== undefined) {
|
|
45083
|
+
this.headers = fields.headers;
|
|
45084
|
+
}
|
|
45085
|
+
if (fields.cancellationToken !== undefined) {
|
|
45086
|
+
this.cancellationToken = fields.cancellationToken;
|
|
45087
|
+
}
|
|
45088
|
+
}
|
|
45089
|
+
}
|
|
45090
|
+
class GetMetadataTaxonomyByKeyOptionals {
|
|
45091
|
+
constructor(fields) {
|
|
45092
|
+
this.headers = new GetMetadataTaxonomyByKeyHeaders({});
|
|
45093
|
+
this.cancellationToken = void 0;
|
|
45094
|
+
if (fields.headers !== undefined) {
|
|
45095
|
+
this.headers = fields.headers;
|
|
45096
|
+
}
|
|
45097
|
+
if (fields.cancellationToken !== undefined) {
|
|
45098
|
+
this.cancellationToken = fields.cancellationToken;
|
|
45099
|
+
}
|
|
45100
|
+
}
|
|
45101
|
+
}
|
|
45102
|
+
class UpdateMetadataTaxonomyOptionals {
|
|
45103
|
+
constructor(fields) {
|
|
45104
|
+
this.headers = new UpdateMetadataTaxonomyHeaders({});
|
|
45105
|
+
this.cancellationToken = void 0;
|
|
45106
|
+
if (fields.headers !== undefined) {
|
|
45107
|
+
this.headers = fields.headers;
|
|
45108
|
+
}
|
|
45109
|
+
if (fields.cancellationToken !== undefined) {
|
|
45110
|
+
this.cancellationToken = fields.cancellationToken;
|
|
45111
|
+
}
|
|
45112
|
+
}
|
|
45113
|
+
}
|
|
45114
|
+
class DeleteMetadataTaxonomyOptionals {
|
|
45115
|
+
constructor(fields) {
|
|
45116
|
+
this.headers = new DeleteMetadataTaxonomyHeaders({});
|
|
45117
|
+
this.cancellationToken = void 0;
|
|
45118
|
+
if (fields.headers !== undefined) {
|
|
45119
|
+
this.headers = fields.headers;
|
|
45120
|
+
}
|
|
45121
|
+
if (fields.cancellationToken !== undefined) {
|
|
45122
|
+
this.cancellationToken = fields.cancellationToken;
|
|
45123
|
+
}
|
|
45124
|
+
}
|
|
45125
|
+
}
|
|
45126
|
+
class CreateMetadataTaxonomyLevelOptionals {
|
|
45127
|
+
constructor(fields) {
|
|
45128
|
+
this.headers = new CreateMetadataTaxonomyLevelHeaders({});
|
|
45129
|
+
this.cancellationToken = void 0;
|
|
45130
|
+
if (fields.headers !== undefined) {
|
|
45131
|
+
this.headers = fields.headers;
|
|
45132
|
+
}
|
|
45133
|
+
if (fields.cancellationToken !== undefined) {
|
|
45134
|
+
this.cancellationToken = fields.cancellationToken;
|
|
45135
|
+
}
|
|
45136
|
+
}
|
|
45137
|
+
}
|
|
45138
|
+
class UpdateMetadataTaxonomyLevelByIdOptionals {
|
|
45139
|
+
constructor(fields) {
|
|
45140
|
+
this.headers = new UpdateMetadataTaxonomyLevelByIdHeaders({});
|
|
45141
|
+
this.cancellationToken = void 0;
|
|
45142
|
+
if (fields.headers !== undefined) {
|
|
45143
|
+
this.headers = fields.headers;
|
|
45144
|
+
}
|
|
45145
|
+
if (fields.cancellationToken !== undefined) {
|
|
45146
|
+
this.cancellationToken = fields.cancellationToken;
|
|
45147
|
+
}
|
|
45148
|
+
}
|
|
45149
|
+
}
|
|
45150
|
+
class AddMetadataTaxonomyLevelOptionals {
|
|
45151
|
+
constructor(fields) {
|
|
45152
|
+
this.headers = new AddMetadataTaxonomyLevelHeaders({});
|
|
45153
|
+
this.cancellationToken = void 0;
|
|
45154
|
+
if (fields.headers !== undefined) {
|
|
45155
|
+
this.headers = fields.headers;
|
|
45156
|
+
}
|
|
45157
|
+
if (fields.cancellationToken !== undefined) {
|
|
45158
|
+
this.cancellationToken = fields.cancellationToken;
|
|
45159
|
+
}
|
|
45160
|
+
}
|
|
45161
|
+
}
|
|
45162
|
+
class DeleteMetadataTaxonomyLevelOptionals {
|
|
45163
|
+
constructor(fields) {
|
|
45164
|
+
this.headers = new DeleteMetadataTaxonomyLevelHeaders({});
|
|
45165
|
+
this.cancellationToken = void 0;
|
|
45166
|
+
if (fields.headers !== undefined) {
|
|
45167
|
+
this.headers = fields.headers;
|
|
45168
|
+
}
|
|
45169
|
+
if (fields.cancellationToken !== undefined) {
|
|
45170
|
+
this.cancellationToken = fields.cancellationToken;
|
|
45171
|
+
}
|
|
45172
|
+
}
|
|
45173
|
+
}
|
|
45174
|
+
class GetMetadataTaxonomyNodesOptionals {
|
|
45175
|
+
constructor(fields) {
|
|
45176
|
+
this.queryParams = {};
|
|
45177
|
+
this.headers = new GetMetadataTaxonomyNodesHeaders({});
|
|
45178
|
+
this.cancellationToken = void 0;
|
|
45179
|
+
if (fields.queryParams !== undefined) {
|
|
45180
|
+
this.queryParams = fields.queryParams;
|
|
45181
|
+
}
|
|
45182
|
+
if (fields.headers !== undefined) {
|
|
45183
|
+
this.headers = fields.headers;
|
|
45184
|
+
}
|
|
45185
|
+
if (fields.cancellationToken !== undefined) {
|
|
45186
|
+
this.cancellationToken = fields.cancellationToken;
|
|
45187
|
+
}
|
|
45188
|
+
}
|
|
45189
|
+
}
|
|
45190
|
+
class CreateMetadataTaxonomyNodeOptionals {
|
|
45191
|
+
constructor(fields) {
|
|
45192
|
+
this.headers = new CreateMetadataTaxonomyNodeHeaders({});
|
|
45193
|
+
this.cancellationToken = void 0;
|
|
45194
|
+
if (fields.headers !== undefined) {
|
|
45195
|
+
this.headers = fields.headers;
|
|
45196
|
+
}
|
|
45197
|
+
if (fields.cancellationToken !== undefined) {
|
|
45198
|
+
this.cancellationToken = fields.cancellationToken;
|
|
45199
|
+
}
|
|
45200
|
+
}
|
|
45201
|
+
}
|
|
45202
|
+
class GetMetadataTaxonomyNodeByIdOptionals {
|
|
45203
|
+
constructor(fields) {
|
|
45204
|
+
this.headers = new GetMetadataTaxonomyNodeByIdHeaders({});
|
|
45205
|
+
this.cancellationToken = void 0;
|
|
45206
|
+
if (fields.headers !== undefined) {
|
|
45207
|
+
this.headers = fields.headers;
|
|
45208
|
+
}
|
|
45209
|
+
if (fields.cancellationToken !== undefined) {
|
|
45210
|
+
this.cancellationToken = fields.cancellationToken;
|
|
45211
|
+
}
|
|
45212
|
+
}
|
|
45213
|
+
}
|
|
45214
|
+
class UpdateMetadataTaxonomyNodeOptionals {
|
|
45215
|
+
constructor(fields) {
|
|
45216
|
+
this.requestBody = {};
|
|
45217
|
+
this.headers = new UpdateMetadataTaxonomyNodeHeaders({});
|
|
45218
|
+
this.cancellationToken = void 0;
|
|
45219
|
+
if (fields.requestBody !== undefined) {
|
|
45220
|
+
this.requestBody = fields.requestBody;
|
|
45221
|
+
}
|
|
45222
|
+
if (fields.headers !== undefined) {
|
|
45223
|
+
this.headers = fields.headers;
|
|
45224
|
+
}
|
|
45225
|
+
if (fields.cancellationToken !== undefined) {
|
|
45226
|
+
this.cancellationToken = fields.cancellationToken;
|
|
45227
|
+
}
|
|
45228
|
+
}
|
|
45229
|
+
}
|
|
45230
|
+
class DeleteMetadataTaxonomyNodeOptionals {
|
|
45231
|
+
constructor(fields) {
|
|
45232
|
+
this.headers = new DeleteMetadataTaxonomyNodeHeaders({});
|
|
45233
|
+
this.cancellationToken = void 0;
|
|
45234
|
+
if (fields.headers !== undefined) {
|
|
45235
|
+
this.headers = fields.headers;
|
|
45236
|
+
}
|
|
45237
|
+
if (fields.cancellationToken !== undefined) {
|
|
45238
|
+
this.cancellationToken = fields.cancellationToken;
|
|
45239
|
+
}
|
|
45240
|
+
}
|
|
45241
|
+
}
|
|
45242
|
+
class GetMetadataTemplateFieldOptionsOptionals {
|
|
45243
|
+
constructor(fields) {
|
|
45244
|
+
this.queryParams = {};
|
|
45245
|
+
this.headers = new GetMetadataTemplateFieldOptionsHeaders({});
|
|
45246
|
+
this.cancellationToken = void 0;
|
|
45247
|
+
if (fields.queryParams !== undefined) {
|
|
45248
|
+
this.queryParams = fields.queryParams;
|
|
45249
|
+
}
|
|
45250
|
+
if (fields.headers !== undefined) {
|
|
45251
|
+
this.headers = fields.headers;
|
|
45252
|
+
}
|
|
45253
|
+
if (fields.cancellationToken !== undefined) {
|
|
45254
|
+
this.cancellationToken = fields.cancellationToken;
|
|
45255
|
+
}
|
|
45256
|
+
}
|
|
45257
|
+
}
|
|
45258
|
+
class CreateMetadataTaxonomyHeaders {
|
|
45259
|
+
constructor(fields) {
|
|
45260
|
+
/**
|
|
45261
|
+
* Extra headers that will be included in the HTTP request. */
|
|
45262
|
+
this.extraHeaders = {};
|
|
45263
|
+
if (fields.extraHeaders !== undefined) {
|
|
45264
|
+
this.extraHeaders = fields.extraHeaders;
|
|
45265
|
+
}
|
|
45266
|
+
}
|
|
45267
|
+
}
|
|
45268
|
+
class GetMetadataTaxonomiesHeaders {
|
|
45269
|
+
constructor(fields) {
|
|
45270
|
+
/**
|
|
45271
|
+
* Extra headers that will be included in the HTTP request. */
|
|
45272
|
+
this.extraHeaders = {};
|
|
45273
|
+
if (fields.extraHeaders !== undefined) {
|
|
45274
|
+
this.extraHeaders = fields.extraHeaders;
|
|
45275
|
+
}
|
|
45276
|
+
}
|
|
45277
|
+
}
|
|
45278
|
+
class GetMetadataTaxonomyByKeyHeaders {
|
|
45279
|
+
constructor(fields) {
|
|
45280
|
+
/**
|
|
45281
|
+
* Extra headers that will be included in the HTTP request. */
|
|
45282
|
+
this.extraHeaders = {};
|
|
45283
|
+
if (fields.extraHeaders !== undefined) {
|
|
45284
|
+
this.extraHeaders = fields.extraHeaders;
|
|
45285
|
+
}
|
|
45286
|
+
}
|
|
45287
|
+
}
|
|
45288
|
+
class UpdateMetadataTaxonomyHeaders {
|
|
45289
|
+
constructor(fields) {
|
|
45290
|
+
/**
|
|
45291
|
+
* Extra headers that will be included in the HTTP request. */
|
|
45292
|
+
this.extraHeaders = {};
|
|
45293
|
+
if (fields.extraHeaders !== undefined) {
|
|
45294
|
+
this.extraHeaders = fields.extraHeaders;
|
|
45295
|
+
}
|
|
45296
|
+
}
|
|
45297
|
+
}
|
|
45298
|
+
class DeleteMetadataTaxonomyHeaders {
|
|
45299
|
+
constructor(fields) {
|
|
45300
|
+
/**
|
|
45301
|
+
* Extra headers that will be included in the HTTP request. */
|
|
45302
|
+
this.extraHeaders = {};
|
|
45303
|
+
if (fields.extraHeaders !== undefined) {
|
|
45304
|
+
this.extraHeaders = fields.extraHeaders;
|
|
45305
|
+
}
|
|
45306
|
+
}
|
|
45307
|
+
}
|
|
45308
|
+
class CreateMetadataTaxonomyLevelHeaders {
|
|
45309
|
+
constructor(fields) {
|
|
45310
|
+
/**
|
|
45311
|
+
* Extra headers that will be included in the HTTP request. */
|
|
45312
|
+
this.extraHeaders = {};
|
|
45313
|
+
if (fields.extraHeaders !== undefined) {
|
|
45314
|
+
this.extraHeaders = fields.extraHeaders;
|
|
45315
|
+
}
|
|
45316
|
+
}
|
|
45317
|
+
}
|
|
45318
|
+
class UpdateMetadataTaxonomyLevelByIdHeaders {
|
|
45319
|
+
constructor(fields) {
|
|
45320
|
+
/**
|
|
45321
|
+
* Extra headers that will be included in the HTTP request. */
|
|
45322
|
+
this.extraHeaders = {};
|
|
45323
|
+
if (fields.extraHeaders !== undefined) {
|
|
45324
|
+
this.extraHeaders = fields.extraHeaders;
|
|
45325
|
+
}
|
|
45326
|
+
}
|
|
45327
|
+
}
|
|
45328
|
+
class AddMetadataTaxonomyLevelHeaders {
|
|
45329
|
+
constructor(fields) {
|
|
45330
|
+
/**
|
|
45331
|
+
* Extra headers that will be included in the HTTP request. */
|
|
45332
|
+
this.extraHeaders = {};
|
|
45333
|
+
if (fields.extraHeaders !== undefined) {
|
|
45334
|
+
this.extraHeaders = fields.extraHeaders;
|
|
45335
|
+
}
|
|
45336
|
+
}
|
|
45337
|
+
}
|
|
45338
|
+
class DeleteMetadataTaxonomyLevelHeaders {
|
|
45339
|
+
constructor(fields) {
|
|
45340
|
+
/**
|
|
45341
|
+
* Extra headers that will be included in the HTTP request. */
|
|
45342
|
+
this.extraHeaders = {};
|
|
45343
|
+
if (fields.extraHeaders !== undefined) {
|
|
45344
|
+
this.extraHeaders = fields.extraHeaders;
|
|
45345
|
+
}
|
|
45346
|
+
}
|
|
45347
|
+
}
|
|
45348
|
+
class GetMetadataTaxonomyNodesHeaders {
|
|
45349
|
+
constructor(fields) {
|
|
45350
|
+
/**
|
|
45351
|
+
* Extra headers that will be included in the HTTP request. */
|
|
45352
|
+
this.extraHeaders = {};
|
|
45353
|
+
if (fields.extraHeaders !== undefined) {
|
|
45354
|
+
this.extraHeaders = fields.extraHeaders;
|
|
45355
|
+
}
|
|
45356
|
+
}
|
|
45357
|
+
}
|
|
45358
|
+
class CreateMetadataTaxonomyNodeHeaders {
|
|
45359
|
+
constructor(fields) {
|
|
45360
|
+
/**
|
|
45361
|
+
* Extra headers that will be included in the HTTP request. */
|
|
45362
|
+
this.extraHeaders = {};
|
|
45363
|
+
if (fields.extraHeaders !== undefined) {
|
|
45364
|
+
this.extraHeaders = fields.extraHeaders;
|
|
45365
|
+
}
|
|
45366
|
+
}
|
|
45367
|
+
}
|
|
45368
|
+
class GetMetadataTaxonomyNodeByIdHeaders {
|
|
45369
|
+
constructor(fields) {
|
|
45370
|
+
/**
|
|
45371
|
+
* Extra headers that will be included in the HTTP request. */
|
|
45372
|
+
this.extraHeaders = {};
|
|
45373
|
+
if (fields.extraHeaders !== undefined) {
|
|
45374
|
+
this.extraHeaders = fields.extraHeaders;
|
|
45375
|
+
}
|
|
45376
|
+
}
|
|
45377
|
+
}
|
|
45378
|
+
class UpdateMetadataTaxonomyNodeHeaders {
|
|
45379
|
+
constructor(fields) {
|
|
45380
|
+
/**
|
|
45381
|
+
* Extra headers that will be included in the HTTP request. */
|
|
45382
|
+
this.extraHeaders = {};
|
|
45383
|
+
if (fields.extraHeaders !== undefined) {
|
|
45384
|
+
this.extraHeaders = fields.extraHeaders;
|
|
45385
|
+
}
|
|
45386
|
+
}
|
|
45387
|
+
}
|
|
45388
|
+
class DeleteMetadataTaxonomyNodeHeaders {
|
|
45389
|
+
constructor(fields) {
|
|
45390
|
+
/**
|
|
45391
|
+
* Extra headers that will be included in the HTTP request. */
|
|
45392
|
+
this.extraHeaders = {};
|
|
45393
|
+
if (fields.extraHeaders !== undefined) {
|
|
45394
|
+
this.extraHeaders = fields.extraHeaders;
|
|
45395
|
+
}
|
|
45396
|
+
}
|
|
45397
|
+
}
|
|
45398
|
+
class GetMetadataTemplateFieldOptionsHeaders {
|
|
45399
|
+
constructor(fields) {
|
|
45400
|
+
/**
|
|
45401
|
+
* Extra headers that will be included in the HTTP request. */
|
|
45402
|
+
this.extraHeaders = {};
|
|
45403
|
+
if (fields.extraHeaders !== undefined) {
|
|
45404
|
+
this.extraHeaders = fields.extraHeaders;
|
|
45405
|
+
}
|
|
45406
|
+
}
|
|
45407
|
+
}
|
|
45408
|
+
class MetadataTaxonomiesManager {
|
|
45409
|
+
constructor(fields) {
|
|
45410
|
+
this.networkSession = new NetworkSession({});
|
|
45411
|
+
if (fields.auth !== undefined) {
|
|
45412
|
+
this.auth = fields.auth;
|
|
45413
|
+
}
|
|
45414
|
+
if (fields.networkSession !== undefined) {
|
|
45415
|
+
this.networkSession = fields.networkSession;
|
|
45416
|
+
}
|
|
45417
|
+
}
|
|
45418
|
+
/**
|
|
45419
|
+
* Creates a new metadata taxonomy that can be used in
|
|
45420
|
+
* metadata templates.
|
|
45421
|
+
* @param {CreateMetadataTaxonomyRequestBody} requestBody Request body of createMetadataTaxonomy method
|
|
45422
|
+
* @param {CreateMetadataTaxonomyOptionalsInput} optionalsInput
|
|
45423
|
+
* @returns {Promise<MetadataTaxonomy>}
|
|
45424
|
+
*/
|
|
45425
|
+
createMetadataTaxonomy(requestBody_1) {
|
|
45426
|
+
return __awaiter$1(this, arguments, void 0, function* (requestBody, optionalsInput = {}) {
|
|
45427
|
+
const optionals = new CreateMetadataTaxonomyOptionals({
|
|
45428
|
+
headers: optionalsInput.headers,
|
|
45429
|
+
cancellationToken: optionalsInput.cancellationToken,
|
|
45430
|
+
});
|
|
45431
|
+
const headers = optionals.headers;
|
|
45432
|
+
const cancellationToken = optionals.cancellationToken;
|
|
45433
|
+
const headersMap = prepareParams(Object.assign({}, headers.extraHeaders));
|
|
45434
|
+
const response = yield this.networkSession.networkClient.fetch(new FetchOptions({
|
|
45435
|
+
url: ''.concat(this.networkSession.baseUrls.baseUrl, '/2.0/metadata_taxonomies'),
|
|
45436
|
+
method: 'POST',
|
|
45437
|
+
headers: headersMap,
|
|
45438
|
+
data: serializeCreateMetadataTaxonomyRequestBody(requestBody),
|
|
45439
|
+
contentType: 'application/json',
|
|
45440
|
+
responseFormat: 'json',
|
|
45441
|
+
auth: this.auth,
|
|
45442
|
+
networkSession: this.networkSession,
|
|
45443
|
+
cancellationToken: cancellationToken,
|
|
45444
|
+
}));
|
|
45445
|
+
return Object.assign(Object.assign({}, deserializeMetadataTaxonomy(response.data)), { rawData: response.data });
|
|
45446
|
+
});
|
|
45447
|
+
}
|
|
45448
|
+
/**
|
|
45449
|
+
* Used to retrieve all metadata taxonomies in a namespace.
|
|
45450
|
+
* @param {string} namespace The namespace of the metadata taxonomy.
|
|
45451
|
+
Example: "enterprise_123456"
|
|
45452
|
+
* @param {GetMetadataTaxonomiesOptionalsInput} optionalsInput
|
|
45453
|
+
* @returns {Promise<MetadataTaxonomies>}
|
|
45454
|
+
*/
|
|
45455
|
+
getMetadataTaxonomies(namespace_1) {
|
|
45456
|
+
return __awaiter$1(this, arguments, void 0, function* (namespace, optionalsInput = {}) {
|
|
45457
|
+
const optionals = new GetMetadataTaxonomiesOptionals({
|
|
45458
|
+
queryParams: optionalsInput.queryParams,
|
|
45459
|
+
headers: optionalsInput.headers,
|
|
45460
|
+
cancellationToken: optionalsInput.cancellationToken,
|
|
45461
|
+
});
|
|
45462
|
+
const queryParams = optionals.queryParams;
|
|
45463
|
+
const headers = optionals.headers;
|
|
45464
|
+
const cancellationToken = optionals.cancellationToken;
|
|
45465
|
+
const queryParamsMap = prepareParams({
|
|
45466
|
+
['marker']: toString(queryParams.marker),
|
|
45467
|
+
['limit']: toString(queryParams.limit),
|
|
45468
|
+
});
|
|
45469
|
+
const headersMap = prepareParams(Object.assign({}, headers.extraHeaders));
|
|
45470
|
+
const response = yield this.networkSession.networkClient.fetch(new FetchOptions({
|
|
45471
|
+
url: ''.concat(this.networkSession.baseUrls.baseUrl, '/2.0/metadata_taxonomies/', toString(namespace)),
|
|
45472
|
+
method: 'GET',
|
|
45473
|
+
params: queryParamsMap,
|
|
45474
|
+
headers: headersMap,
|
|
45475
|
+
responseFormat: 'json',
|
|
45476
|
+
auth: this.auth,
|
|
45477
|
+
networkSession: this.networkSession,
|
|
45478
|
+
cancellationToken: cancellationToken,
|
|
45479
|
+
}));
|
|
45480
|
+
return Object.assign(Object.assign({}, deserializeMetadataTaxonomies(response.data)), { rawData: response.data });
|
|
45481
|
+
});
|
|
45482
|
+
}
|
|
45483
|
+
/**
|
|
45484
|
+
* Used to retrieve a metadata taxonomy by taxonomy key.
|
|
45485
|
+
* @param {string} namespace The namespace of the metadata taxonomy.
|
|
45486
|
+
Example: "enterprise_123456"
|
|
45487
|
+
* @param {string} taxonomyKey The key of the metadata taxonomy.
|
|
45488
|
+
Example: "geography"
|
|
45489
|
+
* @param {GetMetadataTaxonomyByKeyOptionalsInput} optionalsInput
|
|
45490
|
+
* @returns {Promise<MetadataTaxonomy>}
|
|
45491
|
+
*/
|
|
45492
|
+
getMetadataTaxonomyByKey(namespace_1, taxonomyKey_1) {
|
|
45493
|
+
return __awaiter$1(this, arguments, void 0, function* (namespace, taxonomyKey, optionalsInput = {}) {
|
|
45494
|
+
const optionals = new GetMetadataTaxonomyByKeyOptionals({
|
|
45495
|
+
headers: optionalsInput.headers,
|
|
45496
|
+
cancellationToken: optionalsInput.cancellationToken,
|
|
45497
|
+
});
|
|
45498
|
+
const headers = optionals.headers;
|
|
45499
|
+
const cancellationToken = optionals.cancellationToken;
|
|
45500
|
+
const headersMap = prepareParams(Object.assign({}, headers.extraHeaders));
|
|
45501
|
+
const response = yield this.networkSession.networkClient.fetch(new FetchOptions({
|
|
45502
|
+
url: ''.concat(this.networkSession.baseUrls.baseUrl, '/2.0/metadata_taxonomies/', toString(namespace), '/', toString(taxonomyKey)),
|
|
45503
|
+
method: 'GET',
|
|
45504
|
+
headers: headersMap,
|
|
45505
|
+
responseFormat: 'json',
|
|
45506
|
+
auth: this.auth,
|
|
45507
|
+
networkSession: this.networkSession,
|
|
45508
|
+
cancellationToken: cancellationToken,
|
|
45509
|
+
}));
|
|
45510
|
+
return Object.assign(Object.assign({}, deserializeMetadataTaxonomy(response.data)), { rawData: response.data });
|
|
45511
|
+
});
|
|
45512
|
+
}
|
|
45513
|
+
/**
|
|
45514
|
+
* Updates an existing metadata taxonomy.
|
|
45515
|
+
* @param {string} namespace The namespace of the metadata taxonomy.
|
|
45516
|
+
Example: "enterprise_123456"
|
|
45517
|
+
* @param {string} taxonomyKey The key of the metadata taxonomy.
|
|
45518
|
+
Example: "geography"
|
|
45519
|
+
* @param {UpdateMetadataTaxonomyRequestBody} requestBody Request body of updateMetadataTaxonomy method
|
|
45520
|
+
* @param {UpdateMetadataTaxonomyOptionalsInput} optionalsInput
|
|
45521
|
+
* @returns {Promise<MetadataTaxonomy>}
|
|
45522
|
+
*/
|
|
45523
|
+
updateMetadataTaxonomy(namespace_1, taxonomyKey_1, requestBody_1) {
|
|
45524
|
+
return __awaiter$1(this, arguments, void 0, function* (namespace, taxonomyKey, requestBody, optionalsInput = {}) {
|
|
45525
|
+
const optionals = new UpdateMetadataTaxonomyOptionals({
|
|
45526
|
+
headers: optionalsInput.headers,
|
|
45527
|
+
cancellationToken: optionalsInput.cancellationToken,
|
|
45528
|
+
});
|
|
45529
|
+
const headers = optionals.headers;
|
|
45530
|
+
const cancellationToken = optionals.cancellationToken;
|
|
45531
|
+
const headersMap = prepareParams(Object.assign({}, headers.extraHeaders));
|
|
45532
|
+
const response = yield this.networkSession.networkClient.fetch(new FetchOptions({
|
|
45533
|
+
url: ''.concat(this.networkSession.baseUrls.baseUrl, '/2.0/metadata_taxonomies/', toString(namespace), '/', toString(taxonomyKey)),
|
|
45534
|
+
method: 'PATCH',
|
|
45535
|
+
headers: headersMap,
|
|
45536
|
+
data: serializeUpdateMetadataTaxonomyRequestBody(requestBody),
|
|
45537
|
+
contentType: 'application/json',
|
|
45538
|
+
responseFormat: 'json',
|
|
45539
|
+
auth: this.auth,
|
|
45540
|
+
networkSession: this.networkSession,
|
|
45541
|
+
cancellationToken: cancellationToken,
|
|
45542
|
+
}));
|
|
45543
|
+
return Object.assign(Object.assign({}, deserializeMetadataTaxonomy(response.data)), { rawData: response.data });
|
|
45544
|
+
});
|
|
45545
|
+
}
|
|
45546
|
+
/**
|
|
45547
|
+
* Delete a metadata taxonomy.
|
|
45548
|
+
* This deletion is permanent and cannot be reverted.
|
|
45549
|
+
* @param {string} namespace The namespace of the metadata taxonomy.
|
|
45550
|
+
Example: "enterprise_123456"
|
|
45551
|
+
* @param {string} taxonomyKey The key of the metadata taxonomy.
|
|
45552
|
+
Example: "geography"
|
|
45553
|
+
* @param {DeleteMetadataTaxonomyOptionalsInput} optionalsInput
|
|
45554
|
+
* @returns {Promise<undefined>}
|
|
45555
|
+
*/
|
|
45556
|
+
deleteMetadataTaxonomy(namespace_1, taxonomyKey_1) {
|
|
45557
|
+
return __awaiter$1(this, arguments, void 0, function* (namespace, taxonomyKey, optionalsInput = {}) {
|
|
45558
|
+
const optionals = new DeleteMetadataTaxonomyOptionals({
|
|
45559
|
+
headers: optionalsInput.headers,
|
|
45560
|
+
cancellationToken: optionalsInput.cancellationToken,
|
|
45561
|
+
});
|
|
45562
|
+
const headers = optionals.headers;
|
|
45563
|
+
const cancellationToken = optionals.cancellationToken;
|
|
45564
|
+
const headersMap = prepareParams(Object.assign({}, headers.extraHeaders));
|
|
45565
|
+
yield this.networkSession.networkClient.fetch(new FetchOptions({
|
|
45566
|
+
url: ''.concat(this.networkSession.baseUrls.baseUrl, '/2.0/metadata_taxonomies/', toString(namespace), '/', toString(taxonomyKey)),
|
|
45567
|
+
method: 'DELETE',
|
|
45568
|
+
headers: headersMap,
|
|
45569
|
+
responseFormat: 'no_content',
|
|
45570
|
+
auth: this.auth,
|
|
45571
|
+
networkSession: this.networkSession,
|
|
45572
|
+
cancellationToken: cancellationToken,
|
|
45573
|
+
}));
|
|
45574
|
+
return void 0;
|
|
45575
|
+
});
|
|
45576
|
+
}
|
|
45577
|
+
/**
|
|
45578
|
+
* Creates new metadata taxonomy levels.
|
|
45579
|
+
* @param {string} namespace The namespace of the metadata taxonomy.
|
|
45580
|
+
Example: "enterprise_123456"
|
|
45581
|
+
* @param {string} taxonomyKey The key of the metadata taxonomy.
|
|
45582
|
+
Example: "geography"
|
|
45583
|
+
* @param {readonly MetadataTaxonomyLevel[]} requestBody Request body of createMetadataTaxonomyLevel method
|
|
45584
|
+
* @param {CreateMetadataTaxonomyLevelOptionalsInput} optionalsInput
|
|
45585
|
+
* @returns {Promise<MetadataTaxonomyLevels>}
|
|
45586
|
+
*/
|
|
45587
|
+
createMetadataTaxonomyLevel(namespace_1, taxonomyKey_1, requestBody_1) {
|
|
45588
|
+
return __awaiter$1(this, arguments, void 0, function* (namespace, taxonomyKey, requestBody, optionalsInput = {}) {
|
|
45589
|
+
const optionals = new CreateMetadataTaxonomyLevelOptionals({
|
|
45590
|
+
headers: optionalsInput.headers,
|
|
45591
|
+
cancellationToken: optionalsInput.cancellationToken,
|
|
45592
|
+
});
|
|
45593
|
+
const headers = optionals.headers;
|
|
45594
|
+
const cancellationToken = optionals.cancellationToken;
|
|
45595
|
+
const headersMap = prepareParams(Object.assign({}, headers.extraHeaders));
|
|
45596
|
+
const response = yield this.networkSession.networkClient.fetch(new FetchOptions({
|
|
45597
|
+
url: ''.concat(this.networkSession.baseUrls.baseUrl, '/2.0/metadata_taxonomies/', toString(namespace), '/', toString(taxonomyKey), '/levels'),
|
|
45598
|
+
method: 'POST',
|
|
45599
|
+
headers: headersMap,
|
|
45600
|
+
data: requestBody.map(serializeMetadataTaxonomyLevel),
|
|
45601
|
+
contentType: 'application/json',
|
|
45602
|
+
responseFormat: 'json',
|
|
45603
|
+
auth: this.auth,
|
|
45604
|
+
networkSession: this.networkSession,
|
|
45605
|
+
cancellationToken: cancellationToken,
|
|
45606
|
+
}));
|
|
45607
|
+
return Object.assign(Object.assign({}, deserializeMetadataTaxonomyLevels(response.data)), { rawData: response.data });
|
|
45608
|
+
});
|
|
45609
|
+
}
|
|
45610
|
+
/**
|
|
45611
|
+
* Updates an existing metadata taxonomy level.
|
|
45612
|
+
* @param {string} namespace The namespace of the metadata taxonomy.
|
|
45613
|
+
Example: "enterprise_123456"
|
|
45614
|
+
* @param {string} taxonomyKey The key of the metadata taxonomy.
|
|
45615
|
+
Example: "geography"
|
|
45616
|
+
* @param {number} levelIndex The index of the metadata taxonomy level.
|
|
45617
|
+
Example: 1
|
|
45618
|
+
* @param {UpdateMetadataTaxonomyLevelByIdRequestBody} requestBody Request body of updateMetadataTaxonomyLevelById method
|
|
45619
|
+
* @param {UpdateMetadataTaxonomyLevelByIdOptionalsInput} optionalsInput
|
|
45620
|
+
* @returns {Promise<MetadataTaxonomyLevel>}
|
|
45621
|
+
*/
|
|
45622
|
+
updateMetadataTaxonomyLevelById(namespace_1, taxonomyKey_1, levelIndex_1, requestBody_1) {
|
|
45623
|
+
return __awaiter$1(this, arguments, void 0, function* (namespace, taxonomyKey, levelIndex, requestBody, optionalsInput = {}) {
|
|
45624
|
+
const optionals = new UpdateMetadataTaxonomyLevelByIdOptionals({
|
|
45625
|
+
headers: optionalsInput.headers,
|
|
45626
|
+
cancellationToken: optionalsInput.cancellationToken,
|
|
45627
|
+
});
|
|
45628
|
+
const headers = optionals.headers;
|
|
45629
|
+
const cancellationToken = optionals.cancellationToken;
|
|
45630
|
+
const headersMap = prepareParams(Object.assign({}, headers.extraHeaders));
|
|
45631
|
+
const response = yield this.networkSession.networkClient.fetch(new FetchOptions({
|
|
45632
|
+
url: ''.concat(this.networkSession.baseUrls.baseUrl, '/2.0/metadata_taxonomies/', toString(namespace), '/', toString(taxonomyKey), '/levels/', toString(levelIndex)),
|
|
45633
|
+
method: 'PATCH',
|
|
45634
|
+
headers: headersMap,
|
|
45635
|
+
data: serializeUpdateMetadataTaxonomyLevelByIdRequestBody(requestBody),
|
|
45636
|
+
contentType: 'application/json',
|
|
45637
|
+
responseFormat: 'json',
|
|
45638
|
+
auth: this.auth,
|
|
45639
|
+
networkSession: this.networkSession,
|
|
45640
|
+
cancellationToken: cancellationToken,
|
|
45641
|
+
}));
|
|
45642
|
+
return Object.assign(Object.assign({}, deserializeMetadataTaxonomyLevel(response.data)), { rawData: response.data });
|
|
45643
|
+
});
|
|
45644
|
+
}
|
|
45645
|
+
/**
|
|
45646
|
+
* Creates a new metadata taxonomy level and appends it to the existing levels.
|
|
45647
|
+
* If there are no levels defined yet, this will create the first level.
|
|
45648
|
+
* @param {string} namespace The namespace of the metadata taxonomy.
|
|
45649
|
+
Example: "enterprise_123456"
|
|
45650
|
+
* @param {string} taxonomyKey The key of the metadata taxonomy.
|
|
45651
|
+
Example: "geography"
|
|
45652
|
+
* @param {AddMetadataTaxonomyLevelRequestBody} requestBody Request body of addMetadataTaxonomyLevel method
|
|
45653
|
+
* @param {AddMetadataTaxonomyLevelOptionalsInput} optionalsInput
|
|
45654
|
+
* @returns {Promise<MetadataTaxonomyLevels>}
|
|
45655
|
+
*/
|
|
45656
|
+
addMetadataTaxonomyLevel(namespace_1, taxonomyKey_1, requestBody_1) {
|
|
45657
|
+
return __awaiter$1(this, arguments, void 0, function* (namespace, taxonomyKey, requestBody, optionalsInput = {}) {
|
|
45658
|
+
const optionals = new AddMetadataTaxonomyLevelOptionals({
|
|
45659
|
+
headers: optionalsInput.headers,
|
|
45660
|
+
cancellationToken: optionalsInput.cancellationToken,
|
|
45661
|
+
});
|
|
45662
|
+
const headers = optionals.headers;
|
|
45663
|
+
const cancellationToken = optionals.cancellationToken;
|
|
45664
|
+
const headersMap = prepareParams(Object.assign({}, headers.extraHeaders));
|
|
45665
|
+
const response = yield this.networkSession.networkClient.fetch(new FetchOptions({
|
|
45666
|
+
url: ''.concat(this.networkSession.baseUrls.baseUrl, '/2.0/metadata_taxonomies/', toString(namespace), '/', toString(taxonomyKey), '/levels:append'),
|
|
45667
|
+
method: 'POST',
|
|
45668
|
+
headers: headersMap,
|
|
45669
|
+
data: serializeAddMetadataTaxonomyLevelRequestBody(requestBody),
|
|
45670
|
+
contentType: 'application/json',
|
|
45671
|
+
responseFormat: 'json',
|
|
45672
|
+
auth: this.auth,
|
|
45673
|
+
networkSession: this.networkSession,
|
|
45674
|
+
cancellationToken: cancellationToken,
|
|
45675
|
+
}));
|
|
45676
|
+
return Object.assign(Object.assign({}, deserializeMetadataTaxonomyLevels(response.data)), { rawData: response.data });
|
|
45677
|
+
});
|
|
45678
|
+
}
|
|
45679
|
+
/**
|
|
45680
|
+
* Deletes the last level of the metadata taxonomy.
|
|
45681
|
+
* @param {string} namespace The namespace of the metadata taxonomy.
|
|
45682
|
+
Example: "enterprise_123456"
|
|
45683
|
+
* @param {string} taxonomyKey The key of the metadata taxonomy.
|
|
45684
|
+
Example: "geography"
|
|
45685
|
+
* @param {DeleteMetadataTaxonomyLevelOptionalsInput} optionalsInput
|
|
45686
|
+
* @returns {Promise<MetadataTaxonomyLevels>}
|
|
45687
|
+
*/
|
|
45688
|
+
deleteMetadataTaxonomyLevel(namespace_1, taxonomyKey_1) {
|
|
45689
|
+
return __awaiter$1(this, arguments, void 0, function* (namespace, taxonomyKey, optionalsInput = {}) {
|
|
45690
|
+
const optionals = new DeleteMetadataTaxonomyLevelOptionals({
|
|
45691
|
+
headers: optionalsInput.headers,
|
|
45692
|
+
cancellationToken: optionalsInput.cancellationToken,
|
|
45693
|
+
});
|
|
45694
|
+
const headers = optionals.headers;
|
|
45695
|
+
const cancellationToken = optionals.cancellationToken;
|
|
45696
|
+
const headersMap = prepareParams(Object.assign({}, headers.extraHeaders));
|
|
45697
|
+
const response = yield this.networkSession.networkClient.fetch(new FetchOptions({
|
|
45698
|
+
url: ''.concat(this.networkSession.baseUrls.baseUrl, '/2.0/metadata_taxonomies/', toString(namespace), '/', toString(taxonomyKey), '/levels:trim'),
|
|
45699
|
+
method: 'POST',
|
|
45700
|
+
headers: headersMap,
|
|
45701
|
+
responseFormat: 'json',
|
|
45702
|
+
auth: this.auth,
|
|
45703
|
+
networkSession: this.networkSession,
|
|
45704
|
+
cancellationToken: cancellationToken,
|
|
45705
|
+
}));
|
|
45706
|
+
return Object.assign(Object.assign({}, deserializeMetadataTaxonomyLevels(response.data)), { rawData: response.data });
|
|
45707
|
+
});
|
|
45708
|
+
}
|
|
45709
|
+
/**
|
|
45710
|
+
* Used to retrieve metadata taxonomy nodes based on the parameters specified.
|
|
45711
|
+
* Results are sorted in lexicographic order unless a `query` parameter is passed.
|
|
45712
|
+
* With a `query` parameter specified, results are sorted in order of relevance.
|
|
45713
|
+
* @param {string} namespace The namespace of the metadata taxonomy.
|
|
45714
|
+
Example: "enterprise_123456"
|
|
45715
|
+
* @param {string} taxonomyKey The key of the metadata taxonomy.
|
|
45716
|
+
Example: "geography"
|
|
45717
|
+
* @param {GetMetadataTaxonomyNodesOptionalsInput} optionalsInput
|
|
45718
|
+
* @returns {Promise<MetadataTaxonomyNodes>}
|
|
45719
|
+
*/
|
|
45720
|
+
getMetadataTaxonomyNodes(namespace_1, taxonomyKey_1) {
|
|
45721
|
+
return __awaiter$1(this, arguments, void 0, function* (namespace, taxonomyKey, optionalsInput = {}) {
|
|
45722
|
+
const optionals = new GetMetadataTaxonomyNodesOptionals({
|
|
45723
|
+
queryParams: optionalsInput.queryParams,
|
|
45724
|
+
headers: optionalsInput.headers,
|
|
45725
|
+
cancellationToken: optionalsInput.cancellationToken,
|
|
45726
|
+
});
|
|
45727
|
+
const queryParams = optionals.queryParams;
|
|
45728
|
+
const headers = optionals.headers;
|
|
45729
|
+
const cancellationToken = optionals.cancellationToken;
|
|
45730
|
+
const queryParamsMap = prepareParams({
|
|
45731
|
+
['level']: queryParams.level
|
|
45732
|
+
? queryParams.level.map(toString).join(',')
|
|
45733
|
+
: undefined,
|
|
45734
|
+
['parent']: queryParams.parent
|
|
45735
|
+
? queryParams.parent.map(toString).join(',')
|
|
45736
|
+
: undefined,
|
|
45737
|
+
['ancestor']: queryParams.ancestor
|
|
45738
|
+
? queryParams.ancestor.map(toString).join(',')
|
|
45739
|
+
: undefined,
|
|
45740
|
+
['query']: toString(queryParams.query),
|
|
45741
|
+
['include-total-result-count']: toString(queryParams.includeTotalResultCount),
|
|
45742
|
+
['marker']: toString(queryParams.marker),
|
|
45743
|
+
['limit']: toString(queryParams.limit),
|
|
45744
|
+
});
|
|
45745
|
+
const headersMap = prepareParams(Object.assign({}, headers.extraHeaders));
|
|
45746
|
+
const response = yield this.networkSession.networkClient.fetch(new FetchOptions({
|
|
45747
|
+
url: ''.concat(this.networkSession.baseUrls.baseUrl, '/2.0/metadata_taxonomies/', toString(namespace), '/', toString(taxonomyKey), '/nodes'),
|
|
45748
|
+
method: 'GET',
|
|
45749
|
+
params: queryParamsMap,
|
|
45750
|
+
headers: headersMap,
|
|
45751
|
+
responseFormat: 'json',
|
|
45752
|
+
auth: this.auth,
|
|
45753
|
+
networkSession: this.networkSession,
|
|
45754
|
+
cancellationToken: cancellationToken,
|
|
45755
|
+
}));
|
|
45756
|
+
return Object.assign(Object.assign({}, deserializeMetadataTaxonomyNodes(response.data)), { rawData: response.data });
|
|
45757
|
+
});
|
|
45758
|
+
}
|
|
45759
|
+
/**
|
|
45760
|
+
* Creates a new metadata taxonomy node.
|
|
45761
|
+
* @param {string} namespace The namespace of the metadata taxonomy.
|
|
45762
|
+
Example: "enterprise_123456"
|
|
45763
|
+
* @param {string} taxonomyKey The key of the metadata taxonomy.
|
|
45764
|
+
Example: "geography"
|
|
45765
|
+
* @param {CreateMetadataTaxonomyNodeRequestBody} requestBody Request body of createMetadataTaxonomyNode method
|
|
45766
|
+
* @param {CreateMetadataTaxonomyNodeOptionalsInput} optionalsInput
|
|
45767
|
+
* @returns {Promise<MetadataTaxonomyNode>}
|
|
45768
|
+
*/
|
|
45769
|
+
createMetadataTaxonomyNode(namespace_1, taxonomyKey_1, requestBody_1) {
|
|
45770
|
+
return __awaiter$1(this, arguments, void 0, function* (namespace, taxonomyKey, requestBody, optionalsInput = {}) {
|
|
45771
|
+
const optionals = new CreateMetadataTaxonomyNodeOptionals({
|
|
45772
|
+
headers: optionalsInput.headers,
|
|
45773
|
+
cancellationToken: optionalsInput.cancellationToken,
|
|
45774
|
+
});
|
|
45775
|
+
const headers = optionals.headers;
|
|
45776
|
+
const cancellationToken = optionals.cancellationToken;
|
|
45777
|
+
const headersMap = prepareParams(Object.assign({}, headers.extraHeaders));
|
|
45778
|
+
const response = yield this.networkSession.networkClient.fetch(new FetchOptions({
|
|
45779
|
+
url: ''.concat(this.networkSession.baseUrls.baseUrl, '/2.0/metadata_taxonomies/', toString(namespace), '/', toString(taxonomyKey), '/nodes'),
|
|
45780
|
+
method: 'POST',
|
|
45781
|
+
headers: headersMap,
|
|
45782
|
+
data: serializeCreateMetadataTaxonomyNodeRequestBody(requestBody),
|
|
45783
|
+
contentType: 'application/json',
|
|
45784
|
+
responseFormat: 'json',
|
|
45785
|
+
auth: this.auth,
|
|
45786
|
+
networkSession: this.networkSession,
|
|
45787
|
+
cancellationToken: cancellationToken,
|
|
45788
|
+
}));
|
|
45789
|
+
return Object.assign(Object.assign({}, deserializeMetadataTaxonomyNode(response.data)), { rawData: response.data });
|
|
45790
|
+
});
|
|
45791
|
+
}
|
|
45792
|
+
/**
|
|
45793
|
+
* Retrieves a metadata taxonomy node by its identifier.
|
|
45794
|
+
* @param {string} namespace The namespace of the metadata taxonomy.
|
|
45795
|
+
Example: "enterprise_123456"
|
|
45796
|
+
* @param {string} taxonomyKey The key of the metadata taxonomy.
|
|
45797
|
+
Example: "geography"
|
|
45798
|
+
* @param {string} nodeId The identifier of the metadata taxonomy node.
|
|
45799
|
+
Example: "14d3d433-c77f-49c5-b146-9dea370f6e32"
|
|
45800
|
+
* @param {GetMetadataTaxonomyNodeByIdOptionalsInput} optionalsInput
|
|
45801
|
+
* @returns {Promise<MetadataTaxonomyNode>}
|
|
45802
|
+
*/
|
|
45803
|
+
getMetadataTaxonomyNodeById(namespace_1, taxonomyKey_1, nodeId_1) {
|
|
45804
|
+
return __awaiter$1(this, arguments, void 0, function* (namespace, taxonomyKey, nodeId, optionalsInput = {}) {
|
|
45805
|
+
const optionals = new GetMetadataTaxonomyNodeByIdOptionals({
|
|
45806
|
+
headers: optionalsInput.headers,
|
|
45807
|
+
cancellationToken: optionalsInput.cancellationToken,
|
|
45808
|
+
});
|
|
45809
|
+
const headers = optionals.headers;
|
|
45810
|
+
const cancellationToken = optionals.cancellationToken;
|
|
45811
|
+
const headersMap = prepareParams(Object.assign({}, headers.extraHeaders));
|
|
45812
|
+
const response = yield this.networkSession.networkClient.fetch(new FetchOptions({
|
|
45813
|
+
url: ''.concat(this.networkSession.baseUrls.baseUrl, '/2.0/metadata_taxonomies/', toString(namespace), '/', toString(taxonomyKey), '/nodes/', toString(nodeId)),
|
|
45814
|
+
method: 'GET',
|
|
45815
|
+
headers: headersMap,
|
|
45816
|
+
responseFormat: 'json',
|
|
45817
|
+
auth: this.auth,
|
|
45818
|
+
networkSession: this.networkSession,
|
|
45819
|
+
cancellationToken: cancellationToken,
|
|
45820
|
+
}));
|
|
45821
|
+
return Object.assign(Object.assign({}, deserializeMetadataTaxonomyNode(response.data)), { rawData: response.data });
|
|
45822
|
+
});
|
|
45823
|
+
}
|
|
45824
|
+
/**
|
|
45825
|
+
* Updates an existing metadata taxonomy node.
|
|
45826
|
+
* @param {string} namespace The namespace of the metadata taxonomy.
|
|
45827
|
+
Example: "enterprise_123456"
|
|
45828
|
+
* @param {string} taxonomyKey The key of the metadata taxonomy.
|
|
45829
|
+
Example: "geography"
|
|
45830
|
+
* @param {string} nodeId The identifier of the metadata taxonomy node.
|
|
45831
|
+
Example: "14d3d433-c77f-49c5-b146-9dea370f6e32"
|
|
45832
|
+
* @param {UpdateMetadataTaxonomyNodeOptionalsInput} optionalsInput
|
|
45833
|
+
* @returns {Promise<MetadataTaxonomyNode>}
|
|
45834
|
+
*/
|
|
45835
|
+
updateMetadataTaxonomyNode(namespace_1, taxonomyKey_1, nodeId_1) {
|
|
45836
|
+
return __awaiter$1(this, arguments, void 0, function* (namespace, taxonomyKey, nodeId, optionalsInput = {}) {
|
|
45837
|
+
const optionals = new UpdateMetadataTaxonomyNodeOptionals({
|
|
45838
|
+
requestBody: optionalsInput.requestBody,
|
|
45839
|
+
headers: optionalsInput.headers,
|
|
45840
|
+
cancellationToken: optionalsInput.cancellationToken,
|
|
45841
|
+
});
|
|
45842
|
+
const requestBody = optionals.requestBody;
|
|
45843
|
+
const headers = optionals.headers;
|
|
45844
|
+
const cancellationToken = optionals.cancellationToken;
|
|
45845
|
+
const headersMap = prepareParams(Object.assign({}, headers.extraHeaders));
|
|
45846
|
+
const response = yield this.networkSession.networkClient.fetch(new FetchOptions({
|
|
45847
|
+
url: ''.concat(this.networkSession.baseUrls.baseUrl, '/2.0/metadata_taxonomies/', toString(namespace), '/', toString(taxonomyKey), '/nodes/', toString(nodeId)),
|
|
45848
|
+
method: 'PATCH',
|
|
45849
|
+
headers: headersMap,
|
|
45850
|
+
data: serializeUpdateMetadataTaxonomyNodeRequestBody(requestBody),
|
|
45851
|
+
contentType: 'application/json',
|
|
45852
|
+
responseFormat: 'json',
|
|
45853
|
+
auth: this.auth,
|
|
45854
|
+
networkSession: this.networkSession,
|
|
45855
|
+
cancellationToken: cancellationToken,
|
|
45856
|
+
}));
|
|
45857
|
+
return Object.assign(Object.assign({}, deserializeMetadataTaxonomyNode(response.data)), { rawData: response.data });
|
|
45858
|
+
});
|
|
45859
|
+
}
|
|
45860
|
+
/**
|
|
45861
|
+
* Delete a metadata taxonomy node.
|
|
45862
|
+
* This deletion is permanent and cannot be reverted.
|
|
45863
|
+
* Only metadata taxonomy nodes without any children can be deleted.
|
|
45864
|
+
* @param {string} namespace The namespace of the metadata taxonomy.
|
|
45865
|
+
Example: "enterprise_123456"
|
|
45866
|
+
* @param {string} taxonomyKey The key of the metadata taxonomy.
|
|
45867
|
+
Example: "geography"
|
|
45868
|
+
* @param {string} nodeId The identifier of the metadata taxonomy node.
|
|
45869
|
+
Example: "14d3d433-c77f-49c5-b146-9dea370f6e32"
|
|
45870
|
+
* @param {DeleteMetadataTaxonomyNodeOptionalsInput} optionalsInput
|
|
45871
|
+
* @returns {Promise<undefined>}
|
|
45872
|
+
*/
|
|
45873
|
+
deleteMetadataTaxonomyNode(namespace_1, taxonomyKey_1, nodeId_1) {
|
|
45874
|
+
return __awaiter$1(this, arguments, void 0, function* (namespace, taxonomyKey, nodeId, optionalsInput = {}) {
|
|
45875
|
+
const optionals = new DeleteMetadataTaxonomyNodeOptionals({
|
|
45876
|
+
headers: optionalsInput.headers,
|
|
45877
|
+
cancellationToken: optionalsInput.cancellationToken,
|
|
45878
|
+
});
|
|
45879
|
+
const headers = optionals.headers;
|
|
45880
|
+
const cancellationToken = optionals.cancellationToken;
|
|
45881
|
+
const headersMap = prepareParams(Object.assign({}, headers.extraHeaders));
|
|
45882
|
+
yield this.networkSession.networkClient.fetch(new FetchOptions({
|
|
45883
|
+
url: ''.concat(this.networkSession.baseUrls.baseUrl, '/2.0/metadata_taxonomies/', toString(namespace), '/', toString(taxonomyKey), '/nodes/', toString(nodeId)),
|
|
45884
|
+
method: 'DELETE',
|
|
45885
|
+
headers: headersMap,
|
|
45886
|
+
responseFormat: 'no_content',
|
|
45887
|
+
auth: this.auth,
|
|
45888
|
+
networkSession: this.networkSession,
|
|
45889
|
+
cancellationToken: cancellationToken,
|
|
45890
|
+
}));
|
|
45891
|
+
return void 0;
|
|
45892
|
+
});
|
|
45893
|
+
}
|
|
45894
|
+
/**
|
|
45895
|
+
* Used to retrieve metadata taxonomy nodes which are available for the taxonomy field based
|
|
45896
|
+
* on its configuration and the parameters specified.
|
|
45897
|
+
* Results are sorted in lexicographic order unless a `query` parameter is passed.
|
|
45898
|
+
* With a `query` parameter specified, results are sorted in order of relevance.
|
|
45899
|
+
* @param {string} namespace The namespace of the metadata taxonomy.
|
|
45900
|
+
Example: "enterprise_123456"
|
|
45901
|
+
* @param {string} templateKey The name of the metadata template.
|
|
45902
|
+
Example: "properties"
|
|
45903
|
+
* @param {string} fieldKey The key of the metadata taxonomy field in the template.
|
|
45904
|
+
Example: "geography"
|
|
45905
|
+
* @param {GetMetadataTemplateFieldOptionsOptionalsInput} optionalsInput
|
|
45906
|
+
* @returns {Promise<MetadataTaxonomyNodes>}
|
|
45907
|
+
*/
|
|
45908
|
+
getMetadataTemplateFieldOptions(namespace_1, templateKey_1, fieldKey_1) {
|
|
45909
|
+
return __awaiter$1(this, arguments, void 0, function* (namespace, templateKey, fieldKey, optionalsInput = {}) {
|
|
45910
|
+
const optionals = new GetMetadataTemplateFieldOptionsOptionals({
|
|
45911
|
+
queryParams: optionalsInput.queryParams,
|
|
45912
|
+
headers: optionalsInput.headers,
|
|
45913
|
+
cancellationToken: optionalsInput.cancellationToken,
|
|
45914
|
+
});
|
|
45915
|
+
const queryParams = optionals.queryParams;
|
|
45916
|
+
const headers = optionals.headers;
|
|
45917
|
+
const cancellationToken = optionals.cancellationToken;
|
|
45918
|
+
const queryParamsMap = prepareParams({
|
|
45919
|
+
['level']: queryParams.level
|
|
45920
|
+
? queryParams.level.map(toString).join(',')
|
|
45921
|
+
: undefined,
|
|
45922
|
+
['parent']: queryParams.parent
|
|
45923
|
+
? queryParams.parent.map(toString).join(',')
|
|
45924
|
+
: undefined,
|
|
45925
|
+
['ancestor']: queryParams.ancestor
|
|
45926
|
+
? queryParams.ancestor.map(toString).join(',')
|
|
45927
|
+
: undefined,
|
|
45928
|
+
['query']: toString(queryParams.query),
|
|
45929
|
+
['include-total-result-count']: toString(queryParams.includeTotalResultCount),
|
|
45930
|
+
['only-selectable-options']: toString(queryParams.onlySelectableOptions),
|
|
45931
|
+
['marker']: toString(queryParams.marker),
|
|
45932
|
+
['limit']: toString(queryParams.limit),
|
|
45933
|
+
});
|
|
45934
|
+
const headersMap = prepareParams(Object.assign({}, headers.extraHeaders));
|
|
45935
|
+
const response = yield this.networkSession.networkClient.fetch(new FetchOptions({
|
|
45936
|
+
url: ''.concat(this.networkSession.baseUrls.baseUrl, '/2.0/metadata_templates/', toString(namespace), '/', toString(templateKey), '/fields/', toString(fieldKey), '/options'),
|
|
45937
|
+
method: 'GET',
|
|
45938
|
+
params: queryParamsMap,
|
|
45939
|
+
headers: headersMap,
|
|
45940
|
+
responseFormat: 'json',
|
|
45941
|
+
auth: this.auth,
|
|
45942
|
+
networkSession: this.networkSession,
|
|
45943
|
+
cancellationToken: cancellationToken,
|
|
45944
|
+
}));
|
|
45945
|
+
return Object.assign(Object.assign({}, deserializeMetadataTaxonomyNodes(response.data)), { rawData: response.data });
|
|
45946
|
+
});
|
|
45947
|
+
}
|
|
45948
|
+
}
|
|
45949
|
+
function serializeCreateMetadataTaxonomyRequestBody(val) {
|
|
45950
|
+
return {
|
|
45951
|
+
['key']: val.key,
|
|
45952
|
+
['displayName']: val.displayName,
|
|
45953
|
+
['namespace']: val.namespace,
|
|
45954
|
+
};
|
|
45955
|
+
}
|
|
45956
|
+
function serializeUpdateMetadataTaxonomyRequestBody(val) {
|
|
45957
|
+
return { ['displayName']: val.displayName };
|
|
45958
|
+
}
|
|
45959
|
+
function serializeUpdateMetadataTaxonomyLevelByIdRequestBody(val) {
|
|
45960
|
+
return { ['displayName']: val.displayName, ['description']: val.description };
|
|
45961
|
+
}
|
|
45962
|
+
function serializeAddMetadataTaxonomyLevelRequestBody(val) {
|
|
45963
|
+
return { ['displayName']: val.displayName, ['description']: val.description };
|
|
45964
|
+
}
|
|
45965
|
+
function serializeCreateMetadataTaxonomyNodeRequestBody(val) {
|
|
45966
|
+
return {
|
|
45967
|
+
['displayName']: val.displayName,
|
|
45968
|
+
['level']: val.level,
|
|
45969
|
+
['parentId']: val.parentId,
|
|
45970
|
+
};
|
|
45971
|
+
}
|
|
45972
|
+
function serializeUpdateMetadataTaxonomyNodeRequestBody(val) {
|
|
45973
|
+
return { ['displayName']: val.displayName };
|
|
45974
|
+
}
|
|
45975
|
+
|
|
44187
45976
|
function serializeFileReferenceV2025R0TypeField(val) {
|
|
44188
45977
|
return val;
|
|
44189
45978
|
}
|
|
@@ -49897,7 +51686,7 @@
|
|
|
49897
51686
|
/**
|
|
49898
51687
|
* Retrieves archives for an enterprise.
|
|
49899
51688
|
*
|
|
49900
|
-
* To learn more about the archive APIs, see the [Archive API Guide](
|
|
51689
|
+
* To learn more about the archive APIs, see the [Archive API Guide](https://developer.box.com/guides/archives).
|
|
49901
51690
|
* @param {GetArchivesV2025R0QueryParams} queryParams Query parameters of getArchivesV2025R0 method
|
|
49902
51691
|
* @param {GetArchivesV2025R0HeadersInput} headersInput Headers of getArchivesV2025R0 method
|
|
49903
51692
|
* @param {CancellationToken} cancellationToken Token used for request cancellation.
|
|
@@ -49930,7 +51719,7 @@
|
|
|
49930
51719
|
/**
|
|
49931
51720
|
* Creates an archive.
|
|
49932
51721
|
*
|
|
49933
|
-
* To learn more about the archive APIs, see the [Archive API Guide](
|
|
51722
|
+
* To learn more about the archive APIs, see the [Archive API Guide](https://developer.box.com/guides/archives).
|
|
49934
51723
|
* @param {CreateArchiveV2025R0RequestBody} requestBody Request body of createArchiveV2025R0 method
|
|
49935
51724
|
* @param {CreateArchiveV2025R0OptionalsInput} optionalsInput
|
|
49936
51725
|
* @returns {Promise<ArchiveV2025R0>}
|
|
@@ -49961,7 +51750,7 @@
|
|
|
49961
51750
|
/**
|
|
49962
51751
|
* Permanently deletes an archive.
|
|
49963
51752
|
*
|
|
49964
|
-
* To learn more about the archive APIs, see the [Archive API Guide](
|
|
51753
|
+
* To learn more about the archive APIs, see the [Archive API Guide](https://developer.box.com/guides/archives).
|
|
49965
51754
|
* @param {string} archiveId The ID of the archive.
|
|
49966
51755
|
Example: "982312"
|
|
49967
51756
|
* @param {DeleteArchiveByIdV2025R0OptionalsInput} optionalsInput
|
|
@@ -49991,7 +51780,7 @@
|
|
|
49991
51780
|
/**
|
|
49992
51781
|
* Updates an archive.
|
|
49993
51782
|
*
|
|
49994
|
-
* To learn more about the archive APIs, see the [Archive API Guide](
|
|
51783
|
+
* To learn more about the archive APIs, see the [Archive API Guide](https://developer.box.com/guides/archives).
|
|
49995
51784
|
* @param {string} archiveId The ID of the archive.
|
|
49996
51785
|
Example: "982312"
|
|
49997
51786
|
* @param {UpdateArchiveByIdV2025R0OptionalsInput} optionalsInput
|
|
@@ -50494,6 +52283,10 @@
|
|
|
50494
52283
|
auth: this.auth,
|
|
50495
52284
|
networkSession: this.networkSession,
|
|
50496
52285
|
});
|
|
52286
|
+
this.metadataTaxonomies = new MetadataTaxonomiesManager({
|
|
52287
|
+
auth: this.auth,
|
|
52288
|
+
networkSession: this.networkSession,
|
|
52289
|
+
});
|
|
50497
52290
|
this.docgenTemplate = new DocgenTemplateManager({
|
|
50498
52291
|
auth: this.auth,
|
|
50499
52292
|
networkSession: this.networkSession,
|