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
10 changes: 5 additions & 5 deletions src/Database/Filters/AgentExpertisesQueryFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function proficiency($value)
return $this->builder->where('proficiency', $operator, $value);
}


public function isAvailable($value)
{
return $this->builder->where('is_available', $value);
Expand All @@ -42,7 +42,7 @@ public function is_available($value)
{
return $this->isAvailable($value);
}

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


public function commonCategoryId($value)
{
$commonCategory = \NextDeveloper\Commons\Database\Models\Categories::where('uuid', $value)->first();
Expand All @@ -133,7 +133,7 @@ public function common_category_id($value)
{
return $this->commonCategory($value);
}

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


// EDIT AFTER HERE - WARNING: ABOVE THIS LINE MAY BE REGENERATED AND YOU MAY LOSE CODE
}
12 changes: 6 additions & 6 deletions src/Database/Filters/CsatsQueryFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ class CsatsQueryFilter extends AbstractQueryFilter
* @var Builder
*/
protected $builder;

public function comment($value)
{
return $this->builder->where('comment', 'ilike', '%' . $value . '%');
}


public function score($value)
{
$operator = substr($value, 0, 1);
Expand All @@ -37,7 +37,7 @@ public function score($value)
return $this->builder->where('score', $operator, $value);
}


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

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


public function iamUserId($value)
{
$iamUser = \NextDeveloper\IAM\Database\Models\Users::where('uuid', $value)->first();
Expand All @@ -138,6 +138,6 @@ public function iamUserId($value)
}
}


// EDIT AFTER HERE - WARNING: ABOVE THIS LINE MAY BE REGENERATED AND YOU MAY LOSE CODE
}
28 changes: 14 additions & 14 deletions src/Database/Filters/KbArticlesPerspectiveQueryFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,31 +20,31 @@ class KbArticlesPerspectiveQueryFilter extends AbstractQueryFilter
* @var Builder
*/
protected $builder;

public function title($value)
{
return $this->builder->where('title', 'ilike', '%' . $value . '%');
}


public function slug($value)
{
return $this->builder->where('slug', 'ilike', '%' . $value . '%');
}


public function body($value)
{
return $this->builder->where('body', 'ilike', '%' . $value . '%');
}


public function excerpt($value)
{
return $this->builder->where('excerpt', 'ilike', '%' . $value . '%');
}


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

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

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

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

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

public function isPublished($value)
{
return $this->builder->where('is_published', $value);
Expand All @@ -134,7 +134,7 @@ public function is_published($value)
{
return $this->isPublished($value);
}

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

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


public function iamUserId($value)
{
$iamUser = \NextDeveloper\IAM\Database\Models\Users::where('uuid', $value)->first();
Expand All @@ -235,6 +235,6 @@ public function iamUserId($value)
}
}


// EDIT AFTER HERE - WARNING: ABOVE THIS LINE MAY BE REGENERATED AND YOU MAY LOSE CODE
}
24 changes: 12 additions & 12 deletions src/Database/Filters/KbArticlesQueryFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,31 +20,31 @@ class KbArticlesQueryFilter extends AbstractQueryFilter
* @var Builder
*/
protected $builder;

public function title($value)
{
return $this->builder->where('title', 'ilike', '%' . $value . '%');
}


public function slug($value)
{
return $this->builder->where('slug', 'ilike', '%' . $value . '%');
}


public function body($value)
{
return $this->builder->where('body', 'ilike', '%' . $value . '%');
}


public function excerpt($value)
{
return $this->builder->where('excerpt', 'ilike', '%' . $value . '%');
}


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

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

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

public function isPublished($value)
{
return $this->builder->where('is_published', $value);
Expand All @@ -112,7 +112,7 @@ public function is_published($value)
{
return $this->isPublished($value);
}

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

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


public function iamUserId($value)
{
$iamUser = \NextDeveloper\IAM\Database\Models\Users::where('uuid', $value)->first();
Expand All @@ -213,6 +213,6 @@ public function iamUserId($value)
}
}


// EDIT AFTER HERE - WARNING: ABOVE THIS LINE MAY BE REGENERATED AND YOU MAY LOSE CODE
}
16 changes: 8 additions & 8 deletions src/Database/Filters/SlaPoliciesQueryFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ class SlaPoliciesQueryFilter extends AbstractQueryFilter
* @var Builder
*/
protected $builder;

public function name($value)
{
return $this->builder->where('name', 'ilike', '%' . $value . '%');
}


public function priority($value)
{
$operator = substr($value, 0, 1);
Expand All @@ -37,7 +37,7 @@ public function priority($value)
return $this->builder->where('priority', $operator, $value);
}


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

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

public function isActive($value)
{
return $this->builder->where('is_active', $value);
Expand All @@ -86,7 +86,7 @@ public function is_active($value)
{
return $this->isActive($value);
}

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


public function iamUserId($value)
{
$iamUser = \NextDeveloper\IAM\Database\Models\Users::where('uuid', $value)->first();
Expand All @@ -172,6 +172,6 @@ public function iamUserId($value)
}
}


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