@@ -50,7 +50,7 @@ actions:
5050 " x-codeSamples " :
5151 - " lang " : " typescript"
5252 " label " : " stackone_create_connect_session"
53- " source " : " import { StackOne } from \" @stackone/stackone-client-ts\" ;\n import { Categories } from \" @stackone/stackone-client-ts/sdk/models/shared\" ;\n\n const stackOne = new StackOne({\n security: {\n username: \"\" ,\n password: \"\" ,\n },\n });\n\n async function run() {\n const result = await stackOne.connectSessions.createConnectSession({\n categories: [\n Categories.Ats,\n Categories.Hris,\n Categories.Ticketing,\n Categories.Crm,\n Categories.Iam,\n Categories.Marketing,\n Categories.Lms,\n Categories.Iam ,\n Categories.Documents,\n Categories.Ticketing,\n Categories.Screening,\n Categories.Messaging,\n Categories.Accounting,\n ],\n originOwnerId: \" <id>\" ,\n originOwnerName: \" <value>\" ,\n });\n\n console.log(result);\n }\n\n run();"
53+ " source " : " import { StackOne } from \" @stackone/stackone-client-ts\" ;\n import { Categories } from \" @stackone/stackone-client-ts/sdk/models/shared\" ;\n\n const stackOne = new StackOne({\n security: {\n username: \"\" ,\n password: \"\" ,\n },\n });\n\n async function run() {\n const result = await stackOne.connectSessions.createConnectSession({\n categories: [\n Categories.Ats,\n Categories.Hris,\n Categories.Ticketing,\n Categories.Crm,\n Categories.Iam,\n Categories.Marketing,\n Categories.Lms,\n Categories.Marketing ,\n Categories.Documents,\n Categories.Ticketing,\n Categories.Screening,\n Categories.Messaging,\n Categories.Accounting, \n Categories.Scheduling ,\n ],\n originOwnerId: \" <id>\" ,\n originOwnerName: \" <value>\" ,\n });\n\n console.log(result);\n }\n\n run();"
5454 - target : $["paths"]["/connect_sessions/authenticate"]["post"]
5555 update :
5656 " x-codeSamples " :
@@ -764,7 +764,7 @@ actions:
764764 " x-codeSamples " :
765765 - " lang " : " typescript"
766766 " label " : " hris_list_employees"
767- "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,title,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,bank_details,skills,unified_custom_fields\",\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,bank_details\",\n xAccountId: \"<id>\",\n });\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
767+ "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,title,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,manager,employments,custom_fields,created_at,updated_at,benefits,employee_number,national_identity_number,national_identity_numbers,bank_details,skills,unified_custom_fields\",\n filter: {\n updatedAfter: new Date(\"2020-01-01T00:00:00.000Z\"),\n },\n expand: \"company,employments,work_location,home_location,groups,skills,manager\",\n include: \"avatar_url,avatar,custom_fields,job_description,benefits,bank_details\",\n xAccountId: \"<id>\",\n });\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
768768 - target : $["paths"]["/unified/hris/employees"]["post"]
769769 update :
770770 " x-codeSamples " :
@@ -776,7 +776,7 @@ actions:
776776 " x-codeSamples " :
777777 - " lang " : " typescript"
778778 " label " : " hris_get_employee"
779- "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,title,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,bank_details,skills,unified_custom_fields\",\n expand: \"company,employments,work_location,home_location,groups,skills\",\n include: \"avatar_url,avatar,custom_fields,job_description,benefits,bank_details\",\n xAccountId: \"<id>\",\n });\n\n console.log(result);\n}\n\nrun();"
779+ "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,title,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,manager,employments,custom_fields,created_at,updated_at,benefits,employee_number,national_identity_number,national_identity_numbers,bank_details,skills,unified_custom_fields\",\n expand: \"company,employments,work_location,home_location,groups,skills,manager\",\n include: \"avatar_url,avatar,custom_fields,job_description,benefits,bank_details\",\n xAccountId: \"<id>\",\n });\n\n console.log(result);\n}\n\nrun();"
780780 - target : $["paths"]["/unified/hris/employees/{id}"]["patch"]
781781 update :
782782 " x-codeSamples " :
0 commit comments