From 94550dfb9cbb47f182d2436f6fba7f1ccfd3c24c Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Mon, 14 Oct 2024 20:59:48 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.411.1 --- .speakeasy/gen.lock | 63 +++++++-- .speakeasy/gen.yaml | 2 +- .speakeasy/workflow.lock | 8 +- README.md | 2 + RELEASES.md | 12 +- .../AtsUpdateApplicationRequestDto.md | 16 +-- docs/Models/Components/CostCenters.md | 10 +- docs/Models/Components/HRISCostCenter.md | 16 +++ .../Components/HRISCostCenterPaginated.md | 11 ++ .../Models/Components/HRISCostCenterResult.md | 9 ++ .../Components/HRISCostCenterSourceValue.md | 35 +++++ .../Components/HRISCostCenterSourceValue4.md | 7 + docs/Models/Components/HRISCostCenterType.md | 11 ++ docs/Models/Components/HRISCostCenterValue.md | 14 ++ docs/Models/Components/HRISDepartment.md | 9 +- docs/Models/Components/HRISGroup.md | 9 +- docs/Models/Components/HRISGroupValue.md | 3 +- docs/Models/Components/IamGroupValue.md | 3 +- .../HrisGetCostCenterGroupRequest.md | 12 ++ .../HrisGetCostCenterGroupResponse.md | 11 ++ ...risListCostCenterGroupsQueryParamFilter.md | 10 ++ .../HrisListCostCenterGroupsRequest.md | 16 +++ .../HrisListCostCenterGroupsResponse.md | 11 ++ docs/sdks/ats/README.md | 1 - docs/sdks/hris/README.md | 110 ++++++++++++++++ src/Hris.php | 96 ++++++++++++++ .../AtsUpdateApplicationRequestDto.php | 1 + src/Models/Components/CostCenters.php | 24 +++- src/Models/Components/HRISCostCenter.php | 124 ++++++++++++++++++ .../Components/HRISCostCenterPaginated.php | 63 +++++++++ .../Components/HRISCostCenterResult.php | 41 ++++++ .../Components/HRISCostCenterSourceValue4.php | 18 +++ src/Models/Components/HRISCostCenterType.php | 42 ++++++ src/Models/Components/HRISCostCenterValue.php | 21 +++ src/Models/Components/HRISDepartment.php | 16 ++- src/Models/Components/HRISGroup.php | 16 ++- src/Models/Components/HRISGroupValue.php | 1 + src/Models/Components/IamGroupValue.php | 1 + .../HrisGetCostCenterGroupRequest.php | 68 ++++++++++ .../HrisGetCostCenterGroupResponse.php | 55 ++++++++ ...isListCostCenterGroupsQueryParamFilter.php | 30 +++++ .../HrisListCostCenterGroupsRequest.php | 111 ++++++++++++++++ .../HrisListCostCenterGroupsResponse.php | 55 ++++++++ src/SDKConfiguration.php | 4 +- 44 files changed, 1154 insertions(+), 44 deletions(-) create mode 100644 docs/Models/Components/HRISCostCenter.md create mode 100644 docs/Models/Components/HRISCostCenterPaginated.md create mode 100644 docs/Models/Components/HRISCostCenterResult.md create mode 100644 docs/Models/Components/HRISCostCenterSourceValue.md create mode 100644 docs/Models/Components/HRISCostCenterSourceValue4.md create mode 100644 docs/Models/Components/HRISCostCenterType.md create mode 100644 docs/Models/Components/HRISCostCenterValue.md create mode 100644 docs/Models/Operations/HrisGetCostCenterGroupRequest.md create mode 100644 docs/Models/Operations/HrisGetCostCenterGroupResponse.md create mode 100644 docs/Models/Operations/HrisListCostCenterGroupsQueryParamFilter.md create mode 100644 docs/Models/Operations/HrisListCostCenterGroupsRequest.md create mode 100644 docs/Models/Operations/HrisListCostCenterGroupsResponse.md create mode 100644 src/Models/Components/HRISCostCenter.php create mode 100644 src/Models/Components/HRISCostCenterPaginated.php create mode 100644 src/Models/Components/HRISCostCenterResult.php create mode 100644 src/Models/Components/HRISCostCenterSourceValue4.php create mode 100644 src/Models/Components/HRISCostCenterType.php create mode 100644 src/Models/Components/HRISCostCenterValue.php create mode 100644 src/Models/Operations/HrisGetCostCenterGroupRequest.php create mode 100644 src/Models/Operations/HrisGetCostCenterGroupResponse.php create mode 100644 src/Models/Operations/HrisListCostCenterGroupsQueryParamFilter.php create mode 100644 src/Models/Operations/HrisListCostCenterGroupsRequest.php create mode 100644 src/Models/Operations/HrisListCostCenterGroupsResponse.php diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index fc8166e6..2e560ce0 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: 3759371f-a095-4585-b437-50529a0eb248 management: - docChecksum: 7e55fc6662c79e5c30a67970ff9c86dc + docChecksum: b4cf8a9c43b759607edff1a0326e1367 docVersion: 1.0.0 speakeasyVersion: 1.411.1 generationVersion: 2.436.1 - releaseVersion: 0.3.0 - configChecksum: fa3b463ca34cf3d9bef041fce3596142 + releaseVersion: 0.5.0 + configChecksum: 1d91e84fd036456583abab84caf26398 repoURL: https://github.com/StackOneHQ/stackone-client-php.git installationURL: https://github.com/StackOneHQ/stackone-client-php published: true @@ -380,6 +380,13 @@ generatedFiles: - docs/Models/Components/HRISBenefitSourceValue4.md - docs/Models/Components/HRISBenefitValue.md - docs/Models/Components/HRISBenefitsPaginated.md + - docs/Models/Components/HRISCostCenter.md + - docs/Models/Components/HRISCostCenterPaginated.md + - docs/Models/Components/HRISCostCenterResult.md + - docs/Models/Components/HRISCostCenterSourceValue.md + - docs/Models/Components/HRISCostCenterSourceValue4.md + - docs/Models/Components/HRISCostCenterType.md + - docs/Models/Components/HRISCostCenterValue.md - docs/Models/Components/HRISDepartment.md - docs/Models/Components/HRISDepartmentSourceValue.md - docs/Models/Components/HRISDepartmentSourceValue4.md @@ -1017,6 +1024,8 @@ generatedFiles: - docs/Models/Operations/HrisGetBenefitResponse.md - docs/Models/Operations/HrisGetCompanyRequest.md - docs/Models/Operations/HrisGetCompanyResponse.md + - docs/Models/Operations/HrisGetCostCenterGroupRequest.md + - docs/Models/Operations/HrisGetCostCenterGroupResponse.md - docs/Models/Operations/HrisGetDepartmentGroupRequest.md - docs/Models/Operations/HrisGetDepartmentGroupResponse.md - docs/Models/Operations/HrisGetEmployeeDocumentCategoryRequest.md @@ -1046,6 +1055,9 @@ generatedFiles: - docs/Models/Operations/HrisListBenefitsResponse.md - docs/Models/Operations/HrisListCompaniesRequest.md - docs/Models/Operations/HrisListCompaniesResponse.md + - docs/Models/Operations/HrisListCostCenterGroupsQueryParamFilter.md + - docs/Models/Operations/HrisListCostCenterGroupsRequest.md + - docs/Models/Operations/HrisListCostCenterGroupsResponse.md - docs/Models/Operations/HrisListDepartmentGroupsQueryParamFilter.md - docs/Models/Operations/HrisListDepartmentGroupsRequest.md - docs/Models/Operations/HrisListDepartmentGroupsResponse.md @@ -1552,6 +1564,12 @@ generatedFiles: - src/Models/Components/HRISBenefitSourceValue4.php - src/Models/Components/HRISBenefitValue.php - src/Models/Components/HRISBenefitsPaginated.php + - src/Models/Components/HRISCostCenter.php + - src/Models/Components/HRISCostCenterPaginated.php + - src/Models/Components/HRISCostCenterResult.php + - src/Models/Components/HRISCostCenterSourceValue4.php + - src/Models/Components/HRISCostCenterType.php + - src/Models/Components/HRISCostCenterValue.php - src/Models/Components/HRISDepartment.php - src/Models/Components/HRISDepartmentSourceValue4.php - src/Models/Components/HRISDepartmentType.php @@ -2110,6 +2128,8 @@ generatedFiles: - src/Models/Operations/HrisGetBenefitResponse.php - src/Models/Operations/HrisGetCompanyRequest.php - src/Models/Operations/HrisGetCompanyResponse.php + - src/Models/Operations/HrisGetCostCenterGroupRequest.php + - src/Models/Operations/HrisGetCostCenterGroupResponse.php - src/Models/Operations/HrisGetDepartmentGroupRequest.php - src/Models/Operations/HrisGetDepartmentGroupResponse.php - src/Models/Operations/HrisGetEmployeeDocumentCategoryRequest.php @@ -2139,6 +2159,9 @@ generatedFiles: - src/Models/Operations/HrisListBenefitsResponse.php - src/Models/Operations/HrisListCompaniesRequest.php - src/Models/Operations/HrisListCompaniesResponse.php + - src/Models/Operations/HrisListCostCenterGroupsQueryParamFilter.php + - src/Models/Operations/HrisListCostCenterGroupsRequest.php + - src/Models/Operations/HrisListCostCenterGroupsResponse.php - src/Models/Operations/HrisListDepartmentGroupsQueryParamFilter.php - src/Models/Operations/HrisListDepartmentGroupsRequest.php - src/Models/Operations/HrisListDepartmentGroupsResponse.php @@ -2501,7 +2524,7 @@ examples: x-account-id: "" responses: "200": - application/json: {"data": {"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}, "first_name": "Issac", "last_name": "Newton", "name": "Issac Newton", "display_name": "Sir Issac Newton", "avatar_url": "https://example.com/avatar.png", "personal_email": "isaac.newton@example.com", "personal_phone_number": "+1234567890", "work_email": "newton@example.com", "work_phone_number": "+1234567890", "job_id": "5290", "job_title": "Physicist", "job_description": {"text": "Testing the laws of motion"}, "department_id": "3093", "department": "Physics", "groups": [{"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}, "type": {"value": "team"}}, {"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}, "type": {"value": "team"}}], "cost_centers": [], "manager_id": "67890", "remote_manager_id": "e3cb75bf-aa84-466e-a6c1-b8322b257a48", "preferred_language": {"value": "eng"}, "date_of_birth": "1990-01-01T00:00.000Z", "birthday": "2021-01-01T00:00:00Z", "hire_date": "2021-01-01T00:00.000Z", "start_date": "2021-01-01T00:00.000Z", "tenure": 2, "work_anniversary": "2021-01-01T00:00:00Z", "employment_type": {"value": "permanent", "source_value": "Permanent"}, "termination_date": "2021-01-01T00:00:00Z", "company_name": "Example Corp", "citizenships": [{"value": "US"}, {"value": "US"}], "home_location": {"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}, "employee_id": "1687-3", "remote_employee_id": "e3cb75bf-aa84-466e-a6c1-b8322b257a48", "name": "Woolsthorpe Manor", "phone_number": "+44 1476 860 364", "street_1": "Water Lane", "street_2": "Woolsthorpe by Colsterworth", "city": "Grantham", "state": "Lincolnshire", "zip_code": "NG33 5NR", "country": {"value": "US"}, "location_type": {"value": "home", "source_value": "Home"}, "created_at": "2021-01-01T01:01:01.000Z", "updated_at": "2021-01-01T01:01:01.000Z"}, "work_location": {"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}, "employee_id": "1687-3", "remote_employee_id": "e3cb75bf-aa84-466e-a6c1-b8322b257a48", "name": "Woolsthorpe Manor", "phone_number": "+44 1476 860 364", "street_1": "Water Lane", "street_2": "Woolsthorpe by Colsterworth", "city": "Grantham", "state": "Lincolnshire", "zip_code": "NG33 5NR", "country": {"value": "US"}, "location_type": {"value": "home", "source_value": "Home"}, "created_at": "2021-01-01T01:01:01.000Z", "updated_at": "2021-01-01T01:01:01.000Z"}, "company": {"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}, "name": "StackOne Technologies PLC", "display_name": "StackOne", "created_at": "2023-02-23T00:00:00.000Z", "updated_at": "2024-02-23T00:00:00.000Z"}, "employments": [{"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}, "employee_id": "1687-3", "remote_employee_id": "e3cb75bf-aa84-466e-a6c1-b8322b257a48", "job_title": "Software Engineer", "pay_rate": "40.00", "pay_period": {"value": "hour", "source_value": "Hour"}, "pay_frequency": {"value": "hourly", "source_value": "Hourly"}, "pay_currency": "USD", "effective_date": "2021-01-01T01:01:01.000Z", "employment_type": {"value": "permanent", "source_value": "Permanent"}, "created_at": "2021-01-01T01:01:01.000Z", "updated_at": "2021-01-01T01:01:01.000Z"}, {"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}, "employee_id": "1687-3", "remote_employee_id": "e3cb75bf-aa84-466e-a6c1-b8322b257a48", "job_title": "Software Engineer", "pay_rate": "40.00", "pay_period": {"value": "hour", "source_value": "Hour"}, "pay_frequency": {"value": "hourly", "source_value": "Hourly"}, "pay_currency": "USD", "effective_date": "2021-01-01T01:01:01.000Z", "employment_type": {"value": "permanent", "source_value": "Permanent"}, "created_at": "2021-01-01T01:01:01.000Z", "updated_at": "2021-01-01T01:01:01.000Z"}], "custom_fields": [], "benefits": [{"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "name": "Health Insurance", "provider": "Aetna", "description": "Health insurance for employees", "created_at": "2021-01-01T00:00:00Z", "updated_at": "2021-01-01T00:00:00Z"}], "employee_number": "125", "national_identity_number": {"value": "123456789", "type": {"value": "ssn"}}, "created_at": "2021-01-01T01:01:01.000Z", "updated_at": "2021-01-01T01:01:01.000Z"}} + application/json: {"data": {"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}, "first_name": "Issac", "last_name": "Newton", "name": "Issac Newton", "display_name": "Sir Issac Newton", "avatar_url": "https://example.com/avatar.png", "personal_email": "isaac.newton@example.com", "personal_phone_number": "+1234567890", "work_email": "newton@example.com", "work_phone_number": "+1234567890", "job_id": "5290", "job_title": "Physicist", "job_description": {"text": "Testing the laws of motion"}, "department_id": "3093", "department": "Physics", "groups": [{"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}, "name": "Engineering", "parent_ids": ["cxIQNjUyNDM0", "cxIQNjQzNzI0MQ"], "remote_parent_ids": ["652434", "6437241"], "owner_ids": ["cxIQNjUyEDM0", "cxIQNjQzNzA0MQ"], "remote_owner_ids": ["475364", "4327652"], "type": {"value": "team"}}, {"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}, "name": "Engineering", "parent_ids": ["cxIQNjUyNDM0", "cxIQNjQzNzI0MQ"], "remote_parent_ids": ["652434", "6437241"], "owner_ids": ["cxIQNjUyEDM0", "cxIQNjQzNzA0MQ"], "remote_owner_ids": ["475364", "4327652"], "type": {"value": "team"}}], "cost_centers": [], "manager_id": "67890", "remote_manager_id": "e3cb75bf-aa84-466e-a6c1-b8322b257a48", "preferred_language": {"value": "eng"}, "date_of_birth": "1990-01-01T00:00.000Z", "birthday": "2021-01-01T00:00:00Z", "hire_date": "2021-01-01T00:00.000Z", "start_date": "2021-01-01T00:00.000Z", "tenure": 2, "work_anniversary": "2021-01-01T00:00:00Z", "employment_type": {"value": "permanent", "source_value": "Permanent"}, "termination_date": "2021-01-01T00:00:00Z", "company_name": "Example Corp", "citizenships": [{"value": "US"}, {"value": "US"}], "home_location": {"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}, "employee_id": "1687-3", "remote_employee_id": "e3cb75bf-aa84-466e-a6c1-b8322b257a48", "name": "Woolsthorpe Manor", "phone_number": "+44 1476 860 364", "street_1": "Water Lane", "street_2": "Woolsthorpe by Colsterworth", "city": "Grantham", "state": "Lincolnshire", "zip_code": "NG33 5NR", "country": {"value": "US"}, "location_type": {"value": "home", "source_value": "Home"}, "created_at": "2021-01-01T01:01:01.000Z", "updated_at": "2021-01-01T01:01:01.000Z"}, "work_location": {"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}, "employee_id": "1687-3", "remote_employee_id": "e3cb75bf-aa84-466e-a6c1-b8322b257a48", "name": "Woolsthorpe Manor", "phone_number": "+44 1476 860 364", "street_1": "Water Lane", "street_2": "Woolsthorpe by Colsterworth", "city": "Grantham", "state": "Lincolnshire", "zip_code": "NG33 5NR", "country": {"value": "US"}, "location_type": {"value": "home", "source_value": "Home"}, "created_at": "2021-01-01T01:01:01.000Z", "updated_at": "2021-01-01T01:01:01.000Z"}, "company": {"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}, "name": "StackOne Technologies PLC", "display_name": "StackOne", "created_at": "2023-02-23T00:00:00.000Z", "updated_at": "2024-02-23T00:00:00.000Z"}, "employments": [{"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}, "employee_id": "1687-3", "remote_employee_id": "e3cb75bf-aa84-466e-a6c1-b8322b257a48", "job_title": "Software Engineer", "pay_rate": "40.00", "pay_period": {"value": "hour", "source_value": "Hour"}, "pay_frequency": {"value": "hourly", "source_value": "Hourly"}, "pay_currency": "USD", "effective_date": "2021-01-01T01:01:01.000Z", "employment_type": {"value": "permanent", "source_value": "Permanent"}, "created_at": "2021-01-01T01:01:01.000Z", "updated_at": "2021-01-01T01:01:01.000Z"}, {"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}, "employee_id": "1687-3", "remote_employee_id": "e3cb75bf-aa84-466e-a6c1-b8322b257a48", "job_title": "Software Engineer", "pay_rate": "40.00", "pay_period": {"value": "hour", "source_value": "Hour"}, "pay_frequency": {"value": "hourly", "source_value": "Hourly"}, "pay_currency": "USD", "effective_date": "2021-01-01T01:01:01.000Z", "employment_type": {"value": "permanent", "source_value": "Permanent"}, "created_at": "2021-01-01T01:01:01.000Z", "updated_at": "2021-01-01T01:01:01.000Z"}], "custom_fields": [], "benefits": [{"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "name": "Health Insurance", "provider": "Aetna", "description": "Health insurance for employees", "created_at": "2021-01-01T00:00:00Z", "updated_at": "2021-01-01T00:00:00Z"}], "employee_number": "125", "national_identity_number": {"value": "123456789", "type": {"value": "ssn"}}, "created_at": "2021-01-01T01:01:01.000Z", "updated_at": "2021-01-01T01:01:01.000Z"}} hris_update_employee: speakeasy-default-hris-update-employee: parameters: @@ -2850,7 +2873,7 @@ examples: x-account-id: "" responses: "200": - application/json: {"data": [{"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}, "type": {"value": "team"}}]} + application/json: {"data": [{"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}, "name": "Engineering", "parent_ids": ["cxIQNjUyNDM0", "cxIQNjQzNzI0MQ"], "remote_parent_ids": ["652434", "6437241"], "owner_ids": ["cxIQNjUyEDM0", "cxIQNjQzNzA0MQ"], "remote_owner_ids": ["475364", "4327652"], "type": {"value": "team"}}]} hris_list_department_groups: "": parameters: @@ -2862,7 +2885,7 @@ examples: x-account-id: "" responses: "200": - application/json: {"data": [{"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}, "type": {"value": "department"}}, {"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}, "type": {"value": "department"}}]} + application/json: {"data": [{"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}, "name": "Engineering", "parent_ids": ["cxIQNjUyNDM0", "cxIQNjQzNzI0MQ"], "remote_parent_ids": ["652434", "6437241"], "owner_ids": ["cxIQNjUyEDM0", "cxIQNjQzNzA0MQ"], "remote_owner_ids": ["475364", "4327652"], "type": {"value": "department"}}, {"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}, "name": "Engineering", "parent_ids": ["cxIQNjUyNDM0", "cxIQNjQzNzI0MQ"], "remote_parent_ids": ["652434", "6437241"], "owner_ids": ["cxIQNjUyEDM0", "cxIQNjQzNzA0MQ"], "remote_owner_ids": ["475364", "4327652"], "type": {"value": "department"}}]} hris_get_group: "": parameters: @@ -2874,7 +2897,7 @@ examples: x-account-id: "" responses: "200": - application/json: {"data": {"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}, "type": {"value": "team"}}} + application/json: {"data": {"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}, "name": "Engineering", "parent_ids": ["cxIQNjUyNDM0", "cxIQNjQzNzI0MQ"], "remote_parent_ids": ["652434", "6437241"], "owner_ids": ["cxIQNjUyEDM0", "cxIQNjQzNzA0MQ"], "remote_owner_ids": ["475364", "4327652"], "type": {"value": "team"}}} hris_get_department_group: "": parameters: @@ -2886,7 +2909,7 @@ examples: x-account-id: "" responses: "200": - application/json: {"data": {"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}, "type": {"value": "department"}}} + application/json: {"data": {"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}, "name": "Engineering", "parent_ids": ["cxIQNjUyNDM0", "cxIQNjQzNzI0MQ"], "remote_parent_ids": ["652434", "6437241"], "owner_ids": ["cxIQNjUyEDM0", "cxIQNjQzNzA0MQ"], "remote_owner_ids": ["475364", "4327652"], "type": {"value": "department"}}} hris_list_jobs: "": parameters: @@ -4384,3 +4407,27 @@ examples: responses: "200": application/json: {"data": {"id": "123456", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}, "course_id": "16873-ENG-1", "remote_course_id": "e3cb75bf-aa84-466e-a6c1-b8322b257a48", "updated_at": "2021-07-21T14:00:00.000Z", "created_at": "2021-07-21T14:00:00.000Z", "due_date": "2021-07-21T14:00:00.000Z"}} + hris_list_cost_center_groups: + "": + parameters: + query: + fields: "id,remote_id,name,type,parent_ids,remote_parent_ids,owner_ids,remote_owner_ids" + filter: {"updated_after": "2020-01-01T00:00:00.000Z"} + updated_after: "2020-01-01T00:00:00.000Z" + header: + x-account-id: "" + responses: + "200": + application/json: {"data": [{"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}, "name": "Engineering", "parent_ids": ["cxIQNjUyNDM0", "cxIQNjQzNzI0MQ"], "remote_parent_ids": ["652434", "6437241"], "owner_ids": ["cxIQNjUyEDM0", "cxIQNjQzNzA0MQ"], "remote_owner_ids": ["475364", "4327652"], "type": {"value": "team"}}, {"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}, "name": "Engineering", "parent_ids": ["cxIQNjUyNDM0", "cxIQNjQzNzI0MQ"], "remote_parent_ids": ["652434", "6437241"], "owner_ids": ["cxIQNjUyEDM0", "cxIQNjQzNzA0MQ"], "remote_owner_ids": ["475364", "4327652"], "type": {"value": "team"}}]} + hris_get_cost_center_group: + "": + parameters: + path: + id: "" + query: + fields: "id,remote_id,name,type,parent_ids,remote_parent_ids,owner_ids,remote_owner_ids" + header: + x-account-id: "" + responses: + "200": + application/json: {"data": {"id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "remote_id": "8187e5da-dc77-475e-9949-af0f1fa4e4e3", "unified_custom_fields": {"my_project_custom_field_1": "REF-1236", "my_project_custom_field_2": "some other value"}, "name": "Engineering", "parent_ids": ["cxIQNjUyNDM0", "cxIQNjQzNzI0MQ"], "remote_parent_ids": ["652434", "6437241"], "owner_ids": ["cxIQNjUyEDM0", "cxIQNjQzNzA0MQ"], "remote_owner_ids": ["475364", "4327652"], "type": {"value": "team"}}} diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 162aed2f..28c3eb48 100755 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -12,7 +12,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: false php: - version: 0.3.0 + version: 0.5.0 clientServerStatusCodesAsErrors: true flattenGlobalSecurity: true imports: diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index a7b4b186..d24aa3c3 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -8,8 +8,8 @@ sources: - latest stackone-specs: sourceNamespace: stackone-specs - sourceRevisionDigest: sha256:dcfa7008f76ade85a27c35b77665c17780b200005a6031e46a745a0a023ae59f - sourceBlobDigest: sha256:99840109f7c25226a9a524cd5f884306e2b46fd8e391ab3c7e24fba71ab96d72 + sourceRevisionDigest: sha256:adc811db53466b5d20186348c39d63a4bc3ecb7e44d9e5315cc0ec35aae0a084 + sourceBlobDigest: sha256:da183657d2f9502f7c95b3e7e8711f79bb32b5e05d3d39282b65691a41871b9d tags: - latest - main @@ -17,8 +17,8 @@ targets: stack-one: source: stackone-specs sourceNamespace: stackone-specs - sourceRevisionDigest: sha256:dcfa7008f76ade85a27c35b77665c17780b200005a6031e46a745a0a023ae59f - sourceBlobDigest: sha256:99840109f7c25226a9a524cd5f884306e2b46fd8e391ab3c7e24fba71ab96d72 + sourceRevisionDigest: sha256:adc811db53466b5d20186348c39d63a4bc3ecb7e44d9e5315cc0ec35aae0a084 + sourceBlobDigest: sha256:da183657d2f9502f7c95b3e7e8711f79bb32b5e05d3d39282b65691a41871b9d workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index bb7f75d1..cdf59881 100644 --- a/README.md +++ b/README.md @@ -205,8 +205,10 @@ if ($response->employeesPaginated !== null) { * [getBenefit](docs/sdks/hris/README.md#getbenefit) - Get Benefit * [listGroups](docs/sdks/hris/README.md#listgroups) - List Groups * [listDepartmentGroups](docs/sdks/hris/README.md#listdepartmentgroups) - List Department Groups +* [listCostCenterGroups](docs/sdks/hris/README.md#listcostcentergroups) - List Cost Center Groups * [getGroup](docs/sdks/hris/README.md#getgroup) - Get Group * [getDepartmentGroup](docs/sdks/hris/README.md#getdepartmentgroup) - Get Department Group +* [getCostCenterGroup](docs/sdks/hris/README.md#getcostcentergroup) - Get Cost Center Group * [listJobs](docs/sdks/hris/README.md#listjobs) - List Jobs * [getJob](docs/sdks/hris/README.md#getjob) - Get Job diff --git a/RELEASES.md b/RELEASES.md index 653a8e8f..83a8dcb4 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -18,4 +18,14 @@ Based on: ### Generated - [php v0.3.0] . ### Releases -- [Composer v0.3.0] https://packagist.org/packages/stackone/client-sdk#v0.3.0 - . \ No newline at end of file +- [Composer v0.3.0] https://packagist.org/packages/stackone/client-sdk#v0.3.0 - . + +## 2024-10-14 20:56:06 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.411.1 (2.436.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [php v0.5.0] . +### Releases +- [Composer v0.5.0] https://packagist.org/packages/stackone/client-sdk#v0.5.0 - . \ No newline at end of file diff --git a/docs/Models/Components/AtsUpdateApplicationRequestDto.md b/docs/Models/Components/AtsUpdateApplicationRequestDto.md index ad5c0961..32dfc3ce 100644 --- a/docs/Models/Components/AtsUpdateApplicationRequestDto.md +++ b/docs/Models/Components/AtsUpdateApplicationRequestDto.md @@ -3,11 +3,11 @@ ## Fields -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | -| `passthrough` | array | :heavy_minus_sign: | Value to pass through to the provider | {
"other_known_names": "John Doe"
} | -| `rejectedReasonId` | *?string* | :heavy_minus_sign: | Unique identifier of the rejection reason | f223d7f6-908b-48f0-9237-b201c307f609 | -| `customFields` | array<[Components\ApplicationCustomFields](../../Models/Components/ApplicationCustomFields.md)> | :heavy_minus_sign: | The application custom fields | | -| `applicationStatus` | [?Components\AtsUpdateApplicationRequestDtoApplicationStatus](../../Models/Components/AtsUpdateApplicationRequestDtoApplicationStatus.md) | :heavy_minus_sign: | N/A | | -| `source` | [?Components\AtsUpdateApplicationRequestDtoSource](../../Models/Components/AtsUpdateApplicationRequestDtoSource.md) | :heavy_minus_sign: | N/A | | -| `interviewStageId` | *?string* | :heavy_minus_sign: | Unique identifier of the interview stage | 18bcbb1b-3cbc-4198-a999-460861d19480 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `passthrough` | array | :heavy_minus_sign: | Value to pass through to the provider | {
"other_known_names": "John Doe"
} | +| ~~`rejectedReasonId`~~ | *?string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Unique identifier of the rejection reason | f223d7f6-908b-48f0-9237-b201c307f609 | +| `customFields` | array<[Components\ApplicationCustomFields](../../Models/Components/ApplicationCustomFields.md)> | :heavy_minus_sign: | The application custom fields | | +| `applicationStatus` | [?Components\AtsUpdateApplicationRequestDtoApplicationStatus](../../Models/Components/AtsUpdateApplicationRequestDtoApplicationStatus.md) | :heavy_minus_sign: | N/A | | +| `source` | [?Components\AtsUpdateApplicationRequestDtoSource](../../Models/Components/AtsUpdateApplicationRequestDtoSource.md) | :heavy_minus_sign: | N/A | | +| `interviewStageId` | *?string* | :heavy_minus_sign: | Unique identifier of the interview stage | 18bcbb1b-3cbc-4198-a999-460861d19480 | \ No newline at end of file diff --git a/docs/Models/Components/CostCenters.md b/docs/Models/Components/CostCenters.md index bab09513..35c515bd 100644 --- a/docs/Models/Components/CostCenters.md +++ b/docs/Models/Components/CostCenters.md @@ -3,7 +3,9 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------ | ------------------------ | ------------------------ | ------------------------ | ------------------------ | -| `name` | *?string* | :heavy_minus_sign: | N/A | R&D | -| `distributionPercentage` | *?float* | :heavy_minus_sign: | N/A | 100 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | +| `id` | *?string* | :heavy_minus_sign: | Unique identifier | 8187e5da-dc77-475e-9949-af0f1fa4e4e3 | +| `remoteId` | *?string* | :heavy_minus_sign: | Provider's unique identifier | 8187e5da-dc77-475e-9949-af0f1fa4e4e3 | +| `name` | *?string* | :heavy_minus_sign: | N/A | R&D | +| `distributionPercentage` | *?float* | :heavy_minus_sign: | N/A | 100 | \ No newline at end of file diff --git a/docs/Models/Components/HRISCostCenter.md b/docs/Models/Components/HRISCostCenter.md new file mode 100644 index 00000000..9d6f3935 --- /dev/null +++ b/docs/Models/Components/HRISCostCenter.md @@ -0,0 +1,16 @@ +# HRISCostCenter + + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | +| `id` | *?string* | :heavy_minus_sign: | Unique identifier | 8187e5da-dc77-475e-9949-af0f1fa4e4e3 | +| `remoteId` | *?string* | :heavy_minus_sign: | Provider's unique identifier | 8187e5da-dc77-475e-9949-af0f1fa4e4e3 | +| `unifiedCustomFields` | array | :heavy_minus_sign: | Custom Unified Fields configured in your StackOne project | {
"my_project_custom_field_1": "REF-1236",
"my_project_custom_field_2": "some other value"
} | +| `name` | *?string* | :heavy_minus_sign: | The name of the group | Engineering | +| `parentIds` | array<*string*> | :heavy_minus_sign: | The list of parent group ids of the given group | [
"cxIQNjUyNDM0",
"cxIQNjQzNzI0MQ"
] | +| `remoteParentIds` | array<*string*> | :heavy_minus_sign: | Provider's list of parent group remote ids of the given group | [
"652434",
"6437241"
] | +| `ownerIds` | array<*string*> | :heavy_minus_sign: | The list of group owner ids of the given group | [
"cxIQNjUyEDM0",
"cxIQNjQzNzA0MQ"
] | +| `remoteOwnerIds` | array<*string*> | :heavy_minus_sign: | The list of remote group owner ids of the given group | [
"475364",
"4327652"
] | +| `type` | [?Components\HRISCostCenterType](../../Models/Components/HRISCostCenterType.md) | :heavy_minus_sign: | The type of the group | | \ No newline at end of file diff --git a/docs/Models/Components/HRISCostCenterPaginated.md b/docs/Models/Components/HRISCostCenterPaginated.md new file mode 100644 index 00000000..f85ba9a8 --- /dev/null +++ b/docs/Models/Components/HRISCostCenterPaginated.md @@ -0,0 +1,11 @@ +# HRISCostCenterPaginated + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | +| `data` | array<[Components\HRISCostCenter](../../Models/Components/HRISCostCenter.md)> | :heavy_check_mark: | N/A | +| ~~`nextPage`~~ | *?string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | +| `next` | *?string* | :heavy_minus_sign: | N/A | +| `raw` | array<[Components\RawResponse](../../Models/Components/RawResponse.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Components/HRISCostCenterResult.md b/docs/Models/Components/HRISCostCenterResult.md new file mode 100644 index 00000000..e4c7aeed --- /dev/null +++ b/docs/Models/Components/HRISCostCenterResult.md @@ -0,0 +1,9 @@ +# HRISCostCenterResult + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | +| `data` | [Components\HRISCostCenter](../../Models/Components/HRISCostCenter.md) | :heavy_check_mark: | N/A | +| `raw` | array<[Components\RawResponse](../../Models/Components/RawResponse.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Components/HRISCostCenterSourceValue.md b/docs/Models/Components/HRISCostCenterSourceValue.md new file mode 100644 index 00000000..04cda5fc --- /dev/null +++ b/docs/Models/Components/HRISCostCenterSourceValue.md @@ -0,0 +1,35 @@ +# HRISCostCenterSourceValue + + +## Supported Types + +### `string` + +```php +string $value = /* values here */ +``` + +### `float` + +```php +float $value = /* values here */ +``` + +### `bool` + +```php +bool $value = /* values here */ +``` + +### `Components\HRISCostCenterSourceValue4` + +```php +Components\HRISCostCenterSourceValue4 $value = /* values here */ +``` + +### `array` + +```php +array $value = /* values here */ +``` + diff --git a/docs/Models/Components/HRISCostCenterSourceValue4.md b/docs/Models/Components/HRISCostCenterSourceValue4.md new file mode 100644 index 00000000..9b7234be --- /dev/null +++ b/docs/Models/Components/HRISCostCenterSourceValue4.md @@ -0,0 +1,7 @@ +# HRISCostCenterSourceValue4 + + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/Models/Components/HRISCostCenterType.md b/docs/Models/Components/HRISCostCenterType.md new file mode 100644 index 00000000..5cb8f4a4 --- /dev/null +++ b/docs/Models/Components/HRISCostCenterType.md @@ -0,0 +1,11 @@ +# HRISCostCenterType + +The type of the group + + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | +| `value` | [?Components\HRISCostCenterValue](../../Models/Components/HRISCostCenterValue.md) | :heavy_minus_sign: | N/A | team | +| `sourceValue` | [string\|float\|bool\|Components\HRISCostCenterSourceValue4\|array\|null](../../Models/Components/HRISCostCenterSourceValue.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/Models/Components/HRISCostCenterValue.md b/docs/Models/Components/HRISCostCenterValue.md new file mode 100644 index 00000000..4bd2b2fc --- /dev/null +++ b/docs/Models/Components/HRISCostCenterValue.md @@ -0,0 +1,14 @@ +# HRISCostCenterValue + + +## Values + +| Name | Value | +| --------------- | --------------- | +| `Workspace` | workspace | +| `Team` | team | +| `Department` | department | +| `Group` | group | +| `Organization` | organization | +| `UnmappedValue` | unmapped_value | +| `CostCenter` | cost_center | \ No newline at end of file diff --git a/docs/Models/Components/HRISDepartment.md b/docs/Models/Components/HRISDepartment.md index 327d8e6e..3e918f85 100644 --- a/docs/Models/Components/HRISDepartment.md +++ b/docs/Models/Components/HRISDepartment.md @@ -8,8 +8,9 @@ | `id` | *?string* | :heavy_minus_sign: | Unique identifier | 8187e5da-dc77-475e-9949-af0f1fa4e4e3 | | `remoteId` | *?string* | :heavy_minus_sign: | Provider's unique identifier | 8187e5da-dc77-475e-9949-af0f1fa4e4e3 | | `unifiedCustomFields` | array | :heavy_minus_sign: | Custom Unified Fields configured in your StackOne project | {
"my_project_custom_field_1": "REF-1236",
"my_project_custom_field_2": "some other value"
} | -| `name` | *?string* | :heavy_minus_sign: | The name of the group | | -| `parentIds` | array<*string*> | :heavy_minus_sign: | The list of parent group ids of the given group | | -| `remoteParentIds` | array<*string*> | :heavy_minus_sign: | Provider's list of parent group ids of the given group | | -| `ownerIds` | array<*string*> | :heavy_minus_sign: | The list of group owner ids of the given group | | +| `name` | *?string* | :heavy_minus_sign: | The name of the group | Engineering | +| `parentIds` | array<*string*> | :heavy_minus_sign: | The list of parent group ids of the given group | [
"cxIQNjUyNDM0",
"cxIQNjQzNzI0MQ"
] | +| `remoteParentIds` | array<*string*> | :heavy_minus_sign: | Provider's list of parent group remote ids of the given group | [
"652434",
"6437241"
] | +| `ownerIds` | array<*string*> | :heavy_minus_sign: | The list of group owner ids of the given group | [
"cxIQNjUyEDM0",
"cxIQNjQzNzA0MQ"
] | +| `remoteOwnerIds` | array<*string*> | :heavy_minus_sign: | The list of remote group owner ids of the given group | [
"475364",
"4327652"
] | | `type` | [?Components\HRISDepartmentType](../../Models/Components/HRISDepartmentType.md) | :heavy_minus_sign: | The type of the department group | department | \ No newline at end of file diff --git a/docs/Models/Components/HRISGroup.md b/docs/Models/Components/HRISGroup.md index 703b54b7..842dbbe0 100644 --- a/docs/Models/Components/HRISGroup.md +++ b/docs/Models/Components/HRISGroup.md @@ -8,8 +8,9 @@ | `id` | *?string* | :heavy_minus_sign: | Unique identifier | 8187e5da-dc77-475e-9949-af0f1fa4e4e3 | | `remoteId` | *?string* | :heavy_minus_sign: | Provider's unique identifier | 8187e5da-dc77-475e-9949-af0f1fa4e4e3 | | `unifiedCustomFields` | array | :heavy_minus_sign: | Custom Unified Fields configured in your StackOne project | {
"my_project_custom_field_1": "REF-1236",
"my_project_custom_field_2": "some other value"
} | -| `name` | *?string* | :heavy_minus_sign: | The name of the group | | -| `parentIds` | array<*string*> | :heavy_minus_sign: | The list of parent group ids of the given group | | -| `remoteParentIds` | array<*string*> | :heavy_minus_sign: | Provider's list of parent group ids of the given group | | -| `ownerIds` | array<*string*> | :heavy_minus_sign: | The list of group owner ids of the given group | | +| `name` | *?string* | :heavy_minus_sign: | The name of the group | Engineering | +| `parentIds` | array<*string*> | :heavy_minus_sign: | The list of parent group ids of the given group | [
"cxIQNjUyNDM0",
"cxIQNjQzNzI0MQ"
] | +| `remoteParentIds` | array<*string*> | :heavy_minus_sign: | Provider's list of parent group remote ids of the given group | [
"652434",
"6437241"
] | +| `ownerIds` | array<*string*> | :heavy_minus_sign: | The list of group owner ids of the given group | [
"cxIQNjUyEDM0",
"cxIQNjQzNzA0MQ"
] | +| `remoteOwnerIds` | array<*string*> | :heavy_minus_sign: | The list of remote group owner ids of the given group | [
"475364",
"4327652"
] | | `type` | [?Components\Type](../../Models/Components/Type.md) | :heavy_minus_sign: | The type of the group | | \ No newline at end of file diff --git a/docs/Models/Components/HRISGroupValue.md b/docs/Models/Components/HRISGroupValue.md index 87dd77b6..659c9b4f 100644 --- a/docs/Models/Components/HRISGroupValue.md +++ b/docs/Models/Components/HRISGroupValue.md @@ -10,4 +10,5 @@ | `Department` | department | | `Group` | group | | `Organization` | organization | -| `UnmappedValue` | unmapped_value | \ No newline at end of file +| `UnmappedValue` | unmapped_value | +| `CostCenter` | cost_center | \ No newline at end of file diff --git a/docs/Models/Components/IamGroupValue.md b/docs/Models/Components/IamGroupValue.md index 352ce563..03ed83d1 100644 --- a/docs/Models/Components/IamGroupValue.md +++ b/docs/Models/Components/IamGroupValue.md @@ -10,4 +10,5 @@ | `Department` | department | | `Group` | group | | `Organization` | organization | -| `UnmappedValue` | unmapped_value | \ No newline at end of file +| `UnmappedValue` | unmapped_value | +| `CostCenter` | cost_center | \ No newline at end of file diff --git a/docs/Models/Operations/HrisGetCostCenterGroupRequest.md b/docs/Models/Operations/HrisGetCostCenterGroupRequest.md new file mode 100644 index 00000000..5aac7e09 --- /dev/null +++ b/docs/Models/Operations/HrisGetCostCenterGroupRequest.md @@ -0,0 +1,12 @@ +# HrisGetCostCenterGroupRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | +| `xAccountId` | *string* | :heavy_check_mark: | The account identifier | | +| `id` | *string* | :heavy_check_mark: | N/A | | +| `raw` | *?bool* | :heavy_minus_sign: | Indicates that the raw request result is returned | | +| `proxy` | array | :heavy_minus_sign: | Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key | | +| `fields` | *?string* | :heavy_minus_sign: | The comma separated list of fields that will be returned in the response (if empty, all fields are returned) | id,remote_id,name,type,parent_ids,remote_parent_ids,owner_ids,remote_owner_ids | \ No newline at end of file diff --git a/docs/Models/Operations/HrisGetCostCenterGroupResponse.md b/docs/Models/Operations/HrisGetCostCenterGroupResponse.md new file mode 100644 index 00000000..4637cc6e --- /dev/null +++ b/docs/Models/Operations/HrisGetCostCenterGroupResponse.md @@ -0,0 +1,11 @@ +# HrisGetCostCenterGroupResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `hrisCostCenterResult` | [?Components\HRISCostCenterResult](../../Models/Components/HRISCostCenterResult.md) | :heavy_minus_sign: | The cost center group with the given identifier was retrieved. | \ No newline at end of file diff --git a/docs/Models/Operations/HrisListCostCenterGroupsQueryParamFilter.md b/docs/Models/Operations/HrisListCostCenterGroupsQueryParamFilter.md new file mode 100644 index 00000000..85e9af1d --- /dev/null +++ b/docs/Models/Operations/HrisListCostCenterGroupsQueryParamFilter.md @@ -0,0 +1,10 @@ +# HrisListCostCenterGroupsQueryParamFilter + +Filter parameters that allow greater customisation of the list response + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | +| `updatedAfter` | *?string* | :heavy_minus_sign: | Use a string with a date to only select results updated after that given date | 2020-01-01T00:00:00.000Z | \ No newline at end of file diff --git a/docs/Models/Operations/HrisListCostCenterGroupsRequest.md b/docs/Models/Operations/HrisListCostCenterGroupsRequest.md new file mode 100644 index 00000000..9580a25c --- /dev/null +++ b/docs/Models/Operations/HrisListCostCenterGroupsRequest.md @@ -0,0 +1,16 @@ +# HrisListCostCenterGroupsRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `xAccountId` | *string* | :heavy_check_mark: | The account identifier | | +| `raw` | *?bool* | :heavy_minus_sign: | Indicates that the raw request result is returned | | +| `proxy` | array | :heavy_minus_sign: | Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key | | +| `fields` | *?string* | :heavy_minus_sign: | The comma separated list of fields that will be returned in the response (if empty, all fields are returned) | id,remote_id,name,type,parent_ids,remote_parent_ids,owner_ids,remote_owner_ids | +| `filter` | [?Operations\HrisListCostCenterGroupsQueryParamFilter](../../Models/Operations/HrisListCostCenterGroupsQueryParamFilter.md) | :heavy_minus_sign: | Filter parameters that allow greater customisation of the list response | | +| ~~`page`~~ | *?string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

The page number of the results to fetch | | +| `pageSize` | *?string* | :heavy_minus_sign: | The number of results per page | | +| `next` | *?string* | :heavy_minus_sign: | The unified cursor | | +| ~~`updatedAfter`~~ | *?string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Use a string with a date to only select results updated after that given date | 2020-01-01T00:00:00.000Z | \ No newline at end of file diff --git a/docs/Models/Operations/HrisListCostCenterGroupsResponse.md b/docs/Models/Operations/HrisListCostCenterGroupsResponse.md new file mode 100644 index 00000000..0963b433 --- /dev/null +++ b/docs/Models/Operations/HrisListCostCenterGroupsResponse.md @@ -0,0 +1,11 @@ +# HrisListCostCenterGroupsResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `hrisCostCenterPaginated` | [?Components\HRISCostCenterPaginated](../../Models/Components/HRISCostCenterPaginated.md) | :heavy_minus_sign: | The list of cost center groups was retrieved. | \ No newline at end of file diff --git a/docs/sdks/ats/README.md b/docs/sdks/ats/README.md index a09a7ff5..7c69dab1 100644 --- a/docs/sdks/ats/README.md +++ b/docs/sdks/ats/README.md @@ -317,7 +317,6 @@ $atsUpdateApplicationRequestDto = new Components\AtsUpdateApplicationRequestDto( passthrough: [ 'other_known_names' => 'John Doe', ], - rejectedReasonId: 'f223d7f6-908b-48f0-9237-b201c307f609', customFields: [ new Components\ApplicationCustomFields( id: '8187e5da-dc77-475e-9949-af0f1fa4e4e3', diff --git a/docs/sdks/hris/README.md b/docs/sdks/hris/README.md index 442b40b3..880d9685 100644 --- a/docs/sdks/hris/README.md +++ b/docs/sdks/hris/README.md @@ -39,8 +39,10 @@ * [getBenefit](#getbenefit) - Get Benefit * [listGroups](#listgroups) - List Groups * [listDepartmentGroups](#listdepartmentgroups) - List Department Groups +* [listCostCenterGroups](#listcostcentergroups) - List Cost Center Groups * [getGroup](#getgroup) - Get Group * [getDepartmentGroup](#getdepartmentgroup) - Get Department Group +* [getCostCenterGroup](#getcostcentergroup) - Get Cost Center Group * [listJobs](#listjobs) - List Jobs * [getJob](#getjob) - Get Job @@ -2279,6 +2281,61 @@ if ($response->hrisDepartmentsPaginated !== null) { | ------------------- | ------------------- | ------------------- | | Errors\SDKException | 4XX, 5XX | \*/\* | +## listCostCenterGroups + +List Cost Center Groups + +### Example Usage + +```php +declare(strict_types=1); + +require 'vendor/autoload.php'; + +use StackOne\client; +use StackOne\client\Models\Components; +use StackOne\client\Models\Operations; + +$security = new Components\Security( + username: '', + password: '', +); + +$sdk = client\StackOne::builder()->setSecurity($security)->build(); + +$request = new Operations\HrisListCostCenterGroupsRequest( + xAccountId: '', + fields: 'id,remote_id,name,type,parent_ids,remote_parent_ids,owner_ids,remote_owner_ids', + filter: new Operations\HrisListCostCenterGroupsQueryParamFilter( + updatedAfter: '2020-01-01T00:00:00.000Z', + ), +); + +$response = $sdk->hris->listCostCenterGroups( + request: $request +); + +if ($response->hrisCostCenterPaginated !== null) { + // handle response +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | +| `$request` | [Operations\HrisListCostCenterGroupsRequest](../../Models/Operations/HrisListCostCenterGroupsRequest.md) | :heavy_check_mark: | The request object to use for the request. | + +### Response + +**[?Operations\HrisListCostCenterGroupsResponse](../../Models/Operations/HrisListCostCenterGroupsResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| ------------------- | ------------------- | ------------------- | +| Errors\SDKException | 4XX, 5XX | \*/\* | + ## getGroup Get Group @@ -2385,6 +2442,59 @@ if ($response->hrisDepartmentsResult !== null) { | ------------------- | ------------------- | ------------------- | | Errors\SDKException | 4XX, 5XX | \*/\* | +## getCostCenterGroup + +Get Cost Center Group + +### Example Usage + +```php +declare(strict_types=1); + +require 'vendor/autoload.php'; + +use StackOne\client; +use StackOne\client\Models\Components; +use StackOne\client\Models\Operations; + +$security = new Components\Security( + username: '', + password: '', +); + +$sdk = client\StackOne::builder()->setSecurity($security)->build(); + +$request = new Operations\HrisGetCostCenterGroupRequest( + xAccountId: '', + id: '', + fields: 'id,remote_id,name,type,parent_ids,remote_parent_ids,owner_ids,remote_owner_ids', +); + +$response = $sdk->hris->getCostCenterGroup( + request: $request +); + +if ($response->hrisCostCenterResult !== null) { + // handle response +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | +| `$request` | [Operations\HrisGetCostCenterGroupRequest](../../Models/Operations/HrisGetCostCenterGroupRequest.md) | :heavy_check_mark: | The request object to use for the request. | + +### Response + +**[?Operations\HrisGetCostCenterGroupResponse](../../Models/Operations/HrisGetCostCenterGroupResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| ------------------- | ------------------- | ------------------- | +| Errors\SDKException | 4XX, 5XX | \*/\* | + ## listJobs List Jobs diff --git a/src/Hris.php b/src/Hris.php index e7c36b85..47b9119f 100644 --- a/src/Hris.php +++ b/src/Hris.php @@ -1771,6 +1771,54 @@ public function listDepartmentGroups( } } + /** + * List Cost Center Groups + * + * @param Operations\HrisListCostCenterGroupsRequest $request + * @return Operations\HrisListCostCenterGroupsResponse + * @throws \StackOne\client\Models\Errors\SDKException + */ + public function listCostCenterGroups( + ?Operations\HrisListCostCenterGroupsRequest $request, + ): Operations\HrisListCostCenterGroupsResponse { + $baseUrl = $this->sdkConfiguration->getServerUrl(); + $url = Utils\Utils::generateUrl($baseUrl, '/unified/hris/groups/cost_centers'); + $options = ['http_errors' => false]; + $options = array_merge_recursive($options, Utils\Utils::getQueryParams(Operations\HrisListCostCenterGroupsRequest::class, $request)); + $options = array_merge_recursive($options, Utils\Utils::getHeaders($request)); + if (! array_key_exists('headers', $options)) { + $options['headers'] = []; + } + $options['headers']['Accept'] = 'application/json'; + $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); + + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); + $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; + + $statusCode = $httpResponse->getStatusCode(); + if ($statusCode == 200) { + if (Utils\Utils::matchContentType($contentType, 'application/json')) { + $serializer = Utils\JSON::createSerializer(); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\StackOne\client\Models\Components\HRISCostCenterPaginated', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $response = new Operations\HrisListCostCenterGroupsResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse, + hrisCostCenterPaginated: $obj); + + return $response; + } else { + throw new \StackOne\client\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } elseif ($statusCode == 400 || $statusCode == 403 || $statusCode == 412 || $statusCode == 429 || $statusCode >= 400 && $statusCode < 500 || $statusCode == 500 || $statusCode == 501 || $statusCode >= 500 && $statusCode < 600) { + throw new \StackOne\client\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } else { + throw new \StackOne\client\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } + /** * Get Group * @@ -1867,6 +1915,54 @@ public function getDepartmentGroup( } } + /** + * Get Cost Center Group + * + * @param Operations\HrisGetCostCenterGroupRequest $request + * @return Operations\HrisGetCostCenterGroupResponse + * @throws \StackOne\client\Models\Errors\SDKException + */ + public function getCostCenterGroup( + ?Operations\HrisGetCostCenterGroupRequest $request, + ): Operations\HrisGetCostCenterGroupResponse { + $baseUrl = $this->sdkConfiguration->getServerUrl(); + $url = Utils\Utils::generateUrl($baseUrl, '/unified/hris/groups/cost_centers/{id}', Operations\HrisGetCostCenterGroupRequest::class, $request); + $options = ['http_errors' => false]; + $options = array_merge_recursive($options, Utils\Utils::getQueryParams(Operations\HrisGetCostCenterGroupRequest::class, $request)); + $options = array_merge_recursive($options, Utils\Utils::getHeaders($request)); + if (! array_key_exists('headers', $options)) { + $options['headers'] = []; + } + $options['headers']['Accept'] = 'application/json'; + $options['headers']['user-agent'] = $this->sdkConfiguration->userAgent; + $httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url); + + + $httpResponse = $this->sdkConfiguration->securityClient->send($httpRequest, $options); + $contentType = $httpResponse->getHeader('Content-Type')[0] ?? ''; + + $statusCode = $httpResponse->getStatusCode(); + if ($statusCode == 200) { + if (Utils\Utils::matchContentType($contentType, 'application/json')) { + $serializer = Utils\JSON::createSerializer(); + $obj = $serializer->deserialize((string) $httpResponse->getBody(), '\StackOne\client\Models\Components\HRISCostCenterResult', 'json', DeserializationContext::create()->setRequireAllRequiredProperties(true)); + $response = new Operations\HrisGetCostCenterGroupResponse( + statusCode: $statusCode, + contentType: $contentType, + rawResponse: $httpResponse, + hrisCostCenterResult: $obj); + + return $response; + } else { + throw new \StackOne\client\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } elseif ($statusCode == 400 || $statusCode == 403 || $statusCode == 412 || $statusCode == 429 || $statusCode >= 400 && $statusCode < 500 || $statusCode == 500 || $statusCode == 501 || $statusCode >= 500 && $statusCode < 600) { + throw new \StackOne\client\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } else { + throw new \StackOne\client\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse); + } + } + /** * List Jobs * diff --git a/src/Models/Components/AtsUpdateApplicationRequestDto.php b/src/Models/Components/AtsUpdateApplicationRequestDto.php index 73550bb8..9f9e0aac 100644 --- a/src/Models/Components/AtsUpdateApplicationRequestDto.php +++ b/src/Models/Components/AtsUpdateApplicationRequestDto.php @@ -25,6 +25,7 @@ class AtsUpdateApplicationRequestDto * Unique identifier of the rejection reason * * @var ?string $rejectedReasonId + * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ #[\JMS\Serializer\Annotation\SerializedName('rejected_reason_id')] #[\JMS\Serializer\Annotation\SkipWhenNull] diff --git a/src/Models/Components/CostCenters.php b/src/Models/Components/CostCenters.php index 973e7d61..61b07e0d 100644 --- a/src/Models/Components/CostCenters.php +++ b/src/Models/Components/CostCenters.php @@ -11,6 +11,24 @@ class CostCenters { + /** + * Unique identifier + * + * @var ?string $id + */ + #[\JMS\Serializer\Annotation\SerializedName('id')] + #[\JMS\Serializer\Annotation\SkipWhenNull] + public ?string $id = null; + + /** + * Provider's unique identifier + * + * @var ?string $remoteId + */ + #[\JMS\Serializer\Annotation\SerializedName('remote_id')] + #[\JMS\Serializer\Annotation\SkipWhenNull] + public ?string $remoteId = null; + /** * * @var ?string $name @@ -28,11 +46,15 @@ class CostCenters public ?float $distributionPercentage = null; /** + * @param ?string $id + * @param ?string $remoteId * @param ?string $name * @param ?float $distributionPercentage */ - public function __construct(?string $name = null, ?float $distributionPercentage = null) + public function __construct(?string $id = null, ?string $remoteId = null, ?string $name = null, ?float $distributionPercentage = null) { + $this->id = $id; + $this->remoteId = $remoteId; $this->name = $name; $this->distributionPercentage = $distributionPercentage; } diff --git a/src/Models/Components/HRISCostCenter.php b/src/Models/Components/HRISCostCenter.php new file mode 100644 index 00000000..fdd290eb --- /dev/null +++ b/src/Models/Components/HRISCostCenter.php @@ -0,0 +1,124 @@ + $unifiedCustomFields + */ + #[\JMS\Serializer\Annotation\SerializedName('unified_custom_fields')] + #[\JMS\Serializer\Annotation\Type('array|null')] + #[\JMS\Serializer\Annotation\SkipWhenNull] + public ?array $unifiedCustomFields = null; + + /** + * The name of the group + * + * @var ?string $name + */ + #[\JMS\Serializer\Annotation\SerializedName('name')] + #[\JMS\Serializer\Annotation\SkipWhenNull] + public ?string $name = null; + + /** + * The list of parent group ids of the given group + * + * @var ?array $parentIds + */ + #[\JMS\Serializer\Annotation\SerializedName('parent_ids')] + #[\JMS\Serializer\Annotation\Type('array|null')] + #[\JMS\Serializer\Annotation\SkipWhenNull] + public ?array $parentIds = null; + + /** + * Provider's list of parent group remote ids of the given group + * + * @var ?array $remoteParentIds + */ + #[\JMS\Serializer\Annotation\SerializedName('remote_parent_ids')] + #[\JMS\Serializer\Annotation\Type('array|null')] + #[\JMS\Serializer\Annotation\SkipWhenNull] + public ?array $remoteParentIds = null; + + /** + * The list of group owner ids of the given group + * + * @var ?array $ownerIds + */ + #[\JMS\Serializer\Annotation\SerializedName('owner_ids')] + #[\JMS\Serializer\Annotation\Type('array|null')] + #[\JMS\Serializer\Annotation\SkipWhenNull] + public ?array $ownerIds = null; + + /** + * The list of remote group owner ids of the given group + * + * @var ?array $remoteOwnerIds + */ + #[\JMS\Serializer\Annotation\SerializedName('remote_owner_ids')] + #[\JMS\Serializer\Annotation\Type('array|null')] + #[\JMS\Serializer\Annotation\SkipWhenNull] + public ?array $remoteOwnerIds = null; + + /** + * The type of the group + * + * @var ?HRISCostCenterType $type + */ + #[\JMS\Serializer\Annotation\SerializedName('type')] + #[\JMS\Serializer\Annotation\Type('\StackOne\client\Models\Components\HRISCostCenterType|null')] + #[\JMS\Serializer\Annotation\SkipWhenNull] + public ?HRISCostCenterType $type = null; + + /** + * @param ?string $id + * @param ?string $remoteId + * @param ?array $unifiedCustomFields + * @param ?string $name + * @param ?array $parentIds + * @param ?array $remoteParentIds + * @param ?array $ownerIds + * @param ?array $remoteOwnerIds + * @param ?HRISCostCenterType $type + */ + public function __construct(?string $id = null, ?string $remoteId = null, ?array $unifiedCustomFields = null, ?string $name = null, ?array $parentIds = null, ?array $remoteParentIds = null, ?array $ownerIds = null, ?array $remoteOwnerIds = null, ?HRISCostCenterType $type = null) + { + $this->id = $id; + $this->remoteId = $remoteId; + $this->unifiedCustomFields = $unifiedCustomFields; + $this->name = $name; + $this->parentIds = $parentIds; + $this->remoteParentIds = $remoteParentIds; + $this->ownerIds = $ownerIds; + $this->remoteOwnerIds = $remoteOwnerIds; + $this->type = $type; + } +} \ No newline at end of file diff --git a/src/Models/Components/HRISCostCenterPaginated.php b/src/Models/Components/HRISCostCenterPaginated.php new file mode 100644 index 00000000..8b3803d4 --- /dev/null +++ b/src/Models/Components/HRISCostCenterPaginated.php @@ -0,0 +1,63 @@ + $data + */ + #[\JMS\Serializer\Annotation\SerializedName('data')] + #[\JMS\Serializer\Annotation\Type('array<\StackOne\client\Models\Components\HRISCostCenter>')] + public array $data; + + /** + * $raw + * + * @var ?array $raw + */ + #[\JMS\Serializer\Annotation\SerializedName('raw')] + #[\JMS\Serializer\Annotation\Type('array<\StackOne\client\Models\Components\RawResponse>|null')] + #[\JMS\Serializer\Annotation\SkipWhenNull] + public ?array $raw = null; + + /** + * @param array $data + * @param ?string $nextPage + * @param ?string $next + * @param ?array $raw + */ + public function __construct(array $data, ?string $nextPage = null, ?string $next = null, ?array $raw = null) + { + $this->data = $data; + $this->nextPage = $nextPage; + $this->next = $next; + $this->raw = $raw; + } +} \ No newline at end of file diff --git a/src/Models/Components/HRISCostCenterResult.php b/src/Models/Components/HRISCostCenterResult.php new file mode 100644 index 00000000..c52205be --- /dev/null +++ b/src/Models/Components/HRISCostCenterResult.php @@ -0,0 +1,41 @@ + $raw + */ + #[\JMS\Serializer\Annotation\SerializedName('raw')] + #[\JMS\Serializer\Annotation\Type('array<\StackOne\client\Models\Components\RawResponse>|null')] + #[\JMS\Serializer\Annotation\SkipWhenNull] + public ?array $raw = null; + + /** + * @param HRISCostCenter $data + * @param ?array $raw + */ + public function __construct(HRISCostCenter $data, ?array $raw = null) + { + $this->data = $data; + $this->raw = $raw; + } +} \ No newline at end of file diff --git a/src/Models/Components/HRISCostCenterSourceValue4.php b/src/Models/Components/HRISCostCenterSourceValue4.php new file mode 100644 index 00000000..dee933c1 --- /dev/null +++ b/src/Models/Components/HRISCostCenterSourceValue4.php @@ -0,0 +1,18 @@ +|null $sourceValue + */ + #[\JMS\Serializer\Annotation\SerializedName('source_value')] + #[\JMS\Serializer\Annotation\Type('string|float|bool|\StackOne\client\Models\Components\HRISCostCenterSourceValue4|array')] + #[\JMS\Serializer\Annotation\SkipWhenNull] + public string|float|bool|HRISCostCenterSourceValue4|array|null $sourceValue = null; + + /** + * @param ?HRISCostCenterValue $value + * @param string|float|bool|HRISCostCenterSourceValue4|array|null $sourceValue + */ + public function __construct(?HRISCostCenterValue $value = null, string|float|bool|HRISCostCenterSourceValue4|array|null $sourceValue = null) + { + $this->value = $value; + $this->sourceValue = $sourceValue; + } +} \ No newline at end of file diff --git a/src/Models/Components/HRISCostCenterValue.php b/src/Models/Components/HRISCostCenterValue.php new file mode 100644 index 00000000..d0c73050 --- /dev/null +++ b/src/Models/Components/HRISCostCenterValue.php @@ -0,0 +1,21 @@ + $remoteParentIds */ @@ -78,6 +78,16 @@ class HRISDepartment #[\JMS\Serializer\Annotation\SkipWhenNull] public ?array $ownerIds = null; + /** + * The list of remote group owner ids of the given group + * + * @var ?array $remoteOwnerIds + */ + #[\JMS\Serializer\Annotation\SerializedName('remote_owner_ids')] + #[\JMS\Serializer\Annotation\Type('array|null')] + #[\JMS\Serializer\Annotation\SkipWhenNull] + public ?array $remoteOwnerIds = null; + /** * The type of the department group * @@ -96,9 +106,10 @@ class HRISDepartment * @param ?array $parentIds * @param ?array $remoteParentIds * @param ?array $ownerIds + * @param ?array $remoteOwnerIds * @param ?HRISDepartmentType $type */ - public function __construct(?string $id = null, ?string $remoteId = null, ?array $unifiedCustomFields = null, ?string $name = null, ?array $parentIds = null, ?array $remoteParentIds = null, ?array $ownerIds = null, ?HRISDepartmentType $type = null) + public function __construct(?string $id = null, ?string $remoteId = null, ?array $unifiedCustomFields = null, ?string $name = null, ?array $parentIds = null, ?array $remoteParentIds = null, ?array $ownerIds = null, ?array $remoteOwnerIds = null, ?HRISDepartmentType $type = null) { $this->id = $id; $this->remoteId = $remoteId; @@ -107,6 +118,7 @@ public function __construct(?string $id = null, ?string $remoteId = null, ?array $this->parentIds = $parentIds; $this->remoteParentIds = $remoteParentIds; $this->ownerIds = $ownerIds; + $this->remoteOwnerIds = $remoteOwnerIds; $this->type = $type; } } \ No newline at end of file diff --git a/src/Models/Components/HRISGroup.php b/src/Models/Components/HRISGroup.php index 691d4bb9..c2653d90 100644 --- a/src/Models/Components/HRISGroup.php +++ b/src/Models/Components/HRISGroup.php @@ -59,7 +59,7 @@ class HRISGroup public ?array $parentIds = null; /** - * Provider's list of parent group ids of the given group + * Provider's list of parent group remote ids of the given group * * @var ?array $remoteParentIds */ @@ -78,6 +78,16 @@ class HRISGroup #[\JMS\Serializer\Annotation\SkipWhenNull] public ?array $ownerIds = null; + /** + * The list of remote group owner ids of the given group + * + * @var ?array $remoteOwnerIds + */ + #[\JMS\Serializer\Annotation\SerializedName('remote_owner_ids')] + #[\JMS\Serializer\Annotation\Type('array|null')] + #[\JMS\Serializer\Annotation\SkipWhenNull] + public ?array $remoteOwnerIds = null; + /** * The type of the group * @@ -96,9 +106,10 @@ class HRISGroup * @param ?array $parentIds * @param ?array $remoteParentIds * @param ?array $ownerIds + * @param ?array $remoteOwnerIds * @param ?Type $type */ - public function __construct(?string $id = null, ?string $remoteId = null, ?array $unifiedCustomFields = null, ?string $name = null, ?array $parentIds = null, ?array $remoteParentIds = null, ?array $ownerIds = null, ?Type $type = null) + public function __construct(?string $id = null, ?string $remoteId = null, ?array $unifiedCustomFields = null, ?string $name = null, ?array $parentIds = null, ?array $remoteParentIds = null, ?array $ownerIds = null, ?array $remoteOwnerIds = null, ?Type $type = null) { $this->id = $id; $this->remoteId = $remoteId; @@ -107,6 +118,7 @@ public function __construct(?string $id = null, ?string $remoteId = null, ?array $this->parentIds = $parentIds; $this->remoteParentIds = $remoteParentIds; $this->ownerIds = $ownerIds; + $this->remoteOwnerIds = $remoteOwnerIds; $this->type = $type; } } \ No newline at end of file diff --git a/src/Models/Components/HRISGroupValue.php b/src/Models/Components/HRISGroupValue.php index 4fac9044..fd4352e3 100644 --- a/src/Models/Components/HRISGroupValue.php +++ b/src/Models/Components/HRISGroupValue.php @@ -17,4 +17,5 @@ enum HRISGroupValue: string case Group = 'group'; case Organization = 'organization'; case UnmappedValue = 'unmapped_value'; + case CostCenter = 'cost_center'; } diff --git a/src/Models/Components/IamGroupValue.php b/src/Models/Components/IamGroupValue.php index 0f98f164..0d4ea5ca 100644 --- a/src/Models/Components/IamGroupValue.php +++ b/src/Models/Components/IamGroupValue.php @@ -17,4 +17,5 @@ enum IamGroupValue: string case Group = 'group'; case Organization = 'organization'; case UnmappedValue = 'unmapped_value'; + case CostCenter = 'cost_center'; } diff --git a/src/Models/Operations/HrisGetCostCenterGroupRequest.php b/src/Models/Operations/HrisGetCostCenterGroupRequest.php new file mode 100644 index 00000000..6828ea37 --- /dev/null +++ b/src/Models/Operations/HrisGetCostCenterGroupRequest.php @@ -0,0 +1,68 @@ + $proxy + */ + #[SpeakeasyMetadata('queryParam:style=deepObject,explode=true,name=proxy')] + public ?array $proxy = null; + + /** + * The comma separated list of fields that will be returned in the response (if empty, all fields are returned) + * + * @var ?string $fields + */ + #[SpeakeasyMetadata('queryParam:style=form,explode=true,name=fields')] + public ?string $fields = null; + + /** + * @param string $xAccountId + * @param string $id + * @param ?bool $raw + * @param ?array $proxy + * @param ?string $fields + */ + public function __construct(string $xAccountId, string $id, ?array $proxy = null, ?string $fields = null, ?bool $raw = false) + { + $this->xAccountId = $xAccountId; + $this->id = $id; + $this->raw = $raw; + $this->proxy = $proxy; + $this->fields = $fields; + } +} \ No newline at end of file diff --git a/src/Models/Operations/HrisGetCostCenterGroupResponse.php b/src/Models/Operations/HrisGetCostCenterGroupResponse.php new file mode 100644 index 00000000..69cbd817 --- /dev/null +++ b/src/Models/Operations/HrisGetCostCenterGroupResponse.php @@ -0,0 +1,55 @@ +contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; + $this->hrisCostCenterResult = $hrisCostCenterResult; + } +} \ No newline at end of file diff --git a/src/Models/Operations/HrisListCostCenterGroupsQueryParamFilter.php b/src/Models/Operations/HrisListCostCenterGroupsQueryParamFilter.php new file mode 100644 index 00000000..57eb29d6 --- /dev/null +++ b/src/Models/Operations/HrisListCostCenterGroupsQueryParamFilter.php @@ -0,0 +1,30 @@ +updatedAfter = $updatedAfter; + } +} \ No newline at end of file diff --git a/src/Models/Operations/HrisListCostCenterGroupsRequest.php b/src/Models/Operations/HrisListCostCenterGroupsRequest.php new file mode 100644 index 00000000..533f2c8f --- /dev/null +++ b/src/Models/Operations/HrisListCostCenterGroupsRequest.php @@ -0,0 +1,111 @@ + $proxy + */ + #[SpeakeasyMetadata('queryParam:style=deepObject,explode=true,name=proxy')] + public ?array $proxy = null; + + /** + * The comma separated list of fields that will be returned in the response (if empty, all fields are returned) + * + * @var ?string $fields + */ + #[SpeakeasyMetadata('queryParam:style=form,explode=true,name=fields')] + public ?string $fields = null; + + /** + * Filter parameters that allow greater customisation of the list response + * + * @var ?HrisListCostCenterGroupsQueryParamFilter $filter + */ + #[SpeakeasyMetadata('queryParam:style=deepObject,explode=true,name=filter')] + public ?HrisListCostCenterGroupsQueryParamFilter $filter = null; + + /** + * The page number of the results to fetch + * + * @var ?string $page + * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. + */ + #[SpeakeasyMetadata('queryParam:style=form,explode=true,name=page')] + public ?string $page = null; + + /** + * The number of results per page + * + * @var ?string $pageSize + */ + #[SpeakeasyMetadata('queryParam:style=form,explode=true,name=page_size')] + public ?string $pageSize = null; + + /** + * The unified cursor + * + * @var ?string $next + */ + #[SpeakeasyMetadata('queryParam:style=form,explode=true,name=next')] + public ?string $next = null; + + /** + * Use a string with a date to only select results updated after that given date + * + * @var ?string $updatedAfter + * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. + */ + #[SpeakeasyMetadata('queryParam:style=form,explode=true,name=updated_after')] + public ?string $updatedAfter = null; + + /** + * @param string $xAccountId + * @param ?bool $raw + * @param ?array $proxy + * @param ?string $fields + * @param ?HrisListCostCenterGroupsQueryParamFilter $filter + * @param ?string $page + * @param ?string $pageSize + * @param ?string $next + * @param ?string $updatedAfter + */ + public function __construct(string $xAccountId, ?array $proxy = null, ?string $fields = null, ?HrisListCostCenterGroupsQueryParamFilter $filter = null, ?string $page = null, ?string $next = null, ?string $updatedAfter = null, ?bool $raw = false, ?string $pageSize = '25') + { + $this->xAccountId = $xAccountId; + $this->raw = $raw; + $this->proxy = $proxy; + $this->fields = $fields; + $this->filter = $filter; + $this->page = $page; + $this->pageSize = $pageSize; + $this->next = $next; + $this->updatedAfter = $updatedAfter; + } +} \ No newline at end of file diff --git a/src/Models/Operations/HrisListCostCenterGroupsResponse.php b/src/Models/Operations/HrisListCostCenterGroupsResponse.php new file mode 100644 index 00000000..c60faf03 --- /dev/null +++ b/src/Models/Operations/HrisListCostCenterGroupsResponse.php @@ -0,0 +1,55 @@ +contentType = $contentType; + $this->statusCode = $statusCode; + $this->rawResponse = $rawResponse; + $this->hrisCostCenterPaginated = $hrisCostCenterPaginated; + } +} \ No newline at end of file diff --git a/src/SDKConfiguration.php b/src/SDKConfiguration.php index 597bf2ef..8a2053de 100644 --- a/src/SDKConfiguration.php +++ b/src/SDKConfiguration.php @@ -27,11 +27,11 @@ class SDKConfiguration public string $openapiDocVersion = '1.0.0'; - public string $sdkVersion = '0.3.0'; + public string $sdkVersion = '0.5.0'; public string $genVersion = '2.436.1'; - public string $userAgent = 'speakeasy-sdk/php 0.3.0 2.436.1 1.0.0 stackone/client-sdk'; + public string $userAgent = 'speakeasy-sdk/php 0.5.0 2.436.1 1.0.0 stackone/client-sdk'; public function getServerUrl(): string {