Changeset 3246049
- Timestamp:
- 02/24/2025 09:55:02 PM (12 months ago)
- Location:
- wp-connectr/trunk
- Files:
-
- 7 edited
-
readme.txt (modified) (2 diffs)
-
src/DynamicSchemaProvider.php (modified) (3 diffs)
-
src/PowerResource/Post/PowerResource.php (modified) (1 diff)
-
src/PowerResource/Terms/PowerResource.php (modified) (1 diff)
-
src/PowerResource/User/Controller.php (modified) (1 diff)
-
src/ResourceManager.php (modified) (3 diffs)
-
vendor/composer/installed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-connectr/trunk/readme.txt
r3246047 r3246049 13 13 == Description == 14 14 15 Integrate your WordPress site with over 1000 services through Microsoft Power Automate. 15 Integrate your WordPress site with over 1000 services through Microsoft Power Automate. This is the official Power Automate connector for WordPress, certified by Microsoft. 16 16 Power Automate is a low-code service offered by Microsoft that allows you to automate workflows between your favorite apps and services to synchronize files, get notifications, collect data, and more. 17 18 Power Automate is Microsoft's version of Zapier, IFTTT, and Integromat. It is the preferred platform for Microsoft integrations. 17 19 18 20 This plugin requires a Power Automate premium license to be of any use. You can sign up for a free trial at https://make.powerautomate.com/ … … 44 46 == Changelog == 45 47 46 2025-02-2 0- version 1.2.047 * Show all post types and terms as resources (Dangerous! Use with caution)48 2025-02-24 - version 1.2.0 49 * User responses now contain much more data 48 50 49 51 2025-02-17 - version 1.1.1 -
wp-connectr/trunk/src/DynamicSchemaProvider.php
r3240765 r3246049 7 7 8 8 class DynamicSchemaProvider { 9 const SKIPPED_PROPERTIES = array( 'context' );10 9 const SUPPORTED_TYPES = array( 'string', 'integer', 'number', 'boolean', 'array', 'object' ); 11 10 const SUPPORTED_FORMATS = array( 'date-time', 'uri', 'email' ); … … 17 16 18 17 foreach ( $json_schema as $propname => $props ) { 19 if ( in_array( $propname, self::SKIPPED_PROPERTIES, true ) ) {20 continue;21 }22 23 18 $item = self::_swagger_items_object( $props, $propname, $remove_readonly ); 24 19 … … 32 27 33 28 $required[] = '' . $propname; 29 } 30 31 if ( 'context' === $propname ) { 32 $properties[ $propname ]['x-ms-visibility'] = 'advanced'; 34 33 } 35 34 } -
wp-connectr/trunk/src/PowerResource/Post/PowerResource.php
r3246047 r3246049 15 15 $controllers = array(); 16 16 17 foreach ( get_post_types( array( ), 'objects' ) as $post_type ) {17 foreach ( get_post_types( array( 'show_in_rest' => true ), 'objects' ) as $post_type ) { 18 18 if ( 'attachment' !== $post_type->name ) { 19 19 $controller = array( -
wp-connectr/trunk/src/PowerResource/Terms/PowerResource.php
r3246047 r3246049 17 17 $controllers = array(); 18 18 19 foreach ( get_taxonomies( array( ), 'objects' ) as $taxonomy ) {19 foreach ( get_taxonomies( array( 'show_in_rest' => true ), 'objects' ) as $taxonomy ) { 20 20 $controller = array( 21 21 'key' => $taxonomy->name, -
wp-connectr/trunk/src/PowerResource/User/Controller.php
r3173902 r3246049 71 71 return $args; 72 72 } 73 74 public function get_fields_for_response($request) { 75 if ( isset( $request['context'] ) && 'view' === $request['context'] ) { 76 unset($request['context']); 77 } 78 79 return parent::get_fields_for_response($request); 80 } 81 82 public function filter_response_by_context( $data, $context ) { 83 return $data; 84 } 73 85 } -
wp-connectr/trunk/src/ResourceManager.php
r3240765 r3246049 44 44 } 45 45 46 do_action( 'wp-connectr_before_init_resources' ); 47 46 48 // ADD ALL INCLUDED RESOURCES TO THIS LIST 47 49 $resources[] = $this->container->get(UserResource::class); … … 60 62 $this->validate_resources(); 61 63 64 do_action( 'wp-connectr_before_register_resources' ); 65 62 66 // Register all resources 63 67 foreach ( $this->resources as $resource ) { 64 68 $resource->register(); 65 69 } 70 71 do_action( 'wp-connectr_resources_registered', $this->resources ); 66 72 } 67 73 … … 74 80 protected function validate_resources() { 75 81 foreach ( $this->resources as $resource ) { 82 do_action( 'wp-connectr_validate_resource', $resource ); 83 84 // Allow other plugins to validate the resource and skip our validation 85 if ( apply_filters( 'wp-connectr_skip_resource_validation', false, $resource ) ) { 86 continue; 87 } 88 76 89 if ( ! $resource instanceof PowerResource\Base ) { 77 90 throw new \Exception( 'Resource must be an instance of PowerResource\Base' ); -
wp-connectr/trunk/vendor/composer/installed.php
r3246047 r3246049 4 4 'pretty_version' => 'dev-main', 5 5 'version' => 'dev-main', 6 'reference' => ' 8e3f49f7d66ed7031c168eb92c2659771b735196',6 'reference' => '901c00b6da36f13ddfd41c3340de6263910cb486', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 44 44 'pretty_version' => 'dev-main', 45 45 'version' => 'dev-main', 46 'reference' => ' 8e3f49f7d66ed7031c168eb92c2659771b735196',46 'reference' => '901c00b6da36f13ddfd41c3340de6263910cb486', 47 47 'type' => 'wordpress-plugin', 48 48 'install_path' => __DIR__ . '/../../',
Note: See TracChangeset
for help on using the changeset viewer.