@xylabs/react-rich-result 7.1.17 → 7.2.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.
Files changed (54) hide show
  1. package/README.md +6 -46
  2. package/dist/browser/index.mjs +1 -2
  3. package/dist/browser/index.mjs.map +1 -1
  4. package/package.json +30 -19
  5. package/src/RichResult.tsx +0 -18
  6. package/src/index.ts +0 -2
  7. package/src/jsonld/Action.ts +0 -26
  8. package/src/jsonld/ActionStatusType.ts +0 -11
  9. package/src/jsonld/AdministrativeArea.ts +0 -5
  10. package/src/jsonld/AggregateRating.ts +0 -10
  11. package/src/jsonld/Article.ts +0 -16
  12. package/src/jsonld/Base.ts +0 -5
  13. package/src/jsonld/Brand.ts +0 -11
  14. package/src/jsonld/Class.ts +0 -9
  15. package/src/jsonld/ContactPoint.ts +0 -21
  16. package/src/jsonld/ContactPointOption.ts +0 -9
  17. package/src/jsonld/Country.ts +0 -5
  18. package/src/jsonld/CreativeWork.ts +0 -125
  19. package/src/jsonld/DateTime.ts +0 -3
  20. package/src/jsonld/EntryPoint.ts +0 -15
  21. package/src/jsonld/Enumeration.ts +0 -9
  22. package/src/jsonld/GeoShape.ts +0 -17
  23. package/src/jsonld/GeospatialGeometry.ts +0 -17
  24. package/src/jsonld/ImageObject.ts +0 -11
  25. package/src/jsonld/Intangible.ts +0 -5
  26. package/src/jsonld/Integer.ts +0 -3
  27. package/src/jsonld/ItemAvailability.ts +0 -25
  28. package/src/jsonld/Language.ts +0 -5
  29. package/src/jsonld/Map.ts +0 -8
  30. package/src/jsonld/MapCategoryType.ts +0 -11
  31. package/src/jsonld/MediaObject.ts +0 -12
  32. package/src/jsonld/MobileApplication.ts +0 -8
  33. package/src/jsonld/Offer.ts +0 -66
  34. package/src/jsonld/Organization.ts +0 -80
  35. package/src/jsonld/Person.ts +0 -73
  36. package/src/jsonld/Photograph.ts +0 -5
  37. package/src/jsonld/Place.ts +0 -44
  38. package/src/jsonld/PostalAddress.ts +0 -14
  39. package/src/jsonld/Product.ts +0 -59
  40. package/src/jsonld/Property.ts +0 -12
  41. package/src/jsonld/PropertyValue.ts +0 -18
  42. package/src/jsonld/QualitativeValue.ts +0 -17
  43. package/src/jsonld/QuantitativeValue.ts +0 -17
  44. package/src/jsonld/Rating.ts +0 -12
  45. package/src/jsonld/Review.ts +0 -12
  46. package/src/jsonld/Service.ts +0 -41
  47. package/src/jsonld/SoftwareApplication.ts +0 -31
  48. package/src/jsonld/StructuredValue.ts +0 -5
  49. package/src/jsonld/Text.ts +0 -3
  50. package/src/jsonld/Thing.ts +0 -24
  51. package/src/jsonld/Time.ts +0 -3
  52. package/src/jsonld/URL.ts +0 -3
  53. package/src/jsonld/VirtualLocation.ts +0 -5
  54. 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
@@ -50,8 +50,7 @@ var MapCategoryType = Enum4({
50
50
  import { jsx } from "react/jsx-runtime";
51
51
  var RichResult = (props) => {
52
52
  const { thing } = props;
53
- const thingWithContext = thing;
54
- thingWithContext["@context"] = "https://schema.org";
53
+ const thingWithContext = { ...thing, "@context": "https://schema.org" };
55
54
  return /* @__PURE__ */ jsx("script", { type: "application/ld+json", children: JSON.stringify(thingWithContext) });
56
55
  };
57
56
  export {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/jsonld/ActionStatusType.ts","../../src/jsonld/ContactPointOption.ts","../../src/jsonld/ItemAvailability.ts","../../src/jsonld/MapCategoryType.ts","../../src/RichResult.tsx"],"sourcesContent":["import type { EnumValue } from '@xylabs/sdk-js'\nimport { Enum } from '@xylabs/sdk-js'\n\nexport const ActionStatusType = Enum({\n ActiveActionStatus: 'ActiveActionStatus',\n CompletedActionStatus: 'CompletedActionStatus',\n FailedActionStatus: 'FailedActionStatus',\n PotentialActionStatus: 'PotentialActionStatus',\n})\n\nexport type ActionStatusType = EnumValue<typeof ActionStatusType>\n","import type { EnumValue } from '@xylabs/sdk-js'\nimport { Enum } from '@xylabs/sdk-js'\n\nexport const ContactPointOption = Enum({\n HearingImpairedSupported: 'HearingImpairedSupported',\n TollFree: 'TollFree',\n})\n\nexport type ContactPointOption = EnumValue<typeof ContactPointOption>\n","import type { EnumValue } from '@xylabs/sdk-js'\nimport { Enum } from '@xylabs/sdk-js'\n\nexport const ItemAvailability = Enum({\n /** Indicates that the item has been discontinued. */\n Discontinued: 'https://schema.org/Discontinued',\n /** Indicates that the item is in stock. */\n InStock: 'https://schema.org/InStock',\n /** Indicates that the item is available only at physical locations. */\n InStoreOnly: 'https://schema.org/InStoreOnly',\n /** Indicates that the item has limited availability. */\n LimitedAvailability: 'https://schema.org/LimitedAvailability',\n /** Indicates that the item is available only online. */\n OnlineOnly: 'https://schema.org/OnlineOnly',\n /** Indicates that the item is out of stock. */\n OutOfStock: 'https://schema.org/OutOfStock',\n /** Indicates that the item is available for pre-order. */\n PreOrder: 'https://schema.org/PreOrder',\n /** Indicates that the item is available for ordering and delivery before general availability. */\n PreSale: 'https://schema.org/PreSale',\n /** Indicates that the item has sold out. */\n SoldOut: 'https://schema.org/SoldOut',\n})\n\nexport type ItemAvailability = EnumValue<typeof ItemAvailability>\n","import type { EnumValue } from '@xylabs/sdk-js'\nimport { Enum } from '@xylabs/sdk-js'\n\nexport const MapCategoryType = Enum({\n ParkingMap: 'ParkingMap',\n SeatingMap: 'SeatingMap',\n TransitMap: 'TransitMap',\n VenueMap: 'VenueMap',\n})\n\nexport type MapCategoryType = EnumValue<typeof MapCategoryType>\n","import React from 'react'\n\nimport type { Base, Thing } from './jsonld/index.ts'\n\ntype WithContext<T extends Base> = T & {\n '@context': 'https://schema.org'\n}\n\nexport interface RichResultProps {\n thing: Thing\n}\n\nexport const RichResult: React.FC<RichResultProps> = (props) => {\n const { thing } = props\n const thingWithContext = thing as WithContext<Thing>\n thingWithContext['@context'] = 'https://schema.org'\n return <script type=\"application/ld+json\">{JSON.stringify(thingWithContext)}</script>\n}\n"],"mappings":";AACA,SAAS,YAAY;AAEd,IAAM,mBAAmB,KAAK;AAAA,EACnC,oBAAoB;AAAA,EACpB,uBAAuB;AAAA,EACvB,oBAAoB;AAAA,EACpB,uBAAuB;AACzB,CAAC;;;ACPD,SAAS,QAAAA,aAAY;AAEd,IAAM,qBAAqBA,MAAK;AAAA,EACrC,0BAA0B;AAAA,EAC1B,UAAU;AACZ,CAAC;;;ACLD,SAAS,QAAAC,aAAY;AAEd,IAAM,mBAAmBA,MAAK;AAAA;AAAA,EAEnC,cAAc;AAAA;AAAA,EAEd,SAAS;AAAA;AAAA,EAET,aAAa;AAAA;AAAA,EAEb,qBAAqB;AAAA;AAAA,EAErB,YAAY;AAAA;AAAA,EAEZ,YAAY;AAAA;AAAA,EAEZ,UAAU;AAAA;AAAA,EAEV,SAAS;AAAA;AAAA,EAET,SAAS;AACX,CAAC;;;ACrBD,SAAS,QAAAC,aAAY;AAEd,IAAM,kBAAkBA,MAAK;AAAA,EAClC,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,UAAU;AACZ,CAAC;;;ACQQ;AAJF,IAAM,aAAwC,CAAC,UAAU;AAC9D,QAAM,EAAE,MAAM,IAAI;AAClB,QAAM,mBAAmB;AACzB,mBAAiB,UAAU,IAAI;AAC/B,SAAO,oBAAC,YAAO,MAAK,uBAAuB,eAAK,UAAU,gBAAgB,GAAE;AAC9E;","names":["Enum","Enum","Enum"]}
1
+ {"version":3,"sources":["../../src/jsonld/ActionStatusType.ts","../../src/jsonld/ContactPointOption.ts","../../src/jsonld/ItemAvailability.ts","../../src/jsonld/MapCategoryType.ts","../../src/RichResult.tsx"],"sourcesContent":["import type { EnumValue } from '@xylabs/sdk-js'\nimport { Enum } from '@xylabs/sdk-js'\n\nexport const ActionStatusType = Enum({\n ActiveActionStatus: 'ActiveActionStatus',\n CompletedActionStatus: 'CompletedActionStatus',\n FailedActionStatus: 'FailedActionStatus',\n PotentialActionStatus: 'PotentialActionStatus',\n})\n\nexport type ActionStatusType = EnumValue<typeof ActionStatusType>\n","import type { EnumValue } from '@xylabs/sdk-js'\nimport { Enum } from '@xylabs/sdk-js'\n\nexport const ContactPointOption = Enum({\n HearingImpairedSupported: 'HearingImpairedSupported',\n TollFree: 'TollFree',\n})\n\nexport type ContactPointOption = EnumValue<typeof ContactPointOption>\n","import type { EnumValue } from '@xylabs/sdk-js'\nimport { Enum } from '@xylabs/sdk-js'\n\nexport const ItemAvailability = Enum({\n /** Indicates that the item has been discontinued. */\n Discontinued: 'https://schema.org/Discontinued',\n /** Indicates that the item is in stock. */\n InStock: 'https://schema.org/InStock',\n /** Indicates that the item is available only at physical locations. */\n InStoreOnly: 'https://schema.org/InStoreOnly',\n /** Indicates that the item has limited availability. */\n LimitedAvailability: 'https://schema.org/LimitedAvailability',\n /** Indicates that the item is available only online. */\n OnlineOnly: 'https://schema.org/OnlineOnly',\n /** Indicates that the item is out of stock. */\n OutOfStock: 'https://schema.org/OutOfStock',\n /** Indicates that the item is available for pre-order. */\n PreOrder: 'https://schema.org/PreOrder',\n /** Indicates that the item is available for ordering and delivery before general availability. */\n PreSale: 'https://schema.org/PreSale',\n /** Indicates that the item has sold out. */\n SoldOut: 'https://schema.org/SoldOut',\n})\n\nexport type ItemAvailability = EnumValue<typeof ItemAvailability>\n","import type { EnumValue } from '@xylabs/sdk-js'\nimport { Enum } from '@xylabs/sdk-js'\n\nexport const MapCategoryType = Enum({\n ParkingMap: 'ParkingMap',\n SeatingMap: 'SeatingMap',\n TransitMap: 'TransitMap',\n VenueMap: 'VenueMap',\n})\n\nexport type MapCategoryType = EnumValue<typeof MapCategoryType>\n","import React from 'react'\n\nimport type { Base, Thing } from './jsonld/index.ts'\n\ntype WithContext<T extends Base> = T & {\n '@context': 'https://schema.org'\n}\n\nexport interface RichResultProps {\n thing: Thing\n}\n\nexport const RichResult: React.FC<RichResultProps> = (props) => {\n const { thing } = props\n const thingWithContext = { ...thing, '@context': 'https://schema.org' } as WithContext<Thing>\n\n return <script type=\"application/ld+json\">{JSON.stringify(thingWithContext)}</script>\n}\n"],"mappings":";AACA,SAAS,YAAY;AAEd,IAAM,mBAAmB,KAAK;AAAA,EACnC,oBAAoB;AAAA,EACpB,uBAAuB;AAAA,EACvB,oBAAoB;AAAA,EACpB,uBAAuB;AACzB,CAAC;;;ACPD,SAAS,QAAAA,aAAY;AAEd,IAAM,qBAAqBA,MAAK;AAAA,EACrC,0BAA0B;AAAA,EAC1B,UAAU;AACZ,CAAC;;;ACLD,SAAS,QAAAC,aAAY;AAEd,IAAM,mBAAmBA,MAAK;AAAA;AAAA,EAEnC,cAAc;AAAA;AAAA,EAEd,SAAS;AAAA;AAAA,EAET,aAAa;AAAA;AAAA,EAEb,qBAAqB;AAAA;AAAA,EAErB,YAAY;AAAA;AAAA,EAEZ,YAAY;AAAA;AAAA,EAEZ,UAAU;AAAA;AAAA,EAEV,SAAS;AAAA;AAAA,EAET,SAAS;AACX,CAAC;;;ACrBD,SAAS,QAAAC,aAAY;AAEd,IAAM,kBAAkBA,MAAK;AAAA,EAClC,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,UAAU;AACZ,CAAC;;;ACQQ;AAJF,IAAM,aAAwC,CAAC,UAAU;AAC9D,QAAM,EAAE,MAAM,IAAI;AAClB,QAAM,mBAAmB,EAAE,GAAG,OAAO,YAAY,qBAAqB;AAEtE,SAAO,oBAAC,YAAO,MAAK,uBAAuB,eAAK,UAAU,gBAAgB,GAAE;AAC9E;","names":["Enum","Enum","Enum"]}
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.2.0",
4
4
  "description": "Common React library for all XY Labs projects that use React",
5
5
  "keywords": [
6
6
  "utility",
@@ -31,33 +31,44 @@
31
31
  },
32
32
  "./package.json": "./package.json"
33
33
  },
34
- "module": "./dist/browser/index.mjs",
35
- "types": "dist/browser/index.d.ts",
36
34
  "files": [
37
35
  "dist",
38
- "src"
36
+ "README.md"
39
37
  ],
40
- "workspaces": [
41
- "packages/*"
42
- ],
43
- "dependencies": {
44
- "@xylabs/sdk-js": "~5.0.80"
45
- },
46
38
  "devDependencies": {
39
+ "@opentelemetry/api": "^1.9.1",
40
+ "@opentelemetry/sdk-trace-base": ">=2.7.1 <3",
47
41
  "@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",
42
+ "@xylabs/sdk-js": "~5.1.0",
43
+ "@xylabs/toolchain": "~7.12.3",
44
+ "@xylabs/tsconfig": "~7.12.3",
45
+ "@xylabs/tsconfig-dom": "~7.12.3",
46
+ "@xylabs/tsconfig-react": "~7.12.3",
47
+ "async-mutex": ">=0.5.0 <0.6",
48
+ "bn.js": ">=5.2.3 <5.3",
49
+ "buffer": ">=6.0.3 <6.1",
50
+ "chalk": ">=5.6.2 <5.7",
51
+ "eslint": ">=10.2.1 <11",
52
+ "ethers": ">=6.16.0 <7",
53
+ "pako": "~2.1.0",
54
+ "react": "~19.2.5",
53
55
  "typescript": "^5.9.3",
54
- "zod": "~4.3.6"
56
+ "zod": "^4.4.3"
55
57
  },
56
58
  "peerDependencies": {
57
- "react": "^19",
58
- "zod": "^4"
59
+ "@opentelemetry/api": ">=1.9.1 <2",
60
+ "@opentelemetry/sdk-trace-base": ">=2.7.1 <3",
61
+ "@xylabs/sdk-js": ">=5.1.0 <5.2",
62
+ "async-mutex": ">=0.5.0 <1",
63
+ "bn.js": ">=5.2.3 <6",
64
+ "buffer": ">=6.0.3 <7",
65
+ "chalk": ">=5.6.2 <6",
66
+ "ethers": ">=6.16.0 <7",
67
+ "pako": ">=2.1.0 <2.2",
68
+ "react": ">=19.2.5 <19.3",
69
+ "zod": ">=4.4.3 <5"
59
70
  },
60
71
  "publishConfig": {
61
72
  "access": "public"
62
73
  }
63
- }
74
+ }
@@ -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 }