@prismicio/client 7.22.1-pr.452.731578b → 7.22.1
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/dist/Client.cjs +4 -8
- package/dist/Client.cjs.map +1 -1
- package/dist/Client.d.cts +16 -14
- package/dist/Client.d.cts.map +1 -1
- package/dist/Client.d.ts +16 -14
- package/dist/Client.d.ts.map +1 -1
- package/dist/Client.js +4 -8
- package/dist/Client.js.map +1 -1
- package/dist/Migration.cjs +23 -24
- package/dist/Migration.cjs.map +1 -1
- package/dist/Migration.d.cts +3 -1
- package/dist/Migration.d.cts.map +1 -1
- package/dist/Migration.d.ts +3 -1
- package/dist/Migration.d.ts.map +1 -1
- package/dist/Migration.js +23 -24
- package/dist/Migration.js.map +1 -1
- package/dist/WriteClient.cjs +19 -21
- package/dist/WriteClient.cjs.map +1 -1
- package/dist/WriteClient.d.cts +22 -18
- package/dist/WriteClient.d.cts.map +1 -1
- package/dist/WriteClient.d.ts +22 -18
- package/dist/WriteClient.d.ts.map +1 -1
- package/dist/WriteClient.js +19 -21
- package/dist/WriteClient.js.map +1 -1
- package/dist/buildQueryURL.cjs.map +1 -1
- package/dist/buildQueryURL.d.cts +6 -5
- package/dist/buildQueryURL.d.cts.map +1 -1
- package/dist/buildQueryURL.d.ts +6 -5
- package/dist/buildQueryURL.d.ts.map +1 -1
- package/dist/buildQueryURL.js.map +1 -1
- package/dist/cookie.d.cts +1 -1
- package/dist/cookie.d.cts.map +1 -1
- package/dist/cookie.d.ts +1 -1
- package/dist/cookie.d.ts.map +1 -1
- package/dist/createClient.cjs.map +1 -1
- package/dist/createClient.d.cts +4 -2
- package/dist/createClient.d.cts.map +1 -1
- package/dist/createClient.d.ts +4 -2
- package/dist/createClient.d.ts.map +1 -1
- package/dist/createClient.js.map +1 -1
- package/dist/createMigration.cjs.map +1 -1
- package/dist/createMigration.d.cts +4 -2
- package/dist/createMigration.d.cts.map +1 -1
- package/dist/createMigration.d.ts +4 -2
- package/dist/createMigration.d.ts.map +1 -1
- package/dist/createMigration.js.map +1 -1
- package/dist/createWriteClient.cjs.map +1 -1
- package/dist/createWriteClient.d.cts +4 -2
- package/dist/createWriteClient.d.cts.map +1 -1
- package/dist/createWriteClient.d.ts +4 -2
- package/dist/createWriteClient.d.ts.map +1 -1
- package/dist/createWriteClient.js.map +1 -1
- package/dist/errors.cjs.map +1 -1
- package/dist/errors.d.cts +10 -9
- package/dist/errors.d.cts.map +1 -1
- package/dist/errors.d.ts +10 -9
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js.map +1 -1
- package/dist/filter.cjs +0 -175
- package/dist/filter.cjs.map +1 -1
- package/dist/filter.d.cts +4 -3
- package/dist/filter.d.cts.map +1 -1
- package/dist/filter.d.ts +4 -3
- package/dist/filter.d.ts.map +1 -1
- package/dist/filter.js +0 -175
- package/dist/filter.js.map +1 -1
- package/dist/getGraphQLEndpoint.cjs.map +1 -1
- package/dist/getGraphQLEndpoint.d.cts +2 -1
- package/dist/getGraphQLEndpoint.d.cts.map +1 -1
- package/dist/getGraphQLEndpoint.d.ts +2 -1
- package/dist/getGraphQLEndpoint.d.ts.map +1 -1
- package/dist/getGraphQLEndpoint.js.map +1 -1
- package/dist/getRepositoryEndpoint.cjs.map +1 -1
- package/dist/getRepositoryEndpoint.d.cts +2 -1
- package/dist/getRepositoryEndpoint.d.cts.map +1 -1
- package/dist/getRepositoryEndpoint.d.ts +2 -1
- package/dist/getRepositoryEndpoint.d.ts.map +1 -1
- package/dist/getRepositoryEndpoint.js.map +1 -1
- package/dist/getRepositoryName.cjs.map +1 -1
- package/dist/getRepositoryName.d.cts +2 -1
- package/dist/getRepositoryName.d.cts.map +1 -1
- package/dist/getRepositoryName.d.ts +2 -1
- package/dist/getRepositoryName.d.ts.map +1 -1
- package/dist/getRepositoryName.js.map +1 -1
- package/dist/getToolbarSrc.cjs.map +1 -1
- package/dist/getToolbarSrc.d.cts +2 -1
- package/dist/getToolbarSrc.d.cts.map +1 -1
- package/dist/getToolbarSrc.d.ts +2 -1
- package/dist/getToolbarSrc.d.ts.map +1 -1
- package/dist/getToolbarSrc.js.map +1 -1
- package/dist/helpers/asDate.cjs.map +1 -1
- package/dist/helpers/asDate.d.cts +3 -1
- package/dist/helpers/asDate.d.cts.map +1 -1
- package/dist/helpers/asDate.d.ts +3 -1
- package/dist/helpers/asDate.d.ts.map +1 -1
- package/dist/helpers/asDate.js.map +1 -1
- package/dist/helpers/asHTML.cjs +5 -7
- package/dist/helpers/asHTML.cjs.map +1 -1
- package/dist/helpers/asHTML.d.cts +11 -12
- package/dist/helpers/asHTML.d.cts.map +1 -1
- package/dist/helpers/asHTML.d.ts +11 -12
- package/dist/helpers/asHTML.d.ts.map +1 -1
- package/dist/helpers/asHTML.js +5 -7
- package/dist/helpers/asHTML.js.map +1 -1
- package/dist/helpers/asImagePixelDensitySrcSet.cjs.map +1 -1
- package/dist/helpers/asImagePixelDensitySrcSet.d.cts +4 -3
- package/dist/helpers/asImagePixelDensitySrcSet.d.cts.map +1 -1
- package/dist/helpers/asImagePixelDensitySrcSet.d.ts +4 -3
- package/dist/helpers/asImagePixelDensitySrcSet.d.ts.map +1 -1
- package/dist/helpers/asImagePixelDensitySrcSet.js.map +1 -1
- package/dist/helpers/asImageSrc.cjs.map +1 -1
- package/dist/helpers/asImageSrc.d.cts +3 -1
- package/dist/helpers/asImageSrc.d.cts.map +1 -1
- package/dist/helpers/asImageSrc.d.ts +3 -1
- package/dist/helpers/asImageSrc.d.ts.map +1 -1
- package/dist/helpers/asImageSrc.js.map +1 -1
- package/dist/helpers/asImageWidthSrcSet.cjs.map +1 -1
- package/dist/helpers/asImageWidthSrcSet.d.cts +4 -3
- package/dist/helpers/asImageWidthSrcSet.d.cts.map +1 -1
- package/dist/helpers/asImageWidthSrcSet.d.ts +4 -3
- package/dist/helpers/asImageWidthSrcSet.d.ts.map +1 -1
- package/dist/helpers/asImageWidthSrcSet.js.map +1 -1
- package/dist/helpers/asLink.cjs.map +1 -1
- package/dist/helpers/asLink.d.cts +5 -3
- package/dist/helpers/asLink.d.cts.map +1 -1
- package/dist/helpers/asLink.d.ts +5 -3
- package/dist/helpers/asLink.d.ts.map +1 -1
- package/dist/helpers/asLink.js.map +1 -1
- package/dist/helpers/asLinkAttrs.cjs.map +1 -1
- package/dist/helpers/asLinkAttrs.d.cts +4 -2
- package/dist/helpers/asLinkAttrs.d.cts.map +1 -1
- package/dist/helpers/asLinkAttrs.d.ts +4 -2
- package/dist/helpers/asLinkAttrs.d.ts.map +1 -1
- package/dist/helpers/asLinkAttrs.js.map +1 -1
- package/dist/helpers/asText.cjs.map +1 -1
- package/dist/helpers/asText.d.cts +3 -1
- package/dist/helpers/asText.d.cts.map +1 -1
- package/dist/helpers/asText.d.ts +3 -1
- package/dist/helpers/asText.d.ts.map +1 -1
- package/dist/helpers/asText.js.map +1 -1
- package/dist/helpers/documentToLinkField.cjs.map +1 -1
- package/dist/helpers/documentToLinkField.d.cts +3 -1
- package/dist/helpers/documentToLinkField.d.cts.map +1 -1
- package/dist/helpers/documentToLinkField.d.ts +3 -1
- package/dist/helpers/documentToLinkField.d.ts.map +1 -1
- package/dist/helpers/documentToLinkField.js.map +1 -1
- package/dist/helpers/isFilled.cjs +0 -20
- package/dist/helpers/isFilled.cjs.map +1 -1
- package/dist/helpers/isFilled.d.cts +24 -22
- package/dist/helpers/isFilled.d.cts.map +1 -1
- package/dist/helpers/isFilled.d.ts +24 -22
- package/dist/helpers/isFilled.d.ts.map +1 -1
- package/dist/helpers/isFilled.js +1 -1
- package/dist/helpers/isFilled.js.map +1 -1
- package/dist/helpers/mapSliceZone.cjs.map +1 -1
- package/dist/helpers/mapSliceZone.d.cts +8 -10
- package/dist/helpers/mapSliceZone.d.cts.map +1 -1
- package/dist/helpers/mapSliceZone.d.ts +8 -10
- package/dist/helpers/mapSliceZone.d.ts.map +1 -1
- package/dist/helpers/mapSliceZone.js.map +1 -1
- package/dist/index.d.cts +4 -3
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +4 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/isRepositoryEndpoint.cjs.map +1 -1
- package/dist/isRepositoryEndpoint.d.cts +2 -1
- package/dist/isRepositoryEndpoint.d.cts.map +1 -1
- package/dist/isRepositoryEndpoint.d.ts +2 -1
- package/dist/isRepositoryEndpoint.d.ts.map +1 -1
- package/dist/isRepositoryEndpoint.js.map +1 -1
- package/dist/isRepositoryName.cjs.map +1 -1
- package/dist/isRepositoryName.d.cts +2 -1
- package/dist/isRepositoryName.d.cts.map +1 -1
- package/dist/isRepositoryName.d.ts +2 -1
- package/dist/isRepositoryName.d.ts.map +1 -1
- package/dist/isRepositoryName.js.map +1 -1
- package/dist/lib/devMsg.cjs.map +1 -1
- package/dist/lib/devMsg.js.map +1 -1
- package/dist/lib/escapeHTML.cjs.map +1 -1
- package/dist/lib/escapeHTML.js.map +1 -1
- package/dist/lib/getOptionalLinkProperties.cjs.map +1 -1
- package/dist/lib/getOptionalLinkProperties.js.map +1 -1
- package/dist/lib/getPreviewCookie.cjs.map +1 -1
- package/dist/lib/getPreviewCookie.js.map +1 -1
- package/dist/lib/isInternalURL.cjs.map +1 -1
- package/dist/lib/isInternalURL.js.map +1 -1
- package/dist/lib/isMigrationValue.cjs.map +1 -1
- package/dist/lib/isMigrationValue.js.map +1 -1
- package/dist/lib/isValue.cjs.map +1 -1
- package/dist/lib/isValue.js.map +1 -1
- package/dist/lib/pLimit.cjs.map +1 -1
- package/dist/lib/pLimit.js.map +1 -1
- package/dist/lib/request.cjs +0 -1
- package/dist/lib/request.cjs.map +1 -1
- package/dist/lib/request.d.cts +6 -5
- package/dist/lib/request.d.cts.map +1 -1
- package/dist/lib/request.d.ts +6 -5
- package/dist/lib/request.d.ts.map +1 -1
- package/dist/lib/request.js +1 -1
- package/dist/lib/request.js.map +1 -1
- package/dist/lib/resolveMigrationDocumentData.cjs +0 -3
- package/dist/lib/resolveMigrationDocumentData.cjs.map +1 -1
- package/dist/lib/resolveMigrationDocumentData.js +1 -1
- package/dist/lib/resolveMigrationDocumentData.js.map +1 -1
- package/dist/lib/serializerHelpers.cjs +6 -10
- package/dist/lib/serializerHelpers.cjs.map +1 -1
- package/dist/lib/serializerHelpers.js +6 -10
- package/dist/lib/serializerHelpers.js.map +1 -1
- package/dist/lib/throttledWarn.cjs.map +1 -1
- package/dist/lib/throttledWarn.js.map +1 -1
- package/dist/lib/validateAssetMetadata.cjs.map +1 -1
- package/dist/lib/validateAssetMetadata.js.map +1 -1
- package/dist/package.cjs +1 -1
- package/dist/package.js +1 -1
- package/dist/richtext/asText.cjs.map +1 -1
- package/dist/richtext/asText.d.cts +3 -1
- package/dist/richtext/asText.d.cts.map +1 -1
- package/dist/richtext/asText.d.ts +3 -1
- package/dist/richtext/asText.d.ts.map +1 -1
- package/dist/richtext/asText.js.map +1 -1
- package/dist/richtext/asTree.cjs.map +1 -1
- package/dist/richtext/asTree.d.cts +3 -1
- package/dist/richtext/asTree.d.cts.map +1 -1
- package/dist/richtext/asTree.d.ts +3 -1
- package/dist/richtext/asTree.d.ts.map +1 -1
- package/dist/richtext/asTree.js.map +1 -1
- package/dist/richtext/composeSerializers.cjs.map +1 -1
- package/dist/richtext/composeSerializers.d.cts +3 -1
- package/dist/richtext/composeSerializers.d.cts.map +1 -1
- package/dist/richtext/composeSerializers.d.ts +3 -1
- package/dist/richtext/composeSerializers.d.ts.map +1 -1
- package/dist/richtext/composeSerializers.js.map +1 -1
- package/dist/richtext/serialize.cjs.map +1 -1
- package/dist/richtext/serialize.d.cts +3 -1
- package/dist/richtext/serialize.d.cts.map +1 -1
- package/dist/richtext/serialize.d.ts +3 -1
- package/dist/richtext/serialize.d.ts.map +1 -1
- package/dist/richtext/serialize.js.map +1 -1
- package/dist/richtext/types.cjs.map +1 -1
- package/dist/richtext/types.d.cts +7 -5
- package/dist/richtext/types.d.cts.map +1 -1
- package/dist/richtext/types.d.ts +7 -5
- package/dist/richtext/types.d.ts.map +1 -1
- package/dist/richtext/types.js.map +1 -1
- package/dist/richtext/wrapMapSerializer.cjs.map +1 -1
- package/dist/richtext/wrapMapSerializer.d.cts +3 -1
- package/dist/richtext/wrapMapSerializer.d.cts.map +1 -1
- package/dist/richtext/wrapMapSerializer.d.ts +3 -1
- package/dist/richtext/wrapMapSerializer.d.ts.map +1 -1
- package/dist/richtext/wrapMapSerializer.js.map +1 -1
- package/dist/types/api/asset/asset.d.cts +20 -35
- package/dist/types/api/asset/asset.d.cts.map +1 -1
- package/dist/types/api/asset/asset.d.ts +20 -35
- package/dist/types/api/asset/asset.d.ts.map +1 -1
- package/dist/types/api/asset/tag.d.cts +7 -12
- package/dist/types/api/asset/tag.d.cts.map +1 -1
- package/dist/types/api/asset/tag.d.ts +7 -12
- package/dist/types/api/asset/tag.d.ts.map +1 -1
- package/dist/types/api/integration.d.cts +4 -2
- package/dist/types/api/integration.d.cts.map +1 -1
- package/dist/types/api/integration.d.ts +4 -2
- package/dist/types/api/integration.d.ts.map +1 -1
- package/dist/types/api/migration/release.d.cts +7 -3
- package/dist/types/api/migration/release.d.cts.map +1 -1
- package/dist/types/api/migration/release.d.ts +7 -3
- package/dist/types/api/migration/release.d.ts.map +1 -1
- package/dist/types/api/query.d.cts +3 -1
- package/dist/types/api/query.d.cts.map +1 -1
- package/dist/types/api/query.d.ts +3 -1
- package/dist/types/api/query.d.ts.map +1 -1
- package/dist/types/api/ref.d.cts +2 -1
- package/dist/types/api/ref.d.cts.map +1 -1
- package/dist/types/api/ref.d.ts +2 -1
- package/dist/types/api/ref.d.ts.map +1 -1
- package/dist/types/api/release.d.cts +3 -1
- package/dist/types/api/release.d.cts.map +1 -1
- package/dist/types/api/release.d.ts +3 -1
- package/dist/types/api/release.d.ts.map +1 -1
- package/dist/types/api/repository.d.cts +6 -4
- package/dist/types/api/repository.d.cts.map +1 -1
- package/dist/types/api/repository.d.ts +6 -4
- package/dist/types/api/repository.d.ts.map +1 -1
- package/dist/types/api/tags.d.cts +2 -1
- package/dist/types/api/tags.d.cts.map +1 -1
- package/dist/types/api/tags.d.ts +2 -1
- package/dist/types/api/tags.d.ts.map +1 -1
- package/dist/types/migration/Asset.cjs.map +1 -1
- package/dist/types/migration/Asset.d.cts +15 -21
- package/dist/types/migration/Asset.d.cts.map +1 -1
- package/dist/types/migration/Asset.d.ts +15 -21
- package/dist/types/migration/Asset.d.ts.map +1 -1
- package/dist/types/migration/Asset.js.map +1 -1
- package/dist/types/migration/ContentRelationship.d.cts +3 -1
- package/dist/types/migration/ContentRelationship.d.cts.map +1 -1
- package/dist/types/migration/ContentRelationship.d.ts +3 -1
- package/dist/types/migration/ContentRelationship.d.ts.map +1 -1
- package/dist/types/migration/Document.cjs.map +1 -1
- package/dist/types/migration/Document.d.cts +8 -8
- package/dist/types/migration/Document.d.cts.map +1 -1
- package/dist/types/migration/Document.d.ts +8 -8
- package/dist/types/migration/Document.d.ts.map +1 -1
- package/dist/types/migration/Document.js.map +1 -1
- package/dist/types/model/boolean.d.cts +3 -1
- package/dist/types/model/boolean.d.cts.map +1 -1
- package/dist/types/model/boolean.d.ts +3 -1
- package/dist/types/model/boolean.d.ts.map +1 -1
- package/dist/types/model/color.d.cts +3 -1
- package/dist/types/model/color.d.cts.map +1 -1
- package/dist/types/model/color.d.ts +3 -1
- package/dist/types/model/color.d.ts.map +1 -1
- package/dist/types/model/contentRelationship.d.cts +8 -6
- package/dist/types/model/contentRelationship.d.cts.map +1 -1
- package/dist/types/model/contentRelationship.d.ts +8 -6
- package/dist/types/model/contentRelationship.d.ts.map +1 -1
- package/dist/types/model/customType.d.cts +5 -3
- package/dist/types/model/customType.d.cts.map +1 -1
- package/dist/types/model/customType.d.ts +5 -3
- package/dist/types/model/customType.d.ts.map +1 -1
- package/dist/types/model/date.d.cts +3 -1
- package/dist/types/model/date.d.cts.map +1 -1
- package/dist/types/model/date.d.ts +3 -1
- package/dist/types/model/date.d.ts.map +1 -1
- package/dist/types/model/embed.d.cts +3 -1
- package/dist/types/model/embed.d.cts.map +1 -1
- package/dist/types/model/embed.d.ts +3 -1
- package/dist/types/model/embed.d.ts.map +1 -1
- package/dist/types/model/geoPoint.d.cts +3 -1
- package/dist/types/model/geoPoint.d.cts.map +1 -1
- package/dist/types/model/geoPoint.d.ts +3 -1
- package/dist/types/model/geoPoint.d.ts.map +1 -1
- package/dist/types/model/group.d.cts +4 -2
- package/dist/types/model/group.d.cts.map +1 -1
- package/dist/types/model/group.d.ts +4 -2
- package/dist/types/model/group.d.ts.map +1 -1
- package/dist/types/model/image.d.cts +5 -3
- package/dist/types/model/image.d.cts.map +1 -1
- package/dist/types/model/image.d.ts +5 -3
- package/dist/types/model/image.d.ts.map +1 -1
- package/dist/types/model/integration.d.cts +3 -1
- package/dist/types/model/integration.d.cts.map +1 -1
- package/dist/types/model/integration.d.ts +3 -1
- package/dist/types/model/integration.d.ts.map +1 -1
- package/dist/types/model/keyText.d.cts +3 -1
- package/dist/types/model/keyText.d.cts.map +1 -1
- package/dist/types/model/keyText.d.ts +3 -1
- package/dist/types/model/keyText.d.ts.map +1 -1
- package/dist/types/model/link.cjs.map +1 -1
- package/dist/types/model/link.d.cts +4 -2
- package/dist/types/model/link.d.cts.map +1 -1
- package/dist/types/model/link.d.ts +4 -2
- package/dist/types/model/link.d.ts.map +1 -1
- package/dist/types/model/link.js.map +1 -1
- package/dist/types/model/linkToMedia.d.cts +3 -1
- package/dist/types/model/linkToMedia.d.cts.map +1 -1
- package/dist/types/model/linkToMedia.d.ts +3 -1
- package/dist/types/model/linkToMedia.d.ts.map +1 -1
- package/dist/types/model/number.d.cts +3 -1
- package/dist/types/model/number.d.cts.map +1 -1
- package/dist/types/model/number.d.ts +3 -1
- package/dist/types/model/number.d.ts.map +1 -1
- package/dist/types/model/range.d.cts +3 -1
- package/dist/types/model/range.d.cts.map +1 -1
- package/dist/types/model/range.d.ts +3 -1
- package/dist/types/model/range.d.ts.map +1 -1
- package/dist/types/model/richText.d.cts +5 -3
- package/dist/types/model/richText.d.cts.map +1 -1
- package/dist/types/model/richText.d.ts +5 -3
- package/dist/types/model/richText.d.ts.map +1 -1
- package/dist/types/model/select.d.cts +3 -1
- package/dist/types/model/select.d.cts.map +1 -1
- package/dist/types/model/select.d.ts +3 -1
- package/dist/types/model/select.d.ts.map +1 -1
- package/dist/types/model/separator.d.cts +3 -1
- package/dist/types/model/separator.d.cts.map +1 -1
- package/dist/types/model/separator.d.ts +3 -1
- package/dist/types/model/separator.d.ts.map +1 -1
- package/dist/types/model/sharedSlice.d.cts +3 -1
- package/dist/types/model/sharedSlice.d.cts.map +1 -1
- package/dist/types/model/sharedSlice.d.ts +3 -1
- package/dist/types/model/sharedSlice.d.ts.map +1 -1
- package/dist/types/model/sharedSliceVariation.d.cts +3 -1
- package/dist/types/model/sharedSliceVariation.d.cts.map +1 -1
- package/dist/types/model/sharedSliceVariation.d.ts +3 -1
- package/dist/types/model/sharedSliceVariation.d.ts.map +1 -1
- package/dist/types/model/slice.cjs.map +1 -1
- package/dist/types/model/slice.d.cts +5 -3
- package/dist/types/model/slice.d.cts.map +1 -1
- package/dist/types/model/slice.d.ts +5 -3
- package/dist/types/model/slice.d.ts.map +1 -1
- package/dist/types/model/slice.js.map +1 -1
- package/dist/types/model/sliceZone.cjs.map +1 -1
- package/dist/types/model/sliceZone.d.cts +6 -4
- package/dist/types/model/sliceZone.d.cts.map +1 -1
- package/dist/types/model/sliceZone.d.ts +6 -4
- package/dist/types/model/sliceZone.d.ts.map +1 -1
- package/dist/types/model/sliceZone.js.map +1 -1
- package/dist/types/model/table.d.cts +3 -1
- package/dist/types/model/table.d.cts.map +1 -1
- package/dist/types/model/table.d.ts +3 -1
- package/dist/types/model/table.d.ts.map +1 -1
- package/dist/types/model/timestamp.d.cts +3 -1
- package/dist/types/model/timestamp.d.cts.map +1 -1
- package/dist/types/model/timestamp.d.ts +3 -1
- package/dist/types/model/timestamp.d.ts.map +1 -1
- package/dist/types/model/title.d.cts +3 -1
- package/dist/types/model/title.d.cts.map +1 -1
- package/dist/types/model/title.d.ts +3 -1
- package/dist/types/model/title.d.ts.map +1 -1
- package/dist/types/model/types.cjs +0 -4
- package/dist/types/model/types.cjs.map +1 -1
- package/dist/types/model/types.d.cts +11 -13
- package/dist/types/model/types.d.cts.map +1 -1
- package/dist/types/model/types.d.ts +11 -13
- package/dist/types/model/types.d.ts.map +1 -1
- package/dist/types/model/types.js +0 -4
- package/dist/types/model/types.js.map +1 -1
- package/dist/types/model/uid.d.cts +3 -1
- package/dist/types/model/uid.d.cts.map +1 -1
- package/dist/types/model/uid.d.ts +3 -1
- package/dist/types/model/uid.d.ts.map +1 -1
- package/dist/types/value/boolean.d.cts +2 -1
- package/dist/types/value/boolean.d.cts.map +1 -1
- package/dist/types/value/boolean.d.ts +2 -1
- package/dist/types/value/boolean.d.ts.map +1 -1
- package/dist/types/value/color.d.cts +3 -1
- package/dist/types/value/color.d.cts.map +1 -1
- package/dist/types/value/color.d.ts +3 -1
- package/dist/types/value/color.d.ts.map +1 -1
- package/dist/types/value/contentRelationship.d.cts +5 -3
- package/dist/types/value/contentRelationship.d.cts.map +1 -1
- package/dist/types/value/contentRelationship.d.ts +5 -3
- package/dist/types/value/contentRelationship.d.ts.map +1 -1
- package/dist/types/value/date.d.cts +3 -1
- package/dist/types/value/date.d.cts.map +1 -1
- package/dist/types/value/date.d.ts +3 -1
- package/dist/types/value/date.d.ts.map +1 -1
- package/dist/types/value/document.d.cts +7 -5
- package/dist/types/value/document.d.cts.map +1 -1
- package/dist/types/value/document.d.ts +7 -5
- package/dist/types/value/document.d.ts.map +1 -1
- package/dist/types/value/embed.cjs.map +1 -1
- package/dist/types/value/embed.d.cts +25 -43
- package/dist/types/value/embed.d.cts.map +1 -1
- package/dist/types/value/embed.d.ts +25 -43
- package/dist/types/value/embed.d.ts.map +1 -1
- package/dist/types/value/embed.js.map +1 -1
- package/dist/types/value/geoPoint.d.cts +3 -1
- package/dist/types/value/geoPoint.d.cts.map +1 -1
- package/dist/types/value/geoPoint.d.ts +3 -1
- package/dist/types/value/geoPoint.d.ts.map +1 -1
- package/dist/types/value/group.d.cts +4 -2
- package/dist/types/value/group.d.cts.map +1 -1
- package/dist/types/value/group.d.ts +4 -2
- package/dist/types/value/group.d.ts.map +1 -1
- package/dist/types/value/image.d.cts +6 -4
- package/dist/types/value/image.d.cts.map +1 -1
- package/dist/types/value/image.d.ts +6 -4
- package/dist/types/value/image.d.ts.map +1 -1
- package/dist/types/value/integration.d.cts +4 -2
- package/dist/types/value/integration.d.cts.map +1 -1
- package/dist/types/value/integration.d.ts +4 -2
- package/dist/types/value/integration.d.ts.map +1 -1
- package/dist/types/value/keyText.d.cts +3 -1
- package/dist/types/value/keyText.d.cts.map +1 -1
- package/dist/types/value/keyText.d.ts +3 -1
- package/dist/types/value/keyText.d.ts.map +1 -1
- package/dist/types/value/link.cjs.map +1 -1
- package/dist/types/value/link.d.cts +8 -6
- package/dist/types/value/link.d.cts.map +1 -1
- package/dist/types/value/link.d.ts +8 -6
- package/dist/types/value/link.d.ts.map +1 -1
- package/dist/types/value/link.js.map +1 -1
- package/dist/types/value/linkToMedia.d.cts +4 -2
- package/dist/types/value/linkToMedia.d.cts.map +1 -1
- package/dist/types/value/linkToMedia.d.ts +4 -2
- package/dist/types/value/linkToMedia.d.ts.map +1 -1
- package/dist/types/value/number.d.cts +3 -1
- package/dist/types/value/number.d.cts.map +1 -1
- package/dist/types/value/number.d.ts +3 -1
- package/dist/types/value/number.d.ts.map +1 -1
- package/dist/types/value/richText.cjs.map +1 -1
- package/dist/types/value/richText.d.cts +31 -29
- package/dist/types/value/richText.d.cts.map +1 -1
- package/dist/types/value/richText.d.ts +31 -29
- package/dist/types/value/richText.d.ts.map +1 -1
- package/dist/types/value/richText.js.map +1 -1
- package/dist/types/value/select.d.cts +3 -1
- package/dist/types/value/select.d.cts.map +1 -1
- package/dist/types/value/select.d.ts +3 -1
- package/dist/types/value/select.d.ts.map +1 -1
- package/dist/types/value/sharedSlice.d.cts +3 -1
- package/dist/types/value/sharedSlice.d.cts.map +1 -1
- package/dist/types/value/sharedSlice.d.ts +3 -1
- package/dist/types/value/sharedSlice.d.ts.map +1 -1
- package/dist/types/value/sharedSliceVariation.d.cts +3 -1
- package/dist/types/value/sharedSliceVariation.d.cts.map +1 -1
- package/dist/types/value/sharedSliceVariation.d.ts +3 -1
- package/dist/types/value/sharedSliceVariation.d.ts.map +1 -1
- package/dist/types/value/slice.d.cts +3 -1
- package/dist/types/value/slice.d.cts.map +1 -1
- package/dist/types/value/slice.d.ts +3 -1
- package/dist/types/value/slice.d.ts.map +1 -1
- package/dist/types/value/sliceZone.d.cts +3 -1
- package/dist/types/value/sliceZone.d.cts.map +1 -1
- package/dist/types/value/sliceZone.d.ts +3 -1
- package/dist/types/value/sliceZone.d.ts.map +1 -1
- package/dist/types/value/table.d.cts +16 -26
- package/dist/types/value/table.d.cts.map +1 -1
- package/dist/types/value/table.d.ts +16 -26
- package/dist/types/value/table.d.ts.map +1 -1
- package/dist/types/value/timestamp.d.cts +3 -1
- package/dist/types/value/timestamp.d.cts.map +1 -1
- package/dist/types/value/timestamp.d.ts +3 -1
- package/dist/types/value/timestamp.d.ts.map +1 -1
- package/dist/types/value/title.d.cts +3 -1
- package/dist/types/value/title.d.cts.map +1 -1
- package/dist/types/value/title.d.ts +3 -1
- package/dist/types/value/title.d.ts.map +1 -1
- package/dist/types/value/types.d.cts +8 -6
- package/dist/types/value/types.d.cts.map +1 -1
- package/dist/types/value/types.d.ts +8 -6
- package/dist/types/value/types.d.ts.map +1 -1
- package/dist/types/webhook/apiUpdate.d.cts +3 -1
- package/dist/types/webhook/apiUpdate.d.cts.map +1 -1
- package/dist/types/webhook/apiUpdate.d.ts +3 -1
- package/dist/types/webhook/apiUpdate.d.ts.map +1 -1
- package/dist/types/webhook/testTrigger.d.cts +3 -1
- package/dist/types/webhook/testTrigger.d.cts.map +1 -1
- package/dist/types/webhook/testTrigger.d.ts +3 -1
- package/dist/types/webhook/testTrigger.d.ts.map +1 -1
- package/dist/types/webhook/types.cjs.map +1 -1
- package/dist/types/webhook/types.d.cts +5 -3
- package/dist/types/webhook/types.d.cts.map +1 -1
- package/dist/types/webhook/types.d.ts +5 -3
- package/dist/types/webhook/types.d.ts.map +1 -1
- package/dist/types/webhook/types.js.map +1 -1
- package/package.json +9 -9
- package/src/WriteClient.ts +19 -14
- package/src/lib/resolveMigrationDocumentData.ts +1 -1
- package/src/types/api/migration/release.ts +5 -2
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { FilledContentRelationshipField } from "../types/value/contentRelationship.cjs";
|
|
2
2
|
import { PrismicDocument } from "../types/value/document.cjs";
|
|
3
|
+
|
|
3
4
|
//#region src/helpers/documentToLinkField.d.ts
|
|
4
5
|
type SetOptional<T, Keys extends keyof T> = Omit<T, Keys> & Partial<Pick<T, Keys>>;
|
|
5
6
|
/**
|
|
@@ -10,6 +11,7 @@ type SetOptional<T, Keys extends keyof T> = Omit<T, Keys> & Partial<Pick<T, Keys
|
|
|
10
11
|
* @returns The equivalent link field to use with `asLink()`
|
|
11
12
|
* @internal
|
|
12
13
|
*/
|
|
13
|
-
|
|
14
|
+
declare const documentToLinkField: <TDocument extends SetOptional<PrismicDocument, "slugs">>(prismicDocument: TDocument) => FilledContentRelationshipField<TDocument["type"], TDocument["lang"], TDocument["data"]>;
|
|
14
15
|
//#endregion
|
|
16
|
+
export { documentToLinkField };
|
|
15
17
|
//# sourceMappingURL=documentToLinkField.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"documentToLinkField.d.cts","names":[],"sources":["../../src/helpers/documentToLinkField.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"documentToLinkField.d.cts","names":[],"sources":["../../src/helpers/documentToLinkField.ts"],"mappings":";;;;KAIK,WAAA,uBAAkC,CAAA,IAAK,IAAA,CAAK,CAAA,EAAG,IAAA,IAAQ,OAAA,CAAQ,IAAA,CAAK,CAAA,EAAG,IAAA;;AAHd;;;;;;;cAajD,mBAAA,qBAAyC,WAAA,CAAY,eAAA,YACjE,eAAA,EAAiB,SAAA,KACf,8BAAA,CAA+B,SAAA,UAAmB,SAAA,UAAmB,SAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { FilledContentRelationshipField } from "../types/value/contentRelationship.js";
|
|
2
2
|
import { PrismicDocument } from "../types/value/document.js";
|
|
3
|
+
|
|
3
4
|
//#region src/helpers/documentToLinkField.d.ts
|
|
4
5
|
type SetOptional<T, Keys extends keyof T> = Omit<T, Keys> & Partial<Pick<T, Keys>>;
|
|
5
6
|
/**
|
|
@@ -10,6 +11,7 @@ type SetOptional<T, Keys extends keyof T> = Omit<T, Keys> & Partial<Pick<T, Keys
|
|
|
10
11
|
* @returns The equivalent link field to use with `asLink()`
|
|
11
12
|
* @internal
|
|
12
13
|
*/
|
|
13
|
-
|
|
14
|
+
declare const documentToLinkField: <TDocument extends SetOptional<PrismicDocument, "slugs">>(prismicDocument: TDocument) => FilledContentRelationshipField<TDocument["type"], TDocument["lang"], TDocument["data"]>;
|
|
14
15
|
//#endregion
|
|
16
|
+
export { documentToLinkField };
|
|
15
17
|
//# sourceMappingURL=documentToLinkField.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"documentToLinkField.d.ts","names":[],"sources":["../../src/helpers/documentToLinkField.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"documentToLinkField.d.ts","names":[],"sources":["../../src/helpers/documentToLinkField.ts"],"mappings":";;;;KAIK,WAAA,uBAAkC,CAAA,IAAK,IAAA,CAAK,CAAA,EAAG,IAAA,IAAQ,OAAA,CAAQ,IAAA,CAAK,CAAA,EAAG,IAAA;;AAHd;;;;;;;cAajD,mBAAA,qBAAyC,WAAA,CAAY,eAAA,YACjE,eAAA,EAAiB,SAAA,KACf,8BAAA,CAA+B,SAAA,UAAmB,SAAA,UAAmB,SAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"documentToLinkField.js","names":[],"sources":["../../src/helpers/documentToLinkField.ts"],"sourcesContent":["import type { FilledContentRelationshipField } from \"../types/value/contentRelationship\"\nimport type { PrismicDocument } from \"../types/value/document\"\nimport { LinkType } from \"../types/value/link\"\n\ntype SetOptional<T, Keys extends keyof T> = Omit<T, Keys> & Partial<Pick<T, Keys>>\n\n/**\n * Converts a document into a link field, this is useful when crawling the API for document links\n *\n * @typeParam TDocument - Specific interface of the provided document\n * @param prismicDocument - A document coming from Prismic\n * @returns The equivalent link field to use with `asLink()`\n * @internal\n */\nexport const documentToLinkField = <TDocument extends SetOptional<PrismicDocument, \"slugs\">>(\n\tprismicDocument: TDocument,\n): FilledContentRelationshipField<TDocument[\"type\"], TDocument[\"lang\"], TDocument[\"data\"]> => {\n\treturn {\n\t\tlink_type: LinkType.Document,\n\t\tid: prismicDocument.id,\n\t\tuid: prismicDocument.uid || undefined,\n\t\ttype: prismicDocument.type,\n\t\ttags: prismicDocument.tags,\n\t\tlang: prismicDocument.lang,\n\t\turl: prismicDocument.url == null ? undefined : prismicDocument.url,\n\t\tslug: prismicDocument.slugs?.[0], // Slug field is not available with GraphQL\n\t\t// The REST API does not include a `data` property if the data\n\t\t// object is empty.\n\t\t//\n\t\t// A presence check for `prismicDocument.data` is done to\n\t\t// support partial documents. While `documentToLinkField` is\n\t\t// not typed to accept partial documents, passing a partial\n\t\t// document can happen in untyped projects.\n\t\t...(prismicDocument.data && Object.keys(prismicDocument.data).length > 0\n\t\t\t? { data: prismicDocument.data }\n\t\t\t: {}),\n\t}\n}\n"],"mappings":";;;;;;;;;;AAcA,MAAa,uBACZ,oBAC6F;
|
|
1
|
+
{"version":3,"file":"documentToLinkField.js","names":[],"sources":["../../src/helpers/documentToLinkField.ts"],"sourcesContent":["import type { FilledContentRelationshipField } from \"../types/value/contentRelationship\"\nimport type { PrismicDocument } from \"../types/value/document\"\nimport { LinkType } from \"../types/value/link\"\n\ntype SetOptional<T, Keys extends keyof T> = Omit<T, Keys> & Partial<Pick<T, Keys>>\n\n/**\n * Converts a document into a link field, this is useful when crawling the API for document links\n *\n * @typeParam TDocument - Specific interface of the provided document\n * @param prismicDocument - A document coming from Prismic\n * @returns The equivalent link field to use with `asLink()`\n * @internal\n */\nexport const documentToLinkField = <TDocument extends SetOptional<PrismicDocument, \"slugs\">>(\n\tprismicDocument: TDocument,\n): FilledContentRelationshipField<TDocument[\"type\"], TDocument[\"lang\"], TDocument[\"data\"]> => {\n\treturn {\n\t\tlink_type: LinkType.Document,\n\t\tid: prismicDocument.id,\n\t\tuid: prismicDocument.uid || undefined,\n\t\ttype: prismicDocument.type,\n\t\ttags: prismicDocument.tags,\n\t\tlang: prismicDocument.lang,\n\t\turl: prismicDocument.url == null ? undefined : prismicDocument.url,\n\t\tslug: prismicDocument.slugs?.[0], // Slug field is not available with GraphQL\n\t\t// The REST API does not include a `data` property if the data\n\t\t// object is empty.\n\t\t//\n\t\t// A presence check for `prismicDocument.data` is done to\n\t\t// support partial documents. While `documentToLinkField` is\n\t\t// not typed to accept partial documents, passing a partial\n\t\t// document can happen in untyped projects.\n\t\t...(prismicDocument.data && Object.keys(prismicDocument.data).length > 0\n\t\t\t? { data: prismicDocument.data }\n\t\t\t: {}),\n\t}\n}\n"],"mappings":";;;;;;;;;;AAcA,MAAa,uBACZ,oBAC6F;AAC7F,QAAO;EACN,WAAW,SAAS;EACpB,IAAI,gBAAgB;EACpB,KAAK,gBAAgB,OAAO,KAAA;EAC5B,MAAM,gBAAgB;EACtB,MAAM,gBAAgB;EACtB,MAAM,gBAAgB;EACtB,KAAK,gBAAgB,OAAO,OAAO,KAAA,IAAY,gBAAgB;EAC/D,MAAM,gBAAgB,QAAQ;EAQ9B,GAAI,gBAAgB,QAAQ,OAAO,KAAK,gBAAgB,KAAK,CAAC,SAAS,IACpE,EAAE,MAAM,gBAAgB,MAAM,GAC9B,EAAE;EACL"}
|
|
@@ -209,33 +209,13 @@ const sliceZone = (slices) => {
|
|
|
209
209
|
return isNonNullish(slices) && isNonEmptyArray(slices);
|
|
210
210
|
};
|
|
211
211
|
//#endregion
|
|
212
|
-
exports.color = color;
|
|
213
|
-
exports.contentRelationship = contentRelationship;
|
|
214
|
-
exports.date = date;
|
|
215
|
-
exports.embed = embed;
|
|
216
|
-
exports.geoPoint = geoPoint;
|
|
217
|
-
exports.group = group;
|
|
218
|
-
exports.image = image;
|
|
219
212
|
exports.imageThumbnail = imageThumbnail;
|
|
220
|
-
exports.integration = integration;
|
|
221
|
-
exports.integrationField = integrationField;
|
|
222
|
-
exports.integrationFields = integrationFields;
|
|
223
213
|
Object.defineProperty(exports, "isFilled_exports", {
|
|
224
214
|
enumerable: true,
|
|
225
215
|
get: function() {
|
|
226
216
|
return isFilled_exports;
|
|
227
217
|
}
|
|
228
218
|
});
|
|
229
|
-
exports.keyText = keyText;
|
|
230
219
|
exports.link = link;
|
|
231
|
-
exports.linkToMedia = linkToMedia;
|
|
232
|
-
exports.number = number;
|
|
233
|
-
exports.repeatable = repeatable;
|
|
234
|
-
exports.richText = richText;
|
|
235
|
-
exports.select = select;
|
|
236
|
-
exports.sliceZone = sliceZone;
|
|
237
|
-
exports.table = table;
|
|
238
|
-
exports.timestamp = timestamp;
|
|
239
|
-
exports.title = title;
|
|
240
220
|
|
|
241
221
|
//# sourceMappingURL=isFilled.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isFilled.cjs","names":[],"sources":["../../src/helpers/isFilled.ts"],"sourcesContent":["import type { ColorField } from \"../types/value/color\"\nimport type {\n\tContentRelationshipField,\n\tEmptyContentRelationshipField,\n} from \"../types/value/contentRelationship\"\nimport type { DateField } from \"../types/value/date\"\nimport type { AnyOEmbed, EmbedField } from \"../types/value/embed\"\nimport type { GeoPointField } from \"../types/value/geoPoint\"\nimport type { GroupField, NestedGroupField } from \"../types/value/group\"\nimport type { ImageField, ImageFieldImage } from \"../types/value/image\"\nimport type { IntegrationField, IntegrationFieldData } from \"../types/value/integration\"\nimport type { KeyTextField } from \"../types/value/keyText\"\nimport type { LinkField } from \"../types/value/link\"\nimport type { LinkToMediaField } from \"../types/value/linkToMedia\"\nimport type { NumberField } from \"../types/value/number\"\nimport type { RichTextField } from \"../types/value/richText\"\nimport type { SelectField } from \"../types/value/select\"\nimport type { SharedSlice } from \"../types/value/sharedSlice\"\nimport type { Slice } from \"../types/value/slice\"\nimport type { SliceZone } from \"../types/value/sliceZone\"\nimport type { TableField } from \"../types/value/table\"\nimport type { TimestampField } from \"../types/value/timestamp\"\nimport type { TitleField } from \"../types/value/title\"\nimport type { AnyRegularField, Repeatable } from \"../types/value/types\"\n\n/**\n * Determines if a value is not nullish (i.e. not `null` or `undefined`). This is used to check if\n * nullable field values are filled.\n *\n * @param input - The value to check.\n * @returns `true` if `input` is not nullish, `false` otherwise.\n */\nconst isNonNullish = <T>(input: T): input is NonNullable<T> => {\n\treturn input != null\n}\n\n/**\n * Determines if an array is not empty. This is used to check if array-based fields are filled.\n *\n * @param input - The array to check.\n * @returns `true` if `input` has at least one element, `false` otherwise.\n */\nconst isNonEmptyArray = <T>(input: T[]): input is [T, ...T[]] => {\n\treturn !!input.length\n}\n\n/**\n * Determines if a rich text field is filled.\n *\n * @param field - Rich text field to check.\n * @returns `true` if `field` is filled, `false` otherwise.\n */\nexport const richText = (\n\tfield: RichTextField | null | undefined,\n): field is RichTextField<\"filled\"> => {\n\tif (!isNonNullish(field)) {\n\t\treturn false\n\t} else if (field.length === 1 && \"text\" in field[0]) {\n\t\treturn !!field[0].text\n\t} else {\n\t\treturn !!field.length\n\t}\n}\n\n/**\n * Determines if a title field is filled.\n *\n * @param field - Title field to check.\n * @returns `true` if `field` is filled, `false` otherwise.\n */\nexport const title = richText as (\n\tfield: TitleField | null | undefined,\n) => field is TitleField<\"filled\">\n\n/**\n * Determines if an image thumbnail is filled.\n *\n * @param thumbnail - Image thumbnail to check.\n * @returns `true` if the thumbnail is filled, `false` otherwise.\n */\nexport const imageThumbnail = (\n\tthumbnail: ImageFieldImage | null | undefined,\n): thumbnail is ImageFieldImage<\"filled\"> => {\n\treturn isNonNullish(thumbnail) && !!thumbnail.url\n}\n\n/**\n * Determines if an image field is filled.\n *\n * @param field - Image field to check.\n * @returns `true` if `field` is filled, `false` otherwise.\n */\nexport const image = imageThumbnail as <ThumbnailNames extends string | null = never>(\n\tfield: ImageField<ThumbnailNames> | null | undefined,\n) => field is ImageField<ThumbnailNames, \"filled\">\n\n/**\n * Determines if a link field is filled.\n *\n * @param field - Link field to check.\n * @returns `true` if `field` is filled, `false` otherwise.\n */\nexport const link = <\n\tTypeEnum = string,\n\tLangEnum = string,\n\tDataInterface extends Record<string, AnyRegularField | GroupField | SliceZone> | unknown =\n\t\tunknown,\n>(\n\tfield: LinkField<TypeEnum, LangEnum, DataInterface> | null | undefined,\n): field is LinkField<TypeEnum, LangEnum, DataInterface, \"filled\"> => {\n\treturn isNonNullish(field) && (\"id\" in field || \"url\" in field)\n}\n\n/**\n * Determines if a link to media field is filled.\n *\n * @param field - Link to media field to check.\n * @returns `true` if `field` is filled, `false` otherwise.\n */\nexport const linkToMedia = link as (\n\tfield: LinkToMediaField | null | undefined,\n) => field is LinkToMediaField<\"filled\">\n\n/**\n * Determines if a content relationship field is filled.\n *\n * @param field - Content relationship field to check.\n * @returns `true` if the field is filled, `false` otherwise.\n */\nexport const contentRelationship = link as <Field extends ContentRelationshipField>(\n\tfield: Field | null | undefined,\n) => field is Exclude<Field, EmptyContentRelationshipField>\n\n/**\n * Determines if a date field is filled.\n *\n * @param field - Date field to check.\n * @returns `true` if `field` is filled, `false` otherwise.\n */\nexport const date = isNonNullish as (\n\tfield: DateField | null | undefined,\n) => field is DateField<\"filled\">\n\n/**\n * Determines if a timestamp field is filled.\n *\n * @param field - Timestamp field to check.\n * @returns `true` if `field` is filled, `false` otherwise.\n */\nexport const timestamp = isNonNullish as (\n\tfield: TimestampField | null | undefined,\n) => field is TimestampField<\"filled\">\n\n/**\n * Determines if a color field is filled.\n *\n * @param field - Color field to check.\n * @returns `true` if `field` is filled, `false` otherwise.\n */\nexport const color = isNonNullish as (\n\tfield: ColorField | null | undefined,\n) => field is ColorField<\"filled\">\n\n/**\n * Determines if a number field is filled.\n *\n * @param field - Number field to check.\n * @returns `true` if `field` is filled, `false` otherwise.\n */\nexport const number = isNonNullish as (\n\tfield: NumberField | null | undefined,\n) => field is NumberField<\"filled\">\n\n/**\n * Determines if a key text field is filled.\n *\n * @param field - Key text field to check.\n * @returns `true` if the field is filled, `false` otherwise.\n */\nexport const keyText = (\n\tfield: KeyTextField | null | undefined,\n): field is KeyTextField<\"filled\"> => {\n\treturn !!field\n}\n\n/**\n * Determines if a select field is filled.\n *\n * @param field - Select field to check.\n * @returns `true` if `field` is filled, `false` otherwise.\n */\nexport const select = isNonNullish as <Enum extends string>(\n\tfield: SelectField<Enum> | null | undefined,\n) => field is SelectField<Enum, \"filled\">\n\n/**\n * Determines if an embed field is filled.\n *\n * @param field - Embed field to check.\n * @returns `true` if `field` is filled, `false` otherwise.\n */\nexport const embed = <Field extends EmbedField<AnyOEmbed>>(\n\tfield: Field | null | undefined,\n): field is Extract<Field, EmbedField<AnyOEmbed, \"filled\">> => {\n\treturn isNonNullish(field) && !!field.embed_url\n}\n\n/**\n * Determines if a geopoint field is filled.\n *\n * @param field - Geopoint field to check.\n * @returns `true` if the field is filled, `false` otherwise.\n */\nexport const geoPoint = (\n\tfield: GeoPointField | null | undefined,\n): field is GeoPointField<\"filled\"> => {\n\treturn isNonNullish(field) && \"longitude\" in field\n}\n\n/**\n * Determines if a table field is filled.\n *\n * @param field - Table field to check.\n * @returns `true` if `field` is filled, `false` otherwise.\n */\nexport const table = isNonNullish as (\n\tfield: TableField | null | undefined,\n) => field is TableField<\"filled\">\n\n/**\n * Determines if an integration field is filled.\n *\n * @param field - Integration field to check.\n * @returns `true` if `field` is filled, `false` otherwise.\n */\nexport const integration = isNonNullish as <Data extends IntegrationFieldData>(\n\tfield: IntegrationField<Data> | null | undefined,\n) => field is IntegrationField<Data, \"filled\">\n/** @deprecated Renamed to `integration`. */\n// TODO: Remove when we remove support for deprecated `integrationField` export.\nexport const integrationField = integration\n/** @deprecated Renamed to `integrationField`. */\n// TODO: Remove when we remove support for deprecated `integrationFields` export.\nexport const integrationFields = integration\n\n/**\n * Determines if a repeatable field has at least one item.\n *\n * @param repeatable - Repeatable to check.\n * @returns `true` if `repeatable` contains at least one item, `false`\n * otherwise.\n */\nexport const repeatable = <T extends LinkField>(\n\trepeatable: Repeatable<T> | null | undefined,\n): repeatable is Repeatable<T, \"filled\"> => {\n\treturn isNonNullish(repeatable) && isNonEmptyArray(repeatable)\n}\n\n/**\n * Determines if a group has at least one item.\n *\n * @param group - Group to check.\n * @returns `true` if the group contains at least one item, `false` otherwise.\n */\nexport const group = <Fields extends Record<string, AnyRegularField | NestedGroupField>>(\n\tgroup: GroupField<Fields> | null | undefined,\n): group is GroupField<Fields, \"filled\"> => {\n\treturn isNonNullish(group) && isNonEmptyArray(group)\n}\n\n/**\n * Determines if a slice zone has at least one slice.\n *\n * @param slices - Slice zone to check.\n * @returns `true` if the slice zone contains at least one slice, `false`\n * otherwise.\n */\nexport const sliceZone = <Slices extends Slice | SharedSlice>(\n\tslices: SliceZone<Slices> | null | undefined,\n): slices is SliceZone<Slices, \"filled\"> => {\n\treturn isNonNullish(slices) && isNonEmptyArray(slices)\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCA,MAAM,gBAAmB,UAAsC;CAC9D,OAAO,SAAS;AACjB;;;;;;;AAQA,MAAM,mBAAsB,UAAqC;CAChE,OAAO,CAAC,CAAC,MAAM;AAChB;;;;;;;AAQA,MAAa,YACZ,UACsC;CACtC,IAAI,CAAC,aAAa,KAAK,GACtB,OAAO;MACD,IAAI,MAAM,WAAW,KAAK,UAAU,MAAM,IAChD,OAAO,CAAC,CAAC,MAAM,EAAE,CAAC;MAElB,OAAO,CAAC,CAAC,MAAM;AAEjB;;;;;;;AAQA,MAAa,QAAQ;;;;;;;AAUrB,MAAa,kBACZ,cAC4C;CAC5C,OAAO,aAAa,SAAS,KAAK,CAAC,CAAC,UAAU;AAC/C;;;;;;;AAQA,MAAa,QAAQ;;;;;;;AAUrB,MAAa,QAMZ,UACqE;CACrE,OAAO,aAAa,KAAK,MAAM,QAAQ,SAAS,SAAS;AAC1D;;;;;;;AAQA,MAAa,cAAc;;;;;;;AAU3B,MAAa,sBAAsB;;;;;;;AAUnC,MAAa,OAAO;;;;;;;AAUpB,MAAa,YAAY;;;;;;;AAUzB,MAAa,QAAQ;;;;;;;AAUrB,MAAa,SAAS;;;;;;;AAUtB,MAAa,WACZ,UACqC;CACrC,OAAO,CAAC,CAAC;AACV;;;;;;;AAQA,MAAa,SAAS;;;;;;;AAUtB,MAAa,SACZ,UAC8D;CAC9D,OAAO,aAAa,KAAK,KAAK,CAAC,CAAC,MAAM;AACvC;;;;;;;AAQA,MAAa,YACZ,UACsC;CACtC,OAAO,aAAa,KAAK,KAAK,eAAe;AAC9C;;;;;;;AAQA,MAAa,QAAQ;;;;;;;AAUrB,MAAa,cAAc;;AAK3B,MAAa,mBAAmB;;AAGhC,MAAa,oBAAoB;;;;;;;;AASjC,MAAa,cACZ,eAC2C;CAC3C,OAAO,aAAa,UAAU,KAAK,gBAAgB,UAAU;AAC9D;;;;;;;AAQA,MAAa,SACZ,UAC2C;CAC3C,OAAO,aAAa,KAAK,KAAK,gBAAgB,KAAK;AACpD;;;;;;;;AASA,MAAa,aACZ,WAC2C;CAC3C,OAAO,aAAa,MAAM,KAAK,gBAAgB,MAAM;AACtD"}
|
|
1
|
+
{"version":3,"file":"isFilled.cjs","names":[],"sources":["../../src/helpers/isFilled.ts"],"sourcesContent":["import type { ColorField } from \"../types/value/color\"\nimport type {\n\tContentRelationshipField,\n\tEmptyContentRelationshipField,\n} from \"../types/value/contentRelationship\"\nimport type { DateField } from \"../types/value/date\"\nimport type { AnyOEmbed, EmbedField } from \"../types/value/embed\"\nimport type { GeoPointField } from \"../types/value/geoPoint\"\nimport type { GroupField, NestedGroupField } from \"../types/value/group\"\nimport type { ImageField, ImageFieldImage } from \"../types/value/image\"\nimport type { IntegrationField, IntegrationFieldData } from \"../types/value/integration\"\nimport type { KeyTextField } from \"../types/value/keyText\"\nimport type { LinkField } from \"../types/value/link\"\nimport type { LinkToMediaField } from \"../types/value/linkToMedia\"\nimport type { NumberField } from \"../types/value/number\"\nimport type { RichTextField } from \"../types/value/richText\"\nimport type { SelectField } from \"../types/value/select\"\nimport type { SharedSlice } from \"../types/value/sharedSlice\"\nimport type { Slice } from \"../types/value/slice\"\nimport type { SliceZone } from \"../types/value/sliceZone\"\nimport type { TableField } from \"../types/value/table\"\nimport type { TimestampField } from \"../types/value/timestamp\"\nimport type { TitleField } from \"../types/value/title\"\nimport type { AnyRegularField, Repeatable } from \"../types/value/types\"\n\n/**\n * Determines if a value is not nullish (i.e. not `null` or `undefined`). This is used to check if\n * nullable field values are filled.\n *\n * @param input - The value to check.\n * @returns `true` if `input` is not nullish, `false` otherwise.\n */\nconst isNonNullish = <T>(input: T): input is NonNullable<T> => {\n\treturn input != null\n}\n\n/**\n * Determines if an array is not empty. This is used to check if array-based fields are filled.\n *\n * @param input - The array to check.\n * @returns `true` if `input` has at least one element, `false` otherwise.\n */\nconst isNonEmptyArray = <T>(input: T[]): input is [T, ...T[]] => {\n\treturn !!input.length\n}\n\n/**\n * Determines if a rich text field is filled.\n *\n * @param field - Rich text field to check.\n * @returns `true` if `field` is filled, `false` otherwise.\n */\nexport const richText = (\n\tfield: RichTextField | null | undefined,\n): field is RichTextField<\"filled\"> => {\n\tif (!isNonNullish(field)) {\n\t\treturn false\n\t} else if (field.length === 1 && \"text\" in field[0]) {\n\t\treturn !!field[0].text\n\t} else {\n\t\treturn !!field.length\n\t}\n}\n\n/**\n * Determines if a title field is filled.\n *\n * @param field - Title field to check.\n * @returns `true` if `field` is filled, `false` otherwise.\n */\nexport const title = richText as (\n\tfield: TitleField | null | undefined,\n) => field is TitleField<\"filled\">\n\n/**\n * Determines if an image thumbnail is filled.\n *\n * @param thumbnail - Image thumbnail to check.\n * @returns `true` if the thumbnail is filled, `false` otherwise.\n */\nexport const imageThumbnail = (\n\tthumbnail: ImageFieldImage | null | undefined,\n): thumbnail is ImageFieldImage<\"filled\"> => {\n\treturn isNonNullish(thumbnail) && !!thumbnail.url\n}\n\n/**\n * Determines if an image field is filled.\n *\n * @param field - Image field to check.\n * @returns `true` if `field` is filled, `false` otherwise.\n */\nexport const image = imageThumbnail as <ThumbnailNames extends string | null = never>(\n\tfield: ImageField<ThumbnailNames> | null | undefined,\n) => field is ImageField<ThumbnailNames, \"filled\">\n\n/**\n * Determines if a link field is filled.\n *\n * @param field - Link field to check.\n * @returns `true` if `field` is filled, `false` otherwise.\n */\nexport const link = <\n\tTypeEnum = string,\n\tLangEnum = string,\n\tDataInterface extends Record<string, AnyRegularField | GroupField | SliceZone> | unknown =\n\t\tunknown,\n>(\n\tfield: LinkField<TypeEnum, LangEnum, DataInterface> | null | undefined,\n): field is LinkField<TypeEnum, LangEnum, DataInterface, \"filled\"> => {\n\treturn isNonNullish(field) && (\"id\" in field || \"url\" in field)\n}\n\n/**\n * Determines if a link to media field is filled.\n *\n * @param field - Link to media field to check.\n * @returns `true` if `field` is filled, `false` otherwise.\n */\nexport const linkToMedia = link as (\n\tfield: LinkToMediaField | null | undefined,\n) => field is LinkToMediaField<\"filled\">\n\n/**\n * Determines if a content relationship field is filled.\n *\n * @param field - Content relationship field to check.\n * @returns `true` if the field is filled, `false` otherwise.\n */\nexport const contentRelationship = link as <Field extends ContentRelationshipField>(\n\tfield: Field | null | undefined,\n) => field is Exclude<Field, EmptyContentRelationshipField>\n\n/**\n * Determines if a date field is filled.\n *\n * @param field - Date field to check.\n * @returns `true` if `field` is filled, `false` otherwise.\n */\nexport const date = isNonNullish as (\n\tfield: DateField | null | undefined,\n) => field is DateField<\"filled\">\n\n/**\n * Determines if a timestamp field is filled.\n *\n * @param field - Timestamp field to check.\n * @returns `true` if `field` is filled, `false` otherwise.\n */\nexport const timestamp = isNonNullish as (\n\tfield: TimestampField | null | undefined,\n) => field is TimestampField<\"filled\">\n\n/**\n * Determines if a color field is filled.\n *\n * @param field - Color field to check.\n * @returns `true` if `field` is filled, `false` otherwise.\n */\nexport const color = isNonNullish as (\n\tfield: ColorField | null | undefined,\n) => field is ColorField<\"filled\">\n\n/**\n * Determines if a number field is filled.\n *\n * @param field - Number field to check.\n * @returns `true` if `field` is filled, `false` otherwise.\n */\nexport const number = isNonNullish as (\n\tfield: NumberField | null | undefined,\n) => field is NumberField<\"filled\">\n\n/**\n * Determines if a key text field is filled.\n *\n * @param field - Key text field to check.\n * @returns `true` if the field is filled, `false` otherwise.\n */\nexport const keyText = (\n\tfield: KeyTextField | null | undefined,\n): field is KeyTextField<\"filled\"> => {\n\treturn !!field\n}\n\n/**\n * Determines if a select field is filled.\n *\n * @param field - Select field to check.\n * @returns `true` if `field` is filled, `false` otherwise.\n */\nexport const select = isNonNullish as <Enum extends string>(\n\tfield: SelectField<Enum> | null | undefined,\n) => field is SelectField<Enum, \"filled\">\n\n/**\n * Determines if an embed field is filled.\n *\n * @param field - Embed field to check.\n * @returns `true` if `field` is filled, `false` otherwise.\n */\nexport const embed = <Field extends EmbedField<AnyOEmbed>>(\n\tfield: Field | null | undefined,\n): field is Extract<Field, EmbedField<AnyOEmbed, \"filled\">> => {\n\treturn isNonNullish(field) && !!field.embed_url\n}\n\n/**\n * Determines if a geopoint field is filled.\n *\n * @param field - Geopoint field to check.\n * @returns `true` if the field is filled, `false` otherwise.\n */\nexport const geoPoint = (\n\tfield: GeoPointField | null | undefined,\n): field is GeoPointField<\"filled\"> => {\n\treturn isNonNullish(field) && \"longitude\" in field\n}\n\n/**\n * Determines if a table field is filled.\n *\n * @param field - Table field to check.\n * @returns `true` if `field` is filled, `false` otherwise.\n */\nexport const table = isNonNullish as (\n\tfield: TableField | null | undefined,\n) => field is TableField<\"filled\">\n\n/**\n * Determines if an integration field is filled.\n *\n * @param field - Integration field to check.\n * @returns `true` if `field` is filled, `false` otherwise.\n */\nexport const integration = isNonNullish as <Data extends IntegrationFieldData>(\n\tfield: IntegrationField<Data> | null | undefined,\n) => field is IntegrationField<Data, \"filled\">\n/** @deprecated Renamed to `integration`. */\n// TODO: Remove when we remove support for deprecated `integrationField` export.\nexport const integrationField = integration\n/** @deprecated Renamed to `integrationField`. */\n// TODO: Remove when we remove support for deprecated `integrationFields` export.\nexport const integrationFields = integration\n\n/**\n * Determines if a repeatable field has at least one item.\n *\n * @param repeatable - Repeatable to check.\n * @returns `true` if `repeatable` contains at least one item, `false`\n * otherwise.\n */\nexport const repeatable = <T extends LinkField>(\n\trepeatable: Repeatable<T> | null | undefined,\n): repeatable is Repeatable<T, \"filled\"> => {\n\treturn isNonNullish(repeatable) && isNonEmptyArray(repeatable)\n}\n\n/**\n * Determines if a group has at least one item.\n *\n * @param group - Group to check.\n * @returns `true` if the group contains at least one item, `false` otherwise.\n */\nexport const group = <Fields extends Record<string, AnyRegularField | NestedGroupField>>(\n\tgroup: GroupField<Fields> | null | undefined,\n): group is GroupField<Fields, \"filled\"> => {\n\treturn isNonNullish(group) && isNonEmptyArray(group)\n}\n\n/**\n * Determines if a slice zone has at least one slice.\n *\n * @param slices - Slice zone to check.\n * @returns `true` if the slice zone contains at least one slice, `false`\n * otherwise.\n */\nexport const sliceZone = <Slices extends Slice | SharedSlice>(\n\tslices: SliceZone<Slices> | null | undefined,\n): slices is SliceZone<Slices, \"filled\"> => {\n\treturn isNonNullish(slices) && isNonEmptyArray(slices)\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCA,MAAM,gBAAmB,UAAsC;AAC9D,QAAO,SAAS;;;;;;;;AASjB,MAAM,mBAAsB,UAAqC;AAChE,QAAO,CAAC,CAAC,MAAM;;;;;;;;AAShB,MAAa,YACZ,UACsC;AACtC,KAAI,CAAC,aAAa,MAAM,CACvB,QAAO;UACG,MAAM,WAAW,KAAK,UAAU,MAAM,GAChD,QAAO,CAAC,CAAC,MAAM,GAAG;KAElB,QAAO,CAAC,CAAC,MAAM;;;;;;;;AAUjB,MAAa,QAAQ;;;;;;;AAUrB,MAAa,kBACZ,cAC4C;AAC5C,QAAO,aAAa,UAAU,IAAI,CAAC,CAAC,UAAU;;;;;;;;AAS/C,MAAa,QAAQ;;;;;;;AAUrB,MAAa,QAMZ,UACqE;AACrE,QAAO,aAAa,MAAM,KAAK,QAAQ,SAAS,SAAS;;;;;;;;AAS1D,MAAa,cAAc;;;;;;;AAU3B,MAAa,sBAAsB;;;;;;;AAUnC,MAAa,OAAO;;;;;;;AAUpB,MAAa,YAAY;;;;;;;AAUzB,MAAa,QAAQ;;;;;;;AAUrB,MAAa,SAAS;;;;;;;AAUtB,MAAa,WACZ,UACqC;AACrC,QAAO,CAAC,CAAC;;;;;;;;AASV,MAAa,SAAS;;;;;;;AAUtB,MAAa,SACZ,UAC8D;AAC9D,QAAO,aAAa,MAAM,IAAI,CAAC,CAAC,MAAM;;;;;;;;AASvC,MAAa,YACZ,UACsC;AACtC,QAAO,aAAa,MAAM,IAAI,eAAe;;;;;;;;AAS9C,MAAa,QAAQ;;;;;;;AAUrB,MAAa,cAAc;;AAK3B,MAAa,mBAAmB;;AAGhC,MAAa,oBAAoB;;;;;;;;AASjC,MAAa,cACZ,eAC2C;AAC3C,QAAO,aAAa,WAAW,IAAI,gBAAgB,WAAW;;;;;;;;AAS/D,MAAa,SACZ,UAC2C;AAC3C,QAAO,aAAa,MAAM,IAAI,gBAAgB,MAAM;;;;;;;;;AAUrD,MAAa,aACZ,WAC2C;AAC3C,QAAO,aAAa,OAAO,IAAI,gBAAgB,OAAO"}
|
|
@@ -19,6 +19,8 @@ import { TitleField } from "../types/value/title.cjs";
|
|
|
19
19
|
import { AnyRegularField, Repeatable } from "../types/value/types.cjs";
|
|
20
20
|
import { AnyOEmbed, EmbedField } from "../types/value/embed.cjs";
|
|
21
21
|
import { RichTextField } from "../types/value/richText.cjs";
|
|
22
|
+
|
|
23
|
+
//#region src/helpers/isFilled.d.ts
|
|
22
24
|
declare namespace isFilled_d_exports {
|
|
23
25
|
export { color, contentRelationship, date, embed, geoPoint, group, image, imageThumbnail, integration, integrationField, integrationFields, keyText, link, linkToMedia, number, repeatable, richText, select, sliceZone, table, timestamp, title };
|
|
24
26
|
}
|
|
@@ -28,123 +30,123 @@ declare namespace isFilled_d_exports {
|
|
|
28
30
|
* @param field - Rich text field to check.
|
|
29
31
|
* @returns `true` if `field` is filled, `false` otherwise.
|
|
30
32
|
*/
|
|
31
|
-
|
|
33
|
+
declare const richText: (field: RichTextField | null | undefined) => field is RichTextField<"filled">;
|
|
32
34
|
/**
|
|
33
35
|
* Determines if a title field is filled.
|
|
34
36
|
*
|
|
35
37
|
* @param field - Title field to check.
|
|
36
38
|
* @returns `true` if `field` is filled, `false` otherwise.
|
|
37
39
|
*/
|
|
38
|
-
|
|
40
|
+
declare const title: (field: TitleField | null | undefined) => field is TitleField<"filled">;
|
|
39
41
|
/**
|
|
40
42
|
* Determines if an image thumbnail is filled.
|
|
41
43
|
*
|
|
42
44
|
* @param thumbnail - Image thumbnail to check.
|
|
43
45
|
* @returns `true` if the thumbnail is filled, `false` otherwise.
|
|
44
46
|
*/
|
|
45
|
-
|
|
47
|
+
declare const imageThumbnail: (thumbnail: ImageFieldImage | null | undefined) => thumbnail is ImageFieldImage<"filled">;
|
|
46
48
|
/**
|
|
47
49
|
* Determines if an image field is filled.
|
|
48
50
|
*
|
|
49
51
|
* @param field - Image field to check.
|
|
50
52
|
* @returns `true` if `field` is filled, `false` otherwise.
|
|
51
53
|
*/
|
|
52
|
-
|
|
54
|
+
declare const image: <ThumbnailNames extends string | null = never>(field: ImageField<ThumbnailNames> | null | undefined) => field is ImageField<ThumbnailNames, "filled">;
|
|
53
55
|
/**
|
|
54
56
|
* Determines if a link field is filled.
|
|
55
57
|
*
|
|
56
58
|
* @param field - Link field to check.
|
|
57
59
|
* @returns `true` if `field` is filled, `false` otherwise.
|
|
58
60
|
*/
|
|
59
|
-
|
|
61
|
+
declare const link: <TypeEnum = string, LangEnum = string, DataInterface extends Record<string, AnyRegularField | GroupField | SliceZone> | unknown = unknown>(field: LinkField<TypeEnum, LangEnum, DataInterface> | null | undefined) => field is LinkField<TypeEnum, LangEnum, DataInterface, "filled">;
|
|
60
62
|
/**
|
|
61
63
|
* Determines if a link to media field is filled.
|
|
62
64
|
*
|
|
63
65
|
* @param field - Link to media field to check.
|
|
64
66
|
* @returns `true` if `field` is filled, `false` otherwise.
|
|
65
67
|
*/
|
|
66
|
-
|
|
68
|
+
declare const linkToMedia: (field: LinkToMediaField | null | undefined) => field is LinkToMediaField<"filled">;
|
|
67
69
|
/**
|
|
68
70
|
* Determines if a content relationship field is filled.
|
|
69
71
|
*
|
|
70
72
|
* @param field - Content relationship field to check.
|
|
71
73
|
* @returns `true` if the field is filled, `false` otherwise.
|
|
72
74
|
*/
|
|
73
|
-
|
|
75
|
+
declare const contentRelationship: <Field extends ContentRelationshipField>(field: Field | null | undefined) => field is Exclude<Field, EmptyContentRelationshipField>;
|
|
74
76
|
/**
|
|
75
77
|
* Determines if a date field is filled.
|
|
76
78
|
*
|
|
77
79
|
* @param field - Date field to check.
|
|
78
80
|
* @returns `true` if `field` is filled, `false` otherwise.
|
|
79
81
|
*/
|
|
80
|
-
|
|
82
|
+
declare const date: (field: DateField | null | undefined) => field is DateField<"filled">;
|
|
81
83
|
/**
|
|
82
84
|
* Determines if a timestamp field is filled.
|
|
83
85
|
*
|
|
84
86
|
* @param field - Timestamp field to check.
|
|
85
87
|
* @returns `true` if `field` is filled, `false` otherwise.
|
|
86
88
|
*/
|
|
87
|
-
|
|
89
|
+
declare const timestamp: (field: TimestampField | null | undefined) => field is TimestampField<"filled">;
|
|
88
90
|
/**
|
|
89
91
|
* Determines if a color field is filled.
|
|
90
92
|
*
|
|
91
93
|
* @param field - Color field to check.
|
|
92
94
|
* @returns `true` if `field` is filled, `false` otherwise.
|
|
93
95
|
*/
|
|
94
|
-
|
|
96
|
+
declare const color: (field: ColorField | null | undefined) => field is ColorField<"filled">;
|
|
95
97
|
/**
|
|
96
98
|
* Determines if a number field is filled.
|
|
97
99
|
*
|
|
98
100
|
* @param field - Number field to check.
|
|
99
101
|
* @returns `true` if `field` is filled, `false` otherwise.
|
|
100
102
|
*/
|
|
101
|
-
|
|
103
|
+
declare const number: (field: NumberField | null | undefined) => field is NumberField<"filled">;
|
|
102
104
|
/**
|
|
103
105
|
* Determines if a key text field is filled.
|
|
104
106
|
*
|
|
105
107
|
* @param field - Key text field to check.
|
|
106
108
|
* @returns `true` if the field is filled, `false` otherwise.
|
|
107
109
|
*/
|
|
108
|
-
|
|
110
|
+
declare const keyText: (field: KeyTextField | null | undefined) => field is KeyTextField<"filled">;
|
|
109
111
|
/**
|
|
110
112
|
* Determines if a select field is filled.
|
|
111
113
|
*
|
|
112
114
|
* @param field - Select field to check.
|
|
113
115
|
* @returns `true` if `field` is filled, `false` otherwise.
|
|
114
116
|
*/
|
|
115
|
-
|
|
117
|
+
declare const select: <Enum extends string>(field: SelectField<Enum> | null | undefined) => field is SelectField<Enum, "filled">;
|
|
116
118
|
/**
|
|
117
119
|
* Determines if an embed field is filled.
|
|
118
120
|
*
|
|
119
121
|
* @param field - Embed field to check.
|
|
120
122
|
* @returns `true` if `field` is filled, `false` otherwise.
|
|
121
123
|
*/
|
|
122
|
-
|
|
124
|
+
declare const embed: <Field extends EmbedField<AnyOEmbed>>(field: Field | null | undefined) => field is Extract<Field, EmbedField<AnyOEmbed, "filled">>;
|
|
123
125
|
/**
|
|
124
126
|
* Determines if a geopoint field is filled.
|
|
125
127
|
*
|
|
126
128
|
* @param field - Geopoint field to check.
|
|
127
129
|
* @returns `true` if the field is filled, `false` otherwise.
|
|
128
130
|
*/
|
|
129
|
-
|
|
131
|
+
declare const geoPoint: (field: GeoPointField | null | undefined) => field is GeoPointField<"filled">;
|
|
130
132
|
/**
|
|
131
133
|
* Determines if a table field is filled.
|
|
132
134
|
*
|
|
133
135
|
* @param field - Table field to check.
|
|
134
136
|
* @returns `true` if `field` is filled, `false` otherwise.
|
|
135
137
|
*/
|
|
136
|
-
|
|
138
|
+
declare const table: (field: TableField | null | undefined) => field is TableField<"filled">;
|
|
137
139
|
/**
|
|
138
140
|
* Determines if an integration field is filled.
|
|
139
141
|
*
|
|
140
142
|
* @param field - Integration field to check.
|
|
141
143
|
* @returns `true` if `field` is filled, `false` otherwise.
|
|
142
144
|
*/
|
|
143
|
-
|
|
145
|
+
declare const integration: <Data extends IntegrationFieldData>(field: IntegrationField<Data> | null | undefined) => field is IntegrationField<Data, "filled">;
|
|
144
146
|
/** @deprecated Renamed to `integration`. */
|
|
145
|
-
|
|
147
|
+
declare const integrationField: <Data extends IntegrationFieldData>(field: IntegrationField<Data> | null | undefined) => field is IntegrationField<Data, "filled">;
|
|
146
148
|
/** @deprecated Renamed to `integrationField`. */
|
|
147
|
-
|
|
149
|
+
declare const integrationFields: <Data extends IntegrationFieldData>(field: IntegrationField<Data> | null | undefined) => field is IntegrationField<Data, "filled">;
|
|
148
150
|
/**
|
|
149
151
|
* Determines if a repeatable field has at least one item.
|
|
150
152
|
*
|
|
@@ -152,14 +154,14 @@ export declare const integrationFields: <Data extends IntegrationFieldData>(fiel
|
|
|
152
154
|
* @returns `true` if `repeatable` contains at least one item, `false`
|
|
153
155
|
* otherwise.
|
|
154
156
|
*/
|
|
155
|
-
|
|
157
|
+
declare const repeatable: <T extends LinkField>(repeatable: Repeatable<T> | null | undefined) => repeatable is Repeatable<T, "filled">;
|
|
156
158
|
/**
|
|
157
159
|
* Determines if a group has at least one item.
|
|
158
160
|
*
|
|
159
161
|
* @param group - Group to check.
|
|
160
162
|
* @returns `true` if the group contains at least one item, `false` otherwise.
|
|
161
163
|
*/
|
|
162
|
-
|
|
164
|
+
declare const group: <Fields extends Record<string, AnyRegularField | NestedGroupField>>(group: GroupField<Fields> | null | undefined) => group is GroupField<Fields, "filled">;
|
|
163
165
|
/**
|
|
164
166
|
* Determines if a slice zone has at least one slice.
|
|
165
167
|
*
|
|
@@ -167,7 +169,7 @@ export declare const group: <Fields extends Record<string, AnyRegularField | Nes
|
|
|
167
169
|
* @returns `true` if the slice zone contains at least one slice, `false`
|
|
168
170
|
* otherwise.
|
|
169
171
|
*/
|
|
170
|
-
|
|
172
|
+
declare const sliceZone: <Slices extends Slice | SharedSlice>(slices: SliceZone<Slices> | null | undefined) => slices is SliceZone<Slices, "filled">;
|
|
171
173
|
//#endregion
|
|
172
174
|
export { isFilled_d_exports };
|
|
173
175
|
//# sourceMappingURL=isFilled.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isFilled.d.cts","names":[],"sources":["../../src/helpers/isFilled.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"isFilled.d.cts","names":[],"sources":["../../src/helpers/isFilled.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAoDa,QAAA,GACZ,KAAA,EAAO,aAAA,wBACL,KAAA,IAAS,aAAA;;;;;;;cAgBC,KAAA,GACZ,KAAA,EAAO,UAAA,wBACH,KAAA,IAAS,UAAA;;;;;;;cAQD,cAAA,GACZ,SAAA,EAAW,eAAA,wBACT,SAAA,IAAa,eAAA;;;;;;;cAUH,KAAA,iDACZ,KAAA,EAAO,UAAA,CAAW,cAAA,yBACd,KAAA,IAAS,UAAA,CAAW,cAAA;;;;;;;cAQZ,IAAA,+DAGU,MAAA,SAAe,eAAA,GAAkB,UAAA,GAAa,SAAA,uBAGpE,KAAA,EAAO,SAAA,CAAU,QAAA,EAAU,QAAA,EAAU,aAAA,yBACnC,KAAA,IAAS,SAAA,CAAU,QAAA,EAAU,QAAA,EAAU,aAAA;;;AAvC1C;;;;cAiDa,WAAA,GACZ,KAAA,EAAO,gBAAA,wBACH,KAAA,IAAS,gBAAA;;;;;;AAzCd;cAiDa,mBAAA,iBAA6C,wBAAA,EACzD,KAAA,EAAO,KAAA,wBACH,KAAA,IAAS,OAAA,CAAQ,KAAA,EAAO,6BAAA;;;;;;;cAQhB,IAAA,GACZ,KAAA,EAAO,SAAA,wBACH,KAAA,IAAS,SAAA;;AAjDd;;;;;cAyDa,SAAA,GACZ,KAAA,EAAO,cAAA,wBACH,KAAA,IAAS,cAAA;;;;;;;cAQD,KAAA,GACZ,KAAA,EAAO,UAAA,wBACH,KAAA,IAAS,UAAA;;;;;;AA3Dd;cAmEa,MAAA,GACZ,KAAA,EAAO,WAAA,wBACH,KAAA,IAAS,WAAA;;;;;;;cAQD,OAAA,GACZ,KAAA,EAAO,YAAA,wBACL,KAAA,IAAS,YAAA;;;;;;;cAUC,MAAA,wBACZ,KAAA,EAAO,WAAA,CAAY,IAAA,yBACf,KAAA,IAAS,WAAA,CAAY,IAAA;;;;;;;cAQb,KAAA,iBAAuB,UAAA,CAAW,SAAA,GAC9C,KAAA,EAAO,KAAA,wBACL,KAAA,IAAS,OAAA,CAAQ,KAAA,EAAO,UAAA,CAAW,SAAA;;;;;;;cAUzB,QAAA,GACZ,KAAA,EAAO,aAAA,wBACL,KAAA,IAAS,aAAA;;;;;;;cAUC,KAAA,GACZ,KAAA,EAAO,UAAA,wBACH,KAAA,IAAS,UAAA;;;;;;;cAQD,WAAA,gBAA4C,oBAAA,EACxD,KAAA,EAAO,gBAAA,CAAiB,IAAA,yBACpB,KAAA,IAAS,gBAAA,CAAiB,IAAA;;cAGlB,gBAAA,gBAL4C,oBAAA,EAAoB,KAAA,EACrE,gBAAA,CAAiB,IAAA,yBACpB,KAAA,IAAS,gBAAA,CAAiB,IAAA;AA5G/B;AAAA,cAkHa,iBAAA,gBAR4C,oBAAA,EAAoB,KAAA,EACrE,gBAAA,CAAiB,IAAA,yBACpB,KAAA,IAAS,gBAAA,CAAiB,IAAA;;;;;;;;cAelB,UAAA,aAAwB,SAAA,EACpC,UAAA,EAAY,UAAA,CAAW,CAAA,yBACrB,UAAA,IAAc,UAAA,CAAW,CAAA;;;;;;;cAUf,KAAA,kBAAwB,MAAA,SAAe,eAAA,GAAkB,gBAAA,GACrE,KAAA,EAAO,UAAA,CAAW,MAAA,yBAChB,KAAA,IAAS,UAAA,CAAW,MAAA;;;;AA/HvB;;;;cA0Ia,SAAA,kBAA4B,KAAA,GAAQ,WAAA,EAChD,MAAA,EAAQ,SAAA,CAAU,MAAA,yBAChB,MAAA,IAAU,SAAA,CAAU,MAAA"}
|
|
@@ -19,6 +19,8 @@ import { TitleField } from "../types/value/title.js";
|
|
|
19
19
|
import { AnyRegularField, Repeatable } from "../types/value/types.js";
|
|
20
20
|
import { AnyOEmbed, EmbedField } from "../types/value/embed.js";
|
|
21
21
|
import { RichTextField } from "../types/value/richText.js";
|
|
22
|
+
|
|
23
|
+
//#region src/helpers/isFilled.d.ts
|
|
22
24
|
declare namespace isFilled_d_exports {
|
|
23
25
|
export { color, contentRelationship, date, embed, geoPoint, group, image, imageThumbnail, integration, integrationField, integrationFields, keyText, link, linkToMedia, number, repeatable, richText, select, sliceZone, table, timestamp, title };
|
|
24
26
|
}
|
|
@@ -28,123 +30,123 @@ declare namespace isFilled_d_exports {
|
|
|
28
30
|
* @param field - Rich text field to check.
|
|
29
31
|
* @returns `true` if `field` is filled, `false` otherwise.
|
|
30
32
|
*/
|
|
31
|
-
|
|
33
|
+
declare const richText: (field: RichTextField | null | undefined) => field is RichTextField<"filled">;
|
|
32
34
|
/**
|
|
33
35
|
* Determines if a title field is filled.
|
|
34
36
|
*
|
|
35
37
|
* @param field - Title field to check.
|
|
36
38
|
* @returns `true` if `field` is filled, `false` otherwise.
|
|
37
39
|
*/
|
|
38
|
-
|
|
40
|
+
declare const title: (field: TitleField | null | undefined) => field is TitleField<"filled">;
|
|
39
41
|
/**
|
|
40
42
|
* Determines if an image thumbnail is filled.
|
|
41
43
|
*
|
|
42
44
|
* @param thumbnail - Image thumbnail to check.
|
|
43
45
|
* @returns `true` if the thumbnail is filled, `false` otherwise.
|
|
44
46
|
*/
|
|
45
|
-
|
|
47
|
+
declare const imageThumbnail: (thumbnail: ImageFieldImage | null | undefined) => thumbnail is ImageFieldImage<"filled">;
|
|
46
48
|
/**
|
|
47
49
|
* Determines if an image field is filled.
|
|
48
50
|
*
|
|
49
51
|
* @param field - Image field to check.
|
|
50
52
|
* @returns `true` if `field` is filled, `false` otherwise.
|
|
51
53
|
*/
|
|
52
|
-
|
|
54
|
+
declare const image: <ThumbnailNames extends string | null = never>(field: ImageField<ThumbnailNames> | null | undefined) => field is ImageField<ThumbnailNames, "filled">;
|
|
53
55
|
/**
|
|
54
56
|
* Determines if a link field is filled.
|
|
55
57
|
*
|
|
56
58
|
* @param field - Link field to check.
|
|
57
59
|
* @returns `true` if `field` is filled, `false` otherwise.
|
|
58
60
|
*/
|
|
59
|
-
|
|
61
|
+
declare const link: <TypeEnum = string, LangEnum = string, DataInterface extends Record<string, AnyRegularField | GroupField | SliceZone> | unknown = unknown>(field: LinkField<TypeEnum, LangEnum, DataInterface> | null | undefined) => field is LinkField<TypeEnum, LangEnum, DataInterface, "filled">;
|
|
60
62
|
/**
|
|
61
63
|
* Determines if a link to media field is filled.
|
|
62
64
|
*
|
|
63
65
|
* @param field - Link to media field to check.
|
|
64
66
|
* @returns `true` if `field` is filled, `false` otherwise.
|
|
65
67
|
*/
|
|
66
|
-
|
|
68
|
+
declare const linkToMedia: (field: LinkToMediaField | null | undefined) => field is LinkToMediaField<"filled">;
|
|
67
69
|
/**
|
|
68
70
|
* Determines if a content relationship field is filled.
|
|
69
71
|
*
|
|
70
72
|
* @param field - Content relationship field to check.
|
|
71
73
|
* @returns `true` if the field is filled, `false` otherwise.
|
|
72
74
|
*/
|
|
73
|
-
|
|
75
|
+
declare const contentRelationship: <Field extends ContentRelationshipField>(field: Field | null | undefined) => field is Exclude<Field, EmptyContentRelationshipField>;
|
|
74
76
|
/**
|
|
75
77
|
* Determines if a date field is filled.
|
|
76
78
|
*
|
|
77
79
|
* @param field - Date field to check.
|
|
78
80
|
* @returns `true` if `field` is filled, `false` otherwise.
|
|
79
81
|
*/
|
|
80
|
-
|
|
82
|
+
declare const date: (field: DateField | null | undefined) => field is DateField<"filled">;
|
|
81
83
|
/**
|
|
82
84
|
* Determines if a timestamp field is filled.
|
|
83
85
|
*
|
|
84
86
|
* @param field - Timestamp field to check.
|
|
85
87
|
* @returns `true` if `field` is filled, `false` otherwise.
|
|
86
88
|
*/
|
|
87
|
-
|
|
89
|
+
declare const timestamp: (field: TimestampField | null | undefined) => field is TimestampField<"filled">;
|
|
88
90
|
/**
|
|
89
91
|
* Determines if a color field is filled.
|
|
90
92
|
*
|
|
91
93
|
* @param field - Color field to check.
|
|
92
94
|
* @returns `true` if `field` is filled, `false` otherwise.
|
|
93
95
|
*/
|
|
94
|
-
|
|
96
|
+
declare const color: (field: ColorField | null | undefined) => field is ColorField<"filled">;
|
|
95
97
|
/**
|
|
96
98
|
* Determines if a number field is filled.
|
|
97
99
|
*
|
|
98
100
|
* @param field - Number field to check.
|
|
99
101
|
* @returns `true` if `field` is filled, `false` otherwise.
|
|
100
102
|
*/
|
|
101
|
-
|
|
103
|
+
declare const number: (field: NumberField | null | undefined) => field is NumberField<"filled">;
|
|
102
104
|
/**
|
|
103
105
|
* Determines if a key text field is filled.
|
|
104
106
|
*
|
|
105
107
|
* @param field - Key text field to check.
|
|
106
108
|
* @returns `true` if the field is filled, `false` otherwise.
|
|
107
109
|
*/
|
|
108
|
-
|
|
110
|
+
declare const keyText: (field: KeyTextField | null | undefined) => field is KeyTextField<"filled">;
|
|
109
111
|
/**
|
|
110
112
|
* Determines if a select field is filled.
|
|
111
113
|
*
|
|
112
114
|
* @param field - Select field to check.
|
|
113
115
|
* @returns `true` if `field` is filled, `false` otherwise.
|
|
114
116
|
*/
|
|
115
|
-
|
|
117
|
+
declare const select: <Enum extends string>(field: SelectField<Enum> | null | undefined) => field is SelectField<Enum, "filled">;
|
|
116
118
|
/**
|
|
117
119
|
* Determines if an embed field is filled.
|
|
118
120
|
*
|
|
119
121
|
* @param field - Embed field to check.
|
|
120
122
|
* @returns `true` if `field` is filled, `false` otherwise.
|
|
121
123
|
*/
|
|
122
|
-
|
|
124
|
+
declare const embed: <Field extends EmbedField<AnyOEmbed>>(field: Field | null | undefined) => field is Extract<Field, EmbedField<AnyOEmbed, "filled">>;
|
|
123
125
|
/**
|
|
124
126
|
* Determines if a geopoint field is filled.
|
|
125
127
|
*
|
|
126
128
|
* @param field - Geopoint field to check.
|
|
127
129
|
* @returns `true` if the field is filled, `false` otherwise.
|
|
128
130
|
*/
|
|
129
|
-
|
|
131
|
+
declare const geoPoint: (field: GeoPointField | null | undefined) => field is GeoPointField<"filled">;
|
|
130
132
|
/**
|
|
131
133
|
* Determines if a table field is filled.
|
|
132
134
|
*
|
|
133
135
|
* @param field - Table field to check.
|
|
134
136
|
* @returns `true` if `field` is filled, `false` otherwise.
|
|
135
137
|
*/
|
|
136
|
-
|
|
138
|
+
declare const table: (field: TableField | null | undefined) => field is TableField<"filled">;
|
|
137
139
|
/**
|
|
138
140
|
* Determines if an integration field is filled.
|
|
139
141
|
*
|
|
140
142
|
* @param field - Integration field to check.
|
|
141
143
|
* @returns `true` if `field` is filled, `false` otherwise.
|
|
142
144
|
*/
|
|
143
|
-
|
|
145
|
+
declare const integration: <Data extends IntegrationFieldData>(field: IntegrationField<Data> | null | undefined) => field is IntegrationField<Data, "filled">;
|
|
144
146
|
/** @deprecated Renamed to `integration`. */
|
|
145
|
-
|
|
147
|
+
declare const integrationField: <Data extends IntegrationFieldData>(field: IntegrationField<Data> | null | undefined) => field is IntegrationField<Data, "filled">;
|
|
146
148
|
/** @deprecated Renamed to `integrationField`. */
|
|
147
|
-
|
|
149
|
+
declare const integrationFields: <Data extends IntegrationFieldData>(field: IntegrationField<Data> | null | undefined) => field is IntegrationField<Data, "filled">;
|
|
148
150
|
/**
|
|
149
151
|
* Determines if a repeatable field has at least one item.
|
|
150
152
|
*
|
|
@@ -152,14 +154,14 @@ export declare const integrationFields: <Data extends IntegrationFieldData>(fiel
|
|
|
152
154
|
* @returns `true` if `repeatable` contains at least one item, `false`
|
|
153
155
|
* otherwise.
|
|
154
156
|
*/
|
|
155
|
-
|
|
157
|
+
declare const repeatable: <T extends LinkField>(repeatable: Repeatable<T> | null | undefined) => repeatable is Repeatable<T, "filled">;
|
|
156
158
|
/**
|
|
157
159
|
* Determines if a group has at least one item.
|
|
158
160
|
*
|
|
159
161
|
* @param group - Group to check.
|
|
160
162
|
* @returns `true` if the group contains at least one item, `false` otherwise.
|
|
161
163
|
*/
|
|
162
|
-
|
|
164
|
+
declare const group: <Fields extends Record<string, AnyRegularField | NestedGroupField>>(group: GroupField<Fields> | null | undefined) => group is GroupField<Fields, "filled">;
|
|
163
165
|
/**
|
|
164
166
|
* Determines if a slice zone has at least one slice.
|
|
165
167
|
*
|
|
@@ -167,7 +169,7 @@ export declare const group: <Fields extends Record<string, AnyRegularField | Nes
|
|
|
167
169
|
* @returns `true` if the slice zone contains at least one slice, `false`
|
|
168
170
|
* otherwise.
|
|
169
171
|
*/
|
|
170
|
-
|
|
172
|
+
declare const sliceZone: <Slices extends Slice | SharedSlice>(slices: SliceZone<Slices> | null | undefined) => slices is SliceZone<Slices, "filled">;
|
|
171
173
|
//#endregion
|
|
172
174
|
export { isFilled_d_exports };
|
|
173
175
|
//# sourceMappingURL=isFilled.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isFilled.d.ts","names":[],"sources":["../../src/helpers/isFilled.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"isFilled.d.ts","names":[],"sources":["../../src/helpers/isFilled.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAoDa,QAAA,GACZ,KAAA,EAAO,aAAA,wBACL,KAAA,IAAS,aAAA;;;;;;;cAgBC,KAAA,GACZ,KAAA,EAAO,UAAA,wBACH,KAAA,IAAS,UAAA;;;;;;;cAQD,cAAA,GACZ,SAAA,EAAW,eAAA,wBACT,SAAA,IAAa,eAAA;;;;;;;cAUH,KAAA,iDACZ,KAAA,EAAO,UAAA,CAAW,cAAA,yBACd,KAAA,IAAS,UAAA,CAAW,cAAA;;;;;;;cAQZ,IAAA,+DAGU,MAAA,SAAe,eAAA,GAAkB,UAAA,GAAa,SAAA,uBAGpE,KAAA,EAAO,SAAA,CAAU,QAAA,EAAU,QAAA,EAAU,aAAA,yBACnC,KAAA,IAAS,SAAA,CAAU,QAAA,EAAU,QAAA,EAAU,aAAA;;;AAvC1C;;;;cAiDa,WAAA,GACZ,KAAA,EAAO,gBAAA,wBACH,KAAA,IAAS,gBAAA;;;;;;AAzCd;cAiDa,mBAAA,iBAA6C,wBAAA,EACzD,KAAA,EAAO,KAAA,wBACH,KAAA,IAAS,OAAA,CAAQ,KAAA,EAAO,6BAAA;;;;;;;cAQhB,IAAA,GACZ,KAAA,EAAO,SAAA,wBACH,KAAA,IAAS,SAAA;;AAjDd;;;;;cAyDa,SAAA,GACZ,KAAA,EAAO,cAAA,wBACH,KAAA,IAAS,cAAA;;;;;;;cAQD,KAAA,GACZ,KAAA,EAAO,UAAA,wBACH,KAAA,IAAS,UAAA;;;;;;AA3Dd;cAmEa,MAAA,GACZ,KAAA,EAAO,WAAA,wBACH,KAAA,IAAS,WAAA;;;;;;;cAQD,OAAA,GACZ,KAAA,EAAO,YAAA,wBACL,KAAA,IAAS,YAAA;;;;;;;cAUC,MAAA,wBACZ,KAAA,EAAO,WAAA,CAAY,IAAA,yBACf,KAAA,IAAS,WAAA,CAAY,IAAA;;;;;;;cAQb,KAAA,iBAAuB,UAAA,CAAW,SAAA,GAC9C,KAAA,EAAO,KAAA,wBACL,KAAA,IAAS,OAAA,CAAQ,KAAA,EAAO,UAAA,CAAW,SAAA;;;;;;;cAUzB,QAAA,GACZ,KAAA,EAAO,aAAA,wBACL,KAAA,IAAS,aAAA;;;;;;;cAUC,KAAA,GACZ,KAAA,EAAO,UAAA,wBACH,KAAA,IAAS,UAAA;;;;;;;cAQD,WAAA,gBAA4C,oBAAA,EACxD,KAAA,EAAO,gBAAA,CAAiB,IAAA,yBACpB,KAAA,IAAS,gBAAA,CAAiB,IAAA;;cAGlB,gBAAA,gBAL4C,oBAAA,EAAoB,KAAA,EACrE,gBAAA,CAAiB,IAAA,yBACpB,KAAA,IAAS,gBAAA,CAAiB,IAAA;AA5G/B;AAAA,cAkHa,iBAAA,gBAR4C,oBAAA,EAAoB,KAAA,EACrE,gBAAA,CAAiB,IAAA,yBACpB,KAAA,IAAS,gBAAA,CAAiB,IAAA;;;;;;;;cAelB,UAAA,aAAwB,SAAA,EACpC,UAAA,EAAY,UAAA,CAAW,CAAA,yBACrB,UAAA,IAAc,UAAA,CAAW,CAAA;;;;;;;cAUf,KAAA,kBAAwB,MAAA,SAAe,eAAA,GAAkB,gBAAA,GACrE,KAAA,EAAO,UAAA,CAAW,MAAA,yBAChB,KAAA,IAAS,UAAA,CAAW,MAAA;;;;AA/HvB;;;;cA0Ia,SAAA,kBAA4B,KAAA,GAAQ,WAAA,EAChD,MAAA,EAAQ,SAAA,CAAU,MAAA,yBAChB,MAAA,IAAU,SAAA,CAAU,MAAA"}
|
package/dist/helpers/isFilled.js
CHANGED
|
@@ -210,6 +210,6 @@ const sliceZone = (slices) => {
|
|
|
210
210
|
return isNonNullish(slices) && isNonEmptyArray(slices);
|
|
211
211
|
};
|
|
212
212
|
//#endregion
|
|
213
|
-
export {
|
|
213
|
+
export { imageThumbnail, isFilled_exports, link };
|
|
214
214
|
|
|
215
215
|
//# sourceMappingURL=isFilled.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isFilled.js","names":[],"sources":["../../src/helpers/isFilled.ts"],"sourcesContent":["import type { ColorField } from \"../types/value/color\"\nimport type {\n\tContentRelationshipField,\n\tEmptyContentRelationshipField,\n} from \"../types/value/contentRelationship\"\nimport type { DateField } from \"../types/value/date\"\nimport type { AnyOEmbed, EmbedField } from \"../types/value/embed\"\nimport type { GeoPointField } from \"../types/value/geoPoint\"\nimport type { GroupField, NestedGroupField } from \"../types/value/group\"\nimport type { ImageField, ImageFieldImage } from \"../types/value/image\"\nimport type { IntegrationField, IntegrationFieldData } from \"../types/value/integration\"\nimport type { KeyTextField } from \"../types/value/keyText\"\nimport type { LinkField } from \"../types/value/link\"\nimport type { LinkToMediaField } from \"../types/value/linkToMedia\"\nimport type { NumberField } from \"../types/value/number\"\nimport type { RichTextField } from \"../types/value/richText\"\nimport type { SelectField } from \"../types/value/select\"\nimport type { SharedSlice } from \"../types/value/sharedSlice\"\nimport type { Slice } from \"../types/value/slice\"\nimport type { SliceZone } from \"../types/value/sliceZone\"\nimport type { TableField } from \"../types/value/table\"\nimport type { TimestampField } from \"../types/value/timestamp\"\nimport type { TitleField } from \"../types/value/title\"\nimport type { AnyRegularField, Repeatable } from \"../types/value/types\"\n\n/**\n * Determines if a value is not nullish (i.e. not `null` or `undefined`). This is used to check if\n * nullable field values are filled.\n *\n * @param input - The value to check.\n * @returns `true` if `input` is not nullish, `false` otherwise.\n */\nconst isNonNullish = <T>(input: T): input is NonNullable<T> => {\n\treturn input != null\n}\n\n/**\n * Determines if an array is not empty. This is used to check if array-based fields are filled.\n *\n * @param input - The array to check.\n * @returns `true` if `input` has at least one element, `false` otherwise.\n */\nconst isNonEmptyArray = <T>(input: T[]): input is [T, ...T[]] => {\n\treturn !!input.length\n}\n\n/**\n * Determines if a rich text field is filled.\n *\n * @param field - Rich text field to check.\n * @returns `true` if `field` is filled, `false` otherwise.\n */\nexport const richText = (\n\tfield: RichTextField | null | undefined,\n): field is RichTextField<\"filled\"> => {\n\tif (!isNonNullish(field)) {\n\t\treturn false\n\t} else if (field.length === 1 && \"text\" in field[0]) {\n\t\treturn !!field[0].text\n\t} else {\n\t\treturn !!field.length\n\t}\n}\n\n/**\n * Determines if a title field is filled.\n *\n * @param field - Title field to check.\n * @returns `true` if `field` is filled, `false` otherwise.\n */\nexport const title = richText as (\n\tfield: TitleField | null | undefined,\n) => field is TitleField<\"filled\">\n\n/**\n * Determines if an image thumbnail is filled.\n *\n * @param thumbnail - Image thumbnail to check.\n * @returns `true` if the thumbnail is filled, `false` otherwise.\n */\nexport const imageThumbnail = (\n\tthumbnail: ImageFieldImage | null | undefined,\n): thumbnail is ImageFieldImage<\"filled\"> => {\n\treturn isNonNullish(thumbnail) && !!thumbnail.url\n}\n\n/**\n * Determines if an image field is filled.\n *\n * @param field - Image field to check.\n * @returns `true` if `field` is filled, `false` otherwise.\n */\nexport const image = imageThumbnail as <ThumbnailNames extends string | null = never>(\n\tfield: ImageField<ThumbnailNames> | null | undefined,\n) => field is ImageField<ThumbnailNames, \"filled\">\n\n/**\n * Determines if a link field is filled.\n *\n * @param field - Link field to check.\n * @returns `true` if `field` is filled, `false` otherwise.\n */\nexport const link = <\n\tTypeEnum = string,\n\tLangEnum = string,\n\tDataInterface extends Record<string, AnyRegularField | GroupField | SliceZone> | unknown =\n\t\tunknown,\n>(\n\tfield: LinkField<TypeEnum, LangEnum, DataInterface> | null | undefined,\n): field is LinkField<TypeEnum, LangEnum, DataInterface, \"filled\"> => {\n\treturn isNonNullish(field) && (\"id\" in field || \"url\" in field)\n}\n\n/**\n * Determines if a link to media field is filled.\n *\n * @param field - Link to media field to check.\n * @returns `true` if `field` is filled, `false` otherwise.\n */\nexport const linkToMedia = link as (\n\tfield: LinkToMediaField | null | undefined,\n) => field is LinkToMediaField<\"filled\">\n\n/**\n * Determines if a content relationship field is filled.\n *\n * @param field - Content relationship field to check.\n * @returns `true` if the field is filled, `false` otherwise.\n */\nexport const contentRelationship = link as <Field extends ContentRelationshipField>(\n\tfield: Field | null | undefined,\n) => field is Exclude<Field, EmptyContentRelationshipField>\n\n/**\n * Determines if a date field is filled.\n *\n * @param field - Date field to check.\n * @returns `true` if `field` is filled, `false` otherwise.\n */\nexport const date = isNonNullish as (\n\tfield: DateField | null | undefined,\n) => field is DateField<\"filled\">\n\n/**\n * Determines if a timestamp field is filled.\n *\n * @param field - Timestamp field to check.\n * @returns `true` if `field` is filled, `false` otherwise.\n */\nexport const timestamp = isNonNullish as (\n\tfield: TimestampField | null | undefined,\n) => field is TimestampField<\"filled\">\n\n/**\n * Determines if a color field is filled.\n *\n * @param field - Color field to check.\n * @returns `true` if `field` is filled, `false` otherwise.\n */\nexport const color = isNonNullish as (\n\tfield: ColorField | null | undefined,\n) => field is ColorField<\"filled\">\n\n/**\n * Determines if a number field is filled.\n *\n * @param field - Number field to check.\n * @returns `true` if `field` is filled, `false` otherwise.\n */\nexport const number = isNonNullish as (\n\tfield: NumberField | null | undefined,\n) => field is NumberField<\"filled\">\n\n/**\n * Determines if a key text field is filled.\n *\n * @param field - Key text field to check.\n * @returns `true` if the field is filled, `false` otherwise.\n */\nexport const keyText = (\n\tfield: KeyTextField | null | undefined,\n): field is KeyTextField<\"filled\"> => {\n\treturn !!field\n}\n\n/**\n * Determines if a select field is filled.\n *\n * @param field - Select field to check.\n * @returns `true` if `field` is filled, `false` otherwise.\n */\nexport const select = isNonNullish as <Enum extends string>(\n\tfield: SelectField<Enum> | null | undefined,\n) => field is SelectField<Enum, \"filled\">\n\n/**\n * Determines if an embed field is filled.\n *\n * @param field - Embed field to check.\n * @returns `true` if `field` is filled, `false` otherwise.\n */\nexport const embed = <Field extends EmbedField<AnyOEmbed>>(\n\tfield: Field | null | undefined,\n): field is Extract<Field, EmbedField<AnyOEmbed, \"filled\">> => {\n\treturn isNonNullish(field) && !!field.embed_url\n}\n\n/**\n * Determines if a geopoint field is filled.\n *\n * @param field - Geopoint field to check.\n * @returns `true` if the field is filled, `false` otherwise.\n */\nexport const geoPoint = (\n\tfield: GeoPointField | null | undefined,\n): field is GeoPointField<\"filled\"> => {\n\treturn isNonNullish(field) && \"longitude\" in field\n}\n\n/**\n * Determines if a table field is filled.\n *\n * @param field - Table field to check.\n * @returns `true` if `field` is filled, `false` otherwise.\n */\nexport const table = isNonNullish as (\n\tfield: TableField | null | undefined,\n) => field is TableField<\"filled\">\n\n/**\n * Determines if an integration field is filled.\n *\n * @param field - Integration field to check.\n * @returns `true` if `field` is filled, `false` otherwise.\n */\nexport const integration = isNonNullish as <Data extends IntegrationFieldData>(\n\tfield: IntegrationField<Data> | null | undefined,\n) => field is IntegrationField<Data, \"filled\">\n/** @deprecated Renamed to `integration`. */\n// TODO: Remove when we remove support for deprecated `integrationField` export.\nexport const integrationField = integration\n/** @deprecated Renamed to `integrationField`. */\n// TODO: Remove when we remove support for deprecated `integrationFields` export.\nexport const integrationFields = integration\n\n/**\n * Determines if a repeatable field has at least one item.\n *\n * @param repeatable - Repeatable to check.\n * @returns `true` if `repeatable` contains at least one item, `false`\n * otherwise.\n */\nexport const repeatable = <T extends LinkField>(\n\trepeatable: Repeatable<T> | null | undefined,\n): repeatable is Repeatable<T, \"filled\"> => {\n\treturn isNonNullish(repeatable) && isNonEmptyArray(repeatable)\n}\n\n/**\n * Determines if a group has at least one item.\n *\n * @param group - Group to check.\n * @returns `true` if the group contains at least one item, `false` otherwise.\n */\nexport const group = <Fields extends Record<string, AnyRegularField | NestedGroupField>>(\n\tgroup: GroupField<Fields> | null | undefined,\n): group is GroupField<Fields, \"filled\"> => {\n\treturn isNonNullish(group) && isNonEmptyArray(group)\n}\n\n/**\n * Determines if a slice zone has at least one slice.\n *\n * @param slices - Slice zone to check.\n * @returns `true` if the slice zone contains at least one slice, `false`\n * otherwise.\n */\nexport const sliceZone = <Slices extends Slice | SharedSlice>(\n\tslices: SliceZone<Slices> | null | undefined,\n): slices is SliceZone<Slices, \"filled\"> => {\n\treturn isNonNullish(slices) && isNonEmptyArray(slices)\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCA,MAAM,gBAAmB,UAAsC;CAC9D,OAAO,SAAS;AACjB;;;;;;;AAQA,MAAM,mBAAsB,UAAqC;CAChE,OAAO,CAAC,CAAC,MAAM;AAChB;;;;;;;AAQA,MAAa,YACZ,UACsC;CACtC,IAAI,CAAC,aAAa,KAAK,GACtB,OAAO;MACD,IAAI,MAAM,WAAW,KAAK,UAAU,MAAM,IAChD,OAAO,CAAC,CAAC,MAAM,EAAE,CAAC;MAElB,OAAO,CAAC,CAAC,MAAM;AAEjB;;;;;;;AAQA,MAAa,QAAQ;;;;;;;AAUrB,MAAa,kBACZ,cAC4C;CAC5C,OAAO,aAAa,SAAS,KAAK,CAAC,CAAC,UAAU;AAC/C;;;;;;;AAQA,MAAa,QAAQ;;;;;;;AAUrB,MAAa,QAMZ,UACqE;CACrE,OAAO,aAAa,KAAK,MAAM,QAAQ,SAAS,SAAS;AAC1D;;;;;;;AAQA,MAAa,cAAc;;;;;;;AAU3B,MAAa,sBAAsB;;;;;;;AAUnC,MAAa,OAAO;;;;;;;AAUpB,MAAa,YAAY;;;;;;;AAUzB,MAAa,QAAQ;;;;;;;AAUrB,MAAa,SAAS;;;;;;;AAUtB,MAAa,WACZ,UACqC;CACrC,OAAO,CAAC,CAAC;AACV;;;;;;;AAQA,MAAa,SAAS;;;;;;;AAUtB,MAAa,SACZ,UAC8D;CAC9D,OAAO,aAAa,KAAK,KAAK,CAAC,CAAC,MAAM;AACvC;;;;;;;AAQA,MAAa,YACZ,UACsC;CACtC,OAAO,aAAa,KAAK,KAAK,eAAe;AAC9C;;;;;;;AAQA,MAAa,QAAQ;;;;;;;AAUrB,MAAa,cAAc;;AAK3B,MAAa,mBAAmB;;AAGhC,MAAa,oBAAoB;;;;;;;;AASjC,MAAa,cACZ,eAC2C;CAC3C,OAAO,aAAa,UAAU,KAAK,gBAAgB,UAAU;AAC9D;;;;;;;AAQA,MAAa,SACZ,UAC2C;CAC3C,OAAO,aAAa,KAAK,KAAK,gBAAgB,KAAK;AACpD;;;;;;;;AASA,MAAa,aACZ,WAC2C;CAC3C,OAAO,aAAa,MAAM,KAAK,gBAAgB,MAAM;AACtD"}
|
|
1
|
+
{"version":3,"file":"isFilled.js","names":[],"sources":["../../src/helpers/isFilled.ts"],"sourcesContent":["import type { ColorField } from \"../types/value/color\"\nimport type {\n\tContentRelationshipField,\n\tEmptyContentRelationshipField,\n} from \"../types/value/contentRelationship\"\nimport type { DateField } from \"../types/value/date\"\nimport type { AnyOEmbed, EmbedField } from \"../types/value/embed\"\nimport type { GeoPointField } from \"../types/value/geoPoint\"\nimport type { GroupField, NestedGroupField } from \"../types/value/group\"\nimport type { ImageField, ImageFieldImage } from \"../types/value/image\"\nimport type { IntegrationField, IntegrationFieldData } from \"../types/value/integration\"\nimport type { KeyTextField } from \"../types/value/keyText\"\nimport type { LinkField } from \"../types/value/link\"\nimport type { LinkToMediaField } from \"../types/value/linkToMedia\"\nimport type { NumberField } from \"../types/value/number\"\nimport type { RichTextField } from \"../types/value/richText\"\nimport type { SelectField } from \"../types/value/select\"\nimport type { SharedSlice } from \"../types/value/sharedSlice\"\nimport type { Slice } from \"../types/value/slice\"\nimport type { SliceZone } from \"../types/value/sliceZone\"\nimport type { TableField } from \"../types/value/table\"\nimport type { TimestampField } from \"../types/value/timestamp\"\nimport type { TitleField } from \"../types/value/title\"\nimport type { AnyRegularField, Repeatable } from \"../types/value/types\"\n\n/**\n * Determines if a value is not nullish (i.e. not `null` or `undefined`). This is used to check if\n * nullable field values are filled.\n *\n * @param input - The value to check.\n * @returns `true` if `input` is not nullish, `false` otherwise.\n */\nconst isNonNullish = <T>(input: T): input is NonNullable<T> => {\n\treturn input != null\n}\n\n/**\n * Determines if an array is not empty. This is used to check if array-based fields are filled.\n *\n * @param input - The array to check.\n * @returns `true` if `input` has at least one element, `false` otherwise.\n */\nconst isNonEmptyArray = <T>(input: T[]): input is [T, ...T[]] => {\n\treturn !!input.length\n}\n\n/**\n * Determines if a rich text field is filled.\n *\n * @param field - Rich text field to check.\n * @returns `true` if `field` is filled, `false` otherwise.\n */\nexport const richText = (\n\tfield: RichTextField | null | undefined,\n): field is RichTextField<\"filled\"> => {\n\tif (!isNonNullish(field)) {\n\t\treturn false\n\t} else if (field.length === 1 && \"text\" in field[0]) {\n\t\treturn !!field[0].text\n\t} else {\n\t\treturn !!field.length\n\t}\n}\n\n/**\n * Determines if a title field is filled.\n *\n * @param field - Title field to check.\n * @returns `true` if `field` is filled, `false` otherwise.\n */\nexport const title = richText as (\n\tfield: TitleField | null | undefined,\n) => field is TitleField<\"filled\">\n\n/**\n * Determines if an image thumbnail is filled.\n *\n * @param thumbnail - Image thumbnail to check.\n * @returns `true` if the thumbnail is filled, `false` otherwise.\n */\nexport const imageThumbnail = (\n\tthumbnail: ImageFieldImage | null | undefined,\n): thumbnail is ImageFieldImage<\"filled\"> => {\n\treturn isNonNullish(thumbnail) && !!thumbnail.url\n}\n\n/**\n * Determines if an image field is filled.\n *\n * @param field - Image field to check.\n * @returns `true` if `field` is filled, `false` otherwise.\n */\nexport const image = imageThumbnail as <ThumbnailNames extends string | null = never>(\n\tfield: ImageField<ThumbnailNames> | null | undefined,\n) => field is ImageField<ThumbnailNames, \"filled\">\n\n/**\n * Determines if a link field is filled.\n *\n * @param field - Link field to check.\n * @returns `true` if `field` is filled, `false` otherwise.\n */\nexport const link = <\n\tTypeEnum = string,\n\tLangEnum = string,\n\tDataInterface extends Record<string, AnyRegularField | GroupField | SliceZone> | unknown =\n\t\tunknown,\n>(\n\tfield: LinkField<TypeEnum, LangEnum, DataInterface> | null | undefined,\n): field is LinkField<TypeEnum, LangEnum, DataInterface, \"filled\"> => {\n\treturn isNonNullish(field) && (\"id\" in field || \"url\" in field)\n}\n\n/**\n * Determines if a link to media field is filled.\n *\n * @param field - Link to media field to check.\n * @returns `true` if `field` is filled, `false` otherwise.\n */\nexport const linkToMedia = link as (\n\tfield: LinkToMediaField | null | undefined,\n) => field is LinkToMediaField<\"filled\">\n\n/**\n * Determines if a content relationship field is filled.\n *\n * @param field - Content relationship field to check.\n * @returns `true` if the field is filled, `false` otherwise.\n */\nexport const contentRelationship = link as <Field extends ContentRelationshipField>(\n\tfield: Field | null | undefined,\n) => field is Exclude<Field, EmptyContentRelationshipField>\n\n/**\n * Determines if a date field is filled.\n *\n * @param field - Date field to check.\n * @returns `true` if `field` is filled, `false` otherwise.\n */\nexport const date = isNonNullish as (\n\tfield: DateField | null | undefined,\n) => field is DateField<\"filled\">\n\n/**\n * Determines if a timestamp field is filled.\n *\n * @param field - Timestamp field to check.\n * @returns `true` if `field` is filled, `false` otherwise.\n */\nexport const timestamp = isNonNullish as (\n\tfield: TimestampField | null | undefined,\n) => field is TimestampField<\"filled\">\n\n/**\n * Determines if a color field is filled.\n *\n * @param field - Color field to check.\n * @returns `true` if `field` is filled, `false` otherwise.\n */\nexport const color = isNonNullish as (\n\tfield: ColorField | null | undefined,\n) => field is ColorField<\"filled\">\n\n/**\n * Determines if a number field is filled.\n *\n * @param field - Number field to check.\n * @returns `true` if `field` is filled, `false` otherwise.\n */\nexport const number = isNonNullish as (\n\tfield: NumberField | null | undefined,\n) => field is NumberField<\"filled\">\n\n/**\n * Determines if a key text field is filled.\n *\n * @param field - Key text field to check.\n * @returns `true` if the field is filled, `false` otherwise.\n */\nexport const keyText = (\n\tfield: KeyTextField | null | undefined,\n): field is KeyTextField<\"filled\"> => {\n\treturn !!field\n}\n\n/**\n * Determines if a select field is filled.\n *\n * @param field - Select field to check.\n * @returns `true` if `field` is filled, `false` otherwise.\n */\nexport const select = isNonNullish as <Enum extends string>(\n\tfield: SelectField<Enum> | null | undefined,\n) => field is SelectField<Enum, \"filled\">\n\n/**\n * Determines if an embed field is filled.\n *\n * @param field - Embed field to check.\n * @returns `true` if `field` is filled, `false` otherwise.\n */\nexport const embed = <Field extends EmbedField<AnyOEmbed>>(\n\tfield: Field | null | undefined,\n): field is Extract<Field, EmbedField<AnyOEmbed, \"filled\">> => {\n\treturn isNonNullish(field) && !!field.embed_url\n}\n\n/**\n * Determines if a geopoint field is filled.\n *\n * @param field - Geopoint field to check.\n * @returns `true` if the field is filled, `false` otherwise.\n */\nexport const geoPoint = (\n\tfield: GeoPointField | null | undefined,\n): field is GeoPointField<\"filled\"> => {\n\treturn isNonNullish(field) && \"longitude\" in field\n}\n\n/**\n * Determines if a table field is filled.\n *\n * @param field - Table field to check.\n * @returns `true` if `field` is filled, `false` otherwise.\n */\nexport const table = isNonNullish as (\n\tfield: TableField | null | undefined,\n) => field is TableField<\"filled\">\n\n/**\n * Determines if an integration field is filled.\n *\n * @param field - Integration field to check.\n * @returns `true` if `field` is filled, `false` otherwise.\n */\nexport const integration = isNonNullish as <Data extends IntegrationFieldData>(\n\tfield: IntegrationField<Data> | null | undefined,\n) => field is IntegrationField<Data, \"filled\">\n/** @deprecated Renamed to `integration`. */\n// TODO: Remove when we remove support for deprecated `integrationField` export.\nexport const integrationField = integration\n/** @deprecated Renamed to `integrationField`. */\n// TODO: Remove when we remove support for deprecated `integrationFields` export.\nexport const integrationFields = integration\n\n/**\n * Determines if a repeatable field has at least one item.\n *\n * @param repeatable - Repeatable to check.\n * @returns `true` if `repeatable` contains at least one item, `false`\n * otherwise.\n */\nexport const repeatable = <T extends LinkField>(\n\trepeatable: Repeatable<T> | null | undefined,\n): repeatable is Repeatable<T, \"filled\"> => {\n\treturn isNonNullish(repeatable) && isNonEmptyArray(repeatable)\n}\n\n/**\n * Determines if a group has at least one item.\n *\n * @param group - Group to check.\n * @returns `true` if the group contains at least one item, `false` otherwise.\n */\nexport const group = <Fields extends Record<string, AnyRegularField | NestedGroupField>>(\n\tgroup: GroupField<Fields> | null | undefined,\n): group is GroupField<Fields, \"filled\"> => {\n\treturn isNonNullish(group) && isNonEmptyArray(group)\n}\n\n/**\n * Determines if a slice zone has at least one slice.\n *\n * @param slices - Slice zone to check.\n * @returns `true` if the slice zone contains at least one slice, `false`\n * otherwise.\n */\nexport const sliceZone = <Slices extends Slice | SharedSlice>(\n\tslices: SliceZone<Slices> | null | undefined,\n): slices is SliceZone<Slices, \"filled\"> => {\n\treturn isNonNullish(slices) && isNonEmptyArray(slices)\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCA,MAAM,gBAAmB,UAAsC;AAC9D,QAAO,SAAS;;;;;;;;AASjB,MAAM,mBAAsB,UAAqC;AAChE,QAAO,CAAC,CAAC,MAAM;;;;;;;;AAShB,MAAa,YACZ,UACsC;AACtC,KAAI,CAAC,aAAa,MAAM,CACvB,QAAO;UACG,MAAM,WAAW,KAAK,UAAU,MAAM,GAChD,QAAO,CAAC,CAAC,MAAM,GAAG;KAElB,QAAO,CAAC,CAAC,MAAM;;;;;;;;AAUjB,MAAa,QAAQ;;;;;;;AAUrB,MAAa,kBACZ,cAC4C;AAC5C,QAAO,aAAa,UAAU,IAAI,CAAC,CAAC,UAAU;;;;;;;;AAS/C,MAAa,QAAQ;;;;;;;AAUrB,MAAa,QAMZ,UACqE;AACrE,QAAO,aAAa,MAAM,KAAK,QAAQ,SAAS,SAAS;;;;;;;;AAS1D,MAAa,cAAc;;;;;;;AAU3B,MAAa,sBAAsB;;;;;;;AAUnC,MAAa,OAAO;;;;;;;AAUpB,MAAa,YAAY;;;;;;;AAUzB,MAAa,QAAQ;;;;;;;AAUrB,MAAa,SAAS;;;;;;;AAUtB,MAAa,WACZ,UACqC;AACrC,QAAO,CAAC,CAAC;;;;;;;;AASV,MAAa,SAAS;;;;;;;AAUtB,MAAa,SACZ,UAC8D;AAC9D,QAAO,aAAa,MAAM,IAAI,CAAC,CAAC,MAAM;;;;;;;;AASvC,MAAa,YACZ,UACsC;AACtC,QAAO,aAAa,MAAM,IAAI,eAAe;;;;;;;;AAS9C,MAAa,QAAQ;;;;;;;AAUrB,MAAa,cAAc;;AAK3B,MAAa,mBAAmB;;AAGhC,MAAa,oBAAoB;;;;;;;;AASjC,MAAa,cACZ,eAC2C;AAC3C,QAAO,aAAa,WAAW,IAAI,gBAAgB,WAAW;;;;;;;;AAS/D,MAAa,SACZ,UAC2C;AAC3C,QAAO,aAAa,MAAM,IAAI,gBAAgB,MAAM;;;;;;;;;AAUrD,MAAa,aACZ,WAC2C;AAC3C,QAAO,aAAa,OAAO,IAAI,gBAAgB,OAAO"}
|