@xylabs/react-rich-result 7.1.17 → 7.1.20

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.
Files changed (52) hide show
  1. package/README.md +6 -46
  2. package/package.json +15 -12
  3. package/src/RichResult.tsx +0 -18
  4. package/src/index.ts +0 -2
  5. package/src/jsonld/Action.ts +0 -26
  6. package/src/jsonld/ActionStatusType.ts +0 -11
  7. package/src/jsonld/AdministrativeArea.ts +0 -5
  8. package/src/jsonld/AggregateRating.ts +0 -10
  9. package/src/jsonld/Article.ts +0 -16
  10. package/src/jsonld/Base.ts +0 -5
  11. package/src/jsonld/Brand.ts +0 -11
  12. package/src/jsonld/Class.ts +0 -9
  13. package/src/jsonld/ContactPoint.ts +0 -21
  14. package/src/jsonld/ContactPointOption.ts +0 -9
  15. package/src/jsonld/Country.ts +0 -5
  16. package/src/jsonld/CreativeWork.ts +0 -125
  17. package/src/jsonld/DateTime.ts +0 -3
  18. package/src/jsonld/EntryPoint.ts +0 -15
  19. package/src/jsonld/Enumeration.ts +0 -9
  20. package/src/jsonld/GeoShape.ts +0 -17
  21. package/src/jsonld/GeospatialGeometry.ts +0 -17
  22. package/src/jsonld/ImageObject.ts +0 -11
  23. package/src/jsonld/Intangible.ts +0 -5
  24. package/src/jsonld/Integer.ts +0 -3
  25. package/src/jsonld/ItemAvailability.ts +0 -25
  26. package/src/jsonld/Language.ts +0 -5
  27. package/src/jsonld/Map.ts +0 -8
  28. package/src/jsonld/MapCategoryType.ts +0 -11
  29. package/src/jsonld/MediaObject.ts +0 -12
  30. package/src/jsonld/MobileApplication.ts +0 -8
  31. package/src/jsonld/Offer.ts +0 -66
  32. package/src/jsonld/Organization.ts +0 -80
  33. package/src/jsonld/Person.ts +0 -73
  34. package/src/jsonld/Photograph.ts +0 -5
  35. package/src/jsonld/Place.ts +0 -44
  36. package/src/jsonld/PostalAddress.ts +0 -14
  37. package/src/jsonld/Product.ts +0 -59
  38. package/src/jsonld/Property.ts +0 -12
  39. package/src/jsonld/PropertyValue.ts +0 -18
  40. package/src/jsonld/QualitativeValue.ts +0 -17
  41. package/src/jsonld/QuantitativeValue.ts +0 -17
  42. package/src/jsonld/Rating.ts +0 -12
  43. package/src/jsonld/Review.ts +0 -12
  44. package/src/jsonld/Service.ts +0 -41
  45. package/src/jsonld/SoftwareApplication.ts +0 -31
  46. package/src/jsonld/StructuredValue.ts +0 -5
  47. package/src/jsonld/Text.ts +0 -3
  48. package/src/jsonld/Thing.ts +0 -24
  49. package/src/jsonld/Time.ts +0 -3
  50. package/src/jsonld/URL.ts +0 -3
  51. package/src/jsonld/VirtualLocation.ts +0 -5
  52. package/src/jsonld/index.ts +0 -47
package/README.md CHANGED
@@ -1,67 +1,27 @@
1
- [![logo][]](https://xylabs.com)
2
-
3
1
  # @xylabs/react-rich-result
4
2
 
5
- [![npm-badge][]][npm-link]
6
- [![npm-downloads-badge][]][npm-link]
7
- [![jsdelivr-badge][]][jsdelivr-link]
8
- [![npm-license-badge][]](LICENSE)
9
-
10
- > XY Labs generalized React library
11
-
12
- ## Table of Contents
3
+ [![npm][npm-badge]][npm-link]
13
4
 
14
- - [Description](#description)
15
- - [Install](#install)
16
- - [Maintainers](#maintainers)
17
- - [License](#license)
18
- - [Credits](#credits)
19
-
20
- ## Description
21
-
22
- Common React code that is used throughout XYO projects that use React.
5
+ > Common React library for all XY Labs projects that use React
23
6
 
24
7
  ## Install
25
8
 
26
- Using npm:
27
-
28
9
  ```sh
29
- npm i --save @xylabs/react-rich-result
10
+ npm install {{name}}
30
11
  ```
31
12
 
32
- Using yarn:
13
+ or
33
14
 
34
15
  ```sh
35
- yarn add @xylabs/react-rich-result
16
+ yarn add {{name}}
36
17
  ```
37
18
 
38
- ## Documentation
39
- [Developer Reference](https://xylabs.github.io/sdk-react)
40
-
41
- [Storybook](https://xylabs.github.io/sdk-react/storybook)
42
-
43
- ## Maintainers
44
-
45
- - [Arie Trouw](https://github.com/arietrouw) ([arietrouw.com](https://arietrouw.com))
46
- - [Matt Jones](https://github.com/jonesmac)
47
- - [Joel Carter](https://github.com/JoelBCarter)
48
- - [Jordan Trouw](https://github.com/jordantrouw)
49
19
 
50
20
  ## License
51
21
 
52
- See the [LICENSE](LICENSE) file for license details
22
+ See the [LICENSE](LICENSE) file for license rights and limitations (LGPL-3.0-only).
53
23
 
54
- ## Credits
55
24
 
56
- [Made with 🔥and ❄️ by XY Labs](https://xylabs.com)
57
-
58
- [logo]: https://cdn.xy.company/img/brand/XYPersistentCompany_Logo_Icon_Colored.svg
59
25
 
60
26
  [npm-badge]: https://img.shields.io/npm/v/@xylabs/react-rich-result.svg
61
27
  [npm-link]: https://www.npmjs.com/package/@xylabs/react-rich-result
62
-
63
- [npm-downloads-badge]: https://img.shields.io/npm/dw/@xylabs/react-rich-result
64
- [npm-license-badge]: https://img.shields.io/npm/l/@xylabs/react-rich-result
65
-
66
- [jsdelivr-badge]: https://data.jsdelivr.com/v1/package/npm/@xylabs/react-rich-result/badge
67
- [jsdelivr-link]: https://www.jsdelivr.com/package/npm/@xylabs/react-rich-result
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xylabs/react-rich-result",
3
- "version": "7.1.17",
3
+ "version": "7.1.20",
4
4
  "description": "Common React library for all XY Labs projects that use React",
5
5
  "keywords": [
6
6
  "utility",
@@ -27,37 +27,40 @@
27
27
  "exports": {
28
28
  ".": {
29
29
  "types": "./dist/browser/index.d.ts",
30
+ "import": "./dist/browser/index.mjs",
30
31
  "default": "./dist/browser/index.mjs"
31
32
  },
32
33
  "./package.json": "./package.json"
33
34
  },
34
- "module": "./dist/browser/index.mjs",
35
35
  "types": "dist/browser/index.d.ts",
36
36
  "files": [
37
37
  "dist",
38
- "src"
38
+ "README.md"
39
39
  ],
40
40
  "workspaces": [
41
41
  "packages/*"
42
42
  ],
43
43
  "dependencies": {
44
- "@xylabs/sdk-js": "~5.0.80"
44
+ "@xylabs/sdk-js": "~5.0.95",
45
+ "react": "~19.2.4"
45
46
  },
46
47
  "devDependencies": {
48
+ "@opentelemetry/api": "^1.9.1",
47
49
  "@types/react": "^19.2.14",
48
- "@xylabs/ts-scripts-yarn3": "~7.4.9",
49
- "@xylabs/tsconfig": "~7.4.9",
50
- "@xylabs/tsconfig-dom": "~7.4.9",
51
- "@xylabs/tsconfig-react": "~7.4.9",
52
- "react": "^19.2.4",
50
+ "@xylabs/ts-scripts-common": "~7.8.5",
51
+ "@xylabs/ts-scripts-pnpm": "~7.8.5",
52
+ "@xylabs/tsconfig": "~7.8",
53
+ "@xylabs/tsconfig-dom": "~7.8.5",
54
+ "@xylabs/tsconfig-react": "~7.8.5",
55
+ "axios": "^1.14.0",
56
+ "pako": "~2.1.0",
53
57
  "typescript": "^5.9.3",
54
58
  "zod": "~4.3.6"
55
59
  },
56
60
  "peerDependencies": {
57
- "react": "^19",
58
- "zod": "^4"
61
+ "pako": "~2.1.0"
59
62
  },
60
63
  "publishConfig": {
61
64
  "access": "public"
62
65
  }
63
- }
66
+ }
@@ -1,18 +0,0 @@
1
- import React from 'react'
2
-
3
- import type { Base, Thing } from './jsonld/index.ts'
4
-
5
- type WithContext<T extends Base> = T & {
6
- '@context': 'https://schema.org'
7
- }
8
-
9
- export interface RichResultProps {
10
- thing: Thing
11
- }
12
-
13
- export const RichResult: React.FC<RichResultProps> = (props) => {
14
- const { thing } = props
15
- const thingWithContext = thing as WithContext<Thing>
16
- thingWithContext['@context'] = 'https://schema.org'
17
- return <script type="application/ld+json">{JSON.stringify(thingWithContext)}</script>
18
- }
package/src/index.ts DELETED
@@ -1,2 +0,0 @@
1
- export * from './jsonld/index.ts'
2
- export * from './RichResult.tsx'
@@ -1,26 +0,0 @@
1
- import type { ActionStatusType } from './ActionStatusType.ts'
2
- import type { DateTime } from './DateTime.ts'
3
- import type { EntryPoint } from './EntryPoint.ts'
4
- import type { Organization } from './Organization.ts'
5
- import type { Person } from './Person.ts'
6
- import type { Place } from './Place.ts'
7
- import type { PostalAddress } from './PostalAddress.ts'
8
- import type { Thing } from './Thing.ts'
9
- import type { Time } from './Time.ts'
10
- import type { VirtualLocation } from './VirtualLocation.ts'
11
-
12
- interface Action extends Thing {
13
- actionStatus?: ActionStatusType
14
- agent?: Organization | Person
15
- endTime?: DateTime | Time
16
- error?: Thing
17
- instrument?: Thing
18
- location?: Place | PostalAddress | string | VirtualLocation
19
- object?: Thing
20
- participant?: Organization | Person
21
- result?: Thing
22
- startTime?: DateTime | Time
23
- target?: EntryPoint
24
- }
25
-
26
- export type { Action }
@@ -1,11 +0,0 @@
1
- import type { EnumValue } from '@xylabs/sdk-js'
2
- import { Enum } from '@xylabs/sdk-js'
3
-
4
- export const ActionStatusType = Enum({
5
- ActiveActionStatus: 'ActiveActionStatus',
6
- CompletedActionStatus: 'CompletedActionStatus',
7
- FailedActionStatus: 'FailedActionStatus',
8
- PotentialActionStatus: 'PotentialActionStatus',
9
- })
10
-
11
- export type ActionStatusType = EnumValue<typeof ActionStatusType>
@@ -1,5 +0,0 @@
1
- import type { Place } from './Place.ts'
2
-
3
- type AdministrativeArea = Place
4
-
5
- export type { AdministrativeArea }
@@ -1,10 +0,0 @@
1
- import type { Rating } from './Rating.ts'
2
- import type { Thing } from './Thing.ts'
3
-
4
- interface AggregateRating extends Rating {
5
- itemReviewed?: Thing
6
- ratingCount?: number
7
- reviewCount?: number
8
- }
9
-
10
- export type { AggregateRating }
@@ -1,16 +0,0 @@
1
- import type { CreativeWork } from './CreativeWork.ts'
2
- import type { Integer } from './Integer.ts'
3
- import type { Text } from './Text.ts'
4
-
5
- interface Article extends CreativeWork {
6
- articleBody?: Text
7
- articleSection?: Text
8
- backstory?: CreativeWork | Text
9
- pageEnd?: Integer | Text
10
- pageStart?: Integer | Text
11
- pagination?: Text
12
- speakable?: unknown | URL
13
- wordCount?: Integer
14
- }
15
-
16
- export type { Article }
@@ -1,5 +0,0 @@
1
- interface Base {
2
- '@type': string
3
- }
4
-
5
- export type { Base }
@@ -1,11 +0,0 @@
1
- import type { AggregateRating } from './AggregateRating.ts'
2
- import type { ImageObject } from './ImageObject.ts'
3
- import type { Intangible } from './Intangible.ts'
4
- import type { Review } from './Review.ts'
5
-
6
- export interface Brand extends Intangible {
7
- aggregateRating?: AggregateRating
8
- logo?: ImageObject | URL
9
- review?: Review
10
- slogan?: Text
11
- }
@@ -1,9 +0,0 @@
1
- import type { Enumeration } from './Enumeration.ts'
2
- import type { Intangible } from './Intangible.ts'
3
- import type { Property } from './Property.ts'
4
-
5
- interface Class extends Intangible {
6
- supersededBy?: Class | Enumeration | Property
7
- }
8
-
9
- export type { Class }
@@ -1,21 +0,0 @@
1
- import type { AdministrativeArea } from './AdministrativeArea.ts'
2
- import type { ContactPointOption } from './ContactPointOption.ts'
3
- import type { GeoShape } from './GeoShape.ts'
4
- import type { Language } from './Language.ts'
5
- import type { Place } from './Place.ts'
6
- import type { Product } from './Product.ts'
7
- import type { Text } from './Text.ts'
8
- import type { Thing } from './Thing.ts'
9
-
10
- interface ContactPoint extends Thing {
11
- areaServed?: AdministrativeArea | GeoShape | Place | Text
12
- availableLanguages?: Language | Text
13
- contactOption?: ContactPointOption
14
- contactType?: Text
15
- email?: Text
16
- hoursAvailable?: unknown
17
- productsSupported?: Product | Text
18
- telephone?: Text
19
- }
20
-
21
- export type { ContactPoint }
@@ -1,9 +0,0 @@
1
- import type { EnumValue } from '@xylabs/sdk-js'
2
- import { Enum } from '@xylabs/sdk-js'
3
-
4
- export const ContactPointOption = Enum({
5
- HearingImpairedSupported: 'HearingImpairedSupported',
6
- TollFree: 'TollFree',
7
- })
8
-
9
- export type ContactPointOption = EnumValue<typeof ContactPointOption>
@@ -1,5 +0,0 @@
1
- import type { AdministrativeArea } from './AdministrativeArea.ts'
2
-
3
- type Country = AdministrativeArea
4
-
5
- export type { Country }
@@ -1,125 +0,0 @@
1
- import type { AggregateRating } from './AggregateRating.ts'
2
- import type { DateTime } from './DateTime.ts'
3
- import type { Integer } from './Integer.ts'
4
- import type { Language } from './Language.ts'
5
- import type { MediaObject } from './MediaObject.ts'
6
- import type { Offer } from './Offer.ts'
7
- import type { Organization } from './Organization.ts'
8
- import type { Person } from './Person.ts'
9
- import type { Place } from './Place.ts'
10
- import type { Product } from './Product.ts'
11
- import type { QuantitativeValue } from './QuantitativeValue.ts'
12
- import type { Rating } from './Rating.ts'
13
- import type { Review } from './Review.ts'
14
- import type { Text } from './Text.ts'
15
- import type { Thing } from './Thing.ts'
16
- import type { URL } from './URL.ts'
17
-
18
- // TODO: Resolve Anys
19
- interface CreativeWork extends Thing {
20
- about?: Thing
21
- abstract?: Text
22
- accessMode?: Text
23
- accessModeSufficient?: unknown
24
- accessibilityAPI?: Text
25
- accessibilityControl?: Text
26
- accessibilityFeature?: Text
27
- accessibilityHazard?: Text
28
- accessibilitySummary?: Text
29
- accountablePerson?: Person
30
- acquireLicensePage?: CreativeWork | URL
31
- aggregateRating?: AggregateRating
32
- alternativeHeading?: Text
33
- assesses?: unknown | Text
34
- associatedMedia?: MediaObject
35
- audience?: unknown
36
- audio?: unknown | unknown | unknown
37
- author?: Organization | Person
38
- award?: Text
39
- character?: Person
40
- citation?: CreativeWork | Text
41
- comment?: unknown
42
- commentCount?: Integer
43
- conditionsOfAccess?: Text
44
- contentLocation?: Place
45
- contentRating?: Rating | Text
46
- contentReferenceTime?: DateTime
47
- contributor?: Organization | Person
48
- copyrightHolder?: Organization | Person
49
- copyrightNotice?: Text
50
- copyrightYear?: number
51
- correction?: unknown | Text | URL
52
- creativeWorkStatus?: unknown | Text
53
- creator?: Organization | Person
54
- creditText?: Text
55
- dateCreated?: DateTime
56
- dateModified?: DateTime
57
- datePublished?: DateTime
58
- discussionUrl?: URL
59
- editEIDR?: Text | URL
60
- editor?: Person
61
- educationalAlignment?: unknown
62
- educationalLevel?: unknown | Text | URL
63
- educationalUse?: unknown | Text
64
- encoding?: MediaObject
65
- encodingFormat?: Text | URL
66
- exampleOfWork?: CreativeWork
67
- expires?: DateTime
68
- funder?: Organization | Person
69
- genre?: Text | URL
70
- hasPart?: CreativeWork
71
- headline?: Text
72
- inLanguage?: Language | Text
73
- interactionStatistic?: unknown
74
- interactiveityType?: Text
75
- isAccessibleForFree?: boolean
76
- isBasedOn?: CreativeWork | Product | URL
77
- isFamilyFriendly?: boolean
78
- isPartOf?: CreativeWork | URL
79
- keywords?: unknown | Text | URL
80
- learningResourceType?: unknown | Text
81
- license?: CreativeWork | URL
82
- locationCreated?: Place
83
- mainEntry?: Thing
84
- maintainer?: Organization | Person
85
- material?: Product | Text | URL
86
- materialExtent?: QuantitativeValue | Text
87
- mentions?: Thing
88
- offers?: unknown | Offer[]
89
- pattern?: unknown | Text
90
- position?: Integer | Text
91
- producer?: Organization | Person
92
- provider?: Organization | Person
93
- publication?: unknown
94
- publisher?: Organization | Person
95
- publisherImprint?: Organization
96
- publishingPrinciples?: CreativeWork | URL
97
- recordedAt?: Event
98
- releasedEvent?: unknown
99
- review?: Review
100
- schemaVersion?: Text | URL
101
- sdDatePublished?: DateTime
102
- sdLicense?: CreativeWork | URL
103
- sdPublisher?: Organization | Person
104
- size?: unknown | QuantitativeValue | Text
105
- sourceOrganization?: Organization
106
- spatial?: Place
107
- spatialCoverage?: Place
108
- sponsor?: Organization | Person
109
- teaches?: unknown | Text
110
- temporal?: DateTime | Text
111
- temporalCoverage?: DateTime | Text | URL
112
- text?: Text
113
- thumbnailUrl?: URL
114
- timeRequired?: unknown
115
- translationOfWork?: CreativeWork
116
- translator?: Organization | Person
117
- typicalAgeRange?: Text
118
- usageInfo?: CreativeWork | URL
119
- version?: number | Text
120
- video?: unknown
121
- workExample?: CreativeWork
122
- workTranslation?: CreativeWork
123
- }
124
-
125
- export type { CreativeWork }
@@ -1,3 +0,0 @@
1
- type DateTime = string
2
-
3
- export type { DateTime }
@@ -1,15 +0,0 @@
1
- import type { Intangible } from './Intangible.ts'
2
- import type { SoftwareApplication } from './SoftwareApplication.ts'
3
- import type { Text } from './Text.ts'
4
- import type { URL } from './URL.ts'
5
-
6
- interface EntryPoint extends Intangible {
7
- actionApplication?: SoftwareApplication
8
- actionPlatform?: Text | URL
9
- contentType?: Text
10
- encodingType?: Text
11
- httpMethod?: Text
12
- urlTemplate?: Text
13
- }
14
-
15
- export type { EntryPoint }
@@ -1,9 +0,0 @@
1
- import type { Class } from './Class.ts'
2
- import type { Intangible } from './Intangible.ts'
3
- import type { Property } from './Property.ts'
4
-
5
- interface Enumeration extends Intangible {
6
- supersededBy?: Class | Enumeration | Property
7
- }
8
-
9
- export type { Enumeration }
@@ -1,17 +0,0 @@
1
- import type { Country } from './Country.ts'
2
- import type { PostalAddress } from './PostalAddress.ts'
3
- import type { Text } from './Text.ts'
4
- import type { Thing } from './Thing.ts'
5
-
6
- interface GeoShape extends Thing {
7
- address?: PostalAddress | Text
8
- addressCountry?: Country | Text
9
- box?: Text
10
- circle?: Text
11
- elevation?: number | Text
12
- line?: Text
13
- polygon?: Text
14
- postalCode?: Text
15
- }
16
-
17
- export type { GeoShape }
@@ -1,17 +0,0 @@
1
- import type { Intangible } from './Intangible.ts'
2
- import type { Place } from './Place.ts'
3
-
4
- interface GeospatialGeometry extends Intangible {
5
- geoContains?: Place | GeospatialGeometry
6
- geoCoveredBy?: Place | GeospatialGeometry
7
- geoCovers?: Place | GeospatialGeometry
8
- geoCrosses?: Place | GeospatialGeometry
9
- geoDisjoint?: Place | GeospatialGeometry
10
- geoEquals?: Place | GeospatialGeometry
11
- geoIntersects?: Place | GeospatialGeometry
12
- geoOverlaps?: Place | GeospatialGeometry
13
- geoTouches?: Place | GeospatialGeometry
14
- geoWithin?: Place | GeospatialGeometry
15
- }
16
-
17
- export type { GeospatialGeometry }
@@ -1,11 +0,0 @@
1
- import type { MediaObject } from './MediaObject.ts'
2
- import type { Text } from './Text.ts'
3
-
4
- interface ImageObject extends MediaObject {
5
- caption?: Text
6
- exifData?: Text
7
- representativeOfPage?: boolean
8
- thumbnail?: ImageObject
9
- }
10
-
11
- export type { ImageObject }
@@ -1,5 +0,0 @@
1
- import type { Thing } from './Thing.ts'
2
-
3
- type Intangible = Thing
4
-
5
- export type { Intangible }
@@ -1,3 +0,0 @@
1
- type Integer = number
2
-
3
- export type { Integer }
@@ -1,25 +0,0 @@
1
- import type { EnumValue } from '@xylabs/sdk-js'
2
- import { Enum } from '@xylabs/sdk-js'
3
-
4
- export const ItemAvailability = Enum({
5
- /** Indicates that the item has been discontinued. */
6
- Discontinued: 'https://schema.org/Discontinued',
7
- /** Indicates that the item is in stock. */
8
- InStock: 'https://schema.org/InStock',
9
- /** Indicates that the item is available only at physical locations. */
10
- InStoreOnly: 'https://schema.org/InStoreOnly',
11
- /** Indicates that the item has limited availability. */
12
- LimitedAvailability: 'https://schema.org/LimitedAvailability',
13
- /** Indicates that the item is available only online. */
14
- OnlineOnly: 'https://schema.org/OnlineOnly',
15
- /** Indicates that the item is out of stock. */
16
- OutOfStock: 'https://schema.org/OutOfStock',
17
- /** Indicates that the item is available for pre-order. */
18
- PreOrder: 'https://schema.org/PreOrder',
19
- /** Indicates that the item is available for ordering and delivery before general availability. */
20
- PreSale: 'https://schema.org/PreSale',
21
- /** Indicates that the item has sold out. */
22
- SoldOut: 'https://schema.org/SoldOut',
23
- })
24
-
25
- export type ItemAvailability = EnumValue<typeof ItemAvailability>
@@ -1,5 +0,0 @@
1
- import type { Intangible } from './Intangible.ts'
2
-
3
- type Language = Intangible
4
-
5
- export type { Language }
package/src/jsonld/Map.ts DELETED
@@ -1,8 +0,0 @@
1
- import type { CreativeWork } from './CreativeWork.ts'
2
- import type { MapCategoryType } from './MapCategoryType.ts'
3
-
4
- interface Map extends CreativeWork {
5
- mapType?: MapCategoryType
6
- }
7
-
8
- export type { Map }
@@ -1,11 +0,0 @@
1
- import type { EnumValue } from '@xylabs/sdk-js'
2
- import { Enum } from '@xylabs/sdk-js'
3
-
4
- export const MapCategoryType = Enum({
5
- ParkingMap: 'ParkingMap',
6
- SeatingMap: 'SeatingMap',
7
- TransitMap: 'TransitMap',
8
- VenueMap: 'VenueMap',
9
- })
10
-
11
- export type MapCategoryType = EnumValue<typeof MapCategoryType>
@@ -1,12 +0,0 @@
1
- import type { CreativeWork } from './CreativeWork.ts'
2
- import type { Text } from './Text.ts'
3
- import type { URL } from './URL.ts'
4
-
5
- interface MediaObject extends CreativeWork {
6
- contentSize?: Text
7
- contentUrl?: URL
8
- height?: unknown
9
- width?: unknown
10
- }
11
-
12
- export type { MediaObject }
@@ -1,8 +0,0 @@
1
- import type { SoftwareApplication } from './SoftwareApplication.ts'
2
- import type { Text } from './Text.ts'
3
-
4
- interface MobileApplication extends SoftwareApplication {
5
- carrierRequirements?: Text
6
- }
7
-
8
- export type { MobileApplication }
@@ -1,66 +0,0 @@
1
- import type { AdministrativeArea } from './AdministrativeArea.ts'
2
- import type { AggregateRating } from './AggregateRating.ts'
3
- import type { CreativeWork } from './CreativeWork.ts'
4
- import type { DateTime } from './DateTime.ts'
5
- import type { GeoShape } from './GeoShape.ts'
6
- import type { Intangible } from './Intangible.ts'
7
- import type { ItemAvailability } from './ItemAvailability.ts'
8
- import type { Organization } from './Organization.ts'
9
- import type { Person } from './Person.ts'
10
- import type { Place } from './Place.ts'
11
- import type { Product } from './Product.ts'
12
- import type { QuantitativeValue } from './QuantitativeValue.ts'
13
- import type { Review } from './Review.ts'
14
- import type { Service } from './Service.ts'
15
- import type { Text } from './Text.ts'
16
- import type { Thing } from './Thing.ts'
17
- import type { Time } from './Time.ts'
18
- import type { URL } from './URL.ts'
19
-
20
- interface Offer extends Intangible {
21
- acceptedPaymentMethod?: unknown
22
- addOn?: Offer
23
- advanceBookingRequirement?: QuantitativeValue
24
- aggrigateRating?: AggregateRating
25
- areaServed?: AdministrativeArea | GeoShape | Place | Text
26
- availability?: ItemAvailability
27
- availabilityAtOrFrom?: Place
28
- availabilityEnds?: DateTime | Time
29
- availabilityStarts?: DateTime | Time
30
- availableDeliveryMethod?: unknown
31
- businessFunction?: unknown
32
- category?: unknown | Text | Thing | URL
33
- deliveryLeadTime?: QuantitativeValue
34
- eligibleCustomerType?: unknown
35
- eligibleDuration?: QuantitativeValue
36
- eligibleQuantity?: QuantitativeValue
37
- eligibleRegion?: GeoShape | Place | Text
38
- eligibleTransactionVolume?: unknown
39
- gtin?: Text
40
- gtin12?: Text
41
- gtin13?: Text
42
- gtin14?: Text
43
- gtin8?: Text
44
- includesObject?: unknown
45
- ineligibleRegion?: GeoShape | Place | Text
46
- inventoryLevel?: QuantitativeValue
47
- itemCondition?: unknown
48
- itemOffered?: unknown | CreativeWork | Event | unknown | Product | Service | unknown
49
- leaseLength?: unknown | QuantitativeValue
50
- mpn?: Text
51
- offeredBy?: Organization | Person
52
- price?: number | Text
53
- priceCurrency?: Text
54
- priceSpecification?: unknown
55
- priceValidUntil?: DateTime
56
- review?: Review
57
- seller?: Organization | Person
58
- serialNumber?: Text
59
- shippingDetails?: unknown
60
- sku?: Text
61
- validFrom?: DateTime
62
- validThrough?: DateTime
63
- warranty?: unknown
64
- }
65
-
66
- export type { Offer }
@@ -1,80 +0,0 @@
1
- import type { AdministrativeArea } from './AdministrativeArea.ts'
2
- import type { AggregateRating } from './AggregateRating.ts'
3
- import type { Article } from './Article.ts'
4
- import type { Brand } from './Brand.ts'
5
- import type { ContactPoint } from './ContactPoint.ts'
6
- import type { CreativeWork } from './CreativeWork.ts'
7
- import type { DateTime } from './DateTime.ts'
8
- import type { GeoShape } from './GeoShape.ts'
9
- import type { Language } from './Language.ts'
10
- import type { Offer } from './Offer.ts'
11
- import type { Person } from './Person.ts'
12
- import type { Place } from './Place.ts'
13
- import type { PostalAddress } from './PostalAddress.ts'
14
- import type { Product } from './Product.ts'
15
- import type { QuantitativeValue } from './QuantitativeValue.ts'
16
- import type { Review } from './Review.ts'
17
- import type { Text } from './Text.ts'
18
- import type { Thing } from './Thing.ts'
19
- import type { VirtualLocation } from './VirtualLocation.ts'
20
-
21
- // TODO: Resolve Anys
22
- interface Organization extends Thing {
23
- actionableFeedbackPolicy?: CreativeWork | URL
24
- address?: PostalAddress | Text
25
- aggregateRating?: AggregateRating
26
- alumni?: Person
27
- areaServed?: AdministrativeArea | GeoShape | Place | Text
28
- award?: Text
29
- brand?: Brand
30
- contactPoint?: ContactPoint
31
- correctionsPolicy?: CreativeWork | URL
32
- department?: Organization
33
- dissolutionDate?: DateTime
34
- diversityPolicy?: CreativeWork | URL
35
- diversityStaffingReport?: Article | URL
36
- duns?: Text
37
- email?: Text
38
- employee?: Person | Person[]
39
- ethicsPolicy?: CreativeWork | URL
40
- event?: Event
41
- faxNumber?: Text
42
- founder?: Person | Text
43
- founders?: (Person | Text)[]
44
- foundingDate?: DateTime
45
- foundingLocation?: Place
46
- funder?: Organization | Person
47
- globalLocationNumber?: Text
48
- hasCredential?: unknown
49
- hasMerchantReturnPolicy?: unknown
50
- hasOfferCatalog?: unknown
51
- hasPOS?: Place
52
- interactionStatistic?: unknown
53
- isicV4?: Text
54
- knowsAbout?: Text | Thing | URL
55
- knowsLanguage?: Language | Text
56
- legalName?: Text
57
- location?: Place | PostalAddress | Text | VirtualLocation
58
- logo?: unknown
59
- makesOffer?: Offer
60
- member?: Organization | Person
61
- memberOf?: Organization | unknown
62
- naics?: Text
63
- nonprofitStatus?: unknown
64
- numberOfEmployees?: QuantitativeValue
65
- ownershipFundingInfo?: unknown | CreativeWork | Text | URL
66
- owns?: unknown | Product
67
- parentOrganization?: Organization
68
- publishingPrinciples?: CreativeWork | URL
69
- review?: Review
70
- seeks?: unknown
71
- slogan?: Text
72
- sponsor?: Organization | Person
73
- subOrganization?: Organization
74
- taxID?: Text
75
- telephone?: Text
76
- unnamedSourcesPolicy?: CreativeWork | URL
77
- vatID?: Text
78
- }
79
-
80
- export type { Organization }
@@ -1,73 +0,0 @@
1
- import type { Brand } from './Brand.ts'
2
- import type { ContactPoint } from './ContactPoint.ts'
3
- import type { Country } from './Country.ts'
4
- import type { CreativeWork } from './CreativeWork.ts'
5
- import type { Language } from './Language.ts'
6
- import type { Offer } from './Offer.ts'
7
- import type { Organization } from './Organization.ts'
8
- import type { Place } from './Place.ts'
9
- import type { PostalAddress } from './PostalAddress.ts'
10
- import type { Product } from './Product.ts'
11
- import type { Thing } from './Thing.ts'
12
-
13
- interface Person extends Thing {
14
- additionalName?: string
15
- address?: string | PostalAddress
16
- affiliation?: Organization | Organization[]
17
- alumniOf?: Organization | Organization[]
18
- award?: string | string[]
19
- birthDate?: string | Date
20
- birthPlace?: string | Place
21
- brand?: Brand | Organization
22
- callSign?: string
23
- children?: Person | Person[]
24
- colleague?: Person | string | (Person | string)[]
25
- contactPoint?: ContactPoint
26
- deathDate?: string | Date
27
- deathPlace?: string | Place
28
- duns?: string
29
- email?: string
30
- familyName?: string
31
- faxNumber?: string
32
- follows?: Person | Person[]
33
- funder?: Organization | Person | (Organization | Person)[]
34
- gender?: string
35
- givenName?: string
36
- globalLocationNumber?: string
37
- hasCredential?: unknown
38
- hasOccupation?: unknown
39
- hasOfferCatalog?: unknown
40
- hasPOS?: Place
41
- height?: unknown
42
- homeLocation?: ContactPoint | Place
43
- honorificPrefix?: string
44
- honorificSuffix?: string
45
- interactionStatistic?: unknown
46
- isicV4?: string
47
- jobTitle?: string
48
- knows?: Person | Person[]
49
- knowsAbout?: string | Thing | (string | Thing)[]
50
- knowsLanguage?: Language | string | (Language | string)[]
51
- makesOffer?: Offer | Offer[]
52
- memberOf?: Organization | unknown | (Organization | unknown)[]
53
- naics?: string
54
- nationality?: Country
55
- netWorth?: unknown
56
- owns?: Product | unknown | (Product | unknown)[]
57
- parent?: Person | Person[]
58
- performerIn?: Event | CreativeWork | string | (Event | CreativeWork | string)[]
59
- publishingPrinciples?: CreativeWork | string
60
- relatedTo?: Person | Person[]
61
- seeks?: unknown
62
- sibling?: Person | Person[]
63
- sponsor?: Organization | Person | (Organization | Person)[]
64
- spouse?: Person
65
- taxID?: string
66
- telephone?: string
67
- vatID?: string
68
- weight?: unknown
69
- workLocation?: ContactPoint | Place | (ContactPoint | Place)[]
70
- worksFor?: Organization | Organization[]
71
- }
72
-
73
- export type { Person }
@@ -1,5 +0,0 @@
1
- import type { CreativeWork } from './CreativeWork.ts'
2
-
3
- type Photograph = CreativeWork
4
-
5
- export type { Photograph }
@@ -1,44 +0,0 @@
1
- import type { AggregateRating } from './AggregateRating.ts'
2
- import type { GeospatialGeometry } from './GeospatialGeometry.ts'
3
- import type { ImageObject } from './ImageObject.ts'
4
- import type { Integer } from './Integer.ts'
5
- import type { Map } from './Map.ts'
6
- import type { Photograph } from './Photograph.ts'
7
- import type { PostalAddress } from './PostalAddress.ts'
8
- import type { PropertyValue } from './PropertyValue.ts'
9
- import type { Review } from './Review.ts'
10
- import type { Text } from './Text.ts'
11
- import type { Thing } from './Thing.ts'
12
- import type { URL } from './URL.ts'
13
-
14
- interface Place extends Thing, GeospatialGeometry {
15
- additionalProperty?: PropertyValue
16
- address?: PostalAddress | Text
17
- aggregateRating?: AggregateRating
18
- amenityFeature?: unknown
19
- branchCode?: Text
20
- containedInPlace?: Place
21
- containsPlace?: Place
22
- event?: Event
23
- geo?: unknown
24
- geoLocationNumber?: Text
25
- hasDriveThroughService?: boolean
26
- hasMap?: Map | URL
27
- isAccessibleForFree?: boolean
28
- isicV4?: Text
29
- latitude?: number | Text
30
- logo?: ImageObject | URL
31
- longitude?: number | Text
32
- maximumAttendeeCapacity?: Integer
33
- openingHoursSpecification?: unknown
34
- photo?: ImageObject | Photograph
35
- publicAccess?: boolean
36
- review?: Review
37
- slogan?: Text
38
- smokingAllowed?: boolean
39
- specialOpeningHoursSpecification?: unknown
40
- telephone?: Text
41
- tourBookingPage?: URL
42
- }
43
-
44
- export type { Place }
@@ -1,14 +0,0 @@
1
- import type { ContactPoint } from './ContactPoint.ts'
2
- import type { Country } from './Country.ts'
3
- import type { Text } from './Text.ts'
4
-
5
- interface PostalAddress extends ContactPoint {
6
- addressCountry?: Country | Text
7
- addressLocality?: Text
8
- addressRegion?: Text
9
- postOfficeBoxNumber?: Text
10
- postalCode?: Text
11
- streetAddress?: Text
12
- }
13
-
14
- export type { PostalAddress }
@@ -1,59 +0,0 @@
1
- import type { AggregateRating } from './AggregateRating.ts'
2
- import type { Brand } from './Brand.ts'
3
- import type { DateTime } from './DateTime.ts'
4
- import type { ImageObject } from './ImageObject.ts'
5
- import type { Offer } from './Offer.ts'
6
- import type { Organization } from './Organization.ts'
7
- import type { PropertyValue } from './PropertyValue.ts'
8
- import type { QuantitativeValue } from './QuantitativeValue.ts'
9
- import type { Review } from './Review.ts'
10
- import type { Service } from './Service.ts'
11
- import type { Text } from './Text.ts'
12
- import type { Thing } from './Thing.ts'
13
- import type { URL } from './URL.ts'
14
-
15
- // TODO: Resolve Anys
16
- interface Product extends Thing {
17
- additionalProperty?: PropertyValue
18
- aggregateRating?: AggregateRating
19
- audience?: unknown
20
- award?: Text
21
- brand?: Brand | Organization
22
- category?: unknown | Text | Thing | URL
23
- color?: Text
24
- depth?: unknown | QuantitativeValue
25
- gtin?: Text
26
- gtin12?: Text
27
- gtin13?: Text
28
- gtin14?: Text
29
- gtin8?: Text
30
- hasEnergyConsumptionDetails?: unknown
31
- hasMerchantReturnPolicy?: unknown
32
- height?: unknown | QuantitativeValue
33
- inAccessoryOrSparePartFor?: Product
34
- inProductGroupWithId?: Text
35
- isConsumableFor?: Product
36
- isRelatedTo?: Product | Service
37
- isSimilarTo?: Product | Service
38
- isVariantOf?: unknown
39
- itemCondition?: unknown
40
- logo?: ImageObject | URL
41
- manufacturer?: Organization
42
- material?: Product | Text | URL
43
- model?: unknown | Text
44
- mpn?: Text
45
- nsn?: Text
46
- offers?: Offer[]
47
- pattern?: unknown | Text
48
- productID?: Text
49
- productionDate?: DateTime
50
- purchaseDate?: DateTime
51
- review?: Review
52
- size?: unknown | QuantitativeValue | Text
53
- sku?: Text
54
- slogan?: Text
55
- weight?: QuantitativeValue
56
- width?: unknown | QuantitativeValue
57
- }
58
-
59
- export type { Product }
@@ -1,12 +0,0 @@
1
- import type { Class } from './Class.ts'
2
- import type { Enumeration } from './Enumeration.ts'
3
- import type { Intangible } from './Intangible.ts'
4
-
5
- interface Property extends Intangible {
6
- domainIncludes?: Class
7
- inverseOf?: Property
8
- rangeIncludes?: Class
9
- supersededBy?: Class | Enumeration | Property
10
- }
11
-
12
- export type { Property }
@@ -1,18 +0,0 @@
1
- import type { Enumeration } from './Enumeration.ts'
2
- import type { QualitativeValue } from './QualitativeValue.ts'
3
- import type { QuantitativeValue } from './QuantitativeValue.ts'
4
- import type { StructuredValue } from './StructuredValue.ts'
5
- import type { URL } from './URL.ts'
6
-
7
- interface PropertyValue extends StructuredValue {
8
- maxValue?: number
9
- measurementTechnique?: string | URL
10
- minValue?: number
11
- propertyId?: string | URL
12
- unitCode?: string | URL
13
- unitText?: string
14
- value?: boolean | number | StructuredValue | string
15
- valueReference?: Enumeration | PropertyValue | QualitativeValue | QuantitativeValue | StructuredValue
16
- }
17
-
18
- export type { PropertyValue }
@@ -1,17 +0,0 @@
1
- import type { Enumeration } from './Enumeration.ts'
2
- import type { PropertyValue } from './PropertyValue.ts'
3
- import type { QuantitativeValue } from './QuantitativeValue.ts'
4
- import type { StructuredValue } from './StructuredValue.ts'
5
-
6
- interface QualitativeValue extends Enumeration {
7
- additionalProperty?: PropertyValue
8
- equal?: QualitativeValue
9
- greater?: QualitativeValue
10
- greaterOrEqual?: QualitativeValue
11
- lesser?: QualitativeValue
12
- lesserOrEqual?: QualitativeValue
13
- nonEqual?: QualitativeValue
14
- valueReference?: Enumeration | PropertyValue | QualitativeValue | QuantitativeValue | StructuredValue
15
- }
16
-
17
- export type { QualitativeValue }
@@ -1,17 +0,0 @@
1
- import type { Enumeration } from './Enumeration.ts'
2
- import type { PropertyValue } from './PropertyValue.ts'
3
- import type { QualitativeValue } from './QualitativeValue.ts'
4
- import type { StructuredValue } from './StructuredValue.ts'
5
- import type { URL } from './URL.ts'
6
-
7
- interface QuantitativeValue extends Enumeration {
8
- additionalProperty?: PropertyValue
9
- maxValue?: number
10
- minValue?: number
11
- unitCode?: string | URL
12
- unitText?: string
13
- value?: boolean | number | StructuredValue | string
14
- valueReference?: Enumeration | PropertyValue | QualitativeValue | QuantitativeValue | StructuredValue
15
- }
16
-
17
- export type { QuantitativeValue }
@@ -1,12 +0,0 @@
1
- import type { Intangible } from './Intangible.ts'
2
- import type { Text } from './Text.ts'
3
-
4
- interface Rating extends Intangible {
5
- bestRating?: number
6
- ratingExplaination?: Text
7
- ratingValue?: number
8
- reviewAspect?: Text
9
- worstRating?: number
10
- }
11
-
12
- export type { Rating }
@@ -1,12 +0,0 @@
1
- import type { CreativeWork } from './CreativeWork.ts'
2
- import type { Rating } from './Rating.ts'
3
- import type { Thing } from './Thing.ts'
4
-
5
- interface Review extends CreativeWork {
6
- itemReviewed?: Thing
7
- reviewAspect?: Text
8
- reviewBody?: Text
9
- reviewRating?: Rating
10
- }
11
-
12
- export type { Review }
@@ -1,41 +0,0 @@
1
- import type { AdministrativeArea } from './AdministrativeArea.ts'
2
- import type { AggregateRating } from './AggregateRating.ts'
3
- import type { GeoShape } from './GeoShape.ts'
4
- import type { ImageObject } from './ImageObject.ts'
5
- import type { Intangible } from './Intangible.ts'
6
- import type { Offer } from './Offer.ts'
7
- import type { Organization } from './Organization.ts'
8
- import type { Person } from './Person.ts'
9
- import type { Place } from './Place.ts'
10
- import type { Product } from './Product.ts'
11
- import type { Review } from './Review.ts'
12
- import type { Text } from './Text.ts'
13
- import type { Thing } from './Thing.ts'
14
- import type { URL } from './URL.ts'
15
-
16
- // TODO: Resolve Anys
17
- interface Service extends Intangible {
18
- aggregateRating?: AggregateRating
19
- areaServed?: AdministrativeArea | GeoShape | Place | Text
20
- audience?: unknown
21
- availableChannel?: unknown
22
- award?: Text
23
- brand?: unknown | Organization
24
- broker?: Organization | Person
25
- category?: unknown | Text | Thing | URL
26
- hasOfferCatalog?: unknown
27
- hoursAvailable?: unknown
28
- isRelatedTo?: Product | Service
29
- isSimilarTo?: Product | Service
30
- logo?: ImageObject | URL
31
- offers?: Offer[]
32
- provider?: Organization | Person
33
- providerMobility?: Text
34
- review?: Review
35
- serviceOutput?: Thing
36
- serviceType?: unknown | Text
37
- slogan?: Text
38
- termsOfService?: Text | URL
39
- }
40
-
41
- export type { Service }
@@ -1,31 +0,0 @@
1
- import type { CreativeWork } from './CreativeWork.ts'
2
- import type { ImageObject } from './ImageObject.ts'
3
- import type { Text } from './Text.ts'
4
- import type { URL } from './URL.ts'
5
-
6
- // TODO: Resolve Anys
7
- interface SoftwareApplication extends CreativeWork {
8
- applicationCategory?: Text | URL
9
- applicationSubCategory?: Text | URL
10
- applicationSuite?: Text
11
- availableOnDevice?: Text
12
- countriesNotSupported?: Text
13
- countriesSupported?: Text
14
- downloadUrl?: URL
15
- featureList?: Text | URL
16
- installUrl?: URL
17
- memoryRequirements?: Text | URL
18
- operatingSystem?: Text
19
- permissions?: Text
20
- processorRequiremewnts?: Text
21
- releaseNotes?: Text | URL
22
- screenshot?: ImageObject | URL
23
- softwareAddOn?: SoftwareApplication
24
- softwareHelp?: CreativeWork
25
- softwareRequirements?: Text | URL
26
- softwareVersion?: Text
27
- storageRequirements?: Text | URL
28
- supportingData?: unknown
29
- }
30
-
31
- export type { SoftwareApplication }
@@ -1,5 +0,0 @@
1
- import type { Intangible } from './Intangible.ts'
2
-
3
- type StructuredValue = Intangible
4
-
5
- export type { StructuredValue }
@@ -1,3 +0,0 @@
1
- type Text = string | string[]
2
-
3
- export type { Text }
@@ -1,24 +0,0 @@
1
- import type { Action } from './Action.ts'
2
- import type { Base } from './Base.ts'
3
- import type { CreativeWork } from './CreativeWork.ts'
4
- import type { ImageObject } from './ImageObject.ts'
5
- import type { PropertyValue } from './PropertyValue.ts'
6
- import type { Text } from './Text.ts'
7
- import type { URL } from './URL.ts'
8
-
9
- interface Thing extends Base {
10
- additionalType?: URL
11
- alternateName?: Text
12
- description?: Text
13
- disambiguatingDescription?: Text
14
- identifier?: PropertyValue | Text | URL
15
- image?: ImageObject | URL
16
- mainIdentityOfPage?: CreativeWork | URL
17
- name?: Text
18
- potentialAction?: Action
19
- sameAs?: URL
20
- subjectOf?: CreativeWork | Event
21
- url?: URL
22
- }
23
-
24
- export type { Thing }
@@ -1,3 +0,0 @@
1
- type Time = string
2
-
3
- export type { Time }
package/src/jsonld/URL.ts DELETED
@@ -1,3 +0,0 @@
1
- type URL = string | string[]
2
-
3
- export type { URL }
@@ -1,5 +0,0 @@
1
- import type { Thing } from './Thing.ts'
2
-
3
- type VirtualLocation = Thing
4
-
5
- export type { VirtualLocation }
@@ -1,47 +0,0 @@
1
- export * from './Action.ts'
2
- export * from './ActionStatusType.ts'
3
- export * from './AdministrativeArea.ts'
4
- export * from './AggregateRating.ts'
5
- export * from './Article.ts'
6
- export * from './Base.ts'
7
- export * from './Brand.ts'
8
- export * from './Class.ts'
9
- export * from './ContactPoint.ts'
10
- export * from './ContactPointOption.ts'
11
- export * from './Country.ts'
12
- export * from './CreativeWork.ts'
13
- export * from './DateTime.ts'
14
- export * from './EntryPoint.ts'
15
- export * from './Enumeration.ts'
16
- export * from './GeoShape.ts'
17
- export * from './GeospatialGeometry.ts'
18
- export * from './ImageObject.ts'
19
- export * from './Intangible.ts'
20
- export * from './Integer.ts'
21
- export * from './ItemAvailability.ts'
22
- export * from './Language.ts'
23
- export * from './Map.ts'
24
- export * from './MapCategoryType.ts'
25
- export * from './MediaObject.ts'
26
- export * from './MobileApplication.ts'
27
- export * from './Offer.ts'
28
- export * from './Organization.ts'
29
- export * from './Person.ts'
30
- export * from './Photograph.ts'
31
- export * from './Place.ts'
32
- export * from './PostalAddress.ts'
33
- export * from './Product.ts'
34
- export * from './Property.ts'
35
- export * from './PropertyValue.ts'
36
- export * from './QualitativeValue.ts'
37
- export * from './QuantitativeValue.ts'
38
- export * from './Rating.ts'
39
- export * from './Review.ts'
40
- export * from './Service.ts'
41
- export * from './SoftwareApplication.ts'
42
- export * from './StructuredValue.ts'
43
- export * from './Text.ts'
44
- export * from './Thing.ts'
45
- export * from './Time.ts'
46
- export * from './URL.ts'
47
- export * from './VirtualLocation.ts'