glitch-javascript-sdk 3.2.24 → 3.2.26
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/cjs/index.js +64 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/GameShows.d.ts +4 -0
- package/dist/esm/api/PrDirectory.d.ts +280 -3
- package/dist/esm/index.js +64 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/routes/PrDirectoryRoutes.d.ts +1 -1
- package/dist/index.d.ts +284 -3
- package/package.json +1 -1
- package/src/api/GameShows.ts +7 -0
- package/src/api/PrDirectory.ts +315 -3
- package/src/routes/GameShowsRoute.ts +1 -0
- package/src/routes/PrDirectoryRoutes.ts +8 -1
package/dist/cjs/index.js
CHANGED
|
@@ -26921,6 +26921,7 @@ var GameShowsRoute = /** @class */ (function () {
|
|
|
26921
26921
|
analyticsReport: { url: '/gameshows/{show_id}/analytics/report', method: HTTP_METHODS.GET },
|
|
26922
26922
|
joinWishlist: { url: '/gameshows/{show_id}/wishlist', method: HTTP_METHODS.POST },
|
|
26923
26923
|
listWishlist: { url: '/gameshows/{show_id}/wishlist', method: HTTP_METHODS.GET },
|
|
26924
|
+
listForTitle: { url: '/titles/{title_id}/gameshows', method: HTTP_METHODS.GET },
|
|
26924
26925
|
};
|
|
26925
26926
|
return GameShowsRoute;
|
|
26926
26927
|
}());
|
|
@@ -27162,6 +27163,12 @@ var GameShows = /** @class */ (function () {
|
|
|
27162
27163
|
GameShows.listWishlist = function (show_id, params) {
|
|
27163
27164
|
return Requests.processRoute(GameShowsRoute.routes.listWishlist, {}, { show_id: show_id }, params);
|
|
27164
27165
|
};
|
|
27166
|
+
/**
|
|
27167
|
+
* List public game shows that include a title. Useful for game-page festival banners.
|
|
27168
|
+
*/
|
|
27169
|
+
GameShows.listForTitle = function (title_id, params) {
|
|
27170
|
+
return Requests.processRoute(GameShowsRoute.routes.listForTitle, {}, { title_id: title_id }, params);
|
|
27171
|
+
};
|
|
27165
27172
|
return GameShows;
|
|
27166
27173
|
}());
|
|
27167
27174
|
|
|
@@ -31837,7 +31844,7 @@ var Mcp = /** @class */ (function () {
|
|
|
31837
31844
|
* Route declarations for the PR Directory API.
|
|
31838
31845
|
*
|
|
31839
31846
|
* These mirror the Laravel routes under `/api/pr/*` and the title-scoped
|
|
31840
|
-
* matcher
|
|
31847
|
+
* matcher/research routes under `/api/titles/{title_id}/pr/*`. Keeping the URL
|
|
31841
31848
|
* templates in one place lets the SDK methods stay small and consistent with
|
|
31842
31849
|
* the rest of the package's route-wrapper pattern.
|
|
31843
31850
|
*/
|
|
@@ -31849,10 +31856,17 @@ var PrDirectoryRoutes = /** @class */ (function () {
|
|
|
31849
31856
|
viewPublication: { url: "/pr/publications/{publication_id}", method: HTTP_METHODS.GET },
|
|
31850
31857
|
listPeople: { url: "/pr/people", method: HTTP_METHODS.GET },
|
|
31851
31858
|
viewPerson: { url: "/pr/people/{person_id}", method: HTTP_METHODS.GET },
|
|
31859
|
+
listFeeds: { url: "/pr/feeds", method: HTTP_METHODS.GET },
|
|
31860
|
+
viewFeed: { url: "/pr/feeds/{feed_id}", method: HTTP_METHODS.GET },
|
|
31861
|
+
listStories: { url: "/pr/stories", method: HTTP_METHODS.GET },
|
|
31862
|
+
viewStory: { url: "/pr/stories/{story_id}", method: HTTP_METHODS.GET },
|
|
31852
31863
|
listTags: { url: "/pr/tags", method: HTTP_METHODS.GET },
|
|
31853
31864
|
report: { url: "/pr/report", method: HTTP_METHODS.GET },
|
|
31854
31865
|
titleMatches: { url: "/titles/{title_id}/pr/matches", method: HTTP_METHODS.GET },
|
|
31866
|
+
titleResearch: { url: "/titles/{title_id}/pr/research", method: HTTP_METHODS.GET },
|
|
31867
|
+
titleDraft: { url: "/titles/{title_id}/pr/drafts", method: HTTP_METHODS.POST },
|
|
31855
31868
|
queueVerification: { url: "/admin/pr/verification/queue", method: HTTP_METHODS.POST },
|
|
31869
|
+
refreshFeeds: { url: "/admin/pr/feeds/refresh", method: HTTP_METHODS.POST },
|
|
31856
31870
|
};
|
|
31857
31871
|
return PrDirectoryRoutes;
|
|
31858
31872
|
}());
|
|
@@ -31861,9 +31875,9 @@ var PrDirectoryRoutes = /** @class */ (function () {
|
|
|
31861
31875
|
* SDK wrapper for the PR Directory API.
|
|
31862
31876
|
*
|
|
31863
31877
|
* The PR directory is read-friendly by default: public endpoints expose
|
|
31864
|
-
* searchable publications, people, tags, and reporting metrics.
|
|
31865
|
-
* title admins can request title-specific
|
|
31866
|
-
*
|
|
31878
|
+
* searchable publications, people, feeds, stories, tags, and reporting metrics.
|
|
31879
|
+
* Authenticated title admins can request title-specific research and review-only
|
|
31880
|
+
* outreach drafts, and site admins can queue verification or feed refresh jobs.
|
|
31867
31881
|
*/
|
|
31868
31882
|
var PrDirectory = /** @class */ (function () {
|
|
31869
31883
|
function PrDirectory() {
|
|
@@ -31913,6 +31927,31 @@ var PrDirectory = /** @class */ (function () {
|
|
|
31913
31927
|
PrDirectory.viewPerson = function (person_id, params) {
|
|
31914
31928
|
return Requests.processRoute(PrDirectoryRoutes.routes.viewPerson, {}, { person_id: person_id }, params);
|
|
31915
31929
|
};
|
|
31930
|
+
/**
|
|
31931
|
+
* Search discovered RSS/Atom/JSON feeds across known publications.
|
|
31932
|
+
*/
|
|
31933
|
+
PrDirectory.listFeeds = function (params) {
|
|
31934
|
+
return Requests.processRoute(PrDirectoryRoutes.routes.listFeeds, {}, {}, params);
|
|
31935
|
+
};
|
|
31936
|
+
/**
|
|
31937
|
+
* Retrieve one feed with freshness metadata and recent imported stories.
|
|
31938
|
+
* Pass `include_raw: true` to request the stored XML/RSS payload.
|
|
31939
|
+
*/
|
|
31940
|
+
PrDirectory.viewFeed = function (feed_id, params) {
|
|
31941
|
+
return Requests.processRoute(PrDirectoryRoutes.routes.viewFeed, {}, { feed_id: feed_id }, params);
|
|
31942
|
+
};
|
|
31943
|
+
/**
|
|
31944
|
+
* Search imported stories, reviews, guides, and episodes by outlet or byline.
|
|
31945
|
+
*/
|
|
31946
|
+
PrDirectory.listStories = function (params) {
|
|
31947
|
+
return Requests.processRoute(PrDirectoryRoutes.routes.listStories, {}, {}, params);
|
|
31948
|
+
};
|
|
31949
|
+
/**
|
|
31950
|
+
* Retrieve one imported story with feed, publication, and byline evidence.
|
|
31951
|
+
*/
|
|
31952
|
+
PrDirectory.viewStory = function (story_id, params) {
|
|
31953
|
+
return Requests.processRoute(PrDirectoryRoutes.routes.viewStory, {}, { story_id: story_id }, params);
|
|
31954
|
+
};
|
|
31916
31955
|
/**
|
|
31917
31956
|
* List the normalized tag vocabulary used for PR search, filters, matching,
|
|
31918
31957
|
* and reporting.
|
|
@@ -31934,6 +31973,20 @@ var PrDirectory = /** @class */ (function () {
|
|
|
31934
31973
|
PrDirectory.titleMatches = function (title_id, params) {
|
|
31935
31974
|
return Requests.processRoute(PrDirectoryRoutes.routes.titleMatches, {}, { title_id: title_id }, params);
|
|
31936
31975
|
};
|
|
31976
|
+
/**
|
|
31977
|
+
* Get a title-scoped PR research workspace with outlet matches, recent story
|
|
31978
|
+
* context, media kit readiness, and next steps.
|
|
31979
|
+
*/
|
|
31980
|
+
PrDirectory.titleResearch = function (title_id, params) {
|
|
31981
|
+
return Requests.processRoute(PrDirectoryRoutes.routes.titleResearch, {}, { title_id: title_id }, params);
|
|
31982
|
+
};
|
|
31983
|
+
/**
|
|
31984
|
+
* Create a formatted, review-only PR email draft for a selected title target.
|
|
31985
|
+
* The backend returns HTML with paragraphs, bullets, and links but sends no email.
|
|
31986
|
+
*/
|
|
31987
|
+
PrDirectory.titleDraft = function (title_id, data, params) {
|
|
31988
|
+
return Requests.processRoute(PrDirectoryRoutes.routes.titleDraft, data || {}, { title_id: title_id }, params);
|
|
31989
|
+
};
|
|
31937
31990
|
/**
|
|
31938
31991
|
* Queue PR verification jobs. Requires a site-admin auth token.
|
|
31939
31992
|
*
|
|
@@ -31945,6 +31998,13 @@ var PrDirectory = /** @class */ (function () {
|
|
|
31945
31998
|
PrDirectory.queueVerification = function (data, params) {
|
|
31946
31999
|
return Requests.processRoute(PrDirectoryRoutes.routes.queueVerification, data || {}, {}, params);
|
|
31947
32000
|
};
|
|
32001
|
+
/**
|
|
32002
|
+
* Discover, queue, or synchronously refresh PR feeds. Requires a site-admin
|
|
32003
|
+
* auth token.
|
|
32004
|
+
*/
|
|
32005
|
+
PrDirectory.refreshFeeds = function (data, params) {
|
|
32006
|
+
return Requests.processRoute(PrDirectoryRoutes.routes.refreshFeeds, data || {}, {}, params);
|
|
32007
|
+
};
|
|
31948
32008
|
return PrDirectory;
|
|
31949
32009
|
}());
|
|
31950
32010
|
|