@asterdoc/types 0.10.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +13 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -602,6 +602,16 @@ interface LayerMoneyFormat {
|
|
|
602
602
|
*/
|
|
603
603
|
currencyDisplay: "none";
|
|
604
604
|
}
|
|
605
|
+
/** A numeric date order a PDF template asks for. */
|
|
606
|
+
type LayerDatePattern = "MM/DD/YYYY" | "DD/MM/YYYY" | "YYYY-MM-DD";
|
|
607
|
+
/**
|
|
608
|
+
* How a PDF layer presents date values, for a template that asks for one
|
|
609
|
+
* numeric order such as mm/dd/yyyy.
|
|
610
|
+
*/
|
|
611
|
+
interface LayerDateFormat {
|
|
612
|
+
/** The order the template asks for: two-digit month and day, four-digit year. */
|
|
613
|
+
pattern: LayerDatePattern;
|
|
614
|
+
}
|
|
605
615
|
/**
|
|
606
616
|
* Presentation a PDF layer's template requires of filled values, applied over
|
|
607
617
|
* the formatter the caller renders with.
|
|
@@ -609,6 +619,8 @@ interface LayerMoneyFormat {
|
|
|
609
619
|
interface LayerFormat {
|
|
610
620
|
/** How money values are presented in this layer. */
|
|
611
621
|
money?: LayerMoneyFormat;
|
|
622
|
+
/** How date values are presented in this layer. */
|
|
623
|
+
date?: LayerDateFormat;
|
|
612
624
|
}
|
|
613
625
|
/**
|
|
614
626
|
* File-backed layer with external file reference.
|
|
@@ -2988,4 +3000,4 @@ interface Resolver {
|
|
|
2988
3000
|
read(path: string): Promise<Uint8Array>;
|
|
2989
3001
|
}
|
|
2990
3002
|
|
|
2991
|
-
export type { Address, AddressExpression, AddressExpressionValue, AddressField, AddressFormatOptions, AddressLayoutContext, AddressLayoutFormatter, AddressLayoutPolicy, AdoptedSignature, AnchorLocateQuery, Artifact, ArtifactBase, ArtifactEdition, AsterdocRenderer, AsterdocRendererContext, Attachment, AttachmentFormatOptions, Attestation, AttestationBase, AttestationTarget, BaseExpression, BaseField, Bbox, BboxExpression, BboxExpressionValue, BboxField, BboxFormatOptions, BinaryContent, Bindings, BooleanExpression, BooleanField, BooleanFormatOptions, BooleanStatusSpec, Bundle, BundleContentItem, BundlePhase, CaptureFormatImplementation, CaptureFormatImplementationContext, CaptureFormatKind, CaptureValueByKind, Checklist, ChecklistData, ChecklistItem, ChecklistPhase, ChecklistRenderRequest, CompletedChecklistJSON, CondExpr, ContactFormatImplementation, ContactFormatImplementationContext, ContactFormatKind, ContactValueByKind, ContentRef, Coordinate, CoordinateExpression, CoordinateExpressionValue, CoordinateField, CoordinateFormatOptions, DateExpression, DateField, DateFormatOptions, DatetimeExpression, DatetimeField, DatetimeFormatOptions, DefsSection, Document, DocumentPhase, DocumentRenderRequest, DraftBundleJSON, DraftChecklistJSON, DraftDocumentJSON, DraftFormJSON, Duration, DurationExpression, DurationField, DurationFormatOptions, EmailField, EnumField, EnumFormatOptions, EnumOption, EnumOptionValue, EnumStatusOption, EnumStatusSpec, ExecutedBundleJSON, ExecutedFormJSON, Expression, ExpressionType, FieldsetField, FileContentRef, FileLayer, FinalDocumentJSON, Form, FormAnnex, FormData, FormField, FormParty, FormPayment, FormPhase, FormRenderRequest, FormSignature, FormatCallOptions, FormatImplementation, FormatImplementationContext, FormatInputByKind, FormatIssue, FormatKind, FormatOptionsByKind, FormatResult, FormatStatus, FormattedResult, Formatter, FormatterCacheBucket, FormatterCacheBucketStats, FormatterCacheStats, FormatterMessages, FormatterOptions, FormatterOverrides, FormatterProgressivePolicy, Identification, IdentificationExpression, IdentificationExpressionValue, IdentificationField, IdentificationFormatOptions, InlineBundleItem, InlineContentRef, InlineLayer, IntegerExpression, Layer, LayerFont, LayerFormat, LayerMoneyFormat, ListField, LocateHit, Metadata, Money, MoneyExpression, MoneyExpressionValue, MoneyField, MoneyFormatOptions, MultiselectField, MultiselectFormatOptions, NumberExpression, NumberField, NumberFormatOptions, NumericFormatKind, NumericValueByKind, ObjectExpression, ObjectExpressionType, Organization, OrganizationExpression, OrganizationExpressionValue, OrganizationField, OrganizationFormatOptions, Party, PartyFormatOptions, PartySignatory, PathBundleItem, PercentageExpression, PercentageField, PercentageFormatOptions, Person, PersonExpression, PersonExpressionValue, PersonField, PersonFormatOptions, Phone, PhoneExpression, PhoneExpressionValue, PhoneField, PhoneFormatOptions, RatingDisplay, RatingExpression, RatingField, RatingFormatOptions, ReactLayerMimeType, RegistryBundleItem, RenderRequest, RenderRequestBase, RendererExpressionContext, RendererExpressions, RendererLayer, RendererLayerFont, RendererLayerType, Resolver, RuleSeverity, RulesSection, RuntimeAsOf, RuntimeBundleJSON, RuntimeChecklistJSON, RuntimeContentJSON, RuntimeContext, RuntimeDocumentJSON, RuntimeFormJSON, RuntimeParty, ScalarExpression, ScalarExpressionType, SealAdapter, SealAdapterDocument, SealAdapterRequest, SealAdapterResult, SealLocator, SealingRequest, SealingResult, SelectionFormatImplementation, SelectionFormatImplementationContext, SelectionFormatKind, SelectionListStyle, SelectionListType, SelectionValueByKind, SignableBundleJSON, SignableFormJSON, Signature, SignatureCapture, SignatureCapturedContext, SignatureCapturedValue, SignatureFormatOptions, SignatureMethod, SignaturePlaceholderContext, SignaturePlaceholderValue, SignatureSlot, SignatureSlotPlacement, SignatureSlotType, Signer, SigningField, SigningFieldType, SigningMarker, SigningMarkerRequest, StatusSpec, StringExpression, TemporalFormatImplementation, TemporalFormatImplementationContext, TemporalFormatKind, TemporalFormatOptions, TemporalValueByKind, TextField, TimeExpression, TimeField, TimeFormatOptions, UnformattedResult, UnknownOptionPolicy, UnsupportedLocalePolicy, UriField, UuidField, ValidationRule, WitnessParty };
|
|
3003
|
+
export type { Address, AddressExpression, AddressExpressionValue, AddressField, AddressFormatOptions, AddressLayoutContext, AddressLayoutFormatter, AddressLayoutPolicy, AdoptedSignature, AnchorLocateQuery, Artifact, ArtifactBase, ArtifactEdition, AsterdocRenderer, AsterdocRendererContext, Attachment, AttachmentFormatOptions, Attestation, AttestationBase, AttestationTarget, BaseExpression, BaseField, Bbox, BboxExpression, BboxExpressionValue, BboxField, BboxFormatOptions, BinaryContent, Bindings, BooleanExpression, BooleanField, BooleanFormatOptions, BooleanStatusSpec, Bundle, BundleContentItem, BundlePhase, CaptureFormatImplementation, CaptureFormatImplementationContext, CaptureFormatKind, CaptureValueByKind, Checklist, ChecklistData, ChecklistItem, ChecklistPhase, ChecklistRenderRequest, CompletedChecklistJSON, CondExpr, ContactFormatImplementation, ContactFormatImplementationContext, ContactFormatKind, ContactValueByKind, ContentRef, Coordinate, CoordinateExpression, CoordinateExpressionValue, CoordinateField, CoordinateFormatOptions, DateExpression, DateField, DateFormatOptions, DatetimeExpression, DatetimeField, DatetimeFormatOptions, DefsSection, Document, DocumentPhase, DocumentRenderRequest, DraftBundleJSON, DraftChecklistJSON, DraftDocumentJSON, DraftFormJSON, Duration, DurationExpression, DurationField, DurationFormatOptions, EmailField, EnumField, EnumFormatOptions, EnumOption, EnumOptionValue, EnumStatusOption, EnumStatusSpec, ExecutedBundleJSON, ExecutedFormJSON, Expression, ExpressionType, FieldsetField, FileContentRef, FileLayer, FinalDocumentJSON, Form, FormAnnex, FormData, FormField, FormParty, FormPayment, FormPhase, FormRenderRequest, FormSignature, FormatCallOptions, FormatImplementation, FormatImplementationContext, FormatInputByKind, FormatIssue, FormatKind, FormatOptionsByKind, FormatResult, FormatStatus, FormattedResult, Formatter, FormatterCacheBucket, FormatterCacheBucketStats, FormatterCacheStats, FormatterMessages, FormatterOptions, FormatterOverrides, FormatterProgressivePolicy, Identification, IdentificationExpression, IdentificationExpressionValue, IdentificationField, IdentificationFormatOptions, InlineBundleItem, InlineContentRef, InlineLayer, IntegerExpression, Layer, LayerDateFormat, LayerDatePattern, LayerFont, LayerFormat, LayerMoneyFormat, ListField, LocateHit, Metadata, Money, MoneyExpression, MoneyExpressionValue, MoneyField, MoneyFormatOptions, MultiselectField, MultiselectFormatOptions, NumberExpression, NumberField, NumberFormatOptions, NumericFormatKind, NumericValueByKind, ObjectExpression, ObjectExpressionType, Organization, OrganizationExpression, OrganizationExpressionValue, OrganizationField, OrganizationFormatOptions, Party, PartyFormatOptions, PartySignatory, PathBundleItem, PercentageExpression, PercentageField, PercentageFormatOptions, Person, PersonExpression, PersonExpressionValue, PersonField, PersonFormatOptions, Phone, PhoneExpression, PhoneExpressionValue, PhoneField, PhoneFormatOptions, RatingDisplay, RatingExpression, RatingField, RatingFormatOptions, ReactLayerMimeType, RegistryBundleItem, RenderRequest, RenderRequestBase, RendererExpressionContext, RendererExpressions, RendererLayer, RendererLayerFont, RendererLayerType, Resolver, RuleSeverity, RulesSection, RuntimeAsOf, RuntimeBundleJSON, RuntimeChecklistJSON, RuntimeContentJSON, RuntimeContext, RuntimeDocumentJSON, RuntimeFormJSON, RuntimeParty, ScalarExpression, ScalarExpressionType, SealAdapter, SealAdapterDocument, SealAdapterRequest, SealAdapterResult, SealLocator, SealingRequest, SealingResult, SelectionFormatImplementation, SelectionFormatImplementationContext, SelectionFormatKind, SelectionListStyle, SelectionListType, SelectionValueByKind, SignableBundleJSON, SignableFormJSON, Signature, SignatureCapture, SignatureCapturedContext, SignatureCapturedValue, SignatureFormatOptions, SignatureMethod, SignaturePlaceholderContext, SignaturePlaceholderValue, SignatureSlot, SignatureSlotPlacement, SignatureSlotType, Signer, SigningField, SigningFieldType, SigningMarker, SigningMarkerRequest, StatusSpec, StringExpression, TemporalFormatImplementation, TemporalFormatImplementationContext, TemporalFormatKind, TemporalFormatOptions, TemporalValueByKind, TextField, TimeExpression, TimeField, TimeFormatOptions, UnformattedResult, UnknownOptionPolicy, UnsupportedLocalePolicy, UriField, UuidField, ValidationRule, WitnessParty };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@asterdoc/types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "Type-only contracts for the Asterdoc framework: artifact definitions, runtime data, and renderer, formatter and resolver interfaces",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|