diff --git a/CHANGELOG.md b/CHANGELOG.md index 8fe5f7f1..19990043 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,16 @@ # Changelog +## [0.3.0](https://github.com/the-events-calendar/ql-events/tree/0.3.0) (2023-07-26) + +[Full Changelog](https://github.com/the-events-calendar/ql-events/compare/0.1.0...0.3.0) + +**New Features:** + +- feat: QL Events settings tab added and schema organized [\#55](https://github.com/the-events-calendar/ql-events/pull/55) ([kidunot89](https://github.com/kidunot89)) +- feat: Events Virtual Support. [\#53](https://github.com/the-events-calendar/ql-events/pull/53) ([kidunot89](https://github.com/kidunot89)) +- Attendee interface/connections/mutations added. Order interface added. [\#46](https://github.com/the-events-calendar/ql-events/pull/46) ([kidunot89](https://github.com/kidunot89)) +- feat: Custom ticket field types and queries implemented. [\#40](https://github.com/the-events-calendar/ql-events/pull/40) ([kidunot89](https://github.com/kidunot89)) + ## [0.1.0](https://github.com/the-events-calendar/ql-events/tree/0.1.0) (2022-08-12) [Full Changelog](https://github.com/the-events-calendar/ql-events/compare/0.0.1...0.1.0) @@ -11,9 +22,6 @@ **Fixed:** - fix: Support for WPGraphQL v1.8+ has been added. [\#45](https://github.com/the-events-calendar/ql-events/pull/45) ([kidunot89](https://github.com/kidunot89)) - -**Other Changes:** - - Removes extraneous comma to prevent a silent PHP error. [\#31](https://github.com/the-events-calendar/ql-events/pull/31) ([geoffgraham](https://github.com/geoffgraham)) diff --git a/README.txt b/README.txt index 6be1c283..aa88fc76 100644 --- a/README.txt +++ b/README.txt @@ -1,11 +1,11 @@ -=== QL Events === -Contributors: kidunot89 -Tags: GraphQL, TEC, WPGraphQL -Requires at least: 4.9 -Tested up to: 5.2 -Requires PHP: 5.6 -Stable tag: 0.0.1 -Maintained at: https://github.com/simplur/ql-events - -== Description == -Adds QL Events functionality to the WPGraphQL schema. +=== QL Events === +Contributors: kidunot89 +Tags: GraphQL, TEC, WPGraphQL +Requires at least: 4.9 +Tested up to: 5.2 +Requires PHP: 5.6 +Stable tag: 0.3.0 +Maintained at: https://github.com/simplur/ql-events + +== Description == +Adds QL Events functionality to the WPGraphQL schema. diff --git a/includes/admin/class-general.php b/includes/admin/class-general.php index f34d9c43..3cace65d 100644 --- a/includes/admin/class-general.php +++ b/includes/admin/class-general.php @@ -3,7 +3,7 @@ * Defines QL Events's general settings. * * @package WPGraphQL\QL_Events\Admin - * @since TBD + * @since 0.3.0 */ namespace WPGraphQL\QL_Events\Admin; @@ -18,7 +18,7 @@ class General extends Section { /** * Returns General settings fields. * - * @since TBD + * @since 0.3.0 * * @return array */ diff --git a/includes/admin/class-section.php b/includes/admin/class-section.php index 33cd5f8d..333702c9 100644 --- a/includes/admin/class-section.php +++ b/includes/admin/class-section.php @@ -3,7 +3,7 @@ * The section defines the root functionality for a settings section * * @package WPGraphQL\WooCommerce\Admin - * @since TBD + * @since 0.3.0 */ namespace WPGraphQL\QL_Events\Admin; @@ -16,7 +16,7 @@ abstract class Section { /** * Returns Section settings fields. * - * @since TBD + * @since 0.3.0 * * @return array */ diff --git a/includes/class-admin.php b/includes/class-admin.php index 70424df5..861414c5 100644 --- a/includes/class-admin.php +++ b/includes/class-admin.php @@ -3,7 +3,7 @@ * Initializes a QL Events admin settings. * * @package WPGraphQL\QL_Events - * @since TBD + * @since 0.3.0 */ namespace WPGraphQL\QL_Events; @@ -26,7 +26,7 @@ public function __construct() { /** * Registers filters. * - * @since TBD + * @since 0.3.0 * * @return void */ @@ -37,7 +37,7 @@ public function add_filters() { /** * Registers the WooGraphQL Settings tab. * - * @since TBD + * @since 0.3.0 * * @param Settings $manager Settings Manager. * diff --git a/includes/class-ql-events.php b/includes/class-ql-events.php index 5d81d3ae..8636ef6c 100644 --- a/includes/class-ql-events.php +++ b/includes/class-ql-events.php @@ -83,7 +83,7 @@ public static function instance() { /** * Checks if QL Events required plugins are installed and activated * - * @since TBD + * @since 0.3.0 * * @return array */ @@ -142,7 +142,7 @@ public function dependencies_not_ready() { /** * Returns true if the "QL_EVENTS_TEST_MODE" set to a "truthy" value. * - * @since TBD + * @since 0.3.0 * * @return boolean */ @@ -153,7 +153,7 @@ public static function is_test_mode_active() { /** * Returns true if the "enable_events_pro_support" is "on" * - * @since TBD + * @since 0.3.0 * * @return boolean */ @@ -165,7 +165,7 @@ public static function is_events_pro_support_enabled() { /** * Returns if Virtual Events is installed and activated. * - * @since TBD + * @since 0.3.0 * * @return bool */ @@ -176,7 +176,7 @@ public static function is_events_pro_active() { /** * Returns true if the "enable_event_tickets_support" is "on" * - * @since TBD + * @since 0.3.0 * * @return boolean */ @@ -188,7 +188,7 @@ public static function is_event_tickets_support_enabled() { /** * Returns if Event Tickets is installed and activated * - * @since TBD + * @since 0.3.0 * * @return bool */ @@ -208,7 +208,7 @@ public static function is_event_tickets_active() { /** * Returns true if the "enable_event_tickets_plus_support" is "on" * - * @since TBD + * @since 0.3.0 * * @return boolean */ @@ -220,7 +220,7 @@ public static function is_event_tickets_plus_support_enabled() { /** * Returns if Ticket Events Plus is installed and activated * - * @since TBD + * @since 0.3.0 * * @return bool */ @@ -240,7 +240,7 @@ public static function is_event_tickets_plus_active() { /** * Returns if WooGraphQL is installed and activate * - * @since TBD + * @since 0.3.0 * * @return bool */ @@ -251,7 +251,7 @@ public static function is_woographql_active() { /** * Returns true if the "enable_events_virtual_support" is "on" * - * @since TBD + * @since 0.3.0 * * @return boolean */ @@ -263,7 +263,7 @@ public static function is_events_virtual_support_enabled() { /** * Returns if Virtual Events is installed and activated. * - * @since TBD + * @since 0.3.0 * * @return bool */ @@ -274,7 +274,7 @@ public static function is_events_virtual_active() { /** * Render admin notices for all missing dependencies. * - * @since TBD + * @since 0.3.0 * * @return void */ @@ -319,7 +319,7 @@ public function init() { /** * Returns The Events Calendar and core extensions post-types registered to the schema. * - * @since TBD + * @since 0.3.0 * * @return array */ @@ -337,7 +337,7 @@ public static function get_post_types() { /** * Returns The Events Calendar and core extensions taxonomies registered to the schema. * - * @since TBD + * @since 0.3.0 * * @return array */ diff --git a/includes/class-tickets-filters.php b/includes/class-tickets-filters.php index 792fa4eb..a8fc840a 100644 --- a/includes/class-tickets-filters.php +++ b/includes/class-tickets-filters.php @@ -3,7 +3,7 @@ * Adds filters that modify core schema. * * @package \WPGraphQL\QL_Events - * @since TBD + * @since 0.3.0 */ namespace WPGraphQL\QL_Events; @@ -18,7 +18,7 @@ class Tickets_Filters { /** * Register filters * - * @since TBD + * @since 0.3.0 * * @return void */ @@ -48,7 +48,7 @@ public static function add_filters() { /** * Register ET post types to GraphQL schema * - * @since TBD + * @since 0.3.0 * * @param array $args - post-type args. * @param string $post_type - post-type slug. @@ -88,7 +88,7 @@ public static function register_post_types( $args, $post_type ) { /** * Filter callback for inject WPObject types with the "Ticket" interface. * - * @since TBD + * @since 0.1.0 * * @param array $config WPObject type config. * diff --git a/includes/class-tickets-plus-filters.php b/includes/class-tickets-plus-filters.php index 2f0eb308..5c0ada57 100644 --- a/includes/class-tickets-plus-filters.php +++ b/includes/class-tickets-plus-filters.php @@ -3,7 +3,7 @@ * Adds filters that modify core schema. * * @package \WPGraphQL\QL_Events - * @since TBD + * @since 0.3.0 */ namespace WPGraphQL\QL_Events; @@ -18,7 +18,7 @@ class Tickets_Plus_Filters { /** * Register filters * - * @since TBD + * @since 0.3.0 * * @return void */ @@ -58,7 +58,7 @@ public static function add_filters() { /** * Register ET plus post types to GraphQL schema * - * @since TBD + * @since 0.3.0 * * @param array $args - post-type args. * @param string $post_type - post-type slug. @@ -78,7 +78,7 @@ public static function register_post_types( $args, $post_type ) { /** * Filter callback for inject WPObject types with the "Ticket" interface. * - * @since TBD + * @since 0.3.0 * * @param array $config WPObject type config. * diff --git a/includes/class-type-registry.php b/includes/class-type-registry.php index a31cb5c6..408594cf 100644 --- a/includes/class-type-registry.php +++ b/includes/class-type-registry.php @@ -15,7 +15,7 @@ class Type_Registry { /** * Returns true if the Events Pro fields, types, queries, and mutations can be loaded. * - * @since TBD + * @since 0.3.0 * * @return bool */ @@ -27,7 +27,7 @@ public function load_events_pro_schema() { /** * Returns true if the Event Tickets fields, types, queries, and mutations can be loaded. * - * @since TBD + * @since 0.3.0 * * @return bool */ @@ -39,7 +39,7 @@ public function load_event_tickets_schema() { /** * Returns true if the Event Tickets Plus fields, types, queries, and mutations can be loaded. * - * @since TBD + * @since 0.3.0 * * @return bool */ @@ -52,7 +52,7 @@ public function load_event_tickets_plus_schema() { /** * Returns true if the Events Virtual fields, types, queries, and mutations can be loaded. * - * @since TBD + * @since 0.3.0 * * @return bool */ diff --git a/includes/connection/class-tickets.php b/includes/connection/class-tickets.php index ca7511f5..97cac001 100644 --- a/includes/connection/class-tickets.php +++ b/includes/connection/class-tickets.php @@ -44,7 +44,7 @@ protected static function get_event_to_ticket_resolver( $ticket_classes ) { * @param AppContext $context - AppContext object. * @param ResolveInfo $info - ResolveInfo object. * - * @since TBD + * @since 0.3.0 */ $ticket_classes = apply_filters( 'ql_events_ticket_connection_ticket_classes', $ticket_classes, $source, $args, $context, $info ); foreach ( $ticket_classes as $ticket_class ) { diff --git a/includes/mutation/class-register-attendee.php b/includes/mutation/class-register-attendee.php index 5ddd0a12..e55b3e81 100644 --- a/includes/mutation/class-register-attendee.php +++ b/includes/mutation/class-register-attendee.php @@ -6,7 +6,7 @@ * that has purchased a ticket. * * @package WPGraphQL\QL_Events\Mutation - * @since TBD + * @since 0.2.0 */ namespace WPGraphQL\QL_Events\Mutation; @@ -27,7 +27,7 @@ class Register_Attendee { /** * Registers mutation * - * @since TBD + * @since 0.2.0 * * @return void */ @@ -45,7 +45,7 @@ public static function register_mutation() { /** * Defines the mutation input field configuration * - * @since TBD + * @since 0.2.0 * * @return array */ @@ -103,7 +103,7 @@ public static function get_input_fields() { /** * Defines the mutation output field configuration * - * @since TBD + * @since 0.2.0 * * @return array */ @@ -127,7 +127,7 @@ public static function get_output_fields() { /** * Defines the mutation data modification closure. * - * @since TBD + * @since 0.2.0 * * @return callable */ @@ -206,7 +206,7 @@ public static function mutate_and_get_payload() { /** * Simple reducer for mapping extra fields. * - * @since TBD + * @since 0.2.0 * * @param array $additional_fields Extra attendee meta. * diff --git a/includes/mutation/class-update-attendee.php b/includes/mutation/class-update-attendee.php index 78f84a10..5fff8333 100644 --- a/includes/mutation/class-update-attendee.php +++ b/includes/mutation/class-update-attendee.php @@ -6,7 +6,7 @@ * who has purchased a ticket. * * @package WPGraphQL\QL_Events\Mutation - * @since TBD + * @since 0.2.0 */ namespace WPGraphQL\QL_Events\Mutation; @@ -27,7 +27,7 @@ class Update_Attendee extends Register_Attendee { /** * Registers mutation * - * @since TBD + * @since 0.2.0 * * @return void */ @@ -45,7 +45,7 @@ public static function register_mutation() { /** * Defines the mutation input field configuration * - * @since TBD + * @since 0.2.0 * * @return array */ @@ -87,7 +87,7 @@ public static function get_input_fields() { /** * Defines the mutation output field configuration * - * @since TBD + * @since 0.2.0 * * @return array */ @@ -116,7 +116,7 @@ public static function mutate_and_get_payload() { /** * Updates existing attendee using provided input data. * - * @since TBD + * @since 0.2.0 * * @param array $input Mutation input data. * @param AppContext $context Mutation's AppContext instance. diff --git a/includes/types/enum/class-events-virtual-show-embed-at-enum.php b/includes/types/enum/class-events-virtual-show-embed-at-enum.php index 1d5d42ab..630a3b64 100644 --- a/includes/types/enum/class-events-virtual-show-embed-at-enum.php +++ b/includes/types/enum/class-events-virtual-show-embed-at-enum.php @@ -3,7 +3,7 @@ * Enum Type - Events_Virtual_Show_Embed_At_Enum * * @package WPGraphQL\WooCommerce\Pro\Type\WPEnum - * @since TBD + * @since 0.3.0 */ namespace WPGraphQL\QL_Events\Type\WPEnum; @@ -15,7 +15,7 @@ class Events_Virtual_Show_Embed_At_Enum { /** * Registers type * - * @since TBD + * @since 0.3.0 * * @return void */ diff --git a/includes/types/enum/class-events-virtual-show-embed-to-enum.php b/includes/types/enum/class-events-virtual-show-embed-to-enum.php index 555f990e..09e209e1 100644 --- a/includes/types/enum/class-events-virtual-show-embed-to-enum.php +++ b/includes/types/enum/class-events-virtual-show-embed-to-enum.php @@ -3,7 +3,7 @@ * Enum Type - Events_Virtual_Show_Embed_To_Enum * * @package WPGraphQL\WooCommerce\Pro\Type\WPEnum - * @since TBD + * @since 0.3.0 */ namespace WPGraphQL\QL_Events\Type\WPEnum; @@ -15,7 +15,7 @@ class Events_Virtual_Show_Embed_To_Enum { /** * Registers type * - * @since TBD + * @since 0.3.0 * * @return void */ diff --git a/includes/types/interface/class-attendee-interface.php b/includes/types/interface/class-attendee-interface.php index b91d6200..6ed30168 100644 --- a/includes/types/interface/class-attendee-interface.php +++ b/includes/types/interface/class-attendee-interface.php @@ -5,7 +5,7 @@ * Registers Attendee interface. * * @package WPGraphQL\QL_Events\Type\WPInterface; - * @since TBD + * @since 0.2.0 */ namespace WPGraphQL\QL_Events\Type\WPInterface; @@ -26,7 +26,7 @@ class Attendee_Interface { /** * Registers the "Attendee" interface and "attendee" query. * - * @since TBD + * @since 0.2.0 * * @return void */ @@ -54,7 +54,7 @@ public static function register_interface() { * @param string|null $type_name Name of type to be resolved. * @param mixed $value Data source. * - * @since TBD + * @since 0.3.0 */ $type = apply_filters( 'ql_events_resolve_attendee_type', null, $value ); if ( ! empty( $type ) ) { @@ -152,7 +152,7 @@ function ( $post ) use ( $post_type_object ) { /** * Defines Attendee fields. All child type must have these fields as well. * - * @since TBD + * @since 0.2.0 * * @return array */ diff --git a/includes/types/interface/class-order-interface.php b/includes/types/interface/class-order-interface.php index 3f698271..611a3a94 100644 --- a/includes/types/interface/class-order-interface.php +++ b/includes/types/interface/class-order-interface.php @@ -5,7 +5,7 @@ * Registers Order interface. * * @package WPGraphQL\QL_Events\Type\WPInterface; - * @since TBD + * @since 0.2.0 */ namespace WPGraphQL\QL_Events\Type\WPInterface; @@ -24,7 +24,7 @@ class Order_Interface { /** * Registers the "Order" interface. * - * @since TBD + * @since 0.2.0 * * @return void */ @@ -47,7 +47,7 @@ public static function register_interface() { * * @param string|null $type_name Name of type to be resolved. * @param mixed $value Data source. - * @since TBD + * @since 0.3.0 */ $type = apply_filters( 'ql_events_resolve_tec_order_type', null, $value ); if ( ! empty( $type ) ) { @@ -70,7 +70,7 @@ public static function register_interface() { /** * Defines Ticket fields. All child type must have these fields as well. * - * @since TBD + * @since 0.2.0 * * @return array */ diff --git a/includes/types/interface/class-ticket-field.php b/includes/types/interface/class-ticket-field.php index ca10591a..fecd221b 100644 --- a/includes/types/interface/class-ticket-field.php +++ b/includes/types/interface/class-ticket-field.php @@ -3,7 +3,7 @@ * Ticket Field interface type. * * @package WPGraphQL\QL_Events\Type\WPInterface - * @since TBD + * @since 0.2.0 */ namespace WPGraphQL\QL_Events\Type\WPInterface; @@ -16,7 +16,7 @@ class Ticket_Field { /** * Register the Node interface * - * @since TBD + * @since 0.2.0 * * @return void */ diff --git a/includes/types/interface/class-ticket-interface.php b/includes/types/interface/class-ticket-interface.php index d34c0b18..7eb46b3d 100644 --- a/includes/types/interface/class-ticket-interface.php +++ b/includes/types/interface/class-ticket-interface.php @@ -5,7 +5,7 @@ * Registers Ticket interface. * * @package WPGraphQL\QL_Events\Type\WPInterface; - * @since TBD + * @since 0.2.0 */ namespace WPGraphQL\QL_Events\Type\WPInterface; @@ -24,7 +24,7 @@ class Ticket_Interface { /** * Registers the "Ticket" interface. * - * @since TBD + * @since 0.2.0 * * @return void */ @@ -50,7 +50,7 @@ public static function register_interface() { * @param string|null $type_name Name of type to be resolved. * @param mixed $value Data source. * - * @since TBD + * @since 0.3.0 */ $type = apply_filters( 'ql_events_resolve_ticket_type', null, $value ); if ( ! empty( $type ) ) { diff --git a/includes/types/object/class-event-type.php b/includes/types/object/class-event-type.php index aebaadb6..8f1be204 100644 --- a/includes/types/object/class-event-type.php +++ b/includes/types/object/class-event-type.php @@ -283,7 +283,7 @@ function( $date ) use ( $query ) { /** * Registers TEC events virtual "Event" type fields. * - * @since TBD + * @since 0.3.0 * * @return void */ diff --git a/includes/types/object/class-wooattendee-type.php b/includes/types/object/class-wooattendee-type.php index 8512e745..53845cff 100644 --- a/includes/types/object/class-wooattendee-type.php +++ b/includes/types/object/class-wooattendee-type.php @@ -48,7 +48,7 @@ private static function manager() { /** * Resolves the GraphQL type for "WooAttendee". * - * @since TBD + * @since 0.3.0 * * @return void */ @@ -64,7 +64,7 @@ public static function register_to_attendee_interface() { /** * Callback for resolver * - * @since TBD + * @since 0.3.0 * * @param mixed $type GraphQL Type. * @param mixed $value Attendee data object. diff --git a/includes/types/object/class-wooorder-type.php b/includes/types/object/class-wooorder-type.php index 91fea9d8..e3a90b8b 100644 --- a/includes/types/object/class-wooorder-type.php +++ b/includes/types/object/class-wooorder-type.php @@ -21,7 +21,7 @@ class WooOrder_Type { /** * Resolves the GraphQL type for "WooOrder". * - * @since TBD + * @since 0.3.0 * * @return void */ @@ -37,7 +37,7 @@ public static function register_to_order_interface() { /** * Callback for resolver * - * @since TBD + * @since 0.3.0 * * @param mixed $type GraphQL Type. * @param mixed $value Order data object. diff --git a/includes/types/object/class-wooticket-type.php b/includes/types/object/class-wooticket-type.php index c4334c86..f8c8734e 100644 --- a/includes/types/object/class-wooticket-type.php +++ b/includes/types/object/class-wooticket-type.php @@ -5,7 +5,7 @@ * Registers "Product" type to "Ticket" interface * * @package \WPGraphQL\QL_Events\Type\WPObject - * @since TBD + * @since 0.3.0 */ namespace WPGraphQL\QL_Events\Type\WPObject; @@ -21,7 +21,7 @@ class WooTicket_Type { /** * Resolves the GraphQL type for "WooOrder". * - * @since TBD + * @since 0.3.0 * * @return void */ diff --git a/ql-events.php b/ql-events.php index d24678b4..c264ae5e 100644 --- a/ql-events.php +++ b/ql-events.php @@ -2,7 +2,7 @@ /** * Plugin Name: QL Events * Description: Adds The Events Calendar Functionality to WPGraphQL schema. - * Version: 0.1.0 + * Version: 0.3.0 * Author: kidunot89 * Author URI: https://axistaylor.com * Text Domain: ql-events @@ -23,7 +23,7 @@ function constants() { // Plugin version. if ( ! defined( 'QL_EVENTS_VERSION' ) ) { - define( 'QL_EVENTS_VERSION', '0.0.1' ); + define( 'QL_EVENTS_VERSION', '0.3.0' ); } // Plugin Folder Path. if ( ! defined( 'QL_EVENTS_PLUGIN_DIR' ) ) {