Skip to content

Commit

Permalink
Merge pull request #9 from ageras-com/employee_teams_3
Browse files Browse the repository at this point in the history
Generated new API client
  • Loading branch information
cameronjdavis authored Aug 11, 2021
2 parents 5e88b52 + 2d112db commit 7d313d7
Show file tree
Hide file tree
Showing 26 changed files with 1,162 additions and 59 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ this is the Ageras API
This PHP package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:

- API version: 2.0
- Build date: 2021-07-23T11:37:50.941Z
- Build date: 2021-08-11T11:05:31.999Z
- Build package: class io.swagger.codegen.languages.PhpClientCodegen

## Requirements
Expand Down Expand Up @@ -259,6 +259,7 @@ Class | Method | HTTP request | Description
*OrganisationApi* | [**organisationEmployeesNotificationsIndex**](docs/Api/OrganisationApi.md#organisationemployeesnotificationsindex) | **GET** /organisation/employees/{employee_id}/notifications |
*OrganisationApi* | [**organisationEmployeesNotificationsIndex_0**](docs/Api/OrganisationApi.md#organisationemployeesnotificationsindex_0) | **GET** /organisation/{organisation_id}/employees/{employee_id}/notifications |
*OrganisationApi* | [**organisationFrontendemployeesIndex**](docs/Api/OrganisationApi.md#organisationfrontendemployeesindex) | **GET** /organisation/frontendemployees |
*OrganisationApi* | [**organisationFrontendemployeeteamsIndex**](docs/Api/OrganisationApi.md#organisationfrontendemployeeteamsindex) | **GET** /organisation/frontendemployeeteams |
*PackagesApi* | [**packagesFeaturesIndex**](docs/Api/PackagesApi.md#packagesfeaturesindex) | **GET** /packages/features |
*PackagesApi* | [**packagesGet**](docs/Api/PackagesApi.md#packagesget) | **GET** /packages/{id} |
*PackagesApi* | [**packagesIndex**](docs/Api/PackagesApi.md#packagesindex) | **GET** /packages |
Expand Down Expand Up @@ -604,6 +605,7 @@ Class | Method | HTTP request | Description
- [FrontendEmployeeResource](docs/Model/FrontendEmployeeResource.md)
- [FrontendEmployeeResult](docs/Model/FrontendEmployeeResult.md)
- [FrontendEmployeeTeamResource](docs/Model/FrontendEmployeeTeamResource.md)
- [FrontendEmployeeTeamResult](docs/Model/FrontendEmployeeTeamResult.md)
- [IndustryResource](docs/Model/IndustryResource.md)
- [IndustryResult](docs/Model/IndustryResult.md)
- [InvoiceLineResource](docs/Model/InvoiceLineResource.md)
Expand Down Expand Up @@ -722,7 +724,7 @@ Class | Method | HTTP request | Description
- [MatchResult](docs/Model/MatchResult.md)
- [MessageResource](docs/Model/MessageResource.md)
- [MessageResult](docs/Model/MessageResult.md)
- [NestedPartnerContractOfferGroupResource](docs/Model/NestedPartnerContractOfferGroupResource.md)
- [NestedContractOfferGroupResource](docs/Model/NestedContractOfferGroupResource.md)
- [NestedPartnerContractOfferResource](docs/Model/NestedPartnerContractOfferResource.md)
- [NestedPaymentMethodResource](docs/Model/NestedPaymentMethodResource.md)
- [NotificationActionResource](docs/Model/NotificationActionResource.md)
Expand Down
68 changes: 66 additions & 2 deletions docs/Api/OrganisationApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Method | HTTP request | Description
[**organisationEmployeesNotificationsIndex**](OrganisationApi.md#organisationEmployeesNotificationsIndex) | **GET** /organisation/employees/{employee_id}/notifications |
[**organisationEmployeesNotificationsIndex_0**](OrganisationApi.md#organisationEmployeesNotificationsIndex_0) | **GET** /organisation/{organisation_id}/employees/{employee_id}/notifications |
[**organisationFrontendemployeesIndex**](OrganisationApi.md#organisationFrontendemployeesIndex) | **GET** /organisation/frontendemployees |
[**organisationFrontendemployeeteamsIndex**](OrganisationApi.md#organisationFrontendemployeeteamsIndex) | **GET** /organisation/frontendemployeeteams |


# **organisationEmployeesActionsCreate**
Expand Down Expand Up @@ -753,7 +754,7 @@ Ageras\Api\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD'

$api_instance = new Ageras\Api\Api\OrganisationApi();
$criteria = [
'frontend_employee_team_id' => "frontend_employee_team_id_example"; // string | IDs of frontend teams this frontend employee is assigned to
'frontend_employee_team_id' => "frontend_employee_team_id_example"; // string | IDs of frontend employee teams
'employee_id' => "employee_id_example"; // string | IDs of employees this frontend employee is associated with
'geo_code' => "geo_code_example"; // string | Geo Location Code ( ISO 3166 ).
'is_active' => false; // bool | Return only frontend employees that have an active employee assigned
Expand All @@ -776,7 +777,7 @@ try {

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**frontend_employee_team_id** | **string**| IDs of frontend teams this frontend employee is assigned to | [optional]
**frontend_employee_team_id** | **string**| IDs of frontend employee teams | [optional]
**employee_id** | **string**| IDs of employees this frontend employee is associated with | [optional]
**geo_code** | **string**| Geo Location Code ( ISO 3166 ). | [optional]
**is_active** | **bool**| Return only frontend employees that have an active employee assigned | [optional] [default to false]
Expand All @@ -800,3 +801,66 @@ Name | Type | Description | Notes

[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)

# **organisationFrontendemployeeteamsIndex**
> \Ageras\Api\FrontendEmployeeTeamResult organisationFrontendemployeeteamsIndex($criteria)


### Example
```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: jwt
Ageras\Api\Configuration::getDefaultConfiguration()->setApiKey('token', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Ageras\Api\Configuration::getDefaultConfiguration()->setApiKeyPrefix('token', 'Bearer');
// Configure HTTP basic authorization: login
Ageras\Api\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Ageras\Api\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Ageras\Api\Api\OrganisationApi();
$criteria = [
'has_frontend_employees' => false; // bool | Return only frontend teams that have at least one frontend employee
'frontend_employee_id' => "frontend_employee_id_example"; // string | Return only frontend employee teams that have frontend employees of given IDs in employee list
'employee_id' => "employee_id_example"; // string | Return only frontend employee teams that have employees of given IDs associated with frontend employees in them
'limit' => 56; // int | The number of resources to be returned.
'page' => 56; // int | The page position in the result.
'query' => "query_example"; // string | The search wildcard.
];

try {
$result = $api_instance->organisationFrontendemployeeteamsIndex($criteria);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OrganisationApi->organisationFrontendemployeeteamsIndex: ', $e->getMessage(), PHP_EOL;
}
?>
```

### Parameters

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**has_frontend_employees** | **bool**| Return only frontend teams that have at least one frontend employee | [optional] [default to false]
**frontend_employee_id** | **string**| Return only frontend employee teams that have frontend employees of given IDs in employee list | [optional]
**employee_id** | **string**| Return only frontend employee teams that have employees of given IDs associated with frontend employees in them | [optional]
**limit** | **int**| The number of resources to be returned. | [optional]
**page** | **int**| The page position in the result. | [optional]
**query** | **string**| The search wildcard. | [optional]

### Return type

[**\Ageras\Api\FrontendEmployeeTeamResult**](../Model/FrontendEmployeeTeamResult.md)

### Authorization

[jwt](../../README.md#jwt), [login](../../README.md#login)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)

1 change: 1 addition & 0 deletions docs/Model/EmployeeResource.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Name | Type | Description | Notes
**is_active** | **bool** | Is the Employee active ? | [optional] [default to false]
**current_call_activity** | [**\Ageras\Api\EmployeeCurrentCallActivityResource**](EmployeeCurrentCallActivityResource.md) | | [optional]
**social** | [**\Ageras\Api\EmployeeSocialResource**](EmployeeSocialResource.md) | | [optional]
**profile_picture** | **string** | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
1 change: 0 additions & 1 deletion docs/Model/FrontendEmployeeResource.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ Name | Type | Description | Notes
**job_title** | **string** | | [optional]
**job_description** | **string** | | [optional]
**sort** | **int** | | [optional]
**frontend_employee_team** | [**\Ageras\Api\FrontendEmployeeTeamResource**](FrontendEmployeeTeamResource.md) | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
1 change: 1 addition & 0 deletions docs/Model/FrontendEmployeeTeamResource.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Name | Type | Description | Notes
**id** | **int** | | [optional]
**identifier** | **string** | | [optional]
**sort** | **int** | | [optional]
**frontend_employees** | [**\Ageras\Api\FrontendEmployeeResource[]**](FrontendEmployeeResource.md) | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
15 changes: 15 additions & 0 deletions docs/Model/FrontendEmployeeTeamResult.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# FrontendEmployeeTeamResult

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**page** | **int** | Current Page. | [optional]
**limit** | **int** | Number of results per page. | [optional]
**pages** | **int** | Number of pages. | [optional]
**total** | **int** | Total number of results. | [optional]
**data** | [**\Ageras\Api\FrontendEmployeeTeamResource[]**](FrontendEmployeeTeamResource.md) | The result. | [optional]
**did_you_mean** | **string** | Options for related or alternative searches. | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


10 changes: 10 additions & 0 deletions docs/Model/NestedContractOfferGroupResource.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# NestedContractOfferGroupResource

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **int** | The offer group id. | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


2 changes: 1 addition & 1 deletion docs/Model/PartnerContractOfferGroupResource.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **int** | The offer group id. | [optional]
**partner** | [**\Ageras\Api\NestedPartnerContractOfferGroupResource**](NestedPartnerContractOfferGroupResource.md) | | [optional]
**partner** | [**\Ageras\Api\NestedContractOfferGroupResource**](NestedContractOfferGroupResource.md) | | [optional]
**offers** | [**\Ageras\Api\PartnerContractOfferResource[]**](PartnerContractOfferResource.md) | List of connected offers. | [optional]
**segmentation_geo_regions** | [**\Ageras\Api\SegmentationGeoRegionResource[]**](SegmentationGeoRegionResource.md) | List of indicative regions the partner is interested in. | [optional]

Expand Down
2 changes: 1 addition & 1 deletion docs/Model/PartnerContractOfferResource.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **int** | The offer id. | [optional]
**offer_group** | [**\Ageras\Api\NestedPartnerContractOfferGroupResource**](NestedPartnerContractOfferGroupResource.md) | | [optional]
**offer_group** | [**\Ageras\Api\NestedContractOfferGroupResource**](NestedContractOfferGroupResource.md) | | [optional]
**offer_items** | [**\Ageras\Api\PartnerContractOfferItemResource[]**](PartnerContractOfferItemResource.md) | List of offer items that are connected to this offer. | [optional]
**price_excl_vat** | [**\Ageras\Api\AmountResource**](AmountResource.md) | | [optional]
**sort** | **int** | List of offer items that are connected to this offer. | [optional]
Expand Down
1 change: 1 addition & 0 deletions docs/Model/TaskResource.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Name | Type | Description | Notes
**created_at** | **string** | | [optional]
**updated_at** | **string** | | [optional]
**deadline_at** | **string** | | [optional]
**completed_at** | **string** | | [optional]
**title** | **string** | | [optional]
**description** | **string** | | [optional]
**employee** | [**\Ageras\Api\EmployeeResource**](EmployeeResource.md) | | [optional]
Expand Down
34 changes: 30 additions & 4 deletions lib/EmployeeResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ class EmployeeResource implements ArrayAccess
'initials' => 'string',
'is_active' => 'bool',
'current_call_activity' => '\Ageras\Api\EmployeeCurrentCallActivityResource',
'social' => '\Ageras\Api\EmployeeSocialResource'
'social' => '\Ageras\Api\EmployeeSocialResource',
'profile_picture' => 'string'
];

public static function swaggerTypes()
Expand Down Expand Up @@ -99,7 +100,8 @@ public static function swaggerTypes()
'initials' => 'initials',
'is_active' => 'is_active',
'current_call_activity' => 'current_call_activity',
'social' => 'social'
'social' => 'social',
'profile_picture' => 'profile_picture'
];


Expand All @@ -124,7 +126,8 @@ public static function swaggerTypes()
'initials' => 'setInitials',
'is_active' => 'setIsActive',
'current_call_activity' => 'setCurrentCallActivity',
'social' => 'setSocial'
'social' => 'setSocial',
'profile_picture' => 'setProfilePicture'
];


Expand All @@ -149,7 +152,8 @@ public static function swaggerTypes()
'initials' => 'getInitials',
'is_active' => 'getIsActive',
'current_call_activity' => 'getCurrentCallActivity',
'social' => 'getSocial'
'social' => 'getSocial',
'profile_picture' => 'getProfilePicture'
];

public static function attributeMap()
Expand Down Expand Up @@ -200,6 +204,7 @@ public function __construct(array $data = null)
$this->container['is_active'] = isset($data['is_active']) ? $data['is_active'] : false;
$this->container['current_call_activity'] = isset($data['current_call_activity']) ? $data['current_call_activity'] : null;
$this->container['social'] = isset($data['social']) ? $data['social'] : null;
$this->container['profile_picture'] = isset($data['profile_picture']) ? $data['profile_picture'] : null;
}

/**
Expand Down Expand Up @@ -583,6 +588,27 @@ public function setSocial($social)

return $this;
}

/**
* Gets profile_picture
* @return string
*/
public function getProfilePicture()
{
return $this->container['profile_picture'];
}

/**
* Sets profile_picture
* @param string $profile_picture
* @return $this
*/
public function setProfilePicture($profile_picture)
{
$this->container['profile_picture'] = $profile_picture;

return $this;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
Expand Down
34 changes: 4 additions & 30 deletions lib/FrontendEmployeeResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ class FrontendEmployeeResource implements ArrayAccess
'geo_code' => 'string',
'job_title' => 'string',
'job_description' => 'string',
'sort' => 'int',
'frontend_employee_team' => '\Ageras\Api\FrontendEmployeeTeamResource'
'sort' => 'int'
];

public static function swaggerTypes()
Expand All @@ -78,8 +77,7 @@ public static function swaggerTypes()
'geo_code' => 'geo_code',
'job_title' => 'job_title',
'job_description' => 'job_description',
'sort' => 'sort',
'frontend_employee_team' => 'frontend_employee_team'
'sort' => 'sort'
];


Expand All @@ -93,8 +91,7 @@ public static function swaggerTypes()
'geo_code' => 'setGeoCode',
'job_title' => 'setJobTitle',
'job_description' => 'setJobDescription',
'sort' => 'setSort',
'frontend_employee_team' => 'setFrontendEmployeeTeam'
'sort' => 'setSort'
];


Expand All @@ -108,8 +105,7 @@ public static function swaggerTypes()
'geo_code' => 'getGeoCode',
'job_title' => 'getJobTitle',
'job_description' => 'getJobDescription',
'sort' => 'getSort',
'frontend_employee_team' => 'getFrontendEmployeeTeam'
'sort' => 'getSort'
];

public static function attributeMap()
Expand Down Expand Up @@ -149,7 +145,6 @@ public function __construct(array $data = null)
$this->container['job_title'] = isset($data['job_title']) ? $data['job_title'] : null;
$this->container['job_description'] = isset($data['job_description']) ? $data['job_description'] : null;
$this->container['sort'] = isset($data['sort']) ? $data['sort'] : null;
$this->container['frontend_employee_team'] = isset($data['frontend_employee_team']) ? $data['frontend_employee_team'] : null;
}

/**
Expand Down Expand Up @@ -302,27 +297,6 @@ public function setSort($sort)

return $this;
}

/**
* Gets frontend_employee_team
* @return \Ageras\Api\FrontendEmployeeTeamResource
*/
public function getFrontendEmployeeTeam()
{
return $this->container['frontend_employee_team'];
}

/**
* Sets frontend_employee_team
* @param \Ageras\Api\FrontendEmployeeTeamResource $frontend_employee_team
* @return $this
*/
public function setFrontendEmployeeTeam($frontend_employee_team)
{
$this->container['frontend_employee_team'] = $frontend_employee_team;

return $this;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
Expand Down
Loading

0 comments on commit 7d313d7

Please sign in to comment.