diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index 368fd8fd..1b2d969d 100644 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -7.15.0 +7.18.0 diff --git a/README_TeamAmin.md b/README_TeamAmin.md index 13225641..6ad4ed4e 100644 --- a/README_TeamAmin.md +++ b/README_TeamAmin.md @@ -4,17 +4,23 @@ Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- +*ActivitiesLogsApi* | [**listAutomationLogs**](docs/TeamAdmin/Api/ActivitiesLogsApi.md#listautomationlogs) | **GET** /api/v2.1/org/{org_id}/admin/automation-logs/ | List Automation Logs *ActivitiesLogsApi* | [**listFileAccessLogs**](docs/TeamAdmin/Api/ActivitiesLogsApi.md#listfileaccesslogs) | **GET** /api/v2.1/org/{org_id}/admin/file-access-logs/ | List File Access Logs *ActivitiesLogsApi* | [**listGroupMemberAuditLogs**](docs/TeamAdmin/Api/ActivitiesLogsApi.md#listgroupmemberauditlogs) | **GET** /api/v2.1/org/{org_id}/admin/group-member-audit/ | List Group Member Audit Logs +*ActivitiesLogsApi* | [**listPythonRuns**](docs/TeamAdmin/Api/ActivitiesLogsApi.md#listpythonruns) | **GET** /api/v2.1/org/{org_id}/admin/python-runs/ | List Python Runs *ActivitiesLogsApi* | [**listTeamLogins**](docs/TeamAdmin/Api/ActivitiesLogsApi.md#listteamlogins) | **GET** /api/v2.1/org/{org_id}/admin/login-logs/ | List Team Logins *ActivitiesLogsApi* | [**listTeamOperationLog**](docs/TeamAdmin/Api/ActivitiesLogsApi.md#listteamoperationlog) | **GET** /api/v2.1/org/{org_id}/admin/admin-logs/ | List Team Operations *ActivitiesLogsApi* | [**listUserLogins**](docs/TeamAdmin/Api/ActivitiesLogsApi.md#listuserlogins) | **GET** /api/v2.1/org/{org_id}/admin/login-logs/{user_id}/ | List User Logins *BasesApi* | [**clearTeamTrashBin**](docs/TeamAdmin/Api/BasesApi.md#clearteamtrashbin) | **DELETE** /api/v2.1/org/{org_id}/admin/trash-dtables/ | Clear Team Trash Bin +*BasesApi* | [**deleteApiToken**](docs/TeamAdmin/Api/BasesApi.md#deleteapitoken) | **DELETE** /api/v2.1/org/{org_id}/admin/dtables/{base_uuid}/api-tokens/{app_name}/ | Delete API-Token *BasesApi* | [**deleteBase**](docs/TeamAdmin/Api/BasesApi.md#deletebase) | **DELETE** /api/v2.1/org/{org_id}/admin/dtables/{base_uuid}/ | Delete Base *BasesApi* | [**getBase**](docs/TeamAdmin/Api/BasesApi.md#getbase) | **GET** /api/v2.1/org/{org_id}/admin/dtables/{base_uuid}/ | Get Base +*BasesApi* | [**listApiTokens**](docs/TeamAdmin/Api/BasesApi.md#listapitokens) | **GET** /api/v2.1/org/{org_id}/admin/dtables/{base_uuid}/api-tokens/ | List API-Tokens +*BasesApi* | [**listApiTokensOfAllBases**](docs/TeamAdmin/Api/BasesApi.md#listapitokensofallbases) | **GET** /api/v2.1/org/{org_id}/admin/api-tokens/ | List API-Tokens of All Bases *BasesApi* | [**listBaseSharings**](docs/TeamAdmin/Api/BasesApi.md#listbasesharings) | **GET** /api/v2.1/org/{org_id}/admin/dtables/{base_uuid}/shares/ | List Base Sharings *BasesApi* | [**listBases**](docs/TeamAdmin/Api/BasesApi.md#listbases) | **GET** /api/v2.1/org/{org_id}/admin/dtables/ | List Bases (Team) *BasesApi* | [**listTrashBases**](docs/TeamAdmin/Api/BasesApi.md#listtrashbases) | **GET** /api/v2.1/org/{org_id}/admin/trash-dtables/ | List Trash Bases +*BasesApi* | [**listUsersBases**](docs/TeamAdmin/Api/BasesApi.md#listusersbases) | **GET** /api/v2.1/org/{org_id}/admin/users/{user_id}/dtables/ | List User's Bases *BasesApi* | [**restoreBaseFromTrash**](docs/TeamAdmin/Api/BasesApi.md#restorebasefromtrash) | **PUT** /api/v2.1/org/{org_id}/admin/trash-dtables/{base_uuid}/ | Restore Base from Trash *BasesApi* | [**searchBase**](docs/TeamAdmin/Api/BasesApi.md#searchbase) | **GET** /api/v2.1/org/{org_id}/admin/search-dtables/ | Search Base *CustomizingApi* | [**deleteTeamLogo**](docs/TeamAdmin/Api/CustomizingApi.md#deleteteamlogo) | **DELETE** /api/v2.1/org/{org_id}/admin/org-logo/ | Delete Team Logo @@ -31,6 +37,7 @@ Class | Method | HTTP request | Description *GroupsApi* | [**removeGroupMembers**](docs/TeamAdmin/Api/GroupsApi.md#removegroupmembers) | **DELETE** /api/v2.1/org/{org_id}/admin/groups/{group_id}/members/{user_id}/ | Remove Group Members *GroupsApi* | [**updateGroup**](docs/TeamAdmin/Api/GroupsApi.md#updategroup) | **PUT** /api/v2.1/org/{org_id}/admin/groups/{group_id}/ | Update Group *GroupsApi* | [**updateGroupMemberRole**](docs/TeamAdmin/Api/GroupsApi.md#updategroupmemberrole) | **PUT** /api/v2.1/org/{org_id}/admin/groups/{group_id}/members/{user_id}/ | Update Group Member Role +*InfoSettingsApi* | [**deleteTeam**](docs/TeamAdmin/Api/InfoSettingsApi.md#deleteteam) | **DELETE** /api/v2.1/org/admin/ | Delete Team *InfoSettingsApi* | [**getTeamInfo**](docs/TeamAdmin/Api/InfoSettingsApi.md#getteaminfo) | **GET** /api/v2.1/org/admin/info/ | Get Team Info *InfoSettingsApi* | [**getTeamSettings**](docs/TeamAdmin/Api/InfoSettingsApi.md#getteamsettings) | **GET** /api/v2.1/org/admin/settings/ | Get Team Settings *InfoSettingsApi* | [**updateTeam**](docs/TeamAdmin/Api/InfoSettingsApi.md#updateteam) | **PUT** /api/v2.1/org/admin/info/ | Update Team @@ -44,8 +51,15 @@ Class | Method | HTTP request | Description *SharingLinksApi* | [**deleteViewExternalLink**](docs/TeamAdmin/Api/SharingLinksApi.md#deleteviewexternallink) | **DELETE** /api/v2.1/org/{org_id}/admin/view-external-links/{view_external_link_token}/ | Delete View External Link *SharingLinksApi* | [**listBaseExternalLinks**](docs/TeamAdmin/Api/SharingLinksApi.md#listbaseexternallinks) | **GET** /api/v2.1/org/{org_id}/admin/external-links/ | List Base External Links *SharingLinksApi* | [**listInviteLinks**](docs/TeamAdmin/Api/SharingLinksApi.md#listinvitelinks) | **GET** /api/v2.1/org/{org_id}/admin/invite-links/ | List Invite Links +*SharingLinksApi* | [**listShares**](docs/TeamAdmin/Api/SharingLinksApi.md#listshares) | **GET** /api/v2.1/org/{org_id}/admin/shares/ | List Shares *SharingLinksApi* | [**listViewExternalLinks**](docs/TeamAdmin/Api/SharingLinksApi.md#listviewexternallinks) | **GET** /api/v2.1/org/{org_id}/admin/view-external-links/ | List View External Links *SharingLinksApi* | [**updateInviteLink**](docs/TeamAdmin/Api/SharingLinksApi.md#updateinvitelink) | **PUT** /api/v2.1/org/{org_id}/admin/invite-links/{invite_link_token}/ | Update Invite Link +*StatisticsApi* | [**getAdminLogStatisticsByDay**](docs/TeamAdmin/Api/StatisticsApi.md#getadminlogstatisticsbyday) | **GET** /api/v2.1/org/{org_id}/admin/statistics/admin-logs/by-day/ | Admin Logs (by Day) +*StatisticsApi* | [**getAutomationLogStatisticsByBase**](docs/TeamAdmin/Api/StatisticsApi.md#getautomationlogstatisticsbybase) | **GET** /api/v2.1/org/{org_id}/admin/statistics/automation-logs/by-base/ | Automation Logs (by Base) +*StatisticsApi* | [**getAutomationLogStatisticsByDay**](docs/TeamAdmin/Api/StatisticsApi.md#getautomationlogstatisticsbyday) | **GET** /api/v2.1/org/{org_id}/admin/statistics/automation-logs/by-day/ | Automation Logs (by Day) +*StatisticsApi* | [**getLoginLogStatisticsByDay**](docs/TeamAdmin/Api/StatisticsApi.md#getloginlogstatisticsbyday) | **GET** /api/v2.1/org/{org_id}/admin/statistics/login-logs/by-day/ | Login Logs (by Day) +*StatisticsApi* | [**getPythonRunStatisticsByBase**](docs/TeamAdmin/Api/StatisticsApi.md#getpythonrunstatisticsbybase) | **GET** /api/v2.1/org/{org_id}/admin/statistics/python-runs/by-base/ | Python Runs (by Base) +*StatisticsApi* | [**getPythonRunStatisticsByDay**](docs/TeamAdmin/Api/StatisticsApi.md#getpythonrunstatisticsbyday) | **GET** /api/v2.1/org/{org_id}/admin/statistics/python-runs/by-day/ | Python Runs (by Day) *UsersApi* | [**addUser**](docs/TeamAdmin/Api/UsersApi.md#adduser) | **POST** /api/v2.1/org/{org_id}/admin/users/ | Add User *UsersApi* | [**deleteUser**](docs/TeamAdmin/Api/UsersApi.md#deleteuser) | **DELETE** /api/v2.1/org/{org_id}/admin/users/{user_id}/ | Delete User *UsersApi* | [**disableTwoFactor**](docs/TeamAdmin/Api/UsersApi.md#disabletwofactor) | **DELETE** /api/v2.1/org/{org_id}/admin/users/{user_id}/two-factor-auth/ | Disable 2FA diff --git a/docs/TeamAdmin/Api/ActivitiesLogsApi.md b/docs/TeamAdmin/Api/ActivitiesLogsApi.md index b97f76cf..838b5539 100644 --- a/docs/TeamAdmin/Api/ActivitiesLogsApi.md +++ b/docs/TeamAdmin/Api/ActivitiesLogsApi.md @@ -4,13 +4,72 @@ All URIs are relative to https://cloud.seatable.io, except if the operation defi | Method | HTTP request | Description | | ------------- | ------------- | ------------- | +| [**listAutomationLogs()**](ActivitiesLogsApi.md#listAutomationLogs) | **GET** /api/v2.1/org/{org_id}/admin/automation-logs/ | List Automation Logs | | [**listFileAccessLogs()**](ActivitiesLogsApi.md#listFileAccessLogs) | **GET** /api/v2.1/org/{org_id}/admin/file-access-logs/ | List File Access Logs | | [**listGroupMemberAuditLogs()**](ActivitiesLogsApi.md#listGroupMemberAuditLogs) | **GET** /api/v2.1/org/{org_id}/admin/group-member-audit/ | List Group Member Audit Logs | +| [**listPythonRuns()**](ActivitiesLogsApi.md#listPythonRuns) | **GET** /api/v2.1/org/{org_id}/admin/python-runs/ | List Python Runs | | [**listTeamLogins()**](ActivitiesLogsApi.md#listTeamLogins) | **GET** /api/v2.1/org/{org_id}/admin/login-logs/ | List Team Logins | | [**listTeamOperationLog()**](ActivitiesLogsApi.md#listTeamOperationLog) | **GET** /api/v2.1/org/{org_id}/admin/admin-logs/ | List Team Operations | | [**listUserLogins()**](ActivitiesLogsApi.md#listUserLogins) | **GET** /api/v2.1/org/{org_id}/admin/login-logs/{user_id}/ | List User Logins | +## `listAutomationLogs()` + +```php +listAutomationLogs($org_id, $start, $end, $page, $per_page): object +``` + +List Automation Logs + +Returns a list of automation logs inside a specific team. + +### Example + +```php +setAccessToken('YOUR_TOKEN'); +$apiInstance = new SeaTable\Client\TeamAdmin\ActivitiesLogsApi( + new GuzzleHttp\Client(), + $config +); +$org_id = 1; // int | The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. +$start = 2025-11-01T06:00:00+01:00; // \DateTime | Start date in ISO format. +$end = 2025-11-30T18:00:00+01:00; // \DateTime | End date in ISO format. +$page = 1; // int | The page number you want to start showing the entries. If no value is provided, 1 will be used. +$per_page = 25; // int | The number of results that should be returned. If no value is provided, 25 results will be returned. + +try { + $result = $apiInstance->listAutomationLogs($org_id, $start, $end, $page, $per_page); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling ActivitiesLogsApi->listAutomationLogs: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **org_id** | **int**| The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. | | +| **start** | **\DateTime**| Start date in ISO format. | [optional] | +| **end** | **\DateTime**| End date in ISO format. | [optional] | +| **page** | **int**| The page number you want to start showing the entries. If no value is provided, 1 will be used. | [optional] | +| **per_page** | **int**| The number of results that should be returned. If no value is provided, 25 results will be returned. | [optional] | + +### Return type + +**object** + +### Authorization + +AccountTokenAuth + + + + ## `listFileAccessLogs()` ```php @@ -117,10 +176,67 @@ AccountTokenAuth +## `listPythonRuns()` + +```php +listPythonRuns($dtable_uuid, $start, $end, $page, $per_page): object +``` + +List Python Runs + +Returns a list of python runs inside a specific team. + +### Example + +```php +setAccessToken('YOUR_TOKEN'); +$apiInstance = new SeaTable\Client\TeamAdmin\ActivitiesLogsApi( + new GuzzleHttp\Client(), + $config +); +$dtable_uuid = 5c264e76-0e5a-448a-9f34-580b551364ca; // string | The unique identifier of a base. +$start = 2025-11-01T06:00:00+01:00; // \DateTime | Start date in ISO format. +$end = 2025-11-30T18:00:00+01:00; // \DateTime | End date in ISO format. +$page = 1; // int | The page number you want to start showing the entries. If no value is provided, 1 will be used. +$per_page = 25; // int | The number of results that should be returned. If no value is provided, 25 results will be returned. + +try { + $result = $apiInstance->listPythonRuns($dtable_uuid, $start, $end, $page, $per_page); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling ActivitiesLogsApi->listPythonRuns: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **dtable_uuid** | **string**| The unique identifier of a base. | [optional] | +| **start** | **\DateTime**| Start date in ISO format. | [optional] | +| **end** | **\DateTime**| End date in ISO format. | [optional] | +| **page** | **int**| The page number you want to start showing the entries. If no value is provided, 1 will be used. | [optional] | +| **per_page** | **int**| The number of results that should be returned. If no value is provided, 25 results will be returned. | [optional] | + +### Return type + +**object** + +### Authorization + +AccountTokenAuth + + + + ## `listTeamLogins()` ```php -listTeamLogins($org_id, $page, $per_page): object +listTeamLogins($org_id, $page, $per_page, $login_status, $start, $end): object ``` List Team Logins @@ -142,9 +258,12 @@ $apiInstance = new SeaTable\Client\TeamAdmin\ActivitiesLogsApi( $org_id = 1; // int | The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. $page = 1; // int | The page number you want to start showing the entries. If no value is provided, 1 will be used. $per_page = 25; // int | The number of results that should be returned. If no value is provided, 25 results will be returned. +$login_status = success; // string | Set this to `success` to only return successful logins. By default, all logins are returned. +$start = 2025-11-01T06:00:00+01:00; // \DateTime | Start date in ISO format. +$end = 2025-11-30T18:00:00+01:00; // \DateTime | End date in ISO format. try { - $result = $apiInstance->listTeamLogins($org_id, $page, $per_page); + $result = $apiInstance->listTeamLogins($org_id, $page, $per_page, $login_status, $start, $end); print_r($result); } catch (Exception $e) { echo 'Exception when calling ActivitiesLogsApi->listTeamLogins: ', $e->getMessage(), PHP_EOL; @@ -158,6 +277,9 @@ try { | **org_id** | **int**| The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. | | | **page** | **int**| The page number you want to start showing the entries. If no value is provided, 1 will be used. | [optional] | | **per_page** | **int**| The number of results that should be returned. If no value is provided, 25 results will be returned. | [optional] | +| **login_status** | **string**| Set this to `success` to only return successful logins. By default, all logins are returned. | [optional] | +| **start** | **\DateTime**| Start date in ISO format. | [optional] | +| **end** | **\DateTime**| End date in ISO format. | [optional] | ### Return type @@ -173,7 +295,7 @@ AccountTokenAuth ## `listTeamOperationLog()` ```php -listTeamOperationLog($org_id, $page, $per_page): object +listTeamOperationLog($org_id, $page, $per_page, $operation_group, $start, $end): object ``` List Team Operations @@ -195,9 +317,12 @@ $apiInstance = new SeaTable\Client\TeamAdmin\ActivitiesLogsApi( $org_id = 1; // int | The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. $page = 1; // int | The page number you want to start showing the entries. If no value is provided, 1 will be used. $per_page = 25; // int | The number of results that should be returned. If no value is provided, 25 results will be returned. +$operation_group = user; // string | Filter by a specific operation group. By default, all operations are returned. +$start = 2025-11-01T06:00:00+01:00; // \DateTime | Start date in ISO format. +$end = 2025-11-30T18:00:00+01:00; // \DateTime | End date in ISO format. try { - $result = $apiInstance->listTeamOperationLog($org_id, $page, $per_page); + $result = $apiInstance->listTeamOperationLog($org_id, $page, $per_page, $operation_group, $start, $end); print_r($result); } catch (Exception $e) { echo 'Exception when calling ActivitiesLogsApi->listTeamOperationLog: ', $e->getMessage(), PHP_EOL; @@ -211,6 +336,9 @@ try { | **org_id** | **int**| The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. | | | **page** | **int**| The page number you want to start showing the entries. If no value is provided, 1 will be used. | [optional] | | **per_page** | **int**| The number of results that should be returned. If no value is provided, 25 results will be returned. | [optional] | +| **operation_group** | **string**| Filter by a specific operation group. By default, all operations are returned. | [optional] | +| **start** | **\DateTime**| Start date in ISO format. | [optional] | +| **end** | **\DateTime**| End date in ISO format. | [optional] | ### Return type diff --git a/docs/TeamAdmin/Api/BasesApi.md b/docs/TeamAdmin/Api/BasesApi.md index f51f1afb..775c0e1a 100644 --- a/docs/TeamAdmin/Api/BasesApi.md +++ b/docs/TeamAdmin/Api/BasesApi.md @@ -5,11 +5,15 @@ All URIs are relative to https://cloud.seatable.io, except if the operation defi | Method | HTTP request | Description | | ------------- | ------------- | ------------- | | [**clearTeamTrashBin()**](BasesApi.md#clearTeamTrashBin) | **DELETE** /api/v2.1/org/{org_id}/admin/trash-dtables/ | Clear Team Trash Bin | +| [**deleteApiToken()**](BasesApi.md#deleteApiToken) | **DELETE** /api/v2.1/org/{org_id}/admin/dtables/{base_uuid}/api-tokens/{app_name}/ | Delete API-Token | | [**deleteBase()**](BasesApi.md#deleteBase) | **DELETE** /api/v2.1/org/{org_id}/admin/dtables/{base_uuid}/ | Delete Base | | [**getBase()**](BasesApi.md#getBase) | **GET** /api/v2.1/org/{org_id}/admin/dtables/{base_uuid}/ | Get Base | +| [**listApiTokens()**](BasesApi.md#listApiTokens) | **GET** /api/v2.1/org/{org_id}/admin/dtables/{base_uuid}/api-tokens/ | List API-Tokens | +| [**listApiTokensOfAllBases()**](BasesApi.md#listApiTokensOfAllBases) | **GET** /api/v2.1/org/{org_id}/admin/api-tokens/ | List API-Tokens of All Bases | | [**listBaseSharings()**](BasesApi.md#listBaseSharings) | **GET** /api/v2.1/org/{org_id}/admin/dtables/{base_uuid}/shares/ | List Base Sharings | | [**listBases()**](BasesApi.md#listBases) | **GET** /api/v2.1/org/{org_id}/admin/dtables/ | List Bases (Team) | | [**listTrashBases()**](BasesApi.md#listTrashBases) | **GET** /api/v2.1/org/{org_id}/admin/trash-dtables/ | List Trash Bases | +| [**listUsersBases()**](BasesApi.md#listUsersBases) | **GET** /api/v2.1/org/{org_id}/admin/users/{user_id}/dtables/ | List User's Bases | | [**restoreBaseFromTrash()**](BasesApi.md#restoreBaseFromTrash) | **PUT** /api/v2.1/org/{org_id}/admin/trash-dtables/{base_uuid}/ | Restore Base from Trash | | [**searchBase()**](BasesApi.md#searchBase) | **GET** /api/v2.1/org/{org_id}/admin/search-dtables/ | Search Base | @@ -63,6 +67,59 @@ AccountTokenAuth +## `deleteApiToken()` + +```php +deleteApiToken($org_id, $base_uuid, $app_name): object +``` + +Delete API-Token + +Delete a specific API token from a base. The token is identified by its *app_name*. + +### Example + +```php +setAccessToken('YOUR_TOKEN'); +$apiInstance = new SeaTable\Client\TeamAdmin\BasesApi( + new GuzzleHttp\Client(), + $config +); +$org_id = 1; // int | The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. +$base_uuid = 5c264e76-0e5a-448a-9f34-580b551364ca; // string | The unique identifier of a base. Sometimes also called dtable_uuid. +$app_name = My App; // string | The name of your app. Every API-Token has a name to identify the purpose. The name of the app must be unique for every base. + +try { + $result = $apiInstance->deleteApiToken($org_id, $base_uuid, $app_name); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling BasesApi->deleteApiToken: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **org_id** | **int**| The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. | | +| **base_uuid** | **string**| The unique identifier of a base. Sometimes also called dtable_uuid. | | +| **app_name** | **string**| The name of your app. Every API-Token has a name to identify the purpose. The name of the app must be unique for every base. | | + +### Return type + +**object** + +### Authorization + +AccountTokenAuth + + + + ## `deleteBase()` ```php @@ -165,6 +222,110 @@ AccountTokenAuth +## `listApiTokens()` + +```php +listApiTokens($org_id, $base_uuid): object +``` + +List API-Tokens + +List API tokens of a single base. + +### Example + +```php +setAccessToken('YOUR_TOKEN'); +$apiInstance = new SeaTable\Client\TeamAdmin\BasesApi( + new GuzzleHttp\Client(), + $config +); +$org_id = 1; // int | The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. +$base_uuid = 5c264e76-0e5a-448a-9f34-580b551364ca; // string | The unique identifier of a base. Sometimes also called dtable_uuid. + +try { + $result = $apiInstance->listApiTokens($org_id, $base_uuid); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling BasesApi->listApiTokens: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **org_id** | **int**| The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. | | +| **base_uuid** | **string**| The unique identifier of a base. Sometimes also called dtable_uuid. | | + +### Return type + +**object** + +### Authorization + +AccountTokenAuth + + + + +## `listApiTokensOfAllBases()` + +```php +listApiTokensOfAllBases($org_id, $page, $per_page): object +``` + +List API-Tokens of All Bases + +List API tokens of all bases inside the team/organization. + +### Example + +```php +setAccessToken('YOUR_TOKEN'); +$apiInstance = new SeaTable\Client\TeamAdmin\BasesApi( + new GuzzleHttp\Client(), + $config +); +$org_id = 1; // int | The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. +$page = 1; // int | The page number you want to start showing the entries. If no value is provided, 1 will be used. +$per_page = 25; // int | The number of results that should be returned. If no value is provided, 25 results will be returned. + +try { + $result = $apiInstance->listApiTokensOfAllBases($org_id, $page, $per_page); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling BasesApi->listApiTokensOfAllBases: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **org_id** | **int**| The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. | | +| **page** | **int**| The page number you want to start showing the entries. If no value is provided, 1 will be used. | [optional] | +| **per_page** | **int**| The number of results that should be returned. If no value is provided, 25 results will be returned. | [optional] | + +### Return type + +**object** + +### Authorization + +AccountTokenAuth + + + + ## `listBaseSharings()` ```php @@ -322,6 +483,61 @@ AccountTokenAuth +## `listUsersBases()` + +```php +listUsersBases($org_id, $user_id, $page, $per_page): object +``` + +List User's Bases + +List all the bases of a certain user by the user's ID. + +### Example + +```php +setAccessToken('YOUR_TOKEN'); +$apiInstance = new SeaTable\Client\TeamAdmin\BasesApi( + new GuzzleHttp\Client(), + $config +); +$org_id = 1; // int | The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. +$user_id = 123456789f1e4c8d8e1c31415867317c@auth.local; // string | The unique `user_id` in the form ...@auth.local. This is not the email address of the user. +$page = 1; // int | The page number you want to start showing the entries. If no value is provided, 1 will be used. +$per_page = 25; // int | The number of results that should be returned. If no value is provided, 25 results will be returned. + +try { + $result = $apiInstance->listUsersBases($org_id, $user_id, $page, $per_page); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling BasesApi->listUsersBases: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **org_id** | **int**| The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. | | +| **user_id** | **string**| The unique `user_id` in the form ...@auth.local. This is not the email address of the user. | | +| **page** | **int**| The page number you want to start showing the entries. If no value is provided, 1 will be used. | [optional] | +| **per_page** | **int**| The number of results that should be returned. If no value is provided, 25 results will be returned. | [optional] | + +### Return type + +**object** + +### Authorization + +AccountTokenAuth + + + + ## `restoreBaseFromTrash()` ```php diff --git a/docs/TeamAdmin/Api/InfoSettingsApi.md b/docs/TeamAdmin/Api/InfoSettingsApi.md index 09ca387d..4e44a842 100644 --- a/docs/TeamAdmin/Api/InfoSettingsApi.md +++ b/docs/TeamAdmin/Api/InfoSettingsApi.md @@ -4,12 +4,59 @@ All URIs are relative to https://cloud.seatable.io, except if the operation defi | Method | HTTP request | Description | | ------------- | ------------- | ------------- | +| [**deleteTeam()**](InfoSettingsApi.md#deleteTeam) | **DELETE** /api/v2.1/org/admin/ | Delete Team | | [**getTeamInfo()**](InfoSettingsApi.md#getTeamInfo) | **GET** /api/v2.1/org/admin/info/ | Get Team Info | | [**getTeamSettings()**](InfoSettingsApi.md#getTeamSettings) | **GET** /api/v2.1/org/admin/settings/ | Get Team Settings | | [**updateTeam()**](InfoSettingsApi.md#updateTeam) | **PUT** /api/v2.1/org/admin/info/ | Update Team | | [**updateTeamSettings()**](InfoSettingsApi.md#updateTeamSettings) | **PUT** /api/v2.1/org/admin/settings/ | Update Team Settings | +## `deleteTeam()` + +```php +deleteTeam(): object +``` + +Delete Team + +Delete a team (organization) with its ID. This will eliminate the team! However, this won't delete the team users - but all its members will become team-less users in the system. + +### Example + +```php +setAccessToken('YOUR_TOKEN'); +$apiInstance = new SeaTable\Client\TeamAdmin\InfoSettingsApi( + new GuzzleHttp\Client(), + $config +); + +try { + $result = $apiInstance->deleteTeam(); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling InfoSettingsApi->deleteTeam: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +**object** + +### Authorization + +AccountTokenAuth + + + + ## `getTeamInfo()` ```php diff --git a/docs/TeamAdmin/Api/SharingLinksApi.md b/docs/TeamAdmin/Api/SharingLinksApi.md index 3784b89b..f6dfb96b 100644 --- a/docs/TeamAdmin/Api/SharingLinksApi.md +++ b/docs/TeamAdmin/Api/SharingLinksApi.md @@ -9,6 +9,7 @@ All URIs are relative to https://cloud.seatable.io, except if the operation defi | [**deleteViewExternalLink()**](SharingLinksApi.md#deleteViewExternalLink) | **DELETE** /api/v2.1/org/{org_id}/admin/view-external-links/{view_external_link_token}/ | Delete View External Link | | [**listBaseExternalLinks()**](SharingLinksApi.md#listBaseExternalLinks) | **GET** /api/v2.1/org/{org_id}/admin/external-links/ | List Base External Links | | [**listInviteLinks()**](SharingLinksApi.md#listInviteLinks) | **GET** /api/v2.1/org/{org_id}/admin/invite-links/ | List Invite Links | +| [**listShares()**](SharingLinksApi.md#listShares) | **GET** /api/v2.1/org/{org_id}/admin/shares/ | List Shares | | [**listViewExternalLinks()**](SharingLinksApi.md#listViewExternalLinks) | **GET** /api/v2.1/org/{org_id}/admin/view-external-links/ | List View External Links | | [**updateInviteLink()**](SharingLinksApi.md#updateInviteLink) | **PUT** /api/v2.1/org/{org_id}/admin/invite-links/{invite_link_token}/ | Update Invite Link | @@ -268,6 +269,55 @@ AccountTokenAuth +## `listShares()` + +```php +listShares($org_id): object +``` + +List Shares + +List all shares inside the given team/organization. This includes the following: - Bases shared to individual users - Bases shared to groups - Views shared to individual users - Views shared to groups + +### Example + +```php +setAccessToken('YOUR_TOKEN'); +$apiInstance = new SeaTable\Client\TeamAdmin\SharingLinksApi( + new GuzzleHttp\Client(), + $config +); +$org_id = 1; // int | The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. + +try { + $result = $apiInstance->listShares($org_id); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling SharingLinksApi->listShares: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **org_id** | **int**| The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. | | + +### Return type + +**object** + +### Authorization + +AccountTokenAuth + + + + ## `listViewExternalLinks()` ```php diff --git a/docs/TeamAdmin/Api/StatisticsApi.md b/docs/TeamAdmin/Api/StatisticsApi.md new file mode 100644 index 00000000..464f40f5 --- /dev/null +++ b/docs/TeamAdmin/Api/StatisticsApi.md @@ -0,0 +1,359 @@ +# SeaTable\Client\StatisticsApi + +All URIs are relative to https://cloud.seatable.io, except if the operation defines another base path. + +| Method | HTTP request | Description | +| ------------- | ------------- | ------------- | +| [**getAdminLogStatisticsByDay()**](StatisticsApi.md#getAdminLogStatisticsByDay) | **GET** /api/v2.1/org/{org_id}/admin/statistics/admin-logs/by-day/ | Admin Logs (by Day) | +| [**getAutomationLogStatisticsByBase()**](StatisticsApi.md#getAutomationLogStatisticsByBase) | **GET** /api/v2.1/org/{org_id}/admin/statistics/automation-logs/by-base/ | Automation Logs (by Base) | +| [**getAutomationLogStatisticsByDay()**](StatisticsApi.md#getAutomationLogStatisticsByDay) | **GET** /api/v2.1/org/{org_id}/admin/statistics/automation-logs/by-day/ | Automation Logs (by Day) | +| [**getLoginLogStatisticsByDay()**](StatisticsApi.md#getLoginLogStatisticsByDay) | **GET** /api/v2.1/org/{org_id}/admin/statistics/login-logs/by-day/ | Login Logs (by Day) | +| [**getPythonRunStatisticsByBase()**](StatisticsApi.md#getPythonRunStatisticsByBase) | **GET** /api/v2.1/org/{org_id}/admin/statistics/python-runs/by-base/ | Python Runs (by Base) | +| [**getPythonRunStatisticsByDay()**](StatisticsApi.md#getPythonRunStatisticsByDay) | **GET** /api/v2.1/org/{org_id}/admin/statistics/python-runs/by-day/ | Python Runs (by Day) | + + +## `getAdminLogStatisticsByDay()` + +```php +getAdminLogStatisticsByDay($org_id, $start, $end, $page, $per_page): object +``` + +Admin Logs (by Day) + +Returns statistics about admin logs grouped by day. + +### Example + +```php +setAccessToken('YOUR_TOKEN'); +$apiInstance = new SeaTable\Client\TeamAdmin\StatisticsApi( + new GuzzleHttp\Client(), + $config +); +$org_id = 1; // int | The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. +$start = 2025-11-01T06:00:00+01:00; // \DateTime | Start date in ISO format. +$end = 2025-11-30T18:00:00+01:00; // \DateTime | End date in ISO format. +$page = 1; // int | The page number you want to start showing the entries. If no value is provided, 1 will be used. +$per_page = 25; // int | The number of results that should be returned. If no value is provided, 25 results will be returned. + +try { + $result = $apiInstance->getAdminLogStatisticsByDay($org_id, $start, $end, $page, $per_page); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling StatisticsApi->getAdminLogStatisticsByDay: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **org_id** | **int**| The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. | | +| **start** | **\DateTime**| Start date in ISO format. | [optional] | +| **end** | **\DateTime**| End date in ISO format. | [optional] | +| **page** | **int**| The page number you want to start showing the entries. If no value is provided, 1 will be used. | [optional] | +| **per_page** | **int**| The number of results that should be returned. If no value is provided, 25 results will be returned. | [optional] | + +### Return type + +**object** + +### Authorization + +AccountTokenAuth + + + + +## `getAutomationLogStatisticsByBase()` + +```php +getAutomationLogStatisticsByBase($org_id, $start, $end, $page, $per_page): object +``` + +Automation Logs (by Base) + +Returns statistics about automation logs grouped by base. + +### Example + +```php +setAccessToken('YOUR_TOKEN'); +$apiInstance = new SeaTable\Client\TeamAdmin\StatisticsApi( + new GuzzleHttp\Client(), + $config +); +$org_id = 1; // int | The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. +$start = 2025-11-01T06:00:00+01:00; // \DateTime | Start date in ISO format. +$end = 2025-11-30T18:00:00+01:00; // \DateTime | End date in ISO format. +$page = 1; // int | The page number you want to start showing the entries. If no value is provided, 1 will be used. +$per_page = 25; // int | The number of results that should be returned. If no value is provided, 25 results will be returned. + +try { + $result = $apiInstance->getAutomationLogStatisticsByBase($org_id, $start, $end, $page, $per_page); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling StatisticsApi->getAutomationLogStatisticsByBase: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **org_id** | **int**| The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. | | +| **start** | **\DateTime**| Start date in ISO format. | [optional] | +| **end** | **\DateTime**| End date in ISO format. | [optional] | +| **page** | **int**| The page number you want to start showing the entries. If no value is provided, 1 will be used. | [optional] | +| **per_page** | **int**| The number of results that should be returned. If no value is provided, 25 results will be returned. | [optional] | + +### Return type + +**object** + +### Authorization + +AccountTokenAuth + + + + +## `getAutomationLogStatisticsByDay()` + +```php +getAutomationLogStatisticsByDay($org_id, $dtable_uuid, $start, $end, $page, $per_page): object +``` + +Automation Logs (by Day) + +Returns statistics about automation logs grouped by day. + +### Example + +```php +setAccessToken('YOUR_TOKEN'); +$apiInstance = new SeaTable\Client\TeamAdmin\StatisticsApi( + new GuzzleHttp\Client(), + $config +); +$org_id = 1; // int | The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. +$dtable_uuid = 5c264e76-0e5a-448a-9f34-580b551364ca; // string | The unique identifier of a base. +$start = 2025-11-01T06:00:00+01:00; // \DateTime | Start date in ISO format. +$end = 2025-11-30T18:00:00+01:00; // \DateTime | End date in ISO format. +$page = 1; // int | The page number you want to start showing the entries. If no value is provided, 1 will be used. +$per_page = 25; // int | The number of results that should be returned. If no value is provided, 25 results will be returned. + +try { + $result = $apiInstance->getAutomationLogStatisticsByDay($org_id, $dtable_uuid, $start, $end, $page, $per_page); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling StatisticsApi->getAutomationLogStatisticsByDay: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **org_id** | **int**| The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. | | +| **dtable_uuid** | **string**| The unique identifier of a base. | [optional] | +| **start** | **\DateTime**| Start date in ISO format. | [optional] | +| **end** | **\DateTime**| End date in ISO format. | [optional] | +| **page** | **int**| The page number you want to start showing the entries. If no value is provided, 1 will be used. | [optional] | +| **per_page** | **int**| The number of results that should be returned. If no value is provided, 25 results will be returned. | [optional] | + +### Return type + +**object** + +### Authorization + +AccountTokenAuth + + + + +## `getLoginLogStatisticsByDay()` + +```php +getLoginLogStatisticsByDay($org_id, $start, $end, $page, $per_page): object +``` + +Login Logs (by Day) + +Returns statistics about login logs grouped by day. + +### Example + +```php +setAccessToken('YOUR_TOKEN'); +$apiInstance = new SeaTable\Client\TeamAdmin\StatisticsApi( + new GuzzleHttp\Client(), + $config +); +$org_id = 1; // int | The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. +$start = 2025-11-01T06:00:00+01:00; // \DateTime | Start date in ISO format. +$end = 2025-11-30T18:00:00+01:00; // \DateTime | End date in ISO format. +$page = 1; // int | The page number you want to start showing the entries. If no value is provided, 1 will be used. +$per_page = 25; // int | The number of results that should be returned. If no value is provided, 25 results will be returned. + +try { + $result = $apiInstance->getLoginLogStatisticsByDay($org_id, $start, $end, $page, $per_page); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling StatisticsApi->getLoginLogStatisticsByDay: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **org_id** | **int**| The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. | | +| **start** | **\DateTime**| Start date in ISO format. | [optional] | +| **end** | **\DateTime**| End date in ISO format. | [optional] | +| **page** | **int**| The page number you want to start showing the entries. If no value is provided, 1 will be used. | [optional] | +| **per_page** | **int**| The number of results that should be returned. If no value is provided, 25 results will be returned. | [optional] | + +### Return type + +**object** + +### Authorization + +AccountTokenAuth + + + + +## `getPythonRunStatisticsByBase()` + +```php +getPythonRunStatisticsByBase($org_id, $start, $end, $page, $per_page): object +``` + +Python Runs (by Base) + +Returns statistics about python runs grouped by base. + +### Example + +```php +setAccessToken('YOUR_TOKEN'); +$apiInstance = new SeaTable\Client\TeamAdmin\StatisticsApi( + new GuzzleHttp\Client(), + $config +); +$org_id = 1; // int | The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. +$start = 2025-11-01T06:00:00+01:00; // \DateTime | Start date in ISO format. +$end = 2025-11-30T18:00:00+01:00; // \DateTime | End date in ISO format. +$page = 1; // int | The page number you want to start showing the entries. If no value is provided, 1 will be used. +$per_page = 25; // int | The number of results that should be returned. If no value is provided, 25 results will be returned. + +try { + $result = $apiInstance->getPythonRunStatisticsByBase($org_id, $start, $end, $page, $per_page); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling StatisticsApi->getPythonRunStatisticsByBase: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **org_id** | **int**| The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. | | +| **start** | **\DateTime**| Start date in ISO format. | [optional] | +| **end** | **\DateTime**| End date in ISO format. | [optional] | +| **page** | **int**| The page number you want to start showing the entries. If no value is provided, 1 will be used. | [optional] | +| **per_page** | **int**| The number of results that should be returned. If no value is provided, 25 results will be returned. | [optional] | + +### Return type + +**object** + +### Authorization + +AccountTokenAuth + + + + +## `getPythonRunStatisticsByDay()` + +```php +getPythonRunStatisticsByDay($org_id, $dtable_uuid, $start, $end, $page, $per_page): object +``` + +Python Runs (by Day) + +Returns statistics about python runs grouped by day. + +### Example + +```php +setAccessToken('YOUR_TOKEN'); +$apiInstance = new SeaTable\Client\TeamAdmin\StatisticsApi( + new GuzzleHttp\Client(), + $config +); +$org_id = 1; // int | The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. +$dtable_uuid = 5c264e76-0e5a-448a-9f34-580b551364ca; // string | The unique identifier of a base. +$start = 2025-11-01T06:00:00+01:00; // \DateTime | Start date in ISO format. +$end = 2025-11-30T18:00:00+01:00; // \DateTime | End date in ISO format. +$page = 1; // int | The page number you want to start showing the entries. If no value is provided, 1 will be used. +$per_page = 25; // int | The number of results that should be returned. If no value is provided, 25 results will be returned. + +try { + $result = $apiInstance->getPythonRunStatisticsByDay($org_id, $dtable_uuid, $start, $end, $page, $per_page); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling StatisticsApi->getPythonRunStatisticsByDay: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **org_id** | **int**| The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. | | +| **dtable_uuid** | **string**| The unique identifier of a base. | [optional] | +| **start** | **\DateTime**| Start date in ISO format. | [optional] | +| **end** | **\DateTime**| End date in ISO format. | [optional] | +| **page** | **int**| The page number you want to start showing the entries. If no value is provided, 1 will be used. | [optional] | +| **per_page** | **int**| The number of results that should be returned. If no value is provided, 25 results will be returned. | [optional] | + +### Return type + +**object** + +### Authorization + +AccountTokenAuth + + + diff --git a/generate_api.sh b/generate_api.sh index 12048715..8f24dd6c 100755 --- a/generate_api.sh +++ b/generate_api.sh @@ -11,7 +11,7 @@ rm -r ./test/* rm -r ./docs/* LOG_LEVEL="warn" -TAG="v7.15.0" +TAG="v7.18.0" # generate sysadmin docker run --rm \ diff --git a/lib/Auth/APITokenApi.php b/lib/Auth/APITokenApi.php index 916f63dc..b12bd355 100644 --- a/lib/Auth/APITokenApi.php +++ b/lib/Auth/APITokenApi.php @@ -1723,6 +1723,14 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } diff --git a/lib/Auth/AccessToken.php b/lib/Auth/AccessToken.php index af8f8247..f125b6e9 100644 --- a/lib/Auth/AccessToken.php +++ b/lib/Auth/AccessToken.php @@ -352,11 +352,11 @@ public function setDtableUuid($dtable_uuid) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -364,12 +364,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -394,11 +394,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Auth/AccountToken.php b/lib/Auth/AccountToken.php index 5c18e3d3..cd286b00 100644 --- a/lib/Auth/AccountToken.php +++ b/lib/Auth/AccountToken.php @@ -333,11 +333,11 @@ public function setToken($token) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -345,12 +345,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -375,11 +375,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Auth/AccountTokenApi.php b/lib/Auth/AccountTokenApi.php index bd723232..ba9e56c3 100644 --- a/lib/Auth/AccountTokenApi.php +++ b/lib/Auth/AccountTokenApi.php @@ -435,6 +435,14 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } diff --git a/lib/Auth/ApiToken.php b/lib/Auth/ApiToken.php index f4052463..ed8db06f 100644 --- a/lib/Auth/ApiToken.php +++ b/lib/Auth/ApiToken.php @@ -539,11 +539,11 @@ public function setPermission($permission) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -551,12 +551,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -581,11 +581,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Auth/ApiTokenList.php b/lib/Auth/ApiTokenList.php index ed142aea..02e5966a 100644 --- a/lib/Auth/ApiTokenList.php +++ b/lib/Auth/ApiTokenList.php @@ -318,11 +318,11 @@ public function setApiTokens($api_tokens) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -330,12 +330,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -360,11 +360,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Auth/ApiTokenTemporary.php b/lib/Auth/ApiTokenTemporary.php index ea4ff6d8..e9734e38 100644 --- a/lib/Auth/ApiTokenTemporary.php +++ b/lib/Auth/ApiTokenTemporary.php @@ -318,11 +318,11 @@ public function setApiToken($api_token) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -330,12 +330,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -360,11 +360,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Auth/BaseTokenApi.php b/lib/Auth/BaseTokenApi.php index c4d3c136..d7c2ebc5 100644 --- a/lib/Auth/BaseTokenApi.php +++ b/lib/Auth/BaseTokenApi.php @@ -1005,6 +1005,14 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } diff --git a/lib/Base/ActivitiesLogsApi.php b/lib/Base/ActivitiesLogsApi.php index f03e133b..4528b5f1 100644 --- a/lib/Base/ActivitiesLogsApi.php +++ b/lib/Base/ActivitiesLogsApi.php @@ -771,6 +771,14 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } diff --git a/lib/Base/AddSingleMultipleSelectOptions.php b/lib/Base/AddSingleMultipleSelectOptions.php index 73b7c08a..c27fde37 100644 --- a/lib/Base/AddSingleMultipleSelectOptions.php +++ b/lib/Base/AddSingleMultipleSelectOptions.php @@ -394,11 +394,11 @@ public function setOptions($options) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -406,12 +406,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -436,11 +436,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/AddSingleMultipleSelectOptionsOptionsInner.php b/lib/Base/AddSingleMultipleSelectOptionsOptionsInner.php index 03fe293a..8049fa37 100644 --- a/lib/Base/AddSingleMultipleSelectOptionsOptionsInner.php +++ b/lib/Base/AddSingleMultipleSelectOptionsOptionsInner.php @@ -385,11 +385,11 @@ public function setTextColor($text_color) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -397,12 +397,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -427,11 +427,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/AppendColumnsRequest.php b/lib/Base/AppendColumnsRequest.php index 5abcda15..4f03170e 100644 --- a/lib/Base/AppendColumnsRequest.php +++ b/lib/Base/AppendColumnsRequest.php @@ -351,11 +351,11 @@ public function setColumns($columns) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -363,12 +363,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -393,11 +393,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/AppendColumnsRequestColumnsInner.php b/lib/Base/AppendColumnsRequestColumnsInner.php index 1c2ea5be..66e520fa 100644 --- a/lib/Base/AppendColumnsRequestColumnsInner.php +++ b/lib/Base/AppendColumnsRequestColumnsInner.php @@ -469,11 +469,11 @@ public function setColumnData($column_data) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -481,12 +481,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -511,11 +511,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/AppendRow.php b/lib/Base/AppendRow.php index fd2a341d..c6c9cda3 100644 --- a/lib/Base/AppendRow.php +++ b/lib/Base/AppendRow.php @@ -392,11 +392,11 @@ public function setApplyDefault($apply_default) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -404,12 +404,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -434,11 +434,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/AppendRows.php b/lib/Base/AppendRows.php index 7c0a810b..7153e0c0 100644 --- a/lib/Base/AppendRows.php +++ b/lib/Base/AppendRows.php @@ -392,11 +392,11 @@ public function setApplyDefault($apply_default) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -404,12 +404,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -434,11 +434,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/ArchiveView.php b/lib/Base/ArchiveView.php index 06fdbdc6..469166a4 100644 --- a/lib/Base/ArchiveView.php +++ b/lib/Base/ArchiveView.php @@ -357,11 +357,11 @@ public function setViewName($view_name) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -369,12 +369,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -399,11 +399,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/AutonumberColumn.php b/lib/Base/AutonumberColumn.php index 2fd80513..fa699a0e 100644 --- a/lib/Base/AutonumberColumn.php +++ b/lib/Base/AutonumberColumn.php @@ -467,11 +467,11 @@ public function setColumnData($column_data) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -479,12 +479,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -509,11 +509,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/AutonumberColumnFormat.php b/lib/Base/AutonumberColumnFormat.php index 72ab8fb6..790a5e03 100644 --- a/lib/Base/AutonumberColumnFormat.php +++ b/lib/Base/AutonumberColumnFormat.php @@ -321,11 +321,11 @@ public function setFormat($format) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -333,12 +333,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -363,11 +363,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/AutonumberColumnWithTableName.php b/lib/Base/AutonumberColumnWithTableName.php index 4dce9a5b..57545b07 100644 --- a/lib/Base/AutonumberColumnWithTableName.php +++ b/lib/Base/AutonumberColumnWithTableName.php @@ -503,11 +503,11 @@ public function setColumnData($column_data) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -515,12 +515,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -545,11 +545,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/Base.php b/lib/Base/Base.php index 72afbeee..752b5936 100644 --- a/lib/Base/Base.php +++ b/lib/Base/Base.php @@ -565,11 +565,11 @@ public function setIdRowMap($id_row_map) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -577,12 +577,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -607,11 +607,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/BaseInfoApi.php b/lib/Base/BaseInfoApi.php index 1ab244c1..2888bde5 100644 --- a/lib/Base/BaseInfoApi.php +++ b/lib/Base/BaseInfoApi.php @@ -693,6 +693,14 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } diff --git a/lib/Base/BigDataApi.php b/lib/Base/BigDataApi.php index f080eb45..c961a55e 100644 --- a/lib/Base/BigDataApi.php +++ b/lib/Base/BigDataApi.php @@ -1575,6 +1575,14 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } diff --git a/lib/Base/ButtonColumn.php b/lib/Base/ButtonColumn.php index 0321fda9..bdd01bd1 100644 --- a/lib/Base/ButtonColumn.php +++ b/lib/Base/ButtonColumn.php @@ -470,11 +470,11 @@ public function setColumnData($column_data) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -482,12 +482,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -512,11 +512,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/ButtonColumnFormat.php b/lib/Base/ButtonColumnFormat.php index 82419399..c90bc3e1 100644 --- a/lib/Base/ButtonColumnFormat.php +++ b/lib/Base/ButtonColumnFormat.php @@ -546,11 +546,11 @@ public function setSelectedColumns($selected_columns) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -558,12 +558,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -588,11 +588,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/ButtonColumnFormatSelectedColumnsInner.php b/lib/Base/ButtonColumnFormatSelectedColumnsInner.php index 1cd9eb0c..3c1b01c1 100644 --- a/lib/Base/ButtonColumnFormatSelectedColumnsInner.php +++ b/lib/Base/ButtonColumnFormatSelectedColumnsInner.php @@ -351,11 +351,11 @@ public function setValue($value) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -363,12 +363,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -393,11 +393,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/ButtonColumnWithTableName.php b/lib/Base/ButtonColumnWithTableName.php index 13ca9fd3..49e2ae0d 100644 --- a/lib/Base/ButtonColumnWithTableName.php +++ b/lib/Base/ButtonColumnWithTableName.php @@ -506,11 +506,11 @@ public function setColumnData($column_data) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -518,12 +518,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -548,11 +548,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/CheckboxColumn.php b/lib/Base/CheckboxColumn.php index 28cff9bc..4a53505d 100644 --- a/lib/Base/CheckboxColumn.php +++ b/lib/Base/CheckboxColumn.php @@ -433,11 +433,11 @@ public function setAnchorColumn($anchor_column) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -445,12 +445,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -475,11 +475,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/CheckboxColumnWithTableName.php b/lib/Base/CheckboxColumnWithTableName.php index 04d46a59..54f27831 100644 --- a/lib/Base/CheckboxColumnWithTableName.php +++ b/lib/Base/CheckboxColumnWithTableName.php @@ -469,11 +469,11 @@ public function setAnchorColumn($anchor_column) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -481,12 +481,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -511,11 +511,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/CollaboratorColumn.php b/lib/Base/CollaboratorColumn.php index 3533877f..cb23ca4e 100644 --- a/lib/Base/CollaboratorColumn.php +++ b/lib/Base/CollaboratorColumn.php @@ -433,11 +433,11 @@ public function setAnchorColumn($anchor_column) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -445,12 +445,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -475,11 +475,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/CollaboratorColumnWithTableName.php b/lib/Base/CollaboratorColumnWithTableName.php index 44537f76..1464750c 100644 --- a/lib/Base/CollaboratorColumnWithTableName.php +++ b/lib/Base/CollaboratorColumnWithTableName.php @@ -469,11 +469,11 @@ public function setAnchorColumn($anchor_column) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -481,12 +481,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -511,11 +511,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/ColumnsApi.php b/lib/Base/ColumnsApi.php index 2460cc88..2467c016 100644 --- a/lib/Base/ColumnsApi.php +++ b/lib/Base/ColumnsApi.php @@ -2779,6 +2779,14 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } diff --git a/lib/Base/CreateRowComment.php b/lib/Base/CreateRowComment.php index 09b1ba98..53e003d9 100644 --- a/lib/Base/CreateRowComment.php +++ b/lib/Base/CreateRowComment.php @@ -317,11 +317,11 @@ public function setComment($comment) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -329,12 +329,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -359,11 +359,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/CreateTableRequest.php b/lib/Base/CreateTableRequest.php index db3ca062..bcd36746 100644 --- a/lib/Base/CreateTableRequest.php +++ b/lib/Base/CreateTableRequest.php @@ -357,11 +357,11 @@ public function setColumns($columns) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -369,12 +369,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -399,11 +399,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/CreateTableRequestColumnsInner.php b/lib/Base/CreateTableRequestColumnsInner.php index f486cc9c..8087a9a5 100644 --- a/lib/Base/CreateTableRequestColumnsInner.php +++ b/lib/Base/CreateTableRequestColumnsInner.php @@ -469,11 +469,11 @@ public function setColumnData($column_data) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -481,12 +481,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -511,11 +511,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/CreatorColumn.php b/lib/Base/CreatorColumn.php index 19c5b17d..3b1024f8 100644 --- a/lib/Base/CreatorColumn.php +++ b/lib/Base/CreatorColumn.php @@ -433,11 +433,11 @@ public function setAnchorColumn($anchor_column) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -445,12 +445,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -475,11 +475,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/CreatorColumnWithTableName.php b/lib/Base/CreatorColumnWithTableName.php index b599bd1a..93d8a95c 100644 --- a/lib/Base/CreatorColumnWithTableName.php +++ b/lib/Base/CreatorColumnWithTableName.php @@ -469,11 +469,11 @@ public function setAnchorColumn($anchor_column) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -481,12 +481,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -511,11 +511,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/CtimeColumn.php b/lib/Base/CtimeColumn.php index db72b586..2b6e515d 100644 --- a/lib/Base/CtimeColumn.php +++ b/lib/Base/CtimeColumn.php @@ -433,11 +433,11 @@ public function setAnchorColumn($anchor_column) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -445,12 +445,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -475,11 +475,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/CtimeColumnWithTableName.php b/lib/Base/CtimeColumnWithTableName.php index a44b0c5f..34883d2c 100644 --- a/lib/Base/CtimeColumnWithTableName.php +++ b/lib/Base/CtimeColumnWithTableName.php @@ -469,11 +469,11 @@ public function setAnchorColumn($anchor_column) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -481,12 +481,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -511,11 +511,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/DateColumn.php b/lib/Base/DateColumn.php index e81f1d0a..4f02d8c2 100644 --- a/lib/Base/DateColumn.php +++ b/lib/Base/DateColumn.php @@ -467,11 +467,11 @@ public function setColumnData($column_data) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -479,12 +479,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -509,11 +509,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/DateColumnFormat.php b/lib/Base/DateColumnFormat.php index d1a3f116..94952c31 100644 --- a/lib/Base/DateColumnFormat.php +++ b/lib/Base/DateColumnFormat.php @@ -366,11 +366,11 @@ public function setFormat($format) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -378,12 +378,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -408,11 +408,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/DateColumnWithTableName.php b/lib/Base/DateColumnWithTableName.php index 99956d01..33ddf110 100644 --- a/lib/Base/DateColumnWithTableName.php +++ b/lib/Base/DateColumnWithTableName.php @@ -503,11 +503,11 @@ public function setColumnData($column_data) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -515,12 +515,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -545,11 +545,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/DeleteColumn.php b/lib/Base/DeleteColumn.php index 99f0c1af..c30052a6 100644 --- a/lib/Base/DeleteColumn.php +++ b/lib/Base/DeleteColumn.php @@ -366,11 +366,11 @@ public function setColumn($column) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -378,12 +378,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -408,11 +408,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/DeleteRow.php b/lib/Base/DeleteRow.php index 3e797808..aecf714c 100644 --- a/lib/Base/DeleteRow.php +++ b/lib/Base/DeleteRow.php @@ -367,11 +367,11 @@ public function setRowId($row_id) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -379,12 +379,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -409,11 +409,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/DeleteRows.php b/lib/Base/DeleteRows.php index f319769d..502c1fdd 100644 --- a/lib/Base/DeleteRows.php +++ b/lib/Base/DeleteRows.php @@ -358,11 +358,11 @@ public function setRowIds($row_ids) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -370,12 +370,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -400,11 +400,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/DeleteSelectOptions.php b/lib/Base/DeleteSelectOptions.php index c5c75ac7..aa27efdb 100644 --- a/lib/Base/DeleteSelectOptions.php +++ b/lib/Base/DeleteSelectOptions.php @@ -403,11 +403,11 @@ public function setOptionNames($option_names) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -415,12 +415,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -445,11 +445,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/DeleteTable.php b/lib/Base/DeleteTable.php index a1991e50..4122cb06 100644 --- a/lib/Base/DeleteTable.php +++ b/lib/Base/DeleteTable.php @@ -321,11 +321,11 @@ public function setTableName($table_name) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -333,12 +333,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -363,11 +363,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/DuplicateTable.php b/lib/Base/DuplicateTable.php index 10bcf98f..f3b1d5f4 100644 --- a/lib/Base/DuplicateTable.php +++ b/lib/Base/DuplicateTable.php @@ -357,11 +357,11 @@ public function setIsDuplicateRecords($is_duplicate_records) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -369,12 +369,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -399,11 +399,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/DurationColumn.php b/lib/Base/DurationColumn.php index fe081abb..e7f82445 100644 --- a/lib/Base/DurationColumn.php +++ b/lib/Base/DurationColumn.php @@ -467,11 +467,11 @@ public function setColumnData($column_data) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -479,12 +479,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -509,11 +509,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/DurationColumnFormat.php b/lib/Base/DurationColumnFormat.php index c8e7afa4..cac5cb4f 100644 --- a/lib/Base/DurationColumnFormat.php +++ b/lib/Base/DurationColumnFormat.php @@ -420,11 +420,11 @@ public function setDurationFormat($duration_format) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -432,12 +432,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -462,11 +462,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/DurationColumnWithTableName.php b/lib/Base/DurationColumnWithTableName.php index b519b0c2..7aa4aa19 100644 --- a/lib/Base/DurationColumnWithTableName.php +++ b/lib/Base/DurationColumnWithTableName.php @@ -503,11 +503,11 @@ public function setColumnData($column_data) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -515,12 +515,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -545,11 +545,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/EmailColumn.php b/lib/Base/EmailColumn.php index 8ee2a714..7a10b33b 100644 --- a/lib/Base/EmailColumn.php +++ b/lib/Base/EmailColumn.php @@ -433,11 +433,11 @@ public function setAnchorColumn($anchor_column) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -445,12 +445,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -475,11 +475,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/EmailColumnWithTableName.php b/lib/Base/EmailColumnWithTableName.php index ed4cc1a1..04b177a4 100644 --- a/lib/Base/EmailColumnWithTableName.php +++ b/lib/Base/EmailColumnWithTableName.php @@ -469,11 +469,11 @@ public function setAnchorColumn($anchor_column) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -481,12 +481,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -511,11 +511,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/FileColumn.php b/lib/Base/FileColumn.php index c256ac66..ff9c2313 100644 --- a/lib/Base/FileColumn.php +++ b/lib/Base/FileColumn.php @@ -433,11 +433,11 @@ public function setAnchorColumn($anchor_column) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -445,12 +445,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -475,11 +475,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/FileColumnWithTableName.php b/lib/Base/FileColumnWithTableName.php index 86ec819e..36bf8084 100644 --- a/lib/Base/FileColumnWithTableName.php +++ b/lib/Base/FileColumnWithTableName.php @@ -469,11 +469,11 @@ public function setAnchorColumn($anchor_column) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -481,12 +481,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -511,11 +511,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/FiltersAutomatic.php b/lib/Base/FiltersAutomatic.php index ab19fd0d..217cb52d 100644 --- a/lib/Base/FiltersAutomatic.php +++ b/lib/Base/FiltersAutomatic.php @@ -385,11 +385,11 @@ public function setFilterTerm($filter_term) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -397,12 +397,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -427,11 +427,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/FiltersCheckbox.php b/lib/Base/FiltersCheckbox.php index 8fa782e6..628831a6 100644 --- a/lib/Base/FiltersCheckbox.php +++ b/lib/Base/FiltersCheckbox.php @@ -385,11 +385,11 @@ public function setFilterTerm($filter_term) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -397,12 +397,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -427,11 +427,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/FiltersCollaborator.php b/lib/Base/FiltersCollaborator.php index d7956a8d..0311eeab 100644 --- a/lib/Base/FiltersCollaborator.php +++ b/lib/Base/FiltersCollaborator.php @@ -385,11 +385,11 @@ public function setFilterTerm($filter_term) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -397,12 +397,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -427,11 +427,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/FiltersCreated.php b/lib/Base/FiltersCreated.php index cdffa966..6fa5a637 100644 --- a/lib/Base/FiltersCreated.php +++ b/lib/Base/FiltersCreated.php @@ -419,11 +419,11 @@ public function setFilterTermModifier($filter_term_modifier) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -431,12 +431,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -461,11 +461,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/FiltersCreator.php b/lib/Base/FiltersCreator.php index 017cb159..f2e5f3f7 100644 --- a/lib/Base/FiltersCreator.php +++ b/lib/Base/FiltersCreator.php @@ -385,11 +385,11 @@ public function setFilterTerm($filter_term) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -397,12 +397,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -427,11 +427,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/FiltersDate.php b/lib/Base/FiltersDate.php index 6da3135c..a1ec7961 100644 --- a/lib/Base/FiltersDate.php +++ b/lib/Base/FiltersDate.php @@ -428,11 +428,11 @@ public function setFilterTermModifier($filter_term_modifier) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -440,12 +440,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -470,11 +470,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/FiltersDateTime.php b/lib/Base/FiltersDateTime.php index eb832751..393f0187 100644 --- a/lib/Base/FiltersDateTime.php +++ b/lib/Base/FiltersDateTime.php @@ -419,11 +419,11 @@ public function setFilterTermModifier($filter_term_modifier) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -431,12 +431,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -461,11 +461,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/FiltersDuration.php b/lib/Base/FiltersDuration.php index ed861842..109989fa 100644 --- a/lib/Base/FiltersDuration.php +++ b/lib/Base/FiltersDuration.php @@ -385,11 +385,11 @@ public function setFilterTerm($filter_term) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -397,12 +397,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -427,11 +427,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/FiltersEditor.php b/lib/Base/FiltersEditor.php index bc146972..2cece4ca 100644 --- a/lib/Base/FiltersEditor.php +++ b/lib/Base/FiltersEditor.php @@ -385,11 +385,11 @@ public function setFilterTerm($filter_term) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -397,12 +397,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -427,11 +427,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/FiltersEmail.php b/lib/Base/FiltersEmail.php index dbaddda9..b8966c3d 100644 --- a/lib/Base/FiltersEmail.php +++ b/lib/Base/FiltersEmail.php @@ -385,11 +385,11 @@ public function setFilterTerm($filter_term) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -397,12 +397,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -427,11 +427,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/FiltersFile.php b/lib/Base/FiltersFile.php index 682792fc..15991391 100644 --- a/lib/Base/FiltersFile.php +++ b/lib/Base/FiltersFile.php @@ -385,11 +385,11 @@ public function setFilterTerm($filter_term) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -397,12 +397,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -427,11 +427,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/FiltersFormula.php b/lib/Base/FiltersFormula.php index efd87904..c09488b7 100644 --- a/lib/Base/FiltersFormula.php +++ b/lib/Base/FiltersFormula.php @@ -385,11 +385,11 @@ public function setFilterTerm($filter_term) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -397,12 +397,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -427,11 +427,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/FiltersGeolocation.php b/lib/Base/FiltersGeolocation.php index 25dfc685..86b1e1f1 100644 --- a/lib/Base/FiltersGeolocation.php +++ b/lib/Base/FiltersGeolocation.php @@ -385,11 +385,11 @@ public function setFilterTerm($filter_term) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -397,12 +397,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -427,11 +427,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/FiltersImage.php b/lib/Base/FiltersImage.php index 8318ca47..be6f1fe5 100644 --- a/lib/Base/FiltersImage.php +++ b/lib/Base/FiltersImage.php @@ -385,11 +385,11 @@ public function setFilterTerm($filter_term) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -397,12 +397,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -427,11 +427,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/FiltersLink.php b/lib/Base/FiltersLink.php index ad2e5b15..58c55421 100644 --- a/lib/Base/FiltersLink.php +++ b/lib/Base/FiltersLink.php @@ -385,11 +385,11 @@ public function setFilterTerm($filter_term) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -397,12 +397,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -427,11 +427,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/FiltersLinkFormula.php b/lib/Base/FiltersLinkFormula.php index 55bd47c5..8159a967 100644 --- a/lib/Base/FiltersLinkFormula.php +++ b/lib/Base/FiltersLinkFormula.php @@ -385,11 +385,11 @@ public function setFilterTerm($filter_term) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -397,12 +397,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -427,11 +427,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/FiltersLongText.php b/lib/Base/FiltersLongText.php index b5266fb3..8eee1413 100644 --- a/lib/Base/FiltersLongText.php +++ b/lib/Base/FiltersLongText.php @@ -385,11 +385,11 @@ public function setFilterTerm($filter_term) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -397,12 +397,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -427,11 +427,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/FiltersModified.php b/lib/Base/FiltersModified.php index df1acb7f..67e4cfe6 100644 --- a/lib/Base/FiltersModified.php +++ b/lib/Base/FiltersModified.php @@ -419,11 +419,11 @@ public function setFilterTermModifier($filter_term_modifier) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -431,12 +431,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -461,11 +461,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/FiltersMultiSelect.php b/lib/Base/FiltersMultiSelect.php index d9405a3a..006e10a4 100644 --- a/lib/Base/FiltersMultiSelect.php +++ b/lib/Base/FiltersMultiSelect.php @@ -385,11 +385,11 @@ public function setFilterTerm($filter_term) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -397,12 +397,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -427,11 +427,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/FiltersNumber.php b/lib/Base/FiltersNumber.php index 455d8d7f..00f5f7d8 100644 --- a/lib/Base/FiltersNumber.php +++ b/lib/Base/FiltersNumber.php @@ -385,11 +385,11 @@ public function setFilterTerm($filter_term) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -397,12 +397,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -427,11 +427,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/FiltersPercentage.php b/lib/Base/FiltersPercentage.php index 501df440..862e1edf 100644 --- a/lib/Base/FiltersPercentage.php +++ b/lib/Base/FiltersPercentage.php @@ -385,11 +385,11 @@ public function setFilterTerm($filter_term) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -397,12 +397,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -427,11 +427,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/FiltersRating.php b/lib/Base/FiltersRating.php index 9e5fcd04..9a70ff21 100644 --- a/lib/Base/FiltersRating.php +++ b/lib/Base/FiltersRating.php @@ -385,11 +385,11 @@ public function setFilterTerm($filter_term) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -397,12 +397,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -427,11 +427,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/FiltersSingleSelect.php b/lib/Base/FiltersSingleSelect.php index 4eb77339..0f8727af 100644 --- a/lib/Base/FiltersSingleSelect.php +++ b/lib/Base/FiltersSingleSelect.php @@ -385,11 +385,11 @@ public function setFilterTerm($filter_term) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -397,12 +397,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -427,11 +427,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/FiltersText.php b/lib/Base/FiltersText.php index d266340d..9d4b66d0 100644 --- a/lib/Base/FiltersText.php +++ b/lib/Base/FiltersText.php @@ -385,11 +385,11 @@ public function setFilterTerm($filter_term) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -397,12 +397,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -427,11 +427,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/FiltersUrl.php b/lib/Base/FiltersUrl.php index 94f2a82f..ba0eba5e 100644 --- a/lib/Base/FiltersUrl.php +++ b/lib/Base/FiltersUrl.php @@ -385,11 +385,11 @@ public function setFilterTerm($filter_term) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -397,12 +397,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -427,11 +427,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/FormulaColumn.php b/lib/Base/FormulaColumn.php index 430e2719..4b2fdaaa 100644 --- a/lib/Base/FormulaColumn.php +++ b/lib/Base/FormulaColumn.php @@ -470,11 +470,11 @@ public function setColumnData($column_data) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -482,12 +482,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -512,11 +512,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/FormulaColumnFormat.php b/lib/Base/FormulaColumnFormat.php index 786e12dd..e66aa962 100644 --- a/lib/Base/FormulaColumnFormat.php +++ b/lib/Base/FormulaColumnFormat.php @@ -321,11 +321,11 @@ public function setFormula($formula) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -333,12 +333,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -363,11 +363,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/FormulaColumnWithTableName.php b/lib/Base/FormulaColumnWithTableName.php index 33872fdf..60e5cc11 100644 --- a/lib/Base/FormulaColumnWithTableName.php +++ b/lib/Base/FormulaColumnWithTableName.php @@ -506,11 +506,11 @@ public function setColumnData($column_data) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -518,12 +518,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -548,11 +548,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/FreezeUnfreezeColumn.php b/lib/Base/FreezeUnfreezeColumn.php index a556c857..3837f978 100644 --- a/lib/Base/FreezeUnfreezeColumn.php +++ b/lib/Base/FreezeUnfreezeColumn.php @@ -472,11 +472,11 @@ public function setFrozen($frozen) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -484,12 +484,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -514,11 +514,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/GenerateSnapshot.php b/lib/Base/GenerateSnapshot.php index aa5b2b62..08f46513 100644 --- a/lib/Base/GenerateSnapshot.php +++ b/lib/Base/GenerateSnapshot.php @@ -317,11 +317,11 @@ public function setDtableName($dtable_name) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -329,12 +329,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -359,11 +359,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/GeoColumnFormat.php b/lib/Base/GeoColumnFormat.php index 2a493895..ba679d8f 100644 --- a/lib/Base/GeoColumnFormat.php +++ b/lib/Base/GeoColumnFormat.php @@ -352,11 +352,11 @@ public function setGeoFormat($geo_format) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -364,12 +364,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -394,11 +394,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/GeolocationColumn.php b/lib/Base/GeolocationColumn.php index 1d72ffbb..4ac83d9b 100644 --- a/lib/Base/GeolocationColumn.php +++ b/lib/Base/GeolocationColumn.php @@ -467,11 +467,11 @@ public function setColumnData($column_data) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -479,12 +479,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -509,11 +509,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/GeolocationColumnWithTableName.php b/lib/Base/GeolocationColumnWithTableName.php index b6e7a7c0..e383e1ff 100644 --- a/lib/Base/GeolocationColumnWithTableName.php +++ b/lib/Base/GeolocationColumnWithTableName.php @@ -503,11 +503,11 @@ public function setColumnData($column_data) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -515,12 +515,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -545,11 +545,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/ImageColumn.php b/lib/Base/ImageColumn.php index 961ebb03..1719f08c 100644 --- a/lib/Base/ImageColumn.php +++ b/lib/Base/ImageColumn.php @@ -433,11 +433,11 @@ public function setAnchorColumn($anchor_column) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -445,12 +445,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -475,11 +475,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/ImageColumnWithTableName.php b/lib/Base/ImageColumnWithTableName.php index f31913fb..a4c4cc76 100644 --- a/lib/Base/ImageColumnWithTableName.php +++ b/lib/Base/ImageColumnWithTableName.php @@ -469,11 +469,11 @@ public function setAnchorColumn($anchor_column) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -481,12 +481,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -511,11 +511,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/InsertColumnRequest.php b/lib/Base/InsertColumnRequest.php index f5a7fbf5..6eef775f 100644 --- a/lib/Base/InsertColumnRequest.php +++ b/lib/Base/InsertColumnRequest.php @@ -506,11 +506,11 @@ public function setColumnData($column_data) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -518,12 +518,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -548,11 +548,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/InsertRow.php b/lib/Base/InsertRow.php index 8be3d8e3..6e9b0554 100644 --- a/lib/Base/InsertRow.php +++ b/lib/Base/InsertRow.php @@ -496,11 +496,11 @@ public function setApplyDefault($apply_default) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -508,12 +508,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -538,11 +538,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/InsertRowsIntoBigData.php b/lib/Base/InsertRowsIntoBigData.php index 951eb738..89438cb6 100644 --- a/lib/Base/InsertRowsIntoBigData.php +++ b/lib/Base/InsertRowsIntoBigData.php @@ -357,11 +357,11 @@ public function setRows($rows) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -369,12 +369,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -399,11 +399,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/LastModifierColumn.php b/lib/Base/LastModifierColumn.php index 4d69e43e..afb7838c 100644 --- a/lib/Base/LastModifierColumn.php +++ b/lib/Base/LastModifierColumn.php @@ -433,11 +433,11 @@ public function setAnchorColumn($anchor_column) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -445,12 +445,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -475,11 +475,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/LastModifierColumnWithTableName.php b/lib/Base/LastModifierColumnWithTableName.php index e3620e1d..19deb7f3 100644 --- a/lib/Base/LastModifierColumnWithTableName.php +++ b/lib/Base/LastModifierColumnWithTableName.php @@ -469,11 +469,11 @@ public function setAnchorColumn($anchor_column) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -481,12 +481,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -511,11 +511,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/LinkColumn.php b/lib/Base/LinkColumn.php index ac5f2e1e..767a1100 100644 --- a/lib/Base/LinkColumn.php +++ b/lib/Base/LinkColumn.php @@ -470,11 +470,11 @@ public function setColumnData($column_data) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -482,12 +482,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -512,11 +512,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/LinkColumnFormat.php b/lib/Base/LinkColumnFormat.php index ee1f54bb..39fd842f 100644 --- a/lib/Base/LinkColumnFormat.php +++ b/lib/Base/LinkColumnFormat.php @@ -358,11 +358,11 @@ public function setOtherTable($other_table) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -370,12 +370,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -400,11 +400,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/LinkColumnWithTableName.php b/lib/Base/LinkColumnWithTableName.php index b5e3a694..6eeb8410 100644 --- a/lib/Base/LinkColumnWithTableName.php +++ b/lib/Base/LinkColumnWithTableName.php @@ -506,11 +506,11 @@ public function setColumnData($column_data) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -518,12 +518,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -548,11 +548,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/LinkFormulaColumn.php b/lib/Base/LinkFormulaColumn.php index ff42718f..7f6604f9 100644 --- a/lib/Base/LinkFormulaColumn.php +++ b/lib/Base/LinkFormulaColumn.php @@ -470,11 +470,11 @@ public function setColumnData($column_data) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -482,12 +482,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -512,11 +512,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/LinkFormulaColumnColumnData.php b/lib/Base/LinkFormulaColumnColumnData.php index 14edf794..22d716ca 100644 --- a/lib/Base/LinkFormulaColumnColumnData.php +++ b/lib/Base/LinkFormulaColumnColumnData.php @@ -648,11 +648,11 @@ public function setComparisonColumn($comparison_column) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -660,12 +660,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -690,11 +690,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/LinkFormulaColumnCountLinksFormat.php b/lib/Base/LinkFormulaColumnCountLinksFormat.php index 97234fab..90de5c97 100644 --- a/lib/Base/LinkFormulaColumnCountLinksFormat.php +++ b/lib/Base/LinkFormulaColumnCountLinksFormat.php @@ -390,11 +390,11 @@ public function setLinkColumn($link_column) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -402,12 +402,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -432,11 +432,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/LinkFormulaColumnFindmaxFormat.php b/lib/Base/LinkFormulaColumnFindmaxFormat.php index 39f6f980..6b47e690 100644 --- a/lib/Base/LinkFormulaColumnFindmaxFormat.php +++ b/lib/Base/LinkFormulaColumnFindmaxFormat.php @@ -464,11 +464,11 @@ public function setComparisonColumn($comparison_column) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -476,12 +476,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -506,11 +506,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/LinkFormulaColumnFindminFormat.php b/lib/Base/LinkFormulaColumnFindminFormat.php index 2ca4c4e7..449aea62 100644 --- a/lib/Base/LinkFormulaColumnFindminFormat.php +++ b/lib/Base/LinkFormulaColumnFindminFormat.php @@ -464,11 +464,11 @@ public function setComparisonColumn($comparison_column) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -476,12 +476,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -506,11 +506,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/LinkFormulaColumnLookupFormat.php b/lib/Base/LinkFormulaColumnLookupFormat.php index 0ef48574..a38a85ba 100644 --- a/lib/Base/LinkFormulaColumnLookupFormat.php +++ b/lib/Base/LinkFormulaColumnLookupFormat.php @@ -461,11 +461,11 @@ public function setLevel2LinkedColumn($level2_linked_column) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -473,12 +473,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -503,11 +503,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/LinkFormulaColumnRollupFormat.php b/lib/Base/LinkFormulaColumnRollupFormat.php index 353b257a..b6897cb1 100644 --- a/lib/Base/LinkFormulaColumnRollupFormat.php +++ b/lib/Base/LinkFormulaColumnRollupFormat.php @@ -504,11 +504,11 @@ public function setSummaryMethod($summary_method) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -516,12 +516,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -546,11 +546,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/LinkFormulaColumnWithTableName.php b/lib/Base/LinkFormulaColumnWithTableName.php index e74f0949..a85fccfc 100644 --- a/lib/Base/LinkFormulaColumnWithTableName.php +++ b/lib/Base/LinkFormulaColumnWithTableName.php @@ -506,11 +506,11 @@ public function setColumnData($column_data) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -518,12 +518,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -548,11 +548,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/LinksApi.php b/lib/Base/LinksApi.php index 6ce69e36..d95820e2 100644 --- a/lib/Base/LinksApi.php +++ b/lib/Base/LinksApi.php @@ -1883,6 +1883,14 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } diff --git a/lib/Base/ListRowLinks.php b/lib/Base/ListRowLinks.php index becf9984..b20be2a1 100644 --- a/lib/Base/ListRowLinks.php +++ b/lib/Base/ListRowLinks.php @@ -394,11 +394,11 @@ public function setRows($rows) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -406,12 +406,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -436,11 +436,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/ListRowLinksRowsInner.php b/lib/Base/ListRowLinksRowsInner.php index 06ffe3c2..df41d525 100644 --- a/lib/Base/ListRowLinksRowsInner.php +++ b/lib/Base/ListRowLinksRowsInner.php @@ -397,11 +397,11 @@ public function setLimit($limit) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -409,12 +409,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -439,11 +439,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/LongTextColumn.php b/lib/Base/LongTextColumn.php index d551db33..8a7a7d00 100644 --- a/lib/Base/LongTextColumn.php +++ b/lib/Base/LongTextColumn.php @@ -433,11 +433,11 @@ public function setAnchorColumn($anchor_column) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -445,12 +445,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -475,11 +475,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/LongTextColumnWithTableName.php b/lib/Base/LongTextColumnWithTableName.php index 8672be8a..35c45199 100644 --- a/lib/Base/LongTextColumnWithTableName.php +++ b/lib/Base/LongTextColumnWithTableName.php @@ -469,11 +469,11 @@ public function setAnchorColumn($anchor_column) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -481,12 +481,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -511,11 +511,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/MatchLinkColumns.php b/lib/Base/MatchLinkColumns.php index 40739524..dbebd56f 100644 --- a/lib/Base/MatchLinkColumns.php +++ b/lib/Base/MatchLinkColumns.php @@ -373,11 +373,11 @@ public function setMatchingKeys($matching_keys) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -385,12 +385,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -415,11 +415,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/MatchLinkColumnsMatchingKeysInner.php b/lib/Base/MatchLinkColumnsMatchingKeysInner.php index 8199b315..9670ce93 100644 --- a/lib/Base/MatchLinkColumnsMatchingKeysInner.php +++ b/lib/Base/MatchLinkColumnsMatchingKeysInner.php @@ -351,11 +351,11 @@ public function setTable2Key($table2_key) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -363,12 +363,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -393,11 +393,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/MoveColumn.php b/lib/Base/MoveColumn.php index 8759de90..101119a6 100644 --- a/lib/Base/MoveColumn.php +++ b/lib/Base/MoveColumn.php @@ -472,11 +472,11 @@ public function setTargetColumn($target_column) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -484,12 +484,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -514,11 +514,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/MoveRowsToNormalBackendRequest.php b/lib/Base/MoveRowsToNormalBackendRequest.php index 85ddb931..7e666498 100644 --- a/lib/Base/MoveRowsToNormalBackendRequest.php +++ b/lib/Base/MoveRowsToNormalBackendRequest.php @@ -351,11 +351,11 @@ public function setRowIds($row_ids) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -363,12 +363,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -393,11 +393,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/MtimeColumn.php b/lib/Base/MtimeColumn.php index c7937e8a..2ebce7de 100644 --- a/lib/Base/MtimeColumn.php +++ b/lib/Base/MtimeColumn.php @@ -433,11 +433,11 @@ public function setAnchorColumn($anchor_column) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -445,12 +445,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -475,11 +475,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/MtimeColumnWithTableName.php b/lib/Base/MtimeColumnWithTableName.php index aa11be6b..1c654637 100644 --- a/lib/Base/MtimeColumnWithTableName.php +++ b/lib/Base/MtimeColumnWithTableName.php @@ -469,11 +469,11 @@ public function setAnchorColumn($anchor_column) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -481,12 +481,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -511,11 +511,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/MultipleSelectColumn.php b/lib/Base/MultipleSelectColumn.php index 08728647..b7cc4188 100644 --- a/lib/Base/MultipleSelectColumn.php +++ b/lib/Base/MultipleSelectColumn.php @@ -467,11 +467,11 @@ public function setColumnData($column_data) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -479,12 +479,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -509,11 +509,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/MultipleSelectColumnWithTableName.php b/lib/Base/MultipleSelectColumnWithTableName.php index 09f90f9f..f0df7138 100644 --- a/lib/Base/MultipleSelectColumnWithTableName.php +++ b/lib/Base/MultipleSelectColumnWithTableName.php @@ -503,11 +503,11 @@ public function setColumnData($column_data) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -515,12 +515,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -545,11 +545,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/NewView.php b/lib/Base/NewView.php index 45e119e6..b1cf8f1c 100644 --- a/lib/Base/NewView.php +++ b/lib/Base/NewView.php @@ -427,11 +427,11 @@ public function setIsLocked($is_locked) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -439,12 +439,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -469,11 +469,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/NotificationsApi.php b/lib/Base/NotificationsApi.php index 49f740b3..f8330c41 100644 --- a/lib/Base/NotificationsApi.php +++ b/lib/Base/NotificationsApi.php @@ -1593,6 +1593,14 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } diff --git a/lib/Base/NumberColumn.php b/lib/Base/NumberColumn.php index d85710b4..e9794753 100644 --- a/lib/Base/NumberColumn.php +++ b/lib/Base/NumberColumn.php @@ -467,11 +467,11 @@ public function setColumnData($column_data) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -479,12 +479,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -509,11 +509,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/NumberColumnFormat.php b/lib/Base/NumberColumnFormat.php index e8162970..f219025d 100644 --- a/lib/Base/NumberColumnFormat.php +++ b/lib/Base/NumberColumnFormat.php @@ -500,11 +500,11 @@ public function setThousands($thousands) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -512,12 +512,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -542,11 +542,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/NumberColumnWithTableName.php b/lib/Base/NumberColumnWithTableName.php index 6850fc23..aa672ecc 100644 --- a/lib/Base/NumberColumnWithTableName.php +++ b/lib/Base/NumberColumnWithTableName.php @@ -503,11 +503,11 @@ public function setColumnData($column_data) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -515,12 +515,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -545,11 +545,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/RatingColumn.php b/lib/Base/RatingColumn.php index de9f140d..9a9a22ed 100644 --- a/lib/Base/RatingColumn.php +++ b/lib/Base/RatingColumn.php @@ -470,11 +470,11 @@ public function setColumnData($column_data) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -482,12 +482,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -512,11 +512,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/RatingColumnFormat.php b/lib/Base/RatingColumnFormat.php index 6ecdd430..b703fd3c 100644 --- a/lib/Base/RatingColumnFormat.php +++ b/lib/Base/RatingColumnFormat.php @@ -449,11 +449,11 @@ public function setRateStyleType($rate_style_type) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -461,12 +461,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -491,11 +491,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/RatingColumnWithTableName.php b/lib/Base/RatingColumnWithTableName.php index 6aefa119..5408e490 100644 --- a/lib/Base/RatingColumnWithTableName.php +++ b/lib/Base/RatingColumnWithTableName.php @@ -506,11 +506,11 @@ public function setColumnData($column_data) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -518,12 +518,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -548,11 +548,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/RenameColumn.php b/lib/Base/RenameColumn.php index 20c4fee7..0ce4da08 100644 --- a/lib/Base/RenameColumn.php +++ b/lib/Base/RenameColumn.php @@ -472,11 +472,11 @@ public function setNewColumnName($new_column_name) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -484,12 +484,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -514,11 +514,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/RenameTable.php b/lib/Base/RenameTable.php index 733bed09..44f36345 100644 --- a/lib/Base/RenameTable.php +++ b/lib/Base/RenameTable.php @@ -358,11 +358,11 @@ public function setNewTableName($new_table_name) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -370,12 +370,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -400,11 +400,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/ResizeColumn.php b/lib/Base/ResizeColumn.php index 4dd40842..f32bf202 100644 --- a/lib/Base/ResizeColumn.php +++ b/lib/Base/ResizeColumn.php @@ -472,11 +472,11 @@ public function setNewColumnWidth($new_column_width) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -484,12 +484,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -514,11 +514,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/RowCommentsApi.php b/lib/Base/RowCommentsApi.php index aa5307fa..7a328457 100644 --- a/lib/Base/RowCommentsApi.php +++ b/lib/Base/RowCommentsApi.php @@ -1917,6 +1917,14 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } diff --git a/lib/Base/RowLinkCreateUpdateDelete.php b/lib/Base/RowLinkCreateUpdateDelete.php index 7a7307e0..4d44b7f0 100644 --- a/lib/Base/RowLinkCreateUpdateDelete.php +++ b/lib/Base/RowLinkCreateUpdateDelete.php @@ -464,11 +464,11 @@ public function setOtherRowsIdsMap($other_rows_ids_map) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -476,12 +476,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -506,11 +506,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/Rows.php b/lib/Base/Rows.php index 2c08e292..59153545 100644 --- a/lib/Base/Rows.php +++ b/lib/Base/Rows.php @@ -321,11 +321,11 @@ public function setRows($rows) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -333,12 +333,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -363,11 +363,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/RowsApi.php b/lib/Base/RowsApi.php index 47e136b5..f86bac3b 100644 --- a/lib/Base/RowsApi.php +++ b/lib/Base/RowsApi.php @@ -2585,6 +2585,14 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } diff --git a/lib/Base/RowsWithTableName.php b/lib/Base/RowsWithTableName.php index 01c78d22..237ace79 100644 --- a/lib/Base/RowsWithTableName.php +++ b/lib/Base/RowsWithTableName.php @@ -357,11 +357,11 @@ public function setRows($rows) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -369,12 +369,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -399,11 +399,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/SelectColumnFormat.php b/lib/Base/SelectColumnFormat.php index 86b6ffb7..9c12fd1f 100644 --- a/lib/Base/SelectColumnFormat.php +++ b/lib/Base/SelectColumnFormat.php @@ -318,11 +318,11 @@ public function setOptions($options) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -330,12 +330,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -360,11 +360,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/SelectColumnFormatOptionsInner.php b/lib/Base/SelectColumnFormatOptionsInner.php index 32cfc478..56db4a5f 100644 --- a/lib/Base/SelectColumnFormatOptionsInner.php +++ b/lib/Base/SelectColumnFormatOptionsInner.php @@ -490,11 +490,11 @@ public function setBorderColor($border_color) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -502,12 +502,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -532,11 +532,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/SendToastNotificationRequest.php b/lib/Base/SendToastNotificationRequest.php index 58be68d6..21179237 100644 --- a/lib/Base/SendToastNotificationRequest.php +++ b/lib/Base/SendToastNotificationRequest.php @@ -421,11 +421,11 @@ public function setDetail($detail) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -433,12 +433,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -463,11 +463,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/SendToastNotificationRequestDetail.php b/lib/Base/SendToastNotificationRequestDetail.php index b712d13b..01872b7d 100644 --- a/lib/Base/SendToastNotificationRequestDetail.php +++ b/lib/Base/SendToastNotificationRequestDetail.php @@ -317,11 +317,11 @@ public function setMsg($msg) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -329,12 +329,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -359,11 +359,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/SingleSelectColumn.php b/lib/Base/SingleSelectColumn.php index d5ec3370..c14944ee 100644 --- a/lib/Base/SingleSelectColumn.php +++ b/lib/Base/SingleSelectColumn.php @@ -467,11 +467,11 @@ public function setColumnData($column_data) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -479,12 +479,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -509,11 +509,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/SingleSelectColumnWithTableName.php b/lib/Base/SingleSelectColumnWithTableName.php index 1327aaf8..f79a10af 100644 --- a/lib/Base/SingleSelectColumnWithTableName.php +++ b/lib/Base/SingleSelectColumnWithTableName.php @@ -503,11 +503,11 @@ public function setColumnData($column_data) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -515,12 +515,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -545,11 +545,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/SnapshotsApi.php b/lib/Base/SnapshotsApi.php index a0643c75..d70d620f 100644 --- a/lib/Base/SnapshotsApi.php +++ b/lib/Base/SnapshotsApi.php @@ -428,6 +428,14 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } diff --git a/lib/Base/SortsInner.php b/lib/Base/SortsInner.php index 51080eaf..1996bd06 100644 --- a/lib/Base/SortsInner.php +++ b/lib/Base/SortsInner.php @@ -351,11 +351,11 @@ public function setSortType($sort_type) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -363,12 +363,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -393,11 +393,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/SqlQuery.php b/lib/Base/SqlQuery.php index 31cf931f..3504f922 100644 --- a/lib/Base/SqlQuery.php +++ b/lib/Base/SqlQuery.php @@ -422,11 +422,11 @@ public function setServerOnly($server_only) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -434,12 +434,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -464,11 +464,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/SqlQueryParametersInner.php b/lib/Base/SqlQueryParametersInner.php index c3bb0684..41808c77 100644 --- a/lib/Base/SqlQueryParametersInner.php +++ b/lib/Base/SqlQueryParametersInner.php @@ -289,11 +289,11 @@ public function valid() /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -301,12 +301,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -331,11 +331,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/SqlQueryResponse.php b/lib/Base/SqlQueryResponse.php index de3540e2..d6b450d1 100644 --- a/lib/Base/SqlQueryResponse.php +++ b/lib/Base/SqlQueryResponse.php @@ -385,11 +385,11 @@ public function setSuccess($success) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -397,12 +397,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -427,11 +427,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/TableNameObject.php b/lib/Base/TableNameObject.php index cfda1dca..802b3600 100644 --- a/lib/Base/TableNameObject.php +++ b/lib/Base/TableNameObject.php @@ -320,11 +320,11 @@ public function setTableName($table_name) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -332,12 +332,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -362,11 +362,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/TableWithRowIds.php b/lib/Base/TableWithRowIds.php index 5b7d2492..0ea5d4be 100644 --- a/lib/Base/TableWithRowIds.php +++ b/lib/Base/TableWithRowIds.php @@ -357,11 +357,11 @@ public function setRowIds($row_ids) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -369,12 +369,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -399,11 +399,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/TablesApi.php b/lib/Base/TablesApi.php index 0ece66c8..598ab2a7 100644 --- a/lib/Base/TablesApi.php +++ b/lib/Base/TablesApi.php @@ -1301,6 +1301,14 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } diff --git a/lib/Base/TextColumn.php b/lib/Base/TextColumn.php index 838bd417..1202292c 100644 --- a/lib/Base/TextColumn.php +++ b/lib/Base/TextColumn.php @@ -433,11 +433,11 @@ public function setAnchorColumn($anchor_column) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -445,12 +445,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -475,11 +475,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/TextColumnWithTableName.php b/lib/Base/TextColumnWithTableName.php index 1e016855..26f6c696 100644 --- a/lib/Base/TextColumnWithTableName.php +++ b/lib/Base/TextColumnWithTableName.php @@ -469,11 +469,11 @@ public function setAnchorColumn($anchor_column) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -481,12 +481,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -511,11 +511,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/UpdateColumn.php b/lib/Base/UpdateColumn.php index 8d01814b..e21ea371 100644 --- a/lib/Base/UpdateColumn.php +++ b/lib/Base/UpdateColumn.php @@ -654,11 +654,11 @@ public function setFrozen($frozen) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -666,12 +666,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -696,11 +696,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/UpdateColumnType.php b/lib/Base/UpdateColumnType.php index 114b100f..be1e93f9 100644 --- a/lib/Base/UpdateColumnType.php +++ b/lib/Base/UpdateColumnType.php @@ -506,11 +506,11 @@ public function setColumnData($column_data) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -518,12 +518,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -548,11 +548,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/UpdateComment.php b/lib/Base/UpdateComment.php index ef473ccd..7eca4193 100644 --- a/lib/Base/UpdateComment.php +++ b/lib/Base/UpdateComment.php @@ -320,11 +320,11 @@ public function setOptions($options) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -332,12 +332,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -362,11 +362,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/UpdateCommentOptions.php b/lib/Base/UpdateCommentOptions.php index 3efc7606..3dca0028 100644 --- a/lib/Base/UpdateCommentOptions.php +++ b/lib/Base/UpdateCommentOptions.php @@ -385,11 +385,11 @@ public function setResolved($resolved) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -397,12 +397,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -427,11 +427,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/UpdateRow.php b/lib/Base/UpdateRow.php index 3edaf8ad..a5a84c71 100644 --- a/lib/Base/UpdateRow.php +++ b/lib/Base/UpdateRow.php @@ -404,11 +404,11 @@ public function setRow($row) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -416,12 +416,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -446,11 +446,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/UpdateRows.php b/lib/Base/UpdateRows.php index 9bc871aa..9de4cde7 100644 --- a/lib/Base/UpdateRows.php +++ b/lib/Base/UpdateRows.php @@ -358,11 +358,11 @@ public function setUpdates($updates) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -370,12 +370,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -400,11 +400,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/UpdateRowsUpdatesInner.php b/lib/Base/UpdateRowsUpdatesInner.php index 489fc166..dba49387 100644 --- a/lib/Base/UpdateRowsUpdatesInner.php +++ b/lib/Base/UpdateRowsUpdatesInner.php @@ -360,11 +360,11 @@ public function setRow($row) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -372,12 +372,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -402,11 +402,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/UpdateSingleMultipleSelectOptions.php b/lib/Base/UpdateSingleMultipleSelectOptions.php index 95a91b67..5f5bafa9 100644 --- a/lib/Base/UpdateSingleMultipleSelectOptions.php +++ b/lib/Base/UpdateSingleMultipleSelectOptions.php @@ -428,11 +428,11 @@ public function setReturnOptions($return_options) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -440,12 +440,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -470,11 +470,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/UpdateSingleMultipleSelectOptionsOptionsInner.php b/lib/Base/UpdateSingleMultipleSelectOptionsOptionsInner.php index e6dca112..9c3b7f5c 100644 --- a/lib/Base/UpdateSingleMultipleSelectOptionsOptionsInner.php +++ b/lib/Base/UpdateSingleMultipleSelectOptionsOptionsInner.php @@ -422,11 +422,11 @@ public function setName($name) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -434,12 +434,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -464,11 +464,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/UpdateView.php b/lib/Base/UpdateView.php index 2d915a2d..a02830b1 100644 --- a/lib/Base/UpdateView.php +++ b/lib/Base/UpdateView.php @@ -521,11 +521,11 @@ public function setHiddenColumns($hidden_columns) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -533,12 +533,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -563,11 +563,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/UpdateViewFiltersInner.php b/lib/Base/UpdateViewFiltersInner.php index 89f6c0b2..593f4094 100644 --- a/lib/Base/UpdateViewFiltersInner.php +++ b/lib/Base/UpdateViewFiltersInner.php @@ -453,11 +453,11 @@ public function setEmailFilterPredicate($email_filter_predicate) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -465,12 +465,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -495,11 +495,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/UrlColumn.php b/lib/Base/UrlColumn.php index 89c50a1e..777b7593 100644 --- a/lib/Base/UrlColumn.php +++ b/lib/Base/UrlColumn.php @@ -433,11 +433,11 @@ public function setAnchorColumn($anchor_column) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -445,12 +445,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -475,11 +475,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/UrlColumnWithTableName.php b/lib/Base/UrlColumnWithTableName.php index 3fbcfa98..10d9c475 100644 --- a/lib/Base/UrlColumnWithTableName.php +++ b/lib/Base/UrlColumnWithTableName.php @@ -469,11 +469,11 @@ public function setAnchorColumn($anchor_column) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -481,12 +481,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -511,11 +511,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/Base/ViewsApi.php b/lib/Base/ViewsApi.php index fdfd944b..80579796 100644 --- a/lib/Base/ViewsApi.php +++ b/lib/Base/ViewsApi.php @@ -1718,6 +1718,14 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } diff --git a/lib/Configuration.php b/lib/Configuration.php index 521f4ec8..81082d18 100644 --- a/lib/Configuration.php +++ b/lib/Configuration.php @@ -122,6 +122,20 @@ class Configuration */ protected $tempFolderPath; + /** + * Path to a certificate file, for mTLS + * + * @var string + */ + protected $certFile; + + /** + * Path to a key file, for mTLS + * + * @var string + */ + protected $keyFile; + /** * Constructor */ @@ -395,6 +409,49 @@ public function getTempFolderPath() return $this->tempFolderPath; } + /** + * Sets the certificate file path, for mTLS + * + * @return $this + */ + public function setCertFile($certFile) + { + $this->certFile = $certFile; + return $this; + } + + /** + * Gets the certificate file path, for mTLS + * + * @return string Certificate file path + */ + public function getCertFile() + { + return $this->certFile; + } + + /** + * Sets the certificate key path, for mTLS + * + * @return $this + */ + public function setKeyFile($keyFile) + { + $this->keyFile = $keyFile; + return $this; + } + + /** + * Gets the certificate key path, for mTLS + * + * @return string Certificate key path + */ + public function getKeyFile() + { + return $this->keyFile; + } + + /** * Gets the default configuration instance * diff --git a/lib/File/FilesImagesApi.php b/lib/File/FilesImagesApi.php index adf40ac2..ef2fb299 100644 --- a/lib/File/FilesImagesApi.php +++ b/lib/File/FilesImagesApi.php @@ -1286,6 +1286,14 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } diff --git a/lib/File/FilesImagesCustomFolderApi.php b/lib/File/FilesImagesCustomFolderApi.php index db1491be..73de0305 100644 --- a/lib/File/FilesImagesCustomFolderApi.php +++ b/lib/File/FilesImagesCustomFolderApi.php @@ -1538,6 +1538,14 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } diff --git a/lib/PythonScheduler/RunsApi.php b/lib/PythonScheduler/RunsApi.php index 75d8748f..f6055fbd 100644 --- a/lib/PythonScheduler/RunsApi.php +++ b/lib/PythonScheduler/RunsApi.php @@ -494,6 +494,14 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } diff --git a/lib/PythonScheduler/StatisticsApi.php b/lib/PythonScheduler/StatisticsApi.php index bf11a6b0..8e5bf345 100644 --- a/lib/PythonScheduler/StatisticsApi.php +++ b/lib/PythonScheduler/StatisticsApi.php @@ -1850,6 +1850,14 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } diff --git a/lib/SysAdmin/AddDepartmentRequest.php b/lib/SysAdmin/AddDepartmentRequest.php index 40ddb7c4..1c7cf20b 100644 --- a/lib/SysAdmin/AddDepartmentRequest.php +++ b/lib/SysAdmin/AddDepartmentRequest.php @@ -351,11 +351,11 @@ public function setParentGroup($parent_group) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -363,12 +363,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -393,11 +393,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/SysAdmin/AddNewUserRequest.php b/lib/SysAdmin/AddNewUserRequest.php index 0d278b1b..428e312f 100644 --- a/lib/SysAdmin/AddNewUserRequest.php +++ b/lib/SysAdmin/AddNewUserRequest.php @@ -453,11 +453,11 @@ public function setIsActive($is_active) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -465,12 +465,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -495,11 +495,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/SysAdmin/AddNotificationToUserRequest.php b/lib/SysAdmin/AddNotificationToUserRequest.php index 507ea2de..d0feca4a 100644 --- a/lib/SysAdmin/AddNotificationToUserRequest.php +++ b/lib/SysAdmin/AddNotificationToUserRequest.php @@ -351,11 +351,11 @@ public function setUsername($username) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -363,12 +363,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -393,11 +393,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/SysAdmin/AddTeamRequest.php b/lib/SysAdmin/AddTeamRequest.php index ef10282b..7105a858 100644 --- a/lib/SysAdmin/AddTeamRequest.php +++ b/lib/SysAdmin/AddTeamRequest.php @@ -462,11 +462,11 @@ public function setWithWorkspace($with_workspace) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -474,12 +474,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -504,11 +504,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/SysAdmin/AutomationsApi.php b/lib/SysAdmin/AutomationsApi.php index 71ffeca3..b4b23d83 100644 --- a/lib/SysAdmin/AutomationsApi.php +++ b/lib/SysAdmin/AutomationsApi.php @@ -1252,6 +1252,14 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } diff --git a/lib/SysAdmin/BasesApi.php b/lib/SysAdmin/BasesApi.php index 10d5ff07..40c6e45a 100644 --- a/lib/SysAdmin/BasesApi.php +++ b/lib/SysAdmin/BasesApi.php @@ -2227,6 +2227,14 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } diff --git a/lib/SysAdmin/CommonDatasetApi.php b/lib/SysAdmin/CommonDatasetApi.php index f78d0cf9..9b1a5760 100644 --- a/lib/SysAdmin/CommonDatasetApi.php +++ b/lib/SysAdmin/CommonDatasetApi.php @@ -1543,6 +1543,14 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } diff --git a/lib/SysAdmin/CreateGroupRequest.php b/lib/SysAdmin/CreateGroupRequest.php index d2ccb2dc..e1875a3e 100644 --- a/lib/SysAdmin/CreateGroupRequest.php +++ b/lib/SysAdmin/CreateGroupRequest.php @@ -351,11 +351,11 @@ public function setGroupOwner($group_owner) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -363,12 +363,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -393,11 +393,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/SysAdmin/DepartmentsApi.php b/lib/SysAdmin/DepartmentsApi.php index 0081a601..118d0ea9 100644 --- a/lib/SysAdmin/DepartmentsApi.php +++ b/lib/SysAdmin/DepartmentsApi.php @@ -1251,6 +1251,14 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } diff --git a/lib/SysAdmin/EnforceTwoFactorRequest.php b/lib/SysAdmin/EnforceTwoFactorRequest.php index f3215646..b1cc45bc 100644 --- a/lib/SysAdmin/EnforceTwoFactorRequest.php +++ b/lib/SysAdmin/EnforceTwoFactorRequest.php @@ -317,11 +317,11 @@ public function setForce2fa($force_2fa) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -329,12 +329,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -359,11 +359,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/SysAdmin/ExportApi.php b/lib/SysAdmin/ExportApi.php index 53a6d690..67cdedd7 100644 --- a/lib/SysAdmin/ExportApi.php +++ b/lib/SysAdmin/ExportApi.php @@ -380,6 +380,14 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } diff --git a/lib/SysAdmin/FormsApi.php b/lib/SysAdmin/FormsApi.php index 4b58a6e7..5604eb0b 100644 --- a/lib/SysAdmin/FormsApi.php +++ b/lib/SysAdmin/FormsApi.php @@ -1203,6 +1203,14 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } diff --git a/lib/SysAdmin/GroupsApi.php b/lib/SysAdmin/GroupsApi.php index 0a2f0638..a6a2fb48 100644 --- a/lib/SysAdmin/GroupsApi.php +++ b/lib/SysAdmin/GroupsApi.php @@ -1280,6 +1280,14 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } diff --git a/lib/SysAdmin/ListAuditLogs200Response.php b/lib/SysAdmin/ListAuditLogs200Response.php index e5c943db..763db292 100644 --- a/lib/SysAdmin/ListAuditLogs200Response.php +++ b/lib/SysAdmin/ListAuditLogs200Response.php @@ -351,11 +351,11 @@ public function setTotalCount($total_count) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -363,12 +363,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -393,11 +393,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/SysAdmin/ListAuditLogs200ResponseAuditLogListInner.php b/lib/SysAdmin/ListAuditLogs200ResponseAuditLogListInner.php index 1bc0f6fa..1f78ae16 100644 --- a/lib/SysAdmin/ListAuditLogs200ResponseAuditLogListInner.php +++ b/lib/SysAdmin/ListAuditLogs200ResponseAuditLogListInner.php @@ -521,11 +521,11 @@ public function setOrgName($org_name) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -533,12 +533,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -563,11 +563,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/SysAdmin/ListAuditLogs200ResponseAuditLogListInnerDetail.php b/lib/SysAdmin/ListAuditLogs200ResponseAuditLogListInnerDetail.php index 4d8a24c1..2778a708 100644 --- a/lib/SysAdmin/ListAuditLogs200ResponseAuditLogListInnerDetail.php +++ b/lib/SysAdmin/ListAuditLogs200ResponseAuditLogListInnerDetail.php @@ -352,11 +352,11 @@ public function setName($name) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -364,12 +364,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -394,11 +394,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/SysAdmin/LogsApi.php b/lib/SysAdmin/LogsApi.php index 63cd4b5c..14f5b1d3 100644 --- a/lib/SysAdmin/LogsApi.php +++ b/lib/SysAdmin/LogsApi.php @@ -3120,6 +3120,14 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } diff --git a/lib/SysAdmin/MaintenanceApi.php b/lib/SysAdmin/MaintenanceApi.php index ad0bc6fe..c26c49c9 100644 --- a/lib/SysAdmin/MaintenanceApi.php +++ b/lib/SysAdmin/MaintenanceApi.php @@ -415,6 +415,14 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } diff --git a/lib/SysAdmin/NotificationsApi.php b/lib/SysAdmin/NotificationsApi.php index 6ba09e75..cc2d5165 100644 --- a/lib/SysAdmin/NotificationsApi.php +++ b/lib/SysAdmin/NotificationsApi.php @@ -1252,6 +1252,14 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } diff --git a/lib/SysAdmin/PluginsApi.php b/lib/SysAdmin/PluginsApi.php index 94db9d95..59cca8a6 100644 --- a/lib/SysAdmin/PluginsApi.php +++ b/lib/SysAdmin/PluginsApi.php @@ -1440,6 +1440,14 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } diff --git a/lib/SysAdmin/RepairBase200Response.php b/lib/SysAdmin/RepairBase200Response.php index 32002a3e..ff54a818 100644 --- a/lib/SysAdmin/RepairBase200Response.php +++ b/lib/SysAdmin/RepairBase200Response.php @@ -317,11 +317,11 @@ public function setSuccess($success) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -329,12 +329,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -359,11 +359,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/SysAdmin/SharingLinksApi.php b/lib/SysAdmin/SharingLinksApi.php index 9cb4d687..06403f89 100644 --- a/lib/SysAdmin/SharingLinksApi.php +++ b/lib/SysAdmin/SharingLinksApi.php @@ -1511,6 +1511,14 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } diff --git a/lib/SysAdmin/StatisticsApi.php b/lib/SysAdmin/StatisticsApi.php index 8a2a500f..16d5a760 100644 --- a/lib/SysAdmin/StatisticsApi.php +++ b/lib/SysAdmin/StatisticsApi.php @@ -1964,6 +1964,14 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } diff --git a/lib/SysAdmin/SystemInfoCustomizingApi.php b/lib/SysAdmin/SystemInfoCustomizingApi.php index c4277dc8..876a4884 100644 --- a/lib/SysAdmin/SystemInfoCustomizingApi.php +++ b/lib/SysAdmin/SystemInfoCustomizingApi.php @@ -1480,6 +1480,14 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } diff --git a/lib/SysAdmin/SystemNotificationsApi.php b/lib/SysAdmin/SystemNotificationsApi.php index 811f69ae..288d0d50 100644 --- a/lib/SysAdmin/SystemNotificationsApi.php +++ b/lib/SysAdmin/SystemNotificationsApi.php @@ -971,6 +971,14 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } diff --git a/lib/SysAdmin/TeamsApi.php b/lib/SysAdmin/TeamsApi.php index ad4e1cd1..5b8c2faf 100644 --- a/lib/SysAdmin/TeamsApi.php +++ b/lib/SysAdmin/TeamsApi.php @@ -3891,6 +3891,14 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } diff --git a/lib/SysAdmin/TransferGroupRequest.php b/lib/SysAdmin/TransferGroupRequest.php index ccdb69c7..1f8ef243 100644 --- a/lib/SysAdmin/TransferGroupRequest.php +++ b/lib/SysAdmin/TransferGroupRequest.php @@ -317,11 +317,11 @@ public function setNewOwner($new_owner) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -329,12 +329,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -359,11 +359,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/SysAdmin/UpdateAbuseReportRequest.php b/lib/SysAdmin/UpdateAbuseReportRequest.php index 50095c3d..3425abe1 100644 --- a/lib/SysAdmin/UpdateAbuseReportRequest.php +++ b/lib/SysAdmin/UpdateAbuseReportRequest.php @@ -317,11 +317,11 @@ public function setHandled($handled) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -329,12 +329,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -359,11 +359,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/SysAdmin/UpdateAdminsRole.php b/lib/SysAdmin/UpdateAdminsRole.php index cd1b69ba..c47c46e1 100644 --- a/lib/SysAdmin/UpdateAdminsRole.php +++ b/lib/SysAdmin/UpdateAdminsRole.php @@ -351,11 +351,11 @@ public function setRole($role) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -363,12 +363,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -393,11 +393,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/SysAdmin/UpdateGeneralSettingsRequest.php b/lib/SysAdmin/UpdateGeneralSettingsRequest.php index 6030fa46..f0c4e13f 100644 --- a/lib/SysAdmin/UpdateGeneralSettingsRequest.php +++ b/lib/SysAdmin/UpdateGeneralSettingsRequest.php @@ -793,11 +793,11 @@ public function setEnableSignup($enable_signup) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -805,12 +805,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -835,11 +835,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/SysAdmin/UpdateTeamRequest.php b/lib/SysAdmin/UpdateTeamRequest.php index d006222b..10181116 100644 --- a/lib/SysAdmin/UpdateTeamRequest.php +++ b/lib/SysAdmin/UpdateTeamRequest.php @@ -453,11 +453,11 @@ public function setAssetQuotaMb($asset_quota_mb) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -465,12 +465,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -495,11 +495,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/SysAdmin/UpdateTeamUserRequest.php b/lib/SysAdmin/UpdateTeamUserRequest.php index 8a2baa53..1a620087 100644 --- a/lib/SysAdmin/UpdateTeamUserRequest.php +++ b/lib/SysAdmin/UpdateTeamUserRequest.php @@ -453,11 +453,11 @@ public function setQuotaTotal($quota_total) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -465,12 +465,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -495,11 +495,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/SysAdmin/UpdateUserRequest.php b/lib/SysAdmin/UpdateUserRequest.php index f0f4d4d1..996f57e4 100644 --- a/lib/SysAdmin/UpdateUserRequest.php +++ b/lib/SysAdmin/UpdateUserRequest.php @@ -725,11 +725,11 @@ public function setAssetQuotaMb($asset_quota_mb) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -737,12 +737,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -767,11 +767,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/SysAdmin/UsersApi.php b/lib/SysAdmin/UsersApi.php index 107a5efe..ecde6987 100644 --- a/lib/SysAdmin/UsersApi.php +++ b/lib/SysAdmin/UsersApi.php @@ -4320,6 +4320,14 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } diff --git a/lib/TeamAdmin/ActivitiesLogsApi.php b/lib/TeamAdmin/ActivitiesLogsApi.php index f191f496..3611024e 100644 --- a/lib/TeamAdmin/ActivitiesLogsApi.php +++ b/lib/TeamAdmin/ActivitiesLogsApi.php @@ -73,12 +73,18 @@ class ActivitiesLogsApi /** @var string[] $contentTypes **/ public const contentTypes = [ + 'listAutomationLogs' => [ + 'application/json', + ], 'listFileAccessLogs' => [ 'application/json', ], 'listGroupMemberAuditLogs' => [ 'application/json', ], + 'listPythonRuns' => [ + 'application/json', + ], 'listTeamLogins' => [ 'application/json', ], @@ -90,89 +96,741 @@ class ActivitiesLogsApi ], ]; - /** - * @param ClientInterface $client - * @param Configuration $config - * @param HeaderSelector $selector - * @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec - */ - public function __construct( - ?ClientInterface $client = null, - ?Configuration $config = null, - ?HeaderSelector $selector = null, - int $hostIndex = 0 - ) { - $this->client = $client ?: new Client(); - $this->config = $config ?: Configuration::getDefaultConfiguration(); - $this->headerSelector = $selector ?: new HeaderSelector(); - $this->hostIndex = $hostIndex; - } + /** + * @param ClientInterface $client + * @param Configuration $config + * @param HeaderSelector $selector + * @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec + */ + public function __construct( + ?ClientInterface $client = null, + ?Configuration $config = null, + ?HeaderSelector $selector = null, + int $hostIndex = 0 + ) { + $this->client = $client ?: new Client(); + $this->config = $config ?: Configuration::getDefaultConfiguration(); + $this->headerSelector = $selector ?: new HeaderSelector(); + $this->hostIndex = $hostIndex; + } + + /** + * Set the host index + * + * @param int $hostIndex Host index (required) + */ + public function setHostIndex($hostIndex): void + { + $this->hostIndex = $hostIndex; + } + + /** + * Get the host index + * + * @return int Host index + */ + public function getHostIndex() + { + return $this->hostIndex; + } + + /** + * @return Configuration + */ + public function getConfig() + { + return $this->config; + } + + /** + * Operation listAutomationLogs + * + * List Automation Logs + * + * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param \DateTime|null $start Start date in ISO format. (optional) + * @param \DateTime|null $end End date in ISO format. (optional) + * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) + * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listAutomationLogs'] to see the possible values for this operation + * + * @throws \SeaTable\Client\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return object + */ + public function listAutomationLogs($org_id, $start = null, $end = null, $page = null, $per_page = null, string $contentType = self::contentTypes['listAutomationLogs'][0]) + { + list($response) = $this->listAutomationLogsWithHttpInfo($org_id, $start, $end, $page, $per_page, $contentType); + return $response; + } + + /** + * Operation listAutomationLogsWithHttpInfo + * + * List Automation Logs + * + * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param \DateTime|null $start Start date in ISO format. (optional) + * @param \DateTime|null $end End date in ISO format. (optional) + * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) + * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listAutomationLogs'] to see the possible values for this operation + * + * @throws \SeaTable\Client\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return array of object, HTTP status code, HTTP response headers (array of strings) + */ + public function listAutomationLogsWithHttpInfo($org_id, $start = null, $end = null, $page = null, $per_page = null, string $contentType = self::contentTypes['listAutomationLogs'][0]) + { + $request = $this->listAutomationLogsRequest($org_id, $start, $end, $page, $per_page, $contentType); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? (string) $e->getResponse()->getBody() : null + ); + } catch (ConnectException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + null, + null + ); + } + + $statusCode = $response->getStatusCode(); + + + switch($statusCode) { + case 200: + return $this->handleResponseWithDataType( + 'object', + $request, + $response, + ); + } + + + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + + return $this->handleResponseWithDataType( + 'object', + $request, + $response, + ); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + 'object', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; + } + + + throw $e; + } + } + + /** + * Operation listAutomationLogsAsync + * + * List Automation Logs + * + * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param \DateTime|null $start Start date in ISO format. (optional) + * @param \DateTime|null $end End date in ISO format. (optional) + * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) + * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listAutomationLogs'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listAutomationLogsAsync($org_id, $start = null, $end = null, $page = null, $per_page = null, string $contentType = self::contentTypes['listAutomationLogs'][0]) + { + return $this->listAutomationLogsAsyncWithHttpInfo($org_id, $start, $end, $page, $per_page, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation listAutomationLogsAsyncWithHttpInfo + * + * List Automation Logs + * + * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param \DateTime|null $start Start date in ISO format. (optional) + * @param \DateTime|null $end End date in ISO format. (optional) + * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) + * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listAutomationLogs'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listAutomationLogsAsyncWithHttpInfo($org_id, $start = null, $end = null, $page = null, $per_page = null, string $contentType = self::contentTypes['listAutomationLogs'][0]) + { + $returnType = 'object'; + $request = $this->listAutomationLogsRequest($org_id, $start, $end, $page, $per_page, $contentType); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'listAutomationLogs' + * + * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param \DateTime|null $start Start date in ISO format. (optional) + * @param \DateTime|null $end End date in ISO format. (optional) + * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) + * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listAutomationLogs'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function listAutomationLogsRequest($org_id, $start = null, $end = null, $page = null, $per_page = null, string $contentType = self::contentTypes['listAutomationLogs'][0]) + { + + // verify the required parameter 'org_id' is set + if ($org_id === null || (is_array($org_id) && count($org_id) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $org_id when calling listAutomationLogs' + ); + } + if ($org_id < 1) { + throw new \InvalidArgumentException('invalid value for "$org_id" when calling ActivitiesLogsApi.listAutomationLogs, must be bigger than or equal to 1.'); + } + + + + if ($page !== null && $page < 1) { + throw new \InvalidArgumentException('invalid value for "$page" when calling ActivitiesLogsApi.listAutomationLogs, must be bigger than or equal to 1.'); + } + + if ($per_page !== null && $per_page < 1) { + throw new \InvalidArgumentException('invalid value for "$per_page" when calling ActivitiesLogsApi.listAutomationLogs, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/api/v2.1/org/{org_id}/admin/automation-logs/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $start, + 'start', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $end, + 'end', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $page, + 'page', // param base name + 'integer', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $per_page, + 'per_page', // param base name + 'integer', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + + + // path params + if ($org_id !== null) { + $resourcePath = str_replace( + '{' . 'org_id' . '}', + ObjectSerializer::toPathValue($org_id), + $resourcePath + ); + } + + + $headers = $this->headerSelector->selectHeaders( + ['application/json', ], + $contentType, + $multipart + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; + foreach ($formParamValueItems as $formParamValueItem) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValueItem + ]; + } + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the form parameters + $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); + } else { + // for HTTP post (form) + $httpBody = ObjectSerializer::buildQuery($formParams); + } + } + + // this endpoint requires Bearer authentication (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $operationHost = $this->config->getHost(); + $query = ObjectSerializer::buildQuery($queryParams); + return new Request( + 'GET', + $operationHost . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation listFileAccessLogs + * + * List File Access Logs + * + * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) + * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listFileAccessLogs'] to see the possible values for this operation + * + * @throws \SeaTable\Client\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return object + */ + public function listFileAccessLogs($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listFileAccessLogs'][0]) + { + list($response) = $this->listFileAccessLogsWithHttpInfo($org_id, $page, $per_page, $contentType); + return $response; + } + + /** + * Operation listFileAccessLogsWithHttpInfo + * + * List File Access Logs + * + * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) + * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listFileAccessLogs'] to see the possible values for this operation + * + * @throws \SeaTable\Client\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return array of object, HTTP status code, HTTP response headers (array of strings) + */ + public function listFileAccessLogsWithHttpInfo($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listFileAccessLogs'][0]) + { + $request = $this->listFileAccessLogsRequest($org_id, $page, $per_page, $contentType); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? (string) $e->getResponse()->getBody() : null + ); + } catch (ConnectException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + null, + null + ); + } + + $statusCode = $response->getStatusCode(); + + + switch($statusCode) { + case 200: + return $this->handleResponseWithDataType( + 'object', + $request, + $response, + ); + } + + + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + + return $this->handleResponseWithDataType( + 'object', + $request, + $response, + ); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + 'object', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; + } + + + throw $e; + } + } + + /** + * Operation listFileAccessLogsAsync + * + * List File Access Logs + * + * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) + * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listFileAccessLogs'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listFileAccessLogsAsync($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listFileAccessLogs'][0]) + { + return $this->listFileAccessLogsAsyncWithHttpInfo($org_id, $page, $per_page, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation listFileAccessLogsAsyncWithHttpInfo + * + * List File Access Logs + * + * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) + * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listFileAccessLogs'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listFileAccessLogsAsyncWithHttpInfo($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listFileAccessLogs'][0]) + { + $returnType = 'object'; + $request = $this->listFileAccessLogsRequest($org_id, $page, $per_page, $contentType); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'listFileAccessLogs' + * + * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) + * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listFileAccessLogs'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function listFileAccessLogsRequest($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listFileAccessLogs'][0]) + { + + // verify the required parameter 'org_id' is set + if ($org_id === null || (is_array($org_id) && count($org_id) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $org_id when calling listFileAccessLogs' + ); + } + if ($org_id < 1) { + throw new \InvalidArgumentException('invalid value for "$org_id" when calling ActivitiesLogsApi.listFileAccessLogs, must be bigger than or equal to 1.'); + } + + if ($page !== null && $page < 1) { + throw new \InvalidArgumentException('invalid value for "$page" when calling ActivitiesLogsApi.listFileAccessLogs, must be bigger than or equal to 1.'); + } + + if ($per_page !== null && $per_page < 1) { + throw new \InvalidArgumentException('invalid value for "$per_page" when calling ActivitiesLogsApi.listFileAccessLogs, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/api/v2.1/org/{org_id}/admin/file-access-logs/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $page, + 'page', // param base name + 'integer', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $per_page, + 'per_page', // param base name + 'integer', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + + + // path params + if ($org_id !== null) { + $resourcePath = str_replace( + '{' . 'org_id' . '}', + ObjectSerializer::toPathValue($org_id), + $resourcePath + ); + } + + + $headers = $this->headerSelector->selectHeaders( + ['application/json', ], + $contentType, + $multipart + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; + foreach ($formParamValueItems as $formParamValueItem) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValueItem + ]; + } + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); - /** - * Set the host index - * - * @param int $hostIndex Host index (required) - */ - public function setHostIndex($hostIndex): void - { - $this->hostIndex = $hostIndex; - } + } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the form parameters + $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); + } else { + // for HTTP post (form) + $httpBody = ObjectSerializer::buildQuery($formParams); + } + } - /** - * Get the host index - * - * @return int Host index - */ - public function getHostIndex() - { - return $this->hostIndex; - } + // this endpoint requires Bearer authentication (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } - /** - * @return Configuration - */ - public function getConfig() - { - return $this->config; + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $operationHost = $this->config->getHost(); + $query = ObjectSerializer::buildQuery($queryParams); + return new Request( + 'GET', + $operationHost . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); } /** - * Operation listFileAccessLogs + * Operation listGroupMemberAuditLogs * - * List File Access Logs + * List Group Member Audit Logs * * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listFileAccessLogs'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listGroupMemberAuditLogs'] to see the possible values for this operation * * @throws \SeaTable\Client\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException * @return object */ - public function listFileAccessLogs($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listFileAccessLogs'][0]) + public function listGroupMemberAuditLogs($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listGroupMemberAuditLogs'][0]) { - list($response) = $this->listFileAccessLogsWithHttpInfo($org_id, $page, $per_page, $contentType); + list($response) = $this->listGroupMemberAuditLogsWithHttpInfo($org_id, $page, $per_page, $contentType); return $response; } /** - * Operation listFileAccessLogsWithHttpInfo + * Operation listGroupMemberAuditLogsWithHttpInfo * - * List File Access Logs + * List Group Member Audit Logs * * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listFileAccessLogs'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listGroupMemberAuditLogs'] to see the possible values for this operation * * @throws \SeaTable\Client\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException * @return array of object, HTTP status code, HTTP response headers (array of strings) */ - public function listFileAccessLogsWithHttpInfo($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listFileAccessLogs'][0]) + public function listGroupMemberAuditLogsWithHttpInfo($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listGroupMemberAuditLogs'][0]) { - $request = $this->listFileAccessLogsRequest($org_id, $page, $per_page, $contentType); + $request = $this->listGroupMemberAuditLogsRequest($org_id, $page, $per_page, $contentType); try { $options = $this->createHttpClientOption(); @@ -244,21 +902,21 @@ public function listFileAccessLogsWithHttpInfo($org_id, $page = null, $per_page } /** - * Operation listFileAccessLogsAsync + * Operation listGroupMemberAuditLogsAsync * - * List File Access Logs + * List Group Member Audit Logs * * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listFileAccessLogs'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listGroupMemberAuditLogs'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function listFileAccessLogsAsync($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listFileAccessLogs'][0]) + public function listGroupMemberAuditLogsAsync($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listGroupMemberAuditLogs'][0]) { - return $this->listFileAccessLogsAsyncWithHttpInfo($org_id, $page, $per_page, $contentType) + return $this->listGroupMemberAuditLogsAsyncWithHttpInfo($org_id, $page, $per_page, $contentType) ->then( function ($response) { return $response[0]; @@ -267,22 +925,22 @@ function ($response) { } /** - * Operation listFileAccessLogsAsyncWithHttpInfo + * Operation listGroupMemberAuditLogsAsyncWithHttpInfo * - * List File Access Logs + * List Group Member Audit Logs * * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listFileAccessLogs'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listGroupMemberAuditLogs'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function listFileAccessLogsAsyncWithHttpInfo($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listFileAccessLogs'][0]) + public function listGroupMemberAuditLogsAsyncWithHttpInfo($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listGroupMemberAuditLogs'][0]) { $returnType = 'object'; - $request = $this->listFileAccessLogsRequest($org_id, $page, $per_page, $contentType); + $request = $this->listGroupMemberAuditLogsRequest($org_id, $page, $per_page, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -321,39 +979,39 @@ function ($exception) { } /** - * Create request for operation 'listFileAccessLogs' + * Create request for operation 'listGroupMemberAuditLogs' * * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listFileAccessLogs'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listGroupMemberAuditLogs'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function listFileAccessLogsRequest($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listFileAccessLogs'][0]) + public function listGroupMemberAuditLogsRequest($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listGroupMemberAuditLogs'][0]) { // verify the required parameter 'org_id' is set if ($org_id === null || (is_array($org_id) && count($org_id) === 0)) { throw new \InvalidArgumentException( - 'Missing the required parameter $org_id when calling listFileAccessLogs' + 'Missing the required parameter $org_id when calling listGroupMemberAuditLogs' ); } if ($org_id < 1) { - throw new \InvalidArgumentException('invalid value for "$org_id" when calling ActivitiesLogsApi.listFileAccessLogs, must be bigger than or equal to 1.'); + throw new \InvalidArgumentException('invalid value for "$org_id" when calling ActivitiesLogsApi.listGroupMemberAuditLogs, must be bigger than or equal to 1.'); } if ($page !== null && $page < 1) { - throw new \InvalidArgumentException('invalid value for "$page" when calling ActivitiesLogsApi.listFileAccessLogs, must be bigger than or equal to 1.'); + throw new \InvalidArgumentException('invalid value for "$page" when calling ActivitiesLogsApi.listGroupMemberAuditLogs, must be bigger than or equal to 1.'); } if ($per_page !== null && $per_page < 1) { - throw new \InvalidArgumentException('invalid value for "$per_page" when calling ActivitiesLogsApi.listFileAccessLogs, must be bigger than or equal to 1.'); + throw new \InvalidArgumentException('invalid value for "$per_page" when calling ActivitiesLogsApi.listGroupMemberAuditLogs, must be bigger than or equal to 1.'); } - $resourcePath = '/api/v2.1/org/{org_id}/admin/file-access-logs/'; + $resourcePath = '/api/v2.1/org/{org_id}/admin/group-member-audit/'; $formParams = []; $queryParams = []; $headerParams = []; @@ -448,42 +1106,46 @@ public function listFileAccessLogsRequest($org_id, $page = null, $per_page = nul } /** - * Operation listGroupMemberAuditLogs + * Operation listPythonRuns * - * List Group Member Audit Logs + * List Python Runs * - * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param string|null $dtable_uuid The unique identifier of a base. (optional) + * @param \DateTime|null $start Start date in ISO format. (optional) + * @param \DateTime|null $end End date in ISO format. (optional) * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listGroupMemberAuditLogs'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listPythonRuns'] to see the possible values for this operation * * @throws \SeaTable\Client\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException * @return object */ - public function listGroupMemberAuditLogs($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listGroupMemberAuditLogs'][0]) + public function listPythonRuns($dtable_uuid = null, $start = null, $end = null, $page = null, $per_page = null, string $contentType = self::contentTypes['listPythonRuns'][0]) { - list($response) = $this->listGroupMemberAuditLogsWithHttpInfo($org_id, $page, $per_page, $contentType); + list($response) = $this->listPythonRunsWithHttpInfo($dtable_uuid, $start, $end, $page, $per_page, $contentType); return $response; } /** - * Operation listGroupMemberAuditLogsWithHttpInfo + * Operation listPythonRunsWithHttpInfo * - * List Group Member Audit Logs + * List Python Runs * - * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param string|null $dtable_uuid The unique identifier of a base. (optional) + * @param \DateTime|null $start Start date in ISO format. (optional) + * @param \DateTime|null $end End date in ISO format. (optional) * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listGroupMemberAuditLogs'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listPythonRuns'] to see the possible values for this operation * * @throws \SeaTable\Client\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException * @return array of object, HTTP status code, HTTP response headers (array of strings) */ - public function listGroupMemberAuditLogsWithHttpInfo($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listGroupMemberAuditLogs'][0]) + public function listPythonRunsWithHttpInfo($dtable_uuid = null, $start = null, $end = null, $page = null, $per_page = null, string $contentType = self::contentTypes['listPythonRuns'][0]) { - $request = $this->listGroupMemberAuditLogsRequest($org_id, $page, $per_page, $contentType); + $request = $this->listPythonRunsRequest($dtable_uuid, $start, $end, $page, $per_page, $contentType); try { $options = $this->createHttpClientOption(); @@ -555,21 +1217,23 @@ public function listGroupMemberAuditLogsWithHttpInfo($org_id, $page = null, $per } /** - * Operation listGroupMemberAuditLogsAsync + * Operation listPythonRunsAsync * - * List Group Member Audit Logs + * List Python Runs * - * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param string|null $dtable_uuid The unique identifier of a base. (optional) + * @param \DateTime|null $start Start date in ISO format. (optional) + * @param \DateTime|null $end End date in ISO format. (optional) * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listGroupMemberAuditLogs'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listPythonRuns'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function listGroupMemberAuditLogsAsync($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listGroupMemberAuditLogs'][0]) + public function listPythonRunsAsync($dtable_uuid = null, $start = null, $end = null, $page = null, $per_page = null, string $contentType = self::contentTypes['listPythonRuns'][0]) { - return $this->listGroupMemberAuditLogsAsyncWithHttpInfo($org_id, $page, $per_page, $contentType) + return $this->listPythonRunsAsyncWithHttpInfo($dtable_uuid, $start, $end, $page, $per_page, $contentType) ->then( function ($response) { return $response[0]; @@ -578,22 +1242,24 @@ function ($response) { } /** - * Operation listGroupMemberAuditLogsAsyncWithHttpInfo + * Operation listPythonRunsAsyncWithHttpInfo * - * List Group Member Audit Logs + * List Python Runs * - * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param string|null $dtable_uuid The unique identifier of a base. (optional) + * @param \DateTime|null $start Start date in ISO format. (optional) + * @param \DateTime|null $end End date in ISO format. (optional) * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listGroupMemberAuditLogs'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listPythonRuns'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function listGroupMemberAuditLogsAsyncWithHttpInfo($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listGroupMemberAuditLogs'][0]) + public function listPythonRunsAsyncWithHttpInfo($dtable_uuid = null, $start = null, $end = null, $page = null, $per_page = null, string $contentType = self::contentTypes['listPythonRuns'][0]) { $returnType = 'object'; - $request = $this->listGroupMemberAuditLogsRequest($org_id, $page, $per_page, $contentType); + $request = $this->listPythonRunsRequest($dtable_uuid, $start, $end, $page, $per_page, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -632,45 +1298,70 @@ function ($exception) { } /** - * Create request for operation 'listGroupMemberAuditLogs' + * Create request for operation 'listPythonRuns' * - * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param string|null $dtable_uuid The unique identifier of a base. (optional) + * @param \DateTime|null $start Start date in ISO format. (optional) + * @param \DateTime|null $end End date in ISO format. (optional) * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listGroupMemberAuditLogs'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listPythonRuns'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function listGroupMemberAuditLogsRequest($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listGroupMemberAuditLogs'][0]) + public function listPythonRunsRequest($dtable_uuid = null, $start = null, $end = null, $page = null, $per_page = null, string $contentType = self::contentTypes['listPythonRuns'][0]) { - // verify the required parameter 'org_id' is set - if ($org_id === null || (is_array($org_id) && count($org_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $org_id when calling listGroupMemberAuditLogs' - ); - } - if ($org_id < 1) { - throw new \InvalidArgumentException('invalid value for "$org_id" when calling ActivitiesLogsApi.listGroupMemberAuditLogs, must be bigger than or equal to 1.'); + if ($dtable_uuid !== null && !preg_match("/^[0-9a-fA-F]{8}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{12}$/", $dtable_uuid)) { + throw new \InvalidArgumentException("invalid value for \"dtable_uuid\" when calling ActivitiesLogsApi.listPythonRuns, must conform to the pattern /^[0-9a-fA-F]{8}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{12}$/."); } + + if ($page !== null && $page < 1) { - throw new \InvalidArgumentException('invalid value for "$page" when calling ActivitiesLogsApi.listGroupMemberAuditLogs, must be bigger than or equal to 1.'); + throw new \InvalidArgumentException('invalid value for "$page" when calling ActivitiesLogsApi.listPythonRuns, must be bigger than or equal to 1.'); } if ($per_page !== null && $per_page < 1) { - throw new \InvalidArgumentException('invalid value for "$per_page" when calling ActivitiesLogsApi.listGroupMemberAuditLogs, must be bigger than or equal to 1.'); + throw new \InvalidArgumentException('invalid value for "$per_page" when calling ActivitiesLogsApi.listPythonRuns, must be bigger than or equal to 1.'); } - $resourcePath = '/api/v2.1/org/{org_id}/admin/group-member-audit/'; + $resourcePath = '/api/v2.1/org/{org_id}/admin/python-runs/'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; $multipart = false; + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $dtable_uuid, + 'dtable_uuid', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $start, + 'start', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $end, + 'end', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); // query params $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( $page, @@ -691,14 +1382,6 @@ public function listGroupMemberAuditLogsRequest($org_id, $page = null, $per_page ) ?? []); - // path params - if ($org_id !== null) { - $resourcePath = str_replace( - '{' . 'org_id' . '}', - ObjectSerializer::toPathValue($org_id), - $resourcePath - ); - } $headers = $this->headerSelector->selectHeaders( @@ -766,15 +1449,18 @@ public function listGroupMemberAuditLogsRequest($org_id, $page = null, $per_page * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) + * @param string|null $login_status Set this to `success` to only return successful logins. By default, all logins are returned. (optional) + * @param \DateTime|null $start Start date in ISO format. (optional) + * @param \DateTime|null $end End date in ISO format. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listTeamLogins'] to see the possible values for this operation * * @throws \SeaTable\Client\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException * @return object */ - public function listTeamLogins($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listTeamLogins'][0]) + public function listTeamLogins($org_id, $page = null, $per_page = null, $login_status = null, $start = null, $end = null, string $contentType = self::contentTypes['listTeamLogins'][0]) { - list($response) = $this->listTeamLoginsWithHttpInfo($org_id, $page, $per_page, $contentType); + list($response) = $this->listTeamLoginsWithHttpInfo($org_id, $page, $per_page, $login_status, $start, $end, $contentType); return $response; } @@ -786,15 +1472,18 @@ public function listTeamLogins($org_id, $page = null, $per_page = null, string $ * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) + * @param string|null $login_status Set this to `success` to only return successful logins. By default, all logins are returned. (optional) + * @param \DateTime|null $start Start date in ISO format. (optional) + * @param \DateTime|null $end End date in ISO format. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listTeamLogins'] to see the possible values for this operation * * @throws \SeaTable\Client\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException * @return array of object, HTTP status code, HTTP response headers (array of strings) */ - public function listTeamLoginsWithHttpInfo($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listTeamLogins'][0]) + public function listTeamLoginsWithHttpInfo($org_id, $page = null, $per_page = null, $login_status = null, $start = null, $end = null, string $contentType = self::contentTypes['listTeamLogins'][0]) { - $request = $this->listTeamLoginsRequest($org_id, $page, $per_page, $contentType); + $request = $this->listTeamLoginsRequest($org_id, $page, $per_page, $login_status, $start, $end, $contentType); try { $options = $this->createHttpClientOption(); @@ -873,14 +1562,17 @@ public function listTeamLoginsWithHttpInfo($org_id, $page = null, $per_page = nu * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) + * @param string|null $login_status Set this to `success` to only return successful logins. By default, all logins are returned. (optional) + * @param \DateTime|null $start Start date in ISO format. (optional) + * @param \DateTime|null $end End date in ISO format. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listTeamLogins'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function listTeamLoginsAsync($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listTeamLogins'][0]) + public function listTeamLoginsAsync($org_id, $page = null, $per_page = null, $login_status = null, $start = null, $end = null, string $contentType = self::contentTypes['listTeamLogins'][0]) { - return $this->listTeamLoginsAsyncWithHttpInfo($org_id, $page, $per_page, $contentType) + return $this->listTeamLoginsAsyncWithHttpInfo($org_id, $page, $per_page, $login_status, $start, $end, $contentType) ->then( function ($response) { return $response[0]; @@ -896,15 +1588,18 @@ function ($response) { * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) + * @param string|null $login_status Set this to `success` to only return successful logins. By default, all logins are returned. (optional) + * @param \DateTime|null $start Start date in ISO format. (optional) + * @param \DateTime|null $end End date in ISO format. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listTeamLogins'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function listTeamLoginsAsyncWithHttpInfo($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listTeamLogins'][0]) + public function listTeamLoginsAsyncWithHttpInfo($org_id, $page = null, $per_page = null, $login_status = null, $start = null, $end = null, string $contentType = self::contentTypes['listTeamLogins'][0]) { $returnType = 'object'; - $request = $this->listTeamLoginsRequest($org_id, $page, $per_page, $contentType); + $request = $this->listTeamLoginsRequest($org_id, $page, $per_page, $login_status, $start, $end, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -948,12 +1643,15 @@ function ($exception) { * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) + * @param string|null $login_status Set this to `success` to only return successful logins. By default, all logins are returned. (optional) + * @param \DateTime|null $start Start date in ISO format. (optional) + * @param \DateTime|null $end End date in ISO format. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listTeamLogins'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function listTeamLoginsRequest($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listTeamLogins'][0]) + public function listTeamLoginsRequest($org_id, $page = null, $per_page = null, $login_status = null, $start = null, $end = null, string $contentType = self::contentTypes['listTeamLogins'][0]) { // verify the required parameter 'org_id' is set @@ -975,6 +1673,9 @@ public function listTeamLoginsRequest($org_id, $page = null, $per_page = null, s } + + + $resourcePath = '/api/v2.1/org/{org_id}/admin/login-logs/'; $formParams = []; $queryParams = []; @@ -1000,6 +1701,33 @@ public function listTeamLoginsRequest($org_id, $page = null, $per_page = null, s true, // explode false // required ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $login_status, + 'login_status', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $start, + 'start', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $end, + 'end', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); // path params @@ -1077,15 +1805,18 @@ public function listTeamLoginsRequest($org_id, $page = null, $per_page = null, s * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) + * @param string|null $operation_group Filter by a specific operation group. By default, all operations are returned. (optional) + * @param \DateTime|null $start Start date in ISO format. (optional) + * @param \DateTime|null $end End date in ISO format. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listTeamOperationLog'] to see the possible values for this operation * * @throws \SeaTable\Client\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException * @return object */ - public function listTeamOperationLog($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listTeamOperationLog'][0]) + public function listTeamOperationLog($org_id, $page = null, $per_page = null, $operation_group = null, $start = null, $end = null, string $contentType = self::contentTypes['listTeamOperationLog'][0]) { - list($response) = $this->listTeamOperationLogWithHttpInfo($org_id, $page, $per_page, $contentType); + list($response) = $this->listTeamOperationLogWithHttpInfo($org_id, $page, $per_page, $operation_group, $start, $end, $contentType); return $response; } @@ -1097,15 +1828,18 @@ public function listTeamOperationLog($org_id, $page = null, $per_page = null, st * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) + * @param string|null $operation_group Filter by a specific operation group. By default, all operations are returned. (optional) + * @param \DateTime|null $start Start date in ISO format. (optional) + * @param \DateTime|null $end End date in ISO format. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listTeamOperationLog'] to see the possible values for this operation * * @throws \SeaTable\Client\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException * @return array of object, HTTP status code, HTTP response headers (array of strings) */ - public function listTeamOperationLogWithHttpInfo($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listTeamOperationLog'][0]) + public function listTeamOperationLogWithHttpInfo($org_id, $page = null, $per_page = null, $operation_group = null, $start = null, $end = null, string $contentType = self::contentTypes['listTeamOperationLog'][0]) { - $request = $this->listTeamOperationLogRequest($org_id, $page, $per_page, $contentType); + $request = $this->listTeamOperationLogRequest($org_id, $page, $per_page, $operation_group, $start, $end, $contentType); try { $options = $this->createHttpClientOption(); @@ -1184,14 +1918,17 @@ public function listTeamOperationLogWithHttpInfo($org_id, $page = null, $per_pag * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) + * @param string|null $operation_group Filter by a specific operation group. By default, all operations are returned. (optional) + * @param \DateTime|null $start Start date in ISO format. (optional) + * @param \DateTime|null $end End date in ISO format. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listTeamOperationLog'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function listTeamOperationLogAsync($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listTeamOperationLog'][0]) + public function listTeamOperationLogAsync($org_id, $page = null, $per_page = null, $operation_group = null, $start = null, $end = null, string $contentType = self::contentTypes['listTeamOperationLog'][0]) { - return $this->listTeamOperationLogAsyncWithHttpInfo($org_id, $page, $per_page, $contentType) + return $this->listTeamOperationLogAsyncWithHttpInfo($org_id, $page, $per_page, $operation_group, $start, $end, $contentType) ->then( function ($response) { return $response[0]; @@ -1207,15 +1944,18 @@ function ($response) { * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) + * @param string|null $operation_group Filter by a specific operation group. By default, all operations are returned. (optional) + * @param \DateTime|null $start Start date in ISO format. (optional) + * @param \DateTime|null $end End date in ISO format. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listTeamOperationLog'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function listTeamOperationLogAsyncWithHttpInfo($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listTeamOperationLog'][0]) + public function listTeamOperationLogAsyncWithHttpInfo($org_id, $page = null, $per_page = null, $operation_group = null, $start = null, $end = null, string $contentType = self::contentTypes['listTeamOperationLog'][0]) { $returnType = 'object'; - $request = $this->listTeamOperationLogRequest($org_id, $page, $per_page, $contentType); + $request = $this->listTeamOperationLogRequest($org_id, $page, $per_page, $operation_group, $start, $end, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1259,12 +1999,15 @@ function ($exception) { * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) + * @param string|null $operation_group Filter by a specific operation group. By default, all operations are returned. (optional) + * @param \DateTime|null $start Start date in ISO format. (optional) + * @param \DateTime|null $end End date in ISO format. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listTeamOperationLog'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function listTeamOperationLogRequest($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listTeamOperationLog'][0]) + public function listTeamOperationLogRequest($org_id, $page = null, $per_page = null, $operation_group = null, $start = null, $end = null, string $contentType = self::contentTypes['listTeamOperationLog'][0]) { // verify the required parameter 'org_id' is set @@ -1286,6 +2029,9 @@ public function listTeamOperationLogRequest($org_id, $page = null, $per_page = n } + + + $resourcePath = '/api/v2.1/org/{org_id}/admin/admin-logs/'; $formParams = []; $queryParams = []; @@ -1311,6 +2057,33 @@ public function listTeamOperationLogRequest($org_id, $page = null, $per_page = n true, // explode false // required ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $operation_group, + 'operation_group', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $start, + 'start', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $end, + 'end', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); // path params @@ -1730,6 +2503,14 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } diff --git a/lib/TeamAdmin/BasesApi.php b/lib/TeamAdmin/BasesApi.php index f0d5804c..8a3dc391 100644 --- a/lib/TeamAdmin/BasesApi.php +++ b/lib/TeamAdmin/BasesApi.php @@ -76,12 +76,21 @@ class BasesApi 'clearTeamTrashBin' => [ 'application/json', ], + 'deleteApiToken' => [ + 'application/json', + ], 'deleteBase' => [ 'application/json', ], 'getBase' => [ 'application/json', ], + 'listApiTokens' => [ + 'application/json', + ], + 'listApiTokensOfAllBases' => [ + 'application/json', + ], 'listBaseSharings' => [ 'application/json', ], @@ -91,6 +100,9 @@ class BasesApi 'listTrashBases' => [ 'application/json', ], + 'listUsersBases' => [ + 'application/json', + ], 'restoreBaseFromTrash' => [ 'application/json', ], @@ -421,40 +433,42 @@ public function clearTeamTrashBinRequest($org_id, string $contentType = self::co } /** - * Operation deleteBase + * Operation deleteApiToken * - * Delete Base + * Delete API-Token * * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) * @param string $base_uuid The unique identifier of a base. Sometimes also called dtable_uuid. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteBase'] to see the possible values for this operation + * @param string $app_name The name of your app. Every API-Token has a name to identify the purpose. The name of the app must be unique for every base. (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteApiToken'] to see the possible values for this operation * * @throws \SeaTable\Client\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException * @return object */ - public function deleteBase($org_id, $base_uuid, string $contentType = self::contentTypes['deleteBase'][0]) + public function deleteApiToken($org_id, $base_uuid, $app_name, string $contentType = self::contentTypes['deleteApiToken'][0]) { - list($response) = $this->deleteBaseWithHttpInfo($org_id, $base_uuid, $contentType); + list($response) = $this->deleteApiTokenWithHttpInfo($org_id, $base_uuid, $app_name, $contentType); return $response; } /** - * Operation deleteBaseWithHttpInfo + * Operation deleteApiTokenWithHttpInfo * - * Delete Base + * Delete API-Token * * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) * @param string $base_uuid The unique identifier of a base. Sometimes also called dtable_uuid. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteBase'] to see the possible values for this operation + * @param string $app_name The name of your app. Every API-Token has a name to identify the purpose. The name of the app must be unique for every base. (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteApiToken'] to see the possible values for this operation * * @throws \SeaTable\Client\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException * @return array of object, HTTP status code, HTTP response headers (array of strings) */ - public function deleteBaseWithHttpInfo($org_id, $base_uuid, string $contentType = self::contentTypes['deleteBase'][0]) + public function deleteApiTokenWithHttpInfo($org_id, $base_uuid, $app_name, string $contentType = self::contentTypes['deleteApiToken'][0]) { - $request = $this->deleteBaseRequest($org_id, $base_uuid, $contentType); + $request = $this->deleteApiTokenRequest($org_id, $base_uuid, $app_name, $contentType); try { $options = $this->createHttpClientOption(); @@ -526,20 +540,21 @@ public function deleteBaseWithHttpInfo($org_id, $base_uuid, string $contentType } /** - * Operation deleteBaseAsync + * Operation deleteApiTokenAsync * - * Delete Base + * Delete API-Token * * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) * @param string $base_uuid The unique identifier of a base. Sometimes also called dtable_uuid. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteBase'] to see the possible values for this operation + * @param string $app_name The name of your app. Every API-Token has a name to identify the purpose. The name of the app must be unique for every base. (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteApiToken'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteBaseAsync($org_id, $base_uuid, string $contentType = self::contentTypes['deleteBase'][0]) + public function deleteApiTokenAsync($org_id, $base_uuid, $app_name, string $contentType = self::contentTypes['deleteApiToken'][0]) { - return $this->deleteBaseAsyncWithHttpInfo($org_id, $base_uuid, $contentType) + return $this->deleteApiTokenAsyncWithHttpInfo($org_id, $base_uuid, $app_name, $contentType) ->then( function ($response) { return $response[0]; @@ -548,21 +563,22 @@ function ($response) { } /** - * Operation deleteBaseAsyncWithHttpInfo + * Operation deleteApiTokenAsyncWithHttpInfo * - * Delete Base + * Delete API-Token * * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) * @param string $base_uuid The unique identifier of a base. Sometimes also called dtable_uuid. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteBase'] to see the possible values for this operation + * @param string $app_name The name of your app. Every API-Token has a name to identify the purpose. The name of the app must be unique for every base. (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteApiToken'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteBaseAsyncWithHttpInfo($org_id, $base_uuid, string $contentType = self::contentTypes['deleteBase'][0]) + public function deleteApiTokenAsyncWithHttpInfo($org_id, $base_uuid, $app_name, string $contentType = self::contentTypes['deleteApiToken'][0]) { $returnType = 'object'; - $request = $this->deleteBaseRequest($org_id, $base_uuid, $contentType); + $request = $this->deleteApiTokenRequest($org_id, $base_uuid, $app_name, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -601,40 +617,48 @@ function ($exception) { } /** - * Create request for operation 'deleteBase' + * Create request for operation 'deleteApiToken' * * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) * @param string $base_uuid The unique identifier of a base. Sometimes also called dtable_uuid. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteBase'] to see the possible values for this operation + * @param string $app_name The name of your app. Every API-Token has a name to identify the purpose. The name of the app must be unique for every base. (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteApiToken'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function deleteBaseRequest($org_id, $base_uuid, string $contentType = self::contentTypes['deleteBase'][0]) + public function deleteApiTokenRequest($org_id, $base_uuid, $app_name, string $contentType = self::contentTypes['deleteApiToken'][0]) { // verify the required parameter 'org_id' is set if ($org_id === null || (is_array($org_id) && count($org_id) === 0)) { throw new \InvalidArgumentException( - 'Missing the required parameter $org_id when calling deleteBase' + 'Missing the required parameter $org_id when calling deleteApiToken' ); } if ($org_id < 1) { - throw new \InvalidArgumentException('invalid value for "$org_id" when calling BasesApi.deleteBase, must be bigger than or equal to 1.'); + throw new \InvalidArgumentException('invalid value for "$org_id" when calling BasesApi.deleteApiToken, must be bigger than or equal to 1.'); } // verify the required parameter 'base_uuid' is set if ($base_uuid === null || (is_array($base_uuid) && count($base_uuid) === 0)) { throw new \InvalidArgumentException( - 'Missing the required parameter $base_uuid when calling deleteBase' + 'Missing the required parameter $base_uuid when calling deleteApiToken' ); } if (!preg_match("/^[0-9a-fA-F]{8}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{12}$/", $base_uuid)) { - throw new \InvalidArgumentException("invalid value for \"base_uuid\" when calling BasesApi.deleteBase, must conform to the pattern /^[0-9a-fA-F]{8}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{12}$/."); + throw new \InvalidArgumentException("invalid value for \"base_uuid\" when calling BasesApi.deleteApiToken, must conform to the pattern /^[0-9a-fA-F]{8}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{12}$/."); } + // verify the required parameter 'app_name' is set + if ($app_name === null || (is_array($app_name) && count($app_name) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $app_name when calling deleteApiToken' + ); + } - $resourcePath = '/api/v2.1/org/{org_id}/admin/dtables/{base_uuid}/'; + + $resourcePath = '/api/v2.1/org/{org_id}/admin/dtables/{base_uuid}/api-tokens/{app_name}/'; $formParams = []; $queryParams = []; $headerParams = []; @@ -659,6 +683,14 @@ public function deleteBaseRequest($org_id, $base_uuid, string $contentType = sel $resourcePath ); } + // path params + if ($app_name !== null) { + $resourcePath = str_replace( + '{' . 'app_name' . '}', + ObjectSerializer::toPathValue($app_name), + $resourcePath + ); + } $headers = $this->headerSelector->selectHeaders( @@ -719,40 +751,1245 @@ public function deleteBaseRequest($org_id, $base_uuid, string $contentType = sel } /** - * Operation getBase + * Operation deleteBase * - * Get Base + * Delete Base + * + * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param string $base_uuid The unique identifier of a base. Sometimes also called dtable_uuid. (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteBase'] to see the possible values for this operation + * + * @throws \SeaTable\Client\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return object + */ + public function deleteBase($org_id, $base_uuid, string $contentType = self::contentTypes['deleteBase'][0]) + { + list($response) = $this->deleteBaseWithHttpInfo($org_id, $base_uuid, $contentType); + return $response; + } + + /** + * Operation deleteBaseWithHttpInfo + * + * Delete Base + * + * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param string $base_uuid The unique identifier of a base. Sometimes also called dtable_uuid. (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteBase'] to see the possible values for this operation + * + * @throws \SeaTable\Client\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return array of object, HTTP status code, HTTP response headers (array of strings) + */ + public function deleteBaseWithHttpInfo($org_id, $base_uuid, string $contentType = self::contentTypes['deleteBase'][0]) + { + $request = $this->deleteBaseRequest($org_id, $base_uuid, $contentType); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? (string) $e->getResponse()->getBody() : null + ); + } catch (ConnectException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + null, + null + ); + } + + $statusCode = $response->getStatusCode(); + + + switch($statusCode) { + case 200: + return $this->handleResponseWithDataType( + 'object', + $request, + $response, + ); + } + + + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + + return $this->handleResponseWithDataType( + 'object', + $request, + $response, + ); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + 'object', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; + } + + + throw $e; + } + } + + /** + * Operation deleteBaseAsync + * + * Delete Base + * + * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param string $base_uuid The unique identifier of a base. Sometimes also called dtable_uuid. (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteBase'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteBaseAsync($org_id, $base_uuid, string $contentType = self::contentTypes['deleteBase'][0]) + { + return $this->deleteBaseAsyncWithHttpInfo($org_id, $base_uuid, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation deleteBaseAsyncWithHttpInfo + * + * Delete Base + * + * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param string $base_uuid The unique identifier of a base. Sometimes also called dtable_uuid. (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteBase'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteBaseAsyncWithHttpInfo($org_id, $base_uuid, string $contentType = self::contentTypes['deleteBase'][0]) + { + $returnType = 'object'; + $request = $this->deleteBaseRequest($org_id, $base_uuid, $contentType); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'deleteBase' + * + * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param string $base_uuid The unique identifier of a base. Sometimes also called dtable_uuid. (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteBase'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function deleteBaseRequest($org_id, $base_uuid, string $contentType = self::contentTypes['deleteBase'][0]) + { + + // verify the required parameter 'org_id' is set + if ($org_id === null || (is_array($org_id) && count($org_id) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $org_id when calling deleteBase' + ); + } + if ($org_id < 1) { + throw new \InvalidArgumentException('invalid value for "$org_id" when calling BasesApi.deleteBase, must be bigger than or equal to 1.'); + } + + // verify the required parameter 'base_uuid' is set + if ($base_uuid === null || (is_array($base_uuid) && count($base_uuid) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $base_uuid when calling deleteBase' + ); + } + if (!preg_match("/^[0-9a-fA-F]{8}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{12}$/", $base_uuid)) { + throw new \InvalidArgumentException("invalid value for \"base_uuid\" when calling BasesApi.deleteBase, must conform to the pattern /^[0-9a-fA-F]{8}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{12}$/."); + } + + + $resourcePath = '/api/v2.1/org/{org_id}/admin/dtables/{base_uuid}/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + + + // path params + if ($org_id !== null) { + $resourcePath = str_replace( + '{' . 'org_id' . '}', + ObjectSerializer::toPathValue($org_id), + $resourcePath + ); + } + // path params + if ($base_uuid !== null) { + $resourcePath = str_replace( + '{' . 'base_uuid' . '}', + ObjectSerializer::toPathValue($base_uuid), + $resourcePath + ); + } + + + $headers = $this->headerSelector->selectHeaders( + ['application/json', ], + $contentType, + $multipart + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; + foreach ($formParamValueItems as $formParamValueItem) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValueItem + ]; + } + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the form parameters + $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); + } else { + // for HTTP post (form) + $httpBody = ObjectSerializer::buildQuery($formParams); + } + } + + // this endpoint requires Bearer authentication (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $operationHost = $this->config->getHost(); + $query = ObjectSerializer::buildQuery($queryParams); + return new Request( + 'DELETE', + $operationHost . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getBase + * + * Get Base + * + * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param string $base_uuid The unique identifier of a base. Sometimes also called dtable_uuid. (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getBase'] to see the possible values for this operation + * + * @throws \SeaTable\Client\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return object + */ + public function getBase($org_id, $base_uuid, string $contentType = self::contentTypes['getBase'][0]) + { + list($response) = $this->getBaseWithHttpInfo($org_id, $base_uuid, $contentType); + return $response; + } + + /** + * Operation getBaseWithHttpInfo + * + * Get Base + * + * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param string $base_uuid The unique identifier of a base. Sometimes also called dtable_uuid. (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getBase'] to see the possible values for this operation + * + * @throws \SeaTable\Client\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return array of object, HTTP status code, HTTP response headers (array of strings) + */ + public function getBaseWithHttpInfo($org_id, $base_uuid, string $contentType = self::contentTypes['getBase'][0]) + { + $request = $this->getBaseRequest($org_id, $base_uuid, $contentType); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? (string) $e->getResponse()->getBody() : null + ); + } catch (ConnectException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + null, + null + ); + } + + $statusCode = $response->getStatusCode(); + + + switch($statusCode) { + case 200: + return $this->handleResponseWithDataType( + 'object', + $request, + $response, + ); + } + + + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + + return $this->handleResponseWithDataType( + 'object', + $request, + $response, + ); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + 'object', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; + } + + + throw $e; + } + } + + /** + * Operation getBaseAsync + * + * Get Base + * + * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param string $base_uuid The unique identifier of a base. Sometimes also called dtable_uuid. (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getBase'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getBaseAsync($org_id, $base_uuid, string $contentType = self::contentTypes['getBase'][0]) + { + return $this->getBaseAsyncWithHttpInfo($org_id, $base_uuid, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getBaseAsyncWithHttpInfo + * + * Get Base + * + * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param string $base_uuid The unique identifier of a base. Sometimes also called dtable_uuid. (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getBase'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getBaseAsyncWithHttpInfo($org_id, $base_uuid, string $contentType = self::contentTypes['getBase'][0]) + { + $returnType = 'object'; + $request = $this->getBaseRequest($org_id, $base_uuid, $contentType); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getBase' + * + * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param string $base_uuid The unique identifier of a base. Sometimes also called dtable_uuid. (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getBase'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function getBaseRequest($org_id, $base_uuid, string $contentType = self::contentTypes['getBase'][0]) + { + + // verify the required parameter 'org_id' is set + if ($org_id === null || (is_array($org_id) && count($org_id) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $org_id when calling getBase' + ); + } + if ($org_id < 1) { + throw new \InvalidArgumentException('invalid value for "$org_id" when calling BasesApi.getBase, must be bigger than or equal to 1.'); + } + + // verify the required parameter 'base_uuid' is set + if ($base_uuid === null || (is_array($base_uuid) && count($base_uuid) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $base_uuid when calling getBase' + ); + } + if (!preg_match("/^[0-9a-fA-F]{8}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{12}$/", $base_uuid)) { + throw new \InvalidArgumentException("invalid value for \"base_uuid\" when calling BasesApi.getBase, must conform to the pattern /^[0-9a-fA-F]{8}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{12}$/."); + } + + + $resourcePath = '/api/v2.1/org/{org_id}/admin/dtables/{base_uuid}/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + + + // path params + if ($org_id !== null) { + $resourcePath = str_replace( + '{' . 'org_id' . '}', + ObjectSerializer::toPathValue($org_id), + $resourcePath + ); + } + // path params + if ($base_uuid !== null) { + $resourcePath = str_replace( + '{' . 'base_uuid' . '}', + ObjectSerializer::toPathValue($base_uuid), + $resourcePath + ); + } + + + $headers = $this->headerSelector->selectHeaders( + ['application/json', ], + $contentType, + $multipart + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; + foreach ($formParamValueItems as $formParamValueItem) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValueItem + ]; + } + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the form parameters + $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); + } else { + // for HTTP post (form) + $httpBody = ObjectSerializer::buildQuery($formParams); + } + } + + // this endpoint requires Bearer authentication (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $operationHost = $this->config->getHost(); + $query = ObjectSerializer::buildQuery($queryParams); + return new Request( + 'GET', + $operationHost . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation listApiTokens + * + * List API-Tokens + * + * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param string $base_uuid The unique identifier of a base. Sometimes also called dtable_uuid. (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listApiTokens'] to see the possible values for this operation + * + * @throws \SeaTable\Client\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return object + */ + public function listApiTokens($org_id, $base_uuid, string $contentType = self::contentTypes['listApiTokens'][0]) + { + list($response) = $this->listApiTokensWithHttpInfo($org_id, $base_uuid, $contentType); + return $response; + } + + /** + * Operation listApiTokensWithHttpInfo + * + * List API-Tokens + * + * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param string $base_uuid The unique identifier of a base. Sometimes also called dtable_uuid. (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listApiTokens'] to see the possible values for this operation + * + * @throws \SeaTable\Client\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return array of object, HTTP status code, HTTP response headers (array of strings) + */ + public function listApiTokensWithHttpInfo($org_id, $base_uuid, string $contentType = self::contentTypes['listApiTokens'][0]) + { + $request = $this->listApiTokensRequest($org_id, $base_uuid, $contentType); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? (string) $e->getResponse()->getBody() : null + ); + } catch (ConnectException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + null, + null + ); + } + + $statusCode = $response->getStatusCode(); + + + switch($statusCode) { + case 200: + return $this->handleResponseWithDataType( + 'object', + $request, + $response, + ); + } + + + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + + return $this->handleResponseWithDataType( + 'object', + $request, + $response, + ); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + 'object', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; + } + + + throw $e; + } + } + + /** + * Operation listApiTokensAsync + * + * List API-Tokens + * + * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param string $base_uuid The unique identifier of a base. Sometimes also called dtable_uuid. (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listApiTokens'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listApiTokensAsync($org_id, $base_uuid, string $contentType = self::contentTypes['listApiTokens'][0]) + { + return $this->listApiTokensAsyncWithHttpInfo($org_id, $base_uuid, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation listApiTokensAsyncWithHttpInfo + * + * List API-Tokens + * + * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param string $base_uuid The unique identifier of a base. Sometimes also called dtable_uuid. (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listApiTokens'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listApiTokensAsyncWithHttpInfo($org_id, $base_uuid, string $contentType = self::contentTypes['listApiTokens'][0]) + { + $returnType = 'object'; + $request = $this->listApiTokensRequest($org_id, $base_uuid, $contentType); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'listApiTokens' + * + * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param string $base_uuid The unique identifier of a base. Sometimes also called dtable_uuid. (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listApiTokens'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function listApiTokensRequest($org_id, $base_uuid, string $contentType = self::contentTypes['listApiTokens'][0]) + { + + // verify the required parameter 'org_id' is set + if ($org_id === null || (is_array($org_id) && count($org_id) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $org_id when calling listApiTokens' + ); + } + if ($org_id < 1) { + throw new \InvalidArgumentException('invalid value for "$org_id" when calling BasesApi.listApiTokens, must be bigger than or equal to 1.'); + } + + // verify the required parameter 'base_uuid' is set + if ($base_uuid === null || (is_array($base_uuid) && count($base_uuid) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $base_uuid when calling listApiTokens' + ); + } + if (!preg_match("/^[0-9a-fA-F]{8}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{12}$/", $base_uuid)) { + throw new \InvalidArgumentException("invalid value for \"base_uuid\" when calling BasesApi.listApiTokens, must conform to the pattern /^[0-9a-fA-F]{8}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{12}$/."); + } + + + $resourcePath = '/api/v2.1/org/{org_id}/admin/dtables/{base_uuid}/api-tokens/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + + + // path params + if ($org_id !== null) { + $resourcePath = str_replace( + '{' . 'org_id' . '}', + ObjectSerializer::toPathValue($org_id), + $resourcePath + ); + } + // path params + if ($base_uuid !== null) { + $resourcePath = str_replace( + '{' . 'base_uuid' . '}', + ObjectSerializer::toPathValue($base_uuid), + $resourcePath + ); + } + + + $headers = $this->headerSelector->selectHeaders( + ['application/json', ], + $contentType, + $multipart + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; + foreach ($formParamValueItems as $formParamValueItem) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValueItem + ]; + } + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the form parameters + $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); + } else { + // for HTTP post (form) + $httpBody = ObjectSerializer::buildQuery($formParams); + } + } + + // this endpoint requires Bearer authentication (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $operationHost = $this->config->getHost(); + $query = ObjectSerializer::buildQuery($queryParams); + return new Request( + 'GET', + $operationHost . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation listApiTokensOfAllBases + * + * List API-Tokens of All Bases + * + * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) + * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listApiTokensOfAllBases'] to see the possible values for this operation + * + * @throws \SeaTable\Client\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return object + */ + public function listApiTokensOfAllBases($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listApiTokensOfAllBases'][0]) + { + list($response) = $this->listApiTokensOfAllBasesWithHttpInfo($org_id, $page, $per_page, $contentType); + return $response; + } + + /** + * Operation listApiTokensOfAllBasesWithHttpInfo + * + * List API-Tokens of All Bases + * + * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) + * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listApiTokensOfAllBases'] to see the possible values for this operation + * + * @throws \SeaTable\Client\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return array of object, HTTP status code, HTTP response headers (array of strings) + */ + public function listApiTokensOfAllBasesWithHttpInfo($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listApiTokensOfAllBases'][0]) + { + $request = $this->listApiTokensOfAllBasesRequest($org_id, $page, $per_page, $contentType); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? (string) $e->getResponse()->getBody() : null + ); + } catch (ConnectException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + null, + null + ); + } + + $statusCode = $response->getStatusCode(); + + + switch($statusCode) { + case 200: + return $this->handleResponseWithDataType( + 'object', + $request, + $response, + ); + } + + + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + + return $this->handleResponseWithDataType( + 'object', + $request, + $response, + ); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + 'object', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; + } + + + throw $e; + } + } + + /** + * Operation listApiTokensOfAllBasesAsync + * + * List API-Tokens of All Bases + * + * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) + * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listApiTokensOfAllBases'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listApiTokensOfAllBasesAsync($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listApiTokensOfAllBases'][0]) + { + return $this->listApiTokensOfAllBasesAsyncWithHttpInfo($org_id, $page, $per_page, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation listApiTokensOfAllBasesAsyncWithHttpInfo + * + * List API-Tokens of All Bases + * + * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) + * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listApiTokensOfAllBases'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listApiTokensOfAllBasesAsyncWithHttpInfo($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listApiTokensOfAllBases'][0]) + { + $returnType = 'object'; + $request = $this->listApiTokensOfAllBasesRequest($org_id, $page, $per_page, $contentType); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'listApiTokensOfAllBases' + * + * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) + * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listApiTokensOfAllBases'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function listApiTokensOfAllBasesRequest($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listApiTokensOfAllBases'][0]) + { + + // verify the required parameter 'org_id' is set + if ($org_id === null || (is_array($org_id) && count($org_id) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $org_id when calling listApiTokensOfAllBases' + ); + } + if ($org_id < 1) { + throw new \InvalidArgumentException('invalid value for "$org_id" when calling BasesApi.listApiTokensOfAllBases, must be bigger than or equal to 1.'); + } + + if ($page !== null && $page < 1) { + throw new \InvalidArgumentException('invalid value for "$page" when calling BasesApi.listApiTokensOfAllBases, must be bigger than or equal to 1.'); + } + + if ($per_page !== null && $per_page < 1) { + throw new \InvalidArgumentException('invalid value for "$per_page" when calling BasesApi.listApiTokensOfAllBases, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/api/v2.1/org/{org_id}/admin/api-tokens/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $page, + 'page', // param base name + 'integer', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $per_page, + 'per_page', // param base name + 'integer', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + + + // path params + if ($org_id !== null) { + $resourcePath = str_replace( + '{' . 'org_id' . '}', + ObjectSerializer::toPathValue($org_id), + $resourcePath + ); + } + + + $headers = $this->headerSelector->selectHeaders( + ['application/json', ], + $contentType, + $multipart + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; + foreach ($formParamValueItems as $formParamValueItem) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValueItem + ]; + } + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the form parameters + $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); + } else { + // for HTTP post (form) + $httpBody = ObjectSerializer::buildQuery($formParams); + } + } + + // this endpoint requires Bearer authentication (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $operationHost = $this->config->getHost(); + $query = ObjectSerializer::buildQuery($queryParams); + return new Request( + 'GET', + $operationHost . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation listBaseSharings + * + * List Base Sharings * * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) * @param string $base_uuid The unique identifier of a base. Sometimes also called dtable_uuid. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getBase'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listBaseSharings'] to see the possible values for this operation * * @throws \SeaTable\Client\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException * @return object */ - public function getBase($org_id, $base_uuid, string $contentType = self::contentTypes['getBase'][0]) + public function listBaseSharings($org_id, $base_uuid, string $contentType = self::contentTypes['listBaseSharings'][0]) { - list($response) = $this->getBaseWithHttpInfo($org_id, $base_uuid, $contentType); + list($response) = $this->listBaseSharingsWithHttpInfo($org_id, $base_uuid, $contentType); return $response; } /** - * Operation getBaseWithHttpInfo + * Operation listBaseSharingsWithHttpInfo * - * Get Base + * List Base Sharings * * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) * @param string $base_uuid The unique identifier of a base. Sometimes also called dtable_uuid. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getBase'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listBaseSharings'] to see the possible values for this operation * * @throws \SeaTable\Client\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException * @return array of object, HTTP status code, HTTP response headers (array of strings) */ - public function getBaseWithHttpInfo($org_id, $base_uuid, string $contentType = self::contentTypes['getBase'][0]) + public function listBaseSharingsWithHttpInfo($org_id, $base_uuid, string $contentType = self::contentTypes['listBaseSharings'][0]) { - $request = $this->getBaseRequest($org_id, $base_uuid, $contentType); + $request = $this->listBaseSharingsRequest($org_id, $base_uuid, $contentType); try { $options = $this->createHttpClientOption(); @@ -824,20 +2061,20 @@ public function getBaseWithHttpInfo($org_id, $base_uuid, string $contentType = s } /** - * Operation getBaseAsync + * Operation listBaseSharingsAsync * - * Get Base + * List Base Sharings * * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) * @param string $base_uuid The unique identifier of a base. Sometimes also called dtable_uuid. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getBase'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listBaseSharings'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getBaseAsync($org_id, $base_uuid, string $contentType = self::contentTypes['getBase'][0]) + public function listBaseSharingsAsync($org_id, $base_uuid, string $contentType = self::contentTypes['listBaseSharings'][0]) { - return $this->getBaseAsyncWithHttpInfo($org_id, $base_uuid, $contentType) + return $this->listBaseSharingsAsyncWithHttpInfo($org_id, $base_uuid, $contentType) ->then( function ($response) { return $response[0]; @@ -846,21 +2083,21 @@ function ($response) { } /** - * Operation getBaseAsyncWithHttpInfo + * Operation listBaseSharingsAsyncWithHttpInfo * - * Get Base + * List Base Sharings * * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) * @param string $base_uuid The unique identifier of a base. Sometimes also called dtable_uuid. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getBase'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listBaseSharings'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getBaseAsyncWithHttpInfo($org_id, $base_uuid, string $contentType = self::contentTypes['getBase'][0]) + public function listBaseSharingsAsyncWithHttpInfo($org_id, $base_uuid, string $contentType = self::contentTypes['listBaseSharings'][0]) { $returnType = 'object'; - $request = $this->getBaseRequest($org_id, $base_uuid, $contentType); + $request = $this->listBaseSharingsRequest($org_id, $base_uuid, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -899,40 +2136,40 @@ function ($exception) { } /** - * Create request for operation 'getBase' + * Create request for operation 'listBaseSharings' * * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) * @param string $base_uuid The unique identifier of a base. Sometimes also called dtable_uuid. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getBase'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listBaseSharings'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getBaseRequest($org_id, $base_uuid, string $contentType = self::contentTypes['getBase'][0]) + public function listBaseSharingsRequest($org_id, $base_uuid, string $contentType = self::contentTypes['listBaseSharings'][0]) { // verify the required parameter 'org_id' is set if ($org_id === null || (is_array($org_id) && count($org_id) === 0)) { throw new \InvalidArgumentException( - 'Missing the required parameter $org_id when calling getBase' + 'Missing the required parameter $org_id when calling listBaseSharings' ); } if ($org_id < 1) { - throw new \InvalidArgumentException('invalid value for "$org_id" when calling BasesApi.getBase, must be bigger than or equal to 1.'); + throw new \InvalidArgumentException('invalid value for "$org_id" when calling BasesApi.listBaseSharings, must be bigger than or equal to 1.'); } // verify the required parameter 'base_uuid' is set if ($base_uuid === null || (is_array($base_uuid) && count($base_uuid) === 0)) { throw new \InvalidArgumentException( - 'Missing the required parameter $base_uuid when calling getBase' + 'Missing the required parameter $base_uuid when calling listBaseSharings' ); } if (!preg_match("/^[0-9a-fA-F]{8}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{12}$/", $base_uuid)) { - throw new \InvalidArgumentException("invalid value for \"base_uuid\" when calling BasesApi.getBase, must conform to the pattern /^[0-9a-fA-F]{8}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{12}$/."); + throw new \InvalidArgumentException("invalid value for \"base_uuid\" when calling BasesApi.listBaseSharings, must conform to the pattern /^[0-9a-fA-F]{8}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{12}$/."); } - $resourcePath = '/api/v2.1/org/{org_id}/admin/dtables/{base_uuid}/'; + $resourcePath = '/api/v2.1/org/{org_id}/admin/dtables/{base_uuid}/shares/'; $formParams = []; $queryParams = []; $headerParams = []; @@ -1017,40 +2254,42 @@ public function getBaseRequest($org_id, $base_uuid, string $contentType = self:: } /** - * Operation listBaseSharings + * Operation listBases * - * List Base Sharings + * List Bases (Team) * * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) - * @param string $base_uuid The unique identifier of a base. Sometimes also called dtable_uuid. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listBaseSharings'] to see the possible values for this operation + * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) + * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listBases'] to see the possible values for this operation * * @throws \SeaTable\Client\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException * @return object */ - public function listBaseSharings($org_id, $base_uuid, string $contentType = self::contentTypes['listBaseSharings'][0]) + public function listBases($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listBases'][0]) { - list($response) = $this->listBaseSharingsWithHttpInfo($org_id, $base_uuid, $contentType); + list($response) = $this->listBasesWithHttpInfo($org_id, $page, $per_page, $contentType); return $response; } /** - * Operation listBaseSharingsWithHttpInfo + * Operation listBasesWithHttpInfo * - * List Base Sharings + * List Bases (Team) * * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) - * @param string $base_uuid The unique identifier of a base. Sometimes also called dtable_uuid. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listBaseSharings'] to see the possible values for this operation + * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) + * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listBases'] to see the possible values for this operation * * @throws \SeaTable\Client\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException * @return array of object, HTTP status code, HTTP response headers (array of strings) */ - public function listBaseSharingsWithHttpInfo($org_id, $base_uuid, string $contentType = self::contentTypes['listBaseSharings'][0]) + public function listBasesWithHttpInfo($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listBases'][0]) { - $request = $this->listBaseSharingsRequest($org_id, $base_uuid, $contentType); + $request = $this->listBasesRequest($org_id, $page, $per_page, $contentType); try { $options = $this->createHttpClientOption(); @@ -1122,20 +2361,21 @@ public function listBaseSharingsWithHttpInfo($org_id, $base_uuid, string $conten } /** - * Operation listBaseSharingsAsync + * Operation listBasesAsync * - * List Base Sharings + * List Bases (Team) * * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) - * @param string $base_uuid The unique identifier of a base. Sometimes also called dtable_uuid. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listBaseSharings'] to see the possible values for this operation + * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) + * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listBases'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function listBaseSharingsAsync($org_id, $base_uuid, string $contentType = self::contentTypes['listBaseSharings'][0]) + public function listBasesAsync($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listBases'][0]) { - return $this->listBaseSharingsAsyncWithHttpInfo($org_id, $base_uuid, $contentType) + return $this->listBasesAsyncWithHttpInfo($org_id, $page, $per_page, $contentType) ->then( function ($response) { return $response[0]; @@ -1144,21 +2384,22 @@ function ($response) { } /** - * Operation listBaseSharingsAsyncWithHttpInfo + * Operation listBasesAsyncWithHttpInfo * - * List Base Sharings + * List Bases (Team) * * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) - * @param string $base_uuid The unique identifier of a base. Sometimes also called dtable_uuid. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listBaseSharings'] to see the possible values for this operation + * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) + * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listBases'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function listBaseSharingsAsyncWithHttpInfo($org_id, $base_uuid, string $contentType = self::contentTypes['listBaseSharings'][0]) + public function listBasesAsyncWithHttpInfo($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listBases'][0]) { $returnType = 'object'; - $request = $this->listBaseSharingsRequest($org_id, $base_uuid, $contentType); + $request = $this->listBasesRequest($org_id, $page, $per_page, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1197,46 +2438,63 @@ function ($exception) { } /** - * Create request for operation 'listBaseSharings' + * Create request for operation 'listBases' * * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) - * @param string $base_uuid The unique identifier of a base. Sometimes also called dtable_uuid. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listBaseSharings'] to see the possible values for this operation + * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) + * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listBases'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function listBaseSharingsRequest($org_id, $base_uuid, string $contentType = self::contentTypes['listBaseSharings'][0]) + public function listBasesRequest($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listBases'][0]) { // verify the required parameter 'org_id' is set if ($org_id === null || (is_array($org_id) && count($org_id) === 0)) { throw new \InvalidArgumentException( - 'Missing the required parameter $org_id when calling listBaseSharings' + 'Missing the required parameter $org_id when calling listBases' ); } if ($org_id < 1) { - throw new \InvalidArgumentException('invalid value for "$org_id" when calling BasesApi.listBaseSharings, must be bigger than or equal to 1.'); + throw new \InvalidArgumentException('invalid value for "$org_id" when calling BasesApi.listBases, must be bigger than or equal to 1.'); } - // verify the required parameter 'base_uuid' is set - if ($base_uuid === null || (is_array($base_uuid) && count($base_uuid) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $base_uuid when calling listBaseSharings' - ); + if ($page !== null && $page < 1) { + throw new \InvalidArgumentException('invalid value for "$page" when calling BasesApi.listBases, must be bigger than or equal to 1.'); } - if (!preg_match("/^[0-9a-fA-F]{8}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{12}$/", $base_uuid)) { - throw new \InvalidArgumentException("invalid value for \"base_uuid\" when calling BasesApi.listBaseSharings, must conform to the pattern /^[0-9a-fA-F]{8}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{12}$/."); + + if ($per_page !== null && $per_page < 1) { + throw new \InvalidArgumentException('invalid value for "$per_page" when calling BasesApi.listBases, must be bigger than or equal to 1.'); } - $resourcePath = '/api/v2.1/org/{org_id}/admin/dtables/{base_uuid}/shares/'; + $resourcePath = '/api/v2.1/org/{org_id}/admin/dtables/'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; $multipart = false; + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $page, + 'page', // param base name + 'integer', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $per_page, + 'per_page', // param base name + 'integer', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); // path params @@ -1247,14 +2505,6 @@ public function listBaseSharingsRequest($org_id, $base_uuid, string $contentType $resourcePath ); } - // path params - if ($base_uuid !== null) { - $resourcePath = str_replace( - '{' . 'base_uuid' . '}', - ObjectSerializer::toPathValue($base_uuid), - $resourcePath - ); - } $headers = $this->headerSelector->selectHeaders( @@ -1315,42 +2565,42 @@ public function listBaseSharingsRequest($org_id, $base_uuid, string $contentType } /** - * Operation listBases + * Operation listTrashBases * - * List Bases (Team) + * List Trash Bases * * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listBases'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listTrashBases'] to see the possible values for this operation * * @throws \SeaTable\Client\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException * @return object */ - public function listBases($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listBases'][0]) + public function listTrashBases($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listTrashBases'][0]) { - list($response) = $this->listBasesWithHttpInfo($org_id, $page, $per_page, $contentType); + list($response) = $this->listTrashBasesWithHttpInfo($org_id, $page, $per_page, $contentType); return $response; } /** - * Operation listBasesWithHttpInfo + * Operation listTrashBasesWithHttpInfo * - * List Bases (Team) + * List Trash Bases * * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listBases'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listTrashBases'] to see the possible values for this operation * * @throws \SeaTable\Client\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException * @return array of object, HTTP status code, HTTP response headers (array of strings) */ - public function listBasesWithHttpInfo($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listBases'][0]) + public function listTrashBasesWithHttpInfo($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listTrashBases'][0]) { - $request = $this->listBasesRequest($org_id, $page, $per_page, $contentType); + $request = $this->listTrashBasesRequest($org_id, $page, $per_page, $contentType); try { $options = $this->createHttpClientOption(); @@ -1422,21 +2672,21 @@ public function listBasesWithHttpInfo($org_id, $page = null, $per_page = null, s } /** - * Operation listBasesAsync + * Operation listTrashBasesAsync * - * List Bases (Team) + * List Trash Bases * * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listBases'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listTrashBases'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function listBasesAsync($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listBases'][0]) + public function listTrashBasesAsync($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listTrashBases'][0]) { - return $this->listBasesAsyncWithHttpInfo($org_id, $page, $per_page, $contentType) + return $this->listTrashBasesAsyncWithHttpInfo($org_id, $page, $per_page, $contentType) ->then( function ($response) { return $response[0]; @@ -1445,22 +2695,22 @@ function ($response) { } /** - * Operation listBasesAsyncWithHttpInfo + * Operation listTrashBasesAsyncWithHttpInfo * - * List Bases (Team) + * List Trash Bases * * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listBases'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listTrashBases'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function listBasesAsyncWithHttpInfo($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listBases'][0]) + public function listTrashBasesAsyncWithHttpInfo($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listTrashBases'][0]) { $returnType = 'object'; - $request = $this->listBasesRequest($org_id, $page, $per_page, $contentType); + $request = $this->listTrashBasesRequest($org_id, $page, $per_page, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1499,39 +2749,39 @@ function ($exception) { } /** - * Create request for operation 'listBases' + * Create request for operation 'listTrashBases' * * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listBases'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listTrashBases'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function listBasesRequest($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listBases'][0]) + public function listTrashBasesRequest($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listTrashBases'][0]) { // verify the required parameter 'org_id' is set if ($org_id === null || (is_array($org_id) && count($org_id) === 0)) { throw new \InvalidArgumentException( - 'Missing the required parameter $org_id when calling listBases' + 'Missing the required parameter $org_id when calling listTrashBases' ); } if ($org_id < 1) { - throw new \InvalidArgumentException('invalid value for "$org_id" when calling BasesApi.listBases, must be bigger than or equal to 1.'); + throw new \InvalidArgumentException('invalid value for "$org_id" when calling BasesApi.listTrashBases, must be bigger than or equal to 1.'); } if ($page !== null && $page < 1) { - throw new \InvalidArgumentException('invalid value for "$page" when calling BasesApi.listBases, must be bigger than or equal to 1.'); + throw new \InvalidArgumentException('invalid value for "$page" when calling BasesApi.listTrashBases, must be bigger than or equal to 1.'); } if ($per_page !== null && $per_page < 1) { - throw new \InvalidArgumentException('invalid value for "$per_page" when calling BasesApi.listBases, must be bigger than or equal to 1.'); + throw new \InvalidArgumentException('invalid value for "$per_page" when calling BasesApi.listTrashBases, must be bigger than or equal to 1.'); } - $resourcePath = '/api/v2.1/org/{org_id}/admin/dtables/'; + $resourcePath = '/api/v2.1/org/{org_id}/admin/trash-dtables/'; $formParams = []; $queryParams = []; $headerParams = []; @@ -1626,42 +2876,44 @@ public function listBasesRequest($org_id, $page = null, $per_page = null, string } /** - * Operation listTrashBases + * Operation listUsersBases * - * List Trash Bases + * List User's Bases * * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param string $user_id The unique `user_id` in the form ...@auth.local. This is not the email address of the user. (required) * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listTrashBases'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listUsersBases'] to see the possible values for this operation * * @throws \SeaTable\Client\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException * @return object */ - public function listTrashBases($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listTrashBases'][0]) + public function listUsersBases($org_id, $user_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listUsersBases'][0]) { - list($response) = $this->listTrashBasesWithHttpInfo($org_id, $page, $per_page, $contentType); + list($response) = $this->listUsersBasesWithHttpInfo($org_id, $user_id, $page, $per_page, $contentType); return $response; } /** - * Operation listTrashBasesWithHttpInfo + * Operation listUsersBasesWithHttpInfo * - * List Trash Bases + * List User's Bases * * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param string $user_id The unique `user_id` in the form ...@auth.local. This is not the email address of the user. (required) * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listTrashBases'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listUsersBases'] to see the possible values for this operation * * @throws \SeaTable\Client\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException * @return array of object, HTTP status code, HTTP response headers (array of strings) */ - public function listTrashBasesWithHttpInfo($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listTrashBases'][0]) + public function listUsersBasesWithHttpInfo($org_id, $user_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listUsersBases'][0]) { - $request = $this->listTrashBasesRequest($org_id, $page, $per_page, $contentType); + $request = $this->listUsersBasesRequest($org_id, $user_id, $page, $per_page, $contentType); try { $options = $this->createHttpClientOption(); @@ -1733,21 +2985,22 @@ public function listTrashBasesWithHttpInfo($org_id, $page = null, $per_page = nu } /** - * Operation listTrashBasesAsync + * Operation listUsersBasesAsync * - * List Trash Bases + * List User's Bases * * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param string $user_id The unique `user_id` in the form ...@auth.local. This is not the email address of the user. (required) * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listTrashBases'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listUsersBases'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function listTrashBasesAsync($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listTrashBases'][0]) + public function listUsersBasesAsync($org_id, $user_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listUsersBases'][0]) { - return $this->listTrashBasesAsyncWithHttpInfo($org_id, $page, $per_page, $contentType) + return $this->listUsersBasesAsyncWithHttpInfo($org_id, $user_id, $page, $per_page, $contentType) ->then( function ($response) { return $response[0]; @@ -1756,22 +3009,23 @@ function ($response) { } /** - * Operation listTrashBasesAsyncWithHttpInfo + * Operation listUsersBasesAsyncWithHttpInfo * - * List Trash Bases + * List User's Bases * * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param string $user_id The unique `user_id` in the form ...@auth.local. This is not the email address of the user. (required) * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listTrashBases'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listUsersBases'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function listTrashBasesAsyncWithHttpInfo($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listTrashBases'][0]) + public function listUsersBasesAsyncWithHttpInfo($org_id, $user_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listUsersBases'][0]) { $returnType = 'object'; - $request = $this->listTrashBasesRequest($org_id, $page, $per_page, $contentType); + $request = $this->listUsersBasesRequest($org_id, $user_id, $page, $per_page, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1810,39 +3064,50 @@ function ($exception) { } /** - * Create request for operation 'listTrashBases' + * Create request for operation 'listUsersBases' * * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param string $user_id The unique `user_id` in the form ...@auth.local. This is not the email address of the user. (required) * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listTrashBases'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listUsersBases'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function listTrashBasesRequest($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listTrashBases'][0]) + public function listUsersBasesRequest($org_id, $user_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listUsersBases'][0]) { // verify the required parameter 'org_id' is set if ($org_id === null || (is_array($org_id) && count($org_id) === 0)) { throw new \InvalidArgumentException( - 'Missing the required parameter $org_id when calling listTrashBases' + 'Missing the required parameter $org_id when calling listUsersBases' ); } if ($org_id < 1) { - throw new \InvalidArgumentException('invalid value for "$org_id" when calling BasesApi.listTrashBases, must be bigger than or equal to 1.'); + throw new \InvalidArgumentException('invalid value for "$org_id" when calling BasesApi.listUsersBases, must be bigger than or equal to 1.'); + } + + // verify the required parameter 'user_id' is set + if ($user_id === null || (is_array($user_id) && count($user_id) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $user_id when calling listUsersBases' + ); + } + if (!preg_match("/^[a-f0-9]{32}(@auth.local)$/", $user_id)) { + throw new \InvalidArgumentException("invalid value for \"user_id\" when calling BasesApi.listUsersBases, must conform to the pattern /^[a-f0-9]{32}(@auth.local)$/."); } if ($page !== null && $page < 1) { - throw new \InvalidArgumentException('invalid value for "$page" when calling BasesApi.listTrashBases, must be bigger than or equal to 1.'); + throw new \InvalidArgumentException('invalid value for "$page" when calling BasesApi.listUsersBases, must be bigger than or equal to 1.'); } if ($per_page !== null && $per_page < 1) { - throw new \InvalidArgumentException('invalid value for "$per_page" when calling BasesApi.listTrashBases, must be bigger than or equal to 1.'); + throw new \InvalidArgumentException('invalid value for "$per_page" when calling BasesApi.listUsersBases, must be bigger than or equal to 1.'); } - $resourcePath = '/api/v2.1/org/{org_id}/admin/trash-dtables/'; + $resourcePath = '/api/v2.1/org/{org_id}/admin/users/{user_id}/dtables/'; $formParams = []; $queryParams = []; $headerParams = []; @@ -1877,6 +3142,14 @@ public function listTrashBasesRequest($org_id, $page = null, $per_page = null, s $resourcePath ); } + // path params + if ($user_id !== null) { + $resourcePath = str_replace( + '{' . 'user_id' . '}', + ObjectSerializer::toPathValue($user_id), + $resourcePath + ); + } $headers = $this->headerSelector->selectHeaders( @@ -2540,6 +3813,14 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } diff --git a/lib/TeamAdmin/CustomizingApi.php b/lib/TeamAdmin/CustomizingApi.php index 8913e21f..9b8119f6 100644 --- a/lib/TeamAdmin/CustomizingApi.php +++ b/lib/TeamAdmin/CustomizingApi.php @@ -887,6 +887,14 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } diff --git a/lib/TeamAdmin/EnforceTwofactorRequest.php b/lib/TeamAdmin/EnforceTwofactorRequest.php index 28a036f3..78a25c05 100644 --- a/lib/TeamAdmin/EnforceTwofactorRequest.php +++ b/lib/TeamAdmin/EnforceTwofactorRequest.php @@ -317,11 +317,11 @@ public function setForce2fa($force_2fa) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -329,12 +329,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -359,11 +359,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/TeamAdmin/GroupsApi.php b/lib/TeamAdmin/GroupsApi.php index 938d2741..2a5413f9 100644 --- a/lib/TeamAdmin/GroupsApi.php +++ b/lib/TeamAdmin/GroupsApi.php @@ -3533,6 +3533,14 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } diff --git a/lib/TeamAdmin/InfoSettingsApi.php b/lib/TeamAdmin/InfoSettingsApi.php index 83679605..3d2f246e 100644 --- a/lib/TeamAdmin/InfoSettingsApi.php +++ b/lib/TeamAdmin/InfoSettingsApi.php @@ -73,6 +73,9 @@ class InfoSettingsApi /** @var string[] $contentTypes **/ public const contentTypes = [ + 'deleteTeam' => [ + 'application/json', + ], 'getTeamInfo' => [ 'application/json', ], @@ -133,6 +136,258 @@ public function getConfig() return $this->config; } + /** + * Operation deleteTeam + * + * Delete Team + * + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteTeam'] to see the possible values for this operation + * + * @throws \SeaTable\Client\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return object + */ + public function deleteTeam(string $contentType = self::contentTypes['deleteTeam'][0]) + { + list($response) = $this->deleteTeamWithHttpInfo($contentType); + return $response; + } + + /** + * Operation deleteTeamWithHttpInfo + * + * Delete Team + * + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteTeam'] to see the possible values for this operation + * + * @throws \SeaTable\Client\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return array of object, HTTP status code, HTTP response headers (array of strings) + */ + public function deleteTeamWithHttpInfo(string $contentType = self::contentTypes['deleteTeam'][0]) + { + $request = $this->deleteTeamRequest($contentType); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? (string) $e->getResponse()->getBody() : null + ); + } catch (ConnectException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + null, + null + ); + } + + $statusCode = $response->getStatusCode(); + + + switch($statusCode) { + case 200: + return $this->handleResponseWithDataType( + 'object', + $request, + $response, + ); + } + + + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + + return $this->handleResponseWithDataType( + 'object', + $request, + $response, + ); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + 'object', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; + } + + + throw $e; + } + } + + /** + * Operation deleteTeamAsync + * + * Delete Team + * + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteTeam'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteTeamAsync(string $contentType = self::contentTypes['deleteTeam'][0]) + { + return $this->deleteTeamAsyncWithHttpInfo($contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation deleteTeamAsyncWithHttpInfo + * + * Delete Team + * + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteTeam'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteTeamAsyncWithHttpInfo(string $contentType = self::contentTypes['deleteTeam'][0]) + { + $returnType = 'object'; + $request = $this->deleteTeamRequest($contentType); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'deleteTeam' + * + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteTeam'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function deleteTeamRequest(string $contentType = self::contentTypes['deleteTeam'][0]) + { + + + $resourcePath = '/api/v2.1/org/admin/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + + + + + $headers = $this->headerSelector->selectHeaders( + ['application/json', ], + $contentType, + $multipart + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; + foreach ($formParamValueItems as $formParamValueItem) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValueItem + ]; + } + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the form parameters + $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); + } else { + // for HTTP post (form) + $httpBody = ObjectSerializer::buildQuery($formParams); + } + } + + // this endpoint requires Bearer authentication (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $operationHost = $this->config->getHost(); + $query = ObjectSerializer::buildQuery($queryParams); + return new Request( + 'DELETE', + $operationHost . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + /** * Operation getTeamInfo * @@ -1217,6 +1472,14 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } diff --git a/lib/TeamAdmin/SAMLApi.php b/lib/TeamAdmin/SAMLApi.php index 732beea9..80631ef0 100644 --- a/lib/TeamAdmin/SAMLApi.php +++ b/lib/TeamAdmin/SAMLApi.php @@ -1195,6 +1195,14 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } diff --git a/lib/TeamAdmin/SharingLinksApi.php b/lib/TeamAdmin/SharingLinksApi.php index eb1ade32..c9bec6ba 100644 --- a/lib/TeamAdmin/SharingLinksApi.php +++ b/lib/TeamAdmin/SharingLinksApi.php @@ -88,6 +88,9 @@ class SharingLinksApi 'listInviteLinks' => [ 'application/json', ], + 'listShares' => [ + 'application/json', + ], 'listViewExternalLinks' => [ 'application/json', ], @@ -1555,6 +1558,281 @@ public function listInviteLinksRequest($org_id, $page = null, $per_page = null, ) ?? []); + // path params + if ($org_id !== null) { + $resourcePath = str_replace( + '{' . 'org_id' . '}', + ObjectSerializer::toPathValue($org_id), + $resourcePath + ); + } + + + $headers = $this->headerSelector->selectHeaders( + ['application/json', ], + $contentType, + $multipart + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; + foreach ($formParamValueItems as $formParamValueItem) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValueItem + ]; + } + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the form parameters + $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); + } else { + // for HTTP post (form) + $httpBody = ObjectSerializer::buildQuery($formParams); + } + } + + // this endpoint requires Bearer authentication (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $operationHost = $this->config->getHost(); + $query = ObjectSerializer::buildQuery($queryParams); + return new Request( + 'GET', + $operationHost . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation listShares + * + * List Shares + * + * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listShares'] to see the possible values for this operation + * + * @throws \SeaTable\Client\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return object + */ + public function listShares($org_id, string $contentType = self::contentTypes['listShares'][0]) + { + list($response) = $this->listSharesWithHttpInfo($org_id, $contentType); + return $response; + } + + /** + * Operation listSharesWithHttpInfo + * + * List Shares + * + * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listShares'] to see the possible values for this operation + * + * @throws \SeaTable\Client\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return array of object, HTTP status code, HTTP response headers (array of strings) + */ + public function listSharesWithHttpInfo($org_id, string $contentType = self::contentTypes['listShares'][0]) + { + $request = $this->listSharesRequest($org_id, $contentType); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? (string) $e->getResponse()->getBody() : null + ); + } catch (ConnectException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + null, + null + ); + } + + $statusCode = $response->getStatusCode(); + + + switch($statusCode) { + case 200: + return $this->handleResponseWithDataType( + 'object', + $request, + $response, + ); + } + + + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + + return $this->handleResponseWithDataType( + 'object', + $request, + $response, + ); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + 'object', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; + } + + + throw $e; + } + } + + /** + * Operation listSharesAsync + * + * List Shares + * + * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listShares'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listSharesAsync($org_id, string $contentType = self::contentTypes['listShares'][0]) + { + return $this->listSharesAsyncWithHttpInfo($org_id, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation listSharesAsyncWithHttpInfo + * + * List Shares + * + * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listShares'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listSharesAsyncWithHttpInfo($org_id, string $contentType = self::contentTypes['listShares'][0]) + { + $returnType = 'object'; + $request = $this->listSharesRequest($org_id, $contentType); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'listShares' + * + * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listShares'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function listSharesRequest($org_id, string $contentType = self::contentTypes['listShares'][0]) + { + + // verify the required parameter 'org_id' is set + if ($org_id === null || (is_array($org_id) && count($org_id) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $org_id when calling listShares' + ); + } + if ($org_id < 1) { + throw new \InvalidArgumentException('invalid value for "$org_id" when calling SharingLinksApi.listShares, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/api/v2.1/org/{org_id}/admin/shares/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + + // path params if ($org_id !== null) { $resourcePath = str_replace( @@ -2224,6 +2502,14 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } diff --git a/lib/TeamAdmin/StatisticsApi.php b/lib/TeamAdmin/StatisticsApi.php new file mode 100644 index 00000000..e1b565d4 --- /dev/null +++ b/lib/TeamAdmin/StatisticsApi.php @@ -0,0 +1,2293 @@ + [ + 'application/json', + ], + 'getAutomationLogStatisticsByBase' => [ + 'application/json', + ], + 'getAutomationLogStatisticsByDay' => [ + 'application/json', + ], + 'getLoginLogStatisticsByDay' => [ + 'application/json', + ], + 'getPythonRunStatisticsByBase' => [ + 'application/json', + ], + 'getPythonRunStatisticsByDay' => [ + 'application/json', + ], + ]; + + /** + * @param ClientInterface $client + * @param Configuration $config + * @param HeaderSelector $selector + * @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec + */ + public function __construct( + ?ClientInterface $client = null, + ?Configuration $config = null, + ?HeaderSelector $selector = null, + int $hostIndex = 0 + ) { + $this->client = $client ?: new Client(); + $this->config = $config ?: Configuration::getDefaultConfiguration(); + $this->headerSelector = $selector ?: new HeaderSelector(); + $this->hostIndex = $hostIndex; + } + + /** + * Set the host index + * + * @param int $hostIndex Host index (required) + */ + public function setHostIndex($hostIndex): void + { + $this->hostIndex = $hostIndex; + } + + /** + * Get the host index + * + * @return int Host index + */ + public function getHostIndex() + { + return $this->hostIndex; + } + + /** + * @return Configuration + */ + public function getConfig() + { + return $this->config; + } + + /** + * Operation getAdminLogStatisticsByDay + * + * Admin Logs (by Day) + * + * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param \DateTime|null $start Start date in ISO format. (optional) + * @param \DateTime|null $end End date in ISO format. (optional) + * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) + * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAdminLogStatisticsByDay'] to see the possible values for this operation + * + * @throws \SeaTable\Client\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return object + */ + public function getAdminLogStatisticsByDay($org_id, $start = null, $end = null, $page = null, $per_page = null, string $contentType = self::contentTypes['getAdminLogStatisticsByDay'][0]) + { + list($response) = $this->getAdminLogStatisticsByDayWithHttpInfo($org_id, $start, $end, $page, $per_page, $contentType); + return $response; + } + + /** + * Operation getAdminLogStatisticsByDayWithHttpInfo + * + * Admin Logs (by Day) + * + * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param \DateTime|null $start Start date in ISO format. (optional) + * @param \DateTime|null $end End date in ISO format. (optional) + * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) + * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAdminLogStatisticsByDay'] to see the possible values for this operation + * + * @throws \SeaTable\Client\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return array of object, HTTP status code, HTTP response headers (array of strings) + */ + public function getAdminLogStatisticsByDayWithHttpInfo($org_id, $start = null, $end = null, $page = null, $per_page = null, string $contentType = self::contentTypes['getAdminLogStatisticsByDay'][0]) + { + $request = $this->getAdminLogStatisticsByDayRequest($org_id, $start, $end, $page, $per_page, $contentType); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? (string) $e->getResponse()->getBody() : null + ); + } catch (ConnectException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + null, + null + ); + } + + $statusCode = $response->getStatusCode(); + + + switch($statusCode) { + case 200: + return $this->handleResponseWithDataType( + 'object', + $request, + $response, + ); + } + + + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + + return $this->handleResponseWithDataType( + 'object', + $request, + $response, + ); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + 'object', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; + } + + + throw $e; + } + } + + /** + * Operation getAdminLogStatisticsByDayAsync + * + * Admin Logs (by Day) + * + * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param \DateTime|null $start Start date in ISO format. (optional) + * @param \DateTime|null $end End date in ISO format. (optional) + * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) + * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAdminLogStatisticsByDay'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getAdminLogStatisticsByDayAsync($org_id, $start = null, $end = null, $page = null, $per_page = null, string $contentType = self::contentTypes['getAdminLogStatisticsByDay'][0]) + { + return $this->getAdminLogStatisticsByDayAsyncWithHttpInfo($org_id, $start, $end, $page, $per_page, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getAdminLogStatisticsByDayAsyncWithHttpInfo + * + * Admin Logs (by Day) + * + * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param \DateTime|null $start Start date in ISO format. (optional) + * @param \DateTime|null $end End date in ISO format. (optional) + * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) + * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAdminLogStatisticsByDay'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getAdminLogStatisticsByDayAsyncWithHttpInfo($org_id, $start = null, $end = null, $page = null, $per_page = null, string $contentType = self::contentTypes['getAdminLogStatisticsByDay'][0]) + { + $returnType = 'object'; + $request = $this->getAdminLogStatisticsByDayRequest($org_id, $start, $end, $page, $per_page, $contentType); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getAdminLogStatisticsByDay' + * + * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param \DateTime|null $start Start date in ISO format. (optional) + * @param \DateTime|null $end End date in ISO format. (optional) + * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) + * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAdminLogStatisticsByDay'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function getAdminLogStatisticsByDayRequest($org_id, $start = null, $end = null, $page = null, $per_page = null, string $contentType = self::contentTypes['getAdminLogStatisticsByDay'][0]) + { + + // verify the required parameter 'org_id' is set + if ($org_id === null || (is_array($org_id) && count($org_id) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $org_id when calling getAdminLogStatisticsByDay' + ); + } + if ($org_id < 1) { + throw new \InvalidArgumentException('invalid value for "$org_id" when calling StatisticsApi.getAdminLogStatisticsByDay, must be bigger than or equal to 1.'); + } + + + + if ($page !== null && $page < 1) { + throw new \InvalidArgumentException('invalid value for "$page" when calling StatisticsApi.getAdminLogStatisticsByDay, must be bigger than or equal to 1.'); + } + + if ($per_page !== null && $per_page < 1) { + throw new \InvalidArgumentException('invalid value for "$per_page" when calling StatisticsApi.getAdminLogStatisticsByDay, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/api/v2.1/org/{org_id}/admin/statistics/admin-logs/by-day/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $start, + 'start', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $end, + 'end', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $page, + 'page', // param base name + 'integer', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $per_page, + 'per_page', // param base name + 'integer', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + + + // path params + if ($org_id !== null) { + $resourcePath = str_replace( + '{' . 'org_id' . '}', + ObjectSerializer::toPathValue($org_id), + $resourcePath + ); + } + + + $headers = $this->headerSelector->selectHeaders( + ['application/json', ], + $contentType, + $multipart + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; + foreach ($formParamValueItems as $formParamValueItem) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValueItem + ]; + } + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the form parameters + $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); + } else { + // for HTTP post (form) + $httpBody = ObjectSerializer::buildQuery($formParams); + } + } + + // this endpoint requires Bearer authentication (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $operationHost = $this->config->getHost(); + $query = ObjectSerializer::buildQuery($queryParams); + return new Request( + 'GET', + $operationHost . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getAutomationLogStatisticsByBase + * + * Automation Logs (by Base) + * + * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param \DateTime|null $start Start date in ISO format. (optional) + * @param \DateTime|null $end End date in ISO format. (optional) + * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) + * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAutomationLogStatisticsByBase'] to see the possible values for this operation + * + * @throws \SeaTable\Client\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return object + */ + public function getAutomationLogStatisticsByBase($org_id, $start = null, $end = null, $page = null, $per_page = null, string $contentType = self::contentTypes['getAutomationLogStatisticsByBase'][0]) + { + list($response) = $this->getAutomationLogStatisticsByBaseWithHttpInfo($org_id, $start, $end, $page, $per_page, $contentType); + return $response; + } + + /** + * Operation getAutomationLogStatisticsByBaseWithHttpInfo + * + * Automation Logs (by Base) + * + * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param \DateTime|null $start Start date in ISO format. (optional) + * @param \DateTime|null $end End date in ISO format. (optional) + * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) + * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAutomationLogStatisticsByBase'] to see the possible values for this operation + * + * @throws \SeaTable\Client\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return array of object, HTTP status code, HTTP response headers (array of strings) + */ + public function getAutomationLogStatisticsByBaseWithHttpInfo($org_id, $start = null, $end = null, $page = null, $per_page = null, string $contentType = self::contentTypes['getAutomationLogStatisticsByBase'][0]) + { + $request = $this->getAutomationLogStatisticsByBaseRequest($org_id, $start, $end, $page, $per_page, $contentType); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? (string) $e->getResponse()->getBody() : null + ); + } catch (ConnectException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + null, + null + ); + } + + $statusCode = $response->getStatusCode(); + + + switch($statusCode) { + case 200: + return $this->handleResponseWithDataType( + 'object', + $request, + $response, + ); + } + + + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + + return $this->handleResponseWithDataType( + 'object', + $request, + $response, + ); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + 'object', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; + } + + + throw $e; + } + } + + /** + * Operation getAutomationLogStatisticsByBaseAsync + * + * Automation Logs (by Base) + * + * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param \DateTime|null $start Start date in ISO format. (optional) + * @param \DateTime|null $end End date in ISO format. (optional) + * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) + * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAutomationLogStatisticsByBase'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getAutomationLogStatisticsByBaseAsync($org_id, $start = null, $end = null, $page = null, $per_page = null, string $contentType = self::contentTypes['getAutomationLogStatisticsByBase'][0]) + { + return $this->getAutomationLogStatisticsByBaseAsyncWithHttpInfo($org_id, $start, $end, $page, $per_page, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getAutomationLogStatisticsByBaseAsyncWithHttpInfo + * + * Automation Logs (by Base) + * + * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param \DateTime|null $start Start date in ISO format. (optional) + * @param \DateTime|null $end End date in ISO format. (optional) + * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) + * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAutomationLogStatisticsByBase'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getAutomationLogStatisticsByBaseAsyncWithHttpInfo($org_id, $start = null, $end = null, $page = null, $per_page = null, string $contentType = self::contentTypes['getAutomationLogStatisticsByBase'][0]) + { + $returnType = 'object'; + $request = $this->getAutomationLogStatisticsByBaseRequest($org_id, $start, $end, $page, $per_page, $contentType); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getAutomationLogStatisticsByBase' + * + * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param \DateTime|null $start Start date in ISO format. (optional) + * @param \DateTime|null $end End date in ISO format. (optional) + * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) + * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAutomationLogStatisticsByBase'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function getAutomationLogStatisticsByBaseRequest($org_id, $start = null, $end = null, $page = null, $per_page = null, string $contentType = self::contentTypes['getAutomationLogStatisticsByBase'][0]) + { + + // verify the required parameter 'org_id' is set + if ($org_id === null || (is_array($org_id) && count($org_id) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $org_id when calling getAutomationLogStatisticsByBase' + ); + } + if ($org_id < 1) { + throw new \InvalidArgumentException('invalid value for "$org_id" when calling StatisticsApi.getAutomationLogStatisticsByBase, must be bigger than or equal to 1.'); + } + + + + if ($page !== null && $page < 1) { + throw new \InvalidArgumentException('invalid value for "$page" when calling StatisticsApi.getAutomationLogStatisticsByBase, must be bigger than or equal to 1.'); + } + + if ($per_page !== null && $per_page < 1) { + throw new \InvalidArgumentException('invalid value for "$per_page" when calling StatisticsApi.getAutomationLogStatisticsByBase, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/api/v2.1/org/{org_id}/admin/statistics/automation-logs/by-base/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $start, + 'start', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $end, + 'end', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $page, + 'page', // param base name + 'integer', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $per_page, + 'per_page', // param base name + 'integer', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + + + // path params + if ($org_id !== null) { + $resourcePath = str_replace( + '{' . 'org_id' . '}', + ObjectSerializer::toPathValue($org_id), + $resourcePath + ); + } + + + $headers = $this->headerSelector->selectHeaders( + ['application/json', ], + $contentType, + $multipart + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; + foreach ($formParamValueItems as $formParamValueItem) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValueItem + ]; + } + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the form parameters + $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); + } else { + // for HTTP post (form) + $httpBody = ObjectSerializer::buildQuery($formParams); + } + } + + // this endpoint requires Bearer authentication (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $operationHost = $this->config->getHost(); + $query = ObjectSerializer::buildQuery($queryParams); + return new Request( + 'GET', + $operationHost . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getAutomationLogStatisticsByDay + * + * Automation Logs (by Day) + * + * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param string|null $dtable_uuid The unique identifier of a base. (optional) + * @param \DateTime|null $start Start date in ISO format. (optional) + * @param \DateTime|null $end End date in ISO format. (optional) + * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) + * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAutomationLogStatisticsByDay'] to see the possible values for this operation + * + * @throws \SeaTable\Client\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return object + */ + public function getAutomationLogStatisticsByDay($org_id, $dtable_uuid = null, $start = null, $end = null, $page = null, $per_page = null, string $contentType = self::contentTypes['getAutomationLogStatisticsByDay'][0]) + { + list($response) = $this->getAutomationLogStatisticsByDayWithHttpInfo($org_id, $dtable_uuid, $start, $end, $page, $per_page, $contentType); + return $response; + } + + /** + * Operation getAutomationLogStatisticsByDayWithHttpInfo + * + * Automation Logs (by Day) + * + * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param string|null $dtable_uuid The unique identifier of a base. (optional) + * @param \DateTime|null $start Start date in ISO format. (optional) + * @param \DateTime|null $end End date in ISO format. (optional) + * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) + * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAutomationLogStatisticsByDay'] to see the possible values for this operation + * + * @throws \SeaTable\Client\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return array of object, HTTP status code, HTTP response headers (array of strings) + */ + public function getAutomationLogStatisticsByDayWithHttpInfo($org_id, $dtable_uuid = null, $start = null, $end = null, $page = null, $per_page = null, string $contentType = self::contentTypes['getAutomationLogStatisticsByDay'][0]) + { + $request = $this->getAutomationLogStatisticsByDayRequest($org_id, $dtable_uuid, $start, $end, $page, $per_page, $contentType); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? (string) $e->getResponse()->getBody() : null + ); + } catch (ConnectException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + null, + null + ); + } + + $statusCode = $response->getStatusCode(); + + + switch($statusCode) { + case 200: + return $this->handleResponseWithDataType( + 'object', + $request, + $response, + ); + } + + + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + + return $this->handleResponseWithDataType( + 'object', + $request, + $response, + ); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + 'object', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; + } + + + throw $e; + } + } + + /** + * Operation getAutomationLogStatisticsByDayAsync + * + * Automation Logs (by Day) + * + * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param string|null $dtable_uuid The unique identifier of a base. (optional) + * @param \DateTime|null $start Start date in ISO format. (optional) + * @param \DateTime|null $end End date in ISO format. (optional) + * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) + * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAutomationLogStatisticsByDay'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getAutomationLogStatisticsByDayAsync($org_id, $dtable_uuid = null, $start = null, $end = null, $page = null, $per_page = null, string $contentType = self::contentTypes['getAutomationLogStatisticsByDay'][0]) + { + return $this->getAutomationLogStatisticsByDayAsyncWithHttpInfo($org_id, $dtable_uuid, $start, $end, $page, $per_page, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getAutomationLogStatisticsByDayAsyncWithHttpInfo + * + * Automation Logs (by Day) + * + * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param string|null $dtable_uuid The unique identifier of a base. (optional) + * @param \DateTime|null $start Start date in ISO format. (optional) + * @param \DateTime|null $end End date in ISO format. (optional) + * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) + * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAutomationLogStatisticsByDay'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getAutomationLogStatisticsByDayAsyncWithHttpInfo($org_id, $dtable_uuid = null, $start = null, $end = null, $page = null, $per_page = null, string $contentType = self::contentTypes['getAutomationLogStatisticsByDay'][0]) + { + $returnType = 'object'; + $request = $this->getAutomationLogStatisticsByDayRequest($org_id, $dtable_uuid, $start, $end, $page, $per_page, $contentType); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getAutomationLogStatisticsByDay' + * + * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param string|null $dtable_uuid The unique identifier of a base. (optional) + * @param \DateTime|null $start Start date in ISO format. (optional) + * @param \DateTime|null $end End date in ISO format. (optional) + * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) + * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAutomationLogStatisticsByDay'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function getAutomationLogStatisticsByDayRequest($org_id, $dtable_uuid = null, $start = null, $end = null, $page = null, $per_page = null, string $contentType = self::contentTypes['getAutomationLogStatisticsByDay'][0]) + { + + // verify the required parameter 'org_id' is set + if ($org_id === null || (is_array($org_id) && count($org_id) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $org_id when calling getAutomationLogStatisticsByDay' + ); + } + if ($org_id < 1) { + throw new \InvalidArgumentException('invalid value for "$org_id" when calling StatisticsApi.getAutomationLogStatisticsByDay, must be bigger than or equal to 1.'); + } + + if ($dtable_uuid !== null && !preg_match("/^[0-9a-fA-F]{8}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{12}$/", $dtable_uuid)) { + throw new \InvalidArgumentException("invalid value for \"dtable_uuid\" when calling StatisticsApi.getAutomationLogStatisticsByDay, must conform to the pattern /^[0-9a-fA-F]{8}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{12}$/."); + } + + + + if ($page !== null && $page < 1) { + throw new \InvalidArgumentException('invalid value for "$page" when calling StatisticsApi.getAutomationLogStatisticsByDay, must be bigger than or equal to 1.'); + } + + if ($per_page !== null && $per_page < 1) { + throw new \InvalidArgumentException('invalid value for "$per_page" when calling StatisticsApi.getAutomationLogStatisticsByDay, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/api/v2.1/org/{org_id}/admin/statistics/automation-logs/by-day/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $dtable_uuid, + 'dtable_uuid', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $start, + 'start', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $end, + 'end', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $page, + 'page', // param base name + 'integer', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $per_page, + 'per_page', // param base name + 'integer', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + + + // path params + if ($org_id !== null) { + $resourcePath = str_replace( + '{' . 'org_id' . '}', + ObjectSerializer::toPathValue($org_id), + $resourcePath + ); + } + + + $headers = $this->headerSelector->selectHeaders( + ['application/json', ], + $contentType, + $multipart + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; + foreach ($formParamValueItems as $formParamValueItem) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValueItem + ]; + } + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the form parameters + $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); + } else { + // for HTTP post (form) + $httpBody = ObjectSerializer::buildQuery($formParams); + } + } + + // this endpoint requires Bearer authentication (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $operationHost = $this->config->getHost(); + $query = ObjectSerializer::buildQuery($queryParams); + return new Request( + 'GET', + $operationHost . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getLoginLogStatisticsByDay + * + * Login Logs (by Day) + * + * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param \DateTime|null $start Start date in ISO format. (optional) + * @param \DateTime|null $end End date in ISO format. (optional) + * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) + * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getLoginLogStatisticsByDay'] to see the possible values for this operation + * + * @throws \SeaTable\Client\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return object + */ + public function getLoginLogStatisticsByDay($org_id, $start = null, $end = null, $page = null, $per_page = null, string $contentType = self::contentTypes['getLoginLogStatisticsByDay'][0]) + { + list($response) = $this->getLoginLogStatisticsByDayWithHttpInfo($org_id, $start, $end, $page, $per_page, $contentType); + return $response; + } + + /** + * Operation getLoginLogStatisticsByDayWithHttpInfo + * + * Login Logs (by Day) + * + * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param \DateTime|null $start Start date in ISO format. (optional) + * @param \DateTime|null $end End date in ISO format. (optional) + * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) + * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getLoginLogStatisticsByDay'] to see the possible values for this operation + * + * @throws \SeaTable\Client\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return array of object, HTTP status code, HTTP response headers (array of strings) + */ + public function getLoginLogStatisticsByDayWithHttpInfo($org_id, $start = null, $end = null, $page = null, $per_page = null, string $contentType = self::contentTypes['getLoginLogStatisticsByDay'][0]) + { + $request = $this->getLoginLogStatisticsByDayRequest($org_id, $start, $end, $page, $per_page, $contentType); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? (string) $e->getResponse()->getBody() : null + ); + } catch (ConnectException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + null, + null + ); + } + + $statusCode = $response->getStatusCode(); + + + switch($statusCode) { + case 200: + return $this->handleResponseWithDataType( + 'object', + $request, + $response, + ); + } + + + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + + return $this->handleResponseWithDataType( + 'object', + $request, + $response, + ); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + 'object', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; + } + + + throw $e; + } + } + + /** + * Operation getLoginLogStatisticsByDayAsync + * + * Login Logs (by Day) + * + * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param \DateTime|null $start Start date in ISO format. (optional) + * @param \DateTime|null $end End date in ISO format. (optional) + * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) + * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getLoginLogStatisticsByDay'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getLoginLogStatisticsByDayAsync($org_id, $start = null, $end = null, $page = null, $per_page = null, string $contentType = self::contentTypes['getLoginLogStatisticsByDay'][0]) + { + return $this->getLoginLogStatisticsByDayAsyncWithHttpInfo($org_id, $start, $end, $page, $per_page, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getLoginLogStatisticsByDayAsyncWithHttpInfo + * + * Login Logs (by Day) + * + * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param \DateTime|null $start Start date in ISO format. (optional) + * @param \DateTime|null $end End date in ISO format. (optional) + * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) + * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getLoginLogStatisticsByDay'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getLoginLogStatisticsByDayAsyncWithHttpInfo($org_id, $start = null, $end = null, $page = null, $per_page = null, string $contentType = self::contentTypes['getLoginLogStatisticsByDay'][0]) + { + $returnType = 'object'; + $request = $this->getLoginLogStatisticsByDayRequest($org_id, $start, $end, $page, $per_page, $contentType); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getLoginLogStatisticsByDay' + * + * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param \DateTime|null $start Start date in ISO format. (optional) + * @param \DateTime|null $end End date in ISO format. (optional) + * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) + * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getLoginLogStatisticsByDay'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function getLoginLogStatisticsByDayRequest($org_id, $start = null, $end = null, $page = null, $per_page = null, string $contentType = self::contentTypes['getLoginLogStatisticsByDay'][0]) + { + + // verify the required parameter 'org_id' is set + if ($org_id === null || (is_array($org_id) && count($org_id) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $org_id when calling getLoginLogStatisticsByDay' + ); + } + if ($org_id < 1) { + throw new \InvalidArgumentException('invalid value for "$org_id" when calling StatisticsApi.getLoginLogStatisticsByDay, must be bigger than or equal to 1.'); + } + + + + if ($page !== null && $page < 1) { + throw new \InvalidArgumentException('invalid value for "$page" when calling StatisticsApi.getLoginLogStatisticsByDay, must be bigger than or equal to 1.'); + } + + if ($per_page !== null && $per_page < 1) { + throw new \InvalidArgumentException('invalid value for "$per_page" when calling StatisticsApi.getLoginLogStatisticsByDay, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/api/v2.1/org/{org_id}/admin/statistics/login-logs/by-day/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $start, + 'start', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $end, + 'end', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $page, + 'page', // param base name + 'integer', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $per_page, + 'per_page', // param base name + 'integer', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + + + // path params + if ($org_id !== null) { + $resourcePath = str_replace( + '{' . 'org_id' . '}', + ObjectSerializer::toPathValue($org_id), + $resourcePath + ); + } + + + $headers = $this->headerSelector->selectHeaders( + ['application/json', ], + $contentType, + $multipart + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; + foreach ($formParamValueItems as $formParamValueItem) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValueItem + ]; + } + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the form parameters + $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); + } else { + // for HTTP post (form) + $httpBody = ObjectSerializer::buildQuery($formParams); + } + } + + // this endpoint requires Bearer authentication (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $operationHost = $this->config->getHost(); + $query = ObjectSerializer::buildQuery($queryParams); + return new Request( + 'GET', + $operationHost . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getPythonRunStatisticsByBase + * + * Python Runs (by Base) + * + * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param \DateTime|null $start Start date in ISO format. (optional) + * @param \DateTime|null $end End date in ISO format. (optional) + * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) + * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getPythonRunStatisticsByBase'] to see the possible values for this operation + * + * @throws \SeaTable\Client\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return object + */ + public function getPythonRunStatisticsByBase($org_id, $start = null, $end = null, $page = null, $per_page = null, string $contentType = self::contentTypes['getPythonRunStatisticsByBase'][0]) + { + list($response) = $this->getPythonRunStatisticsByBaseWithHttpInfo($org_id, $start, $end, $page, $per_page, $contentType); + return $response; + } + + /** + * Operation getPythonRunStatisticsByBaseWithHttpInfo + * + * Python Runs (by Base) + * + * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param \DateTime|null $start Start date in ISO format. (optional) + * @param \DateTime|null $end End date in ISO format. (optional) + * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) + * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getPythonRunStatisticsByBase'] to see the possible values for this operation + * + * @throws \SeaTable\Client\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return array of object, HTTP status code, HTTP response headers (array of strings) + */ + public function getPythonRunStatisticsByBaseWithHttpInfo($org_id, $start = null, $end = null, $page = null, $per_page = null, string $contentType = self::contentTypes['getPythonRunStatisticsByBase'][0]) + { + $request = $this->getPythonRunStatisticsByBaseRequest($org_id, $start, $end, $page, $per_page, $contentType); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? (string) $e->getResponse()->getBody() : null + ); + } catch (ConnectException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + null, + null + ); + } + + $statusCode = $response->getStatusCode(); + + + switch($statusCode) { + case 200: + return $this->handleResponseWithDataType( + 'object', + $request, + $response, + ); + } + + + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + + return $this->handleResponseWithDataType( + 'object', + $request, + $response, + ); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + 'object', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; + } + + + throw $e; + } + } + + /** + * Operation getPythonRunStatisticsByBaseAsync + * + * Python Runs (by Base) + * + * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param \DateTime|null $start Start date in ISO format. (optional) + * @param \DateTime|null $end End date in ISO format. (optional) + * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) + * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getPythonRunStatisticsByBase'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getPythonRunStatisticsByBaseAsync($org_id, $start = null, $end = null, $page = null, $per_page = null, string $contentType = self::contentTypes['getPythonRunStatisticsByBase'][0]) + { + return $this->getPythonRunStatisticsByBaseAsyncWithHttpInfo($org_id, $start, $end, $page, $per_page, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getPythonRunStatisticsByBaseAsyncWithHttpInfo + * + * Python Runs (by Base) + * + * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param \DateTime|null $start Start date in ISO format. (optional) + * @param \DateTime|null $end End date in ISO format. (optional) + * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) + * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getPythonRunStatisticsByBase'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getPythonRunStatisticsByBaseAsyncWithHttpInfo($org_id, $start = null, $end = null, $page = null, $per_page = null, string $contentType = self::contentTypes['getPythonRunStatisticsByBase'][0]) + { + $returnType = 'object'; + $request = $this->getPythonRunStatisticsByBaseRequest($org_id, $start, $end, $page, $per_page, $contentType); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getPythonRunStatisticsByBase' + * + * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param \DateTime|null $start Start date in ISO format. (optional) + * @param \DateTime|null $end End date in ISO format. (optional) + * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) + * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getPythonRunStatisticsByBase'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function getPythonRunStatisticsByBaseRequest($org_id, $start = null, $end = null, $page = null, $per_page = null, string $contentType = self::contentTypes['getPythonRunStatisticsByBase'][0]) + { + + // verify the required parameter 'org_id' is set + if ($org_id === null || (is_array($org_id) && count($org_id) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $org_id when calling getPythonRunStatisticsByBase' + ); + } + if ($org_id < 1) { + throw new \InvalidArgumentException('invalid value for "$org_id" when calling StatisticsApi.getPythonRunStatisticsByBase, must be bigger than or equal to 1.'); + } + + + + if ($page !== null && $page < 1) { + throw new \InvalidArgumentException('invalid value for "$page" when calling StatisticsApi.getPythonRunStatisticsByBase, must be bigger than or equal to 1.'); + } + + if ($per_page !== null && $per_page < 1) { + throw new \InvalidArgumentException('invalid value for "$per_page" when calling StatisticsApi.getPythonRunStatisticsByBase, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/api/v2.1/org/{org_id}/admin/statistics/python-runs/by-base/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $start, + 'start', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $end, + 'end', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $page, + 'page', // param base name + 'integer', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $per_page, + 'per_page', // param base name + 'integer', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + + + // path params + if ($org_id !== null) { + $resourcePath = str_replace( + '{' . 'org_id' . '}', + ObjectSerializer::toPathValue($org_id), + $resourcePath + ); + } + + + $headers = $this->headerSelector->selectHeaders( + ['application/json', ], + $contentType, + $multipart + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; + foreach ($formParamValueItems as $formParamValueItem) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValueItem + ]; + } + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the form parameters + $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); + } else { + // for HTTP post (form) + $httpBody = ObjectSerializer::buildQuery($formParams); + } + } + + // this endpoint requires Bearer authentication (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $operationHost = $this->config->getHost(); + $query = ObjectSerializer::buildQuery($queryParams); + return new Request( + 'GET', + $operationHost . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getPythonRunStatisticsByDay + * + * Python Runs (by Day) + * + * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param string|null $dtable_uuid The unique identifier of a base. (optional) + * @param \DateTime|null $start Start date in ISO format. (optional) + * @param \DateTime|null $end End date in ISO format. (optional) + * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) + * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getPythonRunStatisticsByDay'] to see the possible values for this operation + * + * @throws \SeaTable\Client\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return object + */ + public function getPythonRunStatisticsByDay($org_id, $dtable_uuid = null, $start = null, $end = null, $page = null, $per_page = null, string $contentType = self::contentTypes['getPythonRunStatisticsByDay'][0]) + { + list($response) = $this->getPythonRunStatisticsByDayWithHttpInfo($org_id, $dtable_uuid, $start, $end, $page, $per_page, $contentType); + return $response; + } + + /** + * Operation getPythonRunStatisticsByDayWithHttpInfo + * + * Python Runs (by Day) + * + * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param string|null $dtable_uuid The unique identifier of a base. (optional) + * @param \DateTime|null $start Start date in ISO format. (optional) + * @param \DateTime|null $end End date in ISO format. (optional) + * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) + * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getPythonRunStatisticsByDay'] to see the possible values for this operation + * + * @throws \SeaTable\Client\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return array of object, HTTP status code, HTTP response headers (array of strings) + */ + public function getPythonRunStatisticsByDayWithHttpInfo($org_id, $dtable_uuid = null, $start = null, $end = null, $page = null, $per_page = null, string $contentType = self::contentTypes['getPythonRunStatisticsByDay'][0]) + { + $request = $this->getPythonRunStatisticsByDayRequest($org_id, $dtable_uuid, $start, $end, $page, $per_page, $contentType); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? (string) $e->getResponse()->getBody() : null + ); + } catch (ConnectException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + null, + null + ); + } + + $statusCode = $response->getStatusCode(); + + + switch($statusCode) { + case 200: + return $this->handleResponseWithDataType( + 'object', + $request, + $response, + ); + } + + + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + + return $this->handleResponseWithDataType( + 'object', + $request, + $response, + ); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + 'object', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; + } + + + throw $e; + } + } + + /** + * Operation getPythonRunStatisticsByDayAsync + * + * Python Runs (by Day) + * + * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param string|null $dtable_uuid The unique identifier of a base. (optional) + * @param \DateTime|null $start Start date in ISO format. (optional) + * @param \DateTime|null $end End date in ISO format. (optional) + * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) + * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getPythonRunStatisticsByDay'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getPythonRunStatisticsByDayAsync($org_id, $dtable_uuid = null, $start = null, $end = null, $page = null, $per_page = null, string $contentType = self::contentTypes['getPythonRunStatisticsByDay'][0]) + { + return $this->getPythonRunStatisticsByDayAsyncWithHttpInfo($org_id, $dtable_uuid, $start, $end, $page, $per_page, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getPythonRunStatisticsByDayAsyncWithHttpInfo + * + * Python Runs (by Day) + * + * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param string|null $dtable_uuid The unique identifier of a base. (optional) + * @param \DateTime|null $start Start date in ISO format. (optional) + * @param \DateTime|null $end End date in ISO format. (optional) + * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) + * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getPythonRunStatisticsByDay'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getPythonRunStatisticsByDayAsyncWithHttpInfo($org_id, $dtable_uuid = null, $start = null, $end = null, $page = null, $per_page = null, string $contentType = self::contentTypes['getPythonRunStatisticsByDay'][0]) + { + $returnType = 'object'; + $request = $this->getPythonRunStatisticsByDayRequest($org_id, $dtable_uuid, $start, $end, $page, $per_page, $contentType); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getPythonRunStatisticsByDay' + * + * @param int $org_id The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you are not the admin. (required) + * @param string|null $dtable_uuid The unique identifier of a base. (optional) + * @param \DateTime|null $start Start date in ISO format. (optional) + * @param \DateTime|null $end End date in ISO format. (optional) + * @param int|null $page The page number you want to start showing the entries. If no value is provided, 1 will be used. (optional) + * @param int|null $per_page The number of results that should be returned. If no value is provided, 25 results will be returned. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getPythonRunStatisticsByDay'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function getPythonRunStatisticsByDayRequest($org_id, $dtable_uuid = null, $start = null, $end = null, $page = null, $per_page = null, string $contentType = self::contentTypes['getPythonRunStatisticsByDay'][0]) + { + + // verify the required parameter 'org_id' is set + if ($org_id === null || (is_array($org_id) && count($org_id) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $org_id when calling getPythonRunStatisticsByDay' + ); + } + if ($org_id < 1) { + throw new \InvalidArgumentException('invalid value for "$org_id" when calling StatisticsApi.getPythonRunStatisticsByDay, must be bigger than or equal to 1.'); + } + + if ($dtable_uuid !== null && !preg_match("/^[0-9a-fA-F]{8}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{12}$/", $dtable_uuid)) { + throw new \InvalidArgumentException("invalid value for \"dtable_uuid\" when calling StatisticsApi.getPythonRunStatisticsByDay, must conform to the pattern /^[0-9a-fA-F]{8}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{12}$/."); + } + + + + if ($page !== null && $page < 1) { + throw new \InvalidArgumentException('invalid value for "$page" when calling StatisticsApi.getPythonRunStatisticsByDay, must be bigger than or equal to 1.'); + } + + if ($per_page !== null && $per_page < 1) { + throw new \InvalidArgumentException('invalid value for "$per_page" when calling StatisticsApi.getPythonRunStatisticsByDay, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/api/v2.1/org/{org_id}/admin/statistics/python-runs/by-day/'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $dtable_uuid, + 'dtable_uuid', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $start, + 'start', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $end, + 'end', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $page, + 'page', // param base name + 'integer', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $per_page, + 'per_page', // param base name + 'integer', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + + + // path params + if ($org_id !== null) { + $resourcePath = str_replace( + '{' . 'org_id' . '}', + ObjectSerializer::toPathValue($org_id), + $resourcePath + ); + } + + + $headers = $this->headerSelector->selectHeaders( + ['application/json', ], + $contentType, + $multipart + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; + foreach ($formParamValueItems as $formParamValueItem) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValueItem + ]; + } + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the form parameters + $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); + } else { + // for HTTP post (form) + $httpBody = ObjectSerializer::buildQuery($formParams); + } + } + + // this endpoint requires Bearer authentication (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $operationHost = $this->config->getHost(); + $query = ObjectSerializer::buildQuery($queryParams); + return new Request( + 'GET', + $operationHost . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Create http client option + * + * @throws \RuntimeException on file opening failure + * @return array of http client options + */ + protected function createHttpClientOption() + { + $options = []; + if ($this->config->getDebug()) { + $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); + if (!$options[RequestOptions::DEBUG]) { + throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); + } + } + + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + + return $options; + } + + private function handleResponseWithDataType( + string $dataType, + RequestInterface $request, + ResponseInterface $response + ): array { + if ($dataType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($dataType !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $response->getStatusCode(), + $response->getHeaders(), + $content + ); + } + } + } + + return [ + ObjectSerializer::deserialize($content, $dataType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } + + private function responseWithinRangeCode( + string $rangeCode, + int $statusCode + ): bool { + $left = (int) ($rangeCode[0].'00'); + $right = (int) ($rangeCode[0].'99'); + + return $statusCode >= $left && $statusCode <= $right; + } +} diff --git a/lib/TeamAdmin/UpdateGroupMemberRoleRequest.php b/lib/TeamAdmin/UpdateGroupMemberRoleRequest.php index 805c8a2f..875edf1b 100644 --- a/lib/TeamAdmin/UpdateGroupMemberRoleRequest.php +++ b/lib/TeamAdmin/UpdateGroupMemberRoleRequest.php @@ -320,11 +320,11 @@ public function setIsAdmin($is_admin) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -332,12 +332,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -362,11 +362,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/TeamAdmin/UpdateGroupRequest.php b/lib/TeamAdmin/UpdateGroupRequest.php index 55808f39..df71dbec 100644 --- a/lib/TeamAdmin/UpdateGroupRequest.php +++ b/lib/TeamAdmin/UpdateGroupRequest.php @@ -351,11 +351,11 @@ public function setNewGroupName($new_group_name) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -363,12 +363,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -393,11 +393,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/TeamAdmin/UpdateInviteLinkRequest.php b/lib/TeamAdmin/UpdateInviteLinkRequest.php index ee37bf6d..a45006aa 100644 --- a/lib/TeamAdmin/UpdateInviteLinkRequest.php +++ b/lib/TeamAdmin/UpdateInviteLinkRequest.php @@ -385,11 +385,11 @@ public function setExpireDays($expire_days) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -397,12 +397,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -427,11 +427,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/TeamAdmin/UsersApi.php b/lib/TeamAdmin/UsersApi.php index a900748d..bcf196dc 100644 --- a/lib/TeamAdmin/UsersApi.php +++ b/lib/TeamAdmin/UsersApi.php @@ -2636,6 +2636,14 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } diff --git a/lib/User/Action.php b/lib/User/Action.php index 4b854f84..ca8d65fa 100644 --- a/lib/User/Action.php +++ b/lib/User/Action.php @@ -351,11 +351,11 @@ public function setUsers($users) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -363,12 +363,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -393,11 +393,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/ActionAddRecord.php b/lib/User/ActionAddRecord.php index e865a402..c0f86c72 100644 --- a/lib/User/ActionAddRecord.php +++ b/lib/User/ActionAddRecord.php @@ -417,11 +417,11 @@ public function setId($_id) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -429,12 +429,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -459,11 +459,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/ActionAddRecordToOtherTable.php b/lib/User/ActionAddRecordToOtherTable.php index 5a6c17eb..c701fba9 100644 --- a/lib/User/ActionAddRecordToOtherTable.php +++ b/lib/User/ActionAddRecordToOtherTable.php @@ -451,11 +451,11 @@ public function setRow($row) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -463,12 +463,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -493,11 +493,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/ActionAddRecordToOtherTableRow.php b/lib/User/ActionAddRecordToOtherTableRow.php index 071b2c97..3b2aa850 100644 --- a/lib/User/ActionAddRecordToOtherTableRow.php +++ b/lib/User/ActionAddRecordToOtherTableRow.php @@ -289,11 +289,11 @@ public function valid() /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -301,12 +301,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -331,11 +331,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/ActionCalculateAccumulatedValue.php b/lib/User/ActionCalculateAccumulatedValue.php index c9a4b210..6015f90e 100644 --- a/lib/User/ActionCalculateAccumulatedValue.php +++ b/lib/User/ActionCalculateAccumulatedValue.php @@ -451,11 +451,11 @@ public function setCalculateColumn($calculate_column) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -463,12 +463,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -493,11 +493,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/ActionCalculateDelta.php b/lib/User/ActionCalculateDelta.php index 64d129fc..08f49ab8 100644 --- a/lib/User/ActionCalculateDelta.php +++ b/lib/User/ActionCalculateDelta.php @@ -451,11 +451,11 @@ public function setCalculateColumn($calculate_column) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -463,12 +463,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -493,11 +493,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/ActionCalculatePercentage.php b/lib/User/ActionCalculatePercentage.php index fc41d827..bcf9a2ba 100644 --- a/lib/User/ActionCalculatePercentage.php +++ b/lib/User/ActionCalculatePercentage.php @@ -451,11 +451,11 @@ public function setCalculateColumn($calculate_column) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -463,12 +463,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -493,11 +493,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/ActionCalculateRank.php b/lib/User/ActionCalculateRank.php index b3965f01..8d38705a 100644 --- a/lib/User/ActionCalculateRank.php +++ b/lib/User/ActionCalculateRank.php @@ -451,11 +451,11 @@ public function setCalculateColumn($calculate_column) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -463,12 +463,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -493,11 +493,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/ActionExtractUserName.php b/lib/User/ActionExtractUserName.php index b6701181..c6498072 100644 --- a/lib/User/ActionExtractUserName.php +++ b/lib/User/ActionExtractUserName.php @@ -451,11 +451,11 @@ public function setResultColumnKey($result_column_key) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -463,12 +463,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -493,11 +493,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/ActionLinkRecord.php b/lib/User/ActionLinkRecord.php index c36f9de6..7bb00be6 100644 --- a/lib/User/ActionLinkRecord.php +++ b/lib/User/ActionLinkRecord.php @@ -485,11 +485,11 @@ public function setMatchConditions($match_conditions) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -497,12 +497,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -527,11 +527,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/ActionLinkRecordMatchConditionsInner.php b/lib/User/ActionLinkRecordMatchConditionsInner.php index 55ceac0c..01f129f8 100644 --- a/lib/User/ActionLinkRecordMatchConditionsInner.php +++ b/lib/User/ActionLinkRecordMatchConditionsInner.php @@ -351,11 +351,11 @@ public function setOtherColumnKey($other_column_key) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -363,12 +363,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -393,11 +393,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/ActionLockRecord.php b/lib/User/ActionLockRecord.php index b80c6f61..7601d3dd 100644 --- a/lib/User/ActionLockRecord.php +++ b/lib/User/ActionLockRecord.php @@ -449,11 +449,11 @@ public function setId($_id) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -461,12 +461,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -491,11 +491,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/ActionLookupAndCopy.php b/lib/User/ActionLookupAndCopy.php index c2814cdf..aa4fa717 100644 --- a/lib/User/ActionLookupAndCopy.php +++ b/lib/User/ActionLookupAndCopy.php @@ -485,11 +485,11 @@ public function setFillColumnConditions($fill_column_conditions) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -497,12 +497,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -527,11 +527,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/ActionLookupAndCopyEqualColumnConditionsInner.php b/lib/User/ActionLookupAndCopyEqualColumnConditionsInner.php index d9c40d00..549a0b6c 100644 --- a/lib/User/ActionLookupAndCopyEqualColumnConditionsInner.php +++ b/lib/User/ActionLookupAndCopyEqualColumnConditionsInner.php @@ -351,11 +351,11 @@ public function setCopyToColumnKey($copy_to_column_key) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -363,12 +363,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -393,11 +393,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/ActionLookupAndCopyTableCondition.php b/lib/User/ActionLookupAndCopyTableCondition.php index 1b89fc14..f7af732a 100644 --- a/lib/User/ActionLookupAndCopyTableCondition.php +++ b/lib/User/ActionLookupAndCopyTableCondition.php @@ -351,11 +351,11 @@ public function setCopyToTableId($copy_to_table_id) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -363,12 +363,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -393,11 +393,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/ActionNotify.php b/lib/User/ActionNotify.php index 2790f3bc..9849d793 100644 --- a/lib/User/ActionNotify.php +++ b/lib/User/ActionNotify.php @@ -485,11 +485,11 @@ public function setUsersColumnKey($users_column_key) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -497,12 +497,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -527,11 +527,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/ActionRecordsMeetSpecificConditionsAfterModificationInner.php b/lib/User/ActionRecordsMeetSpecificConditionsAfterModificationInner.php index efe27b5c..983d43f5 100644 --- a/lib/User/ActionRecordsMeetSpecificConditionsAfterModificationInner.php +++ b/lib/User/ActionRecordsMeetSpecificConditionsAfterModificationInner.php @@ -1075,11 +1075,11 @@ public function setRepoId($repo_id) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -1087,12 +1087,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -1117,11 +1117,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/ActionRunPeriodicallyInner.php b/lib/User/ActionRunPeriodicallyInner.php index 96535003..d794328c 100644 --- a/lib/User/ActionRunPeriodicallyInner.php +++ b/lib/User/ActionRunPeriodicallyInner.php @@ -1185,11 +1185,11 @@ public function setFillColumnConditions($fill_column_conditions) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -1197,12 +1197,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -1227,11 +1227,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/ActionRunPeriodicallyOnRecordsInner.php b/lib/User/ActionRunPeriodicallyOnRecordsInner.php index 389fed13..bd673e21 100644 --- a/lib/User/ActionRunPeriodicallyOnRecordsInner.php +++ b/lib/User/ActionRunPeriodicallyOnRecordsInner.php @@ -691,11 +691,11 @@ public function setIsLocked($is_locked) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -703,12 +703,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -733,11 +733,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/ActionRunPythonScript.php b/lib/User/ActionRunPythonScript.php index 27bb8d6d..cdaad989 100644 --- a/lib/User/ActionRunPythonScript.php +++ b/lib/User/ActionRunPythonScript.php @@ -553,11 +553,11 @@ public function setRepoId($repo_id) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -565,12 +565,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -595,11 +595,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/ActionSendEmail.php b/lib/User/ActionSendEmail.php index a3d08e0a..98b8a516 100644 --- a/lib/User/ActionSendEmail.php +++ b/lib/User/ActionSendEmail.php @@ -553,11 +553,11 @@ public function setId($_id) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -565,12 +565,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -595,11 +595,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/ActionUpdateRecord.php b/lib/User/ActionUpdateRecord.php index e839ead9..62392c39 100644 --- a/lib/User/ActionUpdateRecord.php +++ b/lib/User/ActionUpdateRecord.php @@ -417,11 +417,11 @@ public function setId($_id) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -429,12 +429,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -459,11 +459,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/ActivitiesLogsApi.php b/lib/User/ActivitiesLogsApi.php index 197fe006..e5239913 100644 --- a/lib/User/ActivitiesLogsApi.php +++ b/lib/User/ActivitiesLogsApi.php @@ -1099,6 +1099,14 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } diff --git a/lib/User/AddEmailAccountRequest.php b/lib/User/AddEmailAccountRequest.php index d2afba0e..47bb1e77 100644 --- a/lib/User/AddEmailAccountRequest.php +++ b/lib/User/AddEmailAccountRequest.php @@ -385,11 +385,11 @@ public function setDetail($detail) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -397,12 +397,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -427,11 +427,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/AddGroupMemberRequest.php b/lib/User/AddGroupMemberRequest.php index 72824798..eed60cb6 100644 --- a/lib/User/AddGroupMemberRequest.php +++ b/lib/User/AddGroupMemberRequest.php @@ -317,11 +317,11 @@ public function setEmail($email) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -329,12 +329,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -359,11 +359,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/AddNotificationRuleRequest.php b/lib/User/AddNotificationRuleRequest.php index 89027f7f..dfaa2a1d 100644 --- a/lib/User/AddNotificationRuleRequest.php +++ b/lib/User/AddNotificationRuleRequest.php @@ -428,11 +428,11 @@ public function setAction($action) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -440,12 +440,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -470,11 +470,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/AddNotificationRuleRequestAction.php b/lib/User/AddNotificationRuleRequestAction.php index bfa0c7ee..6f731bc0 100644 --- a/lib/User/AddNotificationRuleRequestAction.php +++ b/lib/User/AddNotificationRuleRequestAction.php @@ -454,11 +454,11 @@ public function setDefaultMsg($default_msg) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -466,12 +466,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -496,11 +496,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/AddNotificationRuleRequestTrigger.php b/lib/User/AddNotificationRuleRequestTrigger.php index 2331d833..1fdf804c 100644 --- a/lib/User/AddNotificationRuleRequestTrigger.php +++ b/lib/User/AddNotificationRuleRequestTrigger.php @@ -769,11 +769,11 @@ public function setFilterConjunction($filter_conjunction) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -781,12 +781,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -811,11 +811,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/AddPassword.php b/lib/User/AddPassword.php index 8914c712..e8c82e44 100644 --- a/lib/User/AddPassword.php +++ b/lib/User/AddPassword.php @@ -417,11 +417,11 @@ public function setPassword($password) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -429,12 +429,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -459,11 +459,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/AddRecordToOtherTableRowDate.php b/lib/User/AddRecordToOtherTableRowDate.php index 36f3b948..c8adcc6c 100644 --- a/lib/User/AddRecordToOtherTableRowDate.php +++ b/lib/User/AddRecordToOtherTableRowDate.php @@ -289,11 +289,11 @@ public function valid() /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -301,12 +301,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -331,11 +331,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/AddRecordToOtherTableRowDateTime.php b/lib/User/AddRecordToOtherTableRowDateTime.php index 3fa5409f..c5f04fd5 100644 --- a/lib/User/AddRecordToOtherTableRowDateTime.php +++ b/lib/User/AddRecordToOtherTableRowDateTime.php @@ -289,11 +289,11 @@ public function valid() /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -301,12 +301,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -331,11 +331,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/AppsApi.php b/lib/User/AppsApi.php index 6b75ed2e..15b219df 100644 --- a/lib/User/AppsApi.php +++ b/lib/User/AppsApi.php @@ -1330,6 +1330,14 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } diff --git a/lib/User/AttachmentApi.php b/lib/User/AttachmentApi.php index 86eb7bec..36486de6 100644 --- a/lib/User/AttachmentApi.php +++ b/lib/User/AttachmentApi.php @@ -2213,6 +2213,14 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } diff --git a/lib/User/AutomationsApi.php b/lib/User/AutomationsApi.php index 63cfb3f8..7841d4a6 100644 --- a/lib/User/AutomationsApi.php +++ b/lib/User/AutomationsApi.php @@ -1401,6 +1401,14 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } diff --git a/lib/User/Base.php b/lib/User/Base.php index 7b3315cb..9537b214 100644 --- a/lib/User/Base.php +++ b/lib/User/Base.php @@ -317,11 +317,11 @@ public function setTable($table) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -329,12 +329,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -359,11 +359,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/BasePasswordRequest.php b/lib/User/BasePasswordRequest.php index 1974dabb..3917d343 100644 --- a/lib/User/BasePasswordRequest.php +++ b/lib/User/BasePasswordRequest.php @@ -451,11 +451,11 @@ public function setNewPassword($new_password) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -463,12 +463,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -493,11 +493,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/BaseTable.php b/lib/User/BaseTable.php index 84f0eef6..898ac3a3 100644 --- a/lib/User/BaseTable.php +++ b/lib/User/BaseTable.php @@ -678,11 +678,11 @@ public function setInStorage($in_storage) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -690,12 +690,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -720,11 +720,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/BasesApi.php b/lib/User/BasesApi.php index e1a5ce7a..a7d41f44 100644 --- a/lib/User/BasesApi.php +++ b/lib/User/BasesApi.php @@ -5593,6 +5593,14 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } diff --git a/lib/User/ChooseADateColumnValue.php b/lib/User/ChooseADateColumnValue.php index cc2ba9f3..be25d9bb 100644 --- a/lib/User/ChooseADateColumnValue.php +++ b/lib/User/ChooseADateColumnValue.php @@ -383,11 +383,11 @@ public function setDateColumnKey($date_column_key) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -395,12 +395,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -425,11 +425,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/CommonDatasetApi.php b/lib/User/CommonDatasetApi.php index 6f09b7a7..89db5119 100644 --- a/lib/User/CommonDatasetApi.php +++ b/lib/User/CommonDatasetApi.php @@ -3036,6 +3036,14 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } diff --git a/lib/User/Contains.php b/lib/User/Contains.php index bf078767..cc783714 100644 --- a/lib/User/Contains.php +++ b/lib/User/Contains.php @@ -417,11 +417,11 @@ public function setFilterTerm($filter_term) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -429,12 +429,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -459,11 +459,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/ContainsFilterTerm.php b/lib/User/ContainsFilterTerm.php index 034fb1e7..479f6417 100644 --- a/lib/User/ContainsFilterTerm.php +++ b/lib/User/ContainsFilterTerm.php @@ -289,11 +289,11 @@ public function valid() /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -301,12 +301,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -331,11 +331,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/CreateAutomationRuleRequest.php b/lib/User/CreateAutomationRuleRequest.php index 63a454ae..c94b1657 100644 --- a/lib/User/CreateAutomationRuleRequest.php +++ b/lib/User/CreateAutomationRuleRequest.php @@ -417,11 +417,11 @@ public function setActions($actions) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -429,12 +429,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -459,11 +459,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/CreateGroupRequest.php b/lib/User/CreateGroupRequest.php index 3e0678dc..c40ecc41 100644 --- a/lib/User/CreateGroupRequest.php +++ b/lib/User/CreateGroupRequest.php @@ -317,11 +317,11 @@ public function setName($name) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -329,12 +329,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -359,11 +359,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/DepartmentsApi.php b/lib/User/DepartmentsApi.php index 78a8a57f..8ea22d66 100644 --- a/lib/User/DepartmentsApi.php +++ b/lib/User/DepartmentsApi.php @@ -670,6 +670,14 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } diff --git a/lib/User/Detail.php b/lib/User/Detail.php index 87b757fe..630adac2 100644 --- a/lib/User/Detail.php +++ b/lib/User/Detail.php @@ -419,11 +419,11 @@ public function setPassword($password) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -431,12 +431,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -461,11 +461,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/DoesNotContain.php b/lib/User/DoesNotContain.php index 18850ac6..c2edd2c3 100644 --- a/lib/User/DoesNotContain.php +++ b/lib/User/DoesNotContain.php @@ -417,11 +417,11 @@ public function setFilterTerm($filter_term) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -429,12 +429,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -459,11 +459,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/EmailAccountsApi.php b/lib/User/EmailAccountsApi.php index 5c6f2b90..94eefe3a 100644 --- a/lib/User/EmailAccountsApi.php +++ b/lib/User/EmailAccountsApi.php @@ -1836,6 +1836,14 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } diff --git a/lib/User/Equal.php b/lib/User/Equal.php index b3f32cad..5a57f11e 100644 --- a/lib/User/Equal.php +++ b/lib/User/Equal.php @@ -417,11 +417,11 @@ public function setFilterTerm($filter_term) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -429,12 +429,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -459,11 +459,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/FiltersInner.php b/lib/User/FiltersInner.php index de8d972a..3d065a1a 100644 --- a/lib/User/FiltersInner.php +++ b/lib/User/FiltersInner.php @@ -483,11 +483,11 @@ public function setFilterTermModifier($filter_term_modifier) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -495,12 +495,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -525,11 +525,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/FormsApi.php b/lib/User/FormsApi.php index 29ee7f24..d90da08e 100644 --- a/lib/User/FormsApi.php +++ b/lib/User/FormsApi.php @@ -2121,6 +2121,14 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } diff --git a/lib/User/GetBigDataOperationLogs200Response.php b/lib/User/GetBigDataOperationLogs200Response.php index 7d0f9ba5..c8cf5868 100644 --- a/lib/User/GetBigDataOperationLogs200Response.php +++ b/lib/User/GetBigDataOperationLogs200Response.php @@ -317,11 +317,11 @@ public function setOperations($operations) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -329,12 +329,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -359,11 +359,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/GetBigDataOperationLogs200ResponseOperationsInner.php b/lib/User/GetBigDataOperationLogs200ResponseOperationsInner.php index cb499976..c88d0edd 100644 --- a/lib/User/GetBigDataOperationLogs200ResponseOperationsInner.php +++ b/lib/User/GetBigDataOperationLogs200ResponseOperationsInner.php @@ -453,11 +453,11 @@ public function setOperation($operation) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -465,12 +465,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -495,11 +495,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/GetBigDataOperationLogs200ResponseOperationsInnerOperation.php b/lib/User/GetBigDataOperationLogs200ResponseOperationsInnerOperation.php index 0742f96b..793105bf 100644 --- a/lib/User/GetBigDataOperationLogs200ResponseOperationsInnerOperation.php +++ b/lib/User/GetBigDataOperationLogs200ResponseOperationsInnerOperation.php @@ -488,11 +488,11 @@ public function setRowData($row_data) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -500,12 +500,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -530,11 +530,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/Greater.php b/lib/User/Greater.php index 0f61525b..069a828e 100644 --- a/lib/User/Greater.php +++ b/lib/User/Greater.php @@ -417,11 +417,11 @@ public function setFilterTerm($filter_term) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -429,12 +429,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -459,11 +459,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/GreaterOrEqual.php b/lib/User/GreaterOrEqual.php index 95e77a9a..8088d59c 100644 --- a/lib/User/GreaterOrEqual.php +++ b/lib/User/GreaterOrEqual.php @@ -417,11 +417,11 @@ public function setFilterTerm($filter_term) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -429,12 +429,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -459,11 +459,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/GroupsWorkspacesApi.php b/lib/User/GroupsWorkspacesApi.php index 70b5e60a..47c9cfbb 100644 --- a/lib/User/GroupsWorkspacesApi.php +++ b/lib/User/GroupsWorkspacesApi.php @@ -4112,6 +4112,14 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } diff --git a/lib/User/HasAllOf.php b/lib/User/HasAllOf.php index 674689ff..60e8be2b 100644 --- a/lib/User/HasAllOf.php +++ b/lib/User/HasAllOf.php @@ -417,11 +417,11 @@ public function setFilterTerm($filter_term) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -429,12 +429,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -459,11 +459,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/HasAnyOf.php b/lib/User/HasAnyOf.php index 4e092f61..ae2715ee 100644 --- a/lib/User/HasAnyOf.php +++ b/lib/User/HasAnyOf.php @@ -417,11 +417,11 @@ public function setFilterTerm($filter_term) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -429,12 +429,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -459,11 +459,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/HasNoneOf.php b/lib/User/HasNoneOf.php index e507f23c..0c909094 100644 --- a/lib/User/HasNoneOf.php +++ b/lib/User/HasNoneOf.php @@ -417,11 +417,11 @@ public function setFilterTerm($filter_term) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -429,12 +429,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -459,11 +459,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/ImportBasefromDTableFile200Response.php b/lib/User/ImportBasefromDTableFile200Response.php index c9da8f53..34bdac5c 100644 --- a/lib/User/ImportBasefromDTableFile200Response.php +++ b/lib/User/ImportBasefromDTableFile200Response.php @@ -351,11 +351,11 @@ public function setTable($table) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -363,12 +363,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -393,11 +393,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/ImportBasefromDTableFile200ResponseTable.php b/lib/User/ImportBasefromDTableFile200ResponseTable.php index f28067f7..9fede311 100644 --- a/lib/User/ImportBasefromDTableFile200ResponseTable.php +++ b/lib/User/ImportBasefromDTableFile200ResponseTable.php @@ -678,11 +678,11 @@ public function setInStorage($in_storage) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -690,12 +690,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -720,11 +720,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/ImportExportApi.php b/lib/User/ImportExportApi.php index 1e9435d8..8dc90d46 100644 --- a/lib/User/ImportExportApi.php +++ b/lib/User/ImportExportApi.php @@ -3109,6 +3109,14 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } diff --git a/lib/User/ImportUsersToAppRequest.php b/lib/User/ImportUsersToAppRequest.php index 08c3efc2..63869bfc 100644 --- a/lib/User/ImportUsersToAppRequest.php +++ b/lib/User/ImportUsersToAppRequest.php @@ -317,11 +317,11 @@ public function setUsersInfo($users_info) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -329,12 +329,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -359,11 +359,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/IncludeMe.php b/lib/User/IncludeMe.php index 1a5e9039..3aa2980d 100644 --- a/lib/User/IncludeMe.php +++ b/lib/User/IncludeMe.php @@ -417,11 +417,11 @@ public function setFilterTerm($filter_term) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -429,12 +429,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -459,11 +459,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/Is.php b/lib/User/Is.php index 3543dec9..2c7913d3 100644 --- a/lib/User/Is.php +++ b/lib/User/Is.php @@ -417,11 +417,11 @@ public function setFilterTerm($filter_term) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -429,12 +429,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -459,11 +459,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/IsAnyOf.php b/lib/User/IsAnyOf.php index c31a1aa6..d591e596 100644 --- a/lib/User/IsAnyOf.php +++ b/lib/User/IsAnyOf.php @@ -417,11 +417,11 @@ public function setFilterTerm($filter_term) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -429,12 +429,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -459,11 +459,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/IsCurrentUserID.php b/lib/User/IsCurrentUserID.php index 570775b9..6d8a0d55 100644 --- a/lib/User/IsCurrentUserID.php +++ b/lib/User/IsCurrentUserID.php @@ -417,11 +417,11 @@ public function setFilterTerm($filter_term) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -429,12 +429,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -459,11 +459,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/IsEmpty.php b/lib/User/IsEmpty.php index af058803..e63cc684 100644 --- a/lib/User/IsEmpty.php +++ b/lib/User/IsEmpty.php @@ -417,11 +417,11 @@ public function setFilterTerm($filter_term) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -429,12 +429,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -459,11 +459,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/IsExactly.php b/lib/User/IsExactly.php index bc2651da..f836bd9f 100644 --- a/lib/User/IsExactly.php +++ b/lib/User/IsExactly.php @@ -417,11 +417,11 @@ public function setFilterTerm($filter_term) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -429,12 +429,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -459,11 +459,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/IsInactive.php b/lib/User/IsInactive.php index e239616c..3fe3be9b 100644 --- a/lib/User/IsInactive.php +++ b/lib/User/IsInactive.php @@ -320,11 +320,11 @@ public function setIsInactive($is_inactive) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -332,12 +332,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -362,11 +362,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/IsNoneOf.php b/lib/User/IsNoneOf.php index a2eb8c5a..a4738711 100644 --- a/lib/User/IsNoneOf.php +++ b/lib/User/IsNoneOf.php @@ -417,11 +417,11 @@ public function setFilterTerm($filter_term) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -429,12 +429,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -459,11 +459,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/IsNot.php b/lib/User/IsNot.php index f9c4c5b7..69d09539 100644 --- a/lib/User/IsNot.php +++ b/lib/User/IsNot.php @@ -417,11 +417,11 @@ public function setFilterTerm($filter_term) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -429,12 +429,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -459,11 +459,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/IsNotEmpty.php b/lib/User/IsNotEmpty.php index 13c593b6..41192254 100644 --- a/lib/User/IsNotEmpty.php +++ b/lib/User/IsNotEmpty.php @@ -417,11 +417,11 @@ public function setFilterTerm($filter_term) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -429,12 +429,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -459,11 +459,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/IsWithinTheNextMonth.php b/lib/User/IsWithinTheNextMonth.php index b60ac4fa..140f1acd 100644 --- a/lib/User/IsWithinTheNextMonth.php +++ b/lib/User/IsWithinTheNextMonth.php @@ -483,11 +483,11 @@ public function setFilterTermModifier($filter_term_modifier) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -495,12 +495,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -525,11 +525,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/IsWithinTheNextNumberOfDays.php b/lib/User/IsWithinTheNextNumberOfDays.php index e05ceecf..81d7b83d 100644 --- a/lib/User/IsWithinTheNextNumberOfDays.php +++ b/lib/User/IsWithinTheNextNumberOfDays.php @@ -483,11 +483,11 @@ public function setFilterTermModifier($filter_term_modifier) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -495,12 +495,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -525,11 +525,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/IsWithinTheNextWeek.php b/lib/User/IsWithinTheNextWeek.php index d254e850..3ef4c328 100644 --- a/lib/User/IsWithinTheNextWeek.php +++ b/lib/User/IsWithinTheNextWeek.php @@ -483,11 +483,11 @@ public function setFilterTermModifier($filter_term_modifier) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -495,12 +495,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -525,11 +525,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/IsWithinTheNextYear.php b/lib/User/IsWithinTheNextYear.php index 045aca79..b4277af0 100644 --- a/lib/User/IsWithinTheNextYear.php +++ b/lib/User/IsWithinTheNextYear.php @@ -483,11 +483,11 @@ public function setFilterTermModifier($filter_term_modifier) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -495,12 +495,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -525,11 +525,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/IsWithinThePastMonth.php b/lib/User/IsWithinThePastMonth.php index 744a5754..a1121516 100644 --- a/lib/User/IsWithinThePastMonth.php +++ b/lib/User/IsWithinThePastMonth.php @@ -483,11 +483,11 @@ public function setFilterTermModifier($filter_term_modifier) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -495,12 +495,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -525,11 +525,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/IsWithinThePastNumberOfDays.php b/lib/User/IsWithinThePastNumberOfDays.php index 5f80af18..7db2ea7e 100644 --- a/lib/User/IsWithinThePastNumberOfDays.php +++ b/lib/User/IsWithinThePastNumberOfDays.php @@ -483,11 +483,11 @@ public function setFilterTermModifier($filter_term_modifier) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -495,12 +495,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -525,11 +525,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/IsWithinThePastWeek.php b/lib/User/IsWithinThePastWeek.php index a9d417a9..e54513bb 100644 --- a/lib/User/IsWithinThePastWeek.php +++ b/lib/User/IsWithinThePastWeek.php @@ -483,11 +483,11 @@ public function setFilterTermModifier($filter_term_modifier) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -495,12 +495,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -525,11 +525,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/IsWithinThePastYear.php b/lib/User/IsWithinThePastYear.php index 0eaaa612..4061c7ca 100644 --- a/lib/User/IsWithinThePastYear.php +++ b/lib/User/IsWithinThePastYear.php @@ -483,11 +483,11 @@ public function setFilterTermModifier($filter_term_modifier) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -495,12 +495,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -525,11 +525,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/IsWithinThisMonth.php b/lib/User/IsWithinThisMonth.php index 903e5ab3..e50624c6 100644 --- a/lib/User/IsWithinThisMonth.php +++ b/lib/User/IsWithinThisMonth.php @@ -483,11 +483,11 @@ public function setFilterTermModifier($filter_term_modifier) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -495,12 +495,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -525,11 +525,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/IsWithinThisWeek.php b/lib/User/IsWithinThisWeek.php index 0e89b98c..bbd5a81b 100644 --- a/lib/User/IsWithinThisWeek.php +++ b/lib/User/IsWithinThisWeek.php @@ -483,11 +483,11 @@ public function setFilterTermModifier($filter_term_modifier) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -495,12 +495,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -525,11 +525,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/IsWithinThisYear.php b/lib/User/IsWithinThisYear.php index 5a26f24f..6b874652 100644 --- a/lib/User/IsWithinThisYear.php +++ b/lib/User/IsWithinThisYear.php @@ -483,11 +483,11 @@ public function setFilterTermModifier($filter_term_modifier) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -495,12 +495,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -525,11 +525,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/Less.php b/lib/User/Less.php index cf4f6c73..8c03a5a7 100644 --- a/lib/User/Less.php +++ b/lib/User/Less.php @@ -417,11 +417,11 @@ public function setFilterTerm($filter_term) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -429,12 +429,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -459,11 +459,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/LessOrEqual.php b/lib/User/LessOrEqual.php index 90520f7c..28095a02 100644 --- a/lib/User/LessOrEqual.php +++ b/lib/User/LessOrEqual.php @@ -417,11 +417,11 @@ public function setFilterTerm($filter_term) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -429,12 +429,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -459,11 +459,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/ListPublicUserInfosRequest.php b/lib/User/ListPublicUserInfosRequest.php index 3458e3da..91c01760 100644 --- a/lib/User/ListPublicUserInfosRequest.php +++ b/lib/User/ListPublicUserInfosRequest.php @@ -317,11 +317,11 @@ public function setUserIdList($user_id_list) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -329,12 +329,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -359,11 +359,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/MaintenanceApi.php b/lib/User/MaintenanceApi.php index 29e575cd..1bfa61dd 100644 --- a/lib/User/MaintenanceApi.php +++ b/lib/User/MaintenanceApi.php @@ -415,6 +415,14 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } diff --git a/lib/User/ModifyPassword.php b/lib/User/ModifyPassword.php index e160e21b..5f6404cc 100644 --- a/lib/User/ModifyPassword.php +++ b/lib/User/ModifyPassword.php @@ -451,11 +451,11 @@ public function setNewPassword($new_password) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -463,12 +463,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -493,11 +493,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/NotEqual.php b/lib/User/NotEqual.php index d0ac1eb9..7729c37d 100644 --- a/lib/User/NotEqual.php +++ b/lib/User/NotEqual.php @@ -417,11 +417,11 @@ public function setFilterTerm($filter_term) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -429,12 +429,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -459,11 +459,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/NotificationsApi.php b/lib/User/NotificationsApi.php index 08c3ba85..d8b7c688 100644 --- a/lib/User/NotificationsApi.php +++ b/lib/User/NotificationsApi.php @@ -1656,6 +1656,14 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } diff --git a/lib/User/RecordsMeetSpecificConditionsAfterModification.php b/lib/User/RecordsMeetSpecificConditionsAfterModification.php index a84045e2..aa0f7392 100644 --- a/lib/User/RecordsMeetSpecificConditionsAfterModification.php +++ b/lib/User/RecordsMeetSpecificConditionsAfterModification.php @@ -417,11 +417,11 @@ public function setActions($actions) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -429,12 +429,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -459,11 +459,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/RepairBase200Response.php b/lib/User/RepairBase200Response.php index 3de0d23c..793c85eb 100644 --- a/lib/User/RepairBase200Response.php +++ b/lib/User/RepairBase200Response.php @@ -317,11 +317,11 @@ public function setSuccess($success) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -329,12 +329,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -359,11 +359,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/RowAdded.php b/lib/User/RowAdded.php index 810fcb12..3643bfae 100644 --- a/lib/User/RowAdded.php +++ b/lib/User/RowAdded.php @@ -417,11 +417,11 @@ public function setActions($actions) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -429,12 +429,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -459,11 +459,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/RunPeriodically.php b/lib/User/RunPeriodically.php index 7d5af1cf..dccd4dd5 100644 --- a/lib/User/RunPeriodically.php +++ b/lib/User/RunPeriodically.php @@ -417,11 +417,11 @@ public function setActions($actions) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -429,12 +429,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -459,11 +459,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/RunPeriodicallyOnRecordsMeetConditions.php b/lib/User/RunPeriodicallyOnRecordsMeetConditions.php index 2f351921..75c50476 100644 --- a/lib/User/RunPeriodicallyOnRecordsMeetConditions.php +++ b/lib/User/RunPeriodicallyOnRecordsMeetConditions.php @@ -417,11 +417,11 @@ public function setActions($actions) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -429,12 +429,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -459,11 +459,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/SharingApi.php b/lib/User/SharingApi.php index 09e0b39f..06e8c215 100644 --- a/lib/User/SharingApi.php +++ b/lib/User/SharingApi.php @@ -7517,6 +7517,14 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } diff --git a/lib/User/SharingLinksApi.php b/lib/User/SharingLinksApi.php index 81be62e9..16772955 100644 --- a/lib/User/SharingLinksApi.php +++ b/lib/User/SharingLinksApi.php @@ -2667,6 +2667,14 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } diff --git a/lib/User/SnapshotsApi.php b/lib/User/SnapshotsApi.php index 37b8dd48..4a3c3b24 100644 --- a/lib/User/SnapshotsApi.php +++ b/lib/User/SnapshotsApi.php @@ -1404,6 +1404,14 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } diff --git a/lib/User/SpecificDateValue.php b/lib/User/SpecificDateValue.php index 274d0e69..a58d0fd1 100644 --- a/lib/User/SpecificDateValue.php +++ b/lib/User/SpecificDateValue.php @@ -383,11 +383,11 @@ public function setValue($value) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -395,12 +395,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -425,11 +425,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/SystemNotificationsApi.php b/lib/User/SystemNotificationsApi.php index 3dac828e..863e5c2b 100644 --- a/lib/User/SystemNotificationsApi.php +++ b/lib/User/SystemNotificationsApi.php @@ -667,6 +667,14 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } diff --git a/lib/User/TheDayRunningTheTaskValue.php b/lib/User/TheDayRunningTheTaskValue.php index 0be31cc8..b1e8626c 100644 --- a/lib/User/TheDayRunningTheTaskValue.php +++ b/lib/User/TheDayRunningTheTaskValue.php @@ -481,11 +481,11 @@ public function setOffsetBy($offset_by) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -493,12 +493,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -523,11 +523,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/Trigger.php b/lib/User/Trigger.php index 25d95979..52b6c689 100644 --- a/lib/User/Trigger.php +++ b/lib/User/Trigger.php @@ -419,11 +419,11 @@ public function setViewId($view_id) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -431,12 +431,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -461,11 +461,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/TriggerRecordsMeetSpecificConditionsAfterModification.php b/lib/User/TriggerRecordsMeetSpecificConditionsAfterModification.php index 3d6839be..730f2437 100644 --- a/lib/User/TriggerRecordsMeetSpecificConditionsAfterModification.php +++ b/lib/User/TriggerRecordsMeetSpecificConditionsAfterModification.php @@ -555,11 +555,11 @@ public function setWatchAllColumns($watch_all_columns) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -567,12 +567,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -597,11 +597,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/TriggerRowAdded.php b/lib/User/TriggerRowAdded.php index eeebb2bb..cc954969 100644 --- a/lib/User/TriggerRowAdded.php +++ b/lib/User/TriggerRowAdded.php @@ -587,11 +587,11 @@ public function setWatchAllColumns($watch_all_columns) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -599,12 +599,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -629,11 +629,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/TriggerRunPeriodicallyOnRecordsMeetPerDay.php b/lib/User/TriggerRunPeriodicallyOnRecordsMeetPerDay.php index 261e69ba..9511549a 100644 --- a/lib/User/TriggerRunPeriodicallyOnRecordsMeetPerDay.php +++ b/lib/User/TriggerRunPeriodicallyOnRecordsMeetPerDay.php @@ -417,11 +417,11 @@ public function setActions($actions) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -429,12 +429,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -459,11 +459,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/TriggerRunPeriodicallyOnRecordsMeetPerDayTrigger.php b/lib/User/TriggerRunPeriodicallyOnRecordsMeetPerDayTrigger.php index 004368de..ddd827ec 100644 --- a/lib/User/TriggerRunPeriodicallyOnRecordsMeetPerDayTrigger.php +++ b/lib/User/TriggerRunPeriodicallyOnRecordsMeetPerDayTrigger.php @@ -555,11 +555,11 @@ public function setNotifyHour($notify_hour) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -567,12 +567,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -597,11 +597,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/TriggerRunPeriodicallyOnRecordsMeetPerMonth.php b/lib/User/TriggerRunPeriodicallyOnRecordsMeetPerMonth.php index 011c8f79..5c9b7add 100644 --- a/lib/User/TriggerRunPeriodicallyOnRecordsMeetPerMonth.php +++ b/lib/User/TriggerRunPeriodicallyOnRecordsMeetPerMonth.php @@ -417,11 +417,11 @@ public function setActions($actions) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -429,12 +429,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -459,11 +459,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/TriggerRunPeriodicallyOnRecordsMeetPerMonthTrigger.php b/lib/User/TriggerRunPeriodicallyOnRecordsMeetPerMonthTrigger.php index a6120ade..8d070ffc 100644 --- a/lib/User/TriggerRunPeriodicallyOnRecordsMeetPerMonthTrigger.php +++ b/lib/User/TriggerRunPeriodicallyOnRecordsMeetPerMonthTrigger.php @@ -589,11 +589,11 @@ public function setNotifyMonthHour($notify_month_hour) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -601,12 +601,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -631,11 +631,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/TriggerRunPeriodicallyOnRecordsMeetPerWeek.php b/lib/User/TriggerRunPeriodicallyOnRecordsMeetPerWeek.php index 594180bc..70ea9896 100644 --- a/lib/User/TriggerRunPeriodicallyOnRecordsMeetPerWeek.php +++ b/lib/User/TriggerRunPeriodicallyOnRecordsMeetPerWeek.php @@ -417,11 +417,11 @@ public function setActions($actions) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -429,12 +429,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -459,11 +459,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/TriggerRunPeriodicallyOnRecordsMeetPerWeekTrigger.php b/lib/User/TriggerRunPeriodicallyOnRecordsMeetPerWeekTrigger.php index 67170476..b3453ade 100644 --- a/lib/User/TriggerRunPeriodicallyOnRecordsMeetPerWeekTrigger.php +++ b/lib/User/TriggerRunPeriodicallyOnRecordsMeetPerWeekTrigger.php @@ -589,11 +589,11 @@ public function setNotifyWeekHour($notify_week_hour) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -601,12 +601,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -631,11 +631,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/TriggerRunPeriodicallyPerDay.php b/lib/User/TriggerRunPeriodicallyPerDay.php index 517c5735..018e62dd 100644 --- a/lib/User/TriggerRunPeriodicallyPerDay.php +++ b/lib/User/TriggerRunPeriodicallyPerDay.php @@ -417,11 +417,11 @@ public function setActions($actions) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -429,12 +429,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -459,11 +459,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/TriggerRunPeriodicallyPerDayTrigger.php b/lib/User/TriggerRunPeriodicallyPerDayTrigger.php index 42d0494e..f6017178 100644 --- a/lib/User/TriggerRunPeriodicallyPerDayTrigger.php +++ b/lib/User/TriggerRunPeriodicallyPerDayTrigger.php @@ -487,11 +487,11 @@ public function setNotifyHour($notify_hour) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -499,12 +499,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -529,11 +529,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/TriggerRunPeriodicallyPerMonth.php b/lib/User/TriggerRunPeriodicallyPerMonth.php index 77afe779..b028b3b7 100644 --- a/lib/User/TriggerRunPeriodicallyPerMonth.php +++ b/lib/User/TriggerRunPeriodicallyPerMonth.php @@ -417,11 +417,11 @@ public function setActions($actions) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -429,12 +429,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -459,11 +459,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/TriggerRunPeriodicallyPerMonthTrigger.php b/lib/User/TriggerRunPeriodicallyPerMonthTrigger.php index de2e8a4f..b1a33cbb 100644 --- a/lib/User/TriggerRunPeriodicallyPerMonthTrigger.php +++ b/lib/User/TriggerRunPeriodicallyPerMonthTrigger.php @@ -521,11 +521,11 @@ public function setNotifyMonthHour($notify_month_hour) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -533,12 +533,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -563,11 +563,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/TriggerRunPeriodicallyPerWeek.php b/lib/User/TriggerRunPeriodicallyPerWeek.php index 5416a6af..8de6684b 100644 --- a/lib/User/TriggerRunPeriodicallyPerWeek.php +++ b/lib/User/TriggerRunPeriodicallyPerWeek.php @@ -417,11 +417,11 @@ public function setActions($actions) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -429,12 +429,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -459,11 +459,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/TriggerRunPeriodicallyPerWeekTrigger.php b/lib/User/TriggerRunPeriodicallyPerWeekTrigger.php index 70737349..207179b0 100644 --- a/lib/User/TriggerRunPeriodicallyPerWeekTrigger.php +++ b/lib/User/TriggerRunPeriodicallyPerWeekTrigger.php @@ -521,11 +521,11 @@ public function setNotifyWeekHour($notify_week_hour) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -533,12 +533,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -563,11 +563,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/UnsetPassword.php b/lib/User/UnsetPassword.php index 49b74960..6105ef31 100644 --- a/lib/User/UnsetPassword.php +++ b/lib/User/UnsetPassword.php @@ -417,11 +417,11 @@ public function setPassword($password) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -429,12 +429,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -459,11 +459,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/UpdateCommonDatasetSyncRequest.php b/lib/User/UpdateCommonDatasetSyncRequest.php index 70b77345..22fb3a06 100644 --- a/lib/User/UpdateCommonDatasetSyncRequest.php +++ b/lib/User/UpdateCommonDatasetSyncRequest.php @@ -385,11 +385,11 @@ public function setDstTableId($dst_table_id) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -397,12 +397,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -427,11 +427,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/UpdateGroupRequest.php b/lib/User/UpdateGroupRequest.php index fcf4fcf2..c4caa7b5 100644 --- a/lib/User/UpdateGroupRequest.php +++ b/lib/User/UpdateGroupRequest.php @@ -351,11 +351,11 @@ public function setOwner($owner) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -363,12 +363,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -393,11 +393,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/UpdateGroupRoleRequest.php b/lib/User/UpdateGroupRoleRequest.php index 62ffe242..aa82417b 100644 --- a/lib/User/UpdateGroupRoleRequest.php +++ b/lib/User/UpdateGroupRoleRequest.php @@ -317,11 +317,11 @@ public function setIsAdmin($is_admin) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -329,12 +329,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -359,11 +359,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/UpdateNotificationRuleRequest.php b/lib/User/UpdateNotificationRuleRequest.php index 84ebce7c..41ea8dad 100644 --- a/lib/User/UpdateNotificationRuleRequest.php +++ b/lib/User/UpdateNotificationRuleRequest.php @@ -385,11 +385,11 @@ public function setAction($action) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -397,12 +397,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -427,11 +427,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/UserApi.php b/lib/User/UserApi.php index 5c5368e1..8d9b1880 100644 --- a/lib/User/UserApi.php +++ b/lib/User/UserApi.php @@ -1757,6 +1757,14 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } diff --git a/lib/User/UsersInfo.php b/lib/User/UsersInfo.php index e4fc3bd3..fa4d3b7a 100644 --- a/lib/User/UsersInfo.php +++ b/lib/User/UsersInfo.php @@ -351,11 +351,11 @@ public function setRoleId($role_id) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -363,12 +363,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -393,11 +393,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/WebhooksApi.php b/lib/User/WebhooksApi.php index d2eadd5b..209f3e07 100644 --- a/lib/User/WebhooksApi.php +++ b/lib/User/WebhooksApi.php @@ -1421,6 +1421,14 @@ protected function createHttpClientOption() } } + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + return $options; } diff --git a/lib/User/XDaysBeforeRunningTheTaskValue.php b/lib/User/XDaysBeforeRunningTheTaskValue.php index 73f73f3f..0454866f 100644 --- a/lib/User/XDaysBeforeRunningTheTaskValue.php +++ b/lib/User/XDaysBeforeRunningTheTaskValue.php @@ -449,11 +449,11 @@ public function setOffsetBy($offset_by) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -461,12 +461,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -491,11 +491,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/XxxExactDate.php b/lib/User/XxxExactDate.php index 7b491324..613d2843 100644 --- a/lib/User/XxxExactDate.php +++ b/lib/User/XxxExactDate.php @@ -503,11 +503,11 @@ public function setFilterTermModifier($filter_term_modifier) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -515,12 +515,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -545,11 +545,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/XxxNumberOfDaysAgo.php b/lib/User/XxxNumberOfDaysAgo.php index bb99a282..800851ad 100644 --- a/lib/User/XxxNumberOfDaysAgo.php +++ b/lib/User/XxxNumberOfDaysAgo.php @@ -494,11 +494,11 @@ public function setFilterTermModifier($filter_term_modifier) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -506,12 +506,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -536,11 +536,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/XxxNumberOfDaysFromNow.php b/lib/User/XxxNumberOfDaysFromNow.php index 401f7d8b..70724c86 100644 --- a/lib/User/XxxNumberOfDaysFromNow.php +++ b/lib/User/XxxNumberOfDaysFromNow.php @@ -494,11 +494,11 @@ public function setFilterTermModifier($filter_term_modifier) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -506,12 +506,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -536,11 +536,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/XxxOneMonthAgo.php b/lib/User/XxxOneMonthAgo.php index 9c7820a9..e22c7c8b 100644 --- a/lib/User/XxxOneMonthAgo.php +++ b/lib/User/XxxOneMonthAgo.php @@ -494,11 +494,11 @@ public function setFilterTermModifier($filter_term_modifier) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -506,12 +506,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -536,11 +536,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/XxxOneMonthFromNow.php b/lib/User/XxxOneMonthFromNow.php index a6637e83..c1da72ed 100644 --- a/lib/User/XxxOneMonthFromNow.php +++ b/lib/User/XxxOneMonthFromNow.php @@ -494,11 +494,11 @@ public function setFilterTermModifier($filter_term_modifier) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -506,12 +506,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -536,11 +536,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/XxxOneWeekAgo.php b/lib/User/XxxOneWeekAgo.php index b822a57c..98f7ba8b 100644 --- a/lib/User/XxxOneWeekAgo.php +++ b/lib/User/XxxOneWeekAgo.php @@ -494,11 +494,11 @@ public function setFilterTermModifier($filter_term_modifier) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -506,12 +506,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -536,11 +536,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/XxxOneWeekFromNow.php b/lib/User/XxxOneWeekFromNow.php index 34ceb52f..31e17a3b 100644 --- a/lib/User/XxxOneWeekFromNow.php +++ b/lib/User/XxxOneWeekFromNow.php @@ -494,11 +494,11 @@ public function setFilterTermModifier($filter_term_modifier) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -506,12 +506,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -536,11 +536,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/XxxToday.php b/lib/User/XxxToday.php index a5693086..683d0145 100644 --- a/lib/User/XxxToday.php +++ b/lib/User/XxxToday.php @@ -494,11 +494,11 @@ public function setFilterTermModifier($filter_term_modifier) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -506,12 +506,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -536,11 +536,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/XxxTomorrow.php b/lib/User/XxxTomorrow.php index a1614366..aa1daffa 100644 --- a/lib/User/XxxTomorrow.php +++ b/lib/User/XxxTomorrow.php @@ -494,11 +494,11 @@ public function setFilterTermModifier($filter_term_modifier) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -506,12 +506,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -536,11 +536,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/lib/User/XxxYesterday.php b/lib/User/XxxYesterday.php index 907b8f66..54edf80c 100644 --- a/lib/User/XxxYesterday.php +++ b/lib/User/XxxYesterday.php @@ -494,11 +494,11 @@ public function setFilterTermModifier($filter_term_modifier) /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return boolean */ - public function offsetExists($offset): bool + public function offsetExists(mixed $offset): bool { return isset($this->container[$offset]); } @@ -506,12 +506,12 @@ public function offsetExists($offset): bool /** * Gets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return mixed|null */ #[\ReturnTypeWillChange] - public function offsetGet($offset) + public function offsetGet(mixed $offset) { return $this->container[$offset] ?? null; } @@ -536,11 +536,11 @@ public function offsetSet($offset, $value): void /** * Unsets offset. * - * @param integer $offset Offset + * @param integer|string $offset Offset * * @return void */ - public function offsetUnset($offset): void + public function offsetUnset(mixed $offset): void { unset($this->container[$offset]); } diff --git a/openapi_input/file_operations.yaml b/openapi_input/file_operations.yaml index 481b7360..071f845b 100644 --- a/openapi_input/file_operations.yaml +++ b/openapi_input/file_operations.yaml @@ -141,6 +141,7 @@ paths: example: upload_link: >- https://cloud.seafile.com/seafhttp/upload-api/83e701c8-84ba-498c-91b1-ddb3789edb7e + workspace_id: 42 parent_path: /asset/a275d870-fd55-48e4-8c4a-5fd6f2549765 img_relative_path: images/2021-08 file_relative_path: files/2021-08 @@ -361,6 +362,7 @@ paths: example: dirent: upload_link: "https://cloud.seatable.io/seafhttp/upload-api/e943a56a-c5b3-441a-ac1d-9199819dec71" + workspace_id: 42 parent_path: "/asset/1338f224-8482-4d71-b8be-63c8f37b896a/custom" relative_path": "/" /api/v2.1/dtable/custom/app-download-link/: diff --git a/openapi_input/team_admin_account_operations.yaml b/openapi_input/team_admin_account_operations.yaml index a1e234b5..04de9e47 100644 --- a/openapi_input/team_admin_account_operations.yaml +++ b/openapi_input/team_admin_account_operations.yaml @@ -30,6 +30,8 @@ tags: description: Retrieve team info and update team settings - name: Activities & Logs description: Retrieve team activities and logs + - name: Statistics + description: Retrieve statistics about system activities - name: Customizing description: Customize team appearance - name: SAML @@ -69,6 +71,14 @@ components: type: string description: Exact name or a part of the name of the base, case insensitive. example: "Example" + dtable_uuid: + name: dtable_uuid + in: query + schema: + type: string + pattern: '^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$' + description: The unique identifier of a base. + example: 5c264e76-0e5a-448a-9f34-580b551364ca ignore_asset: name: ignore_asset in: query @@ -76,6 +86,41 @@ components: type: boolean example: "false" description: Set this to `true` to export the base without assets. Default is `false`. + login_status: + name: login_status + in: query + schema: + type: string + enum: [success, failure] + example: success + description: Set this to `success` to only return successful logins. By default, all logins are returned. + start: + name: start + in: query + schema: + type: string + format: date-time + description: Start date in ISO format. + example: "2025-11-01T06:00:00+01:00" + required: false + end: + name: end + in: query + schema: + type: string + format: date-time + description: End date in ISO format. + example: "2025-11-30T18:00:00+01:00" + required: false + operation_group: + name: operation_group + in: query + schema: + type: string + enum: [user, group, base] + example: user + description: Filter by a specific operation group. By default, all operations are returned. + required: false #=======================Path parameters=======================# org_id: @@ -149,6 +194,14 @@ components: pattern: "^[a-f0-9]{32}(@auth.local)$" required: true example: 123456789f1e4c8d8e1c31415867317c@auth.local + app_name: + name: app_name + description: The name of your app. Every API-Token has a name to identify the purpose. The name of the app must be unique for every base. + in: path + schema: + type: string + required: true + example: "My App" schemas: team_admin_permission: @@ -406,6 +459,8 @@ paths: id_in_org: "" has_default_device: false is_force_2fa: true + is_active: true + is_org_admin: false put: tags: - Users @@ -637,6 +692,64 @@ paths: owner_deleted: false, rows_count: 20 count: 16 + /api/v2.1/org/{org_id}/admin/users/{user_id}/dtables/: + get: + tags: + - Bases + summary: List User's Bases + operationId: listUsersBases + description: List all the bases of a certain user by the user's ID. + security: + - AccountTokenAuth: [] + parameters: + - $ref: "#/components/parameters/org_id" + - $ref: "#/components/parameters/user_id" + - $ref: "#/components/parameters/page" + - $ref: "#/components/parameters/per_page" + responses: + "200": + description: OK + content: + application/json: + schema: + type: object + example: + dtable_list: + - id: 6 + workspace_id: 2 + uuid: 3c899a81-6a0c-4111-bb19-288ebf8442fd + name: CRM + created_at: '2025-11-28T14:16:30+01:00' + updated_at: '2025-11-28T14:17:04+01:00' + color: "#E91E63" + text_color: null + icon: icon-user-interview + is_encrypted: false + in_storage: true + org_id: 2 + email: e38487b4357e40c8b1359223ba87a1af@auth.local + group_id: -1 + owner: org-1-admin + owner_deleted: false + rows_count: 7 + - id: 7 + workspace_id: 2 + uuid: e97bb668-da36-484c-8ac9-8aa9e0564f4c + name: Finances + created_at: '2025-11-28T14:18:31+01:00' + updated_at: '2025-11-28T14:18:31+01:00' + color: "#00C9C7" + text_color: null + icon: icon-dollar + is_encrypted: false + in_storage: true + org_id: 2 + email: e38487b4357e40c8b1359223ba87a1af@auth.local + group_id: -1 + owner: org-1-admin + owner_deleted: false + rows_count: 0 + count: 2 /api/v2.1/org/{org_id}/admin/dtables/{base_uuid}/: get: tags: @@ -1221,8 +1334,170 @@ paths: application/json: schema: type: object + /api/v2.1/org/{org_id}/admin/dtables/{base_uuid}/api-tokens/: + get: + tags: + - Bases + summary: List API-Tokens + operationId: listApiTokens + description: List API tokens of a single base. + security: + - AccountTokenAuth: [] + parameters: + - $ref: "#/components/parameters/org_id" + - $ref: "#/components/parameters/base_uuid" + responses: + "200": + description: OK + content: + application/json: + schema: + type: object + example: + api_tokens: + - app_name: n8n + api_token: c1a7a416280ab3f9b0b632edbb58a69a771783f0 + generated_by: e38487b4357e40c8b1359223ba87a1af@auth.local + creator: user1 + avatar_url: https://cloud.seatable.io/media/avatars/default.png + generated_at: '2025-11-28T14:18:39+01:00' + last_access: '2025-11-28T14:18:39+01:00' + permission: rw + /api/v2.1/org/{org_id}/admin/dtables/{base_uuid}/api-tokens/{app_name}/: + delete: + tags: + - Bases + summary: Delete API-Token + operationId: deleteApiToken + description: Delete a specific API token from a base. The token is identified by its *app_name*. + security: + - AccountTokenAuth: [] + parameters: + - $ref: "#/components/parameters/org_id" + - $ref: "#/components/parameters/base_uuid" + - $ref: "#/components/parameters/app_name" + responses: + "200": + description: OK + content: + application/json: + schema: + type: object + example: + success: true + /api/v2.1/org/{org_id}/admin/api-tokens/: + get: + tags: + - Bases + summary: List API-Tokens of All Bases + operationId: listApiTokensOfAllBases + description: List API tokens of all bases inside the team/organization. + security: + - AccountTokenAuth: [] + parameters: + - $ref: "#/components/parameters/org_id" + - $ref: "#/components/parameters/page" + - $ref: "#/components/parameters/per_page" + responses: + "200": + description: OK + content: + application/json: + schema: + type: object + example: + api_tokens: + - app_name: n8n + api_token: c1a7a416280ab3f9b0b632edbb58a69a771783f0 + generated_by: e38487b4357e40c8b1359223ba87a1af@auth.local + creator: user1 + avatar_url: https://cloud.seatable.io/media/avatars/default.png + generated_at: '2025-11-28T14:18:39+01:00' + last_access: '2025-11-28T14:18:39+01:00' + permission: rw + dtable_uuid: 3c899a81-6a0c-4111-bb19-288ebf8442fd + dtable_name: CRM + dtable_icon: icon-user-interview + dtable_color: "#E91E63" + - app_name: API + api_token: 89913c6509062bbd24efe42a509cf9c5bb843018 + generated_by: e38487b4357e40c8b1359223ba87a1af@auth.local + creator: user1 + avatar_url: https://cloud.seatable.io/media/avatars/default.png + generated_at: '2025-11-28T14:18:54+01:00' + last_access: '2025-11-28T14:18:54+01:00' + permission: rw + dtable_uuid: e97bb668-da36-484c-8ac9-8aa9e0564f4c + dtable_name: Finances + dtable_icon: icon-dollar + dtable_color: "#00C9C7" + total_count: 2 # Sharing Links + /api/v2.1/org/{org_id}/admin/shares/: + get: + tags: + - Sharing Links + summary: List Shares + operationId: listShares + description: | + List all shares inside the given team/organization. + + This includes the following: + - Bases shared to individual users + - Bases shared to groups + - Views shared to individual users + - Views shared to groups + security: + - AccountTokenAuth: [] + parameters: + - $ref: "#/components/parameters/org_id" + responses: + "200": + description: OK + content: + application/json: + schema: + type: object + example: + dtable_user_shares: + - dtable_uuid: 3c899a81-6a0c-4111-bb19-288ebf8442fd + email: 97f45993fc174280b939976c9b9256eb@auth.local + name: org-1-user-1 + avatar_url: https://cloud.seatable.io/media/avatars/default.png + contact_email: org-1-user-1@seatable.io + permission: rw + share_id: 1 + dtable_group_shares: + - dtable_uuid: 3c899a81-6a0c-4111-bb19-288ebf8442fd + group_id: 1 + group_name: Marketing + permission: rw + share_id: 1 + view_user_shares: + - dtable_uuid: 3c899a81-6a0c-4111-bb19-288ebf8442fd + id: 1 + dtable_name: CRM + from_user: e38487b4357e40c8b1359223ba87a1af@auth.local + to_user: 97f45993fc174280b939976c9b9256eb@auth.local + permission: r + table_id: '0000' + view_id: '0000' + shared_name: User share + from_user_name: org-1-admin + to_user_name: org-1-user-1 + view_group_shares: + - dtable_uuid: 3c899a81-6a0c-4111-bb19-288ebf8442fd + id: 1 + dtable_name: CRM + from_user: e38487b4357e40c8b1359223ba87a1af@auth.local + to_group_id: 1 + permission: r + table_id: '0000' + view_id: '0000' + shared_name: Group share + from_user_name: org-1-admin + to_group_name: Marketing /api/v2.1/org/{org_id}/admin/external-links/: get: tags: @@ -1621,6 +1896,28 @@ paths: enable_force_2fa: true enable_new_user_email: true enable_external_user_access_invite_link: false + /api/v2.1/org/admin/: + delete: + tags: + - Info & Settings + summary: Delete Team + operationId: deleteTeam + description: >- + Delete a team (organization) with its ID. This will eliminate the team! + + However, this won't delete the team users - but all its members will + become team-less users in the system. + security: + - AccountTokenAuth: [] + responses: + "200": + description: OK + content: + application/json: + schema: + type: object + example: + success: true /api/v2.1/org/{org_id}/admin/admin-logs/: get: @@ -1635,6 +1932,9 @@ paths: - $ref: "#/components/parameters/page" - $ref: "#/components/parameters/per_page" - $ref: "#/components/parameters/org_id" + - $ref: "#/components/parameters/operation_group" + - $ref: "#/components/parameters/start" + - $ref: "#/components/parameters/end" responses: "200": description: OK @@ -1731,6 +2031,9 @@ paths: - $ref: "#/components/parameters/page" - $ref: "#/components/parameters/per_page" - $ref: "#/components/parameters/org_id" + - $ref: "#/components/parameters/login_status" + - $ref: "#/components/parameters/start" + - $ref: "#/components/parameters/end" responses: "200": description: OK @@ -1867,6 +2170,317 @@ paths: ], "count": 2 } + /api/v2.1/org/{org_id}/admin/automation-logs/: + get: + tags: + - Activities & Logs + summary: List Automation Logs + operationId: listAutomationLogs + description: Returns a list of automation logs inside a specific team. + security: + - AccountTokenAuth: [] + parameters: + - $ref: "#/components/parameters/org_id" + - $ref: "#/components/parameters/start" + - $ref: "#/components/parameters/end" + - $ref: "#/components/parameters/page" + - $ref: "#/components/parameters/per_page" + responses: + "200": + description: OK + content: + application/json: + schema: + type: object + example: + logs: + - id: 43543 + rule_id: 454 + trigger_time: "2025-11-28T14:05:52+01:00" + run_condition: per_update + success: true + org_id: -1 + dtable_uuid: 8fc3fbc2-d8d2-4a23-965d-33cbf511d780 + owner: 314bd2ed8d9741b08852916907dc7dd5@auth.local + warnings: null + - id: 43544 + rule_id: 454 + trigger_time: "2025-11-28T14:05:55+01:00" + run_condition: per_update + success: true + org_id: -1 + dtable_uuid: 8fc3fbc2-d8d2-4a23-965d-33cbf511d780 + owner: 314bd2ed8d9741b08852916907dc7dd5@auth.local + warnings: null + total_count: 2 + /api/v2.1/org/{org_id}/admin/python-runs/: + get: + tags: + - Activities & Logs + summary: List Python Runs + operationId: listPythonRuns + description: Returns a list of python runs inside a specific team. + security: + - AccountTokenAuth: [] + parameters: + - $ref: "#/components/parameters/dtable_uuid" + name: base_uuid + - $ref: "#/components/parameters/start" + - $ref: "#/components/parameters/end" + - $ref: "#/components/parameters/page" + - $ref: "#/components/parameters/per_page" + responses: + "200": + description: OK + content: + application/json: + schema: + type: object + example: + runs: + - dtable_uuid: 306acc83-5305-45b4-b34b-528f6f51d7b8 + finished_at: "2026-01-06T11:57:11+01:00" + id: 3, + operate_from: manualy + owner: 2a609b47d6254449a7f042a42ef02d09@auth.local + return_code: 0, + script_name: DDx0.py + started_at: "2026-01-06T11:57:10+01:00" + success: true + script_display_name: "Hello World" + - dtable_uuid: 149cd597-dcbc-4e2a-8344-91651a1b4853 + finished_at: "2026-01-06T12:11:18+01:00" + id: 4 + operate_from: manualy + owner: 2a609b47d6254449a7f042a42ef02d09@auth.local + return_code: 0 + script_name: O60m.py + started_at: "2026-01-06T12:11:18+01:00" + success: true + script_display_name: "Base 2 Script" + total_count: 2 + + # Statistics + /api/v2.1/org/{org_id}/admin/statistics/admin-logs/by-day/: + get: + tags: + - Statistics + summary: Admin Logs (by Day) + operationId: getAdminLogStatisticsByDay + description: Returns statistics about admin logs grouped by day. + security: + - AccountTokenAuth: [] + parameters: + - $ref: "#/components/parameters/org_id" + - $ref: "#/components/parameters/start" + - $ref: "#/components/parameters/end" + - $ref: "#/components/parameters/page" + - $ref: "#/components/parameters/per_page" + responses: + "200": + description: OK + content: + application/json: + schema: + type: object + example: + results: + - date: '2025-10-29' + number_of_operations: 2 + base_operations: 1 + group_operations: 0 + user_operations: 1 + - date: '2025-10-30' + number_of_operations: 5 + base_operations: 3 + group_operations: 1 + user_operations: 1 + - date: '2025-10-31' + number_of_operations: 2 + base_operations: 0 + group_operations: 1 + user_operations: 1 + total_count: 3 + /api/v2.1/org/{org_id}/admin/statistics/automation-logs/by-day/: + get: + tags: + - Statistics + summary: Automation Logs (by Day) + operationId: getAutomationLogStatisticsByDay + description: Returns statistics about automation logs grouped by day. + security: + - AccountTokenAuth: [] + parameters: + - $ref: "#/components/parameters/org_id" + - $ref: "#/components/parameters/dtable_uuid" + - $ref: "#/components/parameters/start" + - $ref: "#/components/parameters/end" + - $ref: "#/components/parameters/page" + - $ref: "#/components/parameters/per_page" + responses: + "200": + description: OK + content: + application/json: + schema: + type: object + example: + results: + - trigger_date: '2025-11-27' + number_of_executions: 10 + successful_executions: 9 + unsuccessful_executions: 1 + - trigger_date: '2025-11-28' + number_of_executions: 2 + successful_executions: 2 + unsuccessful_executions: 0 + total_count: 2 + /api/v2.1/org/{org_id}/admin/statistics/automation-logs/by-base/: + get: + tags: + - Statistics + summary: Automation Logs (by Base) + operationId: getAutomationLogStatisticsByBase + description: Returns statistics about automation logs grouped by base. + security: + - AccountTokenAuth: [] + parameters: + - $ref: "#/components/parameters/org_id" + - $ref: "#/components/parameters/start" + - $ref: "#/components/parameters/end" + - $ref: "#/components/parameters/page" + - $ref: "#/components/parameters/per_page" + responses: + "200": + description: OK + content: + application/json: + schema: + type: object + example: + results: + - dtable_uuid: 3c899a81-6a0c-4111-bb19-288ebf8442fd + number_of_executions: 2 + successful_executions: 2 + unsuccessful_executions: 0 + - dtable_uuid: e97bb668-da36-484c-8ac9-8aa9e0564f4c + number_of_executions: 5 + successful_executions: 4 + unsuccessful_executions: 1 + total_count: 2 + /api/v2.1/org/{org_id}/admin/statistics/login-logs/by-day/: + get: + tags: + - Statistics + summary: Login Logs (by Day) + operationId: getLoginLogStatisticsByDay + description: Returns statistics about login logs grouped by day. + security: + - AccountTokenAuth: [] + parameters: + - $ref: "#/components/parameters/org_id" + - $ref: "#/components/parameters/start" + - $ref: "#/components/parameters/end" + - $ref: "#/components/parameters/page" + - $ref: "#/components/parameters/per_page" + responses: + "200": + description: OK + content: + application/json: + schema: + type: object + example: + results: + - date: '2025-11-27' + number_of_attempts: 15 + successful_attempts: 14 + unsuccessful_attempts: 1 + - date: '2025-11-28' + number_of_attempts: 2 + successful_attempts: 1 + unsuccessful_attempts: 1 + total_count: 2 + /api/v2.1/org/{org_id}/admin/statistics/python-runs/by-day/: + get: + tags: + - Statistics + summary: Python Runs (by Day) + operationId: getPythonRunStatisticsByDay + description: Returns statistics about python runs grouped by day. + security: + - AccountTokenAuth: [] + parameters: + - $ref: "#/components/parameters/org_id" + - $ref: "#/components/parameters/dtable_uuid" + - $ref: "#/components/parameters/start" + - $ref: "#/components/parameters/end" + - $ref: "#/components/parameters/page" + - $ref: "#/components/parameters/per_page" + responses: + "200": + description: OK + content: + application/json: + schema: + type: object + example: + results: + - date: '2025-11-27' + number_of_runs: 8 + total_run_time: 5 + triggered_by_automation_rule: 0 + triggered_manually: 8 + successful_runs: 3 + unsuccessful_runs: 5 + - date: '2025-11-28' + number_of_runs: 4 + total_run_time: 22 + triggered_by_automation_rule: 0 + triggered_manually: 4 + successful_runs: 4 + unsuccessful_runs: 0 + total_count: 2 + /api/v2.1/org/{org_id}/admin/statistics/python-runs/by-base/: + get: + tags: + - Statistics + summary: Python Runs (by Base) + operationId: getPythonRunStatisticsByBase + description: Returns statistics about python runs grouped by base. + security: + - AccountTokenAuth: [] + parameters: + - $ref: "#/components/parameters/org_id" + - $ref: "#/components/parameters/start" + - $ref: "#/components/parameters/end" + - $ref: "#/components/parameters/page" + - $ref: "#/components/parameters/per_page" + responses: + "200": + description: OK + content: + application/json: + schema: + type: object + example: + results: + - base_uuid: 4202f7ad-3168-4bf4-b1e4-01aee6782f94 + number_of_runs: 8 + total_run_time: 5 + triggered_by_automation_rule: 0 + triggered_manually: 8 + successful_runs: 3 + unsuccessful_runs: 5 + - base_uuid: ca490121-cea3-4a04-8e25-ac72b03a61e0 + number_of_runs: 4 + total_run_time: 22 + triggered_by_automation_rule: 0 + triggered_manually: 4 + successful_runs: 4 + unsuccessful_runs: 0 + total_count: 2 + /api/v2.1/org/{org_id}/admin/org-logo/: post: tags: diff --git a/test/Api/ActivitiesLogsApiTest.php b/test/Api/ActivitiesLogsApiTest.php index 393daf48..cac87af5 100644 --- a/test/Api/ActivitiesLogsApiTest.php +++ b/test/Api/ActivitiesLogsApiTest.php @@ -70,6 +70,18 @@ public static function tearDownAfterClass(): void { } + /** + * Test case for listAutomationLogs + * + * List Automation Logs. + * + */ + public function testListAutomationLogs() + { + // TODO: implement + self::markTestIncomplete('Not implemented'); + } + /** * Test case for listFileAccessLogs * @@ -94,6 +106,18 @@ public function testListGroupMemberAuditLogs() self::markTestIncomplete('Not implemented'); } + /** + * Test case for listPythonRuns + * + * List Python Runs. + * + */ + public function testListPythonRuns() + { + // TODO: implement + self::markTestIncomplete('Not implemented'); + } + /** * Test case for listTeamLogins * diff --git a/test/Api/InfoSettingsApiTest.php b/test/Api/InfoSettingsApiTest.php index e1822ad0..2c0b93f5 100644 --- a/test/Api/InfoSettingsApiTest.php +++ b/test/Api/InfoSettingsApiTest.php @@ -70,6 +70,18 @@ public static function tearDownAfterClass(): void { } + /** + * Test case for deleteTeam + * + * Delete Team. + * + */ + public function testDeleteTeam() + { + // TODO: implement + self::markTestIncomplete('Not implemented'); + } + /** * Test case for getTeamInfo *