-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
208 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.4.1 | ||
0.5.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<?php | ||
|
||
namespace Spinen\Halo; | ||
|
||
use Carbon\Carbon; | ||
use Spinen\Halo\Support\Model; | ||
|
||
/** | ||
* Class Holiday | ||
* | ||
* @property bool $allday | ||
* @property bool $isrecurring | ||
* @property Carbon $date | ||
* @property Carbon $end_date | ||
* @property float $duration | ||
* @property int $agent_id | ||
* @property int $entity | ||
* @property int $holid | ||
* @property int $holiday_type | ||
* @property int $workday_id | ||
* @property string $agent_name | ||
* @property string $id | ||
* @property string $name | ||
*/ | ||
class Holiday extends Model | ||
{ | ||
/** | ||
* The attributes that should be cast to native types. | ||
* | ||
* @var array | ||
*/ | ||
protected $casts = [ | ||
'agent_id' => 'int', | ||
'agent_name' => 'string', | ||
'allday' => 'bool', | ||
'date' => 'datetime', | ||
'duration' => 'float', | ||
'end_date' => 'datetime', | ||
'entity' => 'int', | ||
'holid' => 'int', | ||
'holiday_type' => 'int', | ||
'id' => 'string', | ||
'isrecurring' => 'bool', | ||
'workday_id' => 'int', | ||
]; | ||
|
||
/** | ||
* Is the model readonly? | ||
*/ | ||
protected bool $readonlyModel = true; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<?php | ||
|
||
namespace Spinen\Halo; | ||
|
||
use Spinen\Halo\Support\Model; | ||
|
||
/** | ||
* Class Sla | ||
* | ||
* @property array $access_control | ||
* @property array $priorities | ||
* @property bool $autoreleaseoption | ||
* @property bool $dontsendholdreminders | ||
* @property bool $hoursaretechslocaltime | ||
* @property bool $response_reset_approval | ||
* @property bool $responsereset | ||
* @property bool $trackslafixbytime | ||
* @property bool $trackslaresponsetime | ||
* @property int $access_control_level | ||
* @property int $autoreleaselimit | ||
* @property int $id | ||
* @property int $slstatusafterfirstwarning | ||
* @property int $slstatusaftersecondwarning | ||
* @property int $statusafterautorelease | ||
* @property int $workday_id | ||
* @property string $guid | ||
* @property string $name | ||
* @property string $statusafterautorelease_name | ||
* @property string $workday_name | ||
*/ | ||
class Sla extends Model | ||
{ | ||
/** | ||
* The attributes that should be cast to native types. | ||
* | ||
* @var array | ||
*/ | ||
protected $casts = [ | ||
'access_control_level' => 'int', | ||
'autoreleaselimit' => 'int', | ||
'autoreleaseoption' => 'bool', | ||
'dontsendholdreminders' => 'bool', | ||
'hoursaretechslocaltime' => 'bool', | ||
'id' => 'int', | ||
'response_reset_approval' => 'bool', | ||
'responsereset' => 'bool', | ||
'slstatusafterfirstwarning' => 'int', | ||
'slstatusaftersecondwarning' => 'int', | ||
'statusafterautorelease' => 'int', | ||
'trackslafixbytime' => 'bool', | ||
'trackslaresponsetime' => 'bool', | ||
'workday_id' => 'int', | ||
]; | ||
|
||
/** | ||
* Path to API endpoint. | ||
*/ | ||
protected string $path = '/sla'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
<?php | ||
|
||
namespace Spinen\Halo; | ||
|
||
use Carbon\Carbon; | ||
use Spinen\Halo\Support\Model; | ||
|
||
/** | ||
* Class Workday | ||
* | ||
* @property array $access_control | ||
* @property array $holidays | ||
* @property array $timeslots | ||
* @property bool $alldayssame | ||
* @property bool $incfriday | ||
* @property bool $incmonday | ||
* @property bool $incsaturday | ||
* @property bool $incsunday | ||
* @property bool $incthursday | ||
* @property bool $inctuesday | ||
* @property bool $incwednesday | ||
* @property Carbon $end | ||
* @property Carbon $endfriday | ||
* @property Carbon $endmonday | ||
* @property Carbon $endsaturday | ||
* @property Carbon $endsunday | ||
* @property Carbon $endthursday | ||
* @property Carbon $endtuesday | ||
* @property Carbon $endwednesday | ||
* @property Carbon $start | ||
* @property Carbon $startfriday | ||
* @property Carbon $startmonday | ||
* @property Carbon $startsaturday | ||
* @property Carbon $startsunday | ||
* @property Carbon $startthursday | ||
* @property Carbon $starttuesday | ||
* @property Carbon $startwednesday | ||
* @property int $access_control_level | ||
* @property int $id | ||
* @property string $guid | ||
* @property string $name | ||
* @property string $summary | ||
* @property string $timezone | ||
*/ | ||
class Workday extends Model | ||
{ | ||
/** | ||
* The attributes that should be cast to native types. | ||
* | ||
* @var array | ||
*/ | ||
protected $casts = [ | ||
'access_control_level' => 'int', | ||
'alldayssame' => 'bool', | ||
'end' => 'datetime', | ||
'endfriday' => 'datetime', | ||
'endmonday' => 'datetime', | ||
'endsaturday' => 'datetime', | ||
'endsunday' => 'datetime', | ||
'endthursday' => 'datetime', | ||
'endtuesday' => 'datetime', | ||
'endwednesday' => 'datetime', | ||
'id' => 'int', | ||
'incfriday' => 'bool', | ||
'incmonday' => 'bool', | ||
'incsaturday' => 'bool', | ||
'incsunday' => 'bool', | ||
'incthursday' => 'bool', | ||
'inctuesday' => 'bool', | ||
'incwednesday' => 'bool', | ||
'start' => 'datetime', | ||
'startfriday' => 'datetime', | ||
'startmonday' => 'datetime', | ||
'startsaturday' => 'datetime', | ||
'startsunday' => 'datetime', | ||
'startthursday' => 'datetime', | ||
'starttuesday' => 'datetime', | ||
'startwednesday' => 'datetime', | ||
]; | ||
|
||
/** | ||
* Path to API endpoint. | ||
*/ | ||
protected string $path = '/workday'; | ||
} |