Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Authorization/Roles/IntegrationPlatformUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function apply(Builder $builder, Model $model)
$builder->where('iam_account_id', UserHelper::currentAccount()->id);
}

public function checkPrivileges(Users $users = null)
public function checkPrivileges(?Users $users = null)
{
//return UserHelper::hasRole(self::NAME, $users);
}
Expand Down
24 changes: 12 additions & 12 deletions src/Database/Filters/AccountProviderOverviewsQueryFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class AccountProviderOverviewsQueryFilter extends AbstractQueryFilter
* @var Builder
*/
protected $builder;

public function ipaasProviderName($value)
{
return $this->builder->where('ipaas_provider_name', 'ilike', '%' . $value . '%');
Expand All @@ -28,7 +28,7 @@ public function ipaas_provider_name($value)
{
return $this->ipaasProviderName($value);
}

public function providerType($value)
{
return $this->builder->where('provider_type', 'ilike', '%' . $value . '%');
Expand All @@ -39,7 +39,7 @@ public function provider_type($value)
{
return $this->providerType($value);
}

public function baseUrl($value)
{
return $this->builder->where('base_url', 'ilike', '%' . $value . '%');
Expand All @@ -50,7 +50,7 @@ public function base_url($value)
{
return $this->baseUrl($value);
}

public function totalWorkflows($value)
{
$operator = substr($value, 0, 1);
Expand All @@ -69,7 +69,7 @@ public function total_workflows($value)
{
return $this->totalWorkflows($value);
}

public function totalAutomationEngines($value)
{
$operator = substr($value, 0, 1);
Expand All @@ -88,7 +88,7 @@ public function total_automation_engines($value)
{
return $this->totalAutomationEngines($value);
}

public function executionsToday($value)
{
$operator = substr($value, 0, 1);
Expand All @@ -107,7 +107,7 @@ public function executions_today($value)
{
return $this->executionsToday($value);
}

public function successToday($value)
{
$operator = substr($value, 0, 1);
Expand All @@ -126,7 +126,7 @@ public function success_today($value)
{
return $this->successToday($value);
}

public function errorsToday($value)
{
$operator = substr($value, 0, 1);
Expand All @@ -145,7 +145,7 @@ public function errors_today($value)
{
return $this->errorsToday($value);
}

public function isDefaultWap($value)
{
return $this->builder->where('is_default_wap', $value);
Expand All @@ -156,7 +156,7 @@ public function is_default_wap($value)
{
return $this->isDefaultWap($value);
}

public function providerCreatedAtStart($date)
{
return $this->builder->where('provider_created_at', '>=', $date);
Expand Down Expand Up @@ -210,7 +210,7 @@ public function iamAccountId($value)
}
}


public function ipaasProviderId($value)
{
$ipaasProvider = \NextDeveloper\IPAAS\Database\Models\Providers::where('uuid', $value)->first();
Expand All @@ -225,7 +225,7 @@ public function ipaas_provider_id($value)
{
return $this->ipaasProvider($value);
}

// EDIT AFTER HERE - WARNING: ABOVE THIS LINE MAY BE REGENERATED AND YOU MAY LOSE CODE


Expand Down
12 changes: 6 additions & 6 deletions src/Database/Filters/AccountStatsQueryFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function total_providers($value)
{
return $this->totalProviders($value);
}

public function totalWorkflows($value)
{
$operator = substr($value, 0, 1);
Expand All @@ -55,7 +55,7 @@ public function total_workflows($value)
{
return $this->totalWorkflows($value);
}

public function executionsToday($value)
{
$operator = substr($value, 0, 1);
Expand All @@ -74,7 +74,7 @@ public function executions_today($value)
{
return $this->executionsToday($value);
}

public function successToday($value)
{
$operator = substr($value, 0, 1);
Expand All @@ -93,7 +93,7 @@ public function success_today($value)
{
return $this->successToday($value);
}

public function errorsToday($value)
{
$operator = substr($value, 0, 1);
Expand All @@ -112,7 +112,7 @@ public function errors_today($value)
{
return $this->errorsToday($value);
}

public function iamAccountId($value)
{
$iamAccount = \NextDeveloper\IAM\Database\Models\Accounts::where('uuid', $value)->first();
Expand All @@ -122,7 +122,7 @@ public function iamAccountId($value)
}
}


// EDIT AFTER HERE - WARNING: ABOVE THIS LINE MAY BE REGENERATED AND YOU MAY LOSE CODE


Expand Down
4 changes: 2 additions & 2 deletions src/Database/Filters/AccountsQueryFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function is_service_enabled($value)
{
return $this->isServiceEnabled($value);
}

public function createdAtStart($date)
{
return $this->builder->where('created_at', '>=', $date);
Expand Down Expand Up @@ -104,7 +104,7 @@ public function iamAccountId($value)
}
}


// EDIT AFTER HERE - WARNING: ABOVE THIS LINE MAY BE REGENERATED AND YOU MAY LOSE CODE


Expand Down
18 changes: 9 additions & 9 deletions src/Database/Filters/ExecutionDailyStatsQueryFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class ExecutionDailyStatsQueryFilter extends AbstractQueryFilter
* @var Builder
*/
protected $builder;

public function providerName($value)
{
return $this->builder->where('provider_name', 'ilike', '%' . $value . '%');
Expand All @@ -28,7 +28,7 @@ public function provider_name($value)
{
return $this->providerName($value);
}

public function providerType($value)
{
return $this->builder->where('provider_type', 'ilike', '%' . $value . '%');
Expand All @@ -39,7 +39,7 @@ public function provider_type($value)
{
return $this->providerType($value);
}

public function totalExecutions($value)
{
$operator = substr($value, 0, 1);
Expand All @@ -58,7 +58,7 @@ public function total_executions($value)
{
return $this->totalExecutions($value);
}

public function successCount($value)
{
$operator = substr($value, 0, 1);
Expand All @@ -77,7 +77,7 @@ public function success_count($value)
{
return $this->successCount($value);
}

public function errorCount($value)
{
$operator = substr($value, 0, 1);
Expand All @@ -96,7 +96,7 @@ public function error_count($value)
{
return $this->errorCount($value);
}

public function canceledCount($value)
{
$operator = substr($value, 0, 1);
Expand All @@ -115,7 +115,7 @@ public function canceled_count($value)
{
return $this->canceledCount($value);
}

public function statDateStart($date)
{
return $this->builder->where('stat_date', '>=', $date);
Expand Down Expand Up @@ -147,7 +147,7 @@ public function iamAccountId($value)
}
}


public function ipaasProviderId($value)
{
$ipaasProvider = \NextDeveloper\IPAAS\Database\Models\Providers::where('uuid', $value)->first();
Expand All @@ -162,7 +162,7 @@ public function ipaas_provider_id($value)
{
return $this->ipaasProvider($value);
}

// EDIT AFTER HERE - WARNING: ABOVE THIS LINE MAY BE REGENERATED AND YOU MAY LOSE CODE


Expand Down
26 changes: 13 additions & 13 deletions src/Database/Filters/PlatformHealthPerspectiveQueryFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class PlatformHealthPerspectiveQueryFilter extends AbstractQueryFilter
* @var Builder
*/
protected $builder;

public function providerName($value)
{
return $this->builder->where('provider_name', 'ilike', '%' . $value . '%');
Expand All @@ -28,7 +28,7 @@ public function provider_name($value)
{
return $this->providerName($value);
}

public function providerType($value)
{
return $this->builder->where('provider_type', 'ilike', '%' . $value . '%');
Expand All @@ -39,7 +39,7 @@ public function provider_type($value)
{
return $this->providerType($value);
}

public function lastExecutionStatus($value)
{
return $this->builder->where('last_execution_status', 'ilike', '%' . $value . '%');
Expand All @@ -50,7 +50,7 @@ public function last_execution_status($value)
{
return $this->lastExecutionStatus($value);
}

public function healthStatus($value)
{
return $this->builder->where('health_status', 'ilike', '%' . $value . '%');
Expand All @@ -61,7 +61,7 @@ public function health_status($value)
{
return $this->healthStatus($value);
}

public function activeWorkflows($value)
{
$operator = substr($value, 0, 1);
Expand All @@ -80,7 +80,7 @@ public function active_workflows($value)
{
return $this->activeWorkflows($value);
}

public function executionsToday($value)
{
$operator = substr($value, 0, 1);
Expand All @@ -99,7 +99,7 @@ public function executions_today($value)
{
return $this->executionsToday($value);
}

public function successToday($value)
{
$operator = substr($value, 0, 1);
Expand All @@ -118,7 +118,7 @@ public function success_today($value)
{
return $this->successToday($value);
}

public function errorsToday($value)
{
$operator = substr($value, 0, 1);
Expand All @@ -137,7 +137,7 @@ public function errors_today($value)
{
return $this->errorsToday($value);
}

public function runningToday($value)
{
$operator = substr($value, 0, 1);
Expand All @@ -156,7 +156,7 @@ public function running_today($value)
{
return $this->runningToday($value);
}

public function isDefaultWap($value)
{
return $this->builder->where('is_default_wap', $value);
Expand All @@ -167,7 +167,7 @@ public function is_default_wap($value)
{
return $this->isDefaultWap($value);
}

public function lastExecutionAtStart($date)
{
return $this->builder->where('last_execution_at', '>=', $date);
Expand Down Expand Up @@ -221,7 +221,7 @@ public function iamAccountId($value)
}
}


public function ipaasProviderId($value)
{
$ipaasProvider = \NextDeveloper\IPAAS\Database\Models\Providers::where('uuid', $value)->first();
Expand All @@ -236,7 +236,7 @@ public function ipaas_provider_id($value)
{
return $this->ipaasProvider($value);
}

// EDIT AFTER HERE - WARNING: ABOVE THIS LINE MAY BE REGENERATED AND YOU MAY LOSE CODE


Expand Down
Loading