@voiceofamerica/voa-core-shared
Advanced tools
@@ -8,4 +8,4 @@ "use strict"; | ||
| var graphql_tag_1 = require("graphql-tag"); | ||
| exports.schema = graphql_tag_1.default(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\nenum Audience {\n en\n zh\n fa\n}\n\nenum ContentType {\n Audio\n Video\n PhotoGallery\n}\n\nenum ArticleVideoRelationship {\n SameItem\n MainImage\n EmbededInContent\n}\n\ntype Name {\n first: String!\n middle: String\n last: String\n}\n\ntype Author {\n name: Name!\n email: String\n description: String\n id: Int!\n}\n\ntype Image {\n imageTitle: String\n id: Int!\n type: [ContentType]\n url: String!\n}\n\ntype Audio {\n audioTitle: String!\n audioDescription: String\n id: Int!\n duration: Int\n mime: String\n url: String\n date: String\n}\n\ntype Video {\n videoDescription: String\n guid: String\n relType: ArticleVideoRelationship\n id: Int!\n width: Int\n height: Int\n duration: Int\n url: String\n thumbnail: String\n}\n\ntype RelatedStory {\n storyTitle: String!\n id: Int!\n pubDate: String!\n type: [ContentType]\n url: String\n twitter: String\n thumbnailUrl: String\n}\n\ntype Article {\n id: Int!\n site: Int\n zone: Int\n type: [ContentType]\n pubDate: String!\n lastUpdated: String\n url: String\n twitter: String\n title: String!\n introduction: String!\n content: String!\n authors: [Author]\n image: [Image]\n audio: [Audio]\n video: [Video]\n relatedStories: [RelatedStory]\n}\n\ntype Zone {\n id: Int!\n site: Int\n hash: String\n type: [ContentType]\n broadcast: Boolean\n name: String!\n}\n\ntype Query {\n articles(source: Audience): [Article]\n articleById(source: Audience, id: Int): Article\n articlesByZoneId(source: Audience, zoneId: Int): [Article]\n search(source: Audience, keywords: String, zoneId: Int = 0): [Article]\n breakingNews(source: Audience): [Article]\n zones(source: Audience): [Zone]\n}\n"], ["\nenum Audience {\n en\n zh\n fa\n}\n\nenum ContentType {\n Audio\n Video\n PhotoGallery\n}\n\nenum ArticleVideoRelationship {\n SameItem\n MainImage\n EmbededInContent\n}\n\ntype Name {\n first: String!\n middle: String\n last: String\n}\n\ntype Author {\n name: Name!\n email: String\n description: String\n id: Int!\n}\n\ntype Image {\n imageTitle: String\n id: Int!\n type: [ContentType]\n url: String!\n}\n\ntype Audio {\n audioTitle: String!\n audioDescription: String\n id: Int!\n duration: Int\n mime: String\n url: String\n date: String\n}\n\ntype Video {\n videoDescription: String\n guid: String\n relType: ArticleVideoRelationship\n id: Int!\n width: Int\n height: Int\n duration: Int\n url: String\n thumbnail: String\n}\n\ntype RelatedStory {\n storyTitle: String!\n id: Int!\n pubDate: String!\n type: [ContentType]\n url: String\n twitter: String\n thumbnailUrl: String\n}\n\ntype Article {\n id: Int!\n site: Int\n zone: Int\n type: [ContentType]\n pubDate: String!\n lastUpdated: String\n url: String\n twitter: String\n title: String!\n introduction: String!\n content: String!\n authors: [Author]\n image: [Image]\n audio: [Audio]\n video: [Video]\n relatedStories: [RelatedStory]\n}\n\ntype Zone {\n id: Int!\n site: Int\n hash: String\n type: [ContentType]\n broadcast: Boolean\n name: String!\n}\n\ntype Query {\n articles(source: Audience): [Article]\n articleById(source: Audience, id: Int): Article\n articlesByZoneId(source: Audience, zoneId: Int): [Article]\n search(source: Audience, keywords: String, zoneId: Int = 0): [Article]\n breakingNews(source: Audience): [Article]\n zones(source: Audience): [Zone]\n}\n"]))); | ||
| exports.schema = graphql_tag_1.default(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\nenum Audience {\n en\n zh\n fa\n}\n\nenum ContentType {\n Article\n Video\n PhotoGallery\n}\n\nenum ArticleVideoRelationship {\n SameItem\n MainImage\n EmbededInContent\n}\n\ntype Name {\n first: String!\n middle: String\n last: String\n}\n\ntype Author {\n name: Name!\n email: String\n description: String\n id: Int!\n}\n\ntype Image {\n imageTitle: String\n id: Int!\n type: [ContentType]\n url: String!\n}\n\ntype Audio {\n audioTitle: String!\n audioDescription: String\n id: Int!\n duration: Int\n mime: String\n url: String\n date: String\n}\n\ntype Video {\n videoDescription: String\n guid: String\n relType: ArticleVideoRelationship\n id: Int!\n width: Int\n height: Int\n duration: Int\n url: String\n thumbnail: String\n}\n\ntype RelatedStory {\n storyTitle: String!\n id: Int!\n pubDate: String!\n type: [ContentType]\n url: String\n twitter: String\n thumbnailUrl: String\n}\n\ntype Article {\n id: Int!\n site: Int\n zone: Int\n type: ContentType\n pubDate: String!\n lastUpdated: String\n url: String\n twitter: String\n title: String!\n introduction: String!\n content: String!\n authors: [Author]\n image: [Image]\n audio: [Audio]\n video: [Video]\n relatedStories: [RelatedStory]\n}\n\ntype Zone {\n id: Int!\n site: Int\n hash: String\n type: [ContentType]\n broadcast: Boolean\n name: String!\n}\n\ntype Query {\n articles(source: Audience, type: [ContentType] = [Article]): [Article]\n articleById(source: Audience, id: Int): Article\n articlesByZoneId(source: Audience, zoneId: Int): [Article]\n search(source: Audience, keywords: String, zoneId: Int = 0): [Article]\n breakingNews(source: Audience): [Article]\n zones(source: Audience): [Zone]\n}\n"], ["\nenum Audience {\n en\n zh\n fa\n}\n\nenum ContentType {\n Article\n Video\n PhotoGallery\n}\n\nenum ArticleVideoRelationship {\n SameItem\n MainImage\n EmbededInContent\n}\n\ntype Name {\n first: String!\n middle: String\n last: String\n}\n\ntype Author {\n name: Name!\n email: String\n description: String\n id: Int!\n}\n\ntype Image {\n imageTitle: String\n id: Int!\n type: [ContentType]\n url: String!\n}\n\ntype Audio {\n audioTitle: String!\n audioDescription: String\n id: Int!\n duration: Int\n mime: String\n url: String\n date: String\n}\n\ntype Video {\n videoDescription: String\n guid: String\n relType: ArticleVideoRelationship\n id: Int!\n width: Int\n height: Int\n duration: Int\n url: String\n thumbnail: String\n}\n\ntype RelatedStory {\n storyTitle: String!\n id: Int!\n pubDate: String!\n type: [ContentType]\n url: String\n twitter: String\n thumbnailUrl: String\n}\n\ntype Article {\n id: Int!\n site: Int\n zone: Int\n type: ContentType\n pubDate: String!\n lastUpdated: String\n url: String\n twitter: String\n title: String!\n introduction: String!\n content: String!\n authors: [Author]\n image: [Image]\n audio: [Audio]\n video: [Video]\n relatedStories: [RelatedStory]\n}\n\ntype Zone {\n id: Int!\n site: Int\n hash: String\n type: [ContentType]\n broadcast: Boolean\n name: String!\n}\n\ntype Query {\n articles(source: Audience, type: [ContentType] = [Article]): [Article]\n articleById(source: Audience, id: Int): Article\n articlesByZoneId(source: Audience, zoneId: Int): [Article]\n search(source: Audience, keywords: String, zoneId: Int = 0): [Article]\n breakingNews(source: Audience): [Article]\n zones(source: Audience): [Zone]\n}\n"]))); | ||
| var templateObject_1; | ||
| //# sourceMappingURL=schema.js.map |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../lib/graphql/schema.ts"],"names":[],"mappings":";;;;;;AAAA,2CAA6B;AAChB,QAAA,MAAM,GAAG,qBAAG,qvDAAA,krDA2GxB,KAAA"} | ||
| {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../lib/graphql/schema.ts"],"names":[],"mappings":";;;;;;AAAA,2CAA6B;AAChB,QAAA,MAAM,GAAG,qBAAG,sxDAAA,mtDA2GxB,KAAA"} |
@@ -28,2 +28,16 @@ { | ||
| "defaultValue": null | ||
| }, | ||
| { | ||
| "name": "type", | ||
| "description": "", | ||
| "type": { | ||
| "kind": "LIST", | ||
| "name": null, | ||
| "ofType": { | ||
| "kind": "ENUM", | ||
| "name": "ContentType", | ||
| "ofType": null | ||
| } | ||
| }, | ||
| "defaultValue": "[Article]" | ||
| } | ||
@@ -250,2 +264,31 @@ ], | ||
| { | ||
| "kind": "ENUM", | ||
| "name": "ContentType", | ||
| "description": "", | ||
| "fields": null, | ||
| "inputFields": null, | ||
| "interfaces": null, | ||
| "enumValues": [ | ||
| { | ||
| "name": "Article", | ||
| "description": "", | ||
| "isDeprecated": false, | ||
| "deprecationReason": null | ||
| }, | ||
| { | ||
| "name": "Video", | ||
| "description": "", | ||
| "isDeprecated": false, | ||
| "deprecationReason": null | ||
| }, | ||
| { | ||
| "name": "PhotoGallery", | ||
| "description": "", | ||
| "isDeprecated": false, | ||
| "deprecationReason": null | ||
| } | ||
| ], | ||
| "possibleTypes": null | ||
| }, | ||
| { | ||
| "kind": "OBJECT", | ||
@@ -300,9 +343,5 @@ "name": "Article", | ||
| "type": { | ||
| "kind": "LIST", | ||
| "name": null, | ||
| "ofType": { | ||
| "kind": "ENUM", | ||
| "name": "ContentType", | ||
| "ofType": null | ||
| } | ||
| "kind": "ENUM", | ||
| "name": "ContentType", | ||
| "ofType": null | ||
| }, | ||
@@ -509,31 +548,2 @@ "isDeprecated": false, | ||
| { | ||
| "kind": "ENUM", | ||
| "name": "ContentType", | ||
| "description": "", | ||
| "fields": null, | ||
| "inputFields": null, | ||
| "interfaces": null, | ||
| "enumValues": [ | ||
| { | ||
| "name": "Audio", | ||
| "description": "", | ||
| "isDeprecated": false, | ||
| "deprecationReason": null | ||
| }, | ||
| { | ||
| "name": "Video", | ||
| "description": "", | ||
| "isDeprecated": false, | ||
| "deprecationReason": null | ||
| }, | ||
| { | ||
| "name": "PhotoGallery", | ||
| "description": "", | ||
| "isDeprecated": false, | ||
| "deprecationReason": null | ||
| } | ||
| ], | ||
| "possibleTypes": null | ||
| }, | ||
| { | ||
| "kind": "SCALAR", | ||
@@ -540,0 +550,0 @@ "name": "String", |
+46
-36
@@ -28,2 +28,16 @@ { | ||
| "defaultValue": null | ||
| }, | ||
| { | ||
| "name": "type", | ||
| "description": "", | ||
| "type": { | ||
| "kind": "LIST", | ||
| "name": null, | ||
| "ofType": { | ||
| "kind": "ENUM", | ||
| "name": "ContentType", | ||
| "ofType": null | ||
| } | ||
| }, | ||
| "defaultValue": "[Article]" | ||
| } | ||
@@ -250,2 +264,31 @@ ], | ||
| { | ||
| "kind": "ENUM", | ||
| "name": "ContentType", | ||
| "description": "", | ||
| "fields": null, | ||
| "inputFields": null, | ||
| "interfaces": null, | ||
| "enumValues": [ | ||
| { | ||
| "name": "Article", | ||
| "description": "", | ||
| "isDeprecated": false, | ||
| "deprecationReason": null | ||
| }, | ||
| { | ||
| "name": "Video", | ||
| "description": "", | ||
| "isDeprecated": false, | ||
| "deprecationReason": null | ||
| }, | ||
| { | ||
| "name": "PhotoGallery", | ||
| "description": "", | ||
| "isDeprecated": false, | ||
| "deprecationReason": null | ||
| } | ||
| ], | ||
| "possibleTypes": null | ||
| }, | ||
| { | ||
| "kind": "OBJECT", | ||
@@ -300,9 +343,5 @@ "name": "Article", | ||
| "type": { | ||
| "kind": "LIST", | ||
| "name": null, | ||
| "ofType": { | ||
| "kind": "ENUM", | ||
| "name": "ContentType", | ||
| "ofType": null | ||
| } | ||
| "kind": "ENUM", | ||
| "name": "ContentType", | ||
| "ofType": null | ||
| }, | ||
@@ -509,31 +548,2 @@ "isDeprecated": false, | ||
| { | ||
| "kind": "ENUM", | ||
| "name": "ContentType", | ||
| "description": "", | ||
| "fields": null, | ||
| "inputFields": null, | ||
| "interfaces": null, | ||
| "enumValues": [ | ||
| { | ||
| "name": "Audio", | ||
| "description": "", | ||
| "isDeprecated": false, | ||
| "deprecationReason": null | ||
| }, | ||
| { | ||
| "name": "Video", | ||
| "description": "", | ||
| "isDeprecated": false, | ||
| "deprecationReason": null | ||
| }, | ||
| { | ||
| "name": "PhotoGallery", | ||
| "description": "", | ||
| "isDeprecated": false, | ||
| "deprecationReason": null | ||
| } | ||
| ], | ||
| "possibleTypes": null | ||
| }, | ||
| { | ||
| "kind": "SCALAR", | ||
@@ -540,0 +550,0 @@ "name": "String", |
@@ -8,3 +8,3 @@ enum Audience { | ||
| enum ContentType { | ||
| Audio | ||
| Article | ||
| Video | ||
@@ -76,3 +76,3 @@ PhotoGallery | ||
| zone: Int | ||
| type: [ContentType] | ||
| type: ContentType | ||
| pubDate: String! | ||
@@ -102,3 +102,3 @@ lastUpdated: String | ||
| type Query { | ||
| articles(source: Audience): [Article] | ||
| articles(source: Audience, type: [ContentType] = [Article]): [Article] | ||
| articleById(source: Audience, id: Int): Article | ||
@@ -105,0 +105,0 @@ articlesByZoneId(source: Audience, zoneId: Int): [Article] |
@@ -10,3 +10,3 @@ import gql from 'graphql-tag' | ||
| enum ContentType { | ||
| Audio | ||
| Article | ||
| Video | ||
@@ -78,3 +78,3 @@ PhotoGallery | ||
| zone: Int | ||
| type: [ContentType] | ||
| type: ContentType | ||
| pubDate: String! | ||
@@ -104,3 +104,3 @@ lastUpdated: String | ||
| type Query { | ||
| articles(source: Audience): [Article] | ||
| articles(source: Audience, type: [ContentType] = [Article]): [Article] | ||
| articleById(source: Audience, id: Int): Article | ||
@@ -107,0 +107,0 @@ articlesByZoneId(source: Audience, zoneId: Int): [Article] |
+1
-1
| { | ||
| "name": "@voiceofamerica/voa-core-shared", | ||
| "version": "1.27.0", | ||
| "version": "1.29.0", | ||
| "description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
142245
0.57%4541
0.46%