box-node-sdk 10.2.0 → 10.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/bundle.js +1723 -37
- package/lib/bundle.js.map +1 -1
- package/lib/client.d.ts +3 -1
- package/lib/client.d.ts.map +1 -1
- package/lib/client.js +5 -0
- package/lib/client.js.map +1 -1
- package/lib/managers/ai.d.ts +3 -3
- package/lib/managers/ai.js +3 -3
- package/lib/managers/aiStudio.js.map +1 -1
- package/lib/managers/appItemAssociations.js.map +1 -1
- package/lib/managers/archives.d.ts +4 -4
- package/lib/managers/archives.js +4 -4
- package/lib/managers/archives.js.map +1 -1
- package/lib/managers/avatars.js.map +1 -1
- package/lib/managers/chunkedUploads.d.ts +18 -18
- package/lib/managers/chunkedUploads.js +18 -18
- package/lib/managers/chunkedUploads.js.map +1 -1
- package/lib/managers/collaborationAllowlistEntries.js.map +1 -1
- package/lib/managers/collaborationAllowlistExemptTargets.js.map +1 -1
- package/lib/managers/collections.js.map +1 -1
- package/lib/managers/comments.js.map +1 -1
- package/lib/managers/devicePinners.js.map +1 -1
- package/lib/managers/docgen.js.map +1 -1
- package/lib/managers/docgenTemplate.js.map +1 -1
- package/lib/managers/downloads.js.map +1 -1
- package/lib/managers/emailAliases.js.map +1 -1
- package/lib/managers/enterpriseConfigurations.js.map +1 -1
- package/lib/managers/fileClassifications.d.ts +3 -3
- package/lib/managers/fileClassifications.js.map +1 -1
- package/lib/managers/fileMetadata.d.ts +24 -2
- package/lib/managers/fileMetadata.d.ts.map +1 -1
- package/lib/managers/fileMetadata.js +16 -0
- package/lib/managers/fileMetadata.js.map +1 -1
- package/lib/managers/fileRequests.js.map +1 -1
- package/lib/managers/fileVersionLegalHolds.js.map +1 -1
- package/lib/managers/fileVersionRetentions.d.ts +2 -2
- package/lib/managers/fileVersionRetentions.js +2 -2
- package/lib/managers/fileVersionRetentions.js.map +1 -1
- package/lib/managers/fileVersions.js.map +1 -1
- package/lib/managers/fileWatermarks.js.map +1 -1
- package/lib/managers/files.d.ts +1 -1
- package/lib/managers/files.d.ts.map +1 -1
- package/lib/managers/files.js.map +1 -1
- package/lib/managers/folderClassifications.d.ts +3 -3
- package/lib/managers/folderClassifications.js.map +1 -1
- package/lib/managers/folderLocks.js.map +1 -1
- package/lib/managers/folderMetadata.d.ts +12 -1
- package/lib/managers/folderMetadata.d.ts.map +1 -1
- package/lib/managers/folderMetadata.js +8 -0
- package/lib/managers/folderMetadata.js.map +1 -1
- package/lib/managers/folderWatermarks.js.map +1 -1
- package/lib/managers/folders.d.ts +3 -3
- package/lib/managers/folders.d.ts.map +1 -1
- package/lib/managers/folders.js +2 -2
- package/lib/managers/folders.js.map +1 -1
- package/lib/managers/groups.js.map +1 -1
- package/lib/managers/hubCollaborations.js.map +1 -1
- package/lib/managers/hubItems.js.map +1 -1
- package/lib/managers/hubs.js.map +1 -1
- package/lib/managers/index.d.ts +1 -0
- package/lib/managers/index.d.ts.map +1 -1
- package/lib/managers/index.js +1 -0
- package/lib/managers/index.js.map +1 -1
- package/lib/managers/integrationMappings.js.map +1 -1
- package/lib/managers/invites.js.map +1 -1
- package/lib/managers/legalHoldPolicies.js.map +1 -1
- package/lib/managers/legalHoldPolicyAssignments.js.map +1 -1
- package/lib/managers/listCollaborations.js.map +1 -1
- package/lib/managers/memberships.js.map +1 -1
- package/lib/managers/metadataCascadePolicies.d.ts +3 -3
- package/lib/managers/metadataCascadePolicies.d.ts.map +1 -1
- package/lib/managers/metadataCascadePolicies.js.map +1 -1
- package/lib/managers/metadataTaxonomies.d.ts +704 -0
- package/lib/managers/metadataTaxonomies.d.ts.map +1 -0
- package/lib/managers/metadataTaxonomies.js +1157 -0
- package/lib/managers/metadataTaxonomies.js.map +1 -0
- package/lib/managers/metadataTemplates.d.ts +30 -3
- package/lib/managers/metadataTemplates.d.ts.map +1 -1
- package/lib/managers/metadataTemplates.js +106 -33
- package/lib/managers/metadataTemplates.js.map +1 -1
- package/lib/managers/retentionPolicies.js.map +1 -1
- package/lib/managers/retentionPolicyAssignments.js.map +1 -1
- package/lib/managers/search.d.ts +1 -1
- package/lib/managers/search.d.ts.map +1 -1
- package/lib/managers/sharedLinksFiles.js.map +1 -1
- package/lib/managers/sharedLinksFolders.js.map +1 -1
- package/lib/managers/sharedLinksWebLinks.js.map +1 -1
- package/lib/managers/shieldInformationBarrierReports.js.map +1 -1
- package/lib/managers/shieldInformationBarrierSegmentMembers.js.map +1 -1
- package/lib/managers/shieldInformationBarrierSegmentRestrictions.js.map +1 -1
- package/lib/managers/shieldInformationBarrierSegments.js.map +1 -1
- package/lib/managers/shieldInformationBarriers.js.map +1 -1
- package/lib/managers/shieldLists.js.map +1 -1
- package/lib/managers/signRequests.js.map +1 -1
- package/lib/managers/signTemplates.js.map +1 -1
- package/lib/managers/skills.js.map +1 -1
- package/lib/managers/storagePolicies.js.map +1 -1
- package/lib/managers/storagePolicyAssignments.js.map +1 -1
- package/lib/managers/taskAssignments.js.map +1 -1
- package/lib/managers/tasks.js.map +1 -1
- package/lib/managers/termsOfServiceUserStatuses.js.map +1 -1
- package/lib/managers/termsOfServices.js.map +1 -1
- package/lib/managers/transfer.js.map +1 -1
- package/lib/managers/trashedFiles.d.ts +2 -2
- package/lib/managers/trashedFiles.js +2 -2
- package/lib/managers/trashedFiles.js.map +1 -1
- package/lib/managers/trashedFolders.d.ts +2 -2
- package/lib/managers/trashedFolders.js +2 -2
- package/lib/managers/trashedFolders.js.map +1 -1
- package/lib/managers/trashedWebLinks.js.map +1 -1
- package/lib/managers/uploads.js.map +1 -1
- package/lib/managers/userCollaborations.js.map +1 -1
- package/lib/managers/users.js.map +1 -1
- package/lib/managers/webLinks.js.map +1 -1
- package/lib/managers/webhooks.js.map +1 -1
- package/lib/managers/workflows.js.map +1 -1
- package/lib/managers/zipDownloads.d.ts +2 -2
- package/lib/managers/zipDownloads.js +2 -2
- package/lib/networking/retries.d.ts.map +1 -1
- package/lib/networking/retries.js +3 -1
- package/lib/networking/retries.js.map +1 -1
- package/lib/networking/version.d.ts +1 -1
- package/lib/networking/version.js +1 -1
- package/lib/schemas/aiAgentBasicTextToolBase.d.ts +1 -1
- package/lib/schemas/aiAgentBasicTextToolBase.d.ts.map +1 -1
- package/lib/schemas/aiAgentReference.d.ts +2 -2
- package/lib/schemas/aiAgentReference.d.ts.map +1 -1
- package/lib/schemas/aiAgentSpreadsheetTool.d.ts +1 -1
- package/lib/schemas/aiAgentSpreadsheetTool.d.ts.map +1 -1
- package/lib/schemas/index.d.ts +22 -3
- package/lib/schemas/index.d.ts.map +1 -1
- package/lib/schemas/index.js +22 -3
- package/lib/schemas/index.js.map +1 -1
- package/lib/schemas/metadataCascadePolicy.d.ts +6 -6
- package/lib/schemas/metadataCascadePolicy.d.ts.map +1 -1
- package/lib/schemas/metadataFilter.d.ts +3 -3
- package/lib/schemas/metadataFilter.d.ts.map +1 -1
- package/lib/schemas/metadataTaxonomies.d.ts +22 -0
- package/lib/schemas/metadataTaxonomies.d.ts.map +1 -0
- package/lib/schemas/metadataTaxonomies.js +67 -0
- package/lib/schemas/metadataTaxonomies.js.map +1 -0
- package/lib/schemas/metadataTaxonomy.d.ts +24 -0
- package/lib/schemas/metadataTaxonomy.d.ts.map +1 -0
- package/lib/schemas/metadataTaxonomy.js +89 -0
- package/lib/schemas/metadataTaxonomy.js.map +1 -0
- package/lib/schemas/metadataTaxonomyAncestor.d.ts +16 -0
- package/lib/schemas/metadataTaxonomyAncestor.d.ts.map +1 -0
- package/lib/schemas/metadataTaxonomyAncestor.js +46 -0
- package/lib/schemas/metadataTaxonomyAncestor.js.map +1 -0
- package/lib/schemas/metadataTaxonomyLevel.d.ts +16 -0
- package/lib/schemas/metadataTaxonomyLevel.d.ts.map +1 -0
- package/lib/schemas/metadataTaxonomyLevel.js +46 -0
- package/lib/schemas/metadataTaxonomyLevel.js.map +1 -0
- package/lib/schemas/metadataTaxonomyLevels.d.ts +11 -0
- package/lib/schemas/metadataTaxonomyLevels.d.ts.map +1 -0
- package/lib/schemas/metadataTaxonomyLevels.js +39 -0
- package/lib/schemas/metadataTaxonomyLevels.js.map +1 -0
- package/lib/schemas/metadataTaxonomyNode.d.ts +28 -0
- package/lib/schemas/metadataTaxonomyNode.d.ts.map +1 -0
- package/lib/schemas/metadataTaxonomyNode.js +113 -0
- package/lib/schemas/metadataTaxonomyNode.js.map +1 -0
- package/lib/schemas/metadataTaxonomyNodes.d.ts +22 -0
- package/lib/schemas/metadataTaxonomyNodes.d.ts.map +1 -0
- package/lib/schemas/metadataTaxonomyNodes.js +67 -0
- package/lib/schemas/metadataTaxonomyNodes.js.map +1 -0
- package/lib/schemas/metadataTemplate.d.ts +1 -1
- package/lib/schemas/metadataTemplate.d.ts.map +1 -1
- package/lib/schemas/metadataTemplate.js +3 -0
- package/lib/schemas/metadataTemplate.js.map +1 -1
- package/lib/schemas/signRequestCreateRequest.d.ts +1 -1
- package/lib/schemas/signRequestSignerInput.d.ts +6 -1
- package/lib/schemas/signRequestSignerInput.d.ts.map +1 -1
- package/lib/schemas/signRequestSignerInput.js +9 -0
- package/lib/schemas/signRequestSignerInput.js.map +1 -1
- package/lib/schemas/signRequestSignerInputCustomValidation.d.ts +36 -0
- package/lib/schemas/signRequestSignerInputCustomValidation.d.ts.map +1 -0
- package/lib/schemas/signRequestSignerInputCustomValidation.js +123 -0
- package/lib/schemas/signRequestSignerInputCustomValidation.js.map +1 -0
- package/lib/schemas/signRequestSignerInputDateAsiaValidation.d.ts +13 -0
- package/lib/schemas/signRequestSignerInputDateAsiaValidation.d.ts.map +1 -0
- package/lib/schemas/signRequestSignerInputDateAsiaValidation.js +44 -0
- package/lib/schemas/signRequestSignerInputDateAsiaValidation.js.map +1 -0
- package/lib/schemas/signRequestSignerInputDateEuValidation.d.ts +13 -0
- package/lib/schemas/signRequestSignerInputDateEuValidation.d.ts.map +1 -0
- package/lib/schemas/signRequestSignerInputDateEuValidation.js +44 -0
- package/lib/schemas/signRequestSignerInputDateEuValidation.js.map +1 -0
- package/lib/schemas/signRequestSignerInputDateIsoValidation.d.ts +13 -0
- package/lib/schemas/signRequestSignerInputDateIsoValidation.d.ts.map +1 -0
- package/lib/schemas/signRequestSignerInputDateIsoValidation.js +44 -0
- package/lib/schemas/signRequestSignerInputDateIsoValidation.js.map +1 -0
- package/lib/schemas/signRequestSignerInputDateUsValidation.d.ts +13 -0
- package/lib/schemas/signRequestSignerInputDateUsValidation.d.ts.map +1 -0
- package/lib/schemas/signRequestSignerInputDateUsValidation.js +44 -0
- package/lib/schemas/signRequestSignerInputDateUsValidation.js.map +1 -0
- package/lib/schemas/signRequestSignerInputEmailValidation.d.ts +22 -0
- package/lib/schemas/signRequestSignerInputEmailValidation.d.ts.map +1 -0
- package/lib/schemas/signRequestSignerInputEmailValidation.js +82 -0
- package/lib/schemas/signRequestSignerInputEmailValidation.js.map +1 -0
- package/lib/schemas/signRequestSignerInputNumberWithCommaValidation.d.ts +13 -0
- package/lib/schemas/signRequestSignerInputNumberWithCommaValidation.d.ts.map +1 -0
- package/lib/schemas/signRequestSignerInputNumberWithCommaValidation.js +44 -0
- package/lib/schemas/signRequestSignerInputNumberWithCommaValidation.js.map +1 -0
- package/lib/schemas/signRequestSignerInputNumberWithPeriodValidation.d.ts +13 -0
- package/lib/schemas/signRequestSignerInputNumberWithPeriodValidation.d.ts.map +1 -0
- package/lib/schemas/signRequestSignerInputNumberWithPeriodValidation.js +44 -0
- package/lib/schemas/signRequestSignerInputNumberWithPeriodValidation.js.map +1 -0
- package/lib/schemas/signRequestSignerInputSsnValidation.d.ts +22 -0
- package/lib/schemas/signRequestSignerInputSsnValidation.d.ts.map +1 -0
- package/lib/schemas/signRequestSignerInputSsnValidation.js +82 -0
- package/lib/schemas/signRequestSignerInputSsnValidation.js.map +1 -0
- package/lib/schemas/signRequestSignerInputValidation.d.ts +16 -0
- package/lib/schemas/signRequestSignerInputValidation.d.ts.map +1 -0
- package/lib/schemas/signRequestSignerInputValidation.js +251 -0
- package/lib/schemas/signRequestSignerInputValidation.js.map +1 -0
- package/lib/schemas/signRequestSignerInputZip4Validation.d.ts +22 -0
- package/lib/schemas/signRequestSignerInputZip4Validation.d.ts.map +1 -0
- package/lib/schemas/signRequestSignerInputZip4Validation.js +82 -0
- package/lib/schemas/signRequestSignerInputZip4Validation.js.map +1 -0
- package/lib/schemas/signRequestSignerInputZipValidation.d.ts +22 -0
- package/lib/schemas/signRequestSignerInputZipValidation.d.ts.map +1 -0
- package/lib/schemas/signRequestSignerInputZipValidation.js +82 -0
- package/lib/schemas/signRequestSignerInputZipValidation.js.map +1 -0
- package/lib/schemas/signTemplate.d.ts +1 -1
- package/lib/schemas/templateSignerInput.d.ts +6 -1
- package/lib/schemas/templateSignerInput.d.ts.map +1 -1
- package/lib/schemas/templateSignerInput.js +9 -0
- package/lib/schemas/templateSignerInput.js.map +1 -1
- package/lib-esm/client.d.ts +3 -1
- package/lib-esm/client.js +6 -0
- package/lib-esm/client.js.map +1 -1
- package/lib-esm/managers/ai.d.ts +3 -3
- package/lib-esm/managers/ai.js +3 -3
- package/lib-esm/managers/aiStudio.js.map +1 -1
- package/lib-esm/managers/appItemAssociations.js.map +1 -1
- package/lib-esm/managers/archives.d.ts +4 -4
- package/lib-esm/managers/archives.js +4 -4
- package/lib-esm/managers/archives.js.map +1 -1
- package/lib-esm/managers/avatars.js.map +1 -1
- package/lib-esm/managers/chunkedUploads.d.ts +18 -18
- package/lib-esm/managers/chunkedUploads.js +18 -18
- package/lib-esm/managers/chunkedUploads.js.map +1 -1
- package/lib-esm/managers/collaborationAllowlistEntries.js.map +1 -1
- package/lib-esm/managers/collaborationAllowlistExemptTargets.js.map +1 -1
- package/lib-esm/managers/collections.js.map +1 -1
- package/lib-esm/managers/comments.js.map +1 -1
- package/lib-esm/managers/devicePinners.js.map +1 -1
- package/lib-esm/managers/docgen.js.map +1 -1
- package/lib-esm/managers/docgenTemplate.js.map +1 -1
- package/lib-esm/managers/downloads.js.map +1 -1
- package/lib-esm/managers/emailAliases.js.map +1 -1
- package/lib-esm/managers/enterpriseConfigurations.js.map +1 -1
- package/lib-esm/managers/fileClassifications.d.ts +3 -3
- package/lib-esm/managers/fileClassifications.js +1 -1
- package/lib-esm/managers/fileClassifications.js.map +1 -1
- package/lib-esm/managers/fileMetadata.d.ts +24 -2
- package/lib-esm/managers/fileMetadata.js +16 -0
- package/lib-esm/managers/fileMetadata.js.map +1 -1
- package/lib-esm/managers/fileRequests.js.map +1 -1
- package/lib-esm/managers/fileVersionLegalHolds.js.map +1 -1
- package/lib-esm/managers/fileVersionRetentions.d.ts +2 -2
- package/lib-esm/managers/fileVersionRetentions.js +2 -2
- package/lib-esm/managers/fileVersionRetentions.js.map +1 -1
- package/lib-esm/managers/fileVersions.js.map +1 -1
- package/lib-esm/managers/fileWatermarks.js.map +1 -1
- package/lib-esm/managers/files.d.ts +1 -1
- package/lib-esm/managers/files.js.map +1 -1
- package/lib-esm/managers/folderClassifications.d.ts +3 -3
- package/lib-esm/managers/folderClassifications.js +1 -1
- package/lib-esm/managers/folderClassifications.js.map +1 -1
- package/lib-esm/managers/folderLocks.js.map +1 -1
- package/lib-esm/managers/folderMetadata.d.ts +12 -1
- package/lib-esm/managers/folderMetadata.js +8 -0
- package/lib-esm/managers/folderMetadata.js.map +1 -1
- package/lib-esm/managers/folderWatermarks.js.map +1 -1
- package/lib-esm/managers/folders.d.ts +3 -3
- package/lib-esm/managers/folders.js +2 -2
- package/lib-esm/managers/folders.js.map +1 -1
- package/lib-esm/managers/groups.js.map +1 -1
- package/lib-esm/managers/hubCollaborations.js.map +1 -1
- package/lib-esm/managers/hubItems.js.map +1 -1
- package/lib-esm/managers/hubs.js.map +1 -1
- package/lib-esm/managers/index.d.ts +1 -0
- package/lib-esm/managers/index.js +1 -0
- package/lib-esm/managers/index.js.map +1 -1
- package/lib-esm/managers/integrationMappings.js.map +1 -1
- package/lib-esm/managers/invites.js.map +1 -1
- package/lib-esm/managers/legalHoldPolicies.js.map +1 -1
- package/lib-esm/managers/legalHoldPolicyAssignments.js.map +1 -1
- package/lib-esm/managers/listCollaborations.js.map +1 -1
- package/lib-esm/managers/memberships.js.map +1 -1
- package/lib-esm/managers/metadataCascadePolicies.d.ts +3 -3
- package/lib-esm/managers/metadataCascadePolicies.js.map +1 -1
- package/lib-esm/managers/metadataTaxonomies.d.ts +703 -0
- package/lib-esm/managers/metadataTaxonomies.js +1158 -0
- package/lib-esm/managers/metadataTaxonomies.js.map +1 -0
- package/lib-esm/managers/metadataTemplates.d.ts +30 -3
- package/lib-esm/managers/metadataTemplates.js +106 -33
- package/lib-esm/managers/metadataTemplates.js.map +1 -1
- package/lib-esm/managers/retentionPolicies.js.map +1 -1
- package/lib-esm/managers/retentionPolicyAssignments.js.map +1 -1
- package/lib-esm/managers/search.d.ts +1 -1
- package/lib-esm/managers/sharedLinksFiles.js.map +1 -1
- package/lib-esm/managers/sharedLinksFolders.js.map +1 -1
- package/lib-esm/managers/sharedLinksWebLinks.js.map +1 -1
- package/lib-esm/managers/shieldInformationBarrierReports.js.map +1 -1
- package/lib-esm/managers/shieldInformationBarrierSegmentMembers.js.map +1 -1
- package/lib-esm/managers/shieldInformationBarrierSegmentRestrictions.js.map +1 -1
- package/lib-esm/managers/shieldInformationBarrierSegments.js.map +1 -1
- package/lib-esm/managers/shieldInformationBarriers.js.map +1 -1
- package/lib-esm/managers/shieldLists.js.map +1 -1
- package/lib-esm/managers/signRequests.js.map +1 -1
- package/lib-esm/managers/signTemplates.js.map +1 -1
- package/lib-esm/managers/skills.js.map +1 -1
- package/lib-esm/managers/storagePolicies.js.map +1 -1
- package/lib-esm/managers/storagePolicyAssignments.js.map +1 -1
- package/lib-esm/managers/taskAssignments.js.map +1 -1
- package/lib-esm/managers/tasks.js.map +1 -1
- package/lib-esm/managers/termsOfServiceUserStatuses.js.map +1 -1
- package/lib-esm/managers/termsOfServices.js.map +1 -1
- package/lib-esm/managers/transfer.js.map +1 -1
- package/lib-esm/managers/trashedFiles.d.ts +2 -2
- package/lib-esm/managers/trashedFiles.js +2 -2
- package/lib-esm/managers/trashedFiles.js.map +1 -1
- package/lib-esm/managers/trashedFolders.d.ts +2 -2
- package/lib-esm/managers/trashedFolders.js +2 -2
- package/lib-esm/managers/trashedFolders.js.map +1 -1
- package/lib-esm/managers/trashedWebLinks.js.map +1 -1
- package/lib-esm/managers/uploads.js.map +1 -1
- package/lib-esm/managers/userCollaborations.js.map +1 -1
- package/lib-esm/managers/users.js.map +1 -1
- package/lib-esm/managers/webLinks.js.map +1 -1
- package/lib-esm/managers/webhooks.js.map +1 -1
- package/lib-esm/managers/workflows.js.map +1 -1
- package/lib-esm/managers/zipDownloads.d.ts +2 -2
- package/lib-esm/managers/zipDownloads.js +2 -2
- package/lib-esm/networking/retries.js +3 -1
- package/lib-esm/networking/retries.js.map +1 -1
- package/lib-esm/networking/version.d.ts +1 -1
- package/lib-esm/networking/version.js +1 -1
- package/lib-esm/schemas/aiAgentBasicTextToolBase.d.ts +1 -1
- package/lib-esm/schemas/aiAgentReference.d.ts +2 -2
- package/lib-esm/schemas/aiAgentReference.js +1 -1
- package/lib-esm/schemas/aiAgentReference.js.map +1 -1
- package/lib-esm/schemas/aiAgentSpreadsheetTool.d.ts +1 -1
- package/lib-esm/schemas/index.d.ts +22 -3
- package/lib-esm/schemas/index.js +22 -3
- package/lib-esm/schemas/index.js.map +1 -1
- package/lib-esm/schemas/metadataCascadePolicy.d.ts +6 -6
- package/lib-esm/schemas/metadataCascadePolicy.js +3 -3
- package/lib-esm/schemas/metadataCascadePolicy.js.map +1 -1
- package/lib-esm/schemas/metadataFilter.d.ts +3 -3
- package/lib-esm/schemas/metadataTaxonomies.d.ts +21 -0
- package/lib-esm/schemas/metadataTaxonomies.js +67 -0
- package/lib-esm/schemas/metadataTaxonomies.js.map +1 -0
- package/lib-esm/schemas/metadataTaxonomy.d.ts +23 -0
- package/lib-esm/schemas/metadataTaxonomy.js +89 -0
- package/lib-esm/schemas/metadataTaxonomy.js.map +1 -0
- package/lib-esm/schemas/metadataTaxonomyAncestor.d.ts +15 -0
- package/lib-esm/schemas/metadataTaxonomyAncestor.js +46 -0
- package/lib-esm/schemas/metadataTaxonomyAncestor.js.map +1 -0
- package/lib-esm/schemas/metadataTaxonomyLevel.d.ts +15 -0
- package/lib-esm/schemas/metadataTaxonomyLevel.js +46 -0
- package/lib-esm/schemas/metadataTaxonomyLevel.js.map +1 -0
- package/lib-esm/schemas/metadataTaxonomyLevels.d.ts +10 -0
- package/lib-esm/schemas/metadataTaxonomyLevels.js +39 -0
- package/lib-esm/schemas/metadataTaxonomyLevels.js.map +1 -0
- package/lib-esm/schemas/metadataTaxonomyNode.d.ts +27 -0
- package/lib-esm/schemas/metadataTaxonomyNode.js +113 -0
- package/lib-esm/schemas/metadataTaxonomyNode.js.map +1 -0
- package/lib-esm/schemas/metadataTaxonomyNodes.d.ts +21 -0
- package/lib-esm/schemas/metadataTaxonomyNodes.js +67 -0
- package/lib-esm/schemas/metadataTaxonomyNodes.js.map +1 -0
- package/lib-esm/schemas/metadataTemplate.d.ts +1 -1
- package/lib-esm/schemas/metadataTemplate.js +3 -0
- package/lib-esm/schemas/metadataTemplate.js.map +1 -1
- package/lib-esm/schemas/signRequestCreateRequest.d.ts +1 -1
- package/lib-esm/schemas/signRequestSignerInput.d.ts +6 -1
- package/lib-esm/schemas/signRequestSignerInput.js +9 -0
- package/lib-esm/schemas/signRequestSignerInput.js.map +1 -1
- package/lib-esm/schemas/signRequestSignerInputCustomValidation.d.ts +35 -0
- package/lib-esm/schemas/signRequestSignerInputCustomValidation.js +130 -0
- package/lib-esm/schemas/signRequestSignerInputCustomValidation.js.map +1 -0
- package/lib-esm/schemas/signRequestSignerInputDateAsiaValidation.d.ts +12 -0
- package/lib-esm/schemas/signRequestSignerInputDateAsiaValidation.js +44 -0
- package/lib-esm/schemas/signRequestSignerInputDateAsiaValidation.js.map +1 -0
- package/lib-esm/schemas/signRequestSignerInputDateEuValidation.d.ts +12 -0
- package/lib-esm/schemas/signRequestSignerInputDateEuValidation.js +44 -0
- package/lib-esm/schemas/signRequestSignerInputDateEuValidation.js.map +1 -0
- package/lib-esm/schemas/signRequestSignerInputDateIsoValidation.d.ts +12 -0
- package/lib-esm/schemas/signRequestSignerInputDateIsoValidation.js +44 -0
- package/lib-esm/schemas/signRequestSignerInputDateIsoValidation.js.map +1 -0
- package/lib-esm/schemas/signRequestSignerInputDateUsValidation.d.ts +12 -0
- package/lib-esm/schemas/signRequestSignerInputDateUsValidation.js +44 -0
- package/lib-esm/schemas/signRequestSignerInputDateUsValidation.js.map +1 -0
- package/lib-esm/schemas/signRequestSignerInputEmailValidation.d.ts +21 -0
- package/lib-esm/schemas/signRequestSignerInputEmailValidation.js +83 -0
- package/lib-esm/schemas/signRequestSignerInputEmailValidation.js.map +1 -0
- package/lib-esm/schemas/signRequestSignerInputNumberWithCommaValidation.d.ts +12 -0
- package/lib-esm/schemas/signRequestSignerInputNumberWithCommaValidation.js +44 -0
- package/lib-esm/schemas/signRequestSignerInputNumberWithCommaValidation.js.map +1 -0
- package/lib-esm/schemas/signRequestSignerInputNumberWithPeriodValidation.d.ts +12 -0
- package/lib-esm/schemas/signRequestSignerInputNumberWithPeriodValidation.js +44 -0
- package/lib-esm/schemas/signRequestSignerInputNumberWithPeriodValidation.js.map +1 -0
- package/lib-esm/schemas/signRequestSignerInputSsnValidation.d.ts +21 -0
- package/lib-esm/schemas/signRequestSignerInputSsnValidation.js +83 -0
- package/lib-esm/schemas/signRequestSignerInputSsnValidation.js.map +1 -0
- package/lib-esm/schemas/signRequestSignerInputValidation.d.ts +15 -0
- package/lib-esm/schemas/signRequestSignerInputValidation.js +251 -0
- package/lib-esm/schemas/signRequestSignerInputValidation.js.map +1 -0
- package/lib-esm/schemas/signRequestSignerInputZip4Validation.d.ts +21 -0
- package/lib-esm/schemas/signRequestSignerInputZip4Validation.js +83 -0
- package/lib-esm/schemas/signRequestSignerInputZip4Validation.js.map +1 -0
- package/lib-esm/schemas/signRequestSignerInputZipValidation.d.ts +21 -0
- package/lib-esm/schemas/signRequestSignerInputZipValidation.js +83 -0
- package/lib-esm/schemas/signRequestSignerInputZipValidation.js.map +1 -0
- package/lib-esm/schemas/signTemplate.d.ts +1 -1
- package/lib-esm/schemas/templateSignerInput.d.ts +6 -1
- package/lib-esm/schemas/templateSignerInput.js +9 -0
- package/lib-esm/schemas/templateSignerInput.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +7 -0
- package/src/managers/ai.ts +3 -3
- package/src/managers/aiStudio.ts +3 -3
- package/src/managers/appItemAssociations.ts +2 -2
- package/src/managers/archives.ts +6 -6
- package/src/managers/avatars.ts +3 -3
- package/src/managers/chunkedUploads.ts +24 -24
- package/src/managers/collaborationAllowlistEntries.ts +2 -2
- package/src/managers/collaborationAllowlistExemptTargets.ts +2 -2
- package/src/managers/collections.ts +2 -2
- package/src/managers/comments.ts +4 -4
- package/src/managers/devicePinners.ts +3 -3
- package/src/managers/docgen.ts +2 -2
- package/src/managers/docgenTemplate.ts +4 -4
- package/src/managers/downloads.ts +2 -2
- package/src/managers/emailAliases.ts +4 -4
- package/src/managers/enterpriseConfigurations.ts +1 -1
- package/src/managers/fileClassifications.ts +7 -7
- package/src/managers/fileMetadata.ts +70 -17
- package/src/managers/fileRequests.ts +4 -4
- package/src/managers/fileVersionLegalHolds.ts +1 -1
- package/src/managers/fileVersionRetentions.ts +3 -3
- package/src/managers/fileVersions.ts +8 -8
- package/src/managers/fileWatermarks.ts +3 -3
- package/src/managers/files.ts +9 -9
- package/src/managers/folderClassifications.ts +7 -7
- package/src/managers/folderLocks.ts +1 -1
- package/src/managers/folderMetadata.ts +42 -15
- package/src/managers/folderWatermarks.ts +3 -3
- package/src/managers/folders.ts +8 -8
- package/src/managers/groups.ts +3 -3
- package/src/managers/hubCollaborations.ts +3 -3
- package/src/managers/hubItems.ts +1 -1
- package/src/managers/hubs.ts +4 -4
- package/src/managers/index.ts +1 -0
- package/src/managers/integrationMappings.ts +4 -4
- package/src/managers/invites.ts +1 -1
- package/src/managers/legalHoldPolicies.ts +3 -3
- package/src/managers/legalHoldPolicyAssignments.ts +3 -3
- package/src/managers/listCollaborations.ts +3 -3
- package/src/managers/memberships.ts +5 -5
- package/src/managers/metadataCascadePolicies.ts +6 -6
- package/src/managers/metadataTaxonomies.ts +2030 -0
- package/src/managers/metadataTemplates.ts +129 -10
- package/src/managers/retentionPolicies.ts +3 -3
- package/src/managers/retentionPolicyAssignments.ts +4 -4
- package/src/managers/search.ts +1 -1
- package/src/managers/sharedLinksFiles.ts +4 -4
- package/src/managers/sharedLinksFolders.ts +4 -4
- package/src/managers/sharedLinksWebLinks.ts +4 -4
- package/src/managers/shieldInformationBarrierReports.ts +1 -1
- package/src/managers/shieldInformationBarrierSegmentMembers.ts +2 -2
- package/src/managers/shieldInformationBarrierSegmentRestrictions.ts +2 -2
- package/src/managers/shieldInformationBarrierSegments.ts +3 -3
- package/src/managers/shieldInformationBarriers.ts +1 -1
- package/src/managers/shieldLists.ts +3 -3
- package/src/managers/signRequests.ts +3 -3
- package/src/managers/signTemplates.ts +1 -1
- package/src/managers/skills.ts +5 -5
- package/src/managers/storagePolicies.ts +1 -1
- package/src/managers/storagePolicyAssignments.ts +3 -3
- package/src/managers/taskAssignments.ts +4 -4
- package/src/managers/tasks.ts +4 -4
- package/src/managers/termsOfServiceUserStatuses.ts +1 -1
- package/src/managers/termsOfServices.ts +2 -2
- package/src/managers/transfer.ts +1 -1
- package/src/managers/trashedFiles.ts +5 -5
- package/src/managers/trashedFolders.ts +5 -5
- package/src/managers/trashedWebLinks.ts +3 -3
- package/src/managers/uploads.ts +1 -1
- package/src/managers/userCollaborations.ts +3 -3
- package/src/managers/users.ts +3 -3
- package/src/managers/webLinks.ts +3 -3
- package/src/managers/webhooks.ts +3 -3
- package/src/managers/workflows.ts +1 -1
- package/src/managers/zipDownloads.ts +2 -2
- package/src/networking/retries.ts +3 -1
- package/src/networking/version.ts +1 -1
- package/src/schemas/aiAgentBasicTextToolBase.ts +1 -1
- package/src/schemas/aiAgentReference.ts +2 -2
- package/src/schemas/aiAgentSpreadsheetTool.ts +1 -1
- package/src/schemas/index.ts +22 -3
- package/src/schemas/metadataCascadePolicy.ts +6 -6
- package/src/schemas/metadataFilter.ts +3 -3
- package/src/schemas/metadataTaxonomies.ts +93 -0
- package/src/schemas/metadataTaxonomy.ts +119 -0
- package/src/schemas/metadataTaxonomyAncestor.ts +64 -0
- package/src/schemas/metadataTaxonomyLevel.ts +65 -0
- package/src/schemas/metadataTaxonomyLevels.ts +56 -0
- package/src/schemas/metadataTaxonomyNode.ts +150 -0
- package/src/schemas/metadataTaxonomyNodes.ts +97 -0
- package/src/schemas/metadataTemplate.ts +5 -1
- package/src/schemas/signRequestCreateRequest.ts +1 -1
- package/src/schemas/signRequestSignerInput.ts +50 -1
- package/src/schemas/signRequestSignerInputCustomValidation.ts +185 -0
- package/src/schemas/signRequestSignerInputDateAsiaValidation.ts +68 -0
- package/src/schemas/signRequestSignerInputDateEuValidation.ts +68 -0
- package/src/schemas/signRequestSignerInputDateIsoValidation.ts +68 -0
- package/src/schemas/signRequestSignerInputDateUsValidation.ts +68 -0
- package/src/schemas/signRequestSignerInputEmailValidation.ts +119 -0
- package/src/schemas/signRequestSignerInputNumberWithCommaValidation.ts +69 -0
- package/src/schemas/signRequestSignerInputNumberWithPeriodValidation.ts +68 -0
- package/src/schemas/signRequestSignerInputSsnValidation.ts +118 -0
- package/src/schemas/signRequestSignerInputValidation.ts +244 -0
- package/src/schemas/signRequestSignerInputZip4Validation.ts +119 -0
- package/src/schemas/signRequestSignerInputZipValidation.ts +118 -0
- package/src/schemas/signTemplate.ts +1 -1
- package/src/schemas/templateSignerInput.ts +50 -1
- package/src/test/docgen.test.ts +18 -5
- package/src/test/metadataTaxonomies.test.ts +392 -0
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { serializeMetadataTaxonomyLevel } from './metadataTaxonomyLevel';
|
|
2
|
+
import { deserializeMetadataTaxonomyLevel } from './metadataTaxonomyLevel';
|
|
3
|
+
import { MetadataTaxonomyLevel } from './metadataTaxonomyLevel';
|
|
4
|
+
import { BoxSdkError } from '../box/errors';
|
|
5
|
+
import { SerializedData } from '../serialization/json';
|
|
6
|
+
import { sdIsEmpty } from '../serialization/json';
|
|
7
|
+
import { sdIsBoolean } from '../serialization/json';
|
|
8
|
+
import { sdIsNumber } from '../serialization/json';
|
|
9
|
+
import { sdIsString } from '../serialization/json';
|
|
10
|
+
import { sdIsList } from '../serialization/json';
|
|
11
|
+
import { sdIsMap } from '../serialization/json';
|
|
12
|
+
export interface MetadataTaxonomy {
|
|
13
|
+
/**
|
|
14
|
+
* A unique identifier of the metadata taxonomy. */
|
|
15
|
+
readonly id: string;
|
|
16
|
+
/**
|
|
17
|
+
* A unique identifier of the metadata taxonomy. The identifier must be unique within
|
|
18
|
+
* the namespace to which it belongs. */
|
|
19
|
+
readonly key?: string;
|
|
20
|
+
/**
|
|
21
|
+
* The display name of the metadata taxonomy. This can be seen in the Box web app. */
|
|
22
|
+
readonly displayName: string;
|
|
23
|
+
/**
|
|
24
|
+
* A namespace that the metadata taxonomy is associated with. */
|
|
25
|
+
readonly namespace: string;
|
|
26
|
+
/**
|
|
27
|
+
* Levels of the metadata taxonomy. */
|
|
28
|
+
readonly levels?: readonly MetadataTaxonomyLevel[];
|
|
29
|
+
readonly rawData?: SerializedData;
|
|
30
|
+
}
|
|
31
|
+
export function serializeMetadataTaxonomy(
|
|
32
|
+
val: MetadataTaxonomy,
|
|
33
|
+
): SerializedData {
|
|
34
|
+
return {
|
|
35
|
+
['id']: val.id,
|
|
36
|
+
['key']: val.key,
|
|
37
|
+
['displayName']: val.displayName,
|
|
38
|
+
['namespace']: val.namespace,
|
|
39
|
+
['levels']:
|
|
40
|
+
val.levels == void 0
|
|
41
|
+
? val.levels
|
|
42
|
+
: (val.levels.map(function (
|
|
43
|
+
item: MetadataTaxonomyLevel,
|
|
44
|
+
): SerializedData {
|
|
45
|
+
return serializeMetadataTaxonomyLevel(item);
|
|
46
|
+
}) as readonly any[]),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
export function deserializeMetadataTaxonomy(
|
|
50
|
+
val: SerializedData,
|
|
51
|
+
): MetadataTaxonomy {
|
|
52
|
+
if (!sdIsMap(val)) {
|
|
53
|
+
throw new BoxSdkError({
|
|
54
|
+
message: 'Expecting a map for "MetadataTaxonomy"',
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
if (val.id == void 0) {
|
|
58
|
+
throw new BoxSdkError({
|
|
59
|
+
message: 'Expecting "id" of type "MetadataTaxonomy" to be defined',
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
if (!sdIsString(val.id)) {
|
|
63
|
+
throw new BoxSdkError({
|
|
64
|
+
message: 'Expecting string for "id" of type "MetadataTaxonomy"',
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
const id: string = val.id;
|
|
68
|
+
if (!(val.key == void 0) && !sdIsString(val.key)) {
|
|
69
|
+
throw new BoxSdkError({
|
|
70
|
+
message: 'Expecting string for "key" of type "MetadataTaxonomy"',
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
const key: undefined | string = val.key == void 0 ? void 0 : val.key;
|
|
74
|
+
if (val.displayName == void 0) {
|
|
75
|
+
throw new BoxSdkError({
|
|
76
|
+
message:
|
|
77
|
+
'Expecting "displayName" of type "MetadataTaxonomy" to be defined',
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
if (!sdIsString(val.displayName)) {
|
|
81
|
+
throw new BoxSdkError({
|
|
82
|
+
message: 'Expecting string for "displayName" of type "MetadataTaxonomy"',
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
const displayName: string = val.displayName;
|
|
86
|
+
if (val.namespace == void 0) {
|
|
87
|
+
throw new BoxSdkError({
|
|
88
|
+
message: 'Expecting "namespace" of type "MetadataTaxonomy" to be defined',
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
if (!sdIsString(val.namespace)) {
|
|
92
|
+
throw new BoxSdkError({
|
|
93
|
+
message: 'Expecting string for "namespace" of type "MetadataTaxonomy"',
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
const namespace: string = val.namespace;
|
|
97
|
+
if (!(val.levels == void 0) && !sdIsList(val.levels)) {
|
|
98
|
+
throw new BoxSdkError({
|
|
99
|
+
message: 'Expecting array for "levels" of type "MetadataTaxonomy"',
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
const levels: undefined | readonly MetadataTaxonomyLevel[] =
|
|
103
|
+
val.levels == void 0
|
|
104
|
+
? void 0
|
|
105
|
+
: sdIsList(val.levels)
|
|
106
|
+
? (val.levels.map(function (
|
|
107
|
+
itm: SerializedData,
|
|
108
|
+
): MetadataTaxonomyLevel {
|
|
109
|
+
return deserializeMetadataTaxonomyLevel(itm);
|
|
110
|
+
}) as readonly any[])
|
|
111
|
+
: [];
|
|
112
|
+
return {
|
|
113
|
+
id: id,
|
|
114
|
+
key: key,
|
|
115
|
+
displayName: displayName,
|
|
116
|
+
namespace: namespace,
|
|
117
|
+
levels: levels,
|
|
118
|
+
} satisfies MetadataTaxonomy;
|
|
119
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { BoxSdkError } from '../box/errors';
|
|
2
|
+
import { SerializedData } from '../serialization/json';
|
|
3
|
+
import { sdIsEmpty } from '../serialization/json';
|
|
4
|
+
import { sdIsBoolean } from '../serialization/json';
|
|
5
|
+
import { sdIsNumber } from '../serialization/json';
|
|
6
|
+
import { sdIsString } from '../serialization/json';
|
|
7
|
+
import { sdIsList } from '../serialization/json';
|
|
8
|
+
import { sdIsMap } from '../serialization/json';
|
|
9
|
+
export interface MetadataTaxonomyAncestor {
|
|
10
|
+
/**
|
|
11
|
+
* A unique identifier of the metadata taxonomy node. */
|
|
12
|
+
readonly id?: string;
|
|
13
|
+
/**
|
|
14
|
+
* The display name of the metadata taxonomy node. */
|
|
15
|
+
readonly displayName?: string;
|
|
16
|
+
/**
|
|
17
|
+
* An index of the level to which the node belongs. */
|
|
18
|
+
readonly level?: number;
|
|
19
|
+
readonly rawData?: SerializedData;
|
|
20
|
+
}
|
|
21
|
+
export function serializeMetadataTaxonomyAncestor(
|
|
22
|
+
val: MetadataTaxonomyAncestor,
|
|
23
|
+
): SerializedData {
|
|
24
|
+
return {
|
|
25
|
+
['id']: val.id,
|
|
26
|
+
['displayName']: val.displayName,
|
|
27
|
+
['level']: val.level,
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
export function deserializeMetadataTaxonomyAncestor(
|
|
31
|
+
val: SerializedData,
|
|
32
|
+
): MetadataTaxonomyAncestor {
|
|
33
|
+
if (!sdIsMap(val)) {
|
|
34
|
+
throw new BoxSdkError({
|
|
35
|
+
message: 'Expecting a map for "MetadataTaxonomyAncestor"',
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
if (!(val.id == void 0) && !sdIsString(val.id)) {
|
|
39
|
+
throw new BoxSdkError({
|
|
40
|
+
message: 'Expecting string for "id" of type "MetadataTaxonomyAncestor"',
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
const id: undefined | string = val.id == void 0 ? void 0 : val.id;
|
|
44
|
+
if (!(val.displayName == void 0) && !sdIsString(val.displayName)) {
|
|
45
|
+
throw new BoxSdkError({
|
|
46
|
+
message:
|
|
47
|
+
'Expecting string for "displayName" of type "MetadataTaxonomyAncestor"',
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
const displayName: undefined | string =
|
|
51
|
+
val.displayName == void 0 ? void 0 : val.displayName;
|
|
52
|
+
if (!(val.level == void 0) && !sdIsNumber(val.level)) {
|
|
53
|
+
throw new BoxSdkError({
|
|
54
|
+
message:
|
|
55
|
+
'Expecting number for "level" of type "MetadataTaxonomyAncestor"',
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
const level: undefined | number = val.level == void 0 ? void 0 : val.level;
|
|
59
|
+
return {
|
|
60
|
+
id: id,
|
|
61
|
+
displayName: displayName,
|
|
62
|
+
level: level,
|
|
63
|
+
} satisfies MetadataTaxonomyAncestor;
|
|
64
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { BoxSdkError } from '../box/errors';
|
|
2
|
+
import { SerializedData } from '../serialization/json';
|
|
3
|
+
import { sdIsEmpty } from '../serialization/json';
|
|
4
|
+
import { sdIsBoolean } from '../serialization/json';
|
|
5
|
+
import { sdIsNumber } from '../serialization/json';
|
|
6
|
+
import { sdIsString } from '../serialization/json';
|
|
7
|
+
import { sdIsList } from '../serialization/json';
|
|
8
|
+
import { sdIsMap } from '../serialization/json';
|
|
9
|
+
export interface MetadataTaxonomyLevel {
|
|
10
|
+
/**
|
|
11
|
+
* The display name of the level as it is shown to the user. */
|
|
12
|
+
readonly displayName?: string;
|
|
13
|
+
/**
|
|
14
|
+
* A description of the level. */
|
|
15
|
+
readonly description?: string;
|
|
16
|
+
/**
|
|
17
|
+
* An index of the level within the taxonomy. Levels are indexed starting from 1. */
|
|
18
|
+
readonly level?: number;
|
|
19
|
+
readonly rawData?: SerializedData;
|
|
20
|
+
}
|
|
21
|
+
export function serializeMetadataTaxonomyLevel(
|
|
22
|
+
val: MetadataTaxonomyLevel,
|
|
23
|
+
): SerializedData {
|
|
24
|
+
return {
|
|
25
|
+
['displayName']: val.displayName,
|
|
26
|
+
['description']: val.description,
|
|
27
|
+
['level']: val.level,
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
export function deserializeMetadataTaxonomyLevel(
|
|
31
|
+
val: SerializedData,
|
|
32
|
+
): MetadataTaxonomyLevel {
|
|
33
|
+
if (!sdIsMap(val)) {
|
|
34
|
+
throw new BoxSdkError({
|
|
35
|
+
message: 'Expecting a map for "MetadataTaxonomyLevel"',
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
if (!(val.displayName == void 0) && !sdIsString(val.displayName)) {
|
|
39
|
+
throw new BoxSdkError({
|
|
40
|
+
message:
|
|
41
|
+
'Expecting string for "displayName" of type "MetadataTaxonomyLevel"',
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
const displayName: undefined | string =
|
|
45
|
+
val.displayName == void 0 ? void 0 : val.displayName;
|
|
46
|
+
if (!(val.description == void 0) && !sdIsString(val.description)) {
|
|
47
|
+
throw new BoxSdkError({
|
|
48
|
+
message:
|
|
49
|
+
'Expecting string for "description" of type "MetadataTaxonomyLevel"',
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
const description: undefined | string =
|
|
53
|
+
val.description == void 0 ? void 0 : val.description;
|
|
54
|
+
if (!(val.level == void 0) && !sdIsNumber(val.level)) {
|
|
55
|
+
throw new BoxSdkError({
|
|
56
|
+
message: 'Expecting number for "level" of type "MetadataTaxonomyLevel"',
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
const level: undefined | number = val.level == void 0 ? void 0 : val.level;
|
|
60
|
+
return {
|
|
61
|
+
displayName: displayName,
|
|
62
|
+
description: description,
|
|
63
|
+
level: level,
|
|
64
|
+
} satisfies MetadataTaxonomyLevel;
|
|
65
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { serializeMetadataTaxonomyLevel } from './metadataTaxonomyLevel';
|
|
2
|
+
import { deserializeMetadataTaxonomyLevel } from './metadataTaxonomyLevel';
|
|
3
|
+
import { MetadataTaxonomyLevel } from './metadataTaxonomyLevel';
|
|
4
|
+
import { BoxSdkError } from '../box/errors';
|
|
5
|
+
import { SerializedData } from '../serialization/json';
|
|
6
|
+
import { sdIsEmpty } from '../serialization/json';
|
|
7
|
+
import { sdIsBoolean } from '../serialization/json';
|
|
8
|
+
import { sdIsNumber } from '../serialization/json';
|
|
9
|
+
import { sdIsString } from '../serialization/json';
|
|
10
|
+
import { sdIsList } from '../serialization/json';
|
|
11
|
+
import { sdIsMap } from '../serialization/json';
|
|
12
|
+
export interface MetadataTaxonomyLevels {
|
|
13
|
+
/**
|
|
14
|
+
* An array of all taxonomy levels. */
|
|
15
|
+
readonly entries?: readonly MetadataTaxonomyLevel[];
|
|
16
|
+
readonly rawData?: SerializedData;
|
|
17
|
+
}
|
|
18
|
+
export function serializeMetadataTaxonomyLevels(
|
|
19
|
+
val: MetadataTaxonomyLevels,
|
|
20
|
+
): SerializedData {
|
|
21
|
+
return {
|
|
22
|
+
['entries']:
|
|
23
|
+
val.entries == void 0
|
|
24
|
+
? val.entries
|
|
25
|
+
: (val.entries.map(function (
|
|
26
|
+
item: MetadataTaxonomyLevel,
|
|
27
|
+
): SerializedData {
|
|
28
|
+
return serializeMetadataTaxonomyLevel(item);
|
|
29
|
+
}) as readonly any[]),
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export function deserializeMetadataTaxonomyLevels(
|
|
33
|
+
val: SerializedData,
|
|
34
|
+
): MetadataTaxonomyLevels {
|
|
35
|
+
if (!sdIsMap(val)) {
|
|
36
|
+
throw new BoxSdkError({
|
|
37
|
+
message: 'Expecting a map for "MetadataTaxonomyLevels"',
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
if (!(val.entries == void 0) && !sdIsList(val.entries)) {
|
|
41
|
+
throw new BoxSdkError({
|
|
42
|
+
message: 'Expecting array for "entries" of type "MetadataTaxonomyLevels"',
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
const entries: undefined | readonly MetadataTaxonomyLevel[] =
|
|
46
|
+
val.entries == void 0
|
|
47
|
+
? void 0
|
|
48
|
+
: sdIsList(val.entries)
|
|
49
|
+
? (val.entries.map(function (
|
|
50
|
+
itm: SerializedData,
|
|
51
|
+
): MetadataTaxonomyLevel {
|
|
52
|
+
return deserializeMetadataTaxonomyLevel(itm);
|
|
53
|
+
}) as readonly any[])
|
|
54
|
+
: [];
|
|
55
|
+
return { entries: entries } satisfies MetadataTaxonomyLevels;
|
|
56
|
+
}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import { serializeMetadataTaxonomyAncestor } from './metadataTaxonomyAncestor';
|
|
2
|
+
import { deserializeMetadataTaxonomyAncestor } from './metadataTaxonomyAncestor';
|
|
3
|
+
import { MetadataTaxonomyAncestor } from './metadataTaxonomyAncestor';
|
|
4
|
+
import { BoxSdkError } from '../box/errors';
|
|
5
|
+
import { SerializedData } from '../serialization/json';
|
|
6
|
+
import { sdIsEmpty } from '../serialization/json';
|
|
7
|
+
import { sdIsBoolean } from '../serialization/json';
|
|
8
|
+
import { sdIsNumber } from '../serialization/json';
|
|
9
|
+
import { sdIsString } from '../serialization/json';
|
|
10
|
+
import { sdIsList } from '../serialization/json';
|
|
11
|
+
import { sdIsMap } from '../serialization/json';
|
|
12
|
+
export interface MetadataTaxonomyNode {
|
|
13
|
+
/**
|
|
14
|
+
* A unique identifier of the metadata taxonomy node. */
|
|
15
|
+
readonly id: string;
|
|
16
|
+
/**
|
|
17
|
+
* The display name of the metadata taxonomy node. */
|
|
18
|
+
readonly displayName: string;
|
|
19
|
+
/**
|
|
20
|
+
* An index of the level to which the node belongs. */
|
|
21
|
+
readonly level: number;
|
|
22
|
+
/**
|
|
23
|
+
* The identifier of the parent node. */
|
|
24
|
+
readonly parentId?: string;
|
|
25
|
+
/**
|
|
26
|
+
* An array of identifiers for all ancestor nodes.
|
|
27
|
+
* Not returned for root-level nodes. */
|
|
28
|
+
readonly nodePath?: readonly string[];
|
|
29
|
+
/**
|
|
30
|
+
* An array of objects for all ancestor nodes.
|
|
31
|
+
* Not returned for root-level nodes. */
|
|
32
|
+
readonly ancestors?: readonly MetadataTaxonomyAncestor[];
|
|
33
|
+
readonly rawData?: SerializedData;
|
|
34
|
+
}
|
|
35
|
+
export function serializeMetadataTaxonomyNode(
|
|
36
|
+
val: MetadataTaxonomyNode,
|
|
37
|
+
): SerializedData {
|
|
38
|
+
return {
|
|
39
|
+
['id']: val.id,
|
|
40
|
+
['displayName']: val.displayName,
|
|
41
|
+
['level']: val.level,
|
|
42
|
+
['parentId']: val.parentId,
|
|
43
|
+
['nodePath']:
|
|
44
|
+
val.nodePath == void 0
|
|
45
|
+
? val.nodePath
|
|
46
|
+
: (val.nodePath.map(function (item: string): SerializedData {
|
|
47
|
+
return item;
|
|
48
|
+
}) as readonly any[]),
|
|
49
|
+
['ancestors']:
|
|
50
|
+
val.ancestors == void 0
|
|
51
|
+
? val.ancestors
|
|
52
|
+
: (val.ancestors.map(function (
|
|
53
|
+
item: MetadataTaxonomyAncestor,
|
|
54
|
+
): SerializedData {
|
|
55
|
+
return serializeMetadataTaxonomyAncestor(item);
|
|
56
|
+
}) as readonly any[]),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
export function deserializeMetadataTaxonomyNode(
|
|
60
|
+
val: SerializedData,
|
|
61
|
+
): MetadataTaxonomyNode {
|
|
62
|
+
if (!sdIsMap(val)) {
|
|
63
|
+
throw new BoxSdkError({
|
|
64
|
+
message: 'Expecting a map for "MetadataTaxonomyNode"',
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
if (val.id == void 0) {
|
|
68
|
+
throw new BoxSdkError({
|
|
69
|
+
message: 'Expecting "id" of type "MetadataTaxonomyNode" to be defined',
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
if (!sdIsString(val.id)) {
|
|
73
|
+
throw new BoxSdkError({
|
|
74
|
+
message: 'Expecting string for "id" of type "MetadataTaxonomyNode"',
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
const id: string = val.id;
|
|
78
|
+
if (val.displayName == void 0) {
|
|
79
|
+
throw new BoxSdkError({
|
|
80
|
+
message:
|
|
81
|
+
'Expecting "displayName" of type "MetadataTaxonomyNode" to be defined',
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
if (!sdIsString(val.displayName)) {
|
|
85
|
+
throw new BoxSdkError({
|
|
86
|
+
message:
|
|
87
|
+
'Expecting string for "displayName" of type "MetadataTaxonomyNode"',
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
const displayName: string = val.displayName;
|
|
91
|
+
if (val.level == void 0) {
|
|
92
|
+
throw new BoxSdkError({
|
|
93
|
+
message: 'Expecting "level" of type "MetadataTaxonomyNode" to be defined',
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
if (!sdIsNumber(val.level)) {
|
|
97
|
+
throw new BoxSdkError({
|
|
98
|
+
message: 'Expecting number for "level" of type "MetadataTaxonomyNode"',
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
const level: number = val.level;
|
|
102
|
+
if (!(val.parentId == void 0) && !sdIsString(val.parentId)) {
|
|
103
|
+
throw new BoxSdkError({
|
|
104
|
+
message: 'Expecting string for "parentId" of type "MetadataTaxonomyNode"',
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
const parentId: undefined | string =
|
|
108
|
+
val.parentId == void 0 ? void 0 : val.parentId;
|
|
109
|
+
if (!(val.nodePath == void 0) && !sdIsList(val.nodePath)) {
|
|
110
|
+
throw new BoxSdkError({
|
|
111
|
+
message: 'Expecting array for "nodePath" of type "MetadataTaxonomyNode"',
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
const nodePath: undefined | readonly string[] =
|
|
115
|
+
val.nodePath == void 0
|
|
116
|
+
? void 0
|
|
117
|
+
: sdIsList(val.nodePath)
|
|
118
|
+
? (val.nodePath.map(function (itm: SerializedData): string {
|
|
119
|
+
if (!sdIsString(itm)) {
|
|
120
|
+
throw new BoxSdkError({
|
|
121
|
+
message: 'Expecting string for "MetadataTaxonomyNode"',
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
return itm;
|
|
125
|
+
}) as readonly any[])
|
|
126
|
+
: [];
|
|
127
|
+
if (!(val.ancestors == void 0) && !sdIsList(val.ancestors)) {
|
|
128
|
+
throw new BoxSdkError({
|
|
129
|
+
message: 'Expecting array for "ancestors" of type "MetadataTaxonomyNode"',
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
const ancestors: undefined | readonly MetadataTaxonomyAncestor[] =
|
|
133
|
+
val.ancestors == void 0
|
|
134
|
+
? void 0
|
|
135
|
+
: sdIsList(val.ancestors)
|
|
136
|
+
? (val.ancestors.map(function (
|
|
137
|
+
itm: SerializedData,
|
|
138
|
+
): MetadataTaxonomyAncestor {
|
|
139
|
+
return deserializeMetadataTaxonomyAncestor(itm);
|
|
140
|
+
}) as readonly any[])
|
|
141
|
+
: [];
|
|
142
|
+
return {
|
|
143
|
+
id: id,
|
|
144
|
+
displayName: displayName,
|
|
145
|
+
level: level,
|
|
146
|
+
parentId: parentId,
|
|
147
|
+
nodePath: nodePath,
|
|
148
|
+
ancestors: ancestors,
|
|
149
|
+
} satisfies MetadataTaxonomyNode;
|
|
150
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { serializeMetadataTaxonomyNode } from './metadataTaxonomyNode';
|
|
2
|
+
import { deserializeMetadataTaxonomyNode } from './metadataTaxonomyNode';
|
|
3
|
+
import { MetadataTaxonomyNode } from './metadataTaxonomyNode';
|
|
4
|
+
import { BoxSdkError } from '../box/errors';
|
|
5
|
+
import { SerializedData } from '../serialization/json';
|
|
6
|
+
import { sdIsEmpty } from '../serialization/json';
|
|
7
|
+
import { sdIsBoolean } from '../serialization/json';
|
|
8
|
+
import { sdIsNumber } from '../serialization/json';
|
|
9
|
+
import { sdIsString } from '../serialization/json';
|
|
10
|
+
import { sdIsList } from '../serialization/json';
|
|
11
|
+
import { sdIsMap } from '../serialization/json';
|
|
12
|
+
export interface MetadataTaxonomyNodes {
|
|
13
|
+
/**
|
|
14
|
+
* The limit that was used for these entries. This will be the same as the
|
|
15
|
+
* `limit` query parameter unless that value exceeded the maximum value
|
|
16
|
+
* allowed. The maximum value varies by API. */
|
|
17
|
+
readonly limit?: number;
|
|
18
|
+
/**
|
|
19
|
+
* The marker for the start of the next page of results. */
|
|
20
|
+
readonly nextMarker?: string | null;
|
|
21
|
+
/**
|
|
22
|
+
* The marker for the start of the previous page of results. */
|
|
23
|
+
readonly prevMarker?: string | null;
|
|
24
|
+
/**
|
|
25
|
+
* A list of metadata taxonomy nodes. */
|
|
26
|
+
readonly entries?: readonly MetadataTaxonomyNode[];
|
|
27
|
+
readonly rawData?: SerializedData;
|
|
28
|
+
}
|
|
29
|
+
export function serializeMetadataTaxonomyNodes(
|
|
30
|
+
val: MetadataTaxonomyNodes,
|
|
31
|
+
): SerializedData {
|
|
32
|
+
return {
|
|
33
|
+
['limit']: val.limit,
|
|
34
|
+
['next_marker']: val.nextMarker,
|
|
35
|
+
['prev_marker']: val.prevMarker,
|
|
36
|
+
['entries']:
|
|
37
|
+
val.entries == void 0
|
|
38
|
+
? val.entries
|
|
39
|
+
: (val.entries.map(function (
|
|
40
|
+
item: MetadataTaxonomyNode,
|
|
41
|
+
): SerializedData {
|
|
42
|
+
return serializeMetadataTaxonomyNode(item);
|
|
43
|
+
}) as readonly any[]),
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export function deserializeMetadataTaxonomyNodes(
|
|
47
|
+
val: SerializedData,
|
|
48
|
+
): MetadataTaxonomyNodes {
|
|
49
|
+
if (!sdIsMap(val)) {
|
|
50
|
+
throw new BoxSdkError({
|
|
51
|
+
message: 'Expecting a map for "MetadataTaxonomyNodes"',
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
if (!(val.limit == void 0) && !sdIsNumber(val.limit)) {
|
|
55
|
+
throw new BoxSdkError({
|
|
56
|
+
message: 'Expecting number for "limit" of type "MetadataTaxonomyNodes"',
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
const limit: undefined | number = val.limit == void 0 ? void 0 : val.limit;
|
|
60
|
+
if (!(val.next_marker == void 0) && !sdIsString(val.next_marker)) {
|
|
61
|
+
throw new BoxSdkError({
|
|
62
|
+
message:
|
|
63
|
+
'Expecting string for "next_marker" of type "MetadataTaxonomyNodes"',
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
const nextMarker: undefined | string =
|
|
67
|
+
val.next_marker == void 0 ? void 0 : val.next_marker;
|
|
68
|
+
if (!(val.prev_marker == void 0) && !sdIsString(val.prev_marker)) {
|
|
69
|
+
throw new BoxSdkError({
|
|
70
|
+
message:
|
|
71
|
+
'Expecting string for "prev_marker" of type "MetadataTaxonomyNodes"',
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
const prevMarker: undefined | string =
|
|
75
|
+
val.prev_marker == void 0 ? void 0 : val.prev_marker;
|
|
76
|
+
if (!(val.entries == void 0) && !sdIsList(val.entries)) {
|
|
77
|
+
throw new BoxSdkError({
|
|
78
|
+
message: 'Expecting array for "entries" of type "MetadataTaxonomyNodes"',
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
const entries: undefined | readonly MetadataTaxonomyNode[] =
|
|
82
|
+
val.entries == void 0
|
|
83
|
+
? void 0
|
|
84
|
+
: sdIsList(val.entries)
|
|
85
|
+
? (val.entries.map(function (
|
|
86
|
+
itm: SerializedData,
|
|
87
|
+
): MetadataTaxonomyNode {
|
|
88
|
+
return deserializeMetadataTaxonomyNode(itm);
|
|
89
|
+
}) as readonly any[])
|
|
90
|
+
: [];
|
|
91
|
+
return {
|
|
92
|
+
limit: limit,
|
|
93
|
+
nextMarker: nextMarker,
|
|
94
|
+
prevMarker: prevMarker,
|
|
95
|
+
entries: entries,
|
|
96
|
+
} satisfies MetadataTaxonomyNodes;
|
|
97
|
+
}
|
|
@@ -13,7 +13,8 @@ export type MetadataTemplateFieldsTypeField =
|
|
|
13
13
|
| 'date'
|
|
14
14
|
| 'enum'
|
|
15
15
|
| 'multiSelect'
|
|
16
|
-
| 'integer'
|
|
16
|
+
| 'integer'
|
|
17
|
+
| 'taxonomy';
|
|
17
18
|
export interface MetadataTemplateFieldsOptionsField {
|
|
18
19
|
/**
|
|
19
20
|
* The text value of the option. This represents both the display name of the
|
|
@@ -210,6 +211,9 @@ export function deserializeMetadataTemplateFieldsTypeField(
|
|
|
210
211
|
if (val == 'integer') {
|
|
211
212
|
return val;
|
|
212
213
|
}
|
|
214
|
+
if (val == 'taxonomy') {
|
|
215
|
+
return val;
|
|
216
|
+
}
|
|
213
217
|
throw new BoxSdkError({
|
|
214
218
|
message: "Can't deserialize MetadataTemplateFieldsTypeField",
|
|
215
219
|
});
|
|
@@ -37,7 +37,7 @@ export type SignRequestCreateRequest = SignRequestBase & {
|
|
|
37
37
|
* Array of signers for the signature request. 35 is the
|
|
38
38
|
* max number of signers permitted.
|
|
39
39
|
*
|
|
40
|
-
* **Note**: It may happen that some signers belong to conflicting [segments](
|
|
40
|
+
* **Note**: It may happen that some signers belong to conflicting [segments](https://developer.box.com/reference/resources/shield-information-barrier-segment-member) (user groups).
|
|
41
41
|
* This means that due to the security policies, users are assigned to segments to prevent exchanges or communication that could lead to ethical conflicts.
|
|
42
42
|
* In such a case, an attempt to send the sign request will result in an error.
|
|
43
43
|
*
|
|
@@ -1,9 +1,45 @@
|
|
|
1
1
|
import { serializeDate } from '../internal/utils';
|
|
2
2
|
import { deserializeDate } from '../internal/utils';
|
|
3
|
+
import { serializeSignRequestSignerInputEmailValidation } from './signRequestSignerInputEmailValidation';
|
|
4
|
+
import { deserializeSignRequestSignerInputEmailValidation } from './signRequestSignerInputEmailValidation';
|
|
5
|
+
import { serializeSignRequestSignerInputCustomValidation } from './signRequestSignerInputCustomValidation';
|
|
6
|
+
import { deserializeSignRequestSignerInputCustomValidation } from './signRequestSignerInputCustomValidation';
|
|
7
|
+
import { serializeSignRequestSignerInputZipValidation } from './signRequestSignerInputZipValidation';
|
|
8
|
+
import { deserializeSignRequestSignerInputZipValidation } from './signRequestSignerInputZipValidation';
|
|
9
|
+
import { serializeSignRequestSignerInputZip4Validation } from './signRequestSignerInputZip4Validation';
|
|
10
|
+
import { deserializeSignRequestSignerInputZip4Validation } from './signRequestSignerInputZip4Validation';
|
|
11
|
+
import { serializeSignRequestSignerInputSsnValidation } from './signRequestSignerInputSsnValidation';
|
|
12
|
+
import { deserializeSignRequestSignerInputSsnValidation } from './signRequestSignerInputSsnValidation';
|
|
13
|
+
import { serializeSignRequestSignerInputNumberWithPeriodValidation } from './signRequestSignerInputNumberWithPeriodValidation';
|
|
14
|
+
import { deserializeSignRequestSignerInputNumberWithPeriodValidation } from './signRequestSignerInputNumberWithPeriodValidation';
|
|
15
|
+
import { serializeSignRequestSignerInputNumberWithCommaValidation } from './signRequestSignerInputNumberWithCommaValidation';
|
|
16
|
+
import { deserializeSignRequestSignerInputNumberWithCommaValidation } from './signRequestSignerInputNumberWithCommaValidation';
|
|
17
|
+
import { serializeSignRequestSignerInputDateIsoValidation } from './signRequestSignerInputDateIsoValidation';
|
|
18
|
+
import { deserializeSignRequestSignerInputDateIsoValidation } from './signRequestSignerInputDateIsoValidation';
|
|
19
|
+
import { serializeSignRequestSignerInputDateUsValidation } from './signRequestSignerInputDateUsValidation';
|
|
20
|
+
import { deserializeSignRequestSignerInputDateUsValidation } from './signRequestSignerInputDateUsValidation';
|
|
21
|
+
import { serializeSignRequestSignerInputDateEuValidation } from './signRequestSignerInputDateEuValidation';
|
|
22
|
+
import { deserializeSignRequestSignerInputDateEuValidation } from './signRequestSignerInputDateEuValidation';
|
|
23
|
+
import { serializeSignRequestSignerInputDateAsiaValidation } from './signRequestSignerInputDateAsiaValidation';
|
|
24
|
+
import { deserializeSignRequestSignerInputDateAsiaValidation } from './signRequestSignerInputDateAsiaValidation';
|
|
3
25
|
import { serializeSignRequestPrefillTag } from './signRequestPrefillTag';
|
|
4
26
|
import { deserializeSignRequestPrefillTag } from './signRequestPrefillTag';
|
|
27
|
+
import { serializeSignRequestSignerInputValidation } from './signRequestSignerInputValidation';
|
|
28
|
+
import { deserializeSignRequestSignerInputValidation } from './signRequestSignerInputValidation';
|
|
5
29
|
import { Date } from '../internal/utils';
|
|
30
|
+
import { SignRequestSignerInputEmailValidation } from './signRequestSignerInputEmailValidation';
|
|
31
|
+
import { SignRequestSignerInputCustomValidation } from './signRequestSignerInputCustomValidation';
|
|
32
|
+
import { SignRequestSignerInputZipValidation } from './signRequestSignerInputZipValidation';
|
|
33
|
+
import { SignRequestSignerInputZip4Validation } from './signRequestSignerInputZip4Validation';
|
|
34
|
+
import { SignRequestSignerInputSsnValidation } from './signRequestSignerInputSsnValidation';
|
|
35
|
+
import { SignRequestSignerInputNumberWithPeriodValidation } from './signRequestSignerInputNumberWithPeriodValidation';
|
|
36
|
+
import { SignRequestSignerInputNumberWithCommaValidation } from './signRequestSignerInputNumberWithCommaValidation';
|
|
37
|
+
import { SignRequestSignerInputDateIsoValidation } from './signRequestSignerInputDateIsoValidation';
|
|
38
|
+
import { SignRequestSignerInputDateUsValidation } from './signRequestSignerInputDateUsValidation';
|
|
39
|
+
import { SignRequestSignerInputDateEuValidation } from './signRequestSignerInputDateEuValidation';
|
|
40
|
+
import { SignRequestSignerInputDateAsiaValidation } from './signRequestSignerInputDateAsiaValidation';
|
|
6
41
|
import { SignRequestPrefillTag } from './signRequestPrefillTag';
|
|
42
|
+
import { SignRequestSignerInputValidation } from './signRequestSignerInputValidation';
|
|
7
43
|
import { BoxSdkError } from '../box/errors';
|
|
8
44
|
import { SerializedData } from '../serialization/json';
|
|
9
45
|
import { sdIsEmpty } from '../serialization/json';
|
|
@@ -47,8 +83,12 @@ export type SignRequestSignerInput = SignRequestPrefillTag & {
|
|
|
47
83
|
* Index of page that the input is on. */
|
|
48
84
|
readonly pageIndex: number;
|
|
49
85
|
/**
|
|
50
|
-
*
|
|
86
|
+
* Indicates whether this input is read-only (cannot be modified by signers). */
|
|
51
87
|
readonly readOnly?: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* Specifies the formatting rules that signers must follow for text field inputs.
|
|
90
|
+
* If set, this validation is mandatory. */
|
|
91
|
+
readonly validation?: SignRequestSignerInputValidation;
|
|
52
92
|
};
|
|
53
93
|
export function serializeSignRequestSignerInputTypeField(
|
|
54
94
|
val: SignRequestSignerInputTypeField,
|
|
@@ -162,6 +202,10 @@ export function serializeSignRequestSignerInput(
|
|
|
162
202
|
: serializeSignRequestSignerInputContentTypeField(val.contentType),
|
|
163
203
|
['page_index']: val.pageIndex,
|
|
164
204
|
['read_only']: val.readOnly,
|
|
205
|
+
['validation']:
|
|
206
|
+
val.validation == void 0
|
|
207
|
+
? val.validation
|
|
208
|
+
: serializeSignRequestSignerInputValidation(val.validation),
|
|
165
209
|
},
|
|
166
210
|
};
|
|
167
211
|
}
|
|
@@ -202,6 +246,10 @@ export function deserializeSignRequestSignerInput(
|
|
|
202
246
|
}
|
|
203
247
|
const readOnly: undefined | boolean =
|
|
204
248
|
val.read_only == void 0 ? void 0 : val.read_only;
|
|
249
|
+
const validation: SignRequestSignerInputValidation | undefined =
|
|
250
|
+
val.validation == void 0
|
|
251
|
+
? void 0
|
|
252
|
+
: deserializeSignRequestSignerInputValidation(val.validation);
|
|
205
253
|
if (!(val.document_tag_id == void 0) && !sdIsString(val.document_tag_id)) {
|
|
206
254
|
throw new BoxSdkError({
|
|
207
255
|
message:
|
|
@@ -239,6 +287,7 @@ export function deserializeSignRequestSignerInput(
|
|
|
239
287
|
contentType: contentType,
|
|
240
288
|
pageIndex: pageIndex,
|
|
241
289
|
readOnly: readOnly,
|
|
290
|
+
validation: validation,
|
|
242
291
|
documentTagId: documentTagId,
|
|
243
292
|
textValue: textValue,
|
|
244
293
|
checkboxValue: checkboxValue,
|