.circleci
assets
bin
data
inc
admin-pages
api
schemas
broadcast-create.php
broadcast-update.php
checkout-form-create.php
checkout-form-update.php
customer-create.php
customer-update.php
discount-code-create.php
discount-code-update.php
domain-create.php
domain-update.php
email-create.php
email-update.php
event-create.php
event-update.php
membership-create.php
membership-update.php
payment-create.php
payment-update.php
product-create.php
product-update.php
site-create.php
site-update.php
webhook-create.php
webhook-update.php
class-register-endpoint.php
trait-rest-api.php
trait-wp-cli.php
builders
checkout
compat
contracts
country
database
debug
deprecated
development
domain-mapping
duplication
exception
functions
gateways
helpers
installers
integrations
internal
invoices
limitations
limits
list-tables
loaders
managers
mercator
models
next
objects
site-templates
sso
tax
traits
ui
updater
class-admin-notices.php
class-admin-themes-compatibility.php
class-ajax.php
class-api.php
class-async-calls.php
class-autoloader.php
class-cron.php
class-current.php
class-dashboard-statistics.php
class-dashboard-widgets.php
class-documentation.php
class-domain-mapping.php
class-faker.php
class-geolocation.php
class-helper.php
class-hooks.php
class-license.php
class-light-ajax.php
class-logger.php
class-maintenance-mode.php
class-newsletter.php
class-requirements.php
class-scripts.php
class-session-cookie.php
class-settings.php
class-sunrise.php
class-user-switching.php
class-views.php
class-whitelabel.php
class-wp-ultimo.php
lang
patches
tests
views
.gitignore
.phpcs.xml.dist
LICENSE
composer.json
composer.lock
constants.php
loco.xml
phpunit.xml.dist
readme.txt
sunrise.php
uninstall.php
wp-multisite-waas.php
77 lines
2.3 KiB
PHP
77 lines
2.3 KiB
PHP
<?php
|
|
/**
|
|
* Schema for event@update.
|
|
*
|
|
* @package WP_Ultimo\API\Schemas
|
|
* @since 2.0.11
|
|
*/
|
|
|
|
// Exit if accessed directly
|
|
defined('ABSPATH') || exit;
|
|
|
|
/**
|
|
* Schema for event@update.
|
|
*
|
|
* @since 2.0.11
|
|
* @internal last-generated in 2022-12
|
|
* @generated class generated by our build scripts, do not change!
|
|
*
|
|
* @since 2.0.11
|
|
*/
|
|
return array(
|
|
'severity' => array(
|
|
'description' => __('Severity of the problem.', 'wp-ultimo'),
|
|
'type' => 'integer',
|
|
'required' => false,
|
|
),
|
|
'date_created' => array(
|
|
'description' => __('Date when the event was created.', 'wp-ultimo'),
|
|
'type' => 'string',
|
|
'required' => false,
|
|
),
|
|
'payload' => array(
|
|
'description' => __('Payload of the event.', 'wp-ultimo'),
|
|
'type' => 'object',
|
|
'required' => false,
|
|
),
|
|
'initiator' => array(
|
|
'description' => __('The type of user responsible for initiating the event. There are two options: Manual and System. By default, the event is saved as manual.', 'wp-ultimo'),
|
|
'type' => 'string',
|
|
'required' => false,
|
|
'enum' => array(
|
|
'system',
|
|
'manual',
|
|
),
|
|
),
|
|
'object_type' => array(
|
|
'description' => __("The type of object related to this event. It's usually the model name.", 'wp-ultimo'),
|
|
'type' => 'string',
|
|
'required' => false,
|
|
),
|
|
'slug' => array(
|
|
'description' => __('The event slug. It needs to be unique and preferably make it clear what it is about. Example: account_created is about creating an account.', 'wp-ultimo'),
|
|
'type' => 'string',
|
|
'required' => false,
|
|
),
|
|
'object_id' => array(
|
|
'description' => __('The ID of the related objects.', 'wp-ultimo'),
|
|
'type' => 'integer',
|
|
'required' => false,
|
|
),
|
|
'date_modified' => array(
|
|
'description' => __('Model last modification date.', 'wp-ultimo'),
|
|
'type' => 'string',
|
|
'required' => false,
|
|
),
|
|
'migrated_from_id' => array(
|
|
'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-ultimo'),
|
|
'type' => 'integer',
|
|
'required' => false,
|
|
),
|
|
'skip_validation' => array(
|
|
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'),
|
|
'type' => 'boolean',
|
|
'required' => false,
|
|
),
|
|
);
|