JSR

Built and signed on GitHub Actions

Works with

This package works with Cloudflare Workers, Node.js, Deno, Bun

This package works with Cloudflare Workers

This package works with Node.js

This package works with Deno

This package works with Bun

JSR Score100%

License

MIT

Downloads198/wk

Published5 days ago (2.3.6)

Vocabularies library for Fedify

A proposed economic transaction describing what is being offered or requested in a Proposal.

Constructors

new Intent(

values: { id?: URL | null; action?: string | null; resourceConformsTo?: URL | null; resourceQuantity?: Measure | null; availableQuantity?: Measure | null; minimumQuantity?: Measure | null; },

options?: { documentLoader?: DocumentLoader; contextLoader?: DocumentLoader; tracerProvider?: TracerProvider; }

)

View code

Constructs a new instance of Intent with the given values.

Parameters

values: { id?: URL | null; action?: string | null; resourceConformsTo?: URL | null; resourceQuantity?: Measure | null; availableQuantity?: Measure | null; minimumQuantity?: Measure | null; }

View code

The values to initialize the instance with.

The options to use for initialization.

Static Properties

The type URI of Intent: https://w3id.org/valueflows/ont/vf#Intent.

Static Methods

Converts a JSON-LD structure to an object of this type.

Properties

The type of economic transaction. The value of this property should be either "deliverService" or "transfer".

The quantity of the offered resource currently available.

The minimum possible quantity of the resource.

The type of an economic resource. Could be any URI.

The amount and unit of the economic resource.

Methods

Clones this instance, optionally updating it with the given values.

Converts this object to a JSON-LD structure.

Read the original on jsr.io ↗