diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000000..6998cdaa11 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,56 @@ +name: Testing + +on: + pull_request: + branches: + - "**" + +jobs: + phpunit: + strategy: + matrix: + operating-system: [ubuntu-20.04] + php-versions: ["8.2"] + runs-on: ${{ matrix.operating-system }} + steps: + - name: Checkout Code + uses: actions/checkout@v2 + with: + submodules: recursive + + - name: Add hosts to /etc/hosts + run: | + sudo echo "127.0.0.1 db" | sudo tee -a /etc/hosts + + - uses: hoverkraft-tech/compose-action@v1.5.1 + with: + compose-file: "dev/docker-compose.yml" + services: "db" + up-flags: "-d" + down-flags: "-v" + + - name: Install composer and dependencies + uses: php-actions/composer@v6 + + - name: Run migrations + run: | + mkdir var/private-files/dbupdate_documento + php src/tools/apply-updates.php + env: + APP_MODE: development + + - name: PHPUnit Tests + uses: php-actions/phpunit@v3 + env: + XDEBUG_MODE: coverage + with: + configuration: phpunit.xml + php_extensions: pdo_pgsql xdebug mbstring curl xml + args: tests --coverage-clover ./coverage.xml + + - name: Upload to Codecov + uses: codecov/codecov-action@v2 + with: + token: ${{ secrets.CODE_COV_TOKEN }} + files: ./coverage.xml + verbose: true diff --git a/.gitignore b/.gitignore index 44c4dbafb1..479268e804 100644 --- a/.gitignore +++ b/.gitignore @@ -14,4 +14,9 @@ src/themes/BaseV1/assets/css/main.css.map .phpunit.result.cache .php-cs-fixer.cache docker-data -media-query.js.LICENSE.txt \ No newline at end of file +media-query.js.LICENSE.txt +public/assets/ +src/.phpdoc +.phpunit* +.phpdocs* +.env diff --git a/composer.json b/composer.json index ae8b4b21ef..96b483ece9 100644 --- a/composer.json +++ b/composer.json @@ -1,23 +1,40 @@ { + "name": "mapasculturais/mapasculturais", + "version": "7.3.45", + "description": " Mapas Culturais é uma plataforma colaborativa que reúne informações sobre agentes, espaços, eventos e projetos culturais, fornecendo ao poder público uma radiografia da área de cultura e ao cidadão um mapa de espaços e eventos culturais da região", + "keywords": ["php", "docker", "gis", "postgres"], + "type": "project", + "license": "AGPL", + "require-dev": { + "phpunit/phpunit": "^10.5", + "squizlabs/php_codesniffer": "3.*", + "vimeo/psalm": "^5.17", + "zircote/swagger-php": "^4.8" + }, "require": { - "acelaya/doctrine-enum-type": "^2.3", + "php": "^7.3 || ^8", + "acelaya/doctrine-enum-type": "^2.5", "akrabat/ip-address-middleware": "^2.1", + "creof/doctrine2-spatial": "^1", "doctrine/annotations": "^2.0", "doctrine/dbal": "^3.6", "doctrine/orm": "2.16.*", "firebase/php-jwt": "^6.4", + "league/csv": "^9.6.2", "michelf/php-markdown": "1.*", "monolog/monolog": "^3.4", "mustache/mustache": "^2.11", + "nyholm/psr7": "^1.4", + "opauth/authentik": "*", + "opauth/logincidadao": "*", "opauth/openid": "*", - "opauth/logincidadao" : "*", - "opauth/authentik" : "*", + "php-curl-class/php-curl-class": "^9.18", "pomo/pomo": "^1.5", "psy/psysh": "^0.11.12", "respect/validation": "^2.2", "sinergi/browser-detector": "^6.1", "slim/psr7": "^1.6", - "slim/slim": "4.*", + "slim/slim": "^4.0", "smottt/wideimage": "*", "symfony/amazon-mailer": "^6.3", "symfony/cache": "^6.2", @@ -32,17 +49,25 @@ "symfony/console": "^6.4.6", "symfony/serializer": "^7.0", "symfony/property-access": "^7.0", - "symfony/validator": "^7.0" + "symfony/validator": "^7.0", + "symfony/console": "^6.4.6", + "league/csv": "^9.6.2" }, "autoload": { "psr-4": { "App\\": "app/src", "App\\Tests\\": "app/tests", + "MapasCulturaisTests\\": "tests/unit/classes", "MapasCulturais\\": "src/core", "MapasCulturais\\Modules\\": "src/modules", "MapasCulturais\\Themes\\": "src/themes" } }, + "config": { + "preferred-install": "dist", + "sort-packages": true, + "optimize-autoloader": true + }, "repositories": [ { "type": "git", diff --git a/composer.lock b/composer.lock index 1f97122482..c5d434ea57 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "e42f1a6b1a0d6699be91627612f19cf5", + "content-hash": "7febe59ff68e42b1f5c10d67356bbf4d", "packages": [ { "name": "acelaya/doctrine-enum-type", @@ -74,28 +74,28 @@ }, { "name": "akrabat/ip-address-middleware", - "version": "2.1.0", + "version": "2.2.0", "source": { "type": "git", "url": "https://github.com/akrabat/ip-address-middleware.git", - "reference": "00e090afb08274320b86108130a23f59da9cd3f6" + "reference": "5e3b94b9c29c8e0cde80941bb87d6a68a6532b9d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/akrabat/ip-address-middleware/zipball/00e090afb08274320b86108130a23f59da9cd3f6", - "reference": "00e090afb08274320b86108130a23f59da9cd3f6", + "url": "https://api.github.com/repos/akrabat/ip-address-middleware/zipball/5e3b94b9c29c8e0cde80941bb87d6a68a6532b9d", + "reference": "5e3b94b9c29c8e0cde80941bb87d6a68a6532b9d", "shasum": "" }, "require": { "php": "^7.2 || ^8.0", - "psr/http-message": "^1.0", + "psr/http-message": "^1.0 || ^2.0", "psr/http-server-middleware": "^1.0" }, "replace": { "akrabat/rka-ip-address-middleware": "*" }, "require-dev": { - "laminas/laminas-diactoros": "^2.4", + "laminas/laminas-diactoros": "^2.4 || ^3.0", "phpunit/phpunit": "^8.5.8 || ^9.4", "squizlabs/php_codesniffer": "^3.2" }, @@ -125,9 +125,9 @@ ], "support": { "issues": "https://github.com/akrabat/ip-address-middleware/issues", - "source": "https://github.com/akrabat/ip-address-middleware/tree/2.1.0" + "source": "https://github.com/akrabat/ip-address-middleware/tree/2.2.0" }, - "time": "2021-11-11T21:19:34+00:00" + "time": "2024-06-09T13:39:46+00:00" }, { "name": "async-aws/core", @@ -199,16 +199,16 @@ }, { "name": "async-aws/ses", - "version": "1.7.0", + "version": "1.8.0", "source": { "type": "git", "url": "https://github.com/async-aws/ses.git", - "reference": "3aed25813b21aeab96a60a658edf1e23531d2011" + "reference": "9bf4873210cfc8b86e4abb18d1d707f9ae247ace" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/async-aws/ses/zipball/3aed25813b21aeab96a60a658edf1e23531d2011", - "reference": "3aed25813b21aeab96a60a658edf1e23531d2011", + "url": "https://api.github.com/repos/async-aws/ses/zipball/9bf4873210cfc8b86e4abb18d1d707f9ae247ace", + "reference": "9bf4873210cfc8b86e4abb18d1d707f9ae247ace", "shasum": "" }, "require": { @@ -219,7 +219,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.7-dev" + "dev-master": "1.8-dev" } }, "autoload": { @@ -240,7 +240,7 @@ "ses" ], "support": { - "source": "https://github.com/async-aws/ses/tree/1.7.0" + "source": "https://github.com/async-aws/ses/tree/1.8.0" }, "funding": [ { @@ -252,7 +252,238 @@ "type": "github" } ], - "time": "2023-12-13T20:52:19+00:00" + "time": "2024-05-14T07:34:42+00:00" + }, + { + "name": "creof/doctrine2-spatial", + "version": "1.2.0", + "source": { + "type": "git", + "url": "https://github.com/creof/doctrine2-spatial.git", + "reference": "58ea5fae1c1b450ee08d7dac25cd9e8f5e6fdebd" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/creof/doctrine2-spatial/zipball/58ea5fae1c1b450ee08d7dac25cd9e8f5e6fdebd", + "reference": "58ea5fae1c1b450ee08d7dac25cd9e8f5e6fdebd", + "shasum": "" + }, + "require": { + "creof/geo-parser": "~2.0", + "creof/wkb-parser": "~2.0", + "creof/wkt-parser": "~2.0", + "doctrine/orm": ">=2.3" + }, + "require-dev": { + "phpunit/phpcov": "*", + "phpunit/phpunit": "<5.0", + "satooshi/php-coveralls": "~1.0" + }, + "type": "library", + "autoload": { + "psr-0": { + "CrEOF\\Spatial": "lib/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Derek Lambert", + "email": "dlambert@dereklambert.com" + } + ], + "description": "Doctrine2 multi-platform support for spatial types and functions", + "keywords": [ + "database", + "dbal", + "geography", + "geometry", + "gis", + "mysql", + "opengis", + "orm", + "postgis", + "postgresql", + "spatial" + ], + "support": { + "issues": "https://github.com/creof/doctrine2-spatial/issues", + "source": "https://github.com/creof/doctrine2-spatial/tree/master" + }, + "time": "2017-07-13T16:48:25+00:00" + }, + { + "name": "creof/geo-parser", + "version": "2.2.1", + "source": { + "type": "git", + "url": "https://github.com/creof/geo-parser.git", + "reference": "b55553a54c7775576c9ee629847973d0b6d7cbed" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/creof/geo-parser/zipball/b55553a54c7775576c9ee629847973d0b6d7cbed", + "reference": "b55553a54c7775576c9ee629847973d0b6d7cbed", + "shasum": "" + }, + "require": { + "doctrine/lexer": ">=1.0", + "ext-spl": "*", + "php": ">=7.1" + }, + "require-dev": { + "codeclimate/php-test-reporter": "dev-master", + "phpunit/phpunit": "~5.0" + }, + "type": "library", + "autoload": { + "psr-0": { + "CrEOF\\Geo\\String": "lib/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Derek J. Lambert", + "email": "dlambert@dereklambert.com" + } + ], + "description": "Parser for geography coordinate strings", + "keywords": [ + "coordinate", + "geo", + "geography", + "geometry", + "lexer", + "parser", + "spatial", + "string", + "text" + ], + "support": { + "issues": "https://github.com/creof/geo-parser/issues", + "source": "https://github.com/creof/geo-parser/tree/master" + }, + "time": "2019-08-07T17:45:01+00:00" + }, + { + "name": "creof/wkb-parser", + "version": "v2.4", + "source": { + "type": "git", + "url": "https://github.com/creof/wkb-parser.git", + "reference": "97ac770f241adce3c46e3feb96e0e092531c833d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/creof/wkb-parser/zipball/97ac770f241adce3c46e3feb96e0e092531c833d", + "reference": "97ac770f241adce3c46e3feb96e0e092531c833d", + "shasum": "" + }, + "require": { + "ext-spl": "*", + "php": ">=5.3.3" + }, + "require-dev": { + "codeclimate/php-test-reporter": "dev-master", + "phpunit/phpunit": ">=4.8", + "satooshi/php-coveralls": "~1.0" + }, + "type": "library", + "autoload": { + "psr-0": { + "CrEOF\\Geo\\WKB": "lib/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Derek J. Lambert", + "email": "dlambert@dereklambert.com" + } + ], + "description": "Parser for well-known binary (WKB/EWKB) object data", + "keywords": [ + "ewkb", + "geography", + "geometry", + "parser", + "spatial", + "string", + "text", + "wkb" + ], + "support": { + "issues": "https://github.com/creof/wkb-parser/issues", + "source": "https://github.com/creof/wkb-parser/tree/v2.4" + }, + "time": "2022-02-15T22:46:31+00:00" + }, + { + "name": "creof/wkt-parser", + "version": "2.0.0", + "source": { + "type": "git", + "url": "https://github.com/creof/wkt-parser.git", + "reference": "307a3fdc0b705c7b59b47751a7f7e8e45f98d11e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/creof/wkt-parser/zipball/307a3fdc0b705c7b59b47751a7f7e8e45f98d11e", + "reference": "307a3fdc0b705c7b59b47751a7f7e8e45f98d11e", + "shasum": "" + }, + "require": { + "doctrine/lexer": ">=1.0", + "ext-spl": "*", + "php": ">=5.3.3" + }, + "require-dev": { + "codeclimate/php-test-reporter": "dev-master", + "phpunit/phpunit": ">=4.8" + }, + "type": "library", + "autoload": { + "psr-0": { + "CrEOF\\Geo\\WKT": "lib/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Derek J. Lambert", + "email": "dlambert@dereklambert.com" + } + ], + "description": "Parser for well-known text (WKT) object strings", + "keywords": [ + "ewkt", + "geography", + "geometry", + "lexer", + "parser", + "spatial", + "string", + "text", + "wkt" + ], + "support": { + "issues": "https://github.com/creof/wkt-parser/issues", + "source": "https://github.com/creof/wkt-parser/tree/master" + }, + "time": "2015-11-18T21:20:29+00:00" }, { "name": "doctrine/annotations", @@ -602,16 +833,16 @@ }, { "name": "doctrine/dbal", - "version": "3.8.3", + "version": "3.8.6", "source": { "type": "git", "url": "https://github.com/doctrine/dbal.git", - "reference": "db922ba9436b7b18a23d1653a0b41ff2369ca41c" + "reference": "b7411825cf7efb7e51f9791dea19d86e43b399a1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/dbal/zipball/db922ba9436b7b18a23d1653a0b41ff2369ca41c", - "reference": "db922ba9436b7b18a23d1653a0b41ff2369ca41c", + "url": "https://api.github.com/repos/doctrine/dbal/zipball/b7411825cf7efb7e51f9791dea19d86e43b399a1", + "reference": "b7411825cf7efb7e51f9791dea19d86e43b399a1", "shasum": "" }, "require": { @@ -627,12 +858,12 @@ "doctrine/coding-standard": "12.0.0", "fig/log-test": "^1", "jetbrains/phpstorm-stubs": "2023.1", - "phpstan/phpstan": "1.10.58", - "phpstan/phpstan-strict-rules": "^1.5", - "phpunit/phpunit": "9.6.16", + "phpstan/phpstan": "1.11.5", + "phpstan/phpstan-strict-rules": "^1.6", + "phpunit/phpunit": "9.6.19", "psalm/plugin-phpunit": "0.18.4", "slevomat/coding-standard": "8.13.1", - "squizlabs/php_codesniffer": "3.9.0", + "squizlabs/php_codesniffer": "3.10.1", "symfony/cache": "^5.4|^6.0|^7.0", "symfony/console": "^4.4|^5.4|^6.0|^7.0", "vimeo/psalm": "4.30.0" @@ -695,7 +926,7 @@ ], "support": { "issues": "https://github.com/doctrine/dbal/issues", - "source": "https://github.com/doctrine/dbal/tree/3.8.3" + "source": "https://github.com/doctrine/dbal/tree/3.8.6" }, "funding": [ { @@ -711,7 +942,7 @@ "type": "tidelift" } ], - "time": "2024-03-03T15:55:06+00:00" + "time": "2024-06-19T10:38:17+00:00" }, { "name": "doctrine/deprecations", @@ -762,16 +993,16 @@ }, { "name": "doctrine/event-manager", - "version": "2.0.0", + "version": "2.0.1", "source": { "type": "git", "url": "https://github.com/doctrine/event-manager.git", - "reference": "750671534e0241a7c50ea5b43f67e23eb5c96f32" + "reference": "b680156fa328f1dfd874fd48c7026c41570b9c6e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/event-manager/zipball/750671534e0241a7c50ea5b43f67e23eb5c96f32", - "reference": "750671534e0241a7c50ea5b43f67e23eb5c96f32", + "url": "https://api.github.com/repos/doctrine/event-manager/zipball/b680156fa328f1dfd874fd48c7026c41570b9c6e", + "reference": "b680156fa328f1dfd874fd48c7026c41570b9c6e", "shasum": "" }, "require": { @@ -781,10 +1012,10 @@ "doctrine/common": "<2.9" }, "require-dev": { - "doctrine/coding-standard": "^10", + "doctrine/coding-standard": "^12", "phpstan/phpstan": "^1.8.8", - "phpunit/phpunit": "^9.5", - "vimeo/psalm": "^4.28" + "phpunit/phpunit": "^10.5", + "vimeo/psalm": "^5.24" }, "type": "library", "autoload": { @@ -833,7 +1064,7 @@ ], "support": { "issues": "https://github.com/doctrine/event-manager/issues", - "source": "https://github.com/doctrine/event-manager/tree/2.0.0" + "source": "https://github.com/doctrine/event-manager/tree/2.0.1" }, "funding": [ { @@ -849,7 +1080,7 @@ "type": "tidelift" } ], - "time": "2022-10-12T20:59:15+00:00" + "time": "2024-05-22T20:47:39+00:00" }, { "name": "doctrine/inflector", @@ -1193,16 +1424,16 @@ }, { "name": "doctrine/persistence", - "version": "3.3.2", + "version": "3.3.3", "source": { "type": "git", "url": "https://github.com/doctrine/persistence.git", - "reference": "477da35bd0255e032826f440b94b3e37f2d56f42" + "reference": "b337726451f5d530df338fc7f68dee8781b49779" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/persistence/zipball/477da35bd0255e032826f440b94b3e37f2d56f42", - "reference": "477da35bd0255e032826f440b94b3e37f2d56f42", + "url": "https://api.github.com/repos/doctrine/persistence/zipball/b337726451f5d530df338fc7f68dee8781b49779", + "reference": "b337726451f5d530df338fc7f68dee8781b49779", "shasum": "" }, "require": { @@ -1214,15 +1445,14 @@ "doctrine/common": "<2.10" }, "require-dev": { - "composer/package-versions-deprecated": "^1.11", - "doctrine/coding-standard": "^11", + "doctrine/coding-standard": "^12", "doctrine/common": "^3.0", - "phpstan/phpstan": "1.9.4", + "phpstan/phpstan": "1.11.1", "phpstan/phpstan-phpunit": "^1", "phpstan/phpstan-strict-rules": "^1.1", "phpunit/phpunit": "^8.5 || ^9.5", "symfony/cache": "^4.4 || ^5.4 || ^6.0", - "vimeo/psalm": "4.30.0 || 5.3.0" + "vimeo/psalm": "4.30.0 || 5.24.0" }, "type": "library", "autoload": { @@ -1271,7 +1501,7 @@ ], "support": { "issues": "https://github.com/doctrine/persistence/issues", - "source": "https://github.com/doctrine/persistence/tree/3.3.2" + "source": "https://github.com/doctrine/persistence/tree/3.3.3" }, "funding": [ { @@ -1287,7 +1517,7 @@ "type": "tidelift" } ], - "time": "2024-03-12T14:54:36+00:00" + "time": "2024-06-20T10:14:30+00:00" }, { "name": "egulias/email-validator", @@ -1414,26 +1644,26 @@ }, { "name": "firebase/php-jwt", - "version": "v6.10.0", + "version": "v6.10.1", "source": { "type": "git", "url": "https://github.com/firebase/php-jwt.git", - "reference": "a49db6f0a5033aef5143295342f1c95521b075ff" + "reference": "500501c2ce893c824c801da135d02661199f60c5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/firebase/php-jwt/zipball/a49db6f0a5033aef5143295342f1c95521b075ff", - "reference": "a49db6f0a5033aef5143295342f1c95521b075ff", + "url": "https://api.github.com/repos/firebase/php-jwt/zipball/500501c2ce893c824c801da135d02661199f60c5", + "reference": "500501c2ce893c824c801da135d02661199f60c5", "shasum": "" }, "require": { - "php": "^7.4||^8.0" + "php": "^8.0" }, "require-dev": { - "guzzlehttp/guzzle": "^6.5||^7.4", + "guzzlehttp/guzzle": "^7.4", "phpspec/prophecy-phpunit": "^2.0", "phpunit/phpunit": "^9.5", - "psr/cache": "^1.0||^2.0", + "psr/cache": "^2.0||^3.0", "psr/http-client": "^1.0", "psr/http-factory": "^1.0" }, @@ -1471,46 +1701,45 @@ ], "support": { "issues": "https://github.com/firebase/php-jwt/issues", - "source": "https://github.com/firebase/php-jwt/tree/v6.10.0" + "source": "https://github.com/firebase/php-jwt/tree/v6.10.1" }, - "time": "2023-12-01T16:26:39+00:00" + "time": "2024-05-18T18:05:11+00:00" }, { "name": "league/csv", - "version": "9.15.0", + "version": "9.16.0", "source": { "type": "git", "url": "https://github.com/thephpleague/csv.git", - "reference": "fa7e2441c0bc9b2360f4314fd6c954f7ff40d435" + "reference": "998280c6c34bd67d8125fdc8b45bae28d761b440" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/csv/zipball/fa7e2441c0bc9b2360f4314fd6c954f7ff40d435", - "reference": "fa7e2441c0bc9b2360f4314fd6c954f7ff40d435", + "url": "https://api.github.com/repos/thephpleague/csv/zipball/998280c6c34bd67d8125fdc8b45bae28d761b440", + "reference": "998280c6c34bd67d8125fdc8b45bae28d761b440", "shasum": "" }, "require": { "ext-filter": "*", - "ext-json": "*", - "ext-mbstring": "*", "php": "^8.1.2" }, "require-dev": { - "doctrine/collections": "^2.1.4", + "doctrine/collections": "^2.2.2", "ext-dom": "*", "ext-xdebug": "*", - "friendsofphp/php-cs-fixer": "^v3.22.0", + "friendsofphp/php-cs-fixer": "^3.57.1", "phpbench/phpbench": "^1.2.15", - "phpstan/phpstan": "^1.10.57", - "phpstan/phpstan-deprecation-rules": "^1.1.4", - "phpstan/phpstan-phpunit": "^1.3.15", - "phpstan/phpstan-strict-rules": "^1.5.2", - "phpunit/phpunit": "^10.5.9", - "symfony/var-dumper": "^6.4.2" + "phpstan/phpstan": "^1.11.1", + "phpstan/phpstan-deprecation-rules": "^1.2.0", + "phpstan/phpstan-phpunit": "^1.4.0", + "phpstan/phpstan-strict-rules": "^1.6.0", + "phpunit/phpunit": "^10.5.16 || ^11.1.3", + "symfony/var-dumper": "^6.4.6 || ^7.0.7" }, "suggest": { "ext-dom": "Required to use the XMLConverter and the HTMLConverter classes", - "ext-iconv": "Needed to ease transcoding CSV using iconv stream filters" + "ext-iconv": "Needed to ease transcoding CSV using iconv stream filters", + "ext-mbstring": "Needed to ease transcoding CSV using mb stream filters" }, "type": "library", "extra": { @@ -1562,7 +1791,7 @@ "type": "github" } ], - "time": "2024-02-20T20:00:00+00:00" + "time": "2024-05-24T11:04:54+00:00" }, { "name": "michelf/php-markdown", @@ -1619,16 +1848,16 @@ }, { "name": "monolog/monolog", - "version": "3.6.0", + "version": "3.7.0", "source": { "type": "git", "url": "https://github.com/Seldaek/monolog.git", - "reference": "4b18b21a5527a3d5ffdac2fd35d3ab25a9597654" + "reference": "f4393b648b78a5408747de94fca38beb5f7e9ef8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Seldaek/monolog/zipball/4b18b21a5527a3d5ffdac2fd35d3ab25a9597654", - "reference": "4b18b21a5527a3d5ffdac2fd35d3ab25a9597654", + "url": "https://api.github.com/repos/Seldaek/monolog/zipball/f4393b648b78a5408747de94fca38beb5f7e9ef8", + "reference": "f4393b648b78a5408747de94fca38beb5f7e9ef8", "shasum": "" }, "require": { @@ -1704,7 +1933,7 @@ ], "support": { "issues": "https://github.com/Seldaek/monolog/issues", - "source": "https://github.com/Seldaek/monolog/tree/3.6.0" + "source": "https://github.com/Seldaek/monolog/tree/3.7.0" }, "funding": [ { @@ -1716,7 +1945,7 @@ "type": "tidelift" } ], - "time": "2024-04-12T21:02:21+00:00" + "time": "2024-06-28T09:40:51+00:00" }, { "name": "mustache/mustache", @@ -1937,6 +2166,84 @@ }, "time": "2024-03-17T08:10:35+00:00" }, + { + "name": "nyholm/psr7", + "version": "1.8.1", + "source": { + "type": "git", + "url": "https://github.com/Nyholm/psr7.git", + "reference": "aa5fc277a4f5508013d571341ade0c3886d4d00e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Nyholm/psr7/zipball/aa5fc277a4f5508013d571341ade0c3886d4d00e", + "reference": "aa5fc277a4f5508013d571341ade0c3886d4d00e", + "shasum": "" + }, + "require": { + "php": ">=7.2", + "psr/http-factory": "^1.0", + "psr/http-message": "^1.1 || ^2.0" + }, + "provide": { + "php-http/message-factory-implementation": "1.0", + "psr/http-factory-implementation": "1.0", + "psr/http-message-implementation": "1.0" + }, + "require-dev": { + "http-interop/http-factory-tests": "^0.9", + "php-http/message-factory": "^1.0", + "php-http/psr7-integration-tests": "^1.0", + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.4", + "symfony/error-handler": "^4.4" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.8-dev" + } + }, + "autoload": { + "psr-4": { + "Nyholm\\Psr7\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com" + }, + { + "name": "Martijn van der Ven", + "email": "martijn@vanderven.se" + } + ], + "description": "A fast PHP7 implementation of PSR-7", + "homepage": "https://tnyholm.se", + "keywords": [ + "psr-17", + "psr-7" + ], + "support": { + "issues": "https://github.com/Nyholm/psr7/issues", + "source": "https://github.com/Nyholm/psr7/tree/1.8.1" + }, + "funding": [ + { + "url": "https://github.com/Zegnat", + "type": "github" + }, + { + "url": "https://github.com/nyholm", + "type": "github" + } + ], + "time": "2023-11-13T09:31:12+00:00" + }, { "name": "opauth/authentik", "version": "v1.0.0", @@ -2107,6 +2414,86 @@ }, "time": "2012-06-08T07:00:03+00:00" }, + { + "name": "php-curl-class/php-curl-class", + "version": "9.19.2", + "source": { + "type": "git", + "url": "https://github.com/php-curl-class/php-curl-class.git", + "reference": "c41efeb4ea2dc3cf8f90f8f967b0fcf45a41e294" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-curl-class/php-curl-class/zipball/c41efeb4ea2dc3cf8f90f8f967b0fcf45a41e294", + "reference": "c41efeb4ea2dc3cf8f90f8f967b0fcf45a41e294", + "shasum": "" + }, + "require": { + "ext-curl": "*", + "php": ">=7.0" + }, + "require-dev": { + "dealerdirect/phpcodesniffer-composer-installer": "*", + "ext-gd": "*", + "friendsofphp/php-cs-fixer": "*", + "phpcompatibility/php-compatibility": "dev-develop", + "phpcsstandards/phpcsutils": "@alpha", + "phpunit/phpunit": "*", + "squizlabs/php_codesniffer": "*", + "vimeo/psalm": ">=0.3.63" + }, + "suggest": { + "ext-mbstring": "*" + }, + "type": "library", + "autoload": { + "psr-4": { + "Curl\\": "src/Curl/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Unlicense" + ], + "authors": [ + { + "name": "Zach Borboa" + }, + { + "name": "Contributors", + "homepage": "https://github.com/php-curl-class/php-curl-class/graphs/contributors" + } + ], + "description": "PHP Curl Class makes it easy to send HTTP requests and integrate with web APIs.", + "homepage": "https://github.com/php-curl-class/php-curl-class", + "keywords": [ + "API-Client", + "api", + "class", + "client", + "curl", + "framework", + "http", + "http-client", + "http-proxy", + "json", + "php", + "php-curl", + "php-curl-library", + "proxy", + "requests", + "restful", + "web-scraper", + "web-scraping ", + "web-service", + "xml" + ], + "support": { + "issues": "https://github.com/php-curl-class/php-curl-class/issues", + "source": "https://github.com/php-curl-class/php-curl-class/tree/9.19.2" + }, + "time": "2024-04-09T18:03:13+00:00" + }, { "name": "pomo/pomo", "version": "v1.5.0", @@ -2329,20 +2716,20 @@ }, { "name": "psr/http-factory", - "version": "1.0.2", + "version": "1.1.0", "source": { "type": "git", "url": "https://github.com/php-fig/http-factory.git", - "reference": "e616d01114759c4c489f93b099585439f795fe35" + "reference": "2b4765fddfe3b508ac62f829e852b1501d3f6e8a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/http-factory/zipball/e616d01114759c4c489f93b099585439f795fe35", - "reference": "e616d01114759c4c489f93b099585439f795fe35", + "url": "https://api.github.com/repos/php-fig/http-factory/zipball/2b4765fddfe3b508ac62f829e852b1501d3f6e8a", + "reference": "2b4765fddfe3b508ac62f829e852b1501d3f6e8a", "shasum": "" }, "require": { - "php": ">=7.0.0", + "php": ">=7.1", "psr/http-message": "^1.0 || ^2.0" }, "type": "library", @@ -2366,7 +2753,7 @@ "homepage": "https://www.php-fig.org/" } ], - "description": "Common interfaces for PSR-7 HTTP message factories", + "description": "PSR-17: Common interfaces for PSR-7 HTTP message factories", "keywords": [ "factory", "http", @@ -2378,22 +2765,22 @@ "response" ], "support": { - "source": "https://github.com/php-fig/http-factory/tree/1.0.2" + "source": "https://github.com/php-fig/http-factory" }, - "time": "2023-04-10T20:10:41+00:00" + "time": "2024-04-15T12:06:14+00:00" }, { "name": "psr/http-message", - "version": "1.1", + "version": "2.0", "source": { "type": "git", "url": "https://github.com/php-fig/http-message.git", - "reference": "cb6ce4845ce34a8ad9e68117c10ee90a29919eba" + "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/http-message/zipball/cb6ce4845ce34a8ad9e68117c10ee90a29919eba", - "reference": "cb6ce4845ce34a8ad9e68117c10ee90a29919eba", + "url": "https://api.github.com/repos/php-fig/http-message/zipball/402d35bcb92c70c026d1a6a9883f06b2ead23d71", + "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71", "shasum": "" }, "require": { @@ -2402,7 +2789,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.1.x-dev" + "dev-master": "2.0.x-dev" } }, "autoload": { @@ -2417,7 +2804,7 @@ "authors": [ { "name": "PHP-FIG", - "homepage": "http://www.php-fig.org/" + "homepage": "https://www.php-fig.org/" } ], "description": "Common interface for HTTP messages", @@ -2431,9 +2818,9 @@ "response" ], "support": { - "source": "https://github.com/php-fig/http-message/tree/1.1" + "source": "https://github.com/php-fig/http-message/tree/2.0" }, - "time": "2023-04-04T09:50:52+00:00" + "time": "2023-04-04T09:54:51+00:00" }, { "name": "psr/http-server-handler", @@ -2900,40 +3287,40 @@ }, { "name": "slim/psr7", - "version": "1.6.1", + "version": "1.7.0", "source": { "type": "git", "url": "https://github.com/slimphp/Slim-Psr7.git", - "reference": "72d2b2bac94ab4575d369f605dbfafbe168d3163" + "reference": "753e9646def5ff4db1a06e5cf4ef539bfd30f467" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/slimphp/Slim-Psr7/zipball/72d2b2bac94ab4575d369f605dbfafbe168d3163", - "reference": "72d2b2bac94ab4575d369f605dbfafbe168d3163", + "url": "https://api.github.com/repos/slimphp/Slim-Psr7/zipball/753e9646def5ff4db1a06e5cf4ef539bfd30f467", + "reference": "753e9646def5ff4db1a06e5cf4ef539bfd30f467", "shasum": "" }, "require": { "fig/http-message-util": "^1.1.5", - "php": "^7.4 || ^8.0", - "psr/http-factory": "^1.0", - "psr/http-message": "^1.0", + "php": "^8.0", + "psr/http-factory": "^1.1", + "psr/http-message": "^1.0 || ^2.0", "ralouphie/getallheaders": "^3.0", - "symfony/polyfill-php80": "^1.26" + "symfony/polyfill-php80": "^1.29" }, "provide": { - "psr/http-factory-implementation": "1.0", - "psr/http-message-implementation": "1.0" + "psr/http-factory-implementation": "^1.0", + "psr/http-message-implementation": "^1.0 || ^2.0" }, "require-dev": { - "adriansuter/php-autoload-override": "^1.3", + "adriansuter/php-autoload-override": "^1.4", "ext-json": "*", - "http-interop/http-factory-tests": "^0.9.0", - "php-http/psr7-integration-tests": "1.1", - "phpspec/prophecy": "^1.15", - "phpspec/prophecy-phpunit": "^2.0", - "phpstan/phpstan": "^1.8", - "phpunit/phpunit": "^9.5", - "squizlabs/php_codesniffer": "^3.7" + "http-interop/http-factory-tests": "^1.1.0", + "php-http/psr7-integration-tests": "1.3.0", + "phpspec/prophecy": "^1.19", + "phpspec/prophecy-phpunit": "^2.2", + "phpstan/phpstan": "^1.11", + "phpunit/phpunit": "^9.6", + "squizlabs/php_codesniffer": "^3.10" }, "type": "library", "autoload": { @@ -2976,22 +3363,22 @@ ], "support": { "issues": "https://github.com/slimphp/Slim-Psr7/issues", - "source": "https://github.com/slimphp/Slim-Psr7/tree/1.6.1" + "source": "https://github.com/slimphp/Slim-Psr7/tree/1.7.0" }, - "time": "2023-04-17T16:02:20+00:00" + "time": "2024-06-08T14:48:17+00:00" }, { "name": "slim/slim", - "version": "4.13.0", + "version": "4.14.0", "source": { "type": "git", "url": "https://github.com/slimphp/Slim.git", - "reference": "038fd5713d5a41636fdff0e8dcceedecdd17fc17" + "reference": "5943393b88716eb9e82c4161caa956af63423913" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/slimphp/Slim/zipball/038fd5713d5a41636fdff0e8dcceedecdd17fc17", - "reference": "038fd5713d5a41636fdff0e8dcceedecdd17fc17", + "url": "https://api.github.com/repos/slimphp/Slim/zipball/5943393b88716eb9e82c4161caa956af63423913", + "reference": "5943393b88716eb9e82c4161caa956af63423913", "shasum": "" }, "require": { @@ -2999,7 +3386,7 @@ "nikic/fast-route": "^1.3", "php": "^7.4 || ^8.0", "psr/container": "^1.0 || ^2.0", - "psr/http-factory": "^1.0", + "psr/http-factory": "^1.1", "psr/http-message": "^1.1 || ^2.0", "psr/http-server-handler": "^1.0", "psr/http-server-middleware": "^1.0", @@ -3016,11 +3403,12 @@ "nyholm/psr7-server": "^1.1", "phpspec/prophecy": "^1.19", "phpspec/prophecy-phpunit": "^2.1", - "phpstan/phpstan": "^1.10", + "phpstan/phpstan": "^1.11", "phpunit/phpunit": "^9.6", "slim/http": "^1.3", "slim/psr7": "^1.6", - "squizlabs/php_codesniffer": "^3.9" + "squizlabs/php_codesniffer": "^3.10", + "vimeo/psalm": "^5.24" }, "suggest": { "ext-simplexml": "Needed to support XML format in BodyParsingMiddleware", @@ -3093,7 +3481,7 @@ "type": "tidelift" } ], - "time": "2024-03-03T21:25:30+00:00" + "time": "2024-06-13T08:54:48+00:00" }, { "name": "smottt/wideimage", @@ -3136,16 +3524,16 @@ }, { "name": "symfony/amazon-mailer", - "version": "v6.4.3", + "version": "v6.4.8", "source": { "type": "git", "url": "https://github.com/symfony/amazon-mailer.git", - "reference": "0c9294b1cf610a6dd77b6ce6475bd76e1529b788" + "reference": "284c11f18d252f13f22ae10f4e13e6f9e129e532" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/amazon-mailer/zipball/0c9294b1cf610a6dd77b6ce6475bd76e1529b788", - "reference": "0c9294b1cf610a6dd77b6ce6475bd76e1529b788", + "url": "https://api.github.com/repos/symfony/amazon-mailer/zipball/284c11f18d252f13f22ae10f4e13e6f9e129e532", + "reference": "284c11f18d252f13f22ae10f4e13e6f9e129e532", "shasum": "" }, "require": { @@ -3182,7 +3570,7 @@ "description": "Symfony Amazon Mailer Bridge", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/amazon-mailer/tree/v6.4.3" + "source": "https://github.com/symfony/amazon-mailer/tree/v6.4.8" }, "funding": [ { @@ -3198,20 +3586,20 @@ "type": "tidelift" } ], - "time": "2024-01-23T14:51:35+00:00" + "time": "2024-05-31T14:49:08+00:00" }, { "name": "symfony/cache", - "version": "v6.4.6", + "version": "v6.4.8", "source": { "type": "git", "url": "https://github.com/symfony/cache.git", - "reference": "b59bbf9c093b592d77110f9ee70c74dff89294cb" + "reference": "287142df5579ce223c485b3872df3efae8390984" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/cache/zipball/b59bbf9c093b592d77110f9ee70c74dff89294cb", - "reference": "b59bbf9c093b592d77110f9ee70c74dff89294cb", + "url": "https://api.github.com/repos/symfony/cache/zipball/287142df5579ce223c485b3872df3efae8390984", + "reference": "287142df5579ce223c485b3872df3efae8390984", "shasum": "" }, "require": { @@ -3278,7 +3666,7 @@ "psr6" ], "support": { - "source": "https://github.com/symfony/cache/tree/v6.4.6" + "source": "https://github.com/symfony/cache/tree/v6.4.8" }, "funding": [ { @@ -3294,20 +3682,20 @@ "type": "tidelift" } ], - "time": "2024-03-27T13:27:42+00:00" + "time": "2024-05-31T14:49:08+00:00" }, { "name": "symfony/cache-contracts", - "version": "v3.4.2", + "version": "v3.5.0", "source": { "type": "git", "url": "https://github.com/symfony/cache-contracts.git", - "reference": "2c9db6509a1b21dad229606897639d3284f54b2a" + "reference": "df6a1a44c890faded49a5fca33c2d5c5fd3c2197" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/cache-contracts/zipball/2c9db6509a1b21dad229606897639d3284f54b2a", - "reference": "2c9db6509a1b21dad229606897639d3284f54b2a", + "url": "https://api.github.com/repos/symfony/cache-contracts/zipball/df6a1a44c890faded49a5fca33c2d5c5fd3c2197", + "reference": "df6a1a44c890faded49a5fca33c2d5c5fd3c2197", "shasum": "" }, "require": { @@ -3317,7 +3705,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "3.4-dev" + "dev-main": "3.5-dev" }, "thanks": { "name": "symfony/contracts", @@ -3354,7 +3742,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/cache-contracts/tree/v3.4.2" + "source": "https://github.com/symfony/cache-contracts/tree/v3.5.0" }, "funding": [ { @@ -3370,20 +3758,20 @@ "type": "tidelift" } ], - "time": "2024-01-23T14:51:35+00:00" + "time": "2024-04-18T09:32:20+00:00" }, { "name": "symfony/console", - "version": "v6.4.6", + "version": "v6.4.9", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "a2708a5da5c87d1d0d52937bdeac625df659e11f" + "reference": "6edb5363ec0c78ad4d48c5128ebf4d083d89d3a9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/a2708a5da5c87d1d0d52937bdeac625df659e11f", - "reference": "a2708a5da5c87d1d0d52937bdeac625df659e11f", + "url": "https://api.github.com/repos/symfony/console/zipball/6edb5363ec0c78ad4d48c5128ebf4d083d89d3a9", + "reference": "6edb5363ec0c78ad4d48c5128ebf4d083d89d3a9", "shasum": "" }, "require": { @@ -3448,7 +3836,7 @@ "terminal" ], "support": { - "source": "https://github.com/symfony/console/tree/v6.4.6" + "source": "https://github.com/symfony/console/tree/v6.4.9" }, "funding": [ { @@ -3464,20 +3852,20 @@ "type": "tidelift" } ], - "time": "2024-03-29T19:07:53+00:00" + "time": "2024-06-28T09:49:33+00:00" }, { "name": "symfony/deprecation-contracts", - "version": "v3.4.0", + "version": "v3.5.0", "source": { "type": "git", "url": "https://github.com/symfony/deprecation-contracts.git", - "reference": "7c3aff79d10325257a001fcf92d991f24fc967cf" + "reference": "0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/7c3aff79d10325257a001fcf92d991f24fc967cf", - "reference": "7c3aff79d10325257a001fcf92d991f24fc967cf", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1", + "reference": "0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1", "shasum": "" }, "require": { @@ -3486,7 +3874,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "3.4-dev" + "dev-main": "3.5-dev" }, "thanks": { "name": "symfony/contracts", @@ -3515,7 +3903,7 @@ "description": "A generic function and convention to trigger deprecation notices", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/deprecation-contracts/tree/v3.4.0" + "source": "https://github.com/symfony/deprecation-contracts/tree/v3.5.0" }, "funding": [ { @@ -3531,20 +3919,20 @@ "type": "tidelift" } ], - "time": "2023-05-23T14:45:45+00:00" + "time": "2024-04-18T09:32:20+00:00" }, { "name": "symfony/event-dispatcher", - "version": "v7.0.3", + "version": "v7.1.1", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher.git", - "reference": "834c28d533dd0636f910909d01b9ff45cc094b5e" + "reference": "9fa7f7a21beb22a39a8f3f28618b29e50d7a55a7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/834c28d533dd0636f910909d01b9ff45cc094b5e", - "reference": "834c28d533dd0636f910909d01b9ff45cc094b5e", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/9fa7f7a21beb22a39a8f3f28618b29e50d7a55a7", + "reference": "9fa7f7a21beb22a39a8f3f28618b29e50d7a55a7", "shasum": "" }, "require": { @@ -3595,7 +3983,7 @@ "description": "Provides tools that allow your application components to communicate with each other by dispatching events and listening to them", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/event-dispatcher/tree/v7.0.3" + "source": "https://github.com/symfony/event-dispatcher/tree/v7.1.1" }, "funding": [ { @@ -3611,20 +3999,20 @@ "type": "tidelift" } ], - "time": "2024-01-23T15:02:46+00:00" + "time": "2024-05-31T14:57:53+00:00" }, { "name": "symfony/event-dispatcher-contracts", - "version": "v3.4.2", + "version": "v3.5.0", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher-contracts.git", - "reference": "4e64b49bf370ade88e567de29465762e316e4224" + "reference": "8f93aec25d41b72493c6ddff14e916177c9efc50" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/4e64b49bf370ade88e567de29465762e316e4224", - "reference": "4e64b49bf370ade88e567de29465762e316e4224", + "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/8f93aec25d41b72493c6ddff14e916177c9efc50", + "reference": "8f93aec25d41b72493c6ddff14e916177c9efc50", "shasum": "" }, "require": { @@ -3634,7 +4022,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "3.4-dev" + "dev-main": "3.5-dev" }, "thanks": { "name": "symfony/contracts", @@ -3671,7 +4059,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/event-dispatcher-contracts/tree/v3.4.2" + "source": "https://github.com/symfony/event-dispatcher-contracts/tree/v3.5.0" }, "funding": [ { @@ -3687,25 +4075,26 @@ "type": "tidelift" } ], - "time": "2024-01-23T14:51:35+00:00" + "time": "2024-04-18T09:32:20+00:00" }, { "name": "symfony/http-client", - "version": "v7.0.6", + "version": "v7.1.2", "source": { "type": "git", "url": "https://github.com/symfony/http-client.git", - "reference": "6e70473909f46fe5dd3b994a0f1b20ecb6b2f858" + "reference": "90ace27d17ccc9afc6f7ec0081e8529fb0e29425" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-client/zipball/6e70473909f46fe5dd3b994a0f1b20ecb6b2f858", - "reference": "6e70473909f46fe5dd3b994a0f1b20ecb6b2f858", + "url": "https://api.github.com/repos/symfony/http-client/zipball/90ace27d17ccc9afc6f7ec0081e8529fb0e29425", + "reference": "90ace27d17ccc9afc6f7ec0081e8529fb0e29425", "shasum": "" }, "require": { "php": ">=8.2", "psr/log": "^1|^2|^3", + "symfony/deprecation-contracts": "^2.5|^3", "symfony/http-client-contracts": "^3.4.1", "symfony/service-contracts": "^2.5|^3" }, @@ -3732,6 +4121,7 @@ "symfony/http-kernel": "^6.4|^7.0", "symfony/messenger": "^6.4|^7.0", "symfony/process": "^6.4|^7.0", + "symfony/rate-limiter": "^6.4|^7.0", "symfony/stopwatch": "^6.4|^7.0" }, "type": "library", @@ -3763,7 +4153,7 @@ "http" ], "support": { - "source": "https://github.com/symfony/http-client/tree/v7.0.6" + "source": "https://github.com/symfony/http-client/tree/v7.1.2" }, "funding": [ { @@ -3779,20 +4169,20 @@ "type": "tidelift" } ], - "time": "2024-04-01T20:49:44+00:00" + "time": "2024-06-28T08:00:31+00:00" }, { "name": "symfony/http-client-contracts", - "version": "v3.4.2", + "version": "v3.5.0", "source": { "type": "git", "url": "https://github.com/symfony/http-client-contracts.git", - "reference": "b6b5c876b3a4ed74460e2c5ac53bbce2f12e2a7e" + "reference": "20414d96f391677bf80078aa55baece78b82647d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-client-contracts/zipball/b6b5c876b3a4ed74460e2c5ac53bbce2f12e2a7e", - "reference": "b6b5c876b3a4ed74460e2c5ac53bbce2f12e2a7e", + "url": "https://api.github.com/repos/symfony/http-client-contracts/zipball/20414d96f391677bf80078aa55baece78b82647d", + "reference": "20414d96f391677bf80078aa55baece78b82647d", "shasum": "" }, "require": { @@ -3801,7 +4191,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "3.4-dev" + "dev-main": "3.5-dev" }, "thanks": { "name": "symfony/contracts", @@ -3841,7 +4231,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/http-client-contracts/tree/v3.4.2" + "source": "https://github.com/symfony/http-client-contracts/tree/v3.5.0" }, "funding": [ { @@ -3857,20 +4247,20 @@ "type": "tidelift" } ], - "time": "2024-04-01T18:51:09+00:00" + "time": "2024-04-18T09:32:20+00:00" }, { "name": "symfony/http-foundation", - "version": "v7.0.6", + "version": "v7.1.1", "source": { "type": "git", "url": "https://github.com/symfony/http-foundation.git", - "reference": "8789625dcf36e5fbf753014678a1e090f1bc759c" + "reference": "74d171d5b6a1d9e4bfee09a41937c17a7536acfa" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-foundation/zipball/8789625dcf36e5fbf753014678a1e090f1bc759c", - "reference": "8789625dcf36e5fbf753014678a1e090f1bc759c", + "url": "https://api.github.com/repos/symfony/http-foundation/zipball/74d171d5b6a1d9e4bfee09a41937c17a7536acfa", + "reference": "74d171d5b6a1d9e4bfee09a41937c17a7536acfa", "shasum": "" }, "require": { @@ -3918,7 +4308,7 @@ "description": "Defines an object-oriented layer for the HTTP specification", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/http-foundation/tree/v7.0.6" + "source": "https://github.com/symfony/http-foundation/tree/v7.1.1" }, "funding": [ { @@ -3934,20 +4324,20 @@ "type": "tidelift" } ], - "time": "2024-03-19T11:46:48+00:00" + "time": "2024-05-31T14:57:53+00:00" }, { "name": "symfony/mailchimp-mailer", - "version": "v6.4.3", + "version": "v6.4.8", "source": { "type": "git", "url": "https://github.com/symfony/mailchimp-mailer.git", - "reference": "8fcbf792a553cdb6d246111a0826ba9ef75fafdf" + "reference": "1e8e353bfa6ca7ce3f8a700b9ba5112094f65b89" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/mailchimp-mailer/zipball/8fcbf792a553cdb6d246111a0826ba9ef75fafdf", - "reference": "8fcbf792a553cdb6d246111a0826ba9ef75fafdf", + "url": "https://api.github.com/repos/symfony/mailchimp-mailer/zipball/1e8e353bfa6ca7ce3f8a700b9ba5112094f65b89", + "reference": "1e8e353bfa6ca7ce3f8a700b9ba5112094f65b89", "shasum": "" }, "require": { @@ -3983,7 +4373,7 @@ "description": "Symfony Mailchimp Mailer Bridge", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/mailchimp-mailer/tree/v6.4.3" + "source": "https://github.com/symfony/mailchimp-mailer/tree/v6.4.8" }, "funding": [ { @@ -3999,20 +4389,20 @@ "type": "tidelift" } ], - "time": "2024-01-23T14:51:35+00:00" + "time": "2024-05-31T14:49:08+00:00" }, { "name": "symfony/mailer", - "version": "v6.4.6", + "version": "v6.4.9", "source": { "type": "git", "url": "https://github.com/symfony/mailer.git", - "reference": "677f34a6f4b4559e08acf73ae0aec460479e5859" + "reference": "e2d56f180f5b8c5e7c0fbea872bb1f529b6d6d45" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/mailer/zipball/677f34a6f4b4559e08acf73ae0aec460479e5859", - "reference": "677f34a6f4b4559e08acf73ae0aec460479e5859", + "url": "https://api.github.com/repos/symfony/mailer/zipball/e2d56f180f5b8c5e7c0fbea872bb1f529b6d6d45", + "reference": "e2d56f180f5b8c5e7c0fbea872bb1f529b6d6d45", "shasum": "" }, "require": { @@ -4063,7 +4453,7 @@ "description": "Helps sending emails", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/mailer/tree/v6.4.6" + "source": "https://github.com/symfony/mailer/tree/v6.4.9" }, "funding": [ { @@ -4079,20 +4469,20 @@ "type": "tidelift" } ], - "time": "2024-03-27T21:14:17+00:00" + "time": "2024-06-28T07:59:05+00:00" }, { "name": "symfony/mailgun-mailer", - "version": "v6.4.4", + "version": "v6.4.9", "source": { "type": "git", "url": "https://github.com/symfony/mailgun-mailer.git", - "reference": "8c018872b40ce050590b6d18cf741db0c8313435" + "reference": "c4917eb14f31fb5c21442375c6baf7f51bd924e8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/mailgun-mailer/zipball/8c018872b40ce050590b6d18cf741db0c8313435", - "reference": "8c018872b40ce050590b6d18cf741db0c8313435", + "url": "https://api.github.com/repos/symfony/mailgun-mailer/zipball/c4917eb14f31fb5c21442375c6baf7f51bd924e8", + "reference": "c4917eb14f31fb5c21442375c6baf7f51bd924e8", "shasum": "" }, "require": { @@ -4132,7 +4522,7 @@ "description": "Symfony Mailgun Mailer Bridge", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/mailgun-mailer/tree/v6.4.4" + "source": "https://github.com/symfony/mailgun-mailer/tree/v6.4.9" }, "funding": [ { @@ -4148,20 +4538,20 @@ "type": "tidelift" } ], - "time": "2024-02-14T06:31:46+00:00" + "time": "2024-06-28T07:59:05+00:00" }, { "name": "symfony/mime", - "version": "v6.4.6", + "version": "v6.4.9", "source": { "type": "git", "url": "https://github.com/symfony/mime.git", - "reference": "14762b86918823cb42e3558cdcca62e58b5227fe" + "reference": "7d048964877324debdcb4e0549becfa064a20d43" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/mime/zipball/14762b86918823cb42e3558cdcca62e58b5227fe", - "reference": "14762b86918823cb42e3558cdcca62e58b5227fe", + "url": "https://api.github.com/repos/symfony/mime/zipball/7d048964877324debdcb4e0549becfa064a20d43", + "reference": "7d048964877324debdcb4e0549becfa064a20d43", "shasum": "" }, "require": { @@ -4175,7 +4565,7 @@ "phpdocumentor/reflection-docblock": "<3.2.2", "phpdocumentor/type-resolver": "<1.4.0", "symfony/mailer": "<5.4", - "symfony/serializer": "<6.3.2" + "symfony/serializer": "<6.4.3|>7.0,<7.0.3" }, "require-dev": { "egulias/email-validator": "^2.1.10|^3.1|^4", @@ -4185,7 +4575,7 @@ "symfony/process": "^5.4|^6.4|^7.0", "symfony/property-access": "^5.4|^6.0|^7.0", "symfony/property-info": "^5.4|^6.0|^7.0", - "symfony/serializer": "^6.3.2|^7.0" + "symfony/serializer": "^6.4.3|^7.0.3" }, "type": "library", "autoload": { @@ -4217,7 +4607,7 @@ "mime-type" ], "support": { - "source": "https://github.com/symfony/mime/tree/v6.4.6" + "source": "https://github.com/symfony/mime/tree/v6.4.9" }, "funding": [ { @@ -4233,20 +4623,20 @@ "type": "tidelift" } ], - "time": "2024-03-21T19:36:20+00:00" + "time": "2024-06-28T09:49:33+00:00" }, { "name": "symfony/polyfill-ctype", - "version": "v1.29.0", + "version": "v1.30.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-ctype.git", - "reference": "ef4d7e442ca910c4764bce785146269b30cb5fc4" + "reference": "0424dff1c58f028c451efff2045f5d92410bd540" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/ef4d7e442ca910c4764bce785146269b30cb5fc4", - "reference": "ef4d7e442ca910c4764bce785146269b30cb5fc4", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/0424dff1c58f028c451efff2045f5d92410bd540", + "reference": "0424dff1c58f028c451efff2045f5d92410bd540", "shasum": "" }, "require": { @@ -4296,7 +4686,7 @@ "portable" ], "support": { - "source": "https://github.com/symfony/polyfill-ctype/tree/v1.29.0" + "source": "https://github.com/symfony/polyfill-ctype/tree/v1.30.0" }, "funding": [ { @@ -4312,20 +4702,20 @@ "type": "tidelift" } ], - "time": "2024-01-29T20:11:03+00:00" + "time": "2024-05-31T15:07:36+00:00" }, { "name": "symfony/polyfill-intl-grapheme", - "version": "v1.29.0", + "version": "v1.30.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-grapheme.git", - "reference": "32a9da87d7b3245e09ac426c83d334ae9f06f80f" + "reference": "64647a7c30b2283f5d49b874d84a18fc22054b7a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/32a9da87d7b3245e09ac426c83d334ae9f06f80f", - "reference": "32a9da87d7b3245e09ac426c83d334ae9f06f80f", + "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/64647a7c30b2283f5d49b874d84a18fc22054b7a", + "reference": "64647a7c30b2283f5d49b874d84a18fc22054b7a", "shasum": "" }, "require": { @@ -4374,7 +4764,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.29.0" + "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.30.0" }, "funding": [ { @@ -4390,20 +4780,20 @@ "type": "tidelift" } ], - "time": "2024-01-29T20:11:03+00:00" + "time": "2024-05-31T15:07:36+00:00" }, { "name": "symfony/polyfill-intl-idn", - "version": "v1.29.0", + "version": "v1.30.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-idn.git", - "reference": "a287ed7475f85bf6f61890146edbc932c0fff919" + "reference": "a6e83bdeb3c84391d1dfe16f42e40727ce524a5c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-idn/zipball/a287ed7475f85bf6f61890146edbc932c0fff919", - "reference": "a287ed7475f85bf6f61890146edbc932c0fff919", + "url": "https://api.github.com/repos/symfony/polyfill-intl-idn/zipball/a6e83bdeb3c84391d1dfe16f42e40727ce524a5c", + "reference": "a6e83bdeb3c84391d1dfe16f42e40727ce524a5c", "shasum": "" }, "require": { @@ -4458,7 +4848,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-idn/tree/v1.29.0" + "source": "https://github.com/symfony/polyfill-intl-idn/tree/v1.30.0" }, "funding": [ { @@ -4474,20 +4864,20 @@ "type": "tidelift" } ], - "time": "2024-01-29T20:11:03+00:00" + "time": "2024-05-31T15:07:36+00:00" }, { "name": "symfony/polyfill-intl-normalizer", - "version": "v1.29.0", + "version": "v1.30.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-normalizer.git", - "reference": "bc45c394692b948b4d383a08d7753968bed9a83d" + "reference": "a95281b0be0d9ab48050ebd988b967875cdb9fdb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/bc45c394692b948b4d383a08d7753968bed9a83d", - "reference": "bc45c394692b948b4d383a08d7753968bed9a83d", + "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/a95281b0be0d9ab48050ebd988b967875cdb9fdb", + "reference": "a95281b0be0d9ab48050ebd988b967875cdb9fdb", "shasum": "" }, "require": { @@ -4539,7 +4929,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.29.0" + "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.30.0" }, "funding": [ { @@ -4555,20 +4945,20 @@ "type": "tidelift" } ], - "time": "2024-01-29T20:11:03+00:00" + "time": "2024-05-31T15:07:36+00:00" }, { "name": "symfony/polyfill-mbstring", - "version": "v1.29.0", + "version": "v1.30.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "9773676c8a1bb1f8d4340a62efe641cf76eda7ec" + "reference": "fd22ab50000ef01661e2a31d850ebaa297f8e03c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/9773676c8a1bb1f8d4340a62efe641cf76eda7ec", - "reference": "9773676c8a1bb1f8d4340a62efe641cf76eda7ec", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/fd22ab50000ef01661e2a31d850ebaa297f8e03c", + "reference": "fd22ab50000ef01661e2a31d850ebaa297f8e03c", "shasum": "" }, "require": { @@ -4619,7 +5009,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.29.0" + "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.30.0" }, "funding": [ { @@ -4635,20 +5025,20 @@ "type": "tidelift" } ], - "time": "2024-01-29T20:11:03+00:00" + "time": "2024-06-19T12:30:46+00:00" }, { "name": "symfony/polyfill-php72", - "version": "v1.29.0", + "version": "v1.30.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php72.git", - "reference": "861391a8da9a04cbad2d232ddd9e4893220d6e25" + "reference": "10112722600777e02d2745716b70c5db4ca70442" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php72/zipball/861391a8da9a04cbad2d232ddd9e4893220d6e25", - "reference": "861391a8da9a04cbad2d232ddd9e4893220d6e25", + "url": "https://api.github.com/repos/symfony/polyfill-php72/zipball/10112722600777e02d2745716b70c5db4ca70442", + "reference": "10112722600777e02d2745716b70c5db4ca70442", "shasum": "" }, "require": { @@ -4692,7 +5082,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php72/tree/v1.29.0" + "source": "https://github.com/symfony/polyfill-php72/tree/v1.30.0" }, "funding": [ { @@ -4708,20 +5098,20 @@ "type": "tidelift" } ], - "time": "2024-01-29T20:11:03+00:00" + "time": "2024-06-19T12:30:46+00:00" }, { "name": "symfony/polyfill-php80", - "version": "v1.29.0", + "version": "v1.30.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php80.git", - "reference": "87b68208d5c1188808dd7839ee1e6c8ec3b02f1b" + "reference": "77fa7995ac1b21ab60769b7323d600a991a90433" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/87b68208d5c1188808dd7839ee1e6c8ec3b02f1b", - "reference": "87b68208d5c1188808dd7839ee1e6c8ec3b02f1b", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/77fa7995ac1b21ab60769b7323d600a991a90433", + "reference": "77fa7995ac1b21ab60769b7323d600a991a90433", "shasum": "" }, "require": { @@ -4772,7 +5162,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php80/tree/v1.29.0" + "source": "https://github.com/symfony/polyfill-php80/tree/v1.30.0" }, "funding": [ { @@ -4788,25 +5178,24 @@ "type": "tidelift" } ], - "time": "2024-01-29T20:11:03+00:00" + "time": "2024-05-31T15:07:36+00:00" }, { "name": "symfony/polyfill-php83", - "version": "v1.29.0", + "version": "v1.30.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php83.git", - "reference": "86fcae159633351e5fd145d1c47de6c528f8caff" + "reference": "dbdcdf1a4dcc2743591f1079d0c35ab1e2dcbbc9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php83/zipball/86fcae159633351e5fd145d1c47de6c528f8caff", - "reference": "86fcae159633351e5fd145d1c47de6c528f8caff", + "url": "https://api.github.com/repos/symfony/polyfill-php83/zipball/dbdcdf1a4dcc2743591f1079d0c35ab1e2dcbbc9", + "reference": "dbdcdf1a4dcc2743591f1079d0c35ab1e2dcbbc9", "shasum": "" }, "require": { - "php": ">=7.1", - "symfony/polyfill-php80": "^1.14" + "php": ">=7.1" }, "type": "library", "extra": { @@ -4849,7 +5238,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php83/tree/v1.29.0" + "source": "https://github.com/symfony/polyfill-php83/tree/v1.30.0" }, "funding": [ { @@ -4865,20 +5254,20 @@ "type": "tidelift" } ], - "time": "2024-01-29T20:11:03+00:00" + "time": "2024-06-19T12:35:24+00:00" }, { "name": "symfony/property-access", - "version": "v7.0.7", + "version": "v7.1.1", "source": { "type": "git", "url": "https://github.com/symfony/property-access.git", - "reference": "8661b861480d2807eb2789ff99d034c0c71ab955" + "reference": "74e39e6a6276b8e384f34c6ddbc10a6c9a60193a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/property-access/zipball/8661b861480d2807eb2789ff99d034c0c71ab955", - "reference": "8661b861480d2807eb2789ff99d034c0c71ab955", + "url": "https://api.github.com/repos/symfony/property-access/zipball/74e39e6a6276b8e384f34c6ddbc10a6c9a60193a", + "reference": "74e39e6a6276b8e384f34c6ddbc10a6c9a60193a", "shasum": "" }, "require": { @@ -4925,7 +5314,7 @@ "reflection" ], "support": { - "source": "https://github.com/symfony/property-access/tree/v7.0.7" + "source": "https://github.com/symfony/property-access/tree/v7.1.1" }, "funding": [ { @@ -4941,25 +5330,26 @@ "type": "tidelift" } ], - "time": "2024-04-18T09:29:19+00:00" + "time": "2024-05-31T14:57:53+00:00" }, { "name": "symfony/property-info", - "version": "v7.0.7", + "version": "v7.1.2", "source": { "type": "git", "url": "https://github.com/symfony/property-info.git", - "reference": "f0bdb46e19ab308527b324b7ec36161f6880a532" + "reference": "d7b91e4aa07e822a9b935fc29a7254c12d502f16" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/property-info/zipball/f0bdb46e19ab308527b324b7ec36161f6880a532", - "reference": "f0bdb46e19ab308527b324b7ec36161f6880a532", + "url": "https://api.github.com/repos/symfony/property-info/zipball/d7b91e4aa07e822a9b935fc29a7254c12d502f16", + "reference": "d7b91e4aa07e822a9b935fc29a7254c12d502f16", "shasum": "" }, "require": { "php": ">=8.2", - "symfony/string": "^6.4|^7.0" + "symfony/string": "^6.4|^7.0", + "symfony/type-info": "^7.1" }, "conflict": { "phpdocumentor/reflection-docblock": "<5.2", @@ -5008,7 +5398,7 @@ "validator" ], "support": { - "source": "https://github.com/symfony/property-info/tree/v7.0.7" + "source": "https://github.com/symfony/property-info/tree/v7.1.2" }, "funding": [ { @@ -5024,20 +5414,20 @@ "type": "tidelift" } ], - "time": "2024-04-28T11:44:19+00:00" + "time": "2024-06-26T07:21:35+00:00" }, { "name": "symfony/routing", - "version": "v7.0.6", + "version": "v7.1.1", "source": { "type": "git", "url": "https://github.com/symfony/routing.git", - "reference": "cded64e5bbf9f31786f1055fcc76718fdd77519c" + "reference": "60c31bab5c45af7f13091b87deb708830f3c96c0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/routing/zipball/cded64e5bbf9f31786f1055fcc76718fdd77519c", - "reference": "cded64e5bbf9f31786f1055fcc76718fdd77519c", + "url": "https://api.github.com/repos/symfony/routing/zipball/60c31bab5c45af7f13091b87deb708830f3c96c0", + "reference": "60c31bab5c45af7f13091b87deb708830f3c96c0", "shasum": "" }, "require": { @@ -5089,7 +5479,7 @@ "url" ], "support": { - "source": "https://github.com/symfony/routing/tree/v7.0.6" + "source": "https://github.com/symfony/routing/tree/v7.1.1" }, "funding": [ { @@ -5105,20 +5495,20 @@ "type": "tidelift" } ], - "time": "2024-03-28T21:02:11+00:00" + "time": "2024-05-31T14:57:53+00:00" }, { "name": "symfony/sendgrid-mailer", - "version": "v6.4.3", + "version": "v6.4.8", "source": { "type": "git", "url": "https://github.com/symfony/sendgrid-mailer.git", - "reference": "910a1c8f8a44111b69de1e2539a2243a91eaf9be" + "reference": "de781810f7fbcef2d21a7e5b24cf4d85bac4bceb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/sendgrid-mailer/zipball/910a1c8f8a44111b69de1e2539a2243a91eaf9be", - "reference": "910a1c8f8a44111b69de1e2539a2243a91eaf9be", + "url": "https://api.github.com/repos/symfony/sendgrid-mailer/zipball/de781810f7fbcef2d21a7e5b24cf4d85bac4bceb", + "reference": "de781810f7fbcef2d21a7e5b24cf4d85bac4bceb", "shasum": "" }, "require": { @@ -5159,7 +5549,7 @@ "description": "Symfony Sendgrid Mailer Bridge", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/sendgrid-mailer/tree/v6.4.3" + "source": "https://github.com/symfony/sendgrid-mailer/tree/v6.4.8" }, "funding": [ { @@ -5175,24 +5565,25 @@ "type": "tidelift" } ], - "time": "2024-01-23T14:51:35+00:00" + "time": "2024-05-31T14:49:08+00:00" }, { "name": "symfony/serializer", - "version": "v7.0.7", + "version": "v7.1.2", "source": { "type": "git", "url": "https://github.com/symfony/serializer.git", - "reference": "08f0c517acf4b12dfc0d3963cd12f7b8023aea31" + "reference": "d2077674aaaff02a95f290de512aa358947e6bbe" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/serializer/zipball/08f0c517acf4b12dfc0d3963cd12f7b8023aea31", - "reference": "08f0c517acf4b12dfc0d3963cd12f7b8023aea31", + "url": "https://api.github.com/repos/symfony/serializer/zipball/d2077674aaaff02a95f290de512aa358947e6bbe", + "reference": "d2077674aaaff02a95f290de512aa358947e6bbe", "shasum": "" }, "require": { "php": ">=8.2", + "symfony/deprecation-contracts": "^2.5|^3", "symfony/polyfill-ctype": "~1.8" }, "conflict": { @@ -5222,6 +5613,7 @@ "symfony/property-access": "^6.4|^7.0", "symfony/property-info": "^6.4|^7.0", "symfony/translation-contracts": "^2.5|^3", + "symfony/type-info": "^7.1", "symfony/uid": "^6.4|^7.0", "symfony/validator": "^6.4|^7.0", "symfony/var-dumper": "^6.4|^7.0", @@ -5254,7 +5646,7 @@ "description": "Handles serializing and deserializing data structures, including object graphs, into array structures or other formats like XML and JSON.", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/serializer/tree/v7.0.7" + "source": "https://github.com/symfony/serializer/tree/v7.1.2" }, "funding": [ { @@ -5270,25 +5662,26 @@ "type": "tidelift" } ], - "time": "2024-04-28T11:44:19+00:00" + "time": "2024-06-28T07:42:43+00:00" }, { "name": "symfony/service-contracts", - "version": "v3.4.2", + "version": "v3.5.0", "source": { "type": "git", "url": "https://github.com/symfony/service-contracts.git", - "reference": "11bbf19a0fb7b36345861e85c5768844c552906e" + "reference": "bd1d9e59a81d8fa4acdcea3f617c581f7475a80f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/service-contracts/zipball/11bbf19a0fb7b36345861e85c5768844c552906e", - "reference": "11bbf19a0fb7b36345861e85c5768844c552906e", + "url": "https://api.github.com/repos/symfony/service-contracts/zipball/bd1d9e59a81d8fa4acdcea3f617c581f7475a80f", + "reference": "bd1d9e59a81d8fa4acdcea3f617c581f7475a80f", "shasum": "" }, "require": { "php": ">=8.1", - "psr/container": "^1.1|^2.0" + "psr/container": "^1.1|^2.0", + "symfony/deprecation-contracts": "^2.5|^3" }, "conflict": { "ext-psr": "<1.1|>=2" @@ -5296,7 +5689,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "3.4-dev" + "dev-main": "3.5-dev" }, "thanks": { "name": "symfony/contracts", @@ -5336,7 +5729,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/service-contracts/tree/v3.4.2" + "source": "https://github.com/symfony/service-contracts/tree/v3.5.0" }, "funding": [ { @@ -5352,20 +5745,20 @@ "type": "tidelift" } ], - "time": "2023-12-19T21:51:00+00:00" + "time": "2024-04-18T09:32:20+00:00" }, { "name": "symfony/string", - "version": "v7.0.4", + "version": "v7.1.2", "source": { "type": "git", "url": "https://github.com/symfony/string.git", - "reference": "f5832521b998b0bec40bee688ad5de98d4cf111b" + "reference": "14221089ac66cf82e3cf3d1c1da65de305587ff8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/f5832521b998b0bec40bee688ad5de98d4cf111b", - "reference": "f5832521b998b0bec40bee688ad5de98d4cf111b", + "url": "https://api.github.com/repos/symfony/string/zipball/14221089ac66cf82e3cf3d1c1da65de305587ff8", + "reference": "14221089ac66cf82e3cf3d1c1da65de305587ff8", "shasum": "" }, "require": { @@ -5379,6 +5772,7 @@ "symfony/translation-contracts": "<2.5" }, "require-dev": { + "symfony/emoji": "^7.1", "symfony/error-handler": "^6.4|^7.0", "symfony/http-client": "^6.4|^7.0", "symfony/intl": "^6.4|^7.0", @@ -5422,7 +5816,7 @@ "utf8" ], "support": { - "source": "https://github.com/symfony/string/tree/v7.0.4" + "source": "https://github.com/symfony/string/tree/v7.1.2" }, "funding": [ { @@ -5438,7 +5832,7 @@ "type": "tidelift" } ], - "time": "2024-02-01T13:17:36+00:00" + "time": "2024-06-28T09:27:18+00:00" }, { "name": "symfony/translation-contracts", @@ -5518,22 +5912,105 @@ ], "time": "2024-04-18T09:32:20+00:00" }, + { + "name": "symfony/type-info", + "version": "v7.1.1", + "source": { + "type": "git", + "url": "https://github.com/symfony/type-info.git", + "reference": "60b28eb733f1453287f1263ed305b96091e0d1dc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/type-info/zipball/60b28eb733f1453287f1263ed305b96091e0d1dc", + "reference": "60b28eb733f1453287f1263ed305b96091e0d1dc", + "shasum": "" + }, + "require": { + "php": ">=8.2", + "psr/container": "^1.1|^2.0" + }, + "conflict": { + "phpstan/phpdoc-parser": "<1.0", + "symfony/dependency-injection": "<6.4", + "symfony/property-info": "<6.4" + }, + "require-dev": { + "phpstan/phpdoc-parser": "^1.0", + "symfony/dependency-injection": "^6.4|^7.0", + "symfony/property-info": "^6.4|^7.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\TypeInfo\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Mathias Arlaud", + "email": "mathias.arlaud@gmail.com" + }, + { + "name": "Baptiste LEDUC", + "email": "baptiste.leduc@gmail.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Extracts PHP types information.", + "homepage": "https://symfony.com", + "keywords": [ + "PHPStan", + "phpdoc", + "symfony", + "type" + ], + "support": { + "source": "https://github.com/symfony/type-info/tree/v7.1.1" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-05-31T14:59:31+00:00" + }, { "name": "symfony/validator", - "version": "v7.0.7", + "version": "v7.1.2", "source": { "type": "git", "url": "https://github.com/symfony/validator.git", - "reference": "ab4e75b9d23ba70e78480aecbe4d8da15adf10eb" + "reference": "bed12b7d5bd4dac452db5fa6203331c876b489e7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/validator/zipball/ab4e75b9d23ba70e78480aecbe4d8da15adf10eb", - "reference": "ab4e75b9d23ba70e78480aecbe4d8da15adf10eb", + "url": "https://api.github.com/repos/symfony/validator/zipball/bed12b7d5bd4dac452db5fa6203331c876b489e7", + "reference": "bed12b7d5bd4dac452db5fa6203331c876b489e7", "shasum": "" }, "require": { "php": ">=8.2", + "symfony/deprecation-contracts": "^2.5|^3", "symfony/polyfill-ctype": "~1.8", "symfony/polyfill-mbstring": "~1.0", "symfony/polyfill-php83": "^1.27", @@ -5566,6 +6043,7 @@ "symfony/property-access": "^6.4|^7.0", "symfony/property-info": "^6.4|^7.0", "symfony/translation": "^6.4.3|^7.0.3", + "symfony/type-info": "^7.1", "symfony/yaml": "^6.4|^7.0" }, "type": "library", @@ -5574,7 +6052,8 @@ "Symfony\\Component\\Validator\\": "" }, "exclude-from-classmap": [ - "/Tests/" + "/Tests/", + "/Resources/bin/" ] }, "notification-url": "https://packagist.org/downloads/", @@ -5594,7 +6073,7 @@ "description": "Provides tools to validate values", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/validator/tree/v7.0.7" + "source": "https://github.com/symfony/validator/tree/v7.1.2" }, "funding": [ { @@ -5610,20 +6089,20 @@ "type": "tidelift" } ], - "time": "2024-04-28T11:44:19+00:00" + "time": "2024-06-25T19:55:06+00:00" }, { "name": "symfony/var-dumper", - "version": "v6.4.6", + "version": "v6.4.9", "source": { "type": "git", "url": "https://github.com/symfony/var-dumper.git", - "reference": "95bd2706a97fb875185b51ecaa6112ec184233d4" + "reference": "c31566e4ca944271cc8d8ac6887cbf31b8c6a172" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/var-dumper/zipball/95bd2706a97fb875185b51ecaa6112ec184233d4", - "reference": "95bd2706a97fb875185b51ecaa6112ec184233d4", + "url": "https://api.github.com/repos/symfony/var-dumper/zipball/c31566e4ca944271cc8d8ac6887cbf31b8c6a172", + "reference": "c31566e4ca944271cc8d8ac6887cbf31b8c6a172", "shasum": "" }, "require": { @@ -5679,7 +6158,7 @@ "dump" ], "support": { - "source": "https://github.com/symfony/var-dumper/tree/v6.4.6" + "source": "https://github.com/symfony/var-dumper/tree/v6.4.9" }, "funding": [ { @@ -5695,20 +6174,20 @@ "type": "tidelift" } ], - "time": "2024-03-19T11:56:30+00:00" + "time": "2024-06-27T13:23:14+00:00" }, { "name": "symfony/var-exporter", - "version": "v7.0.6", + "version": "v7.1.2", "source": { "type": "git", "url": "https://github.com/symfony/var-exporter.git", - "reference": "c74c568d2a15a1d407cf40d61ea82bc2d521e27b" + "reference": "b80a669a2264609f07f1667f891dbfca25eba44c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/var-exporter/zipball/c74c568d2a15a1d407cf40d61ea82bc2d521e27b", - "reference": "c74c568d2a15a1d407cf40d61ea82bc2d521e27b", + "url": "https://api.github.com/repos/symfony/var-exporter/zipball/b80a669a2264609f07f1667f891dbfca25eba44c", + "reference": "b80a669a2264609f07f1667f891dbfca25eba44c", "shasum": "" }, "require": { @@ -5755,7 +6234,7 @@ "serialize" ], "support": { - "source": "https://github.com/symfony/var-exporter/tree/v7.0.6" + "source": "https://github.com/symfony/var-exporter/tree/v7.1.2" }, "funding": [ { @@ -5771,22 +6250,86 @@ "type": "tidelift" } ], - "time": "2024-03-20T21:25:22+00:00" + "time": "2024-06-28T08:00:31+00:00" } ], "packages-dev": [ + { + "name": "clue/ndjson-react", + "version": "v1.3.0", + "source": { + "type": "git", + "url": "https://github.com/clue/reactphp-ndjson.git", + "reference": "392dc165fce93b5bb5c637b67e59619223c931b0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/clue/reactphp-ndjson/zipball/392dc165fce93b5bb5c637b67e59619223c931b0", + "reference": "392dc165fce93b5bb5c637b67e59619223c931b0", + "shasum": "" + }, + "require": { + "php": ">=5.3", + "react/stream": "^1.2" + }, + "require-dev": { + "phpunit/phpunit": "^9.5 || ^5.7 || ^4.8.35", + "react/event-loop": "^1.2" + }, + "type": "library", + "autoload": { + "psr-4": { + "Clue\\React\\NDJson\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Christian Lück", + "email": "christian@clue.engineering" + } + ], + "description": "Streaming newline-delimited JSON (NDJSON) parser and encoder for ReactPHP.", + "homepage": "https://github.com/clue/reactphp-ndjson", + "keywords": [ + "NDJSON", + "json", + "jsonlines", + "newline", + "reactphp", + "streaming" + ], + "support": { + "issues": "https://github.com/clue/reactphp-ndjson/issues", + "source": "https://github.com/clue/reactphp-ndjson/tree/v1.3.0" + }, + "funding": [ + { + "url": "https://clue.engineering/support", + "type": "custom" + }, + { + "url": "https://github.com/clue", + "type": "github" + } + ], + "time": "2022-12-23T10:58:28+00:00" + }, { "name": "composer/pcre", - "version": "3.1.3", + "version": "3.1.4", "source": { "type": "git", "url": "https://github.com/composer/pcre.git", - "reference": "5b16e25a5355f1f3afdfc2f954a0a80aec4826a8" + "reference": "04229f163664973f68f38f6f73d917799168ef24" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/pcre/zipball/5b16e25a5355f1f3afdfc2f954a0a80aec4826a8", - "reference": "5b16e25a5355f1f3afdfc2f954a0a80aec4826a8", + "url": "https://api.github.com/repos/composer/pcre/zipball/04229f163664973f68f38f6f73d917799168ef24", + "reference": "04229f163664973f68f38f6f73d917799168ef24", "shasum": "" }, "require": { @@ -5828,7 +6371,7 @@ ], "support": { "issues": "https://github.com/composer/pcre/issues", - "source": "https://github.com/composer/pcre/tree/3.1.3" + "source": "https://github.com/composer/pcre/tree/3.1.4" }, "funding": [ { @@ -5844,7 +6387,7 @@ "type": "tidelift" } ], - "time": "2024-03-19T10:26:25+00:00" + "time": "2024-05-27T13:40:54+00:00" }, { "name": "composer/semver", @@ -5929,16 +6472,16 @@ }, { "name": "composer/xdebug-handler", - "version": "3.0.4", + "version": "3.0.5", "source": { "type": "git", "url": "https://github.com/composer/xdebug-handler.git", - "reference": "4f988f8fdf580d53bdb2d1278fe93d1ed5462255" + "reference": "6c1925561632e83d60a44492e0b344cf48ab85ef" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/xdebug-handler/zipball/4f988f8fdf580d53bdb2d1278fe93d1ed5462255", - "reference": "4f988f8fdf580d53bdb2d1278fe93d1ed5462255", + "url": "https://api.github.com/repos/composer/xdebug-handler/zipball/6c1925561632e83d60a44492e0b344cf48ab85ef", + "reference": "6c1925561632e83d60a44492e0b344cf48ab85ef", "shasum": "" }, "require": { @@ -5975,7 +6518,7 @@ "support": { "irc": "ircs://irc.libera.chat:6697/composer", "issues": "https://github.com/composer/xdebug-handler/issues", - "source": "https://github.com/composer/xdebug-handler/tree/3.0.4" + "source": "https://github.com/composer/xdebug-handler/tree/3.0.5" }, "funding": [ { @@ -5991,7 +6534,7 @@ "type": "tidelift" } ], - "time": "2024-03-26T18:29:49+00:00" + "time": "2024-05-06T16:37:16+00:00" }, { "name": "doctrine/data-fixtures", @@ -6077,27 +6620,142 @@ ], "time": "2023-11-24T11:18:31+00:00" }, + { + "name": "evenement/evenement", + "version": "v3.0.2", + "source": { + "type": "git", + "url": "https://github.com/igorw/evenement.git", + "reference": "0a16b0d71ab13284339abb99d9d2bd813640efbc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/igorw/evenement/zipball/0a16b0d71ab13284339abb99d9d2bd813640efbc", + "reference": "0a16b0d71ab13284339abb99d9d2bd813640efbc", + "shasum": "" + }, + "require": { + "php": ">=7.0" + }, + "require-dev": { + "phpunit/phpunit": "^9 || ^6" + }, + "type": "library", + "autoload": { + "psr-4": { + "Evenement\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Igor Wiedler", + "email": "igor@wiedler.ch" + } + ], + "description": "Événement is a very simple event dispatching library for PHP", + "keywords": [ + "event-dispatcher", + "event-emitter" + ], + "support": { + "issues": "https://github.com/igorw/evenement/issues", + "source": "https://github.com/igorw/evenement/tree/v3.0.2" + }, + "time": "2023-08-08T05:53:35+00:00" + }, + { + "name": "fidry/cpu-core-counter", + "version": "1.1.0", + "source": { + "type": "git", + "url": "https://github.com/theofidry/cpu-core-counter.git", + "reference": "f92996c4d5c1a696a6a970e20f7c4216200fcc42" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/theofidry/cpu-core-counter/zipball/f92996c4d5c1a696a6a970e20f7c4216200fcc42", + "reference": "f92996c4d5c1a696a6a970e20f7c4216200fcc42", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "require-dev": { + "fidry/makefile": "^0.2.0", + "fidry/php-cs-fixer-config": "^1.1.2", + "phpstan/extension-installer": "^1.2.0", + "phpstan/phpstan": "^1.9.2", + "phpstan/phpstan-deprecation-rules": "^1.0.0", + "phpstan/phpstan-phpunit": "^1.2.2", + "phpstan/phpstan-strict-rules": "^1.4.4", + "phpunit/phpunit": "^8.5.31 || ^9.5.26", + "webmozarts/strict-phpunit": "^7.5" + }, + "type": "library", + "autoload": { + "psr-4": { + "Fidry\\CpuCoreCounter\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Théo FIDRY", + "email": "theo.fidry@gmail.com" + } + ], + "description": "Tiny utility to get the number of CPU cores.", + "keywords": [ + "CPU", + "core" + ], + "support": { + "issues": "https://github.com/theofidry/cpu-core-counter/issues", + "source": "https://github.com/theofidry/cpu-core-counter/tree/1.1.0" + }, + "funding": [ + { + "url": "https://github.com/theofidry", + "type": "github" + } + ], + "time": "2024-02-07T09:43:46+00:00" + }, { "name": "friendsofphp/php-cs-fixer", - "version": "v3.54.0", + "version": "v3.59.3", "source": { "type": "git", "url": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer.git", - "reference": "2aecbc8640d7906c38777b3dcab6f4ca79004d08" + "reference": "30ba9ecc2b0e5205e578fe29973c15653d9bfd29" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHP-CS-Fixer/PHP-CS-Fixer/zipball/2aecbc8640d7906c38777b3dcab6f4ca79004d08", - "reference": "2aecbc8640d7906c38777b3dcab6f4ca79004d08", + "url": "https://api.github.com/repos/PHP-CS-Fixer/PHP-CS-Fixer/zipball/30ba9ecc2b0e5205e578fe29973c15653d9bfd29", + "reference": "30ba9ecc2b0e5205e578fe29973c15653d9bfd29", "shasum": "" }, "require": { + "clue/ndjson-react": "^1.0", "composer/semver": "^3.4", "composer/xdebug-handler": "^3.0.3", "ext-filter": "*", "ext-json": "*", "ext-tokenizer": "*", + "fidry/cpu-core-counter": "^1.0", "php": "^7.4 || ^8.0", + "react/child-process": "^0.6.5", + "react/event-loop": "^1.0", + "react/promise": "^2.0 || ^3.0", + "react/socket": "^1.0", + "react/stream": "^1.0", "sebastian/diff": "^4.0 || ^5.0 || ^6.0", "symfony/console": "^5.4 || ^6.0 || ^7.0", "symfony/event-dispatcher": "^5.4 || ^6.0 || ^7.0", @@ -6111,16 +6769,16 @@ "symfony/stopwatch": "^5.4 || ^6.0 || ^7.0" }, "require-dev": { - "facile-it/paraunit": "^1.3 || ^2.0", - "infection/infection": "^0.27.11", + "facile-it/paraunit": "^1.3 || ^2.3", + "infection/infection": "^0.29.5", "justinrainbow/json-schema": "^5.2", "keradus/cli-executor": "^2.1", "mikey179/vfsstream": "^1.6.11", "php-coveralls/php-coveralls": "^2.7", "php-cs-fixer/accessible-object": "^1.1", - "php-cs-fixer/phpunit-constraint-isidenticalstring": "^1.4", - "php-cs-fixer/phpunit-constraint-xmlmatchesxsd": "^1.4", - "phpunit/phpunit": "^9.6 || ^10.5.5 || ^11.0.2", + "php-cs-fixer/phpunit-constraint-isidenticalstring": "^1.5", + "php-cs-fixer/phpunit-constraint-xmlmatchesxsd": "^1.5", + "phpunit/phpunit": "^9.6.19 || ^10.5.21 || ^11.2", "symfony/var-dumper": "^5.4 || ^6.0 || ^7.0", "symfony/yaml": "^5.4 || ^6.0 || ^7.0" }, @@ -6135,7 +6793,10 @@ "autoload": { "psr-4": { "PhpCsFixer\\": "src/" - } + }, + "exclude-from-classmap": [ + "src/Fixer/Internal/*" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -6160,7 +6821,7 @@ ], "support": { "issues": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/issues", - "source": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/tree/v3.54.0" + "source": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/tree/v3.59.3" }, "funding": [ { @@ -6168,20 +6829,20 @@ "type": "github" } ], - "time": "2024-04-17T08:12:13+00:00" + "time": "2024-06-16T14:17:03+00:00" }, { "name": "myclabs/deep-copy", - "version": "1.11.1", + "version": "1.12.0", "source": { "type": "git", "url": "https://github.com/myclabs/DeepCopy.git", - "reference": "7284c22080590fb39f2ffa3e9057f10a4ddd0e0c" + "reference": "3a6b9a42cd8f8771bd4295d13e1423fa7f3d942c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/7284c22080590fb39f2ffa3e9057f10a4ddd0e0c", - "reference": "7284c22080590fb39f2ffa3e9057f10a4ddd0e0c", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/3a6b9a42cd8f8771bd4295d13e1423fa7f3d942c", + "reference": "3a6b9a42cd8f8771bd4295d13e1423fa7f3d942c", "shasum": "" }, "require": { @@ -6189,11 +6850,12 @@ }, "conflict": { "doctrine/collections": "<1.6.8", - "doctrine/common": "<2.13.3 || >=3,<3.2.2" + "doctrine/common": "<2.13.3 || >=3 <3.2.2" }, "require-dev": { "doctrine/collections": "^1.6.8", "doctrine/common": "^2.13.3 || ^3.2.2", + "phpspec/prophecy": "^1.10", "phpunit/phpunit": "^7.5.20 || ^8.5.23 || ^9.5.13" }, "type": "library", @@ -6219,7 +6881,7 @@ ], "support": { "issues": "https://github.com/myclabs/DeepCopy/issues", - "source": "https://github.com/myclabs/DeepCopy/tree/1.11.1" + "source": "https://github.com/myclabs/DeepCopy/tree/1.12.0" }, "funding": [ { @@ -6227,7 +6889,7 @@ "type": "tidelift" } ], - "time": "2023-03-08T13:26:56+00:00" + "time": "2024-06-12T14:39:25+00:00" }, { "name": "phar-io/manifest", @@ -6349,16 +7011,16 @@ }, { "name": "phpunit/php-code-coverage", - "version": "10.1.14", + "version": "10.1.15", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "e3f51450ebffe8e0efdf7346ae966a656f7d5e5b" + "reference": "5da8b1728acd1e6ffdf2ff32ffbdfd04307f26ae" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/e3f51450ebffe8e0efdf7346ae966a656f7d5e5b", - "reference": "e3f51450ebffe8e0efdf7346ae966a656f7d5e5b", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/5da8b1728acd1e6ffdf2ff32ffbdfd04307f26ae", + "reference": "5da8b1728acd1e6ffdf2ff32ffbdfd04307f26ae", "shasum": "" }, "require": { @@ -6415,7 +7077,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", "security": "https://github.com/sebastianbergmann/php-code-coverage/security/policy", - "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/10.1.14" + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/10.1.15" }, "funding": [ { @@ -6423,7 +7085,7 @@ "type": "github" } ], - "time": "2024-03-12T15:33:41+00:00" + "time": "2024-06-29T08:25:15+00:00" }, { "name": "phpunit/php-file-iterator", @@ -6670,16 +7332,16 @@ }, { "name": "phpunit/phpunit", - "version": "10.5.19", + "version": "10.5.24", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "c726f0de022368f6ed103e452a765d3304a996a4" + "reference": "5f124e3e3e561006047b532fd0431bf5bb6b9015" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/c726f0de022368f6ed103e452a765d3304a996a4", - "reference": "c726f0de022368f6ed103e452a765d3304a996a4", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/5f124e3e3e561006047b532fd0431bf5bb6b9015", + "reference": "5f124e3e3e561006047b532fd0431bf5bb6b9015", "shasum": "" }, "require": { @@ -6751,7 +7413,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", "security": "https://github.com/sebastianbergmann/phpunit/security/policy", - "source": "https://github.com/sebastianbergmann/phpunit/tree/10.5.19" + "source": "https://github.com/sebastianbergmann/phpunit/tree/10.5.24" }, "funding": [ { @@ -6767,7 +7429,537 @@ "type": "tidelift" } ], - "time": "2024-04-17T14:06:18+00:00" + "time": "2024-06-20T13:09:54+00:00" + }, + { + "name": "react/cache", + "version": "v1.2.0", + "source": { + "type": "git", + "url": "https://github.com/reactphp/cache.git", + "reference": "d47c472b64aa5608225f47965a484b75c7817d5b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/reactphp/cache/zipball/d47c472b64aa5608225f47965a484b75c7817d5b", + "reference": "d47c472b64aa5608225f47965a484b75c7817d5b", + "shasum": "" + }, + "require": { + "php": ">=5.3.0", + "react/promise": "^3.0 || ^2.0 || ^1.1" + }, + "require-dev": { + "phpunit/phpunit": "^9.5 || ^5.7 || ^4.8.35" + }, + "type": "library", + "autoload": { + "psr-4": { + "React\\Cache\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Christian Lück", + "email": "christian@clue.engineering", + "homepage": "https://clue.engineering/" + }, + { + "name": "Cees-Jan Kiewiet", + "email": "reactphp@ceesjankiewiet.nl", + "homepage": "https://wyrihaximus.net/" + }, + { + "name": "Jan Sorgalla", + "email": "jsorgalla@gmail.com", + "homepage": "https://sorgalla.com/" + }, + { + "name": "Chris Boden", + "email": "cboden@gmail.com", + "homepage": "https://cboden.dev/" + } + ], + "description": "Async, Promise-based cache interface for ReactPHP", + "keywords": [ + "cache", + "caching", + "promise", + "reactphp" + ], + "support": { + "issues": "https://github.com/reactphp/cache/issues", + "source": "https://github.com/reactphp/cache/tree/v1.2.0" + }, + "funding": [ + { + "url": "https://opencollective.com/reactphp", + "type": "open_collective" + } + ], + "time": "2022-11-30T15:59:55+00:00" + }, + { + "name": "react/child-process", + "version": "v0.6.5", + "source": { + "type": "git", + "url": "https://github.com/reactphp/child-process.git", + "reference": "e71eb1aa55f057c7a4a0d08d06b0b0a484bead43" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/reactphp/child-process/zipball/e71eb1aa55f057c7a4a0d08d06b0b0a484bead43", + "reference": "e71eb1aa55f057c7a4a0d08d06b0b0a484bead43", + "shasum": "" + }, + "require": { + "evenement/evenement": "^3.0 || ^2.0 || ^1.0", + "php": ">=5.3.0", + "react/event-loop": "^1.2", + "react/stream": "^1.2" + }, + "require-dev": { + "phpunit/phpunit": "^9.3 || ^5.7 || ^4.8.35", + "react/socket": "^1.8", + "sebastian/environment": "^5.0 || ^3.0 || ^2.0 || ^1.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "React\\ChildProcess\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Christian Lück", + "email": "christian@clue.engineering", + "homepage": "https://clue.engineering/" + }, + { + "name": "Cees-Jan Kiewiet", + "email": "reactphp@ceesjankiewiet.nl", + "homepage": "https://wyrihaximus.net/" + }, + { + "name": "Jan Sorgalla", + "email": "jsorgalla@gmail.com", + "homepage": "https://sorgalla.com/" + }, + { + "name": "Chris Boden", + "email": "cboden@gmail.com", + "homepage": "https://cboden.dev/" + } + ], + "description": "Event-driven library for executing child processes with ReactPHP.", + "keywords": [ + "event-driven", + "process", + "reactphp" + ], + "support": { + "issues": "https://github.com/reactphp/child-process/issues", + "source": "https://github.com/reactphp/child-process/tree/v0.6.5" + }, + "funding": [ + { + "url": "https://github.com/WyriHaximus", + "type": "github" + }, + { + "url": "https://github.com/clue", + "type": "github" + } + ], + "time": "2022-09-16T13:41:56+00:00" + }, + { + "name": "react/dns", + "version": "v1.13.0", + "source": { + "type": "git", + "url": "https://github.com/reactphp/dns.git", + "reference": "eb8ae001b5a455665c89c1df97f6fb682f8fb0f5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/reactphp/dns/zipball/eb8ae001b5a455665c89c1df97f6fb682f8fb0f5", + "reference": "eb8ae001b5a455665c89c1df97f6fb682f8fb0f5", + "shasum": "" + }, + "require": { + "php": ">=5.3.0", + "react/cache": "^1.0 || ^0.6 || ^0.5", + "react/event-loop": "^1.2", + "react/promise": "^3.2 || ^2.7 || ^1.2.1" + }, + "require-dev": { + "phpunit/phpunit": "^9.6 || ^5.7 || ^4.8.36", + "react/async": "^4.3 || ^3 || ^2", + "react/promise-timer": "^1.11" + }, + "type": "library", + "autoload": { + "psr-4": { + "React\\Dns\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Christian Lück", + "email": "christian@clue.engineering", + "homepage": "https://clue.engineering/" + }, + { + "name": "Cees-Jan Kiewiet", + "email": "reactphp@ceesjankiewiet.nl", + "homepage": "https://wyrihaximus.net/" + }, + { + "name": "Jan Sorgalla", + "email": "jsorgalla@gmail.com", + "homepage": "https://sorgalla.com/" + }, + { + "name": "Chris Boden", + "email": "cboden@gmail.com", + "homepage": "https://cboden.dev/" + } + ], + "description": "Async DNS resolver for ReactPHP", + "keywords": [ + "async", + "dns", + "dns-resolver", + "reactphp" + ], + "support": { + "issues": "https://github.com/reactphp/dns/issues", + "source": "https://github.com/reactphp/dns/tree/v1.13.0" + }, + "funding": [ + { + "url": "https://opencollective.com/reactphp", + "type": "open_collective" + } + ], + "time": "2024-06-13T14:18:03+00:00" + }, + { + "name": "react/event-loop", + "version": "v1.5.0", + "source": { + "type": "git", + "url": "https://github.com/reactphp/event-loop.git", + "reference": "bbe0bd8c51ffc05ee43f1729087ed3bdf7d53354" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/reactphp/event-loop/zipball/bbe0bd8c51ffc05ee43f1729087ed3bdf7d53354", + "reference": "bbe0bd8c51ffc05ee43f1729087ed3bdf7d53354", + "shasum": "" + }, + "require": { + "php": ">=5.3.0" + }, + "require-dev": { + "phpunit/phpunit": "^9.6 || ^5.7 || ^4.8.36" + }, + "suggest": { + "ext-pcntl": "For signal handling support when using the StreamSelectLoop" + }, + "type": "library", + "autoload": { + "psr-4": { + "React\\EventLoop\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Christian Lück", + "email": "christian@clue.engineering", + "homepage": "https://clue.engineering/" + }, + { + "name": "Cees-Jan Kiewiet", + "email": "reactphp@ceesjankiewiet.nl", + "homepage": "https://wyrihaximus.net/" + }, + { + "name": "Jan Sorgalla", + "email": "jsorgalla@gmail.com", + "homepage": "https://sorgalla.com/" + }, + { + "name": "Chris Boden", + "email": "cboden@gmail.com", + "homepage": "https://cboden.dev/" + } + ], + "description": "ReactPHP's core reactor event loop that libraries can use for evented I/O.", + "keywords": [ + "asynchronous", + "event-loop" + ], + "support": { + "issues": "https://github.com/reactphp/event-loop/issues", + "source": "https://github.com/reactphp/event-loop/tree/v1.5.0" + }, + "funding": [ + { + "url": "https://opencollective.com/reactphp", + "type": "open_collective" + } + ], + "time": "2023-11-13T13:48:05+00:00" + }, + { + "name": "react/promise", + "version": "v3.2.0", + "source": { + "type": "git", + "url": "https://github.com/reactphp/promise.git", + "reference": "8a164643313c71354582dc850b42b33fa12a4b63" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/reactphp/promise/zipball/8a164643313c71354582dc850b42b33fa12a4b63", + "reference": "8a164643313c71354582dc850b42b33fa12a4b63", + "shasum": "" + }, + "require": { + "php": ">=7.1.0" + }, + "require-dev": { + "phpstan/phpstan": "1.10.39 || 1.4.10", + "phpunit/phpunit": "^9.6 || ^7.5" + }, + "type": "library", + "autoload": { + "files": [ + "src/functions_include.php" + ], + "psr-4": { + "React\\Promise\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jan Sorgalla", + "email": "jsorgalla@gmail.com", + "homepage": "https://sorgalla.com/" + }, + { + "name": "Christian Lück", + "email": "christian@clue.engineering", + "homepage": "https://clue.engineering/" + }, + { + "name": "Cees-Jan Kiewiet", + "email": "reactphp@ceesjankiewiet.nl", + "homepage": "https://wyrihaximus.net/" + }, + { + "name": "Chris Boden", + "email": "cboden@gmail.com", + "homepage": "https://cboden.dev/" + } + ], + "description": "A lightweight implementation of CommonJS Promises/A for PHP", + "keywords": [ + "promise", + "promises" + ], + "support": { + "issues": "https://github.com/reactphp/promise/issues", + "source": "https://github.com/reactphp/promise/tree/v3.2.0" + }, + "funding": [ + { + "url": "https://opencollective.com/reactphp", + "type": "open_collective" + } + ], + "time": "2024-05-24T10:39:05+00:00" + }, + { + "name": "react/socket", + "version": "v1.15.0", + "source": { + "type": "git", + "url": "https://github.com/reactphp/socket.git", + "reference": "216d3aec0b87f04a40ca04f481e6af01bdd1d038" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/reactphp/socket/zipball/216d3aec0b87f04a40ca04f481e6af01bdd1d038", + "reference": "216d3aec0b87f04a40ca04f481e6af01bdd1d038", + "shasum": "" + }, + "require": { + "evenement/evenement": "^3.0 || ^2.0 || ^1.0", + "php": ">=5.3.0", + "react/dns": "^1.11", + "react/event-loop": "^1.2", + "react/promise": "^3 || ^2.6 || ^1.2.1", + "react/stream": "^1.2" + }, + "require-dev": { + "phpunit/phpunit": "^9.6 || ^5.7 || ^4.8.36", + "react/async": "^4 || ^3 || ^2", + "react/promise-stream": "^1.4", + "react/promise-timer": "^1.10" + }, + "type": "library", + "autoload": { + "psr-4": { + "React\\Socket\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Christian Lück", + "email": "christian@clue.engineering", + "homepage": "https://clue.engineering/" + }, + { + "name": "Cees-Jan Kiewiet", + "email": "reactphp@ceesjankiewiet.nl", + "homepage": "https://wyrihaximus.net/" + }, + { + "name": "Jan Sorgalla", + "email": "jsorgalla@gmail.com", + "homepage": "https://sorgalla.com/" + }, + { + "name": "Chris Boden", + "email": "cboden@gmail.com", + "homepage": "https://cboden.dev/" + } + ], + "description": "Async, streaming plaintext TCP/IP and secure TLS socket server and client connections for ReactPHP", + "keywords": [ + "Connection", + "Socket", + "async", + "reactphp", + "stream" + ], + "support": { + "issues": "https://github.com/reactphp/socket/issues", + "source": "https://github.com/reactphp/socket/tree/v1.15.0" + }, + "funding": [ + { + "url": "https://opencollective.com/reactphp", + "type": "open_collective" + } + ], + "time": "2023-12-15T11:02:10+00:00" + }, + { + "name": "react/stream", + "version": "v1.4.0", + "source": { + "type": "git", + "url": "https://github.com/reactphp/stream.git", + "reference": "1e5b0acb8fe55143b5b426817155190eb6f5b18d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/reactphp/stream/zipball/1e5b0acb8fe55143b5b426817155190eb6f5b18d", + "reference": "1e5b0acb8fe55143b5b426817155190eb6f5b18d", + "shasum": "" + }, + "require": { + "evenement/evenement": "^3.0 || ^2.0 || ^1.0", + "php": ">=5.3.8", + "react/event-loop": "^1.2" + }, + "require-dev": { + "clue/stream-filter": "~1.2", + "phpunit/phpunit": "^9.6 || ^5.7 || ^4.8.36" + }, + "type": "library", + "autoload": { + "psr-4": { + "React\\Stream\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Christian Lück", + "email": "christian@clue.engineering", + "homepage": "https://clue.engineering/" + }, + { + "name": "Cees-Jan Kiewiet", + "email": "reactphp@ceesjankiewiet.nl", + "homepage": "https://wyrihaximus.net/" + }, + { + "name": "Jan Sorgalla", + "email": "jsorgalla@gmail.com", + "homepage": "https://sorgalla.com/" + }, + { + "name": "Chris Boden", + "email": "cboden@gmail.com", + "homepage": "https://cboden.dev/" + } + ], + "description": "Event-driven readable and writable streams for non-blocking I/O in ReactPHP", + "keywords": [ + "event-driven", + "io", + "non-blocking", + "pipe", + "reactphp", + "readable", + "stream", + "writable" + ], + "support": { + "issues": "https://github.com/reactphp/stream/issues", + "source": "https://github.com/reactphp/stream/tree/v1.4.0" + }, + "funding": [ + { + "url": "https://opencollective.com/reactphp", + "type": "open_collective" + } + ], + "time": "2024-06-11T12:45:25+00:00" }, { "name": "sebastian/cli-parser", @@ -7687,16 +8879,16 @@ }, { "name": "symfony/filesystem", - "version": "v7.0.6", + "version": "v7.1.2", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", - "reference": "408105dff4c104454100730bdfd1a9cdd993f04d" + "reference": "92a91985250c251de9b947a14bb2c9390b1a562c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/408105dff4c104454100730bdfd1a9cdd993f04d", - "reference": "408105dff4c104454100730bdfd1a9cdd993f04d", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/92a91985250c251de9b947a14bb2c9390b1a562c", + "reference": "92a91985250c251de9b947a14bb2c9390b1a562c", "shasum": "" }, "require": { @@ -7704,6 +8896,9 @@ "symfony/polyfill-ctype": "~1.8", "symfony/polyfill-mbstring": "~1.8" }, + "require-dev": { + "symfony/process": "^6.4|^7.0" + }, "type": "library", "autoload": { "psr-4": { @@ -7730,7 +8925,7 @@ "description": "Provides basic utilities for the filesystem", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/filesystem/tree/v7.0.6" + "source": "https://github.com/symfony/filesystem/tree/v7.1.2" }, "funding": [ { @@ -7746,20 +8941,20 @@ "type": "tidelift" } ], - "time": "2024-03-21T19:37:36+00:00" + "time": "2024-06-28T10:03:55+00:00" }, { "name": "symfony/finder", - "version": "v7.0.0", + "version": "v7.1.1", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "6e5688d69f7cfc4ed4a511e96007e06c2d34ce56" + "reference": "fbb0ba67688b780efbc886c1a0a0948dcf7205d6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/6e5688d69f7cfc4ed4a511e96007e06c2d34ce56", - "reference": "6e5688d69f7cfc4ed4a511e96007e06c2d34ce56", + "url": "https://api.github.com/repos/symfony/finder/zipball/fbb0ba67688b780efbc886c1a0a0948dcf7205d6", + "reference": "fbb0ba67688b780efbc886c1a0a0948dcf7205d6", "shasum": "" }, "require": { @@ -7794,7 +8989,7 @@ "description": "Finds files and directories via an intuitive fluent interface", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/finder/tree/v7.0.0" + "source": "https://github.com/symfony/finder/tree/v7.1.1" }, "funding": [ { @@ -7810,20 +9005,20 @@ "type": "tidelift" } ], - "time": "2023-10-31T17:59:56+00:00" + "time": "2024-05-31T14:57:53+00:00" }, { "name": "symfony/options-resolver", - "version": "v7.0.0", + "version": "v7.1.1", "source": { "type": "git", "url": "https://github.com/symfony/options-resolver.git", - "reference": "700ff4096e346f54cb628ea650767c8130f1001f" + "reference": "47aa818121ed3950acd2b58d1d37d08a94f9bf55" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/options-resolver/zipball/700ff4096e346f54cb628ea650767c8130f1001f", - "reference": "700ff4096e346f54cb628ea650767c8130f1001f", + "url": "https://api.github.com/repos/symfony/options-resolver/zipball/47aa818121ed3950acd2b58d1d37d08a94f9bf55", + "reference": "47aa818121ed3950acd2b58d1d37d08a94f9bf55", "shasum": "" }, "require": { @@ -7861,7 +9056,7 @@ "options" ], "support": { - "source": "https://github.com/symfony/options-resolver/tree/v7.0.0" + "source": "https://github.com/symfony/options-resolver/tree/v7.1.1" }, "funding": [ { @@ -7877,20 +9072,20 @@ "type": "tidelift" } ], - "time": "2023-08-08T10:20:21+00:00" + "time": "2024-05-31T14:57:53+00:00" }, { "name": "symfony/polyfill-php81", - "version": "v1.29.0", + "version": "v1.30.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php81.git", - "reference": "c565ad1e63f30e7477fc40738343c62b40bc672d" + "reference": "3fb075789fb91f9ad9af537c4012d523085bd5af" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php81/zipball/c565ad1e63f30e7477fc40738343c62b40bc672d", - "reference": "c565ad1e63f30e7477fc40738343c62b40bc672d", + "url": "https://api.github.com/repos/symfony/polyfill-php81/zipball/3fb075789fb91f9ad9af537c4012d523085bd5af", + "reference": "3fb075789fb91f9ad9af537c4012d523085bd5af", "shasum": "" }, "require": { @@ -7937,7 +9132,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php81/tree/v1.29.0" + "source": "https://github.com/symfony/polyfill-php81/tree/v1.30.0" }, "funding": [ { @@ -7953,20 +9148,20 @@ "type": "tidelift" } ], - "time": "2024-01-29T20:11:03+00:00" + "time": "2024-06-19T12:30:46+00:00" }, { "name": "symfony/process", - "version": "v7.0.4", + "version": "v7.1.1", "source": { "type": "git", "url": "https://github.com/symfony/process.git", - "reference": "0e7727191c3b71ebec6d529fa0e50a01ca5679e9" + "reference": "febf90124323a093c7ee06fdb30e765ca3c20028" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/0e7727191c3b71ebec6d529fa0e50a01ca5679e9", - "reference": "0e7727191c3b71ebec6d529fa0e50a01ca5679e9", + "url": "https://api.github.com/repos/symfony/process/zipball/febf90124323a093c7ee06fdb30e765ca3c20028", + "reference": "febf90124323a093c7ee06fdb30e765ca3c20028", "shasum": "" }, "require": { @@ -7998,7 +9193,7 @@ "description": "Executes commands in sub-processes", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/process/tree/v7.0.4" + "source": "https://github.com/symfony/process/tree/v7.1.1" }, "funding": [ { @@ -8014,20 +9209,20 @@ "type": "tidelift" } ], - "time": "2024-02-22T20:27:20+00:00" + "time": "2024-05-31T14:57:53+00:00" }, { "name": "symfony/stopwatch", - "version": "v7.0.3", + "version": "v7.1.1", "source": { "type": "git", "url": "https://github.com/symfony/stopwatch.git", - "reference": "983900d6fddf2b0cbaacacbbad07610854bd8112" + "reference": "5b75bb1ac2ba1b9d05c47fc4b3046a625377d23d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/stopwatch/zipball/983900d6fddf2b0cbaacacbbad07610854bd8112", - "reference": "983900d6fddf2b0cbaacacbbad07610854bd8112", + "url": "https://api.github.com/repos/symfony/stopwatch/zipball/5b75bb1ac2ba1b9d05c47fc4b3046a625377d23d", + "reference": "5b75bb1ac2ba1b9d05c47fc4b3046a625377d23d", "shasum": "" }, "require": { @@ -8060,7 +9255,7 @@ "description": "Provides a way to profile code", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/stopwatch/tree/v7.0.3" + "source": "https://github.com/symfony/stopwatch/tree/v7.1.1" }, "funding": [ { @@ -8076,7 +9271,7 @@ "type": "tidelift" } ], - "time": "2024-01-23T15:02:46+00:00" + "time": "2024-05-31T14:57:53+00:00" }, { "name": "theseer/tokenizer", @@ -8134,7 +9329,9 @@ "stability-flags": [], "prefer-stable": false, "prefer-lowest": false, - "platform": [], + "platform": { + "php": "^7.3 || ^8" + }, "platform-dev": [], "plugin-api-version": "2.6.0" } diff --git a/composer.phar b/composer.phar new file mode 100755 index 0000000000..53f8b81265 Binary files /dev/null and b/composer.phar differ diff --git a/dev/config.d/0.main.php b/dev/config.d/0.main.php index 9a613fd385..cf49c44559 100755 --- a/dev/config.d/0.main.php +++ b/dev/config.d/0.main.php @@ -5,7 +5,7 @@ return [ /* MAIN */ 'themes.active' => 'MapasCulturais\Themes\BaseV2', - 'app.mode' => $_ENV['APP_MODE'], + 'app.mode' => env('APP_MODE'), 'doctrine.isDev' => false, // deixe true somente se estiver trabalhando nos mapeamentos das entidades /* SELOS */ diff --git a/dev/docker-compose.yml b/dev/docker-compose.yml index 8b1a69b42c..1a8fe3eceb 100644 --- a/dev/docker-compose.yml +++ b/dev/docker-compose.yml @@ -1,4 +1,3 @@ -version: '2' services: mapas: build: @@ -40,7 +39,7 @@ services: - db - redis - sessions - + environment: - BUILD_ASSETS=0 - PENDING_PCACHE_RECREATION_INTERVAL=5 @@ -50,7 +49,7 @@ services: - MAILER_FROM=sysadmin@localhost - NUM_PROCESSES=2 - MC_UPDATES_PROCESSES=4 - + # chaves de teste do google recaptcha - GOOGLE_RECAPTCHA_SITEKEY=6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI - GOOGLE_RECAPTCHA_SECRET=6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe @@ -64,15 +63,15 @@ services: - mailhog stdin_open: true tty: true - - mailhog: + + mailhog: image: mailhog/mailhog ports: - "8025:8025" redis: image: redis:6 - command: --maxmemory 256Mb --maxmemory-policy allkeys-lru + command: --maxmemory 256Mb --maxmemory-policy allkeys-lru sessions: image: redis:6 @@ -87,7 +86,6 @@ services: - POSTGRES_PASSWORD=mapas - POSTGRES_USER=mapas - POSTGRES_DB=mapas - ports: - "5432:5432" diff --git a/phpunit.xml b/phpunit.xml new file mode 100644 index 0000000000..b8b2cef1c1 --- /dev/null +++ b/phpunit.xml @@ -0,0 +1,17 @@ + + + + + tests/unit + + + + tests/integration + + + + + + diff --git a/src/conf/config.php b/src/conf/config.php index 41c5daec96..0f1ed01c35 100644 --- a/src/conf/config.php +++ b/src/conf/config.php @@ -11,6 +11,11 @@ // inclui arquivos .php de todas as pastas terminadas com .d // dentro da pastas /config. $folders = glob(CONFIG_PATH . '*.d/'); +$folders_dev = glob(PROTECTED_PATH . 'containers/config.d/'); + +if (getenv('APP_MODE') === APPMODE_DEVELOPMENT) { + $folders = array_merge($folders, $folders_dev); +} sort($folders); foreach($folders as $folder) { $config_files = glob($folder . '*.php'); @@ -20,4 +25,4 @@ } } -return $config; \ No newline at end of file +return $config; diff --git a/src/core/AuthProvider.php b/src/core/AuthProvider.php index c46399f925..d4bacf462f 100644 --- a/src/core/AuthProvider.php +++ b/src/core/AuthProvider.php @@ -80,7 +80,7 @@ protected function _requireAuthentication() { if($app->request->isAjax() || $app->request->getHeaderLine('Content-Type') === 'application/json'){ $app->view->controller->errorJson(\MapasCulturais\i::__('Esta ação requer autenticação'), 401); }else{ - $app->redirect($app->controller('auth')->createUrl(''), 302); + $app->redirect($app->controller('auth')->createUrl(''), 401); } } diff --git a/src/core/Entities/AgentOpportunity.php b/src/core/Entities/AgentOpportunity.php index 1e0cbc1df7..1b06df01e7 100644 --- a/src/core/Entities/AgentOpportunity.php +++ b/src/core/Entities/AgentOpportunity.php @@ -30,8 +30,8 @@ class AgentOpportunity extends Opportunity{ * }) */ protected $parent; - + public function getSpecializedClassName() { - return AgentOpportunity::class; + return static::class; } -} \ No newline at end of file +} diff --git a/src/core/Entities/Opportunity.php b/src/core/Entities/Opportunity.php index dc09337b93..77c1e341a1 100644 --- a/src/core/Entities/Opportunity.php +++ b/src/core/Entities/Opportunity.php @@ -9,6 +9,8 @@ use MapasCulturais\App; use MapasCulturais\Definitions\Metadata as MetadataDefinition; /** + * + * * Opportunity * * @property-read int $id @@ -20,8 +22,8 @@ * @property \DateTime $publishTimestamp * @property-read boolean $publishedRegistrations * @property-read int $totalRegistrations - * - * + * + * * @property string $name * @property string $shortDescription * @property \DateTime $registrationFrom @@ -31,13 +33,13 @@ * @property array $registrationRanges * @property self $parent * @property Agent $owner - * - * + * + * * @property EvaluationMethodConfiguration $evaluationMethodConfiguration * @property RegistrationFileConfiguration $registrationFileConfigurations * @property RegistrationFieldConfiguration $registrationFieldConfigurations * @property \MapasCulturais\Entity $ownerEntity - * + * * * @ORM\Table(name="opportunity", indexes={ * @ORM\Index(name="opportunity_entity_idx", columns={"object_type", "object_id"}), @@ -77,7 +79,7 @@ abstract class Opportunity extends \MapasCulturais\Entity Traits\EntityArchive{ Traits\EntityNested::setParent as nestedSetParent; } - + protected $__enableMagicGetterHook = true; protected $__enableMagicSetterHook = true; @@ -485,7 +487,7 @@ static function getValidations() { } static function getClassName() { - return Opportunity::class; + return static::class; } function getExtraPermissionCacheUsers(){ diff --git a/src/core/Entities/ProjectOpportunity.php b/src/core/Entities/ProjectOpportunity.php index 1f2d36b55e..7782661a63 100644 --- a/src/core/Entities/ProjectOpportunity.php +++ b/src/core/Entities/ProjectOpportunity.php @@ -32,6 +32,6 @@ class ProjectOpportunity extends Opportunity{ protected $parent; public function getSpecializedClassName() { - return ProjectOpportunity::class; + return static::class; } } \ No newline at end of file diff --git a/src/core/Traits/ControllerSubSiteAdmin.php b/src/core/Traits/ControllerSubSiteAdmin.php index f612998b10..e5a1a75ef6 100644 --- a/src/core/Traits/ControllerSubSiteAdmin.php +++ b/src/core/Traits/ControllerSubSiteAdmin.php @@ -6,7 +6,7 @@ /** * Implements actions to work with subsite administrators */ -trait ControllerSubsiteAdmin{ +trait ControllerSubSiteAdmin{ /** * This controller uses subsite diff --git a/src/core/Validators/Exceptions/UrlDomainException.php b/src/core/Validators/Exceptions/UrlDomainException.php index 511daf3908..8a6bbf90e1 100644 --- a/src/core/Validators/Exceptions/UrlDomainException.php +++ b/src/core/Validators/Exceptions/UrlDomainException.php @@ -3,7 +3,7 @@ use Respect\Validation\Exceptions\ValidationException; -final class UrlDomainExeption extends ValidationException { +final class UrlDomainException extends ValidationException { protected $defaultTemplates = [ self::MODE_DEFAULT => [ diff --git a/src/plugins/MultipleLocalAuth b/src/plugins/MultipleLocalAuth index 05ba57531b..5750f62088 160000 --- a/src/plugins/MultipleLocalAuth +++ b/src/plugins/MultipleLocalAuth @@ -1 +1 @@ -Subproject commit 05ba57531b4992c000f515ab5ef5ac59f6cdd577 +Subproject commit 5750f6208858a8f960db9032283a653ad92c1818 diff --git a/src/plugins/plugin-MultipleLocalAuth b/src/plugins/plugin-MultipleLocalAuth deleted file mode 160000 index a299fce119..0000000000 --- a/src/plugins/plugin-MultipleLocalAuth +++ /dev/null @@ -1 +0,0 @@ -Subproject commit a299fce1191faa49dbe82c83a12f4760b3b9f37a diff --git a/tests/api-queries.json b/tests/api-queries.json new file mode 100644 index 0000000000..d4bff8c700 --- /dev/null +++ b/tests/api-queries.json @@ -0,0 +1,7094 @@ +{ + "70d6211b3aee02e6eda6bd234c91d574": { + "userId": 3, + "controller": "space", + "endpoint": "find", + "qdata": { + "@count": 1, + "user": "EQ(3)" + }, + "result": 1 + }, + "8d27f4d052027c15f3d23d4f0db4f9af": { + "userId": 3, + "controller": "agent", + "endpoint": "find", + "qdata": { + "@count": 1, + "user": "EQ(3)" + }, + "result": 1 + }, + "29a970e223bc0b514e9003f6a4454930": { + "userId": 3, + "controller": "event", + "endpoint": "find", + "qdata": { + "@count": 1, + "user": "EQ(3)" + }, + "result": 1 + }, + "96f6f29068080e62dd3bd2dc1d5bc418": { + "userId": 3, + "controller": "project", + "endpoint": "find", + "qdata": { + "@count": 1, + "user": "EQ(3)" + }, + "result": 1 + }, + "ee276ab1f1dc58e135b11966ac7e20d6": { + "userId": 3, + "controller": "seal", + "endpoint": "find", + "qdata": { + "@count": 1, + "user": "EQ(3)" + }, + "result": 0 + }, + "0f158555e18f4bd115c1adf851a59ae7": { + "userId": 3, + "controller": "notification", + "endpoint": "find", + "qdata": { + "@select": "id,status,isRequest,createTimestamp,message,approveUrl,request.permissionTo.approve,request.permissionTo.reject,request.requesterUser.id", + "user": "EQ(@me)", + "@ORDER": "createTimestamp DESC" + }, + "result": [ + { + "id": 1, + "status": 1, + "isRequest": false, + "createTimestamp": { + "date": "2016-12-15 11:57:24.000000", + "timezone_type": 3, + "timezone": "America/Sao_Paulo" + }, + "message": "Seu \u00faltimo acesso foi em 21/05/2014, atualize suas informa\u00e7\u00f5es se necess\u00e1rio.", + "approveUrl": "http://localhost/aprovar-notificacao/1/", + "request": { + "permissionTo": { + "approve": null, + "reject": null + }, + "requesterUser": { + "id": null + } + } + } + ] + }, + "f124905921d9c46cc5007aa649a46178": { + "userId": 3, + "controller": "event", + "endpoint": "find", + "qdata": { + "@select": "name,type,status,terms,classificacaoEtaria,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,createTimestamp", + "@files": "(avatar.avatarSmall):url", + "user": "EQ(3)", + "status": "EQ(1)", + "@limit": 50, + "@order": "name ASC", + "@page": 1 + }, + "result": [ + { + "name": "Event 3", + "type": { + "id": 1, + "name": "Padr\u00e3o" + }, + "status": 1, + "terms": { + "tag": [], + "linguagem": ["Cinema"] + }, + "classificacaoEtaria": "Livre", + "singleUrl": "http://localhost/evento/3/", + "editUrl": "http://localhost/eventos/edita/3/", + "deleteUrl": "http://localhost/eventos/apaga/3/", + "publishUrl": "http://localhost/eventos/publish/3/", + "unpublishUrl": "http://localhost/eventos/unpublish/3/", + "createTimestamp": { + "date": "2014-05-21 18:04:44.000000", + "timezone_type": 3, + "timezone": "America/Sao_Paulo" + } + } + ] + }, + "5ba7025b865270fd6378ff5f04ad9a12": { + "userId": 3, + "controller": "event", + "endpoint": "find", + "qdata": { + "@select": "name,type,status,terms,classificacaoEtaria,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,createTimestamp", + "@files": "(avatar.avatarSmall):url", + "user": "EQ(3)", + "status": "EQ(0)", + "@permissions": "view" + }, + "result": [] + }, + "ce9597826a0f3b306861556de6548d25": { + "userId": 3, + "controller": "event", + "endpoint": "find", + "qdata": { + "@select": "name,type,status,terms,classificacaoEtaria,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,createTimestamp", + "@files": "(avatar.avatarSmall):url", + "user": "EQ(3)", + "status": "EQ(-10)", + "@permissions": "view" + }, + "result": [] + }, + "a5d8edc0155af4efed61de41217feec6": { + "userId": 3, + "controller": "space", + "endpoint": "find", + "qdata": { + "@select": "name,type,status,terms,endereco,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,acessibilidade,createTimestamp", + "@files": "(avatar.avatarSmall):url", + "user": "EQ(3)", + "status": "EQ(1)", + "@limit": 50, + "@order": "name ASC", + "@page": 1 + }, + "result": [ + { + "name": "Space 3", + "type": { + "id": 10, + "name": "Cine itinerante" + }, + "status": 1, + "terms": { + "tag": [], + "area": ["Jogos Eletr\u00f4nicos", "Arte Digital"] + }, + "endereco": "Rua Tr\u00eas Rios, 20 , Bom Retiro, 01123-000, S\u00e3o Paulo, SP", + "singleUrl": "http://localhost/espaco/3/", + "editUrl": "http://localhost/espacos/edita/3/", + "deleteUrl": "http://localhost/espacos/apaga/3/", + "publishUrl": "http://localhost/espacos/publish/3/", + "unpublishUrl": "http://localhost/espacos/unpublish/3/", + "acessibilidade": "Sim", + "createTimestamp": { + "date": "2014-05-21 18:04:38.000000", + "timezone_type": 3, + "timezone": "America/Sao_Paulo" + } + } + ] + }, + "66defaba013770d11b393dfa9b9d8eaf": { + "userId": 3, + "controller": "space", + "endpoint": "find", + "qdata": { + "@select": "name,type,status,terms,endereco,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,acessibilidade,createTimestamp", + "@files": "(avatar.avatarSmall):url", + "user": "EQ(3)", + "status": "EQ(0)", + "@permissions": "view" + }, + "result": [] + }, + "d9ed82fd48ea584a3a68dc388c43cf2a": { + "userId": 3, + "controller": "space", + "endpoint": "find", + "qdata": { + "@select": "name,type,status,terms,endereco,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,acessibilidade,createTimestamp", + "@files": "(avatar.avatarSmall):url", + "user": "EQ(3)", + "status": "EQ(-10)", + "@permissions": "view" + }, + "result": [] + }, + "3b864fa6568dd5b42c0465a259191e8b": { + "userId": 3, + "controller": "event", + "endpoint": "find", + "qdata": { + "@count": 1, + "id": "IN(5,3,6,522)" + }, + "result": 4 + }, + "fdd2498508e3c5cd093d5be8dac55876": { + "userId": 3, + "controller": "event", + "endpoint": "find", + "qdata": { + "@count": 1, + "@verified": "IN(1)", + "id": "IN(5,3,6,522)" + }, + "result": 2 + }, + "9be2aca85b5ecd7dcea1ceedd7175c29": { + "userId": 3, + "controller": "event", + "endpoint": "find", + "qdata": { + "@verified": "IN(1)", + "@select": "id", + "id": "IN(5,3,6,522)" + }, + "result": [ + { + "id": 3 + }, + { + "id": 5 + } + ] + }, + "97949cbf658aa72e265fa99ebcad0388": { + "userId": 3, + "controller": "agent", + "endpoint": "find", + "qdata": { + "@count": 1 + }, + "result": 10 + }, + "80e12cc05e8ded2ffb839e95f3b22048": { + "userId": 3, + "controller": "agent", + "endpoint": "find", + "qdata": { + "@count": 1, + "@verified": "IN(1)" + }, + "result": 4 + }, + "2ea75930b718a27369769de8e2d67f41": { + "userId": 3, + "controller": "agent", + "endpoint": "find", + "qdata": { + "@select": "id", + "@verified": "IN(1)" + }, + "result": [ + { + "id": 5 + }, + { + "id": 7 + }, + { + "id": 1 + }, + { + "id": 3 + } + ] + }, + "7c019ec423c13708dd0fab67e5246c96": { + "userId": 3, + "controller": "space", + "endpoint": "find", + "qdata": { + "@count": 1 + }, + "result": 8 + }, + "af6beb085160571baf9f416e07642cf5": { + "userId": 3, + "controller": "space", + "endpoint": "find", + "qdata": { + "@count": 1, + "@verified": "IN(1)" + }, + "result": 4 + }, + "7b493e7c4586bd4a79bb7952f23cebcd": { + "userId": 3, + "controller": "space", + "endpoint": "find", + "qdata": { + "@select": "id", + "@verified": "IN(1)" + }, + "result": [ + { + "id": 1 + }, + { + "id": 7 + }, + { + "id": 5 + }, + { + "id": 3 + } + ] + }, + "d39a2ea25d76b44d038af82ca2dcfa19": { + "userId": 3, + "controller": "project", + "endpoint": "find", + "qdata": { + "@count": 1 + }, + "result": 8 + }, + "79ae68cf59fe0a1172e10f75471bf35e": { + "userId": 3, + "controller": "project", + "endpoint": "find", + "qdata": { + "@count": 1, + "@verified": "IN(1)" + }, + "result": 4 + }, + "4d8feafb354891c067d9dfd667643691": { + "userId": 3, + "controller": "project", + "endpoint": "find", + "qdata": { + "@select": "id", + "@verified": "IN(1)" + }, + "result": [ + { + "id": 1 + }, + { + "id": 3 + }, + { + "id": 5 + }, + { + "id": 7 + } + ] + }, + "ba104dbcd0408216d857fe1548afd204": { + "userId": 3, + "controller": "event", + "endpoint": "find", + "qdata": { + "@count": "1", + "id": "IN(5,3,6,522)" + }, + "result": 4 + }, + "95762f4096e162303904432d1cf363b5": { + "userId": 3, + "controller": "event", + "endpoint": "findByLocation", + "qdata": { + "@count": "1", + "@from": "2016-12-16", + "@to": "2017-01-16" + }, + "result": 4 + }, + "717e5a85fb4fc387074979ea40608c3e": { + "userId": 3, + "controller": "event", + "endpoint": "find", + "qdata": { + "@select": "id", + "@order": "name ASC", + "id": "IN(5,5,3,6,3,6,522)" + }, + "result": [ + { + "id": 3 + }, + { + "id": 5 + }, + { + "id": 6 + }, + { + "id": 522 + } + ] + }, + "4f12baf4e75871f1f37da9c3077ace6d": { + "userId": 3, + "controller": "space", + "endpoint": "find", + "qdata": { + "id": "IN(6,4,2,1)", + "@select": "id,name,location", + "@order": "name ASC" + }, + "result": [ + { + "id": 1, + "name": "Space 1", + "location": { + "latitude": "-23.5443493", + "longitude": "-46.6444262" + } + }, + { + "id": 2, + "name": "Space 2", + "location": { + "latitude": "-27.5906075", + "longitude": "-48.5129766" + } + }, + { + "id": 4, + "name": "Space 4", + "location": { + "latitude": "-23.5575987", + "longitude": "-46.6499111" + } + }, + { + "id": 6, + "name": "Space 6", + "location": { + "latitude": "-27.5887012", + "longitude": "-48.5070641" + } + } + ] + }, + "d6e0fdd6361600b5e04ca5f37636f195": { + "userId": 3, + "controller": "space", + "endpoint": "findByEvents", + "qdata": { + "@from": "2016-12-16", + "@to": "2017-01-16", + "@select": "id,name,location", + "@order": "name ASC" + }, + "result": [ + { + "id": 1, + "name": "Space 1", + "location": { + "latitude": "-23.5443493", + "longitude": "-46.6444262" + } + }, + { + "id": 2, + "name": "Space 2", + "location": { + "latitude": "-27.5906075", + "longitude": "-48.5129766" + } + }, + { + "id": 4, + "name": "Space 4", + "location": { + "latitude": "-23.5575987", + "longitude": "-46.6499111" + } + }, + { + "id": 6, + "name": "Space 6", + "location": { + "latitude": "-27.5887012", + "longitude": "-48.5070641" + } + } + ] + }, + "1868900d6f3f4445457d5c3a1e26b229": { + "userId": 3, + "controller": "space", + "endpoint": "find", + "qdata": { + "@select": "id,name,location", + "@order": "name ASC" + }, + "result": [ + { + "id": 1, + "name": "Space 1", + "location": { + "latitude": "-23.5443493", + "longitude": "-46.6444262" + } + }, + { + "id": 2, + "name": "Space 2", + "location": { + "latitude": "-27.5906075", + "longitude": "-48.5129766" + } + }, + { + "id": 3, + "name": "Space 3", + "location": { + "latitude": "-23.5299146", + "longitude": "-46.6343522" + } + }, + { + "id": 4, + "name": "Space 4", + "location": { + "latitude": "-23.5575987", + "longitude": "-46.6499111" + } + }, + { + "id": 5, + "name": "Space 5", + "location": { + "latitude": "-27.5666995", + "longitude": "-48.5102924" + } + }, + { + "id": 6, + "name": "Space 6", + "location": { + "latitude": "-27.5887012", + "longitude": "-48.5070641" + } + }, + { + "id": 7, + "name": "Space 7", + "location": { + "latitude": "-23.5394312", + "longitude": "-46.6915816" + } + }, + { + "id": 8, + "name": "Space 8", + "location": { + "latitude": "-23.5466151", + "longitude": "-46.6468627" + } + } + ] + }, + "60fcb8c8fc0c50220f81e0b44d4a83a6": { + "userId": 3, + "controller": "agent", + "endpoint": "find", + "qdata": { + "@select": "id,name,location", + "@order": "name ASC" + }, + "result": [ + { + "id": 3, + "name": "Admin 1", + "location": { + "latitude": "-23.546179", + "longitude": "-46.6451146" + } + }, + { + "id": 4, + "name": "Admin 2", + "location": { + "latitude": "-23.5367427", + "longitude": "-46.6587759" + } + }, + { + "id": 356, + "name": "New 1", + "location": { + "latitude": "-23.5419764", + "longitude": "-46.6465663" + } + }, + { + "id": 357, + "name": "New 2", + "location": { + "latitude": "-23.533808", + "longitude": "-46.6569978" + } + }, + { + "id": 7, + "name": "Normal User 1", + "location": { + "latitude": "-23.5335215", + "longitude": "-46.6569949" + } + }, + { + "id": 8, + "name": "Normal User 2", + "location": { + "latitude": "0", + "longitude": "0" + } + }, + { + "id": 5, + "name": "Staff User 1", + "location": { + "latitude": "0", + "longitude": "0" + } + }, + { + "id": 6, + "name": "Staff User 2", + "location": { + "latitude": "0", + "longitude": "0" + } + }, + { + "id": 1, + "name": "Super Admin 1", + "location": { + "latitude": "0", + "longitude": "0" + } + }, + { + "id": 2, + "name": "Super Admin 2", + "location": { + "latitude": "0", + "longitude": "0" + } + } + ] + }, + "dd8c70bee75e578428ffcc502a6c8d96": { + "userId": 3, + "controller": "project", + "endpoint": "find", + "qdata": { + "@select": "id,singleUrl,name,type,shortDescription,terms,registrationFrom,registrationTo", + "@files": "(avatar.avatarMedium):url", + "@page": "1", + "@limit": "10", + "@order": "name ASC" + }, + "result": [ + { + "id": 1, + "singleUrl": "http://localhost/projeto/1/", + "name": "Project 1", + "type": { + "id": 1, + "name": "Festival" + }, + "shortDescription": "of Super Admin 1", + "terms": { + "tag": [] + }, + "registrationFrom": null, + "registrationTo": null + }, + { + "id": 2, + "singleUrl": "http://localhost/projeto/2/", + "name": "Project 2", + "type": { + "id": 1, + "name": "Festival" + }, + "shortDescription": "of Super Admin 2", + "terms": { + "tag": [] + }, + "registrationFrom": null, + "registrationTo": null + }, + { + "id": 3, + "singleUrl": "http://localhost/projeto/3/", + "name": "Project 3", + "type": { + "id": 1, + "name": "Festival" + }, + "shortDescription": "of Admin 1", + "terms": { + "tag": [] + }, + "registrationFrom": null, + "registrationTo": null + }, + { + "id": 4, + "singleUrl": "http://localhost/projeto/4/", + "name": "Project 4", + "type": { + "id": 1, + "name": "Festival" + }, + "shortDescription": "of Admin 2", + "terms": { + "tag": [] + }, + "registrationFrom": null, + "registrationTo": null + }, + { + "id": 5, + "singleUrl": "http://localhost/projeto/5/", + "name": "Project 5", + "type": { + "id": 1, + "name": "Festival" + }, + "shortDescription": "of Staff User 1", + "terms": { + "tag": [] + }, + "registrationFrom": null, + "registrationTo": null + }, + { + "id": 6, + "singleUrl": "http://localhost/projeto/6/", + "name": "Project 6", + "type": { + "id": 1, + "name": "Festival" + }, + "shortDescription": "of Staff User 2", + "terms": { + "tag": [] + }, + "registrationFrom": null, + "registrationTo": null + }, + { + "id": 7, + "singleUrl": "http://localhost/projeto/7/", + "name": "Project 7", + "type": { + "id": 1, + "name": "Festival" + }, + "shortDescription": "of Normal User 1", + "terms": { + "tag": [] + }, + "registrationFrom": null, + "registrationTo": null + }, + { + "id": 8, + "singleUrl": "http://localhost/projeto/8/", + "name": "Project 8", + "type": { + "id": 1, + "name": "Festival" + }, + "shortDescription": "of Normal User 1", + "terms": { + "tag": [] + }, + "registrationFrom": null, + "registrationTo": null + } + ] + }, + "4ad001cdb3a5db90552b9aa02b2d1736": { + "userId": 3, + "controller": "event", + "endpoint": "find", + "qdata": { + "@select": "id,name,shortDescription,classificacaoEtaria,singleUrl,occurrences,terms,status,owner.id,owner.name,owner.singleUrl", + "project": "IN(@Project:1)", + "@permissions": "view", + "@files": "(avatar.avatarSmall):url" + }, + "result": [] + }, + "0fc5c83f2b8252079e5643ad21225ac8": { + "userId": 3, + "controller": "seal", + "endpoint": "find", + "qdata": { + "@select": "id,name,status, singleUrl", + "@permissions": "@control", + "@files": "(avatar.avatarMedium):url", + "@ORDER": "createTimestamp DESC" + }, + "result": [ + { + "id": 1, + "name": "Selo Mapas", + "status": 1, + "singleUrl": "http://localhost/selo/1/" + } + ] + }, + "5dc2891884cfe4220babee05c9fe1ee7": { + "userId": 3, + "controller": "project", + "endpoint": "find", + "qdata": { + "name": "ilike(**)", + "@select": "id,name,terms,type", + "@limit": "10", + "@page": "1", + "@order": "name ASC", + "@files": "(avatar.avatarSmall):url", + "id": "!IN(1)", + "_": "1481853983494" + }, + "result": [ + { + "id": 2, + "name": "Project 2", + "terms": { + "tag": [] + }, + "type": { + "id": 1, + "name": "Festival" + } + }, + { + "id": 3, + "name": "Project 3", + "terms": { + "tag": [] + }, + "type": { + "id": 1, + "name": "Festival" + } + }, + { + "id": 4, + "name": "Project 4", + "terms": { + "tag": [] + }, + "type": { + "id": 1, + "name": "Festival" + } + }, + { + "id": 5, + "name": "Project 5", + "terms": { + "tag": [] + }, + "type": { + "id": 1, + "name": "Festival" + } + }, + { + "id": 6, + "name": "Project 6", + "terms": { + "tag": [] + }, + "type": { + "id": 1, + "name": "Festival" + } + }, + { + "id": 7, + "name": "Project 7", + "terms": { + "tag": [] + }, + "type": { + "id": 1, + "name": "Festival" + } + }, + { + "id": 8, + "name": "Project 8", + "terms": { + "tag": [] + }, + "type": { + "id": 1, + "name": "Festival" + } + } + ] + }, + "1727e7799666e2ba3a152927ae65ca28": { + "userId": 3, + "controller": "agent", + "endpoint": "find", + "qdata": { + "@files": "(avatar.avatarSmall):url", + "@limit": "20", + "@order": "name", + "@page": "1", + "@select": "id,name,type,shortDescription,terms", + "name": "ILIKE(*adm*)" + }, + "result": [ + { + "@files:avatar.avatarSmall": { + "url": "http://localhost/files/agent/3/file/18/imagem1-0108e4d03baa58da37295fac2878acaf.jpeg" + }, + "id": 3, + "name": "Admin 1", + "type": { + "id": 1, + "name": "Individual" + }, + "shortDescription": "short description", + "terms": { + "tag": [], + "area": ["Arquitetura-Urbanismo"] + } + }, + { + "@files:avatar.avatarSmall": { + "url": "http://localhost/files/agent/4/file/22/imagem2-1d80d1d4d8de1e61294630edb215f103.jpeg" + }, + "id": 4, + "name": "Admin 2", + "type": { + "id": 1, + "name": "Individual" + }, + "shortDescription": "short description", + "terms": { + "tag": [], + "area": ["Arquivo"] + } + }, + { + "id": 1, + "name": "Super Admin 1", + "type": { + "id": 1, + "name": "Individual" + }, + "shortDescription": "short description", + "terms": { + "tag": [], + "area": ["Antropologia"] + } + }, + { + "id": 2, + "name": "Super Admin 2", + "type": { + "id": 1, + "name": "Individual" + }, + "shortDescription": "short description", + "terms": { + "tag": [], + "area": ["Arqueologia"] + } + } + ] + }, + "01973bb8927cfcfe6ca4e8d286d4a292": { + "userId": 3, + "controller": "agent", + "endpoint": "findOne", + "qdata": { + "id": "EQ(4)", + "@select": "id,singleUrl,name,subTitle,type,shortDescription,terms,project.name,project.singleUrl", + "@files": "(avatar.avatarSmall):url" + }, + "result": { + "@files:avatar.avatarSmall": { + "url": "http://localhost/files/agent/4/file/22/imagem2-1d80d1d4d8de1e61294630edb215f103.jpeg" + }, + "id": 4, + "singleUrl": "http://localhost/agente/4/", + "name": "Admin 2", + "subTitle": null, + "type": { + "id": 1, + "name": "Individual" + }, + "shortDescription": "short description", + "terms": { + "tag": [], + "area": ["Arquivo"] + }, + "project": { + "name": null, + "singleUrl": null + } + } + }, + "bcff3f0c6d852535c65eb7bccd9cc4a8": { + "userId": 3, + "controller": "agent", + "endpoint": "findOne", + "qdata": { + "id": "EQ(356)", + "@select": "id,singleUrl,name,subTitle,type,shortDescription,terms,project.name,project.singleUrl", + "@files": "(avatar.avatarSmall):url" + }, + "result": { + "id": 356, + "singleUrl": "http://localhost/agente/356/", + "name": "New 1", + "subTitle": null, + "type": { + "id": 1, + "name": "Individual" + }, + "shortDescription": "descricao curta", + "terms": { + "tag": ["TAGUEADO"], + "area": ["Arte Digital"] + }, + "project": { + "name": null, + "singleUrl": null + } + } + }, + "deb62f6714b88305177ba35d096cad84": { + "userId": 3, + "controller": "agent", + "endpoint": "findOne", + "qdata": { + "id": "EQ(3)", + "@select": "id,singleUrl,name,subTitle,type,shortDescription,terms,project.name,project.singleUrl", + "@files": "(avatar.avatarSmall):url" + }, + "result": { + "@files:avatar.avatarSmall": { + "url": "http://localhost/files/agent/3/file/18/imagem1-0108e4d03baa58da37295fac2878acaf.jpeg" + }, + "id": 3, + "singleUrl": "http://localhost/agente/3/", + "name": "Admin 1", + "subTitle": null, + "type": { + "id": 1, + "name": "Individual" + }, + "shortDescription": "short description", + "terms": { + "tag": [], + "area": ["Arquitetura-Urbanismo"] + }, + "project": { + "name": null, + "singleUrl": null + } + } + }, + "3a3d037a019b83430b04cc02c0d08bd1": { + "userId": 3, + "controller": "agent", + "endpoint": "findOne", + "qdata": { + "id": "EQ(7)", + "@select": "id,singleUrl,name,subTitle,type,shortDescription,terms,project.name,project.singleUrl", + "@files": "(avatar.avatarSmall):url" + }, + "result": { + "@files:avatar.avatarSmall": { + "url": "http://localhost/files/agent/7/file/26/imagem4-4e0f09ec602df7f0dbe0ffa44c19eb5e.jpeg" + }, + "id": 7, + "singleUrl": "http://localhost/agente/7/", + "name": "Normal User 1", + "subTitle": null, + "type": { + "id": 1, + "name": "Individual" + }, + "shortDescription": "short description", + "terms": { + "tag": [], + "area": ["Arquivo", "Arte de Rua", "Cinema"] + }, + "project": { + "name": null, + "singleUrl": null + } + } + }, + "34c0aca8197965907e80a8d9513d9f38": { + "userId": 3, + "controller": "agent", + "endpoint": "findOne", + "qdata": { + "id": "EQ(357)", + "@select": "id,singleUrl,name,subTitle,type,shortDescription,terms,project.name,project.singleUrl", + "@files": "(avatar.avatarSmall):url" + }, + "result": { + "id": 357, + "singleUrl": "http://localhost/agente/357/", + "name": "New 2", + "subTitle": null, + "type": { + "id": 1, + "name": "Individual" + }, + "shortDescription": "curta", + "terms": { + "tag": ["TAGUEADO"], + "area": ["Arte de Rua"] + }, + "project": { + "name": null, + "singleUrl": null + } + } + }, + "fa8cc1578cef6286c4e40a7f51d1e771": { + "userId": 3, + "controller": "agent", + "endpoint": "find", + "qdata": { + "@keyword": "TAGUEADO", + "@select": "id,name,location", + "@order": "name ASC" + }, + "result": [ + { + "id": 356, + "name": "New 1", + "location": { + "latitude": "-23.5419764", + "longitude": "-46.6465663" + } + }, + { + "id": 357, + "name": "New 2", + "location": { + "latitude": "-23.533808", + "longitude": "-46.6569978" + } + } + ] + }, + "1a4cd7bba2599f39bf558306ae21eec8": { + "userId": 3, + "controller": "agent", + "endpoint": "find", + "qdata": { + "@keyword": "TAGUEADO", + "_geoLocation": "GEONEAR(-46.64867877960205,-23.539596040914,700)", + "@select": "id,name,location", + "@order": "name ASC" + }, + "result": [ + { + "id": 356, + "name": "New 1", + "location": { + "latitude": "-23.5419764", + "longitude": "-46.6465663" + } + } + ] + }, + "0909d202bce47446f821b842c064343e": { + "userId": 3, + "controller": "space", + "endpoint": "find", + "qdata": { + "_geoLocation": "GEONEAR(-46.64867877960205,-23.539596040914,700)", + "@select": "id,name,location", + "@order": "name ASC" + }, + "result": [ + { + "id": 1, + "name": "Space 1", + "location": { + "latitude": "-23.5443493", + "longitude": "-46.6444262" + } + } + ] + }, + "456d4e4a7026745820bcad97bf2729c0": { + "userId": 3, + "controller": "space", + "endpoint": "find", + "qdata": { + "@select": "id,name,shortDescription,location,terms,__metadata", + "_geoLocation": "GEONEAR(-46.64867877960205,-23.539596040914,700)" + }, + "result": [ + { + "id": 1, + "name": "Space 1", + "shortDescription": "of Super Admin 1", + "location": { + "latitude": "-23.5443493", + "longitude": "-46.6444262" + }, + "terms": { + "tag": [], + "area": ["Jogos Eletr\u00f4nicos", "Filosofia", "Esporte"] + }, + "__metadata": null + } + ] + }, + "39a306f05cf1209738fc74f4ba836864": { + "userId": 3, + "controller": "event", + "endpoint": "find", + "qdata": { + "@count": "1", + "id": "IN(6,3)" + }, + "result": 2 + }, + "0ae921ea671c5b805568abfb6d7c6e28": { + "userId": 3, + "controller": "event", + "endpoint": "findByLocation", + "qdata": { + "@count": "1", + "@from": "2016-12-16", + "@to": "2017-01-16", + "_geoLocation": "GEONEAR(-46.64867877960205,-23.539596040914,700)" + }, + "result": 2 + }, + "4b52fbc6729b463f5a85fc85c602b4d0": { + "userId": 3, + "controller": "event", + "endpoint": "find", + "qdata": { + "@select": "id", + "_geoLocation": "GEONEAR(-46.64867877960205,-23.539596040914,700)", + "@order": "name ASC", + "id": "IN(5,5,3,6,3,6,522)" + }, + "result": [ + { + "id": 3 + }, + { + "id": 5 + }, + { + "id": 6 + }, + { + "id": 522 + } + ] + }, + "d8b1743ca09d492c6eb0c902d7cd9120": { + "userId": 3, + "controller": "space", + "endpoint": "find", + "qdata": { + "id": "IN(6,4,2,1)", + "_geoLocation": "GEONEAR(-46.64867877960205,-23.539596040914,700)", + "@select": "id,name,location", + "@order": "name ASC" + }, + "result": [ + { + "id": 1, + "name": "Space 1", + "location": { + "latitude": "-23.5443493", + "longitude": "-46.6444262" + } + } + ] + }, + "7d98dfdffdf305e2543ce45353306228": { + "userId": 3, + "controller": "space", + "endpoint": "findByEvents", + "qdata": { + "@from": "2016-12-16", + "@to": "2017-01-16", + "_geoLocation": "GEONEAR(-46.64867877960205,-23.539596040914,700)", + "@select": "id,name,location", + "@order": "name ASC" + }, + "result": [ + { + "id": 1, + "name": "Space 1", + "location": { + "latitude": "-23.5443493", + "longitude": "-46.6444262" + } + } + ] + }, + "dbbb6ae775b44ae34b539de53d1074d4": { + "userId": 4, + "controller": "notification", + "endpoint": "find", + "qdata": { + "@select": "id,status,isRequest,createTimestamp,message,approveUrl,request.permissionTo.approve,request.permissionTo.reject,request.requesterUser.id", + "user": "EQ(@me)", + "@ORDER": "createTimestamp DESC" + }, + "result": [ + { + "id": 26, + "status": 1, + "isRequest": false, + "createTimestamp": { + "date": "2016-12-16 00:07:54.000000", + "timezone_type": 3, + "timezone": "America/Sao_Paulo" + }, + "message": "Seu \u00faltimo acesso foi em 21/05/2014, atualize suas informa\u00e7\u00f5es se necess\u00e1rio.", + "approveUrl": "http://localhost/aprovar-notificacao/26/", + "request": { + "permissionTo": { + "approve": null, + "reject": null + }, + "requesterUser": { + "id": null + } + } + } + ] + }, + "e4a803468a1937df1dd13a5788ba9274": { + "userId": 4, + "controller": "event", + "endpoint": "find", + "qdata": { + "@count": 1, + "id": "IN(5,3,6,522)" + }, + "result": 4 + }, + "8a8fd7ba9ec783c58a7278677fd05a40": { + "userId": 4, + "controller": "event", + "endpoint": "find", + "qdata": { + "@count": 1, + "@verified": "IN(1)", + "id": "IN(5,3,6,522)" + }, + "result": 2 + }, + "0410eb6525d0842aebd21c9c020caa59": { + "userId": 4, + "controller": "event", + "endpoint": "find", + "qdata": { + "@verified": "IN(1)", + "@select": "id", + "id": "IN(5,3,6,522)" + }, + "result": [ + { + "id": 3 + }, + { + "id": 5 + } + ] + }, + "7bb00218794cebdd3eff34fa66994e55": { + "userId": 4, + "controller": "agent", + "endpoint": "find", + "qdata": { + "@select": "id", + "@verified": "IN(1)" + }, + "result": [ + { + "id": 5 + }, + { + "id": 7 + }, + { + "id": 1 + }, + { + "id": 3 + } + ] + }, + "7562881cf856c86b7b9ad717a1b225de": { + "userId": 4, + "controller": "space", + "endpoint": "find", + "qdata": { + "@select": "id", + "@verified": "IN(1)" + }, + "result": [ + { + "id": 1 + }, + { + "id": 7 + }, + { + "id": 5 + }, + { + "id": 3 + } + ] + }, + "1af6fca6c77bb025fab443a7425c5072": { + "userId": 4, + "controller": "project", + "endpoint": "find", + "qdata": { + "@select": "id", + "@verified": "IN(1)" + }, + "result": [ + { + "id": 1 + }, + { + "id": 3 + }, + { + "id": 5 + }, + { + "id": 7 + } + ] + }, + "146b8fcb176d50144b9090b5c5b0fba4": { + "userId": 4, + "controller": "event", + "endpoint": "find", + "qdata": { + "@count": "1", + "id": "IN(5,3,6,522)" + }, + "result": 4 + }, + "ca8a963a192e936063e50f196aa4a85c": { + "userId": 4, + "controller": "event", + "endpoint": "findByLocation", + "qdata": { + "@count": "1", + "@from": "2016-12-16", + "@to": "2017-01-16" + }, + "result": 4 + }, + "908b459d3ec487f479528e2529295565": { + "userId": 4, + "controller": "event", + "endpoint": "find", + "qdata": { + "@select": "id", + "@order": "name ASC", + "id": "IN(5,5,3,6,3,6,522)" + }, + "result": [ + { + "id": 3 + }, + { + "id": 5 + }, + { + "id": 6 + }, + { + "id": 522 + } + ] + }, + "9ccef87846f52d1fd9955f128f198648": { + "userId": 4, + "controller": "space", + "endpoint": "find", + "qdata": { + "id": "IN(6,4,2,1)", + "@select": "id,name,location", + "@order": "name ASC" + }, + "result": [ + { + "id": 1, + "name": "Space 1", + "location": { + "latitude": "-23.5443493", + "longitude": "-46.6444262" + } + }, + { + "id": 2, + "name": "Space 2", + "location": { + "latitude": "-27.5906075", + "longitude": "-48.5129766" + } + }, + { + "id": 4, + "name": "Space 4", + "location": { + "latitude": "-23.5575987", + "longitude": "-46.6499111" + } + }, + { + "id": 6, + "name": "Space 6", + "location": { + "latitude": "-27.5887012", + "longitude": "-48.5070641" + } + } + ] + }, + "dd4096ea18f425d106b2d367f09d19f1": { + "userId": 4, + "controller": "space", + "endpoint": "findByEvents", + "qdata": { + "@from": "2016-12-16", + "@to": "2017-01-16", + "@select": "id,name,location", + "@order": "name ASC" + }, + "result": [ + { + "id": 1, + "name": "Space 1", + "location": { + "latitude": "-23.5443493", + "longitude": "-46.6444262" + } + }, + { + "id": 2, + "name": "Space 2", + "location": { + "latitude": "-27.5906075", + "longitude": "-48.5129766" + } + }, + { + "id": 4, + "name": "Space 4", + "location": { + "latitude": "-23.5575987", + "longitude": "-46.6499111" + } + }, + { + "id": 6, + "name": "Space 6", + "location": { + "latitude": "-27.5887012", + "longitude": "-48.5070641" + } + } + ] + }, + "8c7ae8592af9e7c6ab55d69a91a27961": { + "userId": 4, + "controller": "space", + "endpoint": "find", + "qdata": { + "@select": "id,name,location", + "@order": "name ASC" + }, + "result": [ + { + "id": 1, + "name": "Space 1", + "location": { + "latitude": "-23.5443493", + "longitude": "-46.6444262" + } + }, + { + "id": 2, + "name": "Space 2", + "location": { + "latitude": "-27.5906075", + "longitude": "-48.5129766" + } + }, + { + "id": 3, + "name": "Space 3", + "location": { + "latitude": "-23.5299146", + "longitude": "-46.6343522" + } + }, + { + "id": 4, + "name": "Space 4", + "location": { + "latitude": "-23.5575987", + "longitude": "-46.6499111" + } + }, + { + "id": 5, + "name": "Space 5", + "location": { + "latitude": "-27.5666995", + "longitude": "-48.5102924" + } + }, + { + "id": 6, + "name": "Space 6", + "location": { + "latitude": "-27.5887012", + "longitude": "-48.5070641" + } + }, + { + "id": 7, + "name": "Space 7", + "location": { + "latitude": "-23.5394312", + "longitude": "-46.6915816" + } + }, + { + "id": 8, + "name": "Space 8", + "location": { + "latitude": "-23.5466151", + "longitude": "-46.6468627" + } + } + ] + }, + "92fe4ab3eb3895ab89fc6534df26d782": { + "userId": 4, + "controller": "agent", + "endpoint": "find", + "qdata": { + "@select": "id,name,location", + "@order": "name ASC" + }, + "result": [ + { + "id": 3, + "name": "Admin 1", + "location": { + "latitude": "-23.546179", + "longitude": "-46.6451146" + } + }, + { + "id": 4, + "name": "Admin 2", + "location": { + "latitude": "-23.5367427", + "longitude": "-46.6587759" + } + }, + { + "id": 356, + "name": "New 1", + "location": { + "latitude": "-23.5419764", + "longitude": "-46.6465663" + } + }, + { + "id": 357, + "name": "New 2", + "location": { + "latitude": "-23.533808", + "longitude": "-46.6569978" + } + }, + { + "id": 7, + "name": "Normal User 1", + "location": { + "latitude": "-23.5335215", + "longitude": "-46.6569949" + } + }, + { + "id": 8, + "name": "Normal User 2", + "location": { + "latitude": "0", + "longitude": "0" + } + }, + { + "id": 5, + "name": "Staff User 1", + "location": { + "latitude": "0", + "longitude": "0" + } + }, + { + "id": 6, + "name": "Staff User 2", + "location": { + "latitude": "0", + "longitude": "0" + } + }, + { + "id": 1, + "name": "Super Admin 1", + "location": { + "latitude": "0", + "longitude": "0" + } + }, + { + "id": 2, + "name": "Super Admin 2", + "location": { + "latitude": "0", + "longitude": "0" + } + } + ] + }, + "fab3733533ce844486d2613cb5185b63": { + "userId": 4, + "controller": "project", + "endpoint": "find", + "qdata": { + "@select": "id,singleUrl,name,type,shortDescription,terms,registrationFrom,registrationTo", + "@files": "(avatar.avatarMedium):url", + "@page": "1", + "@limit": "10", + "@order": "name ASC" + }, + "result": [ + { + "id": 1, + "singleUrl": "http://localhost/projeto/1/", + "name": "Project 1", + "type": { + "id": 1, + "name": "Festival" + }, + "shortDescription": "of Super Admin 1", + "terms": { + "tag": [] + }, + "registrationFrom": null, + "registrationTo": null + }, + { + "id": 2, + "singleUrl": "http://localhost/projeto/2/", + "name": "Project 2", + "type": { + "id": 1, + "name": "Festival" + }, + "shortDescription": "of Super Admin 2", + "terms": { + "tag": [] + }, + "registrationFrom": null, + "registrationTo": null + }, + { + "id": 3, + "singleUrl": "http://localhost/projeto/3/", + "name": "Project 3", + "type": { + "id": 1, + "name": "Festival" + }, + "shortDescription": "of Admin 1", + "terms": { + "tag": [] + }, + "registrationFrom": null, + "registrationTo": null + }, + { + "id": 4, + "singleUrl": "http://localhost/projeto/4/", + "name": "Project 4", + "type": { + "id": 1, + "name": "Festival" + }, + "shortDescription": "of Admin 2", + "terms": { + "tag": [] + }, + "registrationFrom": null, + "registrationTo": null + }, + { + "id": 5, + "singleUrl": "http://localhost/projeto/5/", + "name": "Project 5", + "type": { + "id": 1, + "name": "Festival" + }, + "shortDescription": "of Staff User 1", + "terms": { + "tag": [] + }, + "registrationFrom": null, + "registrationTo": null + }, + { + "id": 6, + "singleUrl": "http://localhost/projeto/6/", + "name": "Project 6", + "type": { + "id": 1, + "name": "Festival" + }, + "shortDescription": "of Staff User 2", + "terms": { + "tag": [] + }, + "registrationFrom": null, + "registrationTo": null + }, + { + "id": 7, + "singleUrl": "http://localhost/projeto/7/", + "name": "Project 7", + "type": { + "id": 1, + "name": "Festival" + }, + "shortDescription": "of Normal User 1", + "terms": { + "tag": [] + }, + "registrationFrom": null, + "registrationTo": null + }, + { + "id": 8, + "singleUrl": "http://localhost/projeto/8/", + "name": "Project 8", + "type": { + "id": 1, + "name": "Festival" + }, + "shortDescription": "of Normal User 1", + "terms": { + "tag": [] + }, + "registrationFrom": null, + "registrationTo": null + } + ] + }, + "74ed310e3f80e5c67c83ebbd6caf6137": { + "userId": 4, + "controller": "space", + "endpoint": "find", + "qdata": { + "@count": 1, + "user": "EQ(4)" + }, + "result": 1 + }, + "2f159253ba71534ec71828a750860319": { + "userId": 4, + "controller": "agent", + "endpoint": "find", + "qdata": { + "@count": 1, + "user": "EQ(4)" + }, + "result": 1 + }, + "e08c48fabc1a3ee821cb8d9206ea17ca": { + "userId": 4, + "controller": "event", + "endpoint": "find", + "qdata": { + "@count": 1, + "user": "EQ(4)" + }, + "result": 1 + }, + "b2bbd238fa6fee256e58a1b2a5441d40": { + "userId": 4, + "controller": "project", + "endpoint": "find", + "qdata": { + "@count": 1, + "user": "EQ(4)" + }, + "result": 1 + }, + "50b192704731be147360135fae8fc069": { + "userId": 4, + "controller": "seal", + "endpoint": "find", + "qdata": { + "@count": 1, + "user": "EQ(4)" + }, + "result": 0 + }, + "964e385d77e1398b41d180c000064e81": { + "userId": 4, + "controller": "event", + "endpoint": "find", + "qdata": { + "@select": "name,type,status,terms,classificacaoEtaria,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,createTimestamp", + "@files": "(avatar.avatarSmall):url", + "user": "EQ(4)", + "status": "EQ(1)", + "@limit": 50, + "@order": "name ASC", + "@page": 1 + }, + "result": [ + { + "name": "Event 4", + "type": { + "id": 1, + "name": "Padr\u00e3o" + }, + "status": 1, + "terms": { + "tag": [], + "linguagem": [] + }, + "classificacaoEtaria": null, + "singleUrl": "http://localhost/evento/4/", + "editUrl": "http://localhost/eventos/edita/4/", + "deleteUrl": "http://localhost/eventos/apaga/4/", + "publishUrl": "http://localhost/eventos/publish/4/", + "unpublishUrl": "http://localhost/eventos/unpublish/4/", + "createTimestamp": { + "date": "2014-05-21 18:04:44.000000", + "timezone_type": 3, + "timezone": "America/Sao_Paulo" + } + } + ] + }, + "ffbcac266672ad842c027397ad98a531": { + "userId": 4, + "controller": "event", + "endpoint": "find", + "qdata": { + "@select": "name,type,status,terms,classificacaoEtaria,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,createTimestamp", + "@files": "(avatar.avatarSmall):url", + "user": "EQ(4)", + "status": "EQ(0)", + "@permissions": "view" + }, + "result": [] + }, + "42da5181bc06b9ed353eb9b28f4171e7": { + "userId": 4, + "controller": "event", + "endpoint": "find", + "qdata": { + "@select": "name,type,status,terms,classificacaoEtaria,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,createTimestamp", + "@files": "(avatar.avatarSmall):url", + "user": "EQ(4)", + "status": "EQ(-10)", + "@permissions": "view" + }, + "result": [] + }, + "364586122eee38177bc876cab777230a": { + "userId": 4, + "controller": "space", + "endpoint": "find", + "qdata": { + "@select": "name,type,status,terms,endereco,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,acessibilidade,createTimestamp", + "@files": "(avatar.avatarSmall):url", + "user": "EQ(4)", + "status": "EQ(1)", + "@limit": 50, + "@order": "name ASC", + "@page": 1 + }, + "result": [ + { + "@files:avatar.avatarSmall": { + "url": "http://localhost/files/space/4/file/6/imagem1-0108e4d03baa58da37295fac2878acaf.jpeg" + }, + "name": "Space 4", + "type": { + "id": 60, + "name": "Museu P\u00fablico" + }, + "status": 1, + "terms": { + "tag": [], + "area": ["Artes Visuais", "Fotografia", "Arte Digital"] + }, + "endereco": "Rua Itapeva, 15 , Bela Vista, 01332-000, S\u00e3o Paulo, SP", + "singleUrl": "http://localhost/espaco/4/", + "editUrl": "http://localhost/espacos/edita/4/", + "deleteUrl": "http://localhost/espacos/apaga/4/", + "publishUrl": "http://localhost/espacos/publish/4/", + "unpublishUrl": "http://localhost/espacos/unpublish/4/", + "acessibilidade": "Sim", + "createTimestamp": { + "date": "2014-05-21 18:04:38.000000", + "timezone_type": 3, + "timezone": "America/Sao_Paulo" + } + } + ] + }, + "0b46bba45ed3a10f4dcb21c75c391971": { + "userId": 4, + "controller": "space", + "endpoint": "find", + "qdata": { + "@select": "name,type,status,terms,endereco,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,acessibilidade,createTimestamp", + "@files": "(avatar.avatarSmall):url", + "user": "EQ(4)", + "status": "EQ(0)", + "@permissions": "view" + }, + "result": [] + }, + "8468a882532448fbc53cf810a8f009ac": { + "userId": 4, + "controller": "space", + "endpoint": "find", + "qdata": { + "@select": "name,type,status,terms,endereco,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,acessibilidade,createTimestamp", + "@files": "(avatar.avatarSmall):url", + "user": "EQ(4)", + "status": "EQ(-10)", + "@permissions": "view" + }, + "result": [] + }, + "34d214ffd7ef2b1e467aa3a8a9c59469": { + "userId": 4, + "controller": "agent", + "endpoint": "findOne", + "qdata": { + "id": "EQ(356)", + "@select": "id,singleUrl,name,subTitle,type,shortDescription,terms,project.name,project.singleUrl", + "@files": "(avatar.avatarSmall):url" + }, + "result": { + "id": 356, + "singleUrl": "http://localhost/agente/356/", + "name": "New 1", + "subTitle": null, + "type": { + "id": 1, + "name": "Individual" + }, + "shortDescription": "descricao curta", + "terms": { + "tag": ["TAGUEADO"], + "area": ["Arte Digital"] + }, + "project": { + "name": null, + "singleUrl": null + } + } + }, + "359af80a89510b6418ae993e801684df": { + "userId": 4, + "controller": "space", + "endpoint": "findOne", + "qdata": { + "id": "EQ(2)", + "@select": "id,singleUrl,name,subTitle,type,shortDescription,terms,project.name,project.singleUrl,endereco,endereco,acessibilidade", + "@files": "(avatar.avatarSmall):url" + }, + "result": { + "@files:avatar.avatarSmall": { + "url": "http://localhost/files/space/2/file/2/imagem4-4e0f09ec602df7f0dbe0ffa44c19eb5e.jpeg" + }, + "id": 2, + "singleUrl": "http://localhost/espaco/2/", + "name": "Space 2", + "subTitle": null, + "type": { + "id": 10, + "name": "Cine itinerante" + }, + "shortDescription": "of Super Admin 2", + "terms": { + "tag": [], + "area": ["Circo", "Arte de Rua"] + }, + "project": { + "name": null, + "singleUrl": null + }, + "endereco": "Rua Tenente Jer\u00f4nimo Borges, 33 , Santa M\u00f4nica, 88035-050, Florian\u00f3polis, SC", + "acessibilidade": "N\u00e3o" + } + }, + "dadf17a66f795466024fbebe20e26249": { + "userId": 4, + "controller": "event", + "endpoint": "find", + "qdata": { + "@select": "id,singleUrl,name,subTitle,type,shortDescription,terms,project.name,project.singleUrl,endereco,classificacaoEtaria", + "@order": "name ASC", + "@files": "(avatar.avatarSmall):url", + "id": "IN(3,522)" + }, + "result": [ + { + "id": 3, + "singleUrl": "http://localhost/evento/3/", + "name": "Event 3", + "subTitle": null, + "type": { + "id": 1, + "name": "Padr\u00e3o" + }, + "shortDescription": "of Admin 1", + "terms": { + "tag": [], + "linguagem": ["Cinema"] + }, + "project": { + "name": null, + "singleUrl": null + }, + "endereco": null, + "classificacaoEtaria": "Livre" + }, + { + "id": 522, + "singleUrl": "http://localhost/evento/522/", + "name": "Novo Evento", + "subTitle": null, + "type": { + "id": 1, + "name": "Padr\u00e3o" + }, + "shortDescription": "pequeno evento", + "terms": { + "tag": [], + "linguagem": ["Cinema", "Artes Circenses"] + }, + "project": { + "name": null, + "singleUrl": null + }, + "endereco": null, + "classificacaoEtaria": "Livre" + } + ] + }, + "77ff9f760d27e51f95e272a320c61b7a": { + "userId": 4, + "controller": "event", + "endpoint": "findBySpace", + "qdata": { + "@from": "2016-12-16", + "@to": "2017-01-16", + "@select": "id,singleUrl,name,subTitle,type,shortDescription,terms,project.name,project.singleUrl,endereco,classificacaoEtaria", + "@order": "name ASC", + "spaceId": "2", + "@files": "(avatar.avatarSmall):url" + }, + "result": [ + { + "id": 3, + "singleUrl": "http://localhost/evento/3/", + "name": "Event 3", + "subTitle": null, + "type": { + "id": 1, + "name": "Padr\u00e3o" + }, + "shortDescription": "of Admin 1", + "terms": { + "tag": [], + "linguagem": ["Cinema"] + }, + "project": { + "name": null, + "singleUrl": null + }, + "endereco": null, + "classificacaoEtaria": "Livre", + "occurrences": [ + { + "id": 142, + "rule": { + "spaceId": "2", + "startsAt": "10:00", + "duration": 30, + "endsAt": "10:30", + "frequency": "daily", + "startsOn": "2016-12-01", + "until": "2016-12-30", + "description": "Diariamente de 1 a 30 de dezembro de 2016 \u00e0s 10:00", + "price": "Gratuito" + }, + "startsOn": { + "date": "2016-12-01 00:00:00.000000", + "timezone_type": 3, + "timezone": "America/Sao_Paulo" + }, + "startsAt": { + "date": "2016-12-01 10:00:00.000000", + "timezone_type": 3, + "timezone": "America/Sao_Paulo" + }, + "endsOn": null, + "endsAt": { + "date": "2016-12-01 10:30:00.000000", + "timezone_type": 3, + "timezone": "America/Sao_Paulo" + }, + "duration": { + "y": 0, + "m": 0, + "d": 0, + "h": 0, + "i": 30, + "s": 0, + "weekday": 0, + "weekday_behavior": 0, + "first_last_day_of": 0, + "invert": 1, + "days": 0, + "special_type": 0, + "special_amount": 0, + "have_weekday_relative": 0, + "have_special_relative": 0 + }, + "frequency": null, + "separation": 1, + "recurrences": [], + "count": null, + "until": { + "date": "2016-12-30 00:00:00.000000", + "timezone_type": 3, + "timezone": "America/Sao_Paulo" + }, + "spaceId": 2, + "space": null, + "event": null, + "editUrl": "http://localhost/eventoccurrence/edita/142/", + "deleteUrl": "http://localhost/eventoccurrence/apaga/142/", + "status": 1 + } + ], + "readableOccurrences": [ + "Diariamente de 1 a 30 de dezembro de 2016 \u00e0s 10:00" + ] + }, + { + "id": 522, + "singleUrl": "http://localhost/evento/522/", + "name": "Novo Evento", + "subTitle": null, + "type": { + "id": 1, + "name": "Padr\u00e3o" + }, + "shortDescription": "pequeno evento", + "terms": { + "tag": [], + "linguagem": ["Cinema", "Artes Circenses"] + }, + "project": { + "name": null, + "singleUrl": null + }, + "endereco": null, + "classificacaoEtaria": "Livre", + "occurrences": { + "1": { + "id": 163, + "rule": { + "spaceId": "2", + "startsAt": "22:22", + "duration": 22, + "endsAt": "22:44", + "frequency": "once", + "startsOn": "2016-12-30", + "until": "", + "description": "Dia 30 de dezembro de 2016 \u00e0s 22:22", + "price": "R$ 1,00" + }, + "startsOn": { + "date": "2016-12-30 00:00:00.000000", + "timezone_type": 3, + "timezone": "America/Sao_Paulo" + }, + "startsAt": { + "date": "2016-12-30 22:22:00.000000", + "timezone_type": 3, + "timezone": "America/Sao_Paulo" + }, + "endsOn": null, + "endsAt": { + "date": "2016-12-30 22:44:00.000000", + "timezone_type": 3, + "timezone": "America/Sao_Paulo" + }, + "duration": { + "y": 0, + "m": 0, + "d": 0, + "h": 0, + "i": 22, + "s": 0, + "weekday": 0, + "weekday_behavior": 0, + "first_last_day_of": 0, + "invert": 1, + "days": 0, + "special_type": 0, + "special_amount": 0, + "have_weekday_relative": 0, + "have_special_relative": 0 + }, + "frequency": null, + "separation": 1, + "recurrences": [], + "count": null, + "until": null, + "spaceId": 2, + "space": null, + "event": null, + "editUrl": "http://localhost/eventoccurrence/edita/163/", + "deleteUrl": "http://localhost/eventoccurrence/apaga/163/", + "status": 1 + } + }, + "readableOccurrences": { + "1": "Dia 30 de dezembro de 2016 \u00e0s 22:22" + } + } + ] + }, + "b02cb4b630c695c510d04ec900b4f446": { + "userId": 4, + "controller": "space", + "endpoint": "findOne", + "qdata": { + "id": "EQ(6)", + "@select": "id,singleUrl,name,subTitle,type,shortDescription,terms,project.name,project.singleUrl,endereco,endereco,acessibilidade", + "@files": "(avatar.avatarSmall):url" + }, + "result": { + "@files:avatar.avatarSmall": { + "url": "http://localhost/files/space/6/file/10/imagem3-ed0f3136f28c0cbcea89572e0bf16825.jpeg" + }, + "id": 6, + "singleUrl": "http://localhost/espaco/6/", + "name": "Space 6", + "subTitle": null, + "type": { + "id": 61, + "name": "Museu Privado" + }, + "shortDescription": "of Staff User 2", + "terms": { + "tag": [], + "area": ["Artesanato", "Arte Digital"] + }, + "project": { + "name": null, + "singleUrl": null + }, + "endereco": "Avenida Madre Benvenuta, 1498 , Santa M\u00f4nica, 88035-001, Florian\u00f3polis, SC", + "acessibilidade": "Sim" + } + }, + "a3dd6ebf8a66e44241b33e6874389988": { + "userId": 4, + "controller": "event", + "endpoint": "find", + "qdata": { + "@select": "id,singleUrl,name,subTitle,type,shortDescription,terms,project.name,project.singleUrl,endereco,classificacaoEtaria", + "@order": "name ASC", + "@files": "(avatar.avatarSmall):url", + "id": "IN(5)" + }, + "result": [ + { + "@files:avatar.avatarSmall": { + "url": "http://localhost/files/event/5/file/34/imagem1-0108e4d03baa58da37295fac2878acaf.jpeg" + }, + "id": 5, + "singleUrl": "http://localhost/evento/5/", + "name": "Event 5", + "subTitle": null, + "type": { + "id": 1, + "name": "Padr\u00e3o" + }, + "shortDescription": "of Staff User 1", + "terms": { + "tag": [], + "linguagem": ["M\u00fasica Popular"] + }, + "project": { + "name": null, + "singleUrl": null + }, + "endereco": null, + "classificacaoEtaria": "14 anos" + } + ] + }, + "aa8b7f6f5fafea6d58bde3b58b740b3c": { + "userId": 4, + "controller": "event", + "endpoint": "findBySpace", + "qdata": { + "@from": "2016-12-16", + "@to": "2017-01-16", + "@select": "id,singleUrl,name,subTitle,type,shortDescription,terms,project.name,project.singleUrl,endereco,classificacaoEtaria", + "@order": "name ASC", + "spaceId": "6", + "@files": "(avatar.avatarSmall):url" + }, + "result": [ + { + "@files:avatar.avatarSmall": { + "url": "http://localhost/files/event/5/file/34/imagem1-0108e4d03baa58da37295fac2878acaf.jpeg" + }, + "id": 5, + "singleUrl": "http://localhost/evento/5/", + "name": "Event 5", + "subTitle": null, + "type": { + "id": 1, + "name": "Padr\u00e3o" + }, + "shortDescription": "of Staff User 1", + "terms": { + "tag": [], + "linguagem": ["M\u00fasica Popular"] + }, + "project": { + "name": null, + "singleUrl": null + }, + "endereco": null, + "classificacaoEtaria": "14 anos", + "occurrences": [ + { + "id": 144, + "rule": { + "spaceId": "6", + "startsAt": "08:00", + "duration": 5, + "endsAt": "08:05", + "frequency": "weekly", + "startsOn": "2016-11-01", + "until": "2017-01-31", + "day": { + "1": "on", + "4": "on", + "6": "on" + }, + "description": "Toda seg, qui e s\u00e1b de 1 de novembro de 2016 a 31 de janeiro de 2017 \u00e0s 08:00", + "price": "R$5,00" + }, + "startsOn": { + "date": "2016-11-01 00:00:00.000000", + "timezone_type": 3, + "timezone": "America/Sao_Paulo" + }, + "startsAt": { + "date": "2016-11-01 08:00:00.000000", + "timezone_type": 3, + "timezone": "America/Sao_Paulo" + }, + "endsOn": null, + "endsAt": { + "date": "2016-11-01 08:05:00.000000", + "timezone_type": 3, + "timezone": "America/Sao_Paulo" + }, + "duration": { + "y": 0, + "m": 0, + "d": 0, + "h": 0, + "i": 5, + "s": 0, + "weekday": 0, + "weekday_behavior": 0, + "first_last_day_of": 0, + "invert": 1, + "days": 0, + "special_type": 0, + "special_amount": 0, + "have_weekday_relative": 0, + "have_special_relative": 0 + }, + "frequency": null, + "separation": 1, + "recurrences": [ + { + "id": 107, + "month": null, + "day": 1, + "week": null + }, + { + "id": 108, + "month": null, + "day": 4, + "week": null + }, + { + "id": 109, + "month": null, + "day": 6, + "week": null + } + ], + "count": null, + "until": { + "date": "2017-01-31 00:00:00.000000", + "timezone_type": 3, + "timezone": "America/Sao_Paulo" + }, + "spaceId": 6, + "space": null, + "event": null, + "editUrl": "http://localhost/eventoccurrence/edita/144/", + "deleteUrl": "http://localhost/eventoccurrence/apaga/144/", + "status": 1 + } + ], + "readableOccurrences": [ + "Toda seg, qui e s\u00e1b de 1 de novembro de 2016 a 31 de janeiro de 2017 \u00e0s 08:00" + ] + } + ] + }, + "4a793ca480e60729cc443ff62e31d69d": { + "userId": 4, + "controller": "space", + "endpoint": "findOne", + "qdata": { + "id": "EQ(1)", + "@select": "id,singleUrl,name,subTitle,type,shortDescription,terms,project.name,project.singleUrl,endereco,endereco,acessibilidade", + "@files": "(avatar.avatarSmall):url" + }, + "result": { + "@files:avatar.avatarSmall": { + "url": "http://localhost/files/space/1/file/14/imagem2-1d80d1d4d8de1e61294630edb215f103.jpeg" + }, + "id": 1, + "singleUrl": "http://localhost/espaco/1/", + "name": "Space 1", + "subTitle": null, + "type": { + "id": 10, + "name": "Cine itinerante" + }, + "shortDescription": "of Super Admin 1", + "terms": { + "tag": [], + "area": ["Jogos Eletr\u00f4nicos", "Filosofia", "Esporte"] + }, + "project": { + "name": null, + "singleUrl": null + }, + "endereco": "Rua Ara\u00fajo, 22 , Rep\u00fablica, 01220-020, S\u00e3o Paulo, SP", + "acessibilidade": null + } + }, + "675c2331ba49a982b744eafc62e8b011": { + "userId": 4, + "controller": "event", + "endpoint": "find", + "qdata": { + "@select": "id,singleUrl,name,subTitle,type,shortDescription,terms,project.name,project.singleUrl,endereco,classificacaoEtaria", + "@order": "name ASC", + "@files": "(avatar.avatarSmall):url", + "id": "IN(6,3)" + }, + "result": [ + { + "id": 3, + "singleUrl": "http://localhost/evento/3/", + "name": "Event 3", + "subTitle": null, + "type": { + "id": 1, + "name": "Padr\u00e3o" + }, + "shortDescription": "of Admin 1", + "terms": { + "tag": [], + "linguagem": ["Cinema"] + }, + "project": { + "name": null, + "singleUrl": null + }, + "endereco": null, + "classificacaoEtaria": "Livre" + }, + { + "@files:avatar.avatarSmall": { + "url": "http://localhost/files/event/6/file/38/imagem3-ed0f3136f28c0cbcea89572e0bf16825.jpeg" + }, + "id": 6, + "singleUrl": "http://localhost/evento/6/", + "name": "Event 6", + "subTitle": null, + "type": { + "id": 1, + "name": "Padr\u00e3o" + }, + "shortDescription": "of Staff User 2", + "terms": { + "tag": [], + "linguagem": [] + }, + "project": { + "name": null, + "singleUrl": null + }, + "endereco": null, + "classificacaoEtaria": null + } + ] + }, + "e181094e48cbddaee32cc9cee1c38c11": { + "userId": 4, + "controller": "space", + "endpoint": "findOne", + "qdata": { + "id": "EQ(4)", + "@select": "id,singleUrl,name,subTitle,type,shortDescription,terms,project.name,project.singleUrl,endereco,endereco,acessibilidade", + "@files": "(avatar.avatarSmall):url" + }, + "result": { + "@files:avatar.avatarSmall": { + "url": "http://localhost/files/space/4/file/6/imagem1-0108e4d03baa58da37295fac2878acaf.jpeg" + }, + "id": 4, + "singleUrl": "http://localhost/espaco/4/", + "name": "Space 4", + "subTitle": null, + "type": { + "id": 60, + "name": "Museu P\u00fablico" + }, + "shortDescription": "of Admin 2", + "terms": { + "tag": [], + "area": ["Artes Visuais", "Fotografia", "Arte Digital"] + }, + "project": { + "name": null, + "singleUrl": null + }, + "endereco": "Rua Itapeva, 15 , Bela Vista, 01332-000, S\u00e3o Paulo, SP", + "acessibilidade": "Sim" + } + }, + "8f3940076a98317905207c2f219715f7": { + "userId": 4, + "controller": "event", + "endpoint": "findBySpace", + "qdata": { + "@from": "2016-12-16", + "@to": "2017-01-16", + "@select": "id,singleUrl,name,subTitle,type,shortDescription,terms,project.name,project.singleUrl,endereco,classificacaoEtaria", + "@order": "name ASC", + "spaceId": "4", + "@files": "(avatar.avatarSmall):url" + }, + "result": [ + { + "@files:avatar.avatarSmall": { + "url": "http://localhost/files/event/5/file/34/imagem1-0108e4d03baa58da37295fac2878acaf.jpeg" + }, + "id": 5, + "singleUrl": "http://localhost/evento/5/", + "name": "Event 5", + "subTitle": null, + "type": { + "id": 1, + "name": "Padr\u00e3o" + }, + "shortDescription": "of Staff User 1", + "terms": { + "tag": [], + "linguagem": ["M\u00fasica Popular"] + }, + "project": { + "name": null, + "singleUrl": null + }, + "endereco": null, + "classificacaoEtaria": "14 anos", + "occurrences": [ + { + "id": 145, + "rule": { + "spaceId": "4", + "startsAt": "09:00", + "duration": 15, + "endsAt": "09:15", + "frequency": "weekly", + "startsOn": "2016-12-01", + "until": "2016-12-29", + "day": ["on", "on", "on", "on"], + "description": "Todo dom, seg, ter e qua de 1 a 29 de dezembro de 2016 \u00e0s 09:00", + "price": "R$90,00" + }, + "startsOn": { + "date": "2016-12-01 00:00:00.000000", + "timezone_type": 3, + "timezone": "America/Sao_Paulo" + }, + "startsAt": { + "date": "2016-12-01 09:00:00.000000", + "timezone_type": 3, + "timezone": "America/Sao_Paulo" + }, + "endsOn": null, + "endsAt": { + "date": "2016-12-01 09:15:00.000000", + "timezone_type": 3, + "timezone": "America/Sao_Paulo" + }, + "duration": { + "y": 0, + "m": 0, + "d": 0, + "h": 0, + "i": 15, + "s": 0, + "weekday": 0, + "weekday_behavior": 0, + "first_last_day_of": 0, + "invert": 1, + "days": 0, + "special_type": 0, + "special_amount": 0, + "have_weekday_relative": 0, + "have_special_relative": 0 + }, + "frequency": null, + "separation": 1, + "recurrences": [ + { + "id": 110, + "month": null, + "day": 0, + "week": null + }, + { + "id": 111, + "month": null, + "day": 1, + "week": null + }, + { + "id": 112, + "month": null, + "day": 2, + "week": null + }, + { + "id": 113, + "month": null, + "day": 3, + "week": null + } + ], + "count": null, + "until": { + "date": "2016-12-29 00:00:00.000000", + "timezone_type": 3, + "timezone": "America/Sao_Paulo" + }, + "spaceId": 4, + "space": null, + "event": null, + "editUrl": "http://localhost/eventoccurrence/edita/145/", + "deleteUrl": "http://localhost/eventoccurrence/apaga/145/", + "status": 1 + } + ], + "readableOccurrences": [ + "Todo dom, seg, ter e qua de 1 a 29 de dezembro de 2016 \u00e0s 09:00" + ] + } + ] + }, + "94faf7d05252412796eba602e3418e2b": { + "userId": 4, + "controller": "event", + "endpoint": "find", + "qdata": { + "@count": "1", + "id": "IN(5,7,3,6,522)" + }, + "result": 5 + }, + "082a905deadd20aa7caba289caf1374b": { + "userId": 4, + "controller": "event", + "endpoint": "findByLocation", + "qdata": { + "@count": "1", + "@from": "2016-12-01", + "@to": "2017-01-16" + }, + "result": 5 + }, + "1a2fa5a5348631819777e0299921d2f8": { + "userId": 4, + "controller": "event", + "endpoint": "find", + "qdata": { + "@select": "id", + "@order": "name ASC", + "id": "IN(5,7,5,3,7,7,7,7,7,7,7,6,3,6,522)" + }, + "result": [ + { + "id": 3 + }, + { + "id": 5 + }, + { + "id": 6 + }, + { + "id": 7 + }, + { + "id": 522 + } + ] + }, + "a04aa192271173ff8335c98815e8dbf3": { + "userId": 4, + "controller": "space", + "endpoint": "find", + "qdata": { + "id": "IN(7,8,6,5,4,3,2,1)", + "@select": "id,name,location", + "@order": "name ASC" + }, + "result": [ + { + "id": 1, + "name": "Space 1", + "location": { + "latitude": "-23.5443493", + "longitude": "-46.6444262" + } + }, + { + "id": 2, + "name": "Space 2", + "location": { + "latitude": "-27.5906075", + "longitude": "-48.5129766" + } + }, + { + "id": 3, + "name": "Space 3", + "location": { + "latitude": "-23.5299146", + "longitude": "-46.6343522" + } + }, + { + "id": 4, + "name": "Space 4", + "location": { + "latitude": "-23.5575987", + "longitude": "-46.6499111" + } + }, + { + "id": 5, + "name": "Space 5", + "location": { + "latitude": "-27.5666995", + "longitude": "-48.5102924" + } + }, + { + "id": 6, + "name": "Space 6", + "location": { + "latitude": "-27.5887012", + "longitude": "-48.5070641" + } + }, + { + "id": 7, + "name": "Space 7", + "location": { + "latitude": "-23.5394312", + "longitude": "-46.6915816" + } + }, + { + "id": 8, + "name": "Space 8", + "location": { + "latitude": "-23.5466151", + "longitude": "-46.6468627" + } + } + ] + }, + "a1c0c555d1d1e6840cc19137177d7c3a": { + "userId": 4, + "controller": "space", + "endpoint": "findByEvents", + "qdata": { + "@from": "2016-12-01", + "@to": "2017-01-16", + "@select": "id,name,location", + "@order": "name ASC" + }, + "result": [ + { + "id": 1, + "name": "Space 1", + "location": { + "latitude": "-23.5443493", + "longitude": "-46.6444262" + } + }, + { + "id": 2, + "name": "Space 2", + "location": { + "latitude": "-27.5906075", + "longitude": "-48.5129766" + } + }, + { + "id": 3, + "name": "Space 3", + "location": { + "latitude": "-23.5299146", + "longitude": "-46.6343522" + } + }, + { + "id": 4, + "name": "Space 4", + "location": { + "latitude": "-23.5575987", + "longitude": "-46.6499111" + } + }, + { + "id": 5, + "name": "Space 5", + "location": { + "latitude": "-27.5666995", + "longitude": "-48.5102924" + } + }, + { + "id": 6, + "name": "Space 6", + "location": { + "latitude": "-27.5887012", + "longitude": "-48.5070641" + } + }, + { + "id": 7, + "name": "Space 7", + "location": { + "latitude": "-23.5394312", + "longitude": "-46.6915816" + } + }, + { + "id": 8, + "name": "Space 8", + "location": { + "latitude": "-23.5466151", + "longitude": "-46.6468627" + } + } + ] + }, + "7b65e5cca19f526b62b9d07bc483450f": { + "userId": 4, + "controller": "event", + "endpoint": "findByLocation", + "qdata": { + "@count": "1", + "@from": "2016-12-01", + "@to": "2017-01-31" + }, + "result": 5 + }, + "4a8a9e2b8eb3a6089177d7a6670a4611": { + "userId": 4, + "controller": "space", + "endpoint": "findByEvents", + "qdata": { + "@from": "2016-12-01", + "@to": "2017-01-31", + "@select": "id,name,location", + "@order": "name ASC" + }, + "result": [ + { + "id": 1, + "name": "Space 1", + "location": { + "latitude": "-23.5443493", + "longitude": "-46.6444262" + } + }, + { + "id": 2, + "name": "Space 2", + "location": { + "latitude": "-27.5906075", + "longitude": "-48.5129766" + } + }, + { + "id": 3, + "name": "Space 3", + "location": { + "latitude": "-23.5299146", + "longitude": "-46.6343522" + } + }, + { + "id": 4, + "name": "Space 4", + "location": { + "latitude": "-23.5575987", + "longitude": "-46.6499111" + } + }, + { + "id": 5, + "name": "Space 5", + "location": { + "latitude": "-27.5666995", + "longitude": "-48.5102924" + } + }, + { + "id": 6, + "name": "Space 6", + "location": { + "latitude": "-27.5887012", + "longitude": "-48.5070641" + } + }, + { + "id": 7, + "name": "Space 7", + "location": { + "latitude": "-23.5394312", + "longitude": "-46.6915816" + } + }, + { + "id": 8, + "name": "Space 8", + "location": { + "latitude": "-23.5466151", + "longitude": "-46.6468627" + } + } + ] + }, + "18b0197f28ae223b376570b2ced67431": { + "userId": 4, + "controller": "space", + "endpoint": "find", + "qdata": { + "@select": "id,name,shortDescription,location,terms,__metadata", + "_geoLocation": "GEONEAR(-49.9658203125,-26.549222577692028,285486)" + }, + "result": [ + { + "id": 6, + "name": "Space 6", + "shortDescription": "of Staff User 2", + "location": { + "latitude": "-27.5887012", + "longitude": "-48.5070641" + }, + "terms": { + "tag": [], + "area": ["Artesanato", "Arte Digital"] + }, + "__metadata": null + }, + { + "id": 5, + "name": "Space 5", + "shortDescription": "of Staff User 1", + "location": { + "latitude": "-27.5666995", + "longitude": "-48.5102924" + }, + "terms": { + "tag": [], + "area": ["Cultura Negra", "Circo", "M\u00fasica"] + }, + "__metadata": null + }, + { + "id": 2, + "name": "Space 2", + "shortDescription": "of Super Admin 2", + "location": { + "latitude": "-27.5906075", + "longitude": "-48.5129766" + }, + "terms": { + "tag": [], + "area": ["Circo", "Arte de Rua"] + }, + "__metadata": null + } + ] + }, + "5ccee8e9605d0bf0a31daebc55a8764f": { + "userId": 4, + "controller": "event", + "endpoint": "find", + "qdata": { + "@count": "1", + "id": "IN(5,3,7,522)" + }, + "result": 4 + }, + "b6731b07187b1288d9eeacbc583db4bc": { + "userId": 4, + "controller": "event", + "endpoint": "findByLocation", + "qdata": { + "@count": "1", + "@from": "2016-12-01", + "@to": "2017-01-31", + "_geoLocation": "GEONEAR(-49.9658203125,-26.549222577692028,285486)" + }, + "result": 4 + }, + "6aba68eb3d0365bb17ebd919d54daa5d": { + "userId": 4, + "controller": "event", + "endpoint": "find", + "qdata": { + "@select": "id", + "_geoLocation": "GEONEAR(-49.9658203125,-26.549222577692028,285486)", + "@order": "name ASC", + "id": "IN(5,7,5,3,7,7,7,7,7,7,7,6,3,6,522)" + }, + "result": [ + { + "id": 3 + }, + { + "id": 5 + }, + { + "id": 6 + }, + { + "id": 7 + }, + { + "id": 522 + } + ] + }, + "fe10ac542fad1bd8e8158e03ef2f2d66": { + "userId": 4, + "controller": "space", + "endpoint": "find", + "qdata": { + "id": "IN(7,8,6,5,4,3,2,1)", + "_geoLocation": "GEONEAR(-49.9658203125,-26.549222577692028,285486)", + "@select": "id,name,location", + "@order": "name ASC" + }, + "result": [ + { + "id": 2, + "name": "Space 2", + "location": { + "latitude": "-27.5906075", + "longitude": "-48.5129766" + } + }, + { + "id": 5, + "name": "Space 5", + "location": { + "latitude": "-27.5666995", + "longitude": "-48.5102924" + } + }, + { + "id": 6, + "name": "Space 6", + "location": { + "latitude": "-27.5887012", + "longitude": "-48.5070641" + } + } + ] + }, + "62c2df28a327380d0853d6afe70c428b": { + "userId": 4, + "controller": "space", + "endpoint": "findByEvents", + "qdata": { + "@from": "2016-12-01", + "@to": "2017-01-31", + "_geoLocation": "GEONEAR(-49.9658203125,-26.549222577692028,285486)", + "@select": "id,name,location", + "@order": "name ASC" + }, + "result": [ + { + "id": 2, + "name": "Space 2", + "location": { + "latitude": "-27.5906075", + "longitude": "-48.5129766" + } + }, + { + "id": 5, + "name": "Space 5", + "location": { + "latitude": "-27.5666995", + "longitude": "-48.5102924" + } + }, + { + "id": 6, + "name": "Space 6", + "location": { + "latitude": "-27.5887012", + "longitude": "-48.5070641" + } + } + ] + }, + "2283e60748e3d22f30f40e43668bb937": { + "userId": 4, + "controller": "space", + "endpoint": "find", + "qdata": { + "_geoLocation": "GEONEAR(-49.9658203125,-26.549222577692028,285486)", + "@select": "id,name,location", + "@order": "name ASC" + }, + "result": [ + { + "id": 2, + "name": "Space 2", + "location": { + "latitude": "-27.5906075", + "longitude": "-48.5129766" + } + }, + { + "id": 5, + "name": "Space 5", + "location": { + "latitude": "-27.5666995", + "longitude": "-48.5102924" + } + }, + { + "id": 6, + "name": "Space 6", + "location": { + "latitude": "-27.5887012", + "longitude": "-48.5070641" + } + } + ] + }, + "61c0d7e2f202ba2e154bec4145f590be": { + "userId": 4, + "controller": "seal", + "endpoint": "find", + "qdata": { + "@select": "id,name,status, singleUrl", + "@permissions": "@control", + "@files": "(avatar.avatarMedium):url", + "@ORDER": "createTimestamp DESC" + }, + "result": [ + { + "id": 1, + "name": "Selo Mapas", + "status": 1, + "singleUrl": "http://localhost/selo/1/" + } + ] + }, + "375028b8ebdfe7de3aee709fdc1e8948": { + "userId": 4, + "controller": "space", + "endpoint": "find", + "qdata": { + "name": "ilike(**)", + "@select": "id,name,terms,type,shortDescription", + "@limit": "10", + "@page": "1", + "@order": "name ASC", + "@files": "(avatar.avatarSmall):url", + "id": "!in(2)", + "_": "1481854185283" + }, + "result": [ + { + "@files:avatar.avatarSmall": { + "url": "http://localhost/files/space/1/file/14/imagem2-1d80d1d4d8de1e61294630edb215f103.jpeg" + }, + "id": 1, + "name": "Space 1", + "terms": { + "tag": [], + "area": ["Jogos Eletr\u00f4nicos", "Filosofia", "Esporte"] + }, + "type": { + "id": 10, + "name": "Cine itinerante" + }, + "shortDescription": "of Super Admin 1" + }, + { + "id": 3, + "name": "Space 3", + "terms": { + "tag": [], + "area": ["Jogos Eletr\u00f4nicos", "Arte Digital"] + }, + "type": { + "id": 10, + "name": "Cine itinerante" + }, + "shortDescription": "of Admin 1" + }, + { + "@files:avatar.avatarSmall": { + "url": "http://localhost/files/space/4/file/6/imagem1-0108e4d03baa58da37295fac2878acaf.jpeg" + }, + "id": 4, + "name": "Space 4", + "terms": { + "tag": [], + "area": ["Artes Visuais", "Fotografia", "Arte Digital"] + }, + "type": { + "id": 60, + "name": "Museu P\u00fablico" + }, + "shortDescription": "of Admin 2" + }, + { + "id": 5, + "name": "Space 5", + "terms": { + "tag": [], + "area": ["Cultura Negra", "Circo", "M\u00fasica"] + }, + "type": { + "id": 91, + "name": "Circo Fixo" + }, + "shortDescription": "of Staff User 1" + }, + { + "@files:avatar.avatarSmall": { + "url": "http://localhost/files/space/6/file/10/imagem3-ed0f3136f28c0cbcea89572e0bf16825.jpeg" + }, + "id": 6, + "name": "Space 6", + "terms": { + "tag": [], + "area": ["Artesanato", "Arte Digital"] + }, + "type": { + "id": 61, + "name": "Museu Privado" + }, + "shortDescription": "of Staff User 2" + }, + { + "id": 7, + "name": "Space 7", + "terms": { + "tag": [], + "area": ["Arquitetura-Urbanismo", "Artesanato"] + }, + "type": { + "id": 20, + "name": "Biblioteca P\u00fablica" + }, + "shortDescription": "of Normal User 1" + }, + { + "id": 8, + "name": "Space 8", + "terms": { + "tag": [], + "area": ["Antropologia", "M\u00fasica"] + }, + "type": { + "id": 22, + "name": "Biblioteca Comunit\u00e1ria (inclu\u00ed\u00addos os pontos de leitura)" + }, + "shortDescription": "of Normal User 1" + } + ] + }, + "18024cd5d9ea4fd79dd3aca6a1bb0df5": { + "userId": 4, + "controller": "project", + "endpoint": "find", + "qdata": { + "name": "ilike(**)", + "@select": "id,name,terms,type", + "@limit": "10", + "@page": "1", + "@order": "name ASC", + "@files": "(avatar.avatarSmall):url", + "@permissions": "requestEventRelation", + "_": "1481854185284" + }, + "result": [ + { + "id": 1, + "name": "Project 1", + "terms": { + "tag": [] + }, + "type": { + "id": 1, + "name": "Festival" + } + }, + { + "id": 2, + "name": "Project 2", + "terms": { + "tag": [] + }, + "type": { + "id": 1, + "name": "Festival" + } + }, + { + "id": 3, + "name": "Project 3", + "terms": { + "tag": [] + }, + "type": { + "id": 1, + "name": "Festival" + } + }, + { + "id": 4, + "name": "Project 4", + "terms": { + "tag": [] + }, + "type": { + "id": 1, + "name": "Festival" + } + }, + { + "id": 5, + "name": "Project 5", + "terms": { + "tag": [] + }, + "type": { + "id": 1, + "name": "Festival" + } + }, + { + "id": 6, + "name": "Project 6", + "terms": { + "tag": [] + }, + "type": { + "id": 1, + "name": "Festival" + } + }, + { + "id": 7, + "name": "Project 7", + "terms": { + "tag": [] + }, + "type": { + "id": 1, + "name": "Festival" + } + }, + { + "id": 8, + "name": "Project 8", + "terms": { + "tag": [] + }, + "type": { + "id": 1, + "name": "Festival" + } + } + ] + }, + "69fff466d718750ab699c45a90e0aacb": { + "userId": 10, + "controller": "space", + "endpoint": "find", + "qdata": { + "@count": 1, + "user": "EQ(10)" + }, + "result": 0 + }, + "0183884db82d05db7f9a25a136b822df": { + "userId": 10, + "controller": "agent", + "endpoint": "find", + "qdata": { + "@count": 1, + "user": "EQ(10)" + }, + "result": 1 + }, + "9a8389af3e65e89e33c74de322ba3f71": { + "userId": 10, + "controller": "event", + "endpoint": "find", + "qdata": { + "@count": 1, + "user": "EQ(10)" + }, + "result": 0 + }, + "a222e0f4c9ee0b99849dfb8c8432f76e": { + "userId": 10, + "controller": "project", + "endpoint": "find", + "qdata": { + "@count": 1, + "user": "EQ(10)" + }, + "result": 0 + }, + "5fde85779e6d14af06af74c707b0271c": { + "userId": 10, + "controller": "seal", + "endpoint": "find", + "qdata": { + "@count": 1, + "user": "EQ(10)" + }, + "result": 0 + }, + "59072efd724055f66c64e2eafd4274cc": { + "userId": 10, + "controller": "notification", + "endpoint": "find", + "qdata": { + "@select": "id,status,isRequest,createTimestamp,message,approveUrl,request.permissionTo.approve,request.permissionTo.reject,request.requesterUser.id", + "user": "EQ(@me)", + "@ORDER": "createTimestamp DESC" + }, + "result": [] + }, + "99b43c94425a095408ca6aab89dba5f0": { + "userId": 10, + "controller": "event", + "endpoint": "find", + "qdata": { + "@select": "name,type,status,terms,classificacaoEtaria,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,createTimestamp", + "@files": "(avatar.avatarSmall):url", + "user": "EQ(10)", + "status": "EQ(1)", + "@limit": 50, + "@order": "name ASC", + "@page": 1 + }, + "result": [] + }, + "cb9b922b614cb10106209161ebdc8c55": { + "userId": 10, + "controller": "event", + "endpoint": "find", + "qdata": { + "@select": "name,type,status,terms,classificacaoEtaria,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,createTimestamp", + "@files": "(avatar.avatarSmall):url", + "user": "EQ(10)", + "status": "EQ(0)", + "@permissions": "view" + }, + "result": [] + }, + "b35b27fbd90d145529b4873e816a5792": { + "userId": 10, + "controller": "event", + "endpoint": "find", + "qdata": { + "@select": "name,type,status,terms,classificacaoEtaria,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,createTimestamp", + "@files": "(avatar.avatarSmall):url", + "user": "EQ(10)", + "status": "EQ(-10)", + "@permissions": "view" + }, + "result": [] + }, + "5f848a6135c82e40bb63dc6c1fb0d0ef": { + "userId": 10, + "controller": "space", + "endpoint": "find", + "qdata": { + "@select": "name,type,status,terms,endereco,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,acessibilidade,createTimestamp", + "@files": "(avatar.avatarSmall):url", + "user": "EQ(10)", + "status": "EQ(1)", + "@limit": 50, + "@order": "name ASC", + "@page": 1 + }, + "result": [] + }, + "674d0deff7dfa3b618f39589eebe5c64": { + "userId": 10, + "controller": "space", + "endpoint": "find", + "qdata": { + "@select": "name,type,status,terms,endereco,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,acessibilidade,createTimestamp", + "@files": "(avatar.avatarSmall):url", + "user": "EQ(10)", + "status": "EQ(0)", + "@permissions": "view" + }, + "result": [] + }, + "de683dabfbbf039b0855c2fefb1cdb87": { + "userId": 10, + "controller": "space", + "endpoint": "find", + "qdata": { + "@select": "name,type,status,terms,endereco,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,acessibilidade,createTimestamp", + "@files": "(avatar.avatarSmall):url", + "user": "EQ(10)", + "status": "EQ(-10)", + "@permissions": "view" + }, + "result": [] + }, + "458013deaccc3c1e253c7cdd3d58433c": { + "userId": 10, + "controller": "seal", + "endpoint": "find", + "qdata": { + "@select": "id,name,status, singleUrl", + "@permissions": "@control", + "@files": "(avatar.avatarMedium):url", + "@ORDER": "createTimestamp DESC" + }, + "result": [] + }, + "0727cd3e79e092916241a5096943aaac": { + "userId": 10, + "controller": "agent", + "endpoint": "find", + "qdata": { + "@files": "(avatar.avatarSmall):url", + "@limit": "20", + "@order": "name", + "@page": "1", + "@select": "id,name,type,shortDescription,terms", + "name": "ILIKE(*ad*)" + }, + "result": [ + { + "@files:avatar.avatarSmall": { + "url": "http://localhost/files/agent/3/file/18/imagem1-0108e4d03baa58da37295fac2878acaf.jpeg" + }, + "id": 3, + "name": "Admin 1", + "type": { + "id": 1, + "name": "Individual" + }, + "shortDescription": "short description", + "terms": { + "tag": [], + "area": ["Arquitetura-Urbanismo"] + } + }, + { + "@files:avatar.avatarSmall": { + "url": "http://localhost/files/agent/4/file/22/imagem2-1d80d1d4d8de1e61294630edb215f103.jpeg" + }, + "id": 4, + "name": "Admin 2", + "type": { + "id": 1, + "name": "Individual" + }, + "shortDescription": "short description", + "terms": { + "tag": [], + "area": ["Arquivo"] + } + }, + { + "id": 1, + "name": "Super Admin 1", + "type": { + "id": 1, + "name": "Individual" + }, + "shortDescription": "short description", + "terms": { + "tag": [], + "area": ["Antropologia"] + } + }, + { + "id": 2, + "name": "Super Admin 2", + "type": { + "id": 1, + "name": "Individual" + }, + "shortDescription": "short description", + "terms": { + "tag": [], + "area": ["Arqueologia"] + } + } + ] + }, + "74379a5a55372b74d88881002b3b7f35": { + "userId": 10, + "controller": "agent", + "endpoint": "find", + "qdata": { + "@files": "(avatar.avatarSmall):url", + "@limit": "20", + "@order": "name", + "@page": "1", + "@select": "id,name,type,shortDescription,terms", + "name": "ILIKE(*staf*)" + }, + "result": [ + { + "id": 5, + "name": "Staff User 1", + "type": { + "id": 1, + "name": "Individual" + }, + "shortDescription": "short description", + "terms": { + "tag": [], + "area": ["Artesanato"] + } + }, + { + "id": 6, + "name": "Staff User 2", + "type": { + "id": 1, + "name": "Individual" + }, + "shortDescription": "short description", + "terms": { + "tag": [], + "area": ["Artes Visuais"] + } + } + ] + }, + "3a546b208d41f8e16b86ee581944f4ec": { + "userId": 10, + "controller": "event", + "endpoint": "find", + "qdata": { + "@count": "1", + "id": "IN(5,3,6,522)" + }, + "result": 4 + }, + "cbf1e738a791ce1ec51048db8e5d1cff": { + "userId": 10, + "controller": "event", + "endpoint": "findByLocation", + "qdata": { + "@count": "1", + "@from": "2016-12-16", + "@to": "2017-01-16" + }, + "result": 4 + }, + "58a3656a5990aa51464b9fdca9113024": { + "userId": 10, + "controller": "event", + "endpoint": "find", + "qdata": { + "@select": "id", + "@order": "name ASC", + "id": "IN(5,5,3,6,3,6,522)" + }, + "result": [ + { + "id": 3 + }, + { + "id": 5 + }, + { + "id": 6 + }, + { + "id": 522 + } + ] + }, + "2075cd90462a3c9e40ac003f7a69eeaa": { + "userId": 10, + "controller": "space", + "endpoint": "find", + "qdata": { + "id": "IN(6,4,2,1)", + "@select": "id,name,location", + "@order": "name ASC" + }, + "result": [ + { + "id": 1, + "name": "Space 1", + "location": { + "latitude": "-23.5443493", + "longitude": "-46.6444262" + } + }, + { + "id": 2, + "name": "Space 2", + "location": { + "latitude": "-27.5906075", + "longitude": "-48.5129766" + } + }, + { + "id": 4, + "name": "Space 4", + "location": { + "latitude": "-23.5575987", + "longitude": "-46.6499111" + } + }, + { + "id": 6, + "name": "Space 6", + "location": { + "latitude": "-27.5887012", + "longitude": "-48.5070641" + } + } + ] + }, + "6c06ff68892973fcc267fb1ca78796f1": { + "userId": 10, + "controller": "space", + "endpoint": "findByEvents", + "qdata": { + "@from": "2016-12-16", + "@to": "2017-01-16", + "@select": "id,name,location", + "@order": "name ASC" + }, + "result": [ + { + "id": 1, + "name": "Space 1", + "location": { + "latitude": "-23.5443493", + "longitude": "-46.6444262" + } + }, + { + "id": 2, + "name": "Space 2", + "location": { + "latitude": "-27.5906075", + "longitude": "-48.5129766" + } + }, + { + "id": 4, + "name": "Space 4", + "location": { + "latitude": "-23.5575987", + "longitude": "-46.6499111" + } + }, + { + "id": 6, + "name": "Space 6", + "location": { + "latitude": "-27.5887012", + "longitude": "-48.5070641" + } + } + ] + }, + "ca0712524a2075027ed72ecb4610e871": { + "userId": 11, + "controller": "space", + "endpoint": "find", + "qdata": { + "@count": 1, + "user": "EQ(11)" + }, + "result": 0 + }, + "0ecfe8be9b8f45e3a902c6449ec07304": { + "userId": 11, + "controller": "agent", + "endpoint": "find", + "qdata": { + "@count": 1, + "user": "EQ(11)" + }, + "result": 1 + }, + "263a46f7a4100af6a916eeedadd35dd1": { + "userId": 11, + "controller": "event", + "endpoint": "find", + "qdata": { + "@count": 1, + "user": "EQ(11)" + }, + "result": 1 + }, + "2d9a3ed68df9294f5446f2d604331aa0": { + "userId": 11, + "controller": "project", + "endpoint": "find", + "qdata": { + "@count": 1, + "user": "EQ(11)" + }, + "result": 0 + }, + "86c28fe84622db54ea4b4f019ce8d019": { + "userId": 11, + "controller": "seal", + "endpoint": "find", + "qdata": { + "@count": 1, + "user": "EQ(11)" + }, + "result": 0 + }, + "0617d6f6748de137c43555bb6611390b": { + "userId": 11, + "controller": "notification", + "endpoint": "find", + "qdata": { + "@select": "id,status,isRequest,createTimestamp,message,approveUrl,request.permissionTo.approve,request.permissionTo.reject,request.requesterUser.id", + "user": "EQ(@me)", + "@ORDER": "createTimestamp DESC" + }, + "result": [ + { + "id": 25, + "status": 1, + "isRequest": false, + "createTimestamp": { + "date": "2016-12-16 00:02:14.000000", + "timezone_type": 3, + "timezone": "America/Sao_Paulo" + }, + "message": "Super Admin 2 aceitou adicionar o evento Novo Evento que ocorre Dia 30 de dezembro de 2016 \u00e0s 22:22 no espa\u00e7o Space 2.", + "approveUrl": "http://localhost/aprovar-notificacao/25/", + "request": { + "permissionTo": { + "approve": null, + "reject": null + }, + "requesterUser": { + "id": null + } + } + }, + { + "id": 16, + "status": 1, + "isRequest": false, + "createTimestamp": { + "date": "2016-12-15 23:59:50.000000", + "timezone_type": 3, + "timezone": "America/Sao_Paulo" + }, + "message": "Normal User 1 aceitou o relacionamento do agente Normal User 1 com o evento Novo Evento.", + "approveUrl": "http://localhost/aprovar-notificacao/16/", + "request": { + "permissionTo": { + "approve": null, + "reject": null + }, + "requesterUser": { + "id": null + } + } + }, + { + "id": 14, + "status": 1, + "isRequest": true, + "createTimestamp": { + "date": "2016-12-15 23:58:05.000000", + "timezone_type": 3, + "timezone": "America/Sao_Paulo" + }, + "message": "Sua requisi\u00e7\u00e3o para relacionar o agente Staff User 1 ao evento Novo Evento foi enviada.", + "approveUrl": "http://localhost/aprovar-notificacao/14/", + "request": { + "permissionTo": { + "approve": false, + "reject": true + }, + "requesterUser": { + "id": 11 + } + } + }, + { + "id": 12, + "status": 1, + "isRequest": true, + "createTimestamp": { + "date": "2016-12-15 23:57:42.000000", + "timezone_type": 3, + "timezone": "America/Sao_Paulo" + }, + "message": "Sua requisi\u00e7\u00e3o para relacionar o agente Normal User 2 ao evento Novo Evento foi enviada.", + "approveUrl": "http://localhost/aprovar-notificacao/12/", + "request": { + "permissionTo": { + "approve": false, + "reject": true + }, + "requesterUser": { + "id": 11 + } + } + }, + { + "id": 8, + "status": 1, + "isRequest": true, + "createTimestamp": { + "date": "2016-12-15 23:57:14.000000", + "timezone_type": 3, + "timezone": "America/Sao_Paulo" + }, + "message": "Sua requisi\u00e7\u00e3o para criar a ocorr\u00eancia do evento Novo Evento no espa\u00e7o Space 1 foi enviada.", + "approveUrl": "http://localhost/aprovar-notificacao/8/", + "request": { + "permissionTo": { + "approve": false, + "reject": true + }, + "requesterUser": { + "id": 11 + } + } + }, + { + "id": 7, + "status": 1, + "isRequest": false, + "createTimestamp": { + "date": "2016-12-15 23:53:41.000000", + "timezone_type": 3, + "timezone": "America/Sao_Paulo" + }, + "message": "New 1 aceitou o relacionamento do agente New 1 com o agente New 2.", + "approveUrl": "http://localhost/aprovar-notificacao/7/", + "request": { + "permissionTo": { + "approve": null, + "reject": null + }, + "requesterUser": { + "id": null + } + } + } + ] + }, + "3922d54491764ca0cfe077e996ff96f2": { + "userId": 11, + "controller": "event", + "endpoint": "find", + "qdata": { + "@select": "name,type,status,terms,classificacaoEtaria,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,createTimestamp", + "@files": "(avatar.avatarSmall):url", + "user": "EQ(11)", + "status": "EQ(1)", + "@limit": 50, + "@order": "name ASC", + "@page": 1 + }, + "result": [ + { + "name": "Novo Evento", + "type": { + "id": 1, + "name": "Padr\u00e3o" + }, + "status": 1, + "terms": { + "tag": [], + "linguagem": ["Cinema", "Artes Circenses"] + }, + "classificacaoEtaria": "Livre", + "singleUrl": "http://localhost/evento/522/", + "editUrl": "http://localhost/eventos/edita/522/", + "deleteUrl": "http://localhost/eventos/apaga/522/", + "publishUrl": "http://localhost/eventos/publish/522/", + "unpublishUrl": "http://localhost/eventos/unpublish/522/", + "createTimestamp": { + "date": "2016-12-15 23:56:29.000000", + "timezone_type": 3, + "timezone": "America/Sao_Paulo" + } + } + ] + }, + "cd9e4491ebd725350c3f0bea8d926785": { + "userId": 11, + "controller": "event", + "endpoint": "find", + "qdata": { + "@select": "name,type,status,terms,classificacaoEtaria,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,createTimestamp", + "@files": "(avatar.avatarSmall):url", + "user": "EQ(11)", + "status": "EQ(0)", + "@permissions": "view" + }, + "result": [] + }, + "12deb8d433e267df3176464ef834d608": { + "userId": 11, + "controller": "event", + "endpoint": "find", + "qdata": { + "@select": "name,type,status,terms,classificacaoEtaria,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,createTimestamp", + "@files": "(avatar.avatarSmall):url", + "user": "EQ(11)", + "status": "EQ(-10)", + "@permissions": "view" + }, + "result": [] + }, + "4c51a4f58ea8793d53e0d9c1896dd1ff": { + "userId": 11, + "controller": "space", + "endpoint": "find", + "qdata": { + "@select": "name,type,status,terms,endereco,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,acessibilidade,createTimestamp", + "@files": "(avatar.avatarSmall):url", + "user": "EQ(11)", + "status": "EQ(1)", + "@limit": 50, + "@order": "name ASC", + "@page": 1 + }, + "result": [] + }, + "e5e68a12ecd2bae695d3773aa7625bfa": { + "userId": 11, + "controller": "space", + "endpoint": "find", + "qdata": { + "@select": "name,type,status,terms,endereco,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,acessibilidade,createTimestamp", + "@files": "(avatar.avatarSmall):url", + "user": "EQ(11)", + "status": "EQ(0)", + "@permissions": "view" + }, + "result": [] + }, + "9fd9cecb2d339317d9d2a1903a49b634": { + "userId": 11, + "controller": "space", + "endpoint": "find", + "qdata": { + "@select": "name,type,status,terms,endereco,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,acessibilidade,createTimestamp", + "@files": "(avatar.avatarSmall):url", + "user": "EQ(11)", + "status": "EQ(-10)", + "@permissions": "view" + }, + "result": [] + }, + "a97ca60d578532ee94834635a231a1b1": { + "userId": 11, + "controller": "seal", + "endpoint": "find", + "qdata": { + "@select": "id,name,status, singleUrl", + "@permissions": "@control", + "@files": "(avatar.avatarMedium):url", + "@ORDER": "createTimestamp DESC" + }, + "result": [] + }, + "024b592a38d4657e0ac16c113db0e56f": { + "userId": 7, + "controller": "space", + "endpoint": "find", + "qdata": { + "@count": 1, + "user": "EQ(7)" + }, + "result": 1 + }, + "e7e72353465462e39c66175e7f14a8e9": { + "userId": 7, + "controller": "agent", + "endpoint": "find", + "qdata": { + "@count": 1, + "user": "EQ(7)" + }, + "result": 1 + }, + "d24750bcbc17921e4e050dc3eeef32e4": { + "userId": 7, + "controller": "event", + "endpoint": "find", + "qdata": { + "@count": 1, + "user": "EQ(7)" + }, + "result": 1 + }, + "9fcd79151e7ed8cbc936f81a8a4f3444": { + "userId": 7, + "controller": "project", + "endpoint": "find", + "qdata": { + "@count": 1, + "user": "EQ(7)" + }, + "result": 1 + }, + "f54215778e1c5f0feb27b50004433873": { + "userId": 7, + "controller": "seal", + "endpoint": "find", + "qdata": { + "@count": 1, + "user": "EQ(7)" + }, + "result": 0 + }, + "fa66a6b0dd4584bf74570a9a176ec264": { + "userId": 7, + "controller": "notification", + "endpoint": "find", + "qdata": { + "@select": "id,status,isRequest,createTimestamp,message,approveUrl,request.permissionTo.approve,request.permissionTo.reject,request.requesterUser.id", + "user": "EQ(@me)", + "@ORDER": "createTimestamp DESC" + }, + "result": [ + { + "id": 4, + "status": 1, + "isRequest": false, + "createTimestamp": { + "date": "2016-12-15 22:24:28.000000", + "timezone_type": 3, + "timezone": "America/Sao_Paulo" + }, + "message": "Seu \u00faltimo acesso foi em 21/05/2014, atualize suas informa\u00e7\u00f5es se necess\u00e1rio.", + "approveUrl": "http://localhost/aprovar-notificacao/4/", + "request": { + "permissionTo": { + "approve": null, + "reject": null + }, + "requesterUser": { + "id": null + } + } + } + ] + }, + "7507130526e3fb8298e6565ef665648c": { + "userId": 7, + "controller": "event", + "endpoint": "find", + "qdata": { + "@select": "name,type,status,terms,classificacaoEtaria,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,createTimestamp", + "@files": "(avatar.avatarSmall):url", + "user": "EQ(7)", + "status": "EQ(1)", + "@limit": 50, + "@order": "name ASC", + "@page": 1 + }, + "result": [ + { + "@files:avatar.avatarSmall": { + "url": "http://localhost/files/event/7/file/42/imagem2-1d80d1d4d8de1e61294630edb215f103.jpeg" + }, + "name": "Event 7", + "type": { + "id": 1, + "name": "Padr\u00e3o" + }, + "status": 1, + "terms": { + "tag": [], + "linguagem": ["Cultura Ind\u00edgena", "R\u00e1dio"] + }, + "classificacaoEtaria": "16 anos", + "singleUrl": "http://localhost/evento/7/", + "editUrl": "http://localhost/eventos/edita/7/", + "deleteUrl": "http://localhost/eventos/apaga/7/", + "publishUrl": "http://localhost/eventos/publish/7/", + "unpublishUrl": "http://localhost/eventos/unpublish/7/", + "createTimestamp": { + "date": "2014-05-21 18:04:44.000000", + "timezone_type": 3, + "timezone": "America/Sao_Paulo" + } + } + ] + }, + "00ee77a2ae3f43c959ef2791d7b95475": { + "userId": 7, + "controller": "event", + "endpoint": "find", + "qdata": { + "@select": "name,type,status,terms,classificacaoEtaria,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,createTimestamp", + "@files": "(avatar.avatarSmall):url", + "user": "EQ(7)", + "status": "EQ(0)", + "@permissions": "view" + }, + "result": [] + }, + "08f848367416bd65fec59a7658d9ab40": { + "userId": 7, + "controller": "event", + "endpoint": "find", + "qdata": { + "@select": "name,type,status,terms,classificacaoEtaria,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,createTimestamp", + "@files": "(avatar.avatarSmall):url", + "user": "EQ(7)", + "status": "EQ(-10)", + "@permissions": "view" + }, + "result": [] + }, + "aa787cd0f6714d6e3506368049d549b9": { + "userId": 7, + "controller": "space", + "endpoint": "find", + "qdata": { + "@select": "name,type,status,terms,endereco,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,acessibilidade,createTimestamp", + "@files": "(avatar.avatarSmall):url", + "user": "EQ(7)", + "status": "EQ(1)", + "@limit": 50, + "@order": "name ASC", + "@page": 1 + }, + "result": [ + { + "name": "Space 7", + "type": { + "id": 20, + "name": "Biblioteca P\u00fablica" + }, + "status": 1, + "terms": { + "tag": [], + "area": ["Arquitetura-Urbanismo", "Artesanato"] + }, + "endereco": "Rua Engenheiro Francisco Azevedo, 216 , Jardim Vera Cruz, 05030-010, S\u00e3o Paulo, SP", + "singleUrl": "http://localhost/espaco/7/", + "editUrl": "http://localhost/espacos/edita/7/", + "deleteUrl": "http://localhost/espacos/apaga/7/", + "publishUrl": "http://localhost/espacos/publish/7/", + "unpublishUrl": "http://localhost/espacos/unpublish/7/", + "acessibilidade": "N\u00e3o", + "createTimestamp": { + "date": "2014-05-21 18:04:38.000000", + "timezone_type": 3, + "timezone": "America/Sao_Paulo" + } + } + ] + }, + "54e1fce06be6c7b634d20ead1e90454b": { + "userId": 7, + "controller": "space", + "endpoint": "find", + "qdata": { + "@select": "name,type,status,terms,endereco,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,acessibilidade,createTimestamp", + "@files": "(avatar.avatarSmall):url", + "user": "EQ(7)", + "status": "EQ(0)", + "@permissions": "view" + }, + "result": [] + }, + "5039c04525e1ac82e001539e70428b34": { + "userId": 7, + "controller": "space", + "endpoint": "find", + "qdata": { + "@select": "name,type,status,terms,endereco,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,acessibilidade,createTimestamp", + "@files": "(avatar.avatarSmall):url", + "user": "EQ(7)", + "status": "EQ(-10)", + "@permissions": "view" + }, + "result": [] + }, + "3a464b5d095267d8eed3acf49d84a26a": { + "userId": 7, + "controller": "seal", + "endpoint": "find", + "qdata": { + "@select": "id,name,status, singleUrl", + "@permissions": "@control", + "@files": "(avatar.avatarMedium):url", + "@ORDER": "createTimestamp DESC" + }, + "result": [] + }, + "335250e0a442ea52c0184e67fff19cd0": { + "userId": 7, + "controller": "project", + "endpoint": "find", + "qdata": { + "name": "ilike(**)", + "@select": "id,name,terms,type", + "@limit": "10", + "@page": "1", + "@order": "name ASC", + "@files": "(avatar.avatarSmall):url", + "@permissions": "requestEventRelation", + "_": "1481854595538" + }, + "result": [ + { + "id": 7, + "name": "Project 7", + "terms": { + "tag": [] + }, + "type": { + "id": 1, + "name": "Festival" + } + } + ] + }, + "08e4a346800090a22e30b661d373f44b": { + "userId": 7, + "controller": "agent", + "endpoint": "find", + "qdata": { + "@select": "id,name,location", + "@order": "name ASC" + }, + "result": [ + { + "id": 3, + "name": "Admin 1", + "location": { + "latitude": 0, + "longitude": 0 + } + }, + { + "id": 4, + "name": "Admin 2", + "location": { + "latitude": "-23.5367427", + "longitude": "-46.6587759" + } + }, + { + "id": 356, + "name": "New 1", + "location": { + "latitude": "-23.5419764", + "longitude": "-46.6465663" + } + }, + { + "id": 357, + "name": "New 2", + "location": { + "latitude": 0, + "longitude": 0 + } + }, + { + "id": 7, + "name": "Normal User 1", + "location": { + "latitude": "-23.5335215", + "longitude": "-46.6569949" + } + }, + { + "id": 8, + "name": "Normal User 2", + "location": { + "latitude": 0, + "longitude": 0 + } + }, + { + "id": 5, + "name": "Staff User 1", + "location": { + "latitude": 0, + "longitude": 0 + } + }, + { + "id": 6, + "name": "Staff User 2", + "location": { + "latitude": 0, + "longitude": 0 + } + }, + { + "id": 1, + "name": "Super Admin 1", + "location": { + "latitude": 0, + "longitude": 0 + } + }, + { + "id": 2, + "name": "Super Admin 2", + "location": { + "latitude": 0, + "longitude": 0 + } + } + ] + }, + "8f7131c185aec0d22b6a6b510ca5cfc8": { + "userId": 7, + "controller": "agent", + "endpoint": "find", + "qdata": { + "@keyword": "1", + "@select": "id,name,location", + "@order": "name ASC" + }, + "result": [ + { + "id": 3, + "name": "Admin 1", + "location": { + "latitude": 0, + "longitude": 0 + } + }, + { + "id": 356, + "name": "New 1", + "location": { + "latitude": "-23.5419764", + "longitude": "-46.6465663" + } + }, + { + "id": 7, + "name": "Normal User 1", + "location": { + "latitude": "-23.5335215", + "longitude": "-46.6569949" + } + }, + { + "id": 5, + "name": "Staff User 1", + "location": { + "latitude": 0, + "longitude": 0 + } + }, + { + "id": 1, + "name": "Super Admin 1", + "location": { + "latitude": 0, + "longitude": 0 + } + } + ] + }, + "1c1b73a6c86bc43b1b968aa9f95348bb": { + "userId": 7, + "controller": "agent", + "endpoint": "find", + "qdata": { + "@keyword": "new", + "@select": "id,name,location", + "@order": "name ASC" + }, + "result": [ + { + "id": 356, + "name": "New 1", + "location": { + "latitude": "-23.5419764", + "longitude": "-46.6465663" + } + }, + { + "id": 357, + "name": "New 2", + "location": { + "latitude": 0, + "longitude": 0 + } + } + ] + }, + "1852b219ae085a59b56c8adc284d22c7": { + "userId": 7, + "controller": "agent", + "endpoint": "findOne", + "qdata": { + "id": "EQ(7)", + "@select": "id,singleUrl,name,subTitle,type,shortDescription,terms,project.name,project.singleUrl", + "@files": "(avatar.avatarSmall):url" + }, + "result": { + "@files:avatar.avatarSmall": { + "url": "http://localhost/files/agent/7/file/26/imagem4-4e0f09ec602df7f0dbe0ffa44c19eb5e.jpeg" + }, + "id": 7, + "singleUrl": "http://localhost/agente/7/", + "name": "Normal User 1", + "subTitle": null, + "type": { + "id": 1, + "name": "Individual" + }, + "shortDescription": "short description", + "terms": { + "tag": [], + "area": ["Arquivo", "Arte de Rua", "Cinema"] + }, + "project": { + "name": null, + "singleUrl": null + } + } + }, + "34f85ed304c7be763727e07ad65d69a4": { + "userId": 7, + "controller": "agent", + "endpoint": "findOne", + "qdata": { + "id": "EQ(356)", + "@select": "id,singleUrl,name,subTitle,type,shortDescription,terms,project.name,project.singleUrl", + "@files": "(avatar.avatarSmall):url" + }, + "result": { + "id": 356, + "singleUrl": "http://localhost/agente/356/", + "name": "New 1", + "subTitle": null, + "type": { + "id": 1, + "name": "Individual" + }, + "shortDescription": "descricao curta", + "terms": { + "tag": ["TAGUEADO"], + "area": ["Arte Digital"] + }, + "project": { + "name": null, + "singleUrl": null + } + } + }, + "d019808e091fcab01b51933c1b9db08d": { + "userId": 7, + "controller": "agent", + "endpoint": "findOne", + "qdata": { + "id": "EQ(4)", + "@select": "id,singleUrl,name,subTitle,type,shortDescription,terms,project.name,project.singleUrl", + "@files": "(avatar.avatarSmall):url" + }, + "result": { + "@files:avatar.avatarSmall": { + "url": "http://localhost/files/agent/4/file/22/imagem2-1d80d1d4d8de1e61294630edb215f103.jpeg" + }, + "id": 4, + "singleUrl": "http://localhost/agente/4/", + "name": "Admin 2", + "subTitle": null, + "type": { + "id": 1, + "name": "Individual" + }, + "shortDescription": "short description", + "terms": { + "tag": [], + "area": ["Arquivo"] + }, + "project": { + "name": null, + "singleUrl": null + } + } + }, + "1e48c41b4a71ab188c16a475a10feb22": { + "userId": 7, + "controller": "agent", + "endpoint": "find", + "qdata": { + "term:area": "IN(Arquivo)", + "@select": "id,name,location", + "@order": "name ASC" + }, + "result": [ + { + "id": 4, + "name": "Admin 2", + "location": { + "latitude": "-23.5367427", + "longitude": "-46.6587759" + } + }, + { + "id": 7, + "name": "Normal User 1", + "location": { + "latitude": "-23.5335215", + "longitude": "-46.6569949" + } + } + ] + }, + "d5b9a7f92592477758a932fd60118879": { + "userId": 1, + "controller": "space", + "endpoint": "find", + "qdata": { + "@count": 1, + "user": "EQ(1)" + }, + "result": 1 + }, + "298f5dd19c4626764bf5ea225ba88041": { + "userId": 1, + "controller": "agent", + "endpoint": "find", + "qdata": { + "@count": 1, + "user": "EQ(1)" + }, + "result": 1 + }, + "94bf87c88cd30d3f45cc14a7525ca589": { + "userId": 1, + "controller": "event", + "endpoint": "find", + "qdata": { + "@count": 1, + "user": "EQ(1)" + }, + "result": 1 + }, + "1d074725858faee8f9dfb7e1f14ee58e": { + "userId": 1, + "controller": "project", + "endpoint": "find", + "qdata": { + "@count": 1, + "user": "EQ(1)" + }, + "result": 1 + }, + "c9d9d7429f7f3f10453e182168443047": { + "userId": 1, + "controller": "seal", + "endpoint": "find", + "qdata": { + "@count": 1, + "user": "EQ(1)" + }, + "result": 1 + }, + "2bb7e9cde6154c899a305f2693e13753": { + "userId": 1, + "controller": "notification", + "endpoint": "find", + "qdata": { + "@select": "id,status,isRequest,createTimestamp,message,approveUrl,request.permissionTo.approve,request.permissionTo.reject,request.requesterUser.id", + "user": "EQ(@me)", + "@ORDER": "createTimestamp DESC" + }, + "result": [ + { + "id": 27, + "status": 1, + "isRequest": false, + "createTimestamp": { + "date": "2016-12-16 00:17:56.000000", + "timezone_type": 3, + "timezone": "America/Sao_Paulo" + }, + "message": "Seu \u00faltimo acesso foi em 21/05/2014, atualize suas informa\u00e7\u00f5es se necess\u00e1rio.", + "approveUrl": "http://localhost/aprovar-notificacao/27/", + "request": { + "permissionTo": { + "approve": null, + "reject": null + }, + "requesterUser": { + "id": null + } + } + }, + { + "id": 28, + "status": 1, + "isRequest": false, + "createTimestamp": { + "date": "2016-12-16 00:17:56.000000", + "timezone_type": 3, + "timezone": "America/Sao_Paulo" + }, + "message": "O agente Super Admin 1 n\u00e3o \u00e9 atualizado desde de 21/05/2014, atualize as informa\u00e7\u00f5es se necess\u00e1rio.editar", + "approveUrl": "http://localhost/aprovar-notificacao/28/", + "request": { + "permissionTo": { + "approve": null, + "reject": null + }, + "requesterUser": { + "id": null + } + } + }, + { + "id": 9, + "status": 1, + "isRequest": true, + "createTimestamp": { + "date": "2016-12-15 23:57:14.000000", + "timezone_type": 3, + "timezone": "America/Sao_Paulo" + }, + "message": "New 2 quer adicionar o evento Novo Evento que ocorre Dia 21 de dezembro de 2016 \u00e0s 11:11 no espa\u00e7o Space 1.", + "approveUrl": "http://localhost/aprovar-notificacao/9/", + "request": { + "permissionTo": { + "approve": true, + "reject": true + }, + "requesterUser": { + "id": 11 + } + } + } + ] + }, + "cec3295e62de41646dcd93de8a840cb6": { + "userId": 1, + "controller": "event", + "endpoint": "find", + "qdata": { + "@select": "name,type,status,terms,classificacaoEtaria,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,createTimestamp", + "@files": "(avatar.avatarSmall):url", + "user": "EQ(1)", + "status": "EQ(1)", + "@limit": 50, + "@order": "name ASC", + "@page": 1 + }, + "result": [ + { + "name": "Event 1", + "type": { + "id": 1, + "name": "Padr\u00e3o" + }, + "status": 1, + "terms": { + "tag": [], + "linguagem": [] + }, + "classificacaoEtaria": null, + "singleUrl": "http://localhost/evento/1/", + "editUrl": "http://localhost/eventos/edita/1/", + "deleteUrl": "http://localhost/eventos/apaga/1/", + "publishUrl": "http://localhost/eventos/publish/1/", + "unpublishUrl": "http://localhost/eventos/unpublish/1/", + "createTimestamp": { + "date": "2014-05-21 18:04:44.000000", + "timezone_type": 3, + "timezone": "America/Sao_Paulo" + } + } + ] + }, + "8e1813d99c6fb0992f77b88b517ff5e6": { + "userId": 1, + "controller": "event", + "endpoint": "find", + "qdata": { + "@select": "name,type,status,terms,classificacaoEtaria,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,createTimestamp", + "@files": "(avatar.avatarSmall):url", + "user": "EQ(1)", + "status": "EQ(0)", + "@permissions": "view" + }, + "result": [] + }, + "4cb22b42e66fa0df420d8dd3c3bbc854": { + "userId": 1, + "controller": "event", + "endpoint": "find", + "qdata": { + "@select": "name,type,status,terms,classificacaoEtaria,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,createTimestamp", + "@files": "(avatar.avatarSmall):url", + "user": "EQ(1)", + "status": "EQ(-10)", + "@permissions": "view" + }, + "result": [] + }, + "2c4bb12d67c9e3a5a01576799579e6fe": { + "userId": 1, + "controller": "space", + "endpoint": "find", + "qdata": { + "@select": "name,type,status,terms,endereco,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,acessibilidade,createTimestamp", + "@files": "(avatar.avatarSmall):url", + "user": "EQ(1)", + "status": "EQ(1)", + "@limit": 50, + "@order": "name ASC", + "@page": 1 + }, + "result": [ + { + "@files:avatar.avatarSmall": { + "url": "http://localhost/files/space/1/file/14/imagem2-1d80d1d4d8de1e61294630edb215f103.jpeg" + }, + "name": "Space 1", + "type": { + "id": 10, + "name": "Cine itinerante" + }, + "status": 1, + "terms": { + "tag": [], + "area": ["Jogos Eletr\u00f4nicos", "Filosofia", "Esporte"] + }, + "endereco": "Rua Ara\u00fajo, 22 , Rep\u00fablica, 01220-020, S\u00e3o Paulo, SP", + "singleUrl": "http://localhost/espaco/1/", + "editUrl": "http://localhost/espacos/edita/1/", + "deleteUrl": "http://localhost/espacos/apaga/1/", + "publishUrl": "http://localhost/espacos/publish/1/", + "unpublishUrl": "http://localhost/espacos/unpublish/1/", + "acessibilidade": null, + "createTimestamp": { + "date": "2014-05-21 18:04:38.000000", + "timezone_type": 3, + "timezone": "America/Sao_Paulo" + } + } + ] + }, + "1036ab919203383b480331798b0ef43c": { + "userId": 1, + "controller": "space", + "endpoint": "find", + "qdata": { + "@select": "name,type,status,terms,endereco,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,acessibilidade,createTimestamp", + "@files": "(avatar.avatarSmall):url", + "user": "EQ(1)", + "status": "EQ(0)", + "@permissions": "view" + }, + "result": [] + }, + "86d8b541f3c4b7b26250b6d96b8b9259": { + "userId": 1, + "controller": "space", + "endpoint": "find", + "qdata": { + "@select": "name,type,status,terms,endereco,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,acessibilidade,createTimestamp", + "@files": "(avatar.avatarSmall):url", + "user": "EQ(1)", + "status": "EQ(-10)", + "@permissions": "view" + }, + "result": [] + }, + "6a9f2a58682c37c6c19a21dcd4b56646": { + "userId": 1, + "controller": "agent", + "endpoint": "find", + "qdata": { + "@select": "id,name,location", + "@order": "name ASC" + }, + "result": [ + { + "id": 3, + "name": "Admin 1", + "location": { + "latitude": "-23.546179", + "longitude": "-46.6451146" + } + }, + { + "id": 4, + "name": "Admin 2", + "location": { + "latitude": "-23.5367427", + "longitude": "-46.6587759" + } + }, + { + "id": 356, + "name": "New 1", + "location": { + "latitude": "-23.5419764", + "longitude": "-46.6465663" + } + }, + { + "id": 357, + "name": "New 2", + "location": { + "latitude": "-23.533808", + "longitude": "-46.6569978" + } + }, + { + "id": 7, + "name": "Normal User 1", + "location": { + "latitude": "-23.5335215", + "longitude": "-46.6569949" + } + }, + { + "id": 8, + "name": "Normal User 2", + "location": { + "latitude": "0", + "longitude": "0" + } + }, + { + "id": 5, + "name": "Staff User 1", + "location": { + "latitude": "0", + "longitude": "0" + } + }, + { + "id": 6, + "name": "Staff User 2", + "location": { + "latitude": "0", + "longitude": "0" + } + }, + { + "id": 1, + "name": "Super Admin 1", + "location": { + "latitude": "0", + "longitude": "0" + } + }, + { + "id": 2, + "name": "Super Admin 2", + "location": { + "latitude": "0", + "longitude": "0" + } + } + ] + }, + "3bf9984660e2f348c3d18c9c04676736": { + "userId": 1, + "controller": "event", + "endpoint": "find", + "qdata": { + "@count": "1", + "id": "IN(5,3,6,522)" + }, + "result": 4 + }, + "68b1e3cdb560ae245b560d831d1015b6": { + "userId": 1, + "controller": "event", + "endpoint": "findByLocation", + "qdata": { + "@count": "1", + "@from": "2016-12-16", + "@to": "2017-01-16" + }, + "result": 4 + }, + "73cdacf0e6a9cf41dae3e1bc6dcf510d": { + "userId": 1, + "controller": "event", + "endpoint": "find", + "qdata": { + "@select": "id", + "@order": "name ASC", + "id": "IN(5,5,3,6,3,6,522)" + }, + "result": [ + { + "id": 3 + }, + { + "id": 5 + }, + { + "id": 6 + }, + { + "id": 522 + } + ] + }, + "3ef2a3f9d0bd0640856f3a84066c9633": { + "userId": 1, + "controller": "space", + "endpoint": "find", + "qdata": { + "id": "IN(6,4,2,1)", + "@select": "id,name,location", + "@order": "name ASC" + }, + "result": [ + { + "id": 1, + "name": "Space 1", + "location": { + "latitude": "-23.5443493", + "longitude": "-46.6444262" + } + }, + { + "id": 2, + "name": "Space 2", + "location": { + "latitude": "-27.5906075", + "longitude": "-48.5129766" + } + }, + { + "id": 4, + "name": "Space 4", + "location": { + "latitude": "-23.5575987", + "longitude": "-46.6499111" + } + }, + { + "id": 6, + "name": "Space 6", + "location": { + "latitude": "-27.5887012", + "longitude": "-48.5070641" + } + } + ] + }, + "6577bb024e588b5b45303a84889b5ced": { + "userId": 1, + "controller": "space", + "endpoint": "findByEvents", + "qdata": { + "@from": "2016-12-16", + "@to": "2017-01-16", + "@select": "id,name,location", + "@order": "name ASC" + }, + "result": [ + { + "id": 1, + "name": "Space 1", + "location": { + "latitude": "-23.5443493", + "longitude": "-46.6444262" + } + }, + { + "id": 2, + "name": "Space 2", + "location": { + "latitude": "-27.5906075", + "longitude": "-48.5129766" + } + }, + { + "id": 4, + "name": "Space 4", + "location": { + "latitude": "-23.5575987", + "longitude": "-46.6499111" + } + }, + { + "id": 6, + "name": "Space 6", + "location": { + "latitude": "-27.5887012", + "longitude": "-48.5070641" + } + } + ] + }, + "7ec7d0e657f6f24d13153d9053e05078": { + "userId": 1, + "controller": "event", + "endpoint": "find", + "qdata": { + "@count": "1", + "id": "IN(5,7,3)" + }, + "result": 3 + }, + "fd52b40ec12768e665877d5356055f28": { + "userId": 1, + "controller": "event", + "endpoint": "findByLocation", + "qdata": { + "@count": "1", + "@from": "2016-12-01", + "@to": "2016-12-01" + }, + "result": 3 + }, + "3ddc14930fe7dbfe80d74005e97881de": { + "userId": 1, + "controller": "event", + "endpoint": "find", + "qdata": { + "@select": "id", + "@order": "name ASC", + "id": "IN(5,7,5,3,7,7,7,7,7,7,7,3)" + }, + "result": [ + { + "id": 3 + }, + { + "id": 5 + }, + { + "id": 7 + } + ] + }, + "9f7b36a6ecfcab2b4210eb82f21c8c84": { + "userId": 1, + "controller": "space", + "endpoint": "findByEvents", + "qdata": { + "@from": "2016-12-01", + "@to": "2016-12-01", + "@select": "id,name,location", + "@order": "name ASC" + }, + "result": [ + { + "id": 1, + "name": "Space 1", + "location": { + "latitude": "-23.5443493", + "longitude": "-46.6444262" + } + }, + { + "id": 2, + "name": "Space 2", + "location": { + "latitude": "-27.5906075", + "longitude": "-48.5129766" + } + }, + { + "id": 4, + "name": "Space 4", + "location": { + "latitude": "-23.5575987", + "longitude": "-46.6499111" + } + }, + { + "id": 6, + "name": "Space 6", + "location": { + "latitude": "-27.5887012", + "longitude": "-48.5070641" + } + } + ] + }, + "f9754092280caa8289f03575bebec2d0": { + "userId": 1, + "controller": "event", + "endpoint": "find", + "qdata": { + "@count": "1", + "id": "IN(5,7,3,6,522)" + }, + "result": 5 + }, + "f7dd64cdffdd1188ce11a15cc2e57482": { + "userId": 1, + "controller": "event", + "endpoint": "findByLocation", + "qdata": { + "@count": "1", + "@from": "2016-12-01", + "@to": "2017-01-31" + }, + "result": 5 + }, + "914467a4fde1c5fb7ebd5eb391e3b0e1": { + "userId": 1, + "controller": "event", + "endpoint": "find", + "qdata": { + "@select": "id", + "@order": "name ASC", + "id": "IN(5,7,5,3,7,7,7,7,7,7,7,6,3,6,522)" + }, + "result": [ + { + "id": 3 + }, + { + "id": 5 + }, + { + "id": 6 + }, + { + "id": 7 + }, + { + "id": 522 + } + ] + }, + "8e4a0621b05007f981c3764d847428dd": { + "userId": 1, + "controller": "space", + "endpoint": "find", + "qdata": { + "id": "IN(7,8,6,5,4,3,2,1)", + "@select": "id,name,location", + "@order": "name ASC" + }, + "result": [ + { + "id": 1, + "name": "Space 1", + "location": { + "latitude": "-23.5443493", + "longitude": "-46.6444262" + } + }, + { + "id": 2, + "name": "Space 2", + "location": { + "latitude": "-27.5906075", + "longitude": "-48.5129766" + } + }, + { + "id": 3, + "name": "Space 3", + "location": { + "latitude": "-23.5299146", + "longitude": "-46.6343522" + } + }, + { + "id": 4, + "name": "Space 4", + "location": { + "latitude": "-23.5575987", + "longitude": "-46.6499111" + } + }, + { + "id": 5, + "name": "Space 5", + "location": { + "latitude": "-27.5666995", + "longitude": "-48.5102924" + } + }, + { + "id": 6, + "name": "Space 6", + "location": { + "latitude": "-27.5887012", + "longitude": "-48.5070641" + } + }, + { + "id": 7, + "name": "Space 7", + "location": { + "latitude": "-23.5394312", + "longitude": "-46.6915816" + } + }, + { + "id": 8, + "name": "Space 8", + "location": { + "latitude": "-23.5466151", + "longitude": "-46.6468627" + } + } + ] + }, + "2742b11c67707f7ab4e69c570a4b25eb": { + "userId": 1, + "controller": "space", + "endpoint": "findByEvents", + "qdata": { + "@from": "2016-12-01", + "@to": "2017-01-31", + "@select": "id,name,location", + "@order": "name ASC" + }, + "result": [ + { + "id": 1, + "name": "Space 1", + "location": { + "latitude": "-23.5443493", + "longitude": "-46.6444262" + } + }, + { + "id": 2, + "name": "Space 2", + "location": { + "latitude": "-27.5906075", + "longitude": "-48.5129766" + } + }, + { + "id": 3, + "name": "Space 3", + "location": { + "latitude": "-23.5299146", + "longitude": "-46.6343522" + } + }, + { + "id": 4, + "name": "Space 4", + "location": { + "latitude": "-23.5575987", + "longitude": "-46.6499111" + } + }, + { + "id": 5, + "name": "Space 5", + "location": { + "latitude": "-27.5666995", + "longitude": "-48.5102924" + } + }, + { + "id": 6, + "name": "Space 6", + "location": { + "latitude": "-27.5887012", + "longitude": "-48.5070641" + } + }, + { + "id": 7, + "name": "Space 7", + "location": { + "latitude": "-23.5394312", + "longitude": "-46.6915816" + } + }, + { + "id": 8, + "name": "Space 8", + "location": { + "latitude": "-23.5466151", + "longitude": "-46.6468627" + } + } + ] + }, + "28798fe247e5edc85b2e3ab5fe5425af": { + "userId": 1, + "controller": "space", + "endpoint": "find", + "qdata": { + "@select": "id,name,shortDescription,location,terms,__metadata", + "_geoLocation": "GEONEAR(-49.04296875,-21.125497636606266,507955)" + }, + "result": [ + { + "id": 7, + "name": "Space 7", + "shortDescription": "of Normal User 1", + "location": { + "latitude": "-23.5394312", + "longitude": "-46.6915816" + }, + "terms": { + "tag": [], + "area": ["Arquitetura-Urbanismo", "Artesanato"] + }, + "__metadata": null + }, + { + "id": 8, + "name": "Space 8", + "shortDescription": "of Normal User 1", + "location": { + "latitude": "-23.5466151", + "longitude": "-46.6468627" + }, + "terms": { + "tag": [], + "area": ["Antropologia", "M\u00fasica"] + }, + "__metadata": null + }, + { + "id": 4, + "name": "Space 4", + "shortDescription": "of Admin 2", + "location": { + "latitude": "-23.5575987", + "longitude": "-46.6499111" + }, + "terms": { + "tag": [], + "area": ["Artes Visuais", "Fotografia", "Arte Digital"] + }, + "__metadata": null + }, + { + "id": 3, + "name": "Space 3", + "shortDescription": "of Admin 1", + "location": { + "latitude": "-23.5299146", + "longitude": "-46.6343522" + }, + "terms": { + "tag": [], + "area": ["Jogos Eletr\u00f4nicos", "Arte Digital"] + }, + "__metadata": null + }, + { + "id": 1, + "name": "Space 1", + "shortDescription": "of Super Admin 1", + "location": { + "latitude": "-23.5443493", + "longitude": "-46.6444262" + }, + "terms": { + "tag": [], + "area": ["Jogos Eletr\u00f4nicos", "Filosofia", "Esporte"] + }, + "__metadata": null + } + ] + }, + "ad89972f43f75ee70bc670d047fd2d89": { + "userId": 1, + "controller": "event", + "endpoint": "find", + "qdata": { + "@count": "1", + "id": "IN(7,5,6,3)" + }, + "result": 4 + }, + "1f4d1ca0da69bed76cd49c742d0d33f9": { + "userId": 1, + "controller": "event", + "endpoint": "findByLocation", + "qdata": { + "@count": "1", + "@from": "2016-12-01", + "@to": "2017-01-31", + "_geoLocation": "GEONEAR(-49.04296875,-21.125497636606266,507955)" + }, + "result": 4 + }, + "dd1b3d76e2e8327b93dd009c5c5d8c91": { + "userId": 1, + "controller": "event", + "endpoint": "find", + "qdata": { + "@select": "id", + "_geoLocation": "GEONEAR(-49.04296875,-21.125497636606266,507955)", + "@order": "name ASC", + "id": "IN(5,7,5,3,7,7,7,7,7,7,7,6,3,6,522)" + }, + "result": [ + { + "id": 3 + }, + { + "id": 5 + }, + { + "id": 6 + }, + { + "id": 7 + }, + { + "id": 522 + } + ] + }, + "cebc39881802386dc3ff8ebb7da8d354": { + "userId": 1, + "controller": "space", + "endpoint": "find", + "qdata": { + "id": "IN(7,8,6,5,4,3,2,1)", + "_geoLocation": "GEONEAR(-49.04296875,-21.125497636606266,507955)", + "@select": "id,name,location", + "@order": "name ASC" + }, + "result": [ + { + "id": 1, + "name": "Space 1", + "location": { + "latitude": "-23.5443493", + "longitude": "-46.6444262" + } + }, + { + "id": 3, + "name": "Space 3", + "location": { + "latitude": "-23.5299146", + "longitude": "-46.6343522" + } + }, + { + "id": 4, + "name": "Space 4", + "location": { + "latitude": "-23.5575987", + "longitude": "-46.6499111" + } + }, + { + "id": 7, + "name": "Space 7", + "location": { + "latitude": "-23.5394312", + "longitude": "-46.6915816" + } + }, + { + "id": 8, + "name": "Space 8", + "location": { + "latitude": "-23.5466151", + "longitude": "-46.6468627" + } + } + ] + }, + "e209bc3b02d2950cf0cb29c9193392cc": { + "userId": 1, + "controller": "space", + "endpoint": "findByEvents", + "qdata": { + "@from": "2016-12-01", + "@to": "2017-01-31", + "_geoLocation": "GEONEAR(-49.04296875,-21.125497636606266,507955)", + "@select": "id,name,location", + "@order": "name ASC" + }, + "result": [ + { + "id": 1, + "name": "Space 1", + "location": { + "latitude": "-23.5443493", + "longitude": "-46.6444262" + } + }, + { + "id": 3, + "name": "Space 3", + "location": { + "latitude": "-23.5299146", + "longitude": "-46.6343522" + } + }, + { + "id": 4, + "name": "Space 4", + "location": { + "latitude": "-23.5575987", + "longitude": "-46.6499111" + } + }, + { + "id": 7, + "name": "Space 7", + "location": { + "latitude": "-23.5394312", + "longitude": "-46.6915816" + } + }, + { + "id": 8, + "name": "Space 8", + "location": { + "latitude": "-23.5466151", + "longitude": "-46.6468627" + } + } + ] + }, + "3feb3ca14bc19a8643775cf79601b3d7": { + "userId": 1, + "controller": "space", + "endpoint": "find", + "qdata": { + "@select": "id,name,shortDescription,location,terms,__metadata", + "_geoLocation": "GEONEAR(-46.6259765625,-29.764377375163114,472173)" + }, + "result": [ + { + "id": 6, + "name": "Space 6", + "shortDescription": "of Staff User 2", + "location": { + "latitude": "-27.5887012", + "longitude": "-48.5070641" + }, + "terms": { + "tag": [], + "area": ["Artesanato", "Arte Digital"] + }, + "__metadata": null + }, + { + "id": 5, + "name": "Space 5", + "shortDescription": "of Staff User 1", + "location": { + "latitude": "-27.5666995", + "longitude": "-48.5102924" + }, + "terms": { + "tag": [], + "area": ["Cultura Negra", "Circo", "M\u00fasica"] + }, + "__metadata": null + }, + { + "id": 2, + "name": "Space 2", + "shortDescription": "of Super Admin 2", + "location": { + "latitude": "-27.5906075", + "longitude": "-48.5129766" + }, + "terms": { + "tag": [], + "area": ["Circo", "Arte de Rua"] + }, + "__metadata": null + } + ] + }, + "31cfe5610a2cd12d49a28dc96ddaeecf": { + "userId": 1, + "controller": "event", + "endpoint": "find", + "qdata": { + "@count": "1", + "id": "IN(5,3,7,522)" + }, + "result": 4 + }, + "2c994fae8bf5f5ed12c3dd7653db39d1": { + "userId": 1, + "controller": "event", + "endpoint": "findByLocation", + "qdata": { + "@count": "1", + "@from": "2016-12-01", + "@to": "2017-01-31", + "_geoLocation": "GEONEAR(-46.6259765625,-29.764377375163114,472173)" + }, + "result": 4 + }, + "f1de5d5260f19f83dbb8a0b3b5548d0b": { + "userId": 1, + "controller": "event", + "endpoint": "find", + "qdata": { + "@select": "id", + "_geoLocation": "GEONEAR(-46.6259765625,-29.764377375163114,472173)", + "@order": "name ASC", + "id": "IN(5,7,5,3,7,7,7,7,7,7,7,6,3,6,522)" + }, + "result": [ + { + "id": 3 + }, + { + "id": 5 + }, + { + "id": 6 + }, + { + "id": 7 + }, + { + "id": 522 + } + ] + }, + "78d63f191760f6ece0ee13d065a12064": { + "userId": 1, + "controller": "space", + "endpoint": "find", + "qdata": { + "id": "IN(7,8,6,5,4,3,2,1)", + "_geoLocation": "GEONEAR(-46.6259765625,-29.764377375163114,472173)", + "@select": "id,name,location", + "@order": "name ASC" + }, + "result": [ + { + "id": 2, + "name": "Space 2", + "location": { + "latitude": "-27.5906075", + "longitude": "-48.5129766" + } + }, + { + "id": 5, + "name": "Space 5", + "location": { + "latitude": "-27.5666995", + "longitude": "-48.5102924" + } + }, + { + "id": 6, + "name": "Space 6", + "location": { + "latitude": "-27.5887012", + "longitude": "-48.5070641" + } + } + ] + }, + "2d975b96a565a33e6cbdac408706c953": { + "userId": 1, + "controller": "space", + "endpoint": "findByEvents", + "qdata": { + "@from": "2016-12-01", + "@to": "2017-01-31", + "_geoLocation": "GEONEAR(-46.6259765625,-29.764377375163114,472173)", + "@select": "id,name,location", + "@order": "name ASC" + }, + "result": [ + { + "id": 2, + "name": "Space 2", + "location": { + "latitude": "-27.5906075", + "longitude": "-48.5129766" + } + }, + { + "id": 5, + "name": "Space 5", + "location": { + "latitude": "-27.5666995", + "longitude": "-48.5102924" + } + }, + { + "id": 6, + "name": "Space 6", + "location": { + "latitude": "-27.5887012", + "longitude": "-48.5070641" + } + } + ] + }, + "fd168ba56db78dba068ccd095032ef22": { + "userId": 1, + "controller": "space", + "endpoint": "find", + "qdata": { + "_geoLocation": "GEONEAR(-46.6259765625,-29.764377375163114,472173)", + "@select": "id,name,location", + "@order": "name ASC" + }, + "result": [ + { + "id": 2, + "name": "Space 2", + "location": { + "latitude": "-27.5906075", + "longitude": "-48.5129766" + } + }, + { + "id": 5, + "name": "Space 5", + "location": { + "latitude": "-27.5666995", + "longitude": "-48.5102924" + } + }, + { + "id": 6, + "name": "Space 6", + "location": { + "latitude": "-27.5887012", + "longitude": "-48.5070641" + } + } + ] + }, + "46133b7ba6a48aaba39ce7fa5ef14947": { + "userId": 1, + "controller": "agent", + "endpoint": "find", + "qdata": { + "_geoLocation": "GEONEAR(-46.6259765625,-29.764377375163114,472173)", + "@select": "id,name,location", + "@order": "name ASC" + }, + "result": [] + }, + "aa80e49a2f0390543d59fc8f40179545": { + "userId": 1, + "controller": "agent", + "endpoint": "find", + "qdata": { + "_geoLocation": "GEONEAR(-52.64648437499999,-17.853290114098,1131934)", + "@select": "id,name,location", + "@order": "name ASC" + }, + "result": [ + { + "id": 3, + "name": "Admin 1", + "location": { + "latitude": "-23.546179", + "longitude": "-46.6451146" + } + }, + { + "id": 4, + "name": "Admin 2", + "location": { + "latitude": "-23.5367427", + "longitude": "-46.6587759" + } + }, + { + "id": 356, + "name": "New 1", + "location": { + "latitude": "-23.5419764", + "longitude": "-46.6465663" + } + }, + { + "id": 357, + "name": "New 2", + "location": { + "latitude": "-23.533808", + "longitude": "-46.6569978" + } + }, + { + "id": 7, + "name": "Normal User 1", + "location": { + "latitude": "-23.5335215", + "longitude": "-46.6569949" + } + } + ] + }, + "d7951361a03b33d37c7b08b5c4d08b83": { + "userId": 1, + "controller": "agent", + "endpoint": "find", + "qdata": { + "_geoLocation": "GEONEAR(-52.64648437499999,-17.853290114098,1131934)", + "@select": "id,singleUrl,name,type,shortDescription,terms", + "@files": "(avatar.avatarMedium):url", + "@page": "1", + "@limit": "10", + "@order": "name ASC" + }, + "result": [ + { + "@files:avatar.avatarMedium": { + "url": "http://localhost/files/agent/3/file/18/imagem1-edddfc71895c873e781944d65e9fc3e0.jpeg" + }, + "id": 3, + "singleUrl": "http://localhost/agente/3/", + "name": "Admin 1", + "type": { + "id": 1, + "name": "Individual" + }, + "shortDescription": "short description", + "terms": { + "tag": [], + "area": ["Arquitetura-Urbanismo"] + } + }, + { + "@files:avatar.avatarMedium": { + "url": "http://localhost/files/agent/4/file/22/imagem2-6086f8a4969eda83f4fe75a5bd40603d.jpeg" + }, + "id": 4, + "singleUrl": "http://localhost/agente/4/", + "name": "Admin 2", + "type": { + "id": 1, + "name": "Individual" + }, + "shortDescription": "short description", + "terms": { + "tag": [], + "area": ["Arquivo"] + } + }, + { + "id": 356, + "singleUrl": "http://localhost/agente/356/", + "name": "New 1", + "type": { + "id": 1, + "name": "Individual" + }, + "shortDescription": "descricao curta", + "terms": { + "tag": ["TAGUEADO"], + "area": ["Arte Digital"] + } + }, + { + "id": 357, + "singleUrl": "http://localhost/agente/357/", + "name": "New 2", + "type": { + "id": 1, + "name": "Individual" + }, + "shortDescription": "curta", + "terms": { + "tag": ["TAGUEADO"], + "area": ["Arte de Rua"] + } + }, + { + "@files:avatar.avatarMedium": { + "url": "http://localhost/files/agent/7/file/26/imagem4-570b654c331f46e4d3f3128fc55722d3.jpeg" + }, + "id": 7, + "singleUrl": "http://localhost/agente/7/", + "name": "Normal User 1", + "type": { + "id": 1, + "name": "Individual" + }, + "shortDescription": "short description", + "terms": { + "tag": [], + "area": ["Arquivo", "Arte de Rua", "Cinema"] + } + } + ] + }, + "5d26edeb90af517520b4843e93d17159": { + "userId": 1, + "controller": "agent", + "endpoint": "find", + "qdata": { + "@select": "id,singleUrl,name,type,shortDescription,terms", + "@files": "(avatar.avatarMedium):url", + "@page": "1", + "@limit": "10", + "@order": "name ASC" + }, + "result": [ + { + "@files:avatar.avatarMedium": { + "url": "http://localhost/files/agent/3/file/18/imagem1-edddfc71895c873e781944d65e9fc3e0.jpeg" + }, + "id": 3, + "singleUrl": "http://localhost/agente/3/", + "name": "Admin 1", + "type": { + "id": 1, + "name": "Individual" + }, + "shortDescription": "short description", + "terms": { + "tag": [], + "area": ["Arquitetura-Urbanismo"] + } + }, + { + "@files:avatar.avatarMedium": { + "url": "http://localhost/files/agent/4/file/22/imagem2-6086f8a4969eda83f4fe75a5bd40603d.jpeg" + }, + "id": 4, + "singleUrl": "http://localhost/agente/4/", + "name": "Admin 2", + "type": { + "id": 1, + "name": "Individual" + }, + "shortDescription": "short description", + "terms": { + "tag": [], + "area": ["Arquivo"] + } + }, + { + "id": 356, + "singleUrl": "http://localhost/agente/356/", + "name": "New 1", + "type": { + "id": 1, + "name": "Individual" + }, + "shortDescription": "descricao curta", + "terms": { + "tag": ["TAGUEADO"], + "area": ["Arte Digital"] + } + }, + { + "id": 357, + "singleUrl": "http://localhost/agente/357/", + "name": "New 2", + "type": { + "id": 1, + "name": "Individual" + }, + "shortDescription": "curta", + "terms": { + "tag": ["TAGUEADO"], + "area": ["Arte de Rua"] + } + }, + { + "@files:avatar.avatarMedium": { + "url": "http://localhost/files/agent/7/file/26/imagem4-570b654c331f46e4d3f3128fc55722d3.jpeg" + }, + "id": 7, + "singleUrl": "http://localhost/agente/7/", + "name": "Normal User 1", + "type": { + "id": 1, + "name": "Individual" + }, + "shortDescription": "short description", + "terms": { + "tag": [], + "area": ["Arquivo", "Arte de Rua", "Cinema"] + } + }, + { + "@files:avatar.avatarMedium": { + "url": "http://localhost/files/agent/8/file/30/imagem3-8e0c7f12f218eec531833cebb8deee4e.jpeg" + }, + "id": 8, + "singleUrl": "http://localhost/agente/8/", + "name": "Normal User 2", + "type": { + "id": 1, + "name": "Individual" + }, + "shortDescription": "short description", + "terms": { + "tag": [], + "area": ["Arquitetura-Urbanismo"] + } + }, + { + "id": 5, + "singleUrl": "http://localhost/agente/5/", + "name": "Staff User 1", + "type": { + "id": 1, + "name": "Individual" + }, + "shortDescription": "short description", + "terms": { + "tag": [], + "area": ["Artesanato"] + } + }, + { + "id": 6, + "singleUrl": "http://localhost/agente/6/", + "name": "Staff User 2", + "type": { + "id": 1, + "name": "Individual" + }, + "shortDescription": "short description", + "terms": { + "tag": [], + "area": ["Artes Visuais"] + } + }, + { + "id": 1, + "singleUrl": "http://localhost/agente/1/", + "name": "Super Admin 1", + "type": { + "id": 1, + "name": "Individual" + }, + "shortDescription": "short description", + "terms": { + "tag": [], + "area": ["Antropologia"] + } + }, + { + "id": 2, + "singleUrl": "http://localhost/agente/2/", + "name": "Super Admin 2", + "type": { + "id": 1, + "name": "Individual" + }, + "shortDescription": "short description", + "terms": { + "tag": [], + "area": ["Arqueologia"] + } + } + ] + }, + "57412c92a027024d1a29b4c78b49aca0": { + "userId": 1, + "controller": "seal", + "endpoint": "find", + "qdata": { + "@select": "id,name,status, singleUrl", + "@permissions": "@control", + "@files": "(avatar.avatarMedium):url", + "@ORDER": "createTimestamp DESC" + }, + "result": [ + { + "id": 1, + "name": "Selo Mapas", + "status": 1, + "singleUrl": "http://localhost/selo/1/" + } + ] + }, + "16e2bdd316a7a25856e19a5a1d2f61c5": { + "userId": 1, + "controller": "space", + "endpoint": "findOne", + "qdata": { + "id": "EQ(1)", + "@select": "id,singleUrl,name,subTitle,type,shortDescription,terms,project.name,project.singleUrl,endereco,endereco,acessibilidade", + "@files": "(avatar.avatarSmall):url" + }, + "result": { + "@files:avatar.avatarSmall": { + "url": "http://localhost/files/space/1/file/14/imagem2-1d80d1d4d8de1e61294630edb215f103.jpeg" + }, + "id": 1, + "singleUrl": "http://localhost/espaco/1/", + "name": "Space 1", + "subTitle": null, + "type": { + "id": 10, + "name": "Cine itinerante" + }, + "shortDescription": "of Super Admin 1", + "terms": { + "tag": [], + "area": ["Jogos Eletr\u00f4nicos", "Filosofia", "Esporte"] + }, + "project": { + "name": null, + "singleUrl": null + }, + "endereco": "Rua Ara\u00fajo, 22 , Rep\u00fablica, 01220-020, S\u00e3o Paulo, SP", + "acessibilidade": null + } + }, + "ca6c17b4f6f37d204a3f34733973fb16": { + "userId": 1, + "controller": "event", + "endpoint": "find", + "qdata": { + "@select": "id,singleUrl,name,subTitle,type,shortDescription,terms,project.name,project.singleUrl,endereco,classificacaoEtaria", + "@order": "name ASC", + "@files": "(avatar.avatarSmall):url", + "id": "IN(6,3)" + }, + "result": [ + { + "id": 3, + "singleUrl": "http://localhost/evento/3/", + "name": "Event 3", + "subTitle": null, + "type": { + "id": 1, + "name": "Padr\u00e3o" + }, + "shortDescription": "of Admin 1", + "terms": { + "tag": [], + "linguagem": ["Cinema"] + }, + "project": { + "name": null, + "singleUrl": null + }, + "endereco": null, + "classificacaoEtaria": "Livre" + }, + { + "@files:avatar.avatarSmall": { + "url": "http://localhost/files/event/6/file/38/imagem3-ed0f3136f28c0cbcea89572e0bf16825.jpeg" + }, + "id": 6, + "singleUrl": "http://localhost/evento/6/", + "name": "Event 6", + "subTitle": null, + "type": { + "id": 1, + "name": "Padr\u00e3o" + }, + "shortDescription": "of Staff User 2", + "terms": { + "tag": [], + "linguagem": [] + }, + "project": { + "name": null, + "singleUrl": null + }, + "endereco": null, + "classificacaoEtaria": null + } + ] + }, + "1ed4763229de42743e2826613c9dcbee": { + "userId": 1, + "controller": "project", + "endpoint": "find", + "qdata": { + "name": "ilike(**)", + "@select": "id,name,terms,type", + "@limit": "10", + "@page": "1", + "@order": "name ASC", + "@files": "(avatar.avatarSmall):url", + "@permissions": "requestEventRelation", + "_": "1481854772876" + }, + "result": [ + { + "id": 1, + "name": "Project 1", + "terms": { + "tag": [] + }, + "type": { + "id": 1, + "name": "Festival" + } + }, + { + "id": 2, + "name": "Project 2", + "terms": { + "tag": [] + }, + "type": { + "id": 1, + "name": "Festival" + } + }, + { + "id": 3, + "name": "Project 3", + "terms": { + "tag": [] + }, + "type": { + "id": 1, + "name": "Festival" + } + }, + { + "id": 4, + "name": "Project 4", + "terms": { + "tag": [] + }, + "type": { + "id": 1, + "name": "Festival" + } + }, + { + "id": 5, + "name": "Project 5", + "terms": { + "tag": [] + }, + "type": { + "id": 1, + "name": "Festival" + } + }, + { + "id": 6, + "name": "Project 6", + "terms": { + "tag": [] + }, + "type": { + "id": 1, + "name": "Festival" + } + }, + { + "id": 7, + "name": "Project 7", + "terms": { + "tag": [] + }, + "type": { + "id": 1, + "name": "Festival" + } + }, + { + "id": 8, + "name": "Project 8", + "terms": { + "tag": [] + }, + "type": { + "id": 1, + "name": "Festival" + } + } + ] + }, + "d462dcbf06696f7869094799d997d3bd": { + "userId": 1, + "controller": "agent", + "endpoint": "find", + "qdata": { + "name": "ilike(**)", + "@select": "id,name,terms,type,shortDescription", + "@limit": "10", + "@page": "1", + "@order": "name ASC", + "@files": "(avatar.avatarSmall):url", + "id": "!in(3)", + "@permissions": "@control", + "_": "1481854772877" + }, + "result": [ + { + "@files:avatar.avatarSmall": { + "url": "http://localhost/files/agent/4/file/22/imagem2-1d80d1d4d8de1e61294630edb215f103.jpeg" + }, + "id": 4, + "name": "Admin 2", + "terms": { + "tag": [], + "area": ["Arquivo"] + }, + "type": { + "id": 1, + "name": "Individual" + }, + "shortDescription": "short description" + }, + { + "id": 356, + "name": "New 1", + "terms": { + "tag": ["TAGUEADO"], + "area": ["Arte Digital"] + }, + "type": { + "id": 1, + "name": "Individual" + }, + "shortDescription": "descricao curta" + }, + { + "id": 357, + "name": "New 2", + "terms": { + "tag": ["TAGUEADO"], + "area": ["Arte de Rua"] + }, + "type": { + "id": 1, + "name": "Individual" + }, + "shortDescription": "curta" + }, + { + "@files:avatar.avatarSmall": { + "url": "http://localhost/files/agent/7/file/26/imagem4-4e0f09ec602df7f0dbe0ffa44c19eb5e.jpeg" + }, + "id": 7, + "name": "Normal User 1", + "terms": { + "tag": [], + "area": ["Arquivo", "Arte de Rua", "Cinema"] + }, + "type": { + "id": 1, + "name": "Individual" + }, + "shortDescription": "short description" + }, + { + "@files:avatar.avatarSmall": { + "url": "http://localhost/files/agent/8/file/30/imagem3-ed0f3136f28c0cbcea89572e0bf16825.jpeg" + }, + "id": 8, + "name": "Normal User 2", + "terms": { + "tag": [], + "area": ["Arquitetura-Urbanismo"] + }, + "type": { + "id": 1, + "name": "Individual" + }, + "shortDescription": "short description" + }, + { + "id": 5, + "name": "Staff User 1", + "terms": { + "tag": [], + "area": ["Artesanato"] + }, + "type": { + "id": 1, + "name": "Individual" + }, + "shortDescription": "short description" + }, + { + "id": 6, + "name": "Staff User 2", + "terms": { + "tag": [], + "area": ["Artes Visuais"] + }, + "type": { + "id": 1, + "name": "Individual" + }, + "shortDescription": "short description" + }, + { + "id": 1, + "name": "Super Admin 1", + "terms": { + "tag": [], + "area": ["Antropologia"] + }, + "type": { + "id": 1, + "name": "Individual" + }, + "shortDescription": "short description" + }, + { + "id": 2, + "name": "Super Admin 2", + "terms": { + "tag": [], + "area": ["Arqueologia"] + }, + "type": { + "id": 1, + "name": "Individual" + }, + "shortDescription": "short description" + } + ] + }, + "3073720a2d0bbaf406d8cc56b889cdf5": { + "userId": 8, + "controller": "notification", + "endpoint": "find", + "qdata": { + "@select": "id,status,isRequest,createTimestamp,message,approveUrl,request.permissionTo.approve,request.permissionTo.reject,request.requesterUser.id", + "user": "EQ(@me)", + "@ORDER": "createTimestamp DESC" + }, + "result": [ + { + "id": 29, + "status": 1, + "isRequest": false, + "createTimestamp": { + "date": "2016-12-16 00:19:59.000000", + "timezone_type": 3, + "timezone": "America/Sao_Paulo" + }, + "message": "Seu \u00faltimo acesso foi em 21/05/2014, atualize suas informa\u00e7\u00f5es se necess\u00e1rio.", + "approveUrl": "http://localhost/aprovar-notificacao/29/", + "request": { + "permissionTo": { + "approve": null, + "reject": null + }, + "requesterUser": { + "id": null + } + } + }, + { + "id": 13, + "status": 1, + "isRequest": true, + "createTimestamp": { + "date": "2016-12-15 23:57:42.000000", + "timezone_type": 3, + "timezone": "America/Sao_Paulo" + }, + "message": "New 2 quer relacionar o agente Normal User 2 ao evento Novo Evento.", + "approveUrl": "http://localhost/aprovar-notificacao/13/", + "request": { + "permissionTo": { + "approve": true, + "reject": true + }, + "requesterUser": { + "id": 11 + } + } + } + ] + }, + "d81ecf2aa8836863ba32bee70894e0e7": { + "userId": 8, + "controller": "event", + "endpoint": "find", + "qdata": { + "@count": 1, + "id": "IN(5,3,6,522)" + }, + "result": 4 + }, + "898dbb3f9570df4c66a4bed28da5a19e": { + "userId": 8, + "controller": "event", + "endpoint": "find", + "qdata": { + "@count": 1, + "@verified": "IN(1)", + "id": "IN(5,3,6,522)" + }, + "result": 2 + }, + "ae880dbc16970e0a0f3b69ed8a67700e": { + "userId": 8, + "controller": "event", + "endpoint": "find", + "qdata": { + "@verified": "IN(1)", + "@select": "id", + "id": "IN(5,3,6,522)" + }, + "result": [ + { + "id": 3 + }, + { + "id": 5 + } + ] + }, + "cd372bc3daadb070d3c02a1a6d61f240": { + "userId": 8, + "controller": "agent", + "endpoint": "find", + "qdata": { + "@select": "id", + "@verified": "IN(1)" + }, + "result": [ + { + "id": 5 + }, + { + "id": 7 + }, + { + "id": 1 + }, + { + "id": 3 + } + ] + }, + "887975e7b3275068b648ac11c5f7dae0": { + "userId": 8, + "controller": "space", + "endpoint": "find", + "qdata": { + "@count": 1 + }, + "result": 8 + }, + "924af6e102f6a52b3408c67a1834f533": { + "userId": 8, + "controller": "space", + "endpoint": "find", + "qdata": { + "@count": 1, + "@verified": "IN(1)" + }, + "result": 4 + }, + "805df4e79db5c412f7025fdcca19ee4f": { + "userId": 8, + "controller": "space", + "endpoint": "find", + "qdata": { + "@select": "id", + "@verified": "IN(1)" + }, + "result": [ + { + "id": 1 + }, + { + "id": 7 + }, + { + "id": 5 + }, + { + "id": 3 + } + ] + }, + "76329a07e4e529c7256b0451628f794d": { + "userId": 8, + "controller": "project", + "endpoint": "find", + "qdata": { + "@count": 1 + }, + "result": 8 + }, + "dc8312c7ee464b8c010bc9777b108f95": { + "userId": 8, + "controller": "project", + "endpoint": "find", + "qdata": { + "@count": 1, + "@verified": "IN(1)" + }, + "result": 4 + }, + "83b1bcb38835c90dd4fb28b3984e43b8": { + "userId": 8, + "controller": "project", + "endpoint": "find", + "qdata": { + "@select": "id", + "@verified": "IN(1)" + }, + "result": [ + { + "id": 1 + }, + { + "id": 3 + }, + { + "id": 5 + }, + { + "id": 7 + } + ] + }, + "bb446ee6713499e68496013d971c6124": { + "userId": 8, + "controller": "event", + "endpoint": "find", + "qdata": { + "@select": "name,type,status,terms,classificacaoEtaria,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,createTimestamp", + "@files": "(avatar.avatarSmall):url", + "user": "EQ(8)", + "status": "EQ(1)", + "@limit": 50, + "@order": "name ASC", + "@page": 1 + }, + "result": [ + { + "name": "Event 8", + "type": { + "id": 1, + "name": "Padr\u00e3o" + }, + "status": 1, + "terms": { + "tag": [], + "linguagem": [] + }, + "classificacaoEtaria": null, + "singleUrl": "http://localhost/evento/8/", + "editUrl": "http://localhost/eventos/edita/8/", + "deleteUrl": "http://localhost/eventos/apaga/8/", + "publishUrl": "http://localhost/eventos/publish/8/", + "unpublishUrl": "http://localhost/eventos/unpublish/8/", + "createTimestamp": { + "date": "2014-05-21 18:04:44.000000", + "timezone_type": 3, + "timezone": "America/Sao_Paulo" + } + } + ] + }, + "ff3e846c1e76ee78acfd341f9d886904": { + "userId": 8, + "controller": "event", + "endpoint": "find", + "qdata": { + "@select": "name,type,status,terms,classificacaoEtaria,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,createTimestamp", + "@files": "(avatar.avatarSmall):url", + "user": "EQ(8)", + "status": "EQ(0)", + "@permissions": "view" + }, + "result": [] + }, + "4b0a3188d6397ee24bf9ceb23cb7f5ff": { + "userId": 8, + "controller": "event", + "endpoint": "find", + "qdata": { + "@select": "name,type,status,terms,classificacaoEtaria,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,createTimestamp", + "@files": "(avatar.avatarSmall):url", + "user": "EQ(8)", + "status": "EQ(-10)", + "@permissions": "view" + }, + "result": [] + }, + "d295aed105d3488ab3cf21776c08cbfa": { + "userId": 8, + "controller": "seal", + "endpoint": "find", + "qdata": { + "@select": "id,name,status, singleUrl", + "@permissions": "@control", + "@files": "(avatar.avatarMedium):url", + "@ORDER": "createTimestamp DESC" + }, + "result": [] + }, + "8e039c2ae6efbf28efd8cb8ebd554024": { + "userId": 8, + "controller": "agent", + "endpoint": "find", + "qdata": { + "name": "ilike(**)", + "@select": "id,name,terms,type,shortDescription", + "@limit": "10", + "@page": "1", + "@order": "name ASC", + "@files": "(avatar.avatarSmall):url", + "id": "!in(8)", + "@permissions": "@control", + "_": "1481854807131" + }, + "result": [] + }, + "e6460dcc184447f969c52871f2a0ac5a": { + "userId": 11, + "controller": "agent", + "endpoint": "find", + "qdata": { + "name": "ilike(**)", + "@select": "id,name,terms,type,shortDescription", + "@limit": "10", + "@page": "1", + "@order": "name ASC", + "@files": "(avatar.avatarSmall):url", + "id": "!in(357)", + "@permissions": "@control", + "_": "1481854842708" + }, + "result": [] + } +} diff --git a/tests/bootstrap.php b/tests/bootstrap.php new file mode 100644 index 0000000000..37f617dd02 --- /dev/null +++ b/tests/bootstrap.php @@ -0,0 +1,101 @@ + 'get', +// 'PATH_INFO' => '/', +// 'SERVER_NAME' => 'local.dev', +// ))); + + +// $config = include __DIR__ . '/../src/protected/application/conf/conf-test.php'; + +// if(isset($_ENV['MAPASCULTURAIS_CONFIG_FILE'])){ +// $config = include __DIR__ . '/../src/protected/application/conf/'. $_ENV['MAPASCULTURAIS_CONFIG_FILE']; +// }else if(isset($_SERVER['MAPASCULTURAIS_CONFIG_FILE'])){ +// $config = include __DIR__ . '/../src/protected/application/conf/' . $_SERVER['MAPASCULTURAIS_CONFIG_FILE']; +// } + + +// $config = require_once("config.php"); + +// require_once(__DIR__ . "/../../src/load-translation.php"); + +// create the App instance +// $app = \MapasCulturais\App::i()->init($config); +// $app->register(); + +// require __DIR__ . '/classes/TestCase.php'; +// require __DIR__ . '/classes/TestFactory.php'; + +/* End of file bootstrap.php */ diff --git a/tests/config.php b/tests/config.php new file mode 100644 index 0000000000..7020c26b06 --- /dev/null +++ b/tests/config.php @@ -0,0 +1,50 @@ + '\MapasCulturais\Themes\BaseV2', + 'base.url' => 'http://localhost/', + 'site.url' => 'http://localhost/', + 'app.log.translations' => false, + 'slim.log.level' => 3, + 'slim.log.enabled' => false, + // 'app.log.query' => true, + 'slim.debug' => false, + 'auth.provider' => 'Test', + + 'auth.config' => array( + 'filename' => '/tmp/mapasculturais-tests-authenticated-user.id' + ), + + // 'app.log.query' => true, +// 'app.log.apiDql' => true, + + + 'doctrine.isDev' => false, + + 'userIds' => array( + 'superAdmin' => array(1, 2), + // 'admin' => 2, +// 'staff' => 3, +// 'normal' => 4, + + 'admin' => array(3, 4), + 'staff' => array(5, 6), + 'normal' => array(7, 8), + ), + + // disable cache + 'db.host' => 'db', + + 'app.usePermissionsCache' => false, + 'app.chace' => new \Symfony\Component\Cache\Adapter\ArrayAdapter() + // 'app.cache' => function_exists('apc_store') ? new \Doctrine\Common\Cache\ApcCache() : new \Doctrine\Common\Cache\ArrayCache(), + ) +); diff --git a/tests/docker/config.php b/tests/docker/config.php deleted file mode 100644 index 34a4a2c7ff..0000000000 --- a/tests/docker/config.php +++ /dev/null @@ -1,52 +0,0 @@ - 'SpCultura', - 'base.url' => 'http://localhost:8888/', - 'site.url' => 'http://localhost:8888/', - 'app.log.translations' => false, - 'slim.log.level' => Log::DEBUG, - 'slim.log.enabled' => false, -// 'app.log.query' => true, - 'slim.debug' => false, - 'auth.provider' => 'Test', - - 'auth.config' => array( - 'filename' => '/tmp/mapasculturais-tests-authenticated-user.id' - ), - -// 'app.log.query' => true, -// 'app.log.apiDql' => true, - - - 'doctrine.isDev' => false, - - 'doctrine.database' => array( - 'dbname' => 'mapas', - 'user' => 'mapas', - 'password' => 'mapas', - 'host' => 'db', - - ), - - 'userIds' => array( - 'superAdmin' => array(1,2), -// 'admin' => 2, -// 'staff' => 3, -// 'normal' => 4, - - 'admin' => array(3,4), - 'staff' => array(5,6), - 'normal' => array(7,8), - ), - - // disable cache - - 'app.usePermissionsCache' => false, - 'app.chace' => new \Doctrine\Common\Cache\ArrayCache() -// 'app.cache' => function_exists('apc_store') ? new \Doctrine\Common\Cache\ApcCache() : new \Doctrine\Common\Cache\ArrayCache(), - ) -); diff --git a/tests/src/files/.gitignore b/tests/integration/.gitkeep similarity index 100% rename from tests/src/files/.gitignore rename to tests/integration/.gitkeep diff --git a/tests/src/ModuleAgendaSingleTest.php b/tests/src/ModuleAgendaSingleTest.php deleted file mode 100644 index 2441488ee7..0000000000 --- a/tests/src/ModuleAgendaSingleTest.php +++ /dev/null @@ -1,21 +0,0 @@ -app->repo($class)->findAll(); - foreach($entities as $entity){ - if($entity->status > 0){ - $url = $entity->controller->createUrl('agendaSingle', [$entity->id]) . '?from=1900-01-01&to=2020-12-31'; - $this->assertGet200($url, 'agenda single status code 200: ' . $url); - } - } - - } - } - } -} \ No newline at end of file diff --git a/tests/src/RoutesTest.php b/tests/src/RoutesTest.php deleted file mode 100644 index ddc49b8944..0000000000 --- a/tests/src/RoutesTest.php +++ /dev/null @@ -1,62 +0,0 @@ -user = null; - - $this->assertGet200('/', 'assert that home status code is 200'); - } - - function testPages(){ - $this->user = null; - - $this->assertGet200('/sobre/', 'assert that about page status code is 200'); - $this->assertGet200('/como-usar/', 'assert that about page status code is 200'); - } - - function testSearch(){ - $this->user = null; - - $this->assertGet200('/busca/', 'assert that about page status code is 200'); - } - - function test404(){ - $this->user = null; - - $this->assertGet404('/' . uniqid('404-'), 'assert that code is 404'); - } - - function testEntitiesRoutesWithGuest(){ - $this->user = null; - - foreach($this->entities as $class => $name){ - $entities = $this->app->repo($class)->findAll(); - - $e = $entities[0]; - // foreach($entities as $e){ - $this->assertGet200($e->singleUrl, "assert that the status code of single of {$class} with id {$e->id} is 200 for guest users"); - $this->assertGet403($e->deleteUrl, "assert that the status code of delete url of {$class} with id {$e->id} is 401 for guest users"); - $this->assertGet401($e->editUrl, "assert that the status code of edit url of {$class} with id {$e->id} is 401 for guest users"); - // } - } - } - - function testEntitiesRoutesWithNormalUser(){ - $user = $this->getUser('normal'); - $this->user = $user; - - foreach($this->entities as $class => $name){ - $entities = $user->$name; - - $e = $entities[0]; - // foreach($entities as $e){ - $this->assertGet200($e->singleUrl, "assert that the status code of single of my {$class} with id {$e->id} is 200"); - $this->assertGet200($e->editUrl, "assert that the status code of edit url of my {$class} with id {$e->id} is 200"); - // } - } - } - -} diff --git a/tests/src/api-queries.json b/tests/src/api-queries.json deleted file mode 100644 index f9783882b4..0000000000 --- a/tests/src/api-queries.json +++ /dev/null @@ -1,7340 +0,0 @@ -{ - "70d6211b3aee02e6eda6bd234c91d574": { - "userId": 3, - "controller": "space", - "endpoint": "find", - "qdata": { - "@count": 1, - "user": "EQ(3)" - }, - "result": 1 - }, - "8d27f4d052027c15f3d23d4f0db4f9af": { - "userId": 3, - "controller": "agent", - "endpoint": "find", - "qdata": { - "@count": 1, - "user": "EQ(3)" - }, - "result": 1 - }, - "29a970e223bc0b514e9003f6a4454930": { - "userId": 3, - "controller": "event", - "endpoint": "find", - "qdata": { - "@count": 1, - "user": "EQ(3)" - }, - "result": 1 - }, - "96f6f29068080e62dd3bd2dc1d5bc418": { - "userId": 3, - "controller": "project", - "endpoint": "find", - "qdata": { - "@count": 1, - "user": "EQ(3)" - }, - "result": 1 - }, - "ee276ab1f1dc58e135b11966ac7e20d6": { - "userId": 3, - "controller": "seal", - "endpoint": "find", - "qdata": { - "@count": 1, - "user": "EQ(3)" - }, - "result": 0 - }, - "0f158555e18f4bd115c1adf851a59ae7": { - "userId": 3, - "controller": "notification", - "endpoint": "find", - "qdata": { - "@select": "id,status,isRequest,createTimestamp,message,approveUrl,request.permissionTo.approve,request.permissionTo.reject,request.requesterUser.id", - "user": "EQ(@me)", - "@ORDER": "createTimestamp DESC" - }, - "result": [ - { - "id": 1, - "status": 1, - "isRequest": false, - "createTimestamp": { - "date": "2016-12-15 11:57:24.000000", - "timezone_type": 3, - "timezone": "America\/Sao_Paulo" - }, - "message": "Seu \u00faltimo acesso foi em 21\/05\/2014<\/b>, atualize suas informa\u00e7\u00f5es se necess\u00e1rio.", - "approveUrl": "http:\/\/localhost:8888\/aprovar-notificacao\/1\/", - "request": { - "permissionTo": { - "approve": null, - "reject": null - }, - "requesterUser": { - "id": null - } - } - } - ] - }, - "f124905921d9c46cc5007aa649a46178": { - "userId": 3, - "controller": "event", - "endpoint": "find", - "qdata": { - "@select": "name,type,status,terms,classificacaoEtaria,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,createTimestamp", - "@files": "(avatar.avatarSmall):url", - "user": "EQ(3)", - "status": "EQ(1)", - "@limit": 50, - "@order": "name ASC", - "@page": 1 - }, - "result": [ - { - "name": "Event 3", - "type": { - "id": 1, - "name": "Padr\u00e3o" - }, - "status": 1, - "terms": { - "tag": [], - "linguagem": [ - "Cinema" - ] - }, - "classificacaoEtaria": "Livre", - "singleUrl": "http:\/\/localhost:8888\/evento\/3\/", - "editUrl": "http:\/\/localhost:8888\/eventos\/edita\/3\/", - "deleteUrl": "http:\/\/localhost:8888\/eventos\/apaga\/3\/", - "publishUrl": "http:\/\/localhost:8888\/eventos\/publish\/3\/", - "unpublishUrl": "http:\/\/localhost:8888\/eventos\/unpublish\/3\/", - "createTimestamp": { - "date": "2014-05-21 18:04:44.000000", - "timezone_type": 3, - "timezone": "America\/Sao_Paulo" - } - } - ] - }, - "5ba7025b865270fd6378ff5f04ad9a12": { - "userId": 3, - "controller": "event", - "endpoint": "find", - "qdata": { - "@select": "name,type,status,terms,classificacaoEtaria,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,createTimestamp", - "@files": "(avatar.avatarSmall):url", - "user": "EQ(3)", - "status": "EQ(0)", - "@permissions": "view" - }, - "result": [] - }, - "ce9597826a0f3b306861556de6548d25": { - "userId": 3, - "controller": "event", - "endpoint": "find", - "qdata": { - "@select": "name,type,status,terms,classificacaoEtaria,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,createTimestamp", - "@files": "(avatar.avatarSmall):url", - "user": "EQ(3)", - "status": "EQ(-10)", - "@permissions": "view" - }, - "result": [] - }, - "a5d8edc0155af4efed61de41217feec6": { - "userId": 3, - "controller": "space", - "endpoint": "find", - "qdata": { - "@select": "name,type,status,terms,endereco,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,acessibilidade,createTimestamp", - "@files": "(avatar.avatarSmall):url", - "user": "EQ(3)", - "status": "EQ(1)", - "@limit": 50, - "@order": "name ASC", - "@page": 1 - }, - "result": [ - { - "name": "Space 3", - "type": { - "id": 10, - "name": "Cine itinerante" - }, - "status": 1, - "terms": { - "tag": [], - "area": [ - "Jogos Eletr\u00f4nicos", - "Arte Digital" - ] - }, - "endereco": "Rua Tr\u00eas Rios, 20 , Bom Retiro, 01123-000, S\u00e3o Paulo, SP", - "singleUrl": "http:\/\/localhost:8888\/espaco\/3\/", - "editUrl": "http:\/\/localhost:8888\/espacos\/edita\/3\/", - "deleteUrl": "http:\/\/localhost:8888\/espacos\/apaga\/3\/", - "publishUrl": "http:\/\/localhost:8888\/espacos\/publish\/3\/", - "unpublishUrl": "http:\/\/localhost:8888\/espacos\/unpublish\/3\/", - "acessibilidade": "Sim", - "createTimestamp": { - "date": "2014-05-21 18:04:38.000000", - "timezone_type": 3, - "timezone": "America\/Sao_Paulo" - } - } - ] - }, - "66defaba013770d11b393dfa9b9d8eaf": { - "userId": 3, - "controller": "space", - "endpoint": "find", - "qdata": { - "@select": "name,type,status,terms,endereco,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,acessibilidade,createTimestamp", - "@files": "(avatar.avatarSmall):url", - "user": "EQ(3)", - "status": "EQ(0)", - "@permissions": "view" - }, - "result": [] - }, - "d9ed82fd48ea584a3a68dc388c43cf2a": { - "userId": 3, - "controller": "space", - "endpoint": "find", - "qdata": { - "@select": "name,type,status,terms,endereco,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,acessibilidade,createTimestamp", - "@files": "(avatar.avatarSmall):url", - "user": "EQ(3)", - "status": "EQ(-10)", - "@permissions": "view" - }, - "result": [] - }, - "3b864fa6568dd5b42c0465a259191e8b": { - "userId": 3, - "controller": "event", - "endpoint": "find", - "qdata": { - "@count": 1, - "id": "IN(5,3,6,522)" - }, - "result": 4 - }, - "fdd2498508e3c5cd093d5be8dac55876": { - "userId": 3, - "controller": "event", - "endpoint": "find", - "qdata": { - "@count": 1, - "@verified": "IN(1)", - "id": "IN(5,3,6,522)" - }, - "result": 2 - }, - "9be2aca85b5ecd7dcea1ceedd7175c29": { - "userId": 3, - "controller": "event", - "endpoint": "find", - "qdata": { - "@verified": "IN(1)", - "@select": "id", - "id": "IN(5,3,6,522)" - }, - "result": [ - { - "id": 3 - }, - { - "id": 5 - } - ] - }, - "97949cbf658aa72e265fa99ebcad0388": { - "userId": 3, - "controller": "agent", - "endpoint": "find", - "qdata": { - "@count": 1 - }, - "result": 10 - }, - "80e12cc05e8ded2ffb839e95f3b22048": { - "userId": 3, - "controller": "agent", - "endpoint": "find", - "qdata": { - "@count": 1, - "@verified": "IN(1)" - }, - "result": 4 - }, - "2ea75930b718a27369769de8e2d67f41": { - "userId": 3, - "controller": "agent", - "endpoint": "find", - "qdata": { - "@select": "id", - "@verified": "IN(1)" - }, - "result": [ - { - "id": 5 - }, - { - "id": 7 - }, - { - "id": 1 - }, - { - "id": 3 - } - ] - }, - "7c019ec423c13708dd0fab67e5246c96": { - "userId": 3, - "controller": "space", - "endpoint": "find", - "qdata": { - "@count": 1 - }, - "result": 8 - }, - "af6beb085160571baf9f416e07642cf5": { - "userId": 3, - "controller": "space", - "endpoint": "find", - "qdata": { - "@count": 1, - "@verified": "IN(1)" - }, - "result": 4 - }, - "7b493e7c4586bd4a79bb7952f23cebcd": { - "userId": 3, - "controller": "space", - "endpoint": "find", - "qdata": { - "@select": "id", - "@verified": "IN(1)" - }, - "result": [ - { - "id": 1 - }, - { - "id": 7 - }, - { - "id": 5 - }, - { - "id": 3 - } - ] - }, - "d39a2ea25d76b44d038af82ca2dcfa19": { - "userId": 3, - "controller": "project", - "endpoint": "find", - "qdata": { - "@count": 1 - }, - "result": 8 - }, - "79ae68cf59fe0a1172e10f75471bf35e": { - "userId": 3, - "controller": "project", - "endpoint": "find", - "qdata": { - "@count": 1, - "@verified": "IN(1)" - }, - "result": 4 - }, - "4d8feafb354891c067d9dfd667643691": { - "userId": 3, - "controller": "project", - "endpoint": "find", - "qdata": { - "@select": "id", - "@verified": "IN(1)" - }, - "result": [ - { - "id": 1 - }, - { - "id": 3 - }, - { - "id": 5 - }, - { - "id": 7 - } - ] - }, - "ba104dbcd0408216d857fe1548afd204": { - "userId": 3, - "controller": "event", - "endpoint": "find", - "qdata": { - "@count": "1", - "id": "IN(5,3,6,522)" - }, - "result": 4 - }, - "95762f4096e162303904432d1cf363b5": { - "userId": 3, - "controller": "event", - "endpoint": "findByLocation", - "qdata": { - "@count": "1", - "@from": "2016-12-16", - "@to": "2017-01-16" - }, - "result": 4 - }, - "717e5a85fb4fc387074979ea40608c3e": { - "userId": 3, - "controller": "event", - "endpoint": "find", - "qdata": { - "@select": "id", - "@order": "name ASC", - "id": "IN(5,5,3,6,3,6,522)" - }, - "result": [ - { - "id": 3 - }, - { - "id": 5 - }, - { - "id": 6 - }, - { - "id": 522 - } - ] - }, - "4f12baf4e75871f1f37da9c3077ace6d": { - "userId": 3, - "controller": "space", - "endpoint": "find", - "qdata": { - "id": "IN(6,4,2,1)", - "@select": "id,name,location", - "@order": "name ASC" - }, - "result": [ - { - "id": 1, - "name": "Space 1", - "location": { - "latitude": "-23.5443493", - "longitude": "-46.6444262" - } - }, - { - "id": 2, - "name": "Space 2", - "location": { - "latitude": "-27.5906075", - "longitude": "-48.5129766" - } - }, - { - "id": 4, - "name": "Space 4", - "location": { - "latitude": "-23.5575987", - "longitude": "-46.6499111" - } - }, - { - "id": 6, - "name": "Space 6", - "location": { - "latitude": "-27.5887012", - "longitude": "-48.5070641" - } - } - ] - }, - "d6e0fdd6361600b5e04ca5f37636f195": { - "userId": 3, - "controller": "space", - "endpoint": "findByEvents", - "qdata": { - "@from": "2016-12-16", - "@to": "2017-01-16", - "@select": "id,name,location", - "@order": "name ASC" - }, - "result": [ - { - "id": 1, - "name": "Space 1", - "location": { - "latitude": "-23.5443493", - "longitude": "-46.6444262" - } - }, - { - "id": 2, - "name": "Space 2", - "location": { - "latitude": "-27.5906075", - "longitude": "-48.5129766" - } - }, - { - "id": 4, - "name": "Space 4", - "location": { - "latitude": "-23.5575987", - "longitude": "-46.6499111" - } - }, - { - "id": 6, - "name": "Space 6", - "location": { - "latitude": "-27.5887012", - "longitude": "-48.5070641" - } - } - ] - }, - "1868900d6f3f4445457d5c3a1e26b229": { - "userId": 3, - "controller": "space", - "endpoint": "find", - "qdata": { - "@select": "id,name,location", - "@order": "name ASC" - }, - "result": [ - { - "id": 1, - "name": "Space 1", - "location": { - "latitude": "-23.5443493", - "longitude": "-46.6444262" - } - }, - { - "id": 2, - "name": "Space 2", - "location": { - "latitude": "-27.5906075", - "longitude": "-48.5129766" - } - }, - { - "id": 3, - "name": "Space 3", - "location": { - "latitude": "-23.5299146", - "longitude": "-46.6343522" - } - }, - { - "id": 4, - "name": "Space 4", - "location": { - "latitude": "-23.5575987", - "longitude": "-46.6499111" - } - }, - { - "id": 5, - "name": "Space 5", - "location": { - "latitude": "-27.5666995", - "longitude": "-48.5102924" - } - }, - { - "id": 6, - "name": "Space 6", - "location": { - "latitude": "-27.5887012", - "longitude": "-48.5070641" - } - }, - { - "id": 7, - "name": "Space 7", - "location": { - "latitude": "-23.5394312", - "longitude": "-46.6915816" - } - }, - { - "id": 8, - "name": "Space 8", - "location": { - "latitude": "-23.5466151", - "longitude": "-46.6468627" - } - } - ] - }, - "60fcb8c8fc0c50220f81e0b44d4a83a6": { - "userId": 3, - "controller": "agent", - "endpoint": "find", - "qdata": { - "@select": "id,name,location", - "@order": "name ASC" - }, - "result": [ - { - "id": 3, - "name": "Admin 1", - "location": { - "latitude": "-23.546179", - "longitude": "-46.6451146" - } - }, - { - "id": 4, - "name": "Admin 2", - "location": { - "latitude": "-23.5367427", - "longitude": "-46.6587759" - } - }, - { - "id": 356, - "name": "New 1", - "location": { - "latitude": "-23.5419764", - "longitude": "-46.6465663" - } - }, - { - "id": 357, - "name": "New 2", - "location": { - "latitude": "-23.533808", - "longitude": "-46.6569978" - } - }, - { - "id": 7, - "name": "Normal User 1", - "location": { - "latitude": "-23.5335215", - "longitude": "-46.6569949" - } - }, - { - "id": 8, - "name": "Normal User 2", - "location": { - "latitude": "0", - "longitude": "0" - } - }, - { - "id": 5, - "name": "Staff User 1", - "location": { - "latitude": "0", - "longitude": "0" - } - }, - { - "id": 6, - "name": "Staff User 2", - "location": { - "latitude": "0", - "longitude": "0" - } - }, - { - "id": 1, - "name": "Super Admin 1", - "location": { - "latitude": "0", - "longitude": "0" - } - }, - { - "id": 2, - "name": "Super Admin 2", - "location": { - "latitude": "0", - "longitude": "0" - } - } - ] - }, - "dd8c70bee75e578428ffcc502a6c8d96": { - "userId": 3, - "controller": "project", - "endpoint": "find", - "qdata": { - "@select": "id,singleUrl,name,type,shortDescription,terms,registrationFrom,registrationTo", - "@files": "(avatar.avatarMedium):url", - "@page": "1", - "@limit": "10", - "@order": "name ASC" - }, - "result": [ - { - "id": 1, - "singleUrl": "http:\/\/localhost:8888\/projeto\/1\/", - "name": "Project 1", - "type": { - "id": 1, - "name": "Festival" - }, - "shortDescription": "of Super Admin 1", - "terms": { - "tag": [] - }, - "registrationFrom": null, - "registrationTo": null - }, - { - "id": 2, - "singleUrl": "http:\/\/localhost:8888\/projeto\/2\/", - "name": "Project 2", - "type": { - "id": 1, - "name": "Festival" - }, - "shortDescription": "of Super Admin 2", - "terms": { - "tag": [] - }, - "registrationFrom": null, - "registrationTo": null - }, - { - "id": 3, - "singleUrl": "http:\/\/localhost:8888\/projeto\/3\/", - "name": "Project 3", - "type": { - "id": 1, - "name": "Festival" - }, - "shortDescription": "of Admin 1", - "terms": { - "tag": [] - }, - "registrationFrom": null, - "registrationTo": null - }, - { - "id": 4, - "singleUrl": "http:\/\/localhost:8888\/projeto\/4\/", - "name": "Project 4", - "type": { - "id": 1, - "name": "Festival" - }, - "shortDescription": "of Admin 2", - "terms": { - "tag": [] - }, - "registrationFrom": null, - "registrationTo": null - }, - { - "id": 5, - "singleUrl": "http:\/\/localhost:8888\/projeto\/5\/", - "name": "Project 5", - "type": { - "id": 1, - "name": "Festival" - }, - "shortDescription": "of Staff User 1", - "terms": { - "tag": [] - }, - "registrationFrom": null, - "registrationTo": null - }, - { - "id": 6, - "singleUrl": "http:\/\/localhost:8888\/projeto\/6\/", - "name": "Project 6", - "type": { - "id": 1, - "name": "Festival" - }, - "shortDescription": "of Staff User 2", - "terms": { - "tag": [] - }, - "registrationFrom": null, - "registrationTo": null - }, - { - "id": 7, - "singleUrl": "http:\/\/localhost:8888\/projeto\/7\/", - "name": "Project 7", - "type": { - "id": 1, - "name": "Festival" - }, - "shortDescription": "of Normal User 1", - "terms": { - "tag": [] - }, - "registrationFrom": null, - "registrationTo": null - }, - { - "id": 8, - "singleUrl": "http:\/\/localhost:8888\/projeto\/8\/", - "name": "Project 8", - "type": { - "id": 1, - "name": "Festival" - }, - "shortDescription": "of Normal User 1", - "terms": { - "tag": [] - }, - "registrationFrom": null, - "registrationTo": null - } - ] - }, - "4ad001cdb3a5db90552b9aa02b2d1736": { - "userId": 3, - "controller": "event", - "endpoint": "find", - "qdata": { - "@select": "id,name,shortDescription,classificacaoEtaria,singleUrl,occurrences,terms,status,owner.id,owner.name,owner.singleUrl", - "project": "IN(@Project:1)", - "@permissions": "view", - "@files": "(avatar.avatarSmall):url" - }, - "result": [] - }, - "0fc5c83f2b8252079e5643ad21225ac8": { - "userId": 3, - "controller": "seal", - "endpoint": "find", - "qdata": { - "@select": "id,name,status, singleUrl", - "@permissions": "@control", - "@files": "(avatar.avatarMedium):url", - "@ORDER": "createTimestamp DESC" - }, - "result": [ - { - "id": 1, - "name": "Selo Mapas", - "status": 1, - "singleUrl": "http:\/\/localhost:8888\/selo\/1\/" - } - ] - }, - "5dc2891884cfe4220babee05c9fe1ee7": { - "userId": 3, - "controller": "project", - "endpoint": "find", - "qdata": { - "name": "ilike(**)", - "@select": "id,name,terms,type", - "@limit": "10", - "@page": "1", - "@order": "name ASC", - "@files": "(avatar.avatarSmall):url", - "id": "!IN(1)", - "_": "1481853983494" - }, - "result": [ - { - "id": 2, - "name": "Project 2", - "terms": { - "tag": [] - }, - "type": { - "id": 1, - "name": "Festival" - } - }, - { - "id": 3, - "name": "Project 3", - "terms": { - "tag": [] - }, - "type": { - "id": 1, - "name": "Festival" - } - }, - { - "id": 4, - "name": "Project 4", - "terms": { - "tag": [] - }, - "type": { - "id": 1, - "name": "Festival" - } - }, - { - "id": 5, - "name": "Project 5", - "terms": { - "tag": [] - }, - "type": { - "id": 1, - "name": "Festival" - } - }, - { - "id": 6, - "name": "Project 6", - "terms": { - "tag": [] - }, - "type": { - "id": 1, - "name": "Festival" - } - }, - { - "id": 7, - "name": "Project 7", - "terms": { - "tag": [] - }, - "type": { - "id": 1, - "name": "Festival" - } - }, - { - "id": 8, - "name": "Project 8", - "terms": { - "tag": [] - }, - "type": { - "id": 1, - "name": "Festival" - } - } - ] - }, - "1727e7799666e2ba3a152927ae65ca28": { - "userId": 3, - "controller": "agent", - "endpoint": "find", - "qdata": { - "@files": "(avatar.avatarSmall):url", - "@limit": "20", - "@order": "name", - "@page": "1", - "@select": "id,name,type,shortDescription,terms", - "name": "ILIKE(*adm*)" - }, - "result": [ - { - "@files:avatar.avatarSmall": { - "url": "http:\/\/localhost:8888\/files\/agent\/3\/file\/18\/imagem1-0108e4d03baa58da37295fac2878acaf.jpeg" - }, - "id": 3, - "name": "Admin 1", - "type": { - "id": 1, - "name": "Individual" - }, - "shortDescription": "short description", - "terms": { - "tag": [], - "area": [ - "Arquitetura-Urbanismo" - ] - } - }, - { - "@files:avatar.avatarSmall": { - "url": "http:\/\/localhost:8888\/files\/agent\/4\/file\/22\/imagem2-1d80d1d4d8de1e61294630edb215f103.jpeg" - }, - "id": 4, - "name": "Admin 2", - "type": { - "id": 1, - "name": "Individual" - }, - "shortDescription": "short description", - "terms": { - "tag": [], - "area": [ - "Arquivo" - ] - } - }, - { - "id": 1, - "name": "Super Admin 1", - "type": { - "id": 1, - "name": "Individual" - }, - "shortDescription": "short description", - "terms": { - "tag": [], - "area": [ - "Antropologia" - ] - } - }, - { - "id": 2, - "name": "Super Admin 2", - "type": { - "id": 1, - "name": "Individual" - }, - "shortDescription": "short description", - "terms": { - "tag": [], - "area": [ - "Arqueologia" - ] - } - } - ] - }, - "01973bb8927cfcfe6ca4e8d286d4a292": { - "userId": 3, - "controller": "agent", - "endpoint": "findOne", - "qdata": { - "id": "EQ(4)", - "@select": "id,singleUrl,name,subTitle,type,shortDescription,terms,project.name,project.singleUrl", - "@files": "(avatar.avatarSmall):url" - }, - "result": { - "@files:avatar.avatarSmall": { - "url": "http:\/\/localhost:8888\/files\/agent\/4\/file\/22\/imagem2-1d80d1d4d8de1e61294630edb215f103.jpeg" - }, - "id": 4, - "singleUrl": "http:\/\/localhost:8888\/agente\/4\/", - "name": "Admin 2", - "subTitle": null, - "type": { - "id": 1, - "name": "Individual" - }, - "shortDescription": "short description", - "terms": { - "tag": [], - "area": [ - "Arquivo" - ] - }, - "project": { - "name": null, - "singleUrl": null - } - } - }, - "bcff3f0c6d852535c65eb7bccd9cc4a8": { - "userId": 3, - "controller": "agent", - "endpoint": "findOne", - "qdata": { - "id": "EQ(356)", - "@select": "id,singleUrl,name,subTitle,type,shortDescription,terms,project.name,project.singleUrl", - "@files": "(avatar.avatarSmall):url" - }, - "result": { - "id": 356, - "singleUrl": "http:\/\/localhost:8888\/agente\/356\/", - "name": "New 1", - "subTitle": null, - "type": { - "id": 1, - "name": "Individual" - }, - "shortDescription": "descricao curta", - "terms": { - "tag": [ - "TAGUEADO" - ], - "area": [ - "Arte Digital" - ] - }, - "project": { - "name": null, - "singleUrl": null - } - } - }, - "deb62f6714b88305177ba35d096cad84": { - "userId": 3, - "controller": "agent", - "endpoint": "findOne", - "qdata": { - "id": "EQ(3)", - "@select": "id,singleUrl,name,subTitle,type,shortDescription,terms,project.name,project.singleUrl", - "@files": "(avatar.avatarSmall):url" - }, - "result": { - "@files:avatar.avatarSmall": { - "url": "http:\/\/localhost:8888\/files\/agent\/3\/file\/18\/imagem1-0108e4d03baa58da37295fac2878acaf.jpeg" - }, - "id": 3, - "singleUrl": "http:\/\/localhost:8888\/agente\/3\/", - "name": "Admin 1", - "subTitle": null, - "type": { - "id": 1, - "name": "Individual" - }, - "shortDescription": "short description", - "terms": { - "tag": [], - "area": [ - "Arquitetura-Urbanismo" - ] - }, - "project": { - "name": null, - "singleUrl": null - } - } - }, - "3a3d037a019b83430b04cc02c0d08bd1": { - "userId": 3, - "controller": "agent", - "endpoint": "findOne", - "qdata": { - "id": "EQ(7)", - "@select": "id,singleUrl,name,subTitle,type,shortDescription,terms,project.name,project.singleUrl", - "@files": "(avatar.avatarSmall):url" - }, - "result": { - "@files:avatar.avatarSmall": { - "url": "http:\/\/localhost:8888\/files\/agent\/7\/file\/26\/imagem4-4e0f09ec602df7f0dbe0ffa44c19eb5e.jpeg" - }, - "id": 7, - "singleUrl": "http:\/\/localhost:8888\/agente\/7\/", - "name": "Normal User 1", - "subTitle": null, - "type": { - "id": 1, - "name": "Individual" - }, - "shortDescription": "short description", - "terms": { - "tag": [], - "area": [ - "Arquivo", - "Arte de Rua", - "Cinema" - ] - }, - "project": { - "name": null, - "singleUrl": null - } - } - }, - "34c0aca8197965907e80a8d9513d9f38": { - "userId": 3, - "controller": "agent", - "endpoint": "findOne", - "qdata": { - "id": "EQ(357)", - "@select": "id,singleUrl,name,subTitle,type,shortDescription,terms,project.name,project.singleUrl", - "@files": "(avatar.avatarSmall):url" - }, - "result": { - "id": 357, - "singleUrl": "http:\/\/localhost:8888\/agente\/357\/", - "name": "New 2", - "subTitle": null, - "type": { - "id": 1, - "name": "Individual" - }, - "shortDescription": "curta", - "terms": { - "tag": [ - "TAGUEADO" - ], - "area": [ - "Arte de Rua" - ] - }, - "project": { - "name": null, - "singleUrl": null - } - } - }, - "fa8cc1578cef6286c4e40a7f51d1e771": { - "userId": 3, - "controller": "agent", - "endpoint": "find", - "qdata": { - "@keyword": "TAGUEADO", - "@select": "id,name,location", - "@order": "name ASC" - }, - "result": [ - { - "id": 356, - "name": "New 1", - "location": { - "latitude": "-23.5419764", - "longitude": "-46.6465663" - } - }, - { - "id": 357, - "name": "New 2", - "location": { - "latitude": "-23.533808", - "longitude": "-46.6569978" - } - } - ] - }, - "1a4cd7bba2599f39bf558306ae21eec8": { - "userId": 3, - "controller": "agent", - "endpoint": "find", - "qdata": { - "@keyword": "TAGUEADO", - "_geoLocation": "GEONEAR(-46.64867877960205,-23.539596040914,700)", - "@select": "id,name,location", - "@order": "name ASC" - }, - "result": [ - { - "id": 356, - "name": "New 1", - "location": { - "latitude": "-23.5419764", - "longitude": "-46.6465663" - } - } - ] - }, - "0909d202bce47446f821b842c064343e": { - "userId": 3, - "controller": "space", - "endpoint": "find", - "qdata": { - "_geoLocation": "GEONEAR(-46.64867877960205,-23.539596040914,700)", - "@select": "id,name,location", - "@order": "name ASC" - }, - "result": [ - { - "id": 1, - "name": "Space 1", - "location": { - "latitude": "-23.5443493", - "longitude": "-46.6444262" - } - } - ] - }, - "456d4e4a7026745820bcad97bf2729c0": { - "userId": 3, - "controller": "space", - "endpoint": "find", - "qdata": { - "@select": "id,name,shortDescription,location,terms,__metadata", - "_geoLocation": "GEONEAR(-46.64867877960205,-23.539596040914,700)" - }, - "result": [ - { - "id": 1, - "name": "Space 1", - "shortDescription": "of Super Admin 1", - "location": { - "latitude": "-23.5443493", - "longitude": "-46.6444262" - }, - "terms": { - "tag": [], - "area": [ - "Jogos Eletr\u00f4nicos", - "Filosofia", - "Esporte" - ] - }, - "__metadata": null - } - ] - }, - "39a306f05cf1209738fc74f4ba836864": { - "userId": 3, - "controller": "event", - "endpoint": "find", - "qdata": { - "@count": "1", - "id": "IN(6,3)" - }, - "result": 2 - }, - "0ae921ea671c5b805568abfb6d7c6e28": { - "userId": 3, - "controller": "event", - "endpoint": "findByLocation", - "qdata": { - "@count": "1", - "@from": "2016-12-16", - "@to": "2017-01-16", - "_geoLocation": "GEONEAR(-46.64867877960205,-23.539596040914,700)" - }, - "result": 2 - }, - "4b52fbc6729b463f5a85fc85c602b4d0": { - "userId": 3, - "controller": "event", - "endpoint": "find", - "qdata": { - "@select": "id", - "_geoLocation": "GEONEAR(-46.64867877960205,-23.539596040914,700)", - "@order": "name ASC", - "id": "IN(5,5,3,6,3,6,522)" - }, - "result": [ - { - "id": 3 - }, - { - "id": 5 - }, - { - "id": 6 - }, - { - "id": 522 - } - ] - }, - "d8b1743ca09d492c6eb0c902d7cd9120": { - "userId": 3, - "controller": "space", - "endpoint": "find", - "qdata": { - "id": "IN(6,4,2,1)", - "_geoLocation": "GEONEAR(-46.64867877960205,-23.539596040914,700)", - "@select": "id,name,location", - "@order": "name ASC" - }, - "result": [ - { - "id": 1, - "name": "Space 1", - "location": { - "latitude": "-23.5443493", - "longitude": "-46.6444262" - } - } - ] - }, - "7d98dfdffdf305e2543ce45353306228": { - "userId": 3, - "controller": "space", - "endpoint": "findByEvents", - "qdata": { - "@from": "2016-12-16", - "@to": "2017-01-16", - "_geoLocation": "GEONEAR(-46.64867877960205,-23.539596040914,700)", - "@select": "id,name,location", - "@order": "name ASC" - }, - "result": [ - { - "id": 1, - "name": "Space 1", - "location": { - "latitude": "-23.5443493", - "longitude": "-46.6444262" - } - } - ] - }, - "dbbb6ae775b44ae34b539de53d1074d4": { - "userId": 4, - "controller": "notification", - "endpoint": "find", - "qdata": { - "@select": "id,status,isRequest,createTimestamp,message,approveUrl,request.permissionTo.approve,request.permissionTo.reject,request.requesterUser.id", - "user": "EQ(@me)", - "@ORDER": "createTimestamp DESC" - }, - "result": [ - { - "id": 26, - "status": 1, - "isRequest": false, - "createTimestamp": { - "date": "2016-12-16 00:07:54.000000", - "timezone_type": 3, - "timezone": "America\/Sao_Paulo" - }, - "message": "Seu \u00faltimo acesso foi em 21\/05\/2014<\/b>, atualize suas informa\u00e7\u00f5es se necess\u00e1rio.", - "approveUrl": "http:\/\/localhost:8888\/aprovar-notificacao\/26\/", - "request": { - "permissionTo": { - "approve": null, - "reject": null - }, - "requesterUser": { - "id": null - } - } - } - ] - }, - "e4a803468a1937df1dd13a5788ba9274": { - "userId": 4, - "controller": "event", - "endpoint": "find", - "qdata": { - "@count": 1, - "id": "IN(5,3,6,522)" - }, - "result": 4 - }, - "8a8fd7ba9ec783c58a7278677fd05a40": { - "userId": 4, - "controller": "event", - "endpoint": "find", - "qdata": { - "@count": 1, - "@verified": "IN(1)", - "id": "IN(5,3,6,522)" - }, - "result": 2 - }, - "0410eb6525d0842aebd21c9c020caa59": { - "userId": 4, - "controller": "event", - "endpoint": "find", - "qdata": { - "@verified": "IN(1)", - "@select": "id", - "id": "IN(5,3,6,522)" - }, - "result": [ - { - "id": 3 - }, - { - "id": 5 - } - ] - }, - "7bb00218794cebdd3eff34fa66994e55": { - "userId": 4, - "controller": "agent", - "endpoint": "find", - "qdata": { - "@select": "id", - "@verified": "IN(1)" - }, - "result": [ - { - "id": 5 - }, - { - "id": 7 - }, - { - "id": 1 - }, - { - "id": 3 - } - ] - }, - "7562881cf856c86b7b9ad717a1b225de": { - "userId": 4, - "controller": "space", - "endpoint": "find", - "qdata": { - "@select": "id", - "@verified": "IN(1)" - }, - "result": [ - { - "id": 1 - }, - { - "id": 7 - }, - { - "id": 5 - }, - { - "id": 3 - } - ] - }, - "1af6fca6c77bb025fab443a7425c5072": { - "userId": 4, - "controller": "project", - "endpoint": "find", - "qdata": { - "@select": "id", - "@verified": "IN(1)" - }, - "result": [ - { - "id": 1 - }, - { - "id": 3 - }, - { - "id": 5 - }, - { - "id": 7 - } - ] - }, - "146b8fcb176d50144b9090b5c5b0fba4": { - "userId": 4, - "controller": "event", - "endpoint": "find", - "qdata": { - "@count": "1", - "id": "IN(5,3,6,522)" - }, - "result": 4 - }, - "ca8a963a192e936063e50f196aa4a85c": { - "userId": 4, - "controller": "event", - "endpoint": "findByLocation", - "qdata": { - "@count": "1", - "@from": "2016-12-16", - "@to": "2017-01-16" - }, - "result": 4 - }, - "908b459d3ec487f479528e2529295565": { - "userId": 4, - "controller": "event", - "endpoint": "find", - "qdata": { - "@select": "id", - "@order": "name ASC", - "id": "IN(5,5,3,6,3,6,522)" - }, - "result": [ - { - "id": 3 - }, - { - "id": 5 - }, - { - "id": 6 - }, - { - "id": 522 - } - ] - }, - "9ccef87846f52d1fd9955f128f198648": { - "userId": 4, - "controller": "space", - "endpoint": "find", - "qdata": { - "id": "IN(6,4,2,1)", - "@select": "id,name,location", - "@order": "name ASC" - }, - "result": [ - { - "id": 1, - "name": "Space 1", - "location": { - "latitude": "-23.5443493", - "longitude": "-46.6444262" - } - }, - { - "id": 2, - "name": "Space 2", - "location": { - "latitude": "-27.5906075", - "longitude": "-48.5129766" - } - }, - { - "id": 4, - "name": "Space 4", - "location": { - "latitude": "-23.5575987", - "longitude": "-46.6499111" - } - }, - { - "id": 6, - "name": "Space 6", - "location": { - "latitude": "-27.5887012", - "longitude": "-48.5070641" - } - } - ] - }, - "dd4096ea18f425d106b2d367f09d19f1": { - "userId": 4, - "controller": "space", - "endpoint": "findByEvents", - "qdata": { - "@from": "2016-12-16", - "@to": "2017-01-16", - "@select": "id,name,location", - "@order": "name ASC" - }, - "result": [ - { - "id": 1, - "name": "Space 1", - "location": { - "latitude": "-23.5443493", - "longitude": "-46.6444262" - } - }, - { - "id": 2, - "name": "Space 2", - "location": { - "latitude": "-27.5906075", - "longitude": "-48.5129766" - } - }, - { - "id": 4, - "name": "Space 4", - "location": { - "latitude": "-23.5575987", - "longitude": "-46.6499111" - } - }, - { - "id": 6, - "name": "Space 6", - "location": { - "latitude": "-27.5887012", - "longitude": "-48.5070641" - } - } - ] - }, - "8c7ae8592af9e7c6ab55d69a91a27961": { - "userId": 4, - "controller": "space", - "endpoint": "find", - "qdata": { - "@select": "id,name,location", - "@order": "name ASC" - }, - "result": [ - { - "id": 1, - "name": "Space 1", - "location": { - "latitude": "-23.5443493", - "longitude": "-46.6444262" - } - }, - { - "id": 2, - "name": "Space 2", - "location": { - "latitude": "-27.5906075", - "longitude": "-48.5129766" - } - }, - { - "id": 3, - "name": "Space 3", - "location": { - "latitude": "-23.5299146", - "longitude": "-46.6343522" - } - }, - { - "id": 4, - "name": "Space 4", - "location": { - "latitude": "-23.5575987", - "longitude": "-46.6499111" - } - }, - { - "id": 5, - "name": "Space 5", - "location": { - "latitude": "-27.5666995", - "longitude": "-48.5102924" - } - }, - { - "id": 6, - "name": "Space 6", - "location": { - "latitude": "-27.5887012", - "longitude": "-48.5070641" - } - }, - { - "id": 7, - "name": "Space 7", - "location": { - "latitude": "-23.5394312", - "longitude": "-46.6915816" - } - }, - { - "id": 8, - "name": "Space 8", - "location": { - "latitude": "-23.5466151", - "longitude": "-46.6468627" - } - } - ] - }, - "92fe4ab3eb3895ab89fc6534df26d782": { - "userId": 4, - "controller": "agent", - "endpoint": "find", - "qdata": { - "@select": "id,name,location", - "@order": "name ASC" - }, - "result": [ - { - "id": 3, - "name": "Admin 1", - "location": { - "latitude": "-23.546179", - "longitude": "-46.6451146" - } - }, - { - "id": 4, - "name": "Admin 2", - "location": { - "latitude": "-23.5367427", - "longitude": "-46.6587759" - } - }, - { - "id": 356, - "name": "New 1", - "location": { - "latitude": "-23.5419764", - "longitude": "-46.6465663" - } - }, - { - "id": 357, - "name": "New 2", - "location": { - "latitude": "-23.533808", - "longitude": "-46.6569978" - } - }, - { - "id": 7, - "name": "Normal User 1", - "location": { - "latitude": "-23.5335215", - "longitude": "-46.6569949" - } - }, - { - "id": 8, - "name": "Normal User 2", - "location": { - "latitude": "0", - "longitude": "0" - } - }, - { - "id": 5, - "name": "Staff User 1", - "location": { - "latitude": "0", - "longitude": "0" - } - }, - { - "id": 6, - "name": "Staff User 2", - "location": { - "latitude": "0", - "longitude": "0" - } - }, - { - "id": 1, - "name": "Super Admin 1", - "location": { - "latitude": "0", - "longitude": "0" - } - }, - { - "id": 2, - "name": "Super Admin 2", - "location": { - "latitude": "0", - "longitude": "0" - } - } - ] - }, - "fab3733533ce844486d2613cb5185b63": { - "userId": 4, - "controller": "project", - "endpoint": "find", - "qdata": { - "@select": "id,singleUrl,name,type,shortDescription,terms,registrationFrom,registrationTo", - "@files": "(avatar.avatarMedium):url", - "@page": "1", - "@limit": "10", - "@order": "name ASC" - }, - "result": [ - { - "id": 1, - "singleUrl": "http:\/\/localhost:8888\/projeto\/1\/", - "name": "Project 1", - "type": { - "id": 1, - "name": "Festival" - }, - "shortDescription": "of Super Admin 1", - "terms": { - "tag": [] - }, - "registrationFrom": null, - "registrationTo": null - }, - { - "id": 2, - "singleUrl": "http:\/\/localhost:8888\/projeto\/2\/", - "name": "Project 2", - "type": { - "id": 1, - "name": "Festival" - }, - "shortDescription": "of Super Admin 2", - "terms": { - "tag": [] - }, - "registrationFrom": null, - "registrationTo": null - }, - { - "id": 3, - "singleUrl": "http:\/\/localhost:8888\/projeto\/3\/", - "name": "Project 3", - "type": { - "id": 1, - "name": "Festival" - }, - "shortDescription": "of Admin 1", - "terms": { - "tag": [] - }, - "registrationFrom": null, - "registrationTo": null - }, - { - "id": 4, - "singleUrl": "http:\/\/localhost:8888\/projeto\/4\/", - "name": "Project 4", - "type": { - "id": 1, - "name": "Festival" - }, - "shortDescription": "of Admin 2", - "terms": { - "tag": [] - }, - "registrationFrom": null, - "registrationTo": null - }, - { - "id": 5, - "singleUrl": "http:\/\/localhost:8888\/projeto\/5\/", - "name": "Project 5", - "type": { - "id": 1, - "name": "Festival" - }, - "shortDescription": "of Staff User 1", - "terms": { - "tag": [] - }, - "registrationFrom": null, - "registrationTo": null - }, - { - "id": 6, - "singleUrl": "http:\/\/localhost:8888\/projeto\/6\/", - "name": "Project 6", - "type": { - "id": 1, - "name": "Festival" - }, - "shortDescription": "of Staff User 2", - "terms": { - "tag": [] - }, - "registrationFrom": null, - "registrationTo": null - }, - { - "id": 7, - "singleUrl": "http:\/\/localhost:8888\/projeto\/7\/", - "name": "Project 7", - "type": { - "id": 1, - "name": "Festival" - }, - "shortDescription": "of Normal User 1", - "terms": { - "tag": [] - }, - "registrationFrom": null, - "registrationTo": null - }, - { - "id": 8, - "singleUrl": "http:\/\/localhost:8888\/projeto\/8\/", - "name": "Project 8", - "type": { - "id": 1, - "name": "Festival" - }, - "shortDescription": "of Normal User 1", - "terms": { - "tag": [] - }, - "registrationFrom": null, - "registrationTo": null - } - ] - }, - "74ed310e3f80e5c67c83ebbd6caf6137": { - "userId": 4, - "controller": "space", - "endpoint": "find", - "qdata": { - "@count": 1, - "user": "EQ(4)" - }, - "result": 1 - }, - "2f159253ba71534ec71828a750860319": { - "userId": 4, - "controller": "agent", - "endpoint": "find", - "qdata": { - "@count": 1, - "user": "EQ(4)" - }, - "result": 1 - }, - "e08c48fabc1a3ee821cb8d9206ea17ca": { - "userId": 4, - "controller": "event", - "endpoint": "find", - "qdata": { - "@count": 1, - "user": "EQ(4)" - }, - "result": 1 - }, - "b2bbd238fa6fee256e58a1b2a5441d40": { - "userId": 4, - "controller": "project", - "endpoint": "find", - "qdata": { - "@count": 1, - "user": "EQ(4)" - }, - "result": 1 - }, - "50b192704731be147360135fae8fc069": { - "userId": 4, - "controller": "seal", - "endpoint": "find", - "qdata": { - "@count": 1, - "user": "EQ(4)" - }, - "result": 0 - }, - "964e385d77e1398b41d180c000064e81": { - "userId": 4, - "controller": "event", - "endpoint": "find", - "qdata": { - "@select": "name,type,status,terms,classificacaoEtaria,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,createTimestamp", - "@files": "(avatar.avatarSmall):url", - "user": "EQ(4)", - "status": "EQ(1)", - "@limit": 50, - "@order": "name ASC", - "@page": 1 - }, - "result": [ - { - "name": "Event 4", - "type": { - "id": 1, - "name": "Padr\u00e3o" - }, - "status": 1, - "terms": { - "tag": [], - "linguagem": [] - }, - "classificacaoEtaria": null, - "singleUrl": "http:\/\/localhost:8888\/evento\/4\/", - "editUrl": "http:\/\/localhost:8888\/eventos\/edita\/4\/", - "deleteUrl": "http:\/\/localhost:8888\/eventos\/apaga\/4\/", - "publishUrl": "http:\/\/localhost:8888\/eventos\/publish\/4\/", - "unpublishUrl": "http:\/\/localhost:8888\/eventos\/unpublish\/4\/", - "createTimestamp": { - "date": "2014-05-21 18:04:44.000000", - "timezone_type": 3, - "timezone": "America\/Sao_Paulo" - } - } - ] - }, - "ffbcac266672ad842c027397ad98a531": { - "userId": 4, - "controller": "event", - "endpoint": "find", - "qdata": { - "@select": "name,type,status,terms,classificacaoEtaria,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,createTimestamp", - "@files": "(avatar.avatarSmall):url", - "user": "EQ(4)", - "status": "EQ(0)", - "@permissions": "view" - }, - "result": [] - }, - "42da5181bc06b9ed353eb9b28f4171e7": { - "userId": 4, - "controller": "event", - "endpoint": "find", - "qdata": { - "@select": "name,type,status,terms,classificacaoEtaria,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,createTimestamp", - "@files": "(avatar.avatarSmall):url", - "user": "EQ(4)", - "status": "EQ(-10)", - "@permissions": "view" - }, - "result": [] - }, - "364586122eee38177bc876cab777230a": { - "userId": 4, - "controller": "space", - "endpoint": "find", - "qdata": { - "@select": "name,type,status,terms,endereco,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,acessibilidade,createTimestamp", - "@files": "(avatar.avatarSmall):url", - "user": "EQ(4)", - "status": "EQ(1)", - "@limit": 50, - "@order": "name ASC", - "@page": 1 - }, - "result": [ - { - "@files:avatar.avatarSmall": { - "url": "http:\/\/localhost:8888\/files\/space\/4\/file\/6\/imagem1-0108e4d03baa58da37295fac2878acaf.jpeg" - }, - "name": "Space 4", - "type": { - "id": 60, - "name": "Museu P\u00fablico" - }, - "status": 1, - "terms": { - "tag": [], - "area": [ - "Artes Visuais", - "Fotografia", - "Arte Digital" - ] - }, - "endereco": "Rua Itapeva, 15 , Bela Vista, 01332-000, S\u00e3o Paulo, SP", - "singleUrl": "http:\/\/localhost:8888\/espaco\/4\/", - "editUrl": "http:\/\/localhost:8888\/espacos\/edita\/4\/", - "deleteUrl": "http:\/\/localhost:8888\/espacos\/apaga\/4\/", - "publishUrl": "http:\/\/localhost:8888\/espacos\/publish\/4\/", - "unpublishUrl": "http:\/\/localhost:8888\/espacos\/unpublish\/4\/", - "acessibilidade": "Sim", - "createTimestamp": { - "date": "2014-05-21 18:04:38.000000", - "timezone_type": 3, - "timezone": "America\/Sao_Paulo" - } - } - ] - }, - "0b46bba45ed3a10f4dcb21c75c391971": { - "userId": 4, - "controller": "space", - "endpoint": "find", - "qdata": { - "@select": "name,type,status,terms,endereco,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,acessibilidade,createTimestamp", - "@files": "(avatar.avatarSmall):url", - "user": "EQ(4)", - "status": "EQ(0)", - "@permissions": "view" - }, - "result": [] - }, - "8468a882532448fbc53cf810a8f009ac": { - "userId": 4, - "controller": "space", - "endpoint": "find", - "qdata": { - "@select": "name,type,status,terms,endereco,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,acessibilidade,createTimestamp", - "@files": "(avatar.avatarSmall):url", - "user": "EQ(4)", - "status": "EQ(-10)", - "@permissions": "view" - }, - "result": [] - }, - "34d214ffd7ef2b1e467aa3a8a9c59469": { - "userId": 4, - "controller": "agent", - "endpoint": "findOne", - "qdata": { - "id": "EQ(356)", - "@select": "id,singleUrl,name,subTitle,type,shortDescription,terms,project.name,project.singleUrl", - "@files": "(avatar.avatarSmall):url" - }, - "result": { - "id": 356, - "singleUrl": "http:\/\/localhost:8888\/agente\/356\/", - "name": "New 1", - "subTitle": null, - "type": { - "id": 1, - "name": "Individual" - }, - "shortDescription": "descricao curta", - "terms": { - "tag": [ - "TAGUEADO" - ], - "area": [ - "Arte Digital" - ] - }, - "project": { - "name": null, - "singleUrl": null - } - } - }, - "359af80a89510b6418ae993e801684df": { - "userId": 4, - "controller": "space", - "endpoint": "findOne", - "qdata": { - "id": "EQ(2)", - "@select": "id,singleUrl,name,subTitle,type,shortDescription,terms,project.name,project.singleUrl,endereco,endereco,acessibilidade", - "@files": "(avatar.avatarSmall):url" - }, - "result": { - "@files:avatar.avatarSmall": { - "url": "http:\/\/localhost:8888\/files\/space\/2\/file\/2\/imagem4-4e0f09ec602df7f0dbe0ffa44c19eb5e.jpeg" - }, - "id": 2, - "singleUrl": "http:\/\/localhost:8888\/espaco\/2\/", - "name": "Space 2", - "subTitle": null, - "type": { - "id": 10, - "name": "Cine itinerante" - }, - "shortDescription": "of Super Admin 2", - "terms": { - "tag": [], - "area": [ - "Circo", - "Arte de Rua" - ] - }, - "project": { - "name": null, - "singleUrl": null - }, - "endereco": "Rua Tenente Jer\u00f4nimo Borges, 33 , Santa M\u00f4nica, 88035-050, Florian\u00f3polis, SC", - "acessibilidade": "N\u00e3o" - } - }, - "dadf17a66f795466024fbebe20e26249": { - "userId": 4, - "controller": "event", - "endpoint": "find", - "qdata": { - "@select": "id,singleUrl,name,subTitle,type,shortDescription,terms,project.name,project.singleUrl,endereco,classificacaoEtaria", - "@order": "name ASC", - "@files": "(avatar.avatarSmall):url", - "id": "IN(3,522)" - }, - "result": [ - { - "id": 3, - "singleUrl": "http:\/\/localhost:8888\/evento\/3\/", - "name": "Event 3", - "subTitle": null, - "type": { - "id": 1, - "name": "Padr\u00e3o" - }, - "shortDescription": "of Admin 1", - "terms": { - "tag": [], - "linguagem": [ - "Cinema" - ] - }, - "project": { - "name": null, - "singleUrl": null - }, - "endereco": null, - "classificacaoEtaria": "Livre" - }, - { - "id": 522, - "singleUrl": "http:\/\/localhost:8888\/evento\/522\/", - "name": "Novo Evento", - "subTitle": null, - "type": { - "id": 1, - "name": "Padr\u00e3o" - }, - "shortDescription": "pequeno evento", - "terms": { - "tag": [], - "linguagem": [ - "Cinema", - "Artes Circenses" - ] - }, - "project": { - "name": null, - "singleUrl": null - }, - "endereco": null, - "classificacaoEtaria": "Livre" - } - ] - }, - "77ff9f760d27e51f95e272a320c61b7a": { - "userId": 4, - "controller": "event", - "endpoint": "findBySpace", - "qdata": { - "@from": "2016-12-16", - "@to": "2017-01-16", - "@select": "id,singleUrl,name,subTitle,type,shortDescription,terms,project.name,project.singleUrl,endereco,classificacaoEtaria", - "@order": "name ASC", - "spaceId": "2", - "@files": "(avatar.avatarSmall):url" - }, - "result": [ - { - "id": 3, - "singleUrl": "http:\/\/localhost:8888\/evento\/3\/", - "name": "Event 3", - "subTitle": null, - "type": { - "id": 1, - "name": "Padr\u00e3o" - }, - "shortDescription": "of Admin 1", - "terms": { - "tag": [], - "linguagem": [ - "Cinema" - ] - }, - "project": { - "name": null, - "singleUrl": null - }, - "endereco": null, - "classificacaoEtaria": "Livre", - "occurrences": [ - { - "id": 142, - "rule": { - "spaceId": "2", - "startsAt": "10:00", - "duration": 30, - "endsAt": "10:30", - "frequency": "daily", - "startsOn": "2016-12-01", - "until": "2016-12-30", - "description": "Diariamente de 1 a 30 de dezembro de 2016 \u00e0s 10:00", - "price": "Gratuito" - }, - "startsOn": { - "date": "2016-12-01 00:00:00.000000", - "timezone_type": 3, - "timezone": "America\/Sao_Paulo" - }, - "startsAt": { - "date": "2016-12-01 10:00:00.000000", - "timezone_type": 3, - "timezone": "America\/Sao_Paulo" - }, - "endsOn": null, - "endsAt": { - "date": "2016-12-01 10:30:00.000000", - "timezone_type": 3, - "timezone": "America\/Sao_Paulo" - }, - "duration": { - "y": 0, - "m": 0, - "d": 0, - "h": 0, - "i": 30, - "s": 0, - "weekday": 0, - "weekday_behavior": 0, - "first_last_day_of": 0, - "invert": 1, - "days": 0, - "special_type": 0, - "special_amount": 0, - "have_weekday_relative": 0, - "have_special_relative": 0 - }, - "frequency": null, - "separation": 1, - "recurrences": [], - "count": null, - "until": { - "date": "2016-12-30 00:00:00.000000", - "timezone_type": 3, - "timezone": "America\/Sao_Paulo" - }, - "spaceId": 2, - "space": null, - "event": null, - "editUrl": "http:\/\/localhost:8888\/eventoccurrence\/edita\/142\/", - "deleteUrl": "http:\/\/localhost:8888\/eventoccurrence\/apaga\/142\/", - "status": 1 - } - ], - "readableOccurrences": [ - "Diariamente de 1 a 30 de dezembro de 2016 \u00e0s 10:00" - ] - }, - { - "id": 522, - "singleUrl": "http:\/\/localhost:8888\/evento\/522\/", - "name": "Novo Evento", - "subTitle": null, - "type": { - "id": 1, - "name": "Padr\u00e3o" - }, - "shortDescription": "pequeno evento", - "terms": { - "tag": [], - "linguagem": [ - "Cinema", - "Artes Circenses" - ] - }, - "project": { - "name": null, - "singleUrl": null - }, - "endereco": null, - "classificacaoEtaria": "Livre", - "occurrences": { - "1": { - "id": 163, - "rule": { - "spaceId": "2", - "startsAt": "22:22", - "duration": 22, - "endsAt": "22:44", - "frequency": "once", - "startsOn": "2016-12-30", - "until": "", - "description": "Dia 30 de dezembro de 2016 \u00e0s 22:22", - "price": "R$ 1,00" - }, - "startsOn": { - "date": "2016-12-30 00:00:00.000000", - "timezone_type": 3, - "timezone": "America\/Sao_Paulo" - }, - "startsAt": { - "date": "2016-12-30 22:22:00.000000", - "timezone_type": 3, - "timezone": "America\/Sao_Paulo" - }, - "endsOn": null, - "endsAt": { - "date": "2016-12-30 22:44:00.000000", - "timezone_type": 3, - "timezone": "America\/Sao_Paulo" - }, - "duration": { - "y": 0, - "m": 0, - "d": 0, - "h": 0, - "i": 22, - "s": 0, - "weekday": 0, - "weekday_behavior": 0, - "first_last_day_of": 0, - "invert": 1, - "days": 0, - "special_type": 0, - "special_amount": 0, - "have_weekday_relative": 0, - "have_special_relative": 0 - }, - "frequency": null, - "separation": 1, - "recurrences": [], - "count": null, - "until": null, - "spaceId": 2, - "space": null, - "event": null, - "editUrl": "http:\/\/localhost:8888\/eventoccurrence\/edita\/163\/", - "deleteUrl": "http:\/\/localhost:8888\/eventoccurrence\/apaga\/163\/", - "status": 1 - } - }, - "readableOccurrences": { - "1": "Dia 30 de dezembro de 2016 \u00e0s 22:22" - } - } - ] - }, - "b02cb4b630c695c510d04ec900b4f446": { - "userId": 4, - "controller": "space", - "endpoint": "findOne", - "qdata": { - "id": "EQ(6)", - "@select": "id,singleUrl,name,subTitle,type,shortDescription,terms,project.name,project.singleUrl,endereco,endereco,acessibilidade", - "@files": "(avatar.avatarSmall):url" - }, - "result": { - "@files:avatar.avatarSmall": { - "url": "http:\/\/localhost:8888\/files\/space\/6\/file\/10\/imagem3-ed0f3136f28c0cbcea89572e0bf16825.jpeg" - }, - "id": 6, - "singleUrl": "http:\/\/localhost:8888\/espaco\/6\/", - "name": "Space 6", - "subTitle": null, - "type": { - "id": 61, - "name": "Museu Privado" - }, - "shortDescription": "of Staff User 2", - "terms": { - "tag": [], - "area": [ - "Artesanato", - "Arte Digital" - ] - }, - "project": { - "name": null, - "singleUrl": null - }, - "endereco": "Avenida Madre Benvenuta, 1498 , Santa M\u00f4nica, 88035-001, Florian\u00f3polis, SC", - "acessibilidade": "Sim" - } - }, - "a3dd6ebf8a66e44241b33e6874389988": { - "userId": 4, - "controller": "event", - "endpoint": "find", - "qdata": { - "@select": "id,singleUrl,name,subTitle,type,shortDescription,terms,project.name,project.singleUrl,endereco,classificacaoEtaria", - "@order": "name ASC", - "@files": "(avatar.avatarSmall):url", - "id": "IN(5)" - }, - "result": [ - { - "@files:avatar.avatarSmall": { - "url": "http:\/\/localhost:8888\/files\/event\/5\/file\/34\/imagem1-0108e4d03baa58da37295fac2878acaf.jpeg" - }, - "id": 5, - "singleUrl": "http:\/\/localhost:8888\/evento\/5\/", - "name": "Event 5", - "subTitle": null, - "type": { - "id": 1, - "name": "Padr\u00e3o" - }, - "shortDescription": "of Staff User 1", - "terms": { - "tag": [], - "linguagem": [ - "M\u00fasica Popular" - ] - }, - "project": { - "name": null, - "singleUrl": null - }, - "endereco": null, - "classificacaoEtaria": "14 anos" - } - ] - }, - "aa8b7f6f5fafea6d58bde3b58b740b3c": { - "userId": 4, - "controller": "event", - "endpoint": "findBySpace", - "qdata": { - "@from": "2016-12-16", - "@to": "2017-01-16", - "@select": "id,singleUrl,name,subTitle,type,shortDescription,terms,project.name,project.singleUrl,endereco,classificacaoEtaria", - "@order": "name ASC", - "spaceId": "6", - "@files": "(avatar.avatarSmall):url" - }, - "result": [ - { - "@files:avatar.avatarSmall": { - "url": "http:\/\/localhost:8888\/files\/event\/5\/file\/34\/imagem1-0108e4d03baa58da37295fac2878acaf.jpeg" - }, - "id": 5, - "singleUrl": "http:\/\/localhost:8888\/evento\/5\/", - "name": "Event 5", - "subTitle": null, - "type": { - "id": 1, - "name": "Padr\u00e3o" - }, - "shortDescription": "of Staff User 1", - "terms": { - "tag": [], - "linguagem": [ - "M\u00fasica Popular" - ] - }, - "project": { - "name": null, - "singleUrl": null - }, - "endereco": null, - "classificacaoEtaria": "14 anos", - "occurrences": [ - { - "id": 144, - "rule": { - "spaceId": "6", - "startsAt": "08:00", - "duration": 5, - "endsAt": "08:05", - "frequency": "weekly", - "startsOn": "2016-11-01", - "until": "2017-01-31", - "day": { - "1": "on", - "4": "on", - "6": "on" - }, - "description": "Toda seg, qui e s\u00e1b de 1 de novembro de 2016 a 31 de janeiro de 2017 \u00e0s 08:00", - "price": "R$5,00" - }, - "startsOn": { - "date": "2016-11-01 00:00:00.000000", - "timezone_type": 3, - "timezone": "America\/Sao_Paulo" - }, - "startsAt": { - "date": "2016-11-01 08:00:00.000000", - "timezone_type": 3, - "timezone": "America\/Sao_Paulo" - }, - "endsOn": null, - "endsAt": { - "date": "2016-11-01 08:05:00.000000", - "timezone_type": 3, - "timezone": "America\/Sao_Paulo" - }, - "duration": { - "y": 0, - "m": 0, - "d": 0, - "h": 0, - "i": 5, - "s": 0, - "weekday": 0, - "weekday_behavior": 0, - "first_last_day_of": 0, - "invert": 1, - "days": 0, - "special_type": 0, - "special_amount": 0, - "have_weekday_relative": 0, - "have_special_relative": 0 - }, - "frequency": null, - "separation": 1, - "recurrences": [ - { - "id": 107, - "month": null, - "day": 1, - "week": null - }, - { - "id": 108, - "month": null, - "day": 4, - "week": null - }, - { - "id": 109, - "month": null, - "day": 6, - "week": null - } - ], - "count": null, - "until": { - "date": "2017-01-31 00:00:00.000000", - "timezone_type": 3, - "timezone": "America\/Sao_Paulo" - }, - "spaceId": 6, - "space": null, - "event": null, - "editUrl": "http:\/\/localhost:8888\/eventoccurrence\/edita\/144\/", - "deleteUrl": "http:\/\/localhost:8888\/eventoccurrence\/apaga\/144\/", - "status": 1 - } - ], - "readableOccurrences": [ - "Toda seg, qui e s\u00e1b de 1 de novembro de 2016 a 31 de janeiro de 2017 \u00e0s 08:00" - ] - } - ] - }, - "4a793ca480e60729cc443ff62e31d69d": { - "userId": 4, - "controller": "space", - "endpoint": "findOne", - "qdata": { - "id": "EQ(1)", - "@select": "id,singleUrl,name,subTitle,type,shortDescription,terms,project.name,project.singleUrl,endereco,endereco,acessibilidade", - "@files": "(avatar.avatarSmall):url" - }, - "result": { - "@files:avatar.avatarSmall": { - "url": "http:\/\/localhost:8888\/files\/space\/1\/file\/14\/imagem2-1d80d1d4d8de1e61294630edb215f103.jpeg" - }, - "id": 1, - "singleUrl": "http:\/\/localhost:8888\/espaco\/1\/", - "name": "Space 1", - "subTitle": null, - "type": { - "id": 10, - "name": "Cine itinerante" - }, - "shortDescription": "of Super Admin 1", - "terms": { - "tag": [], - "area": [ - "Jogos Eletr\u00f4nicos", - "Filosofia", - "Esporte" - ] - }, - "project": { - "name": null, - "singleUrl": null - }, - "endereco": "Rua Ara\u00fajo, 22 , Rep\u00fablica, 01220-020, S\u00e3o Paulo, SP", - "acessibilidade": null - } - }, - "675c2331ba49a982b744eafc62e8b011": { - "userId": 4, - "controller": "event", - "endpoint": "find", - "qdata": { - "@select": "id,singleUrl,name,subTitle,type,shortDescription,terms,project.name,project.singleUrl,endereco,classificacaoEtaria", - "@order": "name ASC", - "@files": "(avatar.avatarSmall):url", - "id": "IN(6,3)" - }, - "result": [ - { - "id": 3, - "singleUrl": "http:\/\/localhost:8888\/evento\/3\/", - "name": "Event 3", - "subTitle": null, - "type": { - "id": 1, - "name": "Padr\u00e3o" - }, - "shortDescription": "of Admin 1", - "terms": { - "tag": [], - "linguagem": [ - "Cinema" - ] - }, - "project": { - "name": null, - "singleUrl": null - }, - "endereco": null, - "classificacaoEtaria": "Livre" - }, - { - "@files:avatar.avatarSmall": { - "url": "http:\/\/localhost:8888\/files\/event\/6\/file\/38\/imagem3-ed0f3136f28c0cbcea89572e0bf16825.jpeg" - }, - "id": 6, - "singleUrl": "http:\/\/localhost:8888\/evento\/6\/", - "name": "Event 6", - "subTitle": null, - "type": { - "id": 1, - "name": "Padr\u00e3o" - }, - "shortDescription": "of Staff User 2", - "terms": { - "tag": [], - "linguagem": [] - }, - "project": { - "name": null, - "singleUrl": null - }, - "endereco": null, - "classificacaoEtaria": null - } - ] - }, - "e181094e48cbddaee32cc9cee1c38c11": { - "userId": 4, - "controller": "space", - "endpoint": "findOne", - "qdata": { - "id": "EQ(4)", - "@select": "id,singleUrl,name,subTitle,type,shortDescription,terms,project.name,project.singleUrl,endereco,endereco,acessibilidade", - "@files": "(avatar.avatarSmall):url" - }, - "result": { - "@files:avatar.avatarSmall": { - "url": "http:\/\/localhost:8888\/files\/space\/4\/file\/6\/imagem1-0108e4d03baa58da37295fac2878acaf.jpeg" - }, - "id": 4, - "singleUrl": "http:\/\/localhost:8888\/espaco\/4\/", - "name": "Space 4", - "subTitle": null, - "type": { - "id": 60, - "name": "Museu P\u00fablico" - }, - "shortDescription": "of Admin 2", - "terms": { - "tag": [], - "area": [ - "Artes Visuais", - "Fotografia", - "Arte Digital" - ] - }, - "project": { - "name": null, - "singleUrl": null - }, - "endereco": "Rua Itapeva, 15 , Bela Vista, 01332-000, S\u00e3o Paulo, SP", - "acessibilidade": "Sim" - } - }, - "8f3940076a98317905207c2f219715f7": { - "userId": 4, - "controller": "event", - "endpoint": "findBySpace", - "qdata": { - "@from": "2016-12-16", - "@to": "2017-01-16", - "@select": "id,singleUrl,name,subTitle,type,shortDescription,terms,project.name,project.singleUrl,endereco,classificacaoEtaria", - "@order": "name ASC", - "spaceId": "4", - "@files": "(avatar.avatarSmall):url" - }, - "result": [ - { - "@files:avatar.avatarSmall": { - "url": "http:\/\/localhost:8888\/files\/event\/5\/file\/34\/imagem1-0108e4d03baa58da37295fac2878acaf.jpeg" - }, - "id": 5, - "singleUrl": "http:\/\/localhost:8888\/evento\/5\/", - "name": "Event 5", - "subTitle": null, - "type": { - "id": 1, - "name": "Padr\u00e3o" - }, - "shortDescription": "of Staff User 1", - "terms": { - "tag": [], - "linguagem": [ - "M\u00fasica Popular" - ] - }, - "project": { - "name": null, - "singleUrl": null - }, - "endereco": null, - "classificacaoEtaria": "14 anos", - "occurrences": [ - { - "id": 145, - "rule": { - "spaceId": "4", - "startsAt": "09:00", - "duration": 15, - "endsAt": "09:15", - "frequency": "weekly", - "startsOn": "2016-12-01", - "until": "2016-12-29", - "day": [ - "on", - "on", - "on", - "on" - ], - "description": "Todo dom, seg, ter e qua de 1 a 29 de dezembro de 2016 \u00e0s 09:00", - "price": "R$90,00" - }, - "startsOn": { - "date": "2016-12-01 00:00:00.000000", - "timezone_type": 3, - "timezone": "America\/Sao_Paulo" - }, - "startsAt": { - "date": "2016-12-01 09:00:00.000000", - "timezone_type": 3, - "timezone": "America\/Sao_Paulo" - }, - "endsOn": null, - "endsAt": { - "date": "2016-12-01 09:15:00.000000", - "timezone_type": 3, - "timezone": "America\/Sao_Paulo" - }, - "duration": { - "y": 0, - "m": 0, - "d": 0, - "h": 0, - "i": 15, - "s": 0, - "weekday": 0, - "weekday_behavior": 0, - "first_last_day_of": 0, - "invert": 1, - "days": 0, - "special_type": 0, - "special_amount": 0, - "have_weekday_relative": 0, - "have_special_relative": 0 - }, - "frequency": null, - "separation": 1, - "recurrences": [ - { - "id": 110, - "month": null, - "day": 0, - "week": null - }, - { - "id": 111, - "month": null, - "day": 1, - "week": null - }, - { - "id": 112, - "month": null, - "day": 2, - "week": null - }, - { - "id": 113, - "month": null, - "day": 3, - "week": null - } - ], - "count": null, - "until": { - "date": "2016-12-29 00:00:00.000000", - "timezone_type": 3, - "timezone": "America\/Sao_Paulo" - }, - "spaceId": 4, - "space": null, - "event": null, - "editUrl": "http:\/\/localhost:8888\/eventoccurrence\/edita\/145\/", - "deleteUrl": "http:\/\/localhost:8888\/eventoccurrence\/apaga\/145\/", - "status": 1 - } - ], - "readableOccurrences": [ - "Todo dom, seg, ter e qua de 1 a 29 de dezembro de 2016 \u00e0s 09:00" - ] - } - ] - }, - "94faf7d05252412796eba602e3418e2b": { - "userId": 4, - "controller": "event", - "endpoint": "find", - "qdata": { - "@count": "1", - "id": "IN(5,7,3,6,522)" - }, - "result": 5 - }, - "082a905deadd20aa7caba289caf1374b": { - "userId": 4, - "controller": "event", - "endpoint": "findByLocation", - "qdata": { - "@count": "1", - "@from": "2016-12-01", - "@to": "2017-01-16" - }, - "result": 5 - }, - "1a2fa5a5348631819777e0299921d2f8": { - "userId": 4, - "controller": "event", - "endpoint": "find", - "qdata": { - "@select": "id", - "@order": "name ASC", - "id": "IN(5,7,5,3,7,7,7,7,7,7,7,6,3,6,522)" - }, - "result": [ - { - "id": 3 - }, - { - "id": 5 - }, - { - "id": 6 - }, - { - "id": 7 - }, - { - "id": 522 - } - ] - }, - "a04aa192271173ff8335c98815e8dbf3": { - "userId": 4, - "controller": "space", - "endpoint": "find", - "qdata": { - "id": "IN(7,8,6,5,4,3,2,1)", - "@select": "id,name,location", - "@order": "name ASC" - }, - "result": [ - { - "id": 1, - "name": "Space 1", - "location": { - "latitude": "-23.5443493", - "longitude": "-46.6444262" - } - }, - { - "id": 2, - "name": "Space 2", - "location": { - "latitude": "-27.5906075", - "longitude": "-48.5129766" - } - }, - { - "id": 3, - "name": "Space 3", - "location": { - "latitude": "-23.5299146", - "longitude": "-46.6343522" - } - }, - { - "id": 4, - "name": "Space 4", - "location": { - "latitude": "-23.5575987", - "longitude": "-46.6499111" - } - }, - { - "id": 5, - "name": "Space 5", - "location": { - "latitude": "-27.5666995", - "longitude": "-48.5102924" - } - }, - { - "id": 6, - "name": "Space 6", - "location": { - "latitude": "-27.5887012", - "longitude": "-48.5070641" - } - }, - { - "id": 7, - "name": "Space 7", - "location": { - "latitude": "-23.5394312", - "longitude": "-46.6915816" - } - }, - { - "id": 8, - "name": "Space 8", - "location": { - "latitude": "-23.5466151", - "longitude": "-46.6468627" - } - } - ] - }, - "a1c0c555d1d1e6840cc19137177d7c3a": { - "userId": 4, - "controller": "space", - "endpoint": "findByEvents", - "qdata": { - "@from": "2016-12-01", - "@to": "2017-01-16", - "@select": "id,name,location", - "@order": "name ASC" - }, - "result": [ - { - "id": 1, - "name": "Space 1", - "location": { - "latitude": "-23.5443493", - "longitude": "-46.6444262" - } - }, - { - "id": 2, - "name": "Space 2", - "location": { - "latitude": "-27.5906075", - "longitude": "-48.5129766" - } - }, - { - "id": 3, - "name": "Space 3", - "location": { - "latitude": "-23.5299146", - "longitude": "-46.6343522" - } - }, - { - "id": 4, - "name": "Space 4", - "location": { - "latitude": "-23.5575987", - "longitude": "-46.6499111" - } - }, - { - "id": 5, - "name": "Space 5", - "location": { - "latitude": "-27.5666995", - "longitude": "-48.5102924" - } - }, - { - "id": 6, - "name": "Space 6", - "location": { - "latitude": "-27.5887012", - "longitude": "-48.5070641" - } - }, - { - "id": 7, - "name": "Space 7", - "location": { - "latitude": "-23.5394312", - "longitude": "-46.6915816" - } - }, - { - "id": 8, - "name": "Space 8", - "location": { - "latitude": "-23.5466151", - "longitude": "-46.6468627" - } - } - ] - }, - "7b65e5cca19f526b62b9d07bc483450f": { - "userId": 4, - "controller": "event", - "endpoint": "findByLocation", - "qdata": { - "@count": "1", - "@from": "2016-12-01", - "@to": "2017-01-31" - }, - "result": 5 - }, - "4a8a9e2b8eb3a6089177d7a6670a4611": { - "userId": 4, - "controller": "space", - "endpoint": "findByEvents", - "qdata": { - "@from": "2016-12-01", - "@to": "2017-01-31", - "@select": "id,name,location", - "@order": "name ASC" - }, - "result": [ - { - "id": 1, - "name": "Space 1", - "location": { - "latitude": "-23.5443493", - "longitude": "-46.6444262" - } - }, - { - "id": 2, - "name": "Space 2", - "location": { - "latitude": "-27.5906075", - "longitude": "-48.5129766" - } - }, - { - "id": 3, - "name": "Space 3", - "location": { - "latitude": "-23.5299146", - "longitude": "-46.6343522" - } - }, - { - "id": 4, - "name": "Space 4", - "location": { - "latitude": "-23.5575987", - "longitude": "-46.6499111" - } - }, - { - "id": 5, - "name": "Space 5", - "location": { - "latitude": "-27.5666995", - "longitude": "-48.5102924" - } - }, - { - "id": 6, - "name": "Space 6", - "location": { - "latitude": "-27.5887012", - "longitude": "-48.5070641" - } - }, - { - "id": 7, - "name": "Space 7", - "location": { - "latitude": "-23.5394312", - "longitude": "-46.6915816" - } - }, - { - "id": 8, - "name": "Space 8", - "location": { - "latitude": "-23.5466151", - "longitude": "-46.6468627" - } - } - ] - }, - "18b0197f28ae223b376570b2ced67431": { - "userId": 4, - "controller": "space", - "endpoint": "find", - "qdata": { - "@select": "id,name,shortDescription,location,terms,__metadata", - "_geoLocation": "GEONEAR(-49.9658203125,-26.549222577692028,285486)" - }, - "result": [ - { - "id": 6, - "name": "Space 6", - "shortDescription": "of Staff User 2", - "location": { - "latitude": "-27.5887012", - "longitude": "-48.5070641" - }, - "terms": { - "tag": [], - "area": [ - "Artesanato", - "Arte Digital" - ] - }, - "__metadata": null - }, - { - "id": 5, - "name": "Space 5", - "shortDescription": "of Staff User 1", - "location": { - "latitude": "-27.5666995", - "longitude": "-48.5102924" - }, - "terms": { - "tag": [], - "area": [ - "Cultura Negra", - "Circo", - "M\u00fasica" - ] - }, - "__metadata": null - }, - { - "id": 2, - "name": "Space 2", - "shortDescription": "of Super Admin 2", - "location": { - "latitude": "-27.5906075", - "longitude": "-48.5129766" - }, - "terms": { - "tag": [], - "area": [ - "Circo", - "Arte de Rua" - ] - }, - "__metadata": null - } - ] - }, - "5ccee8e9605d0bf0a31daebc55a8764f": { - "userId": 4, - "controller": "event", - "endpoint": "find", - "qdata": { - "@count": "1", - "id": "IN(5,3,7,522)" - }, - "result": 4 - }, - "b6731b07187b1288d9eeacbc583db4bc": { - "userId": 4, - "controller": "event", - "endpoint": "findByLocation", - "qdata": { - "@count": "1", - "@from": "2016-12-01", - "@to": "2017-01-31", - "_geoLocation": "GEONEAR(-49.9658203125,-26.549222577692028,285486)" - }, - "result": 4 - }, - "6aba68eb3d0365bb17ebd919d54daa5d": { - "userId": 4, - "controller": "event", - "endpoint": "find", - "qdata": { - "@select": "id", - "_geoLocation": "GEONEAR(-49.9658203125,-26.549222577692028,285486)", - "@order": "name ASC", - "id": "IN(5,7,5,3,7,7,7,7,7,7,7,6,3,6,522)" - }, - "result": [ - { - "id": 3 - }, - { - "id": 5 - }, - { - "id": 6 - }, - { - "id": 7 - }, - { - "id": 522 - } - ] - }, - "fe10ac542fad1bd8e8158e03ef2f2d66": { - "userId": 4, - "controller": "space", - "endpoint": "find", - "qdata": { - "id": "IN(7,8,6,5,4,3,2,1)", - "_geoLocation": "GEONEAR(-49.9658203125,-26.549222577692028,285486)", - "@select": "id,name,location", - "@order": "name ASC" - }, - "result": [ - { - "id": 2, - "name": "Space 2", - "location": { - "latitude": "-27.5906075", - "longitude": "-48.5129766" - } - }, - { - "id": 5, - "name": "Space 5", - "location": { - "latitude": "-27.5666995", - "longitude": "-48.5102924" - } - }, - { - "id": 6, - "name": "Space 6", - "location": { - "latitude": "-27.5887012", - "longitude": "-48.5070641" - } - } - ] - }, - "62c2df28a327380d0853d6afe70c428b": { - "userId": 4, - "controller": "space", - "endpoint": "findByEvents", - "qdata": { - "@from": "2016-12-01", - "@to": "2017-01-31", - "_geoLocation": "GEONEAR(-49.9658203125,-26.549222577692028,285486)", - "@select": "id,name,location", - "@order": "name ASC" - }, - "result": [ - { - "id": 2, - "name": "Space 2", - "location": { - "latitude": "-27.5906075", - "longitude": "-48.5129766" - } - }, - { - "id": 5, - "name": "Space 5", - "location": { - "latitude": "-27.5666995", - "longitude": "-48.5102924" - } - }, - { - "id": 6, - "name": "Space 6", - "location": { - "latitude": "-27.5887012", - "longitude": "-48.5070641" - } - } - ] - }, - "2283e60748e3d22f30f40e43668bb937": { - "userId": 4, - "controller": "space", - "endpoint": "find", - "qdata": { - "_geoLocation": "GEONEAR(-49.9658203125,-26.549222577692028,285486)", - "@select": "id,name,location", - "@order": "name ASC" - }, - "result": [ - { - "id": 2, - "name": "Space 2", - "location": { - "latitude": "-27.5906075", - "longitude": "-48.5129766" - } - }, - { - "id": 5, - "name": "Space 5", - "location": { - "latitude": "-27.5666995", - "longitude": "-48.5102924" - } - }, - { - "id": 6, - "name": "Space 6", - "location": { - "latitude": "-27.5887012", - "longitude": "-48.5070641" - } - } - ] - }, - "61c0d7e2f202ba2e154bec4145f590be": { - "userId": 4, - "controller": "seal", - "endpoint": "find", - "qdata": { - "@select": "id,name,status, singleUrl", - "@permissions": "@control", - "@files": "(avatar.avatarMedium):url", - "@ORDER": "createTimestamp DESC" - }, - "result": [ - { - "id": 1, - "name": "Selo Mapas", - "status": 1, - "singleUrl": "http:\/\/localhost:8888\/selo\/1\/" - } - ] - }, - "375028b8ebdfe7de3aee709fdc1e8948": { - "userId": 4, - "controller": "space", - "endpoint": "find", - "qdata": { - "name": "ilike(**)", - "@select": "id,name,terms,type,shortDescription", - "@limit": "10", - "@page": "1", - "@order": "name ASC", - "@files": "(avatar.avatarSmall):url", - "id": "!in(2)", - "_": "1481854185283" - }, - "result": [ - { - "@files:avatar.avatarSmall": { - "url": "http:\/\/localhost:8888\/files\/space\/1\/file\/14\/imagem2-1d80d1d4d8de1e61294630edb215f103.jpeg" - }, - "id": 1, - "name": "Space 1", - "terms": { - "tag": [], - "area": [ - "Jogos Eletr\u00f4nicos", - "Filosofia", - "Esporte" - ] - }, - "type": { - "id": 10, - "name": "Cine itinerante" - }, - "shortDescription": "of Super Admin 1" - }, - { - "id": 3, - "name": "Space 3", - "terms": { - "tag": [], - "area": [ - "Jogos Eletr\u00f4nicos", - "Arte Digital" - ] - }, - "type": { - "id": 10, - "name": "Cine itinerante" - }, - "shortDescription": "of Admin 1" - }, - { - "@files:avatar.avatarSmall": { - "url": "http:\/\/localhost:8888\/files\/space\/4\/file\/6\/imagem1-0108e4d03baa58da37295fac2878acaf.jpeg" - }, - "id": 4, - "name": "Space 4", - "terms": { - "tag": [], - "area": [ - "Artes Visuais", - "Fotografia", - "Arte Digital" - ] - }, - "type": { - "id": 60, - "name": "Museu P\u00fablico" - }, - "shortDescription": "of Admin 2" - }, - { - "id": 5, - "name": "Space 5", - "terms": { - "tag": [], - "area": [ - "Cultura Negra", - "Circo", - "M\u00fasica" - ] - }, - "type": { - "id": 91, - "name": "Circo Fixo" - }, - "shortDescription": "of Staff User 1" - }, - { - "@files:avatar.avatarSmall": { - "url": "http:\/\/localhost:8888\/files\/space\/6\/file\/10\/imagem3-ed0f3136f28c0cbcea89572e0bf16825.jpeg" - }, - "id": 6, - "name": "Space 6", - "terms": { - "tag": [], - "area": [ - "Artesanato", - "Arte Digital" - ] - }, - "type": { - "id": 61, - "name": "Museu Privado" - }, - "shortDescription": "of Staff User 2" - }, - { - "id": 7, - "name": "Space 7", - "terms": { - "tag": [], - "area": [ - "Arquitetura-Urbanismo", - "Artesanato" - ] - }, - "type": { - "id": 20, - "name": "Biblioteca P\u00fablica" - }, - "shortDescription": "of Normal User 1" - }, - { - "id": 8, - "name": "Space 8", - "terms": { - "tag": [], - "area": [ - "Antropologia", - "M\u00fasica" - ] - }, - "type": { - "id": 22, - "name": "Biblioteca Comunit\u00e1ria (inclu\u00ed\u00addos os pontos de leitura)" - }, - "shortDescription": "of Normal User 1" - } - ] - }, - "18024cd5d9ea4fd79dd3aca6a1bb0df5": { - "userId": 4, - "controller": "project", - "endpoint": "find", - "qdata": { - "name": "ilike(**)", - "@select": "id,name,terms,type", - "@limit": "10", - "@page": "1", - "@order": "name ASC", - "@files": "(avatar.avatarSmall):url", - "@permissions": "requestEventRelation", - "_": "1481854185284" - }, - "result": [ - { - "id": 1, - "name": "Project 1", - "terms": { - "tag": [] - }, - "type": { - "id": 1, - "name": "Festival" - } - }, - { - "id": 2, - "name": "Project 2", - "terms": { - "tag": [] - }, - "type": { - "id": 1, - "name": "Festival" - } - }, - { - "id": 3, - "name": "Project 3", - "terms": { - "tag": [] - }, - "type": { - "id": 1, - "name": "Festival" - } - }, - { - "id": 4, - "name": "Project 4", - "terms": { - "tag": [] - }, - "type": { - "id": 1, - "name": "Festival" - } - }, - { - "id": 5, - "name": "Project 5", - "terms": { - "tag": [] - }, - "type": { - "id": 1, - "name": "Festival" - } - }, - { - "id": 6, - "name": "Project 6", - "terms": { - "tag": [] - }, - "type": { - "id": 1, - "name": "Festival" - } - }, - { - "id": 7, - "name": "Project 7", - "terms": { - "tag": [] - }, - "type": { - "id": 1, - "name": "Festival" - } - }, - { - "id": 8, - "name": "Project 8", - "terms": { - "tag": [] - }, - "type": { - "id": 1, - "name": "Festival" - } - } - ] - }, - "69fff466d718750ab699c45a90e0aacb": { - "userId": 10, - "controller": "space", - "endpoint": "find", - "qdata": { - "@count": 1, - "user": "EQ(10)" - }, - "result": 0 - }, - "0183884db82d05db7f9a25a136b822df": { - "userId": 10, - "controller": "agent", - "endpoint": "find", - "qdata": { - "@count": 1, - "user": "EQ(10)" - }, - "result": 1 - }, - "9a8389af3e65e89e33c74de322ba3f71": { - "userId": 10, - "controller": "event", - "endpoint": "find", - "qdata": { - "@count": 1, - "user": "EQ(10)" - }, - "result": 0 - }, - "a222e0f4c9ee0b99849dfb8c8432f76e": { - "userId": 10, - "controller": "project", - "endpoint": "find", - "qdata": { - "@count": 1, - "user": "EQ(10)" - }, - "result": 0 - }, - "5fde85779e6d14af06af74c707b0271c": { - "userId": 10, - "controller": "seal", - "endpoint": "find", - "qdata": { - "@count": 1, - "user": "EQ(10)" - }, - "result": 0 - }, - "59072efd724055f66c64e2eafd4274cc": { - "userId": 10, - "controller": "notification", - "endpoint": "find", - "qdata": { - "@select": "id,status,isRequest,createTimestamp,message,approveUrl,request.permissionTo.approve,request.permissionTo.reject,request.requesterUser.id", - "user": "EQ(@me)", - "@ORDER": "createTimestamp DESC" - }, - "result": [] - }, - "99b43c94425a095408ca6aab89dba5f0": { - "userId": 10, - "controller": "event", - "endpoint": "find", - "qdata": { - "@select": "name,type,status,terms,classificacaoEtaria,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,createTimestamp", - "@files": "(avatar.avatarSmall):url", - "user": "EQ(10)", - "status": "EQ(1)", - "@limit": 50, - "@order": "name ASC", - "@page": 1 - }, - "result": [] - }, - "cb9b922b614cb10106209161ebdc8c55": { - "userId": 10, - "controller": "event", - "endpoint": "find", - "qdata": { - "@select": "name,type,status,terms,classificacaoEtaria,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,createTimestamp", - "@files": "(avatar.avatarSmall):url", - "user": "EQ(10)", - "status": "EQ(0)", - "@permissions": "view" - }, - "result": [] - }, - "b35b27fbd90d145529b4873e816a5792": { - "userId": 10, - "controller": "event", - "endpoint": "find", - "qdata": { - "@select": "name,type,status,terms,classificacaoEtaria,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,createTimestamp", - "@files": "(avatar.avatarSmall):url", - "user": "EQ(10)", - "status": "EQ(-10)", - "@permissions": "view" - }, - "result": [] - }, - "5f848a6135c82e40bb63dc6c1fb0d0ef": { - "userId": 10, - "controller": "space", - "endpoint": "find", - "qdata": { - "@select": "name,type,status,terms,endereco,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,acessibilidade,createTimestamp", - "@files": "(avatar.avatarSmall):url", - "user": "EQ(10)", - "status": "EQ(1)", - "@limit": 50, - "@order": "name ASC", - "@page": 1 - }, - "result": [] - }, - "674d0deff7dfa3b618f39589eebe5c64": { - "userId": 10, - "controller": "space", - "endpoint": "find", - "qdata": { - "@select": "name,type,status,terms,endereco,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,acessibilidade,createTimestamp", - "@files": "(avatar.avatarSmall):url", - "user": "EQ(10)", - "status": "EQ(0)", - "@permissions": "view" - }, - "result": [] - }, - "de683dabfbbf039b0855c2fefb1cdb87": { - "userId": 10, - "controller": "space", - "endpoint": "find", - "qdata": { - "@select": "name,type,status,terms,endereco,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,acessibilidade,createTimestamp", - "@files": "(avatar.avatarSmall):url", - "user": "EQ(10)", - "status": "EQ(-10)", - "@permissions": "view" - }, - "result": [] - }, - "458013deaccc3c1e253c7cdd3d58433c": { - "userId": 10, - "controller": "seal", - "endpoint": "find", - "qdata": { - "@select": "id,name,status, singleUrl", - "@permissions": "@control", - "@files": "(avatar.avatarMedium):url", - "@ORDER": "createTimestamp DESC" - }, - "result": [] - }, - "0727cd3e79e092916241a5096943aaac": { - "userId": 10, - "controller": "agent", - "endpoint": "find", - "qdata": { - "@files": "(avatar.avatarSmall):url", - "@limit": "20", - "@order": "name", - "@page": "1", - "@select": "id,name,type,shortDescription,terms", - "name": "ILIKE(*ad*)" - }, - "result": [ - { - "@files:avatar.avatarSmall": { - "url": "http:\/\/localhost:8888\/files\/agent\/3\/file\/18\/imagem1-0108e4d03baa58da37295fac2878acaf.jpeg" - }, - "id": 3, - "name": "Admin 1", - "type": { - "id": 1, - "name": "Individual" - }, - "shortDescription": "short description", - "terms": { - "tag": [], - "area": [ - "Arquitetura-Urbanismo" - ] - } - }, - { - "@files:avatar.avatarSmall": { - "url": "http:\/\/localhost:8888\/files\/agent\/4\/file\/22\/imagem2-1d80d1d4d8de1e61294630edb215f103.jpeg" - }, - "id": 4, - "name": "Admin 2", - "type": { - "id": 1, - "name": "Individual" - }, - "shortDescription": "short description", - "terms": { - "tag": [], - "area": [ - "Arquivo" - ] - } - }, - { - "id": 1, - "name": "Super Admin 1", - "type": { - "id": 1, - "name": "Individual" - }, - "shortDescription": "short description", - "terms": { - "tag": [], - "area": [ - "Antropologia" - ] - } - }, - { - "id": 2, - "name": "Super Admin 2", - "type": { - "id": 1, - "name": "Individual" - }, - "shortDescription": "short description", - "terms": { - "tag": [], - "area": [ - "Arqueologia" - ] - } - } - ] - }, - "74379a5a55372b74d88881002b3b7f35": { - "userId": 10, - "controller": "agent", - "endpoint": "find", - "qdata": { - "@files": "(avatar.avatarSmall):url", - "@limit": "20", - "@order": "name", - "@page": "1", - "@select": "id,name,type,shortDescription,terms", - "name": "ILIKE(*staf*)" - }, - "result": [ - { - "id": 5, - "name": "Staff User 1", - "type": { - "id": 1, - "name": "Individual" - }, - "shortDescription": "short description", - "terms": { - "tag": [], - "area": [ - "Artesanato" - ] - } - }, - { - "id": 6, - "name": "Staff User 2", - "type": { - "id": 1, - "name": "Individual" - }, - "shortDescription": "short description", - "terms": { - "tag": [], - "area": [ - "Artes Visuais" - ] - } - } - ] - }, - "3a546b208d41f8e16b86ee581944f4ec": { - "userId": 10, - "controller": "event", - "endpoint": "find", - "qdata": { - "@count": "1", - "id": "IN(5,3,6,522)" - }, - "result": 4 - }, - "cbf1e738a791ce1ec51048db8e5d1cff": { - "userId": 10, - "controller": "event", - "endpoint": "findByLocation", - "qdata": { - "@count": "1", - "@from": "2016-12-16", - "@to": "2017-01-16" - }, - "result": 4 - }, - "58a3656a5990aa51464b9fdca9113024": { - "userId": 10, - "controller": "event", - "endpoint": "find", - "qdata": { - "@select": "id", - "@order": "name ASC", - "id": "IN(5,5,3,6,3,6,522)" - }, - "result": [ - { - "id": 3 - }, - { - "id": 5 - }, - { - "id": 6 - }, - { - "id": 522 - } - ] - }, - "2075cd90462a3c9e40ac003f7a69eeaa": { - "userId": 10, - "controller": "space", - "endpoint": "find", - "qdata": { - "id": "IN(6,4,2,1)", - "@select": "id,name,location", - "@order": "name ASC" - }, - "result": [ - { - "id": 1, - "name": "Space 1", - "location": { - "latitude": "-23.5443493", - "longitude": "-46.6444262" - } - }, - { - "id": 2, - "name": "Space 2", - "location": { - "latitude": "-27.5906075", - "longitude": "-48.5129766" - } - }, - { - "id": 4, - "name": "Space 4", - "location": { - "latitude": "-23.5575987", - "longitude": "-46.6499111" - } - }, - { - "id": 6, - "name": "Space 6", - "location": { - "latitude": "-27.5887012", - "longitude": "-48.5070641" - } - } - ] - }, - "6c06ff68892973fcc267fb1ca78796f1": { - "userId": 10, - "controller": "space", - "endpoint": "findByEvents", - "qdata": { - "@from": "2016-12-16", - "@to": "2017-01-16", - "@select": "id,name,location", - "@order": "name ASC" - }, - "result": [ - { - "id": 1, - "name": "Space 1", - "location": { - "latitude": "-23.5443493", - "longitude": "-46.6444262" - } - }, - { - "id": 2, - "name": "Space 2", - "location": { - "latitude": "-27.5906075", - "longitude": "-48.5129766" - } - }, - { - "id": 4, - "name": "Space 4", - "location": { - "latitude": "-23.5575987", - "longitude": "-46.6499111" - } - }, - { - "id": 6, - "name": "Space 6", - "location": { - "latitude": "-27.5887012", - "longitude": "-48.5070641" - } - } - ] - }, - "ca0712524a2075027ed72ecb4610e871": { - "userId": 11, - "controller": "space", - "endpoint": "find", - "qdata": { - "@count": 1, - "user": "EQ(11)" - }, - "result": 0 - }, - "0ecfe8be9b8f45e3a902c6449ec07304": { - "userId": 11, - "controller": "agent", - "endpoint": "find", - "qdata": { - "@count": 1, - "user": "EQ(11)" - }, - "result": 1 - }, - "263a46f7a4100af6a916eeedadd35dd1": { - "userId": 11, - "controller": "event", - "endpoint": "find", - "qdata": { - "@count": 1, - "user": "EQ(11)" - }, - "result": 1 - }, - "2d9a3ed68df9294f5446f2d604331aa0": { - "userId": 11, - "controller": "project", - "endpoint": "find", - "qdata": { - "@count": 1, - "user": "EQ(11)" - }, - "result": 0 - }, - "86c28fe84622db54ea4b4f019ce8d019": { - "userId": 11, - "controller": "seal", - "endpoint": "find", - "qdata": { - "@count": 1, - "user": "EQ(11)" - }, - "result": 0 - }, - "0617d6f6748de137c43555bb6611390b": { - "userId": 11, - "controller": "notification", - "endpoint": "find", - "qdata": { - "@select": "id,status,isRequest,createTimestamp,message,approveUrl,request.permissionTo.approve,request.permissionTo.reject,request.requesterUser.id", - "user": "EQ(@me)", - "@ORDER": "createTimestamp DESC" - }, - "result": [ - { - "id": 25, - "status": 1, - "isRequest": false, - "createTimestamp": { - "date": "2016-12-16 00:02:14.000000", - "timezone_type": 3, - "timezone": "America\/Sao_Paulo" - }, - "message": "Super Admin 2<\/a> aceitou adicionar o evento Novo Evento<\/a> que ocorre Dia 30 de dezembro de 2016 \u00e0s 22:22<\/em> no espa\u00e7o Space 2<\/a>.", - "approveUrl": "http:\/\/localhost:8888\/aprovar-notificacao\/25\/", - "request": { - "permissionTo": { - "approve": null, - "reject": null - }, - "requesterUser": { - "id": null - } - } - }, - { - "id": 16, - "status": 1, - "isRequest": false, - "createTimestamp": { - "date": "2016-12-15 23:59:50.000000", - "timezone_type": 3, - "timezone": "America\/Sao_Paulo" - }, - "message": "Normal User 1<\/a> aceitou o relacionamento do agente Normal User 1<\/a> com o evento Novo Evento<\/a>.", - "approveUrl": "http:\/\/localhost:8888\/aprovar-notificacao\/16\/", - "request": { - "permissionTo": { - "approve": null, - "reject": null - }, - "requesterUser": { - "id": null - } - } - }, - { - "id": 14, - "status": 1, - "isRequest": true, - "createTimestamp": { - "date": "2016-12-15 23:58:05.000000", - "timezone_type": 3, - "timezone": "America\/Sao_Paulo" - }, - "message": "Sua requisi\u00e7\u00e3o para relacionar o agente Staff User 1<\/a> ao evento Novo Evento<\/a> foi enviada.", - "approveUrl": "http:\/\/localhost:8888\/aprovar-notificacao\/14\/", - "request": { - "permissionTo": { - "approve": false, - "reject": true - }, - "requesterUser": { - "id": 11 - } - } - }, - { - "id": 12, - "status": 1, - "isRequest": true, - "createTimestamp": { - "date": "2016-12-15 23:57:42.000000", - "timezone_type": 3, - "timezone": "America\/Sao_Paulo" - }, - "message": "Sua requisi\u00e7\u00e3o para relacionar o agente Normal User 2<\/a> ao evento Novo Evento<\/a> foi enviada.", - "approveUrl": "http:\/\/localhost:8888\/aprovar-notificacao\/12\/", - "request": { - "permissionTo": { - "approve": false, - "reject": true - }, - "requesterUser": { - "id": 11 - } - } - }, - { - "id": 8, - "status": 1, - "isRequest": true, - "createTimestamp": { - "date": "2016-12-15 23:57:14.000000", - "timezone_type": 3, - "timezone": "America\/Sao_Paulo" - }, - "message": "Sua requisi\u00e7\u00e3o para criar a ocorr\u00eancia do evento Novo Evento<\/a> no espa\u00e7o Space 1<\/a> foi enviada.", - "approveUrl": "http:\/\/localhost:8888\/aprovar-notificacao\/8\/", - "request": { - "permissionTo": { - "approve": false, - "reject": true - }, - "requesterUser": { - "id": 11 - } - } - }, - { - "id": 7, - "status": 1, - "isRequest": false, - "createTimestamp": { - "date": "2016-12-15 23:53:41.000000", - "timezone_type": 3, - "timezone": "America\/Sao_Paulo" - }, - "message": "New 1<\/a> aceitou o relacionamento do agente New 1<\/a> com o agente New 2<\/a>.", - "approveUrl": "http:\/\/localhost:8888\/aprovar-notificacao\/7\/", - "request": { - "permissionTo": { - "approve": null, - "reject": null - }, - "requesterUser": { - "id": null - } - } - } - ] - }, - "3922d54491764ca0cfe077e996ff96f2": { - "userId": 11, - "controller": "event", - "endpoint": "find", - "qdata": { - "@select": "name,type,status,terms,classificacaoEtaria,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,createTimestamp", - "@files": "(avatar.avatarSmall):url", - "user": "EQ(11)", - "status": "EQ(1)", - "@limit": 50, - "@order": "name ASC", - "@page": 1 - }, - "result": [ - { - "name": "Novo Evento", - "type": { - "id": 1, - "name": "Padr\u00e3o" - }, - "status": 1, - "terms": { - "tag": [], - "linguagem": [ - "Cinema", - "Artes Circenses" - ] - }, - "classificacaoEtaria": "Livre", - "singleUrl": "http:\/\/localhost:8888\/evento\/522\/", - "editUrl": "http:\/\/localhost:8888\/eventos\/edita\/522\/", - "deleteUrl": "http:\/\/localhost:8888\/eventos\/apaga\/522\/", - "publishUrl": "http:\/\/localhost:8888\/eventos\/publish\/522\/", - "unpublishUrl": "http:\/\/localhost:8888\/eventos\/unpublish\/522\/", - "createTimestamp": { - "date": "2016-12-15 23:56:29.000000", - "timezone_type": 3, - "timezone": "America\/Sao_Paulo" - } - } - ] - }, - "cd9e4491ebd725350c3f0bea8d926785": { - "userId": 11, - "controller": "event", - "endpoint": "find", - "qdata": { - "@select": "name,type,status,terms,classificacaoEtaria,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,createTimestamp", - "@files": "(avatar.avatarSmall):url", - "user": "EQ(11)", - "status": "EQ(0)", - "@permissions": "view" - }, - "result": [] - }, - "12deb8d433e267df3176464ef834d608": { - "userId": 11, - "controller": "event", - "endpoint": "find", - "qdata": { - "@select": "name,type,status,terms,classificacaoEtaria,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,createTimestamp", - "@files": "(avatar.avatarSmall):url", - "user": "EQ(11)", - "status": "EQ(-10)", - "@permissions": "view" - }, - "result": [] - }, - "4c51a4f58ea8793d53e0d9c1896dd1ff": { - "userId": 11, - "controller": "space", - "endpoint": "find", - "qdata": { - "@select": "name,type,status,terms,endereco,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,acessibilidade,createTimestamp", - "@files": "(avatar.avatarSmall):url", - "user": "EQ(11)", - "status": "EQ(1)", - "@limit": 50, - "@order": "name ASC", - "@page": 1 - }, - "result": [] - }, - "e5e68a12ecd2bae695d3773aa7625bfa": { - "userId": 11, - "controller": "space", - "endpoint": "find", - "qdata": { - "@select": "name,type,status,terms,endereco,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,acessibilidade,createTimestamp", - "@files": "(avatar.avatarSmall):url", - "user": "EQ(11)", - "status": "EQ(0)", - "@permissions": "view" - }, - "result": [] - }, - "9fd9cecb2d339317d9d2a1903a49b634": { - "userId": 11, - "controller": "space", - "endpoint": "find", - "qdata": { - "@select": "name,type,status,terms,endereco,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,acessibilidade,createTimestamp", - "@files": "(avatar.avatarSmall):url", - "user": "EQ(11)", - "status": "EQ(-10)", - "@permissions": "view" - }, - "result": [] - }, - "a97ca60d578532ee94834635a231a1b1": { - "userId": 11, - "controller": "seal", - "endpoint": "find", - "qdata": { - "@select": "id,name,status, singleUrl", - "@permissions": "@control", - "@files": "(avatar.avatarMedium):url", - "@ORDER": "createTimestamp DESC" - }, - "result": [] - }, - "024b592a38d4657e0ac16c113db0e56f": { - "userId": 7, - "controller": "space", - "endpoint": "find", - "qdata": { - "@count": 1, - "user": "EQ(7)" - }, - "result": 1 - }, - "e7e72353465462e39c66175e7f14a8e9": { - "userId": 7, - "controller": "agent", - "endpoint": "find", - "qdata": { - "@count": 1, - "user": "EQ(7)" - }, - "result": 1 - }, - "d24750bcbc17921e4e050dc3eeef32e4": { - "userId": 7, - "controller": "event", - "endpoint": "find", - "qdata": { - "@count": 1, - "user": "EQ(7)" - }, - "result": 1 - }, - "9fcd79151e7ed8cbc936f81a8a4f3444": { - "userId": 7, - "controller": "project", - "endpoint": "find", - "qdata": { - "@count": 1, - "user": "EQ(7)" - }, - "result": 1 - }, - "f54215778e1c5f0feb27b50004433873": { - "userId": 7, - "controller": "seal", - "endpoint": "find", - "qdata": { - "@count": 1, - "user": "EQ(7)" - }, - "result": 0 - }, - "fa66a6b0dd4584bf74570a9a176ec264": { - "userId": 7, - "controller": "notification", - "endpoint": "find", - "qdata": { - "@select": "id,status,isRequest,createTimestamp,message,approveUrl,request.permissionTo.approve,request.permissionTo.reject,request.requesterUser.id", - "user": "EQ(@me)", - "@ORDER": "createTimestamp DESC" - }, - "result": [ - { - "id": 4, - "status": 1, - "isRequest": false, - "createTimestamp": { - "date": "2016-12-15 22:24:28.000000", - "timezone_type": 3, - "timezone": "America\/Sao_Paulo" - }, - "message": "Seu \u00faltimo acesso foi em 21\/05\/2014<\/b>, atualize suas informa\u00e7\u00f5es se necess\u00e1rio.", - "approveUrl": "http:\/\/localhost:8888\/aprovar-notificacao\/4\/", - "request": { - "permissionTo": { - "approve": null, - "reject": null - }, - "requesterUser": { - "id": null - } - } - } - ] - }, - "7507130526e3fb8298e6565ef665648c": { - "userId": 7, - "controller": "event", - "endpoint": "find", - "qdata": { - "@select": "name,type,status,terms,classificacaoEtaria,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,createTimestamp", - "@files": "(avatar.avatarSmall):url", - "user": "EQ(7)", - "status": "EQ(1)", - "@limit": 50, - "@order": "name ASC", - "@page": 1 - }, - "result": [ - { - "@files:avatar.avatarSmall": { - "url": "http:\/\/localhost:8888\/files\/event\/7\/file\/42\/imagem2-1d80d1d4d8de1e61294630edb215f103.jpeg" - }, - "name": "Event 7", - "type": { - "id": 1, - "name": "Padr\u00e3o" - }, - "status": 1, - "terms": { - "tag": [], - "linguagem": [ - "Cultura Ind\u00edgena", - "R\u00e1dio" - ] - }, - "classificacaoEtaria": "16 anos", - "singleUrl": "http:\/\/localhost:8888\/evento\/7\/", - "editUrl": "http:\/\/localhost:8888\/eventos\/edita\/7\/", - "deleteUrl": "http:\/\/localhost:8888\/eventos\/apaga\/7\/", - "publishUrl": "http:\/\/localhost:8888\/eventos\/publish\/7\/", - "unpublishUrl": "http:\/\/localhost:8888\/eventos\/unpublish\/7\/", - "createTimestamp": { - "date": "2014-05-21 18:04:44.000000", - "timezone_type": 3, - "timezone": "America\/Sao_Paulo" - } - } - ] - }, - "00ee77a2ae3f43c959ef2791d7b95475": { - "userId": 7, - "controller": "event", - "endpoint": "find", - "qdata": { - "@select": "name,type,status,terms,classificacaoEtaria,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,createTimestamp", - "@files": "(avatar.avatarSmall):url", - "user": "EQ(7)", - "status": "EQ(0)", - "@permissions": "view" - }, - "result": [] - }, - "08f848367416bd65fec59a7658d9ab40": { - "userId": 7, - "controller": "event", - "endpoint": "find", - "qdata": { - "@select": "name,type,status,terms,classificacaoEtaria,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,createTimestamp", - "@files": "(avatar.avatarSmall):url", - "user": "EQ(7)", - "status": "EQ(-10)", - "@permissions": "view" - }, - "result": [] - }, - "aa787cd0f6714d6e3506368049d549b9": { - "userId": 7, - "controller": "space", - "endpoint": "find", - "qdata": { - "@select": "name,type,status,terms,endereco,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,acessibilidade,createTimestamp", - "@files": "(avatar.avatarSmall):url", - "user": "EQ(7)", - "status": "EQ(1)", - "@limit": 50, - "@order": "name ASC", - "@page": 1 - }, - "result": [ - { - "name": "Space 7", - "type": { - "id": 20, - "name": "Biblioteca P\u00fablica" - }, - "status": 1, - "terms": { - "tag": [], - "area": [ - "Arquitetura-Urbanismo", - "Artesanato" - ] - }, - "endereco": "Rua Engenheiro Francisco Azevedo, 216 , Jardim Vera Cruz, 05030-010, S\u00e3o Paulo, SP", - "singleUrl": "http:\/\/localhost:8888\/espaco\/7\/", - "editUrl": "http:\/\/localhost:8888\/espacos\/edita\/7\/", - "deleteUrl": "http:\/\/localhost:8888\/espacos\/apaga\/7\/", - "publishUrl": "http:\/\/localhost:8888\/espacos\/publish\/7\/", - "unpublishUrl": "http:\/\/localhost:8888\/espacos\/unpublish\/7\/", - "acessibilidade": "N\u00e3o", - "createTimestamp": { - "date": "2014-05-21 18:04:38.000000", - "timezone_type": 3, - "timezone": "America\/Sao_Paulo" - } - } - ] - }, - "54e1fce06be6c7b634d20ead1e90454b": { - "userId": 7, - "controller": "space", - "endpoint": "find", - "qdata": { - "@select": "name,type,status,terms,endereco,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,acessibilidade,createTimestamp", - "@files": "(avatar.avatarSmall):url", - "user": "EQ(7)", - "status": "EQ(0)", - "@permissions": "view" - }, - "result": [] - }, - "5039c04525e1ac82e001539e70428b34": { - "userId": 7, - "controller": "space", - "endpoint": "find", - "qdata": { - "@select": "name,type,status,terms,endereco,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,acessibilidade,createTimestamp", - "@files": "(avatar.avatarSmall):url", - "user": "EQ(7)", - "status": "EQ(-10)", - "@permissions": "view" - }, - "result": [] - }, - "3a464b5d095267d8eed3acf49d84a26a": { - "userId": 7, - "controller": "seal", - "endpoint": "find", - "qdata": { - "@select": "id,name,status, singleUrl", - "@permissions": "@control", - "@files": "(avatar.avatarMedium):url", - "@ORDER": "createTimestamp DESC" - }, - "result": [] - }, - "335250e0a442ea52c0184e67fff19cd0": { - "userId": 7, - "controller": "project", - "endpoint": "find", - "qdata": { - "name": "ilike(**)", - "@select": "id,name,terms,type", - "@limit": "10", - "@page": "1", - "@order": "name ASC", - "@files": "(avatar.avatarSmall):url", - "@permissions": "requestEventRelation", - "_": "1481854595538" - }, - "result": [ - { - "id": 7, - "name": "Project 7", - "terms": { - "tag": [] - }, - "type": { - "id": 1, - "name": "Festival" - } - } - ] - }, - "08e4a346800090a22e30b661d373f44b": { - "userId": 7, - "controller": "agent", - "endpoint": "find", - "qdata": { - "@select": "id,name,location", - "@order": "name ASC" - }, - "result": [ - { - "id": 3, - "name": "Admin 1", - "location": { - "latitude": 0, - "longitude": 0 - } - }, - { - "id": 4, - "name": "Admin 2", - "location": { - "latitude": "-23.5367427", - "longitude": "-46.6587759" - } - }, - { - "id": 356, - "name": "New 1", - "location": { - "latitude": "-23.5419764", - "longitude": "-46.6465663" - } - }, - { - "id": 357, - "name": "New 2", - "location": { - "latitude": 0, - "longitude": 0 - } - }, - { - "id": 7, - "name": "Normal User 1", - "location": { - "latitude": "-23.5335215", - "longitude": "-46.6569949" - } - }, - { - "id": 8, - "name": "Normal User 2", - "location": { - "latitude": 0, - "longitude": 0 - } - }, - { - "id": 5, - "name": "Staff User 1", - "location": { - "latitude": 0, - "longitude": 0 - } - }, - { - "id": 6, - "name": "Staff User 2", - "location": { - "latitude": 0, - "longitude": 0 - } - }, - { - "id": 1, - "name": "Super Admin 1", - "location": { - "latitude": 0, - "longitude": 0 - } - }, - { - "id": 2, - "name": "Super Admin 2", - "location": { - "latitude": 0, - "longitude": 0 - } - } - ] - }, - "8f7131c185aec0d22b6a6b510ca5cfc8": { - "userId": 7, - "controller": "agent", - "endpoint": "find", - "qdata": { - "@keyword": "1", - "@select": "id,name,location", - "@order": "name ASC" - }, - "result": [ - { - "id": 3, - "name": "Admin 1", - "location": { - "latitude": 0, - "longitude": 0 - } - }, - { - "id": 356, - "name": "New 1", - "location": { - "latitude": "-23.5419764", - "longitude": "-46.6465663" - } - }, - { - "id": 7, - "name": "Normal User 1", - "location": { - "latitude": "-23.5335215", - "longitude": "-46.6569949" - } - }, - { - "id": 5, - "name": "Staff User 1", - "location": { - "latitude": 0, - "longitude": 0 - } - }, - { - "id": 1, - "name": "Super Admin 1", - "location": { - "latitude": 0, - "longitude": 0 - } - } - ] - }, - "1c1b73a6c86bc43b1b968aa9f95348bb": { - "userId": 7, - "controller": "agent", - "endpoint": "find", - "qdata": { - "@keyword": "new", - "@select": "id,name,location", - "@order": "name ASC" - }, - "result": [ - { - "id": 356, - "name": "New 1", - "location": { - "latitude": "-23.5419764", - "longitude": "-46.6465663" - } - }, - { - "id": 357, - "name": "New 2", - "location": { - "latitude": 0, - "longitude": 0 - } - } - ] - }, - "1852b219ae085a59b56c8adc284d22c7": { - "userId": 7, - "controller": "agent", - "endpoint": "findOne", - "qdata": { - "id": "EQ(7)", - "@select": "id,singleUrl,name,subTitle,type,shortDescription,terms,project.name,project.singleUrl", - "@files": "(avatar.avatarSmall):url" - }, - "result": { - "@files:avatar.avatarSmall": { - "url": "http:\/\/localhost:8888\/files\/agent\/7\/file\/26\/imagem4-4e0f09ec602df7f0dbe0ffa44c19eb5e.jpeg" - }, - "id": 7, - "singleUrl": "http:\/\/localhost:8888\/agente\/7\/", - "name": "Normal User 1", - "subTitle": null, - "type": { - "id": 1, - "name": "Individual" - }, - "shortDescription": "short description", - "terms": { - "tag": [], - "area": [ - "Arquivo", - "Arte de Rua", - "Cinema" - ] - }, - "project": { - "name": null, - "singleUrl": null - } - } - }, - "34f85ed304c7be763727e07ad65d69a4": { - "userId": 7, - "controller": "agent", - "endpoint": "findOne", - "qdata": { - "id": "EQ(356)", - "@select": "id,singleUrl,name,subTitle,type,shortDescription,terms,project.name,project.singleUrl", - "@files": "(avatar.avatarSmall):url" - }, - "result": { - "id": 356, - "singleUrl": "http:\/\/localhost:8888\/agente\/356\/", - "name": "New 1", - "subTitle": null, - "type": { - "id": 1, - "name": "Individual" - }, - "shortDescription": "descricao curta", - "terms": { - "tag": [ - "TAGUEADO" - ], - "area": [ - "Arte Digital" - ] - }, - "project": { - "name": null, - "singleUrl": null - } - } - }, - "d019808e091fcab01b51933c1b9db08d": { - "userId": 7, - "controller": "agent", - "endpoint": "findOne", - "qdata": { - "id": "EQ(4)", - "@select": "id,singleUrl,name,subTitle,type,shortDescription,terms,project.name,project.singleUrl", - "@files": "(avatar.avatarSmall):url" - }, - "result": { - "@files:avatar.avatarSmall": { - "url": "http:\/\/localhost:8888\/files\/agent\/4\/file\/22\/imagem2-1d80d1d4d8de1e61294630edb215f103.jpeg" - }, - "id": 4, - "singleUrl": "http:\/\/localhost:8888\/agente\/4\/", - "name": "Admin 2", - "subTitle": null, - "type": { - "id": 1, - "name": "Individual" - }, - "shortDescription": "short description", - "terms": { - "tag": [], - "area": [ - "Arquivo" - ] - }, - "project": { - "name": null, - "singleUrl": null - } - } - }, - "1e48c41b4a71ab188c16a475a10feb22": { - "userId": 7, - "controller": "agent", - "endpoint": "find", - "qdata": { - "term:area": "IN(Arquivo)", - "@select": "id,name,location", - "@order": "name ASC" - }, - "result": [ - { - "id": 4, - "name": "Admin 2", - "location": { - "latitude": "-23.5367427", - "longitude": "-46.6587759" - } - }, - { - "id": 7, - "name": "Normal User 1", - "location": { - "latitude": "-23.5335215", - "longitude": "-46.6569949" - } - } - ] - }, - "d5b9a7f92592477758a932fd60118879": { - "userId": 1, - "controller": "space", - "endpoint": "find", - "qdata": { - "@count": 1, - "user": "EQ(1)" - }, - "result": 1 - }, - "298f5dd19c4626764bf5ea225ba88041": { - "userId": 1, - "controller": "agent", - "endpoint": "find", - "qdata": { - "@count": 1, - "user": "EQ(1)" - }, - "result": 1 - }, - "94bf87c88cd30d3f45cc14a7525ca589": { - "userId": 1, - "controller": "event", - "endpoint": "find", - "qdata": { - "@count": 1, - "user": "EQ(1)" - }, - "result": 1 - }, - "1d074725858faee8f9dfb7e1f14ee58e": { - "userId": 1, - "controller": "project", - "endpoint": "find", - "qdata": { - "@count": 1, - "user": "EQ(1)" - }, - "result": 1 - }, - "c9d9d7429f7f3f10453e182168443047": { - "userId": 1, - "controller": "seal", - "endpoint": "find", - "qdata": { - "@count": 1, - "user": "EQ(1)" - }, - "result": 1 - }, - "2bb7e9cde6154c899a305f2693e13753": { - "userId": 1, - "controller": "notification", - "endpoint": "find", - "qdata": { - "@select": "id,status,isRequest,createTimestamp,message,approveUrl,request.permissionTo.approve,request.permissionTo.reject,request.requesterUser.id", - "user": "EQ(@me)", - "@ORDER": "createTimestamp DESC" - }, - "result": [ - { - "id": 27, - "status": 1, - "isRequest": false, - "createTimestamp": { - "date": "2016-12-16 00:17:56.000000", - "timezone_type": 3, - "timezone": "America\/Sao_Paulo" - }, - "message": "Seu \u00faltimo acesso foi em 21\/05\/2014<\/b>, atualize suas informa\u00e7\u00f5es se necess\u00e1rio.", - "approveUrl": "http:\/\/localhost:8888\/aprovar-notificacao\/27\/", - "request": { - "permissionTo": { - "approve": null, - "reject": null - }, - "requesterUser": { - "id": null - } - } - }, - { - "id": 28, - "status": 1, - "isRequest": false, - "createTimestamp": { - "date": "2016-12-16 00:17:56.000000", - "timezone_type": 3, - "timezone": "America\/Sao_Paulo" - }, - "message": "O agente Super Admin 1<\/b> n\u00e3o \u00e9 atualizado desde de 21\/05\/2014<\/b>, atualize as informa\u00e7\u00f5es se necess\u00e1rio.editar<\/a>", - "approveUrl": "http:\/\/localhost:8888\/aprovar-notificacao\/28\/", - "request": { - "permissionTo": { - "approve": null, - "reject": null - }, - "requesterUser": { - "id": null - } - } - }, - { - "id": 9, - "status": 1, - "isRequest": true, - "createTimestamp": { - "date": "2016-12-15 23:57:14.000000", - "timezone_type": 3, - "timezone": "America\/Sao_Paulo" - }, - "message": "New 2<\/a> quer adicionar o evento Novo Evento<\/a> que ocorre Dia 21 de dezembro de 2016 \u00e0s 11:11<\/em> no espa\u00e7o Space 1<\/a>.", - "approveUrl": "http:\/\/localhost:8888\/aprovar-notificacao\/9\/", - "request": { - "permissionTo": { - "approve": true, - "reject": true - }, - "requesterUser": { - "id": 11 - } - } - } - ] - }, - "cec3295e62de41646dcd93de8a840cb6": { - "userId": 1, - "controller": "event", - "endpoint": "find", - "qdata": { - "@select": "name,type,status,terms,classificacaoEtaria,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,createTimestamp", - "@files": "(avatar.avatarSmall):url", - "user": "EQ(1)", - "status": "EQ(1)", - "@limit": 50, - "@order": "name ASC", - "@page": 1 - }, - "result": [ - { - "name": "Event 1", - "type": { - "id": 1, - "name": "Padr\u00e3o" - }, - "status": 1, - "terms": { - "tag": [], - "linguagem": [] - }, - "classificacaoEtaria": null, - "singleUrl": "http:\/\/localhost:8888\/evento\/1\/", - "editUrl": "http:\/\/localhost:8888\/eventos\/edita\/1\/", - "deleteUrl": "http:\/\/localhost:8888\/eventos\/apaga\/1\/", - "publishUrl": "http:\/\/localhost:8888\/eventos\/publish\/1\/", - "unpublishUrl": "http:\/\/localhost:8888\/eventos\/unpublish\/1\/", - "createTimestamp": { - "date": "2014-05-21 18:04:44.000000", - "timezone_type": 3, - "timezone": "America\/Sao_Paulo" - } - } - ] - }, - "8e1813d99c6fb0992f77b88b517ff5e6": { - "userId": 1, - "controller": "event", - "endpoint": "find", - "qdata": { - "@select": "name,type,status,terms,classificacaoEtaria,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,createTimestamp", - "@files": "(avatar.avatarSmall):url", - "user": "EQ(1)", - "status": "EQ(0)", - "@permissions": "view" - }, - "result": [] - }, - "4cb22b42e66fa0df420d8dd3c3bbc854": { - "userId": 1, - "controller": "event", - "endpoint": "find", - "qdata": { - "@select": "name,type,status,terms,classificacaoEtaria,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,createTimestamp", - "@files": "(avatar.avatarSmall):url", - "user": "EQ(1)", - "status": "EQ(-10)", - "@permissions": "view" - }, - "result": [] - }, - "2c4bb12d67c9e3a5a01576799579e6fe": { - "userId": 1, - "controller": "space", - "endpoint": "find", - "qdata": { - "@select": "name,type,status,terms,endereco,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,acessibilidade,createTimestamp", - "@files": "(avatar.avatarSmall):url", - "user": "EQ(1)", - "status": "EQ(1)", - "@limit": 50, - "@order": "name ASC", - "@page": 1 - }, - "result": [ - { - "@files:avatar.avatarSmall": { - "url": "http:\/\/localhost:8888\/files\/space\/1\/file\/14\/imagem2-1d80d1d4d8de1e61294630edb215f103.jpeg" - }, - "name": "Space 1", - "type": { - "id": 10, - "name": "Cine itinerante" - }, - "status": 1, - "terms": { - "tag": [], - "area": [ - "Jogos Eletr\u00f4nicos", - "Filosofia", - "Esporte" - ] - }, - "endereco": "Rua Ara\u00fajo, 22 , Rep\u00fablica, 01220-020, S\u00e3o Paulo, SP", - "singleUrl": "http:\/\/localhost:8888\/espaco\/1\/", - "editUrl": "http:\/\/localhost:8888\/espacos\/edita\/1\/", - "deleteUrl": "http:\/\/localhost:8888\/espacos\/apaga\/1\/", - "publishUrl": "http:\/\/localhost:8888\/espacos\/publish\/1\/", - "unpublishUrl": "http:\/\/localhost:8888\/espacos\/unpublish\/1\/", - "acessibilidade": null, - "createTimestamp": { - "date": "2014-05-21 18:04:38.000000", - "timezone_type": 3, - "timezone": "America\/Sao_Paulo" - } - } - ] - }, - "1036ab919203383b480331798b0ef43c": { - "userId": 1, - "controller": "space", - "endpoint": "find", - "qdata": { - "@select": "name,type,status,terms,endereco,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,acessibilidade,createTimestamp", - "@files": "(avatar.avatarSmall):url", - "user": "EQ(1)", - "status": "EQ(0)", - "@permissions": "view" - }, - "result": [] - }, - "86d8b541f3c4b7b26250b6d96b8b9259": { - "userId": 1, - "controller": "space", - "endpoint": "find", - "qdata": { - "@select": "name,type,status,terms,endereco,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,acessibilidade,createTimestamp", - "@files": "(avatar.avatarSmall):url", - "user": "EQ(1)", - "status": "EQ(-10)", - "@permissions": "view" - }, - "result": [] - }, - "6a9f2a58682c37c6c19a21dcd4b56646": { - "userId": 1, - "controller": "agent", - "endpoint": "find", - "qdata": { - "@select": "id,name,location", - "@order": "name ASC" - }, - "result": [ - { - "id": 3, - "name": "Admin 1", - "location": { - "latitude": "-23.546179", - "longitude": "-46.6451146" - } - }, - { - "id": 4, - "name": "Admin 2", - "location": { - "latitude": "-23.5367427", - "longitude": "-46.6587759" - } - }, - { - "id": 356, - "name": "New 1", - "location": { - "latitude": "-23.5419764", - "longitude": "-46.6465663" - } - }, - { - "id": 357, - "name": "New 2", - "location": { - "latitude": "-23.533808", - "longitude": "-46.6569978" - } - }, - { - "id": 7, - "name": "Normal User 1", - "location": { - "latitude": "-23.5335215", - "longitude": "-46.6569949" - } - }, - { - "id": 8, - "name": "Normal User 2", - "location": { - "latitude": "0", - "longitude": "0" - } - }, - { - "id": 5, - "name": "Staff User 1", - "location": { - "latitude": "0", - "longitude": "0" - } - }, - { - "id": 6, - "name": "Staff User 2", - "location": { - "latitude": "0", - "longitude": "0" - } - }, - { - "id": 1, - "name": "Super Admin 1", - "location": { - "latitude": "0", - "longitude": "0" - } - }, - { - "id": 2, - "name": "Super Admin 2", - "location": { - "latitude": "0", - "longitude": "0" - } - } - ] - }, - "3bf9984660e2f348c3d18c9c04676736": { - "userId": 1, - "controller": "event", - "endpoint": "find", - "qdata": { - "@count": "1", - "id": "IN(5,3,6,522)" - }, - "result": 4 - }, - "68b1e3cdb560ae245b560d831d1015b6": { - "userId": 1, - "controller": "event", - "endpoint": "findByLocation", - "qdata": { - "@count": "1", - "@from": "2016-12-16", - "@to": "2017-01-16" - }, - "result": 4 - }, - "73cdacf0e6a9cf41dae3e1bc6dcf510d": { - "userId": 1, - "controller": "event", - "endpoint": "find", - "qdata": { - "@select": "id", - "@order": "name ASC", - "id": "IN(5,5,3,6,3,6,522)" - }, - "result": [ - { - "id": 3 - }, - { - "id": 5 - }, - { - "id": 6 - }, - { - "id": 522 - } - ] - }, - "3ef2a3f9d0bd0640856f3a84066c9633": { - "userId": 1, - "controller": "space", - "endpoint": "find", - "qdata": { - "id": "IN(6,4,2,1)", - "@select": "id,name,location", - "@order": "name ASC" - }, - "result": [ - { - "id": 1, - "name": "Space 1", - "location": { - "latitude": "-23.5443493", - "longitude": "-46.6444262" - } - }, - { - "id": 2, - "name": "Space 2", - "location": { - "latitude": "-27.5906075", - "longitude": "-48.5129766" - } - }, - { - "id": 4, - "name": "Space 4", - "location": { - "latitude": "-23.5575987", - "longitude": "-46.6499111" - } - }, - { - "id": 6, - "name": "Space 6", - "location": { - "latitude": "-27.5887012", - "longitude": "-48.5070641" - } - } - ] - }, - "6577bb024e588b5b45303a84889b5ced": { - "userId": 1, - "controller": "space", - "endpoint": "findByEvents", - "qdata": { - "@from": "2016-12-16", - "@to": "2017-01-16", - "@select": "id,name,location", - "@order": "name ASC" - }, - "result": [ - { - "id": 1, - "name": "Space 1", - "location": { - "latitude": "-23.5443493", - "longitude": "-46.6444262" - } - }, - { - "id": 2, - "name": "Space 2", - "location": { - "latitude": "-27.5906075", - "longitude": "-48.5129766" - } - }, - { - "id": 4, - "name": "Space 4", - "location": { - "latitude": "-23.5575987", - "longitude": "-46.6499111" - } - }, - { - "id": 6, - "name": "Space 6", - "location": { - "latitude": "-27.5887012", - "longitude": "-48.5070641" - } - } - ] - }, - "7ec7d0e657f6f24d13153d9053e05078": { - "userId": 1, - "controller": "event", - "endpoint": "find", - "qdata": { - "@count": "1", - "id": "IN(5,7,3)" - }, - "result": 3 - }, - "fd52b40ec12768e665877d5356055f28": { - "userId": 1, - "controller": "event", - "endpoint": "findByLocation", - "qdata": { - "@count": "1", - "@from": "2016-12-01", - "@to": "2016-12-01" - }, - "result": 3 - }, - "3ddc14930fe7dbfe80d74005e97881de": { - "userId": 1, - "controller": "event", - "endpoint": "find", - "qdata": { - "@select": "id", - "@order": "name ASC", - "id": "IN(5,7,5,3,7,7,7,7,7,7,7,3)" - }, - "result": [ - { - "id": 3 - }, - { - "id": 5 - }, - { - "id": 7 - } - ] - }, - "9f7b36a6ecfcab2b4210eb82f21c8c84": { - "userId": 1, - "controller": "space", - "endpoint": "findByEvents", - "qdata": { - "@from": "2016-12-01", - "@to": "2016-12-01", - "@select": "id,name,location", - "@order": "name ASC" - }, - "result": [ - { - "id": 1, - "name": "Space 1", - "location": { - "latitude": "-23.5443493", - "longitude": "-46.6444262" - } - }, - { - "id": 2, - "name": "Space 2", - "location": { - "latitude": "-27.5906075", - "longitude": "-48.5129766" - } - }, - { - "id": 4, - "name": "Space 4", - "location": { - "latitude": "-23.5575987", - "longitude": "-46.6499111" - } - }, - { - "id": 6, - "name": "Space 6", - "location": { - "latitude": "-27.5887012", - "longitude": "-48.5070641" - } - } - ] - }, - "f9754092280caa8289f03575bebec2d0": { - "userId": 1, - "controller": "event", - "endpoint": "find", - "qdata": { - "@count": "1", - "id": "IN(5,7,3,6,522)" - }, - "result": 5 - }, - "f7dd64cdffdd1188ce11a15cc2e57482": { - "userId": 1, - "controller": "event", - "endpoint": "findByLocation", - "qdata": { - "@count": "1", - "@from": "2016-12-01", - "@to": "2017-01-31" - }, - "result": 5 - }, - "914467a4fde1c5fb7ebd5eb391e3b0e1": { - "userId": 1, - "controller": "event", - "endpoint": "find", - "qdata": { - "@select": "id", - "@order": "name ASC", - "id": "IN(5,7,5,3,7,7,7,7,7,7,7,6,3,6,522)" - }, - "result": [ - { - "id": 3 - }, - { - "id": 5 - }, - { - "id": 6 - }, - { - "id": 7 - }, - { - "id": 522 - } - ] - }, - "8e4a0621b05007f981c3764d847428dd": { - "userId": 1, - "controller": "space", - "endpoint": "find", - "qdata": { - "id": "IN(7,8,6,5,4,3,2,1)", - "@select": "id,name,location", - "@order": "name ASC" - }, - "result": [ - { - "id": 1, - "name": "Space 1", - "location": { - "latitude": "-23.5443493", - "longitude": "-46.6444262" - } - }, - { - "id": 2, - "name": "Space 2", - "location": { - "latitude": "-27.5906075", - "longitude": "-48.5129766" - } - }, - { - "id": 3, - "name": "Space 3", - "location": { - "latitude": "-23.5299146", - "longitude": "-46.6343522" - } - }, - { - "id": 4, - "name": "Space 4", - "location": { - "latitude": "-23.5575987", - "longitude": "-46.6499111" - } - }, - { - "id": 5, - "name": "Space 5", - "location": { - "latitude": "-27.5666995", - "longitude": "-48.5102924" - } - }, - { - "id": 6, - "name": "Space 6", - "location": { - "latitude": "-27.5887012", - "longitude": "-48.5070641" - } - }, - { - "id": 7, - "name": "Space 7", - "location": { - "latitude": "-23.5394312", - "longitude": "-46.6915816" - } - }, - { - "id": 8, - "name": "Space 8", - "location": { - "latitude": "-23.5466151", - "longitude": "-46.6468627" - } - } - ] - }, - "2742b11c67707f7ab4e69c570a4b25eb": { - "userId": 1, - "controller": "space", - "endpoint": "findByEvents", - "qdata": { - "@from": "2016-12-01", - "@to": "2017-01-31", - "@select": "id,name,location", - "@order": "name ASC" - }, - "result": [ - { - "id": 1, - "name": "Space 1", - "location": { - "latitude": "-23.5443493", - "longitude": "-46.6444262" - } - }, - { - "id": 2, - "name": "Space 2", - "location": { - "latitude": "-27.5906075", - "longitude": "-48.5129766" - } - }, - { - "id": 3, - "name": "Space 3", - "location": { - "latitude": "-23.5299146", - "longitude": "-46.6343522" - } - }, - { - "id": 4, - "name": "Space 4", - "location": { - "latitude": "-23.5575987", - "longitude": "-46.6499111" - } - }, - { - "id": 5, - "name": "Space 5", - "location": { - "latitude": "-27.5666995", - "longitude": "-48.5102924" - } - }, - { - "id": 6, - "name": "Space 6", - "location": { - "latitude": "-27.5887012", - "longitude": "-48.5070641" - } - }, - { - "id": 7, - "name": "Space 7", - "location": { - "latitude": "-23.5394312", - "longitude": "-46.6915816" - } - }, - { - "id": 8, - "name": "Space 8", - "location": { - "latitude": "-23.5466151", - "longitude": "-46.6468627" - } - } - ] - }, - "28798fe247e5edc85b2e3ab5fe5425af": { - "userId": 1, - "controller": "space", - "endpoint": "find", - "qdata": { - "@select": "id,name,shortDescription,location,terms,__metadata", - "_geoLocation": "GEONEAR(-49.04296875,-21.125497636606266,507955)" - }, - "result": [ - { - "id": 7, - "name": "Space 7", - "shortDescription": "of Normal User 1", - "location": { - "latitude": "-23.5394312", - "longitude": "-46.6915816" - }, - "terms": { - "tag": [], - "area": [ - "Arquitetura-Urbanismo", - "Artesanato" - ] - }, - "__metadata": null - }, - { - "id": 8, - "name": "Space 8", - "shortDescription": "of Normal User 1", - "location": { - "latitude": "-23.5466151", - "longitude": "-46.6468627" - }, - "terms": { - "tag": [], - "area": [ - "Antropologia", - "M\u00fasica" - ] - }, - "__metadata": null - }, - { - "id": 4, - "name": "Space 4", - "shortDescription": "of Admin 2", - "location": { - "latitude": "-23.5575987", - "longitude": "-46.6499111" - }, - "terms": { - "tag": [], - "area": [ - "Artes Visuais", - "Fotografia", - "Arte Digital" - ] - }, - "__metadata": null - }, - { - "id": 3, - "name": "Space 3", - "shortDescription": "of Admin 1", - "location": { - "latitude": "-23.5299146", - "longitude": "-46.6343522" - }, - "terms": { - "tag": [], - "area": [ - "Jogos Eletr\u00f4nicos", - "Arte Digital" - ] - }, - "__metadata": null - }, - { - "id": 1, - "name": "Space 1", - "shortDescription": "of Super Admin 1", - "location": { - "latitude": "-23.5443493", - "longitude": "-46.6444262" - }, - "terms": { - "tag": [], - "area": [ - "Jogos Eletr\u00f4nicos", - "Filosofia", - "Esporte" - ] - }, - "__metadata": null - } - ] - }, - "ad89972f43f75ee70bc670d047fd2d89": { - "userId": 1, - "controller": "event", - "endpoint": "find", - "qdata": { - "@count": "1", - "id": "IN(7,5,6,3)" - }, - "result": 4 - }, - "1f4d1ca0da69bed76cd49c742d0d33f9": { - "userId": 1, - "controller": "event", - "endpoint": "findByLocation", - "qdata": { - "@count": "1", - "@from": "2016-12-01", - "@to": "2017-01-31", - "_geoLocation": "GEONEAR(-49.04296875,-21.125497636606266,507955)" - }, - "result": 4 - }, - "dd1b3d76e2e8327b93dd009c5c5d8c91": { - "userId": 1, - "controller": "event", - "endpoint": "find", - "qdata": { - "@select": "id", - "_geoLocation": "GEONEAR(-49.04296875,-21.125497636606266,507955)", - "@order": "name ASC", - "id": "IN(5,7,5,3,7,7,7,7,7,7,7,6,3,6,522)" - }, - "result": [ - { - "id": 3 - }, - { - "id": 5 - }, - { - "id": 6 - }, - { - "id": 7 - }, - { - "id": 522 - } - ] - }, - "cebc39881802386dc3ff8ebb7da8d354": { - "userId": 1, - "controller": "space", - "endpoint": "find", - "qdata": { - "id": "IN(7,8,6,5,4,3,2,1)", - "_geoLocation": "GEONEAR(-49.04296875,-21.125497636606266,507955)", - "@select": "id,name,location", - "@order": "name ASC" - }, - "result": [ - { - "id": 1, - "name": "Space 1", - "location": { - "latitude": "-23.5443493", - "longitude": "-46.6444262" - } - }, - { - "id": 3, - "name": "Space 3", - "location": { - "latitude": "-23.5299146", - "longitude": "-46.6343522" - } - }, - { - "id": 4, - "name": "Space 4", - "location": { - "latitude": "-23.5575987", - "longitude": "-46.6499111" - } - }, - { - "id": 7, - "name": "Space 7", - "location": { - "latitude": "-23.5394312", - "longitude": "-46.6915816" - } - }, - { - "id": 8, - "name": "Space 8", - "location": { - "latitude": "-23.5466151", - "longitude": "-46.6468627" - } - } - ] - }, - "e209bc3b02d2950cf0cb29c9193392cc": { - "userId": 1, - "controller": "space", - "endpoint": "findByEvents", - "qdata": { - "@from": "2016-12-01", - "@to": "2017-01-31", - "_geoLocation": "GEONEAR(-49.04296875,-21.125497636606266,507955)", - "@select": "id,name,location", - "@order": "name ASC" - }, - "result": [ - { - "id": 1, - "name": "Space 1", - "location": { - "latitude": "-23.5443493", - "longitude": "-46.6444262" - } - }, - { - "id": 3, - "name": "Space 3", - "location": { - "latitude": "-23.5299146", - "longitude": "-46.6343522" - } - }, - { - "id": 4, - "name": "Space 4", - "location": { - "latitude": "-23.5575987", - "longitude": "-46.6499111" - } - }, - { - "id": 7, - "name": "Space 7", - "location": { - "latitude": "-23.5394312", - "longitude": "-46.6915816" - } - }, - { - "id": 8, - "name": "Space 8", - "location": { - "latitude": "-23.5466151", - "longitude": "-46.6468627" - } - } - ] - }, - "3feb3ca14bc19a8643775cf79601b3d7": { - "userId": 1, - "controller": "space", - "endpoint": "find", - "qdata": { - "@select": "id,name,shortDescription,location,terms,__metadata", - "_geoLocation": "GEONEAR(-46.6259765625,-29.764377375163114,472173)" - }, - "result": [ - { - "id": 6, - "name": "Space 6", - "shortDescription": "of Staff User 2", - "location": { - "latitude": "-27.5887012", - "longitude": "-48.5070641" - }, - "terms": { - "tag": [], - "area": [ - "Artesanato", - "Arte Digital" - ] - }, - "__metadata": null - }, - { - "id": 5, - "name": "Space 5", - "shortDescription": "of Staff User 1", - "location": { - "latitude": "-27.5666995", - "longitude": "-48.5102924" - }, - "terms": { - "tag": [], - "area": [ - "Cultura Negra", - "Circo", - "M\u00fasica" - ] - }, - "__metadata": null - }, - { - "id": 2, - "name": "Space 2", - "shortDescription": "of Super Admin 2", - "location": { - "latitude": "-27.5906075", - "longitude": "-48.5129766" - }, - "terms": { - "tag": [], - "area": [ - "Circo", - "Arte de Rua" - ] - }, - "__metadata": null - } - ] - }, - "31cfe5610a2cd12d49a28dc96ddaeecf": { - "userId": 1, - "controller": "event", - "endpoint": "find", - "qdata": { - "@count": "1", - "id": "IN(5,3,7,522)" - }, - "result": 4 - }, - "2c994fae8bf5f5ed12c3dd7653db39d1": { - "userId": 1, - "controller": "event", - "endpoint": "findByLocation", - "qdata": { - "@count": "1", - "@from": "2016-12-01", - "@to": "2017-01-31", - "_geoLocation": "GEONEAR(-46.6259765625,-29.764377375163114,472173)" - }, - "result": 4 - }, - "f1de5d5260f19f83dbb8a0b3b5548d0b": { - "userId": 1, - "controller": "event", - "endpoint": "find", - "qdata": { - "@select": "id", - "_geoLocation": "GEONEAR(-46.6259765625,-29.764377375163114,472173)", - "@order": "name ASC", - "id": "IN(5,7,5,3,7,7,7,7,7,7,7,6,3,6,522)" - }, - "result": [ - { - "id": 3 - }, - { - "id": 5 - }, - { - "id": 6 - }, - { - "id": 7 - }, - { - "id": 522 - } - ] - }, - "78d63f191760f6ece0ee13d065a12064": { - "userId": 1, - "controller": "space", - "endpoint": "find", - "qdata": { - "id": "IN(7,8,6,5,4,3,2,1)", - "_geoLocation": "GEONEAR(-46.6259765625,-29.764377375163114,472173)", - "@select": "id,name,location", - "@order": "name ASC" - }, - "result": [ - { - "id": 2, - "name": "Space 2", - "location": { - "latitude": "-27.5906075", - "longitude": "-48.5129766" - } - }, - { - "id": 5, - "name": "Space 5", - "location": { - "latitude": "-27.5666995", - "longitude": "-48.5102924" - } - }, - { - "id": 6, - "name": "Space 6", - "location": { - "latitude": "-27.5887012", - "longitude": "-48.5070641" - } - } - ] - }, - "2d975b96a565a33e6cbdac408706c953": { - "userId": 1, - "controller": "space", - "endpoint": "findByEvents", - "qdata": { - "@from": "2016-12-01", - "@to": "2017-01-31", - "_geoLocation": "GEONEAR(-46.6259765625,-29.764377375163114,472173)", - "@select": "id,name,location", - "@order": "name ASC" - }, - "result": [ - { - "id": 2, - "name": "Space 2", - "location": { - "latitude": "-27.5906075", - "longitude": "-48.5129766" - } - }, - { - "id": 5, - "name": "Space 5", - "location": { - "latitude": "-27.5666995", - "longitude": "-48.5102924" - } - }, - { - "id": 6, - "name": "Space 6", - "location": { - "latitude": "-27.5887012", - "longitude": "-48.5070641" - } - } - ] - }, - "fd168ba56db78dba068ccd095032ef22": { - "userId": 1, - "controller": "space", - "endpoint": "find", - "qdata": { - "_geoLocation": "GEONEAR(-46.6259765625,-29.764377375163114,472173)", - "@select": "id,name,location", - "@order": "name ASC" - }, - "result": [ - { - "id": 2, - "name": "Space 2", - "location": { - "latitude": "-27.5906075", - "longitude": "-48.5129766" - } - }, - { - "id": 5, - "name": "Space 5", - "location": { - "latitude": "-27.5666995", - "longitude": "-48.5102924" - } - }, - { - "id": 6, - "name": "Space 6", - "location": { - "latitude": "-27.5887012", - "longitude": "-48.5070641" - } - } - ] - }, - "46133b7ba6a48aaba39ce7fa5ef14947": { - "userId": 1, - "controller": "agent", - "endpoint": "find", - "qdata": { - "_geoLocation": "GEONEAR(-46.6259765625,-29.764377375163114,472173)", - "@select": "id,name,location", - "@order": "name ASC" - }, - "result": [] - }, - "aa80e49a2f0390543d59fc8f40179545": { - "userId": 1, - "controller": "agent", - "endpoint": "find", - "qdata": { - "_geoLocation": "GEONEAR(-52.64648437499999,-17.853290114098,1131934)", - "@select": "id,name,location", - "@order": "name ASC" - }, - "result": [ - { - "id": 3, - "name": "Admin 1", - "location": { - "latitude": "-23.546179", - "longitude": "-46.6451146" - } - }, - { - "id": 4, - "name": "Admin 2", - "location": { - "latitude": "-23.5367427", - "longitude": "-46.6587759" - } - }, - { - "id": 356, - "name": "New 1", - "location": { - "latitude": "-23.5419764", - "longitude": "-46.6465663" - } - }, - { - "id": 357, - "name": "New 2", - "location": { - "latitude": "-23.533808", - "longitude": "-46.6569978" - } - }, - { - "id": 7, - "name": "Normal User 1", - "location": { - "latitude": "-23.5335215", - "longitude": "-46.6569949" - } - } - ] - }, - "d7951361a03b33d37c7b08b5c4d08b83": { - "userId": 1, - "controller": "agent", - "endpoint": "find", - "qdata": { - "_geoLocation": "GEONEAR(-52.64648437499999,-17.853290114098,1131934)", - "@select": "id,singleUrl,name,type,shortDescription,terms", - "@files": "(avatar.avatarMedium):url", - "@page": "1", - "@limit": "10", - "@order": "name ASC" - }, - "result": [ - { - "@files:avatar.avatarMedium": { - "url": "http:\/\/localhost:8888\/files\/agent\/3\/file\/18\/imagem1-edddfc71895c873e781944d65e9fc3e0.jpeg" - }, - "id": 3, - "singleUrl": "http:\/\/localhost:8888\/agente\/3\/", - "name": "Admin 1", - "type": { - "id": 1, - "name": "Individual" - }, - "shortDescription": "short description", - "terms": { - "tag": [], - "area": [ - "Arquitetura-Urbanismo" - ] - } - }, - { - "@files:avatar.avatarMedium": { - "url": "http:\/\/localhost:8888\/files\/agent\/4\/file\/22\/imagem2-6086f8a4969eda83f4fe75a5bd40603d.jpeg" - }, - "id": 4, - "singleUrl": "http:\/\/localhost:8888\/agente\/4\/", - "name": "Admin 2", - "type": { - "id": 1, - "name": "Individual" - }, - "shortDescription": "short description", - "terms": { - "tag": [], - "area": [ - "Arquivo" - ] - } - }, - { - "id": 356, - "singleUrl": "http:\/\/localhost:8888\/agente\/356\/", - "name": "New 1", - "type": { - "id": 1, - "name": "Individual" - }, - "shortDescription": "descricao curta", - "terms": { - "tag": [ - "TAGUEADO" - ], - "area": [ - "Arte Digital" - ] - } - }, - { - "id": 357, - "singleUrl": "http:\/\/localhost:8888\/agente\/357\/", - "name": "New 2", - "type": { - "id": 1, - "name": "Individual" - }, - "shortDescription": "curta", - "terms": { - "tag": [ - "TAGUEADO" - ], - "area": [ - "Arte de Rua" - ] - } - }, - { - "@files:avatar.avatarMedium": { - "url": "http:\/\/localhost:8888\/files\/agent\/7\/file\/26\/imagem4-570b654c331f46e4d3f3128fc55722d3.jpeg" - }, - "id": 7, - "singleUrl": "http:\/\/localhost:8888\/agente\/7\/", - "name": "Normal User 1", - "type": { - "id": 1, - "name": "Individual" - }, - "shortDescription": "short description", - "terms": { - "tag": [], - "area": [ - "Arquivo", - "Arte de Rua", - "Cinema" - ] - } - } - ] - }, - "5d26edeb90af517520b4843e93d17159": { - "userId": 1, - "controller": "agent", - "endpoint": "find", - "qdata": { - "@select": "id,singleUrl,name,type,shortDescription,terms", - "@files": "(avatar.avatarMedium):url", - "@page": "1", - "@limit": "10", - "@order": "name ASC" - }, - "result": [ - { - "@files:avatar.avatarMedium": { - "url": "http:\/\/localhost:8888\/files\/agent\/3\/file\/18\/imagem1-edddfc71895c873e781944d65e9fc3e0.jpeg" - }, - "id": 3, - "singleUrl": "http:\/\/localhost:8888\/agente\/3\/", - "name": "Admin 1", - "type": { - "id": 1, - "name": "Individual" - }, - "shortDescription": "short description", - "terms": { - "tag": [], - "area": [ - "Arquitetura-Urbanismo" - ] - } - }, - { - "@files:avatar.avatarMedium": { - "url": "http:\/\/localhost:8888\/files\/agent\/4\/file\/22\/imagem2-6086f8a4969eda83f4fe75a5bd40603d.jpeg" - }, - "id": 4, - "singleUrl": "http:\/\/localhost:8888\/agente\/4\/", - "name": "Admin 2", - "type": { - "id": 1, - "name": "Individual" - }, - "shortDescription": "short description", - "terms": { - "tag": [], - "area": [ - "Arquivo" - ] - } - }, - { - "id": 356, - "singleUrl": "http:\/\/localhost:8888\/agente\/356\/", - "name": "New 1", - "type": { - "id": 1, - "name": "Individual" - }, - "shortDescription": "descricao curta", - "terms": { - "tag": [ - "TAGUEADO" - ], - "area": [ - "Arte Digital" - ] - } - }, - { - "id": 357, - "singleUrl": "http:\/\/localhost:8888\/agente\/357\/", - "name": "New 2", - "type": { - "id": 1, - "name": "Individual" - }, - "shortDescription": "curta", - "terms": { - "tag": [ - "TAGUEADO" - ], - "area": [ - "Arte de Rua" - ] - } - }, - { - "@files:avatar.avatarMedium": { - "url": "http:\/\/localhost:8888\/files\/agent\/7\/file\/26\/imagem4-570b654c331f46e4d3f3128fc55722d3.jpeg" - }, - "id": 7, - "singleUrl": "http:\/\/localhost:8888\/agente\/7\/", - "name": "Normal User 1", - "type": { - "id": 1, - "name": "Individual" - }, - "shortDescription": "short description", - "terms": { - "tag": [], - "area": [ - "Arquivo", - "Arte de Rua", - "Cinema" - ] - } - }, - { - "@files:avatar.avatarMedium": { - "url": "http:\/\/localhost:8888\/files\/agent\/8\/file\/30\/imagem3-8e0c7f12f218eec531833cebb8deee4e.jpeg" - }, - "id": 8, - "singleUrl": "http:\/\/localhost:8888\/agente\/8\/", - "name": "Normal User 2", - "type": { - "id": 1, - "name": "Individual" - }, - "shortDescription": "short description", - "terms": { - "tag": [], - "area": [ - "Arquitetura-Urbanismo" - ] - } - }, - { - "id": 5, - "singleUrl": "http:\/\/localhost:8888\/agente\/5\/", - "name": "Staff User 1", - "type": { - "id": 1, - "name": "Individual" - }, - "shortDescription": "short description", - "terms": { - "tag": [], - "area": [ - "Artesanato" - ] - } - }, - { - "id": 6, - "singleUrl": "http:\/\/localhost:8888\/agente\/6\/", - "name": "Staff User 2", - "type": { - "id": 1, - "name": "Individual" - }, - "shortDescription": "short description", - "terms": { - "tag": [], - "area": [ - "Artes Visuais" - ] - } - }, - { - "id": 1, - "singleUrl": "http:\/\/localhost:8888\/agente\/1\/", - "name": "Super Admin 1", - "type": { - "id": 1, - "name": "Individual" - }, - "shortDescription": "short description", - "terms": { - "tag": [], - "area": [ - "Antropologia" - ] - } - }, - { - "id": 2, - "singleUrl": "http:\/\/localhost:8888\/agente\/2\/", - "name": "Super Admin 2", - "type": { - "id": 1, - "name": "Individual" - }, - "shortDescription": "short description", - "terms": { - "tag": [], - "area": [ - "Arqueologia" - ] - } - } - ] - }, - "57412c92a027024d1a29b4c78b49aca0": { - "userId": 1, - "controller": "seal", - "endpoint": "find", - "qdata": { - "@select": "id,name,status, singleUrl", - "@permissions": "@control", - "@files": "(avatar.avatarMedium):url", - "@ORDER": "createTimestamp DESC" - }, - "result": [ - { - "id": 1, - "name": "Selo Mapas", - "status": 1, - "singleUrl": "http:\/\/localhost:8888\/selo\/1\/" - } - ] - }, - "16e2bdd316a7a25856e19a5a1d2f61c5": { - "userId": 1, - "controller": "space", - "endpoint": "findOne", - "qdata": { - "id": "EQ(1)", - "@select": "id,singleUrl,name,subTitle,type,shortDescription,terms,project.name,project.singleUrl,endereco,endereco,acessibilidade", - "@files": "(avatar.avatarSmall):url" - }, - "result": { - "@files:avatar.avatarSmall": { - "url": "http:\/\/localhost:8888\/files\/space\/1\/file\/14\/imagem2-1d80d1d4d8de1e61294630edb215f103.jpeg" - }, - "id": 1, - "singleUrl": "http:\/\/localhost:8888\/espaco\/1\/", - "name": "Space 1", - "subTitle": null, - "type": { - "id": 10, - "name": "Cine itinerante" - }, - "shortDescription": "of Super Admin 1", - "terms": { - "tag": [], - "area": [ - "Jogos Eletr\u00f4nicos", - "Filosofia", - "Esporte" - ] - }, - "project": { - "name": null, - "singleUrl": null - }, - "endereco": "Rua Ara\u00fajo, 22 , Rep\u00fablica, 01220-020, S\u00e3o Paulo, SP", - "acessibilidade": null - } - }, - "ca6c17b4f6f37d204a3f34733973fb16": { - "userId": 1, - "controller": "event", - "endpoint": "find", - "qdata": { - "@select": "id,singleUrl,name,subTitle,type,shortDescription,terms,project.name,project.singleUrl,endereco,classificacaoEtaria", - "@order": "name ASC", - "@files": "(avatar.avatarSmall):url", - "id": "IN(6,3)" - }, - "result": [ - { - "id": 3, - "singleUrl": "http:\/\/localhost:8888\/evento\/3\/", - "name": "Event 3", - "subTitle": null, - "type": { - "id": 1, - "name": "Padr\u00e3o" - }, - "shortDescription": "of Admin 1", - "terms": { - "tag": [], - "linguagem": [ - "Cinema" - ] - }, - "project": { - "name": null, - "singleUrl": null - }, - "endereco": null, - "classificacaoEtaria": "Livre" - }, - { - "@files:avatar.avatarSmall": { - "url": "http:\/\/localhost:8888\/files\/event\/6\/file\/38\/imagem3-ed0f3136f28c0cbcea89572e0bf16825.jpeg" - }, - "id": 6, - "singleUrl": "http:\/\/localhost:8888\/evento\/6\/", - "name": "Event 6", - "subTitle": null, - "type": { - "id": 1, - "name": "Padr\u00e3o" - }, - "shortDescription": "of Staff User 2", - "terms": { - "tag": [], - "linguagem": [] - }, - "project": { - "name": null, - "singleUrl": null - }, - "endereco": null, - "classificacaoEtaria": null - } - ] - }, - "1ed4763229de42743e2826613c9dcbee": { - "userId": 1, - "controller": "project", - "endpoint": "find", - "qdata": { - "name": "ilike(**)", - "@select": "id,name,terms,type", - "@limit": "10", - "@page": "1", - "@order": "name ASC", - "@files": "(avatar.avatarSmall):url", - "@permissions": "requestEventRelation", - "_": "1481854772876" - }, - "result": [ - { - "id": 1, - "name": "Project 1", - "terms": { - "tag": [] - }, - "type": { - "id": 1, - "name": "Festival" - } - }, - { - "id": 2, - "name": "Project 2", - "terms": { - "tag": [] - }, - "type": { - "id": 1, - "name": "Festival" - } - }, - { - "id": 3, - "name": "Project 3", - "terms": { - "tag": [] - }, - "type": { - "id": 1, - "name": "Festival" - } - }, - { - "id": 4, - "name": "Project 4", - "terms": { - "tag": [] - }, - "type": { - "id": 1, - "name": "Festival" - } - }, - { - "id": 5, - "name": "Project 5", - "terms": { - "tag": [] - }, - "type": { - "id": 1, - "name": "Festival" - } - }, - { - "id": 6, - "name": "Project 6", - "terms": { - "tag": [] - }, - "type": { - "id": 1, - "name": "Festival" - } - }, - { - "id": 7, - "name": "Project 7", - "terms": { - "tag": [] - }, - "type": { - "id": 1, - "name": "Festival" - } - }, - { - "id": 8, - "name": "Project 8", - "terms": { - "tag": [] - }, - "type": { - "id": 1, - "name": "Festival" - } - } - ] - }, - "d462dcbf06696f7869094799d997d3bd": { - "userId": 1, - "controller": "agent", - "endpoint": "find", - "qdata": { - "name": "ilike(**)", - "@select": "id,name,terms,type,shortDescription", - "@limit": "10", - "@page": "1", - "@order": "name ASC", - "@files": "(avatar.avatarSmall):url", - "id": "!in(3)", - "@permissions": "@control", - "_": "1481854772877" - }, - "result": [ - { - "@files:avatar.avatarSmall": { - "url": "http:\/\/localhost:8888\/files\/agent\/4\/file\/22\/imagem2-1d80d1d4d8de1e61294630edb215f103.jpeg" - }, - "id": 4, - "name": "Admin 2", - "terms": { - "tag": [], - "area": [ - "Arquivo" - ] - }, - "type": { - "id": 1, - "name": "Individual" - }, - "shortDescription": "short description" - }, - { - "id": 356, - "name": "New 1", - "terms": { - "tag": [ - "TAGUEADO" - ], - "area": [ - "Arte Digital" - ] - }, - "type": { - "id": 1, - "name": "Individual" - }, - "shortDescription": "descricao curta" - }, - { - "id": 357, - "name": "New 2", - "terms": { - "tag": [ - "TAGUEADO" - ], - "area": [ - "Arte de Rua" - ] - }, - "type": { - "id": 1, - "name": "Individual" - }, - "shortDescription": "curta" - }, - { - "@files:avatar.avatarSmall": { - "url": "http:\/\/localhost:8888\/files\/agent\/7\/file\/26\/imagem4-4e0f09ec602df7f0dbe0ffa44c19eb5e.jpeg" - }, - "id": 7, - "name": "Normal User 1", - "terms": { - "tag": [], - "area": [ - "Arquivo", - "Arte de Rua", - "Cinema" - ] - }, - "type": { - "id": 1, - "name": "Individual" - }, - "shortDescription": "short description" - }, - { - "@files:avatar.avatarSmall": { - "url": "http:\/\/localhost:8888\/files\/agent\/8\/file\/30\/imagem3-ed0f3136f28c0cbcea89572e0bf16825.jpeg" - }, - "id": 8, - "name": "Normal User 2", - "terms": { - "tag": [], - "area": [ - "Arquitetura-Urbanismo" - ] - }, - "type": { - "id": 1, - "name": "Individual" - }, - "shortDescription": "short description" - }, - { - "id": 5, - "name": "Staff User 1", - "terms": { - "tag": [], - "area": [ - "Artesanato" - ] - }, - "type": { - "id": 1, - "name": "Individual" - }, - "shortDescription": "short description" - }, - { - "id": 6, - "name": "Staff User 2", - "terms": { - "tag": [], - "area": [ - "Artes Visuais" - ] - }, - "type": { - "id": 1, - "name": "Individual" - }, - "shortDescription": "short description" - }, - { - "id": 1, - "name": "Super Admin 1", - "terms": { - "tag": [], - "area": [ - "Antropologia" - ] - }, - "type": { - "id": 1, - "name": "Individual" - }, - "shortDescription": "short description" - }, - { - "id": 2, - "name": "Super Admin 2", - "terms": { - "tag": [], - "area": [ - "Arqueologia" - ] - }, - "type": { - "id": 1, - "name": "Individual" - }, - "shortDescription": "short description" - } - ] - }, - "3073720a2d0bbaf406d8cc56b889cdf5": { - "userId": 8, - "controller": "notification", - "endpoint": "find", - "qdata": { - "@select": "id,status,isRequest,createTimestamp,message,approveUrl,request.permissionTo.approve,request.permissionTo.reject,request.requesterUser.id", - "user": "EQ(@me)", - "@ORDER": "createTimestamp DESC" - }, - "result": [ - { - "id": 29, - "status": 1, - "isRequest": false, - "createTimestamp": { - "date": "2016-12-16 00:19:59.000000", - "timezone_type": 3, - "timezone": "America\/Sao_Paulo" - }, - "message": "Seu \u00faltimo acesso foi em 21\/05\/2014<\/b>, atualize suas informa\u00e7\u00f5es se necess\u00e1rio.", - "approveUrl": "http:\/\/localhost:8888\/aprovar-notificacao\/29\/", - "request": { - "permissionTo": { - "approve": null, - "reject": null - }, - "requesterUser": { - "id": null - } - } - }, - { - "id": 13, - "status": 1, - "isRequest": true, - "createTimestamp": { - "date": "2016-12-15 23:57:42.000000", - "timezone_type": 3, - "timezone": "America\/Sao_Paulo" - }, - "message": "New 2<\/a> quer relacionar o agente Normal User 2<\/a> ao evento Novo Evento<\/a>.", - "approveUrl": "http:\/\/localhost:8888\/aprovar-notificacao\/13\/", - "request": { - "permissionTo": { - "approve": true, - "reject": true - }, - "requesterUser": { - "id": 11 - } - } - } - ] - }, - "d81ecf2aa8836863ba32bee70894e0e7": { - "userId": 8, - "controller": "event", - "endpoint": "find", - "qdata": { - "@count": 1, - "id": "IN(5,3,6,522)" - }, - "result": 4 - }, - "898dbb3f9570df4c66a4bed28da5a19e": { - "userId": 8, - "controller": "event", - "endpoint": "find", - "qdata": { - "@count": 1, - "@verified": "IN(1)", - "id": "IN(5,3,6,522)" - }, - "result": 2 - }, - "ae880dbc16970e0a0f3b69ed8a67700e": { - "userId": 8, - "controller": "event", - "endpoint": "find", - "qdata": { - "@verified": "IN(1)", - "@select": "id", - "id": "IN(5,3,6,522)" - }, - "result": [ - { - "id": 3 - }, - { - "id": 5 - } - ] - }, - "cd372bc3daadb070d3c02a1a6d61f240": { - "userId": 8, - "controller": "agent", - "endpoint": "find", - "qdata": { - "@select": "id", - "@verified": "IN(1)" - }, - "result": [ - { - "id": 5 - }, - { - "id": 7 - }, - { - "id": 1 - }, - { - "id": 3 - } - ] - }, - "887975e7b3275068b648ac11c5f7dae0": { - "userId": 8, - "controller": "space", - "endpoint": "find", - "qdata": { - "@count": 1 - }, - "result": 8 - }, - "924af6e102f6a52b3408c67a1834f533": { - "userId": 8, - "controller": "space", - "endpoint": "find", - "qdata": { - "@count": 1, - "@verified": "IN(1)" - }, - "result": 4 - }, - "805df4e79db5c412f7025fdcca19ee4f": { - "userId": 8, - "controller": "space", - "endpoint": "find", - "qdata": { - "@select": "id", - "@verified": "IN(1)" - }, - "result": [ - { - "id": 1 - }, - { - "id": 7 - }, - { - "id": 5 - }, - { - "id": 3 - } - ] - }, - "76329a07e4e529c7256b0451628f794d": { - "userId": 8, - "controller": "project", - "endpoint": "find", - "qdata": { - "@count": 1 - }, - "result": 8 - }, - "dc8312c7ee464b8c010bc9777b108f95": { - "userId": 8, - "controller": "project", - "endpoint": "find", - "qdata": { - "@count": 1, - "@verified": "IN(1)" - }, - "result": 4 - }, - "83b1bcb38835c90dd4fb28b3984e43b8": { - "userId": 8, - "controller": "project", - "endpoint": "find", - "qdata": { - "@select": "id", - "@verified": "IN(1)" - }, - "result": [ - { - "id": 1 - }, - { - "id": 3 - }, - { - "id": 5 - }, - { - "id": 7 - } - ] - }, - "bb446ee6713499e68496013d971c6124": { - "userId": 8, - "controller": "event", - "endpoint": "find", - "qdata": { - "@select": "name,type,status,terms,classificacaoEtaria,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,createTimestamp", - "@files": "(avatar.avatarSmall):url", - "user": "EQ(8)", - "status": "EQ(1)", - "@limit": 50, - "@order": "name ASC", - "@page": 1 - }, - "result": [ - { - "name": "Event 8", - "type": { - "id": 1, - "name": "Padr\u00e3o" - }, - "status": 1, - "terms": { - "tag": [], - "linguagem": [] - }, - "classificacaoEtaria": null, - "singleUrl": "http:\/\/localhost:8888\/evento\/8\/", - "editUrl": "http:\/\/localhost:8888\/eventos\/edita\/8\/", - "deleteUrl": "http:\/\/localhost:8888\/eventos\/apaga\/8\/", - "publishUrl": "http:\/\/localhost:8888\/eventos\/publish\/8\/", - "unpublishUrl": "http:\/\/localhost:8888\/eventos\/unpublish\/8\/", - "createTimestamp": { - "date": "2014-05-21 18:04:44.000000", - "timezone_type": 3, - "timezone": "America\/Sao_Paulo" - } - } - ] - }, - "ff3e846c1e76ee78acfd341f9d886904": { - "userId": 8, - "controller": "event", - "endpoint": "find", - "qdata": { - "@select": "name,type,status,terms,classificacaoEtaria,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,createTimestamp", - "@files": "(avatar.avatarSmall):url", - "user": "EQ(8)", - "status": "EQ(0)", - "@permissions": "view" - }, - "result": [] - }, - "4b0a3188d6397ee24bf9ceb23cb7f5ff": { - "userId": 8, - "controller": "event", - "endpoint": "find", - "qdata": { - "@select": "name,type,status,terms,classificacaoEtaria,singleUrl,editUrl,deleteUrl,publishUrl,unpublishUrl,createTimestamp", - "@files": "(avatar.avatarSmall):url", - "user": "EQ(8)", - "status": "EQ(-10)", - "@permissions": "view" - }, - "result": [] - }, - "d295aed105d3488ab3cf21776c08cbfa": { - "userId": 8, - "controller": "seal", - "endpoint": "find", - "qdata": { - "@select": "id,name,status, singleUrl", - "@permissions": "@control", - "@files": "(avatar.avatarMedium):url", - "@ORDER": "createTimestamp DESC" - }, - "result": [] - }, - "8e039c2ae6efbf28efd8cb8ebd554024": { - "userId": 8, - "controller": "agent", - "endpoint": "find", - "qdata": { - "name": "ilike(**)", - "@select": "id,name,terms,type,shortDescription", - "@limit": "10", - "@page": "1", - "@order": "name ASC", - "@files": "(avatar.avatarSmall):url", - "id": "!in(8)", - "@permissions": "@control", - "_": "1481854807131" - }, - "result": [] - }, - "e6460dcc184447f969c52871f2a0ac5a": { - "userId": 11, - "controller": "agent", - "endpoint": "find", - "qdata": { - "name": "ilike(**)", - "@select": "id,name,terms,type,shortDescription", - "@limit": "10", - "@page": "1", - "@order": "name ASC", - "@files": "(avatar.avatarSmall):url", - "id": "!in(357)", - "@permissions": "@control", - "_": "1481854842708" - }, - "result": [] - } -} \ No newline at end of file diff --git a/tests/src/bootstrap.php b/tests/src/bootstrap.php deleted file mode 100644 index e8f5ebf45f..0000000000 --- a/tests/src/bootstrap.php +++ /dev/null @@ -1,47 +0,0 @@ - 'get', - 'PATH_INFO' => '/', - 'SERVER_NAME' => 'local.dev', -))); - - -$config = include __DIR__ . '/../src/protected/application/conf/conf-test.php'; - -if(isset($_ENV['MAPASCULTURAIS_CONFIG_FILE'])){ - $config = include __DIR__ . '/../src/protected/application/conf/'. $_ENV['MAPASCULTURAIS_CONFIG_FILE']; -}else if(isset($_SERVER['MAPASCULTURAIS_CONFIG_FILE'])){ - $config = include __DIR__ . '/../src/protected/application/conf/' . $_SERVER['MAPASCULTURAIS_CONFIG_FILE']; -} - -// create the App instance -$app = App::i()->init($config); -$app->register(); - -require __DIR__ . '/classes/TestCase.php'; -require __DIR__ . '/classes/TestFactory.php'; - -/* End of file bootstrap.php */ diff --git a/tests/src/APITest.php b/tests/unit/APITest.php similarity index 75% rename from tests/src/APITest.php rename to tests/unit/APITest.php index 88dbbfdcfe..9e9544449e 100644 --- a/tests/src/APITest.php +++ b/tests/unit/APITest.php @@ -1,35 +1,40 @@ api($entity, $_params); return $rs->find(); } - - function apiFindOne($entity, $_params){ + + function apiFindOne($entity, $_params) + { $rs = $this->api($entity, $_params); return $rs->findOne(); } - - function apiCount($entity, $_params){ + + function apiCount($entity, $_params) + { $rs = $this->api($entity, $_params); return $rs->count(); } - function testFindOneMethod() { - $simplify = function($entity, $props){ + function testFindOneMethod() + { + $simplify = function ($entity, $props) { return (array) $entity->simplify($props); }; @@ -37,7 +42,7 @@ function testFindOneMethod() { 'id' => $simplify, 'id,singleUrl,editUrl,deleteUrl,destroyUrl,endereco,En_CEP' => $simplify, - 'id,name,user.id' => function($entity){ + 'id,name,user.id' => function ($entity) { $user = $entity->ownerUser; return [ 'id' => $entity->id, @@ -45,7 +50,7 @@ function testFindOneMethod() { 'user' => $user->id ]; }, - 'id,name,owner' => function($entity){ + 'id,name,owner' => function ($entity) { return [ 'id' => $entity->id, 'name' => $entity->name, @@ -54,19 +59,22 @@ function testFindOneMethod() { }, ]; - foreach([null,'superAdmin','admin','normal'] as $user){ + foreach ([null, 'superAdmin', 'admin', 'normal'] as $user) { $this->user = $user; // agente nao tem owner, tem parent... - foreach(['Space', 'Project', 'Event'] as $class){ + foreach (['Space', 'Project', 'Event'] as $class) { $entities = $this->app->repo($class)->findAll(); - foreach($entities as $entity){ - if($entity->status < 1) continue; + foreach ($entities as $entity) { + if ($entity->status < 1) + continue; - foreach($cps as $props => $proc){ + foreach ($cps as $props => $proc) { $response = $this->apiFindOne($class, "@select={$props}&id=EQ({$entity->id})"); $_entity = $proc($entity, $props); + $_entity['@entityType'] = strtolower($class); + $this->assertEquals($_entity, $response, "asserting {$class} api findOne to \$user"); } @@ -75,7 +83,8 @@ function testFindOneMethod() { } } - function testQuerySintax(){ + function testQuerySintax() + { $this->user = 'admin'; $s1 = 'id,name,owner'; @@ -83,7 +92,7 @@ function testQuerySintax(){ $s3 = 'id,name,owner.{id}'; $entities = $this->app->repo('Event')->findAll(); - foreach($entities as $entity){ + foreach ($entities as $entity) { $r1 = $this->apiFind('event', "id=EQ($entity->id)&@select=$s1"); $r2 = $this->apiFind('event', "id=EQ($entity->id)&@select=$s2"); $r3 = $this->apiFind('event', "id=EQ($entity->id)&@select=$s3"); @@ -93,22 +102,23 @@ function testQuerySintax(){ } } - function testSelectWildcard(){ - $occurrences = $this->apiFindOne('event', "id=EQ(3)&@limit=1&@select=id,name,occurrences.{*}"); - $spaces = $this->apiFindOne('event', "id=EQ(3)&@limit=1&@select=id,name,occurrences.{space.*}"); - $occ_space = $this->apiFindOne('event', "id=EQ(3)&@limit=1&@select=id,name,occurrences.{*, space.*}"); - + function testSelectWildcard() + { + $occurrences = $this->apiFindOne('event', "@limit=1&@select=id,name,occurrences.{*}"); + $spaces = $this->apiFindOne('event', "@limit=1&@select=id,name,occurrences.{space.*}"); + $occ_space = $this->apiFindOne('event', "@limit=1&@select=id,name,occurrences.{*, space.*}"); + $expected = $occurrences; - foreach($expected['occurrences'] as $i => &$occ){ + foreach ($expected['occurrences'] as $i => &$occ) { $occ['space'] = $spaces['occurrences'][$i]['space']; } $this->assertEquals($expected, $occ_space); - } - function testJsonOutput(){ + function testJsonOutput() + { $event_id = 522; $s1 = 'id,name,user.{id,email,profile.{id,name,singleUrl,endereco,spaces.{id,name,singleUrl,endereco}}}'; @@ -124,7 +134,8 @@ function testJsonOutput(){ } - function testEventsOfProject(){ + function testEventsOfProject() + { $this->resetTransactions(); // assert that users WITHOUT control of a project CANNOT create events to this project $user1 = $this->getUser('normal', 0); @@ -164,10 +175,11 @@ function testEventsOfProject(){ ], $r1[0], 'verify the returned event'); } - function testSelectPropertiesOrder() { + function testSelectPropertiesOrder() + { $r1 = $this->apiFindOne('agent', "@select=id,name,location,shortDescription"); $r2 = $this->apiFindOne('agent', "@select=id,shortDescription,name,location"); - + $this->assertEquals(json_encode($r1), json_encode($r2), "Certificando que o resultado da api é o mesmo independente da ordem das propriedades no @select"); } } diff --git a/tests/src/AgentTest.php b/tests/unit/AgentTest.php similarity index 83% rename from tests/src/AgentTest.php rename to tests/unit/AgentTest.php index fde3e3dd6e..75592520e2 100644 --- a/tests/src/AgentTest.php +++ b/tests/unit/AgentTest.php @@ -1,75 +1,77 @@ getUser('normal'); $this->user = $user; $agent1 = $user->profile; - + $agent2 = $this->getNewEntity('Agent'); $agent2->user = $user; $agent2->save(true); - + $this->assertTrue($agent1->isUserProfile, 'Asserting that the agent 1 is the user profile before change the the user profile to agent 2'); $this->assertFalse($agent2->isUserProfile, 'Asserting that the agent 2 is not the user profile before change the the user profile to agent 2'); - + $agent2->setAsUserProfile(); - + $this->app->em->refresh($agent1); $this->app->em->refresh($agent2); - + $this->assertFalse($agent1->isUserProfile, 'Asserting that the agent 2 is not the user profile after change the the user profile to agent 2'); $this->assertTrue($agent2->isUserProfile, 'Asserting that the agent 2 is the user profile after change the the user profile to agent 2'); $agent1->setAsUserProfile(); - + $this->app->em->refresh($agent1); $this->app->em->refresh($agent2); - + $this->assertTrue($agent1->isUserProfile, 'Asserting that the agent 2 is the user profile after change the the user profile back to agent 1'); $this->assertFalse($agent2->isUserProfile, 'Asserting that the agent 2 is not the user profile after change the the user profile back to agent 1'); } - - function testParent(){ + + function testParent() + { $this->user = 'normal'; - + $profile = $this->app->user->profile; - + $dest = $this->getNewEntity('Agent'); - + $a1 = $this->getNewEntity('Agent'); $a2 = $this->getNewEntity('Agent'); $a3 = $this->getNewEntity('Agent'); - + $a1->save(true); $a2->save(true); $a3->save(true); - + $dest->save(true); - + $dest->owner = $a1; - $dest->save(true); + $dest->save(true); $dest->refresh(); $this->assertEquals($dest->owner->id, $a1->id); - + $dest->owner = $a2; - $dest->save(true); + $dest->save(true); $dest->refresh(); $this->assertEquals($dest->owner->id, $a2->id); - + $dest->owner = $a3; - $dest->save(true); + $dest->save(true); $dest->refresh(); $this->assertEquals($dest->owner->id, $a3->id); - + // repetindo mesmo agente $dest->owner = $a3; - $dest->save(true); + $dest->save(true); $dest->refresh(); $this->assertEquals($dest->owner->id, $a3->id); - + } } \ No newline at end of file diff --git a/tests/src/AuthTest.php b/tests/unit/AuthTest.php similarity index 86% rename from tests/src/AuthTest.php rename to tests/unit/AuthTest.php index 26e4aea21d..bb0464cff6 100644 --- a/tests/src/AuthTest.php +++ b/tests/unit/AuthTest.php @@ -1,12 +1,15 @@ user = null; $app = $this->app; @@ -18,7 +21,7 @@ function testAuthentication(){ // superadmin $this->user = 'superAdmin'; - + $this->assertTrue($app->auth->isUserAuthenticated(), 'Asserting that the user is authenticated.'); $this->assertFalse($app->user->is('guest'), 'Asserting that the user is not guest.'); $this->assertTrue($app->user->is('admin'), 'Asserting that the user is admin.'); @@ -31,33 +34,38 @@ function testAuthentication(){ $this->assertTrue($app->user->is('guest'), 'Asserting that the user is guest.'); } - function testSuperAdminAuthentication(){ + function testSuperAdminAuthentication() + { $this->user = 'superAdmin'; $this->assertTrue($this->app->user->is('superAdmin'), 'Asserting that the user is super admin.'); } - function testAdminAuthentication(){ + function testAdminAuthentication() + { $this->user = 'admin'; $this->assertTrue($this->app->user->is('admin'), 'Asserting that the user is admin.'); $this->assertFalse($this->app->user->is('superAdmin'), 'Asserting that the user is not super admin.'); } - function testNormalAuthentication(){ + function testNormalAuthentication() + { $this->user = 'normal'; $this->assertFalse($this->app->user->is('guest'), 'Asserting that the user is not guest.'); $this->assertFalse($this->app->user->is('admin'), 'Asserting that the user is not admin.'); $this->assertFalse($this->app->user->is('superAdmin'), 'Asserting that the user is not super admin.'); } - function testRequireAuthentication(){ + function testRequireAuthentication() + { $this->user = null; $app = $this->app; $this->assertEquals('200', $app->response->status(), 'Asserting response status code is 200'); - try{ + try { $app->auth->requireAuthentication(); - } catch (\Exception $e){} + } catch (\Exception $e) { + } $this->assertEquals('401', $app->response->status(), 'Asserting response status code is 401'); @@ -65,9 +73,10 @@ function testRequireAuthentication(){ $app->response->status(200); $this->assertEquals('200', $app->response->status(), 'Asserting response status code is 200'); - try{ + try { $app->controller("space")->requireAuthentication(); - } catch (\Exception $e){} + } catch (\Exception $e) { + } $this->assertEquals('401', $app->response->status(), 'Asserting response status code is 401'); diff --git a/tests/src/CreateEntitiesForDoctrineProxyTest.php b/tests/unit/CreateEntitiesForDoctrineProxyTest.php similarity index 87% rename from tests/src/CreateEntitiesForDoctrineProxyTest.php rename to tests/unit/CreateEntitiesForDoctrineProxyTest.php index 4d0dc4a872..f4b5644070 100644 --- a/tests/src/CreateEntitiesForDoctrineProxyTest.php +++ b/tests/unit/CreateEntitiesForDoctrineProxyTest.php @@ -1,6 +1,6 @@ authUid = 'fakes'; + $user->authProvider = 3; $user->email = 'user@doamain.com'; $user->save(true); - $userFound = $app->repo('User')->findOneBy(array('email'=>'user@doamain.com')); + $userFound = $app->repo('User')->findOneBy(array('email' => 'user@doamain.com')); $this->assertEquals($userFound->email, 'user@doamain.com'); $this->assertEquals($userFound->authUid, 'fakes'); @@ -33,7 +36,7 @@ function testAll() { $agent->name = 'Nameless'; $agent->save(true); - $agentFound = $app->repo('Agent')->findOneBy(array('id'=>$agent->id)); + $agentFound = $app->repo('Agent')->findOneBy(array('id' => $agent->id)); $this->assertEquals($agentFound->name, 'Nameless'); $this->assertEquals($agentFound->user->id, $user->id); @@ -63,13 +66,14 @@ function testAll() { $event->setProjectId($project->id); $event->save(true); - $eventFound = $app->repo('Event')->findOneBy(array('id'=>$event->id)); + $eventFound = $app->repo('Event')->findOneBy(array('id' => $event->id)); $this->assertEquals($eventFound->project->id, $project->id); } - function testURLs(){ + function testURLs() + { $app = \MapasCulturais\App::i(); $urls = [ 'api/agent/find/?&@select=id,name,location&@order=name%20ASC', @@ -86,9 +90,8 @@ function testURLs(){ 'api/project/find/?&@select=id,singleUrl,name,type,shortDescription,terms,registrationFrom,registrationTo&@files=(avatar.avatarBig):url&@page=1&@limit=10&@order=name%20ASC' ]; - foreach($urls as $url){ - $this->assertNotEmpty(file_get_contents($app->config['site.url'].$url)); + foreach ($urls as $url) { + $this->assertNotEmpty(file_get_contents($app->config['site.url'] . $url)); } } } -*/ \ No newline at end of file diff --git a/tests/src/DoctrineFunctionTest.php b/tests/unit/DoctrineFunctionTest.php similarity index 69% rename from tests/src/DoctrineFunctionTest.php rename to tests/unit/DoctrineFunctionTest.php index 32b2164a60..bdcda50e12 100644 --- a/tests/src/DoctrineFunctionTest.php +++ b/tests/unit/DoctrineFunctionTest.php @@ -1,34 +1,41 @@ app->em->createQuery("SELECT string_agg(a.name,'".DELIMITER."') as aggregate FROM MapasCulturais\Entities\Agent a"); + $query1 = $this->app->em->createQuery("SELECT string_agg(a.name,'" . DELIMITER . "') as aggregate FROM MapasCulturais\Entities\Agent a"); $result1 = $query1->getResult(); $query2 = $this->app->em->createQuery("SELECT a.name FROM MapasCulturais\Entities\Agent a"); $result2 = $query2->getResult(); $r2 = []; - foreach($result2 as $item){ $r2[] = $item['name']; } + foreach ($result2 as $item) { + $r2[] = $item['name']; + } $this->assertEquals($result1[0]['aggregate'], join($r2, DELIMITER)); } - function testStringUnaccent(){ + function testStringUnaccent() + { $string1 = 'áéíóúÁÉÍÓÚãĩõũÃĨÕŨâêîôûÂÊÎÔÛäëïöüÄËÏÖÜñÑ'; $string2 = 'aeiouAEIOUaiouAIOUaeiouAEIOUaeiouAEIOUnN'; //unaccented to be matched //doesn't work with ẽẼ, but, it doesn't seem to be used, so I think it's negligible. - $query = $this->app->em->createQuery('SELECT unaccent(\''.$string1.'\') unaccentedString1 FROM MapasCulturais\Entities\Agent a')->setMaxResults(1); + $query = $this->app->em->createQuery('SELECT unaccent(\'' . $string1 . '\') unaccentedString1 FROM MapasCulturais\Entities\Agent a')->setMaxResults(1); $result = $query->getResult(); $this->assertEquals($result[0]['unaccentedString1'], $string2); } - function NOTCOMPLETE_DISABLED_testEventOccurrence(){ + function NOTCOMPLETE_DISABLED_testEventOccurrence() + { $date_from = '2014-08-01'; $date_to = '2014-08-07'; $dql = " @@ -44,12 +51,14 @@ function NOTCOMPLETE_DISABLED_testEventOccurrence(){ ORDER BY eo.starts_on, eo.starts_at"; $query = $this->app->em->createQuery($dql)->setMaxResults(1); - $query->setParameters(array( - 'date_from' => $date_from, - 'date_to' => $date_to - )); + $query->setParameters( + array( + 'date_from' => $date_from, + 'date_to' => $date_to + ) + ); $result = $query->getResult(); - var_dump($result); + // var_dump($result); } } diff --git a/tests/src/EntityTest.php b/tests/unit/EntityTests.php similarity index 90% rename from tests/src/EntityTest.php rename to tests/unit/EntityTests.php index 200a679818..89118e932b 100644 --- a/tests/src/EntityTest.php +++ b/tests/unit/EntityTests.php @@ -1,12 +1,12 @@ assertEmpty($entity->validationErrors, print_r($entity->validationErrors, true)); } - function testDirectCircularReference() { + function testDirectCircularReference() + { $entities = ['Agent', 'Space', 'Project']; foreach ($entities as $class) { @@ -54,7 +55,8 @@ function testDirectCircularReference() { } } - function testIndirectCircularReference() { + function testIndirectCircularReference() + { $entities = ['Agent', 'Space', 'Project']; foreach ($entities as $class) { $this->user = 'normal'; @@ -78,7 +80,8 @@ function testIndirectCircularReference() { } } - function testParentType() { + function testParentType() + { $entities = ['Space', 'Project']; foreach ($entities as $class) { $this->user = 'normal'; @@ -93,7 +96,8 @@ function testParentType() { } } - function testParentIsNotChild() { + function testParentIsNotChild() + { $entities = ['Space', 'Project']; foreach ($entities as $class) { $this->user = 'normal'; @@ -108,15 +112,16 @@ function testParentIsNotChild() { } } - function testUpdateTimestamp(){ + function testUpdateTimestamp() + { $classes = ['Space', 'Project', 'Event', 'Agent']; - + $this->user = 'admin'; - foreach($classes as $class){ + foreach ($classes as $class) { $entities = $this->app->repo($class)->findAll(); - - foreach($entities as $entity){ + + foreach ($entities as $entity) { $timestamp = $entity->updateTimestamp; $entity->name = $entity->name . ' changed'; diff --git a/tests/src/EventTest.php b/tests/unit/EventTest.php similarity index 87% rename from tests/src/EventTest.php rename to tests/unit/EventTest.php index efd7c8a082..28cfa0c0e1 100644 --- a/tests/src/EventTest.php +++ b/tests/unit/EventTest.php @@ -1,5 +1,5 @@ factory->autoPersist = true; } - function testEvent(){ + function testEvent() + { $this->user = 1; $event = $this->factory->createEvent(); @@ -57,12 +60,13 @@ function testEvent(){ $events = $this->app->repo('Event')->findBy(array('name' => $event->name)); - $this->assertEquals(1,count($events)); + $this->assertEquals(1, count($events)); } - function createQuery($date1, $date2) { + function createQuery($date1, $date2) + { $rsm = new \Doctrine\ORM\Query\ResultSetMapping(); - $rsm->addEntityResult('MapasCulturais\Entities\EventOccurrence','e'); + $rsm->addEntityResult('MapasCulturais\Entities\EventOccurrence', 'e'); $rsm->addFieldResult('e', 'id', 'id'); @@ -71,7 +75,8 @@ function createQuery($date1, $date2) { return $this->app->em->createNativeQuery($strNativeQuery, $rsm); } - function testEventOccurrence_single(){ + function testEventOccurrence_single() + { $this->resetTransactions(); $this->user = 1; @@ -92,7 +97,8 @@ function testEventOccurrence_single(){ $this->assertEmpty($occurrence3); } - function testEventOccurrence_daily(){ + function testEventOccurrence_daily() + { $this->resetTransactions(); $this->user = 1; @@ -104,7 +110,7 @@ function testEventOccurrence_daily(){ $this->assertEmpty($occurrence->validationErrors, print_r($occurrence->validationErrors, true)); $occurrence->save(true); - for ($i=2; $i <= 9 ; $i++) { + for ($i = 2; $i <= 9; $i++) { $date = '1950-01-0' . $i; $query = $this->createQuery($date, $date); $occurrences = $query->getArrayResult(); @@ -122,17 +128,18 @@ function testEventOccurrence_daily(){ $this->assertEquals(0, count($occurrences)); } - function testEventOccurrence_weekly(){ + function testEventOccurrence_weekly() + { $this->resetTransactions(); $this->user = 1; $event = $this->factory->createEvent(); $space = $this->factory->createSpace(); - $occurrence = $this->factory->createWeeklyEventOccurrence('1950-01-02 12:00', 180, '1950-11-01', [1,3], $space, $event); + $occurrence = $this->factory->createWeeklyEventOccurrence('1950-01-02 12:00', 180, '1950-11-01', [1, 3], $space, $event); $this->assertEmpty($occurrence->validationErrors, print_r($occurrence->validationErrors, true)); - + $date = '1950-01-02'; $query = $this->createQuery($date, $date); $occurrences = $query->getArrayResult(); @@ -142,7 +149,7 @@ function testEventOccurrence_weekly(){ $query = $this->createQuery($date, $date); $occurrences = $query->getArrayResult(); $this->assertEquals(1, count($occurrences)); - + $date = '1950-01-16'; $query = $this->createQuery($date, $date); $occurrences = $query->getArrayResult(); @@ -158,7 +165,8 @@ function testEventOccurrence_weekly(){ } - function testEventRules(){ + function testEventRules() + { $this->resetTransactions(); $this->user = 1; @@ -166,7 +174,7 @@ function testEventRules(){ $space = $this->factory->createSpace(); $occurrence = new EventOccurrence; - + $occurrence->event = $event; $occurrence->space = $space; @@ -180,21 +188,23 @@ function testEventRules(){ $this->assertEquals(2, count($occurrence->recurrences)); } - function getEventRule(){ + function getEventRule() + { return (object) [ - "spaceId" => "31", - "startsAt" => "12:31", - "duration" => "00h01", + "spaceId" => "31", + "startsAt" => "12:31", + "duration" => "00h01", "frequency" => "weekly", - "startsOn" => "2014-02-10", - "until" => "2014-02-19", - "day" => (object) [ "1" => "on", "3" => "on" ], - "monthly" => "week", + "startsOn" => "2014-02-10", + "until" => "2014-02-19", + "day" => (object) ["1" => "on", "3" => "on"], + "monthly" => "week", "description" => "test description" ]; } - function testEventAttendance(){ + function testEventAttendance() + { $this->resetTransactions(); $this->user = $this->getUser('normal', 0); @@ -204,13 +214,13 @@ function testEventAttendance(){ $event_occurrence_1 = $this->factory->createDailyEventOccurrence('1950-01-01 12:00', 120, '1950-02-22', $space, $event); - $event_occurrence_2 = $this->factory->createWeeklyEventOccurrence('1950-01-10 18:00', 30, '1950-01-31', [1,3,5], $space, $event); - + $event_occurrence_2 = $this->factory->createWeeklyEventOccurrence('1950-01-10 18:00', 30, '1950-01-31', [1, 3, 5], $space, $event); + $this->user = $this->getUser('normal', 1); $event_controller = $this->app->controller('event'); - $occurrences = $event_controller->apiFindOccurrences (['@from' => '1950-01-05', '@to' => '1950-01-31', '@limit'=>3]); + $occurrences = $event_controller->apiFindOccurrences(['@from' => '1950-01-05', '@to' => '1950-01-31', '@limit' => 3]); $oc1 = (object) $occurrences[1]; diff --git a/tests/src/FilesTest.php b/tests/unit/FilesTest.php similarity index 75% rename from tests/src/FilesTest.php rename to tests/unit/FilesTest.php index 658acbc221..48efc58462 100644 --- a/tests/src/FilesTest.php +++ b/tests/unit/FilesTest.php @@ -1,5 +1,5 @@ assertGet200('/api/agent/find?@select=id,name&@files=(avatar.galleryFull):url', 'assert that thumbnail is created without error (/api/agent/find?@select=id,name&@files=(avatar.galleryFull):url)'); } } \ No newline at end of file diff --git a/tests/src/HooksTest.php b/tests/unit/HooksTest.php similarity index 68% rename from tests/src/HooksTest.php rename to tests/unit/HooksTest.php index 541068b4a4..8c7080d059 100644 --- a/tests/src/HooksTest.php +++ b/tests/unit/HooksTest.php @@ -1,28 +1,30 @@ app; $result = []; - $app->hook('test hook order', function() use(&$result){ + $app->hook('test hook order', function () use (&$result) { $result[] = 4; }, 11); - $app->hook('test hook order', function() use(&$result){ + $app->hook('test hook order', function () use (&$result) { $result[] = 1; }, 10); - $app->hook('test hook order', function() use(&$result){ + $app->hook('test hook order', function () use (&$result) { $result[] = 2; }, 10); - $app->hook('test hook order', function() use(&$result){ + $app->hook('test hook order', function () use (&$result) { $result[] = 3; }, 10); - $app->hook('test hook order', function() use(&$result){ + $app->hook('test hook order', function () use (&$result) { $result[] = 0; }, 9); @@ -35,9 +37,10 @@ function testHookOrder(){ $this->assertEquals(4, $result[4]); } - function testHookWildcard() { + function testHookWildcard() + { $app = $this->app; - + $hooks = [ 'field_<<*>>', '<>', @@ -45,8 +48,8 @@ function testHookWildcard() { ]; $result = []; - foreach($hooks as &$hook) { - $app->hook($hook, function() use($hook, &$result) { + foreach ($hooks as &$hook) { + $app->hook($hook, function () use ($hook, &$result) { $result[] = $hook; }); } diff --git a/tests/src/MetadataTest.php b/tests/unit/MetadataTests.php similarity index 84% rename from tests/src/MetadataTest.php rename to tests/unit/MetadataTests.php index 9f626d5f39..9a0575ce86 100644 --- a/tests/src/MetadataTest.php +++ b/tests/unit/MetadataTests.php @@ -1,13 +1,15 @@ registerEntityType($type); @@ -18,7 +20,7 @@ function testValidations(){ 'validations' => array( 'required' => 'required error message' ), - 'validValues' => array('Value','Loren'), + 'validValues' => array('Value', 'Loren'), 'invalidValues' => array(null, '') ), @@ -46,7 +48,7 @@ function testValidations(){ 'validations' => array( 'v::url()' => 'error message' ), - 'validValues' => array(null, '', 'http://www.test.com', 'http://www.testing-tests.com', 'http://www.test.com/', 'https://www.test.com/', 'http://www.test.com/ok', 'https://testing.com/ok.test', 'http://test.com/ok.php', 'http://a.very.long.domain.name.com/ok.jpg?with=get%20params', 'https://www.test.com/ok' ), + 'validValues' => array(null, '', 'http://www.test.com', 'http://www.testing-tests.com', 'http://www.test.com/', 'https://www.test.com/', 'http://www.test.com/ok', 'https://testing.com/ok.test', 'http://test.com/ok.php', 'http://a.very.long.domain.name.com/ok.jpg?with=get%20params', 'https://www.test.com/ok'), 'invalidValues' => array('htts:///222 asd.com', 'asdasd', 'www.test.com') ), @@ -56,7 +58,7 @@ function testValidations(){ 'required' => 'required error message', 'v::url()' => 'error message' ), - 'validValues' => array('http://www.test.com', 'http://www.testing-tests.com', 'http://www.test.com/', 'https://www.test.com/', 'http://www.test.com/ok', 'https://testing.com/ok.test', 'http://test.com/ok.php', 'http://a.very.long.domain.name.com/ok.jpg?with=get%20params', 'https://www.test.com/ok' ), + 'validValues' => array('http://www.test.com', 'http://www.testing-tests.com', 'http://www.test.com/', 'https://www.test.com/', 'http://www.test.com/ok', 'https://testing.com/ok.test', 'http://test.com/ok.php', 'http://a.very.long.domain.name.com/ok.jpg?with=get%20params', 'https://www.test.com/ok'), 'invalidValues' => array(null, '', 'htts:///222 asd.com', 'asdasd', 'www.test.com') ), @@ -71,7 +73,7 @@ function testValidations(){ ) ); - foreach($metas as $meta_key => $config){ + foreach ($metas as $meta_key => $config) { $definition = new MapasCulturais\Definitions\Metadata($meta_key, $config); $app->unregisterEntityMetadata('MapasCulturais\Entities\Agent', $meta_key); $app->registerMetadata($definition, 'MapasCulturais\Entities\Agent', $type->id); @@ -82,15 +84,15 @@ function testValidations(){ $agent->terms['area'][] = 'Cinema'; - for($i = 1; $i <= 2; $i++){ + for ($i = 1; $i <= 2; $i++) { - foreach($config['validValues'] as $val){ + foreach ($config['validValues'] as $val) { $agent->$meta_key = $val; $errors = $agent->getValidationErrors(); $this->assertArrayNotHasKey($meta_key, $errors, print_r(array('type' => "assertArrayNotHasKey", 'KEY' => $meta_key, 'VALID VALUE' => $val, 'errors' => $errors), true)); } - foreach($config['invalidValues'] as $val){ + foreach ($config['invalidValues'] as $val) { $agent->$meta_key = $val; $errors = $agent->getValidationErrors(); $this->assertArrayHasKey($meta_key, $errors, print_r(array('type' => "assertArrayNotHasKey", 'KEY' => $meta_key, 'INVALID VALUE' => $val, 'errors' => $errors), true)); @@ -100,8 +102,9 @@ function testValidations(){ } } - - function testGetMetadata(){ + + function testGetMetadata() + { // testa se o getter funciona para todos os roles // guest user @@ -109,34 +112,35 @@ function testGetMetadata(){ $this->user = null; $event = $this->app->repo('Event')->find(522); $this->assertEquals('Livre', $event->classificacaoEtaria); - + // normal user $this->app->em->clear(); $this->user = 'normal'; $event = $this->app->repo('Event')->find(522); $this->assertEquals('Livre', $event->classificacaoEtaria); - + // admin user $this->app->em->clear(); $this->user = 'admin'; $event = $this->app->repo('Event')->find(522); $this->assertEquals('Livre', $event->classificacaoEtaria); - + } - function testRequiredMetadata() { + function testRequiredMetadata() + { $types = [ - 'number' => [0,0.5,1], - 'integer' => [0,1], - 'json' => [(object) [], [], 'test', '1', 1], - 'boolean' => [true, false,1,0, '1', '0'], - 'string' => ['teste', 333], + 'number' => [0, 0.5, 1], + 'integer' => [0, 1], + 'json' => [(object) [], [], 'test', '1', 1], + 'boolean' => [true, false, 1, 0, '1', '0'], + 'string' => ['teste', 333], 'text' => ['teste', 333] ]; - - foreach($types as $type => $valid_values) { + + foreach ($types as $type => $valid_values) { $field_name = "required_{$type}"; - + $this->registerAgentMetadata($field_name, [ 'type' => $type, 'label' => "Campo do tipo '$type' para testar valores nulos obrigatórios", @@ -150,12 +154,12 @@ function testRequiredMetadata() { $agent = $this->getNewEntity('Agent'); - foreach($types as $type => $valid_values) { + foreach ($types as $type => $valid_values) { $field_name = "required_{$type}"; $errors = $agent->validationErrors[$field_name] ?? []; $this->assertContains('campo obrigatório', $errors, "Campo do tipo $type não preenchido deve retornar erro de validação"); - foreach($valid_values as $value) { + foreach ($valid_values as $value) { $agent->$field_name = $value; $errors = $agent->validationErrors[$field_name] ?? []; $this->assertNotContains('campo obrigatório', $errors, "Campo do tipo $type não deve retornar erro de validação quando preenchido com valor válido: " . print_r($value, true)); @@ -163,21 +167,22 @@ function testRequiredMetadata() { } } - function testNullValues() { + function testNullValues() + { $app = App::i(); $types = [ - 'number' => 1.5, - 'integer' => 1, - 'json' => (object) [], - 'boolean' => true, - 'string' => 'teste', + 'number' => 1.5, + 'integer' => 1, + 'json' => (object) [], + 'boolean' => true, + 'string' => 'teste', 'text' => 'teste' ]; - - foreach($types as $type => $valid_value) { + + foreach ($types as $type => $valid_value) { $field_name = "optional_{$type}"; - + $this->registerAgentMetadata($field_name, [ 'type' => $type, 'label' => "Campo do tipo '$type' para testar valores nulos" @@ -188,14 +193,14 @@ function testNullValues() { $agent = $this->getNewEntity('Agent'); - foreach($types as $type => $valid_value) { + foreach ($types as $type => $valid_value) { $field_name = "optional_{$type}"; $this->assertNull($agent->$field_name, "campo opcional do tipo $type deveria ser nulo antes de ser definido"); } // assegurando que é possível deixar o campo nulo após salvar um valor válido - foreach($types as $type => $valid_value) { + foreach ($types as $type => $valid_value) { $field_name = "optional_{$type}"; $agent->$field_name = $valid_value; @@ -205,10 +210,10 @@ function testNullValues() { $agent_id = $agent->id; $app->em->clear(); - + $agent = $app->repo('Agent')->find($agent_id); - - foreach($types as $type => $valid_value) { + + foreach ($types as $type => $valid_value) { $field_name = "optional_{$type}"; $this->assertEquals($valid_value, $agent->$field_name, 'O valor do campo salvo deve ser igual ao definido'); @@ -220,7 +225,7 @@ function testNullValues() { $agent = $app->repo('Agent')->find($agent_id); - foreach($types as $type => $valid_value) { + foreach ($types as $type => $valid_value) { $field_name = "optional_{$type}"; $this->assertNull($agent->$field_name, "campo opcional do tipo $type deveria ser nulo após ser definido como null"); diff --git a/tests/src/PermissionsTest.php b/tests/unit/PermissionsTest.php similarity index 79% rename from tests/src/PermissionsTest.php rename to tests/unit/PermissionsTest.php index 2a1458699c..736b7fdd8b 100644 --- a/tests/src/PermissionsTest.php +++ b/tests/unit/PermissionsTest.php @@ -1,28 +1,32 @@ app->em->createQuery("SELECT e FROM $classname e WHERE e.status > 0 $where")->setMaxResults(1)->getOneOrNullResult(); - else if($_class === 'Agent') + else if ($_class === 'Agent') return $this->app->em->createQuery("SELECT e FROM $classname e JOIN e.user u WHERE e.status > 0 $where")->setMaxResults(1)->getOneOrNullResult(); else return $this->app->em->createQuery("SELECT e FROM $classname e JOIN e.owner a JOIN a.user u WHERE e.status > 0 $where")->setMaxResults(1)->getOneOrNullResult(); } - function testCanUserCreate(){ - $this->app->disableWorkflow(); + function testCanUserCreate() + { + // $this->app->disableWorkflow(); $this->resetTransactions(); $app = MapasCulturais\App::i(); @@ -31,11 +35,11 @@ function testCanUserCreate(){ */ $this->user = null; - foreach($this->entities as $class => $plural){ - if($class === 'Agent') + foreach ($this->entities as $class => $plural) { + if ($class === 'Agent') continue; - $this->assertPermissionDenied(function() use ($class){ + $this->assertPermissionDenied(function () use ($class) { $entity = $this->getNewEntity($class); $entity->save(true); }, "Asserting that the guest user CANNOT create $plural."); @@ -47,8 +51,8 @@ function testCanUserCreate(){ $this->user = 'superAdmin'; - foreach($this->entities as $class => $plural){ - $this->assertPermissionGranted(function() use ($class){ + foreach ($this->entities as $class => $plural) { + $this->assertPermissionGranted(function () use ($class) { $entity = $this->getNewEntity($class); $entity->save(true); }, "Asserting that a super admin user CAN create $plural."); @@ -62,8 +66,8 @@ function testCanUserCreate(){ $another_user = $this->getRandomEntity('User', 'e.id != ' . $app->user->id); - foreach($this->entities as $class => $plural){ - $this->assertPermissionDenied(function() use ($class, $another_user){ + foreach ($this->entities as $class => $plural) { + $this->assertPermissionDenied(function () use ($class, $another_user) { $entity = $this->getNewEntity($class); $entity->owner = $another_user->profile; @@ -78,8 +82,8 @@ function testCanUserCreate(){ */ $this->user = 'superAdmin'; - foreach($this->entities as $class => $plural){ - $this->assertPermissionGranted(function() use ($class, $another_user){ + foreach ($this->entities as $class => $plural) { + $this->assertPermissionGranted(function () use ($class, $another_user) { $entity = $this->getNewEntity($class); $entity->owner = $another_user->profile; @@ -97,8 +101,8 @@ function testCanUserCreate(){ $this->user = 'normal'; - foreach($this->entities as $class => $plural){ - $this->assertPermissionDenied(function() use ($class, $owner){ + foreach ($this->entities as $class => $plural) { + $this->assertPermissionDenied(function () use ($class, $owner) { $entity = $this->getNewEntity($class, null, $owner); $entity->save(true); }, "Asserting that a user CANNOT create $plural owned by a not published agent"); @@ -108,8 +112,9 @@ function testCanUserCreate(){ } - function testCanUserModify(){ - $this->app->disableWorkflow(); + function testCanUserModify() + { + // $this->app->disableWorkflow(); $this->resetTransactions(); /* * Asserting thar guest users cannot modify entities @@ -117,8 +122,8 @@ function testCanUserModify(){ $this->user = null; - foreach($this->entities as $class => $plural){ - $this->assertPermissionDenied(function() use ($class){ + foreach ($this->entities as $class => $plural) { + $this->assertPermissionDenied(function () use ($class) { $entity = $this->getRandomEntity($class); $entity->shortDescription = "modificado " . uniqid(); $entity->save(true); @@ -126,13 +131,13 @@ function testCanUserModify(){ } - foreach(['normal'] as $role){ + foreach (['normal'] as $role) { $this->user = $role; /* * Asserting thar normal users cannot modify entities of other user */ - foreach($this->entities as $class => $plural){ - $this->assertPermissionDenied(function() use ($class){ + foreach ($this->entities as $class => $plural) { + $this->assertPermissionDenied(function () use ($class) { $entity = $this->getRandomEntity($class, "u.id != " . $this->app->user->id); $entity->shortDescription = "modificado " . uniqid(); $entity->save(true); @@ -143,8 +148,8 @@ function testCanUserModify(){ /* * Asserting thar normal users can modify their own entities */ - foreach($this->entities as $class => $plural){ - $this->assertPermissionGranted(function() use ($class){ + foreach ($this->entities as $class => $plural) { + $this->assertPermissionGranted(function () use ($class) { $entity = $this->getRandomEntity($class, "u.id = " . $this->app->user->id); $entity->shortDescription = "modificado " . uniqid(); $entity->save(true); @@ -152,13 +157,13 @@ function testCanUserModify(){ } } - foreach(['admin', 'superAdmin'] as $role){ + foreach (['admin', 'superAdmin'] as $role) { $this->user = $role; /* * Asserting thar admin and super admin users can modify entities of other user */ - foreach($this->entities as $class => $plural){ - $this->assertPermissionGranted(function() use ($class){ + foreach ($this->entities as $class => $plural) { + $this->assertPermissionGranted(function () use ($class) { $entity = $this->getRandomEntity($class, "u.id != " . $this->app->user->id); $entity->shortDescription = "modificado " . uniqid(); $entity->save(true); @@ -169,18 +174,9 @@ function testCanUserModify(){ $this->app->enableWorkflow(); } - // function testCanUserRemove(){ - // $this->app->disableWorkflow(); - // $this->app->enableWorkflow(); - // } - - // function testCanUserViewPrivateData(){ - // $this->app->disableWorkflow(); - // $this->app->enableWorkflow(); - // } - - function testAgentRelationsPermissions(){ - $this->app->disableWorkflow(); + function testAgentRelationsPermissions() + { + // $this->app->disableWorkflow(); $this->resetTransactions(); // create agent relation without control @@ -194,14 +190,20 @@ function testAgentRelationsPermissions(){ $GROUP = 'group 1'; - $user1 = function (){ return $this->getUser('admin', 0); }; - $user2 = function (){ return $this->getUser('normal', 0); }; - $user3 = function (){ return $this->getUser('normal', 1); }; + $user1 = function () { + return $this->getUser('admin', 0); + }; + $user2 = function () { + return $this->getUser('normal', 0); + }; + $user3 = function () { + return $this->getUser('normal', 1); + }; /* * Asserting that owner user and a related agent with control can modify an entity */ - foreach($this->entities as $class => $plural){ + foreach ($this->entities as $class => $plural) { $this->resetTransactions(); $entities = $class == 'Agent' ? $user1()->$plural : $user1()->profile->$plural; @@ -241,8 +243,8 @@ function testAgentRelationsPermissions(){ $new_agent2->save(true); $new_agent3->save(true); - foreach($this->entities as $class => $plural){ - if($class == 'Agent') + foreach ($this->entities as $class => $plural) { + if ($class == 'Agent') continue; $entities = $user1()->$plural; @@ -250,7 +252,7 @@ function testAgentRelationsPermissions(){ $this->user = 'admin'; - $this->assertPermissionGranted(function() use($entity){ + $this->assertPermissionGranted(function () use ($entity) { $old_owner = $entity->owner; $entity->owner = $this->app->user->profile; $entity->save(true); @@ -261,19 +263,19 @@ function testAgentRelationsPermissions(){ }, "Asserting that an admin user CAN modify the $class owner"); $this->user = $user1(); - $this->assertPermissionGranted(function() use($entity, $new_agent1){ + $this->assertPermissionGranted(function () use ($entity, $new_agent1) { $entity->owner = $new_agent1; $entity->save(true); }, "Asserting that the user CAN modify his own $class owner before the relation is created."); $this->user = $user2(); - $this->assertPermissionDenied(function() use($entity, $new_agent2){ + $this->assertPermissionDenied(function () use ($entity, $new_agent2) { $entity->owner = $new_agent2; $entity->save(true); }, "Asserting that the user 2 CANNOT modify the $class owner before the relation is created."); $this->user = $user3(); - $this->assertPermissionDenied(function() use($entity, $new_agent3){ + $this->assertPermissionDenied(function () use ($entity, $new_agent3) { $entity->owner = $new_agent3; $entity->save(true); }, "Asserting that the user 3 CANNOT modify the $class owner before the relation is created."); @@ -285,19 +287,19 @@ function testAgentRelationsPermissions(){ // create the realation with control $entity->createAgentRelation($user2()->profile, $GROUP, true, true); - $this->assertPermissionGranted(function() use($entity, $new_agent1){ + $this->assertPermissionGranted(function () use ($entity, $new_agent1) { $entity->owner = $new_agent1; $entity->save(true); }, "Asserting that the user CAN modify his own $class owner before the relation is created."); $this->user = $user2(); - $this->assertPermissionDenied(function() use($entity, $new_agent2){ + $this->assertPermissionDenied(function () use ($entity, $new_agent2) { $entity->owner = $new_agent2; $entity->save(true); }, "Asserting that the user 2, now with control, CANNOT modify the $class owner AFTER the relation is created."); $this->user = $user3(); - $this->assertPermissionDenied(function() use($entity, $new_agent3){ + $this->assertPermissionDenied(function () use ($entity, $new_agent3) { $entity->owner = $new_agent3; $entity->save(true); }, "Asserting that the user 3 CANNOT modify the $class owner after the relation is created."); @@ -309,13 +311,14 @@ function testAgentRelationsPermissions(){ * Asserting that only the owner user can remove an entity */ - foreach($this->entities as $class => $plural){ + foreach ($this->entities as $class => $plural) { $this->user = $user1(); - if($class == 'Agent'){ - $entity = $this->getNewEntity($class);; + if ($class == 'Agent') { + $entity = $this->getNewEntity($class); + ; $entity->save(true); - }else{ + } else { $entities = $user1()->$plural; $entity = $entities[0]; } @@ -341,24 +344,24 @@ function testAgentRelationsPermissions(){ /* * Asserting that user with control can create spaces, projects and events owned by the controlled agent. */ - foreach($this->entities as $class => $plural){ - if($class == 'Agent') + foreach ($this->entities as $class => $plural) { + if ($class == 'Agent') continue; - $this->assertPermissionGranted(function() use($user1, $class){ + $this->assertPermissionGranted(function () use ($user1, $class) { $this->user = $user1(); $entity = $this->getNewEntity($class, $user1()); $entity->save(true); }, "Asserting that user CAN create $plural owned by his own agent before the relation is created"); - $this->assertPermissionDenied(function() use($user1, $user2, $class){ + $this->assertPermissionDenied(function () use ($user1, $user2, $class) { $this->user = $user2(); $entity = $this->getNewEntity($class); $entity->owner = $user1()->profile; $entity->save(true); }, "Asserting that user 2 CANNOT create $plural owned by user 1 before the relation is created"); - $this->assertPermissionDenied(function() use($user1, $user3, $class){ + $this->assertPermissionDenied(function () use ($user1, $user3, $class) { $this->user = $user3(); $entity = $this->getNewEntity($class); $entity->owner = $user1()->profile; @@ -371,20 +374,20 @@ function testAgentRelationsPermissions(){ $agent->createAgentRelation($user2()->profile, $GROUP, true, true); - $this->assertPermissionGranted(function() use($user1, $class){ + $this->assertPermissionGranted(function () use ($user1, $class) { $this->user = $user1(); $entity = $this->getNewEntity($class, $user1()); $entity->save(true); }, "Asserting that user CAN create $plural owned by his own agent after the relation is created"); - $this->assertPermissionGranted(function() use($user1, $user2, $class){ + $this->assertPermissionGranted(function () use ($user1, $user2, $class) { $this->user = $user2(); $entity = $this->getNewEntity($class); $entity->owner = $user1()->profile; $entity->save(true); }, "Asserting that user 2, now with control, CAN create $plural owned by user 1 after the relation is created"); - $this->assertPermissionDenied(function() use($user1, $user3, $class){ + $this->assertPermissionDenied(function () use ($user1, $user3, $class) { $this->user = $user3(); $entity = $this->getNewEntity($class); $entity->owner = $user1()->profile; @@ -396,12 +399,12 @@ function testAgentRelationsPermissions(){ /* * Asserting that user with control can remove spaces, projects and events owned by the controlled agent. */ - foreach($this->entities as $class => $plural){ - if($class == 'Agent') + foreach ($this->entities as $class => $plural) { + if ($class == 'Agent') continue; - $this->assertPermissionGranted(function() use($user1, $plural){ + $this->assertPermissionGranted(function () use ($user1, $plural) { $this->user = $user1(); $entities = $user1()->$plural; @@ -412,7 +415,7 @@ function testAgentRelationsPermissions(){ $this->resetTransactions(); - $this->assertPermissionDenied(function() use($user1, $user2, $plural){ + $this->assertPermissionDenied(function () use ($user1, $user2, $plural) { $this->user = $user2(); $entities = $user1()->$plural; @@ -423,7 +426,7 @@ function testAgentRelationsPermissions(){ $this->resetTransactions(); - $this->assertPermissionDenied(function() use($user1, $user3, $plural){ + $this->assertPermissionDenied(function () use ($user1, $user3, $plural) { $this->user = $user3(); $entities = $user1()->$plural; @@ -436,7 +439,7 @@ function testAgentRelationsPermissions(){ $this->user = $user1(); $user1()->profile->createAgentRelation($user2()->profile, $GROUP, true, true); - $this->assertPermissionGranted(function() use($user1, $plural){ + $this->assertPermissionGranted(function () use ($user1, $plural) { $this->user = $user1(); $entities = $user1()->$plural; @@ -449,7 +452,7 @@ function testAgentRelationsPermissions(){ $this->user = $user1(); $user1()->profile->createAgentRelation($user2()->profile, $GROUP, true, true); - $this->assertPermissionGranted(function() use($user1, $user2, $user3, $plural){ + $this->assertPermissionGranted(function () use ($user1, $user2, $user3, $plural) { $this->user = $user2(); $entities = $user1()->profile->$plural; @@ -462,7 +465,7 @@ function testAgentRelationsPermissions(){ $this->user = $user1(); $user1()->profile->createAgentRelation($user2()->profile, $GROUP, true, true); - $this->assertPermissionDenied(function() use($user1, $user3, $plural){ + $this->assertPermissionDenied(function () use ($user1, $user3, $plural) { $this->user = $user3(); $entities = $user1()->profile->$plural; @@ -478,13 +481,13 @@ function testAgentRelationsPermissions(){ * Asserting that an user with control can create agent relations */ - foreach($this->entities as $class => $plural){ + foreach ($this->entities as $class => $plural) { $this->resetTransactions(); $this->user = $user1(); - if($class === 'Agent'){ + if ($class === 'Agent') { $entity = $user1()->profile; - }else{ + } else { $entities = $user1()->profile->$plural; $entity = $entities[0]; } @@ -492,7 +495,7 @@ function testAgentRelationsPermissions(){ $entity->createAgentRelation($user2()->profile, $GROUP, true, true); $this->user = $user2(); - $this->assertPermissionGranted(function() use ($entity, $user2, $GROUP){ + $this->assertPermissionGranted(function () use ($entity, $user2, $GROUP) { $entity->createAgentRelation($user2()->profile, $GROUP, false, true); }, "Asserting that user CAN create agent relations with $plural that he has control"); @@ -503,13 +506,13 @@ function testAgentRelationsPermissions(){ * Asserting that an user with control can remove agent relations of agents without control */ - foreach($this->entities as $class => $plural){ + foreach ($this->entities as $class => $plural) { $this->resetTransactions(); $this->user = $user1(); - if($class === 'Agent'){ + if ($class === 'Agent') { $entity = $user1()->profile; - }else{ + } else { $entities = $user1()->profile->$plural; $entity = $entities[0]; } @@ -519,7 +522,7 @@ function testAgentRelationsPermissions(){ $entity->createAgentRelation($user3()->profile, $GROUP, false, true); $this->user = $user2(); - $this->assertPermissionGranted(function() use ($entity, $user3, $GROUP){ + $this->assertPermissionGranted(function () use ($entity, $user3, $GROUP) { $entity->removeAgentRelation($user3()->profile, $GROUP, false, true); }, "Asserting that user CAN remove agent relations with $plural that he has control"); @@ -530,13 +533,13 @@ function testAgentRelationsPermissions(){ * Asserting that an user with control CANNOT remove agent relations of agents with control */ - foreach($this->entities as $class => $plural){ + foreach ($this->entities as $class => $plural) { $this->resetTransactions(); $this->user = $user1(); - if($class === 'Agent'){ + if ($class === 'Agent') { $entity = $user1()->profile; - }else{ + } else { $entities = $user1()->profile->$plural; $entity = $entities[0]; } @@ -546,7 +549,7 @@ function testAgentRelationsPermissions(){ $entity->createAgentRelation($user3()->profile, $GROUP, true, true); $this->user = $user2(); - $this->assertPermissionDenied(function() use ($entity, $user3, $GROUP){ + $this->assertPermissionDenied(function () use ($entity, $user3, $GROUP) { $entity->removeAgentRelation($user3()->profile, $GROUP, false, true); }, "Asserting that user CANNOT remove agent relations with $plural that he has control"); @@ -556,13 +559,13 @@ function testAgentRelationsPermissions(){ * Asserting that an user with control cannot give control to a related agent */ - foreach($this->entities as $class => $plural){ + foreach ($this->entities as $class => $plural) { $this->resetTransactions(); $this->user = $user1(); - if($class === 'Agent'){ + if ($class === 'Agent') { $entity = $user1()->profile; - }else{ + } else { $entities = $user1()->profile->$plural; $entity = $entities[0]; } @@ -572,7 +575,7 @@ function testAgentRelationsPermissions(){ $entity->createAgentRelation($user3()->profile, $GROUP, false, true); $this->user = $user2(); - $this->assertPermissionDenied(function() use ($entity, $user3){ + $this->assertPermissionDenied(function () use ($entity, $user3) { $entity->setRelatedAgentControl($user3()->profile, true); }, "Asserting that user CANNOT give control to other related agent in $plural that he has control"); @@ -582,13 +585,13 @@ function testAgentRelationsPermissions(){ * Asserting that an user with control cannot remove control of a related agent */ - foreach($this->entities as $class => $plural){ + foreach ($this->entities as $class => $plural) { $this->resetTransactions(); $this->user = $user1(); - if($class === 'Agent'){ + if ($class === 'Agent') { $entity = $user1()->profile; - }else{ + } else { $entities = $user1()->profile->$plural; $entity = $entities[0]; } @@ -598,7 +601,7 @@ function testAgentRelationsPermissions(){ $entity->createAgentRelation($user3()->profile, $GROUP, true, true); $this->user = $user2(); - $this->assertPermissionDenied(function() use ($entity, $user3){ + $this->assertPermissionDenied(function () use ($entity, $user3) { $entity->setRelatedAgentControl($user3()->profile, false); }, "Asserting that user CANNOT remove control of other related agent in $plural that he has control"); @@ -609,7 +612,7 @@ function testAgentRelationsPermissions(){ * Asserting that an user with control over a space or project can control children spaces or projects */ - foreach(array('Space' => 'spaces', 'Project' => 'projects') as $class => $plural){ + foreach (array('Space' => 'spaces', 'Project' => 'projects') as $class => $plural) { $this->resetTransactions(); $this->user = $user1(); @@ -641,8 +644,8 @@ function testAgentRelationsPermissions(){ * Asserting that an user with control over an agent CONTROL and CAN REMOVE spaces, events and projects of the controlled agent */ - foreach($this->entities as $class => $plural){ - if($class === 'Agent') + foreach ($this->entities as $class => $plural) { + if ($class === 'Agent') continue; $this->resetTransactions(); @@ -660,7 +663,7 @@ function testAgentRelationsPermissions(){ $this->assertTrue($entity->userHasControl($user2()), "Asserting that an user with control over the owner agent CAN CONTROL $plural of this controlled agent"); $this->assertTrue($entity->canUser('modify'), "Asserting that an user with control over the owner agent CAN modify $plural of this controlled agent"); $this->assertTrue($entity->canUser('createAgentRelation'), "Asserting that an user with control over the owner agent CAN create agent relations to $plural of this controlled agent"); - if($class != 'Event') + if ($class != 'Event') $this->assertTrue($childEntity->canUser('createChild'), "Asserting that an user with control over the owner agent CAN create children for $plural of this controlled agent"); // somente quem controla o owner pode remover. quem controla o parent não. @@ -672,8 +675,9 @@ function testAgentRelationsPermissions(){ $this->app->enableWorkflow(); } - function testEventOccurrencePermissions(){ - $this->app->disableWorkflow(); + function testEventOccurrencePermissions() + { + // $this->app->disableWorkflow(); $this->resetTransactions(); $rule = array( @@ -698,7 +702,7 @@ function testEventOccurrencePermissions(){ $event->owner = $user0->profile; $event->save(); - $this->assertPermissionDenied(function() use($event, $space, $rule){ + $this->assertPermissionDenied(function () use ($event, $space, $rule) { $occ = new \MapasCulturais\Entities\EventOccurrence; $occ->event = $event; @@ -716,7 +720,7 @@ function testEventOccurrencePermissions(){ $this->user = $user0; - $this->assertPermissionGranted(function() use($event, $space, $rule){ + $this->assertPermissionGranted(function () use ($event, $space, $rule) { $occ = new \MapasCulturais\Entities\EventOccurrence; $occ->event = $event; @@ -740,7 +744,7 @@ function testEventOccurrencePermissions(){ $event->save(); - $this->assertPermissionGranted(function() use($event, $public_space, $rule){ + $this->assertPermissionGranted(function () use ($event, $public_space, $rule) { $occ = new \MapasCulturais\Entities\EventOccurrence; $occ->event = $event; @@ -753,8 +757,9 @@ function testEventOccurrencePermissions(){ $this->app->enableWorkflow(); } - function testProjectEventCreation(){ - $this->app->disableWorkflow(); + function testProjectEventCreation() + { + // $this->app->disableWorkflow(); $this->resetTransactions(); // assert that users WITHOUT control of a project CANNOT create events to this project $user1 = $this->getUser('normal', 0); @@ -764,7 +769,7 @@ function testProjectEventCreation(){ $this->user = $user1; - $this->assertPermissionDenied(function() use($project){ + $this->assertPermissionDenied(function () use ($project) { $event = $this->getNewEntity('Event'); $event->project = $project; $event->save(); @@ -778,43 +783,34 @@ function testProjectEventCreation(){ $this->user = $user1; - $this->assertPermissionGranted(function() use($project){ + $this->assertPermissionGranted(function () use ($project) { $event = $this->getNewEntity('Event'); $event->project = $project; $event->save(); }, 'Asserting that users WITH control of a project CAN create events related to this project'); - + // assert that users with control of a project CAN view draft events related to this project $event_1 = $this->getNewEntity('Event'); $event_1->project = $project; $event_1->status = \MapasCulturais\Entities\Event::STATUS_DRAFT; $event_1->save(); - + $event_2 = $this->getNewEntity('Event'); $event_2->status = \MapasCulturais\Entities\Event::STATUS_DRAFT; $event_2->save(); - + $this->user = $user2; - + $this->assertTrue($event_1->canUser('view'), 'assert that users with control of a project CAN view draft events related to this project'); $this->assertFalse($event_2->canUser('view'), 'assert that users with control of a project CANNOT view draft events not related to this project'); - + $this->app->enableWorkflow(); } - // function testFilesPermissions(){ - // $this->app->disableWorkflow(); - // $this->app->enableWorkflow(); - // } - - // function testMetalistPermissions(){ - // $this->app->disableWorkflow(); - // $this->app->enableWorkflow(); - // } - - function testCanUserAddRemoveRole(){ - $this->app->disableWorkflow(); + function testCanUserAddRemoveRole() + { + // $this->app->disableWorkflow(); $this->resetTransactions(); $roles = ['admin', 'superAdmin']; @@ -823,15 +819,15 @@ function testCanUserAddRemoveRole(){ */ $this->user = null; - foreach($roles as $role){ - $this->assertPermissionDenied(function() use($role){ + foreach ($roles as $role) { + $this->assertPermissionDenied(function () use ($role) { $user = $this->getUser('normal', 1); $user->addRole($role); }, "Asserting that guest user CANNOT add the role $role to a user"); } - foreach($roles as $role){ - $this->assertPermissionDenied(function() use($role){ + foreach ($roles as $role) { + $this->assertPermissionDenied(function () use ($role) { $user = $this->getUser($role, 1); $user->removeRole($role); }, "Asserting that guest user CANNOT remove the role $role of a user"); @@ -843,15 +839,15 @@ function testCanUserAddRemoveRole(){ */ $this->user = 'normal'; - foreach($roles as $role){ - $this->assertPermissionDenied(function() use($role){ + foreach ($roles as $role) { + $this->assertPermissionDenied(function () use ($role) { $user = $this->getUser('normal', 1); $user->addRole($role); }, "Asserting that normal user CANNOT add the role $role to a user"); } - foreach($roles as $role){ - $this->assertPermissionDenied(function() use($role){ + foreach ($roles as $role) { + $this->assertPermissionDenied(function () use ($role) { $user = $this->getUser($role, 1); $user->removeRole($role); }, "Asserting that normal user CANNOT remove the role $role of a user"); @@ -862,17 +858,17 @@ function testCanUserAddRemoveRole(){ */ $this->user = 'superAdmin'; - foreach($roles as $role){ - $this->assertPermissionGranted(function() use($role){ + foreach ($roles as $role) { + $this->assertPermissionGranted(function () use ($role) { $user = $this->getUser('normal', 1); $user->addRole($role); }, "Asserting that super admin user CAN add the role $role to a user"); } - foreach($roles as $role){ + foreach ($roles as $role) { $this->resetTransactions(); - $this->assertPermissionGranted(function() use($role){ + $this->assertPermissionGranted(function () use ($role) { $user = $this->getUser($role, 1); $user->removeRole($role); }, "Asserting that super admin user CAN remove the role $role of a user"); @@ -880,9 +876,10 @@ function testCanUserAddRemoveRole(){ $this->app->enableWorkflow(); } - function testSoftDeleteDestroy(){ - foreach(['normal', 'admin'] as $role){ - foreach ($this->entities as $class => $plural){ + function testSoftDeleteDestroy() + { + foreach (['normal', 'admin'] as $role) { + foreach ($this->entities as $class => $plural) { $this->resetTransactions(); $user = $this->getUser($role, 1); $this->user = $user; @@ -890,14 +887,14 @@ function testSoftDeleteDestroy(){ $entity = $this->getNewEntity($class); $entity->owner = $profile; $entity->save(true); - $this->assertPermissionDenied(function() use($entity){ + $this->assertPermissionDenied(function () use ($entity) { $entity->destroy(true); }, "Asserting that a $role user CANNOT destroy his own $plural"); } } - foreach ($this->entities as $class => $plural){ + foreach ($this->entities as $class => $plural) { $this->resetTransactions(); $user = $this->getUser('superAdmin', 1); $this->user = $user; @@ -905,14 +902,14 @@ function testSoftDeleteDestroy(){ $entity = $this->getNewEntity($class); $entity->owner = $profile; $entity->save(true); - $this->assertPermissionGranted(function() use($entity){ + $this->assertPermissionGranted(function () use ($entity) { $entity->destroy(true); }, "Asserting that a Super Admin user CAN destroy his own $plural"); } - foreach(['normal', 'admin'] as $role){ - foreach ($this->entities as $class => $plural){ + foreach (['normal', 'admin'] as $role) { + foreach ($this->entities as $class => $plural) { $this->resetTransactions(); $user = $this->getUser('normal', 0); @@ -924,14 +921,14 @@ function testSoftDeleteDestroy(){ $this->user = $this->getUser($role, 1); - $this->assertPermissionDenied(function() use($entity){ + $this->assertPermissionDenied(function () use ($entity) { $entity->destroy(true); }, "Asserting that a $role user CANNOT destroy other user $plural"); } } - foreach ($this->entities as $class => $plural){ + foreach ($this->entities as $class => $plural) { $this->resetTransactions(); $user = $this->getUser('normal', 0); @@ -943,7 +940,7 @@ function testSoftDeleteDestroy(){ $this->user = $this->getUser('superAdmin', 1); - $this->assertPermissionGranted(function() use($entity){ + $this->assertPermissionGranted(function () use ($entity) { $entity->destroy(true); }, "Asserting that a Super Admin user CAN destroy other user $plural"); diff --git a/tests/src/ProjectTest.php b/tests/unit/ProjectTests.php similarity index 91% rename from tests/src/ProjectTest.php rename to tests/unit/ProjectTests.php index 48cab9efd2..58d73952d7 100644 --- a/tests/src/ProjectTest.php +++ b/tests/unit/ProjectTests.php @@ -1,34 +1,37 @@ startsOn = date('Y-m-d', time() + 3600 * 24); $project->endsOn = date('Y-m-d H:i', time() + 3600 * 48); $this->assertFalse($project->isRegistrationOpen(), 'isRegistrationOpen() de um projeto no com datas no futuro deve ser false'); - + $project->startsOn = date('Y-m-d', time() - 3600 * 48); $project->endsOn = date('Y-m-d H:i', time() - 3600 * 24); $this->assertFalse($project->isRegistrationOpen(), 'isRegistrationOpen() de um projeto no com datas no passado deve ser false'); - + $project->startsOn = date('Y-m-d', time() - 3600 * 48); $project->endsOn = date('Y-m-d H:i', time() - 3600); $this->assertFalse($project->isRegistrationOpen(), 'isRegistrationOpen() de um projeto no com datas no passado deve ser false'); - + $project->startsOn = date('Y-m-d', time() - 3600 * 48); $project->endsOn = date('Y-m-d H:i', time() + 3600 * 48); $this->assertTrue($project->isRegistrationOpen(), 'isRegistrationOpen() de um projeto com data inicial no passado e data final no futuro deve ser true'); - + $project->startsOn = date('Y-m-d', time() - 3600 * 48); $project->endsOn = date('Y-m-d H:i', time() + 3600); $this->assertTrue($project->isRegistrationOpen(), 'isRegistrationOpen() de um projeto com data inicial no passado e data final no futuro deve ser true'); } - function testDatesValidations(){ + function testDatesValidations() + { $project = new Project; $project->name = "Test1"; $project->shortDescription = "A short description"; diff --git a/tests/unit/RoutesTest.php b/tests/unit/RoutesTest.php new file mode 100644 index 0000000000..58a21aca4c --- /dev/null +++ b/tests/unit/RoutesTest.php @@ -0,0 +1,67 @@ +user = null; + + $this->assertGet200('/', 'assert that home status code is 200'); + } + + function testPages() + { + $this->user = null; + + $this->assertGet200('/sobre/', 'assert that about page status code is 200'); + $this->assertGet200('/como-usar/', 'assert that about page status code is 200'); + } + + function testSearch() + { + $this->user = null; + + $this->assertGet404('/busca/', 'assert that about page status code is 404'); + } + + function test404() + { + $this->user = null; + $this->assertGet404('/' . uniqid('404-'), 'assert that code is 404'); + } + + function testEntitiesRoutesWithGuest() + { + $this->user = null; + + foreach ($this->entities as $class => $name) { + $entities = $this->app->repo($class)->findAll(); + + $e = $entities[0]; + + $this->assertGet200($e->singleUrl, "assert that the status code of single of {$class} with id {$e->id} is 200 for guest users"); + $this->assertGet403($e->deleteUrl, "assert that the status code of delete url of {$class} with id {$e->id} is 401 for guest users"); + $this->assertGet401($e->editUrl, "assert that the status code of edit url of {$class} with id {$e->id} is 401 for guest users"); + } + } + + function testEntitiesRoutesWithNormalUser() + { + $user = $this->getUser('normal'); + $this->user = $user; + + foreach ($this->entities as $class => $name) { + $entities = $user->$name; + + $e = $entities[0]; + // foreach($entities as $e){ + $this->assertGet200($e->singleUrl, "assert that the status code of single of my {$class} with id {$e->id} is 200"); + $this->assertGet200($e->editUrl, "assert that the status code of edit url of my {$class} with id {$e->id} is 200"); + // } + } + } + +} diff --git a/tests/src/SealTest.php b/tests/unit/SealTest.php similarity index 81% rename from tests/src/SealTest.php rename to tests/unit/SealTest.php index 621decac6b..26b94ddcfc 100644 --- a/tests/src/SealTest.php +++ b/tests/unit/SealTest.php @@ -1,48 +1,50 @@ resetTransactions(); $app = $this->app; $this->user = 'admin'; $exception = null; - - try{ - // pega um agente sem selo + + try { + // pega um agente sem selo $agent = $app->repo('Agent')->find(2); - + $seal = $app->repo('Seal')->find(1); // e tenta atribuir um selo - + $agent->createSealRelation($seal); - + } catch (Exception $ex) { $exception = $ex; } - + $this->assertNull($exception); } - - function testSealRelationPermissions(){ + + function testSealRelationPermissions() + { $this->resetTransactions(); $app = $this->app; - + // verifica que o guest user não pode atribuir selos $this->user = null; - $this->assertPermissionDenied(function() use($app){ + $this->assertPermissionDenied(function () use ($app) { // pega um agente sem selo $agent = $app->repo('Agent')->find(2); $seal = $app->repo('Seal')->find(1); // e tenta atribuir um selo $agent->createSealRelation($seal); - }); - + }); + // verifica que o admin user pode atribuir selos $this->user = 'admin'; - $this->assertPermissionGranted(function() use($app){ + $this->assertPermissionGranted(function () use ($app) { // pega um agente sem selo $agent = $app->repo('Agent')->find(2); $seal = $app->repo('Seal')->find(1); @@ -50,17 +52,17 @@ function testSealRelationPermissions(){ // e tenta atribuir um selo $agent->createSealRelation($seal); }); - + // testa se um usuário com controle de um selo pode atribuir selos $this->resetTransactions(); $this->user = 'admin'; - + $normal_user = $this->getUser('normal'); $seal = $app->repo('Seal')->find(1); $seal->createAgentRelation($normal_user->profile, 'admin', true); $this->user = $normal_user; - $this->assertAuthorizationRequestCreated(function() use($app){ + $this->assertAuthorizationRequestCreated(function () use ($app) { // pega um espaço sem selo $space = $app->repo('Space')->find(2); $seal = $app->repo('Seal')->find(1); @@ -75,7 +77,8 @@ function testSealRelationPermissions(){ * * @return void */ - function testSealRelationExpirationDate(){ + function testSealRelationExpirationDate() + { $this->resetTransactions(); //admin cria o seal relation espaço/selo diff --git a/tests/src/TaxonomiesTest.php b/tests/unit/TaxonomiesTests.php similarity index 79% rename from tests/src/TaxonomiesTest.php rename to tests/unit/TaxonomiesTests.php index 2cd48fdaec..9df52b6d10 100644 --- a/tests/src/TaxonomiesTest.php +++ b/tests/unit/TaxonomiesTests.php @@ -1,11 +1,13 @@ 'Test Taxonomy 1', @@ -14,106 +16,109 @@ protected function _registerTaxonomy(){ $id = 10; - foreach ($taxonomies as $slug => $description){ + foreach ($taxonomies as $slug => $description) { $id++; $def = new \MapasCulturais\Definitions\Taxonomy($id, $slug, $description); $app->registerTaxonomy('MapasCulturais\Entities\Agent', $def); } } - - function _getAgentById($id){ + + function _getAgentById($id) + { $app = App::i(); $app->em->clear(); return $app->repo('Agent')->find($id); } - - function testPersistence(){ + + function testPersistence() + { $this->_registerTaxonomy(); $this->user = 'normal'; - + $terms_1 = [ 'test_1' => ['test 1', 'test 2', 'test 3'], 'tag' => ['tag 1', 'tag 2'], - 'not_registered' => ['not 1', 'not 2'] + 'not_registered' => ['not 1', 'not 2'] ]; - + $terms_2 = [ 'test_1' => ['test 2', 'test 3', 'test 4'], 'test_2' => ['test 21', 'test 22', 'test 23'], 'tag' => ['tag 2', 'tag 3'], - 'not_registered' => ['not 1', 'not 2'] + 'not_registered' => ['not 1', 'not 2'] ]; - + $terms_3 = [ 'test_1' => ['test 2', 'test 3', 'test 4'] ]; - + $agent = $this->getNewEntity('Agent'); - + $agent->terms = $terms_1; $agent->save(true); - + $agent = $this->_getAgentById($agent->id); - + $this->assertEquals($terms_1['test_1'], $agent->terms['test_1'], 'Asserting that registered taxonomy terms was saved'); $this->assertEquals($terms_1['tag'], $agent->terms['tag'], 'Asserting that registered taxonomy terms was saved'); - + $agent->terms = $terms_2; $agent->save(true); - + $agent = $this->_getAgentById($agent->id); - + $this->assertEquals($terms_2['test_1'], $agent->terms['test_1'], 'Asserting that registered taxonomy terms was saved'); $this->assertEquals($terms_2['tag'], $agent->terms['tag'], 'Asserting that registered taxonomy terms was saved'); - + } - - function testNotRegisteredTaxonomies(){ + + function testNotRegisteredTaxonomies() + { $this->_registerTaxonomy(); $this->user = 'normal'; - + $app = App::i(); $conn = $app->em->getConnection(); - + $terms_1 = [ 'test_1' => ['test 1', 'test 2', 'test 3'], 'tag' => ['tag 1', 'tag 2'], - 'not_registered' => ['not 1', 'not 2'] + 'not_registered' => ['not 1', 'not 2'] ]; - + $terms_2 = [ 'test_1' => ['test 2', 'test 3', 'test 4'], 'test_2' => ['test 21', 'test 22', 'test 23'], 'tag' => ['tag 2', 'tag 3'], - 'not_registered' => ['not 1', 'not 2'] + 'not_registered' => ['not 1', 'not 2'] ]; - - + + $agent = $this->getNewEntity('Agent'); - + $agent->terms = $terms_1; - + $agent->save(true); - + $agent = $this->_getAgentById($agent->id); - + $this->assertArrayNotHasKey('not_registered', $agent->terms, 'Asserting that not registered taxonomy terms was not saved'); - - + + $conn->executeQuery("INSERT INTO term(id,taxonomy,term) VALUES (10000,'not_registered','not registered 1')"); $conn->executeQuery("INSERT INTO term(id,taxonomy,term) VALUES (10001,'not_registered','not registered 2')"); - + $conn->executeQuery("INSERT INTO term_relation(term_id,object_type,object_id) VALUES (10000,'MapasCulturais\Entities\Agent',{$agent->id})"); $conn->executeQuery("INSERT INTO term_relation(term_id,object_type,object_id) VALUES (10001,'MapasCulturais\Entities\Agent',{$agent->id})"); - + $agent = $this->_getAgentById($agent->id); $agent->terms = $terms_2; $agent->save(true); - + $agent = $this->_getAgentById($agent->id); $trs = $conn->fetchAll('SELECT * FROM term_relation WHERE term_id IN (10000,10001)'); - - $this->assertEquals(2,count($trs), 'Asserting that not registered taxonomy terms was not deleted after save terms'); - + + $this->assertEquals(2, count($trs), 'Asserting that not registered taxonomy terms was not deleted after save terms'); + } } \ No newline at end of file diff --git a/tests/src/WorkflowTest.php b/tests/unit/WorkflowTest.php similarity index 76% rename from tests/src/WorkflowTest.php rename to tests/unit/WorkflowTest.php index 7022a3f4ac..c0e4ac4774 100644 --- a/tests/src/WorkflowTest.php +++ b/tests/unit/WorkflowTest.php @@ -1,9 +1,11 @@ assertTrue($this->app->isWorkflowEnabled(), 'Asserting that workflow is enabled by default.'); $this->app->disableWorkflow(); @@ -11,23 +13,23 @@ function testEnableAndDisableWorkflow(){ $this->app->enableWorkflow(); $this->assertTrue($this->app->isWorkflowEnabled(), 'Asserting that App::enableWorkflow() works.'); - } - function testAuthorityRequestCreation(){ + function testAuthorityRequestCreation() + { $this->app->enableWorkflow(); // asserting that the request authority is created when user tries to TAKE ownership of an entity - foreach($this->entities as $class => $e){ + foreach ($this->entities as $class => $e) { $this->resetTransactions(); - $user1 = $this->getUser('normal',0); - $user2 = $this->getUser('normal',1); + $user1 = $this->getUser('normal', 0); + $user2 = $this->getUser('normal', 1); $entities = $user1->$e; $entity = $entities[0]; - $this->assertAuthorizationRequestCreated(function() use($user2, $entity){ + $this->assertAuthorizationRequestCreated(function () use ($user2, $entity) { $this->user = $user2; $entity->owner = $user2->profile; $entity->save(); @@ -35,48 +37,48 @@ function testAuthorityRequestCreation(){ } // asserting that the request authority is created when user tries to TAKE ownership of an entity to another user agent that he has control - foreach($this->entities as $class => $e){ + foreach ($this->entities as $class => $e) { $this->resetTransactions(); - - + + $admin = $this->getUser('admin'); $this->user = $admin; - + $newAgent = $this->getNewEntity('Agent', $admin); $newAgent->owner = $admin->profile; $newAgent->save(true); - - $user1 = $this->getUser('normal',0); - $user2 = $this->getUser('normal',1); - + + $user1 = $this->getUser('normal', 0); + $user2 = $this->getUser('normal', 1); + $newAgent->createAgentRelation($user2->profile, 'CONTROL', true, true, true); - + $this->user = $user2; - + $this->app->em->refresh($newAgent); - + $entities = $user1->$e; $entity = $entities[0]; - - - $this->assertAuthorizationRequestCreated(function() use($newAgent, $entity){ + + + $this->assertAuthorizationRequestCreated(function () use ($newAgent, $entity) { $entity->owner = $newAgent; $entity->save(); }, "Asserting that AuthorityRequest is created when an user tries to take ownership of a {$class}. to another user agent that he has control"); - + } // asserting that the request authority is created when user tries to GIVE ownership of an entity - foreach($this->entities as $class => $e){ + foreach ($this->entities as $class => $e) { $this->resetTransactions(); - $user1 = $this->getUser('normal',0); - $user2 = $this->getUser('normal',1); + $user1 = $this->getUser('normal', 0); + $user2 = $this->getUser('normal', 1); $entities = $user1->$e; $entity = $entities[0]; - $this->assertAuthorizationRequestCreated(function() use($user1, $user2, $entity){ + $this->assertAuthorizationRequestCreated(function () use ($user1, $user2, $entity) { $this->user = $user1; $entity->owner = $user2->profile; $entity->save(); @@ -84,17 +86,17 @@ function testAuthorityRequestCreation(){ } // asserting that a user CANNOT create authority requests to another user - foreach($this->entities as $class => $e){ + foreach ($this->entities as $class => $e) { $this->resetTransactions(); - $user1 = $this->getUser('admin',0); - $user2 = $this->getUser('normal',1); - $user3 = $this->getUser('normal',0); + $user1 = $this->getUser('admin', 0); + $user2 = $this->getUser('normal', 1); + $user3 = $this->getUser('normal', 0); $entities = $user1->$e; $entity = $entities[0]; - $this->assertPermissionDenied(function() use($user2, $user3, $entity){ + $this->assertPermissionDenied(function () use ($user2, $user3, $entity) { $this->user = $user3; $entity->owner = $user2->profile; @@ -104,15 +106,16 @@ function testAuthorityRequestCreation(){ } } - function testAuthorityRequestAprove(){ + function testAuthorityRequestAprove() + { $this->app->enableWorkflow(); // asserting that authority workflow works - foreach($this->entities as $class => $e){ + foreach ($this->entities as $class => $e) { $this->resetTransactions(); - $user1 = $this->getUser('normal',0); - $user2 = $this->getUser('normal',1); + $user1 = $this->getUser('normal', 0); + $user2 = $this->getUser('normal', 1); $this->user = $user1; @@ -124,7 +127,7 @@ function testAuthorityRequestAprove(){ $request = null; // create the request - try{ + try { $entity->owner = $user2->profile; $entity->save(); @@ -136,14 +139,14 @@ function testAuthorityRequestAprove(){ $this->assertInstanceOf('MapasCulturais\Entities\RequestChangeOwnership', $request, "asserting that the request was created"); - $this->assertEquals ($user1->id, $entity->ownerUser->id, "Asserting that BEFORE the request is approved, de owner was NOT changed"); + $this->assertEquals($user1->id, $entity->ownerUser->id, "Asserting that BEFORE the request is approved, de owner was NOT changed"); $this->user = $user2; $this->assertFalse($entity->canUser('remove'), "Asserting that the user that will receive the $class CANNOT remove it BEFORE the request is approved"); $this->assertFalse($entity->canUser('modify'), "Asserting that the user that will receive the $class CANNOT modify it BEFORE the request is approved"); - $this->assertPermissionGranted(function() use($request){ + $this->assertPermissionGranted(function () use ($request) { $request->approve(); }, 'Asserting that the user that was requested CAN approve the request'); @@ -171,7 +174,7 @@ function testAuthorityRequestAprove(){ // Who can Approve: users that control the ORIGIN entity owner agent // Who can Reject: users that can create or approve the request -// function testRequestChangeOwnershipRequest(){ + // function testRequestChangeOwnershipRequest(){ // $this->app->enableWorkflow(); // } @@ -211,9 +214,9 @@ function testAuthorityRequestAprove(){ // $this->app->enableWorkflow(); // } - -// RequestEventOccurrence, -// RequestEventProject + // RequestEventOccurrence, + + // RequestEventProject } diff --git a/tests/src/classes/TestCase.php b/tests/unit/classes/TestCase.php similarity index 70% rename from tests/src/classes/TestCase.php rename to tests/unit/classes/TestCase.php index e8d77a01aa..63a7f01320 100644 --- a/tests/src/classes/TestCase.php +++ b/tests/unit/classes/TestCase.php @@ -1,10 +1,16 @@ init($config); -abstract class MapasCulturais_TestCase extends \PHPUnit\Framework\TestCase +abstract class TestCase extends \PHPUnit\Framework\TestCase { /** * @@ -22,13 +28,14 @@ abstract class MapasCulturais_TestCase extends \PHPUnit\Framework\TestCase /** * Test Factory * - * @var MapasCulturais_TestFactory + * @var TestFactory */ protected $factory; - public function __construct($name = NULL, array $data = array(), $dataName = '') { + public function __construct($name = NULL, array $data = array(), $dataName = '') + { $this->app = App::i(); - $this->factory = new MapasCulturais_TestFactory($this->app); + $this->factory = new TestFactory($this->app); $this->backupGlobals = false; $this->backupStaticAttributes = false; @@ -36,12 +43,13 @@ public function __construct($name = NULL, array $data = array(), $dataName = '') parent::__construct($name, $data, $dataName); } - public function __set($name, $value) { - if($name === 'user'){ - if(is_object($value) && $value instanceof Entities\User) + public function __set($name, $value) + { + if ($name === 'user') { + if (is_object($value) && $value instanceof Entities\User) $this->app->auth->authenticatedUser = $value; else - $this->setUserId ($value); + $this->setUserId($value); } } @@ -51,10 +59,11 @@ public function __set($name, $value) { * @param mixed $user * @return \MapasCulturais\Entity */ - function getNewEntity($class, $user = null, $owner = null){ + function getNewEntity($class, $user = null, $owner = null) + { $app = $this->app; - if(!is_null($user)){ + if (!is_null($user)) { $_user = $app->user->is('guest') ? null : $app->user; $this->user = $user; } @@ -65,52 +74,59 @@ function getNewEntity($class, $user = null, $owner = null){ $type = array_shift($_types); $entity = new $classname; - $entity->name = "Test $class " . uniqid(); + $entity->name = "Test $class " . uniqid(); $entity->type = $type; $entity->shortDescription = 'A litle short description'; - if($owner){ + if ($owner) { $entity->owner = $owner; - } else if($app->user->is('guest') && $user && $classname::usesOwnerAgent()){ + } else if ($app->user->is('guest') && $user && $classname::usesOwnerAgent()) { $entity->owner = $user->profile; } - if(!is_null($user)){ + if (!is_null($user)) { $this->user = $_user; } return $entity; } - - function assertStatus($method, $status, $url, $message){ + + function assertStatus($method, $status, $url, $message) + { $c = $this->$method($url); - $this->assertEquals($status, $c->http_status_code, $message); + $this->assertEquals($status, $c->httpStatusCode, $message); return $c; } - function assertGet200($url, $message){ + function assertGet200($url, $message) + { return $this->assertStatus('get', 200, $url, $message); } - function assertGet401($url, $message){ + function assertGet401($url, $message) + { return $this->assertStatus('get', 401, $url, $message); } - function assertGet403($url, $message){ + function assertGet403($url, $message) + { return $this->assertStatus('get', 403, $url, $message); } - function assertGet404($url, $message){ + function assertGet404($url, $message) + { return $this->assertStatus('get', 404, $url, $message); } - function assertGet503($url, $message){ + function assertGet503($url, $message) + { return $this->assertStatus('get', 503, $url, $message); } - - function assertPermissionDenied($callable, $msg = ''){ + + function assertPermissionDenied($callable, $msg = '') + { $exception = null; - try{ + try { $callable = \Closure::bind($callable, $this); $callable(); } catch (\Exception $ex) { @@ -121,9 +137,10 @@ function assertPermissionDenied($callable, $msg = ''){ } - function assertPermissionGranted($callable, $msg = ''){ + function assertPermissionGranted($callable, $msg = '') + { $exception = null; - try{ + try { $callable = \Closure::bind($callable, $this); $callable(); } catch (\Exception $ex) { @@ -134,26 +151,28 @@ function assertPermissionGranted($callable, $msg = ''){ $this->assertEmpty($exception, $msg); } - function assertAuthorizationRequestCreated($callable, $msg = ''){ + function assertAuthorizationRequestCreated($callable, $msg = '') + { $exception = null; - try{ + try { $callable = \Closure::bind($callable, $this); $callable(); - }catch (\MapasCulturais\Exceptions\WorkflowRequest $ex) { + } catch (\MapasCulturais\Exceptions\WorkflowRequest $ex) { $exception = $ex; - }catch(\Exception $ex){ + } catch (\Exception $ex) { $exception = $ex; } - if(is_object($exception) && substr(get_class($exception),0,9) === 'Doctrine\\'){ + if (is_object($exception) && substr(get_class($exception), 0, 9) === 'Doctrine\\') { throw $exception; } $this->assertInstanceOf('MapasCulturais\Exceptions\WorkflowRequest', $exception, $msg); } - public function setUserId($user_id = null){ - if(!is_null($user_id)) + public function setUserId($user_id = null) + { + if (!is_null($user_id)) $this->app->auth->authenticatedUser = $this->getUser($user_id); else $this->app->auth->logout(); @@ -165,12 +184,13 @@ public function setUserId($user_id = null){ * @param type $index * @return MapasCulturais\Entities\User */ - public function getUser($user_id = null, $index = 0){ - if($user_id instanceof Entities\User){ + public function getUser($user_id = null, $index = 0) + { + if ($user_id instanceof Entities\User) { return $user_id; - }else if(key_exists($user_id, $this->app->config['userIds'])){ + } else if (key_exists($user_id, $this->app->config['userIds'])) { return $this->app->repo('User')->find($this->app->config['userIds'][$user_id][$index]); - }else{ + } else { return $this->app->repo('User')->find($user_id); } } @@ -191,7 +211,8 @@ protected function tearDown(): void parent::tearDown(); } - function resetTransactions(){ + function resetTransactions() + { $this->app->em->rollback(); $this->app->em->clear(); $this->app->em->beginTransaction(); @@ -199,11 +220,12 @@ function resetTransactions(){ // Abstract way to make a request to SlimPHP, this allows us to mock the // slim environment - public function request($method, $path, $options = array()) { - $baseUrl = 'http://localhost:8888'; - if(strpos($path, $baseUrl) !== 0){ + public function request($method, $path, $options = array()) + { + $baseUrl = 'http://localhost'; + if (strpos($path, $baseUrl) !== 0) { $url = $baseUrl . $path; - }else{ + } else { $url = $path; } @@ -246,4 +268,4 @@ public function head($path, $options = array()) return $this->request('HEAD', $path, $options); } -} \ No newline at end of file +} diff --git a/tests/src/Entity.inc.TestEntities.php b/tests/unit/classes/TestEntity.php similarity index 86% rename from tests/src/Entity.inc.TestEntities.php rename to tests/unit/classes/TestEntity.php index 98b0759bf0..cc32f5f414 100644 --- a/tests/src/Entity.inc.TestEntities.php +++ b/tests/unit/classes/TestEntity.php @@ -1,4 +1,5 @@ [ 'v::brPhone()' => "Não é um telefone válido" diff --git a/tests/src/classes/TestFactory.php b/tests/unit/classes/TestFactory.php similarity index 76% rename from tests/src/classes/TestFactory.php rename to tests/unit/classes/TestFactory.php index 92acfa548e..b9c7cc2490 100644 --- a/tests/src/classes/TestFactory.php +++ b/tests/unit/classes/TestFactory.php @@ -1,8 +1,10 @@ 0, 'Space' => 0, @@ -21,19 +23,21 @@ class MapasCulturais_TestFactory{ public $autoPersist = false; - function __construct(MapasCulturais\App $app) { + function __construct(\MapasCulturais\App $app) + { $this->app = $app; } - - function getEntityProperties($entity, $props = []){ + + function getEntityProperties($entity, $props = []) + { $result = []; $entity_num = $this->entitiesCount[$entity]; - foreach($props as $prop){ - if($prop == 'owner') { - if($this->app->auth->isUserAuthenticated()){ + foreach ($props as $prop) { + if ($prop == 'owner') { + if ($this->app->auth->isUserAuthenticated()) { $result[$prop] = $this->app->user->profile; } - } elseif($prop == 'type') { + } elseif ($prop == 'type') { $_types = $this->app->getRegisteredEntityTypes("MapasCulturais\\Entities\\{$entity}"); $result[$prop] = array_shift($_types); } else { @@ -44,31 +48,34 @@ function getEntityProperties($entity, $props = []){ return $result; } - function createEntity($class, $properties = []){ - if(!class_exists($class) && class_exists('MapasCulturais\\Entities\\' . $class)){ + function createEntity($class, $properties = []) + { + if (!class_exists($class) && class_exists('MapasCulturais\\Entities\\' . $class)) { $class = 'MapasCulturais\\Entities\\' . $class; } $entity = new $class; - foreach($properties as $prop => $val){ + foreach ($properties as $prop => $val) { $entity->$prop = $val; } $count_key = str_replace('MapasCulturais\\Entities\\', '', $class); - if(!isset($this->entitiesCount[$count_key])) $this->entitiesCount[$count_key] = 0; - + if (!isset($this->entitiesCount[$count_key])) + $this->entitiesCount[$count_key] = 0; + $this->entitiesCount[$count_key]++; - if($this->autoPersist){ + if ($this->autoPersist) { $entity->save(true); } return $entity; } - function createAgent($properties = []){ + function createAgent($properties = []) + { $class = 'Agent'; $properties = $properties + $this->getEntityProperties($class, ['name', 'type', 'shortDescription']); @@ -77,7 +84,8 @@ function createAgent($properties = []){ return $entity; } - function createSpace($properties = []){ + function createSpace($properties = []) + { $class = 'Space'; $properties = $properties + $this->getEntityProperties($class, ['name', 'type', 'shortDescription', 'owner']); @@ -86,7 +94,8 @@ function createSpace($properties = []){ return $entity; } - function createProject($properties = []){ + function createProject($properties = []) + { $class = 'Project'; $properties = $properties + $this->getEntityProperties($class, ['name', 'type', 'shortDescription', 'owner']); @@ -95,7 +104,8 @@ function createProject($properties = []){ return $entity; } - function createEvent($properties = []){ + function createEvent($properties = []) + { $class = 'Event'; $properties = $properties + $this->getEntityProperties($class, ['name', 'type', 'shortDescription', 'owner']); @@ -104,21 +114,23 @@ function createEvent($properties = []){ return $entity; } - function parseEvent($event = null){ - if( is_null($event) ){ + function parseEvent($event = null) + { + if (is_null($event)) { $event = $this->createEvent(); - } else if( is_array($event) ){ + } else if (is_array($event)) { $event = $this->createEvent($event); - } else if(!$event instanceof Entities\Event ){ + } else if (!$event instanceof Entities\Event) { throw new \Exception('Invalid argument event'); } return $event; } - function parseDate($date, $format = 'Y-m-d') { + function parseDate($date, $format = 'Y-m-d') + { $d = DateTime::createFromFormat($format, $date); - if($d && $d->format($format) === $date){ + if ($d && $d->format($format) === $date) { return $d; } else { return null; @@ -135,43 +147,44 @@ function parseDate($date, $format = 'Y-m-d') { * @param string $frequency * @return void */ - function createEventOccurrence($event, Entities\Space $space, string $starts, int $duration, string $frequency, $until = null, $weekdays = null){ + function createEventOccurrence($event, Entities\Space $space, string $starts, int $duration, string $frequency, $until = null, $weekdays = null) + { $starts = $this->parseDate($starts, 'Y-m-d H:i'); - if(!$starts){ + if (!$starts) { throw new \Exception('Invalid date format for argument $starts'); } - - if($duration < 0){ + + if ($duration < 0) { throw new \Exception('Duration must be a positive integer'); } - + $endsAt = clone $starts; - if($duration){ + if ($duration) { $endsAt->add(new \DateInterval("PT{$duration}M")); } $rule = [ - "spaceId" => $space->id, - "startsOn" => $starts->format('Y-m-d'), - "startsAt" => $starts->format('H:i'), - "duration" => $duration, + "spaceId" => $space->id, + "startsOn" => $starts->format('Y-m-d'), + "startsAt" => $starts->format('H:i'), + "duration" => $duration, "frequency" => $frequency, "description" => "description of event occurrence" ]; - if($until) { + if ($until) { $rule['until'] = $until; } - if($frequency == 'weekly'){ - if($weekdays){ + if ($frequency == 'weekly') { + if ($weekdays) { $object = []; - foreach($weekdays as $day){ + foreach ($weekdays as $day) { $object["$day"] = 'on'; } - $rule["day"] = (object) $object; + $rule["day"] = (object) $object; } } @@ -184,7 +197,7 @@ function createEventOccurrence($event, Entities\Space $space, string $starts, in return $event_occurrence; } - /** + /** * Cria um evento ou occorrência única para o evento informado. * * @param string $starts ex: 2019-04-23 22:00 @@ -193,7 +206,8 @@ function createEventOccurrence($event, Entities\Space $space, string $starts, in * @param array|Entities\Event $event * @return MapasCulturais\Entities\Event */ - function createSingleEventOccurrence(string $starts, int $duration, Entities\Space $space, $event = null){ + function createSingleEventOccurrence(string $starts, int $duration, Entities\Space $space, $event = null) + { $event_occurrence = $this->createEventOccurrence($event, $space, $starts, $duration, 'once'); return $event_occurrence; @@ -209,14 +223,15 @@ function createSingleEventOccurrence(string $starts, int $duration, Entities\Spa * @param array|Entities\Event $event * @return MapasCulturais\Entities\Event */ - function createDailyEventOccurrence(string $starts, int $duration, string $until, Entities\Space $space, $event = null){ - + function createDailyEventOccurrence(string $starts, int $duration, string $until, Entities\Space $space, $event = null) + { + $until = $this->parseDate($until, 'Y-m-d'); - - if(!$until){ + + if (!$until) { throw new \Exception('Invalid date format for argument $until'); } - + $event_occurrence = $this->createEventOccurrence($event, $space, $starts, $duration, 'daily', $until); $event_occurrence->setUntil($until); @@ -236,14 +251,15 @@ function createDailyEventOccurrence(string $starts, int $duration, string $until * @param array|Entities\Event $event * @return MapasCulturais\Entities\Event */ - function createWeeklyEventOccurrence(string $starts, int $duration, string $until, array $weekdays, Entities\Space $space, $event = null){ - + function createWeeklyEventOccurrence(string $starts, int $duration, string $until, array $weekdays, Entities\Space $space, $event = null) + { + $until = $this->parseDate($until, 'Y-m-d'); - - if(!$until){ + + if (!$until) { throw new \Exception('Invalid date format for argument $until'); } - + $event_occurrence = $this->createEventOccurrence($event, $space, $starts, $duration, 'weekly', $until, $weekdays); $event_occurrence->setUntil($until); diff --git a/tests/unit/files/.gitignore b/tests/unit/files/.gitignore new file mode 100644 index 0000000000..e69de29bb2