From 4f22aa63a1268b5ddfa354549aa01189f852c85f Mon Sep 17 00:00:00 2001 From: Simon Hammes Date: Fri, 9 Jan 2026 14:51:37 +0100 Subject: [PATCH 1/3] Update .yaml files --- openapi_input/file_operations.yaml | 2 + .../team_admin_account_operations.yaml | 614 ++++++++++++++++++ 2 files changed, 616 insertions(+) diff --git a/openapi_input/file_operations.yaml b/openapi_input/file_operations.yaml index 481b736..071f845 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 a1e234b..04de9e4 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: From 39cea43948dec03077990ea039406a9f53f80912 Mon Sep 17 00:00:00 2001 From: Simon Hammes Date: Fri, 9 Jan 2026 14:52:56 +0100 Subject: [PATCH 2/3] Regenerate code --- README_TeamAmin.md | 14 + docs/TeamAdmin/Api/ActivitiesLogsApi.md | 136 +- docs/TeamAdmin/Api/BasesApi.md | 216 +++ docs/TeamAdmin/Api/InfoSettingsApi.md | 47 + docs/TeamAdmin/Api/SharingLinksApi.md | 50 + docs/TeamAdmin/Api/StatisticsApi.md | 359 ++++ lib/TeamAdmin/ActivitiesLogsApi.php | 1019 ++++++++-- lib/TeamAdmin/BasesApi.php | 1613 ++++++++++++++-- lib/TeamAdmin/InfoSettingsApi.php | 255 +++ lib/TeamAdmin/SharingLinksApi.php | 278 +++ lib/TeamAdmin/StatisticsApi.php | 2285 +++++++++++++++++++++++ test/Api/ActivitiesLogsApiTest.php | 24 + test/Api/InfoSettingsApiTest.php | 12 + 13 files changed, 6011 insertions(+), 297 deletions(-) create mode 100644 docs/TeamAdmin/Api/StatisticsApi.md create mode 100644 lib/TeamAdmin/StatisticsApi.php diff --git a/README_TeamAmin.md b/README_TeamAmin.md index 1322564..6ad4ed4 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 b97f76c..838b553 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 f51f1af..775c0e1 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 09ca387..4e44a84 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 3784b89..f6dfb96 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 0000000..464f40f --- /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/lib/TeamAdmin/ActivitiesLogsApi.php b/lib/TeamAdmin/ActivitiesLogsApi.php index f191f49..6f35fa8 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', ], @@ -137,42 +143,46 @@ public function getConfig() } /** - * Operation listFileAccessLogs + * Operation listAutomationLogs * - * List File Access Logs + * 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['listFileAccessLogs'] to see the possible values for this operation + * @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 listFileAccessLogs($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listFileAccessLogs'][0]) + public function listAutomationLogs($org_id, $start = null, $end = null, $page = null, $per_page = null, string $contentType = self::contentTypes['listAutomationLogs'][0]) { - list($response) = $this->listFileAccessLogsWithHttpInfo($org_id, $page, $per_page, $contentType); + list($response) = $this->listAutomationLogsWithHttpInfo($org_id, $start, $end, $page, $per_page, $contentType); return $response; } /** - * Operation listFileAccessLogsWithHttpInfo + * Operation listAutomationLogsWithHttpInfo * - * List File Access Logs + * 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['listFileAccessLogs'] to see the possible values for this operation + * @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 listFileAccessLogsWithHttpInfo($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listFileAccessLogs'][0]) + public function listAutomationLogsWithHttpInfo($org_id, $start = null, $end = null, $page = null, $per_page = null, string $contentType = self::contentTypes['listAutomationLogs'][0]) { - $request = $this->listFileAccessLogsRequest($org_id, $page, $per_page, $contentType); + $request = $this->listAutomationLogsRequest($org_id, $start, $end, $page, $per_page, $contentType); try { $options = $this->createHttpClientOption(); @@ -244,21 +254,23 @@ public function listFileAccessLogsWithHttpInfo($org_id, $page = null, $per_page } /** - * Operation listFileAccessLogsAsync + * Operation listAutomationLogsAsync * - * List File Access Logs + * 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['listFileAccessLogs'] to see the possible values for this operation + * @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 listFileAccessLogsAsync($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listFileAccessLogs'][0]) + public function listAutomationLogsAsync($org_id, $start = null, $end = null, $page = null, $per_page = null, string $contentType = self::contentTypes['listAutomationLogs'][0]) { - return $this->listFileAccessLogsAsyncWithHttpInfo($org_id, $page, $per_page, $contentType) + return $this->listAutomationLogsAsyncWithHttpInfo($org_id, $start, $end, $page, $per_page, $contentType) ->then( function ($response) { return $response[0]; @@ -267,22 +279,24 @@ function ($response) { } /** - * Operation listFileAccessLogsAsyncWithHttpInfo + * Operation listAutomationLogsAsyncWithHttpInfo * - * List File Access Logs + * 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['listFileAccessLogs'] to see the possible values for this operation + * @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 listFileAccessLogsAsyncWithHttpInfo($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listFileAccessLogs'][0]) + public function listAutomationLogsAsyncWithHttpInfo($org_id, $start = null, $end = null, $page = null, $per_page = null, string $contentType = self::contentTypes['listAutomationLogs'][0]) { $returnType = 'object'; - $request = $this->listFileAccessLogsRequest($org_id, $page, $per_page, $contentType); + $request = $this->listAutomationLogsRequest($org_id, $start, $end, $page, $per_page, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -321,45 +335,67 @@ function ($exception) { } /** - * Create request for operation 'listFileAccessLogs' + * 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['listFileAccessLogs'] to see the possible values for this operation + * @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 listFileAccessLogsRequest($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listFileAccessLogs'][0]) + 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 listFileAccessLogs' + 'Missing the required parameter $org_id when calling listAutomationLogs' ); } 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.listAutomationLogs, 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.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.listFileAccessLogs, must be bigger than or equal to 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/file-access-logs/'; + $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, @@ -448,42 +484,42 @@ public function listFileAccessLogsRequest($org_id, $page = null, $per_page = nul } /** - * Operation listGroupMemberAuditLogs + * Operation listFileAccessLogs * - * List Group Member Audit Logs + * 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['listGroupMemberAuditLogs'] to see the possible values for this operation + * @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 listGroupMemberAuditLogs($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listGroupMemberAuditLogs'][0]) + public function listFileAccessLogs($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listFileAccessLogs'][0]) { - list($response) = $this->listGroupMemberAuditLogsWithHttpInfo($org_id, $page, $per_page, $contentType); + list($response) = $this->listFileAccessLogsWithHttpInfo($org_id, $page, $per_page, $contentType); return $response; } /** - * Operation listGroupMemberAuditLogsWithHttpInfo + * Operation listFileAccessLogsWithHttpInfo * - * List Group Member Audit Logs + * 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['listGroupMemberAuditLogs'] to see the possible values for this operation + * @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 listGroupMemberAuditLogsWithHttpInfo($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listGroupMemberAuditLogs'][0]) + public function listFileAccessLogsWithHttpInfo($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listFileAccessLogs'][0]) { - $request = $this->listGroupMemberAuditLogsRequest($org_id, $page, $per_page, $contentType); + $request = $this->listFileAccessLogsRequest($org_id, $page, $per_page, $contentType); try { $options = $this->createHttpClientOption(); @@ -555,21 +591,21 @@ public function listGroupMemberAuditLogsWithHttpInfo($org_id, $page = null, $per } /** - * Operation listGroupMemberAuditLogsAsync + * Operation listFileAccessLogsAsync * - * List Group Member Audit Logs + * 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['listGroupMemberAuditLogs'] to see the possible values for this operation + * @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 listGroupMemberAuditLogsAsync($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listGroupMemberAuditLogs'][0]) + public function listFileAccessLogsAsync($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listFileAccessLogs'][0]) { - return $this->listGroupMemberAuditLogsAsyncWithHttpInfo($org_id, $page, $per_page, $contentType) + return $this->listFileAccessLogsAsyncWithHttpInfo($org_id, $page, $per_page, $contentType) ->then( function ($response) { return $response[0]; @@ -578,22 +614,22 @@ function ($response) { } /** - * Operation listGroupMemberAuditLogsAsyncWithHttpInfo + * Operation listFileAccessLogsAsyncWithHttpInfo * - * List Group Member Audit Logs + * 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['listGroupMemberAuditLogs'] to see the possible values for this operation + * @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 listGroupMemberAuditLogsAsyncWithHttpInfo($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listGroupMemberAuditLogs'][0]) + public function listFileAccessLogsAsyncWithHttpInfo($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listFileAccessLogs'][0]) { $returnType = 'object'; - $request = $this->listGroupMemberAuditLogsRequest($org_id, $page, $per_page, $contentType); + $request = $this->listFileAccessLogsRequest($org_id, $page, $per_page, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -632,39 +668,39 @@ function ($exception) { } /** - * Create request for operation 'listGroupMemberAuditLogs' + * 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['listGroupMemberAuditLogs'] to see the possible values for this operation + * @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 listGroupMemberAuditLogsRequest($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listGroupMemberAuditLogs'][0]) + 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 listGroupMemberAuditLogs' + 'Missing the required parameter $org_id when calling listFileAccessLogs' ); } if ($org_id < 1) { - throw new \InvalidArgumentException('invalid value for "$org_id" when calling ActivitiesLogsApi.listGroupMemberAuditLogs, must be bigger than or equal to 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.listGroupMemberAuditLogs, must be bigger than or equal to 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.listGroupMemberAuditLogs, must be bigger than or equal to 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/group-member-audit/'; + $resourcePath = '/api/v2.1/org/{org_id}/admin/file-access-logs/'; $formParams = []; $queryParams = []; $headerParams = []; @@ -759,42 +795,42 @@ public function listGroupMemberAuditLogsRequest($org_id, $page = null, $per_page } /** - * Operation listTeamLogins + * Operation listGroupMemberAuditLogs * - * List Team Logins + * 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['listTeamLogins'] 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 listTeamLogins($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listTeamLogins'][0]) + public function listGroupMemberAuditLogs($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listGroupMemberAuditLogs'][0]) { - list($response) = $this->listTeamLoginsWithHttpInfo($org_id, $page, $per_page, $contentType); + list($response) = $this->listGroupMemberAuditLogsWithHttpInfo($org_id, $page, $per_page, $contentType); return $response; } /** - * Operation listTeamLoginsWithHttpInfo + * Operation listGroupMemberAuditLogsWithHttpInfo * - * List Team Logins + * 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['listTeamLogins'] 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 listTeamLoginsWithHttpInfo($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listTeamLogins'][0]) + public function listGroupMemberAuditLogsWithHttpInfo($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listGroupMemberAuditLogs'][0]) { - $request = $this->listTeamLoginsRequest($org_id, $page, $per_page, $contentType); + $request = $this->listGroupMemberAuditLogsRequest($org_id, $page, $per_page, $contentType); try { $options = $this->createHttpClientOption(); @@ -866,21 +902,21 @@ public function listTeamLoginsWithHttpInfo($org_id, $page = null, $per_page = nu } /** - * Operation listTeamLoginsAsync + * Operation listGroupMemberAuditLogsAsync * - * List Team Logins + * 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['listTeamLogins'] 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 listTeamLoginsAsync($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listTeamLogins'][0]) + public function listGroupMemberAuditLogsAsync($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listGroupMemberAuditLogs'][0]) { - return $this->listTeamLoginsAsyncWithHttpInfo($org_id, $page, $per_page, $contentType) + return $this->listGroupMemberAuditLogsAsyncWithHttpInfo($org_id, $page, $per_page, $contentType) ->then( function ($response) { return $response[0]; @@ -889,22 +925,22 @@ function ($response) { } /** - * Operation listTeamLoginsAsyncWithHttpInfo + * Operation listGroupMemberAuditLogsAsyncWithHttpInfo * - * List Team Logins + * 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['listTeamLogins'] 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 listTeamLoginsAsyncWithHttpInfo($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listTeamLogins'][0]) + public function listGroupMemberAuditLogsAsyncWithHttpInfo($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listGroupMemberAuditLogs'][0]) { $returnType = 'object'; - $request = $this->listTeamLoginsRequest($org_id, $page, $per_page, $contentType); + $request = $this->listGroupMemberAuditLogsRequest($org_id, $page, $per_page, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -943,39 +979,39 @@ function ($exception) { } /** - * Create request for operation 'listTeamLogins' + * 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['listTeamLogins'] 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 listTeamLoginsRequest($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listTeamLogins'][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 listTeamLogins' + 'Missing the required parameter $org_id when calling listGroupMemberAuditLogs' ); } if ($org_id < 1) { - throw new \InvalidArgumentException('invalid value for "$org_id" when calling ActivitiesLogsApi.listTeamLogins, 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.listTeamLogins, 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.listTeamLogins, 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/login-logs/'; + $resourcePath = '/api/v2.1/org/{org_id}/admin/group-member-audit/'; $formParams = []; $queryParams = []; $headerParams = []; @@ -1070,42 +1106,46 @@ public function listTeamLoginsRequest($org_id, $page = null, $per_page = null, s } /** - * Operation listTeamOperationLog + * Operation listPythonRuns * - * List Team Operations + * 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['listTeamOperationLog'] 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 listTeamOperationLog($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listTeamOperationLog'][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->listTeamOperationLogWithHttpInfo($org_id, $page, $per_page, $contentType); + list($response) = $this->listPythonRunsWithHttpInfo($dtable_uuid, $start, $end, $page, $per_page, $contentType); return $response; } /** - * Operation listTeamOperationLogWithHttpInfo + * Operation listPythonRunsWithHttpInfo * - * List Team Operations + * 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['listTeamOperationLog'] 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 listTeamOperationLogWithHttpInfo($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listTeamOperationLog'][0]) + public function listPythonRunsWithHttpInfo($dtable_uuid = null, $start = null, $end = null, $page = null, $per_page = null, string $contentType = self::contentTypes['listPythonRuns'][0]) { - $request = $this->listTeamOperationLogRequest($org_id, $page, $per_page, $contentType); + $request = $this->listPythonRunsRequest($dtable_uuid, $start, $end, $page, $per_page, $contentType); try { $options = $this->createHttpClientOption(); @@ -1177,21 +1217,23 @@ public function listTeamOperationLogWithHttpInfo($org_id, $page = null, $per_pag } /** - * Operation listTeamOperationLogAsync + * Operation listPythonRunsAsync * - * List Team Operations + * 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['listTeamOperationLog'] 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 listTeamOperationLogAsync($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listTeamOperationLog'][0]) + public function listPythonRunsAsync($dtable_uuid = null, $start = null, $end = null, $page = null, $per_page = null, string $contentType = self::contentTypes['listPythonRuns'][0]) { - return $this->listTeamOperationLogAsyncWithHttpInfo($org_id, $page, $per_page, $contentType) + return $this->listPythonRunsAsyncWithHttpInfo($dtable_uuid, $start, $end, $page, $per_page, $contentType) ->then( function ($response) { return $response[0]; @@ -1200,22 +1242,24 @@ function ($response) { } /** - * Operation listTeamOperationLogAsyncWithHttpInfo + * Operation listPythonRunsAsyncWithHttpInfo * - * List Team Operations + * 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['listTeamOperationLog'] 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 listTeamOperationLogAsyncWithHttpInfo($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listTeamOperationLog'][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->listTeamOperationLogRequest($org_id, $page, $per_page, $contentType); + $request = $this->listPythonRunsRequest($dtable_uuid, $start, $end, $page, $per_page, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1254,45 +1298,70 @@ function ($exception) { } /** - * Create request for operation 'listTeamOperationLog' + * 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['listTeamOperationLog'] 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 listTeamOperationLogRequest($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listTeamOperationLog'][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 listTeamOperationLog' - ); - } - if ($org_id < 1) { - throw new \InvalidArgumentException('invalid value for "$org_id" when calling ActivitiesLogsApi.listTeamOperationLog, 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.listTeamOperationLog, 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.listTeamOperationLog, 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/admin-logs/'; + $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, @@ -1313,6 +1382,710 @@ public function listTeamOperationLogRequest($org_id, $page = null, $per_page = n ) ?? []); + + + $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 listTeamLogins + * + * List Team Logins + * + * @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, $login_status = null, $start = null, $end = null, string $contentType = self::contentTypes['listTeamLogins'][0]) + { + list($response) = $this->listTeamLoginsWithHttpInfo($org_id, $page, $per_page, $login_status, $start, $end, $contentType); + return $response; + } + + /** + * Operation listTeamLoginsWithHttpInfo + * + * List Team Logins + * + * @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, $login_status = null, $start = null, $end = null, string $contentType = self::contentTypes['listTeamLogins'][0]) + { + $request = $this->listTeamLoginsRequest($org_id, $page, $per_page, $login_status, $start, $end, $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 listTeamLoginsAsync + * + * List Team Logins + * + * @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, $login_status = null, $start = null, $end = null, string $contentType = self::contentTypes['listTeamLogins'][0]) + { + return $this->listTeamLoginsAsyncWithHttpInfo($org_id, $page, $per_page, $login_status, $start, $end, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation listTeamLoginsAsyncWithHttpInfo + * + * List Team Logins + * + * @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, $login_status = null, $start = null, $end = null, string $contentType = self::contentTypes['listTeamLogins'][0]) + { + $returnType = 'object'; + $request = $this->listTeamLoginsRequest($org_id, $page, $per_page, $login_status, $start, $end, $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 'listTeamLogins' + * + * @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, $login_status = null, $start = null, $end = null, string $contentType = self::contentTypes['listTeamLogins'][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 listTeamLogins' + ); + } + if ($org_id < 1) { + throw new \InvalidArgumentException('invalid value for "$org_id" when calling ActivitiesLogsApi.listTeamLogins, must be bigger than or equal to 1.'); + } + + if ($page !== null && $page < 1) { + throw new \InvalidArgumentException('invalid value for "$page" when calling ActivitiesLogsApi.listTeamLogins, 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.listTeamLogins, must be bigger than or equal to 1.'); + } + + + + + + $resourcePath = '/api/v2.1/org/{org_id}/admin/login-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 + ) ?? []); + // 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 + 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 listTeamOperationLog + * + * List Team Operations + * + * @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, $operation_group = null, $start = null, $end = null, string $contentType = self::contentTypes['listTeamOperationLog'][0]) + { + list($response) = $this->listTeamOperationLogWithHttpInfo($org_id, $page, $per_page, $operation_group, $start, $end, $contentType); + return $response; + } + + /** + * Operation listTeamOperationLogWithHttpInfo + * + * List Team Operations + * + * @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, $operation_group = null, $start = null, $end = null, string $contentType = self::contentTypes['listTeamOperationLog'][0]) + { + $request = $this->listTeamOperationLogRequest($org_id, $page, $per_page, $operation_group, $start, $end, $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 listTeamOperationLogAsync + * + * List Team Operations + * + * @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, $operation_group = null, $start = null, $end = null, string $contentType = self::contentTypes['listTeamOperationLog'][0]) + { + return $this->listTeamOperationLogAsyncWithHttpInfo($org_id, $page, $per_page, $operation_group, $start, $end, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation listTeamOperationLogAsyncWithHttpInfo + * + * List Team Operations + * + * @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, $operation_group = null, $start = null, $end = null, string $contentType = self::contentTypes['listTeamOperationLog'][0]) + { + $returnType = 'object'; + $request = $this->listTeamOperationLogRequest($org_id, $page, $per_page, $operation_group, $start, $end, $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 'listTeamOperationLog' + * + * @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, $operation_group = null, $start = null, $end = null, string $contentType = self::contentTypes['listTeamOperationLog'][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 listTeamOperationLog' + ); + } + if ($org_id < 1) { + throw new \InvalidArgumentException('invalid value for "$org_id" when calling ActivitiesLogsApi.listTeamOperationLog, must be bigger than or equal to 1.'); + } + + if ($page !== null && $page < 1) { + throw new \InvalidArgumentException('invalid value for "$page" when calling ActivitiesLogsApi.listTeamOperationLog, 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.listTeamOperationLog, must be bigger than or equal to 1.'); + } + + + + + + $resourcePath = '/api/v2.1/org/{org_id}/admin/admin-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 + ) ?? []); + // 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 if ($org_id !== null) { $resourcePath = str_replace( diff --git a/lib/TeamAdmin/BasesApi.php b/lib/TeamAdmin/BasesApi.php index f0d5804..c5fcfb0 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,40 @@ 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['getBase'] to see the possible values for this operation + * @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 getBase($org_id, $base_uuid, string $contentType = self::contentTypes['getBase'][0]) + public function deleteBase($org_id, $base_uuid, string $contentType = self::contentTypes['deleteBase'][0]) { - list($response) = $this->getBaseWithHttpInfo($org_id, $base_uuid, $contentType); + list($response) = $this->deleteBaseWithHttpInfo($org_id, $base_uuid, $contentType); return $response; } /** - * Operation getBaseWithHttpInfo + * Operation deleteBaseWithHttpInfo * - * 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['getBase'] to see the possible values for this operation + * @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 getBaseWithHttpInfo($org_id, $base_uuid, string $contentType = self::contentTypes['getBase'][0]) + public function deleteBaseWithHttpInfo($org_id, $base_uuid, string $contentType = self::contentTypes['deleteBase'][0]) { - $request = $this->getBaseRequest($org_id, $base_uuid, $contentType); + $request = $this->deleteBaseRequest($org_id, $base_uuid, $contentType); try { $options = $this->createHttpClientOption(); @@ -824,20 +856,20 @@ public function getBaseWithHttpInfo($org_id, $base_uuid, string $contentType = s } /** - * Operation getBaseAsync + * Operation deleteBaseAsync * - * 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['getBase'] to see the possible values for this operation + * @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 getBaseAsync($org_id, $base_uuid, string $contentType = self::contentTypes['getBase'][0]) + public function deleteBaseAsync($org_id, $base_uuid, string $contentType = self::contentTypes['deleteBase'][0]) { - return $this->getBaseAsyncWithHttpInfo($org_id, $base_uuid, $contentType) + return $this->deleteBaseAsyncWithHttpInfo($org_id, $base_uuid, $contentType) ->then( function ($response) { return $response[0]; @@ -846,21 +878,21 @@ function ($response) { } /** - * Operation getBaseAsyncWithHttpInfo + * Operation deleteBaseAsyncWithHttpInfo * - * 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['getBase'] to see the possible values for this operation + * @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 getBaseAsyncWithHttpInfo($org_id, $base_uuid, string $contentType = self::contentTypes['getBase'][0]) + public function deleteBaseAsyncWithHttpInfo($org_id, $base_uuid, string $contentType = self::contentTypes['deleteBase'][0]) { $returnType = 'object'; - $request = $this->getBaseRequest($org_id, $base_uuid, $contentType); + $request = $this->deleteBaseRequest($org_id, $base_uuid, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -899,36 +931,36 @@ function ($exception) { } /** - * Create request for operation 'getBase' + * 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['getBase'] to see the possible values for this operation + * @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 getBaseRequest($org_id, $base_uuid, string $contentType = self::contentTypes['getBase'][0]) + 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 getBase' + 'Missing the required parameter $org_id when calling deleteBase' ); } 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.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 getBase' + '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.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.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}$/."); } @@ -1009,7 +1041,7 @@ public function getBaseRequest($org_id, $base_uuid, string $contentType = self:: $operationHost = $this->config->getHost(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( - 'GET', + 'DELETE', $operationHost . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody @@ -1017,40 +1049,40 @@ public function getBaseRequest($org_id, $base_uuid, string $contentType = self:: } /** - * Operation listBaseSharings + * Operation getBase * - * List Base Sharings + * 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['listBaseSharings'] to see the possible values for this operation + * @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 listBaseSharings($org_id, $base_uuid, string $contentType = self::contentTypes['listBaseSharings'][0]) + public function getBase($org_id, $base_uuid, string $contentType = self::contentTypes['getBase'][0]) { - list($response) = $this->listBaseSharingsWithHttpInfo($org_id, $base_uuid, $contentType); + list($response) = $this->getBaseWithHttpInfo($org_id, $base_uuid, $contentType); return $response; } /** - * Operation listBaseSharingsWithHttpInfo + * Operation getBaseWithHttpInfo * - * List Base Sharings + * 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['listBaseSharings'] to see the possible values for this operation + * @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 listBaseSharingsWithHttpInfo($org_id, $base_uuid, string $contentType = self::contentTypes['listBaseSharings'][0]) + public function getBaseWithHttpInfo($org_id, $base_uuid, string $contentType = self::contentTypes['getBase'][0]) { - $request = $this->listBaseSharingsRequest($org_id, $base_uuid, $contentType); + $request = $this->getBaseRequest($org_id, $base_uuid, $contentType); try { $options = $this->createHttpClientOption(); @@ -1122,20 +1154,20 @@ public function listBaseSharingsWithHttpInfo($org_id, $base_uuid, string $conten } /** - * Operation listBaseSharingsAsync + * Operation getBaseAsync * - * List Base Sharings + * 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['listBaseSharings'] to see the possible values for this operation + * @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 listBaseSharingsAsync($org_id, $base_uuid, string $contentType = self::contentTypes['listBaseSharings'][0]) + public function getBaseAsync($org_id, $base_uuid, string $contentType = self::contentTypes['getBase'][0]) { - return $this->listBaseSharingsAsyncWithHttpInfo($org_id, $base_uuid, $contentType) + return $this->getBaseAsyncWithHttpInfo($org_id, $base_uuid, $contentType) ->then( function ($response) { return $response[0]; @@ -1144,21 +1176,21 @@ function ($response) { } /** - * Operation listBaseSharingsAsyncWithHttpInfo + * Operation getBaseAsyncWithHttpInfo * - * List Base Sharings + * 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['listBaseSharings'] to see the possible values for this operation + * @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 listBaseSharingsAsyncWithHttpInfo($org_id, $base_uuid, string $contentType = self::contentTypes['listBaseSharings'][0]) + public function getBaseAsyncWithHttpInfo($org_id, $base_uuid, string $contentType = self::contentTypes['getBase'][0]) { $returnType = 'object'; - $request = $this->listBaseSharingsRequest($org_id, $base_uuid, $contentType); + $request = $this->getBaseRequest($org_id, $base_uuid, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1197,40 +1229,40 @@ function ($exception) { } /** - * Create request for operation 'listBaseSharings' + * 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['listBaseSharings'] to see the possible values for this operation + * @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 listBaseSharingsRequest($org_id, $base_uuid, string $contentType = self::contentTypes['listBaseSharings'][0]) + 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 listBaseSharings' + 'Missing the required parameter $org_id when calling getBase' ); } 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.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 listBaseSharings' + '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.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}$/."); + 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}/shares/'; + $resourcePath = '/api/v2.1/org/{org_id}/admin/dtables/{base_uuid}/'; $formParams = []; $queryParams = []; $headerParams = []; @@ -1315,42 +1347,40 @@ public function listBaseSharingsRequest($org_id, $base_uuid, string $contentType } /** - * Operation listBases + * Operation listApiTokens * - * List Bases (Team) + * 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 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 $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 listBases($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listBases'][0]) + public function listApiTokens($org_id, $base_uuid, string $contentType = self::contentTypes['listApiTokens'][0]) { - list($response) = $this->listBasesWithHttpInfo($org_id, $page, $per_page, $contentType); + list($response) = $this->listApiTokensWithHttpInfo($org_id, $base_uuid, $contentType); return $response; } /** - * Operation listBasesWithHttpInfo + * Operation listApiTokensWithHttpInfo * - * List Bases (Team) + * 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 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 $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 listBasesWithHttpInfo($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listBases'][0]) + public function listApiTokensWithHttpInfo($org_id, $base_uuid, string $contentType = self::contentTypes['listApiTokens'][0]) { - $request = $this->listBasesRequest($org_id, $page, $per_page, $contentType); + $request = $this->listApiTokensRequest($org_id, $base_uuid, $contentType); try { $options = $this->createHttpClientOption(); @@ -1422,21 +1452,20 @@ public function listBasesWithHttpInfo($org_id, $page = null, $per_page = null, s } /** - * Operation listBasesAsync + * Operation listApiTokensAsync * - * List Bases (Team) + * 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 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 $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 listBasesAsync($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listBases'][0]) + public function listApiTokensAsync($org_id, $base_uuid, string $contentType = self::contentTypes['listApiTokens'][0]) { - return $this->listBasesAsyncWithHttpInfo($org_id, $page, $per_page, $contentType) + return $this->listApiTokensAsyncWithHttpInfo($org_id, $base_uuid, $contentType) ->then( function ($response) { return $response[0]; @@ -1445,22 +1474,21 @@ function ($response) { } /** - * Operation listBasesAsyncWithHttpInfo + * Operation listApiTokensAsyncWithHttpInfo * - * List Bases (Team) + * 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 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 $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 listBasesAsyncWithHttpInfo($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listBases'][0]) + public function listApiTokensAsyncWithHttpInfo($org_id, $base_uuid, string $contentType = self::contentTypes['listApiTokens'][0]) { $returnType = 'object'; - $request = $this->listBasesRequest($org_id, $page, $per_page, $contentType); + $request = $this->listApiTokensRequest($org_id, $base_uuid, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1499,63 +1527,46 @@ function ($exception) { } /** - * Create request for operation 'listBases' + * 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 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 $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 listBasesRequest($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listBases'][0]) + 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 listBases' + 'Missing the required parameter $org_id when calling listApiTokens' ); } 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.listApiTokens, 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.'); + // 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 ($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.'); + 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/'; + $resourcePath = '/api/v2.1/org/{org_id}/admin/dtables/{base_uuid}/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 @@ -1566,6 +1577,14 @@ public function listBasesRequest($org_id, $page = null, $per_page = null, string $resourcePath ); } + // path params + if ($base_uuid !== null) { + $resourcePath = str_replace( + '{' . 'base_uuid' . '}', + ObjectSerializer::toPathValue($base_uuid), + $resourcePath + ); + } $headers = $this->headerSelector->selectHeaders( @@ -1626,42 +1645,42 @@ public function listBasesRequest($org_id, $page = null, $per_page = null, string } /** - * Operation listTrashBases + * Operation listApiTokensOfAllBases * - * List Trash Bases + * 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['listTrashBases'] to see the possible values for this operation + * @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 listTrashBases($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listTrashBases'][0]) + public function listApiTokensOfAllBases($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listApiTokensOfAllBases'][0]) { - list($response) = $this->listTrashBasesWithHttpInfo($org_id, $page, $per_page, $contentType); + list($response) = $this->listApiTokensOfAllBasesWithHttpInfo($org_id, $page, $per_page, $contentType); return $response; } /** - * Operation listTrashBasesWithHttpInfo + * Operation listApiTokensOfAllBasesWithHttpInfo * - * List Trash Bases + * 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['listTrashBases'] to see the possible values for this operation + * @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 listTrashBasesWithHttpInfo($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listTrashBases'][0]) + public function listApiTokensOfAllBasesWithHttpInfo($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listApiTokensOfAllBases'][0]) { - $request = $this->listTrashBasesRequest($org_id, $page, $per_page, $contentType); + $request = $this->listApiTokensOfAllBasesRequest($org_id, $page, $per_page, $contentType); try { $options = $this->createHttpClientOption(); @@ -1733,21 +1752,21 @@ public function listTrashBasesWithHttpInfo($org_id, $page = null, $per_page = nu } /** - * Operation listTrashBasesAsync + * Operation listApiTokensOfAllBasesAsync * - * List Trash Bases + * 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['listTrashBases'] to see the possible values for this operation + * @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 listTrashBasesAsync($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listTrashBases'][0]) + public function listApiTokensOfAllBasesAsync($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listApiTokensOfAllBases'][0]) { - return $this->listTrashBasesAsyncWithHttpInfo($org_id, $page, $per_page, $contentType) + return $this->listApiTokensOfAllBasesAsyncWithHttpInfo($org_id, $page, $per_page, $contentType) ->then( function ($response) { return $response[0]; @@ -1756,22 +1775,22 @@ function ($response) { } /** - * Operation listTrashBasesAsyncWithHttpInfo + * Operation listApiTokensOfAllBasesAsyncWithHttpInfo * - * List Trash Bases + * 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['listTrashBases'] to see the possible values for this operation + * @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 listTrashBasesAsyncWithHttpInfo($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listTrashBases'][0]) + public function listApiTokensOfAllBasesAsyncWithHttpInfo($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listApiTokensOfAllBases'][0]) { $returnType = 'object'; - $request = $this->listTrashBasesRequest($org_id, $page, $per_page, $contentType); + $request = $this->listApiTokensOfAllBasesRequest($org_id, $page, $per_page, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1810,12 +1829,932 @@ function ($exception) { } /** - * Create request for operation 'listTrashBases' + * 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['listTrashBases'] to see the possible values for this operation + * @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['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 listBaseSharings($org_id, $base_uuid, string $contentType = self::contentTypes['listBaseSharings'][0]) + { + list($response) = $this->listBaseSharingsWithHttpInfo($org_id, $base_uuid, $contentType); + return $response; + } + + /** + * Operation listBaseSharingsWithHttpInfo + * + * 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['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 listBaseSharingsWithHttpInfo($org_id, $base_uuid, string $contentType = self::contentTypes['listBaseSharings'][0]) + { + $request = $this->listBaseSharingsRequest($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 listBaseSharingsAsync + * + * 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['listBaseSharings'] 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]) + { + return $this->listBaseSharingsAsyncWithHttpInfo($org_id, $base_uuid, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation listBaseSharingsAsyncWithHttpInfo + * + * 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['listBaseSharings'] 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]) + { + $returnType = 'object'; + $request = $this->listBaseSharingsRequest($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 '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['listBaseSharings'] 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]) + { + + // 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' + ); + } + if ($org_id < 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 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.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}/shares/'; + $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 listBases + * + * 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 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 listBases($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listBases'][0]) + { + list($response) = $this->listBasesWithHttpInfo($org_id, $page, $per_page, $contentType); + return $response; + } + + /** + * Operation listBasesWithHttpInfo + * + * 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 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 listBasesWithHttpInfo($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listBases'][0]) + { + $request = $this->listBasesRequest($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 listBasesAsync + * + * 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 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 listBasesAsync($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listBases'][0]) + { + return $this->listBasesAsyncWithHttpInfo($org_id, $page, $per_page, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation listBasesAsyncWithHttpInfo + * + * 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 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 listBasesAsyncWithHttpInfo($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listBases'][0]) + { + $returnType = 'object'; + $request = $this->listBasesRequest($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 '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 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 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 listBases' + ); + } + if ($org_id < 1) { + throw new \InvalidArgumentException('invalid value for "$org_id" when calling BasesApi.listBases, 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.'); + } + + 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/'; + $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 listTrashBases + * + * 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['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 listTrashBases($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listTrashBases'][0]) + { + list($response) = $this->listTrashBasesWithHttpInfo($org_id, $page, $per_page, $contentType); + return $response; + } + + /** + * Operation listTrashBasesWithHttpInfo + * + * 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['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 listTrashBasesWithHttpInfo($org_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listTrashBases'][0]) + { + $request = $this->listTrashBasesRequest($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 listTrashBasesAsync + * + * 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['listTrashBases'] 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]) + { + return $this->listTrashBasesAsyncWithHttpInfo($org_id, $page, $per_page, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation listTrashBasesAsyncWithHttpInfo + * + * 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['listTrashBases'] 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]) + { + $returnType = 'object'; + $request = $this->listTrashBasesRequest($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 '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['listTrashBases'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request @@ -1826,23 +2765,349 @@ public function listTrashBasesRequest($org_id, $page = null, $per_page = null, s // 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 listTrashBases' + ); + } + if ($org_id < 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.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.listTrashBases, must be bigger than or equal to 1.'); + } + + + $resourcePath = '/api/v2.1/org/{org_id}/admin/trash-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 + 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 listUsersBases + * + * 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['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 listUsersBases($org_id, $user_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listUsersBases'][0]) + { + list($response) = $this->listUsersBasesWithHttpInfo($org_id, $user_id, $page, $per_page, $contentType); + return $response; + } + + /** + * Operation listUsersBasesWithHttpInfo + * + * 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['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 listUsersBasesWithHttpInfo($org_id, $user_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listUsersBases'][0]) + { + $request = $this->listUsersBasesRequest($org_id, $user_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 listUsersBasesAsync + * + * 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['listUsersBases'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listUsersBasesAsync($org_id, $user_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listUsersBases'][0]) + { + return $this->listUsersBasesAsyncWithHttpInfo($org_id, $user_id, $page, $per_page, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation listUsersBasesAsyncWithHttpInfo + * + * 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['listUsersBases'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listUsersBasesAsyncWithHttpInfo($org_id, $user_id, $page = null, $per_page = null, string $contentType = self::contentTypes['listUsersBases'][0]) + { + $returnType = 'object'; + $request = $this->listUsersBasesRequest($org_id, $user_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 '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['listUsersBases'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + 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 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( diff --git a/lib/TeamAdmin/InfoSettingsApi.php b/lib/TeamAdmin/InfoSettingsApi.php index 8367960..6bc73cf 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 * diff --git a/lib/TeamAdmin/SharingLinksApi.php b/lib/TeamAdmin/SharingLinksApi.php index eb1ade3..b2208df 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( diff --git a/lib/TeamAdmin/StatisticsApi.php b/lib/TeamAdmin/StatisticsApi.php new file mode 100644 index 0000000..c6a15ff --- /dev/null +++ b/lib/TeamAdmin/StatisticsApi.php @@ -0,0 +1,2285 @@ + [ + '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()); + } + } + + 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/test/Api/ActivitiesLogsApiTest.php b/test/Api/ActivitiesLogsApiTest.php index 393daf4..cac87af 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 e1822ad..2c0b93f 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 * From d6b0da4577bb9ede4599368378357abc4066fe9f Mon Sep 17 00:00:00 2001 From: Simon Hammes Date: Fri, 9 Jan 2026 15:06:29 +0100 Subject: [PATCH 3/3] Upgrade generator to v7.18.0 --- .openapi-generator/VERSION | 2 +- generate_api.sh | 2 +- lib/Auth/APITokenApi.php | 8 +++ lib/Auth/AccessToken.php | 12 ++-- lib/Auth/AccountToken.php | 12 ++-- lib/Auth/AccountTokenApi.php | 8 +++ lib/Auth/ApiToken.php | 12 ++-- lib/Auth/ApiTokenList.php | 12 ++-- lib/Auth/ApiTokenTemporary.php | 12 ++-- lib/Auth/BaseTokenApi.php | 8 +++ lib/Base/ActivitiesLogsApi.php | 8 +++ lib/Base/AddSingleMultipleSelectOptions.php | 12 ++-- ...ingleMultipleSelectOptionsOptionsInner.php | 12 ++-- lib/Base/AppendColumnsRequest.php | 12 ++-- lib/Base/AppendColumnsRequestColumnsInner.php | 12 ++-- lib/Base/AppendRow.php | 12 ++-- lib/Base/AppendRows.php | 12 ++-- lib/Base/ArchiveView.php | 12 ++-- lib/Base/AutonumberColumn.php | 12 ++-- lib/Base/AutonumberColumnFormat.php | 12 ++-- lib/Base/AutonumberColumnWithTableName.php | 12 ++-- lib/Base/Base.php | 12 ++-- lib/Base/BaseInfoApi.php | 8 +++ lib/Base/BigDataApi.php | 8 +++ lib/Base/ButtonColumn.php | 12 ++-- lib/Base/ButtonColumnFormat.php | 12 ++-- ...ButtonColumnFormatSelectedColumnsInner.php | 12 ++-- lib/Base/ButtonColumnWithTableName.php | 12 ++-- lib/Base/CheckboxColumn.php | 12 ++-- lib/Base/CheckboxColumnWithTableName.php | 12 ++-- lib/Base/CollaboratorColumn.php | 12 ++-- lib/Base/CollaboratorColumnWithTableName.php | 12 ++-- lib/Base/ColumnsApi.php | 8 +++ lib/Base/CreateRowComment.php | 12 ++-- lib/Base/CreateTableRequest.php | 12 ++-- lib/Base/CreateTableRequestColumnsInner.php | 12 ++-- lib/Base/CreatorColumn.php | 12 ++-- lib/Base/CreatorColumnWithTableName.php | 12 ++-- lib/Base/CtimeColumn.php | 12 ++-- lib/Base/CtimeColumnWithTableName.php | 12 ++-- lib/Base/DateColumn.php | 12 ++-- lib/Base/DateColumnFormat.php | 12 ++-- lib/Base/DateColumnWithTableName.php | 12 ++-- lib/Base/DeleteColumn.php | 12 ++-- lib/Base/DeleteRow.php | 12 ++-- lib/Base/DeleteRows.php | 12 ++-- lib/Base/DeleteSelectOptions.php | 12 ++-- lib/Base/DeleteTable.php | 12 ++-- lib/Base/DuplicateTable.php | 12 ++-- lib/Base/DurationColumn.php | 12 ++-- lib/Base/DurationColumnFormat.php | 12 ++-- lib/Base/DurationColumnWithTableName.php | 12 ++-- lib/Base/EmailColumn.php | 12 ++-- lib/Base/EmailColumnWithTableName.php | 12 ++-- lib/Base/FileColumn.php | 12 ++-- lib/Base/FileColumnWithTableName.php | 12 ++-- lib/Base/FiltersAutomatic.php | 12 ++-- lib/Base/FiltersCheckbox.php | 12 ++-- lib/Base/FiltersCollaborator.php | 12 ++-- lib/Base/FiltersCreated.php | 12 ++-- lib/Base/FiltersCreator.php | 12 ++-- lib/Base/FiltersDate.php | 12 ++-- lib/Base/FiltersDateTime.php | 12 ++-- lib/Base/FiltersDuration.php | 12 ++-- lib/Base/FiltersEditor.php | 12 ++-- lib/Base/FiltersEmail.php | 12 ++-- lib/Base/FiltersFile.php | 12 ++-- lib/Base/FiltersFormula.php | 12 ++-- lib/Base/FiltersGeolocation.php | 12 ++-- lib/Base/FiltersImage.php | 12 ++-- lib/Base/FiltersLink.php | 12 ++-- lib/Base/FiltersLinkFormula.php | 12 ++-- lib/Base/FiltersLongText.php | 12 ++-- lib/Base/FiltersModified.php | 12 ++-- lib/Base/FiltersMultiSelect.php | 12 ++-- lib/Base/FiltersNumber.php | 12 ++-- lib/Base/FiltersPercentage.php | 12 ++-- lib/Base/FiltersRating.php | 12 ++-- lib/Base/FiltersSingleSelect.php | 12 ++-- lib/Base/FiltersText.php | 12 ++-- lib/Base/FiltersUrl.php | 12 ++-- lib/Base/FormulaColumn.php | 12 ++-- lib/Base/FormulaColumnFormat.php | 12 ++-- lib/Base/FormulaColumnWithTableName.php | 12 ++-- lib/Base/FreezeUnfreezeColumn.php | 12 ++-- lib/Base/GenerateSnapshot.php | 12 ++-- lib/Base/GeoColumnFormat.php | 12 ++-- lib/Base/GeolocationColumn.php | 12 ++-- lib/Base/GeolocationColumnWithTableName.php | 12 ++-- lib/Base/ImageColumn.php | 12 ++-- lib/Base/ImageColumnWithTableName.php | 12 ++-- lib/Base/InsertColumnRequest.php | 12 ++-- lib/Base/InsertRow.php | 12 ++-- lib/Base/InsertRowsIntoBigData.php | 12 ++-- lib/Base/LastModifierColumn.php | 12 ++-- lib/Base/LastModifierColumnWithTableName.php | 12 ++-- lib/Base/LinkColumn.php | 12 ++-- lib/Base/LinkColumnFormat.php | 12 ++-- lib/Base/LinkColumnWithTableName.php | 12 ++-- lib/Base/LinkFormulaColumn.php | 12 ++-- lib/Base/LinkFormulaColumnColumnData.php | 12 ++-- .../LinkFormulaColumnCountLinksFormat.php | 12 ++-- lib/Base/LinkFormulaColumnFindmaxFormat.php | 12 ++-- lib/Base/LinkFormulaColumnFindminFormat.php | 12 ++-- lib/Base/LinkFormulaColumnLookupFormat.php | 12 ++-- lib/Base/LinkFormulaColumnRollupFormat.php | 12 ++-- lib/Base/LinkFormulaColumnWithTableName.php | 12 ++-- lib/Base/LinksApi.php | 8 +++ lib/Base/ListRowLinks.php | 12 ++-- lib/Base/ListRowLinksRowsInner.php | 12 ++-- lib/Base/LongTextColumn.php | 12 ++-- lib/Base/LongTextColumnWithTableName.php | 12 ++-- lib/Base/MatchLinkColumns.php | 12 ++-- .../MatchLinkColumnsMatchingKeysInner.php | 12 ++-- lib/Base/MoveColumn.php | 12 ++-- lib/Base/MoveRowsToNormalBackendRequest.php | 12 ++-- lib/Base/MtimeColumn.php | 12 ++-- lib/Base/MtimeColumnWithTableName.php | 12 ++-- lib/Base/MultipleSelectColumn.php | 12 ++-- .../MultipleSelectColumnWithTableName.php | 12 ++-- lib/Base/NewView.php | 12 ++-- lib/Base/NotificationsApi.php | 8 +++ lib/Base/NumberColumn.php | 12 ++-- lib/Base/NumberColumnFormat.php | 12 ++-- lib/Base/NumberColumnWithTableName.php | 12 ++-- lib/Base/RatingColumn.php | 12 ++-- lib/Base/RatingColumnFormat.php | 12 ++-- lib/Base/RatingColumnWithTableName.php | 12 ++-- lib/Base/RenameColumn.php | 12 ++-- lib/Base/RenameTable.php | 12 ++-- lib/Base/ResizeColumn.php | 12 ++-- lib/Base/RowCommentsApi.php | 8 +++ lib/Base/RowLinkCreateUpdateDelete.php | 12 ++-- lib/Base/Rows.php | 12 ++-- lib/Base/RowsApi.php | 8 +++ lib/Base/RowsWithTableName.php | 12 ++-- lib/Base/SelectColumnFormat.php | 12 ++-- lib/Base/SelectColumnFormatOptionsInner.php | 12 ++-- lib/Base/SendToastNotificationRequest.php | 12 ++-- .../SendToastNotificationRequestDetail.php | 12 ++-- lib/Base/SingleSelectColumn.php | 12 ++-- lib/Base/SingleSelectColumnWithTableName.php | 12 ++-- lib/Base/SnapshotsApi.php | 8 +++ lib/Base/SortsInner.php | 12 ++-- lib/Base/SqlQuery.php | 12 ++-- lib/Base/SqlQueryParametersInner.php | 12 ++-- lib/Base/SqlQueryResponse.php | 12 ++-- lib/Base/TableNameObject.php | 12 ++-- lib/Base/TableWithRowIds.php | 12 ++-- lib/Base/TablesApi.php | 8 +++ lib/Base/TextColumn.php | 12 ++-- lib/Base/TextColumnWithTableName.php | 12 ++-- lib/Base/UpdateColumn.php | 12 ++-- lib/Base/UpdateColumnType.php | 12 ++-- lib/Base/UpdateComment.php | 12 ++-- lib/Base/UpdateCommentOptions.php | 12 ++-- lib/Base/UpdateRow.php | 12 ++-- lib/Base/UpdateRows.php | 12 ++-- lib/Base/UpdateRowsUpdatesInner.php | 12 ++-- .../UpdateSingleMultipleSelectOptions.php | 12 ++-- ...ingleMultipleSelectOptionsOptionsInner.php | 12 ++-- lib/Base/UpdateView.php | 12 ++-- lib/Base/UpdateViewFiltersInner.php | 12 ++-- lib/Base/UrlColumn.php | 12 ++-- lib/Base/UrlColumnWithTableName.php | 12 ++-- lib/Base/ViewsApi.php | 8 +++ lib/Configuration.php | 57 +++++++++++++++++++ lib/File/FilesImagesApi.php | 8 +++ lib/File/FilesImagesCustomFolderApi.php | 8 +++ lib/PythonScheduler/RunsApi.php | 8 +++ lib/PythonScheduler/StatisticsApi.php | 8 +++ lib/SysAdmin/AddDepartmentRequest.php | 12 ++-- lib/SysAdmin/AddNewUserRequest.php | 12 ++-- lib/SysAdmin/AddNotificationToUserRequest.php | 12 ++-- lib/SysAdmin/AddTeamRequest.php | 12 ++-- lib/SysAdmin/AutomationsApi.php | 8 +++ lib/SysAdmin/BasesApi.php | 8 +++ lib/SysAdmin/CommonDatasetApi.php | 8 +++ lib/SysAdmin/CreateGroupRequest.php | 12 ++-- lib/SysAdmin/DepartmentsApi.php | 8 +++ lib/SysAdmin/EnforceTwoFactorRequest.php | 12 ++-- lib/SysAdmin/ExportApi.php | 8 +++ lib/SysAdmin/FormsApi.php | 8 +++ lib/SysAdmin/GroupsApi.php | 8 +++ lib/SysAdmin/ListAuditLogs200Response.php | 12 ++-- ...tAuditLogs200ResponseAuditLogListInner.php | 12 ++-- ...Logs200ResponseAuditLogListInnerDetail.php | 12 ++-- lib/SysAdmin/LogsApi.php | 8 +++ lib/SysAdmin/MaintenanceApi.php | 8 +++ lib/SysAdmin/NotificationsApi.php | 8 +++ lib/SysAdmin/PluginsApi.php | 8 +++ lib/SysAdmin/RepairBase200Response.php | 12 ++-- lib/SysAdmin/SharingLinksApi.php | 8 +++ lib/SysAdmin/StatisticsApi.php | 8 +++ lib/SysAdmin/SystemInfoCustomizingApi.php | 8 +++ lib/SysAdmin/SystemNotificationsApi.php | 8 +++ lib/SysAdmin/TeamsApi.php | 8 +++ lib/SysAdmin/TransferGroupRequest.php | 12 ++-- lib/SysAdmin/UpdateAbuseReportRequest.php | 12 ++-- lib/SysAdmin/UpdateAdminsRole.php | 12 ++-- lib/SysAdmin/UpdateGeneralSettingsRequest.php | 12 ++-- lib/SysAdmin/UpdateTeamRequest.php | 12 ++-- lib/SysAdmin/UpdateTeamUserRequest.php | 12 ++-- lib/SysAdmin/UpdateUserRequest.php | 12 ++-- lib/SysAdmin/UsersApi.php | 8 +++ lib/TeamAdmin/ActivitiesLogsApi.php | 8 +++ lib/TeamAdmin/BasesApi.php | 8 +++ lib/TeamAdmin/CustomizingApi.php | 8 +++ lib/TeamAdmin/EnforceTwofactorRequest.php | 12 ++-- lib/TeamAdmin/GroupsApi.php | 8 +++ lib/TeamAdmin/InfoSettingsApi.php | 8 +++ lib/TeamAdmin/SAMLApi.php | 8 +++ lib/TeamAdmin/SharingLinksApi.php | 8 +++ lib/TeamAdmin/StatisticsApi.php | 8 +++ .../UpdateGroupMemberRoleRequest.php | 12 ++-- lib/TeamAdmin/UpdateGroupRequest.php | 12 ++-- lib/TeamAdmin/UpdateInviteLinkRequest.php | 12 ++-- lib/TeamAdmin/UsersApi.php | 8 +++ lib/User/Action.php | 12 ++-- lib/User/ActionAddRecord.php | 12 ++-- lib/User/ActionAddRecordToOtherTable.php | 12 ++-- lib/User/ActionAddRecordToOtherTableRow.php | 12 ++-- lib/User/ActionCalculateAccumulatedValue.php | 12 ++-- lib/User/ActionCalculateDelta.php | 12 ++-- lib/User/ActionCalculatePercentage.php | 12 ++-- lib/User/ActionCalculateRank.php | 12 ++-- lib/User/ActionExtractUserName.php | 12 ++-- lib/User/ActionLinkRecord.php | 12 ++-- .../ActionLinkRecordMatchConditionsInner.php | 12 ++-- lib/User/ActionLockRecord.php | 12 ++-- lib/User/ActionLookupAndCopy.php | 12 ++-- ...ookupAndCopyEqualColumnConditionsInner.php | 12 ++-- .../ActionLookupAndCopyTableCondition.php | 12 ++-- lib/User/ActionNotify.php | 12 ++-- ...ecificConditionsAfterModificationInner.php | 12 ++-- lib/User/ActionRunPeriodicallyInner.php | 12 ++-- .../ActionRunPeriodicallyOnRecordsInner.php | 12 ++-- lib/User/ActionRunPythonScript.php | 12 ++-- lib/User/ActionSendEmail.php | 12 ++-- lib/User/ActionUpdateRecord.php | 12 ++-- lib/User/ActivitiesLogsApi.php | 8 +++ lib/User/AddEmailAccountRequest.php | 12 ++-- lib/User/AddGroupMemberRequest.php | 12 ++-- lib/User/AddNotificationRuleRequest.php | 12 ++-- lib/User/AddNotificationRuleRequestAction.php | 12 ++-- .../AddNotificationRuleRequestTrigger.php | 12 ++-- lib/User/AddPassword.php | 12 ++-- lib/User/AddRecordToOtherTableRowDate.php | 12 ++-- lib/User/AddRecordToOtherTableRowDateTime.php | 12 ++-- lib/User/AppsApi.php | 8 +++ lib/User/AttachmentApi.php | 8 +++ lib/User/AutomationsApi.php | 8 +++ lib/User/Base.php | 12 ++-- lib/User/BasePasswordRequest.php | 12 ++-- lib/User/BaseTable.php | 12 ++-- lib/User/BasesApi.php | 8 +++ lib/User/ChooseADateColumnValue.php | 12 ++-- lib/User/CommonDatasetApi.php | 8 +++ lib/User/Contains.php | 12 ++-- lib/User/ContainsFilterTerm.php | 12 ++-- lib/User/CreateAutomationRuleRequest.php | 12 ++-- lib/User/CreateGroupRequest.php | 12 ++-- lib/User/DepartmentsApi.php | 8 +++ lib/User/Detail.php | 12 ++-- lib/User/DoesNotContain.php | 12 ++-- lib/User/EmailAccountsApi.php | 8 +++ lib/User/Equal.php | 12 ++-- lib/User/FiltersInner.php | 12 ++-- lib/User/FormsApi.php | 8 +++ .../GetBigDataOperationLogs200Response.php | 12 ++-- ...perationLogs200ResponseOperationsInner.php | 12 ++-- ...ogs200ResponseOperationsInnerOperation.php | 12 ++-- lib/User/Greater.php | 12 ++-- lib/User/GreaterOrEqual.php | 12 ++-- lib/User/GroupsWorkspacesApi.php | 8 +++ lib/User/HasAllOf.php | 12 ++-- lib/User/HasAnyOf.php | 12 ++-- lib/User/HasNoneOf.php | 12 ++-- .../ImportBasefromDTableFile200Response.php | 12 ++-- ...portBasefromDTableFile200ResponseTable.php | 12 ++-- lib/User/ImportExportApi.php | 8 +++ lib/User/ImportUsersToAppRequest.php | 12 ++-- lib/User/IncludeMe.php | 12 ++-- lib/User/Is.php | 12 ++-- lib/User/IsAnyOf.php | 12 ++-- lib/User/IsCurrentUserID.php | 12 ++-- lib/User/IsEmpty.php | 12 ++-- lib/User/IsExactly.php | 12 ++-- lib/User/IsInactive.php | 12 ++-- lib/User/IsNoneOf.php | 12 ++-- lib/User/IsNot.php | 12 ++-- lib/User/IsNotEmpty.php | 12 ++-- lib/User/IsWithinTheNextMonth.php | 12 ++-- lib/User/IsWithinTheNextNumberOfDays.php | 12 ++-- lib/User/IsWithinTheNextWeek.php | 12 ++-- lib/User/IsWithinTheNextYear.php | 12 ++-- lib/User/IsWithinThePastMonth.php | 12 ++-- lib/User/IsWithinThePastNumberOfDays.php | 12 ++-- lib/User/IsWithinThePastWeek.php | 12 ++-- lib/User/IsWithinThePastYear.php | 12 ++-- lib/User/IsWithinThisMonth.php | 12 ++-- lib/User/IsWithinThisWeek.php | 12 ++-- lib/User/IsWithinThisYear.php | 12 ++-- lib/User/Less.php | 12 ++-- lib/User/LessOrEqual.php | 12 ++-- lib/User/ListPublicUserInfosRequest.php | 12 ++-- lib/User/MaintenanceApi.php | 8 +++ lib/User/ModifyPassword.php | 12 ++-- lib/User/NotEqual.php | 12 ++-- lib/User/NotificationsApi.php | 8 +++ ...eetSpecificConditionsAfterModification.php | 12 ++-- lib/User/RepairBase200Response.php | 12 ++-- lib/User/RowAdded.php | 12 ++-- lib/User/RunPeriodically.php | 12 ++-- ...RunPeriodicallyOnRecordsMeetConditions.php | 12 ++-- lib/User/SharingApi.php | 8 +++ lib/User/SharingLinksApi.php | 8 +++ lib/User/SnapshotsApi.php | 8 +++ lib/User/SpecificDateValue.php | 12 ++-- lib/User/SystemNotificationsApi.php | 8 +++ lib/User/TheDayRunningTheTaskValue.php | 12 ++-- lib/User/Trigger.php | 12 ++-- ...eetSpecificConditionsAfterModification.php | 12 ++-- lib/User/TriggerRowAdded.php | 12 ++-- ...ggerRunPeriodicallyOnRecordsMeetPerDay.php | 12 ++-- ...PeriodicallyOnRecordsMeetPerDayTrigger.php | 12 ++-- ...erRunPeriodicallyOnRecordsMeetPerMonth.php | 12 ++-- ...riodicallyOnRecordsMeetPerMonthTrigger.php | 12 ++-- ...gerRunPeriodicallyOnRecordsMeetPerWeek.php | 12 ++-- ...eriodicallyOnRecordsMeetPerWeekTrigger.php | 12 ++-- lib/User/TriggerRunPeriodicallyPerDay.php | 12 ++-- .../TriggerRunPeriodicallyPerDayTrigger.php | 12 ++-- lib/User/TriggerRunPeriodicallyPerMonth.php | 12 ++-- .../TriggerRunPeriodicallyPerMonthTrigger.php | 12 ++-- lib/User/TriggerRunPeriodicallyPerWeek.php | 12 ++-- .../TriggerRunPeriodicallyPerWeekTrigger.php | 12 ++-- lib/User/UnsetPassword.php | 12 ++-- lib/User/UpdateCommonDatasetSyncRequest.php | 12 ++-- lib/User/UpdateGroupRequest.php | 12 ++-- lib/User/UpdateGroupRoleRequest.php | 12 ++-- lib/User/UpdateNotificationRuleRequest.php | 12 ++-- lib/User/UserApi.php | 8 +++ lib/User/UsersInfo.php | 12 ++-- lib/User/WebhooksApi.php | 8 +++ lib/User/XDaysBeforeRunningTheTaskValue.php | 12 ++-- lib/User/XxxExactDate.php | 12 ++-- lib/User/XxxNumberOfDaysAgo.php | 12 ++-- lib/User/XxxNumberOfDaysFromNow.php | 12 ++-- lib/User/XxxOneMonthAgo.php | 12 ++-- lib/User/XxxOneMonthFromNow.php | 12 ++-- lib/User/XxxOneWeekAgo.php | 12 ++-- lib/User/XxxOneWeekFromNow.php | 12 ++-- lib/User/XxxToday.php | 12 ++-- lib/User/XxxTomorrow.php | 12 ++-- lib/User/XxxYesterday.php | 12 ++-- 355 files changed, 2297 insertions(+), 1736 deletions(-) diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index 368fd8f..1b2d969 100644 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -7.15.0 +7.18.0 diff --git a/generate_api.sh b/generate_api.sh index 1204871..8f24dd6 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 916f63d..b12bd35 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 af8f824..f125b6e 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 5c18e3d..cd286b0 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 bd72323..ba9e56c 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 f405246..ed8db06 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 ed142ae..02e5966 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 ea4ff6d..e9734e3 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 c4d3c13..d7c2ebc 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 f03e133..4528b5f 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 73b7c08..c27fde3 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 03fe293..8049fa3 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 5abcda1..4f03170 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 1c2ea5b..66e520f 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 fd2a341..c6c9cda 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 7c0a810..7153e0c 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 06fdbdc..469166a 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 2fd8051..fa699a0 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 72ab8fb..790a5e0 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 4dce9a5..57545b0 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 72afbee..752b593 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 1ab244c..2888bde 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 f080eb4..c961a55 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 0321fda..bdd01bd 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 8241939..c90bc3e 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 1cd9eb0..3c1b01c 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 13ca9fd..49e2ae0 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 28cff9b..4a53505 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 04d46a5..54f2783 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 3533877..cb23ca4 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 44537f7..1464750 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 2460cc8..2467c01 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 09b1ba9..53e003d 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 db3ca06..bcd3674 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 f486cc9..8087a9a 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 19c5b17..3b1024f 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 b599bd1..93d8a95 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 db72b58..2b6e515 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 a44b0c5..34883d2 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 e81f1d0..4f02d8c 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 d1a3f11..94952c3 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 99956d0..33ddf11 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 99f0c1a..c30052a 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 3e79780..aecf714 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 f319769..502c1fd 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 c5c75ac..aa27efd 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 a1991e5..4122cb0 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 10bcf98..f3b1d5f 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 fe081ab..e7f8244 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 c8e7afa..cac5cb4 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 b519b0c..7aa4aa1 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 8ee2a71..7a10b33 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 ed4cc1a..04b177a 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 c256ac6..ff9c231 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 86ec819..36bf808 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 ab19fd0..217cb52 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 8fa782e..628831a 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 d7956a8..0311eea 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 cdffa96..6fa5a63 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 017cb15..f2e5f3f 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 6da3135..a1ec796 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 eb83275..393f018 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 ed86184..109989f 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 bc14697..2cece4c 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 dbaddda..b8966c3 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 682792f..1599139 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 efd8790..c09488b 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 25dfc68..86b1e1f 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 8318ca4..be6f1fe 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 ad2e5b1..58c5542 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 55bd47c..8159a96 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 b5266fb..8eee141 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 df1acb7..67e4cfe 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 d9405a3..006e10a 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 455d8d7..00f5f7d 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 501df44..862e1ed 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 9e5fcd0..9a70ff2 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 4eb7733..0f8727a 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 d266340..9d4b66d 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 94f2a82..ba0eba5 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 430e271..4b2fdaa 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 786e12d..e66aa96 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 33872fd..60e5cc1 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 a556c85..3837f97 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 aa5b2b6..08f4651 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 2a49389..ba679d8 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 1d72ffb..4ac83d9 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 b6e7a7c..e383e1f 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 961ebb0..1719f08 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 f31913f..a4c4cc7 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 f5a7fbf..6eef775 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 8be3d8e..6e9b055 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 951eb73..89438cb 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 4d69e43..afb7838 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 e3620e1..19deb7f 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 ac5f2e1..767a110 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 ee1f54b..39fd842 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 b5e3a69..6eeb841 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 ff42718..7f6604f 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 14edf79..22d716c 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 97234fa..90de5c9 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 39f6f98..6b47e69 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 2ca4c4e..449aea6 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 0ef4857..a38a85b 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 353b257..b6897cb 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 e74f094..a85fccf 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 6ce69e3..d95820e 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 becf998..b20be2a 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 06ffe3c..df41d52 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 d551db3..8a7a7d0 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 8672be8..35c4519 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 4073952..dbebd56 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 8199b31..9670ce9 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 8759de9..101119a 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 85ddb93..7e66649 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 c7937e8..2ebce7d 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 aa11be6..1c65463 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 0872864..b7cc418 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 09f90f9..f0df713 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 45e119e..b1cf8f1 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 49f740b..f8330c4 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 d85710b..e979475 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 e816297..f219025 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 6850fc2..aa672ec 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 de9f140..9a9a22e 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 6ecdd43..b703fd3 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 6aefa11..5408e49 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 20c4fee..0ce4da0 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 733bed0..44f3634 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 4dd4084..f32bf20 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 aa5307f..7a32845 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 7a7307e..4d44b7f 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 2c08e29..5915354 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 47e136b..f86bac3 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 01c78d2..237ace7 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 86b6ffb..9c12fd1 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 32cfc47..56db4a5 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 58be68d..2117923 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 b712d13..01872b7 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 d5ec337..c14944e 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 1327aaf..f79a10a 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 a0643c7..d70d620 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 51080ea..1996bd0 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 31cf931..3504f92 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 c3bb068..41808c7 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 de3540e..d6b450d 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 cfda1dc..802b360 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 5b7d249..0ea5d4b 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 0ece66c..598ab2a 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 838bd41..1202292 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 1e01685..26f6c69 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 8d01814..e21ea37 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 114b100..be1e93f 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 ef473cc..7eca419 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 3efc760..3dca002 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 3edaf8a..a5a84c7 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 9bc871a..9de4cde 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 489fc16..dba4938 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 95a91b6..5f5bafa 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 e6dca11..9c3b7f5 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 2d915a2..a02830b 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 89f6c0b..593f409 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 89c50a1..777b759 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 3fbcfa9..10d9c47 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 fdfd944..8057979 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 521f4ec..81082d1 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 adf40ac..ef2fb29 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 db1491b..73de030 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 75d8748..f6055fb 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 bf11a6b..8e5bf34 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 40ddb7c..1c7cf20 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 0d278b1..428e312 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 507ea2d..d0feca4 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 ef10282..7105a85 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 71ffeca..b4b23d8 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 10d5ff0..40c6e45 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 f78d0cf..9b1a576 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 d2ccb2d..e1875a3 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 0081a60..118d0ea 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 f321564..b1cc45b 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 53a6d69..67cdedd 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 4b58a6e..5604eb0 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 0a2f063..a6a2fb4 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 e5c943d..763db29 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 1bc0f6f..1f78ae1 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 4d8a24c..2778a70 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 63cd4b5..14f5b1d 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 ad0bc6f..c26c49c 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 6ba09e7..cc2d516 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 94db9d9..59cca8a 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 32002a3..ff54a81 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 9cb4d68..06403f8 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 8a2a500..16d5a76 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 c4277dc..876a488 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 811f69a..288d0d5 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 ad4e1cd..5b8c2fa 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 ccdb69c..1f8ef24 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 50095c3..3425abe 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 cd1b69b..c47c46e 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 6030fa4..f0c4e13 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 d006222..1018111 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 8a2baa5..1a62008 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 f0f4d4d..996f57e 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 107a5ef..ecde698 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 6f35fa8..3611024 100644 --- a/lib/TeamAdmin/ActivitiesLogsApi.php +++ b/lib/TeamAdmin/ActivitiesLogsApi.php @@ -2503,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 c5fcfb0..8a3dc39 100644 --- a/lib/TeamAdmin/BasesApi.php +++ b/lib/TeamAdmin/BasesApi.php @@ -3813,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 8913e21..9b8119f 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 28a036f..78a25c0 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 938d274..2a5413f 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 6bc73cf..3d2f246 100644 --- a/lib/TeamAdmin/InfoSettingsApi.php +++ b/lib/TeamAdmin/InfoSettingsApi.php @@ -1472,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 732beea..80631ef 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 b2208df..c9bec6b 100644 --- a/lib/TeamAdmin/SharingLinksApi.php +++ b/lib/TeamAdmin/SharingLinksApi.php @@ -2502,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 index c6a15ff..e1b565d 100644 --- a/lib/TeamAdmin/StatisticsApi.php +++ b/lib/TeamAdmin/StatisticsApi.php @@ -2237,6 +2237,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/UpdateGroupMemberRoleRequest.php b/lib/TeamAdmin/UpdateGroupMemberRoleRequest.php index 805c8a2..875edf1 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 55808f3..df71dbe 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 ee37bf6..a45006a 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 a900748..bcf196d 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 4b854f8..ca8d65f 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 e865a40..c0f86c7 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 5a6c17e..c701fba 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 071b2c9..3b2aa85 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 c9a4b21..6015f90 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 64d129f..08f49ab 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 fc41d82..bcf9a2b 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 b3965f0..8d38705 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 b670118..c649807 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 c36f9de..7bb00be 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 55ceac0..01f129f 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 b80c6f6..7601d3d 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 c2814cd..aa4fa71 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 d9c40d0..549a0b6 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 1b89fc1..f7af732 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 2790f3b..9849d79 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 efe27b5..983d43f 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 9653500..d794328 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 389fed1..bd673e2 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 27bb8d6..cdaad98 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 a3d08e0..98b8a51 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 e839ead..62392c3 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 197fe00..e523991 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 d2afba0..47bb1e7 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 7282479..eed60cb 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 89027f7..dfaa2a1 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 bfa0c7e..6f731bc 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 2331d83..1fdf804 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 8914c71..e8c82e4 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 36f3b94..c8adcc6 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 3fa5409..c5f04fd 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 6b75ed2..15b219d 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 86eb7be..36486de 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 63cfb3f..7841d4a 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 7b3315c..9537b21 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 1974dab..3917d34 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 84f0eef..898ac3a 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 e1a5ce7..a7d41f4 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 cc2ba9f..be25d9b 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 6f09b7a..89db511 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 bf07876..cc78371 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 034fb1e..479f641 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 63a454a..c94b165 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 3e0678d..c40ecc4 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 78a8a57..8ea22d6 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 87b757f..630adac 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 18850ac..c2edd2c 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 5c6f2b9..94eefe3 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 b3f32ca..5a57f11 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 de8d972..3d065a1 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 29ee7f2..d90da08 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 7d0f9ba..c8cf586 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 cb49997..c88d0ed 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 0742f96..793105b 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 0f61525..069a828 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 95e77a9..8088d59 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 70b5e60..47c9cfb 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 674689f..60e8be2 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 4e092f6..ae2715e 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 e507f23..0c90909 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 c9da8f5..34bdac5 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 f28067f..9fede31 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 1e9435d..8dc90d4 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 08c3efc..63869bf 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 1a5e903..3aa2980 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 3543dec..2c7913d 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 c31a1aa..d591e59 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 570775b..6d8a0d5 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 af05880..e63cc68 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 bc2651d..f836bd9 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 e239616..3fe3be9 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 a2eb8c5..a473871 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 f9c4c5b..69d0953 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 13c593b..4119225 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 b60ac4f..140f1ac 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 e05ceec..81d7b83 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 d254e85..3ef4c32 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 045aca7..b4277af 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 744a575..a112151 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 5f80af1..7db2ea7 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 a9d417a..e54513b 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 0eaaa61..4061c7c 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 903e5ab..e50624c 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 0e89b98..bbd5a81 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 5a26f24..6b87465 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 cf4f6c7..8c03a5a 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 90520f7..28095a0 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 3458e3d..91c0176 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 29e575c..1bfa61d 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 e160e21..5f6404c 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 d0ac1eb..7729c37 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 08c3ba8..d8b7c68 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 a84045e..aa0f739 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 3de0d23..793c85e 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 810fcb1..3643bfa 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 7d5af1c..dccd4dd 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 2f35192..75c5047 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 09e0b39..06e8c21 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 81be62e..1677295 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 37b8dd4..4a3c3b2 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 274d0e6..a58d0fd 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 3dac828..863e5c2 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 0be31cc..b1e8626 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 25d9597..52b6c68 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 3d6839b..730f243 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 eeebb2b..cc95496 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 261e69b..9511549 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 004368d..ddd827e 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 011c8f7..5c9b7ad 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 a6120ad..8d070ff 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 594180b..70ea989 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 6717047..b3453ad 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 517c573..018e62d 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 42d0494..f601717 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 77afe77..b028b3b 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 de2e8a4..b1a33cb 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 5416a6a..8de6684 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 7073734..207179b 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 49b7496..6105ef3 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 70b7734..22fb3a0 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 fcf4fcf..c4caa7b 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 62ffe24..aa82417 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 84ebce7..41ea8da 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 5c5368e..8d9b188 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 e4fc3bd..fa4d3b7 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 d2eadd5..209f3e0 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 73f73f3..0454866 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 7b49132..613d284 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 bb99a28..800851a 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 401f7d8..70724c8 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 9c7820a..e22c7c8 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 a6637e8..c1da72e 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 b822a57..98f7ba8 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 34ceb52..31e17a3 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 a569308..683d014 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 a161436..aa1daff 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 907b8f6..54edf80 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]); }