@prismicio/client 7.22.1-pr.453.6487d6d → 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 +10 -10
- package/src/WriteClient.ts +19 -14
- package/src/lib/resolveMigrationDocumentData.ts +1 -1
- package/src/types/api/migration/release.ts +5 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slice.d.ts","names":[],"sources":["../../../src/types/value/slice.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"slice.d.ts","names":[],"sources":["../../../src/types/value/slice.ts"],"mappings":";;;;;AAOA;;;UAAiB,KAAA,2CAEM,MAAA,SAAe,eAAA,IAAmB,MAAA,SAAe,eAAA,uBACnD,MAAA,SAAe,eAAA,IAAmB,MAAA,SAAe,eAAA;EAErE,UAAA,EAAY,SAAA;EACZ,WAAA;EACA,EAAA;EACA,OAAA,EAAS,aAAA;EACT,KAAA,EAAO,WAAA;AAAA"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { SharedSlice } from "./sharedSlice.cjs";
|
|
2
2
|
import { Slice } from "./slice.cjs";
|
|
3
3
|
import { FieldState } from "./types.cjs";
|
|
4
|
+
|
|
4
5
|
//#region src/types/value/sliceZone.d.ts
|
|
5
6
|
/**
|
|
6
7
|
* Prismic Slices are sections of your website. Prismic documents contain a dynamic "Slice Zone"
|
|
@@ -9,6 +10,7 @@ import { FieldState } from "./types.cjs";
|
|
|
9
10
|
*
|
|
10
11
|
* @see More details: {@link https://prismic.io/docs/slice}
|
|
11
12
|
*/
|
|
12
|
-
|
|
13
|
+
type SliceZone<Slices extends Slice | SharedSlice = Slice | SharedSlice, State extends FieldState = FieldState> = State extends "empty" ? [] : [Slices, ...Slices[]];
|
|
13
14
|
//#endregion
|
|
15
|
+
export { SliceZone };
|
|
14
16
|
//# sourceMappingURL=sliceZone.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sliceZone.d.cts","names":[],"sources":["../../../src/types/value/sliceZone.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"sliceZone.d.cts","names":[],"sources":["../../../src/types/value/sliceZone.ts"],"mappings":";;;;;;;AAWA;;;;;KAAY,SAAA,gBACI,KAAA,GAAQ,WAAA,GAAc,KAAA,GAAQ,WAAA,gBAC/B,UAAA,GAAa,UAAA,IACxB,KAAA,yBAA8B,MAAA,KAAW,MAAA"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { SharedSlice } from "./sharedSlice.js";
|
|
2
2
|
import { Slice } from "./slice.js";
|
|
3
3
|
import { FieldState } from "./types.js";
|
|
4
|
+
|
|
4
5
|
//#region src/types/value/sliceZone.d.ts
|
|
5
6
|
/**
|
|
6
7
|
* Prismic Slices are sections of your website. Prismic documents contain a dynamic "Slice Zone"
|
|
@@ -9,6 +10,7 @@ import { FieldState } from "./types.js";
|
|
|
9
10
|
*
|
|
10
11
|
* @see More details: {@link https://prismic.io/docs/slice}
|
|
11
12
|
*/
|
|
12
|
-
|
|
13
|
+
type SliceZone<Slices extends Slice | SharedSlice = Slice | SharedSlice, State extends FieldState = FieldState> = State extends "empty" ? [] : [Slices, ...Slices[]];
|
|
13
14
|
//#endregion
|
|
15
|
+
export { SliceZone };
|
|
14
16
|
//# sourceMappingURL=sliceZone.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sliceZone.d.ts","names":[],"sources":["../../../src/types/value/sliceZone.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"sliceZone.d.ts","names":[],"sources":["../../../src/types/value/sliceZone.ts"],"mappings":";;;;;;;AAWA;;;;;KAAY,SAAA,gBACI,KAAA,GAAQ,WAAA,GAAc,KAAA,GAAQ,WAAA,gBAC/B,UAAA,GAAa,UAAA,IACxB,KAAA,yBAA8B,MAAA,KAAW,MAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { FieldState } from "./types.cjs";
|
|
2
2
|
import { RichTextField } from "./richText.cjs";
|
|
3
|
+
|
|
3
4
|
//#region src/types/value/table.d.ts
|
|
4
5
|
/**
|
|
5
6
|
* A table field.
|
|
@@ -7,51 +8,40 @@ import { RichTextField } from "./richText.cjs";
|
|
|
7
8
|
* @typeParam State - State of the field which determines its shape.
|
|
8
9
|
* @see More details: {@link https://prismic.io/docs/table}
|
|
9
10
|
*/
|
|
10
|
-
|
|
11
|
-
/** The head of the table. */
|
|
12
|
-
head?: TableFieldHead;
|
|
13
|
-
/** The body of the table. */
|
|
11
|
+
type TableField<State extends FieldState = FieldState> = State extends "empty" ? null : {
|
|
12
|
+
/** The head of the table. */head?: TableFieldHead; /** The body of the table. */
|
|
14
13
|
body: TableFieldBody;
|
|
15
14
|
};
|
|
16
15
|
/** Represents a table head. */
|
|
17
|
-
|
|
16
|
+
type TableFieldHead = {
|
|
18
17
|
rows: TableFieldHeadRow[];
|
|
19
18
|
};
|
|
20
19
|
/** Represents a table body. */
|
|
21
|
-
|
|
20
|
+
type TableFieldBody = {
|
|
22
21
|
rows: TableFieldBodyRow[];
|
|
23
22
|
};
|
|
24
23
|
/** Represents a row in a table head. */
|
|
25
|
-
|
|
26
|
-
/** Unique key of the row. */
|
|
27
|
-
key: string;
|
|
28
|
-
/** Cells in the row. */
|
|
24
|
+
type TableFieldHeadRow = {
|
|
25
|
+
/** Unique key of the row. */key: string; /** Cells in the row. */
|
|
29
26
|
cells: TableFieldHeaderCell[];
|
|
30
27
|
};
|
|
31
28
|
/** Represents a table header cell. */
|
|
32
|
-
|
|
33
|
-
/** Unique key of the cell. */
|
|
34
|
-
|
|
35
|
-
/** The type of the cell. */
|
|
36
|
-
type: "header";
|
|
37
|
-
/** The content of the cell. */
|
|
29
|
+
type TableFieldHeaderCell = {
|
|
30
|
+
/** Unique key of the cell. */key: string; /** The type of the cell. */
|
|
31
|
+
type: "header"; /** The content of the cell. */
|
|
38
32
|
content: RichTextField;
|
|
39
33
|
};
|
|
40
34
|
/** Represents a row in a table body. */
|
|
41
|
-
|
|
42
|
-
/** Unique key of the row. */
|
|
43
|
-
key: string;
|
|
44
|
-
/** Cells in the row. */
|
|
35
|
+
type TableFieldBodyRow = {
|
|
36
|
+
/** Unique key of the row. */key: string; /** Cells in the row. */
|
|
45
37
|
cells: (TableFieldHeaderCell | TableFieldDataCell)[];
|
|
46
38
|
};
|
|
47
39
|
/** Represents a table data cell. */
|
|
48
|
-
|
|
49
|
-
/** Unique key of the cell. */
|
|
50
|
-
|
|
51
|
-
/** The type of the cell. */
|
|
52
|
-
type: "data";
|
|
53
|
-
/** The content of the cell. */
|
|
40
|
+
type TableFieldDataCell = {
|
|
41
|
+
/** Unique key of the cell. */key: string; /** The type of the cell. */
|
|
42
|
+
type: "data"; /** The content of the cell. */
|
|
54
43
|
content: RichTextField;
|
|
55
44
|
};
|
|
56
45
|
//#endregion
|
|
46
|
+
export { TableField, TableFieldBody, TableFieldBodyRow, TableFieldDataCell, TableFieldHead, TableFieldHeadRow, TableFieldHeaderCell };
|
|
57
47
|
//# sourceMappingURL=table.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.d.cts","names":[],"sources":["../../../src/types/value/table.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"table.d.cts","names":[],"sources":["../../../src/types/value/table.ts"],"mappings":";;;;;;AASA;;;;KAAY,UAAA,eAAyB,UAAA,GAAa,UAAA,IAAc,KAAA;EAAA,6BAI7D,IAAA,GAAO,cAAA,EAGD;EAAN,IAAA,EAAM,cAAA;AAAA;;KAIG,cAAA;EACX,IAAA,EAAM,iBAAA;AAAA;;KAIK,cAAA;EACX,IAAA,EAAM,iBAAA;AAAA;;KAIK,iBAAA;EAVA,6BAYX,GAAA;EAGA,KAAA,EAAO,oBAAA;AAAA;AAVR;AAAA,KAcY,oBAAA;gCAEX,GAAA,UAfuB;EAkBvB,IAAA,YAd4B;EAiB5B,OAAA,EAAS,aAAA;AAAA;;KAIE,iBAAA;EAhBJ,6BAkBP,GAAA,UAlB2B;EAqB3B,KAAA,GAAQ,oBAAA,GAAuB,kBAAA;AAAA;;KAIpB,kBAAA;EAnBX,8BAqBA,GAAA,UAfA;EAkBA,IAAA,UAlBsB;EAqBtB,OAAA,EAAS,aAAA;AAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { FieldState } from "./types.js";
|
|
2
2
|
import { RichTextField } from "./richText.js";
|
|
3
|
+
|
|
3
4
|
//#region src/types/value/table.d.ts
|
|
4
5
|
/**
|
|
5
6
|
* A table field.
|
|
@@ -7,51 +8,40 @@ import { RichTextField } from "./richText.js";
|
|
|
7
8
|
* @typeParam State - State of the field which determines its shape.
|
|
8
9
|
* @see More details: {@link https://prismic.io/docs/table}
|
|
9
10
|
*/
|
|
10
|
-
|
|
11
|
-
/** The head of the table. */
|
|
12
|
-
head?: TableFieldHead;
|
|
13
|
-
/** The body of the table. */
|
|
11
|
+
type TableField<State extends FieldState = FieldState> = State extends "empty" ? null : {
|
|
12
|
+
/** The head of the table. */head?: TableFieldHead; /** The body of the table. */
|
|
14
13
|
body: TableFieldBody;
|
|
15
14
|
};
|
|
16
15
|
/** Represents a table head. */
|
|
17
|
-
|
|
16
|
+
type TableFieldHead = {
|
|
18
17
|
rows: TableFieldHeadRow[];
|
|
19
18
|
};
|
|
20
19
|
/** Represents a table body. */
|
|
21
|
-
|
|
20
|
+
type TableFieldBody = {
|
|
22
21
|
rows: TableFieldBodyRow[];
|
|
23
22
|
};
|
|
24
23
|
/** Represents a row in a table head. */
|
|
25
|
-
|
|
26
|
-
/** Unique key of the row. */
|
|
27
|
-
key: string;
|
|
28
|
-
/** Cells in the row. */
|
|
24
|
+
type TableFieldHeadRow = {
|
|
25
|
+
/** Unique key of the row. */key: string; /** Cells in the row. */
|
|
29
26
|
cells: TableFieldHeaderCell[];
|
|
30
27
|
};
|
|
31
28
|
/** Represents a table header cell. */
|
|
32
|
-
|
|
33
|
-
/** Unique key of the cell. */
|
|
34
|
-
|
|
35
|
-
/** The type of the cell. */
|
|
36
|
-
type: "header";
|
|
37
|
-
/** The content of the cell. */
|
|
29
|
+
type TableFieldHeaderCell = {
|
|
30
|
+
/** Unique key of the cell. */key: string; /** The type of the cell. */
|
|
31
|
+
type: "header"; /** The content of the cell. */
|
|
38
32
|
content: RichTextField;
|
|
39
33
|
};
|
|
40
34
|
/** Represents a row in a table body. */
|
|
41
|
-
|
|
42
|
-
/** Unique key of the row. */
|
|
43
|
-
key: string;
|
|
44
|
-
/** Cells in the row. */
|
|
35
|
+
type TableFieldBodyRow = {
|
|
36
|
+
/** Unique key of the row. */key: string; /** Cells in the row. */
|
|
45
37
|
cells: (TableFieldHeaderCell | TableFieldDataCell)[];
|
|
46
38
|
};
|
|
47
39
|
/** Represents a table data cell. */
|
|
48
|
-
|
|
49
|
-
/** Unique key of the cell. */
|
|
50
|
-
|
|
51
|
-
/** The type of the cell. */
|
|
52
|
-
type: "data";
|
|
53
|
-
/** The content of the cell. */
|
|
40
|
+
type TableFieldDataCell = {
|
|
41
|
+
/** Unique key of the cell. */key: string; /** The type of the cell. */
|
|
42
|
+
type: "data"; /** The content of the cell. */
|
|
54
43
|
content: RichTextField;
|
|
55
44
|
};
|
|
56
45
|
//#endregion
|
|
46
|
+
export { TableField, TableFieldBody, TableFieldBodyRow, TableFieldDataCell, TableFieldHead, TableFieldHeadRow, TableFieldHeaderCell };
|
|
57
47
|
//# sourceMappingURL=table.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.d.ts","names":[],"sources":["../../../src/types/value/table.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"table.d.ts","names":[],"sources":["../../../src/types/value/table.ts"],"mappings":";;;;;;AASA;;;;KAAY,UAAA,eAAyB,UAAA,GAAa,UAAA,IAAc,KAAA;EAAA,6BAI7D,IAAA,GAAO,cAAA,EAGD;EAAN,IAAA,EAAM,cAAA;AAAA;;KAIG,cAAA;EACX,IAAA,EAAM,iBAAA;AAAA;;KAIK,cAAA;EACX,IAAA,EAAM,iBAAA;AAAA;;KAIK,iBAAA;EAVA,6BAYX,GAAA;EAGA,KAAA,EAAO,oBAAA;AAAA;AAVR;AAAA,KAcY,oBAAA;gCAEX,GAAA,UAfuB;EAkBvB,IAAA,YAd4B;EAiB5B,OAAA,EAAS,aAAA;AAAA;;KAIE,iBAAA;EAhBJ,6BAkBP,GAAA,UAlB2B;EAqB3B,KAAA,GAAQ,oBAAA,GAAuB,kBAAA;AAAA;;KAIpB,kBAAA;EAnBX,8BAqBA,GAAA,UAfA;EAkBA,IAAA,UAlBsB;EAqBtB,OAAA,EAAS,aAAA;AAAA"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { FieldState } from "./types.cjs";
|
|
2
|
+
|
|
2
3
|
//#region src/types/value/timestamp.d.ts
|
|
3
4
|
/**
|
|
4
5
|
* A timestamp field.
|
|
5
6
|
*
|
|
6
7
|
* @typeParam State - State of the field which determines its shape.
|
|
7
8
|
*/
|
|
8
|
-
|
|
9
|
+
type TimestampField<State extends FieldState = FieldState> = State extends "empty" ? null : string;
|
|
9
10
|
//#endregion
|
|
11
|
+
export { TimestampField };
|
|
10
12
|
//# sourceMappingURL=timestamp.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timestamp.d.cts","names":[],"sources":["../../../src/types/value/timestamp.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"timestamp.d.cts","names":[],"sources":["../../../src/types/value/timestamp.ts"],"mappings":";;;;;AAOA;;;KAAY,cAAA,eAA6B,UAAA,GAAa,UAAA,IAAc,KAAA"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { FieldState } from "./types.js";
|
|
2
|
+
|
|
2
3
|
//#region src/types/value/timestamp.d.ts
|
|
3
4
|
/**
|
|
4
5
|
* A timestamp field.
|
|
5
6
|
*
|
|
6
7
|
* @typeParam State - State of the field which determines its shape.
|
|
7
8
|
*/
|
|
8
|
-
|
|
9
|
+
type TimestampField<State extends FieldState = FieldState> = State extends "empty" ? null : string;
|
|
9
10
|
//#endregion
|
|
11
|
+
export { TimestampField };
|
|
10
12
|
//# sourceMappingURL=timestamp.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timestamp.d.ts","names":[],"sources":["../../../src/types/value/timestamp.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"timestamp.d.ts","names":[],"sources":["../../../src/types/value/timestamp.ts"],"mappings":";;;;;AAOA;;;KAAY,cAAA,eAA6B,UAAA,GAAa,UAAA,IAAc,KAAA"}
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { FieldState } from "./types.cjs";
|
|
2
2
|
import { RTHeading1Node, RTHeading2Node, RTHeading3Node, RTHeading4Node, RTHeading5Node, RTHeading6Node } from "./richText.cjs";
|
|
3
|
+
|
|
3
4
|
//#region src/types/value/title.d.ts
|
|
4
5
|
/**
|
|
5
6
|
* A title field.
|
|
6
7
|
*
|
|
7
8
|
* @see Title field documentation: {@link https://prismic.io/docs/rich-text-title}
|
|
8
9
|
*/
|
|
9
|
-
|
|
10
|
+
type TitleField<State extends FieldState = FieldState> = State extends "empty" ? [] : [Omit<RTHeading1Node | RTHeading2Node | RTHeading3Node | RTHeading4Node | RTHeading5Node | RTHeading6Node, "spans"> & {
|
|
10
11
|
spans: [];
|
|
11
12
|
}];
|
|
12
13
|
//#endregion
|
|
14
|
+
export { TitleField };
|
|
13
15
|
//# sourceMappingURL=title.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"title.d.cts","names":[],"sources":["../../../src/types/value/title.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"title.d.cts","names":[],"sources":["../../../src/types/value/title.ts"],"mappings":";;;;;;AAeA;;;KAAY,UAAA,eAAyB,UAAA,GAAa,UAAA,IAAc,KAAA,yBAG7D,IAAA,CACG,cAAA,GACA,cAAA,GACA,cAAA,GACA,cAAA,GACA,cAAA,GACA,cAAA;EAGF,KAAA;AAAA"}
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { FieldState } from "./types.js";
|
|
2
2
|
import { RTHeading1Node, RTHeading2Node, RTHeading3Node, RTHeading4Node, RTHeading5Node, RTHeading6Node } from "./richText.js";
|
|
3
|
+
|
|
3
4
|
//#region src/types/value/title.d.ts
|
|
4
5
|
/**
|
|
5
6
|
* A title field.
|
|
6
7
|
*
|
|
7
8
|
* @see Title field documentation: {@link https://prismic.io/docs/rich-text-title}
|
|
8
9
|
*/
|
|
9
|
-
|
|
10
|
+
type TitleField<State extends FieldState = FieldState> = State extends "empty" ? [] : [Omit<RTHeading1Node | RTHeading2Node | RTHeading3Node | RTHeading4Node | RTHeading5Node | RTHeading6Node, "spans"> & {
|
|
10
11
|
spans: [];
|
|
11
12
|
}];
|
|
12
13
|
//#endregion
|
|
14
|
+
export { TitleField };
|
|
13
15
|
//# sourceMappingURL=title.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"title.d.ts","names":[],"sources":["../../../src/types/value/title.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"title.d.ts","names":[],"sources":["../../../src/types/value/title.ts"],"mappings":";;;;;;AAeA;;;KAAY,UAAA,eAAyB,UAAA,GAAa,UAAA,IAAc,KAAA,yBAG7D,IAAA,CACG,cAAA,GACA,cAAA,GACA,cAAA,GACA,cAAA,GACA,cAAA,GACA,cAAA;EAGF,KAAA;AAAA"}
|
|
@@ -16,17 +16,18 @@ import { TimestampField } from "./timestamp.cjs";
|
|
|
16
16
|
import { TitleField } from "./title.cjs";
|
|
17
17
|
import { EmbedField } from "./embed.cjs";
|
|
18
18
|
import { RichTextField } from "./richText.cjs";
|
|
19
|
+
|
|
19
20
|
//#region src/types/value/types.d.ts
|
|
20
21
|
/** Empty state for object-shaped fields. */
|
|
21
|
-
|
|
22
|
+
type EmptyObjectField = Record<string, never>;
|
|
22
23
|
/** Valid states for fields. Not all fields use this type (e.g. BooleanField). */
|
|
23
|
-
|
|
24
|
+
type FieldState = "empty" | "filled";
|
|
24
25
|
/** Any regular field that can be nested in a group-like field. */
|
|
25
|
-
|
|
26
|
+
type AnyRegularField = TitleField | RichTextField | ImageField | ContentRelationshipField | LinkField | Repeatable<LinkField> | LinkToMediaField | EmbedField | DateField | TimestampField | ColorField | NumberField | KeyTextField | SelectField | BooleanField | GeoPointField | IntegrationField | TableField;
|
|
26
27
|
/** Any field that can be used in a slice's primary section. */
|
|
27
|
-
|
|
28
|
+
type AnySlicePrimaryField = GroupField | AnyRegularField;
|
|
28
29
|
/** A list of repeatable fields. */
|
|
29
|
-
|
|
30
|
+
type Repeatable<Field extends LinkField, State extends FieldState = FieldState> = State extends "empty" ? [] : [WithKey<Field>, ...WithKey<Field>[]];
|
|
30
31
|
/** Wrapper to add a key to a field when inside a repeatable. */
|
|
31
32
|
type WithKey<Field extends LinkField> = Field & {
|
|
32
33
|
key: string;
|
|
@@ -40,6 +41,7 @@ type WithKey<Field extends LinkField> = Field & {
|
|
|
40
41
|
* @typeParam T - The type to simplify.
|
|
41
42
|
* @see https://github.com/sindresorhus/type-fest/blob/cbd7ec510bd136ac045bbc74e391ee686b8a9a2f/source/simplify.d.ts
|
|
42
43
|
*/
|
|
43
|
-
|
|
44
|
+
type Simplify<T> = { [P in keyof T]: T[P] };
|
|
44
45
|
//#endregion
|
|
46
|
+
export { AnyRegularField, AnySlicePrimaryField, EmptyObjectField, FieldState, Repeatable, Simplify };
|
|
45
47
|
//# sourceMappingURL=types.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.cts","names":[],"sources":["../../../src/types/value/types.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.cts","names":[],"sources":["../../../src/types/value/types.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;KAoBY,gBAAA,GAAmB,MAAA;AAA/B;AAAA,KAGY,UAAA;;KAGA,eAAA,GACT,UAAA,GACA,aAAA,GACA,UAAA,GACA,wBAAA,GACA,SAAA,GACA,UAAA,CAAW,SAAA,IACX,gBAAA,GACA,UAAA,GACA,SAAA,GACA,cAAA,GACA,UAAA,GACA,WAAA,GACA,YAAA,GACA,WAAA,GACA,YAAA,GACA,aAAA,GACA,gBAAA,GACA,UAAA;;KAGS,oBAAA,GAAuB,UAAA,GAAa,eAAA;;KAGpC,UAAA,eACG,SAAA,gBACA,UAAA,GAAa,UAAA,IACxB,KAAA,yBAA8B,OAAA,CAAQ,KAAA,MAAW,OAAA,CAAQ,KAAA;;KAGxD,OAAA,eAAsB,SAAA,IAAa,KAAA;EAAU,GAAA;AAAA;;;;;;;;;;KAWtC,QAAA,oBAA4B,CAAA,GAAI,CAAA,CAAE,CAAA"}
|
|
@@ -16,17 +16,18 @@ import { TimestampField } from "./timestamp.js";
|
|
|
16
16
|
import { TitleField } from "./title.js";
|
|
17
17
|
import { EmbedField } from "./embed.js";
|
|
18
18
|
import { RichTextField } from "./richText.js";
|
|
19
|
+
|
|
19
20
|
//#region src/types/value/types.d.ts
|
|
20
21
|
/** Empty state for object-shaped fields. */
|
|
21
|
-
|
|
22
|
+
type EmptyObjectField = Record<string, never>;
|
|
22
23
|
/** Valid states for fields. Not all fields use this type (e.g. BooleanField). */
|
|
23
|
-
|
|
24
|
+
type FieldState = "empty" | "filled";
|
|
24
25
|
/** Any regular field that can be nested in a group-like field. */
|
|
25
|
-
|
|
26
|
+
type AnyRegularField = TitleField | RichTextField | ImageField | ContentRelationshipField | LinkField | Repeatable<LinkField> | LinkToMediaField | EmbedField | DateField | TimestampField | ColorField | NumberField | KeyTextField | SelectField | BooleanField | GeoPointField | IntegrationField | TableField;
|
|
26
27
|
/** Any field that can be used in a slice's primary section. */
|
|
27
|
-
|
|
28
|
+
type AnySlicePrimaryField = GroupField | AnyRegularField;
|
|
28
29
|
/** A list of repeatable fields. */
|
|
29
|
-
|
|
30
|
+
type Repeatable<Field extends LinkField, State extends FieldState = FieldState> = State extends "empty" ? [] : [WithKey<Field>, ...WithKey<Field>[]];
|
|
30
31
|
/** Wrapper to add a key to a field when inside a repeatable. */
|
|
31
32
|
type WithKey<Field extends LinkField> = Field & {
|
|
32
33
|
key: string;
|
|
@@ -40,6 +41,7 @@ type WithKey<Field extends LinkField> = Field & {
|
|
|
40
41
|
* @typeParam T - The type to simplify.
|
|
41
42
|
* @see https://github.com/sindresorhus/type-fest/blob/cbd7ec510bd136ac045bbc74e391ee686b8a9a2f/source/simplify.d.ts
|
|
42
43
|
*/
|
|
43
|
-
|
|
44
|
+
type Simplify<T> = { [P in keyof T]: T[P] };
|
|
44
45
|
//#endregion
|
|
46
|
+
export { AnyRegularField, AnySlicePrimaryField, EmptyObjectField, FieldState, Repeatable, Simplify };
|
|
45
47
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","names":[],"sources":["../../../src/types/value/types.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.ts","names":[],"sources":["../../../src/types/value/types.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;KAoBY,gBAAA,GAAmB,MAAA;AAA/B;AAAA,KAGY,UAAA;;KAGA,eAAA,GACT,UAAA,GACA,aAAA,GACA,UAAA,GACA,wBAAA,GACA,SAAA,GACA,UAAA,CAAW,SAAA,IACX,gBAAA,GACA,UAAA,GACA,SAAA,GACA,cAAA,GACA,UAAA,GACA,WAAA,GACA,YAAA,GACA,WAAA,GACA,YAAA,GACA,aAAA,GACA,gBAAA,GACA,UAAA;;KAGS,oBAAA,GAAuB,UAAA,GAAa,eAAA;;KAGpC,UAAA,eACG,SAAA,gBACA,UAAA,GAAa,UAAA,IACxB,KAAA,yBAA8B,OAAA,CAAQ,KAAA,MAAW,OAAA,CAAQ,KAAA;;KAGxD,OAAA,eAAsB,SAAA,IAAa,KAAA;EAAU,GAAA;AAAA;;;;;;;;;;KAWtC,QAAA,oBAA4B,CAAA,GAAI,CAAA,CAAE,CAAA"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { WebhookBodyBase, WebhookType } from "./types.cjs";
|
|
2
|
+
|
|
2
3
|
//#region src/types/webhook/apiUpdate.d.ts
|
|
3
4
|
/**
|
|
4
5
|
* Webhook payload sent when a Prismic repository content is updated.
|
|
5
6
|
*
|
|
6
7
|
* @see More details: {@link https://prismic.io/docs/webhooks}
|
|
7
8
|
*/
|
|
8
|
-
|
|
9
|
+
interface WebhookBodyAPIUpdate extends WebhookBodyBase {
|
|
9
10
|
type: typeof WebhookType.APIUpdate;
|
|
10
11
|
masterRef?: string;
|
|
11
12
|
releases: WebhookBodyAPIUpdateOperations<WebhookBodyAPIUpdateRelease>;
|
|
@@ -49,4 +50,5 @@ interface WebhookBodyAPIUpdateRelease {
|
|
|
49
50
|
documents: string[];
|
|
50
51
|
}
|
|
51
52
|
//#endregion
|
|
53
|
+
export { WebhookBodyAPIUpdate };
|
|
52
54
|
//# sourceMappingURL=apiUpdate.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apiUpdate.d.cts","names":[],"sources":["../../../src/types/webhook/apiUpdate.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"apiUpdate.d.cts","names":[],"sources":["../../../src/types/webhook/apiUpdate.ts"],"mappings":";;;;;AAOA;;;UAAiB,oBAAA,SAA6B,eAAA;EAC7C,IAAA,SAAa,WAAA,CAAY,SAAA;EACzB,SAAA;EACA,QAAA,EAAU,8BAAA,CAA+B,2BAAA;EACzC,KAAA,EAAO,8BAAA,CAA+B,wBAAA;EACtC,IAAA,EAAM,8BAAA,CAA+B,uBAAA;EACrC,SAAA;EAEc;EAAd,WAAA,GAAc,8BAAA;AAAA;AAAA,UAGL,8BAAA;EACT,MAAA,GAAS,CAAA;EACT,QAAA,GAAW,CAAA;EACX,QAAA,GAAW,CAAA;AAAA;;;;;;UAQF,wBAAA;EACT,EAAA;EACA,KAAA;AAAA;;;;;;UAQS,uBAAA;EACT,EAAA;AAAA;;;;;;UAQS,2BAAA;EACT,EAAA;EACA,GAAA;EACA,KAAA;EACA,SAAA;AAAA"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { WebhookBodyBase, WebhookType } from "./types.js";
|
|
2
|
+
|
|
2
3
|
//#region src/types/webhook/apiUpdate.d.ts
|
|
3
4
|
/**
|
|
4
5
|
* Webhook payload sent when a Prismic repository content is updated.
|
|
5
6
|
*
|
|
6
7
|
* @see More details: {@link https://prismic.io/docs/webhooks}
|
|
7
8
|
*/
|
|
8
|
-
|
|
9
|
+
interface WebhookBodyAPIUpdate extends WebhookBodyBase {
|
|
9
10
|
type: typeof WebhookType.APIUpdate;
|
|
10
11
|
masterRef?: string;
|
|
11
12
|
releases: WebhookBodyAPIUpdateOperations<WebhookBodyAPIUpdateRelease>;
|
|
@@ -49,4 +50,5 @@ interface WebhookBodyAPIUpdateRelease {
|
|
|
49
50
|
documents: string[];
|
|
50
51
|
}
|
|
51
52
|
//#endregion
|
|
53
|
+
export { WebhookBodyAPIUpdate };
|
|
52
54
|
//# sourceMappingURL=apiUpdate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apiUpdate.d.ts","names":[],"sources":["../../../src/types/webhook/apiUpdate.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"apiUpdate.d.ts","names":[],"sources":["../../../src/types/webhook/apiUpdate.ts"],"mappings":";;;;;AAOA;;;UAAiB,oBAAA,SAA6B,eAAA;EAC7C,IAAA,SAAa,WAAA,CAAY,SAAA;EACzB,SAAA;EACA,QAAA,EAAU,8BAAA,CAA+B,2BAAA;EACzC,KAAA,EAAO,8BAAA,CAA+B,wBAAA;EACtC,IAAA,EAAM,8BAAA,CAA+B,uBAAA;EACrC,SAAA;EAEc;EAAd,WAAA,GAAc,8BAAA;AAAA;AAAA,UAGL,8BAAA;EACT,MAAA,GAAS,CAAA;EACT,QAAA,GAAW,CAAA;EACX,QAAA,GAAW,CAAA;AAAA;;;;;;UAQF,wBAAA;EACT,EAAA;EACA,KAAA;AAAA;;;;;;UAQS,uBAAA;EACT,EAAA;AAAA;;;;;;UAQS,2BAAA;EACT,EAAA;EACA,GAAA;EACA,KAAA;EACA,SAAA;AAAA"}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { WebhookBodyBase, WebhookType } from "./types.cjs";
|
|
2
|
+
|
|
2
3
|
//#region src/types/webhook/testTrigger.d.ts
|
|
3
4
|
/**
|
|
4
5
|
* Webhook payload sent when a test webhook action is triggered.
|
|
5
6
|
*
|
|
6
7
|
* @see More details: {@link https://prismic.io/docs/webhooks}
|
|
7
8
|
*/
|
|
8
|
-
|
|
9
|
+
interface WebhookBodyTestTrigger extends WebhookBodyBase {
|
|
9
10
|
type: typeof WebhookType.TestTrigger;
|
|
10
11
|
}
|
|
11
12
|
//#endregion
|
|
13
|
+
export { WebhookBodyTestTrigger };
|
|
12
14
|
//# sourceMappingURL=testTrigger.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testTrigger.d.cts","names":[],"sources":["../../../src/types/webhook/testTrigger.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"testTrigger.d.cts","names":[],"sources":["../../../src/types/webhook/testTrigger.ts"],"mappings":";;;;;AAOA;;;UAAiB,sBAAA,SAA+B,eAAA;EAC/C,IAAA,SAAa,WAAA,CAAY,WAAA;AAAA"}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { WebhookBodyBase, WebhookType } from "./types.js";
|
|
2
|
+
|
|
2
3
|
//#region src/types/webhook/testTrigger.d.ts
|
|
3
4
|
/**
|
|
4
5
|
* Webhook payload sent when a test webhook action is triggered.
|
|
5
6
|
*
|
|
6
7
|
* @see More details: {@link https://prismic.io/docs/webhooks}
|
|
7
8
|
*/
|
|
8
|
-
|
|
9
|
+
interface WebhookBodyTestTrigger extends WebhookBodyBase {
|
|
9
10
|
type: typeof WebhookType.TestTrigger;
|
|
10
11
|
}
|
|
11
12
|
//#endregion
|
|
13
|
+
export { WebhookBodyTestTrigger };
|
|
12
14
|
//# sourceMappingURL=testTrigger.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testTrigger.d.ts","names":[],"sources":["../../../src/types/webhook/testTrigger.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"testTrigger.d.ts","names":[],"sources":["../../../src/types/webhook/testTrigger.ts"],"mappings":";;;;;AAOA;;;UAAiB,sBAAA,SAA+B,eAAA;EAC/C,IAAA,SAAa,WAAA,CAAY,WAAA;AAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.cjs","names":[],"sources":["../../../src/types/webhook/types.ts"],"sourcesContent":["import type { WebhookBodyAPIUpdate } from \"./apiUpdate\"\nimport type { WebhookBodyTestTrigger } from \"./testTrigger\"\n\nexport type WebhookBody = WebhookBodyAPIUpdate | WebhookBodyTestTrigger\n\n/**\n * Types of Prismic Webhooks.\n *\n * @see More details: {@link https://prismic.io/docs/webhooks}\n */\nexport const WebhookType = {\n\tAPIUpdate: \"api-update\",\n\tTestTrigger: \"test-trigger\",\n} as const\n\nexport interface WebhookBodyBase {\n\ttype: (typeof WebhookType)[keyof typeof WebhookType]\n\tdomain: string\n\tapiUrl: string\n\tsecret: string | null\n}\n"],"mappings":";;;;;;AAUA,MAAa,cAAc;CAC1B,WAAW;CACX,aAAa;
|
|
1
|
+
{"version":3,"file":"types.cjs","names":[],"sources":["../../../src/types/webhook/types.ts"],"sourcesContent":["import type { WebhookBodyAPIUpdate } from \"./apiUpdate\"\nimport type { WebhookBodyTestTrigger } from \"./testTrigger\"\n\nexport type WebhookBody = WebhookBodyAPIUpdate | WebhookBodyTestTrigger\n\n/**\n * Types of Prismic Webhooks.\n *\n * @see More details: {@link https://prismic.io/docs/webhooks}\n */\nexport const WebhookType = {\n\tAPIUpdate: \"api-update\",\n\tTestTrigger: \"test-trigger\",\n} as const\n\nexport interface WebhookBodyBase {\n\ttype: (typeof WebhookType)[keyof typeof WebhookType]\n\tdomain: string\n\tapiUrl: string\n\tsecret: string | null\n}\n"],"mappings":";;;;;;AAUA,MAAa,cAAc;CAC1B,WAAW;CACX,aAAa;CACb"}
|
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
import { WebhookBodyAPIUpdate } from "./apiUpdate.cjs";
|
|
2
2
|
import { WebhookBodyTestTrigger } from "./testTrigger.cjs";
|
|
3
|
+
|
|
3
4
|
//#region src/types/webhook/types.d.ts
|
|
4
|
-
|
|
5
|
+
type WebhookBody = WebhookBodyAPIUpdate | WebhookBodyTestTrigger;
|
|
5
6
|
/**
|
|
6
7
|
* Types of Prismic Webhooks.
|
|
7
8
|
*
|
|
8
9
|
* @see More details: {@link https://prismic.io/docs/webhooks}
|
|
9
10
|
*/
|
|
10
|
-
|
|
11
|
+
declare const WebhookType: {
|
|
11
12
|
readonly APIUpdate: "api-update";
|
|
12
13
|
readonly TestTrigger: "test-trigger";
|
|
13
14
|
};
|
|
14
|
-
|
|
15
|
+
interface WebhookBodyBase {
|
|
15
16
|
type: (typeof WebhookType)[keyof typeof WebhookType];
|
|
16
17
|
domain: string;
|
|
17
18
|
apiUrl: string;
|
|
18
19
|
secret: string | null;
|
|
19
20
|
}
|
|
20
21
|
//#endregion
|
|
22
|
+
export { WebhookBody, WebhookBodyBase, WebhookType };
|
|
21
23
|
//# sourceMappingURL=types.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.cts","names":[],"sources":["../../../src/types/webhook/types.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.cts","names":[],"sources":["../../../src/types/webhook/types.ts"],"mappings":";;;;KAGY,WAAA,GAAc,oBAAA,GAAuB,sBAAA;;AAAjD;;;;cAOa,WAAA;EAAA,SAGH,SAAA;EAAA,SAAA,WAAA;AAAA;AAAA,UAEO,eAAA;EAChB,IAAA,UAAc,WAAA,eAA0B,WAAA;EACxC,MAAA;EACA,MAAA;EACA,MAAA;AAAA"}
|
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
import { WebhookBodyAPIUpdate } from "./apiUpdate.js";
|
|
2
2
|
import { WebhookBodyTestTrigger } from "./testTrigger.js";
|
|
3
|
+
|
|
3
4
|
//#region src/types/webhook/types.d.ts
|
|
4
|
-
|
|
5
|
+
type WebhookBody = WebhookBodyAPIUpdate | WebhookBodyTestTrigger;
|
|
5
6
|
/**
|
|
6
7
|
* Types of Prismic Webhooks.
|
|
7
8
|
*
|
|
8
9
|
* @see More details: {@link https://prismic.io/docs/webhooks}
|
|
9
10
|
*/
|
|
10
|
-
|
|
11
|
+
declare const WebhookType: {
|
|
11
12
|
readonly APIUpdate: "api-update";
|
|
12
13
|
readonly TestTrigger: "test-trigger";
|
|
13
14
|
};
|
|
14
|
-
|
|
15
|
+
interface WebhookBodyBase {
|
|
15
16
|
type: (typeof WebhookType)[keyof typeof WebhookType];
|
|
16
17
|
domain: string;
|
|
17
18
|
apiUrl: string;
|
|
18
19
|
secret: string | null;
|
|
19
20
|
}
|
|
20
21
|
//#endregion
|
|
22
|
+
export { WebhookBody, WebhookBodyBase, WebhookType };
|
|
21
23
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","names":[],"sources":["../../../src/types/webhook/types.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.ts","names":[],"sources":["../../../src/types/webhook/types.ts"],"mappings":";;;;KAGY,WAAA,GAAc,oBAAA,GAAuB,sBAAA;;AAAjD;;;;cAOa,WAAA;EAAA,SAGH,SAAA;EAAA,SAAA,WAAA;AAAA;AAAA,UAEO,eAAA;EAChB,IAAA,UAAc,WAAA,eAA0B,WAAA;EACxC,MAAA;EACA,MAAA;EACA,MAAA;AAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","names":[],"sources":["../../../src/types/webhook/types.ts"],"sourcesContent":["import type { WebhookBodyAPIUpdate } from \"./apiUpdate\"\nimport type { WebhookBodyTestTrigger } from \"./testTrigger\"\n\nexport type WebhookBody = WebhookBodyAPIUpdate | WebhookBodyTestTrigger\n\n/**\n * Types of Prismic Webhooks.\n *\n * @see More details: {@link https://prismic.io/docs/webhooks}\n */\nexport const WebhookType = {\n\tAPIUpdate: \"api-update\",\n\tTestTrigger: \"test-trigger\",\n} as const\n\nexport interface WebhookBodyBase {\n\ttype: (typeof WebhookType)[keyof typeof WebhookType]\n\tdomain: string\n\tapiUrl: string\n\tsecret: string | null\n}\n"],"mappings":";;;;;;AAUA,MAAa,cAAc;CAC1B,WAAW;CACX,aAAa;
|
|
1
|
+
{"version":3,"file":"types.js","names":[],"sources":["../../../src/types/webhook/types.ts"],"sourcesContent":["import type { WebhookBodyAPIUpdate } from \"./apiUpdate\"\nimport type { WebhookBodyTestTrigger } from \"./testTrigger\"\n\nexport type WebhookBody = WebhookBodyAPIUpdate | WebhookBodyTestTrigger\n\n/**\n * Types of Prismic Webhooks.\n *\n * @see More details: {@link https://prismic.io/docs/webhooks}\n */\nexport const WebhookType = {\n\tAPIUpdate: \"api-update\",\n\tTestTrigger: \"test-trigger\",\n} as const\n\nexport interface WebhookBodyBase {\n\ttype: (typeof WebhookType)[keyof typeof WebhookType]\n\tdomain: string\n\tapiUrl: string\n\tsecret: string | null\n}\n"],"mappings":";;;;;;AAUA,MAAa,cAAc;CAC1B,WAAW;CACX,aAAa;CACb"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prismicio/client",
|
|
3
|
-
"version": "7.22.1
|
|
3
|
+
"version": "7.22.1",
|
|
4
4
|
"description": "The official JavaScript + TypeScript client library for Prismic",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"client",
|
|
@@ -68,17 +68,17 @@
|
|
|
68
68
|
"imgix-url-builder": "^0.0.6"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
|
-
"@prismicio/e2e-tests-utils": "^1.
|
|
71
|
+
"@prismicio/e2e-tests-utils": "^1.16.0",
|
|
72
72
|
"@prismicio/types-internal": "^3.17.0",
|
|
73
|
-
"@types/node": "^
|
|
74
|
-
"@vitest/coverage-v8": "^
|
|
75
|
-
"oxfmt": "^0.
|
|
76
|
-
"oxlint": "^1.
|
|
77
|
-
"tsdown": "^0.
|
|
78
|
-
"typescript": "^
|
|
79
|
-
"vitest": "^
|
|
73
|
+
"@types/node": "^25.5.0",
|
|
74
|
+
"@vitest/coverage-v8": "^4.1.2",
|
|
75
|
+
"oxfmt": "^0.43.0",
|
|
76
|
+
"oxlint": "^1.58.0",
|
|
77
|
+
"tsdown": "^0.21.7",
|
|
78
|
+
"typescript": "^6.0.2",
|
|
79
|
+
"vitest": "^4.1.2"
|
|
80
80
|
},
|
|
81
81
|
"engines": {
|
|
82
|
-
"node": ">=
|
|
82
|
+
"node": ">=20"
|
|
83
83
|
}
|
|
84
84
|
}
|