@@ -674,7 +674,7 @@ actions:
674674 " x-codeSamples " :
675675 - " lang " : " typescript"
676676 " label " : " hris_list_employees"
677- "source": "import { StackOne } from \"@stackone/stackone-client-ts\";\n\nconst stackOne = new StackOne({\n security: {\n username: \"\",\n password: \"\",\n },\n});\n\nasync function run() {\n const result = await stackOne.hris.listEmployees({\n fields: \"id,remote_id,first_name,last_name,name,display_name,gender,ethnicity,date_of_birth,birthday,marital_status,avatar_url,avatar,personal_email,personal_phone_number,work_email,work_phone_number,job_id,remote_job_id,job_title,job_description,department_id,remote_department_id,department,cost_centers,company,manager_id,remote_manager_id,hire_date,start_date,tenure,work_anniversary,employment_type,employment_contract_type,employment_status,termination_date,company_name,company_id,remote_company_id,preferred_language,citizenships,home_location,work_location,employments,custom_fields,documents,created_at,updated_at,benefits,employee_number,national_identity_number,national_identity_numbers,skills\",\n filter: {\n updatedAfter: new Date(\"2020-01-01T00:00:00.000Z\"),\n },\n expand: \"company,employments,work_location,home_location,groups,skills\",\n include: \"avatar_url,avatar,custom_fields,job_description,benefits\",\n xAccountId: \"<id>\",\n });\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
677+ "source": "import { StackOne } from \"@stackone/stackone-client-ts\";\n\nconst stackOne = new StackOne({\n security: {\n username: \"\",\n password: \"\",\n },\n});\n\nasync function run() {\n const result = await stackOne.hris.listEmployees({\n fields: \"id,remote_id,first_name,last_name,name,display_name,gender,ethnicity,date_of_birth,birthday,marital_status,avatar_url,avatar,personal_email,personal_phone_number,work_email,work_phone_number,job_id,remote_job_id,job_title,job_description,department_id,remote_department_id,department,cost_centers,company,manager_id,remote_manager_id,hire_date,start_date,tenure,work_anniversary,employment_type,employment_contract_type,employment_status,termination_date,company_name,company_id,remote_company_id,preferred_language,citizenships,home_location,work_location,employments,custom_fields,created_at,updated_at,benefits,employee_number,national_identity_number,national_identity_numbers,skills\",\n filter: {\n updatedAfter: new Date(\"2020-01-01T00:00:00.000Z\"),\n },\n expand: \"company,employments,work_location,home_location,groups,skills\",\n include: \"avatar_url,avatar,custom_fields,job_description,benefits\",\n xAccountId: \"<id>\",\n });\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
678678 - target : $["paths"]["/unified/hris/employees"]["post"]
679679 update :
680680 " x-codeSamples " :
@@ -686,7 +686,7 @@ actions:
686686 " x-codeSamples " :
687687 - " lang " : " typescript"
688688 " label " : " hris_get_employee"
689- "source": "import { StackOne } from \"@stackone/stackone-client-ts\";\n\nconst stackOne = new StackOne({\n security: {\n username: \"\",\n password: \"\",\n },\n});\n\nasync function run() {\n const result = await stackOne.hris.getEmployee({\n id: \"<id>\",\n fields: \"id,remote_id,first_name,last_name,name,display_name,gender,ethnicity,date_of_birth,birthday,marital_status,avatar_url,avatar,personal_email,personal_phone_number,work_email,work_phone_number,job_id,remote_job_id,job_title,job_description,department_id,remote_department_id,department,cost_centers,company,manager_id,remote_manager_id,hire_date,start_date,tenure,work_anniversary,employment_type,employment_contract_type,employment_status,termination_date,company_name,company_id,remote_company_id,preferred_language,citizenships,home_location,work_location,employments,custom_fields,documents,created_at,updated_at,benefits,employee_number,national_identity_number,national_identity_numbers,skills\",\n expand: \"company,employments,work_location,home_location,groups,skills\",\n include: \"avatar_url,avatar,custom_fields,job_description,benefits\",\n xAccountId: \"<id>\",\n });\n\n console.log(result);\n}\n\nrun();"
689+ "source": "import { StackOne } from \"@stackone/stackone-client-ts\";\n\nconst stackOne = new StackOne({\n security: {\n username: \"\",\n password: \"\",\n },\n});\n\nasync function run() {\n const result = await stackOne.hris.getEmployee({\n id: \"<id>\",\n fields: \"id,remote_id,first_name,last_name,name,display_name,gender,ethnicity,date_of_birth,birthday,marital_status,avatar_url,avatar,personal_email,personal_phone_number,work_email,work_phone_number,job_id,remote_job_id,job_title,job_description,department_id,remote_department_id,department,cost_centers,company,manager_id,remote_manager_id,hire_date,start_date,tenure,work_anniversary,employment_type,employment_contract_type,employment_status,termination_date,company_name,company_id,remote_company_id,preferred_language,citizenships,home_location,work_location,employments,custom_fields,created_at,updated_at,benefits,employee_number,national_identity_number,national_identity_numbers,skills\",\n expand: \"company,employments,work_location,home_location,groups,skills\",\n include: \"avatar_url,avatar,custom_fields,job_description,benefits\",\n xAccountId: \"<id>\",\n });\n\n console.log(result);\n}\n\nrun();"
690690 - target : $["paths"]["/unified/hris/employees/{id}"]["patch"]
691691 update :
692692 " x-codeSamples " :
0 commit comments