Skip to content

Commit

Permalink
Generate stubs for WPGraphQL v1.29.3
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Dec 6, 2024
1 parent 4a32e36 commit 42418f0
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 105 deletions.
2 changes: 1 addition & 1 deletion source/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"ext-mbstring": "*",
"ext-openssl": "*",
"ext-sodium": "*",
"wpackagist-plugin/wp-graphql": "1.29.2"
"wpackagist-plugin/wp-graphql": "1.29.3"
},
"config": {
"allow-plugins": {
Expand Down
148 changes: 44 additions & 104 deletions wp-graphql-stubs.php
Original file line number Diff line number Diff line change
Expand Up @@ -11708,7 +11708,7 @@ class Client
*
* @var string
*/
public $version = '1.2.0';
public $version = '2.0.4';
/**
* Hash identifier of the plugin
*
Expand All @@ -11723,20 +11723,23 @@ class Client
public $name;
/**
* The plugin/theme file path
*
* @example .../wp-content/plugins/test-slug/test-slug.php
*
* @var string
*/
public $file;
/**
* Main plugin file
*
* @example test-slug/test-slug.php
*
* @var string
*/
public $basename;
/**
* Slug of the plugin
*
* @example test-slug
*
* @var string
Expand All @@ -11755,17 +11758,17 @@ class Client
*/
public $type;
/**
* textdomain
* Textdomain
*
* @var string
*/
public $textdomain;
/**
* Initialize the class
*
* @param string $hash hash of the plugin
* @param string $name readable name of the plugin
* @param string $file main plugin file path
* @param string $hash hash of the plugin
* @param string $name readable name of the plugin
* @param string $file main plugin file path
*/
public function __construct($hash, $name, $file)
{
Expand All @@ -11781,7 +11784,7 @@ public function insights()
/**
* Initialize plugin/theme updater
*
* @return Appsero\Updater
* @return void
*/
public function updater()
{
Expand Down Expand Up @@ -11813,31 +11816,33 @@ protected function set_basename_and_slug()
/**
* Send request to remote endpoint
*
* @param array $params
* @param string $route
* @param array $params
* @param string $route
*
* @return array|WP_Error Array of results including HTTP headers or WP_Error if the request failed.
* @return array|WP_Error array of results including HTTP headers or WP_Error if the request failed
*/
public function send_request($params, $route, $blocking = false)
{
}
/**
* Check if the current server is localhost
*
* @return boolean
* @return bool
*/
public function is_local_server()
{
}
/**
* Translate function _e()
*/
// phpcs:ignore
public function _etrans($text)
{
}
/**
* Translate function __()
*/
// phpcs:ignore
public function __trans($text)
{
}
Expand All @@ -11864,9 +11869,9 @@ class Insights
*/
public $notice;
/**
* Wheather to the notice or not
* Whether to show the notice or not
*
* @var boolean
* @var bool
*/
protected $show_notice = true;
/**
Expand All @@ -11884,45 +11889,45 @@ class Insights
/**
* Initialize the class
*
* @param $client
* @param null $name
* @param null $file
* @param mixed $client Client object or string.
* @param string $name Name of the plugin/theme.
* @param string $file Main plugin file path.
*/
public function __construct($client, $name = null, $file = null)
{
}
/**
* Don't show the notice
*
* @return \self
* @return self
*/
public function hide_notice()
{
}
/**
* Add plugin data if needed
*
* @return \self
* @return self
*/
public function add_plugin_data()
{
}
/**
* Add extra data if needed
*
* @param array $data
* @param array $data Extra data.
*
* @return \self
* @return self
*/
public function add_extra($data = array())
{
}
/**
* Set custom notice text
*
* @param string $text
* @param string $text Custom notice text.
*
* @return \self
* @return self
*/
public function notice($text = '')
{
Expand Down Expand Up @@ -11962,7 +11967,7 @@ protected function init_common()
/**
* Send tracking data to AppSero server
*
* @param boolean $override
* @param bool $override Whether to override the tracking allowed check.
*
* @return void
*/
Expand Down Expand Up @@ -12004,7 +12009,7 @@ public function tracking_allowed()
/**
* Check if the notice has been dismissed or enabled
*
* @return boolean
* @return bool
*/
public function notice_dismissed()
{
Expand All @@ -12018,7 +12023,7 @@ public function admin_notice()
{
}
/**
* handle the optin/optout
* Handle the optin/optout
*
* @return void
*/
Expand All @@ -12044,9 +12049,8 @@ public function optout()
/**
* Get the number of post counts
*
* @param string $post_type
*
* @return integer
* @param string $post_type The post type to count.
* @return int
*/
public function get_post_count($post_type)
{
Expand All @@ -12062,8 +12066,7 @@ public function get_user_counts()
/**
* Add weekly cron schedule
*
* @param array $schedules
*
* @param array $schedules Existing cron schedules.
* @return array
*/
public function add_weekly_schedule($schedules)
Expand All @@ -12088,7 +12091,7 @@ public function deactivation_cleanup()
/**
* Hook into action links and modify the deactivate link
*
* @param array $links
* @param array $links
*
* @return array
*/
Expand All @@ -12113,9 +12116,11 @@ public function deactivate_scripts()
}
/**
* Run after theme deactivated
* @param string $new_name
* @param object $new_theme
* @param object $old_theme
*
* @param string $new_name
* @param object $new_theme
* @param object $old_theme
*
* @return void
*/
public function theme_deactivated($new_name, $new_theme, $old_theme)
Expand Down Expand Up @@ -12168,7 +12173,7 @@ class License
/**
* Initialize the class
*
* @param Appsero\Client
* @param Client $client
*/
public function __construct(\Appsero\Client $client)
{
Expand Down Expand Up @@ -12200,33 +12205,30 @@ public function get_license()
/**
* Check license
*
* @return bool
* @return array
*/
public function check($license_key)
{
}
/**
* Active a license
*
* @return bool
* @return array
*/
public function activate($license_key)
{
}
/**
* Deactivate a license
*
* @return bool
* @return array
*/
public function deactivate($license_key)
{
}
/**
* Send common request
*
* @param $license_key
* @param $route
*
* @return array
*/
protected function send_request($license_key, $route)
Expand All @@ -12245,7 +12247,7 @@ public function refresh_license_api()
*
* @return void
*/
public function add_settings_page($args = array())
public function add_settings_page($args = [])
{
}
/**
Expand All @@ -12265,7 +12267,7 @@ public function menu_output()
/**
* License form submit
*/
public function license_form_submit($form)
public function license_form_submit($form_data = array())
{
}
/**
Expand Down Expand Up @@ -12299,68 +12301,6 @@ public function clear_scheduler()
{
}
}
/**
* Appsero Updater
*
* This class will show new updates project
*/
class Updater
{
/**
* Appsero\Client
*
* @var object
*/
protected $client;
/**
* Initialize the class
*
* @param Appsero\Client
*/
public function __construct(\Appsero\Client $client)
{
}
/**
* Set up WordPress filter to hooks to get update.
*
* @return void
*/
public function run_plugin_hooks()
{
}
/**
* Set up WordPress filter to hooks to get update.
*
* @return void
*/
public function run_theme_hooks()
{
}
/**
* Check for Update for this specific project
*/
public function check_plugin_update($transient_data)
{
}
/**
* Updates information on the "View version x.x details" page with custom data.
*
* @param mixed $data
* @param string $action
* @param object $args
*
* @return object $data
*/
public function plugins_api_filter($data, $action = '', $args = null)
{
}
/**
* Check theme upate
*/
public function check_theme_update($transient_data)
{
}
}
}
namespace GraphQLRelay\Connection {
class ArrayConnection
Expand Down

0 comments on commit 42418f0

Please sign in to comment.