@@ -818,7 +818,7 @@ actions:
818818 " x-codeSamples " :
819819 - " lang " : " typescript"
820820 " label " : " hris_list_employee_employments"
821- " source " : " import { StackOne } from \" @stackone/stackone-client-ts\" ;\n\n const stackOne = new StackOne({\n security: {\n username: \"\" ,\n password: \"\" ,\n },\n });\n\n async function run() {\n const result = await stackOne.hris.listEmployeeEmployments({\n id: \" <id>\" ,\n fields: \" id,remote_id,employee_id,remote_employee_id,job_title,pay_rate,pay_period,pay_frequency,pay_currency,effective_date,end_date,employment_type,employment_contract_type,type,contract_type,change_reason,grade,work_time,payroll_code,fte,created_at,updated_at,start_date,active,department,team,cost_center,cost_centers,division,job,manager\" ,\n filter: {\n updatedAfter: new Date(\" 2020-01-01T00:00:00.000Z\" ),\n },\n expand: \" groups\" ,\n xAccountId: \" <id>\" ,\n });\n\n for await (const page of result) {\n console.log(page);\n }\n }\n\n run();"
821+ " source " : " import { StackOne } from \" @stackone/stackone-client-ts\" ;\n\n const stackOne = new StackOne({\n security: {\n username: \"\" ,\n password: \"\" ,\n },\n });\n\n async function run() {\n const result = await stackOne.hris.listEmployeeEmployments({\n id: \" <id>\" ,\n fields: \" id,remote_id,employee_id,remote_employee_id,job_title,pay_rate,pay_period,pay_frequency,pay_currency,effective_date,end_date,employment_type,employment_contract_type,type,contract_type,change_reason,grade,work_time,payroll_code,fte,created_at,updated_at,start_date,active,department,team,cost_center,cost_centers,division,job,manager,groups \" ,\n filter: {\n updatedAfter: new Date(\" 2020-01-01T00:00:00.000Z\" ),\n },\n expand: \" groups\" ,\n xAccountId: \" <id>\" ,\n });\n\n for await (const page of result) {\n console.log(page);\n }\n }\n\n run();"
822822 - target : $["paths"]["/unified/hris/employees/{id}/employments"]["post"]
823823 update :
824824 " x-codeSamples " :
@@ -830,7 +830,7 @@ actions:
830830 " x-codeSamples " :
831831 - " lang " : " typescript"
832832 " label " : " hris_get_employee_employment"
833- " source " : " import { StackOne } from \" @stackone/stackone-client-ts\" ;\n\n const stackOne = new StackOne({\n security: {\n username: \"\" ,\n password: \"\" ,\n },\n });\n\n async function run() {\n const result = await stackOne.hris.getEmployeeEmployment({\n id: \" <id>\" ,\n subResourceId: \" <id>\" ,\n fields: \" id,remote_id,employee_id,remote_employee_id,job_title,pay_rate,pay_period,pay_frequency,pay_currency,effective_date,end_date,employment_type,employment_contract_type,type,contract_type,change_reason,grade,work_time,payroll_code,fte,created_at,updated_at,start_date,active,department,team,cost_center,cost_centers,division,job,manager\" ,\n expand: \" groups\" ,\n xAccountId: \" <id>\" ,\n });\n\n console.log(result);\n }\n\n run();"
833+ " source " : " import { StackOne } from \" @stackone/stackone-client-ts\" ;\n\n const stackOne = new StackOne({\n security: {\n username: \"\" ,\n password: \"\" ,\n },\n });\n\n async function run() {\n const result = await stackOne.hris.getEmployeeEmployment({\n id: \" <id>\" ,\n subResourceId: \" <id>\" ,\n fields: \" id,remote_id,employee_id,remote_employee_id,job_title,pay_rate,pay_period,pay_frequency,pay_currency,effective_date,end_date,employment_type,employment_contract_type,type,contract_type,change_reason,grade,work_time,payroll_code,fte,created_at,updated_at,start_date,active,department,team,cost_center,cost_centers,division,job,manager,groups \" ,\n expand: \" groups\" ,\n xAccountId: \" <id>\" ,\n });\n\n console.log(result);\n }\n\n run();"
834834 - target : $["paths"]["/unified/hris/employees/{id}/employments/{subResourceId}"]["patch"]
835835 update :
836836 " x-codeSamples " :
@@ -843,6 +843,18 @@ actions:
843843 - " lang " : " typescript"
844844 " label " : " hris_invite_employee"
845845 " source " : " import { StackOne } from \" @stackone/stackone-client-ts\" ;\n\n const stackOne = new StackOne({\n security: {\n username: \"\" ,\n password: \"\" ,\n },\n });\n\n async function run() {\n const result = await stackOne.hris.inviteEmployee({\n id: \" <id>\" ,\n xAccountId: \" <id>\" ,\n hrisInviteEmployeeRequestDto: {\n passthrough: {\n \" other_known_names\" : \" John Doe\" ,\n },\n },\n });\n\n console.log(result);\n }\n\n run();"
846+ - target : $["paths"]["/unified/hris/employees/{id}/shifts"]["get"]
847+ update :
848+ " x-codeSamples " :
849+ - " lang " : " typescript"
850+ " label " : " hris_list_employee_shifts"
851+ " source " : " import { StackOne } from \" @stackone/stackone-client-ts\" ;\n\n const stackOne = new StackOne({\n security: {\n username: \"\" ,\n password: \"\" ,\n },\n });\n\n async function run() {\n const result = await stackOne.hris.listEmployeeShifts({\n id: \" <id>\" ,\n filter: {\n updatedAfter: new Date(\" 2020-01-01T00:00:00.000Z\" ),\n },\n xAccountId: \" <id>\" ,\n });\n\n for await (const page of result) {\n console.log(page);\n }\n }\n\n run();"
852+ - target : $["paths"]["/unified/hris/employees/{id}/shifts/{subResourceId}"]["get"]
853+ update :
854+ " x-codeSamples " :
855+ - " lang " : " typescript"
856+ " label " : " hris_get_employee_shift"
857+ " source " : " import { StackOne } from \" @stackone/stackone-client-ts\" ;\n\n const stackOne = new StackOne({\n security: {\n username: \"\" ,\n password: \"\" ,\n },\n });\n\n async function run() {\n const result = await stackOne.hris.getEmployeeShift({\n id: \" <id>\" ,\n subResourceId: \" <id>\" ,\n xAccountId: \" <id>\" ,\n });\n\n console.log(result);\n }\n\n run();"
846858 - target : $["paths"]["/unified/hris/employees/{id}/skills"]["get"]
847859 update :
848860 " x-codeSamples " :
@@ -884,7 +896,7 @@ actions:
884896 " x-codeSamples " :
885897 - " lang " : " typescript"
886898 " label " : " hris_list_employee_time_off_requests"
887- " source " : " import { StackOne } from \" @stackone/stackone-client-ts\" ;\n\n const stackOne = new StackOne({\n security: {\n username: \"\" ,\n password: \"\" ,\n },\n });\n\n async function run() {\n const result = await stackOne.hris.listEmployeeTimeOffRequests({\n id: \" <id>\" ,\n fields: \" id,remote_id,employee_id,remote_employee_id,approver_id,remote_approver_id,status,type,start_date,end_date,start_half_day,end_half_day,time_off_policy_id,remote_time_off_policy_id,reason,comment,duration,created_at,updated_at,policy\" ,\n filter: {\n updatedAfter: new Date(\" 2020-01-01T00:00:00.000Z\" ),\n },\n expand: \" policy\" ,\n xAccountId: \" <id>\" ,\n });\n\n for await (const page of result) {\n console.log(page);\n }\n }\n\n run();"
899+ " source " : " import { StackOne } from \" @stackone/stackone-client-ts\" ;\n\n const stackOne = new StackOne({\n security: {\n username: \"\" ,\n password: \"\" ,\n },\n });\n\n async function run() {\n const result = await stackOne.hris.listEmployeeTimeOffRequests({\n id: \" <id>\" ,\n fields: \" id,remote_id,employee_id,remote_employee_id,approver_id,remote_approver_id,status,type,start_date,end_date,start_half_day,end_half_day,time_off_policy_id,remote_time_off_policy_id,reason,comment,duration,created_at,updated_at,policy\" ,\n filter: {\n updatedAfter: new Date(\" 2020-01-01T00:00:00.000Z\" ),\n startDate: new Date( \" 2020-01-01T00:00:00.000Z \" ), \n endDate: new Date( \" 2020-01-01T00:00:00.000Z \" ), \n },\n expand: \" policy\" ,\n xAccountId: \" <id>\" ,\n });\n\n for await (const page of result) {\n console.log(page);\n }\n }\n\n run();"
888900 - target : $["paths"]["/unified/hris/employees/{id}/time_off"]["post"]
889901 update :
890902 " x-codeSamples " :
@@ -956,13 +968,13 @@ actions:
956968 " x-codeSamples " :
957969 - " lang " : " typescript"
958970 " label " : " hris_list_employments"
959- " source " : " import { StackOne } from \" @stackone/stackone-client-ts\" ;\n\n const stackOne = new StackOne({\n security: {\n username: \"\" ,\n password: \"\" ,\n },\n });\n\n async function run() {\n const result = await stackOne.hris.listEmployments({\n fields: \" id,remote_id,employee_id,remote_employee_id,job_title,pay_rate,pay_period,pay_frequency,pay_currency,effective_date,end_date,employment_type,employment_contract_type,type,contract_type,change_reason,grade,work_time,payroll_code,fte,created_at,updated_at,start_date,active,department,team,cost_center,cost_centers,division,job,manager\" ,\n filter: {\n updatedAfter: new Date(\" 2020-01-01T00:00:00.000Z\" ),\n },\n expand: \" groups\" ,\n xAccountId: \" <id>\" ,\n });\n\n for await (const page of result) {\n console.log(page);\n }\n }\n\n run();"
971+ " source " : " import { StackOne } from \" @stackone/stackone-client-ts\" ;\n\n const stackOne = new StackOne({\n security: {\n username: \"\" ,\n password: \"\" ,\n },\n });\n\n async function run() {\n const result = await stackOne.hris.listEmployments({\n fields: \" id,remote_id,employee_id,remote_employee_id,job_title,pay_rate,pay_period,pay_frequency,pay_currency,effective_date,end_date,employment_type,employment_contract_type,type,contract_type,change_reason,grade,work_time,payroll_code,fte,created_at,updated_at,start_date,active,department,team,cost_center,cost_centers,division,job,manager,groups \" ,\n filter: {\n updatedAfter: new Date(\" 2020-01-01T00:00:00.000Z\" ),\n },\n expand: \" groups\" ,\n xAccountId: \" <id>\" ,\n });\n\n for await (const page of result) {\n console.log(page);\n }\n }\n\n run();"
960972 - target : $["paths"]["/unified/hris/employments/{id}"]["get"]
961973 update :
962974 " x-codeSamples " :
963975 - " lang " : " typescript"
964976 " label " : " hris_get_employment"
965- " source " : " import { StackOne } from \" @stackone/stackone-client-ts\" ;\n\n const stackOne = new StackOne({\n security: {\n username: \"\" ,\n password: \"\" ,\n },\n });\n\n async function run() {\n const result = await stackOne.hris.getEmployment({\n id: \" <id>\" ,\n fields: \" id,remote_id,employee_id,remote_employee_id,job_title,pay_rate,pay_period,pay_frequency,pay_currency,effective_date,end_date,employment_type,employment_contract_type,type,contract_type,change_reason,grade,work_time,payroll_code,fte,created_at,updated_at,start_date,active,department,team,cost_center,cost_centers,division,job,manager\" ,\n expand: \" groups\" ,\n xAccountId: \" <id>\" ,\n });\n\n console.log(result);\n }\n\n run();"
977+ " source " : " import { StackOne } from \" @stackone/stackone-client-ts\" ;\n\n const stackOne = new StackOne({\n security: {\n username: \"\" ,\n password: \"\" ,\n },\n });\n\n async function run() {\n const result = await stackOne.hris.getEmployment({\n id: \" <id>\" ,\n fields: \" id,remote_id,employee_id,remote_employee_id,job_title,pay_rate,pay_period,pay_frequency,pay_currency,effective_date,end_date,employment_type,employment_contract_type,type,contract_type,change_reason,grade,work_time,payroll_code,fte,created_at,updated_at,start_date,active,department,team,cost_center,cost_centers,division,job,manager,groups \" ,\n expand: \" groups\" ,\n xAccountId: \" <id>\" ,\n });\n\n console.log(result);\n }\n\n run();"
966978 - target : $["paths"]["/unified/hris/groups"]["get"]
967979 update :
968980 " x-codeSamples " :
@@ -1064,7 +1076,7 @@ actions:
10641076 " x-codeSamples " :
10651077 - " lang " : " typescript"
10661078 " label " : " hris_list_positions"
1067- " source " : " import { StackOne } from \" @stackone/stackone-client-ts\" ;\n import { Status } from \" @stackone/stackone-client-ts/sdk/models/operations\" ;\n\n const stackOne = new StackOne({\n security: {\n username: \"\" ,\n password: \"\" ,\n },\n });\n\n async function run() {\n const result = await stackOne.hris.listPositions({\n filter: {\n updatedAfter: new Date(\" 2020-01-01T00:00:00.000Z\" ),\n },\n status: Status .Open,\n xAccountId: \" <id>\" ,\n });\n\n for await (const page of result) {\n console.log(page);\n }\n }\n\n run();"
1079+ " source " : " import { StackOne } from \" @stackone/stackone-client-ts\" ;\n import { QueryParamStatus } from \" @stackone/stackone-client-ts/sdk/models/operations\" ;\n\n const stackOne = new StackOne({\n security: {\n username: \"\" ,\n password: \"\" ,\n },\n });\n\n async function run() {\n const result = await stackOne.hris.listPositions({\n filter: {\n updatedAfter: new Date(\" 2020-01-01T00:00:00.000Z\" ),\n },\n status: QueryParamStatus .Open,\n xAccountId: \" <id>\" ,\n });\n\n for await (const page of result) {\n console.log(page);\n }\n }\n\n run();"
10681080 - target : $["paths"]["/unified/hris/positions/{id}"]["get"]
10691081 update :
10701082 " x-codeSamples " :
0 commit comments