@@ -650,13 +650,13 @@ actions:
650650 " x-codeSamples " :
651651 - " lang " : " ruby"
652652 " label " : " hris_upload_employee_document"
653- " source " : " require 'stackone_client'\n\n s = ::StackOne::StackOne.new(\n security: Models::Shared::Security.new(\n username: \"\" ,\n password: \"\" ,\n ),\n )\n\n res = s.hris.upload_employee_document(id=\" <id>\" , x_account_id=\" <id>\" , hris_documents_upload_request_dto=Models::Shared::HrisDocumentsUploadRequestDto.new(\n name: \" weather-forecast\" ,\n file_format: Models::Shared::FileFormat.new(\n value: Models::Shared::HrisDocumentsUploadRequestDtoValue::PDF,\n source_value: \" abc\" ,\n ),\n content: \" VGhpcyBpc24ndCByZWFsbHkgYSBzYW1wbGUgZmlsZSwgYnV0IG5vIG9uZSB3aWxsIGV2ZXIga25vdyE\" ,\n category_id: \" 6530\" ,\n path: \" /path/to/file\" ,\n category: Models::Shared::HrisDocumentsUploadRequestDtoCategory.new(), \n confidential: Models::Shared::Confidential.new(\n value: Models::Shared::HrisDocumentsUploadRequestDtoSchemasConfidentialValue ::TRUE,\n source_value: \" public\" ,\n ),\n ))\n\n if ! res.write_result_api_model.nil?\n # handle response\n end"
653+ " source " : " require 'stackone_client'\n\n s = ::StackOne::StackOne.new(\n security: Models::Shared::Security.new(\n username: \"\" ,\n password: \"\" ,\n ),\n )\n\n res = s.hris.upload_employee_document(id=\" <id>\" , x_account_id=\" <id>\" , hris_documents_upload_request_dto=Models::Shared::HrisDocumentsUploadRequestDto.new(\n name: \" weather-forecast\" ,\n file_format: Models::Shared::FileFormat.new(\n value: Models::Shared::HrisDocumentsUploadRequestDtoValue::PDF,\n source_value: \" abc\" ,\n ),\n content: \" VGhpcyBpc24ndCByZWFsbHkgYSBzYW1wbGUgZmlsZSwgYnV0IG5vIG9uZSB3aWxsIGV2ZXIga25vdyE\" ,\n category_id: \" 6530\" ,\n path: \" /path/to/file\" ,\n confidential: Models::Shared::Confidential.new(\n value: Models::Shared::HrisDocumentsUploadRequestDtoSchemasValue ::TRUE,\n source_value: \" public\" ,\n ), \n category: Models::Shared::HrisDocumentsUploadRequestDtoCategory.new( ),\n ))\n\n if ! res.write_result_api_model.nil?\n # handle response\n end"
654654 - target : $["paths"]["/unified/hris/employees/{id}/documents/upload/batch"]["post"]
655655 update :
656656 " x-codeSamples " :
657657 - " lang " : " ruby"
658658 " label " : " hris_batch_upload_employee_document"
659- "source": "require 'stackone_client'\n\ns = ::StackOne::StackOne.new(\n security: Models::Shared::Security.new(\n username: \"\",\n password: \"\",\n ),\n )\n\nres = s.hris.batch_upload_employee_document(id=\"<id>\", x_account_id=\"<id>\", hris_batch_document_upload_request_dto=Models::Shared::HrisBatchDocumentUploadRequestDto.new(\n items: [\n Models::Shared::HrisDocumentsUploadRequestDto.new(\n name: \"weather-forecast\",\n file_format: Models::Shared::FileFormat.new(\n value: Models::Shared::HrisDocumentsUploadRequestDtoValue::PDF,\n source_value: \"abc\",\n ),\n content: \"VGhpcyBpc24ndCByZWFsbHkgYSBzYW1wbGUgZmlsZSwgYnV0IG5vIG9uZSB3aWxsIGV2ZXIga25vdyE\",\n category_id: \"6530\",\n path: \"/path/to/file\",\n category: Models::Shared::HrisDocumentsUploadRequestDtoCategory.new(),\n confidential: Models::Shared::Confidential.new(\n value: Models::Shared::HrisDocumentsUploadRequestDtoSchemasConfidentialValue::TRUE,\n source_value: \"public\",\n ),\n ),\n ],\n))\n\nif ! res.batch_result_api_model.nil?\n # handle response\nend"
659+ "source": "require 'stackone_client'\n\ns = ::StackOne::StackOne.new(\n security: Models::Shared::Security.new(\n username: \"\",\n password: \"\",\n ),\n )\n\nres = s.hris.batch_upload_employee_document(id=\"<id>\", x_account_id=\"<id>\", hris_batch_document_upload_request_dto=Models::Shared::HrisBatchDocumentUploadRequestDto.new(\n items: [\n Models::Shared::HrisDocumentsUploadRequestDto.new(\n name: \"weather-forecast\",\n file_format: Models::Shared::FileFormat.new(\n value: Models::Shared::HrisDocumentsUploadRequestDtoValue::PDF,\n source_value: \"abc\",\n ),\n content: \"VGhpcyBpc24ndCByZWFsbHkgYSBzYW1wbGUgZmlsZSwgYnV0IG5vIG9uZSB3aWxsIGV2ZXIga25vdyE\",\n category_id: \"6530\",\n path: \"/path/to/file\",\n confidential: Models::Shared::Confidential.new(\n value: Models::Shared::HrisDocumentsUploadRequestDtoSchemasValue::TRUE,\n source_value: \"public\",\n ),\n category: Models::Shared::HrisDocumentsUploadRequestDtoCategory.new(),\n ),\n ],\n))\n\nif ! res.batch_result_api_model.nil?\n # handle response\nend"
660660 - target : $["paths"]["/unified/hris/employees/{id}/documents/{subResourceId}"]["get"]
661661 update :
662662 " x-codeSamples " :
@@ -717,6 +717,18 @@ actions:
717717 - " lang " : " ruby"
718718 " label " : " hris_get_employee_skill"
719719 " source " : " require 'stackone_client'\n\n s = ::StackOne::StackOne.new(\n security: Models::Shared::Security.new(\n username: \"\" ,\n password: \"\" ,\n ),\n )\n\n req = Models::Operations::HrisGetEmployeeSkillRequest.new(\n id: \" <id>\" ,\n sub_resource_id: \" <id>\" ,\n fields_: \" id,remote_id,name,active,language,maximum_proficiency,minimum_proficiency\" ,\n x_account_id: \" <id>\" ,\n )\n\n res = s.hris.get_employee_skill(req)\n\n if ! res.entity_skill_result.nil?\n # handle response\n end"
720+ - target : $["paths"]["/unified/hris/employees/{id}/tasks"]["get"]
721+ update :
722+ " x-codeSamples " :
723+ - " lang " : " ruby"
724+ " label " : " hris_list_employee_tasks"
725+ " source " : " require 'stackone_client'\n\n s = ::StackOne::StackOne.new(\n security: Models::Shared::Security.new(\n username: \"\" ,\n password: \"\" ,\n ),\n )\n\n req = Models::Operations::HrisListEmployeeTasksRequest.new(\n id: \" <id>\" ,\n fields_: \" id,remote_id,employee_id,remote_employee_id,name,description,type,status,due_date,completion_date,assigned_by_employee_id,remote_assigned_by_employee_id,assigned_by_employee_name,link_to_task,extracted_links,next_task_id,remote_next_task_id,parent_process_name,comments,attachments,created_at,updated_at\" ,\n filter: Models::Operations::HrisListEmployeeTasksQueryParamFilter.new(\n updated_after: \" 2020-01-01T00:00:00.000Z\" ,\n ),\n expand: \" attachments\" ,\n x_account_id: \" <id>\" ,\n )\n\n res = s.hris.list_employee_tasks(req)\n\n if ! res.tasks_paginated.nil?\n # handle response\n end"
726+ - target : $["paths"]["/unified/hris/employees/{id}/tasks/{subResourceId}"]["get"]
727+ update :
728+ " x-codeSamples " :
729+ - " lang " : " ruby"
730+ " label " : " hris_get_employee_task"
731+ " source " : " require 'stackone_client'\n\n s = ::StackOne::StackOne.new(\n security: Models::Shared::Security.new(\n username: \"\" ,\n password: \"\" ,\n ),\n )\n\n req = Models::Operations::HrisGetEmployeeTaskRequest.new(\n id: \" <id>\" ,\n sub_resource_id: \" <id>\" ,\n fields_: \" id,remote_id,employee_id,remote_employee_id,name,description,type,status,due_date,completion_date,assigned_by_employee_id,remote_assigned_by_employee_id,assigned_by_employee_name,link_to_task,extracted_links,next_task_id,remote_next_task_id,parent_process_name,comments,attachments,created_at,updated_at\" ,\n expand: \" attachments\" ,\n x_account_id: \" <id>\" ,\n )\n\n res = s.hris.get_employee_task(req)\n\n if ! res.task_result.nil?\n # handle response\n end"
720732 - target : $["paths"]["/unified/hris/employees/{id}/time_off"]["get"]
721733 update :
722734 " x-codeSamples " :
0 commit comments