-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:pantheon-systems/pantheon-content-c…
…loud-sdk into od/graphql/update-pagination-format
- Loading branch information
Showing
42 changed files
with
1,858 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"@pantheon-systems/pcc-sdk-core": patch | ||
--- | ||
|
||
Fixed issue where some GQL parameters would not be passed to the API in | ||
`getAllArticles` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@pantheon-systems/pcc-react-sdk": patch | ||
--- | ||
|
||
Gracefully handle implementation edge case where a smart component map was provided to the ArticlerRenderer but without defining the react components that should be used. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@pantheon-systems/pcc-cli": patch | ||
--- | ||
|
||
Don't notify the user that an update is available, if it is only a pre-release. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@pantheon-systems/pcc-cli": minor | ||
--- | ||
|
||
New command: site delete. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@pantheon-systems/pcc-sdk-core": patch | ||
--- | ||
|
||
PCC-GRANT (preview token) cookie now set with most relaxed security so that preview-pages can be shown in iframes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import inquirer from "inquirer"; | ||
import ora from "ora"; | ||
import AddOnApiHelper from "../../../lib/addonApiHelper"; | ||
import { errorHandler } from "../../exceptions"; | ||
|
||
async function configurePreferredWebhookEvents(siteId: string) { | ||
// Fetch available events | ||
const availableEventsSpinner = ora("Fetching available events...").start(); | ||
const availableEvents = | ||
await AddOnApiHelper.fetchAvailableWebhookEvents(siteId); | ||
availableEventsSpinner.succeed("Fetched available events"); | ||
|
||
// Prompt user to select events | ||
const { selectedEvents } = await inquirer.prompt([ | ||
{ | ||
type: "checkbox", | ||
name: "selectedEvents", | ||
message: | ||
"Select events to receive notifications for. Select none to receive notifications for all events.", | ||
choices: availableEvents, | ||
}, | ||
]); | ||
|
||
if (selectedEvents.length === 0) { | ||
console.info( | ||
"No events selected. Your webhook will receive notifications for all events.", | ||
); | ||
} | ||
|
||
// Update events for the site | ||
const updateEventsSpinner = ora("Updating preferred events...").start(); | ||
await AddOnApiHelper.updateSiteConfig(siteId, { | ||
preferredEvents: selectedEvents, | ||
}); | ||
updateEventsSpinner.succeed("Updated preferred events"); | ||
} | ||
|
||
export default errorHandler(configurePreferredWebhookEvents); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.