box-node-sdk 4.2.0 → 4.3.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/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/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 +3 -3
- package/lib/sdk-gen/managers/folders.d.ts.map +1 -1
- package/lib/sdk-gen/managers/folders.js +2 -2
- 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.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.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.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/index.d.ts +22 -3
- package/lib/sdk-gen/schemas/index.d.ts.map +1 -1
- package/lib/sdk-gen/schemas/index.js +22 -3
- package/lib/sdk-gen/schemas/index.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/signRequestCreateRequest.d.ts +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 +1723 -37
- 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/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/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 +3 -3
- package/lib-esm/sdk-gen/managers/folders.js +2 -2
- 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.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.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.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/index.d.ts +22 -3
- package/lib-esm/sdk-gen/schemas/index.js +22 -3
- package/lib-esm/sdk-gen/schemas/index.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/signRequestCreateRequest.d.ts +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 +1 -1
package/lib-esm/bundle.js
CHANGED
|
@@ -3622,7 +3622,7 @@
|
|
|
3622
3622
|
var browserExports = browser.exports;
|
|
3623
3623
|
var nodeFetch = /*@__PURE__*/getDefaultExportFromCjs(browserExports);
|
|
3624
3624
|
|
|
3625
|
-
const sdkVersion = '4.
|
|
3625
|
+
const sdkVersion = '4.3.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
|
}
|
|
@@ -8443,10 +8445,10 @@
|
|
|
8443
8445
|
* trash can it be retrieved with this API call. If instead one of
|
|
8444
8446
|
* its parent folders was moved to the trash, only that folder
|
|
8445
8447
|
* can be inspected using the
|
|
8446
|
-
* [`GET /folders/:id/trash`](
|
|
8448
|
+
* [`GET /folders/:id/trash`](https://developer.box.com/reference/get-folders-id-trash) API.
|
|
8447
8449
|
*
|
|
8448
8450
|
* To list all items that have been moved to the trash, please
|
|
8449
|
-
* use the [`GET /folders/trash/items`](
|
|
8451
|
+
* use the [`GET /folders/trash/items`](https://developer.box.com/reference/get-folders-trash-items/)
|
|
8450
8452
|
* API.
|
|
8451
8453
|
* @param {string} fileId The unique identifier that represents a file.
|
|
8452
8454
|
|
|
@@ -10096,7 +10098,7 @@
|
|
|
10096
10098
|
* This allows to always upload your content to the closest Box data center and can significantly improve upload speed.
|
|
10097
10099
|
* Return information about an upload session.
|
|
10098
10100
|
*
|
|
10099
|
-
* The actual endpoint URL is returned by the [`Create upload session`](
|
|
10101
|
+
* The actual endpoint URL is returned by the [`Create upload session`](https://developer.box.com/reference/post-files-upload-sessions) endpoint.
|
|
10100
10102
|
* @param {string} url URL of getFileUploadSessionById method
|
|
10101
10103
|
* @param {GetFileUploadSessionByUrlOptionalsInput} optionalsInput
|
|
10102
10104
|
* @returns {Promise<UploadSession>}
|
|
@@ -10125,7 +10127,7 @@
|
|
|
10125
10127
|
/**
|
|
10126
10128
|
* Return information about an upload session.
|
|
10127
10129
|
*
|
|
10128
|
-
* The actual endpoint URL is returned by the [`Create upload session`](
|
|
10130
|
+
* The actual endpoint URL is returned by the [`Create upload session`](https://developer.box.com/reference/post-files-upload-sessions) endpoint.
|
|
10129
10131
|
* @param {string} uploadSessionId The ID of the upload session.
|
|
10130
10132
|
Example: "D5E3F7A"
|
|
10131
10133
|
* @param {GetFileUploadSessionByIdOptionalsInput} optionalsInput
|
|
@@ -10157,8 +10159,8 @@
|
|
|
10157
10159
|
* This allows to always upload your content to the closest Box data center and can significantly improve upload speed.
|
|
10158
10160
|
* Uploads a chunk of a file for an upload session.
|
|
10159
10161
|
*
|
|
10160
|
-
* The actual endpoint URL is returned by the [`Create upload session`](
|
|
10161
|
-
* and [`Get upload session`](
|
|
10162
|
+
* The actual endpoint URL is returned by the [`Create upload session`](https://developer.box.com/reference/post-files-upload-sessions)
|
|
10163
|
+
* and [`Get upload session`](https://developer.box.com/reference/get-files-upload-sessions-id) endpoints.
|
|
10162
10164
|
* @param {string} url URL of uploadFilePart method
|
|
10163
10165
|
* @param {ByteStream} requestBody Request body of uploadFilePart method
|
|
10164
10166
|
* @param {UploadFilePartByUrlHeadersInput} headersInput Headers of uploadFilePart method
|
|
@@ -10197,8 +10199,8 @@
|
|
|
10197
10199
|
/**
|
|
10198
10200
|
* Uploads a chunk of a file for an upload session.
|
|
10199
10201
|
*
|
|
10200
|
-
* The actual endpoint URL is returned by the [`Create upload session`](
|
|
10201
|
-
* and [`Get upload session`](
|
|
10202
|
+
* The actual endpoint URL is returned by the [`Create upload session`](https://developer.box.com/reference/post-files-upload-sessions)
|
|
10203
|
+
* and [`Get upload session`](https://developer.box.com/reference/get-files-upload-sessions-id) endpoints.
|
|
10202
10204
|
* @param {string} uploadSessionId The ID of the upload session.
|
|
10203
10205
|
Example: "D5E3F7A"
|
|
10204
10206
|
* @param {ByteStream} requestBody Request body of uploadFilePart method
|
|
@@ -10242,8 +10244,8 @@
|
|
|
10242
10244
|
*
|
|
10243
10245
|
* This cannot be reversed.
|
|
10244
10246
|
*
|
|
10245
|
-
* The actual endpoint URL is returned by the [`Create upload session`](
|
|
10246
|
-
* and [`Get upload session`](
|
|
10247
|
+
* The actual endpoint URL is returned by the [`Create upload session`](https://developer.box.com/reference/post-files-upload-sessions)
|
|
10248
|
+
* and [`Get upload session`](https://developer.box.com/reference/get-files-upload-sessions-id) endpoints.
|
|
10247
10249
|
* @param {string} url URL of deleteFileUploadSessionById method
|
|
10248
10250
|
* @param {DeleteFileUploadSessionByUrlOptionalsInput} optionalsInput
|
|
10249
10251
|
* @returns {Promise<undefined>}
|
|
@@ -10274,8 +10276,8 @@
|
|
|
10274
10276
|
*
|
|
10275
10277
|
* This cannot be reversed.
|
|
10276
10278
|
*
|
|
10277
|
-
* The actual endpoint URL is returned by the [`Create upload session`](
|
|
10278
|
-
* and [`Get upload session`](
|
|
10279
|
+
* The actual endpoint URL is returned by the [`Create upload session`](https://developer.box.com/reference/post-files-upload-sessions)
|
|
10280
|
+
* and [`Get upload session`](https://developer.box.com/reference/get-files-upload-sessions-id) endpoints.
|
|
10279
10281
|
* @param {string} uploadSessionId The ID of the upload session.
|
|
10280
10282
|
Example: "D5E3F7A"
|
|
10281
10283
|
* @param {DeleteFileUploadSessionByIdOptionalsInput} optionalsInput
|
|
@@ -10307,8 +10309,8 @@
|
|
|
10307
10309
|
* This allows to always upload your content to the closest Box data center and can significantly improve upload speed.
|
|
10308
10310
|
* Return a list of the chunks uploaded to the upload session so far.
|
|
10309
10311
|
*
|
|
10310
|
-
* The actual endpoint URL is returned by the [`Create upload session`](
|
|
10311
|
-
* and [`Get upload session`](
|
|
10312
|
+
* The actual endpoint URL is returned by the [`Create upload session`](https://developer.box.com/reference/post-files-upload-sessions)
|
|
10313
|
+
* and [`Get upload session`](https://developer.box.com/reference/get-files-upload-sessions-id) endpoints.
|
|
10312
10314
|
* @param {string} url URL of getFileUploadSessionParts method
|
|
10313
10315
|
* @param {GetFileUploadSessionPartsByUrlOptionalsInput} optionalsInput
|
|
10314
10316
|
* @returns {Promise<UploadParts>}
|
|
@@ -10344,8 +10346,8 @@
|
|
|
10344
10346
|
/**
|
|
10345
10347
|
* Return a list of the chunks uploaded to the upload session so far.
|
|
10346
10348
|
*
|
|
10347
|
-
* The actual endpoint URL is returned by the [`Create upload session`](
|
|
10348
|
-
* and [`Get upload session`](
|
|
10349
|
+
* The actual endpoint URL is returned by the [`Create upload session`](https://developer.box.com/reference/post-files-upload-sessions)
|
|
10350
|
+
* and [`Get upload session`](https://developer.box.com/reference/get-files-upload-sessions-id) endpoints.
|
|
10349
10351
|
* @param {string} uploadSessionId The ID of the upload session.
|
|
10350
10352
|
Example: "D5E3F7A"
|
|
10351
10353
|
* @param {GetFileUploadSessionPartsOptionalsInput} optionalsInput
|
|
@@ -10384,8 +10386,8 @@
|
|
|
10384
10386
|
* This allows to always upload your content to the closest Box data center and can significantly improve upload speed.
|
|
10385
10387
|
* Close an upload session and create a file from the uploaded chunks.
|
|
10386
10388
|
*
|
|
10387
|
-
* The actual endpoint URL is returned by the [`Create upload session`](
|
|
10388
|
-
* and [`Get upload session`](
|
|
10389
|
+
* The actual endpoint URL is returned by the [`Create upload session`](https://developer.box.com/reference/post-files-upload-sessions)
|
|
10390
|
+
* and [`Get upload session`](https://developer.box.com/reference/get-files-upload-sessions-id) endpoints.
|
|
10389
10391
|
* @param {string} url URL of createFileUploadSessionCommit method
|
|
10390
10392
|
* @param {CreateFileUploadSessionCommitByUrlRequestBody} requestBody Request body of createFileUploadSessionCommit method
|
|
10391
10393
|
* @param {CreateFileUploadSessionCommitByUrlHeadersInput} headersInput Headers of createFileUploadSessionCommit method
|
|
@@ -10429,8 +10431,8 @@
|
|
|
10429
10431
|
/**
|
|
10430
10432
|
* Close an upload session and create a file from the uploaded chunks.
|
|
10431
10433
|
*
|
|
10432
|
-
* The actual endpoint URL is returned by the [`Create upload session`](
|
|
10433
|
-
* and [`Get upload session`](
|
|
10434
|
+
* The actual endpoint URL is returned by the [`Create upload session`](https://developer.box.com/reference/post-files-upload-sessions)
|
|
10435
|
+
* and [`Get upload session`](https://developer.box.com/reference/get-files-upload-sessions-id) endpoints.
|
|
10434
10436
|
* @param {string} uploadSessionId The ID of the upload session.
|
|
10435
10437
|
Example: "D5E3F7A"
|
|
10436
10438
|
* @param {CreateFileUploadSessionCommitRequestBody} requestBody Request body of createFileUploadSessionCommit method
|
|
@@ -14014,8 +14016,12 @@
|
|
|
14014
14016
|
|
|
14015
14017
|
class GetFileMetadataOptionals {
|
|
14016
14018
|
constructor(fields) {
|
|
14019
|
+
this.queryParams = {};
|
|
14017
14020
|
this.headers = new GetFileMetadataHeaders({});
|
|
14018
14021
|
this.cancellationToken = void 0;
|
|
14022
|
+
if (fields.queryParams !== undefined) {
|
|
14023
|
+
this.queryParams = fields.queryParams;
|
|
14024
|
+
}
|
|
14019
14025
|
if (fields.headers !== undefined) {
|
|
14020
14026
|
this.headers = fields.headers;
|
|
14021
14027
|
}
|
|
@@ -14026,8 +14032,12 @@
|
|
|
14026
14032
|
}
|
|
14027
14033
|
class GetFileMetadataByIdOptionals {
|
|
14028
14034
|
constructor(fields) {
|
|
14035
|
+
this.queryParams = {};
|
|
14029
14036
|
this.headers = new GetFileMetadataByIdHeaders({});
|
|
14030
14037
|
this.cancellationToken = void 0;
|
|
14038
|
+
if (fields.queryParams !== undefined) {
|
|
14039
|
+
this.queryParams = fields.queryParams;
|
|
14040
|
+
}
|
|
14031
14041
|
if (fields.headers !== undefined) {
|
|
14032
14042
|
this.headers = fields.headers;
|
|
14033
14043
|
}
|
|
@@ -14148,15 +14158,19 @@
|
|
|
14148
14158
|
getFileMetadata(fileId_1) {
|
|
14149
14159
|
return __awaiter$1(this, arguments, void 0, function* (fileId, optionalsInput = {}) {
|
|
14150
14160
|
const optionals = new GetFileMetadataOptionals({
|
|
14161
|
+
queryParams: optionalsInput.queryParams,
|
|
14151
14162
|
headers: optionalsInput.headers,
|
|
14152
14163
|
cancellationToken: optionalsInput.cancellationToken,
|
|
14153
14164
|
});
|
|
14165
|
+
const queryParams = optionals.queryParams;
|
|
14154
14166
|
const headers = optionals.headers;
|
|
14155
14167
|
const cancellationToken = optionals.cancellationToken;
|
|
14168
|
+
const queryParamsMap = prepareParams({ ['view']: toString(queryParams.view) });
|
|
14156
14169
|
const headersMap = prepareParams(Object.assign({}, headers.extraHeaders));
|
|
14157
14170
|
const response = yield this.networkSession.networkClient.fetch(new FetchOptions({
|
|
14158
14171
|
url: ''.concat(this.networkSession.baseUrls.baseUrl, '/2.0/files/', toString(fileId), '/metadata'),
|
|
14159
14172
|
method: 'GET',
|
|
14173
|
+
params: queryParamsMap,
|
|
14160
14174
|
headers: headersMap,
|
|
14161
14175
|
responseFormat: 'json',
|
|
14162
14176
|
auth: this.auth,
|
|
@@ -14187,15 +14201,19 @@
|
|
|
14187
14201
|
getFileMetadataById(fileId_1, scope_1, templateKey_1) {
|
|
14188
14202
|
return __awaiter$1(this, arguments, void 0, function* (fileId, scope, templateKey, optionalsInput = {}) {
|
|
14189
14203
|
const optionals = new GetFileMetadataByIdOptionals({
|
|
14204
|
+
queryParams: optionalsInput.queryParams,
|
|
14190
14205
|
headers: optionalsInput.headers,
|
|
14191
14206
|
cancellationToken: optionalsInput.cancellationToken,
|
|
14192
14207
|
});
|
|
14208
|
+
const queryParams = optionals.queryParams;
|
|
14193
14209
|
const headers = optionals.headers;
|
|
14194
14210
|
const cancellationToken = optionals.cancellationToken;
|
|
14211
|
+
const queryParamsMap = prepareParams({ ['view']: toString(queryParams.view) });
|
|
14195
14212
|
const headersMap = prepareParams(Object.assign({}, headers.extraHeaders));
|
|
14196
14213
|
const response = yield this.networkSession.networkClient.fetch(new FetchOptions({
|
|
14197
14214
|
url: ''.concat(this.networkSession.baseUrls.baseUrl, '/2.0/files/', toString(fileId), '/metadata/', toString(scope), '/', toString(templateKey)),
|
|
14198
14215
|
method: 'GET',
|
|
14216
|
+
params: queryParamsMap,
|
|
14199
14217
|
headers: headersMap,
|
|
14200
14218
|
responseFormat: 'json',
|
|
14201
14219
|
auth: this.auth,
|
|
@@ -17618,10 +17636,10 @@
|
|
|
17618
17636
|
* Passing `sort`, `direction`, `offset`, and `limit`
|
|
17619
17637
|
* parameters in query allows you to manage the
|
|
17620
17638
|
* list of returned
|
|
17621
|
-
* [folder items](
|
|
17639
|
+
* [folder items](https://developer.box.com/reference/resources/folder--full#param-item-collection).
|
|
17622
17640
|
*
|
|
17623
17641
|
* To fetch more items within the folder, use the
|
|
17624
|
-
* [Get items in a folder](
|
|
17642
|
+
* [Get items in a folder](https://developer.box.com/reference/get-folders-id-items) endpoint.
|
|
17625
17643
|
* @param {string} folderId The unique identifier that represent a folder.
|
|
17626
17644
|
|
|
17627
17645
|
The ID for any folder can be determined
|
|
@@ -18654,10 +18672,10 @@
|
|
|
18654
18672
|
* trash can it be retrieved with this API call. If instead one of
|
|
18655
18673
|
* its parent folders was moved to the trash, only that folder
|
|
18656
18674
|
* can be inspected using the
|
|
18657
|
-
* [`GET /folders/:id/trash`](
|
|
18675
|
+
* [`GET /folders/:id/trash`](https://developer.box.com/reference/get-folders-id-trash) API.
|
|
18658
18676
|
*
|
|
18659
18677
|
* To list all items that have been moved to the trash, please
|
|
18660
|
-
* use the [`GET /folders/trash/items`](
|
|
18678
|
+
* use the [`GET /folders/trash/items`](https://developer.box.com/reference/get-folders-trash-items/)
|
|
18661
18679
|
* API.
|
|
18662
18680
|
* @param {string} folderId The unique identifier that represent a folder.
|
|
18663
18681
|
|
|
@@ -18755,8 +18773,12 @@
|
|
|
18755
18773
|
|
|
18756
18774
|
class GetFolderMetadataOptionals {
|
|
18757
18775
|
constructor(fields) {
|
|
18776
|
+
this.queryParams = {};
|
|
18758
18777
|
this.headers = new GetFolderMetadataHeaders({});
|
|
18759
18778
|
this.cancellationToken = void 0;
|
|
18779
|
+
if (fields.queryParams !== undefined) {
|
|
18780
|
+
this.queryParams = fields.queryParams;
|
|
18781
|
+
}
|
|
18760
18782
|
if (fields.headers !== undefined) {
|
|
18761
18783
|
this.headers = fields.headers;
|
|
18762
18784
|
}
|
|
@@ -18893,15 +18915,19 @@
|
|
|
18893
18915
|
getFolderMetadata(folderId_1) {
|
|
18894
18916
|
return __awaiter$1(this, arguments, void 0, function* (folderId, optionalsInput = {}) {
|
|
18895
18917
|
const optionals = new GetFolderMetadataOptionals({
|
|
18918
|
+
queryParams: optionalsInput.queryParams,
|
|
18896
18919
|
headers: optionalsInput.headers,
|
|
18897
18920
|
cancellationToken: optionalsInput.cancellationToken,
|
|
18898
18921
|
});
|
|
18922
|
+
const queryParams = optionals.queryParams;
|
|
18899
18923
|
const headers = optionals.headers;
|
|
18900
18924
|
const cancellationToken = optionals.cancellationToken;
|
|
18925
|
+
const queryParamsMap = prepareParams({ ['view']: toString(queryParams.view) });
|
|
18901
18926
|
const headersMap = prepareParams(Object.assign({}, headers.extraHeaders));
|
|
18902
18927
|
const response = yield this.networkSession.networkClient.fetch(new FetchOptions({
|
|
18903
18928
|
url: ''.concat(this.networkSession.baseUrls.baseUrl, '/2.0/folders/', toString(folderId), '/metadata'),
|
|
18904
18929
|
method: 'GET',
|
|
18930
|
+
params: queryParamsMap,
|
|
18905
18931
|
headers: headersMap,
|
|
18906
18932
|
responseFormat: 'json',
|
|
18907
18933
|
auth: this.auth,
|
|
@@ -20018,6 +20044,9 @@
|
|
|
20018
20044
|
if (val == 'integer') {
|
|
20019
20045
|
return val;
|
|
20020
20046
|
}
|
|
20047
|
+
if (val == 'taxonomy') {
|
|
20048
|
+
return val;
|
|
20049
|
+
}
|
|
20021
20050
|
throw new BoxSdkError({
|
|
20022
20051
|
message: "Can't deserialize MetadataTemplateFieldsTypeField",
|
|
20023
20052
|
});
|
|
@@ -20703,6 +20732,16 @@
|
|
|
20703
20732
|
function serializeCreateMetadataTemplateRequestBodyFieldsOptionsField(val) {
|
|
20704
20733
|
return { ['key']: val.key };
|
|
20705
20734
|
}
|
|
20735
|
+
function serializeCreateMetadataTemplateRequestBodyFieldsOptionsRulesField(val) {
|
|
20736
|
+
return {
|
|
20737
|
+
['multiSelect']: val.multiSelect,
|
|
20738
|
+
['selectableLevels']: val.selectableLevels == void 0
|
|
20739
|
+
? val.selectableLevels
|
|
20740
|
+
: val.selectableLevels.map(function (item) {
|
|
20741
|
+
return item;
|
|
20742
|
+
}),
|
|
20743
|
+
};
|
|
20744
|
+
}
|
|
20706
20745
|
function serializeCreateMetadataTemplateRequestBodyFieldsField(val) {
|
|
20707
20746
|
return {
|
|
20708
20747
|
['type']: serializeCreateMetadataTemplateRequestBodyFieldsTypeField(val.type),
|
|
@@ -20715,6 +20754,11 @@
|
|
|
20715
20754
|
: val.options.map(function (item) {
|
|
20716
20755
|
return serializeCreateMetadataTemplateRequestBodyFieldsOptionsField(item);
|
|
20717
20756
|
}),
|
|
20757
|
+
['taxonomyKey']: val.taxonomyKey,
|
|
20758
|
+
['namespace']: val.namespace,
|
|
20759
|
+
['optionsRules']: val.optionsRules == void 0
|
|
20760
|
+
? val.optionsRules
|
|
20761
|
+
: serializeCreateMetadataTemplateRequestBodyFieldsOptionsRulesField(val.optionsRules),
|
|
20718
20762
|
};
|
|
20719
20763
|
}
|
|
20720
20764
|
function serializeCreateMetadataTemplateRequestBody(val) {
|
|
@@ -32773,7 +32817,7 @@
|
|
|
32773
32817
|
* **Note**:
|
|
32774
32818
|
* File retention API is now **deprecated**.
|
|
32775
32819
|
* To get information about files and file versions under retention,
|
|
32776
|
-
* see [files under retention](
|
|
32820
|
+
* 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
32821
|
* @param {GetFileVersionRetentionsQueryParams} queryParams Query parameters of getFileVersionRetentions method
|
|
32778
32822
|
* @param {GetFileVersionRetentionsHeadersInput} headersInput Headers of getFileVersionRetentions method
|
|
32779
32823
|
* @param {CancellationToken} cancellationToken Token used for request cancellation.
|
|
@@ -32814,7 +32858,7 @@
|
|
|
32814
32858
|
* **Note**:
|
|
32815
32859
|
* File retention API is now **deprecated**.
|
|
32816
32860
|
* To get information about files and file versions under retention,
|
|
32817
|
-
* see [files under retention](
|
|
32861
|
+
* 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
32862
|
* @param {string} fileVersionRetentionId The ID of the file version retention.
|
|
32819
32863
|
Example: "3424234"
|
|
32820
32864
|
* @param {GetFileVersionRetentionByIdOptionalsInput} optionalsInput
|
|
@@ -37666,7 +37710,7 @@
|
|
|
37666
37710
|
* be created.
|
|
37667
37711
|
*
|
|
37668
37712
|
* The URL of this endpoint should not be considered as fixed. Instead, use
|
|
37669
|
-
* the [Create zip download](
|
|
37713
|
+
* the [Create zip download](https://developer.box.com/reference/post-zip-downloads) API to request to create a
|
|
37670
37714
|
* `zip` archive, and then follow the `download_url` field in the response to
|
|
37671
37715
|
* this endpoint.
|
|
37672
37716
|
* @param {string} downloadUrl The URL that can be used to download created `zip` archive.
|
|
@@ -37705,7 +37749,7 @@
|
|
|
37705
37749
|
* download.
|
|
37706
37750
|
*
|
|
37707
37751
|
* The URL of this endpoint should not be considered as fixed. Instead, use
|
|
37708
|
-
* the [Create zip download](
|
|
37752
|
+
* the [Create zip download](https://developer.box.com/reference/post-zip-downloads) API to request to create a
|
|
37709
37753
|
* `zip` archive, and then follow the `status_url` field in the response to
|
|
37710
37754
|
* this endpoint.
|
|
37711
37755
|
* @param {string} statusUrl The URL that can be used to get the status of the `zip` archive being downloaded.
|
|
@@ -37874,6 +37918,394 @@
|
|
|
37874
37918
|
};
|
|
37875
37919
|
}
|
|
37876
37920
|
|
|
37921
|
+
function deserializeSignRequestSignerInputEmailValidationValidationTypeField(val) {
|
|
37922
|
+
if (val == 'email') {
|
|
37923
|
+
return val;
|
|
37924
|
+
}
|
|
37925
|
+
if (sdIsString(val)) {
|
|
37926
|
+
return val;
|
|
37927
|
+
}
|
|
37928
|
+
throw new BoxSdkError({
|
|
37929
|
+
message: "Can't deserialize SignRequestSignerInputEmailValidationValidationTypeField",
|
|
37930
|
+
});
|
|
37931
|
+
}
|
|
37932
|
+
function deserializeSignRequestSignerInputEmailValidation(val) {
|
|
37933
|
+
if (!sdIsMap(val)) {
|
|
37934
|
+
throw new BoxSdkError({
|
|
37935
|
+
message: 'Expecting a map for "SignRequestSignerInputEmailValidation"',
|
|
37936
|
+
});
|
|
37937
|
+
}
|
|
37938
|
+
if (val.validation_type == void 0) {
|
|
37939
|
+
throw new BoxSdkError({
|
|
37940
|
+
message: 'Expecting "validation_type" of type "SignRequestSignerInputEmailValidation" to be defined',
|
|
37941
|
+
});
|
|
37942
|
+
}
|
|
37943
|
+
const validationType = deserializeSignRequestSignerInputEmailValidationValidationTypeField(val.validation_type);
|
|
37944
|
+
return {
|
|
37945
|
+
validationType: validationType,
|
|
37946
|
+
};
|
|
37947
|
+
}
|
|
37948
|
+
|
|
37949
|
+
function deserializeSignRequestSignerInputCustomValidationValidationTypeField(val) {
|
|
37950
|
+
if (val == 'custom') {
|
|
37951
|
+
return val;
|
|
37952
|
+
}
|
|
37953
|
+
if (sdIsString(val)) {
|
|
37954
|
+
return val;
|
|
37955
|
+
}
|
|
37956
|
+
throw new BoxSdkError({
|
|
37957
|
+
message: "Can't deserialize SignRequestSignerInputCustomValidationValidationTypeField",
|
|
37958
|
+
});
|
|
37959
|
+
}
|
|
37960
|
+
function deserializeSignRequestSignerInputCustomValidation(val) {
|
|
37961
|
+
if (!sdIsMap(val)) {
|
|
37962
|
+
throw new BoxSdkError({
|
|
37963
|
+
message: 'Expecting a map for "SignRequestSignerInputCustomValidation"',
|
|
37964
|
+
});
|
|
37965
|
+
}
|
|
37966
|
+
if (val.validation_type == void 0) {
|
|
37967
|
+
throw new BoxSdkError({
|
|
37968
|
+
message: 'Expecting "validation_type" of type "SignRequestSignerInputCustomValidation" to be defined',
|
|
37969
|
+
});
|
|
37970
|
+
}
|
|
37971
|
+
const validationType = deserializeSignRequestSignerInputCustomValidationValidationTypeField(val.validation_type);
|
|
37972
|
+
if (!(val.custom_regex == void 0) && !sdIsString(val.custom_regex)) {
|
|
37973
|
+
throw new BoxSdkError({
|
|
37974
|
+
message: 'Expecting string for "custom_regex" of type "SignRequestSignerInputCustomValidation"',
|
|
37975
|
+
});
|
|
37976
|
+
}
|
|
37977
|
+
const customRegex = val.custom_regex == void 0 ? void 0 : val.custom_regex;
|
|
37978
|
+
if (!(val.custom_error_message == void 0) &&
|
|
37979
|
+
!sdIsString(val.custom_error_message)) {
|
|
37980
|
+
throw new BoxSdkError({
|
|
37981
|
+
message: 'Expecting string for "custom_error_message" of type "SignRequestSignerInputCustomValidation"',
|
|
37982
|
+
});
|
|
37983
|
+
}
|
|
37984
|
+
const customErrorMessage = val.custom_error_message == void 0 ? void 0 : val.custom_error_message;
|
|
37985
|
+
return {
|
|
37986
|
+
validationType: validationType,
|
|
37987
|
+
customRegex: customRegex,
|
|
37988
|
+
customErrorMessage: customErrorMessage,
|
|
37989
|
+
};
|
|
37990
|
+
}
|
|
37991
|
+
|
|
37992
|
+
function deserializeSignRequestSignerInputZipValidationValidationTypeField(val) {
|
|
37993
|
+
if (val == 'zip') {
|
|
37994
|
+
return val;
|
|
37995
|
+
}
|
|
37996
|
+
if (sdIsString(val)) {
|
|
37997
|
+
return val;
|
|
37998
|
+
}
|
|
37999
|
+
throw new BoxSdkError({
|
|
38000
|
+
message: "Can't deserialize SignRequestSignerInputZipValidationValidationTypeField",
|
|
38001
|
+
});
|
|
38002
|
+
}
|
|
38003
|
+
function deserializeSignRequestSignerInputZipValidation(val) {
|
|
38004
|
+
if (!sdIsMap(val)) {
|
|
38005
|
+
throw new BoxSdkError({
|
|
38006
|
+
message: 'Expecting a map for "SignRequestSignerInputZipValidation"',
|
|
38007
|
+
});
|
|
38008
|
+
}
|
|
38009
|
+
if (val.validation_type == void 0) {
|
|
38010
|
+
throw new BoxSdkError({
|
|
38011
|
+
message: 'Expecting "validation_type" of type "SignRequestSignerInputZipValidation" to be defined',
|
|
38012
|
+
});
|
|
38013
|
+
}
|
|
38014
|
+
const validationType = deserializeSignRequestSignerInputZipValidationValidationTypeField(val.validation_type);
|
|
38015
|
+
return {
|
|
38016
|
+
validationType: validationType,
|
|
38017
|
+
};
|
|
38018
|
+
}
|
|
38019
|
+
|
|
38020
|
+
function deserializeSignRequestSignerInputZip4ValidationValidationTypeField(val) {
|
|
38021
|
+
if (val == 'zip_4') {
|
|
38022
|
+
return val;
|
|
38023
|
+
}
|
|
38024
|
+
if (sdIsString(val)) {
|
|
38025
|
+
return val;
|
|
38026
|
+
}
|
|
38027
|
+
throw new BoxSdkError({
|
|
38028
|
+
message: "Can't deserialize SignRequestSignerInputZip4ValidationValidationTypeField",
|
|
38029
|
+
});
|
|
38030
|
+
}
|
|
38031
|
+
function deserializeSignRequestSignerInputZip4Validation(val) {
|
|
38032
|
+
if (!sdIsMap(val)) {
|
|
38033
|
+
throw new BoxSdkError({
|
|
38034
|
+
message: 'Expecting a map for "SignRequestSignerInputZip4Validation"',
|
|
38035
|
+
});
|
|
38036
|
+
}
|
|
38037
|
+
if (val.validation_type == void 0) {
|
|
38038
|
+
throw new BoxSdkError({
|
|
38039
|
+
message: 'Expecting "validation_type" of type "SignRequestSignerInputZip4Validation" to be defined',
|
|
38040
|
+
});
|
|
38041
|
+
}
|
|
38042
|
+
const validationType = deserializeSignRequestSignerInputZip4ValidationValidationTypeField(val.validation_type);
|
|
38043
|
+
return {
|
|
38044
|
+
validationType: validationType,
|
|
38045
|
+
};
|
|
38046
|
+
}
|
|
38047
|
+
|
|
38048
|
+
function deserializeSignRequestSignerInputSsnValidationValidationTypeField(val) {
|
|
38049
|
+
if (val == 'ssn') {
|
|
38050
|
+
return val;
|
|
38051
|
+
}
|
|
38052
|
+
if (sdIsString(val)) {
|
|
38053
|
+
return val;
|
|
38054
|
+
}
|
|
38055
|
+
throw new BoxSdkError({
|
|
38056
|
+
message: "Can't deserialize SignRequestSignerInputSsnValidationValidationTypeField",
|
|
38057
|
+
});
|
|
38058
|
+
}
|
|
38059
|
+
function deserializeSignRequestSignerInputSsnValidation(val) {
|
|
38060
|
+
if (!sdIsMap(val)) {
|
|
38061
|
+
throw new BoxSdkError({
|
|
38062
|
+
message: 'Expecting a map for "SignRequestSignerInputSsnValidation"',
|
|
38063
|
+
});
|
|
38064
|
+
}
|
|
38065
|
+
if (val.validation_type == void 0) {
|
|
38066
|
+
throw new BoxSdkError({
|
|
38067
|
+
message: 'Expecting "validation_type" of type "SignRequestSignerInputSsnValidation" to be defined',
|
|
38068
|
+
});
|
|
38069
|
+
}
|
|
38070
|
+
const validationType = deserializeSignRequestSignerInputSsnValidationValidationTypeField(val.validation_type);
|
|
38071
|
+
return {
|
|
38072
|
+
validationType: validationType,
|
|
38073
|
+
};
|
|
38074
|
+
}
|
|
38075
|
+
|
|
38076
|
+
function deserializeSignRequestSignerInputNumberWithPeriodValidationValidationTypeField(val) {
|
|
38077
|
+
if (val == 'number_with_period') {
|
|
38078
|
+
return val;
|
|
38079
|
+
}
|
|
38080
|
+
if (sdIsString(val)) {
|
|
38081
|
+
return val;
|
|
38082
|
+
}
|
|
38083
|
+
throw new BoxSdkError({
|
|
38084
|
+
message: "Can't deserialize SignRequestSignerInputNumberWithPeriodValidationValidationTypeField",
|
|
38085
|
+
});
|
|
38086
|
+
}
|
|
38087
|
+
function deserializeSignRequestSignerInputNumberWithPeriodValidation(val) {
|
|
38088
|
+
if (!sdIsMap(val)) {
|
|
38089
|
+
throw new BoxSdkError({
|
|
38090
|
+
message: 'Expecting a map for "SignRequestSignerInputNumberWithPeriodValidation"',
|
|
38091
|
+
});
|
|
38092
|
+
}
|
|
38093
|
+
const validationType = val.validation_type == void 0
|
|
38094
|
+
? void 0
|
|
38095
|
+
: deserializeSignRequestSignerInputNumberWithPeriodValidationValidationTypeField(val.validation_type);
|
|
38096
|
+
return {
|
|
38097
|
+
validationType: validationType,
|
|
38098
|
+
};
|
|
38099
|
+
}
|
|
38100
|
+
|
|
38101
|
+
function deserializeSignRequestSignerInputNumberWithCommaValidationValidationTypeField(val) {
|
|
38102
|
+
if (val == 'number_with_comma') {
|
|
38103
|
+
return val;
|
|
38104
|
+
}
|
|
38105
|
+
if (sdIsString(val)) {
|
|
38106
|
+
return val;
|
|
38107
|
+
}
|
|
38108
|
+
throw new BoxSdkError({
|
|
38109
|
+
message: "Can't deserialize SignRequestSignerInputNumberWithCommaValidationValidationTypeField",
|
|
38110
|
+
});
|
|
38111
|
+
}
|
|
38112
|
+
function deserializeSignRequestSignerInputNumberWithCommaValidation(val) {
|
|
38113
|
+
if (!sdIsMap(val)) {
|
|
38114
|
+
throw new BoxSdkError({
|
|
38115
|
+
message: 'Expecting a map for "SignRequestSignerInputNumberWithCommaValidation"',
|
|
38116
|
+
});
|
|
38117
|
+
}
|
|
38118
|
+
const validationType = val.validation_type == void 0
|
|
38119
|
+
? void 0
|
|
38120
|
+
: deserializeSignRequestSignerInputNumberWithCommaValidationValidationTypeField(val.validation_type);
|
|
38121
|
+
return {
|
|
38122
|
+
validationType: validationType,
|
|
38123
|
+
};
|
|
38124
|
+
}
|
|
38125
|
+
|
|
38126
|
+
function deserializeSignRequestSignerInputDateIsoValidationValidationTypeField(val) {
|
|
38127
|
+
if (val == 'date_iso') {
|
|
38128
|
+
return val;
|
|
38129
|
+
}
|
|
38130
|
+
if (sdIsString(val)) {
|
|
38131
|
+
return val;
|
|
38132
|
+
}
|
|
38133
|
+
throw new BoxSdkError({
|
|
38134
|
+
message: "Can't deserialize SignRequestSignerInputDateIsoValidationValidationTypeField",
|
|
38135
|
+
});
|
|
38136
|
+
}
|
|
38137
|
+
function deserializeSignRequestSignerInputDateIsoValidation(val) {
|
|
38138
|
+
if (!sdIsMap(val)) {
|
|
38139
|
+
throw new BoxSdkError({
|
|
38140
|
+
message: 'Expecting a map for "SignRequestSignerInputDateIsoValidation"',
|
|
38141
|
+
});
|
|
38142
|
+
}
|
|
38143
|
+
const validationType = val.validation_type == void 0
|
|
38144
|
+
? void 0
|
|
38145
|
+
: deserializeSignRequestSignerInputDateIsoValidationValidationTypeField(val.validation_type);
|
|
38146
|
+
return {
|
|
38147
|
+
validationType: validationType,
|
|
38148
|
+
};
|
|
38149
|
+
}
|
|
38150
|
+
|
|
38151
|
+
function deserializeSignRequestSignerInputDateUsValidationValidationTypeField(val) {
|
|
38152
|
+
if (val == 'date_us') {
|
|
38153
|
+
return val;
|
|
38154
|
+
}
|
|
38155
|
+
if (sdIsString(val)) {
|
|
38156
|
+
return val;
|
|
38157
|
+
}
|
|
38158
|
+
throw new BoxSdkError({
|
|
38159
|
+
message: "Can't deserialize SignRequestSignerInputDateUsValidationValidationTypeField",
|
|
38160
|
+
});
|
|
38161
|
+
}
|
|
38162
|
+
function deserializeSignRequestSignerInputDateUsValidation(val) {
|
|
38163
|
+
if (!sdIsMap(val)) {
|
|
38164
|
+
throw new BoxSdkError({
|
|
38165
|
+
message: 'Expecting a map for "SignRequestSignerInputDateUsValidation"',
|
|
38166
|
+
});
|
|
38167
|
+
}
|
|
38168
|
+
const validationType = val.validation_type == void 0
|
|
38169
|
+
? void 0
|
|
38170
|
+
: deserializeSignRequestSignerInputDateUsValidationValidationTypeField(val.validation_type);
|
|
38171
|
+
return {
|
|
38172
|
+
validationType: validationType,
|
|
38173
|
+
};
|
|
38174
|
+
}
|
|
38175
|
+
|
|
38176
|
+
function deserializeSignRequestSignerInputDateEuValidationValidationTypeField(val) {
|
|
38177
|
+
if (val == 'date_eu') {
|
|
38178
|
+
return val;
|
|
38179
|
+
}
|
|
38180
|
+
if (sdIsString(val)) {
|
|
38181
|
+
return val;
|
|
38182
|
+
}
|
|
38183
|
+
throw new BoxSdkError({
|
|
38184
|
+
message: "Can't deserialize SignRequestSignerInputDateEuValidationValidationTypeField",
|
|
38185
|
+
});
|
|
38186
|
+
}
|
|
38187
|
+
function deserializeSignRequestSignerInputDateEuValidation(val) {
|
|
38188
|
+
if (!sdIsMap(val)) {
|
|
38189
|
+
throw new BoxSdkError({
|
|
38190
|
+
message: 'Expecting a map for "SignRequestSignerInputDateEuValidation"',
|
|
38191
|
+
});
|
|
38192
|
+
}
|
|
38193
|
+
const validationType = val.validation_type == void 0
|
|
38194
|
+
? void 0
|
|
38195
|
+
: deserializeSignRequestSignerInputDateEuValidationValidationTypeField(val.validation_type);
|
|
38196
|
+
return {
|
|
38197
|
+
validationType: validationType,
|
|
38198
|
+
};
|
|
38199
|
+
}
|
|
38200
|
+
|
|
38201
|
+
function deserializeSignRequestSignerInputDateAsiaValidationValidationTypeField(val) {
|
|
38202
|
+
if (val == 'date_asia') {
|
|
38203
|
+
return val;
|
|
38204
|
+
}
|
|
38205
|
+
if (sdIsString(val)) {
|
|
38206
|
+
return val;
|
|
38207
|
+
}
|
|
38208
|
+
throw new BoxSdkError({
|
|
38209
|
+
message: "Can't deserialize SignRequestSignerInputDateAsiaValidationValidationTypeField",
|
|
38210
|
+
});
|
|
38211
|
+
}
|
|
38212
|
+
function deserializeSignRequestSignerInputDateAsiaValidation(val) {
|
|
38213
|
+
if (!sdIsMap(val)) {
|
|
38214
|
+
throw new BoxSdkError({
|
|
38215
|
+
message: 'Expecting a map for "SignRequestSignerInputDateAsiaValidation"',
|
|
38216
|
+
});
|
|
38217
|
+
}
|
|
38218
|
+
const validationType = val.validation_type == void 0
|
|
38219
|
+
? void 0
|
|
38220
|
+
: deserializeSignRequestSignerInputDateAsiaValidationValidationTypeField(val.validation_type);
|
|
38221
|
+
return {
|
|
38222
|
+
validationType: validationType,
|
|
38223
|
+
};
|
|
38224
|
+
}
|
|
38225
|
+
|
|
38226
|
+
function deserializeSignRequestSignerInputValidation(val) {
|
|
38227
|
+
try {
|
|
38228
|
+
return deserializeSignRequestSignerInputEmailValidation(val);
|
|
38229
|
+
}
|
|
38230
|
+
catch (error) {
|
|
38231
|
+
}
|
|
38232
|
+
finally {
|
|
38233
|
+
}
|
|
38234
|
+
try {
|
|
38235
|
+
return deserializeSignRequestSignerInputCustomValidation(val);
|
|
38236
|
+
}
|
|
38237
|
+
catch (error) {
|
|
38238
|
+
}
|
|
38239
|
+
finally {
|
|
38240
|
+
}
|
|
38241
|
+
try {
|
|
38242
|
+
return deserializeSignRequestSignerInputZipValidation(val);
|
|
38243
|
+
}
|
|
38244
|
+
catch (error) {
|
|
38245
|
+
}
|
|
38246
|
+
finally {
|
|
38247
|
+
}
|
|
38248
|
+
try {
|
|
38249
|
+
return deserializeSignRequestSignerInputZip4Validation(val);
|
|
38250
|
+
}
|
|
38251
|
+
catch (error) {
|
|
38252
|
+
}
|
|
38253
|
+
finally {
|
|
38254
|
+
}
|
|
38255
|
+
try {
|
|
38256
|
+
return deserializeSignRequestSignerInputSsnValidation(val);
|
|
38257
|
+
}
|
|
38258
|
+
catch (error) {
|
|
38259
|
+
}
|
|
38260
|
+
finally {
|
|
38261
|
+
}
|
|
38262
|
+
try {
|
|
38263
|
+
return deserializeSignRequestSignerInputNumberWithPeriodValidation(val);
|
|
38264
|
+
}
|
|
38265
|
+
catch (error) {
|
|
38266
|
+
}
|
|
38267
|
+
finally {
|
|
38268
|
+
}
|
|
38269
|
+
try {
|
|
38270
|
+
return deserializeSignRequestSignerInputNumberWithCommaValidation(val);
|
|
38271
|
+
}
|
|
38272
|
+
catch (error) {
|
|
38273
|
+
}
|
|
38274
|
+
finally {
|
|
38275
|
+
}
|
|
38276
|
+
try {
|
|
38277
|
+
return deserializeSignRequestSignerInputDateIsoValidation(val);
|
|
38278
|
+
}
|
|
38279
|
+
catch (error) {
|
|
38280
|
+
}
|
|
38281
|
+
finally {
|
|
38282
|
+
}
|
|
38283
|
+
try {
|
|
38284
|
+
return deserializeSignRequestSignerInputDateUsValidation(val);
|
|
38285
|
+
}
|
|
38286
|
+
catch (error) {
|
|
38287
|
+
}
|
|
38288
|
+
finally {
|
|
38289
|
+
}
|
|
38290
|
+
try {
|
|
38291
|
+
return deserializeSignRequestSignerInputDateEuValidation(val);
|
|
38292
|
+
}
|
|
38293
|
+
catch (error) {
|
|
38294
|
+
}
|
|
38295
|
+
finally {
|
|
38296
|
+
}
|
|
38297
|
+
try {
|
|
38298
|
+
return deserializeSignRequestSignerInputDateAsiaValidation(val);
|
|
38299
|
+
}
|
|
38300
|
+
catch (error) {
|
|
38301
|
+
}
|
|
38302
|
+
finally {
|
|
38303
|
+
}
|
|
38304
|
+
throw new BoxSdkError({
|
|
38305
|
+
message: "Can't deserialize SignRequestSignerInputValidation",
|
|
38306
|
+
});
|
|
38307
|
+
}
|
|
38308
|
+
|
|
37877
38309
|
function deserializeSignRequestSignerInputTypeField(val) {
|
|
37878
38310
|
if (val == 'signature') {
|
|
37879
38311
|
return val;
|
|
@@ -37979,6 +38411,9 @@
|
|
|
37979
38411
|
});
|
|
37980
38412
|
}
|
|
37981
38413
|
const readOnly = val.read_only == void 0 ? void 0 : val.read_only;
|
|
38414
|
+
const validation = val.validation == void 0
|
|
38415
|
+
? void 0
|
|
38416
|
+
: deserializeSignRequestSignerInputValidation(val.validation);
|
|
37982
38417
|
if (!(val.document_tag_id == void 0) && !sdIsString(val.document_tag_id)) {
|
|
37983
38418
|
throw new BoxSdkError({
|
|
37984
38419
|
message: 'Expecting string for "document_tag_id" of type "SignRequestSignerInput"',
|
|
@@ -38008,6 +38443,7 @@
|
|
|
38008
38443
|
contentType: contentType,
|
|
38009
38444
|
pageIndex: pageIndex,
|
|
38010
38445
|
readOnly: readOnly,
|
|
38446
|
+
validation: validation,
|
|
38011
38447
|
documentTagId: documentTagId,
|
|
38012
38448
|
textValue: textValue,
|
|
38013
38449
|
checkboxValue: checkboxValue,
|
|
@@ -39809,6 +40245,9 @@
|
|
|
39809
40245
|
});
|
|
39810
40246
|
}
|
|
39811
40247
|
const readOnly = val.read_only == void 0 ? void 0 : val.read_only;
|
|
40248
|
+
const validation = val.validation == void 0
|
|
40249
|
+
? void 0
|
|
40250
|
+
: deserializeSignRequestSignerInputValidation(val.validation);
|
|
39812
40251
|
if (!(val.document_tag_id == void 0) && !sdIsString(val.document_tag_id)) {
|
|
39813
40252
|
throw new BoxSdkError({
|
|
39814
40253
|
message: 'Expecting string for "document_tag_id" of type "TemplateSignerInput"',
|
|
@@ -39845,6 +40284,7 @@
|
|
|
39845
40284
|
dimensions: dimensions,
|
|
39846
40285
|
label: label,
|
|
39847
40286
|
readOnly: readOnly,
|
|
40287
|
+
validation: validation,
|
|
39848
40288
|
documentTagId: documentTagId,
|
|
39849
40289
|
textValue: textValue,
|
|
39850
40290
|
checkboxValue: checkboxValue,
|
|
@@ -42943,11 +43383,11 @@
|
|
|
42943
43383
|
* Sends an AI request to supported Large Language Models (LLMs) and returns extracted metadata as a set of key-value pairs.
|
|
42944
43384
|
*
|
|
42945
43385
|
* 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](
|
|
43386
|
+
* or use the [metadata template API](https://developer.box.com/guides/metadata/templates/create).
|
|
42947
43387
|
*
|
|
42948
|
-
* This endpoint also supports [Enhanced Extract Agent](
|
|
43388
|
+
* This endpoint also supports [Enhanced Extract Agent](https://developer.box.com/guides/box-ai/ai-tutorials/extract-metadata-structured#enhanced-extract-agent).
|
|
42949
43389
|
*
|
|
42950
|
-
* For information about supported file formats and languages, see the [Extract metadata from file (structured)](
|
|
43390
|
+
* 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
43391
|
* @param {AiExtractStructured} requestBody Request body of createAiExtractStructured method
|
|
42952
43392
|
* @param {CreateAiExtractStructuredOptionalsInput} optionalsInput
|
|
42953
43393
|
* @returns {Promise<AiExtractStructuredResponse>}
|
|
@@ -44184,6 +44624,1248 @@
|
|
|
44184
44624
|
}
|
|
44185
44625
|
}
|
|
44186
44626
|
|
|
44627
|
+
function serializeMetadataTaxonomyLevel(val) {
|
|
44628
|
+
return {
|
|
44629
|
+
['displayName']: val.displayName,
|
|
44630
|
+
['description']: val.description,
|
|
44631
|
+
['level']: val.level,
|
|
44632
|
+
};
|
|
44633
|
+
}
|
|
44634
|
+
function deserializeMetadataTaxonomyLevel(val) {
|
|
44635
|
+
if (!sdIsMap(val)) {
|
|
44636
|
+
throw new BoxSdkError({
|
|
44637
|
+
message: 'Expecting a map for "MetadataTaxonomyLevel"',
|
|
44638
|
+
});
|
|
44639
|
+
}
|
|
44640
|
+
if (!(val.displayName == void 0) && !sdIsString(val.displayName)) {
|
|
44641
|
+
throw new BoxSdkError({
|
|
44642
|
+
message: 'Expecting string for "displayName" of type "MetadataTaxonomyLevel"',
|
|
44643
|
+
});
|
|
44644
|
+
}
|
|
44645
|
+
const displayName = val.displayName == void 0 ? void 0 : val.displayName;
|
|
44646
|
+
if (!(val.description == void 0) && !sdIsString(val.description)) {
|
|
44647
|
+
throw new BoxSdkError({
|
|
44648
|
+
message: 'Expecting string for "description" of type "MetadataTaxonomyLevel"',
|
|
44649
|
+
});
|
|
44650
|
+
}
|
|
44651
|
+
const description = val.description == void 0 ? void 0 : val.description;
|
|
44652
|
+
if (!(val.level == void 0) && !sdIsNumber(val.level)) {
|
|
44653
|
+
throw new BoxSdkError({
|
|
44654
|
+
message: 'Expecting number for "level" of type "MetadataTaxonomyLevel"',
|
|
44655
|
+
});
|
|
44656
|
+
}
|
|
44657
|
+
const level = val.level == void 0 ? void 0 : val.level;
|
|
44658
|
+
return {
|
|
44659
|
+
displayName: displayName,
|
|
44660
|
+
description: description,
|
|
44661
|
+
level: level,
|
|
44662
|
+
};
|
|
44663
|
+
}
|
|
44664
|
+
|
|
44665
|
+
function deserializeMetadataTaxonomy(val) {
|
|
44666
|
+
if (!sdIsMap(val)) {
|
|
44667
|
+
throw new BoxSdkError({
|
|
44668
|
+
message: 'Expecting a map for "MetadataTaxonomy"',
|
|
44669
|
+
});
|
|
44670
|
+
}
|
|
44671
|
+
if (val.id == void 0) {
|
|
44672
|
+
throw new BoxSdkError({
|
|
44673
|
+
message: 'Expecting "id" of type "MetadataTaxonomy" to be defined',
|
|
44674
|
+
});
|
|
44675
|
+
}
|
|
44676
|
+
if (!sdIsString(val.id)) {
|
|
44677
|
+
throw new BoxSdkError({
|
|
44678
|
+
message: 'Expecting string for "id" of type "MetadataTaxonomy"',
|
|
44679
|
+
});
|
|
44680
|
+
}
|
|
44681
|
+
const id = val.id;
|
|
44682
|
+
if (!(val.key == void 0) && !sdIsString(val.key)) {
|
|
44683
|
+
throw new BoxSdkError({
|
|
44684
|
+
message: 'Expecting string for "key" of type "MetadataTaxonomy"',
|
|
44685
|
+
});
|
|
44686
|
+
}
|
|
44687
|
+
const key = val.key == void 0 ? void 0 : val.key;
|
|
44688
|
+
if (val.displayName == void 0) {
|
|
44689
|
+
throw new BoxSdkError({
|
|
44690
|
+
message: 'Expecting "displayName" of type "MetadataTaxonomy" to be defined',
|
|
44691
|
+
});
|
|
44692
|
+
}
|
|
44693
|
+
if (!sdIsString(val.displayName)) {
|
|
44694
|
+
throw new BoxSdkError({
|
|
44695
|
+
message: 'Expecting string for "displayName" of type "MetadataTaxonomy"',
|
|
44696
|
+
});
|
|
44697
|
+
}
|
|
44698
|
+
const displayName = val.displayName;
|
|
44699
|
+
if (val.namespace == void 0) {
|
|
44700
|
+
throw new BoxSdkError({
|
|
44701
|
+
message: 'Expecting "namespace" of type "MetadataTaxonomy" to be defined',
|
|
44702
|
+
});
|
|
44703
|
+
}
|
|
44704
|
+
if (!sdIsString(val.namespace)) {
|
|
44705
|
+
throw new BoxSdkError({
|
|
44706
|
+
message: 'Expecting string for "namespace" of type "MetadataTaxonomy"',
|
|
44707
|
+
});
|
|
44708
|
+
}
|
|
44709
|
+
const namespace = val.namespace;
|
|
44710
|
+
if (!(val.levels == void 0) && !sdIsList(val.levels)) {
|
|
44711
|
+
throw new BoxSdkError({
|
|
44712
|
+
message: 'Expecting array for "levels" of type "MetadataTaxonomy"',
|
|
44713
|
+
});
|
|
44714
|
+
}
|
|
44715
|
+
const levels = val.levels == void 0
|
|
44716
|
+
? void 0
|
|
44717
|
+
: sdIsList(val.levels)
|
|
44718
|
+
? val.levels.map(function (itm) {
|
|
44719
|
+
return deserializeMetadataTaxonomyLevel(itm);
|
|
44720
|
+
})
|
|
44721
|
+
: [];
|
|
44722
|
+
return {
|
|
44723
|
+
id: id,
|
|
44724
|
+
key: key,
|
|
44725
|
+
displayName: displayName,
|
|
44726
|
+
namespace: namespace,
|
|
44727
|
+
levels: levels,
|
|
44728
|
+
};
|
|
44729
|
+
}
|
|
44730
|
+
|
|
44731
|
+
function deserializeMetadataTaxonomies(val) {
|
|
44732
|
+
if (!sdIsMap(val)) {
|
|
44733
|
+
throw new BoxSdkError({
|
|
44734
|
+
message: 'Expecting a map for "MetadataTaxonomies"',
|
|
44735
|
+
});
|
|
44736
|
+
}
|
|
44737
|
+
if (!(val.limit == void 0) && !sdIsNumber(val.limit)) {
|
|
44738
|
+
throw new BoxSdkError({
|
|
44739
|
+
message: 'Expecting number for "limit" of type "MetadataTaxonomies"',
|
|
44740
|
+
});
|
|
44741
|
+
}
|
|
44742
|
+
const limit = val.limit == void 0 ? void 0 : val.limit;
|
|
44743
|
+
if (!(val.next_marker == void 0) && !sdIsString(val.next_marker)) {
|
|
44744
|
+
throw new BoxSdkError({
|
|
44745
|
+
message: 'Expecting string for "next_marker" of type "MetadataTaxonomies"',
|
|
44746
|
+
});
|
|
44747
|
+
}
|
|
44748
|
+
const nextMarker = val.next_marker == void 0 ? void 0 : val.next_marker;
|
|
44749
|
+
if (!(val.prev_marker == void 0) && !sdIsString(val.prev_marker)) {
|
|
44750
|
+
throw new BoxSdkError({
|
|
44751
|
+
message: 'Expecting string for "prev_marker" of type "MetadataTaxonomies"',
|
|
44752
|
+
});
|
|
44753
|
+
}
|
|
44754
|
+
const prevMarker = val.prev_marker == void 0 ? void 0 : val.prev_marker;
|
|
44755
|
+
if (!(val.entries == void 0) && !sdIsList(val.entries)) {
|
|
44756
|
+
throw new BoxSdkError({
|
|
44757
|
+
message: 'Expecting array for "entries" of type "MetadataTaxonomies"',
|
|
44758
|
+
});
|
|
44759
|
+
}
|
|
44760
|
+
const entries = val.entries == void 0
|
|
44761
|
+
? void 0
|
|
44762
|
+
: sdIsList(val.entries)
|
|
44763
|
+
? val.entries.map(function (itm) {
|
|
44764
|
+
return deserializeMetadataTaxonomy(itm);
|
|
44765
|
+
})
|
|
44766
|
+
: [];
|
|
44767
|
+
return {
|
|
44768
|
+
limit: limit,
|
|
44769
|
+
nextMarker: nextMarker,
|
|
44770
|
+
prevMarker: prevMarker,
|
|
44771
|
+
entries: entries,
|
|
44772
|
+
};
|
|
44773
|
+
}
|
|
44774
|
+
|
|
44775
|
+
function deserializeMetadataTaxonomyLevels(val) {
|
|
44776
|
+
if (!sdIsMap(val)) {
|
|
44777
|
+
throw new BoxSdkError({
|
|
44778
|
+
message: 'Expecting a map for "MetadataTaxonomyLevels"',
|
|
44779
|
+
});
|
|
44780
|
+
}
|
|
44781
|
+
if (!(val.entries == void 0) && !sdIsList(val.entries)) {
|
|
44782
|
+
throw new BoxSdkError({
|
|
44783
|
+
message: 'Expecting array for "entries" of type "MetadataTaxonomyLevels"',
|
|
44784
|
+
});
|
|
44785
|
+
}
|
|
44786
|
+
const entries = val.entries == void 0
|
|
44787
|
+
? void 0
|
|
44788
|
+
: sdIsList(val.entries)
|
|
44789
|
+
? val.entries.map(function (itm) {
|
|
44790
|
+
return deserializeMetadataTaxonomyLevel(itm);
|
|
44791
|
+
})
|
|
44792
|
+
: [];
|
|
44793
|
+
return { entries: entries };
|
|
44794
|
+
}
|
|
44795
|
+
|
|
44796
|
+
function deserializeMetadataTaxonomyAncestor(val) {
|
|
44797
|
+
if (!sdIsMap(val)) {
|
|
44798
|
+
throw new BoxSdkError({
|
|
44799
|
+
message: 'Expecting a map for "MetadataTaxonomyAncestor"',
|
|
44800
|
+
});
|
|
44801
|
+
}
|
|
44802
|
+
if (!(val.id == void 0) && !sdIsString(val.id)) {
|
|
44803
|
+
throw new BoxSdkError({
|
|
44804
|
+
message: 'Expecting string for "id" of type "MetadataTaxonomyAncestor"',
|
|
44805
|
+
});
|
|
44806
|
+
}
|
|
44807
|
+
const id = val.id == void 0 ? void 0 : val.id;
|
|
44808
|
+
if (!(val.displayName == void 0) && !sdIsString(val.displayName)) {
|
|
44809
|
+
throw new BoxSdkError({
|
|
44810
|
+
message: 'Expecting string for "displayName" of type "MetadataTaxonomyAncestor"',
|
|
44811
|
+
});
|
|
44812
|
+
}
|
|
44813
|
+
const displayName = val.displayName == void 0 ? void 0 : val.displayName;
|
|
44814
|
+
if (!(val.level == void 0) && !sdIsNumber(val.level)) {
|
|
44815
|
+
throw new BoxSdkError({
|
|
44816
|
+
message: 'Expecting number for "level" of type "MetadataTaxonomyAncestor"',
|
|
44817
|
+
});
|
|
44818
|
+
}
|
|
44819
|
+
const level = val.level == void 0 ? void 0 : val.level;
|
|
44820
|
+
return {
|
|
44821
|
+
id: id,
|
|
44822
|
+
displayName: displayName,
|
|
44823
|
+
level: level,
|
|
44824
|
+
};
|
|
44825
|
+
}
|
|
44826
|
+
|
|
44827
|
+
function deserializeMetadataTaxonomyNode(val) {
|
|
44828
|
+
if (!sdIsMap(val)) {
|
|
44829
|
+
throw new BoxSdkError({
|
|
44830
|
+
message: 'Expecting a map for "MetadataTaxonomyNode"',
|
|
44831
|
+
});
|
|
44832
|
+
}
|
|
44833
|
+
if (val.id == void 0) {
|
|
44834
|
+
throw new BoxSdkError({
|
|
44835
|
+
message: 'Expecting "id" of type "MetadataTaxonomyNode" to be defined',
|
|
44836
|
+
});
|
|
44837
|
+
}
|
|
44838
|
+
if (!sdIsString(val.id)) {
|
|
44839
|
+
throw new BoxSdkError({
|
|
44840
|
+
message: 'Expecting string for "id" of type "MetadataTaxonomyNode"',
|
|
44841
|
+
});
|
|
44842
|
+
}
|
|
44843
|
+
const id = val.id;
|
|
44844
|
+
if (val.displayName == void 0) {
|
|
44845
|
+
throw new BoxSdkError({
|
|
44846
|
+
message: 'Expecting "displayName" of type "MetadataTaxonomyNode" to be defined',
|
|
44847
|
+
});
|
|
44848
|
+
}
|
|
44849
|
+
if (!sdIsString(val.displayName)) {
|
|
44850
|
+
throw new BoxSdkError({
|
|
44851
|
+
message: 'Expecting string for "displayName" of type "MetadataTaxonomyNode"',
|
|
44852
|
+
});
|
|
44853
|
+
}
|
|
44854
|
+
const displayName = val.displayName;
|
|
44855
|
+
if (val.level == void 0) {
|
|
44856
|
+
throw new BoxSdkError({
|
|
44857
|
+
message: 'Expecting "level" of type "MetadataTaxonomyNode" to be defined',
|
|
44858
|
+
});
|
|
44859
|
+
}
|
|
44860
|
+
if (!sdIsNumber(val.level)) {
|
|
44861
|
+
throw new BoxSdkError({
|
|
44862
|
+
message: 'Expecting number for "level" of type "MetadataTaxonomyNode"',
|
|
44863
|
+
});
|
|
44864
|
+
}
|
|
44865
|
+
const level = val.level;
|
|
44866
|
+
if (!(val.parentId == void 0) && !sdIsString(val.parentId)) {
|
|
44867
|
+
throw new BoxSdkError({
|
|
44868
|
+
message: 'Expecting string for "parentId" of type "MetadataTaxonomyNode"',
|
|
44869
|
+
});
|
|
44870
|
+
}
|
|
44871
|
+
const parentId = val.parentId == void 0 ? void 0 : val.parentId;
|
|
44872
|
+
if (!(val.nodePath == void 0) && !sdIsList(val.nodePath)) {
|
|
44873
|
+
throw new BoxSdkError({
|
|
44874
|
+
message: 'Expecting array for "nodePath" of type "MetadataTaxonomyNode"',
|
|
44875
|
+
});
|
|
44876
|
+
}
|
|
44877
|
+
const nodePath = val.nodePath == void 0
|
|
44878
|
+
? void 0
|
|
44879
|
+
: sdIsList(val.nodePath)
|
|
44880
|
+
? val.nodePath.map(function (itm) {
|
|
44881
|
+
if (!sdIsString(itm)) {
|
|
44882
|
+
throw new BoxSdkError({
|
|
44883
|
+
message: 'Expecting string for "MetadataTaxonomyNode"',
|
|
44884
|
+
});
|
|
44885
|
+
}
|
|
44886
|
+
return itm;
|
|
44887
|
+
})
|
|
44888
|
+
: [];
|
|
44889
|
+
if (!(val.ancestors == void 0) && !sdIsList(val.ancestors)) {
|
|
44890
|
+
throw new BoxSdkError({
|
|
44891
|
+
message: 'Expecting array for "ancestors" of type "MetadataTaxonomyNode"',
|
|
44892
|
+
});
|
|
44893
|
+
}
|
|
44894
|
+
const ancestors = val.ancestors == void 0
|
|
44895
|
+
? void 0
|
|
44896
|
+
: sdIsList(val.ancestors)
|
|
44897
|
+
? val.ancestors.map(function (itm) {
|
|
44898
|
+
return deserializeMetadataTaxonomyAncestor(itm);
|
|
44899
|
+
})
|
|
44900
|
+
: [];
|
|
44901
|
+
return {
|
|
44902
|
+
id: id,
|
|
44903
|
+
displayName: displayName,
|
|
44904
|
+
level: level,
|
|
44905
|
+
parentId: parentId,
|
|
44906
|
+
nodePath: nodePath,
|
|
44907
|
+
ancestors: ancestors,
|
|
44908
|
+
};
|
|
44909
|
+
}
|
|
44910
|
+
|
|
44911
|
+
function deserializeMetadataTaxonomyNodes(val) {
|
|
44912
|
+
if (!sdIsMap(val)) {
|
|
44913
|
+
throw new BoxSdkError({
|
|
44914
|
+
message: 'Expecting a map for "MetadataTaxonomyNodes"',
|
|
44915
|
+
});
|
|
44916
|
+
}
|
|
44917
|
+
if (!(val.limit == void 0) && !sdIsNumber(val.limit)) {
|
|
44918
|
+
throw new BoxSdkError({
|
|
44919
|
+
message: 'Expecting number for "limit" of type "MetadataTaxonomyNodes"',
|
|
44920
|
+
});
|
|
44921
|
+
}
|
|
44922
|
+
const limit = val.limit == void 0 ? void 0 : val.limit;
|
|
44923
|
+
if (!(val.next_marker == void 0) && !sdIsString(val.next_marker)) {
|
|
44924
|
+
throw new BoxSdkError({
|
|
44925
|
+
message: 'Expecting string for "next_marker" of type "MetadataTaxonomyNodes"',
|
|
44926
|
+
});
|
|
44927
|
+
}
|
|
44928
|
+
const nextMarker = val.next_marker == void 0 ? void 0 : val.next_marker;
|
|
44929
|
+
if (!(val.prev_marker == void 0) && !sdIsString(val.prev_marker)) {
|
|
44930
|
+
throw new BoxSdkError({
|
|
44931
|
+
message: 'Expecting string for "prev_marker" of type "MetadataTaxonomyNodes"',
|
|
44932
|
+
});
|
|
44933
|
+
}
|
|
44934
|
+
const prevMarker = val.prev_marker == void 0 ? void 0 : val.prev_marker;
|
|
44935
|
+
if (!(val.entries == void 0) && !sdIsList(val.entries)) {
|
|
44936
|
+
throw new BoxSdkError({
|
|
44937
|
+
message: 'Expecting array for "entries" of type "MetadataTaxonomyNodes"',
|
|
44938
|
+
});
|
|
44939
|
+
}
|
|
44940
|
+
const entries = val.entries == void 0
|
|
44941
|
+
? void 0
|
|
44942
|
+
: sdIsList(val.entries)
|
|
44943
|
+
? val.entries.map(function (itm) {
|
|
44944
|
+
return deserializeMetadataTaxonomyNode(itm);
|
|
44945
|
+
})
|
|
44946
|
+
: [];
|
|
44947
|
+
return {
|
|
44948
|
+
limit: limit,
|
|
44949
|
+
nextMarker: nextMarker,
|
|
44950
|
+
prevMarker: prevMarker,
|
|
44951
|
+
entries: entries,
|
|
44952
|
+
};
|
|
44953
|
+
}
|
|
44954
|
+
|
|
44955
|
+
class CreateMetadataTaxonomyOptionals {
|
|
44956
|
+
constructor(fields) {
|
|
44957
|
+
this.headers = new CreateMetadataTaxonomyHeaders({});
|
|
44958
|
+
this.cancellationToken = void 0;
|
|
44959
|
+
if (fields.headers !== undefined) {
|
|
44960
|
+
this.headers = fields.headers;
|
|
44961
|
+
}
|
|
44962
|
+
if (fields.cancellationToken !== undefined) {
|
|
44963
|
+
this.cancellationToken = fields.cancellationToken;
|
|
44964
|
+
}
|
|
44965
|
+
}
|
|
44966
|
+
}
|
|
44967
|
+
class GetMetadataTaxonomiesOptionals {
|
|
44968
|
+
constructor(fields) {
|
|
44969
|
+
this.queryParams = {};
|
|
44970
|
+
this.headers = new GetMetadataTaxonomiesHeaders({});
|
|
44971
|
+
this.cancellationToken = void 0;
|
|
44972
|
+
if (fields.queryParams !== undefined) {
|
|
44973
|
+
this.queryParams = fields.queryParams;
|
|
44974
|
+
}
|
|
44975
|
+
if (fields.headers !== undefined) {
|
|
44976
|
+
this.headers = fields.headers;
|
|
44977
|
+
}
|
|
44978
|
+
if (fields.cancellationToken !== undefined) {
|
|
44979
|
+
this.cancellationToken = fields.cancellationToken;
|
|
44980
|
+
}
|
|
44981
|
+
}
|
|
44982
|
+
}
|
|
44983
|
+
class GetMetadataTaxonomyByKeyOptionals {
|
|
44984
|
+
constructor(fields) {
|
|
44985
|
+
this.headers = new GetMetadataTaxonomyByKeyHeaders({});
|
|
44986
|
+
this.cancellationToken = void 0;
|
|
44987
|
+
if (fields.headers !== undefined) {
|
|
44988
|
+
this.headers = fields.headers;
|
|
44989
|
+
}
|
|
44990
|
+
if (fields.cancellationToken !== undefined) {
|
|
44991
|
+
this.cancellationToken = fields.cancellationToken;
|
|
44992
|
+
}
|
|
44993
|
+
}
|
|
44994
|
+
}
|
|
44995
|
+
class UpdateMetadataTaxonomyOptionals {
|
|
44996
|
+
constructor(fields) {
|
|
44997
|
+
this.headers = new UpdateMetadataTaxonomyHeaders({});
|
|
44998
|
+
this.cancellationToken = void 0;
|
|
44999
|
+
if (fields.headers !== undefined) {
|
|
45000
|
+
this.headers = fields.headers;
|
|
45001
|
+
}
|
|
45002
|
+
if (fields.cancellationToken !== undefined) {
|
|
45003
|
+
this.cancellationToken = fields.cancellationToken;
|
|
45004
|
+
}
|
|
45005
|
+
}
|
|
45006
|
+
}
|
|
45007
|
+
class DeleteMetadataTaxonomyOptionals {
|
|
45008
|
+
constructor(fields) {
|
|
45009
|
+
this.headers = new DeleteMetadataTaxonomyHeaders({});
|
|
45010
|
+
this.cancellationToken = void 0;
|
|
45011
|
+
if (fields.headers !== undefined) {
|
|
45012
|
+
this.headers = fields.headers;
|
|
45013
|
+
}
|
|
45014
|
+
if (fields.cancellationToken !== undefined) {
|
|
45015
|
+
this.cancellationToken = fields.cancellationToken;
|
|
45016
|
+
}
|
|
45017
|
+
}
|
|
45018
|
+
}
|
|
45019
|
+
class CreateMetadataTaxonomyLevelOptionals {
|
|
45020
|
+
constructor(fields) {
|
|
45021
|
+
this.headers = new CreateMetadataTaxonomyLevelHeaders({});
|
|
45022
|
+
this.cancellationToken = void 0;
|
|
45023
|
+
if (fields.headers !== undefined) {
|
|
45024
|
+
this.headers = fields.headers;
|
|
45025
|
+
}
|
|
45026
|
+
if (fields.cancellationToken !== undefined) {
|
|
45027
|
+
this.cancellationToken = fields.cancellationToken;
|
|
45028
|
+
}
|
|
45029
|
+
}
|
|
45030
|
+
}
|
|
45031
|
+
class UpdateMetadataTaxonomyLevelByIdOptionals {
|
|
45032
|
+
constructor(fields) {
|
|
45033
|
+
this.headers = new UpdateMetadataTaxonomyLevelByIdHeaders({});
|
|
45034
|
+
this.cancellationToken = void 0;
|
|
45035
|
+
if (fields.headers !== undefined) {
|
|
45036
|
+
this.headers = fields.headers;
|
|
45037
|
+
}
|
|
45038
|
+
if (fields.cancellationToken !== undefined) {
|
|
45039
|
+
this.cancellationToken = fields.cancellationToken;
|
|
45040
|
+
}
|
|
45041
|
+
}
|
|
45042
|
+
}
|
|
45043
|
+
class AddMetadataTaxonomyLevelOptionals {
|
|
45044
|
+
constructor(fields) {
|
|
45045
|
+
this.headers = new AddMetadataTaxonomyLevelHeaders({});
|
|
45046
|
+
this.cancellationToken = void 0;
|
|
45047
|
+
if (fields.headers !== undefined) {
|
|
45048
|
+
this.headers = fields.headers;
|
|
45049
|
+
}
|
|
45050
|
+
if (fields.cancellationToken !== undefined) {
|
|
45051
|
+
this.cancellationToken = fields.cancellationToken;
|
|
45052
|
+
}
|
|
45053
|
+
}
|
|
45054
|
+
}
|
|
45055
|
+
class DeleteMetadataTaxonomyLevelOptionals {
|
|
45056
|
+
constructor(fields) {
|
|
45057
|
+
this.headers = new DeleteMetadataTaxonomyLevelHeaders({});
|
|
45058
|
+
this.cancellationToken = void 0;
|
|
45059
|
+
if (fields.headers !== undefined) {
|
|
45060
|
+
this.headers = fields.headers;
|
|
45061
|
+
}
|
|
45062
|
+
if (fields.cancellationToken !== undefined) {
|
|
45063
|
+
this.cancellationToken = fields.cancellationToken;
|
|
45064
|
+
}
|
|
45065
|
+
}
|
|
45066
|
+
}
|
|
45067
|
+
class GetMetadataTaxonomyNodesOptionals {
|
|
45068
|
+
constructor(fields) {
|
|
45069
|
+
this.queryParams = {};
|
|
45070
|
+
this.headers = new GetMetadataTaxonomyNodesHeaders({});
|
|
45071
|
+
this.cancellationToken = void 0;
|
|
45072
|
+
if (fields.queryParams !== undefined) {
|
|
45073
|
+
this.queryParams = fields.queryParams;
|
|
45074
|
+
}
|
|
45075
|
+
if (fields.headers !== undefined) {
|
|
45076
|
+
this.headers = fields.headers;
|
|
45077
|
+
}
|
|
45078
|
+
if (fields.cancellationToken !== undefined) {
|
|
45079
|
+
this.cancellationToken = fields.cancellationToken;
|
|
45080
|
+
}
|
|
45081
|
+
}
|
|
45082
|
+
}
|
|
45083
|
+
class CreateMetadataTaxonomyNodeOptionals {
|
|
45084
|
+
constructor(fields) {
|
|
45085
|
+
this.headers = new CreateMetadataTaxonomyNodeHeaders({});
|
|
45086
|
+
this.cancellationToken = void 0;
|
|
45087
|
+
if (fields.headers !== undefined) {
|
|
45088
|
+
this.headers = fields.headers;
|
|
45089
|
+
}
|
|
45090
|
+
if (fields.cancellationToken !== undefined) {
|
|
45091
|
+
this.cancellationToken = fields.cancellationToken;
|
|
45092
|
+
}
|
|
45093
|
+
}
|
|
45094
|
+
}
|
|
45095
|
+
class GetMetadataTaxonomyNodeByIdOptionals {
|
|
45096
|
+
constructor(fields) {
|
|
45097
|
+
this.headers = new GetMetadataTaxonomyNodeByIdHeaders({});
|
|
45098
|
+
this.cancellationToken = void 0;
|
|
45099
|
+
if (fields.headers !== undefined) {
|
|
45100
|
+
this.headers = fields.headers;
|
|
45101
|
+
}
|
|
45102
|
+
if (fields.cancellationToken !== undefined) {
|
|
45103
|
+
this.cancellationToken = fields.cancellationToken;
|
|
45104
|
+
}
|
|
45105
|
+
}
|
|
45106
|
+
}
|
|
45107
|
+
class UpdateMetadataTaxonomyNodeOptionals {
|
|
45108
|
+
constructor(fields) {
|
|
45109
|
+
this.requestBody = {};
|
|
45110
|
+
this.headers = new UpdateMetadataTaxonomyNodeHeaders({});
|
|
45111
|
+
this.cancellationToken = void 0;
|
|
45112
|
+
if (fields.requestBody !== undefined) {
|
|
45113
|
+
this.requestBody = fields.requestBody;
|
|
45114
|
+
}
|
|
45115
|
+
if (fields.headers !== undefined) {
|
|
45116
|
+
this.headers = fields.headers;
|
|
45117
|
+
}
|
|
45118
|
+
if (fields.cancellationToken !== undefined) {
|
|
45119
|
+
this.cancellationToken = fields.cancellationToken;
|
|
45120
|
+
}
|
|
45121
|
+
}
|
|
45122
|
+
}
|
|
45123
|
+
class DeleteMetadataTaxonomyNodeOptionals {
|
|
45124
|
+
constructor(fields) {
|
|
45125
|
+
this.headers = new DeleteMetadataTaxonomyNodeHeaders({});
|
|
45126
|
+
this.cancellationToken = void 0;
|
|
45127
|
+
if (fields.headers !== undefined) {
|
|
45128
|
+
this.headers = fields.headers;
|
|
45129
|
+
}
|
|
45130
|
+
if (fields.cancellationToken !== undefined) {
|
|
45131
|
+
this.cancellationToken = fields.cancellationToken;
|
|
45132
|
+
}
|
|
45133
|
+
}
|
|
45134
|
+
}
|
|
45135
|
+
class GetMetadataTemplateFieldOptionsOptionals {
|
|
45136
|
+
constructor(fields) {
|
|
45137
|
+
this.queryParams = {};
|
|
45138
|
+
this.headers = new GetMetadataTemplateFieldOptionsHeaders({});
|
|
45139
|
+
this.cancellationToken = void 0;
|
|
45140
|
+
if (fields.queryParams !== undefined) {
|
|
45141
|
+
this.queryParams = fields.queryParams;
|
|
45142
|
+
}
|
|
45143
|
+
if (fields.headers !== undefined) {
|
|
45144
|
+
this.headers = fields.headers;
|
|
45145
|
+
}
|
|
45146
|
+
if (fields.cancellationToken !== undefined) {
|
|
45147
|
+
this.cancellationToken = fields.cancellationToken;
|
|
45148
|
+
}
|
|
45149
|
+
}
|
|
45150
|
+
}
|
|
45151
|
+
class CreateMetadataTaxonomyHeaders {
|
|
45152
|
+
constructor(fields) {
|
|
45153
|
+
/**
|
|
45154
|
+
* Extra headers that will be included in the HTTP request. */
|
|
45155
|
+
this.extraHeaders = {};
|
|
45156
|
+
if (fields.extraHeaders !== undefined) {
|
|
45157
|
+
this.extraHeaders = fields.extraHeaders;
|
|
45158
|
+
}
|
|
45159
|
+
}
|
|
45160
|
+
}
|
|
45161
|
+
class GetMetadataTaxonomiesHeaders {
|
|
45162
|
+
constructor(fields) {
|
|
45163
|
+
/**
|
|
45164
|
+
* Extra headers that will be included in the HTTP request. */
|
|
45165
|
+
this.extraHeaders = {};
|
|
45166
|
+
if (fields.extraHeaders !== undefined) {
|
|
45167
|
+
this.extraHeaders = fields.extraHeaders;
|
|
45168
|
+
}
|
|
45169
|
+
}
|
|
45170
|
+
}
|
|
45171
|
+
class GetMetadataTaxonomyByKeyHeaders {
|
|
45172
|
+
constructor(fields) {
|
|
45173
|
+
/**
|
|
45174
|
+
* Extra headers that will be included in the HTTP request. */
|
|
45175
|
+
this.extraHeaders = {};
|
|
45176
|
+
if (fields.extraHeaders !== undefined) {
|
|
45177
|
+
this.extraHeaders = fields.extraHeaders;
|
|
45178
|
+
}
|
|
45179
|
+
}
|
|
45180
|
+
}
|
|
45181
|
+
class UpdateMetadataTaxonomyHeaders {
|
|
45182
|
+
constructor(fields) {
|
|
45183
|
+
/**
|
|
45184
|
+
* Extra headers that will be included in the HTTP request. */
|
|
45185
|
+
this.extraHeaders = {};
|
|
45186
|
+
if (fields.extraHeaders !== undefined) {
|
|
45187
|
+
this.extraHeaders = fields.extraHeaders;
|
|
45188
|
+
}
|
|
45189
|
+
}
|
|
45190
|
+
}
|
|
45191
|
+
class DeleteMetadataTaxonomyHeaders {
|
|
45192
|
+
constructor(fields) {
|
|
45193
|
+
/**
|
|
45194
|
+
* Extra headers that will be included in the HTTP request. */
|
|
45195
|
+
this.extraHeaders = {};
|
|
45196
|
+
if (fields.extraHeaders !== undefined) {
|
|
45197
|
+
this.extraHeaders = fields.extraHeaders;
|
|
45198
|
+
}
|
|
45199
|
+
}
|
|
45200
|
+
}
|
|
45201
|
+
class CreateMetadataTaxonomyLevelHeaders {
|
|
45202
|
+
constructor(fields) {
|
|
45203
|
+
/**
|
|
45204
|
+
* Extra headers that will be included in the HTTP request. */
|
|
45205
|
+
this.extraHeaders = {};
|
|
45206
|
+
if (fields.extraHeaders !== undefined) {
|
|
45207
|
+
this.extraHeaders = fields.extraHeaders;
|
|
45208
|
+
}
|
|
45209
|
+
}
|
|
45210
|
+
}
|
|
45211
|
+
class UpdateMetadataTaxonomyLevelByIdHeaders {
|
|
45212
|
+
constructor(fields) {
|
|
45213
|
+
/**
|
|
45214
|
+
* Extra headers that will be included in the HTTP request. */
|
|
45215
|
+
this.extraHeaders = {};
|
|
45216
|
+
if (fields.extraHeaders !== undefined) {
|
|
45217
|
+
this.extraHeaders = fields.extraHeaders;
|
|
45218
|
+
}
|
|
45219
|
+
}
|
|
45220
|
+
}
|
|
45221
|
+
class AddMetadataTaxonomyLevelHeaders {
|
|
45222
|
+
constructor(fields) {
|
|
45223
|
+
/**
|
|
45224
|
+
* Extra headers that will be included in the HTTP request. */
|
|
45225
|
+
this.extraHeaders = {};
|
|
45226
|
+
if (fields.extraHeaders !== undefined) {
|
|
45227
|
+
this.extraHeaders = fields.extraHeaders;
|
|
45228
|
+
}
|
|
45229
|
+
}
|
|
45230
|
+
}
|
|
45231
|
+
class DeleteMetadataTaxonomyLevelHeaders {
|
|
45232
|
+
constructor(fields) {
|
|
45233
|
+
/**
|
|
45234
|
+
* Extra headers that will be included in the HTTP request. */
|
|
45235
|
+
this.extraHeaders = {};
|
|
45236
|
+
if (fields.extraHeaders !== undefined) {
|
|
45237
|
+
this.extraHeaders = fields.extraHeaders;
|
|
45238
|
+
}
|
|
45239
|
+
}
|
|
45240
|
+
}
|
|
45241
|
+
class GetMetadataTaxonomyNodesHeaders {
|
|
45242
|
+
constructor(fields) {
|
|
45243
|
+
/**
|
|
45244
|
+
* Extra headers that will be included in the HTTP request. */
|
|
45245
|
+
this.extraHeaders = {};
|
|
45246
|
+
if (fields.extraHeaders !== undefined) {
|
|
45247
|
+
this.extraHeaders = fields.extraHeaders;
|
|
45248
|
+
}
|
|
45249
|
+
}
|
|
45250
|
+
}
|
|
45251
|
+
class CreateMetadataTaxonomyNodeHeaders {
|
|
45252
|
+
constructor(fields) {
|
|
45253
|
+
/**
|
|
45254
|
+
* Extra headers that will be included in the HTTP request. */
|
|
45255
|
+
this.extraHeaders = {};
|
|
45256
|
+
if (fields.extraHeaders !== undefined) {
|
|
45257
|
+
this.extraHeaders = fields.extraHeaders;
|
|
45258
|
+
}
|
|
45259
|
+
}
|
|
45260
|
+
}
|
|
45261
|
+
class GetMetadataTaxonomyNodeByIdHeaders {
|
|
45262
|
+
constructor(fields) {
|
|
45263
|
+
/**
|
|
45264
|
+
* Extra headers that will be included in the HTTP request. */
|
|
45265
|
+
this.extraHeaders = {};
|
|
45266
|
+
if (fields.extraHeaders !== undefined) {
|
|
45267
|
+
this.extraHeaders = fields.extraHeaders;
|
|
45268
|
+
}
|
|
45269
|
+
}
|
|
45270
|
+
}
|
|
45271
|
+
class UpdateMetadataTaxonomyNodeHeaders {
|
|
45272
|
+
constructor(fields) {
|
|
45273
|
+
/**
|
|
45274
|
+
* Extra headers that will be included in the HTTP request. */
|
|
45275
|
+
this.extraHeaders = {};
|
|
45276
|
+
if (fields.extraHeaders !== undefined) {
|
|
45277
|
+
this.extraHeaders = fields.extraHeaders;
|
|
45278
|
+
}
|
|
45279
|
+
}
|
|
45280
|
+
}
|
|
45281
|
+
class DeleteMetadataTaxonomyNodeHeaders {
|
|
45282
|
+
constructor(fields) {
|
|
45283
|
+
/**
|
|
45284
|
+
* Extra headers that will be included in the HTTP request. */
|
|
45285
|
+
this.extraHeaders = {};
|
|
45286
|
+
if (fields.extraHeaders !== undefined) {
|
|
45287
|
+
this.extraHeaders = fields.extraHeaders;
|
|
45288
|
+
}
|
|
45289
|
+
}
|
|
45290
|
+
}
|
|
45291
|
+
class GetMetadataTemplateFieldOptionsHeaders {
|
|
45292
|
+
constructor(fields) {
|
|
45293
|
+
/**
|
|
45294
|
+
* Extra headers that will be included in the HTTP request. */
|
|
45295
|
+
this.extraHeaders = {};
|
|
45296
|
+
if (fields.extraHeaders !== undefined) {
|
|
45297
|
+
this.extraHeaders = fields.extraHeaders;
|
|
45298
|
+
}
|
|
45299
|
+
}
|
|
45300
|
+
}
|
|
45301
|
+
class MetadataTaxonomiesManager {
|
|
45302
|
+
constructor(fields) {
|
|
45303
|
+
this.networkSession = new NetworkSession({});
|
|
45304
|
+
if (fields.auth !== undefined) {
|
|
45305
|
+
this.auth = fields.auth;
|
|
45306
|
+
}
|
|
45307
|
+
if (fields.networkSession !== undefined) {
|
|
45308
|
+
this.networkSession = fields.networkSession;
|
|
45309
|
+
}
|
|
45310
|
+
}
|
|
45311
|
+
/**
|
|
45312
|
+
* Creates a new metadata taxonomy that can be used in
|
|
45313
|
+
* metadata templates.
|
|
45314
|
+
* @param {CreateMetadataTaxonomyRequestBody} requestBody Request body of createMetadataTaxonomy method
|
|
45315
|
+
* @param {CreateMetadataTaxonomyOptionalsInput} optionalsInput
|
|
45316
|
+
* @returns {Promise<MetadataTaxonomy>}
|
|
45317
|
+
*/
|
|
45318
|
+
createMetadataTaxonomy(requestBody_1) {
|
|
45319
|
+
return __awaiter$1(this, arguments, void 0, function* (requestBody, optionalsInput = {}) {
|
|
45320
|
+
const optionals = new CreateMetadataTaxonomyOptionals({
|
|
45321
|
+
headers: optionalsInput.headers,
|
|
45322
|
+
cancellationToken: optionalsInput.cancellationToken,
|
|
45323
|
+
});
|
|
45324
|
+
const headers = optionals.headers;
|
|
45325
|
+
const cancellationToken = optionals.cancellationToken;
|
|
45326
|
+
const headersMap = prepareParams(Object.assign({}, headers.extraHeaders));
|
|
45327
|
+
const response = yield this.networkSession.networkClient.fetch(new FetchOptions({
|
|
45328
|
+
url: ''.concat(this.networkSession.baseUrls.baseUrl, '/2.0/metadata_taxonomies'),
|
|
45329
|
+
method: 'POST',
|
|
45330
|
+
headers: headersMap,
|
|
45331
|
+
data: serializeCreateMetadataTaxonomyRequestBody(requestBody),
|
|
45332
|
+
contentType: 'application/json',
|
|
45333
|
+
responseFormat: 'json',
|
|
45334
|
+
auth: this.auth,
|
|
45335
|
+
networkSession: this.networkSession,
|
|
45336
|
+
cancellationToken: cancellationToken,
|
|
45337
|
+
}));
|
|
45338
|
+
return Object.assign(Object.assign({}, deserializeMetadataTaxonomy(response.data)), { rawData: response.data });
|
|
45339
|
+
});
|
|
45340
|
+
}
|
|
45341
|
+
/**
|
|
45342
|
+
* Used to retrieve all metadata taxonomies in a namespace.
|
|
45343
|
+
* @param {string} namespace The namespace of the metadata taxonomy.
|
|
45344
|
+
Example: "enterprise_123456"
|
|
45345
|
+
* @param {GetMetadataTaxonomiesOptionalsInput} optionalsInput
|
|
45346
|
+
* @returns {Promise<MetadataTaxonomies>}
|
|
45347
|
+
*/
|
|
45348
|
+
getMetadataTaxonomies(namespace_1) {
|
|
45349
|
+
return __awaiter$1(this, arguments, void 0, function* (namespace, optionalsInput = {}) {
|
|
45350
|
+
const optionals = new GetMetadataTaxonomiesOptionals({
|
|
45351
|
+
queryParams: optionalsInput.queryParams,
|
|
45352
|
+
headers: optionalsInput.headers,
|
|
45353
|
+
cancellationToken: optionalsInput.cancellationToken,
|
|
45354
|
+
});
|
|
45355
|
+
const queryParams = optionals.queryParams;
|
|
45356
|
+
const headers = optionals.headers;
|
|
45357
|
+
const cancellationToken = optionals.cancellationToken;
|
|
45358
|
+
const queryParamsMap = prepareParams({
|
|
45359
|
+
['marker']: toString(queryParams.marker),
|
|
45360
|
+
['limit']: toString(queryParams.limit),
|
|
45361
|
+
});
|
|
45362
|
+
const headersMap = prepareParams(Object.assign({}, headers.extraHeaders));
|
|
45363
|
+
const response = yield this.networkSession.networkClient.fetch(new FetchOptions({
|
|
45364
|
+
url: ''.concat(this.networkSession.baseUrls.baseUrl, '/2.0/metadata_taxonomies/', toString(namespace)),
|
|
45365
|
+
method: 'GET',
|
|
45366
|
+
params: queryParamsMap,
|
|
45367
|
+
headers: headersMap,
|
|
45368
|
+
responseFormat: 'json',
|
|
45369
|
+
auth: this.auth,
|
|
45370
|
+
networkSession: this.networkSession,
|
|
45371
|
+
cancellationToken: cancellationToken,
|
|
45372
|
+
}));
|
|
45373
|
+
return Object.assign(Object.assign({}, deserializeMetadataTaxonomies(response.data)), { rawData: response.data });
|
|
45374
|
+
});
|
|
45375
|
+
}
|
|
45376
|
+
/**
|
|
45377
|
+
* Used to retrieve a metadata taxonomy by taxonomy key.
|
|
45378
|
+
* @param {string} namespace The namespace of the metadata taxonomy.
|
|
45379
|
+
Example: "enterprise_123456"
|
|
45380
|
+
* @param {string} taxonomyKey The key of the metadata taxonomy.
|
|
45381
|
+
Example: "geography"
|
|
45382
|
+
* @param {GetMetadataTaxonomyByKeyOptionalsInput} optionalsInput
|
|
45383
|
+
* @returns {Promise<MetadataTaxonomy>}
|
|
45384
|
+
*/
|
|
45385
|
+
getMetadataTaxonomyByKey(namespace_1, taxonomyKey_1) {
|
|
45386
|
+
return __awaiter$1(this, arguments, void 0, function* (namespace, taxonomyKey, optionalsInput = {}) {
|
|
45387
|
+
const optionals = new GetMetadataTaxonomyByKeyOptionals({
|
|
45388
|
+
headers: optionalsInput.headers,
|
|
45389
|
+
cancellationToken: optionalsInput.cancellationToken,
|
|
45390
|
+
});
|
|
45391
|
+
const headers = optionals.headers;
|
|
45392
|
+
const cancellationToken = optionals.cancellationToken;
|
|
45393
|
+
const headersMap = prepareParams(Object.assign({}, headers.extraHeaders));
|
|
45394
|
+
const response = yield this.networkSession.networkClient.fetch(new FetchOptions({
|
|
45395
|
+
url: ''.concat(this.networkSession.baseUrls.baseUrl, '/2.0/metadata_taxonomies/', toString(namespace), '/', toString(taxonomyKey)),
|
|
45396
|
+
method: 'GET',
|
|
45397
|
+
headers: headersMap,
|
|
45398
|
+
responseFormat: 'json',
|
|
45399
|
+
auth: this.auth,
|
|
45400
|
+
networkSession: this.networkSession,
|
|
45401
|
+
cancellationToken: cancellationToken,
|
|
45402
|
+
}));
|
|
45403
|
+
return Object.assign(Object.assign({}, deserializeMetadataTaxonomy(response.data)), { rawData: response.data });
|
|
45404
|
+
});
|
|
45405
|
+
}
|
|
45406
|
+
/**
|
|
45407
|
+
* Updates an existing metadata taxonomy.
|
|
45408
|
+
* @param {string} namespace The namespace of the metadata taxonomy.
|
|
45409
|
+
Example: "enterprise_123456"
|
|
45410
|
+
* @param {string} taxonomyKey The key of the metadata taxonomy.
|
|
45411
|
+
Example: "geography"
|
|
45412
|
+
* @param {UpdateMetadataTaxonomyRequestBody} requestBody Request body of updateMetadataTaxonomy method
|
|
45413
|
+
* @param {UpdateMetadataTaxonomyOptionalsInput} optionalsInput
|
|
45414
|
+
* @returns {Promise<MetadataTaxonomy>}
|
|
45415
|
+
*/
|
|
45416
|
+
updateMetadataTaxonomy(namespace_1, taxonomyKey_1, requestBody_1) {
|
|
45417
|
+
return __awaiter$1(this, arguments, void 0, function* (namespace, taxonomyKey, requestBody, optionalsInput = {}) {
|
|
45418
|
+
const optionals = new UpdateMetadataTaxonomyOptionals({
|
|
45419
|
+
headers: optionalsInput.headers,
|
|
45420
|
+
cancellationToken: optionalsInput.cancellationToken,
|
|
45421
|
+
});
|
|
45422
|
+
const headers = optionals.headers;
|
|
45423
|
+
const cancellationToken = optionals.cancellationToken;
|
|
45424
|
+
const headersMap = prepareParams(Object.assign({}, headers.extraHeaders));
|
|
45425
|
+
const response = yield this.networkSession.networkClient.fetch(new FetchOptions({
|
|
45426
|
+
url: ''.concat(this.networkSession.baseUrls.baseUrl, '/2.0/metadata_taxonomies/', toString(namespace), '/', toString(taxonomyKey)),
|
|
45427
|
+
method: 'PATCH',
|
|
45428
|
+
headers: headersMap,
|
|
45429
|
+
data: serializeUpdateMetadataTaxonomyRequestBody(requestBody),
|
|
45430
|
+
contentType: 'application/json',
|
|
45431
|
+
responseFormat: 'json',
|
|
45432
|
+
auth: this.auth,
|
|
45433
|
+
networkSession: this.networkSession,
|
|
45434
|
+
cancellationToken: cancellationToken,
|
|
45435
|
+
}));
|
|
45436
|
+
return Object.assign(Object.assign({}, deserializeMetadataTaxonomy(response.data)), { rawData: response.data });
|
|
45437
|
+
});
|
|
45438
|
+
}
|
|
45439
|
+
/**
|
|
45440
|
+
* Delete a metadata taxonomy.
|
|
45441
|
+
* This deletion is permanent and cannot be reverted.
|
|
45442
|
+
* @param {string} namespace The namespace of the metadata taxonomy.
|
|
45443
|
+
Example: "enterprise_123456"
|
|
45444
|
+
* @param {string} taxonomyKey The key of the metadata taxonomy.
|
|
45445
|
+
Example: "geography"
|
|
45446
|
+
* @param {DeleteMetadataTaxonomyOptionalsInput} optionalsInput
|
|
45447
|
+
* @returns {Promise<undefined>}
|
|
45448
|
+
*/
|
|
45449
|
+
deleteMetadataTaxonomy(namespace_1, taxonomyKey_1) {
|
|
45450
|
+
return __awaiter$1(this, arguments, void 0, function* (namespace, taxonomyKey, optionalsInput = {}) {
|
|
45451
|
+
const optionals = new DeleteMetadataTaxonomyOptionals({
|
|
45452
|
+
headers: optionalsInput.headers,
|
|
45453
|
+
cancellationToken: optionalsInput.cancellationToken,
|
|
45454
|
+
});
|
|
45455
|
+
const headers = optionals.headers;
|
|
45456
|
+
const cancellationToken = optionals.cancellationToken;
|
|
45457
|
+
const headersMap = prepareParams(Object.assign({}, headers.extraHeaders));
|
|
45458
|
+
yield this.networkSession.networkClient.fetch(new FetchOptions({
|
|
45459
|
+
url: ''.concat(this.networkSession.baseUrls.baseUrl, '/2.0/metadata_taxonomies/', toString(namespace), '/', toString(taxonomyKey)),
|
|
45460
|
+
method: 'DELETE',
|
|
45461
|
+
headers: headersMap,
|
|
45462
|
+
responseFormat: 'no_content',
|
|
45463
|
+
auth: this.auth,
|
|
45464
|
+
networkSession: this.networkSession,
|
|
45465
|
+
cancellationToken: cancellationToken,
|
|
45466
|
+
}));
|
|
45467
|
+
return void 0;
|
|
45468
|
+
});
|
|
45469
|
+
}
|
|
45470
|
+
/**
|
|
45471
|
+
* Creates new metadata taxonomy levels.
|
|
45472
|
+
* @param {string} namespace The namespace of the metadata taxonomy.
|
|
45473
|
+
Example: "enterprise_123456"
|
|
45474
|
+
* @param {string} taxonomyKey The key of the metadata taxonomy.
|
|
45475
|
+
Example: "geography"
|
|
45476
|
+
* @param {readonly MetadataTaxonomyLevel[]} requestBody Request body of createMetadataTaxonomyLevel method
|
|
45477
|
+
* @param {CreateMetadataTaxonomyLevelOptionalsInput} optionalsInput
|
|
45478
|
+
* @returns {Promise<MetadataTaxonomyLevels>}
|
|
45479
|
+
*/
|
|
45480
|
+
createMetadataTaxonomyLevel(namespace_1, taxonomyKey_1, requestBody_1) {
|
|
45481
|
+
return __awaiter$1(this, arguments, void 0, function* (namespace, taxonomyKey, requestBody, optionalsInput = {}) {
|
|
45482
|
+
const optionals = new CreateMetadataTaxonomyLevelOptionals({
|
|
45483
|
+
headers: optionalsInput.headers,
|
|
45484
|
+
cancellationToken: optionalsInput.cancellationToken,
|
|
45485
|
+
});
|
|
45486
|
+
const headers = optionals.headers;
|
|
45487
|
+
const cancellationToken = optionals.cancellationToken;
|
|
45488
|
+
const headersMap = prepareParams(Object.assign({}, headers.extraHeaders));
|
|
45489
|
+
const response = yield this.networkSession.networkClient.fetch(new FetchOptions({
|
|
45490
|
+
url: ''.concat(this.networkSession.baseUrls.baseUrl, '/2.0/metadata_taxonomies/', toString(namespace), '/', toString(taxonomyKey), '/levels'),
|
|
45491
|
+
method: 'POST',
|
|
45492
|
+
headers: headersMap,
|
|
45493
|
+
data: requestBody.map(serializeMetadataTaxonomyLevel),
|
|
45494
|
+
contentType: 'application/json',
|
|
45495
|
+
responseFormat: 'json',
|
|
45496
|
+
auth: this.auth,
|
|
45497
|
+
networkSession: this.networkSession,
|
|
45498
|
+
cancellationToken: cancellationToken,
|
|
45499
|
+
}));
|
|
45500
|
+
return Object.assign(Object.assign({}, deserializeMetadataTaxonomyLevels(response.data)), { rawData: response.data });
|
|
45501
|
+
});
|
|
45502
|
+
}
|
|
45503
|
+
/**
|
|
45504
|
+
* Updates an existing metadata taxonomy level.
|
|
45505
|
+
* @param {string} namespace The namespace of the metadata taxonomy.
|
|
45506
|
+
Example: "enterprise_123456"
|
|
45507
|
+
* @param {string} taxonomyKey The key of the metadata taxonomy.
|
|
45508
|
+
Example: "geography"
|
|
45509
|
+
* @param {number} levelIndex The index of the metadata taxonomy level.
|
|
45510
|
+
Example: 1
|
|
45511
|
+
* @param {UpdateMetadataTaxonomyLevelByIdRequestBody} requestBody Request body of updateMetadataTaxonomyLevelById method
|
|
45512
|
+
* @param {UpdateMetadataTaxonomyLevelByIdOptionalsInput} optionalsInput
|
|
45513
|
+
* @returns {Promise<MetadataTaxonomyLevel>}
|
|
45514
|
+
*/
|
|
45515
|
+
updateMetadataTaxonomyLevelById(namespace_1, taxonomyKey_1, levelIndex_1, requestBody_1) {
|
|
45516
|
+
return __awaiter$1(this, arguments, void 0, function* (namespace, taxonomyKey, levelIndex, requestBody, optionalsInput = {}) {
|
|
45517
|
+
const optionals = new UpdateMetadataTaxonomyLevelByIdOptionals({
|
|
45518
|
+
headers: optionalsInput.headers,
|
|
45519
|
+
cancellationToken: optionalsInput.cancellationToken,
|
|
45520
|
+
});
|
|
45521
|
+
const headers = optionals.headers;
|
|
45522
|
+
const cancellationToken = optionals.cancellationToken;
|
|
45523
|
+
const headersMap = prepareParams(Object.assign({}, headers.extraHeaders));
|
|
45524
|
+
const response = yield this.networkSession.networkClient.fetch(new FetchOptions({
|
|
45525
|
+
url: ''.concat(this.networkSession.baseUrls.baseUrl, '/2.0/metadata_taxonomies/', toString(namespace), '/', toString(taxonomyKey), '/levels/', toString(levelIndex)),
|
|
45526
|
+
method: 'PATCH',
|
|
45527
|
+
headers: headersMap,
|
|
45528
|
+
data: serializeUpdateMetadataTaxonomyLevelByIdRequestBody(requestBody),
|
|
45529
|
+
contentType: 'application/json',
|
|
45530
|
+
responseFormat: 'json',
|
|
45531
|
+
auth: this.auth,
|
|
45532
|
+
networkSession: this.networkSession,
|
|
45533
|
+
cancellationToken: cancellationToken,
|
|
45534
|
+
}));
|
|
45535
|
+
return Object.assign(Object.assign({}, deserializeMetadataTaxonomyLevel(response.data)), { rawData: response.data });
|
|
45536
|
+
});
|
|
45537
|
+
}
|
|
45538
|
+
/**
|
|
45539
|
+
* Creates a new metadata taxonomy level and appends it to the existing levels.
|
|
45540
|
+
* If there are no levels defined yet, this will create the first level.
|
|
45541
|
+
* @param {string} namespace The namespace of the metadata taxonomy.
|
|
45542
|
+
Example: "enterprise_123456"
|
|
45543
|
+
* @param {string} taxonomyKey The key of the metadata taxonomy.
|
|
45544
|
+
Example: "geography"
|
|
45545
|
+
* @param {AddMetadataTaxonomyLevelRequestBody} requestBody Request body of addMetadataTaxonomyLevel method
|
|
45546
|
+
* @param {AddMetadataTaxonomyLevelOptionalsInput} optionalsInput
|
|
45547
|
+
* @returns {Promise<MetadataTaxonomyLevels>}
|
|
45548
|
+
*/
|
|
45549
|
+
addMetadataTaxonomyLevel(namespace_1, taxonomyKey_1, requestBody_1) {
|
|
45550
|
+
return __awaiter$1(this, arguments, void 0, function* (namespace, taxonomyKey, requestBody, optionalsInput = {}) {
|
|
45551
|
+
const optionals = new AddMetadataTaxonomyLevelOptionals({
|
|
45552
|
+
headers: optionalsInput.headers,
|
|
45553
|
+
cancellationToken: optionalsInput.cancellationToken,
|
|
45554
|
+
});
|
|
45555
|
+
const headers = optionals.headers;
|
|
45556
|
+
const cancellationToken = optionals.cancellationToken;
|
|
45557
|
+
const headersMap = prepareParams(Object.assign({}, headers.extraHeaders));
|
|
45558
|
+
const response = yield this.networkSession.networkClient.fetch(new FetchOptions({
|
|
45559
|
+
url: ''.concat(this.networkSession.baseUrls.baseUrl, '/2.0/metadata_taxonomies/', toString(namespace), '/', toString(taxonomyKey), '/levels:append'),
|
|
45560
|
+
method: 'POST',
|
|
45561
|
+
headers: headersMap,
|
|
45562
|
+
data: serializeAddMetadataTaxonomyLevelRequestBody(requestBody),
|
|
45563
|
+
contentType: 'application/json',
|
|
45564
|
+
responseFormat: 'json',
|
|
45565
|
+
auth: this.auth,
|
|
45566
|
+
networkSession: this.networkSession,
|
|
45567
|
+
cancellationToken: cancellationToken,
|
|
45568
|
+
}));
|
|
45569
|
+
return Object.assign(Object.assign({}, deserializeMetadataTaxonomyLevels(response.data)), { rawData: response.data });
|
|
45570
|
+
});
|
|
45571
|
+
}
|
|
45572
|
+
/**
|
|
45573
|
+
* Deletes the last level of the metadata taxonomy.
|
|
45574
|
+
* @param {string} namespace The namespace of the metadata taxonomy.
|
|
45575
|
+
Example: "enterprise_123456"
|
|
45576
|
+
* @param {string} taxonomyKey The key of the metadata taxonomy.
|
|
45577
|
+
Example: "geography"
|
|
45578
|
+
* @param {DeleteMetadataTaxonomyLevelOptionalsInput} optionalsInput
|
|
45579
|
+
* @returns {Promise<MetadataTaxonomyLevels>}
|
|
45580
|
+
*/
|
|
45581
|
+
deleteMetadataTaxonomyLevel(namespace_1, taxonomyKey_1) {
|
|
45582
|
+
return __awaiter$1(this, arguments, void 0, function* (namespace, taxonomyKey, optionalsInput = {}) {
|
|
45583
|
+
const optionals = new DeleteMetadataTaxonomyLevelOptionals({
|
|
45584
|
+
headers: optionalsInput.headers,
|
|
45585
|
+
cancellationToken: optionalsInput.cancellationToken,
|
|
45586
|
+
});
|
|
45587
|
+
const headers = optionals.headers;
|
|
45588
|
+
const cancellationToken = optionals.cancellationToken;
|
|
45589
|
+
const headersMap = prepareParams(Object.assign({}, headers.extraHeaders));
|
|
45590
|
+
const response = yield this.networkSession.networkClient.fetch(new FetchOptions({
|
|
45591
|
+
url: ''.concat(this.networkSession.baseUrls.baseUrl, '/2.0/metadata_taxonomies/', toString(namespace), '/', toString(taxonomyKey), '/levels:trim'),
|
|
45592
|
+
method: 'POST',
|
|
45593
|
+
headers: headersMap,
|
|
45594
|
+
responseFormat: 'json',
|
|
45595
|
+
auth: this.auth,
|
|
45596
|
+
networkSession: this.networkSession,
|
|
45597
|
+
cancellationToken: cancellationToken,
|
|
45598
|
+
}));
|
|
45599
|
+
return Object.assign(Object.assign({}, deserializeMetadataTaxonomyLevels(response.data)), { rawData: response.data });
|
|
45600
|
+
});
|
|
45601
|
+
}
|
|
45602
|
+
/**
|
|
45603
|
+
* Used to retrieve metadata taxonomy nodes based on the parameters specified.
|
|
45604
|
+
* Results are sorted in lexicographic order unless a `query` parameter is passed.
|
|
45605
|
+
* With a `query` parameter specified, results are sorted in order of relevance.
|
|
45606
|
+
* @param {string} namespace The namespace of the metadata taxonomy.
|
|
45607
|
+
Example: "enterprise_123456"
|
|
45608
|
+
* @param {string} taxonomyKey The key of the metadata taxonomy.
|
|
45609
|
+
Example: "geography"
|
|
45610
|
+
* @param {GetMetadataTaxonomyNodesOptionalsInput} optionalsInput
|
|
45611
|
+
* @returns {Promise<MetadataTaxonomyNodes>}
|
|
45612
|
+
*/
|
|
45613
|
+
getMetadataTaxonomyNodes(namespace_1, taxonomyKey_1) {
|
|
45614
|
+
return __awaiter$1(this, arguments, void 0, function* (namespace, taxonomyKey, optionalsInput = {}) {
|
|
45615
|
+
const optionals = new GetMetadataTaxonomyNodesOptionals({
|
|
45616
|
+
queryParams: optionalsInput.queryParams,
|
|
45617
|
+
headers: optionalsInput.headers,
|
|
45618
|
+
cancellationToken: optionalsInput.cancellationToken,
|
|
45619
|
+
});
|
|
45620
|
+
const queryParams = optionals.queryParams;
|
|
45621
|
+
const headers = optionals.headers;
|
|
45622
|
+
const cancellationToken = optionals.cancellationToken;
|
|
45623
|
+
const queryParamsMap = prepareParams({
|
|
45624
|
+
['level']: queryParams.level
|
|
45625
|
+
? queryParams.level.map(toString).join(',')
|
|
45626
|
+
: undefined,
|
|
45627
|
+
['parent']: queryParams.parent
|
|
45628
|
+
? queryParams.parent.map(toString).join(',')
|
|
45629
|
+
: undefined,
|
|
45630
|
+
['ancestor']: queryParams.ancestor
|
|
45631
|
+
? queryParams.ancestor.map(toString).join(',')
|
|
45632
|
+
: undefined,
|
|
45633
|
+
['query']: toString(queryParams.query),
|
|
45634
|
+
['include-total-result-count']: toString(queryParams.includeTotalResultCount),
|
|
45635
|
+
['marker']: toString(queryParams.marker),
|
|
45636
|
+
['limit']: toString(queryParams.limit),
|
|
45637
|
+
});
|
|
45638
|
+
const headersMap = prepareParams(Object.assign({}, headers.extraHeaders));
|
|
45639
|
+
const response = yield this.networkSession.networkClient.fetch(new FetchOptions({
|
|
45640
|
+
url: ''.concat(this.networkSession.baseUrls.baseUrl, '/2.0/metadata_taxonomies/', toString(namespace), '/', toString(taxonomyKey), '/nodes'),
|
|
45641
|
+
method: 'GET',
|
|
45642
|
+
params: queryParamsMap,
|
|
45643
|
+
headers: headersMap,
|
|
45644
|
+
responseFormat: 'json',
|
|
45645
|
+
auth: this.auth,
|
|
45646
|
+
networkSession: this.networkSession,
|
|
45647
|
+
cancellationToken: cancellationToken,
|
|
45648
|
+
}));
|
|
45649
|
+
return Object.assign(Object.assign({}, deserializeMetadataTaxonomyNodes(response.data)), { rawData: response.data });
|
|
45650
|
+
});
|
|
45651
|
+
}
|
|
45652
|
+
/**
|
|
45653
|
+
* Creates a new metadata taxonomy node.
|
|
45654
|
+
* @param {string} namespace The namespace of the metadata taxonomy.
|
|
45655
|
+
Example: "enterprise_123456"
|
|
45656
|
+
* @param {string} taxonomyKey The key of the metadata taxonomy.
|
|
45657
|
+
Example: "geography"
|
|
45658
|
+
* @param {CreateMetadataTaxonomyNodeRequestBody} requestBody Request body of createMetadataTaxonomyNode method
|
|
45659
|
+
* @param {CreateMetadataTaxonomyNodeOptionalsInput} optionalsInput
|
|
45660
|
+
* @returns {Promise<MetadataTaxonomyNode>}
|
|
45661
|
+
*/
|
|
45662
|
+
createMetadataTaxonomyNode(namespace_1, taxonomyKey_1, requestBody_1) {
|
|
45663
|
+
return __awaiter$1(this, arguments, void 0, function* (namespace, taxonomyKey, requestBody, optionalsInput = {}) {
|
|
45664
|
+
const optionals = new CreateMetadataTaxonomyNodeOptionals({
|
|
45665
|
+
headers: optionalsInput.headers,
|
|
45666
|
+
cancellationToken: optionalsInput.cancellationToken,
|
|
45667
|
+
});
|
|
45668
|
+
const headers = optionals.headers;
|
|
45669
|
+
const cancellationToken = optionals.cancellationToken;
|
|
45670
|
+
const headersMap = prepareParams(Object.assign({}, headers.extraHeaders));
|
|
45671
|
+
const response = yield this.networkSession.networkClient.fetch(new FetchOptions({
|
|
45672
|
+
url: ''.concat(this.networkSession.baseUrls.baseUrl, '/2.0/metadata_taxonomies/', toString(namespace), '/', toString(taxonomyKey), '/nodes'),
|
|
45673
|
+
method: 'POST',
|
|
45674
|
+
headers: headersMap,
|
|
45675
|
+
data: serializeCreateMetadataTaxonomyNodeRequestBody(requestBody),
|
|
45676
|
+
contentType: 'application/json',
|
|
45677
|
+
responseFormat: 'json',
|
|
45678
|
+
auth: this.auth,
|
|
45679
|
+
networkSession: this.networkSession,
|
|
45680
|
+
cancellationToken: cancellationToken,
|
|
45681
|
+
}));
|
|
45682
|
+
return Object.assign(Object.assign({}, deserializeMetadataTaxonomyNode(response.data)), { rawData: response.data });
|
|
45683
|
+
});
|
|
45684
|
+
}
|
|
45685
|
+
/**
|
|
45686
|
+
* Retrieves a metadata taxonomy node by its identifier.
|
|
45687
|
+
* @param {string} namespace The namespace of the metadata taxonomy.
|
|
45688
|
+
Example: "enterprise_123456"
|
|
45689
|
+
* @param {string} taxonomyKey The key of the metadata taxonomy.
|
|
45690
|
+
Example: "geography"
|
|
45691
|
+
* @param {string} nodeId The identifier of the metadata taxonomy node.
|
|
45692
|
+
Example: "14d3d433-c77f-49c5-b146-9dea370f6e32"
|
|
45693
|
+
* @param {GetMetadataTaxonomyNodeByIdOptionalsInput} optionalsInput
|
|
45694
|
+
* @returns {Promise<MetadataTaxonomyNode>}
|
|
45695
|
+
*/
|
|
45696
|
+
getMetadataTaxonomyNodeById(namespace_1, taxonomyKey_1, nodeId_1) {
|
|
45697
|
+
return __awaiter$1(this, arguments, void 0, function* (namespace, taxonomyKey, nodeId, optionalsInput = {}) {
|
|
45698
|
+
const optionals = new GetMetadataTaxonomyNodeByIdOptionals({
|
|
45699
|
+
headers: optionalsInput.headers,
|
|
45700
|
+
cancellationToken: optionalsInput.cancellationToken,
|
|
45701
|
+
});
|
|
45702
|
+
const headers = optionals.headers;
|
|
45703
|
+
const cancellationToken = optionals.cancellationToken;
|
|
45704
|
+
const headersMap = prepareParams(Object.assign({}, headers.extraHeaders));
|
|
45705
|
+
const response = yield this.networkSession.networkClient.fetch(new FetchOptions({
|
|
45706
|
+
url: ''.concat(this.networkSession.baseUrls.baseUrl, '/2.0/metadata_taxonomies/', toString(namespace), '/', toString(taxonomyKey), '/nodes/', toString(nodeId)),
|
|
45707
|
+
method: 'GET',
|
|
45708
|
+
headers: headersMap,
|
|
45709
|
+
responseFormat: 'json',
|
|
45710
|
+
auth: this.auth,
|
|
45711
|
+
networkSession: this.networkSession,
|
|
45712
|
+
cancellationToken: cancellationToken,
|
|
45713
|
+
}));
|
|
45714
|
+
return Object.assign(Object.assign({}, deserializeMetadataTaxonomyNode(response.data)), { rawData: response.data });
|
|
45715
|
+
});
|
|
45716
|
+
}
|
|
45717
|
+
/**
|
|
45718
|
+
* Updates an existing metadata taxonomy node.
|
|
45719
|
+
* @param {string} namespace The namespace of the metadata taxonomy.
|
|
45720
|
+
Example: "enterprise_123456"
|
|
45721
|
+
* @param {string} taxonomyKey The key of the metadata taxonomy.
|
|
45722
|
+
Example: "geography"
|
|
45723
|
+
* @param {string} nodeId The identifier of the metadata taxonomy node.
|
|
45724
|
+
Example: "14d3d433-c77f-49c5-b146-9dea370f6e32"
|
|
45725
|
+
* @param {UpdateMetadataTaxonomyNodeOptionalsInput} optionalsInput
|
|
45726
|
+
* @returns {Promise<MetadataTaxonomyNode>}
|
|
45727
|
+
*/
|
|
45728
|
+
updateMetadataTaxonomyNode(namespace_1, taxonomyKey_1, nodeId_1) {
|
|
45729
|
+
return __awaiter$1(this, arguments, void 0, function* (namespace, taxonomyKey, nodeId, optionalsInput = {}) {
|
|
45730
|
+
const optionals = new UpdateMetadataTaxonomyNodeOptionals({
|
|
45731
|
+
requestBody: optionalsInput.requestBody,
|
|
45732
|
+
headers: optionalsInput.headers,
|
|
45733
|
+
cancellationToken: optionalsInput.cancellationToken,
|
|
45734
|
+
});
|
|
45735
|
+
const requestBody = optionals.requestBody;
|
|
45736
|
+
const headers = optionals.headers;
|
|
45737
|
+
const cancellationToken = optionals.cancellationToken;
|
|
45738
|
+
const headersMap = prepareParams(Object.assign({}, headers.extraHeaders));
|
|
45739
|
+
const response = yield this.networkSession.networkClient.fetch(new FetchOptions({
|
|
45740
|
+
url: ''.concat(this.networkSession.baseUrls.baseUrl, '/2.0/metadata_taxonomies/', toString(namespace), '/', toString(taxonomyKey), '/nodes/', toString(nodeId)),
|
|
45741
|
+
method: 'PATCH',
|
|
45742
|
+
headers: headersMap,
|
|
45743
|
+
data: serializeUpdateMetadataTaxonomyNodeRequestBody(requestBody),
|
|
45744
|
+
contentType: 'application/json',
|
|
45745
|
+
responseFormat: 'json',
|
|
45746
|
+
auth: this.auth,
|
|
45747
|
+
networkSession: this.networkSession,
|
|
45748
|
+
cancellationToken: cancellationToken,
|
|
45749
|
+
}));
|
|
45750
|
+
return Object.assign(Object.assign({}, deserializeMetadataTaxonomyNode(response.data)), { rawData: response.data });
|
|
45751
|
+
});
|
|
45752
|
+
}
|
|
45753
|
+
/**
|
|
45754
|
+
* Delete a metadata taxonomy node.
|
|
45755
|
+
* This deletion is permanent and cannot be reverted.
|
|
45756
|
+
* Only metadata taxonomy nodes without any children can be deleted.
|
|
45757
|
+
* @param {string} namespace The namespace of the metadata taxonomy.
|
|
45758
|
+
Example: "enterprise_123456"
|
|
45759
|
+
* @param {string} taxonomyKey The key of the metadata taxonomy.
|
|
45760
|
+
Example: "geography"
|
|
45761
|
+
* @param {string} nodeId The identifier of the metadata taxonomy node.
|
|
45762
|
+
Example: "14d3d433-c77f-49c5-b146-9dea370f6e32"
|
|
45763
|
+
* @param {DeleteMetadataTaxonomyNodeOptionalsInput} optionalsInput
|
|
45764
|
+
* @returns {Promise<undefined>}
|
|
45765
|
+
*/
|
|
45766
|
+
deleteMetadataTaxonomyNode(namespace_1, taxonomyKey_1, nodeId_1) {
|
|
45767
|
+
return __awaiter$1(this, arguments, void 0, function* (namespace, taxonomyKey, nodeId, optionalsInput = {}) {
|
|
45768
|
+
const optionals = new DeleteMetadataTaxonomyNodeOptionals({
|
|
45769
|
+
headers: optionalsInput.headers,
|
|
45770
|
+
cancellationToken: optionalsInput.cancellationToken,
|
|
45771
|
+
});
|
|
45772
|
+
const headers = optionals.headers;
|
|
45773
|
+
const cancellationToken = optionals.cancellationToken;
|
|
45774
|
+
const headersMap = prepareParams(Object.assign({}, headers.extraHeaders));
|
|
45775
|
+
yield this.networkSession.networkClient.fetch(new FetchOptions({
|
|
45776
|
+
url: ''.concat(this.networkSession.baseUrls.baseUrl, '/2.0/metadata_taxonomies/', toString(namespace), '/', toString(taxonomyKey), '/nodes/', toString(nodeId)),
|
|
45777
|
+
method: 'DELETE',
|
|
45778
|
+
headers: headersMap,
|
|
45779
|
+
responseFormat: 'no_content',
|
|
45780
|
+
auth: this.auth,
|
|
45781
|
+
networkSession: this.networkSession,
|
|
45782
|
+
cancellationToken: cancellationToken,
|
|
45783
|
+
}));
|
|
45784
|
+
return void 0;
|
|
45785
|
+
});
|
|
45786
|
+
}
|
|
45787
|
+
/**
|
|
45788
|
+
* Used to retrieve metadata taxonomy nodes which are available for the taxonomy field based
|
|
45789
|
+
* on its configuration and the parameters specified.
|
|
45790
|
+
* Results are sorted in lexicographic order unless a `query` parameter is passed.
|
|
45791
|
+
* With a `query` parameter specified, results are sorted in order of relevance.
|
|
45792
|
+
* @param {string} namespace The namespace of the metadata taxonomy.
|
|
45793
|
+
Example: "enterprise_123456"
|
|
45794
|
+
* @param {string} templateKey The name of the metadata template.
|
|
45795
|
+
Example: "properties"
|
|
45796
|
+
* @param {string} fieldKey The key of the metadata taxonomy field in the template.
|
|
45797
|
+
Example: "geography"
|
|
45798
|
+
* @param {GetMetadataTemplateFieldOptionsOptionalsInput} optionalsInput
|
|
45799
|
+
* @returns {Promise<MetadataTaxonomyNodes>}
|
|
45800
|
+
*/
|
|
45801
|
+
getMetadataTemplateFieldOptions(namespace_1, templateKey_1, fieldKey_1) {
|
|
45802
|
+
return __awaiter$1(this, arguments, void 0, function* (namespace, templateKey, fieldKey, optionalsInput = {}) {
|
|
45803
|
+
const optionals = new GetMetadataTemplateFieldOptionsOptionals({
|
|
45804
|
+
queryParams: optionalsInput.queryParams,
|
|
45805
|
+
headers: optionalsInput.headers,
|
|
45806
|
+
cancellationToken: optionalsInput.cancellationToken,
|
|
45807
|
+
});
|
|
45808
|
+
const queryParams = optionals.queryParams;
|
|
45809
|
+
const headers = optionals.headers;
|
|
45810
|
+
const cancellationToken = optionals.cancellationToken;
|
|
45811
|
+
const queryParamsMap = prepareParams({
|
|
45812
|
+
['level']: queryParams.level
|
|
45813
|
+
? queryParams.level.map(toString).join(',')
|
|
45814
|
+
: undefined,
|
|
45815
|
+
['parent']: queryParams.parent
|
|
45816
|
+
? queryParams.parent.map(toString).join(',')
|
|
45817
|
+
: undefined,
|
|
45818
|
+
['ancestor']: queryParams.ancestor
|
|
45819
|
+
? queryParams.ancestor.map(toString).join(',')
|
|
45820
|
+
: undefined,
|
|
45821
|
+
['query']: toString(queryParams.query),
|
|
45822
|
+
['include-total-result-count']: toString(queryParams.includeTotalResultCount),
|
|
45823
|
+
['only-selectable-options']: toString(queryParams.onlySelectableOptions),
|
|
45824
|
+
['marker']: toString(queryParams.marker),
|
|
45825
|
+
['limit']: toString(queryParams.limit),
|
|
45826
|
+
});
|
|
45827
|
+
const headersMap = prepareParams(Object.assign({}, headers.extraHeaders));
|
|
45828
|
+
const response = yield this.networkSession.networkClient.fetch(new FetchOptions({
|
|
45829
|
+
url: ''.concat(this.networkSession.baseUrls.baseUrl, '/2.0/metadata_templates/', toString(namespace), '/', toString(templateKey), '/fields/', toString(fieldKey), '/options'),
|
|
45830
|
+
method: 'GET',
|
|
45831
|
+
params: queryParamsMap,
|
|
45832
|
+
headers: headersMap,
|
|
45833
|
+
responseFormat: 'json',
|
|
45834
|
+
auth: this.auth,
|
|
45835
|
+
networkSession: this.networkSession,
|
|
45836
|
+
cancellationToken: cancellationToken,
|
|
45837
|
+
}));
|
|
45838
|
+
return Object.assign(Object.assign({}, deserializeMetadataTaxonomyNodes(response.data)), { rawData: response.data });
|
|
45839
|
+
});
|
|
45840
|
+
}
|
|
45841
|
+
}
|
|
45842
|
+
function serializeCreateMetadataTaxonomyRequestBody(val) {
|
|
45843
|
+
return {
|
|
45844
|
+
['key']: val.key,
|
|
45845
|
+
['displayName']: val.displayName,
|
|
45846
|
+
['namespace']: val.namespace,
|
|
45847
|
+
};
|
|
45848
|
+
}
|
|
45849
|
+
function serializeUpdateMetadataTaxonomyRequestBody(val) {
|
|
45850
|
+
return { ['displayName']: val.displayName };
|
|
45851
|
+
}
|
|
45852
|
+
function serializeUpdateMetadataTaxonomyLevelByIdRequestBody(val) {
|
|
45853
|
+
return { ['displayName']: val.displayName, ['description']: val.description };
|
|
45854
|
+
}
|
|
45855
|
+
function serializeAddMetadataTaxonomyLevelRequestBody(val) {
|
|
45856
|
+
return { ['displayName']: val.displayName, ['description']: val.description };
|
|
45857
|
+
}
|
|
45858
|
+
function serializeCreateMetadataTaxonomyNodeRequestBody(val) {
|
|
45859
|
+
return {
|
|
45860
|
+
['displayName']: val.displayName,
|
|
45861
|
+
['level']: val.level,
|
|
45862
|
+
['parentId']: val.parentId,
|
|
45863
|
+
};
|
|
45864
|
+
}
|
|
45865
|
+
function serializeUpdateMetadataTaxonomyNodeRequestBody(val) {
|
|
45866
|
+
return { ['displayName']: val.displayName };
|
|
45867
|
+
}
|
|
45868
|
+
|
|
44187
45869
|
function serializeFileReferenceV2025R0TypeField(val) {
|
|
44188
45870
|
return val;
|
|
44189
45871
|
}
|
|
@@ -49897,7 +51579,7 @@
|
|
|
49897
51579
|
/**
|
|
49898
51580
|
* Retrieves archives for an enterprise.
|
|
49899
51581
|
*
|
|
49900
|
-
* To learn more about the archive APIs, see the [Archive API Guide](
|
|
51582
|
+
* To learn more about the archive APIs, see the [Archive API Guide](https://developer.box.com/guides/archives).
|
|
49901
51583
|
* @param {GetArchivesV2025R0QueryParams} queryParams Query parameters of getArchivesV2025R0 method
|
|
49902
51584
|
* @param {GetArchivesV2025R0HeadersInput} headersInput Headers of getArchivesV2025R0 method
|
|
49903
51585
|
* @param {CancellationToken} cancellationToken Token used for request cancellation.
|
|
@@ -49930,7 +51612,7 @@
|
|
|
49930
51612
|
/**
|
|
49931
51613
|
* Creates an archive.
|
|
49932
51614
|
*
|
|
49933
|
-
* To learn more about the archive APIs, see the [Archive API Guide](
|
|
51615
|
+
* To learn more about the archive APIs, see the [Archive API Guide](https://developer.box.com/guides/archives).
|
|
49934
51616
|
* @param {CreateArchiveV2025R0RequestBody} requestBody Request body of createArchiveV2025R0 method
|
|
49935
51617
|
* @param {CreateArchiveV2025R0OptionalsInput} optionalsInput
|
|
49936
51618
|
* @returns {Promise<ArchiveV2025R0>}
|
|
@@ -49961,7 +51643,7 @@
|
|
|
49961
51643
|
/**
|
|
49962
51644
|
* Permanently deletes an archive.
|
|
49963
51645
|
*
|
|
49964
|
-
* To learn more about the archive APIs, see the [Archive API Guide](
|
|
51646
|
+
* To learn more about the archive APIs, see the [Archive API Guide](https://developer.box.com/guides/archives).
|
|
49965
51647
|
* @param {string} archiveId The ID of the archive.
|
|
49966
51648
|
Example: "982312"
|
|
49967
51649
|
* @param {DeleteArchiveByIdV2025R0OptionalsInput} optionalsInput
|
|
@@ -49991,7 +51673,7 @@
|
|
|
49991
51673
|
/**
|
|
49992
51674
|
* Updates an archive.
|
|
49993
51675
|
*
|
|
49994
|
-
* To learn more about the archive APIs, see the [Archive API Guide](
|
|
51676
|
+
* To learn more about the archive APIs, see the [Archive API Guide](https://developer.box.com/guides/archives).
|
|
49995
51677
|
* @param {string} archiveId The ID of the archive.
|
|
49996
51678
|
Example: "982312"
|
|
49997
51679
|
* @param {UpdateArchiveByIdV2025R0OptionalsInput} optionalsInput
|
|
@@ -50494,6 +52176,10 @@
|
|
|
50494
52176
|
auth: this.auth,
|
|
50495
52177
|
networkSession: this.networkSession,
|
|
50496
52178
|
});
|
|
52179
|
+
this.metadataTaxonomies = new MetadataTaxonomiesManager({
|
|
52180
|
+
auth: this.auth,
|
|
52181
|
+
networkSession: this.networkSession,
|
|
52182
|
+
});
|
|
50497
52183
|
this.docgenTemplate = new DocgenTemplateManager({
|
|
50498
52184
|
auth: this.auth,
|
|
50499
52185
|
networkSession: this.networkSession,
|