@xylabs/react-rich-result 4.0.2 → 4.0.3
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/browser/index.mjs.map +1 -1
- package/package.json +5 -5
- package/src/RichResult.tsx +1 -1
- package/src/jsonld/Action.ts +10 -10
- package/src/jsonld/AdministrativeArea.ts +1 -1
- package/src/jsonld/AggregateRating.ts +2 -2
- package/src/jsonld/Article.ts +3 -3
- package/src/jsonld/Brand.ts +4 -4
- package/src/jsonld/Class.ts +3 -3
- package/src/jsonld/ContactPoint.ts +8 -8
- package/src/jsonld/Country.ts +1 -1
- package/src/jsonld/CreativeWork.ts +16 -16
- package/src/jsonld/EntryPoint.ts +4 -4
- package/src/jsonld/Enumeration.ts +3 -3
- package/src/jsonld/GeoShape.ts +4 -4
- package/src/jsonld/GeospatialGeometry.ts +2 -2
- package/src/jsonld/ImageObject.ts +2 -2
- package/src/jsonld/Intangible.ts +1 -1
- package/src/jsonld/Language.ts +1 -1
- package/src/jsonld/Map.ts +2 -2
- package/src/jsonld/MediaObject.ts +3 -3
- package/src/jsonld/MobileApplication.ts +2 -2
- package/src/jsonld/Offer.ts +18 -18
- package/src/jsonld/Organization.ts +19 -19
- package/src/jsonld/Person.ts +11 -11
- package/src/jsonld/Photograph.ts +1 -1
- package/src/jsonld/Place.ts +12 -12
- package/src/jsonld/PostalAddress.ts +3 -3
- package/src/jsonld/Product.ts +13 -13
- package/src/jsonld/Property.ts +3 -3
- package/src/jsonld/PropertyValue.ts +5 -5
- package/src/jsonld/QualitativeValue.ts +4 -4
- package/src/jsonld/QuantitativeValue.ts +5 -5
- package/src/jsonld/Rating.ts +2 -2
- package/src/jsonld/Review.ts +3 -3
- package/src/jsonld/Service.ts +14 -14
- package/src/jsonld/SoftwareApplication.ts +4 -4
- package/src/jsonld/StructuredValue.ts +1 -1
- package/src/jsonld/Thing.ts +7 -7
- package/src/jsonld/VirtualLocation.ts +1 -1
- package/xy.config.ts +1 -1
|
@@ -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":["enum ActionStatusType {\n ActiveActionStatus = 'ActiveActionStatus',\n CompletedActionStatus = 'CompletedActionStatus',\n FailedActionStatus = 'FailedActionStatus',\n PotentialActionStatus = 'PotentialActionStatus',\n}\n\nexport { ActionStatusType }\n","enum ContactPointOption {\n HearingImpairedSupported = 'HearingImpairedSupported',\n TollFree = 'TollFree',\n}\n\nexport { ContactPointOption }\n","enum ItemAvailability {\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 { ItemAvailability }\n","enum MapCategoryType {\n ParkingMap = 'ParkingMap',\n SeatingMap = 'SeatingMap',\n TransitMap = 'TransitMap',\n VenueMap = 'VenueMap',\n}\n\nexport { MapCategoryType }\n","import React from 'react'\n\nimport { 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":";;;;;UAAKA,mBAAAA;;;;;GAAAA,qBAAAA,mBAAAA,CAAAA,EAAAA;;;;UCAAC,qBAAAA;;;GAAAA,uBAAAA,qBAAAA,CAAAA,EAAAA;;;;UCAAC,mBAAAA;AACgD,EAAAA,kBAAA,cAAA,IAAA;AAEV,EAAAA,kBAAA,SAAA,IAAA;AAE4B,EAAAA,kBAAA,aAAA,IAAA;AAEf,EAAAA,kBAAA,qBAAA,IAAA;AAEA,EAAAA,kBAAA,YAAA,IAAA;AAET,EAAAA,kBAAA,YAAA,IAAA;AAEW,EAAAA,kBAAA,UAAA,IAAA;AAEwC,EAAAA,kBAAA,SAAA,IAAA;AAEtD,EAAAA,kBAAA,SAAA,IAAA;GAjBvCA,qBAAAA,mBAAAA,CAAAA,EAAAA;;;;UCAAC,kBAAAA;;;;;GAAAA,oBAAAA,kBAAAA,CAAAA,EAAAA;;;ACAL,OAAOC,WAAW;AAYX,IAAMC,aAAwC,wBAACC,UAAAA;AACpD,QAAM,EAAEC,MAAK,IAAKD;AAClB,QAAME,mBAAmBD;AACzBC,mBAAiB,UAAA,IAAc;AAC/B,SAAO,sBAAA,cAACC,UAAAA;IAAOC,MAAK;KAAuBC,KAAKC,UAAUJ,gBAAAA,CAAAA;AAC5D,GALqD;","names":["ActionStatusType","ContactPointOption","ItemAvailability","MapCategoryType","React","RichResult","props","thing","thingWithContext","script","type","JSON","stringify"]}
|
|
1
|
+
{"version":3,"sources":["../../src/jsonld/ActionStatusType.ts","../../src/jsonld/ContactPointOption.ts","../../src/jsonld/ItemAvailability.ts","../../src/jsonld/MapCategoryType.ts","../../src/RichResult.tsx"],"sourcesContent":["enum ActionStatusType {\n ActiveActionStatus = 'ActiveActionStatus',\n CompletedActionStatus = 'CompletedActionStatus',\n FailedActionStatus = 'FailedActionStatus',\n PotentialActionStatus = 'PotentialActionStatus',\n}\n\nexport { ActionStatusType }\n","enum ContactPointOption {\n HearingImpairedSupported = 'HearingImpairedSupported',\n TollFree = 'TollFree',\n}\n\nexport { ContactPointOption }\n","enum ItemAvailability {\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 { ItemAvailability }\n","enum MapCategoryType {\n ParkingMap = 'ParkingMap',\n SeatingMap = 'SeatingMap',\n TransitMap = 'TransitMap',\n VenueMap = 'VenueMap',\n}\n\nexport { 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":";;;;;UAAKA,mBAAAA;;;;;GAAAA,qBAAAA,mBAAAA,CAAAA,EAAAA;;;;UCAAC,qBAAAA;;;GAAAA,uBAAAA,qBAAAA,CAAAA,EAAAA;;;;UCAAC,mBAAAA;AACgD,EAAAA,kBAAA,cAAA,IAAA;AAEV,EAAAA,kBAAA,SAAA,IAAA;AAE4B,EAAAA,kBAAA,aAAA,IAAA;AAEf,EAAAA,kBAAA,qBAAA,IAAA;AAEA,EAAAA,kBAAA,YAAA,IAAA;AAET,EAAAA,kBAAA,YAAA,IAAA;AAEW,EAAAA,kBAAA,UAAA,IAAA;AAEwC,EAAAA,kBAAA,SAAA,IAAA;AAEtD,EAAAA,kBAAA,SAAA,IAAA;GAjBvCA,qBAAAA,mBAAAA,CAAAA,EAAAA;;;;UCAAC,kBAAAA;;;;;GAAAA,oBAAAA,kBAAAA,CAAAA,EAAAA;;;ACAL,OAAOC,WAAW;AAYX,IAAMC,aAAwC,wBAACC,UAAAA;AACpD,QAAM,EAAEC,MAAK,IAAKD;AAClB,QAAME,mBAAmBD;AACzBC,mBAAiB,UAAA,IAAc;AAC/B,SAAO,sBAAA,cAACC,UAAAA;IAAOC,MAAK;KAAuBC,KAAKC,UAAUJ,gBAAAA,CAAAA;AAC5D,GALqD;","names":["ActionStatusType","ContactPointOption","ItemAvailability","MapCategoryType","React","RichResult","props","thing","thingWithContext","script","type","JSON","stringify"]}
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
},
|
|
8
8
|
"bugs": {
|
|
9
9
|
"email": "support@xylabs.com",
|
|
10
|
-
"url": "https://github.com/xylabs/sdk-react/issues"
|
|
10
|
+
"url": "git+https://github.com/xylabs/sdk-react/issues"
|
|
11
11
|
},
|
|
12
12
|
"workspaces": [
|
|
13
13
|
"packages/*"
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"description": "Common React library for all XY Labs projects that use React",
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@types/react": "^18.3.3",
|
|
18
|
-
"@xylabs/ts-scripts-yarn3": "^4.0.0-rc.
|
|
19
|
-
"@xylabs/tsconfig-react": "^4.0.0-rc.
|
|
18
|
+
"@xylabs/ts-scripts-yarn3": "^4.0.0-rc.20",
|
|
19
|
+
"@xylabs/tsconfig-react": "^4.0.0-rc.20",
|
|
20
20
|
"react": "^18.3.1",
|
|
21
21
|
"typescript": "^5.5.4"
|
|
22
22
|
},
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
},
|
|
45
45
|
"repository": {
|
|
46
46
|
"type": "git",
|
|
47
|
-
"url": "https://github.com/xylabs/sdk-react.git"
|
|
47
|
+
"url": "git+https://github.com/xylabs/sdk-react.git"
|
|
48
48
|
},
|
|
49
49
|
"sideEffects": false,
|
|
50
|
-
"version": "4.0.
|
|
50
|
+
"version": "4.0.3",
|
|
51
51
|
"type": "module"
|
|
52
52
|
}
|
package/src/RichResult.tsx
CHANGED
package/src/jsonld/Action.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ActionStatusType } from './ActionStatusType.ts'
|
|
2
|
-
import { DateTime } from './DateTime.ts'
|
|
3
|
-
import { EntryPoint } from './EntryPoint.ts'
|
|
4
|
-
import { Organization } from './Organization.ts'
|
|
5
|
-
import { Person } from './Person.ts'
|
|
6
|
-
import { Place } from './Place.ts'
|
|
7
|
-
import { PostalAddress } from './PostalAddress.ts'
|
|
8
|
-
import { Thing } from './Thing.ts'
|
|
9
|
-
import { Time } from './Time.ts'
|
|
10
|
-
import { VirtualLocation } from './VirtualLocation.ts'
|
|
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
11
|
|
|
12
12
|
interface Action extends Thing {
|
|
13
13
|
actionStatus?: ActionStatusType
|
package/src/jsonld/Article.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CreativeWork } from './CreativeWork.ts'
|
|
2
|
-
import { Integer } from './Integer.ts'
|
|
3
|
-
import { Text } from './Text.ts'
|
|
1
|
+
import type { CreativeWork } from './CreativeWork.ts'
|
|
2
|
+
import type { Integer } from './Integer.ts'
|
|
3
|
+
import type { Text } from './Text.ts'
|
|
4
4
|
|
|
5
5
|
interface Article extends CreativeWork {
|
|
6
6
|
articleBody?: Text
|
package/src/jsonld/Brand.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { AggregateRating } from './AggregateRating.ts'
|
|
2
|
-
import { ImageObject } from './ImageObject.ts'
|
|
3
|
-
import { Intangible } from './Intangible.ts'
|
|
4
|
-
import { Review } from './Review.ts'
|
|
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
5
|
|
|
6
6
|
export interface Brand extends Intangible {
|
|
7
7
|
aggregateRating?: AggregateRating
|
package/src/jsonld/Class.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Enumeration } from './Enumeration.ts'
|
|
2
|
-
import { Intangible } from './Intangible.ts'
|
|
3
|
-
import { Property } from './Property.ts'
|
|
1
|
+
import type { Enumeration } from './Enumeration.ts'
|
|
2
|
+
import type { Intangible } from './Intangible.ts'
|
|
3
|
+
import type { Property } from './Property.ts'
|
|
4
4
|
|
|
5
5
|
interface Class extends Intangible {
|
|
6
6
|
supersededBy?: Class | Enumeration | Property
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { AdministrativeArea } from './AdministrativeArea.ts'
|
|
2
|
-
import { ContactPointOption } from './ContactPointOption.ts'
|
|
3
|
-
import { GeoShape } from './GeoShape.ts'
|
|
4
|
-
import { Language } from './Language.ts'
|
|
5
|
-
import { Place } from './Place.ts'
|
|
6
|
-
import { Product } from './Product.ts'
|
|
7
|
-
import { Text } from './Text.ts'
|
|
8
|
-
import { Thing } from './Thing.ts'
|
|
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
9
|
|
|
10
10
|
interface ContactPoint extends Thing {
|
|
11
11
|
areaServed?: AdministrativeArea | GeoShape | Place | Text
|
package/src/jsonld/Country.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { AggregateRating } from './AggregateRating.ts'
|
|
2
|
-
import { DateTime } from './DateTime.ts'
|
|
3
|
-
import { Integer } from './Integer.ts'
|
|
4
|
-
import { Language } from './Language.ts'
|
|
5
|
-
import { MediaObject } from './MediaObject.ts'
|
|
6
|
-
import { Offer } from './Offer.ts'
|
|
7
|
-
import { Organization } from './Organization.ts'
|
|
8
|
-
import { Person } from './Person.ts'
|
|
9
|
-
import { Place } from './Place.ts'
|
|
10
|
-
import { Product } from './Product.ts'
|
|
11
|
-
import { QuantitativeValue } from './QuantitativeValue.ts'
|
|
12
|
-
import { Rating } from './Rating.ts'
|
|
13
|
-
import { Review } from './Review.ts'
|
|
14
|
-
import { Text } from './Text.ts'
|
|
15
|
-
import { Thing } from './Thing.ts'
|
|
16
|
-
import { URL } from './URL.ts'
|
|
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
17
|
|
|
18
18
|
// TODO: Resolve Anys
|
|
19
19
|
interface CreativeWork extends Thing {
|
package/src/jsonld/EntryPoint.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Intangible } from './Intangible.ts'
|
|
2
|
-
import { SoftwareApplication } from './SoftwareApplication.ts'
|
|
3
|
-
import { Text } from './Text.ts'
|
|
4
|
-
import { URL } from './URL.ts'
|
|
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
5
|
|
|
6
6
|
interface EntryPoint extends Intangible {
|
|
7
7
|
actionApplication?: SoftwareApplication
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Class } from './Class.ts'
|
|
2
|
-
import { Intangible } from './Intangible.ts'
|
|
3
|
-
import { Property } from './Property.ts'
|
|
1
|
+
import type { Class } from './Class.ts'
|
|
2
|
+
import type { Intangible } from './Intangible.ts'
|
|
3
|
+
import type { Property } from './Property.ts'
|
|
4
4
|
|
|
5
5
|
interface Enumeration extends Intangible {
|
|
6
6
|
supersededBy?: Class | Enumeration | Property
|
package/src/jsonld/GeoShape.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Country } from './Country.ts'
|
|
2
|
-
import { PostalAddress } from './PostalAddress.ts'
|
|
3
|
-
import { Text } from './Text.ts'
|
|
4
|
-
import { Thing } from './Thing.ts'
|
|
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
5
|
|
|
6
6
|
interface GeoShape extends Thing {
|
|
7
7
|
address?: PostalAddress | Text
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Intangible } from './Intangible.ts'
|
|
2
|
-
import { Place } from './Place.ts'
|
|
1
|
+
import type { Intangible } from './Intangible.ts'
|
|
2
|
+
import type { Place } from './Place.ts'
|
|
3
3
|
|
|
4
4
|
interface GeospatialGeometry extends Intangible {
|
|
5
5
|
geoContains?: Place | GeospatialGeometry
|
package/src/jsonld/Intangible.ts
CHANGED
package/src/jsonld/Language.ts
CHANGED
package/src/jsonld/Map.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CreativeWork } from './CreativeWork.ts'
|
|
2
|
-
import { MapCategoryType } from './MapCategoryType.ts'
|
|
1
|
+
import type { CreativeWork } from './CreativeWork.ts'
|
|
2
|
+
import type { MapCategoryType } from './MapCategoryType.ts'
|
|
3
3
|
|
|
4
4
|
interface Map extends CreativeWork {
|
|
5
5
|
mapType?: MapCategoryType
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CreativeWork } from './CreativeWork.ts'
|
|
2
|
-
import { Text } from './Text.ts'
|
|
3
|
-
import { URL } from './URL.ts'
|
|
1
|
+
import type { CreativeWork } from './CreativeWork.ts'
|
|
2
|
+
import type { Text } from './Text.ts'
|
|
3
|
+
import type { URL } from './URL.ts'
|
|
4
4
|
|
|
5
5
|
interface MediaObject extends CreativeWork {
|
|
6
6
|
contentSize?: Text
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SoftwareApplication } from './SoftwareApplication.ts'
|
|
2
|
-
import { Text } from './Text.ts'
|
|
1
|
+
import type { SoftwareApplication } from './SoftwareApplication.ts'
|
|
2
|
+
import type { Text } from './Text.ts'
|
|
3
3
|
|
|
4
4
|
interface MobileApplication extends SoftwareApplication {
|
|
5
5
|
carrierRequirements?: Text
|
package/src/jsonld/Offer.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { AdministrativeArea } from './AdministrativeArea.ts'
|
|
2
|
-
import { AggregateRating } from './AggregateRating.ts'
|
|
3
|
-
import { CreativeWork } from './CreativeWork.ts'
|
|
4
|
-
import { DateTime } from './DateTime.ts'
|
|
5
|
-
import { GeoShape } from './GeoShape.ts'
|
|
6
|
-
import { Intangible } from './Intangible.ts'
|
|
7
|
-
import { ItemAvailability } from './ItemAvailability.ts'
|
|
8
|
-
import { Organization } from './Organization.ts'
|
|
9
|
-
import { Person } from './Person.ts'
|
|
10
|
-
import { Place } from './Place.ts'
|
|
11
|
-
import { Product } from './Product.ts'
|
|
12
|
-
import { QuantitativeValue } from './QuantitativeValue.ts'
|
|
13
|
-
import { Review } from './Review.ts'
|
|
14
|
-
import { Service } from './Service.ts'
|
|
15
|
-
import { Text } from './Text.ts'
|
|
16
|
-
import { Thing } from './Thing.ts'
|
|
17
|
-
import { Time } from './Time.ts'
|
|
18
|
-
import { URL } from './URL.ts'
|
|
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
19
|
|
|
20
20
|
interface Offer extends Intangible {
|
|
21
21
|
acceptedPaymentMethod?: unknown
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { AdministrativeArea } from './AdministrativeArea.ts'
|
|
2
|
-
import { AggregateRating } from './AggregateRating.ts'
|
|
3
|
-
import { Article } from './Article.ts'
|
|
4
|
-
import { Brand } from './Brand.ts'
|
|
5
|
-
import { ContactPoint } from './ContactPoint.ts'
|
|
6
|
-
import { CreativeWork } from './CreativeWork.ts'
|
|
7
|
-
import { DateTime } from './DateTime.ts'
|
|
8
|
-
import { GeoShape } from './GeoShape.ts'
|
|
9
|
-
import { Language } from './Language.ts'
|
|
10
|
-
import { Offer } from './Offer.ts'
|
|
11
|
-
import { Person } from './Person.ts'
|
|
12
|
-
import { Place } from './Place.ts'
|
|
13
|
-
import { PostalAddress } from './PostalAddress.ts'
|
|
14
|
-
import { Product } from './Product.ts'
|
|
15
|
-
import { QuantitativeValue } from './QuantitativeValue.ts'
|
|
16
|
-
import { Review } from './Review.ts'
|
|
17
|
-
import { Text } from './Text.ts'
|
|
18
|
-
import { Thing } from './Thing.ts'
|
|
19
|
-
import { VirtualLocation } from './VirtualLocation.ts'
|
|
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
20
|
|
|
21
21
|
// TODO: Resolve Anys
|
|
22
22
|
interface Organization extends Thing {
|
package/src/jsonld/Person.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { Brand } from './Brand.ts'
|
|
2
|
-
import { ContactPoint } from './ContactPoint.ts'
|
|
3
|
-
import { Country } from './Country.ts'
|
|
4
|
-
import { CreativeWork } from './CreativeWork.ts'
|
|
5
|
-
import { Language } from './Language.ts'
|
|
6
|
-
import { Offer } from './Offer.ts'
|
|
7
|
-
import { Organization } from './Organization.ts'
|
|
8
|
-
import { Place } from './Place.ts'
|
|
9
|
-
import { PostalAddress } from './PostalAddress.ts'
|
|
10
|
-
import { Product } from './Product.ts'
|
|
11
|
-
import { Thing } from './Thing.ts'
|
|
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
12
|
|
|
13
13
|
interface Person extends Thing {
|
|
14
14
|
additionalName?: string
|
package/src/jsonld/Photograph.ts
CHANGED
package/src/jsonld/Place.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { AggregateRating } from './AggregateRating.ts'
|
|
2
|
-
import { GeospatialGeometry } from './GeospatialGeometry.ts'
|
|
3
|
-
import { ImageObject } from './ImageObject.ts'
|
|
4
|
-
import { Integer } from './Integer.ts'
|
|
5
|
-
import { Map } from './Map.ts'
|
|
6
|
-
import { Photograph } from './Photograph.ts'
|
|
7
|
-
import { PostalAddress } from './PostalAddress.ts'
|
|
8
|
-
import { PropertyValue } from './PropertyValue.ts'
|
|
9
|
-
import { Review } from './Review.ts'
|
|
10
|
-
import { Text } from './Text.ts'
|
|
11
|
-
import { Thing } from './Thing.ts'
|
|
12
|
-
import { URL } from './URL.ts'
|
|
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
13
|
|
|
14
14
|
interface Place extends Thing, GeospatialGeometry {
|
|
15
15
|
additionalProperty?: PropertyValue
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ContactPoint } from './ContactPoint.ts'
|
|
2
|
-
import { Country } from './Country.ts'
|
|
3
|
-
import { Text } from './Text.ts'
|
|
1
|
+
import type { ContactPoint } from './ContactPoint.ts'
|
|
2
|
+
import type { Country } from './Country.ts'
|
|
3
|
+
import type { Text } from './Text.ts'
|
|
4
4
|
|
|
5
5
|
interface PostalAddress extends ContactPoint {
|
|
6
6
|
addressCountry?: Country | Text
|
package/src/jsonld/Product.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { AggregateRating } from './AggregateRating.ts'
|
|
2
|
-
import { Brand } from './Brand.ts'
|
|
3
|
-
import { DateTime } from './DateTime.ts'
|
|
4
|
-
import { ImageObject } from './ImageObject.ts'
|
|
5
|
-
import { Offer } from './Offer.ts'
|
|
6
|
-
import { Organization } from './Organization.ts'
|
|
7
|
-
import { PropertyValue } from './PropertyValue.ts'
|
|
8
|
-
import { QuantitativeValue } from './QuantitativeValue.ts'
|
|
9
|
-
import { Review } from './Review.ts'
|
|
10
|
-
import { Service } from './Service.ts'
|
|
11
|
-
import { Text } from './Text.ts'
|
|
12
|
-
import { Thing } from './Thing.ts'
|
|
13
|
-
import { URL } from './URL.ts'
|
|
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
14
|
|
|
15
15
|
// TODO: Resolve Anys
|
|
16
16
|
interface Product extends Thing {
|
package/src/jsonld/Property.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Class } from './Class.ts'
|
|
2
|
-
import { Enumeration } from './Enumeration.ts'
|
|
3
|
-
import { Intangible } from './Intangible.ts'
|
|
1
|
+
import type { Class } from './Class.ts'
|
|
2
|
+
import type { Enumeration } from './Enumeration.ts'
|
|
3
|
+
import type { Intangible } from './Intangible.ts'
|
|
4
4
|
|
|
5
5
|
interface Property extends Intangible {
|
|
6
6
|
domainIncludes?: Class
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Enumeration } from './Enumeration.ts'
|
|
2
|
-
import { QualitativeValue } from './QualitativeValue.ts'
|
|
3
|
-
import { QuantitativeValue } from './QuantitativeValue.ts'
|
|
4
|
-
import { StructuredValue } from './StructuredValue.ts'
|
|
5
|
-
import { URL } from './URL.ts'
|
|
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
6
|
|
|
7
7
|
interface PropertyValue extends StructuredValue {
|
|
8
8
|
maxValue?: number
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Enumeration } from './Enumeration.ts'
|
|
2
|
-
import { PropertyValue } from './PropertyValue.ts'
|
|
3
|
-
import { QuantitativeValue } from './QuantitativeValue.ts'
|
|
4
|
-
import { StructuredValue } from './StructuredValue.ts'
|
|
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
5
|
|
|
6
6
|
interface QualitativeValue extends Enumeration {
|
|
7
7
|
additionalProperty?: PropertyValue
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Enumeration } from './Enumeration.ts'
|
|
2
|
-
import { PropertyValue } from './PropertyValue.ts'
|
|
3
|
-
import { QualitativeValue } from './QualitativeValue.ts'
|
|
4
|
-
import { StructuredValue } from './StructuredValue.ts'
|
|
5
|
-
import { URL } from './URL.ts'
|
|
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
6
|
|
|
7
7
|
interface QuantitativeValue extends Enumeration {
|
|
8
8
|
additionalProperty?: PropertyValue
|
package/src/jsonld/Rating.ts
CHANGED
package/src/jsonld/Review.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CreativeWork } from './CreativeWork.ts'
|
|
2
|
-
import { Rating } from './Rating.ts'
|
|
3
|
-
import { Thing } from './Thing.ts'
|
|
1
|
+
import type { CreativeWork } from './CreativeWork.ts'
|
|
2
|
+
import type { Rating } from './Rating.ts'
|
|
3
|
+
import type { Thing } from './Thing.ts'
|
|
4
4
|
|
|
5
5
|
interface Review extends CreativeWork {
|
|
6
6
|
itemReviewed?: Thing
|
package/src/jsonld/Service.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { AdministrativeArea } from './AdministrativeArea.ts'
|
|
2
|
-
import { AggregateRating } from './AggregateRating.ts'
|
|
3
|
-
import { GeoShape } from './GeoShape.ts'
|
|
4
|
-
import { ImageObject } from './ImageObject.ts'
|
|
5
|
-
import { Intangible } from './Intangible.ts'
|
|
6
|
-
import { Offer } from './Offer.ts'
|
|
7
|
-
import { Organization } from './Organization.ts'
|
|
8
|
-
import { Person } from './Person.ts'
|
|
9
|
-
import { Place } from './Place.ts'
|
|
10
|
-
import { Product } from './Product.ts'
|
|
11
|
-
import { Review } from './Review.ts'
|
|
12
|
-
import { Text } from './Text.ts'
|
|
13
|
-
import { Thing } from './Thing.ts'
|
|
14
|
-
import { URL } from './URL.ts'
|
|
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
15
|
|
|
16
16
|
// TODO: Resolve Anys
|
|
17
17
|
interface Service extends Intangible {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { CreativeWork } from './CreativeWork.ts'
|
|
2
|
-
import { ImageObject } from './ImageObject.ts'
|
|
3
|
-
import { Text } from './Text.ts'
|
|
4
|
-
import { URL } from './URL.ts'
|
|
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
5
|
|
|
6
6
|
// TODO: Resolve Anys
|
|
7
7
|
interface SoftwareApplication extends CreativeWork {
|
package/src/jsonld/Thing.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Action } from './Action.ts'
|
|
2
|
-
import { Base } from './Base.ts'
|
|
3
|
-
import { CreativeWork } from './CreativeWork.ts'
|
|
4
|
-
import { ImageObject } from './ImageObject.ts'
|
|
5
|
-
import { PropertyValue } from './PropertyValue.ts'
|
|
6
|
-
import { Text } from './Text.ts'
|
|
7
|
-
import { URL } from './URL.ts'
|
|
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
8
|
|
|
9
9
|
interface Thing extends Base {
|
|
10
10
|
additionalType?: URL
|
package/xy.config.ts
CHANGED